From c822785b6863f62955bf5a9fdf3ed26d806b3f76 Mon Sep 17 00:00:00 2001 From: Juan Cisneros Date: Tue, 4 Jun 2024 09:35:53 -0500 Subject: [PATCH] New Features: 1.Delete a product 2. Edit a product 3. Delete a step of a product New Pages: Bugs Corrected: To Be Corrected: --- www/6927.753a85103d27e3ce.js | 1 - www/6927.965bbdc204b64792.js | 1 + www/{common.89df7778967c83d8.js => common.12c32b694becf860.js} | 2 +- www/index.html | 2 +- www/main.16d23e62e84e9273.js | 1 - www/main.1ef6282d8aeaee27.js | 1 + ...{runtime.c33909fc803789db.js => runtime.f7a801804f1cf5b0.js} | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 www/6927.753a85103d27e3ce.js create mode 100644 www/6927.965bbdc204b64792.js rename www/{common.89df7778967c83d8.js => common.12c32b694becf860.js} (54%) delete mode 100644 www/main.16d23e62e84e9273.js create mode 100644 www/main.1ef6282d8aeaee27.js rename www/{runtime.c33909fc803789db.js => runtime.f7a801804f1cf5b0.js} (63%) diff --git a/www/6927.753a85103d27e3ce.js b/www/6927.753a85103d27e3ce.js deleted file mode 100644 index 7c6d4a4..0000000 --- a/www/6927.753a85103d27e3ce.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6927],{6927:($,d,u)=>{u.r(d),u.d(d,{ViewProductPageModule:()=>j});var p=u(177),P=u(4341),n=u(7863),s=u(845),m=u(467),t=u(4438),f=u(385);function g(e,i){if(1&e&&(t.j41(0,"ion-item"),t.nrm(1,"ion-input",13),t.k0s()),2&e){const r=i.$implicit;t.R7$(),t.FS9("value",r)}}function v(e,i){if(1&e&&(t.j41(0,"ion-item"),t.nrm(1,"ion-input",13),t.k0s()),2&e){const r=i.$implicit;t.R7$(),t.FS9("value",r)}}function w(e,i){if(1&e&&(t.j41(0,"ion-item"),t.nrm(1,"ion-input",13),t.k0s()),2&e){const r=i.$implicit;t.R7$(),t.FS9("value",r)}}const V=[{path:"",component:(()=>{var e;class i{constructor(o){this.route=o,this.product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]}}ngOnInit(){var o=this;return(0,m.A)(function*(){o.getProductFromParams()})()}getProductFromParams(){this.route.queryParams.subscribe(o=>{this.product=JSON.parse(o.product)}),console.log(this.product)}getAllInputValues(){const o=this.inputs.map(y=>y.value),c=this.product.productSteps.length,l=o.slice(0,c),a=o.slice(c,2*c),S=o.slice(2*c,3*c);console.log(l),console.log(a),console.log(S)}}return(e=i).\u0275fac=function(o){return new(o||e)(t.rXU(s.nX))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-view-product"]],viewQuery:function(o,c){if(1&o&&t.GBs(n.$w,5),2&o){let l;t.mGM(l=t.lsd())&&(c.inputs=l)}},decls:40,vars:2,consts:[["stepList",""],[3,"title"],[3,"fullscreen"],[1,"flex","flex-col","flex-grow","lg:flex-row","md:flex-row","min-w-full","h-full"],[1,"flex","flex-col","flex-grow"],[1,"flex","flex-row","justify-center"],[1,"flex","flex-row","justify-center","items-center","mt-auto"],["color","light"],[1,"flex","justify-center","items-center","min-w-full","p-4"],[1,"p-1"],["color","success"],["color","primary",3,"click"],["color","danger"],[3,"value"]],template:function(o,c){if(1&o){const l=t.RV6();t.nrm(0,"app-header",1),t.j41(1,"ion-content",2)(2,"div",3)(3,"ion-card",4)(4,"ion-card-header",5)(5,"ion-card-title"),t.EFF(6,"Product Steps"),t.k0s()(),t.j41(7,"ion-card-content")(8,"ion-list",null,0),t.Z7z(10,g,2,1,"ion-item",null,t.fX1),t.k0s()()(),t.j41(12,"ion-card",4)(13,"ion-card-header",5)(14,"ion-card-title"),t.EFF(15,"Product Services"),t.k0s()(),t.j41(16,"ion-card-content")(17,"ion-list"),t.Z7z(18,v,2,1,"ion-item",null,t.fX1),t.k0s()()(),t.j41(20,"ion-card",4)(21,"ion-card-header",5)(22,"ion-card-title"),t.EFF(23,"Product SLOs"),t.k0s()(),t.j41(24,"ion-card-content")(25,"ion-list"),t.Z7z(26,w,2,1,"ion-item",null,t.fX1),t.k0s()()()(),t.j41(28,"div",6)(29,"ion-item-divider",7)(30,"div",8)(31,"div",9)(32,"ion-button",10),t.EFF(33,"Add Step"),t.k0s()(),t.j41(34,"div",9)(35,"ion-button",11),t.bIt("click",function(){return t.eBV(l),t.Njj(c.getAllInputValues())}),t.EFF(36,"Edit Product"),t.k0s()(),t.j41(37,"div",9)(38,"ion-button",12),t.EFF(39,"Delete Product"),t.k0s()()()()()()}2&o&&(t.Y8G("title",c.product.productObjective),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(9),t.Dyx(c.product.productSteps),t.R7$(8),t.Dyx(c.product.productServices),t.R7$(8),t.Dyx(c.product.productSLOs))},dependencies:[n.Jm,n.b_,n.I9,n.ME,n.tN,n.W9,n.$w,n.uz,n.Dg,n.nf,n.Gw,f.l]}),i})()}];let h=(()=>{var e;class i{}return(e=i).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[s.iI.forChild(V),s.iI]}),i})();var F=u(5553);let j=(()=>{var e;class i{}return(e=i).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[p.MD,P.YN,n.bv,h,F.h]}),i})()}}]); \ No newline at end of file diff --git a/www/6927.965bbdc204b64792.js b/www/6927.965bbdc204b64792.js new file mode 100644 index 0000000..cf6920d --- /dev/null +++ b/www/6927.965bbdc204b64792.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6927],{6927:(L,m,u)=>{u.r(m),u.d(m,{ViewProductPageModule:()=>j});var g=u(177),h=u(4341),c=u(7863),a=u(845),s=u(467),e=u(4438),f=u(6241),P=u(385);function v(r,d){if(1&r){const n=e.RV6();e.j41(0,"ion-item"),e.nrm(1,"ion-input",12),e.j41(2,"ion-icon",13),e.bIt("click",function(){const o=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.deleteStep(o))}),e.k0s()()}if(2&r){const n=d.$implicit;e.R7$(),e.FS9("value",n)}}function y(r,d){if(1&r&&(e.j41(0,"ion-item"),e.nrm(1,"ion-input",12),e.k0s()),2&r){const n=d.$implicit;e.R7$(),e.FS9("value",n)}}function S(r,d){if(1&r&&(e.j41(0,"ion-item"),e.nrm(1,"ion-input",12),e.k0s()),2&r){const n=d.$implicit;e.R7$(),e.FS9("value",n)}}const w=[{path:"",component:(()=>{var r;class d{constructor(t,o,i,l,p){this.route=t,this.productService=o,this.alertCtrl=i,this.loadingCtrl=l,this.router=p,this.product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]},this.orgName="orgName"}ngOnInit(){var t=this;return(0,s.A)(function*(){t.getProductFromParams(),t.getOrgName()})()}getOrgName(){const t=localStorage.getItem("user");if(!t)return;const o=JSON.parse(t);this.orgName=o.orgName}getProductFromParams(){this.route.queryParams.subscribe(t=>{this.product=JSON.parse(t.product)}),console.log(this.product)}upDateFields(){var t=this;return(0,s.A)(function*(){yield t.showLoading();const o=t.inputs.map(k=>k.value),i=t.product.productSteps.length,l=o.slice(0,i),p=o.slice(i,2*i),x=o.slice(2*i,3*i);t.product.productSteps=l,t.product.productServices=p,t.product.productSLOs=x,yield t.productService.addProduct(t.product,t.orgName),yield t.hideLoading(),yield t.showAlert("Product updated successfully")})()}deleteProduct(){var t=this;return(0,s.A)(function*(){yield t.showLoading(),yield t.productService.removeProduct(t.orgName,t.product.productObjective),yield t.hideLoading(),yield t.showAlert("Product deleted successfully"),yield t.router.navigate(["/model-product"])})()}deleteStep(t){var o=this;return(0,s.A)(function*(){yield o.showLoading();const i=o.product.productSteps.indexOf(t);o.product.productSteps.splice(i,1),o.product.productServices.splice(i,1),o.product.productSLOs.splice(i,1),yield o.productService.addProduct(o.product,o.orgName),yield o.hideLoading(),yield o.showAlert("Product step deleted successfully")})()}addStep(){var t=this;return(0,s.A)(function*(){var i;yield(yield t.alertCtrl.create({header:"Add Step",inputs:[{name:"step",type:"text",placeholder:"Step"},{name:"service",type:"text",placeholder:"Service"},{name:"slo",type:"text",placeholder:"SLO"}],buttons:[{text:"Cancel",role:"cancel"},{text:"Add",handler:(i=(0,s.A)(function*(l){yield t.showLoading(),t.product.productSteps.push(l.step),t.product.productServices.push(l.service),t.product.productSLOs.push(l.slo),yield t.productService.addProduct(t.product,t.orgName),yield t.hideLoading(),yield t.showAlert("Product step added successfully")}),function(p){return i.apply(this,arguments)})}]})).present()})()}showAlert(t){var o=this;return(0,s.A)(function*(){yield(yield o.alertCtrl.create({header:"Product Update",message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}}return(r=d).\u0275fac=function(t){return new(t||r)(e.rXU(a.nX),e.rXU(f.b),e.rXU(c.hG),e.rXU(c.Xi),e.rXU(a.Ix))},r.\u0275cmp=e.VBU({type:r,selectors:[["app-view-product"]],viewQuery:function(t,o){if(1&t&&e.GBs(c.$w,5),2&t){let i;e.mGM(i=e.lsd())&&(o.inputs=i)}},decls:39,vars:2,consts:[[3,"title"],[3,"fullscreen"],[1,"flex","flex-col","flex-grow","lg:flex-row","md:flex-row","min-w-full","h-full"],[1,"flex","flex-col","flex-grow"],[1,"flex","flex-row","justify-center"],[1,"flex","flex-row","justify-center","items-center","mt-auto"],["color","light"],[1,"flex","justify-center","items-center","min-w-full","p-4"],[1,"p-1"],["color","success",3,"click"],["color","primary",3,"click"],["color","danger",3,"click"],[3,"value"],["slot","end","name","trash",3,"click"]],template:function(t,o){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"div",2)(3,"ion-card",3)(4,"ion-card-header",4)(5,"ion-card-title"),e.EFF(6,"Product Steps"),e.k0s()(),e.j41(7,"ion-card-content")(8,"ion-list"),e.Z7z(9,v,3,1,"ion-item",null,e.fX1),e.k0s()()(),e.j41(11,"ion-card",3)(12,"ion-card-header",4)(13,"ion-card-title"),e.EFF(14,"Product Services"),e.k0s()(),e.j41(15,"ion-card-content")(16,"ion-list"),e.Z7z(17,y,2,1,"ion-item",null,e.fX1),e.k0s()()(),e.j41(19,"ion-card",3)(20,"ion-card-header",4)(21,"ion-card-title"),e.EFF(22,"Product SLOs"),e.k0s()(),e.j41(23,"ion-card-content")(24,"ion-list"),e.Z7z(25,S,2,1,"ion-item",null,e.fX1),e.k0s()()()(),e.j41(27,"div",5)(28,"ion-item-divider",6)(29,"div",7)(30,"div",8)(31,"ion-button",9),e.bIt("click",function(){return o.addStep()}),e.EFF(32,"Add Step"),e.k0s()(),e.j41(33,"div",8)(34,"ion-button",10),e.bIt("click",function(){return o.upDateFields()}),e.EFF(35,"Edit Product"),e.k0s()(),e.j41(36,"div",8)(37,"ion-button",11),e.bIt("click",function(){return o.deleteProduct()}),e.EFF(38,"Delete Product"),e.k0s()()()()()()),2&t&&(e.Y8G("title",o.product.productObjective),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(8),e.Dyx(o.product.productSteps),e.R7$(8),e.Dyx(o.product.productServices),e.R7$(8),e.Dyx(o.product.productSLOs))},dependencies:[c.Jm,c.b_,c.I9,c.ME,c.tN,c.W9,c.iq,c.$w,c.uz,c.Dg,c.nf,c.Gw,P.l]}),d})()}];let V=(()=>{var r;class d{}return(r=d).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[a.iI.forChild(w),a.iI]}),d})();var F=u(5553);let j=(()=>{var r;class d{}return(r=d).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[g.MD,h.YN,c.bv,V,F.h]}),d})()}}]); \ No newline at end of file diff --git a/www/common.89df7778967c83d8.js b/www/common.12c32b694becf860.js similarity index 54% rename from www/common.89df7778967c83d8.js rename to www/common.12c32b694becf860.js index 17fef5d..d2a20a5 100644 --- a/www/common.89df7778967c83d8.js +++ b/www/common.12c32b694becf860.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2076],{1263:(y,f,i)=>{i.d(f,{c:()=>r});var _=i(9672),c=i(1086),a=i(8607);const r=(t,s)=>{let e,n;const l=(u,p,E)=>{if(typeof document>"u")return;const w=document.elementFromPoint(u,p);w&&s(w)&&!w.disabled?w!==e&&(o(),d(w,E)):o()},d=(u,p)=>{e=u,n||(n=e);const E=e;(0,_.w)(()=>E.classList.add("ion-activated")),p()},o=(u=!1)=>{if(!e)return;const p=e;(0,_.w)(()=>p.classList.remove("ion-activated")),u&&n!==e&&e.click(),e=void 0};return(0,a.createGesture)({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:u=>l(u.currentX,u.currentY,c.a),onMove:u=>l(u.currentX,u.currentY,c.b),onEnd:()=>{o(!0),(0,c.h)(),n=void 0}})}},8438:(y,f,i)=>{i.d(f,{g:()=>c});var _=i(8476);const c=()=>{if(void 0!==_.w)return _.w.Capacitor}},5572:(y,f,i)=>{i.d(f,{c:()=>_,i:()=>c});const _=(a,r,t)=>"function"==typeof t?t(a,r):"string"==typeof t?a[t]===r[t]:Array.isArray(r)?r.includes(a):a===r,c=(a,r,t)=>void 0!==a&&(Array.isArray(a)?a.some(s=>_(s,r,t)):_(a,r,t))},3351:(y,f,i)=>{i.d(f,{g:()=>_});const _=(s,e,n,l,d)=>a(s[1],e[1],n[1],l[1],d).map(o=>c(s[0],e[0],n[0],l[0],o)),c=(s,e,n,l,d)=>d*(3*e*Math.pow(d-1,2)+d*(-3*n*d+3*n+l*d))-s*Math.pow(d-1,3),a=(s,e,n,l,d)=>t((l-=d)-3*(n-=d)+3*(e-=d)-(s-=d),3*n-6*e+3*s,3*e-3*s,s).filter(u=>u>=0&&u<=1),t=(s,e,n,l)=>{if(0===s)return((s,e,n)=>{const l=e*e-4*s*n;return l<0?[]:[(-e+Math.sqrt(l))/(2*s),(-e-Math.sqrt(l))/(2*s)]})(e,n,l);const d=(3*(n/=s)-(e/=s)*e)/3,o=(2*e*e*e-9*e*n+27*(l/=s))/27;if(0===d)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-d),-Math.sqrt(-d)];const u=Math.pow(o/2,2)+Math.pow(d/3,3);if(0===u)return[Math.pow(o/2,.5)-e/3];if(u>0)return[Math.pow(-o/2+Math.sqrt(u),1/3)-Math.pow(o/2+Math.sqrt(u),1/3)-e/3];const p=Math.sqrt(Math.pow(-d/3,3)),E=Math.acos(-o/(2*Math.sqrt(Math.pow(-d/3,3)))),w=2*Math.pow(p,1/3);return[w*Math.cos(E/3)-e/3,w*Math.cos((E+2*Math.PI)/3)-e/3,w*Math.cos((E+4*Math.PI)/3)-e/3]}},5083:(y,f,i)=>{i.d(f,{i:()=>_});const _=c=>c&&""!==c.dir?"rtl"===c.dir.toLowerCase():"rtl"===(null==document?void 0:document.dir.toLowerCase())},3126:(y,f,i)=>{i.r(f),i.d(f,{startFocusVisible:()=>r});const _="ion-focused",a=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],r=t=>{let s=[],e=!0;const n=t?t.shadowRoot:document,l=t||document.body,d=M=>{s.forEach(h=>h.classList.remove(_)),M.forEach(h=>h.classList.add(_)),s=M},o=()=>{e=!1,d([])},u=M=>{e=a.includes(M.key),e||d([])},p=M=>{if(e&&void 0!==M.composedPath){const h=M.composedPath().filter(g=>!!g.classList&&g.classList.contains("ion-focusable"));d(h)}},E=()=>{n.activeElement===l&&d([])};return n.addEventListener("keydown",u),n.addEventListener("focusin",p),n.addEventListener("focusout",E),n.addEventListener("touchstart",o,{passive:!0}),n.addEventListener("mousedown",o),{destroy:()=>{n.removeEventListener("keydown",u),n.removeEventListener("focusin",p),n.removeEventListener("focusout",E),n.removeEventListener("touchstart",o),n.removeEventListener("mousedown",o)},setFocus:d}}},1086:(y,f,i)=>{i.d(f,{I:()=>c,a:()=>e,b:()=>n,c:()=>s,d:()=>d,h:()=>l});var _=i(8438),c=function(o){return o.Heavy="HEAVY",o.Medium="MEDIUM",o.Light="LIGHT",o}(c||{});const r={getEngine(){const o=(0,_.g)();if(null!=o&&o.isPluginAvailable("Haptics"))return o.Plugins.Haptics},available(){if(!this.getEngine())return!1;const u=(0,_.g)();return"web"!==(null==u?void 0:u.getPlatform())||typeof navigator<"u"&&void 0!==navigator.vibrate},impact(o){const u=this.getEngine();u&&u.impact({style:o.style})},notification(o){const u=this.getEngine();u&&u.notification({type:o.type})},selection(){this.impact({style:c.Light})},selectionStart(){const o=this.getEngine();o&&o.selectionStart()},selectionChanged(){const o=this.getEngine();o&&o.selectionChanged()},selectionEnd(){const o=this.getEngine();o&&o.selectionEnd()}},t=()=>r.available(),s=()=>{t()&&r.selection()},e=()=>{t()&&r.selectionStart()},n=()=>{t()&&r.selectionChanged()},l=()=>{t()&&r.selectionEnd()},d=o=>{t()&&r.impact(o)}},909:(y,f,i)=>{i.d(f,{I:()=>s,a:()=>d,b:()=>t,c:()=>p,d:()=>w,f:()=>o,g:()=>l,i:()=>n,p:()=>E,r:()=>M,s:()=>u});var _=i(467),c=i(4920),a=i(4929);const t="ion-content",s=".ion-content-scroll-host",e=`${t}, ${s}`,n=h=>"ION-CONTENT"===h.tagName,l=function(){var h=(0,_.A)(function*(g){return n(g)?(yield new Promise(m=>(0,c.c)(g,m)),g.getScrollElement()):g});return function(m){return h.apply(this,arguments)}}(),d=h=>h.querySelector(s)||h.querySelector(e),o=h=>h.closest(e),u=(h,g)=>n(h)?h.scrollToTop(g):Promise.resolve(h.scrollTo({top:0,left:0,behavior:g>0?"smooth":"auto"})),p=(h,g,m,O)=>n(h)?h.scrollByPoint(g,m,O):Promise.resolve(h.scrollBy({top:m,left:g,behavior:O>0?"smooth":"auto"})),E=h=>(0,a.b)(h,t),w=h=>{if(n(h)){const m=h.scrollY;return h.scrollY=!1,m}return h.style.setProperty("overflow","hidden"),!0},M=(h,g)=>{n(h)?h.scrollY=g:h.style.removeProperty("overflow")}},3992:(y,f,i)=>{i.d(f,{a:()=>_,b:()=>p,c:()=>e,d:()=>E,e:()=>P,f:()=>s,g:()=>w,h:()=>a,i:()=>c,j:()=>v,k:()=>C,l:()=>n,m:()=>o,n:()=>M,o:()=>d,p:()=>t,q:()=>r,r:()=>D,s:()=>L,t:()=>u,u:()=>m,v:()=>O,w:()=>l,x:()=>h,y:()=>g});const _="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",a="data:image/svg+xml;utf8,",r="data:image/svg+xml;utf8,",t="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",e="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",p="data:image/svg+xml;utf8,",E="data:image/svg+xml;utf8,",w="data:image/svg+xml;utf8,",M="data:image/svg+xml;utf8,",h="data:image/svg+xml;utf8,",g="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",O="data:image/svg+xml;utf8,",D="data:image/svg+xml;utf8,",v="data:image/svg+xml;utf8,",C="data:image/svg+xml;utf8,",L="data:image/svg+xml;utf8,",P="data:image/svg+xml;utf8,"},243:(y,f,i)=>{i.d(f,{c:()=>r,g:()=>t});var _=i(8476),c=i(4920),a=i(4929);const r=(e,n,l)=>{let d,o;if(void 0!==_.w&&"MutationObserver"in _.w){const w=Array.isArray(n)?n:[n];d=new MutationObserver(M=>{for(const h of M)for(const g of h.addedNodes)if(g.nodeType===Node.ELEMENT_NODE&&w.includes(g.slot))return l(),void(0,c.r)(()=>u(g))}),d.observe(e,{childList:!0,subtree:!0})}const u=w=>{var M;o&&(o.disconnect(),o=void 0),o=new MutationObserver(h=>{l();for(const g of h)for(const m of g.removedNodes)m.nodeType===Node.ELEMENT_NODE&&m.slot===n&&E()}),o.observe(null!==(M=w.parentElement)&&void 0!==M?M:w,{subtree:!0,childList:!0})},E=()=>{o&&(o.disconnect(),o=void 0)};return{destroy:()=>{d&&(d.disconnect(),d=void 0),E()}}},t=(e,n,l)=>{const d=null==e?0:e.toString().length,o=s(d,n);if(void 0===l)return o;try{return l(d,n)}catch(u){return(0,a.a)("Exception in provided `counterFormatter`.",u),o}},s=(e,n)=>`${e} / ${n}`},1622:(y,f,i)=>{i.r(f),i.d(f,{KEYBOARD_DID_CLOSE:()=>t,KEYBOARD_DID_OPEN:()=>r,copyVisualViewport:()=>D,keyboardDidClose:()=>h,keyboardDidOpen:()=>w,keyboardDidResize:()=>M,resetKeyboardAssist:()=>d,setKeyboardClose:()=>E,setKeyboardOpen:()=>p,startKeyboardAssist:()=>o,trackViewportChanges:()=>O});var _=i(4379);i(8438),i(8476);const r="ionKeyboardDidShow",t="ionKeyboardDidHide";let e={},n={},l=!1;const d=()=>{e={},n={},l=!1},o=v=>{if(_.K.getEngine())u(v);else{if(!v.visualViewport)return;n=D(v.visualViewport),v.visualViewport.onresize=()=>{O(v),w()||M(v)?p(v):h(v)&&E(v)}}},u=v=>{v.addEventListener("keyboardDidShow",C=>p(v,C)),v.addEventListener("keyboardDidHide",()=>E(v))},p=(v,C)=>{g(v,C),l=!0},E=v=>{m(v),l=!1},w=()=>!l&&e.width===n.width&&(e.height-n.height)*n.scale>150,M=v=>l&&!h(v),h=v=>l&&n.height===v.innerHeight,g=(v,C)=>{const P=new CustomEvent(r,{detail:{keyboardHeight:C?C.keyboardHeight:v.innerHeight-n.height}});v.dispatchEvent(P)},m=v=>{const C=new CustomEvent(t);v.dispatchEvent(C)},O=v=>{e=Object.assign({},n),n=D(v.visualViewport)},D=v=>({width:Math.round(v.width),height:Math.round(v.height),offsetTop:v.offsetTop,offsetLeft:v.offsetLeft,pageTop:v.pageTop,pageLeft:v.pageLeft,scale:v.scale})},4379:(y,f,i)=>{i.d(f,{K:()=>r,a:()=>a});var _=i(8438),c=function(t){return t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE",t}(c||{}),a=function(t){return t.Body="body",t.Ionic="ionic",t.Native="native",t.None="none",t}(a||{});const r={getEngine(){const t=(0,_.g)();if(null!=t&&t.isPluginAvailable("Keyboard"))return t.Plugins.Keyboard},getResizeMode(){const t=this.getEngine();return null!=t&&t.getResizeMode?t.getResizeMode().catch(s=>{if(s.code!==c.Unimplemented)throw s}):Promise.resolve(void 0)}}},4731:(y,f,i)=>{i.d(f,{c:()=>s});var _=i(467),c=i(8476),a=i(4379);const r=e=>{if(void 0===c.d||e===a.a.None||void 0===e)return null;const n=c.d.querySelector("ion-app");return null!=n?n:c.d.body},t=e=>{const n=r(e);return null===n?0:n.clientHeight},s=function(){var e=(0,_.A)(function*(n){let l,d,o,u;const p=function(){var g=(0,_.A)(function*(){const m=yield a.K.getResizeMode(),O=void 0===m?void 0:m.mode;l=()=>{void 0===u&&(u=t(O)),o=!0,E(o,O)},d=()=>{o=!1,E(o,O)},null==c.w||c.w.addEventListener("keyboardWillShow",l),null==c.w||c.w.addEventListener("keyboardWillHide",d)});return function(){return g.apply(this,arguments)}}(),E=(g,m)=>{n&&n(g,w(m))},w=g=>{if(0===u||u===t(g))return;const m=r(g);return null!==m?new Promise(O=>{const v=new ResizeObserver(()=>{m.clientHeight===u&&(v.disconnect(),O())});v.observe(m)}):void 0};return yield p(),{init:p,destroy:()=>{null==c.w||c.w.removeEventListener("keyboardWillShow",l),null==c.w||c.w.removeEventListener("keyboardWillHide",d),l=d=void 0},isKeyboardVisible:()=>o}});return function(l){return e.apply(this,arguments)}}()},7838:(y,f,i)=>{i.d(f,{c:()=>c});var _=i(467);const c=()=>{let a;return{lock:function(){var t=(0,_.A)(function*(){const s=a;let e;return a=new Promise(n=>e=n),void 0!==s&&(yield s),e});return function(){return t.apply(this,arguments)}}()}}},9001:(y,f,i)=>{i.d(f,{c:()=>a});var _=i(8476),c=i(4920);const a=(r,t,s)=>{let e;const n=()=>!(void 0===t()||void 0!==r.label||null===s()),d=()=>{const u=t();if(void 0===u)return;if(!n())return void u.style.removeProperty("width");const p=s().scrollWidth;if(0===p&&null===u.offsetParent&&void 0!==_.w&&"IntersectionObserver"in _.w){if(void 0!==e)return;const E=e=new IntersectionObserver(w=>{1===w[0].intersectionRatio&&(d(),E.disconnect(),e=void 0)},{threshold:.01,root:r});E.observe(u)}else u.style.setProperty("width",.75*p+"px")};return{calculateNotchWidth:()=>{n()&&(0,c.r)(()=>{d()})},destroy:()=>{e&&(e.disconnect(),e=void 0)}}}},7895:(y,f,i)=>{i.d(f,{S:()=>c});const c={bubbles:{dur:1e3,circles:9,fn:(a,r,t)=>{const s=a*r/t-a+"ms",e=2*Math.PI*r/t;return{r:5,style:{top:32*Math.sin(e)+"%",left:32*Math.cos(e)+"%","animation-delay":s}}}},circles:{dur:1e3,circles:8,fn:(a,r,t)=>{const s=r/t,e=a*s-a+"ms",n=2*Math.PI*s;return{r:5,style:{top:32*Math.sin(n)+"%",left:32*Math.cos(n)+"%","animation-delay":e}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(a,r)=>({r:6,style:{left:32-32*r+"%","animation-delay":-110*r+"ms"}})},lines:{dur:1e3,lines:8,fn:(a,r,t)=>({y1:14,y2:26,style:{transform:`rotate(${360/t*r+(r({y1:12,y2:20,style:{transform:`rotate(${360/t*r+(r({y1:17,y2:29,style:{transform:`rotate(${30*r+(r<6?180:-180)}deg)`,"animation-delay":a*r/t-a+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(a,r,t)=>({y1:12,y2:20,style:{transform:`rotate(${30*r+(r<6?180:-180)}deg)`,"animation-delay":a*r/t-a+"ms"}})}}},7166:(y,f,i)=>{i.r(f),i.d(f,{createSwipeBackGesture:()=>t});var _=i(4920),c=i(5083),a=i(8607);i(1970);const t=(s,e,n,l,d)=>{const o=s.ownerDocument.defaultView;let u=(0,c.i)(s);const E=m=>u?-m.deltaX:m.deltaX;return(0,a.createGesture)({el:s,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:m=>(u=(0,c.i)(s),(m=>{const{startX:D}=m;return u?D>=o.innerWidth-50:D<=50})(m)&&e()),onStart:n,onMove:m=>{const D=E(m)/o.innerWidth;l(D)},onEnd:m=>{const O=E(m),D=o.innerWidth,v=O/D,C=(m=>u?-m.velocityX:m.velocityX)(m),P=C>=0&&(C>.2||O>D/2),A=(P?1-v:v)*D;let B=0;if(A>5){const T=A/Math.abs(C);B=Math.min(T,540)}d(P,v<=0?.01:(0,_.j)(0,v,.9999),B)}})}},2935:(y,f,i)=>{i.d(f,{w:()=>_});const _=(r,t,s)=>{if(typeof MutationObserver>"u")return;const e=new MutationObserver(n=>{s(c(n,t))});return e.observe(r,{childList:!0,subtree:!0}),e},c=(r,t)=>{let s;return r.forEach(e=>{for(let n=0;n{if(1!==r.nodeType)return;const s=r;return(s.tagName===t.toUpperCase()?[s]:Array.from(s.querySelectorAll(t))).find(n=>n.value===s.value)}},5553:(y,f,i)=>{i.d(f,{h:()=>r});var _=i(177),c=i(7863),a=i(4438);let r=(()=>{var t;class s{}return(t=s).\u0275fac=function(n){return new(n||t)},t.\u0275mod=a.$C({type:t}),t.\u0275inj=a.G2t({imports:[_.MD,c.bv]}),s})()},385:(y,f,i)=>{i.d(f,{l:()=>a});var _=i(4438),c=i(7863);let a=(()=>{var r;class t{constructor(){this.title="Header Title"}ngOnInit(){}}return(r=t).\u0275fac=function(e){return new(e||r)},r.\u0275cmp=_.VBU({type:r,selectors:[["app-header"]],inputs:{title:"title"},decls:5,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"]],template:function(e,n){1&e&&(_.j41(0,"ion-header",0)(1,"ion-toolbar"),_.nrm(2,"ion-menu-button",1),_.j41(3,"ion-title"),_.EFF(4),_.k0s()()()),2&e&&(_.Y8G("translucent",!0),_.R7$(4),_.JRh(n.title))},dependencies:[c.eU,c.MC,c.BC,c.ai]}),t})()},8453:(y,f,i)=>{i.d(f,{W:()=>a});var _=i(4438),c=i(7863);let a=(()=>{var r;class t{constructor(){this.title="Title"}ngOnInit(){}}return(r=t).\u0275fac=function(e){return new(e||r)},r.\u0275cmp=_.VBU({type:r,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(e,n){1&e&&(_.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),_.EFF(3),_.k0s()()()),2&e&&(_.R7$(3),_.JRh(n.title))},dependencies:[c.hU,c.ln]}),t})()},4796:(y,f,i)=>{i.d(f,{u:()=>t});var _=i(467),c=i(8737),a=i(4262),r=i(4438);let t=(()=>{var s;class e{constructor(l,d){this.auth=l,this.firestore=d}registerUser(l){var d=this;return(0,_.A)(function*(){try{const o=yield(0,c.eJ)(d.auth,l.email,l.password);return o.user?(yield(0,a.BN)((0,a.H9)(d.firestore,"users",o.user.uid),{email:l.email,name:l.name,orgName:l.orgName,uid:o.user.uid}),yield(0,a.BN)((0,a.H9)(d.firestore,"teams",`${l.orgName}`),{name:l.orgName,members:[o.user.uid]}),o):null}catch{return null}})()}loginUser(l){var d=this;return(0,_.A)(function*(){try{var o;const u=yield(0,c.x9)(d.auth,l.email,l.password);if(null!==(o=u.user)&&void 0!==o&&o.uid){const p=yield(0,a.x7)((0,a.H9)(d.firestore,"users",u.user.uid));if(p.exists())return localStorage.setItem("user",JSON.stringify(p.data())),u}}catch(u){console.error(u)}return null})()}logoutUser(){var l=this;return(0,_.A)(function*(){yield l.auth.signOut()})()}addMember(l){var d=this;return(0,_.A)(function*(){try{const o=yield(0,c.eJ)(d.auth,l.email,l.password);if(!o.user)return!1;const u={email:l.email,name:l.name,orgName:l.orgName,uid:o.user.uid};return yield(0,a.BN)((0,a.H9)(d.firestore,"users",o.user.uid),u),u}catch{return!1}})()}}return(s=e).\u0275fac=function(l){return new(l||s)(r.KVO(c.Nj),r.KVO(a._7))},s.\u0275prov=r.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})()},6241:(y,f,i)=>{i.d(f,{b:()=>r});var _=i(467),c=i(4262),a=i(4438);let r=(()=>{var t;class s{constructor(n){this.firestore=n}addProduct(n,l){var d=this;return(0,_.A)(function*(){try{console.log(n);const o=(0,c.H9)(d.firestore,"teams",l,"products",n.productObjective);return yield(0,c.BN)(o,n),!0}catch(o){return console.log(o),!1}})()}getProducts(n){var l=this;return(0,_.A)(function*(){try{const d=(0,c.rJ)(l.firestore,"teams",n,"products");return(yield(0,c.GG)(d)).docs.map(u=>u.data())}catch(d){return console.log(d),[]}})()}}return(t=s).\u0275fac=function(n){return new(n||t)(a.KVO(c._7))},t.\u0275prov=a.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}),s})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2076],{1263:(y,f,i)=>{i.d(f,{c:()=>r});var _=i(9672),a=i(1086),c=i(8607);const r=(n,s)=>{let e,t;const l=(u,p,E)=>{if(typeof document>"u")return;const w=document.elementFromPoint(u,p);w&&s(w)&&!w.disabled?w!==e&&(o(),d(w,E)):o()},d=(u,p)=>{e=u,t||(t=e);const E=e;(0,_.w)(()=>E.classList.add("ion-activated")),p()},o=(u=!1)=>{if(!e)return;const p=e;(0,_.w)(()=>p.classList.remove("ion-activated")),u&&t!==e&&e.click(),e=void 0};return(0,c.createGesture)({el:n,gestureName:"buttonActiveDrag",threshold:0,onStart:u=>l(u.currentX,u.currentY,a.a),onMove:u=>l(u.currentX,u.currentY,a.b),onEnd:()=>{o(!0),(0,a.h)(),t=void 0}})}},8438:(y,f,i)=>{i.d(f,{g:()=>a});var _=i(8476);const a=()=>{if(void 0!==_.w)return _.w.Capacitor}},5572:(y,f,i)=>{i.d(f,{c:()=>_,i:()=>a});const _=(c,r,n)=>"function"==typeof n?n(c,r):"string"==typeof n?c[n]===r[n]:Array.isArray(r)?r.includes(c):c===r,a=(c,r,n)=>void 0!==c&&(Array.isArray(c)?c.some(s=>_(s,r,n)):_(c,r,n))},3351:(y,f,i)=>{i.d(f,{g:()=>_});const _=(s,e,t,l,d)=>c(s[1],e[1],t[1],l[1],d).map(o=>a(s[0],e[0],t[0],l[0],o)),a=(s,e,t,l,d)=>d*(3*e*Math.pow(d-1,2)+d*(-3*t*d+3*t+l*d))-s*Math.pow(d-1,3),c=(s,e,t,l,d)=>n((l-=d)-3*(t-=d)+3*(e-=d)-(s-=d),3*t-6*e+3*s,3*e-3*s,s).filter(u=>u>=0&&u<=1),n=(s,e,t,l)=>{if(0===s)return((s,e,t)=>{const l=e*e-4*s*t;return l<0?[]:[(-e+Math.sqrt(l))/(2*s),(-e-Math.sqrt(l))/(2*s)]})(e,t,l);const d=(3*(t/=s)-(e/=s)*e)/3,o=(2*e*e*e-9*e*t+27*(l/=s))/27;if(0===d)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-d),-Math.sqrt(-d)];const u=Math.pow(o/2,2)+Math.pow(d/3,3);if(0===u)return[Math.pow(o/2,.5)-e/3];if(u>0)return[Math.pow(-o/2+Math.sqrt(u),1/3)-Math.pow(o/2+Math.sqrt(u),1/3)-e/3];const p=Math.sqrt(Math.pow(-d/3,3)),E=Math.acos(-o/(2*Math.sqrt(Math.pow(-d/3,3)))),w=2*Math.pow(p,1/3);return[w*Math.cos(E/3)-e/3,w*Math.cos((E+2*Math.PI)/3)-e/3,w*Math.cos((E+4*Math.PI)/3)-e/3]}},5083:(y,f,i)=>{i.d(f,{i:()=>_});const _=a=>a&&""!==a.dir?"rtl"===a.dir.toLowerCase():"rtl"===(null==document?void 0:document.dir.toLowerCase())},3126:(y,f,i)=>{i.r(f),i.d(f,{startFocusVisible:()=>r});const _="ion-focused",c=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],r=n=>{let s=[],e=!0;const t=n?n.shadowRoot:document,l=n||document.body,d=M=>{s.forEach(h=>h.classList.remove(_)),M.forEach(h=>h.classList.add(_)),s=M},o=()=>{e=!1,d([])},u=M=>{e=c.includes(M.key),e||d([])},p=M=>{if(e&&void 0!==M.composedPath){const h=M.composedPath().filter(g=>!!g.classList&&g.classList.contains("ion-focusable"));d(h)}},E=()=>{t.activeElement===l&&d([])};return t.addEventListener("keydown",u),t.addEventListener("focusin",p),t.addEventListener("focusout",E),t.addEventListener("touchstart",o,{passive:!0}),t.addEventListener("mousedown",o),{destroy:()=>{t.removeEventListener("keydown",u),t.removeEventListener("focusin",p),t.removeEventListener("focusout",E),t.removeEventListener("touchstart",o),t.removeEventListener("mousedown",o)},setFocus:d}}},1086:(y,f,i)=>{i.d(f,{I:()=>a,a:()=>e,b:()=>t,c:()=>s,d:()=>d,h:()=>l});var _=i(8438),a=function(o){return o.Heavy="HEAVY",o.Medium="MEDIUM",o.Light="LIGHT",o}(a||{});const r={getEngine(){const o=(0,_.g)();if(null!=o&&o.isPluginAvailable("Haptics"))return o.Plugins.Haptics},available(){if(!this.getEngine())return!1;const u=(0,_.g)();return"web"!==(null==u?void 0:u.getPlatform())||typeof navigator<"u"&&void 0!==navigator.vibrate},impact(o){const u=this.getEngine();u&&u.impact({style:o.style})},notification(o){const u=this.getEngine();u&&u.notification({type:o.type})},selection(){this.impact({style:a.Light})},selectionStart(){const o=this.getEngine();o&&o.selectionStart()},selectionChanged(){const o=this.getEngine();o&&o.selectionChanged()},selectionEnd(){const o=this.getEngine();o&&o.selectionEnd()}},n=()=>r.available(),s=()=>{n()&&r.selection()},e=()=>{n()&&r.selectionStart()},t=()=>{n()&&r.selectionChanged()},l=()=>{n()&&r.selectionEnd()},d=o=>{n()&&r.impact(o)}},909:(y,f,i)=>{i.d(f,{I:()=>s,a:()=>d,b:()=>n,c:()=>p,d:()=>w,f:()=>o,g:()=>l,i:()=>t,p:()=>E,r:()=>M,s:()=>u});var _=i(467),a=i(4920),c=i(4929);const n="ion-content",s=".ion-content-scroll-host",e=`${n}, ${s}`,t=h=>"ION-CONTENT"===h.tagName,l=function(){var h=(0,_.A)(function*(g){return t(g)?(yield new Promise(m=>(0,a.c)(g,m)),g.getScrollElement()):g});return function(m){return h.apply(this,arguments)}}(),d=h=>h.querySelector(s)||h.querySelector(e),o=h=>h.closest(e),u=(h,g)=>t(h)?h.scrollToTop(g):Promise.resolve(h.scrollTo({top:0,left:0,behavior:g>0?"smooth":"auto"})),p=(h,g,m,O)=>t(h)?h.scrollByPoint(g,m,O):Promise.resolve(h.scrollBy({top:m,left:g,behavior:O>0?"smooth":"auto"})),E=h=>(0,c.b)(h,n),w=h=>{if(t(h)){const m=h.scrollY;return h.scrollY=!1,m}return h.style.setProperty("overflow","hidden"),!0},M=(h,g)=>{t(h)?h.scrollY=g:h.style.removeProperty("overflow")}},3992:(y,f,i)=>{i.d(f,{a:()=>_,b:()=>p,c:()=>e,d:()=>E,e:()=>P,f:()=>s,g:()=>w,h:()=>c,i:()=>a,j:()=>v,k:()=>C,l:()=>t,m:()=>o,n:()=>M,o:()=>d,p:()=>n,q:()=>r,r:()=>D,s:()=>L,t:()=>u,u:()=>m,v:()=>O,w:()=>l,x:()=>h,y:()=>g});const _="data:image/svg+xml;utf8,",a="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",r="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",e="data:image/svg+xml;utf8,",t="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",p="data:image/svg+xml;utf8,",E="data:image/svg+xml;utf8,",w="data:image/svg+xml;utf8,",M="data:image/svg+xml;utf8,",h="data:image/svg+xml;utf8,",g="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",O="data:image/svg+xml;utf8,",D="data:image/svg+xml;utf8,",v="data:image/svg+xml;utf8,",C="data:image/svg+xml;utf8,",L="data:image/svg+xml;utf8,",P="data:image/svg+xml;utf8,"},243:(y,f,i)=>{i.d(f,{c:()=>r,g:()=>n});var _=i(8476),a=i(4920),c=i(4929);const r=(e,t,l)=>{let d,o;if(void 0!==_.w&&"MutationObserver"in _.w){const w=Array.isArray(t)?t:[t];d=new MutationObserver(M=>{for(const h of M)for(const g of h.addedNodes)if(g.nodeType===Node.ELEMENT_NODE&&w.includes(g.slot))return l(),void(0,a.r)(()=>u(g))}),d.observe(e,{childList:!0,subtree:!0})}const u=w=>{var M;o&&(o.disconnect(),o=void 0),o=new MutationObserver(h=>{l();for(const g of h)for(const m of g.removedNodes)m.nodeType===Node.ELEMENT_NODE&&m.slot===t&&E()}),o.observe(null!==(M=w.parentElement)&&void 0!==M?M:w,{subtree:!0,childList:!0})},E=()=>{o&&(o.disconnect(),o=void 0)};return{destroy:()=>{d&&(d.disconnect(),d=void 0),E()}}},n=(e,t,l)=>{const d=null==e?0:e.toString().length,o=s(d,t);if(void 0===l)return o;try{return l(d,t)}catch(u){return(0,c.a)("Exception in provided `counterFormatter`.",u),o}},s=(e,t)=>`${e} / ${t}`},1622:(y,f,i)=>{i.r(f),i.d(f,{KEYBOARD_DID_CLOSE:()=>n,KEYBOARD_DID_OPEN:()=>r,copyVisualViewport:()=>D,keyboardDidClose:()=>h,keyboardDidOpen:()=>w,keyboardDidResize:()=>M,resetKeyboardAssist:()=>d,setKeyboardClose:()=>E,setKeyboardOpen:()=>p,startKeyboardAssist:()=>o,trackViewportChanges:()=>O});var _=i(4379);i(8438),i(8476);const r="ionKeyboardDidShow",n="ionKeyboardDidHide";let e={},t={},l=!1;const d=()=>{e={},t={},l=!1},o=v=>{if(_.K.getEngine())u(v);else{if(!v.visualViewport)return;t=D(v.visualViewport),v.visualViewport.onresize=()=>{O(v),w()||M(v)?p(v):h(v)&&E(v)}}},u=v=>{v.addEventListener("keyboardDidShow",C=>p(v,C)),v.addEventListener("keyboardDidHide",()=>E(v))},p=(v,C)=>{g(v,C),l=!0},E=v=>{m(v),l=!1},w=()=>!l&&e.width===t.width&&(e.height-t.height)*t.scale>150,M=v=>l&&!h(v),h=v=>l&&t.height===v.innerHeight,g=(v,C)=>{const P=new CustomEvent(r,{detail:{keyboardHeight:C?C.keyboardHeight:v.innerHeight-t.height}});v.dispatchEvent(P)},m=v=>{const C=new CustomEvent(n);v.dispatchEvent(C)},O=v=>{e=Object.assign({},t),t=D(v.visualViewport)},D=v=>({width:Math.round(v.width),height:Math.round(v.height),offsetTop:v.offsetTop,offsetLeft:v.offsetLeft,pageTop:v.pageTop,pageLeft:v.pageLeft,scale:v.scale})},4379:(y,f,i)=>{i.d(f,{K:()=>r,a:()=>c});var _=i(8438),a=function(n){return n.Unimplemented="UNIMPLEMENTED",n.Unavailable="UNAVAILABLE",n}(a||{}),c=function(n){return n.Body="body",n.Ionic="ionic",n.Native="native",n.None="none",n}(c||{});const r={getEngine(){const n=(0,_.g)();if(null!=n&&n.isPluginAvailable("Keyboard"))return n.Plugins.Keyboard},getResizeMode(){const n=this.getEngine();return null!=n&&n.getResizeMode?n.getResizeMode().catch(s=>{if(s.code!==a.Unimplemented)throw s}):Promise.resolve(void 0)}}},4731:(y,f,i)=>{i.d(f,{c:()=>s});var _=i(467),a=i(8476),c=i(4379);const r=e=>{if(void 0===a.d||e===c.a.None||void 0===e)return null;const t=a.d.querySelector("ion-app");return null!=t?t:a.d.body},n=e=>{const t=r(e);return null===t?0:t.clientHeight},s=function(){var e=(0,_.A)(function*(t){let l,d,o,u;const p=function(){var g=(0,_.A)(function*(){const m=yield c.K.getResizeMode(),O=void 0===m?void 0:m.mode;l=()=>{void 0===u&&(u=n(O)),o=!0,E(o,O)},d=()=>{o=!1,E(o,O)},null==a.w||a.w.addEventListener("keyboardWillShow",l),null==a.w||a.w.addEventListener("keyboardWillHide",d)});return function(){return g.apply(this,arguments)}}(),E=(g,m)=>{t&&t(g,w(m))},w=g=>{if(0===u||u===n(g))return;const m=r(g);return null!==m?new Promise(O=>{const v=new ResizeObserver(()=>{m.clientHeight===u&&(v.disconnect(),O())});v.observe(m)}):void 0};return yield p(),{init:p,destroy:()=>{null==a.w||a.w.removeEventListener("keyboardWillShow",l),null==a.w||a.w.removeEventListener("keyboardWillHide",d),l=d=void 0},isKeyboardVisible:()=>o}});return function(l){return e.apply(this,arguments)}}()},7838:(y,f,i)=>{i.d(f,{c:()=>a});var _=i(467);const a=()=>{let c;return{lock:function(){var n=(0,_.A)(function*(){const s=c;let e;return c=new Promise(t=>e=t),void 0!==s&&(yield s),e});return function(){return n.apply(this,arguments)}}()}}},9001:(y,f,i)=>{i.d(f,{c:()=>c});var _=i(8476),a=i(4920);const c=(r,n,s)=>{let e;const t=()=>!(void 0===n()||void 0!==r.label||null===s()),d=()=>{const u=n();if(void 0===u)return;if(!t())return void u.style.removeProperty("width");const p=s().scrollWidth;if(0===p&&null===u.offsetParent&&void 0!==_.w&&"IntersectionObserver"in _.w){if(void 0!==e)return;const E=e=new IntersectionObserver(w=>{1===w[0].intersectionRatio&&(d(),E.disconnect(),e=void 0)},{threshold:.01,root:r});E.observe(u)}else u.style.setProperty("width",.75*p+"px")};return{calculateNotchWidth:()=>{t()&&(0,a.r)(()=>{d()})},destroy:()=>{e&&(e.disconnect(),e=void 0)}}}},7895:(y,f,i)=>{i.d(f,{S:()=>a});const a={bubbles:{dur:1e3,circles:9,fn:(c,r,n)=>{const s=c*r/n-c+"ms",e=2*Math.PI*r/n;return{r:5,style:{top:32*Math.sin(e)+"%",left:32*Math.cos(e)+"%","animation-delay":s}}}},circles:{dur:1e3,circles:8,fn:(c,r,n)=>{const s=r/n,e=c*s-c+"ms",t=2*Math.PI*s;return{r:5,style:{top:32*Math.sin(t)+"%",left:32*Math.cos(t)+"%","animation-delay":e}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(c,r)=>({r:6,style:{left:32-32*r+"%","animation-delay":-110*r+"ms"}})},lines:{dur:1e3,lines:8,fn:(c,r,n)=>({y1:14,y2:26,style:{transform:`rotate(${360/n*r+(r({y1:12,y2:20,style:{transform:`rotate(${360/n*r+(r({y1:17,y2:29,style:{transform:`rotate(${30*r+(r<6?180:-180)}deg)`,"animation-delay":c*r/n-c+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(c,r,n)=>({y1:12,y2:20,style:{transform:`rotate(${30*r+(r<6?180:-180)}deg)`,"animation-delay":c*r/n-c+"ms"}})}}},7166:(y,f,i)=>{i.r(f),i.d(f,{createSwipeBackGesture:()=>n});var _=i(4920),a=i(5083),c=i(8607);i(1970);const n=(s,e,t,l,d)=>{const o=s.ownerDocument.defaultView;let u=(0,a.i)(s);const E=m=>u?-m.deltaX:m.deltaX;return(0,c.createGesture)({el:s,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:m=>(u=(0,a.i)(s),(m=>{const{startX:D}=m;return u?D>=o.innerWidth-50:D<=50})(m)&&e()),onStart:t,onMove:m=>{const D=E(m)/o.innerWidth;l(D)},onEnd:m=>{const O=E(m),D=o.innerWidth,v=O/D,C=(m=>u?-m.velocityX:m.velocityX)(m),P=C>=0&&(C>.2||O>D/2),A=(P?1-v:v)*D;let B=0;if(A>5){const T=A/Math.abs(C);B=Math.min(T,540)}d(P,v<=0?.01:(0,_.j)(0,v,.9999),B)}})}},2935:(y,f,i)=>{i.d(f,{w:()=>_});const _=(r,n,s)=>{if(typeof MutationObserver>"u")return;const e=new MutationObserver(t=>{s(a(t,n))});return e.observe(r,{childList:!0,subtree:!0}),e},a=(r,n)=>{let s;return r.forEach(e=>{for(let t=0;t{if(1!==r.nodeType)return;const s=r;return(s.tagName===n.toUpperCase()?[s]:Array.from(s.querySelectorAll(n))).find(t=>t.value===s.value)}},5553:(y,f,i)=>{i.d(f,{h:()=>r});var _=i(177),a=i(7863),c=i(4438);let r=(()=>{var n;class s{}return(n=s).\u0275fac=function(t){return new(t||n)},n.\u0275mod=c.$C({type:n}),n.\u0275inj=c.G2t({imports:[_.MD,a.bv]}),s})()},385:(y,f,i)=>{i.d(f,{l:()=>c});var _=i(4438),a=i(7863);let c=(()=>{var r;class n{constructor(){this.title="Header Title"}ngOnInit(){}}return(r=n).\u0275fac=function(e){return new(e||r)},r.\u0275cmp=_.VBU({type:r,selectors:[["app-header"]],inputs:{title:"title"},decls:5,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"]],template:function(e,t){1&e&&(_.j41(0,"ion-header",0)(1,"ion-toolbar"),_.nrm(2,"ion-menu-button",1),_.j41(3,"ion-title"),_.EFF(4),_.k0s()()()),2&e&&(_.Y8G("translucent",!0),_.R7$(4),_.JRh(t.title))},dependencies:[a.eU,a.MC,a.BC,a.ai]}),n})()},8453:(y,f,i)=>{i.d(f,{W:()=>c});var _=i(4438),a=i(7863);let c=(()=>{var r;class n{constructor(){this.title="Title"}ngOnInit(){}}return(r=n).\u0275fac=function(e){return new(e||r)},r.\u0275cmp=_.VBU({type:r,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(e,t){1&e&&(_.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),_.EFF(3),_.k0s()()()),2&e&&(_.R7$(3),_.JRh(t.title))},dependencies:[a.hU,a.ln]}),n})()},4796:(y,f,i)=>{i.d(f,{u:()=>n});var _=i(467),a=i(8737),c=i(4262),r=i(4438);let n=(()=>{var s;class e{constructor(l,d){this.auth=l,this.firestore=d}registerUser(l){var d=this;return(0,_.A)(function*(){try{const o=yield(0,a.eJ)(d.auth,l.email,l.password);return o.user?(yield(0,c.BN)((0,c.H9)(d.firestore,"users",o.user.uid),{email:l.email,name:l.name,orgName:l.orgName,uid:o.user.uid}),yield(0,c.BN)((0,c.H9)(d.firestore,"teams",`${l.orgName}`),{name:l.orgName,members:[o.user.uid]}),o):null}catch{return null}})()}loginUser(l){var d=this;return(0,_.A)(function*(){try{var o;const u=yield(0,a.x9)(d.auth,l.email,l.password);if(null!==(o=u.user)&&void 0!==o&&o.uid){const p=yield(0,c.x7)((0,c.H9)(d.firestore,"users",u.user.uid));if(p.exists())return localStorage.setItem("user",JSON.stringify(p.data())),u}}catch(u){console.error(u)}return null})()}logoutUser(){var l=this;return(0,_.A)(function*(){yield l.auth.signOut()})()}addMember(l){var d=this;return(0,_.A)(function*(){try{const o=yield(0,a.eJ)(d.auth,l.email,l.password);if(!o.user)return!1;const u={email:l.email,name:l.name,orgName:l.orgName,uid:o.user.uid};return yield(0,c.BN)((0,c.H9)(d.firestore,"users",o.user.uid),u),u}catch{return!1}})()}}return(s=e).\u0275fac=function(l){return new(l||s)(r.KVO(a.Nj),r.KVO(c._7))},s.\u0275prov=r.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),e})()},6241:(y,f,i)=>{i.d(f,{b:()=>r});var _=i(467),a=i(4262),c=i(4438);let r=(()=>{var n;class s{constructor(t){this.firestore=t}addProduct(t,l){var d=this;return(0,_.A)(function*(){try{console.log(t);const o=(0,a.H9)(d.firestore,"teams",l,"products",t.productObjective);return yield(0,a.BN)(o,t),!0}catch(o){return console.log(o),!1}})()}getProducts(t){var l=this;return(0,_.A)(function*(){try{const d=(0,a.rJ)(l.firestore,"teams",t,"products");return(yield(0,a.GG)(d)).docs.map(u=>u.data())}catch(d){return console.log(d),[]}})()}removeProduct(t,l){var d=this;return(0,_.A)(function*(){try{const o=(0,a.H9)(d.firestore,"teams",t,"products",l);return yield(0,a.kd)(o),!0}catch(o){return console.log(o),!1}})()}}return(n=s).\u0275fac=function(t){return new(t||n)(c.KVO(a._7))},n.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),s})()}}]); \ No newline at end of file diff --git a/www/index.html b/www/index.html index b42c2dc..28cc558 100644 --- a/www/index.html +++ b/www/index.html @@ -21,6 +21,6 @@ - + diff --git a/www/main.16d23e62e84e9273.js b/www/main.16d23e62e84e9273.js deleted file mode 100644 index 439d5bb..0000000 --- a/www/main.16d23e62e84e9273.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(En,bt,B)=>{"use strict";B.d(bt,{Am:()=>en,FA:()=>me,Fy:()=>Ke,I9:()=>Ir,Im:()=>Yn,Ku:()=>Xe,T9:()=>vt,Tj:()=>Mt,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ct,bD:()=>yt,cY:()=>je,eX:()=>W,g:()=>ae,hp:()=>gn,jZ:()=>xt,lT:()=>Be,lV:()=>Zt,nr:()=>ye,sr:()=>Vt,tD:()=>Jt,u:()=>De,yU:()=>mt,zW:()=>j});const Oe=function(ie){const he=[];let Pe=0;for(let Et=0;Et>6|192,he[Pe++]=63&rt|128):55296==(64512&rt)&&Et+1>18|240,he[Pe++]=rt>>12&63|128,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128):(he[Pe++]=rt>>12|224,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128)}return he},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(ie,he){if(!Array.isArray(ie))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Pe=he?this.byteToCharMapWebSafe_:this.byteToCharMap_,Et=[];for(let rt=0;rt>6,yr=63&ur;gr||(yr=64,Sn||(Rn=64)),Et.push(Pe[dn>>2],Pe[(3&dn)<<4|Wn>>4],Pe[Rn],Pe[yr])}return Et.join("")},encodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?btoa(ie):this.encodeByteArray(Oe(ie),he)},decodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?atob(ie):function(ie){const he=[];let Pe=0,Et=0;for(;Pe191&&rt<224){const dn=ie[Pe++];he[Et++]=String.fromCharCode((31&rt)<<6|63&dn)}else if(rt>239&&rt<365){const gr=((7&rt)<<18|(63&ie[Pe++])<<12|(63&ie[Pe++])<<6|63&ie[Pe++])-65536;he[Et++]=String.fromCharCode(55296+(gr>>10)),he[Et++]=String.fromCharCode(56320+(1023&gr))}else{const dn=ie[Pe++],Sn=ie[Pe++];he[Et++]=String.fromCharCode((15&rt)<<12|(63&dn)<<6|63&Sn)}}return he.join("")}(this.decodeStringToByteArray(ie,he))},decodeStringToByteArray(ie,he){this.init_();const Pe=he?this.charToByteMapWebSafe_:this.charToByteMap_,Et=[];for(let rt=0;rt>4),64!==ur&&(Et.push(Wn<<4&240|ur>>2),64!==xn&&Et.push(ur<<6&192|xn))}return Et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ie=0;ie=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ie)]=ie,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ie)]=ie)}}};class re extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ie){return function(ie){const he=Oe(ie);return Ee.encodeByteArray(he,!0)}(ie).replace(/\./g,"")},De=function(ie){try{return Ee.decodeString(ie,!0)}catch(he){console.error("base64Decode failed: ",he)}return null},st=()=>{try{return function Le(){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 ie=process.env.__FIREBASE_DEFAULTS__;return ie?JSON.parse(ie):void 0})()||(()=>{if(typeof document>"u")return;let ie;try{ie=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const he=ie&&De(ie[1]);return he&&JSON.parse(he)})()}catch(ie){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ie}`)}},Mt=ie=>{var he,Pe;return null===(Pe=null===(he=st())||void 0===he?void 0:he.emulatorHosts)||void 0===Pe?void 0:Pe[ie]},mt=ie=>{const he=Mt(ie);if(!he)return;const Pe=he.lastIndexOf(":");if(Pe<=0||Pe+1===he.length)throw new Error(`Invalid host ${he} with no separate hostname and port!`);const Et=parseInt(he.substring(Pe+1),10);return"["===he[0]?[he.substring(1,Pe-1),Et]:[he.substring(0,Pe),Et]},vt=()=>{var ie;return null===(ie=st())||void 0===ie?void 0:ie.config},Me=ie=>{var he;return null===(he=st())||void 0===he?void 0:he[`_${ie}`]};class je{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((he,Pe)=>{this.resolve=he,this.reject=Pe})}wrapCallback(he){return(Pe,Et)=>{Pe?this.reject(Pe):this.resolve(Et),"function"==typeof he&&(this.promise.catch(()=>{}),1===he.length?he(Pe):he(Pe,Et))}}}function Ke(ie,he){if(ie.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Et=he||"demo-project",rt=ie.iat||0,dn=ie.sub||ie.user_id;if(!dn)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Sn=Object.assign({iss:`https://securetoken.google.com/${Et}`,aud:Et,iat:rt,exp:rt+3600,auth_time:rt,sub:dn,user_id:dn,firebase:{sign_in_provider:"custom",identities:{}}},ie);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(Sn)),""].join(".")}function Ct(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function xt(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ct())}function Vt(){const ie="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ie&&void 0!==ie.id}function Zt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Be(){const ie=Ct();return ie.indexOf("MSIE ")>=0||ie.indexOf("Trident/")>=0}function ye(){return!function ze(){var ie;const he=null===(ie=st())||void 0===ie?void 0:ie.forceEnvironment;if("node"===he)return!0;if("browser"===he)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((ie,he)=>{try{let Pe=!0;const Et="validate-browser-context-for-indexeddb-analytics-module",rt=self.indexedDB.open(Et);rt.onsuccess=()=>{rt.result.close(),Pe||self.indexedDB.deleteDatabase(Et),ie(!0)},rt.onupgradeneeded=()=>{Pe=!1},rt.onerror=()=>{var dn;he((null===(dn=rt.error)||void 0===dn?void 0:dn.message)||"")}}catch(Pe){he(Pe)}})}class ae extends Error{constructor(he,Pe,Et){super(Pe),this.code=he,this.customData=Et,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,me.prototype.create)}}class me{constructor(he,Pe,Et){this.service=he,this.serviceName=Pe,this.errors=Et}create(he,...Pe){const Et=Pe[0]||{},rt=`${this.service}/${he}`,dn=this.errors[he],Sn=dn?function Ce(ie,he){return ie.replace(at,(Pe,Et)=>{const rt=he[Et];return null!=rt?String(rt):`<${Et}?>`})}(dn,Et):"Error";return new ae(rt,`${this.serviceName}: ${Sn} (${rt}).`,Et)}}const at=/\{\$([^}]+)}/g;function Yn(ie){for(const he in ie)if(Object.prototype.hasOwnProperty.call(ie,he))return!1;return!0}function yt(ie,he){if(ie===he)return!0;const Pe=Object.keys(ie),Et=Object.keys(he);for(const rt of Pe){if(!Et.includes(rt))return!1;const dn=ie[rt],Sn=he[rt];if(Ot(dn)&&Ot(Sn)){if(!yt(dn,Sn))return!1}else if(dn!==Sn)return!1}for(const rt of Et)if(!Pe.includes(rt))return!1;return!0}function Ot(ie){return null!==ie&&"object"==typeof ie}function en(ie){const he=[];for(const[Pe,Et]of Object.entries(ie))Array.isArray(Et)?Et.forEach(rt=>{he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(rt))}):he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(Et));return he.length?"&"+he.join("&"):""}function Ir(ie){const he={};return ie.replace(/^\?/,"").split("&").forEach(Et=>{if(Et){const[rt,dn]=Et.split("=");he[decodeURIComponent(rt)]=decodeURIComponent(dn)}}),he}function gn(ie){const he=ie.indexOf("?");if(!he)return"";const Pe=ie.indexOf("#",he);return ie.substring(he,Pe>0?Pe:void 0)}function Jt(ie,he){const Pe=new Gt(ie,he);return Pe.subscribe.bind(Pe)}class Gt{constructor(he,Pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Pe,this.task.then(()=>{he(this)}).catch(Et=>{this.error(Et)})}next(he){this.forEachObserver(Pe=>{Pe.next(he)})}error(he){this.forEachObserver(Pe=>{Pe.error(he)}),this.close(he)}complete(){this.forEachObserver(he=>{he.complete()}),this.close()}subscribe(he,Pe,Et){let rt;if(void 0===he&&void 0===Pe&&void 0===Et)throw new Error("Missing Observer.");rt=function wr(ie,he){if("object"!=typeof ie||null===ie)return!1;for(const Pe of he)if(Pe in ie&&"function"==typeof ie[Pe])return!0;return!1}(he,["next","error","complete"])?he:{next:he,error:Pe,complete:Et},void 0===rt.next&&(rt.next=kr),void 0===rt.error&&(rt.error=kr),void 0===rt.complete&&(rt.complete=kr);const dn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?rt.error(this.finalError):rt.complete()}catch{}}),this.observers.push(rt),dn}unsubscribeOne(he){void 0===this.observers||void 0===this.observers[he]||(delete this.observers[he],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(he){if(!this.finalized)for(let Pe=0;Pe{if(void 0!==this.observers&&void 0!==this.observers[he])try{Pe(this.observers[he])}catch(Et){typeof console<"u"&&console.error&&console.error(Et)}})}close(he){this.finalized||(this.finalized=!0,void 0!==he&&(this.finalError=he),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function kr(){}function Xe(ie){return ie&&ie._delegate?ie._delegate:ie}},4442:(En,bt,B)=>{"use strict";B.d(bt,{L:()=>X,a:()=>Ee,b:()=>re,c:()=>Ze,d:()=>Je,g:()=>pt}),B(5531);const X="ionViewWillEnter",Ee="ionViewDidEnter",re="ionViewWillLeave",Ze="ionViewDidLeave",Je="ionViewWillUnload",pt=ye=>ye.classList.contains("ion-page")?ye:ye.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||ye},5531:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>De,c:()=>d,g:()=>Je});class g{constructor(){this.m=new Map}reset(ye){this.m=new Map(Object.entries(ye))}get(ye,j){const W=this.m.get(ye);return void 0!==W?W:j}getBoolean(ye,j=!1){const W=this.m.get(ye);return void 0===W?j:"string"==typeof W?"true"===W:!!W}getNumber(ye,j){const W=parseFloat(this.m.get(ye));return isNaN(W)?void 0!==j?j:NaN:W}set(ye,j){this.m.set(ye,j)}}const d=new g,Je=pt=>_e(pt),De=(pt,ye)=>("string"==typeof pt&&(ye=pt,pt=void 0),Je(pt).includes(ye)),_e=(pt=window)=>{if(typeof pt>"u")return[];pt.Ionic=pt.Ionic||{};let ye=pt.Ionic.platforms;return null==ye&&(ye=pt.Ionic.platforms=Fe(pt),ye.forEach(j=>pt.document.documentElement.classList.add(`plt-${j}`))),ye},Fe=pt=>{const ye=d.get("platform");return Object.keys(Zt).filter(j=>{const W=null==ye?void 0:ye[j];return"function"==typeof W?W(pt):Zt[j](pt)})},Le=pt=>!!(Tt(pt,/iPad/i)||Tt(pt,/Macintosh/i)&&vt(pt)),ut=pt=>Tt(pt,/android|sink/i),vt=pt=>Vt(pt,"(any-pointer:coarse)"),je=pt=>Ke(pt)||Ct(pt),Ke=pt=>!!(pt.cordova||pt.phonegap||pt.PhoneGap),Ct=pt=>{const ye=pt.Capacitor;return!(null==ye||!ye.isNative)},Tt=(pt,ye)=>ye.test(pt.navigator.userAgent),Vt=(pt,ye)=>{var j;return null===(j=pt.matchMedia)||void 0===j?void 0:j.call(pt,ye).matches},Zt={ipad:Le,iphone:pt=>Tt(pt,/iPhone/i),ios:pt=>Tt(pt,/iPhone|iPod/i)||Le(pt),android:ut,phablet:pt=>{const ye=pt.innerWidth,j=pt.innerHeight,W=Math.min(ye,j),te=Math.max(ye,j);return W>390&&W<520&&te>620&&te<800},tablet:pt=>{const ye=pt.innerWidth,j=pt.innerHeight,W=Math.min(ye,j),te=Math.max(ye,j);return Le(pt)||(pt=>ut(pt)&&!Tt(pt,/mobile/i))(pt)||W>460&&W<820&&te>780&&te<1400},cordova:Ke,capacitor:Ct,electron:pt=>Tt(pt,/electron/i),pwa:pt=>{var ye;return!!(null!==(ye=pt.matchMedia)&&void 0!==ye&&ye.call(pt,"(display-mode: standalone)").matches||pt.navigator.standalone)},mobile:vt,mobileweb:pt=>vt(pt)&&!je(pt),desktop:pt=>!vt(pt),hybrid:je}},9986:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ee});var g=B(8476);let d;const Oe=(re,Ze,Je)=>{const De=Ze.startsWith("animation")?(re=>(void 0===d&&(d=void 0===re.style.animationName&&void 0!==re.style.webkitAnimationName?"-webkit-":""),d))(re):"";re.style.setProperty(De+Ze,Je)},X=(re=[],Ze)=>{if(void 0!==Ze){const Je=Array.isArray(Ze)?Ze:[Ze];return[...re,...Je]}return re},Ee=re=>{let Ze,Je,De,_e,Fe,$e,st,xt,ze,Tt,Be,Le=[],Qe=[],ft=[],ut=!1,Mt={},mt=[],vt=[],Me={},je=0,Ke=!1,Ct=!1,Vt=!0,Zt=!1,Dt=!0,rn=!1;const pt=re,ye=[],j=[],W=[],te=[],de=[],ae=[],me=[],Ce=[],at=[],kt=[],Bt=[],vn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,bn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&vn,$n=()=>Bt,Yn=(Y,Z)=>{const Ne=Z.findIndex(Q=>Q.c===Y);Ne>-1&&Z.splice(Ne,1)},yt=(Y,Z)=>((null!=Z&&Z.oneTimeCallback?j:ye).push({c:Y,o:Z}),Be),Xt=()=>{bn&&(Bt.forEach(Y=>{Y.cancel()}),Bt.length=0)},en=()=>{ae.forEach(Y=>{null!=Y&&Y.parentNode&&Y.parentNode.removeChild(Y)}),ae.length=0},Zn=()=>void 0!==Fe?Fe:st?st.getFill():"both",wn=()=>void 0!==xt?xt:void 0!==$e?$e:st?st.getDirection():"normal",Sr=()=>Ke?"linear":void 0!==De?De:st?st.getEasing():"linear",tr=()=>Ct?0:void 0!==ze?ze:void 0!==Je?Je:st?st.getDuration():0,Er=()=>void 0!==_e?_e:st?st.getIterations():1,Mi=()=>void 0!==Tt?Tt:void 0!==Ze?Ze:st?st.getDelay():0,gr=()=>{0!==je&&(je--,0===je&&((()=>{at.forEach(Se=>Se()),kt.forEach(Se=>Se());const Y=Vt?1:0,Z=mt,Ne=vt,Q=Me;te.forEach(Se=>{const it=Se.classList;Z.forEach(Wt=>it.add(Wt)),Ne.forEach(Wt=>it.remove(Wt));for(const Wt in Q)Q.hasOwnProperty(Wt)&&Oe(Se,Wt,Q[Wt])}),ze=void 0,xt=void 0,Tt=void 0,ye.forEach(Se=>Se.c(Y,Be)),j.forEach(Se=>Se.c(Y,Be)),j.length=0,Dt=!0,Vt&&(Zt=!0),Vt=!0})(),st&&st.animationFinish()))},ri=()=>{(()=>{me.forEach(Q=>Q()),Ce.forEach(Q=>Q());const Y=Qe,Z=ft,Ne=Mt;te.forEach(Q=>{const Se=Q.classList;Y.forEach(it=>Se.add(it)),Z.forEach(it=>Se.remove(it));for(const it in Ne)Ne.hasOwnProperty(it)&&Oe(Q,it,Ne[it])})})(),Le.length>0&&bn&&(te.forEach(Y=>{const Z=Y.animate(Le,{id:pt,delay:Mi(),duration:tr(),easing:Sr(),iterations:Er(),fill:Zn(),direction:wn()});Z.pause(),Bt.push(Z)}),Bt.length>0&&(Bt[0].onfinish=()=>{gr()})),ut=!0},xn=Y=>{Y=Math.min(Math.max(Y,0),.9999),bn&&Bt.forEach(Z=>{Z.currentTime=Z.effect.getComputedTiming().delay+tr()*Y,Z.pause()})},Rn=Y=>{Bt.forEach(Z=>{Z.effect.updateTiming({delay:Mi(),duration:tr(),easing:Sr(),iterations:Er(),fill:Zn(),direction:wn()})}),void 0!==Y&&xn(Y)},yr=(Y=!1,Z=!0,Ne)=>(Y&&de.forEach(Q=>{Q.update(Y,Z,Ne)}),bn&&Rn(Ne),Be),Ui=()=>{ut&&(bn?Bt.forEach(Y=>{Y.pause()}):te.forEach(Y=>{Oe(Y,"animation-play-state","paused")}),rn=!0)},St=Y=>new Promise(Z=>{null!=Y&&Y.sync&&(Ct=!0,yt(()=>Ct=!1,{oneTimeCallback:!0})),ut||ri(),Zt&&(bn&&(xn(0),Rn()),Zt=!1),Dt&&(je=de.length+1,Dt=!1);const Ne=()=>{Yn(Q,j),Z()},Q=()=>{Yn(Ne,W),Z()};yt(Q,{oneTimeCallback:!0}),((Y,Z)=>{W.push({c:Y,o:{oneTimeCallback:!0}})})(Ne),de.forEach(Se=>{Se.play()}),bn?(Bt.forEach(Y=>{Y.play()}),(0===Le.length||0===te.length)&&gr()):gr(),rn=!1}),Ut=(Y,Z)=>{const Ne=Le[0];return void 0===Ne||void 0!==Ne.offset&&0!==Ne.offset?Le=[{offset:0,[Y]:Z},...Le]:Ne[Y]=Z,Be};return Be={parentAnimation:st,elements:te,childAnimations:de,id:pt,animationFinish:gr,from:Ut,to:(Y,Z)=>{const Ne=Le[Le.length-1];return void 0===Ne||void 0!==Ne.offset&&1!==Ne.offset?Le=[...Le,{offset:1,[Y]:Z}]:Ne[Y]=Z,Be},fromTo:(Y,Z,Ne)=>Ut(Y,Z).to(Y,Ne),parent:Y=>(st=Y,Be),play:St,pause:()=>(de.forEach(Y=>{Y.pause()}),Ui(),Be),stop:()=>{de.forEach(Y=>{Y.stop()}),ut&&(Xt(),ut=!1),Ke=!1,Ct=!1,Dt=!0,xt=void 0,ze=void 0,Tt=void 0,je=0,Zt=!1,Vt=!0,rn=!1,W.forEach(Y=>Y.c(0,Be)),W.length=0},destroy:Y=>(de.forEach(Z=>{Z.destroy(Y)}),(Y=>{Xt(),Y&&en()})(Y),te.length=0,de.length=0,Le.length=0,ye.length=0,j.length=0,ut=!1,Dt=!0,Be),keyframes:Y=>{const Z=Le!==Y;return Le=Y,Z&&(Y=>{bn&&$n().forEach(Z=>{const Ne=Z.effect;if(Ne.setKeyframes)Ne.setKeyframes(Y);else{const Q=new KeyframeEffect(Ne.target,Y,Ne.getTiming());Z.effect=Q}})})(Le),Be},addAnimation:Y=>{if(null!=Y)if(Array.isArray(Y))for(const Z of Y)Z.parent(Be),de.push(Z);else Y.parent(Be),de.push(Y);return Be},addElement:Y=>{if(null!=Y)if(1===Y.nodeType)te.push(Y);else if(Y.length>=0)for(let Z=0;Z(Fe=Y,yr(!0),Be),direction:Y=>($e=Y,yr(!0),Be),iterations:Y=>(_e=Y,yr(!0),Be),duration:Y=>(!bn&&0===Y&&(Y=1),Je=Y,yr(!0),Be),easing:Y=>(De=Y,yr(!0),Be),delay:Y=>(Ze=Y,yr(!0),Be),getWebAnimations:$n,getKeyframes:()=>Le,getFill:Zn,getDirection:wn,getDelay:Mi,getIterations:Er,getEasing:Sr,getDuration:tr,afterAddRead:Y=>(at.push(Y),Be),afterAddWrite:Y=>(kt.push(Y),Be),afterClearStyles:(Y=[])=>{for(const Z of Y)Me[Z]="";return Be},afterStyles:(Y={})=>(Me=Y,Be),afterRemoveClass:Y=>(vt=X(vt,Y),Be),afterAddClass:Y=>(mt=X(mt,Y),Be),beforeAddRead:Y=>(me.push(Y),Be),beforeAddWrite:Y=>(Ce.push(Y),Be),beforeClearStyles:(Y=[])=>{for(const Z of Y)Mt[Z]="";return Be},beforeStyles:(Y={})=>(Mt=Y,Be),beforeRemoveClass:Y=>(ft=X(ft,Y),Be),beforeAddClass:Y=>(Qe=X(Qe,Y),Be),onFinish:yt,isRunning:()=>0!==je&&!rn,progressStart:(Y=!1,Z)=>(de.forEach(Ne=>{Ne.progressStart(Y,Z)}),Ui(),Ke=Y,ut||ri(),yr(!1,!0,Z),Be),progressStep:Y=>(de.forEach(Z=>{Z.progressStep(Y)}),xn(Y),Be),progressEnd:(Y,Z,Ne)=>(Ke=!1,de.forEach(Q=>{Q.progressEnd(Y,Z,Ne)}),void 0!==Ne&&(ze=Ne),Zt=!1,Vt=!0,0===Y?(xt="reverse"===wn()?"normal":"reverse","reverse"===xt&&(Vt=!1),bn?(yr(),xn(1-Z)):(Tt=(1-Z)*tr()*-1,yr(!1,!1))):1===Y&&(bn?(yr(),xn(Z)):(Tt=Z*tr()*-1,yr(!1,!1))),void 0!==Y&&!st&&St(),Be)}}},464:(En,bt,B)=>{"use strict";B.d(bt,{E:()=>De,a:()=>g,s:()=>Ze});const g=_e=>{try{if(_e instanceof re)return _e.value;if(!Oe()||"string"!=typeof _e||""===_e)return _e;if(_e.includes("onload="))return"";const Fe=document.createDocumentFragment(),$e=document.createElement("div");Fe.appendChild($e),$e.innerHTML=_e,Ee.forEach(ut=>{const st=Fe.querySelectorAll(ut);for(let Mt=st.length-1;Mt>=0;Mt--){const mt=st[Mt];mt.parentNode?mt.parentNode.removeChild(mt):Fe.removeChild(mt);const vt=ge(mt);for(let Me=0;Me{if(_e.nodeType&&1!==_e.nodeType)return;if(typeof NamedNodeMap<"u"&&!(_e.attributes instanceof NamedNodeMap))return void _e.remove();for(let $e=_e.attributes.length-1;$e>=0;$e--){const Le=_e.attributes.item($e),Qe=Le.name;if(!X.includes(Qe.toLowerCase())){_e.removeAttribute(Qe);continue}const ft=Le.value,ut=_e[Qe];(null!=ft&&ft.toLowerCase().includes("javascript:")||null!=ut&&ut.toLowerCase().includes("javascript:"))&&_e.removeAttribute(Qe)}const Fe=ge(_e);for(let $e=0;$enull!=_e.children?_e.children:_e.childNodes,Oe=()=>{var _e;const Fe=window,$e=null===(_e=null==Fe?void 0:Fe.Ionic)||void 0===_e?void 0:_e.config;return!$e||($e.get?$e.get("sanitizerEnabled",!0):!0===$e.sanitizerEnabled||void 0===$e.sanitizerEnabled)},X=["class","id","href","src","name","slot"],Ee=["script","style","iframe","meta","link","object","embed"];class re{constructor(Fe){this.value=Fe}}const Ze=_e=>{const Fe=window,$e=Fe.Ionic;if(!$e||!$e.config||"Object"===$e.config.constructor.name)return Fe.Ionic=Fe.Ionic||{},Fe.Ionic.config=Object.assign(Object.assign({},Fe.Ionic.config),_e),Fe.Ionic.config},De=!1},8621:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>X,a:()=>ge,d:()=>Oe});var g=B(467),d=B(4920);const ge=function(){var Ee=(0,g.A)(function*(re,Ze,Je,De,_e,Fe){var $e;if(re)return re.attachViewToDom(Ze,Je,_e,De);if(!(Fe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const Le="string"==typeof Je?null===($e=Ze.ownerDocument)||void 0===$e?void 0:$e.createElement(Je):Je;return De&&De.forEach(Qe=>Le.classList.add(Qe)),_e&&Object.assign(Le,_e),Ze.appendChild(Le),yield new Promise(Qe=>(0,d.c)(Le,Qe)),Le});return function(Ze,Je,De,_e,Fe,$e){return Ee.apply(this,arguments)}}(),Oe=(Ee,re)=>{if(re){if(Ee)return Ee.removeViewFromDom(re.parentElement,re);re.remove()}return Promise.resolve()},X=()=>{let Ee,re;return{attachViewToDom:function(){var De=(0,g.A)(function*(_e,Fe,$e={},Le=[]){var Qe,ft;let ut;if(Ee=_e,Fe){const Mt="string"==typeof Fe?null===(Qe=Ee.ownerDocument)||void 0===Qe?void 0:Qe.createElement(Fe):Fe;Le.forEach(mt=>Mt.classList.add(mt)),Object.assign(Mt,$e),Ee.appendChild(Mt),ut=Mt,yield new Promise(mt=>(0,d.c)(Mt,mt))}else if(Ee.children.length>0&&("ION-MODAL"===Ee.tagName||"ION-POPOVER"===Ee.tagName)&&!(ut=Ee.children[0]).classList.contains("ion-delegate-host")){const mt=null===(ft=Ee.ownerDocument)||void 0===ft?void 0:ft.createElement("div");mt.classList.add("ion-delegate-host"),Le.forEach(vt=>mt.classList.add(vt)),mt.append(...Ee.children),Ee.appendChild(mt),ut=mt}const st=document.querySelector("ion-app")||document.body;return re=document.createComment("ionic teleport"),Ee.parentNode.insertBefore(re,Ee),st.appendChild(Ee),null!=ut?ut:Ee});return function(Fe,$e){return De.apply(this,arguments)}}(),removeViewFromDom:()=>(Ee&&re&&(re.parentNode.insertBefore(Ee,re),re.remove()),Promise.resolve())}}},1970:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Oe,G:()=>X});class d{constructor(re,Ze,Je,De,_e){this.id=Ze,this.name=Je,this.disableScroll=_e,this.priority=1e6*De+Ze,this.ctrl=re}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 re=this.ctrl.capture(this.name,this.id,this.priority);return re&&this.disableScroll&&this.ctrl.disableScroll(this.id),re}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ge{constructor(re,Ze,Je,De){this.id=Ze,this.disable=Je,this.disableScroll=De,this.ctrl=re}block(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.disableGesture(re,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.enableGesture(re,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",X=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(re){var Ze;return new d(this,this.newID(),re.name,null!==(Ze=re.priority)&&void 0!==Ze?Ze:0,!!re.disableScroll)}createBlocker(re={}){return new ge(this,this.newID(),re.disable,!!re.disableScroll)}start(re,Ze,Je){return this.canStart(re)?(this.requestedStart.set(Ze,Je),!0):(this.requestedStart.delete(Ze),!1)}capture(re,Ze,Je){if(!this.start(re,Ze,Je))return!1;const De=this.requestedStart;let _e=-1e4;if(De.forEach(Fe=>{_e=Math.max(_e,Fe)}),_e===Je){this.capturedId=Ze,De.clear();const Fe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:re}});return document.dispatchEvent(Fe),!0}return De.delete(Ze),!1}release(re){this.requestedStart.delete(re),this.capturedId===re&&(this.capturedId=void 0)}disableGesture(re,Ze){let Je=this.disabledGestures.get(re);void 0===Je&&(Je=new Set,this.disabledGestures.set(re,Je)),Je.add(Ze)}enableGesture(re,Ze){const Je=this.disabledGestures.get(re);void 0!==Je&&Je.delete(Ze)}disableScroll(re){this.disabledScroll.add(re),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(re){this.disabledScroll.delete(re),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(re){return!(void 0!==this.capturedId||this.isDisabled(re))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(re){const Ze=this.disabledGestures.get(re);return!!(Ze&&Ze.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Ze,blockHardwareBackButton:()=>Ee,shouldUseCloseWatcher:()=>X,startHardwareBackButton:()=>re});var g=B(467),d=B(8476),ge=B(3664);B(9672);const X=()=>ge.c.get("experimentalCloseWatcher",!1)&&void 0!==d.w&&"CloseWatcher"in d.w,Ee=()=>{document.addEventListener("backbutton",()=>{})},re=()=>{const De=document;let _e=!1;const Fe=()=>{if(_e)return;let $e=0,Le=[];const Qe=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(st,Mt){Le.push({priority:st,handler:Mt,id:$e++})}}});De.dispatchEvent(Qe);const ft=function(){var st=(0,g.A)(function*(Mt){try{if(null!=Mt&&Mt.handler){const mt=Mt.handler(ut);null!=mt&&(yield mt)}}catch(mt){console.error(mt)}});return function(mt){return st.apply(this,arguments)}}(),ut=()=>{if(Le.length>0){let st={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Le.forEach(Mt=>{Mt.priority>=st.priority&&(st=Mt)}),_e=!0,Le=Le.filter(Mt=>Mt.id!==st.id),ft(st).then(()=>_e=!1)}};ut()};if(X()){let $e;const Le=()=>{null==$e||$e.destroy(),$e=new d.w.CloseWatcher,$e.onclose=()=>{Fe(),Le()}};Le()}else De.addEventListener("backbutton",Fe)},Ze=100,Je=99},4920:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>Ze,b:()=>Je,c:()=>ge,d:()=>Le,e:()=>Mt,f:()=>$e,g:()=>De,h:()=>X,i:()=>re,j:()=>Qe,k:()=>Oe,l:()=>Fe,m:()=>ft,n:()=>st,o:()=>mt,p:()=>ut,r:()=>_e,s:()=>vt,t:()=>g});const g=(Me,je=0)=>new Promise(Ke=>{d(Me,je,Ke)}),d=(Me,je=0,Ke)=>{let Ct,xt;const ze={passive:!0},Vt=()=>{Ct&&Ct()},Zt=Dt=>{(void 0===Dt||Me===Dt.target)&&(Vt(),Ke(Dt))};return Me&&(Me.addEventListener("webkitTransitionEnd",Zt,ze),Me.addEventListener("transitionend",Zt,ze),xt=setTimeout(Zt,je+500),Ct=()=>{void 0!==xt&&(clearTimeout(xt),xt=void 0),Me.removeEventListener("webkitTransitionEnd",Zt,ze),Me.removeEventListener("transitionend",Zt,ze)}),Vt},ge=(Me,je)=>{Me.componentOnReady?Me.componentOnReady().then(Ke=>je(Ke)):_e(()=>je(Me))},Oe=Me=>void 0!==Me.componentOnReady,X=(Me,je=[])=>{const Ke={};return je.forEach(Ct=>{Me.hasAttribute(Ct)&&(null!==Me.getAttribute(Ct)&&(Ke[Ct]=Me.getAttribute(Ct)),Me.removeAttribute(Ct))}),Ke},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"],re=(Me,je)=>{let Ke=Ee;return je&&je.length>0&&(Ke=Ke.filter(Ct=>!je.includes(Ct))),X(Me,Ke)},Ze=(Me,je,Ke,Ct)=>{var xt;if(typeof window<"u"){const ze=window,Tt=null===(xt=null==ze?void 0:ze.Ionic)||void 0===xt?void 0:xt.config;if(Tt){const Vt=Tt.get("_ael");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._ael)return Tt._ael(Me,je,Ke,Ct)}}return Me.addEventListener(je,Ke,Ct)},Je=(Me,je,Ke,Ct)=>{var xt;if(typeof window<"u"){const ze=window,Tt=null===(xt=null==ze?void 0:ze.Ionic)||void 0===xt?void 0:xt.config;if(Tt){const Vt=Tt.get("_rel");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._rel)return Tt._rel(Me,je,Ke,Ct)}}return Me.removeEventListener(je,Ke,Ct)},De=(Me,je=Me)=>Me.shadowRoot||je,_e=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Fe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,$e=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const je=Me.closest("ion-app");je&&je.setFocus([Me])}},Le=(Me,je,Ke,Ct,xt)=>{if(Me||Fe(je)){let ze=je.querySelector("input.aux-input");ze||(ze=je.ownerDocument.createElement("input"),ze.type="hidden",ze.classList.add("aux-input"),je.appendChild(ze)),ze.disabled=xt,ze.name=Ke,ze.value=Ct||""}},Qe=(Me,je,Ke)=>Math.max(Me,Math.min(je,Ke)),ft=(Me,je)=>{if(!Me){const Ke="ASSERT: "+je;throw console.error(Ke),new Error(Ke)}},ut=Me=>{if(Me){const je=Me.changedTouches;if(je&&je.length>0){const Ke=je[0];return{x:Ke.clientX,y:Ke.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},st=Me=>{const je="rtl"===document.dir;switch(Me){case"start":return je;case"end":return!je;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Mt=(Me,je)=>{const Ke=Me._original||Me;return{_original:Me,emit:mt(Ke.emit.bind(Ke),je)}},mt=(Me,je=0)=>{let Ke;return(...Ct)=>{clearTimeout(Ke),Ke=setTimeout(Me,je,...Ct)}},vt=(Me,je)=>{if(null!=Me||(Me={}),null!=je||(je={}),Me===je)return!0;const Ke=Object.keys(Me);if(Ke.length!==Object.keys(je).length)return!1;for(const Ct of Ke)if(!(Ct in je)||Me[Ct]!==je[Ct])return!1;return!0}},5465:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>$e});var g=B(467),d=B(8476),ge=B(6411),Oe=B(4929),X=B(4920),Ee=B(3664),re=B(9986);const Ze=Le=>(0,re.c)().duration(Le?400:300),Je=Le=>{let Qe,ft;const ut=Le.width+8,st=(0,re.c)(),Mt=(0,re.c)();Le.isEndSide?(Qe=ut+"px",ft="0px"):(Qe=-ut+"px",ft="0px"),st.addElement(Le.menuInnerEl).fromTo("transform",`translateX(${Qe})`,`translateX(${ft})`);const vt="ios"===(0,Ee.b)(Le),Me=vt?.2:.25;return Mt.addElement(Le.backdropEl).fromTo("opacity",.01,Me),Ze(vt).addAnimation([st,Mt])},De=Le=>{let Qe,ft;const ut=(0,Ee.b)(Le),st=Le.width;Le.isEndSide?(Qe=-st+"px",ft=st+"px"):(Qe=st+"px",ft=-st+"px");const Mt=(0,re.c)().addElement(Le.menuInnerEl).fromTo("transform",`translateX(${ft})`,"translateX(0px)"),mt=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${Qe})`),vt=(0,re.c)().addElement(Le.backdropEl).fromTo("opacity",.01,.32);return Ze("ios"===ut).addAnimation([Mt,mt,vt])},_e=Le=>{const Qe=(0,Ee.b)(Le),ft=Le.width*(Le.isEndSide?-1:1)+"px",ut=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${ft})`);return Ze("ios"===Qe).addAnimation(ut)},$e=(()=>{const Le=new Map,Qe=[],ft=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.open()});return function(de){return W.apply(this,arguments)}}(),ut=function(){var W=(0,g.A)(function*(te){const de=yield void 0!==te?je(te,!0):Ke();return void 0!==de&&de.close()});return function(de){return W.apply(this,arguments)}}(),st=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.toggle()});return function(de){return W.apply(this,arguments)}}(),Mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.disabled=!te),ae});return function(de,ae){return W.apply(this,arguments)}}(),mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.swipeGesture=te),ae});return function(de,ae){return W.apply(this,arguments)}}(),vt=function(){var W=(0,g.A)(function*(te){if(null!=te){const de=yield je(te);return void 0!==de&&de.isOpen()}return void 0!==(yield Ke())});return function(de){return W.apply(this,arguments)}}(),Me=function(){var W=(0,g.A)(function*(te){const de=yield je(te);return!!de&&!de.disabled});return function(de){return W.apply(this,arguments)}}(),je=function(){var W=(0,g.A)(function*(te,de=!1){if(yield j(),"start"===te||"end"===te){const me=Qe.filter(at=>at.side===te&&!at.disabled);if(me.length>=1)return me.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${me.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.`,me.map(at=>at.el)),me[0].el;const Ce=Qe.filter(at=>at.side===te);if(Ce.length>=1)return Ce.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${Ce.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.`,Ce.map(at=>at.el)),Ce[0].el}else if(null!=te)return ye(me=>me.menuId===te);return ye(me=>!me.disabled)||(Qe.length>0?Qe[0].el:void 0)});return function(de){return W.apply(this,arguments)}}(),Ke=function(){var W=(0,g.A)(function*(){return yield j(),Be()});return function(){return W.apply(this,arguments)}}(),Ct=function(){var W=(0,g.A)(function*(){return yield j(),rn()});return function(){return W.apply(this,arguments)}}(),xt=function(){var W=(0,g.A)(function*(){return yield j(),pt()});return function(){return W.apply(this,arguments)}}(),ze=(W,te)=>{Le.set(W,te)},Zt=function(){var W=(0,g.A)(function*(te,de,ae){if(pt())return!1;if(de){const me=yield Ke();me&&te.el!==me&&(yield me.setOpen(!1,!1))}return te._setOpen(de,ae)});return function(de,ae,me){return W.apply(this,arguments)}}(),Be=()=>ye(W=>W._isOpen),rn=()=>Qe.map(W=>W.el),pt=()=>Qe.some(W=>W.isAnimating),ye=W=>{const te=Qe.find(W);if(void 0!==te)return te.el},j=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(W=>new Promise(te=>(0,X.c)(W,te))));return ze("reveal",_e),ze("push",De),ze("overlay",Je),null==d.d||d.d.addEventListener("ionBackButton",W=>{const te=Be();te&&W.detail.register(ge.MENU_BACK_BUTTON_PRIORITY,()=>te.close())}),{registerAnimation:ze,get:je,getMenus:Ct,getOpen:Ke,isEnabled:Me,swipeGesture:mt,isAnimating:xt,isOpen:vt,enable:Mt,toggle:st,close:ut,open:ft,_getOpenSync:Be,_createAnimation:(W,te)=>{const de=Le.get(W);if(!de)throw new Error("animation not registered");return de(te)},_register:W=>{Qe.indexOf(W)<0&&Qe.push(W)},_unregister:W=>{const te=Qe.indexOf(W);te>-1&&Qe.splice(te,1)},_setOpen:Zt}})()},8607:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>Je});var g=B(1970);const d=($e,Le,Qe,ft)=>{const ut=ge($e)?{capture:!!ft.capture,passive:!!ft.passive}:!!ft.capture;let st,Mt;return $e.__zone_symbol__addEventListener?(st="__zone_symbol__addEventListener",Mt="__zone_symbol__removeEventListener"):(st="addEventListener",Mt="removeEventListener"),$e[st](Le,Qe,ut),()=>{$e[Mt](Le,Qe,ut)}},ge=$e=>{if(void 0===Oe)try{const Le=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});$e.addEventListener("optsTest",()=>{},Le)}catch{Oe=!1}return!!Oe};let Oe;const re=$e=>$e instanceof Document?$e:$e.ownerDocument,Je=$e=>{let Le=!1,Qe=!1,ft=!0,ut=!1;const st=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},$e),Mt=st.canStart,mt=st.onWillStart,vt=st.onStart,Me=st.onEnd,je=st.notCaptured,Ke=st.onMove,Ct=st.threshold,xt=st.passive,ze=st.blurOnStart,Tt={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},Vt=(($e,Le,Qe)=>{const ft=Qe*(Math.PI/180),ut="x"===$e,st=Math.cos(ft),Mt=Le*Le;let mt=0,vt=0,Me=!1,je=0;return{start(Ke,Ct){mt=Ke,vt=Ct,je=0,Me=!0},detect(Ke,Ct){if(!Me)return!1;const xt=Ke-mt,ze=Ct-vt,Tt=xt*xt+ze*ze;if(Ttst?1:Zt<-st?-1:0,Me=!1,!0},isGesture:()=>0!==je,getDirection:()=>je}})(st.direction,st.threshold,st.maxAngle),Zt=g.G.createGesture({name:$e.gestureName,priority:$e.gesturePriority,disableScroll:$e.disableScroll}),rn=()=>{Le&&(ut=!1,Ke&&Ke(Tt))},pt=()=>!!Zt.capture()&&(Le=!0,ft=!1,Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime,mt?mt(Tt).then(j):j(),!0),j=()=>{ze&&(()=>{if(typeof document<"u"){const me=document.activeElement;null!=me&&me.blur&&me.blur()}})(),vt&&vt(Tt),ft=!0},W=()=>{Le=!1,Qe=!1,ut=!1,ft=!0,Zt.release()},te=me=>{const Ce=Le,at=ft;if(W(),at){if(De(Tt,me),Ce)return void(Me&&Me(Tt));je&&je(Tt)}},de=(($e,Le,Qe,ft,ut)=>{let st,Mt,mt,vt,Me,je,Ke,Ct=0;const xt=ye=>{Ct=Date.now()+2e3,Le(ye)&&(!Mt&&Qe&&(Mt=d($e,"touchmove",Qe,ut)),mt||(mt=d(ye.target,"touchend",Tt,ut)),vt||(vt=d(ye.target,"touchcancel",Tt,ut)))},ze=ye=>{Ct>Date.now()||Le(ye)&&(!je&&Qe&&(je=d(re($e),"mousemove",Qe,ut)),Ke||(Ke=d(re($e),"mouseup",Vt,ut)))},Tt=ye=>{Zt(),ft&&ft(ye)},Vt=ye=>{Dt(),ft&&ft(ye)},Zt=()=>{Mt&&Mt(),mt&&mt(),vt&&vt(),Mt=mt=vt=void 0},Dt=()=>{je&&je(),Ke&&Ke(),je=Ke=void 0},Be=()=>{Zt(),Dt()},rn=(ye=!0)=>{ye?(st||(st=d($e,"touchstart",xt,ut)),Me||(Me=d($e,"mousedown",ze,ut))):(st&&st(),Me&&Me(),st=Me=void 0,Be())};return{enable:rn,stop:Be,destroy:()=>{rn(!1),ft=Qe=Le=void 0}}})(st.el,me=>{const Ce=Fe(me);return!(Qe||!ft||(_e(me,Tt),Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime=Ce,Tt.velocityX=Tt.velocityY=Tt.deltaX=Tt.deltaY=0,Tt.event=me,Mt&&!1===Mt(Tt))||(Zt.release(),!Zt.start()))&&(Qe=!0,0===Ct?pt():(Vt.start(Tt.startX,Tt.startY),!0))},me=>{Le?!ut&&ft&&(ut=!0,De(Tt,me),requestAnimationFrame(rn)):(De(Tt,me),Vt.detect(Tt.currentX,Tt.currentY)&&(!Vt.isGesture()||!pt())&&ae())},te,{capture:!1,passive:xt}),ae=()=>{W(),de.stop(),je&&je(Tt)};return{enable(me=!0){me||(Le&&te(void 0),W()),de.enable(me)},destroy(){Zt.destroy(),de.destroy()}}},De=($e,Le)=>{if(!Le)return;const Qe=$e.currentX,ft=$e.currentY,ut=$e.currentTime;_e(Le,$e);const st=$e.currentX,Mt=$e.currentY,vt=($e.currentTime=Fe(Le))-ut;if(vt>0&&vt<100){const je=(Mt-ft)/vt;$e.velocityX=(st-Qe)/vt*.7+.3*$e.velocityX,$e.velocityY=.7*je+.3*$e.velocityY}$e.deltaX=st-$e.startX,$e.deltaY=Mt-$e.startY,$e.event=Le},_e=($e,Le)=>{let Qe=0,ft=0;if($e){const ut=$e.changedTouches;if(ut&&ut.length>0){const st=ut[0];Qe=st.clientX,ft=st.clientY}else void 0!==$e.pageX&&(Qe=$e.pageX,ft=$e.pageY)}Le.currentX=Qe,Le.currentY=ft},Fe=$e=>$e.timeStamp||Date.now()},9672:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Ee,a:()=>Fo,b:()=>xr,c:()=>at,d:()=>bn,e:()=>ar,f:()=>pt,g:()=>kt,h:()=>Be,i:()=>vn,j:()=>yr,k:()=>re,r:()=>Nn,w:()=>ui});var g=B(467);var Oe=Object.defineProperty,Ee={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},re=U=>{const ne=new URL(U,jn.$resourcesUrl$);return ne.origin!==sr.location.origin?ne.href:ne.pathname},Ze={},Fe=U=>"object"==(U=typeof U)||"function"===U;function $e(U){var ne,Ae,ke;return null!=(ke=null==(Ae=null==(ne=U.head)?void 0:ne.querySelector('meta[name="csp-nonce"]'))?void 0:Ae.getAttribute("content"))?ke:void 0}((U,ne)=>{for(var Ae in ne)Oe(U,Ae,{get:ne[Ae],enumerable:!0})})({},{err:()=>ft,map:()=>ut,ok:()=>Qe,unwrap:()=>st,unwrapErr:()=>Mt});var Qe=U=>({isOk:!0,isErr:!1,value:U}),ft=U=>({isOk:!1,isErr:!0,value:U});function ut(U,ne){if(U.isOk){const Ae=ne(U.value);return Ae instanceof Promise?Ae.then(ke=>Qe(ke)):Qe(Ae)}if(U.isErr)return ft(U.value);throw"should never get here"}var st=U=>{if(U.isOk)return U.value;throw U.value},Mt=U=>{if(U.isErr)return U.value;throw U.value},xt="s-id",ze="sty-id",Zt="slot-fb{display:contents}slot-fb[hidden]{display:none}",Dt="http://www.w3.org/1999/xlink",Be=(U,ne,...Ae)=>{let ke=null,ot=null,et=null,Lt=!1,zt=!1;const Kt=[],Yt=Cn=>{for(let Ln=0;LnCn[Ln]).join(" "))}}if("function"==typeof U)return U(null===ne?{}:ne,Kt,j);const _n=rn(U,null);return _n.$attrs$=ne,Kt.length>0&&(_n.$children$=Kt),_n.$key$=ot,_n.$name$=et,_n},rn=(U,ne)=>({$flags$:0,$tag$:U,$text$:ne,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),pt={},j={forEach:(U,ne)=>U.map(W).forEach(ne),map:(U,ne)=>U.map(W).map(ne).map(te)},W=U=>({vattrs:U.$attrs$,vchildren:U.$children$,vkey:U.$key$,vname:U.$name$,vtag:U.$tag$,vtext:U.$text$}),te=U=>{if("function"==typeof U.vtag){const Ae={...U.vattrs};return U.vkey&&(Ae.key=U.vkey),U.vname&&(Ae.name=U.vname),Be(U.vtag,Ae,...U.vchildren||[])}const ne=rn(U.vtag,U.vtext);return ne.$attrs$=U.vattrs,ne.$children$=U.vchildren,ne.$key$=U.vkey,ne.$name$=U.vname,ne},ae=(U,ne,Ae,ke,ot,et,Lt)=>{let zt,Kt,Yt,_n;if(1===et.nodeType){for(zt=et.getAttribute("c-id"),zt&&(Kt=zt.split("."),(Kt[0]===Lt||"0"===Kt[0])&&(Yt={$flags$:0,$hostId$:Kt[0],$nodeId$:Kt[1],$depth$:Kt[2],$index$:Kt[3],$tag$:et.tagName.toLowerCase(),$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ne.push(Yt),et.removeAttribute("c-id"),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,U=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))),_n=et.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.childNodes[_n],Lt);if(et.shadowRoot)for(_n=et.shadowRoot.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.shadowRoot.childNodes[_n],Lt)}else if(8===et.nodeType)Kt=et.nodeValue.split("."),(Kt[1]===Lt||"0"===Kt[1])&&(zt=Kt[0],Yt={$flags$:0,$hostId$:Kt[1],$nodeId$:Kt[2],$depth$:Kt[3],$index$:Kt[4],$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===zt?(Yt.$elm$=et.nextSibling,Yt.$elm$&&3===Yt.$elm$.nodeType&&(Yt.$text$=Yt.$elm$.textContent,ne.push(Yt),et.remove(),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))):Yt.$hostId$===Lt&&("s"===zt?(Yt.$tag$="slot",et["s-sn"]=Kt[5]?Yt.$name$=Kt[5]:"",et["s-sr"]=!0,ke&&(Yt.$elm$=Or.createElement(Yt.$tag$),Yt.$name$&&Yt.$elm$.setAttribute("name",Yt.$name$),et.parentNode.insertBefore(Yt.$elm$,et),et.remove(),"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$)),Ae.push(Yt),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt):"r"===zt&&(ke?et.remove():(ot["s-cr"]=et,et["s-cn"]=!0))));else if(U&&"style"===U.$tag$){const Cn=rn(null,et.textContent);Cn.$elm$=et,Cn.$index$="0",U.$children$=[Cn]}},me=(U,ne)=>{if(1===U.nodeType){let Ae=0;for(;Aesi.push(U),kt=U=>oi(U).$modeName$,vn=U=>oi(U).$hostElement$,bn=(U,ne,Ae)=>{const ke=vn(U);return{emit:ot=>$n(ke,ne,{bubbles:!!(4&Ae),composed:!!(2&Ae),cancelable:!!(1&Ae),detail:ot})}},$n=(U,ne,Ae)=>{const ke=jn.ce(ne,Ae);return U.dispatchEvent(ke),ke},qn=new WeakMap,er=(U,ne,Ae)=>{let ke=ps.get(U);To&&Ae?(ke=ke||new CSSStyleSheet,"string"==typeof ke?ke=ne:ke.replaceSync(ne)):ke=ne,ps.set(U,ke)},yn=(U,ne,Ae)=>{var ke;const ot=Yn(ne,Ae),et=ps.get(ot);if(U=11===U.nodeType?U:Or,et)if("string"==typeof et){let zt,Lt=qn.get(U=U.head||U);if(Lt||qn.set(U,Lt=new Set),!Lt.has(ot)){if(U.host&&(zt=U.querySelector(`[${ze}="${ot}"]`)))zt.innerHTML=et;else{zt=Or.createElement("style"),zt.innerHTML=et;const Kt=null!=(ke=jn.$nonce$)?ke:$e(Or);null!=Kt&&zt.setAttribute("nonce",Kt),U.insertBefore(zt,U.querySelector("link"))}4&ne.$flags$&&(zt.innerHTML+=Zt),Lt&&Lt.add(ot)}}else U.adoptedStyleSheets.includes(et)||(U.adoptedStyleSheets=[...U.adoptedStyleSheets,et]);return ot},Yn=(U,ne)=>"sc-"+(ne&&32&U.$flags$?U.$tagName$+"-"+ne:U.$tagName$),Ve=U=>U.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),yt=(U,ne,Ae,ke,ot,et)=>{if(Ae!==ke){let Lt=ko(U,ne),zt=ne.toLowerCase();if("class"===ne){const Kt=U.classList,Yt=Xt(Ae),_n=Xt(ke);Kt.remove(...Yt.filter(Cn=>Cn&&!_n.includes(Cn))),Kt.add(..._n.filter(Cn=>Cn&&!Yt.includes(Cn)))}else if("style"===ne){for(const Kt in Ae)(!ke||null==ke[Kt])&&(Kt.includes("-")?U.style.removeProperty(Kt):U.style[Kt]="");for(const Kt in ke)(!Ae||ke[Kt]!==Ae[Kt])&&(Kt.includes("-")?U.style.setProperty(Kt,ke[Kt]):U.style[Kt]=ke[Kt])}else if("key"!==ne)if("ref"===ne)ke&&ke(U);else if(Lt||"o"!==ne[0]||"n"!==ne[1]){const Kt=Fe(ke);if((Lt||Kt&&null!==ke)&&!ot)try{if(U.tagName.includes("-"))U[ne]=ke;else{const _n=null==ke?"":ke;"list"===ne?Lt=!1:(null==Ae||U[ne]!=_n)&&(U[ne]=_n)}}catch{}let Yt=!1;zt!==(zt=zt.replace(/^xlink\:?/,""))&&(ne=zt,Yt=!0),null==ke||!1===ke?(!1!==ke||""===U.getAttribute(ne))&&(Yt?U.removeAttributeNS(Dt,ne):U.removeAttribute(ne)):(!Lt||4&et||ot)&&!Kt&&(ke=!0===ke?"":ke,Yt?U.setAttributeNS(Dt,ne,ke):U.setAttribute(ne,ke))}else if(ne="-"===ne[2]?ne.slice(3):ko(sr,zt)?zt.slice(2):zt[2]+ne.slice(3),Ae||ke){const Kt=ne.endsWith(en);ne=ne.replace(Ir,""),Ae&&jn.rel(U,ne,Ae,Kt),ke&&jn.ael(U,ne,ke,Kt)}}},Ot=/\s/,Xt=U=>U?U.split(Ot):[],en="Capture",Ir=new RegExp(en+"$"),gn=(U,ne,Ae)=>{const ke=11===ne.$elm$.nodeType&&ne.$elm$.host?ne.$elm$.host:ne.$elm$,ot=U&&U.$attrs$||Ze,et=ne.$attrs$||Ze;for(const Lt of mn(Object.keys(ot)))Lt in et||yt(ke,Lt,ot[Lt],void 0,Ae,ne.$flags$);for(const Lt of mn(Object.keys(et)))yt(ke,Lt,ot[Lt],et[Lt],Ae,ne.$flags$)};function mn(U){return U.includes("ref")?[...U.filter(ne=>"ref"!==ne),"ref"]:U}var Jt,Gt,pr,wr=!1,kr=!1,Mr=!1,_r=!1,Bn=(U,ne,Ae,ke)=>{var ot;const et=ne.$children$[Ae];let zt,Kt,Yt,Lt=0;if(wr||(Mr=!0,"slot"===et.$tag$&&(Jt&&ke.classList.add(Jt+"-s"),et.$flags$|=et.$children$?2:1)),null!==et.$text$)zt=et.$elm$=Or.createTextNode(et.$text$);else if(1&et.$flags$)zt=et.$elm$=Or.createTextNode("");else{if(_r||(_r="svg"===et.$tag$),zt=et.$elm$=Or.createElementNS(_r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&et.$flags$?"slot-fb":et.$tag$),_r&&"foreignObject"===et.$tag$&&(_r=!1),gn(null,et,_r),(U=>null!=U)(Jt)&&zt["s-si"]!==Jt&&zt.classList.add(zt["s-si"]=Jt),et.$children$)for(Lt=0;Lt{jn.$flags$|=1;const ne=U.closest(pr.toLowerCase());if(null!=ne){const Ae=Array.from(ne.childNodes).find(ot=>ot["s-cr"]),ke=Array.from(U.childNodes);for(const ot of Ae?ke.reverse():ke)null!=ot["s-sh"]&&(he(ne,ot,null!=Ae?Ae:null),ot["s-sh"]=void 0,Mr=!0)}jn.$flags$&=-2},Zn=(U,ne)=>{jn.$flags$|=1;const Ae=Array.from(U.childNodes);if(U["s-sr"]){let ke=U;for(;ke=ke.nextSibling;)ke&&ke["s-sn"]===U["s-sn"]&&ke["s-sh"]===pr&&Ae.push(ke)}for(let ke=Ae.length-1;ke>=0;ke--){const ot=Ae[ke];ot["s-hn"]!==pr&&ot["s-ol"]&&(he(Qr(ot),ot,Mi(ot)),ot["s-ol"].remove(),ot["s-ol"]=void 0,ot["s-sh"]=void 0,Mr=!0),ne&&Zn(ot,ne)}jn.$flags$&=-2},wn=(U,ne,Ae,ke,ot,et)=>{let zt,Lt=U["s-cr"]&&U["s-cr"].parentNode||U;for(Lt.shadowRoot&&Lt.tagName===pr&&(Lt=Lt.shadowRoot);ot<=et;++ot)ke[ot]&&(zt=Bn(null,Ae,ot,U),zt&&(ke[ot].$elm$=zt,he(Lt,zt,Mi(ne))))},Sr=(U,ne,Ae)=>{for(let ke=ne;ke<=Ae;++ke){const ot=U[ke];if(ot){const et=ot.$elm$;ie(ot),et&&(kr=!0,et["s-ol"]?et["s-ol"].remove():Zn(et,!0),et.remove())}}},Er=(U,ne,Ae=!1)=>U.$tag$===ne.$tag$&&("slot"===U.$tag$?U.$name$===ne.$name$:!!Ae||U.$key$===ne.$key$),Mi=U=>U&&U["s-ol"]||U,Qr=U=>(U["s-ol"]?U["s-ol"]:U).parentNode,Yr=(U,ne,Ae=!1)=>{const ke=ne.$elm$=U.$elm$,ot=U.$children$,et=ne.$children$,Lt=ne.$tag$,zt=ne.$text$;let Kt;null===zt?(_r="svg"===Lt||"foreignObject"!==Lt&&_r,"slot"!==Lt||wr?gn(U,ne,_r):U.$name$!==ne.$name$&&(ne.$elm$["s-sn"]=ne.$name$||"",ni(ne.$elm$.parentElement)),null!==ot&&null!==et?((U,ne,Ae,ke,ot=!1)=>{let cr,nr,et=0,Lt=0,zt=0,Kt=0,Yt=ne.length-1,_n=ne[0],Cn=ne[Yt],Ln=ke.length-1,In=ke[0],br=ke[Ln];for(;et<=Yt&&Lt<=Ln;)if(null==_n)_n=ne[++et];else if(null==Cn)Cn=ne[--Yt];else if(null==In)In=ke[++Lt];else if(null==br)br=ke[--Ln];else if(Er(_n,In,ot))Yr(_n,In,ot),_n=ne[++et],In=ke[++Lt];else if(Er(Cn,br,ot))Yr(Cn,br,ot),Cn=ne[--Yt],br=ke[--Ln];else if(Er(_n,br,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(_n.$elm$.parentNode,!1),Yr(_n,br,ot),he(U,_n.$elm$,Cn.$elm$.nextSibling),_n=ne[++et],br=ke[--Ln];else if(Er(Cn,In,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(Cn.$elm$.parentNode,!1),Yr(Cn,In,ot),he(U,Cn.$elm$,_n.$elm$),Cn=ne[--Yt],In=ke[++Lt];else{for(zt=-1,Kt=et;Kt<=Yt;++Kt)if(ne[Kt]&&null!==ne[Kt].$key$&&ne[Kt].$key$===In.$key$){zt=Kt;break}zt>=0?(nr=ne[zt],nr.$tag$!==In.$tag$?cr=Bn(ne&&ne[Lt],Ae,zt,U):(Yr(nr,In,ot),ne[zt]=void 0,cr=nr.$elm$),In=ke[++Lt]):(cr=Bn(ne&&ne[Lt],Ae,Lt,U),In=ke[++Lt]),cr&&he(Qr(_n.$elm$),cr,Mi(_n.$elm$))}et>Yt?wn(U,null==ke[Ln+1]?null:ke[Ln+1].$elm$,Ae,ke,Lt,Ln):Lt>Ln&&Sr(ne,et,Yt)})(ke,ot,ne,et,Ae):null!==et?(null!==U.$text$&&(ke.textContent=""),wn(ke,null,ne,et,0,et.length-1)):null!==ot&&Sr(ot,0,ot.length-1),_r&&"svg"===Lt&&(_r=!1)):(Kt=ke["s-cr"])?Kt.parentNode.textContent=zt:U.$text$!==zt&&(ke.data=zt)},oe=U=>{const ne=U.childNodes;for(const Ae of ne)if(1===Ae.nodeType){if(Ae["s-sr"]){const ke=Ae["s-sn"];Ae.hidden=!1;for(const ot of ne)if(ot!==Ae)if(ot["s-hn"]!==Ae["s-hn"]||""!==ke){if(1===ot.nodeType&&(ke===ot.getAttribute("slot")||ke===ot["s-sn"])||3===ot.nodeType&&ke===ot["s-sn"]){Ae.hidden=!0;break}}else if(1===ot.nodeType||3===ot.nodeType&&""!==ot.textContent.trim()){Ae.hidden=!0;break}}oe(Ae)}},He=[],ct=U=>{let ne,Ae,ke;for(const ot of U.childNodes){if(ot["s-sr"]&&(ne=ot["s-cr"])&&ne.parentNode){Ae=ne.parentNode.childNodes;const et=ot["s-sn"];for(ke=Ae.length-1;ke>=0;ke--)if(ne=Ae[ke],!(ne["s-cn"]||ne["s-nr"]||ne["s-hn"]===ot["s-hn"]||ne["s-sh"]&&ne["s-sh"]===ot["s-hn"]))if(Xe(ne,et)){let Lt=He.find(zt=>zt.$nodeToRelocate$===ne);kr=!0,ne["s-sn"]=ne["s-sn"]||et,Lt?(Lt.$nodeToRelocate$["s-sh"]=ot["s-hn"],Lt.$slotRefNode$=ot):(ne["s-sh"]=ot["s-hn"],He.push({$slotRefNode$:ot,$nodeToRelocate$:ne})),ne["s-sr"]&&He.map(zt=>{Xe(zt.$nodeToRelocate$,ne["s-sn"])&&(Lt=He.find(Kt=>Kt.$nodeToRelocate$===ne),Lt&&!zt.$slotRefNode$&&(zt.$slotRefNode$=Lt.$slotRefNode$))})}else He.some(Lt=>Lt.$nodeToRelocate$===ne)||He.push({$nodeToRelocate$:ne})}1===ot.nodeType&&ct(ot)}},Xe=(U,ne)=>1===U.nodeType?null===U.getAttribute("slot")&&""===ne||U.getAttribute("slot")===ne:U["s-sn"]===ne||""===ne,ie=U=>{U.$attrs$&&U.$attrs$.ref&&U.$attrs$.ref(null),U.$children$&&U.$children$.map(ie)},he=(U,ne,Ae)=>{const ke=null==U?void 0:U.insertBefore(ne,Ae);return Et(ne,U),ke},Pe=U=>U?U["s-rsc"]||U["s-si"]||U["s-sc"]||Pe(U.parentElement):void 0,Et=(U,ne)=>{var Ae,ke,ot;if(U&&ne){const et=U["s-rsc"],Lt=Pe(ne);et&&null!=(Ae=U.classList)&&Ae.contains(et)&&U.classList.remove(et),Lt&&(U["s-rsc"]=Lt,(null==(ke=U.classList)||!ke.contains(Lt))&&(null==(ot=U.classList)||ot.add(Lt)))}},dn=(U,ne)=>{ne&&!U.$onRenderResolve$&&ne["s-p"]&&ne["s-p"].push(new Promise(Ae=>U.$onRenderResolve$=Ae))},Sn=(U,ne)=>{if(U.$flags$|=16,!(4&U.$flags$))return dn(U,U.$ancestorComponent$),ui(()=>Wn(U,ne));U.$flags$|=512},Wn=(U,ne)=>{const ke=U.$lazyInstance$;let ot;return ne&&(U.$flags$|=256,U.$queuedListeners$&&(U.$queuedListeners$.map(([et,Lt])=>ii(ke,et,Lt)),U.$queuedListeners$=void 0),ot=ii(ke,"componentWillLoad")),ot=gr(ot,()=>ii(ke,"componentWillRender")),gr(ot,()=>ri(U,ke,ne))},gr=(U,ne)=>ur(U)?U.then(ne):ne(),ur=U=>U instanceof Promise||U&&U.then&&"function"==typeof U.then,ri=function(){var U=(0,g.A)(function*(ne,Ae,ke){var ot;const et=ne.$hostElement$,zt=et["s-rc"];ke&&(U=>{const ne=U.$cmpMeta$,Ae=U.$hostElement$,ke=ne.$flags$,et=yn(Ae.shadowRoot?Ae.shadowRoot:Ae.getRootNode(),ne,U.$modeName$);10&ke&&(Ae["s-sc"]=et,Ae.classList.add(et+"-h"),2&ke&&Ae.classList.add(et+"-s"))})(ne);xn(ne,Ae,et,ke),zt&&(zt.map(Yt=>Yt()),et["s-rc"]=void 0);{const Yt=null!=(ot=et["s-p"])?ot:[],_n=()=>Rn(ne);0===Yt.length?_n():(Promise.all(Yt).then(_n),ne.$flags$|=4,Yt.length=0)}});return function(Ae,ke,ot){return U.apply(this,arguments)}}(),xn=(U,ne,Ae,ke)=>{try{ne=ne.render&&ne.render(),U.$flags$&=-17,U.$flags$|=2,((U,ne,Ae=!1)=>{var ke,ot,et,Lt,zt;const Kt=U.$hostElement$,Yt=U.$cmpMeta$,_n=U.$vnode$||rn(null,null),Cn=(U=>U&&U.$tag$===pt)(ne)?ne:Be(null,null,ne);if(pr=Kt.tagName,Yt.$attrsToReflect$&&(Cn.$attrs$=Cn.$attrs$||{},Yt.$attrsToReflect$.map(([Ln,In])=>Cn.$attrs$[In]=Kt[Ln])),Ae&&Cn.$attrs$)for(const Ln of Object.keys(Cn.$attrs$))Kt.hasAttribute(Ln)&&!["key","ref","style","class"].includes(Ln)&&(Cn.$attrs$[Ln]=Kt[Ln]);if(Cn.$tag$=null,Cn.$flags$|=4,U.$vnode$=Cn,Cn.$elm$=_n.$elm$=Kt.shadowRoot||Kt,Jt=Kt["s-sc"],wr=!!(1&Yt.$flags$),Gt=Kt["s-cr"],kr=!1,Yr(_n,Cn,Ae),jn.$flags$|=1,Mr){ct(Cn.$elm$);for(const Ln of He){const In=Ln.$nodeToRelocate$;if(!In["s-ol"]){const br=Or.createTextNode("");br["s-nr"]=In,he(In.parentNode,In["s-ol"]=br,In)}}for(const Ln of He){const In=Ln.$nodeToRelocate$,br=Ln.$slotRefNode$;if(br){const cr=br.parentNode;let nr=br.nextSibling;if(nr&&1===nr.nodeType){let li=null==(ke=In["s-ol"])?void 0:ke.previousSibling;for(;li;){let vi=null!=(ot=li["s-nr"])?ot:null;if(vi&&vi["s-sn"]===In["s-sn"]&&cr===vi.parentNode){for(vi=vi.nextSibling;vi===In||null!=vi&&vi["s-sr"];)vi=null==vi?void 0:vi.nextSibling;if(!vi||!vi["s-nr"]){nr=vi;break}}li=li.previousSibling}}(!nr&&cr!==In.parentNode||In.nextSibling!==nr)&&In!==nr&&(he(cr,In,nr),1===In.nodeType&&(In.hidden=null!=(et=In["s-ih"])&&et)),In&&"function"==typeof br["s-rf"]&&br["s-rf"](In)}else 1===In.nodeType&&(Ae&&(In["s-ih"]=null!=(Lt=In.hidden)&&Lt),In.hidden=!0)}}if(kr&&oe(Cn.$elm$),jn.$flags$&=-2,He.length=0,2&Yt.$flags$)for(const Ln of Cn.$elm$.childNodes)Ln["s-hn"]!==pr&&!Ln["s-sh"]&&(Ae&&null==Ln["s-ih"]&&(Ln["s-ih"]=null!=(zt=Ln.hidden)&&zt),Ln.hidden=!0);Gt=void 0})(U,ne,ke)}catch(ot){ei(ot,U.$hostElement$)}return null},Rn=U=>{const Ae=U.$hostElement$,ot=U.$lazyInstance$,et=U.$ancestorComponent$;ii(ot,"componentDidRender"),64&U.$flags$?ii(ot,"componentDidUpdate"):(U.$flags$|=64,pi(Ae),ii(ot,"componentDidLoad"),U.$onReadyResolve$(Ae),et||Ei()),U.$onInstanceResolve$(Ae),U.$onRenderResolve$&&(U.$onRenderResolve$(),U.$onRenderResolve$=void 0),512&U.$flags$&&qe(()=>Sn(U,!1)),U.$flags$&=-517},yr=U=>{{const ne=oi(U),Ae=ne.$hostElement$.isConnected;return Ae&&2==(18&ne.$flags$)&&Sn(ne,!1),Ae}},Ei=U=>{pi(Or.documentElement),qe(()=>$n(sr,"appload",{detail:{namespace:"ionic"}}))},ii=(U,ne,Ae)=>{if(U&&U[ne])try{return U[ne](Ae)}catch(ke){ei(ke)}},pi=U=>U.classList.add("hydrated"),Hi=(U,ne,Ae)=>{var ke;const ot=U.prototype;if(ne.$members$){U.watchers&&(ne.$watchers$=U.watchers);const et=Object.entries(ne.$members$);if(et.map(([Lt,[zt]])=>{31&zt||2&Ae&&32&zt?Object.defineProperty(ot,Lt,{get(){return((U,ne)=>oi(this).$instanceValues$.get(ne))(0,Lt)},set(Kt){((U,ne,Ae,ke)=>{const ot=oi(U);if(!ot)throw new Error(`Couldn't find host element for "${ke.$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 et=ot.$hostElement$,Lt=ot.$instanceValues$.get(ne),zt=ot.$flags$,Kt=ot.$lazyInstance$;Ae=((U,ne)=>null==U||Fe(U)?U:4&ne?"false"!==U&&(""===U||!!U):2&ne?parseFloat(U):1&ne?String(U):U)(Ae,ke.$members$[ne][0]);const Yt=Number.isNaN(Lt)&&Number.isNaN(Ae);if((!(8&zt)||void 0===Lt)&&Ae!==Lt&&!Yt&&(ot.$instanceValues$.set(ne,Ae),Kt)){if(ke.$watchers$&&128&zt){const Cn=ke.$watchers$[ne];Cn&&Cn.map(Ln=>{try{Kt[Ln](Ae,Lt,ne)}catch(In){ei(In,et)}})}2==(18&zt)&&Sn(ot,!1)}})(this,Lt,Kt,ne)},configurable:!0,enumerable:!0}):1&Ae&&64&zt&&Object.defineProperty(ot,Lt,{value(...Kt){var Yt;const _n=oi(this);return null==(Yt=null==_n?void 0:_n.$onInstancePromise$)?void 0:Yt.then(()=>{var Cn;return null==(Cn=_n.$lazyInstance$)?void 0:Cn[Lt](...Kt)})}})}),1&Ae){const Lt=new Map;ot.attributeChangedCallback=function(zt,Kt,Yt){jn.jmp(()=>{var _n;const Cn=Lt.get(zt);if(this.hasOwnProperty(Cn))Yt=this[Cn],delete this[Cn];else{if(ot.hasOwnProperty(Cn)&&"number"==typeof this[Cn]&&this[Cn]==Yt)return;if(null==Cn){const Ln=oi(this),In=null==Ln?void 0:Ln.$flags$;if(In&&!(8&In)&&128&In&&Yt!==Kt){const br=Ln.$lazyInstance$,cr=null==(_n=ne.$watchers$)?void 0:_n[zt];null==cr||cr.forEach(nr=>{null!=br[nr]&&br[nr].call(br,Yt,Kt,zt)})}return}}this[Cn]=(null!==Yt||"boolean"!=typeof this[Cn])&&Yt})},U.observedAttributes=Array.from(new Set([...Object.keys(null!=(ke=ne.$watchers$)?ke:{}),...et.filter(([zt,Kt])=>15&Kt[0]).map(([zt,Kt])=>{var Yt;const _n=Kt[1]||zt;return Lt.set(_n,zt),512&Kt[0]&&(null==(Yt=ne.$attrsToReflect$)||Yt.push([zt,_n])),_n})]))}}return U},wi=function(){var U=(0,g.A)(function*(ne,Ae,ke,ot){let et;if(!(32&Ae.$flags$)){if(Ae.$flags$|=32,ke.$lazyBundleId$){if(et=is(ke),et.then){const _n=()=>{};et=yield et,_n()}et.isProxied||(ke.$watchers$=et.watchers,Hi(et,ke,2),et.isProxied=!0);const Yt=()=>{};Ae.$flags$|=8;try{new et(Ae)}catch(_n){ei(_n)}Ae.$flags$&=-9,Ae.$flags$|=128,Yt(),gi(Ae.$lazyInstance$)}else et=ne.constructor,customElements.whenDefined(ke.$tagName$).then(()=>Ae.$flags$|=128);if(et.style){let Yt=et.style;"string"!=typeof Yt&&(Yt=Yt[Ae.$modeName$=(U=>si.map(ne=>ne(U)).find(ne=>!!ne))(ne)]);const _n=Yn(ke,Ae.$modeName$);if(!ps.has(_n)){const Cn=()=>{};er(_n,Yt,!!(1&ke.$flags$)),Cn()}}}const Lt=Ae.$ancestorComponent$,zt=()=>Sn(Ae,!0);Lt&&Lt["s-rc"]?Lt["s-rc"].push(zt):zt()});return function(Ae,ke,ot,et){return U.apply(this,arguments)}}(),gi=U=>{ii(U,"connectedCallback")},lt=U=>{const ne=U["s-cr"]=Or.createComment("");ne["s-cn"]=!0,he(U,ne,U.firstChild)},Ut=U=>{ii(U,"disconnectedCallback")},fn=function(){var U=(0,g.A)(function*(ne){if(!(1&jn.$flags$)){const Ae=oi(ne);Ae.$rmListeners$&&(Ae.$rmListeners$.map(ke=>ke()),Ae.$rmListeners$=void 0),null!=Ae&&Ae.$lazyInstance$?Ut(Ae.$lazyInstance$):null!=Ae&&Ae.$onReadyPromise$&&Ae.$onReadyPromise$.then(()=>Ut(Ae.$lazyInstance$))}});return function(Ae){return U.apply(this,arguments)}}(),Y=U=>{const ne=U.cloneNode;U.cloneNode=function(Ae){const ke=this,ot=ke.shadowRoot&&Ao,et=ne.call(ke,!!ot&&Ae);if(!ot&&Ae){let zt,Kt,Lt=0;const Yt=["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(;Lt!ke.childNodes[Lt][_n]),zt&&(et.__appendChild?et.__appendChild(zt.cloneNode(!0)):et.appendChild(zt.cloneNode(!0))),Kt&&et.appendChild(ke.childNodes[Lt].cloneNode(!0))}return et}},Z=U=>{U.__appendChild=U.appendChild,U.appendChild=function(ne){const Ae=ne["s-sn"]=$i(ne),ke=Ai(this.childNodes,Ae,this.tagName);if(ke){const ot=Pi(ke,Ae),et=ot[ot.length-1],Lt=he(et.parentNode,ne,et.nextSibling);return oe(this),Lt}return this.__appendChild(ne)}},Ne=U=>{U.__removeChild=U.removeChild,U.removeChild=function(ne){if(ne&&typeof ne["s-sn"]<"u"){const Ae=Ai(this.childNodes,ne["s-sn"],this.tagName);if(Ae){const ot=Pi(Ae,ne["s-sn"]).find(et=>et===ne);if(ot)return ot.remove(),void oe(this)}}return this.__removeChild(ne)}},Q=U=>{const ne=U.prepend;U.prepend=function(...Ae){Ae.forEach(ke=>{"string"==typeof ke&&(ke=this.ownerDocument.createTextNode(ke));const ot=ke["s-sn"]=$i(ke),et=Ai(this.childNodes,ot,this.tagName);if(et){const Lt=document.createTextNode("");Lt["s-nr"]=ke,et["s-cr"].parentNode.__appendChild(Lt),ke["s-ol"]=Lt;const Kt=Pi(et,ot)[0];return he(Kt.parentNode,ke,Kt.nextSibling)}return 1===ke.nodeType&&ke.getAttribute("slot")&&(ke.hidden=!0),ne.call(this,ke)})}},Se=U=>{U.append=function(...ne){ne.forEach(Ae=>{"string"==typeof Ae&&(Ae=this.ownerDocument.createTextNode(Ae)),this.appendChild(Ae)})}},it=U=>{const ne=U.insertAdjacentHTML;U.insertAdjacentHTML=function(Ae,ke){if("afterbegin"!==Ae&&"beforeend"!==Ae)return ne.call(this,Ae,ke);const ot=this.ownerDocument.createElement("_");let et;if(ot.innerHTML=ke,"afterbegin"===Ae)for(;et=ot.firstChild;)this.prepend(et);else if("beforeend"===Ae)for(;et=ot.firstChild;)this.append(et)}},Wt=U=>{U.insertAdjacentText=function(ne,Ae){this.insertAdjacentHTML(ne,Ae)}},cn=U=>{const ne=U.insertAdjacentElement;U.insertAdjacentElement=function(Ae,ke){return"afterbegin"!==Ae&&"beforeend"!==Ae?ne.call(this,Ae,ke):"afterbegin"===Ae?(this.prepend(ke),ke):("beforeend"===Ae&&this.append(ke),ke)}},Pn=U=>{const ne=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(U,"__textContent",ne),Object.defineProperty(U,"textContent",{get(){return" "+Hn(this.childNodes).map(ot=>{var et,Lt;const zt=[];let Kt=ot.nextSibling;for(;Kt&&Kt["s-sn"]===ot["s-sn"];)(3===Kt.nodeType||1===Kt.nodeType)&&zt.push(null!=(Lt=null==(et=Kt.textContent)?void 0:et.trim())?Lt:""),Kt=Kt.nextSibling;return zt.filter(Yt=>""!==Yt).join(" ")}).filter(ot=>""!==ot).join(" ")+" "},set(Ae){Hn(this.childNodes).forEach(ot=>{let et=ot.nextSibling;for(;et&&et["s-sn"]===ot["s-sn"];){const Lt=et;et=et.nextSibling,Lt.remove()}if(""===ot["s-sn"]){const Lt=this.ownerDocument.createTextNode(Ae);Lt["s-sn"]="",he(ot.parentElement,Lt,ot.nextSibling)}else ot.remove()})}})},Cr=(U,ne)=>{class Ae extends Array{item(ot){return this[ot]}}if(8&ne.$flags$){const ke=U.__lookupGetter__("childNodes");Object.defineProperty(U,"children",{get(){return this.childNodes.map(ot=>1===ot.nodeType)}}),Object.defineProperty(U,"childElementCount",{get:()=>U.children.length}),Object.defineProperty(U,"childNodes",{get(){const ot=ke.call(this);if(!(1&jn.$flags$)&&2&oi(this).$flags$){const et=new Ae;for(let Lt=0;Lt{const ne=[];for(const Ae of Array.from(U))Ae["s-sr"]&&ne.push(Ae),ne.push(...Hn(Ae.childNodes));return ne},$i=U=>U["s-sn"]||1===U.nodeType&&U.getAttribute("slot")||"",Ai=(U,ne,Ae)=>{let ot,ke=0;for(;ke{const Ae=[U];for(;(U=U.nextSibling)&&U["s-sn"]===ne;)Ae.push(U);return Ae},xr=(U,ne={})=>{var Ae;const ot=[],et=ne.exclude||[],Lt=sr.customElements,zt=Or.head,Kt=zt.querySelector("meta[charset]"),Yt=Or.createElement("style"),_n=[],Cn=Or.querySelectorAll(`[${ze}]`);let Ln,In=!0,br=0;for(Object.assign(jn,ne),jn.$resourcesUrl$=new URL(ne.resourcesUrl||"./",Or.baseURI).href,jn.$flags$|=2;br{nr[1].map(li=>{var vi;const ci={$flags$:li[0],$tagName$:li[1],$members$:li[2],$listeners$:li[3]};4&ci.$flags$&&(cr=!0),ci.$members$=li[2],ci.$listeners$=li[3],ci.$attrsToReflect$=[],ci.$watchers$=null!=(vi=li[4])?vi:{};const no=ci.$tagName$,Go=class extends HTMLElement{constructor(dr){super(dr),kn(dr=this,ci),1&ci.$flags$&&dr.attachShadow({mode:"open",delegatesFocus:!!(16&ci.$flags$)})}connectedCallback(){Ln&&(clearTimeout(Ln),Ln=null),In?_n.push(this):jn.jmp(()=>(U=>{if(!(1&jn.$flags$)){const ne=oi(U),Ae=ne.$cmpMeta$,ke=()=>{};if(1&ne.$flags$)An(U,ne,Ae.$listeners$),null!=ne&&ne.$lazyInstance$?gi(ne.$lazyInstance$):null!=ne&&ne.$onReadyPromise$&&ne.$onReadyPromise$.then(()=>gi(ne.$lazyInstance$));else{let ot;if(ne.$flags$|=1,ot=U.getAttribute(xt),ot){if(1&Ae.$flags$){const et=yn(U.shadowRoot,Ae,U.getAttribute("s-mode"));U.classList.remove(et+"-h",et+"-s")}((U,ne,Ae,ke)=>{const et=U.shadowRoot,Lt=[],Kt=et?[]:null,Yt=ke.$vnode$=rn(ne,null);jn.$orgLocNodes$||me(Or.body,jn.$orgLocNodes$=new Map),U[xt]=Ae,U.removeAttribute(xt),ae(Yt,Lt,[],Kt,U,U,Ae),Lt.map(_n=>{const Cn=_n.$hostId$+"."+_n.$nodeId$,Ln=jn.$orgLocNodes$.get(Cn),In=_n.$elm$;Ln&&Ao&&""===Ln["s-en"]&&Ln.parentNode.insertBefore(In,Ln.nextSibling),et||(In["s-hn"]=ne,Ln&&(In["s-ol"]=Ln,In["s-ol"]["s-nr"]=In)),jn.$orgLocNodes$.delete(Cn)}),et&&Kt.map(_n=>{_n&&et.appendChild(_n)})})(U,Ae.$tagName$,ot,ne)}ot||12&Ae.$flags$&<(U);{let et=U;for(;et=et.parentNode||et.host;)if(1===et.nodeType&&et.hasAttribute("s-id")&&et["s-p"]||et["s-p"]){dn(ne,ne.$ancestorComponent$=et);break}}Ae.$members$&&Object.entries(Ae.$members$).map(([et,[Lt]])=>{if(31&Lt&&U.hasOwnProperty(et)){const zt=U[et];delete U[et],U[et]=zt}}),wi(U,ne,Ae)}ke()}})(this))}disconnectedCallback(){jn.jmp(()=>fn(this))}componentOnReady(){return oi(this).$onReadyPromise$}};2&ci.$flags$&&((U,ne)=>{Y(U),Z(U),Se(U),Q(U),cn(U),it(U),Wt(U),Pn(U),Cr(U,ne),Ne(U)})(Go.prototype,ci),ci.$lazyBundleId$=nr[0],!et.includes(no)&&!Lt.get(no)&&(ot.push(no),Lt.define(no,Hi(Go,ci,1)))})}),ot.length>0&&(cr&&(Yt.textContent+=Zt),Yt.textContent+=ot+"{visibility:hidden}.hydrated{visibility:inherit}",Yt.innerHTML.length)){Yt.setAttribute("data-styles","");const nr=null!=(Ae=jn.$nonce$)?Ae:$e(Or);null!=nr&&Yt.setAttribute("nonce",nr),zt.insertBefore(Yt,Kt?Kt.nextSibling:zt.firstChild)}In=!1,_n.length?_n.map(nr=>nr.connectedCallback()):jn.jmp(()=>Ln=setTimeout(Ei,30))},An=(U,ne,Ae,ke)=>{Ae&&Ae.map(([ot,et,Lt])=>{const zt=mi(U,ot),Kt=xi(ne,Lt),Yt=Si(ot);jn.ael(zt,et,Kt,Yt),(ne.$rmListeners$=ne.$rmListeners$||[]).push(()=>jn.rel(zt,et,Kt,Yt))})},xi=(U,ne)=>Ae=>{try{256&U.$flags$?U.$lazyInstance$[ne](Ae):(U.$queuedListeners$=U.$queuedListeners$||[]).push([ne,Ae])}catch(ke){ei(ke)}},mi=(U,ne)=>4&ne?Or:8&ne?sr:16&ne?Or.body:U,Si=U=>Co?{passive:!!(1&U),capture:!!(2&U)}:!!(2&U),mr=new WeakMap,oi=U=>mr.get(U),Nn=(U,ne)=>mr.set(ne.$lazyInstance$=U,ne),kn=(U,ne)=>{const Ae={$flags$:0,$hostElement$:U,$cmpMeta$:ne,$instanceValues$:new Map};return Ae.$onInstancePromise$=new Promise(ke=>Ae.$onInstanceResolve$=ke),Ae.$onReadyPromise$=new Promise(ke=>Ae.$onReadyResolve$=ke),U["s-p"]=[],U["s-rc"]=[],An(U,Ae,ne.$listeners$),mr.set(U,Ae)},ko=(U,ne)=>ne in U,ei=(U,ne)=>(0,console.error)(U,ne),Bi=new Map,is=(U,ne,Ae)=>{const ke=U.$tagName$.replace(/-/g,"_"),ot=U.$lazyBundleId$,et=Bi.get(ot);return et?et[ke]:B(8996)(`./${ot}.entry.js`).then(Lt=>(Bi.set(ot,Lt),Lt[ke]),ei)},ps=new Map,si=[],sr=typeof window<"u"?window:{},Or=sr.document||{head:{}},jn={$flags$:0,$resourcesUrl$:"",jmp:U=>U(),raf:U=>requestAnimationFrame(U),ael:(U,ne,Ae,ke)=>U.addEventListener(ne,Ae,ke),rel:(U,ne,Ae,ke)=>U.removeEventListener(ne,Ae,ke),ce:(U,ne)=>new CustomEvent(U,ne)},Fo=U=>{Object.assign(jn,U)},Ao=!0,Co=(()=>{let U=!1;try{Or.addEventListener("e",null,Object.defineProperty({},"passive",{get(){U=!0}}))}catch{}return U})(),To=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Ni=!1,S=[],H=[],ue=(U,ne)=>Ae=>{U.push(Ae),Ni||(Ni=!0,ne&&4&jn.$flags$?qe(fe):jn.raf(fe))},M=U=>{for(let ne=0;ne{M(S),M(H),(Ni=S.length>0)&&jn.raf(fe)},qe=U=>Promise.resolve(void 0).then(U),ar=ue(S,!1),ui=ue(H,!0)},2725:(En,bt,B)=>{"use strict";B.d(bt,{b:()=>Ze,c:()=>Je,d:()=>De,e:()=>Be,g:()=>ye,l:()=>Zt,s:()=>rn,t:()=>st,w:()=>Dt});var g=B(467),d=B(3664),ge=B(9672),Oe=B(4929),X=B(4920);const Ze="ionViewWillLeave",Je="ionViewDidLeave",De="ionViewWillUnload",_e=j=>{j.tabIndex=-1,j.focus()},Fe=j=>null!==j.offsetParent,Le="ion-last-focus",ut_saveViewFocus=te=>{if(d.c.get("focusManagerPriority",!1)){const ae=document.activeElement;null!==ae&&null!=te&&te.contains(ae)&&ae.setAttribute(Le,"true")}},ut_setViewFocus=te=>{const de=d.c.get("focusManagerPriority",!1);if(Array.isArray(de)&&!te.contains(document.activeElement)){const ae=te.querySelector(`[${Le}]`);if(ae&&Fe(ae))return void _e(ae);for(const me of de)switch(me){case"content":const Ce=te.querySelector('main, [role="main"]');if(Ce&&Fe(Ce))return void _e(Ce);break;case"heading":const at=te.querySelector('h1, [role="heading"][aria-level="1"]');if(at&&Fe(at))return void _e(at);break;case"banner":const kt=te.querySelector('header, [role="banner"]');if(kt&&Fe(kt))return void _e(kt);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${me}`)}_e(te)}},st=j=>new Promise((W,te)=>{(0,ge.w)(()=>{Mt(j),mt(j).then(de=>{de.animation&&de.animation.destroy(),vt(j),W(de)},de=>{vt(j),te(de)})})}),Mt=j=>{const W=j.enteringEl,te=j.leavingEl;ut_saveViewFocus(te),pt(W,te,j.direction),j.showGoBack?W.classList.add("can-go-back"):W.classList.remove("can-go-back"),rn(W,!1),W.style.setProperty("pointer-events","none"),te&&(rn(te,!1),te.style.setProperty("pointer-events","none"))},mt=function(){var j=(0,g.A)(function*(W){const te=yield Me(W);return te&&ge.B.isBrowser?je(te,W):Ke(W)});return function(te){return j.apply(this,arguments)}}(),vt=j=>{const W=j.enteringEl,te=j.leavingEl;W.classList.remove("ion-page-invisible"),W.style.removeProperty("pointer-events"),void 0!==te&&(te.classList.remove("ion-page-invisible"),te.style.removeProperty("pointer-events")),ut_setViewFocus(W)},Me=function(){var j=(0,g.A)(function*(W){return W.leavingEl&&W.animated&&0!==W.duration?W.animationBuilder?W.animationBuilder:"ios"===W.mode?(yield Promise.resolve().then(B.bind(B,8454))).iosTransitionAnimation:(yield Promise.resolve().then(B.bind(B,3314))).mdTransitionAnimation:void 0});return function(te){return j.apply(this,arguments)}}(),je=function(){var j=(0,g.A)(function*(W,te){yield Ct(te,!0);const de=W(te.baseEl,te);Tt(te.enteringEl,te.leavingEl);const ae=yield ze(de,te);return te.progressCallback&&te.progressCallback(void 0),ae&&Vt(te.enteringEl,te.leavingEl),{hasCompleted:ae,animation:de}});return function(te,de){return j.apply(this,arguments)}}(),Ke=function(){var j=(0,g.A)(function*(W){const te=W.enteringEl,de=W.leavingEl,ae=d.c.get("focusManagerPriority",!1);return yield Ct(W,ae),Tt(te,de),Vt(te,de),{hasCompleted:!0}});return function(te){return j.apply(this,arguments)}}(),Ct=function(){var j=(0,g.A)(function*(W,te){(void 0!==W.deepWait?W.deepWait:te)&&(yield Promise.all([Be(W.enteringEl),Be(W.leavingEl)])),yield xt(W.viewIsReady,W.enteringEl)});return function(te,de){return j.apply(this,arguments)}}(),xt=function(){var j=(0,g.A)(function*(W,te){W&&(yield W(te))});return function(te,de){return j.apply(this,arguments)}}(),ze=(j,W)=>{const te=W.progressCallback,de=new Promise(ae=>{j.onFinish(me=>ae(1===me))});return te?(j.progressStart(!0),te(j)):j.play(),de},Tt=(j,W)=>{Zt(W,Ze),Zt(j,"ionViewWillEnter")},Vt=(j,W)=>{Zt(j,"ionViewDidEnter"),Zt(W,Je)},Zt=(j,W)=>{if(j){const te=new CustomEvent(W,{bubbles:!1,cancelable:!1});j.dispatchEvent(te)}},Dt=()=>new Promise(j=>(0,X.r)(()=>(0,X.r)(()=>j()))),Be=function(){var j=(0,g.A)(function*(W){const te=W;if(te){if(null!=te.componentOnReady){if(null!=(yield te.componentOnReady()))return}else if(null!=te.__registerHost)return void(yield new Promise(ae=>(0,X.r)(ae)));yield Promise.all(Array.from(te.children).map(Be))}});return function(te){return j.apply(this,arguments)}}(),rn=(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"))},pt=(j,W,te)=>{void 0!==j&&(j.style.zIndex="back"===te?"99":"101"),void 0!==W&&(W.style.zIndex="100")},ye=j=>j.classList.contains("ion-page")?j:j.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||j},4929:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>d,b:()=>ge,p:()=>g});const g=(Oe,...X)=>console.warn(`[Ionic Warning]: ${Oe}`,...X),d=(Oe,...X)=>console.error(`[Ionic Error]: ${Oe}`,...X),ge=(Oe,...X)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${X.join(" or ")}.`)},8476:(En,bt,B)=>{"use strict";B.d(bt,{d:()=>d,w:()=>g});const g=typeof window<"u"?window:void 0,d=typeof document<"u"?document:void 0},3664:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>_e,b:()=>rn,c:()=>ge,i:()=>pt});var g=B(9672);class d{constructor(){this.m=new Map}reset(j){this.m=new Map(Object.entries(j))}get(j,W){const te=this.m.get(j);return void 0!==te?te:W}getBoolean(j,W=!1){const te=this.m.get(j);return void 0===te?W:"string"==typeof te?"true"===te:!!te}getNumber(j,W){const te=parseFloat(this.m.get(j));return isNaN(te)?void 0!==W?W:NaN:te}set(j,W){this.m.set(j,W)}}const ge=new d,Je="ionic-persist-config",_e=(ye,j)=>("string"==typeof ye&&(j=ye,ye=void 0),(ye=>Fe(ye))(ye).includes(j)),Fe=(ye=window)=>{if(typeof ye>"u")return[];ye.Ionic=ye.Ionic||{};let j=ye.Ionic.platforms;return null==j&&(j=ye.Ionic.platforms=$e(ye),j.forEach(W=>ye.document.documentElement.classList.add(`plt-${W}`))),j},$e=ye=>{const j=ge.get("platform");return Object.keys(Dt).filter(W=>{const te=null==j?void 0:j[W];return"function"==typeof te?te(ye):Dt[W](ye)})},Qe=ye=>!!(Vt(ye,/iPad/i)||Vt(ye,/Macintosh/i)&&Me(ye)),st=ye=>Vt(ye,/android|sink/i),Me=ye=>Zt(ye,"(any-pointer:coarse)"),Ke=ye=>Ct(ye)||xt(ye),Ct=ye=>!!(ye.cordova||ye.phonegap||ye.PhoneGap),xt=ye=>{const j=ye.Capacitor;return!(null==j||!j.isNative)},Vt=(ye,j)=>j.test(ye.navigator.userAgent),Zt=(ye,j)=>{var W;return null===(W=ye.matchMedia)||void 0===W?void 0:W.call(ye,j).matches},Dt={ipad:Qe,iphone:ye=>Vt(ye,/iPhone/i),ios:ye=>Vt(ye,/iPhone|iPod/i)||Qe(ye),android:st,phablet:ye=>{const j=ye.innerWidth,W=ye.innerHeight,te=Math.min(j,W),de=Math.max(j,W);return te>390&&te<520&&de>620&&de<800},tablet:ye=>{const j=ye.innerWidth,W=ye.innerHeight,te=Math.min(j,W),de=Math.max(j,W);return Qe(ye)||(ye=>st(ye)&&!Vt(ye,/mobile/i))(ye)||te>460&&te<820&&de>780&&de<1400},cordova:Ct,capacitor:xt,electron:ye=>Vt(ye,/electron/i),pwa:ye=>{var j;return!!(null!==(j=ye.matchMedia)&&void 0!==j&&j.call(ye,"(display-mode: standalone)").matches||ye.navigator.standalone)},mobile:Me,mobileweb:ye=>Me(ye)&&!Ke(ye),desktop:ye=>!Me(ye),hybrid:Ke};let Be;const rn=ye=>ye&&(0,g.g)(ye)||Be,pt=(ye={})=>{if(typeof window>"u")return;const j=window.document,W=window,te=W.Ionic=W.Ionic||{},de={};ye._ael&&(de.ael=ye._ael),ye._rel&&(de.rel=ye._rel),ye._ce&&(de.ce=ye._ce),(0,g.a)(de);const ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(ye=>{try{const j=ye.sessionStorage.getItem(Je);return null!==j?JSON.parse(j):{}}catch{return{}}})(W)),{persistConfig:!1}),te.config),(ye=>{const j={};return ye.location.search.slice(1).split("&").map(W=>W.split("=")).map(([W,te])=>{try{return[decodeURIComponent(W),decodeURIComponent(te)]}catch{return["",""]}}).filter(([W])=>((ye,j)=>ye.substr(0,j.length)===j)(W,"ionic:")).map(([W,te])=>[W.slice(6),te]).forEach(([W,te])=>{j[W]=te}),j})(W)),ye);ge.reset(ae),ge.getBoolean("persistConfig")&&((ye,j)=>{try{ye.sessionStorage.setItem(Je,JSON.stringify(j))}catch{return}})(W,ae),Fe(W),te.config=ge,te.mode=Be=ge.get("mode",j.documentElement.getAttribute("mode")||(_e(W,"ios")?"ios":"md")),ge.set("mode",Be),j.documentElement.setAttribute("mode",Be),j.documentElement.classList.add(Be),ge.getBoolean("_testing")&&ge.set("animated",!1);const me=at=>{var kt;return null===(kt=at.tagName)||void 0===kt?void 0:kt.startsWith("ION-")},Ce=at=>["ios","md"].includes(at);(0,g.c)(at=>{for(;at;){const kt=at.mode||at.getAttribute("mode");if(kt){if(Ce(kt))return kt;me(at)&&console.warn('Invalid ionic mode: "'+kt+'", expected: "ios" or "md"')}at=at.parentElement}return Be})}},8454:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{iosTransitionAnimation:()=>Le,shadow:()=>Ze});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const re=ft=>document.querySelector(`${ft}.ion-cloned-element`),Ze=ft=>ft.shadowRoot||ft,Je=ft=>{const ut="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs"),st="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=ut){const Mt=ut.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Mt?Mt.querySelector(st):null}return ft.querySelector(st)},De=(ft,ut)=>{const st="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs");let Mt=[];if(null!=st){const mt=st.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=mt&&(Mt=mt.querySelectorAll("ion-buttons"))}else Mt=ft.querySelectorAll("ion-buttons");for(const mt of Mt){const vt=mt.closest("ion-header"),Me=vt&&!vt.classList.contains("header-collapse-condense-inactive"),je=mt.querySelector("ion-back-button"),Ke=mt.classList.contains("buttons-collapse");if(null!==je&&("start"===mt.slot||""===mt.slot)&&(Ke&&Me&&ut||!Ke))return je}return null},Fe=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,xt;const ze=ut?`calc(100% - ${mt.right+4}px)`:mt.left-4+"px",Tt=ut?"right":"left",Vt=ut?"left":"right",Zt=ut?"right":"left";let Dt=1,Be=1,rn=`scale(${Be})`;const pt="scale(1)";if(vt&&Me){const Ot=(null===(Ct=vt.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(xt=je.textContent)||void 0===xt?void 0:xt.trim());Dt=Ke.width/Me.width,Be=(Ke.height-Qe)/Me.height,rn=Ot?`scale(${Dt}, ${Be})`:`scale(${Be})`}const j=Ze(Mt).querySelector("ion-icon").getBoundingClientRect(),W=ut?j.width/2-(j.right-mt.right)+"px":mt.left-j.width/2+"px",te=ut?`-${window.innerWidth-mt.right}px`:`${mt.left}px`,de=`${Ke.top}px`,ae=`${mt.top}px`,at=st?[{offset:0,transform:`translate3d(${te}, ${ae}, 0)`},{offset:1,transform:`translate3d(${W}, ${de}, 0)`}]:[{offset:0,transform:`translate3d(${W}, ${de}, 0)`},{offset:1,transform:`translate3d(${te}, ${ae}, 0)`}],vn=st?[{offset:0,opacity:1,transform:pt},{offset:1,opacity:0,transform:rn}]:[{offset:0,opacity:0,transform:rn},{offset:1,opacity:1,transform:pt}],qn=st?[{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)"}],er=(0,g.c)(),yn=(0,g.c)(),ir=(0,g.c)(),Yn=re("ion-back-button"),Ve=Ze(Yn).querySelector(".button-text"),yt=Ze(Yn).querySelector("ion-icon");Yn.text=Mt.text,Yn.mode=Mt.mode,Yn.icon=Mt.icon,Yn.color=Mt.color,Yn.disabled=Mt.disabled,Yn.style.setProperty("display","block"),Yn.style.setProperty("position","fixed"),yn.addElement(yt),er.addElement(Ve),ir.addElement(Yn),ir.beforeStyles({position:"absolute",top:"0px",[Zt]:"0px"}).beforeAddWrite(()=>{Mt.style.setProperty("display","none"),Yn.style.setProperty(Tt,ze)}).afterAddWrite(()=>{Mt.style.setProperty("display",""),Yn.style.setProperty("display","none"),Yn.style.removeProperty(Tt)}).keyframes(at),er.beforeStyles({"transform-origin":`${Tt} top`}).keyframes(vn),yn.beforeStyles({"transform-origin":`${Vt} center`}).keyframes(qn),ft.addAnimation([er,yn,ir])},$e=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,xt;const ze=ut?"right":"left",Tt=ut?`calc(100% - ${mt.right}px)`:`${mt.left}px`,Zt=`${mt.top}px`;let Be=ut?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,rn=.5;const pt="scale(1)";let ye=`scale(${rn})`;if(je&&Ke){Be=ut?`-${window.innerWidth-Ke.right-8}px`:Ke.x-8+"px";const kt=(null===(Ct=je.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(xt=Mt.textContent)||void 0===xt?void 0:xt.trim());rn=Ke.height/(vt.height-Qe),ye=kt?`scale(${Ke.width/vt.width}, ${rn})`:`scale(${rn})`}const te=Me.top+Me.height/2-mt.height*rn/2+"px",me=st?[{offset:0,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${ye}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Zt}, 0) ${pt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Zt}, 0) ${pt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${ye}`}],Ce=re("ion-title"),at=(0,g.c)();Ce.innerText=Mt.innerText,Ce.size=Mt.size,Ce.color=Mt.color,at.addElement(Ce),at.beforeStyles({"transform-origin":`${ze} top`,height:`${mt.height}px`,display:"",position:"relative",[ze]:Tt}).beforeAddWrite(()=>{Mt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Mt.style.setProperty("opacity",""),Ce.style.setProperty("display","none")}).keyframes(me),ft.addAnimation(at)},Le=(ft,ut)=>{var st;try{const Mt="cubic-bezier(0.32,0.72,0,1)",mt="opacity",vt="transform",Me="0%",Ke="rtl"===ft.ownerDocument.dir,Ct=Ke?"-99.5%":"99.5%",xt=Ke?"33%":"-33%",ze=ut.enteringEl,Tt=ut.leavingEl,Vt="back"===ut.direction,Zt=ze.querySelector(":scope > ion-content"),Dt=ze.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Be=ze.querySelectorAll(":scope > ion-header > ion-toolbar"),rn=(0,g.c)(),pt=(0,g.c)();if(rn.addElement(ze).duration((null!==(st=ut.duration)&&void 0!==st?st:0)||540).easing(ut.easing||Mt).fill("both").beforeRemoveClass("ion-page-invisible"),Tt&&null!=ft){const te=(0,g.c)();te.addElement(ft),rn.addAnimation(te)}if(Zt||0!==Be.length||0!==Dt.length?(pt.addElement(Zt),pt.addElement(Dt)):pt.addElement(ze.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(pt),Vt?pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${xt})`,`translateX(${Me})`).fromTo(mt,.8,1):pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),Zt){const te=Ze(Zt).querySelector(".transition-effect");if(te){const de=te.querySelector(".transition-cover"),ae=te.querySelector(".transition-shadow"),me=(0,g.c)(),Ce=(0,g.c)(),at=(0,g.c)();me.addElement(te).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ce.addElement(de).beforeClearStyles([mt]).fromTo(mt,0,.1),at.addElement(ae).beforeClearStyles([mt]).fromTo(mt,.03,.7),me.addAnimation([Ce,at]),pt.addAnimation([me])}}const ye=ze.querySelector("ion-header.header-collapse-condense"),{forward:j,backward:W}=((ft,ut,st,Mt,mt)=>{const vt=De(Mt,st),Me=Je(mt),je=Je(Mt),Ke=De(mt,st),Ct=null!==vt&&null!==Me&&!st,xt=null!==je&&null!==Ke&&st;if(Ct){const ze=Me.getBoundingClientRect(),Tt=vt.getBoundingClientRect(),Vt=Ze(vt).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(Me).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,Me,ze,Be,Tt,Vt,Zt),Fe(ft,ut,st,vt,Tt,Vt,Zt,Me,Be)}else if(xt){const ze=je.getBoundingClientRect(),Tt=Ke.getBoundingClientRect(),Vt=Ze(Ke).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(je).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,je,ze,Be,Tt,Vt,Zt),Fe(ft,ut,st,Ke,Tt,Vt,Zt,je,Be)}return{forward:Ct,backward:xt}})(rn,Ke,Vt,ze,Tt);if(Be.forEach(te=>{const de=(0,g.c)();de.addElement(te),rn.addAnimation(de);const ae=(0,g.c)();ae.addElement(te.querySelector("ion-title"));const me=(0,g.c)(),Ce=Array.from(te.querySelectorAll("ion-buttons,[menuToggle]")),at=te.closest("ion-header"),kt=null==at?void 0:at.classList.contains("header-collapse-condense-inactive");let Bt;Bt=Ce.filter(Vt?er=>{const yn=er.classList.contains("buttons-collapse");return yn&&!kt||!yn}:er=>!er.classList.contains("buttons-collapse")),me.addElement(Bt);const vn=(0,g.c)();vn.addElement(te.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const bn=(0,g.c)();bn.addElement(Ze(te).querySelector(".toolbar-background"));const $n=(0,g.c)(),qn=te.querySelector("ion-back-button");if(qn&&$n.addElement(qn),de.addAnimation([ae,me,vn,bn,$n]),me.fromTo(mt,.01,1),vn.fromTo(mt,.01,1),Vt)kt||ae.fromTo("transform",`translateX(${xt})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${xt})`,`translateX(${Me})`),$n.fromTo(mt,.01,1);else if(ye||ae.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),bn.beforeClearStyles([mt,"transform"]),(null==at?void 0:at.translucent)?bn.fromTo("transform",Ke?"translateX(-100%)":"translateX(100%)","translateX(0px)"):bn.fromTo(mt,.01,"var(--opacity)"),j||$n.fromTo(mt,.01,1),qn&&!j){const yn=(0,g.c)();yn.addElement(Ze(qn).querySelector(".button-text")).fromTo("transform",Ke?"translateX(-100px)":"translateX(100px)","translateX(0px)"),de.addAnimation(yn)}}),Tt){const te=(0,g.c)(),de=Tt.querySelector(":scope > ion-content"),ae=Tt.querySelectorAll(":scope > ion-header > ion-toolbar"),me=Tt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(de||0!==ae.length||0!==me.length?(te.addElement(de),te.addElement(me)):te.addElement(Tt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(te),Vt){te.beforeClearStyles([mt]).fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)");const Ce=(0,d.g)(Tt);rn.afterAddWrite(()=>{"normal"===rn.getDirection()&&Ce.style.setProperty("display","none")})}else te.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).fromTo(mt,1,.8);if(de){const Ce=Ze(de).querySelector(".transition-effect");if(Ce){const at=Ce.querySelector(".transition-cover"),kt=Ce.querySelector(".transition-shadow"),Bt=(0,g.c)(),vn=(0,g.c)(),bn=(0,g.c)();Bt.addElement(Ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),vn.addElement(at).beforeClearStyles([mt]).fromTo(mt,.1,0),bn.addElement(kt).beforeClearStyles([mt]).fromTo(mt,.7,.03),Bt.addAnimation([vn,bn]),te.addAnimation([Bt])}}ae.forEach(Ce=>{const at=(0,g.c)();at.addElement(Ce);const kt=(0,g.c)();kt.addElement(Ce.querySelector("ion-title"));const Bt=(0,g.c)(),vn=Ce.querySelectorAll("ion-buttons,[menuToggle]"),bn=Ce.closest("ion-header"),$n=null==bn?void 0:bn.classList.contains("header-collapse-condense-inactive"),qn=Array.from(vn).filter(yt=>{const Ot=yt.classList.contains("buttons-collapse");return Ot&&!$n||!Ot});Bt.addElement(qn);const er=(0,g.c)(),yn=Ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yn.length>0&&er.addElement(yn);const ir=(0,g.c)();ir.addElement(Ze(Ce).querySelector(".toolbar-background"));const Yn=(0,g.c)(),Ve=Ce.querySelector("ion-back-button");if(Ve&&Yn.addElement(Ve),at.addAnimation([kt,Bt,er,Yn,ir]),rn.addAnimation(at),Yn.fromTo(mt,.99,0),Bt.fromTo(mt,.99,0),er.fromTo(mt,.99,0),Vt){if($n||kt.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)").fromTo(mt,.99,0),er.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)"),ir.beforeClearStyles([mt,"transform"]),(null==bn?void 0:bn.translucent)?ir.fromTo("transform","translateX(0px)",Ke?"translateX(-100%)":"translateX(100%)"):ir.fromTo(mt,"var(--opacity)",0),Ve&&!W){const Ot=(0,g.c)();Ot.addElement(Ze(Ve).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(Ke?-124:124)+"px"})`),at.addAnimation(Ot)}}else $n||kt.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).fromTo(mt,.99,0).afterClearStyles([vt,mt]),er.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).afterClearStyles([vt,mt]),Yn.afterClearStyles([mt]),kt.afterClearStyles([mt]),Bt.afterClearStyles([mt])})}return rn}catch(Mt){throw Mt}},Qe=10},3314:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{mdTransitionAnimation:()=>Ee});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const Ee=(re,Ze)=>{var Je,De,_e;const Le="back"===Ze.direction,ft=Ze.leavingEl,ut=(0,d.g)(Ze.enteringEl),st=ut.querySelector("ion-toolbar"),Mt=(0,g.c)();if(Mt.addElement(ut).fill("both").beforeRemoveClass("ion-page-invisible"),Le?Mt.duration((null!==(Je=Ze.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Mt.duration((null!==(De=Ze.duration)&&void 0!==De?De:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),st){const mt=(0,g.c)();mt.addElement(st),Mt.addAnimation(mt)}if(ft&&Le){Mt.duration((null!==(_e=Ze.duration)&&void 0!==_e?_e:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const mt=(0,g.c)();mt.addElement((0,d.g)(ft)).onFinish(vt=>{1===vt&&mt.elements.length>0&&mt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Mt.addAnimation(mt)}return Mt}},6002:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>vn,F:()=>Yn,G:()=>bn,O:()=>$n,a:()=>ut,b:()=>st,c:()=>Me,d:()=>qn,e:()=>er,f:()=>j,g:()=>te,h:()=>me,i:()=>at,j:()=>Ke,k:()=>Ct,l:()=>Mt,m:()=>mt,n:()=>De,o:()=>pt,q:()=>_e,s:()=>Bt});var g=B(467),d=B(8476),ge=B(4920),Oe=B(6411),X=B(3664),Ee=B(8621),re=B(1970),Ze=B(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])',De=(Ve,yt)=>{const Ot=Ve.querySelector(Je);Fe(Ot,null!=yt?yt:Ve)},_e=(Ve,yt)=>{const Ot=Array.from(Ve.querySelectorAll(Je));Fe(Ot.length>0?Ot[Ot.length-1]:null,null!=yt?yt:Ve)},Fe=(Ve,yt)=>{let Ot=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ve),Ot?(0,ge.f)(Ot):yt.focus()};let $e=0,Le=0;const Qe=new WeakMap,ft=Ve=>({create:yt=>xt(Ve,yt),dismiss:(yt,Ot,Xt)=>Dt(document,yt,Ot,Ve,Xt),getTop:()=>(0,g.A)(function*(){return pt(document,Ve)})()}),ut=ft("ion-alert"),st=ft("ion-action-sheet"),Mt=ft("ion-loading"),mt=ft("ion-modal"),Me=ft("ion-popover"),Ke=Ve=>{typeof document<"u"&&Zt(document);const yt=$e++;Ve.overlayIndex=yt},Ct=Ve=>(Ve.hasAttribute("id")||(Ve.id="ion-overlay-"+ ++Le),Ve.id),xt=(Ve,yt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(Ve).then(()=>{const Ot=document.createElement(Ve);return Ot.classList.add("overlay-hidden"),Object.assign(Ot,Object.assign(Object.assign({},yt),{hasController:!0})),de(document).appendChild(Ot),new Promise(Xt=>(0,ge.c)(Ot,Xt))}):Promise.resolve(),Tt=(Ve,yt)=>{let Ot=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ve),Ot?(0,ge.f)(Ot):yt.focus()},Zt=Ve=>{0===$e&&($e=1,Ve.addEventListener("focus",yt=>{((Ve,yt)=>{const Ot=pt(yt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Xt=Ve.target;Ot&&Xt&&!Ot.classList.contains(Yn)&&(Ot.shadowRoot?(()=>{if(Ot.contains(Xt))Ot.lastFocus=Xt;else if("ION-TOAST"===Xt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=Ot.lastFocus;De(Ot),gn===yt.activeElement&&_e(Ot),Ot.lastFocus=yt.activeElement}})():(()=>{if(Ot===Xt)Ot.lastFocus=void 0;else if("ION-TOAST"===Xt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=(0,ge.g)(Ot);if(!gn.contains(Xt))return;const mn=gn.querySelector(".ion-overlay-wrapper");if(!mn)return;if(mn.contains(Xt)||Xt===gn.querySelector("ion-backdrop"))Ot.lastFocus=Xt;else{const Jt=Ot.lastFocus;De(mn,Ot),Jt===yt.activeElement&&_e(mn,Ot),Ot.lastFocus=yt.activeElement}}})())})(yt,Ve)},!0),Ve.addEventListener("ionBackButton",yt=>{const Ot=pt(Ve);null!=Ot&&Ot.backdropDismiss&&yt.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ot.dismiss(void 0,vn)})}),(0,Oe.shouldUseCloseWatcher)()||Ve.addEventListener("keydown",yt=>{if("Escape"===yt.key){const Ot=pt(Ve);null!=Ot&&Ot.backdropDismiss&&Ot.dismiss(void 0,vn)}}))},Dt=(Ve,yt,Ot,Xt,en)=>{const Ir=pt(Ve,Xt,en);return Ir?Ir.dismiss(yt,Ot):Promise.reject("overlay does not exist")},rn=(Ve,yt)=>((Ve,yt)=>(void 0===yt&&(yt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(Ve.querySelectorAll(yt)).filter(Ot=>Ot.overlayIndex>0)))(Ve,yt).filter(Ot=>!(Ve=>Ve.classList.contains("overlay-hidden"))(Ot)),pt=(Ve,yt,Ot)=>{const Xt=rn(Ve,yt);return void 0===Ot?Xt[Xt.length-1]:Xt.find(en=>en.id===Ot)},ye=(Ve=!1)=>{const Ot=de(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ot&&(Ve?Ot.setAttribute("aria-hidden","true"):Ot.removeAttribute("aria-hidden"))},j=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en,Ir){var gn,mn;if(yt.presented)return;ye(!0),document.body.classList.add(re.B),yn(yt.el),yt.presented=!0,yt.willPresent.emit(),null===(gn=yt.willPresentShorthand)||void 0===gn||gn.emit();const Jt=(0,X.b)(yt),Gt=yt.enterAnimation?yt.enterAnimation:X.c.get(Ot,"ios"===Jt?Xt:en);(yield ae(yt,Gt,yt.el,Ir))&&(yt.didPresent.emit(),null===(mn=yt.didPresentShorthand)||void 0===mn||mn.emit()),"ION-TOAST"!==yt.el.tagName&&W(yt.el),yt.keyboardClose&&(null===document.activeElement||!yt.el.contains(document.activeElement))&&yt.el.focus(),yt.el.removeAttribute("aria-hidden")});return function(Ot,Xt,en,Ir,gn){return Ve.apply(this,arguments)}}(),W=function(){var Ve=(0,g.A)(function*(yt){let Ot=document.activeElement;if(!Ot)return;const Xt=null==Ot?void 0:Ot.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ot),yield yt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ot.focus()});return function(Ot){return Ve.apply(this,arguments)}}(),te=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en,Ir,gn,mn){var Jt,Gt;if(!yt.presented)return!1;void 0!==d.d&&1===rn(d.d).length&&(ye(!1),document.body.classList.remove(re.B)),yt.presented=!1;try{yt.el.style.setProperty("pointer-events","none"),yt.willDismiss.emit({data:Ot,role:Xt}),null===(Jt=yt.willDismissShorthand)||void 0===Jt||Jt.emit({data:Ot,role:Xt});const wr=(0,X.b)(yt),kr=yt.leaveAnimation?yt.leaveAnimation:X.c.get(en,"ios"===wr?Ir:gn);Xt!==bn&&(yield ae(yt,kr,yt.el,mn)),yt.didDismiss.emit({data:Ot,role:Xt}),null===(Gt=yt.didDismissShorthand)||void 0===Gt||Gt.emit({data:Ot,role:Xt}),(Qe.get(yt)||[]).forEach(_r=>_r.destroy()),Qe.delete(yt),yt.el.classList.add("overlay-hidden"),yt.el.style.removeProperty("pointer-events"),void 0!==yt.el.lastFocus&&(yt.el.lastFocus=void 0)}catch(wr){console.error(wr)}return yt.el.remove(),ir(),!0});return function(Ot,Xt,en,Ir,gn,mn,Jt){return Ve.apply(this,arguments)}}(),de=Ve=>Ve.querySelector("ion-app")||Ve.body,ae=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en){Xt.classList.remove("overlay-hidden");const gn=Ot(yt.el,en);(!yt.animated||!X.c.getBoolean("animated",!0))&&gn.duration(0),yt.keyboardClose&&gn.beforeAddWrite(()=>{const Jt=Xt.ownerDocument.activeElement;null!=Jt&&Jt.matches("input,ion-input, ion-textarea")&&Jt.blur()});const mn=Qe.get(yt)||[];return Qe.set(yt,[...mn,gn]),yield gn.play(),!0});return function(Ot,Xt,en,Ir){return Ve.apply(this,arguments)}}(),me=(Ve,yt)=>{let Ot;const Xt=new Promise(en=>Ot=en);return Ce(Ve,yt,en=>{Ot(en.detail)}),Xt},Ce=(Ve,yt,Ot)=>{const Xt=en=>{(0,ge.b)(Ve,yt,Xt),Ot(en)};(0,ge.a)(Ve,yt,Xt)},at=Ve=>"cancel"===Ve||Ve===vn,kt=Ve=>Ve(),Bt=(Ve,yt)=>{if("function"==typeof Ve)return X.c.get("_zoneGate",kt)(()=>{try{return Ve(yt)}catch(Xt){throw Xt}})},vn="backdrop",bn="gesture",$n=39,qn=Ve=>{let Ot,yt=!1;const Xt=(0,Ee.C)(),en=(mn=!1)=>{if(Ot&&!mn)return{delegate:Ot,inline:yt};const{el:Jt,hasController:Gt,delegate:pr}=Ve;return yt=null!==Jt.parentNode&&!Gt,Ot=yt?pr||Xt:pr,{inline:yt,delegate:Ot}};return{attachViewToDom:function(){var mn=(0,g.A)(function*(Jt){const{delegate:Gt}=en(!0);if(Gt)return yield Gt.attachViewToDom(Ve.el,Jt);const{hasController:pr}=Ve;if(pr&&void 0!==Jt)throw new Error("framework delegate is missing");return null});return function(Gt){return mn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:mn}=en();mn&&void 0!==Ve.el&&mn.removeViewFromDom(Ve.el.parentElement,Ve.el)}}},er=()=>{let Ve;const yt=()=>{Ve&&(Ve(),Ve=void 0)};return{addClickListener:(Xt,en)=>{yt();const Ir=void 0!==en?document.getElementById(en):null;Ir?Ve=((mn,Jt)=>{const Gt=()=>{Jt.present()};return mn.addEventListener("click",Gt),()=>{mn.removeEventListener("click",Gt)}})(Ir,Xt):(0,Ze.p)(`A trigger element with the ID "${en}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Xt)},removeClickListener:yt}},yn=Ve=>{var yt;if(void 0===d.d)return;const Ot=rn(d.d);for(let Xt=Ot.length-1;Xt>=0;Xt--){const en=Ot[Xt],Ir=null!==(yt=Ot[Xt+1])&&void 0!==yt?yt:Ve;(Ir.hasAttribute("aria-hidden")||"ION-TOAST"!==Ir.tagName)&&en.setAttribute("aria-hidden","true")}},ir=()=>{if(void 0===d.d)return;const Ve=rn(d.d);for(let yt=Ve.length-1;yt>=0;yt--){const Ot=Ve[yt];if(Ot.removeAttribute("aria-hidden"),"ION-TOAST"!==Ot.tagName)break}},Yn="ion-disable-focus-trap"},63:(En,bt,B)=>{"use strict";var g=B(345),d=B(4438),ge=B(845),Oe=B(3656),X=B(7863),Ee=B(177);function re(ye,j){if(1&ye&&(d.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),d.nrm(2,"ion-icon",7),d.j41(3,"ion-label",8),d.EFF(4),d.k0s()()()),2&ye){const W=j.$implicit;d.R7$(),d.Y8G("routerLink",W.url),d.R7$(),d.Y8G("name",W.icon),d.R7$(2),d.JRh(W.title)}}let Ze=(()=>{var ye;class j{constructor(te,de){this.router=te,this.menuController=de,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Model The Product",url:"/model-product",icon:"cube"}]}ngOnInit(){this.router.events.subscribe(te=>{te instanceof ge.wF&&(te.urlAfterRedirects.includes("/login")||te.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(ye=j).\u0275fac=function(te){return new(te||ye)(d.rXU(ge.Ix),d.rXU(X._t))},ye.\u0275cmp=d.VBU({type:ye,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(te,de){1&te&&(d.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),d.EFF(6," Menu "),d.k0s()()(),d.j41(7,"ion-content")(8,"ion-list",2),d.DNE(9,re,5,3,"ion-menu-toggle",3),d.k0s()()(),d.nrm(10,"ion-router-outlet",4),d.k0s()()),2&te&&(d.R7$(9),d.Y8G("ngForOf",de.menuItems))},dependencies:[Ee.Sq,X.U1,X.W9,X.eU,X.iq,X.uz,X.he,X.nf,X.oS,X.cA,X.HP,X.BC,X.ai,X.Rg,X.N7,ge.Wk]}),j})();var Je=B(9842),De=B(8737),_e=B(1203),Fe=B(6354),$e=B(6697);B(2214);const Qe=(0,Fe.T)(ye=>!!ye);let ft=(()=>{var ye;class j{constructor(te,de){(0,Je.A)(this,"router",void 0),(0,Je.A)(this,"auth",void 0),(0,Je.A)(this,"canActivate",(ae,me)=>{const Ce=ae.data.authGuardPipe||(()=>Qe);return(0,De.kQ)(this.auth).pipe((0,$e.s)(1),Ce(ae,me),(0,Fe.T)(at=>"boolean"==typeof at?at:Array.isArray(at)?this.router.createUrlTree(at):this.router.parseUrl(at)))}),this.router=te,this.auth=de}}return ye=j,(0,Je.A)(j,"\u0275fac",function(te){return new(te||ye)(d.KVO(ge.Ix),d.KVO(De.Nj))}),(0,Je.A)(j,"\u0275prov",d.jDH({token:ye,factory:ye.\u0275fac,providedIn:"any"})),j})();const ut=ye=>({canActivate:[ft],data:{authGuardPipe:ye}}),xt=()=>{return ye=[""],(0,_e.F)(Qe,(0,Fe.T)(j=>j||ye));var ye},ze=()=>{return ye=["home"],(0,_e.F)(Qe,(0,Fe.T)(j=>j&&ye||!0));var ye},Tt=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([B.e(2076),B.e(3118)]).then(B.bind(B,3118)).then(ye=>ye.HomePageModule),...ut(xt)},{path:"register",loadChildren:()=>Promise.all([B.e(2076),B.e(3825)]).then(B.bind(B,3825)).then(ye=>ye.RegisterPageModule),...ut(ze)},{path:"login",loadChildren:()=>Promise.all([B.e(2076),B.e(6688)]).then(B.bind(B,6688)).then(ye=>ye.LoginPageModule),...ut(ze)},{path:"myteam",loadChildren:()=>Promise.all([B.e(2076),B.e(839)]).then(B.bind(B,839)).then(ye=>ye.MyteamPageModule),...ut(xt)},{path:"model-product",loadChildren:()=>Promise.all([B.e(2076),B.e(3998)]).then(B.bind(B,3998)).then(ye=>ye.ModelProductPageModule),...ut(xt)},{path:"new-product",loadChildren:()=>Promise.all([B.e(2076),B.e(7444)]).then(B.bind(B,7444)).then(ye=>ye.NewProductPageModule),...ut(xt)},{path:"view-product",loadChildren:()=>Promise.all([B.e(2076),B.e(6927)]).then(B.bind(B,6927)).then(ye=>ye.ViewProductPageModule)}];let Vt=(()=>{var ye;class j{}return(ye=j).\u0275fac=function(te){return new(te||ye)},ye.\u0275mod=d.$C({type:ye}),ye.\u0275inj=d.G2t({imports:[ge.iI.forRoot(Tt,{preloadingStrategy:ge.Kp}),ge.iI]}),j})();var Zt=B(7440),Dt=B(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"};let rn=(()=>{var ye;class j{}return(ye=j).\u0275fac=function(te){return new(te||ye)},ye.\u0275mod=d.$C({type:ye,bootstrap:[Ze]}),ye.\u0275inj=d.G2t({providers:[{provide:ge.b,useClass:Oe.jM},(0,Zt.MW)(()=>(0,Zt.Wp)(Be_firebase)),(0,Dt.hV)(()=>(0,Dt.aU)()),(0,De._q)(()=>(0,De.xI)())],imports:[g.Bb,X.bv.forRoot(),Vt]}),j})();(0,d.SmG)(),g.sG().bootstrapModule(rn).catch(ye=>console.log(ye))},4412:(En,bt,B)=>{"use strict";B.d(bt,{t:()=>d});var g=B(1413);class d extends g.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const X=super._subscribe(Oe);return!X.closed&&Oe.next(this._value),X}getValue(){const{hasError:Oe,thrownError:X,_value:Ee}=this;if(Oe)throw X;return this._throwIfClosed(),Ee}next(Oe){super.next(this._value=Oe)}}},1985:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ze});var g=B(7707),d=B(8359),ge=B(3494),Oe=B(1203),X=B(1026),Ee=B(8071),re=B(9786);let Ze=(()=>{class Fe{constructor(Le){Le&&(this._subscribe=Le)}lift(Le){const Qe=new Fe;return Qe.source=this,Qe.operator=Le,Qe}subscribe(Le,Qe,ft){const ut=function _e(Fe){return Fe&&Fe instanceof g.vU||function De(Fe){return Fe&&(0,Ee.T)(Fe.next)&&(0,Ee.T)(Fe.error)&&(0,Ee.T)(Fe.complete)}(Fe)&&(0,d.Uv)(Fe)}(Le)?Le:new g.Ms(Le,Qe,ft);return(0,re.Y)(()=>{const{operator:st,source:Mt}=this;ut.add(st?st.call(ut,Mt):Mt?this._subscribe(ut):this._trySubscribe(ut))}),ut}_trySubscribe(Le){try{return this._subscribe(Le)}catch(Qe){Le.error(Qe)}}forEach(Le,Qe){return new(Qe=Je(Qe))((ft,ut)=>{const st=new g.Ms({next:Mt=>{try{Le(Mt)}catch(mt){ut(mt),st.unsubscribe()}},error:ut,complete:ft});this.subscribe(st)})}_subscribe(Le){var Qe;return null===(Qe=this.source)||void 0===Qe?void 0:Qe.subscribe(Le)}[ge.s](){return this}pipe(...Le){return(0,Oe.m)(Le)(this)}toPromise(Le){return new(Le=Je(Le))((Qe,ft)=>{let ut;this.subscribe(st=>ut=st,st=>ft(st),()=>Qe(ut))})}}return Fe.create=$e=>new Fe($e),Fe})();function Je(Fe){var $e;return null!==($e=null!=Fe?Fe:X.$.Promise)&&void 0!==$e?$e:Promise}},1413:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>re});var g=B(1985),d=B(8359);const Oe=(0,B(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=B(7908),Ee=B(9786);let re=(()=>{class Je extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_e){const Fe=new Ze(this,this);return Fe.operator=_e,Fe}_throwIfClosed(){if(this.closed)throw new Oe}next(_e){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Fe of this.currentObservers)Fe.next(_e)}})}error(_e){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_e;const{observers:Fe}=this;for(;Fe.length;)Fe.shift().error(_e)}})}complete(){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_e}=this;for(;_e.length;)_e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _e;return(null===(_e=this.observers)||void 0===_e?void 0:_e.length)>0}_trySubscribe(_e){return this._throwIfClosed(),super._trySubscribe(_e)}_subscribe(_e){return this._throwIfClosed(),this._checkFinalizedStatuses(_e),this._innerSubscribe(_e)}_innerSubscribe(_e){const{hasError:Fe,isStopped:$e,observers:Le}=this;return Fe||$e?d.Kn:(this.currentObservers=null,Le.push(_e),new d.yU(()=>{this.currentObservers=null,(0,X.o)(Le,_e)}))}_checkFinalizedStatuses(_e){const{hasError:Fe,thrownError:$e,isStopped:Le}=this;Fe?_e.error($e):Le&&_e.complete()}asObservable(){const _e=new g.c;return _e.source=this,_e}}return Je.create=(De,_e)=>new Ze(De,_e),Je})();class Ze extends re{constructor(De,_e){super(),this.destination=De,this.source=_e}next(De){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.next)||void 0===Fe||Fe.call(_e,De)}error(De){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.error)||void 0===Fe||Fe.call(_e,De)}complete(){var De,_e;null===(_e=null===(De=this.destination)||void 0===De?void 0:De.complete)||void 0===_e||_e.call(De)}_subscribe(De){var _e,Fe;return null!==(Fe=null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(De))&&void 0!==Fe?Fe:d.Kn}}},7707:(En,bt,B)=>{"use strict";B.d(bt,{Ms:()=>ft,vU:()=>Fe});var g=B(8071),d=B(8359),ge=B(1026),Oe=B(5334),X=B(5343);const Ee=Je("C",void 0,void 0);function Je(vt,Me,je){return{kind:vt,value:Me,error:je}}var De=B(9270),_e=B(9786);class Fe extends d.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,d.Uv)(Me)&&Me.add(this)):this.destination=mt}static create(Me,je,Ke){return new ft(Me,je,Ke)}next(Me){this.isStopped?Mt(function Ze(vt){return Je("N",vt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?Mt(function re(vt){return Je("E",void 0,vt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?Mt(Ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const $e=Function.prototype.bind;function Le(vt,Me){return $e.call(vt,Me)}class Qe{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:je}=this;if(je.next)try{je.next(Me)}catch(Ke){ut(Ke)}}error(Me){const{partialObserver:je}=this;if(je.error)try{je.error(Me)}catch(Ke){ut(Ke)}else ut(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(je){ut(je)}}}class ft extends Fe{constructor(Me,je,Ke){let Ct;if(super(),(0,g.T)(Me)||!Me)Ct={next:null!=Me?Me:void 0,error:null!=je?je:void 0,complete:null!=Ke?Ke:void 0};else{let xt;this&&ge.$.useDeprecatedNextContext?(xt=Object.create(Me),xt.unsubscribe=()=>this.unsubscribe(),Ct={next:Me.next&&Le(Me.next,xt),error:Me.error&&Le(Me.error,xt),complete:Me.complete&&Le(Me.complete,xt)}):Ct=Me}this.destination=new Qe(Ct)}}function ut(vt){ge.$.useDeprecatedSynchronousErrorHandling?(0,_e.l)(vt):(0,Oe.m)(vt)}function Mt(vt,Me){const{onStoppedNotification:je}=ge.$;je&&De.f.setTimeout(()=>je(vt,Me))}const mt={closed:!0,next:X.l,error:function st(vt){throw vt},complete:X.l}},8359:(En,bt,B)=>{"use strict";B.d(bt,{Kn:()=>Ee,yU:()=>X,Uv:()=>re});var g=B(8071);const ge=(0,B(1853).L)(Je=>function(_e){Je(this),this.message=_e?`${_e.length} errors occurred during unsubscription:\n${_e.map((Fe,$e)=>`${$e+1}) ${Fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_e});var Oe=B(7908);class X{constructor(De){this.initialTeardown=De,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let De;if(!this.closed){this.closed=!0;const{_parentage:_e}=this;if(_e)if(this._parentage=null,Array.isArray(_e))for(const Le of _e)Le.remove(this);else _e.remove(this);const{initialTeardown:Fe}=this;if((0,g.T)(Fe))try{Fe()}catch(Le){De=Le instanceof ge?Le.errors:[Le]}const{_finalizers:$e}=this;if($e){this._finalizers=null;for(const Le of $e)try{Ze(Le)}catch(Qe){De=null!=De?De:[],Qe instanceof ge?De=[...De,...Qe.errors]:De.push(Qe)}}if(De)throw new ge(De)}}add(De){var _e;if(De&&De!==this)if(this.closed)Ze(De);else{if(De instanceof X){if(De.closed||De._hasParent(this))return;De._addParent(this)}(this._finalizers=null!==(_e=this._finalizers)&&void 0!==_e?_e:[]).push(De)}}_hasParent(De){const{_parentage:_e}=this;return _e===De||Array.isArray(_e)&&_e.includes(De)}_addParent(De){const{_parentage:_e}=this;this._parentage=Array.isArray(_e)?(_e.push(De),_e):_e?[_e,De]:De}_removeParent(De){const{_parentage:_e}=this;_e===De?this._parentage=null:Array.isArray(_e)&&(0,Oe.o)(_e,De)}remove(De){const{_finalizers:_e}=this;_e&&(0,Oe.o)(_e,De),De instanceof X&&De._removeParent(this)}}X.EMPTY=(()=>{const Je=new X;return Je.closed=!0,Je})();const Ee=X.EMPTY;function re(Je){return Je instanceof X||Je&&"closed"in Je&&(0,g.T)(Je.remove)&&(0,g.T)(Je.add)&&(0,g.T)(Je.unsubscribe)}function Ze(Je){(0,g.T)(Je)?Je():Je.unsubscribe()}},1026:(En,bt,B)=>{"use strict";B.d(bt,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(En,bt,B)=>{"use strict";B.d(bt,{z:()=>De});var g=B(1985),d=B(3073),ge=B(8455),Oe=B(3669),X=B(6450),Ee=B(3794),re=B(8496),Ze=B(4360),Je=B(5225);function De(...$e){const Le=(0,Ee.lI)($e),Qe=(0,Ee.ms)($e),{args:ft,keys:ut}=(0,d.D)($e);if(0===ft.length)return(0,ge.H)([],Le);const st=new g.c(function _e($e,Le,Qe=Oe.D){return ft=>{Fe(Le,()=>{const{length:ut}=$e,st=new Array(ut);let Mt=ut,mt=ut;for(let vt=0;vt{const Me=(0,ge.H)($e[vt],Le);let je=!1;Me.subscribe((0,Ze._)(ft,Ke=>{st[vt]=Ke,je||(je=!0,mt--),mt||ft.next(Qe(st.slice()))},()=>{--Mt||ft.complete()}))},ft)},ft)}}(ft,Le,ut?Mt=>(0,re.e)(ut,Mt):Oe.D));return Qe?st.pipe((0,X.I)(Qe)):st}function Fe($e,Le,Qe){$e?(0,Je.N)(Qe,$e,Le):Le()}},983:(En,bt,B)=>{"use strict";B.d(bt,{w:()=>d});const d=new(B(1985).c)(X=>X.complete())},8455:(En,bt,B)=>{"use strict";B.d(bt,{H:()=>Me});var g=B(8750),d=B(941),ge=B(6745),Ee=B(1985),Ze=B(4761),Je=B(8071),De=B(5225);function Fe(je,Ke){if(!je)throw new Error("Iterable cannot be null");return new Ee.c(Ct=>{(0,De.N)(Ct,Ke,()=>{const xt=je[Symbol.asyncIterator]();(0,De.N)(Ct,Ke,()=>{xt.next().then(ze=>{ze.done?Ct.complete():Ct.next(ze.value)})},0,!0)})})}var $e=B(5055),Le=B(9858),Qe=B(7441),ft=B(5397),ut=B(7953),st=B(591),Mt=B(5196);function Me(je,Ke){return Ke?function vt(je,Ke){if(null!=je){if((0,$e.l)(je))return function Oe(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,Qe.X)(je))return function re(je,Ke){return new Ee.c(Ct=>{let xt=0;return Ke.schedule(function(){xt===je.length?Ct.complete():(Ct.next(je[xt++]),Ct.closed||this.schedule())})})}(je,Ke);if((0,Le.y)(je))return function X(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,ut.T)(je))return Fe(je,Ke);if((0,ft.x)(je))return function _e(je,Ke){return new Ee.c(Ct=>{let xt;return(0,De.N)(Ct,Ke,()=>{xt=je[Ze.l](),(0,De.N)(Ct,Ke,()=>{let ze,Tt;try{({value:ze,done:Tt}=xt.next())}catch(Vt){return void Ct.error(Vt)}Tt?Ct.complete():Ct.next(ze)},0,!0)}),()=>(0,Je.T)(null==xt?void 0:xt.return)&&xt.return()})}(je,Ke);if((0,Mt.U)(je))return function mt(je,Ke){return Fe((0,Mt.C)(je),Ke)}(je,Ke)}throw(0,st.L)(je)}(je,Ke):(0,g.Tg)(je)}},3726:(En,bt,B)=>{"use strict";B.d(bt,{R:()=>De});var g=B(8750),d=B(1985),ge=B(1397),Oe=B(7441),X=B(8071),Ee=B(6450);const re=["addListener","removeListener"],Ze=["addEventListener","removeEventListener"],Je=["on","off"];function De(Qe,ft,ut,st){if((0,X.T)(ut)&&(st=ut,ut=void 0),st)return De(Qe,ft,ut).pipe((0,Ee.I)(st));const[Mt,mt]=function Le(Qe){return(0,X.T)(Qe.addEventListener)&&(0,X.T)(Qe.removeEventListener)}(Qe)?Ze.map(vt=>Me=>Qe[vt](ft,Me,ut)):function Fe(Qe){return(0,X.T)(Qe.addListener)&&(0,X.T)(Qe.removeListener)}(Qe)?re.map(_e(Qe,ft)):function $e(Qe){return(0,X.T)(Qe.on)&&(0,X.T)(Qe.off)}(Qe)?Je.map(_e(Qe,ft)):[];if(!Mt&&(0,Oe.X)(Qe))return(0,ge.Z)(vt=>De(vt,ft,ut))((0,g.Tg)(Qe));if(!Mt)throw new TypeError("Invalid event target");return new d.c(vt=>{const Me=(...je)=>vt.next(1mt(Me)})}function _e(Qe,ft){return ut=>st=>Qe[ut](ft,st)}},8750:(En,bt,B)=>{"use strict";B.d(bt,{Tg:()=>$e});var g=B(1635),d=B(7441),ge=B(9858),Oe=B(1985),X=B(5055),Ee=B(7953),re=B(591),Ze=B(5397),Je=B(5196),De=B(8071),_e=B(5334),Fe=B(3494);function $e(vt){if(vt instanceof Oe.c)return vt;if(null!=vt){if((0,X.l)(vt))return function Le(vt){return new Oe.c(Me=>{const je=vt[Fe.s]();if((0,De.T)(je.subscribe))return je.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(vt);if((0,d.X)(vt))return function Qe(vt){return new Oe.c(Me=>{for(let je=0;je{vt.then(je=>{Me.closed||(Me.next(je),Me.complete())},je=>Me.error(je)).then(null,_e.m)})}(vt);if((0,Ee.T)(vt))return st(vt);if((0,Ze.x)(vt))return function ut(vt){return new Oe.c(Me=>{for(const je of vt)if(Me.next(je),Me.closed)return;Me.complete()})}(vt);if((0,Je.U)(vt))return function Mt(vt){return st((0,Je.C)(vt))}(vt)}throw(0,re.L)(vt)}function st(vt){return new Oe.c(Me=>{(function mt(vt,Me){var je,Ke,Ct,xt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(je=(0,g.xN)(vt);!(Ke=yield je.next()).done;)if(Me.next(Ke.value),Me.closed)return}catch(ze){Ct={error:ze}}finally{try{Ke&&!Ke.done&&(xt=je.return)&&(yield xt.call(je))}finally{if(Ct)throw Ct.error}}Me.complete()})})(vt,Me).catch(je=>Me.error(je))})}},7673:(En,bt,B)=>{"use strict";B.d(bt,{of:()=>ge});var g=B(3794),d=B(8455);function ge(...Oe){const X=(0,g.lI)(Oe);return(0,d.H)(Oe,X)}},4360:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(7707);function d(Oe,X,Ee,re,Ze){return new ge(Oe,X,Ee,re,Ze)}class ge extends g.vU{constructor(X,Ee,re,Ze,Je,De){super(X),this.onFinalize=Je,this.shouldUnsubscribe=De,this._next=Ee?function(_e){try{Ee(_e)}catch(Fe){X.error(Fe)}}:super._next,this._error=Ze?function(_e){try{Ze(_e)}catch(Fe){X.error(Fe)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(_e){X.error(_e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var X;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ee}=this;super.unsubscribe(),!Ee&&(null===(X=this.onFinalize)||void 0===X||X.call(this))}}}},5964:(En,bt,B)=>{"use strict";B.d(bt,{p:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,X){return(0,g.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,d._)(re,Je=>Oe.call(X,Je,Ze++)&&re.next(Je)))})}},6354:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,X){return(0,g.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,d._)(re,Je=>{re.next(Oe.call(X,Je,Ze++))}))})}},1397:(En,bt,B)=>{"use strict";B.d(bt,{Z:()=>Ze});var g=B(6354),d=B(8750),ge=B(9974),Oe=B(5225),X=B(4360),re=B(8071);function Ze(Je,De,_e=1/0){return(0,re.T)(De)?Ze((Fe,$e)=>(0,g.T)((Le,Qe)=>De(Fe,Le,$e,Qe))((0,d.Tg)(Je(Fe,$e))),_e):("number"==typeof De&&(_e=De),(0,ge.N)((Fe,$e)=>function Ee(Je,De,_e,Fe,$e,Le,Qe,ft){const ut=[];let st=0,Mt=0,mt=!1;const vt=()=>{mt&&!ut.length&&!st&&De.complete()},Me=Ke=>st{Le&&De.next(Ke),st++;let Ct=!1;(0,d.Tg)(_e(Ke,Mt++)).subscribe((0,X._)(De,xt=>{null==$e||$e(xt),Le?Me(xt):De.next(xt)},()=>{Ct=!0},void 0,()=>{if(Ct)try{for(st--;ut.length&&stje(xt)):je(xt)}vt()}catch(xt){De.error(xt)}}))};return Je.subscribe((0,X._)(De,Me,()=>{mt=!0,vt()})),()=>{null==ft||ft()}}(Fe,$e,Je,_e)))}},941:(En,bt,B)=>{"use strict";B.d(bt,{Q:()=>Oe});var g=B(5225),d=B(9974),ge=B(4360);function Oe(X,Ee=0){return(0,d.N)((re,Ze)=>{re.subscribe((0,ge._)(Ze,Je=>(0,g.N)(Ze,X,()=>Ze.next(Je),Ee),()=>(0,g.N)(Ze,X,()=>Ze.complete(),Ee),Je=>(0,g.N)(Ze,X,()=>Ze.error(Je),Ee)))})}},6745:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(9974);function d(ge,Oe=0){return(0,g.N)((X,Ee)=>{Ee.add(ge.schedule(()=>X.subscribe(Ee),Oe))})}},5558:(En,bt,B)=>{"use strict";B.d(bt,{n:()=>Oe});var g=B(8750),d=B(9974),ge=B(4360);function Oe(X,Ee){return(0,d.N)((re,Ze)=>{let Je=null,De=0,_e=!1;const Fe=()=>_e&&!Je&&Ze.complete();re.subscribe((0,ge._)(Ze,$e=>{null==Je||Je.unsubscribe();let Le=0;const Qe=De++;(0,g.Tg)(X($e,Qe)).subscribe(Je=(0,ge._)(Ze,ft=>Ze.next(Ee?Ee($e,ft,Qe,Le++):ft),()=>{Je=null,Fe()}))},()=>{_e=!0,Fe()}))})}},6697:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>Oe});var g=B(983),d=B(9974),ge=B(4360);function Oe(X){return X<=0?()=>g.w:(0,d.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,ge._)(re,Je=>{++Ze<=X&&(re.next(Je),X<=Ze&&re.complete())}))})}},8141:(En,bt,B)=>{"use strict";B.d(bt,{M:()=>X});var g=B(8071),d=B(9974),ge=B(4360),Oe=B(3669);function X(Ee,re,Ze){const Je=(0,g.T)(Ee)||re||Ze?{next:Ee,error:re,complete:Ze}:Ee;return Je?(0,d.N)((De,_e)=>{var Fe;null===(Fe=Je.subscribe)||void 0===Fe||Fe.call(Je);let $e=!0;De.subscribe((0,ge._)(_e,Le=>{var Qe;null===(Qe=Je.next)||void 0===Qe||Qe.call(Je,Le),_e.next(Le)},()=>{var Le;$e=!1,null===(Le=Je.complete)||void 0===Le||Le.call(Je),_e.complete()},Le=>{var Qe;$e=!1,null===(Qe=Je.error)||void 0===Qe||Qe.call(Je,Le),_e.error(Le)},()=>{var Le,Qe;$e&&(null===(Le=Je.unsubscribe)||void 0===Le||Le.call(Je)),null===(Qe=Je.finalize)||void 0===Qe||Qe.call(Je)}))}):Oe.D}},9270:(En,bt,B)=>{"use strict";B.d(bt,{f:()=>g});const g={setTimeout(d,ge,...Oe){const{delegate:X}=g;return null!=X&&X.setTimeout?X.setTimeout(d,ge,...Oe):setTimeout(d,ge,...Oe)},clearTimeout(d){const{delegate:ge}=g;return((null==ge?void 0:ge.clearTimeout)||clearTimeout)(d)},delegate:void 0}},4761:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>d});const d=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},3794:(En,bt,B)=>{"use strict";B.d(bt,{ms:()=>Oe,lI:()=>X});var g=B(8071);function ge(re){return re[re.length-1]}function Oe(re){return(0,g.T)(ge(re))?re.pop():void 0}function X(re){return function d(re){return re&&(0,g.T)(re.schedule)}(ge(re))?re.pop():void 0}},3073:(En,bt,B)=>{"use strict";B.d(bt,{D:()=>X});const{isArray:g}=Array,{getPrototypeOf:d,prototype:ge,keys:Oe}=Object;function X(re){if(1===re.length){const Ze=re[0];if(g(Ze))return{args:Ze,keys:null};if(function Ee(re){return re&&"object"==typeof re&&d(re)===ge}(Ze)){const Je=Oe(Ze);return{args:Je.map(De=>Ze[De]),keys:Je}}}return{args:re,keys:null}}},7908:(En,bt,B)=>{"use strict";function g(d,ge){if(d){const Oe=d.indexOf(ge);0<=Oe&&d.splice(Oe,1)}}B.d(bt,{o:()=>g})},1853:(En,bt,B)=>{"use strict";function g(d){const Oe=d(X=>{Error.call(X),X.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}B.d(bt,{L:()=>g})},8496:(En,bt,B)=>{"use strict";function g(d,ge){return d.reduce((Oe,X,Ee)=>(Oe[X]=ge[Ee],Oe),{})}B.d(bt,{e:()=>g})},9786:(En,bt,B)=>{"use strict";B.d(bt,{Y:()=>ge,l:()=>Oe});var g=B(1026);let d=null;function ge(X){if(g.$.useDeprecatedSynchronousErrorHandling){const Ee=!d;if(Ee&&(d={errorThrown:!1,error:null}),X(),Ee){const{errorThrown:re,error:Ze}=d;if(d=null,re)throw Ze}}else X()}function Oe(X){g.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=X)}},5225:(En,bt,B)=>{"use strict";function g(d,ge,Oe,X=0,Ee=!1){const re=ge.schedule(function(){Oe(),Ee?d.add(this.schedule(null,X)):this.unsubscribe()},X);if(d.add(re),!Ee)return re}B.d(bt,{N:()=>g})},3669:(En,bt,B)=>{"use strict";function g(d){return d}B.d(bt,{D:()=>g})},7441:(En,bt,B)=>{"use strict";B.d(bt,{X:()=>g});const g=d=>d&&"number"==typeof d.length&&"function"!=typeof d},7953:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>d});var g=B(8071);function d(ge){return Symbol.asyncIterator&&(0,g.T)(null==ge?void 0:ge[Symbol.asyncIterator])}},8071:(En,bt,B)=>{"use strict";function g(d){return"function"==typeof d}B.d(bt,{T:()=>g})},5055:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>ge});var g=B(3494),d=B(8071);function ge(Oe){return(0,d.T)(Oe[g.s])}},5397:(En,bt,B)=>{"use strict";B.d(bt,{x:()=>ge});var g=B(4761),d=B(8071);function ge(Oe){return(0,d.T)(null==Oe?void 0:Oe[g.l])}},9858:(En,bt,B)=>{"use strict";B.d(bt,{y:()=>d});var g=B(8071);function d(ge){return(0,g.T)(null==ge?void 0:ge.then)}},5196:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>ge,U:()=>Oe});var g=B(1635),d=B(8071);function ge(X){return(0,g.AQ)(this,arguments,function*(){const re=X.getReader();try{for(;;){const{value:Ze,done:Je}=yield(0,g.N3)(re.read());if(Je)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Ze)}}finally{re.releaseLock()}})}function Oe(X){return(0,d.T)(null==X?void 0:X.getReader)}},9974:(En,bt,B)=>{"use strict";B.d(bt,{N:()=>ge,S:()=>d});var g=B(8071);function d(Oe){return(0,g.T)(null==Oe?void 0:Oe.lift)}function ge(Oe){return X=>{if(d(X))return X.lift(function(Ee){try{return Oe(Ee,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(En,bt,B)=>{"use strict";B.d(bt,{I:()=>Oe});var g=B(6354);const{isArray:d}=Array;function Oe(X){return(0,g.T)(Ee=>function ge(X,Ee){return d(Ee)?X(...Ee):X(Ee)}(X,Ee))}},5343:(En,bt,B)=>{"use strict";function g(){}B.d(bt,{l:()=>g})},1203:(En,bt,B)=>{"use strict";B.d(bt,{F:()=>d,m:()=>ge});var g=B(3669);function d(...Oe){return ge(Oe)}function ge(Oe){return 0===Oe.length?g.D:1===Oe.length?Oe[0]:function(Ee){return Oe.reduce((re,Ze)=>Ze(re),Ee)}}},5334:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>ge});var g=B(1026),d=B(9270);function ge(Oe){d.f.setTimeout(()=>{const{onUnhandledError:X}=g.$;if(!X)throw Oe;X(Oe)})}},591:(En,bt,B)=>{"use strict";function g(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}B.d(bt,{L:()=>g})},8996:(En,bt,B)=>{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 d(ge){if(!B.o(g,ge))return Promise.resolve().then(()=>{var Ee=new Error("Cannot find module '"+ge+"'");throw Ee.code="MODULE_NOT_FOUND",Ee});var Oe=g[ge],X=Oe[0];return Promise.all(Oe.slice(1).map(B.e)).then(()=>B(X))}d.keys=()=>Object.keys(g),d.id=8996,En.exports=d},177:(En,bt,B)=>{"use strict";B.d(bt,{AJ:()=>Lt,MD:()=>et,N0:()=>ci,QT:()=>ge,Sm:()=>ft,Sq:()=>cn,T3:()=>kn,VF:()=>X,Vy:()=>Cn,Xr:()=>cr,ZD:()=>Oe,_b:()=>Y,aZ:()=>st,bT:()=>Hn,fw:()=>ut,hb:()=>Le,hj:()=>Je,qQ:()=>re});var g=B(4438);let d=null;function ge(){return d}function Oe(D){var V;null!==(V=d)&&void 0!==V||(d=D)}class X{}const re=new g.nKC("");let Ze=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(De),providedIn:"platform"}),V})();const Je=new g.nKC("");let De=(()=>{var D;class V extends Ze{constructor(){super(),this._doc=(0,g.WQX)(re),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ge().getBaseHref(this._doc)}onPopState(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",O,!1),()=>le.removeEventListener("popstate",O)}onHashChange(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",O,!1),()=>le.removeEventListener("hashchange",O)}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(O){this._location.pathname=O}pushState(O,le,xe){this._history.pushState(O,le,xe)}replaceState(O,le,xe){this._history.replaceState(O,le,xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>new D,providedIn:"platform"}),V})();function _e(D,V){if(0==D.length)return V;if(0==V.length)return D;let be=0;return D.endsWith("/")&&be++,V.startsWith("/")&&be++,2==be?D+V.substring(1):1==be?D+V:D+"/"+V}function Fe(D){const V=D.match(/#|\?|$/),be=V&&V.index||D.length;return D.slice(0,be-("/"===D[be-1]?1:0))+D.slice(be)}function $e(D){return D&&"?"!==D[0]?"?"+D:D}let Le=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(ft),providedIn:"root"}),V})();const Qe=new g.nKC("");let ft=(()=>{var D;class V extends Le{constructor(O,le){var xe,Ft,an;super(),this._platformLocation=O,this._removeListenerFns=[],this._baseHref=null!==(xe=null!==(Ft=null!=le?le:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ft?Ft:null===(an=(0,g.WQX)(re).location)||void 0===an?void 0:an.origin)&&void 0!==xe?xe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return _e(this._baseHref,O)}path(O=!1){const le=this._platformLocation.pathname+$e(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&O?`${le}${xe}`:le}pushState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),V})(),ut=(()=>{var D;class V extends Le{constructor(O,le){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){var le;const xe=null!==(le=this._platformLocation.hash)&&void 0!==le?le:"#";return xe.length>0?xe.substring(1):xe}prepareExternalUrl(O){const le=_e(this._baseHref,O);return le.length>0?"#"+le:le}pushState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac}),V})(),st=(()=>{var D;class V{constructor(O){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=O;const le=this._locationStrategy.getBaseHref();this._basePath=function Me(D){if(new RegExp("^(https?:)?//").test(D)){const[,be]=D.split(/\/\/[^\/]+/);return be}return D}(Fe(vt(le))),this._locationStrategy.onPopState(xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:xe.state,type:xe.type})})}ngOnDestroy(){var O;null===(O=this._urlChangeSubscription)||void 0===O||O.unsubscribe(),this._urlChangeListeners=[]}path(O=!1){return this.normalize(this._locationStrategy.path(O))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(O,le=""){return this.path()==this.normalize(O+$e(le))}normalize(O){return V.stripTrailingSlash(function mt(D,V){if(!D||!V.startsWith(D))return V;const be=V.substring(D.length);return""===be||["/",";","?","#"].includes(be[0])?be:V}(this._basePath,vt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._locationStrategy.prepareExternalUrl(O)}go(O,le="",xe=null){this._locationStrategy.pushState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}replaceState(O,le="",xe=null){this._locationStrategy.replaceState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(O=0){var le,xe;null===(le=(xe=this._locationStrategy).historyGo)||void 0===le||le.call(xe,O)}onUrlChange(O){var le;return this._urlChangeListeners.push(O),null!==(le=this._urlChangeSubscription)&&void 0!==le||(this._urlChangeSubscription=this.subscribe(xe=>{this._notifyUrlChangeListeners(xe.url,xe.state)})),()=>{const xe=this._urlChangeListeners.indexOf(O);var Ft;this._urlChangeListeners.splice(xe,1),0===this._urlChangeListeners.length&&(null===(Ft=this._urlChangeSubscription)||void 0===Ft||Ft.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(O="",le){this._urlChangeListeners.forEach(xe=>xe(O,le))}subscribe(O,le,xe){return this._subject.subscribe({next:O,error:le,complete:xe})}}return(D=V).normalizeQueryParams=$e,D.joinWithSlash=_e,D.stripTrailingSlash=Fe,D.\u0275fac=function(O){return new(O||D)(g.KVO(Le))},D.\u0275prov=g.jDH({token:D,factory:()=>function Mt(){return new st((0,g.KVO)(Le))}(),providedIn:"root"}),V})();function vt(D){return D.replace(/\/index.html$/,"")}function Y(D,V){V=encodeURIComponent(V);for(const be of D.split(";")){const O=be.indexOf("="),[le,xe]=-1==O?[be,""]:[be.slice(0,O),be.slice(O+1)];if(le.trim()===V)return decodeURIComponent(xe)}return null}class Wt{constructor(V,be,O,le){this.$implicit=V,this.ngForOf=be,this.index=O,this.count=le}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 cn=(()=>{var D;class V{set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}constructor(O,le,xe){this._viewContainer=O,this._template=le,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const le=this._viewContainer;O.forEachOperation((xe,Ft,an)=>{if(null==xe.previousIndex)le.createEmbeddedView(this._template,new Wt(xe.item,this._ngForOf,-1,-1),null===an?void 0:an);else if(null==an)le.remove(null===Ft?void 0:Ft);else if(null!==Ft){const Un=le.get(Ft);le.move(Un,an),Pn(Un,xe)}});for(let xe=0,Ft=le.length;xe{Pn(le.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),V})();function Pn(D,V){D.context.$implicit=V.item}let Hn=(()=>{var D;class V{constructor(O,le){this._viewContainer=O,this._context=new $i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ai("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ai("ngIfElse",O),this._elseTemplateRef=O,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(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class $i{constructor(){this.$implicit=null,this.ngIf=null}}function Ai(D,V){if(V&&!V.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,g.Tbb)(V)}'.`)}let kn=(()=>{var D;class V{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(O){if(this._shouldRecreateView(O)){var le;const xe=this._viewContainerRef;if(this._viewRef&&xe.remove(xe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ft=this._createContextForwardProxy();this._viewRef=xe.createEmbeddedView(this.ngTemplateOutlet,Ft,{injector:null!==(le=this.ngTemplateOutletInjector)&&void 0!==le?le:void 0})}}_shouldRecreateView(O){return!!O.ngTemplateOutlet||!!O.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(O,le,xe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,le,xe),get:(O,le,xe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,le,xe)}})}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),V})(),et=(()=>{var D;class V{}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275mod=g.$C({type:D}),D.\u0275inj=g.G2t({}),V})();const Lt="browser",zt="server";function Cn(D){return D===zt}let cr=(()=>{var D;class V{}return(D=V).\u0275prov=(0,g.jDH)({token:D,providedIn:"root",factory:()=>function _n(D){return D===Lt}((0,g.WQX)(g.Agw))?new nr((0,g.WQX)(re),window):new vi}),V})();class nr{constructor(V,be){this.document=V,this.window=be,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(V){this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){const be=function li(D,V){const be=D.getElementById(V)||D.getElementsByName(V)[0];if(be)return be;if("function"==typeof D.createTreeWalker&&D.body&&"function"==typeof D.body.attachShadow){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let le=O.currentNode;for(;le;){const xe=le.shadowRoot;if(xe){const Ft=xe.getElementById(V)||xe.querySelector(`[name="${V}"]`);if(Ft)return Ft}le=O.nextNode()}}return null}(this.document,V);be&&(this.scrollToElement(be),be.focus())}setHistoryScrollRestoration(V){this.window.history.scrollRestoration=V}scrollToElement(V){const be=V.getBoundingClientRect(),O=be.left+this.window.pageXOffset,le=be.top+this.window.pageYOffset,xe=this.offset();this.window.scrollTo(O-xe[0],le-xe[1])}}class vi{setOffset(V){}getScrollPosition(){return[0,0]}scrollToPosition(V){}scrollToAnchor(V){}setHistoryScrollRestoration(V){}}class ci{}},4438:(En,bt,B)=>{"use strict";B.d(bt,{iLQ:()=>$I,sZ2:()=>vv,hnV:()=>eD,Hbi:()=>ZM,o8S:()=>Id,BIS:()=>yy,gRc:()=>fD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>Jo,zcH:()=>Ya,bkB:()=>Os,$GK:()=>sr,nKC:()=>Q,zZn:()=>ds,_q3:()=>qI,MKu:()=>XI,xe9:()=>sy,Co$:()=>hi,Vns:()=>io,SKi:()=>Eo,Xx1:()=>_n,Agw:()=>Zd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>Xg,kdw:()=>Ln,C4Q:()=>sp,NYb:()=>vM,giA:()=>ZT,xvI:()=>GR,RxE:()=>GT,c1b:()=>hd,gXe:()=>ms,mal:()=>u_,L39:()=>wP,a0P:()=>kP,Ol2:()=>G0,w6W:()=>rs,oH4:()=>uD,SmG:()=>VM,Rfq:()=>Yr,WQX:()=>Ae,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>WT,H8p:()=>dl,KH2:()=>Xp,TgB:()=>Mp,wOt:()=>Ve,WHO:()=>QT,e01:()=>YT,H5H:()=>mI,Zy3:()=>yt,mq5:()=>lC,JZv:()=>Bn,LfX:()=>St,plB:()=>tl,jNT:()=>LI,zjR:()=>JT,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>bp,Mj6:()=>ss,GFd:()=>Li,OA$:()=>At,Jv_:()=>ET,aNF:()=>AT,R7$:()=>n0,BMQ:()=>nI,AVh:()=>lI,wni:()=>QC,VBU:()=>vs,FsC:()=>as,jDH:()=>or,G2t:()=>wi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>pI,eu8:()=>gI,bVm:()=>Y_,qex:()=>Q_,k0s:()=>X_,j41:()=>q_,RV6:()=>oC,xGo:()=>cf,KVO:()=>U,kS0:()=>Vc,QTQ:()=>r0,bIt:()=>yI,lsd:()=>JC,XpG:()=>UC,SdG:()=>BC,NAR:()=>$C,Y8G:()=>sI,FS9:()=>EI,lJ4:()=>TT,mGM:()=>ZC,Dyx:()=>nC,Z7z:()=>tC,fX1:()=>eC,Njj:()=>Ac,eBV:()=>Sd,n$t:()=>zf,DNE:()=>Pp,EFF:()=>uT,JRh:()=>CI,DH7:()=>yT,mxI:()=>bI,R50:()=>DI,GBs:()=>YC}),B(467);let ge=null,X=1;const Ee=Symbol("SIGNAL");function re(e){const t=ge;return ge=e,t}function Le(e){if((!Ke(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==X)){if(!e.producerMustRecompute(e)&&!mt(e))return e.dirty=!1,void(e.lastCleanEpoch=X);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=X}}function mt(e){Ct(e);for(let t=0;t0}function Ct(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 rn=null;var $n=B(1413),qn=B(8359),er=B(4412),yn=B(6354);const Yn="https://g.co/ng/security#xss";class Ve extends Error{constructor(t,r){super(yt(t,r)),this.code=t}}function yt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function mn(e){return{toString:e}.toString()}const Gt="__parameters__";function Mr(e,t,r){return mn(()=>{const o=function kr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...c){if(this instanceof a)return o.apply(this,c),this;const p=new a(...c);return y.annotation=p,y;function y(A,F,K){const ee=A.hasOwnProperty(Gt)?A[Gt]:Object.defineProperty(A,Gt,{value:[]})[Gt];for(;ee.length<=K;)ee.push(null);return(ee[K]=ee[K]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Bn=globalThis;function wn(e){for(let t in e)if(e[t]===wn)return t;throw Error("Could not find renamed property on target object.")}function Sr(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 Er(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Qr=wn({__forward_ref__:wn});function Yr(e){return e.__forward_ref__=Yr,e.toString=function(){return tr(this())},e}function oe(e){return He(e)?e():e}function He(e){return"function"==typeof e&&e.hasOwnProperty(Qr)&&e.__forward_ref__===Yr}function or(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wi(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return lt(e,Kn)||lt(e,Z)}function St(e){return null!==gi(e)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function fn(e){return e&&(e.hasOwnProperty(Y)||e.hasOwnProperty(Ne))?e[Y]:null}const Kn=wn({\u0275prov:wn}),Y=wn({\u0275inj:wn}),Z=wn({ngInjectableDef:wn}),Ne=wn({ngInjectorDef:wn});class Q{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=or({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xr(e){return e&&!!e.\u0275providers}const An=wn({\u0275cmp:wn}),xi=wn({\u0275dir:wn}),mi=wn({\u0275pipe:wn}),Si=wn({\u0275mod:wn}),ti=wn({\u0275fac:wn}),mr=wn({__NG_ELEMENT_ID__:wn}),oi=wn({__NG_ENV_ID__:wn});function Nn(e){return"string"==typeof e?e:null==e?"":String(e)}function si(e,t){throw new Ve(-201,!1)}var sr=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}(sr||{});let Or;function ai(){return Or}function jn(e){const t=Or;return Or=e,t}function Fo(e,t,r){const o=gi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&sr.Optional?null:void 0!==t?t:void si()}const co={},To="__NG_DI_FLAG__",Ni="ngTempTokenPath",H=/\n/gm,M="__source";let fe;function ar(e){const t=fe;return fe=e,t}function ui(e,t=sr.Default){if(void 0===fe)throw new Ve(-203,!1);return null===fe?Fo(e,void 0,t):fe.get(e,t&sr.Optional?null:void 0,t)}function U(e,t=sr.Default){return(ai()||ui)(oe(e),t)}function Ae(e,t=sr.Default){return U(e,ke(t))}function ke(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ot(e){const t=[];for(let r=0;rArray.isArray(r)?li(r,t):t(r))}function vi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ci(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=Do(e,t);return o>=0?e[1|o]=r:(o=~o,function Wr(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 Ko(e,t){const r=Do(e,t);if(r>=0)return e[1|r]}function Do(e,t){return function os(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const c=o+(a-o>>1),p=e[c<t?a=c:o=c+1}return~(a<t){p=c-1;break}}}for(;c-1){let c;for(;++ac?"":a[K+1].toLowerCase(),2&o&&F!==ee){if(ce(o))return!1;p=!0}}}}else{if(!p&&!ce(o)&&!ce(A))return!1;if(p&&ce(A))continue;p=!1,o=A|1&o}}return ce(o)||p}function ce(e){return!(1&e)}function $(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let c=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ce(p)&&(t+=ao(c,a),a=""),o=p,c=c||!ce(o);r++}return""!==a&&(t+=ao(c,a)),t}function vs(e){return mn(()=>{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||Pr,_:null,schemas:e.schemas||null,tView:null,id:""};ls(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function vr(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 Jn(e)||Oi(e)}function Oa(e){return null!==e}function sl(e){return mn(()=>({type:e.type,bootstrap:e.bootstrap||Pr,declarations:e.declarations||Pr,imports:e.imports||Pr,exports:e.exports||Pr,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 c=e[a];let p,y,A=ss.None;var o;Array.isArray(c)?(A=c[0],p=c[1],y=null!==(o=c[2])&&void 0!==o?o:p):(p=c,y=c),t?(r[p]=A!==ss.None?[a,A]:a,t[p]=y):r[p]=a}return r}function as(e){return mn(()=>{const t=ll(e);return ls(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 Jn(e){return e[An]||null}function Oi(e){return e[xi]||null}function Ti(e){return e[mi]||null}function ro(e){const t=Jn(e)||Oi(e)||Ti(e);return null!==t&&t.standalone}function Hr(e,t){const r=e[Si]||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||Pr,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 ls(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?Ti: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 c=p=>{r.push(p)};return li(t,p=>{const y=p;cl(y,c,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,c),r}function js(e,t){for(let r=0;r{t(c,o)})}}function cl(e,t,r,o){if(!(e=oe(e)))return!1;let a=null,c=fn(e);const p=!c&&Jn(e);if(c||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(c=fn(A),!c)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 F of A)cl(F,t,r,o)}}else{if(!c)return!1;{if(null!=c.imports&&!y){let F;o.add(a);try{li(c.imports,K=>{cl(K,t,r,o)&&(F||(F=[]),F.push(K))})}finally{}void 0!==F&&js(F,t)}if(!y){const F=br(a)||(()=>new a);t({provide:a,useFactory:F,deps:Pr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>U(a),multi:!0},a)}const A=c.providers;if(null!=A&&!y){const F=e;Ll(A,K=>{t(K,F)})}}}return a!==e&&void 0!==e.providers}function Ll(e,t){for(let r of e)xr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ll(r,t):t(r)}const Ul=wn({provide:String,useValue:wn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Yo(e){return"function"==typeof e}const dl=new Q(""),Zo={},wu={};let $l;function Lo(){return void 0===$l&&($l=new ua),$l}class Jo{}class Rs extends Jo{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,Va(void 0,this)),a.has("environment")&&this.records.set(Jo,Va(void 0,this));const c=this.records.get(dl);null!=c&&"string"==typeof c.value&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(so,Pr,sr.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=re(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(),re(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=ar(this),o=jn(void 0);try{return t()}finally{ar(r),jn(o)}}get(t,r=co,o=sr.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(oi))return t[oi](this);o=ke(o);const c=ar(this),p=jn(void 0);try{if(!(o&sr.SkipSelf)){let A=this.records.get(t);if(void 0===A){const F=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof Q}(t)&&gi(t);A=F&&this.injectableDefInScope(F)?Va(Di(t),Zo):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&sr.Self?Lo():this.parent).get(t,r=o&sr.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Ni]=y[Ni]||[]).unshift(tr(t)),c)throw y;return function zt(e,t,r,o){const a=e[Ni];throw t[M]&&a.unshift(t[M]),e.message=function Kt(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 c=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];c.push(p+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${c.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Ni]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{jn(p),ar(c)}}resolveInjectorInitializers(){const t=re(null),r=ar(this),o=jn(void 0);try{const c=this.get(oo,Pr,sr.Self);for(const p of c)p()}finally{ar(r),jn(o),re(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 Ve(205,!1)}processProvider(t){let r=Yo(t=oe(t))?t:oe(t&&t.provide);const o=function Bl(e){return fa(e)?Va(void 0,e.useValue):Va(ga(e),Zo)}(t);if(!Yo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=Va(void 0,Zo,!0),a.factory=()=>ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=re(null);try{return r.value===Zo&&(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{re(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=oe(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 Di(e){const t=gi(e),r=null!==t?t.factory:br(e);if(null!==r)return r;if(e instanceof Q)throw new Ve(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new Ve(204,!1);const r=function Ut(e){return e&&(e[Kn]||e[Z])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Ve(204,!1)}function ga(e,t,r){let o;if(Yo(e)){const a=oe(e);return br(a)||Di(a)}if(fa(e))o=()=>oe(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...ot(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>U(oe(e.useExisting));else{const a=oe(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return br(a)||Di(a);o=()=>new a(...ot(e.deps))}return o}function Va(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&&xr(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=ar(e),a=jn(void 0);try{return t()}finally{ar(o),jn(a)}}function Hs(){return void 0!==ai()||null!=function qe(){return fe}()}const Gr=0,un=1,Vn=2,Kr=3,Gi=4,_i=5,Wi=6,Fi=7,Jr=8,zi=9,Uo=10,fr=11,La=12,gc=13,Ua=14,Ki=15,va=16,es=17,wo=18,Gs=19,jl=20,Lr=21,_a=22,Ws=23,Dr=25,$a=1,$o=7,Ks=9,Vi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[$a]}function _o(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 us(e){return!!e.template}function Hl(e){return!!(512&e[Vn])}class dt{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Qt(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function At(){return Tn}function Tn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),hr}function hr(){const e=qi(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 Ri(e,t,r,o,a){const c=this.declaredInputs[o],p=qi(e)||function Bo(e,t){return e[Br]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,F=A[c];y[c]=new dt(F&&F.currentValue,r,A===Vo),Qt(e,t,a,r)}At.ngInherit=!0;const Br="__ngSimpleChanges__";function qi(e){return e[Br]||null}const yo=function(e,t,r){};let Ps=!1;function di(e){for(;Array.isArray(e);)e=e[Gr];return e}function Ga(e,t){return di(t[e])}function ts(e,t){return di(t[e.index])}function Xl(e,t){return e.data[t]}function So(e,t){const r=t[e];return Ur(r)?r:r[Gr]}function vc(e){return!(128&~e[Vn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[es]=0}function bd(e){1024&e[Vn]||(e[Vn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[Vn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[Vn])if(function Ca(){return Ps}())e[Vn]|=1024,xs(e);else{var r;null===(r=e[Uo].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[Vn])&&(r[Vn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[Vn]))throw new Ve(911,!1);null===e[Lr]&&(e[Lr]=[]),e[Lr].push(t)}function Qs(e){const t=e[Kr];return _o(t)?t[Kr]:t}const Gn={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return Gn.bindingsEnabled}function Zl(){return null!==Gn.skipHydrationRootTNode}function Ht(){return Gn.lFrame.lView}function qr(){return Gn.lFrame.tView}function Sd(e){return Gn.lFrame.contextLView=e,e[Jr]}function Ac(e){return Gn.lFrame.contextLView=null,e}function Ci(){let e=Xh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xh(){return Gn.lFrame.currentTNode}function Js(e,t){const r=Gn.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return Gn.lFrame.isParent}function Nu(){Gn.lFrame.isParent=!1}function Ts(){return Gn.lFrame.bindingIndex++}function Md(e,t){const r=Gn.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){Gn.lFrame.currentDirectiveIndex=e}function xd(){return Gn.lFrame.currentQueryIndex}function Dc(e){Gn.lFrame.currentQueryIndex=e}function bc(e){const t=e[un];return 2===t.type?t.declTNode:1===t.type?e[_i]:null}function Yh(e,t,r){if(r&sr.SkipSelf){let a=t,c=e;for(;!(a=a.parent,null!==a||r&sr.Host||(a=bc(c),null===a||(c=c[Ua],10&a.type))););if(null===a)return!1;t=a,e=c}const o=Gn.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[un];Gn.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=Gn.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=Gn.lFrame;return Gn.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 Gn.lFrame.selectedIndex}function ba(e){Gn.lFrame.selectedIndex=e}function yi(){const e=Gn.lFrame;return Xl(e.tView,e.selectedIndex)}let Lu=!0;function Uu(){return Lu}function Ns(e){Lu=e}function $u(e,t){for(let F=t.directiveStart,K=t.directiveEnd;F=o)break}else t[A]<0&&(e[es]+=65536),(y>14>16&&(3&e[Vn])===t&&(e[Vn]+=16384,vl(y,c)):vl(y,c)}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 Jl(e){const t=ju;return ju=e,t}const sf=255,Vd=5;let Nc=0;const Ds={};function zu(e,t){const r=Ld(e,t);if(-1!==r)return r;const o=t[un];o.firstCreatePass&&(e.injectorIndex=t.length,Ro(o.data,e),Ro(t,null),Ro(o.blueprint,null));const a=qa(e,t),c=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[un].data;for(let F=0;F<8;F++)t[c+F]=y[p+F]|A[p+F]}return t[c+8]=a,c}function Ro(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ld(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qa(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(mr)&&(o=r[mr]),null==o&&(o=r[mr]=Nc++);const a=o&sf;t.data[e+(a>>Vd)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof c){if(!Yh(t,e,o))return o&sr.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=c(o),null!=p||o&sr.Optional)return p;si()}finally{wc()}}else if("number"==typeof c){let p=null,y=Ld(e,t),A=_l,F=o&sr.Host?t[Ki][_i]:null;for((-1===y||o&sr.SkipSelf)&&(A=-1===y?qa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[un],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const K=t[un];if(Fc(c,y,K.data)){const ee=sg(y,t,r,p,o,F);if(ee!==Ds)return ee}A=t[y+8],A!==_l&&tu(o,t[un].data[y+8]===F)&&Fc(c,y,t)?(p=K,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,c){const p=t[un],y=p.data[e+8],K=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&sr.Host&&c===y);return null!==K?Cl(t,p,K,y):Ds}function $d(e,t,r,o,a){const c=e.providerIndexes,p=t.data,y=1048575&c,A=e.directiveStart,K=c>>20,Re=a?y+K:e.directiveEnd;for(let Ge=o?y:y+K;Ge=A&&_t.type===r)return Ge}if(a){const Ge=p[A];if(Ge&&us(Ge)&&Ge.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const c=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function Bi(e,t){throw t&&t.join(" > "),new Ve(-200,e)}(function kn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Nn(e)}(c[r]));const y=Jl(p.canSeeViewProviders);p.resolving=!0;const F=p.injectImpl?jn(p.injectImpl):null;Yh(e,o,sr.Default);try{a=e[r]=p.factory(void 0,c,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:c}=t.type.prototype;if(o){var p,y;const ee=Tn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,ee),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,ee)}var A,F,K;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),c&&((null!==(F=r.preOrderHooks)&&void 0!==F?F:r.preOrderHooks=[]).push(e,c),(null!==(K=r.preOrderCheckHooks)&&void 0!==K?K:r.preOrderCheckHooks=[]).push(e,c))}(r,c[r],t)}finally{null!==F&&jn(F),Jl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Vd)]&1<{const t=e.prototype.constructor,r=t[ti]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const c=a[ti]||Hu(a);if(c&&c!==r)return c;a=Object.getPrototypeOf(a)}return c=>new c})}function Hu(e){return He(e)?()=>{const t=Hu(oe(e));return t&&t()}:br(e)}function Qa(e){const t=e[un],r=t.type;return 2===r?t.declTNode:1===r?e[_i]:null}function Vc(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 c;const p=null!==(c=o.name)&&void 0!==c?c:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=or({token:e,providedIn:"any",factory:()=>U(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 Q("",{providedIn:"root",factory:()=>Ae(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[Lr])return;const r=e[Lr].indexOf(t);-1!==r&&e[Lr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Ht())}function Xu(){return oa(Ci(),Ht())}function oa(e,t){return new Qu(ts(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Xu,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 $n.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Ae(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=re(null);try{super.next(t)}finally{re(r)}}subscribe(t,r,o){let a=t,c=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,F;const ee=t;a=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),c=null===(A=ee.error)||void 0===A?void 0:A.bind(ee),p=null===(F=ee.complete)||void 0===F?void 0:F.bind(ee)}this.__isAsync&&(c=If(c),a&&(a=If(a)),p&&(p=If(p)));const K=super.subscribe({next:a,error:c,complete:p});return t instanceof qn.yU&&t.add(K),K}};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 nr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function cr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new Q(""),Zd=new Q("",{providedIn:"platform",factory:()=>"unknown"}),yy=new Q("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new Ve(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 Q("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,Bn.trustedTypes))try{ah=Bn.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 ${Yn})`}}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 ${Yn})`)}return r===t}const nE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Xc=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}(Xc||{});function Qc(e){const t=Sa();return t?t.sanitize(Xc.URL,e)||"":po(e,"URL")?cu(e):function bi(e){return(e=String(e)).match(nE)?e:"unsafe:"+e}(Nn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(Xc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new Ve(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=Ht();return e&&e[Uo].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var Xg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xg||{});let Bv;function Qg(e,t){return Bv(e,t)}function ph(e,t,r,o,a){if(null!=o){let c,p=!1;_o(o)?c=o:Ur(o)&&(p=!0,o=o[Gr]);const y=di(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 hE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=c&&function pE(e,t,r,o,a){const c=r[$o];c!==di(r)&&ph(t,e,o,c,a);for(let y=Vi;yt.replace(Vv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[Uo].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[fr],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<=Vi)return;const r=Vi+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 c=ci(e,Vi+t);!function Wy(e,t){jv(e,t),t[Gr]=null,t[_i]=null}(o[un],o);const p=c[wo];null!==p&&p.detachView(c[un]),o[Kr]=null,o[Gi]=null,o[Vn]&=-129}return o}function Yg(e,t){if(!(256&t[Vn])){const r=t[fr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[La];if(!t)return Zg(e[un],e);for(;t;){let r=null;if(Ur(t))r=t[La];else{const o=t[Vi];o&&(r=o)}if(!r){for(;t&&!t[Gi]&&t!==e;)Ur(t)&&Zg(t[un],t),t=t[Kr];null===t&&(t=e),Ur(t)&&Zg(t[un],t),r=t&&t[Gi]}t=r}}(t)}}function Zg(e,t){if(256&t[Vn])return;const r=re(null);try{t[Vn]&=-129,t[Vn]|=256,t[Ws]&&function vt(e){if(Ct(e),Ke(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),c+=2}else r[c].call(o[r[c+1]]);null!==o&&(t[Fi]=null);const a=t[Lr];if(null!==a){t[Lr]=null;for(let c=0;c-1){const{encapsulation:c}=e.data[o.directiveStart+a];if(c===ms.None||c===ms.Emulated)return null}return ts(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 Xf(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 Qy(e,t,r)}let Kv,Qy=function Wv(e,t,r){return 40&e.type?ts(e,r):null};function Jg(e,t,r,o){const a=Hv(e,o,t),c=t[fr],y=Gv(o.parent||t[_i],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;ADr&&nm(e,t,Dr,!1),yo(p?2:0,a),r(o,a)}finally{ba(c),yo(p?3:1,a)}}function Qv(e,t,r){if(zl(t)){const o=re(null);try{const c=t.directiveEnd;for(let p=t.directiveStart;pnull;function Zv(e,t,r,o,a){for(let p in t){var c;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(c=o)&&void 0!==c||(o={});let A,F=ss.None;Array.isArray(y)?(A=y[0],F=y[1]):A=y;let K=p;if(null!==a){if(!a.hasOwnProperty(p))continue;K=a[p]}0===e?d0(o,r,K,A,F):d0(o,r,K,A)}return o}function d0(e,t,r,o,a){let c;e.hasOwnProperty(r)?(c=e[r]).push(t,o):c=e[r]=[t,o],void 0!==a&&c.push(a)}function ks(e,t,r,o,a,c,p,y){const A=ts(t,r);let K,F=t.inputs;!y&&null!=F&&(K=F[o])?(n_(e,r,K,o,a),As(t)&&function AE(e,t){const r=So(t,e);16&r[Vn]||(r[Vn]|=64)}(r,t.index)):3&t.type&&(o=function EE(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,c.setProperty(A,o,a))}function Jv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},c=function SE(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,c)}}(e,t,o,Jf(e,r,a.hostVars,Nr),a)}function Ml(e,t,r,o,a,c){const p=ts(e,t);!function t_(e,t,r,o,a,c,p){if(null==c)e.removeAttribute(t,a,r);else{const y=null==p?Nn(c):p(c,o||"",a);e.setAttribute(t,a,y,r)}}(t[fr],p,c,e.value,r,o,a)}function NE(e,t,r,o,a,c){const p=c[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}},A0=100;function cm(e,t=!0,r=0){const o=e[Uo],a=o.rendererFactory;var p;null===(p=a.begin)||void 0===p||p.call(a);try{!function jE(e,t){i_(e,t);let r=0;for(;Ql(e);){if(r===A0)throw new Ve(103,!1);r++,i_(e,1)}}(e,r)}catch(F){throw t&&am(e,F),F}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function zE(e,t,r,o){var a;const c=t[Vn];if(!(256&~c))return;null===(a=t[Uo].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function HE(e){return 2!==e.type})(e)&&(A=function LE(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function UE(e){var t;const r=null!==(t=E0.pop())&&void 0!==t?t:Object.create(BE);return r.lView=e,r}(e)}(t),y=function st(e){return e&&(e.nextProducerIndex=0),re(e)}(A));try{yc(t),function Cc(e){return Gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&s0(e,t,r,2,o);const F=!(3&~c);if(F){const Re=e.preOrderCheckHooks;null!==Re&&Sc(t,Re,null)}else{const Re=e.preOrderHooks;null!==Re&&ra(t,Re,0,null),ia(t,0)}if(function GE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[Vn]&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 $E(e){e.lView[Ws]!==e&&(e.lView=null,E0.push(e))}(A)),Fu()}}function C0(e,t){for(let r=gg(e);null!==r;r=Tf(r))for(let o=Vi;o-1&&(qf(t,o),ci(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[un],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[Vn]&=-129}reattach(){fl(this._lView),this._lView[Vn]|=128}detectChanges(){this._lView[Vn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[un],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ve(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=qE,t})();const b0=sp,KE=class extends b0{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(Ci(),Ht())}function dm(e,t){return 4&e.type?new KE(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=Ht(),r=So(Ci().index,e);return(Ur(r)?r:e)[fr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=or({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 Eo{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 Ve(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 Bn.requestAnimationFrame;let t=Bn[e?"requestAnimationFrame":"setTimeout"],r=Bn[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 ns(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,c,p,y)=>{if(function x0(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,c,p,y);try{return Ch(e),r.invokeTask(a,c,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,c,p,y,A)=>{try{return Ch(e),r.invoke(a,c,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,c)=>{r.hasTask(a,c),o===a&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,jo(e),Ah(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,o,a,c)=>(r.handleError(a,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Eo.isInAngularZone())throw new Ve(909,!1)}static assertNotInAngularZone(){if(Eo.isInAngularZone())throw new Ve(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const c=this._inner,p=c.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return c.runTask(p,r,o)}finally{c.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 jo(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 Ve(-203,!1)}();const c=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ae(ds);if(!function el(e){return"browser"===(null!=e?e:Ae(ds)).get(Zd)}(c))return Tm;Ma("NgAfterNextRender");const p=c.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,F=()=>{y.unregister(ee),K()},K=c.get(Ku).onDestroy(F),ee=lo(c,()=>new cp(A,()=>{F(),e()}));return y.register(ee),{destroy:F}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ae(Eo),this.errorHandler=Ae(Ya,{optional:!0}),null===(o=Ae(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=or({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!Hr(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,c=0;if(null!==t)for(let p=0;p0&&e0(e,r,c.join(" "))}}($t,Fl,hn,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(Ci(),Ht())}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=qa(this._hostTNode,this._hostLView);if(Il(t)){const r=El(t,this._hostLView),o=wa(t);return new Yi(r[un].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-Vi}createEmbeddedView(t,r,o){let a,c;"number"==typeof o?a=o:null!=o&&(a=o.index,c=o.injector);const p=mo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},c,p);return this.insertImpl(y,a,_h(this._hostTNode,p)),y}createComponent(t,r,o,a,c){var p,y,A;const F=t&&!function Ft(e){return"function"==typeof e}(t);let K;if(F)K=r;else{const hn=r||{};K=hn.index,o=hn.injector,a=hn.projectableNodes,c=hn.environmentInjector||hn.ngModuleRef}const ee=F?t:new bh(Jn(t)),Re=o||this.parentInjector;if(!c&&null==ee.ngModule){const qt=(F?Re:this.parentInjector).get(Jo,null);qt&&(c=qt)}const Ge=Jn(null!==(p=ee.componentType)&&void 0!==p?p:{}),_t=mo(this._lContainer,null!==(y=null==Ge?void 0:Ge.id)&&void 0!==y?y:null),$t=null!==(A=null==_t?void 0:_t.firstChild)&&void 0!==A?A:null,sn=ee.create(Re,a,$t,c);return this.insertImpl(sn.hostView,K,_h(this._hostTNode,_t)),sn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return _o(e[Kr])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Kr],F=new __(A,A[_i],A[Kr]);F.detach(F.indexOf(t))}}const c=this._adjustIndex(r),p=this._lContainer;return np(p,a,c,o),t.attachToViewContainerRef(),vi(mp(p),c,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=qf(this._lContainer,r);o&&(ci(mp(this._lContainer),r),Yg(o[un],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ci(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 _o(o)?r=o:(r=g0(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[$o])return;let a;a=8&r.type?di(o):function Sh(e,t){const r=e[fr],o=r.createComment(""),a=ts(t,e);return nd(r,Qf(r,a),o,function Xy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[$o]=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 c=0;ct.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 F=c[y+1],K=t[-A];for(let ee=Vi;ee=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Xo(a.hostAttrs,r=Xo(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 c=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(c))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[c]=t.inputTransforms[c]}}}function Lh(e){return e===Vo?{}:e===Pr?[]: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,c)=>{t(o,a,c),r(o,a,c)}:t}function F_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Li(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 hi{}function rs(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=Hr(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 Vs extends hi{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||Lo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function G0(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 er.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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!W0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function W0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Mo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,c,p,y){const A=Ht(),F=qr(),K=e+Dr,ee=F.firstCreatePass?function cb(e,t,r,o,a,c,p,y,A){const F=t.consts,K=sc(t,e,4,p||null,Cs(F,y));Jv(t,r,K,Cs(F,A)),$u(t,K);const ee=K.tView=ep(2,K,o,a,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,F,null);return null!==t.queries&&(t.queries.template(t,K),ee.queries=t.queries.embeddedTView(K)),K}(K,F,A,t,r,o,a,c,p):F.data[K];Js(ee,!1);const Re=oA(F,A,ee,e);Uu()&&Jg(F,A,Re,ee),Zi(Re,A);const Ge=g0(Re,A,Re,ee);return A[K]=Ge,om(A,Ge),function y_(e,t,r){return Rh(e,t,r)}(Ge,ee,A),Ia(ee)&&mh(F,A,ee),null!=p&&od(A,ee,y),Pp}let oA=function sA(e,t,r,o){return Ns(!0),t[fr].createComment("")};function nI(e,t,r,o){const a=Ht();return Mo(a,Ts(),t)&&(qr(),Ml(yi(),a,e,t,r,o)),nI}function Up(e,t,r,o){return Mo(e,Ts(),r)?t+Nn(r)+o:Nr}function W_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function rI(e){return 2|e}function Bh(e){return(131068&e)>>2}function iI(e,t){return-131069&e|t<<2}function oI(e){return 1|e}function VA(e,t,r,o){const a=e[r+1],c=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||c);){const F=e[p+1];Qb(e[p],t)&&(y=!0,e[p+1]=o?oI(F):rI(F)),p=o?yd(F):Bh(F)}y&&(e[r+1]=o?rI(a):oI(a))}function Qb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Do(e,t)>=0}function sI(e,t,r){const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),sI}function aI(e,t,r,o,a){const p=a?"class":"style";n_(e,r,t.inputs[p],p,o)}function lI(e,t){return function Ol(e,t,r,o){const a=Ht(),c=qr(),p=function na(e){const t=Gn.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}(2);c.firstUpdatePass&&function WA(e,t,r,o){const a=e.data;if(null===a[r+1]){const c=a[fo()],p=function GA(e,t){return t>=e.expandoStartIndex}(e,r);(function QA(e,t){return!!(e.flags&(t?8:16))})(c,o)&&null===t&&!p&&(t=!1),t=function ow(e,t,r,o){const a=function Ou(e){const t=Gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let c=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=qm(r=uI(null,e,t,r,o),t.attrs,o),c=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=uI(a,e,t,r,o),null===c){let A=function sw(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=uI(null,e,t,A[1],o),A=qm(A,t.attrs,o),function aw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else c=function lw(e,t,r){let o;const a=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0)&&(F=!0)):K=r,a)if(0!==A){const Re=yd(e[y+1]);e[o+1]=W_(Re,y),0!==Re&&(e[Re+1]=iI(e[Re+1],o)),e[y+1]=function Wb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=W_(y,0),0!==y&&(e[y+1]=iI(e[y+1],o)),y=o;else e[o+1]=W_(A,0),0===y?y=o:e[A+1]=iI(e[A+1],o),A=o;F&&(e[o+1]=rI(e[o+1])),VA(e,K,o,!0),VA(e,K,o,!1),function Xb(e,t,r,o,a){const c=a?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof t&&Do(c,t)>=0&&(r[o+1]=oI(r[o+1]))}(t,K,e,o,c),p=W_(y,A),c?t.classBindings=p:t.styleBindings=p}(a,c,t,r,p,o)}}(c,e,p,o),t!==Nr&&Mo(a,p,t)&&function qA(e,t,r,o,a,c,p,y){if(!(3&t.type))return;const A=e.data,F=A[y+1],K=function Kb(e){return!(1&~e)}(F)?XA(A,t,r,a,Bh(F),p):void 0;K_(K)||(K_(c)||function Gb(e){return!(2&~e)}(F)&&(c=XA(A,null,r,a,y,p)),function gE(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let c=-1===o.indexOf("-")?void 0:Xg.DashCase;null==a?e.removeStyle(r,o,c):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),c|=Xg.Important),e.setStyle(r,o,a,c))}}(o,p,Ga(fo(),r),a,c))}(c,c.data[fo()],a,a[fr],e,a[p+1]=function hw(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),lI}function uI(e,t,r,o,a){let c=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],F=Array.isArray(A),K=F?A[1]:A,ee=null===K;let Re=r[a+1];Re===Nr&&(Re=ee?Pr:void 0);let Ge=ee?Ko(Re,o):K===o?Re:void 0;if(F&&!K_(Ge)&&(Ge=Ko(A,o)),K_(Ge)&&(y=Ge,p))return y;const _t=e[a+1];a=p?yd(_t):Bh(_t)}if(null!==t){let A=c?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function K_(e){return void 0!==e}class Cw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),c=this.detach(a);if(a-o>1){const p=this.detach(o);this.attach(o,c),this.attach(a,p)}else this.attach(o,c)}move(t,r){this.attach(r,this.detach(t))}}function cI(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function dI(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function YA(e,t,r,o,a){if(dI(e,t,o,r(o,a)))e.updateValue(o,a);else{const c=e.create(o,a);e.attach(o,c)}}function ZA(e,t,r,o){const a=new Set;for(let c=t;c<=r;c++)a.add(o(c,e.at(c)));return a}class JA{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)}}}class bw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Vi}}function eC(e,t){return t}class Sw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function tC(e,t,r,o,a,c,p,y,A,F,K,ee,Re){Ma("NgControlFlow");const Ge=void 0!==A,_t=Ht(),$t=y?p.bind(_t[Ki][Jr]):p,sn=new Sw(Ge,$t);_t[Dr+e]=sn,Pp(e+1,t,r,o,a,c),Ge&&Pp(e+2,A,F,K,ee,Re)}class Rw extends Cw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Vi}at(t){return this.getLView(t)[Jr].$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 qf(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[un],t)}updateValue(t,r){this.getLView(t)[Jr].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Re)})}(p,e,c.trackByFn),p.updateIndexes(),c.hasEmptyBlock){const y=Ts(),A=0===p.length;if(Mo(o,y,A)){const F=r+2,K=hI(o,F);if(A){const ee=fI(a,F),Re=mo(K,ee.tView.ssrId);np(K,tp(o,ee,void 0,{dehydratedView:Re}),0,_h(ee,Re))}else!function um(e,t){const r=qf(e,t);return void 0!==r&&Yg(r[un],r),r}(K,0)}}}finally{re(t)}}function hI(e,t){return e[t]}function fI(e,t){return Xl(e,t)}function q_(e,t,r,o){const a=Ht(),c=qr(),p=Dr+e,y=a[fr],A=c.firstCreatePass?function xw(e,t,r,o,a,c){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Jv(t,r,A,Cs(p,c)),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,c,a,t,r,o):c.data[p],F=rC(c,a,A,y,t,e);a[p]=F;const K=Ia(A);return Js(A,!0),t0(y,F,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Jg(c,a,F,A),0===function Ic(){return Gn.lFrame.elementDepthCount}()&&Zi(F,a),function Ec(){Gn.lFrame.elementDepthCount++}(),K&&(mh(c,a,A),Qv(c,A,a)),null!==o&&od(a,A),q_}function X_(){let e=Ci();xu()?Nu():(e=e.parent,Js(e,!1));const t=e;(function gl(e){return Gn.skipHydrationRootTNode===e})(t)&&function Ka(){Gn.skipHydrationRootTNode=null}(),function Ys(){Gn.lFrame.elementDepthCount--}();const r=qr();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&aI(r,t,Ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&aI(r,t,Ht(),t.stylesWithoutHost,!1),X_}function pI(e,t,r,o){return q_(e,t,r,o),X_(),pI}let rC=(e,t,r,o,a,c)=>(Ns(!0),Rl(o,a,function Od(){return Gn.lFrame.currentNamespace}()));function Q_(e,t,r){const o=Ht(),a=qr(),c=e+Dr,p=a.firstCreatePass?function kw(e,t,r,o,a){const c=t.consts,p=Cs(c,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Jv(t,r,y,Cs(c,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(c,a,o,t,r):a.data[c];Js(p,!0);const y=iC(a,o,p,e);return o[c]=y,Uu()&&Jg(a,o,y,p),Zi(y,o),Ia(p)&&(mh(a,o,p),Qv(a,p,o)),null!=r&&od(o,p),Q_}function Y_(){let e=Ci();const t=qr();return xu()?Nu():(e=e.parent,Js(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),Y_}function gI(e,t,r){return Q_(e,t,r),Y_(),gI}let iC=(e,t,r,o)=>(Ns(!0),td(t[fr],""));function oC(){return Ht()}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 Lw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function mI(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=uC(t);if(r)return r;const o=t.split("-")[0];if(r=uC(o),r)return r;if("en"===o)return Uw;throw new Ve(701,!1)}function lC(e){return mI(e)[Xp.PluralCase]}function uC(e){return e in qp||(qp[e]=Bn.ng&&Bn.ng.common&&Bn.ng.common.locales&&Bn.ng.common.locales[e]),qp[e]}var Xp=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}(Xp||{});const Qp="en-US";let cC=Qp;function yI(e,t,r,o){const a=Ht(),c=qr(),p=Ci();return II(c,a,a[fr],p,e,t,o),yI}function II(e,t,r,o,a,c,p){const y=Ia(o),F=e.firstCreatePass&&_0(e),K=t[Jr],ee=v0(t);let Re=!0;if(3&o.type||p){const $t=ts(o,t),sn=p?p($t):$t,hn=ee.length,qt=p?$r=>p(di($r[o.index])):o.index;let Ar=null;if(!p&&y&&(Ar=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let c=0;cA?y[A]:null}"string"==typeof p&&(c+=2)}return null}(e,t,a,o.index)),null!==Ar)(Ar.__ngLastListenerFn__||Ar).__ngNextListenerFn__=c,Ar.__ngLastListenerFn__=c,Re=!1;else{c=LC(o,t,K,c,!1);const $r=r.listen(sn,a,c);ee.push(c,$r),F&&F.push(a,qt,hn,hn+1)}}else c=LC(o,t,K,c,!1);const Ge=o.outputs;let _t;if(Re&&null!==Ge&&(_t=Ge[a])){const $t=_t.length;if($t)for(let sn=0;sn<$t;sn+=2){const fi=t[_t[sn]][_t[sn+1]].subscribe(c),fs=ee.length;ee.push(c,fi),F&&F.push(a,o.index,fs,-(fs+1))}}}function VC(e,t,r,o){const a=re(null);try{return yo(6,t,r),!1!==r(o)}catch(c){return am(e,c),!1}finally{yo(7,t,r),re(a)}}function LC(e,t,r,o,a){return function c(p){if(p===Function)return o;ip(e.componentOffset>-1?So(e.index,t):t);let A=VC(t,r,o,p),F=c.__ngNextListenerFn__;for(;F;)A=VC(t,r,F,p)&&A,F=F.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function UC(e=1){return function Vu(e){return(Gn.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,Gn.lFrame.contextLView))[Jr]}(e)}function VS(e,t){let r=null;const o=function nn(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[fr],o));function CI(e){return TI("",e,""),CI}function TI(e,t,r){const o=Ht(),a=Up(o,e,t,r);return a!==Nr&&function pu(e,t,r){const o=Ga(t,e);!function oc(e,t,r){e.setValue(t,r)}(e[fr],o,r)}(o,fo(),a),TI}function DI(e,t,r){km(t)&&(t=t());const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),DI}function yT(e,t){const r=km(e);return r&&e.set(t),r}function bI(e,t){const r=Ht(),o=qr(),a=Ci();return II(o,r,r[fr],a,e,t),bI}function wI(e,t,r,o,a){if(e=oe(e),Array.isArray(e))for(let c=0;c>20;if(Yo(e)||!e.multi){const Ge=new yl(F,a,id),_t=RI(A,t,a?K:K+Re,ee);-1===_t?(Al(zu(y,p),c,A),SI(c,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Ge),p.push(Ge)):(r[_t]=Ge,p[_t]=Ge)}else{const Ge=RI(A,t,K+Re,ee),_t=RI(A,t,K,K+Re),sn=_t>=0&&r[_t];if(a&&!sn||!a&&!(Ge>=0&&r[Ge])){Al(zu(y,p),c,A);const hn=function rR(e,t,r,o,a){const c=new yl(e,r,id);return c.multi=[],c.index=t,c.componentProviders=0,IT(c,a,o&&!r),c}(a?nR:tR,r.length,a,o,F);!a&&sn&&(r[_t].providerFactory=hn),SI(c,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(hn),p.push(hn)}else SI(c,e,Ge>-1?Ge:_t,IT(r[a?_t:Ge],F,!a&&o));!a&&o&&sn&&r[_t].componentProviders++}}}function SI(e,t,r,o){const a=Yo(t),c=function Ss(e){return!!e.useClass}(t);if(a||c){const A=(c?oe(t.useClass):t).prototype.ngOnDestroy;if(A){const F=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const K=F.indexOf(r);-1===K?F.push(r,[o,A]):F[K+1].push(o,A)}else F.push(r,A)}}}function IT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function RI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=qr();if(o.firstCreatePass){const a=us(e);wI(r,o.data,o.blueprint,a,!0),wI(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),c=a.length>0?G0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,c)}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=or({token:e,providedIn:"environment",factory:()=>new e(U(Jo))}),t})();function AT(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function TT(e,t,r){const o=function ho(){const e=Gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Ht();return a[o]===Nr?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 GT{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 GT("17.3.10");let WT=(()=>{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=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const QT=new Q(""),YT=new Q("");let VI,vM=(()=>{var e;class t{constructor(o,a,c){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,VI||(function _M(e){VI=e}(c),c.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:()=>{Eo.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,c){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:c})}whenStable(o,a,c){if(c&&!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,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,c){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Eo),U(ZT),U(YT))},e.\u0275prov=or({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 c,p;return null!==(c=null===(p=VI)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==c?c:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function LI(e){return!!e&&"function"==typeof e.then}function JT(e){return!!e&&"function"==typeof e.subscribe}const eD=new Q("");let UI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c}),this.appInits=null!==(o=Ae(eD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const c of this.appInits){const p=c();if(LI(p))o.push(p);else if(JT(p)){const y=new Promise((A,F)=>{p.subscribe({complete:A,error:F})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(c=>{this.reject(c)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const $I=new Q("");function rD(e,t){return Array.isArray(t)?t.reduce(rD,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ae(zd),this.afterRenderEffectManager=Ae(ad),this.externalTestViews=new Set,this.beforeRender=new $n.B,this.afterTick=new $n.B,this.componentTypes=[],this.components=[],this.isStable=Ae(Mp).hasPendingTasks.pipe((0,yn.T)(o=>!o)),this._injector=Ae(Jo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const c=o instanceof s_;if(!this._injector.get(UI).done)throw!c&&ro(o),new Ve(405,!1);let y;y=c?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),K=y.create(ds.NULL,[],a||y.selector,A),ee=K.location.nativeElement,Re=K.injector.get(QT,null);return null==Re||Re.registerApplication(ee),K.onDestroy(()=>{this.detachView(K.hostView),oy(this.components,K),null==Re||Re.unregisterApplication(ee)}),this._loadComponent(K),K}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Ve(101,!1);const a=re(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(c){this.internalErrorHandler(c)}finally{this.afterTick.next(),this._runningTick=!1,re(a)}}detectChangesInAttachedViews(o){let a=0;const c=this.afterRenderEffectManager;for(;;){if(a===A0)throw new Ve(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++,c.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>BI(p))&&(c.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>BI(p))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;oy(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get($I,[]);[...this._bootstrapListeners,...a].forEach(c=>c(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),()=>oy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Ve(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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function oy(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!BI(e)||function AM(e,t,r){let o;r?(o=0,e[Vn]|=1024):o=64&e[Vn]?0:1,cm(e,t,o)}(e,r,t)}function BI(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 Vs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(Hr(o).declarations).reduce((y,A)=>{const F=Jn(A);return F&&y.push(new bh(F)),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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Ae(Eo),this.applicationRef=Ae(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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Ae(Eo),t=Ae(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new qn.yU,this.initialized=!1,this.zone=Ae(Eo),this.pendingTasks=Ae(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(()=>{Eo.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;Eo.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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const sy=new Q("",{providedIn:"root",factory:()=>Ae(sy,sr.Optional|sr.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new Q("",{providedIn:"root",factory:()=>"USD"}),jI=new Q("");let aD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const c=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Eo(t):e}(null==a?void 0:a.ngZone,function sD(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 c.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function oD(e){return[{provide:Eo,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>c)),y=p.injector.get(Ya,null);return c.runOutsideAngular(()=>{const A=c.onError.subscribe({next:F=>{y.handleError(F)}});p.onDestroy(()=>{oy(this._modules,p),A.unsubscribe()})}),function nD(e,t,r){try{const o=r();return LI(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,c,()=>{const A=p.injector.get(UI);return A.runInitializers(),A.donePromise.then(()=>(function dC(e){"string"==typeof e&&(cC=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(sy,Qp)||Qp),this._moduleDoBootstrap(p),p))})})}bootstrapModule(o,a=[]){const c=rD({},a);return function bM(e,t,r){const o=new Vs(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,c))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!o.instance.ngDoBootstrap)throw new Ve(-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 Ve(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(jI,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)(U(ds))},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const lD=new Q("");function uD(e,t,r=[]){const o=`Platform: ${t}`,a=new Q(o);return(c=[])=>{let p=zI();if(!p||p.injector.get(lD,!1)){const y=[...r,...c,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(lD,!1))throw new Ve(400,!1);(function tD(){!function ye(e){rn=e}(()=>{throw new Ve(600,!1)})})(),Ed=e;const t=e.get(aD);(function dD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function cD(e=[],t){return ds.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:jI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=zI();if(!t)throw new Ve(401,!1);return t}()}}function zI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(aD))&&void 0!==e?e:null}function VM(){}let fD=(()=>{class t{}return t.__NG_ELEMENT_ID__=LM,t})();function LM(e){return function UM(e,t,r){if(As(e)&&!r){const o=So(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Ki],t):null}(Ci(),Ht(),!(16&~e))}class vD{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,c=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 c;return null===t?c=this._itTail:(c=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,c,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,c,a)):t=this._addAfter(new GM(r,o),c,a),t}_verifyReinsertion(t,r,o,a){let c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==c?t=this._reinsertAfter(c,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,c=t._nextRemoved;return null===a?this._removalsHead=c:a._nextRemoved=c,null===c?this._removalsTail=a:c._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 _D),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 _D),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 _D{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 yD(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 c=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,c)}}),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 c=a._prev,p=a._next;return c&&(c._next=p),p&&(p._prev=c),a._next=null,a._prev=null,a}const o=new qM(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 qM{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 ED(){return new qI([new vD])}let qI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ED()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(null!=a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=or({token:e,providedIn:"root",factory:ED}),t})();function AD(){return new XI([new ID])}let XI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||AD()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=or({token:e,providedIn:"root",factory:AD}),t})();const YM=uD(null,"core",[]);let ZM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=wi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=re(null);try{return e()}finally{re(t)}}function kP(e,t){const r=Jn(e),o=t.elementInjector||Lo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=Jn(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:(En,bt,B)=>{"use strict";B.d(bt,{MW:()=>$e,Wp:()=>ut,XU:()=>Oe,gL:()=>X});var g=B(2214),d=B(4438),ge=B(3586);class Oe{constructor(je){return je}}class X{constructor(){return(0,g.Dk)()}}const Ze=new d.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function re(Me){return Me&&1===Me.length?Me[0]:new Oe((0,g.Sx)())},deps:[[new d.Xx1,Ze]]},De={provide:X,deps:[[new d.Xx1,Ze]]};function _e(Me){return(je,Ke)=>{const Ct=Ke.get(d.Agw);(0,g.KO)("angularfire",ge.xv.full,"core"),(0,g.KO)("angularfire",ge.xv.full,"app"),(0,g.KO)("angular",d.xvI.full,Ct.toString());const xt=je.runOutsideAngular(()=>Me(Ke));return new Oe(xt)}}function $e(Me,...je){return(0,d.EmA)([Je,De,{provide:Ze,useFactory:_e(Me),multi:!0,deps:[d.SKi,d.zZn,ge.u0,...je]}])}const ut=(0,ge.S3)(g.Wp,!0)},8737:(En,bt,B)=>{"use strict";B.d(bt,{Nj:()=>qa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>qu,kQ:()=>Fc});var g=B(3586),d=B(4438),ge=B(7440),Oe=B(2214),X=B(467),Ee=B(7852),re=B(1076),Ze=B(8041),Je=B(1635),De=B(1362);const Mt=function ut(){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."}},mt=new re.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."}),Me=new Ze.Vy("@firebase/auth");function Ke(E,...h){Me.logLevel<=Ze.$b.ERROR&&Me.error(`Auth (${Ee.MF}): ${E}`,...h)}function Ct(E,...h){throw Zt(E,...h)}function xt(E,...h){return Zt(E,...h)}function ze(E,h,v){const b=Object.assign(Object.assign({},Mt()),{[h]:v});return new re.FA("auth","Firebase",b).create(h,{appName:E.name})}function Tt(E){return ze(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 mt.create(E,...h)}function Dt(E,h,...v){if(!E)throw Zt(h,...v)}function Be(E){const h="INTERNAL ASSERTION FAILED: "+E;throw Ke(h),new Error(h)}function rn(E,h){E||Be(h)}function pt(){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 de{constructor(h,v){this.shortDelay=h,this.longDelay=v,rn(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,re.jZ)()||(0,re.lV)()}get(){return function W(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function ye(){return"http:"===j()||"https:"===j()}()||(0,re.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(E,h){rn(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class me{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 Ce={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"},at=new de(3e4,6e4);function kt(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function Bt(E,h,v,b){return vn.apply(this,arguments)}function vn(){return(vn=(0,X.A)(function*(E,h,v,b,q={}){return bn(E,q,(0,X.A)(function*(){let pe={},nt={};b&&("GET"===h?nt=b:pe={body:JSON.stringify(b)});const Pt=(0,re.Am)(Object.assign({key:E.config.apiKey},nt)).slice(1),on=yield E._getAdditionalHeaders();return on["Content-Type"]="application/json",E.languageCode&&(on["X-Firebase-Locale"]=E.languageCode),me.fetch()(yn(E,E.config.apiHost,v,Pt),Object.assign({method:h,headers:on,referrerPolicy:"no-referrer"},pe))}))})).apply(this,arguments)}function bn(E,h,v){return $n.apply(this,arguments)}function $n(){return($n=(0,X.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Ce),h);try{const q=new Yn(E),pe=yield Promise.race([v(),q.promise]);q.clearNetworkTimeout();const nt=yield pe.json();if("needConfirmation"in nt)throw Ve(E,"account-exists-with-different-credential",nt);if(pe.ok&&!("errorMessage"in nt))return nt;{const Pt=pe.ok?nt.errorMessage:nt.error.message,[on,Dn]=Pt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===on)throw Ve(E,"credential-already-in-use",nt);if("EMAIL_EXISTS"===on)throw Ve(E,"email-already-in-use",nt);if("USER_DISABLED"===on)throw Ve(E,"user-disabled",nt);const Xn=b[on]||on.toLowerCase().replace(/[_\s]+/g,"-");if(Dn)throw ze(E,Xn,Dn);Ct(E,Xn)}}catch(q){if(q instanceof re.g)throw q;Ct(E,"network-request-failed",{message:String(q)})}})).apply(this,arguments)}function qn(E,h,v,b){return er.apply(this,arguments)}function er(){return(er=(0,X.A)(function*(E,h,v,b,q={}){const pe=yield Bt(E,h,v,b,q);return"mfaPendingCredential"in pe&&Ct(E,"multi-factor-auth-required",{_serverResponse:pe}),pe})).apply(this,arguments)}function yn(E,h,v,b){const q=`${h}${v}?${b}`;return E.config.emulator?ae(E.config,q):`${E.config.apiScheme}://${q}`}function ir(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Yn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(xt(this.auth,"network-request-failed")),at.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Ve(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const q=xt(E,h,b);return q.customData._tokenResponse=v,q}function Ot(E){return void 0!==E&&void 0!==E.enterprise}class Xt{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 ir(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function gn(E,h){return mn.apply(this,arguments)}function mn(){return(mn=(0,X.A)(function*(E,h){return Bt(E,"GET","/v2/recaptchaConfig",kt(E,h))})).apply(this,arguments)}function Gt(){return(Gt=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function kr(E,h){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function _r(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function Zn(){return(Zn=(0,X.A)(function*(E,h=!1){const v=(0,re.Ku)(E),b=yield v.getIdToken(h),q=Sr(b);Dt(q&&q.exp&&q.auth_time&&q.iat,v.auth,"internal-error");const pe="object"==typeof q.firebase?q.firebase:void 0,nt=null==pe?void 0:pe.sign_in_provider;return{claims:q,token:b,authTime:_r(wn(q.auth_time)),issuedAtTime:_r(wn(q.iat)),expirationTime:_r(wn(q.exp)),signInProvider:nt||null,signInSecondFactor:(null==pe?void 0:pe.sign_in_second_factor)||null}})).apply(this,arguments)}function wn(E){return 1e3*Number(E)}function Sr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return Ke("JWT malformed, contained fewer than 3 sections"),null;try{const q=(0,re.u)(v);return q?JSON.parse(q):(Ke("Failed to decode base64 JWT payload"),null)}catch(q){return Ke("Caught error parsing JWT payload as JSON",null==q?void 0:q.toString()),null}}function tr(E){const h=Sr(E);return Dt(h,"internal-error"),Dt(typeof h.exp<"u","internal-error"),Dt(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Er(E,h){return Mi.apply(this,arguments)}function Mi(){return(Mi=(0,X.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof re.g&&function Qr({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 Yr{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 q=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,q)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,X.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,X.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 oe{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=_r(this.lastLoginAt),this.creationTime=_r(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function He(E){return ct.apply(this,arguments)}function ct(){return(ct=(0,X.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),q=yield Er(E,kr(v,{idToken:b}));Dt(null==q?void 0:q.users.length,v,"internal-error");const pe=q.users[0];E._notifyReloadListener(pe);const nt=null!==(h=pe.providerUserInfo)&&void 0!==h&&h.length?Pe(pe.providerUserInfo):[],Pt=function he(E,h){return[...E.filter(b=>!h.some(q=>q.providerId===b.providerId)),...h]}(E.providerData,nt),Xn=!!E.isAnonymous&&!(E.email&&pe.passwordHash||null!=Pt&&Pt.length),jr={uid:pe.localId,displayName:pe.displayName||null,photoURL:pe.photoUrl||null,email:pe.email||null,emailVerified:pe.emailVerified||!1,phoneNumber:pe.phoneNumber||null,tenantId:pe.tenantId||null,providerData:Pt,metadata:new oe(pe.createdAt,pe.lastLoginAt),isAnonymous:Xn};Object.assign(E,jr)})).apply(this,arguments)}function ie(){return(ie=(0,X.A)(function*(E){const h=(0,re.Ku)(E);yield He(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Pe(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 rt(){return(rt=(0,X.A)(function*(E,h){const v=yield bn(E,{},(0,X.A)(function*(){const b=(0,re.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:q,apiKey:pe}=E.config,nt=yn(E,q,"/v1/token",`key=${pe}`),Pt=yield E._getAdditionalHeaders();return Pt["Content-Type"]="application/x-www-form-urlencoded",me.fetch()(nt,{method:"POST",headers:Pt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Sn(){return(Sn=(0,X.A)(function*(E,h){return Bt(E,"POST","/v2/accounts:revokeToken",kt(E,h))})).apply(this,arguments)}class Wn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Dt(h.idToken,"internal-error"),Dt(typeof h.idToken<"u","internal-error"),Dt(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){Dt(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,X.A)(function*(){return v||!b.accessToken||b.isExpired?(Dt(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,X.A)(function*(){const{accessToken:q,refreshToken:pe,expiresIn:nt}=yield function Et(E,h){return rt.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(q,pe,Number(nt))})()}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:q,expirationTime:pe}=v,nt=new Wn;return b&&(Dt("string"==typeof b,"internal-error",{appName:h}),nt.refreshToken=b),q&&(Dt("string"==typeof q,"internal-error",{appName:h}),nt.accessToken=q),pe&&(Dt("number"==typeof pe,"internal-error",{appName:h}),nt.expirationTime=pe),nt}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 Wn,this.toJSON())}_performRefresh(){return Be("not implemented")}}function gr(E,h){Dt("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class ur{constructor(h){var{uid:v,auth:b,stsTokenManager:q}=h,pe=(0,Je.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Yr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=q,this.accessToken=q.accessToken,this.displayName=pe.displayName||null,this.email=pe.email||null,this.emailVerified=pe.emailVerified||!1,this.phoneNumber=pe.phoneNumber||null,this.photoURL=pe.photoURL||null,this.isAnonymous=pe.isAnonymous||!1,this.tenantId=pe.tenantId||null,this.providerData=pe.providerData?[...pe.providerData]:[],this.metadata=new oe(pe.createdAt||void 0,pe.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,X.A)(function*(){const b=yield Er(v,v.stsTokenManager.getToken(v.auth,h));return Dt(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 ni(E){return Zn.apply(this,arguments)}(this,h)}reload(){return function Xe(E){return ie.apply(this,arguments)}(this)}_assign(h){this!==h&&(Dt(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 ur(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){Dt(!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,X.A)(function*(){let q=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),q=!0),v&&(yield He(b)),yield b.auth._persistUserIfCurrent(b),q&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,X.A)(function*(){if((0,Ee.xZ)(h.auth.app))return Promise.reject(Tt(h.auth));const v=yield h.getIdToken();return yield Er(h,function Jt(E,h){return Gt.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,q,pe,nt,Pt,on,Dn,Xn;const jr=null!==(b=v.displayName)&&void 0!==b?b:void 0,Oo=null!==(q=v.email)&&void 0!==q?q:void 0,Zi=null!==(pe=v.phoneNumber)&&void 0!==pe?pe:void 0,sa=null!==(nt=v.photoURL)&&void 0!==nt?nt:void 0,Wd=null!==(Pt=v.tenantId)&&void 0!==Pt?Pt:void 0,ou=null!==(on=v._redirectEventId)&&void 0!==on?on:void 0,Kd=null!==(Dn=v.createdAt)&&void 0!==Dn?Dn:void 0,Yu=null!==(Xn=v.lastLoginAt)&&void 0!==Xn?Xn:void 0,{uid:Zu,emailVerified:Ju,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;Dt(Zu&&Cf,h,"internal-error");const qd=Wn.fromJSON(this.name,Cf);Dt("string"==typeof Zu,h,"internal-error"),gr(jr,h.name),gr(Oo,h.name),Dt("boolean"==typeof Ju,h,"internal-error"),Dt("boolean"==typeof Af,h,"internal-error"),gr(Zi,h.name),gr(sa,h.name),gr(Wd,h.name),gr(ou,h.name),gr(Kd,h.name),gr(Yu,h.name);const Xd=new ur({uid:Zu,auth:h,email:Oo,emailVerified:Ju,displayName:jr,isAnonymous:Af,photoURL:sa,phoneNumber:Zi,tenantId:Wd,stsTokenManager:qd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(Xd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(Xd._redirectEventId=ou),Xd}static _fromIdTokenResponse(h,v,b=!1){return(0,X.A)(function*(){const q=new Wn;q.updateFromServerResponse(v);const pe=new ur({uid:v.localId,auth:h,stsTokenManager:q,isAnonymous:b});return yield He(pe),pe})()}static _fromGetAccountInfoResponse(h,v,b){return(0,X.A)(function*(){const q=v.users[0];Dt(void 0!==q.localId,"internal-error");const pe=void 0!==q.providerUserInfo?Pe(q.providerUserInfo):[],nt=!(q.email&&q.passwordHash||null!=pe&&pe.length),Pt=new Wn;Pt.updateFromIdToken(b);const on=new ur({uid:q.localId,auth:h,stsTokenManager:Pt,isAnonymous:nt}),Dn={uid:q.localId,displayName:q.displayName||null,photoURL:q.photoUrl||null,email:q.email||null,emailVerified:q.emailVerified||!1,phoneNumber:q.phoneNumber||null,tenantId:q.tenantId||null,providerData:pe,metadata:new oe(q.createdAt,q.lastLoginAt),isAnonymous:!(q.email&&q.passwordHash||null!=pe&&pe.length)};return Object.assign(on,Dn),on})()}}const ri=new Map;function xn(E){rn(E instanceof Function,"Expected a class definition");let h=ri.get(E);return h?(rn(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,ri.set(E,h),h)}const yr=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,X.A)(function*(){return!0})()}_set(v,b){var q=this;return(0,X.A)(function*(){q.storage[v]=b})()}_get(v){var b=this;return(0,X.A)(function*(){const q=b.storage[v];return void 0===q?null:q})()}_remove(v){var b=this;return(0,X.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Ei(E,h,v){return`firebase:${E}:${h}:${v}`}class ii{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:q,name:pe}=this.auth;this.fullUserKey=Ei(this.userKey,q.apiKey,pe),this.fullPersistenceKey=Ei("persistence",q.apiKey,pe),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,X.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?ur._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,X.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,X.A)(function*(){if(!v.length)return new ii(xn(yr),h,b);const q=(yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(yield Xn._isAvailable())return Xn});return function(Xn){return Dn.apply(this,arguments)}}()))).filter(Dn=>Dn);let pe=q[0]||xn(yr);const nt=Ei(b,h.config.apiKey,h.name);let Pt=null;for(const Dn of v)try{const Xn=yield Dn._get(nt);if(Xn){const jr=ur._fromJSON(h,Xn);Dn!==pe&&(Pt=jr),pe=Dn;break}}catch{}const on=q.filter(Dn=>Dn._shouldAllowMigration);return pe._shouldAllowMigration&&on.length?(pe=on[0],Pt&&(yield pe._set(nt,Pt.toJSON())),yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(Xn!==pe)try{yield Xn._remove(nt)}catch{}});return function(Xn){return Dn.apply(this,arguments)}}())),new ii(pe,h,b)):new ii(pe,h,b)})()}}function pi(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(wi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Ui(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(St(h))return"Blackberry";if(lt(h))return"Webos";if(or(h))return"Safari";if((h.includes("chrome/")||Hi(h))&&!h.includes("edge/"))return"Chrome";if(gi(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 Ui(E=(0,re.ZQ)()){return/firefox\//i.test(E)}function or(E=(0,re.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Hi(E=(0,re.ZQ)()){return/crios\//i.test(E)}function wi(E=(0,re.ZQ)()){return/iemobile/i.test(E)}function gi(E=(0,re.ZQ)()){return/android/i.test(E)}function St(E=(0,re.ZQ)()){return/blackberry/i.test(E)}function lt(E=(0,re.ZQ)()){return/webos/i.test(E)}function Ut(E=(0,re.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function Z(E=(0,re.ZQ)()){return Ut(E)||gi(E)||lt(E)||St(E)||/windows phone/i.test(E)||wi(E)}function Q(E,h=[]){let v;switch(E){case"Browser":v=pi((0,re.ZQ)());break;case"Worker":v=`${pi((0,re.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ee.MF}/${b}`}class Se{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=pe=>new Promise((nt,Pt)=>{try{nt(h(pe))}catch(on){Pt(on)}});b.onAbort=v,this.queue.push(b);const q=this.queue.length-1;return()=>{this.queue[q]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,X.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const q of v.queue)yield q(h),q.onAbort&&b.push(q.onAbort)}catch(q){b.reverse();for(const pe of b)try{pe()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==q?void 0:q.message})}})()}}function Wt(){return(Wt=(0,X.A)(function*(E,h={}){return Bt(E,"GET","/v2/passwordPolicy",kt(E,h))})).apply(this,arguments)}class Pn{constructor(h){var v,b,q,pe;const nt=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=nt.minPasswordLength)&&void 0!==v?v:6,nt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=nt.maxPasswordLength),void 0!==nt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=nt.containsLowercaseCharacter),void 0!==nt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=nt.containsUppercaseCharacter),void 0!==nt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=nt.containsNumericCharacter),void 0!==nt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=nt.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(q=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==q?q:"",this.forceUpgradeOnSignin=null!==(pe=h.forceUpgradeOnSignin)&&void 0!==pe&&pe,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,q,pe,nt,Pt;const on={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,on),this.validatePasswordCharacterOptions(h,on),on.isValid&&(on.isValid=null===(v=on.meetsMinPasswordLength)||void 0===v||v),on.isValid&&(on.isValid=null===(b=on.meetsMaxPasswordLength)||void 0===b||b),on.isValid&&(on.isValid=null===(q=on.containsLowercaseLetter)||void 0===q||q),on.isValid&&(on.isValid=null===(pe=on.containsUppercaseLetter)||void 0===pe||pe),on.isValid&&(on.isValid=null===(nt=on.containsNumericCharacter)||void 0===nt||nt),on.isValid&&(on.isValid=null===(Pt=on.containsNonAlphanumericCharacter)||void 0===Pt||Pt),on}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,q=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),q&&(v.meetsMaxPasswordLength=h.length<=q)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let q=0;q="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,q,pe){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=q)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=pe))}}class Cr{constructor(h,v,b,q){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=q,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new $i(this),this.idTokenSubscription=new $i(this),this.beforeStateQueue=new Se(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=mt,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=q.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=xn(v)),this._initializationPromise=this.queue((0,X.A)(function*(){var q,pe;if(!b._deleted&&(b.persistenceManager=yield ii.create(b,h),!b._deleted)){if(null!==(q=b._popupRedirectResolver)&&void 0!==q&&q._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(pe=b.currentUser)||void 0===pe?void 0:pe.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,X.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,X.A)(function*(){try{const b=yield kr(v,{idToken:h}),q=yield ur._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(q)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,X.A)(function*(){var b;if((0,Ee.xZ)(v.app)){const Pt=v.app.settings.authIdToken;return Pt?new Promise(on=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Pt).then(on,on))}):v.directlySetCurrentUser(null)}const q=yield v.assertedPersistence.getCurrentUser();let pe=q,nt=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Pt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,on=null==pe?void 0:pe._redirectEventId,Dn=yield v.tryRedirectSignIn(h);(!Pt||Pt===on)&&null!=Dn&&Dn.user&&(pe=Dn.user,nt=!0)}if(!pe)return v.directlySetCurrentUser(null);if(!pe._redirectEventId){if(nt)try{yield v.beforeStateQueue.runMiddleware(pe)}catch(Pt){pe=q,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Pt))}return pe?v.reloadAndSetCurrentUserOrClear(pe):v.directlySetCurrentUser(null)}return Dt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===pe._redirectEventId?v.directlySetCurrentUser(pe):v.reloadAndSetCurrentUserOrClear(pe)})()}tryRedirectSignIn(h){var v=this;return(0,X.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,X.A)(function*(){try{yield He(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 te(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,X.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,X.A)(function*(){if((0,Ee.xZ)(v.app))return Promise.reject(Tt(v));const b=h?(0,re.Ku)(h):null;return b&&Dt(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,X.A)(function*(){if(!b._deleted)return h&&Dt(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,X.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,X.A)(function*(){return(0,Ee.xZ)(h.app)?Promise.reject(Tt(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(Tt(this)):this.queue((0,X.A)(function*(){yield v.assertedPersistence.setPersistence(xn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,X.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,X.A)(function*(){const v=yield function it(E){return Wt.apply(this,arguments)}(h),b=new Pn(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new re.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,X.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),q={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(q.tenantId=v.tenantId),yield function dn(E,h){return Sn.apply(this,arguments)}(v,q)}})()}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,X.A)(function*(){const q=yield b.getOrInitRedirectPersistenceManager(v);return null===h?q.removeCurrentUser():q.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,X.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&xn(h)||v._popupRedirectResolver;Dt(b,v,"argument-error"),v.redirectPersistenceManager=yield ii.create(v,[xn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,X.A)(function*(){var b,q;return v._isInitialized&&(yield v.queue((0,X.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(q=v.redirectUser)||void 0===q?void 0:q._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,X.A)(function*(){if(h===v.currentUser)return v.queue((0,X.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,q){if(this._deleted)return()=>{};const pe="function"==typeof v?v:v.next.bind(v);let nt=!1;const Pt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Dt(Pt,this,"internal-error"),Pt.then(()=>{nt||pe(this.currentUser)}),"function"==typeof v){const on=h.addObserver(v,b,q);return()=>{nt=!0,on()}}{const on=h.addObserver(v);return()=>{nt=!0,on()}}}directlySetCurrentUser(h){var v=this;return(0,X.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 Dt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=Q(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,X.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const q=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();q&&(b["X-Firebase-Client"]=q);const pe=yield h._getAppCheckToken();return pe&&(b["X-Firebase-AppCheck"]=pe),b})()}_getAppCheckToken(){var h=this;return(0,X.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 je(E,...h){Me.logLevel<=Ze.$b.WARN&&Me.warn(`Auth (${Ee.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function Hn(E){return(0,re.Ku)(E)}class $i{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,re.tD)(v=>this.observer=v)}get next(){return Dt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Ai={loadJS:()=>(0,X.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function xr(E){return Ai.loadJS(E)}function Si(E){return`__${E}${Math.floor(1e6*Math.random())}`}class oi{constructor(h){this.type="recaptcha-enterprise",this.auth=Hn(h)}verify(h="verify",v=!1){var b=this;return(0,X.A)(function*(){function pe(){return pe=(0,X.A)(function*(Pt){if(!v){if(null==Pt.tenantId&&null!=Pt._agentRecaptchaConfig)return Pt._agentRecaptchaConfig.siteKey;if(null!=Pt.tenantId&&void 0!==Pt._tenantRecaptchaConfigs[Pt.tenantId])return Pt._tenantRecaptchaConfigs[Pt.tenantId].siteKey}return new Promise(function(){var on=(0,X.A)(function*(Dn,Xn){gn(Pt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(jr=>{if(void 0!==jr.recaptchaKey){const Oo=new Xt(jr);return null==Pt.tenantId?Pt._agentRecaptchaConfig=Oo:Pt._tenantRecaptchaConfigs[Pt.tenantId]=Oo,Dn(Oo.siteKey)}Xn(new Error("recaptcha Enterprise site key undefined"))}).catch(jr=>{Xn(jr)})});return function(Dn,Xn){return on.apply(this,arguments)}}())}),pe.apply(this,arguments)}function nt(Pt,on,Dn){const Xn=window.grecaptcha;Ot(Xn)?Xn.enterprise.ready(()=>{Xn.enterprise.execute(Pt,{action:h}).then(jr=>{on(jr)}).catch(()=>{on("NO_RECAPTCHA")})}):Dn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Pt,on)=>{(function q(Pt){return pe.apply(this,arguments)})(b.auth).then(Dn=>{if(!v&&Ot(window.grecaptcha))nt(Dn,Pt,on);else{if(typeof window>"u")return void on(new Error("RecaptchaVerifier is only supported in browser"));let Xn=function xi(){return Ai.recaptchaEnterpriseScript}();0!==Xn.length&&(Xn+=Dn),xr(Xn).then(()=>{nt(Dn,Pt,on)}).catch(jr=>{on(jr)})}}).catch(Dn=>{on(Dn)})})})()}}function Nn(E,h,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,X.A)(function*(E,h,v,b=!1){const q=new oi(E);let pe;try{pe=yield q.verify(v)}catch{pe=yield q.verify(v,!0)}const nt=Object.assign({},h);return Object.assign(nt,b?{captchaResp:pe}:{captchaResponse:pe}),Object.assign(nt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(nt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),nt})).apply(this,arguments)}function ko(E,h,v,b){return ei.apply(this,arguments)}function ei(){return ei=(0,X.A)(function*(E,h,v,b){var q;if(null!==(q=E._getRecaptchaConfig())&&void 0!==q&&q.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const pe=yield Nn(E,h,v,"getOobCode"===v);return b(E,pe)}return b(E,h).catch(function(){var pe=(0,X.A)(function*(nt){if("auth/missing-recaptcha-token"===nt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Pt=yield Nn(E,h,v,"getOobCode"===v);return b(E,Pt)}return Promise.reject(nt)});return function(nt){return pe.apply(this,arguments)}}())}),ei.apply(this,arguments)}function Or(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function jn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class Ao{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 H.apply(this,arguments)}function H(){return(H=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function fe(E,h){return qe.apply(this,arguments)}function qe(){return(qe=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithPassword",kt(E,h))})).apply(this,arguments)}function Yt(){return(Yt=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}function Cn(){return(Cn=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}class Ln extends Ao{constructor(h,v,b,q=null){super("password",b),this._email=h,this._password=v,this._tenantId=q}static _fromEmailAndPassword(h,v){return new Ln(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Ln(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,X.A)(function*(){switch(v.signInMethod){case"password":return ko(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",fe);case"emailLink":return function Kt(E,h){return Yt.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Ct(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,X.A)(function*(){switch(b.signInMethod){case"password":return ko(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function _n(E,h){return Cn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Ct(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function In(E,h){return br.apply(this,arguments)}function br(){return(br=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithIdp",kt(E,h))})).apply(this,arguments)}class os{constructor(h){var v,b,q,pe,nt,Pt;const on=(0,re.I9)((0,re.hp)(h)),Dn=null!==(v=on.apiKey)&&void 0!==v?v:null,Xn=null!==(b=on.oobCode)&&void 0!==b?b:null,jr=function Do(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!==(q=on.mode)&&void 0!==q?q:null);Dt(Dn&&Xn&&jr,"argument-error"),this.apiKey=Dn,this.operation=jr,this.code=Xn,this.continueUrl=null!==(pe=on.continueUrl)&&void 0!==pe?pe:null,this.languageCode=null!==(nt=on.languageCode)&&void 0!==nt?nt:null,this.tenantId=null!==(Pt=on.tenantId)&&void 0!==Pt?Pt:null}static parseLink(h){const v=function xa(E){const h=(0,re.I9)((0,re.hp)(E)).link,v=h?(0,re.I9)((0,re.hp)(h)).deep_link_id:null,b=(0,re.I9)((0,re.hp)(E)).deep_link_id;return(b?(0,re.I9)((0,re.hp)(b)).link:null)||b||v||h||E}(h);try{return new os(v)}catch{return null}}}let Pr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Ln._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const q=os.parseLink(b);return Dt(q,"argument-error"),Ln._fromEmailAndCode(v,q.code,q.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 Xo(E,h){return bo.apply(this,arguments)}function bo(){return(bo=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signUp",kt(E,h))})).apply(this,arguments)}class ji{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,q=!1){return(0,X.A)(function*(){const pe=yield ur._fromIdTokenResponse(h,b,q),nt=da(b);return new ji({user:pe,providerId:nt,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,X.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const q=da(b);return new ji({user:h,providerId:q,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class P extends re.g{constructor(h,v,b,q){var pe;super(v.code,v.message),this.operationType=b,this.user=q,Object.setPrototypeOf(this,P.prototype),this.customData={appName:h.name,tenantId:null!==(pe=h.tenantId)&&void 0!==pe?pe:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,q){return new P(h,v,b,q)}}function ce(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(pe=>{throw"auth/multi-factor-auth-required"===pe.code?P._fromErrorAndOperation(E,pe,h,b):pe})}function rr(){return(rr=(0,X.A)(function*(E,h,v=!1){const b=yield Er(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return ji._forOperation(E,"link",b)})).apply(this,arguments)}function Qo(){return(Qo=(0,X.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ee.xZ)(b.app))return Promise.reject(Tt(b));const q="reauthenticate";try{const pe=yield Er(E,ce(b,q,h,E),v);Dt(pe.idToken,b,"internal-error");const nt=Sr(pe.idToken);Dt(nt,b,"internal-error");const{sub:Pt}=nt;return Dt(E.uid===Pt,b,"user-mismatch"),ji._forOperation(E,q,pe)}catch(pe){throw"auth/user-not-found"===(null==pe?void 0:pe.code)&&Ct(b,"user-mismatch"),pe}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,X.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b="signIn",q=yield ce(E,b,h),pe=yield ji._fromIdTokenResponse(E,b,q);return v||(yield E._updateCurrentUser(pe.user)),pe})).apply(this,arguments)}function Oa(){return(Oa=(0,X.A)(function*(E,h){return Na(Hn(E),h)})).apply(this,arguments)}function Vl(E){return vr.apply(this,arguments)}function vr(){return(vr=(0,X.A)(function*(E){const h=Hn(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Yo.apply(this,arguments)}function Yo(){return(Yo=(0,X.A)(function*(E,h,v){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),nt=yield ko(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Xo).catch(on=>{throw"auth/password-does-not-meet-requirements"===on.code&&Vl(E),on}),Pt=yield ji._fromIdTokenResponse(b,"signIn",nt);return yield b._updateCurrentUser(Pt.user),Pt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ee.xZ)(E.app)?Promise.reject(Tt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,re.Ku)(E),Pr.credential(h,v)).catch(function(){var b=(0,X.A)(function*(q){throw"auth/password-does-not-meet-requirements"===q.code&&Vl(E),q});return function(q){return b.apply(this,arguments)}}())}function ki(E,h,v,b){return(0,re.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 Lr(){const E=(0,re.ZQ)();return or(E)||Ut(E)}()&&function Ne(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Z(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const q=this.storage.getItem(b),pe=this.localCache[b];q!==pe&&v(b,pe,q)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Pt,on,Dn)=>{this.notifyListeners(Pt,Dn)});const q=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Pt=this.storage.getItem(q);if(v.newValue!==Pt)null!==v.newValue?this.storage.setItem(q,v.newValue):this.storage.removeItem(q);else if(this.localCache[q]===v.newValue&&!b)return}const pe=()=>{const Pt=this.storage.getItem(q);!b&&this.localCache[q]===Pt||this.notifyListeners(q,Pt)},nt=this.storage.getItem(q);!function Y(){return(0,re.lT)()&&10===document.documentMode}()||nt===v.newValue||v.newValue===v.oldValue?pe():setTimeout(pe,10)}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,q)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:q}),!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 q=()=>super._set,pe=this;return(0,X.A)(function*(){yield q().call(pe,v,b),pe.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,q=this;return(0,X.A)(function*(){const pe=yield b().call(q,v);return q.localCache[v]=JSON.stringify(pe),pe})()}_remove(v){var b=()=>super._remove,q=this;return(0,X.A)(function*(){yield b().call(q,v),delete q.localCache[v]})()}}return E.type="LOCAL",E})(),$o=(()=>{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(pe=>pe.isListeningto(v));if(b)return b;const q=new E(v);return this.receivers.push(q),q}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,X.A)(function*(){const q=v,{eventId:pe,eventType:nt,data:Pt}=q.data,on=b.handlersMap[nt];if(null==on||!on.size)return;q.ports[0].postMessage({status:"ack",eventId:pe,eventType:nt});const Dn=Array.from(on).map(function(){var jr=(0,X.A)(function*(Oo){return Oo(q.origin,Pt)});return function(Oo){return jr.apply(this,arguments)}}()),Xn=yield function ya(E){return Promise.all(E.map(function(){var h=(0,X.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)}}()))}(Dn);q.ports[0].postMessage({status:"done",eventId:pe,eventType:nt,response:Xn})})()}_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 Vi(E="",h=10){let v="";for(let b=0;b{const Xn=Vi("",20);pe.port1.start();const jr=setTimeout(()=>{Dn(new Error("unsupported_event"))},b);Pt={messageChannel:pe,onMessage(Oo){const Zi=Oo;if(Zi.data.eventId===Xn)switch(Zi.data.status){case"ack":clearTimeout(jr),nt=setTimeout(()=>{Dn(new Error("timeout"))},3e3);break;case"done":clearTimeout(nt),on(Zi.data.response);break;default:clearTimeout(jr),clearTimeout(nt),Dn(new Error("invalid_response"))}}},q.handlers.add(Pt),pe.port1.addEventListener("message",Pt.onMessage),q.target.postMessage({eventType:h,eventId:Xn,data:v},[pe.port2])}).finally(()=>{Pt&&q.removeMessageHandler(Pt)})})()}}function Ur(){return window}function zl(){return typeof Ur().WorkerGlobalScope<"u"&&"function"==typeof Ur().importScripts}function Ia(){return(Ia=(0,X.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(q){v(q)}}),E.addEventListener("success",(0,X.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 qs(E,h,v){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,X.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,X.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,X.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,X.A)(function*(){let q=0;for(;;)try{const pe=yield b._openDb();return yield v(pe)}catch(pe){if(q++>3)throw pe;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,X.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,X.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,X.A)(function*(q,pe){return{keyProcessed:(yield v._poll()).includes(pe.key)}});return function(q,pe){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,X.A)(function*(q,pe){return["keyChanged"]});return function(q,pe){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,X.A)(function*(){var b,q;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const pe=yield v.sender._send("ping",{},800);pe&&null!==(b=pe[0])&&void 0!==b&&b.fulfilled&&null!==(q=pe[0])&&void 0!==q&&q.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,X.A)(function*(){if(b.sender&&b.activeServiceWorker&&function us(){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,X.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield qs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,X.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var q=this;return(0,X.A)(function*(){return q._withPendingWrite((0,X.A)(function*(){return yield q._withRetries(pe=>qs(pe,v,b)),q.localCache[v]=b,q.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,X.A)(function*(){const q=yield b._withRetries(pe=>function Ad(E,h){return Cd.apply(this,arguments)}(pe,v));return b.localCache[v]=q,q})()}_remove(v){var b=this;return(0,X.A)(function*(){return b._withPendingWrite((0,X.A)(function*(){return yield b._withRetries(q=>Td(q,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,X.A)(function*(){const b=yield v._withRetries(nt=>{const Pt=ja(nt,!1).getAll();return new Ba(Pt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const q=[],pe=new Set;if(0!==b.length)for(const{fbase_key:nt,value:Pt}of b)pe.add(nt),JSON.stringify(v.localCache[nt])!==JSON.stringify(Pt)&&(v.notifyListeners(nt,Pt),q.push(nt));for(const nt of Object.keys(v.localCache))v.localCache[nt]&&!pe.has(nt)&&(v.notifyListeners(nt,null),q.push(nt));return q})()}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,X.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})();Si("rcb"),new de(3e4,6e4);class So extends Ao{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return In(h,this._buildIdpRequest())}_linkToIdToken(h,v){return In(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return In(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 So(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function eo(E,h){return Qo.apply(this,arguments)}(v,new So(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,X.A)(function*(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function On(E,h){return rr.apply(this,arguments)}(v,new So(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,q,pe=!1){this.auth=h,this.resolver=b,this.user=q,this.bypassAuthState=pe,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,X.A)(function*(b,q){h.pendingPromise={resolve:b,reject:q};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(pe){h.reject(pe)}});return function(b,q){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,X.A)(function*(){const{urlResponse:b,sessionId:q,postBody:pe,tenantId:nt,error:Pt,type:on}=h;if(Pt)return void v.reject(Pt);const Dn={auth:v.auth,requestUri:b,sessionId:q,tenantId:nt||void 0,postBody:pe||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(on)(Dn))}catch(Xn){v.reject(Xn)}})()}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:Ct(this.auth,"internal-error")}}resolve(h){rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){rn(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 de(2e3,1e4);const Gn="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,X.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const pe=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(pe)}catch(q){b=()=>Promise.reject(q)}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,X.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const q=yield b.auth._redirectUserForId(h.eventId);if(q)return b.user=q,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,X.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,X.A)(function*(E,h){const v=function ml(E){return Ei(Gn,E.config.apiKey,E.name)}(h),b=function qh(E){return xn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const q="true"===(yield b._get(v));return yield b._remove(v),q})).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,X.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),q=function cs(E,h){return h?xn(h):(Dt(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),nt=yield new wd(b,q,v).execute();return nt&&!v&&(delete nt.user._redirectEventId,yield b._persistUserIfCurrent(nt.user),yield b._setRedirectUser(null,h)),nt})).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 q=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(xt(this.auth,q))}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,X.A)(function*(E,h={}){return Bt(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Io=/^https?/;function Ou(){return Ou=(0,X.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{}Ct(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=pt(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const nt=new URL(E);return""===nt.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&nt.hostname===b}if(!Io.test(v))return!1;if(Md.test(E))return b===E;const q=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+q+"|"+q+")$","i").test(b)}const Dc=new de(3e4,6e4);function bc(){const E=Ur().___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,q,pe;function nt(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(xt(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(q=null===(b=Ur().gapi)||void 0===b?void 0:b.iframes)&&void 0!==q&&q.Iframe)h(gapi.iframes.getContext());else{if(null===(pe=Ur().gapi)||void 0===pe||!pe.load){const Pt=Si("iframefcb");return Ur()[Pt]=()=>{gapi.load?nt():v(xt(E,"network-request-failed"))},xr(`${function mi(){return Ai.gapiScript}()}?onload=${Pt}`).catch(on=>v(on))}nt()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Ur().gapi;return Dt(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 q=(0,X.A)(function*(pe,nt){yield b.restyle({setHideOnLeave:!1});const Pt=xt(E,"network-request-failed"),on=Ur().setTimeout(()=>{nt(Pt)},Zh.get());function Dn(){Ur().clearTimeout(on),pe(b)}b.ping(Dn).then(Dn,()=>{nt(Pt)})});return function(pe,nt){return q.apply(this,arguments)}}()))}),yi.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Lu{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,q,pe){return ia.apply(this,arguments)}function ia(){return(ia=(0,X.A)(function*(E,h,v,b,q,pe){Dt(E.config.authDomain,E,"auth-domain-config-required"),Dt(E.config.apiKey,E,"invalid-api-key");const nt={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ee.MF,eventId:q};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),nt.providerId=h.providerId||"",(0,re.Im)(h.getCustomParameters())||(nt.customParameters=JSON.stringify(h.getCustomParameters()));for(const[Xn,jr]of Object.entries(pe||{}))nt[Xn]=jr}if(h instanceof Us){const Xn=h.getScopes().filter(jr=>""!==jr);Xn.length>0&&(nt.scopes=Xn.join(","))}E.tenantId&&(nt.tid=E.tenantId);const Pt=nt;for(const Xn of Object.keys(Pt))void 0===Pt[Xn]&&delete Pt[Xn];const on=yield E._getAppCheckToken(),Dn=on?`#${Sc}=${encodeURIComponent(on)}`:"";return`${function Rc({config:E}){return E.emulator?ae(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,re.Am)(Pt).slice(1)}${Dn}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=$o,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,q){var pe=this;return(0,X.A)(function*(){var nt;rn(null===(nt=pe.eventManagers[h._key()])||void 0===nt?void 0:nt.manager,"_initialize() not called before _openPopup()");const Pt=yield ra(h,v,b,pt(),q);return function Uu(E,h,v,b=500,q=600){const pe=Math.max((window.screen.availHeight-q)/2,0).toString(),nt=Math.max((window.screen.availWidth-b)/2,0).toString();let Pt="";const on=Object.assign(Object.assign({},rg),{width:b.toString(),height:q.toString(),top:pe,left:nt}),Dn=(0,re.ZQ)().toLowerCase();v&&(Pt=Hi(Dn)?"_blank":v),Ui(Dn)&&(h=h||"http://localhost",on.scrollbars="yes");const Xn=Object.entries(on).reduce((Oo,[Zi,sa])=>`${Oo}${Zi}=${sa},`,"");if(function Kn(E=(0,re.ZQ)()){var h;return Ut(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(Dn)&&"_self"!==Pt)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||"",Pt),new Lu(null);const jr=window.open(h||"",Pt,Xn);Dt(jr,E,"popup-blocked");try{jr.focus()}catch{}return new Lu(jr)}(h,Pt,Vi())})()}_openRedirect(h,v,b,q){var pe=this;return(0,X.A)(function*(){return yield pe._originValidation(h),function _o(E){Ur().location.href=E}(yield ra(h,v,b,pt(),q)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:q,promise:pe}=this.eventManagers[v];return q?Promise.resolve(q):(rn(pe,"If manager is not set, promise should be"),pe)}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,X.A)(function*(){const b=yield function ba(E){return yi.apply(this,arguments)}(h),q=new ta(h);return b.register("authEvent",pe=>(Dt(null==pe?void 0:pe.authEvent,h,"invalid-auth-event"),{status:q.onEvent(pe.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:q},v.iframes[h._key()]=b,q})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},q=>{var pe;const nt=null===(pe=null==q?void 0:q[0])||void 0===pe?void 0:pe[vl];void 0!==nt&&v(!!nt),Ct(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 Z()||or()||Ut()}};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,X.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(){Dt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Jl=(0,re.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,X.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),q=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(q&&q>Jl)return;const pe=null==b?void 0:b.token;rf!==pe&&(rf=pe,yield fetch(E,{method:pe?"POST":"DELETE",headers:pe?{Authorization:`Bearer ${pe}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Vd(E=(0,Ee.Sx)()){const h=(0,Ee.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function ps(E,h){const v=(0,Ee.j6)(E,"auth");if(v.isInitialized()){const q=v.getImmediate(),pe=v.getOptions();if((0,re.bD)(pe,null!=h?h:{}))return q;Ct(q,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,$o]}),b=(0,re.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const pe=new URL(b,location.origin);if(location.origin===pe.origin){const nt=sf(pe.toString());(function Gr(E,h,v){(0,re.Ku)(E).beforeAuthStateChanged(h,v)})(v,nt,()=>nt(v.currentUser)),ki(v,Pt=>nt(Pt))}}const q=(0,re.Tj)("auth");return q&&function sr(E,h,v){const b=Hn(E);Dt(b._canInitEmulator,b,"emulator-config-failed"),Dt(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const q=!(null==v||!v.disableWarnings),pe=Or(h),{host:nt,port:Pt}=function ai(E){const h=Or(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",q=/^(\[[^\]]+\])(:|$)/.exec(b);if(q){const pe=q[1];return{host:pe,port:jn(b.substr(pe.length+1))}}{const[pe,nt]=b.split(":");return{host:pe,port:jn(nt)}}}(h);b.config.emulator={url:`${pe}//${nt}${null===Pt?"":`:${Pt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:nt,port:Pt,protocol:pe.replace(":",""),options:Object.freeze({disableWarnings:q})}),q||function Fo(){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://${q}`),v}(function Pi(E){Ai=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=q=>{const pe=xt("internal-error");pe.customData=q,v(pe)},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 De.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),q=h.getProvider("heartbeat"),pe=h.getProvider("app-check-internal"),{apiKey:nt,authDomain:Pt}=b.options;Dt(nt&&!nt.includes(":"),"invalid-api-key",{appName:b.name});const on={apiKey:nt,authDomain:Pt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Q(E)},Dn=new Cr(b,q,pe,on);return function si(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(xn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(Dn,v),Dn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ee.om)(new De.uA("auth-internal",h=>{const v=Hn(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=B(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:ki(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class qa{constructor(h){return h}}class Al{constructor(){return(0,g.CA)("auth")}}const eu=new d.nKC("angularfire2.auth-instances");function af(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new qa(b)}}const lf={provide:Al,deps:[[new d.Xx1,eu]]},sg={provide:qa,useFactory:function Ud(E,h){const v=(0,g.lR)("auth",E,h);return v&&new qa(v)},deps:[[new d.Xx1,eu],ge.XU]};function Cl(E,...h){return(0,Oe.KO)("angularfire",g.xv.full,"auth"),(0,d.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Vd,!0),qu=(0,g.S3)(Ss,!0)},4262:(En,bt,B)=>{"use strict";B.d(bt,{_7:()=>vh,rJ:()=>p0,H9:()=>sm,x7:()=>lm,GG:()=>r_,aU:()=>um,hV:()=>Zv,BN:()=>b0,mZ:()=>w0});var $e,Le,g=B(3586),d=B(4438),ge=B(7440),Oe=B(8737),X=B(2214),Ee=B(467),re=B(7852),Ze=B(1362),Je=B(8041),De=B(1076),_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fe={};(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(ht,Ue,tt){tt||(tt=0);var gt=Array(16);if("string"==typeof Ue)for(var It=0;16>It;++It)gt[It]=Ue.charCodeAt(tt++)|Ue.charCodeAt(tt++)<<8|Ue.charCodeAt(tt++)<<16|Ue.charCodeAt(tt++)<<24;else for(It=0;16>It;++It)gt[It]=Ue[tt++]|Ue[tt++]<<8|Ue[tt++]<<16|Ue[tt++]<<24;var Nt=ht.g[3],Ye=(Ue=ht.g[0])+(Nt^(tt=ht.g[1])&((It=ht.g[2])^Nt))+gt[0]+3614090360&4294967295;Ye=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=tt+(Ye<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[1]+3905402710&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[2]+606105819&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[3]+3250441966&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[4]+4118548399&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[5]+1200080426&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[6]+2821735955&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[7]+4249261313&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[8]+1770035416&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[9]+2336552879&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[10]+4294925233&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[11]+2304563134&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[12]+1804603682&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[13]+4254626195&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[14]+2792965006&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[15]+1236535329&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(It^Nt&(tt^It))+gt[1]+4129170786&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[6]+3225465664&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[11]+643717713&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[0]+3921069994&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[5]+3593408605&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[10]+38016083&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[15]+3634488961&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[4]+3889429448&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[9]+568446438&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[14]+3275163606&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[3]+4107603335&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[8]+1163531501&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[13]+2850285829&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[2]+4243563512&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[7]+1735328473&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[12]+2368359562&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(tt^It^Nt)+gt[5]+4294588738&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[8]+2272392833&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[11]+1839030562&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[14]+4259657740&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[1]+2763975236&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[4]+1272893353&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[7]+4139469664&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[10]+3200236656&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[13]+681279174&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[0]+3936430074&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[3]+3572445317&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[6]+76029189&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[9]+3654602809&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[12]+3873151461&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[15]+530742520&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[2]+3299628645&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(It^(tt|~Nt))+gt[0]+4096336452&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[7]+1126891415&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[14]+2878612391&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[5]+4237533241&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~Nt))+gt[12]+1700485571&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[3]+2399980690&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[10]+4293915773&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[1]+2240044497&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~Nt))+gt[8]+1873313359&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[15]+4264355552&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[6]+2734768916&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[13]+1309151649&4294967295)<<21&4294967295|Ye>>>11))+((Nt=(Ue=tt+((Ye=Ue+(It^(tt|~Nt))+gt[4]+4149444226&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[11]+3174756917&4294967295)<<10&4294967295|Ye>>>22))^((It=Nt+((Ye=It+(Ue^(Nt|~tt))+gt[2]+718787259&4294967295)<<15&4294967295|Ye>>>17))|~Ue))+gt[9]+3951481745&4294967295,ht.g[0]=ht.g[0]+Ue&4294967295,ht.g[1]=ht.g[1]+(It+(Ye<<21&4294967295|Ye>>>11))&4294967295,ht.g[2]=ht.g[2]+It&4294967295,ht.g[3]=ht.g[3]+Nt&4294967295}function _(ht,Ue){this.h=Ue;for(var tt=[],gt=!0,It=ht.length-1;0<=It;It--){var Nt=0|ht[It];gt&&Nt==Ue||(tt[It]=Nt,gt=!1)}this.g=tt}(function n(ht,Ue){function tt(){}tt.prototype=Ue.prototype,ht.D=Ue.prototype,ht.prototype=new tt,ht.prototype.constructor=ht,ht.C=function(gt,It,Nt){for(var Ye=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);ht[0]=128;for(var Ue=1;UeUe;++Ue)for(var gt=0;32>gt;gt+=8)ht[tt++]=this.g[Ue]>>>gt&255;return ht};var w={};function N(ht){return-128<=ht&&128>ht?function f(ht,Ue){var tt=w;return Object.prototype.hasOwnProperty.call(tt,ht)?tt[ht]:tt[ht]=Ue(ht)}(ht,function(Ue){return new _([0|Ue],0>Ue?-1:0)}):new _([0|ht],0>ht?-1:0)}function z(ht){if(isNaN(ht)||!isFinite(ht))return we;if(0>ht)return ln(z(-ht));for(var Ue=[],tt=1,gt=0;ht>=tt;gt++)Ue[gt]=ht/tt|0,tt*=4294967296;return new _(Ue,0)}var we=N(0),We=N(1),Rt=N(16777216);function tn(ht){if(0!=ht.h)return!1;for(var Ue=0;Ue>>16,ht[Ue]&=65535,Ue++}function Qn(ht,Ue){this.g=ht,this.h=Ue}function Rr(ht,Ue){if(tn(Ue))throw Error("division by zero");if(tn(ht))return new Qn(we,we);if(pn(ht))return Ue=Rr(ln(ht),Ue),new Qn(ln(Ue.g),ln(Ue.h));if(pn(Ue))return Ue=Rr(ht,ln(Ue)),new Qn(ln(Ue.g),Ue.h);if(30=gt.l(ht);)tt=Ii(tt),gt=Ii(gt);var It=zr(tt,1),Nt=zr(gt,1);for(gt=zr(gt,2),tt=zr(tt,2);!tn(gt);){var Ye=Nt.add(gt);0>=Ye.l(ht)&&(It=It.add(tt),Nt=Ye),gt=zr(gt,1),tt=zr(tt,1)}return Ue=zn(ht,It.j(Ue)),new Qn(It,Ue)}for(It=we;0<=ht.l(Ue);){for(tt=Math.max(1,Math.floor(ht.m()/Ue.m())),gt=48>=(gt=Math.ceil(Math.log(tt)/Math.LN2))?1:Math.pow(2,gt-48),Ye=(Nt=z(tt)).j(Ue);pn(Ye)||0>>31;return new _(tt,ht.h)}function zr(ht,Ue){var tt=Ue>>5;Ue%=32;for(var gt=ht.g.length-tt,It=[],Nt=0;Nt>>Ue|ht.i(Nt+tt+1)<<32-Ue:ht.i(Nt+tt);return new _(It,ht.h)}(l=_.prototype).m=function(){if(pn(this))return-ln(this).m();for(var ht=0,Ue=1,tt=0;tt(ht=ht||10)||36>>0).toString(ht);if(tn(tt=It))return Nt+gt;for(;6>Nt.length;)Nt="0"+Nt;gt=Nt+gt}},l.i=function(ht){return 0>ht?0:ht>>16)+(this.i(It)>>>16)+(ht.i(It)>>>16);gt=Ye>>>16,tt[It]=(Ye&=65535)<<16|(Nt&=65535)}return new _(tt,-2147483648&tt[tt.length-1]?-1:0)},l.j=function(ht){if(tn(this)||tn(ht))return we;if(pn(this))return pn(ht)?ln(this).j(ln(ht)):ln(ln(this).j(ht));if(pn(ht))return ln(this.j(ln(ht)));if(0>this.l(Rt)&&0>ht.l(Rt))return z(this.m()*ht.m());for(var Ue=this.g.length+ht.g.length,tt=[],gt=0;gt<2*Ue;gt++)tt[gt]=0;for(gt=0;gt>>16,Ye=65535&this.i(gt),Pl=ht.i(It)>>>16,ac=65535&ht.i(It);tt[2*gt+2*It]+=Ye*ac,lr(tt,2*gt+2*It),tt[2*gt+2*It+1]+=Nt*ac,lr(tt,2*gt+2*It+1),tt[2*gt+2*It+1]+=Ye*Pl,lr(tt,2*gt+2*It+1),tt[2*gt+2*It+2]+=Nt*Pl,lr(tt,2*gt+2*It+2)}for(gt=0;gt(Ue=Ue||10)||36Nt?(Nt=z(Math.pow(Ue,Nt)),gt=gt.j(Nt).add(z(Ye))):gt=(gt=gt.j(tt)).add(z(Ye))}return gt},$e=Fe.Integer=_}).apply(typeof _e<"u"?_e:typeof self<"u"?self:typeof window<"u"?window:{});var ut,st,Mt,mt,vt,Me,je,Ke,Ct,Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ft={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,k,G){return m==Array.prototype||m==Object.prototype||(m[k]=G.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Qe&&Qe];for(var k=0;k{throw m},0)}function Ye(){var m=hm;let k=null;return m.g&&(k=m.g,m.g=m.g.next,m.g||(m.h=null),k.next=null),k}var ac=new class zn{constructor(k,G){this.i=k,this.j=G,this.h=0,this.g=null}get(){let k;return 0new S0,m=>m.reset());class S0{constructor(){this.next=this.g=this.h=null}set(k,G){this.h=k,this.g=G,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(k,G){const Ie=ac.get();Ie.set(k,G),this.h?this.h.next=Ie:this.g=Ie,this.h=Ie}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(R0)}};var R0=()=>{for(var m;m=Ye();){try{m.h.call(m.g)}catch(G){Nt(G)}var k=ac;k.j(m),100>k.h&&(k.h++,m.next=k.g,k.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,k){this.type=m,this.g=this.target=k,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,k=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const G=()=>{};w.addEventListener("test",G,k),w.removeEventListener("test",G,k)}catch{}return m}();function Ih(m,k){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 G=this.type=m.type,Ie=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=k,k=m.relatedTarget){if(Ii){e:{try{Rr(k.nodeName);var wt=!0;break e}catch{}wt=!1}wt||(k=null)}}else"mouseover"==G?k=m.fromElement:"mouseout"==G&&(k=m.toElement);this.relatedTarget=k,Ie?(this.clientX=void 0!==Ie.clientX?Ie.clientX:Ie.pageX,this.clientY=void 0!==Ie.clientY?Ie.clientY:Ie.pageY,this.screenX=Ie.screenX||0,this.screenY=Ie.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)}}tn(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,k,G,Ie,wt){this.listener=m,this.proxy=null,this.src=k,this.type=G,this.capture=!!Ie,this.ha=wt,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,k){var G=k.type;if(G in m.g){var jt,Ie=m.g[G],wt=Array.prototype.indexOf.call(Ie,k,void 0);(jt=0<=wt)&&Array.prototype.splice.call(Ie,wt,1),jt&&(ap(k),0==m.g[G].length&&(delete m.g[G],m.h--))}}function gm(m,k,G,Ie){for(var wt=0;wt>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(k){return m.handleEvent(k)}),m[Ah])}function ns(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function jo(m,k){var G,Ie=m.F;if(Ie)for(G=[];Ie;Ie=Ie.F)G.push(Ie);if(m=m.M,Ie=k.type||k,"string"==typeof k)k=new mo(k,m);else if(k instanceof mo)k.target=k.target||m;else{var wt=k;gt(k=new mo(Ie,m),wt)}if(wt=!0,G)for(var jt=G.length-1;0<=jt;jt--){var Mn=k.g=G[jt];wt=Ch(Mn,Ie,!0,k)&&wt}if(wt=Ch(Mn=k.g=m,Ie,!0,k)&&wt,wt=Ch(Mn,Ie,!1,k)&&wt,G)for(jt=0;jt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const k=m.h;m.h=null,m.m.apply(null,k)}tn(ns,gu),ns.prototype[Eh]=!0,ns.prototype.removeEventListener=function(m,k,G,Ie){_m(this,m,k,G,Ie)},ns.prototype.N=function(){if(ns.aa.N.call(this),this.i){var k,m=this.i;for(k in m.g){for(var G=m.g[k],Ie=0;IeIe.length)){var wt=Ie[1];if(Array.isArray(wt)&&!(1>wt.length)){var jt=wt[0];if("noop"!=jt&&"stop"!=jt&&"close"!=jt)for(var Mn=1;Mnk.length?Sm:(k=k.slice(Ie,Ie+G),m.C=Ie+G,k))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,k){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(We(m.ba,m),k)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||H0(m.j,m)}function Iu(m){vp(m);var k=m.M;k&&"function"==typeof k.ma&&k.ma(),m.M=null,Tm(m.U),m.g&&(k=m.g,m.g=null,k.abort(),k.ma())}function Rh(m,k){try{var G=m.j;if(0!=G.G&&(G.g==m||Mm(G.h,m)))if(!m.K&&Mm(G.h,m)&&3==G.G){try{var Ie=G.Da.g.parse(k)}catch{Ie=null}if(Array.isArray(Ie)&&3==Ie.length){var wt=Ie;if(0==wt[0]){e:if(!G.u){if(G.g){if(!(G.g.F+3e3wt[2]&&G.F&&0==G.v&&!G.C&&(G.C=hp(We(G.Za,G),6e3));if(1>=E_(G.h)&&G.ca){try{G.ca()}catch{}G.ca=void 0}}else Au(G,11)}else if((m.K||G.g==m)&&Vh(G),!lr(k))for(wt=G.Da.g.parse(k),k=0;khs)&&(3!=hs||this.g&&(this.h.h||this.g.oa()||S_(this.g)))){this.J||4!=hs||7==k||cc(),vp(this);var G=this.g.Z();this.X=G;t:if(v_(this)){var Ie=S_(this.g);m="";var wt=Ie.length,jt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Mn="";break t}this.h.i=new w.TextDecoder}for(k=0;k=m.j}function E_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,k){return m.h?m.h==k:!!m.g&&m.g.has(k)}function Mh(m,k){m.g?m.g.add(k):m.h=k}function _p(m,k){m.h&&m.h==k?m.h=null:m.g&&m.g.has(k)&&m.g.delete(k)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let k=m.i;for(const G of m.g.values())k=k.concat(G.D);return k}return pn(m.i)}function A_(m,k){if(m.forEach&&"function"==typeof m.forEach)m.forEach(k,void 0);else if(N(m)||"string"==typeof m)Array.prototype.forEach.call(m,k,void 0);else for(var G=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(N(m)||"string"==typeof m){var k=[];m=m.length;for(var G=0;Gk)throw Error("Bad port number "+k);m.s=k}else m.s=null}function Om(m,k,G){k instanceof Nh?(m.i=k,function b_(m,k){k&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(G,Ie){var wt=Ie.toLowerCase();Ie!=wt&&(km(this,Ie),Fm(this,wt,G))},m)),m.j=k}(m.i,m.h)):(G||(k=gd(k,JE)),m.i=new Nh(k,m.h))}function Xi(m,k,G){m.i.set(k,G)}function Ph(m){return Xi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function xh(m,k){return m?k?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,k,G){return"string"==typeof m?(m=encodeURI(m).replace(k,k0),G&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function k0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],k=this.j;k&&m.push(gd(k,yp,!0),":");var G=this.g;return(G||"file"==k)&&(m.push("//"),(k=this.o)&&m.push(gd(k,yp,!0),"@"),m.push(encodeURIComponent(String(G)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(G=this.s)&&m.push(":",String(G))),(G=this.l)&&(this.g&&"/"!=G.charAt(0)&&m.push("/"),m.push(gd(G,"/"==G.charAt(0)?D_:T_,!0))),(G=this.i.toString())&&m.push("?",G),(G=this.m)&&m.push("#",gd(G,eA)),m.join("")};var yp=/[#\/\?@]/g,T_=/[#\?:]/g,D_=/[#\?]/g,JE=/[#\?@]/g,eA=/#/g;function Nh(m,k){this.h=this.g=null,this.i=m||null,this.j=!!k}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function O0(m,k){if(m){m=m.split("&");for(var G=0;G{}),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;V0(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 k=m.value?m.value:new Uint8Array(0);(k=this.v.decode(k,{stream:!m.done}))&&(this.response=this.responseText+=k)}m.done?Ap(this):Cp(this),3==this.readyState&&V0(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,k){this.u.append(m,k)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],k=this.h.entries();for(var G=k.next();!G.done;)m.push((G=G.value)[0]+": "+G[1]),G=k.next();return m.join("\r\n")},Object.defineProperty(Vm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),tn(vo,ns);var rA=/^https?$/i,iA=["POST","PUT"];function L0(m,k){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=k,m.m=5,U0(m),Um(m)}function U0(m){m.A||(m.A=!0,jo(m,"complete"),jo(m,"error"))}function $0(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(jo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Mn=m.Z();e:switch(Mn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break e;default:k=!1}var G;if(!(G=k)){var Ie;if(Ie=0===Mn){var wt=String(m.D).match(C_)[1]||null;!wt&&w.self&&w.self.location&&(wt=w.self.location.protocol.slice(0,-1)),Ie=!rA.test(wt?wt.toLowerCase():"")}G=Ie}if(G)jo(m,"complete"),jo(m,"success");else{m.m=6;try{var jt=2{}:null;m.g=null,m.v=null,k||jo(m,"ready");try{G.onreadystatechange=Ie}catch{}}}function B0(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,k,G){return G&&G.internalChannelParams&&G.internalChannelParams[m]||k}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 tA,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&&0hi)jt=Math.max(0,wt[io].g-100),Li=!1;else try{nA(rs,Mn,"req"+hi+"_")}catch{Ie&&Ie(rs)}}if(Li){Ie=Mn.join("&");break e}}}return m=m.i.splice(0,G),k.D=m,Ie}function Bm(m){if(!m.g&&!m.u){m.Y=1;var k=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(k,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(We(m.Fa,m),N_(m,m.v)),m.v++,0))}function Dp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function z0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var k=nl(m.qa);Xi(k,"RID","rpc"),Xi(k,"SID",m.K),Xi(k,"AID",m.T),Xi(k,"CI",m.F?"0":"1"),!m.F&&m.ja&&Xi(k,"TO",m.ja),Xi(k,"TYPE","xmlhttp"),kh(m,k),m.m&&m.o&&Tp(k,m.m,m.o),m.L&&(m.g.I=m.L);var G=m.g;m=m.ia,G.L=1,G.v=Ph(nl(k)),G.m=null,G.P=!0,m_(G,m)}function Vh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function H0(m,k){var G=null;if(m.g==k){Vh(m),Dp(m),m.g=null;var Ie=2}else{if(!Mm(m.h,k))return;G=k.D,_p(m.h,k),Ie=1}if(0!=m.G)if(k.o)if(1==Ie){G=k.m?k.m.length:0,k=Date.now()-k.F;var wt=m.B;jo(Ie=dp(),new cd(Ie,G)),$m(m)}else Bm(m);else if(3==(wt=k.s)||0==wt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=k.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(We(m.Ga,m,k),N_(m,m.B)),m.B++,0)))}(m,k)||2==Ie&&jm(m)))switch(G&&0{Ie.abort(),fc(0,0,!1,k)},1e4);fetch(m,{signal:Ie.signal}).then(jt=>{clearTimeout(wt),fc(0,0,!!jt.ok,k)}).catch(()=>{clearTimeout(wt),fc(0,0,!1,k)})}(Ie.toString(),G)}else uo(2);m.G=0,m.l&&m.l.sa(k),bp(m),P_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const k=Pm(m.h);(0!=k.length||0!=m.i.length)&&(ln(m.ka,k),ln(m.ka,m.i),m.h.i.length=0,pn(m.i),m.i.length=0),m.l.ra()}}function O_(m,k,G){var Ie=G instanceof dc?nl(G):new dc(G);if(""!=Ie.g)k&&(Ie.g=k+"."+Ie.g),pd(Ie,Ie.s);else{var wt=w.location;Ie=wt.protocol,k=k?k+"."+wt.hostname:wt.hostname,wt=+wt.port;var jt=new dc(null);Ie&&fd(jt,Ie),k&&(jt.g=k),wt&&pd(jt,wt),G&&(jt.l=G),Ie=jt}return k=m.ya,(G=m.D)&&k&&Xi(Ie,G,k),Xi(Ie,"VER",m.la),kh(m,Ie),Ie}function k_(m,k,G){if(k&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(k=new vo(m.Ca&&!m.pa?new Ep({eb:G}):m.pa)).Ha(m.J),k}function Lh(){}function wp(){}function Fs(m,k){ns.call(this),this.g=new R_(k),this.l=m,this.h=k&&k.messageUrlParams||null,m=k&&k.messageHeaders||null,k&&k.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=k&&k.initMessageHeaders||null,k&&k.messageContentType&&(m?m["X-WebChannel-Content-Type"]=k.messageContentType:m={"X-WebChannel-Content-Type":k.messageContentType}),k&&k.va&&(m?m["X-WebChannel-Client-Profile"]=k.va:m={"X-WebChannel-Client-Profile":k.va}),this.g.S=m,(m=k&&k.Sb)&&!lr(m)&&(this.g.m=m),this.v=k&&k.supportsCrossDomainXhr||!1,this.u=k&&k.sendRawJson||!1,(k=k&&k.httpSessionIdParam)&&!lr(k)&&(this.g.D=k,null!==(m=this.h)&&k in m&&k in(m=this.h)&&delete m[k]),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 k=m.__sm__;if(k){e:{for(const G in k){m=G;break e}m=void 0}(this.i=m)&&(m=this.i,k=null!==k&&m in k?k[m]:void 0),this.data=k}else this.data=m}function V_(){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,k,G,Ie){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);k=k?k.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=We(this.Ea,this);try{this.B=!0,this.g.open(k,String(m),!0),this.B=!1}catch(jt){return void L0(this,jt)}if(m=G||"",G=new Map(this.headers),Ie)if(Object.getPrototypeOf(Ie)===Object.prototype)for(var wt in Ie)G.set(wt,Ie[wt]);else{if("function"!=typeof Ie.keys||"function"!=typeof Ie.get)throw Error("Unknown input type for opt_headers: "+String(Ie));for(const jt of Ie.keys())G.set(jt,Ie.get(jt))}Ie=Array.from(G.keys()).find(jt=>"content-type"==jt.toLowerCase()),wt=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(iA,k,void 0))||Ie||wt||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[jt,Mn]of G)this.g.setRequestHeader(jt,Mn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{B0(this),this.u=!0,this.g.send(m),this.u=!1}catch(jt){L0(this,jt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,jo(this,"complete"),jo(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?$0(this):this.bb())},l.bb=function(){$0(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(We(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),z0(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=Lh.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,k){return new Fs(m,k)},tn(Fs,ns),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 k=this.g;if("string"==typeof m){var G={};G.__data__=m,m=G}else this.u&&((G={}).__data__=Dh(m),m=G);k.i.push(new y_(k.Ya++,m)),3==k.G&&$m(k)},Fs.prototype.N=function(){this.g.l=null,delete this.j,M_(this.g),delete this.g,Fs.aa.N.call(this)},tn(F_,tl),tn(V_,ld),tn(vd,Lh),vd.prototype.ua=function(){jo(this.g,"a")},vd.prototype.ta=function(m){jo(this.g,new F_(m))},vd.prototype.sa=function(m){jo(this.g,new V_)},vd.prototype.ra=function(){jo(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,Ct=ft.createWebChannelTransport=function(){return new wp},Ke=ft.getStatEventTarget=function(){return dp()},je=ft.Event=vu,Me=ft.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,vt=ft.ErrorCode=pp,f_.COMPLETE="complete",mt=ft.EventType=f_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",ns.prototype.listen=ns.prototype.K,Mt=ft.WebChannel=ad,st=ft.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,ut=ft.XhrIo=vo}).apply(typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{});const xt="@firebase/firestore";class ze{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}}ze.UNAUTHENTICATED=new ze(null),ze.GOOGLE_CREDENTIALS=new ze("google-credentials-uid"),ze.FIRST_PARTY=new ze("first-party-uid"),ze.MOCK_USER=new ze("mock-user");let Tt="10.12.1";const Vt=new Je.Vy("@firebase/firestore");function Zt(){return Vt.logLevel}function Be(l,...n){if(Vt.logLevel<=Je.$b.DEBUG){const i=n.map(ye);Vt.debug(`Firestore (${Tt}): ${l}`,...i)}}function rn(l,...n){if(Vt.logLevel<=Je.$b.ERROR){const i=n.map(ye);Vt.error(`Firestore (${Tt}): ${l}`,...i)}}function pt(l,...n){if(Vt.logLevel<=Je.$b.WARN){const i=n.map(ye);Vt.warn(`Firestore (${Tt}): ${l}`,...i)}}function ye(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function j(l="Unexpected state"){const n=`FIRESTORE (${Tt}) INTERNAL ASSERTION FAILED: `+l;throw rn(n),new Error(n)}function W(l,n){l||j()}function de(l,n){return l}const ae={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 me extends De.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ce{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class at{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class kt{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(ze.UNAUTHENTICATED))}shutdown(){}}class Bt{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 vn{constructor(n){this.t=n,this.currentUser=ze.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=z=>this.i!==u?(u=this.i,i(z)):Promise.resolve();let _=new Ce;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Ce,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const z=_;n.enqueueRetryable((0,Ee.A)(function*(){yield z.promise,yield f(s.currentUser)}))},N=z=>{Be("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=z,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(z=>N(z)),setTimeout(()=>{if(!this.auth){const z=this.t.getImmediate({optional:!0});z?N(z):(Be("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Ce)}},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?(W("string"==typeof s.accessToken),new at(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 ze(n)}}class bn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=ze.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 $n{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new bn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(ze.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class qn{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 er{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?(W("string"==typeof i.token),this.R=i.token,new qn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ir(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 yt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Xt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Xt.fromMillis(Date.now())}static fromDate(n){return Xt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Xt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Ve(this.nanoseconds,n.nanoseconds):Ve(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 en{constructor(n){this.timestamp=n}static fromTimestamp(n){return new en(n)}static min(){return new en(new Xt(0,0))}static max(){return new en(new Xt(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 Ir{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===Ir.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ir?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 gn extends Ir{construct(n,i,s){return new gn(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 me(ae.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new gn(i)}static emptyPath(){return new gn([])}}const mn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Jt extends Ir{construct(n,i,s){return new Jt(n,i,s)}static isValidIdentifier(n){return mn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Jt.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Jt(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new me(ae.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===gn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return gn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Gt(new gn(n.slice()))}}class Sr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Sr(en.min(),Gt.empty(),-1)}static max(){return new Sr(en.max(),Gt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Gt.comparator(l.documentKey,n.documentKey),0!==i?i:Ve(l.largestBatchId,n.largestBatchId))}const Er="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Mi{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Qr(l){return Yr.apply(this,arguments)}function Yr(){return(Yr=(0,Ee.A)(function*(l){if(l.code!==ae.FAILED_PRECONDITION||l.message!==Er)throw l;Be("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class oe{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 oe((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 oe?i:oe.resolve(i)}catch(i){return oe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.reject(i)}static resolve(n){return new oe((i,s)=>{i(n)})}static reject(n){return new oe((i,s)=>{s(n)})}static waitFor(n){return new oe((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},N=>s(N))}),_=!0,f===u&&i()})}static or(n){let i=oe.resolve(!1);for(const s of n)i=i.next(u=>u?oe.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 oe((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let N=0;N{_[z]=se,++w,w===f&&s(_)},se=>u(se))}})}static doWhile(n,i){return new oe((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function Pe(l){return"IndexedDbTransactionError"===l.name}let ur=(()=>{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 ri(l){return null==l}function xn(l){return 0===l&&1/l==-1/0}function xi(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function mi(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ti(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class mr{constructor(n,i){this.comparator=n,this.root=i||Nn.EMPTY}insert(n,i){return new mr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Nn.BLACK,null,null))}remove(n){return new mr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Nn.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 oi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new oi(this.root,n,this.comparator,!1)}getReverseIterator(){return new oi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new oi(this.root,n,this.comparator,!0)}}class oi{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 Nn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:Nn.RED,this.left=null!=u?u:Nn.EMPTY,this.right=null!=f?f:Nn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new Nn(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 Nn.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 Nn.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,Nn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Nn.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)}}Nn.EMPTY=null,Nn.RED=!0,Nn.BLACK=!1,Nn.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,f){return this}insert(n,i,s){return new Nn(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 kn{constructor(n){this.comparator=n,this.data=new mr(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 ko(this.data.getIterator())}getIteratorFrom(n){return new ko(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 kn)||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 kn(this.comparator);return i.data=n,i}}class ko{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Bi{constructor(n){this.fields=n,n.sort(Jt.comparator)}static empty(){return new Bi([])}unionWith(n){let i=new kn(Jt.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Bi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return yt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class is extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class si{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 is("Invalid base64 string: "+f):f}}(n);return new si(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nue(i,n))}function fe(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return Ve(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return Ve(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=ai(f.integerValue||f.doubleValue),N=ai(_.integerValue||_.doubleValue);return wN?1:w===N?0:isNaN(w)?isNaN(N)?0:-1:1}(l,n);case 3:return qe(l.timestampValue,n.timestampValue);case 4:return qe(Co(l),Co(n));case 5:return Ve(l.stringValue,n.stringValue);case 6:return function(f,_){const w=jn(f),N=jn(_);return w.compareTo(N)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),N=_.split("/");for(let z=0;zn.mapValue.fields[i]=zt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=zt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function Kt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class In{constructor(n){this.value=n}static empty(){return new In({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const N=this.getFieldsMap(i);this.applyChanges(N,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=zt(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());Lt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return ue(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 In(zt(this.value))}}function br(l){const n=[];return mi(l.fields,(i,s)=>{const u=new Jt([i]);if(Lt(s)){const f=br(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new Bi(n)}class cr{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 cr(n,0,en.min(),en.min(),en.min(),In.empty(),0)}static newFoundDocument(n,i,s,u){return new cr(n,1,i,en.min(),s,u,0)}static newNoDocument(n,i){return new cr(n,2,i,en.min(),en.min(),In.empty(),0)}static newUnknownDocument(n,i){return new cr(n,3,i,en.min(),en.min(),In.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(en.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=In.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=In.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=en.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 cr&&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 cr(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 nr{constructor(n,i){this.position=n,this.inclusive=i}}function li(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 Wr extends Go{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Wr(n,i)}matches(n){return Wo(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 Wo(l){return"and"===l.op}function Ko(l){return function Do(l){for(const n of l.filters)if(n instanceof Wr)return!1;return!0}(l)&&Wo(l)}function xa(l){if(l instanceof dr)return l.field.canonicalString()+l.op.toString()+ar(l.value);if(Ko(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function os(l,n){return l instanceof dr?(s=l,(u=n)instanceof dr&&s.op===u.op&&s.field.isEqual(u.field)&&ue(s.value,u.value)):l instanceof Wr?function(s,u){return u instanceof Wr&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&os(_,u.filters[w]),!0)}(l,n):void j();var s,u}function Pr(l){return l instanceof dr?`${(i=l).field.canonicalString()} ${i.op} ${ar(i.value)}`:l instanceof Wr?function(i){return i.op.toString()+" {"+i.getFilters().map(Pr).join(" ,")+"}"}(l):"Filter";var i}class oo extends dr{constructor(n,i,s){super(n,i,s),this.key=Gt.fromName(s.referenceValue)}matches(n){const i=Gt.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=>Gt.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 ke(i)&&M(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&&M(this.value.arrayValue,i)}}class ss extends dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(M(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!M(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!(!ke(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>M(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=de(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(","),ri(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>ar(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>ar(s)).join(",")),n.ue=i}return n.ue}function Xo(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 kn(Jt.comparator);return _.filters.forEach(N=>{N.getFlattenedFilters().forEach(z=>{z.isInequality()&&(w=w.add(z.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new ci(f,s))}),i.has(Jt.keyField().canonicalString())||n.ce.push(new ci(Jt.keyField(),s))}return n.ce}function On(l){const n=de(l);return n.le||(n.le=function Ji(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 ci(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new nr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new nr(l.startAt.position,l.startAt.inclusive):null;return qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,nn(l))),n.le}function eo(l,n,i){return new L(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Qo(l,n){return Xo(On(l),On(n))&&l.limitType===n.limitType}function Na(l){return`${bs(On(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=>Pr(u)).join(", ")}]`),ri(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=>ar(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>ar(u)).join(",")),`Target(${s})`}(On(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):Gt.isDocumentKey(s.path)?s.path.isEqual(f):s.path.isImmediateParentOf(f)}(l,n)&&function(s,u){for(const f of nn(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,N){const z=li(_,w,N);return _.inclusive?z<=0:z<0}(s.startAt,nn(s),u)||s.endAt&&!function(_,w,N){const z=li(_,w,N);return _.inclusive?z>=0:z>0}(s.endAt,nn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of nn(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()?Gt.comparator(n.key,i.key):function(f,_,w){const N=_.data.field(f),z=w.data.field(f);return null!==N&&null!==z?fe(N,z):j()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return j()}}class as{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 ti(this.inner)}size(){return this.innerSize}}const ha=new mr(Gt.comparator);function Jn(){return ha}const Oi=new mr(Gt.comparator);function Ti(...l){let n=Oi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Oi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Hr(){return ls()}function ll(){return ls()}function ls(){return new as(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new mr(Gt.comparator),Vl=new kn(Gt.comparator);function vr(...l){let n=Vl;for(const i of l)n=n.add(i);return n}const ul=new kn(Ve);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:xn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function Rn(l){return"number"==typeof l&&Number.isInteger(l)&&!xn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Ll(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&&Fo(f)&&(f=Ao(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return Ae(_)&&Ae(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof Zo?Ae(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 Yo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>ue(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=>!ue(u,s));return{arrayValue:{values:i}}}class Zo extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return ai(l.integerValue||l.doubleValue)}function $l(l){return ke(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Di{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Di}static exists(n){return new Di(void 0,n)}static updateTime(n){return new Di(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 V(l.key,Di.none()):new Ms(l.key,l.data,Di.none());{const i=l.data,s=In.empty();let u=new kn(Jt.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 Bi(u.toArray()),Di.none())}}function Va(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),N=Es(u.fieldTransforms,f,_.transformResults);w.setAll(N),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),N=f.data;N.setAll(Hs(u)),N.setAll(w),f.convertToFoundDocument(_.version,N).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=f.value.clone(),se=D(f.fieldTransforms,N,_);return z.setAll(se),_.convertToFoundDocument(_.version,z).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=D(f.fieldTransforms,N,_),se=_.data;return se.setAll(Hs(f)),se.setAll(z),_.convertToFoundDocument(_.version,se).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(we=>we.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=In.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&&yt(s,u,(f,_)=>function Jo(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?yt(s.elements,u.elements,ue):s instanceof Zo&&u instanceof Zo?ue(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;W(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 N=ga(_,w);null!==N&&s.set(u.key,N),_.isValidDocument()||_.convertToNoDocument(en.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),vr())}isEqual(n){return this.batchId===n.batchId&&yt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&yt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class le{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 f=n.mutations;for(let _=0;_=8)throw new Kr(`Invalid padding: ${i}`);if(s<0)throw new Kr(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Kr(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Kr(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=$e.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply($e.fromNumber(s)));return 1===u.compare(ki)&&(u=new $e([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=Gr(n),[s,u]=un(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=vr(),i=vr(),s=vr();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:j()}}),new _i(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=La()}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 Uo{constructor(n){this.Le=n,this.Be=new Map,this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Ve)}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 f=u.target;if(bo(f))if(0===s){const _=new Gt(f.path);this.Ue(i,_,cr.newNoDocument(_,en.min()))}else W(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),N=w?this.Xe(w,n,_):1;0!==N&&(this.je(i),this.Qe=this.Qe.insert(i,2===N?"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{_=jn(s).toUint8Array()}catch(N){if(N instanceof is)return pt("Decoding the base64 bloom filter in existence filter failed ("+N.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw N}try{w=new Vn(_,u,f)}catch(N){return pt(N instanceof Kr?"BloomFilter error: ":"Applying bloom filter failed: ",N),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&&bo(w.target)){const N=new Gt(w.target.path);null!==this.ke.get(N)||this.it(_,N)||this.Ue(_,N,cr.newNoDocument(N,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=vr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(N=>{const z=this.Je(N);return!z||"TargetPurposeLimboResolution"===z.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=Jn(),this.qe=fr(),this.Qe=new mr(Ve),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 zi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new kn(Ve),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 zi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function fr(){return new mr(Gt.comparator)}function La(){return new mr(Gt.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 es(l,n){return l.useProto3Json||ri(n)?n:{value:n}}function wo(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 wo(l,n.toTimestamp())}function Lr(l){return W(!!l),en.fromTimestamp(function(i){const s=Or(i);return new Xt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new gn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Dr(l){const n=gn.fromString(l);return W(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function No(l,n){const i=Dr(n);if(i.get(1)!==l.databaseId.projectId)throw new me(ae.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 me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Gt(Vi(i))}function $o(l,n){return _a(l.databaseId,n)}function Ks(l){return new gn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Vi(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:[$o(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=$o(l,u);const f=function(z){if(0!==z.length)return Ad(Wr.create(z,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(z){if(0!==z.length)return z.map(se=>{return{field:qs((We=se).field),direction:ja(We.dir)};var We})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=es(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(z=n.startAt).inclusive,values:z.position}),n.endAt&&(i.structuredQuery.endAt=function(z){return{before:!z.inclusive,values:z.position}}(n.endAt)),{_t:i,parent:u};var z}function Ea(l){let n=function ya(l){const n=Dr(l);return 4===n.length?gn.emptyPath():Vi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){W(1===s);const se=i.from[0];se.allDescendants?u=se.collectionId:n=n.child(se.collectionId)}let f=[];i.where&&(f=function(we){const We=Ba(we);return We instanceof Wr&&Ko(We)?We.getFilters():[We]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(We=>{return new ci(Xs((tn=We).field),function(ln){switch(ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(tn.direction));var tn}));let w=null;i.limit&&(w=function(we){let We;return We="object"==typeof we?we.value:we,ri(We)?null:We}(i.limit));let N=null;var we;i.startAt&&(N=new nr((we=i.startAt).values||[],!!we.before));let z=null;return i.endAt&&(z=function(we){return new nr(we.values||[],!we.before)}(i.endAt)),function P(l,n,i,s,u,f,_,w){return new L(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",N,z)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Xs(i.unaryFilter.field);return dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Xs(i.unaryFilter.field);return dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Xs(i.unaryFilter.field);return dr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Xs(i.unaryFilter.field);return dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return j()}}(l):void 0!==l.fieldFilter?dr.create(Xs((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 Wr.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 Gh(l){return Ua[l]}function mc(l){return Ki[l]}function qs(l){return{fieldPath:l.canonicalString()}}function Xs(l){return Jt.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof dr?function(i){if("=="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:qs(i.field),op:Gh(i.op),value:i.value}}}(l):l instanceof Wr?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,f=en.min(),_=en.min(),w=si.EMPTY_BYTE_STRING,N=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=N}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 ve(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class Bo{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(ai(n.integerValue));else if("doubleValue"in n){const s=ai(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),xn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=Or(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(jn(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?Kt(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),Gt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Bo.bt=new Bo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),oe.resolve()}getCollectionParents(n,i){return oe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return oe.resolve()}deleteFieldIndex(n,i){return oe.resolve()}deleteAllFieldIndexes(n){return oe.resolve()}createTargetIndexes(n,i){return oe.resolve()}getDocumentsMatchingTarget(n,i){return oe.resolve(null)}getIndexType(n,i){return oe.resolve(0)}getFieldIndexes(n,i){return oe.resolve([])}getNextCollectionGroupToUpdate(n){return oe.resolve(null)}getMinOffset(n,i){return oe.resolve(Sr.min())}getMinOffsetFromCollectionGroup(n,i){return oe.resolve(Sr.min())}updateCollectionGroup(n,i,s){return oe.resolve()}updateIndexEntries(n,i){return oe.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new kn(gn.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 kn(gn.comparator)).toArray()}}new Uint8Array(0);class Gn{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Gn(n,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Gn.DEFAULT_COLLECTION_PERCENTILE=10,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Gn.DEFAULT=new Gn(41943040,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Gn.DISABLED=new Gn(-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 Js{constructor(){this.changes=new as(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,cr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?oe.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,Bi.empty(),Xt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,vr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=vr()){const u=Hr();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=Ti();return f.forEach((w,N)=>{_=_.insert(w,N.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Hr();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,vr()))}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=Jn();const _=ls(),w=ls();return i.forEach((N,z)=>{const se=s.get(z.key);u.has(z.key)&&(void 0===se||se.mutation instanceof lo)?f=f.insert(z.key,z):void 0!==se?(_.set(z.key,se.mutation.getFieldMask()),zs(se.mutation,z,se.mutation.getFieldMask(),Xt.now())):_.set(z.key,Bi.empty())}),this.recalculateAndSaveOverlays(n,f).next(N=>(N.forEach((z,se)=>_.set(z,se)),i.forEach((z,se)=>{var we;return w.set(z,new Ts(se,null!==(we=_.get(z))&&void 0!==we?we:null))}),w))}recalculateAndSaveOverlays(n,i){const s=ls();let u=new mr((_,w)=>_-w),f=vr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(N=>{const z=i.get(N);if(null===z)return;let se=s.get(N)||Bi.empty();se=w.applyToLocalView(z,se),s.set(N,se);const we=(u.get(w.batchId)||vr()).add(N);u=u.insert(w.batchId,we)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const N=w.getNext(),z=N.key,se=N.value,we=ll();se.forEach(We=>{if(!f.has(We)){const Rt=ga(i.get(We),s.get(We));null!==Rt&&we.set(We,Rt),f=f.add(We)}}),_.push(this.documentOverlayCache.saveOverlays(n,z,we))}return oe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Gt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Te(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):oe.resolve(Hr());let w=-1,N=f;return _.next(z=>oe.forEach(z,(se,we)=>(w{N=N.insert(se,We)}))).next(()=>this.populateOverlays(n,z,f)).next(()=>this.computeViews(n,N,z,vr())).next(se=>({batchId:w,changes:ro(se)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Gt(i)).next(s=>{let u=Ti();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=Ti();return this.indexManager.getCollectionParents(n,f).next(w=>oe.forEach(w,N=>{const z=(we=i,We=N.child(f),new L(We,null,we.explicitOrderBy.slice(),we.filters.slice(),we.limit,we.limitType,we.startAt,we.endAt));var we,We;return this.getDocumentsMatchingCollectionQuery(n,z,s,u).next(se=>{se.forEach((we,We)=>{_=_.insert(we,We)})})}).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((N,z)=>{const se=z.getKey();null===_.get(se)&&(_=_.insert(se,cr.newInvalidDocument(se)))});let w=Ti();return _.forEach((N,z)=>{const se=f.get(N);void 0!==se&&zs(se.mutation,z,Bi.empty(),Xt.now()),Bs(i,z)&&(w=w.insert(N,z))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return oe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Lr(u.createTime)}),oe.resolve();var u}getNamedQuery(n,i){return oe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:ve(u.bundledQuery),readTime:Lr(u.readTime)}),oe.resolve();var u}}class Tc{constructor(){this.overlays=new mr(Gt.comparator),this.hr=new Map}getOverlay(n,i){return oe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Hr();return oe.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)}),oe.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)),oe.resolve()}getOverlaysForCollection(n,i,s){const u=Hr(),f=i.length+1,_=new Gt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const N=w.getNext().value,z=N.getKey();if(!i.isPrefixOf(z.path))break;z.path.length===f&&N.largestBatchId>s&&u.set(N.getKey(),N)}return oe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new mr((z,se)=>z-se);const _=this.overlays.getIterator();for(;_.hasNext();){const z=_.getNext().value;if(z.getKey().getCollectionGroup()===i&&z.largestBatchId>s){let se=f.get(z.largestBatchId);null===se&&(se=Hr(),f=f.insert(z.largestBatchId,se)),se.set(z.getKey(),z)}}const w=Hr(),N=f.getIterator();for(;N.hasNext()&&(N.getNext().value.forEach((z,se)=>w.set(z,se)),!(w.size()>=u)););return oe.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 xe(i,s));let f=this.hr.get(i);void 0===f&&(f=vr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new kn(Io.Ir),this.Tr=new kn(Io.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Io(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 Io(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Gt(new gn([])),s=new Io(i,n),u=new Io(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 Gt(new gn([])),s=new Io(i,n),u=new Io(i,n+1);let f=vr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Io(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Io{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Gt.comparator(n.key,i.key)||Ve(n.pr,i.pr)}static Er(n,i){return Ve(n.pr,i.pr)||Gt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new kn(Io.Ir)}checkEmpty(n){return oe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new O(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Io(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return oe.resolve(_)}lookupMutationBatch(n,i){return oe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return oe.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return oe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return oe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Io(i,0),u=new Io(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),oe.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new kn(Ve);return i.forEach(u=>{const f=new Io(u,0),_=new Io(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),oe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let f=s;Gt.isDocumentKey(f)||(f=f.child(""));const _=new Io(new Gt(f),0);let w=new kn(Ve);return this.wr.forEachWhile(N=>{const z=N.key.path;return!!s.isPrefixOf(z)&&(z.length===u&&(w=w.add(N.pr)),!0)},_),oe.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 oe.forEach(i.mutations,u=>{const f=new Io(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 Io(i,0),u=this.wr.firstAfterOrEqual(s);return oe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return oe.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 mr(Gt.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 oe.resolve(s?s.document.mutableCopy():cr.newInvalidDocument(i))}getEntries(n,i){let s=Jn();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():cr.newInvalidDocument(u))}),oe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=Jn();const _=i.path,w=new Gt(_.child("")),N=this.docs.getIteratorFrom(w);for(;N.hasNext();){const{key:z,value:{document:se}}=N.getNext();if(!_.isPrefixOf(z.path))break;z.path.length>_.length+1||tr(new Sr((l=se).readTime,l.key,-1),s)<=0||(u.has(se.key)||Bs(i,se))&&(f=f.insert(se.key,se.mutableCopy()))}var l;return oe.resolve(f)}getAllFromCollectionGroup(n,i,s,u){j()}Fr(n,i){return oe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return oe.resolve(this.size)}}class xd extends Js{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)}),oe.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 as(i=>bs(i),Xo),this.lastRemoteSnapshotVersion=en.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)),oe.resolve()}getLastRemoteSnapshotVersion(n){return oe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return oe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),oe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),oe.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,oe.resolve()}updateTargetData(n,i){return this.qn(i),oe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,oe.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++)}),oe.waitFor(f).next(()=>u)}getTargetCount(n){return oe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return oe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),oe.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,_))}),oe.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),oe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return oe.resolve(s)}containsKey(n,i){return oe.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new ur(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 oe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Yh extends Mi{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()),oe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),oe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),oe.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 oe.forEach(this.Jr,s=>{const u=Gt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,en.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 oe.or([()=>oe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class yi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=vr(),u=vr();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 yi(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Jh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,De.nr)()?8:function Xe(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,De.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()<=Je.$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,On(i))):oe.resolve())}ji(n,i){if($(i))return oe.resolve(null);let s=On(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=On(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=vr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(N=>{const z=this.Zi(i,w);return this.Xi(i,z,_,N.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,z,i,N)}))})))}Hi(n,i,s,u){return $(i)||u.isEqual(en.min())?oe.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?oe.resolve(null):(Zt()<=Je.$b.DEBUG&&Be("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function Zn(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=en.fromTimestamp(1e9===s?new Xt(i+1,0):new Xt(i,s));return new Sr(u,Gt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new kn(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()<=Je.$b.DEBUG&&Be("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Sr.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 mr(Ve),this.rs=new as(f=>bs(f),Xo),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 Lu.apply(this,arguments)}function Lu(){return(Lu=(0,Ee.A)(function*(l,n){const i=de(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 N=vr();for(const z of u){_.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}for(const z of f){w.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}return i.localDocuments.getDocuments(s,N).next(z=>({us:z,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=de(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=de(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=de(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(!Pe(_))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=de(l);let u=en.min(),f=vr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(N,z,se){const we=de(N),We=we.rs.get(se);return void 0!==We?oe.resolve(we.ns.get(We)):we.Qr.getTargetData(z,se)}(s,_,On(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(N=>{f=N})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:en.min(),i?f:vr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||en.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 Vd{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 Ro="WebChannelConnection";class Ld 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(),N=this.vo(i,s.toUriEncodedString());Be("RestConnection",`Sending RPC '${i}' ${w}:`,N,u);const z={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(z,f,_),this.Mo(i,N,z,u).then(se=>(Be("RestConnection",`Received RPC '${i}' ${w}: `,se),se),se=>{throw pt("RestConnection",`RPC '${i}' ${w} failed with error: `,se,"url: ",N,"request:",u),se})}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/"+Tt,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 N=new ut;N.setWithCredentials(!0),N.listenOnce(mt.COMPLETE,()=>{try{switch(N.getLastErrorCode()){case vt.NO_ERROR:const se=N.getResponseJson();Be(Ro,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(se)),_(se);break;case vt.TIMEOUT:Be(Ro,`RPC '${n}' ${f} timed out`),w(new me(ae.DEADLINE_EXCEEDED,"Request time out"));break;case vt.HTTP_ERROR:const we=N.getStatus();if(Be(Ro,`RPC '${n}' ${f} failed with status:`,we,"response text:",N.getResponseText()),we>0){let We=N.getResponseJson();Array.isArray(We)&&(We=We[0]);const Rt=null==We?void 0:We.error;if(Rt&&Rt.status&&Rt.message){const tn=function(ln){const zn=ln.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(zn)>=0?zn:ae.UNKNOWN}(Rt.status);w(new me(tn,Rt.message))}else w(new me(ae.UNKNOWN,"Server responded with status "+N.getStatus()))}else w(new me(ae.UNAVAILABLE,"Connection failed."));break;default:j()}}finally{Be(Ro,`RPC '${n}' ${f} completed.`)}});const z=JSON.stringify(u);Be(Ro,`RPC '${n}' ${f} sending request:`,u),N.send(i,"POST",z,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ct(),w=Ke(),N={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},z=this.longPollingOptions.timeoutSeconds;void 0!==z&&(N.longPollingTimeout=Math.round(1e3*z)),this.useFetchStreams&&(N.xmlHttpFactory=new st({})),this.Fo(N.initMessageHeaders,i,s),N.encodeInitMessageHeaders=!0;const se=f.join("");Be(Ro,`Creating RPC '${n}' stream ${u}: ${se}`,N);const we=_.createWebChannel(se,N);let We=!1,Rt=!1;const tn=new zu({lo:ln=>{Rt?Be(Ro,`Not sending because RPC '${n}' stream ${u} is closed:`,ln):(We||(Be(Ro,`Opening RPC '${n}' stream ${u} transport.`),we.open(),We=!0),Be(Ro,`RPC '${n}' stream ${u} sending:`,ln),we.send(ln))},ho:()=>we.close()}),pn=(ln,zn,lr)=>{ln.listen(zn,Qn=>{try{lr(Qn)}catch(Rr){setTimeout(()=>{throw Rr},0)}})};return pn(we,Mt.EventType.OPEN,()=>{Rt||(Be(Ro,`RPC '${n}' stream ${u} transport opened.`),tn.mo())}),pn(we,Mt.EventType.CLOSE,()=>{Rt||(Rt=!0,Be(Ro,`RPC '${n}' stream ${u} transport closed`),tn.po())}),pn(we,Mt.EventType.ERROR,ln=>{Rt||(Rt=!0,pt(Ro,`RPC '${n}' stream ${u} transport errored:`,ln),tn.po(new me(ae.UNAVAILABLE,"The operation could not be completed")))}),pn(we,Mt.EventType.MESSAGE,ln=>{var zn;if(!Rt){const lr=ln.data[0];W(!!lr);const Rr=lr.error||(null===(zn=lr[0])||void 0===zn?void 0:zn.error);if(Rr){Be(Ro,`RPC '${n}' stream ${u} received error:`,Rr);const Ii=Rr.status;let zr=function(tt){const gt=Un[tt];if(void 0!==gt)return Tr(gt)}(Ii),ht=Rr.message;void 0===zr&&(zr=ae.INTERNAL,ht="Unknown error status: "+Ii+" with message "+Rr.message),Rt=!0,tn.po(new me(zr,ht)),we.close()}else Be(Ro,`RPC '${n}' stream ${u} received:`,lr),tn.yo(lr)}}),pn(w,je.STAT_EVENT,ln=>{ln.stat===Me.PROXY?Be(Ro,`RPC '${n}' stream ${u} detected buffering proxy`):ln.stat===Me.NOPROXY&&Be(Ro,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{tn.fo()},0),tn}}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,N){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=N,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===ae.RESOURCE_EXHAUSTED?(rn(i.toString()),rn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ae.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 me(ae.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 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"===(z=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===z?1:"REMOVE"===z?2:"CURRENT"===z?3:"RESET"===z?4:j(),u=n.targetChange.targetIds||[],f=function(z,se){return z.useProto3Json?(W(void 0===se||"string"==typeof se),si.fromBase64String(se||"")):(W(void 0===se||se instanceof Buffer||se instanceof Uint8Array),si.fromUint8Array(se||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(z){const se=void 0===z.code?ae.UNKNOWN:Tr(z.code);return new me(se,z.message||"")}(_);i=new Jr(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=No(l,s.document.name),f=Lr(s.document.updateTime),_=s.document.createTime?Lr(s.document.createTime):en.min(),w=new In({mapValue:{fields:s.document.fields}}),N=cr.newFoundDocument(u,f,_,w);i=new Wi(s.targetIds||[],s.removedTargetIds||[],N.key,N)}else if("documentDelete"in n){const s=n.documentDelete,u=No(l,s.document),f=s.readTime?Lr(s.readTime):en.min(),_=cr.newNoDocument(u,f);i=new Wi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=No(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:f}=s,_=new an(u,f);i=new Fi(s.targetId,_)}}var z;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return en.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?en.min():_.readTime?Lr(_.readTime):en.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const N=_.target;if(w=bo(N)?{documents:Hl(f,N)}:{query:Gl(f,N)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}else if(_.snapshotVersion.compareTo(en.min())>0){w.readTime=wo(f,_.snapshotVersion.toTimestamp());const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}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 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(W(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function us(l,n){return l&&l.length>0?(W(void 0!==n),l.map(i=>function(u,f){let _=Lr(u.updateTime?u.updateTime:f);return _.isEqual(en.min())&&(_=Lr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Lr(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 V)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 be))return j();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 Zo)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw j()}(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}:j()),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 me(ae.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===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new me(ae.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===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new me(ae.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_?(rn(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,Ee.A)(function*(){var N;Qa(_)&&(Be("RemoteStore","Restarting streams for network reachability change."),yield(N=(0,Ee.A)(function*(se){const we=de(se);we.M_.add(4),yield tu(we),we.N_.set("Unknown"),we.M_.delete(4),yield kc(we)}),function z(se){return N.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 Xa(l,n){const i=de(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),df(i)?Hu(i):qu(i).Xo()&&uf(i,n))}function Yi(l,n){const i=de(l),s=qu(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(en.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function cf(l,n){l.L_.xe(n),qu(l).I_(n)}function Hu(l){l.L_=new Uo({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function df(l){return Qa(l)&&!qu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===de(l).M_.size}function Vc(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 hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ee.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,Ee.A)(function*(l,n){Vc(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,Ee.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Jr&&2===n.state&&n.cause)try{yield(s=(0,Ee.A)(function*(f,_){const w=_.cause;for(const N of _.targetIds)f.F_.has(N)&&(yield f.remoteSyncer.rejectListen(N,w),f.F_.delete(N),f.L_.removeTarget(N))}),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 Lc(l,s)}else if(n instanceof Wi?l.L_.Ke(n):n instanceof Fi?l.L_.He(n):l.L_.We(n),!i.isEqual(en.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((N,z)=>{if(N.resumeToken.approximateByteSize()>0){const se=f.F_.get(z);se&&f.F_.set(z,se.withResumeToken(N.resumeToken,_))}}),w.targetMismatches.forEach((N,z)=>{const se=f.F_.get(N);if(!se)return;f.F_.set(N,se.withResumeToken(si.EMPTY_BYTE_STRING,se.snapshotVersion)),cf(f,N);const we=new Aa(se.target,N,z,se.sequenceNumber);uf(f,we)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){Be("RemoteStore","Failed to raise snapshot:",s),yield Lc(l,s)}var s}),pf.apply(this,arguments)}function Lc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ee.A)(function*(l,n,i){if(!Pe(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*(){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=>Lc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ee.A)(function*(l){const n=de(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;py(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 Lc(n,u)}_f(n)&&ds(n)})).apply(this,arguments)}function py(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 ds(l){nu(l).start()}function gy(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ee.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function my(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=le.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,Ee.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ee.A)(function*(u,f){if(function Fr(l){switch(l){default:return j();case ae.CANCELLED:case ae.UNKNOWN:case ae.DEADLINE_EXCEEDED:case ae.RESOURCE_EXHAUSTED:case ae.INTERNAL:case ae.UNAVAILABLE:case ae.UNAUTHENTICATED:return!1;case ae.INVALID_ARGUMENT:case ae.NOT_FOUND:case ae.ALREADY_EXISTS:case ae.PERMISSION_DENIED:case ae.FAILED_PRECONDITION:case ae.ABORTED:case ae.OUT_OF_RANGE:case ae.UNIMPLEMENTED:case ae.DATA_LOSS:return!0}}(w=f.code)&&w!==ae.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)&&ds(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ee.A)(function*(l,n){const i=de(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,Ee.A)(function*(l,n){const i=de(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 qu(l){return l.B_||(l.B_=function(i,s,u){const f=de(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,Ee.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Vc(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=de(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:gy.bind(null,l),Ao:Ku.bind(null,l),R_:my.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&&(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 Ce,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 me(ae.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 Xu(l,n){if(rn("AsyncQueue",`${n}: ${l}`),Pe(l))return new me(ae.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Gt.comparator(i.key,s.key):(i,s)=>Gt.comparator(i.key,s.key),this.keyedMap=Ti(),this.sortedSet=new mr(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 mr(Gt.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,f,_,w,N,z){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=N,this.hasCachedResults=z}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)&&Qo(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 as(n=>Na(n),Qo),this.onlineState="Unknown",this.z_=new Set}}function Os(l,n){return Ef.apply(this,arguments)}function Ef(){return(Ef=(0,Ee.A)(function*(l,n){const i=de(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=Xu(_,`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,Ee.A)(function*(l,n){const i=de(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=de(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=de(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 Pt{constructor(n){this.key=n}}class on{constructor(n){this.key=n}}class Dn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=vr(),this.mutatedKeys=vr(),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 N="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,z="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((se,we)=>{const We=u.get(se),Rt=Bs(this.query,we)?we:null,tn=!!We&&this.mutatedKeys.has(We.key),pn=!!Rt&&(Rt.hasLocalMutations||this.mutatedKeys.has(Rt.key)&&Rt.hasCommittedMutations);let ln=!1;We&&Rt?We.data.isEqual(Rt.data)?tn!==pn&&(s.track({type:3,doc:Rt}),ln=!0):this.Ra(We,Rt)||(s.track({type:2,doc:Rt}),ln=!0,(N&&this.Ia(Rt,N)>0||z&&this.Ia(Rt,z)<0)&&(w=!0)):!We&&Rt?(s.track({type:0,doc:Rt}),ln=!0):We&&!Rt&&(s.track({type:1,doc:We}),ln=!0,(N||z)&&(w=!0)),ln&&(Rt?(_=_.add(Rt),f=pn?f.add(se):f.delete(se)):(_=_.delete(se),f=f.delete(se)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const se="F"===this.query.limitType?_.last():_.first();_=_.delete(se.key),f=f.delete(se.key),s.track({type:1,doc:se})}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((se,we)=>function(Rt,tn){const pn=ln=>{switch(ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return j()}};return pn(Rt)-pn(tn)}(se.type,we.type)||this.Ia(se.doc,we.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],N=0===this.Pa.size&&this.current&&!u?1:0,z=N!==this.ha;return this.ha=N,0!==_.length||z?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===N,z,!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=vr(),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 on(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Pt(s))}),i}pa(n){this.la=n.hs,this.Pa=vr();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 Xn{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class jr{constructor(n){this.key=n,this.wa=!1}}class Oo{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 as(w=>Na(w),Qo),this.Da=new Map,this.Ca=new Set,this.va=new mr(Gt.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 Zi(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 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,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=de(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,oe.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,On(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Zu(l,n,i,s,u){return Ju.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Xa(l.remoteStore,u),w})).apply(this,arguments)}function Ju(){return Ju=(0,Ee.A)(function*(l,n,i,s,u){l.Ba=(we,We,Rt)=>{return(tn=(0,Ee.A)(function*(ln,zn,lr,Qn){let Rr=zn.view.da(lr);Rr.Xi&&(Rr=yield vl(ln.localStore,zn.query,!1).then(({documents:Ue})=>zn.view.da(Ue,Rr)));const Ii=Qn&&Qn.targetChanges.get(zn.targetId),zr=Qn&&null!=Qn.targetMismatches.get(zn.targetId),ht=zn.view.applyChanges(Rr,ln.isPrimaryClient,Ii,zr);return Eg(ln,zn.targetId,ht.fa),ht.snapshot}),function pn(ln,zn,lr,Qn){return tn.apply(this,arguments)})(l,we,We,Rt);var tn};const f=yield vl(l.localStore,n,!0),_=new Dn(n,f.hs),w=_.da(f.documents),N=_i.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),z=_.applyChanges(w,l.isPrimaryClient,N);Eg(l,i,z.fa);const se=new Xn(n,i,_);return l.ba.set(n,se),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),z.snapshot}),Ju.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ee.A)(function*(l,n,i){const s=de(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Qo(_,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(Qr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Cf(l,n){return qd.apply(this,arguments)}function qd(){return(qd=(0,Ee.A)(function*(l,n){const i=de(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=de(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 N=de(_),z=Xt.now(),se=w.reduce((Rt,tn)=>Rt.add(tn.key),vr());let we,We;return N.persistence.runTransaction("Locally write mutations","readwrite",Rt=>{let tn=Jn(),pn=vr();return N.os.getEntries(Rt,se).next(ln=>{tn=ln,tn.forEach((zn,lr)=>{lr.isValidDocument()||(pn=pn.add(zn))})}).next(()=>N.localDocuments.getOverlayedDocuments(Rt,tn)).next(ln=>{we=ln;const zn=[];for(const lr of w){const Qn=pc(lr,we.get(lr.key).overlayedDocument);null!=Qn&&zn.push(new lo(lr.key,Qn,br(Qn.value.mapValue),Di.exists(!0)))}return N.mutationQueue.addMutationBatch(Rt,z,zn,w)}).next(ln=>{We=ln;const zn=ln.applyToLocalDocumentSet(we,pn);return N.documentOverlayCache.saveOverlays(Rt,ln.batchId,zn)})}).then(()=>({batchId:We.batchId,changes:ro(we)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,N){let z=_.xa[_.currentUser.toKey()];z||(z=new mr(Ve)),z=z.insert(w,N),_.xa[_.currentUser.toKey()]=z}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const f=Xu(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,Ee.A)(function*(l,n){const i=de(l);try{const s=yield function og(l,n){const i=de(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((se,we)=>{const We=u.get(we);if(!We)return;w.push(i.Qr.removeMatchingKeys(f,se.removedDocuments,we).next(()=>i.Qr.addMatchingKeys(f,se.addedDocuments,we)));let Rt=We.withSequenceNumber(f.currentSequenceNumber);var pn,ln,zn;null!==n.targetMismatches.get(we)?Rt=Rt.withResumeToken(si.EMPTY_BYTE_STRING,en.min()).withLastLimboFreeSnapshotVersion(en.min()):se.resumeToken.approximateByteSize()>0&&(Rt=Rt.withResumeToken(se.resumeToken,s)),u=u.insert(we,Rt),ln=Rt,zn=se,(0===(pn=We).resumeToken.approximateByteSize()||ln.snapshotVersion.toMicroseconds()-pn.snapshotVersion.toMicroseconds()>=3e8||zn.addedDocuments.size+zn.modifiedDocuments.size+zn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,Rt))});let N=Jn(),z=vr();if(n.documentUpdates.forEach(se=>{n.resolvedLimboDocuments.has(se)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,se))}),w.push(function $u(l,n,i){let s=vr(),u=vr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=Jn();return i.forEach((w,N)=>{const z=f.get(w);N.isFoundDocument()!==z.isFoundDocument()&&(u=u.add(w)),N.isNoDocument()&&N.version.isEqual(en.min())?(n.removeEntry(w,N.readTime),_=_.insert(w,N)):!z.isValidDocument()||N.version.compareTo(z.version)>0||0===N.version.compareTo(z.version)&&z.hasPendingWrites?(n.addEntry(N),_=_.insert(w,N)):Be("LocalStore","Ignoring outdated watch update for ",w,". Current version:",z.version," Watch version:",N.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(se=>{N=se.cs,z=se.ls})),!s.isEqual(en.min())){const se=i.Qr.getLastRemoteSnapshotVersion(f).next(we=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(se)}return oe.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,N,z)).next(()=>N)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(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 Qr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=de(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 N=de(_);N.onlineState=w;let z=!1;N.queries.forEach((se,we)=>{for(const We of we.U_)We.j_(w)&&(z=!0)}),z&&Gd(N)}(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,Ee.A)(function*(l,n,i){const s=de(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new mr(Gt.comparator);_=_.insert(f,cr.newNoDocument(f,en.min()));const w=vr().add(f),N=new Gi(en.min(),new Map,new mr(Ve),_,w);yield gg(s,N),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(Qr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ee.A)(function*(l,n){const i=de(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=de(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,N,z,se){const we=z.batch,We=we.keys();let Rt=oe.resolve();return We.forEach(tn=>{Rt=Rt.next(()=>se.getEntry(N,tn)).next(pn=>{const ln=z.docVersions.get(tn);W(null!==ln),pn.version.compareTo(ln)<0&&(we.applyToRemoteDocument(pn,z),pn.isValidDocument()&&(pn.setReadTime(z.commitVersion),se.addEntry(pn)))})}),Rt.next(()=>w.mutationQueue.removeMutationBatch(N,we))}(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 N=vr();for(let z=0;z0&&(N=N.add(w.batch.mutations[z].key));return N}(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 Qr(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=de(l);try{const u=yield function(_,w){const N=de(_);return N.persistence.runTransaction("Reject batch","readwrite-primary",z=>{let se;return N.mutationQueue.lookupMutationBatch(z,w).next(we=>(W(null!==we),se=we.keys(),N.mutationQueue.removeMutationBatch(z,we))).next(()=>N.mutationQueue.performConsistencyCheck(z)).next(()=>N.documentOverlayCache.removeOverlaysForBatchId(z,se,w)).next(()=>N.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(z,se)).next(()=>N.localDocuments.getDocuments(z,se))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Qr(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=de(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 Pt?(l.Ma.addReference(s.key,n),_y(l,s)):s instanceof on?(Be("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 _y(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(N,n,i).then(z=>{if((z||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(N.targetId,z&&!z.fromCache?"current":"not-current"),z){u.push(z);const se=yi.Ki(N.targetId,z);f.push(se)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ee.A)(function*(z,se){const we=de(z);try{yield we.persistence.runTransaction("notifyLocalViewChanges","readwrite",We=>oe.forEach(se,Rt=>oe.forEach(Rt.qi,tn=>we.persistence.referenceDelegate.addReference(We,Rt.targetId,tn)).next(()=>oe.forEach(Rt.Qi,tn=>we.persistence.referenceDelegate.removeReference(We,Rt.targetId,tn)))))}catch(We){if(!Pe(We))throw We;Be("LocalStore","Failed to update sequence numbers: "+We)}for(const We of se){const Rt=We.targetId;if(!We.fromCache){const tn=we.ns.get(Rt),ln=tn.withLastLimboFreeSnapshotVersion(tn.snapshotVersion);we.ns=we.ns.insert(Rt,ln)}}}),function N(z,se){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,Ee.A)(function*(l,n){const i=de(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(N=>{N.reject(new me(ae.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=de(l),s=i.Fa.get(n);if(s&&s.wa)return vr().add(s.key);{let u=vr();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=de(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 Za{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 ef(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new Jh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}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 Ja{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 If}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Ld(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=Vd.D()?new Vd:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,N,z,se){const we=new Oo(u,f,_,w,N,z);return se&&(we.La=!0),we}(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*(f){const _=de(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):rn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Ty{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=ze.UNAUTHENTICATED,this.clientId=Yn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ee.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 me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Ce;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=Xu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Pf(l,n){return rh.apply(this,arguments)}function rh(){return rh=(0,Ee.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,Ee.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,Ee.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,Ee.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===ae.FAILED_PRECONDITION||l.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;pt("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Za)}}else Be("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Za);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?(Be("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(Be("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Ja))),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=Zi.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 Vf(l,n,i){if(!i)throw new me(ae.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Og(l){if(!Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function kg(l){if(Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Lf(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 Xr(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new me(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Lf(l);throw new me(ae.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 me(ae.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 me(ae.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 me(ae.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 me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new me(ae.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 me(ae.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 me(ae.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 kt;switch(s.type){case"firstParty":return new $n(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new me(ae.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,ce(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 Gt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function tE(l,n,...i){if(l=(0,De.Ku)(l),Vf("collection","path",n),l instanceof lh){const s=gn.fromString(n,...i);return kg(s),new bl(l,null,s)}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return kg(s),new bl(l.firestore,null,s)}}function Sy(l,n,...i){if(l=(0,De.Ku)(l),1===arguments.length&&(n=Yn.newId()),Vf("doc","path",n),l instanceof lh){const s=gn.fromString(n,...i);return Og(s),new go(l,null,new Gt(s))}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Gt(s))}}class Ry{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 Ce;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(!Pe(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,rn("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&&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 bi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new Ry,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Lg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,re.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,re.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,De.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=Xr(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&pt("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,N;if("string"==typeof s.mockUserToken)w=s.mockUserToken,N=ze.MOCK_USER;else{w=(0,De.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const z=s.mockUserToken.sub||s.mockUserToken.user_id;if(!z)throw new me(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");N=new ze(z)}l._authCredentials=new Bt(new at(w,N))}}(u,...f)}return u}function to(l){return l._firestoreClient||Lg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Lg(l){var n,i,s;const u=l._freezeSettings(),f=(N=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,N,l._persistenceKey,(se=u).host,se.ssl,se.experimentalForceLongPolling,se.experimentalAutoDetectLongPolling,ah(se.experimentalLongPollingOptions),se.useFetchStreams));var N,se;l._firestoreClient=new Ty(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(si.fromBase64String(n))}catch(i){throw new me(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(si.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 me(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new me(ae.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 Ve(this._lat,n._lat)||Ve(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 j()}}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;nN.covers(we.field))}else N=null,z=_.fieldTransforms;return new Uf(new In(w),N,z)}class Qc extends qc{_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(Vv(l=(0,De.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof qc)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 N=Sa(w,u.bu(_));null==N&&(N={nullValue:"NULL_VALUE"}),f.push(N),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,De.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=Xt.fromDate(s);return{timestampValue:wo(u.serializer,f)}}if(s instanceof Xt){const f=new Xt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:wo(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: ${Lf(s)}`)}(l,n)}function Fv(l,n){const i={};return ti(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):mi(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Vv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Xt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof qc)}function Gg(l,n,i){if(!Vv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Lf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,De.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 N="";return(f||_)&&(N+=" (found",f&&(N+=` in field ${s}`),_&&(N+=` in document ${u}`),N+=")"),new me(ae.INVALID_ARGUMENT,w+l+N)}function Lv(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 Ly(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(Zc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Ly extends dh{data(){return super.data()}}function Zc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return ai(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(jn(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 mi(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(ai(n.latitude),ai(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ao(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Co(n));default:return null}}convertTimestamp(n){const i=Or(n);return new Xt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=gn.fromString(n);W(Td(s));const u=new To(s.get(1),s.get(3)),f=new Gt(s.popFirst(5));return u.isEqual(i)||rn(`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(Zc("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 me(ae.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 N=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 z=-1,se=-1;return 0!==w.type&&(z=_.indexOf(w.doc.key),_=_.delete(w.doc.key)),1!==w.type&&(_=_.add(w.doc),se=_.indexOf(w.doc.key)),{type:Wy(w.type),doc:N,oldIndex:z,newIndex:se}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function Wy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return j()}}function jv(l){l=Xr(l,go);const n=Xr(l.firestore,bi);return function sh(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>$c(f,we));const Rt=We.docs.has(w);!Rt&&We.fromCache?z.reject(new me(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):Rt&&We.fromCache&&N&&"server"===N.source?z.reject(new me(ae.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.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(ce(w.path),se,{includeMetadataChanges:!0,ra:!0});return Os(f,we)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(to(n),l._key).then(i=>function Xf(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 qg{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=Xr(l,po);const n=Xr(l.firestore,bi),i=to(n),s=new fu(n);return function Uy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new me(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function xg(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>$c(f,we)),We.fromCache&&"server"===N.source?z.reject(new me(ae.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.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(w,se,{includeMetadataChanges:!0,ra:!0});return Os(f,we)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new Rl(n,s,l,u))}function Zg(l,n,i){l=Xr(l,go);const s=Xr(l.firestore,bi),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,Di.none())])}function Ky(l,n,i,...s){l=Xr(l,go);const u=Xr(l.firestore,bi),f=rc(u);let _;return _="string"==typeof(n=(0,De.Ku)(n))||n instanceof hu?function kv(l,n,i,s,u,f){const _=l.Fu(1,n,i),w=[Yc(n,s,i)],N=[u];if(f.length%2!=0)throw new me(ae.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let We=0;We=0;--We)if(!Lv(z,w[We])){const Rt=w[We];let tn=N[We];tn=(0,De.Ku)(tn);const pn=_.Su(Rt);if(tn instanceof Qc)z.push(Rt);else{const ln=Sa(tn,pn);null!=ln&&(z.push(Rt),se.set(Rt,ln))}}const we=new Bi(z);return new Ov(se,we,_.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=[],_=In.empty();mi(s,(N,z)=>{const se=Hf(n,N,i);z=(0,De.Ku)(z);const we=u.Su(se);if(z instanceof Qc)f.push(se);else{const We=Sa(z,we);null!=We&&(f.push(se),_.set(se,We))}});const w=new Bi(f);return new Ov(_,w,u.fieldTransforms)}(f,"updateDoc",l._key,n),rd(u,[_.toMutation(l._key,Di.exists(!0))])}function rd(l,n){return function(s,u){const f=new Ce;return s.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function Xd(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){Tt=re.MF,(0,re.om)(new Ze.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new bi(new vn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(z,se){if(!Object.prototype.hasOwnProperty.apply(z.options,["projectId"]))throw new me(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new To(z.options.projectId,se)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,re.KO)(xt,"4.6.3",n),(0,re.KO)(xt,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new d.nKC("angularfire2.firestore-instances");function l0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new vh(s)}}const u0={provide:class a0{constructor(){return(0,g.CA)(ep)}},deps:[[new d.Xx1,im]]},c0={provide:vh,useFactory:function Yv(l,n){const i=(0,g.lR)(ep,l,n);return i&&new vh(i)},deps:[[new d.Xx1,im],ge.XU]};function Zv(l,...n){return(0,X.KO)("angularfire",g.xv.full,"fst"),(0,d.EmA)([c0,u0,{provide:im,useFactory:l0(l),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,Oe.DF],[new d.Xx1,g.Jv],...n]}])}const p0=(0,g.S3)(tE,!0),sm=(0,g.S3)(Sy,!0),lm=(0,g.S3)(jv,!0),r_=(0,g.S3)(zv,!0),um=(0,g.S3)(uh,!0),b0=(0,g.S3)(Zg,!0),w0=(0,g.S3)(Ky,!0)},3586:(En,bt,B)=>{"use strict";B.d(bt,{xv:()=>Me,u0:()=>Dt,Jv:()=>xt,CA:()=>Ct,lR:()=>Ke,S3:()=>ae});var g=B(9842),d=B(4438),ge=B(2214),Oe=B(8359);class X extends Oe.yU{constructor(Ce,at){super()}schedule(Ce,at=0){return this}}const Ee={setInterval(me,Ce,...at){const{delegate:kt}=Ee;return null!=kt&&kt.setInterval?kt.setInterval(me,Ce,...at):setInterval(me,Ce,...at)},clearInterval(me){const{delegate:Ce}=Ee;return((null==Ce?void 0:Ce.clearInterval)||clearInterval)(me)},delegate:void 0};var re=B(7908);class Ze extends X{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at,this.pending=!1}schedule(Ce,at=0){var kt;if(this.closed)return this;this.state=Ce;const Bt=this.id,vn=this.scheduler;return null!=Bt&&(this.id=this.recycleAsyncId(vn,Bt,at)),this.pending=!0,this.delay=at,this.id=null!==(kt=this.id)&&void 0!==kt?kt:this.requestAsyncId(vn,this.id,at),this}requestAsyncId(Ce,at,kt=0){return Ee.setInterval(Ce.flush.bind(Ce,this),kt)}recycleAsyncId(Ce,at,kt=0){if(null!=kt&&this.delay===kt&&!1===this.pending)return at;null!=at&&Ee.clearInterval(at)}execute(Ce,at){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const kt=this._execute(Ce,at);if(kt)return kt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ce,at){let Bt,kt=!1;try{this.work(Ce)}catch(vn){kt=!0,Bt=vn||new Error("Scheduled action threw falsy error")}if(kt)return this.unsubscribe(),Bt}unsubscribe(){if(!this.closed){const{id:Ce,scheduler:at}=this,{actions:kt}=at;this.work=this.state=this.scheduler=null,this.pending=!1,(0,re.o)(kt,this),null!=Ce&&(this.id=this.recycleAsyncId(at,Ce,null)),this.delay=null,super.unsubscribe()}}}const De={now:()=>(De.delegate||Date).now(),delegate:void 0};class _e{constructor(Ce,at=_e.now){this.schedulerActionCtor=Ce,this.now=at}schedule(Ce,at=0,kt){return new this.schedulerActionCtor(this,Ce).schedule(kt,at)}}_e.now=De.now;class Fe extends _e{constructor(Ce,at=_e.now){super(Ce,at),this.actions=[],this._active=!1}flush(Ce){const{actions:at}=this;if(this._active)return void at.push(Ce);let kt;this._active=!0;do{if(kt=Ce.execute(Ce.state,Ce.delay))break}while(Ce=at.shift());if(this._active=!1,kt){for(;Ce=at.shift();)Ce.unsubscribe();throw kt}}}const Le=new class $e extends Fe{}(class Je extends Ze{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at}schedule(Ce,at=0){return at>0?super.schedule(Ce,at):(this.delay=at,this.state=Ce,this.scheduler.flush(this),this)}execute(Ce,at){return at>0||this.closed?super.execute(Ce,at):this._execute(Ce,at)}requestAsyncId(Ce,at,kt=0){return null!=kt&&kt>0||null==kt&&this.delay>0?super.requestAsyncId(Ce,at,kt):(Ce.flush(this),0)}}),ft=new Fe(Ze);var st=B(1985),Mt=B(8141),mt=B(6745),vt=B(941);const Me=new d.RxE("ANGULARFIRE2_VERSION");function Ke(me,Ce,at){if(Ce){if(1===Ce.length)return Ce[0];const vn=Ce.filter(bn=>bn.app===at);if(1===vn.length)return vn[0]}return at.container.getProvider(me).getImmediate({optional:!0})}const Ct=(me,Ce)=>{const at=Ce?[Ce]:(0,ge.Dk)(),kt=[];return at.forEach(Bt=>{Bt.container.getProvider(me).instances.forEach(bn=>{kt.includes(bn)||kt.push(bn)})}),kt};class xt{constructor(){return Ct(ze)}}const ze="app-check";function Tt(){}class Vt{constructor(Ce,at=Le){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=Ce,this.delegate=at}now(){return this.delegate.now()}schedule(Ce,at,kt){const Bt=this.zone;return this.delegate.schedule(function(bn){Bt.runGuarded(()=>{Ce.apply(this,[bn])})},at,kt)}}class Zt{constructor(Ce){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=Ce}call(Ce,at){const kt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)),at.pipe((0,Mt.M)({next:kt,complete:kt,error:kt})).subscribe(Ce).add(kt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Dt=(()=>{var me;class Ce{constructor(kt){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=kt,this.outsideAngular=kt.runOutsideAngular(()=>new Vt(Zone.current)),this.insideAngular=kt.run(()=>new Vt(Zone.current,ft)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return me=Ce,(0,g.A)(Ce,"\u0275fac",function(kt){return new(kt||me)(d.KVO(d.SKi))}),(0,g.A)(Ce,"\u0275prov",d.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})),Ce})();function Be(){const me=globalThis.\u0275AngularFireScheduler;if(!me)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 me}function pt(me){return Be().ngZone.run(()=>me())}function W(me){return function te(me){return function(at){return(at=at.lift(new Zt(me.ngZone))).pipe((0,mt._)(me.outsideAngular),(0,vt.Q)(me.insideAngular))}}(Be())(me)}const de=(me,Ce)=>function(){const kt=arguments;return Ce&&setTimeout(()=>{"scheduled"===Ce.state&&Ce.invoke()},10),pt(()=>me.apply(void 0,kt))},ae=(me,Ce)=>function(){let at;const kt=arguments;for(let vn=0;vnZone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)))),kt[vn]=de(kt[vn],at));const Bt=function rn(me){return Be().ngZone.runOutsideAngular(()=>me())}(()=>me.apply(this,kt));if(!Ce){if(Bt instanceof st.c){const vn=Be();return Bt.pipe((0,mt._)(vn.outsideAngular),(0,vt.Q)(vn.insideAngular))}return pt(()=>Bt)}return Bt instanceof st.c?Bt.pipe(W):Bt instanceof Promise?pt(()=>new Promise((vn,bn)=>Bt.then($n=>pt(()=>vn($n)),$n=>pt(()=>bn($n))))):"function"==typeof Bt&&at?function(){return setTimeout(()=>{at&&"scheduled"===at.state&&at.invoke()},10),Bt.apply(this,arguments)}:pt(()=>Bt)}},4341:(En,bt,B)=>{"use strict";B.d(bt,{YN:()=>da,zX:()=>ci,VZ:()=>Go,cz:()=>Ke,kq:()=>Qe,vO:()=>Ot,BC:()=>gn,vS:()=>sr});var g=B(4438),d=B(177),ge=B(8455),Oe=B(1985),X=B(3073),Ee=B(8750),re=B(3794),Ze=B(4360),Je=B(6450),De=B(8496),Fe=B(6354);let $e=(()=>{var L;class P{constructor($,Te){this._renderer=$,this._elementRef=Te,this.onChange=nn=>{},this.onTouched=()=>{}}setProperty($,Te){this._renderer.setProperty(this._elementRef.nativeElement,$,Te)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT))},L.\u0275dir=g.FsC({type:L}),P})(),Le=(()=>{var L;class P extends $e{}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,features:[g.Vt3]}),P})();const Qe=new g.nKC(""),st={provide:Qe,useExisting:(0,g.Rfq)(()=>vt),multi:!0},mt=new g.nKC("");let vt=(()=>{var L;class P extends $e{constructor($,Te,nn){super($,Te),this._compositionMode=nn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mt(){const L=(0,d.QT)()?(0,d.QT)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue($){this.setProperty("value",null==$?"":$)}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(mt,8))},L.\u0275dir=g.FsC({type:L,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($,Te){1&$&&g.bIt("input",function(On){return Te._handleInput(On.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(On){return Te._compositionEnd(On.target.value)})},features:[g.Jv_([st]),g.Vt3]}),P})();function Me(L){return null==L||("string"==typeof L||Array.isArray(L))&&0===L.length}const Ke=new g.nKC(""),Ct=new g.nKC("");function j(L){return null}function W(L){return null!=L}function te(L){return(0,g.jNT)(L)?(0,ge.H)(L):L}function de(L){let P={};return L.forEach(ce=>{P=null!=ce?{...P,...ce}:P}),0===Object.keys(P).length?null:P}function ae(L,P){return P.map(ce=>ce(L))}function Ce(L){return L.map(P=>function me(L){return!L.validate}(P)?P:ce=>P.validate(ce))}function kt(L){return null!=L?function at(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return de(ae(ce,P))}}(Ce(L)):null}function vn(L){return null!=L?function Bt(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return function _e(...L){const P=(0,re.ms)(L),{args:ce,keys:$}=(0,X.D)(L),Te=new Oe.c(nn=>{const{length:On}=ce;if(!On)return void nn.complete();const rr=new Array(On);let Ji=On,ao=On;for(let eo=0;eo{Qo||(Qo=!0,ao--),rr[eo]=Na},()=>Ji--,void 0,()=>{(!Ji||!Qo)&&(ao||nn.next($?(0,De.e)($,rr):rr),nn.complete())}))}});return P?Te.pipe((0,Je.I)(P)):Te}(ae(ce,P).map(te)).pipe((0,Fe.T)(de))}}(Ce(L)):null}function bn(L,P){return null===L?[P]:Array.isArray(L)?[...L,P]:[L,P]}function er(L){return L?Array.isArray(L)?L:[L]:[]}function yn(L,P){return Array.isArray(L)?L.includes(P):L===P}function ir(L,P){const ce=er(P);return er(L).forEach(Te=>{yn(ce,Te)||ce.push(Te)}),ce}function Yn(L,P){return er(P).filter(ce=>!yn(L,ce))}class Ve{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(P){this._rawValidators=P||[],this._composedValidatorFn=kt(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=vn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P=void 0){this.control&&this.control.reset(P)}hasError(P,ce){return!!this.control&&this.control.hasError(P,ce)}getError(P,ce){return this.control?this.control.getError(P,ce):null}}class yt extends Ve{get formDirective(){return null}get path(){return null}}class Ot extends Ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Xt{constructor(P){this._cd=P}get isTouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.touched)}get isUntouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.untouched)}get isPristine(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pristine)}get isDirty(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.dirty)}get isValid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.valid)}get isInvalid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.invalid)}get isPending(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pending)}get isSubmitted(){var P;return!(null===(P=this._cd)||void 0===P||!P.submitted)}}let gn=(()=>{var L;class P extends Xt{constructor($){super($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(Ot,2))},L.\u0275dir=g.FsC({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Te){2&$&&g.AVh("ng-untouched",Te.isUntouched)("ng-touched",Te.isTouched)("ng-pristine",Te.isPristine)("ng-dirty",Te.isDirty)("ng-valid",Te.isValid)("ng-invalid",Te.isInvalid)("ng-pending",Te.isPending)},features:[g.Vt3]}),P})();const oe="VALID",He="INVALID",ct="PENDING",Xe="DISABLED";function rt(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}class Wn{constructor(P,ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(P),this._assignAsyncValidators(ce)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===oe}get invalid(){return this.status===He}get pending(){return this.status==ct}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._assignValidators(P)}setAsyncValidators(P){this._assignAsyncValidators(P)}addValidators(P){this.setValidators(ir(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(ir(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(Yn(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(Yn(P,this._rawAsyncValidators))}hasValidator(P){return yn(this._rawValidators,P)}hasAsyncValidator(P){return yn(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ce=>{ce.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ce=>{ce.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=ct,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=Xe,this.errors=null,this._forEachChild($=>{$.disable({...P,onlySelf:!0})}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!0))}enable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=oe,this._forEachChild($=>{$.enable({...P,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}getRawValue(){return this.value}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===oe||this.status===ct)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(ce=>ce._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:oe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=ct,this._hasOwnPendingAsyncValidator=!0;const ce=te(this.asyncValidator(this));this._asyncValidationSubscription=ce.subscribe($=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,ce={}){this.errors=P,this._updateControlsErrors(!1!==ce.emitEvent)}get(P){let ce=P;return null==ce||(Array.isArray(ce)||(ce=ce.split(".")),0===ce.length)?null:ce.reduce(($,Te)=>$&&$._find(Te),this)}getError(P,ce){const $=ce?this.get(ce):this;return $&&$.errors?$.errors[P]:null}hasError(P,ce){return!!this.getError(P,ce)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ct)?ct:this._anyControlsHaveStatus(He)?He:oe}_anyControlsHaveStatus(P){return this._anyControls(ce=>ce.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){rt(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(P){return null}_assignValidators(P){this._rawValidators=Array.isArray(P)?P.slice():P,this._composedValidatorFn=function he(L){return Array.isArray(L)?kt(L):L||null}(this._rawValidators)}_assignAsyncValidators(P){this._rawAsyncValidators=Array.isArray(P)?P.slice():P,this._composedAsyncValidatorFn=function Et(L){return Array.isArray(L)?vn(L):L||null}(this._rawAsyncValidators)}}const Ei=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ii}),ii="always";function Ui(L,P,ce=ii){var $,Te;(function gi(L,P){const ce=function $n(L){return L._rawValidators}(L);null!==P.validator?L.setValidators(bn(ce,P.validator)):"function"==typeof ce&&L.setValidators([ce]);const $=function qn(L){return L._rawAsyncValidators}(L);null!==P.asyncValidator?L.setAsyncValidators(bn($,P.asyncValidator)):"function"==typeof $&&L.setAsyncValidators([$]);const Te=()=>L.updateValueAndValidity();Hi(P._rawValidators,Te),Hi(P._rawAsyncValidators,Te)})(L,P),P.valueAccessor.writeValue(L.value),(L.disabled||"always"===ce)&&(null===($=(Te=P.valueAccessor).setDisabledState)||void 0===$||$.call(Te,L.disabled)),function lt(L,P){P.valueAccessor.registerOnChange(ce=>{L._pendingValue=ce,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&fn(L,P)})}(L,P),function Kn(L,P){const ce=($,Te)=>{P.valueAccessor.writeValue($),Te&&P.viewToModelUpdate($)};L.registerOnChange(ce),P._registerOnDestroy(()=>{L._unregisterOnChange(ce)})}(L,P),function Ut(L,P){P.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&fn(L,P),"submit"!==L.updateOn&&L.markAsTouched()})}(L,P),function wi(L,P){if(P.valueAccessor.setDisabledState){const ce=$=>{P.valueAccessor.setDisabledState($)};L.registerOnDisabledChange(ce),P._registerOnDestroy(()=>{L._unregisterOnDisabledChange(ce)})}}(L,P)}function Hi(L,P){L.forEach(ce=>{ce.registerOnValidatorChange&&ce.registerOnValidatorChange(P)})}function fn(L,P){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function xi(L,P){const ce=L.indexOf(P);ce>-1&&L.splice(ce,1)}function mi(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}Promise.resolve();const Si=class extends Wn{constructor(P=null,ce,$){super(function ie(L){return(rt(L)?L.validators:L)||null}(ce),function Pe(L,P){return(rt(P)?P.asyncValidators:L)||null}($,ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(ce)&&(ce.nonNullable||ce.initialValueIsDefault)&&(this.defaultValue=mi(P)?P.value:P)}setValue(P,ce={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==ce.emitModelToViewChange&&this._onChange.forEach($=>$(this.value,!1!==ce.emitViewToModelChange)),this.updateValueAndValidity(ce)}patchValue(P,ce={}){this.setValue(P,ce)}reset(P=this.defaultValue,ce={}){this._applyFormState(P),this.markAsPristine(ce),this.markAsUntouched(ce),this.setValue(this.value,ce),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){xi(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){xi(this._onDisabledChange,P)}_forEachChild(P){}_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(P){mi(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}},ps={provide:Ot,useExisting:(0,g.Rfq)(()=>sr)},si=Promise.resolve();let sr=(()=>{var L;class P extends Ot{constructor($,Te,nn,On,rr,Ji){super(),this._changeDetectorRef=rr,this.callSetDisabledState=Ji,this.control=new Si,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=$,this._setValidators(Te),this._setAsyncValidators(nn),this.valueAccessor=function Hn(L,P){if(!P)return null;let ce,$,Te;return Array.isArray(P),P.forEach(nn=>{nn.constructor===vt?ce=nn:function Pn(L){return Object.getPrototypeOf(L.constructor)===Le}(nn)?$=nn:Te=nn}),Te||$||ce||null}(0,On)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Te=$.name.previousValue;this.formDirective.removeControl({name:Te,path:this._getPath(Te)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),function cn(L,P){if(!L.hasOwnProperty("model"))return!1;const ce=L.model;return!!ce.isFirstChange()||!Object.is(P,ce.currentValue)}($,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($){this.viewModel=$,this.update.emit($)}_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(){Ui(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($){si.then(()=>{var Te;this.control.setValue($,{emitViewToModelChange:!1}),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()})}_updateDisabled($){const Te=$.isDisabled.currentValue,nn=0!==Te&&(0,g.L39)(Te);si.then(()=>{var On;nn&&!this.control.disabled?this.control.disable():!nn&&this.control.disabled&&this.control.enable(),null===(On=this._changeDetectorRef)||void 0===On||On.markForCheck()})}_getPath($){return this._parent?function pi(L,P){return[...P.path,L]}($,this._parent):[$]}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(yt,9),g.rXU(Ke,10),g.rXU(Ct,10),g.rXU(Qe,10),g.rXU(g.gRc,8),g.rXU(Ei,8))},L.\u0275dir=g.FsC({type:L,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_([ps]),g.Vt3,g.OA$]}),P})();function nr(L){return"number"==typeof L?L:parseFloat(L)}let li=(()=>{var L;class P{constructor(){this._validator=j}ngOnChanges($){if(this.inputName in $){const Te=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Te),this._validator=this._enabled?this.createValidator(Te):j,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275dir=g.FsC({type:L,features:[g.OA$]}),P})();const vi={provide:Ke,useExisting:(0,g.Rfq)(()=>ci),multi:!0};let ci=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>nr($),this.createValidator=$=>function Vt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce>L?{max:{max:L,actual:P.value}}:null}}($)}}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("max",Te._enabled?Te.max:null)},inputs:{max:"max"},features:[g.Jv_([vi]),g.Vt3]}),P})();const no={provide:Ke,useExisting:(0,g.Rfq)(()=>Go),multi:!0};let Go=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>nr($),this.createValidator=$=>function Tt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("min",Te._enabled?Te.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),P})(),ms=(()=>{var L;class P{}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({}),P})(),da=(()=>{var L;class P{static withConfig($){var Te;return{ngModule:P,providers:[{provide:Ei,useValue:null!==(Te=$.callSetDisabledState)&&void 0!==Te?Te:ii}]}}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({imports:[ms]}),P})()},345:(En,bt,B)=>{"use strict";B.d(bt,{Bb:()=>er,hE:()=>Yn,sG:()=>vn});var g=B(4438),d=B(177);class ge extends d.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends ge{static makeCurrent(){(0,d.ZD)(new Oe)}onAndCancel(He,ct,Xe){return He.addEventListener(ct,Xe),()=>{He.removeEventListener(ct,Xe)}}dispatchEvent(He,ct){He.dispatchEvent(ct)}remove(He){He.parentNode&&He.parentNode.removeChild(He)}createElement(He,ct){return(ct=ct||this.getDefaultDocument()).createElement(He)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(He){return He.nodeType===Node.ELEMENT_NODE}isShadowRoot(He){return He instanceof DocumentFragment}getGlobalEventTarget(He,ct){return"window"===ct?window:"document"===ct?He:"body"===ct?He.body:null}getBaseHref(He){const ct=function Ee(){return X=X||document.querySelector("base"),X?X.getAttribute("href"):null}();return null==ct?null:function re(oe){return new URL(oe,document.baseURI).pathname}(ct)}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}getCookie(He){return(0,d._b)(document.cookie,He)}}let X=null,Je=(()=>{var oe;class He{build(){return new XMLHttpRequest}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const De=new g.nKC("");let _e=(()=>{var oe;class He{constructor(Xe,ie){this._zone=ie,this._eventNameToPlugin=new Map,Xe.forEach(he=>{he.manager=this}),this._plugins=Xe.slice().reverse()}addEventListener(Xe,ie,he){return this._findPluginFor(ie).addEventListener(Xe,ie,he)}getZone(){return this._zone}_findPluginFor(Xe){let ie=this._eventNameToPlugin.get(Xe);if(ie)return ie;if(ie=this._plugins.find(Pe=>Pe.supports(Xe)),!ie)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(Xe,ie),ie}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(De),g.KVO(g.SKi))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class Fe{constructor(He){this._doc=He}}const $e="ng-app-id";let Le=(()=>{var oe;class He{constructor(Xe,ie,he,Pe={}){this.doc=Xe,this.appId=ie,this.nonce=he,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.Vy)(Pe),this.resetHostNodes()}addStyles(Xe){for(const ie of Xe)1===this.changeUsageCount(ie,1)&&this.onStyleAdded(ie)}removeStyles(Xe){for(const ie of Xe)this.changeUsageCount(ie,-1)<=0&&this.onStyleRemoved(ie)}ngOnDestroy(){const Xe=this.styleNodesInDOM;Xe&&(Xe.forEach(ie=>ie.remove()),Xe.clear());for(const ie of this.getAllStyles())this.onStyleRemoved(ie);this.resetHostNodes()}addHost(Xe){this.hostNodes.add(Xe);for(const ie of this.getAllStyles())this.addStyleToHost(Xe,ie)}removeHost(Xe){this.hostNodes.delete(Xe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Xe){for(const ie of this.hostNodes)this.addStyleToHost(ie,Xe)}onStyleRemoved(Xe){var ie;const he=this.styleRef;null===(ie=he.get(Xe))||void 0===ie||null===(ie=ie.elements)||void 0===ie||ie.forEach(Pe=>Pe.remove()),he.delete(Xe)}collectServerRenderedStyles(){var Xe;const ie=null===(Xe=this.doc.head)||void 0===Xe?void 0:Xe.querySelectorAll(`style[${$e}="${this.appId}"]`);if(null!=ie&&ie.length){const he=new Map;return ie.forEach(Pe=>{null!=Pe.textContent&&he.set(Pe.textContent,Pe)}),he}return null}changeUsageCount(Xe,ie){const he=this.styleRef;if(he.has(Xe)){const Pe=he.get(Xe);return Pe.usage+=ie,Pe.usage}return he.set(Xe,{usage:ie,elements:[]}),ie}getStyleElement(Xe,ie){const he=this.styleNodesInDOM,Pe=null==he?void 0:he.get(ie);if((null==Pe?void 0:Pe.parentNode)===Xe)return he.delete(ie),Pe.removeAttribute($e),Pe;{const Et=this.doc.createElement("style");return this.nonce&&Et.setAttribute("nonce",this.nonce),Et.textContent=ie,this.platformIsServer&&Et.setAttribute($e,this.appId),Xe.appendChild(Et),Et}}addStyleToHost(Xe,ie){var he;const Pe=this.getStyleElement(Xe,ie),Et=this.styleRef,rt=null===(he=Et.get(ie))||void 0===he?void 0:he.elements;rt?rt.push(Pe):Et.set(ie,{elements:[Pe],usage:1})}resetHostNodes(){const Xe=this.hostNodes;Xe.clear(),Xe.add(this.doc.head)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const Qe={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/"},ft=/%COMP%/g,vt=new g.nKC("",{providedIn:"root",factory:()=>!0});function Ke(oe,He){return He.map(ct=>ct.replace(ft,oe))}let Ct=(()=>{var oe;class He{constructor(Xe,ie,he,Pe,Et,rt,dn,Sn=null){this.eventManager=Xe,this.sharedStylesHost=ie,this.appId=he,this.removeStylesOnCompDestroy=Pe,this.doc=Et,this.platformId=rt,this.ngZone=dn,this.nonce=Sn,this.rendererByCompId=new Map,this.platformIsServer=(0,d.Vy)(rt),this.defaultRenderer=new xt(Xe,Et,dn,this.platformIsServer)}createRenderer(Xe,ie){if(!Xe||!ie)return this.defaultRenderer;this.platformIsServer&&ie.encapsulation===g.gXe.ShadowDom&&(ie={...ie,encapsulation:g.gXe.Emulated});const he=this.getOrCreateRenderer(Xe,ie);return he instanceof Be?he.applyToHost(Xe):he instanceof Dt&&he.applyStyles(),he}getOrCreateRenderer(Xe,ie){const he=this.rendererByCompId;let Pe=he.get(ie.id);if(!Pe){const Et=this.doc,rt=this.ngZone,dn=this.eventManager,Sn=this.sharedStylesHost,Wn=this.removeStylesOnCompDestroy,gr=this.platformIsServer;switch(ie.encapsulation){case g.gXe.Emulated:Pe=new Be(dn,Sn,ie,this.appId,Wn,Et,rt,gr);break;case g.gXe.ShadowDom:return new Zt(dn,Sn,Xe,ie,Et,rt,this.nonce,gr);default:Pe=new Dt(dn,Sn,ie,Wn,Et,rt,gr)}he.set(ie.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(_e),g.KVO(Le),g.KVO(g.sZ2),g.KVO(vt),g.KVO(d.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class xt{constructor(He,ct,Xe,ie){this.eventManager=He,this.doc=ct,this.ngZone=Xe,this.platformIsServer=ie,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(He,ct){return ct?this.doc.createElementNS(Qe[ct]||ct,He):this.doc.createElement(He)}createComment(He){return this.doc.createComment(He)}createText(He){return this.doc.createTextNode(He)}appendChild(He,ct){(Vt(He)?He.content:He).appendChild(ct)}insertBefore(He,ct,Xe){He&&(Vt(He)?He.content:He).insertBefore(ct,Xe)}removeChild(He,ct){He&&He.removeChild(ct)}selectRootElement(He,ct){let Xe="string"==typeof He?this.doc.querySelector(He):He;if(!Xe)throw new g.wOt(-5104,!1);return ct||(Xe.textContent=""),Xe}parentNode(He){return He.parentNode}nextSibling(He){return He.nextSibling}setAttribute(He,ct,Xe,ie){if(ie){ct=ie+":"+ct;const he=Qe[ie];he?He.setAttributeNS(he,ct,Xe):He.setAttribute(ct,Xe)}else He.setAttribute(ct,Xe)}removeAttribute(He,ct,Xe){if(Xe){const ie=Qe[Xe];ie?He.removeAttributeNS(ie,ct):He.removeAttribute(`${Xe}:${ct}`)}else He.removeAttribute(ct)}addClass(He,ct){He.classList.add(ct)}removeClass(He,ct){He.classList.remove(ct)}setStyle(He,ct,Xe,ie){ie&(g.czy.DashCase|g.czy.Important)?He.style.setProperty(ct,Xe,ie&g.czy.Important?"important":""):He.style[ct]=Xe}removeStyle(He,ct,Xe){Xe&g.czy.DashCase?He.style.removeProperty(ct):He.style[ct]=""}setProperty(He,ct,Xe){null!=He&&(He[ct]=Xe)}setValue(He,ct){He.nodeValue=ct}listen(He,ct,Xe){if("string"==typeof He&&!(He=(0,d.QT)().getGlobalEventTarget(this.doc,He)))throw new Error(`Unsupported event target ${He} for event ${ct}`);return this.eventManager.addEventListener(He,ct,this.decoratePreventDefault(Xe))}decoratePreventDefault(He){return ct=>{if("__ngUnwrap__"===ct)return He;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>He(ct)):He(ct))&&ct.preventDefault()}}}function Vt(oe){return"TEMPLATE"===oe.tagName&&void 0!==oe.content}class Zt extends xt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){super(He,he,Pe,rt),this.sharedStylesHost=ct,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const dn=Ke(ie.id,ie.styles);for(const Sn of dn){const Wn=document.createElement("style");Et&&Wn.setAttribute("nonce",Et),Wn.textContent=Sn,this.shadowRoot.appendChild(Wn)}}nodeOrShadowRoot(He){return He===this.hostEl?this.shadowRoot:He}appendChild(He,ct){return super.appendChild(this.nodeOrShadowRoot(He),ct)}insertBefore(He,ct,Xe){return super.insertBefore(this.nodeOrShadowRoot(He),ct,Xe)}removeChild(He,ct){return super.removeChild(this.nodeOrShadowRoot(He),ct)}parentNode(He){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(He)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Dt extends xt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){super(He,he,Pe,Et),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=ie,this.styles=rt?Ke(rt,Xe.styles):Xe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Be extends Dt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){const dn=ie+"-"+Xe.id;super(He,ct,Xe,he,Pe,Et,rt,dn),this.contentAttr=function Me(oe){return"_ngcontent-%COMP%".replace(ft,oe)}(dn),this.hostAttr=function je(oe){return"_nghost-%COMP%".replace(ft,oe)}(dn)}applyToHost(He){this.applyStyles(),this.setAttribute(He,this.hostAttr,"")}createElement(He,ct){const Xe=super.createElement(He,ct);return super.setAttribute(Xe,this.contentAttr,""),Xe}}let rn=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return!0}addEventListener(Xe,ie,he){return Xe.addEventListener(ie,he,!1),()=>this.removeEventListener(Xe,ie,he)}removeEventListener(Xe,ie,he){return Xe.removeEventListener(ie,he)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const pt=["alt","control","meta","shift"],ye={"\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:oe=>oe.altKey,control:oe=>oe.ctrlKey,meta:oe=>oe.metaKey,shift:oe=>oe.shiftKey};let W=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return null!=He.parseEventName(Xe)}addEventListener(Xe,ie,he){const Pe=He.parseEventName(ie),Et=He.eventCallback(Pe.fullKey,he,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.QT)().onAndCancel(Xe,Pe.domEventName,Et))}static parseEventName(Xe){const ie=Xe.toLowerCase().split("."),he=ie.shift();if(0===ie.length||"keydown"!==he&&"keyup"!==he)return null;const Pe=He._normalizeKey(ie.pop());let Et="",rt=ie.indexOf("code");if(rt>-1&&(ie.splice(rt,1),Et="code."),pt.forEach(Sn=>{const Wn=ie.indexOf(Sn);Wn>-1&&(ie.splice(Wn,1),Et+=Sn+".")}),Et+=Pe,0!=ie.length||0===Pe.length)return null;const dn={};return dn.domEventName=he,dn.fullKey=Et,dn}static matchEventFullKeyCode(Xe,ie){let he=ye[Xe.key]||Xe.key,Pe="";return ie.indexOf("code.")>-1&&(he=Xe.code,Pe="code."),!(null==he||!he)&&(he=he.toLowerCase()," "===he?he="space":"."===he&&(he="dot"),pt.forEach(Et=>{Et!==he&&(0,j[Et])(Xe)&&(Pe+=Et+".")}),Pe+=he,Pe===ie)}static eventCallback(Xe,ie,he){return Pe=>{He.matchEventFullKeyCode(Pe,Xe)&&he.runGuarded(()=>ie(Pe))}}static _normalizeKey(Xe){return"esc"===Xe?"escape":Xe}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const vn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:d.AJ},{provide:g.PLl,useValue:function Ce(){Oe.makeCurrent()},multi:!0},{provide:d.qQ,useFactory:function kt(){return(0,g.TL$)(document),document},deps:[]}]),bn=new g.nKC(""),$n=[{provide:g.e01,useClass:class Ze{addToWindow(He){g.JZv.getAngularTestability=(Xe,ie=!0)=>{const he=He.findTestabilityInTree(Xe,ie);if(null==he)throw new g.wOt(5103,!1);return he},g.JZv.getAllAngularTestabilities=()=>He.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>He.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(Xe=>{const ie=g.JZv.getAllAngularTestabilities();let he=ie.length;const Pe=function(){he--,0==he&&Xe()};ie.forEach(Et=>{Et.whenStable(Pe)})})}findTestabilityInTree(He,ct,Xe){if(null==ct)return null;const ie=He.getTestability(ct);return null!=ie?ie:Xe?(0,d.QT)().isShadowRoot(ct)?this.findTestabilityInTree(He,ct.host,!0):this.findTestabilityInTree(He,ct.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]}],qn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function at(){return new g.zcH},deps:[]},{provide:De,useClass:rn,multi:!0,deps:[d.qQ,g.SKi,g.Agw]},{provide:De,useClass:W,multi:!0,deps:[d.qQ]},Ct,Le,_e,{provide:g._9s,useExisting:Ct},{provide:d.N0,useClass:Je,deps:[]},[]];let er=(()=>{var oe;class He{constructor(Xe){}static withServerTransition(Xe){return{ngModule:He,providers:[{provide:g.sZ2,useValue:Xe.appId}]}}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(bn,12))},oe.\u0275mod=g.$C({type:oe}),oe.\u0275inj=g.G2t({providers:[...qn,...$n],imports:[d.MD,g.Hbi]}),He})(),Yn=(()=>{var oe;class He{constructor(Xe){this._doc=Xe}getTitle(){return this._doc.title}setTitle(Xe){this._doc.title=Xe||""}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),He})()},845:(En,bt,B)=>{"use strict";B.d(bt,{nX:()=>ne,Zp:()=>S,wF:()=>Si,Z:()=>mi,Xk:()=>yn,Kp:()=>Ua,b:()=>Zr,Ix:()=>Fi,Wk:()=>Uo,iI:()=>Mu,Sd:()=>Qr});var g=B(467),d=B(4438),ge=B(1985),Oe=B(8071),Ee=B(8455),re=B(7673),Ze=B(4412),Je=B(4572);const _e=(0,B(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Fe=B(1397),$e=B(3669);function Le(I=1/0){return(0,Fe.Z)($e.D,I)}var ft=B(3794);function ut(...I){return function Qe(){return Le(1)}()((0,Ee.H)(I,(0,ft.lI)(I)))}var st=B(8750);function Mt(I){return new ge.c(T=>{(0,st.Tg)(I()).subscribe(T)})}var mt=B(1203);function vt(I,T){const R=(0,Oe.T)(I)?I:()=>I,C=x=>x.error(R());return new ge.c(T?x=>T.schedule(C,0,x):C)}var Me=B(983),je=B(8359),Ke=B(9974),Ct=B(4360);function xt(){return(0,Ke.N)((I,T)=>{let R=null;I._refCount++;const C=(0,Ct._)(T,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const x=I._connection,J=R;R=null,x&&(!J||x===J)&&x.unsubscribe(),T.unsubscribe()});I.subscribe(C),C.closed||(R=I.connect())})}class ze extends ge.c{constructor(T,R){super(),this.source=T,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Ke.S)(T)&&(this.lift=T.lift)}_subscribe(T){return this.getSubject().subscribe(T)}getSubject(){const T=this._subject;return(!T||T.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:T}=this;this._subject=this._connection=null,null==T||T.unsubscribe()}connect(){let T=this._connection;if(!T){T=this._connection=new je.yU;const R=this.getSubject();T.add(this.source.subscribe((0,Ct._)(R,void 0,()=>{this._teardown(),R.complete()},C=>{this._teardown(),R.error(C)},()=>this._teardown()))),T.closed&&(this._connection=null,T=je.yU.EMPTY)}return T}refCount(){return xt()(this)}}var Tt=B(1413),Vt=B(177),Zt=B(6354),Dt=B(5558),Be=B(6697),pt=B(5964);function ye(I){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>{C||R.next(I),R.complete()}))})}function j(I=W){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>C?R.complete():R.error(I())))})}function W(){return new _e}function te(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,(0,Be.s)(1),R?ye(T):j(()=>new _e))}function de(I,T){return(0,Oe.T)(T)?(0,Fe.Z)(I,T,1):(0,Fe.Z)(I,1)}var ae=B(8141);function me(I){return(0,Ke.N)((T,R)=>{let J,C=null,x=!1;C=T.subscribe((0,Ct._)(R,void 0,void 0,ve=>{J=(0,st.Tg)(I(ve,me(I)(T))),C?(C.unsubscribe(),C=null,J.subscribe(R)):x=!0})),x&&(C.unsubscribe(),C=null,J.subscribe(R))})}function kt(I){return I<=0?()=>Me.w:(0,Ke.N)((T,R)=>{let C=[];T.subscribe((0,Ct._)(R,x=>{C.push(x),I{for(const x of C)R.next(x);R.complete()},void 0,()=>{C=null}))})}function bn(I){return(0,Ke.N)((T,R)=>{try{T.subscribe(R)}finally{R.add(I)}})}var $n=B(5343),er=B(345);const yn="primary",ir=Symbol("RouteTitle");class Yn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R[0]:R}return null}getAll(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function Ve(I){return new Yn(I)}function yt(I,T,R){const C=R.path.split("/");if(C.length>I.length||"full"===R.pathMatch&&(T.hasChildren()||C.lengthC[J]===x)}return I===T}function gn(I){return I.length>0?I[I.length-1]:null}function mn(I){return function X(I){return!!I&&(I instanceof ge.c||(0,Oe.T)(I.lift)&&(0,Oe.T)(I.subscribe))}(I)?I:(0,d.jNT)(I)?(0,Ee.H)(Promise.resolve(I)):(0,re.of)(I)}const Jt={exact:function kr(I,T,R){if(!Er(I.segments,T.segments)||!ni(I.segments,T.segments,R)||I.numberOfChildren!==T.numberOfChildren)return!1;for(const C in T.children)if(!I.children[C]||!kr(I.children[C],T.children[C],R))return!1;return!0},subset:_r},Gt={exact:function wr(I,T){return Xt(I,T)},subset:function Mr(I,T){return Object.keys(T).length<=Object.keys(I).length&&Object.keys(T).every(R=>Ir(I[R],T[R]))},ignored:()=>!0};function pr(I,T,R){return Jt[R.paths](I.root,T.root,R.matrixParams)&&Gt[R.queryParams](I.queryParams,T.queryParams)&&!("exact"===R.fragment&&I.fragment!==T.fragment)}function _r(I,T,R){return Bn(I,T,T.segments,R)}function Bn(I,T,R,C){if(I.segments.length>R.length){const x=I.segments.slice(0,R.length);return!(!Er(x,R)||T.hasChildren()||!ni(x,R,C))}if(I.segments.length===R.length){if(!Er(I.segments,R)||!ni(I.segments,R,C))return!1;for(const x in T.children)if(!I.children[x]||!_r(I.children[x],T.children[x],C))return!1;return!0}{const x=R.slice(0,I.segments.length),J=R.slice(I.segments.length);return!!(Er(I.segments,x)&&ni(I.segments,x,C)&&I.children[yn])&&Bn(I.children[yn],T,J,C)}}function ni(I,T,R){return T.every((C,x)=>Gt[R](I[x].parameters,C.parameters))}class Zn{constructor(T=new wn([],{}),R={},C=null){this.root=T,this.queryParams=R,this.fragment=C}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class wn{constructor(T,R){this.segments=T,this.children=R,this.parent=null,Object.values(R).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return He(this)}}class Sr{constructor(T,R){this.path=T,this.parameters=R}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=Ve(this.parameters)),this._parameterMap}toString(){return dn(this)}}function Er(I,T){return I.length===T.length&&I.every((R,C)=>R.path===T[C].path)}let Qr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>new Yr,providedIn:"root"}),T})();class Yr{parse(T){const R=new pi(T);return new Zn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(T){const R=`/${ct(T.root,!0)}`,C=function Wn(I){const T=Object.entries(I).map(([R,C])=>Array.isArray(C)?C.map(x=>`${ie(R)}=${ie(x)}`).join("&"):`${ie(R)}=${ie(C)}`).filter(R=>R);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${R}${C}${"string"==typeof T.fragment?`#${function he(I){return encodeURI(I)}(T.fragment)}`:""}`}}const oe=new Yr;function He(I){return I.segments.map(T=>dn(T)).join("/")}function ct(I,T){if(!I.hasChildren())return He(I);if(T){const R=I.children[yn]?ct(I.children[yn],!1):"",C=[];return Object.entries(I.children).forEach(([x,J])=>{x!==yn&&C.push(`${x}:${ct(J,!1)}`)}),C.length>0?`${R}(${C.join("//")})`:R}{const R=function Mi(I,T){let R=[];return Object.entries(I.children).forEach(([C,x])=>{C===yn&&(R=R.concat(T(x,C)))}),Object.entries(I.children).forEach(([C,x])=>{C!==yn&&(R=R.concat(T(x,C)))}),R}(I,(C,x)=>x===yn?[ct(I.children[yn],!1)]:[`${x}:${ct(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[yn]?`${He(I)}/${R[0]}`:`${He(I)}/(${R.join("//")})`}}function Xe(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ie(I){return Xe(I).replace(/%3B/gi,";")}function Pe(I){return Xe(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(I){return decodeURIComponent(I)}function rt(I){return Et(I.replace(/\+/g,"%20"))}function dn(I){return`${Pe(I.path)}${function Sn(I){return Object.entries(I).map(([T,R])=>`;${Pe(T)}=${Pe(R)}`).join("")}(I.parameters)}`}const gr=/^[^\/()?;#]+/;function ur(I){const T=I.match(gr);return T?T[0]:""}const ri=/^[^\/()?;=#]+/,Rn=/^[^=?&#]+/,Ei=/^[^&#]+/;class pi{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(T.length>0||Object.keys(R).length>0)&&(C[yn]=new wn(T,R)),C}parseSegment(){const T=ur(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new d.wOt(4009,!1);return this.capture(T),new Sr(Et(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const R=function xn(I){const T=I.match(ri);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const x=ur(this.remaining);x&&(C=x,this.capture(C))}T[Et(R)]=Et(C)}parseQueryParam(T){const R=function yr(I){const T=I.match(Rn);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const ve=function ii(I){const T=I.match(Ei);return T?T[0]:""}(this.remaining);ve&&(C=ve,this.capture(C))}const x=rt(R),J=rt(C);if(T.hasOwnProperty(x)){let ve=T[x];Array.isArray(ve)||(ve=[ve],T[x]=ve),ve.push(J)}else T[x]=J}parseParens(T){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=ur(this.remaining),x=this.remaining[C.length];if("/"!==x&&")"!==x&&";"!==x)throw new d.wOt(4010,!1);let J;C.indexOf(":")>-1?(J=C.slice(0,C.indexOf(":")),this.capture(J),this.capture(":")):T&&(J=yn);const ve=this.parseChildren();R[J]=1===Object.keys(ve).length?ve[yn]:new wn([],ve),this.consumeOptional("//")}return R}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new d.wOt(4011,!1)}}function Ui(I){return I.segments.length>0?new wn([],{[yn]:I}):I}function or(I){const T={};for(const[C,x]of Object.entries(I.children)){const J=or(x);if(C===yn&&0===J.segments.length&&J.hasChildren())for(const[ve,dt]of Object.entries(J.children))T[ve]=dt;else(J.segments.length>0||J.hasChildren())&&(T[C]=J)}return function Hi(I){if(1===I.numberOfChildren&&I.children[yn]){const T=I.children[yn];return new wn(I.segments.concat(T.segments),T.children)}return I}(new wn(I.segments,T))}function wi(I){return I instanceof Zn}function St(I){var T;let R;const J=Ui(function C(ve){const dt={};for(const At of ve.children){const Tn=C(At);dt[At.outlet]=Tn}const Qt=new wn(ve.url,dt);return ve===I&&(R=Qt),Qt}(I.root));return null!==(T=R)&&void 0!==T?T:J}function lt(I,T,R,C){let x=I;for(;x.parent;)x=x.parent;if(0===T.length)return Kn(x,x,x,R,C);const J=function Ne(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new Z(!0,0,I);let T=0,R=!1;const C=I.reduce((x,J,ve)=>{if("object"==typeof J&&null!=J){if(J.outlets){const dt={};return Object.entries(J.outlets).forEach(([Qt,At])=>{dt[Qt]="string"==typeof At?At.split("/"):At}),[...x,{outlets:dt}]}if(J.segmentPath)return[...x,J.segmentPath]}return"string"!=typeof J?[...x,J]:0===ve?(J.split("/").forEach((dt,Qt)=>{0==Qt&&"."===dt||(0==Qt&&""===dt?R=!0:".."===dt?T++:""!=dt&&x.push(dt))}),x):[...x,J]},[]);return new Z(R,T,C)}(T);if(J.toRoot())return Kn(x,x,new wn([],{}),R,C);const ve=function Se(I,T,R){if(I.isAbsolute)return new Q(T,!0,0);if(!R)return new Q(T,!1,NaN);if(null===R.parent)return new Q(R,!0,0);const C=Ut(I.commands[0])?0:1;return function it(I,T,R){let C=I,x=T,J=R;for(;J>x;){if(J-=x,C=C.parent,!C)throw new d.wOt(4005,!1);x=C.segments.length}return new Q(C,!1,x-J)}(R,R.segments.length-1+C,I.numberOfDoubleDots)}(J,x,I),dt=ve.processChildren?Pn(ve.segmentGroup,ve.index,J.commands):cn(ve.segmentGroup,ve.index,J.commands);return Kn(x,ve.segmentGroup,dt,R,C)}function Ut(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function fn(I){return"object"==typeof I&&null!=I&&I.outlets}function Kn(I,T,R,C,x){let ve,J={};C&&Object.entries(C).forEach(([Qt,At])=>{J[Qt]=Array.isArray(At)?At.map(Tn=>`${Tn}`):`${At}`}),ve=I===T?R:Y(I,T,R);const dt=Ui(or(ve));return new Zn(dt,J,x)}function Y(I,T,R){const C={};return Object.entries(I.children).forEach(([x,J])=>{C[x]=J===T?R:Y(J,T,R)}),new wn(I.segments,C)}class Z{constructor(T,R,C){if(this.isAbsolute=T,this.numberOfDoubleDots=R,this.commands=C,T&&C.length>0&&Ut(C[0]))throw new d.wOt(4003,!1);const x=C.find(fn);if(x&&x!==gn(C))throw new d.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Q{constructor(T,R,C){this.segmentGroup=T,this.processChildren=R,this.index=C}}function cn(I,T,R){var C;if(null!==(C=I)&&void 0!==C||(I=new wn([],{})),0===I.segments.length&&I.hasChildren())return Pn(I,T,R);const x=function Cr(I,T,R){let C=0,x=T;const J={match:!1,pathIndex:0,commandIndex:0};for(;x=R.length)return J;const ve=I.segments[x],dt=R[C];if(fn(dt))break;const Qt=`${dt}`,At=C0&&void 0===Qt)break;if(Qt&&At&&"object"==typeof At&&void 0===At.outlets){if(!Pi(Qt,At,ve))return J;C+=2}else{if(!Pi(Qt,{},ve))return J;C++}x++}return{match:!0,pathIndex:x,commandIndex:C}}(I,T,R),J=R.slice(x.commandIndex);if(x.match&&x.pathIndexJ!==yn)&&I.children[yn]&&1===I.numberOfChildren&&0===I.children[yn].segments.length){const J=Pn(I.children[yn],T,R);return new wn(I.segments,J.children)}return Object.entries(C).forEach(([J,ve])=>{"string"==typeof ve&&(ve=[ve]),null!==ve&&(x[J]=cn(I.children[J],T,ve))}),Object.entries(I.children).forEach(([J,ve])=>{void 0===C[J]&&(x[J]=ve)}),new wn(I.segments,x)}}function Hn(I,T,R){const C=I.segments.slice(0,T);let x=0;for(;x{"string"==typeof C&&(C=[C]),null!==C&&(T[R]=Hn(new wn([],{}),0,C))}),T}function Ai(I){const T={};return Object.entries(I).forEach(([R,C])=>T[R]=`${C}`),T}function Pi(I,T,R){return I==R.path&&Xt(T,R.parameters)}const xr="imperative";var An=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}(An||{});class xi{constructor(T,R){this.id=T,this.url=R}}class mi extends xi{constructor(T,R,C="imperative",x=null){super(T,R),this.type=An.NavigationStart,this.navigationTrigger=C,this.restoredState=x}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Si extends xi{constructor(T,R,C){super(T,R),this.urlAfterRedirects=C,this.type=An.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ti=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(ti||{}),mr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(mr||{});class oi extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nn extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationSkipped}}class kn extends xi{constructor(T,R,C,x){super(T,R),this.error=C,this.target=x,this.type=An.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ko extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ei extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bi extends xi{constructor(T,R,C,x,J){super(T,R),this.urlAfterRedirects=C,this.state=x,this.shouldActivate=J,this.type=An.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class is extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class si{constructor(T){this.route=T,this.type=An.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class sr{constructor(T){this.route=T,this.type=An.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Or{constructor(T){this.snapshot=T,this.type=An.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{constructor(T){this.snapshot=T,this.type=An.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(T){this.snapshot=T,this.type=An.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fo{constructor(T){this.snapshot=T,this.type=An.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{constructor(T,R,C){this.routerEvent=T,this.position=R,this.anchor=C,this.type=An.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Co{}class co{constructor(T){this.url=T}}class Ni{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class T{constructor(){this.contexts=new Map}onChildOutletCreated(C,x){const J=this.getOrCreateContext(C);J.outlet=x,this.contexts.set(C,J)}onChildOutletDestroyed(C){const x=this.getContext(C);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let x=this.getContext(C);return x||(x=new Ni,this.contexts.set(C,x)),x}getContext(C){return this.contexts.get(C)||null}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();class H{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const R=this.pathFromRoot(T);return R.length>1?R[R.length-2]:null}children(T){const R=ue(T,this._root);return R?R.children.map(C=>C.value):[]}firstChild(T){const R=ue(T,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(T){const R=M(T,this._root);return R.length<2?[]:R[R.length-2].children.map(x=>x.value).filter(x=>x!==T)}pathFromRoot(T){return M(T,this._root).map(R=>R.value)}}function ue(I,T){if(I===T.value)return T;for(const R of T.children){const C=ue(I,R);if(C)return C}return null}function M(I,T){if(I===T.value)return[T];for(const R of T.children){const C=M(I,R);if(C.length)return C.unshift(T),C}return[]}class fe{constructor(T,R){this.value=T,this.children=R}toString(){return`TreeNode(${this.value})`}}function qe(I){const T={};return I&&I.children.forEach(R=>T[R.value.outlet]=R),T}class ar extends H{constructor(T,R){super(T),this.snapshot=R,et(this,T)}toString(){return this.snapshot.toString()}}function ui(I){const T=function U(I){const J=new ke([],{},{},"",{},yn,I,null,{});return new ot("",new fe(J,[]))}(I),R=new Ze.t([new Sr("",{})]),C=new Ze.t({}),x=new Ze.t({}),J=new Ze.t({}),ve=new Ze.t(""),dt=new ne(R,C,J,ve,x,yn,I,T.root);return dt.snapshot=T.root,new ar(new fe(dt,[]),T)}class ne{constructor(T,R,C,x,J,ve,dt,Qt){var At,Tn;this.urlSubject=T,this.paramsSubject=R,this.queryParamsSubject=C,this.fragmentSubject=x,this.dataSubject=J,this.outlet=ve,this.component=dt,this._futureSnapshot=Qt,this.title=null!==(At=null===(Tn=this.dataSubject)||void 0===Tn?void 0:Tn.pipe((0,Zt.T)(hr=>hr[ir])))&&void 0!==At?At:(0,re.of)(void 0),this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J}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 T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=this.params.pipe((0,Zt.T)(R=>Ve(R)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,Zt.T)(R=>Ve(R)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ae(I,T,R="emptyOnly"){var C;let x;const{routeConfig:J}=I;var ve;return x=null===T||"always"!==R&&""!==(null==J?void 0:J.path)&&(T.component||null!==(C=T.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(ve=I._resolvedData)&&void 0!==ve?ve:{}}}:{params:{...T.params,...I.params},data:{...T.data,...I.data},resolve:{...I.data,...T.data,...null==J?void 0:J.data,...I._resolvedData}},J&&Yt(J)&&(x.resolve[ir]=J.title),x}class ke{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[ir]}constructor(T,R,C,x,J,ve,dt,Qt,At){this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J,this.outlet=ve,this.component=dt,this.routeConfig=Qt,this._resolve=At}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 T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=Ve(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ot extends H{constructor(T,R){super(R),this.url=T,et(this,R)}toString(){return Lt(this._root)}}function et(I,T){T.value._routerState=I,T.children.forEach(R=>et(I,R))}function Lt(I){const T=I.children.length>0?` { ${I.children.map(Lt).join(", ")} } `:"";return`${I.value}${T}`}function zt(I){if(I.snapshot){const T=I.snapshot,R=I._futureSnapshot;I.snapshot=R,Xt(T.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),T.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),Xt(T.params,R.params)||I.paramsSubject.next(R.params),function Ot(I,T){if(I.length!==T.length)return!1;for(let R=0;RXt(R.parameters,T[C].parameters))}(I.url,T.url);return R&&!(!I.parent!=!T.parent)&&(!I.parent||Kt(I.parent,T.parent))}function Yt(I){return"string"==typeof I.title||null===I.title}let _n=(()=>{var I;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=yn,this.activateEvents=new d.bkB,this.deactivateEvents=new d.bkB,this.attachEvents=new d.bkB,this.detachEvents=new d.bkB,this.parentContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(d.c1b),this.changeDetector=(0,d.WQX)(d.gRc),this.environmentInjector=(0,d.WQX)(d.uvJ),this.inputBinder=(0,d.WQX)(Ln,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:x,previousValue:J}=C.name;if(x)return;this.isTrackedInParentContexts(J)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(J)),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 x;return(null===(x=this.parentContexts.getContext(C))||void 0===x?void 0:x.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 d.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.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,x){var J;this.activated=C,this._activatedRoute=x,this.location.insert(C.hostView),null===(J=this.inputBinder)||void 0===J||J.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,x){var J;if(this.isActivated)throw new d.wOt(4013,!1);this._activatedRoute=C;const ve=this.location,Qt=C.snapshot.component,At=this.parentContexts.getOrCreateContext(this.name).children,Tn=new Cn(C,At,ve.injector);this.activated=ve.createComponent(Qt,{index:ve.length,injector:Tn,environmentInjector:null!=x?x:this.environmentInjector}),this.changeDetector.markForCheck(),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275dir=d.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.OA$]}),T})();class Cn{__ngOutletInjector(T){return new Cn(this.route,this.childContexts,T)}constructor(T,R,C){this.route=T,this.childContexts=R,this.parent=C}get(T,R){return T===ne?this.route:T===S?this.childContexts:this.parent.get(T,R)}}const Ln=new d.nKC("");let In=(()=>{var I;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var x;null===(x=this.outletDataSubscriptions.get(C))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:x}=C,J=(0,Je.z)([x.queryParams,x.params,x.data]).pipe((0,Dt.n)(([ve,dt,Qt],At)=>(Qt={...ve,...dt,...Qt},0===At?(0,re.of)(Qt):Promise.resolve(Qt)))).subscribe(ve=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(C);const dt=(0,d.HJs)(x.component);if(dt)for(const{templateName:Qt}of dt.inputs)C.activatedComponentRef.setInput(Qt,ve[Qt]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,J)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function cr(I,T,R){if(R&&I.shouldReuseRoute(T.value,R.value.snapshot)){const C=R.value;C._futureSnapshot=T.value;const x=function nr(I,T,R){return T.children.map(C=>{for(const x of R.children)if(I.shouldReuseRoute(C.value,x.value.snapshot))return cr(I,C,x);return cr(I,C)})}(I,T,R);return new fe(C,x)}{if(I.shouldAttach(T.value)){const J=I.retrieve(T.value);if(null!==J){const ve=J.route;return ve.value._futureSnapshot=T.value,ve.children=T.children.map(dt=>cr(I,dt)),ve}}const C=function li(I){return new ne(new Ze.t(I.url),new Ze.t(I.params),new Ze.t(I.queryParams),new Ze.t(I.fragment),new Ze.t(I.data),I.outlet,I.component,I)}(T.value),x=T.children.map(J=>cr(I,J));return new fe(C,x)}}const vi="ngNavigationCancelingError";function ci(I,T){const{redirectTo:R,navigationBehaviorOptions:C}=wi(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,x=no(!1,ti.Redirect);return x.url=R,x.navigationBehaviorOptions=C,x}function no(I,T){const R=new Error(`NavigationCancelingError: ${I||""}`);return R[vi]=!0,R.cancellationCode=T,R}function dr(I){return!!I&&I[vi]}let Wr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=d.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[d.aNF],decls:1,vars:0,template:function(C,x){1&C&&d.nrm(0,"router-outlet")},dependencies:[_n],encapsulation:2}),T})();function Us(I){const T=I.children&&I.children.map(Us),R=T?{...I,children:T}:{...I};return!R.component&&!R.loadComponent&&(T||R.loadChildren)&&R.outlet&&R.outlet!==yn&&(R.component=Wr),R}function so(I){return I.outlet||yn}function gs(I){var T;if(!I)return null;if(null!==(T=I.routeConfig)&&void 0!==T&&T._injector)return I.routeConfig._injector;for(let R=I.parent;R;R=R.parent){const C=R.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(T,R,C,x,J){this.routeReuseStrategy=T,this.futureState=R,this.currState=C,this.forwardEvent=x,this.inputBindingEnabled=J}activate(T){const R=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,C,T),zt(this.futureState.root),this.activateChildRoutes(R,C,T)}deactivateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{const ve=J.value.outlet;this.deactivateRoutes(J,x[ve],C),delete x[ve]}),Object.values(x).forEach(J=>{this.deactivateRouteAndItsChildren(J,C)})}deactivateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(x===J)if(x.component){const ve=C.getContext(x.outlet);ve&&this.deactivateChildRoutes(T,R,ve.children)}else this.deactivateChildRoutes(T,R,C);else J&&this.deactivateRouteAndItsChildren(R,C)}deactivateRouteAndItsChildren(T,R){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,R):this.deactivateRouteAndOutlet(T,R)}detachAndStoreRouteSubtree(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);if(C&&C.outlet){const ve=C.outlet.detach(),dt=C.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:ve,route:T,contexts:dt})}}deactivateRouteAndOutlet(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{this.activateRoutes(J,x[J.value.outlet],C),this.forwardEvent(new Fo(J.value.snapshot))}),T.children.length&&this.forwardEvent(new ai(T.value.snapshot))}activateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(zt(x),x===J)if(x.component){const ve=C.getOrCreateContext(x.outlet);this.activateChildRoutes(T,R,ve.children)}else this.activateChildRoutes(T,R,C);else if(x.component){const ve=C.getOrCreateContext(x.outlet);if(this.routeReuseStrategy.shouldAttach(x.snapshot)){const dt=this.routeReuseStrategy.retrieve(x.snapshot);this.routeReuseStrategy.store(x.snapshot,null),ve.children.onOutletReAttached(dt.contexts),ve.attachRef=dt.componentRef,ve.route=dt.route.value,ve.outlet&&ve.outlet.attach(dt.componentRef,dt.route.value),zt(dt.route.value),this.activateChildRoutes(T,null,ve.children)}else{const dt=gs(x.snapshot);ve.attachRef=null,ve.route=x,ve.injector=dt,ve.outlet&&ve.outlet.activateWith(x,ve.injector),this.activateChildRoutes(T,null,ve.children)}}else this.activateChildRoutes(T,null,C)}}class ca{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class qo{constructor(T,R){this.component=T,this.route=R}}function bs(I,T,R){const C=I._root;return ji(C,T?T._root:null,R,[C.value])}function bo(I,T){const R=Symbol(),C=T.get(I,R);return C===R?"function"!=typeof I||(0,d.LfX)(I)?T.get(I):I:C}function ji(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=qe(T);return I.children.forEach(ve=>{(function da(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=I.value,ve=T?T.value:null,dt=R?R.getContext(I.value.outlet):null;if(ve&&J.routeConfig===ve.routeConfig){const Qt=function ol(I,T,R){if("function"==typeof R)return R(I,T);switch(R){case"pathParamsChange":return!Er(I.url,T.url);case"pathParamsOrQueryParamsChange":return!Er(I.url,T.url)||!Xt(I.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(I,T)||!Xt(I.queryParams,T.queryParams);default:return!Kt(I,T)}}(ve,J,J.routeConfig.runGuardsAndResolvers);Qt?x.canActivateChecks.push(new ca(C)):(J.data=ve.data,J._resolvedData=ve._resolvedData),ji(I,T,J.component?dt?dt.children:null:R,C,x),Qt&&dt&&dt.outlet&&dt.outlet.isActivated&&x.canDeactivateChecks.push(new qo(dt.outlet.component,ve))}else ve&&L(T,dt,x),x.canActivateChecks.push(new ca(C)),ji(I,null,J.component?dt?dt.children:null:R,C,x)})(ve,J[ve.value.outlet],R,C.concat([ve.value]),x),delete J[ve.value.outlet]}),Object.entries(J).forEach(([ve,dt])=>L(dt,R.getContext(ve),x)),x}function L(I,T,R){const C=qe(I),x=I.value;Object.entries(C).forEach(([J,ve])=>{L(ve,x.component?T?T.children.getContext(J):null:T,R)}),R.canDeactivateChecks.push(new qo(x.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,x))}function P(I){return"function"==typeof I}function Ji(I){return I instanceof _e||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,Dt.n)(I=>(0,Je.z)(I.map(T=>T.pipe((0,Be.s)(1),function rn(...I){const T=(0,ft.lI)(I);return(0,Ke.N)((R,C)=>{(T?ut(I,R,T):ut(I,R)).subscribe(C)})}(ao)))).pipe((0,Zt.T)(T=>{for(const R of T)if(!0!==R){if(R===ao)return ao;if(!1===R||R instanceof Zn)return R}return!0}),(0,pt.p)(T=>T!==ao),(0,Be.s)(1)))}function Jn(I){return(0,mt.F)((0,ae.M)(T=>{if(wi(T))throw ci(0,T)}),(0,Zt.T)(T=>!0===T))}class Ti{constructor(T){this.segmentGroup=T||null}}class ro extends Error{constructor(T){super(),this.urlTree=T}}function Hr(I){return vt(new Ti(I))}class Vl{constructor(T,R){this.urlSerializer=T,this.urlTree=R}lineralizeSegments(T,R){let C=[],x=R.root;for(;;){if(C=C.concat(x.segments),0===x.numberOfChildren)return(0,re.of)(C);if(x.numberOfChildren>1||!x.children[yn])return vt(new d.wOt(4e3,!1));x=x.children[yn]}}applyRedirectCommands(T,R,C){const x=this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),T,C);if(R.startsWith("/"))throw new ro(x);return x}applyRedirectCreateUrlTree(T,R,C,x){const J=this.createSegmentGroup(T,R.root,C,x);return new Zn(J,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(T,R){const C={};return Object.entries(T).forEach(([x,J])=>{if("string"==typeof J&&J.startsWith(":")){const dt=J.substring(1);C[x]=R[dt]}else C[x]=J}),C}createSegmentGroup(T,R,C,x){const J=this.createSegments(T,R.segments,C,x);let ve={};return Object.entries(R.children).forEach(([dt,Qt])=>{ve[dt]=this.createSegmentGroup(T,Qt,C,x)}),new wn(J,ve)}createSegments(T,R,C,x){return R.map(J=>J.path.startsWith(":")?this.findPosParam(T,J,x):this.findOrReturn(J,C))}findPosParam(T,R,C){const x=C[R.path.substring(1)];if(!x)throw new d.wOt(4001,!1);return x}findOrReturn(T,R){let C=0;for(const x of R){if(x.path===T.path)return R.splice(C),x;C++}return T}}const vr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,T,R,C,x){const J=ys(I,T,R);return J.matched?(C=function Wo(I,T){var R;return I.providers&&!I._injector&&(I._injector=(0,d.Ol2)(I.providers,T,`Route: ${I.path}`)),null!==(R=I._injector)&&void 0!==R?R:T}(T,C),function Oi(I,T,R,C){const x=T.canMatch;if(!x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function rr(I){return I&&P(I.canMatch)}(dt)?dt.canMatch(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(C,T,R).pipe((0,Zt.T)(ve=>!0===ve?J:{...vr}))):(0,re.of)(J)}function ys(I,T,R){var C,x;if("**"===T.path)return function ka(I){return{matched:!0,parameters:I.length>0?gn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(R);if(""===T.path)return"full"===T.pathMatch&&(I.hasChildren()||R.length>0)?{...vr}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ve=(T.matcher||yt)(R,I,T);if(!ve)return{...vr};const dt={};Object.entries(null!==(C=ve.posParams)&&void 0!==C?C:{}).forEach(([At,Tn])=>{dt[At]=Tn.path});const Qt=ve.consumed.length>0?{...dt,...ve.consumed[ve.consumed.length-1].parameters}:dt;return{matched:!0,consumedSegments:ve.consumed,remainingSegments:R.slice(ve.consumed.length),parameters:Qt,positionalParamSegments:null!==(x=ve.posParams)&&void 0!==x?x:{}}}function js(I,T,R,C){return R.length>0&&function Ll(I,T,R){return R.some(C=>fa(I,T,C)&&so(C)!==yn)}(I,R,C)?{segmentGroup:new wn(T,Fa(C,new wn(R,I.children))),slicedSegments:[]}:0===R.length&&function Ul(I,T,R){return R.some(C=>fa(I,T,C))}(I,R,C)?{segmentGroup:new wn(I.segments,cl(I,R,C,I.children)),slicedSegments:R}:{segmentGroup:new wn(I.segments,I.children),slicedSegments:R}}function cl(I,T,R,C){const x={};for(const J of R)if(fa(I,T,J)&&!C[so(J)]){const ve=new wn([],{});x[so(J)]=ve}return{...C,...x}}function Fa(I,T){const R={};R[yn]=T;for(const C of I)if(""===C.path&&so(C)!==yn){const x=new wn([],{});R[so(C)]=x}return R}function fa(I,T,R){return(!(I.hasChildren()||T.length>0)||"full"!==R.pathMatch)&&""===R.path}class Yo{}class Zo{constructor(T,R,C,x,J,ve,dt){this.injector=T,this.configLoader=R,this.rootComponentType=C,this.config=x,this.urlTree=J,this.paramsInheritanceStrategy=ve,this.urlSerializer=dt,this.applyRedirects=new Vl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new d.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,Zt.T)(R=>{const C=new ke([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},yn,this.rootComponentType,null,{}),x=new fe(C,R),J=new ot("",x),ve=function gi(I,T,R=null,C=null){return lt(St(I),T,R,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return ve.queryParams=this.urlTree.queryParams,J.url=this.urlSerializer.serialize(ve),this.inheritParamsAndData(J._root,null),{state:J,tree:ve}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,yn).pipe(me(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof Ti?this.noMatchError(C):C}))}inheritParamsAndData(T,R){const C=T.value,x=Ae(C,R,this.paramsInheritanceStrategy);C.params=Object.freeze(x.params),C.data=Object.freeze(x.data),T.children.forEach(J=>this.inheritParamsAndData(J,C))}processSegmentGroup(T,R,C,x){return 0===C.segments.length&&C.hasChildren()?this.processChildren(T,R,C):this.processSegment(T,R,C,C.segments,x,!0).pipe((0,Zt.T)(J=>J instanceof fe?[J]:[]))}processChildren(T,R,C){const x=[];for(const J of Object.keys(C.children))"primary"===J?x.unshift(J):x.push(J);return(0,Ee.H)(x).pipe(de(J=>{const ve=C.children[J],dt=function ua(I,T){const R=I.filter(C=>so(C)===T);return R.push(...I.filter(C=>so(C)!==T)),R}(R,J);return this.processSegmentGroup(T,dt,ve,J)}),function at(I,T){return(0,Ke.N)(function Ce(I,T,R,C,x){return(J,ve)=>{let dt=R,Qt=T,At=0;J.subscribe((0,Ct._)(ve,Tn=>{const hr=At++;Qt=dt?I(Qt,Tn,hr):(dt=!0,Tn),C&&ve.next(Qt)},x&&(()=>{dt&&ve.next(Qt),ve.complete()})))}}(I,T,arguments.length>=2,!0))}((J,ve)=>(J.push(...ve),J)),ye(null),function Bt(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,kt(1),R?ye(T):j(()=>new _e))}(),(0,Fe.Z)(J=>{if(null===J)return Hr(C);const ve=Lo(J);return function wu(I){I.sort((T,R)=>T.value.outlet===yn?-1:R.value.outlet===yn?1:T.value.outlet.localeCompare(R.value.outlet))}(ve),(0,re.of)(ve)}))}processSegment(T,R,C,x,J,ve){return(0,Ee.H)(R).pipe(de(dt=>{var Qt;return this.processSegmentAgainstRoute(null!==(Qt=dt._injector)&&void 0!==Qt?Qt:T,R,dt,C,x,J,ve).pipe(me(At=>{if(At instanceof Ti)return(0,re.of)(null);throw At}))}),te(dt=>!!dt),me(dt=>{if(Ji(dt))return function ws(I,T,R){return 0===T.length&&!I.children[R]}(C,x,J)?(0,re.of)(new Yo):Hr(C);throw dt}))}processSegmentAgainstRoute(T,R,C,x,J,ve,dt){return function Is(I,T,R,C){return!!(so(I)===C||C!==yn&&fa(T,R,I))&&ys(T,I,R).matched}(C,x,J,ve)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(T,x,C,J,ve):this.allowRedirects&&dt?this.expandSegmentAgainstRouteUsingRedirect(T,x,R,C,J,ve):Hr(x):Hr(x)}expandSegmentAgainstRouteUsingRedirect(T,R,C,x,J,ve){const{matched:dt,consumedSegments:Qt,positionalParamSegments:At,remainingSegments:Tn}=ys(R,x,J);if(!dt)return Hr(R);x.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const hr=this.applyRedirects.applyRedirectCommands(Qt,x.redirectTo,At);return this.applyRedirects.lineralizeSegments(x,hr).pipe((0,Fe.Z)(Ri=>this.processSegment(T,C,R,Ri.concat(Tn),ve,!1)))}matchSegmentAgainstRoute(T,R,C,x,J){const ve=ul(R,C,x,T);return"**"===C.path&&(R.children={}),ve.pipe((0,Dt.n)(dt=>{var Qt;return dt.matched?(T=null!==(Qt=C._injector)&&void 0!==Qt?Qt:T,this.getChildConfig(T,C,x).pipe((0,Dt.n)(({routes:At})=>{var Tn,hr,Ri;const Br=null!==(Tn=C._loadedInjector)&&void 0!==Tn?Tn:T,{consumedSegments:qi,remainingSegments:Bo,parameters:za}=dt,Ha=new ke(qi,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(hr=null!==(Ri=C.component)&&void 0!==Ri?Ri:C._loadedComponent)&&void 0!==hr?hr:null,C,function Di(I){return I.resolve||{}}(C)),{segmentGroup:yo,slicedSegments:hl}=js(R,qi,Bo,At);if(0===hl.length&&yo.hasChildren())return this.processChildren(Br,At,yo).pipe((0,Zt.T)(Ps=>null===Ps?null:new fe(Ha,Ps)));if(0===At.length&&0===hl.length)return(0,re.of)(new fe(Ha,[]));const Wl=so(C)===J;return this.processSegment(Br,At,yo,hl,Wl?yn:J,!0).pipe((0,Zt.T)(Ps=>new fe(Ha,Ps instanceof fe?[Ps]:[])))}))):Hr(R)}))}getChildConfig(T,R,C){return R.children?(0,re.of)({routes:R.children,injector:T}):R.loadChildren?void 0!==R._loadedRoutes?(0,re.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function ha(I,T,R,C){const x=T.canLoad;if(void 0===x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function $(I){return I&&P(I.canLoad)}(dt)?dt.canLoad(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(T,R,C).pipe((0,Fe.Z)(x=>x?this.configLoader.loadChildren(T,R).pipe((0,ae.M)(J=>{R._loadedRoutes=J.routes,R._loadedInjector=J.injector})):function _s(I){return vt(no(!1,ti.GuardRejected))}())):(0,re.of)({routes:[],injector:T})}}function $l(I){const T=I.value.routeConfig;return T&&""===T.path}function Lo(I){const T=[],R=new Set;for(const C of I){if(!$l(C)){T.push(C);continue}const x=T.find(J=>C.value.routeConfig===J.value.routeConfig);void 0!==x?(x.children.push(...C.children),R.add(x)):T.push(C)}for(const C of R){const x=Lo(C.children);T.push(new fe(C.value,x))}return T.filter(C=>!R.has(C))}function ga(I){const T=I.children.map(R=>ga(R)).flat();return[I,...T]}function ma(I){return(0,Dt.n)(T=>{const R=I(T);return R?(0,Ee.H)(R).pipe((0,Zt.T)(()=>T)):(0,re.of)(T)})}let Ms=(()=>{var I;class T{buildTitle(C){let x,J=C.root;for(;void 0!==J;){var ve;x=null!==(ve=this.getResolvedTitleForRoute(J))&&void 0!==ve?ve:x,J=J.children.find(dt=>dt.outlet===yn)}return x}getResolvedTitleForRoute(C){return C.data[ir]}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(lo),providedIn:"root"}),T})(),lo=(()=>{var I;class T extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const x=this.buildTitle(C);void 0!==x&&this.title.setTitle(x)}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(er.hE))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Hs=new d.nKC("",{providedIn:"root",factory:()=>({})}),Es=new d.nKC("");let D=(()=>{var I;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.WQX)(d.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,re.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const x=mn(C.loadComponent()).pipe((0,Zt.T)(O),(0,ae.M)(ve=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=ve}),bn(()=>{this.componentLoaders.delete(C)})),J=new ze(x,()=>new Tt.B).pipe(xt());return this.componentLoaders.set(C,J),J}loadChildren(C,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,re.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const ve=function V(I,T,R,C){return mn(I.loadChildren()).pipe((0,Zt.T)(O),(0,Fe.Z)(x=>x instanceof d.Co$||Array.isArray(x)?(0,re.of)(x):(0,Ee.H)(T.compileModuleAsync(x))),(0,Zt.T)(x=>{C&&C(I);let J,ve,dt=!1;return Array.isArray(x)?(ve=x,!0):(J=x.create(R).injector,ve=J.get(Es,[],{optional:!0,self:!0}).flat()),{routes:ve.map(Us),injector:J}}))}(x,this.compiler,C,this.onLoadEndListener).pipe(bn(()=>{this.childrenLoaders.delete(x)})),dt=new ze(ve,()=>new Tt.B).pipe(xt());return this.childrenLoaders.set(x,dt),dt}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function O(I){return function be(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let le=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(xe),providedIn:"root"}),T})(),xe=(()=>{var I;class T{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,x){return C}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Ft=new d.nKC(""),an=new d.nKC("");function Un(I,T,R){const C=I.get(an),x=I.get(Vt.qQ);return I.get(d.SKi).runOutsideAngular(()=>{if(!x.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(At=>setTimeout(At));let J;const ve=new Promise(At=>{J=At}),dt=x.startViewTransition(()=>(J(),function Fn(I){return new Promise(T=>{(0,d.mal)(T,{injector:I})})}(I))),{onViewTransitionCreated:Qt}=C;return Qt&&(0,d.N4e)(I,()=>Qt({transition:dt,from:T,to:R})),ve})}let Fr=(()=>{var I;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Tt.B,this.transitionAbortSubject=new Tt.B,this.configLoader=(0,d.WQX)(D),this.environmentInjector=(0,d.WQX)(d.uvJ),this.urlSerializer=(0,d.WQX)(Qr),this.rootContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(Vt.aZ),this.inputBindingEnabled=null!==(0,d.WQX)(Ln,{optional:!0}),this.titleStrategy=(0,d.WQX)(Ms),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,d.WQX)(le),this.createViewTransition=(0,d.WQX)(Ft,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,re.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=J=>this.events.next(new sr(J)),this.configLoader.onLoadStartListener=J=>this.events.next(new si(J))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var x;const J=++this.navigationId;null===(x=this.transitions)||void 0===x||x.next({...this.transitions.value,...C,id:J})}setupNavigations(C,x,J){return this.transitions=new Ze.t({id:0,currentUrlTree:x,currentRawUrl:x,extractedUrl:this.urlHandlingStrategy.extract(x),urlAfterRedirects:this.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:J.snapshot,targetSnapshot:null,currentRouterState:J,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,pt.p)(ve=>0!==ve.id),(0,Zt.T)(ve=>({...ve,extractedUrl:this.urlHandlingStrategy.extract(ve.rawUrl)})),(0,Dt.n)(ve=>{let dt=!1,Qt=!1;return(0,re.of)(ve).pipe((0,Dt.n)(At=>{var Tn;if(this.navigationId>ve.id)return this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),Me.w;this.currentTransition=ve,this.currentNavigation={id:At.id,initialUrl:At.rawUrl,extractedUrl:At.extractedUrl,trigger:At.source,extras:At.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ri=null!==(Tn=At.extras.onSameUrlNavigation)&&void 0!==Tn?Tn:C.onSameUrlNavigation;if(!hr&&"reload"!==Ri){const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.rawUrl),Br,mr.IgnoredSameUrlNavigation)),At.resolve(null),Me.w}if(this.urlHandlingStrategy.shouldProcessUrl(At.rawUrl))return(0,re.of)(At).pipe((0,Dt.n)(Br=>{var qi,Bo;const za=null===(qi=this.transitions)||void 0===qi?void 0:qi.getValue();return this.events.next(new mi(Br.id,this.urlSerializer.serialize(Br.extractedUrl),Br.source,Br.restoredState)),za!==(null===(Bo=this.transitions)||void 0===Bo?void 0:Bo.getValue())?Me.w:Promise.resolve(Br)}),function pa(I,T,R,C,x,J){return(0,Fe.Z)(ve=>function Ss(I,T,R,C,x,J,ve="emptyOnly"){return new Zo(I,T,R,C,x,ve,J).recognize()}(I,T,R,C,ve.extractedUrl,x,J).pipe((0,Zt.T)(({state:dt,tree:Qt})=>({...ve,targetSnapshot:dt,urlAfterRedirects:Qt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ae.M)(Br=>{ve.targetSnapshot=Br.targetSnapshot,ve.urlAfterRedirects=Br.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Br.urlAfterRedirects};const qi=new ko(Br.id,this.urlSerializer.serialize(Br.extractedUrl),this.urlSerializer.serialize(Br.urlAfterRedirects),Br.targetSnapshot);this.events.next(qi)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(At.currentRawUrl)){const{id:Br,extractedUrl:qi,source:Bo,restoredState:za,extras:Ha}=At,yo=new mi(Br,this.urlSerializer.serialize(qi),Bo,za);this.events.next(yo);const hl=ui(this.rootComponentType).snapshot;return this.currentTransition=ve={...At,targetSnapshot:hl,urlAfterRedirects:qi,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=qi,(0,re.of)(ve)}{const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.extractedUrl),Br,mr.IgnoredByUrlHandlingStrategy)),At.resolve(null),Me.w}}),(0,ae.M)(At=>{const Tn=new ei(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(Tn)}),(0,Zt.T)(At=>(this.currentTransition=ve={...At,guards:bs(At.targetSnapshot,At.currentSnapshot,this.rootContexts)},ve)),function Qo(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,currentSnapshot:x,guards:{canActivateChecks:J,canDeactivateChecks:ve}}=R;return 0===ve.length&&0===J.length?(0,re.of)({...R,guardsResult:!0}):function Na(I,T,R,C){return(0,Ee.H)(I).pipe((0,Fe.Z)(x=>function as(I,T,R,C,x){const J=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!J||0===J.length)return(0,re.of)(!0);const ve=J.map(dt=>{var Qt;const At=null!==(Qt=gs(T))&&void 0!==Qt?Qt:x,Tn=bo(dt,At);return mn(function On(I){return I&&P(I.canDeactivate)}(Tn)?Tn.canDeactivate(I,T,R,C):(0,d.N4e)(At,()=>Tn(I,T,R,C))).pipe(te())});return(0,re.of)(ve).pipe(eo())}(x.component,x.route,R,T,C)),te(x=>!0!==x,!0))}(ve,C,x,I).pipe((0,Fe.Z)(dt=>dt&&function ce(I){return"boolean"==typeof I}(dt)?function vs(I,T,R,C){return(0,Ee.H)(T).pipe(de(x=>ut(function Oa(I,T){return null!==I&&T&&T(new Or(I)),(0,re.of)(!0)}(x.route.parent,C),function Bs(I,T){return null!==I&&T&&T(new jn(I)),(0,re.of)(!0)}(x.route,C),function al(I,T,R){const C=T[T.length-1],J=T.slice(0,T.length-1).reverse().map(ve=>function Xo(I){const T=I.routeConfig?I.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:I,guards:T}:null}(ve)).filter(ve=>null!==ve).map(ve=>Mt(()=>{const dt=ve.guards.map(Qt=>{var At;const Tn=null!==(At=gs(ve.node))&&void 0!==At?At:R,hr=bo(Qt,Tn);return mn(function nn(I){return I&&P(I.canActivateChild)}(hr)?hr.canActivateChild(C,I):(0,d.N4e)(Tn,()=>hr(C,I))).pipe(te())});return(0,re.of)(dt).pipe(eo())}));return(0,re.of)(J).pipe(eo())}(I,x.path,R),function sl(I,T,R){const C=T.routeConfig?T.routeConfig.canActivate:null;if(!C||0===C.length)return(0,re.of)(!0);const x=C.map(J=>Mt(()=>{var ve;const dt=null!==(ve=gs(T))&&void 0!==ve?ve:R,Qt=bo(J,dt);return mn(function Te(I){return I&&P(I.canActivate)}(Qt)?Qt.canActivate(T,I):(0,d.N4e)(dt,()=>Qt(T,I))).pipe(te())}));return(0,re.of)(x).pipe(eo())}(I,x.route,R))),te(x=>!0!==x,!0))}(C,J,I,T):(0,re.of)(dt)),(0,Zt.T)(dt=>({...R,guardsResult:dt})))})}(this.environmentInjector,At=>this.events.next(At)),(0,ae.M)(At=>{if(ve.guardsResult=At.guardsResult,wi(At.guardsResult))throw ci(0,At.guardsResult);const Tn=new Bi(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot,!!At.guardsResult);this.events.next(Tn)}),(0,pt.p)(At=>!!At.guardsResult||(this.cancelNavigationTransition(At,"",ti.GuardRejected),!1)),ma(At=>{if(At.guards.canActivateChecks.length)return(0,re.of)(At).pipe((0,ae.M)(Tn=>{const hr=new is(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}),(0,Dt.n)(Tn=>{let hr=!1;return(0,re.of)(Tn).pipe(function Bl(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,guards:{canActivateChecks:x}}=R;if(!x.length)return(0,re.of)(R);const J=new Set(x.map(Qt=>Qt.route)),ve=new Set;for(const Qt of J)if(!ve.has(Qt))for(const At of ga(Qt))ve.add(At);let dt=0;return(0,Ee.H)(ve).pipe(de(Qt=>J.has(Qt)?function Va(I,T,R,C){const x=I.routeConfig,J=I._resolve;return void 0!==(null==x?void 0:x.title)&&!Yt(x)&&(J[ir]=x.title),function zs(I,T,R,C){const x=en(I);if(0===x.length)return(0,re.of)({});const J={};return(0,Ee.H)(x).pipe((0,Fe.Z)(ve=>function pc(I,T,R,C){var x;const J=null!==(x=gs(T))&&void 0!==x?x:C,ve=bo(I,J);return mn(ve.resolve?ve.resolve(T,R):(0,d.N4e)(J,()=>ve(T,R)))}(I[ve],T,R,C).pipe(te(),(0,ae.M)(dt=>{J[ve]=dt}))),kt(1),function vn(I){return(0,Zt.T)(()=>I)}(J),me(ve=>Ji(ve)?Me.w:vt(ve)))}(J,I,T,C).pipe((0,Zt.T)(ve=>(I._resolvedData=ve,I.data=Ae(I,I.parent,R).resolve,null)))}(Qt,C,I,T):(Qt.data=Ae(Qt,Qt.parent,I).resolve,(0,re.of)(void 0))),(0,ae.M)(()=>dt++),kt(1),(0,Fe.Z)(Qt=>dt===ve.size?(0,re.of)(R):Me.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ae.M)({next:()=>hr=!0,complete:()=>{hr||this.cancelNavigationTransition(Tn,"",ti.NoDataFromResolver)}}))}),(0,ae.M)(Tn=>{const hr=new ps(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}))}),ma(At=>{const Tn=hr=>{var Ri;const Br=[];null!==(Ri=hr.routeConfig)&&void 0!==Ri&&Ri.loadComponent&&!hr.routeConfig._loadedComponent&&Br.push(this.configLoader.loadComponent(hr.routeConfig).pipe((0,ae.M)(qi=>{hr.component=qi}),(0,Zt.T)(()=>{})));for(const qi of hr.children)Br.push(...Tn(qi));return Br};return(0,Je.z)(Tn(At.targetSnapshot.root)).pipe(ye(null),(0,Be.s)(1))}),ma(()=>this.afterPreactivation()),(0,Dt.n)(()=>{var At;const{currentSnapshot:Tn,targetSnapshot:hr}=ve,Ri=null===(At=this.createViewTransition)||void 0===At?void 0:At.call(this,this.environmentInjector,Tn.root,hr.root);return Ri?(0,Ee.H)(Ri).pipe((0,Zt.T)(()=>ve)):(0,re.of)(ve)}),(0,Zt.T)(At=>{const Tn=function br(I,T,R){const C=cr(I,T._root,R?R._root:void 0);return new ar(C,T)}(C.routeReuseStrategy,At.targetSnapshot,At.currentRouterState);return this.currentTransition=ve={...At,targetRouterState:Tn},this.currentNavigation.targetRouterState=Tn,ve}),(0,ae.M)(()=>{this.events.next(new Co)}),((I,T,R,C)=>(0,Zt.T)(x=>(new $s(T,x.targetRouterState,x.currentRouterState,R,C).activate(I),x)))(this.rootContexts,C.routeReuseStrategy,At=>this.events.next(At),this.inputBindingEnabled),(0,Be.s)(1),(0,ae.M)({next:At=>{var Tn;dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Si(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects))),null===(Tn=this.titleStrategy)||void 0===Tn||Tn.updateTitle(At.targetRouterState.snapshot),At.resolve(!0)},complete:()=>{dt=!0}}),function qn(I){return(0,Ke.N)((T,R)=>{(0,st.Tg)(I).subscribe((0,Ct._)(R,()=>R.complete(),$n.l)),!R.closed&&T.subscribe(R)})}(this.transitionAbortSubject.pipe((0,ae.M)(At=>{throw At}))),bn(()=>{var At;!dt&&!Qt&&this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),(null===(At=this.currentTransition)||void 0===At?void 0:At.id)===ve.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(At=>{if(Qt=!0,dr(At))this.events.next(new oi(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At.message,At.cancellationCode)),function Go(I){return dr(I)&&wi(I.url)}(At)?this.events.next(new co(At.url)):ve.resolve(!1);else{var Tn;this.events.next(new kn(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At,null!==(Tn=ve.targetSnapshot)&&void 0!==Tn?Tn:void 0));try{ve.resolve(C.errorHandler(At))}catch(hr){this.options.resolveNavigationPromiseOnError?ve.resolve(!1):ve.reject(hr)}}return Me.w}))}))}cancelNavigationTransition(C,x,J){const ve=new oi(C.id,this.urlSerializer.serialize(C.extractedUrl),x,J);this.events.next(ve),C.resolve(!1)}isUpdatingInternalState(){var C,x;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(x=this.currentTransition)||void 0===x?void 0:x.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,x;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!==(x=this.currentTransition)&&void 0!==x&&x.extras.skipLocationChange)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function Tr(I){return I!==xr}let Zr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(ki),providedIn:"root"}),T})();class Vr{shouldDetach(T){return!1}store(T,R){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,R){return T.routeConfig===R.routeConfig}}let ki=(()=>{var I;class T extends Vr{}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Gr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(un),providedIn:"root"}),T})(),un=(()=>{var I;class T extends Gr{constructor(){super(...arguments),this.location=(0,d.WQX)(Vt.aZ),this.urlSerializer=(0,d.WQX)(Qr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,d.WQX)(le),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ui(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,x;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(x=this.restoredState())||void 0===x?void 0:x.\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(x=>{"popstate"===x.type&&C(x.url,x.state)})}handleRouterEvent(C,x){if(C instanceof mi)this.stateMemento=this.createStateMemento();else if(C instanceof Nn)this.rawUrlTree=x.initialUrl;else if(C instanceof ko){if("eager"===this.urlUpdateStrategy&&!x.extras.skipLocationChange){const J=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl);this.setBrowserUrl(J,x)}}else C instanceof Co?(this.currentUrlTree=x.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl),this.routerState=x.targetRouterState,"deferred"===this.urlUpdateStrategy&&(x.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,x))):C instanceof oi&&(C.code===ti.GuardRejected||C.code===ti.NoDataFromResolver)?this.restoreHistory(x):C instanceof kn?this.restoreHistory(x,!0):C instanceof Si&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,x){const J=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(J)||x.extras.replaceUrl){const dt={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(J,"",dt)}else{const ve={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(J,"",ve)}}restoreHistory(C,x=!1){if("computed"===this.canceledNavigationResolution){const ve=this.currentPageId-this.browserPageId;0!==ve?this.location.historyGo(ve):this.currentUrlTree===C.finalUrl&&0===ve&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var x;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(x=C.finalUrl)&&void 0!==x?x:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,x){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:x}:{navigationId:C}}}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();var Vn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(Vn||{});function Kr(I,T){I.events.pipe((0,pt.p)(R=>R instanceof Si||R instanceof oi||R instanceof kn||R instanceof Nn),(0,Zt.T)(R=>R instanceof Si||R instanceof Nn?Vn.COMPLETE:R instanceof oi&&(R.code===ti.Redirect||R.code===ti.SupersededByNewNavigation)?Vn.REDIRECTING:Vn.FAILED),(0,pt.p)(R=>R!==Vn.REDIRECTING),(0,Be.s)(1)).subscribe(()=>{T()})}function Gi(I){throw I}const _i={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Fi=(()=>{var I;class T{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,x;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,d.WQX)(d.H3F),this.stateManager=(0,d.WQX)(Gr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,d.WQX)(d.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,d.WQX)(Fr),this.urlSerializer=(0,d.WQX)(Qr),this.location=(0,d.WQX)(Vt.aZ),this.urlHandlingStrategy=(0,d.WQX)(le),this._events=new Tt.B,this.errorHandler=this.options.errorHandler||Gi,this.navigated=!1,this.routeReuseStrategy=(0,d.WQX)(Zr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(x=(0,d.WQX)(Es,{optional:!0}))||void 0===x?void 0:x.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,d.WQX)(Ln,{optional:!0}),this.eventsSubscription=new je.yU,this.isNgZoneEnabled=(0,d.WQX)(d.SKi)instanceof d.SKi&&d.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:J=>{this.console.warn(J)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(x=>{try{const J=this.navigationTransitions.currentTransition,ve=this.navigationTransitions.currentNavigation;if(null!==J&&null!==ve)if(this.stateManager.handleRouterEvent(x,ve),x instanceof oi&&x.code!==ti.Redirect&&x.code!==ti.SupersededByNewNavigation)this.navigated=!0;else if(x instanceof Si)this.navigated=!0;else if(x instanceof co){const dt=this.urlHandlingStrategy.merge(x.url,J.currentRawUrl),Qt={info:J.extras.info,skipLocationChange:J.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tr(J.source)};this.scheduleNavigation(dt,xr,null,Qt,{resolve:J.resolve,reject:J.reject,promise:J.promise})}(function zi(I){return!(I instanceof Co||I instanceof co)})(x)&&this._events.next(x)}catch(J){this.navigationTransitions.transitionAbortSubject.next(J)}});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),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((x,J)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(x,"popstate",J)},0)}))}navigateToSyncWithBrowser(C,x,J){const ve={replaceUrl:!0},dt=null!=J&&J.navigationId?J:null;if(J){const At={...J};delete At.navigationId,delete At.\u0275routerPageId,0!==Object.keys(At).length&&(ve.state=At)}const Qt=this.parseUrl(C);this.scheduleNavigation(Qt,x,dt,ve)}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,x={}){const{relativeTo:J,queryParams:ve,fragment:dt,queryParamsHandling:Qt,preserveFragment:At}=x,Tn=At?this.currentUrlTree.fragment:dt;let Ri,hr=null;switch(Qt){case"merge":hr={...this.currentUrlTree.queryParams,...ve};break;case"preserve":hr=this.currentUrlTree.queryParams;break;default:hr=ve||null}null!==hr&&(hr=this.removeEmptyProps(hr));try{Ri=St(J?J.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),Ri=this.currentUrlTree.root}return lt(Ri,C,hr,null!=Tn?Tn:null)}navigateByUrl(C,x={skipLocationChange:!1}){const J=wi(C)?C:this.parseUrl(C),ve=this.urlHandlingStrategy.merge(J,this.rawUrlTree);return this.scheduleNavigation(ve,xr,null,x)}navigate(C,x={skipLocationChange:!1}){return function Jr(I){for(let T=0;T(null!=ve&&(x[J]=ve),x),{})}scheduleNavigation(C,x,J,ve,dt){if(this.disposed)return Promise.resolve(!1);let Qt,At,Tn;dt?(Qt=dt.resolve,At=dt.reject,Tn=dt.promise):Tn=new Promise((Ri,Br)=>{Qt=Ri,At=Br});const hr=this.pendingTasks.add();return Kr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(hr))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:J,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:ve,resolve:Qt,reject:At,promise:Tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Tn.catch(Ri=>Promise.reject(Ri))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Uo=(()=>{var I;class T{constructor(C,x,J,ve,dt,Qt){var At;this.router=C,this.route=x,this.tabIndexAttribute=J,this.renderer=ve,this.el=dt,this.locationStrategy=Qt,this.href=null,this.commands=null,this.onChanges=new Tt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Tn=null===(At=dt.nativeElement.tagName)||void 0===At?void 0:At.toLowerCase();this.isAnchorElement="a"===Tn||"area"===Tn,this.isAnchorElement?this.subscription=C.events.subscribe(hr=>{hr instanceof Si&&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,x,J,ve,dt){const Qt=this.urlTree;return!!(null===Qt||this.isAnchorElement&&(0!==C||x||J||ve||dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Qt,{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 x=this.urlTree;this.href=null!==x&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(x)):null;const J=null===this.href?null:(0,d.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",J)}applyAttributeValue(C,x){const J=this.renderer,ve=this.el.nativeElement;null!==x?J.setAttribute(ve,C,x):J.removeAttribute(ve,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=T).\u0275fac=function(C){return new(C||I)(d.rXU(Fi),d.rXU(ne),d.kS0("tabindex"),d.rXU(d.sFG),d.rXU(d.aKT),d.rXU(Vt.hb))},I.\u0275dir=d.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,x){1&C&&d.bIt("click",function(ve){return x.onClick(ve.button,ve.ctrlKey,ve.shiftKey,ve.altKey,ve.metaKey)}),2&C&&d.BMQ("target",x.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[d.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",d.L39],skipLocationChange:[d.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",d.L39],replaceUrl:[d.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",d.L39],routerLink:"routerLink"},standalone:!0,features:[d.GFd,d.OA$]}),T})();class gc{}let Ua=(()=>{var I;class T{preload(C,x){return x().pipe(me(()=>(0,re.of)(null)))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),va=(()=>{var I;class T{constructor(C,x,J,ve,dt){this.router=C,this.injector=J,this.preloadingStrategy=ve,this.loader=dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,pt.p)(C=>C instanceof Si),de(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,x){const J=[];for(const At of x){var ve,dt;At.providers&&!At._injector&&(At._injector=(0,d.Ol2)(At.providers,C,`Route: ${At.path}`));const Tn=null!==(ve=At._injector)&&void 0!==ve?ve:C,hr=null!==(dt=At._loadedInjector)&&void 0!==dt?dt:Tn;var Qt;(At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent)&&J.push(this.preloadConfig(Tn,At)),(At.children||At._loadedRoutes)&&J.push(this.processRoutes(hr,null!==(Qt=At.children)&&void 0!==Qt?Qt:At._loadedRoutes))}return(0,Ee.H)(J).pipe(Le())}preloadConfig(C,x){return this.preloadingStrategy.preload(x,()=>{let J;J=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(C,x):(0,re.of)(null);const ve=J.pipe((0,Fe.Z)(dt=>{var Qt;return null===dt?(0,re.of)(void 0):(x._loadedRoutes=dt.routes,x._loadedInjector=dt.injector,this.processRoutes(null!==(Qt=dt.injector)&&void 0!==Qt?Qt:C,dt.routes))}));if(x.loadComponent&&!x._loadedComponent){const dt=this.loader.loadComponent(x);return(0,Ee.H)([ve,dt]).pipe(Le())}return ve})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Fi),d.KVO(d.Ql9),d.KVO(d.uvJ),d.KVO(gc),d.KVO(D))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const es=new d.nKC("");let wo=(()=>{var I;class T{constructor(C,x,J,ve,dt={}){this.urlSerializer=C,this.transitions=x,this.viewportScroller=J,this.zone=ve,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,d.WQX)(d.uvJ),dt.scrollPositionRestoration||(dt.scrollPositionRestoration="disabled"),dt.anchorScrolling||(dt.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 mi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Si?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof Nn&&C.code===mr.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 Ao&&(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,x){var J=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(ve=>{setTimeout(()=>{ve()}),(0,d.mal)(()=>{ve()},{injector:J.environmentInjector})}),J.zone.run(()=>{J.transitions.events.next(new Ao(C,"popstate"===J.lastSource?J.store[J.restoredId]:null,x))})}))}ngOnDestroy(){var C,x;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(x=this.scrollEventsSubscription)||void 0===x||x.unsubscribe()}}return(I=T).\u0275fac=function(C){d.QTQ()},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function Lr(I,T){return{\u0275kind:I,\u0275providers:T}}function No(){const I=(0,d.WQX)(d.zZn);return T=>{var R,C;const x=I.get(d.o8S);if(T!==x.components[0])return;const J=I.get(Fi),ve=I.get($o);1===I.get(ya)&&J.initialNavigation(),null===(R=I.get(Ur,null,d.$GK.Optional))||void 0===R||R.setUpPreloading(),null===(C=I.get(es,null,d.$GK.Optional))||void 0===C||C.init(),J.resetRootComponentType(x.componentTypes[0]),ve.closed||(ve.next(),ve.complete(),ve.unsubscribe())}}const $o=new d.nKC("",{factory:()=>new Tt.B}),ya=new d.nKC("",{providedIn:"root",factory:()=>1}),Ur=new d.nKC("");function _o(I){return Lr(0,[{provide:Ur,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Lr(9,[{provide:Ft,useValue:Un},{provide:an,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new d.nKC("ROUTER_FORROOT_GUARD"),Ea=[Vt.aZ,{provide:Qr,useClass:Yr},Fi,S,{provide:ne,useFactory:function jl(I){return I.routerState.root},deps:[Fi]},D,[]];let Mu=(()=>{var I;class T{constructor(C){}static forRoot(C,x){return{ngModule:T,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[Fi,new d.Xx1,new d.kdw]]},{provide:Hs,useValue:x||{}},null!=x&&x.useHash?{provide:Vt.hb,useClass:Vt.fw}:{provide:Vt.hb,useClass:Vt.Sm},{provide:es,useFactory:()=>{const I=(0,d.WQX)(Vt.Xr),T=(0,d.WQX)(d.SKi),R=(0,d.WQX)(Hs),C=(0,d.WQX)(Fr),x=(0,d.WQX)(Qr);return R.scrollOffset&&I.setOffset(R.scrollOffset),new wo(x,C,I,T,R)}},null!=x&&x.preloadingStrategy?_o(x.preloadingStrategy).\u0275providers:[],null!=x&&x.initialNavigation?qs(x):[],null!=x&&x.bindToComponentInputs?Lr(8,[In,{provide:Ln,useExisting:In}]).\u0275providers:[],null!=x&&x.enableViewTransitions?Hl().\u0275providers:[],[{provide:Xs,useFactory:No},{provide:d.iLQ,multi:!0,useExisting:Xs}]]}}static forChild(C){return{ngModule:T,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Ru,8))},I.\u0275mod=d.$C({type:I}),I.\u0275inj=d.G2t({}),T})();function mc(I){return"guarded"}function qs(I){return["disabled"===I.initialNavigation?Lr(3,[{provide:d.hnV,multi:!0,useFactory:()=>{const T=(0,d.WQX)(Fi);return()=>{T.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Lr(2,[{provide:ya,useValue:0},{provide:d.hnV,multi:!0,deps:[d.zZn],useFactory:T=>{const R=T.get(Vt.hj,Promise.resolve());return()=>R.then(()=>new Promise(C=>{const x=T.get(Fi),J=T.get($o);Kr(x,()=>{C(!0)}),T.get(Fr).afterPreactivation=()=>(C(!0),J.closed?(0,re.of)(void 0):J),x.initialNavigation()}))}}]).\u0275providers:[]]}const Xs=new d.nKC("")},7852:(En,bt,B)=>{"use strict";B.d(bt,{MF:()=>Qr,j6:()=>_r,xZ:()=>Zn,om:()=>Mr,Sx:()=>He,Dk:()=>ct,Wp:()=>Yr,KO:()=>he});var g=B(467),d=B(1362),ge=B(8041),Oe=B(1076);const X=(St,lt)=>lt.some(Ut=>St instanceof Ut);let Ee,re;const De=new WeakMap,_e=new WeakMap,Fe=new WeakMap,$e=new WeakMap,Le=new WeakMap;let ut={get(St,lt,Ut){if(St instanceof IDBTransaction){if("done"===lt)return _e.get(St);if("objectStoreNames"===lt)return St.objectStoreNames||Fe.get(St);if("store"===lt)return Ut.objectStoreNames[1]?void 0:Ut.objectStore(Ut.objectStoreNames[0])}return vt(St[lt])},set:(St,lt,Ut)=>(St[lt]=Ut,!0),has:(St,lt)=>St instanceof IDBTransaction&&("done"===lt||"store"===lt)||lt in St};function mt(St){return"function"==typeof St?function Mt(St){return St!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(St)?function(...lt){return St.apply(Me(this),lt),vt(De.get(this))}:function(...lt){return vt(St.apply(Me(this),lt))}:function(lt,...Ut){const fn=St.call(Me(this),lt,...Ut);return Fe.set(fn,lt.sort?lt.sort():[lt]),vt(fn)}}(St):(St instanceof IDBTransaction&&function ft(St){if(_e.has(St))return;const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("complete",Y),St.removeEventListener("error",Z),St.removeEventListener("abort",Z)},Y=()=>{Ut(),Kn()},Z=()=>{fn(St.error||new DOMException("AbortError","AbortError")),Kn()};St.addEventListener("complete",Y),St.addEventListener("error",Z),St.addEventListener("abort",Z)});_e.set(St,lt)}(St),X(St,function Ze(){return Ee||(Ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(St,ut):St)}function vt(St){if(St instanceof IDBRequest)return function Qe(St){const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("success",Y),St.removeEventListener("error",Z)},Y=()=>{Ut(vt(St.result)),Kn()},Z=()=>{fn(St.error),Kn()};St.addEventListener("success",Y),St.addEventListener("error",Z)});return lt.then(Ut=>{Ut instanceof IDBCursor&&De.set(Ut,St)}).catch(()=>{}),Le.set(lt,St),lt}(St);if($e.has(St))return $e.get(St);const lt=mt(St);return lt!==St&&($e.set(St,lt),Le.set(lt,St)),lt}const Me=St=>Le.get(St),Ct=["get","getKey","getAll","getAllKeys","count"],xt=["put","add","delete","clear"],ze=new Map;function Tt(St,lt){if(!(St instanceof IDBDatabase)||lt in St||"string"!=typeof lt)return;if(ze.get(lt))return ze.get(lt);const Ut=lt.replace(/FromIndex$/,""),fn=lt!==Ut,Kn=xt.includes(Ut);if(!(Ut in(fn?IDBIndex:IDBObjectStore).prototype)||!Kn&&!Ct.includes(Ut))return;const Y=function(){var Z=(0,g.A)(function*(Ne,...Q){const Se=this.transaction(Ne,Kn?"readwrite":"readonly");let it=Se.store;return fn&&(it=it.index(Q.shift())),(yield Promise.all([it[Ut](...Q),Kn&&Se.done]))[0]});return function(Q){return Z.apply(this,arguments)}}();return ze.set(lt,Y),Y}!function st(St){ut=St(ut)}(St=>({...St,get:(lt,Ut,fn)=>Tt(lt,Ut)||St.get(lt,Ut,fn),has:(lt,Ut)=>!!Tt(lt,Ut)||St.has(lt,Ut)}));class Vt{constructor(lt){this.container=lt}getPlatformInfoString(){return this.container.getProviders().map(Ut=>{if(function Zt(St){const lt=St.getComponent();return"VERSION"===(null==lt?void 0:lt.type)}(Ut)){const fn=Ut.getImmediate();return`${fn.library}/${fn.version}`}return null}).filter(Ut=>Ut).join(" ")}}const Dt="@firebase/app",rn=new ge.Vy("@firebase/app"),gn="[DEFAULT]",mn={[Dt]:"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"},Jt=new Map,Gt=new Map,pr=new Map;function wr(St,lt){try{St.container.addComponent(lt)}catch(Ut){rn.debug(`Component ${lt.name} failed to register with FirebaseApp ${St.name}`,Ut)}}function Mr(St){const lt=St.name;if(pr.has(lt))return rn.debug(`There were multiple attempts to register component ${lt}.`),!1;pr.set(lt,St);for(const Ut of Jt.values())wr(Ut,St);for(const Ut of Gt.values())wr(Ut,St);return!0}function _r(St,lt){const Ut=St.container.getProvider("heartbeat").getImmediate({optional:!0});return Ut&&Ut.triggerHeartbeat(),St.container.getProvider(lt)}function Zn(St){return void 0!==St.settings}const tr=new Oe.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 Er{constructor(lt,Ut,fn){this._isDeleted=!1,this._options=Object.assign({},lt),this._config=Object.assign({},Ut),this._name=Ut.name,this._automaticDataCollectionEnabled=Ut.automaticDataCollectionEnabled,this._container=fn,this.container.addComponent(new d.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(lt){this.checkDestroyed(),this._automaticDataCollectionEnabled=lt}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(lt){this._isDeleted=lt}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Qr="10.12.2";function Yr(St,lt={}){let Ut=St;"object"!=typeof lt&&(lt={name:lt});const fn=Object.assign({name:gn,automaticDataCollectionEnabled:!1},lt),Kn=fn.name;if("string"!=typeof Kn||!Kn)throw tr.create("bad-app-name",{appName:String(Kn)});if(Ut||(Ut=(0,Oe.T9)()),!Ut)throw tr.create("no-options");const Y=Jt.get(Kn);if(Y){if((0,Oe.bD)(Ut,Y.options)&&(0,Oe.bD)(fn,Y.config))return Y;throw tr.create("duplicate-app",{appName:Kn})}const Z=new d.h1(Kn);for(const Q of pr.values())Z.addComponent(Q);const Ne=new Er(Ut,fn,Z);return Jt.set(Kn,Ne),Ne}function He(St=gn){const lt=Jt.get(St);if(!lt&&St===gn&&(0,Oe.T9)())return Yr();if(!lt)throw tr.create("no-app",{appName:St});return lt}function ct(){return Array.from(Jt.values())}function he(St,lt,Ut){var fn;let Kn=null!==(fn=mn[St])&&void 0!==fn?fn:St;Ut&&(Kn+=`-${Ut}`);const Y=Kn.match(/\s|\//),Z=lt.match(/\s|\//);if(Y||Z){const Ne=[`Unable to register library "${Kn}" with version "${lt}":`];return Y&&Ne.push(`library name "${Kn}" contains illegal characters (whitespace or "/")`),Y&&Z&&Ne.push("and"),Z&&Ne.push(`version name "${lt}" contains illegal characters (whitespace or "/")`),void rn.warn(Ne.join(" "))}Mr(new d.uA(`${Kn}-version`,()=>({library:Kn,version:lt}),"VERSION"))}const rt="firebase-heartbeat-database",dn=1,Sn="firebase-heartbeat-store";let Wn=null;function gr(){return Wn||(Wn=function je(St,lt,{blocked:Ut,upgrade:fn,blocking:Kn,terminated:Y}={}){const Z=indexedDB.open(St,lt),Ne=vt(Z);return fn&&Z.addEventListener("upgradeneeded",Q=>{fn(vt(Z.result),Q.oldVersion,Q.newVersion,vt(Z.transaction),Q)}),Ut&&Z.addEventListener("blocked",Q=>Ut(Q.oldVersion,Q.newVersion,Q)),Ne.then(Q=>{Y&&Q.addEventListener("close",()=>Y()),Kn&&Q.addEventListener("versionchange",Se=>Kn(Se.oldVersion,Se.newVersion,Se))}).catch(()=>{}),Ne}(rt,dn,{upgrade:(St,lt)=>{if(0===lt)try{St.createObjectStore(Sn)}catch(Ut){console.warn(Ut)}}}).catch(St=>{throw tr.create("idb-open",{originalErrorMessage:St.message})})),Wn}function ri(){return(ri=(0,g.A)(function*(St){try{const Ut=(yield gr()).transaction(Sn),fn=yield Ut.objectStore(Sn).get(yr(St));return yield Ut.done,fn}catch(lt){if(lt instanceof Oe.g)rn.warn(lt.message);else{const Ut=tr.create("idb-get",{originalErrorMessage:null==lt?void 0:lt.message});rn.warn(Ut.message)}}})).apply(this,arguments)}function xn(St,lt){return Rn.apply(this,arguments)}function Rn(){return(Rn=(0,g.A)(function*(St,lt){try{const fn=(yield gr()).transaction(Sn,"readwrite");yield fn.objectStore(Sn).put(lt,yr(St)),yield fn.done}catch(Ut){if(Ut instanceof Oe.g)rn.warn(Ut.message);else{const fn=tr.create("idb-set",{originalErrorMessage:null==Ut?void 0:Ut.message});rn.warn(fn.message)}}})).apply(this,arguments)}function yr(St){return`${St.name}!${St.options.appId}`}class pi{constructor(lt){this.container=lt,this._heartbeatsCache=null;const Ut=this.container.getProvider("app").getImmediate();this._storage=new Hi(Ut),this._heartbeatsCachePromise=this._storage.read().then(fn=>(this._heartbeatsCache=fn,fn))}triggerHeartbeat(){var lt=this;return(0,g.A)(function*(){var Ut,fn;const Y=lt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Z=Ui();if((null!=(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||(lt._heartbeatsCache=yield lt._heartbeatsCachePromise,null!=(null===(fn=lt._heartbeatsCache)||void 0===fn?void 0:fn.heartbeats)))&<._heartbeatsCache.lastSentHeartbeatDate!==Z&&!lt._heartbeatsCache.heartbeats.some(Ne=>Ne.date===Z))return lt._heartbeatsCache.heartbeats.push({date:Z,agent:Y}),lt._heartbeatsCache.heartbeats=lt._heartbeatsCache.heartbeats.filter(Ne=>{const Q=new Date(Ne.date).valueOf();return Date.now()-Q<=2592e6}),lt._storage.overwrite(lt._heartbeatsCache)})()}getHeartbeatsHeader(){var lt=this;return(0,g.A)(function*(){var Ut;if(null===lt._heartbeatsCache&&(yield lt._heartbeatsCachePromise),null==(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||0===lt._heartbeatsCache.heartbeats.length)return"";const fn=Ui(),{heartbeatsToSend:Kn,unsentEntries:Y}=function or(St,lt=1024){const Ut=[];let fn=St.slice();for(const Kn of St){const Y=Ut.find(Z=>Z.agent===Kn.agent);if(Y){if(Y.dates.push(Kn.date),wi(Ut)>lt){Y.dates.pop();break}}else if(Ut.push({agent:Kn.agent,dates:[Kn.date]}),wi(Ut)>lt){Ut.pop();break}fn=fn.slice(1)}return{heartbeatsToSend:Ut,unsentEntries:fn}}(lt._heartbeatsCache.heartbeats),Z=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Kn}));return lt._heartbeatsCache.lastSentHeartbeatDate=fn,Y.length>0?(lt._heartbeatsCache.heartbeats=Y,yield lt._storage.overwrite(lt._heartbeatsCache)):(lt._heartbeatsCache.heartbeats=[],lt._storage.overwrite(lt._heartbeatsCache)),Z})()}}function Ui(){return(new Date).toISOString().substring(0,10)}class Hi{constructor(lt){this.app=lt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var lt=this;return(0,g.A)(function*(){if(yield lt._canUseIndexedDBPromise){const fn=yield function ur(St){return ri.apply(this,arguments)}(lt.app);return null!=fn&&fn.heartbeats?fn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:lt.heartbeats})}})()}add(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:[...Y.heartbeats,...lt.heartbeats]})}})()}}function wi(St){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:St})).length}!function gi(St){Mr(new d.uA("platform-logger",lt=>new Vt(lt),"PRIVATE")),Mr(new d.uA("heartbeat",lt=>new pi(lt),"PRIVATE")),he(Dt,"0.10.5",St),he(Dt,"0.10.5","esm2017"),he("fire-js","")}("")},1362:(En,bt,B)=>{"use strict";B.d(bt,{h1:()=>Ze,uA:()=>ge});var g=B(467),d=B(1076);class ge{constructor(De,_e,Fe){this.name=De,this.instanceFactory=_e,this.type=Fe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(De){return this.instantiationMode=De,this}setMultipleInstances(De){return this.multipleInstances=De,this}setServiceProps(De){return this.serviceProps=De,this}setInstanceCreatedCallback(De){return this.onInstanceCreated=De,this}}const Oe="[DEFAULT]";class X{constructor(De,_e){this.name=De,this.container=_e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(De){const _e=this.normalizeInstanceIdentifier(De);if(!this.instancesDeferred.has(_e)){const Fe=new d.cY;if(this.instancesDeferred.set(_e,Fe),this.isInitialized(_e)||this.shouldAutoInitialize())try{const $e=this.getOrInitializeService({instanceIdentifier:_e});$e&&Fe.resolve($e)}catch{}}return this.instancesDeferred.get(_e).promise}getImmediate(De){var _e;const Fe=this.normalizeInstanceIdentifier(null==De?void 0:De.identifier),$e=null!==(_e=null==De?void 0:De.optional)&&void 0!==_e&&_e;if(!this.isInitialized(Fe)&&!this.shouldAutoInitialize()){if($e)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Fe})}catch(Le){if($e)return null;throw Le}}getComponent(){return this.component}setComponent(De){if(De.name!==this.name)throw Error(`Mismatching Component ${De.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=De,this.shouldAutoInitialize()){if(function re(Je){return"EAGER"===Je.instantiationMode}(De))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[_e,Fe]of this.instancesDeferred.entries()){const $e=this.normalizeInstanceIdentifier(_e);try{const Le=this.getOrInitializeService({instanceIdentifier:$e});Fe.resolve(Le)}catch{}}}}clearInstance(De=Oe){this.instancesDeferred.delete(De),this.instancesOptions.delete(De),this.instances.delete(De)}delete(){var De=this;return(0,g.A)(function*(){const _e=Array.from(De.instances.values());yield Promise.all([..._e.filter(Fe=>"INTERNAL"in Fe).map(Fe=>Fe.INTERNAL.delete()),..._e.filter(Fe=>"_delete"in Fe).map(Fe=>Fe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(De=Oe){return this.instances.has(De)}getOptions(De=Oe){return this.instancesOptions.get(De)||{}}initialize(De={}){const{options:_e={}}=De,Fe=this.normalizeInstanceIdentifier(De.instanceIdentifier);if(this.isInitialized(Fe))throw Error(`${this.name}(${Fe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const $e=this.getOrInitializeService({instanceIdentifier:Fe,options:_e});for(const[Le,Qe]of this.instancesDeferred.entries())Fe===this.normalizeInstanceIdentifier(Le)&&Qe.resolve($e);return $e}onInit(De,_e){var Fe;const $e=this.normalizeInstanceIdentifier(_e),Le=null!==(Fe=this.onInitCallbacks.get($e))&&void 0!==Fe?Fe:new Set;Le.add(De),this.onInitCallbacks.set($e,Le);const Qe=this.instances.get($e);return Qe&&De(Qe,$e),()=>{Le.delete(De)}}invokeOnInitCallbacks(De,_e){const Fe=this.onInitCallbacks.get(_e);if(Fe)for(const $e of Fe)try{$e(De,_e)}catch{}}getOrInitializeService({instanceIdentifier:De,options:_e={}}){let Fe=this.instances.get(De);if(!Fe&&this.component&&(Fe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=De,Je===Oe?void 0:Je),options:_e}),this.instances.set(De,Fe),this.instancesOptions.set(De,_e),this.invokeOnInitCallbacks(Fe,De),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,De,Fe)}catch{}var Je;return Fe||null}normalizeInstanceIdentifier(De=Oe){return this.component?this.component.multipleInstances?De:Oe:De}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ze{constructor(De){this.name=De,this.providers=new Map}addComponent(De){const _e=this.getProvider(De.name);if(_e.isComponentSet())throw new Error(`Component ${De.name} has already been registered with ${this.name}`);_e.setComponent(De)}addOrOverwriteComponent(De){this.getProvider(De.name).isComponentSet()&&this.providers.delete(De.name),this.addComponent(De)}getProvider(De){if(this.providers.has(De))return this.providers.get(De);const _e=new X(De,this);return this.providers.set(De,_e),_e}getProviders(){return Array.from(this.providers.values())}}},8041:(En,bt,B)=>{"use strict";B.d(bt,{$b:()=>d,Vy:()=>re});const g=[];var d=function(De){return De[De.DEBUG=0]="DEBUG",De[De.VERBOSE=1]="VERBOSE",De[De.INFO=2]="INFO",De[De.WARN=3]="WARN",De[De.ERROR=4]="ERROR",De[De.SILENT=5]="SILENT",De}(d||{});const ge={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Oe=d.INFO,X={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Ee=(De,_e,...Fe)=>{if(_e{"use strict";B.d(bt,{Yq:()=>en,TS:()=>Ve,sR:()=>yt,el:()=>Rn,Sb:()=>Er,QE:()=>Ui,CF:()=>wn,Rg:()=>dn,p4:()=>or,jM:()=>fn,_t:()=>kt,q9:()=>er,Kb:()=>Kn,CE:()=>yr,pF:()=>Ei,fL:()=>wi,YV:()=>ur,er:()=>Hi,z3:()=>gi});var g=B(467),d=B(9842),ge=B(4438),Oe=B(845),X=B(177),Ee=B(5531),re=B(4442);var Vt=B(1413),Zt=B(3726),Dt=B(4412),Be=B(4572),rn=B(7673),pt=B(1635),ye=B(5964),j=B(5558),W=B(3669),te=B(9974),de=B(4360);function me(Y,Z){return Y===Z}var Ce=B(4341);const at=["tabsInner"];class kt{constructor(Z){(0,d.A)(this,"menuController",void 0),this.menuController=Z}open(Z){return this.menuController.open(Z)}close(Z){return this.menuController.close(Z)}toggle(Z){return this.menuController.toggle(Z)}enable(Z,Ne){return this.menuController.enable(Z,Ne)}swipeGesture(Z,Ne){return this.menuController.swipeGesture(Z,Ne)}isOpen(Z){return this.menuController.isOpen(Z)}isEnabled(Z){return this.menuController.isEnabled(Z)}get(Z){return this.menuController.get(Z)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(Z,Ne){return this.menuController.registerAnimation(Z,Ne)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(Z,Ne){return this.menuController._createAnimation(Z,Ne)}_register(Z){return this.menuController._register(Z)}_unregister(Z){return this.menuController._unregister(Z)}_setOpen(Z,Ne,Q){return this.menuController._setOpen(Z,Ne,Q)}}let bn=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"doc",void 0),(0,d.A)(this,"_readyPromise",void 0),(0,d.A)(this,"win",void 0),(0,d.A)(this,"backButton",new Vt.B),(0,d.A)(this,"keyboardDidShow",new Vt.B),(0,d.A)(this,"keyboardDidHide",new Vt.B),(0,d.A)(this,"pause",new Vt.B),(0,d.A)(this,"resume",new Vt.B),(0,d.A)(this,"resize",new Vt.B),this.doc=Q,Se.run(()=>{var it;let Wt;this.win=Q.defaultView,this.backButton.subscribeWithPriority=function(cn,Pn){return this.subscribe(Cr=>Cr.register(cn,Hn=>Se.run(()=>Pn(Hn))))},qn(this.pause,Q,"pause",Se),qn(this.resume,Q,"resume",Se),qn(this.backButton,Q,"ionBackButton",Se),qn(this.resize,this.win,"resize",Se),qn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",Se),qn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",Se),this._readyPromise=new Promise(cn=>{Wt=cn}),null!==(it=this.win)&&void 0!==it&&it.cordova?Q.addEventListener("deviceready",()=>{Wt("cordova")},{once:!0}):Wt("dom")})}is(Q){return(0,Ee.a)(this.win,Q)}platforms(){return(0,Ee.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Q){return $n(this.win.location.href,Q)}isLandscape(){return!this.isPortrait()}isPortrait(){var Q,Se;return null===(Q=(Se=this.win).matchMedia)||void 0===Q?void 0:Q.call(Se,"(orientation: portrait)").matches}testUserAgent(Q){const Se=this.win.navigator;return!!(null!=Se&&Se.userAgent&&Se.userAgent.indexOf(Q)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(X.qQ),ge.KVO(ge.SKi))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const $n=(Y,Z)=>{Z=Z.replace(/[[\]\\]/g,"\\$&");const Q=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(Y);return Q?decodeURIComponent(Q[1].replace(/\+/g," ")):null},qn=(Y,Z,Ne,Q)=>{Z&&Z.addEventListener(Ne,Se=>{Q.run(()=>{Y.next(null!=Se?Se.detail:void 0)})})};let er=(()=>{var Y;class Z{constructor(Q,Se,it,Wt){(0,d.A)(this,"location",void 0),(0,d.A)(this,"serializer",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"topOutlet",void 0),(0,d.A)(this,"direction",ir),(0,d.A)(this,"animated",Yn),(0,d.A)(this,"animationBuilder",void 0),(0,d.A)(this,"guessDirection","forward"),(0,d.A)(this,"guessAnimation",void 0),(0,d.A)(this,"lastNavId",-1),this.location=Se,this.serializer=it,this.router=Wt,Wt&&Wt.events.subscribe(cn=>{if(cn instanceof Oe.Z){const Pn=cn.restoredState?cn.restoredState.navigationId:cn.id;this.guessDirection=this.guessAnimation=Pn{this.pop(),cn()})}navigateForward(Q,Se={}){return this.setDirection("forward",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateBack(Q,Se={}){return this.setDirection("back",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateRoot(Q,Se={}){return this.setDirection("root",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}back(Q={animated:!0,animationDirection:"back"}){return this.setDirection("back",Q.animated,Q.animationDirection,Q.animation),this.location.back()}pop(){var Q=this;return(0,g.A)(function*(){let Se=Q.topOutlet;for(;Se;){if(yield Se.pop())return!0;Se=Se.parentOutlet}return!1})()}setDirection(Q,Se,it,Wt){this.direction=Q,this.animated=yn(Q,Se,it),this.animationBuilder=Wt}setTopOutlet(Q){this.topOutlet=Q}consumeTransition(){let Se,Q="root";const it=this.animationBuilder;return"auto"===this.direction?(Q=this.guessDirection,Se=this.guessAnimation):(Se=this.animated,Q=this.direction),this.direction=ir,this.animated=Yn,this.animationBuilder=void 0,{direction:Q,animation:Se,animationBuilder:it}}navigate(Q,Se){if(Array.isArray(Q))return this.router.navigate(Q,Se);{const it=this.serializer.parse(Q.toString());return void 0!==Se.queryParams&&(it.queryParams={...Se.queryParams}),void 0!==Se.fragment&&(it.fragment=Se.fragment),this.router.navigateByUrl(it,Se)}}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(bn),ge.KVO(X.aZ),ge.KVO(Oe.Sd),ge.KVO(Oe.Ix,8))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yn=(Y,Z,Ne)=>{if(!1!==Z){if(void 0!==Ne)return Ne;if("forward"===Y||"back"===Y)return Y;if("root"===Y&&!0===Z)return"forward"}},ir="auto",Yn=void 0;let Ve=(()=>{var Y;class Z{get(Q,Se){const it=Ot();return it?it.get(Q,Se):null}getBoolean(Q,Se){const it=Ot();return!!it&&it.getBoolean(Q,Se)}getNumber(Q,Se){const it=Ot();return it?it.getNumber(Q,Se):0}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yt=new ge.nKC("USERCONFIG"),Ot=()=>{if(typeof window<"u"){const Y=window.Ionic;if(null!=Y&&Y.config)return Y.config}return null};class Xt{constructor(Z={}){(0,d.A)(this,"data",void 0),this.data=Z,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(Z){return this.data[Z]}}let en=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"zone",(0,ge.WQX)(ge.SKi)),(0,d.A)(this,"applicationRef",(0,ge.WQX)(ge.o8S)),(0,d.A)(this,"config",(0,ge.WQX)(yt))}create(Q,Se,it){var Wt;return new Ir(Q,Se,this.applicationRef,this.zone,it,null!==(Wt=this.config.useSetInputAPI)&&void 0!==Wt&&Wt)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();class Ir{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"environmentInjector",void 0),(0,d.A)(this,"injector",void 0),(0,d.A)(this,"applicationRef",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"elementReferenceKey",void 0),(0,d.A)(this,"enableSignalsSupport",void 0),(0,d.A)(this,"elRefMap",new WeakMap),(0,d.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=Z,this.injector=Ne,this.applicationRef=Q,this.zone=Se,this.elementReferenceKey=it,this.enableSignalsSupport=Wt}attachViewToDom(Z,Ne,Q,Se){return this.zone.run(()=>new Promise(it=>{const Wt={...Q};void 0!==this.elementReferenceKey&&(Wt[this.elementReferenceKey]=Z),it(gn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,Z,Ne,Wt,Se,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(Z,Ne){return this.zone.run(()=>new Promise(Q=>{const Se=this.elRefMap.get(Ne);if(Se){Se.destroy(),this.elRefMap.delete(Ne);const it=this.elEventsMap.get(Ne);it&&(it(),this.elEventsMap.delete(Ne))}Q()}))}}const gn=(Y,Z,Ne,Q,Se,it,Wt,cn,Pn,Cr,Hn,$i)=>{const Ai=ge.zZn.create({providers:pr(Pn),parent:Ne}),Pi=(0,ge.a0P)(cn,{environmentInjector:Z,elementInjector:Ai}),xr=Pi.instance,An=Pi.location.nativeElement;if(Pn)if(Hn&&void 0!==xr[Hn]&&console.error(`[Ionic Error]: ${Hn} is a reserved property when using ${Wt.tagName.toLowerCase()}. Rename or remove the "${Hn}" property from ${cn.name}.`),!0===$i&&void 0!==Pi.setInput){const{modal:mi,popover:Si,...ti}=Pn;for(const mr in ti)Pi.setInput(mr,ti[mr]);void 0!==mi&&Object.assign(xr,{modal:mi}),void 0!==Si&&Object.assign(xr,{popover:Si})}else Object.assign(xr,Pn);if(Cr)for(const mi of Cr)An.classList.add(mi);const xi=Jt(Y,xr,An);return Wt.appendChild(An),Q.attachView(Pi.hostView),Se.set(An,Pi),it.set(An,xi),An},mn=[re.L,re.a,re.b,re.c,re.d],Jt=(Y,Z,Ne)=>Y.run(()=>{const Q=mn.filter(Se=>"function"==typeof Z[Se]).map(Se=>{const it=Wt=>Z[Se](Wt.detail);return Ne.addEventListener(Se,it),()=>Ne.removeEventListener(Se,it)});return()=>Q.forEach(Se=>Se())}),Gt=new ge.nKC("NavParamsToken"),pr=Y=>[{provide:Gt,useValue:Y},{provide:Xt,useFactory:wr,deps:[Gt]}],wr=Y=>new Xt(Y),kr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Object.defineProperty(Ne,Q,{get(){return this.el[Q]},set(Se){this.z.runOutsideAngular(()=>this.el[Q]=Se)}})})},Mr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Ne[Q]=function(){const Se=arguments;return this.z.runOutsideAngular(()=>this.el[Q].apply(this.el,Se))}})},_r=(Y,Z,Ne)=>{Ne.forEach(Q=>Y[Q]=(0,Zt.R)(Z,Q))};function Bn(Y){return function(Ne){const{defineCustomElementFn:Q,inputs:Se,methods:it}=Y;return void 0!==Q&&Q(),Se&&kr(Ne,Se),it&&Mr(Ne,it),Ne}}const ni=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Zn=["present","dismiss","onDidDismiss","onWillDismiss"];let wn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-popover"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.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"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ni,methods:Zn})],Z),Z})();const Sr=["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 Er=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-modal"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.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"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:Sr,methods:tr})],Z),Z})();const Qr=(Y,Z)=>((Y=Y.filter(Ne=>Ne.stackId!==Z.stackId)).push(Z),Y),He=(Y,Z)=>{const Ne=Y.createUrlTree(["."],{relativeTo:Z});return Y.serializeUrl(Ne)},ct=(Y,Z)=>!Z||Y.stackId!==Z.stackId,Xe=(Y,Z)=>{if(!Y)return;const Ne=ie(Z);for(let Q=0;Q=Y.length)return Ne[Q];if(Ne[Q]!==Y[Q])return}},ie=Y=>Y.split("/").map(Z=>Z.trim()).filter(Z=>""!==Z),he=Y=>{Y&&(Y.ref.destroy(),Y.unlistenEvents())};class Pe{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"containerEl",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"location",void 0),(0,d.A)(this,"views",[]),(0,d.A)(this,"runningTask",void 0),(0,d.A)(this,"skipTransition",!1),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"activeView",void 0),(0,d.A)(this,"nextId",0),this.containerEl=Ne,this.router=Q,this.navCtrl=Se,this.zone=it,this.location=Wt,this.tabsPrefix=void 0!==Z?ie(Z):void 0}createView(Z,Ne){var Q;const Se=He(this.router,Ne),it=null==Z||null===(Q=Z.location)||void 0===Q?void 0:Q.nativeElement,Wt=Jt(this.zone,Z.instance,it);return{id:this.nextId++,stackId:Xe(this.tabsPrefix,Se),unlistenEvents:Wt,element:it,ref:Z,url:Se}}getExistingView(Z){const Ne=He(this.router,Z),Q=this.views.find(Se=>Se.url===Ne);return Q&&Q.ref.changeDetectorRef.reattach(),Q}setActive(Z){var Ne,Q;const Se=this.navCtrl.consumeTransition();let{direction:it,animation:Wt,animationBuilder:cn}=Se;const Pn=this.activeView,Cr=ct(Z,Pn);Cr&&(it="back",Wt=void 0);const Hn=this.views.slice();let $i;const Ai=this.router;Ai.getCurrentNavigation?$i=Ai.getCurrentNavigation():null!==(Ne=Ai.navigations)&&void 0!==Ne&&Ne.value&&($i=Ai.navigations.value),null!==(Q=$i)&&void 0!==Q&&null!==(Q=Q.extras)&&void 0!==Q&&Q.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Pi=this.views.includes(Z),xr=this.insertView(Z,it);Pi||Z.ref.changeDetectorRef.detectChanges();const An=Z.animationBuilder;return void 0===cn&&"back"===it&&!Cr&&void 0!==An&&(cn=An),Pn&&(Pn.animationBuilder=cn),this.zone.runOutsideAngular(()=>this.wait(()=>(Pn&&Pn.ref.changeDetectorRef.detach(),Z.ref.changeDetectorRef.reattach(),this.transition(Z,Pn,Wt,this.canGoBack(1),!1,cn).then(()=>Et(Z,xr,Hn,this.location,this.zone)).then(()=>({enteringView:Z,direction:it,animation:Wt,tabSwitch:Cr})))))}canGoBack(Z,Ne=this.getActiveStackId()){return this.getStack(Ne).length>Z}pop(Z,Ne=this.getActiveStackId()){return this.zone.run(()=>{const Q=this.getStack(Ne);if(Q.length<=Z)return Promise.resolve(!1);const Se=Q[Q.length-Z-1];let it=Se.url;const Wt=Se.savedData;if(Wt){var cn;const Cr=Wt.get("primary");null!=Cr&&null!==(cn=Cr.route)&&void 0!==cn&&null!==(cn=cn._routerState)&&void 0!==cn&&cn.snapshot.url&&(it=Cr.route._routerState.snapshot.url)}const{animationBuilder:Pn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(it,{...Se.savedExtras,animation:Pn}).then(()=>!0)})}startBackTransition(){const Z=this.activeView;if(Z){const Ne=this.getStack(Z.stackId),Q=Ne[Ne.length-2],Se=Q.animationBuilder;return this.wait(()=>this.transition(Q,Z,"back",this.canGoBack(2),!0,Se))}return Promise.resolve()}endBackTransition(Z){Z?(this.skipTransition=!0,this.pop(1)):this.activeView&&rt(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[Ne.length-1]:void 0}getRootUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[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(he),this.activeView=void 0,this.views=[]}getStack(Z){return this.views.filter(Ne=>Ne.stackId===Z)}insertView(Z,Ne){return this.activeView=Z,this.views=((Y,Z,Ne)=>"root"===Ne?Qr(Y,Z):"forward"===Ne?((Y,Z)=>(Y.indexOf(Z)>=0?Y=Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Y.push(Z),Y))(Y,Z):((Y,Z)=>Y.indexOf(Z)>=0?Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Qr(Y,Z))(Y,Z))(this.views,Z,Ne),this.views.slice()}transition(Z,Ne,Q,Se,it,Wt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Ne===Z)return Promise.resolve(!1);const cn=Z?Z.element:void 0,Pn=Ne?Ne.element:void 0,Cr=this.containerEl;return cn&&cn!==Pn&&(cn.classList.add("ion-page"),cn.classList.add("ion-page-invisible"),Cr.commit)?Cr.commit(cn,Pn,{duration:void 0===Q?0:void 0,direction:Q,showGoBack:Se,progressAnimation:it,animationBuilder:Wt}):Promise.resolve(!1)}wait(Z){var Ne=this;return(0,g.A)(function*(){void 0!==Ne.runningTask&&(yield Ne.runningTask,Ne.runningTask=void 0);const Q=Ne.runningTask=Z();return Q.finally(()=>Ne.runningTask=void 0),Q})()}}const Et=(Y,Z,Ne,Q,Se)=>"function"==typeof requestAnimationFrame?new Promise(it=>{requestAnimationFrame(()=>{rt(Y,Z,Ne,Q,Se),it()})}):Promise.resolve(),rt=(Y,Z,Ne,Q,Se)=>{Se.run(()=>Ne.filter(it=>!Z.includes(it)).forEach(he)),Z.forEach(it=>{const cn=Q.path().split("?")[0].split("#")[0];if(it!==Y&&it.url!==cn){const Pn=it.element;Pn.setAttribute("aria-hidden","true"),Pn.classList.add("ion-page-hidden"),it.ref.changeDetectorRef.detach()}})};let dn=(()=>{var Y;class Z{get activatedComponentRef(){return this.activated}set animation(Q){this.nativeEl.animation=Q}set animated(Q){this.nativeEl.animated=Q}set swipeGesture(Q){this._swipeGesture=Q,this.nativeEl.swipeHandler=Q?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:Se=>this.stackCtrl.endBackTransition(Se)}:void 0}constructor(Q,Se,it,Wt,cn,Pn,Cr,Hn){(0,d.A)(this,"parentOutlet",void 0),(0,d.A)(this,"nativeEl",void 0),(0,d.A)(this,"activatedView",null),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"_swipeGesture",void 0),(0,d.A)(this,"stackCtrl",void 0),(0,d.A)(this,"proxyMap",new WeakMap),(0,d.A)(this,"currentActivatedRoute$",new Dt.t(null)),(0,d.A)(this,"activated",null),(0,d.A)(this,"_activatedRoute",null),(0,d.A)(this,"name",Oe.Xk),(0,d.A)(this,"stackWillChange",new ge.bkB),(0,d.A)(this,"stackDidChange",new ge.bkB),(0,d.A)(this,"activateEvents",new ge.bkB),(0,d.A)(this,"deactivateEvents",new ge.bkB),(0,d.A)(this,"parentContexts",(0,ge.WQX)(Oe.Zp)),(0,d.A)(this,"location",(0,ge.WQX)(ge.c1b)),(0,d.A)(this,"environmentInjector",(0,ge.WQX)(ge.uvJ)),(0,d.A)(this,"inputBinder",(0,ge.WQX)(Wn,{optional:!0})),(0,d.A)(this,"supportsBindingToComponentInputs",!0),(0,d.A)(this,"config",(0,ge.WQX)(Ve)),(0,d.A)(this,"navCtrl",(0,ge.WQX)(er)),this.parentOutlet=Hn,this.nativeEl=Wt.nativeElement,this.name=Q||Oe.Xk,this.tabsPrefix="true"===Se?He(cn,Cr):void 0,this.stackCtrl=new Pe(this.tabsPrefix,this.nativeEl,cn,this.navCtrl,Pn,it),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var Q;this.stackCtrl.destroy(),null===(Q=this.inputBinder)||void 0===Q||Q.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const Q=this.getContext();null!=Q&&Q.route&&this.activateWith(Q.route,Q.injector)}new Promise(Q=>((Y,Z)=>{Y.componentOnReady?Y.componentOnReady().then(Ne=>Z(Ne)):(Y=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y)})(()=>Z(Y))})(this.nativeEl,Q)).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(Q,Se){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const Se=this.getContext();this.activatedView.savedData=new Map(Se.children.contexts);const it=this.activatedView.savedData.get("primary");if(it&&Se.route&&(it.route={...Se.route}),this.activatedView.savedExtras={},Se.route){const Wt=Se.route.snapshot;this.activatedView.savedExtras.queryParams=Wt.queryParams,this.activatedView.savedExtras.fragment=Wt.fragment}}const Q=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Q)}}activateWith(Q,Se){var it;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Q;let Wt,cn=this.stackCtrl.getExistingView(Q);if(cn){Wt=this.activated=cn.ref;const Hn=cn.savedData;Hn&&(this.getContext().children.contexts=Hn),this.updateActivatedRouteProxy(Wt.instance,Q)}else{var Pn;const Hn=Q._futureSnapshot,$i=this.parentContexts.getOrCreateContext(this.name).children,Ai=new Dt.t(null),Pi=this.createActivatedRouteProxy(Ai,Q),xr=new Sn(Pi,$i,this.location.injector),An=null!==(Pn=Hn.routeConfig.component)&&void 0!==Pn?Pn:Hn.component;Wt=this.activated=this.outletContent.createComponent(An,{index:this.outletContent.length,injector:xr,environmentInjector:null!=Se?Se:this.environmentInjector}),Ai.next(Wt.instance),cn=this.stackCtrl.createView(this.activated,Q),this.proxyMap.set(Wt.instance,Pi),this.currentActivatedRoute$.next({component:Wt.instance,activatedRoute:Q})}null===(it=this.inputBinder)||void 0===it||it.bindActivatedRouteToOutletComponent(this),this.activatedView=cn,this.navCtrl.setTopOutlet(this);const Cr=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:cn,tabSwitch:ct(cn,Cr)}),this.stackCtrl.setActive(cn).then(Hn=>{this.activateEvents.emit(Wt.instance),this.stackDidChange.emit(Hn)})}canGoBack(Q=1,Se){return this.stackCtrl.canGoBack(Q,Se)}pop(Q=1,Se){return this.stackCtrl.pop(Q,Se)}getLastUrl(Q){const Se=this.stackCtrl.getLastUrl(Q);return Se?Se.url:void 0}getLastRouteView(Q){return this.stackCtrl.getLastUrl(Q)}getRootView(Q){return this.stackCtrl.getRootUrl(Q)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(Q,Se){const it=new Oe.nX;return it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,it._paramMap=this.proxyObservable(Q,"paramMap"),it._queryParamMap=this.proxyObservable(Q,"queryParamMap"),it.url=this.proxyObservable(Q,"url"),it.params=this.proxyObservable(Q,"params"),it.queryParams=this.proxyObservable(Q,"queryParams"),it.fragment=this.proxyObservable(Q,"fragment"),it.data=this.proxyObservable(Q,"data"),it}proxyObservable(Q,Se){return Q.pipe((0,ye.p)(it=>!!it),(0,j.n)(it=>this.currentActivatedRoute$.pipe((0,ye.p)(Wt=>null!==Wt&&Wt.component===it),(0,j.n)(Wt=>Wt&&Wt.activatedRoute[Se]),function ae(Y,Z=W.D){return Y=null!=Y?Y:me,(0,te.N)((Ne,Q)=>{let Se,it=!0;Ne.subscribe((0,de._)(Q,Wt=>{const cn=Z(Wt);(it||!Y(Se,cn))&&(it=!1,Se=cn,Q.next(Wt))}))})}())))}updateActivatedRouteProxy(Q,Se){const it=this.proxyMap.get(Q);if(!it)throw new Error("Could not find activated route proxy for view");it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,this.currentActivatedRoute$.next({component:Q,activatedRoute:Se})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.kS0("name"),ge.kS0("tabs"),ge.rXU(X.aZ),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(ge.SKi),ge.rXU(Oe.nX),ge.rXU(Y,12))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,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"]})),Z})();class Sn{constructor(Z,Ne,Q){(0,d.A)(this,"route",void 0),(0,d.A)(this,"childContexts",void 0),(0,d.A)(this,"parent",void 0),this.route=Z,this.childContexts=Ne,this.parent=Q}get(Z,Ne){return Z===Oe.nX?this.route:Z===Oe.Zp?this.childContexts:this.parent.get(Z,Ne)}}const Wn=new ge.nKC("");let gr=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(Q){this.unsubscribeFromRouteData(Q),this.subscribeToRouteData(Q)}unsubscribeFromRouteData(Q){var Se;null===(Se=this.outletDataSubscriptions.get(Q))||void 0===Se||Se.unsubscribe(),this.outletDataSubscriptions.delete(Q)}subscribeToRouteData(Q){const{activatedRoute:Se}=Q,it=(0,Be.z)([Se.queryParams,Se.params,Se.data]).pipe((0,j.n)(([Wt,cn,Pn],Cr)=>(Pn={...Wt,...cn,...Pn},0===Cr?(0,rn.of)(Pn):Promise.resolve(Pn)))).subscribe(Wt=>{if(!Q.isActivated||!Q.activatedComponentRef||Q.activatedRoute!==Se||null===Se.component)return void this.unsubscribeFromRouteData(Q);const cn=(0,ge.HJs)(Se.component);if(cn)for(const{templateName:Pn}of cn.inputs)Q.activatedComponentRef.setInput(Pn,Wt[Pn]);else this.unsubscribeFromRouteData(Q)});this.outletDataSubscriptions.set(Q,it)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();const ur=()=>({provide:Wn,useFactory:ri,deps:[Oe.Ix]});function ri(Y){return null!=Y&&Y.componentInputBindingEnabled?new gr:null}const xn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Rn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"routerOutlet",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"config",void 0),(0,d.A)(this,"r",void 0),(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.routerOutlet=Q,this.navCtrl=Se,this.config=it,this.r=Wt,this.z=cn,Pn.detach(),this.el=this.r.nativeElement}onClick(Q){var Se;const it=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(Se=this.routerOutlet)&&void 0!==Se&&Se.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),Q.preventDefault()):null!=it&&(this.navCtrl.navigateBack(it,{animation:this.routerAnimation}),Q.preventDefault())}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(dn,8),ge.rXU(er),ge.rXU(Ve),ge.rXU(ge.aKT),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:xn})],Z),Z})(),yr=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(Q){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),Q.preventDefault()}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})(),Ei=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(){return Se.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})();const ii=["animated","animation","root","rootParams","swipeGesture"],pi=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Ui=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.z=cn,Pn.detach(),this.el=Q.nativeElement,Q.nativeElement.delegate=Wt.create(Se,it),_r(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.aKT),ge.rXU(ge.uvJ),ge.rXU(ge.zZn),ge.rXU(en),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ii,methods:pi})],Z),Z})(),or=(()=>{var Y;class Z{constructor(Q){(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"tabsInner",void 0),(0,d.A)(this,"ionTabsWillChange",new ge.bkB),(0,d.A)(this,"ionTabsDidChange",new ge.bkB),(0,d.A)(this,"tabBarSlot","bottom"),this.navCtrl=Q}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&this.ionTabsWillChange.emit({tab:it})}onStackDidChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&(this.tabBar&&(this.tabBar.selectedTab=it),this.ionTabsDidChange.emit({tab:it}))}select(Q){const Se="string"==typeof Q,it=Se?Q:Q.detail.tab,Wt=this.outlet.getActiveStackId()===it,cn=`${this.outlet.tabsPrefix}/${it}`;if(Se||Q.stopPropagation(),Wt){const Pn=this.outlet.getActiveStackId(),Cr=this.outlet.getLastRouteView(Pn);if((null==Cr?void 0:Cr.url)===cn)return;const Hn=this.outlet.getRootView(it);return this.navCtrl.navigateRoot(cn,{...Hn&&cn===Hn.url&&Hn.savedExtras,animated:!0,animationDirection:"back"})}{const Pn=this.outlet.getLastRouteView(it);return this.navCtrl.navigateRoot((null==Pn?void 0:Pn.url)||cn,{...null==Pn?void 0:Pn.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(Q=>{const Se=Q.el.getAttribute("slot");Se!==this.tabBarSlot&&(this.tabBarSlot=Se,this.relocateTabBar())})}relocateTabBar(){const Q=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(Q):this.tabsInner.nativeElement.after(Q)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(er))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-tabs"]],viewQuery:function(Q,Se){if(1&Q&&ge.GBs(at,7,ge.aKT),2&Q){let it;ge.mGM(it=ge.lsd())&&(Se.tabsInner=it.first)}},hostBindings:function(Q,Se){1&Q&&ge.bIt("ionTabButtonClick",function(Wt){return Se.select(Wt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),Z})();const Hi=Y=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y);let wi=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"injector",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"onChange",()=>{}),(0,d.A)(this,"onTouched",()=>{}),(0,d.A)(this,"lastValue",void 0),(0,d.A)(this,"statusChanges",void 0),this.injector=Q,this.elementRef=Se}writeValue(Q){this.elementRef.nativeElement.value=this.lastValue=Q,gi(this.elementRef)}handleValueChange(Q,Se){Q===this.elementRef.nativeElement&&(Se!==this.lastValue&&(this.lastValue=Se,this.onChange(Se)),gi(this.elementRef))}_handleBlurEvent(Q){Q===this.elementRef.nativeElement&&(this.onTouched(),gi(this.elementRef))}registerOnChange(Q){this.onChange=Q}registerOnTouched(Q){this.onTouched=Q}setDisabledState(Q){this.elementRef.nativeElement.disabled=Q}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let Q;try{Q=this.injector.get(Ce.vO)}catch{}if(!Q)return;Q.statusChanges&&(this.statusChanges=Q.statusChanges.subscribe(()=>gi(this.elementRef)));const Se=Q.control;Se&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Wt=>{if(typeof Se[Wt]<"u"){const cn=Se[Wt].bind(Se);Se[Wt]=(...Pn)=>{cn(...Pn),gi(this.elementRef)}}})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.zZn),ge.rXU(ge.aKT))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("ionBlur",function(Wt){return Se._handleBlurEvent(Wt.target)})}})),Z})();const gi=Y=>{Hi(()=>{const Z=Y.nativeElement,Ne=null!=Z.value&&Z.value.toString().length>0,Q=St(Z);lt(Z,Q);const Se=Z.closest("ion-item");Se&<(Se,Ne?[...Q,"item-has-value"]:Q)})},St=Y=>{const Z=Y.classList,Ne=[];for(let Q=0;Q{const Ne=Y.classList;Ne.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Ne.add(...Z)},Ut=(Y,Z)=>Y.substring(0,Z.length)===Z;class fn{shouldDetach(Z){return!1}shouldAttach(Z){return!1}store(Z,Ne){}retrieve(Z){return null}shouldReuseRoute(Z,Ne){if(Z.routeConfig!==Ne.routeConfig)return!1;const Q=Z.params,Se=Ne.params,it=Object.keys(Q),Wt=Object.keys(Se);if(it.length!==Wt.length)return!1;for(const cn of it)if(Se[cn]!==Q[cn])return!1;return!0}}class Kn{constructor(Z){(0,d.A)(this,"ctrl",void 0),this.ctrl=Z}create(Z){return this.ctrl.create(Z||{})}dismiss(Z,Ne,Q){return this.ctrl.dismiss(Z,Ne,Q)}getTop(){return this.ctrl.getTop()}}},7863:(En,bt,B)=>{"use strict";B.d(bt,{hG:()=>Bi,U1:()=>bn,Jm:()=>Yn,b_:()=>yt,I9:()=>Ot,ME:()=>Xt,tN:()=>Ir,hU:()=>Jt,W9:()=>Gt,lO:()=>ni,eU:()=>Zn,iq:()=>wn,$w:()=>Mi,uz:()=>Yr,Dg:()=>oe,he:()=>he,nf:()=>Pe,oS:()=>dn,MC:()=>Sn,cA:()=>Wn,To:()=>or,Ki:()=>Hi,Rg:()=>xr,ln:()=>lt,HP:()=>Se,BC:()=>Hn,ai:()=>Pi,bv:()=>Ni,Xi:()=>sr,_t:()=>Or,N7:()=>Si,oY:()=>ti,Gw:()=>W});var g=B(9842),d=B(4438),ge=B(4341),Oe=B(3656),X=B(1635),Ee=B(3726),re=B(177),Ze=B(845),Le=(B(9986),B(2725),B(8454),B(3314),B(8607),B(3664)),Qe=B(464),ft=B(5465),ut=B(6002),Mt=(B(8476),B(9672));B(1970),B(6411);var Ke=B(467);const Ct=Le.i,xt=function(){var S=(0,Ke.A)(function*(H,ue){if(!(typeof window>"u"))return yield Ct(),(0,Mt.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]}]]]]'),ue)});return function(ue,M){return S.apply(this,arguments)}}(),ze=["*"],Tt=["outletContent"];let W=(()=>{var S;class H extends Oe.fL{constructor(M,fe){super(M,fe)}_handleInputEvent(M){this.handleValueChange(M,M.value)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.rXU(d.zZn),d.rXU(d.aKT))}),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(M,fe){1&M&&d.bIt("ionInput",function(ar){return fe._handleInputEvent(ar.target)})},features:[d.Jv_([{provide:ge.kq,useExisting:S,multi:!0}]),d.Vt3]})),H})();const te=(S,H)=>{const ue=S.prototype;H.forEach(M=>{Object.defineProperty(ue,M,{get(){return this.el[M]},set(fe){this.z.runOutsideAngular(()=>this.el[M]=fe)},configurable:!0})})},de=(S,H)=>{const ue=S.prototype;H.forEach(M=>{ue[M]=function(){const fe=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,fe))}})},ae=(S,H,ue)=>{ue.forEach(M=>S[M]=(0,Ee.R)(H,M))};function Ce(S){return function(ue){const{defineCustomElementFn:M,inputs:fe,methods:qe}=S;return void 0!==M&&M(),fe&&te(ue,fe),qe&&de(ue,qe),ue}}let bn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Yn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),yt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),Ot=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["mode"]})],H),H})(),Xt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","translucent"]})],H),H})(),Ir=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),Jt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({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"]})],H),H})(),Gt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),ni=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["fixed"]})],H),H})(),Zn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["collapse","mode","translucent"]})],H),H})(),wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),Mi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({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"]})],H),H})(),Yr=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),oe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","sticky"]})],H),H})(),he=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","position"]})],H),H})(),Pe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),dn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),Sn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","menu"]})],H),H})(),or=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],H),H})(),Hi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],H),H})(),lt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Se=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","when"]})],H),H})(),Hn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","size"]})],H),H})(),Pi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),xr=(()=>{var S;class H extends Oe.Rg{constructor(M,fe,qe,ar,ui,U,ne,Ae){super(M,fe,qe,ar,ui,U,ne,Ae),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=Ae}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.kS0("name"),d.kS0("tabs"),d.rXU(re.aZ),d.rXU(d.aKT),d.rXU(Ze.Ix),d.rXU(d.SKi),d.rXU(Ze.nX),d.rXU(S,12))}),(0,g.A)(H,"\u0275cmp",d.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(M,fe){if(1&M&&d.GBs(Tt,7,d.c1b),2&M){let qe;d.mGM(qe=d.lsd())&&(fe.outletContent=qe.first)}},features:[d.Vt3],ngContentSelectors:ze,decls:3,vars:0,consts:[["outletContent",""]],template:function(M,fe){1&M&&(d.NAR(),d.qex(0,null,0),d.SdG(2),d.bVm())},encapsulation:2})),H})(),Si=(()=>{var S;class H extends Oe.CE{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[d.Vt3]})),H})(),ti=(()=>{var S;class H extends Oe.pF{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[d.Vt3]})),H})();const Nn={provide:ge.cz,useExisting:(0,d.Rfq)(()=>kn),multi:!0};let kn=(()=>{var S;class H extends ge.zX{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.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(M,fe){2&M&&d.BMQ("max",fe._enabled?fe.max:null)},features:[d.Jv_([Nn]),d.Vt3]})),H})();const ko={provide:ge.cz,useExisting:(0,d.Rfq)(()=>ei),multi:!0};let ei=(()=>{var S;class H extends ge.VZ{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.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(M,fe){2&M&&d.BMQ("min",fe._enabled?fe.min:null)},features:[d.Jv_([ko]),d.Vt3]})),H})(),Bi=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.a)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),sr=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.l)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),Or=(()=>{var S;class H extends Oe._t{constructor(){super(ft.m)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),ai=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.m),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(M){return super.create({...M,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac})),H})();class Fo extends Oe.Kb{constructor(){super(ut.c),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Co=(S,H,ue)=>()=>{const M=H.defaultView;if(M&&typeof window<"u"){(0,Qe.s)({...S,_zoneGate:qe=>ue.run(qe)});const fe="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function je(){var S=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&S.push(B.e(7278).then(B.t.bind(B,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var M=new URL("b","http://a");return M.pathname="c%20d","http://a/c%20d"===M.href&&M.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(B.e(9329).then(B.t.bind(B,7783,23)))}return Promise.all(S)}().then(()=>xt(M,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:qe=>ue.runOutsideAngular(qe),ael(qe,ar,ui,U){qe[fe](ar,ui,U)},rel(qe,ar,ui,U){qe.removeEventListener(ar,ui,U)}}))}};let Ni=(()=>{var S;class H{static forRoot(M={}){return{ngModule:H,providers:[{provide:Oe.sR,useValue:M},{provide:d.hnV,useFactory:Co,multi:!0,deps:[Oe.sR,re.qQ,d.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275mod",d.$C({type:S})),(0,g.A)(H,"\u0275inj",d.G2t({providers:[ai,Fo],imports:[re.MD]})),H})()},2214:(En,bt,B)=>{"use strict";B.d(bt,{Dk:()=>g.Dk,KO:()=>g.KO,Sx:()=>g.Sx,Wp:()=>g.Wp});var g=B(7852);(0,g.KO)("firebase","10.12.2","app")},467:(En,bt,B)=>{"use strict";function g(ge,Oe,X,Ee,re,Ze,Je){try{var De=ge[Ze](Je),_e=De.value}catch(Fe){return void X(Fe)}De.done?Oe(_e):Promise.resolve(_e).then(Ee,re)}function d(ge){return function(){var Oe=this,X=arguments;return new Promise(function(Ee,re){var Ze=ge.apply(Oe,X);function Je(_e){g(Ze,Ee,re,Je,De,"next",_e)}function De(_e){g(Ze,Ee,re,Je,De,"throw",_e)}Je(void 0)})}}B.d(bt,{A:()=>d})},9842:(En,bt,B)=>{"use strict";function g(X){return(g="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})(X)}function Oe(X,Ee,re){return(Ee=function ge(X){var Ee=function d(X,Ee){if("object"!=g(X)||!X)return X;var re=X[Symbol.toPrimitive];if(void 0!==re){var Ze=re.call(X,Ee||"default");if("object"!=g(Ze))return Ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ee?String:Number)(X)}(X,"string");return"symbol"==g(Ee)?Ee:String(Ee)}(Ee))in X?Object.defineProperty(X,Ee,{value:re,enumerable:!0,configurable:!0,writable:!0}):X[Ee]=re,X}B.d(bt,{A:()=>Oe})},1635:(En,bt,B)=>{"use strict";function Oe(j,W){var te={};for(var de in j)Object.prototype.hasOwnProperty.call(j,de)&&W.indexOf(de)<0&&(te[de]=j[de]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(de=Object.getOwnPropertySymbols(j);ae=0;at--)(Ce=j[at])&&(me=(ae<3?Ce(me):ae>3?Ce(W,te,me):Ce(W,te))||me);return ae>3&&me&&Object.defineProperty(W,te,me),me}function Fe(j,W,te,de){return new(te||(te=Promise))(function(me,Ce){function at(vn){try{Bt(de.next(vn))}catch(bn){Ce(bn)}}function kt(vn){try{Bt(de.throw(vn))}catch(bn){Ce(bn)}}function Bt(vn){vn.done?me(vn.value):function ae(me){return me instanceof te?me:new te(function(Ce){Ce(me)})}(vn.value).then(at,kt)}Bt((de=de.apply(j,W||[])).next())})}function vt(j){return this instanceof vt?(this.v=j,this):new vt(j)}function Me(j,W,te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,de=te.apply(j,W||[]),me=[];return ae={},Ce("next"),Ce("throw"),Ce("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function Ce($n){de[$n]&&(ae[$n]=function(qn){return new Promise(function(er,yn){me.push([$n,qn,er,yn])>1||at($n,qn)})})}function at($n,qn){try{!function kt($n){$n.value instanceof vt?Promise.resolve($n.value.v).then(Bt,vn):bn(me[0][2],$n)}(de[$n](qn))}catch(er){bn(me[0][3],er)}}function Bt($n){at("next",$n)}function vn($n){at("throw",$n)}function bn($n,qn){$n(qn),me.shift(),me.length&&at(me[0][0],me[0][1])}}function Ke(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te,W=j[Symbol.asyncIterator];return W?W.call(j):(j=function ft(j){var W="function"==typeof Symbol&&Symbol.iterator,te=W&&j[W],de=0;if(te)return te.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&de>=j.length&&(j=void 0),{value:j&&j[de++],done:!j}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),te={},de("next"),de("throw"),de("return"),te[Symbol.asyncIterator]=function(){return this},te);function de(me){te[me]=j[me]&&function(Ce){return new Promise(function(at,kt){!function ae(me,Ce,at,kt){Promise.resolve(kt).then(function(Bt){me({value:Bt,done:at})},Ce)}(at,kt,(Ce=j[me](Ce)).done,Ce.value)})}}}B.d(bt,{AQ:()=>Me,Cg:()=>X,N3:()=>vt,Tt:()=>Oe,sH:()=>Fe,xN:()=>Ke}),"function"==typeof SuppressedError&&SuppressedError}},En=>{En(En.s=63)}]); \ No newline at end of file diff --git a/www/main.1ef6282d8aeaee27.js b/www/main.1ef6282d8aeaee27.js new file mode 100644 index 0000000..05a1eec --- /dev/null +++ b/www/main.1ef6282d8aeaee27.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(En,bt,B)=>{"use strict";B.d(bt,{Am:()=>en,FA:()=>me,Fy:()=>Ke,I9:()=>Ir,Im:()=>Yn,Ku:()=>Xe,T9:()=>vt,Tj:()=>Mt,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ct,bD:()=>yt,cY:()=>je,eX:()=>W,g:()=>ae,hp:()=>gn,jZ:()=>xt,lT:()=>Be,lV:()=>Zt,nr:()=>ye,sr:()=>Vt,tD:()=>Jt,u:()=>De,yU:()=>mt,zW:()=>j});const Oe=function(ie){const he=[];let Pe=0;for(let Et=0;Et>6|192,he[Pe++]=63&rt|128):55296==(64512&rt)&&Et+1>18|240,he[Pe++]=rt>>12&63|128,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128):(he[Pe++]=rt>>12|224,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128)}return he},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(ie,he){if(!Array.isArray(ie))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Pe=he?this.byteToCharMapWebSafe_:this.byteToCharMap_,Et=[];for(let rt=0;rt>6,yr=63&ur;gr||(yr=64,Sn||(Rn=64)),Et.push(Pe[dn>>2],Pe[(3&dn)<<4|Wn>>4],Pe[Rn],Pe[yr])}return Et.join("")},encodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?btoa(ie):this.encodeByteArray(Oe(ie),he)},decodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?atob(ie):function(ie){const he=[];let Pe=0,Et=0;for(;Pe191&&rt<224){const dn=ie[Pe++];he[Et++]=String.fromCharCode((31&rt)<<6|63&dn)}else if(rt>239&&rt<365){const gr=((7&rt)<<18|(63&ie[Pe++])<<12|(63&ie[Pe++])<<6|63&ie[Pe++])-65536;he[Et++]=String.fromCharCode(55296+(gr>>10)),he[Et++]=String.fromCharCode(56320+(1023&gr))}else{const dn=ie[Pe++],Sn=ie[Pe++];he[Et++]=String.fromCharCode((15&rt)<<12|(63&dn)<<6|63&Sn)}}return he.join("")}(this.decodeStringToByteArray(ie,he))},decodeStringToByteArray(ie,he){this.init_();const Pe=he?this.charToByteMapWebSafe_:this.charToByteMap_,Et=[];for(let rt=0;rt>4),64!==ur&&(Et.push(Wn<<4&240|ur>>2),64!==xn&&Et.push(ur<<6&192|xn))}return Et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ie=0;ie=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ie)]=ie,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ie)]=ie)}}};class re extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ie){return function(ie){const he=Oe(ie);return Ee.encodeByteArray(he,!0)}(ie).replace(/\./g,"")},De=function(ie){try{return Ee.decodeString(ie,!0)}catch(he){console.error("base64Decode failed: ",he)}return null},st=()=>{try{return function Le(){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 ie=process.env.__FIREBASE_DEFAULTS__;return ie?JSON.parse(ie):void 0})()||(()=>{if(typeof document>"u")return;let ie;try{ie=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const he=ie&&De(ie[1]);return he&&JSON.parse(he)})()}catch(ie){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ie}`)}},Mt=ie=>{var he,Pe;return null===(Pe=null===(he=st())||void 0===he?void 0:he.emulatorHosts)||void 0===Pe?void 0:Pe[ie]},mt=ie=>{const he=Mt(ie);if(!he)return;const Pe=he.lastIndexOf(":");if(Pe<=0||Pe+1===he.length)throw new Error(`Invalid host ${he} with no separate hostname and port!`);const Et=parseInt(he.substring(Pe+1),10);return"["===he[0]?[he.substring(1,Pe-1),Et]:[he.substring(0,Pe),Et]},vt=()=>{var ie;return null===(ie=st())||void 0===ie?void 0:ie.config},Me=ie=>{var he;return null===(he=st())||void 0===he?void 0:he[`_${ie}`]};class je{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((he,Pe)=>{this.resolve=he,this.reject=Pe})}wrapCallback(he){return(Pe,Et)=>{Pe?this.reject(Pe):this.resolve(Et),"function"==typeof he&&(this.promise.catch(()=>{}),1===he.length?he(Pe):he(Pe,Et))}}}function Ke(ie,he){if(ie.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Et=he||"demo-project",rt=ie.iat||0,dn=ie.sub||ie.user_id;if(!dn)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Sn=Object.assign({iss:`https://securetoken.google.com/${Et}`,aud:Et,iat:rt,exp:rt+3600,auth_time:rt,sub:dn,user_id:dn,firebase:{sign_in_provider:"custom",identities:{}}},ie);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(Sn)),""].join(".")}function Ct(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function xt(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ct())}function Vt(){const ie="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ie&&void 0!==ie.id}function Zt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Be(){const ie=Ct();return ie.indexOf("MSIE ")>=0||ie.indexOf("Trident/")>=0}function ye(){return!function ze(){var ie;const he=null===(ie=st())||void 0===ie?void 0:ie.forceEnvironment;if("node"===he)return!0;if("browser"===he)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((ie,he)=>{try{let Pe=!0;const Et="validate-browser-context-for-indexeddb-analytics-module",rt=self.indexedDB.open(Et);rt.onsuccess=()=>{rt.result.close(),Pe||self.indexedDB.deleteDatabase(Et),ie(!0)},rt.onupgradeneeded=()=>{Pe=!1},rt.onerror=()=>{var dn;he((null===(dn=rt.error)||void 0===dn?void 0:dn.message)||"")}}catch(Pe){he(Pe)}})}class ae extends Error{constructor(he,Pe,Et){super(Pe),this.code=he,this.customData=Et,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,me.prototype.create)}}class me{constructor(he,Pe,Et){this.service=he,this.serviceName=Pe,this.errors=Et}create(he,...Pe){const Et=Pe[0]||{},rt=`${this.service}/${he}`,dn=this.errors[he],Sn=dn?function Ce(ie,he){return ie.replace(at,(Pe,Et)=>{const rt=he[Et];return null!=rt?String(rt):`<${Et}?>`})}(dn,Et):"Error";return new ae(rt,`${this.serviceName}: ${Sn} (${rt}).`,Et)}}const at=/\{\$([^}]+)}/g;function Yn(ie){for(const he in ie)if(Object.prototype.hasOwnProperty.call(ie,he))return!1;return!0}function yt(ie,he){if(ie===he)return!0;const Pe=Object.keys(ie),Et=Object.keys(he);for(const rt of Pe){if(!Et.includes(rt))return!1;const dn=ie[rt],Sn=he[rt];if(Ot(dn)&&Ot(Sn)){if(!yt(dn,Sn))return!1}else if(dn!==Sn)return!1}for(const rt of Et)if(!Pe.includes(rt))return!1;return!0}function Ot(ie){return null!==ie&&"object"==typeof ie}function en(ie){const he=[];for(const[Pe,Et]of Object.entries(ie))Array.isArray(Et)?Et.forEach(rt=>{he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(rt))}):he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(Et));return he.length?"&"+he.join("&"):""}function Ir(ie){const he={};return ie.replace(/^\?/,"").split("&").forEach(Et=>{if(Et){const[rt,dn]=Et.split("=");he[decodeURIComponent(rt)]=decodeURIComponent(dn)}}),he}function gn(ie){const he=ie.indexOf("?");if(!he)return"";const Pe=ie.indexOf("#",he);return ie.substring(he,Pe>0?Pe:void 0)}function Jt(ie,he){const Pe=new Gt(ie,he);return Pe.subscribe.bind(Pe)}class Gt{constructor(he,Pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Pe,this.task.then(()=>{he(this)}).catch(Et=>{this.error(Et)})}next(he){this.forEachObserver(Pe=>{Pe.next(he)})}error(he){this.forEachObserver(Pe=>{Pe.error(he)}),this.close(he)}complete(){this.forEachObserver(he=>{he.complete()}),this.close()}subscribe(he,Pe,Et){let rt;if(void 0===he&&void 0===Pe&&void 0===Et)throw new Error("Missing Observer.");rt=function wr(ie,he){if("object"!=typeof ie||null===ie)return!1;for(const Pe of he)if(Pe in ie&&"function"==typeof ie[Pe])return!0;return!1}(he,["next","error","complete"])?he:{next:he,error:Pe,complete:Et},void 0===rt.next&&(rt.next=kr),void 0===rt.error&&(rt.error=kr),void 0===rt.complete&&(rt.complete=kr);const dn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?rt.error(this.finalError):rt.complete()}catch{}}),this.observers.push(rt),dn}unsubscribeOne(he){void 0===this.observers||void 0===this.observers[he]||(delete this.observers[he],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(he){if(!this.finalized)for(let Pe=0;Pe{if(void 0!==this.observers&&void 0!==this.observers[he])try{Pe(this.observers[he])}catch(Et){typeof console<"u"&&console.error&&console.error(Et)}})}close(he){this.finalized||(this.finalized=!0,void 0!==he&&(this.finalError=he),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function kr(){}function Xe(ie){return ie&&ie._delegate?ie._delegate:ie}},4442:(En,bt,B)=>{"use strict";B.d(bt,{L:()=>X,a:()=>Ee,b:()=>re,c:()=>Ze,d:()=>Je,g:()=>pt}),B(5531);const X="ionViewWillEnter",Ee="ionViewDidEnter",re="ionViewWillLeave",Ze="ionViewDidLeave",Je="ionViewWillUnload",pt=ye=>ye.classList.contains("ion-page")?ye:ye.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||ye},5531:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>De,c:()=>d,g:()=>Je});class g{constructor(){this.m=new Map}reset(ye){this.m=new Map(Object.entries(ye))}get(ye,j){const W=this.m.get(ye);return void 0!==W?W:j}getBoolean(ye,j=!1){const W=this.m.get(ye);return void 0===W?j:"string"==typeof W?"true"===W:!!W}getNumber(ye,j){const W=parseFloat(this.m.get(ye));return isNaN(W)?void 0!==j?j:NaN:W}set(ye,j){this.m.set(ye,j)}}const d=new g,Je=pt=>_e(pt),De=(pt,ye)=>("string"==typeof pt&&(ye=pt,pt=void 0),Je(pt).includes(ye)),_e=(pt=window)=>{if(typeof pt>"u")return[];pt.Ionic=pt.Ionic||{};let ye=pt.Ionic.platforms;return null==ye&&(ye=pt.Ionic.platforms=Fe(pt),ye.forEach(j=>pt.document.documentElement.classList.add(`plt-${j}`))),ye},Fe=pt=>{const ye=d.get("platform");return Object.keys(Zt).filter(j=>{const W=null==ye?void 0:ye[j];return"function"==typeof W?W(pt):Zt[j](pt)})},Le=pt=>!!(Tt(pt,/iPad/i)||Tt(pt,/Macintosh/i)&&vt(pt)),ut=pt=>Tt(pt,/android|sink/i),vt=pt=>Vt(pt,"(any-pointer:coarse)"),je=pt=>Ke(pt)||Ct(pt),Ke=pt=>!!(pt.cordova||pt.phonegap||pt.PhoneGap),Ct=pt=>{const ye=pt.Capacitor;return!(null==ye||!ye.isNative)},Tt=(pt,ye)=>ye.test(pt.navigator.userAgent),Vt=(pt,ye)=>{var j;return null===(j=pt.matchMedia)||void 0===j?void 0:j.call(pt,ye).matches},Zt={ipad:Le,iphone:pt=>Tt(pt,/iPhone/i),ios:pt=>Tt(pt,/iPhone|iPod/i)||Le(pt),android:ut,phablet:pt=>{const ye=pt.innerWidth,j=pt.innerHeight,W=Math.min(ye,j),te=Math.max(ye,j);return W>390&&W<520&&te>620&&te<800},tablet:pt=>{const ye=pt.innerWidth,j=pt.innerHeight,W=Math.min(ye,j),te=Math.max(ye,j);return Le(pt)||(pt=>ut(pt)&&!Tt(pt,/mobile/i))(pt)||W>460&&W<820&&te>780&&te<1400},cordova:Ke,capacitor:Ct,electron:pt=>Tt(pt,/electron/i),pwa:pt=>{var ye;return!!(null!==(ye=pt.matchMedia)&&void 0!==ye&&ye.call(pt,"(display-mode: standalone)").matches||pt.navigator.standalone)},mobile:vt,mobileweb:pt=>vt(pt)&&!je(pt),desktop:pt=>!vt(pt),hybrid:je}},9986:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ee});var g=B(8476);let d;const Oe=(re,Ze,Je)=>{const De=Ze.startsWith("animation")?(re=>(void 0===d&&(d=void 0===re.style.animationName&&void 0!==re.style.webkitAnimationName?"-webkit-":""),d))(re):"";re.style.setProperty(De+Ze,Je)},X=(re=[],Ze)=>{if(void 0!==Ze){const Je=Array.isArray(Ze)?Ze:[Ze];return[...re,...Je]}return re},Ee=re=>{let Ze,Je,De,_e,Fe,$e,st,xt,ze,Tt,Be,Le=[],Qe=[],ft=[],ut=!1,Mt={},mt=[],vt=[],Me={},je=0,Ke=!1,Ct=!1,Vt=!0,Zt=!1,Dt=!0,rn=!1;const pt=re,ye=[],j=[],W=[],te=[],de=[],ae=[],me=[],Ce=[],at=[],kt=[],Bt=[],vn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,bn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&vn,$n=()=>Bt,Yn=(Y,Z)=>{const Ne=Z.findIndex(Q=>Q.c===Y);Ne>-1&&Z.splice(Ne,1)},yt=(Y,Z)=>((null!=Z&&Z.oneTimeCallback?j:ye).push({c:Y,o:Z}),Be),Xt=()=>{bn&&(Bt.forEach(Y=>{Y.cancel()}),Bt.length=0)},en=()=>{ae.forEach(Y=>{null!=Y&&Y.parentNode&&Y.parentNode.removeChild(Y)}),ae.length=0},Zn=()=>void 0!==Fe?Fe:st?st.getFill():"both",wn=()=>void 0!==xt?xt:void 0!==$e?$e:st?st.getDirection():"normal",Sr=()=>Ke?"linear":void 0!==De?De:st?st.getEasing():"linear",tr=()=>Ct?0:void 0!==ze?ze:void 0!==Je?Je:st?st.getDuration():0,Er=()=>void 0!==_e?_e:st?st.getIterations():1,Mi=()=>void 0!==Tt?Tt:void 0!==Ze?Ze:st?st.getDelay():0,gr=()=>{0!==je&&(je--,0===je&&((()=>{at.forEach(Se=>Se()),kt.forEach(Se=>Se());const Y=Vt?1:0,Z=mt,Ne=vt,Q=Me;te.forEach(Se=>{const it=Se.classList;Z.forEach(Wt=>it.add(Wt)),Ne.forEach(Wt=>it.remove(Wt));for(const Wt in Q)Q.hasOwnProperty(Wt)&&Oe(Se,Wt,Q[Wt])}),ze=void 0,xt=void 0,Tt=void 0,ye.forEach(Se=>Se.c(Y,Be)),j.forEach(Se=>Se.c(Y,Be)),j.length=0,Dt=!0,Vt&&(Zt=!0),Vt=!0})(),st&&st.animationFinish()))},ri=()=>{(()=>{me.forEach(Q=>Q()),Ce.forEach(Q=>Q());const Y=Qe,Z=ft,Ne=Mt;te.forEach(Q=>{const Se=Q.classList;Y.forEach(it=>Se.add(it)),Z.forEach(it=>Se.remove(it));for(const it in Ne)Ne.hasOwnProperty(it)&&Oe(Q,it,Ne[it])})})(),Le.length>0&&bn&&(te.forEach(Y=>{const Z=Y.animate(Le,{id:pt,delay:Mi(),duration:tr(),easing:Sr(),iterations:Er(),fill:Zn(),direction:wn()});Z.pause(),Bt.push(Z)}),Bt.length>0&&(Bt[0].onfinish=()=>{gr()})),ut=!0},xn=Y=>{Y=Math.min(Math.max(Y,0),.9999),bn&&Bt.forEach(Z=>{Z.currentTime=Z.effect.getComputedTiming().delay+tr()*Y,Z.pause()})},Rn=Y=>{Bt.forEach(Z=>{Z.effect.updateTiming({delay:Mi(),duration:tr(),easing:Sr(),iterations:Er(),fill:Zn(),direction:wn()})}),void 0!==Y&&xn(Y)},yr=(Y=!1,Z=!0,Ne)=>(Y&&de.forEach(Q=>{Q.update(Y,Z,Ne)}),bn&&Rn(Ne),Be),Ui=()=>{ut&&(bn?Bt.forEach(Y=>{Y.pause()}):te.forEach(Y=>{Oe(Y,"animation-play-state","paused")}),rn=!0)},St=Y=>new Promise(Z=>{null!=Y&&Y.sync&&(Ct=!0,yt(()=>Ct=!1,{oneTimeCallback:!0})),ut||ri(),Zt&&(bn&&(xn(0),Rn()),Zt=!1),Dt&&(je=de.length+1,Dt=!1);const Ne=()=>{Yn(Q,j),Z()},Q=()=>{Yn(Ne,W),Z()};yt(Q,{oneTimeCallback:!0}),((Y,Z)=>{W.push({c:Y,o:{oneTimeCallback:!0}})})(Ne),de.forEach(Se=>{Se.play()}),bn?(Bt.forEach(Y=>{Y.play()}),(0===Le.length||0===te.length)&&gr()):gr(),rn=!1}),Ut=(Y,Z)=>{const Ne=Le[0];return void 0===Ne||void 0!==Ne.offset&&0!==Ne.offset?Le=[{offset:0,[Y]:Z},...Le]:Ne[Y]=Z,Be};return Be={parentAnimation:st,elements:te,childAnimations:de,id:pt,animationFinish:gr,from:Ut,to:(Y,Z)=>{const Ne=Le[Le.length-1];return void 0===Ne||void 0!==Ne.offset&&1!==Ne.offset?Le=[...Le,{offset:1,[Y]:Z}]:Ne[Y]=Z,Be},fromTo:(Y,Z,Ne)=>Ut(Y,Z).to(Y,Ne),parent:Y=>(st=Y,Be),play:St,pause:()=>(de.forEach(Y=>{Y.pause()}),Ui(),Be),stop:()=>{de.forEach(Y=>{Y.stop()}),ut&&(Xt(),ut=!1),Ke=!1,Ct=!1,Dt=!0,xt=void 0,ze=void 0,Tt=void 0,je=0,Zt=!1,Vt=!0,rn=!1,W.forEach(Y=>Y.c(0,Be)),W.length=0},destroy:Y=>(de.forEach(Z=>{Z.destroy(Y)}),(Y=>{Xt(),Y&&en()})(Y),te.length=0,de.length=0,Le.length=0,ye.length=0,j.length=0,ut=!1,Dt=!0,Be),keyframes:Y=>{const Z=Le!==Y;return Le=Y,Z&&(Y=>{bn&&$n().forEach(Z=>{const Ne=Z.effect;if(Ne.setKeyframes)Ne.setKeyframes(Y);else{const Q=new KeyframeEffect(Ne.target,Y,Ne.getTiming());Z.effect=Q}})})(Le),Be},addAnimation:Y=>{if(null!=Y)if(Array.isArray(Y))for(const Z of Y)Z.parent(Be),de.push(Z);else Y.parent(Be),de.push(Y);return Be},addElement:Y=>{if(null!=Y)if(1===Y.nodeType)te.push(Y);else if(Y.length>=0)for(let Z=0;Z(Fe=Y,yr(!0),Be),direction:Y=>($e=Y,yr(!0),Be),iterations:Y=>(_e=Y,yr(!0),Be),duration:Y=>(!bn&&0===Y&&(Y=1),Je=Y,yr(!0),Be),easing:Y=>(De=Y,yr(!0),Be),delay:Y=>(Ze=Y,yr(!0),Be),getWebAnimations:$n,getKeyframes:()=>Le,getFill:Zn,getDirection:wn,getDelay:Mi,getIterations:Er,getEasing:Sr,getDuration:tr,afterAddRead:Y=>(at.push(Y),Be),afterAddWrite:Y=>(kt.push(Y),Be),afterClearStyles:(Y=[])=>{for(const Z of Y)Me[Z]="";return Be},afterStyles:(Y={})=>(Me=Y,Be),afterRemoveClass:Y=>(vt=X(vt,Y),Be),afterAddClass:Y=>(mt=X(mt,Y),Be),beforeAddRead:Y=>(me.push(Y),Be),beforeAddWrite:Y=>(Ce.push(Y),Be),beforeClearStyles:(Y=[])=>{for(const Z of Y)Mt[Z]="";return Be},beforeStyles:(Y={})=>(Mt=Y,Be),beforeRemoveClass:Y=>(ft=X(ft,Y),Be),beforeAddClass:Y=>(Qe=X(Qe,Y),Be),onFinish:yt,isRunning:()=>0!==je&&!rn,progressStart:(Y=!1,Z)=>(de.forEach(Ne=>{Ne.progressStart(Y,Z)}),Ui(),Ke=Y,ut||ri(),yr(!1,!0,Z),Be),progressStep:Y=>(de.forEach(Z=>{Z.progressStep(Y)}),xn(Y),Be),progressEnd:(Y,Z,Ne)=>(Ke=!1,de.forEach(Q=>{Q.progressEnd(Y,Z,Ne)}),void 0!==Ne&&(ze=Ne),Zt=!1,Vt=!0,0===Y?(xt="reverse"===wn()?"normal":"reverse","reverse"===xt&&(Vt=!1),bn?(yr(),xn(1-Z)):(Tt=(1-Z)*tr()*-1,yr(!1,!1))):1===Y&&(bn?(yr(),xn(Z)):(Tt=Z*tr()*-1,yr(!1,!1))),void 0!==Y&&!st&&St(),Be)}}},464:(En,bt,B)=>{"use strict";B.d(bt,{E:()=>De,a:()=>g,s:()=>Ze});const g=_e=>{try{if(_e instanceof re)return _e.value;if(!Oe()||"string"!=typeof _e||""===_e)return _e;if(_e.includes("onload="))return"";const Fe=document.createDocumentFragment(),$e=document.createElement("div");Fe.appendChild($e),$e.innerHTML=_e,Ee.forEach(ut=>{const st=Fe.querySelectorAll(ut);for(let Mt=st.length-1;Mt>=0;Mt--){const mt=st[Mt];mt.parentNode?mt.parentNode.removeChild(mt):Fe.removeChild(mt);const vt=ge(mt);for(let Me=0;Me{if(_e.nodeType&&1!==_e.nodeType)return;if(typeof NamedNodeMap<"u"&&!(_e.attributes instanceof NamedNodeMap))return void _e.remove();for(let $e=_e.attributes.length-1;$e>=0;$e--){const Le=_e.attributes.item($e),Qe=Le.name;if(!X.includes(Qe.toLowerCase())){_e.removeAttribute(Qe);continue}const ft=Le.value,ut=_e[Qe];(null!=ft&&ft.toLowerCase().includes("javascript:")||null!=ut&&ut.toLowerCase().includes("javascript:"))&&_e.removeAttribute(Qe)}const Fe=ge(_e);for(let $e=0;$enull!=_e.children?_e.children:_e.childNodes,Oe=()=>{var _e;const Fe=window,$e=null===(_e=null==Fe?void 0:Fe.Ionic)||void 0===_e?void 0:_e.config;return!$e||($e.get?$e.get("sanitizerEnabled",!0):!0===$e.sanitizerEnabled||void 0===$e.sanitizerEnabled)},X=["class","id","href","src","name","slot"],Ee=["script","style","iframe","meta","link","object","embed"];class re{constructor(Fe){this.value=Fe}}const Ze=_e=>{const Fe=window,$e=Fe.Ionic;if(!$e||!$e.config||"Object"===$e.config.constructor.name)return Fe.Ionic=Fe.Ionic||{},Fe.Ionic.config=Object.assign(Object.assign({},Fe.Ionic.config),_e),Fe.Ionic.config},De=!1},8621:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>X,a:()=>ge,d:()=>Oe});var g=B(467),d=B(4920);const ge=function(){var Ee=(0,g.A)(function*(re,Ze,Je,De,_e,Fe){var $e;if(re)return re.attachViewToDom(Ze,Je,_e,De);if(!(Fe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const Le="string"==typeof Je?null===($e=Ze.ownerDocument)||void 0===$e?void 0:$e.createElement(Je):Je;return De&&De.forEach(Qe=>Le.classList.add(Qe)),_e&&Object.assign(Le,_e),Ze.appendChild(Le),yield new Promise(Qe=>(0,d.c)(Le,Qe)),Le});return function(Ze,Je,De,_e,Fe,$e){return Ee.apply(this,arguments)}}(),Oe=(Ee,re)=>{if(re){if(Ee)return Ee.removeViewFromDom(re.parentElement,re);re.remove()}return Promise.resolve()},X=()=>{let Ee,re;return{attachViewToDom:function(){var De=(0,g.A)(function*(_e,Fe,$e={},Le=[]){var Qe,ft;let ut;if(Ee=_e,Fe){const Mt="string"==typeof Fe?null===(Qe=Ee.ownerDocument)||void 0===Qe?void 0:Qe.createElement(Fe):Fe;Le.forEach(mt=>Mt.classList.add(mt)),Object.assign(Mt,$e),Ee.appendChild(Mt),ut=Mt,yield new Promise(mt=>(0,d.c)(Mt,mt))}else if(Ee.children.length>0&&("ION-MODAL"===Ee.tagName||"ION-POPOVER"===Ee.tagName)&&!(ut=Ee.children[0]).classList.contains("ion-delegate-host")){const mt=null===(ft=Ee.ownerDocument)||void 0===ft?void 0:ft.createElement("div");mt.classList.add("ion-delegate-host"),Le.forEach(vt=>mt.classList.add(vt)),mt.append(...Ee.children),Ee.appendChild(mt),ut=mt}const st=document.querySelector("ion-app")||document.body;return re=document.createComment("ionic teleport"),Ee.parentNode.insertBefore(re,Ee),st.appendChild(Ee),null!=ut?ut:Ee});return function(Fe,$e){return De.apply(this,arguments)}}(),removeViewFromDom:()=>(Ee&&re&&(re.parentNode.insertBefore(Ee,re),re.remove()),Promise.resolve())}}},1970:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Oe,G:()=>X});class d{constructor(re,Ze,Je,De,_e){this.id=Ze,this.name=Je,this.disableScroll=_e,this.priority=1e6*De+Ze,this.ctrl=re}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 re=this.ctrl.capture(this.name,this.id,this.priority);return re&&this.disableScroll&&this.ctrl.disableScroll(this.id),re}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ge{constructor(re,Ze,Je,De){this.id=Ze,this.disable=Je,this.disableScroll=De,this.ctrl=re}block(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.disableGesture(re,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.enableGesture(re,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",X=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(re){var Ze;return new d(this,this.newID(),re.name,null!==(Ze=re.priority)&&void 0!==Ze?Ze:0,!!re.disableScroll)}createBlocker(re={}){return new ge(this,this.newID(),re.disable,!!re.disableScroll)}start(re,Ze,Je){return this.canStart(re)?(this.requestedStart.set(Ze,Je),!0):(this.requestedStart.delete(Ze),!1)}capture(re,Ze,Je){if(!this.start(re,Ze,Je))return!1;const De=this.requestedStart;let _e=-1e4;if(De.forEach(Fe=>{_e=Math.max(_e,Fe)}),_e===Je){this.capturedId=Ze,De.clear();const Fe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:re}});return document.dispatchEvent(Fe),!0}return De.delete(Ze),!1}release(re){this.requestedStart.delete(re),this.capturedId===re&&(this.capturedId=void 0)}disableGesture(re,Ze){let Je=this.disabledGestures.get(re);void 0===Je&&(Je=new Set,this.disabledGestures.set(re,Je)),Je.add(Ze)}enableGesture(re,Ze){const Je=this.disabledGestures.get(re);void 0!==Je&&Je.delete(Ze)}disableScroll(re){this.disabledScroll.add(re),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(re){this.disabledScroll.delete(re),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(re){return!(void 0!==this.capturedId||this.isDisabled(re))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(re){const Ze=this.disabledGestures.get(re);return!!(Ze&&Ze.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Ze,blockHardwareBackButton:()=>Ee,shouldUseCloseWatcher:()=>X,startHardwareBackButton:()=>re});var g=B(467),d=B(8476),ge=B(3664);B(9672);const X=()=>ge.c.get("experimentalCloseWatcher",!1)&&void 0!==d.w&&"CloseWatcher"in d.w,Ee=()=>{document.addEventListener("backbutton",()=>{})},re=()=>{const De=document;let _e=!1;const Fe=()=>{if(_e)return;let $e=0,Le=[];const Qe=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(st,Mt){Le.push({priority:st,handler:Mt,id:$e++})}}});De.dispatchEvent(Qe);const ft=function(){var st=(0,g.A)(function*(Mt){try{if(null!=Mt&&Mt.handler){const mt=Mt.handler(ut);null!=mt&&(yield mt)}}catch(mt){console.error(mt)}});return function(mt){return st.apply(this,arguments)}}(),ut=()=>{if(Le.length>0){let st={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Le.forEach(Mt=>{Mt.priority>=st.priority&&(st=Mt)}),_e=!0,Le=Le.filter(Mt=>Mt.id!==st.id),ft(st).then(()=>_e=!1)}};ut()};if(X()){let $e;const Le=()=>{null==$e||$e.destroy(),$e=new d.w.CloseWatcher,$e.onclose=()=>{Fe(),Le()}};Le()}else De.addEventListener("backbutton",Fe)},Ze=100,Je=99},4920:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>Ze,b:()=>Je,c:()=>ge,d:()=>Le,e:()=>Mt,f:()=>$e,g:()=>De,h:()=>X,i:()=>re,j:()=>Qe,k:()=>Oe,l:()=>Fe,m:()=>ft,n:()=>st,o:()=>mt,p:()=>ut,r:()=>_e,s:()=>vt,t:()=>g});const g=(Me,je=0)=>new Promise(Ke=>{d(Me,je,Ke)}),d=(Me,je=0,Ke)=>{let Ct,xt;const ze={passive:!0},Vt=()=>{Ct&&Ct()},Zt=Dt=>{(void 0===Dt||Me===Dt.target)&&(Vt(),Ke(Dt))};return Me&&(Me.addEventListener("webkitTransitionEnd",Zt,ze),Me.addEventListener("transitionend",Zt,ze),xt=setTimeout(Zt,je+500),Ct=()=>{void 0!==xt&&(clearTimeout(xt),xt=void 0),Me.removeEventListener("webkitTransitionEnd",Zt,ze),Me.removeEventListener("transitionend",Zt,ze)}),Vt},ge=(Me,je)=>{Me.componentOnReady?Me.componentOnReady().then(Ke=>je(Ke)):_e(()=>je(Me))},Oe=Me=>void 0!==Me.componentOnReady,X=(Me,je=[])=>{const Ke={};return je.forEach(Ct=>{Me.hasAttribute(Ct)&&(null!==Me.getAttribute(Ct)&&(Ke[Ct]=Me.getAttribute(Ct)),Me.removeAttribute(Ct))}),Ke},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"],re=(Me,je)=>{let Ke=Ee;return je&&je.length>0&&(Ke=Ke.filter(Ct=>!je.includes(Ct))),X(Me,Ke)},Ze=(Me,je,Ke,Ct)=>{var xt;if(typeof window<"u"){const ze=window,Tt=null===(xt=null==ze?void 0:ze.Ionic)||void 0===xt?void 0:xt.config;if(Tt){const Vt=Tt.get("_ael");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._ael)return Tt._ael(Me,je,Ke,Ct)}}return Me.addEventListener(je,Ke,Ct)},Je=(Me,je,Ke,Ct)=>{var xt;if(typeof window<"u"){const ze=window,Tt=null===(xt=null==ze?void 0:ze.Ionic)||void 0===xt?void 0:xt.config;if(Tt){const Vt=Tt.get("_rel");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._rel)return Tt._rel(Me,je,Ke,Ct)}}return Me.removeEventListener(je,Ke,Ct)},De=(Me,je=Me)=>Me.shadowRoot||je,_e=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Fe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,$e=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const je=Me.closest("ion-app");je&&je.setFocus([Me])}},Le=(Me,je,Ke,Ct,xt)=>{if(Me||Fe(je)){let ze=je.querySelector("input.aux-input");ze||(ze=je.ownerDocument.createElement("input"),ze.type="hidden",ze.classList.add("aux-input"),je.appendChild(ze)),ze.disabled=xt,ze.name=Ke,ze.value=Ct||""}},Qe=(Me,je,Ke)=>Math.max(Me,Math.min(je,Ke)),ft=(Me,je)=>{if(!Me){const Ke="ASSERT: "+je;throw console.error(Ke),new Error(Ke)}},ut=Me=>{if(Me){const je=Me.changedTouches;if(je&&je.length>0){const Ke=je[0];return{x:Ke.clientX,y:Ke.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},st=Me=>{const je="rtl"===document.dir;switch(Me){case"start":return je;case"end":return!je;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Mt=(Me,je)=>{const Ke=Me._original||Me;return{_original:Me,emit:mt(Ke.emit.bind(Ke),je)}},mt=(Me,je=0)=>{let Ke;return(...Ct)=>{clearTimeout(Ke),Ke=setTimeout(Me,je,...Ct)}},vt=(Me,je)=>{if(null!=Me||(Me={}),null!=je||(je={}),Me===je)return!0;const Ke=Object.keys(Me);if(Ke.length!==Object.keys(je).length)return!1;for(const Ct of Ke)if(!(Ct in je)||Me[Ct]!==je[Ct])return!1;return!0}},5465:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>$e});var g=B(467),d=B(8476),ge=B(6411),Oe=B(4929),X=B(4920),Ee=B(3664),re=B(9986);const Ze=Le=>(0,re.c)().duration(Le?400:300),Je=Le=>{let Qe,ft;const ut=Le.width+8,st=(0,re.c)(),Mt=(0,re.c)();Le.isEndSide?(Qe=ut+"px",ft="0px"):(Qe=-ut+"px",ft="0px"),st.addElement(Le.menuInnerEl).fromTo("transform",`translateX(${Qe})`,`translateX(${ft})`);const vt="ios"===(0,Ee.b)(Le),Me=vt?.2:.25;return Mt.addElement(Le.backdropEl).fromTo("opacity",.01,Me),Ze(vt).addAnimation([st,Mt])},De=Le=>{let Qe,ft;const ut=(0,Ee.b)(Le),st=Le.width;Le.isEndSide?(Qe=-st+"px",ft=st+"px"):(Qe=st+"px",ft=-st+"px");const Mt=(0,re.c)().addElement(Le.menuInnerEl).fromTo("transform",`translateX(${ft})`,"translateX(0px)"),mt=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${Qe})`),vt=(0,re.c)().addElement(Le.backdropEl).fromTo("opacity",.01,.32);return Ze("ios"===ut).addAnimation([Mt,mt,vt])},_e=Le=>{const Qe=(0,Ee.b)(Le),ft=Le.width*(Le.isEndSide?-1:1)+"px",ut=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${ft})`);return Ze("ios"===Qe).addAnimation(ut)},$e=(()=>{const Le=new Map,Qe=[],ft=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.open()});return function(de){return W.apply(this,arguments)}}(),ut=function(){var W=(0,g.A)(function*(te){const de=yield void 0!==te?je(te,!0):Ke();return void 0!==de&&de.close()});return function(de){return W.apply(this,arguments)}}(),st=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.toggle()});return function(de){return W.apply(this,arguments)}}(),Mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.disabled=!te),ae});return function(de,ae){return W.apply(this,arguments)}}(),mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.swipeGesture=te),ae});return function(de,ae){return W.apply(this,arguments)}}(),vt=function(){var W=(0,g.A)(function*(te){if(null!=te){const de=yield je(te);return void 0!==de&&de.isOpen()}return void 0!==(yield Ke())});return function(de){return W.apply(this,arguments)}}(),Me=function(){var W=(0,g.A)(function*(te){const de=yield je(te);return!!de&&!de.disabled});return function(de){return W.apply(this,arguments)}}(),je=function(){var W=(0,g.A)(function*(te,de=!1){if(yield j(),"start"===te||"end"===te){const me=Qe.filter(at=>at.side===te&&!at.disabled);if(me.length>=1)return me.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${me.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.`,me.map(at=>at.el)),me[0].el;const Ce=Qe.filter(at=>at.side===te);if(Ce.length>=1)return Ce.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${Ce.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.`,Ce.map(at=>at.el)),Ce[0].el}else if(null!=te)return ye(me=>me.menuId===te);return ye(me=>!me.disabled)||(Qe.length>0?Qe[0].el:void 0)});return function(de){return W.apply(this,arguments)}}(),Ke=function(){var W=(0,g.A)(function*(){return yield j(),Be()});return function(){return W.apply(this,arguments)}}(),Ct=function(){var W=(0,g.A)(function*(){return yield j(),rn()});return function(){return W.apply(this,arguments)}}(),xt=function(){var W=(0,g.A)(function*(){return yield j(),pt()});return function(){return W.apply(this,arguments)}}(),ze=(W,te)=>{Le.set(W,te)},Zt=function(){var W=(0,g.A)(function*(te,de,ae){if(pt())return!1;if(de){const me=yield Ke();me&&te.el!==me&&(yield me.setOpen(!1,!1))}return te._setOpen(de,ae)});return function(de,ae,me){return W.apply(this,arguments)}}(),Be=()=>ye(W=>W._isOpen),rn=()=>Qe.map(W=>W.el),pt=()=>Qe.some(W=>W.isAnimating),ye=W=>{const te=Qe.find(W);if(void 0!==te)return te.el},j=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(W=>new Promise(te=>(0,X.c)(W,te))));return ze("reveal",_e),ze("push",De),ze("overlay",Je),null==d.d||d.d.addEventListener("ionBackButton",W=>{const te=Be();te&&W.detail.register(ge.MENU_BACK_BUTTON_PRIORITY,()=>te.close())}),{registerAnimation:ze,get:je,getMenus:Ct,getOpen:Ke,isEnabled:Me,swipeGesture:mt,isAnimating:xt,isOpen:vt,enable:Mt,toggle:st,close:ut,open:ft,_getOpenSync:Be,_createAnimation:(W,te)=>{const de=Le.get(W);if(!de)throw new Error("animation not registered");return de(te)},_register:W=>{Qe.indexOf(W)<0&&Qe.push(W)},_unregister:W=>{const te=Qe.indexOf(W);te>-1&&Qe.splice(te,1)},_setOpen:Zt}})()},8607:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>Je});var g=B(1970);const d=($e,Le,Qe,ft)=>{const ut=ge($e)?{capture:!!ft.capture,passive:!!ft.passive}:!!ft.capture;let st,Mt;return $e.__zone_symbol__addEventListener?(st="__zone_symbol__addEventListener",Mt="__zone_symbol__removeEventListener"):(st="addEventListener",Mt="removeEventListener"),$e[st](Le,Qe,ut),()=>{$e[Mt](Le,Qe,ut)}},ge=$e=>{if(void 0===Oe)try{const Le=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});$e.addEventListener("optsTest",()=>{},Le)}catch{Oe=!1}return!!Oe};let Oe;const re=$e=>$e instanceof Document?$e:$e.ownerDocument,Je=$e=>{let Le=!1,Qe=!1,ft=!0,ut=!1;const st=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},$e),Mt=st.canStart,mt=st.onWillStart,vt=st.onStart,Me=st.onEnd,je=st.notCaptured,Ke=st.onMove,Ct=st.threshold,xt=st.passive,ze=st.blurOnStart,Tt={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},Vt=(($e,Le,Qe)=>{const ft=Qe*(Math.PI/180),ut="x"===$e,st=Math.cos(ft),Mt=Le*Le;let mt=0,vt=0,Me=!1,je=0;return{start(Ke,Ct){mt=Ke,vt=Ct,je=0,Me=!0},detect(Ke,Ct){if(!Me)return!1;const xt=Ke-mt,ze=Ct-vt,Tt=xt*xt+ze*ze;if(Ttst?1:Zt<-st?-1:0,Me=!1,!0},isGesture:()=>0!==je,getDirection:()=>je}})(st.direction,st.threshold,st.maxAngle),Zt=g.G.createGesture({name:$e.gestureName,priority:$e.gesturePriority,disableScroll:$e.disableScroll}),rn=()=>{Le&&(ut=!1,Ke&&Ke(Tt))},pt=()=>!!Zt.capture()&&(Le=!0,ft=!1,Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime,mt?mt(Tt).then(j):j(),!0),j=()=>{ze&&(()=>{if(typeof document<"u"){const me=document.activeElement;null!=me&&me.blur&&me.blur()}})(),vt&&vt(Tt),ft=!0},W=()=>{Le=!1,Qe=!1,ut=!1,ft=!0,Zt.release()},te=me=>{const Ce=Le,at=ft;if(W(),at){if(De(Tt,me),Ce)return void(Me&&Me(Tt));je&&je(Tt)}},de=(($e,Le,Qe,ft,ut)=>{let st,Mt,mt,vt,Me,je,Ke,Ct=0;const xt=ye=>{Ct=Date.now()+2e3,Le(ye)&&(!Mt&&Qe&&(Mt=d($e,"touchmove",Qe,ut)),mt||(mt=d(ye.target,"touchend",Tt,ut)),vt||(vt=d(ye.target,"touchcancel",Tt,ut)))},ze=ye=>{Ct>Date.now()||Le(ye)&&(!je&&Qe&&(je=d(re($e),"mousemove",Qe,ut)),Ke||(Ke=d(re($e),"mouseup",Vt,ut)))},Tt=ye=>{Zt(),ft&&ft(ye)},Vt=ye=>{Dt(),ft&&ft(ye)},Zt=()=>{Mt&&Mt(),mt&&mt(),vt&&vt(),Mt=mt=vt=void 0},Dt=()=>{je&&je(),Ke&&Ke(),je=Ke=void 0},Be=()=>{Zt(),Dt()},rn=(ye=!0)=>{ye?(st||(st=d($e,"touchstart",xt,ut)),Me||(Me=d($e,"mousedown",ze,ut))):(st&&st(),Me&&Me(),st=Me=void 0,Be())};return{enable:rn,stop:Be,destroy:()=>{rn(!1),ft=Qe=Le=void 0}}})(st.el,me=>{const Ce=Fe(me);return!(Qe||!ft||(_e(me,Tt),Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime=Ce,Tt.velocityX=Tt.velocityY=Tt.deltaX=Tt.deltaY=0,Tt.event=me,Mt&&!1===Mt(Tt))||(Zt.release(),!Zt.start()))&&(Qe=!0,0===Ct?pt():(Vt.start(Tt.startX,Tt.startY),!0))},me=>{Le?!ut&&ft&&(ut=!0,De(Tt,me),requestAnimationFrame(rn)):(De(Tt,me),Vt.detect(Tt.currentX,Tt.currentY)&&(!Vt.isGesture()||!pt())&&ae())},te,{capture:!1,passive:xt}),ae=()=>{W(),de.stop(),je&&je(Tt)};return{enable(me=!0){me||(Le&&te(void 0),W()),de.enable(me)},destroy(){Zt.destroy(),de.destroy()}}},De=($e,Le)=>{if(!Le)return;const Qe=$e.currentX,ft=$e.currentY,ut=$e.currentTime;_e(Le,$e);const st=$e.currentX,Mt=$e.currentY,vt=($e.currentTime=Fe(Le))-ut;if(vt>0&&vt<100){const je=(Mt-ft)/vt;$e.velocityX=(st-Qe)/vt*.7+.3*$e.velocityX,$e.velocityY=.7*je+.3*$e.velocityY}$e.deltaX=st-$e.startX,$e.deltaY=Mt-$e.startY,$e.event=Le},_e=($e,Le)=>{let Qe=0,ft=0;if($e){const ut=$e.changedTouches;if(ut&&ut.length>0){const st=ut[0];Qe=st.clientX,ft=st.clientY}else void 0!==$e.pageX&&(Qe=$e.pageX,ft=$e.pageY)}Le.currentX=Qe,Le.currentY=ft},Fe=$e=>$e.timeStamp||Date.now()},9672:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Ee,a:()=>Fo,b:()=>xr,c:()=>at,d:()=>bn,e:()=>ar,f:()=>pt,g:()=>kt,h:()=>Be,i:()=>vn,j:()=>yr,k:()=>re,r:()=>Nn,w:()=>ui});var g=B(467);var Oe=Object.defineProperty,Ee={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},re=U=>{const ne=new URL(U,jn.$resourcesUrl$);return ne.origin!==sr.location.origin?ne.href:ne.pathname},Ze={},Fe=U=>"object"==(U=typeof U)||"function"===U;function $e(U){var ne,Ae,ke;return null!=(ke=null==(Ae=null==(ne=U.head)?void 0:ne.querySelector('meta[name="csp-nonce"]'))?void 0:Ae.getAttribute("content"))?ke:void 0}((U,ne)=>{for(var Ae in ne)Oe(U,Ae,{get:ne[Ae],enumerable:!0})})({},{err:()=>ft,map:()=>ut,ok:()=>Qe,unwrap:()=>st,unwrapErr:()=>Mt});var Qe=U=>({isOk:!0,isErr:!1,value:U}),ft=U=>({isOk:!1,isErr:!0,value:U});function ut(U,ne){if(U.isOk){const Ae=ne(U.value);return Ae instanceof Promise?Ae.then(ke=>Qe(ke)):Qe(Ae)}if(U.isErr)return ft(U.value);throw"should never get here"}var st=U=>{if(U.isOk)return U.value;throw U.value},Mt=U=>{if(U.isErr)return U.value;throw U.value},xt="s-id",ze="sty-id",Zt="slot-fb{display:contents}slot-fb[hidden]{display:none}",Dt="http://www.w3.org/1999/xlink",Be=(U,ne,...Ae)=>{let ke=null,ot=null,et=null,Lt=!1,zt=!1;const Kt=[],Yt=Cn=>{for(let Ln=0;LnCn[Ln]).join(" "))}}if("function"==typeof U)return U(null===ne?{}:ne,Kt,j);const _n=rn(U,null);return _n.$attrs$=ne,Kt.length>0&&(_n.$children$=Kt),_n.$key$=ot,_n.$name$=et,_n},rn=(U,ne)=>({$flags$:0,$tag$:U,$text$:ne,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),pt={},j={forEach:(U,ne)=>U.map(W).forEach(ne),map:(U,ne)=>U.map(W).map(ne).map(te)},W=U=>({vattrs:U.$attrs$,vchildren:U.$children$,vkey:U.$key$,vname:U.$name$,vtag:U.$tag$,vtext:U.$text$}),te=U=>{if("function"==typeof U.vtag){const Ae={...U.vattrs};return U.vkey&&(Ae.key=U.vkey),U.vname&&(Ae.name=U.vname),Be(U.vtag,Ae,...U.vchildren||[])}const ne=rn(U.vtag,U.vtext);return ne.$attrs$=U.vattrs,ne.$children$=U.vchildren,ne.$key$=U.vkey,ne.$name$=U.vname,ne},ae=(U,ne,Ae,ke,ot,et,Lt)=>{let zt,Kt,Yt,_n;if(1===et.nodeType){for(zt=et.getAttribute("c-id"),zt&&(Kt=zt.split("."),(Kt[0]===Lt||"0"===Kt[0])&&(Yt={$flags$:0,$hostId$:Kt[0],$nodeId$:Kt[1],$depth$:Kt[2],$index$:Kt[3],$tag$:et.tagName.toLowerCase(),$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ne.push(Yt),et.removeAttribute("c-id"),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,U=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))),_n=et.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.childNodes[_n],Lt);if(et.shadowRoot)for(_n=et.shadowRoot.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.shadowRoot.childNodes[_n],Lt)}else if(8===et.nodeType)Kt=et.nodeValue.split("."),(Kt[1]===Lt||"0"===Kt[1])&&(zt=Kt[0],Yt={$flags$:0,$hostId$:Kt[1],$nodeId$:Kt[2],$depth$:Kt[3],$index$:Kt[4],$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===zt?(Yt.$elm$=et.nextSibling,Yt.$elm$&&3===Yt.$elm$.nodeType&&(Yt.$text$=Yt.$elm$.textContent,ne.push(Yt),et.remove(),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))):Yt.$hostId$===Lt&&("s"===zt?(Yt.$tag$="slot",et["s-sn"]=Kt[5]?Yt.$name$=Kt[5]:"",et["s-sr"]=!0,ke&&(Yt.$elm$=Or.createElement(Yt.$tag$),Yt.$name$&&Yt.$elm$.setAttribute("name",Yt.$name$),et.parentNode.insertBefore(Yt.$elm$,et),et.remove(),"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$)),Ae.push(Yt),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt):"r"===zt&&(ke?et.remove():(ot["s-cr"]=et,et["s-cn"]=!0))));else if(U&&"style"===U.$tag$){const Cn=rn(null,et.textContent);Cn.$elm$=et,Cn.$index$="0",U.$children$=[Cn]}},me=(U,ne)=>{if(1===U.nodeType){let Ae=0;for(;Aesi.push(U),kt=U=>oi(U).$modeName$,vn=U=>oi(U).$hostElement$,bn=(U,ne,Ae)=>{const ke=vn(U);return{emit:ot=>$n(ke,ne,{bubbles:!!(4&Ae),composed:!!(2&Ae),cancelable:!!(1&Ae),detail:ot})}},$n=(U,ne,Ae)=>{const ke=jn.ce(ne,Ae);return U.dispatchEvent(ke),ke},qn=new WeakMap,er=(U,ne,Ae)=>{let ke=ps.get(U);To&&Ae?(ke=ke||new CSSStyleSheet,"string"==typeof ke?ke=ne:ke.replaceSync(ne)):ke=ne,ps.set(U,ke)},yn=(U,ne,Ae)=>{var ke;const ot=Yn(ne,Ae),et=ps.get(ot);if(U=11===U.nodeType?U:Or,et)if("string"==typeof et){let zt,Lt=qn.get(U=U.head||U);if(Lt||qn.set(U,Lt=new Set),!Lt.has(ot)){if(U.host&&(zt=U.querySelector(`[${ze}="${ot}"]`)))zt.innerHTML=et;else{zt=Or.createElement("style"),zt.innerHTML=et;const Kt=null!=(ke=jn.$nonce$)?ke:$e(Or);null!=Kt&&zt.setAttribute("nonce",Kt),U.insertBefore(zt,U.querySelector("link"))}4&ne.$flags$&&(zt.innerHTML+=Zt),Lt&&Lt.add(ot)}}else U.adoptedStyleSheets.includes(et)||(U.adoptedStyleSheets=[...U.adoptedStyleSheets,et]);return ot},Yn=(U,ne)=>"sc-"+(ne&&32&U.$flags$?U.$tagName$+"-"+ne:U.$tagName$),Ve=U=>U.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),yt=(U,ne,Ae,ke,ot,et)=>{if(Ae!==ke){let Lt=ko(U,ne),zt=ne.toLowerCase();if("class"===ne){const Kt=U.classList,Yt=Xt(Ae),_n=Xt(ke);Kt.remove(...Yt.filter(Cn=>Cn&&!_n.includes(Cn))),Kt.add(..._n.filter(Cn=>Cn&&!Yt.includes(Cn)))}else if("style"===ne){for(const Kt in Ae)(!ke||null==ke[Kt])&&(Kt.includes("-")?U.style.removeProperty(Kt):U.style[Kt]="");for(const Kt in ke)(!Ae||ke[Kt]!==Ae[Kt])&&(Kt.includes("-")?U.style.setProperty(Kt,ke[Kt]):U.style[Kt]=ke[Kt])}else if("key"!==ne)if("ref"===ne)ke&&ke(U);else if(Lt||"o"!==ne[0]||"n"!==ne[1]){const Kt=Fe(ke);if((Lt||Kt&&null!==ke)&&!ot)try{if(U.tagName.includes("-"))U[ne]=ke;else{const _n=null==ke?"":ke;"list"===ne?Lt=!1:(null==Ae||U[ne]!=_n)&&(U[ne]=_n)}}catch{}let Yt=!1;zt!==(zt=zt.replace(/^xlink\:?/,""))&&(ne=zt,Yt=!0),null==ke||!1===ke?(!1!==ke||""===U.getAttribute(ne))&&(Yt?U.removeAttributeNS(Dt,ne):U.removeAttribute(ne)):(!Lt||4&et||ot)&&!Kt&&(ke=!0===ke?"":ke,Yt?U.setAttributeNS(Dt,ne,ke):U.setAttribute(ne,ke))}else if(ne="-"===ne[2]?ne.slice(3):ko(sr,zt)?zt.slice(2):zt[2]+ne.slice(3),Ae||ke){const Kt=ne.endsWith(en);ne=ne.replace(Ir,""),Ae&&jn.rel(U,ne,Ae,Kt),ke&&jn.ael(U,ne,ke,Kt)}}},Ot=/\s/,Xt=U=>U?U.split(Ot):[],en="Capture",Ir=new RegExp(en+"$"),gn=(U,ne,Ae)=>{const ke=11===ne.$elm$.nodeType&&ne.$elm$.host?ne.$elm$.host:ne.$elm$,ot=U&&U.$attrs$||Ze,et=ne.$attrs$||Ze;for(const Lt of mn(Object.keys(ot)))Lt in et||yt(ke,Lt,ot[Lt],void 0,Ae,ne.$flags$);for(const Lt of mn(Object.keys(et)))yt(ke,Lt,ot[Lt],et[Lt],Ae,ne.$flags$)};function mn(U){return U.includes("ref")?[...U.filter(ne=>"ref"!==ne),"ref"]:U}var Jt,Gt,pr,wr=!1,kr=!1,Mr=!1,_r=!1,Bn=(U,ne,Ae,ke)=>{var ot;const et=ne.$children$[Ae];let zt,Kt,Yt,Lt=0;if(wr||(Mr=!0,"slot"===et.$tag$&&(Jt&&ke.classList.add(Jt+"-s"),et.$flags$|=et.$children$?2:1)),null!==et.$text$)zt=et.$elm$=Or.createTextNode(et.$text$);else if(1&et.$flags$)zt=et.$elm$=Or.createTextNode("");else{if(_r||(_r="svg"===et.$tag$),zt=et.$elm$=Or.createElementNS(_r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&et.$flags$?"slot-fb":et.$tag$),_r&&"foreignObject"===et.$tag$&&(_r=!1),gn(null,et,_r),(U=>null!=U)(Jt)&&zt["s-si"]!==Jt&&zt.classList.add(zt["s-si"]=Jt),et.$children$)for(Lt=0;Lt{jn.$flags$|=1;const ne=U.closest(pr.toLowerCase());if(null!=ne){const Ae=Array.from(ne.childNodes).find(ot=>ot["s-cr"]),ke=Array.from(U.childNodes);for(const ot of Ae?ke.reverse():ke)null!=ot["s-sh"]&&(he(ne,ot,null!=Ae?Ae:null),ot["s-sh"]=void 0,Mr=!0)}jn.$flags$&=-2},Zn=(U,ne)=>{jn.$flags$|=1;const Ae=Array.from(U.childNodes);if(U["s-sr"]){let ke=U;for(;ke=ke.nextSibling;)ke&&ke["s-sn"]===U["s-sn"]&&ke["s-sh"]===pr&&Ae.push(ke)}for(let ke=Ae.length-1;ke>=0;ke--){const ot=Ae[ke];ot["s-hn"]!==pr&&ot["s-ol"]&&(he(Qr(ot),ot,Mi(ot)),ot["s-ol"].remove(),ot["s-ol"]=void 0,ot["s-sh"]=void 0,Mr=!0),ne&&Zn(ot,ne)}jn.$flags$&=-2},wn=(U,ne,Ae,ke,ot,et)=>{let zt,Lt=U["s-cr"]&&U["s-cr"].parentNode||U;for(Lt.shadowRoot&&Lt.tagName===pr&&(Lt=Lt.shadowRoot);ot<=et;++ot)ke[ot]&&(zt=Bn(null,Ae,ot,U),zt&&(ke[ot].$elm$=zt,he(Lt,zt,Mi(ne))))},Sr=(U,ne,Ae)=>{for(let ke=ne;ke<=Ae;++ke){const ot=U[ke];if(ot){const et=ot.$elm$;ie(ot),et&&(kr=!0,et["s-ol"]?et["s-ol"].remove():Zn(et,!0),et.remove())}}},Er=(U,ne,Ae=!1)=>U.$tag$===ne.$tag$&&("slot"===U.$tag$?U.$name$===ne.$name$:!!Ae||U.$key$===ne.$key$),Mi=U=>U&&U["s-ol"]||U,Qr=U=>(U["s-ol"]?U["s-ol"]:U).parentNode,Yr=(U,ne,Ae=!1)=>{const ke=ne.$elm$=U.$elm$,ot=U.$children$,et=ne.$children$,Lt=ne.$tag$,zt=ne.$text$;let Kt;null===zt?(_r="svg"===Lt||"foreignObject"!==Lt&&_r,"slot"!==Lt||wr?gn(U,ne,_r):U.$name$!==ne.$name$&&(ne.$elm$["s-sn"]=ne.$name$||"",ni(ne.$elm$.parentElement)),null!==ot&&null!==et?((U,ne,Ae,ke,ot=!1)=>{let cr,nr,et=0,Lt=0,zt=0,Kt=0,Yt=ne.length-1,_n=ne[0],Cn=ne[Yt],Ln=ke.length-1,In=ke[0],br=ke[Ln];for(;et<=Yt&&Lt<=Ln;)if(null==_n)_n=ne[++et];else if(null==Cn)Cn=ne[--Yt];else if(null==In)In=ke[++Lt];else if(null==br)br=ke[--Ln];else if(Er(_n,In,ot))Yr(_n,In,ot),_n=ne[++et],In=ke[++Lt];else if(Er(Cn,br,ot))Yr(Cn,br,ot),Cn=ne[--Yt],br=ke[--Ln];else if(Er(_n,br,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(_n.$elm$.parentNode,!1),Yr(_n,br,ot),he(U,_n.$elm$,Cn.$elm$.nextSibling),_n=ne[++et],br=ke[--Ln];else if(Er(Cn,In,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(Cn.$elm$.parentNode,!1),Yr(Cn,In,ot),he(U,Cn.$elm$,_n.$elm$),Cn=ne[--Yt],In=ke[++Lt];else{for(zt=-1,Kt=et;Kt<=Yt;++Kt)if(ne[Kt]&&null!==ne[Kt].$key$&&ne[Kt].$key$===In.$key$){zt=Kt;break}zt>=0?(nr=ne[zt],nr.$tag$!==In.$tag$?cr=Bn(ne&&ne[Lt],Ae,zt,U):(Yr(nr,In,ot),ne[zt]=void 0,cr=nr.$elm$),In=ke[++Lt]):(cr=Bn(ne&&ne[Lt],Ae,Lt,U),In=ke[++Lt]),cr&&he(Qr(_n.$elm$),cr,Mi(_n.$elm$))}et>Yt?wn(U,null==ke[Ln+1]?null:ke[Ln+1].$elm$,Ae,ke,Lt,Ln):Lt>Ln&&Sr(ne,et,Yt)})(ke,ot,ne,et,Ae):null!==et?(null!==U.$text$&&(ke.textContent=""),wn(ke,null,ne,et,0,et.length-1)):null!==ot&&Sr(ot,0,ot.length-1),_r&&"svg"===Lt&&(_r=!1)):(Kt=ke["s-cr"])?Kt.parentNode.textContent=zt:U.$text$!==zt&&(ke.data=zt)},oe=U=>{const ne=U.childNodes;for(const Ae of ne)if(1===Ae.nodeType){if(Ae["s-sr"]){const ke=Ae["s-sn"];Ae.hidden=!1;for(const ot of ne)if(ot!==Ae)if(ot["s-hn"]!==Ae["s-hn"]||""!==ke){if(1===ot.nodeType&&(ke===ot.getAttribute("slot")||ke===ot["s-sn"])||3===ot.nodeType&&ke===ot["s-sn"]){Ae.hidden=!0;break}}else if(1===ot.nodeType||3===ot.nodeType&&""!==ot.textContent.trim()){Ae.hidden=!0;break}}oe(Ae)}},He=[],ct=U=>{let ne,Ae,ke;for(const ot of U.childNodes){if(ot["s-sr"]&&(ne=ot["s-cr"])&&ne.parentNode){Ae=ne.parentNode.childNodes;const et=ot["s-sn"];for(ke=Ae.length-1;ke>=0;ke--)if(ne=Ae[ke],!(ne["s-cn"]||ne["s-nr"]||ne["s-hn"]===ot["s-hn"]||ne["s-sh"]&&ne["s-sh"]===ot["s-hn"]))if(Xe(ne,et)){let Lt=He.find(zt=>zt.$nodeToRelocate$===ne);kr=!0,ne["s-sn"]=ne["s-sn"]||et,Lt?(Lt.$nodeToRelocate$["s-sh"]=ot["s-hn"],Lt.$slotRefNode$=ot):(ne["s-sh"]=ot["s-hn"],He.push({$slotRefNode$:ot,$nodeToRelocate$:ne})),ne["s-sr"]&&He.map(zt=>{Xe(zt.$nodeToRelocate$,ne["s-sn"])&&(Lt=He.find(Kt=>Kt.$nodeToRelocate$===ne),Lt&&!zt.$slotRefNode$&&(zt.$slotRefNode$=Lt.$slotRefNode$))})}else He.some(Lt=>Lt.$nodeToRelocate$===ne)||He.push({$nodeToRelocate$:ne})}1===ot.nodeType&&ct(ot)}},Xe=(U,ne)=>1===U.nodeType?null===U.getAttribute("slot")&&""===ne||U.getAttribute("slot")===ne:U["s-sn"]===ne||""===ne,ie=U=>{U.$attrs$&&U.$attrs$.ref&&U.$attrs$.ref(null),U.$children$&&U.$children$.map(ie)},he=(U,ne,Ae)=>{const ke=null==U?void 0:U.insertBefore(ne,Ae);return Et(ne,U),ke},Pe=U=>U?U["s-rsc"]||U["s-si"]||U["s-sc"]||Pe(U.parentElement):void 0,Et=(U,ne)=>{var Ae,ke,ot;if(U&&ne){const et=U["s-rsc"],Lt=Pe(ne);et&&null!=(Ae=U.classList)&&Ae.contains(et)&&U.classList.remove(et),Lt&&(U["s-rsc"]=Lt,(null==(ke=U.classList)||!ke.contains(Lt))&&(null==(ot=U.classList)||ot.add(Lt)))}},dn=(U,ne)=>{ne&&!U.$onRenderResolve$&&ne["s-p"]&&ne["s-p"].push(new Promise(Ae=>U.$onRenderResolve$=Ae))},Sn=(U,ne)=>{if(U.$flags$|=16,!(4&U.$flags$))return dn(U,U.$ancestorComponent$),ui(()=>Wn(U,ne));U.$flags$|=512},Wn=(U,ne)=>{const ke=U.$lazyInstance$;let ot;return ne&&(U.$flags$|=256,U.$queuedListeners$&&(U.$queuedListeners$.map(([et,Lt])=>ii(ke,et,Lt)),U.$queuedListeners$=void 0),ot=ii(ke,"componentWillLoad")),ot=gr(ot,()=>ii(ke,"componentWillRender")),gr(ot,()=>ri(U,ke,ne))},gr=(U,ne)=>ur(U)?U.then(ne):ne(),ur=U=>U instanceof Promise||U&&U.then&&"function"==typeof U.then,ri=function(){var U=(0,g.A)(function*(ne,Ae,ke){var ot;const et=ne.$hostElement$,zt=et["s-rc"];ke&&(U=>{const ne=U.$cmpMeta$,Ae=U.$hostElement$,ke=ne.$flags$,et=yn(Ae.shadowRoot?Ae.shadowRoot:Ae.getRootNode(),ne,U.$modeName$);10&ke&&(Ae["s-sc"]=et,Ae.classList.add(et+"-h"),2&ke&&Ae.classList.add(et+"-s"))})(ne);xn(ne,Ae,et,ke),zt&&(zt.map(Yt=>Yt()),et["s-rc"]=void 0);{const Yt=null!=(ot=et["s-p"])?ot:[],_n=()=>Rn(ne);0===Yt.length?_n():(Promise.all(Yt).then(_n),ne.$flags$|=4,Yt.length=0)}});return function(Ae,ke,ot){return U.apply(this,arguments)}}(),xn=(U,ne,Ae,ke)=>{try{ne=ne.render&&ne.render(),U.$flags$&=-17,U.$flags$|=2,((U,ne,Ae=!1)=>{var ke,ot,et,Lt,zt;const Kt=U.$hostElement$,Yt=U.$cmpMeta$,_n=U.$vnode$||rn(null,null),Cn=(U=>U&&U.$tag$===pt)(ne)?ne:Be(null,null,ne);if(pr=Kt.tagName,Yt.$attrsToReflect$&&(Cn.$attrs$=Cn.$attrs$||{},Yt.$attrsToReflect$.map(([Ln,In])=>Cn.$attrs$[In]=Kt[Ln])),Ae&&Cn.$attrs$)for(const Ln of Object.keys(Cn.$attrs$))Kt.hasAttribute(Ln)&&!["key","ref","style","class"].includes(Ln)&&(Cn.$attrs$[Ln]=Kt[Ln]);if(Cn.$tag$=null,Cn.$flags$|=4,U.$vnode$=Cn,Cn.$elm$=_n.$elm$=Kt.shadowRoot||Kt,Jt=Kt["s-sc"],wr=!!(1&Yt.$flags$),Gt=Kt["s-cr"],kr=!1,Yr(_n,Cn,Ae),jn.$flags$|=1,Mr){ct(Cn.$elm$);for(const Ln of He){const In=Ln.$nodeToRelocate$;if(!In["s-ol"]){const br=Or.createTextNode("");br["s-nr"]=In,he(In.parentNode,In["s-ol"]=br,In)}}for(const Ln of He){const In=Ln.$nodeToRelocate$,br=Ln.$slotRefNode$;if(br){const cr=br.parentNode;let nr=br.nextSibling;if(nr&&1===nr.nodeType){let li=null==(ke=In["s-ol"])?void 0:ke.previousSibling;for(;li;){let vi=null!=(ot=li["s-nr"])?ot:null;if(vi&&vi["s-sn"]===In["s-sn"]&&cr===vi.parentNode){for(vi=vi.nextSibling;vi===In||null!=vi&&vi["s-sr"];)vi=null==vi?void 0:vi.nextSibling;if(!vi||!vi["s-nr"]){nr=vi;break}}li=li.previousSibling}}(!nr&&cr!==In.parentNode||In.nextSibling!==nr)&&In!==nr&&(he(cr,In,nr),1===In.nodeType&&(In.hidden=null!=(et=In["s-ih"])&&et)),In&&"function"==typeof br["s-rf"]&&br["s-rf"](In)}else 1===In.nodeType&&(Ae&&(In["s-ih"]=null!=(Lt=In.hidden)&&Lt),In.hidden=!0)}}if(kr&&oe(Cn.$elm$),jn.$flags$&=-2,He.length=0,2&Yt.$flags$)for(const Ln of Cn.$elm$.childNodes)Ln["s-hn"]!==pr&&!Ln["s-sh"]&&(Ae&&null==Ln["s-ih"]&&(Ln["s-ih"]=null!=(zt=Ln.hidden)&&zt),Ln.hidden=!0);Gt=void 0})(U,ne,ke)}catch(ot){ei(ot,U.$hostElement$)}return null},Rn=U=>{const Ae=U.$hostElement$,ot=U.$lazyInstance$,et=U.$ancestorComponent$;ii(ot,"componentDidRender"),64&U.$flags$?ii(ot,"componentDidUpdate"):(U.$flags$|=64,pi(Ae),ii(ot,"componentDidLoad"),U.$onReadyResolve$(Ae),et||Ei()),U.$onInstanceResolve$(Ae),U.$onRenderResolve$&&(U.$onRenderResolve$(),U.$onRenderResolve$=void 0),512&U.$flags$&&qe(()=>Sn(U,!1)),U.$flags$&=-517},yr=U=>{{const ne=oi(U),Ae=ne.$hostElement$.isConnected;return Ae&&2==(18&ne.$flags$)&&Sn(ne,!1),Ae}},Ei=U=>{pi(Or.documentElement),qe(()=>$n(sr,"appload",{detail:{namespace:"ionic"}}))},ii=(U,ne,Ae)=>{if(U&&U[ne])try{return U[ne](Ae)}catch(ke){ei(ke)}},pi=U=>U.classList.add("hydrated"),Hi=(U,ne,Ae)=>{var ke;const ot=U.prototype;if(ne.$members$){U.watchers&&(ne.$watchers$=U.watchers);const et=Object.entries(ne.$members$);if(et.map(([Lt,[zt]])=>{31&zt||2&Ae&&32&zt?Object.defineProperty(ot,Lt,{get(){return((U,ne)=>oi(this).$instanceValues$.get(ne))(0,Lt)},set(Kt){((U,ne,Ae,ke)=>{const ot=oi(U);if(!ot)throw new Error(`Couldn't find host element for "${ke.$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 et=ot.$hostElement$,Lt=ot.$instanceValues$.get(ne),zt=ot.$flags$,Kt=ot.$lazyInstance$;Ae=((U,ne)=>null==U||Fe(U)?U:4&ne?"false"!==U&&(""===U||!!U):2&ne?parseFloat(U):1&ne?String(U):U)(Ae,ke.$members$[ne][0]);const Yt=Number.isNaN(Lt)&&Number.isNaN(Ae);if((!(8&zt)||void 0===Lt)&&Ae!==Lt&&!Yt&&(ot.$instanceValues$.set(ne,Ae),Kt)){if(ke.$watchers$&&128&zt){const Cn=ke.$watchers$[ne];Cn&&Cn.map(Ln=>{try{Kt[Ln](Ae,Lt,ne)}catch(In){ei(In,et)}})}2==(18&zt)&&Sn(ot,!1)}})(this,Lt,Kt,ne)},configurable:!0,enumerable:!0}):1&Ae&&64&zt&&Object.defineProperty(ot,Lt,{value(...Kt){var Yt;const _n=oi(this);return null==(Yt=null==_n?void 0:_n.$onInstancePromise$)?void 0:Yt.then(()=>{var Cn;return null==(Cn=_n.$lazyInstance$)?void 0:Cn[Lt](...Kt)})}})}),1&Ae){const Lt=new Map;ot.attributeChangedCallback=function(zt,Kt,Yt){jn.jmp(()=>{var _n;const Cn=Lt.get(zt);if(this.hasOwnProperty(Cn))Yt=this[Cn],delete this[Cn];else{if(ot.hasOwnProperty(Cn)&&"number"==typeof this[Cn]&&this[Cn]==Yt)return;if(null==Cn){const Ln=oi(this),In=null==Ln?void 0:Ln.$flags$;if(In&&!(8&In)&&128&In&&Yt!==Kt){const br=Ln.$lazyInstance$,cr=null==(_n=ne.$watchers$)?void 0:_n[zt];null==cr||cr.forEach(nr=>{null!=br[nr]&&br[nr].call(br,Yt,Kt,zt)})}return}}this[Cn]=(null!==Yt||"boolean"!=typeof this[Cn])&&Yt})},U.observedAttributes=Array.from(new Set([...Object.keys(null!=(ke=ne.$watchers$)?ke:{}),...et.filter(([zt,Kt])=>15&Kt[0]).map(([zt,Kt])=>{var Yt;const _n=Kt[1]||zt;return Lt.set(_n,zt),512&Kt[0]&&(null==(Yt=ne.$attrsToReflect$)||Yt.push([zt,_n])),_n})]))}}return U},wi=function(){var U=(0,g.A)(function*(ne,Ae,ke,ot){let et;if(!(32&Ae.$flags$)){if(Ae.$flags$|=32,ke.$lazyBundleId$){if(et=is(ke),et.then){const _n=()=>{};et=yield et,_n()}et.isProxied||(ke.$watchers$=et.watchers,Hi(et,ke,2),et.isProxied=!0);const Yt=()=>{};Ae.$flags$|=8;try{new et(Ae)}catch(_n){ei(_n)}Ae.$flags$&=-9,Ae.$flags$|=128,Yt(),gi(Ae.$lazyInstance$)}else et=ne.constructor,customElements.whenDefined(ke.$tagName$).then(()=>Ae.$flags$|=128);if(et.style){let Yt=et.style;"string"!=typeof Yt&&(Yt=Yt[Ae.$modeName$=(U=>si.map(ne=>ne(U)).find(ne=>!!ne))(ne)]);const _n=Yn(ke,Ae.$modeName$);if(!ps.has(_n)){const Cn=()=>{};er(_n,Yt,!!(1&ke.$flags$)),Cn()}}}const Lt=Ae.$ancestorComponent$,zt=()=>Sn(Ae,!0);Lt&&Lt["s-rc"]?Lt["s-rc"].push(zt):zt()});return function(Ae,ke,ot,et){return U.apply(this,arguments)}}(),gi=U=>{ii(U,"connectedCallback")},lt=U=>{const ne=U["s-cr"]=Or.createComment("");ne["s-cn"]=!0,he(U,ne,U.firstChild)},Ut=U=>{ii(U,"disconnectedCallback")},fn=function(){var U=(0,g.A)(function*(ne){if(!(1&jn.$flags$)){const Ae=oi(ne);Ae.$rmListeners$&&(Ae.$rmListeners$.map(ke=>ke()),Ae.$rmListeners$=void 0),null!=Ae&&Ae.$lazyInstance$?Ut(Ae.$lazyInstance$):null!=Ae&&Ae.$onReadyPromise$&&Ae.$onReadyPromise$.then(()=>Ut(Ae.$lazyInstance$))}});return function(Ae){return U.apply(this,arguments)}}(),Y=U=>{const ne=U.cloneNode;U.cloneNode=function(Ae){const ke=this,ot=ke.shadowRoot&&Ao,et=ne.call(ke,!!ot&&Ae);if(!ot&&Ae){let zt,Kt,Lt=0;const Yt=["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(;Lt!ke.childNodes[Lt][_n]),zt&&(et.__appendChild?et.__appendChild(zt.cloneNode(!0)):et.appendChild(zt.cloneNode(!0))),Kt&&et.appendChild(ke.childNodes[Lt].cloneNode(!0))}return et}},Z=U=>{U.__appendChild=U.appendChild,U.appendChild=function(ne){const Ae=ne["s-sn"]=$i(ne),ke=Ai(this.childNodes,Ae,this.tagName);if(ke){const ot=Pi(ke,Ae),et=ot[ot.length-1],Lt=he(et.parentNode,ne,et.nextSibling);return oe(this),Lt}return this.__appendChild(ne)}},Ne=U=>{U.__removeChild=U.removeChild,U.removeChild=function(ne){if(ne&&typeof ne["s-sn"]<"u"){const Ae=Ai(this.childNodes,ne["s-sn"],this.tagName);if(Ae){const ot=Pi(Ae,ne["s-sn"]).find(et=>et===ne);if(ot)return ot.remove(),void oe(this)}}return this.__removeChild(ne)}},Q=U=>{const ne=U.prepend;U.prepend=function(...Ae){Ae.forEach(ke=>{"string"==typeof ke&&(ke=this.ownerDocument.createTextNode(ke));const ot=ke["s-sn"]=$i(ke),et=Ai(this.childNodes,ot,this.tagName);if(et){const Lt=document.createTextNode("");Lt["s-nr"]=ke,et["s-cr"].parentNode.__appendChild(Lt),ke["s-ol"]=Lt;const Kt=Pi(et,ot)[0];return he(Kt.parentNode,ke,Kt.nextSibling)}return 1===ke.nodeType&&ke.getAttribute("slot")&&(ke.hidden=!0),ne.call(this,ke)})}},Se=U=>{U.append=function(...ne){ne.forEach(Ae=>{"string"==typeof Ae&&(Ae=this.ownerDocument.createTextNode(Ae)),this.appendChild(Ae)})}},it=U=>{const ne=U.insertAdjacentHTML;U.insertAdjacentHTML=function(Ae,ke){if("afterbegin"!==Ae&&"beforeend"!==Ae)return ne.call(this,Ae,ke);const ot=this.ownerDocument.createElement("_");let et;if(ot.innerHTML=ke,"afterbegin"===Ae)for(;et=ot.firstChild;)this.prepend(et);else if("beforeend"===Ae)for(;et=ot.firstChild;)this.append(et)}},Wt=U=>{U.insertAdjacentText=function(ne,Ae){this.insertAdjacentHTML(ne,Ae)}},cn=U=>{const ne=U.insertAdjacentElement;U.insertAdjacentElement=function(Ae,ke){return"afterbegin"!==Ae&&"beforeend"!==Ae?ne.call(this,Ae,ke):"afterbegin"===Ae?(this.prepend(ke),ke):("beforeend"===Ae&&this.append(ke),ke)}},Pn=U=>{const ne=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(U,"__textContent",ne),Object.defineProperty(U,"textContent",{get(){return" "+Hn(this.childNodes).map(ot=>{var et,Lt;const zt=[];let Kt=ot.nextSibling;for(;Kt&&Kt["s-sn"]===ot["s-sn"];)(3===Kt.nodeType||1===Kt.nodeType)&&zt.push(null!=(Lt=null==(et=Kt.textContent)?void 0:et.trim())?Lt:""),Kt=Kt.nextSibling;return zt.filter(Yt=>""!==Yt).join(" ")}).filter(ot=>""!==ot).join(" ")+" "},set(Ae){Hn(this.childNodes).forEach(ot=>{let et=ot.nextSibling;for(;et&&et["s-sn"]===ot["s-sn"];){const Lt=et;et=et.nextSibling,Lt.remove()}if(""===ot["s-sn"]){const Lt=this.ownerDocument.createTextNode(Ae);Lt["s-sn"]="",he(ot.parentElement,Lt,ot.nextSibling)}else ot.remove()})}})},Cr=(U,ne)=>{class Ae extends Array{item(ot){return this[ot]}}if(8&ne.$flags$){const ke=U.__lookupGetter__("childNodes");Object.defineProperty(U,"children",{get(){return this.childNodes.map(ot=>1===ot.nodeType)}}),Object.defineProperty(U,"childElementCount",{get:()=>U.children.length}),Object.defineProperty(U,"childNodes",{get(){const ot=ke.call(this);if(!(1&jn.$flags$)&&2&oi(this).$flags$){const et=new Ae;for(let Lt=0;Lt{const ne=[];for(const Ae of Array.from(U))Ae["s-sr"]&&ne.push(Ae),ne.push(...Hn(Ae.childNodes));return ne},$i=U=>U["s-sn"]||1===U.nodeType&&U.getAttribute("slot")||"",Ai=(U,ne,Ae)=>{let ot,ke=0;for(;ke{const Ae=[U];for(;(U=U.nextSibling)&&U["s-sn"]===ne;)Ae.push(U);return Ae},xr=(U,ne={})=>{var Ae;const ot=[],et=ne.exclude||[],Lt=sr.customElements,zt=Or.head,Kt=zt.querySelector("meta[charset]"),Yt=Or.createElement("style"),_n=[],Cn=Or.querySelectorAll(`[${ze}]`);let Ln,In=!0,br=0;for(Object.assign(jn,ne),jn.$resourcesUrl$=new URL(ne.resourcesUrl||"./",Or.baseURI).href,jn.$flags$|=2;br{nr[1].map(li=>{var vi;const ci={$flags$:li[0],$tagName$:li[1],$members$:li[2],$listeners$:li[3]};4&ci.$flags$&&(cr=!0),ci.$members$=li[2],ci.$listeners$=li[3],ci.$attrsToReflect$=[],ci.$watchers$=null!=(vi=li[4])?vi:{};const no=ci.$tagName$,Go=class extends HTMLElement{constructor(dr){super(dr),kn(dr=this,ci),1&ci.$flags$&&dr.attachShadow({mode:"open",delegatesFocus:!!(16&ci.$flags$)})}connectedCallback(){Ln&&(clearTimeout(Ln),Ln=null),In?_n.push(this):jn.jmp(()=>(U=>{if(!(1&jn.$flags$)){const ne=oi(U),Ae=ne.$cmpMeta$,ke=()=>{};if(1&ne.$flags$)An(U,ne,Ae.$listeners$),null!=ne&&ne.$lazyInstance$?gi(ne.$lazyInstance$):null!=ne&&ne.$onReadyPromise$&&ne.$onReadyPromise$.then(()=>gi(ne.$lazyInstance$));else{let ot;if(ne.$flags$|=1,ot=U.getAttribute(xt),ot){if(1&Ae.$flags$){const et=yn(U.shadowRoot,Ae,U.getAttribute("s-mode"));U.classList.remove(et+"-h",et+"-s")}((U,ne,Ae,ke)=>{const et=U.shadowRoot,Lt=[],Kt=et?[]:null,Yt=ke.$vnode$=rn(ne,null);jn.$orgLocNodes$||me(Or.body,jn.$orgLocNodes$=new Map),U[xt]=Ae,U.removeAttribute(xt),ae(Yt,Lt,[],Kt,U,U,Ae),Lt.map(_n=>{const Cn=_n.$hostId$+"."+_n.$nodeId$,Ln=jn.$orgLocNodes$.get(Cn),In=_n.$elm$;Ln&&Ao&&""===Ln["s-en"]&&Ln.parentNode.insertBefore(In,Ln.nextSibling),et||(In["s-hn"]=ne,Ln&&(In["s-ol"]=Ln,In["s-ol"]["s-nr"]=In)),jn.$orgLocNodes$.delete(Cn)}),et&&Kt.map(_n=>{_n&&et.appendChild(_n)})})(U,Ae.$tagName$,ot,ne)}ot||12&Ae.$flags$&<(U);{let et=U;for(;et=et.parentNode||et.host;)if(1===et.nodeType&&et.hasAttribute("s-id")&&et["s-p"]||et["s-p"]){dn(ne,ne.$ancestorComponent$=et);break}}Ae.$members$&&Object.entries(Ae.$members$).map(([et,[Lt]])=>{if(31&Lt&&U.hasOwnProperty(et)){const zt=U[et];delete U[et],U[et]=zt}}),wi(U,ne,Ae)}ke()}})(this))}disconnectedCallback(){jn.jmp(()=>fn(this))}componentOnReady(){return oi(this).$onReadyPromise$}};2&ci.$flags$&&((U,ne)=>{Y(U),Z(U),Se(U),Q(U),cn(U),it(U),Wt(U),Pn(U),Cr(U,ne),Ne(U)})(Go.prototype,ci),ci.$lazyBundleId$=nr[0],!et.includes(no)&&!Lt.get(no)&&(ot.push(no),Lt.define(no,Hi(Go,ci,1)))})}),ot.length>0&&(cr&&(Yt.textContent+=Zt),Yt.textContent+=ot+"{visibility:hidden}.hydrated{visibility:inherit}",Yt.innerHTML.length)){Yt.setAttribute("data-styles","");const nr=null!=(Ae=jn.$nonce$)?Ae:$e(Or);null!=nr&&Yt.setAttribute("nonce",nr),zt.insertBefore(Yt,Kt?Kt.nextSibling:zt.firstChild)}In=!1,_n.length?_n.map(nr=>nr.connectedCallback()):jn.jmp(()=>Ln=setTimeout(Ei,30))},An=(U,ne,Ae,ke)=>{Ae&&Ae.map(([ot,et,Lt])=>{const zt=mi(U,ot),Kt=xi(ne,Lt),Yt=Si(ot);jn.ael(zt,et,Kt,Yt),(ne.$rmListeners$=ne.$rmListeners$||[]).push(()=>jn.rel(zt,et,Kt,Yt))})},xi=(U,ne)=>Ae=>{try{256&U.$flags$?U.$lazyInstance$[ne](Ae):(U.$queuedListeners$=U.$queuedListeners$||[]).push([ne,Ae])}catch(ke){ei(ke)}},mi=(U,ne)=>4&ne?Or:8&ne?sr:16&ne?Or.body:U,Si=U=>Co?{passive:!!(1&U),capture:!!(2&U)}:!!(2&U),mr=new WeakMap,oi=U=>mr.get(U),Nn=(U,ne)=>mr.set(ne.$lazyInstance$=U,ne),kn=(U,ne)=>{const Ae={$flags$:0,$hostElement$:U,$cmpMeta$:ne,$instanceValues$:new Map};return Ae.$onInstancePromise$=new Promise(ke=>Ae.$onInstanceResolve$=ke),Ae.$onReadyPromise$=new Promise(ke=>Ae.$onReadyResolve$=ke),U["s-p"]=[],U["s-rc"]=[],An(U,Ae,ne.$listeners$),mr.set(U,Ae)},ko=(U,ne)=>ne in U,ei=(U,ne)=>(0,console.error)(U,ne),Bi=new Map,is=(U,ne,Ae)=>{const ke=U.$tagName$.replace(/-/g,"_"),ot=U.$lazyBundleId$,et=Bi.get(ot);return et?et[ke]:B(8996)(`./${ot}.entry.js`).then(Lt=>(Bi.set(ot,Lt),Lt[ke]),ei)},ps=new Map,si=[],sr=typeof window<"u"?window:{},Or=sr.document||{head:{}},jn={$flags$:0,$resourcesUrl$:"",jmp:U=>U(),raf:U=>requestAnimationFrame(U),ael:(U,ne,Ae,ke)=>U.addEventListener(ne,Ae,ke),rel:(U,ne,Ae,ke)=>U.removeEventListener(ne,Ae,ke),ce:(U,ne)=>new CustomEvent(U,ne)},Fo=U=>{Object.assign(jn,U)},Ao=!0,Co=(()=>{let U=!1;try{Or.addEventListener("e",null,Object.defineProperty({},"passive",{get(){U=!0}}))}catch{}return U})(),To=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Ni=!1,S=[],H=[],ue=(U,ne)=>Ae=>{U.push(Ae),Ni||(Ni=!0,ne&&4&jn.$flags$?qe(fe):jn.raf(fe))},M=U=>{for(let ne=0;ne{M(S),M(H),(Ni=S.length>0)&&jn.raf(fe)},qe=U=>Promise.resolve(void 0).then(U),ar=ue(S,!1),ui=ue(H,!0)},2725:(En,bt,B)=>{"use strict";B.d(bt,{b:()=>Ze,c:()=>Je,d:()=>De,e:()=>Be,g:()=>ye,l:()=>Zt,s:()=>rn,t:()=>st,w:()=>Dt});var g=B(467),d=B(3664),ge=B(9672),Oe=B(4929),X=B(4920);const Ze="ionViewWillLeave",Je="ionViewDidLeave",De="ionViewWillUnload",_e=j=>{j.tabIndex=-1,j.focus()},Fe=j=>null!==j.offsetParent,Le="ion-last-focus",ut_saveViewFocus=te=>{if(d.c.get("focusManagerPriority",!1)){const ae=document.activeElement;null!==ae&&null!=te&&te.contains(ae)&&ae.setAttribute(Le,"true")}},ut_setViewFocus=te=>{const de=d.c.get("focusManagerPriority",!1);if(Array.isArray(de)&&!te.contains(document.activeElement)){const ae=te.querySelector(`[${Le}]`);if(ae&&Fe(ae))return void _e(ae);for(const me of de)switch(me){case"content":const Ce=te.querySelector('main, [role="main"]');if(Ce&&Fe(Ce))return void _e(Ce);break;case"heading":const at=te.querySelector('h1, [role="heading"][aria-level="1"]');if(at&&Fe(at))return void _e(at);break;case"banner":const kt=te.querySelector('header, [role="banner"]');if(kt&&Fe(kt))return void _e(kt);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${me}`)}_e(te)}},st=j=>new Promise((W,te)=>{(0,ge.w)(()=>{Mt(j),mt(j).then(de=>{de.animation&&de.animation.destroy(),vt(j),W(de)},de=>{vt(j),te(de)})})}),Mt=j=>{const W=j.enteringEl,te=j.leavingEl;ut_saveViewFocus(te),pt(W,te,j.direction),j.showGoBack?W.classList.add("can-go-back"):W.classList.remove("can-go-back"),rn(W,!1),W.style.setProperty("pointer-events","none"),te&&(rn(te,!1),te.style.setProperty("pointer-events","none"))},mt=function(){var j=(0,g.A)(function*(W){const te=yield Me(W);return te&&ge.B.isBrowser?je(te,W):Ke(W)});return function(te){return j.apply(this,arguments)}}(),vt=j=>{const W=j.enteringEl,te=j.leavingEl;W.classList.remove("ion-page-invisible"),W.style.removeProperty("pointer-events"),void 0!==te&&(te.classList.remove("ion-page-invisible"),te.style.removeProperty("pointer-events")),ut_setViewFocus(W)},Me=function(){var j=(0,g.A)(function*(W){return W.leavingEl&&W.animated&&0!==W.duration?W.animationBuilder?W.animationBuilder:"ios"===W.mode?(yield Promise.resolve().then(B.bind(B,8454))).iosTransitionAnimation:(yield Promise.resolve().then(B.bind(B,3314))).mdTransitionAnimation:void 0});return function(te){return j.apply(this,arguments)}}(),je=function(){var j=(0,g.A)(function*(W,te){yield Ct(te,!0);const de=W(te.baseEl,te);Tt(te.enteringEl,te.leavingEl);const ae=yield ze(de,te);return te.progressCallback&&te.progressCallback(void 0),ae&&Vt(te.enteringEl,te.leavingEl),{hasCompleted:ae,animation:de}});return function(te,de){return j.apply(this,arguments)}}(),Ke=function(){var j=(0,g.A)(function*(W){const te=W.enteringEl,de=W.leavingEl,ae=d.c.get("focusManagerPriority",!1);return yield Ct(W,ae),Tt(te,de),Vt(te,de),{hasCompleted:!0}});return function(te){return j.apply(this,arguments)}}(),Ct=function(){var j=(0,g.A)(function*(W,te){(void 0!==W.deepWait?W.deepWait:te)&&(yield Promise.all([Be(W.enteringEl),Be(W.leavingEl)])),yield xt(W.viewIsReady,W.enteringEl)});return function(te,de){return j.apply(this,arguments)}}(),xt=function(){var j=(0,g.A)(function*(W,te){W&&(yield W(te))});return function(te,de){return j.apply(this,arguments)}}(),ze=(j,W)=>{const te=W.progressCallback,de=new Promise(ae=>{j.onFinish(me=>ae(1===me))});return te?(j.progressStart(!0),te(j)):j.play(),de},Tt=(j,W)=>{Zt(W,Ze),Zt(j,"ionViewWillEnter")},Vt=(j,W)=>{Zt(j,"ionViewDidEnter"),Zt(W,Je)},Zt=(j,W)=>{if(j){const te=new CustomEvent(W,{bubbles:!1,cancelable:!1});j.dispatchEvent(te)}},Dt=()=>new Promise(j=>(0,X.r)(()=>(0,X.r)(()=>j()))),Be=function(){var j=(0,g.A)(function*(W){const te=W;if(te){if(null!=te.componentOnReady){if(null!=(yield te.componentOnReady()))return}else if(null!=te.__registerHost)return void(yield new Promise(ae=>(0,X.r)(ae)));yield Promise.all(Array.from(te.children).map(Be))}});return function(te){return j.apply(this,arguments)}}(),rn=(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"))},pt=(j,W,te)=>{void 0!==j&&(j.style.zIndex="back"===te?"99":"101"),void 0!==W&&(W.style.zIndex="100")},ye=j=>j.classList.contains("ion-page")?j:j.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||j},4929:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>d,b:()=>ge,p:()=>g});const g=(Oe,...X)=>console.warn(`[Ionic Warning]: ${Oe}`,...X),d=(Oe,...X)=>console.error(`[Ionic Error]: ${Oe}`,...X),ge=(Oe,...X)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${X.join(" or ")}.`)},8476:(En,bt,B)=>{"use strict";B.d(bt,{d:()=>d,w:()=>g});const g=typeof window<"u"?window:void 0,d=typeof document<"u"?document:void 0},3664:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>_e,b:()=>rn,c:()=>ge,i:()=>pt});var g=B(9672);class d{constructor(){this.m=new Map}reset(j){this.m=new Map(Object.entries(j))}get(j,W){const te=this.m.get(j);return void 0!==te?te:W}getBoolean(j,W=!1){const te=this.m.get(j);return void 0===te?W:"string"==typeof te?"true"===te:!!te}getNumber(j,W){const te=parseFloat(this.m.get(j));return isNaN(te)?void 0!==W?W:NaN:te}set(j,W){this.m.set(j,W)}}const ge=new d,Je="ionic-persist-config",_e=(ye,j)=>("string"==typeof ye&&(j=ye,ye=void 0),(ye=>Fe(ye))(ye).includes(j)),Fe=(ye=window)=>{if(typeof ye>"u")return[];ye.Ionic=ye.Ionic||{};let j=ye.Ionic.platforms;return null==j&&(j=ye.Ionic.platforms=$e(ye),j.forEach(W=>ye.document.documentElement.classList.add(`plt-${W}`))),j},$e=ye=>{const j=ge.get("platform");return Object.keys(Dt).filter(W=>{const te=null==j?void 0:j[W];return"function"==typeof te?te(ye):Dt[W](ye)})},Qe=ye=>!!(Vt(ye,/iPad/i)||Vt(ye,/Macintosh/i)&&Me(ye)),st=ye=>Vt(ye,/android|sink/i),Me=ye=>Zt(ye,"(any-pointer:coarse)"),Ke=ye=>Ct(ye)||xt(ye),Ct=ye=>!!(ye.cordova||ye.phonegap||ye.PhoneGap),xt=ye=>{const j=ye.Capacitor;return!(null==j||!j.isNative)},Vt=(ye,j)=>j.test(ye.navigator.userAgent),Zt=(ye,j)=>{var W;return null===(W=ye.matchMedia)||void 0===W?void 0:W.call(ye,j).matches},Dt={ipad:Qe,iphone:ye=>Vt(ye,/iPhone/i),ios:ye=>Vt(ye,/iPhone|iPod/i)||Qe(ye),android:st,phablet:ye=>{const j=ye.innerWidth,W=ye.innerHeight,te=Math.min(j,W),de=Math.max(j,W);return te>390&&te<520&&de>620&&de<800},tablet:ye=>{const j=ye.innerWidth,W=ye.innerHeight,te=Math.min(j,W),de=Math.max(j,W);return Qe(ye)||(ye=>st(ye)&&!Vt(ye,/mobile/i))(ye)||te>460&&te<820&&de>780&&de<1400},cordova:Ct,capacitor:xt,electron:ye=>Vt(ye,/electron/i),pwa:ye=>{var j;return!!(null!==(j=ye.matchMedia)&&void 0!==j&&j.call(ye,"(display-mode: standalone)").matches||ye.navigator.standalone)},mobile:Me,mobileweb:ye=>Me(ye)&&!Ke(ye),desktop:ye=>!Me(ye),hybrid:Ke};let Be;const rn=ye=>ye&&(0,g.g)(ye)||Be,pt=(ye={})=>{if(typeof window>"u")return;const j=window.document,W=window,te=W.Ionic=W.Ionic||{},de={};ye._ael&&(de.ael=ye._ael),ye._rel&&(de.rel=ye._rel),ye._ce&&(de.ce=ye._ce),(0,g.a)(de);const ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(ye=>{try{const j=ye.sessionStorage.getItem(Je);return null!==j?JSON.parse(j):{}}catch{return{}}})(W)),{persistConfig:!1}),te.config),(ye=>{const j={};return ye.location.search.slice(1).split("&").map(W=>W.split("=")).map(([W,te])=>{try{return[decodeURIComponent(W),decodeURIComponent(te)]}catch{return["",""]}}).filter(([W])=>((ye,j)=>ye.substr(0,j.length)===j)(W,"ionic:")).map(([W,te])=>[W.slice(6),te]).forEach(([W,te])=>{j[W]=te}),j})(W)),ye);ge.reset(ae),ge.getBoolean("persistConfig")&&((ye,j)=>{try{ye.sessionStorage.setItem(Je,JSON.stringify(j))}catch{return}})(W,ae),Fe(W),te.config=ge,te.mode=Be=ge.get("mode",j.documentElement.getAttribute("mode")||(_e(W,"ios")?"ios":"md")),ge.set("mode",Be),j.documentElement.setAttribute("mode",Be),j.documentElement.classList.add(Be),ge.getBoolean("_testing")&&ge.set("animated",!1);const me=at=>{var kt;return null===(kt=at.tagName)||void 0===kt?void 0:kt.startsWith("ION-")},Ce=at=>["ios","md"].includes(at);(0,g.c)(at=>{for(;at;){const kt=at.mode||at.getAttribute("mode");if(kt){if(Ce(kt))return kt;me(at)&&console.warn('Invalid ionic mode: "'+kt+'", expected: "ios" or "md"')}at=at.parentElement}return Be})}},8454:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{iosTransitionAnimation:()=>Le,shadow:()=>Ze});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const re=ft=>document.querySelector(`${ft}.ion-cloned-element`),Ze=ft=>ft.shadowRoot||ft,Je=ft=>{const ut="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs"),st="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=ut){const Mt=ut.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Mt?Mt.querySelector(st):null}return ft.querySelector(st)},De=(ft,ut)=>{const st="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs");let Mt=[];if(null!=st){const mt=st.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=mt&&(Mt=mt.querySelectorAll("ion-buttons"))}else Mt=ft.querySelectorAll("ion-buttons");for(const mt of Mt){const vt=mt.closest("ion-header"),Me=vt&&!vt.classList.contains("header-collapse-condense-inactive"),je=mt.querySelector("ion-back-button"),Ke=mt.classList.contains("buttons-collapse");if(null!==je&&("start"===mt.slot||""===mt.slot)&&(Ke&&Me&&ut||!Ke))return je}return null},Fe=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,xt;const ze=ut?`calc(100% - ${mt.right+4}px)`:mt.left-4+"px",Tt=ut?"right":"left",Vt=ut?"left":"right",Zt=ut?"right":"left";let Dt=1,Be=1,rn=`scale(${Be})`;const pt="scale(1)";if(vt&&Me){const Ot=(null===(Ct=vt.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(xt=je.textContent)||void 0===xt?void 0:xt.trim());Dt=Ke.width/Me.width,Be=(Ke.height-Qe)/Me.height,rn=Ot?`scale(${Dt}, ${Be})`:`scale(${Be})`}const j=Ze(Mt).querySelector("ion-icon").getBoundingClientRect(),W=ut?j.width/2-(j.right-mt.right)+"px":mt.left-j.width/2+"px",te=ut?`-${window.innerWidth-mt.right}px`:`${mt.left}px`,de=`${Ke.top}px`,ae=`${mt.top}px`,at=st?[{offset:0,transform:`translate3d(${te}, ${ae}, 0)`},{offset:1,transform:`translate3d(${W}, ${de}, 0)`}]:[{offset:0,transform:`translate3d(${W}, ${de}, 0)`},{offset:1,transform:`translate3d(${te}, ${ae}, 0)`}],vn=st?[{offset:0,opacity:1,transform:pt},{offset:1,opacity:0,transform:rn}]:[{offset:0,opacity:0,transform:rn},{offset:1,opacity:1,transform:pt}],qn=st?[{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)"}],er=(0,g.c)(),yn=(0,g.c)(),ir=(0,g.c)(),Yn=re("ion-back-button"),Ve=Ze(Yn).querySelector(".button-text"),yt=Ze(Yn).querySelector("ion-icon");Yn.text=Mt.text,Yn.mode=Mt.mode,Yn.icon=Mt.icon,Yn.color=Mt.color,Yn.disabled=Mt.disabled,Yn.style.setProperty("display","block"),Yn.style.setProperty("position","fixed"),yn.addElement(yt),er.addElement(Ve),ir.addElement(Yn),ir.beforeStyles({position:"absolute",top:"0px",[Zt]:"0px"}).beforeAddWrite(()=>{Mt.style.setProperty("display","none"),Yn.style.setProperty(Tt,ze)}).afterAddWrite(()=>{Mt.style.setProperty("display",""),Yn.style.setProperty("display","none"),Yn.style.removeProperty(Tt)}).keyframes(at),er.beforeStyles({"transform-origin":`${Tt} top`}).keyframes(vn),yn.beforeStyles({"transform-origin":`${Vt} center`}).keyframes(qn),ft.addAnimation([er,yn,ir])},$e=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,xt;const ze=ut?"right":"left",Tt=ut?`calc(100% - ${mt.right}px)`:`${mt.left}px`,Zt=`${mt.top}px`;let Be=ut?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,rn=.5;const pt="scale(1)";let ye=`scale(${rn})`;if(je&&Ke){Be=ut?`-${window.innerWidth-Ke.right-8}px`:Ke.x-8+"px";const kt=(null===(Ct=je.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(xt=Mt.textContent)||void 0===xt?void 0:xt.trim());rn=Ke.height/(vt.height-Qe),ye=kt?`scale(${Ke.width/vt.width}, ${rn})`:`scale(${rn})`}const te=Me.top+Me.height/2-mt.height*rn/2+"px",me=st?[{offset:0,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${ye}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Zt}, 0) ${pt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Zt}, 0) ${pt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${ye}`}],Ce=re("ion-title"),at=(0,g.c)();Ce.innerText=Mt.innerText,Ce.size=Mt.size,Ce.color=Mt.color,at.addElement(Ce),at.beforeStyles({"transform-origin":`${ze} top`,height:`${mt.height}px`,display:"",position:"relative",[ze]:Tt}).beforeAddWrite(()=>{Mt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Mt.style.setProperty("opacity",""),Ce.style.setProperty("display","none")}).keyframes(me),ft.addAnimation(at)},Le=(ft,ut)=>{var st;try{const Mt="cubic-bezier(0.32,0.72,0,1)",mt="opacity",vt="transform",Me="0%",Ke="rtl"===ft.ownerDocument.dir,Ct=Ke?"-99.5%":"99.5%",xt=Ke?"33%":"-33%",ze=ut.enteringEl,Tt=ut.leavingEl,Vt="back"===ut.direction,Zt=ze.querySelector(":scope > ion-content"),Dt=ze.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Be=ze.querySelectorAll(":scope > ion-header > ion-toolbar"),rn=(0,g.c)(),pt=(0,g.c)();if(rn.addElement(ze).duration((null!==(st=ut.duration)&&void 0!==st?st:0)||540).easing(ut.easing||Mt).fill("both").beforeRemoveClass("ion-page-invisible"),Tt&&null!=ft){const te=(0,g.c)();te.addElement(ft),rn.addAnimation(te)}if(Zt||0!==Be.length||0!==Dt.length?(pt.addElement(Zt),pt.addElement(Dt)):pt.addElement(ze.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(pt),Vt?pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${xt})`,`translateX(${Me})`).fromTo(mt,.8,1):pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),Zt){const te=Ze(Zt).querySelector(".transition-effect");if(te){const de=te.querySelector(".transition-cover"),ae=te.querySelector(".transition-shadow"),me=(0,g.c)(),Ce=(0,g.c)(),at=(0,g.c)();me.addElement(te).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ce.addElement(de).beforeClearStyles([mt]).fromTo(mt,0,.1),at.addElement(ae).beforeClearStyles([mt]).fromTo(mt,.03,.7),me.addAnimation([Ce,at]),pt.addAnimation([me])}}const ye=ze.querySelector("ion-header.header-collapse-condense"),{forward:j,backward:W}=((ft,ut,st,Mt,mt)=>{const vt=De(Mt,st),Me=Je(mt),je=Je(Mt),Ke=De(mt,st),Ct=null!==vt&&null!==Me&&!st,xt=null!==je&&null!==Ke&&st;if(Ct){const ze=Me.getBoundingClientRect(),Tt=vt.getBoundingClientRect(),Vt=Ze(vt).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(Me).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,Me,ze,Be,Tt,Vt,Zt),Fe(ft,ut,st,vt,Tt,Vt,Zt,Me,Be)}else if(xt){const ze=je.getBoundingClientRect(),Tt=Ke.getBoundingClientRect(),Vt=Ze(Ke).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(je).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,je,ze,Be,Tt,Vt,Zt),Fe(ft,ut,st,Ke,Tt,Vt,Zt,je,Be)}return{forward:Ct,backward:xt}})(rn,Ke,Vt,ze,Tt);if(Be.forEach(te=>{const de=(0,g.c)();de.addElement(te),rn.addAnimation(de);const ae=(0,g.c)();ae.addElement(te.querySelector("ion-title"));const me=(0,g.c)(),Ce=Array.from(te.querySelectorAll("ion-buttons,[menuToggle]")),at=te.closest("ion-header"),kt=null==at?void 0:at.classList.contains("header-collapse-condense-inactive");let Bt;Bt=Ce.filter(Vt?er=>{const yn=er.classList.contains("buttons-collapse");return yn&&!kt||!yn}:er=>!er.classList.contains("buttons-collapse")),me.addElement(Bt);const vn=(0,g.c)();vn.addElement(te.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const bn=(0,g.c)();bn.addElement(Ze(te).querySelector(".toolbar-background"));const $n=(0,g.c)(),qn=te.querySelector("ion-back-button");if(qn&&$n.addElement(qn),de.addAnimation([ae,me,vn,bn,$n]),me.fromTo(mt,.01,1),vn.fromTo(mt,.01,1),Vt)kt||ae.fromTo("transform",`translateX(${xt})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${xt})`,`translateX(${Me})`),$n.fromTo(mt,.01,1);else if(ye||ae.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),bn.beforeClearStyles([mt,"transform"]),(null==at?void 0:at.translucent)?bn.fromTo("transform",Ke?"translateX(-100%)":"translateX(100%)","translateX(0px)"):bn.fromTo(mt,.01,"var(--opacity)"),j||$n.fromTo(mt,.01,1),qn&&!j){const yn=(0,g.c)();yn.addElement(Ze(qn).querySelector(".button-text")).fromTo("transform",Ke?"translateX(-100px)":"translateX(100px)","translateX(0px)"),de.addAnimation(yn)}}),Tt){const te=(0,g.c)(),de=Tt.querySelector(":scope > ion-content"),ae=Tt.querySelectorAll(":scope > ion-header > ion-toolbar"),me=Tt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(de||0!==ae.length||0!==me.length?(te.addElement(de),te.addElement(me)):te.addElement(Tt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(te),Vt){te.beforeClearStyles([mt]).fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)");const Ce=(0,d.g)(Tt);rn.afterAddWrite(()=>{"normal"===rn.getDirection()&&Ce.style.setProperty("display","none")})}else te.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).fromTo(mt,1,.8);if(de){const Ce=Ze(de).querySelector(".transition-effect");if(Ce){const at=Ce.querySelector(".transition-cover"),kt=Ce.querySelector(".transition-shadow"),Bt=(0,g.c)(),vn=(0,g.c)(),bn=(0,g.c)();Bt.addElement(Ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),vn.addElement(at).beforeClearStyles([mt]).fromTo(mt,.1,0),bn.addElement(kt).beforeClearStyles([mt]).fromTo(mt,.7,.03),Bt.addAnimation([vn,bn]),te.addAnimation([Bt])}}ae.forEach(Ce=>{const at=(0,g.c)();at.addElement(Ce);const kt=(0,g.c)();kt.addElement(Ce.querySelector("ion-title"));const Bt=(0,g.c)(),vn=Ce.querySelectorAll("ion-buttons,[menuToggle]"),bn=Ce.closest("ion-header"),$n=null==bn?void 0:bn.classList.contains("header-collapse-condense-inactive"),qn=Array.from(vn).filter(yt=>{const Ot=yt.classList.contains("buttons-collapse");return Ot&&!$n||!Ot});Bt.addElement(qn);const er=(0,g.c)(),yn=Ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yn.length>0&&er.addElement(yn);const ir=(0,g.c)();ir.addElement(Ze(Ce).querySelector(".toolbar-background"));const Yn=(0,g.c)(),Ve=Ce.querySelector("ion-back-button");if(Ve&&Yn.addElement(Ve),at.addAnimation([kt,Bt,er,Yn,ir]),rn.addAnimation(at),Yn.fromTo(mt,.99,0),Bt.fromTo(mt,.99,0),er.fromTo(mt,.99,0),Vt){if($n||kt.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)").fromTo(mt,.99,0),er.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)"),ir.beforeClearStyles([mt,"transform"]),(null==bn?void 0:bn.translucent)?ir.fromTo("transform","translateX(0px)",Ke?"translateX(-100%)":"translateX(100%)"):ir.fromTo(mt,"var(--opacity)",0),Ve&&!W){const Ot=(0,g.c)();Ot.addElement(Ze(Ve).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(Ke?-124:124)+"px"})`),at.addAnimation(Ot)}}else $n||kt.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).fromTo(mt,.99,0).afterClearStyles([vt,mt]),er.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).afterClearStyles([vt,mt]),Yn.afterClearStyles([mt]),kt.afterClearStyles([mt]),Bt.afterClearStyles([mt])})}return rn}catch(Mt){throw Mt}},Qe=10},3314:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{mdTransitionAnimation:()=>Ee});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const Ee=(re,Ze)=>{var Je,De,_e;const Le="back"===Ze.direction,ft=Ze.leavingEl,ut=(0,d.g)(Ze.enteringEl),st=ut.querySelector("ion-toolbar"),Mt=(0,g.c)();if(Mt.addElement(ut).fill("both").beforeRemoveClass("ion-page-invisible"),Le?Mt.duration((null!==(Je=Ze.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Mt.duration((null!==(De=Ze.duration)&&void 0!==De?De:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),st){const mt=(0,g.c)();mt.addElement(st),Mt.addAnimation(mt)}if(ft&&Le){Mt.duration((null!==(_e=Ze.duration)&&void 0!==_e?_e:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const mt=(0,g.c)();mt.addElement((0,d.g)(ft)).onFinish(vt=>{1===vt&&mt.elements.length>0&&mt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Mt.addAnimation(mt)}return Mt}},6002:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>vn,F:()=>Yn,G:()=>bn,O:()=>$n,a:()=>ut,b:()=>st,c:()=>Me,d:()=>qn,e:()=>er,f:()=>j,g:()=>te,h:()=>me,i:()=>at,j:()=>Ke,k:()=>Ct,l:()=>Mt,m:()=>mt,n:()=>De,o:()=>pt,q:()=>_e,s:()=>Bt});var g=B(467),d=B(8476),ge=B(4920),Oe=B(6411),X=B(3664),Ee=B(8621),re=B(1970),Ze=B(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])',De=(Ve,yt)=>{const Ot=Ve.querySelector(Je);Fe(Ot,null!=yt?yt:Ve)},_e=(Ve,yt)=>{const Ot=Array.from(Ve.querySelectorAll(Je));Fe(Ot.length>0?Ot[Ot.length-1]:null,null!=yt?yt:Ve)},Fe=(Ve,yt)=>{let Ot=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ve),Ot?(0,ge.f)(Ot):yt.focus()};let $e=0,Le=0;const Qe=new WeakMap,ft=Ve=>({create:yt=>xt(Ve,yt),dismiss:(yt,Ot,Xt)=>Dt(document,yt,Ot,Ve,Xt),getTop:()=>(0,g.A)(function*(){return pt(document,Ve)})()}),ut=ft("ion-alert"),st=ft("ion-action-sheet"),Mt=ft("ion-loading"),mt=ft("ion-modal"),Me=ft("ion-popover"),Ke=Ve=>{typeof document<"u"&&Zt(document);const yt=$e++;Ve.overlayIndex=yt},Ct=Ve=>(Ve.hasAttribute("id")||(Ve.id="ion-overlay-"+ ++Le),Ve.id),xt=(Ve,yt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(Ve).then(()=>{const Ot=document.createElement(Ve);return Ot.classList.add("overlay-hidden"),Object.assign(Ot,Object.assign(Object.assign({},yt),{hasController:!0})),de(document).appendChild(Ot),new Promise(Xt=>(0,ge.c)(Ot,Xt))}):Promise.resolve(),Tt=(Ve,yt)=>{let Ot=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ve),Ot?(0,ge.f)(Ot):yt.focus()},Zt=Ve=>{0===$e&&($e=1,Ve.addEventListener("focus",yt=>{((Ve,yt)=>{const Ot=pt(yt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Xt=Ve.target;Ot&&Xt&&!Ot.classList.contains(Yn)&&(Ot.shadowRoot?(()=>{if(Ot.contains(Xt))Ot.lastFocus=Xt;else if("ION-TOAST"===Xt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=Ot.lastFocus;De(Ot),gn===yt.activeElement&&_e(Ot),Ot.lastFocus=yt.activeElement}})():(()=>{if(Ot===Xt)Ot.lastFocus=void 0;else if("ION-TOAST"===Xt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=(0,ge.g)(Ot);if(!gn.contains(Xt))return;const mn=gn.querySelector(".ion-overlay-wrapper");if(!mn)return;if(mn.contains(Xt)||Xt===gn.querySelector("ion-backdrop"))Ot.lastFocus=Xt;else{const Jt=Ot.lastFocus;De(mn,Ot),Jt===yt.activeElement&&_e(mn,Ot),Ot.lastFocus=yt.activeElement}}})())})(yt,Ve)},!0),Ve.addEventListener("ionBackButton",yt=>{const Ot=pt(Ve);null!=Ot&&Ot.backdropDismiss&&yt.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ot.dismiss(void 0,vn)})}),(0,Oe.shouldUseCloseWatcher)()||Ve.addEventListener("keydown",yt=>{if("Escape"===yt.key){const Ot=pt(Ve);null!=Ot&&Ot.backdropDismiss&&Ot.dismiss(void 0,vn)}}))},Dt=(Ve,yt,Ot,Xt,en)=>{const Ir=pt(Ve,Xt,en);return Ir?Ir.dismiss(yt,Ot):Promise.reject("overlay does not exist")},rn=(Ve,yt)=>((Ve,yt)=>(void 0===yt&&(yt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(Ve.querySelectorAll(yt)).filter(Ot=>Ot.overlayIndex>0)))(Ve,yt).filter(Ot=>!(Ve=>Ve.classList.contains("overlay-hidden"))(Ot)),pt=(Ve,yt,Ot)=>{const Xt=rn(Ve,yt);return void 0===Ot?Xt[Xt.length-1]:Xt.find(en=>en.id===Ot)},ye=(Ve=!1)=>{const Ot=de(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ot&&(Ve?Ot.setAttribute("aria-hidden","true"):Ot.removeAttribute("aria-hidden"))},j=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en,Ir){var gn,mn;if(yt.presented)return;ye(!0),document.body.classList.add(re.B),yn(yt.el),yt.presented=!0,yt.willPresent.emit(),null===(gn=yt.willPresentShorthand)||void 0===gn||gn.emit();const Jt=(0,X.b)(yt),Gt=yt.enterAnimation?yt.enterAnimation:X.c.get(Ot,"ios"===Jt?Xt:en);(yield ae(yt,Gt,yt.el,Ir))&&(yt.didPresent.emit(),null===(mn=yt.didPresentShorthand)||void 0===mn||mn.emit()),"ION-TOAST"!==yt.el.tagName&&W(yt.el),yt.keyboardClose&&(null===document.activeElement||!yt.el.contains(document.activeElement))&&yt.el.focus(),yt.el.removeAttribute("aria-hidden")});return function(Ot,Xt,en,Ir,gn){return Ve.apply(this,arguments)}}(),W=function(){var Ve=(0,g.A)(function*(yt){let Ot=document.activeElement;if(!Ot)return;const Xt=null==Ot?void 0:Ot.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ot),yield yt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ot.focus()});return function(Ot){return Ve.apply(this,arguments)}}(),te=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en,Ir,gn,mn){var Jt,Gt;if(!yt.presented)return!1;void 0!==d.d&&1===rn(d.d).length&&(ye(!1),document.body.classList.remove(re.B)),yt.presented=!1;try{yt.el.style.setProperty("pointer-events","none"),yt.willDismiss.emit({data:Ot,role:Xt}),null===(Jt=yt.willDismissShorthand)||void 0===Jt||Jt.emit({data:Ot,role:Xt});const wr=(0,X.b)(yt),kr=yt.leaveAnimation?yt.leaveAnimation:X.c.get(en,"ios"===wr?Ir:gn);Xt!==bn&&(yield ae(yt,kr,yt.el,mn)),yt.didDismiss.emit({data:Ot,role:Xt}),null===(Gt=yt.didDismissShorthand)||void 0===Gt||Gt.emit({data:Ot,role:Xt}),(Qe.get(yt)||[]).forEach(_r=>_r.destroy()),Qe.delete(yt),yt.el.classList.add("overlay-hidden"),yt.el.style.removeProperty("pointer-events"),void 0!==yt.el.lastFocus&&(yt.el.lastFocus=void 0)}catch(wr){console.error(wr)}return yt.el.remove(),ir(),!0});return function(Ot,Xt,en,Ir,gn,mn,Jt){return Ve.apply(this,arguments)}}(),de=Ve=>Ve.querySelector("ion-app")||Ve.body,ae=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en){Xt.classList.remove("overlay-hidden");const gn=Ot(yt.el,en);(!yt.animated||!X.c.getBoolean("animated",!0))&&gn.duration(0),yt.keyboardClose&&gn.beforeAddWrite(()=>{const Jt=Xt.ownerDocument.activeElement;null!=Jt&&Jt.matches("input,ion-input, ion-textarea")&&Jt.blur()});const mn=Qe.get(yt)||[];return Qe.set(yt,[...mn,gn]),yield gn.play(),!0});return function(Ot,Xt,en,Ir){return Ve.apply(this,arguments)}}(),me=(Ve,yt)=>{let Ot;const Xt=new Promise(en=>Ot=en);return Ce(Ve,yt,en=>{Ot(en.detail)}),Xt},Ce=(Ve,yt,Ot)=>{const Xt=en=>{(0,ge.b)(Ve,yt,Xt),Ot(en)};(0,ge.a)(Ve,yt,Xt)},at=Ve=>"cancel"===Ve||Ve===vn,kt=Ve=>Ve(),Bt=(Ve,yt)=>{if("function"==typeof Ve)return X.c.get("_zoneGate",kt)(()=>{try{return Ve(yt)}catch(Xt){throw Xt}})},vn="backdrop",bn="gesture",$n=39,qn=Ve=>{let Ot,yt=!1;const Xt=(0,Ee.C)(),en=(mn=!1)=>{if(Ot&&!mn)return{delegate:Ot,inline:yt};const{el:Jt,hasController:Gt,delegate:pr}=Ve;return yt=null!==Jt.parentNode&&!Gt,Ot=yt?pr||Xt:pr,{inline:yt,delegate:Ot}};return{attachViewToDom:function(){var mn=(0,g.A)(function*(Jt){const{delegate:Gt}=en(!0);if(Gt)return yield Gt.attachViewToDom(Ve.el,Jt);const{hasController:pr}=Ve;if(pr&&void 0!==Jt)throw new Error("framework delegate is missing");return null});return function(Gt){return mn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:mn}=en();mn&&void 0!==Ve.el&&mn.removeViewFromDom(Ve.el.parentElement,Ve.el)}}},er=()=>{let Ve;const yt=()=>{Ve&&(Ve(),Ve=void 0)};return{addClickListener:(Xt,en)=>{yt();const Ir=void 0!==en?document.getElementById(en):null;Ir?Ve=((mn,Jt)=>{const Gt=()=>{Jt.present()};return mn.addEventListener("click",Gt),()=>{mn.removeEventListener("click",Gt)}})(Ir,Xt):(0,Ze.p)(`A trigger element with the ID "${en}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Xt)},removeClickListener:yt}},yn=Ve=>{var yt;if(void 0===d.d)return;const Ot=rn(d.d);for(let Xt=Ot.length-1;Xt>=0;Xt--){const en=Ot[Xt],Ir=null!==(yt=Ot[Xt+1])&&void 0!==yt?yt:Ve;(Ir.hasAttribute("aria-hidden")||"ION-TOAST"!==Ir.tagName)&&en.setAttribute("aria-hidden","true")}},ir=()=>{if(void 0===d.d)return;const Ve=rn(d.d);for(let yt=Ve.length-1;yt>=0;yt--){const Ot=Ve[yt];if(Ot.removeAttribute("aria-hidden"),"ION-TOAST"!==Ot.tagName)break}},Yn="ion-disable-focus-trap"},63:(En,bt,B)=>{"use strict";var g=B(345),d=B(4438),ge=B(845),Oe=B(3656),X=B(7863),Ee=B(177);function re(ye,j){if(1&ye&&(d.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),d.nrm(2,"ion-icon",7),d.j41(3,"ion-label",8),d.EFF(4),d.k0s()()()),2&ye){const W=j.$implicit;d.R7$(),d.Y8G("routerLink",W.url),d.R7$(),d.Y8G("name",W.icon),d.R7$(2),d.JRh(W.title)}}let Ze=(()=>{var ye;class j{constructor(te,de){this.router=te,this.menuController=de,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"My Team",url:"/myteam",icon:"people"}]}ngOnInit(){this.router.events.subscribe(te=>{te instanceof ge.wF&&(te.urlAfterRedirects.includes("/login")||te.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(ye=j).\u0275fac=function(te){return new(te||ye)(d.rXU(ge.Ix),d.rXU(X._t))},ye.\u0275cmp=d.VBU({type:ye,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(te,de){1&te&&(d.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),d.EFF(6," Menu "),d.k0s()()(),d.j41(7,"ion-content")(8,"ion-list",2),d.DNE(9,re,5,3,"ion-menu-toggle",3),d.k0s()()(),d.nrm(10,"ion-router-outlet",4),d.k0s()()),2&te&&(d.R7$(9),d.Y8G("ngForOf",de.menuItems))},dependencies:[Ee.Sq,X.U1,X.W9,X.eU,X.iq,X.uz,X.he,X.nf,X.oS,X.cA,X.HP,X.BC,X.ai,X.Rg,X.N7,ge.Wk]}),j})();var Je=B(9842),De=B(8737),_e=B(1203),Fe=B(6354),$e=B(6697);B(2214);const Qe=(0,Fe.T)(ye=>!!ye);let ft=(()=>{var ye;class j{constructor(te,de){(0,Je.A)(this,"router",void 0),(0,Je.A)(this,"auth",void 0),(0,Je.A)(this,"canActivate",(ae,me)=>{const Ce=ae.data.authGuardPipe||(()=>Qe);return(0,De.kQ)(this.auth).pipe((0,$e.s)(1),Ce(ae,me),(0,Fe.T)(at=>"boolean"==typeof at?at:Array.isArray(at)?this.router.createUrlTree(at):this.router.parseUrl(at)))}),this.router=te,this.auth=de}}return ye=j,(0,Je.A)(j,"\u0275fac",function(te){return new(te||ye)(d.KVO(ge.Ix),d.KVO(De.Nj))}),(0,Je.A)(j,"\u0275prov",d.jDH({token:ye,factory:ye.\u0275fac,providedIn:"any"})),j})();const ut=ye=>({canActivate:[ft],data:{authGuardPipe:ye}}),xt=()=>{return ye=[""],(0,_e.F)(Qe,(0,Fe.T)(j=>j||ye));var ye},ze=()=>{return ye=["home"],(0,_e.F)(Qe,(0,Fe.T)(j=>j&&ye||!0));var ye},Tt=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([B.e(2076),B.e(3118)]).then(B.bind(B,3118)).then(ye=>ye.HomePageModule),...ut(xt)},{path:"register",loadChildren:()=>Promise.all([B.e(2076),B.e(3825)]).then(B.bind(B,3825)).then(ye=>ye.RegisterPageModule),...ut(ze)},{path:"login",loadChildren:()=>Promise.all([B.e(2076),B.e(6688)]).then(B.bind(B,6688)).then(ye=>ye.LoginPageModule),...ut(ze)},{path:"myteam",loadChildren:()=>Promise.all([B.e(2076),B.e(839)]).then(B.bind(B,839)).then(ye=>ye.MyteamPageModule),...ut(xt)},{path:"model-product",loadChildren:()=>Promise.all([B.e(2076),B.e(3998)]).then(B.bind(B,3998)).then(ye=>ye.ModelProductPageModule),...ut(xt)},{path:"new-product",loadChildren:()=>Promise.all([B.e(2076),B.e(7444)]).then(B.bind(B,7444)).then(ye=>ye.NewProductPageModule),...ut(xt)},{path:"view-product",loadChildren:()=>Promise.all([B.e(2076),B.e(6927)]).then(B.bind(B,6927)).then(ye=>ye.ViewProductPageModule)}];let Vt=(()=>{var ye;class j{}return(ye=j).\u0275fac=function(te){return new(te||ye)},ye.\u0275mod=d.$C({type:ye}),ye.\u0275inj=d.G2t({imports:[ge.iI.forRoot(Tt,{preloadingStrategy:ge.Kp}),ge.iI]}),j})();var Zt=B(7440),Dt=B(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"};let rn=(()=>{var ye;class j{}return(ye=j).\u0275fac=function(te){return new(te||ye)},ye.\u0275mod=d.$C({type:ye,bootstrap:[Ze]}),ye.\u0275inj=d.G2t({providers:[{provide:ge.b,useClass:Oe.jM},(0,Zt.MW)(()=>(0,Zt.Wp)(Be_firebase)),(0,Dt.hV)(()=>(0,Dt.aU)()),(0,De._q)(()=>(0,De.xI)())],imports:[g.Bb,X.bv.forRoot(),Vt]}),j})();(0,d.SmG)(),g.sG().bootstrapModule(rn).catch(ye=>console.log(ye))},4412:(En,bt,B)=>{"use strict";B.d(bt,{t:()=>d});var g=B(1413);class d extends g.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const X=super._subscribe(Oe);return!X.closed&&Oe.next(this._value),X}getValue(){const{hasError:Oe,thrownError:X,_value:Ee}=this;if(Oe)throw X;return this._throwIfClosed(),Ee}next(Oe){super.next(this._value=Oe)}}},1985:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ze});var g=B(7707),d=B(8359),ge=B(3494),Oe=B(1203),X=B(1026),Ee=B(8071),re=B(9786);let Ze=(()=>{class Fe{constructor(Le){Le&&(this._subscribe=Le)}lift(Le){const Qe=new Fe;return Qe.source=this,Qe.operator=Le,Qe}subscribe(Le,Qe,ft){const ut=function _e(Fe){return Fe&&Fe instanceof g.vU||function De(Fe){return Fe&&(0,Ee.T)(Fe.next)&&(0,Ee.T)(Fe.error)&&(0,Ee.T)(Fe.complete)}(Fe)&&(0,d.Uv)(Fe)}(Le)?Le:new g.Ms(Le,Qe,ft);return(0,re.Y)(()=>{const{operator:st,source:Mt}=this;ut.add(st?st.call(ut,Mt):Mt?this._subscribe(ut):this._trySubscribe(ut))}),ut}_trySubscribe(Le){try{return this._subscribe(Le)}catch(Qe){Le.error(Qe)}}forEach(Le,Qe){return new(Qe=Je(Qe))((ft,ut)=>{const st=new g.Ms({next:Mt=>{try{Le(Mt)}catch(mt){ut(mt),st.unsubscribe()}},error:ut,complete:ft});this.subscribe(st)})}_subscribe(Le){var Qe;return null===(Qe=this.source)||void 0===Qe?void 0:Qe.subscribe(Le)}[ge.s](){return this}pipe(...Le){return(0,Oe.m)(Le)(this)}toPromise(Le){return new(Le=Je(Le))((Qe,ft)=>{let ut;this.subscribe(st=>ut=st,st=>ft(st),()=>Qe(ut))})}}return Fe.create=$e=>new Fe($e),Fe})();function Je(Fe){var $e;return null!==($e=null!=Fe?Fe:X.$.Promise)&&void 0!==$e?$e:Promise}},1413:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>re});var g=B(1985),d=B(8359);const Oe=(0,B(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=B(7908),Ee=B(9786);let re=(()=>{class Je extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_e){const Fe=new Ze(this,this);return Fe.operator=_e,Fe}_throwIfClosed(){if(this.closed)throw new Oe}next(_e){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Fe of this.currentObservers)Fe.next(_e)}})}error(_e){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_e;const{observers:Fe}=this;for(;Fe.length;)Fe.shift().error(_e)}})}complete(){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_e}=this;for(;_e.length;)_e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _e;return(null===(_e=this.observers)||void 0===_e?void 0:_e.length)>0}_trySubscribe(_e){return this._throwIfClosed(),super._trySubscribe(_e)}_subscribe(_e){return this._throwIfClosed(),this._checkFinalizedStatuses(_e),this._innerSubscribe(_e)}_innerSubscribe(_e){const{hasError:Fe,isStopped:$e,observers:Le}=this;return Fe||$e?d.Kn:(this.currentObservers=null,Le.push(_e),new d.yU(()=>{this.currentObservers=null,(0,X.o)(Le,_e)}))}_checkFinalizedStatuses(_e){const{hasError:Fe,thrownError:$e,isStopped:Le}=this;Fe?_e.error($e):Le&&_e.complete()}asObservable(){const _e=new g.c;return _e.source=this,_e}}return Je.create=(De,_e)=>new Ze(De,_e),Je})();class Ze extends re{constructor(De,_e){super(),this.destination=De,this.source=_e}next(De){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.next)||void 0===Fe||Fe.call(_e,De)}error(De){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.error)||void 0===Fe||Fe.call(_e,De)}complete(){var De,_e;null===(_e=null===(De=this.destination)||void 0===De?void 0:De.complete)||void 0===_e||_e.call(De)}_subscribe(De){var _e,Fe;return null!==(Fe=null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(De))&&void 0!==Fe?Fe:d.Kn}}},7707:(En,bt,B)=>{"use strict";B.d(bt,{Ms:()=>ft,vU:()=>Fe});var g=B(8071),d=B(8359),ge=B(1026),Oe=B(5334),X=B(5343);const Ee=Je("C",void 0,void 0);function Je(vt,Me,je){return{kind:vt,value:Me,error:je}}var De=B(9270),_e=B(9786);class Fe extends d.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,d.Uv)(Me)&&Me.add(this)):this.destination=mt}static create(Me,je,Ke){return new ft(Me,je,Ke)}next(Me){this.isStopped?Mt(function Ze(vt){return Je("N",vt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?Mt(function re(vt){return Je("E",void 0,vt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?Mt(Ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const $e=Function.prototype.bind;function Le(vt,Me){return $e.call(vt,Me)}class Qe{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:je}=this;if(je.next)try{je.next(Me)}catch(Ke){ut(Ke)}}error(Me){const{partialObserver:je}=this;if(je.error)try{je.error(Me)}catch(Ke){ut(Ke)}else ut(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(je){ut(je)}}}class ft extends Fe{constructor(Me,je,Ke){let Ct;if(super(),(0,g.T)(Me)||!Me)Ct={next:null!=Me?Me:void 0,error:null!=je?je:void 0,complete:null!=Ke?Ke:void 0};else{let xt;this&&ge.$.useDeprecatedNextContext?(xt=Object.create(Me),xt.unsubscribe=()=>this.unsubscribe(),Ct={next:Me.next&&Le(Me.next,xt),error:Me.error&&Le(Me.error,xt),complete:Me.complete&&Le(Me.complete,xt)}):Ct=Me}this.destination=new Qe(Ct)}}function ut(vt){ge.$.useDeprecatedSynchronousErrorHandling?(0,_e.l)(vt):(0,Oe.m)(vt)}function Mt(vt,Me){const{onStoppedNotification:je}=ge.$;je&&De.f.setTimeout(()=>je(vt,Me))}const mt={closed:!0,next:X.l,error:function st(vt){throw vt},complete:X.l}},8359:(En,bt,B)=>{"use strict";B.d(bt,{Kn:()=>Ee,yU:()=>X,Uv:()=>re});var g=B(8071);const ge=(0,B(1853).L)(Je=>function(_e){Je(this),this.message=_e?`${_e.length} errors occurred during unsubscription:\n${_e.map((Fe,$e)=>`${$e+1}) ${Fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_e});var Oe=B(7908);class X{constructor(De){this.initialTeardown=De,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let De;if(!this.closed){this.closed=!0;const{_parentage:_e}=this;if(_e)if(this._parentage=null,Array.isArray(_e))for(const Le of _e)Le.remove(this);else _e.remove(this);const{initialTeardown:Fe}=this;if((0,g.T)(Fe))try{Fe()}catch(Le){De=Le instanceof ge?Le.errors:[Le]}const{_finalizers:$e}=this;if($e){this._finalizers=null;for(const Le of $e)try{Ze(Le)}catch(Qe){De=null!=De?De:[],Qe instanceof ge?De=[...De,...Qe.errors]:De.push(Qe)}}if(De)throw new ge(De)}}add(De){var _e;if(De&&De!==this)if(this.closed)Ze(De);else{if(De instanceof X){if(De.closed||De._hasParent(this))return;De._addParent(this)}(this._finalizers=null!==(_e=this._finalizers)&&void 0!==_e?_e:[]).push(De)}}_hasParent(De){const{_parentage:_e}=this;return _e===De||Array.isArray(_e)&&_e.includes(De)}_addParent(De){const{_parentage:_e}=this;this._parentage=Array.isArray(_e)?(_e.push(De),_e):_e?[_e,De]:De}_removeParent(De){const{_parentage:_e}=this;_e===De?this._parentage=null:Array.isArray(_e)&&(0,Oe.o)(_e,De)}remove(De){const{_finalizers:_e}=this;_e&&(0,Oe.o)(_e,De),De instanceof X&&De._removeParent(this)}}X.EMPTY=(()=>{const Je=new X;return Je.closed=!0,Je})();const Ee=X.EMPTY;function re(Je){return Je instanceof X||Je&&"closed"in Je&&(0,g.T)(Je.remove)&&(0,g.T)(Je.add)&&(0,g.T)(Je.unsubscribe)}function Ze(Je){(0,g.T)(Je)?Je():Je.unsubscribe()}},1026:(En,bt,B)=>{"use strict";B.d(bt,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(En,bt,B)=>{"use strict";B.d(bt,{z:()=>De});var g=B(1985),d=B(3073),ge=B(8455),Oe=B(3669),X=B(6450),Ee=B(3794),re=B(8496),Ze=B(4360),Je=B(5225);function De(...$e){const Le=(0,Ee.lI)($e),Qe=(0,Ee.ms)($e),{args:ft,keys:ut}=(0,d.D)($e);if(0===ft.length)return(0,ge.H)([],Le);const st=new g.c(function _e($e,Le,Qe=Oe.D){return ft=>{Fe(Le,()=>{const{length:ut}=$e,st=new Array(ut);let Mt=ut,mt=ut;for(let vt=0;vt{const Me=(0,ge.H)($e[vt],Le);let je=!1;Me.subscribe((0,Ze._)(ft,Ke=>{st[vt]=Ke,je||(je=!0,mt--),mt||ft.next(Qe(st.slice()))},()=>{--Mt||ft.complete()}))},ft)},ft)}}(ft,Le,ut?Mt=>(0,re.e)(ut,Mt):Oe.D));return Qe?st.pipe((0,X.I)(Qe)):st}function Fe($e,Le,Qe){$e?(0,Je.N)(Qe,$e,Le):Le()}},983:(En,bt,B)=>{"use strict";B.d(bt,{w:()=>d});const d=new(B(1985).c)(X=>X.complete())},8455:(En,bt,B)=>{"use strict";B.d(bt,{H:()=>Me});var g=B(8750),d=B(941),ge=B(6745),Ee=B(1985),Ze=B(4761),Je=B(8071),De=B(5225);function Fe(je,Ke){if(!je)throw new Error("Iterable cannot be null");return new Ee.c(Ct=>{(0,De.N)(Ct,Ke,()=>{const xt=je[Symbol.asyncIterator]();(0,De.N)(Ct,Ke,()=>{xt.next().then(ze=>{ze.done?Ct.complete():Ct.next(ze.value)})},0,!0)})})}var $e=B(5055),Le=B(9858),Qe=B(7441),ft=B(5397),ut=B(7953),st=B(591),Mt=B(5196);function Me(je,Ke){return Ke?function vt(je,Ke){if(null!=je){if((0,$e.l)(je))return function Oe(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,Qe.X)(je))return function re(je,Ke){return new Ee.c(Ct=>{let xt=0;return Ke.schedule(function(){xt===je.length?Ct.complete():(Ct.next(je[xt++]),Ct.closed||this.schedule())})})}(je,Ke);if((0,Le.y)(je))return function X(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,ut.T)(je))return Fe(je,Ke);if((0,ft.x)(je))return function _e(je,Ke){return new Ee.c(Ct=>{let xt;return(0,De.N)(Ct,Ke,()=>{xt=je[Ze.l](),(0,De.N)(Ct,Ke,()=>{let ze,Tt;try{({value:ze,done:Tt}=xt.next())}catch(Vt){return void Ct.error(Vt)}Tt?Ct.complete():Ct.next(ze)},0,!0)}),()=>(0,Je.T)(null==xt?void 0:xt.return)&&xt.return()})}(je,Ke);if((0,Mt.U)(je))return function mt(je,Ke){return Fe((0,Mt.C)(je),Ke)}(je,Ke)}throw(0,st.L)(je)}(je,Ke):(0,g.Tg)(je)}},3726:(En,bt,B)=>{"use strict";B.d(bt,{R:()=>De});var g=B(8750),d=B(1985),ge=B(1397),Oe=B(7441),X=B(8071),Ee=B(6450);const re=["addListener","removeListener"],Ze=["addEventListener","removeEventListener"],Je=["on","off"];function De(Qe,ft,ut,st){if((0,X.T)(ut)&&(st=ut,ut=void 0),st)return De(Qe,ft,ut).pipe((0,Ee.I)(st));const[Mt,mt]=function Le(Qe){return(0,X.T)(Qe.addEventListener)&&(0,X.T)(Qe.removeEventListener)}(Qe)?Ze.map(vt=>Me=>Qe[vt](ft,Me,ut)):function Fe(Qe){return(0,X.T)(Qe.addListener)&&(0,X.T)(Qe.removeListener)}(Qe)?re.map(_e(Qe,ft)):function $e(Qe){return(0,X.T)(Qe.on)&&(0,X.T)(Qe.off)}(Qe)?Je.map(_e(Qe,ft)):[];if(!Mt&&(0,Oe.X)(Qe))return(0,ge.Z)(vt=>De(vt,ft,ut))((0,g.Tg)(Qe));if(!Mt)throw new TypeError("Invalid event target");return new d.c(vt=>{const Me=(...je)=>vt.next(1mt(Me)})}function _e(Qe,ft){return ut=>st=>Qe[ut](ft,st)}},8750:(En,bt,B)=>{"use strict";B.d(bt,{Tg:()=>$e});var g=B(1635),d=B(7441),ge=B(9858),Oe=B(1985),X=B(5055),Ee=B(7953),re=B(591),Ze=B(5397),Je=B(5196),De=B(8071),_e=B(5334),Fe=B(3494);function $e(vt){if(vt instanceof Oe.c)return vt;if(null!=vt){if((0,X.l)(vt))return function Le(vt){return new Oe.c(Me=>{const je=vt[Fe.s]();if((0,De.T)(je.subscribe))return je.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(vt);if((0,d.X)(vt))return function Qe(vt){return new Oe.c(Me=>{for(let je=0;je{vt.then(je=>{Me.closed||(Me.next(je),Me.complete())},je=>Me.error(je)).then(null,_e.m)})}(vt);if((0,Ee.T)(vt))return st(vt);if((0,Ze.x)(vt))return function ut(vt){return new Oe.c(Me=>{for(const je of vt)if(Me.next(je),Me.closed)return;Me.complete()})}(vt);if((0,Je.U)(vt))return function Mt(vt){return st((0,Je.C)(vt))}(vt)}throw(0,re.L)(vt)}function st(vt){return new Oe.c(Me=>{(function mt(vt,Me){var je,Ke,Ct,xt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(je=(0,g.xN)(vt);!(Ke=yield je.next()).done;)if(Me.next(Ke.value),Me.closed)return}catch(ze){Ct={error:ze}}finally{try{Ke&&!Ke.done&&(xt=je.return)&&(yield xt.call(je))}finally{if(Ct)throw Ct.error}}Me.complete()})})(vt,Me).catch(je=>Me.error(je))})}},7673:(En,bt,B)=>{"use strict";B.d(bt,{of:()=>ge});var g=B(3794),d=B(8455);function ge(...Oe){const X=(0,g.lI)(Oe);return(0,d.H)(Oe,X)}},4360:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(7707);function d(Oe,X,Ee,re,Ze){return new ge(Oe,X,Ee,re,Ze)}class ge extends g.vU{constructor(X,Ee,re,Ze,Je,De){super(X),this.onFinalize=Je,this.shouldUnsubscribe=De,this._next=Ee?function(_e){try{Ee(_e)}catch(Fe){X.error(Fe)}}:super._next,this._error=Ze?function(_e){try{Ze(_e)}catch(Fe){X.error(Fe)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(_e){X.error(_e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var X;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ee}=this;super.unsubscribe(),!Ee&&(null===(X=this.onFinalize)||void 0===X||X.call(this))}}}},5964:(En,bt,B)=>{"use strict";B.d(bt,{p:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,X){return(0,g.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,d._)(re,Je=>Oe.call(X,Je,Ze++)&&re.next(Je)))})}},6354:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,X){return(0,g.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,d._)(re,Je=>{re.next(Oe.call(X,Je,Ze++))}))})}},1397:(En,bt,B)=>{"use strict";B.d(bt,{Z:()=>Ze});var g=B(6354),d=B(8750),ge=B(9974),Oe=B(5225),X=B(4360),re=B(8071);function Ze(Je,De,_e=1/0){return(0,re.T)(De)?Ze((Fe,$e)=>(0,g.T)((Le,Qe)=>De(Fe,Le,$e,Qe))((0,d.Tg)(Je(Fe,$e))),_e):("number"==typeof De&&(_e=De),(0,ge.N)((Fe,$e)=>function Ee(Je,De,_e,Fe,$e,Le,Qe,ft){const ut=[];let st=0,Mt=0,mt=!1;const vt=()=>{mt&&!ut.length&&!st&&De.complete()},Me=Ke=>st{Le&&De.next(Ke),st++;let Ct=!1;(0,d.Tg)(_e(Ke,Mt++)).subscribe((0,X._)(De,xt=>{null==$e||$e(xt),Le?Me(xt):De.next(xt)},()=>{Ct=!0},void 0,()=>{if(Ct)try{for(st--;ut.length&&stje(xt)):je(xt)}vt()}catch(xt){De.error(xt)}}))};return Je.subscribe((0,X._)(De,Me,()=>{mt=!0,vt()})),()=>{null==ft||ft()}}(Fe,$e,Je,_e)))}},941:(En,bt,B)=>{"use strict";B.d(bt,{Q:()=>Oe});var g=B(5225),d=B(9974),ge=B(4360);function Oe(X,Ee=0){return(0,d.N)((re,Ze)=>{re.subscribe((0,ge._)(Ze,Je=>(0,g.N)(Ze,X,()=>Ze.next(Je),Ee),()=>(0,g.N)(Ze,X,()=>Ze.complete(),Ee),Je=>(0,g.N)(Ze,X,()=>Ze.error(Je),Ee)))})}},6745:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(9974);function d(ge,Oe=0){return(0,g.N)((X,Ee)=>{Ee.add(ge.schedule(()=>X.subscribe(Ee),Oe))})}},5558:(En,bt,B)=>{"use strict";B.d(bt,{n:()=>Oe});var g=B(8750),d=B(9974),ge=B(4360);function Oe(X,Ee){return(0,d.N)((re,Ze)=>{let Je=null,De=0,_e=!1;const Fe=()=>_e&&!Je&&Ze.complete();re.subscribe((0,ge._)(Ze,$e=>{null==Je||Je.unsubscribe();let Le=0;const Qe=De++;(0,g.Tg)(X($e,Qe)).subscribe(Je=(0,ge._)(Ze,ft=>Ze.next(Ee?Ee($e,ft,Qe,Le++):ft),()=>{Je=null,Fe()}))},()=>{_e=!0,Fe()}))})}},6697:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>Oe});var g=B(983),d=B(9974),ge=B(4360);function Oe(X){return X<=0?()=>g.w:(0,d.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,ge._)(re,Je=>{++Ze<=X&&(re.next(Je),X<=Ze&&re.complete())}))})}},8141:(En,bt,B)=>{"use strict";B.d(bt,{M:()=>X});var g=B(8071),d=B(9974),ge=B(4360),Oe=B(3669);function X(Ee,re,Ze){const Je=(0,g.T)(Ee)||re||Ze?{next:Ee,error:re,complete:Ze}:Ee;return Je?(0,d.N)((De,_e)=>{var Fe;null===(Fe=Je.subscribe)||void 0===Fe||Fe.call(Je);let $e=!0;De.subscribe((0,ge._)(_e,Le=>{var Qe;null===(Qe=Je.next)||void 0===Qe||Qe.call(Je,Le),_e.next(Le)},()=>{var Le;$e=!1,null===(Le=Je.complete)||void 0===Le||Le.call(Je),_e.complete()},Le=>{var Qe;$e=!1,null===(Qe=Je.error)||void 0===Qe||Qe.call(Je,Le),_e.error(Le)},()=>{var Le,Qe;$e&&(null===(Le=Je.unsubscribe)||void 0===Le||Le.call(Je)),null===(Qe=Je.finalize)||void 0===Qe||Qe.call(Je)}))}):Oe.D}},9270:(En,bt,B)=>{"use strict";B.d(bt,{f:()=>g});const g={setTimeout(d,ge,...Oe){const{delegate:X}=g;return null!=X&&X.setTimeout?X.setTimeout(d,ge,...Oe):setTimeout(d,ge,...Oe)},clearTimeout(d){const{delegate:ge}=g;return((null==ge?void 0:ge.clearTimeout)||clearTimeout)(d)},delegate:void 0}},4761:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>d});const d=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},3794:(En,bt,B)=>{"use strict";B.d(bt,{ms:()=>Oe,lI:()=>X});var g=B(8071);function ge(re){return re[re.length-1]}function Oe(re){return(0,g.T)(ge(re))?re.pop():void 0}function X(re){return function d(re){return re&&(0,g.T)(re.schedule)}(ge(re))?re.pop():void 0}},3073:(En,bt,B)=>{"use strict";B.d(bt,{D:()=>X});const{isArray:g}=Array,{getPrototypeOf:d,prototype:ge,keys:Oe}=Object;function X(re){if(1===re.length){const Ze=re[0];if(g(Ze))return{args:Ze,keys:null};if(function Ee(re){return re&&"object"==typeof re&&d(re)===ge}(Ze)){const Je=Oe(Ze);return{args:Je.map(De=>Ze[De]),keys:Je}}}return{args:re,keys:null}}},7908:(En,bt,B)=>{"use strict";function g(d,ge){if(d){const Oe=d.indexOf(ge);0<=Oe&&d.splice(Oe,1)}}B.d(bt,{o:()=>g})},1853:(En,bt,B)=>{"use strict";function g(d){const Oe=d(X=>{Error.call(X),X.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}B.d(bt,{L:()=>g})},8496:(En,bt,B)=>{"use strict";function g(d,ge){return d.reduce((Oe,X,Ee)=>(Oe[X]=ge[Ee],Oe),{})}B.d(bt,{e:()=>g})},9786:(En,bt,B)=>{"use strict";B.d(bt,{Y:()=>ge,l:()=>Oe});var g=B(1026);let d=null;function ge(X){if(g.$.useDeprecatedSynchronousErrorHandling){const Ee=!d;if(Ee&&(d={errorThrown:!1,error:null}),X(),Ee){const{errorThrown:re,error:Ze}=d;if(d=null,re)throw Ze}}else X()}function Oe(X){g.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=X)}},5225:(En,bt,B)=>{"use strict";function g(d,ge,Oe,X=0,Ee=!1){const re=ge.schedule(function(){Oe(),Ee?d.add(this.schedule(null,X)):this.unsubscribe()},X);if(d.add(re),!Ee)return re}B.d(bt,{N:()=>g})},3669:(En,bt,B)=>{"use strict";function g(d){return d}B.d(bt,{D:()=>g})},7441:(En,bt,B)=>{"use strict";B.d(bt,{X:()=>g});const g=d=>d&&"number"==typeof d.length&&"function"!=typeof d},7953:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>d});var g=B(8071);function d(ge){return Symbol.asyncIterator&&(0,g.T)(null==ge?void 0:ge[Symbol.asyncIterator])}},8071:(En,bt,B)=>{"use strict";function g(d){return"function"==typeof d}B.d(bt,{T:()=>g})},5055:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>ge});var g=B(3494),d=B(8071);function ge(Oe){return(0,d.T)(Oe[g.s])}},5397:(En,bt,B)=>{"use strict";B.d(bt,{x:()=>ge});var g=B(4761),d=B(8071);function ge(Oe){return(0,d.T)(null==Oe?void 0:Oe[g.l])}},9858:(En,bt,B)=>{"use strict";B.d(bt,{y:()=>d});var g=B(8071);function d(ge){return(0,g.T)(null==ge?void 0:ge.then)}},5196:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>ge,U:()=>Oe});var g=B(1635),d=B(8071);function ge(X){return(0,g.AQ)(this,arguments,function*(){const re=X.getReader();try{for(;;){const{value:Ze,done:Je}=yield(0,g.N3)(re.read());if(Je)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Ze)}}finally{re.releaseLock()}})}function Oe(X){return(0,d.T)(null==X?void 0:X.getReader)}},9974:(En,bt,B)=>{"use strict";B.d(bt,{N:()=>ge,S:()=>d});var g=B(8071);function d(Oe){return(0,g.T)(null==Oe?void 0:Oe.lift)}function ge(Oe){return X=>{if(d(X))return X.lift(function(Ee){try{return Oe(Ee,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(En,bt,B)=>{"use strict";B.d(bt,{I:()=>Oe});var g=B(6354);const{isArray:d}=Array;function Oe(X){return(0,g.T)(Ee=>function ge(X,Ee){return d(Ee)?X(...Ee):X(Ee)}(X,Ee))}},5343:(En,bt,B)=>{"use strict";function g(){}B.d(bt,{l:()=>g})},1203:(En,bt,B)=>{"use strict";B.d(bt,{F:()=>d,m:()=>ge});var g=B(3669);function d(...Oe){return ge(Oe)}function ge(Oe){return 0===Oe.length?g.D:1===Oe.length?Oe[0]:function(Ee){return Oe.reduce((re,Ze)=>Ze(re),Ee)}}},5334:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>ge});var g=B(1026),d=B(9270);function ge(Oe){d.f.setTimeout(()=>{const{onUnhandledError:X}=g.$;if(!X)throw Oe;X(Oe)})}},591:(En,bt,B)=>{"use strict";function g(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}B.d(bt,{L:()=>g})},8996:(En,bt,B)=>{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 d(ge){if(!B.o(g,ge))return Promise.resolve().then(()=>{var Ee=new Error("Cannot find module '"+ge+"'");throw Ee.code="MODULE_NOT_FOUND",Ee});var Oe=g[ge],X=Oe[0];return Promise.all(Oe.slice(1).map(B.e)).then(()=>B(X))}d.keys=()=>Object.keys(g),d.id=8996,En.exports=d},177:(En,bt,B)=>{"use strict";B.d(bt,{AJ:()=>Lt,MD:()=>et,N0:()=>ci,QT:()=>ge,Sm:()=>ft,Sq:()=>cn,T3:()=>kn,VF:()=>X,Vy:()=>Cn,Xr:()=>cr,ZD:()=>Oe,_b:()=>Y,aZ:()=>st,bT:()=>Hn,fw:()=>ut,hb:()=>Le,hj:()=>Je,qQ:()=>re});var g=B(4438);let d=null;function ge(){return d}function Oe(D){var V;null!==(V=d)&&void 0!==V||(d=D)}class X{}const re=new g.nKC("");let Ze=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(De),providedIn:"platform"}),V})();const Je=new g.nKC("");let De=(()=>{var D;class V extends Ze{constructor(){super(),this._doc=(0,g.WQX)(re),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ge().getBaseHref(this._doc)}onPopState(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",O,!1),()=>le.removeEventListener("popstate",O)}onHashChange(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",O,!1),()=>le.removeEventListener("hashchange",O)}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(O){this._location.pathname=O}pushState(O,le,xe){this._history.pushState(O,le,xe)}replaceState(O,le,xe){this._history.replaceState(O,le,xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>new D,providedIn:"platform"}),V})();function _e(D,V){if(0==D.length)return V;if(0==V.length)return D;let be=0;return D.endsWith("/")&&be++,V.startsWith("/")&&be++,2==be?D+V.substring(1):1==be?D+V:D+"/"+V}function Fe(D){const V=D.match(/#|\?|$/),be=V&&V.index||D.length;return D.slice(0,be-("/"===D[be-1]?1:0))+D.slice(be)}function $e(D){return D&&"?"!==D[0]?"?"+D:D}let Le=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(ft),providedIn:"root"}),V})();const Qe=new g.nKC("");let ft=(()=>{var D;class V extends Le{constructor(O,le){var xe,Ft,an;super(),this._platformLocation=O,this._removeListenerFns=[],this._baseHref=null!==(xe=null!==(Ft=null!=le?le:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ft?Ft:null===(an=(0,g.WQX)(re).location)||void 0===an?void 0:an.origin)&&void 0!==xe?xe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return _e(this._baseHref,O)}path(O=!1){const le=this._platformLocation.pathname+$e(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&O?`${le}${xe}`:le}pushState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),V})(),ut=(()=>{var D;class V extends Le{constructor(O,le){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){var le;const xe=null!==(le=this._platformLocation.hash)&&void 0!==le?le:"#";return xe.length>0?xe.substring(1):xe}prepareExternalUrl(O){const le=_e(this._baseHref,O);return le.length>0?"#"+le:le}pushState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac}),V})(),st=(()=>{var D;class V{constructor(O){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=O;const le=this._locationStrategy.getBaseHref();this._basePath=function Me(D){if(new RegExp("^(https?:)?//").test(D)){const[,be]=D.split(/\/\/[^\/]+/);return be}return D}(Fe(vt(le))),this._locationStrategy.onPopState(xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:xe.state,type:xe.type})})}ngOnDestroy(){var O;null===(O=this._urlChangeSubscription)||void 0===O||O.unsubscribe(),this._urlChangeListeners=[]}path(O=!1){return this.normalize(this._locationStrategy.path(O))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(O,le=""){return this.path()==this.normalize(O+$e(le))}normalize(O){return V.stripTrailingSlash(function mt(D,V){if(!D||!V.startsWith(D))return V;const be=V.substring(D.length);return""===be||["/",";","?","#"].includes(be[0])?be:V}(this._basePath,vt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._locationStrategy.prepareExternalUrl(O)}go(O,le="",xe=null){this._locationStrategy.pushState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}replaceState(O,le="",xe=null){this._locationStrategy.replaceState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(O=0){var le,xe;null===(le=(xe=this._locationStrategy).historyGo)||void 0===le||le.call(xe,O)}onUrlChange(O){var le;return this._urlChangeListeners.push(O),null!==(le=this._urlChangeSubscription)&&void 0!==le||(this._urlChangeSubscription=this.subscribe(xe=>{this._notifyUrlChangeListeners(xe.url,xe.state)})),()=>{const xe=this._urlChangeListeners.indexOf(O);var Ft;this._urlChangeListeners.splice(xe,1),0===this._urlChangeListeners.length&&(null===(Ft=this._urlChangeSubscription)||void 0===Ft||Ft.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(O="",le){this._urlChangeListeners.forEach(xe=>xe(O,le))}subscribe(O,le,xe){return this._subject.subscribe({next:O,error:le,complete:xe})}}return(D=V).normalizeQueryParams=$e,D.joinWithSlash=_e,D.stripTrailingSlash=Fe,D.\u0275fac=function(O){return new(O||D)(g.KVO(Le))},D.\u0275prov=g.jDH({token:D,factory:()=>function Mt(){return new st((0,g.KVO)(Le))}(),providedIn:"root"}),V})();function vt(D){return D.replace(/\/index.html$/,"")}function Y(D,V){V=encodeURIComponent(V);for(const be of D.split(";")){const O=be.indexOf("="),[le,xe]=-1==O?[be,""]:[be.slice(0,O),be.slice(O+1)];if(le.trim()===V)return decodeURIComponent(xe)}return null}class Wt{constructor(V,be,O,le){this.$implicit=V,this.ngForOf=be,this.index=O,this.count=le}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 cn=(()=>{var D;class V{set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}constructor(O,le,xe){this._viewContainer=O,this._template=le,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const le=this._viewContainer;O.forEachOperation((xe,Ft,an)=>{if(null==xe.previousIndex)le.createEmbeddedView(this._template,new Wt(xe.item,this._ngForOf,-1,-1),null===an?void 0:an);else if(null==an)le.remove(null===Ft?void 0:Ft);else if(null!==Ft){const Un=le.get(Ft);le.move(Un,an),Pn(Un,xe)}});for(let xe=0,Ft=le.length;xe{Pn(le.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),V})();function Pn(D,V){D.context.$implicit=V.item}let Hn=(()=>{var D;class V{constructor(O,le){this._viewContainer=O,this._context=new $i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ai("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ai("ngIfElse",O),this._elseTemplateRef=O,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(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class $i{constructor(){this.$implicit=null,this.ngIf=null}}function Ai(D,V){if(V&&!V.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,g.Tbb)(V)}'.`)}let kn=(()=>{var D;class V{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(O){if(this._shouldRecreateView(O)){var le;const xe=this._viewContainerRef;if(this._viewRef&&xe.remove(xe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ft=this._createContextForwardProxy();this._viewRef=xe.createEmbeddedView(this.ngTemplateOutlet,Ft,{injector:null!==(le=this.ngTemplateOutletInjector)&&void 0!==le?le:void 0})}}_shouldRecreateView(O){return!!O.ngTemplateOutlet||!!O.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(O,le,xe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,le,xe),get:(O,le,xe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,le,xe)}})}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),V})(),et=(()=>{var D;class V{}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275mod=g.$C({type:D}),D.\u0275inj=g.G2t({}),V})();const Lt="browser",zt="server";function Cn(D){return D===zt}let cr=(()=>{var D;class V{}return(D=V).\u0275prov=(0,g.jDH)({token:D,providedIn:"root",factory:()=>function _n(D){return D===Lt}((0,g.WQX)(g.Agw))?new nr((0,g.WQX)(re),window):new vi}),V})();class nr{constructor(V,be){this.document=V,this.window=be,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(V){this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){const be=function li(D,V){const be=D.getElementById(V)||D.getElementsByName(V)[0];if(be)return be;if("function"==typeof D.createTreeWalker&&D.body&&"function"==typeof D.body.attachShadow){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let le=O.currentNode;for(;le;){const xe=le.shadowRoot;if(xe){const Ft=xe.getElementById(V)||xe.querySelector(`[name="${V}"]`);if(Ft)return Ft}le=O.nextNode()}}return null}(this.document,V);be&&(this.scrollToElement(be),be.focus())}setHistoryScrollRestoration(V){this.window.history.scrollRestoration=V}scrollToElement(V){const be=V.getBoundingClientRect(),O=be.left+this.window.pageXOffset,le=be.top+this.window.pageYOffset,xe=this.offset();this.window.scrollTo(O-xe[0],le-xe[1])}}class vi{setOffset(V){}getScrollPosition(){return[0,0]}scrollToPosition(V){}scrollToAnchor(V){}setHistoryScrollRestoration(V){}}class ci{}},4438:(En,bt,B)=>{"use strict";B.d(bt,{iLQ:()=>jI,sZ2:()=>vv,hnV:()=>eD,Hbi:()=>ZM,o8S:()=>Id,BIS:()=>yy,gRc:()=>fD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>Jo,zcH:()=>Ya,bkB:()=>Os,$GK:()=>sr,nKC:()=>Q,zZn:()=>ds,_q3:()=>QI,MKu:()=>YI,xe9:()=>sy,Co$:()=>hi,Vns:()=>io,SKi:()=>Eo,Xx1:()=>_n,Agw:()=>Zd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>Xg,kdw:()=>Ln,C4Q:()=>sp,NYb:()=>vM,giA:()=>ZT,xvI:()=>GR,RxE:()=>GT,c1b:()=>hd,gXe:()=>ms,mal:()=>u_,L39:()=>wP,a0P:()=>kP,Ol2:()=>K0,w6W:()=>rs,oH4:()=>uD,SmG:()=>VM,Rfq:()=>Yr,WQX:()=>Ae,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>WT,H8p:()=>dl,KH2:()=>Xp,TgB:()=>Mp,wOt:()=>Ve,WHO:()=>QT,e01:()=>YT,H5H:()=>_I,Zy3:()=>yt,mq5:()=>lC,JZv:()=>Bn,LfX:()=>St,plB:()=>tl,jNT:()=>$I,zjR:()=>JT,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>bp,Mj6:()=>ss,GFd:()=>Li,OA$:()=>At,Jv_:()=>ET,aNF:()=>AT,R7$:()=>r0,BMQ:()=>iI,AVh:()=>cI,wni:()=>QC,VBU:()=>vs,FsC:()=>as,jDH:()=>or,G2t:()=>wi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>mI,eu8:()=>vI,bVm:()=>Y_,qex:()=>Q_,k0s:()=>X_,j41:()=>q_,RV6:()=>oC,xGo:()=>cf,KVO:()=>U,kS0:()=>Vc,QTQ:()=>o0,bIt:()=>EI,lsd:()=>JC,XpG:()=>UC,SdG:()=>BC,NAR:()=>$C,Y8G:()=>lI,FS9:()=>CI,lJ4:()=>TT,mGM:()=>ZC,Dyx:()=>nC,Z7z:()=>tC,fX1:()=>eC,Njj:()=>Ac,eBV:()=>Sd,n$t:()=>zf,DNE:()=>Pp,EFF:()=>uT,JRh:()=>DI,DH7:()=>yT,mxI:()=>SI,R50:()=>wI,GBs:()=>YC}),B(467);let ge=null,X=1;const Ee=Symbol("SIGNAL");function re(e){const t=ge;return ge=e,t}function Le(e){if((!Ke(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==X)){if(!e.producerMustRecompute(e)&&!mt(e))return e.dirty=!1,void(e.lastCleanEpoch=X);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=X}}function mt(e){Ct(e);for(let t=0;t0}function Ct(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 rn=null;var $n=B(1413),qn=B(8359),er=B(4412),yn=B(6354);const Yn="https://g.co/ng/security#xss";class Ve extends Error{constructor(t,r){super(yt(t,r)),this.code=t}}function yt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function mn(e){return{toString:e}.toString()}const Gt="__parameters__";function Mr(e,t,r){return mn(()=>{const o=function kr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...c){if(this instanceof a)return o.apply(this,c),this;const p=new a(...c);return y.annotation=p,y;function y(A,F,K){const ee=A.hasOwnProperty(Gt)?A[Gt]:Object.defineProperty(A,Gt,{value:[]})[Gt];for(;ee.length<=K;)ee.push(null);return(ee[K]=ee[K]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Bn=globalThis;function wn(e){for(let t in e)if(e[t]===wn)return t;throw Error("Could not find renamed property on target object.")}function Sr(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 Er(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Qr=wn({__forward_ref__:wn});function Yr(e){return e.__forward_ref__=Yr,e.toString=function(){return tr(this())},e}function oe(e){return He(e)?e():e}function He(e){return"function"==typeof e&&e.hasOwnProperty(Qr)&&e.__forward_ref__===Yr}function or(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wi(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return lt(e,Kn)||lt(e,Z)}function St(e){return null!==gi(e)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function fn(e){return e&&(e.hasOwnProperty(Y)||e.hasOwnProperty(Ne))?e[Y]:null}const Kn=wn({\u0275prov:wn}),Y=wn({\u0275inj:wn}),Z=wn({ngInjectableDef:wn}),Ne=wn({ngInjectorDef:wn});class Q{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=or({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xr(e){return e&&!!e.\u0275providers}const An=wn({\u0275cmp:wn}),xi=wn({\u0275dir:wn}),mi=wn({\u0275pipe:wn}),Si=wn({\u0275mod:wn}),ti=wn({\u0275fac:wn}),mr=wn({__NG_ELEMENT_ID__:wn}),oi=wn({__NG_ENV_ID__:wn});function Nn(e){return"string"==typeof e?e:null==e?"":String(e)}function si(e,t){throw new Ve(-201,!1)}var sr=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}(sr||{});let Or;function ai(){return Or}function jn(e){const t=Or;return Or=e,t}function Fo(e,t,r){const o=gi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&sr.Optional?null:void 0!==t?t:void si()}const co={},To="__NG_DI_FLAG__",Ni="ngTempTokenPath",H=/\n/gm,M="__source";let fe;function ar(e){const t=fe;return fe=e,t}function ui(e,t=sr.Default){if(void 0===fe)throw new Ve(-203,!1);return null===fe?Fo(e,void 0,t):fe.get(e,t&sr.Optional?null:void 0,t)}function U(e,t=sr.Default){return(ai()||ui)(oe(e),t)}function Ae(e,t=sr.Default){return U(e,ke(t))}function ke(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ot(e){const t=[];for(let r=0;rArray.isArray(r)?li(r,t):t(r))}function vi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ci(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=Do(e,t);return o>=0?e[1|o]=r:(o=~o,function Wr(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 Ko(e,t){const r=Do(e,t);if(r>=0)return e[1|r]}function Do(e,t){return function os(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const c=o+(a-o>>1),p=e[c<t?a=c:o=c+1}return~(a<t){p=c-1;break}}}for(;c-1){let c;for(;++ac?"":a[K+1].toLowerCase(),2&o&&F!==ee){if(ce(o))return!1;p=!0}}}}else{if(!p&&!ce(o)&&!ce(A))return!1;if(p&&ce(A))continue;p=!1,o=A|1&o}}return ce(o)||p}function ce(e){return!(1&e)}function $(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let c=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ce(p)&&(t+=ao(c,a),a=""),o=p,c=c||!ce(o);r++}return""!==a&&(t+=ao(c,a)),t}function vs(e){return mn(()=>{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||Pr,_:null,schemas:e.schemas||null,tView:null,id:""};ls(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function vr(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 Jn(e)||Oi(e)}function Oa(e){return null!==e}function sl(e){return mn(()=>({type:e.type,bootstrap:e.bootstrap||Pr,declarations:e.declarations||Pr,imports:e.imports||Pr,exports:e.exports||Pr,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 c=e[a];let p,y,A=ss.None;var o;Array.isArray(c)?(A=c[0],p=c[1],y=null!==(o=c[2])&&void 0!==o?o:p):(p=c,y=c),t?(r[p]=A!==ss.None?[a,A]:a,t[p]=y):r[p]=a}return r}function as(e){return mn(()=>{const t=ll(e);return ls(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 Jn(e){return e[An]||null}function Oi(e){return e[xi]||null}function Ti(e){return e[mi]||null}function ro(e){const t=Jn(e)||Oi(e)||Ti(e);return null!==t&&t.standalone}function Hr(e,t){const r=e[Si]||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||Pr,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 ls(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?Ti: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 c=p=>{r.push(p)};return li(t,p=>{const y=p;cl(y,c,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,c),r}function js(e,t){for(let r=0;r{t(c,o)})}}function cl(e,t,r,o){if(!(e=oe(e)))return!1;let a=null,c=fn(e);const p=!c&&Jn(e);if(c||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(c=fn(A),!c)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 F of A)cl(F,t,r,o)}}else{if(!c)return!1;{if(null!=c.imports&&!y){let F;o.add(a);try{li(c.imports,K=>{cl(K,t,r,o)&&(F||(F=[]),F.push(K))})}finally{}void 0!==F&&js(F,t)}if(!y){const F=br(a)||(()=>new a);t({provide:a,useFactory:F,deps:Pr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>U(a),multi:!0},a)}const A=c.providers;if(null!=A&&!y){const F=e;Ll(A,K=>{t(K,F)})}}}return a!==e&&void 0!==e.providers}function Ll(e,t){for(let r of e)xr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ll(r,t):t(r)}const Ul=wn({provide:String,useValue:wn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Yo(e){return"function"==typeof e}const dl=new Q(""),Zo={},wu={};let $l;function Lo(){return void 0===$l&&($l=new ua),$l}class Jo{}class Rs extends Jo{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,Va(void 0,this)),a.has("environment")&&this.records.set(Jo,Va(void 0,this));const c=this.records.get(dl);null!=c&&"string"==typeof c.value&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(so,Pr,sr.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=re(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(),re(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=ar(this),o=jn(void 0);try{return t()}finally{ar(r),jn(o)}}get(t,r=co,o=sr.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(oi))return t[oi](this);o=ke(o);const c=ar(this),p=jn(void 0);try{if(!(o&sr.SkipSelf)){let A=this.records.get(t);if(void 0===A){const F=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof Q}(t)&&gi(t);A=F&&this.injectableDefInScope(F)?Va(Di(t),Zo):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&sr.Self?Lo():this.parent).get(t,r=o&sr.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Ni]=y[Ni]||[]).unshift(tr(t)),c)throw y;return function zt(e,t,r,o){const a=e[Ni];throw t[M]&&a.unshift(t[M]),e.message=function Kt(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 c=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];c.push(p+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${c.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Ni]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{jn(p),ar(c)}}resolveInjectorInitializers(){const t=re(null),r=ar(this),o=jn(void 0);try{const c=this.get(oo,Pr,sr.Self);for(const p of c)p()}finally{ar(r),jn(o),re(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 Ve(205,!1)}processProvider(t){let r=Yo(t=oe(t))?t:oe(t&&t.provide);const o=function Bl(e){return fa(e)?Va(void 0,e.useValue):Va(ga(e),Zo)}(t);if(!Yo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=Va(void 0,Zo,!0),a.factory=()=>ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=re(null);try{return r.value===Zo&&(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{re(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=oe(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 Di(e){const t=gi(e),r=null!==t?t.factory:br(e);if(null!==r)return r;if(e instanceof Q)throw new Ve(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new Ve(204,!1);const r=function Ut(e){return e&&(e[Kn]||e[Z])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Ve(204,!1)}function ga(e,t,r){let o;if(Yo(e)){const a=oe(e);return br(a)||Di(a)}if(fa(e))o=()=>oe(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...ot(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>U(oe(e.useExisting));else{const a=oe(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return br(a)||Di(a);o=()=>new a(...ot(e.deps))}return o}function Va(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&&xr(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=ar(e),a=jn(void 0);try{return t()}finally{ar(o),jn(a)}}function Hs(){return void 0!==ai()||null!=function qe(){return fe}()}const Gr=0,un=1,Vn=2,Kr=3,Gi=4,_i=5,Wi=6,Fi=7,Jr=8,zi=9,Uo=10,fr=11,La=12,gc=13,Ua=14,Ki=15,va=16,es=17,wo=18,Gs=19,jl=20,Lr=21,_a=22,Ws=23,Dr=25,$a=1,$o=7,Ks=9,Vi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[$a]}function _o(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 us(e){return!!e.template}function Hl(e){return!!(512&e[Vn])}class dt{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Qt(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function At(){return Tn}function Tn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),hr}function hr(){const e=qi(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 Ri(e,t,r,o,a){const c=this.declaredInputs[o],p=qi(e)||function Bo(e,t){return e[Br]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,F=A[c];y[c]=new dt(F&&F.currentValue,r,A===Vo),Qt(e,t,a,r)}At.ngInherit=!0;const Br="__ngSimpleChanges__";function qi(e){return e[Br]||null}const yo=function(e,t,r){};let Ps=!1;function di(e){for(;Array.isArray(e);)e=e[Gr];return e}function Ga(e,t){return di(t[e])}function ts(e,t){return di(t[e.index])}function Xl(e,t){return e.data[t]}function So(e,t){const r=t[e];return Ur(r)?r:r[Gr]}function vc(e){return!(128&~e[Vn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[es]=0}function bd(e){1024&e[Vn]||(e[Vn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[Vn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[Vn])if(function Ca(){return Ps}())e[Vn]|=1024,xs(e);else{var r;null===(r=e[Uo].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[Vn])&&(r[Vn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[Vn]))throw new Ve(911,!1);null===e[Lr]&&(e[Lr]=[]),e[Lr].push(t)}function Qs(e){const t=e[Kr];return _o(t)?t[Kr]:t}const Gn={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return Gn.bindingsEnabled}function Zl(){return null!==Gn.skipHydrationRootTNode}function Ht(){return Gn.lFrame.lView}function qr(){return Gn.lFrame.tView}function Sd(e){return Gn.lFrame.contextLView=e,e[Jr]}function Ac(e){return Gn.lFrame.contextLView=null,e}function Ci(){let e=Xh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xh(){return Gn.lFrame.currentTNode}function Js(e,t){const r=Gn.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return Gn.lFrame.isParent}function Nu(){Gn.lFrame.isParent=!1}function Ts(){return Gn.lFrame.bindingIndex++}function Md(e,t){const r=Gn.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){Gn.lFrame.currentDirectiveIndex=e}function xd(){return Gn.lFrame.currentQueryIndex}function Dc(e){Gn.lFrame.currentQueryIndex=e}function bc(e){const t=e[un];return 2===t.type?t.declTNode:1===t.type?e[_i]:null}function Yh(e,t,r){if(r&sr.SkipSelf){let a=t,c=e;for(;!(a=a.parent,null!==a||r&sr.Host||(a=bc(c),null===a||(c=c[Ua],10&a.type))););if(null===a)return!1;t=a,e=c}const o=Gn.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[un];Gn.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=Gn.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=Gn.lFrame;return Gn.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 Gn.lFrame.selectedIndex}function ba(e){Gn.lFrame.selectedIndex=e}function yi(){const e=Gn.lFrame;return Xl(e.tView,e.selectedIndex)}let Lu=!0;function Uu(){return Lu}function Ns(e){Lu=e}function $u(e,t){for(let F=t.directiveStart,K=t.directiveEnd;F=o)break}else t[A]<0&&(e[es]+=65536),(y>14>16&&(3&e[Vn])===t&&(e[Vn]+=16384,vl(y,c)):vl(y,c)}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 Jl(e){const t=ju;return ju=e,t}const sf=255,Vd=5;let Nc=0;const Ds={};function zu(e,t){const r=Ld(e,t);if(-1!==r)return r;const o=t[un];o.firstCreatePass&&(e.injectorIndex=t.length,Ro(o.data,e),Ro(t,null),Ro(o.blueprint,null));const a=qa(e,t),c=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[un].data;for(let F=0;F<8;F++)t[c+F]=y[p+F]|A[p+F]}return t[c+8]=a,c}function Ro(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ld(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qa(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(mr)&&(o=r[mr]),null==o&&(o=r[mr]=Nc++);const a=o&sf;t.data[e+(a>>Vd)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof c){if(!Yh(t,e,o))return o&sr.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=c(o),null!=p||o&sr.Optional)return p;si()}finally{wc()}}else if("number"==typeof c){let p=null,y=Ld(e,t),A=_l,F=o&sr.Host?t[Ki][_i]:null;for((-1===y||o&sr.SkipSelf)&&(A=-1===y?qa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[un],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const K=t[un];if(Fc(c,y,K.data)){const ee=sg(y,t,r,p,o,F);if(ee!==Ds)return ee}A=t[y+8],A!==_l&&tu(o,t[un].data[y+8]===F)&&Fc(c,y,t)?(p=K,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,c){const p=t[un],y=p.data[e+8],K=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&sr.Host&&c===y);return null!==K?Cl(t,p,K,y):Ds}function $d(e,t,r,o,a){const c=e.providerIndexes,p=t.data,y=1048575&c,A=e.directiveStart,K=c>>20,Re=a?y+K:e.directiveEnd;for(let Ge=o?y:y+K;Ge=A&&_t.type===r)return Ge}if(a){const Ge=p[A];if(Ge&&us(Ge)&&Ge.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const c=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function Bi(e,t){throw t&&t.join(" > "),new Ve(-200,e)}(function kn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Nn(e)}(c[r]));const y=Jl(p.canSeeViewProviders);p.resolving=!0;const F=p.injectImpl?jn(p.injectImpl):null;Yh(e,o,sr.Default);try{a=e[r]=p.factory(void 0,c,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:c}=t.type.prototype;if(o){var p,y;const ee=Tn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,ee),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,ee)}var A,F,K;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),c&&((null!==(F=r.preOrderHooks)&&void 0!==F?F:r.preOrderHooks=[]).push(e,c),(null!==(K=r.preOrderCheckHooks)&&void 0!==K?K:r.preOrderCheckHooks=[]).push(e,c))}(r,c[r],t)}finally{null!==F&&jn(F),Jl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Vd)]&1<{const t=e.prototype.constructor,r=t[ti]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const c=a[ti]||Hu(a);if(c&&c!==r)return c;a=Object.getPrototypeOf(a)}return c=>new c})}function Hu(e){return He(e)?()=>{const t=Hu(oe(e));return t&&t()}:br(e)}function Qa(e){const t=e[un],r=t.type;return 2===r?t.declTNode:1===r?e[_i]:null}function Vc(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 c;const p=null!==(c=o.name)&&void 0!==c?c:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=or({token:e,providedIn:"any",factory:()=>U(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 Q("",{providedIn:"root",factory:()=>Ae(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[Lr])return;const r=e[Lr].indexOf(t);-1!==r&&e[Lr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Ht())}function Xu(){return oa(Ci(),Ht())}function oa(e,t){return new Qu(ts(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Xu,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 $n.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Ae(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=re(null);try{super.next(t)}finally{re(r)}}subscribe(t,r,o){let a=t,c=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,F;const ee=t;a=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),c=null===(A=ee.error)||void 0===A?void 0:A.bind(ee),p=null===(F=ee.complete)||void 0===F?void 0:F.bind(ee)}this.__isAsync&&(c=If(c),a&&(a=If(a)),p&&(p=If(p)));const K=super.subscribe({next:a,error:c,complete:p});return t instanceof qn.yU&&t.add(K),K}};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 nr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function cr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new Q(""),Zd=new Q("",{providedIn:"platform",factory:()=>"unknown"}),yy=new Q("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new Ve(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 Q("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,Bn.trustedTypes))try{ah=Bn.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 ${Yn})`}}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 ${Yn})`)}return r===t}const iE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Xc=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}(Xc||{});function Qc(e){const t=Sa();return t?t.sanitize(Xc.URL,e)||"":po(e,"URL")?cu(e):function bi(e){return(e=String(e)).match(iE)?e:"unsafe:"+e}(Nn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(Xc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new Ve(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=Ht();return e&&e[Uo].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var Xg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xg||{});let Bv;function Qg(e,t){return Bv(e,t)}function ph(e,t,r,o,a){if(null!=o){let c,p=!1;_o(o)?c=o:Ur(o)&&(p=!0,o=o[Gr]);const y=di(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 fE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=c&&function gE(e,t,r,o,a){const c=r[$o];c!==di(r)&&ph(t,e,o,c,a);for(let y=Vi;yt.replace(Vv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[Uo].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[fr],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<=Vi)return;const r=Vi+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 c=ci(e,Vi+t);!function Wy(e,t){jv(e,t),t[Gr]=null,t[_i]=null}(o[un],o);const p=c[wo];null!==p&&p.detachView(c[un]),o[Kr]=null,o[Gi]=null,o[Vn]&=-129}return o}function Yg(e,t){if(!(256&t[Vn])){const r=t[fr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[La];if(!t)return Zg(e[un],e);for(;t;){let r=null;if(Ur(t))r=t[La];else{const o=t[Vi];o&&(r=o)}if(!r){for(;t&&!t[Gi]&&t!==e;)Ur(t)&&Zg(t[un],t),t=t[Kr];null===t&&(t=e),Ur(t)&&Zg(t[un],t),r=t&&t[Gi]}t=r}}(t)}}function Zg(e,t){if(256&t[Vn])return;const r=re(null);try{t[Vn]&=-129,t[Vn]|=256,t[Ws]&&function vt(e){if(Ct(e),Ke(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),c+=2}else r[c].call(o[r[c+1]]);null!==o&&(t[Fi]=null);const a=t[Lr];if(null!==a){t[Lr]=null;for(let c=0;c-1){const{encapsulation:c}=e.data[o.directiveStart+a];if(c===ms.None||c===ms.Emulated)return null}return ts(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 Xf(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 Yy(e,t,r)}let Kv,Yy=function Wv(e,t,r){return 40&e.type?ts(e,r):null};function Jg(e,t,r,o){const a=Hv(e,o,t),c=t[fr],y=Gv(o.parent||t[_i],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;ADr&&nm(e,t,Dr,!1),yo(p?2:0,a),r(o,a)}finally{ba(c),yo(p?3:1,a)}}function Qv(e,t,r){if(zl(t)){const o=re(null);try{const c=t.directiveEnd;for(let p=t.directiveStart;pnull;function Zv(e,t,r,o,a){for(let p in t){var c;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(c=o)&&void 0!==c||(o={});let A,F=ss.None;Array.isArray(y)?(A=y[0],F=y[1]):A=y;let K=p;if(null!==a){if(!a.hasOwnProperty(p))continue;K=a[p]}0===e?h0(o,r,K,A,F):h0(o,r,K,A)}return o}function h0(e,t,r,o,a){let c;e.hasOwnProperty(r)?(c=e[r]).push(t,o):c=e[r]=[t,o],void 0!==a&&c.push(a)}function ks(e,t,r,o,a,c,p,y){const A=ts(t,r);let K,F=t.inputs;!y&&null!=F&&(K=F[o])?(n_(e,r,K,o,a),As(t)&&function CE(e,t){const r=So(t,e);16&r[Vn]||(r[Vn]|=64)}(r,t.index)):3&t.type&&(o=function AE(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,c.setProperty(A,o,a))}function Jv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},c=function RE(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,c)}}(e,t,o,Jf(e,r,a.hostVars,Nr),a)}function Ml(e,t,r,o,a,c){const p=ts(e,t);!function t_(e,t,r,o,a,c,p){if(null==c)e.removeAttribute(t,a,r);else{const y=null==p?Nn(c):p(c,o||"",a);e.setAttribute(t,a,y,r)}}(t[fr],p,c,e.value,r,o,a)}function OE(e,t,r,o,a,c){const p=c[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}},T0=100;function cm(e,t=!0,r=0){const o=e[Uo],a=o.rendererFactory;var p;null===(p=a.begin)||void 0===p||p.call(a);try{!function jE(e,t){i_(e,t);let r=0;for(;Ql(e);){if(r===T0)throw new Ve(103,!1);r++,i_(e,1)}}(e,r)}catch(F){throw t&&am(e,F),F}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function zE(e,t,r,o){var a;const c=t[Vn];if(!(256&~c))return;null===(a=t[Uo].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function HE(e){return 2!==e.type})(e)&&(A=function LE(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function UE(e){var t;const r=null!==(t=C0.pop())&&void 0!==t?t:Object.create(BE);return r.lView=e,r}(e)}(t),y=function st(e){return e&&(e.nextProducerIndex=0),re(e)}(A));try{yc(t),function Cc(e){return Gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&a0(e,t,r,2,o);const F=!(3&~c);if(F){const Re=e.preOrderCheckHooks;null!==Re&&Sc(t,Re,null)}else{const Re=e.preOrderHooks;null!==Re&&ra(t,Re,0,null),ia(t,0)}if(function GE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[Vn]&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 $E(e){e.lView[Ws]!==e&&(e.lView=null,C0.push(e))}(A)),Fu()}}function D0(e,t){for(let r=gg(e);null!==r;r=Tf(r))for(let o=Vi;o-1&&(qf(t,o),ci(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[un],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[Vn]&=-129}reattach(){fl(this._lView),this._lView[Vn]|=128}detectChanges(){this._lView[Vn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[un],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ve(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=qE,t})();const S0=sp,KE=class extends S0{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(Ci(),Ht())}function dm(e,t){return 4&e.type?new KE(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=Ht(),r=So(Ci().index,e);return(Ur(r)?r:e)[fr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=or({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 Eo{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 Ve(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 Bn.requestAnimationFrame;let t=Bn[e?"requestAnimationFrame":"setTimeout"],r=Bn[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 ns(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,c,p,y)=>{if(function O0(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,c,p,y);try{return Ch(e),r.invokeTask(a,c,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,c,p,y,A)=>{try{return Ch(e),r.invoke(a,c,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,c)=>{r.hasTask(a,c),o===a&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,jo(e),Ah(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,o,a,c)=>(r.handleError(a,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Eo.isInAngularZone())throw new Ve(909,!1)}static assertNotInAngularZone(){if(Eo.isInAngularZone())throw new Ve(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const c=this._inner,p=c.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return c.runTask(p,r,o)}finally{c.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 jo(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 Ve(-203,!1)}();const c=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ae(ds);if(!function el(e){return"browser"===(null!=e?e:Ae(ds)).get(Zd)}(c))return Tm;Ma("NgAfterNextRender");const p=c.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,F=()=>{y.unregister(ee),K()},K=c.get(Ku).onDestroy(F),ee=lo(c,()=>new cp(A,()=>{F(),e()}));return y.register(ee),{destroy:F}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ae(Eo),this.errorHandler=Ae(Ya,{optional:!0}),null===(o=Ae(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=or({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!Hr(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,c=0;if(null!==t)for(let p=0;p0&&t0(e,r,c.join(" "))}}($t,Fl,hn,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(Ci(),Ht())}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=qa(this._hostTNode,this._hostLView);if(Il(t)){const r=El(t,this._hostLView),o=wa(t);return new Yi(r[un].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-Vi}createEmbeddedView(t,r,o){let a,c;"number"==typeof o?a=o:null!=o&&(a=o.index,c=o.injector);const p=mo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},c,p);return this.insertImpl(y,a,_h(this._hostTNode,p)),y}createComponent(t,r,o,a,c){var p,y,A;const F=t&&!function Ft(e){return"function"==typeof e}(t);let K;if(F)K=r;else{const hn=r||{};K=hn.index,o=hn.injector,a=hn.projectableNodes,c=hn.environmentInjector||hn.ngModuleRef}const ee=F?t:new bh(Jn(t)),Re=o||this.parentInjector;if(!c&&null==ee.ngModule){const qt=(F?Re:this.parentInjector).get(Jo,null);qt&&(c=qt)}const Ge=Jn(null!==(p=ee.componentType)&&void 0!==p?p:{}),_t=mo(this._lContainer,null!==(y=null==Ge?void 0:Ge.id)&&void 0!==y?y:null),$t=null!==(A=null==_t?void 0:_t.firstChild)&&void 0!==A?A:null,sn=ee.create(Re,a,$t,c);return this.insertImpl(sn.hostView,K,_h(this._hostTNode,_t)),sn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return _o(e[Kr])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Kr],F=new __(A,A[_i],A[Kr]);F.detach(F.indexOf(t))}}const c=this._adjustIndex(r),p=this._lContainer;return np(p,a,c,o),t.attachToViewContainerRef(),vi(mp(p),c,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=qf(this._lContainer,r);o&&(ci(mp(this._lContainer),r),Yg(o[un],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ci(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 _o(o)?r=o:(r=v0(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[$o])return;let a;a=8&r.type?di(o):function Sh(e,t){const r=e[fr],o=r.createComment(""),a=ts(t,e);return nd(r,Qf(r,a),o,function Qy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[$o]=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 c=0;ct.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 F=c[y+1],K=t[-A];for(let ee=Vi;ee=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Xo(a.hostAttrs,r=Xo(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 c=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(c))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[c]=t.inputTransforms[c]}}}function Lh(e){return e===Vo?{}:e===Pr?[]: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,c)=>{t(o,a,c),r(o,a,c)}:t}function F_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Li(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 hi{}function rs(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=Hr(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 Vs extends hi{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||Lo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function K0(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 er.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=or({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 Mo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,c,p,y){const A=Ht(),F=qr(),K=e+Dr,ee=F.firstCreatePass?function cb(e,t,r,o,a,c,p,y,A){const F=t.consts,K=sc(t,e,4,p||null,Cs(F,y));Jv(t,r,K,Cs(F,A)),$u(t,K);const ee=K.tView=ep(2,K,o,a,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,F,null);return null!==t.queries&&(t.queries.template(t,K),ee.queries=t.queries.embeddedTView(K)),K}(K,F,A,t,r,o,a,c,p):F.data[K];Js(ee,!1);const Re=oA(F,A,ee,e);Uu()&&Jg(F,A,Re,ee),Zi(Re,A);const Ge=v0(Re,A,Re,ee);return A[K]=Ge,om(A,Ge),function y_(e,t,r){return Rh(e,t,r)}(Ge,ee,A),Ia(ee)&&mh(F,A,ee),null!=p&&od(A,ee,y),Pp}let oA=function sA(e,t,r,o){return Ns(!0),t[fr].createComment("")};function iI(e,t,r,o){const a=Ht();return Mo(a,Ts(),t)&&(qr(),Ml(yi(),a,e,t,r,o)),iI}function Up(e,t,r,o){return Mo(e,Ts(),r)?t+Nn(r)+o:Nr}function W_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function oI(e){return 2|e}function Bh(e){return(131068&e)>>2}function sI(e,t){return-131069&e|t<<2}function aI(e){return 1|e}function VA(e,t,r,o){const a=e[r+1],c=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||c);){const F=e[p+1];Qb(e[p],t)&&(y=!0,e[p+1]=o?aI(F):oI(F)),p=o?yd(F):Bh(F)}y&&(e[r+1]=o?oI(a):aI(a))}function Qb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Do(e,t)>=0}function lI(e,t,r){const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),lI}function uI(e,t,r,o,a){const p=a?"class":"style";n_(e,r,t.inputs[p],p,o)}function cI(e,t){return function Ol(e,t,r,o){const a=Ht(),c=qr(),p=function na(e){const t=Gn.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}(2);c.firstUpdatePass&&function WA(e,t,r,o){const a=e.data;if(null===a[r+1]){const c=a[fo()],p=function GA(e,t){return t>=e.expandoStartIndex}(e,r);(function QA(e,t){return!!(e.flags&(t?8:16))})(c,o)&&null===t&&!p&&(t=!1),t=function ow(e,t,r,o){const a=function Ou(e){const t=Gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let c=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=qm(r=dI(null,e,t,r,o),t.attrs,o),c=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=dI(a,e,t,r,o),null===c){let A=function sw(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=dI(null,e,t,A[1],o),A=qm(A,t.attrs,o),function aw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else c=function lw(e,t,r){let o;const a=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0)&&(F=!0)):K=r,a)if(0!==A){const Re=yd(e[y+1]);e[o+1]=W_(Re,y),0!==Re&&(e[Re+1]=sI(e[Re+1],o)),e[y+1]=function Wb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=W_(y,0),0!==y&&(e[y+1]=sI(e[y+1],o)),y=o;else e[o+1]=W_(A,0),0===y?y=o:e[A+1]=sI(e[A+1],o),A=o;F&&(e[o+1]=oI(e[o+1])),VA(e,K,o,!0),VA(e,K,o,!1),function Xb(e,t,r,o,a){const c=a?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof t&&Do(c,t)>=0&&(r[o+1]=aI(r[o+1]))}(t,K,e,o,c),p=W_(y,A),c?t.classBindings=p:t.styleBindings=p}(a,c,t,r,p,o)}}(c,e,p,o),t!==Nr&&Mo(a,p,t)&&function qA(e,t,r,o,a,c,p,y){if(!(3&t.type))return;const A=e.data,F=A[y+1],K=function Kb(e){return!(1&~e)}(F)?XA(A,t,r,a,Bh(F),p):void 0;K_(K)||(K_(c)||function Gb(e){return!(2&~e)}(F)&&(c=XA(A,null,r,a,y,p)),function mE(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let c=-1===o.indexOf("-")?void 0:Xg.DashCase;null==a?e.removeStyle(r,o,c):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),c|=Xg.Important),e.setStyle(r,o,a,c))}}(o,p,Ga(fo(),r),a,c))}(c,c.data[fo()],a,a[fr],e,a[p+1]=function hw(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),cI}function dI(e,t,r,o,a){let c=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],F=Array.isArray(A),K=F?A[1]:A,ee=null===K;let Re=r[a+1];Re===Nr&&(Re=ee?Pr:void 0);let Ge=ee?Ko(Re,o):K===o?Re:void 0;if(F&&!K_(Ge)&&(Ge=Ko(A,o)),K_(Ge)&&(y=Ge,p))return y;const _t=e[a+1];a=p?yd(_t):Bh(_t)}if(null!==t){let A=c?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function K_(e){return void 0!==e}class Cw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),c=this.detach(a);if(a-o>1){const p=this.detach(o);this.attach(o,c),this.attach(a,p)}else this.attach(o,c)}move(t,r){this.attach(r,this.detach(t))}}function hI(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function fI(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function YA(e,t,r,o,a){if(fI(e,t,o,r(o,a)))e.updateValue(o,a);else{const c=e.create(o,a);e.attach(o,c)}}function ZA(e,t,r,o){const a=new Set;for(let c=t;c<=r;c++)a.add(o(c,e.at(c)));return a}class JA{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)}}}class bw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Vi}}function eC(e,t){return t}class Sw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function tC(e,t,r,o,a,c,p,y,A,F,K,ee,Re){Ma("NgControlFlow");const Ge=void 0!==A,_t=Ht(),$t=y?p.bind(_t[Ki][Jr]):p,sn=new Sw(Ge,$t);_t[Dr+e]=sn,Pp(e+1,t,r,o,a,c),Ge&&Pp(e+2,A,F,K,ee,Re)}class Rw extends Cw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Vi}at(t){return this.getLView(t)[Jr].$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 qf(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[un],t)}updateValue(t,r){this.getLView(t)[Jr].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Re)})}(p,e,c.trackByFn),p.updateIndexes(),c.hasEmptyBlock){const y=Ts(),A=0===p.length;if(Mo(o,y,A)){const F=r+2,K=pI(o,F);if(A){const ee=gI(a,F),Re=mo(K,ee.tView.ssrId);np(K,tp(o,ee,void 0,{dehydratedView:Re}),0,_h(ee,Re))}else!function um(e,t){const r=qf(e,t);return void 0!==r&&Yg(r[un],r),r}(K,0)}}}finally{re(t)}}function pI(e,t){return e[t]}function gI(e,t){return Xl(e,t)}function q_(e,t,r,o){const a=Ht(),c=qr(),p=Dr+e,y=a[fr],A=c.firstCreatePass?function xw(e,t,r,o,a,c){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Jv(t,r,A,Cs(p,c)),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,c,a,t,r,o):c.data[p],F=rC(c,a,A,y,t,e);a[p]=F;const K=Ia(A);return Js(A,!0),n0(y,F,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Jg(c,a,F,A),0===function Ic(){return Gn.lFrame.elementDepthCount}()&&Zi(F,a),function Ec(){Gn.lFrame.elementDepthCount++}(),K&&(mh(c,a,A),Qv(c,A,a)),null!==o&&od(a,A),q_}function X_(){let e=Ci();xu()?Nu():(e=e.parent,Js(e,!1));const t=e;(function gl(e){return Gn.skipHydrationRootTNode===e})(t)&&function Ka(){Gn.skipHydrationRootTNode=null}(),function Ys(){Gn.lFrame.elementDepthCount--}();const r=qr();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&uI(r,t,Ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&uI(r,t,Ht(),t.stylesWithoutHost,!1),X_}function mI(e,t,r,o){return q_(e,t,r,o),X_(),mI}let rC=(e,t,r,o,a,c)=>(Ns(!0),Rl(o,a,function Od(){return Gn.lFrame.currentNamespace}()));function Q_(e,t,r){const o=Ht(),a=qr(),c=e+Dr,p=a.firstCreatePass?function kw(e,t,r,o,a){const c=t.consts,p=Cs(c,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Jv(t,r,y,Cs(c,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(c,a,o,t,r):a.data[c];Js(p,!0);const y=iC(a,o,p,e);return o[c]=y,Uu()&&Jg(a,o,y,p),Zi(y,o),Ia(p)&&(mh(a,o,p),Qv(a,p,o)),null!=r&&od(o,p),Q_}function Y_(){let e=Ci();const t=qr();return xu()?Nu():(e=e.parent,Js(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),Y_}function vI(e,t,r){return Q_(e,t,r),Y_(),vI}let iC=(e,t,r,o)=>(Ns(!0),td(t[fr],""));function oC(){return Ht()}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 Lw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function _I(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=uC(t);if(r)return r;const o=t.split("-")[0];if(r=uC(o),r)return r;if("en"===o)return Uw;throw new Ve(701,!1)}function lC(e){return _I(e)[Xp.PluralCase]}function uC(e){return e in qp||(qp[e]=Bn.ng&&Bn.ng.common&&Bn.ng.common.locales&&Bn.ng.common.locales[e]),qp[e]}var Xp=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}(Xp||{});const Qp="en-US";let cC=Qp;function EI(e,t,r,o){const a=Ht(),c=qr(),p=Ci();return AI(c,a,a[fr],p,e,t,o),EI}function AI(e,t,r,o,a,c,p){const y=Ia(o),F=e.firstCreatePass&&I0(e),K=t[Jr],ee=y0(t);let Re=!0;if(3&o.type||p){const $t=ts(o,t),sn=p?p($t):$t,hn=ee.length,qt=p?$r=>p(di($r[o.index])):o.index;let Ar=null;if(!p&&y&&(Ar=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let c=0;cA?y[A]:null}"string"==typeof p&&(c+=2)}return null}(e,t,a,o.index)),null!==Ar)(Ar.__ngLastListenerFn__||Ar).__ngNextListenerFn__=c,Ar.__ngLastListenerFn__=c,Re=!1;else{c=LC(o,t,K,c,!1);const $r=r.listen(sn,a,c);ee.push(c,$r),F&&F.push(a,qt,hn,hn+1)}}else c=LC(o,t,K,c,!1);const Ge=o.outputs;let _t;if(Re&&null!==Ge&&(_t=Ge[a])){const $t=_t.length;if($t)for(let sn=0;sn<$t;sn+=2){const fi=t[_t[sn]][_t[sn+1]].subscribe(c),fs=ee.length;ee.push(c,fi),F&&F.push(a,o.index,fs,-(fs+1))}}}function VC(e,t,r,o){const a=re(null);try{return yo(6,t,r),!1!==r(o)}catch(c){return am(e,c),!1}finally{yo(7,t,r),re(a)}}function LC(e,t,r,o,a){return function c(p){if(p===Function)return o;ip(e.componentOffset>-1?So(e.index,t):t);let A=VC(t,r,o,p),F=c.__ngNextListenerFn__;for(;F;)A=VC(t,r,F,p)&&A,F=F.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function UC(e=1){return function Vu(e){return(Gn.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,Gn.lFrame.contextLView))[Jr]}(e)}function VS(e,t){let r=null;const o=function nn(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[fr],o));function DI(e){return bI("",e,""),DI}function bI(e,t,r){const o=Ht(),a=Up(o,e,t,r);return a!==Nr&&function pu(e,t,r){const o=Ga(t,e);!function oc(e,t,r){e.setValue(t,r)}(e[fr],o,r)}(o,fo(),a),bI}function wI(e,t,r){km(t)&&(t=t());const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),wI}function yT(e,t){const r=km(e);return r&&e.set(t),r}function SI(e,t){const r=Ht(),o=qr(),a=Ci();return AI(o,r,r[fr],a,e,t),SI}function RI(e,t,r,o,a){if(e=oe(e),Array.isArray(e))for(let c=0;c>20;if(Yo(e)||!e.multi){const Ge=new yl(F,a,id),_t=PI(A,t,a?K:K+Re,ee);-1===_t?(Al(zu(y,p),c,A),MI(c,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Ge),p.push(Ge)):(r[_t]=Ge,p[_t]=Ge)}else{const Ge=PI(A,t,K+Re,ee),_t=PI(A,t,K,K+Re),sn=_t>=0&&r[_t];if(a&&!sn||!a&&!(Ge>=0&&r[Ge])){Al(zu(y,p),c,A);const hn=function rR(e,t,r,o,a){const c=new yl(e,r,id);return c.multi=[],c.index=t,c.componentProviders=0,IT(c,a,o&&!r),c}(a?nR:tR,r.length,a,o,F);!a&&sn&&(r[_t].providerFactory=hn),MI(c,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(hn),p.push(hn)}else MI(c,e,Ge>-1?Ge:_t,IT(r[a?_t:Ge],F,!a&&o));!a&&o&&sn&&r[_t].componentProviders++}}}function MI(e,t,r,o){const a=Yo(t),c=function Ss(e){return!!e.useClass}(t);if(a||c){const A=(c?oe(t.useClass):t).prototype.ngOnDestroy;if(A){const F=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const K=F.indexOf(r);-1===K?F.push(r,[o,A]):F[K+1].push(o,A)}else F.push(r,A)}}}function IT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function PI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=qr();if(o.firstCreatePass){const a=us(e);RI(r,o.data,o.blueprint,a,!0),RI(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),c=a.length>0?K0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,c)}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=or({token:e,providedIn:"environment",factory:()=>new e(U(Jo))}),t})();function AT(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function TT(e,t,r){const o=function ho(){const e=Gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Ht();return a[o]===Nr?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 GT{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 GT("17.3.10");let WT=(()=>{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=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const QT=new Q(""),YT=new Q("");let UI,vM=(()=>{var e;class t{constructor(o,a,c){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,UI||(function _M(e){UI=e}(c),c.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:()=>{Eo.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,c){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:c})}whenStable(o,a,c){if(c&&!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,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,c){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Eo),U(ZT),U(YT))},e.\u0275prov=or({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 c,p;return null!==(c=null===(p=UI)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==c?c:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function $I(e){return!!e&&"function"==typeof e.then}function JT(e){return!!e&&"function"==typeof e.subscribe}const eD=new Q("");let BI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c}),this.appInits=null!==(o=Ae(eD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const c of this.appInits){const p=c();if($I(p))o.push(p);else if(JT(p)){const y=new Promise((A,F)=>{p.subscribe({complete:A,error:F})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(c=>{this.reject(c)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const jI=new Q("");function rD(e,t){return Array.isArray(t)?t.reduce(rD,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ae(zd),this.afterRenderEffectManager=Ae(ad),this.externalTestViews=new Set,this.beforeRender=new $n.B,this.afterTick=new $n.B,this.componentTypes=[],this.components=[],this.isStable=Ae(Mp).hasPendingTasks.pipe((0,yn.T)(o=>!o)),this._injector=Ae(Jo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const c=o instanceof s_;if(!this._injector.get(BI).done)throw!c&&ro(o),new Ve(405,!1);let y;y=c?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),K=y.create(ds.NULL,[],a||y.selector,A),ee=K.location.nativeElement,Re=K.injector.get(QT,null);return null==Re||Re.registerApplication(ee),K.onDestroy(()=>{this.detachView(K.hostView),oy(this.components,K),null==Re||Re.unregisterApplication(ee)}),this._loadComponent(K),K}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Ve(101,!1);const a=re(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(c){this.internalErrorHandler(c)}finally{this.afterTick.next(),this._runningTick=!1,re(a)}}detectChangesInAttachedViews(o){let a=0;const c=this.afterRenderEffectManager;for(;;){if(a===T0)throw new Ve(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++,c.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>zI(p))&&(c.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>zI(p))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;oy(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(jI,[]);[...this._bootstrapListeners,...a].forEach(c=>c(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),()=>oy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Ve(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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function oy(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!zI(e)||function AM(e,t,r){let o;r?(o=0,e[Vn]|=1024):o=64&e[Vn]?0:1,cm(e,t,o)}(e,r,t)}function zI(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 Vs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(Hr(o).declarations).reduce((y,A)=>{const F=Jn(A);return F&&y.push(new bh(F)),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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Ae(Eo),this.applicationRef=Ae(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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Ae(Eo),t=Ae(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new qn.yU,this.initialized=!1,this.zone=Ae(Eo),this.pendingTasks=Ae(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(()=>{Eo.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;Eo.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=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const sy=new Q("",{providedIn:"root",factory:()=>Ae(sy,sr.Optional|sr.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new Q("",{providedIn:"root",factory:()=>"USD"}),HI=new Q("");let aD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const c=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Eo(t):e}(null==a?void 0:a.ngZone,function sD(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 c.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function oD(e){return[{provide:Eo,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>c)),y=p.injector.get(Ya,null);return c.runOutsideAngular(()=>{const A=c.onError.subscribe({next:F=>{y.handleError(F)}});p.onDestroy(()=>{oy(this._modules,p),A.unsubscribe()})}),function nD(e,t,r){try{const o=r();return $I(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,c,()=>{const A=p.injector.get(BI);return A.runInitializers(),A.donePromise.then(()=>(function dC(e){"string"==typeof e&&(cC=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(sy,Qp)||Qp),this._moduleDoBootstrap(p),p))})})}bootstrapModule(o,a=[]){const c=rD({},a);return function bM(e,t,r){const o=new Vs(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,c))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!o.instance.ngDoBootstrap)throw new Ve(-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 Ve(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(HI,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)(U(ds))},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const lD=new Q("");function uD(e,t,r=[]){const o=`Platform: ${t}`,a=new Q(o);return(c=[])=>{let p=GI();if(!p||p.injector.get(lD,!1)){const y=[...r,...c,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(lD,!1))throw new Ve(400,!1);(function tD(){!function ye(e){rn=e}(()=>{throw new Ve(600,!1)})})(),Ed=e;const t=e.get(aD);(function dD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function cD(e=[],t){return ds.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:HI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=GI();if(!t)throw new Ve(401,!1);return t}()}}function GI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(aD))&&void 0!==e?e:null}function VM(){}let fD=(()=>{class t{}return t.__NG_ELEMENT_ID__=LM,t})();function LM(e){return function UM(e,t,r){if(As(e)&&!r){const o=So(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Ki],t):null}(Ci(),Ht(),!(16&~e))}class vD{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,c=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 c;return null===t?c=this._itTail:(c=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,c,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,c,a)):t=this._addAfter(new GM(r,o),c,a),t}_verifyReinsertion(t,r,o,a){let c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==c?t=this._reinsertAfter(c,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,c=t._nextRemoved;return null===a?this._removalsHead=c:a._nextRemoved=c,null===c?this._removalsTail=a:c._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 _D),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 _D),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 _D{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 yD(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 c=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,c)}}),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 c=a._prev,p=a._next;return c&&(c._next=p),p&&(p._prev=c),a._next=null,a._prev=null,a}const o=new qM(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 qM{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 ED(){return new QI([new vD])}let QI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ED()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(null!=a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=or({token:e,providedIn:"root",factory:ED}),t})();function AD(){return new YI([new ID])}let YI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||AD()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=or({token:e,providedIn:"root",factory:AD}),t})();const YM=uD(null,"core",[]);let ZM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=wi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=re(null);try{return e()}finally{re(t)}}function kP(e,t){const r=Jn(e),o=t.elementInjector||Lo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=Jn(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:(En,bt,B)=>{"use strict";B.d(bt,{MW:()=>$e,Wp:()=>ut,XU:()=>Oe,gL:()=>X});var g=B(2214),d=B(4438),ge=B(3586);class Oe{constructor(je){return je}}class X{constructor(){return(0,g.Dk)()}}const Ze=new d.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function re(Me){return Me&&1===Me.length?Me[0]:new Oe((0,g.Sx)())},deps:[[new d.Xx1,Ze]]},De={provide:X,deps:[[new d.Xx1,Ze]]};function _e(Me){return(je,Ke)=>{const Ct=Ke.get(d.Agw);(0,g.KO)("angularfire",ge.xv.full,"core"),(0,g.KO)("angularfire",ge.xv.full,"app"),(0,g.KO)("angular",d.xvI.full,Ct.toString());const xt=je.runOutsideAngular(()=>Me(Ke));return new Oe(xt)}}function $e(Me,...je){return(0,d.EmA)([Je,De,{provide:Ze,useFactory:_e(Me),multi:!0,deps:[d.SKi,d.zZn,ge.u0,...je]}])}const ut=(0,ge.S3)(g.Wp,!0)},8737:(En,bt,B)=>{"use strict";B.d(bt,{Nj:()=>qa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>qu,kQ:()=>Fc});var g=B(3586),d=B(4438),ge=B(7440),Oe=B(2214),X=B(467),Ee=B(7852),re=B(1076),Ze=B(8041),Je=B(1635),De=B(1362);const Mt=function ut(){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."}},mt=new re.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."}),Me=new Ze.Vy("@firebase/auth");function Ke(E,...h){Me.logLevel<=Ze.$b.ERROR&&Me.error(`Auth (${Ee.MF}): ${E}`,...h)}function Ct(E,...h){throw Zt(E,...h)}function xt(E,...h){return Zt(E,...h)}function ze(E,h,v){const b=Object.assign(Object.assign({},Mt()),{[h]:v});return new re.FA("auth","Firebase",b).create(h,{appName:E.name})}function Tt(E){return ze(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 mt.create(E,...h)}function Dt(E,h,...v){if(!E)throw Zt(h,...v)}function Be(E){const h="INTERNAL ASSERTION FAILED: "+E;throw Ke(h),new Error(h)}function rn(E,h){E||Be(h)}function pt(){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 de{constructor(h,v){this.shortDelay=h,this.longDelay=v,rn(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,re.jZ)()||(0,re.lV)()}get(){return function W(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function ye(){return"http:"===j()||"https:"===j()}()||(0,re.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(E,h){rn(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class me{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 Ce={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"},at=new de(3e4,6e4);function kt(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function Bt(E,h,v,b){return vn.apply(this,arguments)}function vn(){return(vn=(0,X.A)(function*(E,h,v,b,q={}){return bn(E,q,(0,X.A)(function*(){let pe={},nt={};b&&("GET"===h?nt=b:pe={body:JSON.stringify(b)});const Pt=(0,re.Am)(Object.assign({key:E.config.apiKey},nt)).slice(1),on=yield E._getAdditionalHeaders();return on["Content-Type"]="application/json",E.languageCode&&(on["X-Firebase-Locale"]=E.languageCode),me.fetch()(yn(E,E.config.apiHost,v,Pt),Object.assign({method:h,headers:on,referrerPolicy:"no-referrer"},pe))}))})).apply(this,arguments)}function bn(E,h,v){return $n.apply(this,arguments)}function $n(){return($n=(0,X.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Ce),h);try{const q=new Yn(E),pe=yield Promise.race([v(),q.promise]);q.clearNetworkTimeout();const nt=yield pe.json();if("needConfirmation"in nt)throw Ve(E,"account-exists-with-different-credential",nt);if(pe.ok&&!("errorMessage"in nt))return nt;{const Pt=pe.ok?nt.errorMessage:nt.error.message,[on,Dn]=Pt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===on)throw Ve(E,"credential-already-in-use",nt);if("EMAIL_EXISTS"===on)throw Ve(E,"email-already-in-use",nt);if("USER_DISABLED"===on)throw Ve(E,"user-disabled",nt);const Xn=b[on]||on.toLowerCase().replace(/[_\s]+/g,"-");if(Dn)throw ze(E,Xn,Dn);Ct(E,Xn)}}catch(q){if(q instanceof re.g)throw q;Ct(E,"network-request-failed",{message:String(q)})}})).apply(this,arguments)}function qn(E,h,v,b){return er.apply(this,arguments)}function er(){return(er=(0,X.A)(function*(E,h,v,b,q={}){const pe=yield Bt(E,h,v,b,q);return"mfaPendingCredential"in pe&&Ct(E,"multi-factor-auth-required",{_serverResponse:pe}),pe})).apply(this,arguments)}function yn(E,h,v,b){const q=`${h}${v}?${b}`;return E.config.emulator?ae(E.config,q):`${E.config.apiScheme}://${q}`}function ir(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Yn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(xt(this.auth,"network-request-failed")),at.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Ve(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const q=xt(E,h,b);return q.customData._tokenResponse=v,q}function Ot(E){return void 0!==E&&void 0!==E.enterprise}class Xt{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 ir(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function gn(E,h){return mn.apply(this,arguments)}function mn(){return(mn=(0,X.A)(function*(E,h){return Bt(E,"GET","/v2/recaptchaConfig",kt(E,h))})).apply(this,arguments)}function Gt(){return(Gt=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function kr(E,h){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function _r(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function Zn(){return(Zn=(0,X.A)(function*(E,h=!1){const v=(0,re.Ku)(E),b=yield v.getIdToken(h),q=Sr(b);Dt(q&&q.exp&&q.auth_time&&q.iat,v.auth,"internal-error");const pe="object"==typeof q.firebase?q.firebase:void 0,nt=null==pe?void 0:pe.sign_in_provider;return{claims:q,token:b,authTime:_r(wn(q.auth_time)),issuedAtTime:_r(wn(q.iat)),expirationTime:_r(wn(q.exp)),signInProvider:nt||null,signInSecondFactor:(null==pe?void 0:pe.sign_in_second_factor)||null}})).apply(this,arguments)}function wn(E){return 1e3*Number(E)}function Sr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return Ke("JWT malformed, contained fewer than 3 sections"),null;try{const q=(0,re.u)(v);return q?JSON.parse(q):(Ke("Failed to decode base64 JWT payload"),null)}catch(q){return Ke("Caught error parsing JWT payload as JSON",null==q?void 0:q.toString()),null}}function tr(E){const h=Sr(E);return Dt(h,"internal-error"),Dt(typeof h.exp<"u","internal-error"),Dt(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Er(E,h){return Mi.apply(this,arguments)}function Mi(){return(Mi=(0,X.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof re.g&&function Qr({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 Yr{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 q=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,q)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,X.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,X.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 oe{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=_r(this.lastLoginAt),this.creationTime=_r(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function He(E){return ct.apply(this,arguments)}function ct(){return(ct=(0,X.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),q=yield Er(E,kr(v,{idToken:b}));Dt(null==q?void 0:q.users.length,v,"internal-error");const pe=q.users[0];E._notifyReloadListener(pe);const nt=null!==(h=pe.providerUserInfo)&&void 0!==h&&h.length?Pe(pe.providerUserInfo):[],Pt=function he(E,h){return[...E.filter(b=>!h.some(q=>q.providerId===b.providerId)),...h]}(E.providerData,nt),Xn=!!E.isAnonymous&&!(E.email&&pe.passwordHash||null!=Pt&&Pt.length),jr={uid:pe.localId,displayName:pe.displayName||null,photoURL:pe.photoUrl||null,email:pe.email||null,emailVerified:pe.emailVerified||!1,phoneNumber:pe.phoneNumber||null,tenantId:pe.tenantId||null,providerData:Pt,metadata:new oe(pe.createdAt,pe.lastLoginAt),isAnonymous:Xn};Object.assign(E,jr)})).apply(this,arguments)}function ie(){return(ie=(0,X.A)(function*(E){const h=(0,re.Ku)(E);yield He(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Pe(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 rt(){return(rt=(0,X.A)(function*(E,h){const v=yield bn(E,{},(0,X.A)(function*(){const b=(0,re.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:q,apiKey:pe}=E.config,nt=yn(E,q,"/v1/token",`key=${pe}`),Pt=yield E._getAdditionalHeaders();return Pt["Content-Type"]="application/x-www-form-urlencoded",me.fetch()(nt,{method:"POST",headers:Pt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Sn(){return(Sn=(0,X.A)(function*(E,h){return Bt(E,"POST","/v2/accounts:revokeToken",kt(E,h))})).apply(this,arguments)}class Wn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Dt(h.idToken,"internal-error"),Dt(typeof h.idToken<"u","internal-error"),Dt(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){Dt(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,X.A)(function*(){return v||!b.accessToken||b.isExpired?(Dt(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,X.A)(function*(){const{accessToken:q,refreshToken:pe,expiresIn:nt}=yield function Et(E,h){return rt.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(q,pe,Number(nt))})()}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:q,expirationTime:pe}=v,nt=new Wn;return b&&(Dt("string"==typeof b,"internal-error",{appName:h}),nt.refreshToken=b),q&&(Dt("string"==typeof q,"internal-error",{appName:h}),nt.accessToken=q),pe&&(Dt("number"==typeof pe,"internal-error",{appName:h}),nt.expirationTime=pe),nt}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 Wn,this.toJSON())}_performRefresh(){return Be("not implemented")}}function gr(E,h){Dt("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class ur{constructor(h){var{uid:v,auth:b,stsTokenManager:q}=h,pe=(0,Je.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Yr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=q,this.accessToken=q.accessToken,this.displayName=pe.displayName||null,this.email=pe.email||null,this.emailVerified=pe.emailVerified||!1,this.phoneNumber=pe.phoneNumber||null,this.photoURL=pe.photoURL||null,this.isAnonymous=pe.isAnonymous||!1,this.tenantId=pe.tenantId||null,this.providerData=pe.providerData?[...pe.providerData]:[],this.metadata=new oe(pe.createdAt||void 0,pe.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,X.A)(function*(){const b=yield Er(v,v.stsTokenManager.getToken(v.auth,h));return Dt(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 ni(E){return Zn.apply(this,arguments)}(this,h)}reload(){return function Xe(E){return ie.apply(this,arguments)}(this)}_assign(h){this!==h&&(Dt(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 ur(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){Dt(!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,X.A)(function*(){let q=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),q=!0),v&&(yield He(b)),yield b.auth._persistUserIfCurrent(b),q&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,X.A)(function*(){if((0,Ee.xZ)(h.auth.app))return Promise.reject(Tt(h.auth));const v=yield h.getIdToken();return yield Er(h,function Jt(E,h){return Gt.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,q,pe,nt,Pt,on,Dn,Xn;const jr=null!==(b=v.displayName)&&void 0!==b?b:void 0,Oo=null!==(q=v.email)&&void 0!==q?q:void 0,Zi=null!==(pe=v.phoneNumber)&&void 0!==pe?pe:void 0,sa=null!==(nt=v.photoURL)&&void 0!==nt?nt:void 0,Wd=null!==(Pt=v.tenantId)&&void 0!==Pt?Pt:void 0,ou=null!==(on=v._redirectEventId)&&void 0!==on?on:void 0,Kd=null!==(Dn=v.createdAt)&&void 0!==Dn?Dn:void 0,Yu=null!==(Xn=v.lastLoginAt)&&void 0!==Xn?Xn:void 0,{uid:Zu,emailVerified:Ju,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;Dt(Zu&&Cf,h,"internal-error");const qd=Wn.fromJSON(this.name,Cf);Dt("string"==typeof Zu,h,"internal-error"),gr(jr,h.name),gr(Oo,h.name),Dt("boolean"==typeof Ju,h,"internal-error"),Dt("boolean"==typeof Af,h,"internal-error"),gr(Zi,h.name),gr(sa,h.name),gr(Wd,h.name),gr(ou,h.name),gr(Kd,h.name),gr(Yu,h.name);const Xd=new ur({uid:Zu,auth:h,email:Oo,emailVerified:Ju,displayName:jr,isAnonymous:Af,photoURL:sa,phoneNumber:Zi,tenantId:Wd,stsTokenManager:qd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(Xd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(Xd._redirectEventId=ou),Xd}static _fromIdTokenResponse(h,v,b=!1){return(0,X.A)(function*(){const q=new Wn;q.updateFromServerResponse(v);const pe=new ur({uid:v.localId,auth:h,stsTokenManager:q,isAnonymous:b});return yield He(pe),pe})()}static _fromGetAccountInfoResponse(h,v,b){return(0,X.A)(function*(){const q=v.users[0];Dt(void 0!==q.localId,"internal-error");const pe=void 0!==q.providerUserInfo?Pe(q.providerUserInfo):[],nt=!(q.email&&q.passwordHash||null!=pe&&pe.length),Pt=new Wn;Pt.updateFromIdToken(b);const on=new ur({uid:q.localId,auth:h,stsTokenManager:Pt,isAnonymous:nt}),Dn={uid:q.localId,displayName:q.displayName||null,photoURL:q.photoUrl||null,email:q.email||null,emailVerified:q.emailVerified||!1,phoneNumber:q.phoneNumber||null,tenantId:q.tenantId||null,providerData:pe,metadata:new oe(q.createdAt,q.lastLoginAt),isAnonymous:!(q.email&&q.passwordHash||null!=pe&&pe.length)};return Object.assign(on,Dn),on})()}}const ri=new Map;function xn(E){rn(E instanceof Function,"Expected a class definition");let h=ri.get(E);return h?(rn(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,ri.set(E,h),h)}const yr=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,X.A)(function*(){return!0})()}_set(v,b){var q=this;return(0,X.A)(function*(){q.storage[v]=b})()}_get(v){var b=this;return(0,X.A)(function*(){const q=b.storage[v];return void 0===q?null:q})()}_remove(v){var b=this;return(0,X.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Ei(E,h,v){return`firebase:${E}:${h}:${v}`}class ii{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:q,name:pe}=this.auth;this.fullUserKey=Ei(this.userKey,q.apiKey,pe),this.fullPersistenceKey=Ei("persistence",q.apiKey,pe),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,X.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?ur._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,X.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,X.A)(function*(){if(!v.length)return new ii(xn(yr),h,b);const q=(yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(yield Xn._isAvailable())return Xn});return function(Xn){return Dn.apply(this,arguments)}}()))).filter(Dn=>Dn);let pe=q[0]||xn(yr);const nt=Ei(b,h.config.apiKey,h.name);let Pt=null;for(const Dn of v)try{const Xn=yield Dn._get(nt);if(Xn){const jr=ur._fromJSON(h,Xn);Dn!==pe&&(Pt=jr),pe=Dn;break}}catch{}const on=q.filter(Dn=>Dn._shouldAllowMigration);return pe._shouldAllowMigration&&on.length?(pe=on[0],Pt&&(yield pe._set(nt,Pt.toJSON())),yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(Xn!==pe)try{yield Xn._remove(nt)}catch{}});return function(Xn){return Dn.apply(this,arguments)}}())),new ii(pe,h,b)):new ii(pe,h,b)})()}}function pi(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(wi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Ui(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(St(h))return"Blackberry";if(lt(h))return"Webos";if(or(h))return"Safari";if((h.includes("chrome/")||Hi(h))&&!h.includes("edge/"))return"Chrome";if(gi(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 Ui(E=(0,re.ZQ)()){return/firefox\//i.test(E)}function or(E=(0,re.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Hi(E=(0,re.ZQ)()){return/crios\//i.test(E)}function wi(E=(0,re.ZQ)()){return/iemobile/i.test(E)}function gi(E=(0,re.ZQ)()){return/android/i.test(E)}function St(E=(0,re.ZQ)()){return/blackberry/i.test(E)}function lt(E=(0,re.ZQ)()){return/webos/i.test(E)}function Ut(E=(0,re.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function Z(E=(0,re.ZQ)()){return Ut(E)||gi(E)||lt(E)||St(E)||/windows phone/i.test(E)||wi(E)}function Q(E,h=[]){let v;switch(E){case"Browser":v=pi((0,re.ZQ)());break;case"Worker":v=`${pi((0,re.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ee.MF}/${b}`}class Se{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=pe=>new Promise((nt,Pt)=>{try{nt(h(pe))}catch(on){Pt(on)}});b.onAbort=v,this.queue.push(b);const q=this.queue.length-1;return()=>{this.queue[q]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,X.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const q of v.queue)yield q(h),q.onAbort&&b.push(q.onAbort)}catch(q){b.reverse();for(const pe of b)try{pe()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==q?void 0:q.message})}})()}}function Wt(){return(Wt=(0,X.A)(function*(E,h={}){return Bt(E,"GET","/v2/passwordPolicy",kt(E,h))})).apply(this,arguments)}class Pn{constructor(h){var v,b,q,pe;const nt=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=nt.minPasswordLength)&&void 0!==v?v:6,nt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=nt.maxPasswordLength),void 0!==nt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=nt.containsLowercaseCharacter),void 0!==nt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=nt.containsUppercaseCharacter),void 0!==nt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=nt.containsNumericCharacter),void 0!==nt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=nt.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(q=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==q?q:"",this.forceUpgradeOnSignin=null!==(pe=h.forceUpgradeOnSignin)&&void 0!==pe&&pe,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,q,pe,nt,Pt;const on={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,on),this.validatePasswordCharacterOptions(h,on),on.isValid&&(on.isValid=null===(v=on.meetsMinPasswordLength)||void 0===v||v),on.isValid&&(on.isValid=null===(b=on.meetsMaxPasswordLength)||void 0===b||b),on.isValid&&(on.isValid=null===(q=on.containsLowercaseLetter)||void 0===q||q),on.isValid&&(on.isValid=null===(pe=on.containsUppercaseLetter)||void 0===pe||pe),on.isValid&&(on.isValid=null===(nt=on.containsNumericCharacter)||void 0===nt||nt),on.isValid&&(on.isValid=null===(Pt=on.containsNonAlphanumericCharacter)||void 0===Pt||Pt),on}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,q=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),q&&(v.meetsMaxPasswordLength=h.length<=q)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let q=0;q="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,q,pe){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=q)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=pe))}}class Cr{constructor(h,v,b,q){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=q,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new $i(this),this.idTokenSubscription=new $i(this),this.beforeStateQueue=new Se(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=mt,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=q.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=xn(v)),this._initializationPromise=this.queue((0,X.A)(function*(){var q,pe;if(!b._deleted&&(b.persistenceManager=yield ii.create(b,h),!b._deleted)){if(null!==(q=b._popupRedirectResolver)&&void 0!==q&&q._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(pe=b.currentUser)||void 0===pe?void 0:pe.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,X.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,X.A)(function*(){try{const b=yield kr(v,{idToken:h}),q=yield ur._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(q)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,X.A)(function*(){var b;if((0,Ee.xZ)(v.app)){const Pt=v.app.settings.authIdToken;return Pt?new Promise(on=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Pt).then(on,on))}):v.directlySetCurrentUser(null)}const q=yield v.assertedPersistence.getCurrentUser();let pe=q,nt=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Pt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,on=null==pe?void 0:pe._redirectEventId,Dn=yield v.tryRedirectSignIn(h);(!Pt||Pt===on)&&null!=Dn&&Dn.user&&(pe=Dn.user,nt=!0)}if(!pe)return v.directlySetCurrentUser(null);if(!pe._redirectEventId){if(nt)try{yield v.beforeStateQueue.runMiddleware(pe)}catch(Pt){pe=q,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Pt))}return pe?v.reloadAndSetCurrentUserOrClear(pe):v.directlySetCurrentUser(null)}return Dt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===pe._redirectEventId?v.directlySetCurrentUser(pe):v.reloadAndSetCurrentUserOrClear(pe)})()}tryRedirectSignIn(h){var v=this;return(0,X.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,X.A)(function*(){try{yield He(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 te(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,X.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,X.A)(function*(){if((0,Ee.xZ)(v.app))return Promise.reject(Tt(v));const b=h?(0,re.Ku)(h):null;return b&&Dt(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,X.A)(function*(){if(!b._deleted)return h&&Dt(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,X.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,X.A)(function*(){return(0,Ee.xZ)(h.app)?Promise.reject(Tt(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(Tt(this)):this.queue((0,X.A)(function*(){yield v.assertedPersistence.setPersistence(xn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,X.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,X.A)(function*(){const v=yield function it(E){return Wt.apply(this,arguments)}(h),b=new Pn(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new re.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,X.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),q={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(q.tenantId=v.tenantId),yield function dn(E,h){return Sn.apply(this,arguments)}(v,q)}})()}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,X.A)(function*(){const q=yield b.getOrInitRedirectPersistenceManager(v);return null===h?q.removeCurrentUser():q.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,X.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&xn(h)||v._popupRedirectResolver;Dt(b,v,"argument-error"),v.redirectPersistenceManager=yield ii.create(v,[xn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,X.A)(function*(){var b,q;return v._isInitialized&&(yield v.queue((0,X.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(q=v.redirectUser)||void 0===q?void 0:q._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,X.A)(function*(){if(h===v.currentUser)return v.queue((0,X.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,q){if(this._deleted)return()=>{};const pe="function"==typeof v?v:v.next.bind(v);let nt=!1;const Pt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Dt(Pt,this,"internal-error"),Pt.then(()=>{nt||pe(this.currentUser)}),"function"==typeof v){const on=h.addObserver(v,b,q);return()=>{nt=!0,on()}}{const on=h.addObserver(v);return()=>{nt=!0,on()}}}directlySetCurrentUser(h){var v=this;return(0,X.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 Dt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=Q(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,X.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const q=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();q&&(b["X-Firebase-Client"]=q);const pe=yield h._getAppCheckToken();return pe&&(b["X-Firebase-AppCheck"]=pe),b})()}_getAppCheckToken(){var h=this;return(0,X.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 je(E,...h){Me.logLevel<=Ze.$b.WARN&&Me.warn(`Auth (${Ee.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function Hn(E){return(0,re.Ku)(E)}class $i{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,re.tD)(v=>this.observer=v)}get next(){return Dt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Ai={loadJS:()=>(0,X.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function xr(E){return Ai.loadJS(E)}function Si(E){return`__${E}${Math.floor(1e6*Math.random())}`}class oi{constructor(h){this.type="recaptcha-enterprise",this.auth=Hn(h)}verify(h="verify",v=!1){var b=this;return(0,X.A)(function*(){function pe(){return pe=(0,X.A)(function*(Pt){if(!v){if(null==Pt.tenantId&&null!=Pt._agentRecaptchaConfig)return Pt._agentRecaptchaConfig.siteKey;if(null!=Pt.tenantId&&void 0!==Pt._tenantRecaptchaConfigs[Pt.tenantId])return Pt._tenantRecaptchaConfigs[Pt.tenantId].siteKey}return new Promise(function(){var on=(0,X.A)(function*(Dn,Xn){gn(Pt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(jr=>{if(void 0!==jr.recaptchaKey){const Oo=new Xt(jr);return null==Pt.tenantId?Pt._agentRecaptchaConfig=Oo:Pt._tenantRecaptchaConfigs[Pt.tenantId]=Oo,Dn(Oo.siteKey)}Xn(new Error("recaptcha Enterprise site key undefined"))}).catch(jr=>{Xn(jr)})});return function(Dn,Xn){return on.apply(this,arguments)}}())}),pe.apply(this,arguments)}function nt(Pt,on,Dn){const Xn=window.grecaptcha;Ot(Xn)?Xn.enterprise.ready(()=>{Xn.enterprise.execute(Pt,{action:h}).then(jr=>{on(jr)}).catch(()=>{on("NO_RECAPTCHA")})}):Dn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Pt,on)=>{(function q(Pt){return pe.apply(this,arguments)})(b.auth).then(Dn=>{if(!v&&Ot(window.grecaptcha))nt(Dn,Pt,on);else{if(typeof window>"u")return void on(new Error("RecaptchaVerifier is only supported in browser"));let Xn=function xi(){return Ai.recaptchaEnterpriseScript}();0!==Xn.length&&(Xn+=Dn),xr(Xn).then(()=>{nt(Dn,Pt,on)}).catch(jr=>{on(jr)})}}).catch(Dn=>{on(Dn)})})})()}}function Nn(E,h,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,X.A)(function*(E,h,v,b=!1){const q=new oi(E);let pe;try{pe=yield q.verify(v)}catch{pe=yield q.verify(v,!0)}const nt=Object.assign({},h);return Object.assign(nt,b?{captchaResp:pe}:{captchaResponse:pe}),Object.assign(nt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(nt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),nt})).apply(this,arguments)}function ko(E,h,v,b){return ei.apply(this,arguments)}function ei(){return ei=(0,X.A)(function*(E,h,v,b){var q;if(null!==(q=E._getRecaptchaConfig())&&void 0!==q&&q.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const pe=yield Nn(E,h,v,"getOobCode"===v);return b(E,pe)}return b(E,h).catch(function(){var pe=(0,X.A)(function*(nt){if("auth/missing-recaptcha-token"===nt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Pt=yield Nn(E,h,v,"getOobCode"===v);return b(E,Pt)}return Promise.reject(nt)});return function(nt){return pe.apply(this,arguments)}}())}),ei.apply(this,arguments)}function Or(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function jn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class Ao{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 H.apply(this,arguments)}function H(){return(H=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function fe(E,h){return qe.apply(this,arguments)}function qe(){return(qe=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithPassword",kt(E,h))})).apply(this,arguments)}function Yt(){return(Yt=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}function Cn(){return(Cn=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}class Ln extends Ao{constructor(h,v,b,q=null){super("password",b),this._email=h,this._password=v,this._tenantId=q}static _fromEmailAndPassword(h,v){return new Ln(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Ln(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,X.A)(function*(){switch(v.signInMethod){case"password":return ko(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",fe);case"emailLink":return function Kt(E,h){return Yt.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Ct(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,X.A)(function*(){switch(b.signInMethod){case"password":return ko(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function _n(E,h){return Cn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Ct(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function In(E,h){return br.apply(this,arguments)}function br(){return(br=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithIdp",kt(E,h))})).apply(this,arguments)}class os{constructor(h){var v,b,q,pe,nt,Pt;const on=(0,re.I9)((0,re.hp)(h)),Dn=null!==(v=on.apiKey)&&void 0!==v?v:null,Xn=null!==(b=on.oobCode)&&void 0!==b?b:null,jr=function Do(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!==(q=on.mode)&&void 0!==q?q:null);Dt(Dn&&Xn&&jr,"argument-error"),this.apiKey=Dn,this.operation=jr,this.code=Xn,this.continueUrl=null!==(pe=on.continueUrl)&&void 0!==pe?pe:null,this.languageCode=null!==(nt=on.languageCode)&&void 0!==nt?nt:null,this.tenantId=null!==(Pt=on.tenantId)&&void 0!==Pt?Pt:null}static parseLink(h){const v=function xa(E){const h=(0,re.I9)((0,re.hp)(E)).link,v=h?(0,re.I9)((0,re.hp)(h)).deep_link_id:null,b=(0,re.I9)((0,re.hp)(E)).deep_link_id;return(b?(0,re.I9)((0,re.hp)(b)).link:null)||b||v||h||E}(h);try{return new os(v)}catch{return null}}}let Pr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Ln._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const q=os.parseLink(b);return Dt(q,"argument-error"),Ln._fromEmailAndCode(v,q.code,q.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 Xo(E,h){return bo.apply(this,arguments)}function bo(){return(bo=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signUp",kt(E,h))})).apply(this,arguments)}class ji{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,q=!1){return(0,X.A)(function*(){const pe=yield ur._fromIdTokenResponse(h,b,q),nt=da(b);return new ji({user:pe,providerId:nt,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,X.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const q=da(b);return new ji({user:h,providerId:q,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class P extends re.g{constructor(h,v,b,q){var pe;super(v.code,v.message),this.operationType=b,this.user=q,Object.setPrototypeOf(this,P.prototype),this.customData={appName:h.name,tenantId:null!==(pe=h.tenantId)&&void 0!==pe?pe:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,q){return new P(h,v,b,q)}}function ce(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(pe=>{throw"auth/multi-factor-auth-required"===pe.code?P._fromErrorAndOperation(E,pe,h,b):pe})}function rr(){return(rr=(0,X.A)(function*(E,h,v=!1){const b=yield Er(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return ji._forOperation(E,"link",b)})).apply(this,arguments)}function Qo(){return(Qo=(0,X.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ee.xZ)(b.app))return Promise.reject(Tt(b));const q="reauthenticate";try{const pe=yield Er(E,ce(b,q,h,E),v);Dt(pe.idToken,b,"internal-error");const nt=Sr(pe.idToken);Dt(nt,b,"internal-error");const{sub:Pt}=nt;return Dt(E.uid===Pt,b,"user-mismatch"),ji._forOperation(E,q,pe)}catch(pe){throw"auth/user-not-found"===(null==pe?void 0:pe.code)&&Ct(b,"user-mismatch"),pe}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,X.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b="signIn",q=yield ce(E,b,h),pe=yield ji._fromIdTokenResponse(E,b,q);return v||(yield E._updateCurrentUser(pe.user)),pe})).apply(this,arguments)}function Oa(){return(Oa=(0,X.A)(function*(E,h){return Na(Hn(E),h)})).apply(this,arguments)}function Vl(E){return vr.apply(this,arguments)}function vr(){return(vr=(0,X.A)(function*(E){const h=Hn(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Yo.apply(this,arguments)}function Yo(){return(Yo=(0,X.A)(function*(E,h,v){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),nt=yield ko(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Xo).catch(on=>{throw"auth/password-does-not-meet-requirements"===on.code&&Vl(E),on}),Pt=yield ji._fromIdTokenResponse(b,"signIn",nt);return yield b._updateCurrentUser(Pt.user),Pt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ee.xZ)(E.app)?Promise.reject(Tt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,re.Ku)(E),Pr.credential(h,v)).catch(function(){var b=(0,X.A)(function*(q){throw"auth/password-does-not-meet-requirements"===q.code&&Vl(E),q});return function(q){return b.apply(this,arguments)}}())}function ki(E,h,v,b){return(0,re.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 Lr(){const E=(0,re.ZQ)();return or(E)||Ut(E)}()&&function Ne(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Z(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const q=this.storage.getItem(b),pe=this.localCache[b];q!==pe&&v(b,pe,q)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Pt,on,Dn)=>{this.notifyListeners(Pt,Dn)});const q=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Pt=this.storage.getItem(q);if(v.newValue!==Pt)null!==v.newValue?this.storage.setItem(q,v.newValue):this.storage.removeItem(q);else if(this.localCache[q]===v.newValue&&!b)return}const pe=()=>{const Pt=this.storage.getItem(q);!b&&this.localCache[q]===Pt||this.notifyListeners(q,Pt)},nt=this.storage.getItem(q);!function Y(){return(0,re.lT)()&&10===document.documentMode}()||nt===v.newValue||v.newValue===v.oldValue?pe():setTimeout(pe,10)}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,q)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:q}),!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 q=()=>super._set,pe=this;return(0,X.A)(function*(){yield q().call(pe,v,b),pe.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,q=this;return(0,X.A)(function*(){const pe=yield b().call(q,v);return q.localCache[v]=JSON.stringify(pe),pe})()}_remove(v){var b=()=>super._remove,q=this;return(0,X.A)(function*(){yield b().call(q,v),delete q.localCache[v]})()}}return E.type="LOCAL",E})(),$o=(()=>{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(pe=>pe.isListeningto(v));if(b)return b;const q=new E(v);return this.receivers.push(q),q}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,X.A)(function*(){const q=v,{eventId:pe,eventType:nt,data:Pt}=q.data,on=b.handlersMap[nt];if(null==on||!on.size)return;q.ports[0].postMessage({status:"ack",eventId:pe,eventType:nt});const Dn=Array.from(on).map(function(){var jr=(0,X.A)(function*(Oo){return Oo(q.origin,Pt)});return function(Oo){return jr.apply(this,arguments)}}()),Xn=yield function ya(E){return Promise.all(E.map(function(){var h=(0,X.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)}}()))}(Dn);q.ports[0].postMessage({status:"done",eventId:pe,eventType:nt,response:Xn})})()}_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 Vi(E="",h=10){let v="";for(let b=0;b{const Xn=Vi("",20);pe.port1.start();const jr=setTimeout(()=>{Dn(new Error("unsupported_event"))},b);Pt={messageChannel:pe,onMessage(Oo){const Zi=Oo;if(Zi.data.eventId===Xn)switch(Zi.data.status){case"ack":clearTimeout(jr),nt=setTimeout(()=>{Dn(new Error("timeout"))},3e3);break;case"done":clearTimeout(nt),on(Zi.data.response);break;default:clearTimeout(jr),clearTimeout(nt),Dn(new Error("invalid_response"))}}},q.handlers.add(Pt),pe.port1.addEventListener("message",Pt.onMessage),q.target.postMessage({eventType:h,eventId:Xn,data:v},[pe.port2])}).finally(()=>{Pt&&q.removeMessageHandler(Pt)})})()}}function Ur(){return window}function zl(){return typeof Ur().WorkerGlobalScope<"u"&&"function"==typeof Ur().importScripts}function Ia(){return(Ia=(0,X.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(q){v(q)}}),E.addEventListener("success",(0,X.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 qs(E,h,v){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,X.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,X.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,X.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,X.A)(function*(){let q=0;for(;;)try{const pe=yield b._openDb();return yield v(pe)}catch(pe){if(q++>3)throw pe;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,X.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,X.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,X.A)(function*(q,pe){return{keyProcessed:(yield v._poll()).includes(pe.key)}});return function(q,pe){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,X.A)(function*(q,pe){return["keyChanged"]});return function(q,pe){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,X.A)(function*(){var b,q;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const pe=yield v.sender._send("ping",{},800);pe&&null!==(b=pe[0])&&void 0!==b&&b.fulfilled&&null!==(q=pe[0])&&void 0!==q&&q.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,X.A)(function*(){if(b.sender&&b.activeServiceWorker&&function us(){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,X.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield qs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,X.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var q=this;return(0,X.A)(function*(){return q._withPendingWrite((0,X.A)(function*(){return yield q._withRetries(pe=>qs(pe,v,b)),q.localCache[v]=b,q.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,X.A)(function*(){const q=yield b._withRetries(pe=>function Ad(E,h){return Cd.apply(this,arguments)}(pe,v));return b.localCache[v]=q,q})()}_remove(v){var b=this;return(0,X.A)(function*(){return b._withPendingWrite((0,X.A)(function*(){return yield b._withRetries(q=>Td(q,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,X.A)(function*(){const b=yield v._withRetries(nt=>{const Pt=ja(nt,!1).getAll();return new Ba(Pt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const q=[],pe=new Set;if(0!==b.length)for(const{fbase_key:nt,value:Pt}of b)pe.add(nt),JSON.stringify(v.localCache[nt])!==JSON.stringify(Pt)&&(v.notifyListeners(nt,Pt),q.push(nt));for(const nt of Object.keys(v.localCache))v.localCache[nt]&&!pe.has(nt)&&(v.notifyListeners(nt,null),q.push(nt));return q})()}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,X.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})();Si("rcb"),new de(3e4,6e4);class So extends Ao{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return In(h,this._buildIdpRequest())}_linkToIdToken(h,v){return In(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return In(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 So(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function eo(E,h){return Qo.apply(this,arguments)}(v,new So(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,X.A)(function*(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function On(E,h){return rr.apply(this,arguments)}(v,new So(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,q,pe=!1){this.auth=h,this.resolver=b,this.user=q,this.bypassAuthState=pe,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,X.A)(function*(b,q){h.pendingPromise={resolve:b,reject:q};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(pe){h.reject(pe)}});return function(b,q){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,X.A)(function*(){const{urlResponse:b,sessionId:q,postBody:pe,tenantId:nt,error:Pt,type:on}=h;if(Pt)return void v.reject(Pt);const Dn={auth:v.auth,requestUri:b,sessionId:q,tenantId:nt||void 0,postBody:pe||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(on)(Dn))}catch(Xn){v.reject(Xn)}})()}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:Ct(this.auth,"internal-error")}}resolve(h){rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){rn(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 de(2e3,1e4);const Gn="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,X.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const pe=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(pe)}catch(q){b=()=>Promise.reject(q)}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,X.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const q=yield b.auth._redirectUserForId(h.eventId);if(q)return b.user=q,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,X.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,X.A)(function*(E,h){const v=function ml(E){return Ei(Gn,E.config.apiKey,E.name)}(h),b=function qh(E){return xn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const q="true"===(yield b._get(v));return yield b._remove(v),q})).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,X.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),q=function cs(E,h){return h?xn(h):(Dt(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),nt=yield new wd(b,q,v).execute();return nt&&!v&&(delete nt.user._redirectEventId,yield b._persistUserIfCurrent(nt.user),yield b._setRedirectUser(null,h)),nt})).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 q=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(xt(this.auth,q))}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,X.A)(function*(E,h={}){return Bt(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Io=/^https?/;function Ou(){return Ou=(0,X.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{}Ct(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=pt(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const nt=new URL(E);return""===nt.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&nt.hostname===b}if(!Io.test(v))return!1;if(Md.test(E))return b===E;const q=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+q+"|"+q+")$","i").test(b)}const Dc=new de(3e4,6e4);function bc(){const E=Ur().___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,q,pe;function nt(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(xt(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(q=null===(b=Ur().gapi)||void 0===b?void 0:b.iframes)&&void 0!==q&&q.Iframe)h(gapi.iframes.getContext());else{if(null===(pe=Ur().gapi)||void 0===pe||!pe.load){const Pt=Si("iframefcb");return Ur()[Pt]=()=>{gapi.load?nt():v(xt(E,"network-request-failed"))},xr(`${function mi(){return Ai.gapiScript}()}?onload=${Pt}`).catch(on=>v(on))}nt()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Ur().gapi;return Dt(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 q=(0,X.A)(function*(pe,nt){yield b.restyle({setHideOnLeave:!1});const Pt=xt(E,"network-request-failed"),on=Ur().setTimeout(()=>{nt(Pt)},Zh.get());function Dn(){Ur().clearTimeout(on),pe(b)}b.ping(Dn).then(Dn,()=>{nt(Pt)})});return function(pe,nt){return q.apply(this,arguments)}}()))}),yi.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Lu{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,q,pe){return ia.apply(this,arguments)}function ia(){return(ia=(0,X.A)(function*(E,h,v,b,q,pe){Dt(E.config.authDomain,E,"auth-domain-config-required"),Dt(E.config.apiKey,E,"invalid-api-key");const nt={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ee.MF,eventId:q};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),nt.providerId=h.providerId||"",(0,re.Im)(h.getCustomParameters())||(nt.customParameters=JSON.stringify(h.getCustomParameters()));for(const[Xn,jr]of Object.entries(pe||{}))nt[Xn]=jr}if(h instanceof Us){const Xn=h.getScopes().filter(jr=>""!==jr);Xn.length>0&&(nt.scopes=Xn.join(","))}E.tenantId&&(nt.tid=E.tenantId);const Pt=nt;for(const Xn of Object.keys(Pt))void 0===Pt[Xn]&&delete Pt[Xn];const on=yield E._getAppCheckToken(),Dn=on?`#${Sc}=${encodeURIComponent(on)}`:"";return`${function Rc({config:E}){return E.emulator?ae(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,re.Am)(Pt).slice(1)}${Dn}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=$o,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,q){var pe=this;return(0,X.A)(function*(){var nt;rn(null===(nt=pe.eventManagers[h._key()])||void 0===nt?void 0:nt.manager,"_initialize() not called before _openPopup()");const Pt=yield ra(h,v,b,pt(),q);return function Uu(E,h,v,b=500,q=600){const pe=Math.max((window.screen.availHeight-q)/2,0).toString(),nt=Math.max((window.screen.availWidth-b)/2,0).toString();let Pt="";const on=Object.assign(Object.assign({},rg),{width:b.toString(),height:q.toString(),top:pe,left:nt}),Dn=(0,re.ZQ)().toLowerCase();v&&(Pt=Hi(Dn)?"_blank":v),Ui(Dn)&&(h=h||"http://localhost",on.scrollbars="yes");const Xn=Object.entries(on).reduce((Oo,[Zi,sa])=>`${Oo}${Zi}=${sa},`,"");if(function Kn(E=(0,re.ZQ)()){var h;return Ut(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(Dn)&&"_self"!==Pt)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||"",Pt),new Lu(null);const jr=window.open(h||"",Pt,Xn);Dt(jr,E,"popup-blocked");try{jr.focus()}catch{}return new Lu(jr)}(h,Pt,Vi())})()}_openRedirect(h,v,b,q){var pe=this;return(0,X.A)(function*(){return yield pe._originValidation(h),function _o(E){Ur().location.href=E}(yield ra(h,v,b,pt(),q)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:q,promise:pe}=this.eventManagers[v];return q?Promise.resolve(q):(rn(pe,"If manager is not set, promise should be"),pe)}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,X.A)(function*(){const b=yield function ba(E){return yi.apply(this,arguments)}(h),q=new ta(h);return b.register("authEvent",pe=>(Dt(null==pe?void 0:pe.authEvent,h,"invalid-auth-event"),{status:q.onEvent(pe.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:q},v.iframes[h._key()]=b,q})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},q=>{var pe;const nt=null===(pe=null==q?void 0:q[0])||void 0===pe?void 0:pe[vl];void 0!==nt&&v(!!nt),Ct(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 Z()||or()||Ut()}};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,X.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(){Dt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Jl=(0,re.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,X.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),q=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(q&&q>Jl)return;const pe=null==b?void 0:b.token;rf!==pe&&(rf=pe,yield fetch(E,{method:pe?"POST":"DELETE",headers:pe?{Authorization:`Bearer ${pe}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Vd(E=(0,Ee.Sx)()){const h=(0,Ee.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function ps(E,h){const v=(0,Ee.j6)(E,"auth");if(v.isInitialized()){const q=v.getImmediate(),pe=v.getOptions();if((0,re.bD)(pe,null!=h?h:{}))return q;Ct(q,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,$o]}),b=(0,re.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const pe=new URL(b,location.origin);if(location.origin===pe.origin){const nt=sf(pe.toString());(function Gr(E,h,v){(0,re.Ku)(E).beforeAuthStateChanged(h,v)})(v,nt,()=>nt(v.currentUser)),ki(v,Pt=>nt(Pt))}}const q=(0,re.Tj)("auth");return q&&function sr(E,h,v){const b=Hn(E);Dt(b._canInitEmulator,b,"emulator-config-failed"),Dt(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const q=!(null==v||!v.disableWarnings),pe=Or(h),{host:nt,port:Pt}=function ai(E){const h=Or(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",q=/^(\[[^\]]+\])(:|$)/.exec(b);if(q){const pe=q[1];return{host:pe,port:jn(b.substr(pe.length+1))}}{const[pe,nt]=b.split(":");return{host:pe,port:jn(nt)}}}(h);b.config.emulator={url:`${pe}//${nt}${null===Pt?"":`:${Pt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:nt,port:Pt,protocol:pe.replace(":",""),options:Object.freeze({disableWarnings:q})}),q||function Fo(){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://${q}`),v}(function Pi(E){Ai=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=q=>{const pe=xt("internal-error");pe.customData=q,v(pe)},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 De.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),q=h.getProvider("heartbeat"),pe=h.getProvider("app-check-internal"),{apiKey:nt,authDomain:Pt}=b.options;Dt(nt&&!nt.includes(":"),"invalid-api-key",{appName:b.name});const on={apiKey:nt,authDomain:Pt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Q(E)},Dn=new Cr(b,q,pe,on);return function si(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(xn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(Dn,v),Dn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ee.om)(new De.uA("auth-internal",h=>{const v=Hn(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=B(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:ki(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class qa{constructor(h){return h}}class Al{constructor(){return(0,g.CA)("auth")}}const eu=new d.nKC("angularfire2.auth-instances");function af(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new qa(b)}}const lf={provide:Al,deps:[[new d.Xx1,eu]]},sg={provide:qa,useFactory:function Ud(E,h){const v=(0,g.lR)("auth",E,h);return v&&new qa(v)},deps:[[new d.Xx1,eu],ge.XU]};function Cl(E,...h){return(0,Oe.KO)("angularfire",g.xv.full,"auth"),(0,d.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Vd,!0),qu=(0,g.S3)(Ss,!0)},4262:(En,bt,B)=>{"use strict";B.d(bt,{_7:()=>vh,rJ:()=>g0,kd:()=>m0,H9:()=>sm,x7:()=>lm,GG:()=>r_,aU:()=>um,hV:()=>Zv,BN:()=>S0,mZ:()=>R0});var $e,Le,g=B(3586),d=B(4438),ge=B(7440),Oe=B(8737),X=B(2214),Ee=B(467),re=B(7852),Ze=B(1362),Je=B(8041),De=B(1076),_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fe={};(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(ht,Ue,tt){tt||(tt=0);var gt=Array(16);if("string"==typeof Ue)for(var It=0;16>It;++It)gt[It]=Ue.charCodeAt(tt++)|Ue.charCodeAt(tt++)<<8|Ue.charCodeAt(tt++)<<16|Ue.charCodeAt(tt++)<<24;else for(It=0;16>It;++It)gt[It]=Ue[tt++]|Ue[tt++]<<8|Ue[tt++]<<16|Ue[tt++]<<24;var Nt=ht.g[3],Ye=(Ue=ht.g[0])+(Nt^(tt=ht.g[1])&((It=ht.g[2])^Nt))+gt[0]+3614090360&4294967295;Ye=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=tt+(Ye<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[1]+3905402710&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[2]+606105819&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[3]+3250441966&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[4]+4118548399&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[5]+1200080426&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[6]+2821735955&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[7]+4249261313&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[8]+1770035416&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[9]+2336552879&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[10]+4294925233&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[11]+2304563134&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[12]+1804603682&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[13]+4254626195&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[14]+2792965006&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[15]+1236535329&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(It^Nt&(tt^It))+gt[1]+4129170786&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[6]+3225465664&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[11]+643717713&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[0]+3921069994&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[5]+3593408605&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[10]+38016083&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[15]+3634488961&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[4]+3889429448&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[9]+568446438&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[14]+3275163606&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[3]+4107603335&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[8]+1163531501&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[13]+2850285829&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[2]+4243563512&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[7]+1735328473&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[12]+2368359562&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(tt^It^Nt)+gt[5]+4294588738&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[8]+2272392833&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[11]+1839030562&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[14]+4259657740&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[1]+2763975236&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[4]+1272893353&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[7]+4139469664&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[10]+3200236656&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[13]+681279174&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[0]+3936430074&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[3]+3572445317&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[6]+76029189&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[9]+3654602809&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[12]+3873151461&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[15]+530742520&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[2]+3299628645&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(It^(tt|~Nt))+gt[0]+4096336452&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[7]+1126891415&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[14]+2878612391&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[5]+4237533241&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~Nt))+gt[12]+1700485571&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[3]+2399980690&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[10]+4293915773&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[1]+2240044497&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~Nt))+gt[8]+1873313359&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[15]+4264355552&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[6]+2734768916&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[13]+1309151649&4294967295)<<21&4294967295|Ye>>>11))+((Nt=(Ue=tt+((Ye=Ue+(It^(tt|~Nt))+gt[4]+4149444226&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[11]+3174756917&4294967295)<<10&4294967295|Ye>>>22))^((It=Nt+((Ye=It+(Ue^(Nt|~tt))+gt[2]+718787259&4294967295)<<15&4294967295|Ye>>>17))|~Ue))+gt[9]+3951481745&4294967295,ht.g[0]=ht.g[0]+Ue&4294967295,ht.g[1]=ht.g[1]+(It+(Ye<<21&4294967295|Ye>>>11))&4294967295,ht.g[2]=ht.g[2]+It&4294967295,ht.g[3]=ht.g[3]+Nt&4294967295}function _(ht,Ue){this.h=Ue;for(var tt=[],gt=!0,It=ht.length-1;0<=It;It--){var Nt=0|ht[It];gt&&Nt==Ue||(tt[It]=Nt,gt=!1)}this.g=tt}(function n(ht,Ue){function tt(){}tt.prototype=Ue.prototype,ht.D=Ue.prototype,ht.prototype=new tt,ht.prototype.constructor=ht,ht.C=function(gt,It,Nt){for(var Ye=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);ht[0]=128;for(var Ue=1;UeUe;++Ue)for(var gt=0;32>gt;gt+=8)ht[tt++]=this.g[Ue]>>>gt&255;return ht};var w={};function N(ht){return-128<=ht&&128>ht?function f(ht,Ue){var tt=w;return Object.prototype.hasOwnProperty.call(tt,ht)?tt[ht]:tt[ht]=Ue(ht)}(ht,function(Ue){return new _([0|Ue],0>Ue?-1:0)}):new _([0|ht],0>ht?-1:0)}function z(ht){if(isNaN(ht)||!isFinite(ht))return we;if(0>ht)return ln(z(-ht));for(var Ue=[],tt=1,gt=0;ht>=tt;gt++)Ue[gt]=ht/tt|0,tt*=4294967296;return new _(Ue,0)}var we=N(0),We=N(1),Rt=N(16777216);function tn(ht){if(0!=ht.h)return!1;for(var Ue=0;Ue>>16,ht[Ue]&=65535,Ue++}function Qn(ht,Ue){this.g=ht,this.h=Ue}function Rr(ht,Ue){if(tn(Ue))throw Error("division by zero");if(tn(ht))return new Qn(we,we);if(pn(ht))return Ue=Rr(ln(ht),Ue),new Qn(ln(Ue.g),ln(Ue.h));if(pn(Ue))return Ue=Rr(ht,ln(Ue)),new Qn(ln(Ue.g),Ue.h);if(30=gt.l(ht);)tt=Ii(tt),gt=Ii(gt);var It=zr(tt,1),Nt=zr(gt,1);for(gt=zr(gt,2),tt=zr(tt,2);!tn(gt);){var Ye=Nt.add(gt);0>=Ye.l(ht)&&(It=It.add(tt),Nt=Ye),gt=zr(gt,1),tt=zr(tt,1)}return Ue=zn(ht,It.j(Ue)),new Qn(It,Ue)}for(It=we;0<=ht.l(Ue);){for(tt=Math.max(1,Math.floor(ht.m()/Ue.m())),gt=48>=(gt=Math.ceil(Math.log(tt)/Math.LN2))?1:Math.pow(2,gt-48),Ye=(Nt=z(tt)).j(Ue);pn(Ye)||0>>31;return new _(tt,ht.h)}function zr(ht,Ue){var tt=Ue>>5;Ue%=32;for(var gt=ht.g.length-tt,It=[],Nt=0;Nt>>Ue|ht.i(Nt+tt+1)<<32-Ue:ht.i(Nt+tt);return new _(It,ht.h)}(l=_.prototype).m=function(){if(pn(this))return-ln(this).m();for(var ht=0,Ue=1,tt=0;tt(ht=ht||10)||36>>0).toString(ht);if(tn(tt=It))return Nt+gt;for(;6>Nt.length;)Nt="0"+Nt;gt=Nt+gt}},l.i=function(ht){return 0>ht?0:ht>>16)+(this.i(It)>>>16)+(ht.i(It)>>>16);gt=Ye>>>16,tt[It]=(Ye&=65535)<<16|(Nt&=65535)}return new _(tt,-2147483648&tt[tt.length-1]?-1:0)},l.j=function(ht){if(tn(this)||tn(ht))return we;if(pn(this))return pn(ht)?ln(this).j(ln(ht)):ln(ln(this).j(ht));if(pn(ht))return ln(this.j(ln(ht)));if(0>this.l(Rt)&&0>ht.l(Rt))return z(this.m()*ht.m());for(var Ue=this.g.length+ht.g.length,tt=[],gt=0;gt<2*Ue;gt++)tt[gt]=0;for(gt=0;gt>>16,Ye=65535&this.i(gt),Pl=ht.i(It)>>>16,ac=65535&ht.i(It);tt[2*gt+2*It]+=Ye*ac,lr(tt,2*gt+2*It),tt[2*gt+2*It+1]+=Nt*ac,lr(tt,2*gt+2*It+1),tt[2*gt+2*It+1]+=Ye*Pl,lr(tt,2*gt+2*It+1),tt[2*gt+2*It+2]+=Nt*Pl,lr(tt,2*gt+2*It+2)}for(gt=0;gt(Ue=Ue||10)||36Nt?(Nt=z(Math.pow(Ue,Nt)),gt=gt.j(Nt).add(z(Ye))):gt=(gt=gt.j(tt)).add(z(Ye))}return gt},$e=Fe.Integer=_}).apply(typeof _e<"u"?_e:typeof self<"u"?self:typeof window<"u"?window:{});var ut,st,Mt,mt,vt,Me,je,Ke,Ct,Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ft={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,k,G){return m==Array.prototype||m==Object.prototype||(m[k]=G.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Qe&&Qe];for(var k=0;k{throw m},0)}function Ye(){var m=hm;let k=null;return m.g&&(k=m.g,m.g=m.g.next,m.g||(m.h=null),k.next=null),k}var ac=new class zn{constructor(k,G){this.i=k,this.j=G,this.h=0,this.g=null}get(){let k;return 0new M0,m=>m.reset());class M0{constructor(){this.next=this.g=this.h=null}set(k,G){this.h=k,this.g=G,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(k,G){const Ie=ac.get();Ie.set(k,G),this.h?this.h.next=Ie:this.g=Ie,this.h=Ie}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(P0)}};var P0=()=>{for(var m;m=Ye();){try{m.h.call(m.g)}catch(G){Nt(G)}var k=ac;k.j(m),100>k.h&&(k.h++,m.next=k.g,k.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,k){this.type=m,this.g=this.target=k,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,k=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const G=()=>{};w.addEventListener("test",G,k),w.removeEventListener("test",G,k)}catch{}return m}();function Ih(m,k){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 G=this.type=m.type,Ie=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=k,k=m.relatedTarget){if(Ii){e:{try{Rr(k.nodeName);var wt=!0;break e}catch{}wt=!1}wt||(k=null)}}else"mouseover"==G?k=m.fromElement:"mouseout"==G&&(k=m.toElement);this.relatedTarget=k,Ie?(this.clientX=void 0!==Ie.clientX?Ie.clientX:Ie.pageX,this.clientY=void 0!==Ie.clientY?Ie.clientY:Ie.pageY,this.screenX=Ie.screenX||0,this.screenY=Ie.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)}}tn(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,k,G,Ie,wt){this.listener=m,this.proxy=null,this.src=k,this.type=G,this.capture=!!Ie,this.ha=wt,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,k){var G=k.type;if(G in m.g){var jt,Ie=m.g[G],wt=Array.prototype.indexOf.call(Ie,k,void 0);(jt=0<=wt)&&Array.prototype.splice.call(Ie,wt,1),jt&&(ap(k),0==m.g[G].length&&(delete m.g[G],m.h--))}}function gm(m,k,G,Ie){for(var wt=0;wt>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(k){return m.handleEvent(k)}),m[Ah])}function ns(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function jo(m,k){var G,Ie=m.F;if(Ie)for(G=[];Ie;Ie=Ie.F)G.push(Ie);if(m=m.M,Ie=k.type||k,"string"==typeof k)k=new mo(k,m);else if(k instanceof mo)k.target=k.target||m;else{var wt=k;gt(k=new mo(Ie,m),wt)}if(wt=!0,G)for(var jt=G.length-1;0<=jt;jt--){var Mn=k.g=G[jt];wt=Ch(Mn,Ie,!0,k)&&wt}if(wt=Ch(Mn=k.g=m,Ie,!0,k)&&wt,wt=Ch(Mn,Ie,!1,k)&&wt,G)for(jt=0;jt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const k=m.h;m.h=null,m.m.apply(null,k)}tn(ns,gu),ns.prototype[Eh]=!0,ns.prototype.removeEventListener=function(m,k,G,Ie){_m(this,m,k,G,Ie)},ns.prototype.N=function(){if(ns.aa.N.call(this),this.i){var k,m=this.i;for(k in m.g){for(var G=m.g[k],Ie=0;IeIe.length)){var wt=Ie[1];if(Array.isArray(wt)&&!(1>wt.length)){var jt=wt[0];if("noop"!=jt&&"stop"!=jt&&"close"!=jt)for(var Mn=1;Mnk.length?Sm:(k=k.slice(Ie,Ie+G),m.C=Ie+G,k))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,k){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(We(m.ba,m),k)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||W0(m.j,m)}function Iu(m){vp(m);var k=m.M;k&&"function"==typeof k.ma&&k.ma(),m.M=null,Tm(m.U),m.g&&(k=m.g,m.g=null,k.abort(),k.ma())}function Rh(m,k){try{var G=m.j;if(0!=G.G&&(G.g==m||Mm(G.h,m)))if(!m.K&&Mm(G.h,m)&&3==G.G){try{var Ie=G.Da.g.parse(k)}catch{Ie=null}if(Array.isArray(Ie)&&3==Ie.length){var wt=Ie;if(0==wt[0]){e:if(!G.u){if(G.g){if(!(G.g.F+3e3wt[2]&&G.F&&0==G.v&&!G.C&&(G.C=hp(We(G.Za,G),6e3));if(1>=E_(G.h)&&G.ca){try{G.ca()}catch{}G.ca=void 0}}else Au(G,11)}else if((m.K||G.g==m)&&Vh(G),!lr(k))for(wt=G.Da.g.parse(k),k=0;khs)&&(3!=hs||this.g&&(this.h.h||this.g.oa()||S_(this.g)))){this.J||4!=hs||7==k||cc(),vp(this);var G=this.g.Z();this.X=G;t:if(v_(this)){var Ie=S_(this.g);m="";var wt=Ie.length,jt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Mn="";break t}this.h.i=new w.TextDecoder}for(k=0;k=m.j}function E_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,k){return m.h?m.h==k:!!m.g&&m.g.has(k)}function Mh(m,k){m.g?m.g.add(k):m.h=k}function _p(m,k){m.h&&m.h==k?m.h=null:m.g&&m.g.has(k)&&m.g.delete(k)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let k=m.i;for(const G of m.g.values())k=k.concat(G.D);return k}return pn(m.i)}function A_(m,k){if(m.forEach&&"function"==typeof m.forEach)m.forEach(k,void 0);else if(N(m)||"string"==typeof m)Array.prototype.forEach.call(m,k,void 0);else for(var G=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(N(m)||"string"==typeof m){var k=[];m=m.length;for(var G=0;Gk)throw Error("Bad port number "+k);m.s=k}else m.s=null}function Om(m,k,G){k instanceof Nh?(m.i=k,function b_(m,k){k&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(G,Ie){var wt=Ie.toLowerCase();Ie!=wt&&(km(this,Ie),Fm(this,wt,G))},m)),m.j=k}(m.i,m.h)):(G||(k=gd(k,JE)),m.i=new Nh(k,m.h))}function Xi(m,k,G){m.i.set(k,G)}function Ph(m){return Xi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function xh(m,k){return m?k?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,k,G){return"string"==typeof m?(m=encodeURI(m).replace(k,V0),G&&(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=[],k=this.j;k&&m.push(gd(k,yp,!0),":");var G=this.g;return(G||"file"==k)&&(m.push("//"),(k=this.o)&&m.push(gd(k,yp,!0),"@"),m.push(encodeURIComponent(String(G)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(G=this.s)&&m.push(":",String(G))),(G=this.l)&&(this.g&&"/"!=G.charAt(0)&&m.push("/"),m.push(gd(G,"/"==G.charAt(0)?D_:T_,!0))),(G=this.i.toString())&&m.push("?",G),(G=this.m)&&m.push("#",gd(G,eA)),m.join("")};var yp=/[#\/\?@]/g,T_=/[#\?:]/g,D_=/[#\?]/g,JE=/[#\?@]/g,eA=/#/g;function Nh(m,k){this.h=this.g=null,this.i=m||null,this.j=!!k}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function F0(m,k){if(m){m=m.split("&");for(var G=0;G{}),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;U0(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 k=m.value?m.value:new Uint8Array(0);(k=this.v.decode(k,{stream:!m.done}))&&(this.response=this.responseText+=k)}m.done?Ap(this):Cp(this),3==this.readyState&&U0(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,k){this.u.append(m,k)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],k=this.h.entries();for(var G=k.next();!G.done;)m.push((G=G.value)[0]+": "+G[1]),G=k.next();return m.join("\r\n")},Object.defineProperty(Vm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),tn(vo,ns);var rA=/^https?$/i,iA=["POST","PUT"];function $0(m,k){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=k,m.m=5,B0(m),Um(m)}function B0(m){m.A||(m.A=!0,jo(m,"complete"),jo(m,"error"))}function j0(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(jo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Mn=m.Z();e:switch(Mn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break e;default:k=!1}var G;if(!(G=k)){var Ie;if(Ie=0===Mn){var wt=String(m.D).match(C_)[1]||null;!wt&&w.self&&w.self.location&&(wt=w.self.location.protocol.slice(0,-1)),Ie=!rA.test(wt?wt.toLowerCase():"")}G=Ie}if(G)jo(m,"complete"),jo(m,"success");else{m.m=6;try{var jt=2{}:null;m.g=null,m.v=null,k||jo(m,"ready");try{G.onreadystatechange=Ie}catch{}}}function z0(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,k,G){return G&&G.internalChannelParams&&G.internalChannelParams[m]||k}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 tA,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&&0hi)jt=Math.max(0,wt[io].g-100),Li=!1;else try{nA(rs,Mn,"req"+hi+"_")}catch{Ie&&Ie(rs)}}if(Li){Ie=Mn.join("&");break e}}}return m=m.i.splice(0,G),k.D=m,Ie}function Bm(m){if(!m.g&&!m.u){m.Y=1;var k=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(k,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(We(m.Fa,m),N_(m,m.v)),m.v++,0))}function Dp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function G0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var k=nl(m.qa);Xi(k,"RID","rpc"),Xi(k,"SID",m.K),Xi(k,"AID",m.T),Xi(k,"CI",m.F?"0":"1"),!m.F&&m.ja&&Xi(k,"TO",m.ja),Xi(k,"TYPE","xmlhttp"),kh(m,k),m.m&&m.o&&Tp(k,m.m,m.o),m.L&&(m.g.I=m.L);var G=m.g;m=m.ia,G.L=1,G.v=Ph(nl(k)),G.m=null,G.P=!0,m_(G,m)}function Vh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function W0(m,k){var G=null;if(m.g==k){Vh(m),Dp(m),m.g=null;var Ie=2}else{if(!Mm(m.h,k))return;G=k.D,_p(m.h,k),Ie=1}if(0!=m.G)if(k.o)if(1==Ie){G=k.m?k.m.length:0,k=Date.now()-k.F;var wt=m.B;jo(Ie=dp(),new cd(Ie,G)),$m(m)}else Bm(m);else if(3==(wt=k.s)||0==wt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=k.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(We(m.Ga,m,k),N_(m,m.B)),m.B++,0)))}(m,k)||2==Ie&&jm(m)))switch(G&&0{Ie.abort(),fc(0,0,!1,k)},1e4);fetch(m,{signal:Ie.signal}).then(jt=>{clearTimeout(wt),fc(0,0,!!jt.ok,k)}).catch(()=>{clearTimeout(wt),fc(0,0,!1,k)})}(Ie.toString(),G)}else uo(2);m.G=0,m.l&&m.l.sa(k),bp(m),P_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const k=Pm(m.h);(0!=k.length||0!=m.i.length)&&(ln(m.ka,k),ln(m.ka,m.i),m.h.i.length=0,pn(m.i),m.i.length=0),m.l.ra()}}function O_(m,k,G){var Ie=G instanceof dc?nl(G):new dc(G);if(""!=Ie.g)k&&(Ie.g=k+"."+Ie.g),pd(Ie,Ie.s);else{var wt=w.location;Ie=wt.protocol,k=k?k+"."+wt.hostname:wt.hostname,wt=+wt.port;var jt=new dc(null);Ie&&fd(jt,Ie),k&&(jt.g=k),wt&&pd(jt,wt),G&&(jt.l=G),Ie=jt}return k=m.ya,(G=m.D)&&k&&Xi(Ie,G,k),Xi(Ie,"VER",m.la),kh(m,Ie),Ie}function k_(m,k,G){if(k&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(k=new vo(m.Ca&&!m.pa?new Ep({eb:G}):m.pa)).Ha(m.J),k}function Lh(){}function wp(){}function Fs(m,k){ns.call(this),this.g=new R_(k),this.l=m,this.h=k&&k.messageUrlParams||null,m=k&&k.messageHeaders||null,k&&k.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=k&&k.initMessageHeaders||null,k&&k.messageContentType&&(m?m["X-WebChannel-Content-Type"]=k.messageContentType:m={"X-WebChannel-Content-Type":k.messageContentType}),k&&k.va&&(m?m["X-WebChannel-Client-Profile"]=k.va:m={"X-WebChannel-Client-Profile":k.va}),this.g.S=m,(m=k&&k.Sb)&&!lr(m)&&(this.g.m=m),this.v=k&&k.supportsCrossDomainXhr||!1,this.u=k&&k.sendRawJson||!1,(k=k&&k.httpSessionIdParam)&&!lr(k)&&(this.g.D=k,null!==(m=this.h)&&k in m&&k in(m=this.h)&&delete m[k]),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 k=m.__sm__;if(k){e:{for(const G in k){m=G;break e}m=void 0}(this.i=m)&&(m=this.i,k=null!==k&&m in k?k[m]:void 0),this.data=k}else this.data=m}function V_(){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,k,G,Ie){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);k=k?k.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=We(this.Ea,this);try{this.B=!0,this.g.open(k,String(m),!0),this.B=!1}catch(jt){return void $0(this,jt)}if(m=G||"",G=new Map(this.headers),Ie)if(Object.getPrototypeOf(Ie)===Object.prototype)for(var wt in Ie)G.set(wt,Ie[wt]);else{if("function"!=typeof Ie.keys||"function"!=typeof Ie.get)throw Error("Unknown input type for opt_headers: "+String(Ie));for(const jt of Ie.keys())G.set(jt,Ie.get(jt))}Ie=Array.from(G.keys()).find(jt=>"content-type"==jt.toLowerCase()),wt=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(iA,k,void 0))||Ie||wt||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[jt,Mn]of G)this.g.setRequestHeader(jt,Mn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{z0(this),this.u=!0,this.g.send(m),this.u=!1}catch(jt){$0(this,jt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,jo(this,"complete"),jo(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?j0(this):this.bb())},l.bb=function(){j0(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(We(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),G0(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=Lh.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,k){return new Fs(m,k)},tn(Fs,ns),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 k=this.g;if("string"==typeof m){var G={};G.__data__=m,m=G}else this.u&&((G={}).__data__=Dh(m),m=G);k.i.push(new y_(k.Ya++,m)),3==k.G&&$m(k)},Fs.prototype.N=function(){this.g.l=null,delete this.j,M_(this.g),delete this.g,Fs.aa.N.call(this)},tn(F_,tl),tn(V_,ld),tn(vd,Lh),vd.prototype.ua=function(){jo(this.g,"a")},vd.prototype.ta=function(m){jo(this.g,new F_(m))},vd.prototype.sa=function(m){jo(this.g,new V_)},vd.prototype.ra=function(){jo(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,Ct=ft.createWebChannelTransport=function(){return new wp},Ke=ft.getStatEventTarget=function(){return dp()},je=ft.Event=vu,Me=ft.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,vt=ft.ErrorCode=pp,f_.COMPLETE="complete",mt=ft.EventType=f_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",ns.prototype.listen=ns.prototype.K,Mt=ft.WebChannel=ad,st=ft.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,ut=ft.XhrIo=vo}).apply(typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{});const xt="@firebase/firestore";class ze{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}}ze.UNAUTHENTICATED=new ze(null),ze.GOOGLE_CREDENTIALS=new ze("google-credentials-uid"),ze.FIRST_PARTY=new ze("first-party-uid"),ze.MOCK_USER=new ze("mock-user");let Tt="10.12.1";const Vt=new Je.Vy("@firebase/firestore");function Zt(){return Vt.logLevel}function Be(l,...n){if(Vt.logLevel<=Je.$b.DEBUG){const i=n.map(ye);Vt.debug(`Firestore (${Tt}): ${l}`,...i)}}function rn(l,...n){if(Vt.logLevel<=Je.$b.ERROR){const i=n.map(ye);Vt.error(`Firestore (${Tt}): ${l}`,...i)}}function pt(l,...n){if(Vt.logLevel<=Je.$b.WARN){const i=n.map(ye);Vt.warn(`Firestore (${Tt}): ${l}`,...i)}}function ye(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function j(l="Unexpected state"){const n=`FIRESTORE (${Tt}) INTERNAL ASSERTION FAILED: `+l;throw rn(n),new Error(n)}function W(l,n){l||j()}function de(l,n){return l}const ae={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 me extends De.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ce{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class at{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class kt{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(ze.UNAUTHENTICATED))}shutdown(){}}class Bt{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 vn{constructor(n){this.t=n,this.currentUser=ze.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=z=>this.i!==u?(u=this.i,i(z)):Promise.resolve();let _=new Ce;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Ce,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const z=_;n.enqueueRetryable((0,Ee.A)(function*(){yield z.promise,yield f(s.currentUser)}))},N=z=>{Be("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=z,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(z=>N(z)),setTimeout(()=>{if(!this.auth){const z=this.t.getImmediate({optional:!0});z?N(z):(Be("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Ce)}},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?(W("string"==typeof s.accessToken),new at(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 ze(n)}}class bn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=ze.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 $n{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new bn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(ze.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class qn{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 er{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?(W("string"==typeof i.token),this.R=i.token,new qn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ir(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 yt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Xt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Xt.fromMillis(Date.now())}static fromDate(n){return Xt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Xt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Ve(this.nanoseconds,n.nanoseconds):Ve(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 en{constructor(n){this.timestamp=n}static fromTimestamp(n){return new en(n)}static min(){return new en(new Xt(0,0))}static max(){return new en(new Xt(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 Ir{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===Ir.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ir?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 gn extends Ir{construct(n,i,s){return new gn(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 me(ae.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new gn(i)}static emptyPath(){return new gn([])}}const mn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Jt extends Ir{construct(n,i,s){return new Jt(n,i,s)}static isValidIdentifier(n){return mn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Jt.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Jt(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new me(ae.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===gn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return gn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Gt(new gn(n.slice()))}}class Sr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Sr(en.min(),Gt.empty(),-1)}static max(){return new Sr(en.max(),Gt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Gt.comparator(l.documentKey,n.documentKey),0!==i?i:Ve(l.largestBatchId,n.largestBatchId))}const Er="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Mi{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Qr(l){return Yr.apply(this,arguments)}function Yr(){return(Yr=(0,Ee.A)(function*(l){if(l.code!==ae.FAILED_PRECONDITION||l.message!==Er)throw l;Be("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class oe{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 oe((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 oe?i:oe.resolve(i)}catch(i){return oe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.reject(i)}static resolve(n){return new oe((i,s)=>{i(n)})}static reject(n){return new oe((i,s)=>{s(n)})}static waitFor(n){return new oe((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},N=>s(N))}),_=!0,f===u&&i()})}static or(n){let i=oe.resolve(!1);for(const s of n)i=i.next(u=>u?oe.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 oe((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let N=0;N{_[z]=se,++w,w===f&&s(_)},se=>u(se))}})}static doWhile(n,i){return new oe((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function Pe(l){return"IndexedDbTransactionError"===l.name}let ur=(()=>{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 ri(l){return null==l}function xn(l){return 0===l&&1/l==-1/0}function xi(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function mi(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ti(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class mr{constructor(n,i){this.comparator=n,this.root=i||Nn.EMPTY}insert(n,i){return new mr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Nn.BLACK,null,null))}remove(n){return new mr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Nn.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 oi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new oi(this.root,n,this.comparator,!1)}getReverseIterator(){return new oi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new oi(this.root,n,this.comparator,!0)}}class oi{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 Nn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:Nn.RED,this.left=null!=u?u:Nn.EMPTY,this.right=null!=f?f:Nn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new Nn(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 Nn.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 Nn.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,Nn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Nn.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)}}Nn.EMPTY=null,Nn.RED=!0,Nn.BLACK=!1,Nn.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,f){return this}insert(n,i,s){return new Nn(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 kn{constructor(n){this.comparator=n,this.data=new mr(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 ko(this.data.getIterator())}getIteratorFrom(n){return new ko(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 kn)||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 kn(this.comparator);return i.data=n,i}}class ko{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Bi{constructor(n){this.fields=n,n.sort(Jt.comparator)}static empty(){return new Bi([])}unionWith(n){let i=new kn(Jt.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Bi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return yt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class is extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class si{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 is("Invalid base64 string: "+f):f}}(n);return new si(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nue(i,n))}function fe(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return Ve(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return Ve(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=ai(f.integerValue||f.doubleValue),N=ai(_.integerValue||_.doubleValue);return wN?1:w===N?0:isNaN(w)?isNaN(N)?0:-1:1}(l,n);case 3:return qe(l.timestampValue,n.timestampValue);case 4:return qe(Co(l),Co(n));case 5:return Ve(l.stringValue,n.stringValue);case 6:return function(f,_){const w=jn(f),N=jn(_);return w.compareTo(N)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),N=_.split("/");for(let z=0;zn.mapValue.fields[i]=zt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=zt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function Kt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class In{constructor(n){this.value=n}static empty(){return new In({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const N=this.getFieldsMap(i);this.applyChanges(N,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=zt(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());Lt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return ue(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 In(zt(this.value))}}function br(l){const n=[];return mi(l.fields,(i,s)=>{const u=new Jt([i]);if(Lt(s)){const f=br(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new Bi(n)}class cr{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 cr(n,0,en.min(),en.min(),en.min(),In.empty(),0)}static newFoundDocument(n,i,s,u){return new cr(n,1,i,en.min(),s,u,0)}static newNoDocument(n,i){return new cr(n,2,i,en.min(),en.min(),In.empty(),0)}static newUnknownDocument(n,i){return new cr(n,3,i,en.min(),en.min(),In.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(en.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=In.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=In.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=en.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 cr&&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 cr(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 nr{constructor(n,i){this.position=n,this.inclusive=i}}function li(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 Wr extends Go{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Wr(n,i)}matches(n){return Wo(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 Wo(l){return"and"===l.op}function Ko(l){return function Do(l){for(const n of l.filters)if(n instanceof Wr)return!1;return!0}(l)&&Wo(l)}function xa(l){if(l instanceof dr)return l.field.canonicalString()+l.op.toString()+ar(l.value);if(Ko(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function os(l,n){return l instanceof dr?(s=l,(u=n)instanceof dr&&s.op===u.op&&s.field.isEqual(u.field)&&ue(s.value,u.value)):l instanceof Wr?function(s,u){return u instanceof Wr&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&os(_,u.filters[w]),!0)}(l,n):void j();var s,u}function Pr(l){return l instanceof dr?`${(i=l).field.canonicalString()} ${i.op} ${ar(i.value)}`:l instanceof Wr?function(i){return i.op.toString()+" {"+i.getFilters().map(Pr).join(" ,")+"}"}(l):"Filter";var i}class oo extends dr{constructor(n,i,s){super(n,i,s),this.key=Gt.fromName(s.referenceValue)}matches(n){const i=Gt.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=>Gt.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 ke(i)&&M(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&&M(this.value.arrayValue,i)}}class ss extends dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(M(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!M(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!(!ke(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>M(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=de(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(","),ri(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>ar(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>ar(s)).join(",")),n.ue=i}return n.ue}function Xo(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 kn(Jt.comparator);return _.filters.forEach(N=>{N.getFlattenedFilters().forEach(z=>{z.isInequality()&&(w=w.add(z.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new ci(f,s))}),i.has(Jt.keyField().canonicalString())||n.ce.push(new ci(Jt.keyField(),s))}return n.ce}function On(l){const n=de(l);return n.le||(n.le=function Ji(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 ci(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new nr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new nr(l.startAt.position,l.startAt.inclusive):null;return qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,nn(l))),n.le}function eo(l,n,i){return new L(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Qo(l,n){return Xo(On(l),On(n))&&l.limitType===n.limitType}function Na(l){return`${bs(On(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=>Pr(u)).join(", ")}]`),ri(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=>ar(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>ar(u)).join(",")),`Target(${s})`}(On(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):Gt.isDocumentKey(s.path)?s.path.isEqual(f):s.path.isImmediateParentOf(f)}(l,n)&&function(s,u){for(const f of nn(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,N){const z=li(_,w,N);return _.inclusive?z<=0:z<0}(s.startAt,nn(s),u)||s.endAt&&!function(_,w,N){const z=li(_,w,N);return _.inclusive?z>=0:z>0}(s.endAt,nn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of nn(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()?Gt.comparator(n.key,i.key):function(f,_,w){const N=_.data.field(f),z=w.data.field(f);return null!==N&&null!==z?fe(N,z):j()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return j()}}class as{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 ti(this.inner)}size(){return this.innerSize}}const ha=new mr(Gt.comparator);function Jn(){return ha}const Oi=new mr(Gt.comparator);function Ti(...l){let n=Oi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Oi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Hr(){return ls()}function ll(){return ls()}function ls(){return new as(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new mr(Gt.comparator),Vl=new kn(Gt.comparator);function vr(...l){let n=Vl;for(const i of l)n=n.add(i);return n}const ul=new kn(Ve);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:xn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function Rn(l){return"number"==typeof l&&Number.isInteger(l)&&!xn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Ll(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&&Fo(f)&&(f=Ao(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return Ae(_)&&Ae(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof Zo?Ae(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 Yo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>ue(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=>!ue(u,s));return{arrayValue:{values:i}}}class Zo extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return ai(l.integerValue||l.doubleValue)}function $l(l){return ke(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Di{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Di}static exists(n){return new Di(void 0,n)}static updateTime(n){return new Di(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 V(l.key,Di.none()):new Ms(l.key,l.data,Di.none());{const i=l.data,s=In.empty();let u=new kn(Jt.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 Bi(u.toArray()),Di.none())}}function Va(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),N=Es(u.fieldTransforms,f,_.transformResults);w.setAll(N),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),N=f.data;N.setAll(Hs(u)),N.setAll(w),f.convertToFoundDocument(_.version,N).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=f.value.clone(),se=D(f.fieldTransforms,N,_);return z.setAll(se),_.convertToFoundDocument(_.version,z).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=D(f.fieldTransforms,N,_),se=_.data;return se.setAll(Hs(f)),se.setAll(z),_.convertToFoundDocument(_.version,se).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(we=>we.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=In.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&&yt(s,u,(f,_)=>function Jo(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?yt(s.elements,u.elements,ue):s instanceof Zo&&u instanceof Zo?ue(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;W(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 N=ga(_,w);null!==N&&s.set(u.key,N),_.isValidDocument()||_.convertToNoDocument(en.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),vr())}isEqual(n){return this.batchId===n.batchId&&yt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&yt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class le{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 f=n.mutations;for(let _=0;_=8)throw new Kr(`Invalid padding: ${i}`);if(s<0)throw new Kr(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Kr(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Kr(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=$e.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply($e.fromNumber(s)));return 1===u.compare(ki)&&(u=new $e([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=Gr(n),[s,u]=un(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=vr(),i=vr(),s=vr();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:j()}}),new _i(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=La()}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 Uo{constructor(n){this.Le=n,this.Be=new Map,this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Ve)}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 f=u.target;if(bo(f))if(0===s){const _=new Gt(f.path);this.Ue(i,_,cr.newNoDocument(_,en.min()))}else W(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),N=w?this.Xe(w,n,_):1;0!==N&&(this.je(i),this.Qe=this.Qe.insert(i,2===N?"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{_=jn(s).toUint8Array()}catch(N){if(N instanceof is)return pt("Decoding the base64 bloom filter in existence filter failed ("+N.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw N}try{w=new Vn(_,u,f)}catch(N){return pt(N instanceof Kr?"BloomFilter error: ":"Applying bloom filter failed: ",N),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&&bo(w.target)){const N=new Gt(w.target.path);null!==this.ke.get(N)||this.it(_,N)||this.Ue(_,N,cr.newNoDocument(N,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=vr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(N=>{const z=this.Je(N);return!z||"TargetPurposeLimboResolution"===z.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=Jn(),this.qe=fr(),this.Qe=new mr(Ve),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 zi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new kn(Ve),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 zi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function fr(){return new mr(Gt.comparator)}function La(){return new mr(Gt.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 es(l,n){return l.useProto3Json||ri(n)?n:{value:n}}function wo(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 wo(l,n.toTimestamp())}function Lr(l){return W(!!l),en.fromTimestamp(function(i){const s=Or(i);return new Xt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new gn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Dr(l){const n=gn.fromString(l);return W(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function No(l,n){const i=Dr(n);if(i.get(1)!==l.databaseId.projectId)throw new me(ae.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 me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Gt(Vi(i))}function $o(l,n){return _a(l.databaseId,n)}function Ks(l){return new gn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Vi(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:[$o(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=$o(l,u);const f=function(z){if(0!==z.length)return Ad(Wr.create(z,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(z){if(0!==z.length)return z.map(se=>{return{field:qs((We=se).field),direction:ja(We.dir)};var We})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=es(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(z=n.startAt).inclusive,values:z.position}),n.endAt&&(i.structuredQuery.endAt=function(z){return{before:!z.inclusive,values:z.position}}(n.endAt)),{_t:i,parent:u};var z}function Ea(l){let n=function ya(l){const n=Dr(l);return 4===n.length?gn.emptyPath():Vi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){W(1===s);const se=i.from[0];se.allDescendants?u=se.collectionId:n=n.child(se.collectionId)}let f=[];i.where&&(f=function(we){const We=Ba(we);return We instanceof Wr&&Ko(We)?We.getFilters():[We]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(We=>{return new ci(Xs((tn=We).field),function(ln){switch(ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(tn.direction));var tn}));let w=null;i.limit&&(w=function(we){let We;return We="object"==typeof we?we.value:we,ri(We)?null:We}(i.limit));let N=null;var we;i.startAt&&(N=new nr((we=i.startAt).values||[],!!we.before));let z=null;return i.endAt&&(z=function(we){return new nr(we.values||[],!we.before)}(i.endAt)),function P(l,n,i,s,u,f,_,w){return new L(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",N,z)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Xs(i.unaryFilter.field);return dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Xs(i.unaryFilter.field);return dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Xs(i.unaryFilter.field);return dr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Xs(i.unaryFilter.field);return dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return j()}}(l):void 0!==l.fieldFilter?dr.create(Xs((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 Wr.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 Gh(l){return Ua[l]}function mc(l){return Ki[l]}function qs(l){return{fieldPath:l.canonicalString()}}function Xs(l){return Jt.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof dr?function(i){if("=="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:qs(i.field),op:Gh(i.op),value:i.value}}}(l):l instanceof Wr?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,f=en.min(),_=en.min(),w=si.EMPTY_BYTE_STRING,N=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=N}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 ve(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class Bo{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(ai(n.integerValue));else if("doubleValue"in n){const s=ai(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),xn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=Or(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(jn(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?Kt(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),Gt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Bo.bt=new Bo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),oe.resolve()}getCollectionParents(n,i){return oe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return oe.resolve()}deleteFieldIndex(n,i){return oe.resolve()}deleteAllFieldIndexes(n){return oe.resolve()}createTargetIndexes(n,i){return oe.resolve()}getDocumentsMatchingTarget(n,i){return oe.resolve(null)}getIndexType(n,i){return oe.resolve(0)}getFieldIndexes(n,i){return oe.resolve([])}getNextCollectionGroupToUpdate(n){return oe.resolve(null)}getMinOffset(n,i){return oe.resolve(Sr.min())}getMinOffsetFromCollectionGroup(n,i){return oe.resolve(Sr.min())}updateCollectionGroup(n,i,s){return oe.resolve()}updateIndexEntries(n,i){return oe.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new kn(gn.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 kn(gn.comparator)).toArray()}}new Uint8Array(0);class Gn{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Gn(n,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Gn.DEFAULT_COLLECTION_PERCENTILE=10,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Gn.DEFAULT=new Gn(41943040,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Gn.DISABLED=new Gn(-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 Js{constructor(){this.changes=new as(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,cr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?oe.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,Bi.empty(),Xt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,vr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=vr()){const u=Hr();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=Ti();return f.forEach((w,N)=>{_=_.insert(w,N.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Hr();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,vr()))}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=Jn();const _=ls(),w=ls();return i.forEach((N,z)=>{const se=s.get(z.key);u.has(z.key)&&(void 0===se||se.mutation instanceof lo)?f=f.insert(z.key,z):void 0!==se?(_.set(z.key,se.mutation.getFieldMask()),zs(se.mutation,z,se.mutation.getFieldMask(),Xt.now())):_.set(z.key,Bi.empty())}),this.recalculateAndSaveOverlays(n,f).next(N=>(N.forEach((z,se)=>_.set(z,se)),i.forEach((z,se)=>{var we;return w.set(z,new Ts(se,null!==(we=_.get(z))&&void 0!==we?we:null))}),w))}recalculateAndSaveOverlays(n,i){const s=ls();let u=new mr((_,w)=>_-w),f=vr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(N=>{const z=i.get(N);if(null===z)return;let se=s.get(N)||Bi.empty();se=w.applyToLocalView(z,se),s.set(N,se);const we=(u.get(w.batchId)||vr()).add(N);u=u.insert(w.batchId,we)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const N=w.getNext(),z=N.key,se=N.value,we=ll();se.forEach(We=>{if(!f.has(We)){const Rt=ga(i.get(We),s.get(We));null!==Rt&&we.set(We,Rt),f=f.add(We)}}),_.push(this.documentOverlayCache.saveOverlays(n,z,we))}return oe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Gt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Te(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):oe.resolve(Hr());let w=-1,N=f;return _.next(z=>oe.forEach(z,(se,we)=>(w{N=N.insert(se,We)}))).next(()=>this.populateOverlays(n,z,f)).next(()=>this.computeViews(n,N,z,vr())).next(se=>({batchId:w,changes:ro(se)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Gt(i)).next(s=>{let u=Ti();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=Ti();return this.indexManager.getCollectionParents(n,f).next(w=>oe.forEach(w,N=>{const z=(we=i,We=N.child(f),new L(We,null,we.explicitOrderBy.slice(),we.filters.slice(),we.limit,we.limitType,we.startAt,we.endAt));var we,We;return this.getDocumentsMatchingCollectionQuery(n,z,s,u).next(se=>{se.forEach((we,We)=>{_=_.insert(we,We)})})}).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((N,z)=>{const se=z.getKey();null===_.get(se)&&(_=_.insert(se,cr.newInvalidDocument(se)))});let w=Ti();return _.forEach((N,z)=>{const se=f.get(N);void 0!==se&&zs(se.mutation,z,Bi.empty(),Xt.now()),Bs(i,z)&&(w=w.insert(N,z))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return oe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Lr(u.createTime)}),oe.resolve();var u}getNamedQuery(n,i){return oe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:ve(u.bundledQuery),readTime:Lr(u.readTime)}),oe.resolve();var u}}class Tc{constructor(){this.overlays=new mr(Gt.comparator),this.hr=new Map}getOverlay(n,i){return oe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Hr();return oe.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)}),oe.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)),oe.resolve()}getOverlaysForCollection(n,i,s){const u=Hr(),f=i.length+1,_=new Gt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const N=w.getNext().value,z=N.getKey();if(!i.isPrefixOf(z.path))break;z.path.length===f&&N.largestBatchId>s&&u.set(N.getKey(),N)}return oe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new mr((z,se)=>z-se);const _=this.overlays.getIterator();for(;_.hasNext();){const z=_.getNext().value;if(z.getKey().getCollectionGroup()===i&&z.largestBatchId>s){let se=f.get(z.largestBatchId);null===se&&(se=Hr(),f=f.insert(z.largestBatchId,se)),se.set(z.getKey(),z)}}const w=Hr(),N=f.getIterator();for(;N.hasNext()&&(N.getNext().value.forEach((z,se)=>w.set(z,se)),!(w.size()>=u)););return oe.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 xe(i,s));let f=this.hr.get(i);void 0===f&&(f=vr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new kn(Io.Ir),this.Tr=new kn(Io.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Io(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 Io(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Gt(new gn([])),s=new Io(i,n),u=new Io(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 Gt(new gn([])),s=new Io(i,n),u=new Io(i,n+1);let f=vr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Io(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Io{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Gt.comparator(n.key,i.key)||Ve(n.pr,i.pr)}static Er(n,i){return Ve(n.pr,i.pr)||Gt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new kn(Io.Ir)}checkEmpty(n){return oe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new O(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Io(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return oe.resolve(_)}lookupMutationBatch(n,i){return oe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return oe.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return oe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return oe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Io(i,0),u=new Io(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),oe.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new kn(Ve);return i.forEach(u=>{const f=new Io(u,0),_=new Io(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),oe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let f=s;Gt.isDocumentKey(f)||(f=f.child(""));const _=new Io(new Gt(f),0);let w=new kn(Ve);return this.wr.forEachWhile(N=>{const z=N.key.path;return!!s.isPrefixOf(z)&&(z.length===u&&(w=w.add(N.pr)),!0)},_),oe.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 oe.forEach(i.mutations,u=>{const f=new Io(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 Io(i,0),u=this.wr.firstAfterOrEqual(s);return oe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return oe.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 mr(Gt.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 oe.resolve(s?s.document.mutableCopy():cr.newInvalidDocument(i))}getEntries(n,i){let s=Jn();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():cr.newInvalidDocument(u))}),oe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=Jn();const _=i.path,w=new Gt(_.child("")),N=this.docs.getIteratorFrom(w);for(;N.hasNext();){const{key:z,value:{document:se}}=N.getNext();if(!_.isPrefixOf(z.path))break;z.path.length>_.length+1||tr(new Sr((l=se).readTime,l.key,-1),s)<=0||(u.has(se.key)||Bs(i,se))&&(f=f.insert(se.key,se.mutableCopy()))}var l;return oe.resolve(f)}getAllFromCollectionGroup(n,i,s,u){j()}Fr(n,i){return oe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return oe.resolve(this.size)}}class xd extends Js{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)}),oe.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 as(i=>bs(i),Xo),this.lastRemoteSnapshotVersion=en.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)),oe.resolve()}getLastRemoteSnapshotVersion(n){return oe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return oe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),oe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),oe.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,oe.resolve()}updateTargetData(n,i){return this.qn(i),oe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,oe.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++)}),oe.waitFor(f).next(()=>u)}getTargetCount(n){return oe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return oe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),oe.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,_))}),oe.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),oe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return oe.resolve(s)}containsKey(n,i){return oe.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new ur(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 oe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Yh extends Mi{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()),oe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),oe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),oe.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 oe.forEach(this.Jr,s=>{const u=Gt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,en.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 oe.or([()=>oe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class yi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=vr(),u=vr();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 yi(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Jh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,De.nr)()?8:function Xe(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,De.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()<=Je.$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,On(i))):oe.resolve())}ji(n,i){if($(i))return oe.resolve(null);let s=On(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=On(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=vr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(N=>{const z=this.Zi(i,w);return this.Xi(i,z,_,N.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,z,i,N)}))})))}Hi(n,i,s,u){return $(i)||u.isEqual(en.min())?oe.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?oe.resolve(null):(Zt()<=Je.$b.DEBUG&&Be("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function Zn(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=en.fromTimestamp(1e9===s?new Xt(i+1,0):new Xt(i,s));return new Sr(u,Gt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new kn(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()<=Je.$b.DEBUG&&Be("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Sr.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 mr(Ve),this.rs=new as(f=>bs(f),Xo),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 Lu.apply(this,arguments)}function Lu(){return(Lu=(0,Ee.A)(function*(l,n){const i=de(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 N=vr();for(const z of u){_.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}for(const z of f){w.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}return i.localDocuments.getDocuments(s,N).next(z=>({us:z,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=de(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=de(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=de(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(!Pe(_))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=de(l);let u=en.min(),f=vr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(N,z,se){const we=de(N),We=we.rs.get(se);return void 0!==We?oe.resolve(we.ns.get(We)):we.Qr.getTargetData(z,se)}(s,_,On(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(N=>{f=N})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:en.min(),i?f:vr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||en.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 Vd{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 Ro="WebChannelConnection";class Ld 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(),N=this.vo(i,s.toUriEncodedString());Be("RestConnection",`Sending RPC '${i}' ${w}:`,N,u);const z={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(z,f,_),this.Mo(i,N,z,u).then(se=>(Be("RestConnection",`Received RPC '${i}' ${w}: `,se),se),se=>{throw pt("RestConnection",`RPC '${i}' ${w} failed with error: `,se,"url: ",N,"request:",u),se})}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/"+Tt,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 N=new ut;N.setWithCredentials(!0),N.listenOnce(mt.COMPLETE,()=>{try{switch(N.getLastErrorCode()){case vt.NO_ERROR:const se=N.getResponseJson();Be(Ro,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(se)),_(se);break;case vt.TIMEOUT:Be(Ro,`RPC '${n}' ${f} timed out`),w(new me(ae.DEADLINE_EXCEEDED,"Request time out"));break;case vt.HTTP_ERROR:const we=N.getStatus();if(Be(Ro,`RPC '${n}' ${f} failed with status:`,we,"response text:",N.getResponseText()),we>0){let We=N.getResponseJson();Array.isArray(We)&&(We=We[0]);const Rt=null==We?void 0:We.error;if(Rt&&Rt.status&&Rt.message){const tn=function(ln){const zn=ln.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(zn)>=0?zn:ae.UNKNOWN}(Rt.status);w(new me(tn,Rt.message))}else w(new me(ae.UNKNOWN,"Server responded with status "+N.getStatus()))}else w(new me(ae.UNAVAILABLE,"Connection failed."));break;default:j()}}finally{Be(Ro,`RPC '${n}' ${f} completed.`)}});const z=JSON.stringify(u);Be(Ro,`RPC '${n}' ${f} sending request:`,u),N.send(i,"POST",z,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ct(),w=Ke(),N={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},z=this.longPollingOptions.timeoutSeconds;void 0!==z&&(N.longPollingTimeout=Math.round(1e3*z)),this.useFetchStreams&&(N.xmlHttpFactory=new st({})),this.Fo(N.initMessageHeaders,i,s),N.encodeInitMessageHeaders=!0;const se=f.join("");Be(Ro,`Creating RPC '${n}' stream ${u}: ${se}`,N);const we=_.createWebChannel(se,N);let We=!1,Rt=!1;const tn=new zu({lo:ln=>{Rt?Be(Ro,`Not sending because RPC '${n}' stream ${u} is closed:`,ln):(We||(Be(Ro,`Opening RPC '${n}' stream ${u} transport.`),we.open(),We=!0),Be(Ro,`RPC '${n}' stream ${u} sending:`,ln),we.send(ln))},ho:()=>we.close()}),pn=(ln,zn,lr)=>{ln.listen(zn,Qn=>{try{lr(Qn)}catch(Rr){setTimeout(()=>{throw Rr},0)}})};return pn(we,Mt.EventType.OPEN,()=>{Rt||(Be(Ro,`RPC '${n}' stream ${u} transport opened.`),tn.mo())}),pn(we,Mt.EventType.CLOSE,()=>{Rt||(Rt=!0,Be(Ro,`RPC '${n}' stream ${u} transport closed`),tn.po())}),pn(we,Mt.EventType.ERROR,ln=>{Rt||(Rt=!0,pt(Ro,`RPC '${n}' stream ${u} transport errored:`,ln),tn.po(new me(ae.UNAVAILABLE,"The operation could not be completed")))}),pn(we,Mt.EventType.MESSAGE,ln=>{var zn;if(!Rt){const lr=ln.data[0];W(!!lr);const Rr=lr.error||(null===(zn=lr[0])||void 0===zn?void 0:zn.error);if(Rr){Be(Ro,`RPC '${n}' stream ${u} received error:`,Rr);const Ii=Rr.status;let zr=function(tt){const gt=Un[tt];if(void 0!==gt)return Tr(gt)}(Ii),ht=Rr.message;void 0===zr&&(zr=ae.INTERNAL,ht="Unknown error status: "+Ii+" with message "+Rr.message),Rt=!0,tn.po(new me(zr,ht)),we.close()}else Be(Ro,`RPC '${n}' stream ${u} received:`,lr),tn.yo(lr)}}),pn(w,je.STAT_EVENT,ln=>{ln.stat===Me.PROXY?Be(Ro,`RPC '${n}' stream ${u} detected buffering proxy`):ln.stat===Me.NOPROXY&&Be(Ro,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{tn.fo()},0),tn}}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,N){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=N,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===ae.RESOURCE_EXHAUSTED?(rn(i.toString()),rn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ae.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 me(ae.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 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"===(z=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===z?1:"REMOVE"===z?2:"CURRENT"===z?3:"RESET"===z?4:j(),u=n.targetChange.targetIds||[],f=function(z,se){return z.useProto3Json?(W(void 0===se||"string"==typeof se),si.fromBase64String(se||"")):(W(void 0===se||se instanceof Buffer||se instanceof Uint8Array),si.fromUint8Array(se||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(z){const se=void 0===z.code?ae.UNKNOWN:Tr(z.code);return new me(se,z.message||"")}(_);i=new Jr(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=No(l,s.document.name),f=Lr(s.document.updateTime),_=s.document.createTime?Lr(s.document.createTime):en.min(),w=new In({mapValue:{fields:s.document.fields}}),N=cr.newFoundDocument(u,f,_,w);i=new Wi(s.targetIds||[],s.removedTargetIds||[],N.key,N)}else if("documentDelete"in n){const s=n.documentDelete,u=No(l,s.document),f=s.readTime?Lr(s.readTime):en.min(),_=cr.newNoDocument(u,f);i=new Wi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=No(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:f}=s,_=new an(u,f);i=new Fi(s.targetId,_)}}var z;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return en.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?en.min():_.readTime?Lr(_.readTime):en.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const N=_.target;if(w=bo(N)?{documents:Hl(f,N)}:{query:Gl(f,N)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}else if(_.snapshotVersion.compareTo(en.min())>0){w.readTime=wo(f,_.snapshotVersion.toTimestamp());const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}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 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(W(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function us(l,n){return l&&l.length>0?(W(void 0!==n),l.map(i=>function(u,f){let _=Lr(u.updateTime?u.updateTime:f);return _.isEqual(en.min())&&(_=Lr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Lr(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 V)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 be))return j();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 Zo)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw j()}(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}:j()),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 me(ae.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===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new me(ae.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===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new me(ae.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_?(rn(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,Ee.A)(function*(){var N;Qa(_)&&(Be("RemoteStore","Restarting streams for network reachability change."),yield(N=(0,Ee.A)(function*(se){const we=de(se);we.M_.add(4),yield tu(we),we.N_.set("Unknown"),we.M_.delete(4),yield kc(we)}),function z(se){return N.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 Xa(l,n){const i=de(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),df(i)?Hu(i):qu(i).Xo()&&uf(i,n))}function Yi(l,n){const i=de(l),s=qu(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(en.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function cf(l,n){l.L_.xe(n),qu(l).I_(n)}function Hu(l){l.L_=new Uo({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function df(l){return Qa(l)&&!qu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===de(l).M_.size}function Vc(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 hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ee.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,Ee.A)(function*(l,n){Vc(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,Ee.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Jr&&2===n.state&&n.cause)try{yield(s=(0,Ee.A)(function*(f,_){const w=_.cause;for(const N of _.targetIds)f.F_.has(N)&&(yield f.remoteSyncer.rejectListen(N,w),f.F_.delete(N),f.L_.removeTarget(N))}),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 Lc(l,s)}else if(n instanceof Wi?l.L_.Ke(n):n instanceof Fi?l.L_.He(n):l.L_.We(n),!i.isEqual(en.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((N,z)=>{if(N.resumeToken.approximateByteSize()>0){const se=f.F_.get(z);se&&f.F_.set(z,se.withResumeToken(N.resumeToken,_))}}),w.targetMismatches.forEach((N,z)=>{const se=f.F_.get(N);if(!se)return;f.F_.set(N,se.withResumeToken(si.EMPTY_BYTE_STRING,se.snapshotVersion)),cf(f,N);const we=new Aa(se.target,N,z,se.sequenceNumber);uf(f,we)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){Be("RemoteStore","Failed to raise snapshot:",s),yield Lc(l,s)}var s}),pf.apply(this,arguments)}function Lc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ee.A)(function*(l,n,i){if(!Pe(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*(){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=>Lc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ee.A)(function*(l){const n=de(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;py(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 Lc(n,u)}_f(n)&&ds(n)})).apply(this,arguments)}function py(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 ds(l){nu(l).start()}function gy(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ee.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function my(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=le.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,Ee.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ee.A)(function*(u,f){if(function Fr(l){switch(l){default:return j();case ae.CANCELLED:case ae.UNKNOWN:case ae.DEADLINE_EXCEEDED:case ae.RESOURCE_EXHAUSTED:case ae.INTERNAL:case ae.UNAVAILABLE:case ae.UNAUTHENTICATED:return!1;case ae.INVALID_ARGUMENT:case ae.NOT_FOUND:case ae.ALREADY_EXISTS:case ae.PERMISSION_DENIED:case ae.FAILED_PRECONDITION:case ae.ABORTED:case ae.OUT_OF_RANGE:case ae.UNIMPLEMENTED:case ae.DATA_LOSS:return!0}}(w=f.code)&&w!==ae.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)&&ds(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ee.A)(function*(l,n){const i=de(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,Ee.A)(function*(l,n){const i=de(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 qu(l){return l.B_||(l.B_=function(i,s,u){const f=de(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,Ee.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Vc(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=de(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:gy.bind(null,l),Ao:Ku.bind(null,l),R_:my.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&&(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 Ce,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 me(ae.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 Xu(l,n){if(rn("AsyncQueue",`${n}: ${l}`),Pe(l))return new me(ae.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Gt.comparator(i.key,s.key):(i,s)=>Gt.comparator(i.key,s.key),this.keyedMap=Ti(),this.sortedSet=new mr(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 mr(Gt.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,f,_,w,N,z){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=N,this.hasCachedResults=z}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)&&Qo(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 as(n=>Na(n),Qo),this.onlineState="Unknown",this.z_=new Set}}function Os(l,n){return Ef.apply(this,arguments)}function Ef(){return(Ef=(0,Ee.A)(function*(l,n){const i=de(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=Xu(_,`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,Ee.A)(function*(l,n){const i=de(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=de(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=de(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 Pt{constructor(n){this.key=n}}class on{constructor(n){this.key=n}}class Dn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=vr(),this.mutatedKeys=vr(),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 N="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,z="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((se,we)=>{const We=u.get(se),Rt=Bs(this.query,we)?we:null,tn=!!We&&this.mutatedKeys.has(We.key),pn=!!Rt&&(Rt.hasLocalMutations||this.mutatedKeys.has(Rt.key)&&Rt.hasCommittedMutations);let ln=!1;We&&Rt?We.data.isEqual(Rt.data)?tn!==pn&&(s.track({type:3,doc:Rt}),ln=!0):this.Ra(We,Rt)||(s.track({type:2,doc:Rt}),ln=!0,(N&&this.Ia(Rt,N)>0||z&&this.Ia(Rt,z)<0)&&(w=!0)):!We&&Rt?(s.track({type:0,doc:Rt}),ln=!0):We&&!Rt&&(s.track({type:1,doc:We}),ln=!0,(N||z)&&(w=!0)),ln&&(Rt?(_=_.add(Rt),f=pn?f.add(se):f.delete(se)):(_=_.delete(se),f=f.delete(se)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const se="F"===this.query.limitType?_.last():_.first();_=_.delete(se.key),f=f.delete(se.key),s.track({type:1,doc:se})}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((se,we)=>function(Rt,tn){const pn=ln=>{switch(ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return j()}};return pn(Rt)-pn(tn)}(se.type,we.type)||this.Ia(se.doc,we.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],N=0===this.Pa.size&&this.current&&!u?1:0,z=N!==this.ha;return this.ha=N,0!==_.length||z?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===N,z,!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=vr(),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 on(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Pt(s))}),i}pa(n){this.la=n.hs,this.Pa=vr();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 Xn{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class jr{constructor(n){this.key=n,this.wa=!1}}class Oo{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 as(w=>Na(w),Qo),this.Da=new Map,this.Ca=new Set,this.va=new mr(Gt.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 Zi(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 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,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=de(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,oe.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,On(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Zu(l,n,i,s,u){return Ju.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Xa(l.remoteStore,u),w})).apply(this,arguments)}function Ju(){return Ju=(0,Ee.A)(function*(l,n,i,s,u){l.Ba=(we,We,Rt)=>{return(tn=(0,Ee.A)(function*(ln,zn,lr,Qn){let Rr=zn.view.da(lr);Rr.Xi&&(Rr=yield vl(ln.localStore,zn.query,!1).then(({documents:Ue})=>zn.view.da(Ue,Rr)));const Ii=Qn&&Qn.targetChanges.get(zn.targetId),zr=Qn&&null!=Qn.targetMismatches.get(zn.targetId),ht=zn.view.applyChanges(Rr,ln.isPrimaryClient,Ii,zr);return Eg(ln,zn.targetId,ht.fa),ht.snapshot}),function pn(ln,zn,lr,Qn){return tn.apply(this,arguments)})(l,we,We,Rt);var tn};const f=yield vl(l.localStore,n,!0),_=new Dn(n,f.hs),w=_.da(f.documents),N=_i.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),z=_.applyChanges(w,l.isPrimaryClient,N);Eg(l,i,z.fa);const se=new Xn(n,i,_);return l.ba.set(n,se),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),z.snapshot}),Ju.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ee.A)(function*(l,n,i){const s=de(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Qo(_,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(Qr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Cf(l,n){return qd.apply(this,arguments)}function qd(){return(qd=(0,Ee.A)(function*(l,n){const i=de(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=de(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 N=de(_),z=Xt.now(),se=w.reduce((Rt,tn)=>Rt.add(tn.key),vr());let we,We;return N.persistence.runTransaction("Locally write mutations","readwrite",Rt=>{let tn=Jn(),pn=vr();return N.os.getEntries(Rt,se).next(ln=>{tn=ln,tn.forEach((zn,lr)=>{lr.isValidDocument()||(pn=pn.add(zn))})}).next(()=>N.localDocuments.getOverlayedDocuments(Rt,tn)).next(ln=>{we=ln;const zn=[];for(const lr of w){const Qn=pc(lr,we.get(lr.key).overlayedDocument);null!=Qn&&zn.push(new lo(lr.key,Qn,br(Qn.value.mapValue),Di.exists(!0)))}return N.mutationQueue.addMutationBatch(Rt,z,zn,w)}).next(ln=>{We=ln;const zn=ln.applyToLocalDocumentSet(we,pn);return N.documentOverlayCache.saveOverlays(Rt,ln.batchId,zn)})}).then(()=>({batchId:We.batchId,changes:ro(we)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,N){let z=_.xa[_.currentUser.toKey()];z||(z=new mr(Ve)),z=z.insert(w,N),_.xa[_.currentUser.toKey()]=z}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const f=Xu(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,Ee.A)(function*(l,n){const i=de(l);try{const s=yield function og(l,n){const i=de(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((se,we)=>{const We=u.get(we);if(!We)return;w.push(i.Qr.removeMatchingKeys(f,se.removedDocuments,we).next(()=>i.Qr.addMatchingKeys(f,se.addedDocuments,we)));let Rt=We.withSequenceNumber(f.currentSequenceNumber);var pn,ln,zn;null!==n.targetMismatches.get(we)?Rt=Rt.withResumeToken(si.EMPTY_BYTE_STRING,en.min()).withLastLimboFreeSnapshotVersion(en.min()):se.resumeToken.approximateByteSize()>0&&(Rt=Rt.withResumeToken(se.resumeToken,s)),u=u.insert(we,Rt),ln=Rt,zn=se,(0===(pn=We).resumeToken.approximateByteSize()||ln.snapshotVersion.toMicroseconds()-pn.snapshotVersion.toMicroseconds()>=3e8||zn.addedDocuments.size+zn.modifiedDocuments.size+zn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,Rt))});let N=Jn(),z=vr();if(n.documentUpdates.forEach(se=>{n.resolvedLimboDocuments.has(se)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,se))}),w.push(function $u(l,n,i){let s=vr(),u=vr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=Jn();return i.forEach((w,N)=>{const z=f.get(w);N.isFoundDocument()!==z.isFoundDocument()&&(u=u.add(w)),N.isNoDocument()&&N.version.isEqual(en.min())?(n.removeEntry(w,N.readTime),_=_.insert(w,N)):!z.isValidDocument()||N.version.compareTo(z.version)>0||0===N.version.compareTo(z.version)&&z.hasPendingWrites?(n.addEntry(N),_=_.insert(w,N)):Be("LocalStore","Ignoring outdated watch update for ",w,". Current version:",z.version," Watch version:",N.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(se=>{N=se.cs,z=se.ls})),!s.isEqual(en.min())){const se=i.Qr.getLastRemoteSnapshotVersion(f).next(we=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(se)}return oe.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,N,z)).next(()=>N)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(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 Qr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=de(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 N=de(_);N.onlineState=w;let z=!1;N.queries.forEach((se,we)=>{for(const We of we.U_)We.j_(w)&&(z=!0)}),z&&Gd(N)}(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,Ee.A)(function*(l,n,i){const s=de(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new mr(Gt.comparator);_=_.insert(f,cr.newNoDocument(f,en.min()));const w=vr().add(f),N=new Gi(en.min(),new Map,new mr(Ve),_,w);yield gg(s,N),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(Qr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ee.A)(function*(l,n){const i=de(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=de(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,N,z,se){const we=z.batch,We=we.keys();let Rt=oe.resolve();return We.forEach(tn=>{Rt=Rt.next(()=>se.getEntry(N,tn)).next(pn=>{const ln=z.docVersions.get(tn);W(null!==ln),pn.version.compareTo(ln)<0&&(we.applyToRemoteDocument(pn,z),pn.isValidDocument()&&(pn.setReadTime(z.commitVersion),se.addEntry(pn)))})}),Rt.next(()=>w.mutationQueue.removeMutationBatch(N,we))}(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 N=vr();for(let z=0;z0&&(N=N.add(w.batch.mutations[z].key));return N}(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 Qr(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=de(l);try{const u=yield function(_,w){const N=de(_);return N.persistence.runTransaction("Reject batch","readwrite-primary",z=>{let se;return N.mutationQueue.lookupMutationBatch(z,w).next(we=>(W(null!==we),se=we.keys(),N.mutationQueue.removeMutationBatch(z,we))).next(()=>N.mutationQueue.performConsistencyCheck(z)).next(()=>N.documentOverlayCache.removeOverlaysForBatchId(z,se,w)).next(()=>N.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(z,se)).next(()=>N.localDocuments.getDocuments(z,se))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Qr(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=de(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 Pt?(l.Ma.addReference(s.key,n),_y(l,s)):s instanceof on?(Be("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 _y(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(N,n,i).then(z=>{if((z||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(N.targetId,z&&!z.fromCache?"current":"not-current"),z){u.push(z);const se=yi.Ki(N.targetId,z);f.push(se)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ee.A)(function*(z,se){const we=de(z);try{yield we.persistence.runTransaction("notifyLocalViewChanges","readwrite",We=>oe.forEach(se,Rt=>oe.forEach(Rt.qi,tn=>we.persistence.referenceDelegate.addReference(We,Rt.targetId,tn)).next(()=>oe.forEach(Rt.Qi,tn=>we.persistence.referenceDelegate.removeReference(We,Rt.targetId,tn)))))}catch(We){if(!Pe(We))throw We;Be("LocalStore","Failed to update sequence numbers: "+We)}for(const We of se){const Rt=We.targetId;if(!We.fromCache){const tn=we.ns.get(Rt),ln=tn.withLastLimboFreeSnapshotVersion(tn.snapshotVersion);we.ns=we.ns.insert(Rt,ln)}}}),function N(z,se){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,Ee.A)(function*(l,n){const i=de(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(N=>{N.reject(new me(ae.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=de(l),s=i.Fa.get(n);if(s&&s.wa)return vr().add(s.key);{let u=vr();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=de(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 Za{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 ef(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new Jh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}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 Ja{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 If}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Ld(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=Vd.D()?new Vd:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,N,z,se){const we=new Oo(u,f,_,w,N,z);return se&&(we.La=!0),we}(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*(f){const _=de(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):rn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Ty{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=ze.UNAUTHENTICATED,this.clientId=Yn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ee.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 me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Ce;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=Xu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Pf(l,n){return rh.apply(this,arguments)}function rh(){return rh=(0,Ee.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,Ee.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,Ee.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,Ee.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===ae.FAILED_PRECONDITION||l.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;pt("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Za)}}else Be("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Za);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?(Be("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(Be("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Ja))),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=Zi.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 Vf(l,n,i){if(!i)throw new me(ae.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Og(l){if(!Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function kg(l){if(Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Lf(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 Xr(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new me(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Lf(l);throw new me(ae.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 me(ae.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 me(ae.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 me(ae.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 me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new me(ae.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 me(ae.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 me(ae.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 kt;switch(s.type){case"firstParty":return new $n(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new me(ae.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,ce(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 Gt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function rE(l,n,...i){if(l=(0,De.Ku)(l),Vf("collection","path",n),l instanceof lh){const s=gn.fromString(n,...i);return kg(s),new bl(l,null,s)}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return kg(s),new bl(l.firestore,null,s)}}function Sy(l,n,...i){if(l=(0,De.Ku)(l),1===arguments.length&&(n=Yn.newId()),Vf("doc","path",n),l instanceof lh){const s=gn.fromString(n,...i);return Og(s),new go(l,null,new Gt(s))}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Gt(s))}}class Ry{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 Ce;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(!Pe(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,rn("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&&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 bi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new Ry,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Lg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,re.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,re.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,De.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=Xr(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&pt("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,N;if("string"==typeof s.mockUserToken)w=s.mockUserToken,N=ze.MOCK_USER;else{w=(0,De.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const z=s.mockUserToken.sub||s.mockUserToken.user_id;if(!z)throw new me(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");N=new ze(z)}l._authCredentials=new Bt(new at(w,N))}}(u,...f)}return u}function to(l){return l._firestoreClient||Lg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Lg(l){var n,i,s;const u=l._freezeSettings(),f=(N=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,N,l._persistenceKey,(se=u).host,se.ssl,se.experimentalForceLongPolling,se.experimentalAutoDetectLongPolling,ah(se.experimentalLongPollingOptions),se.useFetchStreams));var N,se;l._firestoreClient=new Ty(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(si.fromBase64String(n))}catch(i){throw new me(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(si.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 me(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new me(ae.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 Ve(this._lat,n._lat)||Ve(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 j()}}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;nN.covers(we.field))}else N=null,z=_.fieldTransforms;return new Uf(new In(w),N,z)}class Qc extends qc{_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(Vv(l=(0,De.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof qc)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 N=Sa(w,u.bu(_));null==N&&(N={nullValue:"NULL_VALUE"}),f.push(N),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,De.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=Xt.fromDate(s);return{timestampValue:wo(u.serializer,f)}}if(s instanceof Xt){const f=new Xt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:wo(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: ${Lf(s)}`)}(l,n)}function Fv(l,n){const i={};return ti(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):mi(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Vv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Xt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof qc)}function Gg(l,n,i){if(!Vv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Lf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,De.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 N="";return(f||_)&&(N+=" (found",f&&(N+=` in field ${s}`),_&&(N+=` in document ${u}`),N+=")"),new me(ae.INVALID_ARGUMENT,w+l+N)}function Lv(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 Ly(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(Zc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Ly extends dh{data(){return super.data()}}function Zc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return ai(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(jn(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 mi(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(ai(n.latitude),ai(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ao(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Co(n));default:return null}}convertTimestamp(n){const i=Or(n);return new Xt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=gn.fromString(n);W(Td(s));const u=new To(s.get(1),s.get(3)),f=new Gt(s.popFirst(5));return u.isEqual(i)||rn(`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(Zc("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 me(ae.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 N=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 z=-1,se=-1;return 0!==w.type&&(z=_.indexOf(w.doc.key),_=_.delete(w.doc.key)),1!==w.type&&(_=_.add(w.doc),se=_.indexOf(w.doc.key)),{type:Wy(w.type),doc:N,oldIndex:z,newIndex:se}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function Wy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return j()}}function jv(l){l=Xr(l,go);const n=Xr(l.firestore,bi);return function sh(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>$c(f,we));const Rt=We.docs.has(w);!Rt&&We.fromCache?z.reject(new me(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):Rt&&We.fromCache&&N&&"server"===N.source?z.reject(new me(ae.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.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(ce(w.path),se,{includeMetadataChanges:!0,ra:!0});return Os(f,we)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(to(n),l._key).then(i=>function Xf(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 qg{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=Xr(l,po);const n=Xr(l.firestore,bi),i=to(n),s=new fu(n);return function Uy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new me(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function xg(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>$c(f,we)),We.fromCache&&"server"===N.source?z.reject(new me(ae.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.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(w,se,{includeMetadataChanges:!0,ra:!0});return Os(f,we)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new Rl(n,s,l,u))}function Zg(l,n,i){l=Xr(l,go);const s=Xr(l.firestore,bi),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,Di.none())])}function Ky(l,n,i,...s){l=Xr(l,go);const u=Xr(l.firestore,bi),f=rc(u);let _;return _="string"==typeof(n=(0,De.Ku)(n))||n instanceof hu?function kv(l,n,i,s,u,f){const _=l.Fu(1,n,i),w=[Yc(n,s,i)],N=[u];if(f.length%2!=0)throw new me(ae.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let We=0;We=0;--We)if(!Lv(z,w[We])){const Rt=w[We];let tn=N[We];tn=(0,De.Ku)(tn);const pn=_.Su(Rt);if(tn instanceof Qc)z.push(Rt);else{const ln=Sa(tn,pn);null!=ln&&(z.push(Rt),se.set(Rt,ln))}}const we=new Bi(z);return new Ov(se,we,_.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=[],_=In.empty();mi(s,(N,z)=>{const se=Hf(n,N,i);z=(0,De.Ku)(z);const we=u.Su(se);if(z instanceof Qc)f.push(se);else{const We=Sa(z,we);null!=We&&(f.push(se),_.set(se,We))}});const w=new Bi(f);return new Ov(_,w,u.fieldTransforms)}(f,"updateDoc",l._key,n),rd(u,[_.toMutation(l._key,Di.exists(!0))])}function qy(l){return rd(Xr(l.firestore,bi),[new V(l._key,Di.none())])}function rd(l,n){return function(s,u){const f=new Ce;return s.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function Xd(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){Tt=re.MF,(0,re.om)(new Ze.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new bi(new vn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(z,se){if(!Object.prototype.hasOwnProperty.apply(z.options,["projectId"]))throw new me(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new To(z.options.projectId,se)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,re.KO)(xt,"4.6.3",n),(0,re.KO)(xt,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new d.nKC("angularfire2.firestore-instances");function u0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new vh(s)}}const c0={provide:class l0{constructor(){return(0,g.CA)(ep)}},deps:[[new d.Xx1,im]]},d0={provide:vh,useFactory:function Yv(l,n){const i=(0,g.lR)(ep,l,n);return i&&new vh(i)},deps:[[new d.Xx1,im],ge.XU]};function Zv(l,...n){return(0,X.KO)("angularfire",g.xv.full,"fst"),(0,d.EmA)([d0,c0,{provide:im,useFactory:u0(l),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,Oe.DF],[new d.Xx1,g.Jv],...n]}])}const g0=(0,g.S3)(rE,!0),m0=(0,g.S3)(qy,!0),sm=(0,g.S3)(Sy,!0),lm=(0,g.S3)(jv,!0),r_=(0,g.S3)(zv,!0),um=(0,g.S3)(uh,!0),S0=(0,g.S3)(Zg,!0),R0=(0,g.S3)(Ky,!0)},3586:(En,bt,B)=>{"use strict";B.d(bt,{xv:()=>Me,u0:()=>Dt,Jv:()=>xt,CA:()=>Ct,lR:()=>Ke,S3:()=>ae});var g=B(9842),d=B(4438),ge=B(2214),Oe=B(8359);class X extends Oe.yU{constructor(Ce,at){super()}schedule(Ce,at=0){return this}}const Ee={setInterval(me,Ce,...at){const{delegate:kt}=Ee;return null!=kt&&kt.setInterval?kt.setInterval(me,Ce,...at):setInterval(me,Ce,...at)},clearInterval(me){const{delegate:Ce}=Ee;return((null==Ce?void 0:Ce.clearInterval)||clearInterval)(me)},delegate:void 0};var re=B(7908);class Ze extends X{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at,this.pending=!1}schedule(Ce,at=0){var kt;if(this.closed)return this;this.state=Ce;const Bt=this.id,vn=this.scheduler;return null!=Bt&&(this.id=this.recycleAsyncId(vn,Bt,at)),this.pending=!0,this.delay=at,this.id=null!==(kt=this.id)&&void 0!==kt?kt:this.requestAsyncId(vn,this.id,at),this}requestAsyncId(Ce,at,kt=0){return Ee.setInterval(Ce.flush.bind(Ce,this),kt)}recycleAsyncId(Ce,at,kt=0){if(null!=kt&&this.delay===kt&&!1===this.pending)return at;null!=at&&Ee.clearInterval(at)}execute(Ce,at){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const kt=this._execute(Ce,at);if(kt)return kt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ce,at){let Bt,kt=!1;try{this.work(Ce)}catch(vn){kt=!0,Bt=vn||new Error("Scheduled action threw falsy error")}if(kt)return this.unsubscribe(),Bt}unsubscribe(){if(!this.closed){const{id:Ce,scheduler:at}=this,{actions:kt}=at;this.work=this.state=this.scheduler=null,this.pending=!1,(0,re.o)(kt,this),null!=Ce&&(this.id=this.recycleAsyncId(at,Ce,null)),this.delay=null,super.unsubscribe()}}}const De={now:()=>(De.delegate||Date).now(),delegate:void 0};class _e{constructor(Ce,at=_e.now){this.schedulerActionCtor=Ce,this.now=at}schedule(Ce,at=0,kt){return new this.schedulerActionCtor(this,Ce).schedule(kt,at)}}_e.now=De.now;class Fe extends _e{constructor(Ce,at=_e.now){super(Ce,at),this.actions=[],this._active=!1}flush(Ce){const{actions:at}=this;if(this._active)return void at.push(Ce);let kt;this._active=!0;do{if(kt=Ce.execute(Ce.state,Ce.delay))break}while(Ce=at.shift());if(this._active=!1,kt){for(;Ce=at.shift();)Ce.unsubscribe();throw kt}}}const Le=new class $e extends Fe{}(class Je extends Ze{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at}schedule(Ce,at=0){return at>0?super.schedule(Ce,at):(this.delay=at,this.state=Ce,this.scheduler.flush(this),this)}execute(Ce,at){return at>0||this.closed?super.execute(Ce,at):this._execute(Ce,at)}requestAsyncId(Ce,at,kt=0){return null!=kt&&kt>0||null==kt&&this.delay>0?super.requestAsyncId(Ce,at,kt):(Ce.flush(this),0)}}),ft=new Fe(Ze);var st=B(1985),Mt=B(8141),mt=B(6745),vt=B(941);const Me=new d.RxE("ANGULARFIRE2_VERSION");function Ke(me,Ce,at){if(Ce){if(1===Ce.length)return Ce[0];const vn=Ce.filter(bn=>bn.app===at);if(1===vn.length)return vn[0]}return at.container.getProvider(me).getImmediate({optional:!0})}const Ct=(me,Ce)=>{const at=Ce?[Ce]:(0,ge.Dk)(),kt=[];return at.forEach(Bt=>{Bt.container.getProvider(me).instances.forEach(bn=>{kt.includes(bn)||kt.push(bn)})}),kt};class xt{constructor(){return Ct(ze)}}const ze="app-check";function Tt(){}class Vt{constructor(Ce,at=Le){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=Ce,this.delegate=at}now(){return this.delegate.now()}schedule(Ce,at,kt){const Bt=this.zone;return this.delegate.schedule(function(bn){Bt.runGuarded(()=>{Ce.apply(this,[bn])})},at,kt)}}class Zt{constructor(Ce){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=Ce}call(Ce,at){const kt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)),at.pipe((0,Mt.M)({next:kt,complete:kt,error:kt})).subscribe(Ce).add(kt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Dt=(()=>{var me;class Ce{constructor(kt){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=kt,this.outsideAngular=kt.runOutsideAngular(()=>new Vt(Zone.current)),this.insideAngular=kt.run(()=>new Vt(Zone.current,ft)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return me=Ce,(0,g.A)(Ce,"\u0275fac",function(kt){return new(kt||me)(d.KVO(d.SKi))}),(0,g.A)(Ce,"\u0275prov",d.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})),Ce})();function Be(){const me=globalThis.\u0275AngularFireScheduler;if(!me)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 me}function pt(me){return Be().ngZone.run(()=>me())}function W(me){return function te(me){return function(at){return(at=at.lift(new Zt(me.ngZone))).pipe((0,mt._)(me.outsideAngular),(0,vt.Q)(me.insideAngular))}}(Be())(me)}const de=(me,Ce)=>function(){const kt=arguments;return Ce&&setTimeout(()=>{"scheduled"===Ce.state&&Ce.invoke()},10),pt(()=>me.apply(void 0,kt))},ae=(me,Ce)=>function(){let at;const kt=arguments;for(let vn=0;vnZone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)))),kt[vn]=de(kt[vn],at));const Bt=function rn(me){return Be().ngZone.runOutsideAngular(()=>me())}(()=>me.apply(this,kt));if(!Ce){if(Bt instanceof st.c){const vn=Be();return Bt.pipe((0,mt._)(vn.outsideAngular),(0,vt.Q)(vn.insideAngular))}return pt(()=>Bt)}return Bt instanceof st.c?Bt.pipe(W):Bt instanceof Promise?pt(()=>new Promise((vn,bn)=>Bt.then($n=>pt(()=>vn($n)),$n=>pt(()=>bn($n))))):"function"==typeof Bt&&at?function(){return setTimeout(()=>{at&&"scheduled"===at.state&&at.invoke()},10),Bt.apply(this,arguments)}:pt(()=>Bt)}},4341:(En,bt,B)=>{"use strict";B.d(bt,{YN:()=>da,zX:()=>ci,VZ:()=>Go,cz:()=>Ke,kq:()=>Qe,vO:()=>Ot,BC:()=>gn,vS:()=>sr});var g=B(4438),d=B(177),ge=B(8455),Oe=B(1985),X=B(3073),Ee=B(8750),re=B(3794),Ze=B(4360),Je=B(6450),De=B(8496),Fe=B(6354);let $e=(()=>{var L;class P{constructor($,Te){this._renderer=$,this._elementRef=Te,this.onChange=nn=>{},this.onTouched=()=>{}}setProperty($,Te){this._renderer.setProperty(this._elementRef.nativeElement,$,Te)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT))},L.\u0275dir=g.FsC({type:L}),P})(),Le=(()=>{var L;class P extends $e{}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,features:[g.Vt3]}),P})();const Qe=new g.nKC(""),st={provide:Qe,useExisting:(0,g.Rfq)(()=>vt),multi:!0},mt=new g.nKC("");let vt=(()=>{var L;class P extends $e{constructor($,Te,nn){super($,Te),this._compositionMode=nn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mt(){const L=(0,d.QT)()?(0,d.QT)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue($){this.setProperty("value",null==$?"":$)}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(mt,8))},L.\u0275dir=g.FsC({type:L,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($,Te){1&$&&g.bIt("input",function(On){return Te._handleInput(On.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(On){return Te._compositionEnd(On.target.value)})},features:[g.Jv_([st]),g.Vt3]}),P})();function Me(L){return null==L||("string"==typeof L||Array.isArray(L))&&0===L.length}const Ke=new g.nKC(""),Ct=new g.nKC("");function j(L){return null}function W(L){return null!=L}function te(L){return(0,g.jNT)(L)?(0,ge.H)(L):L}function de(L){let P={};return L.forEach(ce=>{P=null!=ce?{...P,...ce}:P}),0===Object.keys(P).length?null:P}function ae(L,P){return P.map(ce=>ce(L))}function Ce(L){return L.map(P=>function me(L){return!L.validate}(P)?P:ce=>P.validate(ce))}function kt(L){return null!=L?function at(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return de(ae(ce,P))}}(Ce(L)):null}function vn(L){return null!=L?function Bt(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return function _e(...L){const P=(0,re.ms)(L),{args:ce,keys:$}=(0,X.D)(L),Te=new Oe.c(nn=>{const{length:On}=ce;if(!On)return void nn.complete();const rr=new Array(On);let Ji=On,ao=On;for(let eo=0;eo{Qo||(Qo=!0,ao--),rr[eo]=Na},()=>Ji--,void 0,()=>{(!Ji||!Qo)&&(ao||nn.next($?(0,De.e)($,rr):rr),nn.complete())}))}});return P?Te.pipe((0,Je.I)(P)):Te}(ae(ce,P).map(te)).pipe((0,Fe.T)(de))}}(Ce(L)):null}function bn(L,P){return null===L?[P]:Array.isArray(L)?[...L,P]:[L,P]}function er(L){return L?Array.isArray(L)?L:[L]:[]}function yn(L,P){return Array.isArray(L)?L.includes(P):L===P}function ir(L,P){const ce=er(P);return er(L).forEach(Te=>{yn(ce,Te)||ce.push(Te)}),ce}function Yn(L,P){return er(P).filter(ce=>!yn(L,ce))}class Ve{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(P){this._rawValidators=P||[],this._composedValidatorFn=kt(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=vn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P=void 0){this.control&&this.control.reset(P)}hasError(P,ce){return!!this.control&&this.control.hasError(P,ce)}getError(P,ce){return this.control?this.control.getError(P,ce):null}}class yt extends Ve{get formDirective(){return null}get path(){return null}}class Ot extends Ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Xt{constructor(P){this._cd=P}get isTouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.touched)}get isUntouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.untouched)}get isPristine(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pristine)}get isDirty(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.dirty)}get isValid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.valid)}get isInvalid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.invalid)}get isPending(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pending)}get isSubmitted(){var P;return!(null===(P=this._cd)||void 0===P||!P.submitted)}}let gn=(()=>{var L;class P extends Xt{constructor($){super($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(Ot,2))},L.\u0275dir=g.FsC({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Te){2&$&&g.AVh("ng-untouched",Te.isUntouched)("ng-touched",Te.isTouched)("ng-pristine",Te.isPristine)("ng-dirty",Te.isDirty)("ng-valid",Te.isValid)("ng-invalid",Te.isInvalid)("ng-pending",Te.isPending)},features:[g.Vt3]}),P})();const oe="VALID",He="INVALID",ct="PENDING",Xe="DISABLED";function rt(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}class Wn{constructor(P,ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(P),this._assignAsyncValidators(ce)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===oe}get invalid(){return this.status===He}get pending(){return this.status==ct}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._assignValidators(P)}setAsyncValidators(P){this._assignAsyncValidators(P)}addValidators(P){this.setValidators(ir(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(ir(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(Yn(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(Yn(P,this._rawAsyncValidators))}hasValidator(P){return yn(this._rawValidators,P)}hasAsyncValidator(P){return yn(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ce=>{ce.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ce=>{ce.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=ct,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=Xe,this.errors=null,this._forEachChild($=>{$.disable({...P,onlySelf:!0})}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!0))}enable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=oe,this._forEachChild($=>{$.enable({...P,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}getRawValue(){return this.value}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===oe||this.status===ct)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(ce=>ce._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:oe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=ct,this._hasOwnPendingAsyncValidator=!0;const ce=te(this.asyncValidator(this));this._asyncValidationSubscription=ce.subscribe($=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,ce={}){this.errors=P,this._updateControlsErrors(!1!==ce.emitEvent)}get(P){let ce=P;return null==ce||(Array.isArray(ce)||(ce=ce.split(".")),0===ce.length)?null:ce.reduce(($,Te)=>$&&$._find(Te),this)}getError(P,ce){const $=ce?this.get(ce):this;return $&&$.errors?$.errors[P]:null}hasError(P,ce){return!!this.getError(P,ce)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ct)?ct:this._anyControlsHaveStatus(He)?He:oe}_anyControlsHaveStatus(P){return this._anyControls(ce=>ce.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){rt(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(P){return null}_assignValidators(P){this._rawValidators=Array.isArray(P)?P.slice():P,this._composedValidatorFn=function he(L){return Array.isArray(L)?kt(L):L||null}(this._rawValidators)}_assignAsyncValidators(P){this._rawAsyncValidators=Array.isArray(P)?P.slice():P,this._composedAsyncValidatorFn=function Et(L){return Array.isArray(L)?vn(L):L||null}(this._rawAsyncValidators)}}const Ei=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ii}),ii="always";function Ui(L,P,ce=ii){var $,Te;(function gi(L,P){const ce=function $n(L){return L._rawValidators}(L);null!==P.validator?L.setValidators(bn(ce,P.validator)):"function"==typeof ce&&L.setValidators([ce]);const $=function qn(L){return L._rawAsyncValidators}(L);null!==P.asyncValidator?L.setAsyncValidators(bn($,P.asyncValidator)):"function"==typeof $&&L.setAsyncValidators([$]);const Te=()=>L.updateValueAndValidity();Hi(P._rawValidators,Te),Hi(P._rawAsyncValidators,Te)})(L,P),P.valueAccessor.writeValue(L.value),(L.disabled||"always"===ce)&&(null===($=(Te=P.valueAccessor).setDisabledState)||void 0===$||$.call(Te,L.disabled)),function lt(L,P){P.valueAccessor.registerOnChange(ce=>{L._pendingValue=ce,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&fn(L,P)})}(L,P),function Kn(L,P){const ce=($,Te)=>{P.valueAccessor.writeValue($),Te&&P.viewToModelUpdate($)};L.registerOnChange(ce),P._registerOnDestroy(()=>{L._unregisterOnChange(ce)})}(L,P),function Ut(L,P){P.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&fn(L,P),"submit"!==L.updateOn&&L.markAsTouched()})}(L,P),function wi(L,P){if(P.valueAccessor.setDisabledState){const ce=$=>{P.valueAccessor.setDisabledState($)};L.registerOnDisabledChange(ce),P._registerOnDestroy(()=>{L._unregisterOnDisabledChange(ce)})}}(L,P)}function Hi(L,P){L.forEach(ce=>{ce.registerOnValidatorChange&&ce.registerOnValidatorChange(P)})}function fn(L,P){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function xi(L,P){const ce=L.indexOf(P);ce>-1&&L.splice(ce,1)}function mi(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}Promise.resolve();const Si=class extends Wn{constructor(P=null,ce,$){super(function ie(L){return(rt(L)?L.validators:L)||null}(ce),function Pe(L,P){return(rt(P)?P.asyncValidators:L)||null}($,ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(ce)&&(ce.nonNullable||ce.initialValueIsDefault)&&(this.defaultValue=mi(P)?P.value:P)}setValue(P,ce={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==ce.emitModelToViewChange&&this._onChange.forEach($=>$(this.value,!1!==ce.emitViewToModelChange)),this.updateValueAndValidity(ce)}patchValue(P,ce={}){this.setValue(P,ce)}reset(P=this.defaultValue,ce={}){this._applyFormState(P),this.markAsPristine(ce),this.markAsUntouched(ce),this.setValue(this.value,ce),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){xi(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){xi(this._onDisabledChange,P)}_forEachChild(P){}_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(P){mi(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}},ps={provide:Ot,useExisting:(0,g.Rfq)(()=>sr)},si=Promise.resolve();let sr=(()=>{var L;class P extends Ot{constructor($,Te,nn,On,rr,Ji){super(),this._changeDetectorRef=rr,this.callSetDisabledState=Ji,this.control=new Si,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=$,this._setValidators(Te),this._setAsyncValidators(nn),this.valueAccessor=function Hn(L,P){if(!P)return null;let ce,$,Te;return Array.isArray(P),P.forEach(nn=>{nn.constructor===vt?ce=nn:function Pn(L){return Object.getPrototypeOf(L.constructor)===Le}(nn)?$=nn:Te=nn}),Te||$||ce||null}(0,On)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Te=$.name.previousValue;this.formDirective.removeControl({name:Te,path:this._getPath(Te)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),function cn(L,P){if(!L.hasOwnProperty("model"))return!1;const ce=L.model;return!!ce.isFirstChange()||!Object.is(P,ce.currentValue)}($,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($){this.viewModel=$,this.update.emit($)}_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(){Ui(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($){si.then(()=>{var Te;this.control.setValue($,{emitViewToModelChange:!1}),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()})}_updateDisabled($){const Te=$.isDisabled.currentValue,nn=0!==Te&&(0,g.L39)(Te);si.then(()=>{var On;nn&&!this.control.disabled?this.control.disable():!nn&&this.control.disabled&&this.control.enable(),null===(On=this._changeDetectorRef)||void 0===On||On.markForCheck()})}_getPath($){return this._parent?function pi(L,P){return[...P.path,L]}($,this._parent):[$]}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(yt,9),g.rXU(Ke,10),g.rXU(Ct,10),g.rXU(Qe,10),g.rXU(g.gRc,8),g.rXU(Ei,8))},L.\u0275dir=g.FsC({type:L,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_([ps]),g.Vt3,g.OA$]}),P})();function nr(L){return"number"==typeof L?L:parseFloat(L)}let li=(()=>{var L;class P{constructor(){this._validator=j}ngOnChanges($){if(this.inputName in $){const Te=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Te),this._validator=this._enabled?this.createValidator(Te):j,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275dir=g.FsC({type:L,features:[g.OA$]}),P})();const vi={provide:Ke,useExisting:(0,g.Rfq)(()=>ci),multi:!0};let ci=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>nr($),this.createValidator=$=>function Vt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce>L?{max:{max:L,actual:P.value}}:null}}($)}}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("max",Te._enabled?Te.max:null)},inputs:{max:"max"},features:[g.Jv_([vi]),g.Vt3]}),P})();const no={provide:Ke,useExisting:(0,g.Rfq)(()=>Go),multi:!0};let Go=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>nr($),this.createValidator=$=>function Tt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("min",Te._enabled?Te.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),P})(),ms=(()=>{var L;class P{}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({}),P})(),da=(()=>{var L;class P{static withConfig($){var Te;return{ngModule:P,providers:[{provide:Ei,useValue:null!==(Te=$.callSetDisabledState)&&void 0!==Te?Te:ii}]}}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({imports:[ms]}),P})()},345:(En,bt,B)=>{"use strict";B.d(bt,{Bb:()=>er,hE:()=>Yn,sG:()=>vn});var g=B(4438),d=B(177);class ge extends d.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends ge{static makeCurrent(){(0,d.ZD)(new Oe)}onAndCancel(He,ct,Xe){return He.addEventListener(ct,Xe),()=>{He.removeEventListener(ct,Xe)}}dispatchEvent(He,ct){He.dispatchEvent(ct)}remove(He){He.parentNode&&He.parentNode.removeChild(He)}createElement(He,ct){return(ct=ct||this.getDefaultDocument()).createElement(He)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(He){return He.nodeType===Node.ELEMENT_NODE}isShadowRoot(He){return He instanceof DocumentFragment}getGlobalEventTarget(He,ct){return"window"===ct?window:"document"===ct?He:"body"===ct?He.body:null}getBaseHref(He){const ct=function Ee(){return X=X||document.querySelector("base"),X?X.getAttribute("href"):null}();return null==ct?null:function re(oe){return new URL(oe,document.baseURI).pathname}(ct)}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}getCookie(He){return(0,d._b)(document.cookie,He)}}let X=null,Je=(()=>{var oe;class He{build(){return new XMLHttpRequest}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const De=new g.nKC("");let _e=(()=>{var oe;class He{constructor(Xe,ie){this._zone=ie,this._eventNameToPlugin=new Map,Xe.forEach(he=>{he.manager=this}),this._plugins=Xe.slice().reverse()}addEventListener(Xe,ie,he){return this._findPluginFor(ie).addEventListener(Xe,ie,he)}getZone(){return this._zone}_findPluginFor(Xe){let ie=this._eventNameToPlugin.get(Xe);if(ie)return ie;if(ie=this._plugins.find(Pe=>Pe.supports(Xe)),!ie)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(Xe,ie),ie}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(De),g.KVO(g.SKi))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class Fe{constructor(He){this._doc=He}}const $e="ng-app-id";let Le=(()=>{var oe;class He{constructor(Xe,ie,he,Pe={}){this.doc=Xe,this.appId=ie,this.nonce=he,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.Vy)(Pe),this.resetHostNodes()}addStyles(Xe){for(const ie of Xe)1===this.changeUsageCount(ie,1)&&this.onStyleAdded(ie)}removeStyles(Xe){for(const ie of Xe)this.changeUsageCount(ie,-1)<=0&&this.onStyleRemoved(ie)}ngOnDestroy(){const Xe=this.styleNodesInDOM;Xe&&(Xe.forEach(ie=>ie.remove()),Xe.clear());for(const ie of this.getAllStyles())this.onStyleRemoved(ie);this.resetHostNodes()}addHost(Xe){this.hostNodes.add(Xe);for(const ie of this.getAllStyles())this.addStyleToHost(Xe,ie)}removeHost(Xe){this.hostNodes.delete(Xe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Xe){for(const ie of this.hostNodes)this.addStyleToHost(ie,Xe)}onStyleRemoved(Xe){var ie;const he=this.styleRef;null===(ie=he.get(Xe))||void 0===ie||null===(ie=ie.elements)||void 0===ie||ie.forEach(Pe=>Pe.remove()),he.delete(Xe)}collectServerRenderedStyles(){var Xe;const ie=null===(Xe=this.doc.head)||void 0===Xe?void 0:Xe.querySelectorAll(`style[${$e}="${this.appId}"]`);if(null!=ie&&ie.length){const he=new Map;return ie.forEach(Pe=>{null!=Pe.textContent&&he.set(Pe.textContent,Pe)}),he}return null}changeUsageCount(Xe,ie){const he=this.styleRef;if(he.has(Xe)){const Pe=he.get(Xe);return Pe.usage+=ie,Pe.usage}return he.set(Xe,{usage:ie,elements:[]}),ie}getStyleElement(Xe,ie){const he=this.styleNodesInDOM,Pe=null==he?void 0:he.get(ie);if((null==Pe?void 0:Pe.parentNode)===Xe)return he.delete(ie),Pe.removeAttribute($e),Pe;{const Et=this.doc.createElement("style");return this.nonce&&Et.setAttribute("nonce",this.nonce),Et.textContent=ie,this.platformIsServer&&Et.setAttribute($e,this.appId),Xe.appendChild(Et),Et}}addStyleToHost(Xe,ie){var he;const Pe=this.getStyleElement(Xe,ie),Et=this.styleRef,rt=null===(he=Et.get(ie))||void 0===he?void 0:he.elements;rt?rt.push(Pe):Et.set(ie,{elements:[Pe],usage:1})}resetHostNodes(){const Xe=this.hostNodes;Xe.clear(),Xe.add(this.doc.head)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const Qe={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/"},ft=/%COMP%/g,vt=new g.nKC("",{providedIn:"root",factory:()=>!0});function Ke(oe,He){return He.map(ct=>ct.replace(ft,oe))}let Ct=(()=>{var oe;class He{constructor(Xe,ie,he,Pe,Et,rt,dn,Sn=null){this.eventManager=Xe,this.sharedStylesHost=ie,this.appId=he,this.removeStylesOnCompDestroy=Pe,this.doc=Et,this.platformId=rt,this.ngZone=dn,this.nonce=Sn,this.rendererByCompId=new Map,this.platformIsServer=(0,d.Vy)(rt),this.defaultRenderer=new xt(Xe,Et,dn,this.platformIsServer)}createRenderer(Xe,ie){if(!Xe||!ie)return this.defaultRenderer;this.platformIsServer&&ie.encapsulation===g.gXe.ShadowDom&&(ie={...ie,encapsulation:g.gXe.Emulated});const he=this.getOrCreateRenderer(Xe,ie);return he instanceof Be?he.applyToHost(Xe):he instanceof Dt&&he.applyStyles(),he}getOrCreateRenderer(Xe,ie){const he=this.rendererByCompId;let Pe=he.get(ie.id);if(!Pe){const Et=this.doc,rt=this.ngZone,dn=this.eventManager,Sn=this.sharedStylesHost,Wn=this.removeStylesOnCompDestroy,gr=this.platformIsServer;switch(ie.encapsulation){case g.gXe.Emulated:Pe=new Be(dn,Sn,ie,this.appId,Wn,Et,rt,gr);break;case g.gXe.ShadowDom:return new Zt(dn,Sn,Xe,ie,Et,rt,this.nonce,gr);default:Pe=new Dt(dn,Sn,ie,Wn,Et,rt,gr)}he.set(ie.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(_e),g.KVO(Le),g.KVO(g.sZ2),g.KVO(vt),g.KVO(d.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class xt{constructor(He,ct,Xe,ie){this.eventManager=He,this.doc=ct,this.ngZone=Xe,this.platformIsServer=ie,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(He,ct){return ct?this.doc.createElementNS(Qe[ct]||ct,He):this.doc.createElement(He)}createComment(He){return this.doc.createComment(He)}createText(He){return this.doc.createTextNode(He)}appendChild(He,ct){(Vt(He)?He.content:He).appendChild(ct)}insertBefore(He,ct,Xe){He&&(Vt(He)?He.content:He).insertBefore(ct,Xe)}removeChild(He,ct){He&&He.removeChild(ct)}selectRootElement(He,ct){let Xe="string"==typeof He?this.doc.querySelector(He):He;if(!Xe)throw new g.wOt(-5104,!1);return ct||(Xe.textContent=""),Xe}parentNode(He){return He.parentNode}nextSibling(He){return He.nextSibling}setAttribute(He,ct,Xe,ie){if(ie){ct=ie+":"+ct;const he=Qe[ie];he?He.setAttributeNS(he,ct,Xe):He.setAttribute(ct,Xe)}else He.setAttribute(ct,Xe)}removeAttribute(He,ct,Xe){if(Xe){const ie=Qe[Xe];ie?He.removeAttributeNS(ie,ct):He.removeAttribute(`${Xe}:${ct}`)}else He.removeAttribute(ct)}addClass(He,ct){He.classList.add(ct)}removeClass(He,ct){He.classList.remove(ct)}setStyle(He,ct,Xe,ie){ie&(g.czy.DashCase|g.czy.Important)?He.style.setProperty(ct,Xe,ie&g.czy.Important?"important":""):He.style[ct]=Xe}removeStyle(He,ct,Xe){Xe&g.czy.DashCase?He.style.removeProperty(ct):He.style[ct]=""}setProperty(He,ct,Xe){null!=He&&(He[ct]=Xe)}setValue(He,ct){He.nodeValue=ct}listen(He,ct,Xe){if("string"==typeof He&&!(He=(0,d.QT)().getGlobalEventTarget(this.doc,He)))throw new Error(`Unsupported event target ${He} for event ${ct}`);return this.eventManager.addEventListener(He,ct,this.decoratePreventDefault(Xe))}decoratePreventDefault(He){return ct=>{if("__ngUnwrap__"===ct)return He;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>He(ct)):He(ct))&&ct.preventDefault()}}}function Vt(oe){return"TEMPLATE"===oe.tagName&&void 0!==oe.content}class Zt extends xt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){super(He,he,Pe,rt),this.sharedStylesHost=ct,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const dn=Ke(ie.id,ie.styles);for(const Sn of dn){const Wn=document.createElement("style");Et&&Wn.setAttribute("nonce",Et),Wn.textContent=Sn,this.shadowRoot.appendChild(Wn)}}nodeOrShadowRoot(He){return He===this.hostEl?this.shadowRoot:He}appendChild(He,ct){return super.appendChild(this.nodeOrShadowRoot(He),ct)}insertBefore(He,ct,Xe){return super.insertBefore(this.nodeOrShadowRoot(He),ct,Xe)}removeChild(He,ct){return super.removeChild(this.nodeOrShadowRoot(He),ct)}parentNode(He){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(He)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Dt extends xt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){super(He,he,Pe,Et),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=ie,this.styles=rt?Ke(rt,Xe.styles):Xe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Be extends Dt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){const dn=ie+"-"+Xe.id;super(He,ct,Xe,he,Pe,Et,rt,dn),this.contentAttr=function Me(oe){return"_ngcontent-%COMP%".replace(ft,oe)}(dn),this.hostAttr=function je(oe){return"_nghost-%COMP%".replace(ft,oe)}(dn)}applyToHost(He){this.applyStyles(),this.setAttribute(He,this.hostAttr,"")}createElement(He,ct){const Xe=super.createElement(He,ct);return super.setAttribute(Xe,this.contentAttr,""),Xe}}let rn=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return!0}addEventListener(Xe,ie,he){return Xe.addEventListener(ie,he,!1),()=>this.removeEventListener(Xe,ie,he)}removeEventListener(Xe,ie,he){return Xe.removeEventListener(ie,he)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const pt=["alt","control","meta","shift"],ye={"\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:oe=>oe.altKey,control:oe=>oe.ctrlKey,meta:oe=>oe.metaKey,shift:oe=>oe.shiftKey};let W=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return null!=He.parseEventName(Xe)}addEventListener(Xe,ie,he){const Pe=He.parseEventName(ie),Et=He.eventCallback(Pe.fullKey,he,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.QT)().onAndCancel(Xe,Pe.domEventName,Et))}static parseEventName(Xe){const ie=Xe.toLowerCase().split("."),he=ie.shift();if(0===ie.length||"keydown"!==he&&"keyup"!==he)return null;const Pe=He._normalizeKey(ie.pop());let Et="",rt=ie.indexOf("code");if(rt>-1&&(ie.splice(rt,1),Et="code."),pt.forEach(Sn=>{const Wn=ie.indexOf(Sn);Wn>-1&&(ie.splice(Wn,1),Et+=Sn+".")}),Et+=Pe,0!=ie.length||0===Pe.length)return null;const dn={};return dn.domEventName=he,dn.fullKey=Et,dn}static matchEventFullKeyCode(Xe,ie){let he=ye[Xe.key]||Xe.key,Pe="";return ie.indexOf("code.")>-1&&(he=Xe.code,Pe="code."),!(null==he||!he)&&(he=he.toLowerCase()," "===he?he="space":"."===he&&(he="dot"),pt.forEach(Et=>{Et!==he&&(0,j[Et])(Xe)&&(Pe+=Et+".")}),Pe+=he,Pe===ie)}static eventCallback(Xe,ie,he){return Pe=>{He.matchEventFullKeyCode(Pe,Xe)&&he.runGuarded(()=>ie(Pe))}}static _normalizeKey(Xe){return"esc"===Xe?"escape":Xe}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const vn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:d.AJ},{provide:g.PLl,useValue:function Ce(){Oe.makeCurrent()},multi:!0},{provide:d.qQ,useFactory:function kt(){return(0,g.TL$)(document),document},deps:[]}]),bn=new g.nKC(""),$n=[{provide:g.e01,useClass:class Ze{addToWindow(He){g.JZv.getAngularTestability=(Xe,ie=!0)=>{const he=He.findTestabilityInTree(Xe,ie);if(null==he)throw new g.wOt(5103,!1);return he},g.JZv.getAllAngularTestabilities=()=>He.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>He.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(Xe=>{const ie=g.JZv.getAllAngularTestabilities();let he=ie.length;const Pe=function(){he--,0==he&&Xe()};ie.forEach(Et=>{Et.whenStable(Pe)})})}findTestabilityInTree(He,ct,Xe){if(null==ct)return null;const ie=He.getTestability(ct);return null!=ie?ie:Xe?(0,d.QT)().isShadowRoot(ct)?this.findTestabilityInTree(He,ct.host,!0):this.findTestabilityInTree(He,ct.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]}],qn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function at(){return new g.zcH},deps:[]},{provide:De,useClass:rn,multi:!0,deps:[d.qQ,g.SKi,g.Agw]},{provide:De,useClass:W,multi:!0,deps:[d.qQ]},Ct,Le,_e,{provide:g._9s,useExisting:Ct},{provide:d.N0,useClass:Je,deps:[]},[]];let er=(()=>{var oe;class He{constructor(Xe){}static withServerTransition(Xe){return{ngModule:He,providers:[{provide:g.sZ2,useValue:Xe.appId}]}}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(bn,12))},oe.\u0275mod=g.$C({type:oe}),oe.\u0275inj=g.G2t({providers:[...qn,...$n],imports:[d.MD,g.Hbi]}),He})(),Yn=(()=>{var oe;class He{constructor(Xe){this._doc=Xe}getTitle(){return this._doc.title}setTitle(Xe){this._doc.title=Xe||""}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),He})()},845:(En,bt,B)=>{"use strict";B.d(bt,{nX:()=>ne,Zp:()=>S,wF:()=>Si,Z:()=>mi,Xk:()=>yn,Kp:()=>Ua,b:()=>Zr,Ix:()=>Fi,Wk:()=>Uo,iI:()=>Mu,Sd:()=>Qr});var g=B(467),d=B(4438),ge=B(1985),Oe=B(8071),Ee=B(8455),re=B(7673),Ze=B(4412),Je=B(4572);const _e=(0,B(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Fe=B(1397),$e=B(3669);function Le(I=1/0){return(0,Fe.Z)($e.D,I)}var ft=B(3794);function ut(...I){return function Qe(){return Le(1)}()((0,Ee.H)(I,(0,ft.lI)(I)))}var st=B(8750);function Mt(I){return new ge.c(T=>{(0,st.Tg)(I()).subscribe(T)})}var mt=B(1203);function vt(I,T){const R=(0,Oe.T)(I)?I:()=>I,C=x=>x.error(R());return new ge.c(T?x=>T.schedule(C,0,x):C)}var Me=B(983),je=B(8359),Ke=B(9974),Ct=B(4360);function xt(){return(0,Ke.N)((I,T)=>{let R=null;I._refCount++;const C=(0,Ct._)(T,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const x=I._connection,J=R;R=null,x&&(!J||x===J)&&x.unsubscribe(),T.unsubscribe()});I.subscribe(C),C.closed||(R=I.connect())})}class ze extends ge.c{constructor(T,R){super(),this.source=T,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Ke.S)(T)&&(this.lift=T.lift)}_subscribe(T){return this.getSubject().subscribe(T)}getSubject(){const T=this._subject;return(!T||T.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:T}=this;this._subject=this._connection=null,null==T||T.unsubscribe()}connect(){let T=this._connection;if(!T){T=this._connection=new je.yU;const R=this.getSubject();T.add(this.source.subscribe((0,Ct._)(R,void 0,()=>{this._teardown(),R.complete()},C=>{this._teardown(),R.error(C)},()=>this._teardown()))),T.closed&&(this._connection=null,T=je.yU.EMPTY)}return T}refCount(){return xt()(this)}}var Tt=B(1413),Vt=B(177),Zt=B(6354),Dt=B(5558),Be=B(6697),pt=B(5964);function ye(I){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>{C||R.next(I),R.complete()}))})}function j(I=W){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>C?R.complete():R.error(I())))})}function W(){return new _e}function te(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,(0,Be.s)(1),R?ye(T):j(()=>new _e))}function de(I,T){return(0,Oe.T)(T)?(0,Fe.Z)(I,T,1):(0,Fe.Z)(I,1)}var ae=B(8141);function me(I){return(0,Ke.N)((T,R)=>{let J,C=null,x=!1;C=T.subscribe((0,Ct._)(R,void 0,void 0,ve=>{J=(0,st.Tg)(I(ve,me(I)(T))),C?(C.unsubscribe(),C=null,J.subscribe(R)):x=!0})),x&&(C.unsubscribe(),C=null,J.subscribe(R))})}function kt(I){return I<=0?()=>Me.w:(0,Ke.N)((T,R)=>{let C=[];T.subscribe((0,Ct._)(R,x=>{C.push(x),I{for(const x of C)R.next(x);R.complete()},void 0,()=>{C=null}))})}function bn(I){return(0,Ke.N)((T,R)=>{try{T.subscribe(R)}finally{R.add(I)}})}var $n=B(5343),er=B(345);const yn="primary",ir=Symbol("RouteTitle");class Yn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R[0]:R}return null}getAll(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function Ve(I){return new Yn(I)}function yt(I,T,R){const C=R.path.split("/");if(C.length>I.length||"full"===R.pathMatch&&(T.hasChildren()||C.lengthC[J]===x)}return I===T}function gn(I){return I.length>0?I[I.length-1]:null}function mn(I){return function X(I){return!!I&&(I instanceof ge.c||(0,Oe.T)(I.lift)&&(0,Oe.T)(I.subscribe))}(I)?I:(0,d.jNT)(I)?(0,Ee.H)(Promise.resolve(I)):(0,re.of)(I)}const Jt={exact:function kr(I,T,R){if(!Er(I.segments,T.segments)||!ni(I.segments,T.segments,R)||I.numberOfChildren!==T.numberOfChildren)return!1;for(const C in T.children)if(!I.children[C]||!kr(I.children[C],T.children[C],R))return!1;return!0},subset:_r},Gt={exact:function wr(I,T){return Xt(I,T)},subset:function Mr(I,T){return Object.keys(T).length<=Object.keys(I).length&&Object.keys(T).every(R=>Ir(I[R],T[R]))},ignored:()=>!0};function pr(I,T,R){return Jt[R.paths](I.root,T.root,R.matrixParams)&&Gt[R.queryParams](I.queryParams,T.queryParams)&&!("exact"===R.fragment&&I.fragment!==T.fragment)}function _r(I,T,R){return Bn(I,T,T.segments,R)}function Bn(I,T,R,C){if(I.segments.length>R.length){const x=I.segments.slice(0,R.length);return!(!Er(x,R)||T.hasChildren()||!ni(x,R,C))}if(I.segments.length===R.length){if(!Er(I.segments,R)||!ni(I.segments,R,C))return!1;for(const x in T.children)if(!I.children[x]||!_r(I.children[x],T.children[x],C))return!1;return!0}{const x=R.slice(0,I.segments.length),J=R.slice(I.segments.length);return!!(Er(I.segments,x)&&ni(I.segments,x,C)&&I.children[yn])&&Bn(I.children[yn],T,J,C)}}function ni(I,T,R){return T.every((C,x)=>Gt[R](I[x].parameters,C.parameters))}class Zn{constructor(T=new wn([],{}),R={},C=null){this.root=T,this.queryParams=R,this.fragment=C}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class wn{constructor(T,R){this.segments=T,this.children=R,this.parent=null,Object.values(R).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return He(this)}}class Sr{constructor(T,R){this.path=T,this.parameters=R}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=Ve(this.parameters)),this._parameterMap}toString(){return dn(this)}}function Er(I,T){return I.length===T.length&&I.every((R,C)=>R.path===T[C].path)}let Qr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>new Yr,providedIn:"root"}),T})();class Yr{parse(T){const R=new pi(T);return new Zn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(T){const R=`/${ct(T.root,!0)}`,C=function Wn(I){const T=Object.entries(I).map(([R,C])=>Array.isArray(C)?C.map(x=>`${ie(R)}=${ie(x)}`).join("&"):`${ie(R)}=${ie(C)}`).filter(R=>R);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${R}${C}${"string"==typeof T.fragment?`#${function he(I){return encodeURI(I)}(T.fragment)}`:""}`}}const oe=new Yr;function He(I){return I.segments.map(T=>dn(T)).join("/")}function ct(I,T){if(!I.hasChildren())return He(I);if(T){const R=I.children[yn]?ct(I.children[yn],!1):"",C=[];return Object.entries(I.children).forEach(([x,J])=>{x!==yn&&C.push(`${x}:${ct(J,!1)}`)}),C.length>0?`${R}(${C.join("//")})`:R}{const R=function Mi(I,T){let R=[];return Object.entries(I.children).forEach(([C,x])=>{C===yn&&(R=R.concat(T(x,C)))}),Object.entries(I.children).forEach(([C,x])=>{C!==yn&&(R=R.concat(T(x,C)))}),R}(I,(C,x)=>x===yn?[ct(I.children[yn],!1)]:[`${x}:${ct(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[yn]?`${He(I)}/${R[0]}`:`${He(I)}/(${R.join("//")})`}}function Xe(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ie(I){return Xe(I).replace(/%3B/gi,";")}function Pe(I){return Xe(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(I){return decodeURIComponent(I)}function rt(I){return Et(I.replace(/\+/g,"%20"))}function dn(I){return`${Pe(I.path)}${function Sn(I){return Object.entries(I).map(([T,R])=>`;${Pe(T)}=${Pe(R)}`).join("")}(I.parameters)}`}const gr=/^[^\/()?;#]+/;function ur(I){const T=I.match(gr);return T?T[0]:""}const ri=/^[^\/()?;=#]+/,Rn=/^[^=?&#]+/,Ei=/^[^&#]+/;class pi{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(T.length>0||Object.keys(R).length>0)&&(C[yn]=new wn(T,R)),C}parseSegment(){const T=ur(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new d.wOt(4009,!1);return this.capture(T),new Sr(Et(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const R=function xn(I){const T=I.match(ri);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const x=ur(this.remaining);x&&(C=x,this.capture(C))}T[Et(R)]=Et(C)}parseQueryParam(T){const R=function yr(I){const T=I.match(Rn);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const ve=function ii(I){const T=I.match(Ei);return T?T[0]:""}(this.remaining);ve&&(C=ve,this.capture(C))}const x=rt(R),J=rt(C);if(T.hasOwnProperty(x)){let ve=T[x];Array.isArray(ve)||(ve=[ve],T[x]=ve),ve.push(J)}else T[x]=J}parseParens(T){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=ur(this.remaining),x=this.remaining[C.length];if("/"!==x&&")"!==x&&";"!==x)throw new d.wOt(4010,!1);let J;C.indexOf(":")>-1?(J=C.slice(0,C.indexOf(":")),this.capture(J),this.capture(":")):T&&(J=yn);const ve=this.parseChildren();R[J]=1===Object.keys(ve).length?ve[yn]:new wn([],ve),this.consumeOptional("//")}return R}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new d.wOt(4011,!1)}}function Ui(I){return I.segments.length>0?new wn([],{[yn]:I}):I}function or(I){const T={};for(const[C,x]of Object.entries(I.children)){const J=or(x);if(C===yn&&0===J.segments.length&&J.hasChildren())for(const[ve,dt]of Object.entries(J.children))T[ve]=dt;else(J.segments.length>0||J.hasChildren())&&(T[C]=J)}return function Hi(I){if(1===I.numberOfChildren&&I.children[yn]){const T=I.children[yn];return new wn(I.segments.concat(T.segments),T.children)}return I}(new wn(I.segments,T))}function wi(I){return I instanceof Zn}function St(I){var T;let R;const J=Ui(function C(ve){const dt={};for(const At of ve.children){const Tn=C(At);dt[At.outlet]=Tn}const Qt=new wn(ve.url,dt);return ve===I&&(R=Qt),Qt}(I.root));return null!==(T=R)&&void 0!==T?T:J}function lt(I,T,R,C){let x=I;for(;x.parent;)x=x.parent;if(0===T.length)return Kn(x,x,x,R,C);const J=function Ne(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new Z(!0,0,I);let T=0,R=!1;const C=I.reduce((x,J,ve)=>{if("object"==typeof J&&null!=J){if(J.outlets){const dt={};return Object.entries(J.outlets).forEach(([Qt,At])=>{dt[Qt]="string"==typeof At?At.split("/"):At}),[...x,{outlets:dt}]}if(J.segmentPath)return[...x,J.segmentPath]}return"string"!=typeof J?[...x,J]:0===ve?(J.split("/").forEach((dt,Qt)=>{0==Qt&&"."===dt||(0==Qt&&""===dt?R=!0:".."===dt?T++:""!=dt&&x.push(dt))}),x):[...x,J]},[]);return new Z(R,T,C)}(T);if(J.toRoot())return Kn(x,x,new wn([],{}),R,C);const ve=function Se(I,T,R){if(I.isAbsolute)return new Q(T,!0,0);if(!R)return new Q(T,!1,NaN);if(null===R.parent)return new Q(R,!0,0);const C=Ut(I.commands[0])?0:1;return function it(I,T,R){let C=I,x=T,J=R;for(;J>x;){if(J-=x,C=C.parent,!C)throw new d.wOt(4005,!1);x=C.segments.length}return new Q(C,!1,x-J)}(R,R.segments.length-1+C,I.numberOfDoubleDots)}(J,x,I),dt=ve.processChildren?Pn(ve.segmentGroup,ve.index,J.commands):cn(ve.segmentGroup,ve.index,J.commands);return Kn(x,ve.segmentGroup,dt,R,C)}function Ut(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function fn(I){return"object"==typeof I&&null!=I&&I.outlets}function Kn(I,T,R,C,x){let ve,J={};C&&Object.entries(C).forEach(([Qt,At])=>{J[Qt]=Array.isArray(At)?At.map(Tn=>`${Tn}`):`${At}`}),ve=I===T?R:Y(I,T,R);const dt=Ui(or(ve));return new Zn(dt,J,x)}function Y(I,T,R){const C={};return Object.entries(I.children).forEach(([x,J])=>{C[x]=J===T?R:Y(J,T,R)}),new wn(I.segments,C)}class Z{constructor(T,R,C){if(this.isAbsolute=T,this.numberOfDoubleDots=R,this.commands=C,T&&C.length>0&&Ut(C[0]))throw new d.wOt(4003,!1);const x=C.find(fn);if(x&&x!==gn(C))throw new d.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Q{constructor(T,R,C){this.segmentGroup=T,this.processChildren=R,this.index=C}}function cn(I,T,R){var C;if(null!==(C=I)&&void 0!==C||(I=new wn([],{})),0===I.segments.length&&I.hasChildren())return Pn(I,T,R);const x=function Cr(I,T,R){let C=0,x=T;const J={match:!1,pathIndex:0,commandIndex:0};for(;x=R.length)return J;const ve=I.segments[x],dt=R[C];if(fn(dt))break;const Qt=`${dt}`,At=C0&&void 0===Qt)break;if(Qt&&At&&"object"==typeof At&&void 0===At.outlets){if(!Pi(Qt,At,ve))return J;C+=2}else{if(!Pi(Qt,{},ve))return J;C++}x++}return{match:!0,pathIndex:x,commandIndex:C}}(I,T,R),J=R.slice(x.commandIndex);if(x.match&&x.pathIndexJ!==yn)&&I.children[yn]&&1===I.numberOfChildren&&0===I.children[yn].segments.length){const J=Pn(I.children[yn],T,R);return new wn(I.segments,J.children)}return Object.entries(C).forEach(([J,ve])=>{"string"==typeof ve&&(ve=[ve]),null!==ve&&(x[J]=cn(I.children[J],T,ve))}),Object.entries(I.children).forEach(([J,ve])=>{void 0===C[J]&&(x[J]=ve)}),new wn(I.segments,x)}}function Hn(I,T,R){const C=I.segments.slice(0,T);let x=0;for(;x{"string"==typeof C&&(C=[C]),null!==C&&(T[R]=Hn(new wn([],{}),0,C))}),T}function Ai(I){const T={};return Object.entries(I).forEach(([R,C])=>T[R]=`${C}`),T}function Pi(I,T,R){return I==R.path&&Xt(T,R.parameters)}const xr="imperative";var An=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}(An||{});class xi{constructor(T,R){this.id=T,this.url=R}}class mi extends xi{constructor(T,R,C="imperative",x=null){super(T,R),this.type=An.NavigationStart,this.navigationTrigger=C,this.restoredState=x}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Si extends xi{constructor(T,R,C){super(T,R),this.urlAfterRedirects=C,this.type=An.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ti=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(ti||{}),mr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(mr||{});class oi extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nn extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationSkipped}}class kn extends xi{constructor(T,R,C,x){super(T,R),this.error=C,this.target=x,this.type=An.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ko extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ei extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bi extends xi{constructor(T,R,C,x,J){super(T,R),this.urlAfterRedirects=C,this.state=x,this.shouldActivate=J,this.type=An.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class is extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class si{constructor(T){this.route=T,this.type=An.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class sr{constructor(T){this.route=T,this.type=An.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Or{constructor(T){this.snapshot=T,this.type=An.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{constructor(T){this.snapshot=T,this.type=An.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(T){this.snapshot=T,this.type=An.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fo{constructor(T){this.snapshot=T,this.type=An.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{constructor(T,R,C){this.routerEvent=T,this.position=R,this.anchor=C,this.type=An.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Co{}class co{constructor(T){this.url=T}}class Ni{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class T{constructor(){this.contexts=new Map}onChildOutletCreated(C,x){const J=this.getOrCreateContext(C);J.outlet=x,this.contexts.set(C,J)}onChildOutletDestroyed(C){const x=this.getContext(C);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let x=this.getContext(C);return x||(x=new Ni,this.contexts.set(C,x)),x}getContext(C){return this.contexts.get(C)||null}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();class H{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const R=this.pathFromRoot(T);return R.length>1?R[R.length-2]:null}children(T){const R=ue(T,this._root);return R?R.children.map(C=>C.value):[]}firstChild(T){const R=ue(T,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(T){const R=M(T,this._root);return R.length<2?[]:R[R.length-2].children.map(x=>x.value).filter(x=>x!==T)}pathFromRoot(T){return M(T,this._root).map(R=>R.value)}}function ue(I,T){if(I===T.value)return T;for(const R of T.children){const C=ue(I,R);if(C)return C}return null}function M(I,T){if(I===T.value)return[T];for(const R of T.children){const C=M(I,R);if(C.length)return C.unshift(T),C}return[]}class fe{constructor(T,R){this.value=T,this.children=R}toString(){return`TreeNode(${this.value})`}}function qe(I){const T={};return I&&I.children.forEach(R=>T[R.value.outlet]=R),T}class ar extends H{constructor(T,R){super(T),this.snapshot=R,et(this,T)}toString(){return this.snapshot.toString()}}function ui(I){const T=function U(I){const J=new ke([],{},{},"",{},yn,I,null,{});return new ot("",new fe(J,[]))}(I),R=new Ze.t([new Sr("",{})]),C=new Ze.t({}),x=new Ze.t({}),J=new Ze.t({}),ve=new Ze.t(""),dt=new ne(R,C,J,ve,x,yn,I,T.root);return dt.snapshot=T.root,new ar(new fe(dt,[]),T)}class ne{constructor(T,R,C,x,J,ve,dt,Qt){var At,Tn;this.urlSubject=T,this.paramsSubject=R,this.queryParamsSubject=C,this.fragmentSubject=x,this.dataSubject=J,this.outlet=ve,this.component=dt,this._futureSnapshot=Qt,this.title=null!==(At=null===(Tn=this.dataSubject)||void 0===Tn?void 0:Tn.pipe((0,Zt.T)(hr=>hr[ir])))&&void 0!==At?At:(0,re.of)(void 0),this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J}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 T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=this.params.pipe((0,Zt.T)(R=>Ve(R)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,Zt.T)(R=>Ve(R)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ae(I,T,R="emptyOnly"){var C;let x;const{routeConfig:J}=I;var ve;return x=null===T||"always"!==R&&""!==(null==J?void 0:J.path)&&(T.component||null!==(C=T.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(ve=I._resolvedData)&&void 0!==ve?ve:{}}}:{params:{...T.params,...I.params},data:{...T.data,...I.data},resolve:{...I.data,...T.data,...null==J?void 0:J.data,...I._resolvedData}},J&&Yt(J)&&(x.resolve[ir]=J.title),x}class ke{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[ir]}constructor(T,R,C,x,J,ve,dt,Qt,At){this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J,this.outlet=ve,this.component=dt,this.routeConfig=Qt,this._resolve=At}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 T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=Ve(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ot extends H{constructor(T,R){super(R),this.url=T,et(this,R)}toString(){return Lt(this._root)}}function et(I,T){T.value._routerState=I,T.children.forEach(R=>et(I,R))}function Lt(I){const T=I.children.length>0?` { ${I.children.map(Lt).join(", ")} } `:"";return`${I.value}${T}`}function zt(I){if(I.snapshot){const T=I.snapshot,R=I._futureSnapshot;I.snapshot=R,Xt(T.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),T.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),Xt(T.params,R.params)||I.paramsSubject.next(R.params),function Ot(I,T){if(I.length!==T.length)return!1;for(let R=0;RXt(R.parameters,T[C].parameters))}(I.url,T.url);return R&&!(!I.parent!=!T.parent)&&(!I.parent||Kt(I.parent,T.parent))}function Yt(I){return"string"==typeof I.title||null===I.title}let _n=(()=>{var I;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=yn,this.activateEvents=new d.bkB,this.deactivateEvents=new d.bkB,this.attachEvents=new d.bkB,this.detachEvents=new d.bkB,this.parentContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(d.c1b),this.changeDetector=(0,d.WQX)(d.gRc),this.environmentInjector=(0,d.WQX)(d.uvJ),this.inputBinder=(0,d.WQX)(Ln,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:x,previousValue:J}=C.name;if(x)return;this.isTrackedInParentContexts(J)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(J)),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 x;return(null===(x=this.parentContexts.getContext(C))||void 0===x?void 0:x.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 d.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.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,x){var J;this.activated=C,this._activatedRoute=x,this.location.insert(C.hostView),null===(J=this.inputBinder)||void 0===J||J.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,x){var J;if(this.isActivated)throw new d.wOt(4013,!1);this._activatedRoute=C;const ve=this.location,Qt=C.snapshot.component,At=this.parentContexts.getOrCreateContext(this.name).children,Tn=new Cn(C,At,ve.injector);this.activated=ve.createComponent(Qt,{index:ve.length,injector:Tn,environmentInjector:null!=x?x:this.environmentInjector}),this.changeDetector.markForCheck(),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275dir=d.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.OA$]}),T})();class Cn{__ngOutletInjector(T){return new Cn(this.route,this.childContexts,T)}constructor(T,R,C){this.route=T,this.childContexts=R,this.parent=C}get(T,R){return T===ne?this.route:T===S?this.childContexts:this.parent.get(T,R)}}const Ln=new d.nKC("");let In=(()=>{var I;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var x;null===(x=this.outletDataSubscriptions.get(C))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:x}=C,J=(0,Je.z)([x.queryParams,x.params,x.data]).pipe((0,Dt.n)(([ve,dt,Qt],At)=>(Qt={...ve,...dt,...Qt},0===At?(0,re.of)(Qt):Promise.resolve(Qt)))).subscribe(ve=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(C);const dt=(0,d.HJs)(x.component);if(dt)for(const{templateName:Qt}of dt.inputs)C.activatedComponentRef.setInput(Qt,ve[Qt]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,J)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function cr(I,T,R){if(R&&I.shouldReuseRoute(T.value,R.value.snapshot)){const C=R.value;C._futureSnapshot=T.value;const x=function nr(I,T,R){return T.children.map(C=>{for(const x of R.children)if(I.shouldReuseRoute(C.value,x.value.snapshot))return cr(I,C,x);return cr(I,C)})}(I,T,R);return new fe(C,x)}{if(I.shouldAttach(T.value)){const J=I.retrieve(T.value);if(null!==J){const ve=J.route;return ve.value._futureSnapshot=T.value,ve.children=T.children.map(dt=>cr(I,dt)),ve}}const C=function li(I){return new ne(new Ze.t(I.url),new Ze.t(I.params),new Ze.t(I.queryParams),new Ze.t(I.fragment),new Ze.t(I.data),I.outlet,I.component,I)}(T.value),x=T.children.map(J=>cr(I,J));return new fe(C,x)}}const vi="ngNavigationCancelingError";function ci(I,T){const{redirectTo:R,navigationBehaviorOptions:C}=wi(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,x=no(!1,ti.Redirect);return x.url=R,x.navigationBehaviorOptions=C,x}function no(I,T){const R=new Error(`NavigationCancelingError: ${I||""}`);return R[vi]=!0,R.cancellationCode=T,R}function dr(I){return!!I&&I[vi]}let Wr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=d.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[d.aNF],decls:1,vars:0,template:function(C,x){1&C&&d.nrm(0,"router-outlet")},dependencies:[_n],encapsulation:2}),T})();function Us(I){const T=I.children&&I.children.map(Us),R=T?{...I,children:T}:{...I};return!R.component&&!R.loadComponent&&(T||R.loadChildren)&&R.outlet&&R.outlet!==yn&&(R.component=Wr),R}function so(I){return I.outlet||yn}function gs(I){var T;if(!I)return null;if(null!==(T=I.routeConfig)&&void 0!==T&&T._injector)return I.routeConfig._injector;for(let R=I.parent;R;R=R.parent){const C=R.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(T,R,C,x,J){this.routeReuseStrategy=T,this.futureState=R,this.currState=C,this.forwardEvent=x,this.inputBindingEnabled=J}activate(T){const R=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,C,T),zt(this.futureState.root),this.activateChildRoutes(R,C,T)}deactivateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{const ve=J.value.outlet;this.deactivateRoutes(J,x[ve],C),delete x[ve]}),Object.values(x).forEach(J=>{this.deactivateRouteAndItsChildren(J,C)})}deactivateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(x===J)if(x.component){const ve=C.getContext(x.outlet);ve&&this.deactivateChildRoutes(T,R,ve.children)}else this.deactivateChildRoutes(T,R,C);else J&&this.deactivateRouteAndItsChildren(R,C)}deactivateRouteAndItsChildren(T,R){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,R):this.deactivateRouteAndOutlet(T,R)}detachAndStoreRouteSubtree(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);if(C&&C.outlet){const ve=C.outlet.detach(),dt=C.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:ve,route:T,contexts:dt})}}deactivateRouteAndOutlet(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{this.activateRoutes(J,x[J.value.outlet],C),this.forwardEvent(new Fo(J.value.snapshot))}),T.children.length&&this.forwardEvent(new ai(T.value.snapshot))}activateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(zt(x),x===J)if(x.component){const ve=C.getOrCreateContext(x.outlet);this.activateChildRoutes(T,R,ve.children)}else this.activateChildRoutes(T,R,C);else if(x.component){const ve=C.getOrCreateContext(x.outlet);if(this.routeReuseStrategy.shouldAttach(x.snapshot)){const dt=this.routeReuseStrategy.retrieve(x.snapshot);this.routeReuseStrategy.store(x.snapshot,null),ve.children.onOutletReAttached(dt.contexts),ve.attachRef=dt.componentRef,ve.route=dt.route.value,ve.outlet&&ve.outlet.attach(dt.componentRef,dt.route.value),zt(dt.route.value),this.activateChildRoutes(T,null,ve.children)}else{const dt=gs(x.snapshot);ve.attachRef=null,ve.route=x,ve.injector=dt,ve.outlet&&ve.outlet.activateWith(x,ve.injector),this.activateChildRoutes(T,null,ve.children)}}else this.activateChildRoutes(T,null,C)}}class ca{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class qo{constructor(T,R){this.component=T,this.route=R}}function bs(I,T,R){const C=I._root;return ji(C,T?T._root:null,R,[C.value])}function bo(I,T){const R=Symbol(),C=T.get(I,R);return C===R?"function"!=typeof I||(0,d.LfX)(I)?T.get(I):I:C}function ji(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=qe(T);return I.children.forEach(ve=>{(function da(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=I.value,ve=T?T.value:null,dt=R?R.getContext(I.value.outlet):null;if(ve&&J.routeConfig===ve.routeConfig){const Qt=function ol(I,T,R){if("function"==typeof R)return R(I,T);switch(R){case"pathParamsChange":return!Er(I.url,T.url);case"pathParamsOrQueryParamsChange":return!Er(I.url,T.url)||!Xt(I.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(I,T)||!Xt(I.queryParams,T.queryParams);default:return!Kt(I,T)}}(ve,J,J.routeConfig.runGuardsAndResolvers);Qt?x.canActivateChecks.push(new ca(C)):(J.data=ve.data,J._resolvedData=ve._resolvedData),ji(I,T,J.component?dt?dt.children:null:R,C,x),Qt&&dt&&dt.outlet&&dt.outlet.isActivated&&x.canDeactivateChecks.push(new qo(dt.outlet.component,ve))}else ve&&L(T,dt,x),x.canActivateChecks.push(new ca(C)),ji(I,null,J.component?dt?dt.children:null:R,C,x)})(ve,J[ve.value.outlet],R,C.concat([ve.value]),x),delete J[ve.value.outlet]}),Object.entries(J).forEach(([ve,dt])=>L(dt,R.getContext(ve),x)),x}function L(I,T,R){const C=qe(I),x=I.value;Object.entries(C).forEach(([J,ve])=>{L(ve,x.component?T?T.children.getContext(J):null:T,R)}),R.canDeactivateChecks.push(new qo(x.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,x))}function P(I){return"function"==typeof I}function Ji(I){return I instanceof _e||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,Dt.n)(I=>(0,Je.z)(I.map(T=>T.pipe((0,Be.s)(1),function rn(...I){const T=(0,ft.lI)(I);return(0,Ke.N)((R,C)=>{(T?ut(I,R,T):ut(I,R)).subscribe(C)})}(ao)))).pipe((0,Zt.T)(T=>{for(const R of T)if(!0!==R){if(R===ao)return ao;if(!1===R||R instanceof Zn)return R}return!0}),(0,pt.p)(T=>T!==ao),(0,Be.s)(1)))}function Jn(I){return(0,mt.F)((0,ae.M)(T=>{if(wi(T))throw ci(0,T)}),(0,Zt.T)(T=>!0===T))}class Ti{constructor(T){this.segmentGroup=T||null}}class ro extends Error{constructor(T){super(),this.urlTree=T}}function Hr(I){return vt(new Ti(I))}class Vl{constructor(T,R){this.urlSerializer=T,this.urlTree=R}lineralizeSegments(T,R){let C=[],x=R.root;for(;;){if(C=C.concat(x.segments),0===x.numberOfChildren)return(0,re.of)(C);if(x.numberOfChildren>1||!x.children[yn])return vt(new d.wOt(4e3,!1));x=x.children[yn]}}applyRedirectCommands(T,R,C){const x=this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),T,C);if(R.startsWith("/"))throw new ro(x);return x}applyRedirectCreateUrlTree(T,R,C,x){const J=this.createSegmentGroup(T,R.root,C,x);return new Zn(J,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(T,R){const C={};return Object.entries(T).forEach(([x,J])=>{if("string"==typeof J&&J.startsWith(":")){const dt=J.substring(1);C[x]=R[dt]}else C[x]=J}),C}createSegmentGroup(T,R,C,x){const J=this.createSegments(T,R.segments,C,x);let ve={};return Object.entries(R.children).forEach(([dt,Qt])=>{ve[dt]=this.createSegmentGroup(T,Qt,C,x)}),new wn(J,ve)}createSegments(T,R,C,x){return R.map(J=>J.path.startsWith(":")?this.findPosParam(T,J,x):this.findOrReturn(J,C))}findPosParam(T,R,C){const x=C[R.path.substring(1)];if(!x)throw new d.wOt(4001,!1);return x}findOrReturn(T,R){let C=0;for(const x of R){if(x.path===T.path)return R.splice(C),x;C++}return T}}const vr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,T,R,C,x){const J=ys(I,T,R);return J.matched?(C=function Wo(I,T){var R;return I.providers&&!I._injector&&(I._injector=(0,d.Ol2)(I.providers,T,`Route: ${I.path}`)),null!==(R=I._injector)&&void 0!==R?R:T}(T,C),function Oi(I,T,R,C){const x=T.canMatch;if(!x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function rr(I){return I&&P(I.canMatch)}(dt)?dt.canMatch(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(C,T,R).pipe((0,Zt.T)(ve=>!0===ve?J:{...vr}))):(0,re.of)(J)}function ys(I,T,R){var C,x;if("**"===T.path)return function ka(I){return{matched:!0,parameters:I.length>0?gn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(R);if(""===T.path)return"full"===T.pathMatch&&(I.hasChildren()||R.length>0)?{...vr}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ve=(T.matcher||yt)(R,I,T);if(!ve)return{...vr};const dt={};Object.entries(null!==(C=ve.posParams)&&void 0!==C?C:{}).forEach(([At,Tn])=>{dt[At]=Tn.path});const Qt=ve.consumed.length>0?{...dt,...ve.consumed[ve.consumed.length-1].parameters}:dt;return{matched:!0,consumedSegments:ve.consumed,remainingSegments:R.slice(ve.consumed.length),parameters:Qt,positionalParamSegments:null!==(x=ve.posParams)&&void 0!==x?x:{}}}function js(I,T,R,C){return R.length>0&&function Ll(I,T,R){return R.some(C=>fa(I,T,C)&&so(C)!==yn)}(I,R,C)?{segmentGroup:new wn(T,Fa(C,new wn(R,I.children))),slicedSegments:[]}:0===R.length&&function Ul(I,T,R){return R.some(C=>fa(I,T,C))}(I,R,C)?{segmentGroup:new wn(I.segments,cl(I,R,C,I.children)),slicedSegments:R}:{segmentGroup:new wn(I.segments,I.children),slicedSegments:R}}function cl(I,T,R,C){const x={};for(const J of R)if(fa(I,T,J)&&!C[so(J)]){const ve=new wn([],{});x[so(J)]=ve}return{...C,...x}}function Fa(I,T){const R={};R[yn]=T;for(const C of I)if(""===C.path&&so(C)!==yn){const x=new wn([],{});R[so(C)]=x}return R}function fa(I,T,R){return(!(I.hasChildren()||T.length>0)||"full"!==R.pathMatch)&&""===R.path}class Yo{}class Zo{constructor(T,R,C,x,J,ve,dt){this.injector=T,this.configLoader=R,this.rootComponentType=C,this.config=x,this.urlTree=J,this.paramsInheritanceStrategy=ve,this.urlSerializer=dt,this.applyRedirects=new Vl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new d.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,Zt.T)(R=>{const C=new ke([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},yn,this.rootComponentType,null,{}),x=new fe(C,R),J=new ot("",x),ve=function gi(I,T,R=null,C=null){return lt(St(I),T,R,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return ve.queryParams=this.urlTree.queryParams,J.url=this.urlSerializer.serialize(ve),this.inheritParamsAndData(J._root,null),{state:J,tree:ve}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,yn).pipe(me(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof Ti?this.noMatchError(C):C}))}inheritParamsAndData(T,R){const C=T.value,x=Ae(C,R,this.paramsInheritanceStrategy);C.params=Object.freeze(x.params),C.data=Object.freeze(x.data),T.children.forEach(J=>this.inheritParamsAndData(J,C))}processSegmentGroup(T,R,C,x){return 0===C.segments.length&&C.hasChildren()?this.processChildren(T,R,C):this.processSegment(T,R,C,C.segments,x,!0).pipe((0,Zt.T)(J=>J instanceof fe?[J]:[]))}processChildren(T,R,C){const x=[];for(const J of Object.keys(C.children))"primary"===J?x.unshift(J):x.push(J);return(0,Ee.H)(x).pipe(de(J=>{const ve=C.children[J],dt=function ua(I,T){const R=I.filter(C=>so(C)===T);return R.push(...I.filter(C=>so(C)!==T)),R}(R,J);return this.processSegmentGroup(T,dt,ve,J)}),function at(I,T){return(0,Ke.N)(function Ce(I,T,R,C,x){return(J,ve)=>{let dt=R,Qt=T,At=0;J.subscribe((0,Ct._)(ve,Tn=>{const hr=At++;Qt=dt?I(Qt,Tn,hr):(dt=!0,Tn),C&&ve.next(Qt)},x&&(()=>{dt&&ve.next(Qt),ve.complete()})))}}(I,T,arguments.length>=2,!0))}((J,ve)=>(J.push(...ve),J)),ye(null),function Bt(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,kt(1),R?ye(T):j(()=>new _e))}(),(0,Fe.Z)(J=>{if(null===J)return Hr(C);const ve=Lo(J);return function wu(I){I.sort((T,R)=>T.value.outlet===yn?-1:R.value.outlet===yn?1:T.value.outlet.localeCompare(R.value.outlet))}(ve),(0,re.of)(ve)}))}processSegment(T,R,C,x,J,ve){return(0,Ee.H)(R).pipe(de(dt=>{var Qt;return this.processSegmentAgainstRoute(null!==(Qt=dt._injector)&&void 0!==Qt?Qt:T,R,dt,C,x,J,ve).pipe(me(At=>{if(At instanceof Ti)return(0,re.of)(null);throw At}))}),te(dt=>!!dt),me(dt=>{if(Ji(dt))return function ws(I,T,R){return 0===T.length&&!I.children[R]}(C,x,J)?(0,re.of)(new Yo):Hr(C);throw dt}))}processSegmentAgainstRoute(T,R,C,x,J,ve,dt){return function Is(I,T,R,C){return!!(so(I)===C||C!==yn&&fa(T,R,I))&&ys(T,I,R).matched}(C,x,J,ve)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(T,x,C,J,ve):this.allowRedirects&&dt?this.expandSegmentAgainstRouteUsingRedirect(T,x,R,C,J,ve):Hr(x):Hr(x)}expandSegmentAgainstRouteUsingRedirect(T,R,C,x,J,ve){const{matched:dt,consumedSegments:Qt,positionalParamSegments:At,remainingSegments:Tn}=ys(R,x,J);if(!dt)return Hr(R);x.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const hr=this.applyRedirects.applyRedirectCommands(Qt,x.redirectTo,At);return this.applyRedirects.lineralizeSegments(x,hr).pipe((0,Fe.Z)(Ri=>this.processSegment(T,C,R,Ri.concat(Tn),ve,!1)))}matchSegmentAgainstRoute(T,R,C,x,J){const ve=ul(R,C,x,T);return"**"===C.path&&(R.children={}),ve.pipe((0,Dt.n)(dt=>{var Qt;return dt.matched?(T=null!==(Qt=C._injector)&&void 0!==Qt?Qt:T,this.getChildConfig(T,C,x).pipe((0,Dt.n)(({routes:At})=>{var Tn,hr,Ri;const Br=null!==(Tn=C._loadedInjector)&&void 0!==Tn?Tn:T,{consumedSegments:qi,remainingSegments:Bo,parameters:za}=dt,Ha=new ke(qi,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(hr=null!==(Ri=C.component)&&void 0!==Ri?Ri:C._loadedComponent)&&void 0!==hr?hr:null,C,function Di(I){return I.resolve||{}}(C)),{segmentGroup:yo,slicedSegments:hl}=js(R,qi,Bo,At);if(0===hl.length&&yo.hasChildren())return this.processChildren(Br,At,yo).pipe((0,Zt.T)(Ps=>null===Ps?null:new fe(Ha,Ps)));if(0===At.length&&0===hl.length)return(0,re.of)(new fe(Ha,[]));const Wl=so(C)===J;return this.processSegment(Br,At,yo,hl,Wl?yn:J,!0).pipe((0,Zt.T)(Ps=>new fe(Ha,Ps instanceof fe?[Ps]:[])))}))):Hr(R)}))}getChildConfig(T,R,C){return R.children?(0,re.of)({routes:R.children,injector:T}):R.loadChildren?void 0!==R._loadedRoutes?(0,re.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function ha(I,T,R,C){const x=T.canLoad;if(void 0===x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function $(I){return I&&P(I.canLoad)}(dt)?dt.canLoad(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(T,R,C).pipe((0,Fe.Z)(x=>x?this.configLoader.loadChildren(T,R).pipe((0,ae.M)(J=>{R._loadedRoutes=J.routes,R._loadedInjector=J.injector})):function _s(I){return vt(no(!1,ti.GuardRejected))}())):(0,re.of)({routes:[],injector:T})}}function $l(I){const T=I.value.routeConfig;return T&&""===T.path}function Lo(I){const T=[],R=new Set;for(const C of I){if(!$l(C)){T.push(C);continue}const x=T.find(J=>C.value.routeConfig===J.value.routeConfig);void 0!==x?(x.children.push(...C.children),R.add(x)):T.push(C)}for(const C of R){const x=Lo(C.children);T.push(new fe(C.value,x))}return T.filter(C=>!R.has(C))}function ga(I){const T=I.children.map(R=>ga(R)).flat();return[I,...T]}function ma(I){return(0,Dt.n)(T=>{const R=I(T);return R?(0,Ee.H)(R).pipe((0,Zt.T)(()=>T)):(0,re.of)(T)})}let Ms=(()=>{var I;class T{buildTitle(C){let x,J=C.root;for(;void 0!==J;){var ve;x=null!==(ve=this.getResolvedTitleForRoute(J))&&void 0!==ve?ve:x,J=J.children.find(dt=>dt.outlet===yn)}return x}getResolvedTitleForRoute(C){return C.data[ir]}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(lo),providedIn:"root"}),T})(),lo=(()=>{var I;class T extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const x=this.buildTitle(C);void 0!==x&&this.title.setTitle(x)}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(er.hE))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Hs=new d.nKC("",{providedIn:"root",factory:()=>({})}),Es=new d.nKC("");let D=(()=>{var I;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.WQX)(d.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,re.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const x=mn(C.loadComponent()).pipe((0,Zt.T)(O),(0,ae.M)(ve=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=ve}),bn(()=>{this.componentLoaders.delete(C)})),J=new ze(x,()=>new Tt.B).pipe(xt());return this.componentLoaders.set(C,J),J}loadChildren(C,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,re.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const ve=function V(I,T,R,C){return mn(I.loadChildren()).pipe((0,Zt.T)(O),(0,Fe.Z)(x=>x instanceof d.Co$||Array.isArray(x)?(0,re.of)(x):(0,Ee.H)(T.compileModuleAsync(x))),(0,Zt.T)(x=>{C&&C(I);let J,ve,dt=!1;return Array.isArray(x)?(ve=x,!0):(J=x.create(R).injector,ve=J.get(Es,[],{optional:!0,self:!0}).flat()),{routes:ve.map(Us),injector:J}}))}(x,this.compiler,C,this.onLoadEndListener).pipe(bn(()=>{this.childrenLoaders.delete(x)})),dt=new ze(ve,()=>new Tt.B).pipe(xt());return this.childrenLoaders.set(x,dt),dt}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function O(I){return function be(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let le=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(xe),providedIn:"root"}),T})(),xe=(()=>{var I;class T{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,x){return C}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Ft=new d.nKC(""),an=new d.nKC("");function Un(I,T,R){const C=I.get(an),x=I.get(Vt.qQ);return I.get(d.SKi).runOutsideAngular(()=>{if(!x.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(At=>setTimeout(At));let J;const ve=new Promise(At=>{J=At}),dt=x.startViewTransition(()=>(J(),function Fn(I){return new Promise(T=>{(0,d.mal)(T,{injector:I})})}(I))),{onViewTransitionCreated:Qt}=C;return Qt&&(0,d.N4e)(I,()=>Qt({transition:dt,from:T,to:R})),ve})}let Fr=(()=>{var I;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Tt.B,this.transitionAbortSubject=new Tt.B,this.configLoader=(0,d.WQX)(D),this.environmentInjector=(0,d.WQX)(d.uvJ),this.urlSerializer=(0,d.WQX)(Qr),this.rootContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(Vt.aZ),this.inputBindingEnabled=null!==(0,d.WQX)(Ln,{optional:!0}),this.titleStrategy=(0,d.WQX)(Ms),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,d.WQX)(le),this.createViewTransition=(0,d.WQX)(Ft,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,re.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=J=>this.events.next(new sr(J)),this.configLoader.onLoadStartListener=J=>this.events.next(new si(J))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var x;const J=++this.navigationId;null===(x=this.transitions)||void 0===x||x.next({...this.transitions.value,...C,id:J})}setupNavigations(C,x,J){return this.transitions=new Ze.t({id:0,currentUrlTree:x,currentRawUrl:x,extractedUrl:this.urlHandlingStrategy.extract(x),urlAfterRedirects:this.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:J.snapshot,targetSnapshot:null,currentRouterState:J,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,pt.p)(ve=>0!==ve.id),(0,Zt.T)(ve=>({...ve,extractedUrl:this.urlHandlingStrategy.extract(ve.rawUrl)})),(0,Dt.n)(ve=>{let dt=!1,Qt=!1;return(0,re.of)(ve).pipe((0,Dt.n)(At=>{var Tn;if(this.navigationId>ve.id)return this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),Me.w;this.currentTransition=ve,this.currentNavigation={id:At.id,initialUrl:At.rawUrl,extractedUrl:At.extractedUrl,trigger:At.source,extras:At.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ri=null!==(Tn=At.extras.onSameUrlNavigation)&&void 0!==Tn?Tn:C.onSameUrlNavigation;if(!hr&&"reload"!==Ri){const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.rawUrl),Br,mr.IgnoredSameUrlNavigation)),At.resolve(null),Me.w}if(this.urlHandlingStrategy.shouldProcessUrl(At.rawUrl))return(0,re.of)(At).pipe((0,Dt.n)(Br=>{var qi,Bo;const za=null===(qi=this.transitions)||void 0===qi?void 0:qi.getValue();return this.events.next(new mi(Br.id,this.urlSerializer.serialize(Br.extractedUrl),Br.source,Br.restoredState)),za!==(null===(Bo=this.transitions)||void 0===Bo?void 0:Bo.getValue())?Me.w:Promise.resolve(Br)}),function pa(I,T,R,C,x,J){return(0,Fe.Z)(ve=>function Ss(I,T,R,C,x,J,ve="emptyOnly"){return new Zo(I,T,R,C,x,ve,J).recognize()}(I,T,R,C,ve.extractedUrl,x,J).pipe((0,Zt.T)(({state:dt,tree:Qt})=>({...ve,targetSnapshot:dt,urlAfterRedirects:Qt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ae.M)(Br=>{ve.targetSnapshot=Br.targetSnapshot,ve.urlAfterRedirects=Br.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Br.urlAfterRedirects};const qi=new ko(Br.id,this.urlSerializer.serialize(Br.extractedUrl),this.urlSerializer.serialize(Br.urlAfterRedirects),Br.targetSnapshot);this.events.next(qi)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(At.currentRawUrl)){const{id:Br,extractedUrl:qi,source:Bo,restoredState:za,extras:Ha}=At,yo=new mi(Br,this.urlSerializer.serialize(qi),Bo,za);this.events.next(yo);const hl=ui(this.rootComponentType).snapshot;return this.currentTransition=ve={...At,targetSnapshot:hl,urlAfterRedirects:qi,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=qi,(0,re.of)(ve)}{const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.extractedUrl),Br,mr.IgnoredByUrlHandlingStrategy)),At.resolve(null),Me.w}}),(0,ae.M)(At=>{const Tn=new ei(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(Tn)}),(0,Zt.T)(At=>(this.currentTransition=ve={...At,guards:bs(At.targetSnapshot,At.currentSnapshot,this.rootContexts)},ve)),function Qo(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,currentSnapshot:x,guards:{canActivateChecks:J,canDeactivateChecks:ve}}=R;return 0===ve.length&&0===J.length?(0,re.of)({...R,guardsResult:!0}):function Na(I,T,R,C){return(0,Ee.H)(I).pipe((0,Fe.Z)(x=>function as(I,T,R,C,x){const J=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!J||0===J.length)return(0,re.of)(!0);const ve=J.map(dt=>{var Qt;const At=null!==(Qt=gs(T))&&void 0!==Qt?Qt:x,Tn=bo(dt,At);return mn(function On(I){return I&&P(I.canDeactivate)}(Tn)?Tn.canDeactivate(I,T,R,C):(0,d.N4e)(At,()=>Tn(I,T,R,C))).pipe(te())});return(0,re.of)(ve).pipe(eo())}(x.component,x.route,R,T,C)),te(x=>!0!==x,!0))}(ve,C,x,I).pipe((0,Fe.Z)(dt=>dt&&function ce(I){return"boolean"==typeof I}(dt)?function vs(I,T,R,C){return(0,Ee.H)(T).pipe(de(x=>ut(function Oa(I,T){return null!==I&&T&&T(new Or(I)),(0,re.of)(!0)}(x.route.parent,C),function Bs(I,T){return null!==I&&T&&T(new jn(I)),(0,re.of)(!0)}(x.route,C),function al(I,T,R){const C=T[T.length-1],J=T.slice(0,T.length-1).reverse().map(ve=>function Xo(I){const T=I.routeConfig?I.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:I,guards:T}:null}(ve)).filter(ve=>null!==ve).map(ve=>Mt(()=>{const dt=ve.guards.map(Qt=>{var At;const Tn=null!==(At=gs(ve.node))&&void 0!==At?At:R,hr=bo(Qt,Tn);return mn(function nn(I){return I&&P(I.canActivateChild)}(hr)?hr.canActivateChild(C,I):(0,d.N4e)(Tn,()=>hr(C,I))).pipe(te())});return(0,re.of)(dt).pipe(eo())}));return(0,re.of)(J).pipe(eo())}(I,x.path,R),function sl(I,T,R){const C=T.routeConfig?T.routeConfig.canActivate:null;if(!C||0===C.length)return(0,re.of)(!0);const x=C.map(J=>Mt(()=>{var ve;const dt=null!==(ve=gs(T))&&void 0!==ve?ve:R,Qt=bo(J,dt);return mn(function Te(I){return I&&P(I.canActivate)}(Qt)?Qt.canActivate(T,I):(0,d.N4e)(dt,()=>Qt(T,I))).pipe(te())}));return(0,re.of)(x).pipe(eo())}(I,x.route,R))),te(x=>!0!==x,!0))}(C,J,I,T):(0,re.of)(dt)),(0,Zt.T)(dt=>({...R,guardsResult:dt})))})}(this.environmentInjector,At=>this.events.next(At)),(0,ae.M)(At=>{if(ve.guardsResult=At.guardsResult,wi(At.guardsResult))throw ci(0,At.guardsResult);const Tn=new Bi(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot,!!At.guardsResult);this.events.next(Tn)}),(0,pt.p)(At=>!!At.guardsResult||(this.cancelNavigationTransition(At,"",ti.GuardRejected),!1)),ma(At=>{if(At.guards.canActivateChecks.length)return(0,re.of)(At).pipe((0,ae.M)(Tn=>{const hr=new is(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}),(0,Dt.n)(Tn=>{let hr=!1;return(0,re.of)(Tn).pipe(function Bl(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,guards:{canActivateChecks:x}}=R;if(!x.length)return(0,re.of)(R);const J=new Set(x.map(Qt=>Qt.route)),ve=new Set;for(const Qt of J)if(!ve.has(Qt))for(const At of ga(Qt))ve.add(At);let dt=0;return(0,Ee.H)(ve).pipe(de(Qt=>J.has(Qt)?function Va(I,T,R,C){const x=I.routeConfig,J=I._resolve;return void 0!==(null==x?void 0:x.title)&&!Yt(x)&&(J[ir]=x.title),function zs(I,T,R,C){const x=en(I);if(0===x.length)return(0,re.of)({});const J={};return(0,Ee.H)(x).pipe((0,Fe.Z)(ve=>function pc(I,T,R,C){var x;const J=null!==(x=gs(T))&&void 0!==x?x:C,ve=bo(I,J);return mn(ve.resolve?ve.resolve(T,R):(0,d.N4e)(J,()=>ve(T,R)))}(I[ve],T,R,C).pipe(te(),(0,ae.M)(dt=>{J[ve]=dt}))),kt(1),function vn(I){return(0,Zt.T)(()=>I)}(J),me(ve=>Ji(ve)?Me.w:vt(ve)))}(J,I,T,C).pipe((0,Zt.T)(ve=>(I._resolvedData=ve,I.data=Ae(I,I.parent,R).resolve,null)))}(Qt,C,I,T):(Qt.data=Ae(Qt,Qt.parent,I).resolve,(0,re.of)(void 0))),(0,ae.M)(()=>dt++),kt(1),(0,Fe.Z)(Qt=>dt===ve.size?(0,re.of)(R):Me.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ae.M)({next:()=>hr=!0,complete:()=>{hr||this.cancelNavigationTransition(Tn,"",ti.NoDataFromResolver)}}))}),(0,ae.M)(Tn=>{const hr=new ps(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}))}),ma(At=>{const Tn=hr=>{var Ri;const Br=[];null!==(Ri=hr.routeConfig)&&void 0!==Ri&&Ri.loadComponent&&!hr.routeConfig._loadedComponent&&Br.push(this.configLoader.loadComponent(hr.routeConfig).pipe((0,ae.M)(qi=>{hr.component=qi}),(0,Zt.T)(()=>{})));for(const qi of hr.children)Br.push(...Tn(qi));return Br};return(0,Je.z)(Tn(At.targetSnapshot.root)).pipe(ye(null),(0,Be.s)(1))}),ma(()=>this.afterPreactivation()),(0,Dt.n)(()=>{var At;const{currentSnapshot:Tn,targetSnapshot:hr}=ve,Ri=null===(At=this.createViewTransition)||void 0===At?void 0:At.call(this,this.environmentInjector,Tn.root,hr.root);return Ri?(0,Ee.H)(Ri).pipe((0,Zt.T)(()=>ve)):(0,re.of)(ve)}),(0,Zt.T)(At=>{const Tn=function br(I,T,R){const C=cr(I,T._root,R?R._root:void 0);return new ar(C,T)}(C.routeReuseStrategy,At.targetSnapshot,At.currentRouterState);return this.currentTransition=ve={...At,targetRouterState:Tn},this.currentNavigation.targetRouterState=Tn,ve}),(0,ae.M)(()=>{this.events.next(new Co)}),((I,T,R,C)=>(0,Zt.T)(x=>(new $s(T,x.targetRouterState,x.currentRouterState,R,C).activate(I),x)))(this.rootContexts,C.routeReuseStrategy,At=>this.events.next(At),this.inputBindingEnabled),(0,Be.s)(1),(0,ae.M)({next:At=>{var Tn;dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Si(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects))),null===(Tn=this.titleStrategy)||void 0===Tn||Tn.updateTitle(At.targetRouterState.snapshot),At.resolve(!0)},complete:()=>{dt=!0}}),function qn(I){return(0,Ke.N)((T,R)=>{(0,st.Tg)(I).subscribe((0,Ct._)(R,()=>R.complete(),$n.l)),!R.closed&&T.subscribe(R)})}(this.transitionAbortSubject.pipe((0,ae.M)(At=>{throw At}))),bn(()=>{var At;!dt&&!Qt&&this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),(null===(At=this.currentTransition)||void 0===At?void 0:At.id)===ve.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(At=>{if(Qt=!0,dr(At))this.events.next(new oi(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At.message,At.cancellationCode)),function Go(I){return dr(I)&&wi(I.url)}(At)?this.events.next(new co(At.url)):ve.resolve(!1);else{var Tn;this.events.next(new kn(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At,null!==(Tn=ve.targetSnapshot)&&void 0!==Tn?Tn:void 0));try{ve.resolve(C.errorHandler(At))}catch(hr){this.options.resolveNavigationPromiseOnError?ve.resolve(!1):ve.reject(hr)}}return Me.w}))}))}cancelNavigationTransition(C,x,J){const ve=new oi(C.id,this.urlSerializer.serialize(C.extractedUrl),x,J);this.events.next(ve),C.resolve(!1)}isUpdatingInternalState(){var C,x;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(x=this.currentTransition)||void 0===x?void 0:x.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,x;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!==(x=this.currentTransition)&&void 0!==x&&x.extras.skipLocationChange)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function Tr(I){return I!==xr}let Zr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(ki),providedIn:"root"}),T})();class Vr{shouldDetach(T){return!1}store(T,R){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,R){return T.routeConfig===R.routeConfig}}let ki=(()=>{var I;class T extends Vr{}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Gr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(un),providedIn:"root"}),T})(),un=(()=>{var I;class T extends Gr{constructor(){super(...arguments),this.location=(0,d.WQX)(Vt.aZ),this.urlSerializer=(0,d.WQX)(Qr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,d.WQX)(le),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ui(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,x;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(x=this.restoredState())||void 0===x?void 0:x.\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(x=>{"popstate"===x.type&&C(x.url,x.state)})}handleRouterEvent(C,x){if(C instanceof mi)this.stateMemento=this.createStateMemento();else if(C instanceof Nn)this.rawUrlTree=x.initialUrl;else if(C instanceof ko){if("eager"===this.urlUpdateStrategy&&!x.extras.skipLocationChange){const J=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl);this.setBrowserUrl(J,x)}}else C instanceof Co?(this.currentUrlTree=x.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl),this.routerState=x.targetRouterState,"deferred"===this.urlUpdateStrategy&&(x.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,x))):C instanceof oi&&(C.code===ti.GuardRejected||C.code===ti.NoDataFromResolver)?this.restoreHistory(x):C instanceof kn?this.restoreHistory(x,!0):C instanceof Si&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,x){const J=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(J)||x.extras.replaceUrl){const dt={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(J,"",dt)}else{const ve={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(J,"",ve)}}restoreHistory(C,x=!1){if("computed"===this.canceledNavigationResolution){const ve=this.currentPageId-this.browserPageId;0!==ve?this.location.historyGo(ve):this.currentUrlTree===C.finalUrl&&0===ve&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var x;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(x=C.finalUrl)&&void 0!==x?x:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,x){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:x}:{navigationId:C}}}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();var Vn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(Vn||{});function Kr(I,T){I.events.pipe((0,pt.p)(R=>R instanceof Si||R instanceof oi||R instanceof kn||R instanceof Nn),(0,Zt.T)(R=>R instanceof Si||R instanceof Nn?Vn.COMPLETE:R instanceof oi&&(R.code===ti.Redirect||R.code===ti.SupersededByNewNavigation)?Vn.REDIRECTING:Vn.FAILED),(0,pt.p)(R=>R!==Vn.REDIRECTING),(0,Be.s)(1)).subscribe(()=>{T()})}function Gi(I){throw I}const _i={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Fi=(()=>{var I;class T{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,x;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,d.WQX)(d.H3F),this.stateManager=(0,d.WQX)(Gr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,d.WQX)(d.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,d.WQX)(Fr),this.urlSerializer=(0,d.WQX)(Qr),this.location=(0,d.WQX)(Vt.aZ),this.urlHandlingStrategy=(0,d.WQX)(le),this._events=new Tt.B,this.errorHandler=this.options.errorHandler||Gi,this.navigated=!1,this.routeReuseStrategy=(0,d.WQX)(Zr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(x=(0,d.WQX)(Es,{optional:!0}))||void 0===x?void 0:x.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,d.WQX)(Ln,{optional:!0}),this.eventsSubscription=new je.yU,this.isNgZoneEnabled=(0,d.WQX)(d.SKi)instanceof d.SKi&&d.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:J=>{this.console.warn(J)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(x=>{try{const J=this.navigationTransitions.currentTransition,ve=this.navigationTransitions.currentNavigation;if(null!==J&&null!==ve)if(this.stateManager.handleRouterEvent(x,ve),x instanceof oi&&x.code!==ti.Redirect&&x.code!==ti.SupersededByNewNavigation)this.navigated=!0;else if(x instanceof Si)this.navigated=!0;else if(x instanceof co){const dt=this.urlHandlingStrategy.merge(x.url,J.currentRawUrl),Qt={info:J.extras.info,skipLocationChange:J.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tr(J.source)};this.scheduleNavigation(dt,xr,null,Qt,{resolve:J.resolve,reject:J.reject,promise:J.promise})}(function zi(I){return!(I instanceof Co||I instanceof co)})(x)&&this._events.next(x)}catch(J){this.navigationTransitions.transitionAbortSubject.next(J)}});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),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((x,J)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(x,"popstate",J)},0)}))}navigateToSyncWithBrowser(C,x,J){const ve={replaceUrl:!0},dt=null!=J&&J.navigationId?J:null;if(J){const At={...J};delete At.navigationId,delete At.\u0275routerPageId,0!==Object.keys(At).length&&(ve.state=At)}const Qt=this.parseUrl(C);this.scheduleNavigation(Qt,x,dt,ve)}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,x={}){const{relativeTo:J,queryParams:ve,fragment:dt,queryParamsHandling:Qt,preserveFragment:At}=x,Tn=At?this.currentUrlTree.fragment:dt;let Ri,hr=null;switch(Qt){case"merge":hr={...this.currentUrlTree.queryParams,...ve};break;case"preserve":hr=this.currentUrlTree.queryParams;break;default:hr=ve||null}null!==hr&&(hr=this.removeEmptyProps(hr));try{Ri=St(J?J.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),Ri=this.currentUrlTree.root}return lt(Ri,C,hr,null!=Tn?Tn:null)}navigateByUrl(C,x={skipLocationChange:!1}){const J=wi(C)?C:this.parseUrl(C),ve=this.urlHandlingStrategy.merge(J,this.rawUrlTree);return this.scheduleNavigation(ve,xr,null,x)}navigate(C,x={skipLocationChange:!1}){return function Jr(I){for(let T=0;T(null!=ve&&(x[J]=ve),x),{})}scheduleNavigation(C,x,J,ve,dt){if(this.disposed)return Promise.resolve(!1);let Qt,At,Tn;dt?(Qt=dt.resolve,At=dt.reject,Tn=dt.promise):Tn=new Promise((Ri,Br)=>{Qt=Ri,At=Br});const hr=this.pendingTasks.add();return Kr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(hr))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:J,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:ve,resolve:Qt,reject:At,promise:Tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Tn.catch(Ri=>Promise.reject(Ri))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Uo=(()=>{var I;class T{constructor(C,x,J,ve,dt,Qt){var At;this.router=C,this.route=x,this.tabIndexAttribute=J,this.renderer=ve,this.el=dt,this.locationStrategy=Qt,this.href=null,this.commands=null,this.onChanges=new Tt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Tn=null===(At=dt.nativeElement.tagName)||void 0===At?void 0:At.toLowerCase();this.isAnchorElement="a"===Tn||"area"===Tn,this.isAnchorElement?this.subscription=C.events.subscribe(hr=>{hr instanceof Si&&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,x,J,ve,dt){const Qt=this.urlTree;return!!(null===Qt||this.isAnchorElement&&(0!==C||x||J||ve||dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Qt,{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 x=this.urlTree;this.href=null!==x&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(x)):null;const J=null===this.href?null:(0,d.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",J)}applyAttributeValue(C,x){const J=this.renderer,ve=this.el.nativeElement;null!==x?J.setAttribute(ve,C,x):J.removeAttribute(ve,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=T).\u0275fac=function(C){return new(C||I)(d.rXU(Fi),d.rXU(ne),d.kS0("tabindex"),d.rXU(d.sFG),d.rXU(d.aKT),d.rXU(Vt.hb))},I.\u0275dir=d.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,x){1&C&&d.bIt("click",function(ve){return x.onClick(ve.button,ve.ctrlKey,ve.shiftKey,ve.altKey,ve.metaKey)}),2&C&&d.BMQ("target",x.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[d.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",d.L39],skipLocationChange:[d.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",d.L39],replaceUrl:[d.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",d.L39],routerLink:"routerLink"},standalone:!0,features:[d.GFd,d.OA$]}),T})();class gc{}let Ua=(()=>{var I;class T{preload(C,x){return x().pipe(me(()=>(0,re.of)(null)))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),va=(()=>{var I;class T{constructor(C,x,J,ve,dt){this.router=C,this.injector=J,this.preloadingStrategy=ve,this.loader=dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,pt.p)(C=>C instanceof Si),de(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,x){const J=[];for(const At of x){var ve,dt;At.providers&&!At._injector&&(At._injector=(0,d.Ol2)(At.providers,C,`Route: ${At.path}`));const Tn=null!==(ve=At._injector)&&void 0!==ve?ve:C,hr=null!==(dt=At._loadedInjector)&&void 0!==dt?dt:Tn;var Qt;(At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent)&&J.push(this.preloadConfig(Tn,At)),(At.children||At._loadedRoutes)&&J.push(this.processRoutes(hr,null!==(Qt=At.children)&&void 0!==Qt?Qt:At._loadedRoutes))}return(0,Ee.H)(J).pipe(Le())}preloadConfig(C,x){return this.preloadingStrategy.preload(x,()=>{let J;J=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(C,x):(0,re.of)(null);const ve=J.pipe((0,Fe.Z)(dt=>{var Qt;return null===dt?(0,re.of)(void 0):(x._loadedRoutes=dt.routes,x._loadedInjector=dt.injector,this.processRoutes(null!==(Qt=dt.injector)&&void 0!==Qt?Qt:C,dt.routes))}));if(x.loadComponent&&!x._loadedComponent){const dt=this.loader.loadComponent(x);return(0,Ee.H)([ve,dt]).pipe(Le())}return ve})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Fi),d.KVO(d.Ql9),d.KVO(d.uvJ),d.KVO(gc),d.KVO(D))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const es=new d.nKC("");let wo=(()=>{var I;class T{constructor(C,x,J,ve,dt={}){this.urlSerializer=C,this.transitions=x,this.viewportScroller=J,this.zone=ve,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,d.WQX)(d.uvJ),dt.scrollPositionRestoration||(dt.scrollPositionRestoration="disabled"),dt.anchorScrolling||(dt.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 mi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Si?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof Nn&&C.code===mr.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 Ao&&(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,x){var J=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(ve=>{setTimeout(()=>{ve()}),(0,d.mal)(()=>{ve()},{injector:J.environmentInjector})}),J.zone.run(()=>{J.transitions.events.next(new Ao(C,"popstate"===J.lastSource?J.store[J.restoredId]:null,x))})}))}ngOnDestroy(){var C,x;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(x=this.scrollEventsSubscription)||void 0===x||x.unsubscribe()}}return(I=T).\u0275fac=function(C){d.QTQ()},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function Lr(I,T){return{\u0275kind:I,\u0275providers:T}}function No(){const I=(0,d.WQX)(d.zZn);return T=>{var R,C;const x=I.get(d.o8S);if(T!==x.components[0])return;const J=I.get(Fi),ve=I.get($o);1===I.get(ya)&&J.initialNavigation(),null===(R=I.get(Ur,null,d.$GK.Optional))||void 0===R||R.setUpPreloading(),null===(C=I.get(es,null,d.$GK.Optional))||void 0===C||C.init(),J.resetRootComponentType(x.componentTypes[0]),ve.closed||(ve.next(),ve.complete(),ve.unsubscribe())}}const $o=new d.nKC("",{factory:()=>new Tt.B}),ya=new d.nKC("",{providedIn:"root",factory:()=>1}),Ur=new d.nKC("");function _o(I){return Lr(0,[{provide:Ur,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Lr(9,[{provide:Ft,useValue:Un},{provide:an,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new d.nKC("ROUTER_FORROOT_GUARD"),Ea=[Vt.aZ,{provide:Qr,useClass:Yr},Fi,S,{provide:ne,useFactory:function jl(I){return I.routerState.root},deps:[Fi]},D,[]];let Mu=(()=>{var I;class T{constructor(C){}static forRoot(C,x){return{ngModule:T,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[Fi,new d.Xx1,new d.kdw]]},{provide:Hs,useValue:x||{}},null!=x&&x.useHash?{provide:Vt.hb,useClass:Vt.fw}:{provide:Vt.hb,useClass:Vt.Sm},{provide:es,useFactory:()=>{const I=(0,d.WQX)(Vt.Xr),T=(0,d.WQX)(d.SKi),R=(0,d.WQX)(Hs),C=(0,d.WQX)(Fr),x=(0,d.WQX)(Qr);return R.scrollOffset&&I.setOffset(R.scrollOffset),new wo(x,C,I,T,R)}},null!=x&&x.preloadingStrategy?_o(x.preloadingStrategy).\u0275providers:[],null!=x&&x.initialNavigation?qs(x):[],null!=x&&x.bindToComponentInputs?Lr(8,[In,{provide:Ln,useExisting:In}]).\u0275providers:[],null!=x&&x.enableViewTransitions?Hl().\u0275providers:[],[{provide:Xs,useFactory:No},{provide:d.iLQ,multi:!0,useExisting:Xs}]]}}static forChild(C){return{ngModule:T,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Ru,8))},I.\u0275mod=d.$C({type:I}),I.\u0275inj=d.G2t({}),T})();function mc(I){return"guarded"}function qs(I){return["disabled"===I.initialNavigation?Lr(3,[{provide:d.hnV,multi:!0,useFactory:()=>{const T=(0,d.WQX)(Fi);return()=>{T.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Lr(2,[{provide:ya,useValue:0},{provide:d.hnV,multi:!0,deps:[d.zZn],useFactory:T=>{const R=T.get(Vt.hj,Promise.resolve());return()=>R.then(()=>new Promise(C=>{const x=T.get(Fi),J=T.get($o);Kr(x,()=>{C(!0)}),T.get(Fr).afterPreactivation=()=>(C(!0),J.closed?(0,re.of)(void 0):J),x.initialNavigation()}))}}]).\u0275providers:[]]}const Xs=new d.nKC("")},7852:(En,bt,B)=>{"use strict";B.d(bt,{MF:()=>Qr,j6:()=>_r,xZ:()=>Zn,om:()=>Mr,Sx:()=>He,Dk:()=>ct,Wp:()=>Yr,KO:()=>he});var g=B(467),d=B(1362),ge=B(8041),Oe=B(1076);const X=(St,lt)=>lt.some(Ut=>St instanceof Ut);let Ee,re;const De=new WeakMap,_e=new WeakMap,Fe=new WeakMap,$e=new WeakMap,Le=new WeakMap;let ut={get(St,lt,Ut){if(St instanceof IDBTransaction){if("done"===lt)return _e.get(St);if("objectStoreNames"===lt)return St.objectStoreNames||Fe.get(St);if("store"===lt)return Ut.objectStoreNames[1]?void 0:Ut.objectStore(Ut.objectStoreNames[0])}return vt(St[lt])},set:(St,lt,Ut)=>(St[lt]=Ut,!0),has:(St,lt)=>St instanceof IDBTransaction&&("done"===lt||"store"===lt)||lt in St};function mt(St){return"function"==typeof St?function Mt(St){return St!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(St)?function(...lt){return St.apply(Me(this),lt),vt(De.get(this))}:function(...lt){return vt(St.apply(Me(this),lt))}:function(lt,...Ut){const fn=St.call(Me(this),lt,...Ut);return Fe.set(fn,lt.sort?lt.sort():[lt]),vt(fn)}}(St):(St instanceof IDBTransaction&&function ft(St){if(_e.has(St))return;const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("complete",Y),St.removeEventListener("error",Z),St.removeEventListener("abort",Z)},Y=()=>{Ut(),Kn()},Z=()=>{fn(St.error||new DOMException("AbortError","AbortError")),Kn()};St.addEventListener("complete",Y),St.addEventListener("error",Z),St.addEventListener("abort",Z)});_e.set(St,lt)}(St),X(St,function Ze(){return Ee||(Ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(St,ut):St)}function vt(St){if(St instanceof IDBRequest)return function Qe(St){const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("success",Y),St.removeEventListener("error",Z)},Y=()=>{Ut(vt(St.result)),Kn()},Z=()=>{fn(St.error),Kn()};St.addEventListener("success",Y),St.addEventListener("error",Z)});return lt.then(Ut=>{Ut instanceof IDBCursor&&De.set(Ut,St)}).catch(()=>{}),Le.set(lt,St),lt}(St);if($e.has(St))return $e.get(St);const lt=mt(St);return lt!==St&&($e.set(St,lt),Le.set(lt,St)),lt}const Me=St=>Le.get(St),Ct=["get","getKey","getAll","getAllKeys","count"],xt=["put","add","delete","clear"],ze=new Map;function Tt(St,lt){if(!(St instanceof IDBDatabase)||lt in St||"string"!=typeof lt)return;if(ze.get(lt))return ze.get(lt);const Ut=lt.replace(/FromIndex$/,""),fn=lt!==Ut,Kn=xt.includes(Ut);if(!(Ut in(fn?IDBIndex:IDBObjectStore).prototype)||!Kn&&!Ct.includes(Ut))return;const Y=function(){var Z=(0,g.A)(function*(Ne,...Q){const Se=this.transaction(Ne,Kn?"readwrite":"readonly");let it=Se.store;return fn&&(it=it.index(Q.shift())),(yield Promise.all([it[Ut](...Q),Kn&&Se.done]))[0]});return function(Q){return Z.apply(this,arguments)}}();return ze.set(lt,Y),Y}!function st(St){ut=St(ut)}(St=>({...St,get:(lt,Ut,fn)=>Tt(lt,Ut)||St.get(lt,Ut,fn),has:(lt,Ut)=>!!Tt(lt,Ut)||St.has(lt,Ut)}));class Vt{constructor(lt){this.container=lt}getPlatformInfoString(){return this.container.getProviders().map(Ut=>{if(function Zt(St){const lt=St.getComponent();return"VERSION"===(null==lt?void 0:lt.type)}(Ut)){const fn=Ut.getImmediate();return`${fn.library}/${fn.version}`}return null}).filter(Ut=>Ut).join(" ")}}const Dt="@firebase/app",rn=new ge.Vy("@firebase/app"),gn="[DEFAULT]",mn={[Dt]:"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"},Jt=new Map,Gt=new Map,pr=new Map;function wr(St,lt){try{St.container.addComponent(lt)}catch(Ut){rn.debug(`Component ${lt.name} failed to register with FirebaseApp ${St.name}`,Ut)}}function Mr(St){const lt=St.name;if(pr.has(lt))return rn.debug(`There were multiple attempts to register component ${lt}.`),!1;pr.set(lt,St);for(const Ut of Jt.values())wr(Ut,St);for(const Ut of Gt.values())wr(Ut,St);return!0}function _r(St,lt){const Ut=St.container.getProvider("heartbeat").getImmediate({optional:!0});return Ut&&Ut.triggerHeartbeat(),St.container.getProvider(lt)}function Zn(St){return void 0!==St.settings}const tr=new Oe.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 Er{constructor(lt,Ut,fn){this._isDeleted=!1,this._options=Object.assign({},lt),this._config=Object.assign({},Ut),this._name=Ut.name,this._automaticDataCollectionEnabled=Ut.automaticDataCollectionEnabled,this._container=fn,this.container.addComponent(new d.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(lt){this.checkDestroyed(),this._automaticDataCollectionEnabled=lt}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(lt){this._isDeleted=lt}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Qr="10.12.2";function Yr(St,lt={}){let Ut=St;"object"!=typeof lt&&(lt={name:lt});const fn=Object.assign({name:gn,automaticDataCollectionEnabled:!1},lt),Kn=fn.name;if("string"!=typeof Kn||!Kn)throw tr.create("bad-app-name",{appName:String(Kn)});if(Ut||(Ut=(0,Oe.T9)()),!Ut)throw tr.create("no-options");const Y=Jt.get(Kn);if(Y){if((0,Oe.bD)(Ut,Y.options)&&(0,Oe.bD)(fn,Y.config))return Y;throw tr.create("duplicate-app",{appName:Kn})}const Z=new d.h1(Kn);for(const Q of pr.values())Z.addComponent(Q);const Ne=new Er(Ut,fn,Z);return Jt.set(Kn,Ne),Ne}function He(St=gn){const lt=Jt.get(St);if(!lt&&St===gn&&(0,Oe.T9)())return Yr();if(!lt)throw tr.create("no-app",{appName:St});return lt}function ct(){return Array.from(Jt.values())}function he(St,lt,Ut){var fn;let Kn=null!==(fn=mn[St])&&void 0!==fn?fn:St;Ut&&(Kn+=`-${Ut}`);const Y=Kn.match(/\s|\//),Z=lt.match(/\s|\//);if(Y||Z){const Ne=[`Unable to register library "${Kn}" with version "${lt}":`];return Y&&Ne.push(`library name "${Kn}" contains illegal characters (whitespace or "/")`),Y&&Z&&Ne.push("and"),Z&&Ne.push(`version name "${lt}" contains illegal characters (whitespace or "/")`),void rn.warn(Ne.join(" "))}Mr(new d.uA(`${Kn}-version`,()=>({library:Kn,version:lt}),"VERSION"))}const rt="firebase-heartbeat-database",dn=1,Sn="firebase-heartbeat-store";let Wn=null;function gr(){return Wn||(Wn=function je(St,lt,{blocked:Ut,upgrade:fn,blocking:Kn,terminated:Y}={}){const Z=indexedDB.open(St,lt),Ne=vt(Z);return fn&&Z.addEventListener("upgradeneeded",Q=>{fn(vt(Z.result),Q.oldVersion,Q.newVersion,vt(Z.transaction),Q)}),Ut&&Z.addEventListener("blocked",Q=>Ut(Q.oldVersion,Q.newVersion,Q)),Ne.then(Q=>{Y&&Q.addEventListener("close",()=>Y()),Kn&&Q.addEventListener("versionchange",Se=>Kn(Se.oldVersion,Se.newVersion,Se))}).catch(()=>{}),Ne}(rt,dn,{upgrade:(St,lt)=>{if(0===lt)try{St.createObjectStore(Sn)}catch(Ut){console.warn(Ut)}}}).catch(St=>{throw tr.create("idb-open",{originalErrorMessage:St.message})})),Wn}function ri(){return(ri=(0,g.A)(function*(St){try{const Ut=(yield gr()).transaction(Sn),fn=yield Ut.objectStore(Sn).get(yr(St));return yield Ut.done,fn}catch(lt){if(lt instanceof Oe.g)rn.warn(lt.message);else{const Ut=tr.create("idb-get",{originalErrorMessage:null==lt?void 0:lt.message});rn.warn(Ut.message)}}})).apply(this,arguments)}function xn(St,lt){return Rn.apply(this,arguments)}function Rn(){return(Rn=(0,g.A)(function*(St,lt){try{const fn=(yield gr()).transaction(Sn,"readwrite");yield fn.objectStore(Sn).put(lt,yr(St)),yield fn.done}catch(Ut){if(Ut instanceof Oe.g)rn.warn(Ut.message);else{const fn=tr.create("idb-set",{originalErrorMessage:null==Ut?void 0:Ut.message});rn.warn(fn.message)}}})).apply(this,arguments)}function yr(St){return`${St.name}!${St.options.appId}`}class pi{constructor(lt){this.container=lt,this._heartbeatsCache=null;const Ut=this.container.getProvider("app").getImmediate();this._storage=new Hi(Ut),this._heartbeatsCachePromise=this._storage.read().then(fn=>(this._heartbeatsCache=fn,fn))}triggerHeartbeat(){var lt=this;return(0,g.A)(function*(){var Ut,fn;const Y=lt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Z=Ui();if((null!=(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||(lt._heartbeatsCache=yield lt._heartbeatsCachePromise,null!=(null===(fn=lt._heartbeatsCache)||void 0===fn?void 0:fn.heartbeats)))&<._heartbeatsCache.lastSentHeartbeatDate!==Z&&!lt._heartbeatsCache.heartbeats.some(Ne=>Ne.date===Z))return lt._heartbeatsCache.heartbeats.push({date:Z,agent:Y}),lt._heartbeatsCache.heartbeats=lt._heartbeatsCache.heartbeats.filter(Ne=>{const Q=new Date(Ne.date).valueOf();return Date.now()-Q<=2592e6}),lt._storage.overwrite(lt._heartbeatsCache)})()}getHeartbeatsHeader(){var lt=this;return(0,g.A)(function*(){var Ut;if(null===lt._heartbeatsCache&&(yield lt._heartbeatsCachePromise),null==(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||0===lt._heartbeatsCache.heartbeats.length)return"";const fn=Ui(),{heartbeatsToSend:Kn,unsentEntries:Y}=function or(St,lt=1024){const Ut=[];let fn=St.slice();for(const Kn of St){const Y=Ut.find(Z=>Z.agent===Kn.agent);if(Y){if(Y.dates.push(Kn.date),wi(Ut)>lt){Y.dates.pop();break}}else if(Ut.push({agent:Kn.agent,dates:[Kn.date]}),wi(Ut)>lt){Ut.pop();break}fn=fn.slice(1)}return{heartbeatsToSend:Ut,unsentEntries:fn}}(lt._heartbeatsCache.heartbeats),Z=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Kn}));return lt._heartbeatsCache.lastSentHeartbeatDate=fn,Y.length>0?(lt._heartbeatsCache.heartbeats=Y,yield lt._storage.overwrite(lt._heartbeatsCache)):(lt._heartbeatsCache.heartbeats=[],lt._storage.overwrite(lt._heartbeatsCache)),Z})()}}function Ui(){return(new Date).toISOString().substring(0,10)}class Hi{constructor(lt){this.app=lt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var lt=this;return(0,g.A)(function*(){if(yield lt._canUseIndexedDBPromise){const fn=yield function ur(St){return ri.apply(this,arguments)}(lt.app);return null!=fn&&fn.heartbeats?fn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:lt.heartbeats})}})()}add(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:[...Y.heartbeats,...lt.heartbeats]})}})()}}function wi(St){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:St})).length}!function gi(St){Mr(new d.uA("platform-logger",lt=>new Vt(lt),"PRIVATE")),Mr(new d.uA("heartbeat",lt=>new pi(lt),"PRIVATE")),he(Dt,"0.10.5",St),he(Dt,"0.10.5","esm2017"),he("fire-js","")}("")},1362:(En,bt,B)=>{"use strict";B.d(bt,{h1:()=>Ze,uA:()=>ge});var g=B(467),d=B(1076);class ge{constructor(De,_e,Fe){this.name=De,this.instanceFactory=_e,this.type=Fe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(De){return this.instantiationMode=De,this}setMultipleInstances(De){return this.multipleInstances=De,this}setServiceProps(De){return this.serviceProps=De,this}setInstanceCreatedCallback(De){return this.onInstanceCreated=De,this}}const Oe="[DEFAULT]";class X{constructor(De,_e){this.name=De,this.container=_e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(De){const _e=this.normalizeInstanceIdentifier(De);if(!this.instancesDeferred.has(_e)){const Fe=new d.cY;if(this.instancesDeferred.set(_e,Fe),this.isInitialized(_e)||this.shouldAutoInitialize())try{const $e=this.getOrInitializeService({instanceIdentifier:_e});$e&&Fe.resolve($e)}catch{}}return this.instancesDeferred.get(_e).promise}getImmediate(De){var _e;const Fe=this.normalizeInstanceIdentifier(null==De?void 0:De.identifier),$e=null!==(_e=null==De?void 0:De.optional)&&void 0!==_e&&_e;if(!this.isInitialized(Fe)&&!this.shouldAutoInitialize()){if($e)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Fe})}catch(Le){if($e)return null;throw Le}}getComponent(){return this.component}setComponent(De){if(De.name!==this.name)throw Error(`Mismatching Component ${De.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=De,this.shouldAutoInitialize()){if(function re(Je){return"EAGER"===Je.instantiationMode}(De))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[_e,Fe]of this.instancesDeferred.entries()){const $e=this.normalizeInstanceIdentifier(_e);try{const Le=this.getOrInitializeService({instanceIdentifier:$e});Fe.resolve(Le)}catch{}}}}clearInstance(De=Oe){this.instancesDeferred.delete(De),this.instancesOptions.delete(De),this.instances.delete(De)}delete(){var De=this;return(0,g.A)(function*(){const _e=Array.from(De.instances.values());yield Promise.all([..._e.filter(Fe=>"INTERNAL"in Fe).map(Fe=>Fe.INTERNAL.delete()),..._e.filter(Fe=>"_delete"in Fe).map(Fe=>Fe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(De=Oe){return this.instances.has(De)}getOptions(De=Oe){return this.instancesOptions.get(De)||{}}initialize(De={}){const{options:_e={}}=De,Fe=this.normalizeInstanceIdentifier(De.instanceIdentifier);if(this.isInitialized(Fe))throw Error(`${this.name}(${Fe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const $e=this.getOrInitializeService({instanceIdentifier:Fe,options:_e});for(const[Le,Qe]of this.instancesDeferred.entries())Fe===this.normalizeInstanceIdentifier(Le)&&Qe.resolve($e);return $e}onInit(De,_e){var Fe;const $e=this.normalizeInstanceIdentifier(_e),Le=null!==(Fe=this.onInitCallbacks.get($e))&&void 0!==Fe?Fe:new Set;Le.add(De),this.onInitCallbacks.set($e,Le);const Qe=this.instances.get($e);return Qe&&De(Qe,$e),()=>{Le.delete(De)}}invokeOnInitCallbacks(De,_e){const Fe=this.onInitCallbacks.get(_e);if(Fe)for(const $e of Fe)try{$e(De,_e)}catch{}}getOrInitializeService({instanceIdentifier:De,options:_e={}}){let Fe=this.instances.get(De);if(!Fe&&this.component&&(Fe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=De,Je===Oe?void 0:Je),options:_e}),this.instances.set(De,Fe),this.instancesOptions.set(De,_e),this.invokeOnInitCallbacks(Fe,De),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,De,Fe)}catch{}var Je;return Fe||null}normalizeInstanceIdentifier(De=Oe){return this.component?this.component.multipleInstances?De:Oe:De}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ze{constructor(De){this.name=De,this.providers=new Map}addComponent(De){const _e=this.getProvider(De.name);if(_e.isComponentSet())throw new Error(`Component ${De.name} has already been registered with ${this.name}`);_e.setComponent(De)}addOrOverwriteComponent(De){this.getProvider(De.name).isComponentSet()&&this.providers.delete(De.name),this.addComponent(De)}getProvider(De){if(this.providers.has(De))return this.providers.get(De);const _e=new X(De,this);return this.providers.set(De,_e),_e}getProviders(){return Array.from(this.providers.values())}}},8041:(En,bt,B)=>{"use strict";B.d(bt,{$b:()=>d,Vy:()=>re});const g=[];var d=function(De){return De[De.DEBUG=0]="DEBUG",De[De.VERBOSE=1]="VERBOSE",De[De.INFO=2]="INFO",De[De.WARN=3]="WARN",De[De.ERROR=4]="ERROR",De[De.SILENT=5]="SILENT",De}(d||{});const ge={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Oe=d.INFO,X={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Ee=(De,_e,...Fe)=>{if(_e{"use strict";B.d(bt,{Yq:()=>en,TS:()=>Ve,sR:()=>yt,el:()=>Rn,Sb:()=>Er,QE:()=>Ui,CF:()=>wn,Rg:()=>dn,p4:()=>or,jM:()=>fn,_t:()=>kt,q9:()=>er,Kb:()=>Kn,CE:()=>yr,pF:()=>Ei,fL:()=>wi,YV:()=>ur,er:()=>Hi,z3:()=>gi});var g=B(467),d=B(9842),ge=B(4438),Oe=B(845),X=B(177),Ee=B(5531),re=B(4442);var Vt=B(1413),Zt=B(3726),Dt=B(4412),Be=B(4572),rn=B(7673),pt=B(1635),ye=B(5964),j=B(5558),W=B(3669),te=B(9974),de=B(4360);function me(Y,Z){return Y===Z}var Ce=B(4341);const at=["tabsInner"];class kt{constructor(Z){(0,d.A)(this,"menuController",void 0),this.menuController=Z}open(Z){return this.menuController.open(Z)}close(Z){return this.menuController.close(Z)}toggle(Z){return this.menuController.toggle(Z)}enable(Z,Ne){return this.menuController.enable(Z,Ne)}swipeGesture(Z,Ne){return this.menuController.swipeGesture(Z,Ne)}isOpen(Z){return this.menuController.isOpen(Z)}isEnabled(Z){return this.menuController.isEnabled(Z)}get(Z){return this.menuController.get(Z)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(Z,Ne){return this.menuController.registerAnimation(Z,Ne)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(Z,Ne){return this.menuController._createAnimation(Z,Ne)}_register(Z){return this.menuController._register(Z)}_unregister(Z){return this.menuController._unregister(Z)}_setOpen(Z,Ne,Q){return this.menuController._setOpen(Z,Ne,Q)}}let bn=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"doc",void 0),(0,d.A)(this,"_readyPromise",void 0),(0,d.A)(this,"win",void 0),(0,d.A)(this,"backButton",new Vt.B),(0,d.A)(this,"keyboardDidShow",new Vt.B),(0,d.A)(this,"keyboardDidHide",new Vt.B),(0,d.A)(this,"pause",new Vt.B),(0,d.A)(this,"resume",new Vt.B),(0,d.A)(this,"resize",new Vt.B),this.doc=Q,Se.run(()=>{var it;let Wt;this.win=Q.defaultView,this.backButton.subscribeWithPriority=function(cn,Pn){return this.subscribe(Cr=>Cr.register(cn,Hn=>Se.run(()=>Pn(Hn))))},qn(this.pause,Q,"pause",Se),qn(this.resume,Q,"resume",Se),qn(this.backButton,Q,"ionBackButton",Se),qn(this.resize,this.win,"resize",Se),qn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",Se),qn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",Se),this._readyPromise=new Promise(cn=>{Wt=cn}),null!==(it=this.win)&&void 0!==it&&it.cordova?Q.addEventListener("deviceready",()=>{Wt("cordova")},{once:!0}):Wt("dom")})}is(Q){return(0,Ee.a)(this.win,Q)}platforms(){return(0,Ee.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Q){return $n(this.win.location.href,Q)}isLandscape(){return!this.isPortrait()}isPortrait(){var Q,Se;return null===(Q=(Se=this.win).matchMedia)||void 0===Q?void 0:Q.call(Se,"(orientation: portrait)").matches}testUserAgent(Q){const Se=this.win.navigator;return!!(null!=Se&&Se.userAgent&&Se.userAgent.indexOf(Q)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(X.qQ),ge.KVO(ge.SKi))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const $n=(Y,Z)=>{Z=Z.replace(/[[\]\\]/g,"\\$&");const Q=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(Y);return Q?decodeURIComponent(Q[1].replace(/\+/g," ")):null},qn=(Y,Z,Ne,Q)=>{Z&&Z.addEventListener(Ne,Se=>{Q.run(()=>{Y.next(null!=Se?Se.detail:void 0)})})};let er=(()=>{var Y;class Z{constructor(Q,Se,it,Wt){(0,d.A)(this,"location",void 0),(0,d.A)(this,"serializer",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"topOutlet",void 0),(0,d.A)(this,"direction",ir),(0,d.A)(this,"animated",Yn),(0,d.A)(this,"animationBuilder",void 0),(0,d.A)(this,"guessDirection","forward"),(0,d.A)(this,"guessAnimation",void 0),(0,d.A)(this,"lastNavId",-1),this.location=Se,this.serializer=it,this.router=Wt,Wt&&Wt.events.subscribe(cn=>{if(cn instanceof Oe.Z){const Pn=cn.restoredState?cn.restoredState.navigationId:cn.id;this.guessDirection=this.guessAnimation=Pn{this.pop(),cn()})}navigateForward(Q,Se={}){return this.setDirection("forward",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateBack(Q,Se={}){return this.setDirection("back",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateRoot(Q,Se={}){return this.setDirection("root",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}back(Q={animated:!0,animationDirection:"back"}){return this.setDirection("back",Q.animated,Q.animationDirection,Q.animation),this.location.back()}pop(){var Q=this;return(0,g.A)(function*(){let Se=Q.topOutlet;for(;Se;){if(yield Se.pop())return!0;Se=Se.parentOutlet}return!1})()}setDirection(Q,Se,it,Wt){this.direction=Q,this.animated=yn(Q,Se,it),this.animationBuilder=Wt}setTopOutlet(Q){this.topOutlet=Q}consumeTransition(){let Se,Q="root";const it=this.animationBuilder;return"auto"===this.direction?(Q=this.guessDirection,Se=this.guessAnimation):(Se=this.animated,Q=this.direction),this.direction=ir,this.animated=Yn,this.animationBuilder=void 0,{direction:Q,animation:Se,animationBuilder:it}}navigate(Q,Se){if(Array.isArray(Q))return this.router.navigate(Q,Se);{const it=this.serializer.parse(Q.toString());return void 0!==Se.queryParams&&(it.queryParams={...Se.queryParams}),void 0!==Se.fragment&&(it.fragment=Se.fragment),this.router.navigateByUrl(it,Se)}}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(bn),ge.KVO(X.aZ),ge.KVO(Oe.Sd),ge.KVO(Oe.Ix,8))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yn=(Y,Z,Ne)=>{if(!1!==Z){if(void 0!==Ne)return Ne;if("forward"===Y||"back"===Y)return Y;if("root"===Y&&!0===Z)return"forward"}},ir="auto",Yn=void 0;let Ve=(()=>{var Y;class Z{get(Q,Se){const it=Ot();return it?it.get(Q,Se):null}getBoolean(Q,Se){const it=Ot();return!!it&&it.getBoolean(Q,Se)}getNumber(Q,Se){const it=Ot();return it?it.getNumber(Q,Se):0}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yt=new ge.nKC("USERCONFIG"),Ot=()=>{if(typeof window<"u"){const Y=window.Ionic;if(null!=Y&&Y.config)return Y.config}return null};class Xt{constructor(Z={}){(0,d.A)(this,"data",void 0),this.data=Z,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(Z){return this.data[Z]}}let en=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"zone",(0,ge.WQX)(ge.SKi)),(0,d.A)(this,"applicationRef",(0,ge.WQX)(ge.o8S)),(0,d.A)(this,"config",(0,ge.WQX)(yt))}create(Q,Se,it){var Wt;return new Ir(Q,Se,this.applicationRef,this.zone,it,null!==(Wt=this.config.useSetInputAPI)&&void 0!==Wt&&Wt)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();class Ir{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"environmentInjector",void 0),(0,d.A)(this,"injector",void 0),(0,d.A)(this,"applicationRef",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"elementReferenceKey",void 0),(0,d.A)(this,"enableSignalsSupport",void 0),(0,d.A)(this,"elRefMap",new WeakMap),(0,d.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=Z,this.injector=Ne,this.applicationRef=Q,this.zone=Se,this.elementReferenceKey=it,this.enableSignalsSupport=Wt}attachViewToDom(Z,Ne,Q,Se){return this.zone.run(()=>new Promise(it=>{const Wt={...Q};void 0!==this.elementReferenceKey&&(Wt[this.elementReferenceKey]=Z),it(gn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,Z,Ne,Wt,Se,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(Z,Ne){return this.zone.run(()=>new Promise(Q=>{const Se=this.elRefMap.get(Ne);if(Se){Se.destroy(),this.elRefMap.delete(Ne);const it=this.elEventsMap.get(Ne);it&&(it(),this.elEventsMap.delete(Ne))}Q()}))}}const gn=(Y,Z,Ne,Q,Se,it,Wt,cn,Pn,Cr,Hn,$i)=>{const Ai=ge.zZn.create({providers:pr(Pn),parent:Ne}),Pi=(0,ge.a0P)(cn,{environmentInjector:Z,elementInjector:Ai}),xr=Pi.instance,An=Pi.location.nativeElement;if(Pn)if(Hn&&void 0!==xr[Hn]&&console.error(`[Ionic Error]: ${Hn} is a reserved property when using ${Wt.tagName.toLowerCase()}. Rename or remove the "${Hn}" property from ${cn.name}.`),!0===$i&&void 0!==Pi.setInput){const{modal:mi,popover:Si,...ti}=Pn;for(const mr in ti)Pi.setInput(mr,ti[mr]);void 0!==mi&&Object.assign(xr,{modal:mi}),void 0!==Si&&Object.assign(xr,{popover:Si})}else Object.assign(xr,Pn);if(Cr)for(const mi of Cr)An.classList.add(mi);const xi=Jt(Y,xr,An);return Wt.appendChild(An),Q.attachView(Pi.hostView),Se.set(An,Pi),it.set(An,xi),An},mn=[re.L,re.a,re.b,re.c,re.d],Jt=(Y,Z,Ne)=>Y.run(()=>{const Q=mn.filter(Se=>"function"==typeof Z[Se]).map(Se=>{const it=Wt=>Z[Se](Wt.detail);return Ne.addEventListener(Se,it),()=>Ne.removeEventListener(Se,it)});return()=>Q.forEach(Se=>Se())}),Gt=new ge.nKC("NavParamsToken"),pr=Y=>[{provide:Gt,useValue:Y},{provide:Xt,useFactory:wr,deps:[Gt]}],wr=Y=>new Xt(Y),kr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Object.defineProperty(Ne,Q,{get(){return this.el[Q]},set(Se){this.z.runOutsideAngular(()=>this.el[Q]=Se)}})})},Mr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Ne[Q]=function(){const Se=arguments;return this.z.runOutsideAngular(()=>this.el[Q].apply(this.el,Se))}})},_r=(Y,Z,Ne)=>{Ne.forEach(Q=>Y[Q]=(0,Zt.R)(Z,Q))};function Bn(Y){return function(Ne){const{defineCustomElementFn:Q,inputs:Se,methods:it}=Y;return void 0!==Q&&Q(),Se&&kr(Ne,Se),it&&Mr(Ne,it),Ne}}const ni=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Zn=["present","dismiss","onDidDismiss","onWillDismiss"];let wn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-popover"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.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"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ni,methods:Zn})],Z),Z})();const Sr=["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 Er=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-modal"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.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"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:Sr,methods:tr})],Z),Z})();const Qr=(Y,Z)=>((Y=Y.filter(Ne=>Ne.stackId!==Z.stackId)).push(Z),Y),He=(Y,Z)=>{const Ne=Y.createUrlTree(["."],{relativeTo:Z});return Y.serializeUrl(Ne)},ct=(Y,Z)=>!Z||Y.stackId!==Z.stackId,Xe=(Y,Z)=>{if(!Y)return;const Ne=ie(Z);for(let Q=0;Q=Y.length)return Ne[Q];if(Ne[Q]!==Y[Q])return}},ie=Y=>Y.split("/").map(Z=>Z.trim()).filter(Z=>""!==Z),he=Y=>{Y&&(Y.ref.destroy(),Y.unlistenEvents())};class Pe{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"containerEl",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"location",void 0),(0,d.A)(this,"views",[]),(0,d.A)(this,"runningTask",void 0),(0,d.A)(this,"skipTransition",!1),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"activeView",void 0),(0,d.A)(this,"nextId",0),this.containerEl=Ne,this.router=Q,this.navCtrl=Se,this.zone=it,this.location=Wt,this.tabsPrefix=void 0!==Z?ie(Z):void 0}createView(Z,Ne){var Q;const Se=He(this.router,Ne),it=null==Z||null===(Q=Z.location)||void 0===Q?void 0:Q.nativeElement,Wt=Jt(this.zone,Z.instance,it);return{id:this.nextId++,stackId:Xe(this.tabsPrefix,Se),unlistenEvents:Wt,element:it,ref:Z,url:Se}}getExistingView(Z){const Ne=He(this.router,Z),Q=this.views.find(Se=>Se.url===Ne);return Q&&Q.ref.changeDetectorRef.reattach(),Q}setActive(Z){var Ne,Q;const Se=this.navCtrl.consumeTransition();let{direction:it,animation:Wt,animationBuilder:cn}=Se;const Pn=this.activeView,Cr=ct(Z,Pn);Cr&&(it="back",Wt=void 0);const Hn=this.views.slice();let $i;const Ai=this.router;Ai.getCurrentNavigation?$i=Ai.getCurrentNavigation():null!==(Ne=Ai.navigations)&&void 0!==Ne&&Ne.value&&($i=Ai.navigations.value),null!==(Q=$i)&&void 0!==Q&&null!==(Q=Q.extras)&&void 0!==Q&&Q.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Pi=this.views.includes(Z),xr=this.insertView(Z,it);Pi||Z.ref.changeDetectorRef.detectChanges();const An=Z.animationBuilder;return void 0===cn&&"back"===it&&!Cr&&void 0!==An&&(cn=An),Pn&&(Pn.animationBuilder=cn),this.zone.runOutsideAngular(()=>this.wait(()=>(Pn&&Pn.ref.changeDetectorRef.detach(),Z.ref.changeDetectorRef.reattach(),this.transition(Z,Pn,Wt,this.canGoBack(1),!1,cn).then(()=>Et(Z,xr,Hn,this.location,this.zone)).then(()=>({enteringView:Z,direction:it,animation:Wt,tabSwitch:Cr})))))}canGoBack(Z,Ne=this.getActiveStackId()){return this.getStack(Ne).length>Z}pop(Z,Ne=this.getActiveStackId()){return this.zone.run(()=>{const Q=this.getStack(Ne);if(Q.length<=Z)return Promise.resolve(!1);const Se=Q[Q.length-Z-1];let it=Se.url;const Wt=Se.savedData;if(Wt){var cn;const Cr=Wt.get("primary");null!=Cr&&null!==(cn=Cr.route)&&void 0!==cn&&null!==(cn=cn._routerState)&&void 0!==cn&&cn.snapshot.url&&(it=Cr.route._routerState.snapshot.url)}const{animationBuilder:Pn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(it,{...Se.savedExtras,animation:Pn}).then(()=>!0)})}startBackTransition(){const Z=this.activeView;if(Z){const Ne=this.getStack(Z.stackId),Q=Ne[Ne.length-2],Se=Q.animationBuilder;return this.wait(()=>this.transition(Q,Z,"back",this.canGoBack(2),!0,Se))}return Promise.resolve()}endBackTransition(Z){Z?(this.skipTransition=!0,this.pop(1)):this.activeView&&rt(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[Ne.length-1]:void 0}getRootUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[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(he),this.activeView=void 0,this.views=[]}getStack(Z){return this.views.filter(Ne=>Ne.stackId===Z)}insertView(Z,Ne){return this.activeView=Z,this.views=((Y,Z,Ne)=>"root"===Ne?Qr(Y,Z):"forward"===Ne?((Y,Z)=>(Y.indexOf(Z)>=0?Y=Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Y.push(Z),Y))(Y,Z):((Y,Z)=>Y.indexOf(Z)>=0?Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Qr(Y,Z))(Y,Z))(this.views,Z,Ne),this.views.slice()}transition(Z,Ne,Q,Se,it,Wt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Ne===Z)return Promise.resolve(!1);const cn=Z?Z.element:void 0,Pn=Ne?Ne.element:void 0,Cr=this.containerEl;return cn&&cn!==Pn&&(cn.classList.add("ion-page"),cn.classList.add("ion-page-invisible"),Cr.commit)?Cr.commit(cn,Pn,{duration:void 0===Q?0:void 0,direction:Q,showGoBack:Se,progressAnimation:it,animationBuilder:Wt}):Promise.resolve(!1)}wait(Z){var Ne=this;return(0,g.A)(function*(){void 0!==Ne.runningTask&&(yield Ne.runningTask,Ne.runningTask=void 0);const Q=Ne.runningTask=Z();return Q.finally(()=>Ne.runningTask=void 0),Q})()}}const Et=(Y,Z,Ne,Q,Se)=>"function"==typeof requestAnimationFrame?new Promise(it=>{requestAnimationFrame(()=>{rt(Y,Z,Ne,Q,Se),it()})}):Promise.resolve(),rt=(Y,Z,Ne,Q,Se)=>{Se.run(()=>Ne.filter(it=>!Z.includes(it)).forEach(he)),Z.forEach(it=>{const cn=Q.path().split("?")[0].split("#")[0];if(it!==Y&&it.url!==cn){const Pn=it.element;Pn.setAttribute("aria-hidden","true"),Pn.classList.add("ion-page-hidden"),it.ref.changeDetectorRef.detach()}})};let dn=(()=>{var Y;class Z{get activatedComponentRef(){return this.activated}set animation(Q){this.nativeEl.animation=Q}set animated(Q){this.nativeEl.animated=Q}set swipeGesture(Q){this._swipeGesture=Q,this.nativeEl.swipeHandler=Q?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:Se=>this.stackCtrl.endBackTransition(Se)}:void 0}constructor(Q,Se,it,Wt,cn,Pn,Cr,Hn){(0,d.A)(this,"parentOutlet",void 0),(0,d.A)(this,"nativeEl",void 0),(0,d.A)(this,"activatedView",null),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"_swipeGesture",void 0),(0,d.A)(this,"stackCtrl",void 0),(0,d.A)(this,"proxyMap",new WeakMap),(0,d.A)(this,"currentActivatedRoute$",new Dt.t(null)),(0,d.A)(this,"activated",null),(0,d.A)(this,"_activatedRoute",null),(0,d.A)(this,"name",Oe.Xk),(0,d.A)(this,"stackWillChange",new ge.bkB),(0,d.A)(this,"stackDidChange",new ge.bkB),(0,d.A)(this,"activateEvents",new ge.bkB),(0,d.A)(this,"deactivateEvents",new ge.bkB),(0,d.A)(this,"parentContexts",(0,ge.WQX)(Oe.Zp)),(0,d.A)(this,"location",(0,ge.WQX)(ge.c1b)),(0,d.A)(this,"environmentInjector",(0,ge.WQX)(ge.uvJ)),(0,d.A)(this,"inputBinder",(0,ge.WQX)(Wn,{optional:!0})),(0,d.A)(this,"supportsBindingToComponentInputs",!0),(0,d.A)(this,"config",(0,ge.WQX)(Ve)),(0,d.A)(this,"navCtrl",(0,ge.WQX)(er)),this.parentOutlet=Hn,this.nativeEl=Wt.nativeElement,this.name=Q||Oe.Xk,this.tabsPrefix="true"===Se?He(cn,Cr):void 0,this.stackCtrl=new Pe(this.tabsPrefix,this.nativeEl,cn,this.navCtrl,Pn,it),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var Q;this.stackCtrl.destroy(),null===(Q=this.inputBinder)||void 0===Q||Q.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const Q=this.getContext();null!=Q&&Q.route&&this.activateWith(Q.route,Q.injector)}new Promise(Q=>((Y,Z)=>{Y.componentOnReady?Y.componentOnReady().then(Ne=>Z(Ne)):(Y=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y)})(()=>Z(Y))})(this.nativeEl,Q)).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(Q,Se){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const Se=this.getContext();this.activatedView.savedData=new Map(Se.children.contexts);const it=this.activatedView.savedData.get("primary");if(it&&Se.route&&(it.route={...Se.route}),this.activatedView.savedExtras={},Se.route){const Wt=Se.route.snapshot;this.activatedView.savedExtras.queryParams=Wt.queryParams,this.activatedView.savedExtras.fragment=Wt.fragment}}const Q=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Q)}}activateWith(Q,Se){var it;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Q;let Wt,cn=this.stackCtrl.getExistingView(Q);if(cn){Wt=this.activated=cn.ref;const Hn=cn.savedData;Hn&&(this.getContext().children.contexts=Hn),this.updateActivatedRouteProxy(Wt.instance,Q)}else{var Pn;const Hn=Q._futureSnapshot,$i=this.parentContexts.getOrCreateContext(this.name).children,Ai=new Dt.t(null),Pi=this.createActivatedRouteProxy(Ai,Q),xr=new Sn(Pi,$i,this.location.injector),An=null!==(Pn=Hn.routeConfig.component)&&void 0!==Pn?Pn:Hn.component;Wt=this.activated=this.outletContent.createComponent(An,{index:this.outletContent.length,injector:xr,environmentInjector:null!=Se?Se:this.environmentInjector}),Ai.next(Wt.instance),cn=this.stackCtrl.createView(this.activated,Q),this.proxyMap.set(Wt.instance,Pi),this.currentActivatedRoute$.next({component:Wt.instance,activatedRoute:Q})}null===(it=this.inputBinder)||void 0===it||it.bindActivatedRouteToOutletComponent(this),this.activatedView=cn,this.navCtrl.setTopOutlet(this);const Cr=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:cn,tabSwitch:ct(cn,Cr)}),this.stackCtrl.setActive(cn).then(Hn=>{this.activateEvents.emit(Wt.instance),this.stackDidChange.emit(Hn)})}canGoBack(Q=1,Se){return this.stackCtrl.canGoBack(Q,Se)}pop(Q=1,Se){return this.stackCtrl.pop(Q,Se)}getLastUrl(Q){const Se=this.stackCtrl.getLastUrl(Q);return Se?Se.url:void 0}getLastRouteView(Q){return this.stackCtrl.getLastUrl(Q)}getRootView(Q){return this.stackCtrl.getRootUrl(Q)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(Q,Se){const it=new Oe.nX;return it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,it._paramMap=this.proxyObservable(Q,"paramMap"),it._queryParamMap=this.proxyObservable(Q,"queryParamMap"),it.url=this.proxyObservable(Q,"url"),it.params=this.proxyObservable(Q,"params"),it.queryParams=this.proxyObservable(Q,"queryParams"),it.fragment=this.proxyObservable(Q,"fragment"),it.data=this.proxyObservable(Q,"data"),it}proxyObservable(Q,Se){return Q.pipe((0,ye.p)(it=>!!it),(0,j.n)(it=>this.currentActivatedRoute$.pipe((0,ye.p)(Wt=>null!==Wt&&Wt.component===it),(0,j.n)(Wt=>Wt&&Wt.activatedRoute[Se]),function ae(Y,Z=W.D){return Y=null!=Y?Y:me,(0,te.N)((Ne,Q)=>{let Se,it=!0;Ne.subscribe((0,de._)(Q,Wt=>{const cn=Z(Wt);(it||!Y(Se,cn))&&(it=!1,Se=cn,Q.next(Wt))}))})}())))}updateActivatedRouteProxy(Q,Se){const it=this.proxyMap.get(Q);if(!it)throw new Error("Could not find activated route proxy for view");it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,this.currentActivatedRoute$.next({component:Q,activatedRoute:Se})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.kS0("name"),ge.kS0("tabs"),ge.rXU(X.aZ),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(ge.SKi),ge.rXU(Oe.nX),ge.rXU(Y,12))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,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"]})),Z})();class Sn{constructor(Z,Ne,Q){(0,d.A)(this,"route",void 0),(0,d.A)(this,"childContexts",void 0),(0,d.A)(this,"parent",void 0),this.route=Z,this.childContexts=Ne,this.parent=Q}get(Z,Ne){return Z===Oe.nX?this.route:Z===Oe.Zp?this.childContexts:this.parent.get(Z,Ne)}}const Wn=new ge.nKC("");let gr=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(Q){this.unsubscribeFromRouteData(Q),this.subscribeToRouteData(Q)}unsubscribeFromRouteData(Q){var Se;null===(Se=this.outletDataSubscriptions.get(Q))||void 0===Se||Se.unsubscribe(),this.outletDataSubscriptions.delete(Q)}subscribeToRouteData(Q){const{activatedRoute:Se}=Q,it=(0,Be.z)([Se.queryParams,Se.params,Se.data]).pipe((0,j.n)(([Wt,cn,Pn],Cr)=>(Pn={...Wt,...cn,...Pn},0===Cr?(0,rn.of)(Pn):Promise.resolve(Pn)))).subscribe(Wt=>{if(!Q.isActivated||!Q.activatedComponentRef||Q.activatedRoute!==Se||null===Se.component)return void this.unsubscribeFromRouteData(Q);const cn=(0,ge.HJs)(Se.component);if(cn)for(const{templateName:Pn}of cn.inputs)Q.activatedComponentRef.setInput(Pn,Wt[Pn]);else this.unsubscribeFromRouteData(Q)});this.outletDataSubscriptions.set(Q,it)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();const ur=()=>({provide:Wn,useFactory:ri,deps:[Oe.Ix]});function ri(Y){return null!=Y&&Y.componentInputBindingEnabled?new gr:null}const xn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Rn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"routerOutlet",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"config",void 0),(0,d.A)(this,"r",void 0),(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.routerOutlet=Q,this.navCtrl=Se,this.config=it,this.r=Wt,this.z=cn,Pn.detach(),this.el=this.r.nativeElement}onClick(Q){var Se;const it=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(Se=this.routerOutlet)&&void 0!==Se&&Se.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),Q.preventDefault()):null!=it&&(this.navCtrl.navigateBack(it,{animation:this.routerAnimation}),Q.preventDefault())}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(dn,8),ge.rXU(er),ge.rXU(Ve),ge.rXU(ge.aKT),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:xn})],Z),Z})(),yr=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(Q){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),Q.preventDefault()}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})(),Ei=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(){return Se.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})();const ii=["animated","animation","root","rootParams","swipeGesture"],pi=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Ui=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.z=cn,Pn.detach(),this.el=Q.nativeElement,Q.nativeElement.delegate=Wt.create(Se,it),_r(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.aKT),ge.rXU(ge.uvJ),ge.rXU(ge.zZn),ge.rXU(en),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ii,methods:pi})],Z),Z})(),or=(()=>{var Y;class Z{constructor(Q){(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"tabsInner",void 0),(0,d.A)(this,"ionTabsWillChange",new ge.bkB),(0,d.A)(this,"ionTabsDidChange",new ge.bkB),(0,d.A)(this,"tabBarSlot","bottom"),this.navCtrl=Q}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&this.ionTabsWillChange.emit({tab:it})}onStackDidChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&(this.tabBar&&(this.tabBar.selectedTab=it),this.ionTabsDidChange.emit({tab:it}))}select(Q){const Se="string"==typeof Q,it=Se?Q:Q.detail.tab,Wt=this.outlet.getActiveStackId()===it,cn=`${this.outlet.tabsPrefix}/${it}`;if(Se||Q.stopPropagation(),Wt){const Pn=this.outlet.getActiveStackId(),Cr=this.outlet.getLastRouteView(Pn);if((null==Cr?void 0:Cr.url)===cn)return;const Hn=this.outlet.getRootView(it);return this.navCtrl.navigateRoot(cn,{...Hn&&cn===Hn.url&&Hn.savedExtras,animated:!0,animationDirection:"back"})}{const Pn=this.outlet.getLastRouteView(it);return this.navCtrl.navigateRoot((null==Pn?void 0:Pn.url)||cn,{...null==Pn?void 0:Pn.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(Q=>{const Se=Q.el.getAttribute("slot");Se!==this.tabBarSlot&&(this.tabBarSlot=Se,this.relocateTabBar())})}relocateTabBar(){const Q=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(Q):this.tabsInner.nativeElement.after(Q)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(er))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-tabs"]],viewQuery:function(Q,Se){if(1&Q&&ge.GBs(at,7,ge.aKT),2&Q){let it;ge.mGM(it=ge.lsd())&&(Se.tabsInner=it.first)}},hostBindings:function(Q,Se){1&Q&&ge.bIt("ionTabButtonClick",function(Wt){return Se.select(Wt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),Z})();const Hi=Y=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y);let wi=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"injector",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"onChange",()=>{}),(0,d.A)(this,"onTouched",()=>{}),(0,d.A)(this,"lastValue",void 0),(0,d.A)(this,"statusChanges",void 0),this.injector=Q,this.elementRef=Se}writeValue(Q){this.elementRef.nativeElement.value=this.lastValue=Q,gi(this.elementRef)}handleValueChange(Q,Se){Q===this.elementRef.nativeElement&&(Se!==this.lastValue&&(this.lastValue=Se,this.onChange(Se)),gi(this.elementRef))}_handleBlurEvent(Q){Q===this.elementRef.nativeElement&&(this.onTouched(),gi(this.elementRef))}registerOnChange(Q){this.onChange=Q}registerOnTouched(Q){this.onTouched=Q}setDisabledState(Q){this.elementRef.nativeElement.disabled=Q}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let Q;try{Q=this.injector.get(Ce.vO)}catch{}if(!Q)return;Q.statusChanges&&(this.statusChanges=Q.statusChanges.subscribe(()=>gi(this.elementRef)));const Se=Q.control;Se&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Wt=>{if(typeof Se[Wt]<"u"){const cn=Se[Wt].bind(Se);Se[Wt]=(...Pn)=>{cn(...Pn),gi(this.elementRef)}}})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.zZn),ge.rXU(ge.aKT))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("ionBlur",function(Wt){return Se._handleBlurEvent(Wt.target)})}})),Z})();const gi=Y=>{Hi(()=>{const Z=Y.nativeElement,Ne=null!=Z.value&&Z.value.toString().length>0,Q=St(Z);lt(Z,Q);const Se=Z.closest("ion-item");Se&<(Se,Ne?[...Q,"item-has-value"]:Q)})},St=Y=>{const Z=Y.classList,Ne=[];for(let Q=0;Q{const Ne=Y.classList;Ne.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Ne.add(...Z)},Ut=(Y,Z)=>Y.substring(0,Z.length)===Z;class fn{shouldDetach(Z){return!1}shouldAttach(Z){return!1}store(Z,Ne){}retrieve(Z){return null}shouldReuseRoute(Z,Ne){if(Z.routeConfig!==Ne.routeConfig)return!1;const Q=Z.params,Se=Ne.params,it=Object.keys(Q),Wt=Object.keys(Se);if(it.length!==Wt.length)return!1;for(const cn of it)if(Se[cn]!==Q[cn])return!1;return!0}}class Kn{constructor(Z){(0,d.A)(this,"ctrl",void 0),this.ctrl=Z}create(Z){return this.ctrl.create(Z||{})}dismiss(Z,Ne,Q){return this.ctrl.dismiss(Z,Ne,Q)}getTop(){return this.ctrl.getTop()}}},7863:(En,bt,B)=>{"use strict";B.d(bt,{hG:()=>Bi,U1:()=>bn,Jm:()=>Yn,b_:()=>yt,I9:()=>Ot,ME:()=>Xt,tN:()=>Ir,hU:()=>Jt,W9:()=>Gt,lO:()=>ni,eU:()=>Zn,iq:()=>wn,$w:()=>Mi,uz:()=>Yr,Dg:()=>oe,he:()=>he,nf:()=>Pe,oS:()=>dn,MC:()=>Sn,cA:()=>Wn,To:()=>or,Ki:()=>Hi,Rg:()=>xr,ln:()=>lt,HP:()=>Se,BC:()=>Hn,ai:()=>Pi,bv:()=>Ni,Xi:()=>sr,_t:()=>Or,N7:()=>Si,oY:()=>ti,Gw:()=>W});var g=B(9842),d=B(4438),ge=B(4341),Oe=B(3656),X=B(1635),Ee=B(3726),re=B(177),Ze=B(845),Le=(B(9986),B(2725),B(8454),B(3314),B(8607),B(3664)),Qe=B(464),ft=B(5465),ut=B(6002),Mt=(B(8476),B(9672));B(1970),B(6411);var Ke=B(467);const Ct=Le.i,xt=function(){var S=(0,Ke.A)(function*(H,ue){if(!(typeof window>"u"))return yield Ct(),(0,Mt.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]}]]]]'),ue)});return function(ue,M){return S.apply(this,arguments)}}(),ze=["*"],Tt=["outletContent"];let W=(()=>{var S;class H extends Oe.fL{constructor(M,fe){super(M,fe)}_handleInputEvent(M){this.handleValueChange(M,M.value)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.rXU(d.zZn),d.rXU(d.aKT))}),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(M,fe){1&M&&d.bIt("ionInput",function(ar){return fe._handleInputEvent(ar.target)})},features:[d.Jv_([{provide:ge.kq,useExisting:S,multi:!0}]),d.Vt3]})),H})();const te=(S,H)=>{const ue=S.prototype;H.forEach(M=>{Object.defineProperty(ue,M,{get(){return this.el[M]},set(fe){this.z.runOutsideAngular(()=>this.el[M]=fe)},configurable:!0})})},de=(S,H)=>{const ue=S.prototype;H.forEach(M=>{ue[M]=function(){const fe=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,fe))}})},ae=(S,H,ue)=>{ue.forEach(M=>S[M]=(0,Ee.R)(H,M))};function Ce(S){return function(ue){const{defineCustomElementFn:M,inputs:fe,methods:qe}=S;return void 0!==M&&M(),fe&&te(ue,fe),qe&&de(ue,qe),ue}}let bn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Yn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),yt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),Ot=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["mode"]})],H),H})(),Xt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","translucent"]})],H),H})(),Ir=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),Jt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({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"]})],H),H})(),Gt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),ni=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["fixed"]})],H),H})(),Zn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["collapse","mode","translucent"]})],H),H})(),wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),Mi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({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"]})],H),H})(),Yr=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),oe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","sticky"]})],H),H})(),he=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","position"]})],H),H})(),Pe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),dn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),Sn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","menu"]})],H),H})(),or=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],H),H})(),Hi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],H),H})(),lt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Se=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","when"]})],H),H})(),Hn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","size"]})],H),H})(),Pi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),xr=(()=>{var S;class H extends Oe.Rg{constructor(M,fe,qe,ar,ui,U,ne,Ae){super(M,fe,qe,ar,ui,U,ne,Ae),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=Ae}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.kS0("name"),d.kS0("tabs"),d.rXU(re.aZ),d.rXU(d.aKT),d.rXU(Ze.Ix),d.rXU(d.SKi),d.rXU(Ze.nX),d.rXU(S,12))}),(0,g.A)(H,"\u0275cmp",d.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(M,fe){if(1&M&&d.GBs(Tt,7,d.c1b),2&M){let qe;d.mGM(qe=d.lsd())&&(fe.outletContent=qe.first)}},features:[d.Vt3],ngContentSelectors:ze,decls:3,vars:0,consts:[["outletContent",""]],template:function(M,fe){1&M&&(d.NAR(),d.qex(0,null,0),d.SdG(2),d.bVm())},encapsulation:2})),H})(),Si=(()=>{var S;class H extends Oe.CE{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[d.Vt3]})),H})(),ti=(()=>{var S;class H extends Oe.pF{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[d.Vt3]})),H})();const Nn={provide:ge.cz,useExisting:(0,d.Rfq)(()=>kn),multi:!0};let kn=(()=>{var S;class H extends ge.zX{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.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(M,fe){2&M&&d.BMQ("max",fe._enabled?fe.max:null)},features:[d.Jv_([Nn]),d.Vt3]})),H})();const ko={provide:ge.cz,useExisting:(0,d.Rfq)(()=>ei),multi:!0};let ei=(()=>{var S;class H extends ge.VZ{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.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(M,fe){2&M&&d.BMQ("min",fe._enabled?fe.min:null)},features:[d.Jv_([ko]),d.Vt3]})),H})(),Bi=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.a)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),sr=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.l)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),Or=(()=>{var S;class H extends Oe._t{constructor(){super(ft.m)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),ai=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.m),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(M){return super.create({...M,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac})),H})();class Fo extends Oe.Kb{constructor(){super(ut.c),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Co=(S,H,ue)=>()=>{const M=H.defaultView;if(M&&typeof window<"u"){(0,Qe.s)({...S,_zoneGate:qe=>ue.run(qe)});const fe="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function je(){var S=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&S.push(B.e(7278).then(B.t.bind(B,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var M=new URL("b","http://a");return M.pathname="c%20d","http://a/c%20d"===M.href&&M.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(B.e(9329).then(B.t.bind(B,7783,23)))}return Promise.all(S)}().then(()=>xt(M,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:qe=>ue.runOutsideAngular(qe),ael(qe,ar,ui,U){qe[fe](ar,ui,U)},rel(qe,ar,ui,U){qe.removeEventListener(ar,ui,U)}}))}};let Ni=(()=>{var S;class H{static forRoot(M={}){return{ngModule:H,providers:[{provide:Oe.sR,useValue:M},{provide:d.hnV,useFactory:Co,multi:!0,deps:[Oe.sR,re.qQ,d.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275mod",d.$C({type:S})),(0,g.A)(H,"\u0275inj",d.G2t({providers:[ai,Fo],imports:[re.MD]})),H})()},2214:(En,bt,B)=>{"use strict";B.d(bt,{Dk:()=>g.Dk,KO:()=>g.KO,Sx:()=>g.Sx,Wp:()=>g.Wp});var g=B(7852);(0,g.KO)("firebase","10.12.2","app")},467:(En,bt,B)=>{"use strict";function g(ge,Oe,X,Ee,re,Ze,Je){try{var De=ge[Ze](Je),_e=De.value}catch(Fe){return void X(Fe)}De.done?Oe(_e):Promise.resolve(_e).then(Ee,re)}function d(ge){return function(){var Oe=this,X=arguments;return new Promise(function(Ee,re){var Ze=ge.apply(Oe,X);function Je(_e){g(Ze,Ee,re,Je,De,"next",_e)}function De(_e){g(Ze,Ee,re,Je,De,"throw",_e)}Je(void 0)})}}B.d(bt,{A:()=>d})},9842:(En,bt,B)=>{"use strict";function g(X){return(g="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})(X)}function Oe(X,Ee,re){return(Ee=function ge(X){var Ee=function d(X,Ee){if("object"!=g(X)||!X)return X;var re=X[Symbol.toPrimitive];if(void 0!==re){var Ze=re.call(X,Ee||"default");if("object"!=g(Ze))return Ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ee?String:Number)(X)}(X,"string");return"symbol"==g(Ee)?Ee:String(Ee)}(Ee))in X?Object.defineProperty(X,Ee,{value:re,enumerable:!0,configurable:!0,writable:!0}):X[Ee]=re,X}B.d(bt,{A:()=>Oe})},1635:(En,bt,B)=>{"use strict";function Oe(j,W){var te={};for(var de in j)Object.prototype.hasOwnProperty.call(j,de)&&W.indexOf(de)<0&&(te[de]=j[de]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(de=Object.getOwnPropertySymbols(j);ae=0;at--)(Ce=j[at])&&(me=(ae<3?Ce(me):ae>3?Ce(W,te,me):Ce(W,te))||me);return ae>3&&me&&Object.defineProperty(W,te,me),me}function Fe(j,W,te,de){return new(te||(te=Promise))(function(me,Ce){function at(vn){try{Bt(de.next(vn))}catch(bn){Ce(bn)}}function kt(vn){try{Bt(de.throw(vn))}catch(bn){Ce(bn)}}function Bt(vn){vn.done?me(vn.value):function ae(me){return me instanceof te?me:new te(function(Ce){Ce(me)})}(vn.value).then(at,kt)}Bt((de=de.apply(j,W||[])).next())})}function vt(j){return this instanceof vt?(this.v=j,this):new vt(j)}function Me(j,W,te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,de=te.apply(j,W||[]),me=[];return ae={},Ce("next"),Ce("throw"),Ce("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function Ce($n){de[$n]&&(ae[$n]=function(qn){return new Promise(function(er,yn){me.push([$n,qn,er,yn])>1||at($n,qn)})})}function at($n,qn){try{!function kt($n){$n.value instanceof vt?Promise.resolve($n.value.v).then(Bt,vn):bn(me[0][2],$n)}(de[$n](qn))}catch(er){bn(me[0][3],er)}}function Bt($n){at("next",$n)}function vn($n){at("throw",$n)}function bn($n,qn){$n(qn),me.shift(),me.length&&at(me[0][0],me[0][1])}}function Ke(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te,W=j[Symbol.asyncIterator];return W?W.call(j):(j=function ft(j){var W="function"==typeof Symbol&&Symbol.iterator,te=W&&j[W],de=0;if(te)return te.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&de>=j.length&&(j=void 0),{value:j&&j[de++],done:!j}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),te={},de("next"),de("throw"),de("return"),te[Symbol.asyncIterator]=function(){return this},te);function de(me){te[me]=j[me]&&function(Ce){return new Promise(function(at,kt){!function ae(me,Ce,at,kt){Promise.resolve(kt).then(function(Bt){me({value:Bt,done:at})},Ce)}(at,kt,(Ce=j[me](Ce)).done,Ce.value)})}}}B.d(bt,{AQ:()=>Me,Cg:()=>X,N3:()=>vt,Tt:()=>Oe,sH:()=>Fe,xN:()=>Ke}),"function"==typeof SuppressedError&&SuppressedError}},En=>{En(En.s=63)}]); \ No newline at end of file diff --git a/www/runtime.c33909fc803789db.js b/www/runtime.f7a801804f1cf5b0.js similarity index 63% rename from www/runtime.c33909fc803789db.js rename to www/runtime.f7a801804f1cf5b0.js index e00aca2..d2bb0dc 100644 --- a/www/runtime.c33909fc803789db.js +++ b/www/runtime.f7a801804f1cf5b0.js @@ -1 +1 @@ -(()=>{"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](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)+"."+{441:"c8d135e5d56e5723",839:"fb5de61ae51a2154",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",2075:"1971ba880d06cc30",2076:"89df7778967c83d8",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3118:"d242359f14a20980",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"7bb8c0ace22f6baa",3998:"5ecf1aece7636b7e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6688:"a7b3b7014e68a27e",6840:"fd32dada9c8ec44e",6927:"753a85103d27e3ce",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"3798b1cd13edb71d",7720:"78509b154c08b472",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9329:"c76198334f717402",9344:"2d668603b6130b28",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(s);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.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,u)=>c=e[d]=[o,u]);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 u=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;n.message="Loading chunk "+d+" failed.\n("+u+": "+s+")",n.name="ChunkLoadError",n.type=u,n.request=s,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(s=>0!==e[s])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var u=l(f)}for(d&&d(b);o{"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](a,a.exports,f),a.exports}f.m=v,e=[],f.O=(r,a,c,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,c,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,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var d={};r=r||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~r.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,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)+"."+{441:"c8d135e5d56e5723",839:"fb5de61ae51a2154",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",2075:"1971ba880d06cc30",2076:"12c32b694becf860",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3118:"d242359f14a20980",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"7bb8c0ace22f6baa",3998:"5ecf1aece7636b7e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6688:"a7b3b7014e68a27e",6840:"fd32dada9c8ec44e",6927:"965bbdc204b64792",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"3798b1cd13edb71d",7720:"78509b154c08b472",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9329:"c76198334f717402",9344:"2d668603b6130b28",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";f.l=(a,c,b,d)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.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=(c,b)=>{var d=f.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(9121!=c){var t=new Promise((o,u)=>d=e[c]=[o,u]);b.push(d[2]=t);var l=f.p+f.u(c),n=new Error;f.l(l,o=>{if(f.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var u=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+u+": "+s+")",n.name="ChunkLoadError",n.type=u,n.request=s,d[1](n)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var r=(c,b)=>{var n,i,[d,t,l]=b,o=0;if(d.some(s=>0!==e[s])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var u=l(f)}for(c&&c(b);o