diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d657780..fbfb1d5 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -109,7 +109,8 @@ const routes: Routes = [ }, { path: 'flame-graph', - loadChildren: () => import('./pages/flame-graph/flame-graph.module').then( m => m.FlameGraphPageModule) + loadChildren: () => import('./pages/flame-graph/flame-graph.module').then( m => m.FlameGraphPageModule), + ...canActivate(redirectUnauthorizedToLogin), }, ]; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index da0785b..10cbfc1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -39,6 +39,11 @@ export class AppComponent implements OnInit { url:'/trace-chooser', icon:'radio' }, + { + title: 'Flamegraph', + url: '/flame-graph', + icon: 'flame' + }, { title: 'My Team', url: '/myteam', diff --git a/www/1101.890bda6eeb1b2e46.js b/www/1101.890bda6eeb1b2e46.js new file mode 100644 index 0000000..bc29b5c --- /dev/null +++ b/www/1101.890bda6eeb1b2e46.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1101],{1101:(v,s,n)=>{n.r(s),n.d(s,{FlameGraphPageModule:()=>f});var c=n(177),p=n(4341),r=n(7863),i=n(305),e=n(4438),u=n(7616);let g=(()=>{var a;class l{constructor(){this.config={data:h}}ngOnInit(){}}return(a=l).\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.VBU({type:a,selectors:[["app-flame-graph"]],decls:13,vars:3,consts:[[3,"translucent"],[3,"fullscreen"],["collapse","condense"],["size","large"],[1,"wrapper-responsive"],[3,"config"]],template:function(t,F){1&t&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e.EFF(3,"flame-graph"),e.k0s()()(),e.j41(4,"ion-content",1)(5,"ion-header",2)(6,"ion-toolbar")(7,"ion-title",3),e.EFF(8,"flame-graph"),e.k0s()()(),e.j41(9,"h3"),e.EFF(10," Responsive "),e.k0s(),e.j41(11,"div",4),e.nrm(12,"ngx-flamegraph",5),e.k0s()()),2&t&&(e.Y8G("translucent",!0),e.R7$(4),e.Y8G("fullscreen",!0),e.R7$(8),e.Y8G("config",F.config))},dependencies:[r.W9,r.eU,r.BC,r.ai,u.E],styles:[".wrapper-fixed-width[_ngcontent-%COMP%]{width:900px;margin:auto}.wrapper-responsive[_ngcontent-%COMP%]{width:100%;margin:auto}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{text-align:center;-webkit-user-select:none;user-select:none}"]}),l})();const h=[{label:"root",value:100,children:[{label:"cpu_usage",value:10,children:[{label:"home",value:40,children:[]},{label:"about us",value:60,children:[]}]},{label:"no_usage",value:100,children:[]}]}],m=[{path:"",component:g}];let d=(()=>{var a;class l{}return(a=l).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[i.iI.forChild(m),i.iI]}),l})(),f=(()=>{var a;class l{}return(a=l).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[c.MD,p.YN,r.bv,d,u.n]}),l})()}}]); \ No newline at end of file diff --git a/www/3rdpartylicenses.txt b/www/3rdpartylicenses.txt index c2bf275..83a8332 100644 --- a/www/3rdpartylicenses.txt +++ b/www/3rdpartylicenses.txt @@ -410,6 +410,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +ngx-flamegraph +MIT + rxfire/auth rxjs diff --git a/www/index.html b/www/index.html index 674161a..2718c4b 100644 --- a/www/index.html +++ b/www/index.html @@ -21,6 +21,6 @@ - + diff --git a/www/main.a82438f885aa524c.js b/www/main.a82438f885aa524c.js new file mode 100644 index 0000000..3559171 --- /dev/null +++ b/www/main.a82438f885aa524c.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Am:()=>on,FA:()=>Re,Fy:()=>be,I9:()=>Ar,Im:()=>rr,Ku:()=>st,T9:()=>_t,Tj:()=>xt,Uj:()=>Je,XA:()=>Ne,ZQ:()=>Ve,bD:()=>wt,cY:()=>Qe,eX:()=>W,g:()=>re,hp:()=>Cn,jZ:()=>Te,lT:()=>He,lV:()=>Bt,nr:()=>De,sr:()=>gt,tD:()=>sn,u:()=>we,yU:()=>pt,zW:()=>j});const Le=function(he){const me=[];let ke=0;for(let Rt=0;Rt>6|192,me[ke++]=63&ne|128):55296==(64512&ne)&&Rt+1>18|240,me[ke++]=ne>>12&63|128,me[ke++]=ne>>6&63|128,me[ke++]=63&ne|128):(me[ke++]=ne>>12|224,me[ke++]=ne>>6&63|128,me[ke++]=63&ne|128)}return me},Ee={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(he,me){if(!Array.isArray(he))throw Error("encodeByteArray takes an array as a parameter");this.init_();const ke=me?this.byteToCharMapWebSafe_:this.byteToCharMap_,Rt=[];for(let ne=0;ne>6,Qn=63&cn;Xt||(Qn=64,et||(_n=64)),Rt.push(ke[nt>>2],ke[(3&nt)<<4|Lt>>4],ke[_n],ke[Qn])}return Rt.join("")},encodeString(he,me){return this.HAS_NATIVE_SUPPORT&&!me?btoa(he):this.encodeByteArray(Le(he),me)},decodeString(he,me){return this.HAS_NATIVE_SUPPORT&&!me?atob(he):function(he){const me=[];let ke=0,Rt=0;for(;ke191&&ne<224){const nt=he[ke++];me[Rt++]=String.fromCharCode((31&ne)<<6|63&nt)}else if(ne>239&&ne<365){const Xt=((7&ne)<<18|(63&he[ke++])<<12|(63&he[ke++])<<6|63&he[ke++])-65536;me[Rt++]=String.fromCharCode(55296+(Xt>>10)),me[Rt++]=String.fromCharCode(56320+(1023&Xt))}else{const nt=he[ke++],et=he[ke++];me[Rt++]=String.fromCharCode((15&ne)<<12|(63&nt)<<6|63&et)}}return me.join("")}(this.decodeStringToByteArray(he,me))},decodeStringToByteArray(he,me){this.init_();const ke=me?this.charToByteMapWebSafe_:this.charToByteMap_,Rt=[];for(let ne=0;ne>4),64!==cn&&(Rt.push(Lt<<4&240|cn>>2),64!==dn&&Rt.push(cn<<6&192|dn))}return Rt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let he=0;he=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(he)]=he,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(he)]=he)}}};class te extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(he){return function(he){const me=Le(he);return Ee.encodeByteArray(me,!0)}(he).replace(/\./g,"")},we=function(he){try{return Ee.decodeString(he,!0)}catch(me){console.error("base64Decode failed: ",me)}return null},mt=()=>{try{return function Be(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const he=process.env.__FIREBASE_DEFAULTS__;return he?JSON.parse(he):void 0})()||(()=>{if(typeof document>"u")return;let he;try{he=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const me=he&&we(he[1]);return me&&JSON.parse(me)})()}catch(he){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${he}`)}},xt=he=>{var me,ke;return null===(ke=null===(me=mt())||void 0===me?void 0:me.emulatorHosts)||void 0===ke?void 0:ke[he]},pt=he=>{const me=xt(he);if(!me)return;const ke=me.lastIndexOf(":");if(ke<=0||ke+1===me.length)throw new Error(`Invalid host ${me} with no separate hostname and port!`);const Rt=parseInt(me.substring(ke+1),10);return"["===me[0]?[me.substring(1,ke-1),Rt]:[me.substring(0,ke),Rt]},_t=()=>{var he;return null===(he=mt())||void 0===he?void 0:he.config},Ne=he=>{var me;return null===(me=mt())||void 0===me?void 0:me[`_${he}`]};class Qe{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((me,ke)=>{this.resolve=me,this.reject=ke})}wrapCallback(me){return(ke,Rt)=>{ke?this.reject(ke):this.resolve(Rt),"function"==typeof me&&(this.promise.catch(()=>{}),1===me.length?me(ke):me(ke,Rt))}}}function be(he,me){if(he.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Rt=me||"demo-project",ne=he.iat||0,nt=he.sub||he.user_id;if(!nt)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const et=Object.assign({iss:`https://securetoken.google.com/${Rt}`,aud:Rt,iat:ne,exp:ne+3600,auth_time:ne,sub:nt,user_id:nt,firebase:{sign_in_provider:"custom",identities:{}}},he);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(et)),""].join(".")}function Ve(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Te(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ve())}function gt(){const he="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof he&&void 0!==he.id}function Bt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function He(){const he=Ve();return he.indexOf("MSIE ")>=0||he.indexOf("Trident/")>=0}function De(){return!function se(){var he;const me=null===(he=mt())||void 0===he?void 0:he.forceEnvironment;if("node"===me)return!0;if("browser"===me)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function j(){try{return"object"==typeof indexedDB}catch{return!1}}function W(){return new Promise((he,me)=>{try{let ke=!0;const Rt="validate-browser-context-for-indexeddb-analytics-module",ne=self.indexedDB.open(Rt);ne.onsuccess=()=>{ne.result.close(),ke||self.indexedDB.deleteDatabase(Rt),he(!0)},ne.onupgradeneeded=()=>{ke=!1},ne.onerror=()=>{var nt;me((null===(nt=ne.error)||void 0===nt?void 0:nt.message)||"")}}catch(ke){me(ke)}})}class re extends Error{constructor(me,ke,Rt){super(ke),this.code=me,this.customData=Rt,this.name="FirebaseError",Object.setPrototypeOf(this,re.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Re.prototype.create)}}class Re{constructor(me,ke,Rt){this.service=me,this.serviceName=ke,this.errors=Rt}create(me,...ke){const Rt=ke[0]||{},ne=`${this.service}/${me}`,nt=this.errors[me],et=nt?function Ge(he,me){return he.replace(Jt,(ke,Rt)=>{const ne=me[Rt];return null!=ne?String(ne):`<${Rt}?>`})}(nt,Rt):"Error";return new re(ne,`${this.serviceName}: ${et} (${ne}).`,Rt)}}const Jt=/\{\$([^}]+)}/g;function rr(he){for(const me in he)if(Object.prototype.hasOwnProperty.call(he,me))return!1;return!0}function wt(he,me){if(he===me)return!0;const ke=Object.keys(he),Rt=Object.keys(me);for(const ne of ke){if(!Rt.includes(ne))return!1;const nt=he[ne],et=me[ne];if(Ft(nt)&&Ft(et)){if(!wt(nt,et))return!1}else if(nt!==et)return!1}for(const ne of Rt)if(!ke.includes(ne))return!1;return!0}function Ft(he){return null!==he&&"object"==typeof he}function on(he){const me=[];for(const[ke,Rt]of Object.entries(he))Array.isArray(Rt)?Rt.forEach(ne=>{me.push(encodeURIComponent(ke)+"="+encodeURIComponent(ne))}):me.push(encodeURIComponent(ke)+"="+encodeURIComponent(Rt));return me.length?"&"+me.join("&"):""}function Ar(he){const me={};return he.replace(/^\?/,"").split("&").forEach(Rt=>{if(Rt){const[ne,nt]=Rt.split("=");me[decodeURIComponent(ne)]=decodeURIComponent(nt)}}),me}function Cn(he){const me=he.indexOf("?");if(!me)return"";const ke=he.indexOf("#",me);return he.substring(me,ke>0?ke:void 0)}function sn(he,me){const ke=new Kt(he,me);return ke.subscribe.bind(ke)}class Kt{constructor(me,ke){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=ke,this.task.then(()=>{me(this)}).catch(Rt=>{this.error(Rt)})}next(me){this.forEachObserver(ke=>{ke.next(me)})}error(me){this.forEachObserver(ke=>{ke.error(me)}),this.close(me)}complete(){this.forEachObserver(me=>{me.complete()}),this.close()}subscribe(me,ke,Rt){let ne;if(void 0===me&&void 0===ke&&void 0===Rt)throw new Error("Missing Observer.");ne=function Rr(he,me){if("object"!=typeof he||null===he)return!1;for(const ke of me)if(ke in he&&"function"==typeof he[ke])return!0;return!1}(me,["next","error","complete"])?me:{next:me,error:ke,complete:Rt},void 0===ne.next&&(ne.next=Lr),void 0===ne.error&&(ne.error=Lr),void 0===ne.complete&&(ne.complete=Lr);const nt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ne.error(this.finalError):ne.complete()}catch{}}),this.observers.push(ne),nt}unsubscribeOne(me){void 0===this.observers||void 0===this.observers[me]||(delete this.observers[me],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(me){if(!this.finalized)for(let ke=0;ke{if(void 0!==this.observers&&void 0!==this.observers[me])try{ke(this.observers[me])}catch(Rt){typeof console<"u"&&console.error&&console.error(Rt)}})}close(me){this.finalized||(this.finalized=!0,void 0!==me&&(this.finalError=me),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Lr(){}function st(he){return he&&he._delegate?he._delegate:he}},4442:(Dn,Ct,x)=>{"use strict";x.d(Ct,{L:()=>K,a:()=>Ee,b:()=>te,c:()=>qe,d:()=>Je,g:()=>tt}),x(5531);const K="ionViewWillEnter",Ee="ionViewDidEnter",te="ionViewWillLeave",qe="ionViewDidLeave",Je="ionViewWillUnload",tt=De=>De.classList.contains("ion-page")?De:De.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||De},5531:(Dn,Ct,x)=>{"use strict";x.d(Ct,{a:()=>we,c:()=>c,g:()=>Je});class f{constructor(){this.m=new Map}reset(De){this.m=new Map(Object.entries(De))}get(De,j){const W=this.m.get(De);return void 0!==W?W:j}getBoolean(De,j=!1){const W=this.m.get(De);return void 0===W?j:"string"==typeof W?"true"===W:!!W}getNumber(De,j){const W=parseFloat(this.m.get(De));return isNaN(W)?void 0!==j?j:NaN:W}set(De,j){this.m.set(De,j)}}const c=new f,Je=tt=>Ae(tt),we=(tt,De)=>("string"==typeof tt&&(De=tt,tt=void 0),Je(tt).includes(De)),Ae=(tt=window)=>{if(typeof tt>"u")return[];tt.Ionic=tt.Ionic||{};let De=tt.Ionic.platforms;return null==De&&(De=tt.Ionic.platforms=je(tt),De.forEach(j=>tt.document.documentElement.classList.add(`plt-${j}`))),De},je=tt=>{const De=c.get("platform");return Object.keys(Bt).filter(j=>{const W=null==De?void 0:De[j];return"function"==typeof W?W(tt):Bt[j](tt)})},Be=tt=>!!(ze(tt,/iPad/i)||ze(tt,/Macintosh/i)&&_t(tt)),lt=tt=>ze(tt,/android|sink/i),_t=tt=>gt(tt,"(any-pointer:coarse)"),Qe=tt=>be(tt)||Ve(tt),be=tt=>!!(tt.cordova||tt.phonegap||tt.PhoneGap),Ve=tt=>{const De=tt.Capacitor;return!(null==De||!De.isNative)},ze=(tt,De)=>De.test(tt.navigator.userAgent),gt=(tt,De)=>{var j;return null===(j=tt.matchMedia)||void 0===j?void 0:j.call(tt,De).matches},Bt={ipad:Be,iphone:tt=>ze(tt,/iPhone/i),ios:tt=>ze(tt,/iPhone|iPod/i)||Be(tt),android:lt,phablet:tt=>{const De=tt.innerWidth,j=tt.innerHeight,W=Math.min(De,j),ie=Math.max(De,j);return W>390&&W<520&&ie>620&&ie<800},tablet:tt=>{const De=tt.innerWidth,j=tt.innerHeight,W=Math.min(De,j),ie=Math.max(De,j);return Be(tt)||(tt=>lt(tt)&&!ze(tt,/mobile/i))(tt)||W>460&&W<820&&ie>780&&ie<1400},cordova:be,capacitor:Ve,electron:tt=>ze(tt,/electron/i),pwa:tt=>{var De;return!!(null!==(De=tt.matchMedia)&&void 0!==De&&De.call(tt,"(display-mode: standalone)").matches||tt.navigator.standalone)},mobile:_t,mobileweb:tt=>_t(tt)&&!Qe(tt),desktop:tt=>!_t(tt),hybrid:Qe}},9986:(Dn,Ct,x)=>{"use strict";x.d(Ct,{c:()=>Ee});var f=x(8476);let c;const Le=(te,qe,Je)=>{const we=qe.startsWith("animation")?(te=>(void 0===c&&(c=void 0===te.style.animationName&&void 0!==te.style.webkitAnimationName?"-webkit-":""),c))(te):"";te.style.setProperty(we+qe,Je)},K=(te=[],qe)=>{if(void 0!==qe){const Je=Array.isArray(qe)?qe:[qe];return[...te,...Je]}return te},Ee=te=>{let qe,Je,we,Ae,je,Ke,mt,Te,se,ze,He,Be=[],it=[],Et=[],lt=!1,xt={},pt=[],_t=[],Ne={},Qe=0,be=!1,Ve=!1,gt=!0,Bt=!1,At=!0,Zt=!1;const tt=te,De=[],j=[],W=[],ie=[],J=[],re=[],Re=[],Ge=[],Jt=[],yn=[],rn=[],Fn="function"==typeof AnimationEffect||void 0!==f.w&&"function"==typeof f.w.AnimationEffect,Nn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Fn,qn=()=>rn,rr=(R,U)=>{const ee=U.findIndex($=>$.c===R);ee>-1&&U.splice(ee,1)},wt=(R,U)=>((null!=U&&U.oneTimeCallback?j:De).push({c:R,o:U}),He),en=()=>{Nn&&(rn.forEach(R=>{R.cancel()}),rn.length=0)},on=()=>{re.forEach(R=>{null!=R&&R.parentNode&&R.parentNode.removeChild(R)}),re.length=0},er=()=>void 0!==je?je:mt?mt.getFill():"both",Mn=()=>void 0!==Te?Te:void 0!==Ke?Ke:mt?mt.getDirection():"normal",Mr=()=>be?"linear":void 0!==we?we:mt?mt.getEasing():"linear",tr=()=>Ve?0:void 0!==se?se:void 0!==Je?Je:mt?mt.getDuration():0,_r=()=>void 0!==Ae?Ae:mt?mt.getIterations():1,Ii=()=>void 0!==ze?ze:void 0!==qe?qe:mt?mt.getDelay():0,Xt=()=>{0!==Qe&&(Qe--,0===Qe&&((()=>{Jt.forEach(le=>le()),yn.forEach(le=>le());const R=gt?1:0,U=pt,ee=_t,$=Ne;ie.forEach(le=>{const Ue=le.classList;U.forEach(dt=>Ue.add(dt)),ee.forEach(dt=>Ue.remove(dt));for(const dt in $)$.hasOwnProperty(dt)&&Le(le,dt,$[dt])}),se=void 0,Te=void 0,ze=void 0,De.forEach(le=>le.c(R,He)),j.forEach(le=>le.c(R,He)),j.length=0,At=!0,gt&&(Bt=!0),gt=!0})(),mt&&mt.animationFinish()))},Hn=()=>{(()=>{Re.forEach($=>$()),Ge.forEach($=>$());const R=it,U=Et,ee=xt;ie.forEach($=>{const le=$.classList;R.forEach(Ue=>le.add(Ue)),U.forEach(Ue=>le.remove(Ue));for(const Ue in ee)ee.hasOwnProperty(Ue)&&Le($,Ue,ee[Ue])})})(),Be.length>0&&Nn&&(ie.forEach(R=>{const U=R.animate(Be,{id:tt,delay:Ii(),duration:tr(),easing:Mr(),iterations:_r(),fill:er(),direction:Mn()});U.pause(),rn.push(U)}),rn.length>0&&(rn[0].onfinish=()=>{Xt()})),lt=!0},dn=R=>{R=Math.min(Math.max(R,0),.9999),Nn&&rn.forEach(U=>{U.currentTime=U.effect.getComputedTiming().delay+tr()*R,U.pause()})},_n=R=>{rn.forEach(U=>{U.effect.updateTiming({delay:Ii(),duration:tr(),easing:Mr(),iterations:_r(),fill:er(),direction:Mn()})}),void 0!==R&&dn(R)},Qn=(R=!1,U=!0,ee)=>(R&&J.forEach($=>{$.update(R,U,ee)}),Nn&&_n(ee),He),gi=()=>{lt&&(Nn?rn.forEach(R=>{R.pause()}):ie.forEach(R=>{Le(R,"animation-play-state","paused")}),Zt=!0)},Nt=R=>new Promise(U=>{null!=R&&R.sync&&(Ve=!0,wt(()=>Ve=!1,{oneTimeCallback:!0})),lt||Hn(),Bt&&(Nn&&(dn(0),_n()),Bt=!1),At&&(Qe=J.length+1,At=!1);const ee=()=>{rr($,j),U()},$=()=>{rr(ee,W),U()};wt($,{oneTimeCallback:!0}),((R,U)=>{W.push({c:R,o:{oneTimeCallback:!0}})})(ee),J.forEach(le=>{le.play()}),Nn?(rn.forEach(R=>{R.play()}),(0===Be.length||0===ie.length)&&Xt()):Xt(),Zt=!1}),zt=(R,U)=>{const ee=Be[0];return void 0===ee||void 0!==ee.offset&&0!==ee.offset?Be=[{offset:0,[R]:U},...Be]:ee[R]=U,He};return He={parentAnimation:mt,elements:ie,childAnimations:J,id:tt,animationFinish:Xt,from:zt,to:(R,U)=>{const ee=Be[Be.length-1];return void 0===ee||void 0!==ee.offset&&1!==ee.offset?Be=[...Be,{offset:1,[R]:U}]:ee[R]=U,He},fromTo:(R,U,ee)=>zt(R,U).to(R,ee),parent:R=>(mt=R,He),play:Nt,pause:()=>(J.forEach(R=>{R.pause()}),gi(),He),stop:()=>{J.forEach(R=>{R.stop()}),lt&&(en(),lt=!1),be=!1,Ve=!1,At=!0,Te=void 0,se=void 0,ze=void 0,Qe=0,Bt=!1,gt=!0,Zt=!1,W.forEach(R=>R.c(0,He)),W.length=0},destroy:R=>(J.forEach(U=>{U.destroy(R)}),(R=>{en(),R&&on()})(R),ie.length=0,J.length=0,Be.length=0,De.length=0,j.length=0,lt=!1,At=!0,He),keyframes:R=>{const U=Be!==R;return Be=R,U&&(R=>{Nn&&qn().forEach(U=>{const ee=U.effect;if(ee.setKeyframes)ee.setKeyframes(R);else{const $=new KeyframeEffect(ee.target,R,ee.getTiming());U.effect=$}})})(Be),He},addAnimation:R=>{if(null!=R)if(Array.isArray(R))for(const U of R)U.parent(He),J.push(U);else R.parent(He),J.push(R);return He},addElement:R=>{if(null!=R)if(1===R.nodeType)ie.push(R);else if(R.length>=0)for(let U=0;U(je=R,Qn(!0),He),direction:R=>(Ke=R,Qn(!0),He),iterations:R=>(Ae=R,Qn(!0),He),duration:R=>(!Nn&&0===R&&(R=1),Je=R,Qn(!0),He),easing:R=>(we=R,Qn(!0),He),delay:R=>(qe=R,Qn(!0),He),getWebAnimations:qn,getKeyframes:()=>Be,getFill:er,getDirection:Mn,getDelay:Ii,getIterations:_r,getEasing:Mr,getDuration:tr,afterAddRead:R=>(Jt.push(R),He),afterAddWrite:R=>(yn.push(R),He),afterClearStyles:(R=[])=>{for(const U of R)Ne[U]="";return He},afterStyles:(R={})=>(Ne=R,He),afterRemoveClass:R=>(_t=K(_t,R),He),afterAddClass:R=>(pt=K(pt,R),He),beforeAddRead:R=>(Re.push(R),He),beforeAddWrite:R=>(Ge.push(R),He),beforeClearStyles:(R=[])=>{for(const U of R)xt[U]="";return He},beforeStyles:(R={})=>(xt=R,He),beforeRemoveClass:R=>(Et=K(Et,R),He),beforeAddClass:R=>(it=K(it,R),He),onFinish:wt,isRunning:()=>0!==Qe&&!Zt,progressStart:(R=!1,U)=>(J.forEach(ee=>{ee.progressStart(R,U)}),gi(),be=R,lt||Hn(),Qn(!1,!0,U),He),progressStep:R=>(J.forEach(U=>{U.progressStep(R)}),dn(R),He),progressEnd:(R,U,ee)=>(be=!1,J.forEach($=>{$.progressEnd(R,U,ee)}),void 0!==ee&&(se=ee),Bt=!1,gt=!0,0===R?(Te="reverse"===Mn()?"normal":"reverse","reverse"===Te&&(gt=!1),Nn?(Qn(),dn(1-U)):(ze=(1-U)*tr()*-1,Qn(!1,!1))):1===R&&(Nn?(Qn(),dn(U)):(ze=U*tr()*-1,Qn(!1,!1))),void 0!==R&&!mt&&Nt(),He)}}},464:(Dn,Ct,x)=>{"use strict";x.d(Ct,{E:()=>we,a:()=>f,s:()=>qe});const f=Ae=>{try{if(Ae instanceof te)return Ae.value;if(!Le()||"string"!=typeof Ae||""===Ae)return Ae;if(Ae.includes("onload="))return"";const je=document.createDocumentFragment(),Ke=document.createElement("div");je.appendChild(Ke),Ke.innerHTML=Ae,Ee.forEach(lt=>{const mt=je.querySelectorAll(lt);for(let xt=mt.length-1;xt>=0;xt--){const pt=mt[xt];pt.parentNode?pt.parentNode.removeChild(pt):je.removeChild(pt);const _t=ce(pt);for(let Ne=0;Ne<_t.length;Ne++)c(_t[Ne])}});const Be=ce(je);for(let lt=0;lt{if(Ae.nodeType&&1!==Ae.nodeType)return;if(typeof NamedNodeMap<"u"&&!(Ae.attributes instanceof NamedNodeMap))return void Ae.remove();for(let Ke=Ae.attributes.length-1;Ke>=0;Ke--){const Be=Ae.attributes.item(Ke),it=Be.name;if(!K.includes(it.toLowerCase())){Ae.removeAttribute(it);continue}const Et=Be.value,lt=Ae[it];(null!=Et&&Et.toLowerCase().includes("javascript:")||null!=lt&<.toLowerCase().includes("javascript:"))&&Ae.removeAttribute(it)}const je=ce(Ae);for(let Ke=0;Kenull!=Ae.children?Ae.children:Ae.childNodes,Le=()=>{var Ae;const je=window,Ke=null===(Ae=null==je?void 0:je.Ionic)||void 0===Ae?void 0:Ae.config;return!Ke||(Ke.get?Ke.get("sanitizerEnabled",!0):!0===Ke.sanitizerEnabled||void 0===Ke.sanitizerEnabled)},K=["class","id","href","src","name","slot"],Ee=["script","style","iframe","meta","link","object","embed"];class te{constructor(je){this.value=je}}const qe=Ae=>{const je=window,Ke=je.Ionic;if(!Ke||!Ke.config||"Object"===Ke.config.constructor.name)return je.Ionic=je.Ionic||{},je.Ionic.config=Object.assign(Object.assign({},je.Ionic.config),Ae),je.Ionic.config},we=!1},8621:(Dn,Ct,x)=>{"use strict";x.d(Ct,{C:()=>K,a:()=>ce,d:()=>Le});var f=x(467),c=x(4920);const ce=function(){var Ee=(0,f.A)(function*(te,qe,Je,we,Ae,je){var Ke;if(te)return te.attachViewToDom(qe,Je,Ae,we);if(!(je||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const Be="string"==typeof Je?null===(Ke=qe.ownerDocument)||void 0===Ke?void 0:Ke.createElement(Je):Je;return we&&we.forEach(it=>Be.classList.add(it)),Ae&&Object.assign(Be,Ae),qe.appendChild(Be),yield new Promise(it=>(0,c.c)(Be,it)),Be});return function(qe,Je,we,Ae,je,Ke){return Ee.apply(this,arguments)}}(),Le=(Ee,te)=>{if(te){if(Ee)return Ee.removeViewFromDom(te.parentElement,te);te.remove()}return Promise.resolve()},K=()=>{let Ee,te;return{attachViewToDom:function(){var we=(0,f.A)(function*(Ae,je,Ke={},Be=[]){var it,Et;let lt;if(Ee=Ae,je){const xt="string"==typeof je?null===(it=Ee.ownerDocument)||void 0===it?void 0:it.createElement(je):je;Be.forEach(pt=>xt.classList.add(pt)),Object.assign(xt,Ke),Ee.appendChild(xt),lt=xt,yield new Promise(pt=>(0,c.c)(xt,pt))}else if(Ee.children.length>0&&("ION-MODAL"===Ee.tagName||"ION-POPOVER"===Ee.tagName)&&!(lt=Ee.children[0]).classList.contains("ion-delegate-host")){const pt=null===(Et=Ee.ownerDocument)||void 0===Et?void 0:Et.createElement("div");pt.classList.add("ion-delegate-host"),Be.forEach(_t=>pt.classList.add(_t)),pt.append(...Ee.children),Ee.appendChild(pt),lt=pt}const mt=document.querySelector("ion-app")||document.body;return te=document.createComment("ionic teleport"),Ee.parentNode.insertBefore(te,Ee),mt.appendChild(Ee),null!=lt?lt:Ee});return function(je,Ke){return we.apply(this,arguments)}}(),removeViewFromDom:()=>(Ee&&te&&(te.parentNode.insertBefore(Ee,te),te.remove()),Promise.resolve())}}},1970:(Dn,Ct,x)=>{"use strict";x.d(Ct,{B:()=>Le,G:()=>K});class c{constructor(te,qe,Je,we,Ae){this.id=qe,this.name=Je,this.disableScroll=Ae,this.priority=1e6*we+qe,this.ctrl=te}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const te=this.ctrl.capture(this.name,this.id,this.priority);return te&&this.disableScroll&&this.ctrl.disableScroll(this.id),te}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ce{constructor(te,qe,Je,we){this.id=qe,this.disable=Je,this.disableScroll=we,this.ctrl=te}block(){if(this.ctrl){if(this.disable)for(const te of this.disable)this.ctrl.disableGesture(te,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const te of this.disable)this.ctrl.enableGesture(te,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Le="backdrop-no-scroll",K=new class f{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(te){var qe;return new c(this,this.newID(),te.name,null!==(qe=te.priority)&&void 0!==qe?qe:0,!!te.disableScroll)}createBlocker(te={}){return new ce(this,this.newID(),te.disable,!!te.disableScroll)}start(te,qe,Je){return this.canStart(te)?(this.requestedStart.set(qe,Je),!0):(this.requestedStart.delete(qe),!1)}capture(te,qe,Je){if(!this.start(te,qe,Je))return!1;const we=this.requestedStart;let Ae=-1e4;if(we.forEach(je=>{Ae=Math.max(Ae,je)}),Ae===Je){this.capturedId=qe,we.clear();const je=new CustomEvent("ionGestureCaptured",{detail:{gestureName:te}});return document.dispatchEvent(je),!0}return we.delete(qe),!1}release(te){this.requestedStart.delete(te),this.capturedId===te&&(this.capturedId=void 0)}disableGesture(te,qe){let Je=this.disabledGestures.get(te);void 0===Je&&(Je=new Set,this.disabledGestures.set(te,Je)),Je.add(qe)}enableGesture(te,qe){const Je=this.disabledGestures.get(te);void 0!==Je&&Je.delete(qe)}disableScroll(te){this.disabledScroll.add(te),1===this.disabledScroll.size&&document.body.classList.add(Le)}enableScroll(te){this.disabledScroll.delete(te),0===this.disabledScroll.size&&document.body.classList.remove(Le)}canStart(te){return!(void 0!==this.capturedId||this.isDisabled(te))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(te){const qe=this.disabledGestures.get(te);return!!(qe&&qe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Dn,Ct,x)=>{"use strict";x.r(Ct),x.d(Ct,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>qe,blockHardwareBackButton:()=>Ee,shouldUseCloseWatcher:()=>K,startHardwareBackButton:()=>te});var f=x(467),c=x(8476),ce=x(3664);x(9672);const K=()=>ce.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,Ee=()=>{document.addEventListener("backbutton",()=>{})},te=()=>{const we=document;let Ae=!1;const je=()=>{if(Ae)return;let Ke=0,Be=[];const it=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(mt,xt){Be.push({priority:mt,handler:xt,id:Ke++})}}});we.dispatchEvent(it);const Et=function(){var mt=(0,f.A)(function*(xt){try{if(null!=xt&&xt.handler){const pt=xt.handler(lt);null!=pt&&(yield pt)}}catch(pt){console.error(pt)}});return function(pt){return mt.apply(this,arguments)}}(),lt=()=>{if(Be.length>0){let mt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Be.forEach(xt=>{xt.priority>=mt.priority&&(mt=xt)}),Ae=!0,Be=Be.filter(xt=>xt.id!==mt.id),Et(mt).then(()=>Ae=!1)}};lt()};if(K()){let Ke;const Be=()=>{null==Ke||Ke.destroy(),Ke=new c.w.CloseWatcher,Ke.onclose=()=>{je(),Be()}};Be()}else we.addEventListener("backbutton",je)},qe=100,Je=99},4920:(Dn,Ct,x)=>{"use strict";x.d(Ct,{a:()=>qe,b:()=>Je,c:()=>ce,d:()=>Be,e:()=>xt,f:()=>Ke,g:()=>we,h:()=>K,i:()=>te,j:()=>it,k:()=>Le,l:()=>je,m:()=>Et,n:()=>mt,o:()=>pt,p:()=>lt,r:()=>Ae,s:()=>_t,t:()=>f});const f=(Ne,Qe=0)=>new Promise(be=>{c(Ne,Qe,be)}),c=(Ne,Qe=0,be)=>{let Ve,Te;const se={passive:!0},gt=()=>{Ve&&Ve()},Bt=At=>{(void 0===At||Ne===At.target)&&(gt(),be(At))};return Ne&&(Ne.addEventListener("webkitTransitionEnd",Bt,se),Ne.addEventListener("transitionend",Bt,se),Te=setTimeout(Bt,Qe+500),Ve=()=>{void 0!==Te&&(clearTimeout(Te),Te=void 0),Ne.removeEventListener("webkitTransitionEnd",Bt,se),Ne.removeEventListener("transitionend",Bt,se)}),gt},ce=(Ne,Qe)=>{Ne.componentOnReady?Ne.componentOnReady().then(be=>Qe(be)):Ae(()=>Qe(Ne))},Le=Ne=>void 0!==Ne.componentOnReady,K=(Ne,Qe=[])=>{const be={};return Qe.forEach(Ve=>{Ne.hasAttribute(Ve)&&(null!==Ne.getAttribute(Ve)&&(be[Ve]=Ne.getAttribute(Ve)),Ne.removeAttribute(Ve))}),be},Ee=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],te=(Ne,Qe)=>{let be=Ee;return Qe&&Qe.length>0&&(be=be.filter(Ve=>!Qe.includes(Ve))),K(Ne,be)},qe=(Ne,Qe,be,Ve)=>{var Te;if(typeof window<"u"){const se=window,ze=null===(Te=null==se?void 0:se.Ionic)||void 0===Te?void 0:Te.config;if(ze){const gt=ze.get("_ael");if(gt)return gt(Ne,Qe,be,Ve);if(ze._ael)return ze._ael(Ne,Qe,be,Ve)}}return Ne.addEventListener(Qe,be,Ve)},Je=(Ne,Qe,be,Ve)=>{var Te;if(typeof window<"u"){const se=window,ze=null===(Te=null==se?void 0:se.Ionic)||void 0===Te?void 0:Te.config;if(ze){const gt=ze.get("_rel");if(gt)return gt(Ne,Qe,be,Ve);if(ze._rel)return ze._rel(Ne,Qe,be,Ve)}}return Ne.removeEventListener(Qe,be,Ve)},we=(Ne,Qe=Ne)=>Ne.shadowRoot||Qe,Ae=Ne=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(Ne):setTimeout(Ne),je=Ne=>!!Ne.shadowRoot&&!!Ne.attachShadow,Ke=Ne=>{if(Ne.focus(),Ne.classList.contains("ion-focusable")){const Qe=Ne.closest("ion-app");Qe&&Qe.setFocus([Ne])}},Be=(Ne,Qe,be,Ve,Te)=>{if(Ne||je(Qe)){let se=Qe.querySelector("input.aux-input");se||(se=Qe.ownerDocument.createElement("input"),se.type="hidden",se.classList.add("aux-input"),Qe.appendChild(se)),se.disabled=Te,se.name=be,se.value=Ve||""}},it=(Ne,Qe,be)=>Math.max(Ne,Math.min(Qe,be)),Et=(Ne,Qe)=>{if(!Ne){const be="ASSERT: "+Qe;throw console.error(be),new Error(be)}},lt=Ne=>{if(Ne){const Qe=Ne.changedTouches;if(Qe&&Qe.length>0){const be=Qe[0];return{x:be.clientX,y:be.clientY}}if(void 0!==Ne.pageX)return{x:Ne.pageX,y:Ne.pageY}}return{x:0,y:0}},mt=Ne=>{const Qe="rtl"===document.dir;switch(Ne){case"start":return Qe;case"end":return!Qe;default:throw new Error(`"${Ne}" is not a valid value for [side]. Use "start" or "end" instead.`)}},xt=(Ne,Qe)=>{const be=Ne._original||Ne;return{_original:Ne,emit:pt(be.emit.bind(be),Qe)}},pt=(Ne,Qe=0)=>{let be;return(...Ve)=>{clearTimeout(be),be=setTimeout(Ne,Qe,...Ve)}},_t=(Ne,Qe)=>{if(null!=Ne||(Ne={}),null!=Qe||(Qe={}),Ne===Qe)return!0;const be=Object.keys(Ne);if(be.length!==Object.keys(Qe).length)return!1;for(const Ve of be)if(!(Ve in Qe)||Ne[Ve]!==Qe[Ve])return!1;return!0}},5465:(Dn,Ct,x)=>{"use strict";x.d(Ct,{m:()=>Ke});var f=x(467),c=x(8476),ce=x(6411),Le=x(4929),K=x(4920),Ee=x(3664),te=x(9986);const qe=Be=>(0,te.c)().duration(Be?400:300),Je=Be=>{let it,Et;const lt=Be.width+8,mt=(0,te.c)(),xt=(0,te.c)();Be.isEndSide?(it=lt+"px",Et="0px"):(it=-lt+"px",Et="0px"),mt.addElement(Be.menuInnerEl).fromTo("transform",`translateX(${it})`,`translateX(${Et})`);const _t="ios"===(0,Ee.b)(Be),Ne=_t?.2:.25;return xt.addElement(Be.backdropEl).fromTo("opacity",.01,Ne),qe(_t).addAnimation([mt,xt])},we=Be=>{let it,Et;const lt=(0,Ee.b)(Be),mt=Be.width;Be.isEndSide?(it=-mt+"px",Et=mt+"px"):(it=mt+"px",Et=-mt+"px");const xt=(0,te.c)().addElement(Be.menuInnerEl).fromTo("transform",`translateX(${Et})`,"translateX(0px)"),pt=(0,te.c)().addElement(Be.contentEl).fromTo("transform","translateX(0px)",`translateX(${it})`),_t=(0,te.c)().addElement(Be.backdropEl).fromTo("opacity",.01,.32);return qe("ios"===lt).addAnimation([xt,pt,_t])},Ae=Be=>{const it=(0,Ee.b)(Be),Et=Be.width*(Be.isEndSide?-1:1)+"px",lt=(0,te.c)().addElement(Be.contentEl).fromTo("transform","translateX(0px)",`translateX(${Et})`);return qe("ios"===it).addAnimation(lt)},Ke=(()=>{const Be=new Map,it=[],Et=function(){var W=(0,f.A)(function*(ie){const J=yield Qe(ie,!0);return!!J&&J.open()});return function(J){return W.apply(this,arguments)}}(),lt=function(){var W=(0,f.A)(function*(ie){const J=yield void 0!==ie?Qe(ie,!0):be();return void 0!==J&&J.close()});return function(J){return W.apply(this,arguments)}}(),mt=function(){var W=(0,f.A)(function*(ie){const J=yield Qe(ie,!0);return!!J&&J.toggle()});return function(J){return W.apply(this,arguments)}}(),xt=function(){var W=(0,f.A)(function*(ie,J){const re=yield Qe(J);return re&&(re.disabled=!ie),re});return function(J,re){return W.apply(this,arguments)}}(),pt=function(){var W=(0,f.A)(function*(ie,J){const re=yield Qe(J);return re&&(re.swipeGesture=ie),re});return function(J,re){return W.apply(this,arguments)}}(),_t=function(){var W=(0,f.A)(function*(ie){if(null!=ie){const J=yield Qe(ie);return void 0!==J&&J.isOpen()}return void 0!==(yield be())});return function(J){return W.apply(this,arguments)}}(),Ne=function(){var W=(0,f.A)(function*(ie){const J=yield Qe(ie);return!!J&&!J.disabled});return function(J){return W.apply(this,arguments)}}(),Qe=function(){var W=(0,f.A)(function*(ie,J=!1){if(yield j(),"start"===ie||"end"===ie){const Re=it.filter(Jt=>Jt.side===ie&&!Jt.disabled);if(Re.length>=1)return Re.length>1&&J&&(0,Le.p)(`menuController queried for a menu on the "${ie}" side, but ${Re.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Re.map(Jt=>Jt.el)),Re[0].el;const Ge=it.filter(Jt=>Jt.side===ie);if(Ge.length>=1)return Ge.length>1&&J&&(0,Le.p)(`menuController queried for a menu on the "${ie}" side, but ${Ge.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ge.map(Jt=>Jt.el)),Ge[0].el}else if(null!=ie)return De(Re=>Re.menuId===ie);return De(Re=>!Re.disabled)||(it.length>0?it[0].el:void 0)});return function(J){return W.apply(this,arguments)}}(),be=function(){var W=(0,f.A)(function*(){return yield j(),He()});return function(){return W.apply(this,arguments)}}(),Ve=function(){var W=(0,f.A)(function*(){return yield j(),Zt()});return function(){return W.apply(this,arguments)}}(),Te=function(){var W=(0,f.A)(function*(){return yield j(),tt()});return function(){return W.apply(this,arguments)}}(),se=(W,ie)=>{Be.set(W,ie)},Bt=function(){var W=(0,f.A)(function*(ie,J,re){if(tt())return!1;if(J){const Re=yield be();Re&&ie.el!==Re&&(yield Re.setOpen(!1,!1))}return ie._setOpen(J,re)});return function(J,re,Re){return W.apply(this,arguments)}}(),He=()=>De(W=>W._isOpen),Zt=()=>it.map(W=>W.el),tt=()=>it.some(W=>W.isAnimating),De=W=>{const ie=it.find(W);if(void 0!==ie)return ie.el},j=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(W=>new Promise(ie=>(0,K.c)(W,ie))));return se("reveal",Ae),se("push",we),se("overlay",Je),null==c.d||c.d.addEventListener("ionBackButton",W=>{const ie=He();ie&&W.detail.register(ce.MENU_BACK_BUTTON_PRIORITY,()=>ie.close())}),{registerAnimation:se,get:Qe,getMenus:Ve,getOpen:be,isEnabled:Ne,swipeGesture:pt,isAnimating:Te,isOpen:_t,enable:xt,toggle:mt,close:lt,open:Et,_getOpenSync:He,_createAnimation:(W,ie)=>{const J=Be.get(W);if(!J)throw new Error("animation not registered");return J(ie)},_register:W=>{it.indexOf(W)<0&&it.push(W)},_unregister:W=>{const ie=it.indexOf(W);ie>-1&&it.splice(ie,1)},_setOpen:Bt}})()},8607:(Dn,Ct,x)=>{"use strict";x.r(Ct),x.d(Ct,{GESTURE_CONTROLLER:()=>f.G,createGesture:()=>Je});var f=x(1970);const c=(Ke,Be,it,Et)=>{const lt=ce(Ke)?{capture:!!Et.capture,passive:!!Et.passive}:!!Et.capture;let mt,xt;return Ke.__zone_symbol__addEventListener?(mt="__zone_symbol__addEventListener",xt="__zone_symbol__removeEventListener"):(mt="addEventListener",xt="removeEventListener"),Ke[mt](Be,it,lt),()=>{Ke[xt](Be,it,lt)}},ce=Ke=>{if(void 0===Le)try{const Be=Object.defineProperty({},"passive",{get:()=>{Le=!0}});Ke.addEventListener("optsTest",()=>{},Be)}catch{Le=!1}return!!Le};let Le;const te=Ke=>Ke instanceof Document?Ke:Ke.ownerDocument,Je=Ke=>{let Be=!1,it=!1,Et=!0,lt=!1;const mt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ke),xt=mt.canStart,pt=mt.onWillStart,_t=mt.onStart,Ne=mt.onEnd,Qe=mt.notCaptured,be=mt.onMove,Ve=mt.threshold,Te=mt.passive,se=mt.blurOnStart,ze={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},gt=((Ke,Be,it)=>{const Et=it*(Math.PI/180),lt="x"===Ke,mt=Math.cos(Et),xt=Be*Be;let pt=0,_t=0,Ne=!1,Qe=0;return{start(be,Ve){pt=be,_t=Ve,Qe=0,Ne=!0},detect(be,Ve){if(!Ne)return!1;const Te=be-pt,se=Ve-_t,ze=Te*Te+se*se;if(zemt?1:Bt<-mt?-1:0,Ne=!1,!0},isGesture:()=>0!==Qe,getDirection:()=>Qe}})(mt.direction,mt.threshold,mt.maxAngle),Bt=f.G.createGesture({name:Ke.gestureName,priority:Ke.gesturePriority,disableScroll:Ke.disableScroll}),Zt=()=>{Be&&(lt=!1,be&&be(ze))},tt=()=>!!Bt.capture()&&(Be=!0,Et=!1,ze.startX=ze.currentX,ze.startY=ze.currentY,ze.startTime=ze.currentTime,pt?pt(ze).then(j):j(),!0),j=()=>{se&&(()=>{if(typeof document<"u"){const Re=document.activeElement;null!=Re&&Re.blur&&Re.blur()}})(),_t&&_t(ze),Et=!0},W=()=>{Be=!1,it=!1,lt=!1,Et=!0,Bt.release()},ie=Re=>{const Ge=Be,Jt=Et;if(W(),Jt){if(we(ze,Re),Ge)return void(Ne&&Ne(ze));Qe&&Qe(ze)}},J=((Ke,Be,it,Et,lt)=>{let mt,xt,pt,_t,Ne,Qe,be,Ve=0;const Te=De=>{Ve=Date.now()+2e3,Be(De)&&(!xt&&it&&(xt=c(Ke,"touchmove",it,lt)),pt||(pt=c(De.target,"touchend",ze,lt)),_t||(_t=c(De.target,"touchcancel",ze,lt)))},se=De=>{Ve>Date.now()||Be(De)&&(!Qe&&it&&(Qe=c(te(Ke),"mousemove",it,lt)),be||(be=c(te(Ke),"mouseup",gt,lt)))},ze=De=>{Bt(),Et&&Et(De)},gt=De=>{At(),Et&&Et(De)},Bt=()=>{xt&&xt(),pt&&pt(),_t&&_t(),xt=pt=_t=void 0},At=()=>{Qe&&Qe(),be&&be(),Qe=be=void 0},He=()=>{Bt(),At()},Zt=(De=!0)=>{De?(mt||(mt=c(Ke,"touchstart",Te,lt)),Ne||(Ne=c(Ke,"mousedown",se,lt))):(mt&&mt(),Ne&&Ne(),mt=Ne=void 0,He())};return{enable:Zt,stop:He,destroy:()=>{Zt(!1),Et=it=Be=void 0}}})(mt.el,Re=>{const Ge=je(Re);return!(it||!Et||(Ae(Re,ze),ze.startX=ze.currentX,ze.startY=ze.currentY,ze.startTime=ze.currentTime=Ge,ze.velocityX=ze.velocityY=ze.deltaX=ze.deltaY=0,ze.event=Re,xt&&!1===xt(ze))||(Bt.release(),!Bt.start()))&&(it=!0,0===Ve?tt():(gt.start(ze.startX,ze.startY),!0))},Re=>{Be?!lt&&Et&&(lt=!0,we(ze,Re),requestAnimationFrame(Zt)):(we(ze,Re),gt.detect(ze.currentX,ze.currentY)&&(!gt.isGesture()||!tt())&&re())},ie,{capture:!1,passive:Te}),re=()=>{W(),J.stop(),Qe&&Qe(ze)};return{enable(Re=!0){Re||(Be&&ie(void 0),W()),J.enable(Re)},destroy(){Bt.destroy(),J.destroy()}}},we=(Ke,Be)=>{if(!Be)return;const it=Ke.currentX,Et=Ke.currentY,lt=Ke.currentTime;Ae(Be,Ke);const mt=Ke.currentX,xt=Ke.currentY,_t=(Ke.currentTime=je(Be))-lt;if(_t>0&&_t<100){const Qe=(xt-Et)/_t;Ke.velocityX=(mt-it)/_t*.7+.3*Ke.velocityX,Ke.velocityY=.7*Qe+.3*Ke.velocityY}Ke.deltaX=mt-Ke.startX,Ke.deltaY=xt-Ke.startY,Ke.event=Be},Ae=(Ke,Be)=>{let it=0,Et=0;if(Ke){const lt=Ke.changedTouches;if(lt&<.length>0){const mt=lt[0];it=mt.clientX,Et=mt.clientY}else void 0!==Ke.pageX&&(it=Ke.pageX,Et=Ke.pageY)}Be.currentX=it,Be.currentY=Et},je=Ke=>Ke.timeStamp||Date.now()},9672:(Dn,Ct,x)=>{"use strict";x.d(Ct,{B:()=>Ee,a:()=>Lo,b:()=>Ir,c:()=>Jt,d:()=>Nn,e:()=>mr,f:()=>tt,g:()=>yn,h:()=>He,i:()=>Fn,j:()=>Qn,k:()=>te,r:()=>kn,w:()=>Ei});var f=x(467);var Le=Object.defineProperty,Ee={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},te=H=>{const ue=new URL(H,Yn.$resourcesUrl$);return ue.origin!==ur.location.origin?ue.href:ue.pathname},qe={},je=H=>"object"==(H=typeof H)||"function"===H;function Ke(H){var ue,Me,We;return null!=(We=null==(Me=null==(ue=H.head)?void 0:ue.querySelector('meta[name="csp-nonce"]'))?void 0:Me.getAttribute("content"))?We:void 0}((H,ue)=>{for(var Me in ue)Le(H,Me,{get:ue[Me],enumerable:!0})})({},{err:()=>Et,map:()=>lt,ok:()=>it,unwrap:()=>mt,unwrapErr:()=>xt});var it=H=>({isOk:!0,isErr:!1,value:H}),Et=H=>({isOk:!1,isErr:!0,value:H});function lt(H,ue){if(H.isOk){const Me=ue(H.value);return Me instanceof Promise?Me.then(We=>it(We)):it(Me)}if(H.isErr)return Et(H.value);throw"should never get here"}var mt=H=>{if(H.isOk)return H.value;throw H.value},xt=H=>{if(H.isErr)return H.value;throw H.value},Te="s-id",se="sty-id",Bt="slot-fb{display:contents}slot-fb[hidden]{display:none}",At="http://www.w3.org/1999/xlink",He=(H,ue,...Me)=>{let We=null,vt=null,ct=null,jt=!1,Qt=!1;const tn=[],ln=Pn=>{for(let Gn=0;GnPn[Gn]).join(" "))}}if("function"==typeof H)return H(null===ue?{}:ue,tn,j);const Sn=Zt(H,null);return Sn.$attrs$=ue,tn.length>0&&(Sn.$children$=tn),Sn.$key$=vt,Sn.$name$=ct,Sn},Zt=(H,ue)=>({$flags$:0,$tag$:H,$text$:ue,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),tt={},j={forEach:(H,ue)=>H.map(W).forEach(ue),map:(H,ue)=>H.map(W).map(ue).map(ie)},W=H=>({vattrs:H.$attrs$,vchildren:H.$children$,vkey:H.$key$,vname:H.$name$,vtag:H.$tag$,vtext:H.$text$}),ie=H=>{if("function"==typeof H.vtag){const Me={...H.vattrs};return H.vkey&&(Me.key=H.vkey),H.vname&&(Me.name=H.vname),He(H.vtag,Me,...H.vchildren||[])}const ue=Zt(H.vtag,H.vtext);return ue.$attrs$=H.vattrs,ue.$children$=H.vchildren,ue.$key$=H.vkey,ue.$name$=H.vname,ue},re=(H,ue,Me,We,vt,ct,jt)=>{let Qt,tn,ln,Sn;if(1===ct.nodeType){for(Qt=ct.getAttribute("c-id"),Qt&&(tn=Qt.split("."),(tn[0]===jt||"0"===tn[0])&&(ln={$flags$:0,$hostId$:tn[0],$nodeId$:tn[1],$depth$:tn[2],$index$:tn[3],$tag$:ct.tagName.toLowerCase(),$elm$:ct,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ue.push(ln),ct.removeAttribute("c-id"),H.$children$||(H.$children$=[]),H.$children$[ln.$index$]=ln,H=ln,We&&"0"===ln.$depth$&&(We[ln.$index$]=ln.$elm$))),Sn=ct.childNodes.length-1;Sn>=0;Sn--)re(H,ue,Me,We,vt,ct.childNodes[Sn],jt);if(ct.shadowRoot)for(Sn=ct.shadowRoot.childNodes.length-1;Sn>=0;Sn--)re(H,ue,Me,We,vt,ct.shadowRoot.childNodes[Sn],jt)}else if(8===ct.nodeType)tn=ct.nodeValue.split("."),(tn[1]===jt||"0"===tn[1])&&(Qt=tn[0],ln={$flags$:0,$hostId$:tn[1],$nodeId$:tn[2],$depth$:tn[3],$index$:tn[4],$elm$:ct,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Qt?(ln.$elm$=ct.nextSibling,ln.$elm$&&3===ln.$elm$.nodeType&&(ln.$text$=ln.$elm$.textContent,ue.push(ln),ct.remove(),H.$children$||(H.$children$=[]),H.$children$[ln.$index$]=ln,We&&"0"===ln.$depth$&&(We[ln.$index$]=ln.$elm$))):ln.$hostId$===jt&&("s"===Qt?(ln.$tag$="slot",ct["s-sn"]=tn[5]?ln.$name$=tn[5]:"",ct["s-sr"]=!0,We&&(ln.$elm$=Kr.createElement(ln.$tag$),ln.$name$&&ln.$elm$.setAttribute("name",ln.$name$),ct.parentNode.insertBefore(ln.$elm$,ct),ct.remove(),"0"===ln.$depth$&&(We[ln.$index$]=ln.$elm$)),Me.push(ln),H.$children$||(H.$children$=[]),H.$children$[ln.$index$]=ln):"r"===Qt&&(We?ct.remove():(vt["s-cr"]=ct,ct["s-cn"]=!0))));else if(H&&"style"===H.$tag$){const Pn=Zt(null,ct.textContent);Pn.$elm$=ct,Pn.$index$="0",H.$children$=[Pn]}},Re=(H,ue)=>{if(1===H.nodeType){let Me=0;for(;Meli.push(H),yn=H=>ei(H).$modeName$,Fn=H=>ei(H).$hostElement$,Nn=(H,ue,Me)=>{const We=Fn(H);return{emit:vt=>qn(We,ue,{bubbles:!!(4&Me),composed:!!(2&Me),cancelable:!!(1&Me),detail:vt})}},qn=(H,ue,Me)=>{const We=Yn.ce(ue,Me);return H.dispatchEvent(We),We},Zn=new WeakMap,Xn=(H,ue,Me)=>{let We=Wo.get(H);bo&&Me?(We=We||new CSSStyleSheet,"string"==typeof We?We=ue:We.replaceSync(ue)):We=ue,Wo.set(H,We)},wn=(H,ue,Me)=>{var We;const vt=rr(ue,Me),ct=Wo.get(vt);if(H=11===H.nodeType?H:Kr,ct)if("string"==typeof ct){let Qt,jt=Zn.get(H=H.head||H);if(jt||Zn.set(H,jt=new Set),!jt.has(vt)){if(H.host&&(Qt=H.querySelector(`[${se}="${vt}"]`)))Qt.innerHTML=ct;else{Qt=Kr.createElement("style"),Qt.innerHTML=ct;const tn=null!=(We=Yn.$nonce$)?We:Ke(Kr);null!=tn&&Qt.setAttribute("nonce",tn),H.insertBefore(Qt,H.querySelector("link"))}4&ue.$flags$&&(Qt.innerHTML+=Bt),jt&&jt.add(vt)}}else H.adoptedStyleSheets.includes(ct)||(H.adoptedStyleSheets=[...H.adoptedStyleSheets,ct]);return vt},rr=(H,ue)=>"sc-"+(ue&&32&H.$flags$?H.$tagName$+"-"+ue:H.$tagName$),Xe=H=>H.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),wt=(H,ue,Me,We,vt,ct)=>{if(Me!==We){let jt=_o(H,ue),Qt=ue.toLowerCase();if("class"===ue){const tn=H.classList,ln=en(Me),Sn=en(We);tn.remove(...ln.filter(Pn=>Pn&&!Sn.includes(Pn))),tn.add(...Sn.filter(Pn=>Pn&&!ln.includes(Pn)))}else if("style"===ue){for(const tn in Me)(!We||null==We[tn])&&(tn.includes("-")?H.style.removeProperty(tn):H.style[tn]="");for(const tn in We)(!Me||We[tn]!==Me[tn])&&(tn.includes("-")?H.style.setProperty(tn,We[tn]):H.style[tn]=We[tn])}else if("key"!==ue)if("ref"===ue)We&&We(H);else if(jt||"o"!==ue[0]||"n"!==ue[1]){const tn=je(We);if((jt||tn&&null!==We)&&!vt)try{if(H.tagName.includes("-"))H[ue]=We;else{const Sn=null==We?"":We;"list"===ue?jt=!1:(null==Me||H[ue]!=Sn)&&(H[ue]=Sn)}}catch{}let ln=!1;Qt!==(Qt=Qt.replace(/^xlink\:?/,""))&&(ue=Qt,ln=!0),null==We||!1===We?(!1!==We||""===H.getAttribute(ue))&&(ln?H.removeAttributeNS(At,ue):H.removeAttribute(ue)):(!jt||4&ct||vt)&&!tn&&(We=!0===We?"":We,ln?H.setAttributeNS(At,ue,We):H.setAttribute(ue,We))}else if(ue="-"===ue[2]?ue.slice(3):_o(ur,Qt)?Qt.slice(2):Qt[2]+ue.slice(3),Me||We){const tn=ue.endsWith(on);ue=ue.replace(Ar,""),Me&&Yn.rel(H,ue,Me,tn),We&&Yn.ael(H,ue,We,tn)}}},Ft=/\s/,en=H=>H?H.split(Ft):[],on="Capture",Ar=new RegExp(on+"$"),Cn=(H,ue,Me)=>{const We=11===ue.$elm$.nodeType&&ue.$elm$.host?ue.$elm$.host:ue.$elm$,vt=H&&H.$attrs$||qe,ct=ue.$attrs$||qe;for(const jt of An(Object.keys(vt)))jt in ct||wt(We,jt,vt[jt],void 0,Me,ue.$flags$);for(const jt of An(Object.keys(ct)))wt(We,jt,vt[jt],ct[jt],Me,ue.$flags$)};function An(H){return H.includes("ref")?[...H.filter(ue=>"ref"!==ue),"ref"]:H}var sn,Kt,fr,Rr=!1,Lr=!1,kr=!1,Cr=!1,jn=(H,ue,Me,We)=>{var vt;const ct=ue.$children$[Me];let Qt,tn,ln,jt=0;if(Rr||(kr=!0,"slot"===ct.$tag$&&(sn&&We.classList.add(sn+"-s"),ct.$flags$|=ct.$children$?2:1)),null!==ct.$text$)Qt=ct.$elm$=Kr.createTextNode(ct.$text$);else if(1&ct.$flags$)Qt=ct.$elm$=Kr.createTextNode("");else{if(Cr||(Cr="svg"===ct.$tag$),Qt=ct.$elm$=Kr.createElementNS(Cr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&ct.$flags$?"slot-fb":ct.$tag$),Cr&&"foreignObject"===ct.$tag$&&(Cr=!1),Cn(null,ct,Cr),(H=>null!=H)(sn)&&Qt["s-si"]!==sn&&Qt.classList.add(Qt["s-si"]=sn),ct.$children$)for(jt=0;jt{Yn.$flags$|=1;const ue=H.closest(fr.toLowerCase());if(null!=ue){const Me=Array.from(ue.childNodes).find(vt=>vt["s-cr"]),We=Array.from(H.childNodes);for(const vt of Me?We.reverse():We)null!=vt["s-sh"]&&(me(ue,vt,null!=Me?Me:null),vt["s-sh"]=void 0,kr=!0)}Yn.$flags$&=-2},er=(H,ue)=>{Yn.$flags$|=1;const Me=Array.from(H.childNodes);if(H["s-sr"]){let We=H;for(;We=We.nextSibling;)We&&We["s-sn"]===H["s-sn"]&&We["s-sh"]===fr&&Me.push(We)}for(let We=Me.length-1;We>=0;We--){const vt=Me[We];vt["s-hn"]!==fr&&vt["s-ol"]&&(me(Zr(vt),vt,Ii(vt)),vt["s-ol"].remove(),vt["s-ol"]=void 0,vt["s-sh"]=void 0,kr=!0),ue&&er(vt,ue)}Yn.$flags$&=-2},Mn=(H,ue,Me,We,vt,ct)=>{let Qt,jt=H["s-cr"]&&H["s-cr"].parentNode||H;for(jt.shadowRoot&&jt.tagName===fr&&(jt=jt.shadowRoot);vt<=ct;++vt)We[vt]&&(Qt=jn(null,Me,vt,H),Qt&&(We[vt].$elm$=Qt,me(jt,Qt,Ii(ue))))},Mr=(H,ue,Me)=>{for(let We=ue;We<=Me;++We){const vt=H[We];if(vt){const ct=vt.$elm$;he(vt),ct&&(Lr=!0,ct["s-ol"]?ct["s-ol"].remove():er(ct,!0),ct.remove())}}},_r=(H,ue,Me=!1)=>H.$tag$===ue.$tag$&&("slot"===H.$tag$?H.$name$===ue.$name$:!!Me||H.$key$===ue.$key$),Ii=H=>H&&H["s-ol"]||H,Zr=H=>(H["s-ol"]?H["s-ol"]:H).parentNode,zr=(H,ue,Me=!1)=>{const We=ue.$elm$=H.$elm$,vt=H.$children$,ct=ue.$children$,jt=ue.$tag$,Qt=ue.$text$;let tn;null===Qt?(Cr="svg"===jt||"foreignObject"!==jt&&Cr,"slot"!==jt||Rr?Cn(H,ue,Cr):H.$name$!==ue.$name$&&(ue.$elm$["s-sn"]=ue.$name$||"",ii(ue.$elm$.parentElement)),null!==vt&&null!==ct?((H,ue,Me,We,vt=!1)=>{let Tr,dr,ct=0,jt=0,Qt=0,tn=0,ln=ue.length-1,Sn=ue[0],Pn=ue[ln],Gn=We.length-1,Rn=We[0],Ur=We[Gn];for(;ct<=ln&&jt<=Gn;)if(null==Sn)Sn=ue[++ct];else if(null==Pn)Pn=ue[--ln];else if(null==Rn)Rn=We[++jt];else if(null==Ur)Ur=We[--Gn];else if(_r(Sn,Rn,vt))zr(Sn,Rn,vt),Sn=ue[++ct],Rn=We[++jt];else if(_r(Pn,Ur,vt))zr(Pn,Ur,vt),Pn=ue[--ln],Ur=We[--Gn];else if(_r(Sn,Ur,vt))("slot"===Sn.$tag$||"slot"===Ur.$tag$)&&er(Sn.$elm$.parentNode,!1),zr(Sn,Ur,vt),me(H,Sn.$elm$,Pn.$elm$.nextSibling),Sn=ue[++ct],Ur=We[--Gn];else if(_r(Pn,Rn,vt))("slot"===Sn.$tag$||"slot"===Ur.$tag$)&&er(Pn.$elm$.parentNode,!1),zr(Pn,Rn,vt),me(H,Pn.$elm$,Sn.$elm$),Pn=ue[--ln],Rn=We[++jt];else{for(Qt=-1,tn=ct;tn<=ln;++tn)if(ue[tn]&&null!==ue[tn].$key$&&ue[tn].$key$===Rn.$key$){Qt=tn;break}Qt>=0?(dr=ue[Qt],dr.$tag$!==Rn.$tag$?Tr=jn(ue&&ue[jt],Me,Qt,H):(zr(dr,Rn,vt),ue[Qt]=void 0,Tr=dr.$elm$),Rn=We[++jt]):(Tr=jn(ue&&ue[jt],Me,jt,H),Rn=We[++jt]),Tr&&me(Zr(Sn.$elm$),Tr,Ii(Sn.$elm$))}ct>ln?Mn(H,null==We[Gn+1]?null:We[Gn+1].$elm$,Me,We,jt,Gn):jt>Gn&&Mr(ue,ct,ln)})(We,vt,ue,ct,Me):null!==ct?(null!==H.$text$&&(We.textContent=""),Mn(We,null,ue,ct,0,ct.length-1)):null!==vt&&Mr(vt,0,vt.length-1),Cr&&"svg"===jt&&(Cr=!1)):(tn=We["s-cr"])?tn.parentNode.textContent=Qt:H.$text$!==Qt&&(We.data=Qt)},de=H=>{const ue=H.childNodes;for(const Me of ue)if(1===Me.nodeType){if(Me["s-sr"]){const We=Me["s-sn"];Me.hidden=!1;for(const vt of ue)if(vt!==Me)if(vt["s-hn"]!==Me["s-hn"]||""!==We){if(1===vt.nodeType&&(We===vt.getAttribute("slot")||We===vt["s-sn"])||3===vt.nodeType&&We===vt["s-sn"]){Me.hidden=!0;break}}else if(1===vt.nodeType||3===vt.nodeType&&""!==vt.textContent.trim()){Me.hidden=!0;break}}de(Me)}},Ye=[],yt=H=>{let ue,Me,We;for(const vt of H.childNodes){if(vt["s-sr"]&&(ue=vt["s-cr"])&&ue.parentNode){Me=ue.parentNode.childNodes;const ct=vt["s-sn"];for(We=Me.length-1;We>=0;We--)if(ue=Me[We],!(ue["s-cn"]||ue["s-nr"]||ue["s-hn"]===vt["s-hn"]||ue["s-sh"]&&ue["s-sh"]===vt["s-hn"]))if(st(ue,ct)){let jt=Ye.find(Qt=>Qt.$nodeToRelocate$===ue);Lr=!0,ue["s-sn"]=ue["s-sn"]||ct,jt?(jt.$nodeToRelocate$["s-sh"]=vt["s-hn"],jt.$slotRefNode$=vt):(ue["s-sh"]=vt["s-hn"],Ye.push({$slotRefNode$:vt,$nodeToRelocate$:ue})),ue["s-sr"]&&Ye.map(Qt=>{st(Qt.$nodeToRelocate$,ue["s-sn"])&&(jt=Ye.find(tn=>tn.$nodeToRelocate$===ue),jt&&!Qt.$slotRefNode$&&(Qt.$slotRefNode$=jt.$slotRefNode$))})}else Ye.some(jt=>jt.$nodeToRelocate$===ue)||Ye.push({$nodeToRelocate$:ue})}1===vt.nodeType&&yt(vt)}},st=(H,ue)=>1===H.nodeType?null===H.getAttribute("slot")&&""===ue||H.getAttribute("slot")===ue:H["s-sn"]===ue||""===ue,he=H=>{H.$attrs$&&H.$attrs$.ref&&H.$attrs$.ref(null),H.$children$&&H.$children$.map(he)},me=(H,ue,Me)=>{const We=null==H?void 0:H.insertBefore(ue,Me);return Rt(ue,H),We},ke=H=>H?H["s-rsc"]||H["s-si"]||H["s-sc"]||ke(H.parentElement):void 0,Rt=(H,ue)=>{var Me,We,vt;if(H&&ue){const ct=H["s-rsc"],jt=ke(ue);ct&&null!=(Me=H.classList)&&Me.contains(ct)&&H.classList.remove(ct),jt&&(H["s-rsc"]=jt,(null==(We=H.classList)||!We.contains(jt))&&(null==(vt=H.classList)||vt.add(jt)))}},nt=(H,ue)=>{ue&&!H.$onRenderResolve$&&ue["s-p"]&&ue["s-p"].push(new Promise(Me=>H.$onRenderResolve$=Me))},et=(H,ue)=>{if(H.$flags$|=16,!(4&H.$flags$))return nt(H,H.$ancestorComponent$),Ei(()=>Lt(H,ue));H.$flags$|=512},Lt=(H,ue)=>{const We=H.$lazyInstance$;let vt;return ue&&(H.$flags$|=256,H.$queuedListeners$&&(H.$queuedListeners$.map(([ct,jt])=>yr(We,ct,jt)),H.$queuedListeners$=void 0),vt=yr(We,"componentWillLoad")),vt=Xt(vt,()=>yr(We,"componentWillRender")),Xt(vt,()=>Hn(H,We,ue))},Xt=(H,ue)=>cn(H)?H.then(ue):ue(),cn=H=>H instanceof Promise||H&&H.then&&"function"==typeof H.then,Hn=function(){var H=(0,f.A)(function*(ue,Me,We){var vt;const ct=ue.$hostElement$,Qt=ct["s-rc"];We&&(H=>{const ue=H.$cmpMeta$,Me=H.$hostElement$,We=ue.$flags$,ct=wn(Me.shadowRoot?Me.shadowRoot:Me.getRootNode(),ue,H.$modeName$);10&We&&(Me["s-sc"]=ct,Me.classList.add(ct+"-h"),2&We&&Me.classList.add(ct+"-s"))})(ue);dn(ue,Me,ct,We),Qt&&(Qt.map(ln=>ln()),ct["s-rc"]=void 0);{const ln=null!=(vt=ct["s-p"])?vt:[],Sn=()=>_n(ue);0===ln.length?Sn():(Promise.all(ln).then(Sn),ue.$flags$|=4,ln.length=0)}});return function(Me,We,vt){return H.apply(this,arguments)}}(),dn=(H,ue,Me,We)=>{try{ue=ue.render&&ue.render(),H.$flags$&=-17,H.$flags$|=2,((H,ue,Me=!1)=>{var We,vt,ct,jt,Qt;const tn=H.$hostElement$,ln=H.$cmpMeta$,Sn=H.$vnode$||Zt(null,null),Pn=(H=>H&&H.$tag$===tt)(ue)?ue:He(null,null,ue);if(fr=tn.tagName,ln.$attrsToReflect$&&(Pn.$attrs$=Pn.$attrs$||{},ln.$attrsToReflect$.map(([Gn,Rn])=>Pn.$attrs$[Rn]=tn[Gn])),Me&&Pn.$attrs$)for(const Gn of Object.keys(Pn.$attrs$))tn.hasAttribute(Gn)&&!["key","ref","style","class"].includes(Gn)&&(Pn.$attrs$[Gn]=tn[Gn]);if(Pn.$tag$=null,Pn.$flags$|=4,H.$vnode$=Pn,Pn.$elm$=Sn.$elm$=tn.shadowRoot||tn,sn=tn["s-sc"],Rr=!!(1&ln.$flags$),Kt=tn["s-cr"],Lr=!1,zr(Sn,Pn,Me),Yn.$flags$|=1,kr){yt(Pn.$elm$);for(const Gn of Ye){const Rn=Gn.$nodeToRelocate$;if(!Rn["s-ol"]){const Ur=Kr.createTextNode("");Ur["s-nr"]=Rn,me(Rn.parentNode,Rn["s-ol"]=Ur,Rn)}}for(const Gn of Ye){const Rn=Gn.$nodeToRelocate$,Ur=Gn.$slotRefNode$;if(Ur){const Tr=Ur.parentNode;let dr=Ur.nextSibling;if(dr&&1===dr.nodeType){let yi=null==(We=Rn["s-ol"])?void 0:We.previousSibling;for(;yi;){let bi=null!=(vt=yi["s-nr"])?vt:null;if(bi&&bi["s-sn"]===Rn["s-sn"]&&Tr===bi.parentNode){for(bi=bi.nextSibling;bi===Rn||null!=bi&&bi["s-sr"];)bi=null==bi?void 0:bi.nextSibling;if(!bi||!bi["s-nr"]){dr=bi;break}}yi=yi.previousSibling}}(!dr&&Tr!==Rn.parentNode||Rn.nextSibling!==dr)&&Rn!==dr&&(me(Tr,Rn,dr),1===Rn.nodeType&&(Rn.hidden=null!=(ct=Rn["s-ih"])&&ct)),Rn&&"function"==typeof Ur["s-rf"]&&Ur["s-rf"](Rn)}else 1===Rn.nodeType&&(Me&&(Rn["s-ih"]=null!=(jt=Rn.hidden)&&jt),Rn.hidden=!0)}}if(Lr&&de(Pn.$elm$),Yn.$flags$&=-2,Ye.length=0,2&ln.$flags$)for(const Gn of Pn.$elm$.childNodes)Gn["s-hn"]!==fr&&!Gn["s-sh"]&&(Me&&null==Gn["s-ih"]&&(Gn["s-ih"]=null!=(Qt=Gn.hidden)&&Qt),Gn.hidden=!0);Kt=void 0})(H,ue,We)}catch(vt){ai(vt,H.$hostElement$)}return null},_n=H=>{const Me=H.$hostElement$,vt=H.$lazyInstance$,ct=H.$ancestorComponent$;yr(vt,"componentDidRender"),64&H.$flags$?yr(vt,"componentDidUpdate"):(H.$flags$|=64,Vr(Me),yr(vt,"componentDidLoad"),H.$onReadyResolve$(Me),ct||Pr()),H.$onInstanceResolve$(Me),H.$onRenderResolve$&&(H.$onRenderResolve$(),H.$onRenderResolve$=void 0),512&H.$flags$&&at(()=>et(H,!1)),H.$flags$&=-517},Qn=H=>{{const ue=ei(H),Me=ue.$hostElement$.isConnected;return Me&&2==(18&ue.$flags$)&&et(ue,!1),Me}},Pr=H=>{Vr(Kr.documentElement),at(()=>qn(ur,"appload",{detail:{namespace:"ionic"}}))},yr=(H,ue,Me)=>{if(H&&H[ue])try{return H[ue](Me)}catch(We){ai(We)}},Vr=H=>H.classList.add("hydrated"),Fi=(H,ue,Me)=>{var We;const vt=H.prototype;if(ue.$members$){H.watchers&&(ue.$watchers$=H.watchers);const ct=Object.entries(ue.$members$);if(ct.map(([jt,[Qt]])=>{31&Qt||2&Me&&32&Qt?Object.defineProperty(vt,jt,{get(){return((H,ue)=>ei(this).$instanceValues$.get(ue))(0,jt)},set(tn){((H,ue,Me,We)=>{const vt=ei(H);if(!vt)throw new Error(`Couldn't find host element for "${We.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const ct=vt.$hostElement$,jt=vt.$instanceValues$.get(ue),Qt=vt.$flags$,tn=vt.$lazyInstance$;Me=((H,ue)=>null==H||je(H)?H:4&ue?"false"!==H&&(""===H||!!H):2&ue?parseFloat(H):1&ue?String(H):H)(Me,We.$members$[ue][0]);const ln=Number.isNaN(jt)&&Number.isNaN(Me);if((!(8&Qt)||void 0===jt)&&Me!==jt&&!ln&&(vt.$instanceValues$.set(ue,Me),tn)){if(We.$watchers$&&128&Qt){const Pn=We.$watchers$[ue];Pn&&Pn.map(Gn=>{try{tn[Gn](Me,jt,ue)}catch(Rn){ai(Rn,ct)}})}2==(18&Qt)&&et(vt,!1)}})(this,jt,tn,ue)},configurable:!0,enumerable:!0}):1&Me&&64&Qt&&Object.defineProperty(vt,jt,{value(...tn){var ln;const Sn=ei(this);return null==(ln=null==Sn?void 0:Sn.$onInstancePromise$)?void 0:ln.then(()=>{var Pn;return null==(Pn=Sn.$lazyInstance$)?void 0:Pn[jt](...tn)})}})}),1&Me){const jt=new Map;vt.attributeChangedCallback=function(Qt,tn,ln){Yn.jmp(()=>{var Sn;const Pn=jt.get(Qt);if(this.hasOwnProperty(Pn))ln=this[Pn],delete this[Pn];else{if(vt.hasOwnProperty(Pn)&&"number"==typeof this[Pn]&&this[Pn]==ln)return;if(null==Pn){const Gn=ei(this),Rn=null==Gn?void 0:Gn.$flags$;if(Rn&&!(8&Rn)&&128&Rn&&ln!==tn){const Ur=Gn.$lazyInstance$,Tr=null==(Sn=ue.$watchers$)?void 0:Sn[Qt];null==Tr||Tr.forEach(dr=>{null!=Ur[dr]&&Ur[dr].call(Ur,ln,tn,Qt)})}return}}this[Pn]=(null!==ln||"boolean"!=typeof this[Pn])&&ln})},H.observedAttributes=Array.from(new Set([...Object.keys(null!=(We=ue.$watchers$)?We:{}),...ct.filter(([Qt,tn])=>15&tn[0]).map(([Qt,tn])=>{var ln;const Sn=tn[1]||Qt;return jt.set(Sn,Qt),512&tn[0]&&(null==(ln=ue.$attrsToReflect$)||ln.push([Qt,Sn])),Sn})]))}}return H},Mi=function(){var H=(0,f.A)(function*(ue,Me,We,vt){let ct;if(!(32&Me.$flags$)){if(Me.$flags$|=32,We.$lazyBundleId$){if(ct=Co(We),ct.then){const Sn=()=>{};ct=yield ct,Sn()}ct.isProxied||(We.$watchers$=ct.watchers,Fi(ct,We,2),ct.isProxied=!0);const ln=()=>{};Me.$flags$|=8;try{new ct(Me)}catch(Sn){ai(Sn)}Me.$flags$&=-9,Me.$flags$|=128,ln(),mi(Me.$lazyInstance$)}else ct=ue.constructor,customElements.whenDefined(We.$tagName$).then(()=>Me.$flags$|=128);if(ct.style){let ln=ct.style;"string"!=typeof ln&&(ln=ln[Me.$modeName$=(H=>li.map(ue=>ue(H)).find(ue=>!!ue))(ue)]);const Sn=rr(We,Me.$modeName$);if(!Wo.has(Sn)){const Pn=()=>{};Xn(Sn,ln,!!(1&We.$flags$)),Pn()}}}const jt=Me.$ancestorComponent$,Qt=()=>et(Me,!0);jt&&jt["s-rc"]?jt["s-rc"].push(Qt):Qt()});return function(Me,We,vt,ct){return H.apply(this,arguments)}}(),mi=H=>{yr(H,"connectedCallback")},It=H=>{const ue=H["s-cr"]=Kr.createComment("");ue["s-cn"]=!0,me(H,ue,H.firstChild)},zt=H=>{yr(H,"disconnectedCallback")},Tn=function(){var H=(0,f.A)(function*(ue){if(!(1&Yn.$flags$)){const Me=ei(ue);Me.$rmListeners$&&(Me.$rmListeners$.map(We=>We()),Me.$rmListeners$=void 0),null!=Me&&Me.$lazyInstance$?zt(Me.$lazyInstance$):null!=Me&&Me.$onReadyPromise$&&Me.$onReadyPromise$.then(()=>zt(Me.$lazyInstance$))}});return function(Me){return H.apply(this,arguments)}}(),R=H=>{const ue=H.cloneNode;H.cloneNode=function(Me){const We=this,vt=We.shadowRoot&&To,ct=ue.call(We,!!vt&&Me);if(!vt&&Me){let Qt,tn,jt=0;const ln=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;jt!We.childNodes[jt][Sn]),Qt&&(ct.__appendChild?ct.__appendChild(Qt.cloneNode(!0)):ct.appendChild(Qt.cloneNode(!0))),tn&&ct.appendChild(We.childNodes[jt].cloneNode(!0))}return ct}},U=H=>{H.__appendChild=H.appendChild,H.appendChild=function(ue){const Me=ue["s-sn"]=Hr(ue),We=gr(this.childNodes,Me,this.tagName);if(We){const vt=$r(We,Me),ct=vt[vt.length-1],jt=me(ct.parentNode,ue,ct.nextSibling);return de(this),jt}return this.__appendChild(ue)}},ee=H=>{H.__removeChild=H.removeChild,H.removeChild=function(ue){if(ue&&typeof ue["s-sn"]<"u"){const Me=gr(this.childNodes,ue["s-sn"],this.tagName);if(Me){const vt=$r(Me,ue["s-sn"]).find(ct=>ct===ue);if(vt)return vt.remove(),void de(this)}}return this.__removeChild(ue)}},$=H=>{const ue=H.prepend;H.prepend=function(...Me){Me.forEach(We=>{"string"==typeof We&&(We=this.ownerDocument.createTextNode(We));const vt=We["s-sn"]=Hr(We),ct=gr(this.childNodes,vt,this.tagName);if(ct){const jt=document.createTextNode("");jt["s-nr"]=We,ct["s-cr"].parentNode.__appendChild(jt),We["s-ol"]=jt;const tn=$r(ct,vt)[0];return me(tn.parentNode,We,tn.nextSibling)}return 1===We.nodeType&&We.getAttribute("slot")&&(We.hidden=!0),ue.call(this,We)})}},le=H=>{H.append=function(...ue){ue.forEach(Me=>{"string"==typeof Me&&(Me=this.ownerDocument.createTextNode(Me)),this.appendChild(Me)})}},Ue=H=>{const ue=H.insertAdjacentHTML;H.insertAdjacentHTML=function(Me,We){if("afterbegin"!==Me&&"beforeend"!==Me)return ue.call(this,Me,We);const vt=this.ownerDocument.createElement("_");let ct;if(vt.innerHTML=We,"afterbegin"===Me)for(;ct=vt.firstChild;)this.prepend(ct);else if("beforeend"===Me)for(;ct=vt.firstChild;)this.append(ct)}},dt=H=>{H.insertAdjacentText=function(ue,Me){this.insertAdjacentHTML(ue,Me)}},Gt=H=>{const ue=H.insertAdjacentElement;H.insertAdjacentElement=function(Me,We){return"afterbegin"!==Me&&"beforeend"!==Me?ue.call(this,Me,We):"afterbegin"===Me?(this.prepend(We),We):("beforeend"===Me&&this.append(We),We)}},qt=H=>{const ue=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(H,"__textContent",ue),Object.defineProperty(H,"textContent",{get(){return" "+$n(this.childNodes).map(vt=>{var ct,jt;const Qt=[];let tn=vt.nextSibling;for(;tn&&tn["s-sn"]===vt["s-sn"];)(3===tn.nodeType||1===tn.nodeType)&&Qt.push(null!=(jt=null==(ct=tn.textContent)?void 0:ct.trim())?jt:""),tn=tn.nextSibling;return Qt.filter(ln=>""!==ln).join(" ")}).filter(vt=>""!==vt).join(" ")+" "},set(Me){$n(this.childNodes).forEach(vt=>{let ct=vt.nextSibling;for(;ct&&ct["s-sn"]===vt["s-sn"];){const jt=ct;ct=ct.nextSibling,jt.remove()}if(""===vt["s-sn"]){const jt=this.ownerDocument.createTextNode(Me);jt["s-sn"]="",me(vt.parentElement,jt,vt.nextSibling)}else vt.remove()})}})},Wn=(H,ue)=>{class Me extends Array{item(vt){return this[vt]}}if(8&ue.$flags$){const We=H.__lookupGetter__("childNodes");Object.defineProperty(H,"children",{get(){return this.childNodes.map(vt=>1===vt.nodeType)}}),Object.defineProperty(H,"childElementCount",{get:()=>H.children.length}),Object.defineProperty(H,"childNodes",{get(){const vt=We.call(this);if(!(1&Yn.$flags$)&&2&ei(this).$flags$){const ct=new Me;for(let jt=0;jt{const ue=[];for(const Me of Array.from(H))Me["s-sr"]&&ue.push(Me),ue.push(...$n(Me.childNodes));return ue},Hr=H=>H["s-sn"]||1===H.nodeType&&H.getAttribute("slot")||"",gr=(H,ue,Me)=>{let vt,We=0;for(;We{const Me=[H];for(;(H=H.nextSibling)&&H["s-sn"]===ue;)Me.push(H);return Me},Ir=(H,ue={})=>{var Me;const vt=[],ct=ue.exclude||[],jt=ur.customElements,Qt=Kr.head,tn=Qt.querySelector("meta[charset]"),ln=Kr.createElement("style"),Sn=[],Pn=Kr.querySelectorAll(`[${se}]`);let Gn,Rn=!0,Ur=0;for(Object.assign(Yn,ue),Yn.$resourcesUrl$=new URL(ue.resourcesUrl||"./",Kr.baseURI).href,Yn.$flags$|=2;Ur{dr[1].map(yi=>{var bi;const Ai={$flags$:yi[0],$tagName$:yi[1],$members$:yi[2],$listeners$:yi[3]};4&Ai.$flags$&&(Tr=!0),Ai.$members$=yi[2],Ai.$listeners$=yi[3],Ai.$attrsToReflect$=[],Ai.$watchers$=null!=(bi=yi[4])?bi:{};const no=Ai.$tagName$,Ko=class extends HTMLElement{constructor(Dr){super(Dr),Vn(Dr=this,Ai),1&Ai.$flags$&&Dr.attachShadow({mode:"open",delegatesFocus:!!(16&Ai.$flags$)})}connectedCallback(){Gn&&(clearTimeout(Gn),Gn=null),Rn?Sn.push(this):Yn.jmp(()=>(H=>{if(!(1&Yn.$flags$)){const ue=ei(H),Me=ue.$cmpMeta$,We=()=>{};if(1&ue.$flags$)un(H,ue,Me.$listeners$),null!=ue&&ue.$lazyInstance$?mi(ue.$lazyInstance$):null!=ue&&ue.$onReadyPromise$&&ue.$onReadyPromise$.then(()=>mi(ue.$lazyInstance$));else{let vt;if(ue.$flags$|=1,vt=H.getAttribute(Te),vt){if(1&Me.$flags$){const ct=wn(H.shadowRoot,Me,H.getAttribute("s-mode"));H.classList.remove(ct+"-h",ct+"-s")}((H,ue,Me,We)=>{const ct=H.shadowRoot,jt=[],tn=ct?[]:null,ln=We.$vnode$=Zt(ue,null);Yn.$orgLocNodes$||Re(Kr.body,Yn.$orgLocNodes$=new Map),H[Te]=Me,H.removeAttribute(Te),re(ln,jt,[],tn,H,H,Me),jt.map(Sn=>{const Pn=Sn.$hostId$+"."+Sn.$nodeId$,Gn=Yn.$orgLocNodes$.get(Pn),Rn=Sn.$elm$;Gn&&To&&""===Gn["s-en"]&&Gn.parentNode.insertBefore(Rn,Gn.nextSibling),ct||(Rn["s-hn"]=ue,Gn&&(Rn["s-ol"]=Gn,Rn["s-ol"]["s-nr"]=Rn)),Yn.$orgLocNodes$.delete(Pn)}),ct&&tn.map(Sn=>{Sn&&ct.appendChild(Sn)})})(H,Me.$tagName$,vt,ue)}vt||12&Me.$flags$&&It(H);{let ct=H;for(;ct=ct.parentNode||ct.host;)if(1===ct.nodeType&&ct.hasAttribute("s-id")&&ct["s-p"]||ct["s-p"]){nt(ue,ue.$ancestorComponent$=ct);break}}Me.$members$&&Object.entries(Me.$members$).map(([ct,[jt]])=>{if(31&jt&&H.hasOwnProperty(ct)){const Qt=H[ct];delete H[ct],H[ct]=Qt}}),Mi(H,ue,Me)}We()}})(this))}disconnectedCallback(){Yn.jmp(()=>Tn(this))}componentOnReady(){return ei(this).$onReadyPromise$}};2&Ai.$flags$&&((H,ue)=>{R(H),U(H),le(H),$(H),Gt(H),Ue(H),dt(H),qt(H),Wn(H,ue),ee(H)})(Ko.prototype,Ai),Ai.$lazyBundleId$=dr[0],!ct.includes(no)&&!jt.get(no)&&(vt.push(no),jt.define(no,Fi(Ko,Ai,1)))})}),vt.length>0&&(Tr&&(ln.textContent+=Bt),ln.textContent+=vt+"{visibility:hidden}.hydrated{visibility:inherit}",ln.innerHTML.length)){ln.setAttribute("data-styles","");const dr=null!=(Me=Yn.$nonce$)?Me:Ke(Kr);null!=dr&&ln.setAttribute("nonce",dr),Qt.insertBefore(ln,tn?tn.nextSibling:Qt.firstChild)}Rn=!1,Sn.length?Sn.map(dr=>dr.connectedCallback()):Yn.jmp(()=>Gn=setTimeout(Pr,30))},un=(H,ue,Me,We)=>{Me&&Me.map(([vt,ct,jt])=>{const Qt=Wr(H,vt),tn=sr(ue,jt),ln=Fr(vt);Yn.ael(Qt,ct,tn,ln),(ue.$rmListeners$=ue.$rmListeners$||[]).push(()=>Yn.rel(Qt,ct,tn,ln))})},sr=(H,ue)=>Me=>{try{256&H.$flags$?H.$lazyInstance$[ue](Me):(H.$queuedListeners$=H.$queuedListeners$||[]).push([ue,Me])}catch(We){ai(We)}},Wr=(H,ue)=>4&ue?Kr:8&ue?ur:16&ue?Kr.body:H,Fr=H=>Do?{passive:!!(1&H),capture:!!(2&H)}:!!(2&H),pr=new WeakMap,ei=H=>pr.get(H),kn=(H,ue)=>pr.set(ue.$lazyInstance$=H,ue),Vn=(H,ue)=>{const Me={$flags$:0,$hostElement$:H,$cmpMeta$:ue,$instanceValues$:new Map};return Me.$onInstancePromise$=new Promise(We=>Me.$onInstanceResolve$=We),Me.$onReadyPromise$=new Promise(We=>Me.$onReadyResolve$=We),H["s-p"]=[],H["s-rc"]=[],un(H,Me,ue.$listeners$),pr.set(H,Me)},_o=(H,ue)=>ue in H,ai=(H,ue)=>(0,console.error)(H,ue),vi=new Map,Co=(H,ue,Me)=>{const We=H.$tagName$.replace(/-/g,"_"),vt=H.$lazyBundleId$,ct=vi.get(vt);return ct?ct[We]:x(8996)(`./${vt}.entry.js`).then(jt=>(vi.set(vt,jt),jt[We]),ai)},Wo=new Map,li=[],ur=typeof window<"u"?window:{},Kr=ur.document||{head:{}},Yn={$flags$:0,$resourcesUrl$:"",jmp:H=>H(),raf:H=>requestAnimationFrame(H),ael:(H,ue,Me,We)=>H.addEventListener(ue,Me,We),rel:(H,ue,Me,We)=>H.removeEventListener(ue,Me,We),ce:(H,ue)=>new CustomEvent(H,ue)},Lo=H=>{Object.assign(Yn,H)},To=!0,Do=(()=>{let H=!1;try{Kr.addEventListener("e",null,Object.defineProperty({},"passive",{get(){H=!0}}))}catch{}return H})(),bo=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Li=!1,S=[],q=[],ve=(H,ue)=>Me=>{H.push(Me),Li||(Li=!0,ue&&4&Yn.$flags$?at(ye):Yn.raf(ye))},P=H=>{for(let ue=0;ue{P(S),P(q),(Li=S.length>0)&&Yn.raf(ye)},at=H=>Promise.resolve(void 0).then(H),mr=ve(S,!1),Ei=ve(q,!0)},2725:(Dn,Ct,x)=>{"use strict";x.d(Ct,{b:()=>qe,c:()=>Je,d:()=>we,e:()=>He,g:()=>De,l:()=>Bt,s:()=>Zt,t:()=>mt,w:()=>At});var f=x(467),c=x(3664),ce=x(9672),Le=x(4929),K=x(4920);const qe="ionViewWillLeave",Je="ionViewDidLeave",we="ionViewWillUnload",Ae=j=>{j.tabIndex=-1,j.focus()},je=j=>null!==j.offsetParent,Be="ion-last-focus",lt_saveViewFocus=ie=>{if(c.c.get("focusManagerPriority",!1)){const re=document.activeElement;null!==re&&null!=ie&&ie.contains(re)&&re.setAttribute(Be,"true")}},lt_setViewFocus=ie=>{const J=c.c.get("focusManagerPriority",!1);if(Array.isArray(J)&&!ie.contains(document.activeElement)){const re=ie.querySelector(`[${Be}]`);if(re&&je(re))return void Ae(re);for(const Re of J)switch(Re){case"content":const Ge=ie.querySelector('main, [role="main"]');if(Ge&&je(Ge))return void Ae(Ge);break;case"heading":const Jt=ie.querySelector('h1, [role="heading"][aria-level="1"]');if(Jt&&je(Jt))return void Ae(Jt);break;case"banner":const yn=ie.querySelector('header, [role="banner"]');if(yn&&je(yn))return void Ae(yn);break;default:(0,Le.p)(`Unrecognized focus manager priority value ${Re}`)}Ae(ie)}},mt=j=>new Promise((W,ie)=>{(0,ce.w)(()=>{xt(j),pt(j).then(J=>{J.animation&&J.animation.destroy(),_t(j),W(J)},J=>{_t(j),ie(J)})})}),xt=j=>{const W=j.enteringEl,ie=j.leavingEl;lt_saveViewFocus(ie),tt(W,ie,j.direction),j.showGoBack?W.classList.add("can-go-back"):W.classList.remove("can-go-back"),Zt(W,!1),W.style.setProperty("pointer-events","none"),ie&&(Zt(ie,!1),ie.style.setProperty("pointer-events","none"))},pt=function(){var j=(0,f.A)(function*(W){const ie=yield Ne(W);return ie&&ce.B.isBrowser?Qe(ie,W):be(W)});return function(ie){return j.apply(this,arguments)}}(),_t=j=>{const W=j.enteringEl,ie=j.leavingEl;W.classList.remove("ion-page-invisible"),W.style.removeProperty("pointer-events"),void 0!==ie&&(ie.classList.remove("ion-page-invisible"),ie.style.removeProperty("pointer-events")),lt_setViewFocus(W)},Ne=function(){var j=(0,f.A)(function*(W){return W.leavingEl&&W.animated&&0!==W.duration?W.animationBuilder?W.animationBuilder:"ios"===W.mode?(yield Promise.resolve().then(x.bind(x,8454))).iosTransitionAnimation:(yield Promise.resolve().then(x.bind(x,3314))).mdTransitionAnimation:void 0});return function(ie){return j.apply(this,arguments)}}(),Qe=function(){var j=(0,f.A)(function*(W,ie){yield Ve(ie,!0);const J=W(ie.baseEl,ie);ze(ie.enteringEl,ie.leavingEl);const re=yield se(J,ie);return ie.progressCallback&&ie.progressCallback(void 0),re&>(ie.enteringEl,ie.leavingEl),{hasCompleted:re,animation:J}});return function(ie,J){return j.apply(this,arguments)}}(),be=function(){var j=(0,f.A)(function*(W){const ie=W.enteringEl,J=W.leavingEl,re=c.c.get("focusManagerPriority",!1);return yield Ve(W,re),ze(ie,J),gt(ie,J),{hasCompleted:!0}});return function(ie){return j.apply(this,arguments)}}(),Ve=function(){var j=(0,f.A)(function*(W,ie){(void 0!==W.deepWait?W.deepWait:ie)&&(yield Promise.all([He(W.enteringEl),He(W.leavingEl)])),yield Te(W.viewIsReady,W.enteringEl)});return function(ie,J){return j.apply(this,arguments)}}(),Te=function(){var j=(0,f.A)(function*(W,ie){W&&(yield W(ie))});return function(ie,J){return j.apply(this,arguments)}}(),se=(j,W)=>{const ie=W.progressCallback,J=new Promise(re=>{j.onFinish(Re=>re(1===Re))});return ie?(j.progressStart(!0),ie(j)):j.play(),J},ze=(j,W)=>{Bt(W,qe),Bt(j,"ionViewWillEnter")},gt=(j,W)=>{Bt(j,"ionViewDidEnter"),Bt(W,Je)},Bt=(j,W)=>{if(j){const ie=new CustomEvent(W,{bubbles:!1,cancelable:!1});j.dispatchEvent(ie)}},At=()=>new Promise(j=>(0,K.r)(()=>(0,K.r)(()=>j()))),He=function(){var j=(0,f.A)(function*(W){const ie=W;if(ie){if(null!=ie.componentOnReady){if(null!=(yield ie.componentOnReady()))return}else if(null!=ie.__registerHost)return void(yield new Promise(re=>(0,K.r)(re)));yield Promise.all(Array.from(ie.children).map(He))}});return function(ie){return j.apply(this,arguments)}}(),Zt=(j,W)=>{W?(j.setAttribute("aria-hidden","true"),j.classList.add("ion-page-hidden")):(j.hidden=!1,j.removeAttribute("aria-hidden"),j.classList.remove("ion-page-hidden"))},tt=(j,W,ie)=>{void 0!==j&&(j.style.zIndex="back"===ie?"99":"101"),void 0!==W&&(W.style.zIndex="100")},De=j=>j.classList.contains("ion-page")?j:j.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||j},4929:(Dn,Ct,x)=>{"use strict";x.d(Ct,{a:()=>c,b:()=>ce,p:()=>f});const f=(Le,...K)=>console.warn(`[Ionic Warning]: ${Le}`,...K),c=(Le,...K)=>console.error(`[Ionic Error]: ${Le}`,...K),ce=(Le,...K)=>console.error(`<${Le.tagName.toLowerCase()}> must be used inside ${K.join(" or ")}.`)},8476:(Dn,Ct,x)=>{"use strict";x.d(Ct,{d:()=>c,w:()=>f});const f=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Dn,Ct,x)=>{"use strict";x.d(Ct,{a:()=>Ae,b:()=>Zt,c:()=>ce,i:()=>tt});var f=x(9672);class c{constructor(){this.m=new Map}reset(j){this.m=new Map(Object.entries(j))}get(j,W){const ie=this.m.get(j);return void 0!==ie?ie:W}getBoolean(j,W=!1){const ie=this.m.get(j);return void 0===ie?W:"string"==typeof ie?"true"===ie:!!ie}getNumber(j,W){const ie=parseFloat(this.m.get(j));return isNaN(ie)?void 0!==W?W:NaN:ie}set(j,W){this.m.set(j,W)}}const ce=new c,Je="ionic-persist-config",Ae=(De,j)=>("string"==typeof De&&(j=De,De=void 0),(De=>je(De))(De).includes(j)),je=(De=window)=>{if(typeof De>"u")return[];De.Ionic=De.Ionic||{};let j=De.Ionic.platforms;return null==j&&(j=De.Ionic.platforms=Ke(De),j.forEach(W=>De.document.documentElement.classList.add(`plt-${W}`))),j},Ke=De=>{const j=ce.get("platform");return Object.keys(At).filter(W=>{const ie=null==j?void 0:j[W];return"function"==typeof ie?ie(De):At[W](De)})},it=De=>!!(gt(De,/iPad/i)||gt(De,/Macintosh/i)&&Ne(De)),mt=De=>gt(De,/android|sink/i),Ne=De=>Bt(De,"(any-pointer:coarse)"),be=De=>Ve(De)||Te(De),Ve=De=>!!(De.cordova||De.phonegap||De.PhoneGap),Te=De=>{const j=De.Capacitor;return!(null==j||!j.isNative)},gt=(De,j)=>j.test(De.navigator.userAgent),Bt=(De,j)=>{var W;return null===(W=De.matchMedia)||void 0===W?void 0:W.call(De,j).matches},At={ipad:it,iphone:De=>gt(De,/iPhone/i),ios:De=>gt(De,/iPhone|iPod/i)||it(De),android:mt,phablet:De=>{const j=De.innerWidth,W=De.innerHeight,ie=Math.min(j,W),J=Math.max(j,W);return ie>390&&ie<520&&J>620&&J<800},tablet:De=>{const j=De.innerWidth,W=De.innerHeight,ie=Math.min(j,W),J=Math.max(j,W);return it(De)||(De=>mt(De)&&!gt(De,/mobile/i))(De)||ie>460&&ie<820&&J>780&&J<1400},cordova:Ve,capacitor:Te,electron:De=>gt(De,/electron/i),pwa:De=>{var j;return!!(null!==(j=De.matchMedia)&&void 0!==j&&j.call(De,"(display-mode: standalone)").matches||De.navigator.standalone)},mobile:Ne,mobileweb:De=>Ne(De)&&!be(De),desktop:De=>!Ne(De),hybrid:be};let He;const Zt=De=>De&&(0,f.g)(De)||He,tt=(De={})=>{if(typeof window>"u")return;const j=window.document,W=window,ie=W.Ionic=W.Ionic||{},J={};De._ael&&(J.ael=De._ael),De._rel&&(J.rel=De._rel),De._ce&&(J.ce=De._ce),(0,f.a)(J);const re=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(De=>{try{const j=De.sessionStorage.getItem(Je);return null!==j?JSON.parse(j):{}}catch{return{}}})(W)),{persistConfig:!1}),ie.config),(De=>{const j={};return De.location.search.slice(1).split("&").map(W=>W.split("=")).map(([W,ie])=>{try{return[decodeURIComponent(W),decodeURIComponent(ie)]}catch{return["",""]}}).filter(([W])=>((De,j)=>De.substr(0,j.length)===j)(W,"ionic:")).map(([W,ie])=>[W.slice(6),ie]).forEach(([W,ie])=>{j[W]=ie}),j})(W)),De);ce.reset(re),ce.getBoolean("persistConfig")&&((De,j)=>{try{De.sessionStorage.setItem(Je,JSON.stringify(j))}catch{return}})(W,re),je(W),ie.config=ce,ie.mode=He=ce.get("mode",j.documentElement.getAttribute("mode")||(Ae(W,"ios")?"ios":"md")),ce.set("mode",He),j.documentElement.setAttribute("mode",He),j.documentElement.classList.add(He),ce.getBoolean("_testing")&&ce.set("animated",!1);const Re=Jt=>{var yn;return null===(yn=Jt.tagName)||void 0===yn?void 0:yn.startsWith("ION-")},Ge=Jt=>["ios","md"].includes(Jt);(0,f.c)(Jt=>{for(;Jt;){const yn=Jt.mode||Jt.getAttribute("mode");if(yn){if(Ge(yn))return yn;Re(Jt)&&console.warn('Invalid ionic mode: "'+yn+'", expected: "ios" or "md"')}Jt=Jt.parentElement}return He})}},8454:(Dn,Ct,x)=>{"use strict";x.r(Ct),x.d(Ct,{iosTransitionAnimation:()=>Be,shadow:()=>qe});var f=x(9986),c=x(2725);x(8476),x(3664),x(9672);const te=Et=>document.querySelector(`${Et}.ion-cloned-element`),qe=Et=>Et.shadowRoot||Et,Je=Et=>{const lt="ION-TABS"===Et.tagName?Et:Et.querySelector("ion-tabs"),mt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=lt){const xt=lt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=xt?xt.querySelector(mt):null}return Et.querySelector(mt)},we=(Et,lt)=>{const mt="ION-TABS"===Et.tagName?Et:Et.querySelector("ion-tabs");let xt=[];if(null!=mt){const pt=mt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=pt&&(xt=pt.querySelectorAll("ion-buttons"))}else xt=Et.querySelectorAll("ion-buttons");for(const pt of xt){const _t=pt.closest("ion-header"),Ne=_t&&!_t.classList.contains("header-collapse-condense-inactive"),Qe=pt.querySelector("ion-back-button"),be=pt.classList.contains("buttons-collapse");if(null!==Qe&&("start"===pt.slot||""===pt.slot)&&(be&&Ne&<||!be))return Qe}return null},je=(Et,lt,mt,xt,pt,_t,Ne,Qe,be)=>{var Ve,Te;const se=lt?`calc(100% - ${pt.right+4}px)`:pt.left-4+"px",ze=lt?"right":"left",gt=lt?"left":"right",Bt=lt?"right":"left";let At=1,He=1,Zt=`scale(${He})`;const tt="scale(1)";if(_t&&Ne){const Ft=(null===(Ve=_t.textContent)||void 0===Ve?void 0:Ve.trim())===(null===(Te=Qe.textContent)||void 0===Te?void 0:Te.trim());At=be.width/Ne.width,He=(be.height-it)/Ne.height,Zt=Ft?`scale(${At}, ${He})`:`scale(${He})`}const j=qe(xt).querySelector("ion-icon").getBoundingClientRect(),W=lt?j.width/2-(j.right-pt.right)+"px":pt.left-j.width/2+"px",ie=lt?`-${window.innerWidth-pt.right}px`:`${pt.left}px`,J=`${be.top}px`,re=`${pt.top}px`,Jt=mt?[{offset:0,transform:`translate3d(${ie}, ${re}, 0)`},{offset:1,transform:`translate3d(${W}, ${J}, 0)`}]:[{offset:0,transform:`translate3d(${W}, ${J}, 0)`},{offset:1,transform:`translate3d(${ie}, ${re}, 0)`}],Fn=mt?[{offset:0,opacity:1,transform:tt},{offset:1,opacity:0,transform:Zt}]:[{offset:0,opacity:0,transform:Zt},{offset:1,opacity:1,transform:tt}],Zn=mt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],Xn=(0,f.c)(),wn=(0,f.c)(),or=(0,f.c)(),rr=te("ion-back-button"),Xe=qe(rr).querySelector(".button-text"),wt=qe(rr).querySelector("ion-icon");rr.text=xt.text,rr.mode=xt.mode,rr.icon=xt.icon,rr.color=xt.color,rr.disabled=xt.disabled,rr.style.setProperty("display","block"),rr.style.setProperty("position","fixed"),wn.addElement(wt),Xn.addElement(Xe),or.addElement(rr),or.beforeStyles({position:"absolute",top:"0px",[Bt]:"0px"}).beforeAddWrite(()=>{xt.style.setProperty("display","none"),rr.style.setProperty(ze,se)}).afterAddWrite(()=>{xt.style.setProperty("display",""),rr.style.setProperty("display","none"),rr.style.removeProperty(ze)}).keyframes(Jt),Xn.beforeStyles({"transform-origin":`${ze} top`}).keyframes(Fn),wn.beforeStyles({"transform-origin":`${gt} center`}).keyframes(Zn),Et.addAnimation([Xn,wn,or])},Ke=(Et,lt,mt,xt,pt,_t,Ne,Qe,be)=>{var Ve,Te;const se=lt?"right":"left",ze=lt?`calc(100% - ${pt.right}px)`:`${pt.left}px`,Bt=`${pt.top}px`;let He=lt?`-${window.innerWidth-Ne.right-8}px`:`${Ne.x+8}px`,Zt=.5;const tt="scale(1)";let De=`scale(${Zt})`;if(Qe&&be){He=lt?`-${window.innerWidth-be.right-8}px`:be.x-8+"px";const yn=(null===(Ve=Qe.textContent)||void 0===Ve?void 0:Ve.trim())===(null===(Te=xt.textContent)||void 0===Te?void 0:Te.trim());Zt=be.height/(_t.height-it),De=yn?`scale(${be.width/_t.width}, ${Zt})`:`scale(${Zt})`}const ie=Ne.top+Ne.height/2-pt.height*Zt/2+"px",Re=mt?[{offset:0,opacity:0,transform:`translate3d(${He}, ${ie}, 0) ${De}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Bt}, 0) ${tt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Bt}, 0) ${tt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${He}, ${ie}, 0) ${De}`}],Ge=te("ion-title"),Jt=(0,f.c)();Ge.innerText=xt.innerText,Ge.size=xt.size,Ge.color=xt.color,Jt.addElement(Ge),Jt.beforeStyles({"transform-origin":`${se} top`,height:`${pt.height}px`,display:"",position:"relative",[se]:ze}).beforeAddWrite(()=>{xt.style.setProperty("opacity","0")}).afterAddWrite(()=>{xt.style.setProperty("opacity",""),Ge.style.setProperty("display","none")}).keyframes(Re),Et.addAnimation(Jt)},Be=(Et,lt)=>{var mt;try{const xt="cubic-bezier(0.32,0.72,0,1)",pt="opacity",_t="transform",Ne="0%",be="rtl"===Et.ownerDocument.dir,Ve=be?"-99.5%":"99.5%",Te=be?"33%":"-33%",se=lt.enteringEl,ze=lt.leavingEl,gt="back"===lt.direction,Bt=se.querySelector(":scope > ion-content"),At=se.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),He=se.querySelectorAll(":scope > ion-header > ion-toolbar"),Zt=(0,f.c)(),tt=(0,f.c)();if(Zt.addElement(se).duration((null!==(mt=lt.duration)&&void 0!==mt?mt:0)||540).easing(lt.easing||xt).fill("both").beforeRemoveClass("ion-page-invisible"),ze&&null!=Et){const ie=(0,f.c)();ie.addElement(Et),Zt.addAnimation(ie)}if(Bt||0!==He.length||0!==At.length?(tt.addElement(Bt),tt.addElement(At)):tt.addElement(se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Zt.addAnimation(tt),gt?tt.beforeClearStyles([pt]).fromTo("transform",`translateX(${Te})`,`translateX(${Ne})`).fromTo(pt,.8,1):tt.beforeClearStyles([pt]).fromTo("transform",`translateX(${Ve})`,`translateX(${Ne})`),Bt){const ie=qe(Bt).querySelector(".transition-effect");if(ie){const J=ie.querySelector(".transition-cover"),re=ie.querySelector(".transition-shadow"),Re=(0,f.c)(),Ge=(0,f.c)(),Jt=(0,f.c)();Re.addElement(ie).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ge.addElement(J).beforeClearStyles([pt]).fromTo(pt,0,.1),Jt.addElement(re).beforeClearStyles([pt]).fromTo(pt,.03,.7),Re.addAnimation([Ge,Jt]),tt.addAnimation([Re])}}const De=se.querySelector("ion-header.header-collapse-condense"),{forward:j,backward:W}=((Et,lt,mt,xt,pt)=>{const _t=we(xt,mt),Ne=Je(pt),Qe=Je(xt),be=we(pt,mt),Ve=null!==_t&&null!==Ne&&!mt,Te=null!==Qe&&null!==be&&mt;if(Ve){const se=Ne.getBoundingClientRect(),ze=_t.getBoundingClientRect(),gt=qe(_t).querySelector(".button-text"),Bt=null==gt?void 0:gt.getBoundingClientRect(),He=qe(Ne).querySelector(".toolbar-title").getBoundingClientRect();Ke(Et,lt,mt,Ne,se,He,ze,gt,Bt),je(Et,lt,mt,_t,ze,gt,Bt,Ne,He)}else if(Te){const se=Qe.getBoundingClientRect(),ze=be.getBoundingClientRect(),gt=qe(be).querySelector(".button-text"),Bt=null==gt?void 0:gt.getBoundingClientRect(),He=qe(Qe).querySelector(".toolbar-title").getBoundingClientRect();Ke(Et,lt,mt,Qe,se,He,ze,gt,Bt),je(Et,lt,mt,be,ze,gt,Bt,Qe,He)}return{forward:Ve,backward:Te}})(Zt,be,gt,se,ze);if(He.forEach(ie=>{const J=(0,f.c)();J.addElement(ie),Zt.addAnimation(J);const re=(0,f.c)();re.addElement(ie.querySelector("ion-title"));const Re=(0,f.c)(),Ge=Array.from(ie.querySelectorAll("ion-buttons,[menuToggle]")),Jt=ie.closest("ion-header"),yn=null==Jt?void 0:Jt.classList.contains("header-collapse-condense-inactive");let rn;rn=Ge.filter(gt?Xn=>{const wn=Xn.classList.contains("buttons-collapse");return wn&&!yn||!wn}:Xn=>!Xn.classList.contains("buttons-collapse")),Re.addElement(rn);const Fn=(0,f.c)();Fn.addElement(ie.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Nn=(0,f.c)();Nn.addElement(qe(ie).querySelector(".toolbar-background"));const qn=(0,f.c)(),Zn=ie.querySelector("ion-back-button");if(Zn&&qn.addElement(Zn),J.addAnimation([re,Re,Fn,Nn,qn]),Re.fromTo(pt,.01,1),Fn.fromTo(pt,.01,1),gt)yn||re.fromTo("transform",`translateX(${Te})`,`translateX(${Ne})`).fromTo(pt,.01,1),Fn.fromTo("transform",`translateX(${Te})`,`translateX(${Ne})`),qn.fromTo(pt,.01,1);else if(De||re.fromTo("transform",`translateX(${Ve})`,`translateX(${Ne})`).fromTo(pt,.01,1),Fn.fromTo("transform",`translateX(${Ve})`,`translateX(${Ne})`),Nn.beforeClearStyles([pt,"transform"]),(null==Jt?void 0:Jt.translucent)?Nn.fromTo("transform",be?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Nn.fromTo(pt,.01,"var(--opacity)"),j||qn.fromTo(pt,.01,1),Zn&&!j){const wn=(0,f.c)();wn.addElement(qe(Zn).querySelector(".button-text")).fromTo("transform",be?"translateX(-100px)":"translateX(100px)","translateX(0px)"),J.addAnimation(wn)}}),ze){const ie=(0,f.c)(),J=ze.querySelector(":scope > ion-content"),re=ze.querySelectorAll(":scope > ion-header > ion-toolbar"),Re=ze.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(J||0!==re.length||0!==Re.length?(ie.addElement(J),ie.addElement(Re)):ie.addElement(ze.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Zt.addAnimation(ie),gt){ie.beforeClearStyles([pt]).fromTo("transform",`translateX(${Ne})`,be?"translateX(-100%)":"translateX(100%)");const Ge=(0,c.g)(ze);Zt.afterAddWrite(()=>{"normal"===Zt.getDirection()&&Ge.style.setProperty("display","none")})}else ie.fromTo("transform",`translateX(${Ne})`,`translateX(${Te})`).fromTo(pt,1,.8);if(J){const Ge=qe(J).querySelector(".transition-effect");if(Ge){const Jt=Ge.querySelector(".transition-cover"),yn=Ge.querySelector(".transition-shadow"),rn=(0,f.c)(),Fn=(0,f.c)(),Nn=(0,f.c)();rn.addElement(Ge).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Fn.addElement(Jt).beforeClearStyles([pt]).fromTo(pt,.1,0),Nn.addElement(yn).beforeClearStyles([pt]).fromTo(pt,.7,.03),rn.addAnimation([Fn,Nn]),ie.addAnimation([rn])}}re.forEach(Ge=>{const Jt=(0,f.c)();Jt.addElement(Ge);const yn=(0,f.c)();yn.addElement(Ge.querySelector("ion-title"));const rn=(0,f.c)(),Fn=Ge.querySelectorAll("ion-buttons,[menuToggle]"),Nn=Ge.closest("ion-header"),qn=null==Nn?void 0:Nn.classList.contains("header-collapse-condense-inactive"),Zn=Array.from(Fn).filter(wt=>{const Ft=wt.classList.contains("buttons-collapse");return Ft&&!qn||!Ft});rn.addElement(Zn);const Xn=(0,f.c)(),wn=Ge.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");wn.length>0&&Xn.addElement(wn);const or=(0,f.c)();or.addElement(qe(Ge).querySelector(".toolbar-background"));const rr=(0,f.c)(),Xe=Ge.querySelector("ion-back-button");if(Xe&&rr.addElement(Xe),Jt.addAnimation([yn,rn,Xn,rr,or]),Zt.addAnimation(Jt),rr.fromTo(pt,.99,0),rn.fromTo(pt,.99,0),Xn.fromTo(pt,.99,0),gt){if(qn||yn.fromTo("transform",`translateX(${Ne})`,be?"translateX(-100%)":"translateX(100%)").fromTo(pt,.99,0),Xn.fromTo("transform",`translateX(${Ne})`,be?"translateX(-100%)":"translateX(100%)"),or.beforeClearStyles([pt,"transform"]),(null==Nn?void 0:Nn.translucent)?or.fromTo("transform","translateX(0px)",be?"translateX(-100%)":"translateX(100%)"):or.fromTo(pt,"var(--opacity)",0),Xe&&!W){const Ft=(0,f.c)();Ft.addElement(qe(Xe).querySelector(".button-text")).fromTo("transform",`translateX(${Ne})`,`translateX(${(be?-124:124)+"px"})`),Jt.addAnimation(Ft)}}else qn||yn.fromTo("transform",`translateX(${Ne})`,`translateX(${Te})`).fromTo(pt,.99,0).afterClearStyles([_t,pt]),Xn.fromTo("transform",`translateX(${Ne})`,`translateX(${Te})`).afterClearStyles([_t,pt]),rr.afterClearStyles([pt]),yn.afterClearStyles([pt]),rn.afterClearStyles([pt])})}return Zt}catch(xt){throw xt}},it=10},3314:(Dn,Ct,x)=>{"use strict";x.r(Ct),x.d(Ct,{mdTransitionAnimation:()=>Ee});var f=x(9986),c=x(2725);x(8476),x(3664),x(9672);const Ee=(te,qe)=>{var Je,we,Ae;const Be="back"===qe.direction,Et=qe.leavingEl,lt=(0,c.g)(qe.enteringEl),mt=lt.querySelector("ion-toolbar"),xt=(0,f.c)();if(xt.addElement(lt).fill("both").beforeRemoveClass("ion-page-invisible"),Be?xt.duration((null!==(Je=qe.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):xt.duration((null!==(we=qe.duration)&&void 0!==we?we:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),mt){const pt=(0,f.c)();pt.addElement(mt),xt.addAnimation(pt)}if(Et&&Be){xt.duration((null!==(Ae=qe.duration)&&void 0!==Ae?Ae:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const pt=(0,f.c)();pt.addElement((0,c.g)(Et)).onFinish(_t=>{1===_t&&pt.elements.length>0&&pt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),xt.addAnimation(pt)}return xt}},6002:(Dn,Ct,x)=>{"use strict";x.d(Ct,{B:()=>Fn,F:()=>rr,G:()=>Nn,O:()=>qn,a:()=>lt,b:()=>mt,c:()=>Ne,d:()=>Zn,e:()=>Xn,f:()=>j,g:()=>ie,h:()=>Re,i:()=>Jt,j:()=>be,k:()=>Ve,l:()=>xt,m:()=>pt,n:()=>we,o:()=>tt,q:()=>Ae,s:()=>rn});var f=x(467),c=x(8476),ce=x(4920),Le=x(6411),K=x(3664),Ee=x(8621),te=x(1970),qe=x(4929);const Je='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',we=(Xe,wt)=>{const Ft=Xe.querySelector(Je);je(Ft,null!=wt?wt:Xe)},Ae=(Xe,wt)=>{const Ft=Array.from(Xe.querySelectorAll(Je));je(Ft.length>0?Ft[Ft.length-1]:null,null!=wt?wt:Xe)},je=(Xe,wt)=>{let Ft=Xe;const en=null==Xe?void 0:Xe.shadowRoot;en&&(Ft=en.querySelector(Je)||Xe),Ft?(0,ce.f)(Ft):wt.focus()};let Ke=0,Be=0;const it=new WeakMap,Et=Xe=>({create:wt=>Te(Xe,wt),dismiss:(wt,Ft,en)=>At(document,wt,Ft,Xe,en),getTop:()=>(0,f.A)(function*(){return tt(document,Xe)})()}),lt=Et("ion-alert"),mt=Et("ion-action-sheet"),xt=Et("ion-loading"),pt=Et("ion-modal"),Ne=Et("ion-popover"),be=Xe=>{typeof document<"u"&&Bt(document);const wt=Ke++;Xe.overlayIndex=wt},Ve=Xe=>(Xe.hasAttribute("id")||(Xe.id="ion-overlay-"+ ++Be),Xe.id),Te=(Xe,wt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(Xe).then(()=>{const Ft=document.createElement(Xe);return Ft.classList.add("overlay-hidden"),Object.assign(Ft,Object.assign(Object.assign({},wt),{hasController:!0})),J(document).appendChild(Ft),new Promise(en=>(0,ce.c)(Ft,en))}):Promise.resolve(),ze=(Xe,wt)=>{let Ft=Xe;const en=null==Xe?void 0:Xe.shadowRoot;en&&(Ft=en.querySelector(Je)||Xe),Ft?(0,ce.f)(Ft):wt.focus()},Bt=Xe=>{0===Ke&&(Ke=1,Xe.addEventListener("focus",wt=>{((Xe,wt)=>{const Ft=tt(wt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),en=Xe.target;Ft&&en&&!Ft.classList.contains(rr)&&(Ft.shadowRoot?(()=>{if(Ft.contains(en))Ft.lastFocus=en;else if("ION-TOAST"===en.tagName)ze(Ft.lastFocus,Ft);else{const Cn=Ft.lastFocus;we(Ft),Cn===wt.activeElement&&Ae(Ft),Ft.lastFocus=wt.activeElement}})():(()=>{if(Ft===en)Ft.lastFocus=void 0;else if("ION-TOAST"===en.tagName)ze(Ft.lastFocus,Ft);else{const Cn=(0,ce.g)(Ft);if(!Cn.contains(en))return;const An=Cn.querySelector(".ion-overlay-wrapper");if(!An)return;if(An.contains(en)||en===Cn.querySelector("ion-backdrop"))Ft.lastFocus=en;else{const sn=Ft.lastFocus;we(An,Ft),sn===wt.activeElement&&Ae(An,Ft),Ft.lastFocus=wt.activeElement}}})())})(wt,Xe)},!0),Xe.addEventListener("ionBackButton",wt=>{const Ft=tt(Xe);null!=Ft&&Ft.backdropDismiss&&wt.detail.register(Le.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ft.dismiss(void 0,Fn)})}),(0,Le.shouldUseCloseWatcher)()||Xe.addEventListener("keydown",wt=>{if("Escape"===wt.key){const Ft=tt(Xe);null!=Ft&&Ft.backdropDismiss&&Ft.dismiss(void 0,Fn)}}))},At=(Xe,wt,Ft,en,on)=>{const Ar=tt(Xe,en,on);return Ar?Ar.dismiss(wt,Ft):Promise.reject("overlay does not exist")},Zt=(Xe,wt)=>((Xe,wt)=>(void 0===wt&&(wt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(Xe.querySelectorAll(wt)).filter(Ft=>Ft.overlayIndex>0)))(Xe,wt).filter(Ft=>!(Xe=>Xe.classList.contains("overlay-hidden"))(Ft)),tt=(Xe,wt,Ft)=>{const en=Zt(Xe,wt);return void 0===Ft?en[en.length-1]:en.find(on=>on.id===Ft)},De=(Xe=!1)=>{const Ft=J(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ft&&(Xe?Ft.setAttribute("aria-hidden","true"):Ft.removeAttribute("aria-hidden"))},j=function(){var Xe=(0,f.A)(function*(wt,Ft,en,on,Ar){var Cn,An;if(wt.presented)return;De(!0),document.body.classList.add(te.B),wn(wt.el),wt.presented=!0,wt.willPresent.emit(),null===(Cn=wt.willPresentShorthand)||void 0===Cn||Cn.emit();const sn=(0,K.b)(wt),Kt=wt.enterAnimation?wt.enterAnimation:K.c.get(Ft,"ios"===sn?en:on);(yield re(wt,Kt,wt.el,Ar))&&(wt.didPresent.emit(),null===(An=wt.didPresentShorthand)||void 0===An||An.emit()),"ION-TOAST"!==wt.el.tagName&&W(wt.el),wt.keyboardClose&&(null===document.activeElement||!wt.el.contains(document.activeElement))&&wt.el.focus(),wt.el.removeAttribute("aria-hidden")});return function(Ft,en,on,Ar,Cn){return Xe.apply(this,arguments)}}(),W=function(){var Xe=(0,f.A)(function*(wt){let Ft=document.activeElement;if(!Ft)return;const en=null==Ft?void 0:Ft.shadowRoot;en&&(Ft=en.querySelector(Je)||Ft),yield wt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ft.focus()});return function(Ft){return Xe.apply(this,arguments)}}(),ie=function(){var Xe=(0,f.A)(function*(wt,Ft,en,on,Ar,Cn,An){var sn,Kt;if(!wt.presented)return!1;void 0!==c.d&&1===Zt(c.d).length&&(De(!1),document.body.classList.remove(te.B)),wt.presented=!1;try{wt.el.style.setProperty("pointer-events","none"),wt.willDismiss.emit({data:Ft,role:en}),null===(sn=wt.willDismissShorthand)||void 0===sn||sn.emit({data:Ft,role:en});const Rr=(0,K.b)(wt),Lr=wt.leaveAnimation?wt.leaveAnimation:K.c.get(on,"ios"===Rr?Ar:Cn);en!==Nn&&(yield re(wt,Lr,wt.el,An)),wt.didDismiss.emit({data:Ft,role:en}),null===(Kt=wt.didDismissShorthand)||void 0===Kt||Kt.emit({data:Ft,role:en}),(it.get(wt)||[]).forEach(Cr=>Cr.destroy()),it.delete(wt),wt.el.classList.add("overlay-hidden"),wt.el.style.removeProperty("pointer-events"),void 0!==wt.el.lastFocus&&(wt.el.lastFocus=void 0)}catch(Rr){console.error(Rr)}return wt.el.remove(),or(),!0});return function(Ft,en,on,Ar,Cn,An,sn){return Xe.apply(this,arguments)}}(),J=Xe=>Xe.querySelector("ion-app")||Xe.body,re=function(){var Xe=(0,f.A)(function*(wt,Ft,en,on){en.classList.remove("overlay-hidden");const Cn=Ft(wt.el,on);(!wt.animated||!K.c.getBoolean("animated",!0))&&Cn.duration(0),wt.keyboardClose&&Cn.beforeAddWrite(()=>{const sn=en.ownerDocument.activeElement;null!=sn&&sn.matches("input,ion-input, ion-textarea")&&sn.blur()});const An=it.get(wt)||[];return it.set(wt,[...An,Cn]),yield Cn.play(),!0});return function(Ft,en,on,Ar){return Xe.apply(this,arguments)}}(),Re=(Xe,wt)=>{let Ft;const en=new Promise(on=>Ft=on);return Ge(Xe,wt,on=>{Ft(on.detail)}),en},Ge=(Xe,wt,Ft)=>{const en=on=>{(0,ce.b)(Xe,wt,en),Ft(on)};(0,ce.a)(Xe,wt,en)},Jt=Xe=>"cancel"===Xe||Xe===Fn,yn=Xe=>Xe(),rn=(Xe,wt)=>{if("function"==typeof Xe)return K.c.get("_zoneGate",yn)(()=>{try{return Xe(wt)}catch(en){throw en}})},Fn="backdrop",Nn="gesture",qn=39,Zn=Xe=>{let Ft,wt=!1;const en=(0,Ee.C)(),on=(An=!1)=>{if(Ft&&!An)return{delegate:Ft,inline:wt};const{el:sn,hasController:Kt,delegate:fr}=Xe;return wt=null!==sn.parentNode&&!Kt,Ft=wt?fr||en:fr,{inline:wt,delegate:Ft}};return{attachViewToDom:function(){var An=(0,f.A)(function*(sn){const{delegate:Kt}=on(!0);if(Kt)return yield Kt.attachViewToDom(Xe.el,sn);const{hasController:fr}=Xe;if(fr&&void 0!==sn)throw new Error("framework delegate is missing");return null});return function(Kt){return An.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:An}=on();An&&void 0!==Xe.el&&An.removeViewFromDom(Xe.el.parentElement,Xe.el)}}},Xn=()=>{let Xe;const wt=()=>{Xe&&(Xe(),Xe=void 0)};return{addClickListener:(en,on)=>{wt();const Ar=void 0!==on?document.getElementById(on):null;Ar?Xe=((An,sn)=>{const Kt=()=>{sn.present()};return An.addEventListener("click",Kt),()=>{An.removeEventListener("click",Kt)}})(Ar,en):(0,qe.p)(`A trigger element with the ID "${on}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,en)},removeClickListener:wt}},wn=Xe=>{var wt;if(void 0===c.d)return;const Ft=Zt(c.d);for(let en=Ft.length-1;en>=0;en--){const on=Ft[en],Ar=null!==(wt=Ft[en+1])&&void 0!==wt?wt:Xe;(Ar.hasAttribute("aria-hidden")||"ION-TOAST"!==Ar.tagName)&&on.setAttribute("aria-hidden","true")}},or=()=>{if(void 0===c.d)return;const Xe=Zt(c.d);for(let wt=Xe.length-1;wt>=0;wt--){const Ft=Xe[wt];if(Ft.removeAttribute("aria-hidden"),"ION-TOAST"!==Ft.tagName)break}},rr="ion-disable-focus-trap"},63:(Dn,Ct,x)=>{"use strict";var f=x(345),c=x(4438),ce=x(305),Le=x(3656),K=x(7863),Ee=x(177);function te(J,re){if(1&J&&(c.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),c.nrm(2,"ion-icon",7),c.j41(3,"ion-label",8),c.EFF(4),c.k0s()()()),2&J){const Re=re.$implicit;c.R7$(),c.Y8G("routerLink",Re.url),c.R7$(),c.Y8G("name",Re.icon),c.R7$(2),c.JRh(Re.title)}}let qe=(()=>{var J;class re{constructor(Ge,Jt){this.router=Ge,this.menuController=Jt,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"radio"},{title:"Flamegraph",url:"/flame-graph",icon:"flame"},{title:"My Team",url:"/myteam",icon:"people"}]}ngOnInit(){this.router.events.subscribe(Ge=>{Ge instanceof ce.wF&&(Ge.urlAfterRedirects.includes("/login")||Ge.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(J=re).\u0275fac=function(Ge){return new(Ge||J)(c.rXU(ce.Ix),c.rXU(K._t))},J.\u0275cmp=c.VBU({type:J,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"routerLink"],["slot","start",3,"name"],["color","primary"]],template:function(Ge,Jt){1&Ge&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,te,5,3,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&Ge&&(c.R7$(9),c.Y8G("ngForOf",Jt.menuItems))},dependencies:[Ee.Sq,K.U1,K.W9,K.eU,K.iq,K.uz,K.he,K.nf,K.oS,K.cA,K.HP,K.BC,K.ai,K.Rg,K.N7,ce.Wk]}),re})();var Je=x(9842),we=x(8737),Ae=x(1203),je=x(6354),Ke=x(6697);x(2214);const it=(0,je.T)(J=>!!J);let Et=(()=>{var J;class re{constructor(Ge,Jt){(0,Je.A)(this,"router",void 0),(0,Je.A)(this,"auth",void 0),(0,Je.A)(this,"canActivate",(yn,rn)=>{const Fn=yn.data.authGuardPipe||(()=>it);return(0,we.kQ)(this.auth).pipe((0,Ke.s)(1),Fn(yn,rn),(0,je.T)(Nn=>"boolean"==typeof Nn?Nn:Array.isArray(Nn)?this.router.createUrlTree(Nn):this.router.parseUrl(Nn)))}),this.router=Ge,this.auth=Jt}}return J=re,(0,Je.A)(re,"\u0275fac",function(Ge){return new(Ge||J)(c.KVO(ce.Ix),c.KVO(we.Nj))}),(0,Je.A)(re,"\u0275prov",c.jDH({token:J,factory:J.\u0275fac,providedIn:"any"})),re})();const lt=J=>({canActivate:[Et],data:{authGuardPipe:J}}),Te=()=>{return J=[""],(0,Ae.F)(it,(0,je.T)(re=>re||J));var J},se=()=>{return J=["home"],(0,Ae.F)(it,(0,je.T)(re=>re&&J||!0));var J},ze=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([x.e(2076),x.e(2069)]).then(x.bind(x,2069)).then(J=>J.HomePageModule),...lt(Te)},{path:"register",loadChildren:()=>Promise.all([x.e(2076),x.e(3825)]).then(x.bind(x,3825)).then(J=>J.RegisterPageModule),...lt(se)},{path:"login",loadChildren:()=>Promise.all([x.e(2076),x.e(6688)]).then(x.bind(x,6688)).then(J=>J.LoginPageModule),...lt(se)},{path:"myteam",loadChildren:()=>Promise.all([x.e(2076),x.e(839)]).then(x.bind(x,839)).then(J=>J.MyteamPageModule),...lt(Te)},{path:"model-product",loadChildren:()=>Promise.all([x.e(2076),x.e(3998)]).then(x.bind(x,3998)).then(J=>J.ModelProductPageModule),...lt(Te)},{path:"new-product",loadChildren:()=>Promise.all([x.e(2076),x.e(7444)]).then(x.bind(x,7444)).then(J=>J.NewProductPageModule),...lt(Te)},{path:"view-product",loadChildren:()=>Promise.all([x.e(2076),x.e(6927)]).then(x.bind(x,6927)).then(J=>J.ViewProductPageModule),...lt(Te)},{path:"show-map",loadChildren:()=>Promise.all([x.e(9273),x.e(2076),x.e(246)]).then(x.bind(x,246)).then(J=>J.ShowMapPageModule),...lt(Te)},{path:"latency-test",loadChildren:()=>Promise.all([x.e(2076),x.e(8533)]).then(x.bind(x,8533)).then(J=>J.LatencyTestPageModule),...lt(Te)},{path:"latency-chooser",loadChildren:()=>Promise.all([x.e(2076),x.e(5722)]).then(x.bind(x,5722)).then(J=>J.LatencyChooserPageModule),...lt(Te)},{path:"latency-results",loadChildren:()=>Promise.all([x.e(2076),x.e(6656)]).then(x.bind(x,6656)).then(J=>J.LatencyResultsPageModule),...lt(Te)},{path:"graph-latency",loadChildren:()=>Promise.all([x.e(2076),x.e(7923)]).then(x.bind(x,7923)).then(J=>J.GraphPageModule),...lt(Te)},{path:"trace-chooser",loadChildren:()=>Promise.all([x.e(2076),x.e(9906)]).then(x.bind(x,9906)).then(J=>J.TraceChooserPageModule),...lt(Te)},{path:"trace-test",loadChildren:()=>Promise.all([x.e(2076),x.e(3935)]).then(x.bind(x,3935)).then(J=>J.TraceTestPageModule),...lt(Te)},{path:"trace-results",loadChildren:()=>Promise.all([x.e(2076),x.e(1581)]).then(x.bind(x,1581)).then(J=>J.TraceResultsPageModule),...lt(Te)},{path:"show-map-trace",loadChildren:()=>Promise.all([x.e(9273),x.e(2076),x.e(2051)]).then(x.bind(x,2051)).then(J=>J.ShowMapTracePageModule),...lt(Te)},{path:"graph-data-for",loadChildren:()=>Promise.all([x.e(2076),x.e(1205)]).then(x.bind(x,1205)).then(J=>J.GraphDataForPageModule),...lt(Te)},{path:"graph-trace",loadChildren:()=>Promise.all([x.e(2076),x.e(7907)]).then(x.bind(x,7907)).then(J=>J.GraphTracePageModule),...lt(Te)},{path:"ai",loadChildren:()=>x.e(4348).then(x.bind(x,4348)).then(J=>J.AiPageModule),...lt(Te)},{path:"flame-graph",loadChildren:()=>x.e(1101).then(x.bind(x,1101)).then(J=>J.FlameGraphPageModule),...lt(Te)}];let gt=(()=>{var J;class re{}return(J=re).\u0275fac=function(Ge){return new(Ge||J)},J.\u0275mod=c.$C({type:J}),J.\u0275inj=c.G2t({imports:[ce.iI.forRoot(ze,{preloadingStrategy:ce.Kp}),ce.iI]}),re})();var Bt=x(7440),At=x(4262);const He_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var Zt=x(1626),tt=x(4688),De=x(9032),j=x(7616);let W=(()=>{var J;class re{}return(J=re).\u0275fac=function(Ge){return new(Ge||J)},J.\u0275mod=c.$C({type:J,bootstrap:[qe]}),J.\u0275inj=c.G2t({providers:[{provide:ce.b,useClass:Le.jM},(0,Bt.MW)(()=>(0,Bt.Wp)(He_firebase)),(0,At.hV)(()=>(0,At.aU)()),(0,we._q)(()=>(0,we.xI)()),(0,De.cw)(()=>(0,De.v_)()),Zt.q1,(0,tt.eS)()],imports:[f.Bb,K.bv.forRoot(),gt,Zt.q1,tt.sN.forRoot({echarts:()=>x.e(9697).then(x.bind(x,9697))}),j.n]}),re})();(0,c.SmG)(),f.sG().bootstrapModule(W).catch(J=>console.log(J))},4412:(Dn,Ct,x)=>{"use strict";x.d(Ct,{t:()=>c});var f=x(1413);class c extends f.B{constructor(Le){super(),this._value=Le}get value(){return this.getValue()}_subscribe(Le){const K=super._subscribe(Le);return!K.closed&&Le.next(this._value),K}getValue(){const{hasError:Le,thrownError:K,_value:Ee}=this;if(Le)throw K;return this._throwIfClosed(),Ee}next(Le){super.next(this._value=Le)}}},1985:(Dn,Ct,x)=>{"use strict";x.d(Ct,{c:()=>qe});var f=x(7707),c=x(8359),ce=x(3494),Le=x(1203),K=x(1026),Ee=x(8071),te=x(9786);let qe=(()=>{class je{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const it=new je;return it.source=this,it.operator=Be,it}subscribe(Be,it,Et){const lt=function Ae(je){return je&&je instanceof f.vU||function we(je){return je&&(0,Ee.T)(je.next)&&(0,Ee.T)(je.error)&&(0,Ee.T)(je.complete)}(je)&&(0,c.Uv)(je)}(Be)?Be:new f.Ms(Be,it,Et);return(0,te.Y)(()=>{const{operator:mt,source:xt}=this;lt.add(mt?mt.call(lt,xt):xt?this._subscribe(lt):this._trySubscribe(lt))}),lt}_trySubscribe(Be){try{return this._subscribe(Be)}catch(it){Be.error(it)}}forEach(Be,it){return new(it=Je(it))((Et,lt)=>{const mt=new f.Ms({next:xt=>{try{Be(xt)}catch(pt){lt(pt),mt.unsubscribe()}},error:lt,complete:Et});this.subscribe(mt)})}_subscribe(Be){var it;return null===(it=this.source)||void 0===it?void 0:it.subscribe(Be)}[ce.s](){return this}pipe(...Be){return(0,Le.m)(Be)(this)}toPromise(Be){return new(Be=Je(Be))((it,Et)=>{let lt;this.subscribe(mt=>lt=mt,mt=>Et(mt),()=>it(lt))})}}return je.create=Ke=>new je(Ke),je})();function Je(je){var Ke;return null!==(Ke=null!=je?je:K.$.Promise)&&void 0!==Ke?Ke:Promise}},1413:(Dn,Ct,x)=>{"use strict";x.d(Ct,{B:()=>te});var f=x(1985),c=x(8359);const Le=(0,x(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var K=x(7908),Ee=x(9786);let te=(()=>{class Je extends f.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ae){const je=new qe(this,this);return je.operator=Ae,je}_throwIfClosed(){if(this.closed)throw new Le}next(Ae){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const je of this.currentObservers)je.next(Ae)}})}error(Ae){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ae;const{observers:je}=this;for(;je.length;)je.shift().error(Ae)}})}complete(){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ae}=this;for(;Ae.length;)Ae.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ae;return(null===(Ae=this.observers)||void 0===Ae?void 0:Ae.length)>0}_trySubscribe(Ae){return this._throwIfClosed(),super._trySubscribe(Ae)}_subscribe(Ae){return this._throwIfClosed(),this._checkFinalizedStatuses(Ae),this._innerSubscribe(Ae)}_innerSubscribe(Ae){const{hasError:je,isStopped:Ke,observers:Be}=this;return je||Ke?c.Kn:(this.currentObservers=null,Be.push(Ae),new c.yU(()=>{this.currentObservers=null,(0,K.o)(Be,Ae)}))}_checkFinalizedStatuses(Ae){const{hasError:je,thrownError:Ke,isStopped:Be}=this;je?Ae.error(Ke):Be&&Ae.complete()}asObservable(){const Ae=new f.c;return Ae.source=this,Ae}}return Je.create=(we,Ae)=>new qe(we,Ae),Je})();class qe extends te{constructor(we,Ae){super(),this.destination=we,this.source=Ae}next(we){var Ae,je;null===(je=null===(Ae=this.destination)||void 0===Ae?void 0:Ae.next)||void 0===je||je.call(Ae,we)}error(we){var Ae,je;null===(je=null===(Ae=this.destination)||void 0===Ae?void 0:Ae.error)||void 0===je||je.call(Ae,we)}complete(){var we,Ae;null===(Ae=null===(we=this.destination)||void 0===we?void 0:we.complete)||void 0===Ae||Ae.call(we)}_subscribe(we){var Ae,je;return null!==(je=null===(Ae=this.source)||void 0===Ae?void 0:Ae.subscribe(we))&&void 0!==je?je:c.Kn}}},7707:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Ms:()=>Et,vU:()=>je});var f=x(8071),c=x(8359),ce=x(1026),Le=x(5334),K=x(5343);const Ee=Je("C",void 0,void 0);function Je(_t,Ne,Qe){return{kind:_t,value:Ne,error:Qe}}var we=x(9270),Ae=x(9786);class je extends c.yU{constructor(Ne){super(),this.isStopped=!1,Ne?(this.destination=Ne,(0,c.Uv)(Ne)&&Ne.add(this)):this.destination=pt}static create(Ne,Qe,be){return new Et(Ne,Qe,be)}next(Ne){this.isStopped?xt(function qe(_t){return Je("N",_t,void 0)}(Ne),this):this._next(Ne)}error(Ne){this.isStopped?xt(function te(_t){return Je("E",void 0,_t)}(Ne),this):(this.isStopped=!0,this._error(Ne))}complete(){this.isStopped?xt(Ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ne){this.destination.next(Ne)}_error(Ne){try{this.destination.error(Ne)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ke=Function.prototype.bind;function Be(_t,Ne){return Ke.call(_t,Ne)}class it{constructor(Ne){this.partialObserver=Ne}next(Ne){const{partialObserver:Qe}=this;if(Qe.next)try{Qe.next(Ne)}catch(be){lt(be)}}error(Ne){const{partialObserver:Qe}=this;if(Qe.error)try{Qe.error(Ne)}catch(be){lt(be)}else lt(Ne)}complete(){const{partialObserver:Ne}=this;if(Ne.complete)try{Ne.complete()}catch(Qe){lt(Qe)}}}class Et extends je{constructor(Ne,Qe,be){let Ve;if(super(),(0,f.T)(Ne)||!Ne)Ve={next:null!=Ne?Ne:void 0,error:null!=Qe?Qe:void 0,complete:null!=be?be:void 0};else{let Te;this&&ce.$.useDeprecatedNextContext?(Te=Object.create(Ne),Te.unsubscribe=()=>this.unsubscribe(),Ve={next:Ne.next&&Be(Ne.next,Te),error:Ne.error&&Be(Ne.error,Te),complete:Ne.complete&&Be(Ne.complete,Te)}):Ve=Ne}this.destination=new it(Ve)}}function lt(_t){ce.$.useDeprecatedSynchronousErrorHandling?(0,Ae.l)(_t):(0,Le.m)(_t)}function xt(_t,Ne){const{onStoppedNotification:Qe}=ce.$;Qe&&we.f.setTimeout(()=>Qe(_t,Ne))}const pt={closed:!0,next:K.l,error:function mt(_t){throw _t},complete:K.l}},8359:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Kn:()=>Ee,yU:()=>K,Uv:()=>te});var f=x(8071);const ce=(0,x(1853).L)(Je=>function(Ae){Je(this),this.message=Ae?`${Ae.length} errors occurred during unsubscription:\n${Ae.map((je,Ke)=>`${Ke+1}) ${je.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ae});var Le=x(7908);class K{constructor(we){this.initialTeardown=we,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let we;if(!this.closed){this.closed=!0;const{_parentage:Ae}=this;if(Ae)if(this._parentage=null,Array.isArray(Ae))for(const Be of Ae)Be.remove(this);else Ae.remove(this);const{initialTeardown:je}=this;if((0,f.T)(je))try{je()}catch(Be){we=Be instanceof ce?Be.errors:[Be]}const{_finalizers:Ke}=this;if(Ke){this._finalizers=null;for(const Be of Ke)try{qe(Be)}catch(it){we=null!=we?we:[],it instanceof ce?we=[...we,...it.errors]:we.push(it)}}if(we)throw new ce(we)}}add(we){var Ae;if(we&&we!==this)if(this.closed)qe(we);else{if(we instanceof K){if(we.closed||we._hasParent(this))return;we._addParent(this)}(this._finalizers=null!==(Ae=this._finalizers)&&void 0!==Ae?Ae:[]).push(we)}}_hasParent(we){const{_parentage:Ae}=this;return Ae===we||Array.isArray(Ae)&&Ae.includes(we)}_addParent(we){const{_parentage:Ae}=this;this._parentage=Array.isArray(Ae)?(Ae.push(we),Ae):Ae?[Ae,we]:we}_removeParent(we){const{_parentage:Ae}=this;Ae===we?this._parentage=null:Array.isArray(Ae)&&(0,Le.o)(Ae,we)}remove(we){const{_finalizers:Ae}=this;Ae&&(0,Le.o)(Ae,we),we instanceof K&&we._removeParent(this)}}K.EMPTY=(()=>{const Je=new K;return Je.closed=!0,Je})();const Ee=K.EMPTY;function te(Je){return Je instanceof K||Je&&"closed"in Je&&(0,f.T)(Je.remove)&&(0,f.T)(Je.add)&&(0,f.T)(Je.unsubscribe)}function qe(Je){(0,f.T)(Je)?Je():Je.unsubscribe()}},1026:(Dn,Ct,x)=>{"use strict";x.d(Ct,{$:()=>f});const f={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Dn,Ct,x)=>{"use strict";x.d(Ct,{z:()=>we});var f=x(1985),c=x(3073),ce=x(8455),Le=x(3669),K=x(6450),Ee=x(9326),te=x(8496),qe=x(4360),Je=x(5225);function we(...Ke){const Be=(0,Ee.lI)(Ke),it=(0,Ee.ms)(Ke),{args:Et,keys:lt}=(0,c.D)(Ke);if(0===Et.length)return(0,ce.H)([],Be);const mt=new f.c(function Ae(Ke,Be,it=Le.D){return Et=>{je(Be,()=>{const{length:lt}=Ke,mt=new Array(lt);let xt=lt,pt=lt;for(let _t=0;_t{const Ne=(0,ce.H)(Ke[_t],Be);let Qe=!1;Ne.subscribe((0,qe._)(Et,be=>{mt[_t]=be,Qe||(Qe=!0,pt--),pt||Et.next(it(mt.slice()))},()=>{--xt||Et.complete()}))},Et)},Et)}}(Et,Be,lt?xt=>(0,te.e)(lt,xt):Le.D));return it?mt.pipe((0,K.I)(it)):mt}function je(Ke,Be,it){Ke?(0,Je.N)(it,Ke,Be):Be()}},983:(Dn,Ct,x)=>{"use strict";x.d(Ct,{w:()=>c});const c=new(x(1985).c)(K=>K.complete())},8455:(Dn,Ct,x)=>{"use strict";x.d(Ct,{H:()=>Ne});var f=x(8750),c=x(941),ce=x(6745),Ee=x(1985),qe=x(4761),Je=x(8071),we=x(5225);function je(Qe,be){if(!Qe)throw new Error("Iterable cannot be null");return new Ee.c(Ve=>{(0,we.N)(Ve,be,()=>{const Te=Qe[Symbol.asyncIterator]();(0,we.N)(Ve,be,()=>{Te.next().then(se=>{se.done?Ve.complete():Ve.next(se.value)})},0,!0)})})}var Ke=x(5055),Be=x(9858),it=x(7441),Et=x(5397),lt=x(7953),mt=x(591),xt=x(5196);function Ne(Qe,be){return be?function _t(Qe,be){if(null!=Qe){if((0,Ke.l)(Qe))return function Le(Qe,be){return(0,f.Tg)(Qe).pipe((0,ce._)(be),(0,c.Q)(be))}(Qe,be);if((0,it.X)(Qe))return function te(Qe,be){return new Ee.c(Ve=>{let Te=0;return be.schedule(function(){Te===Qe.length?Ve.complete():(Ve.next(Qe[Te++]),Ve.closed||this.schedule())})})}(Qe,be);if((0,Be.y)(Qe))return function K(Qe,be){return(0,f.Tg)(Qe).pipe((0,ce._)(be),(0,c.Q)(be))}(Qe,be);if((0,lt.T)(Qe))return je(Qe,be);if((0,Et.x)(Qe))return function Ae(Qe,be){return new Ee.c(Ve=>{let Te;return(0,we.N)(Ve,be,()=>{Te=Qe[qe.l](),(0,we.N)(Ve,be,()=>{let se,ze;try{({value:se,done:ze}=Te.next())}catch(gt){return void Ve.error(gt)}ze?Ve.complete():Ve.next(se)},0,!0)}),()=>(0,Je.T)(null==Te?void 0:Te.return)&&Te.return()})}(Qe,be);if((0,xt.U)(Qe))return function pt(Qe,be){return je((0,xt.C)(Qe),be)}(Qe,be)}throw(0,mt.L)(Qe)}(Qe,be):(0,f.Tg)(Qe)}},3726:(Dn,Ct,x)=>{"use strict";x.d(Ct,{R:()=>we});var f=x(8750),c=x(1985),ce=x(1397),Le=x(7441),K=x(8071),Ee=x(6450);const te=["addListener","removeListener"],qe=["addEventListener","removeEventListener"],Je=["on","off"];function we(it,Et,lt,mt){if((0,K.T)(lt)&&(mt=lt,lt=void 0),mt)return we(it,Et,lt).pipe((0,Ee.I)(mt));const[xt,pt]=function Be(it){return(0,K.T)(it.addEventListener)&&(0,K.T)(it.removeEventListener)}(it)?qe.map(_t=>Ne=>it[_t](Et,Ne,lt)):function je(it){return(0,K.T)(it.addListener)&&(0,K.T)(it.removeListener)}(it)?te.map(Ae(it,Et)):function Ke(it){return(0,K.T)(it.on)&&(0,K.T)(it.off)}(it)?Je.map(Ae(it,Et)):[];if(!xt&&(0,Le.X)(it))return(0,ce.Z)(_t=>we(_t,Et,lt))((0,f.Tg)(it));if(!xt)throw new TypeError("Invalid event target");return new c.c(_t=>{const Ne=(...Qe)=>_t.next(1pt(Ne)})}function Ae(it,Et){return lt=>mt=>it[lt](Et,mt)}},8750:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Tg:()=>Ke});var f=x(1635),c=x(7441),ce=x(9858),Le=x(1985),K=x(5055),Ee=x(7953),te=x(591),qe=x(5397),Je=x(5196),we=x(8071),Ae=x(5334),je=x(3494);function Ke(_t){if(_t instanceof Le.c)return _t;if(null!=_t){if((0,K.l)(_t))return function Be(_t){return new Le.c(Ne=>{const Qe=_t[je.s]();if((0,we.T)(Qe.subscribe))return Qe.subscribe(Ne);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_t);if((0,c.X)(_t))return function it(_t){return new Le.c(Ne=>{for(let Qe=0;Qe<_t.length&&!Ne.closed;Qe++)Ne.next(_t[Qe]);Ne.complete()})}(_t);if((0,ce.y)(_t))return function Et(_t){return new Le.c(Ne=>{_t.then(Qe=>{Ne.closed||(Ne.next(Qe),Ne.complete())},Qe=>Ne.error(Qe)).then(null,Ae.m)})}(_t);if((0,Ee.T)(_t))return mt(_t);if((0,qe.x)(_t))return function lt(_t){return new Le.c(Ne=>{for(const Qe of _t)if(Ne.next(Qe),Ne.closed)return;Ne.complete()})}(_t);if((0,Je.U)(_t))return function xt(_t){return mt((0,Je.C)(_t))}(_t)}throw(0,te.L)(_t)}function mt(_t){return new Le.c(Ne=>{(function pt(_t,Ne){var Qe,be,Ve,Te;return(0,f.sH)(this,void 0,void 0,function*(){try{for(Qe=(0,f.xN)(_t);!(be=yield Qe.next()).done;)if(Ne.next(be.value),Ne.closed)return}catch(se){Ve={error:se}}finally{try{be&&!be.done&&(Te=Qe.return)&&(yield Te.call(Qe))}finally{if(Ve)throw Ve.error}}Ne.complete()})})(_t,Ne).catch(Qe=>Ne.error(Qe))})}},7673:(Dn,Ct,x)=>{"use strict";x.d(Ct,{of:()=>ce});var f=x(9326),c=x(8455);function ce(...Le){const K=(0,f.lI)(Le);return(0,c.H)(Le,K)}},4360:(Dn,Ct,x)=>{"use strict";x.d(Ct,{_:()=>c});var f=x(7707);function c(Le,K,Ee,te,qe){return new ce(Le,K,Ee,te,qe)}class ce extends f.vU{constructor(K,Ee,te,qe,Je,we){super(K),this.onFinalize=Je,this.shouldUnsubscribe=we,this._next=Ee?function(Ae){try{Ee(Ae)}catch(je){K.error(je)}}:super._next,this._error=qe?function(Ae){try{qe(Ae)}catch(je){K.error(je)}finally{this.unsubscribe()}}:super._error,this._complete=te?function(){try{te()}catch(Ae){K.error(Ae)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var K;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ee}=this;super.unsubscribe(),!Ee&&(null===(K=this.onFinalize)||void 0===K||K.call(this))}}}},274:(Dn,Ct,x)=>{"use strict";x.d(Ct,{H:()=>ce});var f=x(1397),c=x(8071);function ce(Le,K){return(0,c.T)(K)?(0,f.Z)(Le,K,1):(0,f.Z)(Le,1)}},5964:(Dn,Ct,x)=>{"use strict";x.d(Ct,{p:()=>ce});var f=x(9974),c=x(4360);function ce(Le,K){return(0,f.N)((Ee,te)=>{let qe=0;Ee.subscribe((0,c._)(te,Je=>Le.call(K,Je,qe++)&&te.next(Je)))})}},980:(Dn,Ct,x)=>{"use strict";x.d(Ct,{j:()=>c});var f=x(9974);function c(ce){return(0,f.N)((Le,K)=>{try{Le.subscribe(K)}finally{K.add(ce)}})}},6354:(Dn,Ct,x)=>{"use strict";x.d(Ct,{T:()=>ce});var f=x(9974),c=x(4360);function ce(Le,K){return(0,f.N)((Ee,te)=>{let qe=0;Ee.subscribe((0,c._)(te,Je=>{te.next(Le.call(K,Je,qe++))}))})}},1397:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Z:()=>qe});var f=x(6354),c=x(8750),ce=x(9974),Le=x(5225),K=x(4360),te=x(8071);function qe(Je,we,Ae=1/0){return(0,te.T)(we)?qe((je,Ke)=>(0,f.T)((Be,it)=>we(je,Be,Ke,it))((0,c.Tg)(Je(je,Ke))),Ae):("number"==typeof we&&(Ae=we),(0,ce.N)((je,Ke)=>function Ee(Je,we,Ae,je,Ke,Be,it,Et){const lt=[];let mt=0,xt=0,pt=!1;const _t=()=>{pt&&!lt.length&&!mt&&we.complete()},Ne=be=>mt{Be&&we.next(be),mt++;let Ve=!1;(0,c.Tg)(Ae(be,xt++)).subscribe((0,K._)(we,Te=>{null==Ke||Ke(Te),Be?Ne(Te):we.next(Te)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(mt--;lt.length&&mtQe(Te)):Qe(Te)}_t()}catch(Te){we.error(Te)}}))};return Je.subscribe((0,K._)(we,Ne,()=>{pt=!0,_t()})),()=>{null==Et||Et()}}(je,Ke,Je,Ae)))}},941:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Q:()=>Le});var f=x(5225),c=x(9974),ce=x(4360);function Le(K,Ee=0){return(0,c.N)((te,qe)=>{te.subscribe((0,ce._)(qe,Je=>(0,f.N)(qe,K,()=>qe.next(Je),Ee),()=>(0,f.N)(qe,K,()=>qe.complete(),Ee),Je=>(0,f.N)(qe,K,()=>qe.error(Je),Ee)))})}},6745:(Dn,Ct,x)=>{"use strict";x.d(Ct,{_:()=>c});var f=x(9974);function c(ce,Le=0){return(0,f.N)((K,Ee)=>{Ee.add(ce.schedule(()=>K.subscribe(Ee),Le))})}},5558:(Dn,Ct,x)=>{"use strict";x.d(Ct,{n:()=>Le});var f=x(8750),c=x(9974),ce=x(4360);function Le(K,Ee){return(0,c.N)((te,qe)=>{let Je=null,we=0,Ae=!1;const je=()=>Ae&&!Je&&qe.complete();te.subscribe((0,ce._)(qe,Ke=>{null==Je||Je.unsubscribe();let Be=0;const it=we++;(0,f.Tg)(K(Ke,it)).subscribe(Je=(0,ce._)(qe,Et=>qe.next(Ee?Ee(Ke,Et,it,Be++):Et),()=>{Je=null,je()}))},()=>{Ae=!0,je()}))})}},6697:(Dn,Ct,x)=>{"use strict";x.d(Ct,{s:()=>Le});var f=x(983),c=x(9974),ce=x(4360);function Le(K){return K<=0?()=>f.w:(0,c.N)((Ee,te)=>{let qe=0;Ee.subscribe((0,ce._)(te,Je=>{++qe<=K&&(te.next(Je),K<=qe&&te.complete())}))})}},8141:(Dn,Ct,x)=>{"use strict";x.d(Ct,{M:()=>K});var f=x(8071),c=x(9974),ce=x(4360),Le=x(3669);function K(Ee,te,qe){const Je=(0,f.T)(Ee)||te||qe?{next:Ee,error:te,complete:qe}:Ee;return Je?(0,c.N)((we,Ae)=>{var je;null===(je=Je.subscribe)||void 0===je||je.call(Je);let Ke=!0;we.subscribe((0,ce._)(Ae,Be=>{var it;null===(it=Je.next)||void 0===it||it.call(Je,Be),Ae.next(Be)},()=>{var Be;Ke=!1,null===(Be=Je.complete)||void 0===Be||Be.call(Je),Ae.complete()},Be=>{var it;Ke=!1,null===(it=Je.error)||void 0===it||it.call(Je,Be),Ae.error(Be)},()=>{var Be,it;Ke&&(null===(Be=Je.unsubscribe)||void 0===Be||Be.call(Je)),null===(it=Je.finalize)||void 0===it||it.call(Je)}))}):Le.D}},6780:(Dn,Ct,x)=>{"use strict";x.d(Ct,{R:()=>K});var f=x(8359);class c extends f.yU{constructor(te,qe){super()}schedule(te,qe=0){return this}}const ce={setInterval(Ee,te,...qe){const{delegate:Je}=ce;return null!=Je&&Je.setInterval?Je.setInterval(Ee,te,...qe):setInterval(Ee,te,...qe)},clearInterval(Ee){const{delegate:te}=ce;return((null==te?void 0:te.clearInterval)||clearInterval)(Ee)},delegate:void 0};var Le=x(7908);class K extends c{constructor(te,qe){super(te,qe),this.scheduler=te,this.work=qe,this.pending=!1}schedule(te,qe=0){var Je;if(this.closed)return this;this.state=te;const we=this.id,Ae=this.scheduler;return null!=we&&(this.id=this.recycleAsyncId(Ae,we,qe)),this.pending=!0,this.delay=qe,this.id=null!==(Je=this.id)&&void 0!==Je?Je:this.requestAsyncId(Ae,this.id,qe),this}requestAsyncId(te,qe,Je=0){return ce.setInterval(te.flush.bind(te,this),Je)}recycleAsyncId(te,qe,Je=0){if(null!=Je&&this.delay===Je&&!1===this.pending)return qe;null!=qe&&ce.clearInterval(qe)}execute(te,qe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Je=this._execute(te,qe);if(Je)return Je;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(te,qe){let we,Je=!1;try{this.work(te)}catch(Ae){Je=!0,we=Ae||new Error("Scheduled action threw falsy error")}if(Je)return this.unsubscribe(),we}unsubscribe(){if(!this.closed){const{id:te,scheduler:qe}=this,{actions:Je}=qe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Le.o)(Je,this),null!=te&&(this.id=this.recycleAsyncId(qe,te,null)),this.delay=null,super.unsubscribe()}}}},9687:(Dn,Ct,x)=>{"use strict";x.d(Ct,{q:()=>ce});var f=x(6129);class c{constructor(K,Ee=c.now){this.schedulerActionCtor=K,this.now=Ee}schedule(K,Ee=0,te){return new this.schedulerActionCtor(this,K).schedule(te,Ee)}}c.now=f.U.now;class ce extends c{constructor(K,Ee=c.now){super(K,Ee),this.actions=[],this._active=!1}flush(K){const{actions:Ee}=this;if(this._active)return void Ee.push(K);let te;this._active=!0;do{if(te=K.execute(K.state,K.delay))break}while(K=Ee.shift());if(this._active=!1,te){for(;K=Ee.shift();)K.unsubscribe();throw te}}}},3236:(Dn,Ct,x)=>{"use strict";x.d(Ct,{E:()=>ce,b:()=>Le});var f=x(6780);const ce=new(x(9687).q)(f.R),Le=ce},6129:(Dn,Ct,x)=>{"use strict";x.d(Ct,{U:()=>f});const f={now:()=>(f.delegate||Date).now(),delegate:void 0}},9270:(Dn,Ct,x)=>{"use strict";x.d(Ct,{f:()=>f});const f={setTimeout(c,ce,...Le){const{delegate:K}=f;return null!=K&&K.setTimeout?K.setTimeout(c,ce,...Le):setTimeout(c,ce,...Le)},clearTimeout(c){const{delegate:ce}=f;return((null==ce?void 0:ce.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Dn,Ct,x)=>{"use strict";x.d(Ct,{l:()=>c});const c=function f(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Dn,Ct,x)=>{"use strict";x.d(Ct,{s:()=>f});const f="function"==typeof Symbol&&Symbol.observable||"@@observable"},9326:(Dn,Ct,x)=>{"use strict";x.d(Ct,{lI:()=>K,ms:()=>Le});var f=x(8071),c=x(9470);function ce(te){return te[te.length-1]}function Le(te){return(0,f.T)(ce(te))?te.pop():void 0}function K(te){return(0,c.m)(ce(te))?te.pop():void 0}},3073:(Dn,Ct,x)=>{"use strict";x.d(Ct,{D:()=>K});const{isArray:f}=Array,{getPrototypeOf:c,prototype:ce,keys:Le}=Object;function K(te){if(1===te.length){const qe=te[0];if(f(qe))return{args:qe,keys:null};if(function Ee(te){return te&&"object"==typeof te&&c(te)===ce}(qe)){const Je=Le(qe);return{args:Je.map(we=>qe[we]),keys:Je}}}return{args:te,keys:null}}},7908:(Dn,Ct,x)=>{"use strict";function f(c,ce){if(c){const Le=c.indexOf(ce);0<=Le&&c.splice(Le,1)}}x.d(Ct,{o:()=>f})},1853:(Dn,Ct,x)=>{"use strict";function f(c){const Le=c(K=>{Error.call(K),K.stack=(new Error).stack});return Le.prototype=Object.create(Error.prototype),Le.prototype.constructor=Le,Le}x.d(Ct,{L:()=>f})},8496:(Dn,Ct,x)=>{"use strict";function f(c,ce){return c.reduce((Le,K,Ee)=>(Le[K]=ce[Ee],Le),{})}x.d(Ct,{e:()=>f})},9786:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Y:()=>ce,l:()=>Le});var f=x(1026);let c=null;function ce(K){if(f.$.useDeprecatedSynchronousErrorHandling){const Ee=!c;if(Ee&&(c={errorThrown:!1,error:null}),K(),Ee){const{errorThrown:te,error:qe}=c;if(c=null,te)throw qe}}else K()}function Le(K){f.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=K)}},5225:(Dn,Ct,x)=>{"use strict";function f(c,ce,Le,K=0,Ee=!1){const te=ce.schedule(function(){Le(),Ee?c.add(this.schedule(null,K)):this.unsubscribe()},K);if(c.add(te),!Ee)return te}x.d(Ct,{N:()=>f})},3669:(Dn,Ct,x)=>{"use strict";function f(c){return c}x.d(Ct,{D:()=>f})},7441:(Dn,Ct,x)=>{"use strict";x.d(Ct,{X:()=>f});const f=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Dn,Ct,x)=>{"use strict";x.d(Ct,{T:()=>c});var f=x(8071);function c(ce){return Symbol.asyncIterator&&(0,f.T)(null==ce?void 0:ce[Symbol.asyncIterator])}},8071:(Dn,Ct,x)=>{"use strict";function f(c){return"function"==typeof c}x.d(Ct,{T:()=>f})},5055:(Dn,Ct,x)=>{"use strict";x.d(Ct,{l:()=>ce});var f=x(3494),c=x(8071);function ce(Le){return(0,c.T)(Le[f.s])}},5397:(Dn,Ct,x)=>{"use strict";x.d(Ct,{x:()=>ce});var f=x(4761),c=x(8071);function ce(Le){return(0,c.T)(null==Le?void 0:Le[f.l])}},9858:(Dn,Ct,x)=>{"use strict";x.d(Ct,{y:()=>c});var f=x(8071);function c(ce){return(0,f.T)(null==ce?void 0:ce.then)}},5196:(Dn,Ct,x)=>{"use strict";x.d(Ct,{C:()=>ce,U:()=>Le});var f=x(1635),c=x(8071);function ce(K){return(0,f.AQ)(this,arguments,function*(){const te=K.getReader();try{for(;;){const{value:qe,done:Je}=yield(0,f.N3)(te.read());if(Je)return yield(0,f.N3)(void 0);yield yield(0,f.N3)(qe)}}finally{te.releaseLock()}})}function Le(K){return(0,c.T)(null==K?void 0:K.getReader)}},9470:(Dn,Ct,x)=>{"use strict";x.d(Ct,{m:()=>c});var f=x(8071);function c(ce){return ce&&(0,f.T)(ce.schedule)}},9974:(Dn,Ct,x)=>{"use strict";x.d(Ct,{N:()=>ce,S:()=>c});var f=x(8071);function c(Le){return(0,f.T)(null==Le?void 0:Le.lift)}function ce(Le){return K=>{if(c(K))return K.lift(function(Ee){try{return Le(Ee,this)}catch(te){this.error(te)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Dn,Ct,x)=>{"use strict";x.d(Ct,{I:()=>Le});var f=x(6354);const{isArray:c}=Array;function Le(K){return(0,f.T)(Ee=>function ce(K,Ee){return c(Ee)?K(...Ee):K(Ee)}(K,Ee))}},5343:(Dn,Ct,x)=>{"use strict";function f(){}x.d(Ct,{l:()=>f})},1203:(Dn,Ct,x)=>{"use strict";x.d(Ct,{F:()=>c,m:()=>ce});var f=x(3669);function c(...Le){return ce(Le)}function ce(Le){return 0===Le.length?f.D:1===Le.length?Le[0]:function(Ee){return Le.reduce((te,qe)=>qe(te),Ee)}}},5334:(Dn,Ct,x)=>{"use strict";x.d(Ct,{m:()=>ce});var f=x(1026),c=x(9270);function ce(Le){c.f.setTimeout(()=>{const{onUnhandledError:K}=f.$;if(!K)throw Le;K(Le)})}},591:(Dn,Ct,x)=>{"use strict";function f(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(Ct,{L:()=>f})},8996:(Dn,Ct,x)=>{var f={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(ce){if(!x.o(f,ce))return Promise.resolve().then(()=>{var Ee=new Error("Cannot find module '"+ce+"'");throw Ee.code="MODULE_NOT_FOUND",Ee});var Le=f[ce],K=Le[0];return Promise.all(Le.slice(1).map(x.e)).then(()=>x(K))}c.keys=()=>Object.keys(f),c.id=8996,Dn.exports=c},177:(Dn,Ct,x)=>{"use strict";x.d(Ct,{AJ:()=>jt,MD:()=>ct,N0:()=>Ai,QT:()=>ce,Sm:()=>Et,Sq:()=>Gt,T3:()=>Vn,VF:()=>K,Vy:()=>Pn,Xr:()=>Tr,ZD:()=>Le,_b:()=>R,aZ:()=>mt,bT:()=>$n,fw:()=>lt,hb:()=>Be,hj:()=>Je,qQ:()=>te});var f=x(4438);let c=null;function ce(){return c}function Le(T){var B;null!==(B=c)&&void 0!==B||(c=T)}class K{}const te=new f.nKC("");let qe=(()=>{var T;class B{historyGo(F){throw new Error("")}}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275prov=f.jDH({token:T,factory:()=>(0,f.WQX)(we),providedIn:"platform"}),B})();const Je=new f.nKC("");let we=(()=>{var T;class B extends qe{constructor(){super(),this._doc=(0,f.WQX)(te),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ce().getBaseHref(this._doc)}onPopState(F){const ge=ce().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("popstate",F,!1),()=>ge.removeEventListener("popstate",F)}onHashChange(F){const ge=ce().getGlobalEventTarget(this._doc,"window");return ge.addEventListener("hashchange",F,!1),()=>ge.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,ge,$e){this._history.pushState(F,ge,$e)}replaceState(F,ge,$e){this._history.replaceState(F,ge,$e)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275prov=f.jDH({token:T,factory:()=>new T,providedIn:"platform"}),B})();function Ae(T,B){if(0==T.length)return B;if(0==B.length)return T;let xe=0;return T.endsWith("/")&&xe++,B.startsWith("/")&&xe++,2==xe?T+B.substring(1):1==xe?T+B:T+"/"+B}function je(T){const B=T.match(/#|\?|$/),xe=B&&B.index||T.length;return T.slice(0,xe-("/"===T[xe-1]?1:0))+T.slice(xe)}function Ke(T){return T&&"?"!==T[0]?"?"+T:T}let Be=(()=>{var T;class B{historyGo(F){throw new Error("")}}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275prov=f.jDH({token:T,factory:()=>(0,f.WQX)(Et),providedIn:"root"}),B})();const it=new f.nKC("");let Et=(()=>{var T;class B extends Be{constructor(F,ge){var $e,$t,mn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==($e=null!==($t=null!=ge?ge:this._platformLocation.getBaseHrefFromDOM())&&void 0!==$t?$t:null===(mn=(0,f.WQX)(te).location)||void 0===mn?void 0:mn.origin)&&void 0!==$e?$e:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return Ae(this._baseHref,F)}path(F=!1){const ge=this._platformLocation.pathname+Ke(this._platformLocation.search),$e=this._platformLocation.hash;return $e&&F?`${ge}${$e}`:ge}pushState(F,ge,$e,$t){const mn=this.prepareExternalUrl($e+Ke($t));this._platformLocation.pushState(F,ge,mn)}replaceState(F,ge,$e,$t){const mn=this.prepareExternalUrl($e+Ke($t));this._platformLocation.replaceState(F,ge,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var ge,$e;null===(ge=($e=this._platformLocation).historyGo)||void 0===ge||ge.call($e,F)}}return(T=B).\u0275fac=function(F){return new(F||T)(f.KVO(qe),f.KVO(it,8))},T.\u0275prov=f.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),B})(),lt=(()=>{var T;class B extends Be{constructor(F,ge){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=ge&&(this._baseHref=ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var ge;const $e=null!==(ge=this._platformLocation.hash)&&void 0!==ge?ge:"#";return $e.length>0?$e.substring(1):$e}prepareExternalUrl(F){const ge=Ae(this._baseHref,F);return ge.length>0?"#"+ge:ge}pushState(F,ge,$e,$t){let mn=this.prepareExternalUrl($e+Ke($t));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.pushState(F,ge,mn)}replaceState(F,ge,$e,$t){let mn=this.prepareExternalUrl($e+Ke($t));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.replaceState(F,ge,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var ge,$e;null===(ge=($e=this._platformLocation).historyGo)||void 0===ge||ge.call($e,F)}}return(T=B).\u0275fac=function(F){return new(F||T)(f.KVO(qe),f.KVO(it,8))},T.\u0275prov=f.jDH({token:T,factory:T.\u0275fac}),B})(),mt=(()=>{var T;class B{constructor(F){this._subject=new f.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const ge=this._locationStrategy.getBaseHref();this._basePath=function Ne(T){if(new RegExp("^(https?:)?//").test(T)){const[,xe]=T.split(/\/\/[^\/]+/);return xe}return T}(je(_t(ge))),this._locationStrategy.onPopState($e=>{this._subject.emit({url:this.path(!0),pop:!0,state:$e.state,type:$e.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,ge=""){return this.path()==this.normalize(F+Ke(ge))}normalize(F){return B.stripTrailingSlash(function pt(T,B){if(!T||!B.startsWith(T))return B;const xe=B.substring(T.length);return""===xe||["/",";","?","#"].includes(xe[0])?xe:B}(this._basePath,_t(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,ge="",$e=null){this._locationStrategy.pushState($e,"",F,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ke(ge)),$e)}replaceState(F,ge="",$e=null){this._locationStrategy.replaceState($e,"",F,ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ke(ge)),$e)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var ge,$e;null===(ge=($e=this._locationStrategy).historyGo)||void 0===ge||ge.call($e,F)}onUrlChange(F){var ge;return this._urlChangeListeners.push(F),null!==(ge=this._urlChangeSubscription)&&void 0!==ge||(this._urlChangeSubscription=this.subscribe($e=>{this._notifyUrlChangeListeners($e.url,$e.state)})),()=>{const $e=this._urlChangeListeners.indexOf(F);var $t;this._urlChangeListeners.splice($e,1),0===this._urlChangeListeners.length&&(null===($t=this._urlChangeSubscription)||void 0===$t||$t.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",ge){this._urlChangeListeners.forEach($e=>$e(F,ge))}subscribe(F,ge,$e){return this._subject.subscribe({next:F,error:ge,complete:$e})}}return(T=B).normalizeQueryParams=Ke,T.joinWithSlash=Ae,T.stripTrailingSlash=je,T.\u0275fac=function(F){return new(F||T)(f.KVO(Be))},T.\u0275prov=f.jDH({token:T,factory:()=>function xt(){return new mt((0,f.KVO)(Be))}(),providedIn:"root"}),B})();function _t(T){return T.replace(/\/index.html$/,"")}function R(T,B){B=encodeURIComponent(B);for(const xe of T.split(";")){const F=xe.indexOf("="),[ge,$e]=-1==F?[xe,""]:[xe.slice(0,F),xe.slice(F+1)];if(ge.trim()===B)return decodeURIComponent($e)}return null}class dt{constructor(B,xe,F,ge){this.$implicit=B,this.ngForOf=xe,this.index=F,this.count=ge}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 Gt=(()=>{var T;class B{set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,ge,$e){this._viewContainer=F,this._template=ge,this._differs=$e,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const ge=this._viewContainer;F.forEachOperation(($e,$t,mn)=>{if(null==$e.previousIndex)ge.createEmbeddedView(this._template,new dt($e.item,this._ngForOf,-1,-1),null===mn?void 0:mn);else if(null==mn)ge.remove(null===$t?void 0:$t);else if(null!==$t){const Kn=ge.get($t);ge.move(Kn,mn),qt(Kn,$e)}});for(let $e=0,$t=ge.length;$e<$t;$e++){const Kn=ge.get($e).context;Kn.index=$e,Kn.count=$t,Kn.ngForOf=this._ngForOf}F.forEachIdentityChange($e=>{qt(ge.get($e.currentIndex),$e)})}static ngTemplateContextGuard(F,ge){return!0}}return(T=B).\u0275fac=function(F){return new(F||T)(f.rXU(f.c1b),f.rXU(f.C4Q),f.rXU(f._q3))},T.\u0275dir=f.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),B})();function qt(T,B){T.context.$implicit=B.item}let $n=(()=>{var T;class B{constructor(F,ge){this._viewContainer=F,this._context=new Hr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ge}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){gr("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){gr("ngIfElse",F),this._elseTemplateRef=F,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(F,ge){return!0}}return(T=B).\u0275fac=function(F){return new(F||T)(f.rXU(f.c1b),f.rXU(f.C4Q))},T.\u0275dir=f.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),B})();class Hr{constructor(){this.$implicit=null,this.ngIf=null}}function gr(T,B){if(B&&!B.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,f.Tbb)(B)}'.`)}let Vn=(()=>{var T;class B{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var ge;const $e=this._viewContainerRef;if(this._viewRef&&$e.remove($e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const $t=this._createContextForwardProxy();this._viewRef=$e.createEmbeddedView(this.ngTemplateOutlet,$t,{injector:null!==(ge=this.ngTemplateOutletInjector)&&void 0!==ge?ge:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,ge,$e)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ge,$e),get:(F,ge,$e)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ge,$e)}})}}return(T=B).\u0275fac=function(F){return new(F||T)(f.rXU(f.c1b))},T.\u0275dir=f.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[f.OA$]}),B})(),ct=(()=>{var T;class B{}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275mod=f.$C({type:T}),T.\u0275inj=f.G2t({}),B})();const jt="browser",Qt="server";function Pn(T){return T===Qt}let Tr=(()=>{var T;class B{}return(T=B).\u0275prov=(0,f.jDH)({token:T,providedIn:"root",factory:()=>function Sn(T){return T===jt}((0,f.WQX)(f.Agw))?new dr((0,f.WQX)(te),window):new bi}),B})();class dr{constructor(B,xe){this.document=B,this.window=xe,this.offset=()=>[0,0]}setOffset(B){this.offset=Array.isArray(B)?()=>B:B}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(B){this.window.scrollTo(B[0],B[1])}scrollToAnchor(B){const xe=function yi(T,B){const xe=T.getElementById(B)||T.getElementsByName(B)[0];if(xe)return xe;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const F=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let ge=F.currentNode;for(;ge;){const $e=ge.shadowRoot;if($e){const $t=$e.getElementById(B)||$e.querySelector(`[name="${B}"]`);if($t)return $t}ge=F.nextNode()}}return null}(this.document,B);xe&&(this.scrollToElement(xe),xe.focus())}setHistoryScrollRestoration(B){this.window.history.scrollRestoration=B}scrollToElement(B){const xe=B.getBoundingClientRect(),F=xe.left+this.window.pageXOffset,ge=xe.top+this.window.pageYOffset,$e=this.offset();this.window.scrollTo(F-$e[0],ge-$e[1])}}class bi{setOffset(B){}getScrollPosition(){return[0,0]}scrollToPosition(B){}scrollToAnchor(B){}setHistoryScrollRestoration(B){}}class Ai{}},1626:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Qq:()=>ie,q1:()=>cn}),x(467);var c=x(4438),ce=x(7673),Le=x(1985),K=x(8455),Ee=x(274),te=x(5964),qe=x(6354),Je=x(980),we=x(5558),Ae=x(177);class je{}class Ke{}class Be{constructor(R){this.normalizedNames=new Map,this.lazyUpdate=null,R?"string"==typeof R?this.lazyInit=()=>{this.headers=new Map,R.split("\n").forEach(U=>{const ee=U.indexOf(":");if(ee>0){const $=U.slice(0,ee),le=$.toLowerCase(),Ue=U.slice(ee+1).trim();this.maybeSetNormalizedName($,le),this.headers.has(le)?this.headers.get(le).push(Ue):this.headers.set(le,[Ue])}})}:typeof Headers<"u"&&R instanceof Headers?(this.headers=new Map,R.forEach((U,ee)=>{this.setHeaderEntries(ee,U)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(R).forEach(([U,ee])=>{this.setHeaderEntries(U,ee)})}:this.headers=new Map}has(R){return this.init(),this.headers.has(R.toLowerCase())}get(R){this.init();const U=this.headers.get(R.toLowerCase());return U&&U.length>0?U[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(R){return this.init(),this.headers.get(R.toLowerCase())||null}append(R,U){return this.clone({name:R,value:U,op:"a"})}set(R,U){return this.clone({name:R,value:U,op:"s"})}delete(R,U){return this.clone({name:R,value:U,op:"d"})}maybeSetNormalizedName(R,U){this.normalizedNames.has(U)||this.normalizedNames.set(U,R)}init(){this.lazyInit&&(this.lazyInit instanceof Be?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(R=>this.applyUpdate(R)),this.lazyUpdate=null))}copyFrom(R){R.init(),Array.from(R.headers.keys()).forEach(U=>{this.headers.set(U,R.headers.get(U)),this.normalizedNames.set(U,R.normalizedNames.get(U))})}clone(R){const U=new Be;return U.lazyInit=this.lazyInit&&this.lazyInit instanceof Be?this.lazyInit:this,U.lazyUpdate=(this.lazyUpdate||[]).concat([R]),U}applyUpdate(R){const U=R.name.toLowerCase();switch(R.op){case"a":case"s":let ee=R.value;if("string"==typeof ee&&(ee=[ee]),0===ee.length)return;this.maybeSetNormalizedName(R.name,U);const $=("a"===R.op?this.headers.get(U):void 0)||[];$.push(...ee),this.headers.set(U,$);break;case"d":const le=R.value;if(le){let Ue=this.headers.get(U);if(!Ue)return;Ue=Ue.filter(dt=>-1===le.indexOf(dt)),0===Ue.length?(this.headers.delete(U),this.normalizedNames.delete(U)):this.headers.set(U,Ue)}else this.headers.delete(U),this.normalizedNames.delete(U)}}setHeaderEntries(R,U){const ee=(Array.isArray(U)?U:[U]).map(le=>le.toString()),$=R.toLowerCase();this.headers.set($,ee),this.maybeSetNormalizedName(R,$)}forEach(R){this.init(),Array.from(this.normalizedNames.keys()).forEach(U=>R(this.normalizedNames.get(U),this.headers.get(U)))}}class Et{encodeKey(R){return pt(R)}encodeValue(R){return pt(R)}decodeKey(R){return decodeURIComponent(R)}decodeValue(R){return decodeURIComponent(R)}}const mt=/%(\d[a-f0-9])/gi,xt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pt(fe){return encodeURIComponent(fe).replace(mt,(R,U)=>{var ee;return null!==(ee=xt[U])&&void 0!==ee?ee:R})}function _t(fe){return`${fe}`}class Ne{constructor(R={}){if(this.updates=null,this.cloneFrom=null,this.encoder=R.encoder||new Et,R.fromString){if(R.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function lt(fe,R){const U=new Map;return fe.length>0&&fe.replace(/^\?/,"").split("&").forEach($=>{const le=$.indexOf("="),[Ue,dt]=-1==le?[R.decodeKey($),""]:[R.decodeKey($.slice(0,le)),R.decodeValue($.slice(le+1))],Gt=U.get(Ue)||[];Gt.push(dt),U.set(Ue,Gt)}),U}(R.fromString,this.encoder)}else R.fromObject?(this.map=new Map,Object.keys(R.fromObject).forEach(U=>{const ee=R.fromObject[U],$=Array.isArray(ee)?ee.map(_t):[_t(ee)];this.map.set(U,$)})):this.map=null}has(R){return this.init(),this.map.has(R)}get(R){this.init();const U=this.map.get(R);return U?U[0]:null}getAll(R){return this.init(),this.map.get(R)||null}keys(){return this.init(),Array.from(this.map.keys())}append(R,U){return this.clone({param:R,value:U,op:"a"})}appendAll(R){const U=[];return Object.keys(R).forEach(ee=>{const $=R[ee];Array.isArray($)?$.forEach(le=>{U.push({param:ee,value:le,op:"a"})}):U.push({param:ee,value:$,op:"a"})}),this.clone(U)}set(R,U){return this.clone({param:R,value:U,op:"s"})}delete(R,U){return this.clone({param:R,value:U,op:"d"})}toString(){return this.init(),this.keys().map(R=>{const U=this.encoder.encodeKey(R);return this.map.get(R).map(ee=>U+"="+this.encoder.encodeValue(ee)).join("&")}).filter(R=>""!==R).join("&")}clone(R){const U=new Ne({encoder:this.encoder});return U.cloneFrom=this.cloneFrom||this,U.updates=(this.updates||[]).concat(R),U}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(R=>this.map.set(R,this.cloneFrom.map.get(R))),this.updates.forEach(R=>{switch(R.op){case"a":case"s":const U=("a"===R.op?this.map.get(R.param):void 0)||[];U.push(_t(R.value)),this.map.set(R.param,U);break;case"d":if(void 0===R.value){this.map.delete(R.param);break}{let ee=this.map.get(R.param)||[];const $=ee.indexOf(_t(R.value));-1!==$&&ee.splice($,1),ee.length>0?this.map.set(R.param,ee):this.map.delete(R.param)}}}),this.cloneFrom=this.updates=null)}}class be{constructor(){this.map=new Map}set(R,U){return this.map.set(R,U),this}get(R){return this.map.has(R)||this.map.set(R,R.defaultValue()),this.map.get(R)}delete(R){return this.map.delete(R),this}has(R){return this.map.has(R)}keys(){return this.map.keys()}}function Te(fe){return typeof ArrayBuffer<"u"&&fe instanceof ArrayBuffer}function se(fe){return typeof Blob<"u"&&fe instanceof Blob}function ze(fe){return typeof FormData<"u"&&fe instanceof FormData}class Bt{constructor(R,U,ee,$){var le,Ue;let dt;if(this.url=U,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=R.toUpperCase(),function Ve(fe){switch(fe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||$?(this.body=void 0!==ee?ee:null,dt=$):dt=ee,dt&&(this.reportProgress=!!dt.reportProgress,this.withCredentials=!!dt.withCredentials,dt.responseType&&(this.responseType=dt.responseType),dt.headers&&(this.headers=dt.headers),dt.context&&(this.context=dt.context),dt.params&&(this.params=dt.params),this.transferCache=dt.transferCache),null!==(le=this.headers)&&void 0!==le||(this.headers=new Be),null!==(Ue=this.context)&&void 0!==Ue||(this.context=new be),this.params){const Gt=this.params.toString();if(0===Gt.length)this.urlWithParams=U;else{const qt=U.indexOf("?");this.urlWithParams=U+(-1===qt?"?":qtun.set(sr,R.setHeaders[sr]),gr)),R.setParams&&($r=Object.keys(R.setParams).reduce((un,sr)=>un.set(sr,R.setParams[sr]),$r)),new Bt(Ue,dt,Wn,{params:$r,headers:gr,context:Ir,reportProgress:Hr,responseType:Gt,withCredentials:$n,transferCache:qt})}}var At=function(fe){return fe[fe.Sent=0]="Sent",fe[fe.UploadProgress=1]="UploadProgress",fe[fe.ResponseHeader=2]="ResponseHeader",fe[fe.DownloadProgress=3]="DownloadProgress",fe[fe.Response=4]="Response",fe[fe.User=5]="User",fe}(At||{});class He{constructor(R,U=j.Ok,ee="OK"){this.headers=R.headers||new Be,this.status=void 0!==R.status?R.status:U,this.statusText=R.statusText||ee,this.url=R.url||null,this.ok=this.status>=200&&this.status<300}}class Zt extends He{constructor(R={}){super(R),this.type=At.ResponseHeader}clone(R={}){return new Zt({headers:R.headers||this.headers,status:void 0!==R.status?R.status:this.status,statusText:R.statusText||this.statusText,url:R.url||this.url||void 0})}}class tt extends He{constructor(R={}){super(R),this.type=At.Response,this.body=void 0!==R.body?R.body:null}clone(R={}){return new tt({body:void 0!==R.body?R.body:this.body,headers:R.headers||this.headers,status:void 0!==R.status?R.status:this.status,statusText:R.statusText||this.statusText,url:R.url||this.url||void 0})}}class De extends He{constructor(R){super(R,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${R.url||"(unknown url)"}`:`Http failure response for ${R.url||"(unknown url)"}: ${R.status} ${R.statusText}`,this.error=R.error||null}}var j=function(fe){return fe[fe.Continue=100]="Continue",fe[fe.SwitchingProtocols=101]="SwitchingProtocols",fe[fe.Processing=102]="Processing",fe[fe.EarlyHints=103]="EarlyHints",fe[fe.Ok=200]="Ok",fe[fe.Created=201]="Created",fe[fe.Accepted=202]="Accepted",fe[fe.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",fe[fe.NoContent=204]="NoContent",fe[fe.ResetContent=205]="ResetContent",fe[fe.PartialContent=206]="PartialContent",fe[fe.MultiStatus=207]="MultiStatus",fe[fe.AlreadyReported=208]="AlreadyReported",fe[fe.ImUsed=226]="ImUsed",fe[fe.MultipleChoices=300]="MultipleChoices",fe[fe.MovedPermanently=301]="MovedPermanently",fe[fe.Found=302]="Found",fe[fe.SeeOther=303]="SeeOther",fe[fe.NotModified=304]="NotModified",fe[fe.UseProxy=305]="UseProxy",fe[fe.Unused=306]="Unused",fe[fe.TemporaryRedirect=307]="TemporaryRedirect",fe[fe.PermanentRedirect=308]="PermanentRedirect",fe[fe.BadRequest=400]="BadRequest",fe[fe.Unauthorized=401]="Unauthorized",fe[fe.PaymentRequired=402]="PaymentRequired",fe[fe.Forbidden=403]="Forbidden",fe[fe.NotFound=404]="NotFound",fe[fe.MethodNotAllowed=405]="MethodNotAllowed",fe[fe.NotAcceptable=406]="NotAcceptable",fe[fe.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",fe[fe.RequestTimeout=408]="RequestTimeout",fe[fe.Conflict=409]="Conflict",fe[fe.Gone=410]="Gone",fe[fe.LengthRequired=411]="LengthRequired",fe[fe.PreconditionFailed=412]="PreconditionFailed",fe[fe.PayloadTooLarge=413]="PayloadTooLarge",fe[fe.UriTooLong=414]="UriTooLong",fe[fe.UnsupportedMediaType=415]="UnsupportedMediaType",fe[fe.RangeNotSatisfiable=416]="RangeNotSatisfiable",fe[fe.ExpectationFailed=417]="ExpectationFailed",fe[fe.ImATeapot=418]="ImATeapot",fe[fe.MisdirectedRequest=421]="MisdirectedRequest",fe[fe.UnprocessableEntity=422]="UnprocessableEntity",fe[fe.Locked=423]="Locked",fe[fe.FailedDependency=424]="FailedDependency",fe[fe.TooEarly=425]="TooEarly",fe[fe.UpgradeRequired=426]="UpgradeRequired",fe[fe.PreconditionRequired=428]="PreconditionRequired",fe[fe.TooManyRequests=429]="TooManyRequests",fe[fe.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",fe[fe.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",fe[fe.InternalServerError=500]="InternalServerError",fe[fe.NotImplemented=501]="NotImplemented",fe[fe.BadGateway=502]="BadGateway",fe[fe.ServiceUnavailable=503]="ServiceUnavailable",fe[fe.GatewayTimeout=504]="GatewayTimeout",fe[fe.HttpVersionNotSupported=505]="HttpVersionNotSupported",fe[fe.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",fe[fe.InsufficientStorage=507]="InsufficientStorage",fe[fe.LoopDetected=508]="LoopDetected",fe[fe.NotExtended=510]="NotExtended",fe[fe.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",fe}(j||{});function W(fe,R){return{body:R,headers:fe.headers,context:fe.context,observe:fe.observe,params:fe.params,reportProgress:fe.reportProgress,responseType:fe.responseType,withCredentials:fe.withCredentials,transferCache:fe.transferCache}}let ie=(()=>{var fe;class R{constructor(ee){this.handler=ee}request(ee,$,le={}){let Ue;if(ee instanceof Bt)Ue=ee;else{let qt,Wn;qt=le.headers instanceof Be?le.headers:new Be(le.headers),le.params&&(Wn=le.params instanceof Ne?le.params:new Ne({fromObject:le.params})),Ue=new Bt(ee,$,void 0!==le.body?le.body:null,{headers:qt,context:le.context,params:Wn,reportProgress:le.reportProgress,responseType:le.responseType||"json",withCredentials:le.withCredentials,transferCache:le.transferCache})}const dt=(0,ce.of)(Ue).pipe((0,Ee.H)(qt=>this.handler.handle(qt)));if(ee instanceof Bt||"events"===le.observe)return dt;const Gt=dt.pipe((0,te.p)(qt=>qt instanceof tt));switch(le.observe||"body"){case"body":switch(Ue.responseType){case"arraybuffer":return Gt.pipe((0,qe.T)(qt=>{if(null!==qt.body&&!(qt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qt.body}));case"blob":return Gt.pipe((0,qe.T)(qt=>{if(null!==qt.body&&!(qt.body instanceof Blob))throw new Error("Response is not a Blob.");return qt.body}));case"text":return Gt.pipe((0,qe.T)(qt=>{if(null!==qt.body&&"string"!=typeof qt.body)throw new Error("Response is not a string.");return qt.body}));default:return Gt.pipe((0,qe.T)(qt=>qt.body))}case"response":return Gt;default:throw new Error(`Unreachable: unhandled observe type ${le.observe}}`)}}delete(ee,$={}){return this.request("DELETE",ee,$)}get(ee,$={}){return this.request("GET",ee,$)}head(ee,$={}){return this.request("HEAD",ee,$)}jsonp(ee,$){return this.request("JSONP",ee,{params:(new Ne).append($,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ee,$={}){return this.request("OPTIONS",ee,$)}patch(ee,$,le={}){return this.request("PATCH",ee,W(le,$))}post(ee,$,le={}){return this.request("POST",ee,W(le,$))}put(ee,$,le={}){return this.request("PUT",ee,W(le,$))}}return(fe=R).\u0275fac=function(ee){return new(ee||fe)(c.KVO(je))},fe.\u0275prov=c.jDH({token:fe,factory:fe.\u0275fac}),R})();function Fn(fe,R){return R(fe)}function Nn(fe,R){return(U,ee)=>R.intercept(U,{handle:$=>fe($,ee)})}const Zn=new c.nKC(""),Xn=new c.nKC(""),wn=new c.nKC(""),or=new c.nKC("");function rr(){let fe=null;return(R,U)=>{var ee;null===fe&&(fe=(null!==(ee=(0,c.WQX)(Zn,{optional:!0}))&&void 0!==ee?ee:[]).reduceRight(Nn,Fn));const $=(0,c.WQX)(c.TgB),le=$.add();return fe(R,U).pipe((0,Je.j)(()=>$.remove(le)))}}let Ft=(()=>{var fe;class R extends je{constructor(ee,$){super(),this.backend=ee,this.injector=$,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const le=(0,c.WQX)(or,{optional:!0});this.backend=null!=le?le:ee}handle(ee){if(null===this.chain){const le=Array.from(new Set([...this.injector.get(Xn),...this.injector.get(wn,[])]));this.chain=le.reduceRight((Ue,dt)=>function qn(fe,R,U){return(ee,$)=>(0,c.N4e)(U,()=>R(ee,le=>fe(le,$)))}(Ue,dt,this.injector),Fn)}const $=this.pendingTasks.add();return this.chain(ee,le=>this.backend.handle(le)).pipe((0,Je.j)(()=>this.pendingTasks.remove($)))}}return(fe=R).\u0275fac=function(ee){return new(ee||fe)(c.KVO(Ke),c.KVO(c.uvJ))},fe.\u0275prov=c.jDH({token:fe,factory:fe.\u0275fac}),R})();const Cr=/^\)\]\}',?\n/;let ii=(()=>{var fe;class R{constructor(ee){this.xhrFactory=ee}handle(ee){if("JSONP"===ee.method)throw new c.wOt(-2800,!1);const $=this.xhrFactory;return($.\u0275loadImpl?(0,K.H)($.\u0275loadImpl()):(0,ce.of)(null)).pipe((0,we.n)(()=>new Le.c(Ue=>{const dt=$.build();if(dt.open(ee.method,ee.urlWithParams),ee.withCredentials&&(dt.withCredentials=!0),ee.headers.forEach((un,sr)=>dt.setRequestHeader(un,sr.join(","))),ee.headers.has("Accept")||dt.setRequestHeader("Accept","application/json, text/plain, */*"),!ee.headers.has("Content-Type")){const un=ee.detectContentTypeHeader();null!==un&&dt.setRequestHeader("Content-Type",un)}if(ee.responseType){const un=ee.responseType.toLowerCase();dt.responseType="json"!==un?un:"text"}const Gt=ee.serializeBody();let qt=null;const Wn=()=>{if(null!==qt)return qt;const un=dt.statusText||"OK",sr=new Be(dt.getAllResponseHeaders()),Wr=function jn(fe){return"responseURL"in fe&&fe.responseURL?fe.responseURL:/^X-Request-URL:/m.test(fe.getAllResponseHeaders())?fe.getResponseHeader("X-Request-URL"):null}(dt)||ee.url;return qt=new Zt({headers:sr,status:dt.status,statusText:un,url:Wr}),qt},$n=()=>{let{headers:un,status:sr,statusText:Wr,url:Fr}=Wn(),Er=null;sr!==j.NoContent&&(Er=typeof dt.response>"u"?dt.responseText:dt.response),0===sr&&(sr=Er?j.Ok:0);let pr=sr>=200&&sr<300;if("json"===ee.responseType&&"string"==typeof Er){const ei=Er;Er=Er.replace(Cr,"");try{Er=""!==Er?JSON.parse(Er):null}catch(kn){Er=ei,pr&&(pr=!1,Er={error:kn,text:Er})}}pr?(Ue.next(new tt({body:Er,headers:un,status:sr,statusText:Wr,url:Fr||void 0})),Ue.complete()):Ue.error(new De({error:Er,headers:un,status:sr,statusText:Wr,url:Fr||void 0}))},Hr=un=>{const{url:sr}=Wn(),Wr=new De({error:un,status:dt.status||0,statusText:dt.statusText||"Unknown Error",url:sr||void 0});Ue.error(Wr)};let gr=!1;const $r=un=>{gr||(Ue.next(Wn()),gr=!0);let sr={type:At.DownloadProgress,loaded:un.loaded};un.lengthComputable&&(sr.total=un.total),"text"===ee.responseType&&dt.responseText&&(sr.partialText=dt.responseText),Ue.next(sr)},Ir=un=>{let sr={type:At.UploadProgress,loaded:un.loaded};un.lengthComputable&&(sr.total=un.total),Ue.next(sr)};return dt.addEventListener("load",$n),dt.addEventListener("error",Hr),dt.addEventListener("timeout",Hr),dt.addEventListener("abort",Hr),ee.reportProgress&&(dt.addEventListener("progress",$r),null!==Gt&&dt.upload&&dt.upload.addEventListener("progress",Ir)),dt.send(Gt),Ue.next({type:At.Sent}),()=>{dt.removeEventListener("error",Hr),dt.removeEventListener("abort",Hr),dt.removeEventListener("load",$n),dt.removeEventListener("timeout",Hr),ee.reportProgress&&(dt.removeEventListener("progress",$r),null!==Gt&&dt.upload&&dt.upload.removeEventListener("progress",Ir)),dt.readyState!==dt.DONE&&dt.abort()}})))}}return(fe=R).\u0275fac=function(ee){return new(ee||fe)(c.KVO(Ae.N0))},fe.\u0275prov=c.jDH({token:fe,factory:fe.\u0275fac}),R})();const er=new c.nKC(""),Mr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_r=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ii{}let Zr=(()=>{var fe;class R{constructor(ee,$,le){this.doc=ee,this.platform=$,this.cookieName=le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ee=this.doc.cookie||"";return ee!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ae._b)(ee,this.cookieName),this.lastCookieString=ee),this.lastToken}}return(fe=R).\u0275fac=function(ee){return new(ee||fe)(c.KVO(Ae.qQ),c.KVO(c.Agw),c.KVO(Mr))},fe.\u0275prov=c.jDH({token:fe,factory:fe.\u0275fac}),R})();function zr(fe,R){const U=fe.url.toLowerCase();if(!(0,c.WQX)(er)||"GET"===fe.method||"HEAD"===fe.method||U.startsWith("http://")||U.startsWith("https://"))return R(fe);const ee=(0,c.WQX)(Ii).getToken(),$=(0,c.WQX)(_r);return null!=ee&&!fe.headers.has($)&&(fe=fe.clone({headers:fe.headers.set($,ee)})),R(fe)}var Ye=function(fe){return fe[fe.Interceptors=0]="Interceptors",fe[fe.LegacyInterceptors=1]="LegacyInterceptors",fe[fe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",fe[fe.NoXsrfProtection=3]="NoXsrfProtection",fe[fe.JsonpSupport=4]="JsonpSupport",fe[fe.RequestsMadeViaParent=5]="RequestsMadeViaParent",fe[fe.Fetch=6]="Fetch",fe}(Ye||{});function yt(fe,R){return{\u0275kind:fe,\u0275providers:R}}function st(...fe){const R=[ie,ii,Ft,{provide:je,useExisting:Ft},{provide:Ke,useExisting:ii},{provide:Xn,useValue:zr,multi:!0},{provide:er,useValue:!0},{provide:Ii,useClass:Zr}];for(const U of fe)R.push(...U.\u0275providers);return(0,c.EmA)(R)}const me=new c.nKC("");let cn=(()=>{var fe;class R{}return(fe=R).\u0275fac=function(ee){return new(ee||fe)},fe.\u0275mod=c.$C({type:fe}),fe.\u0275inj=c.G2t({providers:[st(yt(Ye.LegacyInterceptors,[{provide:me,useFactory:rr},{provide:Xn,useExisting:me,multi:!0}]))]}),R})()},4438:(Dn,Ct,x)=>{"use strict";x.d(Ct,{iLQ:()=>HI,sZ2:()=>vv,hnV:()=>tD,Hbi:()=>JM,o8S:()=>Id,BIS:()=>Iy,gRc:()=>pD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>ts,zcH:()=>Ya,bkB:()=>Os,$GK:()=>ur,nKC:()=>$,zZn:()=>hs,_q3:()=>JI,MKu:()=>ZI,xe9:()=>ay,Co$:()=>Ti,Vns:()=>io,SKi:()=>Ao,Xx1:()=>Sn,Agw:()=>Jd,PLl:()=>_v,sFG:()=>gm,_9s:()=>up,czy:()=>qg,kdw:()=>Gn,C4Q:()=>ap,NYb:()=>vM,giA:()=>ZT,xvI:()=>GR,RxE:()=>WT,c1b:()=>hd,gXe:()=>ms,mal:()=>u_,L39:()=>wP,a0P:()=>kP,Ol2:()=>X0,w6W:()=>os,oH4:()=>cD,SmG:()=>LM,Rfq:()=>zr,WQX:()=>Me,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>KT,H8p:()=>dl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>Xe,WHO:()=>YT,e01:()=>JT,H5H:()=>II,Zy3:()=>wt,mq5:()=>cC,JZv:()=>jn,LfX:()=>Nt,plB:()=>tl,jNT:()=>jI,zjR:()=>eD,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>wp,Mj6:()=>as,GFd:()=>ji,OA$:()=>Pt,Jv_:()=>AT,aNF:()=>CT,R7$:()=>o0,BMQ:()=>oI,AVh:()=>hI,vxM:()=>tC,wni:()=>JC,VBU:()=>vs,FsC:()=>ls,jDH:()=>ir,G2t:()=>Mi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>_I,eu8:()=>yI,bVm:()=>Y_,qex:()=>Q_,k0s:()=>q_,j41:()=>X_,RV6:()=>aC,xGo:()=>hf,KVO:()=>H,kS0:()=>Lc,QTQ:()=>s0,bIt:()=>CI,lsd:()=>tT,qSk:()=>ef,XpG:()=>BC,SdG:()=>zC,NAR:()=>jC,Y8G:()=>uI,FS9:()=>DI,lJ4:()=>DT,mGM:()=>eT,Dyx:()=>iC,Z7z:()=>rC,fX1:()=>nC,Njj:()=>Ac,eBV:()=>Sd,$dS:()=>dh,n$t:()=>Hf,xc7:()=>dI,DNE:()=>xp,EFF:()=>dT,JRh:()=>wI,SpI:()=>ny,Lme:()=>SI,DH7:()=>IT,mxI:()=>MI,R50:()=>RI,GBs:()=>ZC}),x(467);let ce=null,K=1;const Ee=Symbol("SIGNAL");function te(e){const t=ce;return ce=e,t}function Be(e){if((!be(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==K)){if(!e.producerMustRecompute(e)&&!pt(e))return e.dirty=!1,void(e.lastCleanEpoch=K);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=K}}function pt(e){Ve(e);for(let t=0;t0}function Ve(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}let Zt=null;var qn=x(1413),Zn=x(8359),Xn=x(4412),wn=x(6354);const rr="https://g.co/ng/security#xss";class Xe extends Error{constructor(t,r){super(wt(t,r)),this.code=t}}function wt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function An(e){return{toString:e}.toString()}const Kt="__parameters__";function kr(e,t,r){return An(()=>{const o=function Lr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,V,Y){const ae=A.hasOwnProperty(Kt)?A[Kt]:Object.defineProperty(A,Kt,{value:[]})[Kt];for(;ae.length<=Y;)ae.push(null);return(ae[Y]=ae[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const jn=globalThis;function Mn(e){for(let t in e)if(e[t]===Mn)return t;throw Error("Could not find renamed property on target object.")}function Mr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function tr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(tr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function _r(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Zr=Mn({__forward_ref__:Mn});function zr(e){return e.__forward_ref__=zr,e.toString=function(){return tr(this())},e}function de(e){return Ye(e)?e():e}function Ye(e){return"function"==typeof e&&e.hasOwnProperty(Zr)&&e.__forward_ref__===zr}function ir(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mi(e){return{providers:e.providers||[],imports:e.imports||[]}}function mi(e){return It(e,fe)||It(e,U)}function Nt(e){return null!==mi(e)}function It(e,t){return e.hasOwnProperty(t)?e[t]:null}function Tn(e){return e&&(e.hasOwnProperty(R)||e.hasOwnProperty(ee))?e[R]:null}const fe=Mn({\u0275prov:Mn}),R=Mn({\u0275inj:Mn}),U=Mn({ngInjectableDef:Mn}),ee=Mn({ngInjectorDef:Mn});class ${constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=ir({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ir(e){return e&&!!e.\u0275providers}const un=Mn({\u0275cmp:Mn}),sr=Mn({\u0275dir:Mn}),Wr=Mn({\u0275pipe:Mn}),Fr=Mn({\u0275mod:Mn}),Er=Mn({\u0275fac:Mn}),pr=Mn({__NG_ELEMENT_ID__:Mn}),ei=Mn({__NG_ENV_ID__:Mn});function kn(e){return"string"==typeof e?e:null==e?"":String(e)}function li(e,t){throw new Xe(-201,!1)}var ur=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ur||{});let Kr;function _i(){return Kr}function Yn(e){const t=Kr;return Kr=e,t}function Lo(e,t,r){const o=mi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&ur.Optional?null:void 0!==t?t:void li()}const co={},bo="__NG_DI_FLAG__",Li="ngTempTokenPath",q=/\n/gm,P="__source";let ye;function mr(e){const t=ye;return ye=e,t}function Ei(e,t=ur.Default){if(void 0===ye)throw new Xe(-203,!1);return null===ye?Lo(e,void 0,t):ye.get(e,t&ur.Optional?null:void 0,t)}function H(e,t=ur.Default){return(_i()||Ei)(de(e),t)}function Me(e,t=ur.Default){return H(e,We(t))}function We(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function vt(e){const t=[];for(let r=0;rArray.isArray(r)?yi(r,t):t(r))}function bi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ai(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=wo(e,t);return o>=0?e[1|o]=r:(o=~o,function ui(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function qo(e,t){const r=wo(e,t);if(r>=0)return e[1|r]}function wo(e,t){return function ss(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&V!==ae){if(_e(o))return!1;g=!0}}}}else{if(!g&&!_e(o)&&!_e(A))return!1;if(g&&_e(A))continue;g=!1,o=A|1&o}}return _e(o)||g}function _e(e){return!(1&e)}function G(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!_e(g)&&(t+=ao(d,a),a=""),o=g,d=d||!_e(o);r++}return""!==a&&(t+=ao(d,a)),t}function vs(e){return An(()=>{var t;const r=ll(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ms.Emulated,styles:e.styles||jr,_:null,schemas:e.schemas||null,tView:null,id:""};us(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function Sr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Bs(e){return cr(e)||Vi(e)}function Oa(e){return null!==e}function sl(e){return An(()=>({type:e.type,bootstrap:e.bootstrap||jr,declarations:e.declarations||jr,imports:e.imports||jr,exports:e.exports||jr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function al(e,t){if(null==e)return Vo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=as.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==as.None?[a,A]:a,t[g]=y):r[g]=a}return r}function ls(e){return An(()=>{const t=ll(e);return us(t),t})}function ha(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function cr(e){return e[un]||null}function Vi(e){return e[sr]||null}function xi(e){return e[Wr]||null}function ro(e){const t=cr(e)||Vi(e)||xi(e);return null!==t&&t.standalone}function oi(e,t){const r=e[Fr]||null;if(!r&&!0===t)throw new Error(`Type ${tr(e)} does not have '\u0275mod' property.`);return r}function ll(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Vo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||jr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:al(e.inputs,t),outputs:al(e.outputs),debugInfo:null}}function us(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function _s(e,t){if(!e)return null;const r=t?xi:Bs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(Oa)}function ul(e){return{\u0275providers:e}}function ys(...e){return{\u0275providers:ka(0,e),\u0275fromNgModule:!0}}function ka(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return yi(t,g=>{const y=g;cl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,d),r}function js(e,t){for(let r=0;r{t(d,o)})}}function cl(e,t,r,o){if(!(e=de(e)))return!1;let a=null,d=Tn(e);const g=!d&&cr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=Tn(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const V of A)cl(V,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let V;o.add(a);try{yi(d.imports,Y=>{cl(Y,t,r,o)&&(V||(V=[]),V.push(Y))})}finally{}void 0!==V&&js(V,t)}if(!y){const V=Ur(a)||(()=>new a);t({provide:a,useFactory:V,deps:jr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>H(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const V=e;Vl(A,Y=>{t(Y,V)})}}}return a!==e&&void 0!==e.providers}function Vl(e,t){for(let r of e)Ir(r)&&(r=r.\u0275providers),Array.isArray(r)?Vl(r,t):t(r)}const Ul=Mn({provide:String,useValue:Mn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Zo(e){return"function"==typeof e}const dl=new $(""),es={},wu={};let $l;function Uo(){return void 0===$l&&($l=new ua),$l}class ts{}class Rs extends ts{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ms(t,g=>this.processProvider(g)),this.records.set(Us,La(void 0,this)),a.has("environment")&&this.records.set(ts,La(void 0,this));const d=this.records.get(dl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(so,jr,ur.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=te(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),te(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=mr(this),o=Yn(void 0);try{return t()}finally{mr(r),Yn(o)}}get(t,r=co,o=ur.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ei))return t[ei](this);o=We(o);const d=mr(this),g=Yn(void 0);try{if(!(o&ur.SkipSelf)){let A=this.records.get(t);if(void 0===A){const V=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof $}(t)&&mi(t);A=V&&this.injectableDefInScope(V)?La(Ni(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&ur.Self?Uo():this.parent).get(t,r=o&ur.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Li]=y[Li]||[]).unshift(tr(t)),d)throw y;return function Qt(e,t,r,o){const a=e[Li];throw t[P]&&a.unshift(t[P]),e.message=function tn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=tr(t);if(Array.isArray(t))a=t.map(tr).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(q,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Li]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{Yn(g),mr(d)}}resolveInjectorInitializers(){const t=te(null),r=mr(this),o=Yn(void 0);try{const d=this.get(oo,jr,ur.Self);for(const g of d)g()}finally{mr(r),Yn(o),te(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(tr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Xe(205,!1)}processProvider(t){let r=Zo(t=de(t))?t:de(t&&t.provide);const o=function Bl(e){return fa(e)?La(void 0,e.useValue):La(ga(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=La(void 0,es,!0),a.factory=()=>vt(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=te(null);try{return r.value===es&&(r.value=wu,r.value=r.factory()),"object"==typeof r.value&&r.value&&function pc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{te(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=de(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Ni(e){const t=mi(e),r=null!==t?t.factory:Ur(e);if(null!==r)return r;if(e instanceof $)throw new Xe(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new Xe(204,!1);const r=function zt(e){return e&&(e[fe]||e[U])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Xe(204,!1)}function ga(e,t,r){let o;if(Zo(e)){const a=de(e);return Ur(a)||Ni(a)}if(fa(e))o=()=>de(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...vt(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>H(de(e.useExisting));else{const a=de(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return Ur(a)||Ni(a);o=()=>new a(...vt(e.deps))}return o}function La(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ms(e,t){for(const r of e)Array.isArray(r)?Ms(r,t):r&&Ir(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=mr(e),a=Yn(void 0);try{return t()}finally{mr(o),Yn(a)}}function Hs(){return void 0!==_i()||null!=function at(){return ye}()}const si=0,In=1,zn=2,ci=3,Gi=4,wi=5,Wi=6,$i=7,pi=8,Hi=9,$o=10,wr=11,Va=12,gc=13,Ua=14,Ki=15,va=16,ns=17,Ro=18,Gs=19,jl=20,Qr=21,_a=22,Ws=23,Or=25,$a=1,Bo=7,Ks=9,Bi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Yr(e){return Array.isArray(e)&&"object"==typeof e[$a]}function yo(e){return Array.isArray(e)&&!0===e[$a]}function zl(e){return!!(4&e.flags)}function As(e){return e.componentOffset>-1}function Ia(e){return!(1&~e.flags)}function cs(e){return!!e.template}function Hl(e){return!!(512&e[zn])}class Tt{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function an(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Pt(){return xn}function xn(e){return e.type.prototype.ngOnChanges&&(e.setInput=ki),br}function br(){const e=Xi(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Vo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function ki(e,t,r,o,a){const d=this.declaredInputs[o],g=Xi(e)||function jo(e,t){return e[ti]=t}(e,{previous:Vo,current:null}),y=g.current||(g.current={}),A=g.previous,V=A[d];y[d]=new Tt(V&&V.currentValue,r,A===Vo),an(e,t,a,r)}Pt.ngInherit=!0;const ti="__ngSimpleChanges__";function Xi(e){return e[ti]||null}const Io=function(e,t,r){},hl="svg";let Ps=!1;function Ci(e){for(;Array.isArray(e);)e=e[si];return e}function Ga(e,t){return Ci(t[e])}function rs(e,t){return Ci(t[e.index])}function ql(e,t){return e.data[t]}function Mo(e,t){const r=t[e];return Yr(r)?r:r[si]}function vc(e){return!(128&~e[zn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[ns]=0}function bd(e){1024&e[zn]||(e[zn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[zn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[$o].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[zn])if(function Ca(){return Ps}())e[zn]|=1024,xs(e);else{var r;null===(r=e[$o].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[$o].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[zn])&&(r[zn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[zn]))throw new Xe(911,!1);null===e[Qr]&&(e[Qr]=[]),e[Qr].push(t)}function Qs(e){const t=e[ci];return yo(t)?t[ci]:t}const nr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return nr.bindingsEnabled}function Jl(){return null!==nr.skipHydrationRootTNode}function Yt(){return nr.lFrame.lView}function di(){return nr.lFrame.tView}function Sd(e){return nr.lFrame.contextLView=e,e[pi]}function Ac(e){return nr.lFrame.contextLView=null,e}function Pi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return nr.lFrame.currentTNode}function Zs(e,t){const r=nr.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return nr.lFrame.isParent}function Nu(){nr.lFrame.isParent=!1}function Ts(){return nr.lFrame.bindingIndex++}function na(e){const t=nr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function Md(e,t){const r=nr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){nr.lFrame.currentDirectiveIndex=e}function xd(){return nr.lFrame.currentQueryIndex}function Dc(e){nr.lFrame.currentQueryIndex=e}function bc(e){const t=e[In];return 2===t.type?t.declTNode:1===t.type?e[wi]:null}function Jh(e,t,r){if(r&ur.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&ur.Host||(a=bc(d),null===a||(d=d[Ua],10&a.type))););if(null===a)return!1;t=a,e=d}const o=nr.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[In];nr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function ku(){const e=nr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Nd(){const e=nr.lFrame;return nr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wc=Nd;function Fu(){const e=Nd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function fo(){return nr.lFrame.selectedIndex}function ba(e){nr.lFrame.selectedIndex=e}function Si(){const e=nr.lFrame;return ql(e.tView,e.selectedIndex)}function ef(){nr.lFrame.currentNamespace=hl}let Vu=!0;function Uu(){return Vu}function Ns(e){Vu=e}function $u(e,t){for(let V=t.directiveStart,Y=t.directiveEnd;V=o)break}else t[A]<0&&(e[ns]+=65536),(y>14>16&&(3&e[zn])===t&&(e[zn]+=16384,vl(y,d)):vl(y,d)}const _l=-1;class yl{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Il(e){return e!==_l}function wa(e){return 32767&e}function El(e,t){let r=function xc(e){return e>>16}(e),o=t;for(;r>0;)o=o[Ua],r--;return o}let ju=!0;function Zl(e){const t=ju;return ju=e,t}const lf=255,Ld=5;let Nc=0;const Ds={};function zu(e,t){const r=Vd(e,t);if(-1!==r)return r;const o=t[In];o.firstCreatePass&&(e.injectorIndex=t.length,Po(o.data,e),Po(t,null),Po(o.blueprint,null));const a=Xa(e,t),d=e.injectorIndex;if(Il(a)){const g=wa(a),y=El(a,t),A=y[In].data;for(let V=0;V<8;V++)t[d+V]=y[g+V]|A[g+V]}return t[d+8]=a,d}function Po(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Qa(a),null===o)return _l;if(r++,a=a[Ua],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return _l}function Al(e,t,r){!function cv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(pr)&&(o=r[pr]),null==o&&(o=r[pr]=Nc++);const a=o&lf;t.data[e+(a>>Ld)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&ur.Host?eu(a,0,o):Ud(t,r,o,a);try{let g;if(g=d(o),null!=g||o&ur.Optional)return g;li()}finally{wc()}}else if("number"==typeof d){let g=null,y=Vd(e,t),A=_l,V=o&ur.Host?t[Ki][wi]:null;for((-1===y||o&ur.SkipSelf)&&(A=-1===y?Xa(e,t):t[y+8],A!==_l&&tu(o,!1)?(g=t[In],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const Y=t[In];if(Fc(d,y,Y.data)){const ae=sg(y,t,r,g,o,V);if(ae!==Ds)return ae}A=t[y+8],A!==_l&&tu(o,t[In].data[y+8]===V)&&Fc(d,y,t)?(g=Y,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,d){const g=t[In],y=g.data[e+8],Y=$d(y,g,r,null==o?As(y)&&ju:o!=g&&!!(3&y.type),a&ur.Host&&d===y);return null!==Y?Cl(t,g,Y,y):Ds}function $d(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,Fe=a?y+Y:e.directiveEnd;for(let rt=o?y:y+Y;rt=A&&St.type===r)return rt}if(a){const rt=g[A];if(rt&&cs(rt)&&rt.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof yl}(a)){const g=a;g.resolving&&function vi(e,t){throw t&&t.join(" > "),new Xe(-200,e)}(function Vn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():kn(e)}(d[r]));const y=Zl(g.canSeeViewProviders);g.resolving=!0;const V=g.injectImpl?Yn(g.injectImpl):null;Jh(e,o,ur.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const ae=xn(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,ae),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,ae)}var A,V,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(V=r.preOrderHooks)&&void 0!==V?V:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==V&&Yn(V),Zl(y),g.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Ld)]&1<{const t=e.prototype.constructor,r=t[Er]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[Er]||Hu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Hu(e){return Ye(e)?()=>{const t=Hu(de(e));return t&&t()}:Ur(e)}function Qa(e){const t=e[In],r=t.type;return 2===r?t.declTNode:1===r?e[wi]:null}function Lc(e){return function Oc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return ug({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return ug({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=ir({token:e,providedIn:"any",factory:()=>H(Us)}),e.__NG_ELEMENT_ID__=-1,t})();function Uc(e){return e.ngOriginalError}class Ya{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Uc(t);for(;r&&Uc(r);)r=Uc(r);return r||null}}const zd=new $("",{providedIn:"root",factory:()=>Me(Ya).handleError.bind(void 0)});let Ku=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=cg,e.__NG_ENV_ID__=r=>r,t})();class Ef extends Ku{constructor(t){super(),this._lView=t}onDestroy(t){return Wa(this._lView,t),()=>function Yl(e,t){if(null===e[Qr])return;const r=e[Qr].indexOf(t);-1!==r&&e[Qr].splice(r,1)}(this._lView,t)}}function cg(){return new Ef(Yt())}function qu(){return oa(Pi(),Yt())}function oa(e,t){return new Qu(rs(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=qu,t})();function ru(e){return e instanceof Qu?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Os=class hv extends qn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Me(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=te(null);try{super.next(t)}finally{te(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,V;const ae=t;a=null===(y=ae.next)||void 0===y?void 0:y.bind(ae),d=null===(A=ae.error)||void 0===A?void 0:A.bind(ae),g=null===(V=ae.complete)||void 0===V?void 0:V.bind(ae)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof Zn.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class $c{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Os}constructor(t=!1){this._emitDistinctChangesOnly=t,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 r=$c.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function dr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Tr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new $(""),Jd=new $("",{providedIn:"platform",factory:()=>"unknown"}),Iy=new $("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new Xe(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Av=()=>null;function rh(e,t,r=!1){return Av(e,t,r)}const xg=new $("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Vf(){if(void 0===ah&&(ah=null,jn.trustedTypes))try{ah=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ah}())||void 0===t?void 0:t.createScriptURL(e))||e}class kg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rr})`}}function cu(e){return e instanceof kg?e.changingThisBreaksApplicationSecurity:e}function po(e,t){const r=function go(e){return e instanceof kg&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${rr})`)}return r===t}const sE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var qc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(qc||{});function dh(e){const t=Sa();return t?t.sanitize(qc.STYLE,e)||"":po(e,"Style")?cu(e):kn(e)}function Qc(e){const t=Sa();return t?t.sanitize(qc.URL,e)||"":po(e,"URL")?cu(e):function Oi(e){return(e=String(e)).match(sE)?e:"unsafe:"+e}(kn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(qc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new Xe(904,!1)}function Hf(e,t,r){return function Hg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$g:Qc}(t,r)(e)}function Sa(){const e=Yt();return e&&e[$o].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var qg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qg||{});let Bv;function Qg(e,t){return Bv(e,t)}function gh(e,t,r,o,a){if(null!=o){let d,g=!1;yo(o)?d=o:Yr(o)&&(g=!0,o=o[si]);const y=Ci(o);0===e&&null!==r?null==a?rd(t,r,y):nd(t,r,y,a||null,!0):1===e&&null!==r?nd(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function gE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function vE(e,t,r,o,a){const d=r[Bo];d!==Ci(r)&&gh(t,e,o,d,a);for(let y=Bi;yt.replace(Lv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[$o].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[wr],2,null,null)}function zv(e,t){const r=e[Ks],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Bi)return;const r=Bi+t,o=e[r];if(o){const a=o[va];null!==a&&a!==e&&zv(a,o),t>0&&(e[r-1][Gi]=o[Gi]);const d=Ai(e,Bi+t);!function Ky(e,t){jv(e,t),t[si]=null,t[wi]=null}(o[In],o);const g=d[Ro];null!==g&&g.detachView(d[In]),o[ci]=null,o[Gi]=null,o[zn]&=-129}return o}function Yg(e,t){if(!(256&t[zn])){const r=t[wr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[Va];if(!t)return Jg(e[In],e);for(;t;){let r=null;if(Yr(t))r=t[Va];else{const o=t[Bi];o&&(r=o)}if(!r){for(;t&&!t[Gi]&&t!==e;)Yr(t)&&Jg(t[In],t),t=t[ci];null===t&&(t=e),Yr(t)&&Jg(t[In],t),r=t&&t[Gi]}t=r}}(t)}}function Jg(e,t){if(256&t[zn])return;const r=te(null);try{t[zn]&=-129,t[zn]|=256,t[Ws]&&function _t(e){if(Ve(e),be(e))for(let t=0;t=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[$i]=null);const a=t[Qr];if(null!==a){t[Qr]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ms.None||d===ms.Emulated)return null}return rs(o,r)}}(e,t.parent,r)}function nd(e,t,r,o,a){e.insertBefore(t,r,o,a)}function rd(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?nd(e,t,r,o,a):rd(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Gv(e,t,r){return Jy(e,t,r)}let Kv,Jy=function Wv(e,t,r){return 40&e.type?rs(e,r):null};function Zg(e,t,r,o){const a=Hv(e,o,t),d=t[wr],y=Gv(o.parent||t[wi],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AOr&&nm(e,t,Or,!1),Io(g?2:0,a),r(o,a)}finally{ba(d),Io(g?3:1,a)}}function Qv(e,t,r){if(zl(t)){const o=te(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function Jv(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,V=as.None;Array.isArray(y)?(A=y[0],V=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?f0(o,r,Y,A,V):f0(o,r,Y,A)}return o}function f0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function ks(e,t,r,o,a,d,g,y){const A=rs(t,r);let Y,V=t.inputs;!y&&null!=V&&(Y=V[o])?(n_(e,r,Y,o,a),As(t)&&function DE(e,t){const r=Mo(t,e);16&r[zn]||(r[zn]|=64)}(r,t.index)):3&t.type&&(o=function TE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function Zv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},d=function PE(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,Gr),a)}function Ml(e,t,r,o,a,d){const g=rs(e,t);!function t_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?kn(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[wr],g,d,e.value,r,o,a)}function FE(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][Gi]=t),o!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xs(e.lView)},consumerOnSignalRead(){this.lView[Ws]=this}},D0=100;function cm(e,t=!0,r=0){const o=e[$o],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function HE(e,t){i_(e,t);let r=0;for(;Ql(e);){if(r===D0)throw new Xe(103,!1);r++,i_(e,1)}}(e,r)}catch(V){throw t&&am(e,V),V}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function GE(e,t,r,o){var a;const d=t[zn];if(!(256&~d))return;null===(a=t[$o].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function WE(e){return 2!==e.type})(e)&&(A=function $E(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function BE(e){var t;const r=null!==(t=T0.pop())&&void 0!==t?t:Object.create(zE);return r.lView=e,r}(e)}(t),y=function mt(e){return e&&(e.nextProducerIndex=0),te(e)}(A));try{yc(t),function Cc(e){return nr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&l0(e,t,r,2,o);const V=!(3&~d);if(V){const Fe=e.preOrderCheckHooks;null!==Fe&&Sc(t,Fe,null)}else{const Fe=e.preOrderHooks;null!==Fe&&ra(t,Fe,0,null),ia(t,0)}if(function KE(e){for(let t=gg(e);null!==t;t=bf(t)){if(!(t[zn]&Su.HasTransplantedViews))continue;const r=t[Ks];for(let o=0;oe.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(A,y),function jE(e){e.lView[Ws]!==e&&(e.lView=null,T0.push(e))}(A)),Fu()}}function b0(e,t){for(let r=gg(e);null!==r;r=bf(r))for(let o=Bi;o-1&&(qf(t,o),Ai(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[In],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[zn]&=-129}reattach(){fl(this._lView),this._lView[zn]|=128}detectChanges(){this._lView[zn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Xe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[In],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Xe(902,!1);this._appRef=t,fl(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=QE,t})();const R0=ap,qE=class extends R0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function QE(){return dm(Pi(),Yt())}function dm(e,t){return 4&e.type?new qE(t,e,oa(e,t)):null}let fm=()=>null;function mo(e,t){return fm(e,t)}class pm{}class Eh{}class s_{}class lp{resolveComponentFactory(t){throw function Ah(e){const t=Error(`No component factory found for ${tr(e)}.`);return t.ngComponent=e,t}(t)}}let lc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let gm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function mm(){const e=Yt(),r=Mo(Pi().index,e);return(Yr(r)?r:e)[wr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},l_=new Set;function Ma(e){var t,r;l_.has(e)||(l_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function _m(...e){}class Ao{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new Xe(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function ym(){const e="function"==typeof jn.requestAnimationFrame;let t=jn[e?"requestAnimationFrame":"setTimeout"],r=jn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function is(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(jn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,zo(e),e.isCheckStableRunning=!0,Ch(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),zo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function k0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return Th(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return Th(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,zo(e),Ch(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ao.isInAngularZone())throw new Xe(909,!1)}static assertNotInAngularZone(){if(Ao.isInAngularZone())throw new Xe(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Im={};function Ch(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function zo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Th(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Am(e){e._nesting--,Ch(e)}class Cm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var mu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(mu||{});const Tm={destroy(){}};function u_(e,t){var r,o,a;!t&&function Es(e){if(!Hs())throw new Xe(-203,!1)}();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Me(hs);if(!function el(e){return"browser"===(null!=e?e:Me(hs)).get(Jd)}(d))return Tm;Ma("NgAfterNextRender");const g=d.get(ad),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new Dm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:mu.MixedReadWrite,V=()=>{y.unregister(ae),Y()},Y=d.get(Ku).onDestroy(V),ae=lo(d,()=>new dp(A,()=>{V(),e()}));return y.register(ae),{destroy:V}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Me(Ao),this.errorHandler=Me(Ya,{optional:!0}),null===(o=Me(pm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class Dm{constructor(){this.executingCallbacks=!1,this.buckets={[mu.EarlyRead]:new Set,[mu.Write]:new Set,[mu.MixedReadWrite]:new Set,[mu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ad=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!oi(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&n0(e,r,d.join(" "))}}(Ht,Fl,En,o),void 0!==r&&function g_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=m_,t})();function m_(){return _p(Pi(),Yt())}const v_=hd,__=class extends v_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xa(this._hostTNode,this._hostLView);if(Il(t)){const r=El(t,this._hostLView),o=wa(t);return new Yi(r[In].data[o+8],r)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Sh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Bi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=mo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,yh(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const V=t&&!function $t(e){return"function"==typeof e}(t);let Y;if(V)Y=r;else{const En=r||{};Y=En.index,o=En.injector,a=En.projectableNodes,d=En.environmentInjector||En.ngModuleRef}const ae=V?t:new wh(cr(t)),Fe=o||this.parentInjector;if(!d&&null==ae.ngModule){const nn=(V?Fe:this.parentInjector).get(ts,null);nn&&(d=nn)}const rt=cr(null!==(g=ae.componentType)&&void 0!==g?g:{}),St=mo(this._lContainer,null!==(y=null==rt?void 0:rt.id)&&void 0!==y?y:null),Ht=null!==(A=null==St?void 0:St.firstChild)&&void 0!==A?A:null,gn=ae.create(Fe,a,Ht,d);return this.insertImpl(gn.hostView,Y,yh(this._hostTNode,St)),gn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return yo(e[ci])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[ci],V=new __(A,A[wi],A[ci]);V.detach(V.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),bi(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Sh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(Ai(vp(this._lContainer),r),Yg(o[In],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=Ai(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Sh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return yo(o)?r=o:(r=_0(o,t,null,e),t[e.index]=r,om(t,r)),Iu(r,t,e,o),new __(r,e,t)}let Iu=function Rm(e,t,r,o){if(e[Bo])return;let a;a=8&r.type?Ci(o):function Rh(e,t){const r=e[wr],o=r.createComment(""),a=rs(t,e);return nd(r,Yf(r,a),o,function Yy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Bo]=a},Mh=()=>!1;class Ph{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ph(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class xm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const V=d[y+1],Y=t[-A];for(let ae=Bi;ae=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Yo(a.hostAttrs,r=Yo(r,a.hostAttrs))}}(o)}function O_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===Vo?{}:e===jr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function Fs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function F_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function ji(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class io{}class Ti{}function os(e,t){return new Cu(e,null!=t?t:null,[])}class Cu extends io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new d_(this);const a=oi(t);this._bootstrapComponents=aa(a.bootstrap),this._r3Injector=If(t,r,[{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver},...o],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ls extends Ti{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}class Mp extends io{constructor(t){super(),this.componentFactoryResolver=new d_(this),this.instance=null;const r=new Rs([...t.providers,{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver}],t.parent||Uo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function X0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Xn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!q0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function q0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function xo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function xp(e,t,r,o,a,d,g,y){const A=Yt(),V=di(),Y=e+Or,ae=V.firstCreatePass?function db(e,t,r,o,a,d,g,y,A){const V=t.consts,Y=sc(t,e,4,g||null,Cs(V,y));Zv(t,r,Y,Cs(V,A)),$u(t,Y);const ae=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,V,null);return null!==t.queries&&(t.queries.template(t,Y),ae.queries=t.queries.embeddedTView(Y)),Y}(Y,V,A,t,r,o,a,d,g):V.data[Y];Zs(ae,!1);const Fe=aA(V,A,ae,e);Uu()&&Zg(V,A,Fe,ae),Ji(Fe,A);const rt=_0(Fe,A,Fe,ae);return A[Y]=rt,om(A,rt),function y_(e,t,r){return Mh(e,t,r)}(rt,ae,A),Ia(ae)&&vh(V,A,ae),null!=g&&od(A,ae,y),xp}let aA=function lA(e,t,r,o){return Ns(!0),t[wr].createComment("")};function oI(e,t,r,o){const a=Yt();return xo(a,Ts(),t)&&(di(),Ml(Si(),a,e,t,r,o)),oI}function $p(e,t,r,o){return xo(e,Ts(),r)?t+kn(r)+o:Gr}function Bp(e,t,r,o,a,d){const y=function $h(e,t,r,o){const a=xo(e,t,r);return xo(e,t+1,o)||a}(e,function ta(){return nr.lFrame.bindingIndex}(),r,a);return na(2),y?t+kn(r)+o+kn(a)+d:Gr}function W_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function sI(e){return 2|e}function jh(e){return(131068&e)>>2}function aI(e,t){return-131069&e|t<<2}function lI(e){return 1|e}function UA(e,t,r,o){const a=e[r+1],d=null===t;let g=o?yd(a):jh(a),y=!1;for(;0!==g&&(!1===y||d);){const V=e[g+1];Yb(e[g],t)&&(y=!0,e[g+1]=o?lI(V):sI(V)),g=o?yd(V):jh(V)}y&&(e[r+1]=o?sI(a):lI(a))}function Yb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wo(e,t)>=0}function uI(e,t,r){const o=Yt();return xo(o,Ts(),t)&&ks(di(),Si(),o,e,t,o[wr],r,!1),uI}function cI(e,t,r,o,a){const g=a?"class":"style";n_(e,r,t.inputs[g],g,o)}function dI(e,t,r){return Ol(e,t,r,!1),dI}function hI(e,t){return Ol(e,t,null,!0),hI}function Ol(e,t,r,o){const a=Yt(),d=di(),g=na(2);d.firstUpdatePass&&function KA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[fo()],g=function WA(e,t){return t>=e.expandoStartIndex}(e,r);(function YA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function sw(e,t,r,o){const a=function Ou(e){const t=nr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Xm(r=fI(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=fI(a,e,t,r,o),null===d){let A=function aw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==jh(o))return e[yd(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=fI(null,e,t,A[1],o),A=Xm(A,t.attrs,o),function lw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function uw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(V=!0)):Y=r,a)if(0!==A){const Fe=yd(e[y+1]);e[o+1]=W_(Fe,y),0!==Fe&&(e[Fe+1]=aI(e[Fe+1],o)),e[y+1]=function Kb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=W_(y,0),0!==y&&(e[y+1]=aI(e[y+1],o)),y=o;else e[o+1]=W_(A,0),0===y?y=o:e[A+1]=aI(e[A+1],o),A=o;V&&(e[o+1]=sI(e[o+1])),UA(e,Y,o,!0),UA(e,Y,o,!1),function Qb(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&wo(d,t)>=0&&(r[o+1]=lI(r[o+1]))}(t,Y,e,o,d),g=W_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==Gr&&xo(a,g,t)&&function qA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,V=A[y+1],Y=function Xb(e){return!(1&~e)}(V)?QA(A,t,r,a,jh(V),g):void 0;K_(Y)||(K_(d)||function Wb(e){return!(2&~e)}(V)&&(d=QA(A,null,r,a,y,g)),function _E(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:qg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=qg.Important),e.setStyle(r,o,a,d))}}(o,g,Ga(fo(),r),a,d))}(d,d.data[fo()],a,a[wr],e,a[g+1]=function fw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=tr(cu(e)))),e}(t,r),o,g)}function fI(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],V=Array.isArray(A),Y=V?A[1]:A,ae=null===Y;let Fe=r[a+1];Fe===Gr&&(Fe=ae?jr:void 0);let rt=ae?qo(Fe,o):Y===o?Fe:void 0;if(V&&!K_(rt)&&(rt=qo(A,o)),K_(rt)&&(y=rt,g))return y;const St=e[a+1];a=g?yd(St):jh(St)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=qo(A,o))}return y}function K_(e){return void 0!==e}class Tw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function pI(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function gI(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function JA(e,t,r,o,a){if(gI(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function ZA(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class eC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function tC(e,t,r){Ma("NgControlFlow");const o=Yt(),a=Ts(),d=mI(o,Or+e);if(xo(o,a,t)){const y=te(null);try{if(um(d,0),-1!==t){const A=vI(o[In],Or+t),V=mo(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:V}),0,yh(A,V))}}finally{te(y)}}else{const y=r_(d,0);void 0!==y&&(y[pi]=r)}}class bw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Bi}}function nC(e,t){return t}class Sw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function rC(e,t,r,o,a,d,g,y,A,V,Y,ae,Fe){Ma("NgControlFlow");const rt=void 0!==A,St=Yt(),Ht=y?g.bind(St[Ki][pi]):g,gn=new Sw(rt,Ht);St[Or+e]=gn,xp(e+1,t,r,o,a,d),rt&&xp(e+2,A,V,Y,ae,Fe)}class Rw extends Tw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Bi}at(t){return this.getLView(t)[pi].$implicit}attach(t,r){const o=r[Wi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,yh(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Mw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=mo(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new bw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Yg(t[In],t)}updateValue(t,r){this.getLView(t)[pi].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Fe)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=Ts(),A=0===g.length;if(xo(o,y,A)){const V=r+2,Y=mI(o,V);if(A){const ae=vI(a,V),Fe=mo(Y,ae.tView.ssrId);rp(Y,np(o,ae,void 0,{dehydratedView:Fe}),0,yh(ae,Fe))}else um(Y,0)}}}finally{te(t)}}function mI(e,t){return e[t]}function vI(e,t){return ql(e,t)}function X_(e,t,r,o){const a=Yt(),d=di(),g=Or+e,y=a[wr],A=d.firstCreatePass?function xw(e,t,r,o,a,d){const g=t.consts,A=sc(t,e,2,o,Cs(g,a));return Zv(t,r,A,Cs(g,d)),null!==A.attrs&&_u(A,A.attrs,!1),null!==A.mergedAttrs&&_u(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],V=oC(d,a,A,y,t,e);a[g]=V;const Y=Ia(A);return Zs(A,!0),r0(y,V,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Zg(d,a,V,A),0===function Ic(){return nr.lFrame.elementDepthCount}()&&Ji(V,a),function Ec(){nr.lFrame.elementDepthCount++}(),Y&&(vh(d,a,A),Qv(d,A,a)),null!==o&&od(a,A),X_}function q_(){let e=Pi();xu()?Nu():(e=e.parent,Zs(e,!1));const t=e;(function gl(e){return nr.skipHydrationRootTNode===e})(t)&&function Ka(){nr.skipHydrationRootTNode=null}(),function Ys(){nr.lFrame.elementDepthCount--}();const r=di();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&cI(r,t,Yt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&cI(r,t,Yt(),t.stylesWithoutHost,!1),q_}function _I(e,t,r,o){return X_(e,t,r,o),q_(),_I}let oC=(e,t,r,o,a,d)=>(Ns(!0),Rl(o,a,function Od(){return nr.lFrame.currentNamespace}()));function Q_(e,t,r){const o=Yt(),a=di(),d=e+Or,g=a.firstCreatePass?function kw(e,t,r,o,a){const d=t.consts,g=Cs(d,o),y=sc(t,e,8,"ng-container",g);return null!==g&&_u(y,g,!0),Zv(t,r,y,Cs(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];Zs(g,!0);const y=sC(a,o,g,e);return o[d]=y,Uu()&&Zg(a,o,y,g),Ji(y,o),Ia(g)&&(vh(a,o,g),Qv(a,g,o)),null!=r&&od(o,g),Q_}function Y_(){let e=Pi();const t=di();return xu()?Nu():(e=e.parent,Zs(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),Y_}function yI(e,t,r){return Q_(e,t,r),Y_(),yI}let sC=(e,t,r,o)=>(Ns(!0),td(t[wr],""));function aC(){return Yt()}const zh=void 0;var Uw=["en",[["a","p"],["AM","PM"],zh],[["AM","PM"],zh,zh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],zh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],zh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",zh,"{1} 'at' {0}",zh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function II(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=dC(t);if(r)return r;const o=t.split("-")[0];if(r=dC(o),r)return r;if("en"===o)return Uw;throw new Xe(701,!1)}function cC(e){return II(e)[Qp.PluralCase]}function dC(e){return e in qp||(qp[e]=jn.ng&&jn.ng.common&&jn.ng.common.locales&&jn.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let hC=Yp;function CI(e,t,r,o){const a=Yt(),d=di(),g=Pi();return TI(d,a,a[wr],g,e,t,o),CI}function TI(e,t,r,o,a,d,g){const y=Ia(o),V=e.firstCreatePass&&E0(e),Y=t[pi],ae=I0(t);let Fe=!0;if(3&o.type||g){const Ht=rs(o,t),gn=g?g(Ht):Ht,En=ae.length,nn=g?Jr=>g(Ci(Jr[o.index])):o.index;let xr=null;if(!g&&y&&(xr=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==xr)(xr.__ngLastListenerFn__||xr).__ngNextListenerFn__=d,xr.__ngLastListenerFn__=d,Fe=!1;else{d=$C(o,t,Y,d,!1);const Jr=r.listen(gn,a,d);ae.push(d,Jr),V&&V.push(a,nn,En,En+1)}}else d=$C(o,t,Y,d,!1);const rt=o.outputs;let St;if(Fe&&null!==rt&&(St=rt[a])){const Ht=St.length;if(Ht)for(let gn=0;gn-1?Mo(e.index,t):t);let A=UC(t,r,o,g),V=d.__ngNextListenerFn__;for(;V;)A=UC(t,r,V,g)&&A,V=V.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function BC(e=1){return function Lu(e){return(nr.lFrame.contextLView=function tg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,nr.lFrame.contextLView))[pi]}(e)}function LS(e,t){let r=null;const o=function fn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ns(!0),function Sl(e,t){return e.createText(t)}(t[wr],o));function wI(e){return ny("",e,""),wI}function ny(e,t,r){const o=Yt(),a=$p(o,e,t,r);return a!==Gr&&pu(o,fo(),a),ny}function SI(e,t,r,o,a){const d=Yt(),g=Bp(d,e,t,r,o,a);return g!==Gr&&pu(d,fo(),g),SI}function RI(e,t,r){km(t)&&(t=t());const o=Yt();return xo(o,Ts(),t)&&ks(di(),Si(),o,e,t,o[wr],r,!1),RI}function IT(e,t){const r=km(e);return r&&e.set(t),r}function MI(e,t){const r=Yt(),o=di(),a=Pi();return TI(o,r,r[wr],a,e,t),MI}function PI(e,t,r,o,a){if(e=de(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const rt=new yl(V,a,id),St=NI(A,t,a?Y:Y+Fe,ae);-1===St?(Al(zu(y,g),d,A),xI(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(rt),g.push(rt)):(r[St]=rt,g[St]=rt)}else{const rt=NI(A,t,Y+Fe,ae),St=NI(A,t,Y,Y+Fe),gn=St>=0&&r[St];if(a&&!gn||!a&&!(rt>=0&&r[rt])){Al(zu(y,g),d,A);const En=function rR(e,t,r,o,a){const d=new yl(e,r,id);return d.multi=[],d.index=t,d.componentProviders=0,ET(d,a,o&&!r),d}(a?nR:tR,r.length,a,o,V);!a&&gn&&(r[St].providerFactory=En),xI(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(En),g.push(En)}else xI(d,e,rt>-1?rt:St,ET(r[a?St:rt],V,!a&&o));!a&&o&&gn&&r[St].componentProviders++}}}function xI(e,t,r,o){const a=Zo(t),d=function Ss(e){return!!e.useClass}(t);if(a||d){const A=(d?de(t.useClass):t).prototype.ngOnDestroy;if(A){const V=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=V.indexOf(r);-1===Y?V.push(r,[o,A]):V[Y+1].push(o,A)}else V.push(r,A)}}}function ET(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=di();if(o.firstCreatePass){const a=cs(e);PI(r,o.data,o.blueprint,a,!0),PI(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let iR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=ka(0,o.type),d=a.length>0?X0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=ir({token:e,providedIn:"environment",factory:()=>new e(H(ts))}),t})();function CT(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function DT(e,t,r){const o=function ho(){const e=nr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Yt();return a[o]===Gr?function Tu(e,t,r){return e[t]=r}(a,o,r?t.call(r):t()):function zm(e,t){return e[t]}(a,o)}class WT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const GR=new WT("17.3.10");let KT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const YT=new $(""),JT=new $("");let BI,vM=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,BI||(function _M(e){BI=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.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:()=>{Ao.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 o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(H(Ao),H(ZT),H(JT))},e.\u0275prov=ir({token:e,factory:e.\u0275fac}),t})(),ZT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=BI)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function jI(e){return!!e&&"function"==typeof e.then}function eD(e){return!!e&&"function"==typeof e.subscribe}const tD=new $("");let zI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Me(tD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(jI(g))o.push(g);else if(eD(g)){const y=new Promise((A,V)=>{g.subscribe({complete:A,error:V})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const HI=new $("");function iD(e,t){return Array.isArray(t)?t.reduce(iD,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Me(zd),this.afterRenderEffectManager=Me(ad),this.externalTestViews=new Set,this.beforeRender=new qn.B,this.afterTick=new qn.B,this.componentTypes=[],this.components=[],this.isStable=Me(Pp).hasPendingTasks.pipe((0,wn.T)(o=>!o)),this._injector=Me(ts)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof s_;if(!this._injector.get(zI).done)throw!d&&ro(o),new Xe(405,!1);let y;y=d?o:this._injector.get(lc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function yM(e){return e.isBoundToModule}(y)?void 0:this._injector.get(io),Y=y.create(hs.NULL,[],a||y.selector,A),ae=Y.location.nativeElement,Fe=Y.injector.get(YT,null);return null==Fe||Fe.registerApplication(ae),Y.onDestroy(()=>{this.detachView(Y.hostView),sy(this.components,Y),null==Fe||Fe.unregisterApplication(ae)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Xe(101,!1);const a=te(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,te(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===D0)throw new Xe(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)EM(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>GI(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>GI(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;sy(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(HI,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>sy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Xe(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function sy(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!GI(e)||function AM(e,t,r){let o;r?(o=0,e[zn]|=1024):o=64&e[zn]?0:1,cm(e,t,o)}(e,r,t)}function GI(e){return Ql(e)}class CM{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let TM=(()=>{var e;class t{compileModuleSync(o){return new Ls(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=aa(oi(o).declarations).reduce((y,A)=>{const V=cr(A);return V&&y.push(new wh(V)),y},[]);return new CM(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Me(Ao),this.applicationRef=Me(Id)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Me(Ao),t=Me(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new Zn.yU,this.initialized=!1,this.zone=Me(Ao),this.pendingTasks=Me(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ao.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Ao.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const ay=new $("",{providedIn:"root",factory:()=>Me(ay,ur.Optional|ur.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Yp}()}),xM=new $("",{providedIn:"root",factory:()=>"USD"}),WI=new $("");let lD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function Dh(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Ao(t):e}(null==a?void 0:a.ngZone,function aD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function sD(e){return[{provide:Ao,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Me(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Me(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>d)),y=g.injector.get(Ya,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:V=>{y.handleError(V)}});g.onDestroy(()=>{sy(this._modules,g),A.unsubscribe()})}),function rD(e,t,r){try{const o=r();return jI(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(zI);return A.runInitializers(),A.donePromise.then(()=>(function fC(e){"string"==typeof e&&(hC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(ay,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=iD({},a);return function bM(e,t,r){const o=new Ls(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new Xe(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Xe(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(WI,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(H(hs))},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const uD=new $("");function cD(e,t,r=[]){const o=`Platform: ${t}`,a=new $(o);return(d=[])=>{let g=KI();if(!g||g.injector.get(uD,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(uD,!1))throw new Xe(400,!1);(function nD(){!function De(e){Zt=e}(()=>{throw new Xe(600,!1)})})(),Ed=e;const t=e.get(lD);(function hD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function dD(e=[],t){return hs.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:WI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=KI();if(!t)throw new Xe(401,!1);return t}()}}function KI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(lD))&&void 0!==e?e:null}function LM(){}let pD=(()=>{class t{}return t.__NG_ELEMENT_ID__=VM,t})();function VM(e){return function UM(e,t,r){if(As(e)&&!r){const o=Mo(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[Ki],t):null}(Pi(),Yt(),!(16&~e))}class _D{constructor(){}supports(t){return U_(t)}create(t){return new HM(t)}}const zM=(e,t)=>t;class HM{constructor(t){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=t||zM}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new GM(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}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(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new yD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class GM{constructor(t,r){this.item=t,this.trackById=r,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 WM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class yD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new WM,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ID(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new XM(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class XM{constructor(t){this.key=t,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 AD(){return new JI([new _D])}let JI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||AD()),deps:[[t,new Gn,new Sn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new Xe(901,!1)}}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:AD}),t})();function CD(){return new ZI([new ED])}let ZI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||CD()),deps:[[t,new Gn,new Sn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new Xe(901,!1)}}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:CD}),t})();const YM=cD(null,"core",[]);let JM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(H(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=Mi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=te(null);try{return e()}finally{te(t)}}function kP(e,t){const r=cr(e),o=t.elementInjector||Uo();return new wh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=cr(e);if(!t)return null;const r=new wh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(Dn,Ct,x)=>{"use strict";x.d(Ct,{MW:()=>Ke,Wp:()=>lt,XU:()=>Le,gL:()=>K});var f=x(2214),c=x(4438),ce=x(5407);class Le{constructor(Qe){return Qe}}class K{constructor(){return(0,f.Dk)()}}const qe=new c.nKC("angularfire2._apps"),Je={provide:Le,useFactory:function te(Ne){return Ne&&1===Ne.length?Ne[0]:new Le((0,f.Sx)())},deps:[[new c.Xx1,qe]]},we={provide:K,deps:[[new c.Xx1,qe]]};function Ae(Ne){return(Qe,be)=>{const Ve=be.get(c.Agw);(0,f.KO)("angularfire",ce.xv.full,"core"),(0,f.KO)("angularfire",ce.xv.full,"app"),(0,f.KO)("angular",c.xvI.full,Ve.toString());const Te=Qe.runOutsideAngular(()=>Ne(be));return new Le(Te)}}function Ke(Ne,...Qe){return(0,c.EmA)([Je,we,{provide:qe,useFactory:Ae(Ne),multi:!0,deps:[c.SKi,c.zZn,ce.u0,...Qe]}])}const lt=(0,ce.S3)(f.Wp,!0)},8737:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Nj:()=>Xa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>Xu,kQ:()=>Fc});var f=x(5407),c=x(4438),ce=x(7440),Le=x(2214),K=x(467),Ee=x(7852),te=x(1076),qe=x(8041),Je=x(1635),we=x(1362);const xt=function lt(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},pt=new te.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Ne=new qe.Vy("@firebase/auth");function be(E,...h){Ne.logLevel<=qe.$b.ERROR&&Ne.error(`Auth (${Ee.MF}): ${E}`,...h)}function Ve(E,...h){throw Bt(E,...h)}function Te(E,...h){return Bt(E,...h)}function se(E,h,v){const b=Object.assign(Object.assign({},xt()),{[h]:v});return new te.FA("auth","Firebase",b).create(h,{appName:E.name})}function ze(E){return se(E,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Bt(E,...h){if("string"!=typeof E){const v=h[0],b=[...h.slice(1)];return b[0]&&(b[0].appName=E.name),E._errorFactory.create(v,...b)}return pt.create(E,...h)}function At(E,h,...v){if(!E)throw Bt(h,...v)}function He(E){const h="INTERNAL ASSERTION FAILED: "+E;throw be(h),new Error(h)}function Zt(E,h){E||He(h)}function tt(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.href)||""}function j(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.protocol)||null}class J{constructor(h,v){this.shortDelay=h,this.longDelay=v,Zt(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,te.jZ)()||(0,te.lV)()}get(){return function W(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function De(){return"http:"===j()||"https:"===j()}()||(0,te.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function re(E,h){Zt(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class Re{static initialize(h,v,b){this.fetchImpl=h,v&&(this.headersImpl=v),b&&(this.responseImpl=b)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void He("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void He("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void He("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Ge={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},Jt=new J(3e4,6e4);function yn(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function rn(E,h,v,b){return Fn.apply(this,arguments)}function Fn(){return(Fn=(0,K.A)(function*(E,h,v,b,Z={}){return Nn(E,Z,(0,K.A)(function*(){let Ie={},ft={};b&&("GET"===h?ft=b:Ie={body:JSON.stringify(b)});const Vt=(0,te.Am)(Object.assign({key:E.config.apiKey},ft)).slice(1),pn=yield E._getAdditionalHeaders();return pn["Content-Type"]="application/json",E.languageCode&&(pn["X-Firebase-Locale"]=E.languageCode),Re.fetch()(wn(E,E.config.apiHost,v,Vt),Object.assign({method:h,headers:pn,referrerPolicy:"no-referrer"},Ie))}))})).apply(this,arguments)}function Nn(E,h,v){return qn.apply(this,arguments)}function qn(){return(qn=(0,K.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Ge),h);try{const Z=new rr(E),Ie=yield Promise.race([v(),Z.promise]);Z.clearNetworkTimeout();const ft=yield Ie.json();if("needConfirmation"in ft)throw Xe(E,"account-exists-with-different-credential",ft);if(Ie.ok&&!("errorMessage"in ft))return ft;{const Vt=Ie.ok?ft.errorMessage:ft.error.message,[pn,On]=Vt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===pn)throw Xe(E,"credential-already-in-use",ft);if("EMAIL_EXISTS"===pn)throw Xe(E,"email-already-in-use",ft);if("USER_DISABLED"===pn)throw Xe(E,"user-disabled",ft);const ar=b[pn]||pn.toLowerCase().replace(/[_\s]+/g,"-");if(On)throw se(E,ar,On);Ve(E,ar)}}catch(Z){if(Z instanceof te.g)throw Z;Ve(E,"network-request-failed",{message:String(Z)})}})).apply(this,arguments)}function Zn(E,h,v,b){return Xn.apply(this,arguments)}function Xn(){return(Xn=(0,K.A)(function*(E,h,v,b,Z={}){const Ie=yield rn(E,h,v,b,Z);return"mfaPendingCredential"in Ie&&Ve(E,"multi-factor-auth-required",{_serverResponse:Ie}),Ie})).apply(this,arguments)}function wn(E,h,v,b){const Z=`${h}${v}?${b}`;return E.config.emulator?re(E.config,Z):`${E.config.apiScheme}://${Z}`}function or(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class rr{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(Te(this.auth,"network-request-failed")),Jt.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Xe(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const Z=Te(E,h,b);return Z.customData._tokenResponse=v,Z}function Ft(E){return void 0!==E&&void 0!==E.enterprise}class en{constructor(h){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=h.recaptchaEnforcementState}getProviderEnforcementState(h){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===h)return or(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function Cn(E,h){return An.apply(this,arguments)}function An(){return(An=(0,K.A)(function*(E,h){return rn(E,"GET","/v2/recaptchaConfig",yn(E,h))})).apply(this,arguments)}function Kt(){return(Kt=(0,K.A)(function*(E,h){return rn(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function Lr(E,h){return kr.apply(this,arguments)}function kr(){return(kr=(0,K.A)(function*(E,h){return rn(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function Cr(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function er(){return(er=(0,K.A)(function*(E,h=!1){const v=(0,te.Ku)(E),b=yield v.getIdToken(h),Z=Mr(b);At(Z&&Z.exp&&Z.auth_time&&Z.iat,v.auth,"internal-error");const Ie="object"==typeof Z.firebase?Z.firebase:void 0,ft=null==Ie?void 0:Ie.sign_in_provider;return{claims:Z,token:b,authTime:Cr(Mn(Z.auth_time)),issuedAtTime:Cr(Mn(Z.iat)),expirationTime:Cr(Mn(Z.exp)),signInProvider:ft||null,signInSecondFactor:(null==Ie?void 0:Ie.sign_in_second_factor)||null}})).apply(this,arguments)}function Mn(E){return 1e3*Number(E)}function Mr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return be("JWT malformed, contained fewer than 3 sections"),null;try{const Z=(0,te.u)(v);return Z?JSON.parse(Z):(be("Failed to decode base64 JWT payload"),null)}catch(Z){return be("Caught error parsing JWT payload as JSON",null==Z?void 0:Z.toString()),null}}function tr(E){const h=Mr(E);return At(h,"internal-error"),At(typeof h.exp<"u","internal-error"),At(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function _r(E,h){return Ii.apply(this,arguments)}function Ii(){return(Ii=(0,K.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof te.g&&function Zr({code:E}){return"auth/user-disabled"===E||"auth/user-token-expired"===E}(b)&&E.auth.currentUser===E&&(yield E.auth.signOut()),b}})).apply(this,arguments)}class zr{constructor(h){this.user=h,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(h){var v;if(h){const b=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),b}{this.errorBackoff=3e4;const Z=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,Z)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,K.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,K.A)(function*(){try{yield h.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&h.schedule(!0))}h.schedule()})()}}class de{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Cr(this.lastLoginAt),this.creationTime=Cr(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function Ye(E){return yt.apply(this,arguments)}function yt(){return(yt=(0,K.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),Z=yield _r(E,Lr(v,{idToken:b}));At(null==Z?void 0:Z.users.length,v,"internal-error");const Ie=Z.users[0];E._notifyReloadListener(Ie);const ft=null!==(h=Ie.providerUserInfo)&&void 0!==h&&h.length?ke(Ie.providerUserInfo):[],Vt=function me(E,h){return[...E.filter(b=>!h.some(Z=>Z.providerId===b.providerId)),...h]}(E.providerData,ft),ar=!!E.isAnonymous&&!(E.email&&Ie.passwordHash||null!=Vt&&Vt.length),ni={uid:Ie.localId,displayName:Ie.displayName||null,photoURL:Ie.photoUrl||null,email:Ie.email||null,emailVerified:Ie.emailVerified||!1,phoneNumber:Ie.phoneNumber||null,tenantId:Ie.tenantId||null,providerData:Vt,metadata:new de(Ie.createdAt,Ie.lastLoginAt),isAnonymous:ar};Object.assign(E,ni)})).apply(this,arguments)}function he(){return(he=(0,K.A)(function*(E){const h=(0,te.Ku)(E);yield Ye(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function ke(E){return E.map(h=>{var{providerId:v}=h,b=(0,Je.Tt)(h,["providerId"]);return{providerId:v,uid:b.rawId||"",displayName:b.displayName||null,email:b.email||null,phoneNumber:b.phoneNumber||null,photoURL:b.photoUrl||null}})}function ne(){return(ne=(0,K.A)(function*(E,h){const v=yield Nn(E,{},(0,K.A)(function*(){const b=(0,te.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:Z,apiKey:Ie}=E.config,ft=wn(E,Z,"/v1/token",`key=${Ie}`),Vt=yield E._getAdditionalHeaders();return Vt["Content-Type"]="application/x-www-form-urlencoded",Re.fetch()(ft,{method:"POST",headers:Vt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function et(){return(et=(0,K.A)(function*(E,h){return rn(E,"POST","/v2/accounts:revokeToken",yn(E,h))})).apply(this,arguments)}class Lt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){At(h.idToken,"internal-error"),At(typeof h.idToken<"u","internal-error"),At(typeof h.refreshToken<"u","internal-error");const v="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):tr(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,v)}updateFromIdToken(h){At(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,K.A)(function*(){return v||!b.accessToken||b.isExpired?(At(b.refreshToken,h,"user-token-expired"),b.refreshToken?(yield b.refresh(h,b.refreshToken),b.accessToken):null):b.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,v){var b=this;return(0,K.A)(function*(){const{accessToken:Z,refreshToken:Ie,expiresIn:ft}=yield function Rt(E,h){return ne.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(Z,Ie,Number(ft))})()}updateTokensAndExpiration(h,v,b){this.refreshToken=v||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*b}static fromJSON(h,v){const{refreshToken:b,accessToken:Z,expirationTime:Ie}=v,ft=new Lt;return b&&(At("string"==typeof b,"internal-error",{appName:h}),ft.refreshToken=b),Z&&(At("string"==typeof Z,"internal-error",{appName:h}),ft.accessToken=Z),Ie&&(At("number"==typeof Ie,"internal-error",{appName:h}),ft.expirationTime=Ie),ft}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(h){this.accessToken=h.accessToken,this.refreshToken=h.refreshToken,this.expirationTime=h.expirationTime}_clone(){return Object.assign(new Lt,this.toJSON())}_performRefresh(){return He("not implemented")}}function Xt(E,h){At("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class cn{constructor(h){var{uid:v,auth:b,stsTokenManager:Z}=h,Ie=(0,Je.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new zr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=Z,this.accessToken=Z.accessToken,this.displayName=Ie.displayName||null,this.email=Ie.email||null,this.emailVerified=Ie.emailVerified||!1,this.phoneNumber=Ie.phoneNumber||null,this.photoURL=Ie.photoURL||null,this.isAnonymous=Ie.isAnonymous||!1,this.tenantId=Ie.tenantId||null,this.providerData=Ie.providerData?[...Ie.providerData]:[],this.metadata=new de(Ie.createdAt||void 0,Ie.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,K.A)(function*(){const b=yield _r(v,v.stsTokenManager.getToken(v.auth,h));return At(b,v.auth,"internal-error"),v.accessToken!==b&&(v.accessToken=b,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),b})()}getIdTokenResult(h){return function ii(E){return er.apply(this,arguments)}(this,h)}reload(){return function st(E){return he.apply(this,arguments)}(this)}_assign(h){this!==h&&(At(this.uid===h.uid,this.auth,"internal-error"),this.displayName=h.displayName,this.photoURL=h.photoURL,this.email=h.email,this.emailVerified=h.emailVerified,this.phoneNumber=h.phoneNumber,this.isAnonymous=h.isAnonymous,this.tenantId=h.tenantId,this.providerData=h.providerData.map(v=>Object.assign({},v)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const v=new cn(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){At(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=h,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(h){this.reloadListener?this.reloadListener(h):this.reloadUserInfo=h}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(h,v=!1){var b=this;return(0,K.A)(function*(){let Z=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),Z=!0),v&&(yield Ye(b)),yield b.auth._persistUserIfCurrent(b),Z&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,K.A)(function*(){if((0,Ee.xZ)(h.auth.app))return Promise.reject(ze(h.auth));const v=yield h.getIdToken();return yield _r(h,function sn(E,h){return Kt.apply(this,arguments)}(h.auth,{idToken:v})),h.stsTokenManager.clearRefreshToken(),h.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(h=>Object.assign({},h)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(h,v){var b,Z,Ie,ft,Vt,pn,On,ar;const ni=null!==(b=v.displayName)&&void 0!==b?b:void 0,Fo=null!==(Z=v.email)&&void 0!==Z?Z:void 0,Ji=null!==(Ie=v.phoneNumber)&&void 0!==Ie?Ie:void 0,sa=null!==(ft=v.photoURL)&&void 0!==ft?ft:void 0,Wd=null!==(Vt=v.tenantId)&&void 0!==Vt?Vt:void 0,ou=null!==(pn=v._redirectEventId)&&void 0!==pn?pn:void 0,Kd=null!==(On=v.createdAt)&&void 0!==On?On:void 0,Yu=null!==(ar=v.lastLoginAt)&&void 0!==ar?ar:void 0,{uid:Ju,emailVerified:Zu,isAnonymous:Tf,providerData:su,stsTokenManager:Df}=v;At(Ju&&Df,h,"internal-error");const Xd=Lt.fromJSON(this.name,Df);At("string"==typeof Ju,h,"internal-error"),Xt(ni,h.name),Xt(Fo,h.name),At("boolean"==typeof Zu,h,"internal-error"),At("boolean"==typeof Tf,h,"internal-error"),Xt(Ji,h.name),Xt(sa,h.name),Xt(Wd,h.name),Xt(ou,h.name),Xt(Kd,h.name),Xt(Yu,h.name);const qd=new cn({uid:Ju,auth:h,email:Fo,emailVerified:Zu,displayName:ni,isAnonymous:Tf,photoURL:sa,phoneNumber:Ji,tenantId:Wd,stsTokenManager:Xd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(qd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(qd._redirectEventId=ou),qd}static _fromIdTokenResponse(h,v,b=!1){return(0,K.A)(function*(){const Z=new Lt;Z.updateFromServerResponse(v);const Ie=new cn({uid:v.localId,auth:h,stsTokenManager:Z,isAnonymous:b});return yield Ye(Ie),Ie})()}static _fromGetAccountInfoResponse(h,v,b){return(0,K.A)(function*(){const Z=v.users[0];At(void 0!==Z.localId,"internal-error");const Ie=void 0!==Z.providerUserInfo?ke(Z.providerUserInfo):[],ft=!(Z.email&&Z.passwordHash||null!=Ie&&Ie.length),Vt=new Lt;Vt.updateFromIdToken(b);const pn=new cn({uid:Z.localId,auth:h,stsTokenManager:Vt,isAnonymous:ft}),On={uid:Z.localId,displayName:Z.displayName||null,photoURL:Z.photoUrl||null,email:Z.email||null,emailVerified:Z.emailVerified||!1,phoneNumber:Z.phoneNumber||null,tenantId:Z.tenantId||null,providerData:Ie,metadata:new de(Z.createdAt,Z.lastLoginAt),isAnonymous:!(Z.email&&Z.passwordHash||null!=Ie&&Ie.length)};return Object.assign(pn,On),pn})()}}const Hn=new Map;function dn(E){Zt(E instanceof Function,"Expected a class definition");let h=Hn.get(E);return h?(Zt(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,Hn.set(E,h),h)}const Qn=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,K.A)(function*(){return!0})()}_set(v,b){var Z=this;return(0,K.A)(function*(){Z.storage[v]=b})()}_get(v){var b=this;return(0,K.A)(function*(){const Z=b.storage[v];return void 0===Z?null:Z})()}_remove(v){var b=this;return(0,K.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Pr(E,h,v){return`firebase:${E}:${h}:${v}`}class yr{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:Z,name:Ie}=this.auth;this.fullUserKey=Pr(this.userKey,Z.apiKey,Ie),this.fullPersistenceKey=Pr("persistence",Z.apiKey,Ie),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,K.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?cn._fromJSON(h.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var v=this;return(0,K.A)(function*(){if(v.persistence===h)return;const b=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=h,b?v.setCurrentUser(b):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,v,b="authUser"){return(0,K.A)(function*(){if(!v.length)return new yr(dn(Qn),h,b);const Z=(yield Promise.all(v.map(function(){var On=(0,K.A)(function*(ar){if(yield ar._isAvailable())return ar});return function(ar){return On.apply(this,arguments)}}()))).filter(On=>On);let Ie=Z[0]||dn(Qn);const ft=Pr(b,h.config.apiKey,h.name);let Vt=null;for(const On of v)try{const ar=yield On._get(ft);if(ar){const ni=cn._fromJSON(h,ar);On!==Ie&&(Vt=ni),Ie=On;break}}catch{}const pn=Z.filter(On=>On._shouldAllowMigration);return Ie._shouldAllowMigration&&pn.length?(Ie=pn[0],Vt&&(yield Ie._set(ft,Vt.toJSON())),yield Promise.all(v.map(function(){var On=(0,K.A)(function*(ar){if(ar!==Ie)try{yield ar._remove(ft)}catch{}});return function(ar){return On.apply(this,arguments)}}())),new yr(Ie,h,b)):new yr(Ie,h,b)})()}}function Vr(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(Mi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(gi(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(Nt(h))return"Blackberry";if(It(h))return"Webos";if(ir(h))return"Safari";if((h.includes("chrome/")||Fi(h))&&!h.includes("edge/"))return"Chrome";if(mi(h))return"Android";{const b=E.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==b?void 0:b.length))return b[1]}return"Other"}function gi(E=(0,te.ZQ)()){return/firefox\//i.test(E)}function ir(E=(0,te.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Fi(E=(0,te.ZQ)()){return/crios\//i.test(E)}function Mi(E=(0,te.ZQ)()){return/iemobile/i.test(E)}function mi(E=(0,te.ZQ)()){return/android/i.test(E)}function Nt(E=(0,te.ZQ)()){return/blackberry/i.test(E)}function It(E=(0,te.ZQ)()){return/webos/i.test(E)}function zt(E=(0,te.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function U(E=(0,te.ZQ)()){return zt(E)||mi(E)||It(E)||Nt(E)||/windows phone/i.test(E)||Mi(E)}function $(E,h=[]){let v;switch(E){case"Browser":v=Vr((0,te.ZQ)());break;case"Worker":v=`${Vr((0,te.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ee.MF}/${b}`}class le{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=Ie=>new Promise((ft,Vt)=>{try{ft(h(Ie))}catch(pn){Vt(pn)}});b.onAbort=v,this.queue.push(b);const Z=this.queue.length-1;return()=>{this.queue[Z]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,K.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const Z of v.queue)yield Z(h),Z.onAbort&&b.push(Z.onAbort)}catch(Z){b.reverse();for(const Ie of b)try{Ie()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==Z?void 0:Z.message})}})()}}function dt(){return(dt=(0,K.A)(function*(E,h={}){return rn(E,"GET","/v2/passwordPolicy",yn(E,h))})).apply(this,arguments)}class qt{constructor(h){var v,b,Z,Ie;const ft=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=ft.minPasswordLength)&&void 0!==v?v:6,ft.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=ft.maxPasswordLength),void 0!==ft.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=ft.containsLowercaseCharacter),void 0!==ft.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=ft.containsUppercaseCharacter),void 0!==ft.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=ft.containsNumericCharacter),void 0!==ft.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=ft.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(Z=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==Z?Z:"",this.forceUpgradeOnSignin=null!==(Ie=h.forceUpgradeOnSignin)&&void 0!==Ie&&Ie,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,Z,Ie,ft,Vt;const pn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,pn),this.validatePasswordCharacterOptions(h,pn),pn.isValid&&(pn.isValid=null===(v=pn.meetsMinPasswordLength)||void 0===v||v),pn.isValid&&(pn.isValid=null===(b=pn.meetsMaxPasswordLength)||void 0===b||b),pn.isValid&&(pn.isValid=null===(Z=pn.containsLowercaseLetter)||void 0===Z||Z),pn.isValid&&(pn.isValid=null===(Ie=pn.containsUppercaseLetter)||void 0===Ie||Ie),pn.isValid&&(pn.isValid=null===(ft=pn.containsNumericCharacter)||void 0===ft||ft),pn.isValid&&(pn.isValid=null===(Vt=pn.containsNonAlphanumericCharacter)||void 0===Vt||Vt),pn}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,Z=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),Z&&(v.meetsMaxPasswordLength=h.length<=Z)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let Z=0;Z="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,Z,Ie){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=Z)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=Ie))}}class Wn{constructor(h,v,b,Z){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=Z,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Hr(this),this.idTokenSubscription=new Hr(this),this.beforeStateQueue=new le(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=pt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=h.name,this.clientVersion=Z.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=dn(v)),this._initializationPromise=this.queue((0,K.A)(function*(){var Z,Ie;if(!b._deleted&&(b.persistenceManager=yield yr.create(b,h),!b._deleted)){if(null!==(Z=b._popupRedirectResolver)&&void 0!==Z&&Z._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(Ie=b.currentUser)||void 0===Ie?void 0:Ie.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,K.A)(function*(){if(h._deleted)return;const v=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||v){if(h.currentUser&&v&&h.currentUser.uid===v.uid)return h._currentUser._assign(v),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(h){var v=this;return(0,K.A)(function*(){try{const b=yield Lr(v,{idToken:h}),Z=yield cn._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(Z)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,K.A)(function*(){var b;if((0,Ee.xZ)(v.app)){const Vt=v.app.settings.authIdToken;return Vt?new Promise(pn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Vt).then(pn,pn))}):v.directlySetCurrentUser(null)}const Z=yield v.assertedPersistence.getCurrentUser();let Ie=Z,ft=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Vt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,pn=null==Ie?void 0:Ie._redirectEventId,On=yield v.tryRedirectSignIn(h);(!Vt||Vt===pn)&&null!=On&&On.user&&(Ie=On.user,ft=!0)}if(!Ie)return v.directlySetCurrentUser(null);if(!Ie._redirectEventId){if(ft)try{yield v.beforeStateQueue.runMiddleware(Ie)}catch(Vt){Ie=Z,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Vt))}return Ie?v.reloadAndSetCurrentUserOrClear(Ie):v.directlySetCurrentUser(null)}return At(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===Ie._redirectEventId?v.directlySetCurrentUser(Ie):v.reloadAndSetCurrentUserOrClear(Ie)})()}tryRedirectSignIn(h){var v=this;return(0,K.A)(function*(){let b=null;try{b=yield v._popupRedirectResolver._completeRedirectFn(v,h,!0)}catch{yield v._setRedirectUser(null)}return b})()}reloadAndSetCurrentUserOrClear(h){var v=this;return(0,K.A)(function*(){try{yield Ye(h)}catch(b){if("auth/network-request-failed"!==(null==b?void 0:b.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function ie(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,K.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,K.A)(function*(){if((0,Ee.xZ)(v.app))return Promise.reject(ze(v));const b=h?(0,te.Ku)(h):null;return b&&At(b.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(b&&b._clone(v))})()}_updateCurrentUser(h,v=!1){var b=this;return(0,K.A)(function*(){if(!b._deleted)return h&&At(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,K.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,K.A)(function*(){return(0,Ee.xZ)(h.app)?Promise.reject(ze(h)):(yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0))})()}setPersistence(h){var v=this;return(0,Ee.xZ)(this.app)?Promise.reject(ze(this)):this.queue((0,K.A)(function*(){yield v.assertedPersistence.setPersistence(dn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,K.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const b=v._getPasswordPolicyInternal();return b.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):b.validatePassword(h)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var h=this;return(0,K.A)(function*(){const v=yield function Ue(E){return dt.apply(this,arguments)}(h),b=new qt(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new te.FA("auth","Firebase",h())}onAuthStateChanged(h,v,b){return this.registerStateListener(this.authStateSubscription,h,v,b)}beforeAuthStateChanged(h,v){return this.beforeStateQueue.pushCallback(h,v)}onIdTokenChanged(h,v,b){return this.registerStateListener(this.idTokenSubscription,h,v,b)}authStateReady(){return new Promise((h,v)=>{if(this.currentUser)h();else{const b=this.onAuthStateChanged(()=>{b(),h()},v)}})}revokeAccessToken(h){var v=this;return(0,K.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),Z={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(Z.tenantId=v.tenantId),yield function nt(E,h){return et.apply(this,arguments)}(v,Z)}})()}toJSON(){var h;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(h=this._currentUser)||void 0===h?void 0:h.toJSON()}}_setRedirectUser(h,v){var b=this;return(0,K.A)(function*(){const Z=yield b.getOrInitRedirectPersistenceManager(v);return null===h?Z.removeCurrentUser():Z.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,K.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&dn(h)||v._popupRedirectResolver;At(b,v,"argument-error"),v.redirectPersistenceManager=yield yr.create(v,[dn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,K.A)(function*(){var b,Z;return v._isInitialized&&(yield v.queue((0,K.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(Z=v.redirectUser)||void 0===Z?void 0:Z._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,K.A)(function*(){if(h===v.currentUser)return v.queue((0,K.A)(function*(){return v.directlySetCurrentUser(h)}))})()}_notifyListenersIfCurrent(h){h===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var h,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const b=null!==(v=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==b&&(this.lastNotifiedUid=b,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,v,b,Z){if(this._deleted)return()=>{};const Ie="function"==typeof v?v:v.next.bind(v);let ft=!1;const Vt=this._isInitialized?Promise.resolve():this._initializationPromise;if(At(Vt,this,"internal-error"),Vt.then(()=>{ft||Ie(this.currentUser)}),"function"==typeof v){const pn=h.addObserver(v,b,Z);return()=>{ft=!0,pn()}}{const pn=h.addObserver(v);return()=>{ft=!0,pn()}}}directlySetCurrentUser(h){var v=this;return(0,K.A)(function*(){v.currentUser&&v.currentUser!==h&&v._currentUser._stopProactiveRefresh(),h&&v.isProactiveRefreshEnabled&&h._startProactiveRefresh(),v.currentUser=h,h?yield v.assertedPersistence.setCurrentUser(h):yield v.assertedPersistence.removeCurrentUser()})()}queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return At(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=$(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,K.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const Z=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();Z&&(b["X-Firebase-Client"]=Z);const Ie=yield h._getAppCheckToken();return Ie&&(b["X-Firebase-AppCheck"]=Ie),b})()}_getAppCheckToken(){var h=this;return(0,K.A)(function*(){var v;const b=yield null===(v=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=b&&b.error&&function Qe(E,...h){Ne.logLevel<=qe.$b.WARN&&Ne.warn(`Auth (${Ee.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function $n(E){return(0,te.Ku)(E)}class Hr{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,te.tD)(v=>this.observer=v)}get next(){return At(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let gr={loadJS:()=>(0,K.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Ir(E){return gr.loadJS(E)}function Fr(E){return`__${E}${Math.floor(1e6*Math.random())}`}class ei{constructor(h){this.type="recaptcha-enterprise",this.auth=$n(h)}verify(h="verify",v=!1){var b=this;return(0,K.A)(function*(){function Ie(){return Ie=(0,K.A)(function*(Vt){if(!v){if(null==Vt.tenantId&&null!=Vt._agentRecaptchaConfig)return Vt._agentRecaptchaConfig.siteKey;if(null!=Vt.tenantId&&void 0!==Vt._tenantRecaptchaConfigs[Vt.tenantId])return Vt._tenantRecaptchaConfigs[Vt.tenantId].siteKey}return new Promise(function(){var pn=(0,K.A)(function*(On,ar){Cn(Vt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(ni=>{if(void 0!==ni.recaptchaKey){const Fo=new en(ni);return null==Vt.tenantId?Vt._agentRecaptchaConfig=Fo:Vt._tenantRecaptchaConfigs[Vt.tenantId]=Fo,On(Fo.siteKey)}ar(new Error("recaptcha Enterprise site key undefined"))}).catch(ni=>{ar(ni)})});return function(On,ar){return pn.apply(this,arguments)}}())}),Ie.apply(this,arguments)}function ft(Vt,pn,On){const ar=window.grecaptcha;Ft(ar)?ar.enterprise.ready(()=>{ar.enterprise.execute(Vt,{action:h}).then(ni=>{pn(ni)}).catch(()=>{pn("NO_RECAPTCHA")})}):On(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Vt,pn)=>{(function Z(Vt){return Ie.apply(this,arguments)})(b.auth).then(On=>{if(!v&&Ft(window.grecaptcha))ft(On,Vt,pn);else{if(typeof window>"u")return void pn(new Error("RecaptchaVerifier is only supported in browser"));let ar=function sr(){return gr.recaptchaEnterpriseScript}();0!==ar.length&&(ar+=On),Ir(ar).then(()=>{ft(On,Vt,pn)}).catch(ni=>{pn(ni)})}}).catch(On=>{pn(On)})})})()}}function kn(E,h,v){return Vn.apply(this,arguments)}function Vn(){return(Vn=(0,K.A)(function*(E,h,v,b=!1){const Z=new ei(E);let Ie;try{Ie=yield Z.verify(v)}catch{Ie=yield Z.verify(v,!0)}const ft=Object.assign({},h);return Object.assign(ft,b?{captchaResp:Ie}:{captchaResponse:Ie}),Object.assign(ft,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(ft,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),ft})).apply(this,arguments)}function _o(E,h,v,b){return ai.apply(this,arguments)}function ai(){return ai=(0,K.A)(function*(E,h,v,b){var Z;if(null!==(Z=E._getRecaptchaConfig())&&void 0!==Z&&Z.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const Ie=yield kn(E,h,v,"getOobCode"===v);return b(E,Ie)}return b(E,h).catch(function(){var Ie=(0,K.A)(function*(ft){if("auth/missing-recaptcha-token"===ft.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Vt=yield kn(E,h,v,"getOobCode"===v);return b(E,Vt)}return Promise.reject(ft)});return function(ft){return Ie.apply(this,arguments)}}())}),ai.apply(this,arguments)}function Kr(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function Yn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class To{constructor(h,v){this.providerId=h,this.signInMethod=v}toJSON(){return He("not implemented")}_getIdTokenResponse(h){return He("not implemented")}_linkToIdToken(h,v){return He("not implemented")}_getReauthenticationResolver(h){return He("not implemented")}}function S(E,h){return q.apply(this,arguments)}function q(){return(q=(0,K.A)(function*(E,h){return rn(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function ye(E,h){return at.apply(this,arguments)}function at(){return(at=(0,K.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithPassword",yn(E,h))})).apply(this,arguments)}function ln(){return(ln=(0,K.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithEmailLink",yn(E,h))})).apply(this,arguments)}function Pn(){return(Pn=(0,K.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithEmailLink",yn(E,h))})).apply(this,arguments)}class Gn extends To{constructor(h,v,b,Z=null){super("password",b),this._email=h,this._password=v,this._tenantId=Z}static _fromEmailAndPassword(h,v){return new Gn(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Gn(h,v,"emailLink",b)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const v="string"==typeof h?JSON.parse(h):h;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(h){var v=this;return(0,K.A)(function*(){switch(v.signInMethod){case"password":return _o(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",ye);case"emailLink":return function tn(E,h){return ln.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Ve(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,K.A)(function*(){switch(b.signInMethod){case"password":return _o(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function Sn(E,h){return Pn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Ve(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function Rn(E,h){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,K.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithIdp",yn(E,h))})).apply(this,arguments)}class ss{constructor(h){var v,b,Z,Ie,ft,Vt;const pn=(0,te.I9)((0,te.hp)(h)),On=null!==(v=pn.apiKey)&&void 0!==v?v:null,ar=null!==(b=pn.oobCode)&&void 0!==b?b:null,ni=function wo(E){switch(E){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(Z=pn.mode)&&void 0!==Z?Z:null);At(On&&ar&&ni,"argument-error"),this.apiKey=On,this.operation=ni,this.code=ar,this.continueUrl=null!==(Ie=pn.continueUrl)&&void 0!==Ie?Ie:null,this.languageCode=null!==(ft=pn.languageCode)&&void 0!==ft?ft:null,this.tenantId=null!==(Vt=pn.tenantId)&&void 0!==Vt?Vt:null}static parseLink(h){const v=function xa(E){const h=(0,te.I9)((0,te.hp)(E)).link,v=h?(0,te.I9)((0,te.hp)(h)).deep_link_id:null,b=(0,te.I9)((0,te.hp)(E)).deep_link_id;return(b?(0,te.I9)((0,te.hp)(b)).link:null)||b||v||h||E}(h);try{return new ss(v)}catch{return null}}}let jr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Gn._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const Z=ss.parseLink(b);return At(Z,"argument-error"),Gn._fromEmailAndCode(v,Z.code,Z.tenantId)}}return E.PROVIDER_ID="password",E.EMAIL_PASSWORD_SIGN_IN_METHOD="password",E.EMAIL_LINK_SIGN_IN_METHOD="emailLink",E})();class oo{constructor(h){this.providerId=h,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(h){this.defaultLanguageCode=h}setCustomParameters(h){return this.customParameters=h,this}getCustomParameters(){return this.customParameters}}class Us extends oo{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}function Yo(E,h){return So.apply(this,arguments)}function So(){return(So=(0,K.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signUp",yn(E,h))})).apply(this,arguments)}class zi{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,Z=!1){return(0,K.A)(function*(){const Ie=yield cn._fromIdTokenResponse(h,b,Z),ft=da(b);return new zi({user:Ie,providerId:ft,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,K.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const Z=da(b);return new zi({user:h,providerId:Z,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class N extends te.g{constructor(h,v,b,Z){var Ie;super(v.code,v.message),this.operationType=b,this.user=Z,Object.setPrototypeOf(this,N.prototype),this.customData={appName:h.name,tenantId:null!==(Ie=h.tenantId)&&void 0!==Ie?Ie:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,Z){return new N(h,v,b,Z)}}function _e(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(Ie=>{throw"auth/multi-factor-auth-required"===Ie.code?N._fromErrorAndOperation(E,Ie,h,b):Ie})}function hr(){return(hr=(0,K.A)(function*(E,h,v=!1){const b=yield _r(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return zi._forOperation(E,"link",b)})).apply(this,arguments)}function Jo(){return(Jo=(0,K.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ee.xZ)(b.app))return Promise.reject(ze(b));const Z="reauthenticate";try{const Ie=yield _r(E,_e(b,Z,h,E),v);At(Ie.idToken,b,"internal-error");const ft=Mr(Ie.idToken);At(ft,b,"internal-error");const{sub:Vt}=ft;return At(E.uid===Vt,b,"user-mismatch"),zi._forOperation(E,Z,Ie)}catch(Ie){throw"auth/user-not-found"===(null==Ie?void 0:Ie.code)&&Ve(b,"user-mismatch"),Ie}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,K.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(ze(E));const b="signIn",Z=yield _e(E,b,h),Ie=yield zi._fromIdTokenResponse(E,b,Z);return v||(yield E._updateCurrentUser(Ie.user)),Ie})).apply(this,arguments)}function Oa(){return(Oa=(0,K.A)(function*(E,h){return Na($n(E),h)})).apply(this,arguments)}function Ll(E){return Sr.apply(this,arguments)}function Sr(){return(Sr=(0,K.A)(function*(E){const h=$n(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,K.A)(function*(E,h,v){if((0,Ee.xZ)(E.app))return Promise.reject(ze(E));const b=$n(E),ft=yield _o(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Yo).catch(pn=>{throw"auth/password-does-not-meet-requirements"===pn.code&&Ll(E),pn}),Vt=yield zi._fromIdTokenResponse(b,"signIn",ft);return yield b._updateCurrentUser(Vt.user),Vt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ee.xZ)(E.app)?Promise.reject(ze(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,te.Ku)(E),jr.credential(h,v)).catch(function(){var b=(0,K.A)(function*(Z){throw"auth/password-does-not-meet-requirements"===Z.code&&Ll(E),Z});return function(Z){return b.apply(this,arguments)}}())}function Ui(E,h,v,b){return(0,te.Ku)(E).onIdTokenChanged(h,v,b)}const Gs="__sak";class jl{constructor(h,v){this.storageRetriever=h,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(Gs,"1"),this.storage.removeItem(Gs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,v){return this.storage.setItem(h,JSON.stringify(v)),Promise.resolve()}_get(h){const v=this.storage.getItem(h);return Promise.resolve(v?JSON.parse(v):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const $a=(()=>{class E extends jl{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,b)=>this.onStorageEvent(v,b),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Qr(){const E=(0,te.ZQ)();return ir(E)||zt(E)}()&&function ee(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=U(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const Z=this.storage.getItem(b),Ie=this.localCache[b];Z!==Ie&&v(b,Ie,Z)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Vt,pn,On)=>{this.notifyListeners(Vt,On)});const Z=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Vt=this.storage.getItem(Z);if(v.newValue!==Vt)null!==v.newValue?this.storage.setItem(Z,v.newValue):this.storage.removeItem(Z);else if(this.localCache[Z]===v.newValue&&!b)return}const Ie=()=>{const Vt=this.storage.getItem(Z);!b&&this.localCache[Z]===Vt||this.notifyListeners(Z,Vt)},ft=this.storage.getItem(Z);!function R(){return(0,te.lT)()&&10===document.documentMode}()||ft===v.newValue||v.newValue===v.oldValue?Ie():setTimeout(Ie,10)}notifyListeners(v,b){this.localCache[v]=b;const Z=this.listeners[v];if(Z)for(const Ie of Array.from(Z))Ie(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,Z)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:Z}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,b){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,b){var Z=()=>super._set,Ie=this;return(0,K.A)(function*(){yield Z().call(Ie,v,b),Ie.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,Z=this;return(0,K.A)(function*(){const Ie=yield b().call(Z,v);return Z.localCache[v]=JSON.stringify(Ie),Ie})()}_remove(v){var b=()=>super._remove,Z=this;return(0,K.A)(function*(){yield b().call(Z,v),delete Z.localCache[v]})()}}return E.type="LOCAL",E})(),Bo=(()=>{class E extends jl{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,b){}_removeListener(v,b){}}return E.type="SESSION",E})();let Ks=(()=>{class E{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const b=this.receivers.find(Ie=>Ie.isListeningto(v));if(b)return b;const Z=new E(v);return this.receivers.push(Z),Z}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,K.A)(function*(){const Z=v,{eventId:Ie,eventType:ft,data:Vt}=Z.data,pn=b.handlersMap[ft];if(null==pn||!pn.size)return;Z.ports[0].postMessage({status:"ack",eventId:Ie,eventType:ft});const On=Array.from(pn).map(function(){var ni=(0,K.A)(function*(Fo){return Fo(Z.origin,Vt)});return function(Fo){return ni.apply(this,arguments)}}()),ar=yield function ya(E){return Promise.all(E.map(function(){var h=(0,K.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(b){return{fulfilled:!1,reason:b}}});return function(v){return h.apply(this,arguments)}}()))}(On);Z.ports[0].postMessage({status:"done",eventId:Ie,eventType:ft,response:ar})})()}_subscribe(v,b){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(b)}_unsubscribe(v,b){this.handlersMap[v]&&b&&this.handlersMap[v].delete(b),(!b||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return E.receivers=[],E})();function Bi(E="",h=10){let v="";for(let b=0;b{const ar=Bi("",20);Ie.port1.start();const ni=setTimeout(()=>{On(new Error("unsupported_event"))},b);Vt={messageChannel:Ie,onMessage(Fo){const Ji=Fo;if(Ji.data.eventId===ar)switch(Ji.data.status){case"ack":clearTimeout(ni),ft=setTimeout(()=>{On(new Error("timeout"))},3e3);break;case"done":clearTimeout(ft),pn(Ji.data.response);break;default:clearTimeout(ni),clearTimeout(ft),On(new Error("invalid_response"))}}},Z.handlers.add(Vt),Ie.port1.addEventListener("message",Vt.onMessage),Z.target.postMessage({eventType:h,eventId:ar,data:v},[Ie.port2])}).finally(()=>{Vt&&Z.removeMessageHandler(Vt)})})()}}function Yr(){return window}function zl(){return typeof Yr().WorkerGlobalScope<"u"&&"function"==typeof Yr().importScripts}function Ia(){return(Ia=(0,K.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Gl="firebaseLocalStorageDb",Ea="firebaseLocalStorage",Mu="fbase_key";class Ba{constructor(h){this.request=h}toPromise(){return new Promise((h,v)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(E,h){return E.transaction([Ea],h?"readwrite":"readonly").objectStore(Ea)}function mc(){const E=indexedDB.open(Gl,1);return new Promise((h,v)=>{E.addEventListener("error",()=>{v(E.error)}),E.addEventListener("upgradeneeded",()=>{const b=E.result;try{b.createObjectStore(Ea,{keyPath:Mu})}catch(Z){v(Z)}}),E.addEventListener("success",(0,K.A)(function*(){const b=E.result;b.objectStoreNames.contains(Ea)?h(b):(b.close(),yield function Wh(){const E=indexedDB.deleteDatabase(Gl);return new Ba(E).toPromise()}(),h(yield mc()))}))})}function Xs(E,h,v){return qs.apply(this,arguments)}function qs(){return(qs=(0,K.A)(function*(E,h,v){const b=ja(E,!0).put({[Mu]:h,value:v});return new Ba(b).toPromise()})).apply(this,arguments)}function Cd(){return(Cd=(0,K.A)(function*(E,h){const v=ja(E,!1).get(h),b=yield new Ba(v).toPromise();return void 0===b?null:b.value})).apply(this,arguments)}function Td(E,h){const v=ja(E,!0).delete(h);return new Ba(v).toPromise()}const Xh=(()=>{class E{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,K.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,K.A)(function*(){let Z=0;for(;;)try{const Ie=yield b._openDb();return yield v(Ie)}catch(Ie){if(Z++>3)throw Ie;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,K.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,K.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,K.A)(function*(Z,Ie){return{keyProcessed:(yield v._poll()).includes(Ie.key)}});return function(Z,Ie){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,K.A)(function*(Z,Ie){return["keyChanged"]});return function(Z,Ie){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,K.A)(function*(){var b,Z;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const Ie=yield v.sender._send("ping",{},800);Ie&&null!==(b=Ie[0])&&void 0!==b&&b.fulfilled&&null!==(Z=Ie[0])&&void 0!==Z&&Z.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,K.A)(function*(){if(b.sender&&b.activeServiceWorker&&function cs(){var E;return(null===(E=null==navigator?void 0:navigator.serviceWorker)||void 0===E?void 0:E.controller)||null}()===b.activeServiceWorker)try{yield b.sender._send("keyChanged",{key:v},b.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,K.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield Xs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,K.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var Z=this;return(0,K.A)(function*(){return Z._withPendingWrite((0,K.A)(function*(){return yield Z._withRetries(Ie=>Xs(Ie,v,b)),Z.localCache[v]=b,Z.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,K.A)(function*(){const Z=yield b._withRetries(Ie=>function Ad(E,h){return Cd.apply(this,arguments)}(Ie,v));return b.localCache[v]=Z,Z})()}_remove(v){var b=this;return(0,K.A)(function*(){return b._withPendingWrite((0,K.A)(function*(){return yield b._withRetries(Z=>Td(Z,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,K.A)(function*(){const b=yield v._withRetries(ft=>{const Vt=ja(ft,!1).getAll();return new Ba(Vt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const Z=[],Ie=new Set;if(0!==b.length)for(const{fbase_key:ft,value:Vt}of b)Ie.add(ft),JSON.stringify(v.localCache[ft])!==JSON.stringify(Vt)&&(v.notifyListeners(ft,Vt),Z.push(ft));for(const ft of Object.keys(v.localCache))v.localCache[ft]&&!Ie.has(ft)&&(v.notifyListeners(ft,null),Z.push(ft));return Z})()}notifyListeners(v,b){this.localCache[v]=b;const Z=this.listeners[v];if(Z)for(const Ie of Array.from(Z))Ie(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,K.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,b){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return E.type="LOCAL",E})();Fr("rcb"),new J(3e4,6e4);class Mo extends To{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return Rn(h,this._buildIdpRequest())}_linkToIdToken(h,v){return Rn(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return Rn(h,this._buildIdpRequest())}_buildIdpRequest(h){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return h&&(v.idToken=h),v}}function Dd(E){return Na(E.auth,new Mo(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return At(v,h,"internal-error"),function eo(E,h){return Jo.apply(this,arguments)}(v,new Mo(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,K.A)(function*(E){const{auth:h,user:v}=E;return At(v,h,"internal-error"),function Un(E,h){return hr.apply(this,arguments)}(v,new Mo(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,Z,Ie=!1){this.auth=h,this.resolver=b,this.user=Z,this.bypassAuthState=Ie,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,K.A)(function*(b,Z){h.pendingPromise={resolve:b,reject:Z};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(Ie){h.reject(Ie)}});return function(b,Z){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,K.A)(function*(){const{urlResponse:b,sessionId:Z,postBody:Ie,tenantId:ft,error:Vt,type:pn}=h;if(Vt)return void v.reject(Vt);const On={auth:v.auth,requestUri:b,sessionId:Z,tenantId:ft||void 0,postBody:Ie||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(pn)(On))}catch(ar){v.reject(ar)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Dd;case"linkViaPopup":case"linkViaRedirect":return _c;case"reauthViaPopup":case"reauthViaRedirect":return vc;default:Ve(this.auth,"internal-error")}}resolve(h){Zt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){Zt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(h),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new J(2e3,1e4);const nr="pendingRedirect",pl=new Map;class wd extends yc{constructor(h,v,b=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,b),this.eventId=null}execute(){var h=()=>super.execute,v=this;return(0,K.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const Ie=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(Ie)}catch(Z){b=()=>Promise.reject(Z)}pl.set(v.auth._key(),b)}return v.bypassAuthState||pl.set(v.auth._key(),()=>Promise.resolve(null)),b()})()}onAuthEvent(h){var v=()=>super.onAuthEvent,b=this;return(0,K.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const Z=yield b.auth._redirectUserForId(h.eventId);if(Z)return b.user=Z,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,K.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,K.A)(function*(E,h){const v=function ml(E){return Pr(nr,E.config.apiKey,E.name)}(h),b=function qh(E){return dn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const Z="true"===(yield b._get(v));return yield b._remove(v),Z})).apply(this,arguments)}function gl(E,h){pl.set(E._key(),h)}function Nu(E,h){return Rd.apply(this,arguments)}function Rd(){return(Rd=(0,K.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(ze(E));const b=$n(E),Z=function ds(E,h){return h?dn(h):(At(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),ft=yield new wd(b,Z,v).execute();return ft&&!v&&(delete ft.user._redirectEventId,yield b._persistUserIfCurrent(ft.user),yield b._setRedirectUser(null,h)),ft})).apply(this,arguments)}class ta{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(h){this.consumers.add(h),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,h)&&(this.sendToConsumer(this.queuedRedirectEvent,h),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(h){this.consumers.delete(h)}onEvent(h){if(this.hasEventBeenHandled(h))return!1;let v=!1;return this.consumers.forEach(b=>{this.isEventForConsumer(h,b)&&(v=!0,this.sendToConsumer(h,b),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function na(E){switch(E.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ts(E);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=h,v=!0)),v}sendToConsumer(h,v){var b;if(h.error&&!Ts(h)){const Z=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(Te(this.auth,Z))}else v.onAuthEvent(h)}isEventForConsumer(h,v){const b=null===v.eventId||!!h.eventId&&h.eventId===v.eventId;return v.filter.includes(h.type)&&b}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Cc(h))}saveEventToCache(h){this.cachedEventUids.add(Cc(h)),this.lastProcessedEventTime=Date.now()}}function Cc(E){return[E.type,E.eventId,E.sessionId,E.tenantId].filter(h=>h).join("-")}function Ts({type:E,error:h}){return"unknown"===E&&"auth/no-auth-event"===(null==h?void 0:h.code)}function Tc(){return(Tc=(0,K.A)(function*(E,h={}){return rn(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Eo=/^https?/;function Ou(){return Ou=(0,K.A)(function*(E){if(E.config.emulator)return;const{authorizedDomains:h}=yield function rg(E){return Tc.apply(this,arguments)}(E);for(const v of h)try{if(xd(v))return}catch{}Ve(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=tt(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const ft=new URL(E);return""===ft.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&ft.hostname===b}if(!Eo.test(v))return!1;if(Md.test(E))return b===E;const Z=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+Z+"|"+Z+")$","i").test(b)}const Dc=new J(3e4,6e4);function bc(){const E=Yr().___jsl;if(null!=E&&E.H)for(const h of Object.keys(E.H))if(E.H[h].r=E.H[h].r||[],E.H[h].L=E.H[h].L||[],E.H[h].r=[...E.H[h].L],E.CP)for(let v=0;v{var b,Z,Ie;function ft(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(Te(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(Z=null===(b=Yr().gapi)||void 0===b?void 0:b.iframes)&&void 0!==Z&&Z.Iframe)h(gapi.iframes.getContext());else{if(null===(Ie=Yr().gapi)||void 0===Ie||!Ie.load){const Vt=Fr("iframefcb");return Yr()[Vt]=()=>{gapi.load?ft():v(Te(E,"network-request-failed"))},Ir(`${function Wr(){return gr.gapiScript}()}?onload=${Vt}`).catch(pn=>v(pn))}ft()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Yr().gapi;return At(v,E,"internal-error"),h.open({where:document.body,url:fo(E),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Fu,dontclear:!0},b=>new Promise(function(){var Z=(0,K.A)(function*(Ie,ft){yield b.restyle({setHideOnLeave:!1});const Vt=Te(E,"network-request-failed"),pn=Yr().setTimeout(()=>{ft(Vt)},Zh.get());function On(){Yr().clearTimeout(pn),Ie(b)}b.ping(On).then(On,()=>{ft(Vt)})});return function(Ie,ft){return Z.apply(this,arguments)}}()))}),Si.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Vu{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const og="__/auth/handler",$u="emulator/auth/handler",Sc=encodeURIComponent("fac");function ra(E,h,v,b,Z,Ie){return ia.apply(this,arguments)}function ia(){return(ia=(0,K.A)(function*(E,h,v,b,Z,Ie){At(E.config.authDomain,E,"auth-domain-config-required"),At(E.config.apiKey,E,"invalid-api-key");const ft={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ee.MF,eventId:Z};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),ft.providerId=h.providerId||"",(0,te.Im)(h.getCustomParameters())||(ft.customParameters=JSON.stringify(h.getCustomParameters()));for(const[ar,ni]of Object.entries(Ie||{}))ft[ar]=ni}if(h instanceof Us){const ar=h.getScopes().filter(ni=>""!==ni);ar.length>0&&(ft.scopes=ar.join(","))}E.tenantId&&(ft.tid=E.tenantId);const Vt=ft;for(const ar of Object.keys(Vt))void 0===Vt[ar]&&delete Vt[ar];const pn=yield E._getAppCheckToken(),On=pn?`#${Sc}=${encodeURIComponent(pn)}`:"";return`${function Rc({config:E}){return E.emulator?re(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,te.Am)(Vt).slice(1)}${On}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Bo,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,Z){var Ie=this;return(0,K.A)(function*(){var ft;Zt(null===(ft=Ie.eventManagers[h._key()])||void 0===ft?void 0:ft.manager,"_initialize() not called before _openPopup()");const Vt=yield ra(h,v,b,tt(),Z);return function Uu(E,h,v,b=500,Z=600){const Ie=Math.max((window.screen.availHeight-Z)/2,0).toString(),ft=Math.max((window.screen.availWidth-b)/2,0).toString();let Vt="";const pn=Object.assign(Object.assign({},ef),{width:b.toString(),height:Z.toString(),top:Ie,left:ft}),On=(0,te.ZQ)().toLowerCase();v&&(Vt=Fi(On)?"_blank":v),gi(On)&&(h=h||"http://localhost",pn.scrollbars="yes");const ar=Object.entries(pn).reduce((Fo,[Ji,sa])=>`${Fo}${Ji}=${sa},`,"");if(function fe(E=(0,te.ZQ)()){var h;return zt(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(On)&&"_self"!==Vt)return function Ns(E,h){const v=document.createElement("a");v.href=E,v.target=h;const b=document.createEvent("MouseEvent");b.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(b)}(h||"",Vt),new Vu(null);const ni=window.open(h||"",Vt,ar);At(ni,E,"popup-blocked");try{ni.focus()}catch{}return new Vu(ni)}(h,Vt,Bi())})()}_openRedirect(h,v,b,Z){var Ie=this;return(0,K.A)(function*(){return yield Ie._originValidation(h),function yo(E){Yr().location.href=E}(yield ra(h,v,b,tt(),Z)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:Z,promise:Ie}=this.eventManagers[v];return Z?Promise.resolve(Z):(Zt(Ie,"If manager is not set, promise should be"),Ie)}const b=this.initAndGetManager(h);return this.eventManagers[v]={promise:b},b.catch(()=>{delete this.eventManagers[v]}),b}initAndGetManager(h){var v=this;return(0,K.A)(function*(){const b=yield function ba(E){return Si.apply(this,arguments)}(h),Z=new ta(h);return b.register("authEvent",Ie=>(At(null==Ie?void 0:Ie.authEvent,h,"invalid-auth-event"),{status:Z.onEvent(Ie.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:Z},v.iframes[h._key()]=b,Z})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},Z=>{var Ie;const ft=null===(Ie=null==Z?void 0:Z[0])||void 0===Ie?void 0:Ie[vl];void 0!==ft&&v(!!ft),Ve(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const v=h._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Pd(E){return Ou.apply(this,arguments)}(h)),this.originValidationPromises[v]}get _shouldInitProactively(){return U()||ir()||zt()}};var Fd="@firebase/auth";class wa{constructor(h){this.auth=h,this.internalListeners=new Map}getUid(){var h;return this.assertAuthConfigured(),(null===(h=this.auth.currentUser)||void 0===h?void 0:h.uid)||null}getToken(h){var v=this;return(0,K.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const v=this.auth.onIdTokenChanged(b=>{h((null==b?void 0:b.stsTokenManager.accessToken)||null)});this.internalListeners.set(h,v),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const v=this.internalListeners.get(h);v&&(this.internalListeners.delete(h),v(),this.updateProactiveRefresh())}assertAuthConfigured(){At(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Zl=(0,te.XA)("authIdTokenMaxAge")||300;let af=null;const lf=E=>function(){var h=(0,K.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),Z=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(Z&&Z>Zl)return;const Ie=null==b?void 0:b.token;af!==Ie&&(af=Ie,yield fetch(E,{method:Ie?"POST":"DELETE",headers:Ie?{Authorization:`Bearer ${Ie}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Ld(E=(0,Ee.Sx)()){const h=(0,Ee.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function Wo(E,h){const v=(0,Ee.j6)(E,"auth");if(v.isInitialized()){const Z=v.getImmediate(),Ie=v.getOptions();if((0,te.bD)(Ie,null!=h?h:{}))return Z;Ve(Z,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Xh,$a,Bo]}),b=(0,te.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const Ie=new URL(b,location.origin);if(location.origin===Ie.origin){const ft=lf(Ie.toString());(function si(E,h,v){(0,te.Ku)(E).beforeAuthStateChanged(h,v)})(v,ft,()=>ft(v.currentUser)),Ui(v,Vt=>ft(Vt))}}const Z=(0,te.Tj)("auth");return Z&&function ur(E,h,v){const b=$n(E);At(b._canInitEmulator,b,"emulator-config-failed"),At(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const Z=!(null==v||!v.disableWarnings),Ie=Kr(h),{host:ft,port:Vt}=function _i(E){const h=Kr(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",Z=/^(\[[^\]]+\])(:|$)/.exec(b);if(Z){const Ie=Z[1];return{host:Ie,port:Yn(b.substr(Ie.length+1))}}{const[Ie,ft]=b.split(":");return{host:Ie,port:Yn(ft)}}}(h);b.config.emulator={url:`${Ie}//${ft}${null===Vt?"":`:${Vt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:ft,port:Vt,protocol:Ie.replace(":",""),options:Object.freeze({disableWarnings:Z})}),Z||function Lo(){function E(){const h=document.createElement("p"),v=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",h.classList.add("firebase-emulator-warning"),document.body.appendChild(h)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",E):E())}()}(v,`http://${Z}`),v}(function $r(E){gr=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=Z=>{const Ie=Te("internal-error");Ie.customData=Z,v(Ie)},b.type="text/javascript",b.charset="UTF-8",function Nc(){var E,h;return null!==(h=null===(E=document.getElementsByTagName("head"))||void 0===E?void 0:E[0])&&void 0!==h?h:document}().appendChild(b)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function El(E){(0,Ee.om)(new we.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),Z=h.getProvider("heartbeat"),Ie=h.getProvider("app-check-internal"),{apiKey:ft,authDomain:Vt}=b.options;At(ft&&!ft.includes(":"),"invalid-api-key",{appName:b.name});const pn={apiKey:ft,authDomain:Vt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:$(E)},On=new Wn(b,Z,Ie,pn);return function li(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(dn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(On,v),On},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ee.om)(new we.uA("auth-internal",h=>{const v=$n(h.getProvider("auth").getImmediate());return new wa(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Ee.KO)(Fd,"1.7.4",function xc(E){switch(E){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(E)),(0,Ee.KO)(Fd,"1.7.4","esm2017")}("Browser");var Ds=x(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:Ui(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class Xa{constructor(h){return h}}class Al{constructor(){return(0,f.CA)("auth")}}const eu=new c.nKC("angularfire2.auth-instances");function uf(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new Xa(b)}}const cf={provide:Al,deps:[[new c.Xx1,eu]]},sg={provide:Xa,useFactory:function Ud(E,h){const v=(0,f.lR)("auth",E,h);return v&&new Xa(v)},deps:[[new c.Xx1,eu],ce.XU]};function Cl(E,...h){return(0,Le.KO)("angularfire",f.xv.full,"auth"),(0,c.EmA)([sg,cf,{provide:eu,useFactory:uf(E),multi:!0,deps:[c.SKi,c.zZn,f.u0,ce.gL,[new c.Xx1,f.Jv],...h]}])}const Fc=(0,f.S3)(zu,!0),Hu=(0,f.S3)(ws,!0),ag=(0,f.S3)(Ld,!0),Xu=(0,f.S3)(Ss,!0)},4262:(Dn,Ct,x)=>{"use strict";x.d(Ct,{_7:()=>_h,rJ:()=>m0,kd:()=>v0,H9:()=>sm,x7:()=>lm,GG:()=>r_,aU:()=>um,hV:()=>Jv,BN:()=>R0,mZ:()=>M0});var Ke,Be,f=x(5407),c=x(4438),ce=x(7440),Le=x(8737),K=x(2214),Ee=x(467),te=x(7852),qe=x(1362),Je=x(8041),we=x(1076),Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},je={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(Dt,Ze,ht){ht||(ht=0);var bt=Array(16);if("string"==typeof Ze)for(var Mt=0;16>Mt;++Mt)bt[Mt]=Ze.charCodeAt(ht++)|Ze.charCodeAt(ht++)<<8|Ze.charCodeAt(ht++)<<16|Ze.charCodeAt(ht++)<<24;else for(Mt=0;16>Mt;++Mt)bt[Mt]=Ze[ht++]|Ze[ht++]<<8|Ze[ht++]<<16|Ze[ht++]<<24;var Ut=Dt.g[3],ut=(Ze=Dt.g[0])+(Ut^(ht=Dt.g[1])&((Mt=Dt.g[2])^Ut))+bt[0]+3614090360&4294967295;ut=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=(ht=(Mt=(Ut=(Ze=ht+(ut<<7&4294967295|ut>>>25))+((ut=Ut+(Mt^Ze&(ht^Mt))+bt[1]+3905402710&4294967295)<<12&4294967295|ut>>>20))+((ut=Mt+(ht^Ut&(Ze^ht))+bt[2]+606105819&4294967295)<<17&4294967295|ut>>>15))+((ut=ht+(Ze^Mt&(Ut^Ze))+bt[3]+3250441966&4294967295)<<22&4294967295|ut>>>10))+((ut=Ze+(Ut^ht&(Mt^Ut))+bt[4]+4118548399&4294967295)<<7&4294967295|ut>>>25))+((ut=Ut+(Mt^Ze&(ht^Mt))+bt[5]+1200080426&4294967295)<<12&4294967295|ut>>>20))+((ut=Mt+(ht^Ut&(Ze^ht))+bt[6]+2821735955&4294967295)<<17&4294967295|ut>>>15))+((ut=ht+(Ze^Mt&(Ut^Ze))+bt[7]+4249261313&4294967295)<<22&4294967295|ut>>>10))+((ut=Ze+(Ut^ht&(Mt^Ut))+bt[8]+1770035416&4294967295)<<7&4294967295|ut>>>25))+((ut=Ut+(Mt^Ze&(ht^Mt))+bt[9]+2336552879&4294967295)<<12&4294967295|ut>>>20))+((ut=Mt+(ht^Ut&(Ze^ht))+bt[10]+4294925233&4294967295)<<17&4294967295|ut>>>15))+((ut=ht+(Ze^Mt&(Ut^Ze))+bt[11]+2304563134&4294967295)<<22&4294967295|ut>>>10))+((ut=Ze+(Ut^ht&(Mt^Ut))+bt[12]+1804603682&4294967295)<<7&4294967295|ut>>>25))+((ut=Ut+(Mt^Ze&(ht^Mt))+bt[13]+4254626195&4294967295)<<12&4294967295|ut>>>20))+((ut=Mt+(ht^Ut&(Ze^ht))+bt[14]+2792965006&4294967295)<<17&4294967295|ut>>>15))+((ut=ht+(Ze^Mt&(Ut^Ze))+bt[15]+1236535329&4294967295)<<22&4294967295|ut>>>10))+((ut=Ze+(Mt^Ut&(ht^Mt))+bt[1]+4129170786&4294967295)<<5&4294967295|ut>>>27))+((ut=Ut+(ht^Mt&(Ze^ht))+bt[6]+3225465664&4294967295)<<9&4294967295|ut>>>23))+((ut=Mt+(Ze^ht&(Ut^Ze))+bt[11]+643717713&4294967295)<<14&4294967295|ut>>>18))+((ut=ht+(Ut^Ze&(Mt^Ut))+bt[0]+3921069994&4294967295)<<20&4294967295|ut>>>12))+((ut=Ze+(Mt^Ut&(ht^Mt))+bt[5]+3593408605&4294967295)<<5&4294967295|ut>>>27))+((ut=Ut+(ht^Mt&(Ze^ht))+bt[10]+38016083&4294967295)<<9&4294967295|ut>>>23))+((ut=Mt+(Ze^ht&(Ut^Ze))+bt[15]+3634488961&4294967295)<<14&4294967295|ut>>>18))+((ut=ht+(Ut^Ze&(Mt^Ut))+bt[4]+3889429448&4294967295)<<20&4294967295|ut>>>12))+((ut=Ze+(Mt^Ut&(ht^Mt))+bt[9]+568446438&4294967295)<<5&4294967295|ut>>>27))+((ut=Ut+(ht^Mt&(Ze^ht))+bt[14]+3275163606&4294967295)<<9&4294967295|ut>>>23))+((ut=Mt+(Ze^ht&(Ut^Ze))+bt[3]+4107603335&4294967295)<<14&4294967295|ut>>>18))+((ut=ht+(Ut^Ze&(Mt^Ut))+bt[8]+1163531501&4294967295)<<20&4294967295|ut>>>12))+((ut=Ze+(Mt^Ut&(ht^Mt))+bt[13]+2850285829&4294967295)<<5&4294967295|ut>>>27))+((ut=Ut+(ht^Mt&(Ze^ht))+bt[2]+4243563512&4294967295)<<9&4294967295|ut>>>23))+((ut=Mt+(Ze^ht&(Ut^Ze))+bt[7]+1735328473&4294967295)<<14&4294967295|ut>>>18))+((ut=ht+(Ut^Ze&(Mt^Ut))+bt[12]+2368359562&4294967295)<<20&4294967295|ut>>>12))+((ut=Ze+(ht^Mt^Ut)+bt[5]+4294588738&4294967295)<<4&4294967295|ut>>>28))+((ut=Ut+(Ze^ht^Mt)+bt[8]+2272392833&4294967295)<<11&4294967295|ut>>>21))+((ut=Mt+(Ut^Ze^ht)+bt[11]+1839030562&4294967295)<<16&4294967295|ut>>>16))+((ut=ht+(Mt^Ut^Ze)+bt[14]+4259657740&4294967295)<<23&4294967295|ut>>>9))+((ut=Ze+(ht^Mt^Ut)+bt[1]+2763975236&4294967295)<<4&4294967295|ut>>>28))+((ut=Ut+(Ze^ht^Mt)+bt[4]+1272893353&4294967295)<<11&4294967295|ut>>>21))+((ut=Mt+(Ut^Ze^ht)+bt[7]+4139469664&4294967295)<<16&4294967295|ut>>>16))+((ut=ht+(Mt^Ut^Ze)+bt[10]+3200236656&4294967295)<<23&4294967295|ut>>>9))+((ut=Ze+(ht^Mt^Ut)+bt[13]+681279174&4294967295)<<4&4294967295|ut>>>28))+((ut=Ut+(Ze^ht^Mt)+bt[0]+3936430074&4294967295)<<11&4294967295|ut>>>21))+((ut=Mt+(Ut^Ze^ht)+bt[3]+3572445317&4294967295)<<16&4294967295|ut>>>16))+((ut=ht+(Mt^Ut^Ze)+bt[6]+76029189&4294967295)<<23&4294967295|ut>>>9))+((ut=Ze+(ht^Mt^Ut)+bt[9]+3654602809&4294967295)<<4&4294967295|ut>>>28))+((ut=Ut+(Ze^ht^Mt)+bt[12]+3873151461&4294967295)<<11&4294967295|ut>>>21))+((ut=Mt+(Ut^Ze^ht)+bt[15]+530742520&4294967295)<<16&4294967295|ut>>>16))+((ut=ht+(Mt^Ut^Ze)+bt[2]+3299628645&4294967295)<<23&4294967295|ut>>>9))+((ut=Ze+(Mt^(ht|~Ut))+bt[0]+4096336452&4294967295)<<6&4294967295|ut>>>26))+((ut=Ut+(ht^(Ze|~Mt))+bt[7]+1126891415&4294967295)<<10&4294967295|ut>>>22))+((ut=Mt+(Ze^(Ut|~ht))+bt[14]+2878612391&4294967295)<<15&4294967295|ut>>>17))+((ut=ht+(Ut^(Mt|~Ze))+bt[5]+4237533241&4294967295)<<21&4294967295|ut>>>11))+((ut=Ze+(Mt^(ht|~Ut))+bt[12]+1700485571&4294967295)<<6&4294967295|ut>>>26))+((ut=Ut+(ht^(Ze|~Mt))+bt[3]+2399980690&4294967295)<<10&4294967295|ut>>>22))+((ut=Mt+(Ze^(Ut|~ht))+bt[10]+4293915773&4294967295)<<15&4294967295|ut>>>17))+((ut=ht+(Ut^(Mt|~Ze))+bt[1]+2240044497&4294967295)<<21&4294967295|ut>>>11))+((ut=Ze+(Mt^(ht|~Ut))+bt[8]+1873313359&4294967295)<<6&4294967295|ut>>>26))+((ut=Ut+(ht^(Ze|~Mt))+bt[15]+4264355552&4294967295)<<10&4294967295|ut>>>22))+((ut=Mt+(Ze^(Ut|~ht))+bt[6]+2734768916&4294967295)<<15&4294967295|ut>>>17))+((ut=ht+(Ut^(Mt|~Ze))+bt[13]+1309151649&4294967295)<<21&4294967295|ut>>>11))+((Ut=(Ze=ht+((ut=Ze+(Mt^(ht|~Ut))+bt[4]+4149444226&4294967295)<<6&4294967295|ut>>>26))+((ut=Ut+(ht^(Ze|~Mt))+bt[11]+3174756917&4294967295)<<10&4294967295|ut>>>22))^((Mt=Ut+((ut=Mt+(Ze^(Ut|~ht))+bt[2]+718787259&4294967295)<<15&4294967295|ut>>>17))|~Ze))+bt[9]+3951481745&4294967295,Dt.g[0]=Dt.g[0]+Ze&4294967295,Dt.g[1]=Dt.g[1]+(Mt+(ut<<21&4294967295|ut>>>11))&4294967295,Dt.g[2]=Dt.g[2]+Mt&4294967295,Dt.g[3]=Dt.g[3]+Ut&4294967295}function _(Dt,Ze){this.h=Ze;for(var ht=[],bt=!0,Mt=Dt.length-1;0<=Mt;Mt--){var Ut=0|Dt[Mt];bt&&Ut==Ze||(ht[Mt]=Ut,bt=!1)}this.g=ht}(function n(Dt,Ze){function ht(){}ht.prototype=Ze.prototype,Dt.D=Ze.prototype,Dt.prototype=new ht,Dt.prototype.constructor=Dt,Dt.C=function(bt,Mt,Ut){for(var ut=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);Dt[0]=128;for(var Ze=1;ZeZe;++Ze)for(var bt=0;32>bt;bt+=8)Dt[ht++]=this.g[Ze]>>>bt&255;return Dt};var w={};function k(Dt){return-128<=Dt&&128>Dt?function p(Dt,Ze){var ht=w;return Object.prototype.hasOwnProperty.call(ht,Dt)?ht[Dt]:ht[Dt]=Ze(Dt)}(Dt,function(Ze){return new _([0|Ze],0>Ze?-1:0)}):new _([0|Dt],0>Dt?-1:0)}function X(Dt){if(isNaN(Dt)||!isFinite(Dt))return Oe;if(0>Dt)return vn(X(-Dt));for(var Ze=[],ht=1,bt=0;Dt>=ht;bt++)Ze[bt]=Dt/ht|0,ht*=4294967296;return new _(Ze,0)}var Oe=k(0),ot=k(1),kt=k(16777216);function hn(Dt){if(0!=Dt.h)return!1;for(var Ze=0;Ze>>16,Dt[Ze]&=65535,Ze++}function lr(Dt,Ze){this.g=Dt,this.h=Ze}function Br(Dt,Ze){if(hn(Ze))throw Error("division by zero");if(hn(Dt))return new lr(Oe,Oe);if(bn(Dt))return Ze=Br(vn(Dt),Ze),new lr(vn(Ze.g),vn(Ze.h));if(bn(Ze))return Ze=Br(Dt,vn(Ze)),new lr(vn(Ze.g),Ze.h);if(30=bt.l(Dt);)ht=Ri(ht),bt=Ri(bt);var Mt=ri(ht,1),Ut=ri(bt,1);for(bt=ri(bt,2),ht=ri(ht,2);!hn(bt);){var ut=Ut.add(bt);0>=ut.l(Dt)&&(Mt=Mt.add(ht),Ut=ut),bt=ri(bt,1),ht=ri(ht,1)}return Ze=Jn(Dt,Mt.j(Ze)),new lr(Mt,Ze)}for(Mt=Oe;0<=Dt.l(Ze);){for(ht=Math.max(1,Math.floor(Dt.m()/Ze.m())),bt=48>=(bt=Math.ceil(Math.log(ht)/Math.LN2))?1:Math.pow(2,bt-48),ut=(Ut=X(ht)).j(Ze);bn(ut)||0>>31;return new _(ht,Dt.h)}function ri(Dt,Ze){var ht=Ze>>5;Ze%=32;for(var bt=Dt.g.length-ht,Mt=[],Ut=0;Ut>>Ze|Dt.i(Ut+ht+1)<<32-Ze:Dt.i(Ut+ht);return new _(Mt,Dt.h)}(l=_.prototype).m=function(){if(bn(this))return-vn(this).m();for(var Dt=0,Ze=1,ht=0;ht(Dt=Dt||10)||36>>0).toString(Dt);if(hn(ht=Mt))return Ut+bt;for(;6>Ut.length;)Ut="0"+Ut;bt=Ut+bt}},l.i=function(Dt){return 0>Dt?0:Dt>>16)+(this.i(Mt)>>>16)+(Dt.i(Mt)>>>16);bt=ut>>>16,ht[Mt]=(ut&=65535)<<16|(Ut&=65535)}return new _(ht,-2147483648&ht[ht.length-1]?-1:0)},l.j=function(Dt){if(hn(this)||hn(Dt))return Oe;if(bn(this))return bn(Dt)?vn(this).j(vn(Dt)):vn(vn(this).j(Dt));if(bn(Dt))return vn(this.j(vn(Dt)));if(0>this.l(kt)&&0>Dt.l(kt))return X(this.m()*Dt.m());for(var Ze=this.g.length+Dt.g.length,ht=[],bt=0;bt<2*Ze;bt++)ht[bt]=0;for(bt=0;bt>>16,ut=65535&this.i(bt),Pl=Dt.i(Mt)>>>16,ac=65535&Dt.i(Mt);ht[2*bt+2*Mt]+=ut*ac,vr(ht,2*bt+2*Mt),ht[2*bt+2*Mt+1]+=Ut*ac,vr(ht,2*bt+2*Mt+1),ht[2*bt+2*Mt+1]+=ut*Pl,vr(ht,2*bt+2*Mt+1),ht[2*bt+2*Mt+2]+=Ut*Pl,vr(ht,2*bt+2*Mt+2)}for(bt=0;bt(Ze=Ze||10)||36Ut?(Ut=X(Math.pow(Ze,Ut)),bt=bt.j(Ut).add(X(ut))):bt=(bt=bt.j(ht)).add(X(ut))}return bt},Ke=je.Integer=_}).apply(typeof Ae<"u"?Ae:typeof self<"u"?self:typeof window<"u"?window:{});var lt,mt,xt,pt,_t,Ne,Qe,be,Ve,it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Et={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,L,Q){return m==Array.prototype||m==Object.prototype||(m[L]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof it&&it];for(var L=0;L{throw m},0)}function ut(){var m=hm;let L=null;return m.g&&(L=m.g,m.g=m.g.next,m.g||(m.h=null),L.next=null),L}var ac=new class Jn{constructor(L,Q){this.i=L,this.j=Q,this.h=0,this.g=null}get(){let L;return 0new P0,m=>m.reset());class P0{constructor(){this.next=this.g=this.h=null}set(L,Q){this.h=L,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let sd,Ih=!1,hm=new class Pl{constructor(){this.h=this.g=null}add(L,Q){const Se=ac.get();Se.set(L,Q),this.h?this.h.next=Se:this.g=Se,this.h=Se}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(x0)}};var x0=()=>{for(var m;m=ut();){try{m.h.call(m.g)}catch(Q){Ut(Q)}var L=ac;L.j(m),100>L.h&&(L.h++,m.next=L.g,L.g=m)}Ih=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,L){this.type=m,this.g=this.target=L,this.defaultPrevented=!1}gu.prototype.s=!1,gu.prototype.ma=function(){this.s||(this.s=!0,this.N())},gu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},mo.prototype.h=function(){this.defaultPrevented=!0};var pm=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var m=!1,L=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};w.addEventListener("test",Q,L),w.removeEventListener("test",Q,L)}catch{}return m}();function Eh(m,L){if(mo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Se=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=L,L=m.relatedTarget){if(Ri){e:{try{Br(L.nodeName);var Ot=!0;break e}catch{}Ot=!1}Ot||(L=null)}}else"mouseover"==Q?L=m.fromElement:"mouseout"==Q&&(L=m.toElement);this.relatedTarget=L,Se?(this.clientX=void 0!==Se.clientX?Se.clientX:Se.pageX,this.clientY=void 0!==Se.clientY?Se.clientY:Se.pageY,this.screenX=Se.screenX||0,this.screenY=Se.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:s_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Eh.aa.h.call(this)}}hn(Eh,mo);var s_={2:"touch",3:"pen",4:"mouse"};Eh.prototype.h=function(){Eh.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Ah="closure_listenable_"+(1e6*Math.random()|0),a_=0;function eA(m,L,Q,Se,Ot){this.listener=m,this.proxy=null,this.src=L,this.type=Q,this.capture=!!Se,this.ha=Ot,this.key=++a_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function lc(m){this.src=m,this.g={},this.h=0}function up(m,L){var Q=L.type;if(Q in m.g){var Wt,Se=m.g[Q],Ot=Array.prototype.indexOf.call(Se,L,void 0);(Wt=0<=Ot)&&Array.prototype.splice.call(Se,Ot,1),Wt&&(lp(L),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function gm(m,L,Q,Se){for(var Ot=0;Ot>>0);function Em(m){return"function"==typeof m?m:(m[Ch]||(m[Ch]=function(L){return m.handleEvent(L)}),m[Ch])}function is(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function zo(m,L){var Q,Se=m.F;if(Se)for(Q=[];Se;Se=Se.F)Q.push(Se);if(m=m.M,Se=L.type||L,"string"==typeof L)L=new mo(L,m);else if(L instanceof mo)L.target=L.target||m;else{var Ot=L;bt(L=new mo(Se,m),Ot)}if(Ot=!0,Q)for(var Wt=Q.length-1;0<=Wt;Wt--){var Ln=L.g=Q[Wt];Ot=Th(Ln,Se,!0,L)&&Ot}if(Ot=Th(Ln=L.g=m,Se,!0,L)&&Ot,Ot=Th(Ln,Se,!1,L)&&Ot,Q)for(Wt=0;Wt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const L=m.h;m.h=null,m.m.apply(null,L)}hn(is,gu),is.prototype[Ah]=!0,is.prototype.removeEventListener=function(m,L,Q,Se){_m(this,m,L,Q,Se)},is.prototype.N=function(){if(is.aa.N.call(this),this.i){var L,m=this.i;for(L in m.g){for(var Q=m.g[L],Se=0;SeSe.length)){var Ot=Se[1];if(Array.isArray(Ot)&&!(1>Ot.length)){var Wt=Ot[0];if("noop"!=Wt&&"stop"!=Wt&&"close"!=Wt)for(var Ln=1;LnL.length?Sm:(L=L.slice(Se,Se+Q),m.C=Se+Q,L))}function Sh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,L){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(ot(m.ba,m),L)}function _p(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Rh(m){0==m.j.G||m.J||K0(m.j,m)}function Iu(m){_p(m);var L=m.M;L&&"function"==typeof L.ma&&L.ma(),m.M=null,Tm(m.U),m.g&&(L=m.g,m.g=null,L.abort(),L.ma())}function Mh(m,L){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||Mm(Q.h,m)))if(!m.K&&Mm(Q.h,m)&&3==Q.G){try{var Se=Q.Da.g.parse(L)}catch{Se=null}if(Array.isArray(Se)&&3==Se.length){var Ot=Se;if(0==Ot[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3Ot[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(ot(Q.Za,Q),6e3));if(1>=E_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Au(Q,11)}else if((m.K||Q.g==m)&&Vh(Q),!vr(L))for(Ot=Q.Da.g.parse(L),L=0;Lfs)&&(3!=fs||this.g&&(this.h.h||this.g.oa()||S_(this.g)))){this.J||4!=fs||7==L||cc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(v_(this)){var Se=S_(this.g);m="";var Ot=Se.length,Wt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Rh(this);var Ln="";break t}this.h.i=new w.TextDecoder}for(L=0;L=m.j}function E_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,L){return m.h?m.h==L:!!m.g&&m.g.has(L)}function Ph(m,L){m.g?m.g.add(L):m.h=L}function yp(m,L){m.h&&m.h==L?m.h=null:m.g&&m.g.has(L)&&m.g.delete(L)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let L=m.i;for(const Q of m.g.values())L=L.concat(Q.D);return L}return bn(m.i)}function A_(m,L){if(m.forEach&&"function"==typeof m.forEach)m.forEach(L,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,L,void 0);else for(var Q=function Nm(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var L=[];m=m.length;for(var Q=0;QL)throw Error("Bad port number "+L);m.s=L}else m.s=null}function Om(m,L,Q){L instanceof Oh?(m.i=L,function b_(m,L){L&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(Q,Se){var Ot=Se.toLowerCase();Se!=Ot&&(km(this,Se),Fm(this,Ot,Q))},m)),m.j=L}(m.i,m.h)):(Q||(L=gd(L,tA)),m.i=new Oh(L,m.h))}function qi(m,L,Q){m.i.set(L,Q)}function xh(m){return qi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function Nh(m,L){return m?L?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,L,Q){return"string"==typeof m?(m=encodeURI(m).replace(L,V0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function V0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],L=this.j;L&&m.push(gd(L,Ip,!0),":");var Q=this.g;return(Q||"file"==L)&&(m.push("//"),(L=this.o)&&m.push(gd(L,Ip,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(gd(Q,"/"==Q.charAt(0)?D_:T_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",gd(Q,nA)),m.join("")};var Ip=/[#\/\?@]/g,T_=/[#\?:]/g,D_=/[#\?]/g,tA=/[#\?@]/g,nA=/#/g;function Oh(m,L){this.h=this.g=null,this.i=m||null,this.j=!!L}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function L0(m,L){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Tp(this)),this.g&&(this.readyState=3,Tp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof w.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;$0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var L=m.value?m.value:new Uint8Array(0);(L=this.v.decode(L,{stream:!m.done}))&&(this.response=this.responseText+=L)}m.done?Cp(this):Tp(this),3==this.readyState&&$0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,L){this.u.append(m,L)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],L=this.h.entries();for(var Q=L.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=L.next();return m.join("\r\n")},Object.defineProperty(Lm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),hn(vo,is);var oA=/^https?$/i,sA=["POST","PUT"];function B0(m,L){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=L,m.m=5,j0(m),Um(m)}function j0(m){m.A||(m.A=!0,zo(m,"complete"),zo(m,"error"))}function z0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Eu(m)||2!=m.Z()))if(m.u&&4==Eu(m))Am(m.Ea,0,m);else if(zo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Ln=m.Z();e:switch(Ln){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var L=!0;break e;default:L=!1}var Q;if(!(Q=L)){var Se;if(Se=0===Ln){var Ot=String(m.D).match(C_)[1]||null;!Ot&&w.self&&w.self.location&&(Ot=w.self.location.protocol.slice(0,-1)),Se=!oA.test(Ot?Ot.toLowerCase():"")}Q=Se}if(Q)zo(m,"complete"),zo(m,"success");else{m.m=6;try{var Wt=2{}:null;m.g=null,m.v=null,L||zo(m,"ready");try{Q.onreadystatechange=Se}catch{}}}function H0(m){m.I&&(w.clearTimeout(m.I),m.I=null)}function Eu(m){return m.g?m.g.readyState:0}function S_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Nl(m,L,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||L}function R_(m){this.Aa=0,this.i=[],this.j=new _u,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Nl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Nl("baseRetryDelayMs",5e3,m),this.cb=Nl("retryDelaySeedMs",1e4,m),this.Wa=Nl("forwardChannelMaxRetries",2,m),this.wa=Nl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Rm(m&&m.concurrentRequestLimit),this.Da=new rA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0Ti)Wt=Math.max(0,Ot[io].g-100),ji=!1;else try{iA(os,Ln,"req"+Ti+"_")}catch{Se&&Se(os)}}if(ji){Se=Ln.join("&");break e}}}return m=m.i.splice(0,Q),L.D=m,Se}function Bm(m){if(!m.g&&!m.u){m.Y=1;var L=m.Fa;sd||fm(),Ih||(sd(),Ih=!0),hm.add(L,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(ot(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function W0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var L=nl(m.qa);qi(L,"RID","rpc"),qi(L,"SID",m.K),qi(L,"AID",m.T),qi(L,"CI",m.F?"0":"1"),!m.F&&m.ja&&qi(L,"TO",m.ja),qi(L,"TYPE","xmlhttp"),Fh(m,L),m.m&&m.o&&Dp(L,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=xh(nl(L)),Q.m=null,Q.P=!0,m_(Q,m)}function Vh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function K0(m,L){var Q=null;if(m.g==L){Vh(m),bp(m),m.g=null;var Se=2}else{if(!Mm(m.h,L))return;Q=L.D,yp(m.h,L),Se=1}if(0!=m.G)if(L.o)if(1==Se){Q=L.m?L.m.length:0,L=Date.now()-L.F;var Ot=m.B;zo(Se=hp(),new cd(Se,Q)),$m(m)}else Bm(m);else if(3==(Ot=L.s)||0==Ot&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=L.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(ot(m.Ga,m,L),N_(m,m.B)),m.B++,0)))}(m,L)||2==Se&&jm(m)))switch(Q&&0{Se.abort(),fc(0,0,!1,L)},1e4);fetch(m,{signal:Se.signal}).then(Wt=>{clearTimeout(Ot),fc(0,0,!!Wt.ok,L)}).catch(()=>{clearTimeout(Ot),fc(0,0,!1,L)})}(Se.toString(),Q)}else uo(2);m.G=0,m.l&&m.l.sa(L),wp(m),P_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const L=Pm(m.h);(0!=L.length||0!=m.i.length)&&(vn(m.ka,L),vn(m.ka,m.i),m.h.i.length=0,bn(m.i),m.i.length=0),m.l.ra()}}function O_(m,L,Q){var Se=Q instanceof dc?nl(Q):new dc(Q);if(""!=Se.g)L&&(Se.g=L+"."+Se.g),pd(Se,Se.s);else{var Ot=w.location;Se=Ot.protocol,L=L?L+"."+Ot.hostname:Ot.hostname,Ot=+Ot.port;var Wt=new dc(null);Se&&fd(Wt,Se),L&&(Wt.g=L),Ot&&pd(Wt,Ot),Q&&(Wt.l=Q),Se=Wt}return L=m.ya,(Q=m.D)&&L&&qi(Se,Q,L),qi(Se,"VER",m.la),Fh(m,Se),Se}function k_(m,L,Q){if(L&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(L=new vo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),L}function Uh(){}function Sp(){}function Fs(m,L){is.call(this),this.g=new R_(L),this.l=m,this.h=L&&L.messageUrlParams||null,m=L&&L.messageHeaders||null,L&&L.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=L&&L.initMessageHeaders||null,L&&L.messageContentType&&(m?m["X-WebChannel-Content-Type"]=L.messageContentType:m={"X-WebChannel-Content-Type":L.messageContentType}),L&&L.va&&(m?m["X-WebChannel-Client-Profile"]=L.va:m={"X-WebChannel-Client-Profile":L.va}),this.g.S=m,(m=L&&L.Sb)&&!vr(m)&&(this.g.m=m),this.v=L&&L.supportsCrossDomainXhr||!1,this.u=L&&L.sendRawJson||!1,(L=L&&L.httpSessionIdParam)&&!vr(L)&&(this.g.D=L,null!==(m=this.h)&&L in m&&L in(m=this.h)&&delete m[L]),this.j=new vd(this)}function F_(m){tl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var L=m.__sm__;if(L){e:{for(const Q in L){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,L=null!==L&&m in L?L[m]:void 0),this.data=L}else this.data=m}function L_(){ld.call(this),this.status=1}function vd(m){this.g=m}(l=vo.prototype).Ha=function(m){this.J=m},l.ea=function(m,L,Q,Se){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);L=L?L.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():wm.g(),this.v=function Dm(m){return m.h||(m.h=m.i())}(this.o?this.o:wm),this.g.onreadystatechange=ot(this.Ea,this);try{this.B=!0,this.g.open(L,String(m),!0),this.B=!1}catch(Wt){return void B0(this,Wt)}if(m=Q||"",Q=new Map(this.headers),Se)if(Object.getPrototypeOf(Se)===Object.prototype)for(var Ot in Se)Q.set(Ot,Se[Ot]);else{if("function"!=typeof Se.keys||"function"!=typeof Se.get)throw Error("Unknown input type for opt_headers: "+String(Se));for(const Wt of Se.keys())Q.set(Wt,Se.get(Wt))}Se=Array.from(Q.keys()).find(Wt=>"content-type"==Wt.toLowerCase()),Ot=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(sA,L,void 0))||Se||Ot||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[Wt,Ln]of Q)this.g.setRequestHeader(Wt,Ln);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{H0(this),this.u=!0,this.g.send(m),this.u=!1}catch(Wt){B0(this,Wt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,zo(this,"complete"),zo(this,"abort"),Um(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Um(this,!0)),vo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?z0(this):this.bb())},l.bb=function(){z0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(ot(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,uo(10),kh(this),W0(this))},l.Za=function(){null!=this.C&&(this.C=null,kh(this),jm(this),uo(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),uo(2)):(this.j.info("Failed to ping google.com"),uo(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,L){return new Fs(m,L)},hn(Fs,is),Fs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Fs.prototype.close=function(){M_(this.g)},Fs.prototype.o=function(m){var L=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=bh(m),m=Q);L.i.push(new y_(L.Ya++,m)),3==L.G&&$m(L)},Fs.prototype.N=function(){this.g.l=null,delete this.j,M_(this.g),delete this.g,Fs.aa.N.call(this)},hn(F_,tl),hn(L_,ld),hn(vd,Uh),vd.prototype.ua=function(){zo(this.g,"a")},vd.prototype.ta=function(m){zo(this.g,new F_(m))},vd.prototype.sa=function(m){zo(this.g,new L_)},vd.prototype.ra=function(){zo(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,Fs.prototype.send=Fs.prototype.o,Fs.prototype.open=Fs.prototype.m,Fs.prototype.close=Fs.prototype.close,Ve=Et.createWebChannelTransport=function(){return new Sp},be=Et.getStatEventTarget=function(){return hp()},Qe=Et.Event=vu,Ne=Et.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,_t=Et.ErrorCode=gp,f_.COMPLETE="complete",pt=Et.EventType=f_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",is.prototype.listen=is.prototype.K,xt=Et.WebChannel=ad,mt=Et.FetchXmlHttpFactory=Ap,vo.prototype.listenOnce=vo.prototype.L,vo.prototype.getLastError=vo.prototype.Ka,vo.prototype.getLastErrorCode=vo.prototype.Ba,vo.prototype.getStatus=vo.prototype.Z,vo.prototype.getResponseJson=vo.prototype.Oa,vo.prototype.getResponseText=vo.prototype.oa,vo.prototype.send=vo.prototype.ea,vo.prototype.setWithCredentials=vo.prototype.Ha,lt=Et.XhrIo=vo}).apply(typeof it<"u"?it:typeof self<"u"?self:typeof window<"u"?window:{});const Te="@firebase/firestore";class se{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}se.UNAUTHENTICATED=new se(null),se.GOOGLE_CREDENTIALS=new se("google-credentials-uid"),se.FIRST_PARTY=new se("first-party-uid"),se.MOCK_USER=new se("mock-user");let ze="10.12.1";const gt=new Je.Vy("@firebase/firestore");function Bt(){return gt.logLevel}function He(l,...n){if(gt.logLevel<=Je.$b.DEBUG){const i=n.map(De);gt.debug(`Firestore (${ze}): ${l}`,...i)}}function Zt(l,...n){if(gt.logLevel<=Je.$b.ERROR){const i=n.map(De);gt.error(`Firestore (${ze}): ${l}`,...i)}}function tt(l,...n){if(gt.logLevel<=Je.$b.WARN){const i=n.map(De);gt.warn(`Firestore (${ze}): ${l}`,...i)}}function De(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function j(l="Unexpected state"){const n=`FIRESTORE (${ze}) INTERNAL ASSERTION FAILED: `+l;throw Zt(n),new Error(n)}function W(l,n){l||j()}function J(l,n){return l}const re={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Re extends we.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ge{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class Jt{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class yn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(se.UNAUTHENTICATED))}shutdown(){}}class rn{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class Fn{constructor(n){this.t=n,this.currentUser=se.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=X=>this.i!==u?(u=this.i,i(X)):Promise.resolve();let _=new Ge;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Ge,n.enqueueRetryable(()=>p(this.currentUser))};const w=()=>{const X=_;n.enqueueRetryable((0,Ee.A)(function*(){yield X.promise,yield p(s.currentUser)}))},k=X=>{He("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=X,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(X=>k(X)),setTimeout(()=>{if(!this.auth){const X=this.t.getImmediate({optional:!0});X?k(X):(He("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Ge)}},0),w()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(He("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(W("string"==typeof s.accessToken),new Jt(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return W(null===n||"string"==typeof n),new se(n)}}class Nn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=se.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class qn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Nn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(se.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class Zn{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Xn{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&He("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,He("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{He("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):He("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(W("string"==typeof i.token),this.R=i.token,new Zn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function or(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function wt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class en{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Re(re.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Re(re.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Re(re.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Re(re.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return en.fromMillis(Date.now())}static fromDate(n){return en.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new en(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Xe(this.nanoseconds,n.nanoseconds):Xe(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class on{constructor(n){this.timestamp=n}static fromTimestamp(n){return new on(n)}static min(){return new on(new en(0,0))}static max(){return new on(new en(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Ar{constructor(n,i,s){void 0===i?i=0:i>n.length&&j(),void 0===s?s=n.length-i:s>n.length-i&&j(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Ar.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ar?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Cn extends Ar{construct(n,i,s){return new Cn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Re(re.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Cn(i)}static emptyPath(){return new Cn([])}}const An=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class sn extends Ar{construct(n,i,s){return new sn(n,i,s)}static isValidIdentifier(n){return An.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),sn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new sn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Re(re.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Cn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Cn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Kt(new Cn(n.slice()))}}class Mr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Mr(on.min(),Kt.empty(),-1)}static max(){return new Mr(on.max(),Kt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Kt.comparator(l.documentKey,n.documentKey),0!==i?i:Xe(l.largestBatchId,n.largestBatchId))}const _r="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Zr(l){return zr.apply(this,arguments)}function zr(){return(zr=(0,Ee.A)(function*(l){if(l.code!==re.FAILED_PRECONDITION||l.message!==_r)throw l;He("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class de{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&j(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new de((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof de?i:de.resolve(i)}catch(i){return de.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):de.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):de.reject(i)}static resolve(n){return new de((i,s)=>{i(n)})}static reject(n){return new de((i,s)=>{s(n)})}static waitFor(n){return new de((i,s)=>{let u=0,p=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=de.resolve(!1);for(const s of n)i=i.next(u=>u?de.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new de((s,u)=>{const p=n.length,_=new Array(p);let w=0;for(let k=0;k{_[X]=pe,++w,w===p&&s(_)},pe=>u(pe))}})}static doWhile(n,i){return new de((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function ke(l){return"IndexedDbTransactionError"===l.name}let cn=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function Hn(l){return null==l}function dn(l){return 0===l&&1/l==-1/0}function sr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function Wr(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function Er(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class pr{constructor(n,i){this.comparator=n,this.root=i||kn.EMPTY}insert(n,i){return new pr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,kn.BLACK,null,null))}remove(n){return new pr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,kn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new ei(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new ei(this.root,n,this.comparator,!1)}getReverseIterator(){return new ei(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new ei(this.root,n,this.comparator,!0)}}class ei{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class kn{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:kn.RED,this.left=null!=u?u:kn.EMPTY,this.right=null!=p?p:kn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new kn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return kn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return kn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,kn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,kn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw j();const n=this.left.check();if(n!==this.right.check())throw j();return n+(this.isRed()?0:1)}}kn.EMPTY=null,kn.RED=!0,kn.BLACK=!1,kn.EMPTY=new class{constructor(){this.size=0}get key(){throw j()}get value(){throw j()}get color(){throw j()}get left(){throw j()}get right(){throw j()}copy(n,i,s,u,p){return this}insert(n,i,s){return new kn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Vn{constructor(n){this.comparator=n,this.data=new pr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new _o(this.data.getIterator())}getIteratorFrom(n){return new _o(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Vn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Vn(this.comparator);return i.data=n,i}}class _o{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class vi{constructor(n){this.fields=n,n.sort(sn.comparator)}static empty(){return new vi([])}unionWith(n){let i=new Vn(sn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new vi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return wt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Co extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class li{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new Co("Invalid base64 string: "+p):p}}(n);return new li(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_nve(i,n))}function ye(l,n){if(l===n)return 0;const i=q(l),s=q(n);if(i!==s)return Xe(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return Xe(l.booleanValue,n.booleanValue);case 2:return function(p,_){const w=_i(p.integerValue||p.doubleValue),k=_i(_.integerValue||_.doubleValue);return wk?1:w===k?0:isNaN(w)?isNaN(k)?0:-1:1}(l,n);case 3:return at(l.timestampValue,n.timestampValue);case 4:return at(Do(l),Do(n));case 5:return Xe(l.stringValue,n.stringValue);case 6:return function(p,_){const w=Yn(p),k=Yn(_);return w.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const w=p.split("/"),k=_.split("/");for(let X=0;Xn.mapValue.fields[i]=Qt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=Qt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function tn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Rn{constructor(n){this.value=n}static empty(){return new Rn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=Qt(_):u.push(w.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());jt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return ve(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Rn(Qt(this.value))}}function Ur(l){const n=[];return Wr(l.fields,(i,s)=>{const u=new sn([i]);if(jt(s)){const p=Ur(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new vi(n)}class Tr{constructor(n,i,s,u,p,_,w){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=w}static newInvalidDocument(n){return new Tr(n,0,on.min(),on.min(),on.min(),Rn.empty(),0)}static newFoundDocument(n,i,s,u){return new Tr(n,1,i,on.min(),s,u,0)}static newNoDocument(n,i){return new Tr(n,2,i,on.min(),on.min(),Rn.empty(),0)}static newUnknownDocument(n,i){return new Tr(n,3,i,on.min(),on.min(),Rn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(on.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Rn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Rn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=on.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Tr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Tr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class dr{constructor(n,i){this.position=n,this.inclusive=i}}function yi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return j()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class ui extends Ko{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new ui(n,i)}matches(n){return Xo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Xo(l){return"and"===l.op}function qo(l){return function wo(l){for(const n of l.filters)if(n instanceof ui)return!1;return!0}(l)&&Xo(l)}function xa(l){if(l instanceof Dr)return l.field.canonicalString()+l.op.toString()+mr(l.value);if(qo(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function ss(l,n){return l instanceof Dr?(s=l,(u=n)instanceof Dr&&s.op===u.op&&s.field.isEqual(u.field)&&ve(s.value,u.value)):l instanceof ui?function(s,u){return u instanceof ui&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,w)=>p&&ss(_,u.filters[w]),!0)}(l,n):void j();var s,u}function jr(l){return l instanceof Dr?`${(i=l).field.canonicalString()} ${i.op} ${mr(i.value)}`:l instanceof ui?function(i){return i.op.toString()+" {"+i.getFilters().map(jr).join(" ,")+"}"}(l):"Filter";var i}class oo extends Dr{constructor(n,i,s){super(n,i,s),this.key=Kt.fromName(s.referenceValue)}matches(n){const i=Kt.comparator(n.key,this.key);return this.matchesComparison(i)}}class Us extends Dr{constructor(n,i){super(n,"in",i),this.keys=ua(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class so extends Dr{constructor(n,i){super(n,"not-in",i),this.keys=ua(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function ua(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>Kt.fromName(s.referenceValue))}class gs extends Dr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return We(i)&&P(i.arrayValue,this.value)}}class ms extends Dr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class as extends Dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class $s extends Dr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!We(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class ca{constructor(n,i=null,s=[],u=[],p=null,_=null,w=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=w,this.ue=null}}function Qo(l,n=null,i=[],s=[],u=null,p=null,_=null){return new ca(l,n,i,s,u,p,_)}function bs(l){const n=J(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>xa(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),Hn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>mr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>mr(s)).join(",")),n.ue=i}return n.ue}function Yo(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let w=new Vn(sn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(X=>{X.isInequality()&&(w=w.add(X.field))})}),w})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new Ai(p,s))}),i.has(sn.keyField().canonicalString())||n.ce.push(new Ai(sn.keyField(),s))}return n.ce}function Un(l){const n=J(l);return n.le||(n.le=function Zi(l,n){if("F"===l.limitType)return Qo(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new Ai(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new dr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new dr(l.startAt.position,l.startAt.inclusive):null;return Qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,fn(l))),n.le}function eo(l,n,i){return new z(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Jo(l,n){return Yo(Un(l),Un(n))&&l.limitType===n.limitType}function Na(l){return`${bs(Un(l))}|lt:${l.limitType}`}function vs(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>jr(u)).join(", ")}]`),Hn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>mr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>mr(u)).join(",")),`Target(${s})`}(Un(l))}; limitType=${l.limitType})`}function Bs(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):Kt.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of fn(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,w,k){const X=yi(_,w,k);return _.inclusive?X<=0:X<0}(s.startAt,fn(s),u)||s.endAt&&!function(_,w,k){const X=yi(_,w,k);return _.inclusive?X>=0:X>0}(s.endAt,fn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of fn(l)){const p=al(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function al(l,n,i){const s=l.field.isKeyField()?Kt.comparator(n.key,i.key):function(p,_,w){const k=_.data.field(p),X=w.data.field(p);return null!==k&&null!==X?ye(k,X):j()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return j()}}class ls{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return Er(this.inner)}size(){return this.innerSize}}const ha=new pr(Kt.comparator);function cr(){return ha}const Vi=new pr(Kt.comparator);function xi(...l){let n=Vi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Vi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function oi(){return us()}function ll(){return us()}function us(){return new ls(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new pr(Kt.comparator),Ll=new Vn(Kt.comparator);function Sr(...l){let n=Ll;for(const i of l)n=n.add(i);return n}const ul=new Vn(Xe);function ka(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:dn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function _n(l){return"number"==typeof l&&Number.isInteger(l)&&!dn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Vl(l,n,i){return l instanceof Is?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&Lo(p)&&(p=To(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof ws?Zo(l,n):l instanceof Ss?dl(l,n):function(u,p){const _=fa(u,p),w=wu(_)+wu(u.Pe);return Me(_)&&Me(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Zo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof es?Me(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Is extends Fa{}class ws extends Fa{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>ve(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ss extends Fa{constructor(n){super(),this.elements=n}}function dl(l,n){let i=$l(n);for(const s of l.elements)i=i.filter(u=>!ve(u,s));return{arrayValue:{values:i}}}class es extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return _i(l.integerValue||l.doubleValue)}function $l(l){return We(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Ni{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ni}static exists(n){return new Ni(void 0,n)}static updateTime(n){return new Ni(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function pa(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Bl{}function ga(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new B(l.key,Ni.none()):new Ms(l.key,l.data,Ni.none());{const i=l.data,s=Rn.empty();let u=new Vn(sn.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new lo(l.key,s,new vi(u.toArray()),Ni.none())}}function La(l,n,i){l instanceof Ms?function(u,p,_){const w=u.value.clone(),k=Es(u.fieldTransforms,p,_.transformResults);w.setAll(k),p.convertToFoundDocument(_.version,w).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,p,_){if(!pa(u.precondition,p))return void p.convertToUnknownDocument(_.version);const w=Es(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Hs(u)),k.setAll(w),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(p,_,w,k){if(!pa(p.precondition,_))return w;const X=p.value.clone(),pe=T(p.fieldTransforms,k,_);return X.setAll(pe),_.convertToFoundDocument(_.version,X).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(p,_,w,k){if(!pa(p.precondition,_))return w;const X=T(p.fieldTransforms,k,_),pe=_.data;return pe.setAll(Hs(p)),pe.setAll(X),_.convertToFoundDocument(_.version,pe).setHasLocalMutations(),null===w?null:w.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(Oe=>Oe.field))}(l,n,i,s):(w=i,pa(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):w);var _,w}function pc(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=fa(s.transform,u||null);null!=p&&(null===i&&(i=Rn.empty()),i.set(s.field,p))}return i||null}function ma(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&wt(s,u,(p,_)=>function ts(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof ws&&u instanceof ws||s instanceof Ss&&u instanceof Ss?wt(s.elements,u.elements,ve):s instanceof es&&u instanceof es?ve(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ms extends Bl{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Bl{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Hs(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Es(l,n,i){const s=new Map;W(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let w=this.applyToLocalView(_,p.mutatedFields);w=i.has(u.key)?null:w;const k=ga(_,w);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(on.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Sr())}isEqual(n){return this.batchId===n.batchId&&wt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&wt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class ge{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){W(n.mutations.length===s.length);let u=function(){return _s}();const p=n.mutations;for(let _=0;_=8)throw new ci(`Invalid padding: ${i}`);if(s<0)throw new ci(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new ci(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new ci(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ke.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ke.fromNumber(s)));return 1===u.compare(Ui)&&(u=new Ke([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(w)),_}insert(n){if(0===this.Ie)return;const i=si(n),[s,u]=In(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=Sr(),i=Sr(),s=Sr();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:j()}}),new wi(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Va()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,W(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class $o{constructor(n){this.Le=n,this.Be=new Map,this.ke=cr(),this.qe=wr(),this.Qe=new pr(Xe)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:j()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(So(p))if(0===s){const _=new Kt(p.path);this.Ue(i,_,Tr.newNoDocument(_,on.min()))}else W(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),k=w?this.Xe(w,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,w;try{_=Yn(s).toUint8Array()}catch(k){if(k instanceof Co)return tt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{w=new zn(_,u,p)}catch(k){return tt(k instanceof ci?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===w.Ie?null:w}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),w=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(w)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const w=this.Je(_);if(w){if(p.current&&So(w.target)){const k=new Kt(w.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,Tr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=Sr();this.qe.forEach((p,_)=>{let w=!0;_.forEachWhile(k=>{const X=this.Je(k);return!X||"TargetPurposeLimboResolution"===X.purpose||(w=!1,!1)}),w&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new Gi(n,i,this.Qe,this.ke,s);return this.ke=cr(),this.qe=wr(),this.Qe=new pr(Xe),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new Hi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Vn(Xe),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||He("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new Hi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function wr(){return new pr(Kt.comparator)}function Va(){return new pr(Kt.comparator)}const gc={asc:"ASCENDING",desc:"DESCENDING"},Ua={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Ki={and:"AND",or:"OR"};class va{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function ns(l,n){return l.useProto3Json||Hn(n)?n:{value:n}}function Ro(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function Gs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function jl(l,n){return Ro(l,n.toTimestamp())}function Qr(l){return W(!!l),on.fromTimestamp(function(i){const s=Kr(i);return new en(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new Cn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Or(l){const n=Cn.fromString(l);return W(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function ko(l,n){const i=Or(n);if(i.get(1)!==l.databaseId.projectId)throw new Re(re.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Re(re.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Kt(Bi(i))}function Bo(l,n){return _a(l.databaseId,n)}function Ks(l){return new Cn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Bi(l){return W(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Su(l,n,i){return{name:$a(l,n),fields:i.value.mapValue.fields}}function Hl(l,n){return{documents:[Bo(l,n.path)]}}function Gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=Bo(l,u);const p=function(X){if(0!==X.length)return Ad(ui.create(X,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(X){if(0!==X.length)return X.map(pe=>{return{field:Xs((ot=pe).field),direction:ja(ot.dir)};var ot})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=ns(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(X=n.startAt).inclusive,values:X.position}),n.endAt&&(i.structuredQuery.endAt=function(X){return{before:!X.inclusive,values:X.position}}(n.endAt)),{_t:i,parent:u};var X}function Ea(l){let n=function ya(l){const n=Or(l);return 4===n.length?Cn.emptyPath():Bi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){W(1===s);const pe=i.from[0];pe.allDescendants?u=pe.collectionId:n=n.child(pe.collectionId)}let p=[];i.where&&(p=function(Oe){const ot=Ba(Oe);return ot instanceof ui&&qo(ot)?ot.getFilters():[ot]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(ot=>{return new Ai(qs((hn=ot).field),function(vn){switch(vn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(hn.direction));var hn}));let w=null;i.limit&&(w=function(Oe){let ot;return ot="object"==typeof Oe?Oe.value:Oe,Hn(ot)?null:ot}(i.limit));let k=null;var Oe;i.startAt&&(k=new dr((Oe=i.startAt).values||[],!!Oe.before));let X=null;return i.endAt&&(X=function(Oe){return new dr(Oe.values||[],!Oe.before)}(i.endAt)),function N(l,n,i,s,u,p,_,w){return new z(l,n,i,s,u,p,_,w)}(n,u,_,p,w,"F",k,X)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=qs(i.unaryFilter.field);return Dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=qs(i.unaryFilter.field);return Dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=qs(i.unaryFilter.field);return Dr.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=qs(i.unaryFilter.field);return Dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return j()}}(l):void 0!==l.fieldFilter?Dr.create(qs((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return j()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return ui.create(i.compositeFilter.filters.map(s=>Ba(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return j()}}(i.compositeFilter.op))}(l):j();var i}function ja(l){return gc[l]}function Wh(l){return Ua[l]}function mc(l){return Ki[l]}function Xs(l){return{fieldPath:l.canonicalString()}}function qs(l){return sn.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof Dr?function(i){if("=="===i.op){if(ct(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NAN"}};if(vt(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(ct(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NOT_NAN"}};if(vt(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Xs(i.field),op:Wh(i.op),value:i.value}}}(l):l instanceof ui?function(i){const s=i.getFilters().map(u=>Ad(u));return 1===s.length?s[0]:{compositeFilter:{op:mc(i.op),filters:s}}}(l):j()}function Cd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function Td(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class Aa{constructor(n,i,s,u,p=on.min(),_=on.min(),w=li.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=k}withSequenceNumber(n){return new Aa(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class Kh{constructor(n){this.ct=n}}function Ce(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class jo{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(_i(n.integerValue));else if("doubleValue"in n){const s=_i(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),dn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=Kr(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(Yn(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?tn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):j()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),Kt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}jo.bt=new jo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),de.resolve()}getCollectionParents(n,i){return de.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return de.resolve()}deleteFieldIndex(n,i){return de.resolve()}deleteAllFieldIndexes(n){return de.resolve()}createTargetIndexes(n,i){return de.resolve()}getDocumentsMatchingTarget(n,i){return de.resolve(null)}getIndexType(n,i){return de.resolve(0)}getFieldIndexes(n,i){return de.resolve([])}getNextCollectionGroupToUpdate(n){return de.resolve(null)}getMinOffset(n,i){return de.resolve(Mr.min())}getMinOffsetFromCollectionGroup(n,i){return de.resolve(Mr.min())}updateCollectionGroup(n,i,s){return de.resolve()}updateIndexEntries(n,i){return de.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Vn(Cn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Vn(Cn.comparator)).toArray()}}new Uint8Array(0);class nr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new nr(n,nr.DEFAULT_COLLECTION_PERCENTILE,nr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}nr.DEFAULT_COLLECTION_PERCENTILE=10,nr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,nr.DEFAULT=new nr(41943040,nr.DEFAULT_COLLECTION_PERCENTILE,nr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),nr.DISABLED=new nr(-1,0,0);class gl{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new gl(0)}static Ln(){return new gl(-1)}}class Zs{constructor(){this.changes=new ls(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,Tr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?de.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Ts{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class na{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zs(s.mutation,u,vi.empty(),en.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Sr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Sr()){const u=oi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=xi();return p.forEach((w,k)=>{_=_.insert(w,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=oi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Sr()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,w)=>{i.set(_,w)})})}computeViews(n,i,s,u){let p=cr();const _=us(),w=us();return i.forEach((k,X)=>{const pe=s.get(X.key);u.has(X.key)&&(void 0===pe||pe.mutation instanceof lo)?p=p.insert(X.key,X):void 0!==pe?(_.set(X.key,pe.mutation.getFieldMask()),zs(pe.mutation,X,pe.mutation.getFieldMask(),en.now())):_.set(X.key,vi.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((X,pe)=>_.set(X,pe)),i.forEach((X,pe)=>{var Oe;return w.set(X,new Ts(pe,null!==(Oe=_.get(X))&&void 0!==Oe?Oe:null))}),w))}recalculateAndSaveOverlays(n,i){const s=us();let u=new pr((_,w)=>_-w),p=Sr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(k=>{const X=i.get(k);if(null===X)return;let pe=s.get(k)||vi.empty();pe=w.applyToLocalView(X,pe),s.set(k,pe);const Oe=(u.get(w.batchId)||Sr()).add(k);u=u.insert(w.batchId,Oe)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const k=w.getNext(),X=k.key,pe=k.value,Oe=ll();pe.forEach(ot=>{if(!p.has(ot)){const kt=ga(i.get(ot),s.get(ot));null!==kt&&Oe.set(ot,kt),p=p.add(ot)}}),_.push(this.documentOverlayCache.saveOverlays(n,X,Oe))}return de.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Kt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Pe(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):de.resolve(oi());let w=-1,k=p;return _.next(X=>de.forEach(X,(pe,Oe)=>(w{k=k.insert(pe,ot)}))).next(()=>this.populateOverlays(n,X,p)).next(()=>this.computeViews(n,k,X,Sr())).next(pe=>({batchId:w,changes:ro(pe)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Kt(i)).next(s=>{let u=xi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=xi();return this.indexManager.getCollectionParents(n,p).next(w=>de.forEach(w,k=>{const X=(Oe=i,ot=k.child(p),new z(ot,null,Oe.explicitOrderBy.slice(),Oe.filters.slice(),Oe.limit,Oe.limitType,Oe.startAt,Oe.endAt));var Oe,ot;return this.getDocumentsMatchingCollectionQuery(n,X,s,u).next(pe=>{pe.forEach((Oe,ot)=>{_=_.insert(Oe,ot)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,X)=>{const pe=X.getKey();null===_.get(pe)&&(_=_.insert(pe,Tr.newInvalidDocument(pe)))});let w=xi();return _.forEach((k,X)=>{const pe=p.get(k);void 0!==pe&&zs(pe.mutation,X,vi.empty(),en.now()),Bs(i,X)&&(w=w.insert(k,X))}),w})}}class rg{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return de.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Qr(u.createTime)}),de.resolve();var u}getNamedQuery(n,i){return de.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Ce(u.bundledQuery),readTime:Qr(u.readTime)}),de.resolve();var u}}class Tc{constructor(){this.overlays=new pr(Kt.comparator),this.hr=new Map}getOverlay(n,i){return de.resolve(this.overlays.get(i))}getOverlays(n,i){const s=oi();return de.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),de.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),de.resolve()}getOverlaysForCollection(n,i,s){const u=oi(),p=i.length+1,_=new Kt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const k=w.getNext().value,X=k.getKey();if(!i.isPrefixOf(X.path))break;X.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return de.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new pr((X,pe)=>X-pe);const _=this.overlays.getIterator();for(;_.hasNext();){const X=_.getNext().value;if(X.getKey().getCollectionGroup()===i&&X.largestBatchId>s){let pe=p.get(X.largestBatchId);null===pe&&(pe=oi(),p=p.insert(X.largestBatchId,pe)),pe.set(X.getKey(),X)}}const w=oi(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((X,pe)=>w.set(X,pe)),!(w.size()>=u)););return de.resolve(w)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new $e(i,s));let p=this.hr.get(i);void 0===p&&(p=Sr(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class Md{constructor(){this.Pr=new Vn(Eo.Ir),this.Tr=new Vn(Eo.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Eo(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Eo(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Kt(new Cn([])),s=new Eo(i,n),u=new Eo(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new Kt(new Cn([])),s=new Eo(i,n),u=new Eo(i,n+1);let p=Sr();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new Eo(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Eo{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Kt.comparator(n.key,i.key)||Xe(n.pr,i.pr)}static Er(n,i){return Xe(n.pr,i.pr)||Kt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Vn(Eo.Ir)}checkEmpty(n){return de.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Eo(w.key,p)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return de.resolve(_)}lookupMutationBatch(n,i){return de.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return de.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return de.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return de.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Eo(i,0),u=new Eo(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);p.push(w)}),de.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Vn(Xe);return i.forEach(u=>{const p=new Eo(u,0),_=new Eo(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],w=>{s=s.add(w.pr)})}),de.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;Kt.isDocumentKey(p)||(p=p.child(""));const _=new Eo(new Kt(p),0);let w=new Vn(Xe);return this.wr.forEachWhile(k=>{const X=k.key.path;return!!s.isPrefixOf(X)&&(X.length===u&&(w=w.add(k.pr)),!0)},_),de.resolve(this.Dr(w))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){W(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return de.forEach(i.mutations,u=>{const p=new Eo(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Eo(i,0),u=this.wr.firstAfterOrEqual(s);return de.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return de.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Ou{constructor(n){this.vr=n,this.docs=new pr(Kt.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return de.resolve(s?s.document.mutableCopy():Tr.newInvalidDocument(i))}getEntries(n,i){let s=cr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():Tr.newInvalidDocument(u))}),de.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=cr();const _=i.path,w=new Kt(_.child("")),k=this.docs.getIteratorFrom(w);for(;k.hasNext();){const{key:X,value:{document:pe}}=k.getNext();if(!_.isPrefixOf(X.path))break;X.path.length>_.length+1||tr(new Mr((l=pe).readTime,l.key,-1),s)<=0||(u.has(pe.key)||Bs(i,pe))&&(p=p.insert(pe.key,pe.mutableCopy()))}var l;return de.resolve(p)}getAllFromCollectionGroup(n,i,s,u){j()}Fr(n,i){return de.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return de.resolve(this.size)}}class xd extends Zs{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),de.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Dc{constructor(n){this.persistence=n,this.Mr=new ls(i=>bs(i),Yo),this.lastRemoteSnapshotVersion=on.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Md,this.targetCount=0,this.Lr=gl.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),de.resolve()}getLastRemoteSnapshotVersion(n){return de.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return de.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),de.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),de.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new gl(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,de.resolve()}updateTargetData(n,i){return this.qn(i),de.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,de.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,w)=>{w.sequenceNumber<=i&&null===s.get(w.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,w.targetId)),u++)}),de.waitFor(p).next(()=>u)}getTargetCount(n){return de.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return de.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),de.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),de.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),de.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return de.resolve(s)}containsKey(n,i){return de.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new cn(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Dc(this),this.indexManager=new Cs,this.remoteDocumentCache=new Ou(s=>this.referenceDelegate.Kr(s)),this.serializer=new Kh(i),this.$r=new rg(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Tc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Pd(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){He("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return de.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends Ii{constructor(n){super(),this.currentSequenceNumber=n}}class Da{constructor(n){this.persistence=n,this.zr=new Md,this.jr=null}static Hr(n){return new Da(n)}get Jr(){if(this.jr)return this.jr;throw j()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),de.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),de.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),de.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return de.forEach(this.Jr,s=>{const u=Kt.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,on.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return de.or([()=>de.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Si{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Sr(),u=Sr();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Si(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,we.nr)()?8:function st(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,we.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(w=>{if(p.result=w,this.Ui)return this.Yi(n,i,_,w.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(Bt()<=Je.$b.DEBUG&&He("QueryEngine","The SDK decides to create cache indexes for query:",vs(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Un(i))):de.resolve())}ji(n,i){if(G(i))return de.resolve(null);let s=Un(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=Un(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=Sr(...p);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(k=>{const X=this.Zi(i,w);return this.Xi(i,X,_,k.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,X,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(on.min())?de.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?de.resolve(null):(Bt()<=Je.$b.DEBUG&&He("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function er(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=on.fromTimestamp(1e9===s?new en(i+1,0):new en(i,s));return new Mr(u,Kt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new Vn(sl(n));return i.forEach((u,p)=>{Bs(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return Bt()<=Je.$b.DEBUG&&He("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Mr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class ig{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new pr(Xe),this.rs=new ls(p=>bs(p),Yo),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new na(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Od(l,n){return Vu.apply(this,arguments)}function Vu(){return(Vu=(0,Ee.A)(function*(l,n){const i=J(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],w=[];let k=Sr();for(const X of u){_.push(X.batchId);for(const pe of X.mutations)k=k.add(pe.key)}for(const X of p){w.push(X.batchId);for(const pe of X.mutations)k=k.add(pe.key)}return i.localDocuments.getDocuments(s,k).next(X=>({us:X,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=J(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=J(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function ia(l,n,i){return Rc.apply(this,arguments)}function Rc(){return(Rc=(0,Ee.A)(function*(l,n,i){const s=J(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!ke(_))throw _;He("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function vl(l,n,i){const s=J(l);let u=on.min(),p=Sr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,X,pe){const Oe=J(k),ot=Oe.rs.get(pe);return void 0!==ot?de.resolve(Oe.ns.get(ot)):Oe.Qr.getTargetData(X,pe)}(s,_,Un(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:on.min(),i?p:Sr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||on.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function Oa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),w),{documents:w,hs:p})))}class ju{constructor(){this.activeTargetIds=function ys(){return ul}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new ju,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new ju,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Ld{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){He("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){He("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Nc=null;function Ds(){return null===Nc?Nc=268435456+Math.round(2147483648*Math.random()):Nc++,"0x"+Nc.toString(16)}const cv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class zu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Po="WebChannelConnection";class Vd extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const w=Ds(),k=this.vo(i,s.toUriEncodedString());He("RestConnection",`Sending RPC '${i}' ${w}:`,k,u);const X={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(X,p,_),this.Mo(i,k,X,u).then(pe=>(He("RestConnection",`Received RPC '${i}' ${w}: `,pe),pe),pe=>{throw tt("RestConnection",`RPC '${i}' ${w} failed with error: `,pe,"url: ",k,"request:",u),pe})}xo(i,s,u,p,_,w){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+ze,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${cv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=Ds();return new Promise((_,w)=>{const k=new lt;k.setWithCredentials(!0),k.listenOnce(pt.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case _t.NO_ERROR:const pe=k.getResponseJson();He(Po,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(pe)),_(pe);break;case _t.TIMEOUT:He(Po,`RPC '${n}' ${p} timed out`),w(new Re(re.DEADLINE_EXCEEDED,"Request time out"));break;case _t.HTTP_ERROR:const Oe=k.getStatus();if(He(Po,`RPC '${n}' ${p} failed with status:`,Oe,"response text:",k.getResponseText()),Oe>0){let ot=k.getResponseJson();Array.isArray(ot)&&(ot=ot[0]);const kt=null==ot?void 0:ot.error;if(kt&&kt.status&&kt.message){const hn=function(vn){const Jn=vn.toLowerCase().replace(/_/g,"-");return Object.values(re).indexOf(Jn)>=0?Jn:re.UNKNOWN}(kt.status);w(new Re(hn,kt.message))}else w(new Re(re.UNKNOWN,"Server responded with status "+k.getStatus()))}else w(new Re(re.UNAVAILABLE,"Connection failed."));break;default:j()}}finally{He(Po,`RPC '${n}' ${p} completed.`)}});const X=JSON.stringify(u);He(Po,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",X,s,15)})}Oo(n,i,s){const u=Ds(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ve(),w=be(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},X=this.longPollingOptions.timeoutSeconds;void 0!==X&&(k.longPollingTimeout=Math.round(1e3*X)),this.useFetchStreams&&(k.xmlHttpFactory=new mt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const pe=p.join("");He(Po,`Creating RPC '${n}' stream ${u}: ${pe}`,k);const Oe=_.createWebChannel(pe,k);let ot=!1,kt=!1;const hn=new zu({lo:vn=>{kt?He(Po,`Not sending because RPC '${n}' stream ${u} is closed:`,vn):(ot||(He(Po,`Opening RPC '${n}' stream ${u} transport.`),Oe.open(),ot=!0),He(Po,`RPC '${n}' stream ${u} sending:`,vn),Oe.send(vn))},ho:()=>Oe.close()}),bn=(vn,Jn,vr)=>{vn.listen(Jn,lr=>{try{vr(lr)}catch(Br){setTimeout(()=>{throw Br},0)}})};return bn(Oe,xt.EventType.OPEN,()=>{kt||(He(Po,`RPC '${n}' stream ${u} transport opened.`),hn.mo())}),bn(Oe,xt.EventType.CLOSE,()=>{kt||(kt=!0,He(Po,`RPC '${n}' stream ${u} transport closed`),hn.po())}),bn(Oe,xt.EventType.ERROR,vn=>{kt||(kt=!0,tt(Po,`RPC '${n}' stream ${u} transport errored:`,vn),hn.po(new Re(re.UNAVAILABLE,"The operation could not be completed")))}),bn(Oe,xt.EventType.MESSAGE,vn=>{var Jn;if(!kt){const vr=vn.data[0];W(!!vr);const Br=vr.error||(null===(Jn=vr[0])||void 0===Jn?void 0:Jn.error);if(Br){He(Po,`RPC '${n}' stream ${u} received error:`,Br);const Ri=Br.status;let ri=function(ht){const bt=Kn[ht];if(void 0!==bt)return Nr(bt)}(Ri),Dt=Br.message;void 0===ri&&(ri=re.INTERNAL,Dt="Unknown error status: "+Ri+" with message "+Br.message),kt=!0,hn.po(new Re(ri,Dt)),Oe.close()}else He(Po,`RPC '${n}' stream ${u} received:`,vr),hn.yo(vr)}}),bn(w,Qe.STAT_EVENT,vn=>{vn.stat===Ne.PROXY?He(Po,`RPC '${n}' stream ${u} detected buffering proxy`):vn.stat===Ne.NOPROXY&&He(Po,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{hn.fo()},0),hn}}function Al(){return typeof document<"u"?document:null}function Oc(l){return new va(l,!0)}class eu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&He("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Ud{constructor(n,i,s,u,p,_,w,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new eu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,Ee.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,Ee.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,Ee.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===re.RESOURCE_EXHAUSTED?(Zt(i.toString()),Zt("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===re.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Re(re.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,Ee.A)(function*(){n.state=0,n.start()}))}c_(n){return He("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(He("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends Ud{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function zl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(X=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===X?1:"REMOVE"===X?2:"CURRENT"===X?3:"RESET"===X?4:j(),u=n.targetChange.targetIds||[],p=function(X,pe){return X.useProto3Json?(W(void 0===pe||"string"==typeof pe),li.fromBase64String(pe||"")):(W(void 0===pe||pe instanceof Buffer||pe instanceof Uint8Array),li.fromUint8Array(pe||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(X){const pe=void 0===X.code?re.UNKNOWN:Nr(X.code);return new Re(pe,X.message||"")}(_);i=new pi(s,u,p,w||null)}else if("documentChange"in n){const s=n.documentChange,u=ko(l,s.document.name),p=Qr(s.document.updateTime),_=s.document.createTime?Qr(s.document.createTime):on.min(),w=new Rn({mapValue:{fields:s.document.fields}}),k=Tr.newFoundDocument(u,p,_,w);i=new Wi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ko(l,s.document),p=s.readTime?Qr(s.readTime):on.min(),_=Tr.newNoDocument(u,p);i=new Wi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ko(l,s.document);i=new Wi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return j();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new mn(u,p);i=new $i(s.targetId,_)}}var X;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return on.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?on.min():_.readTime?Qr(_.readTime):on.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(p,_){let w;const k=_.target;if(w=So(k)?{documents:Hl(p,k)}:{query:Gl(p,k)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(p,_.resumeToken);const X=ns(p,_.expectedCount);null!==X&&(w.expectedCount=X)}else if(_.snapshotVersion.compareTo(on.min())>0){w.readTime=Ro(p,_.snapshotVersion.toTimestamp());const X=ns(p,_.expectedCount);null!==X&&(w.expectedCount=X)}return w}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return j()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ks(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends Ud{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(W(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function cs(l,n){return l&&l.length>0?(W(void 0!==n),l.map(i=>function(u,p){let _=Qr(u.updateTime?u.updateTime:p);return _.isEqual(on.min())&&(_=Qr(p)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Qr(n.commitTime);return this.listener.A_(s,i)}return W(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ks(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function As(l,n){let i;if(n instanceof Ms)i={update:Su(l,n.key,n.value)};else if(n instanceof B)i={delete:$a(l,n.key)};else if(n instanceof lo)i={update:Su(l,n.key,n.data),updateMask:Cd(n.fieldMask)};else{if(!(n instanceof xe))return j();i={verify:$a(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const w=_.transform;if(w instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(w instanceof ws)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:w.elements}};if(w instanceof Ss)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:w.elements}};if(w instanceof es)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw j()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:jl(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:j()),i;var p}(this.serializer,s))};this.i_(i)}}class sg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Re(re.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,Ws(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===re.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Re(re.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,w])=>this.connection.xo(n,Ws(i,s),u,_,w,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===re.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Re(re.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class $d{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(Zt(i),this.y_=!1):He("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Cl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(w=>{s.enqueueAndForget((0,Ee.A)(function*(){var k;Qa(_)&&(He("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,Ee.A)(function*(pe){const Oe=J(pe);Oe.M_.add(4),yield tu(Oe),Oe.N_.set("Unknown"),Oe.M_.delete(4),yield kc(Oe)}),function X(pe){return k.apply(this,arguments)})(_))}))}),this.N_=new $d(s,u)}}function kc(l){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,Ee.A)(function*(l){if(Qa(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function tu(l){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,Ee.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function qa(l,n){const i=J(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Hu(i):Xu(i).Xo()&&df(i,n))}function Yi(l,n){const i=J(l),s=Xu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Qa(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(on.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}Xu(l).P_(n)}function hf(l,n){l.L_.xe(n),Xu(l).I_(n)}function Hu(l){l.L_=new $o({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),Xu(l).start(),l.N_.w_()}function ff(l){return Qa(l)&&!Xu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===J(l).M_.size}function Lc(l){l.L_=void 0}function ag(l){return Bd.apply(this,arguments)}function Bd(){return(Bd=(0,Ee.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ee.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function lg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ee.A)(function*(l,n){Lc(l),ff(l)?(l.N_.D_(n),Hu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function dv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,Ee.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof pi&&2===n.state&&n.cause)try{yield(s=(0,Ee.A)(function*(p,_){const w=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,w),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){He("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield Vc(l,s)}else if(n instanceof Wi?l.L_.Ke(n):n instanceof $i?l.L_.He(n):l.L_.We(n),!i.isEqual(on.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const w=p.L_.rt(_);return w.targetChanges.forEach((k,X)=>{if(k.resumeToken.approximateByteSize()>0){const pe=p.F_.get(X);pe&&p.F_.set(X,pe.withResumeToken(k.resumeToken,_))}}),w.targetMismatches.forEach((k,X)=>{const pe=p.F_.get(k);if(!pe)return;p.F_.set(k,pe.withResumeToken(li.EMPTY_BYTE_STRING,pe.snapshotVersion)),hf(p,k);const Oe=new Aa(pe.target,k,X,pe.sequenceNumber);df(p,Oe)}),p.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){He("RemoteStore","Failed to raise snapshot:",s),yield Vc(l,s)}var s}),mf.apply(this,arguments)}function Vc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ee.A)(function*(l,n,i){if(!ke(n))throw n;l.M_.add(1),yield tu(l),l.N_.set("Offline"),i||(i=()=>Ns(l.localStore)),l.asyncQueue.enqueueRetryable((0,Ee.A)(function*(){He("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield kc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>Vc(l,i,n))}function Wu(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,Ee.A)(function*(l){const n=J(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;gy(n);)try{const u=yield Sc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,ug(n,u)}catch(u){yield Vc(n,u)}If(n)&&hs(n)})).apply(this,arguments)}function gy(l){return Qa(l)&&l.v_.length<10}function ug(l,n){l.v_.push(n);const i=nu(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function If(l){return Qa(l)&&!nu(l).Zo()&&l.v_.length>0}function hs(l){nu(l).start()}function my(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ee.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function vy(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,Ee.A)(function*(l){const n=nu(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Ya(l,n,i){return zd.apply(this,arguments)}function zd(){return(zd=(0,Ee.A)(function*(l,n,i){const s=l.v_.shift(),u=ge.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Wu(l)})).apply(this,arguments)}function Ku(l,n){return Ef.apply(this,arguments)}function Ef(){return Ef=(0,Ee.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ee.A)(function*(u,p){if(function Xr(l){switch(l){default:return j();case re.CANCELLED:case re.UNKNOWN:case re.DEADLINE_EXCEEDED:case re.RESOURCE_EXHAUSTED:case re.INTERNAL:case re.UNAVAILABLE:case re.UNAUTHENTICATED:return!1;case re.INVALID_ARGUMENT:case re.NOT_FOUND:case re.ALREADY_EXISTS:case re.PERMISSION_DENIED:case re.FAILED_PRECONDITION:case re.ABORTED:case re.OUT_OF_RANGE:case re.UNIMPLEMENTED:case re.DATA_LOSS:return!0}}(w=p.code)&&w!==re.ABORTED){const _=u.v_.shift();nu(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Wu(u)}var w}),function s(u,p){return i.apply(this,arguments)})(l,n)),If(l)&&hs(l)}),Ef.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ee.A)(function*(l,n){const i=J(l);i.asyncQueue.verifyOperationInProgress(),He("RemoteStore","RemoteStore received new credentials");const s=Qa(i);i.M_.add(3),yield tu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield kc(i)})).apply(this,arguments)}function dg(l,n){return hg.apply(this,arguments)}function hg(){return(hg=(0,Ee.A)(function*(l,n){const i=J(l);n?(i.M_.delete(2),yield kc(i)):n||(i.M_.add(2),yield tu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function Xu(l){return l.B_||(l.B_=function(i,s,u){const p=J(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ag.bind(null,l),To:pf.bind(null,l),Ao:lg.bind(null,l),h_:dv.bind(null,l)}),l.x_.push(function(){var n=(0,Ee.A)(function*(i){i?(l.B_.t_(),ff(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Lc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function nu(l){return l.k_||(l.k_=function(i,s,u){const p=J(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:my.bind(null,l),Ao:Ku.bind(null,l),R_:vy.bind(null,l),A_:Ya.bind(null,l)}),l.x_.push(function(){var n=(0,Ee.A)(function*(i){i?(l.k_.t_(),yield Wu(l)):(yield l.k_.stop(),l.v_.length>0&&(He("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class fg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new Ge,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,w=new fg(n,i,_,u,p);return w.start(s),w}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Re(re.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function qu(l,n){if(Zt("AsyncQueue",`${n}: ${l}`),ke(l))return new Re(re.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Kt.comparator(i.key,s.key):(i,s)=>Kt.comparator(i.key,s.key),this.keyedMap=xi(),this.sortedSet=new pr(this.comparator)}static emptySet(n){return new oa(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof oa)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new oa;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Qu{constructor(){this.q_=new pr(Kt.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):j():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class ru{constructor(n,i,s,u,p,_,w,k,X){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=k,this.hasCachedResults=X}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(w=>{_.push({type:0,doc:w})}),new ru(n,i,oa.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Jo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new ls(n=>Na(n),Jo),this.onlineState="Unknown",this.z_=new Set}}function Os(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,Ee.A)(function*(l,n){const i=J(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new hv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const w=qu(_,`Initialization of query '${vs(n.query)}' failed`);return void n.onError(w)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Gd(i)})).apply(this,arguments)}function $c(l,n){return iu.apply(this,arguments)}function iu(){return(iu=(0,Ee.A)(function*(l,n){const i=J(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function fv(l,n){const i=J(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const w of _.U_)w.H_(u)&&(s=!0);_.K_=u}}s&&Gd(i)}function pg(l,n,i){const s=J(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Gd(l){l.z_.forEach(n=>{n.next()})}var E,h;(h=E||(E={})).J_="default",h.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new ru(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=ru.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==E.Cache}}class Vt{constructor(n){this.key=n}}class pn{constructor(n){this.key=n}}class On{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Sr(),this.mutatedKeys=Sr(),this.Ia=sl(n),this.Ta=new oa(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Qu,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,w=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,X="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((pe,Oe)=>{const ot=u.get(pe),kt=Bs(this.query,Oe)?Oe:null,hn=!!ot&&this.mutatedKeys.has(ot.key),bn=!!kt&&(kt.hasLocalMutations||this.mutatedKeys.has(kt.key)&&kt.hasCommittedMutations);let vn=!1;ot&&kt?ot.data.isEqual(kt.data)?hn!==bn&&(s.track({type:3,doc:kt}),vn=!0):this.Ra(ot,kt)||(s.track({type:2,doc:kt}),vn=!0,(k&&this.Ia(kt,k)>0||X&&this.Ia(kt,X)<0)&&(w=!0)):!ot&&kt?(s.track({type:0,doc:kt}),vn=!0):ot&&!kt&&(s.track({type:1,doc:ot}),vn=!0,(k||X)&&(w=!0)),vn&&(kt?(_=_.add(kt),p=bn?p.add(pe):p.delete(pe)):(_=_.delete(pe),p=p.delete(pe)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const pe="F"===this.query.limitType?_.last():_.first();_=_.delete(pe.key),p=p.delete(pe.key),s.track({type:1,doc:pe})}return{Ta:_,Aa:s,Xi:w,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((pe,Oe)=>function(kt,hn){const bn=vn=>{switch(vn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return j()}};return bn(kt)-bn(hn)}(pe.type,Oe.type)||this.Ia(pe.doc,Oe.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,X=k!==this.ha;return this.ha=k,0!==_.length||X?{snapshot:new ru(this.query,n.Ta,p,_,n.mutatedKeys,0===k,X,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:w}:{fa:w}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Qu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=Sr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new pn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Vt(s))}),i}pa(n){this.la=n.hs,this.Pa=Sr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return ru.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class ar{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class ni{constructor(n){this.key=n,this.wa=!1}}class Fo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new ls(w=>Na(w),Jo),this.Da=new Map,this.Ca=new Set,this.va=new pr(Kt.comparator),this.Fa=new Map,this.Ma=new Md,this.xa={},this.Oa=new Map,this.Na=gl.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function Ji(l,n){return sa.apply(this,arguments)}function sa(){return(sa=(0,Ee.A)(function*(l,n,i=!0){const s=ec(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield Kd(s,n,i,!0),u})).apply(this,arguments)}function Wd(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,Ee.A)(function*(l,n){const i=ec(l);yield Kd(i,n,!0,!1)})).apply(this,arguments)}function Kd(l,n,i,s){return Yu.apply(this,arguments)}function Yu(){return(Yu=(0,Ee.A)(function*(l,n,i,s){const u=yield function ra(l,n){const i=J(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,de.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new Aa(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,Un(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let w;return s&&(w=yield function Ju(l,n,i,s,u){return Zu.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&qa(l.remoteStore,u),w})).apply(this,arguments)}function Zu(){return Zu=(0,Ee.A)(function*(l,n,i,s,u){l.Ba=(Oe,ot,kt)=>{return(hn=(0,Ee.A)(function*(vn,Jn,vr,lr){let Br=Jn.view.da(vr);Br.Xi&&(Br=yield vl(vn.localStore,Jn.query,!1).then(({documents:Ze})=>Jn.view.da(Ze,Br)));const Ri=lr&&lr.targetChanges.get(Jn.targetId),ri=lr&&null!=lr.targetMismatches.get(Jn.targetId),Dt=Jn.view.applyChanges(Br,vn.isPrimaryClient,Ri,ri);return Eg(vn,Jn.targetId,Dt.fa),Dt.snapshot}),function bn(vn,Jn,vr,lr){return hn.apply(this,arguments)})(l,Oe,ot,kt);var hn};const p=yield vl(l.localStore,n,!0),_=new On(n,p.hs),w=_.da(p.documents),k=wi.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),X=_.applyChanges(w,l.isPrimaryClient,k);Eg(l,i,X.fa);const pe=new ar(n,i,_);return l.ba.set(n,pe),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),X.snapshot}),Zu.apply(this,arguments)}function Tf(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ee.A)(function*(l,n,i){const s=J(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!Jo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield ia(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&Yi(s.remoteStore,u.targetId),Yd(s,u.targetId)}).catch(Zr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Df(l,n){return Xd.apply(this,arguments)}function Xd(){return(Xd=(0,Ee.A)(function*(l,n){const i=J(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),Yi(i.remoteStore,s.targetId))})).apply(this,arguments)}function Qd(){return(Qd=(0,Ee.A)(function*(l,n,i){const s=function Bc(l){const n=J(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=pv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=gv.bind(null,n),n}(l);try{const u=yield function(_,w){const k=J(_),X=en.now(),pe=w.reduce((kt,hn)=>kt.add(hn.key),Sr());let Oe,ot;return k.persistence.runTransaction("Locally write mutations","readwrite",kt=>{let hn=cr(),bn=Sr();return k.os.getEntries(kt,pe).next(vn=>{hn=vn,hn.forEach((Jn,vr)=>{vr.isValidDocument()||(bn=bn.add(Jn))})}).next(()=>k.localDocuments.getOverlayedDocuments(kt,hn)).next(vn=>{Oe=vn;const Jn=[];for(const vr of w){const lr=pc(vr,Oe.get(vr.key).overlayedDocument);null!=lr&&Jn.push(new lo(vr.key,lr,Ur(lr.value.mapValue),Ni.exists(!0)))}return k.mutationQueue.addMutationBatch(kt,X,Jn,w)}).next(vn=>{ot=vn;const Jn=vn.applyToLocalDocumentSet(Oe,bn);return k.documentOverlayCache.saveOverlays(kt,vn.batchId,Jn)})}).then(()=>({batchId:ot.batchId,changes:ro(Oe)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,k){let X=_.xa[_.currentUser.toKey()];X||(X=new pr(Xe)),X=X.insert(w,k),_.xa[_.currentUser.toKey()]=X}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const p=qu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function gg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,Ee.A)(function*(l,n){const i=J(l);try{const s=yield function og(l,n){const i=J(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const w=[];n.targetChanges.forEach((pe,Oe)=>{const ot=u.get(Oe);if(!ot)return;w.push(i.Qr.removeMatchingKeys(p,pe.removedDocuments,Oe).next(()=>i.Qr.addMatchingKeys(p,pe.addedDocuments,Oe)));let kt=ot.withSequenceNumber(p.currentSequenceNumber);var bn,vn,Jn;null!==n.targetMismatches.get(Oe)?kt=kt.withResumeToken(li.EMPTY_BYTE_STRING,on.min()).withLastLimboFreeSnapshotVersion(on.min()):pe.resumeToken.approximateByteSize()>0&&(kt=kt.withResumeToken(pe.resumeToken,s)),u=u.insert(Oe,kt),vn=kt,Jn=pe,(0===(bn=ot).resumeToken.approximateByteSize()||vn.snapshotVersion.toMicroseconds()-bn.snapshotVersion.toMicroseconds()>=3e8||Jn.addedDocuments.size+Jn.modifiedDocuments.size+Jn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(p,kt))});let k=cr(),X=Sr();if(n.documentUpdates.forEach(pe=>{n.resolvedLimboDocuments.has(pe)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(p,pe))}),w.push(function $u(l,n,i){let s=Sr(),u=Sr();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=cr();return i.forEach((w,k)=>{const X=p.get(w);k.isFoundDocument()!==X.isFoundDocument()&&(u=u.add(w)),k.isNoDocument()&&k.version.isEqual(on.min())?(n.removeEntry(w,k.readTime),_=_.insert(w,k)):!X.isValidDocument()||k.version.compareTo(X.version)>0||0===k.version.compareTo(X.version)&&X.hasPendingWrites?(n.addEntry(k),_=_.insert(w,k)):He("LocalStore","Ignoring outdated watch update for ",w,". Current version:",X.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(pe=>{k=pe.cs,X=pe.ls})),!s.isEqual(on.min())){const pe=i.Qr.getLastRemoteSnapshotVersion(p).next(Oe=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));w.push(pe)}return de.waitFor(w).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,X)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(W(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?W(_.wa):u.removedDocuments.size>0&&(W(_.wa),_.wa=!1))}),yield Dl(i,s,n)}catch(s){yield Zr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=J(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const w=_.view.j_(n);w.snapshot&&u.push(w.snapshot)}),function(_,w){const k=J(_);k.onlineState=w;let X=!1;k.queries.forEach((pe,Oe)=>{for(const ot of Oe.U_)ot.j_(w)&&(X=!0)}),X&&Gd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,Ee.A)(function*(l,n,i){const s=J(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new pr(Kt.comparator);_=_.insert(p,Tr.newNoDocument(p,on.min()));const w=Sr().add(p),k=new Gi(on.min(),new Map,new pr(Xe),_,w);yield gg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),mv(s)}else yield ia(s.localStore,n,!1).then(()=>Yd(s,n,i)).catch(Zr)})).apply(this,arguments)}function pv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,Ee.A)(function*(l,n){const i=J(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=J(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(w,k,X,pe){const Oe=X.batch,ot=Oe.keys();let kt=de.resolve();return ot.forEach(hn=>{kt=kt.next(()=>pe.getEntry(k,hn)).next(bn=>{const vn=X.docVersions.get(hn);W(null!==vn),bn.version.compareTo(vn)<0&&(Oe.applyToRemoteDocument(bn,X),bn.isValidDocument()&&(bn.setReadTime(X.commitVersion),pe.addEntry(bn)))})}),kt.next(()=>w.mutationQueue.removeMutationBatch(k,Oe))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(w){let k=Sr();for(let X=0;X0&&(k=k.add(w.batch.mutations[X].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),yg(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Dl(i,u)}catch(u){yield Zr(u)}})).apply(this,arguments)}function gv(l,n,i){return vg.apply(this,arguments)}function vg(){return(vg=(0,Ee.A)(function*(l,n,i){const s=J(l);try{const u=yield function(_,w){const k=J(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",X=>{let pe;return k.mutationQueue.lookupMutationBatch(X,w).next(Oe=>(W(null!==Oe),pe=Oe.keys(),k.mutationQueue.removeMutationBatch(X,Oe))).next(()=>k.mutationQueue.performConsistencyCheck(X)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(X,pe,w)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(X,pe)).next(()=>k.localDocuments.getDocuments(X,pe))})}(s.localStore,n);Mf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Zr(u)}})).apply(this,arguments)}function yg(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=J(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Yd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ig(l,s)})}function Ig(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(Yi(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),mv(l))}function Eg(l,n,i){for(const s of i)s instanceof Vt?(l.Ma.addReference(s.key,n),yy(l,s)):s instanceof pn?(He("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ig(l,s.key)):j()}function yy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(He("SyncEngine","New document in limbo: "+i),l.Ca.add(s),mv(l))}function mv(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(X=>{if((X||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,X&&!X.fromCache?"current":"not-current"),X){u.push(X);const pe=Si.Ki(k.targetId,X);p.push(pe)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ee.A)(function*(X,pe){const Oe=J(X);try{yield Oe.persistence.runTransaction("notifyLocalViewChanges","readwrite",ot=>de.forEach(pe,kt=>de.forEach(kt.qi,hn=>Oe.persistence.referenceDelegate.addReference(ot,kt.targetId,hn)).next(()=>de.forEach(kt.Qi,hn=>Oe.persistence.referenceDelegate.removeReference(ot,kt.targetId,hn)))))}catch(ot){if(!ke(ot))throw ot;He("LocalStore","Failed to update sequence numbers: "+ot)}for(const ot of pe){const kt=ot.targetId;if(!ot.fromCache){const hn=Oe.ns.get(kt),vn=hn.withLastLimboFreeSnapshotVersion(hn.snapshotVersion);Oe.ns=Oe.ns.insert(kt,vn)}}}),function k(X,pe){return w.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Ag(l,n){return Cg.apply(this,arguments)}function Cg(){return(Cg=(0,Ee.A)(function*(l,n){const i=J(l);if(!i.currentUser.isEqual(n)){He("SyncEngine","User change. New user:",n.toKey());const s=yield Od(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(w=>{w.forEach(k=>{k.reject(new Re(re.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Dl(i,s.us)}var p})).apply(this,arguments)}function au(l,n){const i=J(l),s=i.Fa.get(n);if(s&&s.wa)return Sr().add(s.key);{let u=Sr();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const w=i.ba.get(_);u=u.unionWith(w.view.Ea)}return u}}function ec(l){const n=J(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=gg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=au.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=fv.bind(null,n.eventManager),n.Sa.ka=pg.bind(null,n.eventManager),n}class Ja{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,Ee.A)(function*(){i.serializer=Oc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,Ee.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Za{initialize(n,i){var s=this;return(0,Ee.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>mg(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Ag.bind(null,s.syncEngine),yield dg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Vd(n.databaseInfo);return new sg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>mg(this.syncEngine,i,0),w=Ld.D()?new Ld:new lf,new Cl(s,u,p,_,w);var s,u,p,_,w}createSyncEngine(n,i){return function(u,p,_,w,k,X,pe){const Oe=new Fo(u,p,_,w,k,X);return pe&&(Oe.La=!0),Oe}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,Ee.A)(function*(){var i,s;yield(s=(0,Ee.A)(function*(p){const _=J(p);He("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield tu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Hc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):Zt("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Dy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=se.UNAUTHENTICATED,this.clientId=rr.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ee.A)(function*(w){He("FirestoreClient","Received user=",w.uid),yield p.authCredentialListener(w),p.user=w});return function(w){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(He("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Re(re.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Ge;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,Ee.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=qu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Nf(l,n){return rh.apply(this,arguments)}function rh(){return rh=(0,Ee.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),He("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,Ee.A)(function*(p){s.isEqual(p)||(yield Od(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),rh.apply(this,arguments)}function Of(l,n){return wg.apply(this,arguments)}function wg(){return(wg=(0,Ee.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function tc(l){return kf.apply(this,arguments)}(l);He("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>cg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>cg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,Ee.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){He("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Nf(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Cv(l){return"FirebaseError"===l.name?l.code===re.FAILED_PRECONDITION||l.code===re.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;tt("Error using user provided cache. Falling back to memory cache: "+i),yield Nf(l,new Ja)}}else He("FirestoreClient","Using default OfflineComponentProvider"),yield Nf(l,new Ja);return l._offlineComponents})).apply(this,arguments)}function Gc(l){return Sg.apply(this,arguments)}function Sg(){return(Sg=(0,Ee.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(He("FirestoreClient","Using user provided OnlineComponentProvider"),yield Of(l,l._uninitializedComponentsProvider._online)):(He("FirestoreClient","Using default OnlineComponentProvider"),yield Of(l,new Za))),l._onlineComponents})).apply(this,arguments)}function uu(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,Ee.A)(function*(l){const n=yield Gc(l),i=n.eventManager;return i.onListen=Ji.bind(null,n.syncEngine),i.onUnlisten=Tf.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Wd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Df.bind(null,n.syncEngine),i})).apply(this,arguments)}function ah(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Uf(l,n,i){if(!i)throw new Re(re.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Og(l){if(!Kt.isDocumentKey(l))throw new Re(re.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function kg(l){if(Kt.isDocumentKey(l))throw new Re(re.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function $f(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":j()}function hi(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Re(re.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=$f(l);throw new Re(re.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Rv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Re(re.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Re(re.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function wv(l,n,i,s){if(!0===n&&!0===s)throw new Re(re.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=ah(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Re(re.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Re(re.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Re(re.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class lh{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Rv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Re(re.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Re(re.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Rv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new yn;switch(s.type){case"firstParty":return new qn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Re(re.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(He("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class po{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new po(this.firestore,n,this._query)}}class go{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new bl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new go(this.firestore,n,this._key)}}class bl extends po{constructor(n,i,s){super(n,i,_e(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new go(this.firestore,null,new Kt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function oE(l,n,...i){if(l=(0,we.Ku)(l),Uf("collection","path",n),l instanceof lh){const s=Cn.fromString(n,...i);return kg(s),new bl(l,null,s)}{if(!(l instanceof go||l instanceof bl))throw new Re(re.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Cn.fromString(n,...i));return kg(s),new bl(l.firestore,null,s)}}function Ry(l,n,...i){if(l=(0,we.Ku)(l),1===arguments.length&&(n=rr.newId()),Uf("doc","path",n),l instanceof lh){const s=Cn.fromString(n,...i);return Og(s),new go(l,null,new Kt(s))}{if(!(l instanceof go||l instanceof bl))throw new Re(re.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Cn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Kt(s))}}class My{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new eu(this,"async_queue_retry"),this.hu=()=>{const i=Al();i&&He("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Al();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Al();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new Ge;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,Ee.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!ke(i))throw i;He("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,Zt("INTERNAL UNHANDLED ERROR: ",function(_){let w=_.message||"";return _.stack&&(w=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),w}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=fg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&j()}verifyOperationInProgress(){}du(){var n=this;return(0,Ee.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class Oi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new My,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Vg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,te.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,te.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,we.yU)("firestore");p&&function cu(l,n,i,s={}){var u;const p=(l=hi(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&tt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let w,k;if("string"==typeof s.mockUserToken)w=s.mockUserToken,k=se.MOCK_USER;else{w=(0,we.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const X=s.mockUserToken.sub||s.mockUserToken.user_id;if(!X)throw new Re(re.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new se(X)}l._authCredentials=new rn(new Jt(w,k))}}(u,...p)}return u}function to(l){return l._firestoreClient||Vg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Vg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,k,l._persistenceKey,(pe=u).host,pe.ssl,pe.experimentalForceLongPolling,pe.experimentalAutoDetectLongPolling,ah(pe.experimentalLongPollingOptions),pe.useFetchStreams));var k,pe;l._firestoreClient=new Dy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class nc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new nc(li.fromBase64String(n))}catch(i){throw new Re(re.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(li.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class hu{constructor(...n){for(let i=0;i90)throw new Re(re.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Re(re.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return Xe(this._lat,n._lat)||Xe(this._long,n._long)}}const Nv=/^__.*__$/;class Bf{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ms(n,this.data,i,this.fieldTransforms)}}class Ov{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new lo(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw j()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(Oe.field))}else k=null,X=_.fieldTransforms;return new Bf(new Rn(w),k,X)}class Qc extends Xc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof Qc}}function Sa(l,n){if(Lv(l=(0,we.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof Xc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const w of s){let k=Sa(w,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,we.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return cl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=en.fromDate(s);return{timestampValue:Ro(u.serializer,p)}}if(s instanceof en){const p=new en(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Ro(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof nc)return{bytesValue:Gs(u.serializer,s._byteString)};if(s instanceof go){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:_a(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${$f(s)}`)}(l,n)}function Fv(l,n){const i={};return Er(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Wr(l,(s,u)=>{const p=Sa(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Lv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof en||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof Xc)}function Gg(l,n,i){if(!Lv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=$f(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,we.Ku)(n))instanceof hu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Vy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Vy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new hu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let w=`Function ${n}() called with invalid data`;i&&(w+=" (via `toFirestore()`)"),w+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Re(re.INVALID_ARGUMENT,w+l+k)}function Vv(l,n){return l.some(i=>i.isEqual(n))}class hh{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new go(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new Uy(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(Jc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Uy extends hh{data(){return super.data()}}function Jc(l,n){return"string"==typeof n?Gf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class Xg{convertValue(n,i="none"){switch(q(n)){case 0:return null;case 1:return n.booleanValue;case 2:return _i(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(Yn(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw j()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return Wr(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(_i(n.latitude),_i(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=To(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Do(n));default:return null}}convertTimestamp(n){const i=Kr(n);return new en(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Cn.fromString(n);W(Td(s));const u=new bo(s.get(1),s.get(3)),p=new Kt(s.popFirst(5));return u.isEqual(i)||Zt(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Sl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class oc extends hh{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new td(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(Jc("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class td extends oc{data(n={}){return super.data(n)}}class Rl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Sl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new td(this._firestore,this._userDataWriter,s.key,s,new Sl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Re(re.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(w=>({type:"added",doc:new td(u._firestore,u._userDataWriter,w.doc.key,w.doc,new Sl(u._snapshot.mutatedKeys.has(w.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(w=>p||3!==w.type).map(w=>{const k=new td(u._firestore,u._userDataWriter,w.doc.key,w.doc,new Sl(u._snapshot.mutatedKeys.has(w.doc.key),u._snapshot.fromCache),u.query.converter);let X=-1,pe=-1;return 0!==w.type&&(X=_.indexOf(w.doc.key),_=_.delete(w.doc.key)),1!==w.type&&(_=_.add(w.doc),pe=_.indexOf(w.doc.key)),{type:Ky(w.type),doc:k,oldIndex:X,newIndex:pe}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function Ky(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return j()}}function jv(l){l=hi(l,go);const n=hi(l.firestore,Oi);return function sh(l,n,i={}){const s=new Ge;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(p,_,w,k,X){const pe=new Hc({next:ot=>{_.enqueueAndForget(()=>$c(p,Oe));const kt=ot.docs.has(w);!kt&&ot.fromCache?X.reject(new Re(re.UNAVAILABLE,"Failed to get document because the client is offline.")):kt&&ot.fromCache&&k&&"server"===k.source?X.reject(new Re(re.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):X.resolve(ot)},error:ot=>X.reject(ot)}),Oe=new v(_e(w.path),pe,{includeMetadataChanges:!0,ra:!0});return Os(p,Oe)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(to(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new fu(l);return new oc(l,u,n._key,s,new Sl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class fu extends Xg{constructor(n){super(),this.firestore=n}convertBytes(n){return new nc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new go(this.firestore,null,i)}}function zv(l){l=hi(l,po);const n=hi(l.firestore,Oi),i=to(n),s=new fu(n);return function $y(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Re(re.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function xg(l,n,i={}){const s=new Ge;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(p,_,w,k,X){const pe=new Hc({next:ot=>{_.enqueueAndForget(()=>$c(p,Oe)),ot.fromCache&&"server"===k.source?X.reject(new Re(re.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):X.resolve(ot)},error:ot=>X.reject(ot)}),Oe=new v(w,pe,{includeMetadataChanges:!0,ra:!0});return Os(p,Oe)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new Rl(n,s,l,u))}function Jg(l,n,i){l=hi(l,go);const s=hi(l.firestore,Oi),u=function ph(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return rd(s,[dh(rc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ni.none())])}function Xy(l,n,i,...s){l=hi(l,go);const u=hi(l.firestore,Oi),p=rc(u);let _;return _="string"==typeof(n=(0,we.Ku)(n))||n instanceof hu?function kv(l,n,i,s,u,p){const _=l.Fu(1,n,i),w=[Yc(n,s,i)],k=[u];if(p.length%2!=0)throw new Re(re.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let ot=0;ot=0;--ot)if(!Vv(X,w[ot])){const kt=w[ot];let hn=k[ot];hn=(0,we.Ku)(hn);const bn=_.Su(kt);if(hn instanceof Qc)X.push(kt);else{const vn=Sa(hn,bn);null!=vn&&(X.push(kt),pe.set(kt,vn))}}const Oe=new vi(X);return new Ov(pe,Oe,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Gg("Data must be an object, but it was:",u,s);const p=[],_=Rn.empty();Wr(s,(k,X)=>{const pe=Gf(n,k,i);X=(0,we.Ku)(X);const Oe=u.Su(pe);if(X instanceof Qc)p.push(pe);else{const ot=Sa(X,Oe);null!=ot&&(p.push(pe),_.set(pe,ot))}});const w=new vi(p);return new Ov(_,w,u.fieldTransforms)}(p,"updateDoc",l._key,n),rd(u,[_.toMutation(l._key,Ni.exists(!0))])}function qy(l){return rd(hi(l.firestore,Oi),[new B(l._key,Ni.none())])}function rd(l,n){return function(s,u){const p=new Ge;return s.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function qd(l,n,i){return Qd.apply(this,arguments)}(yield function Rg(l){return Gc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(to(l),n)}!function(n,i=!0){ze=te.MF,(0,te.om)(new qe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),w=new Oi(new Fn(s.getProvider("auth-internal")),new Xn(s.getProvider("app-check-internal")),function(X,pe){if(!Object.prototype.hasOwnProperty.apply(X.options,["projectId"]))throw new Re(re.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new bo(X.options.projectId,pe)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),w._setSettings(p),w},"PUBLIC").setMultipleInstances(!0)),(0,te.KO)(Te,"4.6.3",n),(0,te.KO)(Te,"4.6.3","esm2017")}();class _h{constructor(n){return n}}const tp="firestore",im=new c.nKC("angularfire2.firestore-instances");function c0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new _h(s)}}const d0={provide:class u0{constructor(){return(0,f.CA)(tp)}},deps:[[new c.Xx1,im]]},h0={provide:_h,useFactory:function Yv(l,n){const i=(0,f.lR)(tp,l,n);return i&&new _h(i)},deps:[[new c.Xx1,im],ce.XU]};function Jv(l,...n){return(0,K.KO)("angularfire",f.xv.full,"fst"),(0,c.EmA)([h0,d0,{provide:im,useFactory:c0(l),multi:!0,deps:[c.SKi,c.zZn,f.u0,ce.gL,[new c.Xx1,Le.DF],[new c.Xx1,f.Jv],...n]}])}const m0=(0,f.S3)(oE,!0),v0=(0,f.S3)(qy,!0),sm=(0,f.S3)(Ry,!0),lm=(0,f.S3)(jv,!0),r_=(0,f.S3)(zv,!0),um=(0,f.S3)(uh,!0),R0=(0,f.S3)(Jg,!0),M0=(0,f.S3)(Xy,!0)},9032:(Dn,Ct,x)=>{"use strict";x.d(Ct,{L9:()=>tr,oc:()=>Rt,v_:()=>ke,cw:()=>me});var f=x(5407),c=x(4438),ce=x(7440),Le=x(2214),K=x(467),Ee=x(7852),te=x(1362),qe=x(1076),Je=x(1635),we="@firebase/vertexai-preview",Ae="0.0.2";const je="vertexAI",Ke="us-central1",Et=Ae,lt="gl-js";class mt{constructor(nt,et,Lt,Xt){var cn;this.app=nt,this.options=Xt;const Hn=null==Lt?void 0:Lt.getImmediate({optional:!0}),dn=null==et?void 0:et.getImmediate({optional:!0});this.auth=dn||null,this.appCheck=Hn||null,this.location=(null===(cn=this.options)||void 0===cn?void 0:cn.location)||Ke}_delete(){return Promise.resolve()}}const pt=new qe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var _t=function(ne){return ne.GENERATE_CONTENT="generateContent",ne.STREAM_GENERATE_CONTENT="streamGenerateContent",ne.COUNT_TOKENS="countTokens",ne}(_t||{});class Ne{constructor(nt,et,Lt,Xt,cn){this.model=nt,this.task=et,this.apiSettings=Lt,this.stream=Xt,this.requestOptions=cn}toString(){var nt;let Xt=`${(null===(nt=this.requestOptions)||void 0===nt?void 0:nt.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return Xt+=`/projects/${this.apiSettings.project}`,Xt+=`/locations/${this.apiSettings.location}`,Xt+=`/${this.model}`,Xt+=`:${this.task}`,this.stream&&(Xt+="?alt=sse"),Xt}get fullModelString(){let nt=`projects/${this.apiSettings.project}`;return nt+=`/locations/${this.apiSettings.location}`,nt+=`/${this.model}`,nt}}function be(ne){return Ve.apply(this,arguments)}function Ve(){return(Ve=(0,K.A)(function*(ne){const nt=new Headers;if(nt.append("Content-Type","application/json"),nt.append("x-goog-api-client",function Qe(){const ne=[];return ne.push(`${lt}/${Et}`),ne.push(`fire/${Et}`),ne.join(" ")}()),nt.append("x-goog-api-key",ne.apiSettings.apiKey),ne.apiSettings.getAppCheckToken){const et=yield ne.apiSettings.getAppCheckToken();et&&!et.error&&nt.append("X-Firebase-AppCheck",et.token)}if(ne.apiSettings.getAuthToken){const et=yield ne.apiSettings.getAuthToken();et&&nt.append("Authorization",`Firebase ${et.accessToken}`)}return nt})).apply(this,arguments)}function se(){return(se=(0,K.A)(function*(ne,nt,et,Lt,Xt,cn){const Hn=new Ne(ne,nt,et,Lt,cn);return{url:Hn.toString(),fetchOptions:Object.assign(Object.assign({},Bt(cn)),{method:"POST",headers:yield be(Hn),body:Xt})}})).apply(this,arguments)}function ze(ne,nt,et,Lt,Xt,cn){return gt.apply(this,arguments)}function gt(){return gt=(0,K.A)(function*(ne,nt,et,Lt,Xt,cn){const Hn=new Ne(ne,nt,et,Lt,cn);let dn;try{const _n=yield function Te(ne,nt,et,Lt,Xt,cn){return se.apply(this,arguments)}(ne,nt,et,Lt,Xt,cn);if(dn=yield fetch(_n.url,_n.fetchOptions),!dn.ok){let Qn="";try{const Pr=yield dn.json();Qn=Pr.error.message,Pr.error.details&&(Qn+=` ${JSON.stringify(Pr.error.details)}`)}catch{}throw new Error(`[${dn.status} ${dn.statusText}] ${Qn}`)}}catch(_n){const Qn=_n,Pr=pt.create("fetch-error",{url:Hn.toString(),message:Qn.message});throw Pr.stack=Qn.stack,Pr}return dn}),gt.apply(this,arguments)}function Bt(ne){const nt={};if(null!=ne&&ne.timeout&&(null==ne?void 0:ne.timeout)>=0){const et=new AbortController,Lt=et.signal;setTimeout(()=>et.abort(),ne.timeout),nt.signal=Lt}return nt}const At=["user","model","function","system"];var ie=function(ne){return ne.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ne.STOP="STOP",ne.MAX_TOKENS="MAX_TOKENS",ne.SAFETY="SAFETY",ne.RECITATION="RECITATION",ne.OTHER="OTHER",ne}(ie||{});function Re(ne){return ne.text=()=>{if(ne.candidates&&ne.candidates.length>0){if(ne.candidates.length>1&&console.warn(`This response had ${ne.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),rn(ne.candidates[0]))throw pt.create("response-error",{message:`${Fn(ne)}`,response:ne});return function Ge(ne){var nt,et,Lt,Xt;const cn=[];if(null!==(et=null===(nt=ne.candidates)||void 0===nt?void 0:nt[0].content)&&void 0!==et&&et.parts)for(const Hn of null===(Xt=null===(Lt=ne.candidates)||void 0===Lt?void 0:Lt[0].content)||void 0===Xt?void 0:Xt.parts)Hn.text&&cn.push(Hn.text);return cn.length>0?cn.join(""):""}(ne)}if(ne.promptFeedback)throw pt.create("response-error",{message:`Text not available. ${Fn(ne)}`,response:ne});return""},ne.functionCalls=()=>{if(ne.candidates&&ne.candidates.length>0){if(ne.candidates.length>1&&console.warn(`This response had ${ne.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),rn(ne.candidates[0]))throw pt.create("response-error",{message:`${Fn(ne)}`,response:ne});return function Jt(ne){var nt,et,Lt,Xt;const cn=[];if(null!==(et=null===(nt=ne.candidates)||void 0===nt?void 0:nt[0].content)&&void 0!==et&&et.parts)for(const Hn of null===(Xt=null===(Lt=ne.candidates)||void 0===Lt?void 0:Lt[0].content)||void 0===Xt?void 0:Xt.parts)Hn.functionCall&&cn.push(Hn.functionCall);if(cn.length>0)return cn}(ne)}if(ne.promptFeedback)throw pt.create("response-error",{message:`Function call not available. ${Fn(ne)}`,response:ne})},ne}const yn=[ie.RECITATION,ie.SAFETY];function rn(ne){return!!ne.finishReason&&yn.includes(ne.finishReason)}function Fn(ne){var nt,et,Lt;let Xt="";if(ne.candidates&&0!==ne.candidates.length||!ne.promptFeedback){if(null!==(Lt=ne.candidates)&&void 0!==Lt&&Lt[0]){const cn=ne.candidates[0];rn(cn)&&(Xt+=`Candidate was blocked due to ${cn.finishReason}`,cn.finishMessage&&(Xt+=`: ${cn.finishMessage}`))}}else Xt+="Response was blocked",!(null===(nt=ne.promptFeedback)||void 0===nt)&&nt.blockReason&&(Xt+=` due to ${ne.promptFeedback.blockReason}`),null!==(et=ne.promptFeedback)&&void 0!==et&&et.blockReasonMessage&&(Xt+=`: ${ne.promptFeedback.blockReasonMessage}`);return Xt}const Nn=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function Zn(ne){return Xn.apply(this,arguments)}function Xn(){return(Xn=(0,K.A)(function*(ne){const nt=[],et=ne.getReader();for(;;){const{done:Lt,value:Xt}=yield et.read();if(Lt)return Re(rr(nt));nt.push(Xt)}})).apply(this,arguments)}function wn(ne){return(0,Je.AQ)(this,arguments,function*(){const et=ne.getReader();for(;;){const{value:Lt,done:Xt}=yield(0,Je.N3)(et.read());if(Xt)break;yield yield(0,Je.N3)(Re(Lt))}})}function rr(ne){const nt=ne[ne.length-1],et={promptFeedback:null==nt?void 0:nt.promptFeedback};for(const Lt of ne)if(Lt.candidates)for(const Xt of Lt.candidates){const cn=Xt.index;if(et.candidates||(et.candidates=[]),et.candidates[cn]||(et.candidates[cn]={index:Xt.index}),et.candidates[cn].citationMetadata=Xt.citationMetadata,et.candidates[cn].finishReason=Xt.finishReason,et.candidates[cn].finishMessage=Xt.finishMessage,et.candidates[cn].safetyRatings=Xt.safetyRatings,Xt.content&&Xt.content.parts){et.candidates[cn].content||(et.candidates[cn].content={role:Xt.content.role||"user",parts:[]});const Hn={};for(const dn of Xt.content.parts)dn.text&&(Hn.text=dn.text),dn.functionCall&&(Hn.functionCall=dn.functionCall),0===Object.keys(Hn).length&&(Hn.text=""),et.candidates[cn].content.parts.push(Hn)}}return et}function Xe(ne,nt,et,Lt){return wt.apply(this,arguments)}function wt(){return(wt=(0,K.A)(function*(ne,nt,et,Lt){return function qn(ne){const et=function or(ne){const nt=ne.getReader();return new ReadableStream({start(Lt){let Xt="";return function cn(){return nt.read().then(({value:Hn,done:dn})=>{if(dn)return Xt.trim()?void Lt.error(pt.create("parse-failed",{message:"Failed to parse stream"})):void Lt.close();Xt+=Hn;let Qn,_n=Xt.match(Nn);for(;_n;){try{Qn=JSON.parse(_n[1])}catch{return void Lt.error(pt.create("parse-failed",{message:`Error parsing JSON response: "${_n[1]}"`}))}Lt.enqueue(Qn),Xt=Xt.substring(_n[0].length),_n=Xt.match(Nn)}return cn()})}()}})}(ne.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Lt,Xt]=et.tee();return{stream:wn(Lt),response:Zn(Xt)}}(yield ze(nt,_t.STREAM_GENERATE_CONTENT,ne,!0,JSON.stringify(et),Lt))})).apply(this,arguments)}function Ft(ne,nt,et,Lt){return en.apply(this,arguments)}function en(){return(en=(0,K.A)(function*(ne,nt,et,Lt){return{response:Re(yield(yield ze(nt,_t.GENERATE_CONTENT,ne,!1,JSON.stringify(et),Lt)).json())}})).apply(this,arguments)}function on(ne){if(null!=ne){if("string"==typeof ne)return{role:"system",parts:[{text:ne}]};if(ne.text)return{role:"system",parts:[ne]};if(ne.parts)return ne.role?ne:{role:"system",parts:ne.parts}}}function Ar(ne){let nt=[];if("string"==typeof ne)nt=[{text:ne}];else for(const et of ne)nt.push("string"==typeof et?{text:et}:et);return function Cn(ne){const nt={role:"user",parts:[]},et={role:"function",parts:[]};let Lt=!1,Xt=!1;for(const cn of ne)"functionResponse"in cn?(et.parts.push(cn),Xt=!0):(nt.parts.push(cn),Lt=!0);if(Lt&&Xt)throw pt.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Lt&&!Xt)throw pt.create("invalid-content",{message:"No content is provided for sending chat message."});return Lt?nt:et}(nt)}function An(ne){let nt;return nt=ne.contents?ne:{contents:[Ar(ne)]},ne.systemInstruction&&(nt.systemInstruction=on(ne.systemInstruction)),nt}const sn=["text","inlineData","functionCall","functionResponse"],Kt={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},fr={user:["model"],function:["model"],model:["user","function"],system:[]},Lr="SILENT_ERROR";class kr{constructor(nt,et,Lt,Xt){this.model=et,this.params=Lt,this.requestOptions=Xt,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=nt,null!=Lt&&Lt.history&&(function Rr(ne){let nt=null;for(const et of ne){const{role:Lt,parts:Xt}=et;if(!nt&&"user"!==Lt)throw pt.create("invalid-content",{message:`First content should be with role 'user', got ${Lt}`});if(!At.includes(Lt))throw pt.create("invalid-content",{message:`Each item should include role field. Got ${Lt} but valid roles are: ${JSON.stringify(At)}`});if(!Array.isArray(Xt))throw pt.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===Xt.length)throw pt.create("invalid-content",{message:"Each Content should have at least one part"});const cn={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const dn of Xt)for(const _n of sn)_n in dn&&(cn[_n]+=1);const Hn=Kt[Lt];for(const dn of sn)if(!Hn.includes(dn)&&cn[dn]>0)throw pt.create("invalid-content",{message:`Content with role '${Lt}' can't contain '${dn}' part`});if(nt&&!fr[Lt].includes(nt.role))throw pt.create("invalid-content",{message:`Content with role '${Lt}' can't follow '${nt.role}'. Valid previous roles: ${JSON.stringify(fr)}`});nt=et}}(Lt.history),this._history=Lt.history)}getHistory(){var nt=this;return(0,K.A)(function*(){return yield nt._sendPromise,nt._history})()}sendMessage(nt){var et=this;return(0,K.A)(function*(){var Lt,Xt,cn,Hn,dn;yield et._sendPromise;const _n=Ar(nt),Qn={safetySettings:null===(Lt=et.params)||void 0===Lt?void 0:Lt.safetySettings,generationConfig:null===(Xt=et.params)||void 0===Xt?void 0:Xt.generationConfig,tools:null===(cn=et.params)||void 0===cn?void 0:cn.tools,toolConfig:null===(Hn=et.params)||void 0===Hn?void 0:Hn.toolConfig,systemInstruction:null===(dn=et.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...et._history,_n]};let Pr={};return et._sendPromise=et._sendPromise.then(()=>Ft(et._apiSettings,et.model,Qn,et.requestOptions)).then(yr=>{var Vr,gi;if(yr.response.candidates&&yr.response.candidates.length>0){et._history.push(_n);const ir={parts:(null===(Vr=yr.response.candidates)||void 0===Vr?void 0:Vr[0].content.parts)||[],role:(null===(gi=yr.response.candidates)||void 0===gi?void 0:gi[0].content.role)||"model"};et._history.push(ir)}else{const ir=Fn(yr.response);ir&&console.warn(`sendMessage() was unsuccessful. ${ir}. Inspect response object for details.`)}Pr=yr}),yield et._sendPromise,Pr})()}sendMessageStream(nt){var et=this;return(0,K.A)(function*(){var Lt,Xt,cn,Hn,dn;yield et._sendPromise;const _n=Ar(nt),Qn={safetySettings:null===(Lt=et.params)||void 0===Lt?void 0:Lt.safetySettings,generationConfig:null===(Xt=et.params)||void 0===Xt?void 0:Xt.generationConfig,tools:null===(cn=et.params)||void 0===cn?void 0:cn.tools,toolConfig:null===(Hn=et.params)||void 0===Hn?void 0:Hn.toolConfig,systemInstruction:null===(dn=et.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...et._history,_n]},Pr=Xe(et._apiSettings,et.model,Qn,et.requestOptions);return et._sendPromise=et._sendPromise.then(()=>Pr).catch(yr=>{throw new Error(Lr)}).then(yr=>yr.response).then(yr=>{if(yr.candidates&&yr.candidates.length>0){et._history.push(_n);const Vr=Object.assign({},yr.candidates[0].content);Vr.role||(Vr.role="model"),et._history.push(Vr)}else{const Vr=Fn(yr);Vr&&console.warn(`sendMessageStream() was unsuccessful. ${Vr}. Inspect response object for details.`)}}).catch(yr=>{yr.message!==Lr&&console.error(yr)}),Pr})()}}function jn(){return(jn=(0,K.A)(function*(ne,nt,et,Lt){return(yield ze(nt,_t.COUNT_TOKENS,ne,!1,JSON.stringify(et),Lt)).json()})).apply(this,arguments)}class ii{constructor(nt,et,Lt){var Xt,cn,Hn,dn;if(null===(cn=null===(Xt=nt.app)||void 0===Xt?void 0:Xt.options)||void 0===cn||!cn.apiKey)throw pt.create("no-api-key");if(null===(dn=null===(Hn=nt.app)||void 0===Hn?void 0:Hn.options)||void 0===dn||!dn.projectId)throw pt.create("no-project-id");this._apiSettings={apiKey:nt.app.options.apiKey,project:nt.app.options.projectId,location:nt.location},nt.appCheck&&(this._apiSettings.getAppCheckToken=()=>nt.appCheck.getToken()),nt.auth&&(this._apiSettings.getAuthToken=()=>nt.auth.getToken()),this.model=et.model.includes("/")?et.model.startsWith("models/")?`publishers/google/${et.model}`:et.model:`publishers/google/models/${et.model}`,this.generationConfig=et.generationConfig||{},this.safetySettings=et.safetySettings||[],this.tools=et.tools,this.toolConfig=et.toolConfig,this.systemInstruction=on(et.systemInstruction),this.requestOptions=Lt||{}}generateContent(nt){var et=this;return(0,K.A)(function*(){const Lt=An(nt);return Ft(et._apiSettings,et.model,Object.assign({generationConfig:et.generationConfig,safetySettings:et.safetySettings,tools:et.tools,toolConfig:et.toolConfig,systemInstruction:et.systemInstruction},Lt),et.requestOptions)})()}generateContentStream(nt){var et=this;return(0,K.A)(function*(){const Lt=An(nt);return Xe(et._apiSettings,et.model,Object.assign({generationConfig:et.generationConfig,safetySettings:et.safetySettings,tools:et.tools,toolConfig:et.toolConfig,systemInstruction:et.systemInstruction},Lt),et.requestOptions)})()}startChat(nt){return new kr(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},nt),this.requestOptions)}countTokens(nt){var et=this;return(0,K.A)(function*(){const Lt=An(nt);return function Cr(ne,nt,et,Lt){return jn.apply(this,arguments)}(et._apiSettings,et.model,Lt)})()}}function er(ne=(0,Ee.Sx)(),nt){return ne=(0,qe.Ku)(ne),(0,Ee.j6)(ne,je).getImmediate({identifier:(null==nt?void 0:nt.location)||Ke})}function Mn(ne,nt,et){if(!nt.model)throw pt.create("no-model");return new ii(ne,nt,et)}!function Mr(){(0,Ee.om)(new te.uA(je,(ne,{instanceIdentifier:nt})=>{const et=ne.getProvider("app").getImmediate(),Lt=ne.getProvider("auth-internal"),Xt=ne.getProvider("app-check-internal");return new mt(et,Lt,Xt,{location:nt})},"PUBLIC").setMultipleInstances(!0)),(0,Ee.KO)(we,Ae),(0,Ee.KO)(we,Ae,"esm2017")}();class tr{constructor(nt){return nt}}const _r="vertexai",zr=new c.nKC("angularfire2.vertexai-instances");function Ye(ne){return(nt,et)=>{const Lt=nt.runOutsideAngular(()=>ne(et));return new tr(Lt)}}const yt={provide:class Ii{constructor(){return(0,f.CA)(_r)}},deps:[[new c.Xx1,zr]]},st={provide:tr,useFactory:function de(ne,nt){const et=(0,f.lR)(_r,ne,nt);return et&&new tr(et)},deps:[[new c.Xx1,zr],ce.XU]};function me(ne,...nt){return(0,Le.KO)("angularfire",f.xv.full,"vertexai"),(0,c.EmA)([st,yt,{provide:zr,useFactory:Ye(ne),multi:!0,deps:[c.SKi,c.zZn,f.u0,ce.gL,[new c.Xx1,f.Jv],...nt]}])}const ke=(0,f.S3)(er,!0),Rt=(0,f.S3)(Mn,!0)},5407:(Dn,Ct,x)=>{"use strict";x.d(Ct,{xv:()=>it,u0:()=>be,Jv:()=>xt,CA:()=>mt,lR:()=>lt,S3:()=>Zt});var f=x(9842),c=x(4438),ce=x(2214),Le=x(6780),Ee=x(9687);const qe=new class te extends Ee.q{}(class K extends Le.R{constructor(De,j){super(De,j),this.scheduler=De,this.work=j}schedule(De,j=0){return j>0?super.schedule(De,j):(this.delay=j,this.state=De,this.scheduler.flush(this),this)}execute(De,j){return j>0||this.closed?super.execute(De,j):this._execute(De,j)}requestAsyncId(De,j,W=0){return null!=W&&W>0||null==W&&this.delay>0?super.requestAsyncId(De,j,W):(De.flush(this),0)}});var we=x(3236),Ae=x(1985),je=x(8141),Ke=x(6745),Be=x(941);const it=new c.RxE("ANGULARFIRE2_VERSION");function lt(tt,De,j){if(De){if(1===De.length)return De[0];const J=De.filter(re=>re.app===j);if(1===J.length)return J[0]}return j.container.getProvider(tt).getImmediate({optional:!0})}const mt=(tt,De)=>{const j=De?[De]:(0,ce.Dk)(),W=[];return j.forEach(ie=>{ie.container.getProvider(tt).instances.forEach(re=>{W.includes(re)||W.push(re)})}),W};class xt{constructor(){return mt(pt)}}const pt="app-check";function _t(){}class Ne{constructor(De,j=qe){(0,f.A)(this,"zone",void 0),(0,f.A)(this,"delegate",void 0),this.zone=De,this.delegate=j}now(){return this.delegate.now()}schedule(De,j,W){const ie=this.zone;return this.delegate.schedule(function(re){ie.runGuarded(()=>{De.apply(this,[re])})},j,W)}}class Qe{constructor(De){(0,f.A)(this,"zone",void 0),(0,f.A)(this,"task",null),this.zone=De}call(De,j){const W=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",_t,{},_t,_t)),j.pipe((0,je.M)({next:W,complete:W,error:W})).subscribe(De).add(W)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let be=(()=>{var tt;class De{constructor(W){(0,f.A)(this,"ngZone",void 0),(0,f.A)(this,"outsideAngular",void 0),(0,f.A)(this,"insideAngular",void 0),this.ngZone=W,this.outsideAngular=W.runOutsideAngular(()=>new Ne(Zone.current)),this.insideAngular=W.run(()=>new Ne(Zone.current,we.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return tt=De,(0,f.A)(De,"\u0275fac",function(W){return new(W||tt)(c.KVO(c.SKi))}),(0,f.A)(De,"\u0275prov",c.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"})),De})();function Ve(){const tt=globalThis.\u0275AngularFireScheduler;if(!tt)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return tt}function se(tt){return Ve().ngZone.run(()=>tt())}function Bt(tt){return function At(tt){return function(j){return(j=j.lift(new Qe(tt.ngZone))).pipe((0,Ke._)(tt.outsideAngular),(0,Be.Q)(tt.insideAngular))}}(Ve())(tt)}const He=(tt,De)=>function(){const W=arguments;return De&&setTimeout(()=>{"scheduled"===De.state&&De.invoke()},10),se(()=>tt.apply(void 0,W))},Zt=(tt,De)=>function(){let j;const W=arguments;for(let J=0;JZone.current.scheduleMacroTask("firebaseZoneBlock",_t,{},_t,_t)))),W[J]=He(W[J],j));const ie=function Te(tt){return Ve().ngZone.runOutsideAngular(()=>tt())}(()=>tt.apply(this,W));if(!De){if(ie instanceof Ae.c){const J=Ve();return ie.pipe((0,Ke._)(J.outsideAngular),(0,Be.Q)(J.insideAngular))}return se(()=>ie)}return ie instanceof Ae.c?ie.pipe(Bt):ie instanceof Promise?se(()=>new Promise((J,re)=>ie.then(Re=>se(()=>J(Re)),Re=>se(()=>re(Re))))):"function"==typeof ie&&j?function(){return setTimeout(()=>{j&&"scheduled"===j.state&&j.invoke()},10),ie.apply(this,arguments)}:se(()=>ie)}},4341:(Dn,Ct,x)=>{"use strict";x.d(Ct,{YN:()=>da,zX:()=>Ai,VZ:()=>Ko,cz:()=>be,kq:()=>it,vO:()=>Ft,BC:()=>Cn,vS:()=>ur});var f=x(4438),c=x(177),ce=x(8455),Le=x(1985),K=x(3073),Ee=x(8750),te=x(9326),qe=x(4360),Je=x(6450),we=x(8496),je=x(6354);let Ke=(()=>{var z;class N{constructor(G,Pe){this._renderer=G,this._elementRef=Pe,this.onChange=fn=>{},this.onTouched=()=>{}}setProperty(G,Pe){this._renderer.setProperty(this._elementRef.nativeElement,G,Pe)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(z=N).\u0275fac=function(G){return new(G||z)(f.rXU(f.sFG),f.rXU(f.aKT))},z.\u0275dir=f.FsC({type:z}),N})(),Be=(()=>{var z;class N extends Ke{}return(z=N).\u0275fac=(()=>{let _e;return function(Pe){return(_e||(_e=f.xGo(z)))(Pe||z)}})(),z.\u0275dir=f.FsC({type:z,features:[f.Vt3]}),N})();const it=new f.nKC(""),mt={provide:it,useExisting:(0,f.Rfq)(()=>_t),multi:!0},pt=new f.nKC("");let _t=(()=>{var z;class N extends Ke{constructor(G,Pe,fn){super(G,Pe),this._compositionMode=fn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xt(){const z=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(G){this.setProperty("value",null==G?"":G)}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}}return(z=N).\u0275fac=function(G){return new(G||z)(f.rXU(f.sFG),f.rXU(f.aKT),f.rXU(pt,8))},z.\u0275dir=f.FsC({type:z,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(G,Pe){1&G&&f.bIt("input",function(Un){return Pe._handleInput(Un.target.value)})("blur",function(){return Pe.onTouched()})("compositionstart",function(){return Pe._compositionStart()})("compositionend",function(Un){return Pe._compositionEnd(Un.target.value)})},features:[f.Jv_([mt]),f.Vt3]}),N})();function Ne(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}const be=new f.nKC(""),Ve=new f.nKC("");function j(z){return null}function W(z){return null!=z}function ie(z){return(0,f.jNT)(z)?(0,ce.H)(z):z}function J(z){let N={};return z.forEach(_e=>{N=null!=_e?{...N,..._e}:N}),0===Object.keys(N).length?null:N}function re(z,N){return N.map(_e=>_e(z))}function Ge(z){return z.map(N=>function Re(z){return!z.validate}(N)?N:_e=>N.validate(_e))}function yn(z){return null!=z?function Jt(z){if(!z)return null;const N=z.filter(W);return 0==N.length?null:function(_e){return J(re(_e,N))}}(Ge(z)):null}function Fn(z){return null!=z?function rn(z){if(!z)return null;const N=z.filter(W);return 0==N.length?null:function(_e){return function Ae(...z){const N=(0,te.ms)(z),{args:_e,keys:G}=(0,K.D)(z),Pe=new Le.c(fn=>{const{length:Un}=_e;if(!Un)return void fn.complete();const hr=new Array(Un);let Zi=Un,ao=Un;for(let eo=0;eo{Jo||(Jo=!0,ao--),hr[eo]=Na},()=>Zi--,void 0,()=>{(!Zi||!Jo)&&(ao||fn.next(G?(0,we.e)(G,hr):hr),fn.complete())}))}});return N?Pe.pipe((0,Je.I)(N)):Pe}(re(_e,N).map(ie)).pipe((0,je.T)(J))}}(Ge(z)):null}function Nn(z,N){return null===z?[N]:Array.isArray(z)?[...z,N]:[z,N]}function Xn(z){return z?Array.isArray(z)?z:[z]:[]}function wn(z,N){return Array.isArray(z)?z.includes(N):z===N}function or(z,N){const _e=Xn(N);return Xn(z).forEach(Pe=>{wn(_e,Pe)||_e.push(Pe)}),_e}function rr(z,N){return Xn(N).filter(_e=>!wn(z,_e))}class Xe{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=yn(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=Fn(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 wt extends Xe{get formDirective(){return null}get path(){return null}}class Ft extends Xe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class en{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Cn=(()=>{var z;class N extends en{constructor(G){super(G)}}return(z=N).\u0275fac=function(G){return new(G||z)(f.rXU(Ft,2))},z.\u0275dir=f.FsC({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,Pe){2&G&&f.AVh("ng-untouched",Pe.isUntouched)("ng-touched",Pe.isTouched)("ng-pristine",Pe.isPristine)("ng-dirty",Pe.isDirty)("ng-valid",Pe.isValid)("ng-invalid",Pe.isInvalid)("ng-pending",Pe.isPending)},features:[f.Vt3]}),N})();const de="VALID",Ye="INVALID",yt="PENDING",st="DISABLED";function ne(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}class Lt{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===de}get invalid(){return this.status===Ye}get pending(){return this.status==yt}get disabled(){return this.status===st}get enabled(){return this.status!==st}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(or(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(or(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(rr(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}hasValidator(N){return wn(this._rawValidators,N)}hasAsyncValidator(N){return wn(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=yt,!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=st,this.errors=null,this._forEachChild(G=>{G.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(G=>G(!0))}enable(N={}){const _e=this._parentMarkedDirty(N.onlySelf);this.status=de,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:_e}),this._onDisabledChange.forEach(G=>G(!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===de||this.status===yt)&&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()?st:de}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=yt,this._hasOwnPendingAsyncValidator=!0;const _e=ie(this.asyncValidator(this));this._asyncValidationSubscription=_e.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{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((G,Pe)=>G&&G._find(Pe),this)}getError(N,_e){const G=_e?this.get(_e):this;return G&&G.errors?G.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 f.bkB,this.statusChanges=new f.bkB}_calculateStatus(){return this._allControlsDisabled()?st:this.errors?Ye:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yt)?yt:this._anyControlsHaveStatus(Ye)?Ye:de}_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){ne(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 me(z){return Array.isArray(z)?yn(z):z||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function Rt(z){return Array.isArray(z)?Fn(z):z||null}(this._rawAsyncValidators)}}const Pr=new f.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>yr}),yr="always";function gi(z,N,_e=yr){var G,Pe;(function mi(z,N){const _e=function qn(z){return z._rawValidators}(z);null!==N.validator?z.setValidators(Nn(_e,N.validator)):"function"==typeof _e&&z.setValidators([_e]);const G=function Zn(z){return z._rawAsyncValidators}(z);null!==N.asyncValidator?z.setAsyncValidators(Nn(G,N.asyncValidator)):"function"==typeof G&&z.setAsyncValidators([G]);const Pe=()=>z.updateValueAndValidity();Fi(N._rawValidators,Pe),Fi(N._rawAsyncValidators,Pe)})(z,N),N.valueAccessor.writeValue(z.value),(z.disabled||"always"===_e)&&(null===(G=(Pe=N.valueAccessor).setDisabledState)||void 0===G||G.call(Pe,z.disabled)),function It(z,N){N.valueAccessor.registerOnChange(_e=>{z._pendingValue=_e,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&Tn(z,N)})}(z,N),function fe(z,N){const _e=(G,Pe)=>{N.valueAccessor.writeValue(G),Pe&&N.viewToModelUpdate(G)};z.registerOnChange(_e),N._registerOnDestroy(()=>{z._unregisterOnChange(_e)})}(z,N),function zt(z,N){N.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&Tn(z,N),"submit"!==z.updateOn&&z.markAsTouched()})}(z,N),function Mi(z,N){if(N.valueAccessor.setDisabledState){const _e=G=>{N.valueAccessor.setDisabledState(G)};z.registerOnDisabledChange(_e),N._registerOnDestroy(()=>{z._unregisterOnDisabledChange(_e)})}}(z,N)}function Fi(z,N){z.forEach(_e=>{_e.registerOnValidatorChange&&_e.registerOnValidatorChange(N)})}function Tn(z,N){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function sr(z,N){const _e=z.indexOf(N);_e>-1&&z.splice(_e,1)}function Wr(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}Promise.resolve();const Fr=class extends Lt{constructor(N=null,_e,G){super(function he(z){return(ne(z)?z.validators:z)||null}(_e),function ke(z,N){return(ne(N)?N.asyncValidators:z)||null}(G,_e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(_e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ne(_e)&&(_e.nonNullable||_e.initialValueIsDefault)&&(this.defaultValue=Wr(N)?N.value:N)}setValue(N,_e={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==_e.emitModelToViewChange&&this._onChange.forEach(G=>G(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){sr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){sr(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){Wr(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}},Wo={provide:Ft,useExisting:(0,f.Rfq)(()=>ur)},li=Promise.resolve();let ur=(()=>{var z;class N extends Ft{constructor(G,Pe,fn,Un,hr,Zi){super(),this._changeDetectorRef=hr,this.callSetDisabledState=Zi,this.control=new Fr,this._registered=!1,this.name="",this.update=new f.bkB,this._parent=G,this._setValidators(Pe),this._setAsyncValidators(fn),this.valueAccessor=function $n(z,N){if(!N)return null;let _e,G,Pe;return Array.isArray(N),N.forEach(fn=>{fn.constructor===_t?_e=fn:function qt(z){return Object.getPrototypeOf(z.constructor)===Be}(fn)?G=fn:Pe=fn}),Pe||G||_e||null}(0,Un)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const Pe=G.name.previousValue;this.formDirective.removeControl({name:Pe,path:this._getPath(Pe)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function Gt(z,N){if(!z.hasOwnProperty("model"))return!1;const _e=z.model;return!!_e.isFirstChange()||!Object.is(N,_e.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_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(){gi(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(G){li.then(()=>{var Pe;this.control.setValue(G,{emitViewToModelChange:!1}),null===(Pe=this._changeDetectorRef)||void 0===Pe||Pe.markForCheck()})}_updateDisabled(G){const Pe=G.isDisabled.currentValue,fn=0!==Pe&&(0,f.L39)(Pe);li.then(()=>{var Un;fn&&!this.control.disabled?this.control.disable():!fn&&this.control.disabled&&this.control.enable(),null===(Un=this._changeDetectorRef)||void 0===Un||Un.markForCheck()})}_getPath(G){return this._parent?function Vr(z,N){return[...N.path,z]}(G,this._parent):[G]}}return(z=N).\u0275fac=function(G){return new(G||z)(f.rXU(wt,9),f.rXU(be,10),f.rXU(Ve,10),f.rXU(it,10),f.rXU(f.gRc,8),f.rXU(Pr,8))},z.\u0275dir=f.FsC({type:z,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[f.Mj6.None,"disabled","isDisabled"],model:[f.Mj6.None,"ngModel","model"],options:[f.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[f.Jv_([Wo]),f.Vt3,f.OA$]}),N})();function dr(z){return"number"==typeof z?z:parseFloat(z)}let yi=(()=>{var z;class N{constructor(){this._validator=j}ngOnChanges(G){if(this.inputName in G){const Pe=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(Pe),this._validator=this._enabled?this.createValidator(Pe):j,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(z=N).\u0275fac=function(G){return new(G||z)},z.\u0275dir=f.FsC({type:z,features:[f.OA$]}),N})();const bi={provide:be,useExisting:(0,f.Rfq)(()=>Ai),multi:!0};let Ai=(()=>{var z;class N extends yi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>dr(G),this.createValidator=G=>function gt(z){return N=>{if(Ne(N.value)||Ne(z))return null;const _e=parseFloat(N.value);return!isNaN(_e)&&_e>z?{max:{max:z,actual:N.value}}:null}}(G)}}return(z=N).\u0275fac=(()=>{let _e;return function(Pe){return(_e||(_e=f.xGo(z)))(Pe||z)}})(),z.\u0275dir=f.FsC({type:z,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,Pe){2&G&&f.BMQ("max",Pe._enabled?Pe.max:null)},inputs:{max:"max"},features:[f.Jv_([bi]),f.Vt3]}),N})();const no={provide:be,useExisting:(0,f.Rfq)(()=>Ko),multi:!0};let Ko=(()=>{var z;class N extends yi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>dr(G),this.createValidator=G=>function ze(z){return N=>{if(Ne(N.value)||Ne(z))return null;const _e=parseFloat(N.value);return!isNaN(_e)&&_e{let _e;return function(Pe){return(_e||(_e=f.xGo(z)))(Pe||z)}})(),z.\u0275dir=f.FsC({type:z,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,Pe){2&G&&f.BMQ("min",Pe._enabled?Pe.min:null)},inputs:{min:"min"},features:[f.Jv_([no]),f.Vt3]}),N})(),ms=(()=>{var z;class N{}return(z=N).\u0275fac=function(G){return new(G||z)},z.\u0275mod=f.$C({type:z}),z.\u0275inj=f.G2t({}),N})(),da=(()=>{var z;class N{static withConfig(G){var Pe;return{ngModule:N,providers:[{provide:Pr,useValue:null!==(Pe=G.callSetDisabledState)&&void 0!==Pe?Pe:yr}]}}}return(z=N).\u0275fac=function(G){return new(G||z)},z.\u0275mod=f.$C({type:z}),z.\u0275inj=f.G2t({imports:[ms]}),N})()},345:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Bb:()=>Xn,hE:()=>rr,sG:()=>Fn});var f=x(4438),c=x(177);class ce extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Le extends ce{static makeCurrent(){(0,c.ZD)(new Le)}onAndCancel(Ye,yt,st){return Ye.addEventListener(yt,st),()=>{Ye.removeEventListener(yt,st)}}dispatchEvent(Ye,yt){Ye.dispatchEvent(yt)}remove(Ye){Ye.parentNode&&Ye.parentNode.removeChild(Ye)}createElement(Ye,yt){return(yt=yt||this.getDefaultDocument()).createElement(Ye)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ye){return Ye.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ye){return Ye instanceof DocumentFragment}getGlobalEventTarget(Ye,yt){return"window"===yt?window:"document"===yt?Ye:"body"===yt?Ye.body:null}getBaseHref(Ye){const yt=function Ee(){return K=K||document.querySelector("base"),K?K.getAttribute("href"):null}();return null==yt?null:function te(de){return new URL(de,document.baseURI).pathname}(yt)}resetBaseElement(){K=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ye){return(0,c._b)(document.cookie,Ye)}}let K=null,Je=(()=>{var de;class Ye{build(){return new XMLHttpRequest}}return(de=Ye).\u0275fac=function(st){return new(st||de)},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac}),Ye})();const we=new f.nKC("");let Ae=(()=>{var de;class Ye{constructor(st,he){this._zone=he,this._eventNameToPlugin=new Map,st.forEach(me=>{me.manager=this}),this._plugins=st.slice().reverse()}addEventListener(st,he,me){return this._findPluginFor(he).addEventListener(st,he,me)}getZone(){return this._zone}_findPluginFor(st){let he=this._eventNameToPlugin.get(st);if(he)return he;if(he=this._plugins.find(ke=>ke.supports(st)),!he)throw new f.wOt(5101,!1);return this._eventNameToPlugin.set(st,he),he}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(we),f.KVO(f.SKi))},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac}),Ye})();class je{constructor(Ye){this._doc=Ye}}const Ke="ng-app-id";let Be=(()=>{var de;class Ye{constructor(st,he,me,ke={}){this.doc=st,this.appId=he,this.nonce=me,this.platformId=ke,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(ke),this.resetHostNodes()}addStyles(st){for(const he of st)1===this.changeUsageCount(he,1)&&this.onStyleAdded(he)}removeStyles(st){for(const he of st)this.changeUsageCount(he,-1)<=0&&this.onStyleRemoved(he)}ngOnDestroy(){const st=this.styleNodesInDOM;st&&(st.forEach(he=>he.remove()),st.clear());for(const he of this.getAllStyles())this.onStyleRemoved(he);this.resetHostNodes()}addHost(st){this.hostNodes.add(st);for(const he of this.getAllStyles())this.addStyleToHost(st,he)}removeHost(st){this.hostNodes.delete(st)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(st){for(const he of this.hostNodes)this.addStyleToHost(he,st)}onStyleRemoved(st){var he;const me=this.styleRef;null===(he=me.get(st))||void 0===he||null===(he=he.elements)||void 0===he||he.forEach(ke=>ke.remove()),me.delete(st)}collectServerRenderedStyles(){var st;const he=null===(st=this.doc.head)||void 0===st?void 0:st.querySelectorAll(`style[${Ke}="${this.appId}"]`);if(null!=he&&he.length){const me=new Map;return he.forEach(ke=>{null!=ke.textContent&&me.set(ke.textContent,ke)}),me}return null}changeUsageCount(st,he){const me=this.styleRef;if(me.has(st)){const ke=me.get(st);return ke.usage+=he,ke.usage}return me.set(st,{usage:he,elements:[]}),he}getStyleElement(st,he){const me=this.styleNodesInDOM,ke=null==me?void 0:me.get(he);if((null==ke?void 0:ke.parentNode)===st)return me.delete(he),ke.removeAttribute(Ke),ke;{const Rt=this.doc.createElement("style");return this.nonce&&Rt.setAttribute("nonce",this.nonce),Rt.textContent=he,this.platformIsServer&&Rt.setAttribute(Ke,this.appId),st.appendChild(Rt),Rt}}addStyleToHost(st,he){var me;const ke=this.getStyleElement(st,he),Rt=this.styleRef,ne=null===(me=Rt.get(he))||void 0===me?void 0:me.elements;ne?ne.push(ke):Rt.set(he,{elements:[ke],usage:1})}resetHostNodes(){const st=this.hostNodes;st.clear(),st.add(this.doc.head)}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(c.qQ),f.KVO(f.sZ2),f.KVO(f.BIS,8),f.KVO(f.Agw))},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac}),Ye})();const it={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/"},Et=/%COMP%/g,_t=new f.nKC("",{providedIn:"root",factory:()=>!0});function be(de,Ye){return Ye.map(yt=>yt.replace(Et,de))}let Ve=(()=>{var de;class Ye{constructor(st,he,me,ke,Rt,ne,nt,et=null){this.eventManager=st,this.sharedStylesHost=he,this.appId=me,this.removeStylesOnCompDestroy=ke,this.doc=Rt,this.platformId=ne,this.ngZone=nt,this.nonce=et,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ne),this.defaultRenderer=new Te(st,Rt,nt,this.platformIsServer)}createRenderer(st,he){if(!st||!he)return this.defaultRenderer;this.platformIsServer&&he.encapsulation===f.gXe.ShadowDom&&(he={...he,encapsulation:f.gXe.Emulated});const me=this.getOrCreateRenderer(st,he);return me instanceof He?me.applyToHost(st):me instanceof At&&me.applyStyles(),me}getOrCreateRenderer(st,he){const me=this.rendererByCompId;let ke=me.get(he.id);if(!ke){const Rt=this.doc,ne=this.ngZone,nt=this.eventManager,et=this.sharedStylesHost,Lt=this.removeStylesOnCompDestroy,Xt=this.platformIsServer;switch(he.encapsulation){case f.gXe.Emulated:ke=new He(nt,et,he,this.appId,Lt,Rt,ne,Xt);break;case f.gXe.ShadowDom:return new Bt(nt,et,st,he,Rt,ne,this.nonce,Xt);default:ke=new At(nt,et,he,Lt,Rt,ne,Xt)}me.set(he.id,ke)}return ke}ngOnDestroy(){this.rendererByCompId.clear()}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(Ae),f.KVO(Be),f.KVO(f.sZ2),f.KVO(_t),f.KVO(c.qQ),f.KVO(f.Agw),f.KVO(f.SKi),f.KVO(f.BIS))},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac}),Ye})();class Te{constructor(Ye,yt,st,he){this.eventManager=Ye,this.doc=yt,this.ngZone=st,this.platformIsServer=he,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Ye,yt){return yt?this.doc.createElementNS(it[yt]||yt,Ye):this.doc.createElement(Ye)}createComment(Ye){return this.doc.createComment(Ye)}createText(Ye){return this.doc.createTextNode(Ye)}appendChild(Ye,yt){(gt(Ye)?Ye.content:Ye).appendChild(yt)}insertBefore(Ye,yt,st){Ye&&(gt(Ye)?Ye.content:Ye).insertBefore(yt,st)}removeChild(Ye,yt){Ye&&Ye.removeChild(yt)}selectRootElement(Ye,yt){let st="string"==typeof Ye?this.doc.querySelector(Ye):Ye;if(!st)throw new f.wOt(-5104,!1);return yt||(st.textContent=""),st}parentNode(Ye){return Ye.parentNode}nextSibling(Ye){return Ye.nextSibling}setAttribute(Ye,yt,st,he){if(he){yt=he+":"+yt;const me=it[he];me?Ye.setAttributeNS(me,yt,st):Ye.setAttribute(yt,st)}else Ye.setAttribute(yt,st)}removeAttribute(Ye,yt,st){if(st){const he=it[st];he?Ye.removeAttributeNS(he,yt):Ye.removeAttribute(`${st}:${yt}`)}else Ye.removeAttribute(yt)}addClass(Ye,yt){Ye.classList.add(yt)}removeClass(Ye,yt){Ye.classList.remove(yt)}setStyle(Ye,yt,st,he){he&(f.czy.DashCase|f.czy.Important)?Ye.style.setProperty(yt,st,he&f.czy.Important?"important":""):Ye.style[yt]=st}removeStyle(Ye,yt,st){st&f.czy.DashCase?Ye.style.removeProperty(yt):Ye.style[yt]=""}setProperty(Ye,yt,st){null!=Ye&&(Ye[yt]=st)}setValue(Ye,yt){Ye.nodeValue=yt}listen(Ye,yt,st){if("string"==typeof Ye&&!(Ye=(0,c.QT)().getGlobalEventTarget(this.doc,Ye)))throw new Error(`Unsupported event target ${Ye} for event ${yt}`);return this.eventManager.addEventListener(Ye,yt,this.decoratePreventDefault(st))}decoratePreventDefault(Ye){return yt=>{if("__ngUnwrap__"===yt)return Ye;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ye(yt)):Ye(yt))&&yt.preventDefault()}}}function gt(de){return"TEMPLATE"===de.tagName&&void 0!==de.content}class Bt extends Te{constructor(Ye,yt,st,he,me,ke,Rt,ne){super(Ye,me,ke,ne),this.sharedStylesHost=yt,this.hostEl=st,this.shadowRoot=st.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const nt=be(he.id,he.styles);for(const et of nt){const Lt=document.createElement("style");Rt&&Lt.setAttribute("nonce",Rt),Lt.textContent=et,this.shadowRoot.appendChild(Lt)}}nodeOrShadowRoot(Ye){return Ye===this.hostEl?this.shadowRoot:Ye}appendChild(Ye,yt){return super.appendChild(this.nodeOrShadowRoot(Ye),yt)}insertBefore(Ye,yt,st){return super.insertBefore(this.nodeOrShadowRoot(Ye),yt,st)}removeChild(Ye,yt){return super.removeChild(this.nodeOrShadowRoot(Ye),yt)}parentNode(Ye){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ye)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class At extends Te{constructor(Ye,yt,st,he,me,ke,Rt,ne){super(Ye,me,ke,Rt),this.sharedStylesHost=yt,this.removeStylesOnCompDestroy=he,this.styles=ne?be(ne,st.styles):st.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class He extends At{constructor(Ye,yt,st,he,me,ke,Rt,ne){const nt=he+"-"+st.id;super(Ye,yt,st,me,ke,Rt,ne,nt),this.contentAttr=function Ne(de){return"_ngcontent-%COMP%".replace(Et,de)}(nt),this.hostAttr=function Qe(de){return"_nghost-%COMP%".replace(Et,de)}(nt)}applyToHost(Ye){this.applyStyles(),this.setAttribute(Ye,this.hostAttr,"")}createElement(Ye,yt){const st=super.createElement(Ye,yt);return super.setAttribute(st,this.contentAttr,""),st}}let Zt=(()=>{var de;class Ye extends je{constructor(st){super(st)}supports(st){return!0}addEventListener(st,he,me){return st.addEventListener(he,me,!1),()=>this.removeEventListener(st,he,me)}removeEventListener(st,he,me){return st.removeEventListener(he,me)}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(c.qQ))},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac}),Ye})();const tt=["alt","control","meta","shift"],De={"\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"},j={alt:de=>de.altKey,control:de=>de.ctrlKey,meta:de=>de.metaKey,shift:de=>de.shiftKey};let W=(()=>{var de;class Ye extends je{constructor(st){super(st)}supports(st){return null!=Ye.parseEventName(st)}addEventListener(st,he,me){const ke=Ye.parseEventName(he),Rt=Ye.eventCallback(ke.fullKey,me,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(st,ke.domEventName,Rt))}static parseEventName(st){const he=st.toLowerCase().split("."),me=he.shift();if(0===he.length||"keydown"!==me&&"keyup"!==me)return null;const ke=Ye._normalizeKey(he.pop());let Rt="",ne=he.indexOf("code");if(ne>-1&&(he.splice(ne,1),Rt="code."),tt.forEach(et=>{const Lt=he.indexOf(et);Lt>-1&&(he.splice(Lt,1),Rt+=et+".")}),Rt+=ke,0!=he.length||0===ke.length)return null;const nt={};return nt.domEventName=me,nt.fullKey=Rt,nt}static matchEventFullKeyCode(st,he){let me=De[st.key]||st.key,ke="";return he.indexOf("code.")>-1&&(me=st.code,ke="code."),!(null==me||!me)&&(me=me.toLowerCase()," "===me?me="space":"."===me&&(me="dot"),tt.forEach(Rt=>{Rt!==me&&(0,j[Rt])(st)&&(ke+=Rt+".")}),ke+=me,ke===he)}static eventCallback(st,he,me){return ke=>{Ye.matchEventFullKeyCode(ke,st)&&me.runGuarded(()=>he(ke))}}static _normalizeKey(st){return"esc"===st?"escape":st}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(c.qQ))},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac}),Ye})();const Fn=(0,f.oH4)(f.fpN,"browser",[{provide:f.Agw,useValue:c.AJ},{provide:f.PLl,useValue:function Ge(){Le.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function yn(){return(0,f.TL$)(document),document},deps:[]}]),Nn=new f.nKC(""),qn=[{provide:f.e01,useClass:class qe{addToWindow(Ye){f.JZv.getAngularTestability=(st,he=!0)=>{const me=Ye.findTestabilityInTree(st,he);if(null==me)throw new f.wOt(5103,!1);return me},f.JZv.getAllAngularTestabilities=()=>Ye.getAllTestabilities(),f.JZv.getAllAngularRootElements=()=>Ye.getAllRootElements(),f.JZv.frameworkStabilizers||(f.JZv.frameworkStabilizers=[]),f.JZv.frameworkStabilizers.push(st=>{const he=f.JZv.getAllAngularTestabilities();let me=he.length;const ke=function(){me--,0==me&&st()};he.forEach(Rt=>{Rt.whenStable(ke)})})}findTestabilityInTree(Ye,yt,st){if(null==yt)return null;const he=Ye.getTestability(yt);return null!=he?he:st?(0,c.QT)().isShadowRoot(yt)?this.findTestabilityInTree(Ye,yt.host,!0):this.findTestabilityInTree(Ye,yt.parentElement,!0):null}},deps:[]},{provide:f.WHO,useClass:f.NYb,deps:[f.SKi,f.giA,f.e01]},{provide:f.NYb,useClass:f.NYb,deps:[f.SKi,f.giA,f.e01]}],Zn=[{provide:f.H8p,useValue:"root"},{provide:f.zcH,useFactory:function Jt(){return new f.zcH},deps:[]},{provide:we,useClass:Zt,multi:!0,deps:[c.qQ,f.SKi,f.Agw]},{provide:we,useClass:W,multi:!0,deps:[c.qQ]},Ve,Be,Ae,{provide:f._9s,useExisting:Ve},{provide:c.N0,useClass:Je,deps:[]},[]];let Xn=(()=>{var de;class Ye{constructor(st){}static withServerTransition(st){return{ngModule:Ye,providers:[{provide:f.sZ2,useValue:st.appId}]}}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(Nn,12))},de.\u0275mod=f.$C({type:de}),de.\u0275inj=f.G2t({providers:[...Zn,...qn],imports:[c.MD,f.Hbi]}),Ye})(),rr=(()=>{var de;class Ye{constructor(st){this._doc=st}getTitle(){return this._doc.title}setTitle(st){this._doc.title=st||""}}return(de=Ye).\u0275fac=function(st){return new(st||de)(f.KVO(c.qQ))},de.\u0275prov=f.jDH({token:de,factory:de.\u0275fac,providedIn:"root"}),Ye})()},305:(Dn,Ct,x)=>{"use strict";x.d(Ct,{nX:()=>ue,Zp:()=>S,wF:()=>Fr,Z:()=>Wr,Xk:()=>wn,Kp:()=>Ua,b:()=>fi,Ix:()=>$i,Wk:()=>$o,iI:()=>Mu,Sd:()=>Zr});var f=x(467),c=x(4438),ce=x(1985),Le=x(8071),Ee=x(8455),te=x(7673),qe=x(4412),Je=x(4572);const Ae=(0,x(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var je=x(1397),Ke=x(3669);function Be(I=1/0){return(0,je.Z)(Ke.D,I)}var Et=x(9326);function lt(...I){return function it(){return Be(1)}()((0,Ee.H)(I,(0,Et.lI)(I)))}var mt=x(8750);function xt(I){return new ce.c(D=>{(0,mt.Tg)(I()).subscribe(D)})}var pt=x(1203);function _t(I,D){const M=(0,Le.T)(I)?I:()=>I,C=O=>O.error(M());return new ce.c(D?O=>D.schedule(C,0,O):C)}var Ne=x(983),Qe=x(8359),be=x(9974),Ve=x(4360);function Te(){return(0,be.N)((I,D)=>{let M=null;I._refCount++;const C=(0,Ve._)(D,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(M=null);const O=I._connection,oe=M;M=null,O&&(!oe||O===oe)&&O.unsubscribe(),D.unsubscribe()});I.subscribe(C),C.closed||(M=I.connect())})}class se extends ce.c{constructor(D,M){super(),this.source=D,this.subjectFactory=M,this._subject=null,this._refCount=0,this._connection=null,(0,be.S)(D)&&(this.lift=D.lift)}_subscribe(D){return this.getSubject().subscribe(D)}getSubject(){const D=this._subject;return(!D||D.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:D}=this;this._subject=this._connection=null,null==D||D.unsubscribe()}connect(){let D=this._connection;if(!D){D=this._connection=new Qe.yU;const M=this.getSubject();D.add(this.source.subscribe((0,Ve._)(M,void 0,()=>{this._teardown(),M.complete()},C=>{this._teardown(),M.error(C)},()=>this._teardown()))),D.closed&&(this._connection=null,D=Qe.yU.EMPTY)}return D}refCount(){return Te()(this)}}var ze=x(1413),gt=x(177),Bt=x(6354),At=x(5558),He=x(6697),tt=x(5964);function De(I){return(0,be.N)((D,M)=>{let C=!1;D.subscribe((0,Ve._)(M,O=>{C=!0,M.next(O)},()=>{C||M.next(I),M.complete()}))})}function j(I=W){return(0,be.N)((D,M)=>{let C=!1;D.subscribe((0,Ve._)(M,O=>{C=!0,M.next(O)},()=>C?M.complete():M.error(I())))})}function W(){return new Ae}function ie(I,D){const M=arguments.length>=2;return C=>C.pipe(I?(0,tt.p)((O,oe)=>I(O,oe,C)):Ke.D,(0,He.s)(1),M?De(D):j(()=>new Ae))}var J=x(274),re=x(8141);function Re(I){return(0,be.N)((D,M)=>{let oe,C=null,O=!1;C=D.subscribe((0,Ve._)(M,void 0,void 0,Ce=>{oe=(0,mt.Tg)(I(Ce,Re(I)(D))),C?(C.unsubscribe(),C=null,oe.subscribe(M)):O=!0})),O&&(C.unsubscribe(),C=null,oe.subscribe(M))})}function yn(I){return I<=0?()=>Ne.w:(0,be.N)((D,M)=>{let C=[];D.subscribe((0,Ve._)(M,O=>{C.push(O),I{for(const O of C)M.next(O);M.complete()},void 0,()=>{C=null}))})}var Nn=x(980),qn=x(5343),Xn=x(345);const wn="primary",or=Symbol("RouteTitle");class rr{constructor(D){this.params=D||{}}has(D){return Object.prototype.hasOwnProperty.call(this.params,D)}get(D){if(this.has(D)){const M=this.params[D];return Array.isArray(M)?M[0]:M}return null}getAll(D){if(this.has(D)){const M=this.params[D];return Array.isArray(M)?M:[M]}return[]}get keys(){return Object.keys(this.params)}}function Xe(I){return new rr(I)}function wt(I,D,M){const C=M.path.split("/");if(C.length>I.length||"full"===M.pathMatch&&(D.hasChildren()||C.lengthC[oe]===O)}return I===D}function Cn(I){return I.length>0?I[I.length-1]:null}function An(I){return function K(I){return!!I&&(I instanceof ce.c||(0,Le.T)(I.lift)&&(0,Le.T)(I.subscribe))}(I)?I:(0,c.jNT)(I)?(0,Ee.H)(Promise.resolve(I)):(0,te.of)(I)}const sn={exact:function Lr(I,D,M){if(!_r(I.segments,D.segments)||!ii(I.segments,D.segments,M)||I.numberOfChildren!==D.numberOfChildren)return!1;for(const C in D.children)if(!I.children[C]||!Lr(I.children[C],D.children[C],M))return!1;return!0},subset:Cr},Kt={exact:function Rr(I,D){return en(I,D)},subset:function kr(I,D){return Object.keys(D).length<=Object.keys(I).length&&Object.keys(D).every(M=>Ar(I[M],D[M]))},ignored:()=>!0};function fr(I,D,M){return sn[M.paths](I.root,D.root,M.matrixParams)&&Kt[M.queryParams](I.queryParams,D.queryParams)&&!("exact"===M.fragment&&I.fragment!==D.fragment)}function Cr(I,D,M){return jn(I,D,D.segments,M)}function jn(I,D,M,C){if(I.segments.length>M.length){const O=I.segments.slice(0,M.length);return!(!_r(O,M)||D.hasChildren()||!ii(O,M,C))}if(I.segments.length===M.length){if(!_r(I.segments,M)||!ii(I.segments,M,C))return!1;for(const O in D.children)if(!I.children[O]||!Cr(I.children[O],D.children[O],C))return!1;return!0}{const O=M.slice(0,I.segments.length),oe=M.slice(I.segments.length);return!!(_r(I.segments,O)&&ii(I.segments,O,C)&&I.children[wn])&&jn(I.children[wn],D,oe,C)}}function ii(I,D,M){return D.every((C,O)=>Kt[M](I[O].parameters,C.parameters))}class er{constructor(D=new Mn([],{}),M={},C=null){this.root=D,this.queryParams=M,this.fragment=C}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=Xe(this.queryParams)),this._queryParamMap}toString(){return de.serialize(this)}}class Mn{constructor(D,M){this.segments=D,this.children=M,this.parent=null,Object.values(M).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ye(this)}}class Mr{constructor(D,M){this.path=D,this.parameters=M}get parameterMap(){var D;return null!==(D=this._parameterMap)&&void 0!==D||(this._parameterMap=Xe(this.parameters)),this._parameterMap}toString(){return nt(this)}}function _r(I,D){return I.length===D.length&&I.every((M,C)=>M.path===D[C].path)}let Zr=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>new zr,providedIn:"root"}),D})();class zr{parse(D){const M=new Vr(D);return new er(M.parseRootSegment(),M.parseQueryParams(),M.parseFragment())}serialize(D){const M=`/${yt(D.root,!0)}`,C=function Lt(I){const D=Object.entries(I).map(([M,C])=>Array.isArray(C)?C.map(O=>`${he(M)}=${he(O)}`).join("&"):`${he(M)}=${he(C)}`).filter(M=>M);return D.length?`?${D.join("&")}`:""}(D.queryParams);return`${M}${C}${"string"==typeof D.fragment?`#${function me(I){return encodeURI(I)}(D.fragment)}`:""}`}}const de=new zr;function Ye(I){return I.segments.map(D=>nt(D)).join("/")}function yt(I,D){if(!I.hasChildren())return Ye(I);if(D){const M=I.children[wn]?yt(I.children[wn],!1):"",C=[];return Object.entries(I.children).forEach(([O,oe])=>{O!==wn&&C.push(`${O}:${yt(oe,!1)}`)}),C.length>0?`${M}(${C.join("//")})`:M}{const M=function Ii(I,D){let M=[];return Object.entries(I.children).forEach(([C,O])=>{C===wn&&(M=M.concat(D(O,C)))}),Object.entries(I.children).forEach(([C,O])=>{C!==wn&&(M=M.concat(D(O,C)))}),M}(I,(C,O)=>O===wn?[yt(I.children[wn],!1)]:[`${O}:${yt(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[wn]?`${Ye(I)}/${M[0]}`:`${Ye(I)}/(${M.join("//")})`}}function st(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function he(I){return st(I).replace(/%3B/gi,";")}function ke(I){return st(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Rt(I){return decodeURIComponent(I)}function ne(I){return Rt(I.replace(/\+/g,"%20"))}function nt(I){return`${ke(I.path)}${function et(I){return Object.entries(I).map(([D,M])=>`;${ke(D)}=${ke(M)}`).join("")}(I.parameters)}`}const Xt=/^[^\/()?;#]+/;function cn(I){const D=I.match(Xt);return D?D[0]:""}const Hn=/^[^\/()?;=#]+/,_n=/^[^=?&#]+/,Pr=/^[^&#]+/;class Vr{constructor(D){this.url=D,this.remaining=D}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Mn([],{}):new Mn([],this.parseChildren())}parseQueryParams(){const D={};if(this.consumeOptional("?"))do{this.parseQueryParam(D)}while(this.consumeOptional("&"));return D}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const D=[];for(this.peekStartsWith("(")||D.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),D.push(this.parseSegment());let M={};this.peekStartsWith("/(")&&(this.capture("/"),M=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(D.length>0||Object.keys(M).length>0)&&(C[wn]=new Mn(D,M)),C}parseSegment(){const D=cn(this.remaining);if(""===D&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(D),new Mr(Rt(D),this.parseMatrixParams())}parseMatrixParams(){const D={};for(;this.consumeOptional(";");)this.parseParam(D);return D}parseParam(D){const M=function dn(I){const D=I.match(Hn);return D?D[0]:""}(this.remaining);if(!M)return;this.capture(M);let C="";if(this.consumeOptional("=")){const O=cn(this.remaining);O&&(C=O,this.capture(C))}D[Rt(M)]=Rt(C)}parseQueryParam(D){const M=function Qn(I){const D=I.match(_n);return D?D[0]:""}(this.remaining);if(!M)return;this.capture(M);let C="";if(this.consumeOptional("=")){const Ce=function yr(I){const D=I.match(Pr);return D?D[0]:""}(this.remaining);Ce&&(C=Ce,this.capture(C))}const O=ne(M),oe=ne(C);if(D.hasOwnProperty(O)){let Ce=D[O];Array.isArray(Ce)||(Ce=[Ce],D[O]=Ce),Ce.push(oe)}else D[O]=oe}parseParens(D){const M={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=cn(this.remaining),O=this.remaining[C.length];if("/"!==O&&")"!==O&&";"!==O)throw new c.wOt(4010,!1);let oe;C.indexOf(":")>-1?(oe=C.slice(0,C.indexOf(":")),this.capture(oe),this.capture(":")):D&&(oe=wn);const Ce=this.parseChildren();M[oe]=1===Object.keys(Ce).length?Ce[wn]:new Mn([],Ce),this.consumeOptional("//")}return M}peekStartsWith(D){return this.remaining.startsWith(D)}consumeOptional(D){return!!this.peekStartsWith(D)&&(this.remaining=this.remaining.substring(D.length),!0)}capture(D){if(!this.consumeOptional(D))throw new c.wOt(4011,!1)}}function gi(I){return I.segments.length>0?new Mn([],{[wn]:I}):I}function ir(I){const D={};for(const[C,O]of Object.entries(I.children)){const oe=ir(O);if(C===wn&&0===oe.segments.length&&oe.hasChildren())for(const[Ce,Tt]of Object.entries(oe.children))D[Ce]=Tt;else(oe.segments.length>0||oe.hasChildren())&&(D[C]=oe)}return function Fi(I){if(1===I.numberOfChildren&&I.children[wn]){const D=I.children[wn];return new Mn(I.segments.concat(D.segments),D.children)}return I}(new Mn(I.segments,D))}function Mi(I){return I instanceof er}function Nt(I){var D;let M;const oe=gi(function C(Ce){const Tt={};for(const Pt of Ce.children){const xn=C(Pt);Tt[Pt.outlet]=xn}const an=new Mn(Ce.url,Tt);return Ce===I&&(M=an),an}(I.root));return null!==(D=M)&&void 0!==D?D:oe}function It(I,D,M,C){let O=I;for(;O.parent;)O=O.parent;if(0===D.length)return fe(O,O,O,M,C);const oe=function ee(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new U(!0,0,I);let D=0,M=!1;const C=I.reduce((O,oe,Ce)=>{if("object"==typeof oe&&null!=oe){if(oe.outlets){const Tt={};return Object.entries(oe.outlets).forEach(([an,Pt])=>{Tt[an]="string"==typeof Pt?Pt.split("/"):Pt}),[...O,{outlets:Tt}]}if(oe.segmentPath)return[...O,oe.segmentPath]}return"string"!=typeof oe?[...O,oe]:0===Ce?(oe.split("/").forEach((Tt,an)=>{0==an&&"."===Tt||(0==an&&""===Tt?M=!0:".."===Tt?D++:""!=Tt&&O.push(Tt))}),O):[...O,oe]},[]);return new U(M,D,C)}(D);if(oe.toRoot())return fe(O,O,new Mn([],{}),M,C);const Ce=function le(I,D,M){if(I.isAbsolute)return new $(D,!0,0);if(!M)return new $(D,!1,NaN);if(null===M.parent)return new $(M,!0,0);const C=zt(I.commands[0])?0:1;return function Ue(I,D,M){let C=I,O=D,oe=M;for(;oe>O;){if(oe-=O,C=C.parent,!C)throw new c.wOt(4005,!1);O=C.segments.length}return new $(C,!1,O-oe)}(M,M.segments.length-1+C,I.numberOfDoubleDots)}(oe,O,I),Tt=Ce.processChildren?qt(Ce.segmentGroup,Ce.index,oe.commands):Gt(Ce.segmentGroup,Ce.index,oe.commands);return fe(O,Ce.segmentGroup,Tt,M,C)}function zt(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function Tn(I){return"object"==typeof I&&null!=I&&I.outlets}function fe(I,D,M,C,O){let Ce,oe={};C&&Object.entries(C).forEach(([an,Pt])=>{oe[an]=Array.isArray(Pt)?Pt.map(xn=>`${xn}`):`${Pt}`}),Ce=I===D?M:R(I,D,M);const Tt=gi(ir(Ce));return new er(Tt,oe,O)}function R(I,D,M){const C={};return Object.entries(I.children).forEach(([O,oe])=>{C[O]=oe===D?M:R(oe,D,M)}),new Mn(I.segments,C)}class U{constructor(D,M,C){if(this.isAbsolute=D,this.numberOfDoubleDots=M,this.commands=C,D&&C.length>0&&zt(C[0]))throw new c.wOt(4003,!1);const O=C.find(Tn);if(O&&O!==Cn(C))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ${constructor(D,M,C){this.segmentGroup=D,this.processChildren=M,this.index=C}}function Gt(I,D,M){var C;if(null!==(C=I)&&void 0!==C||(I=new Mn([],{})),0===I.segments.length&&I.hasChildren())return qt(I,D,M);const O=function Wn(I,D,M){let C=0,O=D;const oe={match:!1,pathIndex:0,commandIndex:0};for(;O=M.length)return oe;const Ce=I.segments[O],Tt=M[C];if(Tn(Tt))break;const an=`${Tt}`,Pt=C0&&void 0===an)break;if(an&&Pt&&"object"==typeof Pt&&void 0===Pt.outlets){if(!$r(an,Pt,Ce))return oe;C+=2}else{if(!$r(an,{},Ce))return oe;C++}O++}return{match:!0,pathIndex:O,commandIndex:C}}(I,D,M),oe=M.slice(O.commandIndex);if(O.match&&O.pathIndexoe!==wn)&&I.children[wn]&&1===I.numberOfChildren&&0===I.children[wn].segments.length){const oe=qt(I.children[wn],D,M);return new Mn(I.segments,oe.children)}return Object.entries(C).forEach(([oe,Ce])=>{"string"==typeof Ce&&(Ce=[Ce]),null!==Ce&&(O[oe]=Gt(I.children[oe],D,Ce))}),Object.entries(I.children).forEach(([oe,Ce])=>{void 0===C[oe]&&(O[oe]=Ce)}),new Mn(I.segments,O)}}function $n(I,D,M){const C=I.segments.slice(0,D);let O=0;for(;O{"string"==typeof C&&(C=[C]),null!==C&&(D[M]=$n(new Mn([],{}),0,C))}),D}function gr(I){const D={};return Object.entries(I).forEach(([M,C])=>D[M]=`${C}`),D}function $r(I,D,M){return I==M.path&&en(D,M.parameters)}const Ir="imperative";var un=function(I){return I[I.NavigationStart=0]="NavigationStart",I[I.NavigationEnd=1]="NavigationEnd",I[I.NavigationCancel=2]="NavigationCancel",I[I.NavigationError=3]="NavigationError",I[I.RoutesRecognized=4]="RoutesRecognized",I[I.ResolveStart=5]="ResolveStart",I[I.ResolveEnd=6]="ResolveEnd",I[I.GuardsCheckStart=7]="GuardsCheckStart",I[I.GuardsCheckEnd=8]="GuardsCheckEnd",I[I.RouteConfigLoadStart=9]="RouteConfigLoadStart",I[I.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",I[I.ChildActivationStart=11]="ChildActivationStart",I[I.ChildActivationEnd=12]="ChildActivationEnd",I[I.ActivationStart=13]="ActivationStart",I[I.ActivationEnd=14]="ActivationEnd",I[I.Scroll=15]="Scroll",I[I.NavigationSkipped=16]="NavigationSkipped",I}(un||{});class sr{constructor(D,M){this.id=D,this.url=M}}class Wr extends sr{constructor(D,M,C="imperative",O=null){super(D,M),this.type=un.NavigationStart,this.navigationTrigger=C,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fr extends sr{constructor(D,M,C){super(D,M),this.urlAfterRedirects=C,this.type=un.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Er=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(Er||{}),pr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(pr||{});class ei extends sr{constructor(D,M,C,O){super(D,M),this.reason=C,this.code=O,this.type=un.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class kn extends sr{constructor(D,M,C,O){super(D,M),this.reason=C,this.code=O,this.type=un.NavigationSkipped}}class Vn extends sr{constructor(D,M,C,O){super(D,M),this.error=C,this.target=O,this.type=un.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _o extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ai extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi extends sr{constructor(D,M,C,O,oe){super(D,M),this.urlAfterRedirects=C,this.state=O,this.shouldActivate=oe,this.type=un.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Co extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wo extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li{constructor(D){this.route=D,this.type=un.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ur{constructor(D){this.route=D,this.type=un.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kr{constructor(D){this.snapshot=D,this.type=un.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(D){this.snapshot=D,this.type=un.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yn{constructor(D){this.snapshot=D,this.type=un.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lo{constructor(D){this.snapshot=D,this.type=un.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class To{constructor(D,M,C){this.routerEvent=D,this.position=M,this.anchor=C,this.type=un.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Do{}class co{constructor(D){this.url=D}}class Li{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class D{constructor(){this.contexts=new Map}onChildOutletCreated(C,O){const oe=this.getOrCreateContext(C);oe.outlet=O,this.contexts.set(C,oe)}onChildOutletDestroyed(C){const O=this.getContext(C);O&&(O.outlet=null,O.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let O=this.getContext(C);return O||(O=new Li,this.contexts.set(C,O)),O}getContext(C){return this.contexts.get(C)||null}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();class q{constructor(D){this._root=D}get root(){return this._root.value}parent(D){const M=this.pathFromRoot(D);return M.length>1?M[M.length-2]:null}children(D){const M=ve(D,this._root);return M?M.children.map(C=>C.value):[]}firstChild(D){const M=ve(D,this._root);return M&&M.children.length>0?M.children[0].value:null}siblings(D){const M=P(D,this._root);return M.length<2?[]:M[M.length-2].children.map(O=>O.value).filter(O=>O!==D)}pathFromRoot(D){return P(D,this._root).map(M=>M.value)}}function ve(I,D){if(I===D.value)return D;for(const M of D.children){const C=ve(I,M);if(C)return C}return null}function P(I,D){if(I===D.value)return[D];for(const M of D.children){const C=P(I,M);if(C.length)return C.unshift(D),C}return[]}class ye{constructor(D,M){this.value=D,this.children=M}toString(){return`TreeNode(${this.value})`}}function at(I){const D={};return I&&I.children.forEach(M=>D[M.value.outlet]=M),D}class mr extends q{constructor(D,M){super(D),this.snapshot=M,ct(this,D)}toString(){return this.snapshot.toString()}}function Ei(I){const D=function H(I){const oe=new We([],{},{},"",{},wn,I,null,{});return new vt("",new ye(oe,[]))}(I),M=new qe.t([new Mr("",{})]),C=new qe.t({}),O=new qe.t({}),oe=new qe.t({}),Ce=new qe.t(""),Tt=new ue(M,C,oe,Ce,O,wn,I,D.root);return Tt.snapshot=D.root,new mr(new ye(Tt,[]),D)}class ue{constructor(D,M,C,O,oe,Ce,Tt,an){var Pt,xn;this.urlSubject=D,this.paramsSubject=M,this.queryParamsSubject=C,this.fragmentSubject=O,this.dataSubject=oe,this.outlet=Ce,this.component=Tt,this._futureSnapshot=an,this.title=null!==(Pt=null===(xn=this.dataSubject)||void 0===xn?void 0:xn.pipe((0,Bt.T)(br=>br[or])))&&void 0!==Pt?Pt:(0,te.of)(void 0),this.url=D,this.params=M,this.queryParams=C,this.fragment=O,this.data=oe}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(){var D;return null!==(D=this._paramMap)&&void 0!==D||(this._paramMap=this.params.pipe((0,Bt.T)(M=>Xe(M)))),this._paramMap}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=this.queryParams.pipe((0,Bt.T)(M=>Xe(M)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Me(I,D,M="emptyOnly"){var C;let O;const{routeConfig:oe}=I;var Ce;return O=null===D||"always"!==M&&""!==(null==oe?void 0:oe.path)&&(D.component||null!==(C=D.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(Ce=I._resolvedData)&&void 0!==Ce?Ce:{}}}:{params:{...D.params,...I.params},data:{...D.data,...I.data},resolve:{...I.data,...D.data,...null==oe?void 0:oe.data,...I._resolvedData}},oe&&ln(oe)&&(O.resolve[or]=oe.title),O}class We{get title(){var D;return null===(D=this.data)||void 0===D?void 0:D[or]}constructor(D,M,C,O,oe,Ce,Tt,an,Pt){this.url=D,this.params=M,this.queryParams=C,this.fragment=O,this.data=oe,this.outlet=Ce,this.component=Tt,this.routeConfig=an,this._resolve=Pt}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(){var D;return null!==(D=this._paramMap)&&void 0!==D||(this._paramMap=Xe(this.params)),this._paramMap}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=Xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vt extends q{constructor(D,M){super(M),this.url=D,ct(this,M)}toString(){return jt(this._root)}}function ct(I,D){D.value._routerState=I,D.children.forEach(M=>ct(I,M))}function jt(I){const D=I.children.length>0?` { ${I.children.map(jt).join(", ")} } `:"";return`${I.value}${D}`}function Qt(I){if(I.snapshot){const D=I.snapshot,M=I._futureSnapshot;I.snapshot=M,en(D.queryParams,M.queryParams)||I.queryParamsSubject.next(M.queryParams),D.fragment!==M.fragment&&I.fragmentSubject.next(M.fragment),en(D.params,M.params)||I.paramsSubject.next(M.params),function Ft(I,D){if(I.length!==D.length)return!1;for(let M=0;Men(M.parameters,D[C].parameters))}(I.url,D.url);return M&&!(!I.parent!=!D.parent)&&(!I.parent||tn(I.parent,D.parent))}function ln(I){return"string"==typeof I.title||null===I.title}let Sn=(()=>{var I;class D{constructor(){this.activated=null,this._activatedRoute=null,this.name=wn,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(S),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(Gn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:O,previousValue:oe}=C.name;if(O)return;this.isTrackedInParentContexts(oe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(oe)),this.initializeOutletWithName()}}ngOnDestroy(){var C;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(C=this.inputBinder)||void 0===C||C.unsubscribeFromRouteData(this)}isTrackedInParentContexts(C){var O;return(null===(O=this.parentContexts.getContext(C))||void 0===O?void 0:O.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const C=this.parentContexts.getContext(this.name);null!=C&&C.route&&(C.attachRef?this.attach(C.attachRef,C.route):this.activateWith(C.route,C.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const C=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(C.instance),C}attach(C,O){var oe;this.activated=C,this._activatedRoute=O,this.location.insert(C.hostView),null===(oe=this.inputBinder)||void 0===oe||oe.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(C.instance)}deactivate(){if(this.activated){const C=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(C)}}activateWith(C,O){var oe;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=C;const Ce=this.location,an=C.snapshot.component,Pt=this.parentContexts.getOrCreateContext(this.name).children,xn=new Pn(C,Pt,Ce.injector);this.activated=Ce.createComponent(an,{index:Ce.length,injector:xn,environmentInjector:null!=O?O:this.environmentInjector}),this.changeDetector.markForCheck(),null===(oe=this.inputBinder)||void 0===oe||oe.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275dir=c.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),D})();class Pn{__ngOutletInjector(D){return new Pn(this.route,this.childContexts,D)}constructor(D,M,C){this.route=D,this.childContexts=M,this.parent=C}get(D,M){return D===ue?this.route:D===S?this.childContexts:this.parent.get(D,M)}}const Gn=new c.nKC("");let Rn=(()=>{var I;class D{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var O;null===(O=this.outletDataSubscriptions.get(C))||void 0===O||O.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:O}=C,oe=(0,Je.z)([O.queryParams,O.params,O.data]).pipe((0,At.n)(([Ce,Tt,an],Pt)=>(an={...Ce,...Tt,...an},0===Pt?(0,te.of)(an):Promise.resolve(an)))).subscribe(Ce=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==O||null===O.component)return void this.unsubscribeFromRouteData(C);const Tt=(0,c.HJs)(O.component);if(Tt)for(const{templateName:an}of Tt.inputs)C.activatedComponentRef.setInput(an,Ce[an]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,oe)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac}),D})();function Tr(I,D,M){if(M&&I.shouldReuseRoute(D.value,M.value.snapshot)){const C=M.value;C._futureSnapshot=D.value;const O=function dr(I,D,M){return D.children.map(C=>{for(const O of M.children)if(I.shouldReuseRoute(C.value,O.value.snapshot))return Tr(I,C,O);return Tr(I,C)})}(I,D,M);return new ye(C,O)}{if(I.shouldAttach(D.value)){const oe=I.retrieve(D.value);if(null!==oe){const Ce=oe.route;return Ce.value._futureSnapshot=D.value,Ce.children=D.children.map(Tt=>Tr(I,Tt)),Ce}}const C=function yi(I){return new ue(new qe.t(I.url),new qe.t(I.params),new qe.t(I.queryParams),new qe.t(I.fragment),new qe.t(I.data),I.outlet,I.component,I)}(D.value),O=D.children.map(oe=>Tr(I,oe));return new ye(C,O)}}const bi="ngNavigationCancelingError";function Ai(I,D){const{redirectTo:M,navigationBehaviorOptions:C}=Mi(D)?{redirectTo:D,navigationBehaviorOptions:void 0}:D,O=no(!1,Er.Redirect);return O.url=M,O.navigationBehaviorOptions=C,O}function no(I,D){const M=new Error(`NavigationCancelingError: ${I||""}`);return M[bi]=!0,M.cancellationCode=D,M}function Dr(I){return!!I&&I[bi]}let ui=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=c.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(C,O){1&C&&c.nrm(0,"router-outlet")},dependencies:[Sn],encapsulation:2}),D})();function Us(I){const D=I.children&&I.children.map(Us),M=D?{...I,children:D}:{...I};return!M.component&&!M.loadComponent&&(D||M.loadChildren)&&M.outlet&&M.outlet!==wn&&(M.component=ui),M}function so(I){return I.outlet||wn}function gs(I){var D;if(!I)return null;if(null!==(D=I.routeConfig)&&void 0!==D&&D._injector)return I.routeConfig._injector;for(let M=I.parent;M;M=M.parent){const C=M.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(D,M,C,O,oe){this.routeReuseStrategy=D,this.futureState=M,this.currState=C,this.forwardEvent=O,this.inputBindingEnabled=oe}activate(D){const M=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(M,C,D),Qt(this.futureState.root),this.activateChildRoutes(M,C,D)}deactivateChildRoutes(D,M,C){const O=at(M);D.children.forEach(oe=>{const Ce=oe.value.outlet;this.deactivateRoutes(oe,O[Ce],C),delete O[Ce]}),Object.values(O).forEach(oe=>{this.deactivateRouteAndItsChildren(oe,C)})}deactivateRoutes(D,M,C){const O=D.value,oe=M?M.value:null;if(O===oe)if(O.component){const Ce=C.getContext(O.outlet);Ce&&this.deactivateChildRoutes(D,M,Ce.children)}else this.deactivateChildRoutes(D,M,C);else oe&&this.deactivateRouteAndItsChildren(M,C)}deactivateRouteAndItsChildren(D,M){D.value.component&&this.routeReuseStrategy.shouldDetach(D.value.snapshot)?this.detachAndStoreRouteSubtree(D,M):this.deactivateRouteAndOutlet(D,M)}detachAndStoreRouteSubtree(D,M){const C=M.getContext(D.value.outlet),O=C&&D.value.component?C.children:M,oe=at(D);for(const Ce of Object.values(oe))this.deactivateRouteAndItsChildren(Ce,O);if(C&&C.outlet){const Ce=C.outlet.detach(),Tt=C.children.onOutletDeactivated();this.routeReuseStrategy.store(D.value.snapshot,{componentRef:Ce,route:D,contexts:Tt})}}deactivateRouteAndOutlet(D,M){const C=M.getContext(D.value.outlet),O=C&&D.value.component?C.children:M,oe=at(D);for(const Ce of Object.values(oe))this.deactivateRouteAndItsChildren(Ce,O);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(D,M,C){const O=at(M);D.children.forEach(oe=>{this.activateRoutes(oe,O[oe.value.outlet],C),this.forwardEvent(new Lo(oe.value.snapshot))}),D.children.length&&this.forwardEvent(new _i(D.value.snapshot))}activateRoutes(D,M,C){const O=D.value,oe=M?M.value:null;if(Qt(O),O===oe)if(O.component){const Ce=C.getOrCreateContext(O.outlet);this.activateChildRoutes(D,M,Ce.children)}else this.activateChildRoutes(D,M,C);else if(O.component){const Ce=C.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const Tt=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),Ce.children.onOutletReAttached(Tt.contexts),Ce.attachRef=Tt.componentRef,Ce.route=Tt.route.value,Ce.outlet&&Ce.outlet.attach(Tt.componentRef,Tt.route.value),Qt(Tt.route.value),this.activateChildRoutes(D,null,Ce.children)}else{const Tt=gs(O.snapshot);Ce.attachRef=null,Ce.route=O,Ce.injector=Tt,Ce.outlet&&Ce.outlet.activateWith(O,Ce.injector),this.activateChildRoutes(D,null,Ce.children)}}else this.activateChildRoutes(D,null,C)}}class ca{constructor(D){this.path=D,this.route=this.path[this.path.length-1]}}class Qo{constructor(D,M){this.component=D,this.route=M}}function bs(I,D,M){const C=I._root;return zi(C,D?D._root:null,M,[C.value])}function So(I,D){const M=Symbol(),C=D.get(I,M);return C===M?"function"!=typeof I||(0,c.LfX)(I)?D.get(I):I:C}function zi(I,D,M,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const oe=at(D);return I.children.forEach(Ce=>{(function da(I,D,M,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const oe=I.value,Ce=D?D.value:null,Tt=M?M.getContext(I.value.outlet):null;if(Ce&&oe.routeConfig===Ce.routeConfig){const an=function ol(I,D,M){if("function"==typeof M)return M(I,D);switch(M){case"pathParamsChange":return!_r(I.url,D.url);case"pathParamsOrQueryParamsChange":return!_r(I.url,D.url)||!en(I.queryParams,D.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tn(I,D)||!en(I.queryParams,D.queryParams);default:return!tn(I,D)}}(Ce,oe,oe.routeConfig.runGuardsAndResolvers);an?O.canActivateChecks.push(new ca(C)):(oe.data=Ce.data,oe._resolvedData=Ce._resolvedData),zi(I,D,oe.component?Tt?Tt.children:null:M,C,O),an&&Tt&&Tt.outlet&&Tt.outlet.isActivated&&O.canDeactivateChecks.push(new Qo(Tt.outlet.component,Ce))}else Ce&&z(D,Tt,O),O.canActivateChecks.push(new ca(C)),zi(I,null,oe.component?Tt?Tt.children:null:M,C,O)})(Ce,oe[Ce.value.outlet],M,C.concat([Ce.value]),O),delete oe[Ce.value.outlet]}),Object.entries(oe).forEach(([Ce,Tt])=>z(Tt,M.getContext(Ce),O)),O}function z(I,D,M){const C=at(I),O=I.value;Object.entries(C).forEach(([oe,Ce])=>{z(Ce,O.component?D?D.children.getContext(oe):null:D,M)}),M.canDeactivateChecks.push(new Qo(O.component&&D&&D.outlet&&D.outlet.isActivated?D.outlet.component:null,O))}function N(I){return"function"==typeof I}function Zi(I){return I instanceof Ae||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,At.n)(I=>(0,Je.z)(I.map(D=>D.pipe((0,He.s)(1),function Zt(...I){const D=(0,Et.lI)(I);return(0,be.N)((M,C)=>{(D?lt(I,M,D):lt(I,M)).subscribe(C)})}(ao)))).pipe((0,Bt.T)(D=>{for(const M of D)if(!0!==M){if(M===ao)return ao;if(!1===M||M instanceof er)return M}return!0}),(0,tt.p)(D=>D!==ao),(0,He.s)(1)))}function cr(I){return(0,pt.F)((0,re.M)(D=>{if(Mi(D))throw Ai(0,D)}),(0,Bt.T)(D=>!0===D))}class xi{constructor(D){this.segmentGroup=D||null}}class ro extends Error{constructor(D){super(),this.urlTree=D}}function oi(I){return _t(new xi(I))}class Ll{constructor(D,M){this.urlSerializer=D,this.urlTree=M}lineralizeSegments(D,M){let C=[],O=M.root;for(;;){if(C=C.concat(O.segments),0===O.numberOfChildren)return(0,te.of)(C);if(O.numberOfChildren>1||!O.children[wn])return _t(new c.wOt(4e3,!1));O=O.children[wn]}}applyRedirectCommands(D,M,C){const O=this.applyRedirectCreateUrlTree(M,this.urlSerializer.parse(M),D,C);if(M.startsWith("/"))throw new ro(O);return O}applyRedirectCreateUrlTree(D,M,C,O){const oe=this.createSegmentGroup(D,M.root,C,O);return new er(oe,this.createQueryParams(M.queryParams,this.urlTree.queryParams),M.fragment)}createQueryParams(D,M){const C={};return Object.entries(D).forEach(([O,oe])=>{if("string"==typeof oe&&oe.startsWith(":")){const Tt=oe.substring(1);C[O]=M[Tt]}else C[O]=oe}),C}createSegmentGroup(D,M,C,O){const oe=this.createSegments(D,M.segments,C,O);let Ce={};return Object.entries(M.children).forEach(([Tt,an])=>{Ce[Tt]=this.createSegmentGroup(D,an,C,O)}),new Mn(oe,Ce)}createSegments(D,M,C,O){return M.map(oe=>oe.path.startsWith(":")?this.findPosParam(D,oe,O):this.findOrReturn(oe,C))}findPosParam(D,M,C){const O=C[M.path.substring(1)];if(!O)throw new c.wOt(4001,!1);return O}findOrReturn(D,M){let C=0;for(const O of M){if(O.path===D.path)return M.splice(C),O;C++}return D}}const Sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,D,M,C,O){const oe=ys(I,D,M);return oe.matched?(C=function Xo(I,D){var M;return I.providers&&!I._injector&&(I._injector=(0,c.Ol2)(I.providers,D,`Route: ${I.path}`)),null!==(M=I._injector)&&void 0!==M?M:D}(D,C),function Vi(I,D,M,C){const O=D.canMatch;if(!O||0===O.length)return(0,te.of)(!0);const oe=O.map(Ce=>{const Tt=So(Ce,I);return An(function hr(I){return I&&N(I.canMatch)}(Tt)?Tt.canMatch(D,M):(0,c.N4e)(I,()=>Tt(D,M)))});return(0,te.of)(oe).pipe(eo(),cr())}(C,D,M).pipe((0,Bt.T)(Ce=>!0===Ce?oe:{...Sr}))):(0,te.of)(oe)}function ys(I,D,M){var C,O;if("**"===D.path)return function ka(I){return{matched:!0,parameters:I.length>0?Cn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(M);if(""===D.path)return"full"===D.pathMatch&&(I.hasChildren()||M.length>0)?{...Sr}:{matched:!0,consumedSegments:[],remainingSegments:M,parameters:{},positionalParamSegments:{}};const Ce=(D.matcher||wt)(M,I,D);if(!Ce)return{...Sr};const Tt={};Object.entries(null!==(C=Ce.posParams)&&void 0!==C?C:{}).forEach(([Pt,xn])=>{Tt[Pt]=xn.path});const an=Ce.consumed.length>0?{...Tt,...Ce.consumed[Ce.consumed.length-1].parameters}:Tt;return{matched:!0,consumedSegments:Ce.consumed,remainingSegments:M.slice(Ce.consumed.length),parameters:an,positionalParamSegments:null!==(O=Ce.posParams)&&void 0!==O?O:{}}}function js(I,D,M,C){return M.length>0&&function Vl(I,D,M){return M.some(C=>fa(I,D,C)&&so(C)!==wn)}(I,M,C)?{segmentGroup:new Mn(D,Fa(C,new Mn(M,I.children))),slicedSegments:[]}:0===M.length&&function Ul(I,D,M){return M.some(C=>fa(I,D,C))}(I,M,C)?{segmentGroup:new Mn(I.segments,cl(I,M,C,I.children)),slicedSegments:M}:{segmentGroup:new Mn(I.segments,I.children),slicedSegments:M}}function cl(I,D,M,C){const O={};for(const oe of M)if(fa(I,D,oe)&&!C[so(oe)]){const Ce=new Mn([],{});O[so(oe)]=Ce}return{...C,...O}}function Fa(I,D){const M={};M[wn]=D;for(const C of I)if(""===C.path&&so(C)!==wn){const O=new Mn([],{});M[so(C)]=O}return M}function fa(I,D,M){return(!(I.hasChildren()||D.length>0)||"full"!==M.pathMatch)&&""===M.path}class Zo{}class es{constructor(D,M,C,O,oe,Ce,Tt){this.injector=D,this.configLoader=M,this.rootComponentType=C,this.config=O,this.urlTree=oe,this.paramsInheritanceStrategy=Ce,this.urlSerializer=Tt,this.applyRedirects=new Ll(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(D){return new c.wOt(4002,`'${D.segmentGroup}'`)}recognize(){const D=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(D).pipe((0,Bt.T)(M=>{const C=new We([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},wn,this.rootComponentType,null,{}),O=new ye(C,M),oe=new vt("",O),Ce=function mi(I,D,M=null,C=null){return It(Nt(I),D,M,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return Ce.queryParams=this.urlTree.queryParams,oe.url=this.urlSerializer.serialize(Ce),this.inheritParamsAndData(oe._root,null),{state:oe,tree:Ce}}))}match(D){return this.processSegmentGroup(this.injector,this.config,D,wn).pipe(Re(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof xi?this.noMatchError(C):C}))}inheritParamsAndData(D,M){const C=D.value,O=Me(C,M,this.paramsInheritanceStrategy);C.params=Object.freeze(O.params),C.data=Object.freeze(O.data),D.children.forEach(oe=>this.inheritParamsAndData(oe,C))}processSegmentGroup(D,M,C,O){return 0===C.segments.length&&C.hasChildren()?this.processChildren(D,M,C):this.processSegment(D,M,C,C.segments,O,!0).pipe((0,Bt.T)(oe=>oe instanceof ye?[oe]:[]))}processChildren(D,M,C){const O=[];for(const oe of Object.keys(C.children))"primary"===oe?O.unshift(oe):O.push(oe);return(0,Ee.H)(O).pipe((0,J.H)(oe=>{const Ce=C.children[oe],Tt=function ua(I,D){const M=I.filter(C=>so(C)===D);return M.push(...I.filter(C=>so(C)!==D)),M}(M,oe);return this.processSegmentGroup(D,Tt,Ce,oe)}),function Jt(I,D){return(0,be.N)(function Ge(I,D,M,C,O){return(oe,Ce)=>{let Tt=M,an=D,Pt=0;oe.subscribe((0,Ve._)(Ce,xn=>{const br=Pt++;an=Tt?I(an,xn,br):(Tt=!0,xn),C&&Ce.next(an)},O&&(()=>{Tt&&Ce.next(an),Ce.complete()})))}}(I,D,arguments.length>=2,!0))}((oe,Ce)=>(oe.push(...Ce),oe)),De(null),function rn(I,D){const M=arguments.length>=2;return C=>C.pipe(I?(0,tt.p)((O,oe)=>I(O,oe,C)):Ke.D,yn(1),M?De(D):j(()=>new Ae))}(),(0,je.Z)(oe=>{if(null===oe)return oi(C);const Ce=Uo(oe);return function wu(I){I.sort((D,M)=>D.value.outlet===wn?-1:M.value.outlet===wn?1:D.value.outlet.localeCompare(M.value.outlet))}(Ce),(0,te.of)(Ce)}))}processSegment(D,M,C,O,oe,Ce){return(0,Ee.H)(M).pipe((0,J.H)(Tt=>{var an;return this.processSegmentAgainstRoute(null!==(an=Tt._injector)&&void 0!==an?an:D,M,Tt,C,O,oe,Ce).pipe(Re(Pt=>{if(Pt instanceof xi)return(0,te.of)(null);throw Pt}))}),ie(Tt=>!!Tt),Re(Tt=>{if(Zi(Tt))return function ws(I,D,M){return 0===D.length&&!I.children[M]}(C,O,oe)?(0,te.of)(new Zo):oi(C);throw Tt}))}processSegmentAgainstRoute(D,M,C,O,oe,Ce,Tt){return function Is(I,D,M,C){return!!(so(I)===C||C!==wn&&fa(D,M,I))&&ys(D,I,M).matched}(C,O,oe,Ce)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(D,O,C,oe,Ce):this.allowRedirects&&Tt?this.expandSegmentAgainstRouteUsingRedirect(D,O,M,C,oe,Ce):oi(O):oi(O)}expandSegmentAgainstRouteUsingRedirect(D,M,C,O,oe,Ce){const{matched:Tt,consumedSegments:an,positionalParamSegments:Pt,remainingSegments:xn}=ys(M,O,oe);if(!Tt)return oi(M);O.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const br=this.applyRedirects.applyRedirectCommands(an,O.redirectTo,Pt);return this.applyRedirects.lineralizeSegments(O,br).pipe((0,je.Z)(ki=>this.processSegment(D,C,M,ki.concat(xn),Ce,!1)))}matchSegmentAgainstRoute(D,M,C,O,oe){const Ce=ul(M,C,O,D);return"**"===C.path&&(M.children={}),Ce.pipe((0,At.n)(Tt=>{var an;return Tt.matched?(D=null!==(an=C._injector)&&void 0!==an?an:D,this.getChildConfig(D,C,O).pipe((0,At.n)(({routes:Pt})=>{var xn,br,ki;const ti=null!==(xn=C._loadedInjector)&&void 0!==xn?xn:D,{consumedSegments:Xi,remainingSegments:jo,parameters:za}=Tt,Ha=new We(Xi,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(br=null!==(ki=C.component)&&void 0!==ki?ki:C._loadedComponent)&&void 0!==br?br:null,C,function Ni(I){return I.resolve||{}}(C)),{segmentGroup:Io,slicedSegments:hl}=js(M,Xi,jo,Pt);if(0===hl.length&&Io.hasChildren())return this.processChildren(ti,Pt,Io).pipe((0,Bt.T)(Ps=>null===Ps?null:new ye(Ha,Ps)));if(0===Pt.length&&0===hl.length)return(0,te.of)(new ye(Ha,[]));const Wl=so(C)===oe;return this.processSegment(ti,Pt,Io,hl,Wl?wn:oe,!0).pipe((0,Bt.T)(Ps=>new ye(Ha,Ps instanceof ye?[Ps]:[])))}))):oi(M)}))}getChildConfig(D,M,C){return M.children?(0,te.of)({routes:M.children,injector:D}):M.loadChildren?void 0!==M._loadedRoutes?(0,te.of)({routes:M._loadedRoutes,injector:M._loadedInjector}):function ha(I,D,M,C){const O=D.canLoad;if(void 0===O||0===O.length)return(0,te.of)(!0);const oe=O.map(Ce=>{const Tt=So(Ce,I);return An(function G(I){return I&&N(I.canLoad)}(Tt)?Tt.canLoad(D,M):(0,c.N4e)(I,()=>Tt(D,M)))});return(0,te.of)(oe).pipe(eo(),cr())}(D,M,C).pipe((0,je.Z)(O=>O?this.configLoader.loadChildren(D,M).pipe((0,re.M)(oe=>{M._loadedRoutes=oe.routes,M._loadedInjector=oe.injector})):function _s(I){return _t(no(!1,Er.GuardRejected))}())):(0,te.of)({routes:[],injector:D})}}function $l(I){const D=I.value.routeConfig;return D&&""===D.path}function Uo(I){const D=[],M=new Set;for(const C of I){if(!$l(C)){D.push(C);continue}const O=D.find(oe=>C.value.routeConfig===oe.value.routeConfig);void 0!==O?(O.children.push(...C.children),M.add(O)):D.push(C)}for(const C of M){const O=Uo(C.children);D.push(new ye(C.value,O))}return D.filter(C=>!M.has(C))}function ga(I){const D=I.children.map(M=>ga(M)).flat();return[I,...D]}function ma(I){return(0,At.n)(D=>{const M=I(D);return M?(0,Ee.H)(M).pipe((0,Bt.T)(()=>D)):(0,te.of)(D)})}let Ms=(()=>{var I;class D{buildTitle(C){let O,oe=C.root;for(;void 0!==oe;){var Ce;O=null!==(Ce=this.getResolvedTitleForRoute(oe))&&void 0!==Ce?Ce:O,oe=oe.children.find(Tt=>Tt.outlet===wn)}return O}getResolvedTitleForRoute(C){return C.data[or]}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(lo),providedIn:"root"}),D})(),lo=(()=>{var I;class D extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const O=this.buildTitle(C);void 0!==O&&this.title.setTitle(O)}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO(Xn.hE))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const Hs=new c.nKC("",{providedIn:"root",factory:()=>({})}),Es=new c.nKC("");let T=(()=>{var I;class D{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,te.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const O=An(C.loadComponent()).pipe((0,Bt.T)(F),(0,re.M)(Ce=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=Ce}),(0,Nn.j)(()=>{this.componentLoaders.delete(C)})),oe=new se(O,()=>new ze.B).pipe(Te());return this.componentLoaders.set(C,oe),oe}loadChildren(C,O){if(this.childrenLoaders.get(O))return this.childrenLoaders.get(O);if(O._loadedRoutes)return(0,te.of)({routes:O._loadedRoutes,injector:O._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(O);const Ce=function B(I,D,M,C){return An(I.loadChildren()).pipe((0,Bt.T)(F),(0,je.Z)(O=>O instanceof c.Co$||Array.isArray(O)?(0,te.of)(O):(0,Ee.H)(D.compileModuleAsync(O))),(0,Bt.T)(O=>{C&&C(I);let oe,Ce,Tt=!1;return Array.isArray(O)?(Ce=O,!0):(oe=O.create(M).injector,Ce=oe.get(Es,[],{optional:!0,self:!0}).flat()),{routes:Ce.map(Us),injector:oe}}))}(O,this.compiler,C,this.onLoadEndListener).pipe((0,Nn.j)(()=>{this.childrenLoaders.delete(O)})),Tt=new se(Ce,()=>new ze.B).pipe(Te());return this.childrenLoaders.set(O,Tt),Tt}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();function F(I){return function xe(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let ge=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)($e),providedIn:"root"}),D})(),$e=(()=>{var I;class D{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,O){return C}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const $t=new c.nKC(""),mn=new c.nKC("");function Kn(I,D,M){const C=I.get(mn),O=I.get(gt.qQ);return I.get(c.SKi).runOutsideAngular(()=>{if(!O.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(Pt=>setTimeout(Pt));let oe;const Ce=new Promise(Pt=>{oe=Pt}),Tt=O.startViewTransition(()=>(oe(),function Bn(I){return new Promise(D=>{(0,c.mal)(D,{injector:I})})}(I))),{onViewTransitionCreated:an}=C;return an&&(0,c.N4e)(I,()=>an({transition:Tt,from:D,to:M})),Ce})}let Xr=(()=>{var I;class D{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ze.B,this.transitionAbortSubject=new ze.B,this.configLoader=(0,c.WQX)(T),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(Zr),this.rootContexts=(0,c.WQX)(S),this.location=(0,c.WQX)(gt.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(Gn,{optional:!0}),this.titleStrategy=(0,c.WQX)(Ms),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(ge),this.createViewTransition=(0,c.WQX)($t,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,te.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=oe=>this.events.next(new ur(oe)),this.configLoader.onLoadStartListener=oe=>this.events.next(new li(oe))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var O;const oe=++this.navigationId;null===(O=this.transitions)||void 0===O||O.next({...this.transitions.value,...C,id:oe})}setupNavigations(C,O,oe){return this.transitions=new qe.t({id:0,currentUrlTree:O,currentRawUrl:O,extractedUrl:this.urlHandlingStrategy.extract(O),urlAfterRedirects:this.urlHandlingStrategy.extract(O),rawUrl:O,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ir,restoredState:null,currentSnapshot:oe.snapshot,targetSnapshot:null,currentRouterState:oe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,tt.p)(Ce=>0!==Ce.id),(0,Bt.T)(Ce=>({...Ce,extractedUrl:this.urlHandlingStrategy.extract(Ce.rawUrl)})),(0,At.n)(Ce=>{let Tt=!1,an=!1;return(0,te.of)(Ce).pipe((0,At.n)(Pt=>{var xn;if(this.navigationId>Ce.id)return this.cancelNavigationTransition(Ce,"",Er.SupersededByNewNavigation),Ne.w;this.currentTransition=Ce,this.currentNavigation={id:Pt.id,initialUrl:Pt.rawUrl,extractedUrl:Pt.extractedUrl,trigger:Pt.source,extras:Pt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const br=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),ki=null!==(xn=Pt.extras.onSameUrlNavigation)&&void 0!==xn?xn:C.onSameUrlNavigation;if(!br&&"reload"!==ki){const ti="";return this.events.next(new kn(Pt.id,this.urlSerializer.serialize(Pt.rawUrl),ti,pr.IgnoredSameUrlNavigation)),Pt.resolve(null),Ne.w}if(this.urlHandlingStrategy.shouldProcessUrl(Pt.rawUrl))return(0,te.of)(Pt).pipe((0,At.n)(ti=>{var Xi,jo;const za=null===(Xi=this.transitions)||void 0===Xi?void 0:Xi.getValue();return this.events.next(new Wr(ti.id,this.urlSerializer.serialize(ti.extractedUrl),ti.source,ti.restoredState)),za!==(null===(jo=this.transitions)||void 0===jo?void 0:jo.getValue())?Ne.w:Promise.resolve(ti)}),function pa(I,D,M,C,O,oe){return(0,je.Z)(Ce=>function Ss(I,D,M,C,O,oe,Ce="emptyOnly"){return new es(I,D,M,C,O,Ce,oe).recognize()}(I,D,M,C,Ce.extractedUrl,O,oe).pipe((0,Bt.T)(({state:Tt,tree:an})=>({...Ce,targetSnapshot:Tt,urlAfterRedirects:an}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,re.M)(ti=>{Ce.targetSnapshot=ti.targetSnapshot,Ce.urlAfterRedirects=ti.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ti.urlAfterRedirects};const Xi=new _o(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(Xi)}));if(br&&this.urlHandlingStrategy.shouldProcessUrl(Pt.currentRawUrl)){const{id:ti,extractedUrl:Xi,source:jo,restoredState:za,extras:Ha}=Pt,Io=new Wr(ti,this.urlSerializer.serialize(Xi),jo,za);this.events.next(Io);const hl=Ei(this.rootComponentType).snapshot;return this.currentTransition=Ce={...Pt,targetSnapshot:hl,urlAfterRedirects:Xi,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Xi,(0,te.of)(Ce)}{const ti="";return this.events.next(new kn(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),ti,pr.IgnoredByUrlHandlingStrategy)),Pt.resolve(null),Ne.w}}),(0,re.M)(Pt=>{const xn=new ai(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects),Pt.targetSnapshot);this.events.next(xn)}),(0,Bt.T)(Pt=>(this.currentTransition=Ce={...Pt,guards:bs(Pt.targetSnapshot,Pt.currentSnapshot,this.rootContexts)},Ce)),function Jo(I,D){return(0,je.Z)(M=>{const{targetSnapshot:C,currentSnapshot:O,guards:{canActivateChecks:oe,canDeactivateChecks:Ce}}=M;return 0===Ce.length&&0===oe.length?(0,te.of)({...M,guardsResult:!0}):function Na(I,D,M,C){return(0,Ee.H)(I).pipe((0,je.Z)(O=>function ls(I,D,M,C,O){const oe=D&&D.routeConfig?D.routeConfig.canDeactivate:null;if(!oe||0===oe.length)return(0,te.of)(!0);const Ce=oe.map(Tt=>{var an;const Pt=null!==(an=gs(D))&&void 0!==an?an:O,xn=So(Tt,Pt);return An(function Un(I){return I&&N(I.canDeactivate)}(xn)?xn.canDeactivate(I,D,M,C):(0,c.N4e)(Pt,()=>xn(I,D,M,C))).pipe(ie())});return(0,te.of)(Ce).pipe(eo())}(O.component,O.route,M,D,C)),ie(O=>!0!==O,!0))}(Ce,C,O,I).pipe((0,je.Z)(Tt=>Tt&&function _e(I){return"boolean"==typeof I}(Tt)?function vs(I,D,M,C){return(0,Ee.H)(D).pipe((0,J.H)(O=>lt(function Oa(I,D){return null!==I&&D&&D(new Kr(I)),(0,te.of)(!0)}(O.route.parent,C),function Bs(I,D){return null!==I&&D&&D(new Yn(I)),(0,te.of)(!0)}(O.route,C),function al(I,D,M){const C=D[D.length-1],oe=D.slice(0,D.length-1).reverse().map(Ce=>function Yo(I){const D=I.routeConfig?I.routeConfig.canActivateChild:null;return D&&0!==D.length?{node:I,guards:D}:null}(Ce)).filter(Ce=>null!==Ce).map(Ce=>xt(()=>{const Tt=Ce.guards.map(an=>{var Pt;const xn=null!==(Pt=gs(Ce.node))&&void 0!==Pt?Pt:M,br=So(an,xn);return An(function fn(I){return I&&N(I.canActivateChild)}(br)?br.canActivateChild(C,I):(0,c.N4e)(xn,()=>br(C,I))).pipe(ie())});return(0,te.of)(Tt).pipe(eo())}));return(0,te.of)(oe).pipe(eo())}(I,O.path,M),function sl(I,D,M){const C=D.routeConfig?D.routeConfig.canActivate:null;if(!C||0===C.length)return(0,te.of)(!0);const O=C.map(oe=>xt(()=>{var Ce;const Tt=null!==(Ce=gs(D))&&void 0!==Ce?Ce:M,an=So(oe,Tt);return An(function Pe(I){return I&&N(I.canActivate)}(an)?an.canActivate(D,I):(0,c.N4e)(Tt,()=>an(D,I))).pipe(ie())}));return(0,te.of)(O).pipe(eo())}(I,O.route,M))),ie(O=>!0!==O,!0))}(C,oe,I,D):(0,te.of)(Tt)),(0,Bt.T)(Tt=>({...M,guardsResult:Tt})))})}(this.environmentInjector,Pt=>this.events.next(Pt)),(0,re.M)(Pt=>{if(Ce.guardsResult=Pt.guardsResult,Mi(Pt.guardsResult))throw Ai(0,Pt.guardsResult);const xn=new vi(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects),Pt.targetSnapshot,!!Pt.guardsResult);this.events.next(xn)}),(0,tt.p)(Pt=>!!Pt.guardsResult||(this.cancelNavigationTransition(Pt,"",Er.GuardRejected),!1)),ma(Pt=>{if(Pt.guards.canActivateChecks.length)return(0,te.of)(Pt).pipe((0,re.M)(xn=>{const br=new Co(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(br)}),(0,At.n)(xn=>{let br=!1;return(0,te.of)(xn).pipe(function Bl(I,D){return(0,je.Z)(M=>{const{targetSnapshot:C,guards:{canActivateChecks:O}}=M;if(!O.length)return(0,te.of)(M);const oe=new Set(O.map(an=>an.route)),Ce=new Set;for(const an of oe)if(!Ce.has(an))for(const Pt of ga(an))Ce.add(Pt);let Tt=0;return(0,Ee.H)(Ce).pipe((0,J.H)(an=>oe.has(an)?function La(I,D,M,C){const O=I.routeConfig,oe=I._resolve;return void 0!==(null==O?void 0:O.title)&&!ln(O)&&(oe[or]=O.title),function zs(I,D,M,C){const O=on(I);if(0===O.length)return(0,te.of)({});const oe={};return(0,Ee.H)(O).pipe((0,je.Z)(Ce=>function pc(I,D,M,C){var O;const oe=null!==(O=gs(D))&&void 0!==O?O:C,Ce=So(I,oe);return An(Ce.resolve?Ce.resolve(D,M):(0,c.N4e)(oe,()=>Ce(D,M)))}(I[Ce],D,M,C).pipe(ie(),(0,re.M)(Tt=>{oe[Ce]=Tt}))),yn(1),function Fn(I){return(0,Bt.T)(()=>I)}(oe),Re(Ce=>Zi(Ce)?Ne.w:_t(Ce)))}(oe,I,D,C).pipe((0,Bt.T)(Ce=>(I._resolvedData=Ce,I.data=Me(I,I.parent,M).resolve,null)))}(an,C,I,D):(an.data=Me(an,an.parent,I).resolve,(0,te.of)(void 0))),(0,re.M)(()=>Tt++),yn(1),(0,je.Z)(an=>Tt===Ce.size?(0,te.of)(M):Ne.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,re.M)({next:()=>br=!0,complete:()=>{br||this.cancelNavigationTransition(xn,"",Er.NoDataFromResolver)}}))}),(0,re.M)(xn=>{const br=new Wo(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(br)}))}),ma(Pt=>{const xn=br=>{var ki;const ti=[];null!==(ki=br.routeConfig)&&void 0!==ki&&ki.loadComponent&&!br.routeConfig._loadedComponent&&ti.push(this.configLoader.loadComponent(br.routeConfig).pipe((0,re.M)(Xi=>{br.component=Xi}),(0,Bt.T)(()=>{})));for(const Xi of br.children)ti.push(...xn(Xi));return ti};return(0,Je.z)(xn(Pt.targetSnapshot.root)).pipe(De(null),(0,He.s)(1))}),ma(()=>this.afterPreactivation()),(0,At.n)(()=>{var Pt;const{currentSnapshot:xn,targetSnapshot:br}=Ce,ki=null===(Pt=this.createViewTransition)||void 0===Pt?void 0:Pt.call(this,this.environmentInjector,xn.root,br.root);return ki?(0,Ee.H)(ki).pipe((0,Bt.T)(()=>Ce)):(0,te.of)(Ce)}),(0,Bt.T)(Pt=>{const xn=function Ur(I,D,M){const C=Tr(I,D._root,M?M._root:void 0);return new mr(C,D)}(C.routeReuseStrategy,Pt.targetSnapshot,Pt.currentRouterState);return this.currentTransition=Ce={...Pt,targetRouterState:xn},this.currentNavigation.targetRouterState=xn,Ce}),(0,re.M)(()=>{this.events.next(new Do)}),((I,D,M,C)=>(0,Bt.T)(O=>(new $s(D,O.targetRouterState,O.currentRouterState,M,C).activate(I),O)))(this.rootContexts,C.routeReuseStrategy,Pt=>this.events.next(Pt),this.inputBindingEnabled),(0,He.s)(1),(0,re.M)({next:Pt=>{var xn;Tt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Fr(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects))),null===(xn=this.titleStrategy)||void 0===xn||xn.updateTitle(Pt.targetRouterState.snapshot),Pt.resolve(!0)},complete:()=>{Tt=!0}}),function Zn(I){return(0,be.N)((D,M)=>{(0,mt.Tg)(I).subscribe((0,Ve._)(M,()=>M.complete(),qn.l)),!M.closed&&D.subscribe(M)})}(this.transitionAbortSubject.pipe((0,re.M)(Pt=>{throw Pt}))),(0,Nn.j)(()=>{var Pt;!Tt&&!an&&this.cancelNavigationTransition(Ce,"",Er.SupersededByNewNavigation),(null===(Pt=this.currentTransition)||void 0===Pt?void 0:Pt.id)===Ce.id&&(this.currentNavigation=null,this.currentTransition=null)}),Re(Pt=>{if(an=!0,Dr(Pt))this.events.next(new ei(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),Pt.message,Pt.cancellationCode)),function Ko(I){return Dr(I)&&Mi(I.url)}(Pt)?this.events.next(new co(Pt.url)):Ce.resolve(!1);else{var xn;this.events.next(new Vn(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),Pt,null!==(xn=Ce.targetSnapshot)&&void 0!==xn?xn:void 0));try{Ce.resolve(C.errorHandler(Pt))}catch(br){this.options.resolveNavigationPromiseOnError?Ce.resolve(!1):Ce.reject(br)}}return Ne.w}))}))}cancelNavigationTransition(C,O,oe){const Ce=new ei(C.id,this.urlSerializer.serialize(C.extractedUrl),O,oe);this.events.next(Ce),C.resolve(!1)}isUpdatingInternalState(){var C,O;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(O=this.currentTransition)||void 0===O?void 0:O.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,O;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())&&!(null!==(O=this.currentTransition)&&void 0!==O&&O.extras.skipLocationChange)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();function Nr(I){return I!==Ir}let fi=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(Ui),providedIn:"root"}),D})();class qr{shouldDetach(D){return!1}store(D,M){}shouldAttach(D){return!1}retrieve(D){return null}shouldReuseRoute(D,M){return D.routeConfig===M.routeConfig}}let Ui=(()=>{var I;class D extends qr{}return(I=D).\u0275fac=(()=>{let M;return function(O){return(M||(M=c.xGo(I)))(O||I)}})(),I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),si=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(In),providedIn:"root"}),D})(),In=(()=>{var I;class D extends si{constructor(){super(...arguments),this.location=(0,c.WQX)(gt.aZ),this.urlSerializer=(0,c.WQX)(Zr),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(ge),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new er,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ei(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,O;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(O=this.restoredState())||void 0===O?void 0:O.\u0275routerPageId)&&void 0!==C?C:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(C){return this.location.subscribe(O=>{"popstate"===O.type&&C(O.url,O.state)})}handleRouterEvent(C,O){if(C instanceof Wr)this.stateMemento=this.createStateMemento();else if(C instanceof kn)this.rawUrlTree=O.initialUrl;else if(C instanceof _o){if("eager"===this.urlUpdateStrategy&&!O.extras.skipLocationChange){const oe=this.urlHandlingStrategy.merge(O.finalUrl,O.initialUrl);this.setBrowserUrl(oe,O)}}else C instanceof Do?(this.currentUrlTree=O.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(O.finalUrl,O.initialUrl),this.routerState=O.targetRouterState,"deferred"===this.urlUpdateStrategy&&(O.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,O))):C instanceof ei&&(C.code===Er.GuardRejected||C.code===Er.NoDataFromResolver)?this.restoreHistory(O):C instanceof Vn?this.restoreHistory(O,!0):C instanceof Fr&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,O){const oe=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(oe)||O.extras.replaceUrl){const Tt={...O.extras.state,...this.generateNgRouterState(O.id,this.browserPageId)};this.location.replaceState(oe,"",Tt)}else{const Ce={...O.extras.state,...this.generateNgRouterState(O.id,this.browserPageId+1)};this.location.go(oe,"",Ce)}}restoreHistory(C,O=!1){if("computed"===this.canceledNavigationResolution){const Ce=this.currentPageId-this.browserPageId;0!==Ce?this.location.historyGo(Ce):this.currentUrlTree===C.finalUrl&&0===Ce&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(O&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var O;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(O=C.finalUrl)&&void 0!==O?O:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,O){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:O}:{navigationId:C}}}return(I=D).\u0275fac=(()=>{let M;return function(O){return(M||(M=c.xGo(I)))(O||I)}})(),I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();var zn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(zn||{});function ci(I,D){I.events.pipe((0,tt.p)(M=>M instanceof Fr||M instanceof ei||M instanceof Vn||M instanceof kn),(0,Bt.T)(M=>M instanceof Fr||M instanceof kn?zn.COMPLETE:M instanceof ei&&(M.code===Er.Redirect||M.code===Er.SupersededByNewNavigation)?zn.REDIRECTING:zn.FAILED),(0,tt.p)(M=>M!==zn.REDIRECTING),(0,He.s)(1)).subscribe(()=>{D()})}function Gi(I){throw I}const wi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $i=(()=>{var I;class D{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,O;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(si),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Xr),this.urlSerializer=(0,c.WQX)(Zr),this.location=(0,c.WQX)(gt.aZ),this.urlHandlingStrategy=(0,c.WQX)(ge),this._events=new ze.B,this.errorHandler=this.options.errorHandler||Gi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(fi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(O=(0,c.WQX)(Es,{optional:!0}))||void 0===O?void 0:O.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,c.WQX)(Gn,{optional:!0}),this.eventsSubscription=new Qe.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:oe=>{this.console.warn(oe)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(O=>{try{const oe=this.navigationTransitions.currentTransition,Ce=this.navigationTransitions.currentNavigation;if(null!==oe&&null!==Ce)if(this.stateManager.handleRouterEvent(O,Ce),O instanceof ei&&O.code!==Er.Redirect&&O.code!==Er.SupersededByNewNavigation)this.navigated=!0;else if(O instanceof Fr)this.navigated=!0;else if(O instanceof co){const Tt=this.urlHandlingStrategy.merge(O.url,oe.currentRawUrl),an={info:oe.extras.info,skipLocationChange:oe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Nr(oe.source)};this.scheduleNavigation(Tt,Ir,null,an,{resolve:oe.resolve,reject:oe.reject,promise:oe.promise})}(function Hi(I){return!(I instanceof Do||I instanceof co)})(O)&&this._events.next(O)}catch(oe){this.navigationTransitions.transitionAbortSubject.next(oe)}});this.eventsSubscription.add(C)}resetRootComponentType(C){this.routerState.root.component=C,this.navigationTransitions.rootComponentType=C}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ir,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((O,oe)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(O,"popstate",oe)},0)}))}navigateToSyncWithBrowser(C,O,oe){const Ce={replaceUrl:!0},Tt=null!=oe&&oe.navigationId?oe:null;if(oe){const Pt={...oe};delete Pt.navigationId,delete Pt.\u0275routerPageId,0!==Object.keys(Pt).length&&(Ce.state=Pt)}const an=this.parseUrl(C);this.scheduleNavigation(an,O,Tt,Ce)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(C){this.config=C.map(Us),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(C,O={}){const{relativeTo:oe,queryParams:Ce,fragment:Tt,queryParamsHandling:an,preserveFragment:Pt}=O,xn=Pt?this.currentUrlTree.fragment:Tt;let ki,br=null;switch(an){case"merge":br={...this.currentUrlTree.queryParams,...Ce};break;case"preserve":br=this.currentUrlTree.queryParams;break;default:br=Ce||null}null!==br&&(br=this.removeEmptyProps(br));try{ki=Nt(oe?oe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),ki=this.currentUrlTree.root}return It(ki,C,br,null!=xn?xn:null)}navigateByUrl(C,O={skipLocationChange:!1}){const oe=Mi(C)?C:this.parseUrl(C),Ce=this.urlHandlingStrategy.merge(oe,this.rawUrlTree);return this.scheduleNavigation(Ce,Ir,null,O)}navigate(C,O={skipLocationChange:!1}){return function pi(I){for(let D=0;D(null!=Ce&&(O[oe]=Ce),O),{})}scheduleNavigation(C,O,oe,Ce,Tt){if(this.disposed)return Promise.resolve(!1);let an,Pt,xn;Tt?(an=Tt.resolve,Pt=Tt.reject,xn=Tt.promise):xn=new Promise((ki,ti)=>{an=ki,Pt=ti});const br=this.pendingTasks.add();return ci(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(br))}),this.navigationTransitions.handleNavigationRequest({source:O,restoredState:oe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:Ce,resolve:an,reject:Pt,promise:xn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xn.catch(ki=>Promise.reject(ki))}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),$o=(()=>{var I;class D{constructor(C,O,oe,Ce,Tt,an){var Pt;this.router=C,this.route=O,this.tabIndexAttribute=oe,this.renderer=Ce,this.el=Tt,this.locationStrategy=an,this.href=null,this.commands=null,this.onChanges=new ze.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const xn=null===(Pt=Tt.nativeElement.tagName)||void 0===Pt?void 0:Pt.toLowerCase();this.isAnchorElement="a"===xn||"area"===xn,this.isAnchorElement?this.subscription=C.events.subscribe(br=>{br instanceof Fr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(C){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",C)}ngOnChanges(C){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(C){null!=C?(this.commands=Array.isArray(C)?C:[C],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(C,O,oe,Ce,Tt){const an=this.urlTree;return!!(null===an||this.isAnchorElement&&(0!==C||O||oe||Ce||Tt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(an,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var C;null===(C=this.subscription)||void 0===C||C.unsubscribe()}updateHref(){var C;const O=this.urlTree;this.href=null!==O&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(O)):null;const oe=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",oe)}applyAttributeValue(C,O){const oe=this.renderer,Ce=this.el.nativeElement;null!==O?oe.setAttribute(Ce,C,O):oe.removeAttribute(Ce,C)}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})}}return(I=D).\u0275fac=function(C){return new(C||I)(c.rXU($i),c.rXU(ue),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(gt.hb))},I.\u0275dir=c.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,O){1&C&&c.bIt("click",function(Ce){return O.onClick(Ce.button,Ce.ctrlKey,Ce.shiftKey,Ce.altKey,Ce.metaKey)}),2&C&&c.BMQ("target",O.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),D})();class gc{}let Ua=(()=>{var I;class D{preload(C,O){return O().pipe(Re(()=>(0,te.of)(null)))}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),va=(()=>{var I;class D{constructor(C,O,oe,Ce,Tt){this.router=C,this.injector=oe,this.preloadingStrategy=Ce,this.loader=Tt}setUpPreloading(){this.subscription=this.router.events.pipe((0,tt.p)(C=>C instanceof Fr),(0,J.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,O){const oe=[];for(const Pt of O){var Ce,Tt;Pt.providers&&!Pt._injector&&(Pt._injector=(0,c.Ol2)(Pt.providers,C,`Route: ${Pt.path}`));const xn=null!==(Ce=Pt._injector)&&void 0!==Ce?Ce:C,br=null!==(Tt=Pt._loadedInjector)&&void 0!==Tt?Tt:xn;var an;(Pt.loadChildren&&!Pt._loadedRoutes&&void 0===Pt.canLoad||Pt.loadComponent&&!Pt._loadedComponent)&&oe.push(this.preloadConfig(xn,Pt)),(Pt.children||Pt._loadedRoutes)&&oe.push(this.processRoutes(br,null!==(an=Pt.children)&&void 0!==an?an:Pt._loadedRoutes))}return(0,Ee.H)(oe).pipe(Be())}preloadConfig(C,O){return this.preloadingStrategy.preload(O,()=>{let oe;oe=O.loadChildren&&void 0===O.canLoad?this.loader.loadChildren(C,O):(0,te.of)(null);const Ce=oe.pipe((0,je.Z)(Tt=>{var an;return null===Tt?(0,te.of)(void 0):(O._loadedRoutes=Tt.routes,O._loadedInjector=Tt.injector,this.processRoutes(null!==(an=Tt.injector)&&void 0!==an?an:C,Tt.routes))}));if(O.loadComponent&&!O._loadedComponent){const Tt=this.loader.loadComponent(O);return(0,Ee.H)([Ce,Tt]).pipe(Be())}return Ce})}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO($i),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(gc),c.KVO(T))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const ns=new c.nKC("");let Ro=(()=>{var I;class D{constructor(C,O,oe,Ce,Tt={}){this.urlSerializer=C,this.transitions=O,this.viewportScroller=oe,this.zone=Ce,this.options=Tt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Tt.scrollPositionRestoration||(Tt.scrollPositionRestoration="disabled"),Tt.anchorScrolling||(Tt.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(C=>{C instanceof Wr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Fr?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof kn&&C.code===pr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof To&&(C.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(C.position):C.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(C.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(C,O){var oe=this;this.zone.runOutsideAngular((0,f.A)(function*(){yield new Promise(Ce=>{setTimeout(()=>{Ce()}),(0,c.mal)(()=>{Ce()},{injector:oe.environmentInjector})}),oe.zone.run(()=>{oe.transitions.events.next(new To(C,"popstate"===oe.lastSource?oe.store[oe.restoredId]:null,O))})}))}ngOnDestroy(){var C,O;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(O=this.scrollEventsSubscription)||void 0===O||O.unsubscribe()}}return(I=D).\u0275fac=function(C){c.QTQ()},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac}),D})();function Qr(I,D){return{\u0275kind:I,\u0275providers:D}}function ko(){const I=(0,c.WQX)(c.zZn);return D=>{var M,C;const O=I.get(c.o8S);if(D!==O.components[0])return;const oe=I.get($i),Ce=I.get(Bo);1===I.get(ya)&&oe.initialNavigation(),null===(M=I.get(Yr,null,c.$GK.Optional))||void 0===M||M.setUpPreloading(),null===(C=I.get(ns,null,c.$GK.Optional))||void 0===C||C.init(),oe.resetRootComponentType(O.componentTypes[0]),Ce.closed||(Ce.next(),Ce.complete(),Ce.unsubscribe())}}const Bo=new c.nKC("",{factory:()=>new ze.B}),ya=new c.nKC("",{providedIn:"root",factory:()=>1}),Yr=new c.nKC("");function yo(I){return Qr(0,[{provide:Yr,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Qr(9,[{provide:$t,useValue:Kn},{provide:mn,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new c.nKC("ROUTER_FORROOT_GUARD"),Ea=[gt.aZ,{provide:Zr,useClass:zr},$i,S,{provide:ue,useFactory:function jl(I){return I.routerState.root},deps:[$i]},T,[]];let Mu=(()=>{var I;class D{constructor(C){}static forRoot(C,O){return{ngModule:D,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[$i,new c.Xx1,new c.kdw]]},{provide:Hs,useValue:O||{}},null!=O&&O.useHash?{provide:gt.hb,useClass:gt.fw}:{provide:gt.hb,useClass:gt.Sm},{provide:ns,useFactory:()=>{const I=(0,c.WQX)(gt.Xr),D=(0,c.WQX)(c.SKi),M=(0,c.WQX)(Hs),C=(0,c.WQX)(Xr),O=(0,c.WQX)(Zr);return M.scrollOffset&&I.setOffset(M.scrollOffset),new Ro(O,C,I,D,M)}},null!=O&&O.preloadingStrategy?yo(O.preloadingStrategy).\u0275providers:[],null!=O&&O.initialNavigation?Xs(O):[],null!=O&&O.bindToComponentInputs?Qr(8,[Rn,{provide:Gn,useExisting:Rn}]).\u0275providers:[],null!=O&&O.enableViewTransitions?Hl().\u0275providers:[],[{provide:qs,useFactory:ko},{provide:c.iLQ,multi:!0,useExisting:qs}]]}}static forChild(C){return{ngModule:D,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO(Ru,8))},I.\u0275mod=c.$C({type:I}),I.\u0275inj=c.G2t({}),D})();function mc(I){return"guarded"}function Xs(I){return["disabled"===I.initialNavigation?Qr(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const D=(0,c.WQX)($i);return()=>{D.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Qr(2,[{provide:ya,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:D=>{const M=D.get(gt.hj,Promise.resolve());return()=>M.then(()=>new Promise(C=>{const O=D.get($i),oe=D.get(Bo);ci(O,()=>{C(!0)}),D.get(Xr).afterPreactivation=()=>(C(!0),oe.closed?(0,te.of)(void 0):oe),O.initialNavigation()}))}}]).\u0275providers:[]]}const qs=new c.nKC("")},7852:(Dn,Ct,x)=>{"use strict";x.d(Ct,{MF:()=>Zr,j6:()=>Cr,xZ:()=>er,om:()=>kr,Sx:()=>Ye,Dk:()=>yt,Wp:()=>zr,KO:()=>me});var f=x(467),c=x(1362),ce=x(8041),Le=x(1076);const K=(Nt,It)=>It.some(zt=>Nt instanceof zt);let Ee,te;const we=new WeakMap,Ae=new WeakMap,je=new WeakMap,Ke=new WeakMap,Be=new WeakMap;let lt={get(Nt,It,zt){if(Nt instanceof IDBTransaction){if("done"===It)return Ae.get(Nt);if("objectStoreNames"===It)return Nt.objectStoreNames||je.get(Nt);if("store"===It)return zt.objectStoreNames[1]?void 0:zt.objectStore(zt.objectStoreNames[0])}return _t(Nt[It])},set:(Nt,It,zt)=>(Nt[It]=zt,!0),has:(Nt,It)=>Nt instanceof IDBTransaction&&("done"===It||"store"===It)||It in Nt};function pt(Nt){return"function"==typeof Nt?function xt(Nt){return Nt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return te||(te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Nt)?function(...It){return Nt.apply(Ne(this),It),_t(we.get(this))}:function(...It){return _t(Nt.apply(Ne(this),It))}:function(It,...zt){const Tn=Nt.call(Ne(this),It,...zt);return je.set(Tn,It.sort?It.sort():[It]),_t(Tn)}}(Nt):(Nt instanceof IDBTransaction&&function Et(Nt){if(Ae.has(Nt))return;const It=new Promise((zt,Tn)=>{const fe=()=>{Nt.removeEventListener("complete",R),Nt.removeEventListener("error",U),Nt.removeEventListener("abort",U)},R=()=>{zt(),fe()},U=()=>{Tn(Nt.error||new DOMException("AbortError","AbortError")),fe()};Nt.addEventListener("complete",R),Nt.addEventListener("error",U),Nt.addEventListener("abort",U)});Ae.set(Nt,It)}(Nt),K(Nt,function qe(){return Ee||(Ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Nt,lt):Nt)}function _t(Nt){if(Nt instanceof IDBRequest)return function it(Nt){const It=new Promise((zt,Tn)=>{const fe=()=>{Nt.removeEventListener("success",R),Nt.removeEventListener("error",U)},R=()=>{zt(_t(Nt.result)),fe()},U=()=>{Tn(Nt.error),fe()};Nt.addEventListener("success",R),Nt.addEventListener("error",U)});return It.then(zt=>{zt instanceof IDBCursor&&we.set(zt,Nt)}).catch(()=>{}),Be.set(It,Nt),It}(Nt);if(Ke.has(Nt))return Ke.get(Nt);const It=pt(Nt);return It!==Nt&&(Ke.set(Nt,It),Be.set(It,Nt)),It}const Ne=Nt=>Be.get(Nt),Ve=["get","getKey","getAll","getAllKeys","count"],Te=["put","add","delete","clear"],se=new Map;function ze(Nt,It){if(!(Nt instanceof IDBDatabase)||It in Nt||"string"!=typeof It)return;if(se.get(It))return se.get(It);const zt=It.replace(/FromIndex$/,""),Tn=It!==zt,fe=Te.includes(zt);if(!(zt in(Tn?IDBIndex:IDBObjectStore).prototype)||!fe&&!Ve.includes(zt))return;const R=function(){var U=(0,f.A)(function*(ee,...$){const le=this.transaction(ee,fe?"readwrite":"readonly");let Ue=le.store;return Tn&&(Ue=Ue.index($.shift())),(yield Promise.all([Ue[zt](...$),fe&&le.done]))[0]});return function($){return U.apply(this,arguments)}}();return se.set(It,R),R}!function mt(Nt){lt=Nt(lt)}(Nt=>({...Nt,get:(It,zt,Tn)=>ze(It,zt)||Nt.get(It,zt,Tn),has:(It,zt)=>!!ze(It,zt)||Nt.has(It,zt)}));class gt{constructor(It){this.container=It}getPlatformInfoString(){return this.container.getProviders().map(zt=>{if(function Bt(Nt){const It=Nt.getComponent();return"VERSION"===(null==It?void 0:It.type)}(zt)){const Tn=zt.getImmediate();return`${Tn.library}/${Tn.version}`}return null}).filter(zt=>zt).join(" ")}}const At="@firebase/app",Zt=new ce.Vy("@firebase/app"),Cn="[DEFAULT]",An={[At]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},sn=new Map,Kt=new Map,fr=new Map;function Rr(Nt,It){try{Nt.container.addComponent(It)}catch(zt){Zt.debug(`Component ${It.name} failed to register with FirebaseApp ${Nt.name}`,zt)}}function kr(Nt){const It=Nt.name;if(fr.has(It))return Zt.debug(`There were multiple attempts to register component ${It}.`),!1;fr.set(It,Nt);for(const zt of sn.values())Rr(zt,Nt);for(const zt of Kt.values())Rr(zt,Nt);return!0}function Cr(Nt,It){const zt=Nt.container.getProvider("heartbeat").getImmediate({optional:!0});return zt&&zt.triggerHeartbeat(),Nt.container.getProvider(It)}function er(Nt){return void 0!==Nt.settings}const tr=new Le.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class _r{constructor(It,zt,Tn){this._isDeleted=!1,this._options=Object.assign({},It),this._config=Object.assign({},zt),this._name=zt.name,this._automaticDataCollectionEnabled=zt.automaticDataCollectionEnabled,this._container=Tn,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(It){this.checkDestroyed(),this._automaticDataCollectionEnabled=It}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(It){this._isDeleted=It}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Zr="10.12.2";function zr(Nt,It={}){let zt=Nt;"object"!=typeof It&&(It={name:It});const Tn=Object.assign({name:Cn,automaticDataCollectionEnabled:!1},It),fe=Tn.name;if("string"!=typeof fe||!fe)throw tr.create("bad-app-name",{appName:String(fe)});if(zt||(zt=(0,Le.T9)()),!zt)throw tr.create("no-options");const R=sn.get(fe);if(R){if((0,Le.bD)(zt,R.options)&&(0,Le.bD)(Tn,R.config))return R;throw tr.create("duplicate-app",{appName:fe})}const U=new c.h1(fe);for(const $ of fr.values())U.addComponent($);const ee=new _r(zt,Tn,U);return sn.set(fe,ee),ee}function Ye(Nt=Cn){const It=sn.get(Nt);if(!It&&Nt===Cn&&(0,Le.T9)())return zr();if(!It)throw tr.create("no-app",{appName:Nt});return It}function yt(){return Array.from(sn.values())}function me(Nt,It,zt){var Tn;let fe=null!==(Tn=An[Nt])&&void 0!==Tn?Tn:Nt;zt&&(fe+=`-${zt}`);const R=fe.match(/\s|\//),U=It.match(/\s|\//);if(R||U){const ee=[`Unable to register library "${fe}" with version "${It}":`];return R&&ee.push(`library name "${fe}" contains illegal characters (whitespace or "/")`),R&&U&&ee.push("and"),U&&ee.push(`version name "${It}" contains illegal characters (whitespace or "/")`),void Zt.warn(ee.join(" "))}kr(new c.uA(`${fe}-version`,()=>({library:fe,version:It}),"VERSION"))}const ne="firebase-heartbeat-database",nt=1,et="firebase-heartbeat-store";let Lt=null;function Xt(){return Lt||(Lt=function Qe(Nt,It,{blocked:zt,upgrade:Tn,blocking:fe,terminated:R}={}){const U=indexedDB.open(Nt,It),ee=_t(U);return Tn&&U.addEventListener("upgradeneeded",$=>{Tn(_t(U.result),$.oldVersion,$.newVersion,_t(U.transaction),$)}),zt&&U.addEventListener("blocked",$=>zt($.oldVersion,$.newVersion,$)),ee.then($=>{R&&$.addEventListener("close",()=>R()),fe&&$.addEventListener("versionchange",le=>fe(le.oldVersion,le.newVersion,le))}).catch(()=>{}),ee}(ne,nt,{upgrade:(Nt,It)=>{if(0===It)try{Nt.createObjectStore(et)}catch(zt){console.warn(zt)}}}).catch(Nt=>{throw tr.create("idb-open",{originalErrorMessage:Nt.message})})),Lt}function Hn(){return(Hn=(0,f.A)(function*(Nt){try{const zt=(yield Xt()).transaction(et),Tn=yield zt.objectStore(et).get(Qn(Nt));return yield zt.done,Tn}catch(It){if(It instanceof Le.g)Zt.warn(It.message);else{const zt=tr.create("idb-get",{originalErrorMessage:null==It?void 0:It.message});Zt.warn(zt.message)}}})).apply(this,arguments)}function dn(Nt,It){return _n.apply(this,arguments)}function _n(){return(_n=(0,f.A)(function*(Nt,It){try{const Tn=(yield Xt()).transaction(et,"readwrite");yield Tn.objectStore(et).put(It,Qn(Nt)),yield Tn.done}catch(zt){if(zt instanceof Le.g)Zt.warn(zt.message);else{const Tn=tr.create("idb-set",{originalErrorMessage:null==zt?void 0:zt.message});Zt.warn(Tn.message)}}})).apply(this,arguments)}function Qn(Nt){return`${Nt.name}!${Nt.options.appId}`}class Vr{constructor(It){this.container=It,this._heartbeatsCache=null;const zt=this.container.getProvider("app").getImmediate();this._storage=new Fi(zt),this._heartbeatsCachePromise=this._storage.read().then(Tn=>(this._heartbeatsCache=Tn,Tn))}triggerHeartbeat(){var It=this;return(0,f.A)(function*(){var zt,Tn;const R=It.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),U=gi();if((null!=(null===(zt=It._heartbeatsCache)||void 0===zt?void 0:zt.heartbeats)||(It._heartbeatsCache=yield It._heartbeatsCachePromise,null!=(null===(Tn=It._heartbeatsCache)||void 0===Tn?void 0:Tn.heartbeats)))&&It._heartbeatsCache.lastSentHeartbeatDate!==U&&!It._heartbeatsCache.heartbeats.some(ee=>ee.date===U))return It._heartbeatsCache.heartbeats.push({date:U,agent:R}),It._heartbeatsCache.heartbeats=It._heartbeatsCache.heartbeats.filter(ee=>{const $=new Date(ee.date).valueOf();return Date.now()-$<=2592e6}),It._storage.overwrite(It._heartbeatsCache)})()}getHeartbeatsHeader(){var It=this;return(0,f.A)(function*(){var zt;if(null===It._heartbeatsCache&&(yield It._heartbeatsCachePromise),null==(null===(zt=It._heartbeatsCache)||void 0===zt?void 0:zt.heartbeats)||0===It._heartbeatsCache.heartbeats.length)return"";const Tn=gi(),{heartbeatsToSend:fe,unsentEntries:R}=function ir(Nt,It=1024){const zt=[];let Tn=Nt.slice();for(const fe of Nt){const R=zt.find(U=>U.agent===fe.agent);if(R){if(R.dates.push(fe.date),Mi(zt)>It){R.dates.pop();break}}else if(zt.push({agent:fe.agent,dates:[fe.date]}),Mi(zt)>It){zt.pop();break}Tn=Tn.slice(1)}return{heartbeatsToSend:zt,unsentEntries:Tn}}(It._heartbeatsCache.heartbeats),U=(0,Le.Uj)(JSON.stringify({version:2,heartbeats:fe}));return It._heartbeatsCache.lastSentHeartbeatDate=Tn,R.length>0?(It._heartbeatsCache.heartbeats=R,yield It._storage.overwrite(It._heartbeatsCache)):(It._heartbeatsCache.heartbeats=[],It._storage.overwrite(It._heartbeatsCache)),U})()}}function gi(){return(new Date).toISOString().substring(0,10)}class Fi{constructor(It){this.app=It,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,f.A)(function*(){return!!(0,Le.zW)()&&(0,Le.eX)().then(()=>!0).catch(()=>!1)})()}read(){var It=this;return(0,f.A)(function*(){if(yield It._canUseIndexedDBPromise){const Tn=yield function cn(Nt){return Hn.apply(this,arguments)}(It.app);return null!=Tn&&Tn.heartbeats?Tn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(It){var zt=this;return(0,f.A)(function*(){var Tn;if(yield zt._canUseIndexedDBPromise){const R=yield zt.read();return dn(zt.app,{lastSentHeartbeatDate:null!==(Tn=It.lastSentHeartbeatDate)&&void 0!==Tn?Tn:R.lastSentHeartbeatDate,heartbeats:It.heartbeats})}})()}add(It){var zt=this;return(0,f.A)(function*(){var Tn;if(yield zt._canUseIndexedDBPromise){const R=yield zt.read();return dn(zt.app,{lastSentHeartbeatDate:null!==(Tn=It.lastSentHeartbeatDate)&&void 0!==Tn?Tn:R.lastSentHeartbeatDate,heartbeats:[...R.heartbeats,...It.heartbeats]})}})()}}function Mi(Nt){return(0,Le.Uj)(JSON.stringify({version:2,heartbeats:Nt})).length}!function mi(Nt){kr(new c.uA("platform-logger",It=>new gt(It),"PRIVATE")),kr(new c.uA("heartbeat",It=>new Vr(It),"PRIVATE")),me(At,"0.10.5",Nt),me(At,"0.10.5","esm2017"),me("fire-js","")}("")},1362:(Dn,Ct,x)=>{"use strict";x.d(Ct,{h1:()=>qe,uA:()=>ce});var f=x(467),c=x(1076);class ce{constructor(we,Ae,je){this.name=we,this.instanceFactory=Ae,this.type=je,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(we){return this.instantiationMode=we,this}setMultipleInstances(we){return this.multipleInstances=we,this}setServiceProps(we){return this.serviceProps=we,this}setInstanceCreatedCallback(we){return this.onInstanceCreated=we,this}}const Le="[DEFAULT]";class K{constructor(we,Ae){this.name=we,this.container=Ae,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(we){const Ae=this.normalizeInstanceIdentifier(we);if(!this.instancesDeferred.has(Ae)){const je=new c.cY;if(this.instancesDeferred.set(Ae,je),this.isInitialized(Ae)||this.shouldAutoInitialize())try{const Ke=this.getOrInitializeService({instanceIdentifier:Ae});Ke&&je.resolve(Ke)}catch{}}return this.instancesDeferred.get(Ae).promise}getImmediate(we){var Ae;const je=this.normalizeInstanceIdentifier(null==we?void 0:we.identifier),Ke=null!==(Ae=null==we?void 0:we.optional)&&void 0!==Ae&&Ae;if(!this.isInitialized(je)&&!this.shouldAutoInitialize()){if(Ke)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:je})}catch(Be){if(Ke)return null;throw Be}}getComponent(){return this.component}setComponent(we){if(we.name!==this.name)throw Error(`Mismatching Component ${we.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=we,this.shouldAutoInitialize()){if(function te(Je){return"EAGER"===Je.instantiationMode}(we))try{this.getOrInitializeService({instanceIdentifier:Le})}catch{}for(const[Ae,je]of this.instancesDeferred.entries()){const Ke=this.normalizeInstanceIdentifier(Ae);try{const Be=this.getOrInitializeService({instanceIdentifier:Ke});je.resolve(Be)}catch{}}}}clearInstance(we=Le){this.instancesDeferred.delete(we),this.instancesOptions.delete(we),this.instances.delete(we)}delete(){var we=this;return(0,f.A)(function*(){const Ae=Array.from(we.instances.values());yield Promise.all([...Ae.filter(je=>"INTERNAL"in je).map(je=>je.INTERNAL.delete()),...Ae.filter(je=>"_delete"in je).map(je=>je._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(we=Le){return this.instances.has(we)}getOptions(we=Le){return this.instancesOptions.get(we)||{}}initialize(we={}){const{options:Ae={}}=we,je=this.normalizeInstanceIdentifier(we.instanceIdentifier);if(this.isInitialized(je))throw Error(`${this.name}(${je}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ke=this.getOrInitializeService({instanceIdentifier:je,options:Ae});for(const[Be,it]of this.instancesDeferred.entries())je===this.normalizeInstanceIdentifier(Be)&&it.resolve(Ke);return Ke}onInit(we,Ae){var je;const Ke=this.normalizeInstanceIdentifier(Ae),Be=null!==(je=this.onInitCallbacks.get(Ke))&&void 0!==je?je:new Set;Be.add(we),this.onInitCallbacks.set(Ke,Be);const it=this.instances.get(Ke);return it&&we(it,Ke),()=>{Be.delete(we)}}invokeOnInitCallbacks(we,Ae){const je=this.onInitCallbacks.get(Ae);if(je)for(const Ke of je)try{Ke(we,Ae)}catch{}}getOrInitializeService({instanceIdentifier:we,options:Ae={}}){let je=this.instances.get(we);if(!je&&this.component&&(je=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=we,Je===Le?void 0:Je),options:Ae}),this.instances.set(we,je),this.instancesOptions.set(we,Ae),this.invokeOnInitCallbacks(je,we),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,we,je)}catch{}var Je;return je||null}normalizeInstanceIdentifier(we=Le){return this.component?this.component.multipleInstances?we:Le:we}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class qe{constructor(we){this.name=we,this.providers=new Map}addComponent(we){const Ae=this.getProvider(we.name);if(Ae.isComponentSet())throw new Error(`Component ${we.name} has already been registered with ${this.name}`);Ae.setComponent(we)}addOrOverwriteComponent(we){this.getProvider(we.name).isComponentSet()&&this.providers.delete(we.name),this.addComponent(we)}getProvider(we){if(this.providers.has(we))return this.providers.get(we);const Ae=new K(we,this);return this.providers.set(we,Ae),Ae}getProviders(){return Array.from(this.providers.values())}}},8041:(Dn,Ct,x)=>{"use strict";x.d(Ct,{$b:()=>c,Vy:()=>te});const f=[];var c=function(we){return we[we.DEBUG=0]="DEBUG",we[we.VERBOSE=1]="VERBOSE",we[we.INFO=2]="INFO",we[we.WARN=3]="WARN",we[we.ERROR=4]="ERROR",we[we.SILENT=5]="SILENT",we}(c||{});const ce={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Le=c.INFO,K={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},Ee=(we,Ae,...je)=>{if(Ae{"use strict";x.d(Ct,{Yq:()=>on,TS:()=>Xe,sR:()=>wt,el:()=>_n,Sb:()=>_r,QE:()=>gi,CF:()=>Mn,Rg:()=>nt,p4:()=>ir,jM:()=>Tn,_t:()=>yn,q9:()=>Xn,Kb:()=>fe,CE:()=>Qn,pF:()=>Pr,fL:()=>Mi,YV:()=>cn,er:()=>Fi,z3:()=>mi});var f=x(467),c=x(9842),ce=x(4438),Le=x(305),K=x(177),Ee=x(5531),te=x(4442);var gt=x(1413),Bt=x(3726),At=x(4412),He=x(4572),Zt=x(7673),tt=x(1635),De=x(5964),j=x(5558),W=x(3669),ie=x(9974),J=x(4360);function Re(R,U){return R===U}var Ge=x(4341);const Jt=["tabsInner"];class yn{constructor(U){(0,c.A)(this,"menuController",void 0),this.menuController=U}open(U){return this.menuController.open(U)}close(U){return this.menuController.close(U)}toggle(U){return this.menuController.toggle(U)}enable(U,ee){return this.menuController.enable(U,ee)}swipeGesture(U,ee){return this.menuController.swipeGesture(U,ee)}isOpen(U){return this.menuController.isOpen(U)}isEnabled(U){return this.menuController.isEnabled(U)}get(U){return this.menuController.get(U)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(U,ee){return this.menuController.registerAnimation(U,ee)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(U,ee){return this.menuController._createAnimation(U,ee)}_register(U){return this.menuController._register(U)}_unregister(U){return this.menuController._unregister(U)}_setOpen(U,ee,$){return this.menuController._setOpen(U,ee,$)}}let Nn=(()=>{var R;class U{constructor($,le){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new gt.B),(0,c.A)(this,"keyboardDidShow",new gt.B),(0,c.A)(this,"keyboardDidHide",new gt.B),(0,c.A)(this,"pause",new gt.B),(0,c.A)(this,"resume",new gt.B),(0,c.A)(this,"resize",new gt.B),this.doc=$,le.run(()=>{var Ue;let dt;this.win=$.defaultView,this.backButton.subscribeWithPriority=function(Gt,qt){return this.subscribe(Wn=>Wn.register(Gt,$n=>le.run(()=>qt($n))))},Zn(this.pause,$,"pause",le),Zn(this.resume,$,"resume",le),Zn(this.backButton,$,"ionBackButton",le),Zn(this.resize,this.win,"resize",le),Zn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",le),Zn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",le),this._readyPromise=new Promise(Gt=>{dt=Gt}),null!==(Ue=this.win)&&void 0!==Ue&&Ue.cordova?$.addEventListener("deviceready",()=>{dt("cordova")},{once:!0}):dt("dom")})}is($){return(0,Ee.a)(this.win,$)}platforms(){return(0,Ee.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam($){return qn(this.win.location.href,$)}isLandscape(){return!this.isPortrait()}isPortrait(){var $,le;return null===($=(le=this.win).matchMedia)||void 0===$?void 0:$.call(le,"(orientation: portrait)").matches}testUserAgent($){const le=this.win.navigator;return!!(null!=le&&le.userAgent&&le.userAgent.indexOf($)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.KVO(K.qQ),ce.KVO(ce.SKi))}),(0,c.A)(U,"\u0275prov",ce.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})();const qn=(R,U)=>{U=U.replace(/[[\]\\]/g,"\\$&");const $=new RegExp("[\\?&]"+U+"=([^&#]*)").exec(R);return $?decodeURIComponent($[1].replace(/\+/g," ")):null},Zn=(R,U,ee,$)=>{U&&U.addEventListener(ee,le=>{$.run(()=>{R.next(null!=le?le.detail:void 0)})})};let Xn=(()=>{var R;class U{constructor($,le,Ue,dt){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",or),(0,c.A)(this,"animated",rr),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=le,this.serializer=Ue,this.router=dt,dt&&dt.events.subscribe(Gt=>{if(Gt instanceof Le.Z){const qt=Gt.restoredState?Gt.restoredState.navigationId:Gt.id;this.guessDirection=this.guessAnimation=qt{this.pop(),Gt()})}navigateForward($,le={}){return this.setDirection("forward",le.animated,le.animationDirection,le.animation),this.navigate($,le)}navigateBack($,le={}){return this.setDirection("back",le.animated,le.animationDirection,le.animation),this.navigate($,le)}navigateRoot($,le={}){return this.setDirection("root",le.animated,le.animationDirection,le.animation),this.navigate($,le)}back($={animated:!0,animationDirection:"back"}){return this.setDirection("back",$.animated,$.animationDirection,$.animation),this.location.back()}pop(){var $=this;return(0,f.A)(function*(){let le=$.topOutlet;for(;le;){if(yield le.pop())return!0;le=le.parentOutlet}return!1})()}setDirection($,le,Ue,dt){this.direction=$,this.animated=wn($,le,Ue),this.animationBuilder=dt}setTopOutlet($){this.topOutlet=$}consumeTransition(){let le,$="root";const Ue=this.animationBuilder;return"auto"===this.direction?($=this.guessDirection,le=this.guessAnimation):(le=this.animated,$=this.direction),this.direction=or,this.animated=rr,this.animationBuilder=void 0,{direction:$,animation:le,animationBuilder:Ue}}navigate($,le){if(Array.isArray($))return this.router.navigate($,le);{const Ue=this.serializer.parse($.toString());return void 0!==le.queryParams&&(Ue.queryParams={...le.queryParams}),void 0!==le.fragment&&(Ue.fragment=le.fragment),this.router.navigateByUrl(Ue,le)}}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.KVO(Nn),ce.KVO(K.aZ),ce.KVO(Le.Sd),ce.KVO(Le.Ix,8))}),(0,c.A)(U,"\u0275prov",ce.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})();const wn=(R,U,ee)=>{if(!1!==U){if(void 0!==ee)return ee;if("forward"===R||"back"===R)return R;if("root"===R&&!0===U)return"forward"}},or="auto",rr=void 0;let Xe=(()=>{var R;class U{get($,le){const Ue=Ft();return Ue?Ue.get($,le):null}getBoolean($,le){const Ue=Ft();return!!Ue&&Ue.getBoolean($,le)}getNumber($,le){const Ue=Ft();return Ue?Ue.getNumber($,le):0}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)}),(0,c.A)(U,"\u0275prov",ce.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})();const wt=new ce.nKC("USERCONFIG"),Ft=()=>{if(typeof window<"u"){const R=window.Ionic;if(null!=R&&R.config)return R.config}return null};class en{constructor(U={}){(0,c.A)(this,"data",void 0),this.data=U,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(U){return this.data[U]}}let on=(()=>{var R;class U{constructor(){(0,c.A)(this,"zone",(0,ce.WQX)(ce.SKi)),(0,c.A)(this,"applicationRef",(0,ce.WQX)(ce.o8S)),(0,c.A)(this,"config",(0,ce.WQX)(wt))}create($,le,Ue){var dt;return new Ar($,le,this.applicationRef,this.zone,Ue,null!==(dt=this.config.useSetInputAPI)&&void 0!==dt&&dt)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)}),(0,c.A)(U,"\u0275prov",ce.jDH({token:R,factory:R.\u0275fac})),U})();class Ar{constructor(U,ee,$,le,Ue,dt){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=U,this.injector=ee,this.applicationRef=$,this.zone=le,this.elementReferenceKey=Ue,this.enableSignalsSupport=dt}attachViewToDom(U,ee,$,le){return this.zone.run(()=>new Promise(Ue=>{const dt={...$};void 0!==this.elementReferenceKey&&(dt[this.elementReferenceKey]=U),Ue(Cn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,U,ee,dt,le,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(U,ee){return this.zone.run(()=>new Promise($=>{const le=this.elRefMap.get(ee);if(le){le.destroy(),this.elRefMap.delete(ee);const Ue=this.elEventsMap.get(ee);Ue&&(Ue(),this.elEventsMap.delete(ee))}$()}))}}const Cn=(R,U,ee,$,le,Ue,dt,Gt,qt,Wn,$n,Hr)=>{const gr=ce.zZn.create({providers:fr(qt),parent:ee}),$r=(0,ce.a0P)(Gt,{environmentInjector:U,elementInjector:gr}),Ir=$r.instance,un=$r.location.nativeElement;if(qt)if($n&&void 0!==Ir[$n]&&console.error(`[Ionic Error]: ${$n} is a reserved property when using ${dt.tagName.toLowerCase()}. Rename or remove the "${$n}" property from ${Gt.name}.`),!0===Hr&&void 0!==$r.setInput){const{modal:Wr,popover:Fr,...Er}=qt;for(const pr in Er)$r.setInput(pr,Er[pr]);void 0!==Wr&&Object.assign(Ir,{modal:Wr}),void 0!==Fr&&Object.assign(Ir,{popover:Fr})}else Object.assign(Ir,qt);if(Wn)for(const Wr of Wn)un.classList.add(Wr);const sr=sn(R,Ir,un);return dt.appendChild(un),$.attachView($r.hostView),le.set(un,$r),Ue.set(un,sr),un},An=[te.L,te.a,te.b,te.c,te.d],sn=(R,U,ee)=>R.run(()=>{const $=An.filter(le=>"function"==typeof U[le]).map(le=>{const Ue=dt=>U[le](dt.detail);return ee.addEventListener(le,Ue),()=>ee.removeEventListener(le,Ue)});return()=>$.forEach(le=>le())}),Kt=new ce.nKC("NavParamsToken"),fr=R=>[{provide:Kt,useValue:R},{provide:en,useFactory:Rr,deps:[Kt]}],Rr=R=>new en(R),Lr=(R,U)=>{const ee=R.prototype;U.forEach($=>{Object.defineProperty(ee,$,{get(){return this.el[$]},set(le){this.z.runOutsideAngular(()=>this.el[$]=le)}})})},kr=(R,U)=>{const ee=R.prototype;U.forEach($=>{ee[$]=function(){const le=arguments;return this.z.runOutsideAngular(()=>this.el[$].apply(this.el,le))}})},Cr=(R,U,ee)=>{ee.forEach($=>R[$]=(0,Bt.R)(U,$))};function jn(R){return function(ee){const{defineCustomElementFn:$,inputs:le,methods:Ue}=R;return void 0!==$&&$(),le&&Lr(ee,le),Ue&&kr(ee,Ue),ee}}const ii=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],er=["present","dismiss","onDidDismiss","onWillDismiss"];let Mn=(()=>{var R;let U=((0,c.A)(R=class{constructor($,le,Ue){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=Ue,this.el=le.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,$.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,$.detectChanges()}),Cr(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function($){return new($||R)(ce.rXU(ce.gRc),ce.rXU(ce.aKT),ce.rXU(ce.SKi))}),(0,c.A)(R,"\u0275dir",ce.FsC({type:R,selectors:[["ion-popover"]],contentQueries:function($,le,Ue){if(1&$&&ce.wni(Ue,ce.C4Q,5),2&$){let dt;ce.mGM(dt=ce.lsd())&&(le.template=dt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),R);return U=(0,tt.Cg)([jn({inputs:ii,methods:er})],U),U})();const Mr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],tr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let _r=(()=>{var R;let U=((0,c.A)(R=class{constructor($,le,Ue){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=Ue,this.el=le.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,$.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,$.detectChanges()}),Cr(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function($){return new($||R)(ce.rXU(ce.gRc),ce.rXU(ce.aKT),ce.rXU(ce.SKi))}),(0,c.A)(R,"\u0275dir",ce.FsC({type:R,selectors:[["ion-modal"]],contentQueries:function($,le,Ue){if(1&$&&ce.wni(Ue,ce.C4Q,5),2&$){let dt;ce.mGM(dt=ce.lsd())&&(le.template=dt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),R);return U=(0,tt.Cg)([jn({inputs:Mr,methods:tr})],U),U})();const Zr=(R,U)=>((R=R.filter(ee=>ee.stackId!==U.stackId)).push(U),R),Ye=(R,U)=>{const ee=R.createUrlTree(["."],{relativeTo:U});return R.serializeUrl(ee)},yt=(R,U)=>!U||R.stackId!==U.stackId,st=(R,U)=>{if(!R)return;const ee=he(U);for(let $=0;$=R.length)return ee[$];if(ee[$]!==R[$])return}},he=R=>R.split("/").map(U=>U.trim()).filter(U=>""!==U),me=R=>{R&&(R.ref.destroy(),R.unlistenEvents())};class ke{constructor(U,ee,$,le,Ue,dt){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=ee,this.router=$,this.navCtrl=le,this.zone=Ue,this.location=dt,this.tabsPrefix=void 0!==U?he(U):void 0}createView(U,ee){var $;const le=Ye(this.router,ee),Ue=null==U||null===($=U.location)||void 0===$?void 0:$.nativeElement,dt=sn(this.zone,U.instance,Ue);return{id:this.nextId++,stackId:st(this.tabsPrefix,le),unlistenEvents:dt,element:Ue,ref:U,url:le}}getExistingView(U){const ee=Ye(this.router,U),$=this.views.find(le=>le.url===ee);return $&&$.ref.changeDetectorRef.reattach(),$}setActive(U){var ee,$;const le=this.navCtrl.consumeTransition();let{direction:Ue,animation:dt,animationBuilder:Gt}=le;const qt=this.activeView,Wn=yt(U,qt);Wn&&(Ue="back",dt=void 0);const $n=this.views.slice();let Hr;const gr=this.router;gr.getCurrentNavigation?Hr=gr.getCurrentNavigation():null!==(ee=gr.navigations)&&void 0!==ee&&ee.value&&(Hr=gr.navigations.value),null!==($=Hr)&&void 0!==$&&null!==($=$.extras)&&void 0!==$&&$.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const $r=this.views.includes(U),Ir=this.insertView(U,Ue);$r||U.ref.changeDetectorRef.detectChanges();const un=U.animationBuilder;return void 0===Gt&&"back"===Ue&&!Wn&&void 0!==un&&(Gt=un),qt&&(qt.animationBuilder=Gt),this.zone.runOutsideAngular(()=>this.wait(()=>(qt&&qt.ref.changeDetectorRef.detach(),U.ref.changeDetectorRef.reattach(),this.transition(U,qt,dt,this.canGoBack(1),!1,Gt).then(()=>Rt(U,Ir,$n,this.location,this.zone)).then(()=>({enteringView:U,direction:Ue,animation:dt,tabSwitch:Wn})))))}canGoBack(U,ee=this.getActiveStackId()){return this.getStack(ee).length>U}pop(U,ee=this.getActiveStackId()){return this.zone.run(()=>{const $=this.getStack(ee);if($.length<=U)return Promise.resolve(!1);const le=$[$.length-U-1];let Ue=le.url;const dt=le.savedData;if(dt){var Gt;const Wn=dt.get("primary");null!=Wn&&null!==(Gt=Wn.route)&&void 0!==Gt&&null!==(Gt=Gt._routerState)&&void 0!==Gt&&Gt.snapshot.url&&(Ue=Wn.route._routerState.snapshot.url)}const{animationBuilder:qt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Ue,{...le.savedExtras,animation:qt}).then(()=>!0)})}startBackTransition(){const U=this.activeView;if(U){const ee=this.getStack(U.stackId),$=ee[ee.length-2],le=$.animationBuilder;return this.wait(()=>this.transition($,U,"back",this.canGoBack(2),!0,le))}return Promise.resolve()}endBackTransition(U){U?(this.skipTransition=!0,this.pop(1)):this.activeView&&ne(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(U){const ee=this.getStack(U);return ee.length>0?ee[ee.length-1]:void 0}getRootUrl(U){const ee=this.getStack(U);return ee.length>0?ee[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(me),this.activeView=void 0,this.views=[]}getStack(U){return this.views.filter(ee=>ee.stackId===U)}insertView(U,ee){return this.activeView=U,this.views=((R,U,ee)=>"root"===ee?Zr(R,U):"forward"===ee?((R,U)=>(R.indexOf(U)>=0?R=R.filter($=>$.stackId!==U.stackId||$.id<=U.id):R.push(U),R))(R,U):((R,U)=>R.indexOf(U)>=0?R.filter($=>$.stackId!==U.stackId||$.id<=U.id):Zr(R,U))(R,U))(this.views,U,ee),this.views.slice()}transition(U,ee,$,le,Ue,dt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ee===U)return Promise.resolve(!1);const Gt=U?U.element:void 0,qt=ee?ee.element:void 0,Wn=this.containerEl;return Gt&&Gt!==qt&&(Gt.classList.add("ion-page"),Gt.classList.add("ion-page-invisible"),Wn.commit)?Wn.commit(Gt,qt,{duration:void 0===$?0:void 0,direction:$,showGoBack:le,progressAnimation:Ue,animationBuilder:dt}):Promise.resolve(!1)}wait(U){var ee=this;return(0,f.A)(function*(){void 0!==ee.runningTask&&(yield ee.runningTask,ee.runningTask=void 0);const $=ee.runningTask=U();return $.finally(()=>ee.runningTask=void 0),$})()}}const Rt=(R,U,ee,$,le)=>"function"==typeof requestAnimationFrame?new Promise(Ue=>{requestAnimationFrame(()=>{ne(R,U,ee,$,le),Ue()})}):Promise.resolve(),ne=(R,U,ee,$,le)=>{le.run(()=>ee.filter(Ue=>!U.includes(Ue)).forEach(me)),U.forEach(Ue=>{const Gt=$.path().split("?")[0].split("#")[0];if(Ue!==R&&Ue.url!==Gt){const qt=Ue.element;qt.setAttribute("aria-hidden","true"),qt.classList.add("ion-page-hidden"),Ue.ref.changeDetectorRef.detach()}})};let nt=(()=>{var R;class U{get activatedComponentRef(){return this.activated}set animation($){this.nativeEl.animation=$}set animated($){this.nativeEl.animated=$}set swipeGesture($){this._swipeGesture=$,this.nativeEl.swipeHandler=$?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:le=>this.stackCtrl.endBackTransition(le)}:void 0}constructor($,le,Ue,dt,Gt,qt,Wn,$n){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new At.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Le.Xk),(0,c.A)(this,"stackWillChange",new ce.bkB),(0,c.A)(this,"stackDidChange",new ce.bkB),(0,c.A)(this,"activateEvents",new ce.bkB),(0,c.A)(this,"deactivateEvents",new ce.bkB),(0,c.A)(this,"parentContexts",(0,ce.WQX)(Le.Zp)),(0,c.A)(this,"location",(0,ce.WQX)(ce.c1b)),(0,c.A)(this,"environmentInjector",(0,ce.WQX)(ce.uvJ)),(0,c.A)(this,"inputBinder",(0,ce.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,ce.WQX)(Xe)),(0,c.A)(this,"navCtrl",(0,ce.WQX)(Xn)),this.parentOutlet=$n,this.nativeEl=dt.nativeElement,this.name=$||Le.Xk,this.tabsPrefix="true"===le?Ye(Gt,Wn):void 0,this.stackCtrl=new ke(this.tabsPrefix,this.nativeEl,Gt,this.navCtrl,qt,Ue),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var $;this.stackCtrl.destroy(),null===($=this.inputBinder)||void 0===$||$.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const $=this.getContext();null!=$&&$.route&&this.activateWith($.route,$.injector)}new Promise($=>((R,U)=>{R.componentOnReady?R.componentOnReady().then(ee=>U(ee)):(R=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(R):"function"==typeof requestAnimationFrame?requestAnimationFrame(R):setTimeout(R)})(()=>U(R))})(this.nativeEl,$)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach($,le){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const le=this.getContext();this.activatedView.savedData=new Map(le.children.contexts);const Ue=this.activatedView.savedData.get("primary");if(Ue&&le.route&&(Ue.route={...le.route}),this.activatedView.savedExtras={},le.route){const dt=le.route.snapshot;this.activatedView.savedExtras.queryParams=dt.queryParams,this.activatedView.savedExtras.fragment=dt.fragment}}const $=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit($)}}activateWith($,le){var Ue;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=$;let dt,Gt=this.stackCtrl.getExistingView($);if(Gt){dt=this.activated=Gt.ref;const $n=Gt.savedData;$n&&(this.getContext().children.contexts=$n),this.updateActivatedRouteProxy(dt.instance,$)}else{var qt;const $n=$._futureSnapshot,Hr=this.parentContexts.getOrCreateContext(this.name).children,gr=new At.t(null),$r=this.createActivatedRouteProxy(gr,$),Ir=new et($r,Hr,this.location.injector),un=null!==(qt=$n.routeConfig.component)&&void 0!==qt?qt:$n.component;dt=this.activated=this.outletContent.createComponent(un,{index:this.outletContent.length,injector:Ir,environmentInjector:null!=le?le:this.environmentInjector}),gr.next(dt.instance),Gt=this.stackCtrl.createView(this.activated,$),this.proxyMap.set(dt.instance,$r),this.currentActivatedRoute$.next({component:dt.instance,activatedRoute:$})}null===(Ue=this.inputBinder)||void 0===Ue||Ue.bindActivatedRouteToOutletComponent(this),this.activatedView=Gt,this.navCtrl.setTopOutlet(this);const Wn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Gt,tabSwitch:yt(Gt,Wn)}),this.stackCtrl.setActive(Gt).then($n=>{this.activateEvents.emit(dt.instance),this.stackDidChange.emit($n)})}canGoBack($=1,le){return this.stackCtrl.canGoBack($,le)}pop($=1,le){return this.stackCtrl.pop($,le)}getLastUrl($){const le=this.stackCtrl.getLastUrl($);return le?le.url:void 0}getLastRouteView($){return this.stackCtrl.getLastUrl($)}getRootView($){return this.stackCtrl.getRootUrl($)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy($,le){const Ue=new Le.nX;return Ue._futureSnapshot=le._futureSnapshot,Ue._routerState=le._routerState,Ue.snapshot=le.snapshot,Ue.outlet=le.outlet,Ue.component=le.component,Ue._paramMap=this.proxyObservable($,"paramMap"),Ue._queryParamMap=this.proxyObservable($,"queryParamMap"),Ue.url=this.proxyObservable($,"url"),Ue.params=this.proxyObservable($,"params"),Ue.queryParams=this.proxyObservable($,"queryParams"),Ue.fragment=this.proxyObservable($,"fragment"),Ue.data=this.proxyObservable($,"data"),Ue}proxyObservable($,le){return $.pipe((0,De.p)(Ue=>!!Ue),(0,j.n)(Ue=>this.currentActivatedRoute$.pipe((0,De.p)(dt=>null!==dt&&dt.component===Ue),(0,j.n)(dt=>dt&&dt.activatedRoute[le]),function re(R,U=W.D){return R=null!=R?R:Re,(0,ie.N)((ee,$)=>{let le,Ue=!0;ee.subscribe((0,J._)($,dt=>{const Gt=U(dt);(Ue||!R(le,Gt))&&(Ue=!1,le=Gt,$.next(dt))}))})}())))}updateActivatedRouteProxy($,le){const Ue=this.proxyMap.get($);if(!Ue)throw new Error("Could not find activated route proxy for view");Ue._futureSnapshot=le._futureSnapshot,Ue._routerState=le._routerState,Ue.snapshot=le.snapshot,Ue.outlet=le.outlet,Ue.component=le.component,this.currentActivatedRoute$.next({component:$,activatedRoute:le})}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.kS0("name"),ce.kS0("tabs"),ce.rXU(K.aZ),ce.rXU(ce.aKT),ce.rXU(Le.Ix),ce.rXU(ce.SKi),ce.rXU(Le.nX),ce.rXU(R,12))}),(0,c.A)(U,"\u0275dir",ce.FsC({type:R,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),U})();class et{constructor(U,ee,$){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=U,this.childContexts=ee,this.parent=$}get(U,ee){return U===Le.nX?this.route:U===Le.Zp?this.childContexts:this.parent.get(U,ee)}}const Lt=new ce.nKC("");let Xt=(()=>{var R;class U{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent($){this.unsubscribeFromRouteData($),this.subscribeToRouteData($)}unsubscribeFromRouteData($){var le;null===(le=this.outletDataSubscriptions.get($))||void 0===le||le.unsubscribe(),this.outletDataSubscriptions.delete($)}subscribeToRouteData($){const{activatedRoute:le}=$,Ue=(0,He.z)([le.queryParams,le.params,le.data]).pipe((0,j.n)(([dt,Gt,qt],Wn)=>(qt={...dt,...Gt,...qt},0===Wn?(0,Zt.of)(qt):Promise.resolve(qt)))).subscribe(dt=>{if(!$.isActivated||!$.activatedComponentRef||$.activatedRoute!==le||null===le.component)return void this.unsubscribeFromRouteData($);const Gt=(0,ce.HJs)(le.component);if(Gt)for(const{templateName:qt}of Gt.inputs)$.activatedComponentRef.setInput(qt,dt[qt]);else this.unsubscribeFromRouteData($)});this.outletDataSubscriptions.set($,Ue)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)}),(0,c.A)(U,"\u0275prov",ce.jDH({token:R,factory:R.\u0275fac})),U})();const cn=()=>({provide:Lt,useFactory:Hn,deps:[Le.Ix]});function Hn(R){return null!=R&&R.componentInputBindingEnabled?new Xt:null}const dn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let _n=(()=>{var R;let U=((0,c.A)(R=class{constructor($,le,Ue,dt,Gt,qt){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=$,this.navCtrl=le,this.config=Ue,this.r=dt,this.z=Gt,qt.detach(),this.el=this.r.nativeElement}onClick($){var le;const Ue=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(le=this.routerOutlet)&&void 0!==le&&le.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),$.preventDefault()):null!=Ue&&(this.navCtrl.navigateBack(Ue,{animation:this.routerAnimation}),$.preventDefault())}},"\u0275fac",function($){return new($||R)(ce.rXU(nt,8),ce.rXU(Xn),ce.rXU(Xe),ce.rXU(ce.aKT),ce.rXU(ce.SKi),ce.rXU(ce.gRc))}),(0,c.A)(R,"\u0275dir",ce.FsC({type:R,hostBindings:function($,le){1&$&&ce.bIt("click",function(dt){return le.onClick(dt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),R);return U=(0,tt.Cg)([jn({inputs:dn})],U),U})(),Qn=(()=>{var R;class U{constructor($,le,Ue,dt,Gt){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=$,this.navCtrl=le,this.elementRef=Ue,this.router=dt,this.routerLink=Gt}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var $;if(null!==($=this.routerLink)&&void 0!==$&&$.urlTree){const le=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=le}}onClick($){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),$.preventDefault()}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.rXU(K.hb),ce.rXU(Xn),ce.rXU(ce.aKT),ce.rXU(Le.Ix),ce.rXU(Le.Wk,8))}),(0,c.A)(U,"\u0275dir",ce.FsC({type:R,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function($,le){1&$&&ce.bIt("click",function(dt){return le.onClick(dt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ce.OA$]})),U})(),Pr=(()=>{var R;class U{constructor($,le,Ue,dt,Gt){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=$,this.navCtrl=le,this.elementRef=Ue,this.router=dt,this.routerLink=Gt}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var $;if(null!==($=this.routerLink)&&void 0!==$&&$.urlTree){const le=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=le}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.rXU(K.hb),ce.rXU(Xn),ce.rXU(ce.aKT),ce.rXU(Le.Ix),ce.rXU(Le.Wk,8))}),(0,c.A)(U,"\u0275dir",ce.FsC({type:R,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function($,le){1&$&&ce.bIt("click",function(){return le.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ce.OA$]})),U})();const yr=["animated","animation","root","rootParams","swipeGesture"],Vr=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let gi=(()=>{var R;let U=((0,c.A)(R=class{constructor($,le,Ue,dt,Gt,qt){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Gt,qt.detach(),this.el=$.nativeElement,$.nativeElement.delegate=dt.create(le,Ue),Cr(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function($){return new($||R)(ce.rXU(ce.aKT),ce.rXU(ce.uvJ),ce.rXU(ce.zZn),ce.rXU(on),ce.rXU(ce.SKi),ce.rXU(ce.gRc))}),(0,c.A)(R,"\u0275dir",ce.FsC({type:R,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),R);return U=(0,tt.Cg)([jn({inputs:yr,methods:Vr})],U),U})(),ir=(()=>{var R;class U{constructor($){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new ce.bkB),(0,c.A)(this,"ionTabsDidChange",new ce.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=$}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:$,tabSwitch:le}){const Ue=$.stackId;le&&void 0!==Ue&&this.ionTabsWillChange.emit({tab:Ue})}onStackDidChange({enteringView:$,tabSwitch:le}){const Ue=$.stackId;le&&void 0!==Ue&&(this.tabBar&&(this.tabBar.selectedTab=Ue),this.ionTabsDidChange.emit({tab:Ue}))}select($){const le="string"==typeof $,Ue=le?$:$.detail.tab,dt=this.outlet.getActiveStackId()===Ue,Gt=`${this.outlet.tabsPrefix}/${Ue}`;if(le||$.stopPropagation(),dt){const qt=this.outlet.getActiveStackId(),Wn=this.outlet.getLastRouteView(qt);if((null==Wn?void 0:Wn.url)===Gt)return;const $n=this.outlet.getRootView(Ue);return this.navCtrl.navigateRoot(Gt,{...$n&&Gt===$n.url&&$n.savedExtras,animated:!0,animationDirection:"back"})}{const qt=this.outlet.getLastRouteView(Ue);return this.navCtrl.navigateRoot((null==qt?void 0:qt.url)||Gt,{...null==qt?void 0:qt.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach($=>{const le=$.el.getAttribute("slot");le!==this.tabBarSlot&&(this.tabBarSlot=le,this.relocateTabBar())})}relocateTabBar(){const $=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before($):this.tabsInner.nativeElement.after($)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.rXU(Xn))}),(0,c.A)(U,"\u0275dir",ce.FsC({type:R,selectors:[["ion-tabs"]],viewQuery:function($,le){if(1&$&&ce.GBs(Jt,7,ce.aKT),2&$){let Ue;ce.mGM(Ue=ce.lsd())&&(le.tabsInner=Ue.first)}},hostBindings:function($,le){1&$&&ce.bIt("ionTabButtonClick",function(dt){return le.select(dt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),U})();const Fi=R=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(R):"function"==typeof requestAnimationFrame?requestAnimationFrame(R):setTimeout(R);let Mi=(()=>{var R;class U{constructor($,le){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=$,this.elementRef=le}writeValue($){this.elementRef.nativeElement.value=this.lastValue=$,mi(this.elementRef)}handleValueChange($,le){$===this.elementRef.nativeElement&&(le!==this.lastValue&&(this.lastValue=le,this.onChange(le)),mi(this.elementRef))}_handleBlurEvent($){$===this.elementRef.nativeElement&&(this.onTouched(),mi(this.elementRef))}registerOnChange($){this.onChange=$}registerOnTouched($){this.onTouched=$}setDisabledState($){this.elementRef.nativeElement.disabled=$}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let $;try{$=this.injector.get(Ge.vO)}catch{}if(!$)return;$.statusChanges&&(this.statusChanges=$.statusChanges.subscribe(()=>mi(this.elementRef)));const le=$.control;le&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(dt=>{if(typeof le[dt]<"u"){const Gt=le[dt].bind(le);le[dt]=(...qt)=>{Gt(...qt),mi(this.elementRef)}}})}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(ce.rXU(ce.zZn),ce.rXU(ce.aKT))}),(0,c.A)(U,"\u0275dir",ce.FsC({type:R,hostBindings:function($,le){1&$&&ce.bIt("ionBlur",function(dt){return le._handleBlurEvent(dt.target)})}})),U})();const mi=R=>{Fi(()=>{const U=R.nativeElement,ee=null!=U.value&&U.value.toString().length>0,$=Nt(U);It(U,$);const le=U.closest("ion-item");le&&It(le,ee?[...$,"item-has-value"]:$)})},Nt=R=>{const U=R.classList,ee=[];for(let $=0;${const ee=R.classList;ee.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ee.add(...U)},zt=(R,U)=>R.substring(0,U.length)===U;class Tn{shouldDetach(U){return!1}shouldAttach(U){return!1}store(U,ee){}retrieve(U){return null}shouldReuseRoute(U,ee){if(U.routeConfig!==ee.routeConfig)return!1;const $=U.params,le=ee.params,Ue=Object.keys($),dt=Object.keys(le);if(Ue.length!==dt.length)return!1;for(const Gt of Ue)if(le[Gt]!==$[Gt])return!1;return!0}}class fe{constructor(U){(0,c.A)(this,"ctrl",void 0),this.ctrl=U}create(U){return this.ctrl.create(U||{})}dismiss(U,ee,$){return this.ctrl.dismiss(U,ee,$)}getTop(){return this.ctrl.getTop()}}},7863:(Dn,Ct,x)=>{"use strict";x.d(Ct,{hG:()=>vi,U1:()=>Nn,Jm:()=>rr,b_:()=>wt,I9:()=>Ft,ME:()=>en,HW:()=>on,tN:()=>Ar,ZB:()=>An,hU:()=>sn,W9:()=>Kt,M0:()=>jn,lO:()=>ii,eU:()=>er,iq:()=>Mn,$w:()=>Ii,uz:()=>zr,Dg:()=>de,he:()=>me,nf:()=>ke,oS:()=>nt,MC:()=>et,cA:()=>Lt,To:()=>ir,Ki:()=>Fi,Rg:()=>Ir,ln:()=>It,HP:()=>le,nc:()=>qt,BC:()=>$n,ai:()=>$r,bv:()=>Li,Xi:()=>ur,_t:()=>Kr,N7:()=>Fr,oY:()=>Er,Gw:()=>W});var f=x(9842),c=x(4438),ce=x(4341),Le=x(3656),K=x(1635),Ee=x(3726),te=x(177),qe=x(305),Be=(x(9986),x(2725),x(8454),x(3314),x(8607),x(3664)),it=x(464),Et=x(5465),lt=x(6002),xt=(x(8476),x(9672));x(1970),x(6411);var be=x(467);const Ve=Be.i,Te=function(){var S=(0,be.A)(function*(q,ve){if(!(typeof window>"u"))return yield Ve(),(0,xt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),ve)});return function(ve,P){return S.apply(this,arguments)}}(),se=["*"],ze=["outletContent"];let W=(()=>{var S;class q extends Le.fL{constructor(P,ye){super(P,ye)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,f.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,ye){1&P&&c.bIt("ionInput",function(mr){return ye._handleInputEvent(mr.target)})},features:[c.Jv_([{provide:ce.kq,useExisting:S,multi:!0}]),c.Vt3]})),q})();const ie=(S,q)=>{const ve=S.prototype;q.forEach(P=>{Object.defineProperty(ve,P,{get(){return this.el[P]},set(ye){this.z.runOutsideAngular(()=>this.el[P]=ye)},configurable:!0})})},J=(S,q)=>{const ve=S.prototype;q.forEach(P=>{ve[P]=function(){const ye=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,ye))}})},re=(S,q,ve)=>{ve.forEach(P=>S[P]=(0,Ee.R)(q,P))};function Ge(S){return function(ve){const{defineCustomElementFn:P,inputs:ye,methods:at}=S;return void 0!==P&&P(),ye&&ie(ve,ye),at&&J(ve,at),ve}}let Nn=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({})],q),q})(),rr=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],q),q})(),wt=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],q),q})(),Ft=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["mode"]})],q),q})(),en=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","mode","translucent"]})],q),q})(),on=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","mode"]})],q),q})(),Ar=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","mode"]})],q),q})(),An=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","disabled","mode","outline"]})],q),q})(),sn=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],q),q})(),Kt=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],q),q})(),jn=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["collapse","mode","translucent"]})],q),q})(),ii=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["fixed"]})],q),q})(),er=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["collapse","mode","translucent"]})],q),q})(),Mn=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],q),q})(),Ii=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],q),q})(),zr=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],q),q})(),de=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","mode","sticky"]})],q),q})(),me=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","mode","position"]})],q),q})(),ke=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],q),q})(),nt=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],q),q})(),et=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["autoHide","color","disabled","menu","mode","type"]})],q),q})(),Lt=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["autoHide","menu"]})],q),q})(),ir=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],q),q})(),Fi=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],q),q})(),It=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({})],q),q})(),le=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["contentId","disabled","when"]})],q),q})(),qt=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement,re(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],q),q})(),$n=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","size"]})],q),q})(),$r=(()=>{var S;let q=((0,f.A)(S=class{constructor(P,ye,at){(0,f.A)(this,"z",void 0),(0,f.A)(this,"el",void 0),this.z=at,P.detach(),this.el=ye.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,f.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:se,decls:1,vars:0,template:function(P,ye){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,K.Cg)([Ge({inputs:["color","mode"]})],q),q})(),Ir=(()=>{var S;class q extends Le.Rg{constructor(P,ye,at,mr,Ei,H,ue,Me){super(P,ye,at,mr,Ei,H,ue,Me),(0,f.A)(this,"parentOutlet",void 0),(0,f.A)(this,"outletContent",void 0),this.parentOutlet=Me}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)(c.kS0("name"),c.kS0("tabs"),c.rXU(te.aZ),c.rXU(c.aKT),c.rXU(qe.Ix),c.rXU(c.SKi),c.rXU(qe.nX),c.rXU(S,12))}),(0,f.A)(q,"\u0275cmp",c.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(P,ye){if(1&P&&c.GBs(ze,7,c.c1b),2&P){let at;c.mGM(at=c.lsd())&&(ye.outletContent=at.first)}},features:[c.Vt3],ngContentSelectors:se,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,ye){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),q})(),Fr=(()=>{var S;class q extends Le.CE{}return S=q,(0,f.A)(q,"\u0275fac",(()=>{let ve;return function(ye){return(ve||(ve=c.xGo(S)))(ye||S)}})()),(0,f.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),q})(),Er=(()=>{var S;class q extends Le.pF{}return S=q,(0,f.A)(q,"\u0275fac",(()=>{let ve;return function(ye){return(ve||(ve=c.xGo(S)))(ye||S)}})()),(0,f.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),q})();const kn={provide:ce.cz,useExisting:(0,c.Rfq)(()=>Vn),multi:!0};let Vn=(()=>{var S;class q extends ce.zX{}return S=q,(0,f.A)(q,"\u0275fac",(()=>{let ve;return function(ye){return(ve||(ve=c.xGo(S)))(ye||S)}})()),(0,f.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,ye){2&P&&c.BMQ("max",ye._enabled?ye.max:null)},features:[c.Jv_([kn]),c.Vt3]})),q})();const _o={provide:ce.cz,useExisting:(0,c.Rfq)(()=>ai),multi:!0};let ai=(()=>{var S;class q extends ce.VZ{}return S=q,(0,f.A)(q,"\u0275fac",(()=>{let ve;return function(ye){return(ve||(ve=c.xGo(S)))(ye||S)}})()),(0,f.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,ye){2&P&&c.BMQ("min",ye._enabled?ye.min:null)},features:[c.Jv_([_o]),c.Vt3]})),q})(),vi=(()=>{var S;class q extends Le.Kb{constructor(){super(lt.a)}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,f.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),q})(),ur=(()=>{var S;class q extends Le.Kb{constructor(){super(lt.l)}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,f.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),q})(),Kr=(()=>{var S;class q extends Le._t{constructor(){super(Et.m)}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,f.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),q})(),_i=(()=>{var S;class q extends Le.Kb{constructor(){super(lt.m),(0,f.A)(this,"angularDelegate",(0,c.WQX)(Le.Yq)),(0,f.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,f.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,f.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac})),q})();class Lo extends Le.Kb{constructor(){super(lt.c),(0,f.A)(this,"angularDelegate",(0,c.WQX)(Le.Yq)),(0,f.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,f.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(q){return super.create({...q,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Do=(S,q,ve)=>()=>{const P=q.defaultView;if(P&&typeof window<"u"){(0,it.s)({...S,_zoneGate:at=>ve.run(at)});const ye="__zone_symbol__addEventListener"in q.body?"__zone_symbol__addEventListener":"addEventListener";return function Qe(){var S=[];if(typeof window<"u"){var q=window;(!q.customElements||q.Element&&(!q.Element.prototype.closest||!q.Element.prototype.matches||!q.Element.prototype.remove||!q.Element.prototype.getRootNode))&&S.push(x.e(7278).then(x.t.bind(x,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||q.NodeList&&!q.NodeList.prototype.forEach||!q.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(x.e(9329).then(x.t.bind(x,7783,23)))}return Promise.all(S)}().then(()=>Te(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Le.er,jmp:at=>ve.runOutsideAngular(at),ael(at,mr,Ei,H){at[ye](mr,Ei,H)},rel(at,mr,Ei,H){at.removeEventListener(mr,Ei,H)}}))}};let Li=(()=>{var S;class q{static forRoot(P={}){return{ngModule:q,providers:[{provide:Le.sR,useValue:P},{provide:c.hnV,useFactory:Do,multi:!0,deps:[Le.sR,te.qQ,c.SKi]},Le.Yq,(0,Le.YV)()]}}}return S=q,(0,f.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,f.A)(q,"\u0275mod",c.$C({type:S})),(0,f.A)(q,"\u0275inj",c.G2t({providers:[_i,Lo],imports:[te.MD]})),q})()},2214:(Dn,Ct,x)=>{"use strict";x.d(Ct,{Dk:()=>f.Dk,KO:()=>f.KO,Sx:()=>f.Sx,Wp:()=>f.Wp});var f=x(7852);(0,f.KO)("firebase","10.12.2","app")},4688:(Dn,Ct,x)=>{"use strict";x.d(Ct,{$P:()=>pt,sN:()=>Qe,eS:()=>_t});var f=x(467),c=x(4438),ce=x(1413),Le=x(6129);class K extends ce.B{constructor(Ve=1/0,Te=1/0,se=Le.U){super(),this._bufferSize=Ve,this._windowTime=Te,this._timestampProvider=se,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Te===1/0,this._bufferSize=Math.max(1,Ve),this._windowTime=Math.max(1,Te)}next(Ve){const{isStopped:Te,_buffer:se,_infiniteTimeWindow:ze,_timestampProvider:gt,_windowTime:Bt}=this;Te||(se.push(Ve),!ze&&se.push(gt.now()+Bt)),this._trimBuffer(),super.next(Ve)}_subscribe(Ve){this._throwIfClosed(),this._trimBuffer();const Te=this._innerSubscribe(Ve),{_infiniteTimeWindow:se,_buffer:ze}=this,gt=ze.slice();for(let Bt=0;Bt{let gt=function Be(be){return be instanceof Date&&!isNaN(be)}(be)?+be-Te.now():be;gt<0&&(gt=0);let Bt=0;return Te.schedule(function(){ze.closed||(ze.next(Bt++),0<=se?this.schedule(void 0,se):ze.complete())},gt)})}(be,Ve);return function je(be,Ve){return(0,Je.N)((Te,se)=>{const{leading:ze=!0,trailing:gt=!1}=null!=Ve?Ve:{};let Bt=!1,At=null,He=null,Zt=!1;const tt=()=>{null==He||He.unsubscribe(),He=null,gt&&(W(),Zt&&se.complete())},De=()=>{He=null,Zt&&se.complete()},j=ie=>He=(0,Ae.Tg)(be(ie)).subscribe((0,we._)(se,tt,De)),W=()=>{if(Bt){Bt=!1;const ie=At;At=null,se.next(ie),!Zt&&j(ie)}};Te.subscribe((0,we._)(se,ie=>{Bt=!0,At=ie,(!He||He.closed)&&(ze?W():j(ie))},()=>{Zt=!0,(!(gt&&Bt&&He)||He.closed)&&se.complete()}))})}(()=>se,Te)}var lt=x(5558);class mt{constructor(){this.subject=new K(1),this.subscriptions=new Ee.yU}doFilter(Ve){this.subject.next(Ve)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Ve,Te){this.subscriptions.add(this.subject.subscribe(se=>{if(se[Ve]){const ze=se[Ve].currentValue;null!=ze&&Te(ze)}}))}has(Ve,Te){this.subscriptions.add(this.subject.subscribe(se=>{se[Ve]&&Te(se[Ve].currentValue)}))}notFirst(Ve,Te){this.subscriptions.add(this.subject.subscribe(se=>{se[Ve]&&!se[Ve].isFirstChange()&&Te(se[Ve].currentValue)}))}notFirstAndEmpty(Ve,Te){this.subscriptions.add(this.subject.subscribe(se=>{if(se[Ve]&&!se[Ve].isFirstChange()){const ze=se[Ve].currentValue;null!=ze&&Te(ze)}}))}}const xt=new c.nKC("NGX_ECHARTS_CONFIG");let pt=(()=>{var be;class Ve{constructor(se,ze,gt){this.el=ze,this.ngZone=gt,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new K(1),this.resize$=new ce.B,this.changeFilter=new mt,this.resizeObFired=!1,this.echarts=se.echarts,this.theme=se.theme||null}ngOnChanges(se){this.changeFilter.doFilter(se)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Et(100,te.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(se=>{for(const ze of se)ze.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",se=>this.onOptionsChange(se)),this.changeFilter.notFirstAndEmpty("merge",se=>this.setOption(se)),this.changeFilter.has("loading",se=>this.toggleLoading(!!se)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(se){this.chart?se?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(ze=>se?ze.showLoading(this.loadingType,this.loadingOpts):ze.hideLoading())}setOption(se,ze){if(this.chart)try{this.chart.setOption(se,ze)}catch(gt){console.error(gt),this.optionsError.emit(gt)}}refreshChart(){var se=this;return(0,f.A)(function*(){se.dispose(),yield se.initChart()})()}createChart(){const se=this.el.nativeElement;if(window&&window.getComputedStyle){const ze=window.getComputedStyle(se,null).getPropertyValue("height");(!ze||"0px"===ze)&&(!se.style.height||"0px"===se.style.height)&&(se.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:gt})=>gt(se,this.theme,this.initOpts)))}initChart(){var se=this;return(0,f.A)(function*(){yield se.onOptionsChange(se.options),se.merge&&se.chart&&se.setOption(se.merge)})()}onOptionsChange(se){var ze=this;return(0,f.A)(function*(){se&&(ze.chart||(ze.chart=yield ze.createChart(),ze.chart$.next(ze.chart),ze.chartInit.emit(ze.chart)),ze.setOption(ze.options,!0))})()}createLazyEvent(se){return this.chartInit.pipe((0,lt.n)(ze=>new qe.c(gt=>(ze.on(se,Bt=>this.ngZone.run(()=>gt.next(Bt))),()=>{this.chart&&(this.chart.isDisposed()||ze.off(se))}))))}}return(be=Ve).\u0275fac=function(se){return new(se||be)(c.rXU(xt),c.rXU(c.aKT),c.rXU(c.SKi))},be.\u0275dir=c.FsC({type:be,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Ve})();const _t=(be={})=>({provide:xt,useFactory:()=>({...be,echarts:()=>x.e(9697).then(x.bind(x,9697))})}),Ne=be=>({provide:xt,useValue:be});let Qe=(()=>{var be;class Ve{static forRoot(se){return{ngModule:Ve,providers:[Ne(se)]}}static forChild(){return{ngModule:Ve}}}return(be=Ve).\u0275fac=function(se){return new(se||be)},be.\u0275mod=c.$C({type:be}),be.\u0275inj=c.G2t({}),Ve})()},7616:(Dn,Ct,x)=>{"use strict";x.d(Ct,{E:()=>Ne,n:()=>Qe});var f=x(4438),c=x(177);const ce=["flamegraph-node",""];function Le(be,Ve){if(1&be){const Te=f.RV6();f.j41(0,"div",2)(1,"div",3),f.EFF(2),f.k0s(),f.j41(3,"div",2),f.qSk(),f.j41(4,"svg",4)(5,"g",5),f.bIt("click",function(){const ze=f.eBV(Te).$implicit,gt=f.XpG();return f.Njj(gt.frameClick.emit(ze.original))})("mouseOverZoneless",function(){const ze=f.eBV(Te).$implicit,gt=f.XpG();return f.Njj(gt.frameMouseEnter.emit(ze.original))})("mouseLeaveZoneless",function(){const ze=f.eBV(Te).$implicit,gt=f.XpG();return f.Njj(gt.frameMouseLeave.emit(ze.original))})("zoom",function(){const ze=f.eBV(Te).$implicit,gt=f.XpG();return f.Njj(gt.zoom.emit(ze))}),f.k0s()()()()}if(2&be){const Te=Ve.$implicit,se=f.XpG();f.xc7("position","absolute")("transform","translate("+se.getLeft(Te)+"px,"+se.getTop(Te)+"px)")("height",se.levelHeight,"px"),f.AVh("hide-bar",!(void 0===se.minimumBarSize||se.getWidth(Te)>se.minimumBarSize)),f.R7$(),f.xc7("width",se.getWidth(Te),"px"),f.R7$(),f.SpI(" ",Te.label," "),f.R7$(),f.xc7("transform","scaleX("+se.getWidth(Te)/se.width+")")("height",se.levelHeight,"px"),f.R7$(2),f.Y8G("height",se.levelHeight)("navigable",Te.navigable)("color",Te.color)}}function K(be,Ve){if(1&be){const Te=f.RV6();f.j41(0,"ngx-flamegraph-graph",1),f.bIt("frameClick",function(ze){f.eBV(Te);const gt=f.XpG();return f.Njj(gt.frameClick.emit(ze))})("frameMouseEnter",function(ze){f.eBV(Te);const gt=f.XpG();return f.Njj(gt.onFrameMouseEnter(ze))})("frameMouseLeave",function(ze){f.eBV(Te);const gt=f.XpG();return f.Njj(gt.onFrameMouseLeave(ze))})("zoom",function(ze){f.eBV(Te);const gt=f.XpG();return f.Njj(gt.onZoom(ze))}),f.k0s()}if(2&be){const Te=f.XpG();f.xc7("height",Te.depth*Te.levelHeight,"px")("width",Te.width,"px"),f.Y8G("layout",Te.siblingLayout)("data",Te.entries)("depth",Te.depth)("levelHeight",Te.levelHeight)("width",Te.width)("minimumBarSize",Te.minimumBarSize)}}const Ee=be=>be.reduce((Ve,Te)=>Math.max(Ve,Te.value,Ee(Te.children||[])),-1/0),te=([be,Ve],Te)=>be+(Ve-be)*Te,qe=(be,Ve,Te,se,ze=null,gt=0,Bt=1,At=0)=>{const He=[];let Zt=0;be.forEach(De=>{Zt+=De.value});const tt=[];return be.forEach(De=>{var j,W,ie;let J=Bt/be.length;"relative"===Ve&&(J=De.value/Zt*Bt||0);const re=Math.min(De.value/Te,1),Re=De.color||`hsl(${null!==(j=te(se.hue,re))&&void 0!==j?j:0}, ${null!==(W=te(se.saturation,re))&&void 0!==W?W:80}%, ${null!==(ie=te(se.lightness,re))&&void 0!==ie?ie:0}%)`,Jt={label:De.label,value:De.value,siblings:tt,color:Re,widthRatio:J,originalWidthRatio:J,originalLeftRatio:gt,leftRatio:gt,navigable:!1,rowNumber:At,original:De,children:[],parent:ze};ze&&ze.children.push(Jt);const yn=qe(De.children||[],Ve,Te,se,Jt,gt,J,At+1);tt.push(Jt),He.push(Jt,...yn),gt+=J}),He},Je=be=>{if(!be||!be.length)return 0;let Ve=0;for(const Te of be)Ve=Math.max(1+Je(Te.children),Ve);return Ve},je=(be,Ve)=>{Ve.widthRatio=0,Ve.leftRatio=be,Ve.children.forEach(Te=>je(be,Te))},Ke=be=>{const Ve=be.siblings.indexOf(be);for(let Te=0;Te{let ze=0;be.forEach(gt=>{ze+=gt.value}),be.forEach(gt=>{let Bt=gt.value/ze*se;"equal"===Ve&&(Bt=se/be.length),gt.widthRatio=Bt,gt.leftRatio=Te,it(gt.children,Ve,Te,Bt),Te+=Bt})},Et=be=>{be.navigable=!1,be.leftRatio=be.originalLeftRatio,be.widthRatio=be.originalWidthRatio,be.children.forEach(Et)},mt={hue:[50,0],saturation:[80,80],lightness:[55,60]};let xt=(()=>{class be{constructor(Te,se,ze){this._ngZone=Te,this._element=se,this._renderer=ze,this.navigable=!1,this.zoom=new f.bkB,this.mouseOverZoneless=new f.bkB,this.mouseLeaveZoneless=new f.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Te=>this.mouseOverZoneless.emit(Te)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Te=>this.mouseLeaveZoneless.emit(Te))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return be.\u0275fac=function(Te){return new(Te||be)(f.rXU(f.SKi),f.rXU(f.aKT),f.rXU(f.sFG))},be.\u0275cmp=f.VBU({type:be,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:ce,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Te,se){1&Te&&(f.qSk(),f.j41(0,"rect",0),f.bIt("dblclick",function(){return se.zoom.emit()}),f.k0s()),2&Te&&(f.AVh("ngx-fg-navigable",se.navigable),f.BMQ("height",se.height)("fill",se.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),be})(),pt=(()=>{class be{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new f.bkB,this.frameMouseEnter=new f.bkB,this.frameMouseLeave=new f.bkB,this.zoom=new f.bkB}set data(Te){this.entries=Te}get height(){return this.levelHeight*this.depth}getTop(Te){return Te.rowNumber*this.levelHeight}getLeft(Te){return Te.leftRatio*this.width}getWidth(Te){return Te.widthRatio*this.width||0}}return be.\u0275fac=function(Te){return new(Te||be)},be.\u0275cmp=f.VBU({type:be,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Te,se){1&Te&&(f.j41(0,"div",0),f.DNE(1,Le,6,18,"div",1),f.k0s()),2&Te&&(f.AVh("ngx-fg-grayscale",se.selectedData&&se.selectedData.length),f.R7$(),f.Y8G("ngForOf",se.entries))},dependencies:[c.Sq,xt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),be})();const _t=typeof ResizeObserver<"u";let Ne=(()=>{class be{constructor(Te,se,ze){this._el=Te,this.cdr=se,this._ngZone=ze,this.entries=[],this.depth=0,this.frameClick=new f.bkB,this.frameMouseEnter=new f.bkB,this.frameMouseLeave=new f.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Te){var se,ze;this._data=Te.data,this._colors=null!==(se=Te.color)&&void 0!==se?se:mt,this.minimumBarSize=null!==(ze=Te.minimumBarSize)&&void 0!==ze?ze:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Te;const se=null===(Te=this._el.nativeElement)||void 0===Te?void 0:Te.parentElement;se&&null===this.width&&_t&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(se))}ngOnDestroy(){var Te;const se=null===(Te=this._el.nativeElement)||void 0===Te?void 0:Te.parentElement;se&&this._resizeObserver&&_t&&this._resizeObserver.unobserve(se)}_onParentResize(){var Te;const se=null===(Te=this._el.nativeElement)||void 0===Te?void 0:Te.parentElement;se&&(this.width=se.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Te,saturation:se,lightness:ze}=this._colors,gt={hue:Array.isArray(Te)?Te:[Te,Te],saturation:Array.isArray(se)?se:[se,se],lightness:Array.isArray(ze)?ze:[ze,ze]};this.entries=qe(this._data,this.siblingLayout,Ee(this._data),gt),this.depth=Je(this._data)}onZoom(Te){Te.navigable&&Et(Te),((be,Ve)=>{let Te=be;for(;Te;)Te.widthRatio=1,Te.leftRatio=0,Ke(Te),Te=Te.parent,Te&&(Te.navigable=!0);it(be.children,Ve)})(Te,this.siblingLayout)}onFrameMouseEnter(Te){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Te))}onFrameMouseLeave(Te){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Te))}}return be.\u0275fac=function(Te){return new(Te||be)(f.rXU(f.aKT),f.rXU(f.gRc),f.rXU(f.SKi))},be.\u0275cmp=f.VBU({type:be,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Te,se){2&Te&&f.BMQ("style",se.hostStyles,f.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Te,se){1&Te&&f.DNE(0,K,1,10,"ngx-flamegraph-graph",0),2&Te&&f.Y8G("ngIf",null!==se.width)},dependencies:[c.bT,pt],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),be})(),Qe=(()=>{class be{}return be.\u0275fac=function(Te){return new(Te||be)},be.\u0275mod=f.$C({type:be}),be.\u0275inj=f.G2t({imports:[c.MD]}),be})()},467:(Dn,Ct,x)=>{"use strict";function f(ce,Le,K,Ee,te,qe,Je){try{var we=ce[qe](Je),Ae=we.value}catch(je){return void K(je)}we.done?Le(Ae):Promise.resolve(Ae).then(Ee,te)}function c(ce){return function(){var Le=this,K=arguments;return new Promise(function(Ee,te){var qe=ce.apply(Le,K);function Je(Ae){f(qe,Ee,te,Je,we,"next",Ae)}function we(Ae){f(qe,Ee,te,Je,we,"throw",Ae)}Je(void 0)})}}x.d(Ct,{A:()=>c})},9842:(Dn,Ct,x)=>{"use strict";function f(K){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ee){return typeof Ee}:function(Ee){return Ee&&"function"==typeof Symbol&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee})(K)}function Le(K,Ee,te){return(Ee=function ce(K){var Ee=function c(K,Ee){if("object"!=f(K)||!K)return K;var te=K[Symbol.toPrimitive];if(void 0!==te){var qe=te.call(K,Ee||"default");if("object"!=f(qe))return qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ee?String:Number)(K)}(K,"string");return"symbol"==f(Ee)?Ee:String(Ee)}(Ee))in K?Object.defineProperty(K,Ee,{value:te,enumerable:!0,configurable:!0,writable:!0}):K[Ee]=te,K}x.d(Ct,{A:()=>Le})},1635:(Dn,Ct,x)=>{"use strict";function Le(j,W){var ie={};for(var J in j)Object.prototype.hasOwnProperty.call(j,J)&&W.indexOf(J)<0&&(ie[J]=j[J]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var re=0;for(J=Object.getOwnPropertySymbols(j);re=0;Jt--)(Ge=j[Jt])&&(Re=(re<3?Ge(Re):re>3?Ge(W,ie,Re):Ge(W,ie))||Re);return re>3&&Re&&Object.defineProperty(W,ie,Re),Re}function je(j,W,ie,J){return new(ie||(ie=Promise))(function(Re,Ge){function Jt(Fn){try{rn(J.next(Fn))}catch(Nn){Ge(Nn)}}function yn(Fn){try{rn(J.throw(Fn))}catch(Nn){Ge(Nn)}}function rn(Fn){Fn.done?Re(Fn.value):function re(Re){return Re instanceof ie?Re:new ie(function(Ge){Ge(Re)})}(Fn.value).then(Jt,yn)}rn((J=J.apply(j,W||[])).next())})}function _t(j){return this instanceof _t?(this.v=j,this):new _t(j)}function Ne(j,W,ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,J=ie.apply(j,W||[]),Re=[];return re={},Ge("next"),Ge("throw"),Ge("return"),re[Symbol.asyncIterator]=function(){return this},re;function Ge(qn){J[qn]&&(re[qn]=function(Zn){return new Promise(function(Xn,wn){Re.push([qn,Zn,Xn,wn])>1||Jt(qn,Zn)})})}function Jt(qn,Zn){try{!function yn(qn){qn.value instanceof _t?Promise.resolve(qn.value.v).then(rn,Fn):Nn(Re[0][2],qn)}(J[qn](Zn))}catch(Xn){Nn(Re[0][3],Xn)}}function rn(qn){Jt("next",qn)}function Fn(qn){Jt("throw",qn)}function Nn(qn,Zn){qn(Zn),Re.shift(),Re.length&&Jt(Re[0][0],Re[0][1])}}function be(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie,W=j[Symbol.asyncIterator];return W?W.call(j):(j=function Et(j){var W="function"==typeof Symbol&&Symbol.iterator,ie=W&&j[W],J=0;if(ie)return ie.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&J>=j.length&&(j=void 0),{value:j&&j[J++],done:!j}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),ie={},J("next"),J("throw"),J("return"),ie[Symbol.asyncIterator]=function(){return this},ie);function J(Re){ie[Re]=j[Re]&&function(Ge){return new Promise(function(Jt,yn){!function re(Re,Ge,Jt,yn){Promise.resolve(yn).then(function(rn){Re({value:rn,done:Jt})},Ge)}(Jt,yn,(Ge=j[Re](Ge)).done,Ge.value)})}}}x.d(Ct,{AQ:()=>Ne,Cg:()=>K,N3:()=>_t,Tt:()=>Le,sH:()=>je,xN:()=>be}),"function"==typeof SuppressedError&&SuppressedError}},Dn=>{Dn(Dn.s=63)}]); \ No newline at end of file diff --git a/www/main.c460d2e87ec1c027.js b/www/main.c460d2e87ec1c027.js deleted file mode 100644 index 0860cb4..0000000 --- a/www/main.c460d2e87ec1c027.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Dn,At,x)=>{"use strict";x.d(At,{Am:()=>on,FA:()=>be,Fy:()=>He,I9:()=>Ar,Im:()=>rr,Ku:()=>ot,T9:()=>yt,Tj:()=>xt,Uj:()=>Qe,XA:()=>Pe,ZQ:()=>Je,bD:()=>bt,cY:()=>Ke,eX:()=>K,g:()=>se,hp:()=>Cn,jZ:()=>mt,lT:()=>Be,lV:()=>zt,nr:()=>De,sr:()=>Rt,tD:()=>sn,u:()=>we,yU:()=>ft,zW:()=>z});const Fe=function(ce){const ge=[];let Ne=0;for(let St=0;St>6|192,ge[Ne++]=63&ne|128):55296==(64512&ne)&&St+1>18|240,ge[Ne++]=ne>>12&63|128,ge[Ne++]=ne>>6&63|128,ge[Ne++]=63&ne|128):(ge[Ne++]=ne>>12|224,ge[Ne++]=ne>>6&63|128,ge[Ne++]=63&ne|128)}return ge},Ie={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ce,ge){if(!Array.isArray(ce))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Ne=ge?this.byteToCharMapWebSafe_:this.byteToCharMap_,St=[];for(let ne=0;ne>6,Qn=63&cn;Xt||(Qn=64,Ye||(_n=64)),St.push(Ne[et>>2],Ne[(3&et)<<4|Lt>>4],Ne[_n],Ne[Qn])}return St.join("")},encodeString(ce,ge){return this.HAS_NATIVE_SUPPORT&&!ge?btoa(ce):this.encodeByteArray(Fe(ce),ge)},decodeString(ce,ge){return this.HAS_NATIVE_SUPPORT&&!ge?atob(ce):function(ce){const ge=[];let Ne=0,St=0;for(;Ne191&&ne<224){const et=ce[Ne++];ge[St++]=String.fromCharCode((31&ne)<<6|63&et)}else if(ne>239&&ne<365){const Xt=((7&ne)<<18|(63&ce[Ne++])<<12|(63&ce[Ne++])<<6|63&ce[Ne++])-65536;ge[St++]=String.fromCharCode(55296+(Xt>>10)),ge[St++]=String.fromCharCode(56320+(1023&Xt))}else{const et=ce[Ne++],Ye=ce[Ne++];ge[St++]=String.fromCharCode((15&ne)<<12|(63&et)<<6|63&Ye)}}return ge.join("")}(this.decodeStringToByteArray(ce,ge))},decodeStringToByteArray(ce,ge){this.init_();const Ne=ge?this.charToByteMapWebSafe_:this.charToByteMap_,St=[];for(let ne=0;ne>4),64!==cn&&(St.push(Lt<<4&240|cn>>2),64!==dn&&St.push(cn<<6&192|dn))}return St},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ce=0;ce=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ce)]=ce,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ce)]=ce)}}};class te extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Qe=function(ce){return function(ce){const ge=Fe(ce);return Ie.encodeByteArray(ge,!0)}(ce).replace(/\./g,"")},we=function(ce){try{return Ie.decodeString(ce,!0)}catch(ge){console.error("base64Decode failed: ",ge)}return null},gt=()=>{try{return function Ve(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const ce=process.env.__FIREBASE_DEFAULTS__;return ce?JSON.parse(ce):void 0})()||(()=>{if(typeof document>"u")return;let ce;try{ce=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ge=ce&&we(ce[1]);return ge&&JSON.parse(ge)})()}catch(ce){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ce}`)}},xt=ce=>{var ge,Ne;return null===(Ne=null===(ge=gt())||void 0===ge?void 0:ge.emulatorHosts)||void 0===Ne?void 0:Ne[ce]},ft=ce=>{const ge=xt(ce);if(!ge)return;const Ne=ge.lastIndexOf(":");if(Ne<=0||Ne+1===ge.length)throw new Error(`Invalid host ${ge} with no separate hostname and port!`);const St=parseInt(ge.substring(Ne+1),10);return"["===ge[0]?[ge.substring(1,Ne-1),St]:[ge.substring(0,Ne),St]},yt=()=>{var ce;return null===(ce=gt())||void 0===ce?void 0:ce.config},Pe=ce=>{var ge;return null===(ge=gt())||void 0===ge?void 0:ge[`_${ce}`]};class Ke{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ge,Ne)=>{this.resolve=ge,this.reject=Ne})}wrapCallback(ge){return(Ne,St)=>{Ne?this.reject(Ne):this.resolve(St),"function"==typeof ge&&(this.promise.catch(()=>{}),1===ge.length?ge(Ne):ge(Ne,St))}}}function He(ce,ge){if(ce.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const St=ge||"demo-project",ne=ce.iat||0,et=ce.sub||ce.user_id;if(!et)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Ye=Object.assign({iss:`https://securetoken.google.com/${St}`,aud:St,iat:ne,exp:ne+3600,auth_time:ne,sub:et,user_id:et,firebase:{sign_in_provider:"custom",identities:{}}},ce);return[Qe(JSON.stringify({alg:"none",type:"JWT"})),Qe(JSON.stringify(Ye)),""].join(".")}function Je(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function mt(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Je())}function Rt(){const ce="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ce&&void 0!==ce.id}function zt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Be(){const ce=Je();return ce.indexOf("MSIE ")>=0||ce.indexOf("Trident/")>=0}function De(){return!function Ce(){var ce;const ge=null===(ce=gt())||void 0===ce?void 0:ce.forceEnvironment;if("node"===ge)return!0;if("browser"===ge)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function z(){try{return"object"==typeof indexedDB}catch{return!1}}function K(){return new Promise((ce,ge)=>{try{let Ne=!0;const St="validate-browser-context-for-indexeddb-analytics-module",ne=self.indexedDB.open(St);ne.onsuccess=()=>{ne.result.close(),Ne||self.indexedDB.deleteDatabase(St),ce(!0)},ne.onupgradeneeded=()=>{Ne=!1},ne.onerror=()=>{var et;ge((null===(et=ne.error)||void 0===et?void 0:et.message)||"")}}catch(Ne){ge(Ne)}})}class se extends Error{constructor(ge,Ne,St){super(Ne),this.code=ge,this.customData=St,this.name="FirebaseError",Object.setPrototypeOf(this,se.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,be.prototype.create)}}class be{constructor(ge,Ne,St){this.service=ge,this.serviceName=Ne,this.errors=St}create(ge,...Ne){const St=Ne[0]||{},ne=`${this.service}/${ge}`,et=this.errors[ge],Ye=et?function Xe(ce,ge){return ce.replace(nn,(Ne,St)=>{const ne=ge[St];return null!=ne?String(ne):`<${St}?>`})}(et,St):"Error";return new se(ne,`${this.serviceName}: ${Ye} (${ne}).`,St)}}const nn=/\{\$([^}]+)}/g;function rr(ce){for(const ge in ce)if(Object.prototype.hasOwnProperty.call(ce,ge))return!1;return!0}function bt(ce,ge){if(ce===ge)return!0;const Ne=Object.keys(ce),St=Object.keys(ge);for(const ne of Ne){if(!St.includes(ne))return!1;const et=ce[ne],Ye=ge[ne];if(Ft(et)&&Ft(Ye)){if(!bt(et,Ye))return!1}else if(et!==Ye)return!1}for(const ne of St)if(!Ne.includes(ne))return!1;return!0}function Ft(ce){return null!==ce&&"object"==typeof ce}function on(ce){const ge=[];for(const[Ne,St]of Object.entries(ce))Array.isArray(St)?St.forEach(ne=>{ge.push(encodeURIComponent(Ne)+"="+encodeURIComponent(ne))}):ge.push(encodeURIComponent(Ne)+"="+encodeURIComponent(St));return ge.length?"&"+ge.join("&"):""}function Ar(ce){const ge={};return ce.replace(/^\?/,"").split("&").forEach(St=>{if(St){const[ne,et]=St.split("=");ge[decodeURIComponent(ne)]=decodeURIComponent(et)}}),ge}function Cn(ce){const ge=ce.indexOf("?");if(!ge)return"";const Ne=ce.indexOf("#",ge);return ce.substring(ge,Ne>0?Ne:void 0)}function sn(ce,ge){const Ne=new Kt(ce,ge);return Ne.subscribe.bind(Ne)}class Kt{constructor(ge,Ne){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Ne,this.task.then(()=>{ge(this)}).catch(St=>{this.error(St)})}next(ge){this.forEachObserver(Ne=>{Ne.next(ge)})}error(ge){this.forEachObserver(Ne=>{Ne.error(ge)}),this.close(ge)}complete(){this.forEachObserver(ge=>{ge.complete()}),this.close()}subscribe(ge,Ne,St){let ne;if(void 0===ge&&void 0===Ne&&void 0===St)throw new Error("Missing Observer.");ne=function Rr(ce,ge){if("object"!=typeof ce||null===ce)return!1;for(const Ne of ge)if(Ne in ce&&"function"==typeof ce[Ne])return!0;return!1}(ge,["next","error","complete"])?ge:{next:ge,error:Ne,complete:St},void 0===ne.next&&(ne.next=Lr),void 0===ne.error&&(ne.error=Lr),void 0===ne.complete&&(ne.complete=Lr);const et=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ne.error(this.finalError):ne.complete()}catch{}}),this.observers.push(ne),et}unsubscribeOne(ge){void 0===this.observers||void 0===this.observers[ge]||(delete this.observers[ge],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ge){if(!this.finalized)for(let Ne=0;Ne{if(void 0!==this.observers&&void 0!==this.observers[ge])try{Ne(this.observers[ge])}catch(St){typeof console<"u"&&console.error&&console.error(St)}})}close(ge){this.finalized||(this.finalized=!0,void 0!==ge&&(this.finalError=ge),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Lr(){}function ot(ce){return ce&&ce._delegate?ce._delegate:ce}},4442:(Dn,At,x)=>{"use strict";x.d(At,{L:()=>W,a:()=>Ie,b:()=>te,c:()=>Ge,d:()=>Qe,g:()=>Ze}),x(5531);const W="ionViewWillEnter",Ie="ionViewDidEnter",te="ionViewWillLeave",Ge="ionViewDidLeave",Qe="ionViewWillUnload",Ze=De=>De.classList.contains("ion-page")?De:De.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||De},5531:(Dn,At,x)=>{"use strict";x.d(At,{a:()=>we,c:()=>c,g:()=>Qe});class g{constructor(){this.m=new Map}reset(De){this.m=new Map(Object.entries(De))}get(De,z){const K=this.m.get(De);return void 0!==K?K:z}getBoolean(De,z=!1){const K=this.m.get(De);return void 0===K?z:"string"==typeof K?"true"===K:!!K}getNumber(De,z){const K=parseFloat(this.m.get(De));return isNaN(K)?void 0!==z?z:NaN:K}set(De,z){this.m.set(De,z)}}const c=new g,Qe=Ze=>Ee(Ze),we=(Ze,De)=>("string"==typeof Ze&&(De=Ze,Ze=void 0),Qe(Ze).includes(De)),Ee=(Ze=window)=>{if(typeof Ze>"u")return[];Ze.Ionic=Ze.Ionic||{};let De=Ze.Ionic.platforms;return null==De&&(De=Ze.Ionic.platforms=Ue(Ze),De.forEach(z=>Ze.document.documentElement.classList.add(`plt-${z}`))),De},Ue=Ze=>{const De=c.get("platform");return Object.keys(zt).filter(z=>{const K=null==De?void 0:De[z];return"function"==typeof K?K(Ze):zt[z](Ze)})},Ve=Ze=>!!(nt(Ze,/iPad/i)||nt(Ze,/Macintosh/i)&&yt(Ze)),at=Ze=>nt(Ze,/android|sink/i),yt=Ze=>Rt(Ze,"(any-pointer:coarse)"),Ke=Ze=>He(Ze)||Je(Ze),He=Ze=>!!(Ze.cordova||Ze.phonegap||Ze.PhoneGap),Je=Ze=>{const De=Ze.Capacitor;return!(null==De||!De.isNative)},nt=(Ze,De)=>De.test(Ze.navigator.userAgent),Rt=(Ze,De)=>{var z;return null===(z=Ze.matchMedia)||void 0===z?void 0:z.call(Ze,De).matches},zt={ipad:Ve,iphone:Ze=>nt(Ze,/iPhone/i),ios:Ze=>nt(Ze,/iPhone|iPod/i)||Ve(Ze),android:at,phablet:Ze=>{const De=Ze.innerWidth,z=Ze.innerHeight,K=Math.min(De,z),q=Math.max(De,z);return K>390&&K<520&&q>620&&q<800},tablet:Ze=>{const De=Ze.innerWidth,z=Ze.innerHeight,K=Math.min(De,z),q=Math.max(De,z);return Ve(Ze)||(Ze=>at(Ze)&&!nt(Ze,/mobile/i))(Ze)||K>460&&K<820&&q>780&&q<1400},cordova:He,capacitor:Je,electron:Ze=>nt(Ze,/electron/i),pwa:Ze=>{var De;return!!(null!==(De=Ze.matchMedia)&&void 0!==De&&De.call(Ze,"(display-mode: standalone)").matches||Ze.navigator.standalone)},mobile:yt,mobileweb:Ze=>yt(Ze)&&!Ke(Ze),desktop:Ze=>!yt(Ze),hybrid:Ke}},9986:(Dn,At,x)=>{"use strict";x.d(At,{c:()=>Ie});var g=x(8476);let c;const Fe=(te,Ge,Qe)=>{const we=Ge.startsWith("animation")?(te=>(void 0===c&&(c=void 0===te.style.animationName&&void 0!==te.style.webkitAnimationName?"-webkit-":""),c))(te):"";te.style.setProperty(we+Ge,Qe)},W=(te=[],Ge)=>{if(void 0!==Ge){const Qe=Array.isArray(Ge)?Ge:[Ge];return[...te,...Qe]}return te},Ie=te=>{let Ge,Qe,we,Ee,Ue,ze,gt,mt,Ce,nt,Be,Ve=[],it=[],It=[],at=!1,xt={},ft=[],yt=[],Pe={},Ke=0,He=!1,Je=!1,Rt=!0,zt=!1,Et=!0,tn=!1;const Ze=te,De=[],z=[],K=[],q=[],ie=[],se=[],be=[],Xe=[],nn=[],En=[],rn=[],Mn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,Vn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Mn,qn=()=>rn,rr=(R,U)=>{const ee=U.findIndex($=>$.c===R);ee>-1&&U.splice(ee,1)},bt=(R,U)=>((null!=U&&U.oneTimeCallback?z:De).push({c:R,o:U}),Be),Jt=()=>{Vn&&(rn.forEach(R=>{R.cancel()}),rn.length=0)},on=()=>{se.forEach(R=>{null!=R&&R.parentNode&&R.parentNode.removeChild(R)}),se.length=0},er=()=>void 0!==Ue?Ue:gt?gt.getFill():"both",Pn=()=>void 0!==mt?mt:void 0!==ze?ze:gt?gt.getDirection():"normal",Mr=()=>He?"linear":void 0!==we?we:gt?gt.getEasing():"linear",tr=()=>Je?0:void 0!==Ce?Ce:void 0!==Qe?Qe:gt?gt.getDuration():0,_r=()=>void 0!==Ee?Ee:gt?gt.getIterations():1,Ii=()=>void 0!==nt?nt:void 0!==Ge?Ge:gt?gt.getDelay():0,Xt=()=>{0!==Ke&&(Ke--,0===Ke&&((()=>{nn.forEach(ae=>ae()),En.forEach(ae=>ae());const R=Rt?1:0,U=ft,ee=yt,$=Pe;q.forEach(ae=>{const ke=ae.classList;U.forEach(ct=>ke.add(ct)),ee.forEach(ct=>ke.remove(ct));for(const ct in $)$.hasOwnProperty(ct)&&Fe(ae,ct,$[ct])}),Ce=void 0,mt=void 0,nt=void 0,De.forEach(ae=>ae.c(R,Be)),z.forEach(ae=>ae.c(R,Be)),z.length=0,Et=!0,Rt&&(zt=!0),Rt=!0})(),gt&>.animationFinish()))},Hn=()=>{(()=>{be.forEach($=>$()),Xe.forEach($=>$());const R=it,U=It,ee=xt;q.forEach($=>{const ae=$.classList;R.forEach(ke=>ae.add(ke)),U.forEach(ke=>ae.remove(ke));for(const ke in ee)ee.hasOwnProperty(ke)&&Fe($,ke,ee[ke])})})(),Ve.length>0&&Vn&&(q.forEach(R=>{const U=R.animate(Ve,{id:Ze,delay:Ii(),duration:tr(),easing:Mr(),iterations:_r(),fill:er(),direction:Pn()});U.pause(),rn.push(U)}),rn.length>0&&(rn[0].onfinish=()=>{Xt()})),at=!0},dn=R=>{R=Math.min(Math.max(R,0),.9999),Vn&&rn.forEach(U=>{U.currentTime=U.effect.getComputedTiming().delay+tr()*R,U.pause()})},_n=R=>{rn.forEach(U=>{U.effect.updateTiming({delay:Ii(),duration:tr(),easing:Mr(),iterations:_r(),fill:er(),direction:Pn()})}),void 0!==R&&dn(R)},Qn=(R=!1,U=!0,ee)=>(R&&ie.forEach($=>{$.update(R,U,ee)}),Vn&&_n(ee),Be),gi=()=>{at&&(Vn?rn.forEach(R=>{R.pause()}):q.forEach(R=>{Fe(R,"animation-play-state","paused")}),tn=!0)},Nt=R=>new Promise(U=>{null!=R&&R.sync&&(Je=!0,bt(()=>Je=!1,{oneTimeCallback:!0})),at||Hn(),zt&&(Vn&&(dn(0),_n()),zt=!1),Et&&(Ke=ie.length+1,Et=!1);const ee=()=>{rr($,z),U()},$=()=>{rr(ee,K),U()};bt($,{oneTimeCallback:!0}),((R,U)=>{K.push({c:R,o:{oneTimeCallback:!0}})})(ee),ie.forEach(ae=>{ae.play()}),Vn?(rn.forEach(R=>{R.play()}),(0===Ve.length||0===q.length)&&Xt()):Xt(),tn=!1}),jt=(R,U)=>{const ee=Ve[0];return void 0===ee||void 0!==ee.offset&&0!==ee.offset?Ve=[{offset:0,[R]:U},...Ve]:ee[R]=U,Be};return Be={parentAnimation:gt,elements:q,childAnimations:ie,id:Ze,animationFinish:Xt,from:jt,to:(R,U)=>{const ee=Ve[Ve.length-1];return void 0===ee||void 0!==ee.offset&&1!==ee.offset?Ve=[...Ve,{offset:1,[R]:U}]:ee[R]=U,Be},fromTo:(R,U,ee)=>jt(R,U).to(R,ee),parent:R=>(gt=R,Be),play:Nt,pause:()=>(ie.forEach(R=>{R.pause()}),gi(),Be),stop:()=>{ie.forEach(R=>{R.stop()}),at&&(Jt(),at=!1),He=!1,Je=!1,Et=!0,mt=void 0,Ce=void 0,nt=void 0,Ke=0,zt=!1,Rt=!0,tn=!1,K.forEach(R=>R.c(0,Be)),K.length=0},destroy:R=>(ie.forEach(U=>{U.destroy(R)}),(R=>{Jt(),R&&on()})(R),q.length=0,ie.length=0,Ve.length=0,De.length=0,z.length=0,at=!1,Et=!0,Be),keyframes:R=>{const U=Ve!==R;return Ve=R,U&&(R=>{Vn&&qn().forEach(U=>{const ee=U.effect;if(ee.setKeyframes)ee.setKeyframes(R);else{const $=new KeyframeEffect(ee.target,R,ee.getTiming());U.effect=$}})})(Ve),Be},addAnimation:R=>{if(null!=R)if(Array.isArray(R))for(const U of R)U.parent(Be),ie.push(U);else R.parent(Be),ie.push(R);return Be},addElement:R=>{if(null!=R)if(1===R.nodeType)q.push(R);else if(R.length>=0)for(let U=0;U(Ue=R,Qn(!0),Be),direction:R=>(ze=R,Qn(!0),Be),iterations:R=>(Ee=R,Qn(!0),Be),duration:R=>(!Vn&&0===R&&(R=1),Qe=R,Qn(!0),Be),easing:R=>(we=R,Qn(!0),Be),delay:R=>(Ge=R,Qn(!0),Be),getWebAnimations:qn,getKeyframes:()=>Ve,getFill:er,getDirection:Pn,getDelay:Ii,getIterations:_r,getEasing:Mr,getDuration:tr,afterAddRead:R=>(nn.push(R),Be),afterAddWrite:R=>(En.push(R),Be),afterClearStyles:(R=[])=>{for(const U of R)Pe[U]="";return Be},afterStyles:(R={})=>(Pe=R,Be),afterRemoveClass:R=>(yt=W(yt,R),Be),afterAddClass:R=>(ft=W(ft,R),Be),beforeAddRead:R=>(be.push(R),Be),beforeAddWrite:R=>(Xe.push(R),Be),beforeClearStyles:(R=[])=>{for(const U of R)xt[U]="";return Be},beforeStyles:(R={})=>(xt=R,Be),beforeRemoveClass:R=>(It=W(It,R),Be),beforeAddClass:R=>(it=W(it,R),Be),onFinish:bt,isRunning:()=>0!==Ke&&!tn,progressStart:(R=!1,U)=>(ie.forEach(ee=>{ee.progressStart(R,U)}),gi(),He=R,at||Hn(),Qn(!1,!0,U),Be),progressStep:R=>(ie.forEach(U=>{U.progressStep(R)}),dn(R),Be),progressEnd:(R,U,ee)=>(He=!1,ie.forEach($=>{$.progressEnd(R,U,ee)}),void 0!==ee&&(Ce=ee),zt=!1,Rt=!0,0===R?(mt="reverse"===Pn()?"normal":"reverse","reverse"===mt&&(Rt=!1),Vn?(Qn(),dn(1-U)):(nt=(1-U)*tr()*-1,Qn(!1,!1))):1===R&&(Vn?(Qn(),dn(U)):(nt=U*tr()*-1,Qn(!1,!1))),void 0!==R&&!gt&&Nt(),Be)}}},464:(Dn,At,x)=>{"use strict";x.d(At,{E:()=>we,a:()=>g,s:()=>Ge});const g=Ee=>{try{if(Ee instanceof te)return Ee.value;if(!Fe()||"string"!=typeof Ee||""===Ee)return Ee;if(Ee.includes("onload="))return"";const Ue=document.createDocumentFragment(),ze=document.createElement("div");Ue.appendChild(ze),ze.innerHTML=Ee,Ie.forEach(at=>{const gt=Ue.querySelectorAll(at);for(let xt=gt.length-1;xt>=0;xt--){const ft=gt[xt];ft.parentNode?ft.parentNode.removeChild(ft):Ue.removeChild(ft);const yt=de(ft);for(let Pe=0;Pe{if(Ee.nodeType&&1!==Ee.nodeType)return;if(typeof NamedNodeMap<"u"&&!(Ee.attributes instanceof NamedNodeMap))return void Ee.remove();for(let ze=Ee.attributes.length-1;ze>=0;ze--){const Ve=Ee.attributes.item(ze),it=Ve.name;if(!W.includes(it.toLowerCase())){Ee.removeAttribute(it);continue}const It=Ve.value,at=Ee[it];(null!=It&&It.toLowerCase().includes("javascript:")||null!=at&&at.toLowerCase().includes("javascript:"))&&Ee.removeAttribute(it)}const Ue=de(Ee);for(let ze=0;zenull!=Ee.children?Ee.children:Ee.childNodes,Fe=()=>{var Ee;const Ue=window,ze=null===(Ee=null==Ue?void 0:Ue.Ionic)||void 0===Ee?void 0:Ee.config;return!ze||(ze.get?ze.get("sanitizerEnabled",!0):!0===ze.sanitizerEnabled||void 0===ze.sanitizerEnabled)},W=["class","id","href","src","name","slot"],Ie=["script","style","iframe","meta","link","object","embed"];class te{constructor(Ue){this.value=Ue}}const Ge=Ee=>{const Ue=window,ze=Ue.Ionic;if(!ze||!ze.config||"Object"===ze.config.constructor.name)return Ue.Ionic=Ue.Ionic||{},Ue.Ionic.config=Object.assign(Object.assign({},Ue.Ionic.config),Ee),Ue.Ionic.config},we=!1},8621:(Dn,At,x)=>{"use strict";x.d(At,{C:()=>W,a:()=>de,d:()=>Fe});var g=x(467),c=x(4920);const de=function(){var Ie=(0,g.A)(function*(te,Ge,Qe,we,Ee,Ue){var ze;if(te)return te.attachViewToDom(Ge,Qe,Ee,we);if(!(Ue||"string"==typeof Qe||Qe instanceof HTMLElement))throw new Error("framework delegate is missing");const Ve="string"==typeof Qe?null===(ze=Ge.ownerDocument)||void 0===ze?void 0:ze.createElement(Qe):Qe;return we&&we.forEach(it=>Ve.classList.add(it)),Ee&&Object.assign(Ve,Ee),Ge.appendChild(Ve),yield new Promise(it=>(0,c.c)(Ve,it)),Ve});return function(Ge,Qe,we,Ee,Ue,ze){return Ie.apply(this,arguments)}}(),Fe=(Ie,te)=>{if(te){if(Ie)return Ie.removeViewFromDom(te.parentElement,te);te.remove()}return Promise.resolve()},W=()=>{let Ie,te;return{attachViewToDom:function(){var we=(0,g.A)(function*(Ee,Ue,ze={},Ve=[]){var it,It;let at;if(Ie=Ee,Ue){const xt="string"==typeof Ue?null===(it=Ie.ownerDocument)||void 0===it?void 0:it.createElement(Ue):Ue;Ve.forEach(ft=>xt.classList.add(ft)),Object.assign(xt,ze),Ie.appendChild(xt),at=xt,yield new Promise(ft=>(0,c.c)(xt,ft))}else if(Ie.children.length>0&&("ION-MODAL"===Ie.tagName||"ION-POPOVER"===Ie.tagName)&&!(at=Ie.children[0]).classList.contains("ion-delegate-host")){const ft=null===(It=Ie.ownerDocument)||void 0===It?void 0:It.createElement("div");ft.classList.add("ion-delegate-host"),Ve.forEach(yt=>ft.classList.add(yt)),ft.append(...Ie.children),Ie.appendChild(ft),at=ft}const gt=document.querySelector("ion-app")||document.body;return te=document.createComment("ionic teleport"),Ie.parentNode.insertBefore(te,Ie),gt.appendChild(Ie),null!=at?at:Ie});return function(Ue,ze){return we.apply(this,arguments)}}(),removeViewFromDom:()=>(Ie&&te&&(te.parentNode.insertBefore(Ie,te),te.remove()),Promise.resolve())}}},1970:(Dn,At,x)=>{"use strict";x.d(At,{B:()=>Fe,G:()=>W});class c{constructor(te,Ge,Qe,we,Ee){this.id=Ge,this.name=Qe,this.disableScroll=Ee,this.priority=1e6*we+Ge,this.ctrl=te}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const te=this.ctrl.capture(this.name,this.id,this.priority);return te&&this.disableScroll&&this.ctrl.disableScroll(this.id),te}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class de{constructor(te,Ge,Qe,we){this.id=Ge,this.disable=Qe,this.disableScroll=we,this.ctrl=te}block(){if(this.ctrl){if(this.disable)for(const te of this.disable)this.ctrl.disableGesture(te,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const te of this.disable)this.ctrl.enableGesture(te,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Fe="backdrop-no-scroll",W=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(te){var Ge;return new c(this,this.newID(),te.name,null!==(Ge=te.priority)&&void 0!==Ge?Ge:0,!!te.disableScroll)}createBlocker(te={}){return new de(this,this.newID(),te.disable,!!te.disableScroll)}start(te,Ge,Qe){return this.canStart(te)?(this.requestedStart.set(Ge,Qe),!0):(this.requestedStart.delete(Ge),!1)}capture(te,Ge,Qe){if(!this.start(te,Ge,Qe))return!1;const we=this.requestedStart;let Ee=-1e4;if(we.forEach(Ue=>{Ee=Math.max(Ee,Ue)}),Ee===Qe){this.capturedId=Ge,we.clear();const Ue=new CustomEvent("ionGestureCaptured",{detail:{gestureName:te}});return document.dispatchEvent(Ue),!0}return we.delete(Ge),!1}release(te){this.requestedStart.delete(te),this.capturedId===te&&(this.capturedId=void 0)}disableGesture(te,Ge){let Qe=this.disabledGestures.get(te);void 0===Qe&&(Qe=new Set,this.disabledGestures.set(te,Qe)),Qe.add(Ge)}enableGesture(te,Ge){const Qe=this.disabledGestures.get(te);void 0!==Qe&&Qe.delete(Ge)}disableScroll(te){this.disabledScroll.add(te),1===this.disabledScroll.size&&document.body.classList.add(Fe)}enableScroll(te){this.disabledScroll.delete(te),0===this.disabledScroll.size&&document.body.classList.remove(Fe)}canStart(te){return!(void 0!==this.capturedId||this.isDisabled(te))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(te){const Ge=this.disabledGestures.get(te);return!!(Ge&&Ge.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Dn,At,x)=>{"use strict";x.r(At),x.d(At,{MENU_BACK_BUTTON_PRIORITY:()=>Qe,OVERLAY_BACK_BUTTON_PRIORITY:()=>Ge,blockHardwareBackButton:()=>Ie,shouldUseCloseWatcher:()=>W,startHardwareBackButton:()=>te});var g=x(467),c=x(8476),de=x(3664);x(9672);const W=()=>de.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,Ie=()=>{document.addEventListener("backbutton",()=>{})},te=()=>{const we=document;let Ee=!1;const Ue=()=>{if(Ee)return;let ze=0,Ve=[];const it=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(gt,xt){Ve.push({priority:gt,handler:xt,id:ze++})}}});we.dispatchEvent(it);const It=function(){var gt=(0,g.A)(function*(xt){try{if(null!=xt&&xt.handler){const ft=xt.handler(at);null!=ft&&(yield ft)}}catch(ft){console.error(ft)}});return function(ft){return gt.apply(this,arguments)}}(),at=()=>{if(Ve.length>0){let gt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Ve.forEach(xt=>{xt.priority>=gt.priority&&(gt=xt)}),Ee=!0,Ve=Ve.filter(xt=>xt.id!==gt.id),It(gt).then(()=>Ee=!1)}};at()};if(W()){let ze;const Ve=()=>{null==ze||ze.destroy(),ze=new c.w.CloseWatcher,ze.onclose=()=>{Ue(),Ve()}};Ve()}else we.addEventListener("backbutton",Ue)},Ge=100,Qe=99},4920:(Dn,At,x)=>{"use strict";x.d(At,{a:()=>Ge,b:()=>Qe,c:()=>de,d:()=>Ve,e:()=>xt,f:()=>ze,g:()=>we,h:()=>W,i:()=>te,j:()=>it,k:()=>Fe,l:()=>Ue,m:()=>It,n:()=>gt,o:()=>ft,p:()=>at,r:()=>Ee,s:()=>yt,t:()=>g});const g=(Pe,Ke=0)=>new Promise(He=>{c(Pe,Ke,He)}),c=(Pe,Ke=0,He)=>{let Je,mt;const Ce={passive:!0},Rt=()=>{Je&&Je()},zt=Et=>{(void 0===Et||Pe===Et.target)&&(Rt(),He(Et))};return Pe&&(Pe.addEventListener("webkitTransitionEnd",zt,Ce),Pe.addEventListener("transitionend",zt,Ce),mt=setTimeout(zt,Ke+500),Je=()=>{void 0!==mt&&(clearTimeout(mt),mt=void 0),Pe.removeEventListener("webkitTransitionEnd",zt,Ce),Pe.removeEventListener("transitionend",zt,Ce)}),Rt},de=(Pe,Ke)=>{Pe.componentOnReady?Pe.componentOnReady().then(He=>Ke(He)):Ee(()=>Ke(Pe))},Fe=Pe=>void 0!==Pe.componentOnReady,W=(Pe,Ke=[])=>{const He={};return Ke.forEach(Je=>{Pe.hasAttribute(Je)&&(null!==Pe.getAttribute(Je)&&(He[Je]=Pe.getAttribute(Je)),Pe.removeAttribute(Je))}),He},Ie=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","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-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],te=(Pe,Ke)=>{let He=Ie;return Ke&&Ke.length>0&&(He=He.filter(Je=>!Ke.includes(Je))),W(Pe,He)},Ge=(Pe,Ke,He,Je)=>{var mt;if(typeof window<"u"){const Ce=window,nt=null===(mt=null==Ce?void 0:Ce.Ionic)||void 0===mt?void 0:mt.config;if(nt){const Rt=nt.get("_ael");if(Rt)return Rt(Pe,Ke,He,Je);if(nt._ael)return nt._ael(Pe,Ke,He,Je)}}return Pe.addEventListener(Ke,He,Je)},Qe=(Pe,Ke,He,Je)=>{var mt;if(typeof window<"u"){const Ce=window,nt=null===(mt=null==Ce?void 0:Ce.Ionic)||void 0===mt?void 0:mt.config;if(nt){const Rt=nt.get("_rel");if(Rt)return Rt(Pe,Ke,He,Je);if(nt._rel)return nt._rel(Pe,Ke,He,Je)}}return Pe.removeEventListener(Ke,He,Je)},we=(Pe,Ke=Pe)=>Pe.shadowRoot||Ke,Ee=Pe=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Pe):"function"==typeof requestAnimationFrame?requestAnimationFrame(Pe):setTimeout(Pe),Ue=Pe=>!!Pe.shadowRoot&&!!Pe.attachShadow,ze=Pe=>{if(Pe.focus(),Pe.classList.contains("ion-focusable")){const Ke=Pe.closest("ion-app");Ke&&Ke.setFocus([Pe])}},Ve=(Pe,Ke,He,Je,mt)=>{if(Pe||Ue(Ke)){let Ce=Ke.querySelector("input.aux-input");Ce||(Ce=Ke.ownerDocument.createElement("input"),Ce.type="hidden",Ce.classList.add("aux-input"),Ke.appendChild(Ce)),Ce.disabled=mt,Ce.name=He,Ce.value=Je||""}},it=(Pe,Ke,He)=>Math.max(Pe,Math.min(Ke,He)),It=(Pe,Ke)=>{if(!Pe){const He="ASSERT: "+Ke;throw console.error(He),new Error(He)}},at=Pe=>{if(Pe){const Ke=Pe.changedTouches;if(Ke&&Ke.length>0){const He=Ke[0];return{x:He.clientX,y:He.clientY}}if(void 0!==Pe.pageX)return{x:Pe.pageX,y:Pe.pageY}}return{x:0,y:0}},gt=Pe=>{const Ke="rtl"===document.dir;switch(Pe){case"start":return Ke;case"end":return!Ke;default:throw new Error(`"${Pe}" is not a valid value for [side]. Use "start" or "end" instead.`)}},xt=(Pe,Ke)=>{const He=Pe._original||Pe;return{_original:Pe,emit:ft(He.emit.bind(He),Ke)}},ft=(Pe,Ke=0)=>{let He;return(...Je)=>{clearTimeout(He),He=setTimeout(Pe,Ke,...Je)}},yt=(Pe,Ke)=>{if(null!=Pe||(Pe={}),null!=Ke||(Ke={}),Pe===Ke)return!0;const He=Object.keys(Pe);if(He.length!==Object.keys(Ke).length)return!1;for(const Je of He)if(!(Je in Ke)||Pe[Je]!==Ke[Je])return!1;return!0}},5465:(Dn,At,x)=>{"use strict";x.d(At,{m:()=>ze});var g=x(467),c=x(8476),de=x(6411),Fe=x(4929),W=x(4920),Ie=x(3664),te=x(9986);const Ge=Ve=>(0,te.c)().duration(Ve?400:300),Qe=Ve=>{let it,It;const at=Ve.width+8,gt=(0,te.c)(),xt=(0,te.c)();Ve.isEndSide?(it=at+"px",It="0px"):(it=-at+"px",It="0px"),gt.addElement(Ve.menuInnerEl).fromTo("transform",`translateX(${it})`,`translateX(${It})`);const yt="ios"===(0,Ie.b)(Ve),Pe=yt?.2:.25;return xt.addElement(Ve.backdropEl).fromTo("opacity",.01,Pe),Ge(yt).addAnimation([gt,xt])},we=Ve=>{let it,It;const at=(0,Ie.b)(Ve),gt=Ve.width;Ve.isEndSide?(it=-gt+"px",It=gt+"px"):(it=gt+"px",It=-gt+"px");const xt=(0,te.c)().addElement(Ve.menuInnerEl).fromTo("transform",`translateX(${It})`,"translateX(0px)"),ft=(0,te.c)().addElement(Ve.contentEl).fromTo("transform","translateX(0px)",`translateX(${it})`),yt=(0,te.c)().addElement(Ve.backdropEl).fromTo("opacity",.01,.32);return Ge("ios"===at).addAnimation([xt,ft,yt])},Ee=Ve=>{const it=(0,Ie.b)(Ve),It=Ve.width*(Ve.isEndSide?-1:1)+"px",at=(0,te.c)().addElement(Ve.contentEl).fromTo("transform","translateX(0px)",`translateX(${It})`);return Ge("ios"===it).addAnimation(at)},ze=(()=>{const Ve=new Map,it=[],It=function(){var K=(0,g.A)(function*(q){const ie=yield Ke(q,!0);return!!ie&&ie.open()});return function(ie){return K.apply(this,arguments)}}(),at=function(){var K=(0,g.A)(function*(q){const ie=yield void 0!==q?Ke(q,!0):He();return void 0!==ie&&ie.close()});return function(ie){return K.apply(this,arguments)}}(),gt=function(){var K=(0,g.A)(function*(q){const ie=yield Ke(q,!0);return!!ie&&ie.toggle()});return function(ie){return K.apply(this,arguments)}}(),xt=function(){var K=(0,g.A)(function*(q,ie){const se=yield Ke(ie);return se&&(se.disabled=!q),se});return function(ie,se){return K.apply(this,arguments)}}(),ft=function(){var K=(0,g.A)(function*(q,ie){const se=yield Ke(ie);return se&&(se.swipeGesture=q),se});return function(ie,se){return K.apply(this,arguments)}}(),yt=function(){var K=(0,g.A)(function*(q){if(null!=q){const ie=yield Ke(q);return void 0!==ie&&ie.isOpen()}return void 0!==(yield He())});return function(ie){return K.apply(this,arguments)}}(),Pe=function(){var K=(0,g.A)(function*(q){const ie=yield Ke(q);return!!ie&&!ie.disabled});return function(ie){return K.apply(this,arguments)}}(),Ke=function(){var K=(0,g.A)(function*(q,ie=!1){if(yield z(),"start"===q||"end"===q){const be=it.filter(nn=>nn.side===q&&!nn.disabled);if(be.length>=1)return be.length>1&&ie&&(0,Fe.p)(`menuController queried for a menu on the "${q}" side, but ${be.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,be.map(nn=>nn.el)),be[0].el;const Xe=it.filter(nn=>nn.side===q);if(Xe.length>=1)return Xe.length>1&&ie&&(0,Fe.p)(`menuController queried for a menu on the "${q}" side, but ${Xe.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Xe.map(nn=>nn.el)),Xe[0].el}else if(null!=q)return De(be=>be.menuId===q);return De(be=>!be.disabled)||(it.length>0?it[0].el:void 0)});return function(ie){return K.apply(this,arguments)}}(),He=function(){var K=(0,g.A)(function*(){return yield z(),Be()});return function(){return K.apply(this,arguments)}}(),Je=function(){var K=(0,g.A)(function*(){return yield z(),tn()});return function(){return K.apply(this,arguments)}}(),mt=function(){var K=(0,g.A)(function*(){return yield z(),Ze()});return function(){return K.apply(this,arguments)}}(),Ce=(K,q)=>{Ve.set(K,q)},zt=function(){var K=(0,g.A)(function*(q,ie,se){if(Ze())return!1;if(ie){const be=yield He();be&&q.el!==be&&(yield be.setOpen(!1,!1))}return q._setOpen(ie,se)});return function(ie,se,be){return K.apply(this,arguments)}}(),Be=()=>De(K=>K._isOpen),tn=()=>it.map(K=>K.el),Ze=()=>it.some(K=>K.isAnimating),De=K=>{const q=it.find(K);if(void 0!==q)return q.el},z=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(K=>new Promise(q=>(0,W.c)(K,q))));return Ce("reveal",Ee),Ce("push",we),Ce("overlay",Qe),null==c.d||c.d.addEventListener("ionBackButton",K=>{const q=Be();q&&K.detail.register(de.MENU_BACK_BUTTON_PRIORITY,()=>q.close())}),{registerAnimation:Ce,get:Ke,getMenus:Je,getOpen:He,isEnabled:Pe,swipeGesture:ft,isAnimating:mt,isOpen:yt,enable:xt,toggle:gt,close:at,open:It,_getOpenSync:Be,_createAnimation:(K,q)=>{const ie=Ve.get(K);if(!ie)throw new Error("animation not registered");return ie(q)},_register:K=>{it.indexOf(K)<0&&it.push(K)},_unregister:K=>{const q=it.indexOf(K);q>-1&&it.splice(q,1)},_setOpen:zt}})()},8607:(Dn,At,x)=>{"use strict";x.r(At),x.d(At,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>Qe});var g=x(1970);const c=(ze,Ve,it,It)=>{const at=de(ze)?{capture:!!It.capture,passive:!!It.passive}:!!It.capture;let gt,xt;return ze.__zone_symbol__addEventListener?(gt="__zone_symbol__addEventListener",xt="__zone_symbol__removeEventListener"):(gt="addEventListener",xt="removeEventListener"),ze[gt](Ve,it,at),()=>{ze[xt](Ve,it,at)}},de=ze=>{if(void 0===Fe)try{const Ve=Object.defineProperty({},"passive",{get:()=>{Fe=!0}});ze.addEventListener("optsTest",()=>{},Ve)}catch{Fe=!1}return!!Fe};let Fe;const te=ze=>ze instanceof Document?ze:ze.ownerDocument,Qe=ze=>{let Ve=!1,it=!1,It=!0,at=!1;const gt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},ze),xt=gt.canStart,ft=gt.onWillStart,yt=gt.onStart,Pe=gt.onEnd,Ke=gt.notCaptured,He=gt.onMove,Je=gt.threshold,mt=gt.passive,Ce=gt.blurOnStart,nt={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Rt=((ze,Ve,it)=>{const It=it*(Math.PI/180),at="x"===ze,gt=Math.cos(It),xt=Ve*Ve;let ft=0,yt=0,Pe=!1,Ke=0;return{start(He,Je){ft=He,yt=Je,Ke=0,Pe=!0},detect(He,Je){if(!Pe)return!1;const mt=He-ft,Ce=Je-yt,nt=mt*mt+Ce*Ce;if(ntgt?1:zt<-gt?-1:0,Pe=!1,!0},isGesture:()=>0!==Ke,getDirection:()=>Ke}})(gt.direction,gt.threshold,gt.maxAngle),zt=g.G.createGesture({name:ze.gestureName,priority:ze.gesturePriority,disableScroll:ze.disableScroll}),tn=()=>{Ve&&(at=!1,He&&He(nt))},Ze=()=>!!zt.capture()&&(Ve=!0,It=!1,nt.startX=nt.currentX,nt.startY=nt.currentY,nt.startTime=nt.currentTime,ft?ft(nt).then(z):z(),!0),z=()=>{Ce&&(()=>{if(typeof document<"u"){const be=document.activeElement;null!=be&&be.blur&&be.blur()}})(),yt&&yt(nt),It=!0},K=()=>{Ve=!1,it=!1,at=!1,It=!0,zt.release()},q=be=>{const Xe=Ve,nn=It;if(K(),nn){if(we(nt,be),Xe)return void(Pe&&Pe(nt));Ke&&Ke(nt)}},ie=((ze,Ve,it,It,at)=>{let gt,xt,ft,yt,Pe,Ke,He,Je=0;const mt=De=>{Je=Date.now()+2e3,Ve(De)&&(!xt&&it&&(xt=c(ze,"touchmove",it,at)),ft||(ft=c(De.target,"touchend",nt,at)),yt||(yt=c(De.target,"touchcancel",nt,at)))},Ce=De=>{Je>Date.now()||Ve(De)&&(!Ke&&it&&(Ke=c(te(ze),"mousemove",it,at)),He||(He=c(te(ze),"mouseup",Rt,at)))},nt=De=>{zt(),It&&It(De)},Rt=De=>{Et(),It&&It(De)},zt=()=>{xt&&xt(),ft&&ft(),yt&&yt(),xt=ft=yt=void 0},Et=()=>{Ke&&Ke(),He&&He(),Ke=He=void 0},Be=()=>{zt(),Et()},tn=(De=!0)=>{De?(gt||(gt=c(ze,"touchstart",mt,at)),Pe||(Pe=c(ze,"mousedown",Ce,at))):(gt&>(),Pe&&Pe(),gt=Pe=void 0,Be())};return{enable:tn,stop:Be,destroy:()=>{tn(!1),It=it=Ve=void 0}}})(gt.el,be=>{const Xe=Ue(be);return!(it||!It||(Ee(be,nt),nt.startX=nt.currentX,nt.startY=nt.currentY,nt.startTime=nt.currentTime=Xe,nt.velocityX=nt.velocityY=nt.deltaX=nt.deltaY=0,nt.event=be,xt&&!1===xt(nt))||(zt.release(),!zt.start()))&&(it=!0,0===Je?Ze():(Rt.start(nt.startX,nt.startY),!0))},be=>{Ve?!at&&It&&(at=!0,we(nt,be),requestAnimationFrame(tn)):(we(nt,be),Rt.detect(nt.currentX,nt.currentY)&&(!Rt.isGesture()||!Ze())&&se())},q,{capture:!1,passive:mt}),se=()=>{K(),ie.stop(),Ke&&Ke(nt)};return{enable(be=!0){be||(Ve&&q(void 0),K()),ie.enable(be)},destroy(){zt.destroy(),ie.destroy()}}},we=(ze,Ve)=>{if(!Ve)return;const it=ze.currentX,It=ze.currentY,at=ze.currentTime;Ee(Ve,ze);const gt=ze.currentX,xt=ze.currentY,yt=(ze.currentTime=Ue(Ve))-at;if(yt>0&&yt<100){const Ke=(xt-It)/yt;ze.velocityX=(gt-it)/yt*.7+.3*ze.velocityX,ze.velocityY=.7*Ke+.3*ze.velocityY}ze.deltaX=gt-ze.startX,ze.deltaY=xt-ze.startY,ze.event=Ve},Ee=(ze,Ve)=>{let it=0,It=0;if(ze){const at=ze.changedTouches;if(at&&at.length>0){const gt=at[0];it=gt.clientX,It=gt.clientY}else void 0!==ze.pageX&&(it=ze.pageX,It=ze.pageY)}Ve.currentX=it,Ve.currentY=It},Ue=ze=>ze.timeStamp||Date.now()},9672:(Dn,At,x)=>{"use strict";x.d(At,{B:()=>Ie,a:()=>Lo,b:()=>Ir,c:()=>nn,d:()=>Vn,e:()=>mr,f:()=>Ze,g:()=>En,h:()=>Be,i:()=>Mn,j:()=>Qn,k:()=>te,r:()=>kn,w:()=>Ei});var g=x(467);var Fe=Object.defineProperty,Ie={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},te=H=>{const le=new URL(H,Yn.$resourcesUrl$);return le.origin!==ur.location.origin?le.href:le.pathname},Ge={},Ue=H=>"object"==(H=typeof H)||"function"===H;function ze(H){var le,Se,$e;return null!=($e=null==(Se=null==(le=H.head)?void 0:le.querySelector('meta[name="csp-nonce"]'))?void 0:Se.getAttribute("content"))?$e:void 0}((H,le)=>{for(var Se in le)Fe(H,Se,{get:le[Se],enumerable:!0})})({},{err:()=>It,map:()=>at,ok:()=>it,unwrap:()=>gt,unwrapErr:()=>xt});var it=H=>({isOk:!0,isErr:!1,value:H}),It=H=>({isOk:!1,isErr:!0,value:H});function at(H,le){if(H.isOk){const Se=le(H.value);return Se instanceof Promise?Se.then($e=>it($e)):it(Se)}if(H.isErr)return It(H.value);throw"should never get here"}var gt=H=>{if(H.isOk)return H.value;throw H.value},xt=H=>{if(H.isErr)return H.value;throw H.value},mt="s-id",Ce="sty-id",zt="slot-fb{display:contents}slot-fb[hidden]{display:none}",Et="http://www.w3.org/1999/xlink",Be=(H,le,...Se)=>{let $e=null,pt=null,ut=null,Bt=!1,Qt=!1;const Zt=[],ln=xn=>{for(let Gn=0;Gnxn[Gn]).join(" "))}}if("function"==typeof H)return H(null===le?{}:le,Zt,z);const Sn=tn(H,null);return Sn.$attrs$=le,Zt.length>0&&(Sn.$children$=Zt),Sn.$key$=pt,Sn.$name$=ut,Sn},tn=(H,le)=>({$flags$:0,$tag$:H,$text$:le,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Ze={},z={forEach:(H,le)=>H.map(K).forEach(le),map:(H,le)=>H.map(K).map(le).map(q)},K=H=>({vattrs:H.$attrs$,vchildren:H.$children$,vkey:H.$key$,vname:H.$name$,vtag:H.$tag$,vtext:H.$text$}),q=H=>{if("function"==typeof H.vtag){const Se={...H.vattrs};return H.vkey&&(Se.key=H.vkey),H.vname&&(Se.name=H.vname),Be(H.vtag,Se,...H.vchildren||[])}const le=tn(H.vtag,H.vtext);return le.$attrs$=H.vattrs,le.$children$=H.vchildren,le.$key$=H.vkey,le.$name$=H.vname,le},se=(H,le,Se,$e,pt,ut,Bt)=>{let Qt,Zt,ln,Sn;if(1===ut.nodeType){for(Qt=ut.getAttribute("c-id"),Qt&&(Zt=Qt.split("."),(Zt[0]===Bt||"0"===Zt[0])&&(ln={$flags$:0,$hostId$:Zt[0],$nodeId$:Zt[1],$depth$:Zt[2],$index$:Zt[3],$tag$:ut.tagName.toLowerCase(),$elm$:ut,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},le.push(ln),ut.removeAttribute("c-id"),H.$children$||(H.$children$=[]),H.$children$[ln.$index$]=ln,H=ln,$e&&"0"===ln.$depth$&&($e[ln.$index$]=ln.$elm$))),Sn=ut.childNodes.length-1;Sn>=0;Sn--)se(H,le,Se,$e,pt,ut.childNodes[Sn],Bt);if(ut.shadowRoot)for(Sn=ut.shadowRoot.childNodes.length-1;Sn>=0;Sn--)se(H,le,Se,$e,pt,ut.shadowRoot.childNodes[Sn],Bt)}else if(8===ut.nodeType)Zt=ut.nodeValue.split("."),(Zt[1]===Bt||"0"===Zt[1])&&(Qt=Zt[0],ln={$flags$:0,$hostId$:Zt[1],$nodeId$:Zt[2],$depth$:Zt[3],$index$:Zt[4],$elm$:ut,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Qt?(ln.$elm$=ut.nextSibling,ln.$elm$&&3===ln.$elm$.nodeType&&(ln.$text$=ln.$elm$.textContent,le.push(ln),ut.remove(),H.$children$||(H.$children$=[]),H.$children$[ln.$index$]=ln,$e&&"0"===ln.$depth$&&($e[ln.$index$]=ln.$elm$))):ln.$hostId$===Bt&&("s"===Qt?(ln.$tag$="slot",ut["s-sn"]=Zt[5]?ln.$name$=Zt[5]:"",ut["s-sr"]=!0,$e&&(ln.$elm$=Kr.createElement(ln.$tag$),ln.$name$&&ln.$elm$.setAttribute("name",ln.$name$),ut.parentNode.insertBefore(ln.$elm$,ut),ut.remove(),"0"===ln.$depth$&&($e[ln.$index$]=ln.$elm$)),Se.push(ln),H.$children$||(H.$children$=[]),H.$children$[ln.$index$]=ln):"r"===Qt&&($e?ut.remove():(pt["s-cr"]=ut,ut["s-cn"]=!0))));else if(H&&"style"===H.$tag$){const xn=tn(null,ut.textContent);xn.$elm$=ut,xn.$index$="0",H.$children$=[xn]}},be=(H,le)=>{if(1===H.nodeType){let Se=0;for(;Seli.push(H),En=H=>ei(H).$modeName$,Mn=H=>ei(H).$hostElement$,Vn=(H,le,Se)=>{const $e=Mn(H);return{emit:pt=>qn($e,le,{bubbles:!!(4&Se),composed:!!(2&Se),cancelable:!!(1&Se),detail:pt})}},qn=(H,le,Se)=>{const $e=Yn.ce(le,Se);return H.dispatchEvent($e),$e},Zn=new WeakMap,Xn=(H,le,Se)=>{let $e=Wo.get(H);bo&&Se?($e=$e||new CSSStyleSheet,"string"==typeof $e?$e=le:$e.replaceSync(le)):$e=le,Wo.set(H,$e)},wn=(H,le,Se)=>{var $e;const pt=rr(le,Se),ut=Wo.get(pt);if(H=11===H.nodeType?H:Kr,ut)if("string"==typeof ut){let Qt,Bt=Zn.get(H=H.head||H);if(Bt||Zn.set(H,Bt=new Set),!Bt.has(pt)){if(H.host&&(Qt=H.querySelector(`[${Ce}="${pt}"]`)))Qt.innerHTML=ut;else{Qt=Kr.createElement("style"),Qt.innerHTML=ut;const Zt=null!=($e=Yn.$nonce$)?$e:ze(Kr);null!=Zt&&Qt.setAttribute("nonce",Zt),H.insertBefore(Qt,H.querySelector("link"))}4&le.$flags$&&(Qt.innerHTML+=zt),Bt&&Bt.add(pt)}}else H.adoptedStyleSheets.includes(ut)||(H.adoptedStyleSheets=[...H.adoptedStyleSheets,ut]);return pt},rr=(H,le)=>"sc-"+(le&&32&H.$flags$?H.$tagName$+"-"+le:H.$tagName$),je=H=>H.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),bt=(H,le,Se,$e,pt,ut)=>{if(Se!==$e){let Bt=_o(H,le),Qt=le.toLowerCase();if("class"===le){const Zt=H.classList,ln=Jt(Se),Sn=Jt($e);Zt.remove(...ln.filter(xn=>xn&&!Sn.includes(xn))),Zt.add(...Sn.filter(xn=>xn&&!ln.includes(xn)))}else if("style"===le){for(const Zt in Se)(!$e||null==$e[Zt])&&(Zt.includes("-")?H.style.removeProperty(Zt):H.style[Zt]="");for(const Zt in $e)(!Se||$e[Zt]!==Se[Zt])&&(Zt.includes("-")?H.style.setProperty(Zt,$e[Zt]):H.style[Zt]=$e[Zt])}else if("key"!==le)if("ref"===le)$e&&$e(H);else if(Bt||"o"!==le[0]||"n"!==le[1]){const Zt=Ue($e);if((Bt||Zt&&null!==$e)&&!pt)try{if(H.tagName.includes("-"))H[le]=$e;else{const Sn=null==$e?"":$e;"list"===le?Bt=!1:(null==Se||H[le]!=Sn)&&(H[le]=Sn)}}catch{}let ln=!1;Qt!==(Qt=Qt.replace(/^xlink\:?/,""))&&(le=Qt,ln=!0),null==$e||!1===$e?(!1!==$e||""===H.getAttribute(le))&&(ln?H.removeAttributeNS(Et,le):H.removeAttribute(le)):(!Bt||4&ut||pt)&&!Zt&&($e=!0===$e?"":$e,ln?H.setAttributeNS(Et,le,$e):H.setAttribute(le,$e))}else if(le="-"===le[2]?le.slice(3):_o(ur,Qt)?Qt.slice(2):Qt[2]+le.slice(3),Se||$e){const Zt=le.endsWith(on);le=le.replace(Ar,""),Se&&Yn.rel(H,le,Se,Zt),$e&&Yn.ael(H,le,$e,Zt)}}},Ft=/\s/,Jt=H=>H?H.split(Ft):[],on="Capture",Ar=new RegExp(on+"$"),Cn=(H,le,Se)=>{const $e=11===le.$elm$.nodeType&&le.$elm$.host?le.$elm$.host:le.$elm$,pt=H&&H.$attrs$||Ge,ut=le.$attrs$||Ge;for(const Bt of An(Object.keys(pt)))Bt in ut||bt($e,Bt,pt[Bt],void 0,Se,le.$flags$);for(const Bt of An(Object.keys(ut)))bt($e,Bt,pt[Bt],ut[Bt],Se,le.$flags$)};function An(H){return H.includes("ref")?[...H.filter(le=>"ref"!==le),"ref"]:H}var sn,Kt,fr,Rr=!1,Lr=!1,kr=!1,Cr=!1,jn=(H,le,Se,$e)=>{var pt;const ut=le.$children$[Se];let Qt,Zt,ln,Bt=0;if(Rr||(kr=!0,"slot"===ut.$tag$&&(sn&&$e.classList.add(sn+"-s"),ut.$flags$|=ut.$children$?2:1)),null!==ut.$text$)Qt=ut.$elm$=Kr.createTextNode(ut.$text$);else if(1&ut.$flags$)Qt=ut.$elm$=Kr.createTextNode("");else{if(Cr||(Cr="svg"===ut.$tag$),Qt=ut.$elm$=Kr.createElementNS(Cr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&ut.$flags$?"slot-fb":ut.$tag$),Cr&&"foreignObject"===ut.$tag$&&(Cr=!1),Cn(null,ut,Cr),(H=>null!=H)(sn)&&Qt["s-si"]!==sn&&Qt.classList.add(Qt["s-si"]=sn),ut.$children$)for(Bt=0;Bt{Yn.$flags$|=1;const le=H.closest(fr.toLowerCase());if(null!=le){const Se=Array.from(le.childNodes).find(pt=>pt["s-cr"]),$e=Array.from(H.childNodes);for(const pt of Se?$e.reverse():$e)null!=pt["s-sh"]&&(ge(le,pt,null!=Se?Se:null),pt["s-sh"]=void 0,kr=!0)}Yn.$flags$&=-2},er=(H,le)=>{Yn.$flags$|=1;const Se=Array.from(H.childNodes);if(H["s-sr"]){let $e=H;for(;$e=$e.nextSibling;)$e&&$e["s-sn"]===H["s-sn"]&&$e["s-sh"]===fr&&Se.push($e)}for(let $e=Se.length-1;$e>=0;$e--){const pt=Se[$e];pt["s-hn"]!==fr&&pt["s-ol"]&&(ge(Zr(pt),pt,Ii(pt)),pt["s-ol"].remove(),pt["s-ol"]=void 0,pt["s-sh"]=void 0,kr=!0),le&&er(pt,le)}Yn.$flags$&=-2},Pn=(H,le,Se,$e,pt,ut)=>{let Qt,Bt=H["s-cr"]&&H["s-cr"].parentNode||H;for(Bt.shadowRoot&&Bt.tagName===fr&&(Bt=Bt.shadowRoot);pt<=ut;++pt)$e[pt]&&(Qt=jn(null,Se,pt,H),Qt&&($e[pt].$elm$=Qt,ge(Bt,Qt,Ii(le))))},Mr=(H,le,Se)=>{for(let $e=le;$e<=Se;++$e){const pt=H[$e];if(pt){const ut=pt.$elm$;ce(pt),ut&&(Lr=!0,ut["s-ol"]?ut["s-ol"].remove():er(ut,!0),ut.remove())}}},_r=(H,le,Se=!1)=>H.$tag$===le.$tag$&&("slot"===H.$tag$?H.$name$===le.$name$:!!Se||H.$key$===le.$key$),Ii=H=>H&&H["s-ol"]||H,Zr=H=>(H["s-ol"]?H["s-ol"]:H).parentNode,zr=(H,le,Se=!1)=>{const $e=le.$elm$=H.$elm$,pt=H.$children$,ut=le.$children$,Bt=le.$tag$,Qt=le.$text$;let Zt;null===Qt?(Cr="svg"===Bt||"foreignObject"!==Bt&&Cr,"slot"!==Bt||Rr?Cn(H,le,Cr):H.$name$!==le.$name$&&(le.$elm$["s-sn"]=le.$name$||"",ii(le.$elm$.parentElement)),null!==pt&&null!==ut?((H,le,Se,$e,pt=!1)=>{let Tr,dr,ut=0,Bt=0,Qt=0,Zt=0,ln=le.length-1,Sn=le[0],xn=le[ln],Gn=$e.length-1,Rn=$e[0],Ur=$e[Gn];for(;ut<=ln&&Bt<=Gn;)if(null==Sn)Sn=le[++ut];else if(null==xn)xn=le[--ln];else if(null==Rn)Rn=$e[++Bt];else if(null==Ur)Ur=$e[--Gn];else if(_r(Sn,Rn,pt))zr(Sn,Rn,pt),Sn=le[++ut],Rn=$e[++Bt];else if(_r(xn,Ur,pt))zr(xn,Ur,pt),xn=le[--ln],Ur=$e[--Gn];else if(_r(Sn,Ur,pt))("slot"===Sn.$tag$||"slot"===Ur.$tag$)&&er(Sn.$elm$.parentNode,!1),zr(Sn,Ur,pt),ge(H,Sn.$elm$,xn.$elm$.nextSibling),Sn=le[++ut],Ur=$e[--Gn];else if(_r(xn,Rn,pt))("slot"===Sn.$tag$||"slot"===Ur.$tag$)&&er(xn.$elm$.parentNode,!1),zr(xn,Rn,pt),ge(H,xn.$elm$,Sn.$elm$),xn=le[--ln],Rn=$e[++Bt];else{for(Qt=-1,Zt=ut;Zt<=ln;++Zt)if(le[Zt]&&null!==le[Zt].$key$&&le[Zt].$key$===Rn.$key$){Qt=Zt;break}Qt>=0?(dr=le[Qt],dr.$tag$!==Rn.$tag$?Tr=jn(le&&le[Bt],Se,Qt,H):(zr(dr,Rn,pt),le[Qt]=void 0,Tr=dr.$elm$),Rn=$e[++Bt]):(Tr=jn(le&&le[Bt],Se,Bt,H),Rn=$e[++Bt]),Tr&&ge(Zr(Sn.$elm$),Tr,Ii(Sn.$elm$))}ut>ln?Pn(H,null==$e[Gn+1]?null:$e[Gn+1].$elm$,Se,$e,Bt,Gn):Bt>Gn&&Mr(le,ut,ln)})($e,pt,le,ut,Se):null!==ut?(null!==H.$text$&&($e.textContent=""),Pn($e,null,le,ut,0,ut.length-1)):null!==pt&&Mr(pt,0,pt.length-1),Cr&&"svg"===Bt&&(Cr=!1)):(Zt=$e["s-cr"])?Zt.parentNode.textContent=Qt:H.$text$!==Qt&&($e.data=Qt)},ue=H=>{const le=H.childNodes;for(const Se of le)if(1===Se.nodeType){if(Se["s-sr"]){const $e=Se["s-sn"];Se.hidden=!1;for(const pt of le)if(pt!==Se)if(pt["s-hn"]!==Se["s-hn"]||""!==$e){if(1===pt.nodeType&&($e===pt.getAttribute("slot")||$e===pt["s-sn"])||3===pt.nodeType&&$e===pt["s-sn"]){Se.hidden=!0;break}}else if(1===pt.nodeType||3===pt.nodeType&&""!==pt.textContent.trim()){Se.hidden=!0;break}}ue(Se)}},We=[],vt=H=>{let le,Se,$e;for(const pt of H.childNodes){if(pt["s-sr"]&&(le=pt["s-cr"])&&le.parentNode){Se=le.parentNode.childNodes;const ut=pt["s-sn"];for($e=Se.length-1;$e>=0;$e--)if(le=Se[$e],!(le["s-cn"]||le["s-nr"]||le["s-hn"]===pt["s-hn"]||le["s-sh"]&&le["s-sh"]===pt["s-hn"]))if(ot(le,ut)){let Bt=We.find(Qt=>Qt.$nodeToRelocate$===le);Lr=!0,le["s-sn"]=le["s-sn"]||ut,Bt?(Bt.$nodeToRelocate$["s-sh"]=pt["s-hn"],Bt.$slotRefNode$=pt):(le["s-sh"]=pt["s-hn"],We.push({$slotRefNode$:pt,$nodeToRelocate$:le})),le["s-sr"]&&We.map(Qt=>{ot(Qt.$nodeToRelocate$,le["s-sn"])&&(Bt=We.find(Zt=>Zt.$nodeToRelocate$===le),Bt&&!Qt.$slotRefNode$&&(Qt.$slotRefNode$=Bt.$slotRefNode$))})}else We.some(Bt=>Bt.$nodeToRelocate$===le)||We.push({$nodeToRelocate$:le})}1===pt.nodeType&&vt(pt)}},ot=(H,le)=>1===H.nodeType?null===H.getAttribute("slot")&&""===le||H.getAttribute("slot")===le:H["s-sn"]===le||""===le,ce=H=>{H.$attrs$&&H.$attrs$.ref&&H.$attrs$.ref(null),H.$children$&&H.$children$.map(ce)},ge=(H,le,Se)=>{const $e=null==H?void 0:H.insertBefore(le,Se);return St(le,H),$e},Ne=H=>H?H["s-rsc"]||H["s-si"]||H["s-sc"]||Ne(H.parentElement):void 0,St=(H,le)=>{var Se,$e,pt;if(H&&le){const ut=H["s-rsc"],Bt=Ne(le);ut&&null!=(Se=H.classList)&&Se.contains(ut)&&H.classList.remove(ut),Bt&&(H["s-rsc"]=Bt,(null==($e=H.classList)||!$e.contains(Bt))&&(null==(pt=H.classList)||pt.add(Bt)))}},et=(H,le)=>{le&&!H.$onRenderResolve$&&le["s-p"]&&le["s-p"].push(new Promise(Se=>H.$onRenderResolve$=Se))},Ye=(H,le)=>{if(H.$flags$|=16,!(4&H.$flags$))return et(H,H.$ancestorComponent$),Ei(()=>Lt(H,le));H.$flags$|=512},Lt=(H,le)=>{const $e=H.$lazyInstance$;let pt;return le&&(H.$flags$|=256,H.$queuedListeners$&&(H.$queuedListeners$.map(([ut,Bt])=>yr($e,ut,Bt)),H.$queuedListeners$=void 0),pt=yr($e,"componentWillLoad")),pt=Xt(pt,()=>yr($e,"componentWillRender")),Xt(pt,()=>Hn(H,$e,le))},Xt=(H,le)=>cn(H)?H.then(le):le(),cn=H=>H instanceof Promise||H&&H.then&&"function"==typeof H.then,Hn=function(){var H=(0,g.A)(function*(le,Se,$e){var pt;const ut=le.$hostElement$,Qt=ut["s-rc"];$e&&(H=>{const le=H.$cmpMeta$,Se=H.$hostElement$,$e=le.$flags$,ut=wn(Se.shadowRoot?Se.shadowRoot:Se.getRootNode(),le,H.$modeName$);10&$e&&(Se["s-sc"]=ut,Se.classList.add(ut+"-h"),2&$e&&Se.classList.add(ut+"-s"))})(le);dn(le,Se,ut,$e),Qt&&(Qt.map(ln=>ln()),ut["s-rc"]=void 0);{const ln=null!=(pt=ut["s-p"])?pt:[],Sn=()=>_n(le);0===ln.length?Sn():(Promise.all(ln).then(Sn),le.$flags$|=4,ln.length=0)}});return function(Se,$e,pt){return H.apply(this,arguments)}}(),dn=(H,le,Se,$e)=>{try{le=le.render&&le.render(),H.$flags$&=-17,H.$flags$|=2,((H,le,Se=!1)=>{var $e,pt,ut,Bt,Qt;const Zt=H.$hostElement$,ln=H.$cmpMeta$,Sn=H.$vnode$||tn(null,null),xn=(H=>H&&H.$tag$===Ze)(le)?le:Be(null,null,le);if(fr=Zt.tagName,ln.$attrsToReflect$&&(xn.$attrs$=xn.$attrs$||{},ln.$attrsToReflect$.map(([Gn,Rn])=>xn.$attrs$[Rn]=Zt[Gn])),Se&&xn.$attrs$)for(const Gn of Object.keys(xn.$attrs$))Zt.hasAttribute(Gn)&&!["key","ref","style","class"].includes(Gn)&&(xn.$attrs$[Gn]=Zt[Gn]);if(xn.$tag$=null,xn.$flags$|=4,H.$vnode$=xn,xn.$elm$=Sn.$elm$=Zt.shadowRoot||Zt,sn=Zt["s-sc"],Rr=!!(1&ln.$flags$),Kt=Zt["s-cr"],Lr=!1,zr(Sn,xn,Se),Yn.$flags$|=1,kr){vt(xn.$elm$);for(const Gn of We){const Rn=Gn.$nodeToRelocate$;if(!Rn["s-ol"]){const Ur=Kr.createTextNode("");Ur["s-nr"]=Rn,ge(Rn.parentNode,Rn["s-ol"]=Ur,Rn)}}for(const Gn of We){const Rn=Gn.$nodeToRelocate$,Ur=Gn.$slotRefNode$;if(Ur){const Tr=Ur.parentNode;let dr=Ur.nextSibling;if(dr&&1===dr.nodeType){let yi=null==($e=Rn["s-ol"])?void 0:$e.previousSibling;for(;yi;){let bi=null!=(pt=yi["s-nr"])?pt:null;if(bi&&bi["s-sn"]===Rn["s-sn"]&&Tr===bi.parentNode){for(bi=bi.nextSibling;bi===Rn||null!=bi&&bi["s-sr"];)bi=null==bi?void 0:bi.nextSibling;if(!bi||!bi["s-nr"]){dr=bi;break}}yi=yi.previousSibling}}(!dr&&Tr!==Rn.parentNode||Rn.nextSibling!==dr)&&Rn!==dr&&(ge(Tr,Rn,dr),1===Rn.nodeType&&(Rn.hidden=null!=(ut=Rn["s-ih"])&&ut)),Rn&&"function"==typeof Ur["s-rf"]&&Ur["s-rf"](Rn)}else 1===Rn.nodeType&&(Se&&(Rn["s-ih"]=null!=(Bt=Rn.hidden)&&Bt),Rn.hidden=!0)}}if(Lr&&ue(xn.$elm$),Yn.$flags$&=-2,We.length=0,2&ln.$flags$)for(const Gn of xn.$elm$.childNodes)Gn["s-hn"]!==fr&&!Gn["s-sh"]&&(Se&&null==Gn["s-ih"]&&(Gn["s-ih"]=null!=(Qt=Gn.hidden)&&Qt),Gn.hidden=!0);Kt=void 0})(H,le,$e)}catch(pt){ai(pt,H.$hostElement$)}return null},_n=H=>{const Se=H.$hostElement$,pt=H.$lazyInstance$,ut=H.$ancestorComponent$;yr(pt,"componentDidRender"),64&H.$flags$?yr(pt,"componentDidUpdate"):(H.$flags$|=64,Vr(Se),yr(pt,"componentDidLoad"),H.$onReadyResolve$(Se),ut||Pr()),H.$onInstanceResolve$(Se),H.$onRenderResolve$&&(H.$onRenderResolve$(),H.$onRenderResolve$=void 0),512&H.$flags$&&st(()=>Ye(H,!1)),H.$flags$&=-517},Qn=H=>{{const le=ei(H),Se=le.$hostElement$.isConnected;return Se&&2==(18&le.$flags$)&&Ye(le,!1),Se}},Pr=H=>{Vr(Kr.documentElement),st(()=>qn(ur,"appload",{detail:{namespace:"ionic"}}))},yr=(H,le,Se)=>{if(H&&H[le])try{return H[le](Se)}catch($e){ai($e)}},Vr=H=>H.classList.add("hydrated"),Fi=(H,le,Se)=>{var $e;const pt=H.prototype;if(le.$members$){H.watchers&&(le.$watchers$=H.watchers);const ut=Object.entries(le.$members$);if(ut.map(([Bt,[Qt]])=>{31&Qt||2&Se&&32&Qt?Object.defineProperty(pt,Bt,{get(){return((H,le)=>ei(this).$instanceValues$.get(le))(0,Bt)},set(Zt){((H,le,Se,$e)=>{const pt=ei(H);if(!pt)throw new Error(`Couldn't find host element for "${$e.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const ut=pt.$hostElement$,Bt=pt.$instanceValues$.get(le),Qt=pt.$flags$,Zt=pt.$lazyInstance$;Se=((H,le)=>null==H||Ue(H)?H:4&le?"false"!==H&&(""===H||!!H):2&le?parseFloat(H):1&le?String(H):H)(Se,$e.$members$[le][0]);const ln=Number.isNaN(Bt)&&Number.isNaN(Se);if((!(8&Qt)||void 0===Bt)&&Se!==Bt&&!ln&&(pt.$instanceValues$.set(le,Se),Zt)){if($e.$watchers$&&128&Qt){const xn=$e.$watchers$[le];xn&&xn.map(Gn=>{try{Zt[Gn](Se,Bt,le)}catch(Rn){ai(Rn,ut)}})}2==(18&Qt)&&Ye(pt,!1)}})(this,Bt,Zt,le)},configurable:!0,enumerable:!0}):1&Se&&64&Qt&&Object.defineProperty(pt,Bt,{value(...Zt){var ln;const Sn=ei(this);return null==(ln=null==Sn?void 0:Sn.$onInstancePromise$)?void 0:ln.then(()=>{var xn;return null==(xn=Sn.$lazyInstance$)?void 0:xn[Bt](...Zt)})}})}),1&Se){const Bt=new Map;pt.attributeChangedCallback=function(Qt,Zt,ln){Yn.jmp(()=>{var Sn;const xn=Bt.get(Qt);if(this.hasOwnProperty(xn))ln=this[xn],delete this[xn];else{if(pt.hasOwnProperty(xn)&&"number"==typeof this[xn]&&this[xn]==ln)return;if(null==xn){const Gn=ei(this),Rn=null==Gn?void 0:Gn.$flags$;if(Rn&&!(8&Rn)&&128&Rn&&ln!==Zt){const Ur=Gn.$lazyInstance$,Tr=null==(Sn=le.$watchers$)?void 0:Sn[Qt];null==Tr||Tr.forEach(dr=>{null!=Ur[dr]&&Ur[dr].call(Ur,ln,Zt,Qt)})}return}}this[xn]=(null!==ln||"boolean"!=typeof this[xn])&&ln})},H.observedAttributes=Array.from(new Set([...Object.keys(null!=($e=le.$watchers$)?$e:{}),...ut.filter(([Qt,Zt])=>15&Zt[0]).map(([Qt,Zt])=>{var ln;const Sn=Zt[1]||Qt;return Bt.set(Sn,Qt),512&Zt[0]&&(null==(ln=le.$attrsToReflect$)||ln.push([Qt,Sn])),Sn})]))}}return H},Mi=function(){var H=(0,g.A)(function*(le,Se,$e,pt){let ut;if(!(32&Se.$flags$)){if(Se.$flags$|=32,$e.$lazyBundleId$){if(ut=Co($e),ut.then){const Sn=()=>{};ut=yield ut,Sn()}ut.isProxied||($e.$watchers$=ut.watchers,Fi(ut,$e,2),ut.isProxied=!0);const ln=()=>{};Se.$flags$|=8;try{new ut(Se)}catch(Sn){ai(Sn)}Se.$flags$&=-9,Se.$flags$|=128,ln(),mi(Se.$lazyInstance$)}else ut=le.constructor,customElements.whenDefined($e.$tagName$).then(()=>Se.$flags$|=128);if(ut.style){let ln=ut.style;"string"!=typeof ln&&(ln=ln[Se.$modeName$=(H=>li.map(le=>le(H)).find(le=>!!le))(le)]);const Sn=rr($e,Se.$modeName$);if(!Wo.has(Sn)){const xn=()=>{};Xn(Sn,ln,!!(1&$e.$flags$)),xn()}}}const Bt=Se.$ancestorComponent$,Qt=()=>Ye(Se,!0);Bt&&Bt["s-rc"]?Bt["s-rc"].push(Qt):Qt()});return function(Se,$e,pt,ut){return H.apply(this,arguments)}}(),mi=H=>{yr(H,"connectedCallback")},_t=H=>{const le=H["s-cr"]=Kr.createComment("");le["s-cn"]=!0,ge(H,le,H.firstChild)},jt=H=>{yr(H,"disconnectedCallback")},Tn=function(){var H=(0,g.A)(function*(le){if(!(1&Yn.$flags$)){const Se=ei(le);Se.$rmListeners$&&(Se.$rmListeners$.map($e=>$e()),Se.$rmListeners$=void 0),null!=Se&&Se.$lazyInstance$?jt(Se.$lazyInstance$):null!=Se&&Se.$onReadyPromise$&&Se.$onReadyPromise$.then(()=>jt(Se.$lazyInstance$))}});return function(Se){return H.apply(this,arguments)}}(),R=H=>{const le=H.cloneNode;H.cloneNode=function(Se){const $e=this,pt=$e.shadowRoot&&To,ut=le.call($e,!!pt&&Se);if(!pt&&Se){let Qt,Zt,Bt=0;const ln=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Bt<$e.childNodes.length;Bt++)Qt=$e.childNodes[Bt]["s-nr"],Zt=ln.every(Sn=>!$e.childNodes[Bt][Sn]),Qt&&(ut.__appendChild?ut.__appendChild(Qt.cloneNode(!0)):ut.appendChild(Qt.cloneNode(!0))),Zt&&ut.appendChild($e.childNodes[Bt].cloneNode(!0))}return ut}},U=H=>{H.__appendChild=H.appendChild,H.appendChild=function(le){const Se=le["s-sn"]=Hr(le),$e=gr(this.childNodes,Se,this.tagName);if($e){const pt=$r($e,Se),ut=pt[pt.length-1],Bt=ge(ut.parentNode,le,ut.nextSibling);return ue(this),Bt}return this.__appendChild(le)}},ee=H=>{H.__removeChild=H.removeChild,H.removeChild=function(le){if(le&&typeof le["s-sn"]<"u"){const Se=gr(this.childNodes,le["s-sn"],this.tagName);if(Se){const pt=$r(Se,le["s-sn"]).find(ut=>ut===le);if(pt)return pt.remove(),void ue(this)}}return this.__removeChild(le)}},$=H=>{const le=H.prepend;H.prepend=function(...Se){Se.forEach($e=>{"string"==typeof $e&&($e=this.ownerDocument.createTextNode($e));const pt=$e["s-sn"]=Hr($e),ut=gr(this.childNodes,pt,this.tagName);if(ut){const Bt=document.createTextNode("");Bt["s-nr"]=$e,ut["s-cr"].parentNode.__appendChild(Bt),$e["s-ol"]=Bt;const Zt=$r(ut,pt)[0];return ge(Zt.parentNode,$e,Zt.nextSibling)}return 1===$e.nodeType&&$e.getAttribute("slot")&&($e.hidden=!0),le.call(this,$e)})}},ae=H=>{H.append=function(...le){le.forEach(Se=>{"string"==typeof Se&&(Se=this.ownerDocument.createTextNode(Se)),this.appendChild(Se)})}},ke=H=>{const le=H.insertAdjacentHTML;H.insertAdjacentHTML=function(Se,$e){if("afterbegin"!==Se&&"beforeend"!==Se)return le.call(this,Se,$e);const pt=this.ownerDocument.createElement("_");let ut;if(pt.innerHTML=$e,"afterbegin"===Se)for(;ut=pt.firstChild;)this.prepend(ut);else if("beforeend"===Se)for(;ut=pt.firstChild;)this.append(ut)}},ct=H=>{H.insertAdjacentText=function(le,Se){this.insertAdjacentHTML(le,Se)}},Gt=H=>{const le=H.insertAdjacentElement;H.insertAdjacentElement=function(Se,$e){return"afterbegin"!==Se&&"beforeend"!==Se?le.call(this,Se,$e):"afterbegin"===Se?(this.prepend($e),$e):("beforeend"===Se&&this.append($e),$e)}},qt=H=>{const le=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(H,"__textContent",le),Object.defineProperty(H,"textContent",{get(){return" "+$n(this.childNodes).map(pt=>{var ut,Bt;const Qt=[];let Zt=pt.nextSibling;for(;Zt&&Zt["s-sn"]===pt["s-sn"];)(3===Zt.nodeType||1===Zt.nodeType)&&Qt.push(null!=(Bt=null==(ut=Zt.textContent)?void 0:ut.trim())?Bt:""),Zt=Zt.nextSibling;return Qt.filter(ln=>""!==ln).join(" ")}).filter(pt=>""!==pt).join(" ")+" "},set(Se){$n(this.childNodes).forEach(pt=>{let ut=pt.nextSibling;for(;ut&&ut["s-sn"]===pt["s-sn"];){const Bt=ut;ut=ut.nextSibling,Bt.remove()}if(""===pt["s-sn"]){const Bt=this.ownerDocument.createTextNode(Se);Bt["s-sn"]="",ge(pt.parentElement,Bt,pt.nextSibling)}else pt.remove()})}})},Wn=(H,le)=>{class Se extends Array{item(pt){return this[pt]}}if(8&le.$flags$){const $e=H.__lookupGetter__("childNodes");Object.defineProperty(H,"children",{get(){return this.childNodes.map(pt=>1===pt.nodeType)}}),Object.defineProperty(H,"childElementCount",{get:()=>H.children.length}),Object.defineProperty(H,"childNodes",{get(){const pt=$e.call(this);if(!(1&Yn.$flags$)&&2&ei(this).$flags$){const ut=new Se;for(let Bt=0;Bt{const le=[];for(const Se of Array.from(H))Se["s-sr"]&&le.push(Se),le.push(...$n(Se.childNodes));return le},Hr=H=>H["s-sn"]||1===H.nodeType&&H.getAttribute("slot")||"",gr=(H,le,Se)=>{let pt,$e=0;for(;$e{const Se=[H];for(;(H=H.nextSibling)&&H["s-sn"]===le;)Se.push(H);return Se},Ir=(H,le={})=>{var Se;const pt=[],ut=le.exclude||[],Bt=ur.customElements,Qt=Kr.head,Zt=Qt.querySelector("meta[charset]"),ln=Kr.createElement("style"),Sn=[],xn=Kr.querySelectorAll(`[${Ce}]`);let Gn,Rn=!0,Ur=0;for(Object.assign(Yn,le),Yn.$resourcesUrl$=new URL(le.resourcesUrl||"./",Kr.baseURI).href,Yn.$flags$|=2;Ur{dr[1].map(yi=>{var bi;const Ai={$flags$:yi[0],$tagName$:yi[1],$members$:yi[2],$listeners$:yi[3]};4&Ai.$flags$&&(Tr=!0),Ai.$members$=yi[2],Ai.$listeners$=yi[3],Ai.$attrsToReflect$=[],Ai.$watchers$=null!=(bi=yi[4])?bi:{};const no=Ai.$tagName$,Ko=class extends HTMLElement{constructor(Dr){super(Dr),Ln(Dr=this,Ai),1&Ai.$flags$&&Dr.attachShadow({mode:"open",delegatesFocus:!!(16&Ai.$flags$)})}connectedCallback(){Gn&&(clearTimeout(Gn),Gn=null),Rn?Sn.push(this):Yn.jmp(()=>(H=>{if(!(1&Yn.$flags$)){const le=ei(H),Se=le.$cmpMeta$,$e=()=>{};if(1&le.$flags$)un(H,le,Se.$listeners$),null!=le&&le.$lazyInstance$?mi(le.$lazyInstance$):null!=le&&le.$onReadyPromise$&&le.$onReadyPromise$.then(()=>mi(le.$lazyInstance$));else{let pt;if(le.$flags$|=1,pt=H.getAttribute(mt),pt){if(1&Se.$flags$){const ut=wn(H.shadowRoot,Se,H.getAttribute("s-mode"));H.classList.remove(ut+"-h",ut+"-s")}((H,le,Se,$e)=>{const ut=H.shadowRoot,Bt=[],Zt=ut?[]:null,ln=$e.$vnode$=tn(le,null);Yn.$orgLocNodes$||be(Kr.body,Yn.$orgLocNodes$=new Map),H[mt]=Se,H.removeAttribute(mt),se(ln,Bt,[],Zt,H,H,Se),Bt.map(Sn=>{const xn=Sn.$hostId$+"."+Sn.$nodeId$,Gn=Yn.$orgLocNodes$.get(xn),Rn=Sn.$elm$;Gn&&To&&""===Gn["s-en"]&&Gn.parentNode.insertBefore(Rn,Gn.nextSibling),ut||(Rn["s-hn"]=le,Gn&&(Rn["s-ol"]=Gn,Rn["s-ol"]["s-nr"]=Rn)),Yn.$orgLocNodes$.delete(xn)}),ut&&Zt.map(Sn=>{Sn&&ut.appendChild(Sn)})})(H,Se.$tagName$,pt,le)}pt||12&Se.$flags$&&_t(H);{let ut=H;for(;ut=ut.parentNode||ut.host;)if(1===ut.nodeType&&ut.hasAttribute("s-id")&&ut["s-p"]||ut["s-p"]){et(le,le.$ancestorComponent$=ut);break}}Se.$members$&&Object.entries(Se.$members$).map(([ut,[Bt]])=>{if(31&Bt&&H.hasOwnProperty(ut)){const Qt=H[ut];delete H[ut],H[ut]=Qt}}),Mi(H,le,Se)}$e()}})(this))}disconnectedCallback(){Yn.jmp(()=>Tn(this))}componentOnReady(){return ei(this).$onReadyPromise$}};2&Ai.$flags$&&((H,le)=>{R(H),U(H),ae(H),$(H),Gt(H),ke(H),ct(H),qt(H),Wn(H,le),ee(H)})(Ko.prototype,Ai),Ai.$lazyBundleId$=dr[0],!ut.includes(no)&&!Bt.get(no)&&(pt.push(no),Bt.define(no,Fi(Ko,Ai,1)))})}),pt.length>0&&(Tr&&(ln.textContent+=zt),ln.textContent+=pt+"{visibility:hidden}.hydrated{visibility:inherit}",ln.innerHTML.length)){ln.setAttribute("data-styles","");const dr=null!=(Se=Yn.$nonce$)?Se:ze(Kr);null!=dr&&ln.setAttribute("nonce",dr),Qt.insertBefore(ln,Zt?Zt.nextSibling:Qt.firstChild)}Rn=!1,Sn.length?Sn.map(dr=>dr.connectedCallback()):Yn.jmp(()=>Gn=setTimeout(Pr,30))},un=(H,le,Se,$e)=>{Se&&Se.map(([pt,ut,Bt])=>{const Qt=Wr(H,pt),Zt=sr(le,Bt),ln=Fr(pt);Yn.ael(Qt,ut,Zt,ln),(le.$rmListeners$=le.$rmListeners$||[]).push(()=>Yn.rel(Qt,ut,Zt,ln))})},sr=(H,le)=>Se=>{try{256&H.$flags$?H.$lazyInstance$[le](Se):(H.$queuedListeners$=H.$queuedListeners$||[]).push([le,Se])}catch($e){ai($e)}},Wr=(H,le)=>4&le?Kr:8&le?ur:16&le?Kr.body:H,Fr=H=>Do?{passive:!!(1&H),capture:!!(2&H)}:!!(2&H),pr=new WeakMap,ei=H=>pr.get(H),kn=(H,le)=>pr.set(le.$lazyInstance$=H,le),Ln=(H,le)=>{const Se={$flags$:0,$hostElement$:H,$cmpMeta$:le,$instanceValues$:new Map};return Se.$onInstancePromise$=new Promise($e=>Se.$onInstanceResolve$=$e),Se.$onReadyPromise$=new Promise($e=>Se.$onReadyResolve$=$e),H["s-p"]=[],H["s-rc"]=[],un(H,Se,le.$listeners$),pr.set(H,Se)},_o=(H,le)=>le in H,ai=(H,le)=>(0,console.error)(H,le),vi=new Map,Co=(H,le,Se)=>{const $e=H.$tagName$.replace(/-/g,"_"),pt=H.$lazyBundleId$,ut=vi.get(pt);return ut?ut[$e]:x(8996)(`./${pt}.entry.js`).then(Bt=>(vi.set(pt,Bt),Bt[$e]),ai)},Wo=new Map,li=[],ur=typeof window<"u"?window:{},Kr=ur.document||{head:{}},Yn={$flags$:0,$resourcesUrl$:"",jmp:H=>H(),raf:H=>requestAnimationFrame(H),ael:(H,le,Se,$e)=>H.addEventListener(le,Se,$e),rel:(H,le,Se,$e)=>H.removeEventListener(le,Se,$e),ce:(H,le)=>new CustomEvent(H,le)},Lo=H=>{Object.assign(Yn,H)},To=!0,Do=(()=>{let H=!1;try{Kr.addEventListener("e",null,Object.defineProperty({},"passive",{get(){H=!0}}))}catch{}return H})(),bo=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Li=!1,S=[],Q=[],me=(H,le)=>Se=>{H.push(Se),Li||(Li=!0,le&&4&Yn.$flags$?st(_e):Yn.raf(_e))},P=H=>{for(let le=0;le{P(S),P(Q),(Li=S.length>0)&&Yn.raf(_e)},st=H=>Promise.resolve(void 0).then(H),mr=me(S,!1),Ei=me(Q,!0)},2725:(Dn,At,x)=>{"use strict";x.d(At,{b:()=>Ge,c:()=>Qe,d:()=>we,e:()=>Be,g:()=>De,l:()=>zt,s:()=>tn,t:()=>gt,w:()=>Et});var g=x(467),c=x(3664),de=x(9672),Fe=x(4929),W=x(4920);const Ge="ionViewWillLeave",Qe="ionViewDidLeave",we="ionViewWillUnload",Ee=z=>{z.tabIndex=-1,z.focus()},Ue=z=>null!==z.offsetParent,Ve="ion-last-focus",at_saveViewFocus=q=>{if(c.c.get("focusManagerPriority",!1)){const se=document.activeElement;null!==se&&null!=q&&q.contains(se)&&se.setAttribute(Ve,"true")}},at_setViewFocus=q=>{const ie=c.c.get("focusManagerPriority",!1);if(Array.isArray(ie)&&!q.contains(document.activeElement)){const se=q.querySelector(`[${Ve}]`);if(se&&Ue(se))return void Ee(se);for(const be of ie)switch(be){case"content":const Xe=q.querySelector('main, [role="main"]');if(Xe&&Ue(Xe))return void Ee(Xe);break;case"heading":const nn=q.querySelector('h1, [role="heading"][aria-level="1"]');if(nn&&Ue(nn))return void Ee(nn);break;case"banner":const En=q.querySelector('header, [role="banner"]');if(En&&Ue(En))return void Ee(En);break;default:(0,Fe.p)(`Unrecognized focus manager priority value ${be}`)}Ee(q)}},gt=z=>new Promise((K,q)=>{(0,de.w)(()=>{xt(z),ft(z).then(ie=>{ie.animation&&ie.animation.destroy(),yt(z),K(ie)},ie=>{yt(z),q(ie)})})}),xt=z=>{const K=z.enteringEl,q=z.leavingEl;at_saveViewFocus(q),Ze(K,q,z.direction),z.showGoBack?K.classList.add("can-go-back"):K.classList.remove("can-go-back"),tn(K,!1),K.style.setProperty("pointer-events","none"),q&&(tn(q,!1),q.style.setProperty("pointer-events","none"))},ft=function(){var z=(0,g.A)(function*(K){const q=yield Pe(K);return q&&de.B.isBrowser?Ke(q,K):He(K)});return function(q){return z.apply(this,arguments)}}(),yt=z=>{const K=z.enteringEl,q=z.leavingEl;K.classList.remove("ion-page-invisible"),K.style.removeProperty("pointer-events"),void 0!==q&&(q.classList.remove("ion-page-invisible"),q.style.removeProperty("pointer-events")),at_setViewFocus(K)},Pe=function(){var z=(0,g.A)(function*(K){return K.leavingEl&&K.animated&&0!==K.duration?K.animationBuilder?K.animationBuilder:"ios"===K.mode?(yield Promise.resolve().then(x.bind(x,8454))).iosTransitionAnimation:(yield Promise.resolve().then(x.bind(x,3314))).mdTransitionAnimation:void 0});return function(q){return z.apply(this,arguments)}}(),Ke=function(){var z=(0,g.A)(function*(K,q){yield Je(q,!0);const ie=K(q.baseEl,q);nt(q.enteringEl,q.leavingEl);const se=yield Ce(ie,q);return q.progressCallback&&q.progressCallback(void 0),se&&Rt(q.enteringEl,q.leavingEl),{hasCompleted:se,animation:ie}});return function(q,ie){return z.apply(this,arguments)}}(),He=function(){var z=(0,g.A)(function*(K){const q=K.enteringEl,ie=K.leavingEl,se=c.c.get("focusManagerPriority",!1);return yield Je(K,se),nt(q,ie),Rt(q,ie),{hasCompleted:!0}});return function(q){return z.apply(this,arguments)}}(),Je=function(){var z=(0,g.A)(function*(K,q){(void 0!==K.deepWait?K.deepWait:q)&&(yield Promise.all([Be(K.enteringEl),Be(K.leavingEl)])),yield mt(K.viewIsReady,K.enteringEl)});return function(q,ie){return z.apply(this,arguments)}}(),mt=function(){var z=(0,g.A)(function*(K,q){K&&(yield K(q))});return function(q,ie){return z.apply(this,arguments)}}(),Ce=(z,K)=>{const q=K.progressCallback,ie=new Promise(se=>{z.onFinish(be=>se(1===be))});return q?(z.progressStart(!0),q(z)):z.play(),ie},nt=(z,K)=>{zt(K,Ge),zt(z,"ionViewWillEnter")},Rt=(z,K)=>{zt(z,"ionViewDidEnter"),zt(K,Qe)},zt=(z,K)=>{if(z){const q=new CustomEvent(K,{bubbles:!1,cancelable:!1});z.dispatchEvent(q)}},Et=()=>new Promise(z=>(0,W.r)(()=>(0,W.r)(()=>z()))),Be=function(){var z=(0,g.A)(function*(K){const q=K;if(q){if(null!=q.componentOnReady){if(null!=(yield q.componentOnReady()))return}else if(null!=q.__registerHost)return void(yield new Promise(se=>(0,W.r)(se)));yield Promise.all(Array.from(q.children).map(Be))}});return function(q){return z.apply(this,arguments)}}(),tn=(z,K)=>{K?(z.setAttribute("aria-hidden","true"),z.classList.add("ion-page-hidden")):(z.hidden=!1,z.removeAttribute("aria-hidden"),z.classList.remove("ion-page-hidden"))},Ze=(z,K,q)=>{void 0!==z&&(z.style.zIndex="back"===q?"99":"101"),void 0!==K&&(K.style.zIndex="100")},De=z=>z.classList.contains("ion-page")?z:z.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||z},4929:(Dn,At,x)=>{"use strict";x.d(At,{a:()=>c,b:()=>de,p:()=>g});const g=(Fe,...W)=>console.warn(`[Ionic Warning]: ${Fe}`,...W),c=(Fe,...W)=>console.error(`[Ionic Error]: ${Fe}`,...W),de=(Fe,...W)=>console.error(`<${Fe.tagName.toLowerCase()}> must be used inside ${W.join(" or ")}.`)},8476:(Dn,At,x)=>{"use strict";x.d(At,{d:()=>c,w:()=>g});const g=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Dn,At,x)=>{"use strict";x.d(At,{a:()=>Ee,b:()=>tn,c:()=>de,i:()=>Ze});var g=x(9672);class c{constructor(){this.m=new Map}reset(z){this.m=new Map(Object.entries(z))}get(z,K){const q=this.m.get(z);return void 0!==q?q:K}getBoolean(z,K=!1){const q=this.m.get(z);return void 0===q?K:"string"==typeof q?"true"===q:!!q}getNumber(z,K){const q=parseFloat(this.m.get(z));return isNaN(q)?void 0!==K?K:NaN:q}set(z,K){this.m.set(z,K)}}const de=new c,Qe="ionic-persist-config",Ee=(De,z)=>("string"==typeof De&&(z=De,De=void 0),(De=>Ue(De))(De).includes(z)),Ue=(De=window)=>{if(typeof De>"u")return[];De.Ionic=De.Ionic||{};let z=De.Ionic.platforms;return null==z&&(z=De.Ionic.platforms=ze(De),z.forEach(K=>De.document.documentElement.classList.add(`plt-${K}`))),z},ze=De=>{const z=de.get("platform");return Object.keys(Et).filter(K=>{const q=null==z?void 0:z[K];return"function"==typeof q?q(De):Et[K](De)})},it=De=>!!(Rt(De,/iPad/i)||Rt(De,/Macintosh/i)&&Pe(De)),gt=De=>Rt(De,/android|sink/i),Pe=De=>zt(De,"(any-pointer:coarse)"),He=De=>Je(De)||mt(De),Je=De=>!!(De.cordova||De.phonegap||De.PhoneGap),mt=De=>{const z=De.Capacitor;return!(null==z||!z.isNative)},Rt=(De,z)=>z.test(De.navigator.userAgent),zt=(De,z)=>{var K;return null===(K=De.matchMedia)||void 0===K?void 0:K.call(De,z).matches},Et={ipad:it,iphone:De=>Rt(De,/iPhone/i),ios:De=>Rt(De,/iPhone|iPod/i)||it(De),android:gt,phablet:De=>{const z=De.innerWidth,K=De.innerHeight,q=Math.min(z,K),ie=Math.max(z,K);return q>390&&q<520&&ie>620&&ie<800},tablet:De=>{const z=De.innerWidth,K=De.innerHeight,q=Math.min(z,K),ie=Math.max(z,K);return it(De)||(De=>gt(De)&&!Rt(De,/mobile/i))(De)||q>460&&q<820&&ie>780&&ie<1400},cordova:Je,capacitor:mt,electron:De=>Rt(De,/electron/i),pwa:De=>{var z;return!!(null!==(z=De.matchMedia)&&void 0!==z&&z.call(De,"(display-mode: standalone)").matches||De.navigator.standalone)},mobile:Pe,mobileweb:De=>Pe(De)&&!He(De),desktop:De=>!Pe(De),hybrid:He};let Be;const tn=De=>De&&(0,g.g)(De)||Be,Ze=(De={})=>{if(typeof window>"u")return;const z=window.document,K=window,q=K.Ionic=K.Ionic||{},ie={};De._ael&&(ie.ael=De._ael),De._rel&&(ie.rel=De._rel),De._ce&&(ie.ce=De._ce),(0,g.a)(ie);const se=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(De=>{try{const z=De.sessionStorage.getItem(Qe);return null!==z?JSON.parse(z):{}}catch{return{}}})(K)),{persistConfig:!1}),q.config),(De=>{const z={};return De.location.search.slice(1).split("&").map(K=>K.split("=")).map(([K,q])=>{try{return[decodeURIComponent(K),decodeURIComponent(q)]}catch{return["",""]}}).filter(([K])=>((De,z)=>De.substr(0,z.length)===z)(K,"ionic:")).map(([K,q])=>[K.slice(6),q]).forEach(([K,q])=>{z[K]=q}),z})(K)),De);de.reset(se),de.getBoolean("persistConfig")&&((De,z)=>{try{De.sessionStorage.setItem(Qe,JSON.stringify(z))}catch{return}})(K,se),Ue(K),q.config=de,q.mode=Be=de.get("mode",z.documentElement.getAttribute("mode")||(Ee(K,"ios")?"ios":"md")),de.set("mode",Be),z.documentElement.setAttribute("mode",Be),z.documentElement.classList.add(Be),de.getBoolean("_testing")&&de.set("animated",!1);const be=nn=>{var En;return null===(En=nn.tagName)||void 0===En?void 0:En.startsWith("ION-")},Xe=nn=>["ios","md"].includes(nn);(0,g.c)(nn=>{for(;nn;){const En=nn.mode||nn.getAttribute("mode");if(En){if(Xe(En))return En;be(nn)&&console.warn('Invalid ionic mode: "'+En+'", expected: "ios" or "md"')}nn=nn.parentElement}return Be})}},8454:(Dn,At,x)=>{"use strict";x.r(At),x.d(At,{iosTransitionAnimation:()=>Ve,shadow:()=>Ge});var g=x(9986),c=x(2725);x(8476),x(3664),x(9672);const te=It=>document.querySelector(`${It}.ion-cloned-element`),Ge=It=>It.shadowRoot||It,Qe=It=>{const at="ION-TABS"===It.tagName?It:It.querySelector("ion-tabs"),gt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=at){const xt=at.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=xt?xt.querySelector(gt):null}return It.querySelector(gt)},we=(It,at)=>{const gt="ION-TABS"===It.tagName?It:It.querySelector("ion-tabs");let xt=[];if(null!=gt){const ft=gt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=ft&&(xt=ft.querySelectorAll("ion-buttons"))}else xt=It.querySelectorAll("ion-buttons");for(const ft of xt){const yt=ft.closest("ion-header"),Pe=yt&&!yt.classList.contains("header-collapse-condense-inactive"),Ke=ft.querySelector("ion-back-button"),He=ft.classList.contains("buttons-collapse");if(null!==Ke&&("start"===ft.slot||""===ft.slot)&&(He&&Pe&&at||!He))return Ke}return null},Ue=(It,at,gt,xt,ft,yt,Pe,Ke,He)=>{var Je,mt;const Ce=at?`calc(100% - ${ft.right+4}px)`:ft.left-4+"px",nt=at?"right":"left",Rt=at?"left":"right",zt=at?"right":"left";let Et=1,Be=1,tn=`scale(${Be})`;const Ze="scale(1)";if(yt&&Pe){const Ft=(null===(Je=yt.textContent)||void 0===Je?void 0:Je.trim())===(null===(mt=Ke.textContent)||void 0===mt?void 0:mt.trim());Et=He.width/Pe.width,Be=(He.height-it)/Pe.height,tn=Ft?`scale(${Et}, ${Be})`:`scale(${Be})`}const z=Ge(xt).querySelector("ion-icon").getBoundingClientRect(),K=at?z.width/2-(z.right-ft.right)+"px":ft.left-z.width/2+"px",q=at?`-${window.innerWidth-ft.right}px`:`${ft.left}px`,ie=`${He.top}px`,se=`${ft.top}px`,nn=gt?[{offset:0,transform:`translate3d(${q}, ${se}, 0)`},{offset:1,transform:`translate3d(${K}, ${ie}, 0)`}]:[{offset:0,transform:`translate3d(${K}, ${ie}, 0)`},{offset:1,transform:`translate3d(${q}, ${se}, 0)`}],Mn=gt?[{offset:0,opacity:1,transform:Ze},{offset:1,opacity:0,transform:tn}]:[{offset:0,opacity:0,transform:tn},{offset:1,opacity:1,transform:Ze}],Zn=gt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],Xn=(0,g.c)(),wn=(0,g.c)(),or=(0,g.c)(),rr=te("ion-back-button"),je=Ge(rr).querySelector(".button-text"),bt=Ge(rr).querySelector("ion-icon");rr.text=xt.text,rr.mode=xt.mode,rr.icon=xt.icon,rr.color=xt.color,rr.disabled=xt.disabled,rr.style.setProperty("display","block"),rr.style.setProperty("position","fixed"),wn.addElement(bt),Xn.addElement(je),or.addElement(rr),or.beforeStyles({position:"absolute",top:"0px",[zt]:"0px"}).beforeAddWrite(()=>{xt.style.setProperty("display","none"),rr.style.setProperty(nt,Ce)}).afterAddWrite(()=>{xt.style.setProperty("display",""),rr.style.setProperty("display","none"),rr.style.removeProperty(nt)}).keyframes(nn),Xn.beforeStyles({"transform-origin":`${nt} top`}).keyframes(Mn),wn.beforeStyles({"transform-origin":`${Rt} center`}).keyframes(Zn),It.addAnimation([Xn,wn,or])},ze=(It,at,gt,xt,ft,yt,Pe,Ke,He)=>{var Je,mt;const Ce=at?"right":"left",nt=at?`calc(100% - ${ft.right}px)`:`${ft.left}px`,zt=`${ft.top}px`;let Be=at?`-${window.innerWidth-Pe.right-8}px`:`${Pe.x+8}px`,tn=.5;const Ze="scale(1)";let De=`scale(${tn})`;if(Ke&&He){Be=at?`-${window.innerWidth-He.right-8}px`:He.x-8+"px";const En=(null===(Je=Ke.textContent)||void 0===Je?void 0:Je.trim())===(null===(mt=xt.textContent)||void 0===mt?void 0:mt.trim());tn=He.height/(yt.height-it),De=En?`scale(${He.width/yt.width}, ${tn})`:`scale(${tn})`}const q=Pe.top+Pe.height/2-ft.height*tn/2+"px",be=gt?[{offset:0,opacity:0,transform:`translate3d(${Be}, ${q}, 0) ${De}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${zt}, 0) ${Ze}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${zt}, 0) ${Ze}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Be}, ${q}, 0) ${De}`}],Xe=te("ion-title"),nn=(0,g.c)();Xe.innerText=xt.innerText,Xe.size=xt.size,Xe.color=xt.color,nn.addElement(Xe),nn.beforeStyles({"transform-origin":`${Ce} top`,height:`${ft.height}px`,display:"",position:"relative",[Ce]:nt}).beforeAddWrite(()=>{xt.style.setProperty("opacity","0")}).afterAddWrite(()=>{xt.style.setProperty("opacity",""),Xe.style.setProperty("display","none")}).keyframes(be),It.addAnimation(nn)},Ve=(It,at)=>{var gt;try{const xt="cubic-bezier(0.32,0.72,0,1)",ft="opacity",yt="transform",Pe="0%",He="rtl"===It.ownerDocument.dir,Je=He?"-99.5%":"99.5%",mt=He?"33%":"-33%",Ce=at.enteringEl,nt=at.leavingEl,Rt="back"===at.direction,zt=Ce.querySelector(":scope > ion-content"),Et=Ce.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Be=Ce.querySelectorAll(":scope > ion-header > ion-toolbar"),tn=(0,g.c)(),Ze=(0,g.c)();if(tn.addElement(Ce).duration((null!==(gt=at.duration)&&void 0!==gt?gt:0)||540).easing(at.easing||xt).fill("both").beforeRemoveClass("ion-page-invisible"),nt&&null!=It){const q=(0,g.c)();q.addElement(It),tn.addAnimation(q)}if(zt||0!==Be.length||0!==Et.length?(Ze.addElement(zt),Ze.addElement(Et)):Ze.addElement(Ce.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),tn.addAnimation(Ze),Rt?Ze.beforeClearStyles([ft]).fromTo("transform",`translateX(${mt})`,`translateX(${Pe})`).fromTo(ft,.8,1):Ze.beforeClearStyles([ft]).fromTo("transform",`translateX(${Je})`,`translateX(${Pe})`),zt){const q=Ge(zt).querySelector(".transition-effect");if(q){const ie=q.querySelector(".transition-cover"),se=q.querySelector(".transition-shadow"),be=(0,g.c)(),Xe=(0,g.c)(),nn=(0,g.c)();be.addElement(q).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Xe.addElement(ie).beforeClearStyles([ft]).fromTo(ft,0,.1),nn.addElement(se).beforeClearStyles([ft]).fromTo(ft,.03,.7),be.addAnimation([Xe,nn]),Ze.addAnimation([be])}}const De=Ce.querySelector("ion-header.header-collapse-condense"),{forward:z,backward:K}=((It,at,gt,xt,ft)=>{const yt=we(xt,gt),Pe=Qe(ft),Ke=Qe(xt),He=we(ft,gt),Je=null!==yt&&null!==Pe&&!gt,mt=null!==Ke&&null!==He&>if(Je){const Ce=Pe.getBoundingClientRect(),nt=yt.getBoundingClientRect(),Rt=Ge(yt).querySelector(".button-text"),zt=null==Rt?void 0:Rt.getBoundingClientRect(),Be=Ge(Pe).querySelector(".toolbar-title").getBoundingClientRect();ze(It,at,gt,Pe,Ce,Be,nt,Rt,zt),Ue(It,at,gt,yt,nt,Rt,zt,Pe,Be)}else if(mt){const Ce=Ke.getBoundingClientRect(),nt=He.getBoundingClientRect(),Rt=Ge(He).querySelector(".button-text"),zt=null==Rt?void 0:Rt.getBoundingClientRect(),Be=Ge(Ke).querySelector(".toolbar-title").getBoundingClientRect();ze(It,at,gt,Ke,Ce,Be,nt,Rt,zt),Ue(It,at,gt,He,nt,Rt,zt,Ke,Be)}return{forward:Je,backward:mt}})(tn,He,Rt,Ce,nt);if(Be.forEach(q=>{const ie=(0,g.c)();ie.addElement(q),tn.addAnimation(ie);const se=(0,g.c)();se.addElement(q.querySelector("ion-title"));const be=(0,g.c)(),Xe=Array.from(q.querySelectorAll("ion-buttons,[menuToggle]")),nn=q.closest("ion-header"),En=null==nn?void 0:nn.classList.contains("header-collapse-condense-inactive");let rn;rn=Xe.filter(Rt?Xn=>{const wn=Xn.classList.contains("buttons-collapse");return wn&&!En||!wn}:Xn=>!Xn.classList.contains("buttons-collapse")),be.addElement(rn);const Mn=(0,g.c)();Mn.addElement(q.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Vn=(0,g.c)();Vn.addElement(Ge(q).querySelector(".toolbar-background"));const qn=(0,g.c)(),Zn=q.querySelector("ion-back-button");if(Zn&&qn.addElement(Zn),ie.addAnimation([se,be,Mn,Vn,qn]),be.fromTo(ft,.01,1),Mn.fromTo(ft,.01,1),Rt)En||se.fromTo("transform",`translateX(${mt})`,`translateX(${Pe})`).fromTo(ft,.01,1),Mn.fromTo("transform",`translateX(${mt})`,`translateX(${Pe})`),qn.fromTo(ft,.01,1);else if(De||se.fromTo("transform",`translateX(${Je})`,`translateX(${Pe})`).fromTo(ft,.01,1),Mn.fromTo("transform",`translateX(${Je})`,`translateX(${Pe})`),Vn.beforeClearStyles([ft,"transform"]),(null==nn?void 0:nn.translucent)?Vn.fromTo("transform",He?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Vn.fromTo(ft,.01,"var(--opacity)"),z||qn.fromTo(ft,.01,1),Zn&&!z){const wn=(0,g.c)();wn.addElement(Ge(Zn).querySelector(".button-text")).fromTo("transform",He?"translateX(-100px)":"translateX(100px)","translateX(0px)"),ie.addAnimation(wn)}}),nt){const q=(0,g.c)(),ie=nt.querySelector(":scope > ion-content"),se=nt.querySelectorAll(":scope > ion-header > ion-toolbar"),be=nt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(ie||0!==se.length||0!==be.length?(q.addElement(ie),q.addElement(be)):q.addElement(nt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),tn.addAnimation(q),Rt){q.beforeClearStyles([ft]).fromTo("transform",`translateX(${Pe})`,He?"translateX(-100%)":"translateX(100%)");const Xe=(0,c.g)(nt);tn.afterAddWrite(()=>{"normal"===tn.getDirection()&&Xe.style.setProperty("display","none")})}else q.fromTo("transform",`translateX(${Pe})`,`translateX(${mt})`).fromTo(ft,1,.8);if(ie){const Xe=Ge(ie).querySelector(".transition-effect");if(Xe){const nn=Xe.querySelector(".transition-cover"),En=Xe.querySelector(".transition-shadow"),rn=(0,g.c)(),Mn=(0,g.c)(),Vn=(0,g.c)();rn.addElement(Xe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Mn.addElement(nn).beforeClearStyles([ft]).fromTo(ft,.1,0),Vn.addElement(En).beforeClearStyles([ft]).fromTo(ft,.7,.03),rn.addAnimation([Mn,Vn]),q.addAnimation([rn])}}se.forEach(Xe=>{const nn=(0,g.c)();nn.addElement(Xe);const En=(0,g.c)();En.addElement(Xe.querySelector("ion-title"));const rn=(0,g.c)(),Mn=Xe.querySelectorAll("ion-buttons,[menuToggle]"),Vn=Xe.closest("ion-header"),qn=null==Vn?void 0:Vn.classList.contains("header-collapse-condense-inactive"),Zn=Array.from(Mn).filter(bt=>{const Ft=bt.classList.contains("buttons-collapse");return Ft&&!qn||!Ft});rn.addElement(Zn);const Xn=(0,g.c)(),wn=Xe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");wn.length>0&&Xn.addElement(wn);const or=(0,g.c)();or.addElement(Ge(Xe).querySelector(".toolbar-background"));const rr=(0,g.c)(),je=Xe.querySelector("ion-back-button");if(je&&rr.addElement(je),nn.addAnimation([En,rn,Xn,rr,or]),tn.addAnimation(nn),rr.fromTo(ft,.99,0),rn.fromTo(ft,.99,0),Xn.fromTo(ft,.99,0),Rt){if(qn||En.fromTo("transform",`translateX(${Pe})`,He?"translateX(-100%)":"translateX(100%)").fromTo(ft,.99,0),Xn.fromTo("transform",`translateX(${Pe})`,He?"translateX(-100%)":"translateX(100%)"),or.beforeClearStyles([ft,"transform"]),(null==Vn?void 0:Vn.translucent)?or.fromTo("transform","translateX(0px)",He?"translateX(-100%)":"translateX(100%)"):or.fromTo(ft,"var(--opacity)",0),je&&!K){const Ft=(0,g.c)();Ft.addElement(Ge(je).querySelector(".button-text")).fromTo("transform",`translateX(${Pe})`,`translateX(${(He?-124:124)+"px"})`),nn.addAnimation(Ft)}}else qn||En.fromTo("transform",`translateX(${Pe})`,`translateX(${mt})`).fromTo(ft,.99,0).afterClearStyles([yt,ft]),Xn.fromTo("transform",`translateX(${Pe})`,`translateX(${mt})`).afterClearStyles([yt,ft]),rr.afterClearStyles([ft]),En.afterClearStyles([ft]),rn.afterClearStyles([ft])})}return tn}catch(xt){throw xt}},it=10},3314:(Dn,At,x)=>{"use strict";x.r(At),x.d(At,{mdTransitionAnimation:()=>Ie});var g=x(9986),c=x(2725);x(8476),x(3664),x(9672);const Ie=(te,Ge)=>{var Qe,we,Ee;const Ve="back"===Ge.direction,It=Ge.leavingEl,at=(0,c.g)(Ge.enteringEl),gt=at.querySelector("ion-toolbar"),xt=(0,g.c)();if(xt.addElement(at).fill("both").beforeRemoveClass("ion-page-invisible"),Ve?xt.duration((null!==(Qe=Ge.duration)&&void 0!==Qe?Qe:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):xt.duration((null!==(we=Ge.duration)&&void 0!==we?we:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),gt){const ft=(0,g.c)();ft.addElement(gt),xt.addAnimation(ft)}if(It&&Ve){xt.duration((null!==(Ee=Ge.duration)&&void 0!==Ee?Ee:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const ft=(0,g.c)();ft.addElement((0,c.g)(It)).onFinish(yt=>{1===yt&&ft.elements.length>0&&ft.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),xt.addAnimation(ft)}return xt}},6002:(Dn,At,x)=>{"use strict";x.d(At,{B:()=>Mn,F:()=>rr,G:()=>Vn,O:()=>qn,a:()=>at,b:()=>gt,c:()=>Pe,d:()=>Zn,e:()=>Xn,f:()=>z,g:()=>q,h:()=>be,i:()=>nn,j:()=>He,k:()=>Je,l:()=>xt,m:()=>ft,n:()=>we,o:()=>Ze,q:()=>Ee,s:()=>rn});var g=x(467),c=x(8476),de=x(4920),Fe=x(6411),W=x(3664),Ie=x(8621),te=x(1970),Ge=x(4929);const Qe='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',we=(je,bt)=>{const Ft=je.querySelector(Qe);Ue(Ft,null!=bt?bt:je)},Ee=(je,bt)=>{const Ft=Array.from(je.querySelectorAll(Qe));Ue(Ft.length>0?Ft[Ft.length-1]:null,null!=bt?bt:je)},Ue=(je,bt)=>{let Ft=je;const Jt=null==je?void 0:je.shadowRoot;Jt&&(Ft=Jt.querySelector(Qe)||je),Ft?(0,de.f)(Ft):bt.focus()};let ze=0,Ve=0;const it=new WeakMap,It=je=>({create:bt=>mt(je,bt),dismiss:(bt,Ft,Jt)=>Et(document,bt,Ft,je,Jt),getTop:()=>(0,g.A)(function*(){return Ze(document,je)})()}),at=It("ion-alert"),gt=It("ion-action-sheet"),xt=It("ion-loading"),ft=It("ion-modal"),Pe=It("ion-popover"),He=je=>{typeof document<"u"&&zt(document);const bt=ze++;je.overlayIndex=bt},Je=je=>(je.hasAttribute("id")||(je.id="ion-overlay-"+ ++Ve),je.id),mt=(je,bt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(je).then(()=>{const Ft=document.createElement(je);return Ft.classList.add("overlay-hidden"),Object.assign(Ft,Object.assign(Object.assign({},bt),{hasController:!0})),ie(document).appendChild(Ft),new Promise(Jt=>(0,de.c)(Ft,Jt))}):Promise.resolve(),nt=(je,bt)=>{let Ft=je;const Jt=null==je?void 0:je.shadowRoot;Jt&&(Ft=Jt.querySelector(Qe)||je),Ft?(0,de.f)(Ft):bt.focus()},zt=je=>{0===ze&&(ze=1,je.addEventListener("focus",bt=>{((je,bt)=>{const Ft=Ze(bt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Jt=je.target;Ft&&Jt&&!Ft.classList.contains(rr)&&(Ft.shadowRoot?(()=>{if(Ft.contains(Jt))Ft.lastFocus=Jt;else if("ION-TOAST"===Jt.tagName)nt(Ft.lastFocus,Ft);else{const Cn=Ft.lastFocus;we(Ft),Cn===bt.activeElement&&Ee(Ft),Ft.lastFocus=bt.activeElement}})():(()=>{if(Ft===Jt)Ft.lastFocus=void 0;else if("ION-TOAST"===Jt.tagName)nt(Ft.lastFocus,Ft);else{const Cn=(0,de.g)(Ft);if(!Cn.contains(Jt))return;const An=Cn.querySelector(".ion-overlay-wrapper");if(!An)return;if(An.contains(Jt)||Jt===Cn.querySelector("ion-backdrop"))Ft.lastFocus=Jt;else{const sn=Ft.lastFocus;we(An,Ft),sn===bt.activeElement&&Ee(An,Ft),Ft.lastFocus=bt.activeElement}}})())})(bt,je)},!0),je.addEventListener("ionBackButton",bt=>{const Ft=Ze(je);null!=Ft&&Ft.backdropDismiss&&bt.detail.register(Fe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ft.dismiss(void 0,Mn)})}),(0,Fe.shouldUseCloseWatcher)()||je.addEventListener("keydown",bt=>{if("Escape"===bt.key){const Ft=Ze(je);null!=Ft&&Ft.backdropDismiss&&Ft.dismiss(void 0,Mn)}}))},Et=(je,bt,Ft,Jt,on)=>{const Ar=Ze(je,Jt,on);return Ar?Ar.dismiss(bt,Ft):Promise.reject("overlay does not exist")},tn=(je,bt)=>((je,bt)=>(void 0===bt&&(bt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(je.querySelectorAll(bt)).filter(Ft=>Ft.overlayIndex>0)))(je,bt).filter(Ft=>!(je=>je.classList.contains("overlay-hidden"))(Ft)),Ze=(je,bt,Ft)=>{const Jt=tn(je,bt);return void 0===Ft?Jt[Jt.length-1]:Jt.find(on=>on.id===Ft)},De=(je=!1)=>{const Ft=ie(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ft&&(je?Ft.setAttribute("aria-hidden","true"):Ft.removeAttribute("aria-hidden"))},z=function(){var je=(0,g.A)(function*(bt,Ft,Jt,on,Ar){var Cn,An;if(bt.presented)return;De(!0),document.body.classList.add(te.B),wn(bt.el),bt.presented=!0,bt.willPresent.emit(),null===(Cn=bt.willPresentShorthand)||void 0===Cn||Cn.emit();const sn=(0,W.b)(bt),Kt=bt.enterAnimation?bt.enterAnimation:W.c.get(Ft,"ios"===sn?Jt:on);(yield se(bt,Kt,bt.el,Ar))&&(bt.didPresent.emit(),null===(An=bt.didPresentShorthand)||void 0===An||An.emit()),"ION-TOAST"!==bt.el.tagName&&K(bt.el),bt.keyboardClose&&(null===document.activeElement||!bt.el.contains(document.activeElement))&&bt.el.focus(),bt.el.removeAttribute("aria-hidden")});return function(Ft,Jt,on,Ar,Cn){return je.apply(this,arguments)}}(),K=function(){var je=(0,g.A)(function*(bt){let Ft=document.activeElement;if(!Ft)return;const Jt=null==Ft?void 0:Ft.shadowRoot;Jt&&(Ft=Jt.querySelector(Qe)||Ft),yield bt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ft.focus()});return function(Ft){return je.apply(this,arguments)}}(),q=function(){var je=(0,g.A)(function*(bt,Ft,Jt,on,Ar,Cn,An){var sn,Kt;if(!bt.presented)return!1;void 0!==c.d&&1===tn(c.d).length&&(De(!1),document.body.classList.remove(te.B)),bt.presented=!1;try{bt.el.style.setProperty("pointer-events","none"),bt.willDismiss.emit({data:Ft,role:Jt}),null===(sn=bt.willDismissShorthand)||void 0===sn||sn.emit({data:Ft,role:Jt});const Rr=(0,W.b)(bt),Lr=bt.leaveAnimation?bt.leaveAnimation:W.c.get(on,"ios"===Rr?Ar:Cn);Jt!==Vn&&(yield se(bt,Lr,bt.el,An)),bt.didDismiss.emit({data:Ft,role:Jt}),null===(Kt=bt.didDismissShorthand)||void 0===Kt||Kt.emit({data:Ft,role:Jt}),(it.get(bt)||[]).forEach(Cr=>Cr.destroy()),it.delete(bt),bt.el.classList.add("overlay-hidden"),bt.el.style.removeProperty("pointer-events"),void 0!==bt.el.lastFocus&&(bt.el.lastFocus=void 0)}catch(Rr){console.error(Rr)}return bt.el.remove(),or(),!0});return function(Ft,Jt,on,Ar,Cn,An,sn){return je.apply(this,arguments)}}(),ie=je=>je.querySelector("ion-app")||je.body,se=function(){var je=(0,g.A)(function*(bt,Ft,Jt,on){Jt.classList.remove("overlay-hidden");const Cn=Ft(bt.el,on);(!bt.animated||!W.c.getBoolean("animated",!0))&&Cn.duration(0),bt.keyboardClose&&Cn.beforeAddWrite(()=>{const sn=Jt.ownerDocument.activeElement;null!=sn&&sn.matches("input,ion-input, ion-textarea")&&sn.blur()});const An=it.get(bt)||[];return it.set(bt,[...An,Cn]),yield Cn.play(),!0});return function(Ft,Jt,on,Ar){return je.apply(this,arguments)}}(),be=(je,bt)=>{let Ft;const Jt=new Promise(on=>Ft=on);return Xe(je,bt,on=>{Ft(on.detail)}),Jt},Xe=(je,bt,Ft)=>{const Jt=on=>{(0,de.b)(je,bt,Jt),Ft(on)};(0,de.a)(je,bt,Jt)},nn=je=>"cancel"===je||je===Mn,En=je=>je(),rn=(je,bt)=>{if("function"==typeof je)return W.c.get("_zoneGate",En)(()=>{try{return je(bt)}catch(Jt){throw Jt}})},Mn="backdrop",Vn="gesture",qn=39,Zn=je=>{let Ft,bt=!1;const Jt=(0,Ie.C)(),on=(An=!1)=>{if(Ft&&!An)return{delegate:Ft,inline:bt};const{el:sn,hasController:Kt,delegate:fr}=je;return bt=null!==sn.parentNode&&!Kt,Ft=bt?fr||Jt:fr,{inline:bt,delegate:Ft}};return{attachViewToDom:function(){var An=(0,g.A)(function*(sn){const{delegate:Kt}=on(!0);if(Kt)return yield Kt.attachViewToDom(je.el,sn);const{hasController:fr}=je;if(fr&&void 0!==sn)throw new Error("framework delegate is missing");return null});return function(Kt){return An.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:An}=on();An&&void 0!==je.el&&An.removeViewFromDom(je.el.parentElement,je.el)}}},Xn=()=>{let je;const bt=()=>{je&&(je(),je=void 0)};return{addClickListener:(Jt,on)=>{bt();const Ar=void 0!==on?document.getElementById(on):null;Ar?je=((An,sn)=>{const Kt=()=>{sn.present()};return An.addEventListener("click",Kt),()=>{An.removeEventListener("click",Kt)}})(Ar,Jt):(0,Ge.p)(`A trigger element with the ID "${on}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Jt)},removeClickListener:bt}},wn=je=>{var bt;if(void 0===c.d)return;const Ft=tn(c.d);for(let Jt=Ft.length-1;Jt>=0;Jt--){const on=Ft[Jt],Ar=null!==(bt=Ft[Jt+1])&&void 0!==bt?bt:je;(Ar.hasAttribute("aria-hidden")||"ION-TOAST"!==Ar.tagName)&&on.setAttribute("aria-hidden","true")}},or=()=>{if(void 0===c.d)return;const je=tn(c.d);for(let bt=je.length-1;bt>=0;bt--){const Ft=je[bt];if(Ft.removeAttribute("aria-hidden"),"ION-TOAST"!==Ft.tagName)break}},rr="ion-disable-focus-trap"},63:(Dn,At,x)=>{"use strict";var g=x(345),c=x(4438),de=x(305),Fe=x(3656),W=x(7863),Ie=x(177);function te(q,ie){if(1&q&&(c.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),c.nrm(2,"ion-icon",7),c.j41(3,"ion-label",8),c.EFF(4),c.k0s()()()),2&q){const se=ie.$implicit;c.R7$(),c.Y8G("routerLink",se.url),c.R7$(),c.Y8G("name",se.icon),c.R7$(2),c.JRh(se.title)}}let Ge=(()=>{var q;class ie{constructor(be,Xe){this.router=be,this.menuController=Xe,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"radio"},{title:"My Team",url:"/myteam",icon:"people"}]}ngOnInit(){this.router.events.subscribe(be=>{be instanceof de.wF&&(be.urlAfterRedirects.includes("/login")||be.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(q=ie).\u0275fac=function(be){return new(be||q)(c.rXU(de.Ix),c.rXU(W._t))},q.\u0275cmp=c.VBU({type:q,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"routerLink"],["slot","start",3,"name"],["color","primary"]],template:function(be,Xe){1&be&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,te,5,3,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&be&&(c.R7$(9),c.Y8G("ngForOf",Xe.menuItems))},dependencies:[Ie.Sq,W.U1,W.W9,W.eU,W.iq,W.uz,W.he,W.nf,W.oS,W.cA,W.HP,W.BC,W.ai,W.Rg,W.N7,de.Wk]}),ie})();var Qe=x(9842),we=x(8737),Ee=x(1203),Ue=x(6354),ze=x(6697);x(2214);const it=(0,Ue.T)(q=>!!q);let It=(()=>{var q;class ie{constructor(be,Xe){(0,Qe.A)(this,"router",void 0),(0,Qe.A)(this,"auth",void 0),(0,Qe.A)(this,"canActivate",(nn,En)=>{const rn=nn.data.authGuardPipe||(()=>it);return(0,we.kQ)(this.auth).pipe((0,ze.s)(1),rn(nn,En),(0,Ue.T)(Mn=>"boolean"==typeof Mn?Mn:Array.isArray(Mn)?this.router.createUrlTree(Mn):this.router.parseUrl(Mn)))}),this.router=be,this.auth=Xe}}return q=ie,(0,Qe.A)(ie,"\u0275fac",function(be){return new(be||q)(c.KVO(de.Ix),c.KVO(we.Nj))}),(0,Qe.A)(ie,"\u0275prov",c.jDH({token:q,factory:q.\u0275fac,providedIn:"any"})),ie})();const at=q=>({canActivate:[It],data:{authGuardPipe:q}}),mt=()=>{return q=[""],(0,Ee.F)(it,(0,Ue.T)(ie=>ie||q));var q},Ce=()=>{return q=["home"],(0,Ee.F)(it,(0,Ue.T)(ie=>ie&&q||!0));var q},nt=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([x.e(2076),x.e(2069)]).then(x.bind(x,2069)).then(q=>q.HomePageModule),...at(mt)},{path:"register",loadChildren:()=>Promise.all([x.e(2076),x.e(3825)]).then(x.bind(x,3825)).then(q=>q.RegisterPageModule),...at(Ce)},{path:"login",loadChildren:()=>Promise.all([x.e(2076),x.e(6688)]).then(x.bind(x,6688)).then(q=>q.LoginPageModule),...at(Ce)},{path:"myteam",loadChildren:()=>Promise.all([x.e(2076),x.e(839)]).then(x.bind(x,839)).then(q=>q.MyteamPageModule),...at(mt)},{path:"model-product",loadChildren:()=>Promise.all([x.e(2076),x.e(3998)]).then(x.bind(x,3998)).then(q=>q.ModelProductPageModule),...at(mt)},{path:"new-product",loadChildren:()=>Promise.all([x.e(2076),x.e(7444)]).then(x.bind(x,7444)).then(q=>q.NewProductPageModule),...at(mt)},{path:"view-product",loadChildren:()=>Promise.all([x.e(2076),x.e(6927)]).then(x.bind(x,6927)).then(q=>q.ViewProductPageModule),...at(mt)},{path:"show-map",loadChildren:()=>Promise.all([x.e(9273),x.e(2076),x.e(246)]).then(x.bind(x,246)).then(q=>q.ShowMapPageModule),...at(mt)},{path:"latency-test",loadChildren:()=>Promise.all([x.e(2076),x.e(8533)]).then(x.bind(x,8533)).then(q=>q.LatencyTestPageModule),...at(mt)},{path:"latency-chooser",loadChildren:()=>Promise.all([x.e(2076),x.e(5722)]).then(x.bind(x,5722)).then(q=>q.LatencyChooserPageModule),...at(mt)},{path:"latency-results",loadChildren:()=>Promise.all([x.e(2076),x.e(6656)]).then(x.bind(x,6656)).then(q=>q.LatencyResultsPageModule),...at(mt)},{path:"graph-latency",loadChildren:()=>Promise.all([x.e(2076),x.e(7923)]).then(x.bind(x,7923)).then(q=>q.GraphPageModule),...at(mt)},{path:"trace-chooser",loadChildren:()=>Promise.all([x.e(2076),x.e(9906)]).then(x.bind(x,9906)).then(q=>q.TraceChooserPageModule),...at(mt)},{path:"trace-test",loadChildren:()=>Promise.all([x.e(2076),x.e(3935)]).then(x.bind(x,3935)).then(q=>q.TraceTestPageModule),...at(mt)},{path:"trace-results",loadChildren:()=>Promise.all([x.e(2076),x.e(1581)]).then(x.bind(x,1581)).then(q=>q.TraceResultsPageModule),...at(mt)},{path:"show-map-trace",loadChildren:()=>Promise.all([x.e(9273),x.e(2076),x.e(2051)]).then(x.bind(x,2051)).then(q=>q.ShowMapTracePageModule),...at(mt)},{path:"graph-data-for",loadChildren:()=>Promise.all([x.e(2076),x.e(1205)]).then(x.bind(x,1205)).then(q=>q.GraphDataForPageModule),...at(mt)},{path:"graph-trace",loadChildren:()=>Promise.all([x.e(2076),x.e(7907)]).then(x.bind(x,7907)).then(q=>q.GraphTracePageModule),...at(mt)},{path:"ai",loadChildren:()=>x.e(4348).then(x.bind(x,4348)).then(q=>q.AiPageModule),...at(mt)}];let Rt=(()=>{var q;class ie{}return(q=ie).\u0275fac=function(be){return new(be||q)},q.\u0275mod=c.$C({type:q}),q.\u0275inj=c.G2t({imports:[de.iI.forRoot(nt,{preloadingStrategy:de.Kp}),de.iI]}),ie})();var zt=x(7440),Et=x(4262);const Be_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var tn=x(1626),Ze=x(4688),De=x(9032);let z=(()=>{var q;class ie{}return(q=ie).\u0275fac=function(be){return new(be||q)},q.\u0275mod=c.$C({type:q,bootstrap:[Ge]}),q.\u0275inj=c.G2t({providers:[{provide:de.b,useClass:Fe.jM},(0,zt.MW)(()=>(0,zt.Wp)(Be_firebase)),(0,Et.hV)(()=>(0,Et.aU)()),(0,we._q)(()=>(0,we.xI)()),(0,De.cw)(()=>(0,De.v_)()),tn.q1,(0,Ze.eS)()],imports:[g.Bb,W.bv.forRoot(),Rt,tn.q1,Ze.sN.forRoot({echarts:()=>x.e(9697).then(x.bind(x,9697))})]}),ie})();(0,c.SmG)(),g.sG().bootstrapModule(z).catch(q=>console.log(q))},4412:(Dn,At,x)=>{"use strict";x.d(At,{t:()=>c});var g=x(1413);class c extends g.B{constructor(Fe){super(),this._value=Fe}get value(){return this.getValue()}_subscribe(Fe){const W=super._subscribe(Fe);return!W.closed&&Fe.next(this._value),W}getValue(){const{hasError:Fe,thrownError:W,_value:Ie}=this;if(Fe)throw W;return this._throwIfClosed(),Ie}next(Fe){super.next(this._value=Fe)}}},1985:(Dn,At,x)=>{"use strict";x.d(At,{c:()=>Ge});var g=x(7707),c=x(8359),de=x(3494),Fe=x(1203),W=x(1026),Ie=x(8071),te=x(9786);let Ge=(()=>{class Ue{constructor(Ve){Ve&&(this._subscribe=Ve)}lift(Ve){const it=new Ue;return it.source=this,it.operator=Ve,it}subscribe(Ve,it,It){const at=function Ee(Ue){return Ue&&Ue instanceof g.vU||function we(Ue){return Ue&&(0,Ie.T)(Ue.next)&&(0,Ie.T)(Ue.error)&&(0,Ie.T)(Ue.complete)}(Ue)&&(0,c.Uv)(Ue)}(Ve)?Ve:new g.Ms(Ve,it,It);return(0,te.Y)(()=>{const{operator:gt,source:xt}=this;at.add(gt?gt.call(at,xt):xt?this._subscribe(at):this._trySubscribe(at))}),at}_trySubscribe(Ve){try{return this._subscribe(Ve)}catch(it){Ve.error(it)}}forEach(Ve,it){return new(it=Qe(it))((It,at)=>{const gt=new g.Ms({next:xt=>{try{Ve(xt)}catch(ft){at(ft),gt.unsubscribe()}},error:at,complete:It});this.subscribe(gt)})}_subscribe(Ve){var it;return null===(it=this.source)||void 0===it?void 0:it.subscribe(Ve)}[de.s](){return this}pipe(...Ve){return(0,Fe.m)(Ve)(this)}toPromise(Ve){return new(Ve=Qe(Ve))((it,It)=>{let at;this.subscribe(gt=>at=gt,gt=>It(gt),()=>it(at))})}}return Ue.create=ze=>new Ue(ze),Ue})();function Qe(Ue){var ze;return null!==(ze=null!=Ue?Ue:W.$.Promise)&&void 0!==ze?ze:Promise}},1413:(Dn,At,x)=>{"use strict";x.d(At,{B:()=>te});var g=x(1985),c=x(8359);const Fe=(0,x(1853).L)(Qe=>function(){Qe(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=x(7908),Ie=x(9786);let te=(()=>{class Qe extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ee){const Ue=new Ge(this,this);return Ue.operator=Ee,Ue}_throwIfClosed(){if(this.closed)throw new Fe}next(Ee){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ue of this.currentObservers)Ue.next(Ee)}})}error(Ee){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ee;const{observers:Ue}=this;for(;Ue.length;)Ue.shift().error(Ee)}})}complete(){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ee}=this;for(;Ee.length;)Ee.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ee;return(null===(Ee=this.observers)||void 0===Ee?void 0:Ee.length)>0}_trySubscribe(Ee){return this._throwIfClosed(),super._trySubscribe(Ee)}_subscribe(Ee){return this._throwIfClosed(),this._checkFinalizedStatuses(Ee),this._innerSubscribe(Ee)}_innerSubscribe(Ee){const{hasError:Ue,isStopped:ze,observers:Ve}=this;return Ue||ze?c.Kn:(this.currentObservers=null,Ve.push(Ee),new c.yU(()=>{this.currentObservers=null,(0,W.o)(Ve,Ee)}))}_checkFinalizedStatuses(Ee){const{hasError:Ue,thrownError:ze,isStopped:Ve}=this;Ue?Ee.error(ze):Ve&&Ee.complete()}asObservable(){const Ee=new g.c;return Ee.source=this,Ee}}return Qe.create=(we,Ee)=>new Ge(we,Ee),Qe})();class Ge extends te{constructor(we,Ee){super(),this.destination=we,this.source=Ee}next(we){var Ee,Ue;null===(Ue=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===Ue||Ue.call(Ee,we)}error(we){var Ee,Ue;null===(Ue=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===Ue||Ue.call(Ee,we)}complete(){var we,Ee;null===(Ee=null===(we=this.destination)||void 0===we?void 0:we.complete)||void 0===Ee||Ee.call(we)}_subscribe(we){var Ee,Ue;return null!==(Ue=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(we))&&void 0!==Ue?Ue:c.Kn}}},7707:(Dn,At,x)=>{"use strict";x.d(At,{Ms:()=>It,vU:()=>Ue});var g=x(8071),c=x(8359),de=x(1026),Fe=x(5334),W=x(5343);const Ie=Qe("C",void 0,void 0);function Qe(yt,Pe,Ke){return{kind:yt,value:Pe,error:Ke}}var we=x(9270),Ee=x(9786);class Ue extends c.yU{constructor(Pe){super(),this.isStopped=!1,Pe?(this.destination=Pe,(0,c.Uv)(Pe)&&Pe.add(this)):this.destination=ft}static create(Pe,Ke,He){return new It(Pe,Ke,He)}next(Pe){this.isStopped?xt(function Ge(yt){return Qe("N",yt,void 0)}(Pe),this):this._next(Pe)}error(Pe){this.isStopped?xt(function te(yt){return Qe("E",void 0,yt)}(Pe),this):(this.isStopped=!0,this._error(Pe))}complete(){this.isStopped?xt(Ie,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Pe){this.destination.next(Pe)}_error(Pe){try{this.destination.error(Pe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ze=Function.prototype.bind;function Ve(yt,Pe){return ze.call(yt,Pe)}class it{constructor(Pe){this.partialObserver=Pe}next(Pe){const{partialObserver:Ke}=this;if(Ke.next)try{Ke.next(Pe)}catch(He){at(He)}}error(Pe){const{partialObserver:Ke}=this;if(Ke.error)try{Ke.error(Pe)}catch(He){at(He)}else at(Pe)}complete(){const{partialObserver:Pe}=this;if(Pe.complete)try{Pe.complete()}catch(Ke){at(Ke)}}}class It extends Ue{constructor(Pe,Ke,He){let Je;if(super(),(0,g.T)(Pe)||!Pe)Je={next:null!=Pe?Pe:void 0,error:null!=Ke?Ke:void 0,complete:null!=He?He:void 0};else{let mt;this&&de.$.useDeprecatedNextContext?(mt=Object.create(Pe),mt.unsubscribe=()=>this.unsubscribe(),Je={next:Pe.next&&Ve(Pe.next,mt),error:Pe.error&&Ve(Pe.error,mt),complete:Pe.complete&&Ve(Pe.complete,mt)}):Je=Pe}this.destination=new it(Je)}}function at(yt){de.$.useDeprecatedSynchronousErrorHandling?(0,Ee.l)(yt):(0,Fe.m)(yt)}function xt(yt,Pe){const{onStoppedNotification:Ke}=de.$;Ke&&we.f.setTimeout(()=>Ke(yt,Pe))}const ft={closed:!0,next:W.l,error:function gt(yt){throw yt},complete:W.l}},8359:(Dn,At,x)=>{"use strict";x.d(At,{Kn:()=>Ie,yU:()=>W,Uv:()=>te});var g=x(8071);const de=(0,x(1853).L)(Qe=>function(Ee){Qe(this),this.message=Ee?`${Ee.length} errors occurred during unsubscription:\n${Ee.map((Ue,ze)=>`${ze+1}) ${Ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ee});var Fe=x(7908);class W{constructor(we){this.initialTeardown=we,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let we;if(!this.closed){this.closed=!0;const{_parentage:Ee}=this;if(Ee)if(this._parentage=null,Array.isArray(Ee))for(const Ve of Ee)Ve.remove(this);else Ee.remove(this);const{initialTeardown:Ue}=this;if((0,g.T)(Ue))try{Ue()}catch(Ve){we=Ve instanceof de?Ve.errors:[Ve]}const{_finalizers:ze}=this;if(ze){this._finalizers=null;for(const Ve of ze)try{Ge(Ve)}catch(it){we=null!=we?we:[],it instanceof de?we=[...we,...it.errors]:we.push(it)}}if(we)throw new de(we)}}add(we){var Ee;if(we&&we!==this)if(this.closed)Ge(we);else{if(we instanceof W){if(we.closed||we._hasParent(this))return;we._addParent(this)}(this._finalizers=null!==(Ee=this._finalizers)&&void 0!==Ee?Ee:[]).push(we)}}_hasParent(we){const{_parentage:Ee}=this;return Ee===we||Array.isArray(Ee)&&Ee.includes(we)}_addParent(we){const{_parentage:Ee}=this;this._parentage=Array.isArray(Ee)?(Ee.push(we),Ee):Ee?[Ee,we]:we}_removeParent(we){const{_parentage:Ee}=this;Ee===we?this._parentage=null:Array.isArray(Ee)&&(0,Fe.o)(Ee,we)}remove(we){const{_finalizers:Ee}=this;Ee&&(0,Fe.o)(Ee,we),we instanceof W&&we._removeParent(this)}}W.EMPTY=(()=>{const Qe=new W;return Qe.closed=!0,Qe})();const Ie=W.EMPTY;function te(Qe){return Qe instanceof W||Qe&&"closed"in Qe&&(0,g.T)(Qe.remove)&&(0,g.T)(Qe.add)&&(0,g.T)(Qe.unsubscribe)}function Ge(Qe){(0,g.T)(Qe)?Qe():Qe.unsubscribe()}},1026:(Dn,At,x)=>{"use strict";x.d(At,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Dn,At,x)=>{"use strict";x.d(At,{z:()=>we});var g=x(1985),c=x(3073),de=x(8455),Fe=x(3669),W=x(6450),Ie=x(9326),te=x(8496),Ge=x(4360),Qe=x(5225);function we(...ze){const Ve=(0,Ie.lI)(ze),it=(0,Ie.ms)(ze),{args:It,keys:at}=(0,c.D)(ze);if(0===It.length)return(0,de.H)([],Ve);const gt=new g.c(function Ee(ze,Ve,it=Fe.D){return It=>{Ue(Ve,()=>{const{length:at}=ze,gt=new Array(at);let xt=at,ft=at;for(let yt=0;yt{const Pe=(0,de.H)(ze[yt],Ve);let Ke=!1;Pe.subscribe((0,Ge._)(It,He=>{gt[yt]=He,Ke||(Ke=!0,ft--),ft||It.next(it(gt.slice()))},()=>{--xt||It.complete()}))},It)},It)}}(It,Ve,at?xt=>(0,te.e)(at,xt):Fe.D));return it?gt.pipe((0,W.I)(it)):gt}function Ue(ze,Ve,it){ze?(0,Qe.N)(it,ze,Ve):Ve()}},983:(Dn,At,x)=>{"use strict";x.d(At,{w:()=>c});const c=new(x(1985).c)(W=>W.complete())},8455:(Dn,At,x)=>{"use strict";x.d(At,{H:()=>Pe});var g=x(8750),c=x(941),de=x(6745),Ie=x(1985),Ge=x(4761),Qe=x(8071),we=x(5225);function Ue(Ke,He){if(!Ke)throw new Error("Iterable cannot be null");return new Ie.c(Je=>{(0,we.N)(Je,He,()=>{const mt=Ke[Symbol.asyncIterator]();(0,we.N)(Je,He,()=>{mt.next().then(Ce=>{Ce.done?Je.complete():Je.next(Ce.value)})},0,!0)})})}var ze=x(5055),Ve=x(9858),it=x(7441),It=x(5397),at=x(7953),gt=x(591),xt=x(5196);function Pe(Ke,He){return He?function yt(Ke,He){if(null!=Ke){if((0,ze.l)(Ke))return function Fe(Ke,He){return(0,g.Tg)(Ke).pipe((0,de._)(He),(0,c.Q)(He))}(Ke,He);if((0,it.X)(Ke))return function te(Ke,He){return new Ie.c(Je=>{let mt=0;return He.schedule(function(){mt===Ke.length?Je.complete():(Je.next(Ke[mt++]),Je.closed||this.schedule())})})}(Ke,He);if((0,Ve.y)(Ke))return function W(Ke,He){return(0,g.Tg)(Ke).pipe((0,de._)(He),(0,c.Q)(He))}(Ke,He);if((0,at.T)(Ke))return Ue(Ke,He);if((0,It.x)(Ke))return function Ee(Ke,He){return new Ie.c(Je=>{let mt;return(0,we.N)(Je,He,()=>{mt=Ke[Ge.l](),(0,we.N)(Je,He,()=>{let Ce,nt;try{({value:Ce,done:nt}=mt.next())}catch(Rt){return void Je.error(Rt)}nt?Je.complete():Je.next(Ce)},0,!0)}),()=>(0,Qe.T)(null==mt?void 0:mt.return)&&mt.return()})}(Ke,He);if((0,xt.U)(Ke))return function ft(Ke,He){return Ue((0,xt.C)(Ke),He)}(Ke,He)}throw(0,gt.L)(Ke)}(Ke,He):(0,g.Tg)(Ke)}},3726:(Dn,At,x)=>{"use strict";x.d(At,{R:()=>we});var g=x(8750),c=x(1985),de=x(1397),Fe=x(7441),W=x(8071),Ie=x(6450);const te=["addListener","removeListener"],Ge=["addEventListener","removeEventListener"],Qe=["on","off"];function we(it,It,at,gt){if((0,W.T)(at)&&(gt=at,at=void 0),gt)return we(it,It,at).pipe((0,Ie.I)(gt));const[xt,ft]=function Ve(it){return(0,W.T)(it.addEventListener)&&(0,W.T)(it.removeEventListener)}(it)?Ge.map(yt=>Pe=>it[yt](It,Pe,at)):function Ue(it){return(0,W.T)(it.addListener)&&(0,W.T)(it.removeListener)}(it)?te.map(Ee(it,It)):function ze(it){return(0,W.T)(it.on)&&(0,W.T)(it.off)}(it)?Qe.map(Ee(it,It)):[];if(!xt&&(0,Fe.X)(it))return(0,de.Z)(yt=>we(yt,It,at))((0,g.Tg)(it));if(!xt)throw new TypeError("Invalid event target");return new c.c(yt=>{const Pe=(...Ke)=>yt.next(1ft(Pe)})}function Ee(it,It){return at=>gt=>it[at](It,gt)}},8750:(Dn,At,x)=>{"use strict";x.d(At,{Tg:()=>ze});var g=x(1635),c=x(7441),de=x(9858),Fe=x(1985),W=x(5055),Ie=x(7953),te=x(591),Ge=x(5397),Qe=x(5196),we=x(8071),Ee=x(5334),Ue=x(3494);function ze(yt){if(yt instanceof Fe.c)return yt;if(null!=yt){if((0,W.l)(yt))return function Ve(yt){return new Fe.c(Pe=>{const Ke=yt[Ue.s]();if((0,we.T)(Ke.subscribe))return Ke.subscribe(Pe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(yt);if((0,c.X)(yt))return function it(yt){return new Fe.c(Pe=>{for(let Ke=0;Ke{yt.then(Ke=>{Pe.closed||(Pe.next(Ke),Pe.complete())},Ke=>Pe.error(Ke)).then(null,Ee.m)})}(yt);if((0,Ie.T)(yt))return gt(yt);if((0,Ge.x)(yt))return function at(yt){return new Fe.c(Pe=>{for(const Ke of yt)if(Pe.next(Ke),Pe.closed)return;Pe.complete()})}(yt);if((0,Qe.U)(yt))return function xt(yt){return gt((0,Qe.C)(yt))}(yt)}throw(0,te.L)(yt)}function gt(yt){return new Fe.c(Pe=>{(function ft(yt,Pe){var Ke,He,Je,mt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(Ke=(0,g.xN)(yt);!(He=yield Ke.next()).done;)if(Pe.next(He.value),Pe.closed)return}catch(Ce){Je={error:Ce}}finally{try{He&&!He.done&&(mt=Ke.return)&&(yield mt.call(Ke))}finally{if(Je)throw Je.error}}Pe.complete()})})(yt,Pe).catch(Ke=>Pe.error(Ke))})}},7673:(Dn,At,x)=>{"use strict";x.d(At,{of:()=>de});var g=x(9326),c=x(8455);function de(...Fe){const W=(0,g.lI)(Fe);return(0,c.H)(Fe,W)}},4360:(Dn,At,x)=>{"use strict";x.d(At,{_:()=>c});var g=x(7707);function c(Fe,W,Ie,te,Ge){return new de(Fe,W,Ie,te,Ge)}class de extends g.vU{constructor(W,Ie,te,Ge,Qe,we){super(W),this.onFinalize=Qe,this.shouldUnsubscribe=we,this._next=Ie?function(Ee){try{Ie(Ee)}catch(Ue){W.error(Ue)}}:super._next,this._error=Ge?function(Ee){try{Ge(Ee)}catch(Ue){W.error(Ue)}finally{this.unsubscribe()}}:super._error,this._complete=te?function(){try{te()}catch(Ee){W.error(Ee)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var W;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ie}=this;super.unsubscribe(),!Ie&&(null===(W=this.onFinalize)||void 0===W||W.call(this))}}}},274:(Dn,At,x)=>{"use strict";x.d(At,{H:()=>de});var g=x(1397),c=x(8071);function de(Fe,W){return(0,c.T)(W)?(0,g.Z)(Fe,W,1):(0,g.Z)(Fe,1)}},5964:(Dn,At,x)=>{"use strict";x.d(At,{p:()=>de});var g=x(9974),c=x(4360);function de(Fe,W){return(0,g.N)((Ie,te)=>{let Ge=0;Ie.subscribe((0,c._)(te,Qe=>Fe.call(W,Qe,Ge++)&&te.next(Qe)))})}},980:(Dn,At,x)=>{"use strict";x.d(At,{j:()=>c});var g=x(9974);function c(de){return(0,g.N)((Fe,W)=>{try{Fe.subscribe(W)}finally{W.add(de)}})}},6354:(Dn,At,x)=>{"use strict";x.d(At,{T:()=>de});var g=x(9974),c=x(4360);function de(Fe,W){return(0,g.N)((Ie,te)=>{let Ge=0;Ie.subscribe((0,c._)(te,Qe=>{te.next(Fe.call(W,Qe,Ge++))}))})}},1397:(Dn,At,x)=>{"use strict";x.d(At,{Z:()=>Ge});var g=x(6354),c=x(8750),de=x(9974),Fe=x(5225),W=x(4360),te=x(8071);function Ge(Qe,we,Ee=1/0){return(0,te.T)(we)?Ge((Ue,ze)=>(0,g.T)((Ve,it)=>we(Ue,Ve,ze,it))((0,c.Tg)(Qe(Ue,ze))),Ee):("number"==typeof we&&(Ee=we),(0,de.N)((Ue,ze)=>function Ie(Qe,we,Ee,Ue,ze,Ve,it,It){const at=[];let gt=0,xt=0,ft=!1;const yt=()=>{ft&&!at.length&&!gt&&we.complete()},Pe=He=>gt{Ve&&we.next(He),gt++;let Je=!1;(0,c.Tg)(Ee(He,xt++)).subscribe((0,W._)(we,mt=>{null==ze||ze(mt),Ve?Pe(mt):we.next(mt)},()=>{Je=!0},void 0,()=>{if(Je)try{for(gt--;at.length&>Ke(mt)):Ke(mt)}yt()}catch(mt){we.error(mt)}}))};return Qe.subscribe((0,W._)(we,Pe,()=>{ft=!0,yt()})),()=>{null==It||It()}}(Ue,ze,Qe,Ee)))}},941:(Dn,At,x)=>{"use strict";x.d(At,{Q:()=>Fe});var g=x(5225),c=x(9974),de=x(4360);function Fe(W,Ie=0){return(0,c.N)((te,Ge)=>{te.subscribe((0,de._)(Ge,Qe=>(0,g.N)(Ge,W,()=>Ge.next(Qe),Ie),()=>(0,g.N)(Ge,W,()=>Ge.complete(),Ie),Qe=>(0,g.N)(Ge,W,()=>Ge.error(Qe),Ie)))})}},6745:(Dn,At,x)=>{"use strict";x.d(At,{_:()=>c});var g=x(9974);function c(de,Fe=0){return(0,g.N)((W,Ie)=>{Ie.add(de.schedule(()=>W.subscribe(Ie),Fe))})}},5558:(Dn,At,x)=>{"use strict";x.d(At,{n:()=>Fe});var g=x(8750),c=x(9974),de=x(4360);function Fe(W,Ie){return(0,c.N)((te,Ge)=>{let Qe=null,we=0,Ee=!1;const Ue=()=>Ee&&!Qe&&Ge.complete();te.subscribe((0,de._)(Ge,ze=>{null==Qe||Qe.unsubscribe();let Ve=0;const it=we++;(0,g.Tg)(W(ze,it)).subscribe(Qe=(0,de._)(Ge,It=>Ge.next(Ie?Ie(ze,It,it,Ve++):It),()=>{Qe=null,Ue()}))},()=>{Ee=!0,Ue()}))})}},6697:(Dn,At,x)=>{"use strict";x.d(At,{s:()=>Fe});var g=x(983),c=x(9974),de=x(4360);function Fe(W){return W<=0?()=>g.w:(0,c.N)((Ie,te)=>{let Ge=0;Ie.subscribe((0,de._)(te,Qe=>{++Ge<=W&&(te.next(Qe),W<=Ge&&te.complete())}))})}},8141:(Dn,At,x)=>{"use strict";x.d(At,{M:()=>W});var g=x(8071),c=x(9974),de=x(4360),Fe=x(3669);function W(Ie,te,Ge){const Qe=(0,g.T)(Ie)||te||Ge?{next:Ie,error:te,complete:Ge}:Ie;return Qe?(0,c.N)((we,Ee)=>{var Ue;null===(Ue=Qe.subscribe)||void 0===Ue||Ue.call(Qe);let ze=!0;we.subscribe((0,de._)(Ee,Ve=>{var it;null===(it=Qe.next)||void 0===it||it.call(Qe,Ve),Ee.next(Ve)},()=>{var Ve;ze=!1,null===(Ve=Qe.complete)||void 0===Ve||Ve.call(Qe),Ee.complete()},Ve=>{var it;ze=!1,null===(it=Qe.error)||void 0===it||it.call(Qe,Ve),Ee.error(Ve)},()=>{var Ve,it;ze&&(null===(Ve=Qe.unsubscribe)||void 0===Ve||Ve.call(Qe)),null===(it=Qe.finalize)||void 0===it||it.call(Qe)}))}):Fe.D}},6780:(Dn,At,x)=>{"use strict";x.d(At,{R:()=>W});var g=x(8359);class c extends g.yU{constructor(te,Ge){super()}schedule(te,Ge=0){return this}}const de={setInterval(Ie,te,...Ge){const{delegate:Qe}=de;return null!=Qe&&Qe.setInterval?Qe.setInterval(Ie,te,...Ge):setInterval(Ie,te,...Ge)},clearInterval(Ie){const{delegate:te}=de;return((null==te?void 0:te.clearInterval)||clearInterval)(Ie)},delegate:void 0};var Fe=x(7908);class W extends c{constructor(te,Ge){super(te,Ge),this.scheduler=te,this.work=Ge,this.pending=!1}schedule(te,Ge=0){var Qe;if(this.closed)return this;this.state=te;const we=this.id,Ee=this.scheduler;return null!=we&&(this.id=this.recycleAsyncId(Ee,we,Ge)),this.pending=!0,this.delay=Ge,this.id=null!==(Qe=this.id)&&void 0!==Qe?Qe:this.requestAsyncId(Ee,this.id,Ge),this}requestAsyncId(te,Ge,Qe=0){return de.setInterval(te.flush.bind(te,this),Qe)}recycleAsyncId(te,Ge,Qe=0){if(null!=Qe&&this.delay===Qe&&!1===this.pending)return Ge;null!=Ge&&de.clearInterval(Ge)}execute(te,Ge){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Qe=this._execute(te,Ge);if(Qe)return Qe;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(te,Ge){let we,Qe=!1;try{this.work(te)}catch(Ee){Qe=!0,we=Ee||new Error("Scheduled action threw falsy error")}if(Qe)return this.unsubscribe(),we}unsubscribe(){if(!this.closed){const{id:te,scheduler:Ge}=this,{actions:Qe}=Ge;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Fe.o)(Qe,this),null!=te&&(this.id=this.recycleAsyncId(Ge,te,null)),this.delay=null,super.unsubscribe()}}}},9687:(Dn,At,x)=>{"use strict";x.d(At,{q:()=>de});var g=x(6129);class c{constructor(W,Ie=c.now){this.schedulerActionCtor=W,this.now=Ie}schedule(W,Ie=0,te){return new this.schedulerActionCtor(this,W).schedule(te,Ie)}}c.now=g.U.now;class de extends c{constructor(W,Ie=c.now){super(W,Ie),this.actions=[],this._active=!1}flush(W){const{actions:Ie}=this;if(this._active)return void Ie.push(W);let te;this._active=!0;do{if(te=W.execute(W.state,W.delay))break}while(W=Ie.shift());if(this._active=!1,te){for(;W=Ie.shift();)W.unsubscribe();throw te}}}},3236:(Dn,At,x)=>{"use strict";x.d(At,{E:()=>de,b:()=>Fe});var g=x(6780);const de=new(x(9687).q)(g.R),Fe=de},6129:(Dn,At,x)=>{"use strict";x.d(At,{U:()=>g});const g={now:()=>(g.delegate||Date).now(),delegate:void 0}},9270:(Dn,At,x)=>{"use strict";x.d(At,{f:()=>g});const g={setTimeout(c,de,...Fe){const{delegate:W}=g;return null!=W&&W.setTimeout?W.setTimeout(c,de,...Fe):setTimeout(c,de,...Fe)},clearTimeout(c){const{delegate:de}=g;return((null==de?void 0:de.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Dn,At,x)=>{"use strict";x.d(At,{l:()=>c});const c=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Dn,At,x)=>{"use strict";x.d(At,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},9326:(Dn,At,x)=>{"use strict";x.d(At,{lI:()=>W,ms:()=>Fe});var g=x(8071),c=x(9470);function de(te){return te[te.length-1]}function Fe(te){return(0,g.T)(de(te))?te.pop():void 0}function W(te){return(0,c.m)(de(te))?te.pop():void 0}},3073:(Dn,At,x)=>{"use strict";x.d(At,{D:()=>W});const{isArray:g}=Array,{getPrototypeOf:c,prototype:de,keys:Fe}=Object;function W(te){if(1===te.length){const Ge=te[0];if(g(Ge))return{args:Ge,keys:null};if(function Ie(te){return te&&"object"==typeof te&&c(te)===de}(Ge)){const Qe=Fe(Ge);return{args:Qe.map(we=>Ge[we]),keys:Qe}}}return{args:te,keys:null}}},7908:(Dn,At,x)=>{"use strict";function g(c,de){if(c){const Fe=c.indexOf(de);0<=Fe&&c.splice(Fe,1)}}x.d(At,{o:()=>g})},1853:(Dn,At,x)=>{"use strict";function g(c){const Fe=c(W=>{Error.call(W),W.stack=(new Error).stack});return Fe.prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe,Fe}x.d(At,{L:()=>g})},8496:(Dn,At,x)=>{"use strict";function g(c,de){return c.reduce((Fe,W,Ie)=>(Fe[W]=de[Ie],Fe),{})}x.d(At,{e:()=>g})},9786:(Dn,At,x)=>{"use strict";x.d(At,{Y:()=>de,l:()=>Fe});var g=x(1026);let c=null;function de(W){if(g.$.useDeprecatedSynchronousErrorHandling){const Ie=!c;if(Ie&&(c={errorThrown:!1,error:null}),W(),Ie){const{errorThrown:te,error:Ge}=c;if(c=null,te)throw Ge}}else W()}function Fe(W){g.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=W)}},5225:(Dn,At,x)=>{"use strict";function g(c,de,Fe,W=0,Ie=!1){const te=de.schedule(function(){Fe(),Ie?c.add(this.schedule(null,W)):this.unsubscribe()},W);if(c.add(te),!Ie)return te}x.d(At,{N:()=>g})},3669:(Dn,At,x)=>{"use strict";function g(c){return c}x.d(At,{D:()=>g})},7441:(Dn,At,x)=>{"use strict";x.d(At,{X:()=>g});const g=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Dn,At,x)=>{"use strict";x.d(At,{T:()=>c});var g=x(8071);function c(de){return Symbol.asyncIterator&&(0,g.T)(null==de?void 0:de[Symbol.asyncIterator])}},8071:(Dn,At,x)=>{"use strict";function g(c){return"function"==typeof c}x.d(At,{T:()=>g})},5055:(Dn,At,x)=>{"use strict";x.d(At,{l:()=>de});var g=x(3494),c=x(8071);function de(Fe){return(0,c.T)(Fe[g.s])}},5397:(Dn,At,x)=>{"use strict";x.d(At,{x:()=>de});var g=x(4761),c=x(8071);function de(Fe){return(0,c.T)(null==Fe?void 0:Fe[g.l])}},9858:(Dn,At,x)=>{"use strict";x.d(At,{y:()=>c});var g=x(8071);function c(de){return(0,g.T)(null==de?void 0:de.then)}},5196:(Dn,At,x)=>{"use strict";x.d(At,{C:()=>de,U:()=>Fe});var g=x(1635),c=x(8071);function de(W){return(0,g.AQ)(this,arguments,function*(){const te=W.getReader();try{for(;;){const{value:Ge,done:Qe}=yield(0,g.N3)(te.read());if(Qe)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Ge)}}finally{te.releaseLock()}})}function Fe(W){return(0,c.T)(null==W?void 0:W.getReader)}},9470:(Dn,At,x)=>{"use strict";x.d(At,{m:()=>c});var g=x(8071);function c(de){return de&&(0,g.T)(de.schedule)}},9974:(Dn,At,x)=>{"use strict";x.d(At,{N:()=>de,S:()=>c});var g=x(8071);function c(Fe){return(0,g.T)(null==Fe?void 0:Fe.lift)}function de(Fe){return W=>{if(c(W))return W.lift(function(Ie){try{return Fe(Ie,this)}catch(te){this.error(te)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Dn,At,x)=>{"use strict";x.d(At,{I:()=>Fe});var g=x(6354);const{isArray:c}=Array;function Fe(W){return(0,g.T)(Ie=>function de(W,Ie){return c(Ie)?W(...Ie):W(Ie)}(W,Ie))}},5343:(Dn,At,x)=>{"use strict";function g(){}x.d(At,{l:()=>g})},1203:(Dn,At,x)=>{"use strict";x.d(At,{F:()=>c,m:()=>de});var g=x(3669);function c(...Fe){return de(Fe)}function de(Fe){return 0===Fe.length?g.D:1===Fe.length?Fe[0]:function(Ie){return Fe.reduce((te,Ge)=>Ge(te),Ie)}}},5334:(Dn,At,x)=>{"use strict";x.d(At,{m:()=>de});var g=x(1026),c=x(9270);function de(Fe){c.f.setTimeout(()=>{const{onUnhandledError:W}=g.$;if(!W)throw Fe;W(Fe)})}},591:(Dn,At,x)=>{"use strict";function g(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(At,{L:()=>g})},8996:(Dn,At,x)=>{var g={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(de){if(!x.o(g,de))return Promise.resolve().then(()=>{var Ie=new Error("Cannot find module '"+de+"'");throw Ie.code="MODULE_NOT_FOUND",Ie});var Fe=g[de],W=Fe[0];return Promise.all(Fe.slice(1).map(x.e)).then(()=>x(W))}c.keys=()=>Object.keys(g),c.id=8996,Dn.exports=c},177:(Dn,At,x)=>{"use strict";x.d(At,{AJ:()=>Bt,MD:()=>ut,N0:()=>Ai,QT:()=>de,Sm:()=>It,Sq:()=>Gt,T3:()=>Ln,VF:()=>W,Vy:()=>xn,Xr:()=>Tr,ZD:()=>Fe,_b:()=>R,aZ:()=>gt,bT:()=>$n,fw:()=>at,hb:()=>Ve,hj:()=>Qe,qQ:()=>te});var g=x(4438);let c=null;function de(){return c}function Fe(T){var B;null!==(B=c)&&void 0!==B||(c=T)}class W{}const te=new g.nKC("");let Ge=(()=>{var T;class B{historyGo(F){throw new Error("")}}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275prov=g.jDH({token:T,factory:()=>(0,g.WQX)(we),providedIn:"platform"}),B})();const Qe=new g.nKC("");let we=(()=>{var T;class B extends Ge{constructor(){super(),this._doc=(0,g.WQX)(te),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return de().getBaseHref(this._doc)}onPopState(F){const pe=de().getGlobalEventTarget(this._doc,"window");return pe.addEventListener("popstate",F,!1),()=>pe.removeEventListener("popstate",F)}onHashChange(F){const pe=de().getGlobalEventTarget(this._doc,"window");return pe.addEventListener("hashchange",F,!1),()=>pe.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,pe,Le){this._history.pushState(F,pe,Le)}replaceState(F,pe,Le){this._history.replaceState(F,pe,Le)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275prov=g.jDH({token:T,factory:()=>new T,providedIn:"platform"}),B})();function Ee(T,B){if(0==T.length)return B;if(0==B.length)return T;let Me=0;return T.endsWith("/")&&Me++,B.startsWith("/")&&Me++,2==Me?T+B.substring(1):1==Me?T+B:T+"/"+B}function Ue(T){const B=T.match(/#|\?|$/),Me=B&&B.index||T.length;return T.slice(0,Me-("/"===T[Me-1]?1:0))+T.slice(Me)}function ze(T){return T&&"?"!==T[0]?"?"+T:T}let Ve=(()=>{var T;class B{historyGo(F){throw new Error("")}}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275prov=g.jDH({token:T,factory:()=>(0,g.WQX)(It),providedIn:"root"}),B})();const it=new g.nKC("");let It=(()=>{var T;class B extends Ve{constructor(F,pe){var Le,$t,mn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Le=null!==($t=null!=pe?pe:this._platformLocation.getBaseHrefFromDOM())&&void 0!==$t?$t:null===(mn=(0,g.WQX)(te).location)||void 0===mn?void 0:mn.origin)&&void 0!==Le?Le:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return Ee(this._baseHref,F)}path(F=!1){const pe=this._platformLocation.pathname+ze(this._platformLocation.search),Le=this._platformLocation.hash;return Le&&F?`${pe}${Le}`:pe}pushState(F,pe,Le,$t){const mn=this.prepareExternalUrl(Le+ze($t));this._platformLocation.pushState(F,pe,mn)}replaceState(F,pe,Le,$t){const mn=this.prepareExternalUrl(Le+ze($t));this._platformLocation.replaceState(F,pe,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var pe,Le;null===(pe=(Le=this._platformLocation).historyGo)||void 0===pe||pe.call(Le,F)}}return(T=B).\u0275fac=function(F){return new(F||T)(g.KVO(Ge),g.KVO(it,8))},T.\u0275prov=g.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),B})(),at=(()=>{var T;class B extends Ve{constructor(F,pe){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=pe&&(this._baseHref=pe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var pe;const Le=null!==(pe=this._platformLocation.hash)&&void 0!==pe?pe:"#";return Le.length>0?Le.substring(1):Le}prepareExternalUrl(F){const pe=Ee(this._baseHref,F);return pe.length>0?"#"+pe:pe}pushState(F,pe,Le,$t){let mn=this.prepareExternalUrl(Le+ze($t));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.pushState(F,pe,mn)}replaceState(F,pe,Le,$t){let mn=this.prepareExternalUrl(Le+ze($t));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.replaceState(F,pe,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var pe,Le;null===(pe=(Le=this._platformLocation).historyGo)||void 0===pe||pe.call(Le,F)}}return(T=B).\u0275fac=function(F){return new(F||T)(g.KVO(Ge),g.KVO(it,8))},T.\u0275prov=g.jDH({token:T,factory:T.\u0275fac}),B})(),gt=(()=>{var T;class B{constructor(F){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const pe=this._locationStrategy.getBaseHref();this._basePath=function Pe(T){if(new RegExp("^(https?:)?//").test(T)){const[,Me]=T.split(/\/\/[^\/]+/);return Me}return T}(Ue(yt(pe))),this._locationStrategy.onPopState(Le=>{this._subject.emit({url:this.path(!0),pop:!0,state:Le.state,type:Le.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,pe=""){return this.path()==this.normalize(F+ze(pe))}normalize(F){return B.stripTrailingSlash(function ft(T,B){if(!T||!B.startsWith(T))return B;const Me=B.substring(T.length);return""===Me||["/",";","?","#"].includes(Me[0])?Me:B}(this._basePath,yt(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,pe="",Le=null){this._locationStrategy.pushState(Le,"",F,pe),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+ze(pe)),Le)}replaceState(F,pe="",Le=null){this._locationStrategy.replaceState(Le,"",F,pe),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+ze(pe)),Le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var pe,Le;null===(pe=(Le=this._locationStrategy).historyGo)||void 0===pe||pe.call(Le,F)}onUrlChange(F){var pe;return this._urlChangeListeners.push(F),null!==(pe=this._urlChangeSubscription)&&void 0!==pe||(this._urlChangeSubscription=this.subscribe(Le=>{this._notifyUrlChangeListeners(Le.url,Le.state)})),()=>{const Le=this._urlChangeListeners.indexOf(F);var $t;this._urlChangeListeners.splice(Le,1),0===this._urlChangeListeners.length&&(null===($t=this._urlChangeSubscription)||void 0===$t||$t.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",pe){this._urlChangeListeners.forEach(Le=>Le(F,pe))}subscribe(F,pe,Le){return this._subject.subscribe({next:F,error:pe,complete:Le})}}return(T=B).normalizeQueryParams=ze,T.joinWithSlash=Ee,T.stripTrailingSlash=Ue,T.\u0275fac=function(F){return new(F||T)(g.KVO(Ve))},T.\u0275prov=g.jDH({token:T,factory:()=>function xt(){return new gt((0,g.KVO)(Ve))}(),providedIn:"root"}),B})();function yt(T){return T.replace(/\/index.html$/,"")}function R(T,B){B=encodeURIComponent(B);for(const Me of T.split(";")){const F=Me.indexOf("="),[pe,Le]=-1==F?[Me,""]:[Me.slice(0,F),Me.slice(F+1)];if(pe.trim()===B)return decodeURIComponent(Le)}return null}class ct{constructor(B,Me,F,pe){this.$implicit=B,this.ngForOf=Me,this.index=F,this.count=pe}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 Gt=(()=>{var T;class B{set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,pe,Le){this._viewContainer=F,this._template=pe,this._differs=Le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const pe=this._viewContainer;F.forEachOperation((Le,$t,mn)=>{if(null==Le.previousIndex)pe.createEmbeddedView(this._template,new ct(Le.item,this._ngForOf,-1,-1),null===mn?void 0:mn);else if(null==mn)pe.remove(null===$t?void 0:$t);else if(null!==$t){const Kn=pe.get($t);pe.move(Kn,mn),qt(Kn,Le)}});for(let Le=0,$t=pe.length;Le<$t;Le++){const Kn=pe.get(Le).context;Kn.index=Le,Kn.count=$t,Kn.ngForOf=this._ngForOf}F.forEachIdentityChange(Le=>{qt(pe.get(Le.currentIndex),Le)})}static ngTemplateContextGuard(F,pe){return!0}}return(T=B).\u0275fac=function(F){return new(F||T)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))},T.\u0275dir=g.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),B})();function qt(T,B){T.context.$implicit=B.item}let $n=(()=>{var T;class B{constructor(F,pe){this._viewContainer=F,this._context=new Hr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=pe}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){gr("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){gr("ngIfElse",F),this._elseTemplateRef=F,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(F,pe){return!0}}return(T=B).\u0275fac=function(F){return new(F||T)(g.rXU(g.c1b),g.rXU(g.C4Q))},T.\u0275dir=g.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),B})();class Hr{constructor(){this.$implicit=null,this.ngIf=null}}function gr(T,B){if(B&&!B.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,g.Tbb)(B)}'.`)}let Ln=(()=>{var T;class B{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var pe;const Le=this._viewContainerRef;if(this._viewRef&&Le.remove(Le.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const $t=this._createContextForwardProxy();this._viewRef=Le.createEmbeddedView(this.ngTemplateOutlet,$t,{injector:null!==(pe=this.ngTemplateOutletInjector)&&void 0!==pe?pe:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,pe,Le)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,pe,Le),get:(F,pe,Le)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,pe,Le)}})}}return(T=B).\u0275fac=function(F){return new(F||T)(g.rXU(g.c1b))},T.\u0275dir=g.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),B})(),ut=(()=>{var T;class B{}return(T=B).\u0275fac=function(F){return new(F||T)},T.\u0275mod=g.$C({type:T}),T.\u0275inj=g.G2t({}),B})();const Bt="browser",Qt="server";function xn(T){return T===Qt}let Tr=(()=>{var T;class B{}return(T=B).\u0275prov=(0,g.jDH)({token:T,providedIn:"root",factory:()=>function Sn(T){return T===Bt}((0,g.WQX)(g.Agw))?new dr((0,g.WQX)(te),window):new bi}),B})();class dr{constructor(B,Me){this.document=B,this.window=Me,this.offset=()=>[0,0]}setOffset(B){this.offset=Array.isArray(B)?()=>B:B}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(B){this.window.scrollTo(B[0],B[1])}scrollToAnchor(B){const Me=function yi(T,B){const Me=T.getElementById(B)||T.getElementsByName(B)[0];if(Me)return Me;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const F=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let pe=F.currentNode;for(;pe;){const Le=pe.shadowRoot;if(Le){const $t=Le.getElementById(B)||Le.querySelector(`[name="${B}"]`);if($t)return $t}pe=F.nextNode()}}return null}(this.document,B);Me&&(this.scrollToElement(Me),Me.focus())}setHistoryScrollRestoration(B){this.window.history.scrollRestoration=B}scrollToElement(B){const Me=B.getBoundingClientRect(),F=Me.left+this.window.pageXOffset,pe=Me.top+this.window.pageYOffset,Le=this.offset();this.window.scrollTo(F-Le[0],pe-Le[1])}}class bi{setOffset(B){}getScrollPosition(){return[0,0]}scrollToPosition(B){}scrollToAnchor(B){}setHistoryScrollRestoration(B){}}class Ai{}},1626:(Dn,At,x)=>{"use strict";x.d(At,{Qq:()=>q,q1:()=>cn}),x(467);var c=x(4438),de=x(7673),Fe=x(1985),W=x(8455),Ie=x(274),te=x(5964),Ge=x(6354),Qe=x(980),we=x(5558),Ee=x(177);class Ue{}class ze{}class Ve{constructor(R){this.normalizedNames=new Map,this.lazyUpdate=null,R?"string"==typeof R?this.lazyInit=()=>{this.headers=new Map,R.split("\n").forEach(U=>{const ee=U.indexOf(":");if(ee>0){const $=U.slice(0,ee),ae=$.toLowerCase(),ke=U.slice(ee+1).trim();this.maybeSetNormalizedName($,ae),this.headers.has(ae)?this.headers.get(ae).push(ke):this.headers.set(ae,[ke])}})}:typeof Headers<"u"&&R instanceof Headers?(this.headers=new Map,R.forEach((U,ee)=>{this.setHeaderEntries(ee,U)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(R).forEach(([U,ee])=>{this.setHeaderEntries(U,ee)})}:this.headers=new Map}has(R){return this.init(),this.headers.has(R.toLowerCase())}get(R){this.init();const U=this.headers.get(R.toLowerCase());return U&&U.length>0?U[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(R){return this.init(),this.headers.get(R.toLowerCase())||null}append(R,U){return this.clone({name:R,value:U,op:"a"})}set(R,U){return this.clone({name:R,value:U,op:"s"})}delete(R,U){return this.clone({name:R,value:U,op:"d"})}maybeSetNormalizedName(R,U){this.normalizedNames.has(U)||this.normalizedNames.set(U,R)}init(){this.lazyInit&&(this.lazyInit instanceof Ve?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(R=>this.applyUpdate(R)),this.lazyUpdate=null))}copyFrom(R){R.init(),Array.from(R.headers.keys()).forEach(U=>{this.headers.set(U,R.headers.get(U)),this.normalizedNames.set(U,R.normalizedNames.get(U))})}clone(R){const U=new Ve;return U.lazyInit=this.lazyInit&&this.lazyInit instanceof Ve?this.lazyInit:this,U.lazyUpdate=(this.lazyUpdate||[]).concat([R]),U}applyUpdate(R){const U=R.name.toLowerCase();switch(R.op){case"a":case"s":let ee=R.value;if("string"==typeof ee&&(ee=[ee]),0===ee.length)return;this.maybeSetNormalizedName(R.name,U);const $=("a"===R.op?this.headers.get(U):void 0)||[];$.push(...ee),this.headers.set(U,$);break;case"d":const ae=R.value;if(ae){let ke=this.headers.get(U);if(!ke)return;ke=ke.filter(ct=>-1===ae.indexOf(ct)),0===ke.length?(this.headers.delete(U),this.normalizedNames.delete(U)):this.headers.set(U,ke)}else this.headers.delete(U),this.normalizedNames.delete(U)}}setHeaderEntries(R,U){const ee=(Array.isArray(U)?U:[U]).map(ae=>ae.toString()),$=R.toLowerCase();this.headers.set($,ee),this.maybeSetNormalizedName(R,$)}forEach(R){this.init(),Array.from(this.normalizedNames.keys()).forEach(U=>R(this.normalizedNames.get(U),this.headers.get(U)))}}class It{encodeKey(R){return ft(R)}encodeValue(R){return ft(R)}decodeKey(R){return decodeURIComponent(R)}decodeValue(R){return decodeURIComponent(R)}}const gt=/%(\d[a-f0-9])/gi,xt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ft(he){return encodeURIComponent(he).replace(gt,(R,U)=>{var ee;return null!==(ee=xt[U])&&void 0!==ee?ee:R})}function yt(he){return`${he}`}class Pe{constructor(R={}){if(this.updates=null,this.cloneFrom=null,this.encoder=R.encoder||new It,R.fromString){if(R.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function at(he,R){const U=new Map;return he.length>0&&he.replace(/^\?/,"").split("&").forEach($=>{const ae=$.indexOf("="),[ke,ct]=-1==ae?[R.decodeKey($),""]:[R.decodeKey($.slice(0,ae)),R.decodeValue($.slice(ae+1))],Gt=U.get(ke)||[];Gt.push(ct),U.set(ke,Gt)}),U}(R.fromString,this.encoder)}else R.fromObject?(this.map=new Map,Object.keys(R.fromObject).forEach(U=>{const ee=R.fromObject[U],$=Array.isArray(ee)?ee.map(yt):[yt(ee)];this.map.set(U,$)})):this.map=null}has(R){return this.init(),this.map.has(R)}get(R){this.init();const U=this.map.get(R);return U?U[0]:null}getAll(R){return this.init(),this.map.get(R)||null}keys(){return this.init(),Array.from(this.map.keys())}append(R,U){return this.clone({param:R,value:U,op:"a"})}appendAll(R){const U=[];return Object.keys(R).forEach(ee=>{const $=R[ee];Array.isArray($)?$.forEach(ae=>{U.push({param:ee,value:ae,op:"a"})}):U.push({param:ee,value:$,op:"a"})}),this.clone(U)}set(R,U){return this.clone({param:R,value:U,op:"s"})}delete(R,U){return this.clone({param:R,value:U,op:"d"})}toString(){return this.init(),this.keys().map(R=>{const U=this.encoder.encodeKey(R);return this.map.get(R).map(ee=>U+"="+this.encoder.encodeValue(ee)).join("&")}).filter(R=>""!==R).join("&")}clone(R){const U=new Pe({encoder:this.encoder});return U.cloneFrom=this.cloneFrom||this,U.updates=(this.updates||[]).concat(R),U}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(R=>this.map.set(R,this.cloneFrom.map.get(R))),this.updates.forEach(R=>{switch(R.op){case"a":case"s":const U=("a"===R.op?this.map.get(R.param):void 0)||[];U.push(yt(R.value)),this.map.set(R.param,U);break;case"d":if(void 0===R.value){this.map.delete(R.param);break}{let ee=this.map.get(R.param)||[];const $=ee.indexOf(yt(R.value));-1!==$&&ee.splice($,1),ee.length>0?this.map.set(R.param,ee):this.map.delete(R.param)}}}),this.cloneFrom=this.updates=null)}}class He{constructor(){this.map=new Map}set(R,U){return this.map.set(R,U),this}get(R){return this.map.has(R)||this.map.set(R,R.defaultValue()),this.map.get(R)}delete(R){return this.map.delete(R),this}has(R){return this.map.has(R)}keys(){return this.map.keys()}}function mt(he){return typeof ArrayBuffer<"u"&&he instanceof ArrayBuffer}function Ce(he){return typeof Blob<"u"&&he instanceof Blob}function nt(he){return typeof FormData<"u"&&he instanceof FormData}class zt{constructor(R,U,ee,$){var ae,ke;let ct;if(this.url=U,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=R.toUpperCase(),function Je(he){switch(he){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||$?(this.body=void 0!==ee?ee:null,ct=$):ct=ee,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params),this.transferCache=ct.transferCache),null!==(ae=this.headers)&&void 0!==ae||(this.headers=new Ve),null!==(ke=this.context)&&void 0!==ke||(this.context=new He),this.params){const Gt=this.params.toString();if(0===Gt.length)this.urlWithParams=U;else{const qt=U.indexOf("?");this.urlWithParams=U+(-1===qt?"?":qtun.set(sr,R.setHeaders[sr]),gr)),R.setParams&&($r=Object.keys(R.setParams).reduce((un,sr)=>un.set(sr,R.setParams[sr]),$r)),new zt(ke,ct,Wn,{params:$r,headers:gr,context:Ir,reportProgress:Hr,responseType:Gt,withCredentials:$n,transferCache:qt})}}var Et=function(he){return he[he.Sent=0]="Sent",he[he.UploadProgress=1]="UploadProgress",he[he.ResponseHeader=2]="ResponseHeader",he[he.DownloadProgress=3]="DownloadProgress",he[he.Response=4]="Response",he[he.User=5]="User",he}(Et||{});class Be{constructor(R,U=z.Ok,ee="OK"){this.headers=R.headers||new Ve,this.status=void 0!==R.status?R.status:U,this.statusText=R.statusText||ee,this.url=R.url||null,this.ok=this.status>=200&&this.status<300}}class tn extends Be{constructor(R={}){super(R),this.type=Et.ResponseHeader}clone(R={}){return new tn({headers:R.headers||this.headers,status:void 0!==R.status?R.status:this.status,statusText:R.statusText||this.statusText,url:R.url||this.url||void 0})}}class Ze extends Be{constructor(R={}){super(R),this.type=Et.Response,this.body=void 0!==R.body?R.body:null}clone(R={}){return new Ze({body:void 0!==R.body?R.body:this.body,headers:R.headers||this.headers,status:void 0!==R.status?R.status:this.status,statusText:R.statusText||this.statusText,url:R.url||this.url||void 0})}}class De extends Be{constructor(R){super(R,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${R.url||"(unknown url)"}`:`Http failure response for ${R.url||"(unknown url)"}: ${R.status} ${R.statusText}`,this.error=R.error||null}}var z=function(he){return he[he.Continue=100]="Continue",he[he.SwitchingProtocols=101]="SwitchingProtocols",he[he.Processing=102]="Processing",he[he.EarlyHints=103]="EarlyHints",he[he.Ok=200]="Ok",he[he.Created=201]="Created",he[he.Accepted=202]="Accepted",he[he.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",he[he.NoContent=204]="NoContent",he[he.ResetContent=205]="ResetContent",he[he.PartialContent=206]="PartialContent",he[he.MultiStatus=207]="MultiStatus",he[he.AlreadyReported=208]="AlreadyReported",he[he.ImUsed=226]="ImUsed",he[he.MultipleChoices=300]="MultipleChoices",he[he.MovedPermanently=301]="MovedPermanently",he[he.Found=302]="Found",he[he.SeeOther=303]="SeeOther",he[he.NotModified=304]="NotModified",he[he.UseProxy=305]="UseProxy",he[he.Unused=306]="Unused",he[he.TemporaryRedirect=307]="TemporaryRedirect",he[he.PermanentRedirect=308]="PermanentRedirect",he[he.BadRequest=400]="BadRequest",he[he.Unauthorized=401]="Unauthorized",he[he.PaymentRequired=402]="PaymentRequired",he[he.Forbidden=403]="Forbidden",he[he.NotFound=404]="NotFound",he[he.MethodNotAllowed=405]="MethodNotAllowed",he[he.NotAcceptable=406]="NotAcceptable",he[he.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",he[he.RequestTimeout=408]="RequestTimeout",he[he.Conflict=409]="Conflict",he[he.Gone=410]="Gone",he[he.LengthRequired=411]="LengthRequired",he[he.PreconditionFailed=412]="PreconditionFailed",he[he.PayloadTooLarge=413]="PayloadTooLarge",he[he.UriTooLong=414]="UriTooLong",he[he.UnsupportedMediaType=415]="UnsupportedMediaType",he[he.RangeNotSatisfiable=416]="RangeNotSatisfiable",he[he.ExpectationFailed=417]="ExpectationFailed",he[he.ImATeapot=418]="ImATeapot",he[he.MisdirectedRequest=421]="MisdirectedRequest",he[he.UnprocessableEntity=422]="UnprocessableEntity",he[he.Locked=423]="Locked",he[he.FailedDependency=424]="FailedDependency",he[he.TooEarly=425]="TooEarly",he[he.UpgradeRequired=426]="UpgradeRequired",he[he.PreconditionRequired=428]="PreconditionRequired",he[he.TooManyRequests=429]="TooManyRequests",he[he.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",he[he.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",he[he.InternalServerError=500]="InternalServerError",he[he.NotImplemented=501]="NotImplemented",he[he.BadGateway=502]="BadGateway",he[he.ServiceUnavailable=503]="ServiceUnavailable",he[he.GatewayTimeout=504]="GatewayTimeout",he[he.HttpVersionNotSupported=505]="HttpVersionNotSupported",he[he.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",he[he.InsufficientStorage=507]="InsufficientStorage",he[he.LoopDetected=508]="LoopDetected",he[he.NotExtended=510]="NotExtended",he[he.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",he}(z||{});function K(he,R){return{body:R,headers:he.headers,context:he.context,observe:he.observe,params:he.params,reportProgress:he.reportProgress,responseType:he.responseType,withCredentials:he.withCredentials,transferCache:he.transferCache}}let q=(()=>{var he;class R{constructor(ee){this.handler=ee}request(ee,$,ae={}){let ke;if(ee instanceof zt)ke=ee;else{let qt,Wn;qt=ae.headers instanceof Ve?ae.headers:new Ve(ae.headers),ae.params&&(Wn=ae.params instanceof Pe?ae.params:new Pe({fromObject:ae.params})),ke=new zt(ee,$,void 0!==ae.body?ae.body:null,{headers:qt,context:ae.context,params:Wn,reportProgress:ae.reportProgress,responseType:ae.responseType||"json",withCredentials:ae.withCredentials,transferCache:ae.transferCache})}const ct=(0,de.of)(ke).pipe((0,Ie.H)(qt=>this.handler.handle(qt)));if(ee instanceof zt||"events"===ae.observe)return ct;const Gt=ct.pipe((0,te.p)(qt=>qt instanceof Ze));switch(ae.observe||"body"){case"body":switch(ke.responseType){case"arraybuffer":return Gt.pipe((0,Ge.T)(qt=>{if(null!==qt.body&&!(qt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qt.body}));case"blob":return Gt.pipe((0,Ge.T)(qt=>{if(null!==qt.body&&!(qt.body instanceof Blob))throw new Error("Response is not a Blob.");return qt.body}));case"text":return Gt.pipe((0,Ge.T)(qt=>{if(null!==qt.body&&"string"!=typeof qt.body)throw new Error("Response is not a string.");return qt.body}));default:return Gt.pipe((0,Ge.T)(qt=>qt.body))}case"response":return Gt;default:throw new Error(`Unreachable: unhandled observe type ${ae.observe}}`)}}delete(ee,$={}){return this.request("DELETE",ee,$)}get(ee,$={}){return this.request("GET",ee,$)}head(ee,$={}){return this.request("HEAD",ee,$)}jsonp(ee,$){return this.request("JSONP",ee,{params:(new Pe).append($,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ee,$={}){return this.request("OPTIONS",ee,$)}patch(ee,$,ae={}){return this.request("PATCH",ee,K(ae,$))}post(ee,$,ae={}){return this.request("POST",ee,K(ae,$))}put(ee,$,ae={}){return this.request("PUT",ee,K(ae,$))}}return(he=R).\u0275fac=function(ee){return new(ee||he)(c.KVO(Ue))},he.\u0275prov=c.jDH({token:he,factory:he.\u0275fac}),R})();function Mn(he,R){return R(he)}function Vn(he,R){return(U,ee)=>R.intercept(U,{handle:$=>he($,ee)})}const Zn=new c.nKC(""),Xn=new c.nKC(""),wn=new c.nKC(""),or=new c.nKC("");function rr(){let he=null;return(R,U)=>{var ee;null===he&&(he=(null!==(ee=(0,c.WQX)(Zn,{optional:!0}))&&void 0!==ee?ee:[]).reduceRight(Vn,Mn));const $=(0,c.WQX)(c.TgB),ae=$.add();return he(R,U).pipe((0,Qe.j)(()=>$.remove(ae)))}}let Ft=(()=>{var he;class R extends Ue{constructor(ee,$){super(),this.backend=ee,this.injector=$,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const ae=(0,c.WQX)(or,{optional:!0});this.backend=null!=ae?ae:ee}handle(ee){if(null===this.chain){const ae=Array.from(new Set([...this.injector.get(Xn),...this.injector.get(wn,[])]));this.chain=ae.reduceRight((ke,ct)=>function qn(he,R,U){return(ee,$)=>(0,c.N4e)(U,()=>R(ee,ae=>he(ae,$)))}(ke,ct,this.injector),Mn)}const $=this.pendingTasks.add();return this.chain(ee,ae=>this.backend.handle(ae)).pipe((0,Qe.j)(()=>this.pendingTasks.remove($)))}}return(he=R).\u0275fac=function(ee){return new(ee||he)(c.KVO(ze),c.KVO(c.uvJ))},he.\u0275prov=c.jDH({token:he,factory:he.\u0275fac}),R})();const Cr=/^\)\]\}',?\n/;let ii=(()=>{var he;class R{constructor(ee){this.xhrFactory=ee}handle(ee){if("JSONP"===ee.method)throw new c.wOt(-2800,!1);const $=this.xhrFactory;return($.\u0275loadImpl?(0,W.H)($.\u0275loadImpl()):(0,de.of)(null)).pipe((0,we.n)(()=>new Fe.c(ke=>{const ct=$.build();if(ct.open(ee.method,ee.urlWithParams),ee.withCredentials&&(ct.withCredentials=!0),ee.headers.forEach((un,sr)=>ct.setRequestHeader(un,sr.join(","))),ee.headers.has("Accept")||ct.setRequestHeader("Accept","application/json, text/plain, */*"),!ee.headers.has("Content-Type")){const un=ee.detectContentTypeHeader();null!==un&&ct.setRequestHeader("Content-Type",un)}if(ee.responseType){const un=ee.responseType.toLowerCase();ct.responseType="json"!==un?un:"text"}const Gt=ee.serializeBody();let qt=null;const Wn=()=>{if(null!==qt)return qt;const un=ct.statusText||"OK",sr=new Ve(ct.getAllResponseHeaders()),Wr=function jn(he){return"responseURL"in he&&he.responseURL?he.responseURL:/^X-Request-URL:/m.test(he.getAllResponseHeaders())?he.getResponseHeader("X-Request-URL"):null}(ct)||ee.url;return qt=new tn({headers:sr,status:ct.status,statusText:un,url:Wr}),qt},$n=()=>{let{headers:un,status:sr,statusText:Wr,url:Fr}=Wn(),Er=null;sr!==z.NoContent&&(Er=typeof ct.response>"u"?ct.responseText:ct.response),0===sr&&(sr=Er?z.Ok:0);let pr=sr>=200&&sr<300;if("json"===ee.responseType&&"string"==typeof Er){const ei=Er;Er=Er.replace(Cr,"");try{Er=""!==Er?JSON.parse(Er):null}catch(kn){Er=ei,pr&&(pr=!1,Er={error:kn,text:Er})}}pr?(ke.next(new Ze({body:Er,headers:un,status:sr,statusText:Wr,url:Fr||void 0})),ke.complete()):ke.error(new De({error:Er,headers:un,status:sr,statusText:Wr,url:Fr||void 0}))},Hr=un=>{const{url:sr}=Wn(),Wr=new De({error:un,status:ct.status||0,statusText:ct.statusText||"Unknown Error",url:sr||void 0});ke.error(Wr)};let gr=!1;const $r=un=>{gr||(ke.next(Wn()),gr=!0);let sr={type:Et.DownloadProgress,loaded:un.loaded};un.lengthComputable&&(sr.total=un.total),"text"===ee.responseType&&ct.responseText&&(sr.partialText=ct.responseText),ke.next(sr)},Ir=un=>{let sr={type:Et.UploadProgress,loaded:un.loaded};un.lengthComputable&&(sr.total=un.total),ke.next(sr)};return ct.addEventListener("load",$n),ct.addEventListener("error",Hr),ct.addEventListener("timeout",Hr),ct.addEventListener("abort",Hr),ee.reportProgress&&(ct.addEventListener("progress",$r),null!==Gt&&ct.upload&&ct.upload.addEventListener("progress",Ir)),ct.send(Gt),ke.next({type:Et.Sent}),()=>{ct.removeEventListener("error",Hr),ct.removeEventListener("abort",Hr),ct.removeEventListener("load",$n),ct.removeEventListener("timeout",Hr),ee.reportProgress&&(ct.removeEventListener("progress",$r),null!==Gt&&ct.upload&&ct.upload.removeEventListener("progress",Ir)),ct.readyState!==ct.DONE&&ct.abort()}})))}}return(he=R).\u0275fac=function(ee){return new(ee||he)(c.KVO(Ee.N0))},he.\u0275prov=c.jDH({token:he,factory:he.\u0275fac}),R})();const er=new c.nKC(""),Mr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_r=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ii{}let Zr=(()=>{var he;class R{constructor(ee,$,ae){this.doc=ee,this.platform=$,this.cookieName=ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ee=this.doc.cookie||"";return ee!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ee._b)(ee,this.cookieName),this.lastCookieString=ee),this.lastToken}}return(he=R).\u0275fac=function(ee){return new(ee||he)(c.KVO(Ee.qQ),c.KVO(c.Agw),c.KVO(Mr))},he.\u0275prov=c.jDH({token:he,factory:he.\u0275fac}),R})();function zr(he,R){const U=he.url.toLowerCase();if(!(0,c.WQX)(er)||"GET"===he.method||"HEAD"===he.method||U.startsWith("http://")||U.startsWith("https://"))return R(he);const ee=(0,c.WQX)(Ii).getToken(),$=(0,c.WQX)(_r);return null!=ee&&!he.headers.has($)&&(he=he.clone({headers:he.headers.set($,ee)})),R(he)}var We=function(he){return he[he.Interceptors=0]="Interceptors",he[he.LegacyInterceptors=1]="LegacyInterceptors",he[he.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",he[he.NoXsrfProtection=3]="NoXsrfProtection",he[he.JsonpSupport=4]="JsonpSupport",he[he.RequestsMadeViaParent=5]="RequestsMadeViaParent",he[he.Fetch=6]="Fetch",he}(We||{});function vt(he,R){return{\u0275kind:he,\u0275providers:R}}function ot(...he){const R=[q,ii,Ft,{provide:Ue,useExisting:Ft},{provide:ze,useExisting:ii},{provide:Xn,useValue:zr,multi:!0},{provide:er,useValue:!0},{provide:Ii,useClass:Zr}];for(const U of he)R.push(...U.\u0275providers);return(0,c.EmA)(R)}const ge=new c.nKC("");let cn=(()=>{var he;class R{}return(he=R).\u0275fac=function(ee){return new(ee||he)},he.\u0275mod=c.$C({type:he}),he.\u0275inj=c.G2t({providers:[ot(vt(We.LegacyInterceptors,[{provide:ge,useFactory:rr},{provide:Xn,useExisting:ge,multi:!0}]))]}),R})()},4438:(Dn,At,x)=>{"use strict";x.d(At,{iLQ:()=>zI,sZ2:()=>vv,hnV:()=>tD,Hbi:()=>JM,o8S:()=>Id,BIS:()=>Iy,gRc:()=>pD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>ts,zcH:()=>Ya,bkB:()=>Os,$GK:()=>ur,nKC:()=>$,zZn:()=>hs,_q3:()=>YI,MKu:()=>JI,xe9:()=>ay,Co$:()=>Ti,Vns:()=>io,SKi:()=>Ao,Xx1:()=>Sn,Agw:()=>Jd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>qg,kdw:()=>Gn,C4Q:()=>sp,NYb:()=>vM,giA:()=>ZT,xvI:()=>GR,RxE:()=>WT,c1b:()=>hd,gXe:()=>ms,mal:()=>u_,L39:()=>wP,a0P:()=>kP,Ol2:()=>X0,w6W:()=>os,oH4:()=>cD,SmG:()=>LM,Rfq:()=>zr,WQX:()=>Se,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>KT,H8p:()=>dl,KH2:()=>qp,TgB:()=>Mp,wOt:()=>je,WHO:()=>YT,e01:()=>JT,H5H:()=>yI,Zy3:()=>bt,mq5:()=>cC,JZv:()=>jn,LfX:()=>Nt,plB:()=>tl,jNT:()=>BI,zjR:()=>eD,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>bp,Mj6:()=>as,GFd:()=>ji,OA$:()=>Pt,Jv_:()=>AT,aNF:()=>CT,R7$:()=>o0,BMQ:()=>oI,AVh:()=>dI,vxM:()=>tC,wni:()=>JC,VBU:()=>vs,FsC:()=>ls,jDH:()=>ir,G2t:()=>Mi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>vI,eu8:()=>_I,bVm:()=>Y_,qex:()=>Q_,k0s:()=>q_,j41:()=>X_,RV6:()=>aC,xGo:()=>cf,KVO:()=>H,kS0:()=>Lc,QTQ:()=>s0,bIt:()=>AI,lsd:()=>tT,XpG:()=>BC,SdG:()=>zC,NAR:()=>jC,Y8G:()=>uI,FS9:()=>TI,lJ4:()=>DT,mGM:()=>eT,Dyx:()=>iC,Z7z:()=>rC,fX1:()=>nC,Njj:()=>Ac,eBV:()=>Sd,n$t:()=>zf,DNE:()=>Pp,EFF:()=>dT,JRh:()=>bI,SpI:()=>ny,Lme:()=>wI,DH7:()=>IT,mxI:()=>RI,R50:()=>SI,GBs:()=>ZC}),x(467);let de=null,W=1;const Ie=Symbol("SIGNAL");function te(e){const t=de;return de=e,t}function Ve(e){if((!He(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==W)){if(!e.producerMustRecompute(e)&&!ft(e))return e.dirty=!1,void(e.lastCleanEpoch=W);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=W}}function ft(e){Je(e);for(let t=0;t0}function Je(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}let tn=null;var qn=x(1413),Zn=x(8359),Xn=x(4412),wn=x(6354);const rr="https://g.co/ng/security#xss";class je extends Error{constructor(t,r){super(bt(t,r)),this.code=t}}function bt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function An(e){return{toString:e}.toString()}const Kt="__parameters__";function kr(e,t,r){return An(()=>{const o=function Lr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const p=new a(...d);return y.annotation=p,y;function y(A,V,J){const oe=A.hasOwnProperty(Kt)?A[Kt]:Object.defineProperty(A,Kt,{value:[]})[Kt];for(;oe.length<=J;)oe.push(null);return(oe[J]=oe[J]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const jn=globalThis;function Pn(e){for(let t in e)if(e[t]===Pn)return t;throw Error("Could not find renamed property on target object.")}function Mr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function tr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(tr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function _r(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Zr=Pn({__forward_ref__:Pn});function zr(e){return e.__forward_ref__=zr,e.toString=function(){return tr(this())},e}function ue(e){return We(e)?e():e}function We(e){return"function"==typeof e&&e.hasOwnProperty(Zr)&&e.__forward_ref__===zr}function ir(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mi(e){return{providers:e.providers||[],imports:e.imports||[]}}function mi(e){return _t(e,he)||_t(e,U)}function Nt(e){return null!==mi(e)}function _t(e,t){return e.hasOwnProperty(t)?e[t]:null}function Tn(e){return e&&(e.hasOwnProperty(R)||e.hasOwnProperty(ee))?e[R]:null}const he=Pn({\u0275prov:Pn}),R=Pn({\u0275inj:Pn}),U=Pn({ngInjectableDef:Pn}),ee=Pn({ngInjectorDef:Pn});class ${constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=ir({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ir(e){return e&&!!e.\u0275providers}const un=Pn({\u0275cmp:Pn}),sr=Pn({\u0275dir:Pn}),Wr=Pn({\u0275pipe:Pn}),Fr=Pn({\u0275mod:Pn}),Er=Pn({\u0275fac:Pn}),pr=Pn({__NG_ELEMENT_ID__:Pn}),ei=Pn({__NG_ENV_ID__:Pn});function kn(e){return"string"==typeof e?e:null==e?"":String(e)}function li(e,t){throw new je(-201,!1)}var ur=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ur||{});let Kr;function _i(){return Kr}function Yn(e){const t=Kr;return Kr=e,t}function Lo(e,t,r){const o=mi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&ur.Optional?null:void 0!==t?t:void li()}const co={},bo="__NG_DI_FLAG__",Li="ngTempTokenPath",Q=/\n/gm,P="__source";let _e;function mr(e){const t=_e;return _e=e,t}function Ei(e,t=ur.Default){if(void 0===_e)throw new je(-203,!1);return null===_e?Lo(e,void 0,t):_e.get(e,t&ur.Optional?null:void 0,t)}function H(e,t=ur.Default){return(_i()||Ei)(ue(e),t)}function Se(e,t=ur.Default){return H(e,$e(t))}function $e(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function pt(e){const t=[];for(let r=0;rArray.isArray(r)?yi(r,t):t(r))}function bi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ai(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=wo(e,t);return o>=0?e[1|o]=r:(o=~o,function ui(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function qo(e,t){const r=wo(e,t);if(r>=0)return e[1|r]}function wo(e,t){return function ss(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),p=e[d<t?a=d:o=d+1}return~(a<t){p=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[J+1].toLowerCase(),2&o&&V!==oe){if(ve(o))return!1;p=!0}}}}else{if(!p&&!ve(o)&&!ve(A))return!1;if(p&&ve(A))continue;p=!1,o=A|1&o}}return ve(o)||p}function ve(e){return!(1&e)}function G(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ve(p)&&(t+=ao(d,a),a=""),o=p,d=d||!ve(o);r++}return""!==a&&(t+=ao(d,a)),t}function vs(e){return An(()=>{var t;const r=ll(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ms.Emulated,styles:e.styles||jr,_:null,schemas:e.schemas||null,tView:null,id:""};us(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function Sr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Bs(e){return cr(e)||Vi(e)}function Oa(e){return null!==e}function sl(e){return An(()=>({type:e.type,bootstrap:e.bootstrap||jr,declarations:e.declarations||jr,imports:e.imports||jr,exports:e.exports||jr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function al(e,t){if(null==e)return Vo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let p,y,A=as.None;var o;Array.isArray(d)?(A=d[0],p=d[1],y=null!==(o=d[2])&&void 0!==o?o:p):(p=d,y=d),t?(r[p]=A!==as.None?[a,A]:a,t[p]=y):r[p]=a}return r}function ls(e){return An(()=>{const t=ll(e);return us(t),t})}function ha(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function cr(e){return e[un]||null}function Vi(e){return e[sr]||null}function xi(e){return e[Wr]||null}function ro(e){const t=cr(e)||Vi(e)||xi(e);return null!==t&&t.standalone}function oi(e,t){const r=e[Fr]||null;if(!r&&!0===t)throw new Error(`Type ${tr(e)} does not have '\u0275mod' property.`);return r}function ll(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Vo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||jr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:al(e.inputs,t),outputs:al(e.outputs),debugInfo:null}}function us(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function _s(e,t){if(!e)return null;const r=t?xi:Bs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(Oa)}function ul(e){return{\u0275providers:e}}function ys(...e){return{\u0275providers:ka(0,e),\u0275fromNgModule:!0}}function ka(e,...t){const r=[],o=new Set;let a;const d=p=>{r.push(p)};return yi(t,p=>{const y=p;cl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,d),r}function js(e,t){for(let r=0;r{t(d,o)})}}function cl(e,t,r,o){if(!(e=ue(e)))return!1;let a=null,d=Tn(e);const p=!d&&cr(e);if(d||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(d=Tn(A),!d)return!1;a=A}const y=o.has(a);if(p){if(y)return!1;if(o.add(a),p.dependencies){const A="function"==typeof p.dependencies?p.dependencies():p.dependencies;for(const V of A)cl(V,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let V;o.add(a);try{yi(d.imports,J=>{cl(J,t,r,o)&&(V||(V=[]),V.push(J))})}finally{}void 0!==V&&js(V,t)}if(!y){const V=Ur(a)||(()=>new a);t({provide:a,useFactory:V,deps:jr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>H(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const V=e;Vl(A,J=>{t(J,V)})}}}return a!==e&&void 0!==e.providers}function Vl(e,t){for(let r of e)Ir(r)&&(r=r.\u0275providers),Array.isArray(r)?Vl(r,t):t(r)}const Ul=Pn({provide:String,useValue:Pn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Zo(e){return"function"==typeof e}const dl=new $(""),es={},wu={};let $l;function Uo(){return void 0===$l&&($l=new ua),$l}class ts{}class Rs extends ts{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ms(t,p=>this.processProvider(p)),this.records.set(Us,La(void 0,this)),a.has("environment")&&this.records.set(ts,La(void 0,this));const d=this.records.get(dl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(so,jr,ur.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=te(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),te(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=mr(this),o=Yn(void 0);try{return t()}finally{mr(r),Yn(o)}}get(t,r=co,o=ur.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ei))return t[ei](this);o=$e(o);const d=mr(this),p=Yn(void 0);try{if(!(o&ur.SkipSelf)){let A=this.records.get(t);if(void 0===A){const V=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof $}(t)&&mi(t);A=V&&this.injectableDefInScope(V)?La(Ni(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&ur.Self?Uo():this.parent).get(t,r=o&ur.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Li]=y[Li]||[]).unshift(tr(t)),d)throw y;return function Qt(e,t,r,o){const a=e[Li];throw t[P]&&a.unshift(t[P]),e.message=function Zt(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=tr(t);if(Array.isArray(t))a=t.map(tr).join(" -> ");else if("object"==typeof t){let d=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];d.push(p+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(Q,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Li]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{Yn(p),mr(d)}}resolveInjectorInitializers(){const t=te(null),r=mr(this),o=Yn(void 0);try{const d=this.get(oo,jr,ur.Self);for(const p of d)p()}finally{mr(r),Yn(o),te(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(tr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processProvider(t){let r=Zo(t=ue(t))?t:ue(t&&t.provide);const o=function Bl(e){return fa(e)?La(void 0,e.useValue):La(ga(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=La(void 0,es,!0),a.factory=()=>pt(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=te(null);try{return r.value===es&&(r.value=wu,r.value=r.factory()),"object"==typeof r.value&&r.value&&function pc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{te(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=ue(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Ni(e){const t=mi(e),r=null!==t?t.factory:Ur(e);if(null!==r)return r;if(e instanceof $)throw new je(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new je(204,!1);const r=function jt(e){return e&&(e[he]||e[U])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new je(204,!1)}function ga(e,t,r){let o;if(Zo(e)){const a=ue(e);return Ur(a)||Ni(a)}if(fa(e))o=()=>ue(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...pt(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>H(ue(e.useExisting));else{const a=ue(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return Ur(a)||Ni(a);o=()=>new a(...pt(e.deps))}return o}function La(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ms(e,t){for(const r of e)Array.isArray(r)?Ms(r,t):r&&Ir(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=mr(e),a=Yn(void 0);try{return t()}finally{mr(o),Yn(a)}}function Hs(){return void 0!==_i()||null!=function st(){return _e}()}const si=0,yn=1,zn=2,ci=3,Gi=4,wi=5,Wi=6,$i=7,pi=8,Hi=9,$o=10,wr=11,Va=12,gc=13,Ua=14,Ki=15,va=16,ns=17,Ro=18,Gs=19,jl=20,Qr=21,_a=22,Ws=23,Or=25,$a=1,Bo=7,Ks=9,Bi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Yr(e){return Array.isArray(e)&&"object"==typeof e[$a]}function yo(e){return Array.isArray(e)&&!0===e[$a]}function zl(e){return!!(4&e.flags)}function As(e){return e.componentOffset>-1}function Ia(e){return!(1&~e.flags)}function cs(e){return!!e.template}function Hl(e){return!!(512&e[zn])}class Ct{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function an(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Pt(){return Nn}function Nn(e){return e.type.prototype.ngOnChanges&&(e.setInput=ki),br}function br(){const e=Xi(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Vo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function ki(e,t,r,o,a){const d=this.declaredInputs[o],p=Xi(e)||function jo(e,t){return e[ti]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,V=A[d];y[d]=new Ct(V&&V.currentValue,r,A===Vo),an(e,t,a,r)}Pt.ngInherit=!0;const ti="__ngSimpleChanges__";function Xi(e){return e[ti]||null}const Io=function(e,t,r){};let Ps=!1;function Ci(e){for(;Array.isArray(e);)e=e[si];return e}function Ga(e,t){return Ci(t[e])}function rs(e,t){return Ci(t[e.index])}function ql(e,t){return e.data[t]}function Mo(e,t){const r=t[e];return Yr(r)?r:r[si]}function vc(e){return!(128&~e[zn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[ns]=0}function bd(e){1024&e[zn]||(e[zn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[zn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[$o].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[zn])if(function Ca(){return Ps}())e[zn]|=1024,xs(e);else{var r;null===(r=e[$o].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[$o].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[zn])&&(r[zn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[zn]))throw new je(911,!1);null===e[Qr]&&(e[Qr]=[]),e[Qr].push(t)}function Qs(e){const t=e[ci];return yo(t)?t[ci]:t}const nr={lFrame:Jh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return nr.bindingsEnabled}function Jl(){return null!==nr.skipHydrationRootTNode}function Yt(){return nr.lFrame.lView}function di(){return nr.lFrame.tView}function Sd(e){return nr.lFrame.contextLView=e,e[pi]}function Ac(e){return nr.lFrame.contextLView=null,e}function Pi(){let e=qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function qh(){return nr.lFrame.currentTNode}function Zs(e,t){const r=nr.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return nr.lFrame.isParent}function Nu(){nr.lFrame.isParent=!1}function Ts(){return nr.lFrame.bindingIndex++}function na(e){const t=nr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function Md(e,t){const r=nr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){nr.lFrame.currentDirectiveIndex=e}function xd(){return nr.lFrame.currentQueryIndex}function Dc(e){nr.lFrame.currentQueryIndex=e}function bc(e){const t=e[yn];return 2===t.type?t.declTNode:1===t.type?e[wi]:null}function Yh(e,t,r){if(r&ur.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&ur.Host||(a=bc(d),null===a||(d=d[Ua],10&a.type))););if(null===a)return!1;t=a,e=d}const o=nr.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[yn];nr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function ku(){const e=nr.lFrame,t=null===e?null:e.child;return null===t?Jh(e):t}function Jh(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Nd(){const e=nr.lFrame;return nr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wc=Nd;function Fu(){const e=Nd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function fo(){return nr.lFrame.selectedIndex}function ba(e){nr.lFrame.selectedIndex=e}function Si(){const e=nr.lFrame;return ql(e.tView,e.selectedIndex)}let Vu=!0;function Uu(){return Vu}function Ns(e){Vu=e}function $u(e,t){for(let V=t.directiveStart,J=t.directiveEnd;V=o)break}else t[A]<0&&(e[ns]+=65536),(y>14>16&&(3&e[zn])===t&&(e[zn]+=16384,vl(y,d)):vl(y,d)}const _l=-1;class yl{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Il(e){return e!==_l}function wa(e){return 32767&e}function El(e,t){let r=function xc(e){return e>>16}(e),o=t;for(;r>0;)o=o[Ua],r--;return o}let ju=!0;function Zl(e){const t=ju;return ju=e,t}const sf=255,Ld=5;let Nc=0;const Ds={};function zu(e,t){const r=Vd(e,t);if(-1!==r)return r;const o=t[yn];o.firstCreatePass&&(e.injectorIndex=t.length,Po(o.data,e),Po(t,null),Po(o.blueprint,null));const a=Xa(e,t),d=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[yn].data;for(let V=0;V<8;V++)t[d+V]=y[p+V]|A[p+V]}return t[d+8]=a,d}function Po(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Xa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Qa(a),null===o)return _l;if(r++,a=a[Ua],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return _l}function Al(e,t,r){!function cv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(pr)&&(o=r[pr]),null==o&&(o=r[pr]=Nc++);const a=o&sf;t.data[e+(a>>Ld)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof d){if(!Yh(t,e,o))return o&ur.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=d(o),null!=p||o&ur.Optional)return p;li()}finally{wc()}}else if("number"==typeof d){let p=null,y=Vd(e,t),A=_l,V=o&ur.Host?t[Ki][wi]:null;for((-1===y||o&ur.SkipSelf)&&(A=-1===y?Xa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[yn],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const J=t[yn];if(Fc(d,y,J.data)){const oe=sg(y,t,r,p,o,V);if(oe!==Ds)return oe}A=t[y+8],A!==_l&&tu(o,t[yn].data[y+8]===V)&&Fc(d,y,t)?(p=J,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,d){const p=t[yn],y=p.data[e+8],J=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&ur.Host&&d===y);return null!==J?Cl(t,p,J,y):Ds}function $d(e,t,r,o,a){const d=e.providerIndexes,p=t.data,y=1048575&d,A=e.directiveStart,J=d>>20,Oe=a?y+J:e.directiveEnd;for(let tt=o?y:y+J;tt=A&&wt.type===r)return tt}if(a){const tt=p[A];if(tt&&cs(tt)&&tt.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const d=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function vi(e,t){throw t&&t.join(" > "),new je(-200,e)}(function Ln(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():kn(e)}(d[r]));const y=Zl(p.canSeeViewProviders);p.resolving=!0;const V=p.injectImpl?Yn(p.injectImpl):null;Yh(e,o,ur.Default);try{a=e[r]=p.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var p,y;const oe=Nn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,oe),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,oe)}var A,V,J;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(V=r.preOrderHooks)&&void 0!==V?V:r.preOrderHooks=[]).push(e,d),(null!==(J=r.preOrderCheckHooks)&&void 0!==J?J:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==V&&Yn(V),Zl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Ld)]&1<{const t=e.prototype.constructor,r=t[Er]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[Er]||Hu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Hu(e){return We(e)?()=>{const t=Hu(ue(e));return t&&t()}:Ur(e)}function Qa(e){const t=e[yn],r=t.type;return 2===r?t.declTNode:1===r?e[wi]:null}function Lc(e){return function Oc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return ug({name:""},a,o,"");{var d;const p=null!==(d=o.name)&&void 0!==d?d:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=ir({token:e,providedIn:"any",factory:()=>H(Us)}),e.__NG_ELEMENT_ID__=-1,t})();function Uc(e){return e.ngOriginalError}class Ya{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Uc(t);for(;r&&Uc(r);)r=Uc(r);return r||null}}const zd=new $("",{providedIn:"root",factory:()=>Se(Ya).handleError.bind(void 0)});let Ku=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=cg,e.__NG_ENV_ID__=r=>r,t})();class yf extends Ku{constructor(t){super(),this._lView=t}onDestroy(t){return Wa(this._lView,t),()=>function Yl(e,t){if(null===e[Qr])return;const r=e[Qr].indexOf(t);-1!==r&&e[Qr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Yt())}function qu(){return oa(Pi(),Yt())}function oa(e,t){return new Qu(rs(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=qu,t})();function ru(e){return e instanceof Qu?e.nativeElement:e}function If(e){return t=>{setTimeout(e,void 0,t)}}const Os=class hv extends qn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Se(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=te(null);try{super.next(t)}finally{te(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,V;const oe=t;a=null===(y=oe.next)||void 0===y?void 0:y.bind(oe),d=null===(A=oe.error)||void 0===A?void 0:A.bind(oe),p=null===(V=oe.complete)||void 0===V?void 0:V.bind(oe)}this.__isAsync&&(d=If(d),a&&(a=If(a)),p&&(p=If(p)));const J=super.subscribe({next:a,error:d,complete:p});return t instanceof Zn.yU&&t.add(J),J}};function Ef(){return this._results[Symbol.iterator]()}class $c{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Os}constructor(t=!1){this._emitDistinctChangesOnly=t,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 r=$c.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Ef)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function dr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Tr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new $(""),Jd=new $("",{providedIn:"platform",factory:()=>"unknown"}),Iy=new $("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new je(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Av=()=>null;function rh(e,t,r=!1){return Av(e,t,r)}const xg=new $("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,jn.trustedTypes))try{ah=jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ah}())||void 0===t?void 0:t.createScriptURL(e))||e}class kg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rr})`}}function cu(e){return e instanceof kg?e.changingThisBreaksApplicationSecurity:e}function po(e,t){const r=function go(e){return e instanceof kg&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${rr})`)}return r===t}const oE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var qc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(qc||{});function Qc(e){const t=Sa();return t?t.sanitize(qc.URL,e)||"":po(e,"URL")?cu(e):function Oi(e){return(e=String(e)).match(oE)?e:"unsafe:"+e}(kn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(qc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new je(904,!1)}function zf(e,t,r){return function Hg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$g:Qc}(t,r)(e)}function Sa(){const e=Yt();return e&&e[$o].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var qg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qg||{});let Bv;function Qg(e,t){return Bv(e,t)}function ph(e,t,r,o,a){if(null!=o){let d,p=!1;yo(o)?d=o:Yr(o)&&(p=!0,o=o[si]);const y=Ci(o);0===e&&null!==r?null==a?rd(t,r,y):nd(t,r,y,a||null,!0):1===e&&null!==r?nd(t,r,y,a||null,!0):2===e?function Yf(e,t,r){const o=Qf(e,t);o&&function pE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=d&&function mE(e,t,r,o,a){const d=r[Bo];d!==Ci(r)&&ph(t,e,o,d,a);for(let y=Bi;yt.replace(Lv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[$o].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[wr],2,null,null)}function zv(e,t){const r=e[Ks],o=r.indexOf(t);r.splice(o,1)}function Xf(e,t){if(e.length<=Bi)return;const r=Bi+t,o=e[r];if(o){const a=o[va];null!==a&&a!==e&&zv(a,o),t>0&&(e[r-1][Gi]=o[Gi]);const d=Ai(e,Bi+t);!function Ky(e,t){jv(e,t),t[si]=null,t[wi]=null}(o[yn],o);const p=d[Ro];null!==p&&p.detachView(d[yn]),o[ci]=null,o[Gi]=null,o[zn]&=-129}return o}function Yg(e,t){if(!(256&t[zn])){const r=t[wr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[Va];if(!t)return Jg(e[yn],e);for(;t;){let r=null;if(Yr(t))r=t[Va];else{const o=t[Bi];o&&(r=o)}if(!r){for(;t&&!t[Gi]&&t!==e;)Yr(t)&&Jg(t[yn],t),t=t[ci];null===t&&(t=e),Yr(t)&&Jg(t[yn],t),r=t&&t[Gi]}t=r}}(t)}}function Jg(e,t){if(256&t[zn])return;const r=te(null);try{t[zn]&=-129,t[zn]|=256,t[Ws]&&function yt(e){if(Je(e),He(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[$i]=null);const a=t[Qr];if(null!==a){t[Qr]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ms.None||d===ms.Emulated)return null}return rs(o,r)}}(e,t.parent,r)}function nd(e,t,r,o,a){e.insertBefore(t,r,o,a)}function rd(e,t,r){e.appendChild(t,r)}function qf(e,t,r,o,a){null!==o?nd(e,t,r,o,a):rd(e,t,r)}function Qf(e,t){return e.parentNode(t)}function Gv(e,t,r){return Jy(e,t,r)}let Kv,Jy=function Wv(e,t,r){return 40&e.type?rs(e,r):null};function Zg(e,t,r,o){const a=Hv(e,o,t),d=t[wr],y=Gv(o.parent||t[wi],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AOr&&nm(e,t,Or,!1),Io(p?2:0,a),r(o,a)}finally{ba(d),Io(p?3:1,a)}}function Qv(e,t,r){if(zl(t)){const o=te(null);try{const d=t.directiveEnd;for(let p=t.directiveStart;pnull;function Jv(e,t,r,o,a){for(let p in t){var d;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,V=as.None;Array.isArray(y)?(A=y[0],V=y[1]):A=y;let J=p;if(null!==a){if(!a.hasOwnProperty(p))continue;J=a[p]}0===e?f0(o,r,J,A,V):f0(o,r,J,A)}return o}function f0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function ks(e,t,r,o,a,d,p,y){const A=rs(t,r);let J,V=t.inputs;!y&&null!=V&&(J=V[o])?(n_(e,r,J,o,a),As(t)&&function TE(e,t){const r=Mo(t,e);16&r[zn]||(r[zn]|=64)}(r,t.index)):3&t.type&&(o=function CE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=p?p(a,t.value||"",o):a,d.setProperty(A,o,a))}function Zv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},d=function ME(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let p=0;p0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(p)!=y&&p.push(y),p.push(r,o,d)}}(e,t,o,Zf(e,r,a.hostVars,Gr),a)}function Ml(e,t,r,o,a,d){const p=rs(e,t);!function t_(e,t,r,o,a,d,p){if(null==d)e.removeAttribute(t,a,r);else{const y=null==p?kn(d):p(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[wr],p,d,e.value,r,o,a)}function kE(e,t,r,o,a,d){const p=d[t];if(null!==p)for(let y=0;y0&&(r[a-1][Gi]=t),o!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xs(e.lView)},consumerOnSignalRead(){this.lView[Ws]=this}},D0=100;function cm(e,t=!0,r=0){const o=e[$o],a=o.rendererFactory;var p;null===(p=a.begin)||void 0===p||p.call(a);try{!function zE(e,t){i_(e,t);let r=0;for(;Ql(e);){if(r===D0)throw new je(103,!1);r++,i_(e,1)}}(e,r)}catch(V){throw t&&am(e,V),V}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function HE(e,t,r,o){var a;const d=t[zn];if(!(256&~d))return;null===(a=t[$o].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function GE(e){return 2!==e.type})(e)&&(A=function UE(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function $E(e){var t;const r=null!==(t=T0.pop())&&void 0!==t?t:Object.create(jE);return r.lView=e,r}(e)}(t),y=function gt(e){return e&&(e.nextProducerIndex=0),te(e)}(A));try{yc(t),function Cc(e){return nr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&l0(e,t,r,2,o);const V=!(3&~d);if(V){const Oe=e.preOrderCheckHooks;null!==Oe&&Sc(t,Oe,null)}else{const Oe=e.preOrderHooks;null!==Oe&&ra(t,Oe,0,null),ia(t,0)}if(function WE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[zn]&Su.HasTransplantedViews))continue;const r=t[Ks];for(let o=0;oe.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(A,y),function BE(e){e.lView[Ws]!==e&&(e.lView=null,T0.push(e))}(A)),Fu()}}function b0(e,t){for(let r=gg(e);null!==r;r=Tf(r))for(let o=Bi;o-1&&(Xf(t,o),Ai(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[yn],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[zn]&=-129}reattach(){fl(this._lView),this._lView[zn]|=128}detectChanges(){this._lView[zn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[yn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new je(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=qE,t})();const R0=sp,XE=class extends R0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=tp(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new op(a)}};function qE(){return dm(Pi(),Yt())}function dm(e,t){return 4&e.type?new XE(t,e,oa(e,t)):null}let fm=()=>null;function mo(e,t){return fm(e,t)}class pm{}class Ih{}class s_{}class ap{resolveComponentFactory(t){throw function Eh(e){const t=Error(`No component factory found for ${tr(e)}.`);return t.ngComponent=e,t}(t)}}let lc=(()=>{class t{}return t.NULL=new ap,t})();class lp{}let gm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function mm(){const e=Yt(),r=Mo(Pi().index,e);return(Yr(r)?r:e)[wr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:()=>null}),t})();const up={},l_=new Set;function Ma(e){var t,r;l_.has(e)||(l_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function _m(...e){}class Ao{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new je(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function ym(){const e="function"==typeof jn.requestAnimationFrame;let t=jn[e?"requestAnimationFrame":"setTimeout"],r=jn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function is(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(jn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,zo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),zo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,p,y)=>{if(function k0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,p,y);try{return Ch(e),r.invokeTask(a,d,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,d,p,y,A)=>{try{return Ch(e),r.invoke(a,d,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,zo(e),Ah(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ao.isInAngularZone())throw new je(909,!1)}static assertNotInAngularZone(){if(Ao.isInAngularZone())throw new je(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,p=d.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return d.runTask(p,r,o)}finally{d.cancelTask(p)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Im={};function Ah(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function zo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ch(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Am(e){e._nesting--,Ah(e)}class Cm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var mu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(mu||{});const Tm={destroy(){}};function u_(e,t){var r,o,a;!t&&function Es(e){if(!Hs())throw new je(-203,!1)}();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Se(hs);if(!function el(e){return"browser"===(null!=e?e:Se(hs)).get(Jd)}(d))return Tm;Ma("NgAfterNextRender");const p=d.get(ad),y=null!==(o=p.handler)&&void 0!==o?o:p.handler=new Dm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:mu.MixedReadWrite,V=()=>{y.unregister(oe),J()},J=d.get(Ku).onDestroy(V),oe=lo(d,()=>new cp(A,()=>{V(),e()}));return y.register(oe),{destroy:V}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Se(Ao),this.errorHandler=Se(Ya,{optional:!0}),null===(o=Se(pm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class Dm{constructor(){this.executingCallbacks=!1,this.buckets={[mu.EarlyRead]:new Set,[mu.Write]:new Set,[mu.MixedReadWrite]:new Set,[mu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ad=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!oi(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let p=0;p0&&n0(e,r,d.join(" "))}}(Ht,Fl,In,o),void 0!==r&&function g_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=m_,t})();function m_(){return vp(Pi(),Yt())}const v_=hd,__=class extends v_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xa(this._hostTNode,this._hostLView);if(Il(t)){const r=El(t,this._hostLView),o=wa(t);return new Yi(r[yn].data[o+8],r)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=wh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Bi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const p=mo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,p);return this.insertImpl(y,a,_h(this._hostTNode,p)),y}createComponent(t,r,o,a,d){var p,y,A;const V=t&&!function $t(e){return"function"==typeof e}(t);let J;if(V)J=r;else{const In=r||{};J=In.index,o=In.injector,a=In.projectableNodes,d=In.environmentInjector||In.ngModuleRef}const oe=V?t:new bh(cr(t)),Oe=o||this.parentInjector;if(!d&&null==oe.ngModule){const en=(V?Oe:this.parentInjector).get(ts,null);en&&(d=en)}const tt=cr(null!==(p=oe.componentType)&&void 0!==p?p:{}),wt=mo(this._lContainer,null!==(y=null==tt?void 0:tt.id)&&void 0!==y?y:null),Ht=null!==(A=null==wt?void 0:wt.firstChild)&&void 0!==A?A:null,gn=oe.create(Oe,a,Ht,d);return this.insertImpl(gn.hostView,J,_h(this._hostTNode,wt)),gn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return yo(e[ci])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[ci],V=new __(A,A[wi],A[ci]);V.detach(V.indexOf(t))}}const d=this._adjustIndex(r),p=this._lContainer;return np(p,a,d,o),t.attachToViewContainerRef(),bi(mp(p),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=wh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=Xf(this._lContainer,r);o&&(Ai(mp(this._lContainer),r),Yg(o[yn],o))}detach(t){const r=this._adjustIndex(t,-1),o=Xf(this._lContainer,r);return o&&null!=Ai(mp(this._lContainer),r)?new op(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function wh(e){return e[8]}function mp(e){return e[8]||(e[8]=[])}function vp(e,t){let r;const o=t[e.index];return yo(o)?r=o:(r=_0(o,t,null,e),t[e.index]=r,om(t,r)),Iu(r,t,e,o),new __(r,e,t)}let Iu=function Rm(e,t,r,o){if(e[Bo])return;let a;a=8&r.type?Ci(o):function Sh(e,t){const r=e[wr],o=r.createComment(""),a=rs(t,e);return nd(r,Qf(r,a),o,function Yy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Bo]=a},Rh=()=>!1;class Mh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Mh(this.queryList)}setDirty(){this.queryList.setDirty()}}class _p{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class xm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(p[y/2]);else{const V=d[y+1],J=t[-A];for(let oe=Bi;oe=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Yo(a.hostAttrs,r=Yo(r,a.hostAttrs))}}(o)}function O_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Vh(e){return e===Vo?{}:e===jr?[]:e}function wp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function Fs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function F_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function ji(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class io{}class Ti{}function os(e,t){return new Cu(e,null!=t?t:null,[])}class Cu extends io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new d_(this);const a=oi(t);this._bootstrapComponents=aa(a.bootstrap),this._r3Injector=_f(t,r,[{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver},...o],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ls extends Ti{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}class Rp extends io{constructor(t){super(),this.componentFactoryResolver=new d_(this),this.instance=null;const r=new Rs([...t.providers,{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver}],t.parent||Uo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function X0(e,t,r=null){return new Rp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Mp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Xn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!q0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function q0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function xo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,d,p,y){const A=Yt(),V=di(),J=e+Or,oe=V.firstCreatePass?function db(e,t,r,o,a,d,p,y,A){const V=t.consts,J=sc(t,e,4,p||null,Cs(V,y));Zv(t,r,J,Cs(V,A)),$u(t,J);const oe=J.tView=ep(2,J,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,V,null);return null!==t.queries&&(t.queries.template(t,J),oe.queries=t.queries.embeddedTView(J)),J}(J,V,A,t,r,o,a,d,p):V.data[J];Zs(oe,!1);const Oe=sA(V,A,oe,e);Uu()&&Zg(V,A,Oe,oe),Ji(Oe,A);const tt=_0(Oe,A,Oe,oe);return A[J]=tt,om(A,tt),function y_(e,t,r){return Rh(e,t,r)}(tt,oe,A),Ia(oe)&&mh(V,A,oe),null!=p&&od(A,oe,y),Pp}let sA=function aA(e,t,r,o){return Ns(!0),t[wr].createComment("")};function oI(e,t,r,o){const a=Yt();return xo(a,Ts(),t)&&(di(),Ml(Si(),a,e,t,r,o)),oI}function Up(e,t,r,o){return xo(e,Ts(),r)?t+kn(r)+o:Gr}function $p(e,t,r,o,a,d){const y=function Uh(e,t,r,o){const a=xo(e,t,r);return xo(e,t+1,o)||a}(e,function ta(){return nr.lFrame.bindingIndex}(),r,a);return na(2),y?t+kn(r)+o+kn(a)+d:Gr}function W_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function sI(e){return 2|e}function Bh(e){return(131068&e)>>2}function aI(e,t){return-131069&e|t<<2}function lI(e){return 1|e}function VA(e,t,r,o){const a=e[r+1],d=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||d);){const V=e[p+1];Yb(e[p],t)&&(y=!0,e[p+1]=o?lI(V):sI(V)),p=o?yd(V):Bh(V)}y&&(e[r+1]=o?sI(a):lI(a))}function Yb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wo(e,t)>=0}function uI(e,t,r){const o=Yt();return xo(o,Ts(),t)&&ks(di(),Si(),o,e,t,o[wr],r,!1),uI}function cI(e,t,r,o,a){const p=a?"class":"style";n_(e,r,t.inputs[p],p,o)}function dI(e,t){return function Ol(e,t,r,o){const a=Yt(),d=di(),p=na(2);d.firstUpdatePass&&function KA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[fo()],p=function WA(e,t){return t>=e.expandoStartIndex}(e,r);(function YA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!p&&(t=!1),t=function sw(e,t,r,o){const a=function Ou(e){const t=nr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Xm(r=hI(null,e,t,r,o),t.attrs,o),d=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=hI(a,e,t,r,o),null===d){let A=function aw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==Bh(o))return e[yd(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=hI(null,e,t,A[1],o),A=Xm(A,t.attrs,o),function lw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function uw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(V=!0)):J=r,a)if(0!==A){const Oe=yd(e[y+1]);e[o+1]=W_(Oe,y),0!==Oe&&(e[Oe+1]=aI(e[Oe+1],o)),e[y+1]=function Kb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=W_(y,0),0!==y&&(e[y+1]=aI(e[y+1],o)),y=o;else e[o+1]=W_(A,0),0===y?y=o:e[A+1]=aI(e[A+1],o),A=o;V&&(e[o+1]=sI(e[o+1])),VA(e,J,o,!0),VA(e,J,o,!1),function Qb(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&wo(d,t)>=0&&(r[o+1]=lI(r[o+1]))}(t,J,e,o,d),p=W_(y,A),d?t.classBindings=p:t.styleBindings=p}(a,d,t,r,p,o)}}(d,e,p,o),t!==Gr&&xo(a,p,t)&&function qA(e,t,r,o,a,d,p,y){if(!(3&t.type))return;const A=e.data,V=A[y+1],J=function Xb(e){return!(1&~e)}(V)?QA(A,t,r,a,Bh(V),p):void 0;K_(J)||(K_(d)||function Wb(e){return!(2&~e)}(V)&&(d=QA(A,null,r,a,y,p)),function vE(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:qg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=qg.Important),e.setStyle(r,o,a,d))}}(o,p,Ga(fo(),r),a,d))}(d,d.data[fo()],a,a[wr],e,a[p+1]=function fw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=tr(cu(e)))),e}(t,r),o,p)}(e,t,null,!0),dI}function hI(e,t,r,o,a){let d=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],V=Array.isArray(A),J=V?A[1]:A,oe=null===J;let Oe=r[a+1];Oe===Gr&&(Oe=oe?jr:void 0);let tt=oe?qo(Oe,o):J===o?Oe:void 0;if(V&&!K_(tt)&&(tt=qo(A,o)),K_(tt)&&(y=tt,p))return y;const wt=e[a+1];a=p?yd(wt):Bh(wt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=qo(A,o))}return y}function K_(e){return void 0!==e}class Tw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const p=this.detach(o);this.attach(o,d),this.attach(a,p)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function fI(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function pI(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function JA(e,t,r,o,a){if(pI(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function ZA(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class eC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function tC(e,t,r){Ma("NgControlFlow");const o=Yt(),a=Ts(),d=gI(o,Or+e);if(xo(o,a,t)){const y=te(null);try{if(um(d,0),-1!==t){const A=mI(o[yn],Or+t),V=mo(d,A.tView.ssrId);np(d,tp(o,A,r,{dehydratedView:V}),0,_h(A,V))}}finally{te(y)}}else{const y=r_(d,0);void 0!==y&&(y[pi]=r)}}class bw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Bi}}function nC(e,t){return t}class Sw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function rC(e,t,r,o,a,d,p,y,A,V,J,oe,Oe){Ma("NgControlFlow");const tt=void 0!==A,wt=Yt(),Ht=y?p.bind(wt[Ki][pi]):p,gn=new Sw(tt,Ht);wt[Or+e]=gn,Pp(e+1,t,r,o,a,d),tt&&Pp(e+2,A,V,J,oe,Oe)}class Rw extends Tw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Bi}at(t){return this.getLView(t)[pi].$implicit}attach(t,r){const o=r[Wi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),np(this.lContainer,r,t,_h(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Mw(e,t){return Xf(e,t)}(this.lContainer,t)}create(t,r){const o=mo(this.lContainer,this.templateTNode.tView.ssrId);return tp(this.hostLView,this.templateTNode,new bw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Yg(t[yn],t)}updateValue(t,r){this.getLView(t)[pi].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Oe)})}(p,e,d.trackByFn),p.updateIndexes(),d.hasEmptyBlock){const y=Ts(),A=0===p.length;if(xo(o,y,A)){const V=r+2,J=gI(o,V);if(A){const oe=mI(a,V),Oe=mo(J,oe.tView.ssrId);np(J,tp(o,oe,void 0,{dehydratedView:Oe}),0,_h(oe,Oe))}else um(J,0)}}}finally{te(t)}}function gI(e,t){return e[t]}function mI(e,t){return ql(e,t)}function X_(e,t,r,o){const a=Yt(),d=di(),p=Or+e,y=a[wr],A=d.firstCreatePass?function xw(e,t,r,o,a,d){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Zv(t,r,A,Cs(p,d)),null!==A.attrs&&_u(A,A.attrs,!1),null!==A.mergedAttrs&&_u(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(p,d,a,t,r,o):d.data[p],V=oC(d,a,A,y,t,e);a[p]=V;const J=Ia(A);return Zs(A,!0),r0(y,V,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Zg(d,a,V,A),0===function Ic(){return nr.lFrame.elementDepthCount}()&&Ji(V,a),function Ec(){nr.lFrame.elementDepthCount++}(),J&&(mh(d,a,A),Qv(d,A,a)),null!==o&&od(a,A),X_}function q_(){let e=Pi();xu()?Nu():(e=e.parent,Zs(e,!1));const t=e;(function gl(e){return nr.skipHydrationRootTNode===e})(t)&&function Ka(){nr.skipHydrationRootTNode=null}(),function Ys(){nr.lFrame.elementDepthCount--}();const r=di();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&cI(r,t,Yt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&cI(r,t,Yt(),t.stylesWithoutHost,!1),q_}function vI(e,t,r,o){return X_(e,t,r,o),q_(),vI}let oC=(e,t,r,o,a,d)=>(Ns(!0),Rl(o,a,function Od(){return nr.lFrame.currentNamespace}()));function Q_(e,t,r){const o=Yt(),a=di(),d=e+Or,p=a.firstCreatePass?function kw(e,t,r,o,a){const d=t.consts,p=Cs(d,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Zv(t,r,y,Cs(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];Zs(p,!0);const y=sC(a,o,p,e);return o[d]=y,Uu()&&Zg(a,o,y,p),Ji(y,o),Ia(p)&&(mh(a,o,p),Qv(a,p,o)),null!=r&&od(o,p),Q_}function Y_(){let e=Pi();const t=di();return xu()?Nu():(e=e.parent,Zs(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),Y_}function _I(e,t,r){return Q_(e,t,r),Y_(),_I}let sC=(e,t,r,o)=>(Ns(!0),td(t[wr],""));function aC(){return Yt()}const jh=void 0;var Uw=["en",[["a","p"],["AM","PM"],jh],[["AM","PM"],jh,jh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],jh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],jh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",jh,"{1} 'at' {0}",jh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Vw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let Xp={};function yI(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=dC(t);if(r)return r;const o=t.split("-")[0];if(r=dC(o),r)return r;if("en"===o)return Uw;throw new je(701,!1)}function cC(e){return yI(e)[qp.PluralCase]}function dC(e){return e in Xp||(Xp[e]=jn.ng&&jn.ng.common&&jn.ng.common.locales&&jn.ng.common.locales[e]),Xp[e]}var qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(qp||{});const Qp="en-US";let hC=Qp;function AI(e,t,r,o){const a=Yt(),d=di(),p=Pi();return CI(d,a,a[wr],p,e,t,o),AI}function CI(e,t,r,o,a,d,p){const y=Ia(o),V=e.firstCreatePass&&E0(e),J=t[pi],oe=I0(t);let Oe=!0;if(3&o.type||p){const Ht=rs(o,t),gn=p?p(Ht):Ht,In=oe.length,en=p?Jr=>p(Ci(Jr[o.index])):o.index;let xr=null;if(!p&&y&&(xr=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof p&&(d+=2)}return null}(e,t,a,o.index)),null!==xr)(xr.__ngLastListenerFn__||xr).__ngNextListenerFn__=d,xr.__ngLastListenerFn__=d,Oe=!1;else{d=$C(o,t,J,d,!1);const Jr=r.listen(gn,a,d);oe.push(d,Jr),V&&V.push(a,en,In,In+1)}}else d=$C(o,t,J,d,!1);const tt=o.outputs;let wt;if(Oe&&null!==tt&&(wt=tt[a])){const Ht=wt.length;if(Ht)for(let gn=0;gn-1?Mo(e.index,t):t);let A=UC(t,r,o,p),V=d.__ngNextListenerFn__;for(;V;)A=UC(t,r,V,p)&&A,V=V.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function BC(e=1){return function Lu(e){return(nr.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,nr.lFrame.contextLView))[pi]}(e)}function LS(e,t){let r=null;const o=function fn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ns(!0),function Sl(e,t){return e.createText(t)}(t[wr],o));function bI(e){return ny("",e,""),bI}function ny(e,t,r){const o=Yt(),a=Up(o,e,t,r);return a!==Gr&&pu(o,fo(),a),ny}function wI(e,t,r,o,a){const d=Yt(),p=$p(d,e,t,r,o,a);return p!==Gr&&pu(d,fo(),p),wI}function SI(e,t,r){km(t)&&(t=t());const o=Yt();return xo(o,Ts(),t)&&ks(di(),Si(),o,e,t,o[wr],r,!1),SI}function IT(e,t){const r=km(e);return r&&e.set(t),r}function RI(e,t){const r=Yt(),o=di(),a=Pi();return CI(o,r,r[wr],a,e,t),RI}function MI(e,t,r,o,a){if(e=ue(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const tt=new yl(V,a,id),wt=xI(A,t,a?J:J+Oe,oe);-1===wt?(Al(zu(y,p),d,A),PI(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(tt),p.push(tt)):(r[wt]=tt,p[wt]=tt)}else{const tt=xI(A,t,J+Oe,oe),wt=xI(A,t,J,J+Oe),gn=wt>=0&&r[wt];if(a&&!gn||!a&&!(tt>=0&&r[tt])){Al(zu(y,p),d,A);const In=function rR(e,t,r,o,a){const d=new yl(e,r,id);return d.multi=[],d.index=t,d.componentProviders=0,ET(d,a,o&&!r),d}(a?nR:tR,r.length,a,o,V);!a&&gn&&(r[wt].providerFactory=In),PI(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(In),p.push(In)}else PI(d,e,tt>-1?tt:wt,ET(r[a?wt:tt],V,!a&&o));!a&&o&&gn&&r[wt].componentProviders++}}}function PI(e,t,r,o){const a=Zo(t),d=function Ss(e){return!!e.useClass}(t);if(a||d){const A=(d?ue(t.useClass):t).prototype.ngOnDestroy;if(A){const V=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const J=V.indexOf(r);-1===J?V.push(r,[o,A]):V[J+1].push(o,A)}else V.push(r,A)}}}function ET(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function xI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=di();if(o.firstCreatePass){const a=cs(e);MI(r,o.data,o.blueprint,a,!0),MI(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let iR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=ka(0,o.type),d=a.length>0?X0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=ir({token:e,providedIn:"environment",factory:()=>new e(H(ts))}),t})();function CT(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function DT(e,t,r){const o=function ho(){const e=nr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Yt();return a[o]===Gr?function Tu(e,t,r){return e[t]=r}(a,o,r?t.call(r):t()):function zm(e,t){return e[t]}(a,o)}class WT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const GR=new WT("17.3.10");let KT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const YT=new $(""),JT=new $("");let $I,vM=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,$I||(function _M(e){$I=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.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:()=>{Ao.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 o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let p=-1;a&&a>0&&(p=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==p),o()},a)),this._callbacks.push({doneCb:o,timeoutId:p,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(H(Ao),H(ZT),H(JT))},e.\u0275prov=ir({token:e,factory:e.\u0275fac}),t})(),ZT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,p;return null!==(d=null===(p=$I)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function BI(e){return!!e&&"function"==typeof e.then}function eD(e){return!!e&&"function"==typeof e.subscribe}const tD=new $("");let jI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Se(tD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const p=d();if(BI(p))o.push(p);else if(eD(p)){const y=new Promise((A,V)=>{p.subscribe({complete:A,error:V})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const zI=new $("");function iD(e,t){return Array.isArray(t)?t.reduce(iD,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Se(zd),this.afterRenderEffectManager=Se(ad),this.externalTestViews=new Set,this.beforeRender=new qn.B,this.afterTick=new qn.B,this.componentTypes=[],this.components=[],this.isStable=Se(Mp).hasPendingTasks.pipe((0,wn.T)(o=>!o)),this._injector=Se(ts)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof s_;if(!this._injector.get(jI).done)throw!d&&ro(o),new je(405,!1);let y;y=d?o:this._injector.get(lc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function yM(e){return e.isBoundToModule}(y)?void 0:this._injector.get(io),J=y.create(hs.NULL,[],a||y.selector,A),oe=J.location.nativeElement,Oe=J.injector.get(YT,null);return null==Oe||Oe.registerApplication(oe),J.onDestroy(()=>{this.detachView(J.hostView),sy(this.components,J),null==Oe||Oe.unregisterApplication(oe)}),this._loadComponent(J),J}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new je(101,!1);const a=te(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,te(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===D0)throw new je(103,!1);if(o){const p=0===a;this.beforeRender.next(p);for(let{_lView:y,notifyErrorHandler:A}of this._views)EM(y,p,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>HI(p))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>HI(p))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;sy(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(zI,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>sy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new je(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function sy(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!HI(e)||function AM(e,t,r){let o;r?(o=0,e[zn]|=1024):o=64&e[zn]?0:1,cm(e,t,o)}(e,r,t)}function HI(e){return Ql(e)}class CM{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let TM=(()=>{var e;class t{compileModuleSync(o){return new Ls(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(oi(o).declarations).reduce((y,A)=>{const V=cr(A);return V&&y.push(new bh(V)),y},[]);return new CM(a,p)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Se(Ao),this.applicationRef=Se(Id)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Se(Ao),t=Se(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new Zn.yU,this.initialized=!1,this.zone=Se(Ao),this.pendingTasks=Se(Mp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ao.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Ao.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const ay=new $("",{providedIn:"root",factory:()=>Se(ay,ur.Optional|ur.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new $("",{providedIn:"root",factory:()=>"USD"}),GI=new $("");let lD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Ao(t):e}(null==a?void 0:a.ngZone,function aD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function sD(e){return[{provide:Ao,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Se(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Se(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>d)),y=p.injector.get(Ya,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:V=>{y.handleError(V)}});p.onDestroy(()=>{sy(this._modules,p),A.unsubscribe()})}),function rD(e,t,r){try{const o=r();return BI(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=p.injector.get(jI);return A.runInitializers(),A.donePromise.then(()=>(function fC(e){"string"==typeof e&&(hC=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(ay,Qp)||Qp),this._moduleDoBootstrap(p),p))})})}bootstrapModule(o,a=[]){const d=iD({},a);return function bM(e,t,r){const o=new Ls(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,d))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new je(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(GI,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(H(hs))},e.\u0275prov=ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const uD=new $("");function cD(e,t,r=[]){const o=`Platform: ${t}`,a=new $(o);return(d=[])=>{let p=WI();if(!p||p.injector.get(uD,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(uD,!1))throw new je(400,!1);(function nD(){!function De(e){tn=e}(()=>{throw new je(600,!1)})})(),Ed=e;const t=e.get(lD);(function hD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function dD(e=[],t){return hs.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:GI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=WI();if(!t)throw new je(401,!1);return t}()}}function WI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(lD))&&void 0!==e?e:null}function LM(){}let pD=(()=>{class t{}return t.__NG_ELEMENT_ID__=VM,t})();function VM(e){return function UM(e,t,r){if(As(e)&&!r){const o=Mo(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Ki],t):null}(Pi(),Yt(),!(16&~e))}class _D{constructor(){}supports(t){return U_(t)}create(t){return new HM(t)}}const zM=(e,t)=>t;class HM{constructor(t){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=t||zM}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const p=!o||r&&r.currentIndex{p=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,p)?(o&&(r=this._verifyReinsertion(r,y,p,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,p,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new GM(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}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(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new yD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class GM{constructor(t,r){this.item=t,this.trackById=r,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 WM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class yD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new WM,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ID(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,p=a._next;return d&&(d._next=p),p&&(p._prev=d),a._next=null,a._prev=null,a}const o=new XM(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class XM{constructor(t){this.key=t,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 AD(){return new YI([new _D])}let YI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||AD()),deps:[[t,new Gn,new Sn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new je(901,!1)}}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:AD}),t})();function CD(){return new JI([new ED])}let JI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||CD()),deps:[[t,new Gn,new Sn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new je(901,!1)}}return(e=t).\u0275prov=ir({token:e,providedIn:"root",factory:CD}),t})();const YM=cD(null,"core",[]);let JM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(H(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=Mi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=te(null);try{return e()}finally{te(t)}}function kP(e,t){const r=cr(e),o=t.elementInjector||Uo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=cr(e);if(!t)return null;const r=new bh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(Dn,At,x)=>{"use strict";x.d(At,{MW:()=>ze,Wp:()=>at,XU:()=>Fe,gL:()=>W});var g=x(2214),c=x(4438),de=x(5407);class Fe{constructor(Ke){return Ke}}class W{constructor(){return(0,g.Dk)()}}const Ge=new c.nKC("angularfire2._apps"),Qe={provide:Fe,useFactory:function te(Pe){return Pe&&1===Pe.length?Pe[0]:new Fe((0,g.Sx)())},deps:[[new c.Xx1,Ge]]},we={provide:W,deps:[[new c.Xx1,Ge]]};function Ee(Pe){return(Ke,He)=>{const Je=He.get(c.Agw);(0,g.KO)("angularfire",de.xv.full,"core"),(0,g.KO)("angularfire",de.xv.full,"app"),(0,g.KO)("angular",c.xvI.full,Je.toString());const mt=Ke.runOutsideAngular(()=>Pe(He));return new Fe(mt)}}function ze(Pe,...Ke){return(0,c.EmA)([Qe,we,{provide:Ge,useFactory:Ee(Pe),multi:!0,deps:[c.SKi,c.zZn,de.u0,...Ke]}])}const at=(0,de.S3)(g.Wp,!0)},8737:(Dn,At,x)=>{"use strict";x.d(At,{Nj:()=>Xa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>Xu,kQ:()=>Fc});var g=x(5407),c=x(4438),de=x(7440),Fe=x(2214),W=x(467),Ie=x(7852),te=x(1076),Ge=x(8041),Qe=x(1635),we=x(1362);const xt=function at(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},ft=new te.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Pe=new Ge.Vy("@firebase/auth");function He(E,...h){Pe.logLevel<=Ge.$b.ERROR&&Pe.error(`Auth (${Ie.MF}): ${E}`,...h)}function Je(E,...h){throw zt(E,...h)}function mt(E,...h){return zt(E,...h)}function Ce(E,h,v){const b=Object.assign(Object.assign({},xt()),{[h]:v});return new te.FA("auth","Firebase",b).create(h,{appName:E.name})}function nt(E){return Ce(E,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function zt(E,...h){if("string"!=typeof E){const v=h[0],b=[...h.slice(1)];return b[0]&&(b[0].appName=E.name),E._errorFactory.create(v,...b)}return ft.create(E,...h)}function Et(E,h,...v){if(!E)throw zt(h,...v)}function Be(E){const h="INTERNAL ASSERTION FAILED: "+E;throw He(h),new Error(h)}function tn(E,h){E||Be(h)}function Ze(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.href)||""}function z(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.protocol)||null}class ie{constructor(h,v){this.shortDelay=h,this.longDelay=v,tn(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,te.jZ)()||(0,te.lV)()}get(){return function K(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function De(){return"http:"===z()||"https:"===z()}()||(0,te.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function se(E,h){tn(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class be{static initialize(h,v,b){this.fetchImpl=h,v&&(this.headersImpl=v),b&&(this.responseImpl=b)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void Be("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void Be("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void Be("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Xe={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},nn=new ie(3e4,6e4);function En(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function rn(E,h,v,b){return Mn.apply(this,arguments)}function Mn(){return(Mn=(0,W.A)(function*(E,h,v,b,Z={}){return Vn(E,Z,(0,W.A)(function*(){let ye={},ht={};b&&("GET"===h?ht=b:ye={body:JSON.stringify(b)});const Vt=(0,te.Am)(Object.assign({key:E.config.apiKey},ht)).slice(1),pn=yield E._getAdditionalHeaders();return pn["Content-Type"]="application/json",E.languageCode&&(pn["X-Firebase-Locale"]=E.languageCode),be.fetch()(wn(E,E.config.apiHost,v,Vt),Object.assign({method:h,headers:pn,referrerPolicy:"no-referrer"},ye))}))})).apply(this,arguments)}function Vn(E,h,v){return qn.apply(this,arguments)}function qn(){return(qn=(0,W.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Xe),h);try{const Z=new rr(E),ye=yield Promise.race([v(),Z.promise]);Z.clearNetworkTimeout();const ht=yield ye.json();if("needConfirmation"in ht)throw je(E,"account-exists-with-different-credential",ht);if(ye.ok&&!("errorMessage"in ht))return ht;{const Vt=ye.ok?ht.errorMessage:ht.error.message,[pn,On]=Vt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===pn)throw je(E,"credential-already-in-use",ht);if("EMAIL_EXISTS"===pn)throw je(E,"email-already-in-use",ht);if("USER_DISABLED"===pn)throw je(E,"user-disabled",ht);const ar=b[pn]||pn.toLowerCase().replace(/[_\s]+/g,"-");if(On)throw Ce(E,ar,On);Je(E,ar)}}catch(Z){if(Z instanceof te.g)throw Z;Je(E,"network-request-failed",{message:String(Z)})}})).apply(this,arguments)}function Zn(E,h,v,b){return Xn.apply(this,arguments)}function Xn(){return(Xn=(0,W.A)(function*(E,h,v,b,Z={}){const ye=yield rn(E,h,v,b,Z);return"mfaPendingCredential"in ye&&Je(E,"multi-factor-auth-required",{_serverResponse:ye}),ye})).apply(this,arguments)}function wn(E,h,v,b){const Z=`${h}${v}?${b}`;return E.config.emulator?se(E.config,Z):`${E.config.apiScheme}://${Z}`}function or(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class rr{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(mt(this.auth,"network-request-failed")),nn.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function je(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const Z=mt(E,h,b);return Z.customData._tokenResponse=v,Z}function Ft(E){return void 0!==E&&void 0!==E.enterprise}class Jt{constructor(h){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=h.recaptchaEnforcementState}getProviderEnforcementState(h){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===h)return or(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function Cn(E,h){return An.apply(this,arguments)}function An(){return(An=(0,W.A)(function*(E,h){return rn(E,"GET","/v2/recaptchaConfig",En(E,h))})).apply(this,arguments)}function Kt(){return(Kt=(0,W.A)(function*(E,h){return rn(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function Lr(E,h){return kr.apply(this,arguments)}function kr(){return(kr=(0,W.A)(function*(E,h){return rn(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function Cr(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function er(){return(er=(0,W.A)(function*(E,h=!1){const v=(0,te.Ku)(E),b=yield v.getIdToken(h),Z=Mr(b);Et(Z&&Z.exp&&Z.auth_time&&Z.iat,v.auth,"internal-error");const ye="object"==typeof Z.firebase?Z.firebase:void 0,ht=null==ye?void 0:ye.sign_in_provider;return{claims:Z,token:b,authTime:Cr(Pn(Z.auth_time)),issuedAtTime:Cr(Pn(Z.iat)),expirationTime:Cr(Pn(Z.exp)),signInProvider:ht||null,signInSecondFactor:(null==ye?void 0:ye.sign_in_second_factor)||null}})).apply(this,arguments)}function Pn(E){return 1e3*Number(E)}function Mr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return He("JWT malformed, contained fewer than 3 sections"),null;try{const Z=(0,te.u)(v);return Z?JSON.parse(Z):(He("Failed to decode base64 JWT payload"),null)}catch(Z){return He("Caught error parsing JWT payload as JSON",null==Z?void 0:Z.toString()),null}}function tr(E){const h=Mr(E);return Et(h,"internal-error"),Et(typeof h.exp<"u","internal-error"),Et(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function _r(E,h){return Ii.apply(this,arguments)}function Ii(){return(Ii=(0,W.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof te.g&&function Zr({code:E}){return"auth/user-disabled"===E||"auth/user-token-expired"===E}(b)&&E.auth.currentUser===E&&(yield E.auth.signOut()),b}})).apply(this,arguments)}class zr{constructor(h){this.user=h,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(h){var v;if(h){const b=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),b}{this.errorBackoff=3e4;const Z=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,Z)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,W.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,W.A)(function*(){try{yield h.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&h.schedule(!0))}h.schedule()})()}}class ue{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Cr(this.lastLoginAt),this.creationTime=Cr(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function We(E){return vt.apply(this,arguments)}function vt(){return(vt=(0,W.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),Z=yield _r(E,Lr(v,{idToken:b}));Et(null==Z?void 0:Z.users.length,v,"internal-error");const ye=Z.users[0];E._notifyReloadListener(ye);const ht=null!==(h=ye.providerUserInfo)&&void 0!==h&&h.length?Ne(ye.providerUserInfo):[],Vt=function ge(E,h){return[...E.filter(b=>!h.some(Z=>Z.providerId===b.providerId)),...h]}(E.providerData,ht),ar=!!E.isAnonymous&&!(E.email&&ye.passwordHash||null!=Vt&&Vt.length),ni={uid:ye.localId,displayName:ye.displayName||null,photoURL:ye.photoUrl||null,email:ye.email||null,emailVerified:ye.emailVerified||!1,phoneNumber:ye.phoneNumber||null,tenantId:ye.tenantId||null,providerData:Vt,metadata:new ue(ye.createdAt,ye.lastLoginAt),isAnonymous:ar};Object.assign(E,ni)})).apply(this,arguments)}function ce(){return(ce=(0,W.A)(function*(E){const h=(0,te.Ku)(E);yield We(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Ne(E){return E.map(h=>{var{providerId:v}=h,b=(0,Qe.Tt)(h,["providerId"]);return{providerId:v,uid:b.rawId||"",displayName:b.displayName||null,email:b.email||null,phoneNumber:b.phoneNumber||null,photoURL:b.photoUrl||null}})}function ne(){return(ne=(0,W.A)(function*(E,h){const v=yield Vn(E,{},(0,W.A)(function*(){const b=(0,te.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:Z,apiKey:ye}=E.config,ht=wn(E,Z,"/v1/token",`key=${ye}`),Vt=yield E._getAdditionalHeaders();return Vt["Content-Type"]="application/x-www-form-urlencoded",be.fetch()(ht,{method:"POST",headers:Vt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Ye(){return(Ye=(0,W.A)(function*(E,h){return rn(E,"POST","/v2/accounts:revokeToken",En(E,h))})).apply(this,arguments)}class Lt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Et(h.idToken,"internal-error"),Et(typeof h.idToken<"u","internal-error"),Et(typeof h.refreshToken<"u","internal-error");const v="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):tr(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,v)}updateFromIdToken(h){Et(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,W.A)(function*(){return v||!b.accessToken||b.isExpired?(Et(b.refreshToken,h,"user-token-expired"),b.refreshToken?(yield b.refresh(h,b.refreshToken),b.accessToken):null):b.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,v){var b=this;return(0,W.A)(function*(){const{accessToken:Z,refreshToken:ye,expiresIn:ht}=yield function St(E,h){return ne.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(Z,ye,Number(ht))})()}updateTokensAndExpiration(h,v,b){this.refreshToken=v||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*b}static fromJSON(h,v){const{refreshToken:b,accessToken:Z,expirationTime:ye}=v,ht=new Lt;return b&&(Et("string"==typeof b,"internal-error",{appName:h}),ht.refreshToken=b),Z&&(Et("string"==typeof Z,"internal-error",{appName:h}),ht.accessToken=Z),ye&&(Et("number"==typeof ye,"internal-error",{appName:h}),ht.expirationTime=ye),ht}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(h){this.accessToken=h.accessToken,this.refreshToken=h.refreshToken,this.expirationTime=h.expirationTime}_clone(){return Object.assign(new Lt,this.toJSON())}_performRefresh(){return Be("not implemented")}}function Xt(E,h){Et("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class cn{constructor(h){var{uid:v,auth:b,stsTokenManager:Z}=h,ye=(0,Qe.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new zr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=Z,this.accessToken=Z.accessToken,this.displayName=ye.displayName||null,this.email=ye.email||null,this.emailVerified=ye.emailVerified||!1,this.phoneNumber=ye.phoneNumber||null,this.photoURL=ye.photoURL||null,this.isAnonymous=ye.isAnonymous||!1,this.tenantId=ye.tenantId||null,this.providerData=ye.providerData?[...ye.providerData]:[],this.metadata=new ue(ye.createdAt||void 0,ye.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,W.A)(function*(){const b=yield _r(v,v.stsTokenManager.getToken(v.auth,h));return Et(b,v.auth,"internal-error"),v.accessToken!==b&&(v.accessToken=b,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),b})()}getIdTokenResult(h){return function ii(E){return er.apply(this,arguments)}(this,h)}reload(){return function ot(E){return ce.apply(this,arguments)}(this)}_assign(h){this!==h&&(Et(this.uid===h.uid,this.auth,"internal-error"),this.displayName=h.displayName,this.photoURL=h.photoURL,this.email=h.email,this.emailVerified=h.emailVerified,this.phoneNumber=h.phoneNumber,this.isAnonymous=h.isAnonymous,this.tenantId=h.tenantId,this.providerData=h.providerData.map(v=>Object.assign({},v)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const v=new cn(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){Et(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=h,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(h){this.reloadListener?this.reloadListener(h):this.reloadUserInfo=h}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(h,v=!1){var b=this;return(0,W.A)(function*(){let Z=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),Z=!0),v&&(yield We(b)),yield b.auth._persistUserIfCurrent(b),Z&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,W.A)(function*(){if((0,Ie.xZ)(h.auth.app))return Promise.reject(nt(h.auth));const v=yield h.getIdToken();return yield _r(h,function sn(E,h){return Kt.apply(this,arguments)}(h.auth,{idToken:v})),h.stsTokenManager.clearRefreshToken(),h.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(h=>Object.assign({},h)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(h,v){var b,Z,ye,ht,Vt,pn,On,ar;const ni=null!==(b=v.displayName)&&void 0!==b?b:void 0,Fo=null!==(Z=v.email)&&void 0!==Z?Z:void 0,Ji=null!==(ye=v.phoneNumber)&&void 0!==ye?ye:void 0,sa=null!==(ht=v.photoURL)&&void 0!==ht?ht:void 0,Wd=null!==(Vt=v.tenantId)&&void 0!==Vt?Vt:void 0,ou=null!==(pn=v._redirectEventId)&&void 0!==pn?pn:void 0,Kd=null!==(On=v.createdAt)&&void 0!==On?On:void 0,Yu=null!==(ar=v.lastLoginAt)&&void 0!==ar?ar:void 0,{uid:Ju,emailVerified:Zu,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;Et(Ju&&Cf,h,"internal-error");const Xd=Lt.fromJSON(this.name,Cf);Et("string"==typeof Ju,h,"internal-error"),Xt(ni,h.name),Xt(Fo,h.name),Et("boolean"==typeof Zu,h,"internal-error"),Et("boolean"==typeof Af,h,"internal-error"),Xt(Ji,h.name),Xt(sa,h.name),Xt(Wd,h.name),Xt(ou,h.name),Xt(Kd,h.name),Xt(Yu,h.name);const qd=new cn({uid:Ju,auth:h,email:Fo,emailVerified:Zu,displayName:ni,isAnonymous:Af,photoURL:sa,phoneNumber:Ji,tenantId:Wd,stsTokenManager:Xd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(qd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(qd._redirectEventId=ou),qd}static _fromIdTokenResponse(h,v,b=!1){return(0,W.A)(function*(){const Z=new Lt;Z.updateFromServerResponse(v);const ye=new cn({uid:v.localId,auth:h,stsTokenManager:Z,isAnonymous:b});return yield We(ye),ye})()}static _fromGetAccountInfoResponse(h,v,b){return(0,W.A)(function*(){const Z=v.users[0];Et(void 0!==Z.localId,"internal-error");const ye=void 0!==Z.providerUserInfo?Ne(Z.providerUserInfo):[],ht=!(Z.email&&Z.passwordHash||null!=ye&&ye.length),Vt=new Lt;Vt.updateFromIdToken(b);const pn=new cn({uid:Z.localId,auth:h,stsTokenManager:Vt,isAnonymous:ht}),On={uid:Z.localId,displayName:Z.displayName||null,photoURL:Z.photoUrl||null,email:Z.email||null,emailVerified:Z.emailVerified||!1,phoneNumber:Z.phoneNumber||null,tenantId:Z.tenantId||null,providerData:ye,metadata:new ue(Z.createdAt,Z.lastLoginAt),isAnonymous:!(Z.email&&Z.passwordHash||null!=ye&&ye.length)};return Object.assign(pn,On),pn})()}}const Hn=new Map;function dn(E){tn(E instanceof Function,"Expected a class definition");let h=Hn.get(E);return h?(tn(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,Hn.set(E,h),h)}const Qn=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,W.A)(function*(){return!0})()}_set(v,b){var Z=this;return(0,W.A)(function*(){Z.storage[v]=b})()}_get(v){var b=this;return(0,W.A)(function*(){const Z=b.storage[v];return void 0===Z?null:Z})()}_remove(v){var b=this;return(0,W.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Pr(E,h,v){return`firebase:${E}:${h}:${v}`}class yr{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:Z,name:ye}=this.auth;this.fullUserKey=Pr(this.userKey,Z.apiKey,ye),this.fullPersistenceKey=Pr("persistence",Z.apiKey,ye),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,W.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?cn._fromJSON(h.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var v=this;return(0,W.A)(function*(){if(v.persistence===h)return;const b=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=h,b?v.setCurrentUser(b):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,v,b="authUser"){return(0,W.A)(function*(){if(!v.length)return new yr(dn(Qn),h,b);const Z=(yield Promise.all(v.map(function(){var On=(0,W.A)(function*(ar){if(yield ar._isAvailable())return ar});return function(ar){return On.apply(this,arguments)}}()))).filter(On=>On);let ye=Z[0]||dn(Qn);const ht=Pr(b,h.config.apiKey,h.name);let Vt=null;for(const On of v)try{const ar=yield On._get(ht);if(ar){const ni=cn._fromJSON(h,ar);On!==ye&&(Vt=ni),ye=On;break}}catch{}const pn=Z.filter(On=>On._shouldAllowMigration);return ye._shouldAllowMigration&&pn.length?(ye=pn[0],Vt&&(yield ye._set(ht,Vt.toJSON())),yield Promise.all(v.map(function(){var On=(0,W.A)(function*(ar){if(ar!==ye)try{yield ar._remove(ht)}catch{}});return function(ar){return On.apply(this,arguments)}}())),new yr(ye,h,b)):new yr(ye,h,b)})()}}function Vr(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(Mi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(gi(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(Nt(h))return"Blackberry";if(_t(h))return"Webos";if(ir(h))return"Safari";if((h.includes("chrome/")||Fi(h))&&!h.includes("edge/"))return"Chrome";if(mi(h))return"Android";{const b=E.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==b?void 0:b.length))return b[1]}return"Other"}function gi(E=(0,te.ZQ)()){return/firefox\//i.test(E)}function ir(E=(0,te.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Fi(E=(0,te.ZQ)()){return/crios\//i.test(E)}function Mi(E=(0,te.ZQ)()){return/iemobile/i.test(E)}function mi(E=(0,te.ZQ)()){return/android/i.test(E)}function Nt(E=(0,te.ZQ)()){return/blackberry/i.test(E)}function _t(E=(0,te.ZQ)()){return/webos/i.test(E)}function jt(E=(0,te.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function U(E=(0,te.ZQ)()){return jt(E)||mi(E)||_t(E)||Nt(E)||/windows phone/i.test(E)||Mi(E)}function $(E,h=[]){let v;switch(E){case"Browser":v=Vr((0,te.ZQ)());break;case"Worker":v=`${Vr((0,te.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ie.MF}/${b}`}class ae{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=ye=>new Promise((ht,Vt)=>{try{ht(h(ye))}catch(pn){Vt(pn)}});b.onAbort=v,this.queue.push(b);const Z=this.queue.length-1;return()=>{this.queue[Z]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,W.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const Z of v.queue)yield Z(h),Z.onAbort&&b.push(Z.onAbort)}catch(Z){b.reverse();for(const ye of b)try{ye()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==Z?void 0:Z.message})}})()}}function ct(){return(ct=(0,W.A)(function*(E,h={}){return rn(E,"GET","/v2/passwordPolicy",En(E,h))})).apply(this,arguments)}class qt{constructor(h){var v,b,Z,ye;const ht=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=ht.minPasswordLength)&&void 0!==v?v:6,ht.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=ht.maxPasswordLength),void 0!==ht.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=ht.containsLowercaseCharacter),void 0!==ht.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=ht.containsUppercaseCharacter),void 0!==ht.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=ht.containsNumericCharacter),void 0!==ht.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=ht.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(Z=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==Z?Z:"",this.forceUpgradeOnSignin=null!==(ye=h.forceUpgradeOnSignin)&&void 0!==ye&&ye,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,Z,ye,ht,Vt;const pn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,pn),this.validatePasswordCharacterOptions(h,pn),pn.isValid&&(pn.isValid=null===(v=pn.meetsMinPasswordLength)||void 0===v||v),pn.isValid&&(pn.isValid=null===(b=pn.meetsMaxPasswordLength)||void 0===b||b),pn.isValid&&(pn.isValid=null===(Z=pn.containsLowercaseLetter)||void 0===Z||Z),pn.isValid&&(pn.isValid=null===(ye=pn.containsUppercaseLetter)||void 0===ye||ye),pn.isValid&&(pn.isValid=null===(ht=pn.containsNumericCharacter)||void 0===ht||ht),pn.isValid&&(pn.isValid=null===(Vt=pn.containsNonAlphanumericCharacter)||void 0===Vt||Vt),pn}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,Z=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),Z&&(v.meetsMaxPasswordLength=h.length<=Z)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let Z=0;Z="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,Z,ye){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=Z)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=ye))}}class Wn{constructor(h,v,b,Z){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=Z,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Hr(this),this.idTokenSubscription=new Hr(this),this.beforeStateQueue=new ae(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=ft,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=h.name,this.clientVersion=Z.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=dn(v)),this._initializationPromise=this.queue((0,W.A)(function*(){var Z,ye;if(!b._deleted&&(b.persistenceManager=yield yr.create(b,h),!b._deleted)){if(null!==(Z=b._popupRedirectResolver)&&void 0!==Z&&Z._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(ye=b.currentUser)||void 0===ye?void 0:ye.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,W.A)(function*(){if(h._deleted)return;const v=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||v){if(h.currentUser&&v&&h.currentUser.uid===v.uid)return h._currentUser._assign(v),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(h){var v=this;return(0,W.A)(function*(){try{const b=yield Lr(v,{idToken:h}),Z=yield cn._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(Z)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,W.A)(function*(){var b;if((0,Ie.xZ)(v.app)){const Vt=v.app.settings.authIdToken;return Vt?new Promise(pn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Vt).then(pn,pn))}):v.directlySetCurrentUser(null)}const Z=yield v.assertedPersistence.getCurrentUser();let ye=Z,ht=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Vt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,pn=null==ye?void 0:ye._redirectEventId,On=yield v.tryRedirectSignIn(h);(!Vt||Vt===pn)&&null!=On&&On.user&&(ye=On.user,ht=!0)}if(!ye)return v.directlySetCurrentUser(null);if(!ye._redirectEventId){if(ht)try{yield v.beforeStateQueue.runMiddleware(ye)}catch(Vt){ye=Z,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Vt))}return ye?v.reloadAndSetCurrentUserOrClear(ye):v.directlySetCurrentUser(null)}return Et(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===ye._redirectEventId?v.directlySetCurrentUser(ye):v.reloadAndSetCurrentUserOrClear(ye)})()}tryRedirectSignIn(h){var v=this;return(0,W.A)(function*(){let b=null;try{b=yield v._popupRedirectResolver._completeRedirectFn(v,h,!0)}catch{yield v._setRedirectUser(null)}return b})()}reloadAndSetCurrentUserOrClear(h){var v=this;return(0,W.A)(function*(){try{yield We(h)}catch(b){if("auth/network-request-failed"!==(null==b?void 0:b.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function q(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,W.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,W.A)(function*(){if((0,Ie.xZ)(v.app))return Promise.reject(nt(v));const b=h?(0,te.Ku)(h):null;return b&&Et(b.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(b&&b._clone(v))})()}_updateCurrentUser(h,v=!1){var b=this;return(0,W.A)(function*(){if(!b._deleted)return h&&Et(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,W.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,W.A)(function*(){return(0,Ie.xZ)(h.app)?Promise.reject(nt(h)):(yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0))})()}setPersistence(h){var v=this;return(0,Ie.xZ)(this.app)?Promise.reject(nt(this)):this.queue((0,W.A)(function*(){yield v.assertedPersistence.setPersistence(dn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,W.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const b=v._getPasswordPolicyInternal();return b.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):b.validatePassword(h)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var h=this;return(0,W.A)(function*(){const v=yield function ke(E){return ct.apply(this,arguments)}(h),b=new qt(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new te.FA("auth","Firebase",h())}onAuthStateChanged(h,v,b){return this.registerStateListener(this.authStateSubscription,h,v,b)}beforeAuthStateChanged(h,v){return this.beforeStateQueue.pushCallback(h,v)}onIdTokenChanged(h,v,b){return this.registerStateListener(this.idTokenSubscription,h,v,b)}authStateReady(){return new Promise((h,v)=>{if(this.currentUser)h();else{const b=this.onAuthStateChanged(()=>{b(),h()},v)}})}revokeAccessToken(h){var v=this;return(0,W.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),Z={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(Z.tenantId=v.tenantId),yield function et(E,h){return Ye.apply(this,arguments)}(v,Z)}})()}toJSON(){var h;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(h=this._currentUser)||void 0===h?void 0:h.toJSON()}}_setRedirectUser(h,v){var b=this;return(0,W.A)(function*(){const Z=yield b.getOrInitRedirectPersistenceManager(v);return null===h?Z.removeCurrentUser():Z.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,W.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&dn(h)||v._popupRedirectResolver;Et(b,v,"argument-error"),v.redirectPersistenceManager=yield yr.create(v,[dn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,W.A)(function*(){var b,Z;return v._isInitialized&&(yield v.queue((0,W.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(Z=v.redirectUser)||void 0===Z?void 0:Z._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,W.A)(function*(){if(h===v.currentUser)return v.queue((0,W.A)(function*(){return v.directlySetCurrentUser(h)}))})()}_notifyListenersIfCurrent(h){h===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var h,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const b=null!==(v=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==b&&(this.lastNotifiedUid=b,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,v,b,Z){if(this._deleted)return()=>{};const ye="function"==typeof v?v:v.next.bind(v);let ht=!1;const Vt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Et(Vt,this,"internal-error"),Vt.then(()=>{ht||ye(this.currentUser)}),"function"==typeof v){const pn=h.addObserver(v,b,Z);return()=>{ht=!0,pn()}}{const pn=h.addObserver(v);return()=>{ht=!0,pn()}}}directlySetCurrentUser(h){var v=this;return(0,W.A)(function*(){v.currentUser&&v.currentUser!==h&&v._currentUser._stopProactiveRefresh(),h&&v.isProactiveRefreshEnabled&&h._startProactiveRefresh(),v.currentUser=h,h?yield v.assertedPersistence.setCurrentUser(h):yield v.assertedPersistence.removeCurrentUser()})()}queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return Et(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=$(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,W.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const Z=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();Z&&(b["X-Firebase-Client"]=Z);const ye=yield h._getAppCheckToken();return ye&&(b["X-Firebase-AppCheck"]=ye),b})()}_getAppCheckToken(){var h=this;return(0,W.A)(function*(){var v;const b=yield null===(v=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=b&&b.error&&function Ke(E,...h){Pe.logLevel<=Ge.$b.WARN&&Pe.warn(`Auth (${Ie.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function $n(E){return(0,te.Ku)(E)}class Hr{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,te.tD)(v=>this.observer=v)}get next(){return Et(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let gr={loadJS:()=>(0,W.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Ir(E){return gr.loadJS(E)}function Fr(E){return`__${E}${Math.floor(1e6*Math.random())}`}class ei{constructor(h){this.type="recaptcha-enterprise",this.auth=$n(h)}verify(h="verify",v=!1){var b=this;return(0,W.A)(function*(){function ye(){return ye=(0,W.A)(function*(Vt){if(!v){if(null==Vt.tenantId&&null!=Vt._agentRecaptchaConfig)return Vt._agentRecaptchaConfig.siteKey;if(null!=Vt.tenantId&&void 0!==Vt._tenantRecaptchaConfigs[Vt.tenantId])return Vt._tenantRecaptchaConfigs[Vt.tenantId].siteKey}return new Promise(function(){var pn=(0,W.A)(function*(On,ar){Cn(Vt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(ni=>{if(void 0!==ni.recaptchaKey){const Fo=new Jt(ni);return null==Vt.tenantId?Vt._agentRecaptchaConfig=Fo:Vt._tenantRecaptchaConfigs[Vt.tenantId]=Fo,On(Fo.siteKey)}ar(new Error("recaptcha Enterprise site key undefined"))}).catch(ni=>{ar(ni)})});return function(On,ar){return pn.apply(this,arguments)}}())}),ye.apply(this,arguments)}function ht(Vt,pn,On){const ar=window.grecaptcha;Ft(ar)?ar.enterprise.ready(()=>{ar.enterprise.execute(Vt,{action:h}).then(ni=>{pn(ni)}).catch(()=>{pn("NO_RECAPTCHA")})}):On(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Vt,pn)=>{(function Z(Vt){return ye.apply(this,arguments)})(b.auth).then(On=>{if(!v&&Ft(window.grecaptcha))ht(On,Vt,pn);else{if(typeof window>"u")return void pn(new Error("RecaptchaVerifier is only supported in browser"));let ar=function sr(){return gr.recaptchaEnterpriseScript}();0!==ar.length&&(ar+=On),Ir(ar).then(()=>{ht(On,Vt,pn)}).catch(ni=>{pn(ni)})}}).catch(On=>{pn(On)})})})()}}function kn(E,h,v){return Ln.apply(this,arguments)}function Ln(){return(Ln=(0,W.A)(function*(E,h,v,b=!1){const Z=new ei(E);let ye;try{ye=yield Z.verify(v)}catch{ye=yield Z.verify(v,!0)}const ht=Object.assign({},h);return Object.assign(ht,b?{captchaResp:ye}:{captchaResponse:ye}),Object.assign(ht,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(ht,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),ht})).apply(this,arguments)}function _o(E,h,v,b){return ai.apply(this,arguments)}function ai(){return ai=(0,W.A)(function*(E,h,v,b){var Z;if(null!==(Z=E._getRecaptchaConfig())&&void 0!==Z&&Z.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const ye=yield kn(E,h,v,"getOobCode"===v);return b(E,ye)}return b(E,h).catch(function(){var ye=(0,W.A)(function*(ht){if("auth/missing-recaptcha-token"===ht.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Vt=yield kn(E,h,v,"getOobCode"===v);return b(E,Vt)}return Promise.reject(ht)});return function(ht){return ye.apply(this,arguments)}}())}),ai.apply(this,arguments)}function Kr(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function Yn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class To{constructor(h,v){this.providerId=h,this.signInMethod=v}toJSON(){return Be("not implemented")}_getIdTokenResponse(h){return Be("not implemented")}_linkToIdToken(h,v){return Be("not implemented")}_getReauthenticationResolver(h){return Be("not implemented")}}function S(E,h){return Q.apply(this,arguments)}function Q(){return(Q=(0,W.A)(function*(E,h){return rn(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function _e(E,h){return st.apply(this,arguments)}function st(){return(st=(0,W.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithPassword",En(E,h))})).apply(this,arguments)}function ln(){return(ln=(0,W.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithEmailLink",En(E,h))})).apply(this,arguments)}function xn(){return(xn=(0,W.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithEmailLink",En(E,h))})).apply(this,arguments)}class Gn extends To{constructor(h,v,b,Z=null){super("password",b),this._email=h,this._password=v,this._tenantId=Z}static _fromEmailAndPassword(h,v){return new Gn(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Gn(h,v,"emailLink",b)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const v="string"==typeof h?JSON.parse(h):h;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(h){var v=this;return(0,W.A)(function*(){switch(v.signInMethod){case"password":return _o(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",_e);case"emailLink":return function Zt(E,h){return ln.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Je(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,W.A)(function*(){switch(b.signInMethod){case"password":return _o(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function Sn(E,h){return xn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Je(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function Rn(E,h){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,W.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signInWithIdp",En(E,h))})).apply(this,arguments)}class ss{constructor(h){var v,b,Z,ye,ht,Vt;const pn=(0,te.I9)((0,te.hp)(h)),On=null!==(v=pn.apiKey)&&void 0!==v?v:null,ar=null!==(b=pn.oobCode)&&void 0!==b?b:null,ni=function wo(E){switch(E){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(Z=pn.mode)&&void 0!==Z?Z:null);Et(On&&ar&&ni,"argument-error"),this.apiKey=On,this.operation=ni,this.code=ar,this.continueUrl=null!==(ye=pn.continueUrl)&&void 0!==ye?ye:null,this.languageCode=null!==(ht=pn.languageCode)&&void 0!==ht?ht:null,this.tenantId=null!==(Vt=pn.tenantId)&&void 0!==Vt?Vt:null}static parseLink(h){const v=function xa(E){const h=(0,te.I9)((0,te.hp)(E)).link,v=h?(0,te.I9)((0,te.hp)(h)).deep_link_id:null,b=(0,te.I9)((0,te.hp)(E)).deep_link_id;return(b?(0,te.I9)((0,te.hp)(b)).link:null)||b||v||h||E}(h);try{return new ss(v)}catch{return null}}}let jr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Gn._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const Z=ss.parseLink(b);return Et(Z,"argument-error"),Gn._fromEmailAndCode(v,Z.code,Z.tenantId)}}return E.PROVIDER_ID="password",E.EMAIL_PASSWORD_SIGN_IN_METHOD="password",E.EMAIL_LINK_SIGN_IN_METHOD="emailLink",E})();class oo{constructor(h){this.providerId=h,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(h){this.defaultLanguageCode=h}setCustomParameters(h){return this.customParameters=h,this}getCustomParameters(){return this.customParameters}}class Us extends oo{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}function Yo(E,h){return So.apply(this,arguments)}function So(){return(So=(0,W.A)(function*(E,h){return Zn(E,"POST","/v1/accounts:signUp",En(E,h))})).apply(this,arguments)}class zi{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,Z=!1){return(0,W.A)(function*(){const ye=yield cn._fromIdTokenResponse(h,b,Z),ht=da(b);return new zi({user:ye,providerId:ht,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,W.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const Z=da(b);return new zi({user:h,providerId:Z,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class N extends te.g{constructor(h,v,b,Z){var ye;super(v.code,v.message),this.operationType=b,this.user=Z,Object.setPrototypeOf(this,N.prototype),this.customData={appName:h.name,tenantId:null!==(ye=h.tenantId)&&void 0!==ye?ye:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,Z){return new N(h,v,b,Z)}}function ve(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(ye=>{throw"auth/multi-factor-auth-required"===ye.code?N._fromErrorAndOperation(E,ye,h,b):ye})}function hr(){return(hr=(0,W.A)(function*(E,h,v=!1){const b=yield _r(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return zi._forOperation(E,"link",b)})).apply(this,arguments)}function Jo(){return(Jo=(0,W.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ie.xZ)(b.app))return Promise.reject(nt(b));const Z="reauthenticate";try{const ye=yield _r(E,ve(b,Z,h,E),v);Et(ye.idToken,b,"internal-error");const ht=Mr(ye.idToken);Et(ht,b,"internal-error");const{sub:Vt}=ht;return Et(E.uid===Vt,b,"user-mismatch"),zi._forOperation(E,Z,ye)}catch(ye){throw"auth/user-not-found"===(null==ye?void 0:ye.code)&&Je(b,"user-mismatch"),ye}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,W.A)(function*(E,h,v=!1){if((0,Ie.xZ)(E.app))return Promise.reject(nt(E));const b="signIn",Z=yield ve(E,b,h),ye=yield zi._fromIdTokenResponse(E,b,Z);return v||(yield E._updateCurrentUser(ye.user)),ye})).apply(this,arguments)}function Oa(){return(Oa=(0,W.A)(function*(E,h){return Na($n(E),h)})).apply(this,arguments)}function Ll(E){return Sr.apply(this,arguments)}function Sr(){return(Sr=(0,W.A)(function*(E){const h=$n(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,W.A)(function*(E,h,v){if((0,Ie.xZ)(E.app))return Promise.reject(nt(E));const b=$n(E),ht=yield _o(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Yo).catch(pn=>{throw"auth/password-does-not-meet-requirements"===pn.code&&Ll(E),pn}),Vt=yield zi._fromIdTokenResponse(b,"signIn",ht);return yield b._updateCurrentUser(Vt.user),Vt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ie.xZ)(E.app)?Promise.reject(nt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,te.Ku)(E),jr.credential(h,v)).catch(function(){var b=(0,W.A)(function*(Z){throw"auth/password-does-not-meet-requirements"===Z.code&&Ll(E),Z});return function(Z){return b.apply(this,arguments)}}())}function Ui(E,h,v,b){return(0,te.Ku)(E).onIdTokenChanged(h,v,b)}const Gs="__sak";class jl{constructor(h,v){this.storageRetriever=h,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(Gs,"1"),this.storage.removeItem(Gs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,v){return this.storage.setItem(h,JSON.stringify(v)),Promise.resolve()}_get(h){const v=this.storage.getItem(h);return Promise.resolve(v?JSON.parse(v):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const $a=(()=>{class E extends jl{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,b)=>this.onStorageEvent(v,b),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Qr(){const E=(0,te.ZQ)();return ir(E)||jt(E)}()&&function ee(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=U(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const Z=this.storage.getItem(b),ye=this.localCache[b];Z!==ye&&v(b,ye,Z)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Vt,pn,On)=>{this.notifyListeners(Vt,On)});const Z=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Vt=this.storage.getItem(Z);if(v.newValue!==Vt)null!==v.newValue?this.storage.setItem(Z,v.newValue):this.storage.removeItem(Z);else if(this.localCache[Z]===v.newValue&&!b)return}const ye=()=>{const Vt=this.storage.getItem(Z);!b&&this.localCache[Z]===Vt||this.notifyListeners(Z,Vt)},ht=this.storage.getItem(Z);!function R(){return(0,te.lT)()&&10===document.documentMode}()||ht===v.newValue||v.newValue===v.oldValue?ye():setTimeout(ye,10)}notifyListeners(v,b){this.localCache[v]=b;const Z=this.listeners[v];if(Z)for(const ye of Array.from(Z))ye(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,Z)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:Z}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,b){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,b){var Z=()=>super._set,ye=this;return(0,W.A)(function*(){yield Z().call(ye,v,b),ye.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,Z=this;return(0,W.A)(function*(){const ye=yield b().call(Z,v);return Z.localCache[v]=JSON.stringify(ye),ye})()}_remove(v){var b=()=>super._remove,Z=this;return(0,W.A)(function*(){yield b().call(Z,v),delete Z.localCache[v]})()}}return E.type="LOCAL",E})(),Bo=(()=>{class E extends jl{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,b){}_removeListener(v,b){}}return E.type="SESSION",E})();let Ks=(()=>{class E{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const b=this.receivers.find(ye=>ye.isListeningto(v));if(b)return b;const Z=new E(v);return this.receivers.push(Z),Z}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,W.A)(function*(){const Z=v,{eventId:ye,eventType:ht,data:Vt}=Z.data,pn=b.handlersMap[ht];if(null==pn||!pn.size)return;Z.ports[0].postMessage({status:"ack",eventId:ye,eventType:ht});const On=Array.from(pn).map(function(){var ni=(0,W.A)(function*(Fo){return Fo(Z.origin,Vt)});return function(Fo){return ni.apply(this,arguments)}}()),ar=yield function ya(E){return Promise.all(E.map(function(){var h=(0,W.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(b){return{fulfilled:!1,reason:b}}});return function(v){return h.apply(this,arguments)}}()))}(On);Z.ports[0].postMessage({status:"done",eventId:ye,eventType:ht,response:ar})})()}_subscribe(v,b){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(b)}_unsubscribe(v,b){this.handlersMap[v]&&b&&this.handlersMap[v].delete(b),(!b||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return E.receivers=[],E})();function Bi(E="",h=10){let v="";for(let b=0;b{const ar=Bi("",20);ye.port1.start();const ni=setTimeout(()=>{On(new Error("unsupported_event"))},b);Vt={messageChannel:ye,onMessage(Fo){const Ji=Fo;if(Ji.data.eventId===ar)switch(Ji.data.status){case"ack":clearTimeout(ni),ht=setTimeout(()=>{On(new Error("timeout"))},3e3);break;case"done":clearTimeout(ht),pn(Ji.data.response);break;default:clearTimeout(ni),clearTimeout(ht),On(new Error("invalid_response"))}}},Z.handlers.add(Vt),ye.port1.addEventListener("message",Vt.onMessage),Z.target.postMessage({eventType:h,eventId:ar,data:v},[ye.port2])}).finally(()=>{Vt&&Z.removeMessageHandler(Vt)})})()}}function Yr(){return window}function zl(){return typeof Yr().WorkerGlobalScope<"u"&&"function"==typeof Yr().importScripts}function Ia(){return(Ia=(0,W.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Gl="firebaseLocalStorageDb",Ea="firebaseLocalStorage",Mu="fbase_key";class Ba{constructor(h){this.request=h}toPromise(){return new Promise((h,v)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(E,h){return E.transaction([Ea],h?"readwrite":"readonly").objectStore(Ea)}function mc(){const E=indexedDB.open(Gl,1);return new Promise((h,v)=>{E.addEventListener("error",()=>{v(E.error)}),E.addEventListener("upgradeneeded",()=>{const b=E.result;try{b.createObjectStore(Ea,{keyPath:Mu})}catch(Z){v(Z)}}),E.addEventListener("success",(0,W.A)(function*(){const b=E.result;b.objectStoreNames.contains(Ea)?h(b):(b.close(),yield function Gh(){const E=indexedDB.deleteDatabase(Gl);return new Ba(E).toPromise()}(),h(yield mc()))}))})}function Xs(E,h,v){return qs.apply(this,arguments)}function qs(){return(qs=(0,W.A)(function*(E,h,v){const b=ja(E,!0).put({[Mu]:h,value:v});return new Ba(b).toPromise()})).apply(this,arguments)}function Cd(){return(Cd=(0,W.A)(function*(E,h){const v=ja(E,!1).get(h),b=yield new Ba(v).toPromise();return void 0===b?null:b.value})).apply(this,arguments)}function Td(E,h){const v=ja(E,!0).delete(h);return new Ba(v).toPromise()}const Kh=(()=>{class E{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,W.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,W.A)(function*(){let Z=0;for(;;)try{const ye=yield b._openDb();return yield v(ye)}catch(ye){if(Z++>3)throw ye;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,W.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,W.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,W.A)(function*(Z,ye){return{keyProcessed:(yield v._poll()).includes(ye.key)}});return function(Z,ye){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,W.A)(function*(Z,ye){return["keyChanged"]});return function(Z,ye){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,W.A)(function*(){var b,Z;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const ye=yield v.sender._send("ping",{},800);ye&&null!==(b=ye[0])&&void 0!==b&&b.fulfilled&&null!==(Z=ye[0])&&void 0!==Z&&Z.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,W.A)(function*(){if(b.sender&&b.activeServiceWorker&&function cs(){var E;return(null===(E=null==navigator?void 0:navigator.serviceWorker)||void 0===E?void 0:E.controller)||null}()===b.activeServiceWorker)try{yield b.sender._send("keyChanged",{key:v},b.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,W.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield Xs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,W.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var Z=this;return(0,W.A)(function*(){return Z._withPendingWrite((0,W.A)(function*(){return yield Z._withRetries(ye=>Xs(ye,v,b)),Z.localCache[v]=b,Z.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,W.A)(function*(){const Z=yield b._withRetries(ye=>function Ad(E,h){return Cd.apply(this,arguments)}(ye,v));return b.localCache[v]=Z,Z})()}_remove(v){var b=this;return(0,W.A)(function*(){return b._withPendingWrite((0,W.A)(function*(){return yield b._withRetries(Z=>Td(Z,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,W.A)(function*(){const b=yield v._withRetries(ht=>{const Vt=ja(ht,!1).getAll();return new Ba(Vt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const Z=[],ye=new Set;if(0!==b.length)for(const{fbase_key:ht,value:Vt}of b)ye.add(ht),JSON.stringify(v.localCache[ht])!==JSON.stringify(Vt)&&(v.notifyListeners(ht,Vt),Z.push(ht));for(const ht of Object.keys(v.localCache))v.localCache[ht]&&!ye.has(ht)&&(v.notifyListeners(ht,null),Z.push(ht));return Z})()}notifyListeners(v,b){this.localCache[v]=b;const Z=this.listeners[v];if(Z)for(const ye of Array.from(Z))ye(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,W.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,b){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return E.type="LOCAL",E})();Fr("rcb"),new ie(3e4,6e4);class Mo extends To{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return Rn(h,this._buildIdpRequest())}_linkToIdToken(h,v){return Rn(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return Rn(h,this._buildIdpRequest())}_buildIdpRequest(h){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return h&&(v.idToken=h),v}}function Dd(E){return Na(E.auth,new Mo(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return Et(v,h,"internal-error"),function eo(E,h){return Jo.apply(this,arguments)}(v,new Mo(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,W.A)(function*(E){const{auth:h,user:v}=E;return Et(v,h,"internal-error"),function Un(E,h){return hr.apply(this,arguments)}(v,new Mo(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,Z,ye=!1){this.auth=h,this.resolver=b,this.user=Z,this.bypassAuthState=ye,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,W.A)(function*(b,Z){h.pendingPromise={resolve:b,reject:Z};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(ye){h.reject(ye)}});return function(b,Z){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,W.A)(function*(){const{urlResponse:b,sessionId:Z,postBody:ye,tenantId:ht,error:Vt,type:pn}=h;if(Vt)return void v.reject(Vt);const On={auth:v.auth,requestUri:b,sessionId:Z,tenantId:ht||void 0,postBody:ye||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(pn)(On))}catch(ar){v.reject(ar)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Dd;case"linkViaPopup":case"linkViaRedirect":return _c;case"reauthViaPopup":case"reauthViaRedirect":return vc;default:Je(this.auth,"internal-error")}}resolve(h){tn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){tn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(h),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new ie(2e3,1e4);const nr="pendingRedirect",pl=new Map;class wd extends yc{constructor(h,v,b=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,b),this.eventId=null}execute(){var h=()=>super.execute,v=this;return(0,W.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const ye=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(ye)}catch(Z){b=()=>Promise.reject(Z)}pl.set(v.auth._key(),b)}return v.bypassAuthState||pl.set(v.auth._key(),()=>Promise.resolve(null)),b()})()}onAuthEvent(h){var v=()=>super.onAuthEvent,b=this;return(0,W.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const Z=yield b.auth._redirectUserForId(h.eventId);if(Z)return b.user=Z,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,W.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,W.A)(function*(E,h){const v=function ml(E){return Pr(nr,E.config.apiKey,E.name)}(h),b=function Xh(E){return dn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const Z="true"===(yield b._get(v));return yield b._remove(v),Z})).apply(this,arguments)}function gl(E,h){pl.set(E._key(),h)}function Nu(E,h){return Rd.apply(this,arguments)}function Rd(){return(Rd=(0,W.A)(function*(E,h,v=!1){if((0,Ie.xZ)(E.app))return Promise.reject(nt(E));const b=$n(E),Z=function ds(E,h){return h?dn(h):(Et(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),ht=yield new wd(b,Z,v).execute();return ht&&!v&&(delete ht.user._redirectEventId,yield b._persistUserIfCurrent(ht.user),yield b._setRedirectUser(null,h)),ht})).apply(this,arguments)}class ta{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(h){this.consumers.add(h),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,h)&&(this.sendToConsumer(this.queuedRedirectEvent,h),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(h){this.consumers.delete(h)}onEvent(h){if(this.hasEventBeenHandled(h))return!1;let v=!1;return this.consumers.forEach(b=>{this.isEventForConsumer(h,b)&&(v=!0,this.sendToConsumer(h,b),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function na(E){switch(E.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ts(E);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=h,v=!0)),v}sendToConsumer(h,v){var b;if(h.error&&!Ts(h)){const Z=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(mt(this.auth,Z))}else v.onAuthEvent(h)}isEventForConsumer(h,v){const b=null===v.eventId||!!h.eventId&&h.eventId===v.eventId;return v.filter.includes(h.type)&&b}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Cc(h))}saveEventToCache(h){this.cachedEventUids.add(Cc(h)),this.lastProcessedEventTime=Date.now()}}function Cc(E){return[E.type,E.eventId,E.sessionId,E.tenantId].filter(h=>h).join("-")}function Ts({type:E,error:h}){return"unknown"===E&&"auth/no-auth-event"===(null==h?void 0:h.code)}function Tc(){return(Tc=(0,W.A)(function*(E,h={}){return rn(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Eo=/^https?/;function Ou(){return Ou=(0,W.A)(function*(E){if(E.config.emulator)return;const{authorizedDomains:h}=yield function ng(E){return Tc.apply(this,arguments)}(E);for(const v of h)try{if(xd(v))return}catch{}Je(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=Ze(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const ht=new URL(E);return""===ht.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&ht.hostname===b}if(!Eo.test(v))return!1;if(Md.test(E))return b===E;const Z=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+Z+"|"+Z+")$","i").test(b)}const Dc=new ie(3e4,6e4);function bc(){const E=Yr().___jsl;if(null!=E&&E.H)for(const h of Object.keys(E.H))if(E.H[h].r=E.H[h].r||[],E.H[h].L=E.H[h].L||[],E.H[h].r=[...E.H[h].L],E.CP)for(let v=0;v{var b,Z,ye;function ht(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(mt(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(Z=null===(b=Yr().gapi)||void 0===b?void 0:b.iframes)&&void 0!==Z&&Z.Iframe)h(gapi.iframes.getContext());else{if(null===(ye=Yr().gapi)||void 0===ye||!ye.load){const Vt=Fr("iframefcb");return Yr()[Vt]=()=>{gapi.load?ht():v(mt(E,"network-request-failed"))},Ir(`${function Wr(){return gr.gapiScript}()}?onload=${Vt}`).catch(pn=>v(pn))}ht()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Yr().gapi;return Et(v,E,"internal-error"),h.open({where:document.body,url:fo(E),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Fu,dontclear:!0},b=>new Promise(function(){var Z=(0,W.A)(function*(ye,ht){yield b.restyle({setHideOnLeave:!1});const Vt=mt(E,"network-request-failed"),pn=Yr().setTimeout(()=>{ht(Vt)},Jh.get());function On(){Yr().clearTimeout(pn),ye(b)}b.ping(On).then(On,()=>{ht(Vt)})});return function(ye,ht){return Z.apply(this,arguments)}}()))}),Si.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Vu{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const og="__/auth/handler",$u="emulator/auth/handler",Sc=encodeURIComponent("fac");function ra(E,h,v,b,Z,ye){return ia.apply(this,arguments)}function ia(){return(ia=(0,W.A)(function*(E,h,v,b,Z,ye){Et(E.config.authDomain,E,"auth-domain-config-required"),Et(E.config.apiKey,E,"invalid-api-key");const ht={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ie.MF,eventId:Z};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),ht.providerId=h.providerId||"",(0,te.Im)(h.getCustomParameters())||(ht.customParameters=JSON.stringify(h.getCustomParameters()));for(const[ar,ni]of Object.entries(ye||{}))ht[ar]=ni}if(h instanceof Us){const ar=h.getScopes().filter(ni=>""!==ni);ar.length>0&&(ht.scopes=ar.join(","))}E.tenantId&&(ht.tid=E.tenantId);const Vt=ht;for(const ar of Object.keys(Vt))void 0===Vt[ar]&&delete Vt[ar];const pn=yield E._getAppCheckToken(),On=pn?`#${Sc}=${encodeURIComponent(pn)}`:"";return`${function Rc({config:E}){return E.emulator?se(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,te.Am)(Vt).slice(1)}${On}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Bo,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,Z){var ye=this;return(0,W.A)(function*(){var ht;tn(null===(ht=ye.eventManagers[h._key()])||void 0===ht?void 0:ht.manager,"_initialize() not called before _openPopup()");const Vt=yield ra(h,v,b,Ze(),Z);return function Uu(E,h,v,b=500,Z=600){const ye=Math.max((window.screen.availHeight-Z)/2,0).toString(),ht=Math.max((window.screen.availWidth-b)/2,0).toString();let Vt="";const pn=Object.assign(Object.assign({},rg),{width:b.toString(),height:Z.toString(),top:ye,left:ht}),On=(0,te.ZQ)().toLowerCase();v&&(Vt=Fi(On)?"_blank":v),gi(On)&&(h=h||"http://localhost",pn.scrollbars="yes");const ar=Object.entries(pn).reduce((Fo,[Ji,sa])=>`${Fo}${Ji}=${sa},`,"");if(function he(E=(0,te.ZQ)()){var h;return jt(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(On)&&"_self"!==Vt)return function Ns(E,h){const v=document.createElement("a");v.href=E,v.target=h;const b=document.createEvent("MouseEvent");b.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(b)}(h||"",Vt),new Vu(null);const ni=window.open(h||"",Vt,ar);Et(ni,E,"popup-blocked");try{ni.focus()}catch{}return new Vu(ni)}(h,Vt,Bi())})()}_openRedirect(h,v,b,Z){var ye=this;return(0,W.A)(function*(){return yield ye._originValidation(h),function yo(E){Yr().location.href=E}(yield ra(h,v,b,Ze(),Z)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:Z,promise:ye}=this.eventManagers[v];return Z?Promise.resolve(Z):(tn(ye,"If manager is not set, promise should be"),ye)}const b=this.initAndGetManager(h);return this.eventManagers[v]={promise:b},b.catch(()=>{delete this.eventManagers[v]}),b}initAndGetManager(h){var v=this;return(0,W.A)(function*(){const b=yield function ba(E){return Si.apply(this,arguments)}(h),Z=new ta(h);return b.register("authEvent",ye=>(Et(null==ye?void 0:ye.authEvent,h,"invalid-auth-event"),{status:Z.onEvent(ye.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:Z},v.iframes[h._key()]=b,Z})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},Z=>{var ye;const ht=null===(ye=null==Z?void 0:Z[0])||void 0===ye?void 0:ye[vl];void 0!==ht&&v(!!ht),Je(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const v=h._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Pd(E){return Ou.apply(this,arguments)}(h)),this.originValidationPromises[v]}get _shouldInitProactively(){return U()||ir()||jt()}};var Fd="@firebase/auth";class wa{constructor(h){this.auth=h,this.internalListeners=new Map}getUid(){var h;return this.assertAuthConfigured(),(null===(h=this.auth.currentUser)||void 0===h?void 0:h.uid)||null}getToken(h){var v=this;return(0,W.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const v=this.auth.onIdTokenChanged(b=>{h((null==b?void 0:b.stsTokenManager.accessToken)||null)});this.internalListeners.set(h,v),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const v=this.internalListeners.get(h);v&&(this.internalListeners.delete(h),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Et(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Zl=(0,te.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,W.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),Z=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(Z&&Z>Zl)return;const ye=null==b?void 0:b.token;rf!==ye&&(rf=ye,yield fetch(E,{method:ye?"POST":"DELETE",headers:ye?{Authorization:`Bearer ${ye}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Ld(E=(0,Ie.Sx)()){const h=(0,Ie.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function Wo(E,h){const v=(0,Ie.j6)(E,"auth");if(v.isInitialized()){const Z=v.getImmediate(),ye=v.getOptions();if((0,te.bD)(ye,null!=h?h:{}))return Z;Je(Z,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,Bo]}),b=(0,te.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const ye=new URL(b,location.origin);if(location.origin===ye.origin){const ht=sf(ye.toString());(function si(E,h,v){(0,te.Ku)(E).beforeAuthStateChanged(h,v)})(v,ht,()=>ht(v.currentUser)),Ui(v,Vt=>ht(Vt))}}const Z=(0,te.Tj)("auth");return Z&&function ur(E,h,v){const b=$n(E);Et(b._canInitEmulator,b,"emulator-config-failed"),Et(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const Z=!(null==v||!v.disableWarnings),ye=Kr(h),{host:ht,port:Vt}=function _i(E){const h=Kr(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",Z=/^(\[[^\]]+\])(:|$)/.exec(b);if(Z){const ye=Z[1];return{host:ye,port:Yn(b.substr(ye.length+1))}}{const[ye,ht]=b.split(":");return{host:ye,port:Yn(ht)}}}(h);b.config.emulator={url:`${ye}//${ht}${null===Vt?"":`:${Vt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:ht,port:Vt,protocol:ye.replace(":",""),options:Object.freeze({disableWarnings:Z})}),Z||function Lo(){function E(){const h=document.createElement("p"),v=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",h.classList.add("firebase-emulator-warning"),document.body.appendChild(h)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",E):E())}()}(v,`http://${Z}`),v}(function $r(E){gr=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=Z=>{const ye=mt("internal-error");ye.customData=Z,v(ye)},b.type="text/javascript",b.charset="UTF-8",function Nc(){var E,h;return null!==(h=null===(E=document.getElementsByTagName("head"))||void 0===E?void 0:E[0])&&void 0!==h?h:document}().appendChild(b)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function El(E){(0,Ie.om)(new we.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),Z=h.getProvider("heartbeat"),ye=h.getProvider("app-check-internal"),{apiKey:ht,authDomain:Vt}=b.options;Et(ht&&!ht.includes(":"),"invalid-api-key",{appName:b.name});const pn={apiKey:ht,authDomain:Vt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:$(E)},On=new Wn(b,Z,ye,pn);return function li(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(dn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(On,v),On},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ie.om)(new we.uA("auth-internal",h=>{const v=$n(h.getProvider("auth").getImmediate());return new wa(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Ie.KO)(Fd,"1.7.4",function xc(E){switch(E){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(E)),(0,Ie.KO)(Fd,"1.7.4","esm2017")}("Browser");var Ds=x(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:Ui(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class Xa{constructor(h){return h}}class Al{constructor(){return(0,g.CA)("auth")}}const eu=new c.nKC("angularfire2.auth-instances");function af(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new Xa(b)}}const lf={provide:Al,deps:[[new c.Xx1,eu]]},sg={provide:Xa,useFactory:function Ud(E,h){const v=(0,g.lR)("auth",E,h);return v&&new Xa(v)},deps:[[new c.Xx1,eu],de.XU]};function Cl(E,...h){return(0,Fe.KO)("angularfire",g.xv.full,"auth"),(0,c.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[c.SKi,c.zZn,g.u0,de.gL,[new c.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Ld,!0),Xu=(0,g.S3)(Ss,!0)},4262:(Dn,At,x)=>{"use strict";x.d(At,{_7:()=>vh,rJ:()=>m0,kd:()=>v0,H9:()=>sm,x7:()=>lm,GG:()=>r_,aU:()=>um,hV:()=>Jv,BN:()=>R0,mZ:()=>M0});var ze,Ve,g=x(5407),c=x(4438),de=x(7440),Fe=x(8737),W=x(2214),Ie=x(467),te=x(7852),Ge=x(1362),Qe=x(8041),we=x(1076),Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ue={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(Tt,qe,dt){dt||(dt=0);var Dt=Array(16);if("string"==typeof qe)for(var Mt=0;16>Mt;++Mt)Dt[Mt]=qe.charCodeAt(dt++)|qe.charCodeAt(dt++)<<8|qe.charCodeAt(dt++)<<16|qe.charCodeAt(dt++)<<24;else for(Mt=0;16>Mt;++Mt)Dt[Mt]=qe[dt++]|qe[dt++]<<8|qe[dt++]<<16|qe[dt++]<<24;var Ut=Tt.g[3],lt=(qe=Tt.g[0])+(Ut^(dt=Tt.g[1])&((Mt=Tt.g[2])^Ut))+Dt[0]+3614090360&4294967295;lt=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=(dt=(Mt=(Ut=(qe=dt+(lt<<7&4294967295|lt>>>25))+((lt=Ut+(Mt^qe&(dt^Mt))+Dt[1]+3905402710&4294967295)<<12&4294967295|lt>>>20))+((lt=Mt+(dt^Ut&(qe^dt))+Dt[2]+606105819&4294967295)<<17&4294967295|lt>>>15))+((lt=dt+(qe^Mt&(Ut^qe))+Dt[3]+3250441966&4294967295)<<22&4294967295|lt>>>10))+((lt=qe+(Ut^dt&(Mt^Ut))+Dt[4]+4118548399&4294967295)<<7&4294967295|lt>>>25))+((lt=Ut+(Mt^qe&(dt^Mt))+Dt[5]+1200080426&4294967295)<<12&4294967295|lt>>>20))+((lt=Mt+(dt^Ut&(qe^dt))+Dt[6]+2821735955&4294967295)<<17&4294967295|lt>>>15))+((lt=dt+(qe^Mt&(Ut^qe))+Dt[7]+4249261313&4294967295)<<22&4294967295|lt>>>10))+((lt=qe+(Ut^dt&(Mt^Ut))+Dt[8]+1770035416&4294967295)<<7&4294967295|lt>>>25))+((lt=Ut+(Mt^qe&(dt^Mt))+Dt[9]+2336552879&4294967295)<<12&4294967295|lt>>>20))+((lt=Mt+(dt^Ut&(qe^dt))+Dt[10]+4294925233&4294967295)<<17&4294967295|lt>>>15))+((lt=dt+(qe^Mt&(Ut^qe))+Dt[11]+2304563134&4294967295)<<22&4294967295|lt>>>10))+((lt=qe+(Ut^dt&(Mt^Ut))+Dt[12]+1804603682&4294967295)<<7&4294967295|lt>>>25))+((lt=Ut+(Mt^qe&(dt^Mt))+Dt[13]+4254626195&4294967295)<<12&4294967295|lt>>>20))+((lt=Mt+(dt^Ut&(qe^dt))+Dt[14]+2792965006&4294967295)<<17&4294967295|lt>>>15))+((lt=dt+(qe^Mt&(Ut^qe))+Dt[15]+1236535329&4294967295)<<22&4294967295|lt>>>10))+((lt=qe+(Mt^Ut&(dt^Mt))+Dt[1]+4129170786&4294967295)<<5&4294967295|lt>>>27))+((lt=Ut+(dt^Mt&(qe^dt))+Dt[6]+3225465664&4294967295)<<9&4294967295|lt>>>23))+((lt=Mt+(qe^dt&(Ut^qe))+Dt[11]+643717713&4294967295)<<14&4294967295|lt>>>18))+((lt=dt+(Ut^qe&(Mt^Ut))+Dt[0]+3921069994&4294967295)<<20&4294967295|lt>>>12))+((lt=qe+(Mt^Ut&(dt^Mt))+Dt[5]+3593408605&4294967295)<<5&4294967295|lt>>>27))+((lt=Ut+(dt^Mt&(qe^dt))+Dt[10]+38016083&4294967295)<<9&4294967295|lt>>>23))+((lt=Mt+(qe^dt&(Ut^qe))+Dt[15]+3634488961&4294967295)<<14&4294967295|lt>>>18))+((lt=dt+(Ut^qe&(Mt^Ut))+Dt[4]+3889429448&4294967295)<<20&4294967295|lt>>>12))+((lt=qe+(Mt^Ut&(dt^Mt))+Dt[9]+568446438&4294967295)<<5&4294967295|lt>>>27))+((lt=Ut+(dt^Mt&(qe^dt))+Dt[14]+3275163606&4294967295)<<9&4294967295|lt>>>23))+((lt=Mt+(qe^dt&(Ut^qe))+Dt[3]+4107603335&4294967295)<<14&4294967295|lt>>>18))+((lt=dt+(Ut^qe&(Mt^Ut))+Dt[8]+1163531501&4294967295)<<20&4294967295|lt>>>12))+((lt=qe+(Mt^Ut&(dt^Mt))+Dt[13]+2850285829&4294967295)<<5&4294967295|lt>>>27))+((lt=Ut+(dt^Mt&(qe^dt))+Dt[2]+4243563512&4294967295)<<9&4294967295|lt>>>23))+((lt=Mt+(qe^dt&(Ut^qe))+Dt[7]+1735328473&4294967295)<<14&4294967295|lt>>>18))+((lt=dt+(Ut^qe&(Mt^Ut))+Dt[12]+2368359562&4294967295)<<20&4294967295|lt>>>12))+((lt=qe+(dt^Mt^Ut)+Dt[5]+4294588738&4294967295)<<4&4294967295|lt>>>28))+((lt=Ut+(qe^dt^Mt)+Dt[8]+2272392833&4294967295)<<11&4294967295|lt>>>21))+((lt=Mt+(Ut^qe^dt)+Dt[11]+1839030562&4294967295)<<16&4294967295|lt>>>16))+((lt=dt+(Mt^Ut^qe)+Dt[14]+4259657740&4294967295)<<23&4294967295|lt>>>9))+((lt=qe+(dt^Mt^Ut)+Dt[1]+2763975236&4294967295)<<4&4294967295|lt>>>28))+((lt=Ut+(qe^dt^Mt)+Dt[4]+1272893353&4294967295)<<11&4294967295|lt>>>21))+((lt=Mt+(Ut^qe^dt)+Dt[7]+4139469664&4294967295)<<16&4294967295|lt>>>16))+((lt=dt+(Mt^Ut^qe)+Dt[10]+3200236656&4294967295)<<23&4294967295|lt>>>9))+((lt=qe+(dt^Mt^Ut)+Dt[13]+681279174&4294967295)<<4&4294967295|lt>>>28))+((lt=Ut+(qe^dt^Mt)+Dt[0]+3936430074&4294967295)<<11&4294967295|lt>>>21))+((lt=Mt+(Ut^qe^dt)+Dt[3]+3572445317&4294967295)<<16&4294967295|lt>>>16))+((lt=dt+(Mt^Ut^qe)+Dt[6]+76029189&4294967295)<<23&4294967295|lt>>>9))+((lt=qe+(dt^Mt^Ut)+Dt[9]+3654602809&4294967295)<<4&4294967295|lt>>>28))+((lt=Ut+(qe^dt^Mt)+Dt[12]+3873151461&4294967295)<<11&4294967295|lt>>>21))+((lt=Mt+(Ut^qe^dt)+Dt[15]+530742520&4294967295)<<16&4294967295|lt>>>16))+((lt=dt+(Mt^Ut^qe)+Dt[2]+3299628645&4294967295)<<23&4294967295|lt>>>9))+((lt=qe+(Mt^(dt|~Ut))+Dt[0]+4096336452&4294967295)<<6&4294967295|lt>>>26))+((lt=Ut+(dt^(qe|~Mt))+Dt[7]+1126891415&4294967295)<<10&4294967295|lt>>>22))+((lt=Mt+(qe^(Ut|~dt))+Dt[14]+2878612391&4294967295)<<15&4294967295|lt>>>17))+((lt=dt+(Ut^(Mt|~qe))+Dt[5]+4237533241&4294967295)<<21&4294967295|lt>>>11))+((lt=qe+(Mt^(dt|~Ut))+Dt[12]+1700485571&4294967295)<<6&4294967295|lt>>>26))+((lt=Ut+(dt^(qe|~Mt))+Dt[3]+2399980690&4294967295)<<10&4294967295|lt>>>22))+((lt=Mt+(qe^(Ut|~dt))+Dt[10]+4293915773&4294967295)<<15&4294967295|lt>>>17))+((lt=dt+(Ut^(Mt|~qe))+Dt[1]+2240044497&4294967295)<<21&4294967295|lt>>>11))+((lt=qe+(Mt^(dt|~Ut))+Dt[8]+1873313359&4294967295)<<6&4294967295|lt>>>26))+((lt=Ut+(dt^(qe|~Mt))+Dt[15]+4264355552&4294967295)<<10&4294967295|lt>>>22))+((lt=Mt+(qe^(Ut|~dt))+Dt[6]+2734768916&4294967295)<<15&4294967295|lt>>>17))+((lt=dt+(Ut^(Mt|~qe))+Dt[13]+1309151649&4294967295)<<21&4294967295|lt>>>11))+((Ut=(qe=dt+((lt=qe+(Mt^(dt|~Ut))+Dt[4]+4149444226&4294967295)<<6&4294967295|lt>>>26))+((lt=Ut+(dt^(qe|~Mt))+Dt[11]+3174756917&4294967295)<<10&4294967295|lt>>>22))^((Mt=Ut+((lt=Mt+(qe^(Ut|~dt))+Dt[2]+718787259&4294967295)<<15&4294967295|lt>>>17))|~qe))+Dt[9]+3951481745&4294967295,Tt.g[0]=Tt.g[0]+qe&4294967295,Tt.g[1]=Tt.g[1]+(Mt+(lt<<21&4294967295|lt>>>11))&4294967295,Tt.g[2]=Tt.g[2]+Mt&4294967295,Tt.g[3]=Tt.g[3]+Ut&4294967295}function _(Tt,qe){this.h=qe;for(var dt=[],Dt=!0,Mt=Tt.length-1;0<=Mt;Mt--){var Ut=0|Tt[Mt];Dt&&Ut==qe||(dt[Mt]=Ut,Dt=!1)}this.g=dt}(function n(Tt,qe){function dt(){}dt.prototype=qe.prototype,Tt.D=qe.prototype,Tt.prototype=new dt,Tt.prototype.constructor=Tt,Tt.C=function(Dt,Mt,Ut){for(var lt=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);Tt[0]=128;for(var qe=1;qeqe;++qe)for(var Dt=0;32>Dt;Dt+=8)Tt[dt++]=this.g[qe]>>>Dt&255;return Tt};var w={};function k(Tt){return-128<=Tt&&128>Tt?function f(Tt,qe){var dt=w;return Object.prototype.hasOwnProperty.call(dt,Tt)?dt[Tt]:dt[Tt]=qe(Tt)}(Tt,function(qe){return new _([0|qe],0>qe?-1:0)}):new _([0|Tt],0>Tt?-1:0)}function X(Tt){if(isNaN(Tt)||!isFinite(Tt))return xe;if(0>Tt)return vn(X(-Tt));for(var qe=[],dt=1,Dt=0;Tt>=dt;Dt++)qe[Dt]=Tt/dt|0,dt*=4294967296;return new _(qe,0)}var xe=k(0),rt=k(1),kt=k(16777216);function hn(Tt){if(0!=Tt.h)return!1;for(var qe=0;qe>>16,Tt[qe]&=65535,qe++}function lr(Tt,qe){this.g=Tt,this.h=qe}function Br(Tt,qe){if(hn(qe))throw Error("division by zero");if(hn(Tt))return new lr(xe,xe);if(bn(Tt))return qe=Br(vn(Tt),qe),new lr(vn(qe.g),vn(qe.h));if(bn(qe))return qe=Br(Tt,vn(qe)),new lr(vn(qe.g),qe.h);if(30=Dt.l(Tt);)dt=Ri(dt),Dt=Ri(Dt);var Mt=ri(dt,1),Ut=ri(Dt,1);for(Dt=ri(Dt,2),dt=ri(dt,2);!hn(Dt);){var lt=Ut.add(Dt);0>=lt.l(Tt)&&(Mt=Mt.add(dt),Ut=lt),Dt=ri(Dt,1),dt=ri(dt,1)}return qe=Jn(Tt,Mt.j(qe)),new lr(Mt,qe)}for(Mt=xe;0<=Tt.l(qe);){for(dt=Math.max(1,Math.floor(Tt.m()/qe.m())),Dt=48>=(Dt=Math.ceil(Math.log(dt)/Math.LN2))?1:Math.pow(2,Dt-48),lt=(Ut=X(dt)).j(qe);bn(lt)||0>>31;return new _(dt,Tt.h)}function ri(Tt,qe){var dt=qe>>5;qe%=32;for(var Dt=Tt.g.length-dt,Mt=[],Ut=0;Ut>>qe|Tt.i(Ut+dt+1)<<32-qe:Tt.i(Ut+dt);return new _(Mt,Tt.h)}(l=_.prototype).m=function(){if(bn(this))return-vn(this).m();for(var Tt=0,qe=1,dt=0;dt(Tt=Tt||10)||36>>0).toString(Tt);if(hn(dt=Mt))return Ut+Dt;for(;6>Ut.length;)Ut="0"+Ut;Dt=Ut+Dt}},l.i=function(Tt){return 0>Tt?0:Tt>>16)+(this.i(Mt)>>>16)+(Tt.i(Mt)>>>16);Dt=lt>>>16,dt[Mt]=(lt&=65535)<<16|(Ut&=65535)}return new _(dt,-2147483648&dt[dt.length-1]?-1:0)},l.j=function(Tt){if(hn(this)||hn(Tt))return xe;if(bn(this))return bn(Tt)?vn(this).j(vn(Tt)):vn(vn(this).j(Tt));if(bn(Tt))return vn(this.j(vn(Tt)));if(0>this.l(kt)&&0>Tt.l(kt))return X(this.m()*Tt.m());for(var qe=this.g.length+Tt.g.length,dt=[],Dt=0;Dt<2*qe;Dt++)dt[Dt]=0;for(Dt=0;Dt>>16,lt=65535&this.i(Dt),Pl=Tt.i(Mt)>>>16,ac=65535&Tt.i(Mt);dt[2*Dt+2*Mt]+=lt*ac,vr(dt,2*Dt+2*Mt),dt[2*Dt+2*Mt+1]+=Ut*ac,vr(dt,2*Dt+2*Mt+1),dt[2*Dt+2*Mt+1]+=lt*Pl,vr(dt,2*Dt+2*Mt+1),dt[2*Dt+2*Mt+2]+=Ut*Pl,vr(dt,2*Dt+2*Mt+2)}for(Dt=0;Dt(qe=qe||10)||36Ut?(Ut=X(Math.pow(qe,Ut)),Dt=Dt.j(Ut).add(X(lt))):Dt=(Dt=Dt.j(dt)).add(X(lt))}return Dt},ze=Ue.Integer=_}).apply(typeof Ee<"u"?Ee:typeof self<"u"?self:typeof window<"u"?window:{});var at,gt,xt,ft,yt,Pe,Ke,He,Je,it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},It={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,L,Y){return m==Array.prototype||m==Object.prototype||(m[L]=Y.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof it&&it];for(var L=0;L{throw m},0)}function lt(){var m=hm;let L=null;return m.g&&(L=m.g,m.g=m.g.next,m.g||(m.h=null),L.next=null),L}var ac=new class Jn{constructor(L,Y){this.i=L,this.j=Y,this.h=0,this.g=null}get(){let L;return 0new P0,m=>m.reset());class P0{constructor(){this.next=this.g=this.h=null}set(L,Y){this.h=L,this.g=Y,this.next=null}reset(){this.next=this.g=this.h=null}}let sd,yh=!1,hm=new class Pl{constructor(){this.h=this.g=null}add(L,Y){const Te=ac.get();Te.set(L,Y),this.h?this.h.next=Te:this.g=Te,this.h=Te}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(x0)}};var x0=()=>{for(var m;m=lt();){try{m.h.call(m.g)}catch(Y){Ut(Y)}var L=ac;L.j(m),100>L.h&&(L.h++,m.next=L.g,L.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,L){this.type=m,this.g=this.target=L,this.defaultPrevented=!1}gu.prototype.s=!1,gu.prototype.ma=function(){this.s||(this.s=!0,this.N())},gu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},mo.prototype.h=function(){this.defaultPrevented=!0};var pm=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var m=!1,L=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Y=()=>{};w.addEventListener("test",Y,L),w.removeEventListener("test",Y,L)}catch{}return m}();function Ih(m,L){if(mo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Y=this.type=m.type,Te=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=L,L=m.relatedTarget){if(Ri){e:{try{Br(L.nodeName);var Ot=!0;break e}catch{}Ot=!1}Ot||(L=null)}}else"mouseover"==Y?L=m.fromElement:"mouseout"==Y&&(L=m.toElement);this.relatedTarget=L,Te?(this.clientX=void 0!==Te.clientX?Te.clientX:Te.pageX,this.clientY=void 0!==Te.clientY?Te.clientY:Te.pageY,this.screenX=Te.screenX||0,this.screenY=Te.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:s_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ih.aa.h.call(this)}}hn(Ih,mo);var s_={2:"touch",3:"pen",4:"mouse"};Ih.prototype.h=function(){Ih.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Eh="closure_listenable_"+(1e6*Math.random()|0),a_=0;function ZE(m,L,Y,Te,Ot){this.listener=m,this.proxy=null,this.src=L,this.type=Y,this.capture=!!Te,this.ha=Ot,this.key=++a_,this.da=this.fa=!1}function ap(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function lc(m){this.src=m,this.g={},this.h=0}function lp(m,L){var Y=L.type;if(Y in m.g){var Wt,Te=m.g[Y],Ot=Array.prototype.indexOf.call(Te,L,void 0);(Wt=0<=Ot)&&Array.prototype.splice.call(Te,Ot,1),Wt&&(ap(L),0==m.g[Y].length&&(delete m.g[Y],m.h--))}}function gm(m,L,Y,Te){for(var Ot=0;Ot>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(L){return m.handleEvent(L)}),m[Ah])}function is(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function zo(m,L){var Y,Te=m.F;if(Te)for(Y=[];Te;Te=Te.F)Y.push(Te);if(m=m.M,Te=L.type||L,"string"==typeof L)L=new mo(L,m);else if(L instanceof mo)L.target=L.target||m;else{var Ot=L;Dt(L=new mo(Te,m),Ot)}if(Ot=!0,Y)for(var Wt=Y.length-1;0<=Wt;Wt--){var Fn=L.g=Y[Wt];Ot=Ch(Fn,Te,!0,L)&&Ot}if(Ot=Ch(Fn=L.g=m,Te,!0,L)&&Ot,Ot=Ch(Fn,Te,!1,L)&&Ot,Y)for(Wt=0;Wt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const L=m.h;m.h=null,m.m.apply(null,L)}hn(is,gu),is.prototype[Eh]=!0,is.prototype.removeEventListener=function(m,L,Y,Te){_m(this,m,L,Y,Te)},is.prototype.N=function(){if(is.aa.N.call(this),this.i){var L,m=this.i;for(L in m.g){for(var Y=m.g[L],Te=0;TeTe.length)){var Ot=Te[1];if(Array.isArray(Ot)&&!(1>Ot.length)){var Wt=Ot[0];if("noop"!=Wt&&"stop"!=Wt&&"close"!=Wt)for(var Fn=1;FnL.length?Sm:(L=L.slice(Te,Te+Y),m.C=Te+Y,L))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,L){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(rt(m.ba,m),L)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||K0(m.j,m)}function Iu(m){vp(m);var L=m.M;L&&"function"==typeof L.ma&&L.ma(),m.M=null,Tm(m.U),m.g&&(L=m.g,m.g=null,L.abort(),L.ma())}function Rh(m,L){try{var Y=m.j;if(0!=Y.G&&(Y.g==m||Mm(Y.h,m)))if(!m.K&&Mm(Y.h,m)&&3==Y.G){try{var Te=Y.Da.g.parse(L)}catch{Te=null}if(Array.isArray(Te)&&3==Te.length){var Ot=Te;if(0==Ot[0]){e:if(!Y.u){if(Y.g){if(!(Y.g.F+3e3Ot[2]&&Y.F&&0==Y.v&&!Y.C&&(Y.C=hp(rt(Y.Za,Y),6e3));if(1>=E_(Y.h)&&Y.ca){try{Y.ca()}catch{}Y.ca=void 0}}else Au(Y,11)}else if((m.K||Y.g==m)&&Lh(Y),!vr(L))for(Ot=Y.Da.g.parse(L),L=0;Lfs)&&(3!=fs||this.g&&(this.h.h||this.g.oa()||S_(this.g)))){this.J||4!=fs||7==L||cc(),vp(this);var Y=this.g.Z();this.X=Y;t:if(v_(this)){var Te=S_(this.g);m="";var Ot=Te.length,Wt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Fn="";break t}this.h.i=new w.TextDecoder}for(L=0;L=m.j}function E_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,L){return m.h?m.h==L:!!m.g&&m.g.has(L)}function Mh(m,L){m.g?m.g.add(L):m.h=L}function _p(m,L){m.h&&m.h==L?m.h=null:m.g&&m.g.has(L)&&m.g.delete(L)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let L=m.i;for(const Y of m.g.values())L=L.concat(Y.D);return L}return bn(m.i)}function A_(m,L){if(m.forEach&&"function"==typeof m.forEach)m.forEach(L,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,L,void 0);else for(var Y=function Nm(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var L=[];m=m.length;for(var Y=0;YL)throw Error("Bad port number "+L);m.s=L}else m.s=null}function Om(m,L,Y){L instanceof Nh?(m.i=L,function b_(m,L){L&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(Y,Te){var Ot=Te.toLowerCase();Te!=Ot&&(km(this,Te),Fm(this,Ot,Y))},m)),m.j=L}(m.i,m.h)):(Y||(L=gd(L,eA)),m.i=new Nh(L,m.h))}function qi(m,L,Y){m.i.set(L,Y)}function Ph(m){return qi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function xh(m,L){return m?L?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,L,Y){return"string"==typeof m?(m=encodeURI(m).replace(L,V0),Y&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function V0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],L=this.j;L&&m.push(gd(L,yp,!0),":");var Y=this.g;return(Y||"file"==L)&&(m.push("//"),(L=this.o)&&m.push(gd(L,yp,!0),"@"),m.push(encodeURIComponent(String(Y)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Y=this.s)&&m.push(":",String(Y))),(Y=this.l)&&(this.g&&"/"!=Y.charAt(0)&&m.push("/"),m.push(gd(Y,"/"==Y.charAt(0)?D_:T_,!0))),(Y=this.i.toString())&&m.push("?",Y),(Y=this.m)&&m.push("#",gd(Y,tA)),m.join("")};var yp=/[#\/\?@]/g,T_=/[#\?:]/g,D_=/[#\?]/g,eA=/[#\?@]/g,tA=/#/g;function Nh(m,L){this.h=this.g=null,this.i=m||null,this.j=!!L}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function L0(m,L){if(m){m=m.split("&");for(var Y=0;Y{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Ap(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Cp(this)),this.g&&(this.readyState=3,Cp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof w.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;$0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var L=m.value?m.value:new Uint8Array(0);(L=this.v.decode(L,{stream:!m.done}))&&(this.response=this.responseText+=L)}m.done?Ap(this):Cp(this),3==this.readyState&&$0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Ap(this))},l.Qa=function(m){this.g&&(this.response=m,Ap(this))},l.ga=function(){this.g&&Ap(this)},l.setRequestHeader=function(m,L){this.u.append(m,L)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],L=this.h.entries();for(var Y=L.next();!Y.done;)m.push((Y=Y.value)[0]+": "+Y[1]),Y=L.next();return m.join("\r\n")},Object.defineProperty(Lm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),hn(vo,is);var iA=/^https?$/i,oA=["POST","PUT"];function B0(m,L){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=L,m.m=5,j0(m),Um(m)}function j0(m){m.A||(m.A=!0,zo(m,"complete"),zo(m,"error"))}function z0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Eu(m)||2!=m.Z()))if(m.u&&4==Eu(m))Am(m.Ea,0,m);else if(zo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Fn=m.Z();e:switch(Fn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var L=!0;break e;default:L=!1}var Y;if(!(Y=L)){var Te;if(Te=0===Fn){var Ot=String(m.D).match(C_)[1]||null;!Ot&&w.self&&w.self.location&&(Ot=w.self.location.protocol.slice(0,-1)),Te=!iA.test(Ot?Ot.toLowerCase():"")}Y=Te}if(Y)zo(m,"complete"),zo(m,"success");else{m.m=6;try{var Wt=2{}:null;m.g=null,m.v=null,L||zo(m,"ready");try{Y.onreadystatechange=Te}catch{}}}function H0(m){m.I&&(w.clearTimeout(m.I),m.I=null)}function Eu(m){return m.g?m.g.readyState:0}function S_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Nl(m,L,Y){return Y&&Y.internalChannelParams&&Y.internalChannelParams[m]||L}function R_(m){this.Aa=0,this.i=[],this.j=new _u,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Nl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Nl("baseRetryDelayMs",5e3,m),this.cb=Nl("retryDelaySeedMs",1e4,m),this.Wa=Nl("forwardChannelMaxRetries",2,m),this.wa=Nl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Rm(m&&m.concurrentRequestLimit),this.Da=new nA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0Ti)Wt=Math.max(0,Ot[io].g-100),ji=!1;else try{rA(os,Fn,"req"+Ti+"_")}catch{Te&&Te(os)}}if(ji){Te=Fn.join("&");break e}}}return m=m.i.splice(0,Y),L.D=m,Te}function Bm(m){if(!m.g&&!m.u){m.Y=1;var L=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(L,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(rt(m.Fa,m),N_(m,m.v)),m.v++,0))}function Dp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function W0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var L=nl(m.qa);qi(L,"RID","rpc"),qi(L,"SID",m.K),qi(L,"AID",m.T),qi(L,"CI",m.F?"0":"1"),!m.F&&m.ja&&qi(L,"TO",m.ja),qi(L,"TYPE","xmlhttp"),kh(m,L),m.m&&m.o&&Tp(L,m.m,m.o),m.L&&(m.g.I=m.L);var Y=m.g;m=m.ia,Y.L=1,Y.v=Ph(nl(L)),Y.m=null,Y.P=!0,m_(Y,m)}function Lh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function K0(m,L){var Y=null;if(m.g==L){Lh(m),Dp(m),m.g=null;var Te=2}else{if(!Mm(m.h,L))return;Y=L.D,_p(m.h,L),Te=1}if(0!=m.G)if(L.o)if(1==Te){Y=L.m?L.m.length:0,L=Date.now()-L.F;var Ot=m.B;zo(Te=dp(),new cd(Te,Y)),$m(m)}else Bm(m);else if(3==(Ot=L.s)||0==Ot&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=L.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(rt(m.Ga,m,L),N_(m,m.B)),m.B++,0)))}(m,L)||2==Te&&jm(m)))switch(Y&&0{Te.abort(),fc(0,0,!1,L)},1e4);fetch(m,{signal:Te.signal}).then(Wt=>{clearTimeout(Ot),fc(0,0,!!Wt.ok,L)}).catch(()=>{clearTimeout(Ot),fc(0,0,!1,L)})}(Te.toString(),Y)}else uo(2);m.G=0,m.l&&m.l.sa(L),bp(m),P_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const L=Pm(m.h);(0!=L.length||0!=m.i.length)&&(vn(m.ka,L),vn(m.ka,m.i),m.h.i.length=0,bn(m.i),m.i.length=0),m.l.ra()}}function O_(m,L,Y){var Te=Y instanceof dc?nl(Y):new dc(Y);if(""!=Te.g)L&&(Te.g=L+"."+Te.g),pd(Te,Te.s);else{var Ot=w.location;Te=Ot.protocol,L=L?L+"."+Ot.hostname:Ot.hostname,Ot=+Ot.port;var Wt=new dc(null);Te&&fd(Wt,Te),L&&(Wt.g=L),Ot&&pd(Wt,Ot),Y&&(Wt.l=Y),Te=Wt}return L=m.ya,(Y=m.D)&&L&&qi(Te,Y,L),qi(Te,"VER",m.la),kh(m,Te),Te}function k_(m,L,Y){if(L&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(L=new vo(m.Ca&&!m.pa?new Ep({eb:Y}):m.pa)).Ha(m.J),L}function Vh(){}function wp(){}function Fs(m,L){is.call(this),this.g=new R_(L),this.l=m,this.h=L&&L.messageUrlParams||null,m=L&&L.messageHeaders||null,L&&L.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=L&&L.initMessageHeaders||null,L&&L.messageContentType&&(m?m["X-WebChannel-Content-Type"]=L.messageContentType:m={"X-WebChannel-Content-Type":L.messageContentType}),L&&L.va&&(m?m["X-WebChannel-Client-Profile"]=L.va:m={"X-WebChannel-Client-Profile":L.va}),this.g.S=m,(m=L&&L.Sb)&&!vr(m)&&(this.g.m=m),this.v=L&&L.supportsCrossDomainXhr||!1,this.u=L&&L.sendRawJson||!1,(L=L&&L.httpSessionIdParam)&&!vr(L)&&(this.g.D=L,null!==(m=this.h)&&L in m&&L in(m=this.h)&&delete m[L]),this.j=new vd(this)}function F_(m){tl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var L=m.__sm__;if(L){e:{for(const Y in L){m=Y;break e}m=void 0}(this.i=m)&&(m=this.i,L=null!==L&&m in L?L[m]:void 0),this.data=L}else this.data=m}function L_(){ld.call(this),this.status=1}function vd(m){this.g=m}(l=vo.prototype).Ha=function(m){this.J=m},l.ea=function(m,L,Y,Te){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);L=L?L.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():wm.g(),this.v=function Dm(m){return m.h||(m.h=m.i())}(this.o?this.o:wm),this.g.onreadystatechange=rt(this.Ea,this);try{this.B=!0,this.g.open(L,String(m),!0),this.B=!1}catch(Wt){return void B0(this,Wt)}if(m=Y||"",Y=new Map(this.headers),Te)if(Object.getPrototypeOf(Te)===Object.prototype)for(var Ot in Te)Y.set(Ot,Te[Ot]);else{if("function"!=typeof Te.keys||"function"!=typeof Te.get)throw Error("Unknown input type for opt_headers: "+String(Te));for(const Wt of Te.keys())Y.set(Wt,Te.get(Wt))}Te=Array.from(Y.keys()).find(Wt=>"content-type"==Wt.toLowerCase()),Ot=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(oA,L,void 0))||Te||Ot||Y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[Wt,Fn]of Y)this.g.setRequestHeader(Wt,Fn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{H0(this),this.u=!0,this.g.send(m),this.u=!1}catch(Wt){B0(this,Wt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,zo(this,"complete"),zo(this,"abort"),Um(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Um(this,!0)),vo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?z0(this):this.bb())},l.bb=function(){z0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=hp(rt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,uo(10),Oh(this),W0(this))},l.Za=function(){null!=this.C&&(this.C=null,Oh(this),jm(this),uo(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),uo(2)):(this.j.info("Failed to ping google.com"),uo(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Vh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},wp.prototype.g=function(m,L){return new Fs(m,L)},hn(Fs,is),Fs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Fs.prototype.close=function(){M_(this.g)},Fs.prototype.o=function(m){var L=this.g;if("string"==typeof m){var Y={};Y.__data__=m,m=Y}else this.u&&((Y={}).__data__=Dh(m),m=Y);L.i.push(new y_(L.Ya++,m)),3==L.G&&$m(L)},Fs.prototype.N=function(){this.g.l=null,delete this.j,M_(this.g),delete this.g,Fs.aa.N.call(this)},hn(F_,tl),hn(L_,ld),hn(vd,Vh),vd.prototype.ua=function(){zo(this.g,"a")},vd.prototype.ta=function(m){zo(this.g,new F_(m))},vd.prototype.sa=function(m){zo(this.g,new L_)},vd.prototype.ra=function(){zo(this.g,"b")},wp.prototype.createWebChannel=wp.prototype.g,Fs.prototype.send=Fs.prototype.o,Fs.prototype.open=Fs.prototype.m,Fs.prototype.close=Fs.prototype.close,Je=It.createWebChannelTransport=function(){return new wp},He=It.getStatEventTarget=function(){return dp()},Ke=It.Event=vu,Pe=It.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},pp.NO_ERROR=0,pp.TIMEOUT=8,pp.HTTP_ERROR=6,yt=It.ErrorCode=pp,f_.COMPLETE="complete",ft=It.EventType=f_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",is.prototype.listen=is.prototype.K,xt=It.WebChannel=ad,gt=It.FetchXmlHttpFactory=Ep,vo.prototype.listenOnce=vo.prototype.L,vo.prototype.getLastError=vo.prototype.Ka,vo.prototype.getLastErrorCode=vo.prototype.Ba,vo.prototype.getStatus=vo.prototype.Z,vo.prototype.getResponseJson=vo.prototype.Oa,vo.prototype.getResponseText=vo.prototype.oa,vo.prototype.send=vo.prototype.ea,vo.prototype.setWithCredentials=vo.prototype.Ha,at=It.XhrIo=vo}).apply(typeof it<"u"?it:typeof self<"u"?self:typeof window<"u"?window:{});const mt="@firebase/firestore";class Ce{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Ce.UNAUTHENTICATED=new Ce(null),Ce.GOOGLE_CREDENTIALS=new Ce("google-credentials-uid"),Ce.FIRST_PARTY=new Ce("first-party-uid"),Ce.MOCK_USER=new Ce("mock-user");let nt="10.12.1";const Rt=new Qe.Vy("@firebase/firestore");function zt(){return Rt.logLevel}function Be(l,...n){if(Rt.logLevel<=Qe.$b.DEBUG){const i=n.map(De);Rt.debug(`Firestore (${nt}): ${l}`,...i)}}function tn(l,...n){if(Rt.logLevel<=Qe.$b.ERROR){const i=n.map(De);Rt.error(`Firestore (${nt}): ${l}`,...i)}}function Ze(l,...n){if(Rt.logLevel<=Qe.$b.WARN){const i=n.map(De);Rt.warn(`Firestore (${nt}): ${l}`,...i)}}function De(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function z(l="Unexpected state"){const n=`FIRESTORE (${nt}) INTERNAL ASSERTION FAILED: `+l;throw tn(n),new Error(n)}function K(l,n){l||z()}function ie(l,n){return l}const se={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class be extends we.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Xe{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class nn{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class En{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(Ce.UNAUTHENTICATED))}shutdown(){}}class rn{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class Mn{constructor(n){this.t=n,this.currentUser=Ce.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=X=>this.i!==u?(u=this.i,i(X)):Promise.resolve();let _=new Xe;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Xe,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const X=_;n.enqueueRetryable((0,Ie.A)(function*(){yield X.promise,yield f(s.currentUser)}))},k=X=>{Be("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=X,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(X=>k(X)),setTimeout(()=>{if(!this.auth){const X=this.t.getImmediate({optional:!0});X?k(X):(Be("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Xe)}},0),w()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(Be("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(K("string"==typeof s.accessToken),new nn(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return K(null===n||"string"==typeof n),new Ce(n)}}class Vn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=Ce.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class qn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Vn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(Ce.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class Zn{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Xn{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=f=>{null!=f.error&&Be("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${f.error.message}`);const _=f.token!==this.R;return this.R=f.token,Be("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(f.token):Promise.resolve()};this.o=f=>{n.enqueueRetryable(()=>s(f))};const u=f=>{Be("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=f,this.appCheck.addTokenListener(this.o)};this.A.onInit(f=>u(f)),setTimeout(()=>{if(!this.appCheck){const f=this.A.getImmediate({optional:!0});f?u(f):Be("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(K("string"==typeof i.token),this.R=i.token,new Zn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function or(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function bt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Jt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new be(se.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new be(se.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new be(se.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new be(se.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Jt.fromMillis(Date.now())}static fromDate(n){return Jt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Jt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?je(this.nanoseconds,n.nanoseconds):je(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class on{constructor(n){this.timestamp=n}static fromTimestamp(n){return new on(n)}static min(){return new on(new Jt(0,0))}static max(){return new on(new Jt(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Ar{constructor(n,i,s){void 0===i?i=0:i>n.length&&z(),void 0===s?s=n.length-i:s>n.length-i&&z(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Ar.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ar?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Cn extends Ar{construct(n,i,s){return new Cn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new be(se.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Cn(i)}static emptyPath(){return new Cn([])}}const An=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class sn extends Ar{construct(n,i,s){return new sn(n,i,s)}static isValidIdentifier(n){return An.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),sn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new sn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new be(se.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Cn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Cn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Kt(new Cn(n.slice()))}}class Mr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Mr(on.min(),Kt.empty(),-1)}static max(){return new Mr(on.max(),Kt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Kt.comparator(l.documentKey,n.documentKey),0!==i?i:je(l.largestBatchId,n.largestBatchId))}const _r="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Zr(l){return zr.apply(this,arguments)}function zr(){return(zr=(0,Ie.A)(function*(l){if(l.code!==se.FAILED_PRECONDITION||l.message!==_r)throw l;Be("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class ue{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&z(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new ue((s,u)=>{this.nextCallback=f=>{this.wrapSuccess(n,f).next(s,u)},this.catchCallback=f=>{this.wrapFailure(i,f).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof ue?i:ue.resolve(i)}catch(i){return ue.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):ue.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):ue.reject(i)}static resolve(n){return new ue((i,s)=>{i(n)})}static reject(n){return new ue((i,s)=>{s(n)})}static waitFor(n){return new ue((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},k=>s(k))}),_=!0,f===u&&i()})}static or(n){let i=ue.resolve(!1);for(const s of n)i=i.next(u=>u?ue.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,f)=>{s.push(i.call(this,u,f))}),this.waitFor(s)}static mapArray(n,i){return new ue((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let k=0;k{_[X]=fe,++w,w===f&&s(_)},fe=>u(fe))}})}static doWhile(n,i){return new ue((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function Ne(l){return"IndexedDbTransactionError"===l.name}let cn=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function Hn(l){return null==l}function dn(l){return 0===l&&1/l==-1/0}function sr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function Wr(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function Er(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class pr{constructor(n,i){this.comparator=n,this.root=i||kn.EMPTY}insert(n,i){return new pr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,kn.BLACK,null,null))}remove(n){return new pr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,kn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new ei(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new ei(this.root,n,this.comparator,!1)}getReverseIterator(){return new ei(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new ei(this.root,n,this.comparator,!0)}}class ei{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let f=1;for(;!n.isEmpty();)if(f=i?s(n.key,i):1,i&&u&&(f*=-1),f<0)n=this.isReverse?n.left:n.right;else{if(0===f){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class kn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:kn.RED,this.left=null!=u?u:kn.EMPTY,this.right=null!=f?f:kn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new kn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=f?f:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const f=s(n,u.key);return u=f<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===f?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return kn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return kn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,kn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,kn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw z();const n=this.left.check();if(n!==this.right.check())throw z();return n+(this.isRed()?0:1)}}kn.EMPTY=null,kn.RED=!0,kn.BLACK=!1,kn.EMPTY=new class{constructor(){this.size=0}get key(){throw z()}get value(){throw z()}get color(){throw z()}get left(){throw z()}get right(){throw z()}copy(n,i,s,u,f){return this}insert(n,i,s){return new kn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Ln{constructor(n){this.comparator=n,this.data=new pr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new _o(this.data.getIterator())}getIteratorFrom(n){return new _o(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Ln)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(0!==this.comparator(u,f))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Ln(this.comparator);return i.data=n,i}}class _o{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class vi{constructor(n){this.fields=n,n.sort(sn.comparator)}static empty(){return new vi([])}unionWith(n){let i=new Ln(sn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new vi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return bt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Co extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class li{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(f){throw typeof DOMException<"u"&&f instanceof DOMException?new Co("Invalid base64 string: "+f):f}}(n);return new li(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nme(i,n))}function _e(l,n){if(l===n)return 0;const i=Q(l),s=Q(n);if(i!==s)return je(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return je(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=_i(f.integerValue||f.doubleValue),k=_i(_.integerValue||_.doubleValue);return wk?1:w===k?0:isNaN(w)?isNaN(k)?0:-1:1}(l,n);case 3:return st(l.timestampValue,n.timestampValue);case 4:return st(Do(l),Do(n));case 5:return je(l.stringValue,n.stringValue);case 6:return function(f,_){const w=Yn(f),k=Yn(_);return w.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),k=_.split("/");for(let X=0;Xn.mapValue.fields[i]=Qt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=Qt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function Zt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Rn{constructor(n){this.value=n}static empty(){return new Rn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=Qt(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());Bt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return me(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=f);for(const u of s)delete n[u]}clone(){return new Rn(Qt(this.value))}}function Ur(l){const n=[];return Wr(l.fields,(i,s)=>{const u=new sn([i]);if(Bt(s)){const f=Ur(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new vi(n)}class Tr{constructor(n,i,s,u,f,_,w){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=f,this.data=_,this.documentState=w}static newInvalidDocument(n){return new Tr(n,0,on.min(),on.min(),on.min(),Rn.empty(),0)}static newFoundDocument(n,i,s,u){return new Tr(n,1,i,on.min(),s,u,0)}static newNoDocument(n,i){return new Tr(n,2,i,on.min(),on.min(),Rn.empty(),0)}static newUnknownDocument(n,i){return new Tr(n,3,i,on.min(),on.min(),Rn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(on.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Rn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Rn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=on.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Tr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Tr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class dr{constructor(n,i){this.position=n,this.inclusive=i}}function yi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return z()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class ui extends Ko{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new ui(n,i)}matches(n){return Xo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Xo(l){return"and"===l.op}function qo(l){return function wo(l){for(const n of l.filters)if(n instanceof ui)return!1;return!0}(l)&&Xo(l)}function xa(l){if(l instanceof Dr)return l.field.canonicalString()+l.op.toString()+mr(l.value);if(qo(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function ss(l,n){return l instanceof Dr?(s=l,(u=n)instanceof Dr&&s.op===u.op&&s.field.isEqual(u.field)&&me(s.value,u.value)):l instanceof ui?function(s,u){return u instanceof ui&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&ss(_,u.filters[w]),!0)}(l,n):void z();var s,u}function jr(l){return l instanceof Dr?`${(i=l).field.canonicalString()} ${i.op} ${mr(i.value)}`:l instanceof ui?function(i){return i.op.toString()+" {"+i.getFilters().map(jr).join(" ,")+"}"}(l):"Filter";var i}class oo extends Dr{constructor(n,i,s){super(n,i,s),this.key=Kt.fromName(s.referenceValue)}matches(n){const i=Kt.comparator(n.key,this.key);return this.matchesComparison(i)}}class Us extends Dr{constructor(n,i){super(n,"in",i),this.keys=ua(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class so extends Dr{constructor(n,i){super(n,"not-in",i),this.keys=ua(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function ua(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>Kt.fromName(s.referenceValue))}class gs extends Dr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return $e(i)&&P(i.arrayValue,this.value)}}class ms extends Dr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class as extends Dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class $s extends Dr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!$e(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class ca{constructor(n,i=null,s=[],u=[],f=null,_=null,w=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=f,this.startAt=_,this.endAt=w,this.ue=null}}function Qo(l,n=null,i=[],s=[],u=null,f=null,_=null){return new ca(l,n,i,s,u,f,_)}function bs(l){const n=ie(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>xa(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(f=s).field.canonicalString()+f.dir;var f}).join(","),Hn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>mr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>mr(s)).join(",")),n.ue=i}return n.ue}function Yo(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let w=new Ln(sn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(X=>{X.isInequality()&&(w=w.add(X.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new Ai(f,s))}),i.has(sn.keyField().canonicalString())||n.ce.push(new Ai(sn.keyField(),s))}return n.ce}function Un(l){const n=ie(l);return n.le||(n.le=function Zi(l,n){if("F"===l.limitType)return Qo(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new Ai(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new dr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new dr(l.startAt.position,l.startAt.inclusive):null;return Qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,fn(l))),n.le}function eo(l,n,i){return new j(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Jo(l,n){return Yo(Un(l),Un(n))&&l.limitType===n.limitType}function Na(l){return`${bs(Un(l))}|lt:${l.limitType}`}function vs(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>jr(u)).join(", ")}]`),Hn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>mr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>mr(u)).join(",")),`Target(${s})`}(Un(l))}; limitType=${l.limitType})`}function Bs(l,n){return n.isFoundDocument()&&function(s,u){const f=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(f):Kt.isDocumentKey(s.path)?s.path.isEqual(f):s.path.isImmediateParentOf(f)}(l,n)&&function(s,u){for(const f of fn(s))if(!f.field.isKeyField()&&null===u.data.field(f.field))return!1;return!0}(l,n)&&function(s,u){for(const f of s.filters)if(!f.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,w,k){const X=yi(_,w,k);return _.inclusive?X<=0:X<0}(s.startAt,fn(s),u)||s.endAt&&!function(_,w,k){const X=yi(_,w,k);return _.inclusive?X>=0:X>0}(s.endAt,fn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of fn(l)){const f=al(u,n,i);if(0!==f)return f;s=s||u.field.isKeyField()}return 0}}function al(l,n,i){const s=l.field.isKeyField()?Kt.comparator(n.key,i.key):function(f,_,w){const k=_.data.field(f),X=w.data.field(f);return null!==k&&null!==X?_e(k,X):z()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return z()}}class ls{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,f]of s)if(this.equalsFn(u,n))return f}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let f=0;f{for(const[u,f]of s)n(u,f)})}isEmpty(){return Er(this.inner)}size(){return this.innerSize}}const ha=new pr(Kt.comparator);function cr(){return ha}const Vi=new pr(Kt.comparator);function xi(...l){let n=Vi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Vi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function oi(){return us()}function ll(){return us()}function us(){return new ls(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new pr(Kt.comparator),Ll=new Ln(Kt.comparator);function Sr(...l){let n=Ll;for(const i of l)n=n.add(i);return n}const ul=new Ln(je);function ka(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:dn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function _n(l){return"number"==typeof l&&Number.isInteger(l)&&!dn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Vl(l,n,i){return l instanceof Is?function(u,f){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return f&&Lo(f)&&(f=To(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Zo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return Se(_)&&Se(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Zo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof es?Se(s=n)||(f=s)&&"doubleValue"in f?n:{integerValue:0}:null;var s,f}class Is extends Fa{}class ws extends Fa{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>me(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ss extends Fa{constructor(n){super(),this.elements=n}}function dl(l,n){let i=$l(n);for(const s of l.elements)i=i.filter(u=>!me(u,s));return{arrayValue:{values:i}}}class es extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return _i(l.integerValue||l.doubleValue)}function $l(l){return $e(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Ni{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ni}static exists(n){return new Ni(void 0,n)}static updateTime(n){return new Ni(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function pa(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Bl{}function ga(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new B(l.key,Ni.none()):new Ms(l.key,l.data,Ni.none());{const i=l.data,s=Rn.empty();let u=new Ln(sn.comparator);for(let f of n.fields)if(!u.has(f)){let _=i.field(f);null===_&&f.length>1&&(f=f.popLast(),_=i.field(f)),null===_?s.delete(f):s.set(f,_),u=u.add(f)}return new lo(l.key,s,new vi(u.toArray()),Ni.none())}}function La(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),k=Es(u.fieldTransforms,f,_.transformResults);w.setAll(k),f.convertToFoundDocument(_.version,w).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,f,_){if(!pa(u.precondition,f))return void f.convertToUnknownDocument(_.version);const w=Es(u.fieldTransforms,f,_.transformResults),k=f.data;k.setAll(Hs(u)),k.setAll(w),f.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,k){if(!pa(f.precondition,_))return w;const X=f.value.clone(),fe=T(f.fieldTransforms,k,_);return X.setAll(fe),_.convertToFoundDocument(_.version,X).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,k){if(!pa(f.precondition,_))return w;const X=T(f.fieldTransforms,k,_),fe=_.data;return fe.setAll(Hs(f)),fe.setAll(X),_.convertToFoundDocument(_.version,fe).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(xe=>xe.field))}(l,n,i,s):(w=i,pa(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):w);var _,w}function pc(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),f=fa(s.transform,u||null);null!=f&&(null===i&&(i=Rn.empty()),i.set(s.field,f))}return i||null}function ma(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&bt(s,u,(f,_)=>function ts(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof ws&&u instanceof ws||s instanceof Ss&&u instanceof Ss?bt(s.elements,u.elements,me):s instanceof es&&u instanceof es?me(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(f,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ms extends Bl{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Bl{constructor(n,i,s,u,f=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=f,this.type=1}getFieldMask(){return this.fieldMask}}function Hs(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Es(l,n,i){const s=new Map;K(l.length===i.length);for(let u=0;u{const f=n.get(u.key),_=f.overlayedDocument;let w=this.applyToLocalView(_,f.mutatedFields);w=i.has(u.key)?null:w;const k=ga(_,w);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(on.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Sr())}isEqual(n){return this.batchId===n.batchId&&bt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&bt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class pe{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){K(n.mutations.length===s.length);let u=function(){return _s}();const f=n.mutations;for(let _=0;_=8)throw new ci(`Invalid padding: ${i}`);if(s<0)throw new ci(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new ci(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new ci(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=ze.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(ze.fromNumber(s)));return 1===u.compare(Ui)&&(u=new ze([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(w)),_}insert(n){if(0===this.Ie)return;const i=si(n),[s,u]=yn(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=Sr(),i=Sr(),s=Sr();return this.ge.forEach((u,f)=>{switch(f){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:z()}}),new wi(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Va()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,K(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class $o{constructor(n){this.Le=n,this.Be=new Map,this.ke=cr(),this.qe=wr(),this.Qe=new pr(je)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:z()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const f=u.target;if(So(f))if(0===s){const _=new Kt(f.path);this.Ue(i,_,Tr.newNoDocument(_,on.min()))}else K(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),k=w?this.Xe(w,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:f=0}=i;let _,w;try{_=Yn(s).toUint8Array()}catch(k){if(k instanceof Co)return Ze("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{w=new zn(_,u,f)}catch(k){return Ze(k instanceof ci?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===w.Ie?null:w}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(f=>{const _=this.Le.tt(),w=`projects/${_.projectId}/databases/${_.database}/documents/${f.path.canonicalString()}`;n.mightContain(w)||(this.Ue(i,f,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((f,_)=>{const w=this.Je(_);if(w){if(f.current&&So(w.target)){const k=new Kt(w.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,Tr.newNoDocument(k,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=Sr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(k=>{const X=this.Je(k);return!X||"TargetPurposeLimboResolution"===X.purpose||(w=!1,!1)}),w&&(s=s.add(f))}),this.ke.forEach((f,_)=>_.setReadTime(n));const u=new Gi(n,i,this.Qe,this.ke,s);return this.ke=cr(),this.qe=wr(),this.Qe=new pr(je),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new Hi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Ln(je),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||Be("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new Hi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function wr(){return new pr(Kt.comparator)}function Va(){return new pr(Kt.comparator)}const gc={asc:"ASCENDING",desc:"DESCENDING"},Ua={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Ki={and:"AND",or:"OR"};class va{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function ns(l,n){return l.useProto3Json||Hn(n)?n:{value:n}}function Ro(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function Gs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function jl(l,n){return Ro(l,n.toTimestamp())}function Qr(l){return K(!!l),on.fromTimestamp(function(i){const s=Kr(i);return new Jt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new Cn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Or(l){const n=Cn.fromString(l);return K(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function ko(l,n){const i=Or(n);if(i.get(1)!==l.databaseId.projectId)throw new be(se.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new be(se.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Kt(Bi(i))}function Bo(l,n){return _a(l.databaseId,n)}function Ks(l){return new Cn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Bi(l){return K(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Su(l,n,i){return{name:$a(l,n),fields:i.value.mapValue.fields}}function Hl(l,n){return{documents:[Bo(l,n.path)]}}function Gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=Bo(l,u);const f=function(X){if(0!==X.length)return Ad(ui.create(X,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(X){if(0!==X.length)return X.map(fe=>{return{field:Xs((rt=fe).field),direction:ja(rt.dir)};var rt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=ns(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(X=n.startAt).inclusive,values:X.position}),n.endAt&&(i.structuredQuery.endAt=function(X){return{before:!X.inclusive,values:X.position}}(n.endAt)),{_t:i,parent:u};var X}function Ea(l){let n=function ya(l){const n=Or(l);return 4===n.length?Cn.emptyPath():Bi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){K(1===s);const fe=i.from[0];fe.allDescendants?u=fe.collectionId:n=n.child(fe.collectionId)}let f=[];i.where&&(f=function(xe){const rt=Ba(xe);return rt instanceof ui&&qo(rt)?rt.getFilters():[rt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(rt=>{return new Ai(qs((hn=rt).field),function(vn){switch(vn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(hn.direction));var hn}));let w=null;i.limit&&(w=function(xe){let rt;return rt="object"==typeof xe?xe.value:xe,Hn(rt)?null:rt}(i.limit));let k=null;var xe;i.startAt&&(k=new dr((xe=i.startAt).values||[],!!xe.before));let X=null;return i.endAt&&(X=function(xe){return new dr(xe.values||[],!xe.before)}(i.endAt)),function N(l,n,i,s,u,f,_,w){return new j(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",k,X)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=qs(i.unaryFilter.field);return Dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=qs(i.unaryFilter.field);return Dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=qs(i.unaryFilter.field);return Dr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=qs(i.unaryFilter.field);return Dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return z()}}(l):void 0!==l.fieldFilter?Dr.create(qs((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return z()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return ui.create(i.compositeFilter.filters.map(s=>Ba(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return z()}}(i.compositeFilter.op))}(l):z();var i}function ja(l){return gc[l]}function Gh(l){return Ua[l]}function mc(l){return Ki[l]}function Xs(l){return{fieldPath:l.canonicalString()}}function qs(l){return sn.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof Dr?function(i){if("=="===i.op){if(ut(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NAN"}};if(pt(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(ut(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NOT_NAN"}};if(pt(i.value))return{unaryFilter:{field:Xs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Xs(i.field),op:Gh(i.op),value:i.value}}}(l):l instanceof ui?function(i){const s=i.getFilters().map(u=>Ad(u));return 1===s.length?s[0]:{compositeFilter:{op:mc(i.op),filters:s}}}(l):z()}function Cd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function Td(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class Aa{constructor(n,i,s,u,f=on.min(),_=on.min(),w=li.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=k}withSequenceNumber(n){return new Aa(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class Wh{constructor(n){this.ct=n}}function Ae(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class jo{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(_i(n.integerValue));else if("doubleValue"in n){const s=_i(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),dn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=Kr(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(Yn(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?Zt(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):z()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),Kt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}jo.bt=new jo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),ue.resolve()}getCollectionParents(n,i){return ue.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return ue.resolve()}deleteFieldIndex(n,i){return ue.resolve()}deleteAllFieldIndexes(n){return ue.resolve()}createTargetIndexes(n,i){return ue.resolve()}getDocumentsMatchingTarget(n,i){return ue.resolve(null)}getIndexType(n,i){return ue.resolve(0)}getFieldIndexes(n,i){return ue.resolve([])}getNextCollectionGroupToUpdate(n){return ue.resolve(null)}getMinOffset(n,i){return ue.resolve(Mr.min())}getMinOffsetFromCollectionGroup(n,i){return ue.resolve(Mr.min())}updateCollectionGroup(n,i,s){return ue.resolve()}updateIndexEntries(n,i){return ue.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Ln(Cn.comparator),f=!u.has(s);return this.index[i]=u.add(s),f}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Ln(Cn.comparator)).toArray()}}new Uint8Array(0);class nr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new nr(n,nr.DEFAULT_COLLECTION_PERCENTILE,nr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}nr.DEFAULT_COLLECTION_PERCENTILE=10,nr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,nr.DEFAULT=new nr(41943040,nr.DEFAULT_COLLECTION_PERCENTILE,nr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),nr.DISABLED=new nr(-1,0,0);class gl{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new gl(0)}static Ln(){return new gl(-1)}}class Zs{constructor(){this.changes=new ls(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,Tr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?ue.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Ts{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class na{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zs(s.mutation,u,vi.empty(),Jt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Sr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Sr()){const u=oi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=xi();return f.forEach((w,k)=>{_=_.insert(w,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=oi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Sr()))}populateOverlays(n,i,s){const u=[];return s.forEach(f=>{i.has(f)||u.push(f)}),this.documentOverlayCache.getOverlays(n,u).next(f=>{f.forEach((_,w)=>{i.set(_,w)})})}computeViews(n,i,s,u){let f=cr();const _=us(),w=us();return i.forEach((k,X)=>{const fe=s.get(X.key);u.has(X.key)&&(void 0===fe||fe.mutation instanceof lo)?f=f.insert(X.key,X):void 0!==fe?(_.set(X.key,fe.mutation.getFieldMask()),zs(fe.mutation,X,fe.mutation.getFieldMask(),Jt.now())):_.set(X.key,vi.empty())}),this.recalculateAndSaveOverlays(n,f).next(k=>(k.forEach((X,fe)=>_.set(X,fe)),i.forEach((X,fe)=>{var xe;return w.set(X,new Ts(fe,null!==(xe=_.get(X))&&void 0!==xe?xe:null))}),w))}recalculateAndSaveOverlays(n,i){const s=us();let u=new pr((_,w)=>_-w),f=Sr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(k=>{const X=i.get(k);if(null===X)return;let fe=s.get(k)||vi.empty();fe=w.applyToLocalView(X,fe),s.set(k,fe);const xe=(u.get(w.batchId)||Sr()).add(k);u=u.insert(w.batchId,xe)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const k=w.getNext(),X=k.key,fe=k.value,xe=ll();fe.forEach(rt=>{if(!f.has(rt)){const kt=ga(i.get(rt),s.get(rt));null!==kt&&xe.set(rt,kt),f=f.add(rt)}}),_.push(this.documentOverlayCache.saveOverlays(n,X,xe))}return ue.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Kt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Re(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(f=>{const _=u-f.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-f.size):ue.resolve(oi());let w=-1,k=f;return _.next(X=>ue.forEach(X,(fe,xe)=>(w{k=k.insert(fe,rt)}))).next(()=>this.populateOverlays(n,X,f)).next(()=>this.computeViews(n,k,X,Sr())).next(fe=>({batchId:w,changes:ro(fe)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Kt(i)).next(s=>{let u=xi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=xi();return this.indexManager.getCollectionParents(n,f).next(w=>ue.forEach(w,k=>{const X=(xe=i,rt=k.child(f),new j(rt,null,xe.explicitOrderBy.slice(),xe.filters.slice(),xe.limit,xe.limitType,xe.startAt,xe.endAt));var xe,rt;return this.getDocumentsMatchingCollectionQuery(n,X,s,u).next(fe=>{fe.forEach((xe,rt)=>{_=_.insert(xe,rt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let f;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(f=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,f,u))).next(_=>{f.forEach((k,X)=>{const fe=X.getKey();null===_.get(fe)&&(_=_.insert(fe,Tr.newInvalidDocument(fe)))});let w=xi();return _.forEach((k,X)=>{const fe=f.get(k);void 0!==fe&&zs(fe.mutation,X,vi.empty(),Jt.now()),Bs(i,X)&&(w=w.insert(k,X))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return ue.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Qr(u.createTime)}),ue.resolve();var u}getNamedQuery(n,i){return ue.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Ae(u.bundledQuery),readTime:Qr(u.readTime)}),ue.resolve();var u}}class Tc{constructor(){this.overlays=new pr(Kt.comparator),this.hr=new Map}getOverlay(n,i){return ue.resolve(this.overlays.get(i))}getOverlays(n,i){const s=oi();return ue.forEach(i,u=>this.getOverlay(n,u).next(f=>{null!==f&&s.set(u,f)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,f)=>{this.ht(n,i,f)}),ue.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(f=>this.overlays=this.overlays.remove(f)),this.hr.delete(s)),ue.resolve()}getOverlaysForCollection(n,i,s){const u=oi(),f=i.length+1,_=new Kt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const k=w.getNext().value,X=k.getKey();if(!i.isPrefixOf(X.path))break;X.path.length===f&&k.largestBatchId>s&&u.set(k.getKey(),k)}return ue.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new pr((X,fe)=>X-fe);const _=this.overlays.getIterator();for(;_.hasNext();){const X=_.getNext().value;if(X.getKey().getCollectionGroup()===i&&X.largestBatchId>s){let fe=f.get(X.largestBatchId);null===fe&&(fe=oi(),f=f.insert(X.largestBatchId,fe)),fe.set(X.getKey(),X)}}const w=oi(),k=f.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((X,fe)=>w.set(X,fe)),!(w.size()>=u)););return ue.resolve(w)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new Le(i,s));let f=this.hr.get(i);void 0===f&&(f=Sr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new Ln(Eo.Ir),this.Tr=new Ln(Eo.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Eo(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Eo(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Kt(new Cn([])),s=new Eo(i,n),u=new Eo(i,n+1),f=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),f.push(_.key)}),f}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new Kt(new Cn([])),s=new Eo(i,n),u=new Eo(i,n+1);let f=Sr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Eo(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Eo{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Kt.comparator(n.key,i.key)||je(n.pr,i.pr)}static Er(n,i){return je(n.pr,i.pr)||Kt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Ln(Eo.Ir)}checkEmpty(n){return ue.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new F(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Eo(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return ue.resolve(_)}lookupMutationBatch(n,i){return ue.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return ue.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return ue.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return ue.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Eo(i,0),u=new Eo(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),ue.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Ln(je);return i.forEach(u=>{const f=new Eo(u,0),_=new Eo(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),ue.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let f=s;Kt.isDocumentKey(f)||(f=f.child(""));const _=new Eo(new Kt(f),0);let w=new Ln(je);return this.wr.forEachWhile(k=>{const X=k.key.path;return!!s.isPrefixOf(X)&&(X.length===u&&(w=w.add(k.pr)),!0)},_),ue.resolve(this.Dr(w))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){K(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return ue.forEach(i.mutations,u=>{const f=new Eo(u.key,i.batchId);return s=s.delete(f),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Eo(i,0),u=this.wr.firstAfterOrEqual(s);return ue.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return ue.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Ou{constructor(n){this.vr=n,this.docs=new pr(Kt.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),f=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-f,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return ue.resolve(s?s.document.mutableCopy():Tr.newInvalidDocument(i))}getEntries(n,i){let s=cr();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():Tr.newInvalidDocument(u))}),ue.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=cr();const _=i.path,w=new Kt(_.child("")),k=this.docs.getIteratorFrom(w);for(;k.hasNext();){const{key:X,value:{document:fe}}=k.getNext();if(!_.isPrefixOf(X.path))break;X.path.length>_.length+1||tr(new Mr((l=fe).readTime,l.key,-1),s)<=0||(u.has(fe.key)||Bs(i,fe))&&(f=f.insert(fe.key,fe.mutableCopy()))}var l;return ue.resolve(f)}getAllFromCollectionGroup(n,i,s,u){z()}Fr(n,i){return ue.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return ue.resolve(this.size)}}class xd extends Zs{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),ue.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Dc{constructor(n){this.persistence=n,this.Mr=new ls(i=>bs(i),Yo),this.lastRemoteSnapshotVersion=on.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Md,this.targetCount=0,this.Lr=gl.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),ue.resolve()}getLastRemoteSnapshotVersion(n){return ue.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return ue.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),ue.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),ue.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new gl(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,ue.resolve()}updateTargetData(n,i){return this.qn(i),ue.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,ue.resolve()}removeTargets(n,i,s){let u=0;const f=[];return this.Mr.forEach((_,w)=>{w.sequenceNumber<=i&&null===s.get(w.targetId)&&(this.Mr.delete(_),f.push(this.removeMatchingKeysForTargetId(n,w.targetId)),u++)}),ue.waitFor(f).next(()=>u)}getTargetCount(n){return ue.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return ue.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),ue.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,f=[];return u&&i.forEach(_=>{f.push(u.markPotentiallyOrphaned(n,_))}),ue.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),ue.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return ue.resolve(s)}containsKey(n,i){return ue.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new cn(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Dc(this),this.indexManager=new Cs,this.remoteDocumentCache=new Ou(s=>this.referenceDelegate.Kr(s)),this.serializer=new Wh(i),this.$r=new ng(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Tc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Pd(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){Be("MemoryPersistence","Starting transaction:",n);const u=new Yh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(f=>this.referenceDelegate.Wr(u).next(()=>f)).toPromise().then(f=>(u.raiseOnCommittedEvent(),f))}Gr(n,i){return ue.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Yh extends Ii{constructor(n){super(),this.currentSequenceNumber=n}}class Da{constructor(n){this.persistence=n,this.zr=new Md,this.jr=null}static Hr(n){return new Da(n)}get Jr(){if(this.jr)return this.jr;throw z()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),ue.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),ue.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),ue.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(f=>this.Jr.add(f.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ue.forEach(this.Jr,s=>{const u=Kt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,on.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return ue.or([()=>ue.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Si{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Sr(),u=Sr();for(const f of i.docChanges)switch(f.type){case 0:s=s.add(f.doc.key);break;case 1:u=u.add(f.doc.key)}return new Si(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Zh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,we.nr)()?8:function ot(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,we.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const f={result:null};return this.ji(n,i).next(_=>{f.result=_}).next(()=>{if(!f.result)return this.Hi(n,i,u,s).next(_=>{f.result=_})}).next(()=>{if(f.result)return;const _=new rg;return this.Ji(n,i,_).next(w=>{if(f.result=w,this.Ui)return this.Yi(n,i,_,w.size)})}).next(()=>f.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(zt()<=Qe.$b.DEBUG&&Be("QueryEngine","The SDK decides to create cache indexes for query:",vs(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Un(i))):ue.resolve())}ji(n,i){if(G(i))return ue.resolve(null);let s=Un(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=Un(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=Sr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(k=>{const X=this.Zi(i,w);return this.Xi(i,X,_,k.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,X,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(on.min())?ue.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?ue.resolve(null):(zt()<=Qe.$b.DEBUG&&Be("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function er(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=on.fromTimestamp(1e9===s?new Jt(i+1,0):new Jt(i,s));return new Mr(u,Kt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new Ln(sl(n));return i.forEach((u,f)=>{Bs(n,f)&&(s=s.add(f))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const f="F"===n.limitType?i.last():i.first();return!!f&&(f.hasPendingWrites||f.version.compareTo(u)>0)}Ji(n,i,s){return zt()<=Qe.$b.DEBUG&&Be("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Mr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(f=>(i.forEach(_=>{f=f.insert(_.key,_)}),f))}}class ig{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new pr(je),this.rs=new ls(f=>bs(f),Yo),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new na(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Od(l,n){return Vu.apply(this,arguments)}function Vu(){return(Vu=(0,Ie.A)(function*(l,n){const i=ie(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(f=>(u=f,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(f=>{const _=[],w=[];let k=Sr();for(const X of u){_.push(X.batchId);for(const fe of X.mutations)k=k.add(fe.key)}for(const X of f){w.push(X.batchId);for(const fe of X.mutations)k=k.add(fe.key)}return i.localDocuments.getDocuments(s,k).next(X=>({us:X,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=ie(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=ie(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function ia(l,n,i){return Rc.apply(this,arguments)}function Rc(){return(Rc=(0,Ie.A)(function*(l,n,i){const s=ie(l),u=s.ns.get(n),f=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",f,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Ne(_))throw _;Be("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function vl(l,n,i){const s=ie(l);let u=on.min(),f=Sr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,X,fe){const xe=ie(k),rt=xe.rs.get(fe);return void 0!==rt?ue.resolve(xe.ns.get(rt)):xe.Qr.getTargetData(X,fe)}(s,_,Un(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(k=>{f=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:on.min(),i?f:Sr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||on.min();i.forEach((u,f)=>{f.readTime.compareTo(s)>0&&(s=f.readTime)}),l.ss.set(n,s)}(s,function Oa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),w),{documents:w,hs:f})))}class ju{constructor(){this.activeTargetIds=function ys(){return ul}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class rf{constructor(){this.no=new ju,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new ju,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class sf{io(n){}shutdown(){}}class Ld{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){Be("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){Be("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Nc=null;function Ds(){return null===Nc?Nc=268435456+Math.round(2147483648*Math.random()):Nc++,"0x"+Nc.toString(16)}const cv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class zu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Po="WebChannelConnection";class Vd extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),f=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${f}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${f}`}get Do(){return!1}Co(i,s,u,f,_){const w=Ds(),k=this.vo(i,s.toUriEncodedString());Be("RestConnection",`Sending RPC '${i}' ${w}:`,k,u);const X={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(X,f,_),this.Mo(i,k,X,u).then(fe=>(Be("RestConnection",`Received RPC '${i}' ${w}: `,fe),fe),fe=>{throw Ze("RestConnection",`RPC '${i}' ${w} failed with error: `,fe,"url: ",k,"request:",u),fe})}xo(i,s,u,f,_,w){return this.Co(i,s,u,f,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+nt,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((f,_)=>i[_]=f),u&&u.headers.forEach((f,_)=>i[_]=f)}vo(i,s){return`${this.wo}/v1/${s}:${cv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const f=Ds();return new Promise((_,w)=>{const k=new at;k.setWithCredentials(!0),k.listenOnce(ft.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case yt.NO_ERROR:const fe=k.getResponseJson();Be(Po,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(fe)),_(fe);break;case yt.TIMEOUT:Be(Po,`RPC '${n}' ${f} timed out`),w(new be(se.DEADLINE_EXCEEDED,"Request time out"));break;case yt.HTTP_ERROR:const xe=k.getStatus();if(Be(Po,`RPC '${n}' ${f} failed with status:`,xe,"response text:",k.getResponseText()),xe>0){let rt=k.getResponseJson();Array.isArray(rt)&&(rt=rt[0]);const kt=null==rt?void 0:rt.error;if(kt&&kt.status&&kt.message){const hn=function(vn){const Jn=vn.toLowerCase().replace(/_/g,"-");return Object.values(se).indexOf(Jn)>=0?Jn:se.UNKNOWN}(kt.status);w(new be(hn,kt.message))}else w(new be(se.UNKNOWN,"Server responded with status "+k.getStatus()))}else w(new be(se.UNAVAILABLE,"Connection failed."));break;default:z()}}finally{Be(Po,`RPC '${n}' ${f} completed.`)}});const X=JSON.stringify(u);Be(Po,`RPC '${n}' ${f} sending request:`,u),k.send(i,"POST",X,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Je(),w=He(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},X=this.longPollingOptions.timeoutSeconds;void 0!==X&&(k.longPollingTimeout=Math.round(1e3*X)),this.useFetchStreams&&(k.xmlHttpFactory=new gt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const fe=f.join("");Be(Po,`Creating RPC '${n}' stream ${u}: ${fe}`,k);const xe=_.createWebChannel(fe,k);let rt=!1,kt=!1;const hn=new zu({lo:vn=>{kt?Be(Po,`Not sending because RPC '${n}' stream ${u} is closed:`,vn):(rt||(Be(Po,`Opening RPC '${n}' stream ${u} transport.`),xe.open(),rt=!0),Be(Po,`RPC '${n}' stream ${u} sending:`,vn),xe.send(vn))},ho:()=>xe.close()}),bn=(vn,Jn,vr)=>{vn.listen(Jn,lr=>{try{vr(lr)}catch(Br){setTimeout(()=>{throw Br},0)}})};return bn(xe,xt.EventType.OPEN,()=>{kt||(Be(Po,`RPC '${n}' stream ${u} transport opened.`),hn.mo())}),bn(xe,xt.EventType.CLOSE,()=>{kt||(kt=!0,Be(Po,`RPC '${n}' stream ${u} transport closed`),hn.po())}),bn(xe,xt.EventType.ERROR,vn=>{kt||(kt=!0,Ze(Po,`RPC '${n}' stream ${u} transport errored:`,vn),hn.po(new be(se.UNAVAILABLE,"The operation could not be completed")))}),bn(xe,xt.EventType.MESSAGE,vn=>{var Jn;if(!kt){const vr=vn.data[0];K(!!vr);const Br=vr.error||(null===(Jn=vr[0])||void 0===Jn?void 0:Jn.error);if(Br){Be(Po,`RPC '${n}' stream ${u} received error:`,Br);const Ri=Br.status;let ri=function(dt){const Dt=Kn[dt];if(void 0!==Dt)return Nr(Dt)}(Ri),Tt=Br.message;void 0===ri&&(ri=se.INTERNAL,Tt="Unknown error status: "+Ri+" with message "+Br.message),kt=!0,hn.po(new be(ri,Tt)),xe.close()}else Be(Po,`RPC '${n}' stream ${u} received:`,vr),hn.yo(vr)}}),bn(w,Ke.STAT_EVENT,vn=>{vn.stat===Pe.PROXY?Be(Po,`RPC '${n}' stream ${u} detected buffering proxy`):vn.stat===Pe.NOPROXY&&Be(Po,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{hn.fo()},0),hn}}function Al(){return typeof document<"u"?document:null}function Oc(l){return new va(l,!0)}class eu{constructor(n,i,s=1e3,u=1.5,f=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=f,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&Be("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Ud{constructor(n,i,s,u,f,_,w,k){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new eu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,Ie.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,Ie.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,Ie.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===se.RESOURCE_EXHAUSTED?(tn(i.toString()),tn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===se.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new be(se.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,Ie.A)(function*(){n.state=0,n.start()}))}c_(n){return Be("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(Be("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class af extends Ud{constructor(n,i,s,u,f,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function zl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(X=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===X?1:"REMOVE"===X?2:"CURRENT"===X?3:"RESET"===X?4:z(),u=n.targetChange.targetIds||[],f=function(X,fe){return X.useProto3Json?(K(void 0===fe||"string"==typeof fe),li.fromBase64String(fe||"")):(K(void 0===fe||fe instanceof Buffer||fe instanceof Uint8Array),li.fromUint8Array(fe||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(X){const fe=void 0===X.code?se.UNKNOWN:Nr(X.code);return new be(fe,X.message||"")}(_);i=new pi(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=ko(l,s.document.name),f=Qr(s.document.updateTime),_=s.document.createTime?Qr(s.document.createTime):on.min(),w=new Rn({mapValue:{fields:s.document.fields}}),k=Tr.newFoundDocument(u,f,_,w);i=new Wi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ko(l,s.document),f=s.readTime?Qr(s.readTime):on.min(),_=Tr.newNoDocument(u,f);i=new Wi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ko(l,s.document);i=new Wi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return z();{const s=n.filter,{count:u=0,unchangedNames:f}=s,_=new mn(u,f);i=new $i(s.targetId,_)}}var X;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return on.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?on.min():_.readTime?Qr(_.readTime):on.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const k=_.target;if(w=So(k)?{documents:Hl(f,k)}:{query:Gl(f,k)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const X=ns(f,_.expectedCount);null!==X&&(w.expectedCount=X)}else if(_.snapshotVersion.compareTo(on.min())>0){w.readTime=Ro(f,_.snapshotVersion.toTimestamp());const X=ns(f,_.expectedCount);null!==X&&(w.expectedCount=X)}return w}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return z()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ks(this.serializer),i.removeTarget=n,this.i_(i)}}class lf extends Ud{constructor(n,i,s,u,f,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(K(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function cs(l,n){return l&&l.length>0?(K(void 0!==n),l.map(i=>function(u,f){let _=Qr(u.updateTime?u.updateTime:f);return _.isEqual(on.min())&&(_=Qr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Qr(n.commitTime);return this.listener.A_(s,i)}return K(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ks(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function As(l,n){let i;if(n instanceof Ms)i={update:Su(l,n.key,n.value)};else if(n instanceof B)i={delete:$a(l,n.key)};else if(n instanceof lo)i={update:Su(l,n.key,n.data),updateMask:Cd(n.fieldMask)};else{if(!(n instanceof Me))return z();i={verify:$a(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(f,_){const w=_.transform;if(w instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(w instanceof ws)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:w.elements}};if(w instanceof Ss)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:w.elements}};if(w instanceof es)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw z()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(f=n.precondition).updateTime?{updateTime:jl(l,f.updateTime)}:void 0!==f.exists?{exists:f.exists}:z()),i;var f}(this.serializer,s))};this.i_(i)}}class sg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new be(se.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([f,_])=>this.connection.Co(n,Ws(i,s),u,f,_)).catch(f=>{throw"FirebaseError"===f.name?(f.code===se.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new be(se.UNKNOWN,f.toString())})}xo(n,i,s,u,f){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,w])=>this.connection.xo(n,Ws(i,s),u,_,w,f)).catch(_=>{throw"FirebaseError"===_.name?(_.code===se.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new be(se.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class $d{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(tn(i),this.y_=!1):Be("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Cl{constructor(n,i,s,u,f){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=f,this.O_.io(w=>{s.enqueueAndForget((0,Ie.A)(function*(){var k;Qa(_)&&(Be("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,Ie.A)(function*(fe){const xe=ie(fe);xe.M_.add(4),yield tu(xe),xe.N_.set("Unknown"),xe.M_.delete(4),yield kc(xe)}),function X(fe){return k.apply(this,arguments)})(_))}))}),this.N_=new $d(s,u)}}function kc(l){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,Ie.A)(function*(l){if(Qa(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function tu(l){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,Ie.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function qa(l,n){const i=ie(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),df(i)?Hu(i):Xu(i).Xo()&&uf(i,n))}function Yi(l,n){const i=ie(l),s=Xu(i);i.F_.delete(n),s.Xo()&&cf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Qa(i)&&i.N_.set("Unknown"))}function uf(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(on.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}Xu(l).P_(n)}function cf(l,n){l.L_.xe(n),Xu(l).I_(n)}function Hu(l){l.L_=new $o({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),Xu(l).start(),l.N_.w_()}function df(l){return Qa(l)&&!Xu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===ie(l).M_.size}function Lc(l){l.L_=void 0}function ag(l){return Bd.apply(this,arguments)}function Bd(){return(Bd=(0,Ie.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ie.A)(function*(l){l.F_.forEach((n,i)=>{uf(l,n)})})).apply(this,arguments)}function lg(l,n){return ff.apply(this,arguments)}function ff(){return(ff=(0,Ie.A)(function*(l,n){Lc(l),df(l)?(l.N_.D_(n),Hu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function dv(l,n,i){return pf.apply(this,arguments)}function pf(){return pf=(0,Ie.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof pi&&2===n.state&&n.cause)try{yield(s=(0,Ie.A)(function*(f,_){const w=_.cause;for(const k of _.targetIds)f.F_.has(k)&&(yield f.remoteSyncer.rejectListen(k,w),f.F_.delete(k),f.L_.removeTarget(k))}),function u(f,_){return s.apply(this,arguments)})(l,n)}catch(s){Be("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield Vc(l,s)}else if(n instanceof Wi?l.L_.Ke(n):n instanceof $i?l.L_.He(n):l.L_.We(n),!i.isEqual(on.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((k,X)=>{if(k.resumeToken.approximateByteSize()>0){const fe=f.F_.get(X);fe&&f.F_.set(X,fe.withResumeToken(k.resumeToken,_))}}),w.targetMismatches.forEach((k,X)=>{const fe=f.F_.get(k);if(!fe)return;f.F_.set(k,fe.withResumeToken(li.EMPTY_BYTE_STRING,fe.snapshotVersion)),cf(f,k);const xe=new Aa(fe.target,k,X,fe.sequenceNumber);uf(f,xe)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){Be("RemoteStore","Failed to raise snapshot:",s),yield Vc(l,s)}var s}),pf.apply(this,arguments)}function Vc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ie.A)(function*(l,n,i){if(!Ne(n))throw n;l.M_.add(1),yield tu(l),l.N_.set("Offline"),i||(i=()=>Ns(l.localStore)),l.asyncQueue.enqueueRetryable((0,Ie.A)(function*(){Be("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield kc(l)}))})).apply(this,arguments)}function mf(l,n){return n().catch(i=>Vc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ie.A)(function*(l){const n=ie(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;gy(n);)try{const u=yield Sc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,ug(n,u)}catch(u){yield Vc(n,u)}_f(n)&&hs(n)})).apply(this,arguments)}function gy(l){return Qa(l)&&l.v_.length<10}function ug(l,n){l.v_.push(n);const i=nu(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function _f(l){return Qa(l)&&!nu(l).Zo()&&l.v_.length>0}function hs(l){nu(l).start()}function my(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ie.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function vy(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,Ie.A)(function*(l){const n=nu(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Ya(l,n,i){return zd.apply(this,arguments)}function zd(){return(zd=(0,Ie.A)(function*(l,n,i){const s=l.v_.shift(),u=pe.from(s,n,i);yield mf(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Wu(l)})).apply(this,arguments)}function Ku(l,n){return yf.apply(this,arguments)}function yf(){return yf=(0,Ie.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ie.A)(function*(u,f){if(function Xr(l){switch(l){default:return z();case se.CANCELLED:case se.UNKNOWN:case se.DEADLINE_EXCEEDED:case se.RESOURCE_EXHAUSTED:case se.INTERNAL:case se.UNAVAILABLE:case se.UNAUTHENTICATED:return!1;case se.INVALID_ARGUMENT:case se.NOT_FOUND:case se.ALREADY_EXISTS:case se.PERMISSION_DENIED:case se.FAILED_PRECONDITION:case se.ABORTED:case se.OUT_OF_RANGE:case se.UNIMPLEMENTED:case se.DATA_LOSS:return!0}}(w=f.code)&&w!==se.ABORTED){const _=u.v_.shift();nu(u).t_(),yield mf(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,f)),yield Wu(u)}var w}),function s(u,f){return i.apply(this,arguments)})(l,n)),_f(l)&&hs(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ie.A)(function*(l,n){const i=ie(l);i.asyncQueue.verifyOperationInProgress(),Be("RemoteStore","RemoteStore received new credentials");const s=Qa(i);i.M_.add(3),yield tu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield kc(i)})).apply(this,arguments)}function dg(l,n){return hg.apply(this,arguments)}function hg(){return(hg=(0,Ie.A)(function*(l,n){const i=ie(l);n?(i.M_.delete(2),yield kc(i)):n||(i.M_.add(2),yield tu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function Xu(l){return l.B_||(l.B_=function(i,s,u){const f=ie(i);return f.f_(),new af(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:ag.bind(null,l),To:hf.bind(null,l),Ao:lg.bind(null,l),h_:dv.bind(null,l)}),l.x_.push(function(){var n=(0,Ie.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Lc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function nu(l){return l.k_||(l.k_=function(i,s,u){const f=ie(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:my.bind(null,l),Ao:Ku.bind(null,l),R_:vy.bind(null,l),A_:Ya.bind(null,l)}),l.x_.push(function(){var n=(0,Ie.A)(function*(i){i?(l.k_.t_(),yield Wu(l)):(yield l.k_.stop(),l.v_.length>0&&(Be("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class fg{constructor(n,i,s,u,f){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=f,this.deferred=new Xe,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,f){const _=Date.now()+s,w=new fg(n,i,_,u,f);return w.start(s),w}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new be(se.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function qu(l,n){if(tn("AsyncQueue",`${n}: ${l}`),Ne(l))return new be(se.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Kt.comparator(i.key,s.key):(i,s)=>Kt.comparator(i.key,s.key),this.keyedMap=xi(),this.sortedSet=new pr(this.comparator)}static emptySet(n){return new oa(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof oa)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(!u.isEqual(f))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new oa;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Qu{constructor(){this.q_=new pr(Kt.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):z():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class ru{constructor(n,i,s,u,f,_,w,k,X){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=k,this.hasCachedResults=X}static fromInitialDocuments(n,i,s,u,f){const _=[];return i.forEach(w=>{_.push({type:0,doc:w})}),new ru(n,i,oa.emptySet(i),_,s,u,!0,!1,f)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Jo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class If{constructor(){this.queries=new ls(n=>Na(n),Jo),this.onlineState="Unknown",this.z_=new Set}}function Os(l,n){return Ef.apply(this,arguments)}function Ef(){return(Ef=(0,Ie.A)(function*(l,n){const i=ie(l);let s=3;const u=n.query;let f=i.queries.get(u);f?!f.W_()&&n.G_()&&(s=2):(f=new hv,s=n.G_()?0:1);try{switch(s){case 0:f.K_=yield i.onListen(u,!0);break;case 1:f.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const w=qu(_,`Initialization of query '${vs(n.query)}' failed`);return void n.onError(w)}i.queries.set(u,f),f.U_.push(n),n.j_(i.onlineState),f.K_&&n.H_(f.K_)&&Gd(i)})).apply(this,arguments)}function $c(l,n){return iu.apply(this,arguments)}function iu(){return(iu=(0,Ie.A)(function*(l,n){const i=ie(l),s=n.query;let u=3;const f=i.queries.get(s);if(f){const _=f.U_.indexOf(n);_>=0&&(f.U_.splice(_,1),0===f.U_.length?u=n.G_()?0:1:!f.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function fv(l,n){const i=ie(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const w of _.U_)w.H_(u)&&(s=!0);_.K_=u}}s&&Gd(i)}function pg(l,n,i){const s=ie(l),u=s.queries.get(n);if(u)for(const f of u.U_)f.onError(i);s.queries.delete(n)}function Gd(l){l.z_.forEach(n=>{n.next()})}var E,h;(h=E||(E={})).J_="default",h.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new ru(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=ru.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==E.Cache}}class Vt{constructor(n){this.key=n}}class pn{constructor(n){this.key=n}}class On{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Sr(),this.mutatedKeys=Sr(),this.Ia=sl(n),this.Ta=new oa(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Qu,u=i?i.Ta:this.Ta;let f=i?i.mutatedKeys:this.mutatedKeys,_=u,w=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,X="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((fe,xe)=>{const rt=u.get(fe),kt=Bs(this.query,xe)?xe:null,hn=!!rt&&this.mutatedKeys.has(rt.key),bn=!!kt&&(kt.hasLocalMutations||this.mutatedKeys.has(kt.key)&&kt.hasCommittedMutations);let vn=!1;rt&&kt?rt.data.isEqual(kt.data)?hn!==bn&&(s.track({type:3,doc:kt}),vn=!0):this.Ra(rt,kt)||(s.track({type:2,doc:kt}),vn=!0,(k&&this.Ia(kt,k)>0||X&&this.Ia(kt,X)<0)&&(w=!0)):!rt&&kt?(s.track({type:0,doc:kt}),vn=!0):rt&&!kt&&(s.track({type:1,doc:rt}),vn=!0,(k||X)&&(w=!0)),vn&&(kt?(_=_.add(kt),f=bn?f.add(fe):f.delete(fe)):(_=_.delete(fe),f=f.delete(fe)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const fe="F"===this.query.limitType?_.last():_.first();_=_.delete(fe.key),f=f.delete(fe.key),s.track({type:1,doc:fe})}return{Ta:_,Aa:s,Xi:w,mutatedKeys:f}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const f=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((fe,xe)=>function(kt,hn){const bn=vn=>{switch(vn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return z()}};return bn(kt)-bn(hn)}(fe.type,xe.type)||this.Ia(fe.doc,xe.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,X=k!==this.ha;return this.ha=k,0!==_.length||X?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===k,X,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:w}:{fa:w}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Qu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=Sr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new pn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Vt(s))}),i}pa(n){this.la=n.hs,this.Pa=Sr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return ru.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class ar{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class ni{constructor(n){this.key=n,this.wa=!1}}class Fo{constructor(n,i,s,u,f,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=f,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new ls(w=>Na(w),Jo),this.Da=new Map,this.Ca=new Set,this.va=new pr(Kt.comparator),this.Fa=new Map,this.Ma=new Md,this.xa={},this.Oa=new Map,this.Na=gl.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function Ji(l,n){return sa.apply(this,arguments)}function sa(){return(sa=(0,Ie.A)(function*(l,n,i=!0){const s=ec(l);let u;const f=s.ba.get(n);return f?(s.sharedClientState.addLocalQueryTarget(f.targetId),u=f.view.ya()):u=yield Kd(s,n,i,!0),u})).apply(this,arguments)}function Wd(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,Ie.A)(function*(l,n){const i=ec(l);yield Kd(i,n,!0,!1)})).apply(this,arguments)}function Kd(l,n,i,s){return Yu.apply(this,arguments)}function Yu(){return(Yu=(0,Ie.A)(function*(l,n,i,s){const u=yield function ra(l,n){const i=ie(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,ue.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new Aa(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,Un(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Ju(l,n,i,s,u){return Zu.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&qa(l.remoteStore,u),w})).apply(this,arguments)}function Zu(){return Zu=(0,Ie.A)(function*(l,n,i,s,u){l.Ba=(xe,rt,kt)=>{return(hn=(0,Ie.A)(function*(vn,Jn,vr,lr){let Br=Jn.view.da(vr);Br.Xi&&(Br=yield vl(vn.localStore,Jn.query,!1).then(({documents:qe})=>Jn.view.da(qe,Br)));const Ri=lr&&lr.targetChanges.get(Jn.targetId),ri=lr&&null!=lr.targetMismatches.get(Jn.targetId),Tt=Jn.view.applyChanges(Br,vn.isPrimaryClient,Ri,ri);return Eg(vn,Jn.targetId,Tt.fa),Tt.snapshot}),function bn(vn,Jn,vr,lr){return hn.apply(this,arguments)})(l,xe,rt,kt);var hn};const f=yield vl(l.localStore,n,!0),_=new On(n,f.hs),w=_.da(f.documents),k=wi.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),X=_.applyChanges(w,l.isPrimaryClient,k);Eg(l,i,X.fa);const fe=new ar(n,i,_);return l.ba.set(n,fe),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),X.snapshot}),Zu.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ie.A)(function*(l,n,i){const s=ie(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Jo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield ia(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&Yi(s.remoteStore,u.targetId),Yd(s,u.targetId)}).catch(Zr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Cf(l,n){return Xd.apply(this,arguments)}function Xd(){return(Xd=(0,Ie.A)(function*(l,n){const i=ie(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),Yi(i.remoteStore,s.targetId))})).apply(this,arguments)}function Qd(){return(Qd=(0,Ie.A)(function*(l,n,i){const s=function Bc(l){const n=ie(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=pv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=gv.bind(null,n),n}(l);try{const u=yield function(_,w){const k=ie(_),X=Jt.now(),fe=w.reduce((kt,hn)=>kt.add(hn.key),Sr());let xe,rt;return k.persistence.runTransaction("Locally write mutations","readwrite",kt=>{let hn=cr(),bn=Sr();return k.os.getEntries(kt,fe).next(vn=>{hn=vn,hn.forEach((Jn,vr)=>{vr.isValidDocument()||(bn=bn.add(Jn))})}).next(()=>k.localDocuments.getOverlayedDocuments(kt,hn)).next(vn=>{xe=vn;const Jn=[];for(const vr of w){const lr=pc(vr,xe.get(vr.key).overlayedDocument);null!=lr&&Jn.push(new lo(vr.key,lr,Ur(lr.value.mapValue),Ni.exists(!0)))}return k.mutationQueue.addMutationBatch(kt,X,Jn,w)}).next(vn=>{rt=vn;const Jn=vn.applyToLocalDocumentSet(xe,bn);return k.documentOverlayCache.saveOverlays(kt,vn.batchId,Jn)})}).then(()=>({batchId:rt.batchId,changes:ro(xe)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,k){let X=_.xa[_.currentUser.toKey()];X||(X=new pr(je)),X=X.insert(w,k),_.xa[_.currentUser.toKey()]=X}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const f=qu(u,"Failed to persist write");i.reject(f)}})).apply(this,arguments)}function gg(l,n){return Tf.apply(this,arguments)}function Tf(){return(Tf=(0,Ie.A)(function*(l,n){const i=ie(l);try{const s=yield function og(l,n){const i=ie(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",f=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const w=[];n.targetChanges.forEach((fe,xe)=>{const rt=u.get(xe);if(!rt)return;w.push(i.Qr.removeMatchingKeys(f,fe.removedDocuments,xe).next(()=>i.Qr.addMatchingKeys(f,fe.addedDocuments,xe)));let kt=rt.withSequenceNumber(f.currentSequenceNumber);var bn,vn,Jn;null!==n.targetMismatches.get(xe)?kt=kt.withResumeToken(li.EMPTY_BYTE_STRING,on.min()).withLastLimboFreeSnapshotVersion(on.min()):fe.resumeToken.approximateByteSize()>0&&(kt=kt.withResumeToken(fe.resumeToken,s)),u=u.insert(xe,kt),vn=kt,Jn=fe,(0===(bn=rt).resumeToken.approximateByteSize()||vn.snapshotVersion.toMicroseconds()-bn.snapshotVersion.toMicroseconds()>=3e8||Jn.addedDocuments.size+Jn.modifiedDocuments.size+Jn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,kt))});let k=cr(),X=Sr();if(n.documentUpdates.forEach(fe=>{n.resolvedLimboDocuments.has(fe)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,fe))}),w.push(function $u(l,n,i){let s=Sr(),u=Sr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=cr();return i.forEach((w,k)=>{const X=f.get(w);k.isFoundDocument()!==X.isFoundDocument()&&(u=u.add(w)),k.isNoDocument()&&k.version.isEqual(on.min())?(n.removeEntry(w,k.readTime),_=_.insert(w,k)):!X.isValidDocument()||k.version.compareTo(X.version)>0||0===k.version.compareTo(X.version)&&X.hasPendingWrites?(n.addEntry(k),_=_.insert(w,k)):Be("LocalStore","Ignoring outdated watch update for ",w,". Current version:",X.version," Watch version:",k.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(fe=>{k=fe.cs,X=fe.ls})),!s.isEqual(on.min())){const fe=i.Qr.getLastRemoteSnapshotVersion(f).next(xe=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(fe)}return ue.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,k,X)).next(()=>k)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(K(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?K(_.wa):u.removedDocuments.size>0&&(K(_.wa),_.wa=!1))}),yield Dl(i,s,n)}catch(s){yield Zr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=ie(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((f,_)=>{const w=_.view.j_(n);w.snapshot&&u.push(w.snapshot)}),function(_,w){const k=ie(_);k.onlineState=w;let X=!1;k.queries.forEach((fe,xe)=>{for(const rt of xe.U_)rt.j_(w)&&(X=!0)}),X&&Gd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function Df(l,n,i){return bf.apply(this,arguments)}function bf(){return(bf=(0,Ie.A)(function*(l,n,i){const s=ie(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new pr(Kt.comparator);_=_.insert(f,Tr.newNoDocument(f,on.min()));const w=Sr().add(f),k=new Gi(on.min(),new Map,new pr(je),_,w);yield gg(s,k),s.va=s.va.remove(f),s.Fa.delete(n),mv(s)}else yield ia(s.localStore,n,!1).then(()=>Yd(s,n,i)).catch(Zr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ie.A)(function*(l,n){const i=ie(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=ie(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,k,X,fe){const xe=X.batch,rt=xe.keys();let kt=ue.resolve();return rt.forEach(hn=>{kt=kt.next(()=>fe.getEntry(k,hn)).next(bn=>{const vn=X.docVersions.get(hn);K(null!==vn),bn.version.compareTo(vn)<0&&(xe.applyToRemoteDocument(bn,X),bn.isValidDocument()&&(bn.setReadTime(X.commitVersion),fe.addEntry(bn)))})}),kt.next(()=>w.mutationQueue.removeMutationBatch(k,xe))}(i,s,n,f).next(()=>f.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(w){let k=Sr();for(let X=0;X0&&(k=k.add(w.batch.mutations[X].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Sf(i,s,null),yg(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Dl(i,u)}catch(u){yield Zr(u)}})).apply(this,arguments)}function gv(l,n,i){return vg.apply(this,arguments)}function vg(){return(vg=(0,Ie.A)(function*(l,n,i){const s=ie(l);try{const u=yield function(_,w){const k=ie(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",X=>{let fe;return k.mutationQueue.lookupMutationBatch(X,w).next(xe=>(K(null!==xe),fe=xe.keys(),k.mutationQueue.removeMutationBatch(X,xe))).next(()=>k.mutationQueue.performConsistencyCheck(X)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(X,fe,w)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(X,fe)).next(()=>k.localDocuments.getDocuments(X,fe))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Zr(u)}})).apply(this,arguments)}function yg(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Sf(l,n,i){const s=ie(l);let u=s.xa[s.currentUser.toKey()];if(u){const f=u.get(n);f&&(i?f.reject(i):f.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Yd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ig(l,s)})}function Ig(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(Yi(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),mv(l))}function Eg(l,n,i){for(const s of i)s instanceof Vt?(l.Ma.addReference(s.key,n),yy(l,s)):s instanceof pn?(Be("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ig(l,s.key)):z()}function yy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(Be("SyncEngine","New document in limbo: "+i),l.Ca.add(s),mv(l))}function mv(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(X=>{if((X||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,X&&!X.fromCache?"current":"not-current"),X){u.push(X);const fe=Si.Ki(k.targetId,X);f.push(fe)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ie.A)(function*(X,fe){const xe=ie(X);try{yield xe.persistence.runTransaction("notifyLocalViewChanges","readwrite",rt=>ue.forEach(fe,kt=>ue.forEach(kt.qi,hn=>xe.persistence.referenceDelegate.addReference(rt,kt.targetId,hn)).next(()=>ue.forEach(kt.Qi,hn=>xe.persistence.referenceDelegate.removeReference(rt,kt.targetId,hn)))))}catch(rt){if(!Ne(rt))throw rt;Be("LocalStore","Failed to update sequence numbers: "+rt)}for(const rt of fe){const kt=rt.targetId;if(!rt.fromCache){const hn=xe.ns.get(kt),vn=hn.withLastLimboFreeSnapshotVersion(hn.snapshotVersion);xe.ns=xe.ns.insert(kt,vn)}}}),function k(X,fe){return w.apply(this,arguments)})(s.localStore,f))}),Rf.apply(this,arguments)}function Ag(l,n){return Cg.apply(this,arguments)}function Cg(){return(Cg=(0,Ie.A)(function*(l,n){const i=ie(l);if(!i.currentUser.isEqual(n)){Be("SyncEngine","User change. New user:",n.toKey());const s=yield Od(i.localStore,n);i.currentUser=n,(f=i).Oa.forEach(w=>{w.forEach(k=>{k.reject(new be(se.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),f.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Dl(i,s.us)}var f})).apply(this,arguments)}function au(l,n){const i=ie(l),s=i.Fa.get(n);if(s&&s.wa)return Sr().add(s.key);{let u=Sr();const f=i.Da.get(n);if(!f)return u;for(const _ of f){const w=i.ba.get(_);u=u.unionWith(w.view.Ea)}return u}}function ec(l){const n=ie(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=gg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=au.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=Df.bind(null,n),n.Sa.h_=fv.bind(null,n.eventManager),n.Sa.ka=pg.bind(null,n.eventManager),n}class Ja{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,Ie.A)(function*(){i.serializer=Oc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function ef(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new Zh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}terminate(){var n=this;return(0,Ie.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Za{initialize(n,i){var s=this;return(0,Ie.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>mg(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Ag.bind(null,s.syncEngine),yield dg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new If}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Vd(n.databaseInfo);return new sg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,f=n.asyncQueue,_=i=>mg(this.syncEngine,i,0),w=Ld.D()?new Ld:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,k,X,fe){const xe=new Fo(u,f,_,w,k,X);return fe&&(xe.La=!0),xe}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,Ie.A)(function*(){var i,s;yield(s=(0,Ie.A)(function*(f){const _=ie(f);Be("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield tu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(f){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Hc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):tn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Dy{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=Ce.UNAUTHENTICATED,this.clientId=rr.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ie.A)(function*(w){Be("FirestoreClient","Received user=",w.uid),yield f.authCredentialListener(w),f.user=w});return function(w){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(Be("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new be(se.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Xe;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,Ie.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=qu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Pf(l,n){return rh.apply(this,arguments)}function rh(){return rh=(0,Ie.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),Be("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,Ie.A)(function*(f){s.isEqual(f)||(yield Od(n.localStore,f),s=f)});return function(f){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),rh.apply(this,arguments)}function xf(l,n){return wg.apply(this,arguments)}function wg(){return(wg=(0,Ie.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function tc(l){return Nf.apply(this,arguments)}(l);Be("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>cg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>cg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function Nf(){return(Nf=(0,Ie.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){Be("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Pf(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Cv(l){return"FirebaseError"===l.name?l.code===se.FAILED_PRECONDITION||l.code===se.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;Ze("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Ja)}}else Be("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Ja);return l._offlineComponents})).apply(this,arguments)}function Gc(l){return Sg.apply(this,arguments)}function Sg(){return(Sg=(0,Ie.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(Be("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(Be("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Za))),l._onlineComponents})).apply(this,arguments)}function uu(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,Ie.A)(function*(l){const n=yield Gc(l),i=n.eventManager;return i.onListen=Ji.bind(null,n.syncEngine),i.onUnlisten=Af.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Wd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Cf.bind(null,n.syncEngine),i})).apply(this,arguments)}function ah(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Ff=new Map;function Lf(l,n,i){if(!i)throw new be(se.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Og(l){if(!Kt.isDocumentKey(l))throw new be(se.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function kg(l){if(Kt.isDocumentKey(l))throw new be(se.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Vf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":z()}function hi(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new be(se.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Vf(l);throw new be(se.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Rv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new be(se.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new be(se.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function wv(l,n,i,s){if(!0===n&&!0===s)throw new be(se.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=ah(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(f){if(void 0!==f.timeoutSeconds){if(isNaN(f.timeoutSeconds))throw new be(se.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new be(se.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new be(se.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class lh{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Rv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new be(se.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new be(se.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Rv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new En;switch(s.type){case"firstParty":return new qn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new be(se.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Ff.get(i);s&&(Be("ComponentProvider","Removing Datastore"),Ff.delete(i),s.terminate())}(this),Promise.resolve()}}class po{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new po(this.firestore,n,this._query)}}class go{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new bl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new go(this.firestore,n,this._key)}}class bl extends po{constructor(n,i,s){super(n,i,ve(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new go(this.firestore,null,new Kt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function iE(l,n,...i){if(l=(0,we.Ku)(l),Lf("collection","path",n),l instanceof lh){const s=Cn.fromString(n,...i);return kg(s),new bl(l,null,s)}{if(!(l instanceof go||l instanceof bl))throw new be(se.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Cn.fromString(n,...i));return kg(s),new bl(l.firestore,null,s)}}function Ry(l,n,...i){if(l=(0,we.Ku)(l),1===arguments.length&&(n=rr.newId()),Lf("doc","path",n),l instanceof lh){const s=Cn.fromString(n,...i);return Og(s),new go(l,null,new Kt(s))}{if(!(l instanceof go||l instanceof bl))throw new be(se.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Cn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Kt(s))}}class My{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new eu(this,"async_queue_retry"),this.hu=()=>{const i=Al();i&&Be("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Al();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Al();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new Xe;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,Ie.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Ne(i))throw i;Be("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,tn("INTERNAL UNHANDLED ERROR: ",function(_){let w=_.message||"";return _.stack&&(w=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),w}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=fg.createAndSchedule(this,n,i,s,f=>this.Eu(f));return this._u.push(u),u}Pu(){this.au&&z()}verifyOperationInProgress(){}du(){var n=this;return(0,Ie.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class Oi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new My,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Vg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,te.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,te.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,we.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=hi(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&Ze("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},f),{host:_,ssl:!1})),s.mockUserToken){let w,k;if("string"==typeof s.mockUserToken)w=s.mockUserToken,k=Ce.MOCK_USER;else{w=(0,we.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const X=s.mockUserToken.sub||s.mockUserToken.user_id;if(!X)throw new be(se.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new Ce(X)}l._authCredentials=new rn(new nn(w,k))}}(u,...f)}return u}function to(l){return l._firestoreClient||Vg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Vg(l){var n,i,s;const u=l._freezeSettings(),f=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,k,l._persistenceKey,(fe=u).host,fe.ssl,fe.experimentalForceLongPolling,fe.experimentalAutoDetectLongPolling,ah(fe.experimentalLongPollingOptions),fe.useFetchStreams));var k,fe;l._firestoreClient=new Dy(l._authCredentials,l._appCheckCredentials,l._queue,f),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class nc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new nc(li.fromBase64String(n))}catch(i){throw new be(se.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(li.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class hu{constructor(...n){for(let i=0;i90)throw new be(se.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new be(se.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return je(this._lat,n._lat)||je(this._long,n._long)}}const Nv=/^__.*__$/;class Uf{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ms(n,this.data,i,this.fieldTransforms)}}class Ov{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new lo(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function $f(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw z()}}class Bf{constructor(n,i,s,u,f,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===f&&this.mu(),this.fieldTransforms=f||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new Bf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Gf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(xe.field))}else k=null,X=_.fieldTransforms;return new Uf(new Rn(w),k,X)}class Qc extends Xc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof Qc}}function Sa(l,n){if(Lv(l=(0,we.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof Xc)return function(s,u){if(!$f(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const f=s._toFieldTransform(u);f&&u.fieldTransforms.push(f)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const f=[];let _=0;for(const w of s){let k=Sa(w,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),f.push(k),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,we.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return cl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const f=Jt.fromDate(s);return{timestampValue:Ro(u.serializer,f)}}if(s instanceof Jt){const f=new Jt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Ro(u.serializer,f)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof nc)return{bytesValue:Gs(u.serializer,s._byteString)};if(s instanceof go){const f=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(f))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${f.projectId}/${f.database}`);return{referenceValue:_a(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Vf(s)}`)}(l,n)}function Fv(l,n){const i={};return Er(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Wr(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Lv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Jt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof Xc)}function Gg(l,n,i){if(!Lv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Vf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,we.Ku)(n))instanceof hu)return n._internalPath;if("string"==typeof n)return Hf(l,n);throw Gf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Vy=new RegExp("[~\\*/\\[\\]]");function Hf(l,n,i){if(n.search(Vy)>=0)throw Gf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new hu(...n.split("."))._internalPath}catch{throw Gf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Gf(l,n,i,s,u){const f=s&&!s.isEmpty(),_=void 0!==u;let w=`Function ${n}() called with invalid data`;i&&(w+=" (via `toFirestore()`)"),w+=". ";let k="";return(f||_)&&(k+=" (found",f&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new be(se.INVALID_ARGUMENT,w+l+k)}function Vv(l,n){return l.some(i=>i.isEqual(n))}class dh{constructor(n,i,s,u,f){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=f}get id(){return this._key.path.lastSegment()}get ref(){return new go(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new Uy(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(Jc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Uy extends dh{data(){return super.data()}}function Jc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class Xg{convertValue(n,i="none"){switch(Q(n)){case 0:return null;case 1:return n.booleanValue;case 2:return _i(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(Yn(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw z()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return Wr(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(_i(n.latitude),_i(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=To(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Do(n));default:return null}}convertTimestamp(n){const i=Kr(n);return new Jt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Cn.fromString(n);K(Td(s));const u=new bo(s.get(1),s.get(3)),f=new Kt(s.popFirst(5));return u.isEqual(i)||tn(`Document ${f} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),f}}class Sl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class oc extends dh{constructor(n,i,s,u,f,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=f}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new td(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(Jc("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class td extends oc{data(n={}){return super.data(n)}}class Rl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Sl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new td(this._firestore,this._userDataWriter,s.key,s,new Sl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new be(se.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,f){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(w=>({type:"added",doc:new td(u._firestore,u._userDataWriter,w.doc.key,w.doc,new Sl(u._snapshot.mutatedKeys.has(w.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(w=>f||3!==w.type).map(w=>{const k=new td(u._firestore,u._userDataWriter,w.doc.key,w.doc,new Sl(u._snapshot.mutatedKeys.has(w.doc.key),u._snapshot.fromCache),u.query.converter);let X=-1,fe=-1;return 0!==w.type&&(X=_.indexOf(w.doc.key),_=_.delete(w.doc.key)),1!==w.type&&(_=_.add(w.doc),fe=_.indexOf(w.doc.key)),{type:Ky(w.type),doc:k,oldIndex:X,newIndex:fe}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function Ky(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return z()}}function jv(l){l=hi(l,go);const n=hi(l.firestore,Oi);return function sh(l,n,i={}){const s=new Xe;return l.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function(f,_,w,k,X){const fe=new Hc({next:rt=>{_.enqueueAndForget(()=>$c(f,xe));const kt=rt.docs.has(w);!kt&&rt.fromCache?X.reject(new be(se.UNAVAILABLE,"Failed to get document because the client is offline.")):kt&&rt.fromCache&&k&&"server"===k.source?X.reject(new be(se.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):X.resolve(rt)},error:rt=>X.reject(rt)}),xe=new v(ve(w.path),fe,{includeMetadataChanges:!0,ra:!0});return Os(f,xe)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(to(n),l._key).then(i=>function qf(l,n,i){const s=i.docs.get(n._key),u=new fu(l);return new oc(l,u,n._key,s,new Sl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class fu extends Xg{constructor(n){super(),this.firestore=n}convertBytes(n){return new nc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new go(this.firestore,null,i)}}function zv(l){l=hi(l,po);const n=hi(l.firestore,Oi),i=to(n),s=new fu(n);return function $y(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new be(se.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function xg(l,n,i={}){const s=new Xe;return l.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function(f,_,w,k,X){const fe=new Hc({next:rt=>{_.enqueueAndForget(()=>$c(f,xe)),rt.fromCache&&"server"===k.source?X.reject(new be(se.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):X.resolve(rt)},error:rt=>X.reject(rt)}),xe=new v(w,fe,{includeMetadataChanges:!0,ra:!0});return Os(f,xe)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new Rl(n,s,l,u))}function Jg(l,n,i){l=hi(l,go);const s=hi(l.firestore,Oi),u=function fh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return rd(s,[jf(rc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ni.none())])}function Xy(l,n,i,...s){l=hi(l,go);const u=hi(l.firestore,Oi),f=rc(u);let _;return _="string"==typeof(n=(0,we.Ku)(n))||n instanceof hu?function kv(l,n,i,s,u,f){const _=l.Fu(1,n,i),w=[Yc(n,s,i)],k=[u];if(f.length%2!=0)throw new be(se.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let rt=0;rt=0;--rt)if(!Vv(X,w[rt])){const kt=w[rt];let hn=k[rt];hn=(0,we.Ku)(hn);const bn=_.Su(kt);if(hn instanceof Qc)X.push(kt);else{const vn=Sa(hn,bn);null!=vn&&(X.push(kt),fe.set(kt,vn))}}const xe=new vi(X);return new Ov(fe,xe,_.fieldTransforms)}(f,"updateDoc",l._key,n,i,s):function zf(l,n,i,s){const u=l.Fu(1,n,i);Gg("Data must be an object, but it was:",u,s);const f=[],_=Rn.empty();Wr(s,(k,X)=>{const fe=Hf(n,k,i);X=(0,we.Ku)(X);const xe=u.Su(fe);if(X instanceof Qc)f.push(fe);else{const rt=Sa(X,xe);null!=rt&&(f.push(fe),_.set(fe,rt))}});const w=new vi(f);return new Ov(_,w,u.fieldTransforms)}(f,"updateDoc",l._key,n),rd(u,[_.toMutation(l._key,Ni.exists(!0))])}function qy(l){return rd(hi(l.firestore,Oi),[new B(l._key,Ni.none())])}function rd(l,n){return function(s,u){const f=new Xe;return s.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function qd(l,n,i){return Qd.apply(this,arguments)}(yield function Rg(l){return Gc(l).then(n=>n.syncEngine)}(s),u,f)})),f.promise}(to(l),n)}!function(n,i=!0){nt=te.MF,(0,te.om)(new Ge.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new Oi(new Mn(s.getProvider("auth-internal")),new Xn(s.getProvider("app-check-internal")),function(X,fe){if(!Object.prototype.hasOwnProperty.apply(X.options,["projectId"]))throw new be(se.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new bo(X.options.projectId,fe)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,te.KO)(mt,"4.6.3",n),(0,te.KO)(mt,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new c.nKC("angularfire2.firestore-instances");function c0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new vh(s)}}const d0={provide:class u0{constructor(){return(0,g.CA)(ep)}},deps:[[new c.Xx1,im]]},h0={provide:vh,useFactory:function Yv(l,n){const i=(0,g.lR)(ep,l,n);return i&&new vh(i)},deps:[[new c.Xx1,im],de.XU]};function Jv(l,...n){return(0,W.KO)("angularfire",g.xv.full,"fst"),(0,c.EmA)([h0,d0,{provide:im,useFactory:c0(l),multi:!0,deps:[c.SKi,c.zZn,g.u0,de.gL,[new c.Xx1,Fe.DF],[new c.Xx1,g.Jv],...n]}])}const m0=(0,g.S3)(iE,!0),v0=(0,g.S3)(qy,!0),sm=(0,g.S3)(Ry,!0),lm=(0,g.S3)(jv,!0),r_=(0,g.S3)(zv,!0),um=(0,g.S3)(uh,!0),R0=(0,g.S3)(Jg,!0),M0=(0,g.S3)(Xy,!0)},9032:(Dn,At,x)=>{"use strict";x.d(At,{L9:()=>tr,oc:()=>St,v_:()=>Ne,cw:()=>ge});var g=x(5407),c=x(4438),de=x(7440),Fe=x(2214),W=x(467),Ie=x(7852),te=x(1362),Ge=x(1076),Qe=x(1635),we="@firebase/vertexai-preview",Ee="0.0.2";const Ue="vertexAI",ze="us-central1",It=Ee,at="gl-js";class gt{constructor(et,Ye,Lt,Xt){var cn;this.app=et,this.options=Xt;const Hn=null==Lt?void 0:Lt.getImmediate({optional:!0}),dn=null==Ye?void 0:Ye.getImmediate({optional:!0});this.auth=dn||null,this.appCheck=Hn||null,this.location=(null===(cn=this.options)||void 0===cn?void 0:cn.location)||ze}_delete(){return Promise.resolve()}}const ft=new Ge.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var yt=function(ne){return ne.GENERATE_CONTENT="generateContent",ne.STREAM_GENERATE_CONTENT="streamGenerateContent",ne.COUNT_TOKENS="countTokens",ne}(yt||{});class Pe{constructor(et,Ye,Lt,Xt,cn){this.model=et,this.task=Ye,this.apiSettings=Lt,this.stream=Xt,this.requestOptions=cn}toString(){var et;let Xt=`${(null===(et=this.requestOptions)||void 0===et?void 0:et.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return Xt+=`/projects/${this.apiSettings.project}`,Xt+=`/locations/${this.apiSettings.location}`,Xt+=`/${this.model}`,Xt+=`:${this.task}`,this.stream&&(Xt+="?alt=sse"),Xt}get fullModelString(){let et=`projects/${this.apiSettings.project}`;return et+=`/locations/${this.apiSettings.location}`,et+=`/${this.model}`,et}}function He(ne){return Je.apply(this,arguments)}function Je(){return(Je=(0,W.A)(function*(ne){const et=new Headers;if(et.append("Content-Type","application/json"),et.append("x-goog-api-client",function Ke(){const ne=[];return ne.push(`${at}/${It}`),ne.push(`fire/${It}`),ne.join(" ")}()),et.append("x-goog-api-key",ne.apiSettings.apiKey),ne.apiSettings.getAppCheckToken){const Ye=yield ne.apiSettings.getAppCheckToken();Ye&&!Ye.error&&et.append("X-Firebase-AppCheck",Ye.token)}if(ne.apiSettings.getAuthToken){const Ye=yield ne.apiSettings.getAuthToken();Ye&&et.append("Authorization",`Firebase ${Ye.accessToken}`)}return et})).apply(this,arguments)}function Ce(){return(Ce=(0,W.A)(function*(ne,et,Ye,Lt,Xt,cn){const Hn=new Pe(ne,et,Ye,Lt,cn);return{url:Hn.toString(),fetchOptions:Object.assign(Object.assign({},zt(cn)),{method:"POST",headers:yield He(Hn),body:Xt})}})).apply(this,arguments)}function nt(ne,et,Ye,Lt,Xt,cn){return Rt.apply(this,arguments)}function Rt(){return Rt=(0,W.A)(function*(ne,et,Ye,Lt,Xt,cn){const Hn=new Pe(ne,et,Ye,Lt,cn);let dn;try{const _n=yield function mt(ne,et,Ye,Lt,Xt,cn){return Ce.apply(this,arguments)}(ne,et,Ye,Lt,Xt,cn);if(dn=yield fetch(_n.url,_n.fetchOptions),!dn.ok){let Qn="";try{const Pr=yield dn.json();Qn=Pr.error.message,Pr.error.details&&(Qn+=` ${JSON.stringify(Pr.error.details)}`)}catch{}throw new Error(`[${dn.status} ${dn.statusText}] ${Qn}`)}}catch(_n){const Qn=_n,Pr=ft.create("fetch-error",{url:Hn.toString(),message:Qn.message});throw Pr.stack=Qn.stack,Pr}return dn}),Rt.apply(this,arguments)}function zt(ne){const et={};if(null!=ne&&ne.timeout&&(null==ne?void 0:ne.timeout)>=0){const Ye=new AbortController,Lt=Ye.signal;setTimeout(()=>Ye.abort(),ne.timeout),et.signal=Lt}return et}const Et=["user","model","function","system"];var q=function(ne){return ne.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ne.STOP="STOP",ne.MAX_TOKENS="MAX_TOKENS",ne.SAFETY="SAFETY",ne.RECITATION="RECITATION",ne.OTHER="OTHER",ne}(q||{});function be(ne){return ne.text=()=>{if(ne.candidates&&ne.candidates.length>0){if(ne.candidates.length>1&&console.warn(`This response had ${ne.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),rn(ne.candidates[0]))throw ft.create("response-error",{message:`${Mn(ne)}`,response:ne});return function Xe(ne){var et,Ye,Lt,Xt;const cn=[];if(null!==(Ye=null===(et=ne.candidates)||void 0===et?void 0:et[0].content)&&void 0!==Ye&&Ye.parts)for(const Hn of null===(Xt=null===(Lt=ne.candidates)||void 0===Lt?void 0:Lt[0].content)||void 0===Xt?void 0:Xt.parts)Hn.text&&cn.push(Hn.text);return cn.length>0?cn.join(""):""}(ne)}if(ne.promptFeedback)throw ft.create("response-error",{message:`Text not available. ${Mn(ne)}`,response:ne});return""},ne.functionCalls=()=>{if(ne.candidates&&ne.candidates.length>0){if(ne.candidates.length>1&&console.warn(`This response had ${ne.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),rn(ne.candidates[0]))throw ft.create("response-error",{message:`${Mn(ne)}`,response:ne});return function nn(ne){var et,Ye,Lt,Xt;const cn=[];if(null!==(Ye=null===(et=ne.candidates)||void 0===et?void 0:et[0].content)&&void 0!==Ye&&Ye.parts)for(const Hn of null===(Xt=null===(Lt=ne.candidates)||void 0===Lt?void 0:Lt[0].content)||void 0===Xt?void 0:Xt.parts)Hn.functionCall&&cn.push(Hn.functionCall);if(cn.length>0)return cn}(ne)}if(ne.promptFeedback)throw ft.create("response-error",{message:`Function call not available. ${Mn(ne)}`,response:ne})},ne}const En=[q.RECITATION,q.SAFETY];function rn(ne){return!!ne.finishReason&&En.includes(ne.finishReason)}function Mn(ne){var et,Ye,Lt;let Xt="";if(ne.candidates&&0!==ne.candidates.length||!ne.promptFeedback){if(null!==(Lt=ne.candidates)&&void 0!==Lt&&Lt[0]){const cn=ne.candidates[0];rn(cn)&&(Xt+=`Candidate was blocked due to ${cn.finishReason}`,cn.finishMessage&&(Xt+=`: ${cn.finishMessage}`))}}else Xt+="Response was blocked",!(null===(et=ne.promptFeedback)||void 0===et)&&et.blockReason&&(Xt+=` due to ${ne.promptFeedback.blockReason}`),null!==(Ye=ne.promptFeedback)&&void 0!==Ye&&Ye.blockReasonMessage&&(Xt+=`: ${ne.promptFeedback.blockReasonMessage}`);return Xt}const Vn=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function Zn(ne){return Xn.apply(this,arguments)}function Xn(){return(Xn=(0,W.A)(function*(ne){const et=[],Ye=ne.getReader();for(;;){const{done:Lt,value:Xt}=yield Ye.read();if(Lt)return be(rr(et));et.push(Xt)}})).apply(this,arguments)}function wn(ne){return(0,Qe.AQ)(this,arguments,function*(){const Ye=ne.getReader();for(;;){const{value:Lt,done:Xt}=yield(0,Qe.N3)(Ye.read());if(Xt)break;yield yield(0,Qe.N3)(be(Lt))}})}function rr(ne){const et=ne[ne.length-1],Ye={promptFeedback:null==et?void 0:et.promptFeedback};for(const Lt of ne)if(Lt.candidates)for(const Xt of Lt.candidates){const cn=Xt.index;if(Ye.candidates||(Ye.candidates=[]),Ye.candidates[cn]||(Ye.candidates[cn]={index:Xt.index}),Ye.candidates[cn].citationMetadata=Xt.citationMetadata,Ye.candidates[cn].finishReason=Xt.finishReason,Ye.candidates[cn].finishMessage=Xt.finishMessage,Ye.candidates[cn].safetyRatings=Xt.safetyRatings,Xt.content&&Xt.content.parts){Ye.candidates[cn].content||(Ye.candidates[cn].content={role:Xt.content.role||"user",parts:[]});const Hn={};for(const dn of Xt.content.parts)dn.text&&(Hn.text=dn.text),dn.functionCall&&(Hn.functionCall=dn.functionCall),0===Object.keys(Hn).length&&(Hn.text=""),Ye.candidates[cn].content.parts.push(Hn)}}return Ye}function je(ne,et,Ye,Lt){return bt.apply(this,arguments)}function bt(){return(bt=(0,W.A)(function*(ne,et,Ye,Lt){return function qn(ne){const Ye=function or(ne){const et=ne.getReader();return new ReadableStream({start(Lt){let Xt="";return function cn(){return et.read().then(({value:Hn,done:dn})=>{if(dn)return Xt.trim()?void Lt.error(ft.create("parse-failed",{message:"Failed to parse stream"})):void Lt.close();Xt+=Hn;let Qn,_n=Xt.match(Vn);for(;_n;){try{Qn=JSON.parse(_n[1])}catch{return void Lt.error(ft.create("parse-failed",{message:`Error parsing JSON response: "${_n[1]}"`}))}Lt.enqueue(Qn),Xt=Xt.substring(_n[0].length),_n=Xt.match(Vn)}return cn()})}()}})}(ne.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Lt,Xt]=Ye.tee();return{stream:wn(Lt),response:Zn(Xt)}}(yield nt(et,yt.STREAM_GENERATE_CONTENT,ne,!0,JSON.stringify(Ye),Lt))})).apply(this,arguments)}function Ft(ne,et,Ye,Lt){return Jt.apply(this,arguments)}function Jt(){return(Jt=(0,W.A)(function*(ne,et,Ye,Lt){return{response:be(yield(yield nt(et,yt.GENERATE_CONTENT,ne,!1,JSON.stringify(Ye),Lt)).json())}})).apply(this,arguments)}function on(ne){if(null!=ne){if("string"==typeof ne)return{role:"system",parts:[{text:ne}]};if(ne.text)return{role:"system",parts:[ne]};if(ne.parts)return ne.role?ne:{role:"system",parts:ne.parts}}}function Ar(ne){let et=[];if("string"==typeof ne)et=[{text:ne}];else for(const Ye of ne)et.push("string"==typeof Ye?{text:Ye}:Ye);return function Cn(ne){const et={role:"user",parts:[]},Ye={role:"function",parts:[]};let Lt=!1,Xt=!1;for(const cn of ne)"functionResponse"in cn?(Ye.parts.push(cn),Xt=!0):(et.parts.push(cn),Lt=!0);if(Lt&&Xt)throw ft.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Lt&&!Xt)throw ft.create("invalid-content",{message:"No content is provided for sending chat message."});return Lt?et:Ye}(et)}function An(ne){let et;return et=ne.contents?ne:{contents:[Ar(ne)]},ne.systemInstruction&&(et.systemInstruction=on(ne.systemInstruction)),et}const sn=["text","inlineData","functionCall","functionResponse"],Kt={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},fr={user:["model"],function:["model"],model:["user","function"],system:[]},Lr="SILENT_ERROR";class kr{constructor(et,Ye,Lt,Xt){this.model=Ye,this.params=Lt,this.requestOptions=Xt,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=et,null!=Lt&&Lt.history&&(function Rr(ne){let et=null;for(const Ye of ne){const{role:Lt,parts:Xt}=Ye;if(!et&&"user"!==Lt)throw ft.create("invalid-content",{message:`First content should be with role 'user', got ${Lt}`});if(!Et.includes(Lt))throw ft.create("invalid-content",{message:`Each item should include role field. Got ${Lt} but valid roles are: ${JSON.stringify(Et)}`});if(!Array.isArray(Xt))throw ft.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===Xt.length)throw ft.create("invalid-content",{message:"Each Content should have at least one part"});const cn={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const dn of Xt)for(const _n of sn)_n in dn&&(cn[_n]+=1);const Hn=Kt[Lt];for(const dn of sn)if(!Hn.includes(dn)&&cn[dn]>0)throw ft.create("invalid-content",{message:`Content with role '${Lt}' can't contain '${dn}' part`});if(et&&!fr[Lt].includes(et.role))throw ft.create("invalid-content",{message:`Content with role '${Lt}' can't follow '${et.role}'. Valid previous roles: ${JSON.stringify(fr)}`});et=Ye}}(Lt.history),this._history=Lt.history)}getHistory(){var et=this;return(0,W.A)(function*(){return yield et._sendPromise,et._history})()}sendMessage(et){var Ye=this;return(0,W.A)(function*(){var Lt,Xt,cn,Hn,dn;yield Ye._sendPromise;const _n=Ar(et),Qn={safetySettings:null===(Lt=Ye.params)||void 0===Lt?void 0:Lt.safetySettings,generationConfig:null===(Xt=Ye.params)||void 0===Xt?void 0:Xt.generationConfig,tools:null===(cn=Ye.params)||void 0===cn?void 0:cn.tools,toolConfig:null===(Hn=Ye.params)||void 0===Hn?void 0:Hn.toolConfig,systemInstruction:null===(dn=Ye.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...Ye._history,_n]};let Pr={};return Ye._sendPromise=Ye._sendPromise.then(()=>Ft(Ye._apiSettings,Ye.model,Qn,Ye.requestOptions)).then(yr=>{var Vr,gi;if(yr.response.candidates&&yr.response.candidates.length>0){Ye._history.push(_n);const ir={parts:(null===(Vr=yr.response.candidates)||void 0===Vr?void 0:Vr[0].content.parts)||[],role:(null===(gi=yr.response.candidates)||void 0===gi?void 0:gi[0].content.role)||"model"};Ye._history.push(ir)}else{const ir=Mn(yr.response);ir&&console.warn(`sendMessage() was unsuccessful. ${ir}. Inspect response object for details.`)}Pr=yr}),yield Ye._sendPromise,Pr})()}sendMessageStream(et){var Ye=this;return(0,W.A)(function*(){var Lt,Xt,cn,Hn,dn;yield Ye._sendPromise;const _n=Ar(et),Qn={safetySettings:null===(Lt=Ye.params)||void 0===Lt?void 0:Lt.safetySettings,generationConfig:null===(Xt=Ye.params)||void 0===Xt?void 0:Xt.generationConfig,tools:null===(cn=Ye.params)||void 0===cn?void 0:cn.tools,toolConfig:null===(Hn=Ye.params)||void 0===Hn?void 0:Hn.toolConfig,systemInstruction:null===(dn=Ye.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...Ye._history,_n]},Pr=je(Ye._apiSettings,Ye.model,Qn,Ye.requestOptions);return Ye._sendPromise=Ye._sendPromise.then(()=>Pr).catch(yr=>{throw new Error(Lr)}).then(yr=>yr.response).then(yr=>{if(yr.candidates&&yr.candidates.length>0){Ye._history.push(_n);const Vr=Object.assign({},yr.candidates[0].content);Vr.role||(Vr.role="model"),Ye._history.push(Vr)}else{const Vr=Mn(yr);Vr&&console.warn(`sendMessageStream() was unsuccessful. ${Vr}. Inspect response object for details.`)}}).catch(yr=>{yr.message!==Lr&&console.error(yr)}),Pr})()}}function jn(){return(jn=(0,W.A)(function*(ne,et,Ye,Lt){return(yield nt(et,yt.COUNT_TOKENS,ne,!1,JSON.stringify(Ye),Lt)).json()})).apply(this,arguments)}class ii{constructor(et,Ye,Lt){var Xt,cn,Hn,dn;if(null===(cn=null===(Xt=et.app)||void 0===Xt?void 0:Xt.options)||void 0===cn||!cn.apiKey)throw ft.create("no-api-key");if(null===(dn=null===(Hn=et.app)||void 0===Hn?void 0:Hn.options)||void 0===dn||!dn.projectId)throw ft.create("no-project-id");this._apiSettings={apiKey:et.app.options.apiKey,project:et.app.options.projectId,location:et.location},et.appCheck&&(this._apiSettings.getAppCheckToken=()=>et.appCheck.getToken()),et.auth&&(this._apiSettings.getAuthToken=()=>et.auth.getToken()),this.model=Ye.model.includes("/")?Ye.model.startsWith("models/")?`publishers/google/${Ye.model}`:Ye.model:`publishers/google/models/${Ye.model}`,this.generationConfig=Ye.generationConfig||{},this.safetySettings=Ye.safetySettings||[],this.tools=Ye.tools,this.toolConfig=Ye.toolConfig,this.systemInstruction=on(Ye.systemInstruction),this.requestOptions=Lt||{}}generateContent(et){var Ye=this;return(0,W.A)(function*(){const Lt=An(et);return Ft(Ye._apiSettings,Ye.model,Object.assign({generationConfig:Ye.generationConfig,safetySettings:Ye.safetySettings,tools:Ye.tools,toolConfig:Ye.toolConfig,systemInstruction:Ye.systemInstruction},Lt),Ye.requestOptions)})()}generateContentStream(et){var Ye=this;return(0,W.A)(function*(){const Lt=An(et);return je(Ye._apiSettings,Ye.model,Object.assign({generationConfig:Ye.generationConfig,safetySettings:Ye.safetySettings,tools:Ye.tools,toolConfig:Ye.toolConfig,systemInstruction:Ye.systemInstruction},Lt),Ye.requestOptions)})()}startChat(et){return new kr(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},et),this.requestOptions)}countTokens(et){var Ye=this;return(0,W.A)(function*(){const Lt=An(et);return function Cr(ne,et,Ye,Lt){return jn.apply(this,arguments)}(Ye._apiSettings,Ye.model,Lt)})()}}function er(ne=(0,Ie.Sx)(),et){return ne=(0,Ge.Ku)(ne),(0,Ie.j6)(ne,Ue).getImmediate({identifier:(null==et?void 0:et.location)||ze})}function Pn(ne,et,Ye){if(!et.model)throw ft.create("no-model");return new ii(ne,et,Ye)}!function Mr(){(0,Ie.om)(new te.uA(Ue,(ne,{instanceIdentifier:et})=>{const Ye=ne.getProvider("app").getImmediate(),Lt=ne.getProvider("auth-internal"),Xt=ne.getProvider("app-check-internal");return new gt(Ye,Lt,Xt,{location:et})},"PUBLIC").setMultipleInstances(!0)),(0,Ie.KO)(we,Ee),(0,Ie.KO)(we,Ee,"esm2017")}();class tr{constructor(et){return et}}const _r="vertexai",zr=new c.nKC("angularfire2.vertexai-instances");function We(ne){return(et,Ye)=>{const Lt=et.runOutsideAngular(()=>ne(Ye));return new tr(Lt)}}const vt={provide:class Ii{constructor(){return(0,g.CA)(_r)}},deps:[[new c.Xx1,zr]]},ot={provide:tr,useFactory:function ue(ne,et){const Ye=(0,g.lR)(_r,ne,et);return Ye&&new tr(Ye)},deps:[[new c.Xx1,zr],de.XU]};function ge(ne,...et){return(0,Fe.KO)("angularfire",g.xv.full,"vertexai"),(0,c.EmA)([ot,vt,{provide:zr,useFactory:We(ne),multi:!0,deps:[c.SKi,c.zZn,g.u0,de.gL,[new c.Xx1,g.Jv],...et]}])}const Ne=(0,g.S3)(er,!0),St=(0,g.S3)(Pn,!0)},5407:(Dn,At,x)=>{"use strict";x.d(At,{xv:()=>it,u0:()=>He,Jv:()=>xt,CA:()=>gt,lR:()=>at,S3:()=>tn});var g=x(9842),c=x(4438),de=x(2214),Fe=x(6780),Ie=x(9687);const Ge=new class te extends Ie.q{}(class W extends Fe.R{constructor(De,z){super(De,z),this.scheduler=De,this.work=z}schedule(De,z=0){return z>0?super.schedule(De,z):(this.delay=z,this.state=De,this.scheduler.flush(this),this)}execute(De,z){return z>0||this.closed?super.execute(De,z):this._execute(De,z)}requestAsyncId(De,z,K=0){return null!=K&&K>0||null==K&&this.delay>0?super.requestAsyncId(De,z,K):(De.flush(this),0)}});var we=x(3236),Ee=x(1985),Ue=x(8141),ze=x(6745),Ve=x(941);const it=new c.RxE("ANGULARFIRE2_VERSION");function at(Ze,De,z){if(De){if(1===De.length)return De[0];const ie=De.filter(se=>se.app===z);if(1===ie.length)return ie[0]}return z.container.getProvider(Ze).getImmediate({optional:!0})}const gt=(Ze,De)=>{const z=De?[De]:(0,de.Dk)(),K=[];return z.forEach(q=>{q.container.getProvider(Ze).instances.forEach(se=>{K.includes(se)||K.push(se)})}),K};class xt{constructor(){return gt(ft)}}const ft="app-check";function yt(){}class Pe{constructor(De,z=Ge){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=De,this.delegate=z}now(){return this.delegate.now()}schedule(De,z,K){const q=this.zone;return this.delegate.schedule(function(se){q.runGuarded(()=>{De.apply(this,[se])})},z,K)}}class Ke{constructor(De){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=De}call(De,z){const K=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",yt,{},yt,yt)),z.pipe((0,Ue.M)({next:K,complete:K,error:K})).subscribe(De).add(K)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let He=(()=>{var Ze;class De{constructor(K){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=K,this.outsideAngular=K.runOutsideAngular(()=>new Pe(Zone.current)),this.insideAngular=K.run(()=>new Pe(Zone.current,we.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return Ze=De,(0,g.A)(De,"\u0275fac",function(K){return new(K||Ze)(c.KVO(c.SKi))}),(0,g.A)(De,"\u0275prov",c.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})),De})();function Je(){const Ze=globalThis.\u0275AngularFireScheduler;if(!Ze)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return Ze}function Ce(Ze){return Je().ngZone.run(()=>Ze())}function zt(Ze){return function Et(Ze){return function(z){return(z=z.lift(new Ke(Ze.ngZone))).pipe((0,ze._)(Ze.outsideAngular),(0,Ve.Q)(Ze.insideAngular))}}(Je())(Ze)}const Be=(Ze,De)=>function(){const K=arguments;return De&&setTimeout(()=>{"scheduled"===De.state&&De.invoke()},10),Ce(()=>Ze.apply(void 0,K))},tn=(Ze,De)=>function(){let z;const K=arguments;for(let ie=0;ieZone.current.scheduleMacroTask("firebaseZoneBlock",yt,{},yt,yt)))),K[ie]=Be(K[ie],z));const q=function mt(Ze){return Je().ngZone.runOutsideAngular(()=>Ze())}(()=>Ze.apply(this,K));if(!De){if(q instanceof Ee.c){const ie=Je();return q.pipe((0,ze._)(ie.outsideAngular),(0,Ve.Q)(ie.insideAngular))}return Ce(()=>q)}return q instanceof Ee.c?q.pipe(zt):q instanceof Promise?Ce(()=>new Promise((ie,se)=>q.then(be=>Ce(()=>ie(be)),be=>Ce(()=>se(be))))):"function"==typeof q&&z?function(){return setTimeout(()=>{z&&"scheduled"===z.state&&z.invoke()},10),q.apply(this,arguments)}:Ce(()=>q)}},4341:(Dn,At,x)=>{"use strict";x.d(At,{YN:()=>da,zX:()=>Ai,VZ:()=>Ko,cz:()=>He,kq:()=>it,vO:()=>Ft,BC:()=>Cn,vS:()=>ur});var g=x(4438),c=x(177),de=x(8455),Fe=x(1985),W=x(3073),Ie=x(8750),te=x(9326),Ge=x(4360),Qe=x(6450),we=x(8496),Ue=x(6354);let ze=(()=>{var j;class N{constructor(G,Re){this._renderer=G,this._elementRef=Re,this.onChange=fn=>{},this.onTouched=()=>{}}setProperty(G,Re){this._renderer.setProperty(this._elementRef.nativeElement,G,Re)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(j=N).\u0275fac=function(G){return new(G||j)(g.rXU(g.sFG),g.rXU(g.aKT))},j.\u0275dir=g.FsC({type:j}),N})(),Ve=(()=>{var j;class N extends ze{}return(j=N).\u0275fac=(()=>{let ve;return function(Re){return(ve||(ve=g.xGo(j)))(Re||j)}})(),j.\u0275dir=g.FsC({type:j,features:[g.Vt3]}),N})();const it=new g.nKC(""),gt={provide:it,useExisting:(0,g.Rfq)(()=>yt),multi:!0},ft=new g.nKC("");let yt=(()=>{var j;class N extends ze{constructor(G,Re,fn){super(G,Re),this._compositionMode=fn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xt(){const j=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(j.toLowerCase())}())}writeValue(G){this.setProperty("value",null==G?"":G)}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}}return(j=N).\u0275fac=function(G){return new(G||j)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(ft,8))},j.\u0275dir=g.FsC({type:j,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(G,Re){1&G&&g.bIt("input",function(Un){return Re._handleInput(Un.target.value)})("blur",function(){return Re.onTouched()})("compositionstart",function(){return Re._compositionStart()})("compositionend",function(Un){return Re._compositionEnd(Un.target.value)})},features:[g.Jv_([gt]),g.Vt3]}),N})();function Pe(j){return null==j||("string"==typeof j||Array.isArray(j))&&0===j.length}const He=new g.nKC(""),Je=new g.nKC("");function z(j){return null}function K(j){return null!=j}function q(j){return(0,g.jNT)(j)?(0,de.H)(j):j}function ie(j){let N={};return j.forEach(ve=>{N=null!=ve?{...N,...ve}:N}),0===Object.keys(N).length?null:N}function se(j,N){return N.map(ve=>ve(j))}function Xe(j){return j.map(N=>function be(j){return!j.validate}(N)?N:ve=>N.validate(ve))}function En(j){return null!=j?function nn(j){if(!j)return null;const N=j.filter(K);return 0==N.length?null:function(ve){return ie(se(ve,N))}}(Xe(j)):null}function Mn(j){return null!=j?function rn(j){if(!j)return null;const N=j.filter(K);return 0==N.length?null:function(ve){return function Ee(...j){const N=(0,te.ms)(j),{args:ve,keys:G}=(0,W.D)(j),Re=new Fe.c(fn=>{const{length:Un}=ve;if(!Un)return void fn.complete();const hr=new Array(Un);let Zi=Un,ao=Un;for(let eo=0;eo{Jo||(Jo=!0,ao--),hr[eo]=Na},()=>Zi--,void 0,()=>{(!Zi||!Jo)&&(ao||fn.next(G?(0,we.e)(G,hr):hr),fn.complete())}))}});return N?Re.pipe((0,Qe.I)(N)):Re}(se(ve,N).map(q)).pipe((0,Ue.T)(ie))}}(Xe(j)):null}function Vn(j,N){return null===j?[N]:Array.isArray(j)?[...j,N]:[j,N]}function Xn(j){return j?Array.isArray(j)?j:[j]:[]}function wn(j,N){return Array.isArray(j)?j.includes(N):j===N}function or(j,N){const ve=Xn(N);return Xn(j).forEach(Re=>{wn(ve,Re)||ve.push(Re)}),ve}function rr(j,N){return Xn(N).filter(ve=>!wn(j,ve))}class je{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=En(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=Mn(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,ve){return!!this.control&&this.control.hasError(N,ve)}getError(N,ve){return this.control?this.control.getError(N,ve):null}}class bt extends je{get formDirective(){return null}get path(){return null}}class Ft extends je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jt{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Cn=(()=>{var j;class N extends Jt{constructor(G){super(G)}}return(j=N).\u0275fac=function(G){return new(G||j)(g.rXU(Ft,2))},j.\u0275dir=g.FsC({type:j,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,Re){2&G&&g.AVh("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)},features:[g.Vt3]}),N})();const ue="VALID",We="INVALID",vt="PENDING",ot="DISABLED";function ne(j){return null!=j&&!Array.isArray(j)&&"object"==typeof j}class Lt{constructor(N,ve){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(ve)}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===ue}get invalid(){return this.status===We}get pending(){return this.status==vt}get disabled(){return this.status===ot}get enabled(){return this.status!==ot}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(or(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(or(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(rr(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}hasValidator(N){return wn(this._rawValidators,N)}hasAsyncValidator(N){return wn(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(ve=>{ve.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(ve=>{ve.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=vt,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const ve=this._parentMarkedDirty(N.onlySelf);this.status=ot,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:ve}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const ve=this._parentMarkedDirty(N.onlySelf);this.status=ue,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:ve}),this._onDisabledChange.forEach(G=>G(!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===ue||this.status===vt)&&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(ve=>ve._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ot:ue}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=vt,this._hasOwnPendingAsyncValidator=!0;const ve=q(this.asyncValidator(this));this._asyncValidationSubscription=ve.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,ve={}){this.errors=N,this._updateControlsErrors(!1!==ve.emitEvent)}get(N){let ve=N;return null==ve||(Array.isArray(ve)||(ve=ve.split(".")),0===ve.length)?null:ve.reduce((G,Re)=>G&&G._find(Re),this)}getError(N,ve){const G=ve?this.get(ve):this;return G&&G.errors?G.errors[N]:null}hasError(N,ve){return!!this.getError(N,ve)}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 g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?ot:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vt)?vt:this._anyControlsHaveStatus(We)?We:ue}_anyControlsHaveStatus(N){return this._anyControls(ve=>ve.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){ne(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 ge(j){return Array.isArray(j)?En(j):j||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function St(j){return Array.isArray(j)?Mn(j):j||null}(this._rawAsyncValidators)}}const Pr=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>yr}),yr="always";function gi(j,N,ve=yr){var G,Re;(function mi(j,N){const ve=function qn(j){return j._rawValidators}(j);null!==N.validator?j.setValidators(Vn(ve,N.validator)):"function"==typeof ve&&j.setValidators([ve]);const G=function Zn(j){return j._rawAsyncValidators}(j);null!==N.asyncValidator?j.setAsyncValidators(Vn(G,N.asyncValidator)):"function"==typeof G&&j.setAsyncValidators([G]);const Re=()=>j.updateValueAndValidity();Fi(N._rawValidators,Re),Fi(N._rawAsyncValidators,Re)})(j,N),N.valueAccessor.writeValue(j.value),(j.disabled||"always"===ve)&&(null===(G=(Re=N.valueAccessor).setDisabledState)||void 0===G||G.call(Re,j.disabled)),function _t(j,N){N.valueAccessor.registerOnChange(ve=>{j._pendingValue=ve,j._pendingChange=!0,j._pendingDirty=!0,"change"===j.updateOn&&Tn(j,N)})}(j,N),function he(j,N){const ve=(G,Re)=>{N.valueAccessor.writeValue(G),Re&&N.viewToModelUpdate(G)};j.registerOnChange(ve),N._registerOnDestroy(()=>{j._unregisterOnChange(ve)})}(j,N),function jt(j,N){N.valueAccessor.registerOnTouched(()=>{j._pendingTouched=!0,"blur"===j.updateOn&&j._pendingChange&&Tn(j,N),"submit"!==j.updateOn&&j.markAsTouched()})}(j,N),function Mi(j,N){if(N.valueAccessor.setDisabledState){const ve=G=>{N.valueAccessor.setDisabledState(G)};j.registerOnDisabledChange(ve),N._registerOnDestroy(()=>{j._unregisterOnDisabledChange(ve)})}}(j,N)}function Fi(j,N){j.forEach(ve=>{ve.registerOnValidatorChange&&ve.registerOnValidatorChange(N)})}function Tn(j,N){j._pendingDirty&&j.markAsDirty(),j.setValue(j._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(j._pendingValue),j._pendingChange=!1}function sr(j,N){const ve=j.indexOf(N);ve>-1&&j.splice(ve,1)}function Wr(j){return"object"==typeof j&&null!==j&&2===Object.keys(j).length&&"value"in j&&"disabled"in j}Promise.resolve();const Fr=class extends Lt{constructor(N=null,ve,G){super(function ce(j){return(ne(j)?j.validators:j)||null}(ve),function Ne(j,N){return(ne(N)?N.asyncValidators:j)||null}(G,ve)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(ve),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ne(ve)&&(ve.nonNullable||ve.initialValueIsDefault)&&(this.defaultValue=Wr(N)?N.value:N)}setValue(N,ve={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==ve.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==ve.emitViewToModelChange)),this.updateValueAndValidity(ve)}patchValue(N,ve={}){this.setValue(N,ve)}reset(N=this.defaultValue,ve={}){this._applyFormState(N),this.markAsPristine(ve),this.markAsUntouched(ve),this.setValue(this.value,ve),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){sr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){sr(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){Wr(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}},Wo={provide:Ft,useExisting:(0,g.Rfq)(()=>ur)},li=Promise.resolve();let ur=(()=>{var j;class N extends Ft{constructor(G,Re,fn,Un,hr,Zi){super(),this._changeDetectorRef=hr,this.callSetDisabledState=Zi,this.control=new Fr,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=G,this._setValidators(Re),this._setAsyncValidators(fn),this.valueAccessor=function $n(j,N){if(!N)return null;let ve,G,Re;return Array.isArray(N),N.forEach(fn=>{fn.constructor===yt?ve=fn:function qt(j){return Object.getPrototypeOf(j.constructor)===Ve}(fn)?G=fn:Re=fn}),Re||G||ve||null}(0,Un)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const Re=G.name.previousValue;this.formDirective.removeControl({name:Re,path:this._getPath(Re)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function Gt(j,N){if(!j.hasOwnProperty("model"))return!1;const ve=j.model;return!!ve.isFirstChange()||!Object.is(N,ve.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_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(){gi(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(G){li.then(()=>{var Re;this.control.setValue(G,{emitViewToModelChange:!1}),null===(Re=this._changeDetectorRef)||void 0===Re||Re.markForCheck()})}_updateDisabled(G){const Re=G.isDisabled.currentValue,fn=0!==Re&&(0,g.L39)(Re);li.then(()=>{var Un;fn&&!this.control.disabled?this.control.disable():!fn&&this.control.disabled&&this.control.enable(),null===(Un=this._changeDetectorRef)||void 0===Un||Un.markForCheck()})}_getPath(G){return this._parent?function Vr(j,N){return[...N.path,j]}(G,this._parent):[G]}}return(j=N).\u0275fac=function(G){return new(G||j)(g.rXU(bt,9),g.rXU(He,10),g.rXU(Je,10),g.rXU(it,10),g.rXU(g.gRc,8),g.rXU(Pr,8))},j.\u0275dir=g.FsC({type:j,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[g.Mj6.None,"disabled","isDisabled"],model:[g.Mj6.None,"ngModel","model"],options:[g.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g.Jv_([Wo]),g.Vt3,g.OA$]}),N})();function dr(j){return"number"==typeof j?j:parseFloat(j)}let yi=(()=>{var j;class N{constructor(){this._validator=z}ngOnChanges(G){if(this.inputName in G){const Re=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(Re),this._validator=this._enabled?this.createValidator(Re):z,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(j=N).\u0275fac=function(G){return new(G||j)},j.\u0275dir=g.FsC({type:j,features:[g.OA$]}),N})();const bi={provide:He,useExisting:(0,g.Rfq)(()=>Ai),multi:!0};let Ai=(()=>{var j;class N extends yi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>dr(G),this.createValidator=G=>function Rt(j){return N=>{if(Pe(N.value)||Pe(j))return null;const ve=parseFloat(N.value);return!isNaN(ve)&&ve>j?{max:{max:j,actual:N.value}}:null}}(G)}}return(j=N).\u0275fac=(()=>{let ve;return function(Re){return(ve||(ve=g.xGo(j)))(Re||j)}})(),j.\u0275dir=g.FsC({type:j,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,Re){2&G&&g.BMQ("max",Re._enabled?Re.max:null)},inputs:{max:"max"},features:[g.Jv_([bi]),g.Vt3]}),N})();const no={provide:He,useExisting:(0,g.Rfq)(()=>Ko),multi:!0};let Ko=(()=>{var j;class N extends yi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>dr(G),this.createValidator=G=>function nt(j){return N=>{if(Pe(N.value)||Pe(j))return null;const ve=parseFloat(N.value);return!isNaN(ve)&&ve{let ve;return function(Re){return(ve||(ve=g.xGo(j)))(Re||j)}})(),j.\u0275dir=g.FsC({type:j,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,Re){2&G&&g.BMQ("min",Re._enabled?Re.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),N})(),ms=(()=>{var j;class N{}return(j=N).\u0275fac=function(G){return new(G||j)},j.\u0275mod=g.$C({type:j}),j.\u0275inj=g.G2t({}),N})(),da=(()=>{var j;class N{static withConfig(G){var Re;return{ngModule:N,providers:[{provide:Pr,useValue:null!==(Re=G.callSetDisabledState)&&void 0!==Re?Re:yr}]}}}return(j=N).\u0275fac=function(G){return new(G||j)},j.\u0275mod=g.$C({type:j}),j.\u0275inj=g.G2t({imports:[ms]}),N})()},345:(Dn,At,x)=>{"use strict";x.d(At,{Bb:()=>Xn,hE:()=>rr,sG:()=>Mn});var g=x(4438),c=x(177);class de extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Fe extends de{static makeCurrent(){(0,c.ZD)(new Fe)}onAndCancel(We,vt,ot){return We.addEventListener(vt,ot),()=>{We.removeEventListener(vt,ot)}}dispatchEvent(We,vt){We.dispatchEvent(vt)}remove(We){We.parentNode&&We.parentNode.removeChild(We)}createElement(We,vt){return(vt=vt||this.getDefaultDocument()).createElement(We)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(We){return We.nodeType===Node.ELEMENT_NODE}isShadowRoot(We){return We instanceof DocumentFragment}getGlobalEventTarget(We,vt){return"window"===vt?window:"document"===vt?We:"body"===vt?We.body:null}getBaseHref(We){const vt=function Ie(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}();return null==vt?null:function te(ue){return new URL(ue,document.baseURI).pathname}(vt)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(We){return(0,c._b)(document.cookie,We)}}let W=null,Qe=(()=>{var ue;class We{build(){return new XMLHttpRequest}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),We})();const we=new g.nKC("");let Ee=(()=>{var ue;class We{constructor(ot,ce){this._zone=ce,this._eventNameToPlugin=new Map,ot.forEach(ge=>{ge.manager=this}),this._plugins=ot.slice().reverse()}addEventListener(ot,ce,ge){return this._findPluginFor(ce).addEventListener(ot,ce,ge)}getZone(){return this._zone}_findPluginFor(ot){let ce=this._eventNameToPlugin.get(ot);if(ce)return ce;if(ce=this._plugins.find(Ne=>Ne.supports(ot)),!ce)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(ot,ce),ce}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(we),g.KVO(g.SKi))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),We})();class Ue{constructor(We){this._doc=We}}const ze="ng-app-id";let Ve=(()=>{var ue;class We{constructor(ot,ce,ge,Ne={}){this.doc=ot,this.appId=ce,this.nonce=ge,this.platformId=Ne,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(Ne),this.resetHostNodes()}addStyles(ot){for(const ce of ot)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(ot){for(const ce of ot)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const ot=this.styleNodesInDOM;ot&&(ot.forEach(ce=>ce.remove()),ot.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(ot){this.hostNodes.add(ot);for(const ce of this.getAllStyles())this.addStyleToHost(ot,ce)}removeHost(ot){this.hostNodes.delete(ot)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ot){for(const ce of this.hostNodes)this.addStyleToHost(ce,ot)}onStyleRemoved(ot){var ce;const ge=this.styleRef;null===(ce=ge.get(ot))||void 0===ce||null===(ce=ce.elements)||void 0===ce||ce.forEach(Ne=>Ne.remove()),ge.delete(ot)}collectServerRenderedStyles(){var ot;const ce=null===(ot=this.doc.head)||void 0===ot?void 0:ot.querySelectorAll(`style[${ze}="${this.appId}"]`);if(null!=ce&&ce.length){const ge=new Map;return ce.forEach(Ne=>{null!=Ne.textContent&&ge.set(Ne.textContent,Ne)}),ge}return null}changeUsageCount(ot,ce){const ge=this.styleRef;if(ge.has(ot)){const Ne=ge.get(ot);return Ne.usage+=ce,Ne.usage}return ge.set(ot,{usage:ce,elements:[]}),ce}getStyleElement(ot,ce){const ge=this.styleNodesInDOM,Ne=null==ge?void 0:ge.get(ce);if((null==Ne?void 0:Ne.parentNode)===ot)return ge.delete(ce),Ne.removeAttribute(ze),Ne;{const St=this.doc.createElement("style");return this.nonce&&St.setAttribute("nonce",this.nonce),St.textContent=ce,this.platformIsServer&&St.setAttribute(ze,this.appId),ot.appendChild(St),St}}addStyleToHost(ot,ce){var ge;const Ne=this.getStyleElement(ot,ce),St=this.styleRef,ne=null===(ge=St.get(ce))||void 0===ge?void 0:ge.elements;ne?ne.push(Ne):St.set(ce,{elements:[Ne],usage:1})}resetHostNodes(){const ot=this.hostNodes;ot.clear(),ot.add(this.doc.head)}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(c.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),We})();const it={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/"},It=/%COMP%/g,yt=new g.nKC("",{providedIn:"root",factory:()=>!0});function He(ue,We){return We.map(vt=>vt.replace(It,ue))}let Je=(()=>{var ue;class We{constructor(ot,ce,ge,Ne,St,ne,et,Ye=null){this.eventManager=ot,this.sharedStylesHost=ce,this.appId=ge,this.removeStylesOnCompDestroy=Ne,this.doc=St,this.platformId=ne,this.ngZone=et,this.nonce=Ye,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ne),this.defaultRenderer=new mt(ot,St,et,this.platformIsServer)}createRenderer(ot,ce){if(!ot||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===g.gXe.ShadowDom&&(ce={...ce,encapsulation:g.gXe.Emulated});const ge=this.getOrCreateRenderer(ot,ce);return ge instanceof Be?ge.applyToHost(ot):ge instanceof Et&&ge.applyStyles(),ge}getOrCreateRenderer(ot,ce){const ge=this.rendererByCompId;let Ne=ge.get(ce.id);if(!Ne){const St=this.doc,ne=this.ngZone,et=this.eventManager,Ye=this.sharedStylesHost,Lt=this.removeStylesOnCompDestroy,Xt=this.platformIsServer;switch(ce.encapsulation){case g.gXe.Emulated:Ne=new Be(et,Ye,ce,this.appId,Lt,St,ne,Xt);break;case g.gXe.ShadowDom:return new zt(et,Ye,ot,ce,St,ne,this.nonce,Xt);default:Ne=new Et(et,Ye,ce,Lt,St,ne,Xt)}ge.set(ce.id,Ne)}return Ne}ngOnDestroy(){this.rendererByCompId.clear()}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(Ee),g.KVO(Ve),g.KVO(g.sZ2),g.KVO(yt),g.KVO(c.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),We})();class mt{constructor(We,vt,ot,ce){this.eventManager=We,this.doc=vt,this.ngZone=ot,this.platformIsServer=ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(We,vt){return vt?this.doc.createElementNS(it[vt]||vt,We):this.doc.createElement(We)}createComment(We){return this.doc.createComment(We)}createText(We){return this.doc.createTextNode(We)}appendChild(We,vt){(Rt(We)?We.content:We).appendChild(vt)}insertBefore(We,vt,ot){We&&(Rt(We)?We.content:We).insertBefore(vt,ot)}removeChild(We,vt){We&&We.removeChild(vt)}selectRootElement(We,vt){let ot="string"==typeof We?this.doc.querySelector(We):We;if(!ot)throw new g.wOt(-5104,!1);return vt||(ot.textContent=""),ot}parentNode(We){return We.parentNode}nextSibling(We){return We.nextSibling}setAttribute(We,vt,ot,ce){if(ce){vt=ce+":"+vt;const ge=it[ce];ge?We.setAttributeNS(ge,vt,ot):We.setAttribute(vt,ot)}else We.setAttribute(vt,ot)}removeAttribute(We,vt,ot){if(ot){const ce=it[ot];ce?We.removeAttributeNS(ce,vt):We.removeAttribute(`${ot}:${vt}`)}else We.removeAttribute(vt)}addClass(We,vt){We.classList.add(vt)}removeClass(We,vt){We.classList.remove(vt)}setStyle(We,vt,ot,ce){ce&(g.czy.DashCase|g.czy.Important)?We.style.setProperty(vt,ot,ce&g.czy.Important?"important":""):We.style[vt]=ot}removeStyle(We,vt,ot){ot&g.czy.DashCase?We.style.removeProperty(vt):We.style[vt]=""}setProperty(We,vt,ot){null!=We&&(We[vt]=ot)}setValue(We,vt){We.nodeValue=vt}listen(We,vt,ot){if("string"==typeof We&&!(We=(0,c.QT)().getGlobalEventTarget(this.doc,We)))throw new Error(`Unsupported event target ${We} for event ${vt}`);return this.eventManager.addEventListener(We,vt,this.decoratePreventDefault(ot))}decoratePreventDefault(We){return vt=>{if("__ngUnwrap__"===vt)return We;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>We(vt)):We(vt))&&vt.preventDefault()}}}function Rt(ue){return"TEMPLATE"===ue.tagName&&void 0!==ue.content}class zt extends mt{constructor(We,vt,ot,ce,ge,Ne,St,ne){super(We,ge,Ne,ne),this.sharedStylesHost=vt,this.hostEl=ot,this.shadowRoot=ot.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const et=He(ce.id,ce.styles);for(const Ye of et){const Lt=document.createElement("style");St&&Lt.setAttribute("nonce",St),Lt.textContent=Ye,this.shadowRoot.appendChild(Lt)}}nodeOrShadowRoot(We){return We===this.hostEl?this.shadowRoot:We}appendChild(We,vt){return super.appendChild(this.nodeOrShadowRoot(We),vt)}insertBefore(We,vt,ot){return super.insertBefore(this.nodeOrShadowRoot(We),vt,ot)}removeChild(We,vt){return super.removeChild(this.nodeOrShadowRoot(We),vt)}parentNode(We){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(We)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Et extends mt{constructor(We,vt,ot,ce,ge,Ne,St,ne){super(We,ge,Ne,St),this.sharedStylesHost=vt,this.removeStylesOnCompDestroy=ce,this.styles=ne?He(ne,ot.styles):ot.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Be extends Et{constructor(We,vt,ot,ce,ge,Ne,St,ne){const et=ce+"-"+ot.id;super(We,vt,ot,ge,Ne,St,ne,et),this.contentAttr=function Pe(ue){return"_ngcontent-%COMP%".replace(It,ue)}(et),this.hostAttr=function Ke(ue){return"_nghost-%COMP%".replace(It,ue)}(et)}applyToHost(We){this.applyStyles(),this.setAttribute(We,this.hostAttr,"")}createElement(We,vt){const ot=super.createElement(We,vt);return super.setAttribute(ot,this.contentAttr,""),ot}}let tn=(()=>{var ue;class We extends Ue{constructor(ot){super(ot)}supports(ot){return!0}addEventListener(ot,ce,ge){return ot.addEventListener(ce,ge,!1),()=>this.removeEventListener(ot,ce,ge)}removeEventListener(ot,ce,ge){return ot.removeEventListener(ce,ge)}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(c.qQ))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),We})();const Ze=["alt","control","meta","shift"],De={"\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"},z={alt:ue=>ue.altKey,control:ue=>ue.ctrlKey,meta:ue=>ue.metaKey,shift:ue=>ue.shiftKey};let K=(()=>{var ue;class We extends Ue{constructor(ot){super(ot)}supports(ot){return null!=We.parseEventName(ot)}addEventListener(ot,ce,ge){const Ne=We.parseEventName(ce),St=We.eventCallback(Ne.fullKey,ge,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(ot,Ne.domEventName,St))}static parseEventName(ot){const ce=ot.toLowerCase().split("."),ge=ce.shift();if(0===ce.length||"keydown"!==ge&&"keyup"!==ge)return null;const Ne=We._normalizeKey(ce.pop());let St="",ne=ce.indexOf("code");if(ne>-1&&(ce.splice(ne,1),St="code."),Ze.forEach(Ye=>{const Lt=ce.indexOf(Ye);Lt>-1&&(ce.splice(Lt,1),St+=Ye+".")}),St+=Ne,0!=ce.length||0===Ne.length)return null;const et={};return et.domEventName=ge,et.fullKey=St,et}static matchEventFullKeyCode(ot,ce){let ge=De[ot.key]||ot.key,Ne="";return ce.indexOf("code.")>-1&&(ge=ot.code,Ne="code."),!(null==ge||!ge)&&(ge=ge.toLowerCase()," "===ge?ge="space":"."===ge&&(ge="dot"),Ze.forEach(St=>{St!==ge&&(0,z[St])(ot)&&(Ne+=St+".")}),Ne+=ge,Ne===ce)}static eventCallback(ot,ce,ge){return Ne=>{We.matchEventFullKeyCode(Ne,ot)&&ge.runGuarded(()=>ce(Ne))}}static _normalizeKey(ot){return"esc"===ot?"escape":ot}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(c.qQ))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),We})();const Mn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:c.AJ},{provide:g.PLl,useValue:function Xe(){Fe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function En(){return(0,g.TL$)(document),document},deps:[]}]),Vn=new g.nKC(""),qn=[{provide:g.e01,useClass:class Ge{addToWindow(We){g.JZv.getAngularTestability=(ot,ce=!0)=>{const ge=We.findTestabilityInTree(ot,ce);if(null==ge)throw new g.wOt(5103,!1);return ge},g.JZv.getAllAngularTestabilities=()=>We.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>We.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(ot=>{const ce=g.JZv.getAllAngularTestabilities();let ge=ce.length;const Ne=function(){ge--,0==ge&&ot()};ce.forEach(St=>{St.whenStable(Ne)})})}findTestabilityInTree(We,vt,ot){if(null==vt)return null;const ce=We.getTestability(vt);return null!=ce?ce:ot?(0,c.QT)().isShadowRoot(vt)?this.findTestabilityInTree(We,vt.host,!0):this.findTestabilityInTree(We,vt.parentElement,!0):null}},deps:[]},{provide:g.WHO,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]},{provide:g.NYb,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]}],Zn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function nn(){return new g.zcH},deps:[]},{provide:we,useClass:tn,multi:!0,deps:[c.qQ,g.SKi,g.Agw]},{provide:we,useClass:K,multi:!0,deps:[c.qQ]},Je,Ve,Ee,{provide:g._9s,useExisting:Je},{provide:c.N0,useClass:Qe,deps:[]},[]];let Xn=(()=>{var ue;class We{constructor(ot){}static withServerTransition(ot){return{ngModule:We,providers:[{provide:g.sZ2,useValue:ot.appId}]}}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(Vn,12))},ue.\u0275mod=g.$C({type:ue}),ue.\u0275inj=g.G2t({providers:[...Zn,...qn],imports:[c.MD,g.Hbi]}),We})(),rr=(()=>{var ue;class We{constructor(ot){this._doc=ot}getTitle(){return this._doc.title}setTitle(ot){this._doc.title=ot||""}}return(ue=We).\u0275fac=function(ot){return new(ot||ue)(g.KVO(c.qQ))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),We})()},305:(Dn,At,x)=>{"use strict";x.d(At,{nX:()=>le,Zp:()=>S,wF:()=>Fr,Z:()=>Wr,Xk:()=>wn,Kp:()=>Ua,b:()=>fi,Ix:()=>$i,Wk:()=>$o,iI:()=>Mu,Sd:()=>Zr});var g=x(467),c=x(4438),de=x(1985),Fe=x(8071),Ie=x(8455),te=x(7673),Ge=x(4412),Qe=x(4572);const Ee=(0,x(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Ue=x(1397),ze=x(3669);function Ve(I=1/0){return(0,Ue.Z)(ze.D,I)}var It=x(9326);function at(...I){return function it(){return Ve(1)}()((0,Ie.H)(I,(0,It.lI)(I)))}var gt=x(8750);function xt(I){return new de.c(D=>{(0,gt.Tg)(I()).subscribe(D)})}var ft=x(1203);function yt(I,D){const M=(0,Fe.T)(I)?I:()=>I,C=O=>O.error(M());return new de.c(D?O=>D.schedule(C,0,O):C)}var Pe=x(983),Ke=x(8359),He=x(9974),Je=x(4360);function mt(){return(0,He.N)((I,D)=>{let M=null;I._refCount++;const C=(0,Je._)(D,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(M=null);const O=I._connection,re=M;M=null,O&&(!re||O===re)&&O.unsubscribe(),D.unsubscribe()});I.subscribe(C),C.closed||(M=I.connect())})}class Ce extends de.c{constructor(D,M){super(),this.source=D,this.subjectFactory=M,this._subject=null,this._refCount=0,this._connection=null,(0,He.S)(D)&&(this.lift=D.lift)}_subscribe(D){return this.getSubject().subscribe(D)}getSubject(){const D=this._subject;return(!D||D.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:D}=this;this._subject=this._connection=null,null==D||D.unsubscribe()}connect(){let D=this._connection;if(!D){D=this._connection=new Ke.yU;const M=this.getSubject();D.add(this.source.subscribe((0,Je._)(M,void 0,()=>{this._teardown(),M.complete()},C=>{this._teardown(),M.error(C)},()=>this._teardown()))),D.closed&&(this._connection=null,D=Ke.yU.EMPTY)}return D}refCount(){return mt()(this)}}var nt=x(1413),Rt=x(177),zt=x(6354),Et=x(5558),Be=x(6697),Ze=x(5964);function De(I){return(0,He.N)((D,M)=>{let C=!1;D.subscribe((0,Je._)(M,O=>{C=!0,M.next(O)},()=>{C||M.next(I),M.complete()}))})}function z(I=K){return(0,He.N)((D,M)=>{let C=!1;D.subscribe((0,Je._)(M,O=>{C=!0,M.next(O)},()=>C?M.complete():M.error(I())))})}function K(){return new Ee}function q(I,D){const M=arguments.length>=2;return C=>C.pipe(I?(0,Ze.p)((O,re)=>I(O,re,C)):ze.D,(0,Be.s)(1),M?De(D):z(()=>new Ee))}var ie=x(274),se=x(8141);function be(I){return(0,He.N)((D,M)=>{let re,C=null,O=!1;C=D.subscribe((0,Je._)(M,void 0,void 0,Ae=>{re=(0,gt.Tg)(I(Ae,be(I)(D))),C?(C.unsubscribe(),C=null,re.subscribe(M)):O=!0})),O&&(C.unsubscribe(),C=null,re.subscribe(M))})}function En(I){return I<=0?()=>Pe.w:(0,He.N)((D,M)=>{let C=[];D.subscribe((0,Je._)(M,O=>{C.push(O),I{for(const O of C)M.next(O);M.complete()},void 0,()=>{C=null}))})}var Vn=x(980),qn=x(5343),Xn=x(345);const wn="primary",or=Symbol("RouteTitle");class rr{constructor(D){this.params=D||{}}has(D){return Object.prototype.hasOwnProperty.call(this.params,D)}get(D){if(this.has(D)){const M=this.params[D];return Array.isArray(M)?M[0]:M}return null}getAll(D){if(this.has(D)){const M=this.params[D];return Array.isArray(M)?M:[M]}return[]}get keys(){return Object.keys(this.params)}}function je(I){return new rr(I)}function bt(I,D,M){const C=M.path.split("/");if(C.length>I.length||"full"===M.pathMatch&&(D.hasChildren()||C.lengthC[re]===O)}return I===D}function Cn(I){return I.length>0?I[I.length-1]:null}function An(I){return function W(I){return!!I&&(I instanceof de.c||(0,Fe.T)(I.lift)&&(0,Fe.T)(I.subscribe))}(I)?I:(0,c.jNT)(I)?(0,Ie.H)(Promise.resolve(I)):(0,te.of)(I)}const sn={exact:function Lr(I,D,M){if(!_r(I.segments,D.segments)||!ii(I.segments,D.segments,M)||I.numberOfChildren!==D.numberOfChildren)return!1;for(const C in D.children)if(!I.children[C]||!Lr(I.children[C],D.children[C],M))return!1;return!0},subset:Cr},Kt={exact:function Rr(I,D){return Jt(I,D)},subset:function kr(I,D){return Object.keys(D).length<=Object.keys(I).length&&Object.keys(D).every(M=>Ar(I[M],D[M]))},ignored:()=>!0};function fr(I,D,M){return sn[M.paths](I.root,D.root,M.matrixParams)&&Kt[M.queryParams](I.queryParams,D.queryParams)&&!("exact"===M.fragment&&I.fragment!==D.fragment)}function Cr(I,D,M){return jn(I,D,D.segments,M)}function jn(I,D,M,C){if(I.segments.length>M.length){const O=I.segments.slice(0,M.length);return!(!_r(O,M)||D.hasChildren()||!ii(O,M,C))}if(I.segments.length===M.length){if(!_r(I.segments,M)||!ii(I.segments,M,C))return!1;for(const O in D.children)if(!I.children[O]||!Cr(I.children[O],D.children[O],C))return!1;return!0}{const O=M.slice(0,I.segments.length),re=M.slice(I.segments.length);return!!(_r(I.segments,O)&&ii(I.segments,O,C)&&I.children[wn])&&jn(I.children[wn],D,re,C)}}function ii(I,D,M){return D.every((C,O)=>Kt[M](I[O].parameters,C.parameters))}class er{constructor(D=new Pn([],{}),M={},C=null){this.root=D,this.queryParams=M,this.fragment=C}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=je(this.queryParams)),this._queryParamMap}toString(){return ue.serialize(this)}}class Pn{constructor(D,M){this.segments=D,this.children=M,this.parent=null,Object.values(M).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return We(this)}}class Mr{constructor(D,M){this.path=D,this.parameters=M}get parameterMap(){var D;return null!==(D=this._parameterMap)&&void 0!==D||(this._parameterMap=je(this.parameters)),this._parameterMap}toString(){return et(this)}}function _r(I,D){return I.length===D.length&&I.every((M,C)=>M.path===D[C].path)}let Zr=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>new zr,providedIn:"root"}),D})();class zr{parse(D){const M=new Vr(D);return new er(M.parseRootSegment(),M.parseQueryParams(),M.parseFragment())}serialize(D){const M=`/${vt(D.root,!0)}`,C=function Lt(I){const D=Object.entries(I).map(([M,C])=>Array.isArray(C)?C.map(O=>`${ce(M)}=${ce(O)}`).join("&"):`${ce(M)}=${ce(C)}`).filter(M=>M);return D.length?`?${D.join("&")}`:""}(D.queryParams);return`${M}${C}${"string"==typeof D.fragment?`#${function ge(I){return encodeURI(I)}(D.fragment)}`:""}`}}const ue=new zr;function We(I){return I.segments.map(D=>et(D)).join("/")}function vt(I,D){if(!I.hasChildren())return We(I);if(D){const M=I.children[wn]?vt(I.children[wn],!1):"",C=[];return Object.entries(I.children).forEach(([O,re])=>{O!==wn&&C.push(`${O}:${vt(re,!1)}`)}),C.length>0?`${M}(${C.join("//")})`:M}{const M=function Ii(I,D){let M=[];return Object.entries(I.children).forEach(([C,O])=>{C===wn&&(M=M.concat(D(O,C)))}),Object.entries(I.children).forEach(([C,O])=>{C!==wn&&(M=M.concat(D(O,C)))}),M}(I,(C,O)=>O===wn?[vt(I.children[wn],!1)]:[`${O}:${vt(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[wn]?`${We(I)}/${M[0]}`:`${We(I)}/(${M.join("//")})`}}function ot(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ce(I){return ot(I).replace(/%3B/gi,";")}function Ne(I){return ot(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function St(I){return decodeURIComponent(I)}function ne(I){return St(I.replace(/\+/g,"%20"))}function et(I){return`${Ne(I.path)}${function Ye(I){return Object.entries(I).map(([D,M])=>`;${Ne(D)}=${Ne(M)}`).join("")}(I.parameters)}`}const Xt=/^[^\/()?;#]+/;function cn(I){const D=I.match(Xt);return D?D[0]:""}const Hn=/^[^\/()?;=#]+/,_n=/^[^=?&#]+/,Pr=/^[^&#]+/;class Vr{constructor(D){this.url=D,this.remaining=D}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pn([],{}):new Pn([],this.parseChildren())}parseQueryParams(){const D={};if(this.consumeOptional("?"))do{this.parseQueryParam(D)}while(this.consumeOptional("&"));return D}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const D=[];for(this.peekStartsWith("(")||D.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),D.push(this.parseSegment());let M={};this.peekStartsWith("/(")&&(this.capture("/"),M=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(D.length>0||Object.keys(M).length>0)&&(C[wn]=new Pn(D,M)),C}parseSegment(){const D=cn(this.remaining);if(""===D&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(D),new Mr(St(D),this.parseMatrixParams())}parseMatrixParams(){const D={};for(;this.consumeOptional(";");)this.parseParam(D);return D}parseParam(D){const M=function dn(I){const D=I.match(Hn);return D?D[0]:""}(this.remaining);if(!M)return;this.capture(M);let C="";if(this.consumeOptional("=")){const O=cn(this.remaining);O&&(C=O,this.capture(C))}D[St(M)]=St(C)}parseQueryParam(D){const M=function Qn(I){const D=I.match(_n);return D?D[0]:""}(this.remaining);if(!M)return;this.capture(M);let C="";if(this.consumeOptional("=")){const Ae=function yr(I){const D=I.match(Pr);return D?D[0]:""}(this.remaining);Ae&&(C=Ae,this.capture(C))}const O=ne(M),re=ne(C);if(D.hasOwnProperty(O)){let Ae=D[O];Array.isArray(Ae)||(Ae=[Ae],D[O]=Ae),Ae.push(re)}else D[O]=re}parseParens(D){const M={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=cn(this.remaining),O=this.remaining[C.length];if("/"!==O&&")"!==O&&";"!==O)throw new c.wOt(4010,!1);let re;C.indexOf(":")>-1?(re=C.slice(0,C.indexOf(":")),this.capture(re),this.capture(":")):D&&(re=wn);const Ae=this.parseChildren();M[re]=1===Object.keys(Ae).length?Ae[wn]:new Pn([],Ae),this.consumeOptional("//")}return M}peekStartsWith(D){return this.remaining.startsWith(D)}consumeOptional(D){return!!this.peekStartsWith(D)&&(this.remaining=this.remaining.substring(D.length),!0)}capture(D){if(!this.consumeOptional(D))throw new c.wOt(4011,!1)}}function gi(I){return I.segments.length>0?new Pn([],{[wn]:I}):I}function ir(I){const D={};for(const[C,O]of Object.entries(I.children)){const re=ir(O);if(C===wn&&0===re.segments.length&&re.hasChildren())for(const[Ae,Ct]of Object.entries(re.children))D[Ae]=Ct;else(re.segments.length>0||re.hasChildren())&&(D[C]=re)}return function Fi(I){if(1===I.numberOfChildren&&I.children[wn]){const D=I.children[wn];return new Pn(I.segments.concat(D.segments),D.children)}return I}(new Pn(I.segments,D))}function Mi(I){return I instanceof er}function Nt(I){var D;let M;const re=gi(function C(Ae){const Ct={};for(const Pt of Ae.children){const Nn=C(Pt);Ct[Pt.outlet]=Nn}const an=new Pn(Ae.url,Ct);return Ae===I&&(M=an),an}(I.root));return null!==(D=M)&&void 0!==D?D:re}function _t(I,D,M,C){let O=I;for(;O.parent;)O=O.parent;if(0===D.length)return he(O,O,O,M,C);const re=function ee(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new U(!0,0,I);let D=0,M=!1;const C=I.reduce((O,re,Ae)=>{if("object"==typeof re&&null!=re){if(re.outlets){const Ct={};return Object.entries(re.outlets).forEach(([an,Pt])=>{Ct[an]="string"==typeof Pt?Pt.split("/"):Pt}),[...O,{outlets:Ct}]}if(re.segmentPath)return[...O,re.segmentPath]}return"string"!=typeof re?[...O,re]:0===Ae?(re.split("/").forEach((Ct,an)=>{0==an&&"."===Ct||(0==an&&""===Ct?M=!0:".."===Ct?D++:""!=Ct&&O.push(Ct))}),O):[...O,re]},[]);return new U(M,D,C)}(D);if(re.toRoot())return he(O,O,new Pn([],{}),M,C);const Ae=function ae(I,D,M){if(I.isAbsolute)return new $(D,!0,0);if(!M)return new $(D,!1,NaN);if(null===M.parent)return new $(M,!0,0);const C=jt(I.commands[0])?0:1;return function ke(I,D,M){let C=I,O=D,re=M;for(;re>O;){if(re-=O,C=C.parent,!C)throw new c.wOt(4005,!1);O=C.segments.length}return new $(C,!1,O-re)}(M,M.segments.length-1+C,I.numberOfDoubleDots)}(re,O,I),Ct=Ae.processChildren?qt(Ae.segmentGroup,Ae.index,re.commands):Gt(Ae.segmentGroup,Ae.index,re.commands);return he(O,Ae.segmentGroup,Ct,M,C)}function jt(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function Tn(I){return"object"==typeof I&&null!=I&&I.outlets}function he(I,D,M,C,O){let Ae,re={};C&&Object.entries(C).forEach(([an,Pt])=>{re[an]=Array.isArray(Pt)?Pt.map(Nn=>`${Nn}`):`${Pt}`}),Ae=I===D?M:R(I,D,M);const Ct=gi(ir(Ae));return new er(Ct,re,O)}function R(I,D,M){const C={};return Object.entries(I.children).forEach(([O,re])=>{C[O]=re===D?M:R(re,D,M)}),new Pn(I.segments,C)}class U{constructor(D,M,C){if(this.isAbsolute=D,this.numberOfDoubleDots=M,this.commands=C,D&&C.length>0&&jt(C[0]))throw new c.wOt(4003,!1);const O=C.find(Tn);if(O&&O!==Cn(C))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ${constructor(D,M,C){this.segmentGroup=D,this.processChildren=M,this.index=C}}function Gt(I,D,M){var C;if(null!==(C=I)&&void 0!==C||(I=new Pn([],{})),0===I.segments.length&&I.hasChildren())return qt(I,D,M);const O=function Wn(I,D,M){let C=0,O=D;const re={match:!1,pathIndex:0,commandIndex:0};for(;O=M.length)return re;const Ae=I.segments[O],Ct=M[C];if(Tn(Ct))break;const an=`${Ct}`,Pt=C0&&void 0===an)break;if(an&&Pt&&"object"==typeof Pt&&void 0===Pt.outlets){if(!$r(an,Pt,Ae))return re;C+=2}else{if(!$r(an,{},Ae))return re;C++}O++}return{match:!0,pathIndex:O,commandIndex:C}}(I,D,M),re=M.slice(O.commandIndex);if(O.match&&O.pathIndexre!==wn)&&I.children[wn]&&1===I.numberOfChildren&&0===I.children[wn].segments.length){const re=qt(I.children[wn],D,M);return new Pn(I.segments,re.children)}return Object.entries(C).forEach(([re,Ae])=>{"string"==typeof Ae&&(Ae=[Ae]),null!==Ae&&(O[re]=Gt(I.children[re],D,Ae))}),Object.entries(I.children).forEach(([re,Ae])=>{void 0===C[re]&&(O[re]=Ae)}),new Pn(I.segments,O)}}function $n(I,D,M){const C=I.segments.slice(0,D);let O=0;for(;O{"string"==typeof C&&(C=[C]),null!==C&&(D[M]=$n(new Pn([],{}),0,C))}),D}function gr(I){const D={};return Object.entries(I).forEach(([M,C])=>D[M]=`${C}`),D}function $r(I,D,M){return I==M.path&&Jt(D,M.parameters)}const Ir="imperative";var un=function(I){return I[I.NavigationStart=0]="NavigationStart",I[I.NavigationEnd=1]="NavigationEnd",I[I.NavigationCancel=2]="NavigationCancel",I[I.NavigationError=3]="NavigationError",I[I.RoutesRecognized=4]="RoutesRecognized",I[I.ResolveStart=5]="ResolveStart",I[I.ResolveEnd=6]="ResolveEnd",I[I.GuardsCheckStart=7]="GuardsCheckStart",I[I.GuardsCheckEnd=8]="GuardsCheckEnd",I[I.RouteConfigLoadStart=9]="RouteConfigLoadStart",I[I.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",I[I.ChildActivationStart=11]="ChildActivationStart",I[I.ChildActivationEnd=12]="ChildActivationEnd",I[I.ActivationStart=13]="ActivationStart",I[I.ActivationEnd=14]="ActivationEnd",I[I.Scroll=15]="Scroll",I[I.NavigationSkipped=16]="NavigationSkipped",I}(un||{});class sr{constructor(D,M){this.id=D,this.url=M}}class Wr extends sr{constructor(D,M,C="imperative",O=null){super(D,M),this.type=un.NavigationStart,this.navigationTrigger=C,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fr extends sr{constructor(D,M,C){super(D,M),this.urlAfterRedirects=C,this.type=un.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Er=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(Er||{}),pr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(pr||{});class ei extends sr{constructor(D,M,C,O){super(D,M),this.reason=C,this.code=O,this.type=un.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class kn extends sr{constructor(D,M,C,O){super(D,M),this.reason=C,this.code=O,this.type=un.NavigationSkipped}}class Ln extends sr{constructor(D,M,C,O){super(D,M),this.error=C,this.target=O,this.type=un.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _o extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ai extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi extends sr{constructor(D,M,C,O,re){super(D,M),this.urlAfterRedirects=C,this.state=O,this.shouldActivate=re,this.type=un.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Co extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wo extends sr{constructor(D,M,C,O){super(D,M),this.urlAfterRedirects=C,this.state=O,this.type=un.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li{constructor(D){this.route=D,this.type=un.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ur{constructor(D){this.route=D,this.type=un.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kr{constructor(D){this.snapshot=D,this.type=un.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(D){this.snapshot=D,this.type=un.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yn{constructor(D){this.snapshot=D,this.type=un.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lo{constructor(D){this.snapshot=D,this.type=un.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class To{constructor(D,M,C){this.routerEvent=D,this.position=M,this.anchor=C,this.type=un.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Do{}class co{constructor(D){this.url=D}}class Li{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class D{constructor(){this.contexts=new Map}onChildOutletCreated(C,O){const re=this.getOrCreateContext(C);re.outlet=O,this.contexts.set(C,re)}onChildOutletDestroyed(C){const O=this.getContext(C);O&&(O.outlet=null,O.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let O=this.getContext(C);return O||(O=new Li,this.contexts.set(C,O)),O}getContext(C){return this.contexts.get(C)||null}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();class Q{constructor(D){this._root=D}get root(){return this._root.value}parent(D){const M=this.pathFromRoot(D);return M.length>1?M[M.length-2]:null}children(D){const M=me(D,this._root);return M?M.children.map(C=>C.value):[]}firstChild(D){const M=me(D,this._root);return M&&M.children.length>0?M.children[0].value:null}siblings(D){const M=P(D,this._root);return M.length<2?[]:M[M.length-2].children.map(O=>O.value).filter(O=>O!==D)}pathFromRoot(D){return P(D,this._root).map(M=>M.value)}}function me(I,D){if(I===D.value)return D;for(const M of D.children){const C=me(I,M);if(C)return C}return null}function P(I,D){if(I===D.value)return[D];for(const M of D.children){const C=P(I,M);if(C.length)return C.unshift(D),C}return[]}class _e{constructor(D,M){this.value=D,this.children=M}toString(){return`TreeNode(${this.value})`}}function st(I){const D={};return I&&I.children.forEach(M=>D[M.value.outlet]=M),D}class mr extends Q{constructor(D,M){super(D),this.snapshot=M,ut(this,D)}toString(){return this.snapshot.toString()}}function Ei(I){const D=function H(I){const re=new $e([],{},{},"",{},wn,I,null,{});return new pt("",new _e(re,[]))}(I),M=new Ge.t([new Mr("",{})]),C=new Ge.t({}),O=new Ge.t({}),re=new Ge.t({}),Ae=new Ge.t(""),Ct=new le(M,C,re,Ae,O,wn,I,D.root);return Ct.snapshot=D.root,new mr(new _e(Ct,[]),D)}class le{constructor(D,M,C,O,re,Ae,Ct,an){var Pt,Nn;this.urlSubject=D,this.paramsSubject=M,this.queryParamsSubject=C,this.fragmentSubject=O,this.dataSubject=re,this.outlet=Ae,this.component=Ct,this._futureSnapshot=an,this.title=null!==(Pt=null===(Nn=this.dataSubject)||void 0===Nn?void 0:Nn.pipe((0,zt.T)(br=>br[or])))&&void 0!==Pt?Pt:(0,te.of)(void 0),this.url=D,this.params=M,this.queryParams=C,this.fragment=O,this.data=re}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(){var D;return null!==(D=this._paramMap)&&void 0!==D||(this._paramMap=this.params.pipe((0,zt.T)(M=>je(M)))),this._paramMap}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=this.queryParams.pipe((0,zt.T)(M=>je(M)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Se(I,D,M="emptyOnly"){var C;let O;const{routeConfig:re}=I;var Ae;return O=null===D||"always"!==M&&""!==(null==re?void 0:re.path)&&(D.component||null!==(C=D.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(Ae=I._resolvedData)&&void 0!==Ae?Ae:{}}}:{params:{...D.params,...I.params},data:{...D.data,...I.data},resolve:{...I.data,...D.data,...null==re?void 0:re.data,...I._resolvedData}},re&&ln(re)&&(O.resolve[or]=re.title),O}class $e{get title(){var D;return null===(D=this.data)||void 0===D?void 0:D[or]}constructor(D,M,C,O,re,Ae,Ct,an,Pt){this.url=D,this.params=M,this.queryParams=C,this.fragment=O,this.data=re,this.outlet=Ae,this.component=Ct,this.routeConfig=an,this._resolve=Pt}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(){var D;return null!==(D=this._paramMap)&&void 0!==D||(this._paramMap=je(this.params)),this._paramMap}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=je(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pt extends Q{constructor(D,M){super(M),this.url=D,ut(this,M)}toString(){return Bt(this._root)}}function ut(I,D){D.value._routerState=I,D.children.forEach(M=>ut(I,M))}function Bt(I){const D=I.children.length>0?` { ${I.children.map(Bt).join(", ")} } `:"";return`${I.value}${D}`}function Qt(I){if(I.snapshot){const D=I.snapshot,M=I._futureSnapshot;I.snapshot=M,Jt(D.queryParams,M.queryParams)||I.queryParamsSubject.next(M.queryParams),D.fragment!==M.fragment&&I.fragmentSubject.next(M.fragment),Jt(D.params,M.params)||I.paramsSubject.next(M.params),function Ft(I,D){if(I.length!==D.length)return!1;for(let M=0;MJt(M.parameters,D[C].parameters))}(I.url,D.url);return M&&!(!I.parent!=!D.parent)&&(!I.parent||Zt(I.parent,D.parent))}function ln(I){return"string"==typeof I.title||null===I.title}let Sn=(()=>{var I;class D{constructor(){this.activated=null,this._activatedRoute=null,this.name=wn,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(S),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(Gn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:O,previousValue:re}=C.name;if(O)return;this.isTrackedInParentContexts(re)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(re)),this.initializeOutletWithName()}}ngOnDestroy(){var C;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(C=this.inputBinder)||void 0===C||C.unsubscribeFromRouteData(this)}isTrackedInParentContexts(C){var O;return(null===(O=this.parentContexts.getContext(C))||void 0===O?void 0:O.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const C=this.parentContexts.getContext(this.name);null!=C&&C.route&&(C.attachRef?this.attach(C.attachRef,C.route):this.activateWith(C.route,C.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const C=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(C.instance),C}attach(C,O){var re;this.activated=C,this._activatedRoute=O,this.location.insert(C.hostView),null===(re=this.inputBinder)||void 0===re||re.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(C.instance)}deactivate(){if(this.activated){const C=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(C)}}activateWith(C,O){var re;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=C;const Ae=this.location,an=C.snapshot.component,Pt=this.parentContexts.getOrCreateContext(this.name).children,Nn=new xn(C,Pt,Ae.injector);this.activated=Ae.createComponent(an,{index:Ae.length,injector:Nn,environmentInjector:null!=O?O:this.environmentInjector}),this.changeDetector.markForCheck(),null===(re=this.inputBinder)||void 0===re||re.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275dir=c.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),D})();class xn{__ngOutletInjector(D){return new xn(this.route,this.childContexts,D)}constructor(D,M,C){this.route=D,this.childContexts=M,this.parent=C}get(D,M){return D===le?this.route:D===S?this.childContexts:this.parent.get(D,M)}}const Gn=new c.nKC("");let Rn=(()=>{var I;class D{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var O;null===(O=this.outletDataSubscriptions.get(C))||void 0===O||O.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:O}=C,re=(0,Qe.z)([O.queryParams,O.params,O.data]).pipe((0,Et.n)(([Ae,Ct,an],Pt)=>(an={...Ae,...Ct,...an},0===Pt?(0,te.of)(an):Promise.resolve(an)))).subscribe(Ae=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==O||null===O.component)return void this.unsubscribeFromRouteData(C);const Ct=(0,c.HJs)(O.component);if(Ct)for(const{templateName:an}of Ct.inputs)C.activatedComponentRef.setInput(an,Ae[an]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,re)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac}),D})();function Tr(I,D,M){if(M&&I.shouldReuseRoute(D.value,M.value.snapshot)){const C=M.value;C._futureSnapshot=D.value;const O=function dr(I,D,M){return D.children.map(C=>{for(const O of M.children)if(I.shouldReuseRoute(C.value,O.value.snapshot))return Tr(I,C,O);return Tr(I,C)})}(I,D,M);return new _e(C,O)}{if(I.shouldAttach(D.value)){const re=I.retrieve(D.value);if(null!==re){const Ae=re.route;return Ae.value._futureSnapshot=D.value,Ae.children=D.children.map(Ct=>Tr(I,Ct)),Ae}}const C=function yi(I){return new le(new Ge.t(I.url),new Ge.t(I.params),new Ge.t(I.queryParams),new Ge.t(I.fragment),new Ge.t(I.data),I.outlet,I.component,I)}(D.value),O=D.children.map(re=>Tr(I,re));return new _e(C,O)}}const bi="ngNavigationCancelingError";function Ai(I,D){const{redirectTo:M,navigationBehaviorOptions:C}=Mi(D)?{redirectTo:D,navigationBehaviorOptions:void 0}:D,O=no(!1,Er.Redirect);return O.url=M,O.navigationBehaviorOptions=C,O}function no(I,D){const M=new Error(`NavigationCancelingError: ${I||""}`);return M[bi]=!0,M.cancellationCode=D,M}function Dr(I){return!!I&&I[bi]}let ui=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=c.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(C,O){1&C&&c.nrm(0,"router-outlet")},dependencies:[Sn],encapsulation:2}),D})();function Us(I){const D=I.children&&I.children.map(Us),M=D?{...I,children:D}:{...I};return!M.component&&!M.loadComponent&&(D||M.loadChildren)&&M.outlet&&M.outlet!==wn&&(M.component=ui),M}function so(I){return I.outlet||wn}function gs(I){var D;if(!I)return null;if(null!==(D=I.routeConfig)&&void 0!==D&&D._injector)return I.routeConfig._injector;for(let M=I.parent;M;M=M.parent){const C=M.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(D,M,C,O,re){this.routeReuseStrategy=D,this.futureState=M,this.currState=C,this.forwardEvent=O,this.inputBindingEnabled=re}activate(D){const M=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(M,C,D),Qt(this.futureState.root),this.activateChildRoutes(M,C,D)}deactivateChildRoutes(D,M,C){const O=st(M);D.children.forEach(re=>{const Ae=re.value.outlet;this.deactivateRoutes(re,O[Ae],C),delete O[Ae]}),Object.values(O).forEach(re=>{this.deactivateRouteAndItsChildren(re,C)})}deactivateRoutes(D,M,C){const O=D.value,re=M?M.value:null;if(O===re)if(O.component){const Ae=C.getContext(O.outlet);Ae&&this.deactivateChildRoutes(D,M,Ae.children)}else this.deactivateChildRoutes(D,M,C);else re&&this.deactivateRouteAndItsChildren(M,C)}deactivateRouteAndItsChildren(D,M){D.value.component&&this.routeReuseStrategy.shouldDetach(D.value.snapshot)?this.detachAndStoreRouteSubtree(D,M):this.deactivateRouteAndOutlet(D,M)}detachAndStoreRouteSubtree(D,M){const C=M.getContext(D.value.outlet),O=C&&D.value.component?C.children:M,re=st(D);for(const Ae of Object.values(re))this.deactivateRouteAndItsChildren(Ae,O);if(C&&C.outlet){const Ae=C.outlet.detach(),Ct=C.children.onOutletDeactivated();this.routeReuseStrategy.store(D.value.snapshot,{componentRef:Ae,route:D,contexts:Ct})}}deactivateRouteAndOutlet(D,M){const C=M.getContext(D.value.outlet),O=C&&D.value.component?C.children:M,re=st(D);for(const Ae of Object.values(re))this.deactivateRouteAndItsChildren(Ae,O);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(D,M,C){const O=st(M);D.children.forEach(re=>{this.activateRoutes(re,O[re.value.outlet],C),this.forwardEvent(new Lo(re.value.snapshot))}),D.children.length&&this.forwardEvent(new _i(D.value.snapshot))}activateRoutes(D,M,C){const O=D.value,re=M?M.value:null;if(Qt(O),O===re)if(O.component){const Ae=C.getOrCreateContext(O.outlet);this.activateChildRoutes(D,M,Ae.children)}else this.activateChildRoutes(D,M,C);else if(O.component){const Ae=C.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const Ct=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),Ae.children.onOutletReAttached(Ct.contexts),Ae.attachRef=Ct.componentRef,Ae.route=Ct.route.value,Ae.outlet&&Ae.outlet.attach(Ct.componentRef,Ct.route.value),Qt(Ct.route.value),this.activateChildRoutes(D,null,Ae.children)}else{const Ct=gs(O.snapshot);Ae.attachRef=null,Ae.route=O,Ae.injector=Ct,Ae.outlet&&Ae.outlet.activateWith(O,Ae.injector),this.activateChildRoutes(D,null,Ae.children)}}else this.activateChildRoutes(D,null,C)}}class ca{constructor(D){this.path=D,this.route=this.path[this.path.length-1]}}class Qo{constructor(D,M){this.component=D,this.route=M}}function bs(I,D,M){const C=I._root;return zi(C,D?D._root:null,M,[C.value])}function So(I,D){const M=Symbol(),C=D.get(I,M);return C===M?"function"!=typeof I||(0,c.LfX)(I)?D.get(I):I:C}function zi(I,D,M,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const re=st(D);return I.children.forEach(Ae=>{(function da(I,D,M,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const re=I.value,Ae=D?D.value:null,Ct=M?M.getContext(I.value.outlet):null;if(Ae&&re.routeConfig===Ae.routeConfig){const an=function ol(I,D,M){if("function"==typeof M)return M(I,D);switch(M){case"pathParamsChange":return!_r(I.url,D.url);case"pathParamsOrQueryParamsChange":return!_r(I.url,D.url)||!Jt(I.queryParams,D.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Zt(I,D)||!Jt(I.queryParams,D.queryParams);default:return!Zt(I,D)}}(Ae,re,re.routeConfig.runGuardsAndResolvers);an?O.canActivateChecks.push(new ca(C)):(re.data=Ae.data,re._resolvedData=Ae._resolvedData),zi(I,D,re.component?Ct?Ct.children:null:M,C,O),an&&Ct&&Ct.outlet&&Ct.outlet.isActivated&&O.canDeactivateChecks.push(new Qo(Ct.outlet.component,Ae))}else Ae&&j(D,Ct,O),O.canActivateChecks.push(new ca(C)),zi(I,null,re.component?Ct?Ct.children:null:M,C,O)})(Ae,re[Ae.value.outlet],M,C.concat([Ae.value]),O),delete re[Ae.value.outlet]}),Object.entries(re).forEach(([Ae,Ct])=>j(Ct,M.getContext(Ae),O)),O}function j(I,D,M){const C=st(I),O=I.value;Object.entries(C).forEach(([re,Ae])=>{j(Ae,O.component?D?D.children.getContext(re):null:D,M)}),M.canDeactivateChecks.push(new Qo(O.component&&D&&D.outlet&&D.outlet.isActivated?D.outlet.component:null,O))}function N(I){return"function"==typeof I}function Zi(I){return I instanceof Ee||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,Et.n)(I=>(0,Qe.z)(I.map(D=>D.pipe((0,Be.s)(1),function tn(...I){const D=(0,It.lI)(I);return(0,He.N)((M,C)=>{(D?at(I,M,D):at(I,M)).subscribe(C)})}(ao)))).pipe((0,zt.T)(D=>{for(const M of D)if(!0!==M){if(M===ao)return ao;if(!1===M||M instanceof er)return M}return!0}),(0,Ze.p)(D=>D!==ao),(0,Be.s)(1)))}function cr(I){return(0,ft.F)((0,se.M)(D=>{if(Mi(D))throw Ai(0,D)}),(0,zt.T)(D=>!0===D))}class xi{constructor(D){this.segmentGroup=D||null}}class ro extends Error{constructor(D){super(),this.urlTree=D}}function oi(I){return yt(new xi(I))}class Ll{constructor(D,M){this.urlSerializer=D,this.urlTree=M}lineralizeSegments(D,M){let C=[],O=M.root;for(;;){if(C=C.concat(O.segments),0===O.numberOfChildren)return(0,te.of)(C);if(O.numberOfChildren>1||!O.children[wn])return yt(new c.wOt(4e3,!1));O=O.children[wn]}}applyRedirectCommands(D,M,C){const O=this.applyRedirectCreateUrlTree(M,this.urlSerializer.parse(M),D,C);if(M.startsWith("/"))throw new ro(O);return O}applyRedirectCreateUrlTree(D,M,C,O){const re=this.createSegmentGroup(D,M.root,C,O);return new er(re,this.createQueryParams(M.queryParams,this.urlTree.queryParams),M.fragment)}createQueryParams(D,M){const C={};return Object.entries(D).forEach(([O,re])=>{if("string"==typeof re&&re.startsWith(":")){const Ct=re.substring(1);C[O]=M[Ct]}else C[O]=re}),C}createSegmentGroup(D,M,C,O){const re=this.createSegments(D,M.segments,C,O);let Ae={};return Object.entries(M.children).forEach(([Ct,an])=>{Ae[Ct]=this.createSegmentGroup(D,an,C,O)}),new Pn(re,Ae)}createSegments(D,M,C,O){return M.map(re=>re.path.startsWith(":")?this.findPosParam(D,re,O):this.findOrReturn(re,C))}findPosParam(D,M,C){const O=C[M.path.substring(1)];if(!O)throw new c.wOt(4001,!1);return O}findOrReturn(D,M){let C=0;for(const O of M){if(O.path===D.path)return M.splice(C),O;C++}return D}}const Sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,D,M,C,O){const re=ys(I,D,M);return re.matched?(C=function Xo(I,D){var M;return I.providers&&!I._injector&&(I._injector=(0,c.Ol2)(I.providers,D,`Route: ${I.path}`)),null!==(M=I._injector)&&void 0!==M?M:D}(D,C),function Vi(I,D,M,C){const O=D.canMatch;if(!O||0===O.length)return(0,te.of)(!0);const re=O.map(Ae=>{const Ct=So(Ae,I);return An(function hr(I){return I&&N(I.canMatch)}(Ct)?Ct.canMatch(D,M):(0,c.N4e)(I,()=>Ct(D,M)))});return(0,te.of)(re).pipe(eo(),cr())}(C,D,M).pipe((0,zt.T)(Ae=>!0===Ae?re:{...Sr}))):(0,te.of)(re)}function ys(I,D,M){var C,O;if("**"===D.path)return function ka(I){return{matched:!0,parameters:I.length>0?Cn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(M);if(""===D.path)return"full"===D.pathMatch&&(I.hasChildren()||M.length>0)?{...Sr}:{matched:!0,consumedSegments:[],remainingSegments:M,parameters:{},positionalParamSegments:{}};const Ae=(D.matcher||bt)(M,I,D);if(!Ae)return{...Sr};const Ct={};Object.entries(null!==(C=Ae.posParams)&&void 0!==C?C:{}).forEach(([Pt,Nn])=>{Ct[Pt]=Nn.path});const an=Ae.consumed.length>0?{...Ct,...Ae.consumed[Ae.consumed.length-1].parameters}:Ct;return{matched:!0,consumedSegments:Ae.consumed,remainingSegments:M.slice(Ae.consumed.length),parameters:an,positionalParamSegments:null!==(O=Ae.posParams)&&void 0!==O?O:{}}}function js(I,D,M,C){return M.length>0&&function Vl(I,D,M){return M.some(C=>fa(I,D,C)&&so(C)!==wn)}(I,M,C)?{segmentGroup:new Pn(D,Fa(C,new Pn(M,I.children))),slicedSegments:[]}:0===M.length&&function Ul(I,D,M){return M.some(C=>fa(I,D,C))}(I,M,C)?{segmentGroup:new Pn(I.segments,cl(I,M,C,I.children)),slicedSegments:M}:{segmentGroup:new Pn(I.segments,I.children),slicedSegments:M}}function cl(I,D,M,C){const O={};for(const re of M)if(fa(I,D,re)&&!C[so(re)]){const Ae=new Pn([],{});O[so(re)]=Ae}return{...C,...O}}function Fa(I,D){const M={};M[wn]=D;for(const C of I)if(""===C.path&&so(C)!==wn){const O=new Pn([],{});M[so(C)]=O}return M}function fa(I,D,M){return(!(I.hasChildren()||D.length>0)||"full"!==M.pathMatch)&&""===M.path}class Zo{}class es{constructor(D,M,C,O,re,Ae,Ct){this.injector=D,this.configLoader=M,this.rootComponentType=C,this.config=O,this.urlTree=re,this.paramsInheritanceStrategy=Ae,this.urlSerializer=Ct,this.applyRedirects=new Ll(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(D){return new c.wOt(4002,`'${D.segmentGroup}'`)}recognize(){const D=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(D).pipe((0,zt.T)(M=>{const C=new $e([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},wn,this.rootComponentType,null,{}),O=new _e(C,M),re=new pt("",O),Ae=function mi(I,D,M=null,C=null){return _t(Nt(I),D,M,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return Ae.queryParams=this.urlTree.queryParams,re.url=this.urlSerializer.serialize(Ae),this.inheritParamsAndData(re._root,null),{state:re,tree:Ae}}))}match(D){return this.processSegmentGroup(this.injector,this.config,D,wn).pipe(be(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof xi?this.noMatchError(C):C}))}inheritParamsAndData(D,M){const C=D.value,O=Se(C,M,this.paramsInheritanceStrategy);C.params=Object.freeze(O.params),C.data=Object.freeze(O.data),D.children.forEach(re=>this.inheritParamsAndData(re,C))}processSegmentGroup(D,M,C,O){return 0===C.segments.length&&C.hasChildren()?this.processChildren(D,M,C):this.processSegment(D,M,C,C.segments,O,!0).pipe((0,zt.T)(re=>re instanceof _e?[re]:[]))}processChildren(D,M,C){const O=[];for(const re of Object.keys(C.children))"primary"===re?O.unshift(re):O.push(re);return(0,Ie.H)(O).pipe((0,ie.H)(re=>{const Ae=C.children[re],Ct=function ua(I,D){const M=I.filter(C=>so(C)===D);return M.push(...I.filter(C=>so(C)!==D)),M}(M,re);return this.processSegmentGroup(D,Ct,Ae,re)}),function nn(I,D){return(0,He.N)(function Xe(I,D,M,C,O){return(re,Ae)=>{let Ct=M,an=D,Pt=0;re.subscribe((0,Je._)(Ae,Nn=>{const br=Pt++;an=Ct?I(an,Nn,br):(Ct=!0,Nn),C&&Ae.next(an)},O&&(()=>{Ct&&Ae.next(an),Ae.complete()})))}}(I,D,arguments.length>=2,!0))}((re,Ae)=>(re.push(...Ae),re)),De(null),function rn(I,D){const M=arguments.length>=2;return C=>C.pipe(I?(0,Ze.p)((O,re)=>I(O,re,C)):ze.D,En(1),M?De(D):z(()=>new Ee))}(),(0,Ue.Z)(re=>{if(null===re)return oi(C);const Ae=Uo(re);return function wu(I){I.sort((D,M)=>D.value.outlet===wn?-1:M.value.outlet===wn?1:D.value.outlet.localeCompare(M.value.outlet))}(Ae),(0,te.of)(Ae)}))}processSegment(D,M,C,O,re,Ae){return(0,Ie.H)(M).pipe((0,ie.H)(Ct=>{var an;return this.processSegmentAgainstRoute(null!==(an=Ct._injector)&&void 0!==an?an:D,M,Ct,C,O,re,Ae).pipe(be(Pt=>{if(Pt instanceof xi)return(0,te.of)(null);throw Pt}))}),q(Ct=>!!Ct),be(Ct=>{if(Zi(Ct))return function ws(I,D,M){return 0===D.length&&!I.children[M]}(C,O,re)?(0,te.of)(new Zo):oi(C);throw Ct}))}processSegmentAgainstRoute(D,M,C,O,re,Ae,Ct){return function Is(I,D,M,C){return!!(so(I)===C||C!==wn&&fa(D,M,I))&&ys(D,I,M).matched}(C,O,re,Ae)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(D,O,C,re,Ae):this.allowRedirects&&Ct?this.expandSegmentAgainstRouteUsingRedirect(D,O,M,C,re,Ae):oi(O):oi(O)}expandSegmentAgainstRouteUsingRedirect(D,M,C,O,re,Ae){const{matched:Ct,consumedSegments:an,positionalParamSegments:Pt,remainingSegments:Nn}=ys(M,O,re);if(!Ct)return oi(M);O.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const br=this.applyRedirects.applyRedirectCommands(an,O.redirectTo,Pt);return this.applyRedirects.lineralizeSegments(O,br).pipe((0,Ue.Z)(ki=>this.processSegment(D,C,M,ki.concat(Nn),Ae,!1)))}matchSegmentAgainstRoute(D,M,C,O,re){const Ae=ul(M,C,O,D);return"**"===C.path&&(M.children={}),Ae.pipe((0,Et.n)(Ct=>{var an;return Ct.matched?(D=null!==(an=C._injector)&&void 0!==an?an:D,this.getChildConfig(D,C,O).pipe((0,Et.n)(({routes:Pt})=>{var Nn,br,ki;const ti=null!==(Nn=C._loadedInjector)&&void 0!==Nn?Nn:D,{consumedSegments:Xi,remainingSegments:jo,parameters:za}=Ct,Ha=new $e(Xi,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(br=null!==(ki=C.component)&&void 0!==ki?ki:C._loadedComponent)&&void 0!==br?br:null,C,function Ni(I){return I.resolve||{}}(C)),{segmentGroup:Io,slicedSegments:hl}=js(M,Xi,jo,Pt);if(0===hl.length&&Io.hasChildren())return this.processChildren(ti,Pt,Io).pipe((0,zt.T)(Ps=>null===Ps?null:new _e(Ha,Ps)));if(0===Pt.length&&0===hl.length)return(0,te.of)(new _e(Ha,[]));const Wl=so(C)===re;return this.processSegment(ti,Pt,Io,hl,Wl?wn:re,!0).pipe((0,zt.T)(Ps=>new _e(Ha,Ps instanceof _e?[Ps]:[])))}))):oi(M)}))}getChildConfig(D,M,C){return M.children?(0,te.of)({routes:M.children,injector:D}):M.loadChildren?void 0!==M._loadedRoutes?(0,te.of)({routes:M._loadedRoutes,injector:M._loadedInjector}):function ha(I,D,M,C){const O=D.canLoad;if(void 0===O||0===O.length)return(0,te.of)(!0);const re=O.map(Ae=>{const Ct=So(Ae,I);return An(function G(I){return I&&N(I.canLoad)}(Ct)?Ct.canLoad(D,M):(0,c.N4e)(I,()=>Ct(D,M)))});return(0,te.of)(re).pipe(eo(),cr())}(D,M,C).pipe((0,Ue.Z)(O=>O?this.configLoader.loadChildren(D,M).pipe((0,se.M)(re=>{M._loadedRoutes=re.routes,M._loadedInjector=re.injector})):function _s(I){return yt(no(!1,Er.GuardRejected))}())):(0,te.of)({routes:[],injector:D})}}function $l(I){const D=I.value.routeConfig;return D&&""===D.path}function Uo(I){const D=[],M=new Set;for(const C of I){if(!$l(C)){D.push(C);continue}const O=D.find(re=>C.value.routeConfig===re.value.routeConfig);void 0!==O?(O.children.push(...C.children),M.add(O)):D.push(C)}for(const C of M){const O=Uo(C.children);D.push(new _e(C.value,O))}return D.filter(C=>!M.has(C))}function ga(I){const D=I.children.map(M=>ga(M)).flat();return[I,...D]}function ma(I){return(0,Et.n)(D=>{const M=I(D);return M?(0,Ie.H)(M).pipe((0,zt.T)(()=>D)):(0,te.of)(D)})}let Ms=(()=>{var I;class D{buildTitle(C){let O,re=C.root;for(;void 0!==re;){var Ae;O=null!==(Ae=this.getResolvedTitleForRoute(re))&&void 0!==Ae?Ae:O,re=re.children.find(Ct=>Ct.outlet===wn)}return O}getResolvedTitleForRoute(C){return C.data[or]}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(lo),providedIn:"root"}),D})(),lo=(()=>{var I;class D extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const O=this.buildTitle(C);void 0!==O&&this.title.setTitle(O)}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO(Xn.hE))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const Hs=new c.nKC("",{providedIn:"root",factory:()=>({})}),Es=new c.nKC("");let T=(()=>{var I;class D{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,te.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const O=An(C.loadComponent()).pipe((0,zt.T)(F),(0,se.M)(Ae=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=Ae}),(0,Vn.j)(()=>{this.componentLoaders.delete(C)})),re=new Ce(O,()=>new nt.B).pipe(mt());return this.componentLoaders.set(C,re),re}loadChildren(C,O){if(this.childrenLoaders.get(O))return this.childrenLoaders.get(O);if(O._loadedRoutes)return(0,te.of)({routes:O._loadedRoutes,injector:O._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(O);const Ae=function B(I,D,M,C){return An(I.loadChildren()).pipe((0,zt.T)(F),(0,Ue.Z)(O=>O instanceof c.Co$||Array.isArray(O)?(0,te.of)(O):(0,Ie.H)(D.compileModuleAsync(O))),(0,zt.T)(O=>{C&&C(I);let re,Ae,Ct=!1;return Array.isArray(O)?(Ae=O,!0):(re=O.create(M).injector,Ae=re.get(Es,[],{optional:!0,self:!0}).flat()),{routes:Ae.map(Us),injector:re}}))}(O,this.compiler,C,this.onLoadEndListener).pipe((0,Vn.j)(()=>{this.childrenLoaders.delete(O)})),Ct=new Ce(Ae,()=>new nt.B).pipe(mt());return this.childrenLoaders.set(O,Ct),Ct}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();function F(I){return function Me(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let pe=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(Le),providedIn:"root"}),D})(),Le=(()=>{var I;class D{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,O){return C}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const $t=new c.nKC(""),mn=new c.nKC("");function Kn(I,D,M){const C=I.get(mn),O=I.get(Rt.qQ);return I.get(c.SKi).runOutsideAngular(()=>{if(!O.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(Pt=>setTimeout(Pt));let re;const Ae=new Promise(Pt=>{re=Pt}),Ct=O.startViewTransition(()=>(re(),function Bn(I){return new Promise(D=>{(0,c.mal)(D,{injector:I})})}(I))),{onViewTransitionCreated:an}=C;return an&&(0,c.N4e)(I,()=>an({transition:Ct,from:D,to:M})),Ae})}let Xr=(()=>{var I;class D{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new nt.B,this.transitionAbortSubject=new nt.B,this.configLoader=(0,c.WQX)(T),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(Zr),this.rootContexts=(0,c.WQX)(S),this.location=(0,c.WQX)(Rt.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(Gn,{optional:!0}),this.titleStrategy=(0,c.WQX)(Ms),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(pe),this.createViewTransition=(0,c.WQX)($t,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,te.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=re=>this.events.next(new ur(re)),this.configLoader.onLoadStartListener=re=>this.events.next(new li(re))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var O;const re=++this.navigationId;null===(O=this.transitions)||void 0===O||O.next({...this.transitions.value,...C,id:re})}setupNavigations(C,O,re){return this.transitions=new Ge.t({id:0,currentUrlTree:O,currentRawUrl:O,extractedUrl:this.urlHandlingStrategy.extract(O),urlAfterRedirects:this.urlHandlingStrategy.extract(O),rawUrl:O,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ir,restoredState:null,currentSnapshot:re.snapshot,targetSnapshot:null,currentRouterState:re,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ze.p)(Ae=>0!==Ae.id),(0,zt.T)(Ae=>({...Ae,extractedUrl:this.urlHandlingStrategy.extract(Ae.rawUrl)})),(0,Et.n)(Ae=>{let Ct=!1,an=!1;return(0,te.of)(Ae).pipe((0,Et.n)(Pt=>{var Nn;if(this.navigationId>Ae.id)return this.cancelNavigationTransition(Ae,"",Er.SupersededByNewNavigation),Pe.w;this.currentTransition=Ae,this.currentNavigation={id:Pt.id,initialUrl:Pt.rawUrl,extractedUrl:Pt.extractedUrl,trigger:Pt.source,extras:Pt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const br=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),ki=null!==(Nn=Pt.extras.onSameUrlNavigation)&&void 0!==Nn?Nn:C.onSameUrlNavigation;if(!br&&"reload"!==ki){const ti="";return this.events.next(new kn(Pt.id,this.urlSerializer.serialize(Pt.rawUrl),ti,pr.IgnoredSameUrlNavigation)),Pt.resolve(null),Pe.w}if(this.urlHandlingStrategy.shouldProcessUrl(Pt.rawUrl))return(0,te.of)(Pt).pipe((0,Et.n)(ti=>{var Xi,jo;const za=null===(Xi=this.transitions)||void 0===Xi?void 0:Xi.getValue();return this.events.next(new Wr(ti.id,this.urlSerializer.serialize(ti.extractedUrl),ti.source,ti.restoredState)),za!==(null===(jo=this.transitions)||void 0===jo?void 0:jo.getValue())?Pe.w:Promise.resolve(ti)}),function pa(I,D,M,C,O,re){return(0,Ue.Z)(Ae=>function Ss(I,D,M,C,O,re,Ae="emptyOnly"){return new es(I,D,M,C,O,Ae,re).recognize()}(I,D,M,C,Ae.extractedUrl,O,re).pipe((0,zt.T)(({state:Ct,tree:an})=>({...Ae,targetSnapshot:Ct,urlAfterRedirects:an}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,se.M)(ti=>{Ae.targetSnapshot=ti.targetSnapshot,Ae.urlAfterRedirects=ti.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ti.urlAfterRedirects};const Xi=new _o(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(Xi)}));if(br&&this.urlHandlingStrategy.shouldProcessUrl(Pt.currentRawUrl)){const{id:ti,extractedUrl:Xi,source:jo,restoredState:za,extras:Ha}=Pt,Io=new Wr(ti,this.urlSerializer.serialize(Xi),jo,za);this.events.next(Io);const hl=Ei(this.rootComponentType).snapshot;return this.currentTransition=Ae={...Pt,targetSnapshot:hl,urlAfterRedirects:Xi,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Xi,(0,te.of)(Ae)}{const ti="";return this.events.next(new kn(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),ti,pr.IgnoredByUrlHandlingStrategy)),Pt.resolve(null),Pe.w}}),(0,se.M)(Pt=>{const Nn=new ai(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects),Pt.targetSnapshot);this.events.next(Nn)}),(0,zt.T)(Pt=>(this.currentTransition=Ae={...Pt,guards:bs(Pt.targetSnapshot,Pt.currentSnapshot,this.rootContexts)},Ae)),function Jo(I,D){return(0,Ue.Z)(M=>{const{targetSnapshot:C,currentSnapshot:O,guards:{canActivateChecks:re,canDeactivateChecks:Ae}}=M;return 0===Ae.length&&0===re.length?(0,te.of)({...M,guardsResult:!0}):function Na(I,D,M,C){return(0,Ie.H)(I).pipe((0,Ue.Z)(O=>function ls(I,D,M,C,O){const re=D&&D.routeConfig?D.routeConfig.canDeactivate:null;if(!re||0===re.length)return(0,te.of)(!0);const Ae=re.map(Ct=>{var an;const Pt=null!==(an=gs(D))&&void 0!==an?an:O,Nn=So(Ct,Pt);return An(function Un(I){return I&&N(I.canDeactivate)}(Nn)?Nn.canDeactivate(I,D,M,C):(0,c.N4e)(Pt,()=>Nn(I,D,M,C))).pipe(q())});return(0,te.of)(Ae).pipe(eo())}(O.component,O.route,M,D,C)),q(O=>!0!==O,!0))}(Ae,C,O,I).pipe((0,Ue.Z)(Ct=>Ct&&function ve(I){return"boolean"==typeof I}(Ct)?function vs(I,D,M,C){return(0,Ie.H)(D).pipe((0,ie.H)(O=>at(function Oa(I,D){return null!==I&&D&&D(new Kr(I)),(0,te.of)(!0)}(O.route.parent,C),function Bs(I,D){return null!==I&&D&&D(new Yn(I)),(0,te.of)(!0)}(O.route,C),function al(I,D,M){const C=D[D.length-1],re=D.slice(0,D.length-1).reverse().map(Ae=>function Yo(I){const D=I.routeConfig?I.routeConfig.canActivateChild:null;return D&&0!==D.length?{node:I,guards:D}:null}(Ae)).filter(Ae=>null!==Ae).map(Ae=>xt(()=>{const Ct=Ae.guards.map(an=>{var Pt;const Nn=null!==(Pt=gs(Ae.node))&&void 0!==Pt?Pt:M,br=So(an,Nn);return An(function fn(I){return I&&N(I.canActivateChild)}(br)?br.canActivateChild(C,I):(0,c.N4e)(Nn,()=>br(C,I))).pipe(q())});return(0,te.of)(Ct).pipe(eo())}));return(0,te.of)(re).pipe(eo())}(I,O.path,M),function sl(I,D,M){const C=D.routeConfig?D.routeConfig.canActivate:null;if(!C||0===C.length)return(0,te.of)(!0);const O=C.map(re=>xt(()=>{var Ae;const Ct=null!==(Ae=gs(D))&&void 0!==Ae?Ae:M,an=So(re,Ct);return An(function Re(I){return I&&N(I.canActivate)}(an)?an.canActivate(D,I):(0,c.N4e)(Ct,()=>an(D,I))).pipe(q())}));return(0,te.of)(O).pipe(eo())}(I,O.route,M))),q(O=>!0!==O,!0))}(C,re,I,D):(0,te.of)(Ct)),(0,zt.T)(Ct=>({...M,guardsResult:Ct})))})}(this.environmentInjector,Pt=>this.events.next(Pt)),(0,se.M)(Pt=>{if(Ae.guardsResult=Pt.guardsResult,Mi(Pt.guardsResult))throw Ai(0,Pt.guardsResult);const Nn=new vi(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects),Pt.targetSnapshot,!!Pt.guardsResult);this.events.next(Nn)}),(0,Ze.p)(Pt=>!!Pt.guardsResult||(this.cancelNavigationTransition(Pt,"",Er.GuardRejected),!1)),ma(Pt=>{if(Pt.guards.canActivateChecks.length)return(0,te.of)(Pt).pipe((0,se.M)(Nn=>{const br=new Co(Nn.id,this.urlSerializer.serialize(Nn.extractedUrl),this.urlSerializer.serialize(Nn.urlAfterRedirects),Nn.targetSnapshot);this.events.next(br)}),(0,Et.n)(Nn=>{let br=!1;return(0,te.of)(Nn).pipe(function Bl(I,D){return(0,Ue.Z)(M=>{const{targetSnapshot:C,guards:{canActivateChecks:O}}=M;if(!O.length)return(0,te.of)(M);const re=new Set(O.map(an=>an.route)),Ae=new Set;for(const an of re)if(!Ae.has(an))for(const Pt of ga(an))Ae.add(Pt);let Ct=0;return(0,Ie.H)(Ae).pipe((0,ie.H)(an=>re.has(an)?function La(I,D,M,C){const O=I.routeConfig,re=I._resolve;return void 0!==(null==O?void 0:O.title)&&!ln(O)&&(re[or]=O.title),function zs(I,D,M,C){const O=on(I);if(0===O.length)return(0,te.of)({});const re={};return(0,Ie.H)(O).pipe((0,Ue.Z)(Ae=>function pc(I,D,M,C){var O;const re=null!==(O=gs(D))&&void 0!==O?O:C,Ae=So(I,re);return An(Ae.resolve?Ae.resolve(D,M):(0,c.N4e)(re,()=>Ae(D,M)))}(I[Ae],D,M,C).pipe(q(),(0,se.M)(Ct=>{re[Ae]=Ct}))),En(1),function Mn(I){return(0,zt.T)(()=>I)}(re),be(Ae=>Zi(Ae)?Pe.w:yt(Ae)))}(re,I,D,C).pipe((0,zt.T)(Ae=>(I._resolvedData=Ae,I.data=Se(I,I.parent,M).resolve,null)))}(an,C,I,D):(an.data=Se(an,an.parent,I).resolve,(0,te.of)(void 0))),(0,se.M)(()=>Ct++),En(1),(0,Ue.Z)(an=>Ct===Ae.size?(0,te.of)(M):Pe.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,se.M)({next:()=>br=!0,complete:()=>{br||this.cancelNavigationTransition(Nn,"",Er.NoDataFromResolver)}}))}),(0,se.M)(Nn=>{const br=new Wo(Nn.id,this.urlSerializer.serialize(Nn.extractedUrl),this.urlSerializer.serialize(Nn.urlAfterRedirects),Nn.targetSnapshot);this.events.next(br)}))}),ma(Pt=>{const Nn=br=>{var ki;const ti=[];null!==(ki=br.routeConfig)&&void 0!==ki&&ki.loadComponent&&!br.routeConfig._loadedComponent&&ti.push(this.configLoader.loadComponent(br.routeConfig).pipe((0,se.M)(Xi=>{br.component=Xi}),(0,zt.T)(()=>{})));for(const Xi of br.children)ti.push(...Nn(Xi));return ti};return(0,Qe.z)(Nn(Pt.targetSnapshot.root)).pipe(De(null),(0,Be.s)(1))}),ma(()=>this.afterPreactivation()),(0,Et.n)(()=>{var Pt;const{currentSnapshot:Nn,targetSnapshot:br}=Ae,ki=null===(Pt=this.createViewTransition)||void 0===Pt?void 0:Pt.call(this,this.environmentInjector,Nn.root,br.root);return ki?(0,Ie.H)(ki).pipe((0,zt.T)(()=>Ae)):(0,te.of)(Ae)}),(0,zt.T)(Pt=>{const Nn=function Ur(I,D,M){const C=Tr(I,D._root,M?M._root:void 0);return new mr(C,D)}(C.routeReuseStrategy,Pt.targetSnapshot,Pt.currentRouterState);return this.currentTransition=Ae={...Pt,targetRouterState:Nn},this.currentNavigation.targetRouterState=Nn,Ae}),(0,se.M)(()=>{this.events.next(new Do)}),((I,D,M,C)=>(0,zt.T)(O=>(new $s(D,O.targetRouterState,O.currentRouterState,M,C).activate(I),O)))(this.rootContexts,C.routeReuseStrategy,Pt=>this.events.next(Pt),this.inputBindingEnabled),(0,Be.s)(1),(0,se.M)({next:Pt=>{var Nn;Ct=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Fr(Pt.id,this.urlSerializer.serialize(Pt.extractedUrl),this.urlSerializer.serialize(Pt.urlAfterRedirects))),null===(Nn=this.titleStrategy)||void 0===Nn||Nn.updateTitle(Pt.targetRouterState.snapshot),Pt.resolve(!0)},complete:()=>{Ct=!0}}),function Zn(I){return(0,He.N)((D,M)=>{(0,gt.Tg)(I).subscribe((0,Je._)(M,()=>M.complete(),qn.l)),!M.closed&&D.subscribe(M)})}(this.transitionAbortSubject.pipe((0,se.M)(Pt=>{throw Pt}))),(0,Vn.j)(()=>{var Pt;!Ct&&!an&&this.cancelNavigationTransition(Ae,"",Er.SupersededByNewNavigation),(null===(Pt=this.currentTransition)||void 0===Pt?void 0:Pt.id)===Ae.id&&(this.currentNavigation=null,this.currentTransition=null)}),be(Pt=>{if(an=!0,Dr(Pt))this.events.next(new ei(Ae.id,this.urlSerializer.serialize(Ae.extractedUrl),Pt.message,Pt.cancellationCode)),function Ko(I){return Dr(I)&&Mi(I.url)}(Pt)?this.events.next(new co(Pt.url)):Ae.resolve(!1);else{var Nn;this.events.next(new Ln(Ae.id,this.urlSerializer.serialize(Ae.extractedUrl),Pt,null!==(Nn=Ae.targetSnapshot)&&void 0!==Nn?Nn:void 0));try{Ae.resolve(C.errorHandler(Pt))}catch(br){this.options.resolveNavigationPromiseOnError?Ae.resolve(!1):Ae.reject(br)}}return Pe.w}))}))}cancelNavigationTransition(C,O,re){const Ae=new ei(C.id,this.urlSerializer.serialize(C.extractedUrl),O,re);this.events.next(Ae),C.resolve(!1)}isUpdatingInternalState(){var C,O;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(O=this.currentTransition)||void 0===O?void 0:O.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,O;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())&&!(null!==(O=this.currentTransition)&&void 0!==O&&O.extras.skipLocationChange)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();function Nr(I){return I!==Ir}let fi=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(Ui),providedIn:"root"}),D})();class qr{shouldDetach(D){return!1}store(D,M){}shouldAttach(D){return!1}retrieve(D){return null}shouldReuseRoute(D,M){return D.routeConfig===M.routeConfig}}let Ui=(()=>{var I;class D extends qr{}return(I=D).\u0275fac=(()=>{let M;return function(O){return(M||(M=c.xGo(I)))(O||I)}})(),I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),si=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(yn),providedIn:"root"}),D})(),yn=(()=>{var I;class D extends si{constructor(){super(...arguments),this.location=(0,c.WQX)(Rt.aZ),this.urlSerializer=(0,c.WQX)(Zr),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(pe),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new er,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ei(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,O;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(O=this.restoredState())||void 0===O?void 0:O.\u0275routerPageId)&&void 0!==C?C:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(C){return this.location.subscribe(O=>{"popstate"===O.type&&C(O.url,O.state)})}handleRouterEvent(C,O){if(C instanceof Wr)this.stateMemento=this.createStateMemento();else if(C instanceof kn)this.rawUrlTree=O.initialUrl;else if(C instanceof _o){if("eager"===this.urlUpdateStrategy&&!O.extras.skipLocationChange){const re=this.urlHandlingStrategy.merge(O.finalUrl,O.initialUrl);this.setBrowserUrl(re,O)}}else C instanceof Do?(this.currentUrlTree=O.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(O.finalUrl,O.initialUrl),this.routerState=O.targetRouterState,"deferred"===this.urlUpdateStrategy&&(O.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,O))):C instanceof ei&&(C.code===Er.GuardRejected||C.code===Er.NoDataFromResolver)?this.restoreHistory(O):C instanceof Ln?this.restoreHistory(O,!0):C instanceof Fr&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,O){const re=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(re)||O.extras.replaceUrl){const Ct={...O.extras.state,...this.generateNgRouterState(O.id,this.browserPageId)};this.location.replaceState(re,"",Ct)}else{const Ae={...O.extras.state,...this.generateNgRouterState(O.id,this.browserPageId+1)};this.location.go(re,"",Ae)}}restoreHistory(C,O=!1){if("computed"===this.canceledNavigationResolution){const Ae=this.currentPageId-this.browserPageId;0!==Ae?this.location.historyGo(Ae):this.currentUrlTree===C.finalUrl&&0===Ae&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(O&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var O;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(O=C.finalUrl)&&void 0!==O?O:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,O){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:O}:{navigationId:C}}}return(I=D).\u0275fac=(()=>{let M;return function(O){return(M||(M=c.xGo(I)))(O||I)}})(),I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();var zn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(zn||{});function ci(I,D){I.events.pipe((0,Ze.p)(M=>M instanceof Fr||M instanceof ei||M instanceof Ln||M instanceof kn),(0,zt.T)(M=>M instanceof Fr||M instanceof kn?zn.COMPLETE:M instanceof ei&&(M.code===Er.Redirect||M.code===Er.SupersededByNewNavigation)?zn.REDIRECTING:zn.FAILED),(0,Ze.p)(M=>M!==zn.REDIRECTING),(0,Be.s)(1)).subscribe(()=>{D()})}function Gi(I){throw I}const wi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $i=(()=>{var I;class D{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,O;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(si),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Xr),this.urlSerializer=(0,c.WQX)(Zr),this.location=(0,c.WQX)(Rt.aZ),this.urlHandlingStrategy=(0,c.WQX)(pe),this._events=new nt.B,this.errorHandler=this.options.errorHandler||Gi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(fi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(O=(0,c.WQX)(Es,{optional:!0}))||void 0===O?void 0:O.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,c.WQX)(Gn,{optional:!0}),this.eventsSubscription=new Ke.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:re=>{this.console.warn(re)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(O=>{try{const re=this.navigationTransitions.currentTransition,Ae=this.navigationTransitions.currentNavigation;if(null!==re&&null!==Ae)if(this.stateManager.handleRouterEvent(O,Ae),O instanceof ei&&O.code!==Er.Redirect&&O.code!==Er.SupersededByNewNavigation)this.navigated=!0;else if(O instanceof Fr)this.navigated=!0;else if(O instanceof co){const Ct=this.urlHandlingStrategy.merge(O.url,re.currentRawUrl),an={info:re.extras.info,skipLocationChange:re.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Nr(re.source)};this.scheduleNavigation(Ct,Ir,null,an,{resolve:re.resolve,reject:re.reject,promise:re.promise})}(function Hi(I){return!(I instanceof Do||I instanceof co)})(O)&&this._events.next(O)}catch(re){this.navigationTransitions.transitionAbortSubject.next(re)}});this.eventsSubscription.add(C)}resetRootComponentType(C){this.routerState.root.component=C,this.navigationTransitions.rootComponentType=C}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ir,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((O,re)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(O,"popstate",re)},0)}))}navigateToSyncWithBrowser(C,O,re){const Ae={replaceUrl:!0},Ct=null!=re&&re.navigationId?re:null;if(re){const Pt={...re};delete Pt.navigationId,delete Pt.\u0275routerPageId,0!==Object.keys(Pt).length&&(Ae.state=Pt)}const an=this.parseUrl(C);this.scheduleNavigation(an,O,Ct,Ae)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(C){this.config=C.map(Us),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(C,O={}){const{relativeTo:re,queryParams:Ae,fragment:Ct,queryParamsHandling:an,preserveFragment:Pt}=O,Nn=Pt?this.currentUrlTree.fragment:Ct;let ki,br=null;switch(an){case"merge":br={...this.currentUrlTree.queryParams,...Ae};break;case"preserve":br=this.currentUrlTree.queryParams;break;default:br=Ae||null}null!==br&&(br=this.removeEmptyProps(br));try{ki=Nt(re?re.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),ki=this.currentUrlTree.root}return _t(ki,C,br,null!=Nn?Nn:null)}navigateByUrl(C,O={skipLocationChange:!1}){const re=Mi(C)?C:this.parseUrl(C),Ae=this.urlHandlingStrategy.merge(re,this.rawUrlTree);return this.scheduleNavigation(Ae,Ir,null,O)}navigate(C,O={skipLocationChange:!1}){return function pi(I){for(let D=0;D(null!=Ae&&(O[re]=Ae),O),{})}scheduleNavigation(C,O,re,Ae,Ct){if(this.disposed)return Promise.resolve(!1);let an,Pt,Nn;Ct?(an=Ct.resolve,Pt=Ct.reject,Nn=Ct.promise):Nn=new Promise((ki,ti)=>{an=ki,Pt=ti});const br=this.pendingTasks.add();return ci(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(br))}),this.navigationTransitions.handleNavigationRequest({source:O,restoredState:re,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:Ae,resolve:an,reject:Pt,promise:Nn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Nn.catch(ki=>Promise.reject(ki))}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),$o=(()=>{var I;class D{constructor(C,O,re,Ae,Ct,an){var Pt;this.router=C,this.route=O,this.tabIndexAttribute=re,this.renderer=Ae,this.el=Ct,this.locationStrategy=an,this.href=null,this.commands=null,this.onChanges=new nt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Nn=null===(Pt=Ct.nativeElement.tagName)||void 0===Pt?void 0:Pt.toLowerCase();this.isAnchorElement="a"===Nn||"area"===Nn,this.isAnchorElement?this.subscription=C.events.subscribe(br=>{br instanceof Fr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(C){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",C)}ngOnChanges(C){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(C){null!=C?(this.commands=Array.isArray(C)?C:[C],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(C,O,re,Ae,Ct){const an=this.urlTree;return!!(null===an||this.isAnchorElement&&(0!==C||O||re||Ae||Ct||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(an,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var C;null===(C=this.subscription)||void 0===C||C.unsubscribe()}updateHref(){var C;const O=this.urlTree;this.href=null!==O&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(O)):null;const re=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",re)}applyAttributeValue(C,O){const re=this.renderer,Ae=this.el.nativeElement;null!==O?re.setAttribute(Ae,C,O):re.removeAttribute(Ae,C)}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})}}return(I=D).\u0275fac=function(C){return new(C||I)(c.rXU($i),c.rXU(le),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Rt.hb))},I.\u0275dir=c.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,O){1&C&&c.bIt("click",function(Ae){return O.onClick(Ae.button,Ae.ctrlKey,Ae.shiftKey,Ae.altKey,Ae.metaKey)}),2&C&&c.BMQ("target",O.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),D})();class gc{}let Ua=(()=>{var I;class D{preload(C,O){return O().pipe(be(()=>(0,te.of)(null)))}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),va=(()=>{var I;class D{constructor(C,O,re,Ae,Ct){this.router=C,this.injector=re,this.preloadingStrategy=Ae,this.loader=Ct}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ze.p)(C=>C instanceof Fr),(0,ie.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,O){const re=[];for(const Pt of O){var Ae,Ct;Pt.providers&&!Pt._injector&&(Pt._injector=(0,c.Ol2)(Pt.providers,C,`Route: ${Pt.path}`));const Nn=null!==(Ae=Pt._injector)&&void 0!==Ae?Ae:C,br=null!==(Ct=Pt._loadedInjector)&&void 0!==Ct?Ct:Nn;var an;(Pt.loadChildren&&!Pt._loadedRoutes&&void 0===Pt.canLoad||Pt.loadComponent&&!Pt._loadedComponent)&&re.push(this.preloadConfig(Nn,Pt)),(Pt.children||Pt._loadedRoutes)&&re.push(this.processRoutes(br,null!==(an=Pt.children)&&void 0!==an?an:Pt._loadedRoutes))}return(0,Ie.H)(re).pipe(Ve())}preloadConfig(C,O){return this.preloadingStrategy.preload(O,()=>{let re;re=O.loadChildren&&void 0===O.canLoad?this.loader.loadChildren(C,O):(0,te.of)(null);const Ae=re.pipe((0,Ue.Z)(Ct=>{var an;return null===Ct?(0,te.of)(void 0):(O._loadedRoutes=Ct.routes,O._loadedInjector=Ct.injector,this.processRoutes(null!==(an=Ct.injector)&&void 0!==an?an:C,Ct.routes))}));if(O.loadComponent&&!O._loadedComponent){const Ct=this.loader.loadComponent(O);return(0,Ie.H)([Ae,Ct]).pipe(Ve())}return Ae})}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO($i),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(gc),c.KVO(T))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const ns=new c.nKC("");let Ro=(()=>{var I;class D{constructor(C,O,re,Ae,Ct={}){this.urlSerializer=C,this.transitions=O,this.viewportScroller=re,this.zone=Ae,this.options=Ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Ct.scrollPositionRestoration||(Ct.scrollPositionRestoration="disabled"),Ct.anchorScrolling||(Ct.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(C=>{C instanceof Wr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Fr?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof kn&&C.code===pr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof To&&(C.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(C.position):C.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(C.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(C,O){var re=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(Ae=>{setTimeout(()=>{Ae()}),(0,c.mal)(()=>{Ae()},{injector:re.environmentInjector})}),re.zone.run(()=>{re.transitions.events.next(new To(C,"popstate"===re.lastSource?re.store[re.restoredId]:null,O))})}))}ngOnDestroy(){var C,O;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(O=this.scrollEventsSubscription)||void 0===O||O.unsubscribe()}}return(I=D).\u0275fac=function(C){c.QTQ()},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac}),D})();function Qr(I,D){return{\u0275kind:I,\u0275providers:D}}function ko(){const I=(0,c.WQX)(c.zZn);return D=>{var M,C;const O=I.get(c.o8S);if(D!==O.components[0])return;const re=I.get($i),Ae=I.get(Bo);1===I.get(ya)&&re.initialNavigation(),null===(M=I.get(Yr,null,c.$GK.Optional))||void 0===M||M.setUpPreloading(),null===(C=I.get(ns,null,c.$GK.Optional))||void 0===C||C.init(),re.resetRootComponentType(O.componentTypes[0]),Ae.closed||(Ae.next(),Ae.complete(),Ae.unsubscribe())}}const Bo=new c.nKC("",{factory:()=>new nt.B}),ya=new c.nKC("",{providedIn:"root",factory:()=>1}),Yr=new c.nKC("");function yo(I){return Qr(0,[{provide:Yr,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Qr(9,[{provide:$t,useValue:Kn},{provide:mn,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new c.nKC("ROUTER_FORROOT_GUARD"),Ea=[Rt.aZ,{provide:Zr,useClass:zr},$i,S,{provide:le,useFactory:function jl(I){return I.routerState.root},deps:[$i]},T,[]];let Mu=(()=>{var I;class D{constructor(C){}static forRoot(C,O){return{ngModule:D,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[$i,new c.Xx1,new c.kdw]]},{provide:Hs,useValue:O||{}},null!=O&&O.useHash?{provide:Rt.hb,useClass:Rt.fw}:{provide:Rt.hb,useClass:Rt.Sm},{provide:ns,useFactory:()=>{const I=(0,c.WQX)(Rt.Xr),D=(0,c.WQX)(c.SKi),M=(0,c.WQX)(Hs),C=(0,c.WQX)(Xr),O=(0,c.WQX)(Zr);return M.scrollOffset&&I.setOffset(M.scrollOffset),new Ro(O,C,I,D,M)}},null!=O&&O.preloadingStrategy?yo(O.preloadingStrategy).\u0275providers:[],null!=O&&O.initialNavigation?Xs(O):[],null!=O&&O.bindToComponentInputs?Qr(8,[Rn,{provide:Gn,useExisting:Rn}]).\u0275providers:[],null!=O&&O.enableViewTransitions?Hl().\u0275providers:[],[{provide:qs,useFactory:ko},{provide:c.iLQ,multi:!0,useExisting:qs}]]}}static forChild(C){return{ngModule:D,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO(Ru,8))},I.\u0275mod=c.$C({type:I}),I.\u0275inj=c.G2t({}),D})();function mc(I){return"guarded"}function Xs(I){return["disabled"===I.initialNavigation?Qr(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const D=(0,c.WQX)($i);return()=>{D.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Qr(2,[{provide:ya,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:D=>{const M=D.get(Rt.hj,Promise.resolve());return()=>M.then(()=>new Promise(C=>{const O=D.get($i),re=D.get(Bo);ci(O,()=>{C(!0)}),D.get(Xr).afterPreactivation=()=>(C(!0),re.closed?(0,te.of)(void 0):re),O.initialNavigation()}))}}]).\u0275providers:[]]}const qs=new c.nKC("")},7852:(Dn,At,x)=>{"use strict";x.d(At,{MF:()=>Zr,j6:()=>Cr,xZ:()=>er,om:()=>kr,Sx:()=>We,Dk:()=>vt,Wp:()=>zr,KO:()=>ge});var g=x(467),c=x(1362),de=x(8041),Fe=x(1076);const W=(Nt,_t)=>_t.some(jt=>Nt instanceof jt);let Ie,te;const we=new WeakMap,Ee=new WeakMap,Ue=new WeakMap,ze=new WeakMap,Ve=new WeakMap;let at={get(Nt,_t,jt){if(Nt instanceof IDBTransaction){if("done"===_t)return Ee.get(Nt);if("objectStoreNames"===_t)return Nt.objectStoreNames||Ue.get(Nt);if("store"===_t)return jt.objectStoreNames[1]?void 0:jt.objectStore(jt.objectStoreNames[0])}return yt(Nt[_t])},set:(Nt,_t,jt)=>(Nt[_t]=jt,!0),has:(Nt,_t)=>Nt instanceof IDBTransaction&&("done"===_t||"store"===_t)||_t in Nt};function ft(Nt){return"function"==typeof Nt?function xt(Nt){return Nt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Qe(){return te||(te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Nt)?function(..._t){return Nt.apply(Pe(this),_t),yt(we.get(this))}:function(..._t){return yt(Nt.apply(Pe(this),_t))}:function(_t,...jt){const Tn=Nt.call(Pe(this),_t,...jt);return Ue.set(Tn,_t.sort?_t.sort():[_t]),yt(Tn)}}(Nt):(Nt instanceof IDBTransaction&&function It(Nt){if(Ee.has(Nt))return;const _t=new Promise((jt,Tn)=>{const he=()=>{Nt.removeEventListener("complete",R),Nt.removeEventListener("error",U),Nt.removeEventListener("abort",U)},R=()=>{jt(),he()},U=()=>{Tn(Nt.error||new DOMException("AbortError","AbortError")),he()};Nt.addEventListener("complete",R),Nt.addEventListener("error",U),Nt.addEventListener("abort",U)});Ee.set(Nt,_t)}(Nt),W(Nt,function Ge(){return Ie||(Ie=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Nt,at):Nt)}function yt(Nt){if(Nt instanceof IDBRequest)return function it(Nt){const _t=new Promise((jt,Tn)=>{const he=()=>{Nt.removeEventListener("success",R),Nt.removeEventListener("error",U)},R=()=>{jt(yt(Nt.result)),he()},U=()=>{Tn(Nt.error),he()};Nt.addEventListener("success",R),Nt.addEventListener("error",U)});return _t.then(jt=>{jt instanceof IDBCursor&&we.set(jt,Nt)}).catch(()=>{}),Ve.set(_t,Nt),_t}(Nt);if(ze.has(Nt))return ze.get(Nt);const _t=ft(Nt);return _t!==Nt&&(ze.set(Nt,_t),Ve.set(_t,Nt)),_t}const Pe=Nt=>Ve.get(Nt),Je=["get","getKey","getAll","getAllKeys","count"],mt=["put","add","delete","clear"],Ce=new Map;function nt(Nt,_t){if(!(Nt instanceof IDBDatabase)||_t in Nt||"string"!=typeof _t)return;if(Ce.get(_t))return Ce.get(_t);const jt=_t.replace(/FromIndex$/,""),Tn=_t!==jt,he=mt.includes(jt);if(!(jt in(Tn?IDBIndex:IDBObjectStore).prototype)||!he&&!Je.includes(jt))return;const R=function(){var U=(0,g.A)(function*(ee,...$){const ae=this.transaction(ee,he?"readwrite":"readonly");let ke=ae.store;return Tn&&(ke=ke.index($.shift())),(yield Promise.all([ke[jt](...$),he&&ae.done]))[0]});return function($){return U.apply(this,arguments)}}();return Ce.set(_t,R),R}!function gt(Nt){at=Nt(at)}(Nt=>({...Nt,get:(_t,jt,Tn)=>nt(_t,jt)||Nt.get(_t,jt,Tn),has:(_t,jt)=>!!nt(_t,jt)||Nt.has(_t,jt)}));class Rt{constructor(_t){this.container=_t}getPlatformInfoString(){return this.container.getProviders().map(jt=>{if(function zt(Nt){const _t=Nt.getComponent();return"VERSION"===(null==_t?void 0:_t.type)}(jt)){const Tn=jt.getImmediate();return`${Tn.library}/${Tn.version}`}return null}).filter(jt=>jt).join(" ")}}const Et="@firebase/app",tn=new de.Vy("@firebase/app"),Cn="[DEFAULT]",An={[Et]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},sn=new Map,Kt=new Map,fr=new Map;function Rr(Nt,_t){try{Nt.container.addComponent(_t)}catch(jt){tn.debug(`Component ${_t.name} failed to register with FirebaseApp ${Nt.name}`,jt)}}function kr(Nt){const _t=Nt.name;if(fr.has(_t))return tn.debug(`There were multiple attempts to register component ${_t}.`),!1;fr.set(_t,Nt);for(const jt of sn.values())Rr(jt,Nt);for(const jt of Kt.values())Rr(jt,Nt);return!0}function Cr(Nt,_t){const jt=Nt.container.getProvider("heartbeat").getImmediate({optional:!0});return jt&&jt.triggerHeartbeat(),Nt.container.getProvider(_t)}function er(Nt){return void 0!==Nt.settings}const tr=new Fe.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class _r{constructor(_t,jt,Tn){this._isDeleted=!1,this._options=Object.assign({},_t),this._config=Object.assign({},jt),this._name=jt.name,this._automaticDataCollectionEnabled=jt.automaticDataCollectionEnabled,this._container=Tn,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(_t){this.checkDestroyed(),this._automaticDataCollectionEnabled=_t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(_t){this._isDeleted=_t}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Zr="10.12.2";function zr(Nt,_t={}){let jt=Nt;"object"!=typeof _t&&(_t={name:_t});const Tn=Object.assign({name:Cn,automaticDataCollectionEnabled:!1},_t),he=Tn.name;if("string"!=typeof he||!he)throw tr.create("bad-app-name",{appName:String(he)});if(jt||(jt=(0,Fe.T9)()),!jt)throw tr.create("no-options");const R=sn.get(he);if(R){if((0,Fe.bD)(jt,R.options)&&(0,Fe.bD)(Tn,R.config))return R;throw tr.create("duplicate-app",{appName:he})}const U=new c.h1(he);for(const $ of fr.values())U.addComponent($);const ee=new _r(jt,Tn,U);return sn.set(he,ee),ee}function We(Nt=Cn){const _t=sn.get(Nt);if(!_t&&Nt===Cn&&(0,Fe.T9)())return zr();if(!_t)throw tr.create("no-app",{appName:Nt});return _t}function vt(){return Array.from(sn.values())}function ge(Nt,_t,jt){var Tn;let he=null!==(Tn=An[Nt])&&void 0!==Tn?Tn:Nt;jt&&(he+=`-${jt}`);const R=he.match(/\s|\//),U=_t.match(/\s|\//);if(R||U){const ee=[`Unable to register library "${he}" with version "${_t}":`];return R&&ee.push(`library name "${he}" contains illegal characters (whitespace or "/")`),R&&U&&ee.push("and"),U&&ee.push(`version name "${_t}" contains illegal characters (whitespace or "/")`),void tn.warn(ee.join(" "))}kr(new c.uA(`${he}-version`,()=>({library:he,version:_t}),"VERSION"))}const ne="firebase-heartbeat-database",et=1,Ye="firebase-heartbeat-store";let Lt=null;function Xt(){return Lt||(Lt=function Ke(Nt,_t,{blocked:jt,upgrade:Tn,blocking:he,terminated:R}={}){const U=indexedDB.open(Nt,_t),ee=yt(U);return Tn&&U.addEventListener("upgradeneeded",$=>{Tn(yt(U.result),$.oldVersion,$.newVersion,yt(U.transaction),$)}),jt&&U.addEventListener("blocked",$=>jt($.oldVersion,$.newVersion,$)),ee.then($=>{R&&$.addEventListener("close",()=>R()),he&&$.addEventListener("versionchange",ae=>he(ae.oldVersion,ae.newVersion,ae))}).catch(()=>{}),ee}(ne,et,{upgrade:(Nt,_t)=>{if(0===_t)try{Nt.createObjectStore(Ye)}catch(jt){console.warn(jt)}}}).catch(Nt=>{throw tr.create("idb-open",{originalErrorMessage:Nt.message})})),Lt}function Hn(){return(Hn=(0,g.A)(function*(Nt){try{const jt=(yield Xt()).transaction(Ye),Tn=yield jt.objectStore(Ye).get(Qn(Nt));return yield jt.done,Tn}catch(_t){if(_t instanceof Fe.g)tn.warn(_t.message);else{const jt=tr.create("idb-get",{originalErrorMessage:null==_t?void 0:_t.message});tn.warn(jt.message)}}})).apply(this,arguments)}function dn(Nt,_t){return _n.apply(this,arguments)}function _n(){return(_n=(0,g.A)(function*(Nt,_t){try{const Tn=(yield Xt()).transaction(Ye,"readwrite");yield Tn.objectStore(Ye).put(_t,Qn(Nt)),yield Tn.done}catch(jt){if(jt instanceof Fe.g)tn.warn(jt.message);else{const Tn=tr.create("idb-set",{originalErrorMessage:null==jt?void 0:jt.message});tn.warn(Tn.message)}}})).apply(this,arguments)}function Qn(Nt){return`${Nt.name}!${Nt.options.appId}`}class Vr{constructor(_t){this.container=_t,this._heartbeatsCache=null;const jt=this.container.getProvider("app").getImmediate();this._storage=new Fi(jt),this._heartbeatsCachePromise=this._storage.read().then(Tn=>(this._heartbeatsCache=Tn,Tn))}triggerHeartbeat(){var _t=this;return(0,g.A)(function*(){var jt,Tn;const R=_t.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),U=gi();if((null!=(null===(jt=_t._heartbeatsCache)||void 0===jt?void 0:jt.heartbeats)||(_t._heartbeatsCache=yield _t._heartbeatsCachePromise,null!=(null===(Tn=_t._heartbeatsCache)||void 0===Tn?void 0:Tn.heartbeats)))&&_t._heartbeatsCache.lastSentHeartbeatDate!==U&&!_t._heartbeatsCache.heartbeats.some(ee=>ee.date===U))return _t._heartbeatsCache.heartbeats.push({date:U,agent:R}),_t._heartbeatsCache.heartbeats=_t._heartbeatsCache.heartbeats.filter(ee=>{const $=new Date(ee.date).valueOf();return Date.now()-$<=2592e6}),_t._storage.overwrite(_t._heartbeatsCache)})()}getHeartbeatsHeader(){var _t=this;return(0,g.A)(function*(){var jt;if(null===_t._heartbeatsCache&&(yield _t._heartbeatsCachePromise),null==(null===(jt=_t._heartbeatsCache)||void 0===jt?void 0:jt.heartbeats)||0===_t._heartbeatsCache.heartbeats.length)return"";const Tn=gi(),{heartbeatsToSend:he,unsentEntries:R}=function ir(Nt,_t=1024){const jt=[];let Tn=Nt.slice();for(const he of Nt){const R=jt.find(U=>U.agent===he.agent);if(R){if(R.dates.push(he.date),Mi(jt)>_t){R.dates.pop();break}}else if(jt.push({agent:he.agent,dates:[he.date]}),Mi(jt)>_t){jt.pop();break}Tn=Tn.slice(1)}return{heartbeatsToSend:jt,unsentEntries:Tn}}(_t._heartbeatsCache.heartbeats),U=(0,Fe.Uj)(JSON.stringify({version:2,heartbeats:he}));return _t._heartbeatsCache.lastSentHeartbeatDate=Tn,R.length>0?(_t._heartbeatsCache.heartbeats=R,yield _t._storage.overwrite(_t._heartbeatsCache)):(_t._heartbeatsCache.heartbeats=[],_t._storage.overwrite(_t._heartbeatsCache)),U})()}}function gi(){return(new Date).toISOString().substring(0,10)}class Fi{constructor(_t){this.app=_t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Fe.zW)()&&(0,Fe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var _t=this;return(0,g.A)(function*(){if(yield _t._canUseIndexedDBPromise){const Tn=yield function cn(Nt){return Hn.apply(this,arguments)}(_t.app);return null!=Tn&&Tn.heartbeats?Tn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(_t){var jt=this;return(0,g.A)(function*(){var Tn;if(yield jt._canUseIndexedDBPromise){const R=yield jt.read();return dn(jt.app,{lastSentHeartbeatDate:null!==(Tn=_t.lastSentHeartbeatDate)&&void 0!==Tn?Tn:R.lastSentHeartbeatDate,heartbeats:_t.heartbeats})}})()}add(_t){var jt=this;return(0,g.A)(function*(){var Tn;if(yield jt._canUseIndexedDBPromise){const R=yield jt.read();return dn(jt.app,{lastSentHeartbeatDate:null!==(Tn=_t.lastSentHeartbeatDate)&&void 0!==Tn?Tn:R.lastSentHeartbeatDate,heartbeats:[...R.heartbeats,..._t.heartbeats]})}})()}}function Mi(Nt){return(0,Fe.Uj)(JSON.stringify({version:2,heartbeats:Nt})).length}!function mi(Nt){kr(new c.uA("platform-logger",_t=>new Rt(_t),"PRIVATE")),kr(new c.uA("heartbeat",_t=>new Vr(_t),"PRIVATE")),ge(Et,"0.10.5",Nt),ge(Et,"0.10.5","esm2017"),ge("fire-js","")}("")},1362:(Dn,At,x)=>{"use strict";x.d(At,{h1:()=>Ge,uA:()=>de});var g=x(467),c=x(1076);class de{constructor(we,Ee,Ue){this.name=we,this.instanceFactory=Ee,this.type=Ue,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(we){return this.instantiationMode=we,this}setMultipleInstances(we){return this.multipleInstances=we,this}setServiceProps(we){return this.serviceProps=we,this}setInstanceCreatedCallback(we){return this.onInstanceCreated=we,this}}const Fe="[DEFAULT]";class W{constructor(we,Ee){this.name=we,this.container=Ee,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(we){const Ee=this.normalizeInstanceIdentifier(we);if(!this.instancesDeferred.has(Ee)){const Ue=new c.cY;if(this.instancesDeferred.set(Ee,Ue),this.isInitialized(Ee)||this.shouldAutoInitialize())try{const ze=this.getOrInitializeService({instanceIdentifier:Ee});ze&&Ue.resolve(ze)}catch{}}return this.instancesDeferred.get(Ee).promise}getImmediate(we){var Ee;const Ue=this.normalizeInstanceIdentifier(null==we?void 0:we.identifier),ze=null!==(Ee=null==we?void 0:we.optional)&&void 0!==Ee&&Ee;if(!this.isInitialized(Ue)&&!this.shouldAutoInitialize()){if(ze)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Ue})}catch(Ve){if(ze)return null;throw Ve}}getComponent(){return this.component}setComponent(we){if(we.name!==this.name)throw Error(`Mismatching Component ${we.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=we,this.shouldAutoInitialize()){if(function te(Qe){return"EAGER"===Qe.instantiationMode}(we))try{this.getOrInitializeService({instanceIdentifier:Fe})}catch{}for(const[Ee,Ue]of this.instancesDeferred.entries()){const ze=this.normalizeInstanceIdentifier(Ee);try{const Ve=this.getOrInitializeService({instanceIdentifier:ze});Ue.resolve(Ve)}catch{}}}}clearInstance(we=Fe){this.instancesDeferred.delete(we),this.instancesOptions.delete(we),this.instances.delete(we)}delete(){var we=this;return(0,g.A)(function*(){const Ee=Array.from(we.instances.values());yield Promise.all([...Ee.filter(Ue=>"INTERNAL"in Ue).map(Ue=>Ue.INTERNAL.delete()),...Ee.filter(Ue=>"_delete"in Ue).map(Ue=>Ue._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(we=Fe){return this.instances.has(we)}getOptions(we=Fe){return this.instancesOptions.get(we)||{}}initialize(we={}){const{options:Ee={}}=we,Ue=this.normalizeInstanceIdentifier(we.instanceIdentifier);if(this.isInitialized(Ue))throw Error(`${this.name}(${Ue}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const ze=this.getOrInitializeService({instanceIdentifier:Ue,options:Ee});for(const[Ve,it]of this.instancesDeferred.entries())Ue===this.normalizeInstanceIdentifier(Ve)&&it.resolve(ze);return ze}onInit(we,Ee){var Ue;const ze=this.normalizeInstanceIdentifier(Ee),Ve=null!==(Ue=this.onInitCallbacks.get(ze))&&void 0!==Ue?Ue:new Set;Ve.add(we),this.onInitCallbacks.set(ze,Ve);const it=this.instances.get(ze);return it&&we(it,ze),()=>{Ve.delete(we)}}invokeOnInitCallbacks(we,Ee){const Ue=this.onInitCallbacks.get(Ee);if(Ue)for(const ze of Ue)try{ze(we,Ee)}catch{}}getOrInitializeService({instanceIdentifier:we,options:Ee={}}){let Ue=this.instances.get(we);if(!Ue&&this.component&&(Ue=this.component.instanceFactory(this.container,{instanceIdentifier:(Qe=we,Qe===Fe?void 0:Qe),options:Ee}),this.instances.set(we,Ue),this.instancesOptions.set(we,Ee),this.invokeOnInitCallbacks(Ue,we),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,we,Ue)}catch{}var Qe;return Ue||null}normalizeInstanceIdentifier(we=Fe){return this.component?this.component.multipleInstances?we:Fe:we}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ge{constructor(we){this.name=we,this.providers=new Map}addComponent(we){const Ee=this.getProvider(we.name);if(Ee.isComponentSet())throw new Error(`Component ${we.name} has already been registered with ${this.name}`);Ee.setComponent(we)}addOrOverwriteComponent(we){this.getProvider(we.name).isComponentSet()&&this.providers.delete(we.name),this.addComponent(we)}getProvider(we){if(this.providers.has(we))return this.providers.get(we);const Ee=new W(we,this);return this.providers.set(we,Ee),Ee}getProviders(){return Array.from(this.providers.values())}}},8041:(Dn,At,x)=>{"use strict";x.d(At,{$b:()=>c,Vy:()=>te});const g=[];var c=function(we){return we[we.DEBUG=0]="DEBUG",we[we.VERBOSE=1]="VERBOSE",we[we.INFO=2]="INFO",we[we.WARN=3]="WARN",we[we.ERROR=4]="ERROR",we[we.SILENT=5]="SILENT",we}(c||{});const de={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Fe=c.INFO,W={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},Ie=(we,Ee,...Ue)=>{if(Ee{"use strict";x.d(At,{Yq:()=>on,TS:()=>je,sR:()=>bt,el:()=>_n,Sb:()=>_r,QE:()=>gi,CF:()=>Pn,Rg:()=>et,p4:()=>ir,jM:()=>Tn,_t:()=>En,q9:()=>Xn,Kb:()=>he,CE:()=>Qn,pF:()=>Pr,fL:()=>Mi,YV:()=>cn,er:()=>Fi,z3:()=>mi});var g=x(467),c=x(9842),de=x(4438),Fe=x(305),W=x(177),Ie=x(5531),te=x(4442);var Rt=x(1413),zt=x(3726),Et=x(4412),Be=x(4572),tn=x(7673),Ze=x(1635),De=x(5964),z=x(5558),K=x(3669),q=x(9974),ie=x(4360);function be(R,U){return R===U}var Xe=x(4341);const nn=["tabsInner"];class En{constructor(U){(0,c.A)(this,"menuController",void 0),this.menuController=U}open(U){return this.menuController.open(U)}close(U){return this.menuController.close(U)}toggle(U){return this.menuController.toggle(U)}enable(U,ee){return this.menuController.enable(U,ee)}swipeGesture(U,ee){return this.menuController.swipeGesture(U,ee)}isOpen(U){return this.menuController.isOpen(U)}isEnabled(U){return this.menuController.isEnabled(U)}get(U){return this.menuController.get(U)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(U,ee){return this.menuController.registerAnimation(U,ee)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(U,ee){return this.menuController._createAnimation(U,ee)}_register(U){return this.menuController._register(U)}_unregister(U){return this.menuController._unregister(U)}_setOpen(U,ee,$){return this.menuController._setOpen(U,ee,$)}}let Vn=(()=>{var R;class U{constructor($,ae){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new Rt.B),(0,c.A)(this,"keyboardDidShow",new Rt.B),(0,c.A)(this,"keyboardDidHide",new Rt.B),(0,c.A)(this,"pause",new Rt.B),(0,c.A)(this,"resume",new Rt.B),(0,c.A)(this,"resize",new Rt.B),this.doc=$,ae.run(()=>{var ke;let ct;this.win=$.defaultView,this.backButton.subscribeWithPriority=function(Gt,qt){return this.subscribe(Wn=>Wn.register(Gt,$n=>ae.run(()=>qt($n))))},Zn(this.pause,$,"pause",ae),Zn(this.resume,$,"resume",ae),Zn(this.backButton,$,"ionBackButton",ae),Zn(this.resize,this.win,"resize",ae),Zn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",ae),Zn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",ae),this._readyPromise=new Promise(Gt=>{ct=Gt}),null!==(ke=this.win)&&void 0!==ke&&ke.cordova?$.addEventListener("deviceready",()=>{ct("cordova")},{once:!0}):ct("dom")})}is($){return(0,Ie.a)(this.win,$)}platforms(){return(0,Ie.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam($){return qn(this.win.location.href,$)}isLandscape(){return!this.isPortrait()}isPortrait(){var $,ae;return null===($=(ae=this.win).matchMedia)||void 0===$?void 0:$.call(ae,"(orientation: portrait)").matches}testUserAgent($){const ae=this.win.navigator;return!!(null!=ae&&ae.userAgent&&ae.userAgent.indexOf($)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.KVO(W.qQ),de.KVO(de.SKi))}),(0,c.A)(U,"\u0275prov",de.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})();const qn=(R,U)=>{U=U.replace(/[[\]\\]/g,"\\$&");const $=new RegExp("[\\?&]"+U+"=([^&#]*)").exec(R);return $?decodeURIComponent($[1].replace(/\+/g," ")):null},Zn=(R,U,ee,$)=>{U&&U.addEventListener(ee,ae=>{$.run(()=>{R.next(null!=ae?ae.detail:void 0)})})};let Xn=(()=>{var R;class U{constructor($,ae,ke,ct){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",or),(0,c.A)(this,"animated",rr),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=ae,this.serializer=ke,this.router=ct,ct&&ct.events.subscribe(Gt=>{if(Gt instanceof Fe.Z){const qt=Gt.restoredState?Gt.restoredState.navigationId:Gt.id;this.guessDirection=this.guessAnimation=qt{this.pop(),Gt()})}navigateForward($,ae={}){return this.setDirection("forward",ae.animated,ae.animationDirection,ae.animation),this.navigate($,ae)}navigateBack($,ae={}){return this.setDirection("back",ae.animated,ae.animationDirection,ae.animation),this.navigate($,ae)}navigateRoot($,ae={}){return this.setDirection("root",ae.animated,ae.animationDirection,ae.animation),this.navigate($,ae)}back($={animated:!0,animationDirection:"back"}){return this.setDirection("back",$.animated,$.animationDirection,$.animation),this.location.back()}pop(){var $=this;return(0,g.A)(function*(){let ae=$.topOutlet;for(;ae;){if(yield ae.pop())return!0;ae=ae.parentOutlet}return!1})()}setDirection($,ae,ke,ct){this.direction=$,this.animated=wn($,ae,ke),this.animationBuilder=ct}setTopOutlet($){this.topOutlet=$}consumeTransition(){let ae,$="root";const ke=this.animationBuilder;return"auto"===this.direction?($=this.guessDirection,ae=this.guessAnimation):(ae=this.animated,$=this.direction),this.direction=or,this.animated=rr,this.animationBuilder=void 0,{direction:$,animation:ae,animationBuilder:ke}}navigate($,ae){if(Array.isArray($))return this.router.navigate($,ae);{const ke=this.serializer.parse($.toString());return void 0!==ae.queryParams&&(ke.queryParams={...ae.queryParams}),void 0!==ae.fragment&&(ke.fragment=ae.fragment),this.router.navigateByUrl(ke,ae)}}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.KVO(Vn),de.KVO(W.aZ),de.KVO(Fe.Sd),de.KVO(Fe.Ix,8))}),(0,c.A)(U,"\u0275prov",de.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})();const wn=(R,U,ee)=>{if(!1!==U){if(void 0!==ee)return ee;if("forward"===R||"back"===R)return R;if("root"===R&&!0===U)return"forward"}},or="auto",rr=void 0;let je=(()=>{var R;class U{get($,ae){const ke=Ft();return ke?ke.get($,ae):null}getBoolean($,ae){const ke=Ft();return!!ke&&ke.getBoolean($,ae)}getNumber($,ae){const ke=Ft();return ke?ke.getNumber($,ae):0}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)}),(0,c.A)(U,"\u0275prov",de.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),U})();const bt=new de.nKC("USERCONFIG"),Ft=()=>{if(typeof window<"u"){const R=window.Ionic;if(null!=R&&R.config)return R.config}return null};class Jt{constructor(U={}){(0,c.A)(this,"data",void 0),this.data=U,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(U){return this.data[U]}}let on=(()=>{var R;class U{constructor(){(0,c.A)(this,"zone",(0,de.WQX)(de.SKi)),(0,c.A)(this,"applicationRef",(0,de.WQX)(de.o8S)),(0,c.A)(this,"config",(0,de.WQX)(bt))}create($,ae,ke){var ct;return new Ar($,ae,this.applicationRef,this.zone,ke,null!==(ct=this.config.useSetInputAPI)&&void 0!==ct&&ct)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)}),(0,c.A)(U,"\u0275prov",de.jDH({token:R,factory:R.\u0275fac})),U})();class Ar{constructor(U,ee,$,ae,ke,ct){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=U,this.injector=ee,this.applicationRef=$,this.zone=ae,this.elementReferenceKey=ke,this.enableSignalsSupport=ct}attachViewToDom(U,ee,$,ae){return this.zone.run(()=>new Promise(ke=>{const ct={...$};void 0!==this.elementReferenceKey&&(ct[this.elementReferenceKey]=U),ke(Cn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,U,ee,ct,ae,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(U,ee){return this.zone.run(()=>new Promise($=>{const ae=this.elRefMap.get(ee);if(ae){ae.destroy(),this.elRefMap.delete(ee);const ke=this.elEventsMap.get(ee);ke&&(ke(),this.elEventsMap.delete(ee))}$()}))}}const Cn=(R,U,ee,$,ae,ke,ct,Gt,qt,Wn,$n,Hr)=>{const gr=de.zZn.create({providers:fr(qt),parent:ee}),$r=(0,de.a0P)(Gt,{environmentInjector:U,elementInjector:gr}),Ir=$r.instance,un=$r.location.nativeElement;if(qt)if($n&&void 0!==Ir[$n]&&console.error(`[Ionic Error]: ${$n} is a reserved property when using ${ct.tagName.toLowerCase()}. Rename or remove the "${$n}" property from ${Gt.name}.`),!0===Hr&&void 0!==$r.setInput){const{modal:Wr,popover:Fr,...Er}=qt;for(const pr in Er)$r.setInput(pr,Er[pr]);void 0!==Wr&&Object.assign(Ir,{modal:Wr}),void 0!==Fr&&Object.assign(Ir,{popover:Fr})}else Object.assign(Ir,qt);if(Wn)for(const Wr of Wn)un.classList.add(Wr);const sr=sn(R,Ir,un);return ct.appendChild(un),$.attachView($r.hostView),ae.set(un,$r),ke.set(un,sr),un},An=[te.L,te.a,te.b,te.c,te.d],sn=(R,U,ee)=>R.run(()=>{const $=An.filter(ae=>"function"==typeof U[ae]).map(ae=>{const ke=ct=>U[ae](ct.detail);return ee.addEventListener(ae,ke),()=>ee.removeEventListener(ae,ke)});return()=>$.forEach(ae=>ae())}),Kt=new de.nKC("NavParamsToken"),fr=R=>[{provide:Kt,useValue:R},{provide:Jt,useFactory:Rr,deps:[Kt]}],Rr=R=>new Jt(R),Lr=(R,U)=>{const ee=R.prototype;U.forEach($=>{Object.defineProperty(ee,$,{get(){return this.el[$]},set(ae){this.z.runOutsideAngular(()=>this.el[$]=ae)}})})},kr=(R,U)=>{const ee=R.prototype;U.forEach($=>{ee[$]=function(){const ae=arguments;return this.z.runOutsideAngular(()=>this.el[$].apply(this.el,ae))}})},Cr=(R,U,ee)=>{ee.forEach($=>R[$]=(0,zt.R)(U,$))};function jn(R){return function(ee){const{defineCustomElementFn:$,inputs:ae,methods:ke}=R;return void 0!==$&&$(),ae&&Lr(ee,ae),ke&&kr(ee,ke),ee}}const ii=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],er=["present","dismiss","onDidDismiss","onWillDismiss"];let Pn=(()=>{var R;let U=((0,c.A)(R=class{constructor($,ae,ke){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=ke,this.el=ae.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,$.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,$.detectChanges()}),Cr(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function($){return new($||R)(de.rXU(de.gRc),de.rXU(de.aKT),de.rXU(de.SKi))}),(0,c.A)(R,"\u0275dir",de.FsC({type:R,selectors:[["ion-popover"]],contentQueries:function($,ae,ke){if(1&$&&de.wni(ke,de.C4Q,5),2&$){let ct;de.mGM(ct=de.lsd())&&(ae.template=ct.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),R);return U=(0,Ze.Cg)([jn({inputs:ii,methods:er})],U),U})();const Mr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],tr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let _r=(()=>{var R;let U=((0,c.A)(R=class{constructor($,ae,ke){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=ke,this.el=ae.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,$.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,$.detectChanges()}),Cr(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function($){return new($||R)(de.rXU(de.gRc),de.rXU(de.aKT),de.rXU(de.SKi))}),(0,c.A)(R,"\u0275dir",de.FsC({type:R,selectors:[["ion-modal"]],contentQueries:function($,ae,ke){if(1&$&&de.wni(ke,de.C4Q,5),2&$){let ct;de.mGM(ct=de.lsd())&&(ae.template=ct.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),R);return U=(0,Ze.Cg)([jn({inputs:Mr,methods:tr})],U),U})();const Zr=(R,U)=>((R=R.filter(ee=>ee.stackId!==U.stackId)).push(U),R),We=(R,U)=>{const ee=R.createUrlTree(["."],{relativeTo:U});return R.serializeUrl(ee)},vt=(R,U)=>!U||R.stackId!==U.stackId,ot=(R,U)=>{if(!R)return;const ee=ce(U);for(let $=0;$=R.length)return ee[$];if(ee[$]!==R[$])return}},ce=R=>R.split("/").map(U=>U.trim()).filter(U=>""!==U),ge=R=>{R&&(R.ref.destroy(),R.unlistenEvents())};class Ne{constructor(U,ee,$,ae,ke,ct){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=ee,this.router=$,this.navCtrl=ae,this.zone=ke,this.location=ct,this.tabsPrefix=void 0!==U?ce(U):void 0}createView(U,ee){var $;const ae=We(this.router,ee),ke=null==U||null===($=U.location)||void 0===$?void 0:$.nativeElement,ct=sn(this.zone,U.instance,ke);return{id:this.nextId++,stackId:ot(this.tabsPrefix,ae),unlistenEvents:ct,element:ke,ref:U,url:ae}}getExistingView(U){const ee=We(this.router,U),$=this.views.find(ae=>ae.url===ee);return $&&$.ref.changeDetectorRef.reattach(),$}setActive(U){var ee,$;const ae=this.navCtrl.consumeTransition();let{direction:ke,animation:ct,animationBuilder:Gt}=ae;const qt=this.activeView,Wn=vt(U,qt);Wn&&(ke="back",ct=void 0);const $n=this.views.slice();let Hr;const gr=this.router;gr.getCurrentNavigation?Hr=gr.getCurrentNavigation():null!==(ee=gr.navigations)&&void 0!==ee&&ee.value&&(Hr=gr.navigations.value),null!==($=Hr)&&void 0!==$&&null!==($=$.extras)&&void 0!==$&&$.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const $r=this.views.includes(U),Ir=this.insertView(U,ke);$r||U.ref.changeDetectorRef.detectChanges();const un=U.animationBuilder;return void 0===Gt&&"back"===ke&&!Wn&&void 0!==un&&(Gt=un),qt&&(qt.animationBuilder=Gt),this.zone.runOutsideAngular(()=>this.wait(()=>(qt&&qt.ref.changeDetectorRef.detach(),U.ref.changeDetectorRef.reattach(),this.transition(U,qt,ct,this.canGoBack(1),!1,Gt).then(()=>St(U,Ir,$n,this.location,this.zone)).then(()=>({enteringView:U,direction:ke,animation:ct,tabSwitch:Wn})))))}canGoBack(U,ee=this.getActiveStackId()){return this.getStack(ee).length>U}pop(U,ee=this.getActiveStackId()){return this.zone.run(()=>{const $=this.getStack(ee);if($.length<=U)return Promise.resolve(!1);const ae=$[$.length-U-1];let ke=ae.url;const ct=ae.savedData;if(ct){var Gt;const Wn=ct.get("primary");null!=Wn&&null!==(Gt=Wn.route)&&void 0!==Gt&&null!==(Gt=Gt._routerState)&&void 0!==Gt&&Gt.snapshot.url&&(ke=Wn.route._routerState.snapshot.url)}const{animationBuilder:qt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(ke,{...ae.savedExtras,animation:qt}).then(()=>!0)})}startBackTransition(){const U=this.activeView;if(U){const ee=this.getStack(U.stackId),$=ee[ee.length-2],ae=$.animationBuilder;return this.wait(()=>this.transition($,U,"back",this.canGoBack(2),!0,ae))}return Promise.resolve()}endBackTransition(U){U?(this.skipTransition=!0,this.pop(1)):this.activeView&&ne(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(U){const ee=this.getStack(U);return ee.length>0?ee[ee.length-1]:void 0}getRootUrl(U){const ee=this.getStack(U);return ee.length>0?ee[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(ge),this.activeView=void 0,this.views=[]}getStack(U){return this.views.filter(ee=>ee.stackId===U)}insertView(U,ee){return this.activeView=U,this.views=((R,U,ee)=>"root"===ee?Zr(R,U):"forward"===ee?((R,U)=>(R.indexOf(U)>=0?R=R.filter($=>$.stackId!==U.stackId||$.id<=U.id):R.push(U),R))(R,U):((R,U)=>R.indexOf(U)>=0?R.filter($=>$.stackId!==U.stackId||$.id<=U.id):Zr(R,U))(R,U))(this.views,U,ee),this.views.slice()}transition(U,ee,$,ae,ke,ct){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ee===U)return Promise.resolve(!1);const Gt=U?U.element:void 0,qt=ee?ee.element:void 0,Wn=this.containerEl;return Gt&&Gt!==qt&&(Gt.classList.add("ion-page"),Gt.classList.add("ion-page-invisible"),Wn.commit)?Wn.commit(Gt,qt,{duration:void 0===$?0:void 0,direction:$,showGoBack:ae,progressAnimation:ke,animationBuilder:ct}):Promise.resolve(!1)}wait(U){var ee=this;return(0,g.A)(function*(){void 0!==ee.runningTask&&(yield ee.runningTask,ee.runningTask=void 0);const $=ee.runningTask=U();return $.finally(()=>ee.runningTask=void 0),$})()}}const St=(R,U,ee,$,ae)=>"function"==typeof requestAnimationFrame?new Promise(ke=>{requestAnimationFrame(()=>{ne(R,U,ee,$,ae),ke()})}):Promise.resolve(),ne=(R,U,ee,$,ae)=>{ae.run(()=>ee.filter(ke=>!U.includes(ke)).forEach(ge)),U.forEach(ke=>{const Gt=$.path().split("?")[0].split("#")[0];if(ke!==R&&ke.url!==Gt){const qt=ke.element;qt.setAttribute("aria-hidden","true"),qt.classList.add("ion-page-hidden"),ke.ref.changeDetectorRef.detach()}})};let et=(()=>{var R;class U{get activatedComponentRef(){return this.activated}set animation($){this.nativeEl.animation=$}set animated($){this.nativeEl.animated=$}set swipeGesture($){this._swipeGesture=$,this.nativeEl.swipeHandler=$?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:ae=>this.stackCtrl.endBackTransition(ae)}:void 0}constructor($,ae,ke,ct,Gt,qt,Wn,$n){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new Et.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Fe.Xk),(0,c.A)(this,"stackWillChange",new de.bkB),(0,c.A)(this,"stackDidChange",new de.bkB),(0,c.A)(this,"activateEvents",new de.bkB),(0,c.A)(this,"deactivateEvents",new de.bkB),(0,c.A)(this,"parentContexts",(0,de.WQX)(Fe.Zp)),(0,c.A)(this,"location",(0,de.WQX)(de.c1b)),(0,c.A)(this,"environmentInjector",(0,de.WQX)(de.uvJ)),(0,c.A)(this,"inputBinder",(0,de.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,de.WQX)(je)),(0,c.A)(this,"navCtrl",(0,de.WQX)(Xn)),this.parentOutlet=$n,this.nativeEl=ct.nativeElement,this.name=$||Fe.Xk,this.tabsPrefix="true"===ae?We(Gt,Wn):void 0,this.stackCtrl=new Ne(this.tabsPrefix,this.nativeEl,Gt,this.navCtrl,qt,ke),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var $;this.stackCtrl.destroy(),null===($=this.inputBinder)||void 0===$||$.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const $=this.getContext();null!=$&&$.route&&this.activateWith($.route,$.injector)}new Promise($=>((R,U)=>{R.componentOnReady?R.componentOnReady().then(ee=>U(ee)):(R=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(R):"function"==typeof requestAnimationFrame?requestAnimationFrame(R):setTimeout(R)})(()=>U(R))})(this.nativeEl,$)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach($,ae){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const ae=this.getContext();this.activatedView.savedData=new Map(ae.children.contexts);const ke=this.activatedView.savedData.get("primary");if(ke&&ae.route&&(ke.route={...ae.route}),this.activatedView.savedExtras={},ae.route){const ct=ae.route.snapshot;this.activatedView.savedExtras.queryParams=ct.queryParams,this.activatedView.savedExtras.fragment=ct.fragment}}const $=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit($)}}activateWith($,ae){var ke;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=$;let ct,Gt=this.stackCtrl.getExistingView($);if(Gt){ct=this.activated=Gt.ref;const $n=Gt.savedData;$n&&(this.getContext().children.contexts=$n),this.updateActivatedRouteProxy(ct.instance,$)}else{var qt;const $n=$._futureSnapshot,Hr=this.parentContexts.getOrCreateContext(this.name).children,gr=new Et.t(null),$r=this.createActivatedRouteProxy(gr,$),Ir=new Ye($r,Hr,this.location.injector),un=null!==(qt=$n.routeConfig.component)&&void 0!==qt?qt:$n.component;ct=this.activated=this.outletContent.createComponent(un,{index:this.outletContent.length,injector:Ir,environmentInjector:null!=ae?ae:this.environmentInjector}),gr.next(ct.instance),Gt=this.stackCtrl.createView(this.activated,$),this.proxyMap.set(ct.instance,$r),this.currentActivatedRoute$.next({component:ct.instance,activatedRoute:$})}null===(ke=this.inputBinder)||void 0===ke||ke.bindActivatedRouteToOutletComponent(this),this.activatedView=Gt,this.navCtrl.setTopOutlet(this);const Wn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Gt,tabSwitch:vt(Gt,Wn)}),this.stackCtrl.setActive(Gt).then($n=>{this.activateEvents.emit(ct.instance),this.stackDidChange.emit($n)})}canGoBack($=1,ae){return this.stackCtrl.canGoBack($,ae)}pop($=1,ae){return this.stackCtrl.pop($,ae)}getLastUrl($){const ae=this.stackCtrl.getLastUrl($);return ae?ae.url:void 0}getLastRouteView($){return this.stackCtrl.getLastUrl($)}getRootView($){return this.stackCtrl.getRootUrl($)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy($,ae){const ke=new Fe.nX;return ke._futureSnapshot=ae._futureSnapshot,ke._routerState=ae._routerState,ke.snapshot=ae.snapshot,ke.outlet=ae.outlet,ke.component=ae.component,ke._paramMap=this.proxyObservable($,"paramMap"),ke._queryParamMap=this.proxyObservable($,"queryParamMap"),ke.url=this.proxyObservable($,"url"),ke.params=this.proxyObservable($,"params"),ke.queryParams=this.proxyObservable($,"queryParams"),ke.fragment=this.proxyObservable($,"fragment"),ke.data=this.proxyObservable($,"data"),ke}proxyObservable($,ae){return $.pipe((0,De.p)(ke=>!!ke),(0,z.n)(ke=>this.currentActivatedRoute$.pipe((0,De.p)(ct=>null!==ct&&ct.component===ke),(0,z.n)(ct=>ct&&ct.activatedRoute[ae]),function se(R,U=K.D){return R=null!=R?R:be,(0,q.N)((ee,$)=>{let ae,ke=!0;ee.subscribe((0,ie._)($,ct=>{const Gt=U(ct);(ke||!R(ae,Gt))&&(ke=!1,ae=Gt,$.next(ct))}))})}())))}updateActivatedRouteProxy($,ae){const ke=this.proxyMap.get($);if(!ke)throw new Error("Could not find activated route proxy for view");ke._futureSnapshot=ae._futureSnapshot,ke._routerState=ae._routerState,ke.snapshot=ae.snapshot,ke.outlet=ae.outlet,ke.component=ae.component,this.currentActivatedRoute$.next({component:$,activatedRoute:ae})}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.kS0("name"),de.kS0("tabs"),de.rXU(W.aZ),de.rXU(de.aKT),de.rXU(Fe.Ix),de.rXU(de.SKi),de.rXU(Fe.nX),de.rXU(R,12))}),(0,c.A)(U,"\u0275dir",de.FsC({type:R,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),U})();class Ye{constructor(U,ee,$){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=U,this.childContexts=ee,this.parent=$}get(U,ee){return U===Fe.nX?this.route:U===Fe.Zp?this.childContexts:this.parent.get(U,ee)}}const Lt=new de.nKC("");let Xt=(()=>{var R;class U{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent($){this.unsubscribeFromRouteData($),this.subscribeToRouteData($)}unsubscribeFromRouteData($){var ae;null===(ae=this.outletDataSubscriptions.get($))||void 0===ae||ae.unsubscribe(),this.outletDataSubscriptions.delete($)}subscribeToRouteData($){const{activatedRoute:ae}=$,ke=(0,Be.z)([ae.queryParams,ae.params,ae.data]).pipe((0,z.n)(([ct,Gt,qt],Wn)=>(qt={...ct,...Gt,...qt},0===Wn?(0,tn.of)(qt):Promise.resolve(qt)))).subscribe(ct=>{if(!$.isActivated||!$.activatedComponentRef||$.activatedRoute!==ae||null===ae.component)return void this.unsubscribeFromRouteData($);const Gt=(0,de.HJs)(ae.component);if(Gt)for(const{templateName:qt}of Gt.inputs)$.activatedComponentRef.setInput(qt,ct[qt]);else this.unsubscribeFromRouteData($)});this.outletDataSubscriptions.set($,ke)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)}),(0,c.A)(U,"\u0275prov",de.jDH({token:R,factory:R.\u0275fac})),U})();const cn=()=>({provide:Lt,useFactory:Hn,deps:[Fe.Ix]});function Hn(R){return null!=R&&R.componentInputBindingEnabled?new Xt:null}const dn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let _n=(()=>{var R;let U=((0,c.A)(R=class{constructor($,ae,ke,ct,Gt,qt){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=$,this.navCtrl=ae,this.config=ke,this.r=ct,this.z=Gt,qt.detach(),this.el=this.r.nativeElement}onClick($){var ae;const ke=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(ae=this.routerOutlet)&&void 0!==ae&&ae.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),$.preventDefault()):null!=ke&&(this.navCtrl.navigateBack(ke,{animation:this.routerAnimation}),$.preventDefault())}},"\u0275fac",function($){return new($||R)(de.rXU(et,8),de.rXU(Xn),de.rXU(je),de.rXU(de.aKT),de.rXU(de.SKi),de.rXU(de.gRc))}),(0,c.A)(R,"\u0275dir",de.FsC({type:R,hostBindings:function($,ae){1&$&&de.bIt("click",function(ct){return ae.onClick(ct)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),R);return U=(0,Ze.Cg)([jn({inputs:dn})],U),U})(),Qn=(()=>{var R;class U{constructor($,ae,ke,ct,Gt){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=$,this.navCtrl=ae,this.elementRef=ke,this.router=ct,this.routerLink=Gt}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var $;if(null!==($=this.routerLink)&&void 0!==$&&$.urlTree){const ae=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=ae}}onClick($){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),$.preventDefault()}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.rXU(W.hb),de.rXU(Xn),de.rXU(de.aKT),de.rXU(Fe.Ix),de.rXU(Fe.Wk,8))}),(0,c.A)(U,"\u0275dir",de.FsC({type:R,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function($,ae){1&$&&de.bIt("click",function(ct){return ae.onClick(ct)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[de.OA$]})),U})(),Pr=(()=>{var R;class U{constructor($,ae,ke,ct,Gt){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=$,this.navCtrl=ae,this.elementRef=ke,this.router=ct,this.routerLink=Gt}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var $;if(null!==($=this.routerLink)&&void 0!==$&&$.urlTree){const ae=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=ae}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.rXU(W.hb),de.rXU(Xn),de.rXU(de.aKT),de.rXU(Fe.Ix),de.rXU(Fe.Wk,8))}),(0,c.A)(U,"\u0275dir",de.FsC({type:R,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function($,ae){1&$&&de.bIt("click",function(){return ae.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[de.OA$]})),U})();const yr=["animated","animation","root","rootParams","swipeGesture"],Vr=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let gi=(()=>{var R;let U=((0,c.A)(R=class{constructor($,ae,ke,ct,Gt,qt){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Gt,qt.detach(),this.el=$.nativeElement,$.nativeElement.delegate=ct.create(ae,ke),Cr(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function($){return new($||R)(de.rXU(de.aKT),de.rXU(de.uvJ),de.rXU(de.zZn),de.rXU(on),de.rXU(de.SKi),de.rXU(de.gRc))}),(0,c.A)(R,"\u0275dir",de.FsC({type:R,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),R);return U=(0,Ze.Cg)([jn({inputs:yr,methods:Vr})],U),U})(),ir=(()=>{var R;class U{constructor($){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new de.bkB),(0,c.A)(this,"ionTabsDidChange",new de.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=$}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:$,tabSwitch:ae}){const ke=$.stackId;ae&&void 0!==ke&&this.ionTabsWillChange.emit({tab:ke})}onStackDidChange({enteringView:$,tabSwitch:ae}){const ke=$.stackId;ae&&void 0!==ke&&(this.tabBar&&(this.tabBar.selectedTab=ke),this.ionTabsDidChange.emit({tab:ke}))}select($){const ae="string"==typeof $,ke=ae?$:$.detail.tab,ct=this.outlet.getActiveStackId()===ke,Gt=`${this.outlet.tabsPrefix}/${ke}`;if(ae||$.stopPropagation(),ct){const qt=this.outlet.getActiveStackId(),Wn=this.outlet.getLastRouteView(qt);if((null==Wn?void 0:Wn.url)===Gt)return;const $n=this.outlet.getRootView(ke);return this.navCtrl.navigateRoot(Gt,{...$n&&Gt===$n.url&&$n.savedExtras,animated:!0,animationDirection:"back"})}{const qt=this.outlet.getLastRouteView(ke);return this.navCtrl.navigateRoot((null==qt?void 0:qt.url)||Gt,{...null==qt?void 0:qt.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach($=>{const ae=$.el.getAttribute("slot");ae!==this.tabBarSlot&&(this.tabBarSlot=ae,this.relocateTabBar())})}relocateTabBar(){const $=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before($):this.tabsInner.nativeElement.after($)}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.rXU(Xn))}),(0,c.A)(U,"\u0275dir",de.FsC({type:R,selectors:[["ion-tabs"]],viewQuery:function($,ae){if(1&$&&de.GBs(nn,7,de.aKT),2&$){let ke;de.mGM(ke=de.lsd())&&(ae.tabsInner=ke.first)}},hostBindings:function($,ae){1&$&&de.bIt("ionTabButtonClick",function(ct){return ae.select(ct)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),U})();const Fi=R=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(R):"function"==typeof requestAnimationFrame?requestAnimationFrame(R):setTimeout(R);let Mi=(()=>{var R;class U{constructor($,ae){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=$,this.elementRef=ae}writeValue($){this.elementRef.nativeElement.value=this.lastValue=$,mi(this.elementRef)}handleValueChange($,ae){$===this.elementRef.nativeElement&&(ae!==this.lastValue&&(this.lastValue=ae,this.onChange(ae)),mi(this.elementRef))}_handleBlurEvent($){$===this.elementRef.nativeElement&&(this.onTouched(),mi(this.elementRef))}registerOnChange($){this.onChange=$}registerOnTouched($){this.onTouched=$}setDisabledState($){this.elementRef.nativeElement.disabled=$}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let $;try{$=this.injector.get(Xe.vO)}catch{}if(!$)return;$.statusChanges&&(this.statusChanges=$.statusChanges.subscribe(()=>mi(this.elementRef)));const ae=$.control;ae&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(ct=>{if(typeof ae[ct]<"u"){const Gt=ae[ct].bind(ae);ae[ct]=(...qt)=>{Gt(...qt),mi(this.elementRef)}}})}}return R=U,(0,c.A)(U,"\u0275fac",function($){return new($||R)(de.rXU(de.zZn),de.rXU(de.aKT))}),(0,c.A)(U,"\u0275dir",de.FsC({type:R,hostBindings:function($,ae){1&$&&de.bIt("ionBlur",function(ct){return ae._handleBlurEvent(ct.target)})}})),U})();const mi=R=>{Fi(()=>{const U=R.nativeElement,ee=null!=U.value&&U.value.toString().length>0,$=Nt(U);_t(U,$);const ae=U.closest("ion-item");ae&&_t(ae,ee?[...$,"item-has-value"]:$)})},Nt=R=>{const U=R.classList,ee=[];for(let $=0;${const ee=R.classList;ee.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ee.add(...U)},jt=(R,U)=>R.substring(0,U.length)===U;class Tn{shouldDetach(U){return!1}shouldAttach(U){return!1}store(U,ee){}retrieve(U){return null}shouldReuseRoute(U,ee){if(U.routeConfig!==ee.routeConfig)return!1;const $=U.params,ae=ee.params,ke=Object.keys($),ct=Object.keys(ae);if(ke.length!==ct.length)return!1;for(const Gt of ke)if(ae[Gt]!==$[Gt])return!1;return!0}}class he{constructor(U){(0,c.A)(this,"ctrl",void 0),this.ctrl=U}create(U){return this.ctrl.create(U||{})}dismiss(U,ee,$){return this.ctrl.dismiss(U,ee,$)}getTop(){return this.ctrl.getTop()}}},7863:(Dn,At,x)=>{"use strict";x.d(At,{hG:()=>vi,U1:()=>Vn,Jm:()=>rr,b_:()=>bt,I9:()=>Ft,ME:()=>Jt,HW:()=>on,tN:()=>Ar,ZB:()=>An,hU:()=>sn,W9:()=>Kt,M0:()=>jn,lO:()=>ii,eU:()=>er,iq:()=>Pn,$w:()=>Ii,uz:()=>zr,Dg:()=>ue,he:()=>ge,nf:()=>Ne,oS:()=>et,MC:()=>Ye,cA:()=>Lt,To:()=>ir,Ki:()=>Fi,Rg:()=>Ir,ln:()=>_t,HP:()=>ae,nc:()=>qt,BC:()=>$n,ai:()=>$r,bv:()=>Li,Xi:()=>ur,_t:()=>Kr,N7:()=>Fr,oY:()=>Er,Gw:()=>K});var g=x(9842),c=x(4438),de=x(4341),Fe=x(3656),W=x(1635),Ie=x(3726),te=x(177),Ge=x(305),Ve=(x(9986),x(2725),x(8454),x(3314),x(8607),x(3664)),it=x(464),It=x(5465),at=x(6002),xt=(x(8476),x(9672));x(1970),x(6411);var He=x(467);const Je=Ve.i,mt=function(){var S=(0,He.A)(function*(Q,me){if(!(typeof window>"u"))return yield Je(),(0,xt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),me)});return function(me,P){return S.apply(this,arguments)}}(),Ce=["*"],nt=["outletContent"];let K=(()=>{var S;class Q extends Fe.fL{constructor(P,_e){super(P,_e)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,g.A)(Q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,_e){1&P&&c.bIt("ionInput",function(mr){return _e._handleInputEvent(mr.target)})},features:[c.Jv_([{provide:de.kq,useExisting:S,multi:!0}]),c.Vt3]})),Q})();const q=(S,Q)=>{const me=S.prototype;Q.forEach(P=>{Object.defineProperty(me,P,{get(){return this.el[P]},set(_e){this.z.runOutsideAngular(()=>this.el[P]=_e)},configurable:!0})})},ie=(S,Q)=>{const me=S.prototype;Q.forEach(P=>{me[P]=function(){const _e=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,_e))}})},se=(S,Q,me)=>{me.forEach(P=>S[P]=(0,Ie.R)(Q,P))};function Xe(S){return function(me){const{defineCustomElementFn:P,inputs:_e,methods:st}=S;return void 0!==P&&P(),_e&&q(me,_e),st&&ie(me,st),me}}let Vn=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({})],Q),Q})(),rr=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],Q),Q})(),bt=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],Q),Q})(),Ft=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["mode"]})],Q),Q})(),Jt=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","mode","translucent"]})],Q),Q})(),on=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","mode"]})],Q),Q})(),Ar=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","mode"]})],Q),Q})(),An=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","disabled","mode","outline"]})],Q),Q})(),sn=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],Q),Q})(),Kt=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],Q),Q})(),jn=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["collapse","mode","translucent"]})],Q),Q})(),ii=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["fixed"]})],Q),Q})(),er=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["collapse","mode","translucent"]})],Q),Q})(),Pn=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],Q),Q})(),Ii=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],Q),Q})(),zr=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],Q),Q})(),ue=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","mode","sticky"]})],Q),Q})(),ge=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","mode","position"]})],Q),Q})(),Ne=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],Q),Q})(),et=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],Q),Q})(),Ye=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["autoHide","color","disabled","menu","mode","type"]})],Q),Q})(),Lt=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["autoHide","menu"]})],Q),Q})(),ir=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],Q),Q})(),Fi=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],Q),Q})(),_t=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({})],Q),Q})(),ae=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["contentId","disabled","when"]})],Q),Q})(),qt=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement,se(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],Q),Q})(),$n=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","size"]})],Q),Q})(),$r=(()=>{var S;let Q=((0,g.A)(S=class{constructor(P,_e,st){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=st,P.detach(),this.el=_e.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Ce,decls:1,vars:0,template:function(P,_e){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return Q=(0,W.Cg)([Xe({inputs:["color","mode"]})],Q),Q})(),Ir=(()=>{var S;class Q extends Fe.Rg{constructor(P,_e,st,mr,Ei,H,le,Se){super(P,_e,st,mr,Ei,H,le,Se),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=Se}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)(c.kS0("name"),c.kS0("tabs"),c.rXU(te.aZ),c.rXU(c.aKT),c.rXU(Ge.Ix),c.rXU(c.SKi),c.rXU(Ge.nX),c.rXU(S,12))}),(0,g.A)(Q,"\u0275cmp",c.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(P,_e){if(1&P&&c.GBs(nt,7,c.c1b),2&P){let st;c.mGM(st=c.lsd())&&(_e.outletContent=st.first)}},features:[c.Vt3],ngContentSelectors:Ce,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,_e){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),Q})(),Fr=(()=>{var S;class Q extends Fe.CE{}return S=Q,(0,g.A)(Q,"\u0275fac",(()=>{let me;return function(_e){return(me||(me=c.xGo(S)))(_e||S)}})()),(0,g.A)(Q,"\u0275dir",c.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),Q})(),Er=(()=>{var S;class Q extends Fe.pF{}return S=Q,(0,g.A)(Q,"\u0275fac",(()=>{let me;return function(_e){return(me||(me=c.xGo(S)))(_e||S)}})()),(0,g.A)(Q,"\u0275dir",c.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),Q})();const kn={provide:de.cz,useExisting:(0,c.Rfq)(()=>Ln),multi:!0};let Ln=(()=>{var S;class Q extends de.zX{}return S=Q,(0,g.A)(Q,"\u0275fac",(()=>{let me;return function(_e){return(me||(me=c.xGo(S)))(_e||S)}})()),(0,g.A)(Q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,_e){2&P&&c.BMQ("max",_e._enabled?_e.max:null)},features:[c.Jv_([kn]),c.Vt3]})),Q})();const _o={provide:de.cz,useExisting:(0,c.Rfq)(()=>ai),multi:!0};let ai=(()=>{var S;class Q extends de.VZ{}return S=Q,(0,g.A)(Q,"\u0275fac",(()=>{let me;return function(_e){return(me||(me=c.xGo(S)))(_e||S)}})()),(0,g.A)(Q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,_e){2&P&&c.BMQ("min",_e._enabled?_e.min:null)},features:[c.Jv_([_o]),c.Vt3]})),Q})(),vi=(()=>{var S;class Q extends Fe.Kb{constructor(){super(at.a)}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(Q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),Q})(),ur=(()=>{var S;class Q extends Fe.Kb{constructor(){super(at.l)}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(Q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),Q})(),Kr=(()=>{var S;class Q extends Fe._t{constructor(){super(It.m)}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(Q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),Q})(),_i=(()=>{var S;class Q extends Fe.Kb{constructor(){super(at.m),(0,g.A)(this,"angularDelegate",(0,c.WQX)(Fe.Yq)),(0,g.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,g.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(Q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac})),Q})();class Lo extends Fe.Kb{constructor(){super(at.c),(0,g.A)(this,"angularDelegate",(0,c.WQX)(Fe.Yq)),(0,g.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,g.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(Q){return super.create({...Q,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Do=(S,Q,me)=>()=>{const P=Q.defaultView;if(P&&typeof window<"u"){(0,it.s)({...S,_zoneGate:st=>me.run(st)});const _e="__zone_symbol__addEventListener"in Q.body?"__zone_symbol__addEventListener":"addEventListener";return function Ke(){var S=[];if(typeof window<"u"){var Q=window;(!Q.customElements||Q.Element&&(!Q.Element.prototype.closest||!Q.Element.prototype.matches||!Q.Element.prototype.remove||!Q.Element.prototype.getRootNode))&&S.push(x.e(7278).then(x.t.bind(x,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||Q.NodeList&&!Q.NodeList.prototype.forEach||!Q.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(x.e(9329).then(x.t.bind(x,7783,23)))}return Promise.all(S)}().then(()=>mt(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Fe.er,jmp:st=>me.runOutsideAngular(st),ael(st,mr,Ei,H){st[_e](mr,Ei,H)},rel(st,mr,Ei,H){st.removeEventListener(mr,Ei,H)}}))}};let Li=(()=>{var S;class Q{static forRoot(P={}){return{ngModule:Q,providers:[{provide:Fe.sR,useValue:P},{provide:c.hnV,useFactory:Do,multi:!0,deps:[Fe.sR,te.qQ,c.SKi]},Fe.Yq,(0,Fe.YV)()]}}}return S=Q,(0,g.A)(Q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(Q,"\u0275mod",c.$C({type:S})),(0,g.A)(Q,"\u0275inj",c.G2t({providers:[_i,Lo],imports:[te.MD]})),Q})()},2214:(Dn,At,x)=>{"use strict";x.d(At,{Dk:()=>g.Dk,KO:()=>g.KO,Sx:()=>g.Sx,Wp:()=>g.Wp});var g=x(7852);(0,g.KO)("firebase","10.12.2","app")},4688:(Dn,At,x)=>{"use strict";x.d(At,{$P:()=>ft,sN:()=>Ke,eS:()=>yt});var g=x(467),c=x(4438),de=x(1413),Fe=x(6129);class W extends de.B{constructor(Je=1/0,mt=1/0,Ce=Fe.U){super(),this._bufferSize=Je,this._windowTime=mt,this._timestampProvider=Ce,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=mt===1/0,this._bufferSize=Math.max(1,Je),this._windowTime=Math.max(1,mt)}next(Je){const{isStopped:mt,_buffer:Ce,_infiniteTimeWindow:nt,_timestampProvider:Rt,_windowTime:zt}=this;mt||(Ce.push(Je),!nt&&Ce.push(Rt.now()+zt)),this._trimBuffer(),super.next(Je)}_subscribe(Je){this._throwIfClosed(),this._trimBuffer();const mt=this._innerSubscribe(Je),{_infiniteTimeWindow:Ce,_buffer:nt}=this,Rt=nt.slice();for(let zt=0;zt{let Rt=function Ve(He){return He instanceof Date&&!isNaN(He)}(He)?+He-mt.now():He;Rt<0&&(Rt=0);let zt=0;return mt.schedule(function(){nt.closed||(nt.next(zt++),0<=Ce?this.schedule(void 0,Ce):nt.complete())},Rt)})}(He,Je);return function Ue(He,Je){return(0,Qe.N)((mt,Ce)=>{const{leading:nt=!0,trailing:Rt=!1}=null!=Je?Je:{};let zt=!1,Et=null,Be=null,tn=!1;const Ze=()=>{null==Be||Be.unsubscribe(),Be=null,Rt&&(K(),tn&&Ce.complete())},De=()=>{Be=null,tn&&Ce.complete()},z=q=>Be=(0,Ee.Tg)(He(q)).subscribe((0,we._)(Ce,Ze,De)),K=()=>{if(zt){zt=!1;const q=Et;Et=null,Ce.next(q),!tn&&z(q)}};mt.subscribe((0,we._)(Ce,q=>{zt=!0,Et=q,(!Be||Be.closed)&&(nt?K():z(q))},()=>{tn=!0,(!(Rt&&zt&&Be)||Be.closed)&&Ce.complete()}))})}(()=>Ce,mt)}var at=x(5558);class gt{constructor(){this.subject=new W(1),this.subscriptions=new Ie.yU}doFilter(Je){this.subject.next(Je)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Je,mt){this.subscriptions.add(this.subject.subscribe(Ce=>{if(Ce[Je]){const nt=Ce[Je].currentValue;null!=nt&&mt(nt)}}))}has(Je,mt){this.subscriptions.add(this.subject.subscribe(Ce=>{Ce[Je]&&mt(Ce[Je].currentValue)}))}notFirst(Je,mt){this.subscriptions.add(this.subject.subscribe(Ce=>{Ce[Je]&&!Ce[Je].isFirstChange()&&mt(Ce[Je].currentValue)}))}notFirstAndEmpty(Je,mt){this.subscriptions.add(this.subject.subscribe(Ce=>{if(Ce[Je]&&!Ce[Je].isFirstChange()){const nt=Ce[Je].currentValue;null!=nt&&mt(nt)}}))}}const xt=new c.nKC("NGX_ECHARTS_CONFIG");let ft=(()=>{var He;class Je{constructor(Ce,nt,Rt){this.el=nt,this.ngZone=Rt,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new W(1),this.resize$=new de.B,this.changeFilter=new gt,this.resizeObFired=!1,this.echarts=Ce.echarts,this.theme=Ce.theme||null}ngOnChanges(Ce){this.changeFilter.doFilter(Ce)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(It(100,te.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(Ce=>{for(const nt of Ce)nt.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",Ce=>this.onOptionsChange(Ce)),this.changeFilter.notFirstAndEmpty("merge",Ce=>this.setOption(Ce)),this.changeFilter.has("loading",Ce=>this.toggleLoading(!!Ce)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(Ce){this.chart?Ce?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(nt=>Ce?nt.showLoading(this.loadingType,this.loadingOpts):nt.hideLoading())}setOption(Ce,nt){if(this.chart)try{this.chart.setOption(Ce,nt)}catch(Rt){console.error(Rt),this.optionsError.emit(Rt)}}refreshChart(){var Ce=this;return(0,g.A)(function*(){Ce.dispose(),yield Ce.initChart()})()}createChart(){const Ce=this.el.nativeElement;if(window&&window.getComputedStyle){const nt=window.getComputedStyle(Ce,null).getPropertyValue("height");(!nt||"0px"===nt)&&(!Ce.style.height||"0px"===Ce.style.height)&&(Ce.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Rt})=>Rt(Ce,this.theme,this.initOpts)))}initChart(){var Ce=this;return(0,g.A)(function*(){yield Ce.onOptionsChange(Ce.options),Ce.merge&&Ce.chart&&Ce.setOption(Ce.merge)})()}onOptionsChange(Ce){var nt=this;return(0,g.A)(function*(){Ce&&(nt.chart||(nt.chart=yield nt.createChart(),nt.chart$.next(nt.chart),nt.chartInit.emit(nt.chart)),nt.setOption(nt.options,!0))})()}createLazyEvent(Ce){return this.chartInit.pipe((0,at.n)(nt=>new Ge.c(Rt=>(nt.on(Ce,zt=>this.ngZone.run(()=>Rt.next(zt))),()=>{this.chart&&(this.chart.isDisposed()||nt.off(Ce))}))))}}return(He=Je).\u0275fac=function(Ce){return new(Ce||He)(c.rXU(xt),c.rXU(c.aKT),c.rXU(c.SKi))},He.\u0275dir=c.FsC({type:He,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Je})();const yt=(He={})=>({provide:xt,useFactory:()=>({...He,echarts:()=>x.e(9697).then(x.bind(x,9697))})}),Pe=He=>({provide:xt,useValue:He});let Ke=(()=>{var He;class Je{static forRoot(Ce){return{ngModule:Je,providers:[Pe(Ce)]}}static forChild(){return{ngModule:Je}}}return(He=Je).\u0275fac=function(Ce){return new(Ce||He)},He.\u0275mod=c.$C({type:He}),He.\u0275inj=c.G2t({}),Je})()},467:(Dn,At,x)=>{"use strict";function g(de,Fe,W,Ie,te,Ge,Qe){try{var we=de[Ge](Qe),Ee=we.value}catch(Ue){return void W(Ue)}we.done?Fe(Ee):Promise.resolve(Ee).then(Ie,te)}function c(de){return function(){var Fe=this,W=arguments;return new Promise(function(Ie,te){var Ge=de.apply(Fe,W);function Qe(Ee){g(Ge,Ie,te,Qe,we,"next",Ee)}function we(Ee){g(Ge,Ie,te,Qe,we,"throw",Ee)}Qe(void 0)})}}x.d(At,{A:()=>c})},9842:(Dn,At,x)=>{"use strict";function g(W){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ie){return typeof Ie}:function(Ie){return Ie&&"function"==typeof Symbol&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie})(W)}function Fe(W,Ie,te){return(Ie=function de(W){var Ie=function c(W,Ie){if("object"!=g(W)||!W)return W;var te=W[Symbol.toPrimitive];if(void 0!==te){var Ge=te.call(W,Ie||"default");if("object"!=g(Ge))return Ge;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ie?String:Number)(W)}(W,"string");return"symbol"==g(Ie)?Ie:String(Ie)}(Ie))in W?Object.defineProperty(W,Ie,{value:te,enumerable:!0,configurable:!0,writable:!0}):W[Ie]=te,W}x.d(At,{A:()=>Fe})},1635:(Dn,At,x)=>{"use strict";function Fe(z,K){var q={};for(var ie in z)Object.prototype.hasOwnProperty.call(z,ie)&&K.indexOf(ie)<0&&(q[ie]=z[ie]);if(null!=z&&"function"==typeof Object.getOwnPropertySymbols){var se=0;for(ie=Object.getOwnPropertySymbols(z);se=0;nn--)(Xe=z[nn])&&(be=(se<3?Xe(be):se>3?Xe(K,q,be):Xe(K,q))||be);return se>3&&be&&Object.defineProperty(K,q,be),be}function Ue(z,K,q,ie){return new(q||(q=Promise))(function(be,Xe){function nn(Mn){try{rn(ie.next(Mn))}catch(Vn){Xe(Vn)}}function En(Mn){try{rn(ie.throw(Mn))}catch(Vn){Xe(Vn)}}function rn(Mn){Mn.done?be(Mn.value):function se(be){return be instanceof q?be:new q(function(Xe){Xe(be)})}(Mn.value).then(nn,En)}rn((ie=ie.apply(z,K||[])).next())})}function yt(z){return this instanceof yt?(this.v=z,this):new yt(z)}function Pe(z,K,q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,ie=q.apply(z,K||[]),be=[];return se={},Xe("next"),Xe("throw"),Xe("return"),se[Symbol.asyncIterator]=function(){return this},se;function Xe(qn){ie[qn]&&(se[qn]=function(Zn){return new Promise(function(Xn,wn){be.push([qn,Zn,Xn,wn])>1||nn(qn,Zn)})})}function nn(qn,Zn){try{!function En(qn){qn.value instanceof yt?Promise.resolve(qn.value.v).then(rn,Mn):Vn(be[0][2],qn)}(ie[qn](Zn))}catch(Xn){Vn(be[0][3],Xn)}}function rn(qn){nn("next",qn)}function Mn(qn){nn("throw",qn)}function Vn(qn,Zn){qn(Zn),be.shift(),be.length&&nn(be[0][0],be[0][1])}}function He(z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,K=z[Symbol.asyncIterator];return K?K.call(z):(z=function It(z){var K="function"==typeof Symbol&&Symbol.iterator,q=K&&z[K],ie=0;if(q)return q.call(z);if(z&&"number"==typeof z.length)return{next:function(){return z&&ie>=z.length&&(z=void 0),{value:z&&z[ie++],done:!z}}};throw new TypeError(K?"Object is not iterable.":"Symbol.iterator is not defined.")}(z),q={},ie("next"),ie("throw"),ie("return"),q[Symbol.asyncIterator]=function(){return this},q);function ie(be){q[be]=z[be]&&function(Xe){return new Promise(function(nn,En){!function se(be,Xe,nn,En){Promise.resolve(En).then(function(rn){be({value:rn,done:nn})},Xe)}(nn,En,(Xe=z[be](Xe)).done,Xe.value)})}}}x.d(At,{AQ:()=>Pe,Cg:()=>W,N3:()=>yt,Tt:()=>Fe,sH:()=>Ue,xN:()=>He}),"function"==typeof SuppressedError&&SuppressedError}},Dn=>{Dn(Dn.s=63)}]); \ No newline at end of file diff --git a/www/runtime.51508e8f1bc47a77.js b/www/runtime.51508e8f1bc47a77.js deleted file mode 100644 index cdd36e1..0000000 --- a/www/runtime.51508e8f1bc47a77.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},g={};function f(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(r,a,d,b)=>{if(!a){var t=1/0;for(c=0;c=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[c-1][2]>b;c--)e[c]=e[c-1];e[c]=[a,d,b]},f.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return f.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,d){if(1&d&&(a=this(a)),8&d||"object"==typeof a&&a&&(4&d&&a.__esModule||16&d&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var c={};r=r||[null,e({}),e([]),e(e)];for(var t=2&d&&a;"object"==typeof t&&!~r.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>c[l]=()=>a[l]);return c.default=()=>a,f.d(b,c),b}})(),f.d=(e,r)=>{for(var a in r)f.o(r,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((r,a)=>(f.f[a](e,r),r),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{246:"23bae9658c2419a4",441:"c8d135e5d56e5723",839:"4537c27e051b9484",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1205:"faa9b4a189e3a0f4",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",1581:"480004663f81650f",2051:"8dc23f3491505a39",2069:"0a86d46b8bc9af99",2075:"1971ba880d06cc30",2076:"cadc79fb350c1832",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"24edfec633e52faa",3935:"b51e9f52d3a7c15c",3998:"7d38839bb353ce4f",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4348:"fd00493c5150e85d",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5722:"33d819aa7598e390",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6656:"78b0bb9a73d9c579",6688:"617c2a0e9b68bddb",6840:"fd32dada9c8ec44e",6927:"4b66cb28ea6f6659",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"c7c08b4b5584dff9",7720:"78509b154c08b472",7907:"d337367f4abf1b0a",7923:"e78a08b02767326e",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8533:"4067010f335e18c2",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9697:"57e559625e67bb53",9906:"87394c885655492d",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";f.l=(a,d,b,c)=>{if(e[a])e[a].push(d);else{var t,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(d,b)=>{var c=f.o(e,d)?e[d]:void 0;if(0!==c)if(c)b.push(c[2]);else if(9121!=d){var t=new Promise((o,s)=>c=e[d]=[o,s]);b.push(c[2]=t);var l=f.p+f.u(d),n=new Error;f.l(l,o=>{if(f.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+d+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,c[1](n)}},"chunk-"+d,d)}else e[d]=0},f.O.j=d=>0===e[d];var r=(d,b)=>{var n,i,[c,t,l]=b,o=0;if(c.some(u=>0!==e[u])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(d&&d(b);o{"use strict";var e,v={},g={};function f(e){var c=g[e];if(void 0!==c)return c.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(c,a,r,b)=>{if(!a){var t=1/0;for(d=0;d=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[a,r,b]},f.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return f.d(c,{a:c}),c},(()=>{var c,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,r){if(1&r&&(a=this(a)),8&r||"object"==typeof a&&a&&(4&r&&a.__esModule||16&r&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var d={};c=c||[null,e({}),e([]),e(e)];for(var t=2&r&&a;"object"==typeof t&&!~c.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,f.d(b,d),b}})(),f.d=(e,c)=>{for(var a in c)f.o(c,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((c,a)=>(f.f[a](e,c),c),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{246:"23bae9658c2419a4",441:"c8d135e5d56e5723",839:"4537c27e051b9484",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1101:"890bda6eeb1b2e46",1102:"010dfe13f6ca7e15",1205:"faa9b4a189e3a0f4",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",1581:"480004663f81650f",2051:"8dc23f3491505a39",2069:"0a86d46b8bc9af99",2075:"1971ba880d06cc30",2076:"cadc79fb350c1832",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"24edfec633e52faa",3935:"b51e9f52d3a7c15c",3998:"7d38839bb353ce4f",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4348:"fd00493c5150e85d",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5722:"33d819aa7598e390",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6656:"78b0bb9a73d9c579",6688:"617c2a0e9b68bddb",6840:"fd32dada9c8ec44e",6927:"4b66cb28ea6f6659",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"c7c08b4b5584dff9",7720:"78509b154c08b472",7907:"d337367f4abf1b0a",7923:"e78a08b02767326e",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8533:"4067010f335e18c2",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9697:"57e559625e67bb53",9906:"87394c885655492d",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),(()=>{var e={},c="app:";f.l=(a,r,b,d)=>{if(e[a])e[a].push(r);else{var t,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:c=>c},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(r,b)=>{var d=f.o(e,r)?e[r]:void 0;if(0!==d)if(d)b.push(d[2]);else if(9121!=r){var t=new Promise((o,s)=>d=e[r]=[o,s]);b.push(d[2]=t);var l=f.p+f.u(r),n=new Error;f.l(l,o=>{if(f.o(e,r)&&(0!==(d=e[r])&&(e[r]=void 0),d)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+r+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,d[1](n)}},"chunk-"+r,r)}else e[r]=0},f.O.j=r=>0===e[r];var c=(r,b)=>{var n,i,[d,t,l]=b,o=0;if(d.some(u=>0!==e[u])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(r&&r(b);o