1(self.webpackChunkemirates_visa=self.webpackChunkemirates_visa||[]).push([[179],{3323:(ln,et,C)=>{"use strict";C.d(et,{w:()=>m});var c=C(4650);let m=(()=>{class V{constructor(pe,me){this.element=pe,this._renderer=me}toggleOpen(){const pe=this._renderer.nextSibling(this.element.nativeElement);pe.classList.contains(this.classNameToToggle)?this._renderer.removeClass(pe,this.classNameToToggle):this._renderer.addClass(pe,this.classNameToToggle)}static#e=this.\u0275fac=function(me){return new(me||V)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.Renderer2))};static#t=this.\u0275dir=c.\u0275\u0275defineDirective({type:V,selectors:[["","appDropdown",""]],hostBindings:function(me,Oe){1&me&&c.\u0275\u0275listener("click",function(){return Oe.toggleOpen()})},inputs:{classNameToToggle:"classNameToToggle"}})}return V})()},3765:(ln,et,C)=>{"use strict";C.d(et,{I:()=>_e});var c=C(4766),m=C(7579),V=C(4650);let _e=(()=>{class pe{constructor(){this.applicationStorage=[],this.editApplicant=new m.x,this.applicantsCounter=["Main Applicant","Applicant 2","Applicant 3","Applicant 4","Applicant 5","Applicant 6","Applicant 7","Applicant 8","Applicant 9"]}getApplicantID(){return this.applicantID}setApplicantID(Oe){this.applicantID=Oe}getApplicationStorage(){return this.applicationStorage}resetApplicationStorage(){this.applicationStorage=[],c.N.production||console.log(this.getApplicationStorage())}addApplicant(Oe){this.applicationStorage.push(Oe)}updateApplicant(Oe,ie){this.applicationStorage[Oe]=ie}deleteApplicant(Oe){this.applicationStorage.splice(Oe,1)}updateTravelDateOfAllApplicants(Oe){for(var ie=0;ie<this.applicationStorage.length;ie++)this.applicationStorage[ie].travelDate=Oe}updateTravelPurposeOfAllApplicants(Oe){for(var ie=0;ie<this.applicationStorage.length;ie++)this.applicationStorage[ie].travelPurpose=Oe}static#e=this.\u0275fac=function(ie){return new(ie||pe)};static#t=this.\u0275prov=V.\u0275\u0275defineInjectable({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})()},9426:(ln,et,C)=>{"use strict";C.d(et,{g:()=>V});var c=C(7579),m=C(4650);let V=(()=>{class _e{constructor(){this.scrollToTop=new c.x,this.startVisaApplication=new c.x,this.applyModuleLoaded=new c.x,this.addNewApplicant=new c.x,this.cancelAdditionalApplicant=new c.x,this.startCheckout=new c.x,this.unloadedModule=new c.x,this.closeActionModal=new c.x,this.onCancel3dSecureModal=new c.x,this.close3dSecureModal=new c.x,this.blobUrlAvailability=new c.x,this.nationalityStorage={name:"",code:""}}setDynamicCountryCode(me){this.dynamicCountryCode=me}getDynamicCountryCode(){return this.dynamicCountryCode}setCountry(me){this.countryNameStorage=me}getCountry(){return this.countryNameStorage}resetCountry(){this.countryNameStorage=""}setNationality(me){this.nationalityStorage=me}getNationality(){return this.nationalityStorage}resetNationality(){this.nationalityStorage.code="",this.nationalityStorage.name=""}toTitleCase(me){return me.toLowerCase().split(" ").map(Oe=>Oe.charAt(0).toUpperCase()+Oe.slice(1)).join(" ")}static#e=this.\u0275fac=function(Oe){return new(Oe||_e)};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})()},6221:(ln,et,C)=>{"use strict";C.d(et,{e:()=>Oe});var c=C(3765),m=C(4766),V=C(7579),_e=C(4650),pe=C(1041),me=C(2011);let Oe=(()=>{class ie{constructor(q,de,be){this._afAuth=q,this._firebase=de,this._applicationService=be,this.userID=null,this.allowedToViewConfirmationPage=!1,this.logoutUnsubscribe$=new V.x}loginAnonymously(){return this._afAuth.signInAnonymously()}isAllowedToLoadConfirmationPage(){return this.allowedToViewConfirmationPage}setUserId(q){this.userID=q}getUserId(){return this.userID}getCurrentUser(){return this._firebase.auth().currentUser}logout(){const q=this._firebase.auth().currentUser;this._afAuth.signOut().then(()=>{q.delete().then(()=>{m.N.production||console.log("User Deleted")}).catch(()=>{m.N.production||console.log("Unable to delete User")})}).catch(),this._applicationService.resetApplicationStorage()}genereateUserId(q){let de="";const be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",lt=be.length;for(let it=0;
1it<q;it++)de+=be.charAt(Math.floor(Math.random()*lt));this.setUserId(de)}static#e=this.\u0275fac=function(de){return new(de||ie)(_e.\u0275\u0275inject(pe.zQ),_e.\u0275\u0275inject(me.Ot),_e.\u0275\u0275inject(c.I))};static#t=this.\u0275prov=_e.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},8466:(ln,et,C)=>{"use strict";C.d(et,{T:()=>m});var c=C(4650);let m=(()=>{class V{constructor(){this.languages=[{code:"en",name:"English"},{code:"ar",name:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"}],this.languageStorage=this.languages[0]}getLanguages(){return this.languages}setLanguageStorage(pe){this.languageStorage=pe}getLanguageStorage(){return this.languageStorage}static#e=this.\u0275fac=function(me){return new(me||V)};static#t=this.\u0275prov=c.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})()},8028:(ln,et,C)=>{"use strict";C.d(et,{M:()=>Oe});var c=C(4766),m=C(7579),V=C(4004),_e=C(4650),pe=C(3453),me=C(1085);let Oe=(()=>{class ie{constructor(q,de){this.route=q,this._afs=de,this.allProductsStorage=[],this.popularProductsStorage=[],this.productTypeStorage="popular",this.extraServices={airportPickup:!1,expressService:!1,covidInsurance:!1,emergencyService:!1},this.isAllowedToLoadFreeVisa=!1,this.productChanged=new m.x,this.popularProducts=new m.x,this.popularProductsCollection=this._afs.collection("popular-products",be=>be.orderBy("cost","asc")),this.productsCollection=this._afs.collection("products")}getProduct(q){return this.productsCollection.doc(q).valueChanges()}setProductTypeStorage(q){this.productTypeStorage=q}getProductTypeStorage(){return this.productTypeStorage}setSingleProductStorage(q){this.singleProductStorage=q}getSingleProductStorage(){return this.singleProductStorage}setAllPopularProductsStorage(q){this.popularProductsStorage=q}getAllPopularProductsStorage(){return this.popularProductsStorage}resetAllPopularProductsStorage(){this.popularProductsStorage=[]}addSingleProduct(q){this.allProductsStorage.push(q)}getAllProductsStorage(){return this.allProductsStorage}resetAllProductsStorage(){this.allProductsStorage=[],c.N.production||console.log(`All Products Storage array: ${this.allProductsStorage}`)}getProductsForNationality(q){const de=this.route.snapshot.queryParams.isOnTest;return c.N.production||(console.log("isOnTest>>>>>>>>>> ",de),console.log("countryCode>>>>>>>>>> ",q)),this._afs.collection("countries").doc(q).collection("products").get().pipe((0,V.U)(be=>{be.forEach(it=>{this.productsCollection.doc(it.id).get().subscribe(dt=>{const wt=dt.data();void 0!==de&&"true"===de?null!=wt.isOnTest&&1==wt.isOnTest&&wt.lang.en.enabled&&this.addSingleProduct(wt):void 0===wt.isOnTest&&wt.lang.en.enabled&&this.addSingleProduct(wt)})});const lt=this.getAllProductsStorage();return setTimeout(()=>{lt.sort((it,dt)=>it.cost>dt.cost?1:-1)},1e3),lt}))}getPopularProducts(){return this.popularProductsCollection.get().pipe((0,V.U)(q=>q.docs.map(de=>({...de.data()}))))}getFreeProduct(){return this._afs.collection("products").doc("free-visa").get()}setNewCostForIncreasedCostCountry(q){this.singleProductStorage.cost=q}addArray(){this._afs.collection("popular-products").doc("transit-visa").update({countriesForIncreasedCost:[{code:"PK",name:"Pakistan",cost:235},{code:"SD",name:"Sudan",cost:235},{code:"NG",name:"Nigeria",cost:235},{code:"CM",name:"Cameroon",cost:235},{code:"UG",name:"Uganda",cost:235},{code:"PS",name:"Palestine State",cost:235},{code:"BD",name:"Bangladesh",cost:235},{code:"AF",name:"Afghanistan",cost:235}]}).then(q=>{console.log("Successfully added array")}).catch(q=>{console.log("Error in adding array:",q)})}static#e=this.\u0275fac=function(de){return new(de||ie)(_e.\u0275\u0275inject(pe.gz),_e.\u0275\u0275inject(me.ST))};static#t=this.\u0275prov=_e.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},281:(ln,et,C)=>{"use strict";C.d(et,{k:()=>V});var c=C(6895),m=C(4650);let V=(()=>{class _e{static#e=this.\u0275fac=function(Oe){return new(Oe||_e)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:_e});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[c.ez]})}return _e})()},4766:(ln,et,C)=>{"use strict";C.d(et,{N:()=>c});const c={production:!0,allowedFileSise:4e6,specialNationalityCost:100,firebaseConfig:{apiKey:"AIzaSyBHUou2rrAjm1uAdnYyNw4RNkBCb1-XCv8",authDomain:"emiratesvisa-78889.firebaseapp.com",databaseURL:"https://emiratesvisa-78889.firebaseio.com",projectId:"emiratesvisa-78889",storageBucket:"emiratesvisa-78889.appspot.com",messagingSenderId:"660678091153",appId:"1:660678091153:web:ed3c8e998e9c05c62efa30"},defaultCurrency:{code:"USD",conversionRate:1}
1,ipFixerApiKey:"848381565b1fab333caa8ac840a957fb",geoApiKey:"c7344b98a0dad83e6afd906df017cf7e1c217bb92468bf2b1061ef6a",maxAllowedApplicants:9,extraServices:{expressService:100,airportPickup:200,covidInsurance:95,emerygencyService:200},firestoreConfig:{faqsCollectionRef:"faqs",ordersCollectionRef:"orders",productsCollectionRef:"products",couponsCollectionRef:"coupons",countriesCollectionref:"countries",networkCollectionRef:"network",leadsCollectionRef:"leads",declinedOrders:"declined-orders",blogsList:"blogs-list",blogs:"blogs",network3Ds:"network-3ds",paymentsCollectionRef:"payments",emailsCollectionRef:"emails",incompleteOrders:"incomplete-orders",emailTemplates:"email-templates"},firestorageRef:"visafiles",fnNetworkPaymentURL:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnNetworkPayment",fnNetworkPaymentVerifyURL:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnNetworkPaymentVerify",fnDPOPaymentURL:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnDPOPayment",fnDPOPaymentVerifyURL:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnDPOPaymentVerify",fnSendPaymentFailedEmailURL:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnSendPaymentFailedEmail",fnSendPaymentSuccessEmailURL:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnSendPaymentSuccessEmail",fnSendCustomEmail:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/fnSendCustomEmail",fnCCPayment:"https://us-central1-emiratesvisa-78889.cloudfunctions.net/ccpayment-prod",emailTypes:{paid:"paid",unpaid:"unpaid",pendingPayment:"pending payment",generateInvoice:"generate invoice",manualOrderInvoice:"manual order invoice",userCreated:"user created",passwordReset:"password reset"}}},5196:(ln,et,C)=>{"use strict";var c=C(1481),m=C(4650),V=C(5861);const _e=new m.InjectionToken("LAZY_MODAL");let pe=(()=>{class B{constructor(b,N,re){this.injector=b,this.compiler=N,this.lazyWidgets=re}load(b,N){var re=this;return(0,V.Z)(function*(){const Ee=yield re.lazyWidgets[b]();let Ze;Ze=Ee instanceof m.NgModuleFactory?Ee:yield re.compiler.compileModuleAsync(Ee);const ot=Ze.moduleType.entry,Zt=Ze.create(re.injector).componentFactoryResolver.resolveComponentFactory(ot);N.createComponent(Zt)})()}static#e=this.\u0275fac=function(N){return new(N||B)(m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(m.Compiler),m.\u0275\u0275inject(_e))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac})}return B})();const me_firebaseConfig={apiKey:"AIzaSyBHUou2rrAjm1uAdnYyNw4RNkBCb1-XCv8",authDomain:"emiratesvisa-78889.firebaseapp.com",databaseURL:"https://emiratesvisa-78889.firebaseio.com",projectId:"emiratesvisa-78889",storageBucket:"emiratesvisa-78889.appspot.com",messagingSenderId:"660678091153",appId:"1:660678091153:web:ed3c8e998e9c05c62efa30"};var Oe=C(529),ie=C(7340);function q(B){return new m.\u0275RuntimeError(3e3,!1)}function qn(){return typeof window<"u"&&typeof window.document<"u"}function nn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function hn(B){switch(B.length){case 0:return new ie.ZN;case 1:return B[0];default:return new ie.ZE(B)}}function rn(B,_,b,N,re=new Map,Ee=new Map){const Ze=[],ot=[];let Pt=-1,Zt=null;if(N.forEach(Fn=>{const Qn=Fn.get("offset"),Ar=Qn==Pt,Or=Ar&&Zt||new Map;Fn.forEach((hr,Mr)=>{let w=Mr,D=hr;if("offset"!==Mr)switch(w=_.normalizePropertyName(w,Ze),D){case ie.k1:D=re.get(Mr);break;case ie.l3:D=Ee.get(Mr);break;default:D=_.normalizeStyleValue(Mr,w,D,Ze)}Or.set(w,D)}),Ar||ot.push(Or),Zt=Or,Pt=Qn}),Ze.length)throw function St(B){return new m.\u0275RuntimeError(3502,!1)}();return ot}function _n(B,_,b,N){switch(_){case"start":B.onStart(()=>N(b&&xn(b,"start",B)));break;case"done":B.onDone(()=>N(b&&xn(b,"done",B)));break;case"destroy":B.onDestroy(()=>N(b&&xn(b,"destroy",B)))}}function xn(B,_,b){const Ee=Mt(B.element,B.triggerName,B.fromState,B.toState,_||B.phaseName,b.totalTime??B.totalTime,!!b.disabled),Ze=B._data;return null!=Ze&&(Ee._data=Ze),Ee}function Mt(B,_,b,N,re="",Ee=0,Ze){return{element:B,triggerName:_,fromState:b,toState:N,phaseName:re,totalTime:Ee,disabled:!!Ze}}function Nt(B,_,b){let N=B.get(_);return N||B.set(_,N=b),N}function se(B){const _=B.indexOf(":");return[B.substring(1,_),B.slice(_+1)]}let K=(B,_)=>!1,Te=(B,_,b)=>[],Be=null;function It(B){const _=B.parentNode||B.host;return _===Be?null:_}(nn()||typeof Element<"u")&&(qn()?(Be=(()=>document.documentElement)(),K=(B,_)=>{for(;_;){if(_===B)return!0;_=It(_)}return!1}):K=(B,_)=>B.contains(_),Te=(B,_,b)=>{if(b)return Array.from(B.querySelectorAll(_));const N=B.querySelector(_);return N?[N]:[]});let dn=null,sn=!1;const Dr=K,vr=Te;let bt=(()=>{class B{validateStyleProperty(b){return function Xt(B){dn||(dn=function bn(){return typeof document<"u"?document.body:null}()||{},sn=!!dn.style&&"WebkitAppearance"in dn.style);let _=!0;return dn.style&&!function qt(B){return"ebkit"==B.substring(1,6)}(B)&&(_=B in dn.style,!_&&sn&&(_="Webkit"+B.charAt(0).toUpperCase()+B.slice(1)in dn.style)),_}(b)}matchesElement(b,N){return!1}containsElement(b,N){return Dr(b,N)}getParentElement(b){return It(b)}query(b,N,re){return vr(b,N,re)}computeStyle(b,N,re){return re||""}animate(b,N,re,Ee,Ze,ot=[],Pt){return new ie.ZN(re,Ee)}}return B.\u0275fac=function(b){return new(b||B)},B.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})(),en=(()=>{class B{}return B.NOOP=new bt,B})();const Se=1e3,Q="ng-enter",ue="ng-leave",fe="ng-trigger",X=".ng-trigger",ce="ng-animating",xe=".ng-animating";function Ft(B){if("number"==typeof B)return B;const _=B.match(/^(-?[\.\d]+)(m?s)/);return!_||_.length<2?0:Ut(parseFloat(_[1]),_[2])}function Ut(B,_){return"s"===_?B*Se:B}function ke(B,_,b){return B.hasOwnProperty("duration")?B:function Fe(B,_,b){let re,Ee=0,Ze="";if("string"==typeof B){const ot=B.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ot)return _.push(q()),{duration:0,delay:0,easing:""};re=Ut(parseFloat(ot[1]),ot[2]);const Pt=ot[3];null!=Pt&&(Ee=Ut(parseFloat(Pt),ot[4]));const Zt=ot[5];Zt&&(Ze=Zt)}else re=B;if(!b){let ot=!1,Pt=_.length;re<0&&(_.push(function de(){return new m.\u0275RuntimeError(3100,!1)}()),ot=!0),Ee<0&&(_.push(function be(){return new m.\u0275RuntimeError(3101,!1)}()),ot=!0),ot&&_.splice(Pt,0,q())}return{duration:re,delay:Ee,easing:Ze}}(B,_,b)}function Ge(B,_={}
1){return Object.keys(B).forEach(b=>{_[b]=B[b]}),_}function Et(B){const _=new Map;return Object.keys(B).forEach(b=>{_.set(b,B[b])}),_}function $e(B,_=new Map,b){if(b)for(let[N,re]of b)_.set(N,re);for(let[N,re]of B)_.set(N,re);return _}function oe(B,_,b){return b?_+":"+b+";":""}function j(B){let _="";for(let b=0;b<B.style.length;b++){const N=B.style.item(b);_+=oe(0,N,B.style.getPropertyValue(N))}for(const b in B.style)B.style.hasOwnProperty(b)&&!b.startsWith("_")&&(_+=oe(0,Kn(b),B.style[b]));B.setAttribute("style",_)}function $(B,_,b){B.style&&(_.forEach((N,re)=>{const Ee=pn(re);b&&!b.has(re)&&b.set(re,B.style[Ee]),B.style[Ee]=N}),nn()&&j(B))}function Ie(B,_){B.style&&(_.forEach((b,N)=>{const re=pn(N);B.style[re]=""}),nn()&&j(B))}function Qe(B){return Array.isArray(B)?1==B.length?B[0]:(0,ie.vP)(B):B}const Cn=new RegExp("{{\\s*(.+?)\\s*}}","g");function nr(B){let _=[];if("string"==typeof B){let b;for(;b=Cn.exec(B);)_.push(b[1]);Cn.lastIndex=0}return _}function Rr(B,_,b){const N=B.toString(),re=N.replace(Cn,(Ee,Ze)=>{let ot=_[Ze];return null==ot&&(b.push(function it(B){return new m.\u0275RuntimeError(3003,!1)}()),ot=""),ot.toString()});return re==N?B:re}function Rt(B){const _=[];let b=B.next();for(;!b.done;)_.push(b.value),b=B.next();return _}const xt=/-+([a-z0-9])/g;function pn(B){return B.replace(xt,(..._)=>_[1].toUpperCase())}function Kn(B){return B.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pn(B,_,b){switch(_.type){case 7:return B.visitTrigger(_,b);case 0:return B.visitState(_,b);case 1:return B.visitTransition(_,b);case 2:return B.visitSequence(_,b);case 3:return B.visitGroup(_,b);case 4:return B.visitAnimate(_,b);case 5:return B.visitKeyframes(_,b);case 6:return B.visitStyle(_,b);case 8:return B.visitReference(_,b);case 9:return B.visitAnimateChild(_,b);case 10:return B.visitAnimateRef(_,b);case 11:return B.visitQuery(_,b);case 12:return B.visitStagger(_,b);default:throw function dt(B){return new m.\u0275RuntimeError(3004,!1)}()}}function kr(B,_){return window.getComputedStyle(B)[_]}const Tn="*";function pr(B,_){const b=[];return"string"==typeof B?B.split(/\s*,\s*/).forEach(N=>function ci(B,_,b){if(":"==B[0]){const Pt=function qi(B,_){switch(B){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(b,N)=>parseFloat(N)>parseFloat(b);case":decrement":return(b,N)=>parseFloat(N)<parseFloat(b);default:return _.push(function vt(B){return new m.\u0275RuntimeError(3016,!1)}()),"* => *"}}(B,b);if("function"==typeof Pt)return void _.push(Pt);B=Pt}const N=B.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==N||N.length<4)return b.push(function je(B){return new m.\u0275RuntimeError(3015,!1)}()),_;const re=N[1],Ee=N[2],Ze=N[3];_.push(bi(re,Ze));"<"==Ee[0]&&!(re==Tn&&Ze==Tn)&&_.push(bi(Ze,re))}(N,b,_)):b.push(B),b}const Nr=new Set(["true","1"]),Zr=new Set(["false","0"]);function bi(B,_){const b=Nr.has(B)||Zr.has(B),N=Nr.has(_)||Zr.has(_);return(re,Ee)=>{let Ze=B==Tn||B==re,ot=_==Tn||_==Ee;return!Ze&&b&&"boolean"==typeof re&&(Ze=re?Nr.has(B):Zr.has(B)),!ot&&N&&"boolean"==typeof Ee&&(ot=Ee?Nr.has(_):Zr.has(_)),Ze&&ot}}const Ai=new RegExp("s*:selfs*,?","g");function Fi(B,_,b,N){return new ns(B).build(_,b,N)}class ns{constructor(_){this._driver=_}build(_,b,N){const re=new wi(b);return this._resetContextStyleTimingState(re),Pn(this,Qe(_),re)}_resetContextStyleTimingState(_){_.currentQuerySelector="",_.collectedStyles=new Map,_.collectedStyles.set("",new Map),_.currentTime=0}visitTrigger(_,b){let N=b.queryCount=0,re=b.depCount=0;const Ee=[],Ze=[];return"@"==_.name.charAt(0)&&b.errors.push(function Me(){return new m.\u0275RuntimeError(3006,!1)}()),_.definitions.forEach(ot=>{if(this._resetContextStyleTimingState(b),0==ot.type){const Pt=ot,Zt=Pt.name;Zt.toString().split(/\s*,\s*/).forEach(Fn=>{Pt.name=Fn,Ee.push(this.visitState(Pt,b))}),Pt.name=Zt}else if(1==ot.type){const Pt=this.visitTransition(ot,b);N+=Pt.queryCount,re+=Pt.depCount,Ze.push(Pt)}else b.errors.push(function Pe(){return new m.\u0275RuntimeError(3007,!1)}())}
vendor: 29,833 bytes, line 1
1),{type:7,name:_.name,states:Ee,transitions:Ze,queryCount:N,depCount:re,options:null}}visitState(_,b){const N=this.visitStyle(_.styles,b),re=_.options&&_.options.params||null;if(N.containsDynamicStyles){const Ee=new Set,Ze=re||{};N.styles.forEach(ot=>{ot instanceof Map&&ot.forEach(Pt=>{nr(Pt).forEach(Zt=>{Ze.hasOwnProperty(Zt)||Ee.add(Zt)})})}),Ee.size&&(Rt(Ee.values()),b.errors.push(function Ct(B,_){return new m.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:_.name,style:N,options:re?{params:re}:null}}visitTransition(_,b){b.queryCount=0,b.depCount=0;const N=Pn(this,Qe(_.animation),b);return{type:1,matchers:pr(_.expr,b.errors),animation:N,queryCount:b.queryCount,depCount:b.depCount,options:Bi(_.options)}}visitSequence(_,b){return{type:2,steps:_.steps.map(N=>Pn(this,N,b)),options:Bi(_.options)}}visitGroup(_,b){const N=b.currentTime;let re=0;const Ee=_.steps.map(Ze=>{b.currentTime=N;const ot=Pn(this,Ze,b);return re=Math.max(re,b.currentTime),ot});return b.currentTime=re,{type:3,steps:Ee,options:Bi(_.options)}}visitAnimate(_,b){const N=function io(B,_){if(B.hasOwnProperty("duration"))return B;if("number"==typeof B)return $i(ke(B,_).duration,0,"");const b=B;if(b.split(/\s+/).some(Ee=>"{"==Ee.charAt(0)&&"{"==Ee.charAt(1))){const Ee=$i(0,0,"");return Ee.dynamic=!0,Ee.strValue=b,Ee}const re=ke(b,_);return $i(re.duration,re.delay,re.easing)}(_.timings,b.errors);b.currentAnimateTimings=N;let re,Ee=_.styles?_.styles:(0,ie.oB)({});if(5==Ee.type)re=this.visitKeyframes(Ee,b);else{let Ze=_.styles,ot=!1;if(!Ze){ot=!0;const Zt={};N.easing&&(Zt.easing=N.easing),Ze=(0,ie.oB)(Zt)}b.currentTime+=N.duration+N.delay;const Pt=this.visitStyle(Ze,b);Pt.isEmptyStep=ot,re=Pt}return b.currentAnimateTimings=null,{type:4,timings:N,style:re,options:null}}visitStyle(_,b){const N=this._makeStyleAst(_,b);return this._validateStyleAst(N,b),N}_makeStyleAst(_,b){const N=[],re=Array.isArray(_.styles)?_.styles:[_.styles];for(let ot of re)"string"==typeof ot?ot===ie.l3?N.push(ot):b.errors.push(new m.\u0275RuntimeError(3002,!1)):N.push(Et(ot));let Ee=!1,Ze=null;return N.forEach(ot=>{if(ot instanceof Map&&(ot.has("easing")&&(Ze=ot.get("easing"),ot.delete("easing")),!Ee))for(let Pt of ot.values())if(Pt.toString().indexOf("{{")>=0){Ee=!0;break}}),{type:6,styles:N,easing:Ze,offset:_.offset,containsDynamicStyles:Ee,options:null}}_validateStyleAst(_,b){const N=b.currentAnimateTimings;let re=b.currentTime,Ee=b.currentTime;N&&Ee>0&&(Ee-=N.duration+N.delay),_.styles.forEach(Ze=>{"string"!=typeof Ze&&Ze.forEach((ot,Pt)=>{const Zt=b.collectedStyles.get(b.currentQuerySelector),Fn=Zt.get(Pt);let Qn=!0;Fn&&(Ee!=re&&Ee>=Fn.startTime&&re<=Fn.endTime&&(b.errors.push(function ve(B,_,b,N,re){return new m.\u0275RuntimeError(3010,!1)}()),Qn=!1),Ee=Fn.startTime),Qn&&Zt.set(Pt,{startTime:Ee,endTime:re}),b.options&&function kt(B,_,b){const N=_.params||{},re=nr(B);re.length&&re.forEach(Ee=>{N.hasOwnProperty(Ee)||b.push(function lt(B){return new m.\u0275RuntimeError(3001,!1)}())})}(ot,b.options,b.errors)})})}visitKeyframes(_,b){const N={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(function ze(){return new m.\u0275RuntimeError(3011,!1)}()),N;let Ee=0;const Ze=[];let ot=!1,Pt=!1,Zt=0;const Fn=_.steps.map(D=>{const y=this._makeStyleAst(D,b);let O=null!=y.offset?y.offset:function ni(B){if("string"==typeof B)return null;let _=null;if(Array.isArray(B))B.forEach(b=>{if(b instanceof Map&&b.has("offset")){const N=b;_=parseFloat(N.get("offset")),N.delete("offset")}});else if(B instanceof Map&&B.has("offset")){const b=B;_=parseFloat(b.get("offset")),b.delete("offset")}return _}(y.styles),z=0;return null!=O&&(Ee++,z=y.offset=O),Pt=Pt||z<0||z>1,ot=ot||z<Zt,Zt=z,Ze.push(z),y});Pt&&b.errors.push(function rt(){return new m.\u0275RuntimeError(3012,!1)}()),ot&&b.errors.push(function nt(){return new m.\u0275RuntimeError(3200,!1)}());const Qn=_.steps.length;let Ar=0;Ee>0&&Ee<Qn?b.errors.push(function At(){return new m.\u0275RuntimeError(3202,!1)}()):0==Ee&&(Ar=1/(Qn-1));const Or=Qn-1,hr=b.currentTime,Mr=b.currentAnimateTimings,w=Mr.duration;return Fn.forEach((D,y)=>{const O=Ar>0?y==Or?1:Ar*y:Ze[y],z=O*w;b.currentTime=hr+Mr.delay+z,Mr.duration=z,this._validateStyleAst(D,b),D.offset=O,N.styles.push(D)}),N}visitReference(_,b){return{type:8,animation:Pn(this,Qe(_.animation),b),options:Bi(_.options)}}visitAnimateChild(_,b){return b.depCount++,{type:9,options:Bi(_.options)}}visitAnimateRef(_,b){return{type:10,animation:this.visitReference(_.animation,b),options:Bi(_.options)}}visitQuery(_,b){const N=b.currentQuerySelector,re=_.options||{};b.queryCount++,b.currentQuery=_;const[Ee,Ze]=function ws(B){const _=!!B.split(/\s*,\s*/).find(b=>":self"==b);return _&&(B=B.replace(Ai,"")),B=B.replace(/@\*/g,X).replace(/@\w+/g,b=>X+"-"+b.slice(1)).replace(/:animating/g,xe),[B,_]}(_.selector);b.currentQuerySelector=N.length?N+" "+Ee:Ee,Nt(b.collectedStyles,b.currentQuerySelector,new Map);const ot=Pn(this,Qe(_.animation),b);return b.currentQuery=null,b.currentQuerySelector=N,{type:11,selector:Ee,limit:re.limit||0,optional:!!re.optional,includeSelf:Ze,animation:ot,originalSelector:_.selector,options:Bi(_.options)}}visitStagger(_,b){b.currentQuery||b.errors.push(function Ue(){return new m.\u0275RuntimeError(3013,!1)}());const N="full"===_.timings?{duration:0,delay:0,easing:"full"}:ke(_.timings,b.errors,!0);return{type:12,animation:Pn(this,Qe(_.animation),b),timings:N,options:null}}}class wi{constructor(_){this.errors=_,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Bi(B){return B?(B=Ge(B)).params&&(B.params=function ds(B){return B?Ge(B):null}(B.params)):B={},B}function $i(B,_,b){return{duration:B,delay:_,easing:b}}function Os(B,_,b,N,re,Ee,Ze=null,ot=!1){return{type:1,element:B,keyframes:_,preStyleProps:b,postStyleProps:N,duration:re,delay:Ee,totalTime:re+Ee,easing:Ze,subTimeline:ot}}class Xr{constructor(){this._map=new Map}get(_){return this._map.get(_)||[]}append(_,b){let N=this._map.get(_);N||this._map.set(_,N=[]),N.push(...b)}has(_){return this._map.has(_)}clear(){this._map.clear()}}const Cs=new RegExp(":enter","g"),ut=new RegExp(":leave","g");function Ot(B,_,b,N,re,Ee=new Map,Ze=new Map,ot,Pt,Zt=[]){return(new Jt).buildKeyframes(B,_,b,N,re,Ee,Ze,ot,Pt,Zt)}class Jt{buildKeyframes(_,b,N,re,Ee,Ze,ot,Pt,Zt,Fn=[]){Zt=Zt||new Xr;const Qn=new sr(_,b,Zt,re,Ee,Fn,[]);Qn.options=Pt;const Ar=Pt.delay?Ft(Pt.delay):0;Qn.currentTimeline.delayNextStep(Ar),Qn.currentTimeline.setStyles([Ze],null,Qn.errors,Pt),Pn(this,N,Qn);const Or=Qn.timelines.filter(hr=>hr.containsAnimation());if(Or.length&&ot.size){let hr;for(let Mr=Or.length-1;Mr>=0;Mr--){const w=Or[Mr];if(w.element===b){hr=w;break}}hr&&!hr.allowOnlyTimelineStyles()&&hr.setStyles([ot],null,Qn.errors,Pt)}return Or.length?Or.map(hr=>hr.buildKeyframes()):[Os(b,[],[],[],0,Ar,"",!1)]}visitTrigger(_,b){}visitState(_,b){}visitTransition(_,b){}visitAnimateChild(_,b){const N=b.subInstructions.get(b.element);if(N){const re=b.createSubContext(_.options),Ee=b.currentTimeline.currentTime,Ze=this._visitSubInstructions(N,re,re.options);Ee!=Ze&&b.transformIntoNewTimeline(Ze)}b.previousNode=_}visitAnimateRef(_,b){const N=b.createSubContext(_.options);N.transformIntoNewTimeline(),this._applyAnimationRefDelays([_.options,_.animation.options],b,N),this.visitReference(_.animation,N),b.transformIntoNewTimeline(N.currentTimeline.currentTime),b.previousNode=_}_applyAnimationRefDelays(_,b,N){for(const re of _){const Ee=re?.delay;if(Ee){const Ze="number"==typeof Ee?Ee:Ft(Rr(Ee,re?.params??{},b.errors));N.delayNextStep(Ze)}}}_visitSubInstructions(_,b,N){let Ee=b.currentTimeline.currentTime;const Ze=null!=N.duration?Ft(N.duration):null,ot=null!=N.delay?Ft(N.delay):null;return 0!==Ze&&_.forEach(Pt=>{const Zt=b.appendInstructionToTimeline(Pt,Ze,ot);Ee=Math.max(Ee,Zt.duration+Zt.delay)}),Ee}visitReference(_,b){b.updateOptions(_.options,!0),Pn(this,_.animation,b),b.previousNode=_}visitSequence(_,b){const N=b.subContextCount;let re=b;const Ee=_.options;if(Ee&&(Ee.params||Ee.delay)&&(re=b.createSubContext(Ee),re.transformIntoNewTimeline(),null!=Ee.delay)){6==re.previousNode.type&&(re.currentTimeline.snapshotCurrentStyles(),re.previousNode=mn);const Ze=Ft(Ee.delay);re.delayNextStep(Ze)}_.steps.length&&(_.steps.forEach(Ze=>Pn(this,Ze,re)),re.currentTimeline.applyStylesToKeyframe(),re.subContextCount>N&&re.transformIntoNewTimeline()),b.previousNode=_}visitGroup(_,b){const N=[];let re=b.currentTimeline.currentTime;const Ee=_.options&&_.options.delay?Ft(_.options.delay):0;_.steps.forEach(Ze=>{const ot=b.createSubContext(_.options);Ee&&ot.delayNextStep(Ee),Pn(this,Ze,ot),re=Math.max(re,ot.currentTimeline.currentTime),N.push(ot.currentTimeline)}),N.forEach(Ze=>b.currentTimeline.mergeTimelineCollectedStyles(Ze)),b.transformIntoNewTimeline(re),b.previousNode=_}_visitTiming(_,b){if(_.dynamic){const N=_.strValue;return ke(b.params?Rr(N,b.params,b.errors):N,b.errors)}return{duration:_.duration,delay:_.delay,easing:_.easing}}visitAnimate(_,b){const N=b.currentAnimateTimings=this._visitTiming(_.timings,b),re=b.currentTimeline;N.delay&&(b.incrementTime(N.delay),re.snapshotCurrentStyles());const Ee=_.style;5==Ee.type?this.visitKeyframes(Ee,b):(b.incrementTime(N.duration),this.visitStyle(Ee,b),re.applyStylesToKeyframe()),b.currentAnimateTimings=null,b.previousNode=_}visitStyle(_,b){const N=b.currentTimeline,re=b.currentAnimateTimings;!re&&N.hasCurrentStyleProperties()&&N.forwardFrame();const Ee=re&&re.easing||_.easing;_.isEmptyStep?N.applyEmptyStep(Ee):N.setStyles(_.styles,Ee,b.errors,b.options),b.previousNode=_}visitKeyframes(_,b){const N=b.currentAnimateTimings,re=b.currentTimeline.duration,Ee=N.duration,ot=b.createSubContext().currentTimeline;ot.easing=N.easing,_.styles.forEach(Pt=>{ot.forwardTime((Pt.offset||0)*Ee),ot.setStyles(Pt.styles,Pt.easing,b.errors,b.options),ot.applyStylesToKeyframe()}),b.currentTimeline.mergeTimelineCollectedStyles(ot),b.transformIntoNewTimeline(re+Ee),b.previousNode=_}visitQuery(_,b){const N=b.currentTimeline.currentTime,re=_.options||{},Ee=re.delay?Ft(re.delay):0;Ee&&(6===b.previousNode.type||0==N&&b.currentTimeline.hasCurrentStyleProperties())&&(b.currentTimeline.snapshotCurrentStyles(),b.previousNode=mn);let Ze=N;const ot=b.invokeQuery(_.selector,_.originalSelector,_.limit,_.includeSelf,!!re.optional,b.errors);b.currentQueryTotal=ot.length;let Pt=null;ot.forEach((Zt,Fn)=>{b.currentQueryIndex=Fn;const Qn=b.createSubContext(_.options,Zt);Ee&&Qn.delayNextStep(Ee),Zt===b.element&&(Pt=Qn.currentTimeline),Pn(this,_.animation,Qn),Qn.currentTimeline.applyStylesToKeyframe(),Ze=Math.max(Ze,Qn.currentTimeline.currentTime)}),b.currentQueryIndex=0,b.currentQueryTotal=0,b.transformIntoNewTimeline(Ze),Pt&&(b.currentTimeline.mergeTimelineCollectedStyles(Pt),b.currentTimeline.snapshotCurrentStyles()),b.previousNode=_}visitStagger(_,b){const N=b.parentContext,re=b.currentTimeline,Ee=_.timings,Ze=Math.abs(Ee.duration),ot=Ze*(b.currentQueryTotal-1);let Pt=Ze*b.currentQueryIndex;switch(Ee.duration<0?"reverse":Ee.easing){case"reverse":Pt=ot-Pt;break;case"full":Pt=N.currentStaggerTime}const Fn=b.currentTimeline;Pt&&Fn.delayNextStep(Pt);const Qn=Fn.currentTime;Pn(this,_.animation,b),b.previousNode=_,N.currentStaggerTime=re.currentTime-Qn+(re.startTime-N.currentTimeline.startTime)}}const mn={};class sr{constructor(_,b,N,re,Ee,Ze,ot,Pt){this._driver=_,this.element=b,this.subInstructions=N,this._enterClassName=re,this._leaveClassName=Ee,this.errors=Ze,this.timelines=ot,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Pt||new yr(this._driver,b,0),ot.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(_,b){if(!_)return;const N=_;let re=this.options;null!=N.duration&&(re.duration=Ft(N.duration)),null!=N.delay&&(re.delay=Ft(N.delay));const Ee=N.params;if(Ee){let Ze=re.params;Ze||(Ze=this.options.params={}),Object.keys(Ee).forEach(ot=>{(!b||!Ze.hasOwnProperty(ot))&&(Ze[ot]=Rr(Ee[ot],Ze,this.errors))})}}_copyOptions(){const _={};if(this.options){const b=this.options.params;if(b){const N=_.params={};Object.keys(b).forEach(re=>{N[re]=b[re]})}}return _}createSubContext(_=null,b,N){const re=b||this.element,Ee=new sr(this._driver,re,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(re,N||0));return Ee.previousNode=this.previousNode,Ee.currentAnimateTimings=this.currentAnimateTimings,Ee.options=this._copyOptions(),Ee.updateOptions(_),Ee.currentQueryIndex=this.currentQueryIndex,Ee.currentQueryTotal=this.currentQueryTotal,Ee.parentContext=this,this.subContextCount++,Ee}transformIntoNewTimeline(_){return this.previousNode=mn,this.currentTimeline=this.currentTimeline.fork(this.element,_),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(_,b,N){const re={duration:b??_.duration,delay:this.currentTimeline.currentTime+(N??0)+_.delay,easing:""},Ee=new Er(this._driver,_.element,_.keyframes,_.preStyleProps,_.postStyleProps,re,_.stretchStartingKeyframe);return this.timelines.push(Ee),re}incrementTime(_){this.currentTimeline.forwardTime(this.currentTimeline.duration+_)}delayNextStep(_){_>0&&this.currentTimeline.delayNextStep(_)}invokeQuery(_,b,N,re,Ee,Ze){let ot=[];if(re&&ot.push(this.element),_.length>0){_=(_=_.replace(Cs,"."+this._enterClassName)).replace(ut,"."+this._leaveClassName);let Zt=this._driver.query(this.element,_,1!=N);0!==N&&(Zt=N<0?Zt.slice(Zt.length+N,Zt.length):Zt.slice(0,N)),ot.push(...Zt)}return!Ee&&0==ot.length&&Ze.push(function Wt(B){return new m.\u0275RuntimeError(3014,!1)}()),ot}}class yr{constructor(_,b,N,re){this._driver=_,this.element=b,this.startTime=N,this._elementTimelineStylesLookup=re,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(b),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(b,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(_){const b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(this.forwardTime(this.currentTime+_),b&&this.snapshotCurrentStyles()):this.startTime+=_}fork(_,b){return this.applyStylesToKeyframe(),new yr(this._driver,_,b||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(_){this.applyStylesToKeyframe(),this.duration=_,this._loadKeyframe()}_updateStyle(_,b){this._localTimelineStyles.set(_,b),this._globalTimelineStyles.set(_,b),this._styleSummary.set(_,{time:this.currentTime,value:b})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(_){_&&this._previousKeyframe.set("easing",_);for(let[b,N]of this._globalTimelineStyles)this._backFill.set(b,N||ie.l3),this._currentKeyframe.set(b,ie.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(_,b,N,re){b&&this._previousKeyframe.set("easing",b);const Ee=re&&re.params||{},Ze=function Pi(B,_){const b=new Map;let N;return B.forEach(re=>{if("*"===re){N=N||_.keys();for(let Ee of N)b.set(Ee,ie.l3)}else $e(re,b)}),b}(_,this._globalTimelineStyles);for(let[ot,Pt]of Ze){const Zt=Rr(Pt,Ee,N);this._pendingStyles.set(ot,Zt),this._localTimelineStyles.has(ot)||this._backFill.set(ot,this._globalTimelineStyles.get(ot)??ie.l3),this._updateStyle(ot,Zt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((_,b)=>{this._currentKeyframe.set(b,_)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((_,b)=>{this._currentKeyframe.has(b)||this._currentKeyframe.set(b,_)}))}snapshotCurrentStyles(){for(let[_,b]of this._localTimelineStyles)this._pendingStyles.set(_,b),this._updateStyle(_,b)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const _=[];for(let b in this._currentKeyframe)_.push(b);return _}mergeTimelineCollectedStyles(_){_._styleSummary.forEach((b,N)=>{const re=this._styleSummary.get(N);(!re||b.time>re.time)&&this._updateStyle(N,b.value)})}buildKeyframes(){this.applyStylesToKeyframe();const _=new Set,b=new Set,N=1===this._keyframes.size&&0===this.duration;let re=[];this._keyframes.forEach((ot,Pt)=>{const Zt=$e(ot,new Map,this._backFill);Zt.forEach((Fn,Qn)=>{Fn===ie.k1?_.add(Qn):Fn===ie.l3&&b.add(Qn)}),N||Zt.set("offset",Pt/this.duration),re.push(Zt)});const Ee=_.size?Rt(_.values()):[],Ze=b.size?Rt(b.values()):[];if(N){const ot=re[0],Pt=new Map(ot);ot.set("offset",0),Pt.set("offset",1),re=[ot,Pt]}return Os(this.element,re,Ee,Ze,this.duration,this.startTime,this.easing,!1)}}class Er extends yr{constructor(_,b,N,re,Ee,Ze,ot=!1){super(_,b,Ze.delay),this.keyframes=N,this.preStyleProps=re,this.postStyleProps=Ee,this._stretchStartingKeyframe=ot,this.timings={duration:Ze.duration,delay:Ze.delay,easing:Ze.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let _=this.keyframes,{delay:b,duration:N,easing:re}=this.timings;if(this._stretchStartingKeyframe&&b){const Ee=[],Ze=N+b,ot=b/Ze,Pt=$e(_[0]);Pt.set("offset",0),Ee.push(Pt);const Zt=$e(_[0]);Zt.set("offset",Cr(ot)),Ee.push(Zt);const Fn=_.length-1;for(let Qn=1;Qn<=Fn;Qn++){let Ar=$e(_[Qn]);const Or=Ar.get("offset");Ar.set("offset",Cr((b+Or*N)/Ze)),Ee.push(Ar)}N=Ze,b=0,re="",_=Ee}return Os(this.element,_,this.preStyleProps,this.postStyleProps,N,b,re,!0)}}function Cr(B,_=3){const b=Math.pow(10,_-1);return Math.round(B*b)/b}class ri{}const Di=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Hs extends ri{normalizePropertyName(_,b){return pn(_)}normalizeStyleValue(_,b,N,re){let Ee="";const Ze=N.toString().trim();if(Di.has(b)&&0!==N&&"0"!==N)if("number"==typeof N)Ee="px";else{const ot=N.match(/^[+-]?[\d\.]+([a-z]*)$/);ot&&0==ot[1].length&&re.push(function wt(B,_){return new m.\u0275RuntimeError(3005,!1)}())}return Ze+Ee}}function _o(B,_,b,N,re,Ee,Ze,ot,Pt,Zt,Fn,Qn,Ar){return{type:0,element:B,triggerName:_,isRemovalTransition:re,fromState:b,fromStyles:Ee,toState:N,toStyles:Ze,timelines:ot,queriedElements:Pt,preStyleProps:Zt,postStyleProps:Fn,totalTime:Qn,errors:Ar}}const Qi={};class ko{constructor(_,b,N){this._triggerName=_,this.ast=b,this._stateStyles=N}match(_,b,N,re){return function qo(B,_,b,N,re){return B.some(Ee=>Ee(_,b,N,re))}(this.ast.matchers,_,b,N,re)}buildStyles(_,b,N){let re=this._stateStyles.get("*");return void 0!==_&&(re=this._stateStyles.get(_?.toString())||re),re?re.buildStyles(b,N):new Map}build(_,b,N,re,Ee,Ze,ot,Pt,Zt,Fn){const Qn=[],Ar=this.ast.options&&this.ast.options.params||Qi,hr=this.buildStyles(N,ot&&ot.params||Qi,Qn),Mr=Pt&&Pt.params||Qi,w=this.buildStyles(re,Mr,Qn),D=new Set,y=new Map,O=new Map,z="void"===re,he={params:oo(Mr,Ar),delay:this.ast.options?.delay},Ce=Fn?[]:Ot(_,b,this.ast.animation,Ee,Ze,hr,w,he,Zt,Qn);let _t=0;if(Ce.forEach(Ln=>{_t=Math.max(Ln.duration+Ln.delay,_t)}),Qn.length)return _o(b,this._triggerName,N,re,z,hr,w,[],[],y,O,_t,Qn);Ce.forEach(Ln=>{const Vn=Ln.element,Ur=Nt(y,Vn,new Set);Ln.preStyleProps.forEach(qs=>Ur.add(qs));const Zi=Nt(O,Vn,new Set);Ln.postStyleProps.forEach(qs=>Zi.add(qs)),Vn!==b&&D.add(Vn)});const tn=Rt(D.values());return _o(b,this._triggerName,N,re,z,hr,w,Ce,tn,y,O,_t)}}function oo(B,_){const b=Ge(_);for(const N in B)B.hasOwnProperty(N)&&null!=B[N]&&(b[N]=B[N]);return b}class Ia{constructor(_,b,N){this.styles=_,this.defaultParams=b,this.normalizer=N}buildStyles(_,b){const N=new Map,re=Ge(this.defaultParams);return Object.keys(_).forEach(Ee=>{const Ze=_[Ee];null!==Ze&&(re[Ee]=Ze)}),this.styles.styles.forEach(Ee=>{"string"!=typeof Ee&&Ee.forEach((Ze,ot)=>{Ze&&(Ze=Rr(Ze,re,b));const Pt=this.normalizer.normalizePropertyName(ot,b);Ze=this.normalizer.normalizeStyleValue(ot,Pt,Ze,b),N.set(ot,Ze)})}),N}}class gs{constructor(_,b,N){this.name=_,this.ast=b,this._normalizer=N,this.transitionFactories=[],this.states=new Map,b.states.forEach(re=>{this.states.set(re.name,new Ia(re.style,re.options&&re.options.params||{},N))}),ao(this.states,"true","1"),ao(this.states,"false","0"),b.transitions.forEach(re=>{this.transitionFactories.push(new ko(_,re,this.states))}),this.fallbackTransition=function La(B,_,b){return new ko(B,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ze,ot)=>!0],options:null,queryCount:0,depCount:0},_)}(_,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(_,b,N,re){return this.transitionFactories.find(Ze=>Ze.match(_,b,N,re))||null}matchStyles(_,b,N){return this.fallbackTransition.buildStyles(_,b,N)}}function ao(B,_,b){B.has(_)?B.has(b)||B.set(b,B.get(_)):B.has(b)&&B.set(_,B.get(b))}const rs=new Xr;class lo{constructor(_,b,N){this.bodyNode=_,this._driver=b,this._normalizer=N,this._animations=new Map,this._playersById=new Map,this.players=[]}register(_,b){const N=[],re=[],Ee=Fi(this._driver,b,N,re);if(N.length)throw function yn(B){return new m.\u0275RuntimeError(3503,!1)}();this._animations.set(_,Ee)}_buildPlayer(_,b,N){const re=_.element,Ee=rn(0,this._normalizer,0,_.keyframes,b,N);return this._driver.animate(re,Ee,_.duration,_.delay,_.easing,[],!0)}create(_,b,N={}){const re=[],Ee=this._animations.get(_);let Ze;const ot=new Map;if(Ee?(Ze=Ot(this._driver,b,Ee,Q,ue,new Map,new Map,N,rs,re),Ze.forEach(Fn=>{const Qn=Nt(ot,Fn.element,new Map);Fn.postStyleProps.forEach(Ar=>Qn.set(Ar,null))})):(re.push(function ae(){return new m.\u0275RuntimeError(3300,!1)}()),Ze=[]),re.length)throw function Ne(B){return new m.\u0275RuntimeError(3504,!1)}();ot.forEach((Fn,Qn)=>{Fn.forEach((Ar,Or)=>{Fn.set(Or,this._driver.computeStyle(Qn,Or,ie.l3))})});const Zt=hn(Ze.map(Fn=>{const Qn=ot.get(Fn.element);return this._buildPlayer(Fn,new Map,Qn)}));return this._playersById.set(_,Zt),Zt.onDestroy(()=>this.destroy(_)),this.players.push(Zt),Zt}destroy(_){const b=this._getPlayer(_);b.destroy(),this._playersById.delete(_);const N=this.players.indexOf(b);N>=0&&this.players.splice(N,1)}_getPlayer(_){const b=this._playersById.get(_);if(!b)throw function Xe(B){return new m.\u0275RuntimeError(3301,!1)}();return b}listen(_,b,N,re){const Ee=Mt(b,"","","");return _n(this._getPlayer(_),N,Ee,re),()=>{}}command(_,b,N,re){if("register"==N)return void this.register(_,re[0]);if("create"==N)return void this.create(_,b,re[0]||{});const Ee=this._getPlayer(_);switch(N){case"play":Ee.play();break;case"pause":Ee.pause();break;case"reset":Ee.reset();break;case"restart":Ee.restart();break;case"finish":Ee.finish();break;case"init":Ee.init();break;case"setPosition":Ee.setPosition(parseFloat(re[0]));break;case"destroy":this.destroy(_)}}}const Ho="ng-animate-queued",zo="ng-animate-disabled",Is=[],co={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},So={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wi="__ng_removed";class vo{get params(){return this.options.params}constructor(_,b=""){this.namespaceId=b;const N=_&&_.hasOwnProperty("value");if(this.value=function Ki(B){return B??null}(N?_.value:_),N){const Ee=Ge(_);delete Ee.value,this.options=Ee}else this.options={};this.options.params||(this.options.params={})}absorbOptions(_){const b=_.params;if(b){const N=this.options.params;Object.keys(b).forEach(re=>{null==N[re]&&(N[re]=b[re])})}}}const xi="void",Qo=new vo(xi);class Ao{constructor(_,b,N){this.id=_,this.hostElement=b,this._engine=N,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+_,Xi(b,this._hostClassName)}listen(_,b,N,re){if(!this._triggers.has(b))throw function qe(B,_){return new m.\u0275RuntimeError(3302,!1)}();if(null==N||0==N.length)throw function yt(B){return new m.\u0275RuntimeError(3303,!1)}();if(!function vi(B){return"start"==B||"done"==B}(N))throw function ft(B,_){return new m.\u0275RuntimeError(3400,!1)}();const Ee=Nt(this._elementListeners,_,[]),Ze={name:b,phase:N,callback:re};Ee.push(Ze);const ot=Nt(this._engine.statesByElement,_,new Map);return ot.has(b)||(Xi(_,fe),Xi(_,fe+"-"+b),ot.set(b,Qo)),()=>{this._engine.afterFlush(()=>{const Pt=Ee.indexOf(Ze);Pt>=0&&Ee.splice(Pt,1),this._triggers.has(b)||ot.delete(b)})}}register(_,b){return!this._triggers.has(_)&&(this._triggers.set(_,b),!0)}_getTrigger(_){const b=this._triggers.get(_);if(!b)throw function $t(B){return new m.\u0275RuntimeError(3401,!1)}();return b}trigger(_,b,N,re=!0){const Ee=this._getTrigger(b),Ze=new Li(this.id,b,_);let ot=this._engine.statesByElement.get(_);ot||(Xi(_,fe),Xi(_,fe+"-"+b),this._engine.statesByElement.set(_,ot=new Map));let Pt=ot.get(b);const Zt=new vo(N,this.id);if(!(N&&N.hasOwnProperty("value"))&&Pt&&Zt.absorbOptions(Pt.options),ot.set(b,Zt),Pt||(Pt=Qo),Zt.value!==xi&&Pt.value===Zt.value){if(!function zs(B,_){const b=Object.keys(B),N=Object.keys(_);if(b.length!=N.length)return!1;for(let re=0;re<b.length;re++){const Ee=b[re];if(!_.hasOwnProperty(Ee)||B[Ee]!==_[Ee])return!1}return!0}(Pt.params,Zt.params)){const Mr=[],w=Ee.matchStyles(Pt.value,Pt.params,Mr),D=Ee.matchStyles(Zt.value,Zt.params,Mr);Mr.length?this._engine.reportError(Mr):this._engine.afterFlush(()=>{Ie(_,w),$(_,D)})}return}const Ar=Nt(this._engine.playersByElement,_,[]);Ar.forEach(Mr=>{Mr.namespaceId==this.id&&Mr.triggerName==b&&Mr.queued&&Mr.destroy()});let Or=Ee.matchTransition(Pt.value,Zt.value,_,Zt.params),hr=!1;if(!Or){if(!re)return;Or=Ee.fallbackTransition,hr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:b,transition:Or,fromState:Pt,toState:Zt,player:Ze,isFallbackTransition:hr}),hr||(Xi(_,Ho),Ze.onStart(()=>{Eo(_,Ho)})),Ze.onDone(()=>{let Mr=this.players.indexOf(Ze);Mr>=0&&this.players.splice(Mr,1);const w=this._engine.playersByElement.get(_);if(w){let D=w.indexOf(Ze);D>=0&&w.splice(D,1)}}),this.players.push(Ze),Ar.push(Ze),Ze}deregister(_){this._triggers.delete(_),this._engine.statesByElement.forEach(b=>b.delete(_)),this._elementListeners.forEach((b,N)=>{this._elementListeners.set(N,b.filter(re=>re.name!=_))})}clearElementCache(_){this._engine.statesByElement.delete(_),this._elementListeners.delete(_);const b=this._engine.playersByElement.get(_);b&&(b.forEach(N=>N.destroy()),this._engine.playersByElement.delete(_))}_signalRemovalForInnerTriggers(_,b){const N=this._engine.driver.query(_,X,!0);N.forEach(re=>{if(re[Wi])return;const Ee=this._engine.fetchNamespacesByElement(re);Ee.size?Ee.forEach(Ze=>Ze.triggerLeaveAnimation(re,b,!1,!0)):this.clearElementCache(re)}),this._engine.afterFlushAnimationsDone(()=>N.forEach(re=>this.clearElementCache(re)))}triggerLeaveAnimation(_,b,N,re){const Ee=this._engine.statesByElement.get(_),Ze=new Map;if(Ee){const ot=[];if(Ee.forEach((Pt,Zt)=>{if(Ze.set(Zt,Pt.value),this._triggers.has(Zt)){const Fn=this.trigger(_,Zt,xi,re);Fn&&ot.push(Fn)}}),ot.length)return this._engine.markElementAsRemoved(this.id,_,!0,b,Ze),N&&hn(ot).onDone(()=>this._engine.processLeaveNode(_)),!0}return!1}prepareLeaveAnimationListeners(_){const b=this._elementListeners.get(_),N=this._engine.statesByElement.get(_);if(b&&N){const re=new Set;b.forEach(Ee=>{const Ze=Ee.name;if(re.has(Ze))return;re.add(Ze);const Pt=this._triggers.get(Ze).fallbackTransition,Zt=N.get(Ze)||Qo,Fn=new vo(xi),Qn=new Li(this.id,Ze,_);this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:Ze,transition:Pt,fromState:Zt,toState:Fn,player:Qn,isFallbackTransition:!0})})}}removeNode(_,b){const N=this._engine;if(_.childElementCount&&this._signalRemovalForInnerTriggers(_,b),this.triggerLeaveAnimation(_,b,!0))return;let re=!1;if(N.totalAnimations){const Ee=N.players.length?N.playersByQueriedElement.get(_):[];if(Ee&&Ee.length)re=!0;else{let Ze=_;for(;Ze=Ze.parentNode;)if(N.statesByElement.get(Ze)){re=!0;break}}}if(this.prepareLeaveAnimationListeners(_),re)N.markElementAsRemoved(this.id,_,!1,b);else{const Ee=_[Wi];(!Ee||Ee===co)&&(N.afterFlush(()=>this.clearElementCache(_)),N.destroyInnerAnimations(_),N._onRemovalComplete(_,b))}}insertNode(_,b){Xi(_,this._hostClassName)}drainQueuedTransitions(_){const b=[];return this._queue.forEach(N=>{const re=N.player;if(re.destroyed)return;const Ee=N.element,Ze=this._elementListeners.get(Ee);Ze&&Ze.forEach(ot=>{if(ot.name==N.triggerName){const Pt=Mt(Ee,N.triggerName,N.fromState.value,N.toState.value);Pt._data=_,_n(N.player,ot.phase,Pt,ot.callback)}}),re.markedForDestroy?this._engine.afterFlush(()=>{re.destroy()}):b.push(N)}),this._queue=[],b.sort((N,re)=>{const Ee=N.transition.ast.depCount,Ze=re.transition.ast.depCount;return 0==Ee||0==Ze?Ee-Ze:this._engine.driver.containsElement(N.element,re.element)?1:-1})}
1destroy(_){this.players.forEach(b=>b.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,_)}elementContainsData(_){let b=!1;return this._elementListeners.has(_)&&(b=!0),b=!!this._queue.find(N=>N.element===_)||b,b}}class fs{_onRemovalComplete(_,b){this.onRemovalComplete(_,b)}constructor(_,b,N){this.bodyNode=_,this.driver=b,this._normalizer=N,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(re,Ee)=>{}}get queuedPlayers(){const _=[];return this._namespaceList.forEach(b=>{b.players.forEach(N=>{N.queued&&_.push(N)})}),_}createNamespace(_,b){const N=new Ao(_,b,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,b)?this._balanceNamespaceList(N,b):(this.newHostElements.set(b,N),this.collectEnterElement(b)),this._namespaceLookup[_]=N}_balanceNamespaceList(_,b){const N=this._namespaceList,re=this.namespacesByHostElement;if(N.length-1>=0){let Ze=!1,ot=this.driver.getParentElement(b);for(;ot;){const Pt=re.get(ot);if(Pt){const Zt=N.indexOf(Pt);N.splice(Zt+1,0,_),Ze=!0;break}ot=this.driver.getParentElement(ot)}Ze||N.unshift(_)}else N.push(_);return re.set(b,_),_}register(_,b){let N=this._namespaceLookup[_];return N||(N=this.createNamespace(_,b)),N}registerTrigger(_,b,N){let re=this._namespaceLookup[_];re&&re.register(b,N)&&this.totalAnimations++}destroy(_,b){if(!_)return;const N=this._fetchNamespace(_);this.afterFlush(()=>{this.namespacesByHostElement.delete(N.hostElement),delete this._namespaceLookup[_];const re=this._namespaceList.indexOf(N);re>=0&&this._namespaceList.splice(re,1)}),this.afterFlushAnimationsDone(()=>N.destroy(b))}_fetchNamespace(_){return this._namespaceLookup[_]}fetchNamespacesByElement(_){const b=new Set,N=this.statesByElement.get(_);if(N)for(let re of N.values())if(re.namespaceId){const Ee=this._fetchNamespace(re.namespaceId);Ee&&b.add(Ee)}return b}trigger(_,b,N,re){if(Ds(b)){const Ee=this._fetchNamespace(_);if(Ee)return Ee.trigger(b,N,re),!0}return!1}insertNode(_,b,N,re){if(!Ds(b))return;const Ee=b[Wi];if(Ee&&Ee.setForRemoval){Ee.setForRemoval=!1,Ee.setForMove=!0;const Ze=this.collectedLeaveElements.indexOf(b);Ze>=0&&this.collectedLeaveElements.splice(Ze,1)}if(_){const Ze=this._fetchNamespace(_);Ze&&Ze.insertNode(b,N)}re&&this.collectEnterElement(b)}collectEnterElement(_){this.collectedEnterElements.push(_)}markElementAsDisabled(_,b){b?this.disabledNodes.has(_)||(this.disabledNodes.add(_),Xi(_,zo)):this.disabledNodes.has(_)&&(this.disabledNodes.delete(_),Eo(_,zo))}removeNode(_,b,N,re){if(Ds(b)){const Ee=_?this._fetchNamespace(_):null;if(Ee?Ee.removeNode(b,re):this.markElementAsRemoved(_,b,!1,re),N){const Ze=this.namespacesByHostElement.get(b);Ze&&Ze.id!==_&&Ze.removeNode(b,re)}}else this._onRemovalComplete(b,re)}markElementAsRemoved(_,b,N,re,Ee){this.collectedLeaveElements.push(b),b[Wi]={namespaceId:_,setForRemoval:re,hasAnimation:N,removedBeforeQueried:!1,previousTriggersValues:Ee}}listen(_,b,N,re,Ee){return Ds(b)?this._fetchNamespace(_).listen(b,N,re,Ee):()=>{}}_buildInstruction(_,b,N,re,Ee){return _.transition.build(this.driver,_.element,_.fromState.value,_.toState.value,N,re,_.fromState.options,_.toState.options,b,Ee)}destroyInnerAnimations(_){let b=this.driver.query(_,X,!0);b.forEach(N=>this.destroyActiveAnimationsForElement(N)),0!=this.playersByQueriedElement.size&&(b=this.driver.query(_,xe,!0),b.forEach(N=>this.finishActiveQueriedAnimationOnElement(N)))}destroyActiveAnimationsForElement(_){const b=this.playersByElement.get(_);b&&b.forEach(N=>{N.queued?N.markedForDestroy=!0:N.destroy()})}finishActiveQueriedAnimationOnElement(_){const b=this.playersByQueriedElement.get(_);b&&b.forEach(N=>N.finish())}whenRenderingDone(){return new Promise(_=>{if(this.players.length)return hn(this.players).onDone(()=>_());_()})}processLeaveNode(_){const b=_[Wi];if(b&&b.setForRemoval){if(_[Wi]=co,b.namespaceId){this.destroyInnerAnimations(_);const N=this._fetchNamespace(b.namespaceId);N&&N.clearElementCache(_)}this._onRemovalComplete(_,b.setForRemoval)}_.classList?.contains(zo)&&this.markElementAsDisabled(_,!1),this.driver.query(_,".ng-animate-disabled",!0).forEac
vendor: 22,974 bytes, line 1
1h(N=>{this.markElementAsDisabled(N,!1)})}flush(_=-1){let b=[];if(this.newHostElements.size&&(this.newHostElements.forEach((N,re)=>this._balanceNamespaceList(N,re)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let N=0;N<this.collectedEnterElements.length;N++)Xi(this.collectedEnterElements[N],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const N=[];try{b=this._flushAnimations(N,_)}finally{for(let re=0;re<N.length;re++)N[re]()}}else for(let N=0;N<this.collectedLeaveElements.length;N++)this.processLeaveNode(this.collectedLeaveElements[N]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(N=>N()),this._flushFns=[],this._whenQuietFns.length){const N=this._whenQuietFns;this._whenQuietFns=[],b.length?hn(b).onDone(()=>{N.forEach(re=>re())}):N.forEach(re=>re())}}reportError(_){throw function cn(B){return new m.\u0275RuntimeError(3402,!1)}()}_flushAnimations(_,b){const N=new Xr,re=[],Ee=new Map,Ze=[],ot=new Map,Pt=new Map,Zt=new Map,Fn=new Set;this.disabledNodes.forEach(Zn=>{Fn.add(Zn);const ur=this.driver.query(Zn,".ng-animate-queued",!0);for(let br=0;br<ur.length;br++)Fn.add(ur[br])});const Qn=this.bodyNode,Ar=Array.from(this.statesByElement.keys()),Or=xr(Ar,this.collectedEnterElements),hr=new Map;let Mr=0;Or.forEach((Zn,ur)=>{const br=Q+Mr++;hr.set(ur,br),Zn.forEach(ei=>Xi(ei,br))});const w=[],D=new Set,y=new Set;for(let Zn=0;Zn<this.collectedLeaveElements.length;Zn++){const ur=this.collectedLeaveElements[Zn],br=ur[Wi];br&&br.setForRemoval&&(w.push(ur),D.add(ur),br.hasAnimation?this.driver.query(ur,".ng-star-inserted",!0).forEach(ei=>D.add(ei)):y.add(ur))}const O=new Map,z=xr(Ar,Array.from(D));z.forEach((Zn,ur)=>{const br=ue+Mr++;O.set(ur,br),Zn.forEach(ei=>Xi(ei,br))}),_.push(()=>{Or.forEach((Zn,ur)=>{const br=hr.get(ur);Zn.forEach(ei=>Eo(ei,br))}),z.forEach((Zn,ur)=>{const br=O.get(ur);Zn.forEach(ei=>Eo(ei,br))}),w.forEach(Zn=>{this.processLeaveNode(Zn)})});const he=[],Ce=[];for(let Zn=this._namespaceList.length-1;Zn>=0;Zn--)this._namespaceList[Zn].drainQueuedTransitions(b).forEach(br=>{const ei=br.player,ls=br.element;if(he.push(ei),this.collectedEnterElements.length){const Qs=ls[Wi];if(Qs&&Qs.setForMove){if(Qs.previousTriggersValues&&Qs.previousTriggersValues.has(br.triggerName)){const mi=Qs.previousTriggersValues.get(br.triggerName),Xs=this.statesByElement.get(br.element);if(Xs&&Xs.has(br.triggerName)){const zi=Xs.get(br.triggerName);zi.value=mi,Xs.set(br.triggerName,zi)}}return void ei.destroy()}}const po=!Qn||!this.driver.containsElement(Qn,ls),Ys=O.get(ls),Vo=hr.get(ls),Kr=this._buildInstruction(br,N,Vo,Ys,po);if(Kr.errors&&Kr.errors.length)return void Ce.push(Kr);if(po)return ei.onStart(()=>Ie(ls,Kr.fromStyles)),ei.onDestroy(()=>$(ls,Kr.toStyles)),void re.push(ei);if(br.isFallbackTransition)return ei.onStart(()=>Ie(ls,Kr.fromStyles)),ei.onDestroy(()=>$(ls,Kr.toStyles)),void re.push(ei);const Ra=[];Kr.timelines.forEach(Qs=>{Qs.stretchStartingKeyframe=!0,this.disabledNodes.has(Qs.element)||Ra.push(Qs)}),Kr.timelines=Ra,N.append(ls,Kr.timelines),Ze.push({instruction:Kr,player:ei,element:ls}),Kr.queriedElements.forEach(Qs=>Nt(ot,Qs,[]).push(ei)),Kr.preStyleProps.forEach((Qs,mi)=>{if(Qs.size){let Xs=Pt.get(mi);Xs||Pt.set(mi,Xs=new Set),Qs.forEach((zi,Ii)=>Xs.add(Ii))}}),Kr.postStyleProps.forEach((Qs,mi)=>{let Xs=Zt.get(mi);Xs||Zt.set(mi,Xs=new Set),Qs.forEach((zi,Ii)=>Xs.add(Ii))})});if(Ce.length){const Zn=[];Ce.forEach(ur=>{Zn.push(function wn(B,_){return new m.\u0275RuntimeError(3505,!1)}())}),he.forEach(ur=>ur.destroy()),this.reportError(Zn)}const _t=new Map,tn=new Map;Ze.forEach(Zn=>{const ur=Zn.element;N.has(ur)&&(tn.set(ur,ur),this._beforeAnimationBuild(Zn.player.namespaceId,Zn.instruction,_t))}),re.forEach(Zn=>{const ur=Zn.element;this._getPreviousPlayers(ur,!1,Zn.namespaceId,Zn.triggerName,null).forEach(ei=>{Nt(_t,ur,[]).push(ei),ei.destroy()})});const Ln=w.filter(Zn=>Ws(Zn,Pt,Zt)),Vn=new Map;ys(Vn,this.driver,y,Zt,ie.l3).forEach(Zn=>{Ws(Zn,Pt,Zt)&&Ln.push(Zn)});const Zi=new Map;Or.forEach((Zn,ur)=>{ys(Zi,this.driver,new Set(Zn),Pt,ie.k1)}),Ln.forEach(Zn=>{const ur=Vn.get(Zn),br=Zi.get(Zn);Vn.set(Zn,new Map([...Array.from(ur?.entries()??[]),...Array.from(br?.entries()??[])]))});const qs=[],Do=[],Lo={};Ze.forEach(Zn=>{const{element:ur,player:br,instruction:ei}=Zn;if(N.has(ur)){if(Fn.has(ur))return br.onDestroy(()=>$(ur,ei.toStyles)),br.disabled=!0,br.overrideTotalTime(ei.totalTime),void re.push(br);let ls=Lo;if(tn.size>1){let Ys=ur;const Vo=[];for(;Ys=Ys.parentNode;){const Kr=tn.get(Ys);if(Kr){ls=Kr;break}Vo.push(Ys)}Vo.forEach(Kr=>tn.set(Kr,ls))}const po=this._buildAnimation(br.namespaceId,ei,_t,Ee,Zi,Vn);if(br.setRealPlayer(po),ls===Lo)qs.push(br);else{const Ys=this.playersByElement.get(ls);Ys&&Ys.length&&(br.parentPlayer=hn(Ys)),re.push(br)}}else Ie(ur,ei.fromStyles),br.onDestroy(()=>$(ur,ei.toStyles)),Do.push(br),Fn.has(ur)&&re.push(br)}),Do.forEach(Zn=>{const ur=Ee.get(Zn.element);if(ur&&ur.length){const br=hn(ur);Zn.setRealPlayer(br)}}),re.forEach(Zn=>{Zn.parentPlayer?Zn.syncPlayerEvents(Zn.parentPlayer):Zn.destroy()});for(let Zn=0;Zn<w.length;Zn++){const ur=w[Zn],br=ur[Wi];if(Eo(ur,ue),br&&br.hasAnimation)continue;let ei=[];if(ot.size){let po=ot.get(ur);po&&po.length&&ei.push(...po);let Ys=this.driver.query(ur,xe,!0);for(let Vo=0;Vo<Ys.length;Vo++){let Kr=ot.get(Ys[Vo]);Kr&&Kr.length&&ei.push(...Kr)}}const ls=ei.filter(po=>!po.destroyed);ls.length?Vi(this,ur,ls):this.processLeaveNode(ur)}return w.length=0,qs.forEach(Zn=>{this.players.push(Zn),Zn.onDone(()=>{Zn.destroy();const ur=this.players.indexOf(Zn);this.players.splice(ur,1)}),Zn.play()}),qs}elementContainsData(_,b){let N=!1;const re=b[Wi];return re&&re.setForRemoval&&(N=!0),this.playersByElement.has(b)&&(N=!0),this.playersByQueriedElement.has(b)&&(N=!0),this.statesByElement.has(b)&&(N=!0),this._fetchNamespace(_).elementContainsData(b)||N}afterFlush(_){this._flushFns.push(_)}afterFlushAnimationsDone(_){this._whenQuietFns.push(_)}_getPreviousPlayers(_,b,N,re,Ee){let Ze=[];if(b){const ot=this.playersByQueriedElement.get(_);ot&&(Ze=ot)}else{const ot=this.playersByElement.get(_);if(ot){const Pt=!Ee||Ee==xi;ot.forEach(Zt=>{Zt.queued||!Pt&&Zt.triggerName!=re||Ze.push(Zt)})}}return(N||re)&&(Ze=Ze.filter(ot=>!(N&&N!=ot.namespaceId||re&&re!=ot.triggerName))),Ze}_beforeAnimationBuild(_,b,N){const Ee=b.element,Ze=b.isRemovalTransition?void 0:_,ot=b.isRemovalTransition?void 0:b.triggerName;for(const Pt of b.timelines){const Zt=Pt.element,Fn=Zt!==Ee,Qn=Nt(N,Zt,[]);this._getPreviousPlayers(Zt,Fn,Ze,ot,b.toState).forEach(Or=>{const hr=Or.getRealPlayer();hr.beforeDestroy&&hr.beforeDestroy(),Or.destroy(),Qn.push(Or)})}Ie(Ee,b.fromStyles)}_buildAnimation(_,b,N,re,Ee,Ze){const ot=b.triggerName,Pt=b.element,Zt=[],Fn=new Set,Qn=new Set,Ar=b.timelines.map(hr=>{const Mr=hr.element;Fn.add(Mr);const w=Mr[Wi];if(w&&w.removedBeforeQueried)return new ie.ZN(hr.duration,hr.delay);const D=Mr!==Pt,y=function Ci(B){const _=[];return uo(B,_),_}((N.get(Mr)||Is).map(_t=>_t.getRealPlayer())).filter(_t=>!!_t.element&&_t.element===Mr),O=Ee.get(Mr),z=Ze.get(Mr),he=rn(0,this._normalizer,0,hr.keyframes,O,z),Ce=this._buildPlayer(hr,he,y);if(hr.subTimeline&&re&&Qn.add(Mr),D){const _t=new Li(_,ot,Mr);_t.setRealPlayer(Ce),Zt.push(_t)}return Ce});Zt.forEach(hr=>{Nt(this.playersByQueriedElement,hr.element,[]).push(hr),hr.onDone(()=>function Hi(B,_,b){let N=B.get(_);if(N){if(N.length){const re=N.indexOf(b);N.splice(re,1)}0==N.length&&B.delete(_)}return N}(this.playersByQueriedElement,hr.element,hr))}),Fn.forEach(hr=>Xi(hr,ce));const Or=hn(Ar);return Or.onDestroy(()=>{Fn.forEach(hr=>Eo(hr,ce)),$(Pt,b.toStyles)}),Qn.forEach(hr=>{Nt(re,hr,[]).push(Or)}),Or}_buildPlayer(_,b,N){return b.length>0?this.driver.animate(_.element,b,_.duration,_.delay,_.easing,N):new ie.ZN(_.duration,_.delay)}}class Li{constructor(_,b,N){this.namespaceId=_,this.triggerName=b,this.element=N,this._player=new ie.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(_){this._containsRealPlayer||(this._player=_,this._queuedCallbacks.forEach((b,N)=>{b.forEach(re=>_n(_,N,void 0,re))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(_.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(_){this.totalTime=_}syncPlayerEvents(_){const b=this._player;b.triggerCallback&&_.onStart(()=>b.triggerCallback("start")),_.onDone(()=>this.finish()),_.onDestroy(()=>this.destroy())}_queueEvent(_,b){Nt(this._queuedCallbacks,_,[]).push(b)}onDone(_){this.queued&&this._queueEvent("done",_),this._player.onDone(_)}onStart(_){this.queued&&this._queueEvent("start",_),this._player.onStart(_)}onDestroy(_){this.queued&&this._queueEvent("destroy",_),this._player.onDestroy(_)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(_){this.queued||this._player.setPosition(_)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(_){const b=this._player;b.triggerCallback&&b.triggerCallback(_)}}function Ds(B){return B&&1===B.nodeType}function Mi(B,_){const b=B.style.display;return B.style.display=_??"none",b}function ys(B,_,b,N,re){const Ee=[];b.forEach(Pt=>Ee.push(Mi(Pt)));const Ze=[];N.forEach((Pt,Zt)=>{const Fn=new Map;Pt.forEach(Qn=>{const Ar=_.computeStyle(Zt,Qn,re);Fn.set(Qn,Ar),(!Ar||0==Ar.length)&&(Zt[Wi]=So,Ze.push(Zt))}),B.set(Zt,Fn)});let ot=0;return b.forEach(Pt=>Mi(Pt,Ee[ot++])),Ze}function xr(B,_){const b=new Map;if(B.forEach(ot=>b.set(ot,[])),0==_.length)return b;const N=1,re=new Set(_),Ee=new Map;function Ze(ot){if(!ot)return N;let Pt=Ee.get(ot);if(Pt)return Pt;const Zt=ot.parentNode;return Pt=b.has(Zt)?Zt:re.has(Zt)?N:Ze(Zt),Ee.set(ot,Pt),Pt}return _.forEach(ot=>{const Pt=Ze(ot);Pt!==N&&b.get(Pt).push(ot)}),b}function Xi(B,_){B.classList?.add(_)}function Eo(B,_){B.classList?.remove(_)}function Vi(B,_,b){hn(b).onDone(()=>B.processLeaveNode(_))}function uo(B,_){for(let b=0;b<B.length;b++){const N=B[b];N instanceof ie.ZE?uo(N.players,_):_.push(N)}}function Ws(B,_,b){const N=b.get(B);if(!N)return!1;let re=_.get(B);return re?N.forEach(Ee=>re.add(Ee)):_.set(B,N),b.delete(B),!0}class Gi{constructor(_,b,N){this.bodyNode=_,this._driver=b,this._normalizer=N,this._triggerCache={},this.onRemovalComplete=(re,Ee)=>{},this._transitionEngine=new fs(_,b,N),this._timelineEngine=new lo(_,b,N),this._transitionEngine.onRemovalComplete=(re,Ee)=>this.onRemovalComplete(re,Ee)}registerTrigger(_,b,N,re,Ee){const Ze=_+"-"+re;let ot=this._triggerCache[Ze];if(!ot){const Pt=[],Zt=[],Fn=Fi(this._driver,Ee,Pt,Zt);if(Pt.length)throw function Sn(B,_){return new m.\u0275RuntimeError(3404,!1)}();ot=function Ns(B,_,b){return new gs(B,_,b)}(re,Fn,this._normalizer),this._triggerCache[Ze]=ot}this._transitionEngine.registerTrigger(b,re,ot)}register(_,b){this._transitionEngine.register(_,b)}destroy(_,b){this._transitionEngine.destroy(_,b)}onInsert(_,b,N,re){this._transitionEngine.insertNode(_,b,N,re)}onRemove(_,b,N,re){this._transitionEngine.removeNode(_,b,re||!1,N)}disableAnimations(_,b){this._transitionEngine.markElementAsDisabled(_,b)}process(_,b,N,re){if("@"==N.charAt(0)){const[Ee,Ze]=se(N);this._timelineEngine.command(Ee,b,Ze,re)}else this._transitionEngine.trigger(_,b,N,re)}listen(_,b,N,re,Ee){if("@"==N.charAt(0)){const[Ze,ot]=se(N);return this._timelineEngine.listen(Ze,b,ot,Ee)}return this._transitionEngine.listen(_,b,N,re,Ee)}flush(_=-1){this._transitionEngine.flush(_)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ji=(()=>{class B{constructor(b,N,re){this._element=b,this._startStyles=N,this._endStyles=re,this._state=0;let Ee=B.initialStylesByElement.get(b);Ee||B.initialStylesByElement.set(b,Ee=new Map),this._initialStyles=Ee}start(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(B.initialStylesByElement.delete(this._element),this._startStyles&&(Ie(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ie(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}return B.initialStylesByElement=new WeakMap,B})();function mr(B){let _=null;return B.forEach((b,N)=>{(function Ks(B){return"display"===B||"position"===B})(N)&&(_=_||new Map,_.set(N,b))}),_}class Y{constructor(_,b,N,re){this.element=_,this.keyframes=b,this.options=N,this._specialStyles=re,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=N.duration,this._delay=N.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const _=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,_,this.options),this._finalKeyframe=_.length?_[_.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(_){const b=[];return _.forEach(N=>{b.push(Object.fromEntries(N))}),b}_triggerWebAnimation(_,b,N){return _.animate(this._convertKeyframesToObject(b),N)}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(_=>_()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(_=>_()),this._onDestroyFns=[])}setPosition(_){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=_*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const _=new Map;this.hasStarted()&&this._finalKeyframe.forEach((N,re)=>{"offset"!==re&&_.set(re,this._finished?N:kr(this.element,re))}),this.currentSnapshot=_}triggerCallback(_){const b="start"===_?this._onStartFns:this._onDoneFns;b.forEach(N=>N()),b.length=0}}class W{validateStyleProperty(_){return!0}validateAnimatableStyleProperty(_){return!0}matchesElement(_,b){return!1}containsElement(_,b){return Dr(_,b)}getParentElement(_){return It(_)}query(_,b,N){return vr(_,b,N)}computeStyle(_,b,N){return window.getComputedStyle(_)[b]}animate(_,b,N,re,Ee,Ze=[]){const Pt={duration:N,delay:re,fill:0==re?"both":"forwards"};Ee&&(Pt.easing=Ee);const Zt=new Map,Fn=Ze.filter(Or=>Or instanceof Y);(function Yn(B,_){return 0===B||0===_})(N,re)&&Fn.forEach(Or=>{Or.currentSnapshot.forEach((hr,Mr)=>Zt.set(Mr,hr))});let Qn=function ht(B){return B.length?B[0]instanceof Map?B:B.map(_=>Et(_)):[]}(b).map(Or=>$e(Or));Qn=function Tr(B,_,b){if(b.size&&_.length){let N=_[0],re=[];if(b.forEach((Ee,Ze)=>{N.has(Ze)||re.push(Ze),N.set(Ze,Ee)}),re.length)for(let Ee=1;Ee<_.length;Ee++){let Ze=_[Ee];re.forEach(ot=>Ze.set(ot,kr(B,ot)))}}return _}(_,Qn,Zt);const Ar=function Ls(B,_){let b=null,N=null;return Array.isArray(_)&&_.length?(b=mr(_[0]),_.length>1&&(N=mr(_[_.length-1]))):_ instanceof Map&&(b=mr(_)),b||N?new Ji(B,b,N):null}(_,Qn);return new Y(_,Qn,Pt,Ar)}}var Ae=C(6895);let Je=(()=>{class B extends ie._j{constructor(b,N){super(),this._nextAnimationId=0,this._renderer=b.createRenderer(N.body,{id:"0",encapsulation:m.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(b){const N=this._nextAnimationId.toString();this._nextAnimationId++;const re=Array.isArray(b)?(0,ie.vP)(b):b;return En(this._renderer,null,N,"register",[re]),new gt(N,this._renderer)}}return B.\u0275fac=function(b){return new(b||B)(m.\u0275\u0275inject(m.RendererFactory2),m.\u0275\u0275inject(Ae.K0))},B.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class gt extends ie.LC{constructor(_,b){super(),this._id=_,this._renderer=b}create(_,b){return new Qt(this._id,_,b||{},this._renderer)}}class Qt{constructor(_,b,N,re){this.id=_,this.element=b,this._renderer=re,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",N)}_listen(_,b){return this._renderer.listen(this.element,`@@${this.id}:${_}`,b)}_command(_,...b){return En(this._renderer,this.element,this.id,_,b)}onDone(_){this._listen("done",_)}onStart(_){this._listen("start",_)}onDestroy(_){this._listen("destroy",_)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(_){this._command("setPosition",_)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function En(B,_,b,N,re){return B.setProperty(_,`@@${b}:${N}`,re)}const S="@",x="@.disabled";let P=(()=>{class B{constructor(b,N,re){this.delegate=b,this.engine=N,this._zone=re,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),N.onRemovalComplete=(Ee,Ze)=>{const ot=Ze?.parentNode(Ee);ot&&Ze.removeChild(ot,Ee)}}createRenderer(b,N){const Ee=this.delegate.createRenderer(b,N);if(!(b&&N&&N.data&&N.data.animation)){let Fn=this._rendererCache.get(Ee);return Fn||(Fn=new le("",Ee,this.engine,()=>this._rendererCache.delete(Ee)),this._rendererCache.set(Ee,Fn)),Fn}const Ze=N.id,ot=N.id+"-"+this._currentId;this._currentId++,this.engine.register(ot,b);const Pt=Fn=>{Array.isArray(Fn)?Fn.forEach(Pt):this.engine.registerTrigger(Ze,ot,b,Fn.name,Fn)};return N.data.animation.forEach(Pt),new Tt(this,ot,Ee,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(b,N,re){b>=0&&b<this._microtaskId?this._zone.run(()=>N(re)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ee=>{const[Ze,ot]=Ee;Ze(ot)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([N,re]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return B.\u0275fac=function(b){return new(b||B)(m.\u0275\u0275inject(m.RendererFactory2),m.\u0275\u0275inject(Gi),m.\u0275\u0275inject(m.NgZone))},B.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})();class le{constructor(_,b,N,re){this.namespaceId=_,this.delegate=b,this.engine=N,this._onDestroy=re,this.destroyNode=this.delegate.destroyNode?Ee=>b.destroyNode(Ee):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(_,b){return this.delegate.createElement(_,b)}createComment(_){return this.delegate.createComment(_)}createText(_){return this.delegate.createText(_)}appendChild(_,b){this.delegate.appendChild(_,b),this.engine.onInsert(this.namespaceId,b,_,!1)}insertBefore(_,b,N,re=!0){this.delegate.insertBefore(_,b,N),this.engine.onInsert(this.namespaceId,b,_,re)}removeChild(_,b,N){this.engine.onRemove(this.namespaceId,b,this.delegate,N)}selectRootElement(_,b){return this.delegate.selectRootElement(_,b)}parentNode(_){return this.delegate.parentNode(_)}nextSibling(_){return this.delegate.nextSibling(_)}setAttribute(_,b,N,re){this.delegate.setAttribute(_,b,N,re)}removeAttribute(_,b,N){this.delegate.removeAttribute(_,b,N)}addClass(_,b){this.delegate.addClass(_,b)}removeClass(_,b){this.delegate.removeClass(_,b)}setStyle(_,b,N,re){this.delegate.setStyle(_,b,N,re)}removeStyle(_,b,N){this.delegate.removeStyle(_,b,N)}setProperty(_,b,N){b.charAt(0)==S&&b==x?this.disableAnimations(_,!!N):this.delegate.setProperty(_,b,N)}setValue(_,b){this.delegate.setValue(_,b)}listen(_,b,N){return this.delegate.listen(_,b,N)}disableAnimations(_,b){this.engine.disableAnimations(_,b)}}class Tt extends le{constructor(_,b,N,re,Ee){super(b,N,re,Ee),this.factory=_,this.namespaceId=b}setProperty(_,b,N){b.charAt(0)==S?"."==b.charAt(1)&&b==x?this.disableAnimations(_,N=void 0===N||!!N):this.engine.process(this.namespaceId,_,b.slice(1),N):this.delegate.setProperty(_,b,N)}listen(_,b,N){if(b.charAt(0)==S){const re=function In(B){switch(B){case"body":return document.body;case"document":return document;case"window":return window;default:return B}}(_);let Ee=b.slice(1),Ze="";return Ee.charAt(0)!=S&&([Ee,Ze]=function _r(B){const _=B.indexOf(".");return[B.substring(0,_),B.slice(_+1)]}(Ee)),this.engine.listen(this.namespaceId,re,Ee,Ze,ot=>{this.factory.scheduleListenerCallback(ot._data||-1,N,ot)})}return this.delegate.listen(_,b,N)}}const _s=[{provide:ie._j,useClass:Je},{provide:ri,useFactory:function ki(){return new Hs}},{provide:Gi,useClass:(()=>{class B extends Gi{constructor(b,N,re,Ee){super(b.body,N,re)}ngOnDestroy(){this.flush()}}return B.\u0275fac=function(b){return new(b||B)(m.\u0275\u0275inject(Ae.K0),m.\u0275\u0275inject(en),m.\u0275\u0275inject(ri),m.\u0275\u0275inject(m.ApplicationRef))},B.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})()},{provide:m.RendererFactory2,useFactory:function Jr(B,_,b){return new P(B,_,b)}
1,deps:[c.\u0275DomRendererFactory2,Gi,m.NgZone]}],Ri=[{provide:en,useFactory:()=>new W},{provide:m.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},..._s],hi=[{provide:en,useClass:bt},{provide:m.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},..._s];let Wr=(()=>{class B{static withConfig(b){return{ngModule:B,providers:b.disableAnimations?hi:Ri}}}return B.\u0275fac=function(b){return new(b||B)},B.\u0275mod=m.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=m.\u0275\u0275defineInjector({providers:Ri,imports:[c.BrowserModule]}),B})();var Ui=C(8028),Fr=C(3453);let da=(()=>{class B{constructor(b,N){this._router=b,this._productService=N}canLoad(){if(this._productService.isAllowedToLoadFreeVisa)return!0;this._router.navigate(["/"])}static#e=this.\u0275fac=function(N){return new(N||B)(m.\u0275\u0275inject(Fr.F0),m.\u0275\u0275inject(Ui.M))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();var Da=C(6221);let Ta=(()=>{class B{constructor(b,N){this._router=b,this._authService=N}canLoad(){if(this._authService.isAllowedToLoadConfirmationPage())return!0;this._router.navigate(["/"])}static#e=this.\u0275fac=function(N){return new(N||B)(m.\u0275\u0275inject(Fr.F0),m.\u0275\u0275inject(Da.e))};static#t=this.\u0275prov=m.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();const os=[{path:"blog",children:[{path:"",loadChildren:()=>Promise.all([C.e(592),C.e(239)]).then(C.bind(C,2239)).then(B=>B.BlogsListModule)},{path:":title",loadChildren:()=>Promise.all([C.e(592),C.e(956)]).then(C.bind(C,4956)).then(B=>B.BlogPostModule)}]}];let as=(()=>{class B{static#e=this.\u0275fac=function(N){return new(N||B)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:B});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[Fr.Bz.forChild(os),Fr.Bz]})}return B})();const ha=[{path:"",loadChildren:()=>Promise.all([C.e(349),C.e(147),C.e(592),C.e(967)]).then(C.bind(C,5967)).then(B=>B.HomeModule)},{path:"faq",loadChildren:()=>C.e(297).then(C.bind(C,297)).then(B=>B.FaqModule)},{path:"country/:code",loadChildren:()=>Promise.all([C.e(349),C.e(147),C.e(592),C.e(878)]).then(C.bind(C,8878)).then(B=>B.DynamicModule)},{path:"track",loadChildren:()=>Promise.all([C.e(349),C.e(592),C.e(35)]).then(C.bind(C,7007)).then(B=>B.TrackModule)},{path:"contact",loadChildren:()=>Promise.all([C.e(349),C.e(592),C.e(531)]).then(C.bind(C,9531)).then(B=>B.ContactModule)},{path:"about",loadChildren:()=>C.e(404).then(C.bind(C,6404)).then(B=>B.AboutModule)},{path:"free-visa",loadChildren:()=>Promise.all([C.e(349),C.e(147),C.e(133)]).then(C.bind(C,9133)).then(B=>B.FreeVisaModule),canLoad:[da]},{path:"privacy",loadChildren:()=>C.e(860).then(C.bind(C,4860)).then(B=>B.PrivacyModule)},{path:"terms",loadChildren:()=>C.e(463).then(C.bind(C,9463)).then(B=>B.TermsModule)},{path:"confirmation",loadChildren:()=>Promise.all([C.e(592),C.e(612)]).then(C.bind(C,5612)).then(B=>B.ConfirmationModule),canLoad:[Ta]},{path:"payment",loadChildren:()=>C.e(17).then(C.bind(C,4017)).then(B=>B.PaymentModule)},{path:"**",loadChildren:()=>C.e(180).then(C.bind(C,180)).then(B=>B.NotFoundModule)}];let oi=(()=>{class B{static#e=this.\u0275fac=function(N){return new(N||B)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:B});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({imports:[Fr.Bz.forRoot(ha,{scrollPositionRestoration:"enabled",initialNavigation:"enabledNonBlocking"}),as,Fr.Bz]})}return B})();var Sa=C(9426),Vs=C(1739),Ts=C(8466),Mo=C(7579),Wo=C(727),bo=C(1135),Va=C(9841),Xo=C(5963),fo=C(9646),Ss=C(4482),ii=C(5032),Us=C(5403),Ti=C(8421),fa=C(3900),wo=C(4004),Jo=C(1884),Ua=C(9300),wl=C(5684),Co=C(8505),ja=C(4986),Ba=C(7272),k=C(5698),U=C(9718),ye=C(6099);function Ye(B,_){return _?b=>(0,Ba.z)(_.pipe((0,k.q)(1),function ne(){return(0,Ss.e)((B,_)=>{B.subscribe((0,Us.x)(_,ii.Z))})}()),b.pipe(Ye(B))):(0,ye.z)((b,N)=>(0,Ti.Xf)(B(b,N)).pipe((0,k.q)(1),(0,U.h)(b)))}function Kt(B,_=ja.z){const b=(0,Xo.H)(B,_);return Ye(()=>b)}function fn(B,_){if(1&B&&m.\u0275\u0275element(0,"div",6),2&B){const b=m.\u0275\u0275nextContext(2);m.\u0275\u0275styleProp("box-shadow","0 0 10px "+b.color+", 0 0 5px "+b.color)}}function Un(B,_){if(1&B&&(m.\u0275\u0275elementStart(0,"div",7),m.\u0275\u0275element(1,"div",8),m.\u0275\u0275elementEnd()),2&B){const b=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(1),m.\u0275\u0275styleProp("border-top-color",b.color)("border-left-color",b.color)}}function pi(B,_){if(1&B&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3),m.\u0275\u0275template(4,fn,1,2,"div",4),m.\u0275\u0275elementEnd()(),m.\u0275\u0275template(5,Un,2,4,"div",5),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementContainerEnd()),2&B){const b=_.$implicit,N=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275styleProp("transition","opacity "+N.speed+"ms "+N.ease),m.\u0275\u0275classProp("-active",b.active),m.\u0275\u0275advance(2),m.\u0275\u0275styleProp("transform",b.transform)("background-color",N.color)("transition",b.active?"all "+N.speed+"ms "+N.ease:"none"),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",N.meteor),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",N.spinner)}}class $r{constructor(_,b){this._onDestroyCallback=b,this._trickling=new Mo.x,this._worker=Wo.w0.EMPTY,this._state=new bo.X({active:!1,value:0}),this._config=new bo.X(_),this.state=this._state.asObservable(),this.config=this._state.asObservable(),this._worker=(0,Va.a)(this._trickling,this._config).pipe(function No(B){return(0,Ss.e)((_,b)=>{let N=!1,re=null,Ee=null;const Ze=()=>{if(Ee?.unsubscribe(),Ee=null,N){N=!1;const ot=re;re=null,b.next(ot)}};_.subscribe((0,Us.x)(b,ot=>{Ee?.unsubscribe(),N=!0,re=ot,Ee=(0,Us.x)(b,Ze,ii.Z),(0,Ti.Xf)(B(ot)).subscribe(Ee)},()=>{Ze(),b.complete()},void 0,()=>{re=Ee=null}))})}(([N,re])=>(0,Xo.H)(N?re.debounceTime:0)),(0,fa.w)(([N,re])=>N?this.onTrickling(re):this.onComplete(re))).subscribe()}get currState(){return this._state.value}get isStarted(){return this.currState.active}get started(){return this._state.pipe((0,wo.U)(_=>_.active),(0,Jo.x)(),(0,Ua.h)(_=>_))}get completed(){return this._state.pipe((0,wo.U)(_=>_.active),(0,Jo.x)(),(0,Ua.h)(_=>!_),(0,wl.T)(1))}start(){this._trickling.next(!0)}complete(){this._trickling.next(!1)}inc(_){const b=this.currState.value;this.isStarted?("number"!=typeof _&&(_=this._config.value.trickleFunc(b)),this.set(b+_)):this.start()}set(_){this.setState({value:this.clamp(_),active:!0})}setConfig(_){this._config.next(Object.assign({},this._config.value,_))}destroy(){this._worker.unsubscribe(),this._trickling.complete(),this._state.complete(),this._config.complete(),this._onDestroyCallback()}setState(_){this._state.next(Object.assign({},this.currState,_))}clamp(_){return Math.max(this._config.value.min,Math.min(this._config.value.max,_))}onTrickling(_){return this.isStarted||this.set(this._config.value.min),(0,Xo.H)(0,_.trickleSpeed).pipe((0,Co.b)(()=>this.inc()))}onComplete(_){return this.isStarted?(0,fo.of)({}).pipe((0,Co.b)(()=>this.setState({value:100})),Kt(1.7*_.speed),(0,Co.b)(()=>this.setState({active:!1})),Kt(_.speed),(0,Co.b)(()=>this.setState({value:0}))):(0,fo.of)({})}}const Lr=new m.InjectionToken("ngProgressConfig"),on={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fixed:!0,meteor:!0,thick:!1,spinner:!0,ease:"linear",color:"#1B95E0",direction:"ltr+",spinnerPosition:"right",trickleFunc:B=>B>=0&&B<20?10:B>=20&&B<50?4:B>=50&&B<80?2:B>=80&&B<99?.5:0};class or{constructor(_){this._instances=new Map,this.config=_?Object.assign({},on,_):on}ref(_="root",b){if(this._instances.has(_)){const N=this._instances.get(_);return b&&N.setConfig(Object.assign({},this.config,b)),N}{const N=new $r(Object.assign({},this.config,b),this.deleteInstance(_));return this._instances.set(_,N).get(_)}}
1destroyAll(){this._instances.forEach(_=>_.destroy())}deleteInstance(_){return()=>{this._instances.delete(_)}}}or.\u0275fac=function(_){return new(_||or)(m.\u0275\u0275inject(Lr,8))},or.\u0275prov=m.\u0275\u0275defineInjectable({token:or,factory:or.\u0275fac,providedIn:"root"}),or.ngInjectableDef=(0,m.defineInjectable)({factory:function(){return new or((0,m.inject)(Lr,8))},token:or,providedIn:"root"});let gi=(()=>{class B{constructor(b){this._ngProgress=b,this._started=Wo.w0.EMPTY,this._completed=Wo.w0.EMPTY,this.id="root",this.min=this._ngProgress.config.min,this.max=this._ngProgress.config.max,this.ease=this._ngProgress.config.ease,this.color=this._ngProgress.config.color,this.speed=this._ngProgress.config.speed,this.thick=this._ngProgress.config.thick,this.fixed=this._ngProgress.config.fixed,this.meteor=this._ngProgress.config.meteor,this.spinner=this._ngProgress.config.spinner,this.trickleSpeed=this._ngProgress.config.trickleSpeed,this.debounceTime=this._ngProgress.config.debounceTime,this.trickleFunc=this._ngProgress.config.trickleFunc,this.spinnerPosition=this._ngProgress.config.spinnerPosition,this.direction=this._ngProgress.config.direction,this.started=new m.EventEmitter,this.completed=new m.EventEmitter}get isStarted(){return this.progressRef.isStarted}ngOnChanges(){this.progressRef instanceof $r&&this.progressRef.setConfig({max:this.max>0&&this.max<=100?this.max:100,min:this.min<100&&this.min>=0?this.min:0,speed:this.speed,trickleSpeed:this.trickleSpeed,trickleFunc:this.trickleFunc,debounceTime:this.debounceTime})}ngOnInit(){this.progressRef=this._ngProgress.ref(this.id,{max:this.max,min:this.min,speed:this.speed,trickleSpeed:this.trickleSpeed,debounceTime:this.debounceTime}),this.state$=this.progressRef.state.pipe((0,wo.U)(b=>({active:b.active,transform:`translate3d(${b.value}%,0,0)`}))),this.started.observers.length&&(this._started=this.progressRef.started.subscribe(()=>this.started.emit())),this.completed.observers.length&&(this._completed=this.progressRef.completed.subscribe(()=>this.completed.emit()))}ngOnDestroy(){this._started.unsubscribe(),this._completed.unsubscribe(),this.progressRef instanceof $r&&this.progressRef.destroy()}start(){this.progressRef.start()}complete(){this.progressRef.complete()}inc(b){this.progressRef.inc(b)}set(b){this.progressRef.set(b)}}return B.\u0275fac=function(b){return new(b||B)(m.\u0275\u0275directiveInject(or))},B.\u0275cmp=m.\u0275\u0275defineComponent({type:B,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:4,hostBindings:function(b,N){2&b&&m.\u0275\u0275attribute("spinnerPosition",N.spinnerPosition)("dir",N.direction)("thick",N.thick)("fixed",N.fixed)},inputs:{id:"id",min:"min",max:"max",ease:"ease",color:"color",speed:"speed",thick:"thick",fixed:"fixed",meteor:"meteor",spinner:"spinner",trickleSpeed:"trickleSpeed",debounceTime:"debounceTime",trickleFunc:"trickleFunc",spinnerPosition:"spinnerPosition",direction:"direction"},outputs:{started:"started",completed:"completed"},features:[m.\u0275\u0275NgOnChangesFeature],decls:2,vars:3,consts:[[4,"ngIf"],[1,"ng-progress-bar"],[1,"ng-bar-placeholder"],[1,"ng-bar"],["class","ng-meteor",3,"boxShadow",4,"ngIf"],["class","ng-spinner",4,"ngIf"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(b,N){1&b&&(m.\u0275\u0275template(0,pi,6,12,"ng-container",0),m.\u0275\u0275pipe(1,"async")),2&b&&m.\u0275\u0275property("ngIf",m.\u0275\u0275pipeBind1(1,1,N.state$))},dependencies:[Ae.O5,Ae.Ov],styles:["ng-progress{z-index:999999;pointer-events:none}ng-progress[fixed=true] .ng-progress-bar,ng-progress[fixed=true] .ng-spinner{position:fixed}ng-progress[fixed=true] .ng-spinner{top:15px}ng-progress[fixed=true][spinnerPosition=left] .ng-spinner{left:15px}ng-progress[fixed=true][spinnerPosition=right] .ng-spinner{right:15px}ng-progress[thick=true] .ng-spinner-icon{width:24px;height:24px;border-width:3px}ng-progress[thick=true] .ng-bar-placeholder{height:3px!important}ng-progress[dir='ltr+'] .ng-meteor,ng-progress[dir=ltr-] .ng-meteor{-webkit-transform:rotate(3deg);transform:rotate(3deg)}ng-progress[dir='ltr+'][thick=true] .ng-meteor,ng-progress[dir=ltr-][thick=true] .ng-meteor{-webkit-transform:rotate(4deg);transform:rotate(4deg)}ng-progress[dir='ltr+'] .ng-bar,ng-progress[dir='rtl+'] .ng-bar{margin-left:-100%}ng-progress[dir='ltr+'] .ng-meteor,ng-progress[dir='rtl+'] .ng-meteor{right:0}ng-progress[dir='ltr+'] .ng-meteor,ng-progress[dir=rtl-] .ng-meteor{top:-3px}ng-progress[dir='ltr+'][thick=true] .ng-meteor,ng-progress[dir=rtl-][thick=true] .ng-meteor{top:-4px}ng-progress[dir='rtl+'] .ng-meteor,ng-progress[dir=ltr-] .ng-meteor{bottom:-3px}ng-progress[dir='rtl+'][thick=true] .ng-meteor,ng-progress[dir=ltr-][thick=true] .ng-meteor{bottom:-4px}ng-progress[dir='rtl+'] .ng-bar-placeholder,ng-progress[dir=ltr-] .ng-bar-placeholder{-webkit-transform:rotate(180deg);transform:rotate(180deg)}ng-progress[dir='rtl+'] .ng-spinner-icon,ng-progress[dir=ltr-] .ng-spinner-icon{animation-direction:reverse}ng-progress[dir='rtl+'] .ng-meteor,ng-progress[dir=rtl-] .ng-meteor{-webkit-transform:rotate(-3deg);transform:rotate(-3deg)}ng-progress[dir='rtl+'][thick=true] .ng-meteor,ng-progress[dir=rtl-][thick=true] .ng-meteor{-webkit-transform:rotate(-4deg);transform:rotate(-4deg)}ng-progress[spinnerPosition=left] .ng-spinner{left:10px}ng-progress[spinnerPosition=right] .ng-spinner{right:10px}.ng-progress-bar{position:relative;z-index:999999;top:0;left:0;width:100%;zoom:1;opacity:0}
1.ng-progress-bar.-active{opacity:1;transition:none}.ng-bar-placeholder{position:absolute;height:2px;width:100%}.ng-bar{width:100%;height:100%;-webkit-transform:translate(-100%,0,0);transform:translate(-100%,0,0)}.ng-meteor{display:block;position:absolute;width:100px;height:100%;opacity:1}.ng-spinner{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon{width:18px;height:18px;box-sizing:border-box;-webkit-animation:250ms linear infinite spinner-animation;animation:250ms linear infinite spinner-animation;border:2px solid transparent;border-radius:50%}@-webkit-keyframes spinner-animation{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-animation{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"],encapsulation:2,changeDetection:0}),B})(),Gs=(()=>{class B{static withConfig(b){return{ngModule:B,providers:[{provide:Lr,useValue:b}]}}}return B.\u0275fac=function(b){return new(b||B)},B.\u0275mod=m.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=m.\u0275\u0275defineInjector({imports:[Ae.ez]}),B})();var kn=C(4766),Xn=C(8423),vs=C(3323);const Rn=["mobileMenuRef"],Ht=["hamburgerIconRef"],gn=["navMenuRef"],es=["selectedLang"],Qa=["langOptionsNav"];function uc(B,_){1&B&&m.\u0275\u0275element(0,"a",25)}function Aa(B,_){1&B&&(m.\u0275\u0275elementStart(0,"a",33),m.\u0275\u0275text(1,"Dev Mode"),m.\u0275\u0275elementEnd())}function dc(B,_){if(1&B){const b=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275elementStart(1,"a",34),m.\u0275\u0275listener("click",function(){const Ee=m.\u0275\u0275restoreView(b).$implicit,Ze=m.\u0275\u0275nextContext(2);return m.\u0275\u0275resetView(Ze.onLanguageOption(Ee))}),m.\u0275\u0275text(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementContainerEnd()}if(2&B){const b=_.$implicit;m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(b.name)}}const ea=function(){return[""]},Ro=function(){return{exact:!0}},ta=function(){return["/track"]},al=function(){return["/faq"]},Xa=function(){return["/blog"]},$a=function(){return["/contact"]};function js(B,_){if(1&B&&(m.\u0275\u0275elementStart(0,"div",26)(1,"div",4),m.\u0275\u0275element(2,"a",27),m.\u0275\u0275elementStart(3,"nav",28),m.\u0275\u0275template(4,Aa,2,0,"a",29),m.\u0275\u0275elementStart(5,"a",30),m.\u0275\u0275text(6,"Nav.apply"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(7,"a",31),m.\u0275\u0275text(8,"Nav.track"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(9,"a",31),m.\u0275\u0275text(10,"Nav.faq"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(11,"a",31),m.\u0275\u0275text(12,"Nav.blog"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(13,"a",31),m.\u0275\u0275text(14,"Nav.contact"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(15,"a",32),m.\u0275\u0275text(16,"Nav.visa"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(17,"div",11),m.\u0275\u0275element(18,"a",12)(19,"a",13),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(20,"div",14)(21,"div",15),m.\u0275\u0275element(22,"div",16),m.\u0275\u0275elementStart(23,"div",null,17),m.\u0275\u0275text(25),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(26,"nav",18,19),m.\u0275\u0275template(28,dc,3,1,"ng-container",20),m.\u0275\u0275elementEnd()()()()()),2&B){const b=m.\u0275\u0275nextContext();m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(10,ea)),m.\u0275\u0275advance(2),m.\u0275\u0275property("ngIf",!b.productionMode),m.\u0275\u0275advance(1),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(11,ea))("routerLinkActiveOptions",m.\u0275\u0275pureFunction0(12,Ro)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(13,ta)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(14,al)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(15,Xa)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(16,$a)),m.\u0275\u0275advance(12),m.\u0275\u0275textInterpolate(b.defaultLanguage),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngForOf",b.languages)}}function Jn(B,_){if(1&B){const b=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275elementStart(1,"a",34),m.\u0275\u0275listener("click",function(){const Ee=m.\u0275\u0275restoreView(b).$implicit,Ze=m.\u0275\u0275nextContext();
1return m.\u0275\u0275resetView(Ze.onLanguageOption(Ee))}),m.\u0275\u0275text(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementContainerEnd()}if(2&B){const b=_.$implicit;m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(b.name)}}let na=(()=>{class B{constructor(b,N,re,Ee){this._renderer=b,this._languageService=N,this.translate=re,this.router=Ee,this.languages=[]}ngOnInit(){window.location.href.includes("/payment")&&(console.log("inside if condition"),this._renderer.setStyle(this.mobileMenuRef.nativeElement,"display","none")),this.productionMode=kn.N.production,this.languages=this._languageService.getLanguages(),this.defaultLanguage=this._languageService.getLanguageStorage().name,this.lang=this._languageService.getLanguageStorage().code}onHamburger(){this.hamburgerIconRef.nativeElement.classList.contains("is-active")?(this._renderer.removeClass(this.hamburgerIconRef.nativeElement,"is-active"),this._renderer.removeClass(this.navMenuRef.nativeElement,"open"),(0,Xn.enableBodyScroll)(this.navMenuRef.nativeElement)):(this._renderer.addClass(this.hamburgerIconRef.nativeElement,"is-active"),this._renderer.addClass(this.navMenuRef.nativeElement,"open"),(0,Xn.disableBodyScroll)(this.navMenuRef.nativeElement))}onLanguageOption(b){this.lang=b.code,this.translate.use(b.code),this.selectedLang.nativeElement.innerText=b.name,this._languageService.setLanguageStorage(b),this.defaultLanguage=this._languageService.getLanguageStorage().name,this._renderer.removeClass(this.langOptionsNav.nativeElement,"w--open"),this._renderer.setStyle(this.langOptionsNav.nativeElement,"display","none")}static#e=this.\u0275fac=function(N){return new(N||B)(m.\u0275\u0275directiveInject(m.Renderer2),m.\u0275\u0275directiveInject(Ts.T),m.\u0275\u0275directiveInject(Vs.sK),m.\u0275\u0275directiveInject(Fr.F0))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:B,selectors:[["app-header"]],viewQuery:function(N,re){if(1&N&&(m.\u0275\u0275viewQuery(Rn,7),m.\u0275\u0275viewQuery(Ht,7),m.\u0275\u0275viewQuery(gn,7),m.\u0275\u0275viewQuery(es,7),m.\u0275\u0275viewQuery(Qa,7)),2&N){let Ee;m.\u0275\u0275queryRefresh(Ee=m.\u0275\u0275loadQuery())&&(re.mobileMenuRef=Ee.first),m.\u0275\u0275queryRefresh(Ee=m.\u0275\u0275loadQuery())&&(re.hamburgerIconRef=Ee.first),m.\u0275\u0275queryRefresh(Ee=m.\u0275\u0275loadQuery())&&(re.navMenuRef=Ee.first),m.\u0275\u0275queryRefresh(Ee=m.\u0275\u0275loadQuery())&&(re.selectedLang=Ee.first),m.\u0275\u0275queryRefresh(Ee=m.\u0275\u0275loadQuery())&&(re.langOptionsNav=Ee.first)}},decls:36,vars:18,consts:[["href","https://api.whatsapp.com/send?phone=971555649572","target","_blank","class","whats-app-fav w-inline-block",4,"ngIf"],["class","nav-bar w-nav",4,"ngIf"],[1,"nav-bar-mobile"],["mobileMenuRef",""],[1,"bp-container"],[1,"brand","w-nav-brand",3,"routerLink"],["role","navigation",1,"nav-menu-mobile"],["navMenuRef",""],["routerLinkActive","w--current","translate","",1,"nav-link","w-nav-link",3,"routerLink","routerLinkActiveOptions","click"],["routerLinkActive","w--current","translate","",1,"nav-link","w-nav-link",3,"routerLink","click"],["href","https://api.whatsapp.com/send?phone=971504378472","target","_blank","translate","",1,"emergency-btn","w-button"],[1,"nav-social-wr"],["href","https://www.facebook.com/emiratesvisa/","target","_blank",1,"social-link","w-inline-block"],["href","https://www.twitter.com","target","_blank",1,"social-link","twitter","w-inline-block"],[1,"lang-picker-dropdown","w-dropdown"],["appDropdown","","classNameToToggle","w--open",1,"language-picker","language-picker-white","w-dropdown-toggle"],[1,"w-icon-dropdown-toggle"],["selectedLang",""],[1,"ddl-white","w-dropdown-list"],["langOptionsNav",""],[4,"ngFor","ngForOf"],[1,"hamburger","hamburger--spring",3,"click"],["hamburgerIconRef",""],[1,"hamburger-box"],[1,"hamburger-inner"],["href","https://api.whatsapp.com/send?phone=971555649572","target","_blank",1,"whats-app-fav","w-inline-block"],[1,"nav-bar","w-nav"],[1,"brand","w-nav-brand","mobile-brand",3,"routerLink"],["role","navigation",1,"nav-menu","w-nav-menu"],["class","nav-link w-nav-link",4,"ngIf"],["routerLinkActive","w--current","translate","",1,"nav-link","w-nav-link",3,"routerLink","routerLinkActiveOptions"],["routerLinkActive","w--current","translate","",1,"nav-link","w-nav-link",3,"routerLink"],["href","https://api.whatsapp.com/se
1nd?phone=971555649572","target","_blank","translate","",1,"emergency-btn","w-button"],[1,"nav-link","w-nav-link"],[1,"ddl","w-dropdown-link",3,"click"]],template:function(N,re){1&N&&(m.\u0275\u0275template(0,uc,1,0,"a",0),m.\u0275\u0275template(1,js,29,17,"div",1),m.\u0275\u0275elementStart(2,"div",2,3)(4,"div",4),m.\u0275\u0275element(5,"a",5),m.\u0275\u0275elementStart(6,"nav",6,7)(8,"a",8),m.\u0275\u0275listener("click",function(){return re.onHamburger()}),m.\u0275\u0275text(9,"Nav.apply"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(10,"a",9),m.\u0275\u0275listener("click",function(){return re.onHamburger()}),m.\u0275\u0275text(11,"Nav.track"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(12,"a",9),m.\u0275\u0275listener("click",function(){return re.onHamburger()}),m.\u0275\u0275text(13,"Nav.faq"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(14,"a",9),m.\u0275\u0275listener("click",function(){return re.onHamburger()}),m.\u0275\u0275text(15,"Nav.blog"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(16,"a",9),m.\u0275\u0275listener("click",function(){return re.onHamburger()}),m.\u0275\u0275text(17,"Nav.contact"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(18,"a",10),m.\u0275\u0275text(19,"Nav.visa"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(20,"div",11),m.\u0275\u0275element(21,"a",12)(22,"a",13),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(23,"div",14)(24,"div",15),m.\u0275\u0275element(25,"div",16),m.\u0275\u0275elementStart(26,"div",null,17),m.\u0275\u0275text(28),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(29,"nav",18,19),m.\u0275\u0275template(31,Jn,3,1,"ng-container",20),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275elementStart(32,"div",21,22),m.\u0275\u0275listener("click",function(){return re.onHamburger()}),m.\u0275\u0275elementStart(34,"div",23),m.\u0275\u0275element(35,"div",24),m.\u0275\u0275elementEnd()()()()),2&N&&(m.\u0275\u0275property("ngIf",!re.router.url.includes("/payment")),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",!re.router.url.includes("/payment")),m.\u0275\u0275advance(4),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(11,ea)),m.\u0275\u0275advance(3),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(12,ea))("routerLinkActiveOptions",m.\u0275\u0275pureFunction0(13,Ro)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(14,ta)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(15,al)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(16,Xa)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(17,$a)),m.\u0275\u0275advance(12),m.\u0275\u0275textInterpolate(re.defaultLanguage),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngForOf",re.languages))},dependencies:[Ae.sg,Ae.O5,Fr.rH,Fr.Od,vs.w,Vs.Pi],styles:['.hamburger[_ngcontent-%COMP%]{cursor:pointer;transition-property:opacity,filter;transition-duration:.15s;transition-timing-function:linear;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible;display:flex;justify-content:flex-end;z-index:1000;visibility:hidden}@media (max-width: 991px){.hamburger[_ngcontent-%COMP%]{visibility:visible;padding:30px 0}.nav-link[_ngcontent-%COMP%]{width:100%!important;justify-content:flex-start!important;align-items:flex-start!important;height:70px!important}.nav-social-wr[_ngcontent-%COMP%]{margin-top:20px}.lang-picker-dropdown[_ngcontent-%COMP%]{width:120px}}@media (max-width: 441px){.hamburger[_ngcontent-%COMP%]{padding:24px 0}}.hamburger-box[_ngcontent-%COMP%]{width:40px;height:24px;display:inline-block;position:relative;z-index:1000}.hamburger-inner[_ngcontent-%COMP%]{display:block;top:50%;margin-top:-2px}.hamburger-inner[_ngcontent-%COMP%], .hamburger-inner[_ngcontent-%COMP%]:before, .hamburger-inner[_ngcontent-%COMP%]:after{width:35px;height:3px;background-color:#fff;border-radius:3px;position:absolute;transition-property:transform;transition-duration:.15s;transition-timing-function:ease}.hamburger-inner[_ngcontent-%COMP%]:before, .hamburger-inner[_ngcontent-%COMP%]:after{content:"";display:block}.hamburger-inner[_ngcontent-%COMP%]:before{top:-10px}.hamburger-inner[_ngcontent-%COMP%]:after{bottom:-10px}.hamburger--spring[_ngcontent-%COMP%] .hamburger-inner[_ngcontent-%COMP%]{top:2px;transition:background-color 0s .13s linear}.hamburger--spring[_ngcontent-%COMP%] .hamburger-inner[_ngcontent-%COMP%]:before{top:10px;transition:top .1s .2s cubic-bezier(.33333,.66667,.66667,1),transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring[_ngcontent-%COMP%] .hamburger-inner[_ngcontent-%COMP%]:after{top:20px;transition:top .2s .2s cubic-bezier(.33333,.66667,.66667,1),transform .13s cubic-bezier(.55,.055,.675,.19)}.hamburger--spring.is-active[_ngcontent-%COMP%] .hamburger-inner[_ngcontent-%COMP%]{transition-delay:.22s;background-color:transparent}.hamburger--spring.is-active[_ngcontent-%COMP%] .hamburger-inner[_ngcontent-%COMP%]:before{top:0;transition:top .1s .15s cubic-bezier(.33333,0,.66667,.33333),transform .13s .22s cubic-bezier(.215,.61,.355,1);transform:translate3d(0,10px,0) rotate(45deg)}.hamburger--spring.is-active[_ngcontent-%COMP%] .hamburger-inner[_ngcontent-%COMP%]:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),transform .13s .22s cubic-bezier(.215,.61,.355,1);transform:translate3d(0,10px,0) rotate(-45deg)}']})}return B})();const Ha=function(){return["/faq"]},ji=function(){return["/about"]},cr=function(){return["/terms"]},Ma=function(){return["/privacy"]};function Pr(B,_){if(1&B&&(m.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div")(3,"div",3)(4,"h1",4),m.\u0275\u0275text(5,"Footer.list1.heading"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(6,"a",5),m.\u0275\u0275text(7,"[email protected]
1om"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(8,"a",6),m.\u0275\u0275text(9,"WhatsApp"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(10,"div",7),m.\u0275\u0275text(11,"+971 50 803 8472"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(12,"div",7),m.\u0275\u0275text(13,"One Central, World Trade Centre Area Dubai"),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(14,"div",3)(15,"h1",4),m.\u0275\u0275text(16,"Footer.list2.heading"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(17,"a",5),m.\u0275\u0275text(18,"[email protected]"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(19,"a",8),m.\u0275\u0275text(20,"FAQ"),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(21,"div",3)(22,"h1",4),m.\u0275\u0275text(23,"Footer.list3.heading"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(24,"a",9),m.\u0275\u0275text(25,"Facebook"),m.\u0275\u0275elementEnd()(),m.\u0275\u0275elementStart(26,"div",3)(27,"h1",4),m.\u0275\u0275text(28,"Footer.list4.heading"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(29,"a",10),m.\u0275\u0275text(30,"Footer.list4.aboutUs"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(31,"a",10),m.\u0275\u0275text(32,"Footer.list4.termOfUse"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(33,"a",10),m.\u0275\u0275text(34,"Footer.list4.privacyPolicy"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(35,"a",11),m.\u0275\u0275text(36,"Footer.list4.careers"),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275element(37,"div",12),m.\u0275\u0275elementStart(38,"div",13)(39,"div",14)(40,"span",15),m.\u0275\u0275text(41,"Footer.about"),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(42,"br"),m.\u0275\u0275text(43),m.\u0275\u0275elementStart(44,"span",15),m.\u0275\u0275text(45,"Footer.copywrites"),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275elementContainer(46),m.\u0275\u0275elementEnd()()),2&B){const b=m.\u0275\u0275nextContext();m.\u0275\u0275advance(2),m.\u0275\u0275classMapInterpolate1("bp-footer ","ar"===b.lang?"text-right":"text-left",""),m.\u0275\u0275advance(17),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(8,Ha)),m.\u0275\u0275advance(10),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(9,ji)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(10,cr)),m.\u0275\u0275advance(2),m.\u0275\u0275property("routerLink",m.\u0275\u0275pureFunction0(11,Ma)),m.\u0275\u0275advance(10),m.\u0275\u0275textInterpolate1("\xa9 ",b.year," ")}}let Ja=(()=>{class B{constructor(b,N){this.router=b,this._languageSerice=N}ngOnInit(){this.year=(new Date).getFullYear(),this.lang=this._languageSerice.getLanguageStorage().code}static#e=this.\u0275fac=function(N){return new(N||B)(m.\u0275\u0275directiveInject(Fr.F0),m.\u0275\u0275directiveInject(Ts.T))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:B,selectors:[["app-footer"]],decls:1,vars:1,consts:[["class","footer-wrapper",4,"ngIf"],[1,"footer-wrapper"],[1,"bp-container"],[1,"footer-column"],["translate","",1,"footer-header"],["href","mailto:[email protected]","target","_blank",1,"footer-link"],["href","https://api.whatsapp.com/send?phone=971555649572","target","_blank",1,"footer-link"],[1,"footer-no-link"],["routerLinkActive","w--current",1,"footer-link",3,"routerLink"],["href","https://www.facebook.com/emiratesvisa/","target","_blank",1,"footer-link"],["translate","",1,"footer-link",3,"routerLink"],["href","mailto:[email protected]","target","_blank","translate","",1,"footer-link"],[1,"cc-wrapper"],[1,"copywrite-wr"],[1,"bp-text","bp-text-centered"],["translate",""]],template:function(N,re){1&N&&m.\u0275\u0275template(0,Pr,47,12,"div",0),2&N&&m.\u0275\u0275property("ngIf",!re.router.url.includes("/payment"))},dependencies:[Ae.O5,Fr.rH,Fr.Od,Vs.Pi],styles:[".bp-logo-wr[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center}"]})}return B})();const Vr=["applyContainer"];function jn(B,_){}let Es=(()=>{class B{constructor(b,N,re,Ee,Ze){this._applyService=b,this._lazyLoaderService=N,this.translate=re,this._languageService=Ee,this.router=Ze,re.addLangs(["en","ar"]),this._languageService.getLanguageStorage(),re.setDefaultLang("en"),re.use("en"),this.router.events.subscribe(Pt=>{Pt instanceof Fr.m2&&("/payment"===Pt.urlAfterRedirects?this.tryHideTawk():this.tryShowTawk())})}ngOnInit(){this._applyService.unloadedModule.subscribe(()=>{this.applyContainer.detach()}),this._applyService.startVisaApplication.subscribe(()=>{this._lazyLoaderService.load("lazy-apply",this.applyContainer).then(()=>{this._applyService.applyModuleLoaded.next(null)})})}tryHideTawk(){const b=setInterval(()=>{typeof Tawk_API<"u"&&Tawk_API.hideWidget&&(Tawk_API.hideWidget(),clearInterval(b))},300)}tryShowTawk(){const b=setInterval(()=>{typeof Tawk_API<"u"&&Tawk_API.showWidget&&(Tawk_API.showWidget(),clearInterval(b))},300)}static#e=this.\u0275fac=function(N){return new(N||B)(m.\u0275\u0275directiveInject(Sa.g),m.\u0275\u0275directiveInject(pe),m.\u0275\u0275directiveInject(Vs.sK),m.\u0275\u0275directiveInject(Ts.T),m.\u0275\u0275directiveInject(Fr.F0))};static#t=this.\u0275cmp=m.\u0275\u0275defineComponent({type:B,selectors:[["app-root"]],viewQuery:function(N,re){if(1&N&&m.\u0275\u0275viewQuery(Vr,7,m.ViewContainerRef),2&N){let Ee;m.\u0275\u0275queryRefresh(Ee=m.\u0275\u0275loadQuery())&&(re.applyContainer=Ee.first)}},decls:6,vars:0,consts:[["id","router-progressbar"],["applyContainer",""]],template:function(N,re){1&
1N&&(m.\u0275\u0275element(0,"ng-progress",0)(1,"app-header")(2,"router-outlet"),m.\u0275\u0275template(3,jn,0,0,"ng-template",null,1,m.\u0275\u0275templateRefExtractor),m.\u0275\u0275element(5,"app-footer"))},dependencies:[Fr.lC,gi,na,Ja]})}return B})();var pa=C(2011),ps=C(1085),Mc=C(8445),ga=C(1041),Io=C(7641),ra=C(6135);const za=[{path:"lazy-apply",loadChildren:()=>Promise.all([C.e(349),C.e(592),C.e(103)]).then(C.bind(C,6103)).then(B=>B.ApplyModule)}];function Wa(){const B={};for(const _ of za)B[_.path]=_.loadChildren;return B}var As=C(281);const Fo=new m.InjectionToken("ngProgressRouterConfig");function ia(B,_){let b=!1;return _.map(N=>b=b||B instanceof N),b}class Bs{constructor(_,b,N){this._config={id:"root",delay:0,startEvents:[Fr.OD],completeEvents:[Fr.m2,Fr.gk,Fr.Q3]},this._config=N?Object.assign({},this._config,N):this._config;const re=_.ref(this._config.id),Ee=(0,fo.of)({}).pipe((0,Co.b)(()=>re.start())),Ze=(0,fo.of)({}).pipe(Kt(this._config.delay),(0,Co.b)(()=>re.complete())),ot=[...this._config.startEvents,...this._config.completeEvents];b.events.pipe((0,Ua.h)(Pt=>ia(Pt,ot)),(0,fa.w)(Pt=>ia(Pt,this._config.startEvents)?Ee:Ze)).subscribe()}}Bs.\u0275fac=function(_){return new(_||Bs)(m.\u0275\u0275inject(or),m.\u0275\u0275inject(Fr.F0),m.\u0275\u0275inject(Fo,8))},Bs.\u0275prov=m.\u0275\u0275defineInjectable({token:Bs,factory:Bs.\u0275fac,providedIn:"root"}),Bs.ngInjectableDef=(0,m.defineInjectable)({factory:function(){return new Bs((0,m.inject)(or),(0,m.inject)(Fr.F0),(0,m.inject)(Fo,8))},token:Bs,providedIn:"root"});let Zs=(()=>{class B{constructor(b){}static withConfig(b){return{ngModule:B,providers:[{provide:Fo,useValue:b}]}}}return B.\u0275fac=function(b){return new(b||B)(m.\u0275\u0275inject(Bs))},B.\u0275mod=m.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=m.\u0275\u0275defineInjector({}),B})();var sa=C(1744),Lt=C(6594),Ka=C(5938);function Yr(B){return new sa.w(B)}let Rc=(()=>{class B{static#e=this.\u0275fac=function(N){return new(N||B)};static#t=this.\u0275mod=m.\u0275\u0275defineNgModule({type:B,bootstrap:[Es]});static#n=this.\u0275inj=m.\u0275\u0275defineInjector({providers:[Ae.uU,{provide:_e,useFactory:Wa},pe,(0,Fr.co)(za)],imports:[c.BrowserModule.withServerTransition({appId:"serverApp"}),oi,ra.kb,Oe.JF,Wr,pa.hO.initializeApp(me_firebaseConfig),ps.yb,Mc.TE,ga.ww,Io.w0.forRoot(),As.k,Gs.withConfig({color:"#ffffff",thick:!0,spinner:!0}),Zs.withConfig({startEvents:[Fr.OD],completeEvents:[Fr.m2],id:"router-progressbar"}),Vs.aw.forRoot({loader:{provide:Vs.Zw,useFactory:Yr,deps:[Oe.eN]},isolate:!1}),Lt.Sv,Ka.Is]})}return B})();kn.N.production&&(0,m.enableProdMode)(),document.addEventListener("DOMContentLoaded",()=>{c.platformBrowser().bootstrapModule(Rc).catch(B=>console.error(B))})},6217:(ln,et,C)=>{"use strict";C.d(et,{nm:()=>Ai});var c=C(4976);C(4650),C(259);var Ve=C(5861),ve=C(6881),ze=C(4859),rt=C(2090),nt=C(1877);const At=new Map,Ue={activated:!1,tokenObservers:[]},Wt={initialized:!1,enabled:!1};function je(pt){return At.get(pt)||Object.assign({},Ue)}function jt(){return Wt}const On="https://content-firebaseappcheck.googleapis.com/v1",yn="exchangeDebugToken",ae={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};class Xe{constructor(ut,Ot,Jt,mn,sr){if(this.operation=ut,this.retryPolicy=Ot,this.getWaitDuration=Jt,this.lowerBound=mn,this.upperBound=sr,this.pending=null,this.nextErrorWaitInterval=mn,mn>sr)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(ut){var Ot=this;return(0,Ve.Z)(function*(){Ot.stop();try{Ot.pending=new rt.BH,yield function qe(pt){return new Promise(ut=>{setTimeout(ut,pt)})}(Ot.getNextRun(ut)),Ot.pending.resolve(),yield Ot.pending.promise,Ot.pending=new rt.BH,yield Ot.operation(),Ot.pending.resolve(),yield Ot.pending.promise,Ot.process(!0).catch(()=>{})}catch(Jt){Ot.retryPolicy(Jt)?Ot.process(!1).catch(()=>{}):Ot.stop()}})()}getNextRun(ut){if(ut)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Ot=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Ot}}}const ft=new rt.LL("appCheck","AppCheck",{"already-initialized":"You have already called
1initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function cn(pt){if(!je(pt).activated)throw ft.create("use-before-activation",{appName:pt.name})}function Wn(pt,ut){return qn.apply(this,arguments)}function qn(){return(qn=(0,Ve.Z)(function*({url:pt,body:ut},Ot){const Jt={"Content-Type":"application/json"},mn=Ot.getImmediate({optional:!0});if(mn){const ri=yield mn.getHeartbeatsHeader();ri&&(Jt["X-Firebase-Client"]=ri)}const sr={method:"POST",body:JSON.stringify(ut),headers:Jt};let yr,Er;try{yr=yield fetch(pt,sr)}catch(ri){throw ft.create("fetch-network-error",{originalErrorMessage:ri?.message})}if(200!==yr.status)throw ft.create("fetch-status-error",{httpStatus:yr.status});try{Er=yield yr.json()}catch(ri){throw ft.create("fetch-parse-error",{originalErrorMessage:ri?.message})}const Cr=Er.ttl.match(/^([\d.]+)(s)$/);if(!Cr||!Cr[2]||isNaN(Number(Cr[1])))throw ft.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Er.ttl}`});const Pi=1e3*Number(Cr[1]),ks=Date.now();return{token:Er.token,expireTimeMillis:ks+Pi,issuedAtTimeMillis:ks}})).apply(this,arguments)}function rn(pt,ut){const{projectId:Ot,appId:Jt,apiKey:mn}=pt.options;return{url:`${On}/projects/${Ot}/apps/${Jt}:${yn}?key=${mn}`,body:{debug_token:ut}}}const _n="firebase-app-check-database",xn=1,Mt="firebase-app-check-store";let se=null;function qt(pt,ut){return dn.apply(this,arguments)}function dn(){return(dn=(0,Ve.Z)(function*(pt,ut){const Jt=(yield function K(){return se||(se=new Promise((pt,ut)=>{try{const Ot=indexedDB.open(_n,xn);Ot.onsuccess=Jt=>{pt(Jt.target.result)},Ot.onerror=Jt=>{var mn;ut(ft.create("storage-open",{originalErrorMessage:null===(mn=Jt.target.error)||void 0===mn?void 0:mn.message}))},Ot.onupgradeneeded=Jt=>{0===Jt.oldVersion&&Jt.target.result.createObjectStore(Mt,{keyPath:"compositeKey"})}}catch(Ot){ut(ft.create("storage-open",{originalErrorMessage:Ot?.message}))}}),se)}()).transaction(Mt,"readwrite"),sr=Jt.objectStore(Mt).put({compositeKey:pt,value:ut});return new Promise((yr,Er)=>{sr.onsuccess=Cr=>{yr()},Jt.onerror=Cr=>{var Pi;Er(ft.create("storage-set",{originalErrorMessage:null===(Pi=Cr.target.error)||void 0===Pi?void 0:Pi.message}))}})})).apply(this,arguments)}const bn=new nt.Yd("@firebase/app-check");function Gn(pt,ut){return(0,rt.hl)()?function Be(pt,ut){return qt(function Mn(pt){return`${pt.options.appId}-${pt.name}`}(pt),ut)}(pt,ut).catch(Ot=>{bn.warn(`Failed to write token to IndexedDB. Error: ${Ot}`)}):Promise.resolve()}function Se(){return jt().enabled}function ct(){return We.apply(this,arguments)}function We(){return(We=(0,Ve.Z)(function*(){const pt=jt();if(pt.enabled&&pt.token)return pt.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const ue={error:"UNKNOWN_ERROR"};function fe(pt){return rt.US.encodeString(JSON.stringify(pt),!1)}function X(pt){return ce.apply(this,arguments)}function ce(){return(ce=(0,Ve.Z)(function*(pt,ut=!1){const Ot=pt.app;cn(Ot);const Jt=je(Ot);let sr,mn=Jt.token;if(mn&&!ht(mn)&&(Jt.token=void 0,mn=void 0),!mn){const Cr=yield Jt.cachedTokenPromise;Cr&&(ht(Cr)?mn=Cr:yield Gn(Ot,void 0))}
1if(!ut&&mn&&ht(mn))return{token:mn.token};let Er,yr=!1;if(Se()){Jt.exchangeTokenPromise||(Jt.exchangeTokenPromise=Wn(rn(Ot,yield ct()),pt.heartbeatServiceProvider).finally(()=>{Jt.exchangeTokenPromise=void 0}),yr=!0);const Cr=yield Jt.exchangeTokenPromise;return yield Gn(Ot,Cr),Jt.token=Cr,{token:Cr.token}}try{Jt.exchangeTokenPromise||(Jt.exchangeTokenPromise=Jt.provider.getToken().finally(()=>{Jt.exchangeTokenPromise=void 0}),yr=!0),mn=yield je(Ot).exchangeTokenPromise}catch(Cr){"appCheck/throttled"===Cr.code?bn.warn(Cr.message):bn.error(Cr),sr=Cr}return mn?sr?Er=ht(mn)?{token:mn.token,internalError:sr}:an(sr):(Er={token:mn.token},Jt.token=mn,yield Gn(Ot,mn)):Er=an(sr),yr&&function Et(pt,ut){const Ot=je(pt).tokenObservers;for(const Jt of Ot)try{"EXTERNAL"===Jt.type&&null!=ut.error?Jt.error(ut.error):Jt.next(ut)}catch{}}(Ot,Er),Er})).apply(this,arguments)}function xe(pt){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,Ve.Z)(function*(pt){const ut=pt.app;cn(ut);const{provider:Ot}=je(ut);if(Se()){const Jt=yield ct(),{token:mn}=yield Wn(rn(ut,Jt),pt.heartbeatServiceProvider);return{token:mn}}{const{token:Jt}=yield Ot.getToken();return{token:Jt}}})).apply(this,arguments)}function ke(pt,ut){const Ot=je(pt),Jt=Ot.tokenObservers.filter(mn=>mn.next!==ut);0===Jt.length&&Ot.tokenRefresher&&Ot.tokenRefresher.isRunning()&&Ot.tokenRefresher.stop(),Ot.tokenObservers=Jt}function Fe(pt){const{app:ut}=pt,Ot=je(ut);let Jt=Ot.tokenRefresher;Jt||(Jt=function Ge(pt){const{app:ut}=pt;return new Xe((0,Ve.Z)(function*(){let Jt;if(Jt=je(ut).token?yield X(pt,!0):yield X(pt),Jt.error)throw Jt.error;if(Jt.internalError)throw Jt.internalError}),()=>!0,()=>{const Ot=je(ut);if(Ot.token){let Jt=Ot.token.issuedAtTimeMillis+.5*(Ot.token.expireTimeMillis-Ot.token.issuedAtTimeMillis)+3e5;return Jt=Math.min(Jt,Ot.token.expireTimeMillis-3e5),Math.max(0,Jt-Date.now())}return 0},ae.RETRIAL_MIN_WAIT,ae.RETRIAL_MAX_WAIT)}(pt),Ot.tokenRefresher=Jt),!Jt.isRunning()&&Ot.isTokenAutoRefreshEnabled&&Jt.start()}function ht(pt){return pt.expireTimeMillis-Date.now()>0}function an(pt){return{token:fe(ue),error:pt}}class $e{constructor(ut,Ot){this.app=ut,this.heartbeatServiceProvider=Ot}_delete(){const{tokenObservers:ut}=je(this.app);for(const Ot of ut)ke(this.app,Ot.next);return Promise.resolve()}}const Nr="app-check-internal";!function Zr(){(0,ve._registerComponent)(new ze.wA("app-check",pt=>function oe(pt,ut){return new $e(pt,ut)}(pt.getProvider("app").getImmediate(),pt.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((pt,ut,Ot)=>{pt.getProvider(Nr).initialize()})),(0,ve._registerComponent)(new ze.wA(Nr,pt=>function j(pt){return{getToken:ut=>X(pt,ut),getLimitedUseToken:()=>xe(pt),addTokenListener:ut=>function Ut(pt,ut,Ot,Jt){const{app:mn}=pt,sr=je(mn);if(sr.tokenObservers=[...sr.tokenObservers,{next:Ot,error:Jt,type:ut}],sr.token&&ht(sr.token)){const Er=sr.token;Promise.resolve().then(()=>{Ot({token:Er.token}),Fe(pt)}).catch(()=>{})}sr.cachedTokenPromise.then(()=>Fe(pt))}(pt,"INTERNAL",ut),removeTokenListener:ut=>ke(pt.app,ut)}}(pt.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,ve.registerVersion)("@firebase/app-check","0.8.0")}();class Ai{constructor(){return(0,c.vb)("app-check")}}typeof window<"u"&&window},1041:(ln,et,C)=>{"use strict";C.d(et,{zQ:()=>jt,ww:()=>On,rT:()=>Ue,f7:()=>je,L6:()=>nt,_Q:()=>At,lh:()=>Wt,Qv:()=>rt,nw:()=>vt});var c=C(4650),m=C(7579),V=C(9646),_e=C(9751),pe=C(8996),me=C(6451),Oe=C(5363),ie=C(3900),Re=C(4004),q=C(4707),de=C(3099);function be(Sn,St,yn){let ae,Ne=!1;return Sn&&"object"==typeof Sn?({bufferSize:ae=1/0,windowTime:St=1/0,refCount:Ne=!1,scheduler:yn}=Sn):ae=Sn??1/0,(0,de.B)({connector:()=>new q.t(ae,St,yn),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Ne})}var lt=C(590),it=C(576);function dt(Sn,St){return(0,it.m)(St)?(0,ie.w)(()=>Sn,St):(0,ie.w)(()=>Sn)}var wt=C(9468),Me=C(9300),Pe=C(4976),Ct=C(2011),He=C(6895),Ve=C(6217),ve=C(9260);const rt=new c.InjectionToken("angularfire2.auth.use-emulator"),nt=new c.InjectionToken("angularfire2.auth.settings"),At=new c.InjectionToken("angularfire2.auth.tenant-id"),Ue=new c.InjectionToken("angularfire2.auth.langugage-code"),Wt=new c.InjectionToken("angularfire2.auth.use-device-language"),je=new c.InjectionToken("angularfire.auth.persistence"),vt=(Sn,St,yn,ae,Ne,Xe,qe,yt)=>(0,Ct.cc)(`${Sn.name}.auth`,"AngularFireAuth",Sn.name,()=>
1{const ft=St.runOutsideAngular(()=>Sn.auth());if(yn&&ft.useEmulator(...yn),ae&&(ft.tenantId=ae),ft.languageCode=Ne,Xe&&ft.useDeviceLanguage(),qe)for(const[$t,cn]of Object.entries(qe))ft.settings[$t]=cn;return yt&&ft.setPersistence(yt),ft},[yn,ae,Ne,Xe,qe,yt]);let jt=(()=>{class Sn{constructor(yn,ae,Ne,Xe,qe,yt,ft,$t,cn,tr,wn,Wn){const qn=new m.x,nn=(0,V.of)(void 0).pipe((0,Oe.Q)(qe.outsideAngular),(0,ie.w)(()=>Xe.runOutsideAngular(()=>Promise.resolve().then(C.bind(C,2644)))),(0,Re.U)(()=>(0,Ct.on)(yn,Xe,ae)),(0,Re.U)(hn=>vt(hn,Xe,yt,$t,cn,tr,ft,wn)),be({bufferSize:1,refCount:!1}));if((0,He.PM)(Ne))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,V.of)(null);else{nn.pipe((0,lt.P)()).subscribe();const rn=nn.pipe((0,ie.w)(Mt=>Mt.getRedirectResult().then(Nt=>Nt,()=>null)),Pe.iC,be({bufferSize:1,refCount:!1})),_n=nn.pipe((0,ie.w)(Mt=>new _e.y(Nt=>({unsubscribe:Xe.runOutsideAngular(()=>Mt.onAuthStateChanged(se=>Nt.next(se),se=>Nt.error(se),()=>Nt.complete()))})))),xn=nn.pipe((0,ie.w)(Mt=>new _e.y(Nt=>({unsubscribe:Xe.runOutsideAngular(()=>Mt.onIdTokenChanged(se=>Nt.next(se),se=>Nt.error(se),()=>Nt.complete()))}))));this.authState=rn.pipe(dt(_n),(0,wt.R)(qe.outsideAngular),(0,Oe.Q)(qe.insideAngular)),this.user=rn.pipe(dt(xn),(0,wt.R)(qe.outsideAngular),(0,Oe.Q)(qe.insideAngular)),this.idToken=this.user.pipe((0,ie.w)(Mt=>Mt?(0,pe.D)(Mt.getIdToken()):(0,V.of)(null))),this.idTokenResult=this.user.pipe((0,ie.w)(Mt=>Mt?(0,pe.D)(Mt.getIdTokenResult()):(0,V.of)(null))),this.credential=(0,me.T)(rn,qn,this.authState.pipe((0,Me.h)(Mt=>!Mt))).pipe((0,Re.U)(Mt=>Mt?.user?Mt:null),(0,wt.R)(qe.outsideAngular),(0,Oe.Q)(qe.insideAngular))}return(0,Ct.pX)(this,nn,Xe,{spy:{apply:(hn,rn,_n)=>{(hn.startsWith("signIn")||hn.startsWith("createUser"))&&_n.then(xn=>qn.next(xn))}}})}}return Sn.\u0275fac=function(yn){return new(yn||Sn)(c.\u0275\u0275inject(Ct.Dh),c.\u0275\u0275inject(Ct.xv,8),c.\u0275\u0275inject(c.PLATFORM_ID),c.\u0275\u0275inject(c.NgZone),c.\u0275\u0275inject(Pe.HU),c.\u0275\u0275inject(rt,8),c.\u0275\u0275inject(nt,8),c.\u0275\u0275inject(At,8),c.\u0275\u0275inject(Ue,8),c.\u0275\u0275inject(Wt,8),c.\u0275\u0275inject(je,8),c.\u0275\u0275inject(Ve.nm,8))},Sn.\u0275prov=c.\u0275\u0275defineInjectable({token:Sn,factory:Sn.\u0275fac,providedIn:"any"}),Sn})(),On=(()=>{class Sn{constructor(){ve.Z.registerVersion("angularfire",Pe.q4.full,"auth-compat")}}return Sn.\u0275fac=function(yn){return new(yn||Sn)},Sn.\u0275mod=c.\u0275\u0275defineNgModule({type:Sn}),Sn.\u0275inj=c.\u0275\u0275defineInjector({providers:[jt]}),Sn})()},1085:(ln,et,C)=>{"use strict";C.d(et,{ST:()=>Se,yb:()=>ct});var c=C(4650),m=C(4986),V=C(9751),_e=C(8996),pe=C(9646),me=C(4976),Oe=C(8675),ie=C(1520),Re=C(4004),q=C(2940),de=C(1884),be=C(9300),lt=C(2011),it=C(6895),wt=(C(2644),C(3942)),Me=C(2810),Pe=C(2090),Ct=C(4859);function ve(We,Q){if(void 0===Q)return{merge:!1};if(void 0!==Q.mergeFields&&void 0!==Q.merge)throw new Me.WA("invalid-argument",`Invalid options passed to function ${We}(): You cannot specify both "merge" and "mergeFields".`);return Q}function ze(){if(typeof Uint8Array>"u")throw new Me.WA("unimplemented","Uint8Arrays are not available in this environment.")}function rt(){if(!(0,Me.Me)())throw new Me.WA("unimplemented","Blobs are unavailable in Firestore in this environment.")}class nt{constructor(Q){this._delegate=Q}static fromBase64String(Q){return rt(),new nt(Me.Jj.fromBase64String(Q))}static fromUint8Array(Q){return ze(),new nt(Me.Jj.fromUint8Array(Q))}toBase64(){return rt(),this._delegate.toBase64()}toUint8Array(){return ze(),this._delegate.toUint8Array()}isEqual(Q){return this._delegate.isEqual(Q._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function At(We){return function Ue(We,Q){if("object"!=typeof We||null===We)return!1;const ue=We;for(const fe of Q)if(fe in ue&&"function"==typeof ue[fe])return!0;return!1}(We,["next","error","complete"])}class Wt{enableIndexedDbPersistence(Q,ue){return(0,Me.ST)(Q._delegate,{forceOwnership:ue})}enableMultiTabIndexedDbPersistence(Q){return(0,Me.fH)(Q._delegate)}clearIndexedDbPersistence(Q){return(0,Me.Fc)(Q._delegate)}}class je{constructor(Q,ue,fe){this._delegate=ue,this._persistenceProvider=fe,this.INTERNAL={delete:()=>this.terminate()},Q instanceof Me.l7||(this._appCompat=Q)}get _databaseId(){return this._delegate._databaseId}settings(Q){const ue=this._delegate._getSettings();!Q.merge&&ue.host!==Q.host&&(0,Me.yq)("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),Q.merge&&delete(Q=Object.assign(Object.assign({},ue),Q)).merge,this._delegate._setSettings(Q)}useEmulator(Q,ue,fe={}){(0,Me.at)(this._delegate,Q,ue,fe)}enableNetwork(){return(0,Me.Ix)(this._delegate)}disableNetwork(){return(0,Me.TF)(this._delegate)}enablePersistence(Q){let ue=!1,fe=!1;return Q&&(ue=!!Q.synchronizeTabs,fe=!!Q.experimentalForceOwningTab,(0,Me.Wi)("synchronizeTabs",ue,"experimentalForceOwningTab",fe)),ue?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,fe)}clearPersistence(){return this._persistenceProvider.clearIndexedDbPersistence(this)}terminate(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}waitForPendingWrites(){return(0,Me.Mx)(this._delegate)}onSnapshotsInSync(Q){return(0,Me.sc)(this._delegate,Q)}get app(){if(!this._appCompat)throw new Me.WA("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(Q){try{return new tr(this,(0,Me.hJ)(this._delegate,Q))}catch(ue){throw ae(ue,"collection()","Firestore.collection()")}}doc(Q){try{return new yn(this,(0,Me.JU)(this._delegate,Q))}catch(ue){throw ae(ue,"doc()","Firestore.doc()")}}collectionGroup(Q){try{return new ft(this,(0,Me.B$)(this._delegate,Q))}catch(ue){throw ae(ue,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(Q){return(0,Me.i3)(this._delegate,ue=>Q(new On(this,ue)))}batch(){return(0,Me.qY)(this._delegate),new Sn(new Me.PU(this._delegate,Q=>(0,Me.GL)(this._delegate,Q)))}loadBundle(Q){return(0,Me.Pb)(this._delegate,Q)}namedQuery(Q){return(0,Me.L$)(this._delegate,Q).then(ue=>ue?new ft(this,ue):null)}}class vt extends Me.u7{constructor(Q){super(),this.firestore=Q}
1convertBytes(Q){return new nt(new Me.Jj(Q))}convertReference(Q){const ue=this.convertDocumentKey(Q,this.firestore._databaseId);return yn.forKey(ue,this.firestore,null)}}class On{constructor(Q,ue){this._firestore=Q,this._delegate=ue,this._userDataWriter=new vt(Q)}get(Q){const ue=wn(Q);return this._delegate.get(ue).then(fe=>new qe(this._firestore,new Me.xU(this._firestore._delegate,this._userDataWriter,fe._key,fe._document,fe.metadata,ue.converter)))}set(Q,ue,fe){const X=wn(Q);return fe?(ve("Transaction.set",fe),this._delegate.set(X,ue,fe)):this._delegate.set(X,ue),this}update(Q,ue,fe,...X){const ce=wn(Q);return 2===arguments.length?this._delegate.update(ce,ue):this._delegate.update(ce,ue,fe,...X),this}delete(Q){const ue=wn(Q);return this._delegate.delete(ue),this}}class Sn{constructor(Q){this._delegate=Q}set(Q,ue,fe){const X=wn(Q);return fe?(ve("WriteBatch.set",fe),this._delegate.set(X,ue,fe)):this._delegate.set(X,ue),this}update(Q,ue,fe,...X){const ce=wn(Q);return 2===arguments.length?this._delegate.update(ce,ue):this._delegate.update(ce,ue,fe,...X),this}delete(Q){const ue=wn(Q);return this._delegate.delete(ue),this}commit(){return this._delegate.commit()}}class St{constructor(Q,ue,fe){this._firestore=Q,this._userDataWriter=ue,this._delegate=fe}fromFirestore(Q,ue){const fe=new Me.$q(this._firestore._delegate,this._userDataWriter,Q._key,Q._document,Q.metadata,null);return this._delegate.fromFirestore(new yt(this._firestore,fe),ue??{})}toFirestore(Q,ue){return ue?this._delegate.toFirestore(Q,ue):this._delegate.toFirestore(Q)}static getInstance(Q,ue){const fe=St.INSTANCES;let X=fe.get(Q);X||(X=new WeakMap,fe.set(Q,X));let ce=X.get(ue);return ce||(ce=new St(Q,new vt(Q),ue),X.set(ue,ce)),ce}}St.INSTANCES=new WeakMap;class yn{constructor(Q,ue){this.firestore=Q,this._delegate=ue,this._userDataWriter=new vt(Q)}static forPath(Q,ue,fe){if(Q.length%2!=0)throw new Me.WA("invalid-argument",`Invalid document reference. Document references must have an even number of segments, but ${Q.canonicalString()} has ${Q.length}`);return new yn(ue,new Me.my(ue._delegate,fe,new Me.Ky(Q)))}static forKey(Q,ue,fe){return new yn(ue,new Me.my(ue._delegate,fe,Q))}get id(){return this._delegate.id}get parent(){return new tr(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(Q){try{return new tr(this.firestore,(0,Me.hJ)(this._delegate,Q))}catch(ue){throw ae(ue,"collection()","DocumentReference.collection()")}}isEqual(Q){return(Q=(0,Pe.m9)(Q))instanceof Me.my&&(0,Me.Eo)(this._delegate,Q)}set(Q,ue){ue=ve("DocumentReference.set",ue);try{return ue?(0,Me.pl)(this._delegate,Q,ue):(0,Me.pl)(this._delegate,Q)}catch(fe){throw ae(fe,"setDoc()","DocumentReference.set()")}}update(Q,ue,...fe){try{return 1===arguments.length?(0,Me.r7)(this._delegate,Q):(0,Me.r7)(this._delegate,Q,ue,...fe)}catch(X){throw ae(X,"updateDoc()","DocumentReference.update()")}}delete(){return(0,Me.oe)(this._delegate)}onSnapshot(...Q){const ue=Ne(Q),fe=Xe(Q,X=>new qe(this.firestore,new Me.xU(this.firestore._delegate,this._userDataWriter,X._key,X._document,X.metadata,this._delegate.converter)));return(0,Me.cf)(this._delegate,ue,fe)}get(Q){let ue;return ue="cache"===Q?.source?(0,Me.kl)(this._delegate):"server"===Q?.source?(0,Me.Xk)(this._delegate):(0,Me.QT)(this._delegate),ue.then(fe=>new qe(this.firestore,new Me.xU(this.firestore._delegate,this._userDataWriter,fe._key,fe._document,fe.metadata,this._delegate.converter)))}withConverter(Q){return new yn(this.firestore,this._delegate.withConverter(Q?St.getInstance(this.firestore,Q):null))}}function ae(We,Q,ue){return We.message=We.message.replace(Q,ue),We}function Ne(We){for(const Q of We)if("object"==typeof Q&&!At(Q))return Q;return{}}function Xe(We,Q){var ue,fe;let X;return X=At(We[0])?We[0]:At(We[1])?We[1]:"function"==typeof We[0]?{next:We[0],error:We[1],complete:We[2]}:{next:We[1],error:We[2],complete:We[3]},{next:ce=>{X.next&&X.next(Q(ce))},error:null===(ue=X.error)||void 0===ue?void 0:ue.bind(X),complete:null===(fe=X.complete)||void 0===fe?void 0:fe.bind(X)}}class qe{constructor(Q,ue){this._firestore=Q,this._delegate=ue}get ref(){return new yn(this._firestore,this._delegate.ref)}get id(){return this._delegate.id}get metadata(){return this._delegate.metadata}get exists(){return this._delegate.exists()}data(Q){return this._delegate.data(Q)}get(Q,ue){return this._delegate.get(Q,ue)}isEqual(Q){return(0,Me.qK)(this._delegate,Q._delegate)}}class yt extends qe{data(Q){const ue=this._delegate.data(Q);return(0,Me.K9)(void 0!==ue,"Document in a QueryDocumentSnapshot should exist"),ue}}class ft{constructor(Q,ue){this.firestore=Q,this._delegate=ue,this._userDataWriter=new vt(Q)}where(Q,ue,fe){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.ar)(Q,ue,fe)))}catch(X){throw ae(X,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(Q,ue){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.Xo)(Q,ue)))}catch(fe){throw ae(fe,/(orderBy|where)\(\)/,"Query.$1()")}}limit(Q){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.b9)(Q)))}catch(ue){throw ae(ue,"limit()","Query.limit()")}}limitToLast(Q){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.vh)(Q)))}catch(ue){throw ae(ue,"limitToLast()","Query.limitToLast()")}}startAt(...Q){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.e0)(...Q)))}catch(ue){throw ae(ue,"startAt()","Query.startAt()")}}startAfter(...Q){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.TQ)(...Q)))}catch(ue){throw ae(ue,"startAfter()","Query.startAfter()")}}endBefore(...Q){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.Lx)(...Q)))}catch(ue){throw ae(ue,"endBefore()","Query.endBefore()")}}endAt(...Q){try{return new ft(this.firestore,(0,Me.IO)(this._delegate,(0,Me.Wu)(...Q)))}catch(ue){throw ae(ue,"endAt()","Query.endAt()")}}isEqual(Q){return(0,Me.iE)(this._delegate,Q._delegate)}get(Q){let ue;return ue="cache"===Q?.source?(0,Me.UQ)(this._delegate):"server"===Q?.source?(0,Me.zN)(this._delegate):(0,Me.PL)(this._delegate),ue.then(fe=>
1new cn(this.firestore,new Me.W(this.firestore._delegate,this._userDataWriter,this._delegate,fe._snapshot)))}onSnapshot(...Q){const ue=Ne(Q),fe=Xe(Q,X=>new cn(this.firestore,new Me.W(this.firestore._delegate,this._userDataWriter,this._delegate,X._snapshot)));return(0,Me.cf)(this._delegate,ue,fe)}withConverter(Q){return new ft(this.firestore,this._delegate.withConverter(Q?St.getInstance(this.firestore,Q):null))}}class $t{constructor(Q,ue){this._firestore=Q,this._delegate=ue}get type(){return this._delegate.type}get doc(){return new yt(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class cn{constructor(Q,ue){this._firestore=Q,this._delegate=ue}get query(){return new ft(this._firestore,this._delegate.query)}get metadata(){return this._delegate.metadata}get size(){return this._delegate.size}get empty(){return this._delegate.empty}get docs(){return this._delegate.docs.map(Q=>new yt(this._firestore,Q))}docChanges(Q){return this._delegate.docChanges(Q).map(ue=>new $t(this._firestore,ue))}forEach(Q,ue){this._delegate.forEach(fe=>{Q.call(ue,new yt(this._firestore,fe))})}isEqual(Q){return(0,Me.qK)(this._delegate,Q._delegate)}}class tr extends ft{constructor(Q,ue){super(Q,ue),this.firestore=Q,this._delegate=ue}get id(){return this._delegate.id}get path(){return this._delegate.path}get parent(){const Q=this._delegate.parent;return Q?new yn(this.firestore,Q):null}doc(Q){try{return new yn(this.firestore,void 0===Q?(0,Me.JU)(this._delegate):(0,Me.JU)(this._delegate,Q))}catch(ue){throw ae(ue,"doc()","CollectionReference.doc()")}}add(Q){return(0,Me.ET)(this._delegate,Q).then(ue=>new yn(this.firestore,ue))}isEqual(Q){return(0,Me.Eo)(this._delegate,Q._delegate)}withConverter(Q){return new tr(this.firestore,this._delegate.withConverter(Q?St.getInstance(this.firestore,Q):null))}}function wn(We){return(0,Me.Cf)(We,Me.my)}class Wn{constructor(...Q){this._delegate=new Me.Lz(...Q)}static documentId(){return new Wn(Me.Xb.keyField().canonicalString())}isEqual(Q){return(Q=(0,Pe.m9)(Q))instanceof Me.Lz&&this._delegate._internalPath.isEqual(Q._internalPath)}}class qn{constructor(Q){this._delegate=Q}static serverTimestamp(){const Q=(0,Me.Bt)();return Q._methodName="FieldValue.serverTimestamp",new qn(Q)}static delete(){const Q=(0,Me.AK)();return Q._methodName="FieldValue.delete",new qn(Q)}static arrayUnion(...Q){const ue=(0,Me.vr)(...Q);return ue._methodName="FieldValue.arrayUnion",new qn(ue)}static arrayRemove(...Q){const ue=(0,Me.Ab)(...Q);return ue._methodName="FieldValue.arrayRemove",new qn(ue)}static increment(Q){const ue=(0,Me.nP)(Q);return ue._methodName="FieldValue.increment",new qn(ue)}isEqual(Q){return this._delegate.isEqual(Q._delegate)}}const nn={Firestore:je,GeoPoint:Me.F8,Timestamp:Me.EK,Blob:nt,Transaction:On,WriteBatch:Sn,DocumentReference:yn,DocumentSnapshot:qe,Query:ft,QueryDocumentSnapshot:yt,QuerySnapshot:cn,CollectionReference:tr,FieldPath:Wn,FieldValue:qn,setLogLevel:function jt(We){(0,Me.Ub)(We)},CACHE_SIZE_UNLIMITED:Me.IX};!function rn(We){(function hn(We,Q){We.INTERNAL.registerComponent(new Ct.wA("firestore-compat",ue=>{const fe=ue.getProvider("app-compat").getImmediate(),X=ue.getProvider("firestore").getImmediate();return Q(fe,X)},"PUBLIC").setServiceProps(Object.assign({},nn)))})(We,(Q,ue)=>new je(Q,ue,new Wt)),We.registerVersion("@firebase/firestore-compat","0.3.12")}(wt.Z);var _n=C(1041),xn=C(6217),Mt=C(9260);function se(We,Q){return function Nt(We,Q=m.z){return new V.y(ue=>{let fe;return null!=Q?Q.schedule(()=>{fe=We.onSnapshot({includeMetadataChanges:!0},ue)}):fe=We.onSnapshot({includeMetadataChanges:!0},ue),()=>{fe?.()}})}(We,Q)}function Te(We,Q){return se(We,Q).pipe((0,Re.U)(ue=>({payload:ue,type:"query"})))}function Be(We,Q){return Te(We,Q).pipe((0,Oe.O)(void 0),(0,ie.G)(),(0,Re.U)(([ue,fe])=>{const X=fe.payload.docChanges(),ce=X.map(xe=>({type:xe.type,payload:xe}));return ue&&JSON.stringify(ue.payload.metadata)!==JSON.stringify(fe.payload.metadata)&&fe.payload.docs.forEach((xe,Ft)=>{const Ut=X.find(Fe=>Fe.doc.ref.isEqual(xe.ref)),ke=ue?.payload.docs.find(Fe=>Fe.ref.isEqual(xe.ref));Ut&&JSON.stringify(Ut.doc.metadata)===JSON.stringify(xe.metadata)||!Ut&&ke&&JSON.stringify(ke.metadata)===JSON.stringify(xe.metadata)||ce.push({type:"modified",payload:{oldIndex:Ft,newIndex:Ft,type:"modified",doc:xe}})}),ce}))}function It(We,Q,ue){return Be(We,ue).pipe((0,q.R)((fe,X)=>function Yt(We,Q,ue){return Q.forEach(fe=>{ue.indexOf(fe.type)>-1&&(We=function dn(We,Q){switch(Q.type){case"added":if(!We[Q.newIndex]||!We[Q.newIndex].doc.ref.isEqual(Q.doc.ref))return qt(We,Q.newIndex,0,Q);break;case"modified":if(null==We[Q.oldIndex]||We[Q.oldIndex].doc.ref.isEqual(Q.doc.ref)){if(Q.oldIndex!==Q.newIndex){const ue=We.slice();return ue.splice(Q.oldIndex,1),ue.splice(Q.newIndex,0,Q),ue}return qt(We,Q.newIndex,1,Q)}break;case"removed":if(We[Q.oldIndex]&&We[Q.oldIndex].doc.ref.isEqual(Q.doc.ref))return qt(We,Q.oldIndex,1)}return We}(We,fe))}),We}(fe,X.map(ce=>ce.payload),Q),[]),(0,de.x)(),(0,Re.U)(fe=>fe.map(X=>
1({type:X.type,payload:X}))))}function qt(We,Q,ue,...fe){const X=We.slice();return X.splice(Q,ue,...fe),X}function sn(We){return(!We||0===We.length)&&(We=["added","removed","modified"]),We}class Xt{constructor(Q,ue,fe){this.ref=Q,this.query=ue,this.afs=fe}stateChanges(Q){let ue=Be(this.query,this.afs.schedulers.outsideAngular);return Q&&Q.length>0&&(ue=ue.pipe((0,Re.U)(fe=>fe.filter(X=>Q.indexOf(X.type)>-1)))),ue.pipe((0,Oe.O)(void 0),(0,ie.G)(),(0,be.h)(([fe,X])=>X.length>0||!fe),(0,Re.U)(([fe,X])=>X),me.iC)}auditTrail(Q){return this.stateChanges(Q).pipe((0,q.R)((ue,fe)=>[...ue,...fe],[]))}snapshotChanges(Q){const ue=sn(Q);return It(this.query,ue,this.afs.schedulers.outsideAngular).pipe(me.iC)}valueChanges(Q={}){return Te(this.query,this.afs.schedulers.outsideAngular).pipe((0,Re.U)(ue=>ue.payload.docs.map(fe=>Q.idField?Object.assign(Object.assign({},fe.data()),{[Q.idField]:fe.id}):fe.data())),me.iC)}get(Q){return(0,_e.D)(this.query.get(Q)).pipe(me.iC)}add(Q){return this.ref.add(Q)}doc(Q){return new Mn(this.ref.doc(Q),this.afs)}}class Mn{constructor(Q,ue){this.ref=Q,this.afs=ue}set(Q,ue){return this.ref.set(Q,ue)}update(Q){return this.ref.update(Q)}delete(){return this.ref.delete()}collection(Q,ue){const fe=this.ref.collection(Q),{ref:X,query:ce}=en(fe,ue);return new Xt(X,ce,this.afs)}snapshotChanges(){return function K(We,Q){return se(We,Q).pipe((0,Oe.O)(void 0),(0,ie.G)(),(0,Re.U)(([ue,fe])=>fe.exists?ue?.exists?{payload:fe,type:"modified"}:{payload:fe,type:"added"}:{payload:fe,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(me.iC)}valueChanges(Q={}){return this.snapshotChanges().pipe((0,Re.U)(({payload:ue})=>Q.idField?Object.assign(Object.assign({},ue.data()),{[Q.idField]:ue.id}):ue.data()))}get(Q){return(0,_e.D)(this.ref.get(Q)).pipe(me.iC)}}class bn{constructor(Q,ue){this.query=Q,this.afs=ue}stateChanges(Q){return Q&&0!==Q.length?Be(this.query,this.afs.schedulers.outsideAngular).pipe((0,Re.U)(ue=>ue.filter(fe=>Q.indexOf(fe.type)>-1)),(0,be.h)(ue=>ue.length>0),me.iC):Be(this.query,this.afs.schedulers.outsideAngular).pipe(me.iC)}auditTrail(Q){return this.stateChanges(Q).pipe((0,q.R)((ue,fe)=>[...ue,...fe],[]))}snapshotChanges(Q){const ue=sn(Q);return It(this.query,ue,this.afs.schedulers.outsideAngular).pipe(me.iC)}valueChanges(Q={}){return Te(this.query,this.afs.schedulers.outsideAngular).pipe((0,Re.U)(fe=>fe.payload.docs.map(X=>Q.idField?Object.assign({[Q.idField]:X.id},X.data()):X.data())),me.iC)}get(Q){return(0,_e.D)(this.query.get(Q)).pipe(me.iC)}}const Dr=new c.InjectionToken("angularfire2.enableFirestorePersistence"),vr=new c.InjectionToken("angularfire2.firestore.persistenceSettings"),Gn=new c.InjectionToken("angularfire2.firestore.settings"),bt=new c.InjectionToken("angularfire2.firestore.use-emulator");function en(We,Q=(ue=>ue)){return{query:Q(We),ref:We}}let Se=(()=>{class We{constructor(ue,fe,X,ce,xe,Ft,Ut,ke,Fe,Ge,Et,ht,an,$e,oe,j,$){this.schedulers=Ut;const Ie=(0,lt.on)(ue,Ft,fe),Qe=Fe;Ge&&(0,_n.nw)(Ie,Ft,Et,an,$e,oe,ht,j),[this.firestore,this.persistenceEnabled$]=(0,lt.cc)(`${Ie.name}.firestore`,"AngularFirestore",Ie.name,()=>{const kt=Ft.runOutsideAngular(()=>Ie.firestore());if(ce&&kt.settings(ce),Qe&&kt.useEmulator(...Qe),X&&!(0,it.PM)(xe)){const Cn=()=>{try{return(0,_e.D)(kt.enablePersistence(ke||void 0).then(()=>!0,()=>!1))}catch(nr){return typeof console<"u"&&console.warn(nr),(0,pe.of)(!1)}};return[kt,Ft.runOutsideAngular(Cn)]}return[kt,(0,pe.of)(!1)]},[ce,Qe,X])}collection(ue,fe){let X;X="string"==typeof ue?this.firestore.collection(ue):ue;const{ref:ce,query:xe}=en(X,fe),Ft=this.schedulers.ngZone.run(()=>ce);return new Xt(Ft,xe,this)}collectionGroup(ue,fe){const X=fe||(xe=>xe),ce=this.firestore.collectionGroup(ue);return new bn(X(ce),this)}doc(ue){let fe;fe="string"==typeof ue?this.firestore.doc(ue):ue;const X=this.schedulers.ngZone.run(()=>fe);return new Mn(X,this)}createId(){return this.firestore.collection("_").doc().id}}return We.\u0275fac=function(ue){return new(ue||We)(c.\u0275\u0275inject(lt.Dh),c.\u0275\u0275inject(lt.xv,8),c.\u0275\u0275inject(Dr,8),c.\u0275\u0275inject(Gn,8),
1c.\u0275\u0275inject(c.PLATFORM_ID),c.\u0275\u0275inject(c.NgZone),c.\u0275\u0275inject(me.HU),c.\u0275\u0275inject(vr,8),c.\u0275\u0275inject(bt,8),c.\u0275\u0275inject(_n.zQ,8),c.\u0275\u0275inject(_n.Qv,8),c.\u0275\u0275inject(_n.L6,8),c.\u0275\u0275inject(_n._Q,8),c.\u0275\u0275inject(_n.rT,8),c.\u0275\u0275inject(_n.lh,8),c.\u0275\u0275inject(_n.f7,8),c.\u0275\u0275inject(xn.nm,8))},We.\u0275prov=c.\u0275\u0275defineInjectable({token:We,factory:We.\u0275fac,providedIn:"any"}),We})(),ct=(()=>{class We{constructor(){Mt.Z.registerVersion("angularfire",me.q4.full,"fst-compat")}static enablePersistence(ue){return{ngModule:We,providers:[{provide:Dr,useValue:!0},{provide:vr,useValue:ue}]}}}return We.\u0275fac=function(ue){return new(ue||We)},We.\u0275mod=c.\u0275\u0275defineNgModule({type:We}),We.\u0275inj=c.\u0275\u0275defineInjector({providers:[Se]}),We})()},8445:(ln,et,C)=>{"use strict";C.d(et,{Q1:()=>Ls,TE:()=>Ks});var c=C(9751),m=C(9646),V=C(8996),_e=C(8372),pe=C(4004),me=C(3900),Oe=C(4976),ie=C(4650),Re=C(2011),q=C(3942),de=C(5861),be=C(6881),lt=C(2090),it=C(4859);const dt="firebasestorage.googleapis.com",wt="storageBucket";class He extends lt.ZR{constructor(W,Ae,Je=0){super(ve(W),`Firebase Storage: ${Ae} (${ve(W)})`),this.status_=Je,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,He.prototype)}get status(){return this.status_}set status(W){this.status_=W}_codeEquals(W){return ve(W)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(W){this.customData.serverResponse=W,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var Ve=(()=>{return(Y=Ve||(Ve={})).UNKNOWN="unknown",Y.OBJECT_NOT_FOUND="object-not-found",Y.BUCKET_NOT_FOUND="bucket-not-found",Y.PROJECT_NOT_FOUND="project-not-found",Y.QUOTA_EXCEEDED="quota-exceeded",Y.UNAUTHENTICATED="unauthenticated",Y.UNAUTHORIZED="unauthorized",Y.UNAUTHORIZED_APP="unauthorized-app",Y.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",Y.INVALID_CHECKSUM="invalid-checksum",Y.CANCELED="canceled",Y.INVALID_EVENT_NAME="invalid-event-name",Y.INVALID_URL="invalid-url",Y.INVALID_DEFAULT_BUCKET="invalid-default-bucket",Y.NO_DEFAULT_BUCKET="no-default-bucket",Y.CANNOT_SLICE_BLOB="cannot-slice-blob",Y.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",Y.NO_DOWNLOAD_URL="no-download-url",Y.INVALID_ARGUMENT="invalid-argument",Y.INVALID_ARGUMENT_COUNT="invalid-argument-count",Y.APP_DELETED="app-deleted",Y.INVALID_ROOT_OPERATION="invalid-root-operation",Y.INVALID_FORMAT="invalid-format",Y.INTERNAL_ERROR="internal-error",Y.UNSUPPORTED_ENVIRONMENT="unsupported-environment",Ve;var Y})();function ve(Y){return"storage/"+Y}function ze(){return new He(Ve.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function je(){return new He(Ve.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function vt(){return new He(Ve.CANCELED,"User canceled the upload/download.")}function St(){return new He(Ve.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function Xe(Y){return new He(Ve.INVALID_ARGUMENT,Y)}function qe(){return new He(Ve.APP_DELETED,"The Firebase app was deleted.")}function yt(Y){return new He(Ve.INVALID_ROOT_OPERATION,"The operation '"+Y+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function ft(Y,W){return new He(Ve.INVALID_FORMAT,"String does not match format '"+Y+"': "+W)}function $t(Y){throw new He(Ve.INTERNAL_ERROR,"Internal error: "+Y)}class cn{constructor(W,Ae){this.bucket=W,this.path_=Ae}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const W=encodeURIComponent;return"/b/"+W(this.bucket)+"/o/"+W(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(W,Ae){let Je;try{Je=cn.makeFromUrl(W,Ae)}catch{return new cn(W,"")}if(""===Je.path)return Je;throw function On(Y){return new He(Ve.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+Y+"'.")}(W)}static makeFromUrl(W,Ae){let Je=null;const gt="([A-Za-z0-9.\\-_]+)",S=new RegExp("^gs://"+gt+"(/(.*))?$","i");function P(Wr){Wr.path_=decodeURIComponent(Wr.path)}const Tt=Ae.replace(/[.]/g,"\\."),hi=[{regex:S,indices:{bucket:1,path:3},postModify:function Qt(Wr){"/"===Wr.path.charAt(Wr.path.length-1)&&(Wr.path_=Wr.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${Tt}/v[A-Za-z0-9_]+/b/${gt}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:P},{regex:new RegExp(`^https?://${Ae===dt?"(?:storage.googleapis.com|storage.cloud.google.com)":Ae}/${gt}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:P}];for(let Wr=0;Wr<hi.length;Wr++){const is=hi[Wr],ss=is.regex.exec(W);if(ss){let Ui=ss[is.indices.path];Ui||(Ui=""),Je=new cn(ss[is.indices.bucket],Ui),is.postModify(Je);break}}
1if(null==Je)throw function jt(Y){return new He(Ve.INVALID_URL,"Invalid URL '"+Y+"'.")}(W);return Je}}class tr{constructor(W){this.promise_=Promise.reject(W)}getPromise(){return this.promise_}cancel(W=!1){}}function rn(Y){return"string"==typeof Y||Y instanceof String}function _n(Y){return xn()&&Y instanceof Blob}function xn(){return typeof Blob<"u"&&!(0,lt.UG)()}function Mt(Y,W,Ae,Je){if(Je<W)throw Xe(`Invalid value for '${Y}'. Expected ${W} or greater.`);if(Je>Ae)throw Xe(`Invalid value for '${Y}'. Expected ${Ae} or less.`)}function Nt(Y,W,Ae){let Je=W;return null==Ae&&(Je=`https://${W}`),`${Ae}://${Je}/v0${Y}`}function se(Y){const W=encodeURIComponent;let Ae="?";for(const Je in Y)Y.hasOwnProperty(Je)&&(Ae=Ae+(W(Je)+"=")+W(Y[Je])+"&");return Ae=Ae.slice(0,-1),Ae}var K=(()=>{return(Y=K||(K={}))[Y.NO_ERROR=0]="NO_ERROR",Y[Y.NETWORK_ERROR=1]="NETWORK_ERROR",Y[Y.ABORT=2]="ABORT",K;var Y})();function Te(Y,W){const Ae=Y>=500&&Y<600,gt=-1!==[408,429].indexOf(Y),Qt=-1!==W.indexOf(Y);return Ae||gt||Qt}class Be{constructor(W,Ae,Je,gt,Qt,En,S,x,P,le,Tt,In=!0){this.url_=W,this.method_=Ae,this.headers_=Je,this.body_=gt,this.successCodes_=Qt,this.additionalRetryCodes_=En,this.callback_=S,this.errorCallback_=x,this.timeout_=P,this.progressCallback_=le,this.connectionFactory_=Tt,this.retry=In,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((_r,Sr)=>{this.resolve_=_r,this.reject_=Sr,this.start_()})}start_(){const Ae=(Je,gt)=>{const Qt=this.resolve_,En=this.reject_,S=gt.connection;if(gt.wasSuccessCode)try{const x=this.callback_(S,S.getResponse());!function qn(Y){return void 0!==Y}(x)?Qt():Qt(x)}catch(x){En(x)}else if(null!==S){const x=ze();x.serverResponse=S.getErrorText(),En(this.errorCallback_?this.errorCallback_(S,x):x)}else En(gt.canceled?this.appDelete_?qe():vt():je())};this.canceled_?Ae(0,new It(!1,null,!0)):this.backoffId_=function wn(Y,W,Ae){let Je=1,gt=null,Qt=null,En=!1,S=0;function x(){return 2===S}let P=!1;function le(...Jr){P||(P=!0,W.apply(null,Jr))}function Tt(Jr){gt=setTimeout(()=>{gt=null,Y(_r,x())},Jr)}function In(){Qt&&clearTimeout(Qt)}function _r(Jr,..._s){if(P)return void In();if(Jr)return In(),void le.call(null,Jr,..._s);if(x()||En)return In(),void le.call(null,Jr,..._s);let hi;Je<64&&(Je*=2),1===S?(S=2,hi=0):hi=1e3*(Je+Math.random()),Tt(hi)}let Sr=!1;function ki(Jr){Sr||(Sr=!0,In(),!P&&(null!==gt?(Jr||(S=2),clearTimeout(gt),Tt(0)):Jr||(S=1)))}return Tt(0),Qt=setTimeout(()=>{En=!0,ki(!0)},Ae),ki}((Je,gt)=>{if(gt)return void Je(!1,new It(!1,null,!0));const Qt=this.connectionFactory_();this.pendingConnection_=Qt;const En=S=>{null!==this.progressCallback_&&this.progressCallback_(S.loaded,S.lengthComputable?S.total:-1)};null!==this.progressCallback_&&Qt.addUploadProgressListener(En),Qt.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&Qt.removeUploadProgressListener(En),this.pendingConnection_=null;const S=Qt.getErrorCode()===K.NO_ERROR,x=Qt.getStatus();if(!S||Te(x,this.additionalRetryCodes_)&&this.retry){const le=Qt.getErrorCode()===K.ABORT;return void Je(!1,new It(!1,null,le))}const P=-1!==this.successCodes_.indexOf(x);Je(!0,new It(P,Qt))})},Ae,this.timeout_)}getPromise(){return this.promise_}cancel(W){this.canceled_=!0,this.appDelete_=W||!1,null!==this.backoffId_&&function Wn(Y){Y(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class It{constructor(W,Ae,Je){this.wasSuccessCode=W,this.connection=Ae,this.canceled=!!Je}}function bn(...Y){const W=function Mn(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==W){const Ae=new W;for(let Je=0;Je<Y.length;Je++)Ae.append(Y[Je]);return Ae.getBlob()}if(xn())return new Blob(Y);throw new He(Ve.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}const Gn={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class bt{constructor(W,Ae){this.data=W,this.contentType=Ae||null}}function en(Y,W){switch(Y){case Gn.RAW:return new bt(Se(W));case Gn.BASE64:case Gn.BASE64URL:return new bt(We(Y,W));case Gn.DATA_URL:return new bt(function ue(Y){const W=new Q(Y);return W.base64?We(Gn.BASE64,W.rest):function ct(Y){let W;try{W=decodeURIComponent(Y)}catch{throw ft(Gn.DATA_URL,"Malformed data URL.")}return Se(W)}(W.rest)}(W),function fe(Y){return new Q(Y).contentType}(W))}throw ze()}function Se(Y){const W=[];for(let Ae=0;Ae<Y.length;Ae++){let Je=Y.charCodeAt(Ae);Je<=127?W.push(Je):Je<=2047?W.push(192|Je>>6,128|63&Je):55296==(64512&Je)?Ae<Y.length-1&&56320==(64512&Y.charCodeAt(Ae+1))?(Je=65536|(1023&Je)<<10|1023&Y.charCodeAt(++Ae),W.push(240|Je>>18,128|Je>>12&63,128|Je>>6&63,128|63&Je)):W.push(239,191,189):56320==(64512&Je)?W.push(239,191,189):W.push(224|Je>>12,128|Je>>6&63,128|63&Je)}return new Uint8Array(W)}function We(Y,W){switch(Y){case Gn.BASE64:{const gt=-1!==W.indexOf("-"),Qt=-1!==W.indexOf("_");if(gt||Qt)throw ft(Y,"Invalid character '"+(gt?"-":"_")+"' found: is it base64url encoded?");break}case Gn.BASE64URL:{const gt=-1!==W.indexOf("+"),Qt=-1!==W.indexOf("/");if(gt||Qt)throw ft(Y,"Invalid character '"+(gt?"+":"/")+"' found: is it base64 encoded?");W=W.replace(/-/g,"+").replace(/_/g,"/");break}}let Ae;
1try{Ae=function vr(Y){if(typeof atob>"u")throw function Ne(Y){return new He(Ve.UNSUPPORTED_ENVIRONMENT,`${Y} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(Y)}(W)}catch(gt){throw gt.message.includes("polyfill")?gt:ft(Y,"Invalid character found")}const Je=new Uint8Array(Ae.length);for(let gt=0;gt<Ae.length;gt++)Je[gt]=Ae.charCodeAt(gt);return Je}class Q{constructor(W){this.base64=!1,this.contentType=null;const Ae=W.match(/^data:([^,]+)?,/);if(null===Ae)throw ft(Gn.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const Je=Ae[1]||null;null!=Je&&(this.base64=function X(Y,W){return Y.length>=W.length&&Y.substring(Y.length-W.length)===W}(Je,";base64"),this.contentType=this.base64?Je.substring(0,Je.length-7):Je),this.rest=W.substring(W.indexOf(",")+1)}}class ce{constructor(W,Ae){let Je=0,gt="";_n(W)?(this.data_=W,Je=W.size,gt=W.type):W instanceof ArrayBuffer?(Ae?this.data_=new Uint8Array(W):(this.data_=new Uint8Array(W.byteLength),this.data_.set(new Uint8Array(W))),Je=this.data_.length):W instanceof Uint8Array&&(Ae?this.data_=W:(this.data_=new Uint8Array(W.length),this.data_.set(W)),Je=W.length),this.size_=Je,this.type_=gt}size(){return this.size_}type(){return this.type_}slice(W,Ae){if(_n(this.data_)){const gt=function Dr(Y,W,Ae){return Y.webkitSlice?Y.webkitSlice(W,Ae):Y.mozSlice?Y.mozSlice(W,Ae):Y.slice?Y.slice(W,Ae):null}(this.data_,W,Ae);return null===gt?null:new ce(gt)}{const Je=new Uint8Array(this.data_.buffer,W,Ae-W);return new ce(Je,!0)}}static getBlob(...W){if(xn()){const Ae=W.map(Je=>Je instanceof ce?Je.data_:Je);return new ce(bn.apply(null,Ae))}{const Ae=W.map(En=>rn(En)?en(Gn.RAW,En).data:En.data_);let Je=0;Ae.forEach(En=>{Je+=En.byteLength});const gt=new Uint8Array(Je);let Qt=0;return Ae.forEach(En=>{for(let S=0;S<En.length;S++)gt[Qt++]=En[S]}),new ce(gt,!0)}}uploadData(){return this.data_}}function xe(Y){let W;try{W=JSON.parse(Y)}catch{return null}return function hn(Y){return"object"==typeof Y&&!Array.isArray(Y)}(W)?W:null}function ke(Y){const W=Y.lastIndexOf("/",Y.length-2);return-1===W?Y:Y.slice(W+1)}function Fe(Y,W){return W}class Ge{constructor(W,Ae,Je,gt){this.server=W,this.local=Ae||W,this.writable=!!Je,this.xform=gt||Fe}}let Et=null;function an(){if(Et)return Et;const Y=[];Y.push(new Ge("bucket")),Y.push(new Ge("generation")),Y.push(new Ge("metageneration")),Y.push(new Ge("name","fullPath",!0));const Ae=new Ge("name");Ae.xform=function W(Qt,En){return function ht(Y){return!rn(Y)||Y.length<2?Y:ke(Y)}(En)},Y.push(Ae);const gt=new Ge("size");return gt.xform=function Je(Qt,En){return void 0!==En?Number(En):En},Y.push(gt),Y.push(new Ge("timeCreated")),Y.push(new Ge("updated")),Y.push(new Ge("md5Hash",null,!0)),Y.push(new Ge("cacheControl",null,!0)),Y.push(new Ge("contentDisposition",null,!0)),Y.push(new Ge("contentEncoding",null,!0)),Y.push(new Ge("contentLanguage",null,!0)),Y.push(new Ge("contentType",null,!0)),Y.push(new Ge("metadata","customMetadata",!0)),Et=Y,Et}function j(Y,W,Ae){const Je=xe(W);return null===Je?null:function oe(Y,W,Ae){const Je={type:"file"},gt=Ae.length;for(let Qt=0;Qt<gt;Qt++){const En=Ae[Qt];Je[En.local]=En.xform(Je,W[En.server])}return function $e(Y,W){Object.defineProperty(Y,"ref",{get:function Ae(){const Qt=new cn(Y.bucket,Y.fullPath);return W._makeStorageReference(Qt)}})}(Je,Y),Je}(Y,Je,Ae)}function Ie(Y,W){const Ae={},Je=W.length;for(let gt=0;gt<Je;gt++){const Qt=W[gt];Qt.writable&&(Ae[Qt.server]=Y[Qt.local])}return JSON.stringify(Ae)}const Qe="prefixes",kt="items";class Rr{constructor(W,Ae,Je,gt){this.url=W,this.method=Ae,this.handler=Je,this.timeout=gt,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function Rt(Y){if(!Y)throw ze()}function xt(Y,W){return function Ae(Je,gt){const Qt=j(Y,gt,W);return Rt(null!==Qt),Qt}}function Yn(Y){return function W(Ae,Je){let gt;return gt=401===Ae.getStatus()?Ae.getErrorText().includes("Firebase App Check token is invali
1d")?function Ue(){return new He(Ve.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}():function At(){return new He(Ve.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===Ae.getStatus()?function nt(Y){return new He(Ve.QUOTA_EXCEEDED,"Quota for bucket '"+Y+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(Y.bucket):403===Ae.getStatus()?function Wt(Y){return new He(Ve.UNAUTHORIZED,"User does not have permission to access '"+Y+"'.")}(Y.path):Je,gt.status=Ae.getStatus(),gt.serverResponse=Je.serverResponse,gt}}function Tr(Y){const W=Yn(Y);return function Ae(Je,gt){let Qt=W(Je,gt);return 404===Je.getStatus()&&(Qt=function rt(Y){return new He(Ve.OBJECT_NOT_FOUND,"Object '"+Y+"' does not exist.")}(Y.path)),Qt.serverResponse=gt.serverResponse,Qt}}function Pn(Y,W,Ae){const gt=Nt(W.fullServerUrl(),Y.host,Y._protocol),En=Y.maxOperationRetryTime,S=new Rr(gt,"GET",xt(Y,Ae),En);return S.errorHandler=Tr(W),S}function kr(Y,W,Ae,Je,gt){const Qt={};Qt.prefix=W.isRoot?"":W.path+"/",Ae&&Ae.length>0&&(Qt.delimiter=Ae),Je&&(Qt.pageToken=Je),gt&&(Qt.maxResults=gt);const S=Nt(W.bucketOnlyServerUrl(),Y.host,Y._protocol),P=Y.maxOperationRetryTime,le=new Rr(S,"GET",function pn(Y,W){return function Ae(Je,gt){const Qt=function nr(Y,W,Ae){const Je=xe(Ae);return null===Je?null:function Cn(Y,W,Ae){const Je={prefixes:[],items:[],nextPageToken:Ae.nextPageToken};if(Ae[Qe])for(const gt of Ae[Qe]){const Qt=gt.replace(/\/$/,""),En=Y._makeStorageReference(new cn(W,Qt));Je.prefixes.push(En)}if(Ae[kt])for(const gt of Ae[kt]){const Qt=Y._makeStorageReference(new cn(W,gt.name));Je.items.push(Qt)}return Je}(Y,W,Je)}(Y,W,gt);return Rt(null!==Qt),Qt}}(Y,W.bucket),P);return le.urlParams=Qt,le.errorHandler=Yn(W),le}function Rs(Y,W,Ae){const Je=Object.assign({},Ae);return Je.fullPath=Y.path,Je.size=W.size(),Je.contentType||(Je.contentType=function Ni(Y,W){return Y&&Y.contentType||W&&W.type()||"application/octet-stream"}(null,W)),Je}class Tn{constructor(W,Ae,Je,gt){this.current=W,this.total=Ae,this.finalized=!!Je,this.metadata=gt||null}}function pr(Y,W){let Ae=null;try{Ae=Y.getResponseHeader("X-Goog-Upload-Status")}catch{Rt(!1)}return Rt(!!Ae&&-1!==(W||["active"]).indexOf(Ae)),Ae}const bi={STATE_CHANGED:"state_changed"},gr={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Ai(Y){switch(Y){case"running":case"pausing":case"canceling":return gr.RUNNING;case"paused":return gr.PAUSED;case"success":return gr.SUCCESS;case"canceled":return gr.CANCELED;default:return gr.ERROR}}class Fi{constructor(W,Ae,Je){if(function nn(Y){return"function"==typeof Y}(W)||null!=Ae||null!=Je)this.next=W,this.error=Ae??void 0,this.complete=Je??void 0;else{const Qt=W;this.next=Qt.next,this.error=Qt.error,this.complete=Qt.complete}}}function ir(Y){return(...W)=>{Promise.resolve().then(()=>Y(...W))}}let ns=null;class ws{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=K.NO_ERROR,this.sendPromise_=new Promise(W=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=K.ABORT,W()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=K.NETWORK_ERROR,W()}),this.xhr_.addEventListener("load",()=>{W()})})}send(W,Ae,Je,gt){if(this.sent_)throw $t("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(Ae,W,!0),void 0!==gt)for(const Qt in gt)gt.hasOwnProperty(Qt)&&this.xhr_.setRequestHeader(Qt,gt[Qt].toString());return void 0!==Je?this.xhr_.send(Je):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw $t("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw $t("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw $t("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw $t("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(W){return this.xhr_.getResponseHeader(W)}addUploadProgressListener(W){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",W)}removeUploadProgressListener(W){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",W)}}class ds extends ws{initXhr(){this.xhr_.responseType="text"}}function wi(){return ns?ns():new ds}class Os{constructor(W,Ae,Je=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=W,this._blob=Ae,this._metadata=Je,this._mappings=an(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=gt=>{if(this._request=void 0,this._chunkMultiplier=1,gt._codeEquals(Ve.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const Qt=this.isExponentialBackoffExpired();if(Te(gt.status,[])){if(!Qt)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();gt=je()}this._error=gt,this._transition("error")}},this._metadataErrorHandler=gt=>
1{this._request=void 0,gt._codeEquals(Ve.CANCELED)?this.completeTransitions_():(this._error=gt,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((gt,Qt)=>{this._resolve=gt,this._reject=Qt,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const W=this._transferred;return Ae=>this._updateProgress(W+Ae)}_shouldDoResumable(W){return W.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(W){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([Ae,Je])=>{switch(this._state){case"running":W(Ae,Je);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((W,Ae)=>{const Je=function ci(Y,W,Ae,Je,gt){const Qt=W.bucketOnlyServerUrl(),En=Rs(W,Je,gt),S={name:En.fullPath},x=Nt(Qt,Y.host,Y._protocol),le={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${Je.size()}`,"X-Goog-Upload-Header-Content-Type":En.contentType,"Content-Type":"application/json; charset=utf-8"},Tt=Ie(En,Ae),Sr=new Rr(x,"POST",function _r(ki){let Jr;pr(ki);try{Jr=ki.getResponseHeader("X-Goog-Upload-URL")}catch{Rt(!1)}return Rt(rn(Jr)),Jr},Y.maxUploadRetryTime);return Sr.urlParams=S,Sr.headers=le,Sr.body=Tt,Sr.errorHandler=Yn(W),Sr}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),gt=this._ref.storage._makeRequest(Je,wi,W,Ae);this._request=gt,gt.getPromise().then(Qt=>{this._request=void 0,this._uploadUrl=Qt,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const W=this._uploadUrl;this._resolveToken((Ae,Je)=>{const gt=function qi(Y,W,Ae,Je){const x=new Rr(Ae,"POST",function Qt(P){const le=pr(P,["active","final"]);let Tt=null;try{Tt=P.getResponseHeader("X-Goog-Upload-Size-Received")}catch{Rt(!1)}Tt||Rt(!1);const In=Number(Tt);return Rt(!isNaN(In)),new Tn(In,Je.size(),"final"===le)},Y.maxUploadRetryTime);return x.headers={"X-Goog-Upload-Command":"query"},x.errorHandler=Yn(W),x}(this._ref.storage,this._ref._location,W,this._blob),Qt=this._ref.storage._makeRequest(gt,wi,Ae,Je);this._request=Qt,Qt.getPromise().then(En=>{this._request=void 0,this._updateProgress(En.current),this._needToFetchStatus=!1,En.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const W=262144*this._chunkMultiplier,Ae=new Tn(this._transferred,this._blob.size()),Je=this._uploadUrl;this._resolveToken((gt,Qt)=>{let En;try{En=function Zr(Y,W,Ae,Je,gt,Qt,En,S){const x=new Tn(0,0);if(En?(x.current=En.current,x.total=En.total):(x.current=0,x.total=Je.size()),Je.size()!==x.total)throw function yn(){return new He(Ve.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const P=x.total-x.current;let le=P;gt>0&&(le=Math.min(le,gt));const Tt=x.current;let _r="";_r=0===le?"finalize":P===le?"upload, finalize":"upload";const Sr={"X-Goog-Upload-Command":_r,"X-Goog-Upload-Offset":`${x.current}`},ki=Je.slice(Tt,Tt+le);if(null===ki)throw St();const hi=new Rr(Ae,"POST",function Jr(Wr,is){const ss=pr(Wr,["active","final"]),ho=x.current+le,Ui=Je.size();let Fr;return Fr="final"===ss?xt(W,Qt)(Wr,is):null,new Tn(ho,Ui,"final"===ss,Fr)},W.maxUploadRetryTime);return hi.headers=Sr,hi.body=ki.uploadData(),hi.progressCallback=S||null,hi.errorHandler=Yn(Y),hi}(this._ref._location,this._ref.storage,Je,this._blob,W,this._mappings,Ae,this._makeProgressCallback())}catch(x){return this._error=x,void this._transition("error")}const S=this._ref.storage._makeRequest(En,wi,gt,Qt,!1);this._request=S,S.getPromise().then(x=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(x.current),x.finalized?(this._metadata=x.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((W,Ae)=>{const Je=Pn(this._ref.storage,this._ref._location,this._mappings),gt=this._ref.storage._makeRequest
1(Je,wi,W,Ae);this._request=gt,gt.getPromise().then(Qt=>{this._request=void 0,this._metadata=Qt,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((W,Ae)=>{const Je=function Si(Y,W,Ae,Je,gt){const Qt=W.bucketOnlyServerUrl(),En={"X-Goog-Upload-Protocol":"multipart"},x=function S(){let hi="";for(let Wr=0;Wr<2;Wr++)hi+=Math.random().toString().slice(2);return hi}();En["Content-Type"]="multipart/related; boundary="+x;const P=Rs(W,Je,gt),le=Ie(P,Ae),_r=ce.getBlob("--"+x+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+le+"\r\n--"+x+"\r\nContent-Type: "+P.contentType+"\r\n\r\n",Je,"\r\n--"+x+"--");if(null===_r)throw St();const Sr={name:P.fullPath},ki=Nt(Qt,Y.host,Y._protocol),_s=Y.maxUploadRetryTime,Ri=new Rr(ki,"POST",xt(Y,Ae),_s);return Ri.urlParams=Sr,Ri.headers=En,Ri.body=_r.uploadData(),Ri.errorHandler=Yn(W),Ri}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),gt=this._ref.storage._makeRequest(Je,wi,W,Ae);this._request=gt,gt.getPromise().then(Qt=>{this._request=void 0,this._metadata=Qt,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(W){const Ae=this._transferred;this._transferred=W,this._transferred!==Ae&&this._notifyObservers()}_transition(W){if(this._state!==W)switch(W){case"canceling":case"pausing":this._state=W,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const Ae="paused"===this._state;this._state=W,Ae&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=W,this._notifyObservers();break;case"canceled":this._error=vt(),this._state=W,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const W=Ai(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:W,metadata:this._metadata,task:this,ref:this._ref}}on(W,Ae,Je,gt){const Qt=new Fi(Ae||void 0,Je||void 0,gt||void 0);return this._addObserver(Qt),()=>{this._removeObserver(Qt)}}then(W,Ae){return this._promise.then(W,Ae)}catch(W){return this.then(null,W)}_addObserver(W){this._observers.push(W),this._notifyObserver(W)}_removeObserver(W){const Ae=this._observers.indexOf(W);-1!==Ae&&this._observers.splice(Ae,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(Ae=>{this._notifyObserver(Ae)})}_finishPromise(){if(void 0!==this._resolve){let W=!0;switch(Ai(this._state)){case gr.SUCCESS:ir(this._resolve.bind(null,this.snapshot))();break;case gr.CANCELED:case gr.ERROR:ir(this._reject.bind(null,this._error))();break;default:W=!1}W&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(W){switch(Ai(this._state)){case gr.RUNNING:case gr.PAUSED:W.next&&ir(W.next.bind(W,this.snapshot))();break;case gr.SUCCESS:W.complete&&ir(W.complete.bind(W))();break;default:W.error&&ir(W.error.bind(W,this._error))()}}resume(){const W="paused"===this._state||"pausing"===this._state;return W&&this._transition("running"),W}pause(){const W="running"===this._state;return W&&this._transition("pausing"),W}cancel(){const W="running"===this._state||"pausing"===this._state;return W&&this._transition("canceling"),W}}class Xr{constructor(W,Ae){this._service=W,this._location=Ae instanceof cn?Ae:cn.makeFromUrl(Ae,W.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(W,Ae){return new Xr(W,Ae)}get root(){const W=new cn(this._location.bucket,"");return this._newRef(this._service,W)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return ke(this._location.path)}get storage(){return this._service}get parent(){const W=function Ft(Y){if(0===Y.length)return null;const W=Y.lastIndexOf("/");return-1===W?"":Y.slice(0,W)}(this._location.path);if(null===W)return null;const Ae=new cn(this._location.bucket,W);return new Xr(this._service,Ae)}_throwIfRoot(W){if(""===this._location.path)throw yt(W)}}function Jt(Y,W,Ae){return mn.apply(this,arguments)}function mn(){return(mn=(0,de.Z)(function*(Y,W,Ae){const gt=yield sr(Y,{pageToken:Ae});W.prefixes.push(...gt.prefixes),W.items.push(...gt.items),null!=gt.nextPageToken&&
1(yield Jt(Y,W,gt.nextPageToken))})).apply(this,arguments)}function sr(Y,W){null!=W&&"number"==typeof W.maxResults&&Mt("options.maxResults",1,1e3,W.maxResults);const Ae=W||{},Je=kr(Y.storage,Y._location,"/",Ae.pageToken,Ae.maxResults);return Y.storage.makeRequestWithTokens(Je,wi)}function Cr(Y){Y._throwIfRoot("getDownloadURL");const W=function _i(Y,W,Ae){const gt=Nt(W.fullServerUrl(),Y.host,Y._protocol),En=Y.maxOperationRetryTime,S=new Rr(gt,"GET",function Kn(Y,W){return function Ae(Je,gt){const Qt=j(Y,gt,W);return Rt(null!==Qt),function $(Y,W,Ae,Je){const gt=xe(W);if(null===gt||!rn(gt.downloadTokens))return null;const Qt=gt.downloadTokens;if(0===Qt.length)return null;const En=encodeURIComponent;return Qt.split(",").map(P=>{const Tt=Y.fullPath;return Nt("/b/"+En(Y.bucket)+"/o/"+En(Tt),Ae,Je)+se({alt:"media",token:P})})[0]}(Qt,gt,Y.host,Y._protocol)}}(Y,Ae),En);return S.errorHandler=Tr(W),S}(Y.storage,Y._location,an());return Y.storage.makeRequestWithTokens(W,wi).then(Ae=>{if(null===Ae)throw function ae(){return new He(Ve.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return Ae})}function ks(Y,W){const Ae=function Ut(Y,W){const Ae=W.split("/").filter(Je=>Je.length>0).join("/");return 0===Y.length?Ae:Y+"/"+Ae}(Y._location.path,W),Je=new cn(Y._location.bucket,Ae);return new Xr(Y.storage,Je)}function Di(Y,W){if(Y instanceof ko){const Ae=Y;if(null==Ae._bucket)throw function Sn(){return new He(Ve.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+wt+"' property when initializing the app?")}();const Je=new Xr(Ae,Ae._bucket);return null!=W?Di(Je,W):Je}return void 0!==W?ks(Y,W):Y}function Hs(Y,W){if(W&&function ri(Y){return/^[A-Za-z]+:\/\//.test(Y)}(W)){if(Y instanceof ko)return function di(Y,W){return new Xr(Y,W)}(Y,W);throw Xe("To use ref(service, url), the first argument must be a Storage instance.")}return Di(Y,W)}function _o(Y,W){const Ae=W?.[wt];return null==Ae?null:cn.makeFromBucketSpec(Ae,Y)}class ko{constructor(W,Ae,Je,gt,Qt){this.app=W,this._authProvider=Ae,this._appCheckProvider=Je,this._url=gt,this._firebaseVersion=Qt,this._bucket=null,this._host=dt,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=gt?cn.makeFromBucketSpec(gt,this._host):_o(this._host,this.app.options)}get host(){return this._host}set host(W){this._host=W,this._bucket=null!=this._url?cn.makeFromBucketSpec(this._url,W):_o(W,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(W){Mt("time",0,Number.POSITIVE_INFINITY,W),this._maxUploadRetryTime=W}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(W){Mt("time",0,Number.POSITIVE_INFINITY,W),this._maxOperationRetryTime=W}_getAuthToken(){var W=this;return(0,de.Z)(function*(){if(W._overrideAuthToken)return W._overrideAuthToken;const Ae=W._authProvider.getImmediate({optional:!0});if(Ae){const Je=yield Ae.getToken();if(null!==Je)return Je.accessToken}return null})()}_getAppCheckToken(){var W=this;return(0,de.Z)(function*(){const Ae=W._appCheckProvider.getImmediate({optional:!0});return Ae?(yield Ae.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(W=>W.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(W){return new Xr(this,W)}_makeRequest(W,Ae,Je,gt,Qt=!0){if(this._deleted)return new tr(qe());{const En=function Xt(Y,W,Ae,Je,gt,Qt,En=!0){const S=se(Y.urlParams),x=Y.url+S,P=Object.assign({},Y.headers);return function dn(Y,W){W&&(Y["X-Firebase-GMPID"]=W)}(P,W),function Yt(Y,W){null!==W&&W.length>0&&(Y.Authorization="Firebase "+W)}(P,Ae),function qt(Y,W){Y["X-Firebase-Storage-Version"]="webjs/"+(W??"AppManager")}(P,Qt),function sn(Y,W){null!==W&&(Y["X-Firebase-AppCheck"]=W)}(P,Je),new Be(x,Y.method,P,Y.body,Y.successCodes,Y.additionalRetryCodes,Y.handler,Y.errorHandler,Y.timeout,Y.progressCallback,gt,En)}(W,this._appId,Je,gt,Ae,this._firebaseVersion,Qt);return this._requests.add(En),En.getPromise().then(()=>this._requests.delete(En),()=>this._requests.delete(En)),En}}makeRequestWithTokens(W,Ae){var Je=this;return(0,de.Z)(function*(){const[gt,Qt]=yield Promise.all([Je._getAuthToken(),Je._getAppCheckToken()]);
1return Je._makeRequest(W,Ae,gt,Qt).getPromise()})()}}const so="@firebase/storage";function Yo(Y,W){return Hs(Y=(0,lt.m9)(Y),W)}function Wi(Y,{instanceIdentifier:W}){const Ae=Y.getProvider("app").getImmediate(),Je=Y.getProvider("auth-internal"),gt=Y.getProvider("app-check-internal");return new ko(Ae,Je,gt,W,be.SDK_VERSION)}!function vo(){(0,be._registerComponent)(new it.wA("storage",Wi,"PUBLIC").setMultipleInstances(!0)),(0,be.registerVersion)(so,"0.11.2",""),(0,be.registerVersion)(so,"0.11.2","esm2017")}();class xi{constructor(W,Ae,Je){this._delegate=W,this.task=Ae,this.ref=Je}get bytesTransferred(){return this._delegate.bytesTransferred}get metadata(){return this._delegate.metadata}get state(){return this._delegate.state}get totalBytes(){return this._delegate.totalBytes}}class Qo{constructor(W,Ae){this._delegate=W,this._ref=Ae,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}get snapshot(){return new xi(this._delegate.snapshot,this,this._ref)}then(W,Ae){return this._delegate.then(Je=>{if(W)return W(new xi(Je,this,this._ref))},Ae)}on(W,Ae,Je,gt){let Qt;return Ae&&(Qt="function"==typeof Ae?En=>Ae(new xi(En,this,this._ref)):{next:Ae.next?En=>Ae.next(new xi(En,this,this._ref)):void 0,complete:Ae.complete||void 0,error:Ae.error||void 0}),this._delegate.on(W,Qt,Je||void 0,gt||void 0)}}class Ao{constructor(W,Ae){this._delegate=W,this._service=Ae}get prefixes(){return this._delegate.prefixes.map(W=>new fs(W,this._service))}get items(){return this._delegate.items.map(W=>new fs(W,this._service))}get nextPageToken(){return this._delegate.nextPageToken||null}}class fs{constructor(W,Ae){this._delegate=W,this.storage=Ae}get name(){return this._delegate.name}get bucket(){return this._delegate.bucket}get fullPath(){return this._delegate.fullPath}toString(){return this._delegate.toString()}child(W){const Ae=function hs(Y,W){return ks(Y,W)}(this._delegate,W);return new fs(Ae,this.storage)}get root(){return new fs(this._delegate.root,this.storage)}get parent(){const W=this._delegate.parent;return null==W?null:new fs(W,this.storage)}put(W,Ae){return this._throwIfRoot("put"),new Qo(function La(Y,W,Ae){return function pt(Y,W,Ae){return Y._throwIfRoot("uploadBytesResumable"),new Os(Y,new ce(W),Ae)}(Y=(0,lt.m9)(Y),W,Ae)}(this._delegate,W,Ae),this)}putString(W,Ae=Gn.RAW,Je){this._throwIfRoot("putString");const gt=en(Ae,W),Qt=Object.assign({},Je);return null==Qt.contentType&&null!=gt.contentType&&(Qt.contentType=gt.contentType),new Qo(new Os(this._delegate,new ce(gt.data,!0),Qt),this)}listAll(){return function Ho(Y){return function Ot(Y){const W={prefixes:[],items:[]};return Jt(Y,W).then(()=>W)}(Y=(0,lt.m9)(Y))}(this._delegate).then(W=>new Ao(W,this.storage))}list(W){return function lo(Y,W){return sr(Y=(0,lt.m9)(Y),W)}(this._delegate,W||void 0).then(Ae=>new Ao(Ae,this.storage))}getMetadata(){return function ao(Y){return function yr(Y){Y._throwIfRoot("getMetadata");const W=Pn(Y.storage,Y._location,an());return Y.storage.makeRequestWithTokens(W,wi)}(Y=(0,lt.m9)(Y))}(this._delegate)}updateMetadata(W){return function rs(Y,W){return function Er(Y,W){Y._throwIfRoot("updateMetadata");const Ae=function li(Y,W,Ae,Je){const Qt=Nt(W.fullServerUrl(),Y.host,Y._protocol),S=Ie(Ae,Je),P=Y.maxOperationRetryTime,le=new Rr(Qt,"PATCH",xt(Y,Je),P);return le.headers={"Content-Type":"application/json; charset=utf-8"},le.body=S,le.errorHandler=Tr(W),le}(Y.storage,Y._location,W,an());return Y.storage.makeRequestWithTokens(Ae,wi)}(Y=(0,lt.m9)(Y),W)}(this._delegate,W)}getDownloadURL(){return function Fs(Y){return Cr(Y=(0,lt.m9)(Y))}(this._delegate)}delete(){return this._throwIfRoot("delete"),function zo(Y){return function Pi(Y){Y._throwIfRoot("deleteObject");const W=function ro(Y,W){const Je=Nt(W.fullServerUrl(),Y.host,Y._protocol),S=new Rr(Je,"DELETE",function En(x,P){},Y.maxOperationRetryTime);return S.successCodes=[200,204],S.errorHandler=Tr(W),S}(Y.storage,Y._location);return Y.storage.makeRequestWithTokens(W,wi)}(Y=(0,lt.m9)(Y))}(this._delegate)}_throwIfRoot(W){if(""===this._delegate._location.path)throw yt(W)}}class Li{constructor(W,Ae){this.app=W,this._delegate=Ae}get maxOperationRetryTime(){return this._delegate.maxOperationRetryTime}get maxUploadRetryTime(){return this._delegate.maxUploadRetryTime}ref(W){if(Hi(W))throw Xe("ref() expected a child path but got a URL, use refFromURL instead.");return new fs(Yo(this._delegate,W),this)}refFromURL(W){if(!Hi(W))throw Xe("refFromURL() expected a full URL but got a child path, use ref() instead.");try{cn.makeFromUrl(W,this._delegate.host)}catch{throw Xe("refFromUrl() expected a valid full URL but got an invali
1d one.")}return new fs(Yo(this._delegate,W),this)}setMaxUploadRetryTime(W){this._delegate.maxUploadRetryTime=W}setMaxOperationRetryTime(W){this._delegate.maxOperationRetryTime=W}useEmulator(W,Ae,Je={}){!function Is(Y,W,Ae,Je={}){!function Qi(Y,W,Ae,Je={}){Y.host=`${W}:${Ae}`,Y._protocol="http";const{mockUserToken:gt}=Je;gt&&(Y._overrideAuthToken="string"==typeof gt?gt:(0,lt.Sg)(gt,Y.app.options.projectId))}(Y,W,Ae,Je)}(this._delegate,W,Ae,Je)}}function Hi(Y){return/^[A-Za-z]+:\/\//.test(Y)}function Mi(Y,{instanceIdentifier:W}){const Ae=Y.getProvider("app-compat").getImmediate(),Je=Y.getProvider("storage").getImmediate({identifier:W});return new Li(Ae,Je)}!function ys(Y){const W={TaskState:gr,TaskEvent:bi,StringFormat:Gn,Storage:Li,Reference:fs};Y.INTERNAL.registerComponent(new it.wA("storage-compat",Mi,"PUBLIC").setServiceProps(W).setMultipleInstances(!0)),Y.registerVersion("@firebase/storage-compat","0.3.2")}(q.Z);var xr=C(6217),Xi=C(9260);function Vi(Y){const W=function Eo(Y){return new c.y(W=>{const Ae=En=>W.next(En);Ae(Y.snapshot);const Qt=Y.on("state_changed",Ae);return Y.then(En=>{Ae(En),W.complete()},En=>{Ae(Y.snapshot),(En=>{W.error(En)})(En)}),function(){Qt()}}).pipe((0,_e.b)(0))}(Y);return{task:Y,then:Y.then.bind(Y),catch:Y.catch.bind(Y),pause:Y.pause.bind(Y),cancel:Y.cancel.bind(Y),resume:Y.resume.bind(Y),snapshotChanges:()=>W,percentageChanges:()=>W.pipe((0,pe.U)(Ae=>Ae.bytesTransferred/Ae.totalBytes*100))}}function Ci(Y){return{getDownloadURL:()=>(0,m.of)(void 0).pipe(Oe.fc,(0,me.w)(()=>Y.getDownloadURL()),Oe.iC),getMetadata:()=>(0,m.of)(void 0).pipe(Oe.fc,(0,me.w)(()=>Y.getMetadata()),Oe.iC),delete:()=>(0,V.D)(Y.delete()),child:W=>Ci(Y.child(W)),updateMetadata:W=>(0,V.D)(Y.updateMetadata(W)),put:(W,Ae)=>Vi(Y.put(W,Ae)),putString:(W,Ae,Je)=>Vi(Y.putString(W,Ae,Je)),list:W=>(0,V.D)(Y.list(W)),listAll:()=>(0,V.D)(Y.listAll())}}const uo=new ie.InjectionToken("angularfire2.storageBucket"),zs=new ie.InjectionToken("angularfire2.storage.maxUploadRetryTime"),Ws=new ie.InjectionToken("angularfire2.storage.maxOperationRetryTime"),Gi=new ie.InjectionToken("angularfire2.storage.use-emulator");let Ls=(()=>{class Y{constructor(Ae,Je,gt,Qt,En,S,x,P,le,Tt){const In=(0,Re.on)(Ae,En,Je);this.storage=(0,Re.cc)(`${In.name}.storage.${gt}`,"AngularFireStorage",In.name,()=>{const _r=En.runOutsideAngular(()=>In.storage(gt||void 0)),Sr=le;return Sr&&_r.useEmulator(...Sr),x&&_r.setMaxUploadRetryTime(x),P&&_r.setMaxOperationRetryTime(P),_r},[x,P])}ref(Ae){return Ci(this.storage.ref(Ae))}refFromURL(Ae){return Ci(this.storage.refFromURL(Ae))}upload(Ae,Je,gt){return Ci(this.storage.ref(Ae)).put(Je,gt)}}return Y.\u0275fac=function(Ae){return new(Ae||Y)(ie.\u0275\u0275inject(Re.Dh),ie.\u0275\u0275inject(Re.xv,8),ie.\u0275\u0275inject(uo,8),ie.\u0275\u0275inject(ie.PLATFORM_ID),ie.\u0275\u0275inject(ie.NgZone),ie.\u0275\u0275inject(Oe.HU),ie.\u0275\u0275inject(zs,8),ie.\u0275\u0275inject(Ws,8),ie.\u0275\u0275inject(Gi,8),ie.\u0275\u0275inject(xr.nm,8))},Y.\u0275prov=ie.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac,providedIn:"any"}),Y})(),mr=(()=>{class Y{}return Y.\u0275fac=function(Ae){return new(Ae||Y)},Y.\u0275mod=ie.\u0275\u0275defineNgModule({type:Y}),Y.\u0275inj=ie.\u0275\u0275defineInjector({}),Y})(),Ks=(()=>{class Y{constructor(){Xi.Z.registerVersion("angularfire",Oe.q4.full,"gcs-compat")}}return Y.\u0275fac=function(Ae){return new(Ae||Y)},Y.\u0275mod=ie.\u0275\u0275defineNgModule({type:Y}),Y.\u0275inj=ie.\u0275\u0275defineInjector({providers:[Ls],imports:[mr]}),Y})()},2011:(ln,et,C)=>{"use strict";C.d(et,{Dh:()=>ie,GT:()=>me,Ot:()=>Oe,cc:()=>it,hO:()=>lt,on:()=>q,pX:()=>pe,xv:()=>Re});var c=C(4650),m=C(9260),V=C(4976);ln=C.hmd(ln);const _e=["ngOnDestroy"],pe=(Pe,Ct,He,Ve={})=>new Proxy(Pe,{get:(ve,ze)=>He.runOutsideAngular(()=>{var rt;if(Pe[ze])return!(null===(rt=Ve?.spy)||void 0===rt)&&rt.get&&Ve.spy.get(ze,Pe[ze]),Pe[ze];if(_e.indexOf(ze)>-1)return()=>{};const nt=Ct.toPromise().then(At=>{const Ue=At&&At[ze];return"function"==typeof Ue?Ue.bind(At):Ue&&Ue.then?Ue.then(Wt=>He.run(()=>Wt)):He.run(()=>Ue)});return new Proxy(()=>{},{get:(At,Ue)=>nt[Ue],apply:(At,Ue,Wt)=>
1nt.then(je=>{var vt;const jt=je&&je(...Wt);return!(null===(vt=Ve?.spy)||void 0===vt)&&vt.apply&&Ve.spy.apply(ze,Wt,jt),jt})})})}),me=(Pe,Ct)=>{Ct.forEach(He=>{Object.getOwnPropertyNames(He.prototype||He).forEach(Ve=>{Object.defineProperty(Pe.prototype,Ve,Object.getOwnPropertyDescriptor(He.prototype||He,Ve))})})};class Oe{constructor(Ct){return Ct}}const ie=new c.InjectionToken("angularfire2.app.options"),Re=new c.InjectionToken("angularfire2.app.name");function q(Pe,Ct,He){const ve="object"==typeof He&&He||{};ve.name=ve.name||"string"==typeof He&&He||"[DEFAULT]";const rt=m.Z.apps.filter(nt=>nt&&nt.name===ve.name)[0]||Ct.runOutsideAngular(()=>m.Z.initializeApp(Pe,ve));try{JSON.stringify(Pe)!==JSON.stringify(rt.options)&&de("error",`${rt.name} Firebase App already initialized with different options${ln.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new Oe(rt)}const de=(Pe,...Ct)=>{(0,c.isDevMode)()&&typeof console<"u"&&console[Pe](...Ct)},be={provide:Oe,useFactory:q,deps:[ie,c.NgZone,[new c.Optional,Re]]};let lt=(()=>{class Pe{constructor(He){m.Z.registerVersion("angularfire",V.q4.full,"core"),m.Z.registerVersion("angularfire",V.q4.full,"app-compat"),m.Z.registerVersion("angular",c.VERSION.full,He.toString())}static initializeApp(He,Ve){return{ngModule:Pe,providers:[{provide:ie,useValue:He},{provide:Re,useValue:Ve}]}}}return Pe.\u0275fac=function(He){return new(He||Pe)(c.\u0275\u0275inject(c.PLATFORM_ID))},Pe.\u0275mod=c.\u0275\u0275defineNgModule({type:Pe}),Pe.\u0275inj=c.\u0275\u0275defineInjector({providers:[be]}),Pe})();function it(Pe,Ct,He,Ve,ve){const[,ze,rt]=globalThis.\u0275AngularfireInstanceCache.find(nt=>nt[0]===Pe)||[];if(ze)return function dt(Pe,Ct){try{return Pe.toString()===Ct.toString()}catch{return Pe===Ct}}(ve,rt)||(Me("error",`${Ct} was already initialized on the ${He} Firebase App with different settings.${wt?" You may need to reload as Firebase is not HMR aware.":""}`),Me("warn",{is:ve,was:rt})),ze;{const nt=Ve();return globalThis.\u0275AngularfireInstanceCache.push([Pe,nt,ve]),nt}}const wt=!!ln.hot,Me=(Pe,...Ct)=>{(0,c.isDevMode)()&&typeof console<"u"&&console[Pe](...Ct)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},4976:(ln,et,C)=>{"use strict";C.d(et,{q4:()=>Il,iC:()=>Eu,fc:()=>vu,HU:()=>_a,vb:()=>xc,JM:()=>zl});var c=C(4650),m=C(259),V=C(5861),_e=C(6881),pe=C(2090),me=C(4859),Oe=C(1877);const ie=(T,F)=>F.some(J=>T instanceof J);let Re,q;const lt=new WeakMap,it=new WeakMap,dt=new WeakMap,wt=new WeakMap,Me=new WeakMap;let He={get(T,F,J){if(T instanceof IDBTransaction){if("done"===F)return it.get(T);if("objectStoreNames"===F)return T.objectStoreNames||dt.get(T);if("store"===F)return J.objectStoreNames[1]?void 0:J.objectStore(J.objectStoreNames[0])}return rt(T[F])},set:(T,F,J)=>(T[F]=J,!0),has:(T,F)=>T instanceof IDBTransaction&&("done"===F||"store"===F)||F in T};function ze(T){return"function"==typeof T?function ve(T){return T!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function be(){return q||(q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(T)?function(...F){return T.apply(nt(this),F),rt(lt.get(this))}:function(...F){return rt(T.apply(nt(this),F))}:function(F,...J){const Le=T.call(nt(this),F,...J);return dt.set(Le,F.sort?F.sort():[F]),rt(Le)}}(T):(T instanceof IDBTransaction&&function Ct(T){if(it.has(T))return;const F=new Promise((J,Le)=>{const tt=()=>{T.removeEventListener("complete",mt),T.removeEventListener("error",Gt),T.removeEventListener("abort",Gt)},mt=()=>{J(),tt()},Gt=()=>{Le(T.error||new DOMException("AbortError","AbortError")),tt()};T.addEventListener("complete",mt),T.addEventListener("error",Gt),T.addEventListener("abort",Gt)});it.set(T,F)}(T),ie(T,function de(){return Re||(Re=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(T,He):T)}function rt(T){if(T instanceof IDBRequest)return function Pe(T){const F=new Promise((J,Le)=>{const tt=()=>{T.removeEventListener("success",mt),T.removeEventListener("error",Gt)},mt=()=>{J(rt(T.result)),tt()},Gt=()=>{Le(T.error),tt()};T.addEventListener("success",mt),T.addEventListener("error",Gt)});return F.then(J=>{J instanceof IDBCursor&<.set(J,T)}).catch(()=>{}),Me.set(F,T),F}(T);if(wt.has(T))return wt.get(T);const F=ze(T);return F!==T&&(wt.set(T,F),Me.set(F,T)),F}const nt=T=>Me.get(T),Wt=["get","getKey","getAll","getAllKeys","count"],je=["put","add","delete","clear"],vt=new Map;function jt(T,F){if(!(T instanceof IDBDatabase)||F in T||"string"!=typeof F)return;if(vt.get(F))return vt.get(F);const J=F.replace(/FromIndex$/,""),Le=F!==J,tt=je.includes(J);if(!(J in(Le?IDBIndex:IDBObjectStore).prototype)||!tt&&!Wt.includes(J))return;const mt=function(){var Gt=(0,V.Z)(function*(Hn,...Bn){const fr=this.transaction(Hn,tt?"readwrite":"readonly");let jr=fr.store;return Le&&(jr=jr.index(Bn.shift())),(yield Promise.all([jr[J](...Bn),tt&&fr.done]))[0]});return function(Bn){return Gt.apply(this,arguments)}}();return vt.set(F,mt),mt}!function Ve(T){He=T(He)}(T=>({...T,get:(F,J,Le)=>jt(F,J)||T.get(F,J,Le),has:(F,J)=>!!jt(F,J)||T.has(F,J)}));const On="@firebase/installations",Sn="0.6.4",St=1e4,yn=`w:${Sn}`,ae="FIS_v2",Ne="https://firebaseinstallations.googleapis.com/v1",Xe=36e5,$t=new pe.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function cn(T){return T instanceof pe.ZR&&T.code.includes("request-failed")}function tr({projectId:T}){return`${Ne}/projects/${T}/installations`}
1function wn(T){return{token:T.token,requestStatus:2,expiresIn:xn(T.expiresIn),creationTime:Date.now()}}function Wn(T,F){return qn.apply(this,arguments)}function qn(){return(qn=(0,V.Z)(function*(T,F){const Le=(yield F.json()).error;return $t.create("request-failed",{requestName:T,serverCode:Le.code,serverMessage:Le.message,serverStatus:Le.status})})).apply(this,arguments)}function nn({apiKey:T}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":T})}function rn(T){return _n.apply(this,arguments)}function _n(){return(_n=(0,V.Z)(function*(T){const F=yield T();return F.status>=500&&F.status<600?T():F})).apply(this,arguments)}function xn(T){return Number(T.replace("s","000"))}function se(){return(se=(0,V.Z)(function*({appConfig:T,heartbeatServiceProvider:F},{fid:J}){const Le=tr(T),tt=nn(T),mt=F.getImmediate({optional:!0});if(mt){const fr=yield mt.getHeartbeatsHeader();fr&&tt.append("x-firebase-client",fr)}const Hn={method:"POST",headers:tt,body:JSON.stringify({fid:J,authVersion:ae,appId:T.appId,sdkVersion:yn})},Bn=yield rn(()=>fetch(Le,Hn));if(Bn.ok){const fr=yield Bn.json();return{fid:fr.fid||J,registrationStatus:2,refreshToken:fr.refreshToken,authToken:wn(fr.authToken)}}throw yield Wn("Create Installation",Bn)})).apply(this,arguments)}function K(T){return new Promise(F=>{setTimeout(F,T)})}const Be=/^[cdef][\w-]{21}$/,It="";function Yt(){try{const T=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(T),T[0]=112+T[0]%16;const J=function qt(T){return function Te(T){return btoa(String.fromCharCode(...T)).replace(/\+/g,"-").replace(/\//g,"_")}(T).substr(0,22)}(T);return Be.test(J)?J:It}catch{return It}}function dn(T){return`${T.appName}!${T.appId}`}const sn=new Map;function Xt(T,F){const J=dn(T);Dr(J,F),function vr(T,F){const J=function bt(){return!Gn&&"BroadcastChannel"in self&&(Gn=new BroadcastChannel("[Firebase] FID Change"),Gn.onmessage=T=>{Dr(T.data.key,T.data.fid)}),Gn}();J&&J.postMessage({key:T,fid:F}),function en(){0===sn.size&&Gn&&(Gn.close(),Gn=null)}()}(J,F)}function Dr(T,F){const J=sn.get(T);if(J)for(const Le of J)Le(F)}let Gn=null;const Se="firebase-installations-database",ct=1,We="firebase-installations-store";let Q=null;function ue(){return Q||(Q=function At(T,F,{blocked:J,upgrade:Le,blocking:tt,terminated:mt}={}){const Gt=indexedDB.open(T,F),Hn=rt(Gt);return Le&&Gt.addEventListener("upgradeneeded",Bn=>{Le(rt(Gt.result),Bn.oldVersion,Bn.newVersion,rt(Gt.transaction))}),J&&Gt.addEventListener("blocked",()=>J()),Hn.then(Bn=>{mt&&Bn.addEventListener("close",()=>mt()),tt&&Bn.addEventListener("versionchange",()=>tt())}).catch(()=>{}),Hn}(Se,ct,{upgrade:(T,F)=>{0===F&&T.createObjectStore(We)}})),Q}function fe(T,F){return X.apply(this,arguments)}function X(){return(X=(0,V.Z)(function*(T,F){const J=dn(T),tt=(yield ue()).transaction(We,"readwrite"),mt=tt.objectStore(We),Gt=yield mt.get(J);return yield mt.put(F,J),yield tt.done,(!Gt||Gt.fid!==F.fid)&&Xt(T,F.fid),F})).apply(this,arguments)}function ce(T){return xe.apply(this,arguments)}function xe(){return(xe=(0,V.Z)(function*(T){const F=dn(T),Le=(yield ue()).transaction(We,"readwrite");yield Le.objectStore(We).delete(F),yield Le.done})).apply(this,arguments)}function Ft(T,F){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,V.Z)(function*(T,F){const J=dn(T),tt=(yield ue()).transaction(We,"readwrite"),mt=tt.objectStore(We),Gt=yield mt.get(J),Hn=F(Gt);return void 0===Hn?yield mt.delete(J):yield mt.put(Hn,J),yield tt.done,Hn&&(!Gt||Gt.fid!==Hn.fid)&&Xt(T,Hn.fid),Hn})).apply(this,arguments)}function ke(T){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,V.Z)(function*(T){let F;const J=yield Ft(T.appConfig,Le=>{const tt=function Ge(T){return $(T||{fid:Yt(),registrationStatus:0})}(Le),mt=function Et(T,F){if(0===F.registrationStatus){if(!navigator.onLine)return{installationEntry:F,registrationPromise:Promise.reject($t.create("app-offline"))};const J={fid:F.fid,registrationStatus:1,registrationTime:Date.now()},Le=function ht(T,F){return an.apply(this,arguments)}(T,J);return{installationEntry:J,registrationPromise:Le}}return 1===F.registrationStatus?{installationEntry:F,registrationPromise:$e(T)}:{installationEntry:F}}(T,tt);return F=mt.registrationPromise,mt.installationEntry});return J.fid===It?{installationEntry:yield F}:{installationEntry:J,registrationPromise:F}}),Fe.apply(this,arguments)}function an(){return an=(0,V.Z)(function*(T,F){try{const J=yield function Nt(T,F){return se.apply(this,arguments)}(T,F);return fe(T.appConfig,J)}catch(J){throw cn(J)&&409===J.customData.serverCode?yield ce(T.appConfig):yield fe(T.appConfig,{fid:F.fid,registrationStatus:0}),J}}),an.apply(this,arguments)}function $e(T){return oe.apply(this,arguments)}function oe(){return(oe=(0,V.Z)(function*(T){let F=yield j(T.appConfig);for(;1===F.registrationStatus;)yield K(100),F=yield j(T.appConfig);if(0===F.registrationStatus){const{installationEntry:J,registrationPromise:Le}=yield ke(T);return Le||J}return F})).apply(this,arguments)}function j(T){return Ft(T,F=>{if(!F)throw $t.create("installation-not-found");return $(F)})}function $(T){return function Ie(T){return 1===T.registrationStatus&&T.registrationTime+St<Date.now()}(T)?{fid:T.fid,registrationStatus:0}:T}function kt(){return(kt=(0,V.Z)(function*({appConfig:T,heartbeatServiceProvider:F},J){const Le=function Cn(T,{fid:F}){return`${tr(T)}/${F}/authTokens:generate`}(T,J),tt=function hn(T,{refreshToken:F}){const J=nn(T);return J.append("Authorization",function Mt(T){return`${ae} ${T}`}(F)),J}(T,J),mt=F.getImmediate({optional:!0});if(mt){const fr=yield mt.getHeartbeatsHeader();fr&&tt.append("x-firebase-client",fr)}const Hn={method:"POST",headers:tt,body:JSON.stringify({installation:{sdkVersion:yn,appId:T.appId}})},Bn=yield rn(()=>fetch(Le,Hn));if(Bn.ok)return wn(yield Bn.json());throw yield Wn("Generate Auth Token",Bn)})).apply(this,arguments)}function nr(T){return Rr.apply(this,arguments)}function Rr(){return Rr=(0,V.Z)(function*(T,F=!1){let J;const Le=yield Ft(T.appConfig,mt=>{if(!Tr(mt))throw $t.create("not-registered");const Gt=mt.authToken;if(!F&&function Pn(T){return 2===T.requestStatus&&!function kr(T){const F=Date.now();
1return F<T.creationTime||T.creationTime+T.expiresIn<F+Xe}(T)}(Gt))return mt;if(1===Gt.requestStatus)return J=function Rt(T,F){return xt.apply(this,arguments)}(T,F),mt;{if(!navigator.onLine)throw $t.create("app-offline");const Hn=function wr(T){const F={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},T),{authToken:F})}(mt);return J=function Kn(T,F){return Yn.apply(this,arguments)}(T,Hn),Hn}});return J?yield J:Le.authToken}),Rr.apply(this,arguments)}function xt(){return(xt=(0,V.Z)(function*(T,F){let J=yield pn(T.appConfig);for(;1===J.authToken.requestStatus;)yield K(100),J=yield pn(T.appConfig);const Le=J.authToken;return 0===Le.requestStatus?nr(T,F):Le})).apply(this,arguments)}function pn(T){return Ft(T,F=>{if(!Tr(F))throw $t.create("not-registered");return function _i(T){return 1===T.requestStatus&&T.requestTime+St<Date.now()}(F.authToken)?Object.assign(Object.assign({},F),{authToken:{requestStatus:0}}):F})}function Yn(){return Yn=(0,V.Z)(function*(T,F){try{const J=yield function Qe(T,F){return kt.apply(this,arguments)}(T,F),Le=Object.assign(Object.assign({},F),{authToken:J});return yield fe(T.appConfig,Le),J}catch(J){if(!cn(J)||401!==J.customData.serverCode&&404!==J.customData.serverCode){const Le=Object.assign(Object.assign({},F),{authToken:{requestStatus:0}});yield fe(T.appConfig,Le)}else yield ce(T.appConfig);throw J}}),Yn.apply(this,arguments)}function Tr(T){return void 0!==T&&2===T.registrationStatus}function ro(){return(ro=(0,V.Z)(function*(T){const F=T,{installationEntry:J,registrationPromise:Le}=yield ke(F);return Le?Le.catch(console.error):nr(F).catch(console.error),J.fid})).apply(this,arguments)}function Rs(){return Rs=(0,V.Z)(function*(T,F=!1){const J=T;return yield function Si(T){return Tn.apply(this,arguments)}(J),(yield nr(J,F)).token}),Rs.apply(this,arguments)}function Tn(){return(Tn=(0,V.Z)(function*(T){const{registrationPromise:F}=yield ke(T);F&&(yield F)})).apply(this,arguments)}function Fi(T){return $t.create("missing-app-config-values",{valueName:T})}const ir="installations",ws=T=>{const F=T.getProvider("app").getImmediate(),J=function Ai(T){if(!T||!T.options)throw Fi("App Configuration");if(!T.name)throw Fi("App Name");const F=["projectId","apiKey","appId"];for(const J of F)if(!T.options[J])throw Fi(J);return{appName:T.name,projectId:T.options.projectId,apiKey:T.options.apiKey,appId:T.options.appId}}(F);return{app:F,appConfig:J,heartbeatServiceProvider:(0,_e._getProvider)(F,"heartbeat"),_delete:()=>Promise.resolve()}},ds=T=>{const F=T.getProvider("app").getImmediate(),J=(0,_e._getProvider)(F,ir).getImmediate();return{getId:()=>function li(T){return ro.apply(this,arguments)}(J),getToken:tt=>function Ni(T){return Rs.apply(this,arguments)}(J,tt)}};(function wi(){(0,_e._registerComponent)(new me.wA(ir,ws,"PUBLIC")),(0,_e._registerComponent)(new me.wA("installations-internal",ds,"PRIVATE"))})(),(0,_e.registerVersion)(On,Sn),(0,_e.registerVersion)(On,Sn,"esm2017");const ni="@firebase/remote-config",Xr=new pe.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class Qi{constructor(F,J,Le,tt){this.client=F,this.storage=J,this.storageCache=Le,this.logger=tt}
1isCachedDataFresh(F,J){if(!J)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const Le=Date.now()-J,tt=Le<=F;return this.logger.debug(`Config fetch cache check. Cache age millis: ${Le}. Cache max age millis (minimumFetchIntervalMillis setting): ${F}. Is cache hit: ${tt}.`),tt}fetch(F){var J=this;return(0,V.Z)(function*(){const[Le,tt]=yield Promise.all([J.storage.getLastSuccessfulFetchTimestampMillis(),J.storage.getLastSuccessfulFetchResponse()]);if(tt&&J.isCachedDataFresh(F.cacheMaxAgeMillis,Le))return tt;F.eTag=tt&&tt.eTag;const mt=yield J.client.fetch(F),Gt=[J.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===mt.status&&Gt.push(J.storage.setLastSuccessfulFetchResponse(mt)),yield Promise.all(Gt),mt})()}}function ko(T=navigator){return T.languages&&T.languages[0]||T.language}class so{constructor(F,J,Le,tt,mt,Gt){this.firebaseInstallations=F,this.sdkVersion=J,this.namespace=Le,this.projectId=tt,this.apiKey=mt,this.appId=Gt}fetch(F){var J=this;return(0,V.Z)(function*(){const[Le,tt]=yield Promise.all([J.firebaseInstallations.getId(),J.firebaseInstallations.getToken()]),Gt=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${J.projectId}/namespaces/${J.namespace}:fetch?key=${J.apiKey}`,Hn={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":F.eTag||"*"},Bn={sdk_version:J.sdkVersion,app_instance_id:Le,app_instance_id_token:tt,app_id:J.appId,language_code:ko()},fr={method:"POST",headers:Hn,body:JSON.stringify(Bn)},jr=fetch(Gt,fr),zr=new Promise((va,Pa)=>{F.signal.addEventListener(()=>{const gc=new Error("The operation was aborted.");gc.name="AbortError",Pa(gc)})});let la;try{yield Promise.race([jr,zr]),la=yield jr}catch(va){let Pa="fetch-client-network";throw"AbortError"===va?.name&&(Pa="fetch-timeout"),Xr.create(Pa,{originalErrorMessage:va?.message})}let Ps=la.status;const Gl=la.headers.get("ETag")||void 0;let Nc,Al;if(200===la.status){let va;try{va=yield la.json()}catch(Pa){throw Xr.create("fetch-client-parse",{originalErrorMessage:Pa?.message})}Nc=va.entries,Al=va.state}if("INSTANCE_STATE_UNSPECIFIED"===Al?Ps=500:"NO_CHANGE"===Al?Ps=304:("NO_TEMPLATE"===Al||"EMPTY_CONFIG"===Al)&&(Nc={}),304!==Ps&&200!==Ps)throw Xr.create("fetch-status",{httpStatus:Ps});return{status:Ps,eTag:Gl,config:Nc}})()}}class Ia{constructor(F,J){this.client=F,this.storage=J}fetch(F){var J=this;return(0,V.Z)(function*(){const Le=(yield J.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return J.attemptFetch(F,Le)})()}attemptFetch(F,{throttleEndTimeMillis:J,backoffCount:Le}){var tt=this;return(0,V.Z)(function*(){yield function qo(T,F){return new Promise((J,Le)=>{const tt=Math.max(F-Date.now(),0),mt=setTimeout(J,tt);T.addEventListener(()=>{clearTimeout(mt),Le(Xr.create("fetch-throttle",{throttleEndTimeMillis:F}))})})}(F.signal,J);try{const mt=yield tt.client.fetch(F);return yield tt.storage.deleteThrottleMetadata(),mt}catch(mt){if(!function oo(T){if(!(T instanceof pe.ZR&&T.customData))return!1;const F=Number(T.customData.httpStatus);return 429===F||500===F||503===F||504===F}(mt))throw mt;const Gt={throttleEndTimeMillis:Date.now()+(0,pe.$s)(Le),backoffCount:Le+1};return yield tt.storage.setThrottleMetadata(Gt),tt.attemptFetch(F,Gt)}})()}}class La{constructor(F,J,Le,tt,mt){this.app=F,this._client=J,this._storageCache=Le,this._storage=tt,this._logger=mt,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function ao(T,F){const J=T.target.error||void 0;return Xr.create(F,{originalErrorMessage:J&&J?.message})}const rs="app_namespace_store";class zo{constructor(F,J,Le,tt=function Fs(){return new Promise((T,F)=>{try{const J=indexedDB.open("firebase_remote_config",1);J.onerror=Le=>{F(ao(Le,"storage-open"))},J.onsuccess=Le=>{T(Le.target.result)},J.onupgradeneeded=Le=>{0===Le.oldVersion&&Le.target.result.createObjectStore(rs,{keyPath:"compositeKey"})}}catch(J){F(Xr.create("storage-open",{originalErrorMessage:J?.message}))}})}()){this.appId=F,this.appName=J,this.namespace=Le,this.openDbPromise=tt}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(F){return this.set("last_fetch_status",F)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(F){return this.set("last_successful_fetch_timestamp_millis",F)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(F){return this.set("last_successful_fetch_response",F)}getActiveConfig(){return this.get("active_config")}setActiveConfig(F){return this.set("active_config",F)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(F){return this.set("active_config_etag",F)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(F){return this.set("throttle_metadata",F)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(F){var J=this;return(0,V.Z)(function*(){const Le=yield J.openDbPromise;return new Promise((tt,mt)=>{const Hn=Le.transaction([rs],"readonly").objectStore(rs),Bn=J.createCompositeKey(F);try{const fr=Hn.get(Bn);fr.onerror=jr=>{mt(ao(jr,"storage-get"))},fr.onsuccess=jr=>{const zr=jr.target.result;tt(zr?zr.value:void 0)}}catch(fr){mt(Xr.create("storage-get",{originalErrorMessage:fr?.message}))}})})()}set(F,J){var Le=this;return(0,V.Z)(function*(){const tt=yield Le.openDbPromise;return new Promise((mt,Gt)=>{const Bn=tt.transaction([rs],"readwrite").objectStore(rs),fr=Le.createCompositeKey(F);try{const jr=Bn.put({compositeKey:fr,value:J});jr.onerror=zr=>{Gt(ao(zr,"storage-set"))},jr.onsuccess=()=>{mt()}}catch(jr){Gt(Xr.create("storage-set",{originalErrorMessage:jr?.message}))}})})()}delete(F){var J=this;return(0,V.Z)(function*(){const Le=yield J.openDbPromise;return new Promise((tt,mt)=>{const Hn=Le.transaction([rs],"readwrite").objectStore(rs),Bn=J.createCompositeKey(F);try{const fr=Hn.delete(Bn);fr.onerror=jr=>{mt(ao(jr,"storage-delete"))},fr.onsuccess=()=>{tt()}}catch(fr){mt(Xr.create("storage-delete",{originalErrorMessage:fr?.message}))}})})()}createCompositeKey(F){return[this.appId,this.appName,this.namespace,F].join()}}class Yo{constructor(F){this.storage=F}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var F=this;return(0,V.Z)(function*(){const J=F.storage.getLastFetchStatus(),Le=F.storage.getLastSuccessfulFetchTimestampMillis(),tt=F.storage.getActiveConfig(),mt=yield J;mt&&(F.lastFetchStatus=mt);const Gt=yield Le;Gt&&(F.lastSuccessfulFetchTimestampMillis=Gt);const Hn=yield tt;Hn&&(F.activeConfig=Hn)})()}setLastFetchStatus(F){return this.lastFetchStatus=F,this.storage.setLastFetchStatus(F)}setLastSuccessfulFetchTimestampMillis(F){return this.lastSuccessfulFetchTimestampMillis=F,this.storage.setLastSuccessfulFetchTimestampMillis(F)}setActiveConfig(F){return this.activeConfig=F,this.storage.setActiveConfig(F)}}function co(){return So.apply(this,arguments)}function So(){return(So=(0,V.Z)(function*(){if(!(0,pe.hl)())return!1;try{return yield(0,pe.eu)()}catch{return!1}}
1)).apply(this,arguments)}!function hs(){(0,_e._registerComponent)(new me.wA("remote-config",function T(F,{instanceIdentifier:J}){const Le=F.getProvider("app").getImmediate(),tt=F.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Xr.create("registration-window");if(!(0,pe.hl)())throw Xr.create("indexed-db-unavailable");const{projectId:mt,apiKey:Gt,appId:Hn}=Le.options;if(!mt)throw Xr.create("registration-project-id");if(!Gt)throw Xr.create("registration-api-key");if(!Hn)throw Xr.create("registration-app-id");const Bn=new zo(Hn,Le.name,J=J||"firebase"),fr=new Yo(Bn),jr=new Oe.Yd(ni);jr.logLevel=Oe.in.ERROR;const zr=new so(tt,_e.SDK_VERSION,J,mt,Gt,Hn),la=new Ia(zr,Bn),Ps=new Qi(la,Bn,fr,jr),Gl=new La(Le,Ps,fr,Bn,jr);return function yr(T){const F=(0,pe.m9)(T);F._initializePromise||(F._initializePromise=F._storageCache.loadFromStorage().then(()=>{F._isInitializationComplete=!0}))}(Gl),Gl},"PUBLIC").setMultipleInstances(!0)),(0,_e.registerVersion)(ni,"0.4.4"),(0,_e.registerVersion)(ni,"0.4.4","esm2017")}();const Wi=(T,F)=>F.some(J=>T instanceof J);let vo,xi;const fs=new WeakMap,Li=new WeakMap,Hi=new WeakMap,Ki=new WeakMap,Ds=new WeakMap;let ys={get(T,F,J){if(T instanceof IDBTransaction){if("done"===F)return Li.get(T);if("objectStoreNames"===F)return T.objectStoreNames||Hi.get(T);if("store"===F)return J.objectStoreNames[1]?void 0:J.objectStore(J.objectStoreNames[0])}return Vi(T[F])},set:(T,F,J)=>(T[F]=J,!0),has:(T,F)=>T instanceof IDBTransaction&&("done"===F||"store"===F)||F in T};function Eo(T){return"function"==typeof T?function Xi(T){return T!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ao(){return xi||(xi=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(T)?function(...F){return T.apply(Ci(this),F),Vi(fs.get(this))}:function(...F){return Vi(T.apply(Ci(this),F))}:function(F,...J){const Le=T.call(Ci(this),F,...J);return Hi.set(Le,F.sort?F.sort():[F]),Vi(Le)}}(T):(T instanceof IDBTransaction&&function Mi(T){if(Li.has(T))return;const F=new Promise((J,Le)=>{const tt=()=>{T.removeEventListener("complete",mt),T.removeEventListener("error",Gt),T.removeEventListener("abort",Gt)},mt=()=>{J(),tt()},Gt=()=>{Le(T.error||new DOMException("AbortError","AbortError")),tt()};T.addEventListener("complete",mt),T.addEventListener("error",Gt),T.addEventListener("abort",Gt)});Li.set(T,F)}(T),Wi(T,function Qo(){return vo||(vo=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(T,ys):T)}function Vi(T){if(T instanceof IDBRequest)return function vi(T){const F=new Promise((J,Le)=>{const tt=()=>{T.removeEventListener("success",mt),T.removeEventListener("error",Gt)},mt=()=>{J(Vi(T.result)),tt()},Gt=()=>{Le(T.error),tt()};T.addEventListener("success",mt),T.addEventListener("error",Gt)});return F.then(J=>{J instanceof IDBCursor&&fs.set(J,T)}).catch(()=>{}),Ds.set(F,T),F}(T);if(Ki.has(T))return Ki.get(T);const F=Eo(T);return F!==T&&(Ki.set(T,F),Ds.set(F,T)),F}const Ci=T=>Ds.get(T);function uo(T,F,{blocked:J,upgrade:Le,blocking:tt,terminated:mt}={}){const Gt=indexedDB.open(T,F),Hn=Vi(Gt);return Le&&Gt.addEventListener("upgradeneeded",Bn=>{Le(Vi(Gt.result),Bn.oldVersion,Bn.newVersion,Vi(Gt.transaction))}),J&&Gt.addEventListener("blocked",()=>J()),Hn.then(Bn=>{mt&&Bn.addEventListener("close",()=>mt()),tt&&Bn.addEventListener("versionchange",()=>tt())}).catch(()=>{}),Hn}function zs(T,{blocked:F}={}){const J=indexedDB.deleteDatabase(T);return F&&J.addEventListener("blocked",()=>F()),Vi(J).then(()=>{})}const Ws=["get","getKey","getAll","getAllKeys","count"],Gi=["put","add","delete","clear"],Ls=new Map;function Ji(T,F){if(!(T instanceof IDBDatabase)||F in T||"string"!=typeof F)return;if(Ls.get(F))return Ls.get(F);const J=F.replace(/FromIndex$/,""),Le=F!==J,tt=Gi.includes(J);if(!(J in(Le?IDBIndex:IDBObjectStore).prototype)||!tt&&!Ws.includes(J))return;const mt=function(){var Gt=(0,V.Z)(function*(Hn,...Bn){const fr=this.transaction(Hn,tt?"readwrite":"readonly");let jr=fr.store;return Le&&(jr=jr.index(Bn.shift())),(yield Promise.all([jr[J](...Bn),tt&&fr.done]))[0]});return function(Bn){return Gt.apply(this,arguments)}}();return Ls.set(F,mt),mt}!function xr(T){ys=T(ys)}(T=>({...T,get:(F,J,Le)=>Ji(F,J)||T.get(F,J,Le),has:(F,J)=>!!Ji(F,J)||T.has(F,J)}));const mr="/firebase-messaging-sw.js",Ks="/firebase-cloud-messaging-push-scope",Y="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",W="https://fcmregistrations.googleapis.com/v1",Ae="google.c.a.c_id",Je="google.c.a.c_l",gt="google.c.a.ts",Qt="google.c.a.e";var S=(()=>{return(T=S||(S={})).PUSH_RECEIVED="push-received",T.NOTIFICATION_CLICKED="notification-clicked",S;var T})();function x(T){const F=new Uint8Array(T);return btoa(String.fromCharCode(...F)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function P(T){const J=(T+"=".repeat((4-T.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),Le=atob(J),tt=new
1Uint8Array(Le.length);for(let mt=0;mt<Le.length;++mt)tt[mt]=Le.charCodeAt(mt);return tt}const le="fcm_token_details_db",Tt=5,In="fcm_token_object_Store";function Sr(){return Sr=(0,V.Z)(function*(T){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(mt=>mt.name).includes(le))return null;let F=null;return(yield uo(le,Tt,{upgrade:(Le=(0,V.Z)(function*(tt,mt,Gt,Hn){var Bn;if(mt<2||!tt.objectStoreNames.contains(In))return;const fr=Hn.objectStore(In),jr=yield fr.index("fcmSenderId").get(T);if(yield fr.clear(),jr)if(2===mt){const zr=jr;if(!zr.auth||!zr.p256dh||!zr.endpoint)return;F={token:zr.fcmToken,createTime:null!==(Bn=zr.createTime)&&void 0!==Bn?Bn:Date.now(),subscriptionOptions:{auth:zr.auth,p256dh:zr.p256dh,endpoint:zr.endpoint,swScope:zr.swScope,vapidKey:"string"==typeof zr.vapidKey?zr.vapidKey:x(zr.vapidKey)}}}else if(3===mt){const zr=jr;F={token:zr.fcmToken,createTime:zr.createTime,subscriptionOptions:{auth:x(zr.auth),p256dh:x(zr.p256dh),endpoint:zr.endpoint,swScope:zr.swScope,vapidKey:x(zr.vapidKey)}}}else if(4===mt){const zr=jr;F={token:zr.fcmToken,createTime:zr.createTime,subscriptionOptions:{auth:x(zr.auth),p256dh:x(zr.p256dh),endpoint:zr.endpoint,swScope:zr.swScope,vapidKey:x(zr.vapidKey)}}}}),function(mt,Gt,Hn,Bn){return Le.apply(this,arguments)})})).close(),yield zs(le),yield zs("fcm_vapid_details_db"),yield zs("undefined"),function ki(T){if(!T||!T.subscriptionOptions)return!1;const{subscriptionOptions:F}=T;return"number"==typeof T.createTime&&T.createTime>0&&"string"==typeof T.token&&T.token.length>0&&"string"==typeof F.auth&&F.auth.length>0&&"string"==typeof F.p256dh&&F.p256dh.length>0&&"string"==typeof F.endpoint&&F.endpoint.length>0&&"string"==typeof F.swScope&&F.swScope.length>0&&"string"==typeof F.vapidKey&&F.vapidKey.length>0}(F)?F:null;var Le}),Sr.apply(this,arguments)}const Jr="firebase-messaging-database",_s=1,Ri="firebase-messaging-store";let hi=null;function Wr(){return hi||(hi=uo(Jr,_s,{upgrade:(T,F)=>{0===F&&T.createObjectStore(Ri)}})),hi}function is(T){return ss.apply(this,arguments)}function ss(){return ss=(0,V.Z)(function*(T){const F=Da(T),Le=yield(yield Wr()).transaction(Ri).objectStore(Ri).get(F);if(Le)return Le;{const tt=yield function _r(T){return Sr.apply(this,arguments)}(T.appConfig.senderId);if(tt)return yield ho(T,tt),tt}}),ss.apply(this,arguments)}function ho(T,F){return Ui.apply(this,arguments)}function Ui(){return(Ui=(0,V.Z)(function*(T,F){const J=Da(T),tt=(yield Wr()).transaction(Ri,"readwrite");return yield tt.objectStore(Ri).put(F,J),yield tt.done,F})).apply(this,arguments)}function da(){return(da=(0,V.Z)(function*(T){const F=Da(T),Le=(yield Wr()).transaction(Ri,"readwrite");yield Le.objectStore(Ri).delete(F),yield Le.done})).apply(this,arguments)}function Da({appConfig:T}){return T.appId}const os=new pe.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
1d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function as(T,F){return ha.apply(this,arguments)}function ha(){return(ha=(0,V.Z)(function*(T,F){const J=yield Wo(T),Le=Va(F),tt={method:"POST",headers:J,body:JSON.stringify(Le)};let mt;try{mt=yield(yield fetch(Mo(T.appConfig),tt)).json()}catch(Gt){throw os.create("token-subscribe-failed",{errorInfo:Gt?.toString()})}if(mt.error)throw os.create("token-subscribe-failed",{errorInfo:mt.error.message});if(!mt.token)throw os.create("token-subscribe-no-token");return mt.token})).apply(this,arguments)}function Sa(){return(Sa=(0,V.Z)(function*(T,F){const J=yield Wo(T),Le=Va(F.subscriptionOptions),tt={method:"PATCH",headers:J,body:JSON.stringify(Le)};let mt;try{mt=yield(yield fetch(`${Mo(T.appConfig)}/${F.token}`,tt)).json()}catch(Gt){throw os.create("token-update-failed",{errorInfo:Gt?.toString()})}if(mt.error)throw os.create("token-update-failed",{errorInfo:mt.error.message});if(!mt.token)throw os.create("token-update-no-token");return mt.token})).apply(this,arguments)}function Vs(T,F){return Ts.apply(this,arguments)}function Ts(){return(Ts=(0,V.Z)(function*(T,F){const Le={method:"DELETE",headers:yield Wo(T)};try{const mt=yield(yield fetch(`${Mo(T.appConfig)}/${F}`,Le)).json();if(mt.error)throw os.create("token-unsubscribe-failed",{errorInfo:mt.error.message})}catch(tt){throw os.create("token-unsubscribe-failed",{errorInfo:tt?.toString()})}})).apply(this,arguments)}function Mo({projectId:T}){return`${W}/projects/${T}/registrations`}function Wo(T){return bo.apply(this,arguments)}function bo(){return(bo=(0,V.Z)(function*({appConfig:T,installations:F}){const J=yield F.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":T.apiKey,"x-goog-firebase-installations-auth":`FIS ${J}`})})).apply(this,arguments)}function Va({p256dh:T,auth:F,endpoint:J,vapidKey:Le}){const tt={web:{endpoint:J,auth:F,p256dh:T}};return Le!==Y&&(tt.web.applicationPubKey=Le),tt}const Xo=6048e5;function Ss(){return Ss=(0,V.Z)(function*(T){const F=yield function Jo(T,F){return Ua.apply(this,arguments)}(T.swRegistration,T.vapidKey),J={vapidKey:T.vapidKey,swScope:T.swRegistration.scope,endpoint:F.endpoint,auth:x(F.getKey("auth")),p256dh:x(F.getKey("p256dh"))},Le=yield is(T.firebaseDependencies);if(Le){if(function wl(T,F){return F.vapidKey===T.vapidKey&&F.endpoint===T.endpoint&&F.auth===T.auth&&F.p256dh===T.p256dh}(Le.subscriptionOptions,J))return Date.now()>=Le.createTime+Xo?function Ti(T,F){return No.apply(this,arguments)}(T,{token:Le.token,createTime:Date.now(),subscriptionOptions:J}):Le.token;try{yield Vs(T.firebaseDependencies,Le.token)}catch(tt){console.warn(tt)}return fa(T.firebaseDependencies,J)}return fa(T.firebaseDependencies,J)}),Ss.apply(this,arguments)}function Us(){return Us=(0,V.Z)(function*(T){const F=yield is(T.firebaseDependencies);F&&(yield Vs(T.firebaseDependencies,F.token),yield function Fr(T){return da.apply(this,arguments)}(T.firebaseDependencies));const J=yield T.swRegistration.pushManager.getSubscription();return!J||J.unsubscribe()}),Us.apply(this,arguments)}function No(){return No=(0,V.Z)(function*(T,F){try{const J=yield function oi(T,F){return Sa.apply(this,arguments)}(T.firebaseDependencies,F),Le=Object.assign(Object.assign({},F),{token:J,createTime:Date.now()});return yield ho(T.firebaseDependencies,Le),J}catch(J){throw yield function ii(T){return Us.apply(this,arguments)}(T),J}}),No.apply(this,arguments)}function fa(T,F){return wo.apply(this,arguments)}function wo(){return(wo=(0,V.Z)(function*(T,F){const Le={token:yield as(T,F),createTime:Date.now(),subscriptionOptions:F};return yield ho(T,Le),Le.token})).apply(this,arguments)}function Ua(){return(Ua=(0,V.Z)(function*(T,F){return(yield T.pushManager.getSubscription())||T.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:P(F)})})).apply(this,arguments)}function Co(T){const F={from:T.from,collapseKey:T.collapse_key,messageId:T.fcmMessageId};return function ja(T,F){if(!F.notification)return;T.notification={};const J=F.notification.title;J&&(T.notification.title=J);const Le=F.notification.body;Le&&(T.notification.body=Le);const tt=F.notification.image;tt&&(T.notification.image=tt);const mt=F.notification.icon;mt&&(T.notification.icon=mt)}(F,T),function Ba(T,F){F.data&&(T.data=F.data)}(F,T),function k(T,F){var J,Le,tt,mt,Gt;if(!(F.fcmOptions||null!==(J=F.notification)&&void 0!==J&&J.click_action))return;T.fcmOptions={};const Hn=null!==(tt=null===(Le=F.fcmOptions)||void 0===Le?void 0:Le.link)&&void 0!==tt?tt:null===(mt=F.notification)||void 0===mt?void 0:mt.click_action;Hn&&(T.fcmOptions.link=Hn);const Bn=null===(Gt=F.fcmOptions)||void 0===Gt?void 0:Gt.analytics_label;Bn&&(T.fcmOptions.analyticsLabel=Bn)}(F,T),F}function U(T,F){const J=[];for(let Le=0;Le<T.length;Le++)J.push(T.charAt(Le)),Le<F.length&&J.push(F.charAt(Le));
1return J.join("")}function Ye(T){return os.create("missing-app-config-values",{valueName:T})}U("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),U("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Kt{constructor(F,J,Le){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const tt=function ye(T){if(!T||!T.options)throw Ye("App Configuration Object");if(!T.name)throw Ye("App Name");const F=["projectId","apiKey","appId","messagingSenderId"],{options:J}=T;for(const Le of F)if(!J[Le])throw Ye(Le);return{appName:T.name,projectId:J.projectId,apiKey:J.apiKey,appId:J.appId,senderId:J.messagingSenderId}}(F);this.firebaseDependencies={app:F,appConfig:tt,installations:J,analyticsProvider:Le}}_delete(){return Promise.resolve()}}function fn(T){return Un.apply(this,arguments)}function Un(){return(Un=(0,V.Z)(function*(T){try{T.swRegistration=yield navigator.serviceWorker.register(mr,{scope:Ks}),T.swRegistration.update().catch(()=>{})}catch(F){throw os.create("failed-service-worker-registration",{browserErrorMessage:F?.message})}})).apply(this,arguments)}function $r(){return($r=(0,V.Z)(function*(T,F){if(!F&&!T.swRegistration&&(yield fn(T)),F||!T.swRegistration){if(!(F instanceof ServiceWorkerRegistration))throw os.create("invalid-sw-registration");T.swRegistration=F}})).apply(this,arguments)}function Hr(){return(Hr=(0,V.Z)(function*(T,F){F?T.vapidKey=F:T.vapidKey||(T.vapidKey=Y)})).apply(this,arguments)}function or(){return or=(0,V.Z)(function*(T,F){if(!navigator)throw os.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw os.create("permission-blocked");return yield function Lr(T,F){return Hr.apply(this,arguments)}(T,F?.vapidKey),yield function pi(T,F){return $r.apply(this,arguments)}(T,F?.serviceWorkerRegistration),function fo(T){return Ss.apply(this,arguments)}(T)}),or.apply(this,arguments)}function Gs(){return(Gs=(0,V.Z)(function*(T,F,J){const Le=function kn(T){switch(T){case S.NOTIFICATION_CLICKED:return"notification_open";case S.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(F);(yield T.firebaseDependencies.analyticsProvider.get()).logEvent(Le,{message_id:J[Ae],message_name:J[Je],message_time:J[gt],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function vs(){return vs=(0,V.Z)(function*(T,F){const J=F.data;if(!J.isFirebaseMessaging)return;T.onMessageHandler&&J.messageType===S.PUSH_RECEIVED&&("function"==typeof T.onMessageHandler?T.onMessageHandler(Co(J)):T.onMessageHandler.next(Co(J)));const Le=J.data;(function ne(T){return"object"==typeof T&&!!T&&Ae in T})(Le)&&"1"===Le[Qt]&&(yield function gi(T,F,J){return Gs.apply(this,arguments)}(T,J.messageType,Le))}),vs.apply(this,arguments)}const Rn="@firebase/messaging",gn=T=>{const F=new Kt(T.getProvider("app").getImmediate(),T.getProvider("installations-internal").getImmediate(),T.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",J=>function Xn(T,F){return vs.apply(this,arguments)}(F,J)),F},es=T=>{const F=T.getProvider("messaging").getImmediate();return{getToken:Le=>function on(T,F){return or.apply(this,arguments)}(F,Le)}};function uc(){return Aa.apply(this,arguments)}function Aa(){return(Aa=(0,V.Z)(function*(){try{yield(0,pe.eu)()}catch{return!1}return typeof window<"u"&&(0,pe.hl)()&&(0,pe.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function Qa(){(0,_e._registerComponent)(new me.wA("messaging",gn,"PUBLIC")),(0,_e._registerComponent)(new me.wA("messaging-internal",es,"PRIVATE")),(0,_e.registerVersion)(Rn,"0.12.4"),(0,_e.registerVersion)(Rn,"0.12.4","esm2017")}();const Jn="analytics",na="firebase_id",Ha="origin",ji=6e4,cr="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Ma="https://www.googletagmanager.com/gtag/js",Pr=new Oe.Yd("@firebase/analytics"),Vr=new pe.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}
1","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function jn(T){if(!T.startsWith(Ma)){const F=Vr.create("invalid-gtag-resource",{gtagURL:T});return Pr.warn(F.message),""}return T}function Es(T){return Promise.all(T.map(F=>F.catch(J=>J)))}function Io(){return(Io=(0,V.Z)(function*(T,F,J,Le,tt,mt){const Gt=Le[tt];try{if(Gt)yield F[Gt];else{const Bn=(yield Es(J)).find(fr=>fr.measurementId===tt);Bn&&(yield F[Bn.appId])}}catch(Hn){Pr.error(Hn)}T("config",tt,mt)})).apply(this,arguments)}function za(){return(za=(0,V.Z)(function*(T,F,J,Le,tt){try{let mt=[];if(tt&&tt.send_to){let Gt=tt.send_to;Array.isArray(Gt)||(Gt=[Gt]);const Hn=yield Es(J);for(const Bn of Gt){const fr=Hn.find(zr=>zr.measurementId===Bn),jr=fr&&F[fr.appId];if(!jr){mt=[];break}mt.push(jr)}}0===mt.length&&(mt=Object.values(F)),yield Promise.all(mt),T("event",Le,tt||{})}catch(mt){Pr.error(mt)}})).apply(this,arguments)}const ia=30,sa=new class Zs{constructor(F={},J=1e3){this.throttleMetadata=F,this.intervalMillis=J}getThrottleMetadata(F){return this.throttleMetadata[F]}setThrottleMetadata(F,J){this.throttleMetadata[F]=J}deleteThrottleMetadata(F){delete this.throttleMetadata[F]}};function Lt(T){return new Headers({Accept:"application/json","x-goog-api-key":T})}function Yr(){return(Yr=(0,V.Z)(function*(T){var F;const{appId:J,apiKey:Le}=T,tt={method:"GET",headers:Lt(Le)},mt=cr.replace("{app-id}",J),Gt=yield fetch(mt,tt);if(200!==Gt.status&&304!==Gt.status){let Hn="";try{const Bn=yield Gt.json();null!==(F=Bn.error)&&void 0!==F&&F.message&&(Hn=Bn.error.message)}catch{}throw Vr.create("config-fetch-failed",{httpStatus:Gt.status,responseMessage:Hn})}return Gt.json()})).apply(this,arguments)}function B(){return(B=(0,V.Z)(function*(T,F=sa,J){const{appId:Le,apiKey:tt,measurementId:mt}=T.options;if(!Le)throw Vr.create("no-app-id");if(!tt){if(mt)return{measurementId:mt,appId:Le};throw Vr.create("no-api-key")}const Gt=F.getThrottleMetadata(Le)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Hn=new Ee;return setTimeout((0,V.Z)(function*(){Hn.abort()}),void 0!==J?J:ji),_({appId:Le,apiKey:tt,measurementId:mt},Gt,Hn,F)})).apply(this,arguments)}function _(T,F,J){return b.apply(this,arguments)}function b(){return b=(0,V.Z)(function*(T,{throttleEndTimeMillis:F,backoffCount:J},Le,tt=sa){var mt;const{appId:Gt,measurementId:Hn}=T;try{yield function N(T,F){return new Promise((J,Le)=>{const tt=Math.max(F-Date.now(),0),mt=setTimeout(J,tt);T.addEventListener(()=>{clearTimeout(mt),Le(Vr.create("fetch-throttle",{throttleEndTimeMillis:F}))})})}(Le,F)}catch(Bn){if(Hn)return Pr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Hn} provided in the "measurementId" field in the local Firebase config. [${Bn?.message}]`),{appId:Gt,measurementId:Hn};throw Bn}try{const Bn=yield function Ka(T){return Yr.apply(this,arguments)}(T);return tt.deleteThrottleMetadata(Gt),Bn}catch(Bn){const fr=Bn;if(!function re(T){if(!(T instanceof pe.ZR&&T.customData))return!1;const F=Number(T.customData.httpStatus);return 429===F||500===F||503===F||504===F}(fr)){if(tt.deleteThrottleMetadata(Gt),Hn)return Pr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Hn} provided in the "measurementId" field in the local Firebase config. [${fr?.message}
1]`),{appId:Gt,measurementId:Hn};throw Bn}const jr=503===Number(null===(mt=fr?.customData)||void 0===mt?void 0:mt.httpStatus)?(0,pe.$s)(J,tt.intervalMillis,ia):(0,pe.$s)(J,tt.intervalMillis),zr={throttleEndTimeMillis:Date.now()+jr,backoffCount:J+1};return tt.setThrottleMetadata(Gt,zr),Pr.debug(`Calling attemptFetch again in ${jr} millis`),_(T,zr,Le,tt)}}),b.apply(this,arguments)}class Ee{constructor(){this.listeners=[]}addEventListener(F){this.listeners.push(F)}abort(){this.listeners.forEach(F=>F())}}let Ze,O;function Pt(){return(Pt=(0,V.Z)(function*(T,F,J,Le,tt){if(tt&&tt.global)T("event",J,Le);else{const mt=yield F;T("event",J,Object.assign(Object.assign({},Le),{send_to:mt}))}})).apply(this,arguments)}function _t(){return(_t=(0,V.Z)(function*(){if(!(0,pe.hl)())return Pr.warn(Vr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,pe.eu)()}catch(T){return Pr.warn(Vr.create("indexeddb-unavailable",{errorInfo:T?.toString()}).message),!1}return!0})).apply(this,arguments)}function Ln(){return Ln=(0,V.Z)(function*(T,F,J,Le,tt,mt,Gt){var Hn;const Bn=function Rc(T){return B.apply(this,arguments)}(T);Bn.then(Ps=>{J[Ps.measurementId]=Ps.appId,T.options.measurementId&&Ps.measurementId!==T.options.measurementId&&Pr.warn(`The measurement ID in the local Firebase config (${T.options.measurementId}) does not match the measurement ID fetched from the server (${Ps.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(Ps=>Pr.error(Ps)),F.push(Bn);const fr=function Ce(){return _t.apply(this,arguments)}().then(Ps=>{if(Ps)return Le.getId()}),[jr,zr]=yield Promise.all([Bn,fr]);(function Fo(T){const F=window.document.getElementsByTagName("script");for(const J of Object.values(F))if(J.src&&J.src.includes(Ma)&&J.src.includes(T))return J;return null})(mt)||function ps(T,F){const J=function pa(T,F){let J;return window.trustedTypes&&(J=window.trustedTypes.createPolicy(T,F)),J}("firebase-js-sdk-policy",{createScriptURL:jn}),Le=document.createElement("script"),tt=`${Ma}?l=${T}&id=${F}`;Le.src=J?J?.createScriptURL(tt):tt,Le.async=!0,document.head.appendChild(Le)}(mt,jr.measurementId),O&&(tt("consent","default",O),function z(T){O=T}(void 0)),tt("js",new Date);const la=null!==(Hn=Gt?.config)&&void 0!==Hn?Hn:{};return la[Ha]="firebase",la.update=!0,null!=zr&&(la[na]=zr),tt("config",jr.measurementId,la),Ze&&(tt("set",Ze),function he(T){Ze=T}(void 0)),jr.measurementId}),Ln.apply(this,arguments)}class Vn{constructor(F){this.app=F}_delete(){return delete Ur[this.app.options.appId],Promise.resolve()}}let Ur={},Zi=[];const qs={};let Zn,ur,Do="dataLayer",Lo="gtag",br=!1;function po(T,F,J){!function ls(){const T=[];if((0,pe.ru)()&&T.push("This is a browser extension environment."),(0,pe.zI)()||T.push("Cookies are not available."),T.length>0){const F=T.map((Le,tt)=>`(${tt+1}) ${Le}`).join(" "),J=Vr.create("invalid-analytics-context",{errorInfo:F});Pr.warn(J.message)}}();const Le=T.options.appId;if(!Le)throw Vr.create("no-app-id");if(!T.options.apiKey){if(!T.options.measurementId)throw Vr.create("no-api-key");Pr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${T.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Ur[Le])throw Vr.create("already-exists",{id:Le});if(!br){!function Mc(T){let F=[];Array.isArray(window[T])?F=window[T]:window[T]=F}(Do);const{wrappedGtag:mt,gtagCore:Gt}=function As(T,F,J,Le,tt){let mt=function(...Gt){window[Le].push(arguments)};return window[tt]&&"function"==typeof window[tt]&&(mt=window[tt]),window[tt]=function Wa(T,F,J,Le){function mt(){return mt=(0,V.Z)(function*(Gt,...Hn){try{if("event"===Gt){const[Bn,fr]=Hn;yield function ra(T,F,J,Le,tt){return za.apply(this,arguments)}(T,F,J,Bn,fr)}else if("config"===Gt){const[Bn,fr]=Hn;yield function ga(T,F,J,Le,tt,mt){return Io.apply(this,arguments)}(T,F,J,Le,Bn,fr)}else if("consent"===Gt){const[Bn]=Hn;T("consent","update",Bn)}else if("get"===Gt){const[Bn,fr,jr]=Hn;T("get",Bn,fr,jr)}else if("set"===Gt){const[Bn]=Hn;T("set",Bn)}else T(Gt,...Hn)}catch(Bn){Pr.error(Bn)}}),mt.apply(this,arguments)}return function tt(Gt){return mt.apply(this,arguments)}}(mt,T,F,J),{gtagCore:mt,wrappedGtag:window[tt]}}(Ur,Zi,qs,Do,Lo);ur=mt,Zn=Gt,br=!0}return Ur[Le]=function tn(T,F,J,Le,tt,mt,Gt){return Ln.apply(this,arguments)}(T,Zi,qs,F,Zn,Do,J),new Vn(T)}function Kr(){return Ra.apply(this,arguments)}function Ra(){return(Ra=(0,V.Z)(function*(){if((0,pe.ru)()||!(0,pe.zI)()||!(0,pe.hl)())return!1;try{return yield(0,pe.eu)()}catch{return!1}}
1)).apply(this,arguments)}const hc="@firebase/analytics";!function Js(){(0,_e._registerComponent)(new me.wA(Jn,(F,{options:J})=>po(F.getProvider("app").getImmediate(),F.getProvider("installations-internal").getImmediate(),J),"PUBLIC")),(0,_e._registerComponent)(new me.wA("analytics-internal",function T(F){try{const J=F.getProvider(Jn).getImmediate();return{logEvent:(Le,tt,mt)=>function Cl(T,F,J,Le){T=(0,pe.m9)(T),function ot(T,F,J,Le,tt){return Pt.apply(this,arguments)}(ur,Ur[T.app.options.appId],F,J,Le).catch(tt=>Pr.error(tt))}(J,Le,tt,mt)}}catch(J){throw Vr.create("interop-component-reg-failed",{reason:J})}},"PRIVATE")),(0,_e.registerVersion)(hc,"0.10.0"),(0,_e.registerVersion)(hc,"0.10.0","esm2017")}();var yu=C(4408),cs=C(7565);const Oc=new class ma extends cs.v{}(class ll extends yu.o{constructor(F,J){super(F,J),this.scheduler=F,this.work=J}schedule(F,J=0){return J>0?super.schedule(F,J):(this.delay=J,this.state=F,this.scheduler.flush(this),this)}execute(F,J){return J>0||this.closed?super.execute(F,J):this._execute(F,J)}requestAsyncId(F,J,Le=0){return null!=Le&&Le>0||null==Le&&this.delay>0?super.requestAsyncId(F,J,Le):(F.flush(this),0)}});var Hl=C(4986),id=C(8505),Oa=C(5363),ya=C(9468);const Il=new c.Version("7.6.1"),oa="__angularfire_symbol__analyticsIsSupportedValue",Ko="__angularfire_symbol__analyticsIsSupported",Dl="__angularfire_symbol__remoteConfigIsSupportedValue",aa="__angularfire_symbol__remoteConfigIsSupported",pc="__angularfire_symbol__messagingIsSupportedValue",el="__angularfire_symbol__messagingIsSupported";function zl(T,F,J){if(F){if(1===F.length)return F[0];const mt=F.filter(Gt=>Gt.app===J);if(1===mt.length)return mt[0]}return J.container.getProvider(T).getImmediate({optional:!0})}globalThis[Ko]||(globalThis[Ko]=Kr().then(T=>globalThis[oa]=T).catch(()=>globalThis[oa]=!1)),globalThis[el]||(globalThis[el]=uc().then(T=>globalThis[pc]=T).catch(()=>globalThis[pc]=!1)),globalThis[aa]||(globalThis[aa]=co().then(T=>globalThis[Dl]=T).catch(()=>globalThis[Dl]=!1));const xc=(T,F)=>{const J=F?[F]:(0,m.C6)(),Le=[];return J.forEach(tt=>{tt.container.getProvider(T).instances.forEach(Gt=>{Le.includes(Gt)||Le.push(Gt)})}),Le};function Ga(){}class Wl{constructor(F,J=Oc){this.zone=F,this.delegate=J}now(){return this.delegate.now()}schedule(F,J,Le){const tt=this.zone;return this.delegate.schedule(function(Gt){tt.runGuarded(()=>{F.apply(this,[Gt])})},J,Le)}}class Kl{constructor(F){this.zone=F,this.task=null}call(F,J){const Le=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Ga,{},Ga,Ga)),J.pipe((0,id.b)({next:Le,complete:Le,error:Le})).subscribe(F).add(Le)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let _a=(()=>{class T{constructor(J){this.ngZone=J,this.outsideAngular=J.runOutsideAngular(()=>new Wl(Zone.current)),this.insideAngular=J.run(()=>new Wl(Zone.current,Hl.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return T.\u0275fac=function(J){return new(J||T)(c.\u0275\u0275inject(c.NgZone))},T.\u0275prov=c.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac,providedIn:"root"}),T})();function Sl(){const T=globalThis.\u0275AngularFireScheduler;if(!T)throw new Error("Either AngularFireModule has not been provided in your Ap
1pModule (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 T}function vu(T){return T.pipe((0,Oa.Q)(Sl().outsideAngular))}function Eu(T){return Sl(),function us(T){return function(J){return(J=J.lift(new Kl(T.ngZone))).pipe((0,ya.R)(T.outsideAngular),(0,Oa.Q)(T.insideAngular))}}(Sl())(T)}},2810:(ln,et,C)=>{"use strict";C.d(et,{u7:()=>Cp,Jj:()=>ic,IX:()=>fy,my:()=>to,xU:()=>td,Lz:()=>sc,WA:()=>gn,F8:()=>Wd,$q:()=>cf,W:()=>ac,EK:()=>ji,PU:()=>sm,l7:()=>Oa,Ky:()=>jn,Xb:()=>Vr,Cf:()=>fi,K9:()=>vs,Me:()=>Jd,yq:()=>gi,Wi:()=>$g,ET:()=>rv,Ab:()=>Fy,vr:()=>fv,Fc:()=>H_,hJ:()=>zg,B$:()=>jl,at:()=>cy,oe:()=>Oy,AK:()=>hv,TF:()=>gy,JU:()=>uy,ST:()=>Jh,fH:()=>$_,Ix:()=>py,Wu:()=>bp,Lx:()=>Y_,qY:()=>To,GL:()=>Yd,QT:()=>Ay,kl:()=>uf,Xk:()=>df,PL:()=>ev,UQ:()=>tv,zN:()=>nv,nP:()=>pv,b9:()=>G_,vh:()=>Br,Pb:()=>W_,L$:()=>my,cf:()=>Py,sc:()=>iv,Xo:()=>Cy,IO:()=>Ju,iE:()=>bl,Eo:()=>dy,i3:()=>hf,Bt:()=>Ny,pl:()=>My,Ub:()=>Hr,qK:()=>Sy,TQ:()=>q_,e0:()=>Z_,r7:()=>Ry,Mx:()=>z_,ar:()=>K_});var ie,c=C(5861),m=C(6881),V=C(4859),_e=C(1877),pe=C(2090),me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oe={},Re=Re||{},q=me||self;function de(r){var e=typeof r;return"array"==(e="object"!=e?e:r?Array.isArray(r)?"array":e:"null")||"object"==e&&"number"==typeof r.length}function be(r){var e=typeof r;return"object"==e&&null!=r||"function"==e}var it="closure_uid_"+(1e9*Math.random()>>>0),dt=0;function wt(r,e,t){return r.call.apply(r.bind,arguments)}function Me(r,e,t){if(!r)throw Error();if(2<arguments.length){var s=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(a,s),r.apply(e,a)}}return function(){return r.apply(e,arguments)}}function Pe(r,e,t){return(Pe=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?wt:Me).apply(null,arguments)}function Ct(r,e){var t=Array.prototype.slice.call(arguments,1);return function(){var s=t.slice();return s.push.apply(s,arguments),r.apply(this,s)}}function He(r,e){function t(){}t.prototype=e.prototype,r.$=e.prototype,r.prototype=new t,r.prototype.constructor=r,r.ac=function(s,a,d){for(var g=Array(arguments.length-2),M=2;M<arguments.length;M++)g[M-2]=arguments[M];return e.prototype[a].apply(s,g)}}function Ve(){this.s=this.s,this.o=this.o}Ve.prototype.s=!1,Ve.prototype.sa=function(){!this.s&&(this.s=!0,this.N(),0)&&function lt(r){Object.prototype.hasOwnProperty.call(r,it)&&r[it]||(r[it]=++dt)}(this)},Ve.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const ze=Array.prototype.indexOf?function(r,e){return Array.prototype.indexOf.call(r,e,void 0)}:function(r,e){if("string"==typeof r)return"string"!=typeof e||1!=e.length?-1:r.indexOf(e,0);for(let t=0;t<r.length;t++)if(t in r&&r[t]===e)return t;return-1};function rt(r){const e=r.length;if(0<e){const t=Array(e);for(let s=0;s<e;s++)t[s]=r[s];return t}return[]}function nt(r,e){for(let t=1;t<arguments.length;t++){const s=arguments[t];if(de(s)){const a=r.length||0,d=s.length||0;r.length=a+d;for(let g=0;g<d;g++)r[a+g]=s[g]}else r.push(s)}}function At(r,e){this.type=r,this.g=this.target=e,this.defaultPrevented=!1}At.prototype.h=function(){this.defaultPrevented=!0};var Ue=function(){if(!q.addEventListener||!Object.defineProperty)return!1;var r=!1,e=Object.defineProperty({},"passive",{get:function(){r=!0}});try{q.addEventListener("test",()=>{},e),q.removeEventListener("test",()=>{},e)}catch{}return r}();function Wt(r){return/^[\s\xa0]*$/.test(r)}function je(){var r=q.navigator;return r&&(r=r.userAgent)?r:""}function vt(r){return-1!=je().indexOf(r)}function jt(r){return jt[" "](r),r}jt[" "]=function(){};var yt,r,Sn=vt("Opera"),St=vt("Trident")||vt("MSIE"),yn=vt("Edge"),ae=yn||St,Ne=vt("Gecko")&&!(-1!=je().toLowerCase().indexOf("webkit")&&!vt("Edge"))&&!(vt("Trident")||vt("MSIE"))&&!vt("Edge"),Xe=-1!=je().toLowerCase().indexOf("webkit")&&!vt("Edge");function qe(){var r=q.document;return r?r.documentMode:void 0}e:{var ft="",$t=(r=je(),Ne?/rv:([^\);]+)(\)|;)/.exec(r):yn?/Edge\/([\d\.]+)/.exec(r):St?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(r):Xe?/WebKit\/(\S+)/.exec(r):Sn?/(?:Version)[ \/]?(\S+)/.exec(r):void 0);if($t&&(ft=$t?$t[1]:""),St){var cn=qe();if(null!=cn&&cn>parseFloat(ft)){yt=String(cn);break e}}yt=ft}var Wn=q.document&&St&&(qe()||parseInt(yt,10))||void 0;function qn(r,e){if(At.call(this,r?r.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,r){var t=this.t
vendor: 7,208 bytes, line 1
1ype=r.type,s=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:null;if(this.target=r.target||r.srcElement,this.g=e,e=r.relatedTarget){if(Ne){e:{try{jt(e.nodeName);var a=!0;break e}catch{}a=!1}a||(e=null)}}else"mouseover"==t?e=r.fromElement:"mouseout"==t&&(e=r.toElement);this.relatedTarget=e,s?(this.clientX=void 0!==s.clientX?s.clientX:s.pageX,this.clientY=void 0!==s.clientY?s.clientY:s.pageY,this.screenX=s.screenX||0,this.screenY=s.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=r.button,this.key=r.key||"",this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.pointerId=r.pointerId||0,this.pointerType="string"==typeof r.pointerType?r.pointerType:nn[r.pointerType]||"",this.state=r.state,this.i=r,r.defaultPrevented&&qn.$.h.call(this)}}He(qn,At);var nn={2:"touch",3:"pen",4:"mouse"};qn.prototype.h=function(){qn.$.h.call(this);var r=this.i;r.preventDefault?r.preventDefault():r.returnValue=!1};var hn="closure_listenable_"+(1e6*Math.random()|0),rn=0;function _n(r,e,t,s,a){this.listener=r,this.proxy=null,this.src=e,this.type=t,this.capture=!!s,this.la=a,this.key=++rn,this.fa=this.ia=!1}function xn(r){r.fa=!0,r.listener=null,r.proxy=null,r.src=null,r.la=null}function Mt(r,e,t){for(const s in r)e.call(t,r[s],s,r)}function se(r){const e={};for(const t in r)e[t]=r[t];return e}const K="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Te(r,e){let t,s;for(let a=1;a<arguments.length;a++){for(t in s=arguments[a],s)r[t]=s[t];for(let d=0;d<K.length;d++)t=K[d],Object.prototype.hasOwnProperty.call(s,t)&&(r[t]=s[t])}}function Be(r){this.src=r,this.g={},this.h=0}function It(r,e){var t=e.type;if(t in r.g){var d,s=r.g[t],a=ze(s,e);(d=0<=a)&&Array.prototype.splice.call(s,a,1),d&&(xn(e),0==r.g[t].length&&(delete r.g[t],r.h--))}}function Yt(r,e,t,s){for(var a=0;a<r.length;++a){var d=r[a];if(!d.fa&&d.listener==e&&d.capture==!!t&&d.la==s)return a}return-1}Be.prototype.add=function(r,e,t,s,a){var d=r.toString();(r=this.g[d])||(r=this.g[d]=[],this.h++);var g=Yt(r,e,s,a);return-1<g?(e=r[g],t||(e.ia=!1)):((e=new _n(e,this.src,d,!!s,a)).ia=t,r.push(e)),e};var qt="closure_lm_"+(1e6*Math.random()|0),dn={};function sn(r,e,t,s,a){if(s&&s.once)return bn(r,e,t,s,a);if(Array.isArray(e)){for(var d=0;d<e.length;d++)sn(r,e[d],t,s,a);return null}return t=ct(t),r&&r[hn]?r.O(e,t,be(s)?!!s.capture:!!s,a):Xt(r,e,t,!1,s,a)}function Xt(r,e,t,s,a,d){if(!e)throw Error("Invalid event type");var g=be(a)?!!a.capture:!!a,M=en(r);if(M||(r[qt]=M=new Be(r)),(t=M.add(e,t,s,g,d)).proxy)return t;if(s=function Mn(){const e=bt;return function r(t){return e.call(r.src,r.listener,t)}}(),t.proxy=s,s.src=r,s.listener=t,r.addEventListener)Ue||(a=g),void 0===a&&(a=!1),r.addEventListener(e.toString(),s,a);else if(r.attachEvent)r.attachEvent(Gn(e.toString()),s);else{if(!r.addListener||!r.removeListener)throw Error("addEventListener and attachEvent are unavailable.");r.addListener(s)}return t}function bn(r,e,t,s,a){if(Array.isArray(e)){for(var d=0;d<e.length;d++)bn(r,e[d],t,s,a);return null}return t=ct(t),r&&r[hn]?r.P(e,t,be(s)?!!s.capture:!!s,a):Xt(r,e,t,!0,s,a)}function Dr(r,e,t,s,a){if(Array.isArray(e))for(var d=0;d<e.length;d++)Dr(r,e[d],t,s,a);else s=be(s)?!!s.capture:!!s,t=ct(t),r&&r[hn]?(r=r.i,(e=String(e).toString())in r.g&&-1<(t=Yt(d=r.g[e],t,s,a))&&(xn(d[t]),Array.prototype.splice.call(d,t,1),0==d.length&&(delete r.g[e],r.h--))):r&&(r=en(r))&&(e=r.g[e.toString()],r=-1,e&&(r=Yt(e,t,s,a)),(t=-1<r?e[r]:null)&&vr(t))}function vr(r){if("number"!=typeof r&&r&&!r.fa){var e=r.src;if(e&&e[hn])It(e.i,r);else{var t=r.type,s=r.proxy;e.removeEventListener?e.removeEventListener(t,s,r.capture):e.detachEvent?e.detachEvent(Gn(t),s):e.addListener&&e.removeListener&&e.removeListener(s),(t=en(e))?(It(t,r),0==t.h&&(t.src=null,e[qt]=null)):xn(r)}}}function Gn(r){return r in dn?dn[r]:dn[r]="on"+r}function bt(r,e){if(r.fa)r=!0;else{e=new qn(e,this);var t=r.listener,s=r.la||r.src;r.ia&&vr(r),r=t.call(s,e)}return r}function en(r){return(r=r[qt])instanceof Be?r:null}var Se="__closure_events_fn_"+(1e9*Math.random()>>>0);function ct(r){return"function"==typeof r?r:(r[Se]||(r[Se]=function(e){return r.handleEvent(e)}),r[Se])}function We(){Ve.call(this),this.i=new Be(this),this.S=this,this.J=null}function Q(r,e){var t,s=r.J;if(s)for(t=[];s;s=s.J)t.push(s);if(r=r.S,s=e.type||e,"string"==typeof e)e=new At(e,r);else if(e instanceof At)e.target=e.target||r;else{var a=e;Te(e=new At(s,r),a)}if(a=!0,t)for(var d=t.length-1;0<=d;d--){var g=e.g=t[d];a=ue(g,s,!0,e)&&a}if(a=ue(g=e.g=r,s,!0,e)&&a,a=ue(g,s,!1,e)&&a,t)for(d=0;d<t.length;d++)a=ue(g=e.g=t[d],s,!1,e)&&a}function ue(r,e,t,s){if(!(e=r.i.g[String(e)]))return!0;e=e.concat();for(var a=!0,d=0;d<e.length;++d){var g=e[d];if(g&&!g.fa&&g.capture==t){var M=g.listener,H=g.la||g.src;g.ia&&It(r.i,g),a=!1!==M.call(H,s)&&a}}return a&&!s.defaultPrevented}He(We,Ve),We.prototype[hn]=!0,We.prototype.removeEventListener=function(r,e,t,s){Dr(this,r,e,t,s)},We.prototype.N=function(){if(We.$.N.call(this),this.i){var e,r=this.i;for(e in r.g){for(var t=r.g[e],s=0;s<t.length;s++)xn(t[s]);delete r.g[e],r.h--}}this.J=null},We.prototype.O=function(r,e,t,s){return this.i.add(String(r),e,!1,t,s)},We.prototype.P=function(r,e,t,s){return this.i.add(String(r),e,!0,t,s)};var fe=q.JSON.stringify;function ce(){var r=ht;let e=null;return r.g&&(e=r.g,r.g=r.g.next,r.g||(r.h=null),e.next=null),e}var Ft=new class X{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new Ut,r=>r.reset());class Ut{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function ke(r){var e=1;r=r.split(":");const t=[];for(;0<e&&r.length;)t.push(r.shift()),e--;return r.length&&t.push(r.join(":")),t}function Fe(r){q.setTimeout(()=>{throw r},0)}let Ge,Et=!1,ht=new class xe{constructor(){this.h=this.g=null}add(e,t){const s=Ft.get();s.set(e,t),this.h?this.h.next=s:this.g=s,this.h=s}},an=()=>{const r=q.Promise.resolve(void 0);Ge=()=>{r.then($e)}};var $e=()=>{for(var r;r=ce();){try{r.h.call(r.g)}catch(t){Fe(t)}var e=Ft;e.j(r),100>e.h&&(e.h++,r.next=e.g,e.g=r)}Et=!1};function oe(r,e){We.call(this),this.h=r||1,this.g=e||q,this.j=Pe(this.qb,this),this.l=Date.now()}function j(r){r.ga=!1,r.T&&(r.g.clearTimeout(r.T),r.T=null)}function $(r,e,t){if("function"==typeof r)t&&(r=Pe(r,t));else{if(!r||"function"!=typeof r.handleEvent)throw Error("Invalid listener argument");r=Pe(r.handleEvent,r)}return 2147483647<Number(e)?-1:q.setTimeout(r,e||0)}function Ie(r){r.g=$(()=>{r.g=null,r.i&&(r.i=!1,Ie(r))},r.j);const e=r.h;r.h=null,r.m.apply(null,e)}He(oe,We),(ie=oe.prototype).ga=!1,ie.T=null,ie.qb=function(){if(this.ga){var r=Date.now()-this.l;0<r&&r<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-r):(this.T&&(this.g.clearTimeout(this.T),this.T=null),Q(this,"tick"),this.ga&&(j(this),this.start()))}},ie.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())}
1,ie.N=function(){oe.$.N.call(this),j(this),delete this.g};class Qe extends Ve{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:Ie(this)}N(){super.N(),this.g&&(q.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function kt(r){Ve.call(this),this.h=r,this.g={}}He(kt,Ve);var Cn=[];function nr(r,e,t,s){Array.isArray(t)||(t&&(Cn[0]=t.toString()),t=Cn);for(var a=0;a<t.length;a++){var d=sn(e,t[a],s||r.handleEvent,!1,r.h||r);if(!d)break;r.g[d.key]=d}}function Rr(r){Mt(r.g,function(e,t){this.g.hasOwnProperty(t)&&vr(e)},r),r.g={}}function Rt(){this.g=!0}function Kn(r,e,t,s){r.info(function(){return"XMLHTTP TEXT ("+e+"): "+function Tr(r,e){if(!r.g)return e;if(!e)return null;try{var t=JSON.parse(e);if(t)for(r=0;r<t.length;r++)if(Array.isArray(t[r])){var s=t[r];if(!(2>s.length)){var a=s[1];if(Array.isArray(a)&&!(1>a.length)){var d=a[0];if("noop"!=d&&"stop"!=d&&"close"!=d)for(var g=1;g<a.length;g++)a[g]=""}}}return fe(t)}catch{return e}}(r,t)+(s?" "+s:"")})}kt.prototype.N=function(){kt.$.N.call(this),Rr(this)},kt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Rt.prototype.Ea=function(){this.g=!1},Rt.prototype.info=function(){};var Pn={},kr=null;function wr(){return kr=kr||new We}function _i(r){At.call(this,Pn.Ta,r)}function li(r){const e=wr();Q(e,new _i(e))}function ro(r,e){At.call(this,Pn.STAT_EVENT,r),this.stat=e}function Ni(r){const e=wr();Q(e,new ro(e,r))}function Rs(r,e){At.call(this,Pn.Ua,r),this.size=e}function Si(r,e){if("function"!=typeof r)throw Error("Fn must not be null and must be a function");return q.setTimeout(function(){r()},e)}Pn.Ta="serverreachability",He(_i,At),Pn.STAT_EVENT="statevent",He(ro,At),Pn.Ua="timingevent",He(Rs,At);var Tn={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},pr={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function ci(){}function Nr(){}ci.prototype.h=null;var Ai,Zr={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function bi(){At.call(this,"d")}function gr(){At.call(this,"c")}function Fi(){}function ir(r,e,t,s){this.l=r,this.j=e,this.m=t,this.W=s||1,this.U=new kt(this),this.P=ws,this.V=new oe(r=ae?125:void 0),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new ns}function ns(){this.i=null,this.g="",this.h=!1}He(bi,At),He(gr,At),He(Fi,ci),Fi.prototype.g=function(){return new XMLHttpRequest},Fi.prototype.i=function(){return{}},Ai=new Fi;var ws=45e3,ds={},wi={};function ni(r,e,t){r.L=1,r.v=Di(Cr(e)),r.s=t,r.S=!0,io(r,null)}function io(r,e){r.G=Date.now(),Xr(r),r.A=Cr(r.v);var t=r.A,s=r.W;Array.isArray(s)||(s=[String(s)]),rs(t.i,"t",s),r.C=0,t=r.l.J,r.h=new ns,r.g=ss(r.l,t?e:null,!r.s),0<r.O&&(r.M=new Qe(Pe(r.Pa,r,r.g),r.O)),nr(r.U,r.g,"readystatechange",r.nb),e=r.I?se(r.I):{},r.s?(r.u||(r.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",r.g.ha(r.A,r.u,r.s,e)):(r.u="GET",r.g.ha(r.A,r.u,null,e)),li(),function xt(r,e,t,s,a,d){r.info(function(){if(r.g)if(d)for(var g="",M=d.split("&"),H=0;H<M.length;H++){var ee=M[H].split("=");if(1<ee.length){var De=ee[0];ee=ee[1];var st=De.split("_");g=2<=st.length&&"type"==st[1]?g+(De+"=")+ee+"&":g+(De+"=redacted&")}}else g=null;else g=d;return"XMLHTTP REQ ("+s+") [attempt "+a+"]: "+e+"\n"+t+"\n"+g})}(r.j,r.u,r.A,r.m,r.W,r.s)}function Bi(r){return!!r.g&&"GET"==r.u&&2!=r.L&&r.l.Ha}function $i(r,e,t){let a,s=!0;for(;!r.J&&r.C<t.length;){if(a=Os(r,t),a==wi){4==e&&(r.o=4,Ni(14),s=!1),Kn(r.j,r.m,null,"[Incomplete Response]");break}if(a==ds){r.o=4,Ni(15),Kn(r.j,r.m,t,"[Invalid Chunk]"),s=!1;break}Kn(r.j,r.m,a,null),ut(r,a)}Bi(r)&&a!=wi&&a!=ds&&(r.h.g="",r.C=0),4!=e||0!=t.length||r.h.h||(r.o=1,Ni(16),s=!1),r.i=r.i&&s,s?0<t.length&&!r.ba&&(r.ba=!0,(e=r.l).g==r&&e.ca&&!e.M&&(e.l.info("Great, no buffering proxy detected. Bytes received: "+t.length),Sr(e),e.M=!0,Ni(11))):(Kn(r.j,r.m,t,"[Invalid Chunked Response]"),pt(r),Cs(r))}function Os(r,e){var t=r.C,s=e.indexOf("\n",t);return-1==s?wi:(t=Number(e.substring(t,s)),isNaN(t)?ds:(s+=1)+t>e.length?wi:(e=e.slice(s,s+t),r.C=s+t,e))}function Xr(r){r.Y=Date.now()+r.P,ui(r,r.P)}function ui(r,e){if(null!=r.B)throw Error("WatchDog timer not null");r.B=Si(Pe(r.lb,r),e)}function Yi(r){r.B&&(q.clearTimeout(r.B),r.B=null)}function Cs(r){0==r.l.H||r.J||_s(r.l,r)}function pt(r){Yi(r);var e=r.M;e&&"function"==typeof e.sa&&e.sa(),r.M=null,j(r.V),Rr(r.U),r.g&&(e=r.g,r.g=null,e.abort(),e.sa())}function ut(r,e){try{var t=r.l;if(0!=t.H&&(t.g==r||Is(t.i,r)))if(!r.K&&Is(t.i,r)&&3==t.H){try{var s=t.Ja.g.parse(e)}catch{s=null}if(Array.isArray(s)&&3==s.length){var a=s;if(0==a[0]){e:if(!t.u){if(t.g){if(!(t.g.G+3e3<r.G))break e;Jr(t),Qt(t)}_r(t),Ni(18)}}else t.Fa=a[1],0<t.Fa-t.V&&37500>a[2]&&t.G&&0==t.A&&!t.v&&(t.v=Si(Pe(t.ib,t),6e3));if(1>=ms(t.i)&&t.oa){try{t.oa()}catch{}t.oa=void 0}}else hi(t,11)}else if((r.K||t.g==r)&&Jr(t),!Wt(e))for(a=t.Ja.g.parse(e),e=0;e<a.length;e++){let ee=a[e];if(t.V=ee[0],ee=ee[1],2==t.H)if("c"==ee[0]){t.K=ee[1],t.pa=ee[2];const De=ee[3];null!=De&&(t.ra=De,t.l.info("VER="+t.ra));const st=ee[4];null!=st&&(t.Ga=st,t.l.info("SVER="+t.Ga));const Bt=ee[5];null!=Bt&&"number"==typeof Bt&&0<Bt&&(t.L=s=1.5*Bt,t.l.info("backChannelRequestTimeoutMs_="+s)),s=t;const un=r.g;if(un){const Nn=un.g?un.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Nn){var d=s.i;d.g||-1==Nn.indexOf("spdy")&&-1==Nn.indexOf("quic")&&-1==Nn.indexOf("h2")||(d.j=d.l,d.g=new Set,d.h&&(co(d,d.h),d.h=null))}if(s.F){const er=un.g?un.g.getResponseHeader("X-HTTP-Session-Id"):null;er&&(s.Da=er,di(s.I,s.F,er))}}t.H=3,t.h&&t.h.Ba(),t.ca&&(t.S=Date.now()-r.G,t.l.info("Handshake RTT: "+t.S+"ms"));var g=r;if((s=t).wa=is(s,s.J?s.pa:null,s.Y),g.K){So(s.i,g);var M=g,H=s.L;H&&M.setTimeout(H),M.B&&(Yi(M),Xr(M)),s.g=g}else In(s);0<t.j.length&&S(t)}else"stop"!=ee[0]&&"close"!=ee[0]||hi(t,7);else 3==t.H&&("stop"==ee[0]||"close"==ee[0]?"stop"==ee[0]?hi(t,7):gt(t):"noop"!=ee[0]&&t.h&&t.h.Aa(ee),t.A=0)}li()}catch{}}function mn(r,e){if(r.forEach&&"function"==typeof r.forEach)r.forEach(e,void 0);else if(de(r)||"string"==typeof r)Array.prototype.forEach.call(r,e,void 0);else for(var t=function Jt(r){if(r.ta&&"function"==typeof r.ta)return r.ta();if(!r.Z||"function"!=typeof r.Z){if(typeof Map<"u"&&r instanceof Map)return Array.from(r.keys());if(!(typeof Set<"u"&&r instanceof Set)){if(de(r)||"string"==typeof r){var e=[];r=r.length;for(var t=0;t<r;t++)e.push(t);return e}e=[],t=0;for(const s in r)e[t++]=s;return e}}}(r),s=function Ot(r){if(r.Z&&"function"==typeof r.Z)return r.Z();if(typeof Map<"u"&&r instanceof Map||typeof Set<"u"&&r instanceof Set)return Array.from(r.values());if("string"==typeof r)return r.split("");
1if(de(r)){for(var e=[],t=r.length,s=0;s<t;s++)e.push(r[s]);return e}for(s in e=[],t=0,r)e[t++]=r[s];return e}(r),a=s.length,d=0;d<a;d++)e.call(void 0,s[d],t&&t[d],r)}(ie=ir.prototype).setTimeout=function(r){this.P=r},ie.nb=function(r){r=r.target;const e=this.M;e&&3==Ji(r)?e.l():this.Pa(r)},ie.Pa=function(r){try{if(r==this.g)e:{const De=Ji(this.g);var e=this.g.Ia();if(this.g.da(),!(3>De)&&(3!=De||ae||this.g&&(this.h.h||this.g.ja()||mr(this.g)))){this.J||4!=De||7==e||li(),Yi(this);var t=this.g.da();this.ca=t;t:if(Bi(this)){var s=mr(this.g);r="";var a=s.length,d=4==Ji(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){pt(this),Cs(this);var g="";break t}this.h.i=new q.TextDecoder}for(e=0;e<a;e++)this.h.h=!0,r+=this.h.i.decode(s[e],{stream:d&&e==a-1});s.splice(0,a),this.h.g+=r,this.C=0,g=this.h.g}else g=this.g.ja();if(this.i=200==t,function pn(r,e,t,s,a,d,g){r.info(function(){return"XMLHTTP RESP ("+s+") [ attempt "+a+"]: "+e+"\n"+t+"\n"+d+" "+g})}(this.j,this.u,this.A,this.m,this.W,De,t),this.i){if(this.aa&&!this.K){t:{if(this.g){var M,H=this.g;if((M=H.g?H.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Wt(M)){var ee=M;break t}}ee=null}if(!(t=ee)){this.i=!1,this.o=3,Ni(12),pt(this),Cs(this);break e}Kn(this.j,this.m,t,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,ut(this,t)}this.S?($i(this,De,g),ae&&this.i&&3==De&&(nr(this.U,this.V,"tick",this.mb),this.V.start())):(Kn(this.j,this.m,g,null),ut(this,g)),4==De&&pt(this),this.i&&!this.J&&(4==De?_s(this.l,this):(this.i=!1,Xr(this)))}else(function Ks(r){const e={};r=(r.g&&2<=Ji(r)&&r.g.getAllResponseHeaders()||"").split("\r\n");for(let s=0;s<r.length;s++){if(Wt(r[s]))continue;var t=ke(r[s]);const a=t[0];if("string"!=typeof(t=t[1]))continue;t=t.trim();const d=e[a]||[];e[a]=d,d.push(t)}!function Nt(r,e){for(const t in r)e.call(void 0,r[t],t,r)}(e,function(s){return s.join(", ")})})(this.g),400==t&&0<g.indexOf("Unknown SID")?(this.o=3,Ni(12)):(this.o=0,Ni(13)),pt(this),Cs(this)}}}catch{}},ie.mb=function(){if(this.g){var r=Ji(this.g),e=this.g.ja();this.C<e.length&&(Yi(this),$i(this,r,e),this.i&&4!=r&&Xr(this))}},ie.cancel=function(){this.J=!0,pt(this)},ie.lb=function(){this.B=null;const r=Date.now();0<=r-this.Y?(function Yn(r,e){r.info(function(){return"TIMEOUT: "+e})}(this.j,this.A),2!=this.L&&(li(),Ni(17)),pt(this),this.o=2,Cs(this)):ui(this,this.Y-r)};var sr=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Er(r){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,r instanceof Er){this.h=r.h,Pi(this,r.j),this.s=r.s,this.g=r.g,ks(this,r.m),this.l=r.l;var e=r.i,t=new Ns;t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),ri(this,t),this.o=r.o}else r&&(e=String(r).match(sr))?(this.h=!1,Pi(this,e[1]||"",!0),this.s=Hs(e[2]||""),this.g=Hs(e[3]||"",!0),ks(this,e[4]),this.l=Hs(e[5]||"",!0),ri(this,e[6]||"",!0),this.o=Hs(e[7]||"")):(this.h=!1,this.i=new Ns(null,this.h))}function Cr(r){return new Er(r)}function Pi(r,e,t){r.j=t?Hs(e,!0):e,r.j&&(r.j=r.j.replace(/:$/,""))}function ks(r,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);r.m=e}else r.m=null}function ri(r,e,t){e instanceof Ns?(r.i=e,function Ho(r,e){e&&!r.j&&(gs(r),r.i=null,r.g.forEach(function(t,s){var a=s.toLowerCase();s!=a&&(La(this,s),rs(this,a,t))},r)),r.j=e}(r.i,r.h)):(t||(e=_o(e,oo)),r.i=new Ns(e,r.h))}function di(r,e,t){r.i.set(e,t)}function Di(r){return di(r,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),r}function Hs(r,e){return r?e?decodeURI(r.replace(/%25/g,"%2525")):decodeURIComponent(r):""}function _o(r,e,t){return"string"==typeof r?(r=encodeURI(r).replace(e,Qi),t&&(r=r.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),r):null}function Qi(r){return"%"+((r=r.charCodeAt(0))>>4&15).toString(16)+(15&r).toString(16)}Er.prototype.toString=function(){var r=[],e=this.j;e&&r.push(_o(e,ko,!0),":");var t=this.g;return(t||"file"==e)&&(r.push("//"),(e=this.s)&&r.push(_o(e,ko,!0),"@"),r.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.m)&&r.push(":",String(t))),(t=this.l)&&(this.g&&"/"!=t.charAt(0)&&r.push("/"),r.push(_o(t,"/"==t.charAt(0)?qo:so,!0))),(t=this.i.toString())&&r.push("?",t),(t=this.o)&&r.push("#",_o(t,Ia)),r.join("")};var ko=/[#\/\?@]/g,so=/[#\?:]/g,qo=/[#\?]/g,oo=/[#\?@]/g,Ia=/#/g;function Ns(r,e){this.h=this.g=null,this.i=r||null,this.j=!!e}function gs(r){r.g||(r.g=new Map,r.h=0,r.i&&function yr(r,e){if(r){r=r.split("&");for(var t=0;t<r.length;t++){var s=r[t].indexOf("="),a=null;if(0<=s){var d=r[t].substring(0,s);a=r[t].substring(s+1)}else d=r[t];
1e(d,a?decodeURIComponent(a.replace(/\+/g," ")):"")}}}(r.i,function(e,t){r.add(decodeURIComponent(e.replace(/\+/g," ")),t)}))}function La(r,e){gs(r),e=lo(r,e),r.g.has(e)&&(r.i=null,r.h-=r.g.get(e).length,r.g.delete(e))}function ao(r,e){return gs(r),e=lo(r,e),r.g.has(e)}function rs(r,e,t){La(r,e),0<t.length&&(r.i=null,r.g.set(lo(r,e),rt(t)),r.h+=t.length)}function lo(r,e){return e=String(e),r.j&&(e=e.toLowerCase()),e}function zo(r){this.l=r||Yo,r=q.PerformanceNavigationTiming?0<(r=q.performance.getEntriesByType("navigation")).length&&("hq"==r[0].nextHopProtocol||"h2"==r[0].nextHopProtocol):!!(q.g&&q.g.Ka&&q.g.Ka()&&q.g.Ka().ec),this.j=r?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}(ie=Ns.prototype).add=function(r,e){gs(this),this.i=null,r=lo(this,r);var t=this.g.get(r);return t||this.g.set(r,t=[]),t.push(e),this.h+=1,this},ie.forEach=function(r,e){gs(this),this.g.forEach(function(t,s){t.forEach(function(a){r.call(e,a,s,this)},this)},this)},ie.ta=function(){gs(this);const r=Array.from(this.g.values()),e=Array.from(this.g.keys()),t=[];for(let s=0;s<e.length;s++){const a=r[s];for(let d=0;d<a.length;d++)t.push(e[s])}return t},ie.Z=function(r){gs(this);let e=[];
1if("string"==typeof r)ao(this,r)&&(e=e.concat(this.g.get(lo(this,r))));else{r=Array.from(this.g.values());for(let t=0;t<r.length;t++)e=e.concat(r[t])}return e},ie.set=function(r,e){return gs(this),this.i=null,ao(this,r=lo(this,r))&&(this.h-=this.g.get(r).length),this.g.set(r,[e]),this.h+=1,this},ie.get=function(r,e){return r&&0<(r=this.Z(r)).length?String(r[0]):e},ie.toString=function(){if(this.i)return this.i;if(!this.g)return"";const r=[],e=Array.from(this.g.keys());for(var t=0;t<e.length;t++){var s=e[t];const d=encodeURIComponent(String(s)),g=this.Z(s);for(s=0;s<g.length;s++){var a=d;""!==g[s]&&(a+="="+encodeURIComponent(String(g[s]))),r.push(a)}}return this.i=r.join("&")};var Yo=10;function hs(r){return!!r.h||!!r.g&&r.g.size>=r.j}function ms(r){return r.h?1:r.g?r.g.size:0}function Is(r,e){return r.h?r.h==e:!!r.g&&r.g.has(e)}function co(r,e){r.g?r.g.add(e):r.h=e}function So(r,e){r.h&&r.h==e?r.h=null:r.g&&r.g.has(e)&&r.g.delete(e)}function Wi(r){if(null!=r.h)return r.i.concat(r.h.F);if(null!=r.g&&0!==r.g.size){let e=r.i;for(const t of r.g.values())e=e.concat(t.F);return e}return rt(r.i)}zo.prototype.cancel=function(){if(this.i=Wi(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const r of this.g.values())r.cancel();this.g.clear()}};var vo=class{stringify(r){return q.JSON.stringify(r,void 0)}parse(r){return q.JSON.parse(r,void 0)}};function xi(){this.g=new vo}function Qo(r,e,t){const s=t||"";try{mn(r,function(a,d){let g=a;be(a)&&(g=fe(a)),e.push(s+d+"="+encodeURIComponent(g))})}catch(a){throw e.push(s+"type="+encodeURIComponent("_badmap")),a}}function fs(r,e,t,s,a){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,a(s)}catch{}}function Li(r){this.l=r.fc||null,this.j=r.ob||!1}function Hi(r,e){We.call(this),this.F=r,this.u=e,this.m=void 0,this.readyState=Ki,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}He(Li,ci),Li.prototype.g=function(){return new Hi(this.l,this.j)},Li.prototype.i=function(r){return function(){return r}}({}),He(Hi,We);var Ki=0;function Ds(r){r.j.read().then(r.Xa.bind(r)).catch(r.ka.bind(r))}function vi(r){r.readyState=4,r.l=null,r.j=null,r.A=null,Mi(r)}function Mi(r){r.onreadystatechange&&r.onreadystatechange.call(r)}(ie=Hi.prototype).open=function(r,e){if(this.readyState!=Ki)throw this.abort(),Error("Error reopening a connection");this.C=r,this.B=e,this.readyState=1,Mi(this)},ie.send=function(r){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};r&&(e.body=r),(this.F||q).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))},ie.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,vi(this)),this.readyState=Ki},ie.$a=function(r){if(this.g&&(this.l=r,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=r.headers,this.readyState=2,Mi(this)),this.g&&(this.readyState=3,Mi(this),this.g)))if("arraybuffer"===this.responseType)r.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof q.ReadableStream<"u"&&"body"in r){if(this.j=r.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;Ds(this)}else r.text().then(this.Za.bind(this),this.ka.bind(this))},ie.Xa=function(r){if(this.g){if(this.u&&r.value)this.response.push(r.value);else if(!this.u){var e=r.value?r.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!r.done}))&&(this.response=this.responseText+=e)}r.done?vi(this):Mi(this),3==this.readyState&&Ds(this)}},ie.Za=function(r){this.g&&(this.response=this.responseText=r,vi(this))},ie.Ya=function(r){this.g&&(this.response=r,vi(this))},ie.ka=function(){this.g&&vi(this)},ie.setRequestHeader=function(r,e){this.v.append(r,e)},ie.getResponseHeader=function(r){return this.h&&this.h.get(r.toLowerCase())||""},ie.getAllResponseHeaders=function(){if(!this.h)return"";const r=[],e=this.h.entries();for(var t=e.next();!t.done;)r.push((t=t.value)[0]+": "+t[1]),t=e.next();return r.join("\r\n")},Object.defineProperty(Hi.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(r){this.m=r?"include":"same-origin"}});var ys=q.JSON.parse;function xr(r){We.call(this),this.headers=new Map,this.u=r||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=Xi,this.L=this.M=!1}He(xr,We);var Xi="",Eo=/^https?$/i,Vi=["POST","PUT"];function uo(r,e){r.h=!1,r.g&&(r.l=!0,r.g.abort(),r.l=!1),r.j=e,r.m=5,zs(r),Gi(r)}function zs(r){r.F||(r.F=!0,Q(r,"complete"),Q(r,"error"))}function Ws(r){if(r.h&&typeof Re<"u"&&(!r.C[1]||4!=Ji(r)||2!=r.da())
1)if(r.v&&4==Ji(r))$(r.La,0,r);else if(Q(r,"readystatechange"),4==Ji(r)){r.h=!1;try{const g=r.da();e:switch(g){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e=!0;break e;default:e=!1}var t;if(!(t=e)){var s;if(s=0===g){var a=String(r.I).match(sr)[1]||null;!a&&q.self&&q.self.location&&(a=q.self.location.protocol.slice(0,-1)),s=!Eo.test(a?a.toLowerCase():"")}t=s}if(t)Q(r,"complete"),Q(r,"success");else{r.m=6;try{var d=2<Ji(r)?r.g.statusText:""}catch{d=""}r.j=d+" ["+r.da()+"]",zs(r)}}finally{Gi(r)}}}function Gi(r,e){if(r.g){Ls(r);const t=r.g,s=r.C[0]?()=>{}:null;r.g=null,r.C=null,e||Q(r,"ready");try{t.onreadystatechange=s}catch{}}}function Ls(r){r.g&&r.L&&(r.g.ontimeout=null),r.A&&(q.clearTimeout(r.A),r.A=null)}function Ji(r){return r.g?r.g.readyState:0}function mr(r){try{if(!r.g)return null;if("response"in r.g)return r.g.response;switch(r.K){case Xi:case"text":return r.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in r.g)return r.g.mozResponseArrayBuffer}return null}catch{return null}}function Y(r){let e="";return Mt(r,function(t,s){e+=s,e+=":",e+=t,e+="\r\n"}),e}function W(r,e,t){e:{for(s in t){var s=!1;break e}s=!0}s||(t=Y(t),"string"==typeof r?null!=t&&encodeURIComponent(String(t)):di(r,e,t))}function Ae(r,e,t){return t&&t.internalChannelParams&&t.internalChannelParams[r]||e}function Je(r){this.Ga=0,this.j=[],this.l=new Rt,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=Ae("failFast",!1,r),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=Ae("baseRetryDelayMs",5e3,r),this.hb=Ae("retryDelaySeedMs",1e4,r),this.eb=Ae("forwardChannelMaxRetries",2,r),this.xa=Ae("forwardChannelRequestTimeoutMs",2e4,r),this.va=r&&r.xmlHttpFactory||void 0,this.Ha=r&&r.dc||!1,this.L=void 0,this.J=r&&r.supportsCrossDomainXhr||!1,this.K="",this.i=new zo(r&&r.concurrentRequestLimit),this.Ja=new xi,this.P=r&&r.fastHandshake||!1,this.O=r&&r.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=r&&r.bc||!1,r&&r.Ea&&this.l.Ea(),r&&r.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&r&&r.detectBufferingProxy||!1,this.qa=void 0,r&&r.longPollingTimeout&&0<r.longPollingTimeout&&(this.qa=r.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function gt(r){if(En(r),3==r.H){var e=r.W++,t=Cr(r.I);if(di(t,"SID",r.K),di(t,"RID",e),di(t,"TYPE","terminate"),le(r,t),(e=new ir(r,r.l,e)).L=2,e.v=Di(Cr(t)),t=!1,q.navigator&&q.navigator.sendBeacon)try{t=q.navigator.sendBeacon(e.v.toString(),"")}catch{}!t&&q.Image&&((new Image).src=e.v,t=!0),t||(e.g=ss(e.l,null),e.g.ha(e.v)),e.G=Date.now(),Xr(e)}Wr(r)}function Qt(r){r.g&&(Sr(r),r.g.cancel(),r.g=null)}function En(r){Qt(r),r.u&&(q.clearTimeout(r.u),r.u=null),Jr(r),r.i.cancel(),r.m&&("number"==typeof r.m&&q.clearTimeout(r.m),r.m=null)}function S(r){if(!hs(r.i)&&!r.m){r.m=!0;var e=r.Na;Ge||an(),Et||(Ge(),Et=!0),ht.add(e,r),r.C=0}}function P(r,e){var t;t=e?e.m:r.W++;const s=Cr(r.I);di(s,"SID",r.K),di(s,"RID",t),di(s,"AID",r.V),le(r,s),r.o&&r.s&&W(s,r.o,r.s),t=new ir(r,r.l,t,r.C+1),null===r.o&&(t.I=r.s),e&&(r.j=e.F.concat(r.j)),e=Tt(r,t,1e3),t.setTimeout(Math.round(.5*r.xa)+Math.round(.5*r.xa*Math.random())),co(r.i,t),ni(t,s,e)}function le(r,e){r.na&&Mt(r.na,function(t,s){di(e,s,t)}),r.h&&mn({},function(t,s){di(e,s,t)})}function Tt(r,e,t){t=Math.min(r.j.length,t);var s=r.h?Pe(r.h.Va,r.h,r):null;e:{var a=r.j;let d=-1;for(;;){const g=["count="+t];-1==d?0<t?(d=a[0].g,g.push("ofs="+d)):d=0:g.push("ofs="+d);let M=!0;for(let H=0;H<t;H++){let ee=a[H].g;const De=a[H].map;if(ee-=d,0>ee)d=Math.max(0,a[H].g-100),M=!1;else try{Qo(De,g,"req"+ee+"_")}catch{s&&s(De)}}if(M){s=g.join("&");break e}}}return r=r.j.splice(0,t),e.F=r,s}function In(r){if(!r.g&&!r.u){r.ba=1;var e=r.Ma;Ge||an(),Et||(Ge(),Et=!0),ht.add(e,r),r.A=0}}function _r(r){return!(r.g||r.u||3<=r.A||(r.ba++,r.u=Si(Pe(r.Ma,r),Ri(r,r.A)),r.A++,0))}function Sr(r){null!=r.B&&(q.clearTimeout(r.B),r.B=null)}function ki(r){r.g=new ir(r,r.l,"rpc",r.ba),null===r.o&&(r.g.I=r.s),r.g.O=0;var e=Cr(r.wa);di(e,"RID","rpc"),di(e,"SID",r.K),di(e,"AID",r.V),di(e,"CI",r.G?"0":"1"),!r.G&&r.qa&&di(e,"TO",r.qa),di(e,"TYPE","xmlhttp"),le(r,e),r.o&&r.s&&W(e,r.o,r.s),r.L&&r.g.setTimeout(r.L);var t=r.g;r=r.pa,t.L=1,t.v=Di(Cr(e)),t.s=null,t.S=!0,io(t,r)}function Jr(r){null!=r.v&&(q.clearTimeout(r.v),r.v=null)}function _s(r,e){var t=null;if(r.g==e){Jr(r),Sr(r),r.g=null;var s=2}else{if(!Is(r.i,e))return;t=e.F,So(r.i,e),s=1}if(0!=r.H)if(e.i)if(1==s){t=e.s?e.s.length:0,e=Date.now()-e.G;var a=r.C;Q(s=wr(),new Rs(s,t)),S(r)}else In(r);else if(3==(a=e.o)||0==a&&0<e.ca||!(1==s&&function x(r,e){return!(ms(r.i)>=r.i.j-(r.m?1:0)||(r.m?(r.j=e.F.concat(r.j),0):1==r.H||2==r.H||r.C>=(r.cb?0:r.eb)||(r.m=Si(Pe(r.Na,r,e),Ri(r,r.C)),r.C++,0)))}(r,e)||2==s&&_r(r)))switch(t&&0<t.length&&(e=r.i,e.i=e.i.concat(t)),a){case 1:hi(r,5);break;case 4:hi(r,10);break;case 3:hi(r,6);break;default:hi(r,2)}}function Ri(r,e){let t=r.ab+Math.floor(Math.random()*r.hb);return r.isActive()||(t*=2),t*e}function hi(r,e){if(r.l.info("Error code "+e),2==e){var t=null;r.h&&(t=null);var s=Pe(r.pb,r);t||(t=new Er("//www.google.com/images/cleardot.gif"),q.location&&"http"==q.location.protocol||Pi(t,"https"),Di(t)),function Ao(r,e){const t=new Rt;if(q.Image){const s=new Image;s.onload=Ct(fs,t,s,"TestLoadImage: loaded",!0,e),s.onerror=Ct(fs,t,s,"TestLoadImage: error",!1,e),s.onabort=Ct(fs,t,s,"TestLoadImage: abort",!1,e),s.ontimeout=Ct(fs,t,s,"TestLoadImage: timeout",!1,e),q.setTimeout(function(){s.ontimeout&&s.ontimeout()},1e4),s.src=r}else e(!1)}(t.toString(),s)}else Ni(2);r.H=0,r.h&&r.h.za(e),Wr(r),En(r)}function Wr(r){if(r.H=0,r.ma=[],r.h){const e=Wi(r.i);(0!=e.length||0!=r.j.length)&&(nt(r.ma,e),nt(r.ma,r.j),r.i.i.length=0,rt(r.j),r.j.length=0),r.h.ya()}}function is(r,e,t){var s=t instanceof Er?Cr(t):new Er(t);if(""!=s.g)e&&(s.g=e+"."+s.g),ks(s,s.m);else{var a=q.location;s=a.protocol,e=e?e+"."+a.hostname:a.hostname,a=+a.port;var d=new Er(null);s&&Pi(d,s),e&&(d.g=e),a&&ks(d,a),t&&(d.l=t),s=d}return e=r.Da,(t=r.F)&&e&&di(s,t,e),di(s,"VER",r.ra),le(r,s),s}function ss(r,e,t){if(e&&!r.J)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new xr(t&&r.Ha&&!r.va?new Li({ob:!0}):r.va)).Oa(r.J),e}function ho(){}function Ui(){if(St&&!(10<=Number(Wn)))throw Error("Environmental error: no available transport.")}function Fr(r,e){We.call(this),this.g=new Je(e),this.l=r,this.h=e&&e.messageUrlParams||null,r=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(r?r["X-Client-Protocol"]="webchannel":r={"X-Client-Protocol":"webchannel"}),this.g.s=r,r=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(r?r["X-WebChannel-Content-Type"]=e.messageContentType:r={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.Ca&&(r?r["X-WebChannel-Client-Profile"]=e.Ca:r={"X-WebChannel-Client-Profile":e.Ca}),this.g.U=r,(r=e&&e.cc)&&!Wt(r)&&(this.g.o=r),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!Wt(e)&&(this.g.F=e,null!==(r=this.h)&&e in r&&e in(r=this.h)&&delete r[e]),this.j=new Ta(this)}function da(r){bi.call(this),r.__headers__&&(this.headers=r.__headers__,this.statusCode=r.__status__,delete r.__headers__,delete r.__status__);var e=r.__sm__;if(e){e:{for(const t in e){r=t;break e}r=void 0}(this.i=r)&&(r=this.i,e=null!==e&&r in e?e[r]:void 0),this.data=e}else this.data=r}function Da(){gr.call(this),this.status=1}function Ta(r){this.g=r}function as(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function ha(r,e,t){t||(t=0);var s=Array(16);if("string"==typeof e)for(var a=0;16>a;++a)s[a]=e.charCodeAt(t++)|e.charCodeAt(t++)<<8|e.charCodeAt(t++)<<16|e.charCodeAt(t++)<<24;else for(a=0;16>a;++a)s[a]=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24;var d=r.g[3],g=(e=r.g[0])+(d^(t=r.g[1])&((a=r.g[2])^d))+s[0]+3614090360&4294967295;g=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=(t=(a=(d=(e=t+(g<<7&4294967295|g>>>25))+((g=d+(a^e&(t^a))+s[1]+3905402710&4294967295)<<12&4294967295|g>>>20))+((g=a+(t^d&(e^t))+s[2]+606105819&4294967295)<<17&4294967295|g>>>15))+((g=t+(e^a&(d^e))+s[3]+3250441966&4294967295)<<22&4294967295|g>>>10))+((g=e+(d^t&(a^d))+s[4]+4118548399&4294967295)<<7&4294967295|g>>>25))+((g=d+(a^e&(t^a))+s[5]+1200080426&4294967295)<<12&4294967295|g>>>20))+((g=a+(t^d&(e^t))+s[6]+2821735955&4294967295)<<17&4294967295|g>>>15))+((g=t+(e^a&(d^e))+s[7]+4249261313&4294967295)<<22&4294967295|g>>>10))+((g=e+(d^t&(a^d))+s[8]+1770035416&4294967295)<<7&4294967295|g>>>25))+((g=d+(a^e&(t^a))+s[9]+2336552879&4294967295)<<12&4294967295|g>>>20))+((g=a+(t^d&(e^t))+s[10]+4294925233&4294967295)<<17&4294967295|g>>>15))+((g=t+(e^a&(d^e))+s[11]+2304563134&4294967295)<<22&4294967295|g>>>10))+((g=e+(d^t&(a^d))+s[12]+1804603682&4294967295)<<7&4294967295|g>>>25))+((g=d+(a^e&(t^a))+s[13]+4254626195&4294967295)<<12&4294967295|g>>>20))+((g=a+(t^d&(e^t))+s[14]+2792965006&4294967295)<<17&4294967295|g>>>15))+((g=t+(e^a&(d^e))+s[15]+1236535329&4294967295)<<22&4294967295|g>>>10))+((g=e+(a^d&(t^a))+s[1]+4129170786&4294967295)<<5&4294967295|g>>>27))+((g=d+(t^a&(e^t))+s[6]+3225465664&4294967295)<<9&4294967295|g>>>23))+((g=a+(e^t&(d^e))+s[11]+643717713&4294967295)<<14&4294967295|g>>>18))+((g=t+(d^e&(a^d))+s[0]+3921069994&4294967295)<<20&4294967295|g>>>12))+((g=e+(a^d&(t^a))+s[5]+3593408605&4294967295)<<5&4294967295|g>>>27))+((g=d+(t^a&(e^t))+s[10]+38016083&4294967295)<<9&4294967295|g>>>23))+((g=a+(e^t&(d^e))+s[15]+3634488961&4294967295)<<14&4294967295|g>>>18))+((g=t+(d^e&(a^d))+s[4]+3889429448&4294967295)<<20&4294967295|g>>>12))+((g=e+(a^d&(t^a))+s[9]+568446438&4294967295)<<5&4294967295|g>>>27))+((g=d+(t^a&(e^t))+s[14]+3275163606&4294967295)<<9&4294967295|g>>>23))+((g=a+(e^t&(d^e))+s[3]+4107603335&4294967295)<<14&4294967295|g>>>18))+((g=t+(d^e&(a^d))+s[8]+1163531501&4294967295)<<20&4294967295|g>>>12))+((g=e+(a^d&(t^a))+s[13]+2850285829&4294967295)<<5&4294967295|g>>>27))+((g=d+(t^a&(e^t))+s[2]+4243563512&4294967295)<<9&4294967295|g>>>23))+((g=a+(e^t&(d^e))+s[7]+1735328473&4294967295)<<14&4294967295|g>>>18))+((g=t+(d^e&(a^d))+s[12]+2368359562&4294967295)<<20&4294967295|g>>>12))+((g=e+(t^a^d)+s[5]+4294588738&4294967295)<<4&4294967295|g>>>28))+((g=d+(e^t^a)+s[8]+2272392833&4294967295)<<11&4294967295|g>>>21))+((g=a+(d^e^t)+s[11]+1839030562&4294967295)<<16&4294967295|g>>>16))+((g=t+(a^d^e)+s[14]+4259657740&4294967295)<<23&4294967295|g>>>9))+((g=e+(t^a^d)+s[1]+2763975236&4294967295)<<4&4294967295|g>>>28))+((g=d+(e^t^a)+s[4]+1272893353&4294967295)<<11&4294967295|g>>>21))+((g=a+(d^e^t)+s[7]+4139469664&4294967295)<<16&4294967295|g>>>16))+((g=t+(a^d^e)+s[10]+3200236656&4294967295)<<23&4294967295|g>>>9))+((g=e+(t^a^d)+s[13]+681279174&4294967295)<<4&4294967295|g>>>28))+((g=d+(e^t^a)+s[0]+3936430074&4294967295)<<11&4294967295|g>>>21))+((g=a+(d^e^t)+s[3]+3572445317&4294967295)<<16&4294967295|g>>>16))+((g=t+(a^d^e)+s[6]+76029189&4294967295)<<23&4294967295|g>>>9))+((g=e+(t^a^d)+s[9]+3654602809&4294967295)<<4&4294967295|g>>>28))+((g=d+(e^t^a)+s[12]+3873151461&4294967295)<<11&4294967295|g>>>21))+((g=a+(d^e^t)+s[15]+530742520&4294967295)<<16&4294967295|g>>>16))+((g=t+(a^d^e)+s[2]+3299628645&4294967295)<<23&4294967295|g>>>9))+((g=e+(a^(t|~d))+s[0]+4096336452&4294967295)<<6&4294967295|g>>>26))+((g=d+(t^(e|~a))+s[7]+1126891415&4294967295)<<10&4294967295|g>>>22))+((g=a+(e^(d|~t))+s[14]+2878612391&4294967295)<<15&4294967295|g>>>17))+((g=t+(d^(a|~e))+s[5]+4237533241&4294967295)<<21&4294967295|g>>>11))+((g=e+(a^(t|~d))+s[12]+1700485571&4294967295)<<6&4294967295|g>>>26))+((g=d+(t^(e|~a))+s[3]+2399980690&4294967295)<<10&4294967295|g>>>22))+((g=a+(e^(d|~t))+s[10]+4293915773&4294967295)<<15&4294967295|g>>>17))+((g=t+(d^(a|~e))+s[1]+2240044497&4294967295)<<21&4294967295|g>>>11))+((g=e+(a^(t|~d))+s[8]+1873313359&4294967295)<<6&4294967295|g>>>26))+((g=d+(t^(e|~a))+s[15]+4264355552&4294967295)<<10&4294967295|g>>>22))+((g=a+(e^(d|~t))+s[6]+2734768916&4294967295)<<15&4294967295|g>>>17))+((g=t+(d^(a|~e))+s[13]+1309151649&4294967295)<<21&4294967295|g>>>11))+((d=(e=t+((g=e+(a^(t|~d))+s[4]+4149444226&4294967295)<<6&4294967295|g>>>26))+((g=d+(t^(e|~a))+s[11]+3174756917&4294967295)<<10&4294967295|g>>>22))^((a=d+((g=a+(e^(d|~t))+s[2]+718787259&4294967295)<<15&4294967295|g>>>17))|~e))+s[9]+3951481745&4294967295,r.g[0]=r.g[0]+e&4294967295,r.g[1]=r.g[1]+(a+(g<<21&4294967295|g>>>11))&4294967295,r.g[2]=r.g[2]+a&4294967295,r.g[3]=r.g[3]+d&4294967295}function oi(r,e){this.h=e;for(var t=[],s=!0,a=r.length-1;0<=a;a--){var d=0|r[a];s&&d==e||(t[a]=d,s=!1)}this.g=t}(ie=xr.prototype).Oa=function(r){this.M=r},ie.ha=function(r,e,t,s){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+r);e=e?e.toUpperCase():"GET",this.I=r,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():Ai.g(),this.C=function qi(r){return r.h||(r.h=r.i())}(this.u?this.u:Ai),this.g.onreadystatechange=Pe(this.La,this);try{this.G=!0,this.g.open(e,String(r),!0),this.G=!1}catch(d){return void uo(this,d)}if(r=t||"",t=new Map(this.headers),s)if(Object.getPrototypeOf(s)===Object.prototype)for(var a in s)t.set(a,s[a]);else{if("function"!=typeof s.keys||"function"!=typeof s.get)throw Error("Unknown input type for opt_headers: "+String(s));for(const d of s.keys())t.set(d,s.get(d))}s=Array.from(t.keys()).find(d=>"content-type"==d.toLowerCase()),a=q.FormData&&r instanceof q.FormData,!(0<=ze(Vi,e))||s||a||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[d,g]of t)this.g.setRequestHeader(d,g);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{Ls(this),0<this.B&&((this.L=function Ci(r){return St&&"number"==typeof r.timeout&&void 0!==r.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Pe(this.ua,this)):this.A=$(this.ua,this.B,this)),this.v=!0,this.g.send(r),this.v=!1}catch(d){uo(this,d)}},ie.ua=function(){typeof Re<"u"&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Q(this,"timeout"),this.abort(8))},ie.abort=function(r){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=r||7,Q(this,"complete"),Q(this,"abort"),Gi(this))},ie.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Gi(this,!0)),xr.$.N.call(this)},ie.La=function(){this.s||(this.G||this.v||this.l?Ws(this):this.kb())},ie.kb=function(){Ws(this)},ie.isActive=function(){return!!this.g},ie.da=function(){try{return 2<Ji(this)?this.g.status:-1}catch{return-1}},ie.ja=function(){try{return this.g?this.g.responseText:""}catch{return""}},ie.Wa=function(r){if(this.g){var e=this.g.responseText;return r&&0==e.indexOf(r)&&(e=e.substring(r.length)),ys(e)}},ie.Ia=function(){return this.m},ie.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(ie=Je.prototype).ra=8,ie.H=1,ie.Na=function(r){if(this.m)if(this.m=null,1==this.H){if(!r){this.W=Math.floor(1e5*Math.random()),r=this.W++;const a=new ir(this,this.l,r);let d=this.s;if(this.U&&(d?(d=se(d),Te(d,this.U)):d=this.U),null!==this.o||this.O||(a.I=d,d=null),this.P)e:{for(var e=0,t=0;t<this.j.length;t++){var s=this.j[t];if(void 0===(s="__data__"in s.map&&"string"==typeof(s=s.map.__data__)?s.length:void 0))break;if(4096<(e+=s)){e=t;break e}if(4096===e||t===this.j.length-1){e=t+1;break e}}e=1e3}else e=1e3;
1e=Tt(this,a,e),di(t=Cr(this.I),"RID",r),di(t,"CVER",22),this.F&&di(t,"X-HTTP-Session-Id",this.F),le(this,t),d&&(this.O?e="headers="+encodeURIComponent(String(Y(d)))+"&"+e:this.o&&W(t,this.o,d)),co(this.i,a),this.bb&&di(t,"TYPE","init"),this.P?(di(t,"$req",e),di(t,"SID","null"),a.aa=!0,ni(a,t,null)):ni(a,t,e),this.H=2}}else 3==this.H&&(r?P(this,r):0==this.j.length||hs(this.i)||P(this))},ie.Ma=function(){if(this.u=null,ki(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var r=2*this.S;this.l.info("BP detection timer enabled: "+r),this.B=Si(Pe(this.jb,this),r)}},ie.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Ni(10),Qt(this),ki(this))},ie.ib=function(){null!=this.v&&(this.v=null,Qt(this),_r(this),Ni(19))},ie.pb=function(r){r?(this.l.info("Successfully pinged google.com"),Ni(2)):(this.l.info("Failed to ping google.com"),Ni(1))},ie.isActive=function(){return!!this.h&&this.h.isActive(this)},(ie=ho.prototype).Ba=function(){},ie.Aa=function(){},ie.za=function(){},ie.ya=function(){},ie.isActive=function(){return!0},ie.Va=function(){},Ui.prototype.g=function(r,e){return new Fr(r,e)},He(Fr,We),Fr.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var r=this.g,e=this.l,t=this.h||void 0;Ni(0),r.Y=e,r.na=t||{},r.G=r.aa,r.I=is(r,null,r.Y),S(r)},Fr.prototype.close=function(){gt(this.g)},Fr.prototype.u=function(r){var e=this.g;if("string"==typeof r){var t={};t.__data__=r,r=t}else this.v&&((t={}).__data__=fe(r),r=t);e.j.push(new class{constructor(r,e){this.g=r,this.map=e}}(e.fb++,r)),3==e.H&&S(e)},Fr.prototype.N=function(){this.g.h=null,delete this.j,gt(this.g),delete this.g,Fr.$.N.call(this)},He(da,bi),He(Da,gr),He(Ta,ho),Ta.prototype.Ba=function(){Q(this.g,"a")},Ta.prototype.Aa=function(r){Q(this.g,new da(r))},Ta.prototype.za=function(r){Q(this.g,new Da)},Ta.prototype.ya=function(){Q(this.g,"b")},He(as,function os(){this.blockSize=-1}),as.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},as.prototype.j=function(r,e){void 0===e&&(e=r.length);for(var t=e-this.blockSize,s=this.m,a=this.h,d=0;d<e;){if(0==a)for(;d<=t;)ha(this,r,d),d+=this.blockSize;if("string"==typeof r){for(;d<e;)if(s[a++]=r.charCodeAt(d++),a==this.blockSize){ha(this,s),a=0;break}}else for(;d<e;)if(s[a++]=r[d++],a==this.blockSize){ha(this,s),a=0;break}}this.h=a,this.i+=e},as.prototype.l=function(){var r=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);r[0]=128;for(var e=1;e<r.length-8;++e)r[e]=0;var t=8*this.i;for(e=r.length-8;e<r.length;++e)r[e]=255&t,t/=256;for(this.j(r),r=Array(16),e=t=0;4>e;++e)for(var s=0;32>s;s+=8)r[t++]=this.g[e]>>>s&255;return r};var Sa={};function Vs(r){return-128<=r&&128>r?function On(r,e){var t=Sa;return Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[r]=e(r)}(r,function(e){return new oi([0|e],0>e?-1:0)}):new oi([0|r],0>r?-1:0)}function Ts(r){if(isNaN(r)||!isFinite(r))return bo;if(0>r)return ii(Ts(-r));for(var e=[],t=1,s=0;r>=t;s++)e[s]=r/t|0,t*=Wo;return new oi(e,0)}var Wo=4294967296,bo=Vs(0),Va=Vs(1),Xo=Vs(16777216);function fo(r){if(0!=r.h)return!1;for(var e=0;e<r.g.length;e++)if(0!=r.g[e])return!1;return!0}function Ss(r){return-1==r.h}function ii(r){for(var e=r.g.length,t=[],s=0;s<e;s++)t[s]=~r.g[s];return new oi(t,~r.h).add(Va)}function Us(r,e){return r.add(ii(e))}function Ti(r,e){for(;(65535&r[e])!=r[e];)r[e+1]+=r[e]>>>16,r[e]&=65535,e++}function No(r,e){this.g=r,this.h=e}function fa(r,e){if(fo(e))throw Error("division by zero");if(fo(r))return new No(bo,bo);if(Ss(r))return e=fa(ii(r),e),new No(ii(e.g),ii(e.h));if(Ss(e))return e=fa(r,ii(e)),new No(ii(e.g),e.h);if(30<r.g.length){if(Ss(r)||Ss(e))throw Error("slowDivide_ only works with positive integers.");for(var t=Va,s=e;0>=s.X(r);)t=wo(t),s=wo(s);var a=Jo(t,1),d=Jo(s,1);for(s=Jo(s,2),t=Jo(t,2);!fo(s);){var g=d.add(s);0>=g.X(r)&&(a=a.add(t),d=g),s=Jo(s,1),t=Jo(t,1)}return e=Us(r,a.R(e)),new No(a,e)}for(a=bo;0<=r.X(e);){for(t=Math.max(1,Math.floor(r.ea()/e.ea())),s=48>=(s=Math.ceil(Math.log(t)/Math.LN2))?1:Math.pow(2,s-48),g=(d=Ts(t)).R(e);Ss(g)||0<g.X(r);)g=(d=Ts(t-=s)).R(e);fo(d)&&(d=Va),a=a.add(d),r=Us(r,g)}return new No(a,r)}function wo(r){for(var e=r.g.length+1,t=[],s=0;s<e;s++)t[s]=r.D(s)<<1|r.D(s-1)>>>31;return new oi(t,r.h)}function Jo(r,e){var t=e>>5;e%=32;for(var s=r.g.length-t,a=[],d=0;d<s;d++)a[d]=0<e?r.D(d+t)>>>e|r.D(d+t+1)<<32-e:r.D(d+t);return new oi(a,r.h)}(ie=oi.prototype).ea=function(){if(Ss(this))return-ii(this).ea();for(var r=0,e=1,t=0;t<this.g.length;t++){var s=this.D(t);r+=(0<=s?s:Wo+s)*e,e*=Wo}return r},ie.toString=function(r){if(2>(r=r||10)||36<r)throw Error("radix out of range: "+r);if(fo(this))return"0";if(Ss(this))return"-"+ii(this).toString(r);for(var e=Ts(Math.pow(r,6)),t=this,s="";;){var a=fa(t,e).g,d=((0<(t=Us(t,a.R(e))).g.length?t.g[0]:t.h)>>>0).toString(r);if(fo(t=a))return d+s;for(;6>d.length;)d="0"+d;s=d+s}},ie.D=function(r){return 0>r?0:r<this.g.length?this.g[r]:this.h},ie.X=function(r){return Ss(r=Us(this,r))?-1:fo(r)?0:1},ie.abs=function(){return Ss(this)?ii(this):this},ie.add=function(r){for(var e=Math.max(this.g.length,r.g.length),t=[],s=0,a=0;a<=e;a++){var d=s+(65535&this.D(a))+(65535&r.D(a)),g=(d>>>16)+(this.D(a)>>>16)+(r.D(a)>>>16);s=g>>>16,t[a]=(g&=65535)<<16|(d&=65535)}return new oi(t,-2147483648&t[t.length-1]?-1:0)},ie.R=function(r){if(fo(this)||fo(r))return bo;if(Ss(this))return Ss(r)?ii(this).R(ii(r)):ii(ii(this).R(r));if(Ss(r))return ii(this.R(ii(r)));if(0>this.X(Xo)&&0>r.X(Xo))return Ts(this.ea()*r.ea());for(var e=this.g.length+r.g.length,t=[],s=0;s<2*e;s++)t[s]=0;for(s=0;s<this.g.length;s++)for(var a=0;a<r.g.length;a++){var d=this.D(s)>>>16,g=65535&this.D(s),M=r.D(a)>>>16,H=65535&r.D(a);t[2*s+2*a]+=g*H,Ti(t,2*s+2*a),t[2*s+2*a+1]+=d*H,Ti(t,2*s+2*a+1),t[2*s+2*a+1]+=g*M,Ti(t,2*s+2*a+1),t[2*s+2*a+2]+=d*M,Ti(t,2*s+2*a+2)}for(s=0;s<e;s++)t[s]=t[2*s+1]<<16|t[2*s];for(s=e;s<2*e;s++)t[s]=0;return new oi(t,0)},ie.gb=function(r){return fa(this,r).h},ie.and=function(r){for(var e=Math.max(this.g.length,r.g.length),t=[],s=0;s<e;s++)t[s]=this.D(s)&r.D(s);return new oi(t,this.h&r.h)},ie.or=function(r){for(var e=Math.max(this.g.length,r.g.length),t=[],s=0;s<e;s++)t[s]=this.D(s)|r.D(s);return new oi(t,this.h|r.h)},ie.xor=function(r){for(var e=Math.max(this.g.length,r.g.length),t=[],s=0;s<e;s++)t[s]=this.D(s)^r.D(s);return new oi(t,this.h^r.h)},Ui.prototype.createWebChannel=Ui.prototype.g,Fr.prototype.send=Fr.prototype.u,Fr.prototype.open=Fr.prototype.m,Fr.prototype.close=Fr.prototype.close,Tn.NO_ERROR=0,Tn.TIMEOUT=8,Tn.HTTP_ERROR=6,pr.COMPLETE="complete",Nr.EventType=Zr,Zr.OPEN="a",Zr.CLOSE="b",Zr.ERROR="c",Zr.MESSAGE="d",We.prototype.listen=We.prototype.O,xr.prototype.listenOnce=xr.prototype.P,xr.prototype.getLastError=xr.prototype.Sa,xr.prototype.getLastErrorCode=xr.prototype.Ia,xr.prototype.getStatus=xr.prototype.da,xr.prototype.getResponseJson=xr.prototype.Wa,xr.prototype.getResponseText=xr.prototype.ja,xr.prototype.send=xr.prototype.ha,xr.prototype.setWithCredentials=xr.prototype.Oa,as.prototype.digest=as.prototype.l,as.prototype.reset=as.prototype.reset,as.prototype.update=as.prototype.j,oi.prototype.add=oi.prototype.add,oi.prototype.multiply=oi.prototype.R,oi.prototype.modulo=oi.prototype.gb,oi.prototype.compare=oi.prototype.X,oi.prototype.toNumber=oi.prototype.ea,oi.prototype.toString=oi.prototype.toString,oi.prototype.getBits=oi.prototype.D,oi.fromNumber=Ts,oi.fromString=function Mo(r,e){if(0==r.length)throw Error("number format error: empty string");if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if("-"==r.charAt(0))return ii(Mo(r.substring(1),e));if(0<=r.indexOf("-"))throw Error('number format error: interior "-" character');for(var t=Ts(Math.pow(e,8)),s=bo,a=0;a<r.length;a+=8){var d=Math.min(8,r.length-a),g=parseInt(r.substring(a,a+d),e);8>d?(d=Ts(Math.pow(e,d)),s=s.R(d).add(Ts(g))):s=(s=s.R(t)).add(Ts(g))}return s};var Ua=Oe.createWebChannelTransport=function(){return new Ui},wl=Oe.getStatEventTarget=function(){return wr()},Co=Oe.ErrorCode=Tn,ja=Oe.EventType=pr,Ba=Oe.Event=Pn,k=Oe.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},ne=Oe.FetchXmlHttpFactory=Li,U=Oe.WebChannel=Nr,ye=Oe.XhrIo=xr,Ye=Oe.Md5=as,Kt=Oe.Integer=oi;const fn="@firebase/firestore";class Un{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}
1Un.UNAUTHENTICATED=new Un(null),Un.GOOGLE_CREDENTIALS=new Un("google-credentials-uid"),Un.FIRST_PARTY=new Un("first-party-uid"),Un.MOCK_USER=new Un("mock-user");let pi="9.23.0";const $r=new _e.Yd("@firebase/firestore");function Lr(){return $r.logLevel}function Hr(r){$r.setLogLevel(r)}function on(r,...e){if($r.logLevel<=_e.in.DEBUG){const t=e.map(Gs);$r.debug(`Firestore (${pi}): ${r}`,...t)}}function or(r,...e){if($r.logLevel<=_e.in.ERROR){const t=e.map(Gs);$r.error(`Firestore (${pi}): ${r}`,...t)}}function gi(r,...e){if($r.logLevel<=_e.in.WARN){const t=e.map(Gs);$r.warn(`Firestore (${pi}): ${r}`,...t)}}function Gs(r){if("string"==typeof r)return r;try{return JSON.stringify(r)}catch{return r}}function kn(r="Unexpected state"){const e=`FIRESTORE (${pi}) INTERNAL ASSERTION FAILED: `+r;throw or(e),new Error(e)}function Xn(r,e){r||kn()}function vs(r,e){r||kn()}function Rn(r,e){return r}const Ht={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 gn extends pe.ZR{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class es{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}class Qa{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class uc{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(Un.UNAUTHENTICATED))}shutdown(){}}class Aa{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class dc{constructor(e){this.t=e,this.currentUser=Un.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){var s=this;let a=this.i;const d=ee=>this.i!==a?(a=this.i,t(ee)):Promise.resolve();let g=new es;this.o=()=>{this.i++,this.currentUser=this.u(),g.resolve(),g=new es,e.enqueueRetryable(()=>d(this.currentUser))};const M=()=>{const ee=g;e.enqueueRetryable((0,c.Z)(function*(){yield ee.promise,yield d(s.currentUser)}))},H=ee=>{on("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=ee,this.auth.addAuthTokenListener(this.o),M()};this.t.onInit(ee=>H(ee)),setTimeout(()=>{if(!this.auth){const ee=this.t.getImmediate({optional:!0});ee?H(ee):(on("FirebaseAuthCredentialsProvider","Auth not yet detected"),g.resolve(),g=new es)}},0),M()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(s=>this.i!==e?(on("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(Xn("string"==typeof s.accessToken),new Qa(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return Xn(null===e||"string"==typeof e),new Un(e)}}class ea{constructor(e,t,s){this.h=e,this.l=t,this.m=s,this.type="FirstParty",this.user=Un.FIRST_PARTY,this.g=new Map}p(){return this.m?this.m():null}get headers(){this.g.set("X-Goog-AuthUser",this.h);const e=this.p();return e&&this.g.set("Authorization",e),this.l&&this.g.set("X-Goog-Iam-Authorization-Token",this.l),this.g}}class Ro{constructor(e,t,s){this.h=e,this.l=t,this.m=s}getToken(){return Promise.resolve(new ea(this.h,this.l,this.m))}start(e,t){e.enqueueRetryable(()=>t(Un.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class ta{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class al{constructor(e){this.I=e,this.forceRefresh=!1,this.appCheck=null,this.T=null}start(e,t){const s=d=>{null!=d.error&&on("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${d.error.message}`);const g=d.token!==this.T;return this.T=d.token,on("FirebaseAppCheckTokenProvider",`Received ${g?"new":"existing"} token.`),g?t(d.token):Promise.resolve()};this.o=d=>{e.enqueueRetryable(()=>s(d))};const a=d=>{on("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=d,this.appCheck.addTokenListener(this.o)};this.I.onInit(d=>a(d)),setTimeout(()=>{if(!this.appCheck){const d=this.I.getImmediate({optional:!0});d?a(d):on("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(Xn("string"==typeof t.token),this.T=t.token,new ta(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function $a(r){const e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(r);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(t);else for(let s=0;s<r;
1s++)t[s]=Math.floor(256*Math.random());return t}class js{static A(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length;let s="";for(;s.length<20;){const a=$a(40);for(let d=0;d<a.length;++d)s.length<20&&a[d]<t&&(s+=e.charAt(a[d]%e.length))}return s}}function Jn(r,e){return r<e?-1:r>e?1:0}function na(r,e,t){return r.length===e.length&&r.every((s,a)=>t(s,e[a]))}function Ha(r){return r+"\0"}class ji{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new gn(Ht.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new gn(Ht.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new gn(Ht.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new gn(Ht.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return ji.fromMillis(Date.now())}static fromDate(e){return ji.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),s=Math.floor(1e6*(e-1e3*t));return new ji(t,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Jn(this.nanoseconds,e.nanoseconds):Jn(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.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 cr{constructor(e){this.timestamp=e}static fromTimestamp(e){return new cr(e)}static min(){return new cr(new ji(0,0))}static max(){return new cr(new ji(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Ma{constructor(e,t,s){void 0===t?t=0:t>e.length&&kn(),void 0===s?s=e.length-t:s>e.length-t&&kn(),this.segments=e,this.offset=t,this.len=s}get length(){return this.len}isEqual(e){return 0===Ma.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof Ma?e.forEach(s=>{t.push(s)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return this.construct(this.segments,this.offset+(e=void 0===e?1:e),this.length-e)}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(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,s=this.limit();t<s;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const s=Math.min(e.length,t.length);for(let a=0;a<s;a++){const d=e.get(a),g=t.get(a);if(d<g)return-1;if(d>g)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class Pr extends Ma{construct(e,t,s){return new Pr(e,t,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...e){const t=[];for(const s of e){if(s.indexOf("//")>=0)throw new gn(Ht.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);t.push(...s.split("/").filter(a=>a.length>0))}return new Pr(t)}static emptyPath(){return new Pr([])}}const Ja=/^[_a-zA-Z][_a-zA-Z0-9]*$/;
1class Vr extends Ma{construct(e,t,s){return new Vr(e,t,s)}static isValidIdentifier(e){return Ja.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Vr.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Vr(["__name__"])}static fromServerFormat(e){const t=[];let s="",a=0;const d=()=>{if(0===s.length)throw new gn(Ht.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(s),s=""};let g=!1;for(;a<e.length;){const M=e[a];if("\\"===M){if(a+1===e.length)throw new gn(Ht.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const H=e[a+1];if("\\"!==H&&"."!==H&&"`"!==H)throw new gn(Ht.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);s+=H,a+=2}else"`"===M?(g=!g,a++):"."!==M||g?(s+=M,a++):(d(),a++)}if(d(),g)throw new gn(Ht.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Vr(t)}static emptyPath(){return new Vr([])}}class jn{constructor(e){this.path=e}static fromPath(e){return new jn(Pr.fromString(e))}static fromName(e){return new jn(Pr.fromString(e).popFirst(5))}static empty(){return new jn(Pr.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===Pr.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return Pr.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new jn(new Pr(e.slice()))}}class Es{constructor(e,t,s,a){this.indexId=e,this.collectionGroup=t,this.fields=s,this.indexState=a}}function pa(r){return r.fields.find(e=>2===e.kind)}function ps(r){return r.fields.filter(e=>2!==e.kind)}Es.UNKNOWN_ID=-1;class ga{constructor(e,t){this.fieldPath=e,this.kind=t}}class ra{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new ra(0,As.min())}}function za(r,e){const t=r.toTimestamp().seconds,s=r.toTimestamp().nanoseconds+1,a=cr.fromTimestamp(1e9===s?new ji(t+1,0):new ji(t,s));return new As(a,jn.empty(),e)}function Wa(r){return new As(r.readTime,r.key,-1)}class As{constructor(e,t,s){this.readTime=e,this.documentKey=t,this.largestBatchId=s}static min(){return new As(cr.min(),jn.empty(),-1)}static max(){return new As(cr.max(),jn.empty(),-1)}}function Fo(r,e){let t=r.readTime.compareTo(e.readTime);return 0!==t?t:(t=jn.comparator(r.documentKey,e.documentKey),0!==t?t:Jn(r.largestBatchId,e.largestBatchId))}const ia="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Bs{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}function Zs(r){return sa.apply(this,arguments)}function sa(){return sa=(0,c.Z)(function*(r){if(r.code!==Ht.FAILED_PRECONDITION||r.message!==ia)throw r;on("LocalStore","Unexpectedly lost primary lease")}),sa.apply(this,arguments)}class Lt{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(t=>{this.isDone=!0,this.result=t,this.nextCallback&&this.nextCallback(t)},t=>{this.isDone=!0,this.error=t,this.catchCallback&&this.catchCallback(t)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&kn(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new Lt((s,a)=>{this.nextCallback=d=>{this.wrapSuccess(e,d).next(s,a)},this.catchCallback=d=>{this.wrapFailure(t,d).next(s,a)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof Lt?t:Lt.resolve(t)}catch(t){return Lt.reject(t)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):Lt.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):Lt.reject(t)}static resolve(e){return new Lt((t,s)=>{t(e)})}static reject(e){return new Lt((t,s)=>{s(e)})}static waitFor(e){return new Lt((t,s)=>{let a=0,d=0,g=!1;e.forEach(M=>{++a,M.next(()=>{++d,g&&d===a&&t()},H=>s(H))}),g=!0,d===a&&t()})}static or(e){let t=Lt.resolve(!1);for(const s of e)t=t.next(a=>a?Lt.resolve(a):s());return t}static forEach(e,t){const s=[];return e.forEach((a,d)=>{s.push(t.call(this,a,d))}),this.waitFor(s)}static mapArray(e,t){return new Lt((s,a)=>{const d=e.length,g=new Array(d);let M=0;for(let H=0;H<d;H++){const ee=H;t(e[ee]).next(De=>{g[ee]=De,++M,M===d&&s(g)},De=>a(De))}})}static doWhile(e,t){return new Lt((s,a)=>{const d=()=>{!0===e()?t().next(()=>{d()},a):s()};d()})}}class Ka{constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.v=new es,this.transaction.oncomplete=()=>{this.v.resolve()},this.transaction.onabort=()=>{t.error?this.v.reject(new B(e,t.error)):this.v.resolve()},this.transaction.onerror=s=>{const a=Ee(s.target.error);this.v.reject(new B(e,a))}}static open(e,t,s,a){try{return new Ka(t,e.transaction(a,s))}catch(d){throw new B(t,d)}}get R(){return this.v.promise}abort(e){e&&this.v.reject(e),this.aborted||(on("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}P(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new b(t)}}class Yr{constructor(e,t,s){this.name=e,this.version=t,this.V=s,12.2===Yr.S((0,pe.z$)())&&or("Firestore persistence suffers from a bug in
1iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(e){return on("SimpleDb","Removing database:",e),N(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!(0,pe.hl)())return!1;if(Yr.C())return!0;const e=(0,pe.z$)(),t=Yr.S(e),s=0<t&&t<10,a=Yr.N(e),d=0<a&&a<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||s||d)}static C(){var e;return typeof process<"u"&&"YES"===(null===(e=process.env)||void 0===e?void 0:e.k)}static M(e,t){return e.store(t)}static S(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),s=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(s)}static N(e){const t=e.match(/Android ([\d.]+)/i),s=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(s)}$(e){var t=this;return(0,c.Z)(function*(){return t.db||(on("SimpleDb","Opening database:",t.name),t.db=yield new Promise((s,a)=>{const d=indexedDB.open(t.name,t.version);d.onsuccess=g=>{s(g.target.result)},d.onblocked=()=>{a(new B(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},d.onerror=g=>{const M=g.target.error;a("VersionError"===M.name?new gn(Ht.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):"InvalidStateError"===M.name?new gn(Ht.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+M):new B(e,M))},d.onupgradeneeded=g=>{on("SimpleDb",'Database "'+t.name+'" requires upgrade from version:',g.oldVersion),t.V.O(g.target.result,d.transaction,g.oldVersion,t.version).next(()=>{on("SimpleDb","Database upgrade to version "+t.version+" complete")})}})),t.F&&(t.db.onversionchange=s=>t.F(s)),t.db})()}B(e){this.F=e,this.db&&(this.db.onversionchange=t=>e(t))}runTransaction(e,t,s,a){var d=this;return(0,c.Z)(function*(){const g="readonly"===t;let M=0;for(;;){++M;try{d.db=yield d.$(e);const H=Ka.open(d.db,e,g?"readonly":"readwrite",s),ee=a(H).next(De=>(H.P(),De)).catch(De=>(H.abort(De),Lt.reject(De))).toPromise();return ee.catch(()=>{}),yield H.R,ee}catch(H){const ee=H,De="FirebaseError"!==ee.name&&M<3;if(on("SimpleDb","Transaction failed with error:",ee.message,"Retrying:",De),d.close(),!De)return Promise.reject(ee)}}})()}close(){this.db&&this.db.close(),this.db=void 0}}class Rc{constructor(e){this.L=e,this.q=!1,this.U=null}get isDone(){return this.q}get K(){return this.U}set cursor(e){this.L=e}done(){this.q=!0}G(e){this.U=e}delete(){return N(this.L.delete())}}class B extends gn{constructor(e,t){super(Ht.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function _(r){return"IndexedDbTransactionError"===r.name}class b{constructor(e){this.store=e}put(e,t){let s;return void 0!==t?(on("SimpleDb","PUT",this.store.name,e,t),s=this.store.put(t,e)):(on("SimpleDb","PUT",this.store.name,"<auto-key>",e),s=this.store.put(e)),N(s)}add(e){return on("SimpleDb","ADD",this.store.name,e,e),N(this.store.add(e))}get(e){return N(this.store.get(e)).next(t=>(void 0===t&&(t=null),on("SimpleDb","GET",this.store.name,e,t),t))}delete(e){return on("SimpleDb","DELETE",this.store.name,e),N(this.store.delete(e))}count(){return on("SimpleDb","COUNT",this.store.name),N(this.store.count())}j(e,t){const s=this.options(e,t);if(s.index||"function"!=typeof this.store.getAll){const a=this.cursor(s),d=[];return this.W(a,(g,M)=>{d.push(M)}).next(()=>d)}{const a=this.store.getAll(s.range);return new Lt((d,g)=>{a.onerror=M=>{g(M.target.error)},a.onsuccess=M=>{d(M.target.result)}})}}H(e,t){const s=this.store.getAll(e,null===t?void 0:t);return new Lt((a,d)=>{s.onerror=g=>{d(g.target.error)},s.onsuccess=g=>{a(g.target.result)}})}J(e,t){on("SimpleDb","DELETE ALL",this.store.name);const s=this.options(e,t);s.Y=!1;const a=this.cursor(s);return this.W(a,(d,g,M)=>M.delete())}X(e,t){let s;t?s=e:(s={},t=e);const a=this.cursor(s);return this.W(a,t)}Z(e){const t=this.cursor({});return new Lt((s,a)=>{t.onerror=d=>{const g=Ee(d.target.error);a(g)},t.onsuccess=d=>{const g=d.target.result;g?e(g.primaryKey,g.value).next(M=>{M?g.continue():s()}):s()}})}W(e,t){const s=[];return new Lt((a,d)=>{e.onerror=g=>{d(g.target.error)},e.onsuccess=g=>{const M=g.target.result;if(!M)return void a();const H=new Rc(M),ee=t(M.primaryKey,M.value,H);if(ee instanceof Lt){const De=ee.catch(st=>(H.done(),Lt.reject(st)));s.push(De)}H.isDone?a():null===H.K?M.continue():M.continue(H.K)}}).next(()=>Lt.waitFor(s))}options(e,t){let s;return void 0!==e&&("string"==typeof e?s=e:t=e),{index:s,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const s=this.store.index(e.index);return e.Y?s.openKeyCursor(e.range,t):s.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function N(r){return new Lt((e,t)=>{r.onsuccess=s=>{e(s.target.result)},r.onerror=s=>{const a=Ee(s.target.error);t(a)}})}let re=!1;function Ee(r){const e=Yr.S((0,pe.z$)());if(e>=12.2&&e<13){const t="An internal error was encountered in the Indexed Database server";if(r.message.indexOf(t)>=0){const s=new gn("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${t}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return re||(re=!0,setTimeout(()=>{throw s},0)),s}}return r}class Ze{constructor(e,t){this.asyncQueue=e,this.tt=t,this.task=null}start(){this.et(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}et(e){var t=this;on("IndexBackiller",`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,(0,c.Z)(function*(){t.task=null;try{on("IndexBackiller",`Documents written: ${yield t.tt.nt()}`)}catch(s){_(s)?on("IndexBackiller","Ignoring IndexedDB error during index backfill: ",s):yield Zs(s)}yield t.et(6e4)}))}}
1class ot{constructor(e,t){this.localStore=e,this.persistence=t}nt(e=50){var t=this;return(0,c.Z)(function*(){return t.persistence.runTransaction("Backfill Indexes","readwrite-primary",s=>t.st(s,e))})()}st(e,t){const s=new Set;let a=t,d=!0;return Lt.doWhile(()=>!0===d&&a>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next(g=>{if(null!==g&&!s.has(g))return on("IndexBackiller",`Processing collection: ${g}`),this.it(e,g,a).next(M=>{a-=M,s.add(g)});d=!1})).next(()=>t-a)}it(e,t,s){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next(a=>this.localStore.localDocuments.getNextDocuments(e,t,a,s).next(d=>{const g=d.changes;return this.localStore.indexManager.updateIndexEntries(e,g).next(()=>this.rt(a,d)).next(M=>(on("IndexBackiller",`Updating offset: ${M}`),this.localStore.indexManager.updateCollectionGroup(e,t,M))).next(()=>g.size)}))}rt(e,t){let s=e;return t.changes.forEach((a,d)=>{const g=Wa(d);Fo(g,s)>0&&(s=g)}),new As(s.readTime,s.documentKey,Math.max(t.batchId,e.largestBatchId))}}let Pt=(()=>{class r{constructor(t,s){this.previousValue=t,s&&(s.sequenceNumberHandler=a=>this.ot(a),this.ut=a=>s.writeSequenceNumber(a))}ot(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue}next(){const t=++this.previousValue;return this.ut&&this.ut(t),t}}return r.ct=-1,r})();function Zt(r){return null==r}function Fn(r){return 0===r&&1/r==-1/0}function Qn(r){return"number"==typeof r&&Number.isInteger(r)&&!Fn(r)&&r<=Number.MAX_SAFE_INTEGER&&r>=Number.MIN_SAFE_INTEGER}function Ar(r){let e="";for(let t=0;t<r.length;t++)e.length>0&&(e=hr(e)),e=Or(r.get(t),e);return hr(e)}function Or(r,e){let t=e;const s=r.length;for(let a=0;a<s;a++){const d=r.charAt(a);switch(d){case"\0":t+="\x01\x10";break;case"\x01":t+="\x01\x11";break;default:t+=d}}return t}function hr(r){return r+"\x01\x01"}function Mr(r){const e=r.length;if(Xn(e>=2),2===e)return Xn("\x01"===r.charAt(0)&&"\x01"===r.charAt(1)),Pr.emptyPath();const t=e-2,s=[];let a="";for(let d=0;d<e;){const g=r.indexOf("\x01",d);switch((g<0||g>t)&&kn(),r.charAt(g+1)){case"\x01":const M=r.substring(d,g);let H;0===a.length?H=M:(a+=M,H=a,a=""),s.push(H);break;case"\x10":a+=r.substring(d,g),a+="\0";break;case"\x11":a+=r.substring(d,g+1);break;default:kn()}d=g+2}return new Pr(s)}const w=["userId","batchId"];function D(r,e){return[r,Ar(e)]}function y(r,e,t){return[r,Ar(e),t]}const O={},z=["prefixPath","collectionGroup","readTime","documentId"],he=["prefixPath","collectionGroup","documentId"],Ce=["collectionGroup","readTime","prefixPath","documentId"],_t=["canonicalId","targetId"],tn=["targetId","path"],Ln=["path","targetId"],Vn=["collectionId","parent"],Ur=["indexId","uid"],Zi=["uid","sequenceNumber"],qs=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],Do=["indexId","uid","orderedDocumentKey"],Lo=["userId","collectionPath","documentId"],Zn=["userId","collectionPath","largestBatchId"],ur=["userId","collectionGroup","largestBatchId"],br=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],ei=[...br,"documentOverlays"],ls=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],po=ls,Ys=[...po,"indexConfiguration","indexState","indexEntries"];class Vo extends Bs{constructor(e,t){super(),this.ht=e,this.currentSequenceNumber=t}}function Kr(r,e){const t=Rn(r);return Yr.M(t.ht,e)}function Ra(r){let e=0;for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&e++;return e}function Oo(r,e){for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&e(t,r[t])}function Qs(r){for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e))return!1;return!0}class mi{constructor(e,t){this.comparator=e,this.root=t||zi.EMPTY}insert(e,t){return new mi(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,zi.BLACK,null,
vendor: 4,416 bytes, line 1
1null))}remove(e){return new mi(this.comparator,this.root.remove(e,this.comparator).copy(null,null,zi.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const s=this.comparator(e,t.key);if(0===s)return t.value;s<0?t=t.left:s>0&&(t=t.right)}return null}indexOf(e){let t=0,s=this.root;for(;!s.isEmpty();){const a=this.comparator(e,s.key);if(0===a)return t+s.left.size;a<0?s=s.left:(t+=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(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,s)=>(e(t,s),!1))}toString(){const e=[];return this.inorderTraversal((t,s)=>(e.push(`${t}:${s}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Xs(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Xs(this.root,e,this.comparator,!1)}getReverseIterator(){return new Xs(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Xs(this.root,e,this.comparator,!0)}}class Xs{constructor(e,t,s,a){this.isReverse=a,this.nodeStack=[];let d=1;for(;!e.isEmpty();)if(d=t?s(e.key,t):1,t&&a&&(d*=-1),d<0)e=this.isReverse?e.left:e.right;else{if(0===d){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class zi{constructor(e,t,s,a,d){this.key=e,this.value=t,this.color=s??zi.RED,this.left=a??zi.EMPTY,this.right=d??zi.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,s,a,d){return new zi(e??this.key,t??this.value,s??this.color,a??this.left,d??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}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(e,t,s){let a=this;const d=s(e,a.key);return a=d<0?a.copy(null,null,null,a.left.insert(e,t,s),null):0===d?a.copy(null,t,null,null,null):a.copy(null,null,null,null,a.right.insert(e,t,s)),a.fixUp()}removeMin(){if(this.left.isEmpty())return zi.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let s,a=this;if(t(e,a.key)<0)a.left.isEmpty()||a.left.isRed()||a.left.left.isRed()||(a=a.moveRedLeft()),a=a.copy(null,null,null,a.left.remove(e,t),null);else{if(a.left.isRed()&&(a=a.rotateRight()),a.right.isEmpty()||a.right.isRed()||a.right.left.isRed()||(a=a.moveRedRight()),0===t(e,a.key)){if(a.right.isEmpty())return zi.EMPTY;s=a.right.min(),a=a.copy(s.key,s.value,null,null,a.right.removeMin())}a=a.copy(null,null,null,null,a.right.remove(e,t))}return a.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,zi.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,zi.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw kn();const e=this.left.check();if(e!==this.right.check())throw kn();return e+(this.isRed()?0:1)}}
1zi.EMPTY=null,zi.RED=!0,zi.BLACK=!1,zi.EMPTY=new class{constructor(){this.size=0}get key(){throw kn()}get value(){throw kn()}get color(){throw kn()}get left(){throw kn()}get right(){throw kn()}copy(r,e,t,s,a){return this}insert(r,e,t){return new zi(r,e)}remove(r,e){return this}isEmpty(){return!0}inorderTraversal(r){return!1}reverseTraversal(r){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Ii{constructor(e){this.comparator=e,this.data=new mi(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,s)=>(e(t),!1))}forEachInRange(e,t){const s=this.data.getIteratorFrom(e[0]);for(;s.hasNext();){const a=s.getNext();if(this.comparator(a.key,e[1])>=0)return;t(a.key)}}forEachWhile(e,t){let s;for(s=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();s.hasNext();)if(!e(s.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new Xd(this.data.getIterator())}getIteratorFrom(e){return new Xd(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(s=>{t=t.add(s)}),t}isEqual(e){if(!(e instanceof Ii)||this.size!==e.size)return!1;const t=this.data.getIterator(),s=e.data.getIterator();for(;t.hasNext();){const a=t.getNext().key,d=s.getNext().key;if(0!==this.comparator(a,d))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new Ii(this.comparator);return t.data=e,t}}class Xd{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function Cl(r){return r.hasNext()?r.getNext():void 0}class Uo{constructor(e){this.fields=e,e.sort(Vr.comparator)}static empty(){return new Uo([])}unionWith(e){let t=new Ii(Vr.comparator);for(const s of this.fields)t=t.add(s);for(const s of e)t=t.add(s);return new Uo(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return na(this.fields,e.fields,(t,s)=>t.isEqual(s))}}
1class hc extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}function Jd(){return typeof atob<"u"}class Js{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(s){try{return atob(s)}catch(a){throw typeof DOMException<"u"&&a instanceof DOMException?new hc("Invalid base64 string: "+a):a}}(e);return new Js(t)}static fromUint8Array(e){const t=function(s){let a="";for(let d=0;d<s.length;++d)a+=String.fromCharCode(s[d]);return a}(e);return new Js(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Jn(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Js.EMPTY_BYTE_STRING=new Js("");const yu=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function ll(r){if(Xn(!!r),"string"==typeof r){let e=0;const t=yu.exec(r);if(Xn(!!t),t[1]){let a=t[1];a=(a+"000000000").substr(0,9),e=Number(a)}const s=new Date(r);return{seconds:Math.floor(s.getTime()/1e3),nanos:e}}return{seconds:cs(r.seconds),nanos:cs(r.nanos)}}function cs(r){return"number"==typeof r?r:"string"==typeof r?Number(r):0}function ma(r){return"string"==typeof r?Js.fromBase64String(r):Js.fromUint8Array(r)}function Oc(r){var e,t;return"server_timestamp"===(null===(t=((null===(e=r?.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===t?void 0:t.stringValue)}function fc(r){const e=r.mapValue.fields.__previous_value__;return Oc(e)?fc(e):e}function Hl(r){const e=ll(r.mapValue.fields.__local_write_time__.timestampValue);return new ji(e.seconds,e.nanos)}class id{constructor(e,t,s,a,d,g,M,H,ee){this.databaseId=e,this.appId=t,this.persistenceKey=s,this.host=a,this.ssl=d,this.forceLongPolling=g,this.autoDetectLongPolling=M,this.longPollingOptions=H,this.useFetchStreams=ee}}class Oa{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Oa("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Oa&&e.projectId===this.projectId&&e.database===this.database}}const ya={mapValue:{fields:{__type__:{stringValue:"__max__"}}}},Il={nullValue:"NULL_VALUE"};function oa(r){return"nullValue"in r?0:"booleanValue"in r?1:"integerValue"in r||"doubleValue"in r?2:"timestampValue"in r?3:"stringValue"in r?5:"bytesValue"in r?6:"referenceValue"in r?7:"geoPointValue"in r?8:"arrayValue"in r?9:"mapValue"in r?Oc(r)?4:_a(r)?9007199254740991:10:kn()}function Ko(r,e){if(r===e)return!0;const t=oa(r);if(t!==oa(e))return!1;switch(t){case 0:case 9007199254740991:return!0;case 1:return r.booleanValue===e.booleanValue;case 4:return Hl(r).isEqual(Hl(e));case 3:return function(s,a){if("string"==typeof s.timestampValue&&"string"==typeof a.timestampValue&&s.timestampValue.length===a.timestampValue.length)return s.timestampValue===a.timestampValue;const d=ll(s.timestampValue),g=ll(a.timestampValue);return d.seconds===g.seconds&&d.nanos===g.nanos}(r,e);case 5:return r.stringValue===e.stringValue;case 6:return a=e,ma(r.bytesValue).isEqual(ma(a.bytesValue));case 7:return r.referenceValue===e.referenceValue;case 8:return function(s,a){return cs(s.geoPointValue.latitude)===cs(a.geoPointValue.latitude)&&cs(s.geoPointValue.longitude)===cs(a.geoPointValue.longitude)}(r,e);case 2:return function(s,a){if("integerValue"in s&&"integerValue"in a)return cs(s.integerValue)===cs(a.integerValue);if("doubleValue"in s&&"doubleValue"in a){const d=cs(s.doubleValue),g=cs(a.doubleValue);return d===g?Fn(d)===Fn(g):isNaN(d)&&isNaN(g)}return!1}(r,e);case 9:return na(r.arrayValue.values||[],e.arrayValue.values||[],Ko);case 10:return function(s,a){const d=s.mapValue.fields||{},g=a.mapValue.fields||{};if(Ra(d)!==Ra(g))return!1;for(const M in d)if(d.hasOwnProperty(M)&&(void 0===g[M]||!Ko(d[M],g[M])))return!1;return!0}(r,e);default:return kn()}var a}function Dl(r,e){return void 0!==(r.values||[]).find(t=>Ko(t,e))}function aa(r,e){if(r===e)return 0;const t=oa(r),s=oa(e);if(t!==s)return Jn(t,s);switch(t){case 0:case 9007199254740991:return 0;case 1:return Jn(r.booleanValue,e.booleanValue);case 2:return function(a,d){const g=cs(a.integerValue||a.doubleValue),M=cs(d.integerValue||d.doubleValue);return g<M?-1:g>M?1:g===M?0:isNaN(g)?isNaN(M)?0:-1:1}(r,e);case 3:return pc(r.timestampValue,e.timestampValue);case 4:return pc(Hl(r),Hl(e));case 5:return Jn(r.stringValue,e.stringValue);case 6:return function(a,d){const g=ma(a),M=ma(d);return g.compareTo(M)}(r.bytesValue,e.bytesValue);case 7:return function(a,d){const g=a.split("/"),M=d.split("/");for(let H=0;H<g.length&&H<M.length;H++){const ee=Jn(g[H],M[H]);if(0!==ee)return ee}return Jn(g.length,M.length)}(r.referenceValue,e.referenceValue);case 8:return function(a,d){const g=Jn(cs(a.latitude),cs(d.latitude));return 0!==g?g:Jn(cs(a.longitude),cs(d.longitude))}(r.geoPointValue,e.geoPointValue);case 9:return function(a,d){const g=a.values||[],M=d.values||[];for(let H=0;H<g.length&&H<M.length;++H){const ee=aa(g[H],M[H]);if(ee)return ee}return Jn(g.length,M.length)}(r.arrayValue,e.arrayValue);case 10:return function(a,d){if(a===ya.mapValue&&d===ya.mapValue)return 0;if(a===ya.mapValue)return 1;if(d===ya.mapValue)return-1;const g=a.fields||{},M=Object.keys(g),H=d.fields||{},ee=Object.keys(H);M.sort(),ee.sort();for(let De=0;De<M.length&&De<ee.length;++De){const st=Jn(M[De],ee[De]);if(0!==st)return st;const Bt=aa(g[M[De]],H[ee[De]]);if(0!==Bt)return Bt}return Jn(M.length,ee.length)}(r.mapValue,e.mapValue);default:throw kn()}}function pc(r,e){if("string"==typeof r&&"string"==typeof e&&r.length===e.length)return Jn(r,e);const t=ll(r),s=ll(e),a=Jn(t.seconds,s.seconds);return 0!==a?a:Jn(t.nanos,s.nanos)}function el(r){return Pc(r)}function Pc(r){return"nullValue"in r?"null":"booleanValue"in r?""+r.booleanValue:"integerValue"in r?""+r.integerValue:"doubleValue"in r?""+r.doubleValue:"timestampValue"in r?function(s){const a=ll(s);return`time(${a.seconds},${a.nanos})`}(r.timestampValue):"stringValue"in r?r.stringValue:"bytesValue"in r?ma(r.bytesValue).toBase64():"referenceValue"in r?jn.fromName(r.referenceValue).toString():"geoPointValue"in r?`geo(${(e=r.geoPointValue).latitude},${e.longitude})`:"arrayValue"in r?function(s){let a="[",d=!0;for(const g of s.values||[])d?d=!1:a+=",",a+=Pc(g);return a+"]"}(r.arrayValue):"mapValue"in r?function(s){const a=Object.keys(s.fields||{}).sort();let d="{",g=!0;for(const M of a)g?g=!1:d+=",",d+=`${M}:${Pc(s.fields[M])}`;return d+"}"}(r.mapValue):kn();var e}function Tl(r,e){return{referenceValue:`projects/${r.projectId}/databases/${r.database}/documents/${e.path.canonicalString()}`}}function sd(r){return!!r&&"integerValue"in r}function zl(r){return!!r&&"arrayValue"in r}function xc(r){return!!r&&"nullValue"in r}function Ga(r){return!!r&&"doubleValue"in r&&isNaN(Number(r.doubleValue))}function Wl(r){return!!r&&"mapValue"in r}function Kl(r){if(r.geoPointValue)return{geoPointValue:Object.assign({},r.geoPointValue)};if(r.timestampValue&&"object"==typeof r.timestampValue)return{timestampValue:Object.assign({},r.timestampValue)};if(r.mapValue){const e={mapValue:{fields:{}}};return Oo(r.mapValue.fields,(t,s)=>e.mapValue.fields[t]=Kl(s)),e}if(r.arrayValue){const e={arrayValue:{values:[]}};for(let t=0;t<(r.arrayValue.values||[]).length;++t)e.arrayValue.values[t]=Kl(r.arrayValue.values[t]);return e}return Object.assign({},r)}function _a(r){return"__max__"===(((r.mapValue||{}).fields||{}).__type__||{}).stringValue}function Sl(r){return"nullValue"in r?Il:"booleanValue"in r?{booleanValue:!1}:"integerValue"in r||"doubleValue"in r?{doubleValue:NaN}:"timestampValue"in r?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in r?{stringValue:""}
vendor: 4,250 bytes, line 1
1:"bytesValue"in r?{bytesValue:""}:"referenceValue"in r?Tl(Oa.empty(),jn.empty()):"geoPointValue"in r?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in r?{arrayValue:{}}:"mapValue"in r?{mapValue:{}}:kn()}function kc(r){return"nullValue"in r?{booleanValue:!1}:"booleanValue"in r?{doubleValue:NaN}:"integerValue"in r||"doubleValue"in r?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in r?{stringValue:""}:"stringValue"in r?{bytesValue:""}:"bytesValue"in r?Tl(Oa.empty(),jn.empty()):"referenceValue"in r?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in r?{arrayValue:{}}:"arrayValue"in r?{mapValue:{}}:"mapValue"in r?ya:kn()}function cl(r,e){const t=aa(r.value,e.value);return 0!==t?t:r.inclusive&&!e.inclusive?-1:!r.inclusive&&e.inclusive?1:0}function vu(r,e){const t=aa(r.value,e.value);return 0!==t?t:r.inclusive&&!e.inclusive?1:!r.inclusive&&e.inclusive?-1:0}class go{constructor(e){this.value=e}static empty(){return new go({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let s=0;s<e.length-1;++s)if(t=(t.mapValue.fields||{})[e.get(s)],!Wl(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Kl(t)}setAll(e){let t=Vr.emptyPath(),s={},a=[];e.forEach((g,M)=>{if(!t.isImmediateParentOf(M)){const H=this.getFieldsMap(t);this.applyChanges(H,s,a),s={},a=[],t=M.popLast()}g?s[M.lastSegment()]=Kl(g):a.push(M.lastSegment())});const d=this.getFieldsMap(t);this.applyChanges(d,s,a)}delete(e){const t=this.field(e.popLast());Wl(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Ko(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let s=0;s<e.length;++s){let a=t.mapValue.fields[e.get(s)];Wl(a)&&a.mapValue.fields||(a={mapValue:{fields:{}}},t.mapValue.fields[e.get(s)]=a),t=a}return t.mapValue.fields}applyChanges(e,t,s){Oo(t,(a,d)=>e[a]=d);for(const a of s)delete e[a]}clone(){return new go(Kl(this.value))}}function Eu(r){const e=[];return Oo(r.fields,(t,s)=>{const a=new Vr([t]);if(Wl(s)){const d=Eu(s.mapValue).fields;if(0===d.length)e.push(a);else for(const g of d)e.push(a.child(g))}else e.push(a)}),new Uo(e)}class us{constructor(e,t,s,a,d,g,M){this.key=e,this.documentType=t,this.version=s,this.readTime=a,this.createTime=d,this.data=g,this.documentState=M}static newInvalidDocument(e){return new us(e,0,cr.min(),cr.min(),cr.min(),go.empty(),0)}static newFoundDocument(e,t,s,a){return new us(e,1,t,cr.min(),s,a,0)}static newNoDocument(e,t){return new us(e,2,t,cr.min(),cr.min(),go.empty(),0)}static newUnknownDocument(e,t){return new us(e,3,t,cr.min(),cr.min(),go.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(cr.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=go.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=go.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=cr.min(),this}setReadTime(e){return this.readTime=e,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(e){return e instanceof us&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new us(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}})`}}
1class ul{constructor(e,t){this.position=e,this.inclusive=t}}function od(r,e,t){let s=0;for(let a=0;a<r.position.length;a++){const d=e[a],g=r.position[a];if(s=d.field.isKeyField()?jn.comparator(jn.fromName(g.referenceValue),t.key):aa(g,t.data.field(d.field)),"desc"===d.dir&&(s*=-1),0!==s)break}return s}function T(r,e){if(null===r)return null===e;if(null===e||r.inclusive!==e.inclusive||r.position.length!==e.position.length)return!1;for(let t=0;t<r.position.length;t++)if(!Ko(r.position[t],e.position[t]))return!1;return!0}class F{constructor(e,t="asc"){this.field=e,this.dir=t}}function J(r,e){return r.dir===e.dir&&r.field.isEqual(e.field)}class Le{}class tt extends Le{constructor(e,t,s){super(),this.field=e,this.op=t,this.value=s}static create(e,t,s){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,s):new Gl(e,t,s):"array-contains"===t?new Pa(e,s):"in"===t?new gc(e,s):"not-in"===t?new eh(e,s):"array-contains-any"===t?new bu(e,s):new tt(e,t,s)}static createKeyFieldInFilter(e,t,s){return"in"===t?new Nc(e,s):new Al(e,s)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(aa(t,this.value)):null!==t&&oa(this.value)===oa(t)&&this.matchesComparison(aa(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return kn()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}getFirstInequalityField(){return this.isInequality()?this.field:null}}class mt extends Le{constructor(e,t){super(),this.filters=e,this.op=t,this.lt=null}static create(e,t){return new mt(e,t)}matches(e){return Gt(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.lt||(this.lt=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.lt}getFilters(){return Object.assign([],this.filters)}getFirstInequalityField(){const e=this.ft(t=>t.isInequality());return null!==e?e.field:null}ft(e){for(const t of this.getFlattenedFilters())if(e(t))return t;return null}}function Gt(r){return"and"===r.op}function Hn(r){return"or"===r.op}function Bn(r){return fr(r)&&Gt(r)}function fr(r){for(const e of r.filters)if(e instanceof mt)return!1;return!0}function jr(r){if(r instanceof tt)return r.field.canonicalString()+r.op.toString()+el(r.value);if(Bn(r))return r.filters.map(e=>jr(e)).join(",");{const e=r.filters.map(t=>jr(t)).join(",");return`${r.op}(${e})`}}function zr(r,e){return r instanceof tt?(t=r,(s=e)instanceof tt&&t.op===s.op&&t.field.isEqual(s.field)&&Ko(t.value,s.value)):r instanceof mt?function(t,s){return s instanceof mt&&t.op===s.op&&t.filters.length===s.filters.length&&t.filters.reduce((a,d,g)=>a&&zr(d,s.filters[g]),!0)}(r,e):void kn();var t,s}function la(r,e){const t=r.filters.concat(e);return mt.create(t,r.op)}function Ps(r){return r instanceof tt?`${(e=r).field.canonicalString()} ${e.op} ${el(e.value)}`:r instanceof mt?function(e){return e.op.toString()+" {"+e.getFilters().map(Ps).join(" ,")+"}"}(r):"Filter";var e}class Gl extends tt{constructor(e,t,s){super(e,t,s),this.key=jn.fromName(s.referenceValue)}matches(e){const t=jn.comparator(e.key,this.key);return this.matchesComparison(t)}}class Nc extends tt{constructor(e,t){super(e,"in",t),this.keys=va(0,t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class Al extends tt{constructor(e,t){super(e,"not-in",t),this.keys=va(0,t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function va(r,e){var t;return((null===(t=e.arrayValue)||void 0===t?void 0:t.values)||[]).map(s=>jn.fromName(s.referenceValue))}class Pa extends tt{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return zl(t)&&Dl(t.arrayValue,this.value)}}class gc extends tt{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Dl(this.value.arrayValue,t)}}class eh extends tt{constructor(e,t){super(e,"not-in",t)}matches(e){if(Dl(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!Dl(this.value.arrayValue,t)}}class bu extends tt{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!zl(t)||!t.arrayValue.values)&&t.arrayValue.values.some(s=>Dl(this.value.arrayValue,s))}}class dm{constructor(e,t=null,s=[],a=[],d=null,g=null,M=null){this.path=e,this.collectionGroup=t,this.orderBy=s,this.filters=a,this.limit=d,this.startAt=g,this.endAt=M,this.dt=null}}function wu(r,e=null,t=[],s=[],a=null,d=null,g=null){return new dm(r,e,t,s,a,d,g)}function dl(r){const e=Rn(r);if(null===e.dt){let t=e.path.canonicalString();null!==e.collectionGroup&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(s=>jr(s)).join(","),t+="|ob:",t+=e.orderBy.map(s=>{return(a=s).field.canonicalString()+a.dir;var a}).join(","),Zt(e.limit)||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(s=>el(s)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(s=>el(s)).join(",")),e.dt=t}return e.dt}function hl(r,e){if(r.limit!==e.limit||r.orderBy.length!==e.orderBy.length)return!1;for(let t=0;t<r.orderBy.length;t++)if(!J(r.orderBy[t],e.orderBy[t]))return!1;if(r.filters.length!==e.filters.length)return!1;for(let t=0;t<r.filters.length;t++)if(!zr(r.filters[t],e.filters[t]))return!1;return r.collectionGroup===e.collectionGroup&&!!r.path.isEqual(e.path)&&!!T(r.startAt,e.startAt)&&T(r.endAt,e.endAt)}function Fc(r){return jn.isDocumentKey(r.path)&&null===r.collectionGroup&&0===r.filters.length}function fl(r,e){return r.filters.filter(t=>t instanceof tt&&t.field.isEqual(e))}function ad(r,e,t){let s=Il,a=!0;for(const d of fl(r,e)){let g=Il,M=!0;switch(d.op){case"<":case"<=":g=Sl(d.value);break;case"==":case"in":case">=":g=d.value;break;case">":g=d.value,M=!1;break;case"!=":case"not-in":g=Il}cl({value:s,inclusive:a},{value:g,inclusive:M})<0&&(s=g,a=M)}if(null!==t)for(let d=0;d<r.orderBy.length;++d)if(r.orderBy[d].field.isEqual(e)){const g=t.position[d];cl({value:s,inclusive:a},{value:g,inclusive:t.inclusive})<0&&(s=g,a=t.inclusive);break}return{value:s,inclusive:a}}function th(r,e,t){let s=ya,a=!0;for(const d of fl(r,e)){let g=ya,M=!0;switch(d.op){case">=":case">":g=kc(d.value),M=!1;break;case"==":case"in":case"<=":g=d.value;break;case"<":g=d.value,M=!1;break;case"!=":case"not-in":g=ya}vu({value:s,inclusive:a},{value:g,inclusive:M})>0&&(s=g,a=M)}if(null!==t)for(let d=0;d<r.orderBy.length;++d)if(r.orderBy[d].field.isEqual(e)){const g=t.position[d];vu({value:s,inclusive:a},{value:g,inclusive:t.inclusive})>0&&(s=g,a=t.inclusive);break}return{value:s,inclusive:a}}class Ml{constructor(e,t=null,s=[],a=[],d=null,g="F",M=null,H=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=s,this.filters=a,this.limit=d,this.limitType=g,this.startAt=M,this.endAt=H,this.wt=null,this._t=null}}function ld(r,e,t,s,a,d,g,M){return new Ml(r,e,t,s,a,d,g,M)}function Lc(r){return new Ml(r)}function nh(r){return 0===r.filters.length&&null===r.limit&&null==r.startAt&&null==r.endAt&&(0===r.explicitOrderBy.length||1===r.explicitOrderBy.length&&r.explicitOrderBy[0].field.isKeyField())}function rh(r){return r.explicitOrderBy.length>0?r.explicitOrderBy[0].field:null}function ih(r){for(const e of r.filters){const t=e.getFirstInequalityField();if(null!==t)return t}return null}function Rl(r){return null!==r.collectionGroup}function mc(r){const e=Rn(r);if(null===e.wt){e.wt=[];const t=ih(e),s=rh(e);if(null!==t&&null===s)t.isKeyField()||e.wt.push(new F(t)),e.wt.push(new F(Vr.keyField(),"asc"));else{let a=!1;for(const d of e.explicitOrderBy)e.wt.push(d),d.field.isKeyField()&&(a=!0);if(!a){const d=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.wt.push(new F(Vr.keyField(),d))}}}return e.wt}function Go(r){const e=Rn(r);if(!e._t)if("F"===e.limitType)e._t=wu(e.path,e.collectionGroup,mc(e),e.filters,e.limit,e.startAt,e.endAt);else{const t=[];for(const d of mc(e))t.push(new F(d.field,"desc"===d.dir?"asc":"desc"));const s=e.endAt?new ul(e.endAt.position,e.endAt.inclusive):null,a=e.startAt?new ul(e.startAt.position,e.startAt.inclusive):null;e._t=wu(e.path,e.collectionGroup,t,e.filters,e.limit,s,a)}return e._t}function yc(r,e){e.getFirstInequalityField(),ih(r);const t=r.filters.concat([e]);return new Ml(r.path,r.collectionGroup,r.explicitOrderBy.slice(),t,r.limit,r.limitType,r.startAt,r.endAt)}function Cu(r,e,t){return new Ml(r.path,r.collectionGroup,r.explicitOrderBy.slice(),r.filters.slice(),e,t,r.startAt,r.endAt)}function Ol(r,e){return hl(Go(r),Go(e))&&r.limitType===e.limitType}function gf(r){return`${dl(Go(r))}|lt:${r.limitType}`}function sh(r){return`Query(target=${function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map(s=>Ps(s)).join(", ")}]`),Zt(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map(s=>{return`${(a=s).field.canonicalString()} (${a.dir})`;var a}).join(", ")}]`),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(s=>el(s)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(s=>el(s)).join(",")),`Target(${t})`}(Go(r))}; limitType=${r.limitType})`}function Zl(r,e){return e.isFoundDocument()&&function(t,s){const a=s.key.path;return null!==t.collectionGroup?s.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(a):jn.isDocumentKey(t.path)?t.path.isEqual(a):t.path.isImmediateParentOf(a)}(r,e)&&function(t,s){for(const a of mc(t))if(!a.field.isKeyField()&&null===s.data.field(a.field))return!1;return!0}(r,e)&&function(t,s){for(const a of t.filters)if(!a.matches(s))return!1;return!0}(r,e)&&(s=e,!((t=r).startAt&&!function(a,d,g){const M=od(a,d,g);return a.inclusive?M<=0:M<0}(t.startAt,mc(t),s)||t.endAt&&!function(a,d,g){const M=od(a,d,g);return a.inclusive?M>=0:M>0}(t.endAt,mc(t),s)));var t,s}function oh(r){return r.collectionGroup||(r.path.length%2==1?r.path.lastSegment():r.path.get(r.path.length-2))}function ql(r){return(e,t)=>{let s=!1;for(const a of mc(r)){const d=cd(a,e,t);if(0!==d)return d;s=s||a.field.isKeyField()}return 0}}function cd(r,e,t){const s=r.field.isKeyField()?jn.comparator(e.key,t.key):function(a,d,g){const M=d.data.field(a),H=g.data.field(a);return null!==M&&null!==H?aa(M,H):kn()}(r.field,e,t);switch(r.dir){case"asc":return s;
1case"desc":return-1*s;default:return kn()}}class pl{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),s=this.inner[t];if(void 0!==s)for(const[a,d]of s)if(this.equalsFn(a,e))return d}has(e){return void 0!==this.get(e)}set(e,t){const s=this.mapKeyFn(e),a=this.inner[s];if(void 0===a)return this.inner[s]=[[e,t]],void this.innerSize++;for(let d=0;d<a.length;d++)if(this.equalsFn(a[d][0],e))return void(a[d]=[e,t]);a.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),s=this.inner[t];if(void 0===s)return!1;for(let a=0;a<s.length;a++)if(this.equalsFn(s[a][0],e))return 1===s.length?delete this.inner[t]:s.splice(a,1),this.innerSize--,!0;return!1}forEach(e){Oo(this.inner,(t,s)=>{for(const[a,d]of s)e(a,d)})}isEmpty(){return Qs(this.inner)}size(){return this.innerSize}}const Pp=new mi(jn.comparator);function xa(){return Pp}const Iu=new mi(jn.comparator);function Du(...r){let e=Iu;for(const t of r)e=e.insert(t.key,t);return e}function ud(r){let e=Iu;return r.forEach((t,s)=>e=e.insert(t,s.overlayedDocument)),e}function ka(){return _c()}function ah(){return _c()}function _c(){return new pl(r=>r.toString(),(r,e)=>r.isEqual(e))}const dd=new mi(jn.comparator),Vc=new Ii(jn.comparator);function qr(...r){let e=Vc;for(const t of r)e=e.add(t);return e}const mf=new Ii(Jn);function Yl(){return mf}function hd(r,e){if(r.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Fn(e)?"-0":e}}function fd(r){return{integerValue:""+r}}function Uc(r,e){return Qn(e)?fd(e):hd(r,e)}class Tu{constructor(){this._=void 0}}function yf(r,e,t){return r instanceof jc?function(s,a){const d={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:s.seconds,nanos:s.nanoseconds}}}};return a&&Oc(a)&&(a=fc(a)),a&&(d.fields.__previous_value__=a),{mapValue:d}}(t,e):r instanceof Za?lh(r,e):r instanceof tl?pd(r,e):function(s,a){const d=_f(s,a),g=vf(d)+vf(s.gt);return sd(d)&&sd(s.gt)?fd(g):hd(s.serializer,g)}(r,e)}function xp(r,e,t){return r instanceof Za?lh(r,e):r instanceof tl?pd(r,e):t}function _f(r,e){return r instanceof nl?sd(t=e)||(s=t)&&"doubleValue"in s?e:{integerValue:0}:null;var s,t}class jc extends Tu{}class Za extends Tu{constructor(e){super(),this.elements=e}}function lh(r,e){const t=Ef(e);for(const s of r.elements)t.some(a=>Ko(a,s))||t.push(s);return{arrayValue:{values:t}}}class tl extends Tu{constructor(e){super(),this.elements=e}}function pd(r,e){let t=Ef(e);for(const s of r.elements)t=t.filter(a=>!Ko(a,s));return{arrayValue:{values:t}}}class nl extends Tu{constructor(e,t){super(),this.serializer=e,this.gt=t}}function vf(r){return cs(r.integerValue||r.doubleValue)}function Ef(r){return zl(r)&&r.arrayValue.values?r.arrayValue.values.slice():[]}class Su{constructor(e,t){this.field=e,this.transform=t}}class Au{constructor(e,t){this.version=e,this.transformResults=t}}class bs{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new bs}static exists(e){return new bs(void 0,e)}static updateTime(e){return new bs(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Mu(r,e){return void 0!==r.updateTime?e.isFoundDocument()&&e.version.isEqual(r.updateTime):void 0===r.exists||r.exists===e.isFoundDocument()}class Pl{}function md(r,e){if(!r.hasLocalMutations||e&&0===e.fields.length)return null;if(null===e)return r.isNoDocument()?new eo(r.key,bs.none()):new Xl(r.key,r.data,bs.none());{const t=r.data,s=go.empty();let a=new Ii(Vr.comparator);for(let d of e.fields)if(!a.has(d)){let g=t.field(d);null===g&&d.length>1&&(d=d.popLast(),g=t.field(d)),null===g?s.delete(d):s.set(d,g),a=a.add(d)}return new rl(r.key,s,new Uo(a.toArray()),bs.none())}}function Ea(r,e,t){r instanceof Xl?function(s,a,d){const g=s.value.clone(),M=uh(s.fieldTransforms,a,d.transformResults);g.setAll(M),a.convertToFoundDocument(d.version,g).setHasCommittedMutations()}(r,e,t):r instanceof rl?function(s,a,d){if(!Mu(s.precondition,a))return void a.convertToUnknownDocument(d.version);const g=uh(s.fieldTransforms,a,d.transformResults),M=a.data;M.setAll(bf(s)),M.setAll(g),a.convertToFoundDocument(d.version,M).setHasCommittedMutations()}(r,e,t):e.convertToNoDocument(t.version).setHasCommittedMutations()}function gl(r,e,t,s){return r instanceof Xl?function(a,d,g,M){if(!Mu(a.precondition,d))return g;const H=a.value.clone(),ee=wf(a.fieldTransforms,M,d);return H.setAll(ee),d.convertToFoundDocument(d.version,H).setHasLocalMutations(),null}(r,e,t,s):r instanceof rl?function(a,d,g,M){if(!Mu(a.precondition,d))return g;const H=wf(a.fieldTransforms,M,d),ee=d.data;return ee.setAll(bf(a)),ee.setAll(H),d.convertToFoundDocument(d.version,ee).setHasLocalMutations(),null===g?null:g.unionWith(a.fieldMask.fields).unionWith(a.fieldTransforms.map(De=>De.field))}(r,e,t,s):(g=t,Mu(r.precondition,d=e)?(d.convertToNoDocument(d.version).setHasLocalMutations(),null):g);var d,g}function ch(r,e){let t=null;for(const s of r.fieldTransforms){const a=e.data.field(s.field),d=_f(s.transform,a||null);null!=d&&(null===t&&(t=go.empty()),t.set(s.field,d))}return t||null}function Ql(r,e){return r.type===e.type&&!!r.key.isEqual(e.key)&&!!r.precondition.isEqual(e.precondition)&&(s=e.fieldTransforms,!!(void 0===(t=r.fieldTransforms)&&void 0===s||t&&s&&na(t,s,(a,d)=>function gd(r,e){return r.field.isEqual(e.field)&&(s=e.transform,(t=r.transform)instanceof Za&&s instanceof Za||t instanceof tl&&s instanceof tl?na(t.elements,s.elements,Ko):t instanceof nl&&s instanceof nl?Ko(t.gt,s.gt):t instanceof jc&&s instanceof jc);var t,s}(a,d))))&&(0===r.type?r.value.isEqual(e.value):1!==r.type||r.data.isEqual(e.data)&&r.fieldMask.isEqual(e.fieldMask));var t,s}class Xl extends Pl{constructor(e,t,s,a=[]){super(),this.key=e,this.value=t,this.prec
1ondition=s,this.fieldTransforms=a,this.type=0}getFieldMask(){return null}}class rl extends Pl{constructor(e,t,s,a,d=[]){super(),this.key=e,this.data=t,this.fieldMask=s,this.precondition=a,this.fieldTransforms=d,this.type=1}getFieldMask(){return this.fieldMask}}function bf(r){const e=new Map;return r.fieldMask.fields.forEach(t=>{if(!t.isEmpty()){const s=r.data.field(t);e.set(t,s)}}),e}function uh(r,e,t){const s=new Map;Xn(r.length===t.length);for(let a=0;a<t.length;a++){const d=r[a],g=d.transform,M=e.data.field(d.field);s.set(d.field,xp(g,M,t[a]))}return s}function wf(r,e,t){const s=new Map;for(const a of r){const d=a.transform,g=t.data.field(a.field);s.set(a.field,yf(d,g,e))}return s}class eo extends Pl{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class xl extends Pl{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class yd{constructor(e,t,s,a){this.batchId=e,this.localWriteTime=t,this.baseMutations=s,this.mutations=a}applyToRemoteDocument(e,t){const s=t.mutationResults;for(let a=0;a<this.mutations.length;a++){const d=this.mutations[a];d.key.isEqual(e.key)&&Ea(d,e,s[a])}}applyToLocalView(e,t){for(const s of this.baseMutations)s.key.isEqual(e.key)&&(t=gl(s,e,t,this.localWriteTime));for(const s of this.mutations)s.key.isEqual(e.key)&&(t=gl(s,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const s=ah();return this.mutations.forEach(a=>{const d=e.get(a.key),g=d.overlayedDocument;let M=this.applyToLocalView(g,d.mutatedFields);M=t.has(a.key)?null:M;const H=md(g,M);null!==H&&s.set(a.key,H),g.isValidDocument()||g.convertToNoDocument(cr.min())}),s}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),qr())}isEqual(e){return this.batchId===e.batchId&&na(this.mutations,e.mutations,(t,s)=>Ql(t,s))&&na(this.baseMutations,e.baseMutations,(t,s)=>Ql(t,s))}}class dh{constructor(e,t,s,a){this.batch=e,this.commitVersion=t,this.mutationResults=s,this.docVersions=a}static from(e,t,s){Xn(e.mutations.length===s.length);let a=dd;const d=e.mutations;for(let g=0;g<d.length;g++)a=a.insert(d[g].key,s[g].version);return new dh(e,t,s,a)}}class hh{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n largestBatchId: ${this.largestBatchId},\n mutation: ${this.mutation.toString()}\n }`}}class ba{constructor(e,t){this.count=e,this.unchangedNames=t}}var $s,Ei;function If(r){switch(r){default:return kn();case Ht.CANCELLED:case Ht.UNKNOWN:case Ht.DEADLINE_EXCEEDED:case Ht.RESOURCE_EXHAUSTED:case Ht.INTERNAL:case Ht.UNAVAILABLE:case Ht.UNAUTHENTICATED:return!1;case Ht.INVALID_ARGUMENT:case Ht.NOT_FOUND:case Ht.ALREADY_EXISTS:case Ht.PERMISSION_DENIED:case Ht.FAILED_PRECONDITION:case Ht.ABORTED:case Ht.OUT_OF_RANGE:case Ht.UNIMPLEMENTED:case Ht.DATA_LOSS:return!0}}function ml(r){if(void 0===r)return or("GRPC error has no .code"),Ht.UNKNOWN;switch(r){case $s.OK:return Ht.OK;case $s.CANCELLED:return Ht.CANCELLED;case $s.UNKNOWN:return Ht.UNKNOWN;case $s.DEADLINE_EXCEEDED:return Ht.DEADLINE_EXCEEDED;case $s.RESOURCE_EXHAUSTED:return Ht.RESOURCE_EXHAUSTED;case $s.INTERNAL:return Ht.INTERNAL;case $s.UNAVAILABLE:return Ht.UNAVAILABLE;case $s.UNAUTHENTICATED:return Ht.UNAUTHENTICATED;case $s.INVALID_ARGUMENT:return Ht.INVALID_ARGUMENT;case $s.NOT_FOUND:return Ht.NOT_FOUND;case $s.ALREADY_EXISTS:return Ht.ALREADY_EXISTS;case $s.PERMISSION_DENIED:return Ht.PERMISSION_DENIED;case $s.FAILED_PRECONDITION:return Ht.FAILED_PRECONDITION;case $s.ABORTED:return Ht.ABORTED;case $s.OUT_OF_RANGE:return Ht.OUT_OF_RANGE;case $s.UNIMPLEMENTED:return Ht.UNIMPLEMENTED;case $s.DATA_LOSS:return Ht.DATA_LOSS;default:return kn()}}(Ei=$s||($s={}))[Ei.OK=0]="OK",Ei[Ei.CANCELLED=1]="CANCELLED",Ei[Ei.UNKNOWN=2]="UNKNOWN",Ei[Ei.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ei[Ei.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ei[Ei.NOT_FOUND=5]="NOT_FOUND",Ei[Ei.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ei[Ei.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ei[Ei.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ei[Ei.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ei[Ei.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ei[Ei.ABORTED=10]="ABORTED",Ei[Ei.OUT_OF_RANGE=11]="OUT_OF_RANGE",
1Ei[Ei.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ei[Ei.INTERNAL=13]="INTERNAL",Ei[Ei.UNAVAILABLE=14]="UNAVAILABLE",Ei[Ei.DATA_LOSS=15]="DATA_LOSS";class vc{constructor(){this.onExistenceFilterMismatchCallbacks=new Map}static get instance(){return Ru}static getOrCreateInstance(){return null===Ru&&(Ru=new vc),Ru}onExistenceFilterMismatch(e){const t=Symbol();return this.onExistenceFilterMismatchCallbacks.set(t,e),()=>this.onExistenceFilterMismatchCallbacks.delete(t)}notifyOnExistenceFilterMismatch(e){this.onExistenceFilterMismatchCallbacks.forEach(t=>t(e))}}let Ru=null;function Bc(){return new TextEncoder}const kl=new Kt([4294967295,4294967295],0);function Jl(r){const e=Bc().encode(r),t=new Ye;return t.update(e),new Uint8Array(t.digest())}function fh(r){const e=new DataView(r.buffer),t=e.getUint32(0,!0),s=e.getUint32(4,!0),a=e.getUint32(8,!0),d=e.getUint32(12,!0);return[new Kt([t,s],0),new Kt([a,d],0)]}class _d{constructor(e,t,s){if(this.bitmap=e,this.padding=t,this.hashCount=s,t<0||t>=8)throw new $c(`Invalid padding: ${t}`);if(s<0)throw new $c(`Invalid hash count: ${s}`);if(e.length>0&&0===this.hashCount)throw new $c(`Invalid hash count: ${s}`);if(0===e.length&&0!==t)throw new $c(`Invalid padding when bitmap length is 0: ${t}`);this.It=8*e.length-t,this.Tt=Kt.fromNumber(this.It)}Et(e,t,s){let a=e.add(t.multiply(Kt.fromNumber(s)));return 1===a.compare(kl)&&(a=new Kt([a.getBits(0),a.getBits(1)],0)),a.modulo(this.Tt).toNumber()}At(e){return 0!=(this.bitmap[Math.floor(e/8)]&1<<e%8)}vt(e){if(0===this.It)return!1;const t=Jl(e),[s,a]=fh(t);for(let d=0;d<this.hashCount;d++){const g=this.Et(s,a,d);if(!this.At(g))return!1}return!0}static create(e,t,s){const a=e%8==0?0:8-e%8,d=new Uint8Array(Math.ceil(e/8)),g=new _d(d,a,t);return s.forEach(M=>g.insert(M)),g}insert(e){if(0===this.It)return;const t=Jl(e),[s,a]=fh(t);for(let d=0;d<this.hashCount;d++){const g=this.Et(s,a,d);this.Rt(g)}}Rt(e){const t=Math.floor(e/8);this.bitmap[t]|=1<<e%8}}class $c extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class vd{constructor(e,t,s,a,d){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=s,this.documentUpdates=a,this.resolvedLimboDocuments=d}static createSynthesizedRemoteEventForCurrentChange(e,t,s){const a=new Map;return a.set(e,v.createSynthesizedTargetChangeForCurrentChange(e,t,s)),new vd(cr.min(),a,new mi(Jn),xa(),qr())}}class v{constructor(e,t,s,a,d){this.resumeToken=e,this.current=t,this.addedDocuments=s,this.modifiedDocuments=a,this.removedDocuments=d}static createSynthesizedTargetChangeForCurrentChange(e,t,s){return new v(s,t,qr(),qr(),qr())}}class h{constructor(e,t,s,a){this.Pt=e,this.removedTargetIds=t,this.key=s,this.bt=a}}class f{constructor(e,t){this.targetId=e,this.Vt=t}}class I{constructor(e,t,s=Js.EMPTY_BYTE_STRING,a=null){this.state=e,this.targetIds=t,this.resumeToken=s,this.cause=a}}class G{constructor(){this.St=0,this.Dt=Vt(),this.Ct=Js.EMPTY_BYTE_STRING,this.xt=!1,this.Nt=!0}get current(){return this.xt}get resumeToken(){return this.Ct}get kt(){return 0!==this.St}get Mt(){return this.Nt}$t(e){e.approximateByteSize()>0&&(this.Nt=!0,this.Ct=e)}Ot(){let e=qr(),t=qr(),s=qr();return this.Dt.forEach((a,d)=>{switch(d){case 0:e=e.add(a);break;case 2:t=t.add(a);break;case 1:s=s.add(a);break;default:kn()}}),new v(this.Ct,this.xt,e,t,s)}Ft(){this.Nt=!1,this.Dt=Vt()}Bt(e,t){this.Nt=!0,this.Dt=this.Dt.insert(e,t)}Lt(e){this.Nt=!0,this.Dt=this.Dt.remove(e)}qt(){this.St+=1}Ut(){this.St-=1}Kt(){this.Nt=!0,this.xt=!0}}class ge{constructor(e){this.Gt=e,this.Qt=new Map,this.jt=xa(),this.zt=at(),this.Wt=new mi(Jn)}Ht(e){for(const t of e.Pt)e.bt&&e.bt.isFoundDocument()?this.Jt(t,e.bt):this.Yt(t,e.key,e.bt);for(const t of e.removedTargetIds)this.Yt(t,e.key,e.bt)}Xt(e){this.forEachTarget(e,t=>{const s=this.Zt(t);switch(e.state){case 0:this.te(t)&&s.$t(e.resumeToken);break;case 1:s.Ut(),s.kt||s.Ft(),s.$t(e.resumeToken);break;case 2:s.Ut(),s.kt||this.removeTarget(t);break;case 3:this.te(t)&&(s.Kt(),s.$t(e.resumeToken));break;case 4:this.te(t)&&(this.ee(t),s.$t(e.resumeToken));break;default:kn()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Qt.forEach((s,a)=>{this.te(a)&&t(a)})}ne(e){var t;const s=e.targetId,a=e.Vt.count,d=this.se(s);if(d){const g=d.target;if(Fc(g))if(0===a){const M=new jn(g.path);this.Yt(s,M,us.newNoDocument(M,cr.min()))}else Xn(1===a);else{const M=this.ie(s);if(M!==a){const H=this.re(e,M);
10!==H&&(this.ee(s),this.Wt=this.Wt.insert(s,2===H?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch")),null===(t=vc.instance)||void 0===t||t.notifyOnExistenceFilterMismatch(function(ee,De,st){var Bt,un,Nn,er,lr,si;const Oi={localCacheCount:De,existenceFilterCount:st.count},yi=st.unchangedNames;return yi&&(Oi.bloomFilter={applied:0===ee,hashCount:null!==(Bt=yi?.hashCount)&&void 0!==Bt?Bt:0,bitmapLength:null!==(er=null===(Nn=null===(un=yi?.bits)||void 0===un?void 0:un.bitmap)||void 0===Nn?void 0:Nn.length)&&void 0!==er?er:0,padding:null!==(si=null===(lr=yi?.bits)||void 0===lr?void 0:lr.padding)&&void 0!==si?si:0}),Oi}(H,M,e.Vt))}}}}re(e,t){const{unchangedNames:s,count:a}=e.Vt;if(!s||!s.bits)return 1;const{bits:{bitmap:d="",padding:g=0},hashCount:M=0}=s;let H,ee;try{H=ma(d).toUint8Array()}catch(De){if(De instanceof hc)return gi("Decoding the base64 bloom filter in existence filter failed ("+De.message+"); ignoring the bloom filter and falling back to full re-query."),1;throw De}try{ee=new _d(H,g,M)}catch(De){return gi(De instanceof $c?"BloomFilter error: ":"Applying bloom filter failed: ",De),1}return 0===ee.It?1:a!==t-this.oe(e.targetId,ee)?2:0}oe(e,t){const s=this.Gt.getRemoteKeysForTarget(e);let a=0;return s.forEach(d=>{const g=this.Gt.ue(),M=`projects/${g.projectId}/databases/${g.database}/documents/${d.path.canonicalString()}`;t.vt(M)||(this.Yt(e,d,null),a++)}),a}ce(e){const t=new Map;this.Qt.forEach((d,g)=>{const M=this.se(g);if(M){if(d.current&&Fc(M.target)){const H=new jn(M.target.path);null!==this.jt.get(H)||this.ae(g,H)||this.Yt(g,H,us.newNoDocument(H,e))}d.Mt&&(t.set(g,d.Ot()),d.Ft())}});let s=qr();this.zt.forEach((d,g)=>{let M=!0;g.forEachWhile(H=>{const ee=this.se(H);return!ee||"TargetPurposeLimboResolution"===ee.purpose||(M=!1,!1)}),M&&(s=s.add(d))}),this.jt.forEach((d,g)=>g.setReadTime(e));const a=new vd(e,t,this.Wt,this.jt,s);return this.jt=xa(),this.zt=at(),this.Wt=new mi(Jn),a}Jt(e,t){if(!this.te(e))return;const s=this.ae(e,t.key)?2:0;this.Zt(e).Bt(t.key,s),this.jt=this.jt.insert(t.key,t),this.zt=this.zt.insert(t.key,this.he(t.key).add(e))}Yt(e,t,s){if(!this.te(e))return;const a=this.Zt(e);this.ae(e,t)?a.Bt(t,1):a.Lt(t),this.zt=this.zt.insert(t,this.he(t).delete(e)),s&&(this.jt=this.jt.insert(t,s))}removeTarget(e){this.Qt.delete(e)}ie(e){const t=this.Zt(e).Ot();return this.Gt.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}qt(e){this.Zt(e).qt()}Zt(e){let t=this.Qt.get(e);return t||(t=new G,this.Qt.set(e,t)),t}he(e){let t=this.zt.get(e);return t||(t=new Ii(Jn),this.zt=this.zt.insert(e,t)),t}te(e){const t=null!==this.se(e);return t||on("WatchChangeAggregator","Detected inactive target",e),t}se(e){const t=this.Qt.get(e);return t&&t.kt?null:this.Gt.le(e)}ee(e){this.Qt.set(e,new G),this.Gt.getRemoteKeysForTarget(e).forEach(t=>{this.Yt(e,t,null)})}ae(e,t){return this.Gt.getRemoteKeysForTarget(e).has(t)}}function at(){return new mi(jn.comparator)}function Vt(){return new mi(jn.comparator)}const Dn={asc:"ASCENDING",desc:"DESCENDING"},zn={"<":"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"},ar={and:"AND",or:"OR"};class dr{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function ts(r,e){return r.useProto3Json||Zt(e)?e:{value:e}}function jo(r,e){return r.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function Ec(r,e){return r.useProto3Json?e.toBase64():e.toUint8Array()}function Df(r,e){return jo(r,e.toTimestamp())}function ti(r){return Xn(!!r),cr.fromTimestamp(function(e){const t=ll(e);return new ji(t.seconds,t.nanos)}(r))}function Ou(r,e){return(t=r,new Pr(["projects",t.projectId,"databases",t.database])).child("documents").child(e).canonicalString();var t}function Ed(r){const e=Pr.fromString(r);return Xn(Wc(e)),e}function Nl(r,e){return Ou(r.databaseId,e.path)}function Na(r,e){const t=Ed(e);if(t.get(1)!==r.databaseId.projectId)throw new gn(Ht.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+t.get(1)+" vs "+r.databaseId.projectId);if(t.get(3)!==r.databaseId.database)throw new gn(Ht.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+t.get(3)+" vs "+r.databaseId.database);return new jn(Tf(t))}function Pu(r,e){return Ou(r.databaseId,e)}function xu(r){const e=Ed(r);return 4===e.length?Pr.emptyPath():Tf(e)}function bc(r){return new Pr(["projects",r.databaseId.projectId,"databases",r.databaseId.database]).canonicalString()}function Tf(r){return Xn(r.length>4&&"documents"===r.get(4)),r.popFirst(5)}function ku(r,e,t){return{name:Nl(r,e),fields:t.value.mapValue.fields}}function kp(r,e,t){const s=Na(r,e.name),a=ti(e.updateTime),d=e.createTime?ti(e.createTime):cr.min(),g=new go({mapValue:{fields:e.fields}}),M=us.newFoundDocument(s,a,d,g);return t&&M.setHasCommittedMutations(),t?M.setHasCommittedMutations():M}function Nu(r,e){let t;if(e instanceof Xl)t={update:ku(r,e.key,e.value)};else if(e instanceof eo)t={delete:Nl(r,e.key)};else if(e instanceof rl)t={update:ku(r,e.key,e.data),updateMask:pm(e.fieldMask)};else{if(!(e instanceof xl))return kn();t={verify:Nl(r,e.key)}}return e.fieldTransforms.length>0&&(t.updateTransforms=e.fieldTransforms.map(s=>function(a,d){const g=d.transform;if(g instanceof jc)return{fieldPath:d.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(g instanceof Za)return{fieldPath:d.field.canonicalString(),appendMissingElements:{values:g.elements}};if(g instanceof tl)return{fieldPath:d.field.canonicalString(),removeAllFromArray:{values:g.elements}};if(g instanceof nl)return{fieldPath:d.field.canonicalString(),increment:g.gt};throw kn()}(0,s))),e.precondition.isNone||(t.currentDocument=void 0!==(a=e.precondition).updateTime?{updateTime:
1Df(r,a.updateTime)}:void 0!==a.exists?{exists:a.exists}:kn()),t;var a}function gh(r,e){const t=e.currentDocument?void 0!==(a=e.currentDocument).updateTime?bs.updateTime(ti(a.updateTime)):void 0!==a.exists?bs.exists(a.exists):bs.none():bs.none(),s=e.updateTransforms?e.updateTransforms.map(a=>function(d,g){let M=null;"setToServerValue"in g?(Xn("REQUEST_TIME"===g.setToServerValue),M=new jc):"appendMissingElements"in g?M=new Za(g.appendMissingElements.values||[]):"removeAllFromArray"in g?M=new tl(g.removeAllFromArray.values||[]):"increment"in g?M=new nl(d,g.increment):kn();const H=Vr.fromServerFormat(g.fieldPath);return new Su(H,M)}(r,a)):[];var a;if(e.update){const a=Na(r,e.update.name),d=new go({mapValue:{fields:e.update.fields}});if(e.updateMask){const g=new Uo((e.updateMask.fieldPaths||[]).map(ee=>Vr.fromServerFormat(ee)));return new rl(a,d,g,t,s)}return new Xl(a,d,t,s)}if(e.delete){const a=Na(r,e.delete);return new eo(a,t)}if(e.verify){const a=Na(r,e.verify);return new xl(a,t)}return kn()}function Np(r,e){return{documents:[Pu(r,e.path)]}}function Fp(r,e){const t={structuredQuery:{}},s=e.path;null!==e.collectionGroup?(t.parent=Pu(r,s),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(t.parent=Pu(r,s.popLast()),t.structuredQuery.from=[{collectionId:s.lastSegment()}]);const a=function(H){if(0!==H.length)return Bp(mt.create(H,"and"))}(e.filters);a&&(t.structuredQuery.where=a);const d=function(H){if(0!==H.length)return H.map(ee=>{return{field:Hc((De=ee).field),direction:Up(De.dir)};var De})}(e.orderBy);d&&(t.structuredQuery.orderBy=d);const g=ts(r,e.limit);var M,H;return null!==g&&(t.structuredQuery.limit=g),e.startAt&&(t.structuredQuery.startAt={before:(M=e.startAt).inclusive,values:M.position}),e.endAt&&(t.structuredQuery.endAt={before:!(H=e.endAt).inclusive,values:H.position}),t}function Lp(r){let e=xu(r.parent);const t=r.structuredQuery,s=t.from?t.from.length:0;let a=null;if(s>0){Xn(1===s);const De=t.from[0];De.allDescendants?a=De.collectionId:e=e.child(De.collectionId)}let d=[];t.where&&(d=function(De){const st=Vp(De);return st instanceof mt&&Bn(st)?st.getFilters():[st]}(t.where));let g=[];t.orderBy&&(g=t.orderBy.map(De=>{return new F(zc((st=De).field),function(Bt){switch(Bt){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(st.direction));var st}));let M=null;t.limit&&(M=function(De){let st;return st="object"==typeof De?De.value:De,Zt(st)?null:st}(t.limit));let H=null;var De;t.startAt&&(H=new ul((De=t.startAt).values||[],!!De.before));let ee=null;return t.endAt&&(ee=function(De){return new ul(De.values||[],!De.before)}(t.endAt)),ld(e,a,g,d,M,"F",H,ee)}function Vp(r){return void 0!==r.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=zc(e.unaryFilter.field);return tt.create(t,"==",{doubleValue:NaN});case"IS_NULL":const s=zc(e.unaryFilter.field);return tt.create(s,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const a=zc(e.unaryFilter.field);return tt.create(a,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const d=zc(e.unaryFilter.field);return tt.create(d,"!=",{nullValue:"NULL_VALUE"});default:return kn()}}(r):void 0!==r.fieldFilter?tt.create(zc((e=r).fieldFilter.field),function(t){switch(t){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 kn()}}(e.fieldFilter.op),e.fieldFilter.value):void 0!==r.compositeFilter?function(e){return mt.create(e.compositeFilter.filters.map(t=>Vp(t)),function(t){switch(t){case"AND":return"and";case"OR":return"or";default:return kn()}}(e.compositeFilter.op))}(r):kn();var e}function Up(r){return Dn[r]}function Jv(r){return zn[r]}function jp(r){return ar[r]}function Hc(r){return{fieldPath:r.canonicalString()}}function zc(r){return Vr.fromServerFormat(r.fieldPath)}function Bp(r){return r instanceof tt?function(e){if("=="===e.op){if(Ga(e.value))return{unaryFilter:{field:Hc(e.field),op:"IS_NAN"}};if(xc(e.value))return{unaryFilter:{field:Hc(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Ga(e.value))return{unaryFilter:{field:Hc(e.field),op:"IS_NOT_NA
1N"}};if(xc(e.value))return{unaryFilter:{field:Hc(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Hc(e.field),op:Jv(e.op),value:e.value}}}(r):r instanceof mt?function(e){const t=e.getFilters().map(s=>Bp(s));return 1===t.length?t[0]:{compositeFilter:{op:jp(e.op),filters:t}}}(r):kn()}function pm(r){const e=[];return r.fields.forEach(t=>e.push(t.canonicalString())),{fieldPaths:e}}function Wc(r){return r.length>=4&&"projects"===r.get(0)&&"databases"===r.get(2)}class wc{constructor(e,t,s,a,d=cr.min(),g=cr.min(),M=Js.EMPTY_BYTE_STRING,H=null){this.target=e,this.targetId=t,this.purpose=s,this.sequenceNumber=a,this.snapshotVersion=d,this.lastLimboFreeSnapshotVersion=g,this.resumeToken=M,this.expectedCount=H}withSequenceNumber(e){return new wc(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new wc(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new wc(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new wc(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class Sf{constructor(e){this.fe=e}}function gm(r,e){const t=e.key,s={prefixPath:t.getCollectionPath().popLast().toArray(),collectionGroup:t.collectionGroup,documentId:t.path.lastSegment(),readTime:bd(e.readTime),hasCommittedMutations:e.hasCommittedMutations};if(e.isFoundDocument())s.document={name:Nl(a=r.fe,(d=e).key),fields:d.data.value.mapValue.fields,updateTime:jo(a,d.version.toTimestamp()),createTime:jo(a,d.createTime.toTimestamp())};else if(e.isNoDocument())s.noDocument={path:t.path.toArray(),readTime:ec(e.version)};else{if(!e.isUnknownDocument())return kn();s.unknownDocument={path:t.path.toArray(),version:ec(e.version)}}var a,d;return s}function bd(r){const e=r.toTimestamp();return[e.seconds,e.nanoseconds]}function ec(r){const e=r.toTimestamp();return{seconds:e.seconds,nanoseconds:e.nanoseconds}}function il(r){const e=new ji(r.seconds,r.nanoseconds);return cr.fromTimestamp(e)}function Kc(r,e){const t=(e.baseMutations||[]).map(d=>gh(r.fe,d));for(let d=0;d<e.mutations.length-1;++d)d+1<e.mutations.length&&void 0!==e.mutations[d+1].transform&&(e.mutations[d].updateTransforms=e.mutations[d+1].transform.fieldTransforms,e.mutations.splice(d+1,1),++d);const s=e.mutations.map(d=>gh(r.fe,d)),a=ji.fromMillis(e.localWriteTimeMs);return new yd(e.batchId,a,t,s)}function Fu(r){const e=il(r.readTime),t=void 0!==r.lastLimboFreeSnapshotVersion?il(r.lastLimboFreeSnapshotVersion):cr.min();let s;var a;return void 0!==r.query.documents?(Xn(1===(a=r.query).documents.length),s=Go(Lc(xu(a.documents[0])))):s=Go(Lp(r.query)),new wc(s,r.targetId,"TargetPurposeListen",r.lastListenSequenceNumber,e,t,Js.fromBase64String(r.resumeToken))}function mm(r,e){const t=ec(e.snapshotVersion),s=ec(e.lastLimboFreeSnapshotVersion);let a;a=Fc(e.target)?Np(r.fe,e.target):Fp(r.fe,e.target);const d=e.resumeToken.toBase64();return{targetId:e.targetId,canonicalId:dl(e.target),readTime:t,resumeToken:d,lastListenSequenceNumber:e.sequenceNumber,lastLimboFreeSnapshotVersion:s,query:a}}function $p(r){const e=Lp({parent:r.parent,structuredQuery:r.structuredQuery});return"LAST"===r.limitType?Cu(e,e.limit,"L"):e}function Mf(r,e){return new hh(e.largestBatchId,gh(r.fe,e.overlayMutation))}function Lu(r,e){const t=e.path.lastSegment();return[r,Ar(e.path.popLast()),t]}function ym(r,e,t,s){return{indexId:r,uid:e.uid||"",sequenceNumber:t,readTime:ec(s.readTime),documentKey:Ar(s.documentKey.path),largestBatchId:s.largestBatchId}}class Zy{getBundleMetadata(e,t){return _m(e).get(t).next(s=>{if(s)return{id:(a=s).bundleId,createTime:il(a.createTime),version:a.version};var a})}saveBundleMetadata(e,t){return _m(e).put({bundleId:(s=t).id,createTime:ec(ti(s.createTime)),version:s.version});var s}getNamedQuery(e,t){return Rf(e).get(t).next(s=>{if(s)return{name:(a=s).name,query:$p(a.bundledQuery),readTime:il(a.readTime)};var a})}saveNamedQuery(e,t){return Rf(e).put({name:(s=t).name,readTime:ec(ti(s.readTime)),bundledQuery:s.bundledQuery});var s}}function _m(r){return Kr(r,"bundles")}function Rf(r){return Kr(r,"namedQueries")}
1class mh{constructor(e,t){this.serializer=e,this.userId=t}static de(e,t){return new mh(e,t.uid||"")}getOverlay(e,t){return Gc(e).get(Lu(this.userId,t)).next(s=>s?Mf(this.serializer,s):null)}getOverlays(e,t){const s=ka();return Lt.forEach(t,a=>this.getOverlay(e,a).next(d=>{null!==d&&s.set(a,d)})).next(()=>s)}saveOverlays(e,t,s){const a=[];return s.forEach((d,g)=>{const M=new hh(t,g);a.push(this.we(e,M))}),Lt.waitFor(a)}removeOverlaysForBatchId(e,t,s){const a=new Set;t.forEach(g=>a.add(Ar(g.getCollectionPath())));const d=[];return a.forEach(g=>{const M=IDBKeyRange.bound([this.userId,g,s],[this.userId,g,s+1],!1,!0);d.push(Gc(e).J("collectionPathOverlayIndex",M))}),Lt.waitFor(d)}getOverlaysForCollection(e,t,s){const a=ka(),d=Ar(t),g=IDBKeyRange.bound([this.userId,d,s],[this.userId,d,Number.POSITIVE_INFINITY],!0);return Gc(e).j("collectionPathOverlayIndex",g).next(M=>{for(const H of M){const ee=Mf(this.serializer,H);a.set(ee.getKey(),ee)}return a})}getOverlaysForCollectionGroup(e,t,s,a){const d=ka();let g;const M=IDBKeyRange.bound([this.userId,t,s],[this.userId,t,Number.POSITIVE_INFINITY],!0);return Gc(e).X({index:"collectionGroupOverlayIndex",range:M},(H,ee,De)=>{const st=Mf(this.serializer,ee);d.size()<a||st.largestBatchId===g?(d.set(st.getKey(),st),g=st.largestBatchId):De.done()}).next(()=>d)}we(e,t){return Gc(e).put(function(s,a,d){const[g,M,H]=Lu(a,d.mutation.key);return{userId:a,collectionPath:M,documentId:H,collectionGroup:d.mutation.key.getCollectionGroup(),largestBatchId:d.largestBatchId,overlayMutation:Nu(s.fe,d.mutation)}}(this.serializer,this.userId,t))}}function Gc(r){return Kr(r,"documentOverlays")}class Vu{constructor(){}_e(e,t){this.me(e,t),t.ge()}me(e,t){if("nullValue"in e)this.ye(t,5);else if("booleanValue"in e)this.ye(t,10),t.pe(e.booleanValue?1:0);else if("integerValue"in e)this.ye(t,15),t.pe(cs(e.integerValue));else if("doubleValue"in e){const s=cs(e.doubleValue);isNaN(s)?this.ye(t,13):(this.ye(t,15),Fn(s)?t.pe(0):t.pe(s))}else if("timestampValue"in e){const s=e.timestampValue;this.ye(t,20),"string"==typeof s?t.Ie(s):(t.Ie(`${s.seconds||""}`),t.pe(s.nanos||0))}else if("stringValue"in e)this.Te(e.stringValue,t),this.Ee(t);else if("bytesValue"in e)this.ye(t,30),t.Ae(ma(e.bytesValue)),this.Ee(t);else if("referenceValue"in e)this.ve(e.referenceValue,t);else if("geoPointValue"in e){const s=e.geoPointValue;this.ye(t,45),t.pe(s.latitude||0),t.pe(s.longitude||0)}else"mapValue"in e?_a(e)?this.ye(t,Number.MAX_SAFE_INTEGER):(this.Re(e.mapValue,t),this.Ee(t)):"arrayValue"in e?(this.Pe(e.arrayValue,t),this.Ee(t)):kn()}Te(e,t){this.ye(t,25),this.be(e,t)}be(e,t){t.Ie(e)}Re(e,t){const s=e.fields||{};this.ye(t,55);for(const a of Object.keys(s))this.Te(a,t),this.me(s[a],t)}Pe(e,t){const s=e.values||[];this.ye(t,50);for(const a of s)this.me(a,t)}ve(e,t){this.ye(t,37),jn.fromName(e).path.forEach(s=>{this.ye(t,60),this.be(s,t)})}ye(e,t){e.pe(t)}Ee(e){e.pe(2)}}function vm(r){if(0===r)return 8;let e=0;return!(r>>4)&&(e+=4,r<<=4),!(r>>6)&&(e+=2,r<<=2),!(r>>7)&&(e+=1),e}function qy(r){const e=64-function(t){let s=0;for(let a=0;a<8;++a){const d=vm(255&t[a]);if(s+=d,8!==d)break}return s}(r);return Math.ceil(e/8)}Vu.Ve=new Vu;class Yy{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Se(e){const t=e[Symbol.iterator]();let s=t.next();for(;!s.done;)this.De(s.value),s=t.next();this.Ce()}xe(e){const t=e[Symbol.iterator]();let s=t.next();for(;!s.done;)this.Ne(s.value),s=t.next();this.ke()}Me(e){for(const t of e){const s=t.charCodeAt(0);if(s<128)this.De(s);else if(s<2048)this.De(960|s>>>6),this.De(128|63&s);else if(t<"\ud800"||"\udbff"<t)this.De(480|s>>>12),this.De(128|63&s>>>6),this.De(128|63&s);else{const a=t.codePointAt(0);this.De(240|a>>>18),this.De(128|63&a>>>12),this.De(128|63&a>>>6),this.De(128|63&a)}}this.Ce()}$e(e){for(const t of e){const s=t.charCodeAt(0);if(s<128)this.Ne(s);else if(s<2048)this.Ne(960|s>>>6),this.Ne(128|63&s);else if(t<"\ud800"||"\udbff"<t)this.Ne(480|s>>>12),this.Ne(128|63&s>>>6),this.Ne(128|63&s);else{const a=t.codePointAt(0);this.Ne(240|a>>>18),this.Ne(128|63&a>>>12),this.Ne(128|63&a>>>6),this.Ne(128|63&a)}}this.ke()}Oe(e){const t=this.Fe(e),s=qy(t);this.Be(1+s),this.buffer[this.position++]=255&s;for(let a=t.length-s;a<t.length;++a)this.buffer[this.position++]=255&t[a]}Le(e){const t=this.Fe(e),s=qy(t);this.Be(1+s),this.buffer[this.position++]=~(255&s);for(let a=t.length-s;a<t.length;++a)this.buffer[this.position++]=~(255&t[a])}qe(){this.Ue(255),this.Ue(255)}Ke(){this.Ge(255),this.Ge(255)}reset(){this.position=0}seed(e){this.Be(e.length),this.buffer.set(e,this.position),this.position+=e.length}Qe(){return this.buffer.slice(0,this.position)}Fe(e){const t=function(a){const d=new DataView(new ArrayBuffer(8));return d.setFloat64(0,a,!1),new Uint8Array(d.buffer)}(e),s=0!=(128&t[0]);t[0]^=s?255:128;for(let a=1;a<t.length;++a)t[a]^=s?255:0;return t}De(e){const t=255&e;0===t?(this.Ue(0),this.Ue(255)):255===t?(this.Ue(255),this.Ue(0)):this.Ue(t)}Ne(e){const t=255&e;0===t?(this.Ge(0),this.Ge(255)):255===t?(this.Ge(255),this.Ge(0)):this.Ge(e)}Ce(){this.Ue(0),this.Ue(1)}ke(){this.Ge(0),this.Ge(1)}Ue(e){this.Be(1),this.buffer[this.position++]=e}Ge(e){this.Be(1),this.buffer[this.position++]=~e}Be(e){const t=e+this.position;if(t<=this.buffer.length)return;let s=2*this.buffer.length;s<t&&(s=t);const a=new Uint8Array(s);a.set(this.buffer),this.buffer=a}}class yh{constructor(e){this.je=e}Ae(e){this.je.Se(e)}Ie(e){this.je.Me(e)}pe(e){this.je.Oe(e)}ge(){this.je.qe()}}class Qy{constructor(e){this.je=e}Ae(e){this.je.xe(e)}Ie(e){this.je.$e(e)}pe(e){this.je.Le(e)}ge(){this.je.Ke()}}class tc{constructor(){this.je=new Yy,this.ze=new yh(this.je),this.We=new Qy(this.je)}seed(e){this.je.seed(e)}He(e){return 0===e?this.ze:this.We}Qe(){return this.je.Qe()}reset(){this.je.reset()}}class Fl{constructor(e,t,s,a){this.indexId=e,this.documentKey=t,this.arrayValue=s,this.directionalValue=a}Je(){const e=this.directionalValue.length,t=0===e||255===this.directionalValue[e-1]?e+1:e,s=new Uint8Array(t);return s.set(this.directionalValue,0),t!==e?s.set([0],this.directionalValue.length):++s[s.length-1],new Fl(this.indexId,this.documentKey,this.arrayValue,s)}}function Zc(r,e){let t=r.indexId-e.indexId;return 0!==t?t:(t=Hp(r.arrayValue,e.arrayValue),0!==t?t:(t=Hp(r.directionalValue,e.directionalValue),0!==t?t:jn.comparator(r.documentKey,e.documentKey)))}function Hp(r,e){for(let t=0;t<r.length&&t<e.length;++t){const s=r[t]-e[t];if(0!==s)return s}return r.length-e.length}class Xy{constructor(e){this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.Ye=e.orderBy,this.Xe=[];for(const t of e.filters){const s=t;s.isInequality()?this.Ze=s:this.Xe.push(s)}}tn(e){Xn(e.collectionGroup===this.collectionId);const t=pa(e);if(void 0!==t&&!this.en(t))return!1;const s=ps(e);let a=new Set,d=0,g=0;for(;d<s.length&&this.en(s[d]);++d)a=a.add(s[d].fieldPath.canonicalString());if(d===s.length)return!0;
1if(void 0!==this.Ze){if(!a.has(this.Ze.field.canonicalString())){const M=s[d];if(!this.nn(this.Ze,M)||!this.sn(this.Ye[g++],M))return!1}++d}for(;d<s.length;++d)if(g>=this.Ye.length||!this.sn(this.Ye[g++],s[d]))return!1;return!0}en(e){for(const t of this.Xe)if(this.nn(t,e))return!0;return!1}nn(e,t){return!(void 0===e||!e.field.isEqual(t.fieldPath))&&2===t.kind==("array-contains"===e.op||"array-contains-any"===e.op)}sn(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}function Em(r){var e,t;if(Xn(r instanceof tt||r instanceof mt),r instanceof tt){if(r instanceof gc){const a=(null===(t=null===(e=r.value.arrayValue)||void 0===e?void 0:e.values)||void 0===t?void 0:t.map(d=>tt.create(r.field,"==",d)))||[];return mt.create(a,"or")}return r}const s=r.filters.map(a=>Em(a));return mt.create(s,r.op)}function bm(r){if(0===r.getFilters().length)return[];const e=vh(Em(r));return Xn(_h(e)),Of(e)||Pf(e)?[e]:e.getFilters()}function Of(r){return r instanceof tt}function Pf(r){return r instanceof mt&&Bn(r)}function _h(r){return Of(r)||Pf(r)||function(e){if(e instanceof mt&&Hn(e)){for(const t of e.getFilters())if(!Of(t)&&!Pf(t))return!1;return!0}return!1}(r)}function vh(r){if(Xn(r instanceof tt||r instanceof mt),r instanceof tt)return r;if(1===r.filters.length)return vh(r.filters[0]);const e=r.filters.map(s=>vh(s));let t=mt.create(e,r.op);return t=qc(t),_h(t)?t:(Xn(t instanceof mt),Xn(Gt(t)),Xn(t.filters.length>1),t.filters.reduce((s,a)=>zp(s,a)))}function zp(r,e){let t;return Xn(r instanceof tt||r instanceof mt),Xn(e instanceof tt||e instanceof mt),t=r instanceof tt?e instanceof tt?mt.create([r,e],"and"):xf(r,e):e instanceof tt?xf(e,r):function(s,a){if(Xn(s.filters.length>0&&a.filters.length>0),Gt(s)&&Gt(a))return la(s,a.getFilters());const d=Hn(s)?s:a,g=Hn(s)?a:s,M=d.filters.map(H=>zp(H,g));return mt.create(M,"or")}(r,e),qc(t)}function xf(r,e){if(Gt(e))return la(e,r.getFilters());{const t=e.filters.map(s=>zp(r,s));return mt.create(t,"or")}}function qc(r){if(Xn(r instanceof tt||r instanceof mt),r instanceof tt)return r;const e=r.getFilters();if(1===e.length)return qc(e[0]);if(fr(r))return r;const t=e.map(a=>qc(a)),s=[];return t.forEach(a=>{a instanceof tt?s.push(a):a instanceof mt&&(a.op===r.op?s.push(...a.filters):s.push(a))}),1===s.length?s[0]:mt.create(s,r.op)}class Jy{constructor(){this.rn=new Wp}addToCollectionParentIndex(e,t){return this.rn.add(t),Lt.resolve()}getCollectionParents(e,t){return Lt.resolve(this.rn.getEntries(t))}addFieldIndex(e,t){return Lt.resolve()}deleteFieldIndex(e,t){return Lt.resolve()}getDocumentsMatchingTarget(e,t){return Lt.resolve(null)}getIndexType(e,t){return Lt.resolve(0)}getFieldIndexes(e,t){return Lt.resolve([])}getNextCollectionGroupToUpdate(e){return Lt.resolve(null)}getMinOffset(e,t){return Lt.resolve(As.min())}getMinOffsetFromCollectionGroup(e,t){return Lt.resolve(As.min())}updateCollectionGroup(e,t,s){return Lt.resolve()}updateIndexEntries(e,t){return Lt.resolve()}}class Wp{constructor(){this.index={}}add(e){const t=e.lastSegment(),s=e.popLast(),a=this.index[t]||new Ii(Pr.comparator),d=!a.has(s);return this.index[t]=a.add(s),d}has(e){const t=e.lastSegment(),s=e.popLast(),a=this.index[t];return a&&a.has(s)}getEntries(e){return(this.index[e]||new Ii(Pr.comparator)).toArray()}}const kf=new Uint8Array(0);class e_{constructor(e,t){this.user=e,this.databaseId=t,this.on=new Wp,this.un=new pl(s=>dl(s),(s,a)=>hl(s,a)),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.on.has(t)){const s=t.lastSegment(),a=t.popLast();e.addOnCommittedListener(()=>{this.on.add(t)});const d={collectionId:s,parent:Ar(a)};return Kp(e).put(d)}return Lt.resolve()}getCollectionParents(e,t){const s=[],a=IDBKeyRange.bound([t,""],[Ha(t),""],!1,!0);return Kp(e).j(a).next(d=>{for(const g of d){if(g.collectionId!==t)break;s.push(Mr(g.parent))}return s})}addFieldIndex(e,t){const s=Eh(e),a={indexId:(g=t).indexId,collectionGroup:g.collectionGroup,fields:g.fields.map(M=>[M.fieldPath.canonicalString(),M.kind])};var g;delete a.indexId;const d=s.add(a);if(t.indexState){const g=nc(e);return d.next(M=>{g.put(ym(M,this.user,t.indexState.sequenceNumber,t.indexState.offset))})}return d.next()}deleteFieldIndex(e,t){const s=Eh(e),a=nc(e),d=wd(e);return s.delete(t.indexId).next(()=>a.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))).next(()=>d.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))}getDocumentsMatchingTarget(e,t){const s=wd(e);let a=!0;const d=new Map;return Lt.forEach(this.cn(t),g=>this.an(e,g).next(M=>{a&&(a=!!M),d.set(g,M)})).next(()=>{if(a){let g=qr();const M=[];return Lt.forEach(d,(H,ee)=>{var De;on("IndexedDbIndexManager",`Using index ${De=H,`id=${De.indexId}|cg=${De.collectionGroup}|f=${De.fields.map(yi=>`${yi.fieldPath}:${yi.kind}`).join(",")}`} to execute ${dl(t)}`);const st=function(yi,xo){const mo=pa(xo);if(void 0===mo)return null;for(const Ms of fl(yi,mo.fieldPath))switch(Ms.op){case"array-contains-any":return Ms.value.arrayValue.values||[];case"array-contains":return[Ms.value]}return null}(ee,H),Bt=function(yi,xo){const mo=new Map;for(const Ms of ps(xo))for(const Fa of fl(yi,Ms.fieldPath))switch(Fa.op){case"==":case"in":mo.set(Ms.fieldPath.canonicalString(),Fa.value);break;case"not-in":case"!=":return mo.set(Ms.fieldPath.canonicalString(),Fa.value),Array.from(mo.values())}return null}(ee,H),un=function(yi,xo){const mo=[];let Ms=!0;for(const Fa of ps(xo)){const nd=0===Fa.kind?ad(yi,Fa.fieldPath,yi.startAt):th(yi,Fa.fieldPath,yi.startAt);mo.push(nd.value),Ms&&(Ms=nd.inclusive)}return new ul(mo,Ms)}(ee,H),Nn=function(yi,xo){const mo=[];let Ms=!0;for(const Fa of ps(xo)){const nd=0===Fa.kind?th(yi,Fa.fieldPath,yi.endAt):ad(yi,Fa.fieldPath,yi.endAt);mo.push(nd.value),Ms&&(Ms=nd.inclusive)}return new ul(mo,Ms)}(ee,H),er=this.hn(H,ee,un),lr=this.hn(H,ee,Nn),si=this.ln(H,ee,Bt),Oi=this.fn(H.indexId,st,er,un.inclusive,lr,Nn.inclusive,si);return Lt.forEach(Oi,yi=>s.H(yi,t.limit).next(xo=>
1{xo.forEach(mo=>{const Ms=jn.fromSegments(mo.documentKey);g.has(Ms)||(g=g.add(Ms),M.push(Ms))})}))}).next(()=>M)}return Lt.resolve(null)})}cn(e){let t=this.un.get(e);return t||(t=0===e.filters.length?[e]:bm(mt.create(e.filters,"and")).map(s=>wu(e.path,e.collectionGroup,e.orderBy,s.getFilters(),e.limit,e.startAt,e.endAt)),this.un.set(e,t),t)}fn(e,t,s,a,d,g,M){const H=(null!=t?t.length:1)*Math.max(s.length,d.length),ee=H/(null!=t?t.length:1),De=[];for(let st=0;st<H;++st){const Bt=t?this.dn(t[st/ee]):kf,un=this.wn(e,Bt,s[st%ee],a),Nn=this._n(e,Bt,d[st%ee],g),er=M.map(lr=>this.wn(e,Bt,lr,!0));De.push(...this.createRange(un,Nn,er))}return De}wn(e,t,s,a){const d=new Fl(e,jn.empty(),t,s);return a?d:d.Je()}_n(e,t,s,a){const d=new Fl(e,jn.empty(),t,s);return a?d.Je():d}an(e,t){const s=new Xy(t),a=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,a).next(d=>{let g=null;for(const M of d)s.tn(M)&&(!g||M.fields.length>g.fields.length)&&(g=M);return g})}getIndexType(e,t){let s=2;const a=this.cn(t);return Lt.forEach(a,d=>this.an(e,d).next(g=>{g?0!==s&&g.fields.length<function(M){let H=new Ii(Vr.comparator),ee=!1;for(const De of M.filters)for(const st of De.getFlattenedFilters())st.field.isKeyField()||("array-contains"===st.op||"array-contains-any"===st.op?ee=!0:H=H.add(st.field));for(const De of M.orderBy)De.field.isKeyField()||(H=H.add(De.field));return H.size+(ee?1:0)}(d)&&(s=1):s=0})).next(()=>null!==t.limit&&a.length>1&&2===s?1:s)}mn(e,t){const s=new tc;for(const a of ps(e)){const d=t.data.field(a.fieldPath);if(null==d)return null;const g=s.He(a.kind);Vu.Ve._e(d,g)}return s.Qe()}dn(e){const t=new tc;return Vu.Ve._e(e,t.He(0)),t.Qe()}gn(e,t){const s=new tc;return Vu.Ve._e(Tl(this.databaseId,t),s.He(function(a){const d=ps(a);return 0===d.length?0:d[d.length-1].kind}(e))),s.Qe()}ln(e,t,s){if(null===s)return[];let a=[];a.push(new tc);let d=0;for(const g of ps(e)){const M=s[d++];for(const H of a)if(this.yn(t,g.fieldPath)&&zl(M))a=this.pn(a,g,M);else{const ee=H.He(g.kind);Vu.Ve._e(M,ee)}}return this.In(a)}hn(e,t,s){return this.ln(e,t,s.position)}In(e){const t=[];for(let s=0;s<e.length;++s)t[s]=e[s].Qe();return t}pn(e,t,s){const a=[...e],d=[];for(const g of s.arrayValue.values||[])for(const M of a){const H=new tc;H.seed(M.Qe()),Vu.Ve._e(g,H.He(t.kind)),d.push(H)}return d}yn(e,t){return!!e.filters.find(s=>s instanceof tt&&s.field.isEqual(t)&&("in"===s.op||"not-in"===s.op))}getFieldIndexes(e,t){const s=Eh(e),a=nc(e);return(t?s.j("collectionGroupIndex",IDBKeyRange.bound(t,t)):s.j()).next(d=>{const g=[];return Lt.forEach(d,M=>a.get([M.indexId,this.uid]).next(H=>{g.push(function(ee,De){const st=De?new ra(De.sequenceNumber,new As(il(De.readTime),new jn(Mr(De.documentKey)),De.largestBatchId)):ra.empty(),Bt=ee.fields.map(([un,Nn])=>new ga(Vr.fromServerFormat(un),Nn));return new Es(ee.indexId,ee.collectionGroup,Bt,st)}(M,H))})).next(()=>g)})}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next(t=>0===t.length?null:(t.sort((s,a)=>{const d=s.indexState.sequenceNumber-a.indexState.sequenceNumber;return 0!==d?d:Jn(s.collectionGroup,a.collectionGroup)}),t[0].collectionGroup))}updateCollectionGroup(e,t,s){const a=Eh(e),d=nc(e);return this.Tn(e).next(g=>a.j("collectionGroupIndex",IDBKeyRange.bound(t,t)).next(M=>Lt.forEach(M,H=>d.put(ym(H.indexId,this.user,g,s)))))}updateIndexEntries(e,t){const s=new Map;return Lt.forEach(t,(a,d)=>{const g=s.get(a.collectionGroup);return(g?Lt.resolve(g):this.getFieldIndexes(e,a.collectionGroup)).next(M=>(s.set(a.collectionGroup,M),Lt.forEach(M,H=>this.En(e,a,H).next(ee=>{const De=this.An(d,H);return ee.isEqual(De)?Lt.resolve():this.vn(e,d,H,ee,De)}))))})}Rn(e,t,s,a){return wd(e).put({indexId:a.indexId,uid:this.uid,arrayValue:a.arrayValue,directionalValue:a.directionalValue,orderedDocumentKey:this.gn(s,t.key),documentKey:t.key.path.toArray()})}Pn(e,t,s,a){return wd(e).delete([a.indexId,this.uid,a.arrayValue,a.directionalValue,this.gn(s,t.key),t.key.path.toArray()])}En(e,t,s){const a=wd(e);let d=new Ii(Zc);return a.X({index:"documentKeyIndex",range:IDBKeyRange.only([s.indexId,this.uid,this.gn(s,t)])},(g,M)=>{d=d.add(new Fl(s.indexId,t,M.arrayValue,M.directionalValue))}).next(()=>d)}An(e,t){let s=new Ii(Zc);const a=this.mn(t,e);if(null==a)return s;const d=pa(t);if(null!=d){const g=e.data.field(d.fieldPath);if(zl(g))for(const M of g.arrayValue.values||[])s=s.add(new Fl(t.indexId,e.key,this.dn(M),a))}else s=s.add(new Fl(t.indexId,e.key,kf,a));return s}vn(e,t,s,a,d){on("IndexedDbIndexManager","Updating index entries for document '%s'",t.key);const g=[];return function(M,H,ee,De,st){const Bt=M.getIterator(),un=H.getIterator();let Nn=Cl(Bt),er=Cl(un);for(;Nn||er;){let lr=!1,si=!1;if(Nn&&er){const Oi=ee(Nn,er);Oi<0?si=!0:Oi>0&&(lr=!0)}else null!=Nn?si=!0:lr=!0;lr?(De(er),er=Cl(un)):si?(st(Nn),Nn=Cl(Bt)):(Nn=Cl(Bt),er=Cl(un))}}(a,d,Zc,M=>{g.push(this.Rn(e,t,s,M))},M=>{g.push(this.Pn(e,t,s,M))}),Lt.waitFor(g)}Tn(e){let t=1;return nc(e).X({index:"sequenceNumberIndex",reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(s,a,d)=>
1{d.done(),t=a.sequenceNumber+1}).next(()=>t)}createRange(e,t,s){s=s.sort((g,M)=>Zc(g,M)).filter((g,M,H)=>!M||0!==Zc(g,H[M-1]));const a=[];a.push(e);for(const g of s){const M=Zc(g,e),H=Zc(g,t);if(0===M)a[0]=e.Je();else if(M>0&&H<0)a.push(g),a.push(g.Je());else if(H>0)break}a.push(t);const d=[];for(let g=0;g<a.length;g+=2){if(this.bn(a[g],a[g+1]))return[];d.push(IDBKeyRange.bound([a[g].indexId,this.uid,a[g].arrayValue,a[g].directionalValue,kf,[]],[a[g+1].indexId,this.uid,a[g+1].arrayValue,a[g+1].directionalValue,kf,[]]))}return d}bn(e,t){return Zc(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(rc)}getMinOffset(e,t){return Lt.mapArray(this.cn(t),s=>this.an(e,s).next(a=>a||kn())).next(rc)}}function Kp(r){return Kr(r,"collectionParents")}function wd(r){return Kr(r,"indexEntries")}function Eh(r){return Kr(r,"indexConfiguration")}function nc(r){return Kr(r,"indexState")}function rc(r){Xn(0!==r.length);let e=r[0].indexState.offset,t=e.largestBatchId;for(let s=1;s<r.length;s++){const a=r[s].indexState.offset;Fo(a,e)<0&&(e=a),t<a.largestBatchId&&(t=a.largestBatchId)}return new As(e.readTime,e.documentKey,t)}const wm={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class wa{constructor(e,t,s){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=s}static withCacheSize(e){return new wa(e,wa.DEFAULT_COLLECTION_PERCENTILE,wa.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}function t_(r,e,t){const s=r.store("mutations"),a=r.store("documentMutations"),d=[],g=IDBKeyRange.only(t.batchId);let M=0;const H=s.X({range:g},(De,st,Bt)=>(M++,Bt.delete()));d.push(H.next(()=>{Xn(1===M)}));const ee=[];for(const De of t.mutations){const st=y(e,De.key.path,t.batchId);d.push(a.delete(st)),ee.push(De.key)}return Lt.waitFor(d).next(()=>ee)}function Gp(r){if(!r)return 0;let e;if(r.document)e=r.document;else if(r.unknownDocument)e=r.unknownDocument;else{if(!r.noDocument)throw kn();e=r.noDocument}return JSON.stringify(e).length}wa.DEFAULT_COLLECTION_PERCENTILE=10,wa.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,wa.DEFAULT=new wa(41943040,wa.DEFAULT_COLLECTION_PERCENTILE,wa.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),wa.DISABLED=new wa(-1,0,0);class bh{constructor(e,t,s,a){this.userId=e,this.serializer=t,this.indexManager=s,this.referenceDelegate=a,this.Vn={}}static de(e,t,s,a){Xn(""!==e.uid);const d=e.isAuthenticated()?e.uid:"";return new bh(d,t,s,a)}checkEmpty(e){let t=!0;const s=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Cc(e).X({index:"userMutationsIndex",range:s},(a,d,g)=>{t=!1,g.done()}).next(()=>t)}addMutationBatch(e,t,s,a){const d=Uu(e),g=Cc(e);return g.add({}).next(M=>{Xn("number"==typeof M);const H=new yd(M,t,s,a),ee=function(Bt,un,Nn){const er=Nn.baseMutations.map(si=>Nu(Bt.fe,si)),lr=Nn.mutations.map(si=>Nu(Bt.fe,si));return{userId:un,batchId:Nn.batchId,localWriteTimeMs:Nn.localWriteTime.toMillis(),baseMutations:er,mutations:lr}}(this.serializer,this.userId,H),De=[];let st=new Ii((Bt,un)=>Jn(Bt.canonicalString(),un.canonicalString()));for(const Bt of a){const un=y(this.userId,Bt.key.path,M);st=st.add(Bt.key.path.popLast()),De.push(g.put(ee)),De.push(d.put(un,O))}return st.forEach(Bt=>{De.push(this.indexManager.addToCollectionParentIndex(e,Bt))}),e.addOnCommittedListener(()=>{this.Vn[M]=H.keys()}),Lt.waitFor(De).next(()=>H)})}lookupMutationBatch(e,t){return Cc(e).get(t).next(s=>s?(Xn(s.userId===this.userId),Kc(this.serializer,s)):null)}Sn(e,t){return this.Vn[t]?Lt.resolve(this.Vn[t]):this.lookupMutationBatch(e,t).next(s=>{if(s){const a=s.keys();return this.Vn[t]=a,a}return null})}getNextMutationBatchAfterBatchId(e,t){const s=t+1,a=IDBKeyRange.lowerBound([this.userId,s]);let d=null;return Cc(e).X({index:"userMutationsIndex",range:a},(g,M,H)=>{M.userId===this.userId&&(Xn(M.batchId>=s),d=Kc(this.serializer,M)),H.done()}).next(()=>d)}getHighestUnacknowledgedBatchId(e){const t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let s=-1;return Cc(e).X({index:"userMutationsIndex",range:t,reverse:!0},(a,d,g)=>{s=d.batchId,g.done()}).next(()=>s)}getAllMutationBatches(e){const t=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Cc(e).j("userMutationsIndex",t).next(s=>s.map(a=>Kc(this.serializer,a)))}getAllMutationBatchesAffectingDocumentKey(e,t){const s=D(this.userId,t.path),a=IDBKeyRange.lowerBound(s),d=[];return Uu(e).X({range:a},(g,M,H)=>{const[ee,De,st]=g,Bt=Mr(De);if(ee===this.userId&&t.path.isEqual(Bt))return Cc(e).get(st).next(un=>{if(!un)throw kn();Xn(un.userId===this.userId),d.push(Kc(this.serializer,un))});H.done()}).next(()=>d)}getAllMutationBatchesAffectingDocumentKeys(e,t){let s=new Ii(Jn);const a=[];return t.forEach(d=>{const g=D(this.userId,d.path),M=IDBKeyRange.lowerBound(g),H=Uu(e).X({range:M},(ee,De,st)=>{const[Bt,un,Nn]=ee,er=Mr(un);Bt===this.userId&&d.path.isEqual(er)?s=s.add(Nn):st.done()});a.push(H)}),Lt.waitFor(a).next(()=>this.Dn(e,s))}getAllMutationBatchesAffectingQuery(e,t){const s=t.path,a=s.length+1,d=D(this.userId,s),g=IDBKeyRange.lowerBound(d);let M=new Ii(Jn);return Uu(e).X({range:g},(H,ee,De)=>{const[st,Bt,un]=H,Nn=Mr(Bt);st===this.userId&&s.isPrefixOf(Nn)?Nn.length===a&&(M=M.add(un)):De.done()}).next(()=>this.Dn(e,M))}Dn(e,t){const s=[],a=[];return t.forEach(d=>{a.push(Cc(e).get(d).next(g=>{if(null===g)throw kn();Xn(g.userId===this.userId),s.push(Kc(this.serializer,g))}))}),Lt.waitFor(a).next(()=>s)}removeMutationBatch(e,t){return t_(e.ht,this.userId,t).next(s=>(e.addOnCommittedListener(()=>{this.Cn(t.batchId)}),Lt.forEach(s,a=>this.referenceDelegate.markPotentiallyOrphaned(e,a))))}Cn(e){delete this.Vn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next(t=>
1{if(!t)return Lt.resolve();const s=IDBKeyRange.lowerBound([this.userId]),a=[];return Uu(e).X({range:s},(d,g,M)=>{if(d[0]===this.userId){const H=Mr(d[1]);a.push(H)}else M.done()}).next(()=>{Xn(0===a.length)})})}containsKey(e,t){return n_(e,this.userId,t)}xn(e){return Cm(e).get(this.userId).next(t=>t||{userId:this.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""})}}function n_(r,e,t){const s=D(e,t.path),a=s[1],d=IDBKeyRange.lowerBound(s);let g=!1;return Uu(r).X({range:d,Y:!0},(M,H,ee)=>{const[De,st,Bt]=M;De===e&&st===a&&(g=!0),ee.done()}).next(()=>g)}function Cc(r){return Kr(r,"mutations")}function Uu(r){return Kr(r,"documentMutations")}function Cm(r){return Kr(r,"mutationQueues")}class Yc{constructor(e){this.Nn=e}next(){return this.Nn+=2,this.Nn}static kn(){return new Yc(0)}static Mn(){return new Yc(-1)}}class r_{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.$n(e).next(t=>{const s=new Yc(t.highestTargetId);return t.highestTargetId=s.next(),this.On(e,t).next(()=>t.highestTargetId)})}getLastRemoteSnapshotVersion(e){return this.$n(e).next(t=>cr.fromTimestamp(new ji(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(e){return this.$n(e).next(t=>t.highestListenSequenceNumber)}setTargetsMetadata(e,t,s){return this.$n(e).next(a=>(a.highestListenSequenceNumber=t,s&&(a.lastRemoteSnapshotVersion=s.toTimestamp()),t>a.highestListenSequenceNumber&&(a.highestListenSequenceNumber=t),this.On(e,a)))}addTargetData(e,t){return this.Fn(e,t).next(()=>this.$n(e).next(s=>(s.targetCount+=1,this.Bn(t,s),this.On(e,s))))}updateTargetData(e,t){return this.Fn(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next(()=>Cd(e).delete(t.targetId)).next(()=>this.$n(e)).next(s=>(Xn(s.targetCount>0),s.targetCount-=1,this.On(e,s)))}removeTargets(e,t,s){let a=0;const d=[];return Cd(e).X((g,M)=>{const H=Fu(M);H.sequenceNumber<=t&&null===s.get(H.targetId)&&(a++,d.push(this.removeTargetData(e,H)))}).next(()=>Lt.waitFor(d)).next(()=>a)}forEachTarget(e,t){return Cd(e).X((s,a)=>{const d=Fu(a);t(d)})}$n(e){return yl(e).get("targetGlobalKey").next(t=>(Xn(null!==t),t))}On(e,t){return yl(e).put("targetGlobalKey",t)}Fn(e,t){return Cd(e).put(mm(this.serializer,t))}Bn(e,t){let s=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,s=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,s=!0),s}getTargetCount(e){return this.$n(e).next(t=>t.targetCount)}getTargetData(e,t){const s=dl(t),a=IDBKeyRange.bound([s,Number.NEGATIVE_INFINITY],[s,Number.POSITIVE_INFINITY]);let d=null;return Cd(e).X({range:a,index:"queryTargetsIndex"},(g,M,H)=>{const ee=Fu(M);hl(t,ee.target)&&(d=ee,H.done())}).next(()=>d)}addMatchingKeys(e,t,s){const a=[],d=Qc(e);return t.forEach(g=>{const M=Ar(g.path);a.push(d.put({targetId:s,path:M})),a.push(this.referenceDelegate.addReference(e,s,g))}),Lt.waitFor(a)}removeMatchingKeys(e,t,s){const a=Qc(e);return Lt.forEach(t,d=>{const g=Ar(d.path);return Lt.waitFor([a.delete([s,g]),this.referenceDelegate.removeReference(e,s,d)])})}removeMatchingKeysForTargetId(e,t){const s=Qc(e),a=IDBKeyRange.bound([t],[t+1],!1,!0);return s.delete(a)}getMatchingKeysForTargetId(e,t){const s=IDBKeyRange.bound([t],[t+1],!1,!0),a=Qc(e);let d=qr();return a.X({range:s,Y:!0},(g,M,H)=>{const ee=Mr(g[1]),De=new jn(ee);d=d.add(De)}).next(()=>d)}containsKey(e,t){const s=Ar(t.path),a=IDBKeyRange.bound([s],[Ha(s)],!1,!0);let d=0;return Qc(e).X({index:"documentTargetsIndex",Y:!0,range:a},([g,M],H,ee)=>{0!==g&&(d++,ee.done())}).next(()=>d>0)}le(e,t){return Cd(e).get(t).next(s=>s?Fu(s):null)}}function Cd(r){return Kr(r,"targets")}function yl(r){return Kr(r,"targetGlobal")}function Qc(r){return Kr(r,"targetDocuments")}function Zp([r,e],[t,s]){const a=Jn(r,t);return 0===a?Jn(e,s):a}class i_{constructor(e){this.Ln=e,this.buffer=new Ii(Zp),this.qn=0}Un(){return++this.qn}Kn(e){const t=[e,this.Un()];if(this.buffer.size<this.Ln)this.buffer=this.buffer.add(t);else{const s=this.buffer.last();Zp(t,s)<0&&(this.buffer=this.buffer.delete(s).add(t))}}get maxValue(){return this.buffer.last()[0]}}class Im{constructor(e,t,s){this.garbageCollector=e,this.asyncQueue=t,this.localStore=s,this.Gn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.Qn(6e4)}stop(){this.Gn&&(this.Gn.cancel(),this.Gn=null)}get started(){return null!==this.Gn}Qn(e){var t=this;on("LruGarbageCollector",`Garbage collection scheduled in ${e}ms`),this.Gn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(0,c.Z)(function*(){t.Gn=null;try{yield t.localStore.collectGarbage(t.garbageCollector)}catch(s){_(s)?on("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",s):yield Zs(s)}yield t.Qn(3e5)}))}}class s_{constructor(e,t){this.jn=e,this.params=t}calculateTargetCount(e,t){return this.jn.zn(e).next(s=>Math.floor(t/100*s))}nthSequenceNumber(e,t){if(0===t)return Lt.resolve(Pt.ct);const s=new i_(t);return this.jn.forEachTarget(e,a=>s.Kn(a.sequenceNumber)).next(()=>this.jn.Wn(e,a=>s.Kn(a))).next(()=>s.maxValue)}removeTargets(e,t,s){return this.jn.removeTargets(e,t,s)}removeOrphanedDocuments(e,t){return this.jn.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(on("LruGarbageCollector","Garbage collection skipped; disabled"),Lt.resolve(wm)):this.getCacheSize(e).next(s=>s<this.params.cacheSizeCollectionThreshold?(on("LruGarbageCollector",`Garbage collection skipped; Cache size ${s} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),wm):this.Hn(e,t))}getCacheSize(e){return this.jn.getCacheSize(e)}Hn(e,t){let s,a,d,g,M,H,ee;const De=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(st=>(st>this.params.maximumSequenceNumbersToCollect?(on("LruGarbageCollector",`C
1apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${st}`),a=this.params.maximumSequenceNumbersToCollect):a=st,g=Date.now(),this.nthSequenceNumber(e,a))).next(st=>(s=st,M=Date.now(),this.removeTargets(e,s,t))).next(st=>(d=st,H=Date.now(),this.removeOrphanedDocuments(e,s))).next(st=>(ee=Date.now(),Lr()<=_e.in.DEBUG&&on("LruGarbageCollector",`LRU Garbage Collection\n\tCounted targets in ${g-De}ms\n\tDetermined least recently used ${a} in `+(M-g)+`ms\n\tRemoved ${d} targets in `+(H-M)+`ms\n\tRemoved ${st} documents in `+(ee-H)+`ms\nTotal Duration: ${ee-De}ms`),Lt.resolve({didRun:!0,sequenceNumbersCollected:a,targetsRemoved:d,documentsRemoved:st})))}}class Tm{constructor(e,t){this.db=e,this.garbageCollector=function Dm(r,e){return new s_(r,e)}(this,t)}zn(e){const t=this.Jn(e);return this.db.getTargetCache().getTargetCount(e).next(s=>t.next(a=>s+a))}Jn(e){let t=0;return this.Wn(e,s=>{t++}).next(()=>t)}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}Wn(e,t){return this.Yn(e,(s,a)=>t(a))}addReference(e,t,s){return Nf(e,s)}removeReference(e,t,s){return Nf(e,s)}removeTargets(e,t,s){return this.db.getTargetCache().removeTargets(e,t,s)}markPotentiallyOrphaned(e,t){return Nf(e,t)}Xn(e,t){return function(s,a){let d=!1;return Cm(s).Z(g=>n_(s,g,a).next(M=>(M&&(d=!0),Lt.resolve(!M)))).next(()=>d)}(e,t)}removeOrphanedDocuments(e,t){const s=this.db.getRemoteDocumentCache().newChangeBuffer(),a=[];let d=0;return this.Yn(e,(g,M)=>{if(M<=t){const H=this.Xn(e,g).next(ee=>{if(!ee)return d++,s.getEntry(e,g).next(()=>(s.removeEntry(g,cr.min()),Qc(e).delete([0,Ar(g.path)])))});a.push(H)}}).next(()=>Lt.waitFor(a)).next(()=>s.apply(e)).next(()=>d)}removeTarget(e,t){const s=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,s)}updateLimboDocument(e,t){return Nf(e,t)}Yn(e,t){const s=Qc(e);let a,d=Pt.ct;return s.X({index:"documentTargetsIndex"},([g,M],{path:H,sequenceNumber:ee})=>{0===g?(d!==Pt.ct&&t(new jn(Mr(a)),d),d=ee,a=H):d=Pt.ct}).next(()=>{d!==Pt.ct&&t(new jn(Mr(a)),d)})}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function Nf(r,e){return Qc(r).put((s=r.currentSequenceNumber,{targetId:0,path:Ar(e.path),sequenceNumber:s}));var s}class Sm{constructor(){this.changes=new pl(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,us.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const s=this.changes.get(t);return void 0!==s?Lt.resolve(s):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class o_{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,s){return Xc(e).put(s)}removeEntry(e,t,s){return Xc(e).delete(function(a,d){const g=a.path.toArray();return[g.slice(0,g.length-2),g[g.length-2],bd(d),g[g.length-1]]}(t,s))}updateMetadata(e,t){return this.getMetadata(e).next(s=>(s.byteSize+=t,this.Zn(e,s)))}getEntry(e,t){let s=us.newInvalidDocument(t);return Xc(e).X({index:"documentKeyIndex",range:IDBKeyRange.only(wh(t))},(a,d)=>{s=this.ts(t,d)}).next(()=>s)}es(e,t){let s={size:0,document:us.newInvalidDocument(t)};return Xc(e).X({index:"documentKeyIndex",range:IDBKeyRange.only(wh(t))},(a,d)=>{s={document:this.ts(t,d),size:Gp(d)}}).next(()=>s)}getEntries(e,t){let s=xa();return this.ns(e,t,(a,d)=>{const g=this.ts(a,d);s=s.insert(a,g)}).next(()=>s)}ss(e,t){let s=xa(),a=new mi(jn.comparator);return this.ns(e,t,(d,g)=>{const M=this.ts(d,g);s=s.insert(d,M),a=a.insert(d,Gp(g))}).next(()=>({documents:s,rs:a}))}ns(e,t,s){if(t.isEmpty())return Lt.resolve();let a=new Ii(Yp);t.forEach(H=>a=a.add(H));const d=IDBKeyRange.bound(wh(a.first()),wh(a.last())),g=a.getIterator();let M=g.getNext();return Xc(e).X({index:"documentKeyIndex",range:d},(H,ee,De)=>{const st=jn.fromSegments([...ee.prefixPath,ee.collectionGroup,ee.documentId]);for(;M&&Yp(M,st)<0;)s(M,null),M=g.getNext();M&&M.isEqual(st)&&(s(M,ee),M=g.hasNext()?g.getNext():null),M?De.G(wh(M)):De.done()}).next(()=>{for(;M;)s(M,null),M=g.hasNext()?g.getNext():null})}getDocumentsMatchingQuery(e,t,s,a){const d=t.path,g=[d.popLast().toArray(),d.lastSegment(),bd(s.readTime),s.documentKey.path.isEmpty()?"":s.documentKey.path.lastSegment()],M=[d.popLast().toArray(),d.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return Xc(e).j(IDBKeyRange.bound(g,M,!0)).next(H=>{let ee=xa();for(const De of H){const st=this.ts(jn.fromSegments(De.prefixPath.concat(De.collectionGroup,De.documentId)),De);
1st.isFoundDocument()&&(Zl(t,st)||a.has(st.key))&&(ee=ee.insert(st.key,st))}return ee})}getAllFromCollectionGroup(e,t,s,a){let d=xa();const g=Mm(t,s),M=Mm(t,As.max());return Xc(e).X({index:"collectionGroupIndex",range:IDBKeyRange.bound(g,M,!0)},(H,ee,De)=>{const st=this.ts(jn.fromSegments(ee.prefixPath.concat(ee.collectionGroup,ee.documentId)),ee);d=d.insert(st.key,st),d.size===a&&De.done()}).next(()=>d)}newChangeBuffer(e){return new Am(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next(t=>t.byteSize)}getMetadata(e){return qp(e).get("remoteDocumentGlobalKey").next(t=>(Xn(!!t),t))}Zn(e,t){return qp(e).put("remoteDocumentGlobalKey",t)}ts(e,t){if(t){const s=function Af(r,e){let t;if(e.document)t=kp(r.fe,e.document,!!e.hasCommittedMutations);else if(e.noDocument){const s=jn.fromSegments(e.noDocument.path),a=il(e.noDocument.readTime);t=us.newNoDocument(s,a),e.hasCommittedMutations&&t.setHasCommittedMutations()}else{if(!e.unknownDocument)return kn();{const s=jn.fromSegments(e.unknownDocument.path),a=il(e.unknownDocument.version);t=us.newUnknownDocument(s,a)}}return e.readTime&&t.setReadTime(function(s){const a=new ji(s[0],s[1]);return cr.fromTimestamp(a)}(e.readTime)),t}(this.serializer,t);if(!s.isNoDocument()||!s.version.isEqual(cr.min()))return s}return us.newInvalidDocument(e)}}function Qr(r){return new o_(r)}class Am extends Sm{constructor(e,t){super(),this.os=e,this.trackRemovals=t,this.us=new pl(s=>s.toString(),(s,a)=>s.isEqual(a))}applyChanges(e){const t=[];let s=0,a=new Ii((d,g)=>Jn(d.canonicalString(),g.canonicalString()));
1return this.changes.forEach((d,g)=>{const M=this.us.get(d);if(t.push(this.os.removeEntry(e,d,M.readTime)),g.isValidDocument()){const H=gm(this.os.serializer,g);a=a.add(d.path.popLast());const ee=Gp(H);s+=ee-M.size,t.push(this.os.addEntry(e,d,H))}else if(s-=M.size,this.trackRemovals){const H=gm(this.os.serializer,g.convertToNoDocument(cr.min()));t.push(this.os.addEntry(e,d,H))}}),a.forEach(d=>{t.push(this.os.indexManager.addToCollectionParentIndex(e,d))}),t.push(this.os.updateMetadata(e,s)),Lt.waitFor(t)}getFromCache(e,t){return this.os.es(e,t).next(s=>(this.us.set(t,{size:s.size,readTime:s.document.readTime}),s.document))}getAllFromCache(e,t){return this.os.ss(e,t).next(({documents:s,rs:a})=>(a.forEach((d,g)=>{this.us.set(d,{size:g,readTime:s.get(d).readTime})}),s))}}function qp(r){return Kr(r,"remoteDocumentGlobal")}function Xc(r){return Kr(r,"remoteDocumentsV14")}function wh(r){const e=r.path.toArray();return[e.slice(0,e.length-2),e[e.length-2],e[e.length-1]]}function Mm(r,e){const t=e.documentKey.path.toArray();return[r,bd(e.readTime),t.slice(0,t.length-2),t.length>0?t[t.length-1]:""]}function Yp(r,e){const t=r.path.toArray(),s=e.path.toArray();let a=0;for(let d=0;d<t.length-2&&d<s.length-2;++d)if(a=Jn(t[d],s[d]),a)return a;return a=Jn(t.length,s.length),a||(a=Jn(t[t.length-2],s[s.length-2]),a||Jn(t[t.length-1],s[s.length-1]))}class a_{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class Qp{constructor(e,t,s,a){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=s,this.indexManager=a}getDocument(e,t){let s=null;return this.documentOverlayCache.getOverlay(e,t).next(a=>(s=a,this.remoteDocumentCache.getEntry(e,t))).next(a=>(null!==s&&gl(s.mutation,a,Uo.empty(),ji.now()),a))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(s=>this.getLocalViewOfDocuments(e,s,qr()).next(()=>s))}getLocalViewOfDocuments(e,t,s=qr()){const a=ka();return this.populateOverlays(e,a,t).next(()=>this.computeViews(e,t,a,s).next(d=>{let g=Du();return d.forEach((M,H)=>{g=g.insert(M,H.overlayedDocument)}),g}))}getOverlayedDocuments(e,t){const s=ka();return this.populateOverlays(e,s,t).next(()=>this.computeViews(e,t,s,qr()))}populateOverlays(e,t,s){const a=[];return s.forEach(d=>{t.has(d)||a.push(d)}),this.documentOverlayCache.getOverlays(e,a).next(d=>{d.forEach((g,M)=>{t.set(g,M)})})}computeViews(e,t,s,a){let d=xa();const g=_c(),M=_c();return t.forEach((H,ee)=>{const De=s.get(ee.key);a.has(ee.key)&&(void 0===De||De.mutation instanceof rl)?d=d.insert(ee.key,ee):void 0!==De?(g.set(ee.key,De.mutation.getFieldMask()),gl(De.mutation,ee,De.mutation.getFieldMask(),ji.now())):g.set(ee.key,Uo.empty())}),this.recalculateAndSaveOverlays(e,d).next(H=>(H.forEach((ee,De)=>g.set(ee,De)),t.forEach((ee,De)=>{var st;return M.set(ee,new a_(De,null!==(st=g.get(ee))&&void 0!==st?st:null))}),M))}recalculateAndSaveOverlays(e,t){const s=_c();let a=new mi((g,M)=>g-M),d=qr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(g=>{for(const M of g)M.keys().forEach(H=>{const ee=t.get(H);if(null===ee)return;let De=s.get(H)||Uo.empty();De=M.applyToLocalView(ee,De),s.set(H,De);const st=(a.get(M.batchId)||qr()).add(H);a=a.insert(M.batchId,st)})}).next(()=>{const g=[],M=a.getReverseIterator();for(;M.hasNext();){const H=M.getNext(),ee=H.key,De=H.value,st=ah();De.forEach(Bt=>{if(!d.has(Bt)){const un=md(t.get(Bt),s.get(Bt));null!==un&&st.set(Bt,un),d=d.add(Bt)}}),g.push(this.documentOverlayCache.saveOverlays(e,ee,st))}return Lt.waitFor(g)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(s=>this.recalculateAndSaveOverlays(e,s))}getDocumentsMatchingQuery(e,t,s){return jn.isDocumentKey((a=t).path)&&null===a.collectionGroup&&0===a.filters.length?this.getDocumentsMatchingDocumentQuery(e,t.path):Rl(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,s):this.getDocumentsMatchingCollectionQuery(e,t,s);var a}getNextDocuments(e,t,s,a){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,s,a).next(d=>{const g=a-d.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,s.largestBatchId,a-d.size):Lt.resolve(ka());let M=-1,H=d;return g.next(ee=>Lt.forEach(ee,(De,st)=>(M<st.largestBatchId&&(M=st.largestBatchId),d.get(De)?Lt.resolve():this.remoteDocumentCache.getEntry(e,De).next(Bt=>{H=H.insert(De,Bt)}))).next(()=>this.populateOverlays(e,ee,d)).next(()=>this.computeViews(e,H,ee,qr())).next(De=>({batchId:M,changes:ud(De)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new jn(t)).next(s=>{let a=Du();
1return s.isFoundDocument()&&(a=a.insert(s.key,s)),a})}getDocumentsMatchingCollectionGroupQuery(e,t,s){const a=t.collectionGroup;let d=Du();return this.indexManager.getCollectionParents(e,a).next(g=>Lt.forEach(g,M=>{const H=(ee=t,De=M.child(a),new Ml(De,null,ee.explicitOrderBy.slice(),ee.filters.slice(),ee.limit,ee.limitType,ee.startAt,ee.endAt));var ee,De;return this.getDocumentsMatchingCollectionQuery(e,H,s).next(ee=>{ee.forEach((De,st)=>{d=d.insert(De,st)})})}).next(()=>d))}getDocumentsMatchingCollectionQuery(e,t,s){let a;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,s.largestBatchId).next(d=>(a=d,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,s,a))).next(d=>{a.forEach((M,H)=>{const ee=H.getKey();null===d.get(ee)&&(d=d.insert(ee,us.newInvalidDocument(ee)))});let g=Du();return d.forEach((M,H)=>{const ee=a.get(M);void 0!==ee&&gl(ee.mutation,H,Uo.empty(),ji.now()),Zl(t,H)&&(g=g.insert(M,H))}),g})}}class l_{constructor(e){this.serializer=e,this.cs=new Map,this.hs=new Map}getBundleMetadata(e,t){return Lt.resolve(this.cs.get(t))}saveBundleMetadata(e,t){var s;return this.cs.set(t.id,{id:(s=t).id,version:s.version,createTime:ti(s.createTime)}),Lt.resolve()}getNamedQuery(e,t){return Lt.resolve(this.hs.get(t))}saveNamedQuery(e,t){return this.hs.set(t.name,{name:(s=t).name,query:$p(s.bundledQuery),readTime:ti(s.readTime)}),Lt.resolve();var s}}class c_{constructor(){this.overlays=new mi(jn.comparator),this.ls=new Map}getOverlay(e,t){return Lt.resolve(this.overlays.get(t))}getOverlays(e,t){const s=ka();return Lt.forEach(t,a=>this.getOverlay(e,a).next(d=>{null!==d&&s.set(a,d)})).next(()=>s)}saveOverlays(e,t,s){return s.forEach((a,d)=>{this.we(e,t,d)}),Lt.resolve()}removeOverlaysForBatchId(e,t,s){const a=this.ls.get(s);return void 0!==a&&(a.forEach(d=>this.overlays=this.overlays.remove(d)),this.ls.delete(s)),Lt.resolve()}getOverlaysForCollection(e,t,s){const a=ka(),d=t.length+1,g=new jn(t.child("")),M=this.overlays.getIteratorFrom(g);for(;M.hasNext();){const H=M.getNext().value,ee=H.getKey();if(!t.isPrefixOf(ee.path))break;ee.path.length===d&&H.largestBatchId>s&&a.set(H.getKey(),H)}return Lt.resolve(a)}getOverlaysForCollectionGroup(e,t,s,a){let d=new mi((ee,De)=>ee-De);const g=this.overlays.getIterator();for(;g.hasNext();){const ee=g.getNext().value;if(ee.getKey().getCollectionGroup()===t&&ee.largestBatchId>s){let De=d.get(ee.largestBatchId);null===De&&(De=ka(),d=d.insert(ee.largestBatchId,De)),De.set(ee.getKey(),ee)}}const M=ka(),H=d.getIterator();for(;H.hasNext()&&(H.getNext().value.forEach((ee,De)=>M.set(ee,De)),!(M.size()>=a)););return Lt.resolve(M)}we(e,t,s){const a=this.overlays.get(s.key);if(null!==a){const g=this.ls.get(a.largestBatchId).delete(s.key);this.ls.set(a.largestBatchId,g)}this.overlays=this.overlays.insert(s.key,new hh(t,s));let d=this.ls.get(t);void 0===d&&(d=qr(),this.ls.set(t,d)),this.ls.set(t,d.add(s.key))}}class Xp{constructor(){this.fs=new Ii(Po.ds),this.ws=new Ii(Po._s)}isEmpty(){return this.fs.isEmpty()}addReference(e,t){const s=new Po(e,t);this.fs=this.fs.add(s),this.ws=this.ws.add(s)}gs(e,t){e.forEach(s=>this.addReference(s,t))}removeReference(e,t){this.ys(new Po(e,t))}ps(e,t){e.forEach(s=>this.removeReference(s,t))}Is(e){const t=new jn(new Pr([])),s=new Po(t,e),a=new Po(t,e+1),d=[];return this.ws.forEachInRange([s,a],g=>{this.ys(g),d.push(g.key)}),d}Ts(){this.fs.forEach(e=>this.ys(e))}ys(e){this.fs=this.fs.delete(e),this.ws=this.ws.delete(e)}Es(e){const t=new jn(new Pr([])),s=new Po(t,e),a=new Po(t,e+1);let d=qr();return this.ws.forEachInRange([s,a],g=>{d=d.add(g.key)}),d}containsKey(e){const t=new Po(e,0),s=this.fs.firstAfterOrEqual(t);return null!==s&&e.isEqual(s.key)}}class Po{constructor(e,t){this.key=e,this.As=t}static ds(e,t){return jn.comparator(e.key,t.key)||Jn(e.As,t.As)}static _s(e,t){return Jn(e.As,t.As)||jn.comparator(e.key,t.key)}}class Rm{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.vs=1,this.Rs=new Ii(Po.ds)}checkEmpty(e){return Lt.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,s,a){const d=this.vs;this.vs++;const g=new yd(d,t,s,a);
1this.mutationQueue.push(g);for(const M of a)this.Rs=this.Rs.add(new Po(M.key,d)),this.indexManager.addToCollectionParentIndex(e,M.key.path.popLast());return Lt.resolve(g)}lookupMutationBatch(e,t){return Lt.resolve(this.Ps(t))}getNextMutationBatchAfterBatchId(e,t){const a=this.bs(t+1),d=a<0?0:a;return Lt.resolve(this.mutationQueue.length>d?this.mutationQueue[d]:null)}getHighestUnacknowledgedBatchId(){return Lt.resolve(0===this.mutationQueue.length?-1:this.vs-1)}getAllMutationBatches(e){return Lt.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const s=new Po(t,0),a=new Po(t,Number.POSITIVE_INFINITY),d=[];return this.Rs.forEachInRange([s,a],g=>{const M=this.Ps(g.As);d.push(M)}),Lt.resolve(d)}getAllMutationBatchesAffectingDocumentKeys(e,t){let s=new Ii(Jn);return t.forEach(a=>{const d=new Po(a,0),g=new Po(a,Number.POSITIVE_INFINITY);this.Rs.forEachInRange([d,g],M=>{s=s.add(M.As)})}),Lt.resolve(this.Vs(s))}getAllMutationBatchesAffectingQuery(e,t){const s=t.path,a=s.length+1;let d=s;jn.isDocumentKey(d)||(d=d.child(""));const g=new Po(new jn(d),0);let M=new Ii(Jn);return this.Rs.forEachWhile(H=>{const ee=H.key.path;return!!s.isPrefixOf(ee)&&(ee.length===a&&(M=M.add(H.As)),!0)},g),Lt.resolve(this.Vs(M))}Vs(e){const t=[];return e.forEach(s=>{const a=this.Ps(s);null!==a&&t.push(a)}),t}removeMutationBatch(e,t){Xn(0===this.Ss(t.batchId,"removed")),this.mutationQueue.shift();let s=this.Rs;return Lt.forEach(t.mutations,a=>{const d=new Po(a.key,t.batchId);return s=s.delete(d),this.referenceDelegate.markPotentiallyOrphaned(e,a.key)}).next(()=>{this.Rs=s})}Cn(e){}containsKey(e,t){const s=new Po(t,0),a=this.Rs.firstAfterOrEqual(s);return Lt.resolve(t.isEqual(a&&a.key))}performConsistencyCheck(e){return Lt.resolve()}Ss(e,t){return this.bs(e)}bs(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Ps(e){const t=this.bs(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class Jc{constructor(e){this.Ds=e,this.docs=new mi(jn.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const s=t.key,a=this.docs.get(s),d=a?a.size:0,g=this.Ds(t);return this.docs=this.docs.insert(s,{document:t.mutableCopy(),size:g}),this.size+=g-d,this.indexManager.addToCollectionParentIndex(e,s.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const s=this.docs.get(t);return Lt.resolve(s?s.document.mutableCopy():us.newInvalidDocument(t))}getEntries(e,t){let s=xa();return t.forEach(a=>{const d=this.docs.get(a);s=s.insert(a,d?d.document.mutableCopy():us.newInvalidDocument(a))}),Lt.resolve(s)}getDocumentsMatchingQuery(e,t,s,a){let d=xa();const g=t.path,M=new jn(g.child("")),H=this.docs.getIteratorFrom(M);for(;H.hasNext();){const{key:ee,value:{document:De}}=H.getNext();if(!g.isPrefixOf(ee.path))break;ee.path.length>g.length+1||Fo(Wa(De),s)<=0||(a.has(De.key)||Zl(t,De))&&(d=d.insert(De.key,De.mutableCopy()))}return Lt.resolve(d)}getAllFromCollectionGroup(e,t,s,a){kn()}Cs(e,t){return Lt.forEach(this.docs,s=>t(s))}newChangeBuffer(e){return new u_(this)}getSize(e){return Lt.resolve(this.size)}}class u_ extends Sm{constructor(e){super(),this.os=e}applyChanges(e){const t=[];
vendor: 4,442 bytes, line 1
1return this.changes.forEach((s,a)=>{a.isValidDocument()?t.push(this.os.addEntry(e,a)):this.os.removeEntry(s)}),Lt.waitFor(t)}getFromCache(e,t){return this.os.getEntry(e,t)}getAllFromCache(e,t){return this.os.getEntries(e,t)}}class Jp{constructor(e){this.persistence=e,this.xs=new pl(t=>dl(t),hl),this.lastRemoteSnapshotVersion=cr.min(),this.highestTargetId=0,this.Ns=0,this.ks=new Xp,this.targetCount=0,this.Ms=Yc.kn()}forEachTarget(e,t){return this.xs.forEach((s,a)=>t(a)),Lt.resolve()}getLastRemoteSnapshotVersion(e){return Lt.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Lt.resolve(this.Ns)}allocateTargetId(e){return this.highestTargetId=this.Ms.next(),Lt.resolve(this.highestTargetId)}setTargetsMetadata(e,t,s){return s&&(this.lastRemoteSnapshotVersion=s),t>this.Ns&&(this.Ns=t),Lt.resolve()}Fn(e){this.xs.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Ms=new Yc(t),this.highestTargetId=t),e.sequenceNumber>this.Ns&&(this.Ns=e.sequenceNumber)}addTargetData(e,t){return this.Fn(t),this.targetCount+=1,Lt.resolve()}updateTargetData(e,t){return this.Fn(t),Lt.resolve()}removeTargetData(e,t){return this.xs.delete(t.target),this.ks.Is(t.targetId),this.targetCount-=1,Lt.resolve()}removeTargets(e,t,s){let a=0;const d=[];return this.xs.forEach((g,M)=>{M.sequenceNumber<=t&&null===s.get(M.targetId)&&(this.xs.delete(g),d.push(this.removeMatchingKeysForTargetId(e,M.targetId)),a++)}),Lt.waitFor(d).next(()=>a)}getTargetCount(e){return Lt.resolve(this.targetCount)}getTargetData(e,t){const s=this.xs.get(t)||null;return Lt.resolve(s)}addMatchingKeys(e,t,s){return this.ks.gs(t,s),Lt.resolve()}removeMatchingKeys(e,t,s){this.ks.ps(t,s);const a=this.persistence.referenceDelegate,d=[];return a&&t.forEach(g=>{d.push(a.markPotentiallyOrphaned(e,g))}),Lt.waitFor(d)}removeMatchingKeysForTargetId(e,t){return this.ks.Is(t),Lt.resolve()}getMatchingKeysForTargetId(e,t){const s=this.ks.Es(t);return Lt.resolve(s)}containsKey(e,t){return Lt.resolve(this.ks.containsKey(t))}}class Ch{constructor(e,t){this.$s={},this.overlays={},this.Os=new Pt(0),this.Fs=!1,this.Fs=!0,this.referenceDelegate=e(this),this.Bs=new Jp(this),this.indexManager=new Jy,this.remoteDocumentCache=new Jc(s=>this.referenceDelegate.Ls(s)),this.serializer=new Sf(t),this.qs=new l_(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Fs=!1,Promise.resolve()}get started(){return this.Fs}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new c_,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let s=this.$s[e.toKey()];return s||(s=new Rm(t,this.referenceDelegate),this.$s[e.toKey()]=s),s}getTargetCache(){return this.Bs}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.qs}runTransaction(e,t,s){on("MemoryPersistence","Starting transaction:",e);const a=new d_(this.Os.next());return this.referenceDelegate.Us(),s(a).next(d=>this.referenceDelegate.Ks(a).next(()=>d)).toPromise().then(d=>(a.raiseOnCommittedEvent(),d))}Gs(e,t){return Lt.or(Object.values(this.$s).map(s=>()=>s.containsKey(e,t)))}}class d_ extends Bs{constructor(e){super(),this.currentSequenceNumber=e}}class Ff{constructor(e){this.persistence=e,this.Qs=new Xp,this.js=null}static zs(e){return new Ff(e)}get Ws(){if(this.js)return this.js;throw kn()}addReference(e,t,s){return this.Qs.addReference(s,t),this.Ws.delete(s.toString()),Lt.resolve()}removeReference(e,t,s){return this.Qs.removeReference(s,t),this.Ws.add(s.toString()),Lt.resolve()}markPotentiallyOrphaned(e,t){return this.Ws.add(t.toString()),Lt.resolve()}removeTarget(e,t){this.Qs.Is(t.targetId).forEach(a=>this.Ws.add(a.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(e,t.targetId).next(a=>{a.forEach(d=>this.Ws.add(d.toString()))}).next(()=>s.removeTargetData(e,t))}Us(){this.js=new Set}Ks(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Lt.forEach(this.Ws,s=>{const a=jn.fromPath(s);return this.Hs(e,a).next(d=>{d||t.removeEntry(a,cr.min())})}).next(()=>(this.js=null,t.apply(e)))}updateLimboDocument(e,t){return this.Hs(e,t).next(s=>{s?this.Ws.delete(t.toString()):this.Ws.add(t.toString())})}Ls(e){return 0}Hs(e,t){return Lt.or([()=>Lt.resolve(this.Qs.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Gs(e,t)])}}
1class h_{constructor(e){this.serializer=e}O(e,t,s,a){const d=new Ka("createOrUpgrade",t);var M;s<1&&a>=1&&(e.createObjectStore("owner"),(M=e).createObjectStore("mutationQueues",{keyPath:"userId"}),M.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",w,{unique:!0}),M.createObjectStore("documentMutations"),Om(e),function(M){M.createObjectStore("remoteDocuments")}(e));let g=Lt.resolve();return s<3&&a>=3&&(0!==s&&(function(M){M.deleteObjectStore("targetDocuments"),M.deleteObjectStore("targets"),M.deleteObjectStore("targetGlobal")}(e),Om(e)),g=g.next(()=>function(M){const H=M.store("targetGlobal"),ee={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:cr.min().toTimestamp(),targetCount:0};return H.put("targetGlobalKey",ee)}(d))),s<4&&a>=4&&(0!==s&&(g=g.next(()=>function(M,H){return H.store("mutations").j().next(ee=>{M.deleteObjectStore("mutations"),M.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",w,{unique:!0});const De=H.store("mutations"),st=ee.map(Bt=>De.put(Bt));return Lt.waitFor(st)})}(e,d))),g=g.next(()=>{!function(M){M.createObjectStore("clientMetadata",{keyPath:"clientId"})}(e)})),s<5&&a>=5&&(g=g.next(()=>this.Ys(d))),s<6&&a>=6&&(g=g.next(()=>(function(M){M.createObjectStore("remoteDocumentGlobal")}(e),this.Xs(d)))),s<7&&a>=7&&(g=g.next(()=>this.Zs(d))),s<8&&a>=8&&(g=g.next(()=>this.ti(e,d))),s<9&&a>=9&&(g=g.next(()=>{!function(M){M.objectStoreNames.contains("remoteDocumentChanges")&&M.deleteObjectStore("remoteDocumentChanges")}(e)})),s<10&&a>=10&&(g=g.next(()=>this.ei(d))),s<11&&a>=11&&(g=g.next(()=>{(function(M){M.createObjectStore("bundles",{keyPath:"bundleId"})})(e),function(M){M.createObjectStore("namedQueries",{keyPath:"name"})}(e)})),s<12&&a>=12&&(g=g.next(()=>{!function(M){const H=M.createObjectStore("documentOverlays",{keyPath:Lo});H.createIndex("collectionPathOverlayIndex",Zn,{unique:!1}),H.createIndex("collectionGroupOverlayIndex",ur,{unique:!1})}(e)})),s<13&&a>=13&&(g=g.next(()=>function(M){const H=M.createObjectStore("remoteDocumentsV14",{keyPath:z});H.createIndex("documentKeyIndex",he),H.createIndex("collectionGroupIndex",Ce)}(e)).next(()=>this.ni(e,d)).next(()=>e.deleteObjectStore("remoteDocuments"))),s<14&&a>=14&&(g=g.next(()=>this.si(e,d))),s<15&&a>=15&&(g=g.next(()=>function(M){M.createObjectStore("indexConfiguration",{keyPath:"indexId",autoIncrement:!0}).createIndex("collectionGroupIndex","collectionGroup",{unique:!1}),M.createObjectStore("indexState",{keyPath:Ur}).createIndex("sequenceNumberIndex",Zi,{unique:!1}),M.createObjectStore("indexEntries",{keyPath:qs}).createIndex("documentKeyIndex",Do,{unique:!1})}(e))),g}Xs(e){let t=0;return e.store("remoteDocuments").X((s,a)=>{t+=Gp(a)}).next(()=>{const s={byteSize:t};return e.store("remoteDocumentGlobal").put("remoteDocumentGlobalKey",s)})}Ys(e){const t=e.store("mutationQueues"),s=e.store("mutations");return t.j().next(a=>Lt.forEach(a,d=>{const g=IDBKeyRange.bound([d.userId,-1],[d.userId,d.lastAcknowledgedBatchId]);return s.j("userMutationsIndex",g).next(M=>Lt.forEach(M,H=>{Xn(H.userId===d.userId);const ee=Kc(this.serializer,H);return t_(e,d.userId,ee).next(()=>{})}))}))}Zs(e){const t=e.store("targetDocuments"),s=e.store("remoteDocuments");return e.store("targetGlobal").get("targetGlobalKey").next(a=>{const d=[];return s.X((g,M)=>{const H=new Pr(g),ee=[0,Ar(H)];d.push(t.get(ee).next(De=>De?Lt.resolve():t.put({targetId:0,path:Ar(H),sequenceNumber:a.highestListenSequenceNumber})))}).next(()=>Lt.waitFor(d))})}ti(e,t){e.createObjectStore("collectionParents",{keyPath:Vn});const s=t.store("collectionParents"),a=new Wp,d=g=>{if(a.add(g)){const M=g.lastSegment(),H=g.popLast();return s.put({collectionId:M,parent:Ar(H)})}};return t.store("remoteDocuments").X({Y:!0},(g,M)=>{const H=new Pr(g);return d(H.popLast())}).next(()=>t.store("documentMutations").X({Y:!0},([g,M,H],ee)=>{const De=Mr(M);return d(De.popLast())}))}ei(e){const t=e.store("targets");return t.X((s,a)=>{const d=Fu(a),g=mm(this.serializer,d);return t.put(g)})}ni(e,t){const s=t.store("remoteDocuments"),a=[];return s.X((d,g)=>{const M=t.store("remoteDocumentsV14"),H=(ee=g,ee.document?new jn(Pr.fromString(ee.document.name).popFirst(5)):ee.noDocument?jn.fromSegments(ee.
1noDocument.path):ee.unknownDocument?jn.fromSegments(ee.unknownDocument.path):kn()).path.toArray();var ee;const De={prefixPath:H.slice(0,H.length-2),collectionGroup:H[H.length-2],documentId:H[H.length-1],readTime:g.readTime||[0,0],unknownDocument:g.unknownDocument,noDocument:g.noDocument,document:g.document,hasCommittedMutations:!!g.hasCommittedMutations};a.push(M.put(De))}).next(()=>Lt.waitFor(a))}si(e,t){const s=t.store("mutations"),a=Qr(this.serializer),d=new Ch(Ff.zs,this.serializer.fe);return s.j().next(g=>{const M=new Map;return g.forEach(H=>{var ee;let De=null!==(ee=M.get(H.userId))&&void 0!==ee?ee:qr();Kc(this.serializer,H).keys().forEach(st=>De=De.add(st)),M.set(H.userId,De)}),Lt.forEach(M,(H,ee)=>{const De=new Un(ee),st=mh.de(this.serializer,De),Bt=d.getIndexManager(De),un=bh.de(De,this.serializer,Bt,d.referenceDelegate);return new Qp(a,un,st,Bt).recalculateAndSaveOverlaysForDocumentKeys(new Vo(t,Pt.ct),H).next()})})}}function Om(r){r.createObjectStore("targetDocuments",{keyPath:tn}).createIndex("documentTargetsIndex",Ln,{unique:!0}),r.createObjectStore("targets",{keyPath:"targetId"}).createIndex("queryTargetsIndex",_t,{unique:!0}),r.createObjectStore("targetGlobal")}const Vf="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";class eg{constructor(e,t,s,a,d,g,M,H,ee,De,st=15){if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=s,this.ii=d,this.window=g,this.document=M,this.ri=ee,this.oi=De,this.ui=st,this.Os=null,this.Fs=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ci=null,this.inForeground=!1,this.ai=null,this.hi=null,this.li=Number.NEGATIVE_INFINITY,this.fi=Bt=>Promise.resolve(),!eg.D())throw new gn(Ht.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Tm(this,a),this.di=t+"main",this.serializer=new Sf(H),this.wi=new Yr(this.di,this.ui,new h_(this.serializer)),this.Bs=new r_(this.referenceDelegate,this.serializer),this.remoteDocumentCache=Qr(this.serializer),this.qs=new Zy,this.window&&this.window.localStorage?this._i=this.window.localStorage:(this._i=null,!1===De&&or("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.mi().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new gn(Ht.FAILED_PRECONDITION,Vf);return this.gi(),this.yi(),this.pi(),this.runTransaction("getHighestListenSequenceNumber","readonly",e=>this.Bs.getHighestSequenceNumber(e))}).then(e=>{this.Os=new Pt(e,this.ri)}).then(()=>{this.Fs=!0}).catch(e=>(this.wi&&this.wi.close(),Promise.reject(e)))}Ii(e){var t=this;return this.fi=function(){var s=(0,c.Z)(function*(a){if(t.started)return e(a)});return function(a){return s.apply(this,arguments)}}(),e(this.isPrimary)}setDatabaseDeletedListener(e){this.wi.B(function(){var t=(0,c.Z)(function*(s){null===s.newVersion&&(yield e())});return function(s){return t.apply(this,arguments)}}())}setNetworkEnabled(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.ii.enqueueAndForget((0,c.Z)(function*(){t.started&&(yield t.mi())})))}mi(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",e=>_l(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.Ti(e).next(t=>{t||(this.isPrimary=!1,this.ii.enqueueRetryable(()=>this.fi(!1)))})}).next(()=>this.Ei(e)).next(t=>this.isPrimary&&!t?this.Ai(e).next(()=>!1):!!t&&this.vi(e).next(()=>!0))).catch(e=>{if(_(e))return on("IndexedDbPersistence","Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return on("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1}).then(e=>{this.isPrimary!==e&&this.ii.enqueueRetryable(()=>this.fi(e)),this.isPrimary=e})}Ti(e){return Ih(e).get("owner").next(t=>Lt.resolve(this.Ri(t)))}Pi(e){return _l(e).delete(this.clientId)}bi(){var e=this;return(0,c.Z)(function*(){if(e.isPrimary&&!e.Vi(e.li,18e5)){e.li=Date.now();const t=yield e.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",s=>
1{const a=Kr(s,"clientMetadata");return a.j().next(d=>{const g=e.Si(d,18e5),M=d.filter(H=>-1===g.indexOf(H));return Lt.forEach(M,H=>a.delete(H.clientId)).next(()=>M)})}).catch(()=>[]);if(e._i)for(const s of t)e._i.removeItem(e.Di(s.clientId))}})()}pi(){this.hi=this.ii.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.mi().then(()=>this.bi()).then(()=>this.pi()))}Ri(e){return!!e&&e.ownerId===this.clientId}Ei(e){return this.oi?Lt.resolve(!0):Ih(e).get("owner").next(t=>{if(null!==t&&this.Vi(t.leaseTimestampMs,5e3)&&!this.Ci(t.ownerId)){if(this.Ri(t)&&this.networkEnabled)return!0;if(!this.Ri(t)){if(!t.allowTabSynchronization)throw new gn(Ht.FAILED_PRECONDITION,Vf);return!1}}return!(!this.networkEnabled||!this.inForeground)||_l(e).j().next(s=>void 0===this.Si(s,5e3).find(a=>!(this.clientId===a.clientId||!(!this.networkEnabled&&a.networkEnabled||!this.inForeground&&a.inForeground&&this.networkEnabled===a.networkEnabled))))}).next(t=>(this.isPrimary!==t&&on("IndexedDbPersistence",`Client ${t?"is":"is not"} eligible for a primary lease.`),t))}shutdown(){var e=this;return(0,c.Z)(function*(){e.Fs=!1,e.xi(),e.hi&&(e.hi.cancel(),e.hi=null),e.Ni(),e.ki(),yield e.wi.runTransaction("shutdown","readwrite",["owner","clientMetadata"],t=>{const s=new Vo(t,Pt.ct);return e.Ai(s).next(()=>e.Pi(s))}),e.wi.close(),e.Mi()})()}Si(e,t){return e.filter(s=>this.Vi(s.updateTimeMs,t)&&!this.Ci(s.clientId))}$i(){return this.runTransaction("getActiveClients","readonly",e=>_l(e).j().next(t=>this.Si(t,18e5).map(s=>s.clientId)))}get started(){return this.Fs}getMutationQueue(e,t){return bh.de(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.Bs}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new e_(e,this.serializer.fe.databaseId)}getDocumentOverlayCache(e){return mh.de(this.serializer,e)}getBundleCache(){return this.qs}runTransaction(e,t,s){on("IndexedDbPersistence","Starting transaction:",e);const a="readonly"===t?"readonly":"readwrite",d=15===(g=this.ui)?Ys:14===g?po:13===g?ls:12===g?ei:11===g?br:void kn();var g;let M;return this.wi.runTransaction(e,a,d,H=>(M=new Vo(H,this.Os?this.Os.next():Pt.ct),"readwrite-primary"===t?this.Ti(M).next(ee=>!!ee||this.Ei(M)).next(ee=>{if(!ee)throw or(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.ii.enqueueRetryable(()=>this.fi(!1)),new gn(Ht.FAILED_PRECONDITION,ia);return s(M)}).next(ee=>this.vi(M).next(()=>ee)):this.Oi(M).next(()=>s(M)))).then(H=>(M.raiseOnCommittedEvent(),H))}Oi(e){return Ih(e).get("owner").next(t=>{if(null!==t&&this.Vi(t.leaseTimestampMs,5e3)&&!this.Ci(t.ownerId)&&!this.Ri(t)&&!(this.oi||this.allowTabSynchronization&&t.allowTabSynchronization))throw new gn(Ht.FAILED_PRECONDITION,Vf)})}vi(e){const t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Ih(e).put("owner",t)}static D(){return Yr.D()}Ai(e){const t=Ih(e);return t.get("owner").next(s=>this.Ri(s)?(on("IndexedDbPersistence","Releasing primary lease."),t.delete("owner")):Lt.resolve())}Vi(e,t){const s=Date.now();return!(e<s-t||e>s&&(or(`Detected an update time that is in the future: ${e} > ${s}`),1))}gi(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ai=()=>{this.ii.enqueueAndForget(()=>(this.inForeground="visible"===this.document.visibilityState,this.mi()))},this.document.addEventListener("visibilitychange",this.ai),this.inForeground="visible"===this.document.visibilityState)}Ni(){this.ai&&(this.document.removeEventListener("visibilitychange",this.ai),this.ai=null)}yi(){var e;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.ci=()=>{this.xi();const t=/(?:Version|Mobile)\/1[456]/;(0,pe.G6)()&&(navigator.appVersion.match(t)||navigator.userAgent.match(t))&&this.ii.enterRestrictedMode(!0),this.ii.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.ci))}ki(){this.ci&&(this.window.removeEventListener("pagehide",this.ci),this.ci=null)}Ci(e){var t;try{const s=null!==(null===(t=this._i)||void 0===t?void 0:t.getItem(this.Di(e)));return on("IndexedDbPersistence",`Client '${e}
1' ${s?"is":"is not"} zombied in LocalStorage`),s}catch(s){return or("IndexedDbPersistence","Failed to get zombied client id.",s),!1}}xi(){if(this._i)try{this._i.setItem(this.Di(this.clientId),String(Date.now()))}catch(e){or("Failed to set zombie client id.",e)}}Mi(){if(this._i)try{this._i.removeItem(this.Di(this.clientId))}catch{}}Di(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function Ih(r){return Kr(r,"owner")}function _l(r){return Kr(r,"clientMetadata")}function tg(r,e){let t=r.projectId;return r.isDefaultDatabase||(t+="."+r.database),"firestore/"+e+"/"+t+"/"}class Uf{constructor(e,t,s,a){this.targetId=e,this.fromCache=t,this.Fi=s,this.Bi=a}static Li(e,t){let s=qr(),a=qr();for(const d of t.docChanges)switch(d.type){case 0:s=s.add(d.doc.key);break;case 1:a=a.add(d.doc.key)}return new Uf(e,t.fromCache,s,a)}}class Dh{constructor(){this.qi=!1}initialize(e,t){this.Ui=e,this.indexManager=t,this.qi=!0}getDocumentsMatchingQuery(e,t,s,a){return this.Ki(e,t).next(d=>d||this.Gi(e,t,a,s)).next(d=>d||this.Qi(e,t))}Ki(e,t){if(nh(t))return Lt.resolve(null);let s=Go(t);return this.indexManager.getIndexType(e,s).next(a=>0===a?null:(null!==t.limit&&1===a&&(t=Cu(t,null,"F"),s=Go(t)),this.indexManager.getDocumentsMatchingTarget(e,s).next(d=>{const g=qr(...d);return this.Ui.getDocuments(e,g).next(M=>this.indexManager.getMinOffset(e,s).next(H=>{const ee=this.ji(t,M);return this.zi(t,ee,g,H.readTime)?this.Ki(e,Cu(t,null,"F")):this.Wi(e,ee,t,H)}))})))}Gi(e,t,s,a){return nh(t)||a.isEqual(cr.min())?this.Qi(e,t):this.Ui.getDocuments(e,s).next(d=>{const g=this.ji(t,d);return this.zi(t,g,s,a)?this.Qi(e,t):(Lr()<=_e.in.DEBUG&&on("QueryEngine","Re-using previous result from %s to execute query: %s",a.toString(),sh(t)),this.Wi(e,g,t,za(a,-1)))})}ji(e,t){let s=new Ii(ql(e));return t.forEach((a,d)=>{Zl(e,d)&&(s=s.add(d))}),s}zi(e,t,s,a){if(null===e.limit)return!1;if(s.size!==t.size)return!0;const d="F"===e.limitType?t.last():t.first();return!!d&&(d.hasPendingWrites||d.version.compareTo(a)>0)}Qi(e,t){return Lr()<=_e.in.DEBUG&&on("QueryEngine","Using full collection scan to execute query:",sh(t)),this.Ui.getDocumentsMatchingQuery(e,t,As.min())}Wi(e,t,s,a){return this.Ui.getDocumentsMatchingQuery(e,s,a).next(d=>(t.forEach(g=>{d=d.insert(g.key,g)}),d))}}class f_{constructor(e,t,s,a){this.persistence=e,this.Hi=t,this.serializer=a,this.Ji=new mi(Jn),this.Yi=new pl(d=>dl(d),hl),this.Xi=new Map,this.Zi=e.getRemoteDocumentCache(),this.Bs=e.getTargetCache(),this.qs=e.getBundleCache(),this.tr(s)}tr(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Qp(this.Zi,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Zi.setIndexManager(this.indexManager),this.Hi.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Ji))}}function ng(r,e,t,s){return new f_(r,e,t,s)}function rg(r,e){return ig.apply(this,arguments)}function ig(){return ig=(0,c.Z)(function*(r,e){const t=Rn(r);return yield t.persistence.runTransaction("Handle user change","readonly",s=>{let a;return t.mutationQueue.getAllMutationBatches(s).next(d=>(a=d,t.tr(e),t.mutationQueue.getAllMutationBatches(s))).next(d=>{const g=[],M=[];let H=qr();for(const ee of a){g.push(ee.batchId);for(const De of ee.mutations)H=H.add(De.key)}for(const ee of d){M.push(ee.batchId);for(const De of ee.mutations)H=H.add(De.key)}return t.localDocuments.getDocuments(s,H).next(ee=>({er:ee,removedBatchIds:g,addedBatchIds:M}))})})}),ig.apply(this,arguments)}function Pm(r){const e=Rn(r);return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.Bs.getLastRemoteSnapshotVersion(t))}function sg(r,e,t){let s=qr(),a=qr();return t.forEach(d=>s=s.add(d)),e.getEntries(r,s).next(d=>{let g=xa();return t.forEach((M,H)=>{const ee=d.get(M);H.isFoundDocument()!==ee.isFoundDocument()&&(a=a.add(M)),H.isNoDocument()&&H.version.isEqual(cr.min())?(e.removeEntry(M,H.readTime),g=g.insert(M,H)):!ee.isValidDocument()||H.version.compareTo(ee.version)>0||0===H.version.compareTo(ee.version)&&ee.hasPendingWrites?(e.addEntry(H),g=g.insert(M,H)):on("LocalStore","Ignoring outdated watch update for ",M,". Current version:",ee.version," Watch version:",H.version)}),{nr:g,sr:a}})}function m_(r,e){const t=Rn(r);return t.persistence.runTransaction("Get next mutation batch","readonly",s=>
1(void 0===e&&(e=-1),t.mutationQueue.getNextMutationBatchAfterBatchId(s,e)))}function ju(r,e){const t=Rn(r);return t.persistence.runTransaction("Allocate target","readwrite",s=>{let a;return t.Bs.getTargetData(s,e).next(d=>d?(a=d,Lt.resolve(a)):t.Bs.allocateTargetId(s).next(g=>(a=new wc(e,g,"TargetPurposeListen",s.currentSequenceNumber),t.Bs.addTargetData(s,a).next(()=>a))))}).then(s=>{const a=t.Ji.get(s.targetId);return(null===a||s.snapshotVersion.compareTo(a.snapshotVersion)>0)&&(t.Ji=t.Ji.insert(s.targetId,s),t.Yi.set(e,s.targetId)),s})}function Bu(r,e,t){return Th.apply(this,arguments)}function Th(){return Th=(0,c.Z)(function*(r,e,t){const s=Rn(r),a=s.Ji.get(e),d=t?"readwrite":"readwrite-primary";try{t||(yield s.persistence.runTransaction("Release target",d,g=>s.persistence.referenceDelegate.removeTarget(g,a)))}catch(g){if(!_(g))throw g;on("LocalStore",`Failed to update sequence numbers for target ${e}: ${g}`)}s.Ji=s.Ji.remove(e),s.Yi.delete(a.target)}),Th.apply(this,arguments)}function eu(r,e,t){const s=Rn(r);let a=cr.min(),d=qr();return s.persistence.runTransaction("Execute query","readonly",g=>function(M,H,ee){const De=Rn(M),st=De.Yi.get(ee);return void 0!==st?Lt.resolve(De.Ji.get(st)):De.Bs.getTargetData(H,ee)}(s,g,Go(e)).next(M=>{if(M)return a=M.lastLimboFreeSnapshotVersion,s.Bs.getMatchingKeysForTargetId(g,M.targetId).next(H=>{d=H})}).next(()=>s.Hi.getDocumentsMatchingQuery(g,e,t?a:cr.min(),t?d:qr())).next(M=>(km(s,oh(e),M),{documents:M,ir:d})))}function $u(r,e){const t=Rn(r),s=Rn(t.Bs),a=t.Ji.get(e);return a?Promise.resolve(a.target):t.persistence.runTransaction("Get target data","readonly",d=>s.le(d,e).next(g=>g?g.target:null))}function xm(r,e){const t=Rn(r),s=t.Xi.get(e)||cr.min();return t.persistence.runTransaction("Get new document changes","readonly",a=>t.Zi.getAllFromCollectionGroup(a,e,za(s,-1),Number.MAX_SAFE_INTEGER)).then(a=>(km(t,e,a),a))}function km(r,e,t){let s=r.Xi.get(e)||cr.min();t.forEach((a,d)=>{d.readTime.compareTo(s)>0&&(s=d.readTime)}),r.Xi.set(e,s)}function jf(){return jf=(0,c.Z)(function*(r,e,t,s){const a=Rn(r);let d=qr(),g=xa();for(const ee of t){const De=e.rr(ee.metadata.name);ee.document&&(d=d.add(De));const st=e.ur(ee);st.setReadTime(e.cr(ee.metadata.readTime)),g=g.insert(De,st)}const M=a.Zi.newChangeBuffer({trackRemovals:!0}),H=yield ju(a,(ee=s,Go(Lc(Pr.fromString(`__bundle__/docs/${ee}`)))));var ee;return a.persistence.runTransaction("Apply bundle documents","readwrite",ee=>sg(ee,M,g).next(De=>(M.apply(ee),De)).next(De=>a.Bs.removeMatchingKeysForTargetId(ee,H.targetId).next(()=>a.Bs.addMatchingKeys(ee,d,H.targetId)).next(()=>a.localDocuments.getLocalViewOfDocuments(ee,De.nr,De.sr)).next(()=>De.nr)))}),jf.apply(this,arguments)}function y_(r,e){return Bf.apply(this,arguments)}function Bf(){return Bf=(0,c.Z)(function*(r,e,t=qr()){const s=yield ju(r,Go($p(e.bundledQuery))),a=Rn(r);return a.persistence.runTransaction("Save named query","readwrite",d=>{const g=ti(e.readTime);if(s.snapshotVersion.compareTo(g)>=0)return a.qs.saveNamedQuery(d,e);const M=s.withResumeToken(Js.EMPTY_BYTE_STRING,g);return a.Ji=a.Ji.insert(M.targetId,M),a.Bs.updateTargetData(d,M).next(()=>a.Bs.removeMatchingKeysForTargetId(d,s.targetId)).next(()=>a.Bs.addMatchingKeys(d,t,s.targetId)).next(()=>a.qs.saveNamedQuery(d,e))})}),Bf.apply(this,arguments)}function Nm(r,e){return`firestore_clients_${r}_${e}`}function Fm(r,e,t){let s=`firestore_mutations_${r}_${t}`;return e.isAuthenticated()&&(s+=`_${e.uid}`),s}function Dd(r,e){return`firestore_targets_${r}_${e}`}class Ic{constructor(e,t,s,a){this.user=e,this.batchId=t,this.state=s,this.error=a}static ar(e,t,s){const a=JSON.parse(s);let d,g="object"==typeof a&&-1!==["pending","acknowledged","rejected"].indexOf(a.state)&&(void 0===a.error||"object"==typeof a.error);return g&&a.error&&(g="string"==typeof a.error.message&&"string"==typeof a.error.code,g&&(d=new gn(a.error.code,a.error.message))),g?new Ic(e,t,a.state,d):(or("SharedClientState",`Failed to parse mutation state for ID '${t}': ${s}`),null)}hr(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class Hu{constructor(e,t,s){this.targetId=e,this.state=t,this.error=s}static ar(e,t){const s=JSON.parse(t);let a,d="object"==typeof s&&-1!==["not-current","current","rejected"].indexOf(s.state)&&(void 0===s.error||"object"==typeof s.error);return d&&s.error&&(d="string"==typeof s.error.message&&"string"==typeof s.error.code,d&&(a=new gn(s.error.code,s.error.message))),d?new Hu(e,s.state,a):(or("SharedCl
1ientState",`Failed to parse target state for ID '${e}': ${t}`),null)}hr(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class tu{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static ar(e,t){const s=JSON.parse(t);let a="object"==typeof s&&s.activeTargetIds instanceof Array,d=Yl();for(let g=0;a&&g<s.activeTargetIds.length;++g)a=Qn(s.activeTargetIds[g]),d=d.add(s.activeTargetIds[g]);return a?new tu(e,d):(or("SharedClientState",`Failed to parse client data for instance '${e}': ${t}`),null)}}class Sh{constructor(e,t){this.clientId=e,this.onlineState=t}static ar(e){const t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new Sh(t.clientId,t.onlineState):(or("SharedClientState",`Failed to parse online state: ${e}`),null)}}class Td{constructor(){this.activeTargetIds=Yl()}lr(e){this.activeTargetIds=this.activeTargetIds.add(e)}dr(e){this.activeTargetIds=this.activeTargetIds.delete(e)}hr(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class $f{constructor(e,t,s,a,d){this.window=e,this.ii=t,this.persistenceKey=s,this.wr=a,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this._r=this.mr.bind(this),this.gr=new mi(Jn),this.started=!1,this.yr=[];const g=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=d,this.pr=Nm(this.persistenceKey,this.wr),this.Ir=`firestore_sequence_number_${this.persistenceKey}`,this.gr=this.gr.insert(this.wr,new Td),this.Tr=new RegExp(`^firestore_clients_${g}_([^_]*)$`),this.Er=new RegExp(`^firestore_mutations_${g}_(\\d+)(?:_(.*))?$`),this.Ar=new RegExp(`^firestore_targets_${g}_(\\d+)$`),this.vr=`firestore_online_state_${this.persistenceKey}`,this.Rr=function(M){return`firestore_bundle_loaded_v2_${M}`}(this.persistenceKey),this.window.addEventListener("storage",this._r)}static D(e){return!(!e||!e.localStorage)}start(){var e=this;return(0,c.Z)(function*(){const t=yield e.syncEngine.$i();for(const a of t){if(a===e.wr)continue;const d=e.getItem(Nm(e.persistenceKey,a));if(d){const g=tu.ar(a,d);g&&(e.gr=e.gr.insert(g.clientId,g))}}e.Pr();const s=e.storage.getItem(e.vr);if(s){const a=e.br(s);a&&e.Vr(a)}for(const a of e.yr)e.mr(a);e.yr=[],e.window.addEventListener("pagehide",()=>e.shutdown()),e.started=!0})()}writeSequenceNumber(e){this.setItem(this.Ir,JSON.stringify(e))}getAllActiveQueryTargets(){return this.Sr(this.gr)}isActiveQueryTarget(e){let t=!1;return this.gr.forEach((s,a)=>{a.activeTargetIds.has(e)&&(t=!0)}),t}addPendingMutation(e){this.Dr(e,"pending")}
1updateMutationState(e,t,s){this.Dr(e,t,s),this.Cr(e)}addLocalQueryTarget(e){let t="not-current";if(this.isActiveQueryTarget(e)){const s=this.storage.getItem(Dd(this.persistenceKey,e));if(s){const a=Hu.ar(e,s);a&&(t=a.state)}}return this.Nr.lr(e),this.Pr(),t}removeLocalQueryTarget(e){this.Nr.dr(e),this.Pr()}isLocalQueryTarget(e){return this.Nr.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(Dd(this.persistenceKey,e))}updateQueryState(e,t,s){this.kr(e,t,s)}handleUserChange(e,t,s){t.forEach(a=>{this.Cr(a)}),this.currentUser=e,s.forEach(a=>{this.addPendingMutation(a)})}setOnlineState(e){this.Mr(e)}notifyBundleLoaded(e){this.$r(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this._r),this.removeItem(this.pr),this.started=!1)}getItem(e){const t=this.storage.getItem(e);return on("SharedClientState","READ",e,t),t}setItem(e,t){on("SharedClientState","SET",e,t),this.storage.setItem(e,t)}removeItem(e){on("SharedClientState","REMOVE",e),this.storage.removeItem(e)}mr(e){var t=this;const s=e;if(s.storageArea===this.storage){if(on("SharedClientState","EVENT",s.key,s.newValue),s.key===this.pr)return void or("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.ii.enqueueRetryable((0,c.Z)(function*(){if(t.started){if(null!==s.key)if(t.Tr.test(s.key)){if(null==s.newValue){const a=t.Or(s.key);return t.Fr(a,null)}{const a=t.Br(s.key,s.newValue);if(a)return t.Fr(a.clientId,a)}}else if(t.Er.test(s.key)){if(null!==s.newValue){const a=t.Lr(s.key,s.newValue);if(a)return t.qr(a)}}else if(t.Ar.test(s.key)){if(null!==s.newValue){const a=t.Ur(s.key,s.newValue);if(a)return t.Kr(a)}}else if(s.key===t.vr){if(null!==s.newValue){const a=t.br(s.newValue);if(a)return t.Vr(a)}}else if(s.key===t.Ir){const a=function(d){let g=Pt.ct;if(null!=d)try{const M=JSON.parse(d);Xn("number"==typeof M),g=M}catch(M){or("SharedClientState","Failed to read sequence number from WebStorage",M)}return g}(s.newValue);a!==Pt.ct&&t.sequenceNumberHandler(a)}else if(s.key===t.Rr){const a=t.Gr(s.newValue);yield Promise.all(a.map(d=>t.syncEngine.Qr(d)))}}else t.yr.push(s)}))}}get Nr(){return this.gr.get(this.wr)}Pr(){this.setItem(this.pr,this.Nr.hr())}Dr(e,t,s){const a=new Ic(this.currentUser,e,t,s),d=Fm(this.persistenceKey,this.currentUser,e);this.setItem(d,a.hr())}Cr(e){const t=Fm(this.persistenceKey,this.currentUser,e);this.removeItem(t)}Mr(e){this.storage.setItem(this.vr,JSON.stringify({clientId:this.wr,onlineState:e}))}kr(e,t,s){const a=Dd(this.persistenceKey,e),d=new Hu(e,t,s);this.setItem(a,d.hr())}$r(e){const t=JSON.stringify(Array.from(e));this.setItem(this.Rr,t)}Or(e){const t=this.Tr.exec(e);return t?t[1]:null}Br(e,t){const s=this.Or(e);return tu.ar(s,t)}Lr(e,t){const s=this.Er.exec(e),a=Number(s[1]);return Ic.ar(new Un(void 0!==s[2]?s[2]:null),a,t)}Ur(e,t){const s=this.Ar.exec(e),a=Number(s[1]);return Hu.ar(a,t)}br(e){return Sh.ar(e)}Gr(e){return JSON.parse(e)}qr(e){var t=this;return(0,c.Z)(function*(){if(e.user.uid===t.currentUser.uid)return t.syncEngine.jr(e.batchId,e.state,e.error);on("SharedClientState",`Ignoring mutation for non-active user ${e.user.uid}`)})()}Kr(e){return this.syncEngine.zr(e.targetId,e.state,e.error)}Fr(e,t){const s=t?this.gr.insert(e,t):this.gr.remove(e),a=this.Sr(this.gr),d=this.Sr(s),g=[],M=[];return d.forEach(H=>{a.has(H)||g.push(H)}),a.forEach(H=>{d.has(H)||M.push(H)}),this.syncEngine.Wr(g,M).then(()=>{this.gr=s})}Vr(e){this.gr.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}Sr(e){let t=Yl();return e.forEach((s,a)=>{t=t.unionWith(a.activeTargetIds)}),t}}class Hf{constructor(){this.Hr=new Td,this.Jr={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}
1updateMutationState(e,t,s){}addLocalQueryTarget(e){return this.Hr.lr(e),this.Jr[e]||"not-current"}updateQueryState(e,t,s){this.Jr[e]=t}removeLocalQueryTarget(e){this.Hr.dr(e)}isLocalQueryTarget(e){return this.Hr.activeTargetIds.has(e)}clearQueryState(e){delete this.Jr[e]}getAllActiveQueryTargets(){return this.Hr.activeTargetIds}isActiveQueryTarget(e){return this.Hr.activeTargetIds.has(e)}start(){return this.Hr=new Td,Promise.resolve()}handleUserChange(e,t,s){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class og{Yr(e){}shutdown(){}}class zf{constructor(){this.Xr=()=>this.Zr(),this.eo=()=>this.no(),this.so=[],this.io()}Yr(e){this.so.push(e)}shutdown(){window.removeEventListener("online",this.Xr),window.removeEventListener("offline",this.eo)}io(){window.addEventListener("online",this.Xr),window.addEventListener("offline",this.eo)}Zr(){on("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.so)e(0)}no(){on("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.so)e(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Ah=null;function Mh(){return null===Ah?Ah=268435456+Math.round(2147483648*Math.random()):Ah++,"0x"+Ah.toString(16)}const __={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class v_{constructor(e){this.ro=e.ro,this.oo=e.oo}uo(e){this.co=e}ao(e){this.ho=e}onMessage(e){this.lo=e}close(){this.oo()}send(e){this.ro(e)}fo(){this.co()}wo(e){this.ho(e)}_o(e){this.lo(e)}}const ca="WebChannelConnection";class E_ extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId,this.mo=(e.ssl?"https":"http")+"://"+e.host,this.yo="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}get po(){return!1}Io(e,t,s,a,d){const g=Mh(),M=this.To(e,t);on("RestConnection",`Sending RPC '${e}' ${g}:`,M,s);const H={};return this.Eo(H,a,d),this.Ao(e,M,H,s).then(ee=>(on("RestConnection",`Received RPC '${e}' ${g}: `,ee),ee),ee=>{throw gi("RestConnection",`RPC '${e}' ${g} failed with error: `,ee,"url: ",M,"request:",s),ee})}vo(e,t,s,a,d,g){return this.Io(e,t,s,a,d)}Eo(e,t,s){e["X-Goog-Api-Client"]="gl-js/ fire/"+pi,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((a,d)=>e[d]=a),s&&s.headers.forEach((a,d)=>e[d]=a)}To(e,t){return`${this.mo}/v1/${t}:${__[e]}`}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Ao(e,t,s,a){const d=Mh();return new Promise((g,M)=>{const H=new ye;H.setWithCredentials(!0),H.listenOnce(ja.COMPLETE,()=>{try{switch(H.getLastErrorCode()){case Co.NO_ERROR:const De=H.getResponseJson();on(ca,`XHR for RPC '${e}' ${d} received:`,JSON.stringify(De)),g(De);break;case Co.TIMEOUT:on(ca,`RPC '${e}' ${d} timed out`),M(new gn(Ht.DEADLINE_EXCEEDED,"Request time out"));break;case Co.HTTP_ERROR:const st=H.getStatus();if(on(ca,`RPC '${e}' ${d} failed with status:`,st,"response text:",H.getResponseText()),st>0){let Bt=H.getResponseJson();Array.isArray(Bt)&&(Bt=Bt[0]);const un=Bt?.error;if(un&&un.status&&un.message){const Nn=function(er){const lr=er.toLowerCase().replace(/_/g,"-");return Object.values(Ht).indexOf(lr)>=0?lr:Ht.UNKNOWN}(un.status);M(new gn(Nn,un.message))}else M(new gn(Ht.UNKNOWN,"Server responded with status "+H.getStatus()))}else M(new gn(Ht.UNAVAILABLE,"Connection failed."));break;default:kn()}}finally{on(ca,`RPC '${e}' ${d} completed.`)}});const ee=JSON.stringify(a);on(ca,`RPC '${e}' ${d} sending request:`,a),H.send(t,"POST",ee,s,15)})}Ro(e,t,s){const a=Mh(),d=[this.mo,"/","google.firestore.v1.Firestore","/",e,"/channel"],g=Ua(),M=wl(),H={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`}
1,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},ee=this.longPollingOptions.timeoutSeconds;void 0!==ee&&(H.longPollingTimeout=Math.round(1e3*ee)),this.useFetchStreams&&(H.xmlHttpFactory=new ne({})),this.Eo(H.initMessageHeaders,t,s),H.encodeInitMessageHeaders=!0;const De=d.join("");on(ca,`Creating RPC '${e}' stream ${a}: ${De}`,H);const st=g.createWebChannel(De,H);let Bt=!1,un=!1;const Nn=new v_({ro:lr=>{un?on(ca,`Not sending because RPC '${e}' stream ${a} is closed:`,lr):(Bt||(on(ca,`Opening RPC '${e}' stream ${a} transport.`),st.open(),Bt=!0),on(ca,`RPC '${e}' stream ${a} sending:`,lr),st.send(lr))},oo:()=>st.close()}),er=(lr,si,Oi)=>{lr.listen(si,yi=>{try{Oi(yi)}catch(xo){setTimeout(()=>{throw xo},0)}})};return er(st,U.EventType.OPEN,()=>{un||on(ca,`RPC '${e}' stream ${a} transport opened.`)}),er(st,U.EventType.CLOSE,()=>{un||(un=!0,on(ca,`RPC '${e}' stream ${a} transport closed`),Nn.wo())}),er(st,U.EventType.ERROR,lr=>{un||(un=!0,gi(ca,`RPC '${e}' stream ${a} transport errored:`,lr),Nn.wo(new gn(Ht.UNAVAILABLE,"The operation could not be completed")))}),er(st,U.EventType.MESSAGE,lr=>{var si;if(!un){const Oi=lr.data[0];Xn(!!Oi);const xo=Oi.error||(null===(si=Oi[0])||void 0===si?void 0:si.error);if(xo){on(ca,`RPC '${e}' stream ${a} received error:`,xo);const mo=xo.status;let Ms=function(nd){const Ap=$s[nd];if(void 0!==Ap)return ml(Ap)}(mo),Fa=xo.message;void 0===Ms&&(Ms=Ht.INTERNAL,Fa="Unknown error status: "+mo+" with message "+xo.message),un=!0,Nn.wo(new gn(Ms,Fa)),st.close()}else on(ca,`RPC '${e}' stream ${a} received:`,Oi),Nn._o(Oi)}}),er(M,Ba.STAT_EVENT,lr=>{lr.stat===k.PROXY?on(ca,`RPC '${e}' stream ${a} detected buffering proxy`):lr.stat===k.NOPROXY&&on(ca,`RPC '${e}' stream ${a} detected no buffering proxy`)}),setTimeout(()=>{Nn.fo()},0),Nn}}function ag(){return typeof window<"u"?window:null}function Rh(){return typeof document<"u"?document:null}function Oh(r){return new dr(r,!0)}class lg{constructor(e,t,s=1e3,a=1.5,d=6e4){this.ii=e,this.timerId=t,this.Po=s,this.bo=a,this.Vo=d,this.So=0,this.Do=null,this.Co=Date.now(),this.reset()}reset(){this.So=0}xo(){this.So=this.Vo}No(e){this.cancel();const t=Math.floor(this.So+this.ko()),s=Math.max(0,Date.now()-this.Co),a=Math.max(0,t-s);a>0&&on("ExponentialBackoff",`Backing off for ${a} ms (base delay: ${this.So} ms, delay with jitter: ${t} ms, last attempt: ${s} ms ago)`),this.Do=this.ii.enqueueAfterDelay(this.timerId,a,()=>(this.Co=Date.now(),e())),this.So*=this.bo,this.So<this.Po&&(this.So=this.Po),this.So>this.Vo&&(this.So=this.Vo)}Mo(){null!==this.Do&&(this.Do.skipDelay(),this.Do=null)}cancel(){null!==this.Do&&(this.Do.cancel(),this.Do=null)}ko(){return(Math.random()-.5)*this.So}}class qa{constructor(e,t,s,a,d,g,M,H){this.ii=e,this.$o=s,this.Oo=a,this.connection=d,this.authCredentialsProvider=g,this.appCheckCredentialsProvider=M,this.listener=H,this.state=0,this.Fo=0,this.Bo=null,this.Lo=null,this.stream=null,this.qo=new lg(e,t)}Uo(){return 1===this.state||5===this.state||this.Ko()}Ko(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Go()}stop(){var e=this;return(0,c.Z)(function*(){e.Uo()&&(yield e.close(0))})()}Qo(){this.state=0,this.qo.reset()}jo(){this.Ko()&&null===this.Bo&&(this.Bo=this.ii.enqueueAfterDelay(this.$o,6e4,()=>this.zo()))}Wo(e){this.Ho(),this.stream.send(e)}zo(){var e=this;return(0,c.Z)(function*(){if(e.Ko())return e.close(0)})()}Ho(){this.Bo&&(this.Bo.cancel(),this.Bo=null)}Jo(){this.Lo&&(this.Lo.cancel(),this.Lo=null)}close(e,t){var s=this;return(0,c.Z)(function*(){s.Ho(),s.Jo(),s.qo.cancel(),s.Fo++,4!==e?s.qo.reset():t&&t.code===Ht.RESOURCE_EXHAUSTED?(or(t.toString()),or("Using maximum backoff delay to prevent overloading the backend."),s.qo.xo()):t&&t.code===Ht.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.Yo(),s.stream.close(),s.stream=null),s.state=e,yield s.listener.ao(t)})()}Yo(){}auth(){this.state=1;const e=this.Xo(this.Fo),t=this.Fo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,a])=>{this.Fo===t&&this.Zo(s,a)},s=>{e(()=>{const a=new gn(Ht.UNKNOWN,"Fetching auth token failed: "+s.message);return this.tu(a)})})}Zo(e,t){const s=this.Xo(this.Fo);this.stream=this.eu(e,t),this.stream.uo(()=>{s(()=>(this.state=2,this.Lo=this.ii.enqueueAfterDelay(this.Oo,1e4,()=>(this.Ko()&&(this.state=3),Promise.resolve())),this.listener.uo()))}),this.stream.ao(a=>{s(()=>this.tu(a))}),this.stream.onMessage(a=>{s(()=>this.onMessage(a))})}Go(){var e=this;this.state=5,this.qo.No((0,c.Z)(function*(){e.state=0,e.start()}))}tu(e){return on("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}Xo(e){return t=>{this.ii.enqueueAndForget(()=>this.Fo===e?t():(on("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class b_ extends qa{constructor(e,t,s,a,d,g){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,s,a,g),this.serializer
1=d}eu(e,t){return this.connection.Ro("Listen",e,t)}onMessage(e){this.qo.reset();const t=function ph(r,e){let t;if("targetChange"in e){const s="NO_CHANGE"===(H=e.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===H?1:"REMOVE"===H?2:"CURRENT"===H?3:"RESET"===H?4:kn(),a=e.targetChange.targetIds||[],d=function(H,ee){return H.useProto3Json?(Xn(void 0===ee||"string"==typeof ee),Js.fromBase64String(ee||"")):(Xn(void 0===ee||ee instanceof Uint8Array),Js.fromUint8Array(ee||new Uint8Array))}(r,e.targetChange.resumeToken),g=e.targetChange.cause,M=g&&function(H){const ee=void 0===H.code?Ht.UNKNOWN:ml(H.code);return new gn(ee,H.message||"")}(g);t=new I(s,a,d,M||null)}else if("documentChange"in e){const s=e.documentChange,a=Na(r,s.document.name),d=ti(s.document.updateTime),g=s.document.createTime?ti(s.document.createTime):cr.min(),M=new go({mapValue:{fields:s.document.fields}}),H=us.newFoundDocument(a,d,g,M);t=new h(s.targetIds||[],s.removedTargetIds||[],H.key,H)}else if("documentDelete"in e){const s=e.documentDelete,a=Na(r,s.document),d=s.readTime?ti(s.readTime):cr.min(),g=us.newNoDocument(a,d);t=new h([],s.removedTargetIds||[],g.key,g)}else if("documentRemove"in e){const s=e.documentRemove,a=Na(r,s.document);t=new h([],s.removedTargetIds||[],a,null)}else{if(!("filter"in e))return kn();{const s=e.filter,{count:a=0,unchangedNames:d}=s,g=new ba(a,d);t=new f(s.targetId,g)}}var H;return t}(this.serializer,e),s=function(a){if(!("targetChange"in a))return cr.min();const d=a.targetChange;return d.targetIds&&d.targetIds.length?cr.min():d.readTime?ti(d.readTime):cr.min()}(e);return this.listener.nu(t,s)}su(e){const t={};t.database=bc(this.serializer),t.addTarget=function(a,d){let g;const M=d.target;if(g=Fc(M)?{documents:Np(a,M)}:{query:Fp(a,M)},g.targetId=d.targetId,d.resumeToken.approximateByteSize()>0){g.resumeToken=Ec(a,d.resumeToken);const H=ts(a,d.expectedCount);null!==H&&(g.expectedCount=H)}else if(d.snapshotVersion.compareTo(cr.min())>0){g.readTime=jo(a,d.snapshotVersion.toTimestamp());const H=ts(a,d.expectedCount);null!==H&&(g.expectedCount=H)}return g}(this.serializer,e);const s=function fm(r,e){const t=function(s){switch(s){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return kn()}}(e.purpose);return null==t?null:{"goog-listen-tags":t}}(0,e);s&&(t.labels=s),this.Wo(t)}iu(e){const t={};t.database=bc(this.serializer),t.removeTarget=e,this.Wo(t)}}class w_ extends qa{constructor(e,t,s,a,d,g){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,s,a,g),this.serializer=d,this.ru=!1}get ou(){return this.ru}start(){this.ru=!1,this.lastStreamToken=void 0,super.start()}Yo(){this.ru&&this.uu([])}eu(e,t){return this.connection.Ro("Write",e,t)}onMessage(e){if(Xn(!!e.streamToken),this.lastStreamToken=e.streamToken,this.ru){this.qo.reset();const t=function hm(r,e){return r&&r.length>0?(Xn(void 0!==e),r.map(t=>function(s,a){let d=ti(s.updateTime?s.updateTime:a);return d.isEqual(cr.min())&&(d=ti(a)),new Au(d,s.transformResults||[])}(t,e))):[]}(e.writeResults,e.commitTime),s=ti(e.commitTime);return this.listener.cu(s,t)}return Xn(!e.writeResults||0===e.writeResults.length),this.ru=!0,this.listener.au()}hu(){const e={};e.database=bc(this.serializer),this.Wo(e)}uu(e){const t={streamToken:this.lastStreamToken,writes:e.map(s=>Nu(this.serializer,s))};this.Wo(t)}}class eE extends class{}{constructor(e,t,s,a){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=s,this.serializer=a,this.lu=!1}fu(){if(this.lu)throw new gn(Ht.FAILED_PRECONDITION,"The client has already been terminated.")}Io(e,t,s){return this.fu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([a,d])=>this.connection.Io(e,t,s,a,d)).catch(a=>{throw"FirebaseError"===a.name?(a.code===Ht.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),a):new gn(Ht.UNKNOWN,a.toString())})}vo(e,t,s,a){return this.fu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([d,g])=>this.connection.vo(e,t,s,d,g,a)).catch(d=>{throw"FirebaseError"===d.name?(d.code===Ht.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),d):new gn(Ht.UNKNOWN,d.toString())})}terminate(){this.lu=!0}}class C_{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.wu=0,this._u=null,this.mu=!0}gu(){0===this.wu&&(this.yu("Unknown"),this._u=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this._u=null,this.pu("Backend didn't respond within 10 seconds."),this.yu("Offline"),Promise.resolve())))}Iu(e){"Online"===this.state?this.yu("Unknown"):(this.wu++,this.wu>=1&&(this.Tu(),this.pu(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.yu("Offline")))}set(e){this.Tu(),this.wu=0,"Online"===e&&(this.mu=!1),this.yu(e)}yu(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}pu(e){const t=`Could not reach Cloud Firestore backend. ${e}\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.mu?(or(t),this.mu=!1):on("OnlineStateTracker",t)}Tu(){null!==this._u&&(this._u.cancel(),this._u=null)}}class I_{constructor(e,t,s,a,d){var g=this;this.localStore=e,this.datastore=t,this.asyncQueue=s,this.remoteSyncer={},this.Eu=[],this.Au=new Map,this.vu=new Set,this.Ru=[],this.Pu=d,this.Pu.Yr(M=>{s.enqueueAndForget((0,c.Z)(function*(){var H;
1ua(g)&&(on("RemoteStore","Restarting streams for network reachability change."),yield(H=(0,c.Z)(function*(ee){const De=Rn(ee);De.vu.add(4),yield Sd(De),De.bu.set("Unknown"),De.vu.delete(4),yield Ph(De)}),function(ee){return H.apply(this,arguments)})(g))}))}),this.bu=new C_(s,a)}}function Ph(r){return Kf.apply(this,arguments)}function Kf(){return Kf=(0,c.Z)(function*(r){if(ua(r))for(const e of r.Ru)yield e(!0)}),Kf.apply(this,arguments)}function Sd(r){return ug.apply(this,arguments)}function ug(){return ug=(0,c.Z)(function*(r){for(const e of r.Ru)yield e(!1)}),ug.apply(this,arguments)}function Ad(r,e){const t=Rn(r);t.Au.has(e.targetId)||(t.Au.set(e.targetId,e),fg(t)?hg(t):Pd(t).Ko()&&dg(t,e))}function xh(r,e){const t=Rn(r),s=Pd(t);t.Au.delete(e),s.Ko()&&Lm(t,e),0===t.Au.size&&(s.Ko()?s.jo():ua(t)&&t.bu.set("Unknown"))}function dg(r,e){if(r.Vu.qt(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(cr.min())>0){const t=r.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(t)}Pd(r).su(e)}function Lm(r,e){r.Vu.qt(e),Pd(r).iu(e)}function hg(r){r.Vu=new ge({getRemoteKeysForTarget:e=>r.remoteSyncer.getRemoteKeysForTarget(e),le:e=>r.Au.get(e)||null,ue:()=>r.datastore.serializer.databaseId}),Pd(r).start(),r.bu.gu()}function fg(r){return ua(r)&&!Pd(r).Uo()&&r.Au.size>0}function ua(r){return 0===Rn(r).vu.size}function Gf(r){r.Vu=void 0}function D_(r){return pg.apply(this,arguments)}function pg(){return pg=(0,c.Z)(function*(r){r.Au.forEach((e,t)=>{dg(r,e)})}),pg.apply(this,arguments)}function Vm(r,e){return gg.apply(this,arguments)}function gg(){return gg=(0,c.Z)(function*(r,e){Gf(r),fg(r)?(r.bu.Iu(e),hg(r)):r.bu.set("Unknown")}),gg.apply(this,arguments)}function T_(r,e,t){return mg.apply(this,arguments)}function mg(){return mg=(0,c.Z)(function*(r,e,t){if(r.bu.set("Online"),e instanceof I&&2===e.state&&e.cause)try{yield(s=(0,c.Z)(function*(a,d){const g=d.cause;for(const M of d.targetIds)a.Au.has(M)&&(yield a.remoteSyncer.rejectListen(M,g),a.Au.delete(M),a.Vu.removeTarget(M))}),function(a,d){return s.apply(this,arguments)})(r,e)}catch(s){on("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),s),yield Md(r,s)}else if(e instanceof h?r.Vu.Ht(e):e instanceof f?r.Vu.ne(e):r.Vu.Xt(e),!t.isEqual(cr.min()))try{const s=yield Pm(r.localStore);t.compareTo(s)>=0&&(yield function(a,d){const g=a.Vu.ce(d);
1return g.targetChanges.forEach((M,H)=>{if(M.resumeToken.approximateByteSize()>0){const ee=a.Au.get(H);ee&&a.Au.set(H,ee.withResumeToken(M.resumeToken,d))}}),g.targetMismatches.forEach((M,H)=>{const ee=a.Au.get(M);if(!ee)return;a.Au.set(M,ee.withResumeToken(Js.EMPTY_BYTE_STRING,ee.snapshotVersion)),Lm(a,M);const De=new wc(ee.target,M,H,ee.sequenceNumber);dg(a,De)}),a.remoteSyncer.applyRemoteEvent(g)}(r,t))}catch(s){on("RemoteStore","Failed to raise snapshot:",s),yield Md(r,s)}var s}),mg.apply(this,arguments)}function Md(r,e,t){return yg.apply(this,arguments)}function yg(){return yg=(0,c.Z)(function*(r,e,t){if(!_(e))throw e;r.vu.add(1),yield Sd(r),r.bu.set("Offline"),t||(t=()=>Pm(r.localStore)),r.asyncQueue.enqueueRetryable((0,c.Z)(function*(){on("RemoteStore","Retrying IndexedDB access"),yield t(),r.vu.delete(1),yield Ph(r)}))}),yg.apply(this,arguments)}function Um(r,e){return e().catch(t=>Md(r,t,e))}function Dc(r){return Rd.apply(this,arguments)}function Rd(){return Rd=(0,c.Z)(function*(r){const e=Rn(r),t=nu(e);let s=e.Eu.length>0?e.Eu[e.Eu.length-1].batchId:-1;for(;Zf(e);)try{const a=yield m_(e.localStore,s);if(null===a){0===e.Eu.length&&t.jo();break}s=a.batchId,tE(e,a)}catch(a){yield Md(e,a)}qf(e)&&S_(e)}),Rd.apply(this,arguments)}function Zf(r){return ua(r)&&r.Eu.length<10}function tE(r,e){r.Eu.push(e);const t=nu(r);t.Ko()&&t.ou&&t.uu(e.mutations)}function qf(r){return ua(r)&&!nu(r).Uo()&&r.Eu.length>0}function S_(r){nu(r).start()}function jm(r){return Yf.apply(this,arguments)}function Yf(){return Yf=(0,c.Z)(function*(r){nu(r).hu()}),Yf.apply(this,arguments)}function Bm(r){return Qf.apply(this,arguments)}function Qf(){return Qf=(0,c.Z)(function*(r){const e=nu(r);for(const t of r.Eu)e.uu(t.mutations)}),Qf.apply(this,arguments)}function _g(r,e,t){return Ll.apply(this,arguments)}function Ll(){return Ll=(0,c.Z)(function*(r,e,t){const s=r.Eu.shift(),a=dh.from(s,e,t);yield Um(r,()=>r.remoteSyncer.applySuccessfulWrite(a)),yield Dc(r)}),Ll.apply(this,arguments)}function Xf(r,e){return Od.apply(this,arguments)}function Od(){return Od=(0,c.Z)(function*(r,e){var t;e&&nu(r).ou&&(yield(t=(0,c.Z)(function*(s,a){if(If(d=a.code)&&d!==Ht.ABORTED){const g=s.Eu.shift();nu(s).Qo(),yield Um(s,()=>s.remoteSyncer.rejectFailedWrite(g.batchId,a)),yield Dc(s)}var d}),function(s,a){return t.apply(this,arguments)})(r,e)),qf(r)&&S_(r)}),Od.apply(this,arguments)}function zu(r,e){return vg.apply(this,arguments)}function vg(){return vg=(0,c.Z)(function*(r,e){const t=Rn(r);t.asyncQueue.verifyOperationInProgress(),on("RemoteStore","RemoteStore received new credentials");const s=ua(t);t.vu.add(3),yield Sd(t),s&&t.bu.set("Unknown"),yield t.remoteSyncer.handleCredentialChange(e),t.vu.delete(3),yield Ph(t)}),vg.apply(this,arguments)}function Jf(r,e){return ep.apply(this,arguments)}function ep(){return ep=(0,c.Z)(function*(r,e){const t=Rn(r);e?(t.vu.delete(2),yield Ph(t)):e||(t.vu.add(2),yield Sd(t),t.bu.set("Unknown"))}),ep.apply(this,arguments)}function Pd(r){return r.Su||(r.Su=function(e,t,s){const a=Rn(e);return a.fu(),new b_(t,a.connection,a.authCredentials,a.appCheckCredentials,a.serializer,s)}(r.datastore,r.asyncQueue,{uo:D_.bind(null,r),ao:Vm.bind(null,r),nu:T_.bind(null,r)}),r.Ru.push(function(){var e=(0,c.Z)(function*(t){t?(r.Su.Qo(),fg(r)?hg(r):r.bu.set("Unknown")):(yield r.Su.stop(),Gf(r))});return function(t){return e.apply(this,arguments)}}())),r.Su}function nu(r){return r.Du||(r.Du=function(e,t,s){const a=Rn(e);return a.fu(),new w_(t,a.connection,a.authCredentials,a.appCheckCredentials,a.serializer,s)}(r.datastore,r.asyncQueue,{uo:jm.bind(null,r),ao:Xf.bind(null,r),au:Bm.bind(null,r),cu:_g.bind(null,r)}),r.Ru.push(function(){var e=(0,c.Z)(function*(t){t?(r.Du.Qo(),yield Dc(r)):(yield r.Du.stop(),r.Eu.length>0&&(on("RemoteStore",`Stopping write stream with ${r.Eu.length} pending writes`),r.Eu=[]))});return function(t){return e.apply(this,arguments)}}())),r.Du}class ru{constructor(e,t,s,a,d){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=s,this.op=a,this.removalCallback=d,this.deferred=new es,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(g=>{})}static createAndSchedule(e,t,s,a,d){const g=Date.now()+s,M=new ru(e,t,g,a,d);return M.start(s),M}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new gn(Ht.CA
1NCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Wu(r,e){if(or("AsyncQueue",`${e}: ${r}`),_(r))return new gn(Ht.UNAVAILABLE,`${e}: ${r}`);throw r}class kh{constructor(e){this.comparator=e?(t,s)=>e(t,s)||jn.comparator(t.key,s.key):(t,s)=>jn.comparator(t.key,s.key),this.keyedMap=Du(),this.sortedSet=new mi(this.comparator)}static emptySet(e){return new kh(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,s)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof kh)||this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),s=e.sortedSet.getIterator();for(;t.hasNext();){const a=t.getNext().key,d=s.getNext().key;if(!a.isEqual(d))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"}copy(e,t){const s=new kh;return s.comparator=this.comparator,s.keyedMap=e,s.sortedSet=t,s}}class $m{constructor(){this.Cu=new mi(jn.comparator)}track(e){const t=e.doc.key,s=this.Cu.get(t);s?0!==e.type&&3===s.type?this.Cu=this.Cu.insert(t,e):3===e.type&&1!==s.type?this.Cu=this.Cu.insert(t,{type:s.type,doc:e.doc}):2===e.type&&2===s.type?this.Cu=this.Cu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===s.type?this.Cu=this.Cu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===s.type?this.Cu=this.Cu.remove(t):1===e.type&&2===s.type?this.Cu=this.Cu.insert(t,{type:1,doc:s.doc}):0===e.type&&1===s.type?this.Cu=this.Cu.insert(t,{type:2,doc:e.doc}):kn():this.Cu=this.Cu.insert(t,e)}xu(){const e=[];return this.Cu.inorderTraversal((t,s)=>{e.push(s)}),e}}class xd{constructor(e,t,s,a,d,g,M,H,ee){this.query=e,this.docs=t,this.oldDocs=s,this.docChanges=a,this.mutatedKeys=d,this.fromCache=g,this.syncStateChanged=M,this.excludesMetadataChanges=H,this.hasCachedResults=ee}static fromInitialDocuments(e,t,s,a,d){const g=[];return t.forEach(M=>{g.push({type:0,doc:M})}),new xd(e,t,kh.emptySet(t),g,s,a,!0,!1,d)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Ol(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,s=e.docChanges;if(t.length!==s.length)return!1;for(let a=0;a<t.length;a++)if(t[a].type!==s[a].type||!t[a].doc.isEqual(s[a].doc))return!1;return!0}}class A_{constructor(){this.Nu=void 0,this.listeners=[]}}class M_{constructor(){this.queries=new pl(e=>gf(e),Ol),this.onlineState="Unknown",this.ku=new Set}}function Eg(r,e){return bg.apply(this,arguments)}function bg(){return bg=(0,c.Z)(function*(r,e){const t=Rn(r),s=e.query;let a=!1,d=t.queries.get(s);if(d||(a=!0,d=new A_),a)try{d.Nu=yield t.onListen(s)}catch(g){const M=Wu(g,`Initialization of query '${sh(e.query)}' failed`);return void e.onError(M)}t.queries.set(s,d),d.listeners.push(e),e.Mu(t.onlineState),d.Nu&&e.$u(d.Nu)&&Nh(t)}),bg.apply(this,arguments)}function tp(r,e){return np.apply(this,arguments)}function np(){return np=(0,c.Z)(function*(r,e){const t=Rn(r),s=e.query;let a=!1;const d=t.queries.get(s);if(d){const g=d.listeners.indexOf(e);g>=0&&(d.listeners.splice(g,1),a=0===d.listeners.length)}if(a)return t.queries.delete(s),t.onUnlisten(s)}),np.apply(this,arguments)}function wg(r,e){const t=Rn(r);let s=!1;
1for(const a of e){const g=t.queries.get(a.query);if(g){for(const M of g.listeners)M.$u(a)&&(s=!0);g.Nu=a}}s&&Nh(t)}function R_(r,e,t){const s=Rn(r),a=s.queries.get(e);if(a)for(const d of a.listeners)d.onError(t);s.queries.delete(e)}function Nh(r){r.ku.forEach(e=>{e.next()})}class Cg{constructor(e,t,s){this.query=e,this.Ou=t,this.Fu=!1,this.Bu=null,this.onlineState="Unknown",this.options=s||{}}$u(e){if(!this.options.includeMetadataChanges){const s=[];for(const a of e.docChanges)3!==a.type&&s.push(a);e=new xd(e.query,e.docs,e.oldDocs,s,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.Fu?this.Lu(e)&&(this.Ou.next(e),t=!0):this.qu(e,this.onlineState)&&(this.Uu(e),t=!0),this.Bu=e,t}onError(e){this.Ou.error(e)}Mu(e){this.onlineState=e;let t=!1;return this.Bu&&!this.Fu&&this.qu(this.Bu,e)&&(this.Uu(this.Bu),t=!0),t}qu(e,t){return!e.fromCache||(!this.options.Ku||!("Offline"!==t))&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Lu(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.Bu&&this.Bu.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges}Uu(e){e=xd.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Fu=!0,this.Ou.next(e)}}class O_{constructor(e,t){this.Gu=e,this.byteLength=t}Qu(){return"metadata"in this.Gu}}class Hm{constructor(e){this.serializer=e}rr(e){return Na(this.serializer,e)}ur(e){return e.metadata.exists?kp(this.serializer,e.document,!1):us.newNoDocument(this.rr(e.metadata.name),this.cr(e.metadata.readTime))}cr(e){return ti(e)}}class P_{constructor(e,t,s){this.ju=e,this.localStore=t,this.serializer=s,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=zm(e)}zu(e){this.progress.bytesLoaded+=e.byteLength;let t=this.progress.documentsLoaded;if(e.Gu.namedQuery)this.queries.push(e.Gu.namedQuery);else if(e.Gu.documentMetadata){this.documents.push({metadata:e.Gu.documentMetadata}),e.Gu.documentMetadata.exists||++t;const s=Pr.fromString(e.Gu.documentMetadata.name);this.collectionGroups.add(s.get(s.length-2))}else e.Gu.document&&(this.documents[this.documents.length-1].document=e.Gu.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}Wu(e){const t=new Map,s=new Hm(this.serializer);for(const a of e)if(a.metadata.queries){const d=s.rr(a.metadata.name);for(const g of a.metadata.queries){const M=(t.get(g)||qr()).add(d);t.set(g,M)}}return t}complete(){var e=this;return(0,c.Z)(function*(){const t=yield function Id(r,e,t,s){return jf.apply(this,arguments)}(e.localStore,new Hm(e.serializer),e.documents,e.ju.id),s=e.Wu(e.documents);for(const a of e.queries)yield y_(e.localStore,a,s.get(a.name));return e.progress.taskState="Success",{progress:e.progress,Hu:e.collectionGroups,Ju:t}})()}}function zm(r){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:r.totalDocuments,totalBytes:r.totalBytes}}class Ig{constructor(e){this.key=e}}class Dg{constructor(e){this.key=e}}class Tg{constructor(e,t){this.query=e,this.Yu=t,this.Xu=null,this.hasCachedResults=!1,this.current=!1,this.Zu=qr(),this.mutatedKeys=qr(),this.tc=ql(e),this.ec=new kh(this.tc)}get nc(){return this.Yu}sc(e,t){const s=t?t.ic:new $m,a=t?t.ec:this.ec;let d=t?t.mutatedKeys:this.mutatedKeys,g=a,M=!1;const H="F"===this.query.limitType&&a.size===this.query.limit?a.last():null,ee="L"===this.query.limitType&&a.size===this.query.limit?a.first():null;if(e.inorderTraversal((De,st)=>{const Bt=a.get(De),un=Zl(this.query,st)?st:null,Nn=!!Bt&&this.mutatedKeys.has(Bt.key),er=!!un&&(un.hasLocalMutations||this.mutatedKeys.has(un.key)&&un.hasCommittedMutations);let lr=!1;Bt&&un?Bt.data.isEqual(un.data)?Nn!==er&&(s.track({type:3,doc:un}
1),lr=!0):this.rc(Bt,un)||(s.track({type:2,doc:un}),lr=!0,(H&&this.tc(un,H)>0||ee&&this.tc(un,ee)<0)&&(M=!0)):!Bt&&un?(s.track({type:0,doc:un}),lr=!0):Bt&&!un&&(s.track({type:1,doc:Bt}),lr=!0,(H||ee)&&(M=!0)),lr&&(un?(g=g.add(un),d=er?d.add(De):d.delete(De)):(g=g.delete(De),d=d.delete(De)))}),null!==this.query.limit)for(;g.size>this.query.limit;){const De="F"===this.query.limitType?g.last():g.first();g=g.delete(De.key),d=d.delete(De.key),s.track({type:1,doc:De})}return{ec:g,ic:s,zi:M,mutatedKeys:d}}rc(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,s){const a=this.ec;this.ec=e.ec,this.mutatedKeys=e.mutatedKeys;const d=e.ic.xu();d.sort((ee,De)=>function(st,Bt){const un=Nn=>{switch(Nn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return kn()}};return un(st)-un(Bt)}(ee.type,De.type)||this.tc(ee.doc,De.doc)),this.oc(s);const g=t?this.uc():[],M=0===this.Zu.size&&this.current?1:0,H=M!==this.Xu;return this.Xu=M,0!==d.length||H?{snapshot:new xd(this.query,e.ec,a,d,e.mutatedKeys,0===M,H,!1,!!s&&s.resumeToken.approximateByteSize()>0),cc:g}:{cc:g}}Mu(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({ec:this.ec,ic:new $m,mutatedKeys:this.mutatedKeys,zi:!1},!1)):{cc:[]}}ac(e){return!this.Yu.has(e)&&!!this.ec.has(e)&&!this.ec.get(e).hasLocalMutations}oc(e){e&&(e.addedDocuments.forEach(t=>this.Yu=this.Yu.add(t)),e.modifiedDocuments.forEach(t=>{}),e.removedDocuments.forEach(t=>this.Yu=this.Yu.delete(t)),this.current=e.current)}uc(){if(!this.current)return[];const e=this.Zu;this.Zu=qr(),this.ec.forEach(s=>{this.ac(s.key)&&(this.Zu=this.Zu.add(s.key))});const t=[];return e.forEach(s=>{this.Zu.has(s)||t.push(new Dg(s))}),this.Zu.forEach(s=>{e.has(s)||t.push(new Ig(s))}),t}hc(e){this.Yu=e.ir,this.Zu=qr();const t=this.sc(e.documents);return this.applyChanges(t,!0)}lc(){return xd.fromInitialDocuments(this.query,this.ec,this.mutatedKeys,0===this.Xu,this.hasCachedResults)}}class Wm{constructor(e,t,s){this.query=e,this.targetId=t,this.view=s}}class x_{constructor(e){this.key=e,this.fc=!1}}class nE{constructor(e,t,s,a,d,g){this.localStore=e,this.remoteStore=t,this.eventManager=s,this.sharedClientState=a,this.currentUser=d,this.maxConcurrentLimboResolutions=g,this.dc={},this.wc=new pl(M=>gf(M),Ol),this._c=new Map,this.mc=new Set,this.gc=new mi(jn.comparator),this.yc=new Map,this.Ic=new Xp,this.Tc={},this.Ec=new Map,this.Ac=Yc.Mn(),this.onlineState="Unknown",this.vc=void 0}get isPrimaryClient(){return!0===this.vc}}function Km(r,e){return Gm.apply(this,arguments)}function Gm(){return Gm=(0,c.Z)(function*(r,e){const t=lp(r);let s,a;const d=t.wc.get(e);if(d)s=d.targetId,t.sharedClientState.addLocalQueryTarget(s),a=d.view.lc();else{const g=yield ju(t.localStore,Go(e)),M=t.sharedClientState.addLocalQueryTarget(g.targetId);s=g.targetId,a=yield kd(t,e,s,"current"===M,g.resumeToken),t.isPrimaryClient&&Ad(t.remoteStore,g)}return a}),Gm.apply(this,arguments)}function kd(r,e,t,s,a){return Sg.apply(this,arguments)}function Sg(){return Sg=(0,c.Z)(function*(r,e,t,s,a){r.Rc=(st,Bt,un)=>{return(Nn=(0,c.Z)(function*(er,lr,si,Oi){let yi=lr.view.sc(si);yi.zi&&(yi=yield eu(er.localStore,lr.query,!1).then(({documents:Ms})=>lr.view.sc(Ms,yi)));const xo=Oi&&Oi.targetChanges.get(lr.targetId),mo=lr.view.applyChanges(yi,er.isPrimaryClient,xo);return Lh(er,lr.targetId,mo.cc),mo.snapshot}),function(er,lr,si,Oi){return Nn.apply(this,arguments)})(r,st,Bt,un);var Nn};const d=yield eu(r.localStore,e,!0),g=new Tg(e,d.ir),M=g.sc(d.documents),H=v.createSynthesizedTargetChangeForCurrentChange(t,s&&"Offline"!==r.onlineState,a),ee=g.applyChanges(M,r.isPrimaryClient,H);Lh(r,t,ee.cc);const De=new Wm(e,t,g);return r.wc.set(e,De),r._c.has(t)?r._c.get(t).push(e):r._c.set(t,[e]),ee.snapshot}),Sg.apply(this,arguments)}function k_(r,e){return Fh.apply(this,arguments)}function Fh(){return Fh=(0,c.Z)(function*(r,e){const t=Rn(r),s=t.wc.get(e),a=t._c.get(s.targetId);if(a.length>1)return t._c.set(s.targetId,a.filter(d=>!Ol(d,e))),void t.wc.delete(e);t.isPrimaryClient?(t.sharedClientState.removeLocalQueryTarget(s.targetId),t.sharedCl
1ientState.isActiveQueryTarget(s.targetId)||(yield Bu(t.localStore,s.targetId,!1).then(()=>{t.sharedClientState.clearQueryState(s.targetId),xh(t.remoteStore,s.targetId),Vl(t,s.targetId)}).catch(Zs))):(Vl(t,s.targetId),yield Bu(t.localStore,s.targetId,!0))}),Fh.apply(this,arguments)}function vl(){return vl=(0,c.Z)(function*(r,e,t){const s=zh(r);try{const a=yield function(d,g){const M=Rn(d),H=ji.now(),ee=g.reduce((Bt,un)=>Bt.add(un.key),qr());let De,st;return M.persistence.runTransaction("Locally write mutations","readwrite",Bt=>{let un=xa(),Nn=qr();return M.Zi.getEntries(Bt,ee).next(er=>{un=er,un.forEach((lr,si)=>{si.isValidDocument()||(Nn=Nn.add(lr))})}).next(()=>M.localDocuments.getOverlayedDocuments(Bt,un)).next(er=>{De=er;const lr=[];for(const si of g){const Oi=ch(si,De.get(si.key).overlayedDocument);null!=Oi&&lr.push(new rl(si.key,Oi,Eu(Oi.value.mapValue),bs.exists(!0)))}return M.mutationQueue.addMutationBatch(Bt,H,lr,g)}).next(er=>{st=er;const lr=er.applyToLocalDocumentSet(De,Nn);return M.documentOverlayCache.saveOverlays(Bt,er.batchId,lr)})}).then(()=>({batchId:st.batchId,changes:ud(De)}))}(s.localStore,e);s.sharedClientState.addPendingMutation(a.batchId),function(d,g,M){let H=d.Tc[d.currentUser.toKey()];H||(H=new mi(Jn)),H=H.insert(g,M),d.Tc[d.currentUser.toKey()]=H}(s,a.batchId,t),yield Ul(s,a.changes),yield Dc(s.remoteStore)}catch(a){const d=Wu(a,"Failed to persist write");t.reject(d)}}),vl.apply(this,arguments)}function Nd(r,e){return Zo.apply(this,arguments)}function Zo(){return Zo=(0,c.Z)(function*(r,e){const t=Rn(r);try{const s=yield function g_(r,e){const t=Rn(r),s=e.snapshotVersion;let a=t.Ji;return t.persistence.runTransaction("Apply remote event","readwrite-primary",d=>{const g=t.Zi.newChangeBuffer({trackRemovals:!0});a=t.Ji;const M=[];
1e.targetChanges.forEach((De,st)=>{const Bt=a.get(st);if(!Bt)return;M.push(t.Bs.removeMatchingKeys(d,De.removedDocuments,st).next(()=>t.Bs.addMatchingKeys(d,De.addedDocuments,st)));let un=Bt.withSequenceNumber(d.currentSequenceNumber);var Nn,er,lr;null!==e.targetMismatches.get(st)?un=un.withResumeToken(Js.EMPTY_BYTE_STRING,cr.min()).withLastLimboFreeSnapshotVersion(cr.min()):De.resumeToken.approximateByteSize()>0&&(un=un.withResumeToken(De.resumeToken,s)),a=a.insert(st,un),er=un,lr=De,(0===(Nn=Bt).resumeToken.approximateByteSize()||er.snapshotVersion.toMicroseconds()-Nn.snapshotVersion.toMicroseconds()>=3e8||lr.addedDocuments.size+lr.modifiedDocuments.size+lr.removedDocuments.size>0)&&M.push(t.Bs.updateTargetData(d,un))});let H=xa(),ee=qr();if(e.documentUpdates.forEach(De=>{e.resolvedLimboDocuments.has(De)&&M.push(t.persistence.referenceDelegate.updateLimboDocument(d,De))}),M.push(sg(d,g,e.documentUpdates).next(De=>{H=De.nr,ee=De.sr})),!s.isEqual(cr.min())){const De=t.Bs.getLastRemoteSnapshotVersion(d).next(st=>t.Bs.setTargetsMetadata(d,d.currentSequenceNumber,s));M.push(De)}return Lt.waitFor(M).next(()=>g.apply(d)).next(()=>t.localDocuments.getLocalViewOfDocuments(d,H,ee)).next(()=>H)}).then(d=>(t.Ji=a,d))}(t.localStore,e);
1e.targetChanges.forEach((a,d)=>{const g=t.yc.get(d);g&&(Xn(a.addedDocuments.size+a.modifiedDocuments.size+a.removedDocuments.size<=1),a.addedDocuments.size>0?g.fc=!0:a.modifiedDocuments.size>0?Xn(g.fc):a.removedDocuments.size>0&&(Xn(g.fc),g.fc=!1))}),yield Ul(t,s,e)}catch(s){yield Zs(s)}}),Zo.apply(this,arguments)}function iu(r,e,t){const s=Rn(r);if(s.isPrimaryClient&&0===t||!s.isPrimaryClient&&1===t){const a=[];s.wc.forEach((d,g)=>{const M=g.view.Mu(e);M.snapshot&&a.push(M.snapshot)}),function(d,g){const M=Rn(d);M.onlineState=g;let H=!1;M.queries.forEach((ee,De)=>{for(const st of De.listeners)st.Mu(g)&&(H=!0)}),H&&Nh(M)}(s.eventManager,e),a.length&&s.dc.nu(a),s.onlineState=e,s.isPrimaryClient&&s.sharedClientState.setOnlineState(e)}}function rp(r,e,t){return Ya.apply(this,arguments)}function Ya(){return Ya=(0,c.Z)(function*(r,e,t){const s=Rn(r);s.sharedClientState.updateQueryState(e,"rejected",t);const a=s.yc.get(e),d=a&&a.key;if(d){let g=new mi(jn.comparator);g=g.insert(d,us.newNoDocument(d,cr.min()));const M=qr().add(d),H=new vd(cr.min(),new Map,new mi(Jn),g,M);yield Nd(s,H),s.gc=s.gc.remove(d),s.yc.delete(e),Vh(s)}else yield Bu(s.localStore,e,!1).then(()=>Vl(s,e,t)).catch(Zs)}),Ya.apply(this,arguments)}function Ag(r,e){return su.apply(this,arguments)}function su(){return su=(0,c.Z)(function*(r,e){const t=Rn(r),s=e.batch.batchId;try{const a=yield function p_(r,e){const t=Rn(r);return t.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const a=e.batch.keys(),d=t.Zi.newChangeBuffer({trackRemovals:!0});return function(g,M,H,ee){const De=H.batch,st=De.keys();let Bt=Lt.resolve();return st.forEach(un=>{Bt=Bt.next(()=>ee.getEntry(M,un)).next(Nn=>{const er=H.docVersions.get(un);Xn(null!==er),Nn.version.compareTo(er)<0&&(De.applyToRemoteDocument(Nn,H),Nn.isValidDocument()&&(Nn.setReadTime(H.commitVersion),ee.addEntry(Nn)))})}),Bt.next(()=>g.mutationQueue.removeMutationBatch(M,De))}(t,s,e,d).next(()=>d.apply(s)).next(()=>t.mutationQueue.performConsistencyCheck(s)).next(()=>t.documentOverlayCache.removeOverlaysForBatchId(s,a,e.batch.batchId)).next(()=>t.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(g){let M=qr();for(let H=0;H<g.mutationResults.length;++H)g.mutationResults[H].transformResults.length>0&&(M=M.add(g.batch.mutations[H].key));return M}(e))).next(()=>t.localDocuments.getDocuments(s,a))})}(t.localStore,e);cu(t,s,null),lu(t,s),t.sharedClientState.updateMutationState(s,"acknowledged"),yield Ul(t,a)}catch(a){yield Zs(a)}}),su.apply(this,arguments)}function Fd(r,e,t){return ou.apply(this,arguments)}function ou(){return ou=(0,c.Z)(function*(r,e,t){const s=Rn(r);try{const a=yield function(d,g){const M=Rn(d);return M.persistence.runTransaction("Reject batch","readwrite-primary",H=>{let ee;return M.mutationQueue.lookupMutationBatch(H,g).next(De=>(Xn(null!==De),ee=De.keys(),M.mutationQueue.removeMutationBatch(H,De))).next(()=>
1M.mutationQueue.performConsistencyCheck(H)).next(()=>M.documentOverlayCache.removeOverlaysForBatchId(H,ee,g)).next(()=>M.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(H,ee)).next(()=>M.localDocuments.getDocuments(H,ee))})}(s.localStore,e);cu(s,e,t),lu(s,e),s.sharedClientState.updateMutationState(e,"rejected",t),yield Ul(s,a)}catch(a){yield Zs(a)}}),ou.apply(this,arguments)}function au(){return au=(0,c.Z)(function*(r,e){const t=Rn(r);ua(t.remoteStore)||on("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const s=yield function(d){const g=Rn(d);return g.persistence.runTransaction("Get highest unacknowledged batch id","readonly",M=>g.mutationQueue.getHighestUnacknowledgedBatchId(M))}(t.localStore);if(-1===s)return void e.resolve();const a=t.Ec.get(s)||[];a.push(e),t.Ec.set(s,a)}catch(s){const a=Wu(s,"Initialization of waitForPendingWrites() operation failed");e.reject(a)}}),au.apply(this,arguments)}function lu(r,e){(r.Ec.get(e)||[]).forEach(t=>{t.resolve()}),r.Ec.delete(e)}function cu(r,e,t){const s=Rn(r);let a=s.Tc[s.currentUser.toKey()];if(a){const d=a.get(e);d&&(t?d.reject(t):d.resolve(),a=a.remove(e)),s.Tc[s.currentUser.toKey()]=a}}function Vl(r,e,t=null){r.sharedClientState.removeLocalQueryTarget(e);for(const s of r._c.get(e))r.wc.delete(s),t&&r.dc.Pc(s,t);r._c.delete(e),r.isPrimaryClient&&r.Ic.Is(e).forEach(s=>{r.Ic.containsKey(s)||Ku(r,s)})}function Ku(r,e){r.mc.delete(e.path.canonicalString());const t=r.gc.get(e);null!==t&&(xh(r.remoteStore,t),r.gc=r.gc.remove(e),r.yc.delete(t),Vh(r))}function Lh(r,e,t){for(const s of t)s instanceof Ig?(r.Ic.addReference(s.key,e),Mg(r,s)):s instanceof Dg?(on("SyncEngine","Document no longer in limbo: "+s.key),r.Ic.removeReference(s.key,e),r.Ic.containsKey(s.key)||Ku(r,s.key)):kn()}function Mg(r,e){const t=e.key,s=t.path.canonicalString();r.gc.get(t)||r.mc.has(s)||(on("SyncEngine","New document in limbo: "+t),r.mc.add(s),Vh(r))}function Vh(r){for(;r.mc.size>0&&r.gc.size<r.maxConcurrentLimboResolutions;){const e=r.mc.values().next().value;r.mc.delete(e);const t=new jn(Pr.fromString(e)),s=r.Ac.next();r.yc.set(s,new x_(t)),r.gc=r.gc.insert(t,s),Ad(r.remoteStore,new wc(Go(Lc(t.path)),s,"TargetPurposeLimboResolution",Pt.ct))}}function Ul(r,e,t){return Uh.apply(this,arguments)}function Uh(){return Uh=(0,c.Z)(function*(r,e,t){const s=Rn(r),a=[],d=[],g=[];var M;s.wc.isEmpty()||(s.wc.forEach((M,H)=>{g.push(s.Rc(H,e,t).then(ee=>{if((ee||t)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(H.targetId,ee?.fromCache?"not-current":"current"),ee){a.push(ee);const De=Uf.Li(H.targetId,ee);d.push(De)}}))}),yield Promise.all(g),s.dc.nu(a),yield(M=(0,c.Z)(function*(H,ee){const De=Rn(H);try{yield De.persistence.runTransaction("notifyLocalViewChanges","readwrite",st=>Lt.forEach(ee,Bt=>Lt.forEach(Bt.Fi,un=>De.persistence.referenceDelegate.addReference(st,Bt.targetId,un)).next(()=>Lt.forEach(Bt.Bi,un=>De.persistence.referenceDelegate.removeReference(st,Bt.targetId,un)))))}catch(st){if(!_(st))throw st;on("LocalStore","Failed to update sequence numbers: "+st)}for(const st of ee){const Bt=st.targetId;if(!st.fromCache){const un=De.Ji.get(Bt),er=un.withLastLimboFreeSnapshotVersion(un.snapshotVersion);De.Ji=De.Ji.insert(Bt,er)}}}),function(H,ee){return M.apply(this,arguments)})(s.localStore,d))}),Uh.apply(this,arguments)}function Rg(r,e){return jh.apply(this,arguments)}function jh(){return jh=(0,c.Z)(function*(r,e){const t=Rn(r);if(!t.currentUser.isEqual(e)){on("SyncEngine","User change. New user:",e.toKey());const s=yield rg(t.localStore,e);t.currentUser=e,(a=t).Ec.forEach(g=>{g.forEach(M=>{M.reject(new gn(Ht.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),a.Ec.clear(),t.sharedClientState.handleUserChange(e,s.removedBatchIds,s.addedBatchIds),yield Ul(t,s.er)}var a}),jh.apply(this,arguments)}function Og(r,e){const t=Rn(r),s=t.yc.get(e);if(s&&s.fc)return qr().add(s.key);{let a=qr();const d=t._c.get(e);if(!d)return a;for(const g of d){const M=t.wc.get(g);a=a.unionWith(M.view.nc)}return a}}function Pg(r,e){return ip.apply(this,arguments)}function ip(){return ip=(0,c.Z)(function*(r,e){const t=Rn(r),s=yield eu(t.localStore,e.query,!0),a=e.view.hc(s);return t.isPrimaryClient&&Lh(t,e.targetId,a.cc),a}),ip.apply(this,arguments)}function N_(r,e){return sp.apply(this,arguments)}function sp(){return sp=(0,c.Z)(function*(r,e){const t=Rn(r);return xm(t.localStore,e).then(s=>Ul(t,s))}),sp.apply(this,arguments)}function qm(r,e,t,s){return op.apply(this,arguments)}function op(){return op=(0,c.Z)(function*(r,e,t,s){const a=Rn(r),d=yield function(g,M){const H=Rn(g),ee=Rn(H.mutation
1Queue);return H.persistence.runTransaction("Lookup mutation documents","readonly",De=>ee.Sn(De,M).next(st=>st?H.localDocuments.getDocuments(De,st):Lt.resolve(null)))}(a.localStore,e);var M;null!==d?("pending"===t?yield Dc(a.remoteStore):"acknowledged"===t||"rejected"===t?(cu(a,e,s||null),lu(a,e),M=e,Rn(Rn(a.localStore).mutationQueue).Cn(M)):kn(),yield Ul(a,d)):on("SyncEngine","Cannot apply mutation batch with id: "+e)}),op.apply(this,arguments)}function Bh(){return Bh=(0,c.Z)(function*(r,e){const t=Rn(r);if(lp(t),zh(t),!0===e&&!0!==t.vc){const s=t.sharedClientState.getAllActiveQueryTargets(),a=yield Ym(t,s.toArray());t.vc=!0,yield Jf(t.remoteStore,!0);for(const d of a)Ad(t.remoteStore,d)}else if(!1===e&&!1!==t.vc){const s=[];let a=Promise.resolve();t._c.forEach((d,g)=>{t.sharedClientState.isLocalQueryTarget(g)?s.push(g):a=a.then(()=>(Vl(t,g),Bu(t.localStore,g,!0))),xh(t.remoteStore,g)}),yield a,yield Ym(t,s),function(d){const g=Rn(d);g.yc.forEach((M,H)=>{xh(g.remoteStore,H)}),g.Ic.Ts(),g.yc=new Map,g.gc=new mi(jn.comparator)}(t),t.vc=!1,yield Jf(t.remoteStore,!1)}}),Bh.apply(this,arguments)}function Ym(r,e,t){return Vd.apply(this,arguments)}function Vd(){return Vd=(0,c.Z)(function*(r,e,t){const s=Rn(r),a=[],d=[];for(const g of e){let M;const H=s._c.get(g);if(H&&0!==H.length){M=yield ju(s.localStore,Go(H[0]));for(const ee of H){const De=s.wc.get(ee),st=yield Pg(s,De);st.snapshot&&d.push(st.snapshot)}}else{const ee=yield $u(s.localStore,g);M=yield ju(s.localStore,ee),yield kd(s,$h(ee),g,!1,M.resumeToken)}a.push(M)}return s.dc.nu(d),a}),Vd.apply(this,arguments)}function $h(r){return ld(r.path,r.collectionGroup,r.orderBy,r.filters,r.limit,"F",r.startAt,r.endAt)}function kg(r){const e=Rn(r);return Rn(Rn(e.localStore).persistence).$i()}function F_(r,e,t,s){return Ud.apply(this,arguments)}function Ud(){return Ud=(0,c.Z)(function*(r,e,t,s){const a=Rn(r);if(a.vc)return void on("SyncEngine","Ignoring unexpected query state notification.");const d=a._c.get(e);if(d&&d.length>0)switch(t){case"current":case"not-current":{const g=yield xm(a.localStore,oh(d[0])),M=vd.createSynthesizedRemoteEventForCurrentChange(e,"current"===t,Js.EMPTY_BYTE_STRING);yield Ul(a,g,M);break}case"rejected":yield Bu(a.localStore,e,!0),Vl(a,e,s);break;default:kn()}}),Ud.apply(this,arguments)}function ap(r,e,t){return Hh.apply(this,arguments)}function Hh(){return Hh=(0,c.Z)(function*(r,e,t){const s=lp(r);if(s.vc){for(const a of e){if(s._c.has(a)){on("SyncEngine","Adding an already active target "+a);continue}const d=yield $u(s.localStore,a),g=yield ju(s.localStore,d);yield kd(s,$h(d),g.targetId,!1,g.resumeToken),Ad(s.remoteStore,g)}
1for(const a of t)s._c.has(a)&&(yield Bu(s.localStore,a,!1).then(()=>{xh(s.remoteStore,a),Vl(s,a)}).catch(Zs))}}),Hh.apply(this,arguments)}function lp(r){const e=Rn(r);return e.remoteStore.remoteSyncer.applyRemoteEvent=Nd.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=Og.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=rp.bind(null,e),e.dc.nu=wg.bind(null,e.eventManager),e.dc.Pc=R_.bind(null,e.eventManager),e}function zh(r){const e=Rn(r);return e.remoteStore.remoteSyncer.applySuccessfulWrite=Ag.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=Fd.bind(null,e),e}class jd{constructor(){this.synchronizeTabs=!1}initialize(e){var t=this;return(0,c.Z)(function*(){t.serializer=Oh(e.databaseInfo.databaseId),t.sharedClientState=t.createSharedClientState(e),t.persistence=t.createPersistence(e),yield t.persistence.start(),t.localStore=t.createLocalStore(e),t.gcScheduler=t.createGarbageCollectionScheduler(e,t.localStore),t.indexBackfillerScheduler=t.createIndexBackfillerScheduler(e,t.localStore)})()}createGarbageCollectionScheduler(e,t){return null}createIndexBackfillerScheduler(e,t){return null}createLocalStore(e){return ng(this.persistence,new Dh,e.initialUser,this.serializer)}createPersistence(e){return new Ch(Ff.zs,this.serializer)}createSharedClientState(e){return new Hf}terminate(){var e=this;return(0,c.Z)(function*(){e.gcScheduler&&e.gcScheduler.stop(),yield e.sharedClientState.shutdown(),yield e.persistence.shutdown()})()}}class Wh extends jd{constructor(e,t,s){super(),this.Vc=e,this.cacheSizeBytes=t,this.forceOwnership=s,this.synchronizeTabs=!1}initialize(e){var t=()=>super.initialize,s=this;return(0,c.Z)(function*(){yield t().call(s,e),yield s.Vc.initialize(s,e),yield zh(s.Vc.syncEngine),yield Dc(s.Vc.remoteStore),yield s.persistence.Ii(()=>(s.gcScheduler&&!s.gcScheduler.started&&s.gcScheduler.start(),s.indexBackfillerScheduler&&!s.indexBackfillerScheduler.started&&s.indexBackfillerScheduler.start(),Promise.resolve()))})()}createLocalStore(e){return ng(this.persistence,new Dh,e.initialUser,this.serializer)}createGarbageCollectionScheduler(e,t){return new Im(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue,t)}createIndexBackfillerScheduler(e,t){const s=new ot(t,this.persistence);return new Ze(e.asyncQueue,s)}createPersistence(e){const t=tg(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),s=void 0!==this.cacheSizeBytes?wa.withCacheSize(this.cacheSizeBytes):wa.DEFAULT;return new eg(this.synchronizeTabs,t,e.clientId,s,e.asyncQueue,ag(),Rh(),this.serializer,this.sharedClientState,!!this.forceOwnership)}createSharedClientState(e){return new Hf}}class Xm extends Wh{constructor(e,t){super(e,t,!1),this.Vc=e,this.cacheSizeBytes=t,this.synchronizeTabs=!0}initialize(e){var t=()=>super.initialize,s=this;return(0,c.Z)(function*(){yield t().call(s,e);const a=s.Vc.syncEngine;s.sharedClientState instanceof $f&&(s.sharedClientState.syncEngine={jr:qm.bind(null,a),zr:F_.bind(null,a),Wr:ap.bind(null,a),$i:kg.bind(null,a),Qr:N_.bind(null,a)},yield s.sharedClientState.start()),yield s.persistence.Ii(function(){var d=(0,c.Z)(function*(g){yield function xg(r,e){return Bh.apply(this,arguments)}(s.Vc.syncEngine,g),s.gcScheduler&&(g&&!s.gcScheduler.started?s.gcScheduler.start():g||s.gcScheduler.stop()),s.indexBackfillerScheduler&&(g&&!s.indexBackfillerScheduler.started?s.indexBackfillerScheduler.start():g||s.indexBackfillerScheduler.stop())});return function(g){return d.apply(this,arguments)}}())})()}createSharedClientState(e){const t=ag();if(!$f.D(t))throw new gn(Ht.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const s=tg(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new $f(t,e.asyncQueue,s,e.clientId,e.initialUser)}}class Gu{initialize(e,t){var s=this;return(0,c.Z)(function*(){s.localStore||(s.localStore=e.localStore,s.sharedClientState=e.sharedClientState,s.datastore=s.createDatastore(t),s.remoteStore=s.createRemoteStore(t),s.eventManager=s.createEventManager(t),s.syncEngine=s.createSyncEngine(t,!e.synchronizeTabs),s.sharedClientState.onlineStateHandler=a=>iu(s.syncEngine,a,1),s.remoteStore.remoteSyncer.handleCredentialChange=Rg.bind(null,s.syncEngine),yield Jf(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(e){return new M_}createDatastore(e){const t=Oh(e.databaseInfo.databaseId),s=new E_(e.databaseInfo);return new eE(e.authCredentials,e.appCheckCredentials,s,t)}createRemoteStore(e){return t=this.localStore,s=this.datastore,a=e.asyncQueue,d=M=>iu(this.syncEngine,M,0),g=zf.D()?new zf:new og,new I_(t,s,a,d,g);var t,s,a,d,g}createSyncEngine(e,t){return function(s,a,d,g,M,H,ee){const De=new nE(s,a,d,g,M,H);return ee&&(De.vc=!0),De}(this.localStore,this.remoteStore,this.eventManager,this.sharedCl
1ientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}terminate(){return(e=(0,c.Z)(function*(t){const s=Rn(t);on("RemoteStore","RemoteStore shutting down."),s.vu.add(5),yield Sd(s),s.Pu.shutdown(),s.bu.set("Unknown")}),function(t){return e.apply(this,arguments)})(this.remoteStore);var e}}function Fg(r,e=10240){let t=0;return{read:()=>(0,c.Z)(function*(){if(t<r.byteLength){const s={value:r.slice(t,t+e),done:!1};return t+=e,s}return{done:!0}})(),cancel:()=>(0,c.Z)(function*(){})(),releaseLock(){},closed:Promise.resolve()}}class Kh{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Sc(this.observer.next,e)}error(e){this.observer.error?this.Sc(this.observer.error,e):or("Uncaught Error in snapshot listener:",e.toString())}Dc(){this.muted=!0}Sc(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}class Jm{constructor(e,t){this.Cc=e,this.serializer=t,this.metadata=new es,this.buffer=new Uint8Array,this.xc=new TextDecoder("utf-8"),this.Nc().then(s=>{s&&s.Qu()?this.metadata.resolve(s.Gu.metadata):this.metadata.reject(new Error(`The first element of the bundle is not a metadata, it is\n ${JSON.stringify(s?.Gu)}`))},s=>this.metadata.reject(s))}close(){return this.Cc.cancel()}getMetadata(){var e=this;return(0,c.Z)(function*(){return e.metadata.promise})()}bc(){var e=this;return(0,c.Z)(function*(){return yield e.getMetadata(),e.Nc()})()}Nc(){var e=this;return(0,c.Z)(function*(){const t=yield e.kc();if(null===t)return null;const s=e.xc.decode(t),a=Number(s);isNaN(a)&&e.Mc(`length string (${s}) is not valid number`);const d=yield e.$c(a);return new O_(JSON.parse(d),t.length+a)})()}Oc(){return this.buffer.findIndex(e=>e==="{".charCodeAt(0))}kc(){var e=this;return(0,c.Z)(function*(){for(;e.Oc()<0&&!(yield e.Fc()););if(0===e.buffer.length)return null;const t=e.Oc();t<0&&e.Mc("Reached the end of bundle when a length string is expected.");const s=e.buffer.slice(0,t);return e.buffer=e.buffer.slice(t),s})()}$c(e){var t=this;return(0,c.Z)(function*(){for(;t.buffer.length<e;)(yield t.Fc())&&t.Mc("Reached the end of bundle when more is expected.");const s=t.xc.decode(t.buffer.slice(0,e));return t.buffer=t.buffer.slice(e),s})()}Mc(e){throw this.Cc.cancel(),new Error(`Invalid bundle format: ${e}`)}Fc(){var e=this;return(0,c.Z)(function*(){const t=yield e.Cc.read();if(!t.done){const s=new Uint8Array(e.buffer.length+t.value.length);s.set(e.buffer),s.set(t.value,e.buffer.length),e.buffer=s}return t.done})()}}class L_{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}lookup(e){var t=this;return(0,c.Z)(function*(){if(t.ensureCommitNotCalled(),t.mutations.length>0)throw new gn(Ht.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");const s=yield(a=(0,c.Z)(function*(d,g){const M=Rn(d),H=bc(M.serializer)+"/documents",ee={documents:g.map(un=>Nl(M.serializer,un))},De=yield M.vo("BatchGetDocuments",H,ee,g.length),st=new Map;De.forEach(un=>{const Nn=function Xv(r,e){return"found"in e?function(t,s){Xn(!!s.found);const a=Na(t,s.found.name),d=ti(s.found.updateTime),g=s.found.createTime?ti(s.found.createTime):cr.min(),M=new go({mapValue:{fields:s.found.fields}});return us.newFoundDocument(a,d,g,M)}(r,e):"missing"in e?function(t,s){Xn(!!s.missing),Xn(!!s.readTime);const a=Na(t,s.missing),d=ti(s.readTime);return us.newNoDocument(a,d)}(r,e):kn()}(M.serializer,un);st.set(Nn.key.toString(),Nn)});const Bt=[];return g.forEach(un=>{const Nn=st.get(un.toString());Xn(!!Nn),Bt.push(Nn)}),Bt}),function(d,g){return a.apply(this,arguments)})(t.datastore,e);var a;return s.forEach(a=>t.recordVersion(a)),s})()}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(s){this.lastWriteError=s}this.writtenDocs.add(e.toString())}delete(e){this.write(new eo(e,this.precondition(e))),this.writtenDocs.add(e.toString())}commit(){var e=this;return(0,c.Z)(function*(){if(e.ensureCommitNotCalled(),e.lastWriteError)throw e.lastWriteError;
1const t=e.readVersions;var s;e.mutations.forEach(s=>{t.delete(s.key.toString())}),t.forEach((s,a)=>{const d=jn.fromPath(a);e.mutations.push(new xl(d,e.precondition(d)))}),yield(s=(0,c.Z)(function*(a,d){const g=Rn(a),M=bc(g.serializer)+"/documents",H={writes:d.map(ee=>Nu(g.serializer,ee))};yield g.Io("Commit",M,H)}),function(a,d){return s.apply(this,arguments)})(e.datastore,e.mutations),e.committed=!0})()}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw kn();t=cr.min()}const s=this.readVersions.get(e.key.toString());if(s){if(!t.isEqual(s))throw new gn(Ht.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){const t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?t.isEqual(cr.min())?bs.exists(!1):bs.updateTime(t):bs.none()}preconditionForUpdate(e){const t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(cr.min()))throw new gn(Ht.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return bs.updateTime(t)}return bs.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}class ey{constructor(e,t,s,a,d){this.asyncQueue=e,this.datastore=t,this.options=s,this.updateFunction=a,this.deferred=d,this.Bc=s.maxAttempts,this.qo=new lg(this.asyncQueue,"transaction_retry")}run(){this.Bc-=1,this.Lc()}Lc(){var e=this;this.qo.No((0,c.Z)(function*(){const t=new L_(e.datastore),s=e.qc(t);s&&s.then(a=>{e.asyncQueue.enqueueAndForget(()=>t.commit().then(()=>{e.deferred.resolve(a)}).catch(d=>{e.Uc(d)}))}).catch(a=>{e.Uc(a)})}))}qc(e){try{const t=this.updateFunction(e);return!Zt(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}}Uc(e){this.Bc>0&&this.Kc(e)?(this.Bc-=1,this.asyncQueue.enqueueAndForget(()=>(this.Lc(),Promise.resolve()))):this.deferred.reject(e)}Kc(e){if("FirebaseError"===e.name){const t=e.code;return"aborted"===t||"failed-precondition"===t||"already-exists"===t||!If(t)}return!1}}class ty{constructor(e,t,s,a){var d=this;this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=s,this.databaseInfo=a,this.user=Un.UNAUTHENTICATED,this.clientId=js.A(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var g=(0,c.Z)(function*(M){on("FirestoreClient","Received user=",M.uid),yield d.authCredentialListener(M),d.user=M});return function(M){return g.apply(this,arguments)}}()),this.appCheckCredentials.start(s,g=>(on("FirestoreClient","Received new app check token=",g),this.appCheckCredentialListener(g,this.user)))}getConfiguration(){var e=this;return(0,c.Z)(function*(){return{asyncQueue:e.asyncQueue,databaseInfo:e.databaseInfo,clientId:e.clientId,authCredentials:e.authCredentials,appCheckCredentials:e.appCheckCredentials,initialUser:e.user,maxConcurrentLimboResolutions:100}})()}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new gn(Ht.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var e=this;this.asyncQueue.enterRestrictedMode();const t=new es;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,c.Z)(function*(){try{e._onlineComponents&&(yield e._onlineComponents.terminate()),e._offlineComponents&&(yield e._offlineComponents.terminate()),e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve()}catch(s){const a=Wu(s,"Failed to shutdown persistence");t.reject(a)}})),t.promise}}function Bd(r,e){return $d.apply(this,arguments)}function $d(){return $d=(0,c.Z)(function*(r,e){r.asyncQueue.verifyOperationInProgress(),on("FirestoreClient","Initializing OfflineComponentProvider");const t=yield r.getConfiguration();yield e.initialize(t);let s=t.initialUser;r.setCredentialChangeListener(function(){var a=(0,c.Z)(function*(d){s.isEqual(d)||(yield rg(e.localStore,d),s=d)});return function(d){return a.apply(this,arguments)}}()),e.persistence.setDatabaseDeletedListener(()=>r.terminate()),r._offlineComponents=e}),$d.apply(this,arguments)}function Gh(r,e){return Zh.apply(this,arguments)}function Zh(){return Zh=(0,c.Z)(function*(r,e){r.asyncQueue.verifyOperationInProgress();const t=yield qh(r);on("FirestoreClient","Initializing OnlineComponentProvider");const s=yield r.getConfiguration();yield e.initialize(t,s),r.setCredentialChangeListener(a=>zu(e.remoteStore,a)),r.setAppCheckTokenChangeListener((a,d)=>zu(e.remoteStore,d)),r._onlineComponents=e}),Zh.apply(this,arguments)}function cp(r){return"FirebaseError"===r.name?r.code===Ht.FAILED_PRECONDITION||r.code===Ht.UNIMPLEMENT
1ED:!(typeof DOMException<"u"&&r instanceof DOMException)||22===r.code||20===r.code||11===r.code}function qh(r){return Yh.apply(this,arguments)}function Yh(){return Yh=(0,c.Z)(function*(r){if(!r._offlineComponents)if(r._uninitializedComponentsProvider){on("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Bd(r,r._uninitializedComponentsProvider._offline)}catch(e){const t=e;if(!cp(t))throw t;gi("Error using user provided cache. Falling back to memory cache: "+t),yield Bd(r,new jd)}}else on("FirestoreClient","Using default OfflineComponentProvider"),yield Bd(r,new jd);return r._offlineComponents}),Yh.apply(this,arguments)}function Hd(r){return Qh.apply(this,arguments)}function Qh(){return Qh=(0,c.Z)(function*(r){return r._onlineComponents||(r._uninitializedComponentsProvider?(on("FirestoreClient","Using user provided OnlineComponentProvider"),yield Gh(r,r._uninitializedComponentsProvider._online)):(on("FirestoreClient","Using default OnlineComponentProvider"),yield Gh(r,new Gu))),r._onlineComponents}),Qh.apply(this,arguments)}function up(r){return qh(r).then(e=>e.persistence)}function Zu(r){return qh(r).then(e=>e.localStore)}function Tc(r){return Hd(r).then(e=>e.remoteStore)}function Lg(r){return Hd(r).then(e=>e.syncEngine)}function uu(r){return Sc.apply(this,arguments)}function Sc(){return Sc=(0,c.Z)(function*(r){const e=yield Hd(r),t=e.eventManager;return t.onListen=Km.bind(null,e.syncEngine),t.onUnlisten=k_.bind(null,e.syncEngine),t}),Sc.apply(this,arguments)}function U_(r,e,t={}){const s=new es;return r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return function(a,d,g,M,H){const ee=new Kh({next:st=>{d.enqueueAndForget(()=>tp(a,De));const Bt=st.docs.has(g);!Bt&&st.fromCache?H.reject(new gn(Ht.UNAVAILABLE,"Failed to get document because the client is offline.")):Bt&&st.fromCache&&M&&"server"===M.source?H.reject(new gn(Ht.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.)')):H.resolve(st)},error:st=>H.reject(st)}),De=new Cg(Lc(g.path),ee,{includeMetadataChanges:!0,Ku:!0});return Eg(a,De)}(yield uu(r),r.asyncQueue,e,t,s)})),s.promise}function ry(r,e,t={}){const s=new es;return r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return function(a,d,g,M,H){const ee=new Kh({next:st=>{d.enqueueAndForget(()=>tp(a,De)),st.fromCache&&"server"===M.source?H.reject(new gn(Ht.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.)')):H.resolve(st)},error:st=>H.reject(st)}),De=new Cg(g,ee,{includeMetadataChanges:!0,Ku:!0});return Eg(a,De)}(yield uu(r),r.asyncQueue,e,t,s)})),s.promise}function jg(r){const e={};return void 0!==r.timeoutSeconds&&(e.timeoutSeconds=r.timeoutSeconds),e}const sy=new Map;function Bg(r,e,t){if(!t)throw new gn(Ht.INVALID_ARGUMENT,`Function ${r}() cannot be called with an empty ${e}.`)}function $g(r,e,t,s){if(!0===e&&!0===s)throw new gn(Ht.INVALID_ARGUMENT,`${r} and ${t} cannot be used together.`)}function oy(r){if(!jn.isDocumentKey(r))throw new gn(Ht.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${r} has ${r.length}.`)}function Hg(r){if(jn.isDocumentKey(r))throw new gn(Ht.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${r} has ${r.length}.`)}function Xh(r){if(void 0===r)return"undefined";if(null===r)return"null";if("string"==typeof r)return r.length>20&&(r=`${r.substring(0,20)}...`),JSON.stringify(r);if("number"==typeof r||"boolean"==typeof r)return""+r;if("object"==typeof r){if(r instanceof Array)return"an array";{const e=(t=r).constructor?t.constructor.name:null;return e?`a custom ${e} object`:"an object"}}var t;return"function"==typeof r?"a function":kn()}function fi(r,e){if("_delegate"in r&&(r=r._delegate),!(r instanceof e)){if(e.name===r.constructor.name)throw new gn(Ht.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const t=Xh(r);throw new gn(Ht.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${t}`)}}return r}function ay(r,e){if(e<=0)throw new gn(Ht.INVALID_ARGUMENT,`Function ${r}() requires a positive number, but it was: ${e}.`)}class ly{constructor(e){var t,s;if(void 0===e.host){if(void 0!==e.ssl)throw new gn(Ht.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.cache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new gn(Ht.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}$g("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==e.experimentalAutoDetectLongPolling&&!e.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=jg(null!==(s=e.experimentalLongPollingOptions)&&void 0!==s?s:{}
1),function(a){if(void 0!==a.timeoutSeconds){if(isNaN(a.timeoutSeconds))throw new gn(Ht.INVALID_ARGUMENT,`invalid long polling timeout: ${a.timeoutSeconds} (must not be NaN)`);if(a.timeoutSeconds<5)throw new gn(Ht.INVALID_ARGUMENT,`invalid long polling timeout: ${a.timeoutSeconds} (minimum allowed value is 5)`);if(a.timeoutSeconds>30)throw new gn(Ht.INVALID_ARGUMENT,`invalid long polling timeout: ${a.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===e.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class zd{constructor(e,t,s,a){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=s,this._app=a,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new ly({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new gn(Ht.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(e){if(this._settingsFrozen)throw new gn(Ht.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 ly(e),void 0!==e.credentials&&(this._authCredentials=function(t){if(!t)return new uc;switch(t.type){case"firstParty":return new Ro(t.sessionIndex||"0",t.iamToken||null,t.authTokenFactory||null);case"provider":return t.client;default:throw new gn(Ht.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.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(e){const t=sy.get(e);t&&(on("ComponentProvider","Removing Datastore"),sy.delete(e),t.terminate())}(this),Promise.resolve()}}function cy(r,e,t,s={}){var a;const d=(r=fi(r,zd))._getSettings(),g=`${e}:${t}`;if("firestore.googleapis.com"!==d.host&&d.host!==g&&gi("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),r._setSettings(Object.assign(Object.assign({},d),{host:g,ssl:!1})),s.mockUserToken){let M,H;if("string"==typeof s.mockUserToken)M=s.mockUserToken,H=Un.MOCK_USER;else{M=(0,pe.Sg)(s.mockUserToken,null===(a=r._app)||void 0===a?void 0:a.options.projectId);const ee=s.mockUserToken.sub||s.mockUserToken.user_id;if(!ee)throw new gn(Ht.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");H=new Un(ee)}r._authCredentials=new Aa(new Qa(M,H))}}class to{constructor(e,t,s){this.converter=t,this._key=s,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new El(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new to(this.firestore,e,this._key)}}class Ca{constructor(e,t,s){this.converter=t,this._query=s,this.type="query",this.firestore=e}withConverter(e){return new Ca(this.firestore,e,this._query)}}class El extends Ca{constructor(e,t,s){super(e,t,Lc(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new to(this.firestore,null,new jn(e))}withConverter(e){return new El(this.firestore,e,this._path)}}function zg(r,e,...t){if(r=(0,pe.m9)(r),Bg("collection","path",e),r instanceof zd){const s=Pr.fromString(e,...t);return Hg(s),new El(r,null,s)}{if(!(r instanceof to||r instanceof El))throw new gn(Ht.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=r._path.child(Pr.fromString(e,...t));
1return Hg(s),new El(r.firestore,null,s)}}function jl(r,e){if(r=fi(r,zd),Bg("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new gn(Ht.INVALID_ARGUMENT,`Invalid collection ID '${e}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new Ca(r,null,(t=e,new Ml(Pr.emptyPath(),t)));var t}function uy(r,e,...t){if(r=(0,pe.m9)(r),1===arguments.length&&(e=js.A()),Bg("doc","path",e),r instanceof zd){const s=Pr.fromString(e,...t);return oy(s),new to(r,null,new jn(s))}{if(!(r instanceof to||r instanceof El))throw new gn(Ht.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=r._path.child(Pr.fromString(e,...t));return oy(s),new to(r.firestore,r instanceof El?r.converter:null,new jn(s))}}function dy(r,e){return r=(0,pe.m9)(r),e=(0,pe.m9)(e),(r instanceof to||r instanceof El)&&(e instanceof to||e instanceof El)&&r.firestore===e.firestore&&r.path===e.path&&r.converter===e.converter}function bl(r,e){return r=(0,pe.m9)(r),e=(0,pe.m9)(e),r instanceof Ca&&e instanceof Ca&&r.firestore===e.firestore&&Ol(r._query,e._query)&&r.converter===e.converter}class Bl{constructor(){this.Gc=Promise.resolve(),this.Qc=[],this.jc=!1,this.zc=[],this.Wc=null,this.Hc=!1,this.Jc=!1,this.Yc=[],this.qo=new lg(this,"async_queue_retry"),this.Xc=()=>{const t=Rh();t&&on("AsyncQueue","Visibility state changed to "+t.visibilityState),this.qo.Mo()};const e=Rh();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Xc)}get isShuttingDown(){return this.jc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Zc(),this.ta(e)}enterRestrictedMode(e){if(!this.jc){this.jc=!0,this.Jc=e||!1;const t=Rh();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Xc)}}enqueue(e){if(this.Zc(),this.jc)return new Promise(()=>{});const t=new es;return this.ta(()=>this.jc&&this.Jc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Qc.push(e),this.ea()))}ea(){var e=this;return(0,c.Z)(function*(){if(0!==e.Qc.length){try{yield e.Qc[0](),e.Qc.shift(),e.qo.reset()}catch(t){if(!_(t))throw t;on("AsyncQueue","Operation failed with retryable error: "+t)}e.Qc.length>0&&e.qo.No(()=>e.ea())}})()}ta(e){const t=this.Gc.then(()=>(this.Hc=!0,e().catch(s=>{throw this.Wc=s,this.Hc=!1,or("INTERNAL UNHANDLED ERROR: ",function(d){let g=d.message||"";return d.stack&&(g=d.stack.includes(d.message)?d.stack:d.message+"\n"+d.stack),g}(s)),s}).then(s=>(this.Hc=!1,s))));return this.Gc=t,t}enqueueAfterDelay(e,t,s){this.Zc(),this.Yc.indexOf(e)>-1&&(t=0);const a=ru.createAndSchedule(this,e,t,s,d=>this.na(d));return this.zc.push(a),a}Zc(){this.Wc&&kn()}verifyOperationInProgress(){}sa(){var e=this;return(0,c.Z)(function*(){let t;do{t=e.Gc,yield t}while(t!==e.Gc)})()}ia(e){for(const t of this.zc)if(t.timerId===e)return!0;return!1}ra(e){return this.sa().then(()=>{this.zc.sort((t,s)=>t.targetTimeMs-s.targetTimeMs);for(const t of this.zc)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.sa()})}oa(e){this.Yc.push(e)}na(e){const t=this.zc.indexOf(e);this.zc.splice(t,1)}}function sl(r){return function(e,t){if("object"!=typeof e||null===e)return!1;const s=e;for(const a of["next","error","complete"])if(a in s&&"function"==typeof s[a])return!0;return!1}(r)}class hy{constructor(){this._progressObserver={},this._taskCompletionResolver=new es,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(e,t,s){this._progressObserver={next:e,error:t,complete:s}}catch(e){return this._taskCompletionResolver.promise.catch(e)}then(e,t){return this._taskCompletionResolver.promise.then(e,t)}_completeWith(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)}_failWith(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)}_updateProgress(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}const fy=-1;class xs extends zd{constructor(e,t,s,a){super(e,t,s,a),this.type="firestore",this._queue=new Bl,this._persistenceKey=a?.n
1ame||"[DEFAULT]"}_terminate(){return this._firestoreClient||dp(this),this._firestoreClient.terminate()}}function To(r){return r._firestoreClient||dp(r),r._firestoreClient.verifyNotTerminated(),r._firestoreClient}function dp(r){var e,t,s;const a=r._freezeSettings(),d=(M=(null===(e=r._app)||void 0===e?void 0:e.options.appId)||"",new id(r._databaseId,M,r._persistenceKey,(ee=a).host,ee.ssl,ee.experimentalForceLongPolling,ee.experimentalAutoDetectLongPolling,jg(ee.experimentalLongPollingOptions),ee.useFetchStreams));var M,ee;r._firestoreClient=new ty(r._authCredentials,r._appCheckCredentials,r._queue,d),null!==(t=a.cache)&&void 0!==t&&t._offlineComponentProvider&&null!==(s=a.cache)&&void 0!==s&&s._onlineComponentProvider&&(r._firestoreClient._uninitializedComponentsProvider={_offlineKind:a.cache.kind,_offline:a.cache._offlineComponentProvider,_online:a.cache._onlineComponentProvider})}function Jh(r,e){Gg(r=fi(r,xs));const t=To(r);if(t._uninitializedComponentsProvider)throw new gn(Ht.FAILED_PRECONDITION,"SDK cache is already specified.");
1gi("enableIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const s=r._freezeSettings(),a=new Gu;return Wg(t,a,new Wh(a,s.cacheSizeBytes,e?.forceOwnership))}function $_(r){Gg(r=fi(r,xs));const e=To(r);if(e._uninitializedComponentsProvider)throw new gn(Ht.FAILED_PRECONDITION,"SDK cache is already specified.");gi("enableMultiTabIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const t=r._freezeSettings(),s=new Gu;return Wg(e,s,new Xm(s,t.cacheSizeBytes))}function Wg(r,e,t){const s=new es;return r.asyncQueue.enqueue((0,c.Z)(function*(){try{yield Bd(r,t),yield Gh(r,e),s.resolve()}catch(a){const d=a;if(!cp(d))throw d;gi("Error enabling indexeddb cache. Falling back to memory cache: "+d),s.reject(d)}})).then(()=>s.promise)}function H_(r){if(r._initialized&&!r._terminated)throw new gn(Ht.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const e=new es;return r._queue.enqueueAndForgetEvenWhileRestricted((0,c.Z)(function*(){try{yield(t=(0,c.Z)(function*(s){if(!Yr.D())return Promise.resolve();const a=s+"main";yield Yr.delete(a)}),function(s){return t.apply(this,arguments)})(tg(r._databaseId,r._persistenceKey)),e.resolve()}catch(t){e.reject(t)}var t})),e.promise}function z_(r){return function(e){const t=new es;return e.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return function Ld(r,e){return au.apply(this,arguments)}(yield Lg(e),t)})),t.promise}(To(r=fi(r,xs)))}function py(r){return function Vg(r){return r.asyncQueue.enqueue((0,c.Z)(function*(){const e=yield up(r),t=yield Tc(r);return e.setNetworkEnabled(!0),function(s){const a=Rn(s);return a.vu.delete(0),Ph(a)}(t)}))}(To(r=fi(r,xs)))}function gy(r){return function V_(r){return r.asyncQueue.enqueue((0,c.Z)(function*(){const e=yield up(r),t=yield Tc(r);return e.setNetworkEnabled(!1),(s=(0,c.Z)(function*(a){const d=Rn(a);d.vu.add(0),yield Sd(d),d.bu.set("Offline")}),function(a){return s.apply(this,arguments)})(t);var s}))}(To(r=fi(r,xs)))}function W_(r,e){const t=To(r=fi(r,xs)),s=new hy;return function iy(r,e,t,s){const a=function(d,g){let M;return M="string"==typeof d?Bc().encode(d):d,H=function(H,ee){if(H instanceof Uint8Array)return Fg(H,void 0);if(H instanceof ArrayBuffer)return Fg(new Uint8Array(H),void 0);if(H instanceof ReadableStream)return H.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}(M),new Jm(H,g);var H}(t,Oh(e));r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){!function Qm(r,e,t){const s=Rn(r);var a;(a=(0,c.Z)(function*(d,g,M){try{const H=yield g.getMetadata();if(yield function(Bt,un){const Nn=Rn(Bt),er=ti(un.createTime);return Nn.persistence.runTransaction("hasNewerBundle","readonly",lr=>Nn.qs.getBundleMetadata(lr,un.id)).then(lr=>!!lr&&lr.createTime.compareTo(er)>=0)}(d.localStore,H))return yield g.close(),M._completeWith({taskState:"Success",documentsLoaded:(Bt=H).totalDocuments,bytesLoaded:Bt.totalBytes,totalDocuments:Bt.totalDocuments,totalBytes:Bt.totalBytes}),Promise.resolve(new Set);M._updateProgress(zm(H));const ee=new P_(H,d.localStore,g.serializer);let De=yield g.bc();for(;De;){const Bt=yield ee.zu(De);Bt&&M._updateProgress(Bt),De=yield g.bc()}const st=yield ee.complete();return yield Ul(d,st.Ju,void 0),yield function(Bt,un){const Nn=Rn(Bt);return Nn.persistence.runTransaction("Save bundle","readwrite",er=>Nn.qs.saveBundleMetadata(er,un))}(d.localStore,H),M._completeWith(st.progress),Promise.resolve(st.Hu)}catch(H){return gi("SyncEngine",`Loading bundle failed with ${H}`),M._failWith(H),Promise.resolve(new Set)}var Bt}),function(d,g,M){return a.apply(this,arguments)})(s,e,t).then(a=>{s.sharedClientState.notifyBundleLoaded(a)})}(yield Lg(r),a,s)}))}(t,r._databaseId,e,s),s}function my(r,e){return function B_(r,e){return r.asyncQueue.enqueue((0,c.Z)(function*(){return function(t,s){const a=Rn(t);return a.persistence.runTransaction("Get named query","readonly",d=>a.qs.getNamedQuery(d,s))}(yield Zu(r),e)}))}(To(r=fi(r,xs)),e).then(t=>t?new Ca(r,null,t.query):null)}function Gg(r){if(r._initialized||r._terminated)throw new gn(Ht.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}class ic{constructor(e){this._byteString=e}static fromBase64String(e){try{return new ic(Js.fromBase64String(e))}catch(t){throw new gn(Ht.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new ic(Js.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class sc{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new gn(Ht.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Vr(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class Ac{constructor(e){this._methodName=e}}class Wd{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new gn(Ht.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new gn(Ht.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Jn(this._lat,e._lat)||Jn(this._long,e._long)}}const Zg=/^__.*__$/;class qg{constructor(e,t,s){this.data=e,this.fieldMask=t,this.fieldTransforms=s}toMutation(e,t){return null!==this.fieldMask?new rl(e,this.data,this.fieldMask,t,this.fieldTransforms):new Xl(e,this.data,t,this.fieldTransforms)}}class fp{constructor(e,t,s){this.data=e,this.fieldMask=t,this.fieldTransforms=s}toMutation(e,t){return new rl(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function Yg(r){switch(r){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw kn()}}class ef{constructor(e,t,s,a,d,g){this.settings=e,this.databaseId=t,this.serializer
1=s,this.ignoreUndefinedProperties=a,void 0===d&&this.ua(),this.fieldTransforms=d||[],this.fieldMask=g||[]}get path(){return this.settings.path}get ca(){return this.settings.ca}aa(e){return new ef(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}ha(e){var t;const s=null===(t=this.path)||void 0===t?void 0:t.child(e),a=this.aa({path:s,la:!1});return a.fa(e),a}da(e){var t;const s=null===(t=this.path)||void 0===t?void 0:t.child(e),a=this.aa({path:s,la:!1});return a.ua(),a}wa(e){return this.aa({path:void 0,la:!0})}_a(e){return Zd(e,this.settings.methodName,this.settings.ma||!1,this.path,this.settings.ga)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}ua(){if(this.path)for(let e=0;e<this.path.length;e++)this.fa(this.path.get(e))}fa(e){if(0===e.length)throw this._a("Document fields must not be empty");if(Yg(this.ca)&&Zg.test(e))throw this._a('Document fields cannot begin and end with "__"')}}class _y{constructor(e,t,s){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=s||Oh(e)}ya(e,t,s,a=!1){return new ef({ca:e,methodName:t,ga:s,path:Vr.emptyPath(),la:!1,ma:a},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function du(r){const e=r._freezeSettings(),t=Oh(r._databaseId);return new _y(r._databaseId,!!e.ignoreUndefinedProperties,t)}function tf(r,e,t,s,a,d={}){const g=r.ya(d.merge||d.mergeFields?2:0,e,t,a);yp("Data must be an object, but it was:",g,s);const M=Jg(s,g);let H,ee;if(d.merge)H=new Uo(g.fieldMask),ee=g.fieldTransforms;else if(d.mergeFields){const De=[];for(const st of d.mergeFields){const Bt=Yu(e,st,t);if(!g.contains(Bt))throw new gn(Ht.INVALID_ARGUMENT,`Field '${Bt}' is specified in your field mask but missing from your input data.`);_p(De,Bt)||De.push(Bt)}H=new Uo(De),ee=g.fieldTransforms.filter(st=>H.covers(st.field))}else H=null,ee=g.fieldTransforms;return new qg(new go(M),H,ee)}class Kd extends Ac{_toFieldTransform(e){if(2!==e.ca)throw e._a(1===e.ca?`${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 e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Kd}}function Qg(r,e,t){return new ef({ca:3,ga:e.settings.ga,methodName:r._methodName,la:t},e.databaseId,e.serializer,e.ignoreUndefinedProperties)}class pp extends Ac{_toFieldTransform(e){return new Su(e.path,new jc)}isEqual(e){return e instanceof pp}}class vy extends Ac{constructor(e,t){super(e),this.pa=t}_toFieldTransform(e){const t=Qg(this,e,!0),s=this.pa.map(d=>hu(d,t)),a=new Za(s);return new Su(e.path,a)}isEqual(e){return this===e}}class Ey extends Ac{constructor(e,t){super(e),this.pa=t}_toFieldTransform(e){const t=Qg(this,e,!0),s=this.pa.map(d=>hu(d,t)),a=new tl(s);return new Su(e.path,a)}isEqual(e){return this===e}}class by extends Ac{constructor(e,t){super(e),this.Ia=t}_toFieldTransform(e){const t=new nl(e.serializer,Uc(e.serializer,this.Ia));return new Su(e.path,t)}isEqual(e){return this===e}}function gp(r,e,t,s){const a=r.ya(1,e,t);yp("Data must be an object, but it was:",a,s);const d=[],g=go.empty();Oo(s,(H,ee)=>{const De=Gd(e,H,t);ee=(0,pe.m9)(ee);const st=a.da(De);if(ee instanceof Kd)d.push(De);else{const Bt=hu(ee,st);null!=Bt&&(d.push(De),g.set(De,Bt))}});const M=new Uo(d);return new fp(g,M,a.fieldTransforms)}function mp(r,e,t,s,a,d){const g=r.ya(1,e,t),M=[Yu(e,s,t)],H=[a];if(d.length%2!=0)throw new gn(Ht.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let Bt=0;Bt<d.length;Bt+=2)M.push(Yu(e,d[Bt])),H.push(d[Bt+1]);const ee=[],De=go.empty();for(let Bt=M.length-1;Bt>=0;--Bt)if(!_p(ee,M[Bt])){const un=M[Bt];let Nn=H[Bt];Nn=(0,pe.m9)(Nn);const er=g.da(un);if(Nn instanceof Kd)ee.push(un);else{const lr=hu(Nn,er);null!=lr&&(ee.push(un),De.set(un,lr))}}const st=new Uo(ee);return new fp(De,st,g.fieldTransforms)}function Xg(r,e,t,s=!1){return hu(t,r.ya(s?4:3,e))}function hu(r,e){if(em(r=(0,pe.m9)(r)))return yp("Unsupported field value:",e,r),Jg(r,e);if(r instanceof Ac)return function(t,s){if(!Yg(s.ca))throw s._a(`${t._methodName}
1() can only be used with update() and set()`);if(!s.path)throw s._a(`${t._methodName}() is not currently supported inside arrays`);const a=t._toFieldTransform(s);a&&s.fieldTransforms.push(a)}(r,e),null;if(void 0===r&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),r instanceof Array){if(e.settings.la&&4!==e.ca)throw e._a("Nested arrays are not supported");return function(t,s){const a=[];let d=0;for(const g of t){let M=hu(g,s.wa(d));null==M&&(M={nullValue:"NULL_VALUE"}),a.push(M),d++}return{arrayValue:{values:a}}}(r,e)}return function(t,s){if(null===(t=(0,pe.m9)(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return Uc(s.serializer,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){const a=ji.fromDate(t);return{timestampValue:jo(s.serializer,a)}}if(t instanceof ji){const a=new ji(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:jo(s.serializer,a)}}if(t instanceof Wd)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof ic)return{bytesValue:Ec(s.serializer,t._byteString)};if(t instanceof to){const a=s.databaseId,d=t.firestore._databaseId;if(!d.isEqual(a))throw s._a(`Document reference is for database ${d.projectId}/${d.database} but should be for database ${a.projectId}/${a.database}`);return{referenceValue:Ou(t.firestore._databaseId||s.databaseId,t._key.path)}}throw s._a(`Unsupported field value: ${Xh(t)}`)}(r,e)}function Jg(r,e){const t={};return Qs(r)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Oo(r,(s,a)=>{const d=hu(a,e.ha(s));null!=d&&(t[s]=d)}),{mapValue:{fields:t}}}function em(r){return!("object"!=typeof r||null===r||r instanceof Array||r instanceof Date||r instanceof ji||r instanceof Wd||r instanceof ic||r instanceof to||r instanceof Ac)}function yp(r,e,t){if(!em(t)||"object"!=typeof(s=t)||null===s||Object.getPrototypeOf(s)!==Object.prototype&&null!==Object.getPrototypeOf(s)){const s=Xh(t);throw e._a("an object"===s?r+" a custom object":r+" "+s)}var s}function Yu(r,e,t){if((e=(0,pe.m9)(e))instanceof sc)return e._internalPath;if("string"==typeof e)return Gd(r,e);throw Zd("Field path arguments must be of type string or ",r,!1,void 0,t)}const tm=new RegExp("[~\\*/\\[\\]]");function Gd(r,e,t){if(e.search(tm)>=0)throw Zd(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,r,!1,void 0,t);try{return new sc(...e.split("."))._internalPath}catch{throw Zd(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,r,!1,void 0,t)}}function Zd(r,e,t,s,a){const d=s&&!s.isEmpty(),g=void 0!==a;let M=`Function ${e}() called with invalid data`;t&&(M+=" (via `toFirestore()`)"),M+=". ";let H="";return(d||g)&&(H+=" (found",d&&(H+=` in field ${s}`),g&&(H+=` in document ${a}`),H+=")"),new gn(Ht.INVALID_ARGUMENT,M+r+H)}function _p(r,e){return r.some(t=>t.isEqual(e))}class Qu{constructor(e,t,s,a,d){this._firestore=e,this._userDataWriter=t,this._key=s,this._document=a,this._converter=d}get id(){return this._key.path.lastSegment()}get ref(){return new to(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new nm(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(qd("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class nm extends Qu{data(){return super.data()}}function qd(r,e){return"string"==typeof e?Gd(r,e):e instanceof sc?e._internalPath:e._delegate._internalPath}function vp(r){if("L"===r.limitType&&0===r.explicitOrderBy.length)throw new gn(Ht.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class nf{}class Xu extends nf{}function Ju(r,e,...t){let s=[];e instanceof nf&&s.push(e),s=s.concat(t),function(a){const d=a.filter(M=>M instanceof $l).length,g=a.filter(M=>M instanceof rf).length;if(d>1||d>0&&g>0)throw new gn(Ht.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(s);for(const a of s)r=a._apply(r);return r}class rf extends Xu{constructor(e,t,s){super(),this._field=e,this._op=t,this._value=s,this.type="where"}
1static _create(e,t,s){return new rf(e,t,s)}_apply(e){const t=this._parse(e);return im(e._query,t),new Ca(e.firestore,e.converter,yc(e._query,t))}_parse(e){const t=du(e.firestore);return function(a,d,g,M,H,ee,De){let st;if(H.isKeyField()){if("array-contains"===ee||"array-contains-any"===ee)throw new gn(Ht.INVALID_ARGUMENT,`Invalid Query. You can't perform '${ee}' queries on documentId().`);if("in"===ee||"not-in"===ee){Q_(De,ee);const Bt=[];for(const un of De)Bt.push(no(M,a,un));st={arrayValue:{values:Bt}}}else st=no(M,a,De)}else"in"!==ee&&"not-in"!==ee&&"array-contains-any"!==ee||Q_(De,ee),st=Xg(g,"where",De,"in"===ee||"not-in"===ee);return tt.create(H,ee,st)}(e._query,0,t,e.firestore._databaseId,this._field,this._op,this._value)}}function K_(r,e,t){const s=e,a=qd("where",r);return rf._create(a,s,t)}class $l extends nf{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new $l(e,t)}_parse(e){const t=this._queryConstraints.map(s=>s._parse(e)).filter(s=>s.getFilters().length>0);return 1===t.length?t[0]:mt.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(s,a){let d=s;const g=a.getFlattenedFilters();for(const M of g)im(d,M),d=yc(d,M)}(e._query,t),new Ca(e.firestore,e.converter,yc(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class rm extends Xu{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new rm(e,t)}_apply(e){const t=function(s,a,d){if(null!==s.startAt)throw new gn(Ht.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==s.endAt)throw new gn(Ht.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");const g=new F(a,d);return function(M,H){if(null===rh(M)){const ee=ih(M);null!==ee&&wp(0,ee,H.field)}}(s,g),g}(e._query,this._field,this._direction);return new Ca(e.firestore,e.converter,function(s,a){const d=s.explicitOrderBy.concat([a]);return new Ml(s.path,s.collectionGroup,d,s.filters.slice(),s.limit,s.limitType,s.startAt,s.endAt)}(e._query,t))}}function Cy(r,e="asc"){const t=e,s=qd("orderBy",r);return rm._create(s,t)}class sf extends Xu{constructor(e,t,s){super(),this.type=e,this._limit=t,this._limitType=s}static _create(e,t,s){return new sf(e,t,s)}_apply(e){return new Ca(e.firestore,e.converter,Cu(e._query,this._limit,this._limitType))}}function G_(r){return ay("limit",r),sf._create("limit",r,"F")}function Br(r){return ay("limitToLast",r),sf._create("limitToLast",r,"L")}class Ep extends Xu{constructor(e,t,s){super(),this.type=e,this._docOrFields=t,this._inclusive=s}static _create(e,t,s){return new Ep(e,t,s)}_apply(e){const t=af(e,this.type,this._docOrFields,this._inclusive);return new Ca(e.firestore,e.converter,(a=t,new Ml((s=e._query).path,s.collectionGroup,s.explicitOrderBy.slice(),s.filters.slice(),s.limit,s.limitType,a,s.endAt)));var s,a}}function Z_(...r){return Ep._create("startAt",r,!0)}function q_(...r){return Ep._create("startAfter",r,!1)}class oc extends Xu{constructor(e,t,s){super(),this.type=e,this._docOrFields=t,this._inclusive=s}static _create(e,t,s){return new oc(e,t,s)}_apply(e){const t=af(e,this.type,this._docOrFields,this._inclusive);return new Ca(e.firestore,e.converter,(a=t,new Ml((s=e._query).path,s.collectionGroup,s.explicitOrderBy.slice(),s.filters.slice(),s.limit,s.limitType,s.startAt,a)));var s,a}}function Y_(...r){return oc._create("endBefore",r,!1)}function bp(...r){return oc._create("endAt",r,!0)}function af(r,e,t,s){if(t[0]=(0,pe.m9)(t[0]),t[0]instanceof Qu)return function(a,d,g,M,H){if(!M)throw new gn(Ht.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${g}().`);const ee=[];for(const De of mc(a))if(De.field.isKeyField())ee.push(Tl(d,M.key));else{const st=M.data.field(De.field);if(Oc(st))throw new gn(Ht.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+De.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===st){const Bt=De.field.canonicalString();throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${Bt}' (used as the orderBy) does not exist.`)}ee.push(st)}return new ul(ee,H)}(r._query,r.firestore._databaseId,e,t[0]._document,s);{const a=du(r.firestore);return function(d,g,M,H,ee,De){const st=d.explicitOrderBy;if(ee.length>st.length)throw new gn(Ht.INVALID_ARGUMENT,`Too many arguments provided to ${H}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const Bt=[];for(let un=0;un<ee.length;un++){const Nn=ee[un];
1if(st[un].field.isKeyField()){if("string"!=typeof Nn)throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${H}(), but got a ${typeof Nn}`);if(!Rl(d)&&-1!==Nn.indexOf("/"))throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${H}() must be a plain document ID, but '${Nn}' contains a slash.`);const er=d.path.child(Pr.fromString(Nn));if(!jn.isDocumentKey(er))throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${H}() must result in a valid document path, but '${er}' is not because it contains an odd number of segments.`);const lr=new jn(er);Bt.push(Tl(g,lr))}else{const er=Xg(M,H,Nn);Bt.push(er)}}return new ul(Bt,De)}(r._query,r.firestore._databaseId,a,e,t,s)}}function no(r,e,t){if("string"==typeof(t=(0,pe.m9)(t))){if(""===t)throw new gn(Ht.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Rl(e)&&-1!==t.indexOf("/"))throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${t}' contains a '/' character.`);const s=e.path.child(Pr.fromString(t));if(!jn.isDocumentKey(s))throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${s}' is not because it has an odd number of segments (${s.length}).`);return Tl(r,new jn(s))}if(t instanceof to)return Tl(r,t._key);throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Xh(t)}.`)}function Q_(r,e){if(!Array.isArray(r)||0===r.length)throw new gn(Ht.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function im(r,e){if(e.isInequality()){const s=ih(r),a=e.field;if(null!==s&&!s.isEqual(a))throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '${s.toString()}' and '${a.toString()}'`);const d=rh(r);null!==d&&wp(0,a,d)}const t=function(s,a){for(const d of s)for(const g of d.getFlattenedFilters())if(a.indexOf(g.op)>=0)return g.op;return null}(r.filters,function(s){switch(s){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==t)throw new gn(Ht.INVALID_ARGUMENT,t===e.op?`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`:`Invalid query. You cannot use '${e.op.toString()}' filters with '${t.toString()}' filters.`)}function wp(r,e,t){if(!t.isEqual(e))throw new gn(Ht.INVALID_ARGUMENT,`Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '${e.toString()}' and so you must also use '${e.toString()}' as your first argument to orderBy(), but your first orderBy() is on field '${t.toString()}' instead.`)}class Cp{convertValue(e,t="none"){switch(oa(e)){case 0:return null;case 1:return e.booleanValue;case 2:return cs(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(ma(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw kn()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){const s={};return Oo(e,(a,d)=>{s[a]=this.convertValue(d,t)}),s}convertGeoPoint(e){return new Wd(cs(e.latitude),cs(e.longitude))}convertArray(e,t){return(e.values||[]).map(s=>this.convertValue(s,t))}convertServerTimestamp(e,t){switch(t){case"previous":const s=fc(e);return null==s?null:this.convertValue(s,t);case"estimate":return this.convertTimestamp(Hl(e));default:return null}}convertTimestamp(e){const t=ll(e);return new ji(t.seconds,t.nanos)}convertDocumentKey(e,t){const s=Pr.fromString(e);Xn(Wc(s));const a=new Oa(s.get(1),s.get(3)),d=new jn(s.popFirst(5));return a.isEqual(t)||or(`Document ${d} contains a document reference within a different database (${a.projectId}/${a.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),d}}function lf(r,e,t){let s;return s=r?t&&(t.merge||t.mergeFields)?r.toFirestore(e,t):r.toFirestore(e):e,s}class Dy extends Cp{constructor(e){super(),this.firestore=e}convertBytes(e){return new ic(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);
1return new to(this.firestore,null,t)}}class ed{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class td extends Qu{constructor(e,t,s,a,d,g){super(e,t,s,a,g),this._firestore=e,this._firestoreImpl=e,this.metadata=d}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new cf(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const s=this._document.data.field(qd("DocumentSnapshot.get",e));if(null!==s)return this._userDataWriter.convertValue(s,t.serverTimestamps)}}}class cf extends td{data(e={}){return super.data(e)}}class ac{constructor(e,t,s,a){this._firestore=e,this._userDataWriter=t,this._snapshot=a,this.metadata=new ed(a.hasPendingWrites,a.fromCache),this.query=s}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(s=>{e.call(t,new cf(this._firestore,this._userDataWriter,s.key,s,new ed(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new gn(Ht.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(s,a){if(s._snapshot.oldDocs.isEmpty()){let d=0;return s._snapshot.docChanges.map(g=>({type:"added",doc:new cf(s._firestore,s._userDataWriter,g.doc.key,g.doc,new ed(s._snapshot.mutatedKeys.has(g.doc.key),s._snapshot.fromCache),s.query.converter),oldIndex:-1,newIndex:d++}))}{let d=s._snapshot.oldDocs;return s._snapshot.docChanges.filter(g=>a||3!==g.type).map(g=>{const M=new cf(s._firestore,s._userDataWriter,g.doc.key,g.doc,new ed(s._snapshot.mutatedKeys.has(g.doc.key),s._snapshot.fromCache),s.query.converter);let H=-1,ee=-1;return 0!==g.type&&(H=d.indexOf(g.doc.key),d=d.delete(g.doc.key)),1!==g.type&&(d=d.add(g.doc),ee=d.indexOf(g.doc.key)),{type:Ty(g.type),doc:M,oldIndex:H,newIndex:ee}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function Ty(r){switch(r){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return kn()}}function Sy(r,e){return r instanceof td&&e instanceof td?r._firestore===e._firestore&&r._key.isEqual(e._key)&&(null===r._document?null===e._document:r._document.isEqual(e._document))&&r._converter===e._converter:r instanceof ac&&e instanceof ac&&r._firestore===e._firestore&&bl(r.query,e.query)&&r.metadata.isEqual(e.metadata)&&r._snapshot.isEqual(e._snapshot)}function Ay(r){r=fi(r,to);const e=fi(r.firestore,xs);return U_(To(e),r._key).then(t=>xy(e,r,t))}class fu extends Cp{constructor(e){super(),this.firestore=e}convertBytes(e){return new ic(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new to(this.firestore,null,t)}}function uf(r){r=fi(r,to);const e=fi(r.firestore,xs),t=To(e),s=new fu(e);return function Ug(r,e){const t=new es;return r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return(s=(0,c.Z)(function*(a,d,g){try{const M=yield function(H,ee){const De=Rn(H);return De.persistence.runTransaction("read document","readonly",st=>De.localDocuments.getDocument(st,ee))}(a,d);M.isFoundDocument()?g.resolve(M):M.isNoDocument()?g.resolve(null):g.reject(new gn(Ht.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)"))}catch(M){const H=Wu(M,`Failed to get document '${d} from cache`);g.reject(H)}}),function(a,d,g){return s.apply(this,arguments)})(yield Zu(r),e,t);var s})),t.promise}(t,r._key).then(a=>new td(e,s,r._key,a,new ed(null!==a&&a.hasLocalMutations,!0),r.converter))}function df(r){r=fi(r,to);const e=fi(r.firestore,xs);return U_(To(e),r._key,{source:"server"}).then(t=>xy(e,r,t))}function ev(r){r=fi(r,Ca);const e=fi(r.firestore,xs),t=To(e),s=new fu(e);return vp(r._query),ry(t,r._query).then(a=>new ac(e,s,r,a))}function tv(r){r=fi(r,Ca);const e=fi(r.firestore,xs),t=To(e),s=new fu(e);return function rE(r,e){const t=new es;return r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return(s=(0,c.Z)(function*(a,d,g){try{const M=yield eu(a,d,!0),H=new Tg(d,M.ir),ee=H.sc(M.documents),De=H.applyChanges(ee,!1);g.resolve(De.snapshot)}catch(M){const H=Wu(M,`Failed to execute query '${d} against cache`);g.reject(H)}}),function(a,d,g){return s.apply(this,arguments)})(yield Zu(r),e,t);var s})),t.promise}(t,r._query).then(a=>new ac(e,s,r,a))}function nv(r){r=fi(r,Ca);const e=fi(r.firestore,xs),t=To(e),s=new fu(e);return ry(t,r._query,{source:"server"}).then(a=>new ac(e,s,r,a))}function My(r,e,t){r=fi(r,to);const s=fi(r.firestore,xs),a=lf(r.converter,e,t);return Yd(s,[tf(du(s),"setDoc",r._key,a,null!==r.converter,t).toMutation(r._key,bs.none())])}function Ry(r,e,t,...s){r=fi(r,to);const a=fi(r.firestore,xs),d=du(a);let g;return g="string"==typeof(e=(0,pe.m9)(e))||e instanceof sc?mp(d,"updateDoc",r._key,e,t,s):gp(d,"updateDoc",r._key,e),Yd(a,[g.toMutation(r._key,bs.exists(!0))])}function Oy(r){return Yd(fi(r.firestore,xs),[new eo(r._key,bs.none())])}function rv(r,e){const t=fi(r.firestore,xs),s=uy(r),a=lf(r.converter,e);return Yd(t,[tf(du(r.firestore),"addDoc",s._key,a,null!==r.converter,{}).toMutation(s._key,bs.exists(!1))]).then(()=>s)}function Py(r,...e){var t,s,a;r=(0,pe.m9)(r);let d={includeMetadataChanges:!1},g=0;"object"!=typeof e[g]||sl(e[g])||(d=e[g],g++);const M={includeMetadataChanges:d.includeMetadataChanges};if(sl(e[g])){const st=e[g];e[g]=null===(t=st.next)||void 0===t?void 0:t.bind(st),e[g+1]=null===(s=st.error)||void 0===s?void 0:s.bind(st),e[g+2]=null===(a=st.complete)||void 0===a?void 0:a.bind(st)}let H,ee,De;if(r instanceof to)ee=fi(r.firestore,xs),De=Lc(r._key.path),H={next:st=>{e[g]&&e[g](xy(ee,r,st))},error:e[g+1],complete:e[g+2]};else{const st=fi(r,Ca);ee=fi(st.firestore,xs),De=st._query;const Bt=new fu(ee);H={next:un=>{e[g]&&e[g](new ac(ee,Bt,st,un))},error:e[g+1],complete:e[g+2]},vp(r._query)}return function(st,Bt,un,Nn){const er=new Kh(Nn),lr=new Cg(Bt,er,un);return st.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return Eg(yield uu(st),lr)})),()=>{er.Dc(),st.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return tp(yield uu(st),lr)}))}}(To(ee),De,M,H)}function iv(r,e){return function j_(r,e){const t=new Kh(e);return r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return s=yield uu(r),a=t,Rn(s).ku.add(a),void a.next();var s,a})),()=>{t.Dc(),r.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return s=yield uu(r),a=t,void Rn(s).ku.delete(a);var s,a}))}}(To(r=fi(r,xs)),sl(e)?e:{next:e})}function Yd(r,e){return function(t,s){const a=new es;return t.asyncQueue.enqueueAndForget((0,c.Z)(function*(){return function Zm(r,e,t){return vl.a
1pply(this,arguments)}(yield Lg(t),s,a)})),a.promise}(To(r),e)}function xy(r,e,t){const s=t.docs.get(e._key),a=new fu(r);return new td(r,a,e._key,s,new ed(t.hasPendingWrites,t.fromCache),e.converter)}const uv={maxAttempts:5};class sm{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=du(e)}set(e,t,s){this._verifyNotCommitted();const a=pu(e,this._firestore),d=lf(a.converter,t,s),g=tf(this._dataReader,"WriteBatch.set",a._key,d,null!==a.converter,s);return this._mutations.push(g.toMutation(a._key,bs.none())),this}update(e,t,s,...a){this._verifyNotCommitted();const d=pu(e,this._firestore);let g;return g="string"==typeof(t=(0,pe.m9)(t))||t instanceof sc?mp(this._dataReader,"WriteBatch.update",d._key,t,s,a):gp(this._dataReader,"WriteBatch.update",d._key,t),this._mutations.push(g.toMutation(d._key,bs.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=pu(e,this._firestore);return this._mutations=this._mutations.concat(new eo(t._key,bs.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new gn(Ht.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function pu(r,e){if((r=(0,pe.m9)(r)).firestore!==e)throw new gn(Ht.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return r}class dv extends class{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=du(e)}get(e){const t=pu(e,this._firestore),s=new Dy(this._firestore);return this._transaction.lookup([t._key]).then(a=>{if(!a||1!==a.length)return kn();const d=a[0];if(d.isFoundDocument())return new Qu(this._firestore,s,d.key,d,t.converter);if(d.isNoDocument())return new Qu(this._firestore,s,t._key,null,t.converter);throw kn()})}set(e,t,s){const a=pu(e,this._firestore),d=lf(a.converter,t,s),g=tf(this._dataReader,"Transaction.set",a._key,d,null!==a.converter,s);return this._transaction.set(a._key,g),this}update(e,t,s,...a){const d=pu(e,this._firestore);let g;return g="string"==typeof(t=(0,pe.m9)(t))||t instanceof sc?mp(this._dataReader,"Transaction.update",d._key,t,s,a):gp(this._dataReader,"Transaction.update",d._key,t),this._transaction.update(d._key,g),this}delete(e){const t=pu(e,this._firestore);return this._transaction.delete(t._key),this}}{constructor(e,t){super(e,t),this._firestore=e}get(e){const t=pu(e,this._firestore),s=new fu(this._firestore);return super.get(e).then(a=>new td(this._firestore,s,t._key,a._document,new ed(!1,!1),t.converter))}}function hf(r,e,t){r=fi(r,xs);const s=Object.assign(Object.assign({},uv),t);return function(a){if(a.maxAttempts<1)throw new gn(Ht.INVALID_ARGUMENT,"Max attempts must be at least 1")}(s),function(a,d,g){const M=new es;return a.asyncQueue.enqueueAndForget((0,c.Z)(function*(){const H=yield function ny(r){return Hd(r).then(e=>e.datastore)}(a);new ey(a.asyncQueue,H,g,d,M).run()})),M.promise}(To(r),a=>e(new dv(r,a)),s)}function hv(){return new Kd("deleteField")}function Ny(){return new pp("serverTimestamp")}function fv(...r){return new vy("arrayUnion",r)}function Fy(...r){return new Ey("arrayRemove",r)}function pv(r){return new by("increment",r)}!function(r,e=!0){pi=m.SDK_VERSION,(0,m._registerComponent)(new V.wA("firestore",(t,{instanceIdentifier:s,options:a})=>{const d=t.getProvider("app").getImmediate(),g=new xs(new dc(t.getProvider("auth-internal")),new al(t.getProvider("app-check-internal")),function(M,H){if(!Object.prototype.hasOwnProperty.apply(M.options,["projectId"]))throw new gn(Ht.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Oa(M.options.projectId,H)}(d,s),d);return a=Object.assign({useFetchStreams:e},a),g._setSettings(a),g},"PUBLIC").setMultipleInstances(!0)),(0,m.registerVersion)(fn,"3.13.0",r),(0,m.registerVersion)(fn,"3.13.0","esm2017")}()},2090:(ln,et,C)=>{"use strict";C.d(et,{$s:()=>ce,BH:()=>ze,G6:()=>yn,L:()=>Re,LL:()=>ft,Pz:()=>ve,Sg:()=>rt,UG:()=>Ue,US:()=>me,ZB:()=>be,ZR:()=>yt,aH:()=>Ve,b$:()=>vt,eu:()=>Ne,hl:()=>ae,jU:()=>Wt,m9:()=>Ut,ne:()=>dn,pd:()=>Yt,r3:()=>_n,ru:()=>je,tV:()=>q,uI:()=>At,vZ:()=>se,w1:()=>On,xO:()=>Be,xb:()=>Mt,z$:()=>nt,zI:()=>Xe,zd:()=>It});const _e=function(ke){const Fe=[];let Ge=0;for(let Et=0;Et<ke.length;Et++){let ht=ke.charCodeAt(Et);ht<128?Fe[Ge++]=ht:ht<2048?(Fe[Ge++]=ht>>6|192,Fe[Ge++]=63&ht|128):55296==(64512&ht)&&Et+1<ke.length&&56320==(64512&ke.charCodeAt(Et+1))?(ht=65536+((1023&ht)<<10)+(1023&ke.charCodeAt(++Et)),Fe[Ge++]=ht>>18|240,Fe[Ge++]=ht>>12&63|128,Fe[Ge++]=ht>>6&63|128,Fe[Ge++]=63&ht|128):(Fe[Ge++]=ht>>12|224,Fe[Ge++]=ht>>6&63|128,Fe[Ge++]=63&ht|128)}return Fe},me={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(ke,Fe){if(!Array.isArray(ke))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Ge=Fe?this.byteToCharMapWebSafe_:this.byteToCharMap_,Et=[];for(let ht=0;ht<ke.length;ht+=3){const an=ke[ht],$e=ht+1<ke.length,oe=$e?ke[ht+1]:0,j=ht+2<ke.length,$=j?ke[ht+2]:0;let kt=(15&oe)<<2|$>>6,Cn=63&$;j||(Cn=64,$e||(kt=64)),Et.push(Ge[an>>2],Ge[(3&an)<<4|oe>>4],Ge[kt],Ge[Cn])}return Et.join("")},encodeString(ke,Fe){return this.HAS_NATIVE_SUPPORT&&!Fe?btoa(ke):this.encodeByteArray(_e(ke),Fe)},decodeString(ke,Fe){return this.HAS_NATIVE_SUPPORT&&!Fe?atob(ke):function(ke){const Fe=[];let Ge=0,Et=0;for(;Ge<ke.length;){const ht=ke[Ge++];if(ht<128)Fe[Et++]=String.fromCharCode(ht);else if(ht>191&&ht<224){const an=ke[Ge++];Fe[Et++]=String.fromCharCode((31&ht)<<6|63&an)}else if(ht>239&&ht<365){const j=((7&ht)<<18|(63&ke[Ge++])<<12|(63&ke[Ge++])<<6|63&ke[Ge++])-65536;Fe[Et++]=String.fromCharCode(55296+(j>>10)),Fe[Et++]=String.fromCharCode(56320+(1023&j))}else{const an=ke[Ge++],$e=ke[Ge++];
1Fe[Et++]=String.fromCharCode((15&ht)<<12|(63&an)<<6|63&$e)}}return Fe.join("")}(this.decodeStringToByteArray(ke,Fe))},decodeStringToByteArray(ke,Fe){this.init_();const Ge=Fe?this.charToByteMapWebSafe_:this.charToByteMap_,Et=[];for(let ht=0;ht<ke.length;){const an=Ge[ke.charAt(ht++)],oe=ht<ke.length?Ge[ke.charAt(ht)]:0;++ht;const $=ht<ke.length?Ge[ke.charAt(ht)]:64;++ht;const Qe=ht<ke.length?Ge[ke.charAt(ht)]:64;if(++ht,null==an||null==oe||null==$||null==Qe)throw new Oe;Et.push(an<<2|oe>>4),64!==$&&(Et.push(oe<<4&240|$>>2),64!==Qe&&Et.push($<<6&192|Qe))}return Et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ke=0;ke<this.ENCODED_VALS.length;ke++)this.byteToCharMap_[ke]=this.ENCODED_VALS.charAt(ke),this.charToByteMap_[this.byteToCharMap_[ke]]=ke,this.byteToCharMapWebSafe_[ke]=this.ENCODED_VALS_WEBSAFE.charAt(ke),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[ke]]=ke,ke>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ke)]=ke,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ke)]=ke)}}};class Oe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Re=function(ke){return function(ke){const Fe=_e(ke);return me.encodeByteArray(Fe,!0)}(ke).replace(/\./g,"")},q=function(ke){try{return me.decodeString(ke,!0)}catch(Fe){console.error("base64Decode failed: ",Fe)}return null};function be(ke,Fe){if(!(Fe instanceof Object))return Fe;switch(Fe.constructor){case Date:return new Date(Fe.getTime());case Object:void 0===ke&&(ke={});break;case Array:ke=[];break;default:return Fe}for(const Ge in Fe)!Fe.hasOwnProperty(Ge)||!lt(Ge)||(ke[Ge]=be(ke[Ge],Fe[Ge]));return ke}function lt(ke){return"__proto__"!==ke}const Pe=()=>{try{return function it(){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 ke=process.env.__FIREBASE_DEFAULTS__;return ke?JSON.parse(ke):void 0})()||(()=>{if(typeof document>"u")return;let ke;try{ke=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Fe=ke&&q(ke[1]);return Fe&&JSON.parse(Fe)})()}catch(ke){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ke}`)}},Ve=()=>{var ke;return null===(ke=Pe())||void 0===ke?void 0:ke.config},ve=ke=>{var Fe;return null===(Fe=Pe())||void 0===Fe?void 0:Fe[`_${ke}`]};class ze{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Fe,Ge)=>{this.resolve=Fe,this.reject=Ge})}wrapCallback(Fe){return(Ge,Et)=>{Ge?this.reject(Ge):this.resolve(Et),"function"==typeof Fe&&(this.promise.catch(()=>{}),1===Fe.length?Fe(Ge):Fe(Ge,Et))}}}function rt(ke,Fe){if(ke.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Et=Fe||"demo-project",ht=ke.iat||0,an=ke.sub||ke.user_id;if(!an)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const $e=Object.assign({iss:`https://securetoken.google.com/${Et}`,aud:Et,iat:ht,exp:ht+3600,auth_time:ht,sub:an,user_id:an,firebase:{sign_in_provider:"custom",identities:{}}},ke);return[Re(JSON.stringify({alg:"none",type:"JWT"})),Re(JSON.stringify($e)),""].join(".")}function nt(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function At(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(nt())}function Ue(){var ke;const Fe=null===(ke=Pe())||void 0===ke?void 0:ke.forceEnvironment;if("node"===Fe)return!0;if("browser"===Fe)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function Wt(){return"object"==typeof self&&self.self===self}function je(){const ke="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ke&&void 0!==ke.id}function vt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function On(){const ke=nt();return ke.indexOf("MSIE ")>=0||ke.indexOf("Trident/")>=0}function yn(){return!Ue()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function ae(){try{return"object"==typeof indexedDB}catch{return!1}}function Ne(){return new Promise((ke,Fe)=>{try{let Ge=!0;const Et="validate-browser-context-for-indexeddb-analytics-module",ht=self.indexedDB.open(Et);ht.onsuccess=()=>{ht.result.close(),Ge||self.indexedDB.deleteDatabase(Et),ke(!0)},ht.onupgradeneeded=()=>{Ge=!1},ht.onerror=()=>{var an;Fe((null===(an=ht.error)||void 0===an?void 0:an.message)||"")}}catch(Ge){Fe(Ge)}})}function Xe(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}
1class yt extends Error{constructor(Fe,Ge,Et){super(Ge),this.code=Fe,this.customData=Et,this.name="FirebaseError",Object.setPrototypeOf(this,yt.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ft.prototype.create)}}class ft{constructor(Fe,Ge,Et){this.service=Fe,this.serviceName=Ge,this.errors=Et}create(Fe,...Ge){const Et=Ge[0]||{},ht=`${this.service}/${Fe}`,an=this.errors[Fe],$e=an?function $t(ke,Fe){return ke.replace(cn,(Ge,Et)=>{const ht=Fe[Et];return null!=ht?String(ht):`<${Et}?>`})}(an,Et):"Error";return new yt(ht,`${this.serviceName}: ${$e} (${ht}).`,Et)}}const cn=/\{\$([^}]+)}/g;function _n(ke,Fe){return Object.prototype.hasOwnProperty.call(ke,Fe)}function Mt(ke){for(const Fe in ke)if(Object.prototype.hasOwnProperty.call(ke,Fe))return!1;return!0}function se(ke,Fe){if(ke===Fe)return!0;const Ge=Object.keys(ke),Et=Object.keys(Fe);for(const ht of Ge){if(!Et.includes(ht))return!1;const an=ke[ht],$e=Fe[ht];if(K(an)&&K($e)){if(!se(an,$e))return!1}else if(an!==$e)return!1}for(const ht of Et)if(!Ge.includes(ht))return!1;return!0}function K(ke){return null!==ke&&"object"==typeof ke}function Be(ke){const Fe=[];for(const[Ge,Et]of Object.entries(ke))Array.isArray(Et)?Et.forEach(ht=>{Fe.push(encodeURIComponent(Ge)+"="+encodeURIComponent(ht))}):Fe.push(encodeURIComponent(Ge)+"="+encodeURIComponent(Et));return Fe.length?"&"+Fe.join("&"):""}function It(ke){const Fe={};return ke.replace(/^\?/,"").split("&").forEach(Et=>{if(Et){const[ht,an]=Et.split("=");
1Fe[decodeURIComponent(ht)]=decodeURIComponent(an)}}),Fe}function Yt(ke){const Fe=ke.indexOf("?");if(!Fe)return"";const Ge=ke.indexOf("#",Fe);return ke.substring(Fe,Ge>0?Ge:void 0)}function dn(ke,Fe){const Ge=new sn(ke,Fe);return Ge.subscribe.bind(Ge)}class sn{constructor(Fe,Ge){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Ge,this.task.then(()=>{Fe(this)}).catch(Et=>{this.error(Et)})}next(Fe){this.forEachObserver(Ge=>{Ge.next(Fe)})}error(Fe){this.forEachObserver(Ge=>{Ge.error(Fe)}),this.close(Fe)}complete(){this.forEachObserver(Fe=>{Fe.complete()}),this.close()}subscribe(Fe,Ge,Et){let ht;if(void 0===Fe&&void 0===Ge&&void 0===Et)throw new Error("Missing Observer.");ht=function Mn(ke,Fe){if("object"!=typeof ke||null===ke)return!1;for(const Ge of Fe)if(Ge in ke&&"function"==typeof ke[Ge])return!0;return!1}(Fe,["next","error","complete"])?Fe:{next:Fe,error:Ge,complete:Et},void 0===ht.next&&(ht.next=bn),void 0===ht.error&&(ht.error=bn),void 0===ht.complete&&(ht.complete=bn);const an=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ht.error(this.finalError):ht.complete()}catch{}}),this.observers.push(ht),an}unsubscribeOne(Fe){void 0===this.observers||void 0===this.observers[Fe]||(delete this.observers[Fe],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Fe){if(!this.finalized)for(let Ge=0;Ge<this.observers.length;Ge++)this.sendOne(Ge,Fe)}sendOne(Fe,Ge){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[Fe])try{Ge(this.observers[Fe])}catch(Et){typeof console<"u"&&console.error&&console.error(Et)}})}close(Fe){this.finalized||(this.finalized=!0,void 0!==Fe&&(this.finalError=Fe),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function bn(){}const Q=1e3,ue=2,fe=144e5,X=.5;function ce(ke,Fe=Q,Ge=ue){const Et=Fe*Math.pow(Ge,ke),ht=Math.round(X*Et*(Math.random()-.5)*2);return Math.min(fe,Et+ht)}function Ut(ke){return ke&&ke._delegate?ke._delegate:ke}},1739:(ln,et,C)=>{"use strict";C.d(et,{Pi:()=>jt,Zw:()=>dt,aw:()=>Sn,X$:()=>On,sK:()=>vt});var c=C(4650),m=C(9646),V=C(6451),_e=C(9751),pe=C(7272),me=C(5698),Oe=C(3099),ie=C(4004),Re=C(7359),q=C(4482);const be=(St,yn)=>(St.push(yn),St);var it=C(3900);class dt{}let wt=(()=>{class St extends dt{getTranslation(ae){return(0,m.of)({})}}return St.\u0275fac=function(){let yn;return function(Ne){return(yn||(yn=c.\u0275\u0275getInheritedFactory(St)))(Ne||St)}}(),St.\u0275prov=c.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac}),St})();class Me{}let Pe=(()=>{class St{handle(ae){return ae.key}}return St.\u0275fac=function(ae){return new(ae||St)},St.\u0275prov=c.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac}),St})();class Ct{}let He=(()=>{class St extends Ct{compile(ae,Ne){return ae}compileTranslations(ae,Ne){return ae}}return St.\u0275fac=function(){let yn;return function(Ne){return(yn||(yn=c.\u0275\u0275getInheritedFactory(St)))(Ne||St)}}(),St.\u0275prov=c.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac}),St})();function Ve(St,yn){if(St===yn)return!0;if(null===St||null===yn)return!1;if(St!=St&&yn!=yn)return!0;let Xe,qe,yt,ae=typeof St;if(ae==typeof yn&&"object"==ae){if(!Array.isArray(St)){if(Array.isArray(yn))return!1;for(qe in yt=Object.create(null),St){if(!Ve(St[qe],yn[qe]))return!1;yt[qe]=!0}for(qe in yn)if(!(qe in yt)&&typeof yn[qe]<"u")return!1;return!0}if(!Array.isArray(yn))return!1;if((Xe=St.length)==yn.length){for(qe=0;qe<Xe;qe++)if(!Ve(St[qe],yn[qe]))return!1;return!0}}return!1}function ve(St){return typeof St<"u"&&null!==St}function ze(St){return St&&"object"==typeof St&&!Array.isArray(St)}function rt(St,yn){let ae=Object.assign({},St);return ze(St)&&ze(yn)&&Object.keys(yn).forEach(Ne=>{ze(yn[Ne])?Ne in St?ae[Ne]=rt(St[Ne],yn[Ne]):Object.assign(ae,{[Ne]:yn[Ne]}):Object.assign(ae,{[Ne]:yn[Ne]})}),ae}class nt{}let At=(()=>{class St extends nt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(ae,Ne){let Xe;return Xe="string"==typeof ae?this.interpolateString(ae,Ne):"function"==typeof ae?this.interpolateFunction(ae,Ne):ae,Xe}getValue(ae,Ne){let Xe=Ne.split(".");Ne="";do{Ne+=Xe.shift(),!ve(ae)||!ve(ae[Ne])||"object"!=typeof ae[Ne]&&Xe.length?Xe.length?Ne+=".":ae=void 0:(ae=ae[Ne],Ne="")}while(Xe.length);return ae}interpolateFunction(ae,Ne){return ae(Ne)}interpolateString(ae,Ne){return Ne?ae.replace(this.templateMatcher,(Xe,qe)=>{let yt=this.getValue(Ne,qe);return ve(yt)?yt:Xe}):ae}}return St.\u0275fac=function(){let yn;
1return function(Ne){return(yn||(yn=c.\u0275\u0275getInheritedFactory(St)))(Ne||St)}}(),St.\u0275prov=c.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac}),St})();class Ue{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new c.EventEmitter,this.onLangChange=new c.EventEmitter,this.onDefaultLangChange=new c.EventEmitter}}const Wt=new c.InjectionToken("USE_STORE"),je=new c.InjectionToken("USE_DEFAULT_LANG");let vt=(()=>{class St{constructor(ae,Ne,Xe,qe,yt,ft=!0,$t=!1){this.store=ae,this.currentLoader=Ne,this.compiler=Xe,this.parser=qe,this.missingTranslationHandler=yt,this.useDefaultLang=ft,this.isolate=$t,this.pending=!1,this._onTranslationChange=new c.EventEmitter,this._onLangChange=new c.EventEmitter,this._onDefaultLangChange=new c.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ae){this.isolate?this._defaultLang=ae:this.store.defaultLang=ae}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ae){this.isolate?this._currentLang=ae:this.store.currentLang=ae}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ae){this.isolate?this._langs=ae:this.store.langs=ae}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ae){this.isolate?this._translations=ae:this.store.translations=ae}setDefaultLang(ae){if(ae===this.defaultLang)return;let Ne=this.retrieveTranslations(ae);typeof Ne<"u"?(this.defaultLang||(this.defaultLang=ae),Ne.pipe((0,me.q)(1)).subscribe(Xe=>{this.changeDefaultLang(ae)})):this.changeDefaultLang(ae)}getDefaultLang(){return this.defaultLang}use(ae){if(ae===this.currentLang)return(0,m.of)(this.translations[ae]);let Ne=this.retrieveTranslations(ae);return typeof Ne<"u"?(this.currentLang||(this.currentLang=ae),Ne.pipe((0,me.q)(1)).subscribe(Xe=>{this.changeLang(ae)}),Ne):(this.changeLang(ae),(0,m.of)(this.translations[ae]))}retrieveTranslations(ae){let Ne;return typeof this.translations[ae]>"u"&&(this._translationRequests[ae]=this._translationRequests[ae]||this.getTranslation(ae),Ne=this._translationRequests[ae]),Ne}getTranslation(ae){this.pending=!0;const Ne=this.currentLoader.getTranslation(ae).pipe((0,Oe.B)());return this.loadingTranslations=Ne.pipe((0,me.q)(1),(0,ie.U)(Xe=>this.compiler.compileTranslations(Xe,ae)),(0,Oe.B)()),this.loadingTranslations.subscribe(Xe=>{this.translations[ae]=Xe,this.updateLangs(),this.pending=!1},Xe=>{this.pending=!1}),Ne}setTranslation(ae,Ne,Xe=!1){Ne=this.compiler.compileTranslations(Ne,ae),this.translations[ae]=Xe&&this.translations[ae]?rt(this.translations[ae],Ne):Ne,this.updateLangs(),this.onTranslationChange.emit({lang:ae,translations:this.translations[ae]})}getLangs(){return this.langs}addLangs(ae){ae.forEach(Ne=>{-1===this.langs.indexOf(Ne)&&this.langs.push(Ne)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ae,Ne,Xe){let qe;if(Ne instanceof Array){let yt={},ft=!1;for(let $t of Ne)yt[$t]=this.getParsedResult(ae,$t,Xe),"function"==typeof yt[$t].subscribe&&(ft=!0);if(ft){let $t;for(let cn of Ne){let tr="function"==typeof yt[cn].subscribe?yt[cn]:(0,m.of)(yt[cn]);$t=typeof $t>"u"?tr:(0,V.T)($t,tr)}return $t.pipe(function lt(){return(0,q.e)((St,yn)=>{(function de(St,yn){return(0,q.e)((0,Re.U)(St,yn,arguments.length>=2,!1,!0))})(be,[])(St).subscribe(yn)})}(),(0,ie.U)(cn=>{let tr={};return cn.forEach((wn,Wn)=>{tr[Ne[Wn]]=wn}),tr}))}return yt}if(ae&&(qe=this.parser.interpolate(this.parser.getValue(ae,Ne),Xe)),typeof qe>"u"&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(qe=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Ne),Xe)),typeof qe>"u"){let yt={key:Ne,translateService:this};typeof Xe<"u"&&(yt.interpolateParams=Xe),qe=this.missingTranslationHandler.handle(yt)}return typeof qe<"u"?qe:Ne}get(ae,Ne){if(!ve(ae)||!ae.length)throw new Error('Parameter "key" required');if(this.pending)return _e.y.create(Xe=>{let qe=ft=>{Xe.next(ft),Xe.complete()},yt=ft=>{Xe.error(ft)};this.loadingTranslations.subscribe(ft=>{"function"==typeof(ft=this.getParsedResult(ft,ae,Ne)).subscribe?ft.subscribe(qe,yt):qe(ft)},yt)});{let Xe=this.getParsedResult(this.translations[this.currentLang],ae,Ne);return"function"==typeof Xe.subscribe?Xe:(0,m.of)(Xe)}}stream(ae,Ne){if(!ve(ae)||!ae.length)throw new Error('Parameter "key" required');return(0,pe.z)(this.get(ae,Ne),this.onLangChange.pipe((0,it.w)(Xe=>{const qe=this.getParsedResult(Xe.translations,ae,Ne);return"function"==typeof qe.subscribe?qe:(0,m.of)(qe)})))}instant(ae,Ne){if(!ve(ae)||!ae.length)throw new Error('Parameter "key" required');let Xe=this.getParsedResult(this.translations[this.currentLang],ae,Ne);
1if(typeof Xe.subscribe<"u"){if(ae instanceof Array){let qe={};return ae.forEach((yt,ft)=>{qe[ae[ft]]=ae[ft]}),qe}return ae}return Xe}set(ae,Ne,Xe=this.currentLang){this.translations[Xe][ae]=this.compiler.compile(Ne,Xe),this.updateLangs(),this.onTranslationChange.emit({lang:Xe,translations:this.translations[Xe]})}changeLang(ae){this.currentLang=ae,this.onLangChange.emit({lang:ae,translations:this.translations[ae]}),this.defaultLang||this.changeDefaultLang(ae)}changeDefaultLang(ae){this.defaultLang=ae,this.onDefaultLangChange.emit({lang:ae,translations:this.translations[ae]})}reloadLang(ae){return this.resetLang(ae),this.getTranslation(ae)}resetLang(ae){this._translationRequests[ae]=void 0,this.translations[ae]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ae=window.navigator.languages?window.navigator.languages[0]:null;return ae=ae||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==ae.indexOf("-")&&(ae=ae.split("-")[0]),-1!==ae.indexOf("_")&&(ae=ae.split("_")[0]),ae}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ae=window.navigator.languages?window.navigator.languages[0]:null;return ae=ae||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ae}}return St.\u0275fac=function(ae){return new(ae||St)(c.\u0275\u0275inject(Ue),c.\u0275\u0275inject(dt),c.\u0275\u0275inject(Ct),c.\u0275\u0275inject(nt),c.\u0275\u0275inject(Me),c.\u0275\u0275inject(je),c.\u0275\u0275inject(Wt))},St.\u0275prov=c.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac}),St})(),jt=(()=>{class St{constructor(ae,Ne,Xe){this.translateService=ae,this.element=Ne,this._ref=Xe,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(qe=>{qe.lang===this.translateService.currentLang&&this.checkNodes(!0,qe.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(qe=>{this.checkNodes(!0,qe.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(qe=>{this.checkNodes(!0)}))}set translate(ae){ae&&(this.key=ae,this.checkNodes())}set translateParams(ae){Ve(this.currentParams,ae)||(this.currentParams=ae,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(ae=!1,Ne){let Xe=this.element.nativeElement.childNodes;Xe.length||(this.setContent(this.element.nativeElement,this.key),Xe=this.element.nativeElement.childNodes);for(let qe=0;qe<Xe.length;++qe){let yt=Xe[qe];if(3===yt.nodeType){let ft;if(this.key)ft=this.key,ae&&(yt.lastKey=null);else{let $t=this.getContent(yt),cn=$t.trim();cn.length&&($t!==yt.currentValue?(ft=cn,yt.originalContent=this.getContent(yt)):yt.originalContent&&ae&&(yt.lastKey=null,ft=yt.originalContent.trim()))}this.updateValue(ft,yt,Ne)}}}updateValue(ae,Ne,Xe){if(ae){if(Ne.lastKey===ae&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let qe=yt=>{yt!==ae&&(Ne.lastKey=ae),Ne.originalContent||(Ne.originalContent=this.getContent(Ne)),Ne.currentValue=ve(yt)?yt:Ne.originalContent||ae,this.setContent(Ne,this.key?Ne.currentValue:Ne.originalContent.replace(ae,Ne.currentValue)),this._ref.markForCheck()};if(ve(Xe)){let yt=this.translateService.getParsedResult(Xe,ae,this.currentParams);"function"==typeof yt.subscribe?yt.subscribe(qe):qe(yt)}else this.translateService.get(ae,this.currentParams).subscribe(qe)}}getContent(ae){return ve(ae.textContent)?ae.textContent:ae.data}setContent(ae,Ne){ve(ae.textContent)?ae.textContent=Ne:ae.data=Ne}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return St.\u0275fac=function(ae){return new(ae||St)(c.\u0275\u0275directiveInject(vt),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},St.\u0275dir=c.\u0275\u0275defineDirective({type:St,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),St})(),On=(()=>{class St{constructor(ae,Ne){this.translate=ae,this._ref=Ne,this.value=""}updateValue(ae,Ne,Xe){let qe=yt=>{this.value=void 0!==yt?yt:ae,this.lastKey=ae,this._ref.markForCheck()};if(Xe){let yt=this.translate.getParsedResult(Xe,ae,Ne);"function"==typeof yt.subscribe?yt.subscribe(qe):qe(yt)}this.translate.get(ae,Ne).subscribe(qe)}transform(ae,...Ne){if(!ae||0===ae.length)return ae;if(Ve(ae,this.lastKey)&&Ve(Ne,this.lastParams))return this.value;let Xe;if(ve(Ne[0])&&Ne.length)if("string"==typeof Ne[0]&&Ne[0].length){let qe=Ne[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Xe=JSON.parse(qe)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Ne[0]}`)}}else"object"==typeof Ne[0]&&!Array.isArray(Ne[0])&&(Xe=Ne[0]);
1return this.lastKey=ae,this.lastParams=Ne,this.updateValue(ae,Xe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(qe=>{this.lastKey&&qe.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ae,Xe,qe.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(qe=>{this.lastKey&&(this.lastKey=null,this.updateValue(ae,Xe,qe.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ae,Xe))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return St.\u0275fac=function(ae){return new(ae||St)(c.\u0275\u0275directiveInject(vt,16),c.\u0275\u0275directiveInject(c.ChangeDetectorRef,16))},St.\u0275pipe=c.\u0275\u0275definePipe({name:"translate",type:St,pure:!1}),St.\u0275prov=c.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac}),St})(),Sn=(()=>{class St{static forRoot(ae={}){return{ngModule:St,providers:[ae.loader||{provide:dt,useClass:wt},ae.compiler||{provide:Ct,useClass:He},ae.parser||{provide:nt,useClass:At},ae.missingTranslationHandler||{provide:Me,useClass:Pe},Ue,{provide:Wt,useValue:ae.isolate},{provide:je,useValue:ae.useDefaultLang},vt]}}static forChild(ae={}){return{ngModule:St,providers:[ae.loader||{provide:dt,useClass:wt},ae.compiler||{provide:Ct,useClass:He},ae.parser||{provide:nt,useClass:At},ae.missingTranslationHandler||{provide:Me,useClass:Pe},{provide:Wt,useValue:ae.isolate},{provide:je,useValue:ae.useDefaultLang},vt]}}}return St.\u0275fac=function(ae){return new(ae||St)},St.\u0275mod=c.\u0275\u0275defineNgModule({type:St}),St.\u0275inj=c.\u0275\u0275defineInjector({}),St})()},1744:(ln,et,C)=>{"use strict";C.d(et,{w:()=>c});class c{constructor(V,_e="/assets/i18n/",pe=".json"){this.http=V,this.prefix=_e,this.suffix=pe}getTranslation(V){return this.http.get(`${this.prefix}${V}${this.suffix}`)}}},1345:ln=>{var et=4,C=.001,c=1e-7,m=10,V=11,_e=1/(V-1),pe="function"==typeof Float32Array;function me(it,dt){return 1-3*dt+3*it}function Oe(it,dt){return 3*dt-6*it}function ie(it){return 3*it}function Re(it,dt,wt){return((me(dt,wt)*it+Oe(dt,wt))*it+ie(dt))*it}function q(it,dt,wt){return 3*me(dt,wt)*it*it+2*Oe(dt,wt)*it+ie(dt)}function lt(it){return it}ln.exports=function(dt,wt,Me,Pe){if(!(0<=dt&&dt<=1&&0<=Me&&Me<=1))throw new Error("bezier x values must be in [0, 1] range");if(dt===wt&&Me===Pe)return lt;for(var Ct=pe?new Float32Array(V):new Array(V),He=0;He<V;++He)Ct[He]=Re(He*_e,dt,Me);return function(ze){return 0===ze?0:1===ze?1:Re(function Ve(ve){for(var ze=0,rt=1,nt=V-1;rt!==nt&&Ct[rt]<=ve;++rt)ze+=_e;--rt;var Ue=ze+(ve-Ct[rt])/(Ct[rt+1]-Ct[rt])*_e,Wt=q(Ue,dt,Me);return Wt>=C?function be(it,dt,wt,Me){for(var Pe=0;Pe<et;++Pe){var Ct=q(dt,wt,Me);if(0===Ct)return dt;dt-=(Re(dt,wt,Me)-it)/Ct}return dt}(ve,Ue,dt,Me):0===Wt?Ue:function de(it,dt,wt,Me,Pe){var Ct,He,Ve=0;do{(Ct=Re(He=dt+(wt-dt)/2,Me,Pe)-it)>0?wt=He:dt=He}while(Math.abs(Ct)>c&&++Ve<m);return He}(ve,ze,ze+_e,dt,Me)}(ze),wt,Pe)}}},8423:function(ln,et){var C,m;void 0!==(m="function"==typeof(C=function(V){"use strict";function _e(wt){if(Array.isArray(wt)){for(var Me=0,Pe=Array(wt.length);Me<wt.length;Me++)Pe[Me]=wt[Me];return Pe}return Array.from(wt)}Object.defineProperty(V,"__esModule",{value:!0});var pe=!1;if(typeof window<"u"){var me={get passive(){pe=!0}};window.addEventListener("testPassive",null,me),window.removeEventListener("testPassive",null,me)}var Oe=typeof window<"u"&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),ie=[],Re=!1,q=-1,de=void 0,be=void 0,lt=function(wt){return ie.some(function(Me){return!(!Me.options.allowTouchMove||!Me.options.allowTouchMove(wt))})},it=function(wt){var Me=wt||window.event;return!!lt(Me.target)||1<Me.touches.length||(Me.preventDefault&&Me.preventDefault(),!1)},dt=function(){setTimeout(function(){void 0!==be&&(document.body.style.paddingRight=be,be=void 0),void 0!==de&&(document.body.style.overflow=de,de=void 0)})};V.disableBodyScroll=function(wt,Me){if(Oe){if(!wt)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(wt&&!ie.some(function(Ve){return Ve.targetElement===wt})){var Pe={targetElement:wt,options:Me||{}};ie=[].concat(_e(ie),[Pe]),wt.ontouchstart=function(Ve){1===Ve.targetTouches.length&&(q=Ve.targetTouches[0].clientY)},wt.ontouchmove=function(Ve){var ve,ze,rt,nt;1===Ve.targetTouches.length&&(ze=wt,nt=(ve=Ve).targetTouches[0].clientY-q,!lt(ve.target)&&(ze&&0===ze.scrollTop&&0<nt||(rt=ze)&&rt.scrollHeight-rt.scrollTop<=rt.clientHeight&&nt<0?it(ve):ve.stopPropagation()))},Re||(document.addEventListener("touchmove",it,pe?{passive:!1}:void 0),Re=!0)}}else{He=Me,setTimeout(function(){if(void 0===be){var ve=window.innerWidth-document.documentElement.clientWidth;He&&!0===He.reserveScrollBarGap&&0<ve&&(be=document.body.style.paddingRight,document.body.style.paddingRight=ve+"px")}void 0===de&&(de=document.body.style.overflow,document.body.style.overflow="hidden")});var Ct={targetElement:wt,options:Me||{}};ie=[].concat(_e(ie),[Ct])}var He},V.clearAllBodyScrollLocks=function(){Oe?(ie.forEach(function(wt){wt.targetElement.ontouchstart=null,wt.targetElement.ontouchmove=null}),Re&&(document.removeEventListener("touchmove",it,pe?{passive:!1}:void 0),Re=!1),ie=[],q=-1):(dt(),ie=[])},V.enableBodyScroll=function(wt){if(Oe){if(!wt)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");wt.ontouchstart=null,wt.ontouchmove=null,ie=ie.filter(function(Me){return Me.targetElement!==wt}),Re&&0===ie.length&&(document.removeEventListener("touchmove",it,pe?{passive:!1}:void 0),Re=!1)}else(ie=ie.filter(function(Me){return Me.targetElement!==wt})).length||dt()}})?C.apply(et,[et]):C)&&(ln.exports=m)},6135:(ln,et,C)=>{"use strict";C.d(et,{KC:()=>Mt,kb:()=>Gn});var c=C(4650),m=C(6895),V=C(445),_e=C(4080),pe=C(3353),me=C(1281),Oe=C(7579),ie=C(6451),Re=C(4968),q=C(97
151),de=C(6406),be=C(9646),lt=C(5698),it=C(4482),dt=C(2733),Me=C(2529),Pe=C(2722),Ct=C(8746),He=C(1345),Ve=C.n(He);const ve=new c.InjectionToken("SMOOTH_SCROLL_OPTIONS");let ze=(()=>{class bt{constructor(Se,ct,We){this._document=Se,this._platform=ct,this._onGoingScrolls=new Map,this._defaultOptions=Object.assign({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},We)}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(Se,ct,We){Se.scrollLeft=ct,Se.scrollTop=We}_getElement(Se,ct){return"string"==typeof Se?(ct||this._document).querySelector(Se):(0,me.fI)(Se)}_initSmoothScroll(Se){return this._onGoingScrolls.has(Se)&&this._onGoingScrolls.get(Se).next(),this._onGoingScrolls.set(Se,new Oe.x).get(Se)}_isFinished(Se,ct,We){return Se.currentX!==Se.x||Se.currentY!==Se.y||(ct.next(),We(),!1)}_interrupted(Se,ct){return(0,ie.T)((0,Re.R)(Se,"wheel",{passive:!0,capture:!0}),(0,Re.R)(Se,"touchmove",{passive:!0,capture:!0}),ct).pipe((0,lt.q)(1))}_destroy(Se,ct){ct.complete(),this._onGoingScrolls.delete(Se)}_step(Se){return new q.y(ct=>{let We=(this._now()-Se.startTime)/Se.duration;We=We>1?1:We;const Q=Se.easing(We);Se.currentX=Se.startX+(Se.x-Se.startX)*Q,Se.currentY=Se.startY+(Se.y-Se.startY)*Q,this._scrollElement(Se.scrollable,Se.currentX,Se.currentY),de.Z.schedule(()=>ct.next(Se))})}_applyScrollToOptions(Se,ct){if(!ct.duration)return this._scrollElement(Se,ct.left,ct.top),Promise.resolve();const We=this._initSmoothScroll(Se),Q={scrollable:Se,startTime:this._now(),startX:Se.scrollLeft,startY:Se.scrollTop,x:null==ct.left?Se.scrollLeft:~~ct.left,y:null==ct.top?Se.scrollTop:~~ct.top,duration:ct.duration,easing:Ve()(ct.easing.x1,ct.easing.y1,ct.easing.x2,ct.easing.y2)};return new Promise(ue=>{(0,be.of)(null).pipe(function wt(bt,en=1/0,Se){return en=(en||0)<1?1/0:en,(0,it.e)((ct,We)=>(0,dt.p)(ct,We,bt,en,void 0,!0,Se))}(()=>this._step(Q).pipe((0,Me.o)(fe=>this._isFinished(fe,We,ue)))),(0,Pe.R)(this._interrupted(Se,We)),(0,Ct.x)(()=>this._destroy(Se,We))).subscribe()})}scrollTo(Se,ct){if((0,m.NF)(this._platform)){const We=this._getElement(Se),Q="rtl"===getComputedStyle(We).direction,ue=(0,pe._i)(),fe=Object.assign(Object.assign(Object.assign({},this._defaultOptions),ct),{left:null==ct.left?Q?ct.end:ct.start:ct.left,right:null==ct.right?Q?ct.start:ct.end:ct.right});return null!=fe.bottom&&(fe.top=We.scrollHeight-We.clientHeight-fe.bottom),Q&&0!==ue?(null!=fe.left&&(fe.right=We.scrollWidth-We.clientWidth-fe.left),2===ue?fe.left=fe.right:1===ue&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=We.scrollWidth-We.clientWidth-fe.right),this._applyScrollToOptions(We,fe)}return Promise.resolve()}scrollToElement(Se,ct,We={}){const Q=this._getElement(Se),ue=this._getElement(ct,Q),fe=Object.assign(Object.assign({},We),{left:ue.offsetLeft+(We.left||0),top:ue.offsetTop+(We.top||0)});return ue?this.scrollTo(Q,fe):Promise.resolve()}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275inject(m.K0),c.\u0275\u0275inject(c.PLATFORM_ID),c.\u0275\u0275inject(ve,8))},bt.\u0275prov=c.\u0275\u0275defineInjectable({factory:function(){return new bt(c.\u0275\u0275inject(m.K0),c.\u0275\u0275inject(c.PLATFORM_ID),c.\u0275\u0275inject(ve,8))},token:bt,providedIn:"root"}),bt})(),nt=(()=>{class bt{}return bt.\u0275fac=function(Se){return new(Se||bt)},bt.\u0275mod=c.\u0275\u0275defineNgModule({type:bt}),bt.\u0275inj=c.\u0275\u0275defineInjector({}),bt})();var At=C(1135),Ue=C(727),Wt=C(515),je=C(8505),vt=C(4004),jt=C(3900);function On(...bt){const en=bt.length;if(0===en)throw new Error("list of properties cannot be empty.");return(0,vt.U)(Se=>{let ct=Se;for(let We=0;We<en;We++){const Q=ct?.[bt[We]];if(!(typeof Q<"u"))return;ct=Q}return ct})}var Sn=C(1520),St=C(9300),yn=C(3601),ae=C(8372),Ne=C(1884),Xe=C(6099);const qe=["scrollbarY"],yt=["scrollbarX"];function ft(bt,en){if(1&bt&&c.\u0275\u0275element(0,"scrollbar-x",null,4),2&bt){const Se=c.\u0275\u0275nextContext(2);c.\u0275\u0275attribute("scrollable",Se.state.isHorizontallyScrollable)("fit",
1Se.state.verticalUsed)}}function $t(bt,en){if(1&bt&&c.\u0275\u0275element(0,"scrollbar-y",null,5),2&bt){const Se=c.\u0275\u0275nextContext(2);c.\u0275\u0275attribute("scrollable",Se.state.isVerticallyScrollable)("fit",Se.state.horizontalUsed)}}function cn(bt,en){if(1&bt&&(c.\u0275\u0275elementContainerStart(0),c.\u0275\u0275template(1,ft,2,2,"scrollbar-x",3),c.\u0275\u0275template(2,$t,2,2,"scrollbar-y",3),c.\u0275\u0275elementContainerEnd()),2&bt){const Se=c.\u0275\u0275nextContext();c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",Se.state.horizontalUsed),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",Se.state.verticalUsed)}}const tr=["*"];function wn(bt){return(0,je.b)(()=>{bt.onselectstart=()=>!1})}function Wn(bt){return(0,je.b)(()=>{bt.onselectstart=null})}function qn(){return(0,je.b)(bt=>bt.stopPropagation())}function nn(bt,en){return bt.clientX>=en.left&&bt.clientX<=en.left+en.width&&bt.clientY>=en.top&&bt.clientY<=en.top+en.height}let hn=(()=>{class bt{constructor(Se){this.viewPort=Se,this.nativeElement=Se.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var Se;return(null===(Se=this.contentWrapperElement)||void 0===Se?void 0:Se.clientHeight)||0}get contentWidth(){var Se;return(null===(Se=this.contentWrapperElement)||void 0===Se?void 0:Se.clientWidth)||0}activatePointerEvents(Se,ct){this.hovered=new q.y(We=>{const Q=(0,Re.R)(this.nativeElement,"mousemove",{passive:!0}),ue=Se?Q:Q.pipe(qn()),fe=(0,Re.R)(this.nativeElement,"mouseleave").pipe((0,vt.U)(()=>!1));(0,ie.T)(ue,fe).pipe((0,je.b)(X=>We.next(X)),(0,Pe.R)(ct)).subscribe()}),this.clicked=new q.y(We=>{const Q=(0,Re.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,je.b)(fe=>We.next(fe))),ue=(0,Re.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,je.b)(()=>We.next(!1)));Q.pipe((0,jt.w)(()=>ue),(0,Pe.R)(ct)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(Se){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${Se}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(Se){this.nativeElement.scrollTop=Se}scrollXTo(Se){this.nativeElement.scrollLeft=Se}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.ElementRef))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","scrollViewport",""]]}),bt})();const rn=new c.InjectionToken("NG_SCROLLBAR_OPTIONS"),_n={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let xn=(()=>{class bt{constructor(Se){this.globalOptions=Se?Object.assign(Object.assign({},_n),Se):_n,this.rtlScrollAxisType=(0,pe._i)()}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275inject(rn,8))},bt.\u0275prov=c.\u0275\u0275defineInjectable({factory:function(){return new bt(c.\u0275\u0275inject(rn,8))},token:bt,providedIn:"root"}),bt})(),Mt=(()=>{class bt{constructor(Se,ct,We,Q,ue,fe){this.el=Se,this.zone=ct,this.changeDetectorRef=We,this.dir=Q,this.smoothScroll=ue,this.manager=fe,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new c.EventEmitter,this.state={},this.destroyed=new Oe.x}get disabled(){return this._disabled}set disabled(Se){this._disabled=(0,me.Ig)(Se)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(Se){this._sensorDisabled=(0,me.Ig)(Se)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(Se){this._pointerEventsDisabled=(0,me.Ig)(Se)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(Se){this._viewportPropagateMouseMove=(0,me.Ig)(Se)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(Se){this._autoHeightDisabled=(0,me.Ig)(Se)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(Se){this._autoWidthDisabled=(0,me.Ig)(Se)}get nativeElement(){return this.el.nativeElement}updateState(){let Se=!1,ct=!1,We=!1,Q=!1;("all"===this.track||"vertical"===this.track)&&(We=this.viewport.scrollHeight>this.viewport.clientHeight,Se="always"===this.visibility||We),("all"===this.track||"horizontal"===this.track)&&(Q=this.viewport.scrollWidth>this.viewport.clientWidth,ct="always"===this.visibility||Q),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:Se,horizontalUsed:ct,isVerticallyScrollable:We,isHorizontallyScrollable:Q})}setState(Se){this.state=Object.assign(Object.assign({},this.state),Se),this.changeDetectorRef.detectChanges()}getScrolledByDirection(Se){let ct;return this.scrolled.pipe((0,je.b)(We=>ct=We),On("target",Se),(0,Sn.G)(),(0,St.h)(([We,Q])=>We!==Q),(0,vt.U)(()=>ct))}setHovered(Se){this.zone.run(()=>this.setState(Object.assign({},Se)))}setDragging(Se){this.zone.run(()=>this.setState(Object.assign({},Se)))}setClicked(Se){this.zone.run(()=>this.setState({scrollbarClicked:Se}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let Se=(0,Re.R)(this.viewport.nativeElement,"scroll",{passive:!0});Se=this.scrollAuditTime?Se.pipe((0,yn.e)(this.scrollAuditTime)):Se,this.scrolled=Se.pipe((0,Pe.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(Se){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,je.b)(()=>this.update()),(0,Pe.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(Se){return this.smoothScroll.scrollTo(this.viewport.nativeElement,Se)}scrollToElement(Se,ct){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,Se,ct)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(V.Is),c.\u0275\u0275directiveInject(ze),c.\u0275\u0275directiveInject(xn))},bt.\u0275cmp=c.\u0275\u0275defineComponent({type:bt,selectors:[["ng-scrollbar"]],contentQueries:function(Se,ct,We){if(1&Se&&c.\u0275\u0275contentQuery(We,hn,7),2&Se){let Q;c.\u0275\u0275queryRefresh(Q=c.\u0275\u0275loadQuery())&&(ct.customViewPort=Q.first)}},viewQuery:function(Se,ct){if(1&Se&&(c.\u0275\u0275viewQuery(qe,5,c.ElementRef),c.\u0275\u0275viewQuery(yt,5,c.ElementRef),c.\u0275\u0275viewQuery(hn,7)),2&Se){let We;c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.scrollbarY=We.first),c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.scrollbarX=We.first),c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.defaultViewPort=We.first)}},hostVars:2,hostBindings:function(Se,ct){2&Se&&c.\u0275\u0275classProp("ng-scrollbar",!0)},inputs:{viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime",disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[c.\u0275\u0275NgOnChangesFeature],ngContentSelectors:tr,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(Se,ct){1&Se&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275elementStart(0,"div",0)(1,"div",1),c.\u0275\u0275listener("resizeSensor",function(){return ct.update(
1)}),c.\u0275\u0275elementStart(2,"div",2)(3,"div"),c.\u0275\u0275projection(4),c.\u0275\u0275elementEnd()()(),c.\u0275\u0275template(5,cn,3,2,"ng-container",3),c.\u0275\u0275elementEnd()),2&Se&&(c.\u0275\u0275property("ngAttr",ct.state),c.\u0275\u0275advance(1),c.\u0275\u0275property("sensorDebounce",ct.sensorDebounce)("sensorDisabled",ct.sensorDisabled),c.\u0275\u0275advance(4),c.\u0275\u0275property("ngIf",!ct.disabled))},dependencies:function(){return[m.O5,hn,se,K,Te,Dr,vr]},styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius:7px;--scrollbar-padding:4px;--scrollbar-track-color:transparent;--scrollbar-thumb-color:rgba(0,0,0,0.2);--scrollbar-thumb-hover-color:var(--scrollbar-thumb-color);--scrollbar-size:5px;--scrollbar-hover-size:var(--scrollbar-size);--scrollbar-overscroll-behavior:initial;--scrollbar-transition-duration:400ms;--scrollbar-transition-delay:800ms;--scrollbar-thumb-transition:height ease-out 150ms,width ease-out 150ms;--scrollbar-track-transition:height ease-out 150ms,width ease-out 150ms;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size:calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size:var(--scrollbar-size);--horizontal-scrollbar-size:var(--scrollbar-size);--vertical-scrollbar-total-size:calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size:calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%]{--vertical-scrollbar-size:var(--scrollbar-hover-size);--vertical-scrollbar-total-size:calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size:var(--scrollbar-hover-size);--horizontal-scrollbar-total-size:calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%]{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] >
1 .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),bt})(),Nt=(()=>{class bt{constructor(Se,ct,We){this.document=Se,this.manager=ct,this.platform=We,this._scrollbarSize=new At.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),We.isBrowser&&(0,Re.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,ae.b)(this.manager.globalOptions.windowResizeDebounce),(0,vt.U)(()=>this.getNativeScrollbarSize()),(0,Ne.x)(),(0,je.b)(Q=>this._scrollbarSize.next(Q))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const Se=this.document.createElement("div");Se.className="ng-scrollbar-measure",Se.style.left=0,Se.style.overflow="scroll",Se.style.position="fixed",Se.style.top="-9999px",this.document.body.appendChild(Se);const ct=Se.getBoundingClientRect().right;return this.document.body.removeChild(Se),ct}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275inject(m.K0),c.\u0275\u0275inject(xn),c.\u0275\u0275inject(pe.t4))},bt.\u0275prov=c.\u0275\u0275defineInjectable({factory:function(){return new bt(c.\u0275\u0275inject(m.K0),c.\u0275\u0275inject(xn),c.\u0275\u0275inject(pe.t4))},token:bt,providedIn:"root"}),bt})(),se=(()=>{class bt{constructor(Se,ct,We){this.renderer=ct,this.hideNativeScrollbar=We,this._subscriber=Ue.w0.EMPTY,this._subscriber=We.scrollbarSize.subscribe(Q=>{this.renderer.setStyle(Se.nativeElement,"--native-scrollbar-size",`-${Q}px`,c.RendererStyleFlags2.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(Nt))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","hideNativeScrollbar",""]]}),bt})(),K=(()=>{class bt{constructor(Se){this.el=Se}set ngAttr(Se){for(const[ct,We]of Object.entries(Se))this.el.nativeElement.setAttribute(ct,We)}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.ElementRef))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),bt})(),Te=(()=>{class bt{constructor(Se,ct,We){if(this.zone=Se,this.platform=ct,this.scrollbar=We,this._disabled=!1,this._currentSubscription=null,this.event=new c.EventEmitter,!We)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(Se){this._debounce=(0,me.su)(Se),this._subscribe()}get disabled(){return this._disabled}set disabled(Se){this._disabled=(0,me.Ig)(Se),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const Se=new q.y(ct=>{this._resizeObserver=new ResizeObserver(We=>ct.next(We)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?Se.pipe((0,ae.b)(this._debounce)):Se).subscribe(this.event)})}}_unsubscribe(){var Se,ct;null===(Se=this._resizeObserver)||void 0===Se||Se.disconnect(),null===(ct=this._currentSubscription)||void 0===ct||ct.unsubscribe()}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(pe.t4),c.\u0275\u0275directiveInject(Mt))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),bt})(),Be=(()=>{class bt{constructor(Se,ct,We){this.cmp=Se,this.trackElement=ct,this.document=We}get clicked(){const Se=(0,Re.R)(this.trackElement,"mousedown",{passive:!0}).pipe(qn(),wn(this.document)),ct=(0,Re.R)(this.document,"mouseup",{passive:!0}).pipe(qn(),Wn(this.document),(0,jt.w)(()=>Wt.E));return(0,ie.T)(Se,ct)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(Se,ct,We){return(0,be.of)(Se).pipe(On(this.pageProperty),(0,vt.U)(Q=>(Q-this.offset-ct/2)/this.size*We),(0,je.b)(Q=>{this.cmp.scrollTo(Object.assign(Object.assign({},this.mapToScrollToOption(Q)),{duration:(0,me.su)(this.cmp.trackClickScrollDuration)}))}))}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(HTMLElement),c.\u0275\u0275directiveInject(void 0))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt}),bt})(),It=(()=>{class bt{constructor(Se,ct,We,Q){this.cmp=Se,this.track=ct,this.thumbElement=We,this.document=Q,this._dragging=new Oe.x,this.dragging=this._dragging.pipe((0,Ne.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,Re.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(qn())}update(){const Se=function Yt(bt,en,Se){return Math.max(~~(bt/en*bt),Se)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),ct=function qt(bt,en,Se){return bt*Se/en}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);de.Z.schedule(()=>this.updateStyles(this.handleDirection(ct,this.trackMax),Se))}dragged(Se){let ct,We;const Q=(0,be.of)(Se).pipe(wn(this.document),(0,je.b)(()=>{ct=this.trackMax,We=this.viewportScrollMax,this.setDragging(!0)})),ue=(0,Re.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(qn()),fe=(0,Re.R)(this.document,"mouseup",{capture:!0}).pipe(qn(),Wn(this.document),(0,je.b)(()=>this.setDragging(!1)));return Q.pipe(On(this.pageProperty),(0,vt.U)(X=>X-this.dragStartOffset),(0,Xe.z)(X=>ue.pipe(On(this.clientProperty),(0,vt.U)(ce=>ce-this.track.offset),(0,vt.U)(ce=>We*(ce-X)/ct),(0,vt.U)(ce=>this.handleDrag(ce,We)),(0,je.b)(ce=>this.scrollTo(ce)),(0,Pe.R)(fe))))}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(Be),c.\u0275\u0275directiveInject(HTMLElement),c.\u0275\u0275directiveInject(void 0))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,outputs:{dragging:"dragging"}}),bt})(),dn=(()=>{class bt extends Be{constructor(Se,ct,We){super(Se,ct.nativeElement,We),this.cmp=Se,this.document=We}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(Se){return{left:Se}}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(m.K0))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","scrollbarTrackX",""]],features:[c.\u0275\u0275InheritDefinitionFeature]}),bt})(),sn=(()=>{class bt extends Be{constructor(Se,ct,We){super(Se,ct.nativeElement,We),this.cmp=Se,this.document=We}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(Se){return{top:Se}}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(m.K0))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","scrollbarTrackY",""]],features:[c.\u0275\u0275InheritDefinitionFeature]}),bt})(),Xt=(()=>{class bt extends It{constructor(Se,ct,We,Q,ue){super(Se,ct,We.nativeElement,Q),this.cmp=Se,this.track=ct,this.element=We,this.document=Q,this.dir=ue}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(Se,ct){this.thumbElement.style.width=`${ct}px`,this.thumbElement.style.transform=`translate3d(${Se}px, 0, 0)`}handleDrag(Se,ct){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return Se-ct;if(2===this.cmp.manager.rtlScrollAxisType)return ct-Se}return Se}handleDirection(Se,ct){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-Se;if(0===this.cmp.manager.rtlScrollAxisType)return Se-ct}return Se}setDragging(Se){this.cmp.setDragging({horizontalDragging:Se})}scrollTo(Se){this.cmp.viewport.scrollXTo(Se)}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(dn),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(m.K0),c.\u0275\u0275directiveInject(V.Is))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","scrollbarThumbX",""]],features:[c.\u0275\u0275InheritDefinitionFeature]}),bt})(),Mn=(()=>{class bt extends It{constructor(Se,ct,We,Q){super(Se,ct,We.nativeElement,Q),this.cmp=Se,this.track=ct,this.element=We,this.document=Q}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(Se,ct){this.thumbElement.style.height=`${ct}px`,this.thumbElement.style.transform=`translate3d(0px, ${Se}px, 0)`}handleDrag(Se){return Se}handleDirection(Se){return Se}setDragging(Se){this.cmp.setDragging({verticalDragging:Se})}scrollTo(Se){this.cmp.viewport.scrollYTo(Se)}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(sn),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(m.K0))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt,selectors:[["","scrollbarThumbY",""]],features:[c.\u0275\u0275InheritDefinitionFeature]}),bt})(),bn=(()=>{class bt{constructor(Se,ct,We,Q,ue){this.el=Se,this.cmp=ct,this.platform=We,this.document=Q,this.zone=ue,this.destroyed=new Oe.x}activatePointerEvents(){let Se,ct,We;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Oe.x,this.viewportThumbClicked=new Oe.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),Se=this.viewportThumbClicked,ct=this.viewportTrackClicked,We=this.cmp.viewport.hovered.pipe((0,vt.U)(Q=>nn(Q,this.el.getBoundingClientRect())),(0,Ne.x)(),(0,je.b)(Q=>this.document.onselectstart=Q?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,je.b)(Q=>{Q?nn(Q,this.thumb.clientRect)?this.viewportThumbClicked.next(Q):nn(Q,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(Q)):this.cmp.setClicked(!1)}),(0,Pe.R)(this.destroyed)).subscribe()):(Se=this.thumb.clicked,ct=this.track.clicked,We=this.hovered),(0,ie.T)(We.pipe((0,je.b)(Q=>this.setHovered(Q))),Se.pipe((0,jt.w)(Q=>this.thumb.dragged(Q))),ct.pipe((0,jt.w)(Q=>this.track.onTrackClicked(Q,this.thumb.size,this.viewportScrollSize))))}get hovered(){const Se=(0,Re.R)(this.el,"mouseenter",{passive:!0}).pipe(qn(),(0,vt.U)(()=>!0)),ct=(0,Re.R)(this.el,"mouseleave",{passive:!0}).pipe(qn(),(0,vt.U)(()=>!1));return(0,ie.T)(Se,ct)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,Pe.R)(this.destroyed)).subscribe(),(0,ie.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,je.b)(()=>{var Se;
1return null===(Se=this.thumb)||void 0===Se?void 0:Se.update()}),(0,Pe.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(HTMLElement),c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(pe.t4),c.\u0275\u0275directiveInject(void 0),c.\u0275\u0275directiveInject(c.NgZone))},bt.\u0275dir=c.\u0275\u0275defineDirective({type:bt}),bt})(),Dr=(()=>{class bt extends bn{constructor(Se,ct,We,Q,ue){super(Se.nativeElement,ct,We,Q,ue),this.cmp=ct,this.platform=We,this.document=Q,this.zone=ue}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(Se){this.cmp.setHovered({verticalHovered:Se})}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(pe.t4),c.\u0275\u0275directiveInject(m.K0),c.\u0275\u0275directiveInject(c.NgZone))},bt.\u0275cmp=c.\u0275\u0275defineComponent({type:bt,selectors:[["scrollbar-y"]],viewQuery:function(Se,ct){if(1&Se&&(c.\u0275\u0275viewQuery(sn,7),c.\u0275\u0275viewQuery(Mn,7)),2&Se){let We;c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.track=We.first),c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.thumb=We.first)}},hostVars:2,hostBindings:function(Se,ct){2&Se&&c.\u0275\u0275classProp("scrollbar-control",!0)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(Se,ct){1&Se&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275element(1,"div",1),c.\u0275\u0275elementEnd()),2&Se&&(c.\u0275\u0275classMapInterpolate1("ng-scrollbar-track ",ct.cmp.trackClass,""),c.\u0275\u0275advance(1),c.\u0275\u0275classMapInterpolate1("ng-scrollbar-thumb ",ct.cmp.thumbClass,""))},dependencies:[Mn,sn],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:unset} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control{left:0;right:unset} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control{left:unset;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),bt})(),vr=(()=>{class bt extends bn{constructor(Se,ct,We,Q,ue){super(Se.nativeElement,ct,We,Q,ue),this.cmp=ct,this.platform=We,this.document=Q,this.zone=ue}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(Se){this.cmp.setHovered({horizontalHovered:Se})}}return bt.\u0275fac=function(Se){return new(Se||bt)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(Mt),c.\u0275\u0275directiveInject(pe.t4),c.\u0275\u0275directiveInject(m.K0),c.\u0275\u0275directiveInject(c.NgZone))},bt.\u0275cmp=c.\u0275\u0275defineComponent({type:bt,selectors:[["scrollbar-x"]],viewQuery:function(Se,ct){if(1&Se&&(c.\u0275\u0275viewQuery(dn,7),c.\u0275\u0275viewQuery(Xt,7)),2&Se){let We;c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.track=We.first),c.\u0275\u0275queryRefresh(We=c.\u0275\u0275loadQuery())&&(ct.thumb=We.first)}},hostVars:2,hostBindings:function(Se,ct){2&Se&&c.\u0275\u0275classProp("scrollbar-control",!0)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(Se,ct){1&Se&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275element(1,"div",1),c.\u0275\u0275elementEnd()),2&Se&&(c.\u0275\u0275classMapInterpolate1("ng-scrollbar-track ",ct.cmp.trackClass,""),c.\u0275\u0275advance(1),c.\u0275\u0275classMapInterpolate1("ng-scrollbar-thumb ",ct.cmp.thumbClass,""))},dependencies:[Xt,dn],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control{top:0;bottom:unset} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:unset} .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control{top:0;bottom:unset} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),bt})(),Gn=(()=>{class bt{static withConfig(Se){return{ngModule:bt,providers:[{provide:rn,useValue:Se}]}}}return bt.\u0275fac=function(Se){return new(Se||bt)},bt.\u0275mod=c.\u0275\u0275defineNgModule({type:bt}),bt.\u0275inj=c.\u0275\u0275defineInjector({imports:[m.ez,V.vT,_e.eL,pe.ud,nt]}),bt})()},1135:(ln,et,C)=>{"use strict";C.d(et,{X:()=>m});var c=C(7579);class m extends c.x{constructor(_e){super(),this._value=_e}get value(){return this.getValue()}_subscribe(_e){const pe=super._subscribe(_e);return!pe.closed&&_e.next(this._value),pe}getValue(){const{hasError:_e,thrownError:pe,_value:me}=this;if(_e)throw pe;return this._throwIfClosed(),me}next(_e){super.next(this._value=_e)}
vendor: 6,093 bytes, line 1
1}},9751:(ln,et,C)=>{"use strict";C.d(et,{y:()=>ie});var c=C(930),m=C(727),V=C(8822),_e=C(9635),pe=C(2416),me=C(576),Oe=C(2806);let ie=(()=>{class be{constructor(it){it&&(this._subscribe=it)}lift(it){const dt=new be;return dt.source=this,dt.operator=it,dt}subscribe(it,dt,wt){const Me=function de(be){return be&&be instanceof c.Lv||function q(be){return be&&(0,me.m)(be.next)&&(0,me.m)(be.error)&&(0,me.m)(be.complete)}(be)&&(0,m.Nn)(be)}(it)?it:new c.Hp(it,dt,wt);return(0,Oe.x)(()=>{const{operator:Pe,source:Ct}=this;Me.add(Pe?Pe.call(Me,Ct):Ct?this._subscribe(Me):this._trySubscribe(Me))}),Me}_trySubscribe(it){try{return this._subscribe(it)}catch(dt){it.error(dt)}}forEach(it,dt){return new(dt=Re(dt))((wt,Me)=>{const Pe=new c.Hp({next:Ct=>{try{it(Ct)}catch(He){Me(He),Pe.unsubscribe()}},error:Me,complete:wt});this.subscribe(Pe)})}_subscribe(it){var dt;return null===(dt=this.source)||void 0===dt?void 0:dt.subscribe(it)}[V.L](){return this}pipe(...it){return(0,_e.U)(it)(this)}toPromise(it){return new(it=Re(it))((dt,wt)=>{let Me;this.subscribe(Pe=>Me=Pe,Pe=>wt(Pe),()=>dt(Me))})}}return be.create=lt=>new be(lt),be})();function Re(be){var lt;return null!==(lt=be??pe.v.Promise)&&void 0!==lt?lt:Promise}},4707:(ln,et,C)=>{"use strict";C.d(et,{t:()=>V});var c=C(7579),m=C(6063);class V extends c.x{constructor(pe=1/0,me=1/0,Oe=m.l){super(),this._bufferSize=pe,this._windowTime=me,this._timestampProvider=Oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=me===1/0,this._bufferSize=Math.max(1,pe),this._windowTime=Math.max(1,me)}next(pe){const{isStopped:me,_buffer:Oe,_infiniteTimeWindow:ie,_timestampProvider:Re,_windowTime:q}=this;me||(Oe.push(pe),!ie&&Oe.push(Re.now()+q)),this._trimBuffer(),super.next(pe)}_subscribe(pe){this._throwIfClosed(),this._trimBuffer();const me=this._innerSubscribe(pe),{_infiniteTimeWindow:Oe,_buffer:ie}=this,Re=ie.slice();for(let q=0;q<Re.length&&!pe.closed;q+=Oe?1:2)pe.next(Re[q]);return this._checkFinalizedStatuses(pe),me}_trimBuffer(){const{_bufferSize:pe,_timestampProvider:me,_buffer:Oe,_infiniteTimeWindow:ie}=this,Re=(ie?1:2)*pe;if(pe<1/0&&Re<Oe.length&&Oe.splice(0,Oe.length-Re),!ie){const q=me.now();let de=0;for(let be=1;be<Oe.length&&Oe[be]<=q;be+=2)de=be;de&&Oe.splice(0,de+1)}}}},7579:(ln,et,C)=>{"use strict";C.d(et,{x:()=>Oe});var c=C(9751),m=C(727);const _e=(0,C(3888).d)(Re=>function(){Re(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var pe=C(8737),me=C(2806);let Oe=(()=>{class Re extends c.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(de){const be=new ie(this,this);return be.operator=de,be}_throwIfClosed(){if(this.closed)throw new _e}next(de){(0,me.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const be of this.currentObservers)be.next(de)}})}error(de){(0,me.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=de;const{observers:be}=this;for(;be.length;)be.shift().error(de)}})}complete(){(0,me.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:de}=this;for(;de.length;)de.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var de;return(null===(de=this.observers)||void 0===de?void 0:de.length)>0}_trySubscribe(de){return this._throwIfClosed(),super._trySubscribe(de)}_subscribe(de){return this._throwIfClosed(),this._checkFinalizedStatuses(de),this._innerSubscribe(de)}_innerSubscribe(de){const{hasError:be,isStopped:lt,observers:it}=this;return be||lt?m.Lc:(this.currentObservers=null,it.push(de),new m.w0(()=>{this.currentObservers=null,(0,pe.P)(it,de)}))}_checkFinalizedStatuses(de){const{hasError:be,thrownError:lt,isStopped:it}=this;be?de.error(lt):it&&de.complete()}asObservable(){const de=new c.y;return de.source=this,de}}return Re.create=(q,de)=>new ie(q,de),Re})();class ie extends Oe{constructor(q,de){super(),this.destination=q,this.source=de}next(q){var de,be;null===(be=null===(de=this.destination)||void 0===de?void 0:de.next)||void 0===be||be.call(de,q)}error(q){var de,be;null===(be=null===(de=this.destination)||void 0===de?void 0:de.error)||void 0===be||be.call(de,q)}complete(){var q,de;null===(de=null===(q=this.destination)||void 0===q?void 0:q.complete)||void 0===de||de.call(q)}_subscribe(q){var de,be;return null!==(be=null===(de=this.source)||void 0===de?void 0:de.subscribe(q))&&void 0!==be?be:m.Lc}}},930:(ln,et,C)=>{"use strict";C.d(et,{Hp:()=>wt,Lv:()=>be});var c=C(576),m=C(727),V=C(2416),_e=C(7849),pe=C(5032);const me=Re("C",void 0,void 0);function Re(Ve,ve,ze){return{kind:Ve,value:ve,error:ze}}var q=C(3410),de=C(2806);class be extends m.w0{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,m.Nn)(ve)&&ve.add(this)):this.destination=He}static create(ve,ze,rt){return new wt(ve,ze,rt)}next(ve){this.isStopped?Ct(function ie(Ve){return Re("N",Ve,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?Ct(function Oe(Ve){return Re("E",void 0,Ve)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?Ct(me,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const lt=Function.prototype.bind;function it(Ve,ve){return lt.call(Ve,ve)}class dt{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:ze}=this;if(ze.next)try{ze.next(ve)}catch(rt){Me(rt)}}error(ve){const{partialObserver:ze}=this;if(ze.error)try{ze.error(ve)}catch(rt){Me(rt)}else Me(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(ze){Me(ze)}}}class wt extends be{constructor(ve,ze,rt){let nt;if(super(),(0,c.m)(ve)||!ve)nt={next:ve??void 0,error:ze??void 0,complete:rt??void 0};else{let At;
1this&&V.v.useDeprecatedNextContext?(At=Object.create(ve),At.unsubscribe=()=>this.unsubscribe(),nt={next:ve.next&&it(ve.next,At),error:ve.error&&it(ve.error,At),complete:ve.complete&&it(ve.complete,At)}):nt=ve}this.destination=new dt(nt)}}function Me(Ve){V.v.useDeprecatedSynchronousErrorHandling?(0,de.O)(Ve):(0,_e.h)(Ve)}function Ct(Ve,ve){const{onStoppedNotification:ze}=V.v;ze&&q.z.setTimeout(()=>ze(Ve,ve))}const He={closed:!0,next:pe.Z,error:function Pe(Ve){throw Ve},complete:pe.Z}},727:(ln,et,C)=>{"use strict";C.d(et,{Lc:()=>me,w0:()=>pe,Nn:()=>Oe});var c=C(576);const V=(0,C(3888).d)(Re=>function(de){Re(this),this.message=de?`${de.length} errors occurred during unsubscription:\n${de.map((be,lt)=>`${lt+1}) ${be.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=de});var _e=C(8737);class pe{constructor(q){this.initialTeardown=q,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let q;if(!this.closed){this.closed=!0;const{_parentage:de}=this;if(de)if(this._parentage=null,Array.isArray(de))for(const it of de)it.remove(this);else de.remove(this);const{initialTeardown:be}=this;if((0,c.m)(be))try{be()}catch(it){q=it instanceof V?it.errors:[it]}const{_finalizers:lt}=this;if(lt){this._finalizers=null;for(const it of lt)try{ie(it)}catch(dt){q=q??[],dt instanceof V?q=[...q,...dt.errors]:q.push(dt)}}if(q)throw new V(q)}}add(q){var de;if(q&&q!==this)if(this.closed)ie(q);else{if(q instanceof pe){if(q.closed||q._hasParent(this))return;q._addParent(this)}(this._finalizers=null!==(de=this._finalizers)&&void 0!==de?de:[]).push(q)}}_hasParent(q){const{_parentage:de}=this;return de===q||Array.isArray(de)&&de.includes(q)}_addParent(q){const{_parentage:de}=this;this._parentage=Array.isArray(de)?(de.push(q),de):de?[de,q]:q}_removeParent(q){const{_parentage:de}=this;de===q?this._parentage=null:Array.isArray(de)&&(0,_e.P)(de,q)}remove(q){const{_finalizers:de}=this;de&&(0,_e.P)(de,q),q instanceof pe&&q._removeParent(this)}}pe.EMPTY=(()=>{const Re=new pe;return Re.closed=!0,Re})();const me=pe.EMPTY;function Oe(Re){return Re instanceof pe||Re&&"closed"in Re&&(0,c.m)(Re.remove)&&(0,c.m)(Re.add)&&(0,c.m)(Re.unsubscribe)}function ie(Re){(0,c.m)(Re)?Re():Re.unsubscribe()}},2416:(ln,et,C)=>{"use strict";C.d(et,{v:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(ln,et,C)=>{"use strict";C.d(et,{a:()=>q});var c=C(9751),m=C(4742),V=C(8996),_e=C(4671),pe=C(3268),me=C(3269),Oe=C(1810),ie=C(5403),Re=C(9672);function q(...lt){const it=(0,me.yG)(lt),dt=(0,me.jO)(lt),{args:wt,keys:Me}=(0,m.D)(lt);if(0===wt.length)return(0,V.D)([],it);const Pe=new c.y(function de(lt,it,dt=_e.y){return wt=>{be(it,()=>{const{length:Me}=lt,Pe=new Array(Me);let Ct=Me,He=Me;for(let Ve=0;Ve<Me;Ve++)be(it,()=>{const ve=(0,V.D)(lt[Ve],it);let ze=!1;ve.subscribe((0,ie.x)(wt,rt=>
1{Pe[Ve]=rt,ze||(ze=!0,He--),He||wt.next(dt(Pe.slice()))},()=>{--Ct||wt.complete()}))},wt)},wt)}}(wt,it,Me?Ct=>(0,Oe.n)(Me,Ct):_e.y));return dt?Pe.pipe((0,pe.Z)(dt)):Pe}function be(lt,it,dt){lt?(0,Re.f)(dt,lt,it):it()}},7272:(ln,et,C)=>{"use strict";C.d(et,{z:()=>pe});var c=C(8189),V=C(3269),_e=C(8996);function pe(...me){return function m(){return(0,c.J)(1)}()((0,_e.D)(me,(0,V.yG)(me)))}},9770:(ln,et,C)=>{"use strict";C.d(et,{P:()=>V});var c=C(9751),m=C(8421);function V(_e){return new c.y(pe=>{(0,m.Xf)(_e()).subscribe(pe)})}},515:(ln,et,C)=>{"use strict";C.d(et,{E:()=>m});const m=new(C(9751).y)(pe=>pe.complete())},8996:(ln,et,C)=>{"use strict";C.d(et,{D:()=>ve});var c=C(8421),m=C(5363),V=C(9468),me=C(9751),ie=C(2202),Re=C(576),q=C(9672);function be(ze,rt){if(!ze)throw new Error("Iterable cannot be null");return new me.y(nt=>{(0,q.f)(nt,rt,()=>{const At=ze[Symbol.asyncIterator]();(0,q.f)(nt,rt,()=>{At.next().then(Ue=>{Ue.done?nt.complete():nt.next(Ue.value)})},0,!0)})})}var lt=C(3670),it=C(8239),dt=C(1144),wt=C(6495),Me=C(2206),Pe=C(4532),Ct=C(3260);function ve(ze,rt){return rt?function Ve(ze,rt){if(null!=ze){if((0,lt.c)(ze))return function _e(ze,rt){return(0,c.Xf)(ze).pipe((0,V.R)(rt),(0,m.Q)(rt))}(ze,rt);if((0,dt.z)(ze))return function Oe(ze,rt){return new me.y(nt=>{let At=0;return rt.schedule(function(){At===ze.length?nt.complete():(nt.next(ze[At++]),nt.closed||this.schedule())})})}(ze,rt);if((0,it.t)(ze))return function pe(ze,rt){return(0,c.Xf)(ze).pipe((0,V.R)(rt),(0,m.Q)(rt))}(ze,rt);if((0,Me.D)(ze))return be(ze,rt);if((0,wt.T)(ze))return function de(ze,rt){return new me.y(nt=>{let At;return(0,q.f)(nt,rt,()=>{At=ze[ie.h](),(0,q.f)(nt,rt,()=>{let Ue,Wt;try{({value:Ue,done:Wt}=At.next())}catch(je){return void nt.error(je)}Wt?nt.complete():nt.next(Ue)},0,!0)}),()=>(0,Re.m)(At?.return)&&At.return()})}(ze,rt);if((0,Ct.L)(ze))return function He(ze,rt){return be((0,Ct.Q)(ze),rt)}(ze,rt)}throw(0,Pe.z)(ze)}(ze,rt):(0,c.Xf)(ze)}},4968:(ln,et,C)=>{"use strict";C.d(et,{R:()=>q});var c=C(8421),m=C(9751),V=C(6099),_e=C(1144),pe=C(576),me=C(3268);const Oe=["addListener","removeListener"],ie=["addEventListener","removeEventListener"],Re=["on","off"];function q(dt,wt,Me,Pe){if((0,pe.m)(Me)&&(Pe=Me,Me=void 0),Pe)return q(dt,wt,Me).pipe((0,me.Z)(Pe));const[Ct,He]=function it(dt){return(0,pe.m)(dt.addEventListener)&&(0,pe.m)(dt.removeEventListener)}(dt)?ie.map(Ve=>ve=>dt[Ve](wt,ve,Me)):function be(dt){return(0,pe.m)(dt.addListener)&&(0,pe.m)(dt.removeListener)}(dt)?Oe.map(de(dt,wt)):function lt(dt){return(0,pe.m)(dt.on)&&(0,pe.m)(dt.off)}(dt)?Re.map(de(dt,wt)):[];if(!Ct&&(0,_e.z)(dt))return(0,V.z)(Ve=>q(Ve,wt,Me))((0,c.Xf)(dt));if(!Ct)throw new TypeError("Invalid event target");return new m.y(Ve=>{const ve=(...ze)=>Ve.next(1<ze.length?ze:ze[0]);return Ct(ve),()=>He(ve)})}function de(dt,wt){return Me=>Pe=>dt[Me](wt,Pe)}},8421:(ln,et,C)=>{"use strict";C.d(et,{Xf:()=>lt});var c=C(7582),m=C(1144),V=C(8239),_e=C(9751),pe=C(3670),me=C(2206),Oe=C(4532),ie=C(6495),Re=C(3260),q=C(576),de=C(7849),be=C(8822);function lt(Ve){if(Ve instanceof _e.y)return Ve;if(null!=Ve){if((0,pe.c)(Ve))return function it(Ve){return new _e.y(ve=>{const ze=Ve[be.L]();if((0,q.m)(ze.subscribe))return ze.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,m.z)(Ve))return function dt(Ve){return new _e.y(ve=>{for(let ze=0;ze<Ve.length&&!ve.closed;ze++)ve.next(Ve[ze]);ve.complete()})}(Ve);if((0,V.t)(Ve))return function wt(Ve){return new _e.y(ve=>{Ve.then(ze=>{ve.closed||(ve.next(ze),ve.complete())},ze=>ve.error(ze)).then(null,de.h)})}(Ve);if((0,me.D)(Ve))return Pe(Ve);if((0,ie.T)(Ve))return function Me(Ve){return new _e.y(ve=>{for(const ze of Ve)if(ve.next(ze),ve.closed)return;ve.complete()})}(Ve);if((0,Re.L)(Ve))return function Ct(Ve){return Pe((0,Re.Q)(Ve))}(Ve)}throw(0,Oe.z)(Ve)}function Pe(Ve){return new _e.y(ve=>{(function He(Ve,ve){var ze,rt,nt,At;return(0,c.mG)(this,void 0,void 0,function*(){try{for(ze=(0,c.KL)(Ve);!(rt=yield ze.next()).done;)if(ve.next(rt.value),ve.closed)return}catch(Ue){nt={error:Ue}}finally{try{rt&&!rt.done&&(At=ze.return)&&(yield At.call(ze))}finally{if(nt)throw nt.error}}ve.complete()})}
1)(Ve,ve).catch(ze=>ve.error(ze))})}},6451:(ln,et,C)=>{"use strict";C.d(et,{T:()=>me});var c=C(8189),m=C(8421),V=C(515),_e=C(3269),pe=C(8996);function me(...Oe){const ie=(0,_e.yG)(Oe),Re=(0,_e._6)(Oe,1/0),q=Oe;return q.length?1===q.length?(0,m.Xf)(q[0]):(0,c.J)(Re)((0,pe.D)(q,ie)):V.E}},9646:(ln,et,C)=>{"use strict";C.d(et,{of:()=>V});var c=C(3269),m=C(8996);function V(..._e){const pe=(0,c.yG)(_e);return(0,m.D)(_e,pe)}},2843:(ln,et,C)=>{"use strict";C.d(et,{_:()=>V});var c=C(9751),m=C(576);function V(_e,pe){const me=(0,m.m)(_e)?_e:()=>_e,Oe=ie=>ie.error(me());return new c.y(pe?ie=>pe.schedule(Oe,0,ie):Oe)}},5963:(ln,et,C)=>{"use strict";C.d(et,{H:()=>pe});var c=C(9751),m=C(4986),V=C(3532);function pe(me=0,Oe,ie=m.P){let Re=-1;return null!=Oe&&((0,V.K)(Oe)?ie=Oe:Re=Oe),new c.y(q=>{let de=function _e(me){return me instanceof Date&&!isNaN(me)}(me)?+me-ie.now():me;de<0&&(de=0);let be=0;return ie.schedule(function(){q.closed||(q.next(be++),0<=Re?this.schedule(void 0,Re):q.complete())},de)})}},5403:(ln,et,C)=>{"use strict";C.d(et,{x:()=>m});var c=C(930);function m(_e,pe,me,Oe,ie){return new V(_e,pe,me,Oe,ie)}class V extends c.Lv{constructor(pe,me,Oe,ie,Re,q){super(pe),this.onFinalize=Re,this.shouldUnsubscribe=q,this._next=me?function(de){try{me(de)}catch(be){pe.error(be)}}:super._next,this._error=ie?function(de){try{ie(de)}catch(be){pe.error(be)}finally{this.unsubscribe()}}:super._error,this._complete=Oe?function(){try{Oe()}catch(de){pe.error(de)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var pe;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:me}=this;super.unsubscribe(),!me&&(null===(pe=this.onFinalize)||void 0===pe||pe.call(this))}}}},3601:(ln,et,C)=>{"use strict";C.d(et,{e:()=>Oe});var c=C(4986),m=C(4482),V=C(8421),_e=C(5403),me=C(5963);function Oe(ie,Re=c.z){return function pe(ie){return(0,m.e)((Re,q)=>{let de=!1,be=null,lt=null,it=!1;const dt=()=>{if(lt?.unsubscribe(),lt=null,de){de=!1;const Me=be;be=null,q.next(Me)}it&&q.complete()},wt=()=>{lt=null,it&&q.complete()};Re.subscribe((0,_e.x)(q,Me=>{de=!0,be=Me,lt||(0,V.Xf)(ie(Me)).subscribe(lt=(0,_e.x)(q,dt,wt))},()=>{it=!0,(!de||!lt||lt.closed)&&q.complete()}))})}(()=>(0,me.H)(ie,Re))}},4351:(ln,et,C)=>{"use strict";C.d(et,{b:()=>V});var c=C(6099),m=C(576);function V(_e,pe){return(0,m.m)(pe)?(0,c.z)(_e,pe,1):(0,c.z)(_e,1)}},8372:(ln,et,C)=>{"use strict";C.d(et,{b:()=>_e});var c=C(4986),m=C(4482),V=C(5403);function _e(pe,me=c.z){return(0,m.e)((Oe,ie)=>{let Re=null,q=null,de=null;const be=()=>{if(Re){Re.unsubscribe(),Re=null;const it=q;q=null,ie.next(it)}};function lt(){const it=de+pe,dt=me.now();if(dt<it)return Re=this.schedule(void 0,it-dt),void ie.add(Re);be()}Oe.subscribe((0,V.x)(ie,it=>{q=it,de=me.now(),Re||(Re=me.schedule(lt,pe),ie.add(Re))},()=>{be(),ie.complete()},void 0,()=>{q=Re=null}))})}},6590:(ln,et,C)=>{"use strict";C.d(et,{d:()=>V});var c=C(4482),m=C(5403);function V(_e){return(0,c.e)((pe,me)=>{let Oe=!1;pe.subscribe((0,m.x)(me,ie=>{Oe=!0,me.next(ie)},()=>{Oe||me.next(_e),me.complete()}))})}},1884:(ln,et,C)=>{"use strict";C.d(et,{x:()=>_e});var c=C(4671),m=C(4482),V=C(5403);function _e(me,Oe=c.y){return me=me??pe,(0,m.e)((ie,Re)=>{let q,de=!0;ie.subscribe((0,V.x)(Re,be=>{const lt=Oe(be);(de||!me(q,lt))&&(de=!1,q=lt,Re.next(be))}))})}function pe(me,Oe){return me===Oe}},9300:(ln,et,C)=>{"use strict";C.d(et,{h:()=>V});var c=C(4482),m=C(5403);function V(_e,pe){return(0,c.e)((me,Oe)=>{let ie=0;me.subscribe((0,m.x)(Oe,Re=>_e.call(pe,Re,ie++)&&Oe.next(Re)))})}},8746:(ln,et,C)=>{"use strict";C.d(et,{x:()=>m});var c=C(4482);function m(V){return(0,c.e)((_e,pe)=>{try{_e.subscribe(pe)}finally{pe.add(V)}})}},590:(ln,et,C)=>{"use strict";C.d(et,{P:()=>Oe});var c=C(6805),m=C(9300),V=C(5698),_e=C(6590),pe=C(8068),me=C(4671);function Oe(ie,Re){const q=arguments.length>=2;return de=>de.pipe(ie?(0,m.h)((be,lt)=>ie(be,lt,de)):me.y,(0,V.q)(1),q?(0,_e.d)(Re):(0,pe.T)(()=>new c.K))}},4004:(ln,et,C)=>{"use strict";C.d(et,{U:()=>V});var c=C(4482),m=C(5403);function V(_e,pe){return(0,c.e)((me,Oe)=>{let ie=0;me.subscribe((0,m.x)(Oe,Re=>{Oe.next(_e.call(pe,Re,ie++))}))})}},9718:(ln,et,C)=>{"use strict";C.d(et,{h:()=>m});var c=C(4004);function m(V){return(0,c.U)(()=>V)}},8189:(ln,et,C)=>{"use strict";C.d(et,{J:()=>V});var c=C(6099),m=C(4671);function V(_e=1/0){return(0,c.z)(m.y,_e)}},2733:(ln,et,C)=>{"use strict";C.d(et,{p:()=>_e});var c=C(8421),m=C(9672),V=C(5403);function _e(pe,me,Oe,ie,Re,q,de,be){const lt=[];let it=0,dt=0,wt=!1;const Me=()=>{wt&&!lt.length&&!it&&me.complete()},Pe=He=>it<ie?Ct(He):lt.push(He),Ct=He=>{q&&me.next(He),it++;let Ve=!1;(0,c.Xf)(Oe(He,dt++)).subscribe((0,V.x)(me,ve=>{Re?.(ve),q?Pe(ve):me.next(ve)},()=>{Ve=!0},void 0,()=>{if(Ve)try{for(it--;lt.length&&it<ie;){const ve=lt.shift();de?(0,m.f)(me,de,()=>Ct(ve)):Ct(ve)}Me()}catch(ve){me.error(ve)}}))};return pe.subscribe((0,V.x)(me,Pe,()=>{wt=!0,Me()})),()=>{be?.()}}},6099:(ln,et,C)=>{"use strict";C.d(et,{z:()=>me});var c=C(4004),m=C(8421),V=C(4482),_e=C(2733),pe=C(576);function me(Oe,ie,Re=1/0){return(0,pe.m)(ie)?me((q,de)=>(0,c.U)((be,lt)=>ie(q,be,de,lt))((0,m.Xf)(Oe(q,de))),Re):("number"==typeof ie&&(Re=ie),(0,V.e)((q,de)=>
1(0,_e.p)(q,de,Oe,Re)))}},5363:(ln,et,C)=>{"use strict";C.d(et,{Q:()=>_e});var c=C(9672),m=C(4482),V=C(5403);function _e(pe,me=0){return(0,m.e)((Oe,ie)=>{Oe.subscribe((0,V.x)(ie,Re=>(0,c.f)(ie,pe,()=>ie.next(Re),me),()=>(0,c.f)(ie,pe,()=>ie.complete(),me),Re=>(0,c.f)(ie,pe,()=>ie.error(Re),me)))})}},1520:(ln,et,C)=>{"use strict";C.d(et,{G:()=>V});var c=C(4482),m=C(5403);function V(){return(0,c.e)((_e,pe)=>{let me,Oe=!1;_e.subscribe((0,m.x)(pe,ie=>{const Re=me;me=ie,Oe&&pe.next([Re,ie]),Oe=!0}))})}},2940:(ln,et,C)=>{"use strict";C.d(et,{R:()=>V});var c=C(4482),m=C(7359);function V(_e,pe){return(0,c.e)((0,m.U)(_e,pe,arguments.length>=2,!0))}},7359:(ln,et,C)=>{"use strict";C.d(et,{U:()=>m});var c=C(5403);function m(V,_e,pe,me,Oe){return(ie,Re)=>{let q=pe,de=_e,be=0;ie.subscribe((0,c.x)(Re,lt=>{const it=be++;de=q?V(de,lt,it):(q=!0,lt),me&&Re.next(de)},Oe&&(()=>{q&&Re.next(de),Re.complete()})))}}},3099:(ln,et,C)=>{"use strict";C.d(et,{B:()=>pe});var c=C(8421),m=C(7579),V=C(930),_e=C(4482);function pe(Oe={}){const{connector:ie=(()=>new m.x),resetOnError:Re=!0,resetOnComplete:q=!0,resetOnRefCountZero:de=!0}=Oe;return be=>{let lt,it,dt,wt=0,Me=!1,Pe=!1;const Ct=()=>{it?.unsubscribe(),it=void 0},He=()=>{Ct(),lt=dt=void 0,Me=Pe=!1},Ve=()=>{const ve=lt;He(),ve?.unsubscribe()};return(0,_e.e)((ve,ze)=>{wt++,!Pe&&!Me&&Ct();const rt=dt=dt??ie();ze.add(()=>{wt--,0===wt&&!Pe&&!Me&&(it=me(Ve,de))}),rt.subscribe(ze),!lt&&wt>0&&(lt=new V.Hp({next:nt=>rt.next(nt),error:nt=>{Pe=!0,Ct(),it=me(He,Re,nt),rt.error(nt)},complete:()=>{Me=!0,Ct(),it=me(He,q),rt.complete()}}),(0,c.Xf)(ve).subscribe(lt))})(be)}}function me(Oe,ie,...Re){if(!0===ie)return void Oe();if(!1===ie)return;const q=new V.Hp({next:()=>{q.unsubscribe(),Oe()}});return(0,c.Xf)(ie(...Re)).subscribe(q)}},5684:(ln,et,C)=>{"use strict";C.d(et,{T:()=>m});var c=C(9300);function m(V){return(0,c.h)((_e,pe)=>V<=pe)}},8675:(ln,et,C)=>{"use strict";C.d(et,{O:()=>_e});var c=C(7272),m=C(3269),V=C(4482);function _e(...pe){const me=(0,m.yG)(pe);return(0,V.e)((Oe,ie)=>{(me?(0,c.z)(pe,Oe,me):(0,c.z)(pe,Oe)).subscribe(ie)})}},9468:(ln,et,C)=>{"use strict";C.d(et,{R:()=>m});var c=C(4482);function m(V,_e=0){return(0,c.e)((pe,me)=>{me.add(V.schedule(()=>pe.subscribe(me),_e))})}},3900:(ln,et,C)=>{"use strict";C.d(et,{w:()=>_e});var c=C(8421),m=C(4482),V=C(5403);function _e(pe,me){return(0,m.e)((Oe,ie)=>{let Re=null,q=0,de=!1;const be=()=>de&&!Re&&ie.complete();Oe.subscribe((0,V.x)(ie,lt=>{Re?.unsubscribe();let it=0;const dt=q++;(0,c.Xf)(pe(lt,dt)).subscribe(Re=(0,V.x)(ie,wt=>ie.next(me?me(lt,wt,dt,it++):wt),()=>{Re=null,be()}))},()=>{de=!0,be()}))})}},5698:(ln,et,C)=>{"use strict";C.d(et,{q:()=>_e});var c=C(515),m=C(4482),V=C(5403);function _e(pe){return pe<=0?()=>c.E:(0,m.e)((me,Oe)=>{let ie=0;me.subscribe((0,V.x)(Oe,Re=>{++ie<=pe&&(Oe.next(Re),pe<=ie&&Oe.complete())}))})}},2722:(ln,et,C)=>{"use strict";C.d(et,{R:()=>pe});var c=C(4482),m=C(5403),V=C(8421),_e=C(5032);function pe(me){return(0,c.e)((Oe,ie)=>{(0,V.Xf)(me).subscribe((0,m.x)(ie,()=>ie.complete(),_e.Z)),!ie.closed&&Oe.subscribe(ie)})}},2529:(ln,et,C)=>{"use strict";C.d(et,{o:()=>V});var c=C(4482),m=C(5403);function V(_e,pe=!1){return(0,c.e)((me,Oe)=>{let ie=0;me.subscribe((0,m.x)(Oe,Re=>{const q=_e(Re,ie++);(q||pe)&&Oe.next(Re),!q&&Oe.complete()}))})}},8505:(ln,et,C)=>{"use strict";C.d(et,{b:()=>pe});var c=C(576),m=C(4482),V=C(5403),_e=C(4671);function pe(me,Oe,ie){const Re=(0,c.m)(me)||Oe||ie?{next:me,error:Oe,complete:ie}:me;return Re?(0,m.e)((q,de)=>{var be;null===(be=Re.subscribe)||void 0===be||be.call(Re);let lt=!0;q.subscribe((0,V.x)(de,it=>{var dt;null===(dt=Re.next)||void 0===dt||dt.call(Re,it),de.next(it)},()=>{var it;lt=!1,null===(it=Re.complete)||void 0===it||it.call(Re),de.complete()},it=>{var dt;lt=!1,null===(dt=Re.error)||void 0===dt||dt.call(Re,it),de.error(it)},()=>{var it,dt;lt&&(null===(it=Re.unsubscribe)||void 0===it||it.call(Re)),null===(dt=Re.finalize)||void 0===dt||dt.call(Re)}))}):_e.y}},8068:(ln,et,C)=>{"use strict";C.d(et,{T:()=>_e});var c=C(6805),m=C(4482),V=C(5403);function _e(me=pe){return(0,m.e)((Oe,ie)=>{let Re=!1;Oe.subscribe((0,V.x)(ie,q=>{Re=!0,ie.next(q)},()=>Re?ie.complete():ie.error(me())))})}function pe(){return new c.K}},4408:(ln,et,C)=>{"use strict";C.d(et,{o:()=>pe});var c=C(727);class m extends c.w0{constructor(Oe,ie){super()}schedule(Oe,ie=0){return this}}const V={setInterval(me,Oe,...ie){const{delegate:Re}=V;return Re?.setInterval?Re.setInterval(me,Oe,...ie):setInterval(me,Oe,...ie)},clearInterval(me){const{delegate:Oe}=V;return(Oe?.clearInterval||clearInterval)(me)},delegate:void 0};var _e=C(8737);class pe extends m{constructor(Oe,ie){super(Oe,ie),this.scheduler
vendor: 6,699 bytes, line 1
1=Oe,this.work=ie,this.pending=!1}schedule(Oe,ie=0){var Re;if(this.closed)return this;this.state=Oe;const q=this.id,de=this.scheduler;return null!=q&&(this.id=this.recycleAsyncId(de,q,ie)),this.pending=!0,this.delay=ie,this.id=null!==(Re=this.id)&&void 0!==Re?Re:this.requestAsyncId(de,this.id,ie),this}requestAsyncId(Oe,ie,Re=0){return V.setInterval(Oe.flush.bind(Oe,this),Re)}recycleAsyncId(Oe,ie,Re=0){if(null!=Re&&this.delay===Re&&!1===this.pending)return ie;null!=ie&&V.clearInterval(ie)}execute(Oe,ie){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Re=this._execute(Oe,ie);if(Re)return Re;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Oe,ie){let q,Re=!1;try{this.work(Oe)}catch(de){Re=!0,q=de||new Error("Scheduled action threw falsy error")}if(Re)return this.unsubscribe(),q}unsubscribe(){if(!this.closed){const{id:Oe,scheduler:ie}=this,{actions:Re}=ie;this.work=this.state=this.scheduler=null,this.pending=!1,(0,_e.P)(Re,this),null!=Oe&&(this.id=this.recycleAsyncId(ie,Oe,null)),this.delay=null,super.unsubscribe()}}}},7565:(ln,et,C)=>{"use strict";C.d(et,{v:()=>V});var c=C(6063);class m{constructor(pe,me=m.now){this.schedulerActionCtor=pe,this.now=me}schedule(pe,me=0,Oe){return new this.schedulerActionCtor(this,pe).schedule(Oe,me)}}m.now=c.l.now;class V extends m{constructor(pe,me=m.now){super(pe,me),this.actions=[],this._active=!1}flush(pe){const{actions:me}=this;if(this._active)return void me.push(pe);let Oe;this._active=!0;do{if(Oe=pe.execute(pe.state,pe.delay))break}while(pe=me.shift());if(this._active=!1,Oe){for(;pe=me.shift();)pe.unsubscribe();throw Oe}}}},6406:(ln,et,C)=>{"use strict";C.d(et,{Z:()=>Oe});var c=C(4408),m=C(727);const V={schedule(Re){let q=requestAnimationFrame,de=cancelAnimationFrame;const{delegate:be}=V;be&&(q=be.requestAnimationFrame,de=be.cancelAnimationFrame);const lt=q(it=>{de=void 0,Re(it)});return new m.w0(()=>de?.(lt))},requestAnimationFrame(...Re){const{delegate:q}=V;return(q?.requestAnimationFrame||requestAnimationFrame)(...Re)},cancelAnimationFrame(...Re){const{delegate:q}=V;return(q?.cancelAnimationFrame||cancelAnimationFrame)(...Re)},delegate:void 0};var pe=C(7565);const Oe=new class me extends pe.v{flush(q){this._active=!0;const de=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let lt;q=q||be.shift();do{if(lt=q.execute(q.state,q.delay))break}while((q=be[0])&&q.id===de&&be.shift());if(this._active=!1,lt){for(;(q=be[0])&&q.id===de&&be.shift();)q.unsubscribe();throw lt}}}(class _e extends c.o{constructor(q,de){super(q,de),this.scheduler=q,this.work=de}requestAsyncId(q,de,be=0){return null!==be&&be>0?super.requestAsyncId(q,de,be):(q.actions.push(this),q._scheduled||(q._scheduled=V.requestAnimationFrame(()=>q.flush(void 0))))}recycleAsyncId(q,de,be=0){var lt;if(null!=be?be>0:this.delay>0)return super.recycleAsyncId(q,de,be);const{actions:it}=q;null!=de&&(null===(lt=it[it.length-1])||void 0===lt?void 0:lt.id)!==de&&(V.cancelAnimationFrame(de),q._scheduled=void 0)}})},4986:(ln,et,C)=>{"use strict";C.d(et,{P:()=>_e,z:()=>V});var c=C(4408);const V=new(C(7565).v)(c.o),_e=V},6063:(ln,et,C)=>{"use strict";C.d(et,{l:()=>c});const c={now:()=>(c.delegate||Date).now(),delegate:void 0}},3410:(ln,et,C)=>{"use strict";C.d(et,{z:()=>c});const c={setTimeout(m,V,..._e){const{delegate:pe}=c;return pe?.setTimeout?pe.setTimeout(m,V,..._e):setTimeout(m,V,..._e)},clearTimeout(m){const{delegate:V}=c;return(V?.clearTimeout||clearTimeout)(m)},delegate:void 0}},2202:(ln,et,C)=>{"use strict";C.d(et,{h:()=>m});const m=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(ln,et,C)=>{"use strict";C.d(et,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(ln,et,C)=>{"use strict";C.d(et,{K:()=>m});const m=(0,C(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(ln,et,C)=>{"use strict";C.d(et,{_6:()=>me,jO:()=>_e,yG:()=>pe});var c=C(576),m=C(3532);function V(Oe){return Oe[Oe.length-1]}function _e(Oe){return(0,c.m)(V(Oe))?Oe.pop():void 0}function pe(Oe){return(0,m.K)(V(Oe))?Oe.pop():void 0}function me(Oe,ie){return"number"==typeof V(Oe)?Oe.pop():ie}},4742:(ln,et,C)=>{"use strict";C.d(et,{D:()=>pe});const{isArray:c}=Array,{getPrototypeOf:m,prototype:V,keys:_e}=Object;function pe(Oe){if(1===Oe.length){const ie=Oe[0];if(c(ie))return{args:ie,keys:null};if(function me(Oe){return Oe&&"object"==typeof Oe&&m(Oe)===V}(ie)){const Re=_e(ie);return{args:Re.map(q=>ie[q]),keys:Re}}}return{args:Oe,keys:null}}},8737:(ln,et,C)=>{"use strict";function c(m,V){if(m){const _e=m.indexOf(V);0<=_e&&m.splice(_e,1)}}C.d(et,{P:()=>c})},3888:(ln,et,C)=>{"use strict";function c(m){const _e=m(pe=>{Error.call(pe),pe.stack=(new Error).stack});return _e.prototype=Object.create(Error.prototype),_e.prototype.constructor=_e,_e}C.d(et,{d:()=>c})},1810:(ln,et,C)=>{"use strict";function c(m,V){return m.reduce((_e,pe,me)=>(_e[pe]=V[me],_e),{})}C.d(et,{n:()=>c})},2806:(ln,et,C)=>{"use strict";C.d(et,{O:()=>_e,x:()=>V});var c=C(2416);let m=null;function V(pe){if(c.v.useDeprecatedSynchronousErrorHandling){const me=!m;if(me&&(m={errorThrown:!1,error:null}),pe(),me){const{errorThrown:Oe,error:ie}=m;if(m=null,Oe)throw ie}}else pe()}function _e(pe){c.v.useDeprecatedSynchronousErrorHandling&&m&&(m.errorThrown=!0,m.error=pe)}},9672:(ln,et,C)=>{"use strict";function c(m,V,_e,pe=0,me=!1){const Oe=V.schedule(function(){_e(),me?m.add(this.schedule(null,pe)):this.unsubscribe()},pe);if(m.add(Oe),!me)return Oe}C.d(et,{f:()=>c})},4671:(ln,et,C)=>{"use strict";function c(m){return m}C.d(et,{y:()=>c})},1144:(ln,et,C)=>{"use strict";C.d(et,{z:()=>c});const c=m=>m&&"number"==typeof m.length&&"function"!=typeof m},2206:(ln,et,C)=>{"use strict";C.d(et,{D:()=>m});var c=C(576);function m(V){return Symbol.asyncIterator&&(0,c.m)(V?.[Symbol.asyncIterator])}},576:(ln,et,C)=>{"use strict";function c(m){return"function"==typeof m}C.d(et,{m:()=>c})},3670:(ln,et,C)=>{"use strict";C.d(et,{c:()=>V});var c=C(8822),m=C(576);function V(_e){return(0,m.m)(_e[c.L])}},6495:(ln,et,C)=>{"use strict";C.d(et,{T:()=>V});var c=C(2202),m=C(576);function V(_e){return(0,m.m)(_e?.[c.h])}},8239:(ln,et,C)=>{"use strict";C.d(et,{t:()=>m});var c=C(576);function m(V){return(0,c.m)(V?.then)}},3260:(ln,et,C)=>{"use strict";C.d(et,{L:()=>_e,Q:()=>V});var c=C(7582),m=C(576);function V(pe){return(0,c.FC)(this,arguments,function*(){const Oe=pe.getReader();try{for(;;){const{value:ie,done:Re}=yield(0,c.qq)(Oe.read());if(Re)return yield(0,c.qq)(void 0);yield yield(0,c.qq)(ie)}}finally{Oe.releaseLock()}})}function _e(pe){return(0,m.m)(pe?.getReader)}}
1,3532:(ln,et,C)=>{"use strict";C.d(et,{K:()=>m});var c=C(576);function m(V){return V&&(0,c.m)(V.schedule)}},4482:(ln,et,C)=>{"use strict";C.d(et,{A:()=>m,e:()=>V});var c=C(576);function m(_e){return(0,c.m)(_e?.lift)}function V(_e){return pe=>{if(m(pe))return pe.lift(function(me){try{return _e(me,this)}catch(Oe){this.error(Oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(ln,et,C)=>{"use strict";C.d(et,{Z:()=>_e});var c=C(4004);const{isArray:m}=Array;function _e(pe){return(0,c.U)(me=>function V(pe,me){return m(me)?pe(...me):pe(me)}(pe,me))}},5032:(ln,et,C)=>{"use strict";function c(){}C.d(et,{Z:()=>c})},9635:(ln,et,C)=>{"use strict";C.d(et,{U:()=>V,z:()=>m});var c=C(4671);function m(..._e){return V(_e)}function V(_e){return 0===_e.length?c.y:1===_e.length?_e[0]:function(me){return _e.reduce((Oe,ie)=>ie(Oe),me)}}},7849:(ln,et,C)=>{"use strict";C.d(et,{h:()=>V});var c=C(2416),m=C(3410);function V(_e){m.z.setTimeout(()=>{const{onUnhandledError:pe}=c.v;if(!pe)throw _e;pe(_e)})}},4532:(ln,et,C)=>{"use strict";function c(m){return new TypeError(`You provided ${null!==m&&"object"==typeof m?"an invalid object":`'${m}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(et,{z:()=>c})},7340:(ln,et,C)=>{"use strict";C.d(et,{F4:()=>q,IO:()=>dt,LC:()=>m,SB:()=>Re,X$:()=>_e,ZE:()=>Ct,ZN:()=>Pe,_j:()=>c,eR:()=>de,jt:()=>pe,k1:()=>He,l3:()=>V,oB:()=>ie,pV:()=>lt,ru:()=>me,vP:()=>Oe});class c{}class m{}const V="*";function _e(Ve,ve){return{type:7,name:Ve,definitions:ve,options:{}}}function pe(Ve,ve=null){return{type:4,styles:ve,timings:Ve}}function me(Ve,ve=null){return{type:3,steps:Ve,options:ve}}function Oe(Ve,ve=null){return{type:2,steps:Ve,options:ve}}function ie(Ve){return{type:6,styles:Ve,offset:null}}function Re(Ve,ve,ze){return{type:0,name:Ve,styles:ve,options:ze}}function q(Ve){return{type:5,steps:Ve}}function de(Ve,ve,ze=null){return{type:1,expr:Ve,animation:ve,options:ze}}function lt(Ve=null){return{type:9,options:Ve}}function dt(Ve,ve,ze=null){return{type:11,selector:Ve,animation:ve,options:ze}}function Me(Ve){Promise.resolve().then(Ve)}class Pe{constructor(ve=0,ze=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ve+ze}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ve=>ve()),this._onDoneFns=[])}onStart(ve){this._originalOnStartFns.push(ve),this._onStartFns.push(ve)}onDone(ve){this._originalOnDoneFns.push(ve),this._onDoneFns.push(ve)}onDestroy(ve){this._onDestroyFns.push(ve)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Me(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ve=>ve()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ve=>ve()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ve){this._position=this.totalTime?ve*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ve){const ze="start"==ve?this._onStartFns:this._onDoneFns;ze.forEach(rt=>rt()),ze.length=0}}class Ct{constructor(ve){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ve;let ze=0,rt=0,nt=0;const At=this.players.length;0==At?Me(()=>this._onFinish()):this.players.forEach(Ue=>{Ue.onDone(()=>{++ze==At&&this._onFinish()}),Ue.onDestroy(()=>{++rt==At&&this._onDestroy()}),Ue.onStart(()=>{++nt==At&&this._onStart()})}),this.totalTime=this.players.reduce((Ue,Wt)=>Math.max(Ue,Wt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ve=>ve()),this._onDoneFns=[])}
1init(){this.players.forEach(ve=>ve.init())}onStart(ve){this._onStartFns.push(ve)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ve=>ve()),this._onStartFns=[])}onDone(ve){this._onDoneFns.push(ve)}onDestroy(ve){this._onDestroyFns.push(ve)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ve=>ve.play())}pause(){this.players.forEach(ve=>ve.pause())}restart(){this.players.forEach(ve=>ve.restart())}finish(){this._onFinish(),this.players.forEach(ve=>ve.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ve=>ve.destroy()),this._onDestroyFns.forEach(ve=>ve()),this._onDestroyFns=[])}reset(){this.players.forEach(ve=>ve.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ve){const ze=ve*this.totalTime;this.players.forEach(rt=>{const nt=rt.totalTime?Math.min(1,ze/rt.totalTime):1;rt.setPosition(nt)})}getPosition(){const ve=this.players.reduce((ze,rt)=>null===ze||rt.totalTime>ze.totalTime?rt:ze,null);return null!=ve?ve.getPosition():0}beforeDestroy(){this.players.forEach(ve=>{ve.beforeDestroy&&ve.beforeDestroy()})}triggerCallback(ve){const ze="start"==ve?this._onStartFns:this._onDoneFns;ze.forEach(rt=>rt()),ze.length=0}}const He="!"},6995:(ln,et,C)=>{"use strict";C.d(et,{rt:()=>$e,kH:()=>Fe,mK:()=>dn,tE:()=>ke,qV:()=>qt,qm:()=>an,ic:()=>qn,X6:()=>vr,yG:()=>Gn});var c=C(6895),m=C(4650),V=C(3353),_e=C(1135),pe=C(7579),me=C(9646),Oe=C(9521),ie=C(5698),Re=C(5684),q=C(1884),de=C(2722),be=C(1281);let lt=(()=>{class oe{create($){return typeof MutationObserver>"u"?null:new MutationObserver($)}}return oe.\u0275fac=function($){return new($||oe)},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),wt=(()=>{class oe{}return oe.\u0275fac=function($){return new($||oe)},oe.\u0275mod=m.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=m.\u0275\u0275defineInjector({providers:[lt]}),oe})();var Me=C(9841),Pe=C(7272),Ct=C(9751),He=C(8372),Ve=C(4004),ve=C(8675);const rt=new Set;let nt,At=(()=>{class oe{constructor($){this._platform=$,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Wt}matchMedia($){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ue(oe){if(!rt.has(oe))try{nt||(nt=document.createElement("style"),nt.setAttribute("type","text/css"),document.head.appendChild(nt)),nt.sheet&&(nt.sheet.insertRule(`@media ${oe} {body{ }}`,0),rt.add(oe))}catch(j){console.error(j)}}($),this._matchMedia($)}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(V.t4))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function Wt(oe){return{matches:"all"===oe||""===oe,media:oe,addListener:()=>{},removeListener:()=>{}}}let je=(()=>{class oe{constructor($,Ie){this._mediaMatcher=$,this._zone=Ie,this._queries=new Map,this._destroySubject=new pe.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched($){return vt((0,be.Eq)($)).some(Qe=>this._registerQuery(Qe).mql.matches)}observe($){const Qe=vt((0,be.Eq)($)).map(Cn=>this._registerQuery(Cn).observable);let kt=(0,Me.a)(Qe);return kt=(0,Pe.z)(kt.pipe((0,ie.q)(1)),kt.pipe((0,Re.T)(1),(0,He.b)(0))),kt.pipe((0,Ve.U)(Cn=>{const nr={matches:!1,breakpoints:{}};return Cn.forEach(({matches:Rr,query:Rt})=>{nr.matches=nr.matches||Rr,nr.breakpoints[Rt]=Rr}),nr}))}_registerQuery($){if(this._queries.has($))return this._queries.get($);const Ie=this._mediaMatcher.matchMedia($),kt={observable:new Ct.y(Cn=>{const nr=Rr=>this._zone.run(()=>Cn.next(Rr));return Ie.addListener(nr),()=>{Ie.removeListener(nr)}}).pipe((0,ve.O)(Ie),(0,Ve.U)(({matches:Cn})=>({query:$,matches:Cn})),(0,de.R)(this._destroySubject)),mql:Ie};return this._queries.set($,kt),kt}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(At),m.\u0275\u0275inject(m.NgZone))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function vt(oe){return oe.map(j=>j.split(",")).reduce((j,$)=>j.concat($)).map(j=>j.trim())}let qn=(()=>{class oe{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function hn(oe){return!!(oe.offsetWidth||oe.offsetHeight||"function"==typeof oe.getClientRects&&oe.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const Ie=function nn(oe){try{return oe.frameElement}catch{return null}}(function It(oe){return oe.ownerDocument&&oe.ownerDocument.defaultView||window}($));if(Ie&&(-1===K(Ie)||!this.isVisible(Ie)))return!1;
1let Qe=$.nodeName.toLowerCase(),kt=K($);return $.hasAttribute("contenteditable")?-1!==kt:!("iframe"===Qe||"object"===Qe||this._platform.WEBKIT&&this._platform.IOS&&!function Te(oe){let j=oe.nodeName.toLowerCase(),$="input"===j&&oe.type;return"text"===$||"password"===$||"select"===j||"textarea"===j}($))&&("audio"===Qe?!!$.hasAttribute("controls")&&-1!==kt:"video"===Qe?-1!==kt&&(null!==kt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,Ie){return function Be(oe){return!function _n(oe){return function Mt(oe){return"input"==oe.nodeName.toLowerCase()}(oe)&&"hidden"==oe.type}(oe)&&(function rn(oe){let j=oe.nodeName.toLowerCase();return"input"===j||"select"===j||"button"===j||"textarea"===j}(oe)||function xn(oe){return function Nt(oe){return"a"==oe.nodeName.toLowerCase()}(oe)&&oe.hasAttribute("href")}(oe)||oe.hasAttribute("contenteditable")||se(oe))}($)&&!this.isDisabled($)&&(Ie?.ignoreVisibility||this.isVisible($))}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(V.t4))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();function se(oe){if(!oe.hasAttribute("tabindex")||void 0===oe.tabIndex)return!1;let j=oe.getAttribute("tabindex");return!(!j||isNaN(parseInt(j,10)))}function K(oe){if(!se(oe))return null;const j=parseInt(oe.getAttribute("tabindex")||"",10);return isNaN(j)?-1:j}class Yt{get enabled(){return this._enabled}set enabled(j){this._enabled=j,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}constructor(j,$,Ie,Qe,kt=!1){this._element=j,this._checker=$,this._ngZone=Ie,this._document=Qe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,kt||this.attachAnchors()}destroy(){const j=this._startAnchor,$=this._endAnchor;j&&(j.removeEventListener("focus",this.startAnchorListener),j.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(j)))})}focusFirstTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(j)))})}focusLastTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(j)))})}_getRegionBoundary(j){const $=this._element.querySelectorAll(`[cdk-focus-region-${j}], [cdkFocusRegion${j}], [cdk-focus-${j}]`);return"start"==j?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(j){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const Ie=this._getFirstTabbableElement($);return Ie?.focus(j),!!Ie}return $.focus(j),!0}return this.focusFirstTabbableElement(j)}focusFirstTabbableElement(j){const $=this._getRegionBoundary("start");return $&&$.focus(j),!!$}focusLastTabbableElement(j){const $=this._getRegionBoundary("end");return $&&$.focus(j),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let Ie=0;Ie<$.length;Ie++){const Qe=$[Ie].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[Ie]):null;if(Qe)return Qe}return null}_getLastTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let Ie=$.length-1;Ie>=0;Ie--){const Qe=$[Ie].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[Ie]):null;if(Qe)return Qe}return null}_createAnchor(){const j=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,j),j.classList.add("cdk-visually-hidden"),j.classList.add("cdk-focus-trap-anchor"),j.setAttribute("aria-hidden","true"),j}_toggleAnchorTabIndex(j,$){j?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(j){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}_executeOnStable(j){this._ngZone.isStable?j():this._ngZone.onStable.pipe((0,ie.q)(1)).subscribe(j)}}let qt=(()=>{class oe{constructor($,Ie,Qe){this._checker=$,this._ngZone=Ie,this._document=Qe}create($,Ie=!1){return new Yt($,this._checker,this._ngZone,this._document,Ie)}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(qn),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(c.K0))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),dn=(()=>{class oe{get enabled(){return this.focusTrap.enabled}set enabled($){this.focusTrap.enabled=(0,be.Ig)($)}get autoCapture(){return this._autoCapture}set autoCapture($){this._autoCapture=(0,be.Ig)($)}constructor($,Ie,Qe){this._elementRef=$,this._focusTrapFactory=Ie,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges($){const Ie=$.autoCapture;Ie&&!Ie.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,V.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(qt),m.\u0275\u0275directiveInject(c.K0))},oe.\u0275dir=m.\u0275\u0275defineDirective({type:oe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[m.\u0275\u0275NgOnChangesFeature]}),oe})();function vr(oe){return 0===oe.buttons||0===oe.offsetX&&0===oe.offsetY}function Gn(oe){const j=oe.touches&&oe.touches[0]||oe.changedTouches&&oe.changedTouches[0];return!(!j||-1!==j.identifier||null!=j.radiusX&&1!==j.radiusX||null!=j.radiusY&&1!==j.radiusY)}const bt=new m.InjectionToken("cdk-input-modality-detector-options"),en={ignoreKeys:[Oe.zL,Oe.jx,Oe.b2,Oe.MW,Oe.JU]},ct=(0,V.i$)({passive:!0,capture:!0});let We=(()=>{class oe{get mostRecentModality(){return this._modality.value}constructor($,Ie,Qe,kt){this._platform=$,this._mostRecentTarget=null,this._modality=new _e.X(null),this._lastTouchMs=0,this._onKeydown=Cn=>{this._options?.ignoreKeys?.some(nr=>nr===Cn.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,V.sA)(Cn))},this._onMousedown=Cn=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vr(Cn)?"keyboard":"mouse"),this._mostRecentTarget=(0,V.sA)(Cn))},this._onTouchstart=Cn=>{Gn(Cn)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,V.sA)(Cn))},this._options={...en,...kt},this.modalityDetected=this._modality.pipe((0,Re.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,q.x)()),$.isBrowser&&Ie.runOutsideAngular(()=>{Qe.addEventListener("keydown",this._onKeydown,ct),Qe.addEventListener("mousedown",this._onMousedown,ct),Qe.addEventListener("touchstart",this._onTouchstart,ct)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ct),document.removeEventListener("mousedown",this._onMousedown,ct),document.removeEventListener("touchstart",this._onTouchstart,ct))}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(V.t4),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(c.K0),m.\u0275\u0275inject(bt,8))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();const Ft=new m.InjectionToken("cdk-focus-monitor-default-options"),Ut=(0,V.i$)({passive:!0,capture:!0});let ke=(()=>{class oe{constructor($,Ie,Qe,kt,Cn){this._ngZone=$,this._platform=Ie,this._inputModalityDetector=Qe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new pe.x,this._rootNodeFocusAndBlurListener=nr=>{for(let Rt=(0,V.sA)(nr);Rt;Rt=Rt.parentElement)"focus"===nr.type?this._onFocus(nr,Rt):this._onBlur(nr,Rt)},this._document=kt,this._detectionMode=Cn?.detectionMode||0}monitor($,Ie=!1){const Qe=(0,be.fI)($);if(!this._platform.isBrowser||1!==Qe.nodeType)return(0,me.of)(null);const kt=(0,V.kV)(Qe)||this._getDocument(),Cn=this._elementInfo.get(Qe);if(Cn)return Ie&&(Cn.checkChildren=!0),Cn.subject;
1const nr={checkChildren:Ie,subject:new pe.x,rootNode:kt};return this._elementInfo.set(Qe,nr),this._registerGlobalListeners(nr),nr.subject}stopMonitoring($){const Ie=(0,be.fI)($),Qe=this._elementInfo.get(Ie);Qe&&(Qe.subject.complete(),this._setClasses(Ie),this._elementInfo.delete(Ie),this._removeGlobalListeners(Qe))}focusVia($,Ie,Qe){const kt=(0,be.fI)($);kt===this._getDocument().activeElement?this._getClosestElementsInfo(kt).forEach(([nr,Rr])=>this._originChanged(nr,Ie,Rr)):(this._setOrigin(Ie),"function"==typeof kt.focus&&kt.focus(Qe))}ngOnDestroy(){this._elementInfo.forEach(($,Ie)=>this.stopMonitoring(Ie))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:$&&this._isLastInteractionFromInputLabel($)?"mouse":"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!$?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses($,Ie){$.classList.toggle("cdk-focused",!!Ie),$.classList.toggle("cdk-touch-focused","touch"===Ie),$.classList.toggle("cdk-keyboard-focused","keyboard"===Ie),$.classList.toggle("cdk-mouse-focused","mouse"===Ie),$.classList.toggle("cdk-program-focused","program"===Ie)}_setOrigin($,Ie=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&Ie,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,Ie){const Qe=this._elementInfo.get(Ie),kt=(0,V.sA)($);!Qe||!Qe.checkChildren&&Ie!==kt||this._originChanged(Ie,this._getFocusOrigin(kt),Qe)}_onBlur($,Ie){const Qe=this._elementInfo.get(Ie);!Qe||Qe.checkChildren&&$.relatedTarget instanceof Node&&Ie.contains($.relatedTarget)||(this._setClasses(Ie),this._emitOrigin(Qe,null))}_emitOrigin($,Ie){$.subject.observers.length&&this._ngZone.run(()=>$.subject.next(Ie))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const Ie=$.rootNode,Qe=this._rootNodeFocusListenerCount.get(Ie)||0;Qe||this._ngZone.runOutsideAngular(()=>{Ie.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ut),Ie.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ut)}),this._rootNodeFocusListenerCount.set(Ie,Qe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,de.R)(this._stopInputModalityDetector)).subscribe(kt=>{this._setOrigin(kt,!0)}))}_removeGlobalListeners($){const Ie=$.rootNode;if(this._rootNodeFocusListenerCount.has(Ie)){const Qe=this._rootNodeFocusListenerCount.get(Ie);Qe>1?this._rootNodeFocusListenerCount.set(Ie,Qe-1):(Ie.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ut),Ie.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ut),this._rootNodeFocusListenerCount.delete(Ie))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,Ie,Qe){this._setClasses($,Ie),this._emitOrigin(Qe,Ie),this._lastFocusOrigin=Ie}_getClosestElementsInfo($){const Ie=[];return this._elementInfo.forEach((Qe,kt)=>{(kt===$||Qe.checkChildren&&kt.contains($))&&Ie.push([kt,Qe])}),Ie}_isLastInteractionFromInputLabel($){const{_mostRecentTarget:Ie,mostRecentModality:Qe}=this._inputModalityDetector;if("mouse"!==Qe||!Ie||Ie===$||"INPUT"!==$.nodeName&&"TEXTAREA"!==$.nodeName||$.disabled)return!1;const kt=$.labels;if(kt)for(let Cn=0;Cn<kt.length;Cn++)if(kt[Cn].contains(Ie))return!0;return!1}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(V.t4),m.\u0275\u0275inject(We),m.\u0275\u0275inject(c.K0,8),m.\u0275\u0275inject(Ft,8))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),Fe=(()=>{class oe{constructor($,Ie){this._elementRef=$,this._focusMonitor=Ie,this._focusOrigin=null,this.cdkFocusChange=new m.EventEmitter}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const $=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor($,1===$.nodeType&&$.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ie=>{this._focusOrigin=Ie,this.cdkFocusChange.emit(Ie)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(ke))},oe.\u0275dir=m.\u0275\u0275defineDirective({type:oe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),oe})();const Ge="cdk-high-contrast-black-on-white",Et="cdk-high-contrast-white-on-black",ht="cdk-high-contrast-active";let an=(()=>{class oe{constructor($,Ie){this._platform=$,this._document=Ie,this._breakpointSubscription=(0,m.inject)(je).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasse
1s())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const Ie=this._document.defaultView||window,Qe=Ie&&Ie.getComputedStyle?Ie.getComputedStyle($):null,kt=(Qe&&Qe.backgroundColor||"").replace(/ /g,"");switch($.remove(),kt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(ht,Ge,Et),this._hasCheckedHighContrastMode=!0;const Ie=this.getHighContrastMode();1===Ie?$.add(ht,Ge):2===Ie&&$.add(ht,Et)}}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(V.t4),m.\u0275\u0275inject(c.K0))},oe.\u0275prov=m.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})(),$e=(()=>{class oe{constructor($){$._applyBodyHighContrastModeCssClasses()}}return oe.\u0275fac=function($){return new($||oe)(m.\u0275\u0275inject(an))},oe.\u0275mod=m.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=m.\u0275\u0275defineInjector({imports:[wt]}),oe})()},445:(ln,et,C)=>{"use strict";C.d(et,{Is:()=>Oe,Lv:()=>ie,vT:()=>Re});var c=C(4650),m=C(6895);const V=new c.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function _e(){return(0,c.inject)(m.K0)}}),pe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function me(q){const de=q?.toLowerCase()||"";return"auto"===de&&typeof navigator<"u"&&navigator?.language?pe.test(navigator.language)?"rtl":"ltr":"rtl"===de?"rtl":"ltr"}let Oe=(()=>{class q{constructor(be){this.value="ltr",this.change=new c.EventEmitter,be&&(this.value=me((be.body?be.body.dir:null)||(be.documentElement?be.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return q.\u0275fac=function(be){return new(be||q)(c.\u0275\u0275inject(V,8))},q.\u0275prov=c.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})(),ie=(()=>{class q{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new c.EventEmitter}get dir(){return this._dir}set dir(be){const lt=this._dir;this._dir=me(be),this._rawDir=be,lt!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return q.\u0275fac=function(be){return new(be||q)},q.\u0275dir=c.\u0275\u0275defineDirective({type:q,selectors:[["","dir",""]],hostVars:1,hostBindings:function(be,lt){2&be&&c.\u0275\u0275attribute("dir",lt._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[c.\u0275\u0275ProvidersFeature([{provide:Oe,useExisting:q}])]}),q})(),Re=(()=>{class q{}return q.\u0275fac=function(be){return new(be||q)},q.\u0275mod=c.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=c.\u0275\u0275defineInjector({}),q})()},1281:(ln,et,C)=>{"use strict";C.d(et,{Eq:()=>pe,HM:()=>me,Ig:()=>m,du:()=>ie,fI:()=>Oe,su:()=>V});var c=C(4650);function m(Re){return null!=Re&&"false"!=`${Re}`}function V(Re,q=0){return function _e(Re){return!isNaN(parseFloat(Re))&&!isNaN(Number(Re))}(Re)?Number(Re):q}function pe(Re){return Array.isArray(Re)?Re:[Re]}function me(Re){return null==Re?"":"string"==typeof Re?Re:`${Re}px`}function Oe(Re){return Re instanceof c.ElementRef?Re.nativeElement:Re}function ie(Re,q=/\s+/){const de=[];if(null!=Re){const be=Array.isArray(Re)?Re:`${Re}`.split(q);for(const lt of be){const it=`${lt}`.trim();it&&de.push(it)}}return de}},7855:(ln,et,C)=>{"use strict";C.d(et,{LL:()=>wt,Su:()=>At,Vq:()=>rt,ib:()=>it});var c=C(6995),m=C(8184),V=C(3353),_e=C(4080),pe=C(6895),me=C(4650),Oe=C(9521),ie=C(7579),Re=C(9770),q=C(9646),de=C(445),be=C(8675);function lt(Ue,Wt){}class it{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let wt=(()=>{class Ue extends _e.en{constructor(je,vt,jt,On,Sn,St,yn,ae){super(),this._elementRef=je,this._focusTrapFactory=vt,this._config=On,this._interactivityChecker=Sn,this._ngZone=St,this._overlayRef=yn,this._focusMonitor=ae,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ne=>{this._portalOutlet.hasAttached();const Xe=this._portalOutlet.attachDomPortal(Ne);return this._contentAttached(),Xe},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=jt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(je){this._portalOutlet.hasAttached();const vt=this._portalOutlet.attachComponentPortal(je);return this._contentAttached(),vt}attachTemplatePortal(je){this._portalOutlet.hasAttached();const vt=this._portalOutlet.attachTemplatePortal(je);return this._contentAttached(),vt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(je,vt){this._interactivityChecker.isFocusable(je)||(je.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const jt=()=>{je.removeEventListener("blur",jt),je.removeEventListener("mousedown",jt),je.removeAttribute("tabindex")};je.addEventListener("blur",jt),je.addEventListener("mousedown",jt)}
1)),je.focus(vt)}_focusByCssSelector(je,vt){let jt=this._elementRef.nativeElement.querySelector(je);jt&&this._forceFocus(jt,vt)}_trapFocus(){const je=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||je.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(vt=>{vt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const je=this._config.restoreFocus;let vt=null;if("string"==typeof je?vt=this._document.querySelector(je):"boolean"==typeof je?vt=je?this._elementFocusedBeforeDialogWasOpened:null:je&&(vt=je),this._config.restoreFocus&&vt&&"function"==typeof vt.focus){const jt=(0,V.ht)(),On=this._elementRef.nativeElement;(!jt||jt===this._document.body||jt===On||On.contains(jt))&&(this._focusMonitor?(this._focusMonitor.focusVia(vt,this._closeInteractionType),this._closeInteractionType=null):vt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const je=this._elementRef.nativeElement,vt=(0,V.ht)();return je===vt||je.contains(vt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,V.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Ue.\u0275fac=function(je){return new(je||Ue)(me.\u0275\u0275directiveInject(me.ElementRef),me.\u0275\u0275directiveInject(c.qV),me.\u0275\u0275directiveInject(pe.K0,8),me.\u0275\u0275directiveInject(it),me.\u0275\u0275directiveInject(c.ic),me.\u0275\u0275directiveInject(me.NgZone),me.\u0275\u0275directiveInject(m.Iu),me.\u0275\u0275directiveInject(c.tE))},Ue.\u0275cmp=me.\u0275\u0275defineComponent({type:Ue,selectors:[["cdk-dialog-container"]],viewQuery:function(je,vt){if(1&je&&me.\u0275\u0275viewQuery(_e.Pl,7),2&je){let jt;me.\u0275\u0275queryRefresh(jt=me.\u0275\u0275loadQuery())&&(vt._portalOutlet=jt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(je,vt){2&je&&me.\u0275\u0275attribute("id",vt._config.id||null)("role",vt._config.role)("aria-modal",vt._config.ariaModal)("aria-labelledby",vt._config.ariaLabel?null:vt._ariaLabelledBy)("aria-label",vt._config.ariaLabel)("aria-describedby",vt._config.ariaDescribedBy||null)},features:[me.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(je,vt){1&je&&me.\u0275\u0275template(0,lt,0,0,"ng-template",0)},dependencies:[_e.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ue})();class Me{constructor(Wt,je){this.overlayRef=Wt,this.config=je,this.closed=new ie.x,this.disableClose=je.disableClose,this.backdropClick=Wt.backdropClick(),this.keydownEvents=Wt.keydownEvents(),this.outsidePointerEvents=Wt.outsidePointerEvents(),this.id=je.id,this.keydownEvents.subscribe(vt=>{vt.keyCode===Oe.hY&&!this.disableClose&&!(0,Oe.Vb)(vt)&&(vt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Wt.detachments().subscribe(()=>{!1!==je.closeOnOverlayDetachments&&this.close()})}close(Wt,je){if(this.containerInstance){const vt=this.closed;this.containerInstance._closeInteractionType=je?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),vt.next(Wt),vt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Wt="",je=""){return this.overlayRef.updateSize({width:Wt,height:je}),this}addPanelClass(Wt){return this.overlayRef.addPanelClass(Wt),this}removePanelClass(Wt){return this.overlayRef.removePanelClass(Wt),this}}const Pe=new me.InjectionToken("DialogScrollStrategy"),Ct=new me.InjectionToken("DialogData"),He=new me.InjectionToken("DefaultDialogConfig"),ve={provide:Pe,deps:[m.aV],useFactory:function Ve(Ue){return()=>Ue.scrollStrategies.block()}};let ze=0,rt=(()=>{class Ue{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(je,vt,jt,On,Sn,St){this._overlay=je,this._injector=vt,this._defaultOptions=jt,this._parentDialog=On,this._overlayContainer=Sn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ie.x,this._afterOpenedAtThisLevel=new ie.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,Re.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,be.O)(void 0))),this._scrollStrategy=St}open(je,vt){(vt={...this._defaultOptions||new it,...vt}).id=vt.id||"cdk-dialog-"+ze++,vt.id&&this.getDialogById(vt.id);const On=this._getOverlayConfig(vt),Sn=this._overlay.create(On),St=ne
1w Me(Sn,vt),yn=this._attachContainer(Sn,St,vt);return St.containerInstance=yn,this._attachDialogContent(je,St,yn,vt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(St),St.closed.subscribe(()=>this._removeOpenDialog(St,!0)),this.afterOpened.next(St),St}closeAll(){nt(this.openDialogs,je=>je.close())}getDialogById(je){return this.openDialogs.find(vt=>vt.id===je)}ngOnDestroy(){nt(this._openDialogsAtThisLevel,je=>{!1===je.config.closeOnDestroy&&this._removeOpenDialog(je,!1)}),nt(this._openDialogsAtThisLevel,je=>je.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(je){const vt=new m.X_({positionStrategy:je.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:je.scrollStrategy||this._scrollStrategy(),panelClass:je.panelClass,hasBackdrop:je.hasBackdrop,direction:je.direction,minWidth:je.minWidth,minHeight:je.minHeight,maxWidth:je.maxWidth,maxHeight:je.maxHeight,width:je.width,height:je.height,disposeOnNavigation:je.closeOnNavigation});return je.backdropClass&&(vt.backdropClass=je.backdropClass),vt}_attachContainer(je,vt,jt){const On=jt.injector||jt.viewContainerRef?.injector,Sn=[{provide:it,useValue:jt},{provide:Me,useValue:vt},{provide:m.Iu,useValue:je}];let St;jt.container?"function"==typeof jt.container?St=jt.container:(St=jt.container.type,Sn.push(...jt.container.providers(jt))):St=wt;const yn=new _e.C5(St,jt.viewContainerRef,me.Injector.create({parent:On||this._injector,providers:Sn}),jt.componentFactoryResolver);return je.attach(yn).instance}_attachDialogContent(je,vt,jt,On){if(je instanceof me.TemplateRef){const Sn=this._createInjector(On,vt,jt,void 0);let St={$implicit:On.data,dialogRef:vt};On.templateContext&&(St={...St,..."function"==typeof On.templateContext?On.templateContext():On.templateContext}),jt.attachTemplatePortal(new _e.UE(je,null,St,Sn))}else{const Sn=this._createInjector(On,vt,jt,this._injector),St=jt.attachComponentPortal(new _e.C5(je,On.viewContainerRef,Sn,On.componentFactoryResolver));vt.componentInstance=St.instance}}_createInjector(je,vt,jt,On){const Sn=je.injector||je.viewContainerRef?.injector,St=[{provide:Ct,useValue:je.data},{provide:Me,useValue:vt}];return je.providers&&("function"==typeof je.providers?St.push(...je.providers(vt,je,jt)):St.push(...je.providers)),je.direction&&(!Sn||!Sn.get(de.Is,null,{optional:!0}))&&St.push({provide:de.Is,useValue:{value:je.direction,change:(0,q.of)()}}),me.Injector.create({parent:Sn||On,providers:St})}_removeOpenDialog(je,vt){const jt=this.openDialogs.indexOf(je);jt>-1&&(this.openDialogs.splice(jt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((On,Sn)=>{On?Sn.setAttribute("aria-hidden",On):Sn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),vt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const je=this._overlayContainer.getContainerElement();if(je.parentElement){const vt=je.parentElement.children;for(let jt=vt.length-1;jt>-1;jt--){const On=vt[jt];On!==je&&"SCRIPT"!==On.nodeName&&"STYLE"!==On.nodeName&&!On.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(On,On.getAttribute("aria-hidden")),On.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const je=this._parentDialog;return je?je._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Ue.\u0275fac=function(je){return new(je||Ue)(me.\u0275\u0275inject(m.aV),me.\u0275\u0275inject(me.Injector),me.\u0275\u0275inject(He,8),me.\u0275\u0275inject(Ue,12),me.\u0275\u0275inject(m.Xj),me.\u0275\u0275inject(Pe))},Ue.\u0275prov=me.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();function nt(Ue,Wt){let je=Ue.length;for(;je--;)Wt(Ue[je])}let At=(()=>{class Ue{}return Ue.\u0275fac=function(je){return new(je||Ue)},Ue.\u0275mod=me.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=me.\u0275\u0275defineInjector({providers:[rt,ve],imports:[m.U8,_e.eL,c.rt,_e.eL]}),Ue})()},9521:(ln,et,C)=>{"use strict";C.d(et,{JH:()=>He,JU:()=>me,K5:()=>pe,Ku:()=>lt,LH:()=>Pe,L_:()=>be,MW:()=>Mn,SV:()=>Ct,Sd:()=>wt,VM:()=>it,Vb:()=>bi,b2:()=>Zr,hY:()=>de,jx:()=>Oe,oh:()=>Me,uR:()=>dt,zL:()=>ie});const pe=13,me=16,Oe=17,ie=18,de=27,be=32,lt=33,it=34,dt=35,wt=36,Me=37,Pe=38,Ct=39,He=40,Mn=91,Zr=224;function bi(gr,...Ai){return Ai.length?Ai.some(Fi=>gr[Fi]):gr.altKey||gr.shiftKey||gr.ctrlKey||gr.metaKey}},8184:(ln,et,C)=>{"use strict";C.d(et,{Iu:()=>Sn,U8:()=>Mt,X_:()=>ze,Xj:()=>On,_G:()=>ae,aV:()=>Wn});var c=C(4883),m=C(6895),V=C(4650),_e=C(1281),pe=C(3353),me=C(9300),Oe=C(5698),ie=C(2722),Re=C(445),q=C(4080),de=C(7579),be=C(727),lt=C(6451);const it=(0,pe.Mq)();
1class dt{constructor(K,Te){this._viewportRuler=K,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Te}attach(){}enable(){if(this._canBeEnabled()){const K=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=K.style.left||"",this._previousHTMLStyles.top=K.style.top||"",K.style.left=(0,_e.HM)(-this._previousScrollPosition.left),K.style.top=(0,_e.HM)(-this._previousScrollPosition.top),K.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const K=this._document.documentElement,Be=K.style,It=this._document.body.style,Yt=Be.scrollBehavior||"",qt=It.scrollBehavior||"";this._isEnabled=!1,Be.left=this._previousHTMLStyles.left,Be.top=this._previousHTMLStyles.top,K.classList.remove("cdk-global-scrollblock"),it&&(Be.scrollBehavior=It.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),it&&(Be.scrollBehavior=Yt,It.scrollBehavior=qt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Te=this._document.body,Be=this._viewportRuler.getViewportSize();return Te.scrollHeight>Be.height||Te.scrollWidth>Be.width}}class Me{constructor(K,Te,Be,It){this._scrollDispatcher=K,this._ngZone=Te,this._viewportRuler=Be,this._config=It,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(K){this._overlayRef=K}enable(){if(this._scrollSubscription)return;const K=this._scrollDispatcher.scrolled(0).pipe((0,me.h)(Te=>!Te||!this._overlayRef.overlayElement.contains(Te.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=K.subscribe(()=>{const Te=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Te-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=K.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pe{enable(){}disable(){}attach(){}}function Ct(se,K){return K.some(Te=>se.bottom<Te.top||se.top>Te.bottom||se.right<Te.left||se.left>Te.right)}function He(se,K){return K.some(Te=>se.top<Te.top||se.bottom>Te.bottom||se.left<Te.left||se.right>Te.right)}class Ve{constructor(K,Te,Be,It){this._scrollDispatcher=K,this._viewportRuler=Te,this._ngZone=Be,this._config=It,this._scrollSubscription=null}attach(K){this._overlayRef=K}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Te=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Be,height:It}=this._viewportRuler.getViewportSize();Ct(Te,[{width:Be,height:It,bottom:It,right:Be,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ve=(()=>{class se{constructor(Te,Be,It,Yt){this._scrollDispatcher=Te,this._viewportRuler=Be,this._ngZone=It,this.noop=()=>new Pe,this.close=qt=>new Me(this._scrollDispatcher,this._ngZone,this._viewportRuler,qt),this.block=()=>new dt(this._viewportRuler,this._document),this.reposition=qt=>new Ve(this._scrollDispatcher,this._viewportRuler,this._ngZone,qt),this._document=Yt}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(c.mF),V.\u0275\u0275inject(c.rL),V.\u0275\u0275inject(V.NgZone),V.\u0275\u0275inject(m.K0))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();class ze{constructor(K){if(this.scrollStrategy=new Pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,K){const Te=Object.keys(K);for(const Be of Te)void 0!==K[Be]&&(this[Be]=K[Be])}}}class At{constructor(K,Te){this.connectionPair=K,this.scrollableViewProperties=Te}}let je=(()=>{class se{constructor(Te){this._attachedOverlays=[],this._document=Te}ngOnDestroy(){this.detach()}add(Te){this.remove(Te),this._attachedOverlays.push(Te)}remove(Te){const Be=this._attachedOverlays.indexOf(Te);Be>-1&&this._attachedOverlays.splice(Be,1),0===this._attachedOverlays.length&&this.detach()}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(m.K0))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),vt=(()=>{class se extends je{constructor(Te,Be){super(Te),this._ngZone=Be,this._key
1downListener=It=>{const Yt=this._attachedOverlays;for(let qt=Yt.length-1;qt>-1;qt--)if(Yt[qt]._keydownEvents.observers.length>0){const dn=Yt[qt]._keydownEvents;this._ngZone?this._ngZone.run(()=>dn.next(It)):dn.next(It);break}}}add(Te){super.add(Te),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(m.K0),V.\u0275\u0275inject(V.NgZone,8))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),jt=(()=>{class se extends je{constructor(Te,Be,It){super(Te),this._platform=Be,this._ngZone=It,this._cursorStyleIsSet=!1,this._pointerDownListener=Yt=>{this._pointerDownEventTarget=(0,pe.sA)(Yt)},this._clickListener=Yt=>{const qt=(0,pe.sA)(Yt),dn="click"===Yt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:qt;this._pointerDownEventTarget=null;const sn=this._attachedOverlays.slice();for(let Xt=sn.length-1;Xt>-1;Xt--){const Mn=sn[Xt];if(Mn._outsidePointerEvents.observers.length<1||!Mn.hasAttached())continue;if(Mn.overlayElement.contains(qt)||Mn.overlayElement.contains(dn))break;const bn=Mn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>bn.next(Yt)):bn.next(Yt)}}}add(Te){if(super.add(Te),!this._isAttached){const Be=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Be)):this._addEventListeners(Be),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Be.style.cursor,Be.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Te=this._document.body;Te.removeEventListener("pointerdown",this._pointerDownListener,!0),Te.removeEventListener("click",this._clickListener,!0),Te.removeEventListener("auxclick",this._clickListener,!0),Te.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Te.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Te){Te.addEventListener("pointerdown",this._pointerDownListener,!0),Te.addEventListener("click",this._clickListener,!0),Te.addEventListener("auxclick",this._clickListener,!0),Te.addEventListener("contextmenu",this._clickListener,!0)}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(m.K0),V.\u0275\u0275inject(pe.t4),V.\u0275\u0275inject(V.NgZone,8))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),On=(()=>{class se{constructor(Te,Be){this._platform=Be,this._document=Te}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Te="cdk-overlay-container";if(this._platform.isBrowser||(0,pe.Oy)()){const It=this._document.querySelectorAll(`.${Te}[platform="server"], .${Te}[platform="test"]`);for(let Yt=0;Yt<It.length;Yt++)It[Yt].remove()}const Be=this._document.createElement("div");Be.classList.add(Te),(0,pe.Oy)()?Be.setAttribute("platform","test"):this._platform.isBrowser||Be.setAttribute("platform","server"),this._document.body.appendChild(Be),this._containerElement=Be}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(m.K0),V.\u0275\u0275inject(pe.t4))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();class Sn{constructor(K,Te,Be,It,Yt,qt,dn,sn,Xt,Mn=!1){this._portalOutlet=K,this._host=Te,this._pane=Be,this._config=It,this._ngZone=Yt,this._keyboardDispatcher=qt,this._document=dn,this._location=sn,this._outsideClickDispatcher=Xt,this._animationsDisabled=Mn,this._backdropElement=null,this._backdropClick=new de.x,this._attachments=new de.x,this._detachments=new de.x,this._locationChanges=be.w0.EMPTY,this._backdropClickHandler=bn=>this._backdropClick.next(bn),this._backdropTransitionendHandler=bn=>{this._disposeBackdrop(bn.target)}
1,this._keydownEvents=new de.x,this._outsidePointerEvents=new de.x,It.scrollStrategy&&(this._scrollStrategy=It.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=It.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(K){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Te=this._portalOutlet.attach(K);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Oe.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Te?.onDestroy&&Te.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Te}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const K=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),K}dispose(){const K=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,K&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(K){K!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=K,this.hasAttached()&&(K.attach(this),this.updatePosition()))}updateSize(K){this._config={...this._config,...K},this._updateElementSize()}setDirection(K){this._config={...this._config,direction:K},this._updateElementDirection()}addPanelClass(K){this._pane&&this._toggleClasses(this._pane,K,!0)}removePanelClass(K){this._pane&&this._toggleClasses(this._pane,K,!1)}getDirection(){const K=this._config.direction;return K?"string"==typeof K?K:K.value:"ltr"}updateScrollStrategy(K){K!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=K,this.hasAttached()&&(K.attach(this),K.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const K=this._pane.style;K.width=(0,_e.HM)(this._config.width),K.height=(0,_e.HM)(this._config.height),K.minWidth=(0,_e.HM)(this._config.minWidth),K.minHeight=(0,_e.HM)(this._config.minHeight),K.maxWidth=(0,_e.HM)(this._config.maxWidth),K.maxHeight=(0,_e.HM)(this._config.maxHeight)}_togglePointerEvents(K){this._pane.style.pointerEvents=K?"":"none"}_attachBackdrop(){const K="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(K)})}):this._backdropElement.classList.add(K)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const K=this._backdropElement;if(K){if(this._animationsDisabled)return void this._disposeBackdrop(K);K.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{K.addEventListener("transitionend",this._backdropTransitionendHandler)}),K.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(K)},500))}}_toggleClasses(K,Te,Be){const It=(0,_e.Eq)(Te||[]).filter(Yt=>!!Yt);
1It.length&&(Be?K.classList.add(...It):K.classList.remove(...It))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const K=this._ngZone.onStable.pipe((0,ie.R)((0,lt.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),K.unsubscribe())})})}_disposeScrollStrategy(){const K=this._scrollStrategy;K&&(K.disable(),K.detach&&K.detach())}_disposeBackdrop(K){K&&(K.removeEventListener("click",this._backdropClickHandler),K.removeEventListener("transitionend",this._backdropTransitionendHandler),K.remove(),this._backdropElement===K&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const St="cdk-overlay-connected-position-bounding-box",yn=/([A-Za-z%]+)$/;class ae{get positions(){return this._preferredPositions}constructor(K,Te,Be,It,Yt){this._viewportRuler=Te,this._document=Be,this._platform=It,this._overlayContainer=Yt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new de.x,this._resizeSubscription=be.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(K)}attach(K){this._validatePositions(),K.hostElement.classList.add(St),this._overlayRef=K,this._boundingBox=K.hostElement,this._pane=K.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const K=this._originRect,Te=this._overlayRect,Be=this._viewportRect,It=this._containerRect,Yt=[];let qt;for(let dn of this._preferredPositions){let sn=this._getOriginPoint(K,It,dn),Xt=this._getOverlayPoint(sn,Te,dn),Mn=this._getOverlayFit(Xt,Te,Be,dn);if(Mn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(dn,sn);this._canFitWithFlexibleDimensions(Mn,Xt,Be)?Yt.push({position:dn,origin:sn,overlayRect:Te,boundingBoxRect:this._calculateBoundingBoxRect(sn,dn)}):(!qt||qt.overlayFit.visibleArea<Mn.visibleArea)&&(qt={overlayFit:Mn,overlayPoint:Xt,originPoint:sn,position:dn,overlayRect:Te})}if(Yt.length){let dn=null,sn=-1;for(const Xt of Yt){const Mn=Xt.boundingBoxRect.width*Xt.boundingBoxRect.height*(Xt.position.weight||1);Mn>sn&&(sn=Mn,dn=Xt)}return this._isPushed=!1,void this._applyPosition(dn.position,dn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(qt.position,qt.originPoint);this._applyPosition(qt.position,qt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ne(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(St),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const K=this._lastPosition;if(K){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Te=this._getOriginPoint(this._originRect,this._containerRect,K);this._applyPosition(K,Te)}else this.apply()}withScrollableContainers(K){return this._scrollables=K,this}withPositions(K){return this._preferredPositions=K,-1===K.indexOf(this._lastPosition)&&(this._lastPosition=null),this._val
1idatePositions(),this}withViewportMargin(K){return this._viewportMargin=K,this}withFlexibleDimensions(K=!0){return this._hasFlexibleDimensions=K,this}withGrowAfterOpen(K=!0){return this._growAfterOpen=K,this}withPush(K=!0){return this._canPush=K,this}withLockedPosition(K=!0){return this._positionLocked=K,this}setOrigin(K){return this._origin=K,this}withDefaultOffsetX(K){return this._offsetX=K,this}withDefaultOffsetY(K){return this._offsetY=K,this}withTransformOriginOn(K){return this._transformOriginSelector=K,this}_getOriginPoint(K,Te,Be){let It,Yt;if("center"==Be.originX)It=K.left+K.width/2;else{const qt=this._isRtl()?K.right:K.left,dn=this._isRtl()?K.left:K.right;It="start"==Be.originX?qt:dn}return Te.left<0&&(It-=Te.left),Yt="center"==Be.originY?K.top+K.height/2:"top"==Be.originY?K.top:K.bottom,Te.top<0&&(Yt-=Te.top),{x:It,y:Yt}}_getOverlayPoint(K,Te,Be){let It,Yt;return It="center"==Be.overlayX?-Te.width/2:"start"===Be.overlayX?this._isRtl()?-Te.width:0:this._isRtl()?0:-Te.width,Yt="center"==Be.overlayY?-Te.height/2:"top"==Be.overlayY?0:-Te.height,{x:K.x+It,y:K.y+Yt}}_getOverlayFit(K,Te,Be,It){const Yt=qe(Te);let{x:qt,y:dn}=K,sn=this._getOffset(It,"x"),Xt=this._getOffset(It,"y");sn&&(qt+=sn),Xt&&(dn+=Xt);let Dr=0-dn,vr=dn+Yt.height-Be.height,Gn=this._subtractOverflows(Yt.width,0-qt,qt+Yt.width-Be.width),bt=this._subtractOverflows(Yt.height,Dr,vr),en=Gn*bt;return{visibleArea:en,isCompletelyWithinViewport:Yt.width*Yt.height===en,fitsInViewportVertically:bt===Yt.height,fitsInViewportHorizontally:Gn==Yt.width}}_canFitWithFlexibleDimensions(K,Te,Be){if(this._hasFlexibleDimensions){const It=Be.bottom-Te.y,Yt=Be.right-Te.x,qt=Xe(this._overlayRef.getConfig().minHeight),dn=Xe(this._overlayRef.getConfig().minWidth);return(K.fitsInViewportVertically||null!=qt&&qt<=It)&&(K.fitsInViewportHorizontally||null!=dn&&dn<=Yt)}return!1}_pushOverlayOnScreen(K,Te,Be){if(this._previousPushAmount&&this._positionLocked)return{x:K.x+this._previousPushAmount.x,y:K.y+this._previousPushAmount.y};const It=qe(Te),Yt=this._viewportRect,qt=Math.max(K.x+It.width-Yt.width,0),dn=Math.max(K.y+It.height-Yt.height,0),sn=Math.max(Yt.top-Be.top-K.y,0),Xt=Math.max(Yt.left-Be.left-K.x,0);let Mn=0,bn=0;return Mn=It.width<=Yt.width?Xt||-qt:K.x<this._viewportMargin?Yt.left-Be.left-K.x:0,bn=It.height<=Yt.height?sn||-dn:K.y<this._viewportMargin?Yt.top-Be.top-K.y:0,this._previousPushAmount={x:Mn,y:bn},{x:K.x+Mn,y:K.y+bn}}_applyPosition(K,Te){if(this._setTransformOrigin(K),this._setOverlayElementStyles(Te,K),this._setBoundingBoxStyles(Te,K),K.panelClass&&this._addPanelClasses(K.panelClass),this._lastPosition=K,this._positionChanges.observers.length){const Be=this._getScrollVisibility(),It=new At(K,Be);this._positionChanges.next(It)}this._isInitialRender=!1}_setTransformOrigin(K){if(!this._transformOriginSelector)return;const Te=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Be,It=K.overlayY;Be="center"===K.overlayX?"center":this._isRtl()?"start"===K.overlayX?"right":"left":"start"===K.overlayX?"left":"right";for(let Yt=0;Yt<Te.length;Yt++)Te[Yt].style.transformOrigin=`${Be} ${It}`}_calculateBoundingBoxRect(K,Te){const Be=this._viewportRect,It=this._isRtl();let Yt,qt,dn,Mn,bn,Dr;if("top"===Te.overlayY)qt=K.y,Yt=Be.height-qt+this._viewportMargin;else if("bottom"===Te.overlayY)dn=Be.height-K.y+2*this._viewportMargin,Yt=Be.height-dn+this._viewportMargin;else{const vr=Math.min(Be.bottom-K.y+Be.top,K.y),Gn=this._lastBoundingBoxSize.height;Yt=2*vr,qt=K.y-vr,Yt>Gn&&!this._isInitialRender&&!this._growAfterOpen&&(qt=K.y-Gn/2)}if("end"===Te.overlayX&&!It||"start"===Te.overlayX&&It)Dr=Be.width-K.x+this._viewportMargin,Mn=K.x-this._viewportMargin;else if("start"===Te.overlayX&&!It||"end"===Te.overlayX&&It)bn=K.x,Mn=Be.right-K.x;else{const vr=Math.min(Be.right-K.x+Be.left,K.x),Gn=this._lastBoundingBoxSize.width;Mn=2*vr,bn=K.x-vr,Mn>Gn&&!this._isInitialRender&&!this._growAfterOpen&&(bn=K.x-Gn/2)}return{top:qt,left:bn,bottom:dn,right:Dr,width:Mn,height:Yt}}_setBoundingBoxStyles(K,Te){const Be=this._calculateBoundingBoxRect(K,Te);!this._isInitialRender&&!this._growAfterOpen&&(Be.height=Math.min(Be.height,this._lastBoundingBoxSize.height),Be.width=Math.min(Be.width,this._lastBoundingBoxSize.width));const It={};if(this._hasExactPosition())It.top=It.left="0",It.bottom=It.right=It.maxHeight=It.maxWidth="",It.width=It.height="100%";else{const Yt=this._overlayRef.getConfig().maxHeight,qt=this._overlayRef.getConfig().maxWidth;It.height=(0,_e.HM)(Be.height),It.top=(0,_e.HM)(Be.top),It.bottom=(0,_e.HM)(Be.bottom),It.width=(0,_e.HM)(Be.width),It.left=(0,_e.HM)(Be.left),It.right=(0,_e.HM)(Be.right),It.alignItems="center"===Te.overlayX?"center":"end"===Te.overlayX?"flex-end":"flex-start",It.justifyContent="center"===Te.overlayY?"center":"bottom"===Te.overlayY?"flex-end":"flex-start",Yt&&(It.maxHeight=(0,_e.HM)(Yt)),qt&&(It.maxWidth=(0,_e.HM)(qt))}this._lastBoundingBoxSize=Be,Ne(this._boundingBox.style,It)}_resetBoundingBoxStyles(){Ne(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ne(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(K,Te){const Be={},It=this._hasExactPosition(),Yt=this._hasFlexibleDimensions,qt=this._overlayRef.getConfig();if(It){const Mn=this._viewportRuler.getViewportScrollPosition();Ne(Be,this._getExactOverlayY(Te,K,Mn)),Ne(Be,this._getExactOverlayX(Te,K,Mn))}else Be.position="static";let dn="",sn=this._getOffset(Te,"x"),Xt=this._getOffset(Te,"y");sn&&(dn+=`translateX(${sn}px) `),Xt&&(dn+=`translateY(${Xt}px)`),Be.transform=dn.trim(),qt.maxHeight&&(It?Be.maxHeight=(0,_e.HM)(qt.maxHeight):Yt&&(Be.maxHeight="")),qt.maxWidth&&(It?Be.maxWidth=(0,_e.HM)(qt.maxWidth):Yt&&(Be.maxWidth="")),Ne(this._pane.style,Be)}_getExactOverlayY(K,Te,Be){let It={top:"",bottom:""},Yt=this._getOverlayPoint(Te,this._overlayRect,K);return this._isPushed&&(Yt=this._pushOverlayOnScreen(Yt,this._overlayRect,Be)),"bottom"===K.overlayY?It.bottom=this._document.documentElement.clientHeight-(Yt.y+this._overlayRect.height)+"px":It.top=(0,_e.HM)(Yt.y),It}_getExactOverlayX(K,Te,Be){let qt,It={left:"",right:""},Yt=this._getOverlayPoint(Te,this._overlayRect,K);return this._isPushed&&(Yt=this._pushOverlayOnScreen(Yt,this._overlayRect,Be)),qt=this._isRtl()?"end"===K.overlayX?"left":"right":"end"===K.overlayX?"right":"left","right"===qt?It.right=this._document.documentElement.clientWidth-(Yt.x+this._overlayRect.width)+"px":It.left=(0,_e.HM)(Yt.x),It}_getScrollVisibility(){const K=this._getOriginRect(),Te=this._pane.getBoundingClientRect(),Be=this._scrollables.map(It=>It.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:He(K,Be),isOriginOutsideView:Ct(K,Be),isOverlayClipped:He(Te,Be),isOverlayOutsideView:Ct(Te,Be)}}_subtractOverflows(K,...Te){return Te.reduce((Be,It)=>Be-Math.max(It,0),K)}_getNarrowedViewportRect(){const K=this._document.documentElement.clientWidth,Te=this._document.documentElement.clientHeight,Be=this._viewportRuler.getViewportScrollPosition();return{top:Be.top+this._viewportMargin,left:Be.left+this._viewportMargin,right:Be.left+K-this._viewportMargin,bottom:Be.top+Te-this._viewportMargin,width:K-2*this._viewportMargin,height:Te-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(K,Te){return"x"===Te?null==K.offsetX?this._offsetX:K.offsetX:null==K.offsetY?this._offsetY:K.offsetY}_validatePositions(){}
1_addPanelClasses(K){this._pane&&(0,_e.Eq)(K).forEach(Te=>{""!==Te&&-1===this._appliedPanelClasses.indexOf(Te)&&(this._appliedPanelClasses.push(Te),this._pane.classList.add(Te))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(K=>{this._pane.classList.remove(K)}),this._appliedPanelClasses=[])}_getOriginRect(){const K=this._origin;if(K instanceof V.ElementRef)return K.nativeElement.getBoundingClientRect();if(K instanceof Element)return K.getBoundingClientRect();const Te=K.width||0,Be=K.height||0;return{top:K.y,bottom:K.y+Be,left:K.x,right:K.x+Te,height:Be,width:Te}}}function Ne(se,K){for(let Te in K)K.hasOwnProperty(Te)&&(se[Te]=K[Te]);return se}function Xe(se){if("number"!=typeof se&&null!=se){const[K,Te]=se.split(yn);return Te&&"px"!==Te?null:parseFloat(K)}return se||null}function qe(se){return{top:Math.floor(se.top),right:Math.floor(se.right),bottom:Math.floor(se.bottom),left:Math.floor(se.left),width:Math.floor(se.width),height:Math.floor(se.height)}}const $t="cdk-global-overlay-wrapper";class cn{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(K){const Te=K.getConfig();this._overlayRef=K,this._width&&!Te.width&&K.updateSize({width:this._width}),this._height&&!Te.height&&K.updateSize({height:this._height}),K.hostElement.classList.add($t),this._isDisposed=!1}top(K=""){return this._bottomOffset="",this._topOffset=K,this._alignItems="flex-start",this}left(K=""){return this._xOffset=K,this._xPosition="left",this}bottom(K=""){return this._topOffset="",this._bottomOffset=K,this._alignItems="flex-end",this}right(K=""){return this._xOffset=K,this._xPosition="right",this}start(K=""){return this._xOffset=K,this._xPosition="start",this}end(K=""){return this._xOffset=K,this._xPosition="end",this}width(K=""){return this._overlayRef?this._overlayRef.updateSize({width:K}):this._width=K,this}height(K=""){return this._overlayRef?this._overlayRef.updateSize({height:K}):this._height=K,this}centerHorizontally(K=""){return this.left(K),this._xPosition="center",this}centerVertically(K=""){return this.top(K),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const K=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement.style,Be=this._overlayRef.getConfig(),{width:It,height:Yt,maxWidth:qt,maxHeight:dn}=Be,sn=!("100%"!==It&&"100vw"!==It||qt&&"100%"!==qt&&"100vw"!==qt),Xt=!("100%"!==Yt&&"100vh"!==Yt||dn&&"100%"!==dn&&"100vh"!==dn),Mn=this._xPosition,bn=this._xOffset,Dr="rtl"===this._overlayRef.getConfig().direction;let vr="",Gn="",bt="";sn?bt="flex-start":"center"===Mn?(bt="center",Dr?Gn=bn:vr=bn):Dr?"left"===Mn||"end"===Mn?(bt="flex-end",vr=bn):("right"===Mn||"start"===Mn)&&(bt="flex-start",Gn=bn):"left"===Mn||"start"===Mn?(bt="flex-start",vr=bn):("right"===Mn||"end"===Mn)&&(bt="flex-end",Gn=bn),K.position=this._cssPosition,K.marginLeft=sn?"0":vr,K.marginTop=Xt?"0":this._topOffset,K.marginBottom=this._bottomOffset,K.marginRight=sn?"0":Gn,Te.justifyContent=bt,Te.alignItems=Xt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const K=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement,Be=Te.style;Te.classList.remove($t),Be.justifyContent=Be.alignItems=K.marginTop=K.marginBottom=K.marginLeft=K.marginRight=K.position="",this._overlayRef=null,this._isDisposed=!0}}let tr=(()=>{class se{constructor(Te,Be,It,Yt){this._viewportRuler=Te,this._document=Be,this._platform=It,this._overlayContainer=Yt}global(){return new cn}flexibleConnectedTo(Te){return new ae(Te,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(c.rL),V.\u0275\u0275inject(m.K0),V.\u0275\u0275inject(pe.t4),V.\u0275\u0275inject(On))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),wn=0,Wn=(()=>{class se{constructor(Te,Be,It,Yt,qt,dn,sn,Xt,Mn,bn,Dr,vr){this.scrollStrategies=Te,this._overlayContainer=Be,this._componentFactoryResolver=It,this._positionBuilder=Yt,this._keyboardDispatcher=qt,this._injector=dn,this._ngZone=sn,this._document=Xt,this._directionality=Mn,this._location=bn,this._outsideClickDispatcher=Dr,this._animationsModuleType=vr}create(Te){const Be=this._createHostElement(),It=this._createPaneElement(Be),Yt=this._createPortalOutlet(It),qt=new ze(Te);return qt.direction=qt.direction||this._directionality.value,new Sn(Yt,Be,It,qt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Te){const Be=this._document.createElement("div");return Be.id="cdk-overlay-"+wn++,Be.classList.add("cdk-overlay-pane"),Te.appendChild(Be),Be}_createHostElement(){const Te=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Te),Te}_createPortalOutlet(Te){return this._appRef||(this._appRef=this._injector.get(V.ApplicationRef)),new q.u0(Te,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return se.\u0275fac=function(Te){return new(Te||se)(V.\u0275\u0275inject(ve),V.\u0275\u0275inject(On),V.\u0275\u0275inject(V.ComponentFactoryResolver),V.\u0275\u0275inject(tr),V.\u0275\u0275inject(vt),V.\u0275\u0275inject(V.Injector),V.\u0275\u0275inject(V.NgZone),V.\u0275\u0275inject(m.K0),V.\u0275\u0275inject(Re.Is),V.\u0275\u0275inject(m.Ye),V.\u0275\u0275inject(jt),V.\u0275\u0275inject(V.ANIMATION_MODULE_TYPE,8))},se.\u0275prov=V.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const xn={provide:new V.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[Wn],useFactory:function _n(se){return()=>se.scrollStrategies.reposition()}};let Mt=(()=>{class se{}return se.\u0275fac=function(Te){return new(Te||se)},se.\u0275mod=V.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=V.\u0275\u0275defineInjector({providers:[Wn,xn],imports:[Re.vT,q.eL,c.Cl,c.Cl]}),se})()},3353:(ln,et,C)=>{"use strict";C.d(et,{Mq:()=>it,Oy:()=>Ve,_i:()=>dt,ht:()=>Ct,i$:()=>de,kV:()=>Pe,sA:()=>He,t4:()=>_e,ud:()=>pe});var c=C(4650),m=C(6895);let V;try{V=typeof Intl<"u"&&Intl.v8BreakIterator}catch{V=!1}let Re,be,lt,wt,_e=(()=>{class ve{constructor(rt){this._platformId=rt,this.isBrowser=this._platformId?(0,m.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
1sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!V)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ve.\u0275fac=function(rt){return new(rt||ve)(c.\u0275\u0275inject(c.PLATFORM_ID))},ve.\u0275prov=c.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),pe=(()=>{class ve{}return ve.\u0275fac=function(rt){return new(rt||ve)},ve.\u0275mod=c.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=c.\u0275\u0275defineInjector({}),ve})();function de(ve){return function q(){if(null==Re&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Re=!0}))}finally{Re=Re||!1}return Re}()?ve:!!ve.capture}function it(){if(null==lt){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return lt=!1,lt;if("scrollBehavior"in document.documentElement.style)lt=!0;else{const ve=Element.prototype.scrollTo;lt=!!ve&&!/\{\s*\[native code\]\s*\}/.test(ve.toString())}}return lt}function dt(){if("object"!=typeof document||!document)return 0;if(null==be){const ve=document.createElement("div"),ze=ve.style;ve.dir="rtl",ze.width="1px",ze.overflow="auto",ze.visibility="hidden",ze.pointerEvents="none",ze.position="absolute";const rt=document.createElement("div"),nt=rt.style;nt.width="2px",nt.height="1px",ve.appendChild(rt),document.body.appendChild(ve),be=0,0===ve.scrollLeft&&(ve.scrollLeft=1,be=0===ve.scrollLeft?1:2),ve.remove()}return be}function Pe(ve){if(function Me(){if(null==wt){const ve=typeof document<"u"?document.head:null;wt=!(!ve||!ve.createShadowRoot&&!ve.attachShadow)}return wt}()){const ze=ve.getRootNode?ve.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ze instanceof ShadowRoot)return ze}return null}function Ct(){let ve=typeof document<"u"&&document?document.activeElement:null;for(;ve&&ve.shadowRoot;){const ze=ve.shadowRoot.activeElement;if(ze===ve)break;ve=ze}return ve}function He(ve){return ve.composedPath?ve.composedPath()[0]:ve.target}function Ve(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(ln,et,C)=>{"use strict";C.d(et,{C5:()=>q,Pl:()=>Ct,UE:()=>de,eL:()=>Ve,en:()=>lt,nK:()=>ve,u0:()=>dt});var c=C(4650),m=C(6895);class Re{attach(rt){return this._attachedHost=rt,rt.attach(this)}detach(){let rt=this._attachedHost;null!=rt&&(this._attachedHost=null,rt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(rt){this._attachedHost=rt}}class q extends Re{constructor(rt,nt,At,Ue,Wt){super(),this.component=rt,this.viewContainerRef=nt,this.injector=At,this.componentFactoryResolver=Ue,this.projectableNodes=Wt}}class de extends Re{constructor(rt,nt,At,Ue){super(),this.templateRef=rt,this.viewContainerRef=nt,this.context=At,this.injector=Ue}get origin(){return this.templateRef.elementRef}attach(rt,nt=this.context){return this.context=nt,super.attach(rt)}detach(){return this.context=void 0,super.detach()}}class be extends Re{constructor(rt){super(),this.element=rt instanceof c.ElementRef?rt.nativeElement:rt}}class lt{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(rt){return rt instanceof q?(this._attachedPortal=rt,this.attachComponentPortal(rt)):rt instanceof de?(this._attachedPortal=rt,this.attachTemplatePortal(rt)):this.attachDomPortal&&rt instanceof be?(this._attachedPortal=rt,this.attachDomPortal(rt)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(rt){this._disposeFn=rt}
1_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class dt extends lt{constructor(rt,nt,At,Ue,Wt){super(),this.outletElement=rt,this._componentFactoryResolver=nt,this._appRef=At,this._defaultInjector=Ue,this.attachDomPortal=je=>{const vt=je.element,jt=this._document.createComment("dom-portal");vt.parentNode.insertBefore(jt,vt),this.outletElement.appendChild(vt),this._attachedPortal=je,super.setDisposeFn(()=>{jt.parentNode&&jt.parentNode.replaceChild(vt,jt)})},this._document=Wt}attachComponentPortal(rt){const At=(rt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(rt.component);let Ue;return rt.viewContainerRef?(Ue=rt.viewContainerRef.createComponent(At,rt.viewContainerRef.length,rt.injector||rt.viewContainerRef.injector,rt.projectableNodes||void 0),this.setDisposeFn(()=>Ue.destroy())):(Ue=At.create(rt.injector||this._defaultInjector||c.Injector.NULL),this._appRef.attachView(Ue.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Ue.hostView),Ue.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Ue)),this._attachedPortal=rt,Ue}attachTemplatePortal(rt){let nt=rt.viewContainerRef,At=nt.createEmbeddedView(rt.templateRef,rt.context,{injector:rt.injector});return At.rootNodes.forEach(Ue=>this.outletElement.appendChild(Ue)),At.detectChanges(),this.setDisposeFn(()=>{let Ue=nt.indexOf(At);-1!==Ue&&nt.remove(Ue)}),this._attachedPortal=rt,At}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(rt){return rt.hostView.rootNodes[0]}}let Ct=(()=>{class ze extends lt{constructor(nt,At,Ue){super(),this._componentFactoryResolver=nt,this._viewContainerRef=At,this._isInitialized=!1,this.attached=new c.EventEmitter,this.attachDomPortal=Wt=>{const je=Wt.element,vt=this._document.createComment("dom-portal");Wt.setAttachedHost(this),je.parentNode.insertBefore(vt,je),this._getRootNode().appendChild(je),this._attachedPortal=Wt,super.setDisposeFn(()=>{vt.parentNode&&vt.parentNode.replaceChild(je,vt)})},this._document=Ue}get portal(){return this._attachedPortal}set portal(nt){this.hasAttached()&&!nt&&!this._isInitialized||(this.hasAttached()&&super.detach(),nt&&super.attach(nt),this._attachedPortal=nt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(nt){nt.setAttachedHost(this);const At=null!=nt.viewContainerRef?nt.viewContainerRef:this._viewContainerRef,Wt=(nt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(nt.component),je=At.createComponent(Wt,At.length,nt.injector||At.injector,nt.projectableNodes||void 0);return At!==this._viewContainerRef&&this._getRootNode().appendChild(je.hostView.rootNodes[0]),super.setDisposeFn(()=>je.destroy()),this._attachedPortal=nt,this._attachedRef=je,this.attached.emit(je),je}attachTemplatePortal(nt){nt.setAttachedHost(this);const At=this._viewContainerRef.createEmbeddedView(nt.templateRef,nt.context,{injector:nt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=nt,this._attachedRef=At,this.attached.emit(At),At}_getRootNode(){const nt=this._viewContainerRef.element.nativeElement;return nt.nodeType===nt.ELEMENT_NODE?nt:nt.parentNode}}return ze.\u0275fac=function(nt){return new(nt||ze)(c.\u0275\u0275directiveInject(c.ComponentFactoryResolver),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(m.K0))},ze.\u0275dir=c.\u0275\u0275defineDirective({type:ze,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[c.\u0275\u0275InheritDefinitionFeature]}),ze})(),Ve=(()=>{class ze{}return ze.\u0275fac=function(nt){return new(nt||ze)},ze.\u0275mod=c.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=c.\u0275\u0275defineInjector({}),ze})();class ve{constructor(rt,nt){this._parentInjector=rt,this._customTokens=nt}get(rt,nt){const At=this._customTokens.get(rt);return typeof At<"u"?At:this._parentInjector.get(rt,nt)}}},4883:(ln,et,C)=>{"use strict";C.d(et,{ZD:()=>_n,mF:()=>Xe,Cl:()=>xn,rL:()=>ft});var c=C(1281),m=C(4650),V=C(7579),_e=C(9646),pe=C(9751),me=C(4968),Oe=C(6406),ie=C(4408);let q,Re=1;const de={};function be(Mt){return Mt in de&&(delete de[Mt],!0)}const lt={setImmediate(Mt){const Nt=Re++;return de[Nt]=!0,q||(q=Promise.resolve()),q.then(()=>be(Nt)&&Mt()),Nt},clearImmediate(Mt){be(Mt)}},{setImmediate:dt,clearImmediate:wt}=lt,Me={setImmediate(...Mt){const{delegate:Nt}=Me;return(Nt?.setImmediate||dt)(...Mt)},clearImmediate(Mt){const{delegate:Nt}=Me;return(Nt?.clearImmediate||wt)(Mt)},delegate:void 0};var Ct=C(7565);const Ve=new class He extends Ct.v{flush(Nt){this._active=!0;const se=this._scheduled;this._scheduled=void 0;const{actions:K}=this;let Te;Nt=Nt||K.shift();do{if(Te=Nt.execute(Nt.state,Nt.delay))break}
1while((Nt=K[0])&&Nt.id===se&&K.shift());if(this._active=!1,Te){for(;(Nt=K[0])&&Nt.id===se&&K.shift();)Nt.unsubscribe();throw Te}}}(class Pe extends ie.o{constructor(Nt,se){super(Nt,se),this.scheduler=Nt,this.work=se}requestAsyncId(Nt,se,K=0){return null!==K&&K>0?super.requestAsyncId(Nt,se,K):(Nt.actions.push(this),Nt._scheduled||(Nt._scheduled=Me.setImmediate(Nt.flush.bind(Nt,void 0))))}recycleAsyncId(Nt,se,K=0){var Te;if(null!=K?K>0:this.delay>0)return super.recycleAsyncId(Nt,se,K);const{actions:Be}=Nt;null!=se&&(null===(Te=Be[Be.length-1])||void 0===Te?void 0:Te.id)!==se&&(Me.clearImmediate(se),Nt._scheduled===se&&(Nt._scheduled=void 0))}});var ze=C(727),rt=C(3601),nt=C(9300),At=C(2722),Ue=C(8675),Wt=C(3353),je=C(6895),vt=C(445);const jt=["contentWrapper"],On=["*"],Sn=new m.InjectionToken("VIRTUAL_SCROLL_STRATEGY");let Xe=(()=>{class Mt{constructor(se,K,Te){this._ngZone=se,this._platform=K,this._scrolled=new V.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Te}register(se){this.scrollContainers.has(se)||this.scrollContainers.set(se,se.elementScrolled().subscribe(()=>this._scrolled.next(se)))}deregister(se){const K=this.scrollContainers.get(se);K&&(K.unsubscribe(),this.scrollContainers.delete(se))}scrolled(se=20){return this._platform.isBrowser?new pe.y(K=>{this._globalSubscription||this._addGlobalListener();const Te=se>0?this._scrolled.pipe((0,rt.e)(se)).subscribe(K):this._scrolled.subscribe(K);return this._scrolledCount++,()=>{Te.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,_e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((se,K)=>this.deregister(K)),this._scrolled.complete()}ancestorScrolled(se,K){const Te=this.getAncestorScrollContainers(se);return this.scrolled(K).pipe((0,nt.h)(Be=>!Be||Te.indexOf(Be)>-1))}getAncestorScrollContainers(se){const K=[];return this.scrollContainers.forEach((Te,Be)=>{this._scrollableContainsElement(Be,se)&&K.push(Be)}),K}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(se,K){let Te=(0,c.fI)(K),Be=se.getElementRef().nativeElement;do{if(Te==Be)return!0}while(Te=Te.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const se=this._getWindow();return(0,me.R)(se.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Mt.\u0275fac=function(se){return new(se||Mt)(m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(Wt.t4),m.\u0275\u0275inject(je.K0,8))},Mt.\u0275prov=m.\u0275\u0275defineInjectable({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),qe=(()=>{class Mt{constructor(se,K,Te,Be){this.elementRef=se,this.scrollDispatcher=K,this.ngZone=Te,this.dir=Be,this._destroyed=new V.x,this._elementScrolled=new pe.y(It=>this.ngZone.runOutsideAngular(()=>(0,me.R)(this.elementRef.nativeElement,"scroll").pipe((0,At.R)(this._destroyed)).subscribe(It)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(se){const K=this.elementRef.nativeElement,Te=this.dir&&"rtl"==this.dir.value;null==se.left&&(se.left=Te?se.end:se.start),null==se.right&&(se.right=Te?se.start:se.end),null!=se.bottom&&(se.top=K.scrollHeight-K.clientHeight-se.bottom),Te&&0!=(0,Wt._i)()?(null!=se.left&&(se.right=K.scrollWidth-K.clientWidth-se.left),2==(0,Wt._i)()?se.left=se.right:1==(0,Wt._i)()&&(se.left=se.right?-se.right:se.right)):null!=se.right&&(se.left=K.scrollWidth-K.clientWidth-se.right),this._applyScrollToOptions(se)}_applyScrollToOptions(se){const K=this.elementRef.nativeElement;(0,Wt.Mq)()?K.scrollTo(se):(null!=se.top&&(K.scrollTop=se.top),null!=se.left&&(K.scrollLeft=se.left))}measureScrollOffset(se){const K="left",Be=this.elementRef.nativeElement;if("top"==se)return Be.scrollTop;if("bottom"==se)return Be.scrollHeight-Be.clientHeight-Be.scrollTop;const It=this.dir&&"rtl"==this.dir.value;return"start"==se?se=It?"right":K:"end"==se&&(se=It?K:"right"),It&&2==(0,Wt._i)()?se==K?Be.scrollWidth-Be.clientWidth-Be.scrollLeft:Be.scrollLeft:It&&1==(0,Wt._i)()?se==K?Be.scrollLeft+Be.scrollWidth-Be.clientWidth:-Be.scrollLeft:se==K?Be.scrollLeft:Be.scrollWidth-Be.clientWidth-Be.scrollLeft}}return Mt.\u0275fac=function(se){return new(se||Mt)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(Xe),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(vt.Is,8))},Mt.\u0275dir=m.\u0275\u0275defineDirective({type:Mt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),Mt})(),ft=(()=>{class Mt{constructor(se,K,Te){this._platform=se,this._change=new V.x,this._changeListener=Be=>{this._change.next(Be)},this._document=Te,K.runOutsideAngular(()=>{if(se.isBrowser){const Be=this._getWindow();Be.addEventListener("resize",this._changeListener),Be.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const se=this._getWindow();se.removeEventListener("resize",this._changeListener),se.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const se={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),se}getViewportRect(){const se=this.getViewportScrollPosition(),{width:K,height:Te}=this.getViewportSize();
1return{top:se.top,left:se.left,bottom:se.top+Te,right:se.left+K,height:Te,width:K}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const se=this._document,K=this._getWindow(),Te=se.documentElement,Be=Te.getBoundingClientRect();return{top:-Be.top||se.body.scrollTop||K.scrollY||Te.scrollTop||0,left:-Be.left||se.body.scrollLeft||K.scrollX||Te.scrollLeft||0}}change(se=20){return se>0?this._change.pipe((0,rt.e)(se)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const se=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:se.innerWidth,height:se.innerHeight}:{width:0,height:0}}}return Mt.\u0275fac=function(se){return new(se||Mt)(m.\u0275\u0275inject(Wt.t4),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(je.K0,8))},Mt.\u0275prov=m.\u0275\u0275defineInjectable({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();const $t=new m.InjectionToken("VIRTUAL_SCROLLABLE");let cn=(()=>{class Mt extends qe{constructor(se,K,Te,Be){super(se,K,Te,Be)}measureViewportSize(se){const K=this.elementRef.nativeElement;return"horizontal"===se?K.clientWidth:K.clientHeight}}return Mt.\u0275fac=function(se){return new(se||Mt)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(Xe),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(vt.Is,8))},Mt.\u0275dir=m.\u0275\u0275defineDirective({type:Mt,features:[m.\u0275\u0275InheritDefinitionFeature]}),Mt})();const wn=typeof requestAnimationFrame<"u"?Oe.Z:Ve;let Wn=(()=>{class Mt extends cn{get orientation(){return this._orientation}set orientation(se){this._orientation!==se&&(this._orientation=se,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(se){this._appendOnly=(0,c.Ig)(se)}constructor(se,K,Te,Be,It,Yt,qt,dn){super(se,Yt,Te,It),this.elementRef=se,this._changeDetectorRef=K,this._scrollStrategy=Be,this.scrollable=dn,this._platform=(0,m.inject)(Wt.t4),this._detachedSubject=new V.x,this._renderedRangeSubject=new V.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new pe.y(sn=>this._scrollStrategy.scrolledIndexChange.subscribe(Xt=>Promise.resolve().then(()=>this.ngZone.run(()=>sn.next(Xt))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=ze.w0.EMPTY,this._viewportChanges=qt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,Ue.O)(null),(0,rt.e)(0,wn)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(se){this.ngZone.runOutsideAngular(()=>{this._forOf=se,this._forOf.dataStream.pipe((0,At.R)(this._detachedSubject)).subscribe(K=>{const Te=K.length;Te!==this._dataLength&&(this._dataLength=Te,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(se){return this.getElementRef().nativeElement.getBoundingClientRect()[se]}setTotalContentSize(se){this._totalContentSize!==se&&(this._totalContentSize=se,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(se){(function tr(Mt,Nt){return Mt.start==Nt.start&&Mt.end==Nt.end})(this._renderedRange,se)||(this.appendOnly&&(se={start:0,end:Math.max(this._renderedRange.end,se.end)}),this._renderedRangeSubject.next(this._renderedRange=se),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(se,K="to-start"){se=this.appendOnly&&"to-start"===K?0:se;const Be="horizontal"==this.orientation,It=Be?"X":"Y";let qt=`translate${It}(${Number((Be&&this.dir&&"rtl"==this.dir.value?-1:1)*se)}px)`;this._renderedContentOffset=se,"to-end"===K&&(qt+=` translate${It}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=qt&&(this._renderedContentTransform=qt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(se,K="auto"){const Te={behavior:K};"horizontal"===this.orientation?Te.start=se:Te.top=se,this.scrollable.scrollTo(Te)}scrollToIndex(se,K="auto"){this._scrollStrategy.scrollToIndex(se,K)}measureScrollOffset(se){let K;return K=this.scrollable==this?Te=>super.measureScrollOffset(Te):Te=>this.scrollable.measureScrollOffset(Te),Math.max(0,K(se??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(se){let K;const It="rtl"==this.dir?.value;K="start"==se?It?"right":"left":"end"==se?It?"left":"right":se||("horizontal"===this.orientation?"left":"top");const Yt=this.scrollable.measureBoundingClientRectWithScrollOffset(K);return this.elementRef.nativeElement.getBoundingClientRect()[K]-Yt}measureRenderedContentSize(){const se=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?se.offsetWidth:se.offsetHeight}measureRangeSize(se){return this._forOf?this._forOf.measureRangeSize(se,this.orientation):0}
1checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(se){se&&this._runAfterChangeDetection.push(se),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const se=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const K of se)K()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Mt.\u0275fac=function(se){return new(se||Mt)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(Sn,8),m.\u0275\u0275directiveInject(vt.Is,8),m.\u0275\u0275directiveInject(Xe),m.\u0275\u0275directiveInject(ft),m.\u0275\u0275directiveInject($t,8))},Mt.\u0275cmp=m.\u0275\u0275defineComponent({type:Mt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(se,K){if(1&se&&m.\u0275\u0275viewQuery(jt,7),2&se){let Te;m.\u0275\u0275queryRefresh(Te=m.\u0275\u0275loadQuery())&&(K._contentWrapper=Te.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(se,K){2&se&&m.\u0275\u0275classProp("cdk-virtual-scroll-orientation-horizontal","horizontal"===K.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==K.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[m.\u0275\u0275ProvidersFeature([{provide:qe,useFactory:(Nt,se)=>Nt||se,deps:[[new m.Optional,new m.Inject($t)],Mt]}]),m.\u0275\u0275InheritDefinitionFeature,m.\u0275\u0275StandaloneFeature],ngContentSelectors:On,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(se,K){1&se&&(m.\u0275\u0275projectionDef(),m.\u0275\u0275elementStart(0,"div",0,1),m.\u0275\u0275projection(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(3,"div",2)),2&se&&(m.\u0275\u0275advance(3),m.\u0275\u0275styleProp("width",K._totalContentWidth)("height",K._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Mt})(),_n=(()=>{class Mt{}return Mt.\u0275fac=function(se){return new(se||Mt)},Mt.\u0275mod=m.\u0275\u0275defineNgModule({type:Mt}),Mt.\u0275inj=m.\u0275\u0275defineInjector({}),Mt})(),xn=(()=>{class Mt{}return Mt.\u0275fac=function(se){return new(se||Mt)},Mt.\u0275mod=m.\u0275\u0275defineNgModule({type:Mt}),Mt.\u0275inj=m.\u0275\u0275defineInjector({imports:[vt.vT,_n,Wn,vt.vT,_n]}),Mt})()},6895:(ln,et,C)=>{"use strict";C.d(et,{Do:()=>Ct,EM:()=>So,HT:()=>_e,JF:()=>Ao,JJ:()=>qo,K0:()=>me,Mx:()=>Rs,NF:()=>Yo,O5:()=>Fi,Ov:()=>Jt,PC:()=>Os,PM:()=>hs,RF:()=>ds,S$:()=>wt,V_:()=>Re,Ye:()=>He,b0:()=>Pe,bD:()=>lo,ez:()=>rs,mk:()=>pr,n9:()=>wi,q:()=>V,sg:()=>bi,tP:()=>Xr,uU:()=>ri,w_:()=>pe});var c=C(4650);let m=null;function V(){return m}function _e(k){m||(m=k)}class pe{}const me=new c.InjectionToken("DocumentToken");let Oe=(()=>{class k{historyGo(U){throw new Error("Not implemented")}}return k.\u0275fac=function(U){return new(U||k)},k.\u0275prov=c.\u0275\u0275defineInjectable({token:k,factory:function(){return function ie(){return(0,c.\u0275\u0275inject)(q)}()},providedIn:"platform"}),k})();const Re=new c.InjectionToken("Location Initialized");let q=(()=>{class k extends Oe{constructor(U){super(),this._doc=U,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(U){const ye=V().getGlobalEventTarget(this._doc,"window");return ye.addEventListener("popstate",U,!1),()=>ye.removeEventListener("popstate",U)}onHashChange(U){const ye=V().getGlobalEventTarget(this._doc,"window");return ye.addEventListener("hashchange",U,!1),()=>ye.removeEventListener("hashchange",U)}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(U){this._location.pathname=U}pushState(U,ye,Ye){de()?this._history.pushState(U,ye,Ye):this._location.hash=Ye}replaceState(U,ye,Ye){de()?this._history.replaceState(U,ye,Ye):this._location.hash=Ye}forward(){this._history.forward()}back(){this._history.back()}historyGo(U=0){this._history.go(U)}getState(){return this._history.state}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275inject(me))},k.\u0275prov=c.\u0275\u0275defineInjectable({token:k,factory:function(){return function be(){return new q((0,c.\u0275\u0275inject)(me))}()},providedIn:"platform"}),k})();function de(){return!!window.history.pushState}function lt(k,ne){if(0==k.length)return ne;if(0==ne.length)return k;let U=0;return k.endsWith("/")&&U++,ne.startsWith("/")&&U++,2==U?k+ne.substring(1):1==U?k+ne:k+"/"+ne}function it(k){const ne=k.match(/#|\?|$/),U=ne&&ne.index||k.length;return k.slice(0,U-("/"===k[U-1]?1:0))+k.slice(U)}function dt(k){return k&&"?"!==k[0]?"?"+k:k}let wt=(()=>{class k{historyGo(U){throw new Error("Not implemented")}}return k.\u0275fac=function(U){return new(U||k)},k.\u0275prov=c.\u0275\u0275defineInjectable({token:k,factory:function(){return(0,c.inject)(Pe)},providedIn:"root"}),k})();const Me=new c.InjectionToken("appBaseHref");let Pe=(()=>{class k extends wt{constructor(U,ye){super(),this._platformLocation=U,this._removeListenerFns=[],this._baseHref=ye??this._platformLocation.getBaseHrefFromDOM()??(0,c.inject)(me).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.on
1HashChange(U))}getBaseHref(){return this._baseHref}prepareExternalUrl(U){return lt(this._baseHref,U)}path(U=!1){const ye=this._platformLocation.pathname+dt(this._platformLocation.search),Ye=this._platformLocation.hash;return Ye&&U?`${ye}${Ye}`:ye}pushState(U,ye,Ye,Kt){const fn=this.prepareExternalUrl(Ye+dt(Kt));this._platformLocation.pushState(U,ye,fn)}replaceState(U,ye,Ye,Kt){const fn=this.prepareExternalUrl(Ye+dt(Kt));this._platformLocation.replaceState(U,ye,fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275inject(Oe),c.\u0275\u0275inject(Me,8))},k.\u0275prov=c.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),Ct=(()=>{class k extends wt{constructor(U,ye){super(),this._platformLocation=U,this._baseHref="",this._removeListenerFns=[],null!=ye&&(this._baseHref=ye)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}path(U=!1){let ye=this._platformLocation.hash;return null==ye&&(ye="#"),ye.length>0?ye.substring(1):ye}prepareExternalUrl(U){const ye=lt(this._baseHref,U);return ye.length>0?"#"+ye:ye}pushState(U,ye,Ye,Kt){let fn=this.prepareExternalUrl(Ye+dt(Kt));0==fn.length&&(fn=this._platformLocation.pathname),this._platformLocation.pushState(U,ye,fn)}replaceState(U,ye,Ye,Kt){let fn=this.prepareExternalUrl(Ye+dt(Kt));0==fn.length&&(fn=this._platformLocation.pathname),this._platformLocation.replaceState(U,ye,fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275inject(Oe),c.\u0275\u0275inject(Me,8))},k.\u0275prov=c.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac}),k})(),He=(()=>{class k{constructor(U){this._subject=new c.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=U;const ye=this._locationStrategy.getBaseHref();this._basePath=function rt(k){if(new RegExp("^(https?:)?//").test(k)){const[,U]=k.split(/\/\/[^\/]+/);return U}return k}(it(ze(ye))),this._locationStrategy.onPopState(Ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ye.state,type:Ye.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(U=!1){return this.normalize(this._locationStrategy.path(U))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(U,ye=""){return this.path()==this.normalize(U+dt(ye))}normalize(U){return k.stripTrailingSlash(function ve(k,ne){if(!k||!ne.startsWith(k))return ne;const U=ne.substring(k.length);return""===U||["/",";","?","#"].includes(U[0])?U:ne}(this._basePath,ze(U)))}prepareExternalUrl(U){return U&&"/"!==U[0]&&(U="/"+U),this._locationStrategy.prepareExternalUrl(U)}go(U,ye="",Ye=null){this._locationStrategy.pushState(Ye,"",U,ye),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+dt(ye)),Ye)}replaceState(U,ye="",Ye=null){this._locationStrategy.replaceState(Ye,"",U,ye),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+dt(ye)),Ye)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(U=0){this._locationStrategy.historyGo?.(U)}onUrlChange(U){return this._urlChangeListeners.push(U),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ye=>{this._notifyUrlChangeListeners(ye.url,ye.state)})),()=>{const ye=this._urlChangeListeners.indexOf(U);this._urlChangeListeners.splice(ye,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(U="",ye){this._urlChangeListeners.forEach(Ye=>Ye(U,ye))}subscribe(U,ye,Ye){return this._subject.subscribe({next:U,error:ye,complete:Ye})}}return k.normalizeQueryParams=dt,k.joinWithSlash=lt,k.stripTrailingSlash=it,k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275inject(wt))},k.\u0275prov=c.\u0275\u0275defineInjectable({token:k,factory:function(){return function Ve(){return new He((0,c.\u0275\u0275inject)(wt))}()},providedIn:"root"}),k})();function ze(k){return k.replace(/\/index.html$/,"")}var At=(()=>((At=At||{})[At.Decimal=0]="Decimal",At[At.Percent=1]="Percent",At[At.Currency=2]="Currency",At[At.Scientific=3]="Scientific",At))(),Wt=(()=>((Wt=Wt||{})[Wt.Format=0]="Format",Wt[Wt.Standalone=1]="Standalone",Wt))(),je=(()=>((je=je||{})[je.Narrow=0]="Narrow",je[je.Abbreviated=1]="Abbreviated",je[je.Wide=2]="Wide",je[
1je.Short=3]="Short",je))(),vt=(()=>((vt=vt||{})[vt.Short=0]="Short",vt[vt.Medium=1]="Medium",vt[vt.Long=2]="Long",vt[vt.Full=3]="Full",vt))(),jt=(()=>((jt=jt||{})[jt.Decimal=0]="Decimal",jt[jt.Group=1]="Group",jt[jt.List=2]="List",jt[jt.PercentSign=3]="PercentSign",jt[jt.PlusSign=4]="PlusSign",jt[jt.MinusSign=5]="MinusSign",jt[jt.Exponential=6]="Exponential",jt[jt.SuperscriptingExponent=7]="SuperscriptingExponent",jt[jt.PerMille=8]="PerMille",jt[jt.Infinity=9]="Infinity",jt[jt.NaN=10]="NaN",jt[jt.TimeSeparator=11]="TimeSeparator",jt[jt.CurrencyDecimal=12]="CurrencyDecimal",jt[jt.CurrencyGroup=13]="CurrencyGroup",jt))();function yt(k,ne){return Nt((0,c.\u0275findLocaleData)(k)[c.\u0275LocaleDataIndex.DateFormat],ne)}function ft(k,ne){return Nt((0,c.\u0275findLocaleData)(k)[c.\u0275LocaleDataIndex.TimeFormat],ne)}function $t(k,ne){return Nt((0,c.\u0275findLocaleData)(k)[c.\u0275LocaleDataIndex.DateTimeFormat],ne)}function cn(k,ne){const U=(0,c.\u0275findLocaleData)(k),ye=U[c.\u0275LocaleDataIndex.NumberSymbols][ne];if(typeof ye>"u"){if(ne===jt.CurrencyDecimal)return U[c.\u0275LocaleDataIndex.NumberSymbols][jt.Decimal];if(ne===jt.CurrencyGroup)return U[c.\u0275LocaleDataIndex.NumberSymbols][jt.Group]}return ye}function rn(k){if(!k[c.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${k[c.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Nt(k,ne){for(let U=ne;U>-1;U--)if(typeof k[U]<"u")return k[U];throw new Error("Locale data API: locale data undefined")}function se(k){const[ne,U]=k.split(":");return{hours:+ne,minutes:+U}}const It=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yt={},qt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var dn=(()=>((dn=dn||{})[dn.Short=0]="Short",dn[dn.ShortGMT=1]="ShortGMT",dn[dn.Long=2]="Long",dn[dn.Extended=3]="Extended",dn))(),sn=(()=>((sn=sn||{})[sn.FullYear=0]="FullYear",sn[sn.Month=1]="Month",sn[sn.Date=2]="Date",sn[sn.Hours=3]="Hours",sn[sn.Minutes=4]="Minutes",sn[sn.Seconds=5]="Seconds",sn[sn.FractionalSeconds=6]="FractionalSeconds",sn[sn.Day=7]="Day",sn))(),Xt=(()=>((Xt=Xt||{})[Xt.DayPeriods=0]="DayPeriods",Xt[Xt.Days=1]="Days",Xt[Xt.Months=2]="Months",Xt[Xt.Eras=3]="Eras",Xt))();function Mn(k,ne,U,ye){let Ye=function ht(k){if($e(k))return k;if("number"==typeof k&&!isNaN(k))return new Date(k);if("string"==typeof k){if(k=k.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(k)){const[Ye,Kt=1,fn=1]=k.split("-").map(Un=>+Un);return bn(Ye,Kt-1,fn)}const U=parseFloat(k);if(!isNaN(k-U))return new Date(U);let ye;if(ye=k.match(It))return function an(k){const ne=new Date(0);let U=0,ye=0;const Ye=k[8]?ne.setUTCFullYear:ne.setFullYear,Kt=k[8]?ne.setUTCHours:ne.setHours;k[9]&&(U=Number(k[9]+k[10]),ye=Number(k[9]+k[11])),Ye.call(ne,Number(k[1]),Number(k[2])-1,Number(k[3]));const fn=Number(k[4]||0)-U,Un=Number(k[5]||0)-ye,pi=Number(k[6]||0),$r=Math.floor(1e3*parseFloat("0."+(k[7]||0)));return Kt.call(ne,fn,Un,pi,$r),ne}(ye)}const ne=new Date(k);if(!$e(ne))throw new Error(`Unable to convert "${k}" into a date`);return ne}(k);ne=Dr(U,ne)||ne;let Un,fn=[];for(;ne;){if(Un=qt.exec(ne),!Un){fn.push(ne);break}{fn=fn.concat(Un.slice(1));const Lr=fn.pop();if(!Lr)break;ne=Lr}}let pi=Ye.getTimezoneOffset();ye&&(pi=Fe(ye,pi),Ye=function Et(k,ne,U){const ye=U?-1:1,Ye=k.getTimezoneOffset();return function Ge(k,ne){return(k=new Date(k.getTime())).setMinutes(k.getMinutes()+ne),k}(k,ye*(Fe(ne,Ye)-Ye))}(Ye,ye,!0));let $r="";return fn.forEach(Lr=>{const Hr=function ke(k){if(Ut[k])return Ut[k];let ne;switch(k){case"G":case"GG":case"GGG":ne=ct(Xt.Eras,je.Abbreviated);break;case"GGGG":ne=ct(Xt.Eras,je.Wide);break;case"GGGGG":ne=ct(Xt.Eras,je.Narrow);break;case"y":ne=en(sn.FullYear,1,0,!1,!0);break;case"yy":ne=en(sn.FullYear,2,0,!0,!0);break;case"yyy":ne=en(sn.FullYear,3,0,!1,!0);break;case"yyyy":ne=en(sn.FullYear,4,0,!1,!0);break;case"Y":ne=Ft(1);break;case"YY":ne=Ft(2,!0);break;case"YYY":ne=Ft(3);break;case"YYYY":ne=Ft(4);break;case"M":case"L":ne=en(sn.Month,1,1);break;case"MM":case"LL":ne=en(sn.Month,2,1);break;case"MMM":ne=ct(Xt.Months,je.Abbreviated);break;case"MMMM":ne=ct(Xt.Months,je.Wide);break;case"MMMMM":ne=ct(Xt.Months,je.Narrow);break;case"LLL":ne=ct(Xt.Months,je.Abbreviated,Wt.Standalone);break;case"LLLL":ne=ct(Xt.Months,je.Wide,Wt.Standalone);break;case"LLLLL":ne=ct(Xt.Months,je.Narrow,Wt.Standalone);break;case"w":ne=xe(1);break;case"ww":ne=xe(2);break;case"W":ne=xe(1,!0);break;case"d":ne=en(sn.Date,1);break;case"dd":ne=en(sn.Date,2);break;case"c":case"cc":ne=en(sn.Day,1);break;case"ccc":ne=ct(Xt.Days,je.Abbreviated,Wt.Standalone);break;case"cccc":ne=ct(Xt.Days,je.Wide,Wt.Standalone);break;case"ccccc":ne=ct(Xt.Days,je.Narrow,Wt.Standalone);break;case"cccccc":ne=ct(Xt.Days,je.Short,Wt.Standalone);break;case"E":case"EE":case"EEE":ne=ct(Xt.Days,je.Abbreviated);break;case"EEEE":ne=ct(Xt.Days,je.Wide);break;case"EEEEE":ne=ct(Xt.Days,je.Narrow);break;case"EEEEEE":ne=ct(Xt.Days,je.Short);break;case"a":case"aa":case"aaa":ne=ct(Xt.DayPeriods,je.Abbreviated);break;case"aaaa":ne=ct(Xt.DayPeriods,je.Wide);break;case"aaaaa":ne=ct(Xt.DayPeriods,je.Narrow);break;
vendor: 10,002 bytes, line 1
1case"b":case"bb":case"bbb":ne=ct(Xt.DayPeriods,je.Abbreviated,Wt.Standalone,!0);break;case"bbbb":ne=ct(Xt.DayPeriods,je.Wide,Wt.Standalone,!0);break;case"bbbbb":ne=ct(Xt.DayPeriods,je.Narrow,Wt.Standalone,!0);break;case"B":case"BB":case"BBB":ne=ct(Xt.DayPeriods,je.Abbreviated,Wt.Format,!0);break;case"BBBB":ne=ct(Xt.DayPeriods,je.Wide,Wt.Format,!0);break;case"BBBBB":ne=ct(Xt.DayPeriods,je.Narrow,Wt.Format,!0);break;case"h":ne=en(sn.Hours,1,-12);break;case"hh":ne=en(sn.Hours,2,-12);break;case"H":ne=en(sn.Hours,1);break;case"HH":ne=en(sn.Hours,2);break;case"m":ne=en(sn.Minutes,1);break;case"mm":ne=en(sn.Minutes,2);break;case"s":ne=en(sn.Seconds,1);break;case"ss":ne=en(sn.Seconds,2);break;case"S":ne=en(sn.FractionalSeconds,1);break;case"SS":ne=en(sn.FractionalSeconds,2);break;case"SSS":ne=en(sn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=Q(dn.Short);break;case"ZZZZZ":ne=Q(dn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=Q(dn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=Q(dn.Long);break;default:return null}return Ut[k]=ne,ne}(Lr);$r+=Hr?Hr(Ye,U,pi):"''"===Lr?"'":Lr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),$r}function bn(k,ne,U){const ye=new Date(0);return ye.setFullYear(k,ne,U),ye.setHours(0,0,0),ye}function Dr(k,ne){const U=function Sn(k){return(0,c.\u0275findLocaleData)(k)[c.\u0275LocaleDataIndex.LocaleId]}(k);if(Yt[U]=Yt[U]||{},Yt[U][ne])return Yt[U][ne];let ye="";switch(ne){case"shortDate":ye=yt(k,vt.Short);break;case"mediumDate":ye=yt(k,vt.Medium);break;case"longDate":ye=yt(k,vt.Long);break;case"fullDate":ye=yt(k,vt.Full);break;case"shortTime":ye=ft(k,vt.Short);break;case"mediumTime":ye=ft(k,vt.Medium);break;case"longTime":ye=ft(k,vt.Long);break;case"fullTime":ye=ft(k,vt.Full);break;case"short":const Ye=Dr(k,"shortTime"),Kt=Dr(k,"shortDate");ye=vr($t(k,vt.Short),[Ye,Kt]);break;case"medium":const fn=Dr(k,"mediumTime"),Un=Dr(k,"mediumDate");ye=vr($t(k,vt.Medium),[fn,Un]);break;case"long":const pi=Dr(k,"longTime"),$r=Dr(k,"longDate");ye=vr($t(k,vt.Long),[pi,$r]);break;case"full":const Lr=Dr(k,"fullTime"),Hr=Dr(k,"fullDate");ye=vr($t(k,vt.Full),[Lr,Hr])}return ye&&(Yt[U][ne]=ye),ye}function vr(k,ne){return ne&&(k=k.replace(/\{([^}]+)}/g,function(U,ye){return null!=ne&&ye in ne?ne[ye]:U})),k}function Gn(k,ne,U="-",ye,Ye){let Kt="";(k<0||Ye&&k<=0)&&(Ye?k=1-k:(k=-k,Kt=U));let fn=String(k);for(;fn.length<ne;)fn="0"+fn;return ye&&(fn=fn.slice(fn.length-ne)),Kt+fn}function en(k,ne,U=0,ye=!1,Ye=!1){return function(Kt,fn){let Un=function Se(k,ne){switch(k){case sn.FullYear:return ne.getFullYear();case sn.Month:return ne.getMonth();case sn.Date:return ne.getDate();case sn.Hours:return ne.getHours();case sn.Minutes:return ne.getMinutes();case sn.Seconds:return ne.getSeconds();case sn.FractionalSeconds:return ne.getMilliseconds();case sn.Day:return ne.getDay();default:throw new Error(`Unknown DateType value "${k}".`)}}(k,Kt);if((U>0||Un>-U)&&(Un+=U),k===sn.Hours)0===Un&&-12===U&&(Un=12);else if(k===sn.FractionalSeconds)return function bt(k,ne){return Gn(k,3).substring(0,ne)}(Un,ne);const pi=cn(fn,jt.MinusSign);return Gn(Un,ne,pi,ye,Ye)}}function ct(k,ne,U=Wt.Format,ye=!1){return function(Ye,Kt){return function We(k,ne,U,ye,Ye,Kt){switch(U){case Xt.Months:return function ae(k,ne,U){const ye=(0,c.\u0275findLocaleData)(k),Kt=Nt([ye[c.\u0275LocaleDataIndex.MonthsFormat],ye[c.\u0275LocaleDataIndex.MonthsStandalone]],ne);return Nt(Kt,U)}(ne,Ye,ye)[k.getMonth()];case Xt.Days:return function yn(k,ne,U){const ye=(0,c.\u0275findLocaleData)(k),Kt=Nt([ye[c.\u0275LocaleDataIndex.DaysFormat],ye[c.\u0275LocaleDataIndex.DaysStandalone]],ne);return Nt(Kt,U)}(ne,Ye,ye)[k.getDay()];case Xt.DayPeriods:const fn=k.getHours(),Un=k.getMinutes();if(Kt){const $r=function _n(k){const ne=(0,c.\u0275findLocaleData)(k);return rn(ne),(ne[c.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ye=>"string"==typeof ye?se(ye):[se(ye[0]),se(ye[1])])}(ne),Lr=function xn(k,ne,U){const ye=(0,c.\u0275findLocaleData)(k);rn(ye);const Kt=Nt([ye[c.\u0275LocaleDataIndex.ExtraData][0],ye[c.\u0275LocaleDataIndex.ExtraData][1]],ne)||[];return Nt(Kt,U)||[]}(ne,Ye,ye),Hr=$r.findIndex(on=>{if(Array.isArray(on)){const[or,gi]=on,Gs=fn>=or.hours&&Un>=or.minutes,kn=fn<gi.hours||fn===gi.hours&&Un<gi.minutes;if(or.hours<gi.hours){if(Gs&&kn)return!0}else if(Gs||kn)return!0}else if(on.hours===fn&&on.minutes===Un)return!0;return!1});if(-1!==Hr)return Lr[Hr]}return function St(k,ne,U){const ye=(0,c.\u0275findLocaleData)(k),Kt=Nt([ye[c.\u0275LocaleDataIndex.DayPeriodsFormat],ye[c.\u0275LocaleDataIndex.DayPeriodsStandalone]],ne);return Nt(Kt,U)}(ne,Ye,ye)[fn<12?0:1];case Xt.Eras:return function Ne(k,ne){return Nt((0,c.\u0275findLocaleData)(k)[c.\u0275LocaleDataIndex.Eras],ne)}(ne,ye)[k.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${U}`)}}(Ye,Kt,k,ne,U,ye)}}function Q(k){return function(ne,U,ye){const Ye=-1*ye,Kt=cn(U,jt.MinusSign),fn=Ye>0?Math.floor(Ye/60):Math.ceil(Ye/60);switch(k){case dn.Short:return(Ye>=0?"+":"")+Gn(fn,2,Kt)+Gn(Math.abs(Ye%60),2,Kt);case dn.ShortGMT:return"GMT"+(Ye>=0?"+":"")+Gn(fn,1,Kt);case dn.Long:return"GMT"+(Ye>=0?"+":"")+Gn(fn,2,Kt)+":"+Gn(Math.abs(Ye%60),2,Kt);case dn.Extended:return 0===ye?"Z":(Ye>=0?"+":"")+Gn(fn,2,Kt)+":"+Gn(Math.abs(Ye%60),2,Kt);default:throw new Error(`Unknown zone width "${k}"`)}}}const ue=0,fe=4;function ce(k){return bn(k.getFullYear(),k.getMonth(),k.getDate()+(fe-k.getDay()))}function xe(k,ne=!1){return function(U,ye){let Ye;if(ne){const Kt=new Date(U.getFullYear(),U.getMonth(),1).getDay()-1,fn=U.getDate();Ye=1+Math.floor((fn+Kt)/7)}else{const Kt=ce(U),fn=function X(k){const ne=bn(k,ue,1).getDay();return bn(k,0,1+(ne<=fe?fe:fe+7)-ne)}(Kt.getFullYear()),Un=Kt.getTime()-fn.getTime();Ye=1+Math.round(Un/6048e5)}return Gn(Ye,k,cn(ye,jt.MinusSign))}}function Ft(k,ne=!1){return function(U,ye){return Gn(ce(U).getFullYear(),k,cn(ye,jt.MinusSign),ne)}}const Ut={};function Fe(k,ne){k=k.replace(/:/g,"");const U=Date.parse("Jan 01, 1970 00:00:00 "+k)/6e4;return isNaN(U)?ne:U}function $e(k){return k instanceof Date&&!isNaN(k.valueOf())}const oe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,j=22,$=".",Ie="0",Qe=";",kt=",",Cn="#";function wr(k){const ne=parseInt(k);if(isNaN(ne))throw new Error("Invalid integer literal when parsing "+k);return ne}function Rs(k,ne){ne=encodeURIComponent(ne);for(const U of k.split(";")){const ye=U.indexOf("="),[Ye,Kt]=-1==ye?[U,""]:[U.slice(0,ye),U.slice(ye+1)];if(Ye.trim()===ne)return decodeURIComponent(Kt)}return null}const Si=/\s+/,Tn=[];let pr=(()=>{class k{constructor(U,ye,Ye,Kt){this._iterableDiffers=U,this._keyValueDiffers=ye,this._ngEl=Ye,this._renderer=Kt,this.initialClasses=Tn,this.stateMap=new Map}set klass(U){this.initialClasses=null!=U?U.trim().split(Si):Tn}set ngClass(U){this.rawClass="string"==typeof U?U.trim().split(Si):U}ngDoCheck(){for(const ye of this.initialClasses)this._updateState(ye,!0);const U=this.rawClass;if(Array.isArray(U)||U instanceof Set)for(const ye of U)this._updateState(ye,!0);else if(null!=U)for(const ye of Object.keys(U))this._updateState(ye,Boolean(U[ye]));this._applyStateDiff()}_updateState(U,ye){const Ye=this.stateMap.get(U);void 0!==Ye?(Ye.enabled!==ye&&(Ye.changed=!0,Ye.enabled=ye),Ye.touched=!0):this.stateMap.set(U,{enabled:ye,changed:!0,touched:!0})}_applyStateDiff(){for(const U of this.stateMap){const ye=U[0],Ye=U[1];Ye.changed?(this._toggleClass(ye,Ye.enabled),Ye.changed=!1):Ye.touched||(Ye.enabled&&this._toggleClass(ye,!1),this.stateMap.delete(ye)),Ye.touched=!1}}_toggleClass(U,ye){(U=U.trim()).length>0&&U.split(Si).forEach(Ye=>{ye?this._renderer.addClass(this._ngEl.nativeElement,Ye):this._renderer.removeClass(this._ngEl.nativeElement,Ye)})}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.IterableDiffers),c.\u0275\u0275directiveInject(c.KeyValueDiffers),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.Renderer2))},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),k})();class Zr{constructor(ne,U,ye,Ye){this.$implicit=ne,this.ngForOf=U,this.index=ye,this.count=Ye}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 bi=(()=>{class k{set ngForOf(U){this._ngForOf=U,this._ngForOfDirty=!0}set ngForTrackBy(U){this._trackByFn=U}get ngForTrackBy(){return this._trackByFn}constructor(U,ye,Ye){this._viewContainer=U,this._template=ye,this._differs=Ye,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(U){U&&(this._template=U)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const U=this._ngForOf;!this._differ&&U&&(this._differ=this._differs.find(U).create(this.ngForTrackBy))}if(this._differ){const U=this._differ.diff(this._ngForOf);U&&this._applyChanges(U)}}_applyChanges(U){const ye=this._viewContainer;U.forEachOperation((Ye,Kt,fn)=>{if(null==Ye.previousIndex)ye.createEmbeddedView(this._template,new Zr(Ye.item,this._ngForOf,-1,-1),null===fn?void 0:fn);else if(null==fn)ye.remove(null===Kt?void 0:Kt);else if(null!==Kt){const Un=ye.get(Kt);ye.move(Un,fn),gr(Un,Ye)}});for(let Ye=0,Kt=ye.length;Ye<Kt;Ye++){const Un=ye.get(Ye).context;Un.index=Ye,Un.count=Kt,Un.ngForOf=this._ngForOf}U.forEachIdentityChange(Ye=>{gr(ye.get(Ye.currentIndex),Ye)})}static ngTemplateContextGuard(U,ye){return!0}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.TemplateRef),c.\u0275\u0275directiveInject(c.IterableDiffers))},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),k})();function gr(k,ne){k.context.$implicit=ne.item}let Fi=(()=>{class k{constructor(U,ye){this._viewContainer=U,this._context=new ir,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenView
1Ref=null,this._elseViewRef=null,this._thenTemplateRef=ye}set ngIf(U){this._context.$implicit=this._context.ngIf=U,this._updateView()}set ngIfThen(U){ns("ngIfThen",U),this._thenTemplateRef=U,this._thenViewRef=null,this._updateView()}set ngIfElse(U){ns("ngIfElse",U),this._elseTemplateRef=U,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(U,ye){return!0}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.TemplateRef))},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),k})();class ir{constructor(){this.$implicit=null,this.ngIf=null}}function ns(k,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${k} must be a TemplateRef, but received '${(0,c.\u0275stringify)(ne)}'.`)}class ws{constructor(ne,U){this._viewContainerRef=ne,this._templateRef=U,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ne){ne&&!this._created?this.create():!ne&&this._created&&this.destroy()}}let ds=(()=>{class k{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(U){this._ngSwitch=U,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(U){this._defaultViews.push(U)}_matchCase(U){const ye=U==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ye,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ye}_updateDefaultCases(U){if(this._defaultViews.length>0&&U!==this._defaultUsed){this._defaultUsed=U;for(const ye of this._defaultViews)ye.enforceState(U)}}}return k.\u0275fac=function(U){return new(U||k)},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),k})(),wi=(()=>{class k{constructor(U,ye,Ye){this.ngSwitch=Ye,Ye._addCase(),this._view=new ws(U,ye)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.TemplateRef),c.\u0275\u0275directiveInject(ds,9))},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),k})(),Os=(()=>{class k{constructor(U,ye,Ye){this._ngEl=U,this._differs=ye,this._renderer=Ye,this._ngStyle=null,this._differ=null}set ngStyle(U){this._ngStyle=U,!this._differ&&U&&(this._differ=this._differs.find(U).create())}ngDoCheck(){if(this._differ){const U=this._differ.diff(this._ngStyle);U&&this._applyChanges(U)}}_setStyle(U,ye){const[Ye,Kt]=U.split("."),fn=-1===Ye.indexOf("-")?void 0:c.RendererStyleFlags2.DashCase;null!=ye?this._renderer.setStyle(this._ngEl.nativeElement,Ye,Kt?`${ye}${Kt}`:ye,fn):this._renderer.removeStyle(this._ngEl.nativeElement,Ye,fn)}_applyChanges(U){U.forEachRemovedItem(ye=>this._setStyle(ye.key,null)),U.forEachAddedItem(ye=>this._setStyle(ye.key,ye.currentValue)),U.forEachChangedItem(ye=>this._setStyle(ye.key,ye.currentValue))}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.KeyValueDiffers),c.\u0275\u0275directiveInject(c.Renderer2))},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),k})(),Xr=(()=>
1{class k{constructor(U){this._viewContainerRef=U,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(U){if(U.ngTemplateOutlet||U.ngTemplateOutletInjector){const ye=this._viewContainerRef;if(this._viewRef&&ye.remove(ye.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ye,ngTemplateOutletContext:Kt,ngTemplateOutletInjector:fn}=this;this._viewRef=ye.createEmbeddedView(Ye,Kt,fn?{injector:fn}:void 0)}else this._viewRef=null}else this._viewRef&&U.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.ViewContainerRef))},k.\u0275dir=c.\u0275\u0275defineDirective({type:k,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[c.\u0275\u0275NgOnChangesFeature]}),k})();function Yi(k,ne){return new c.\u0275RuntimeError(2100,!1)}class Cs{createSubscription(ne,U){return ne.subscribe({next:U,error:ye=>{throw ye}})}dispose(ne){ne.unsubscribe()}}class pt{createSubscription(ne,U){return ne.then(U,ye=>{throw ye})}dispose(ne){}}const ut=new pt,Ot=new Cs;let Jt=(()=>{class k{constructor(U){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=U}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(U){return this._obj?U!==this._obj?(this._dispose(),this.transform(U)):this._latestValue:(U&&this._subscribe(U),this._latestValue)}_subscribe(U){this._obj=U,this._strategy=this._selectStrategy(U),this._subscription=this._strategy.createSubscription(U,ye=>this._updateLatestValue(U,ye))}_selectStrategy(U){if((0,c.\u0275isPromise)(U))return ut;if((0,c.\u0275isSubscribable)(U))return Ot;throw Yi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(U,ye){U===this._obj&&(this._latestValue=ye,this._ref.markForCheck())}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef,16))},k.\u0275pipe=c.\u0275\u0275definePipe({name:"async",type:k,pure:!1,standalone:!0}),k})();const Pi=new c.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),ks=new c.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let ri=(()=>{class k{constructor(U,ye,Ye){this.locale=U,this.defaultTimezone=ye,this.defaultOptions=Ye}transform(U,ye,Ye,Kt){if(null==U||""===U||U!=U)return null;try{return Mn(U,ye??this.defaultOptions?.dateFormat??"mediumDate",Kt||this.locale,Ye??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(fn){throw Yi()}}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.LOCALE_ID,16),c.\u0275\u0275directiveInject(Pi,24),c.\u0275\u0275directiveInject(ks,24))},k.\u0275pipe=c.\u0275\u0275definePipe({name:"date",type:k,pure:!0,standalone:!0}),k})(),qo=(()=>{class k{constructor(U){this._locale=U}transform(U,ye,Ye){if(!function Ns(k){return!(null==k||""===k||k!=k)}(U))return null;Ye=Ye||this._locale;try{return function Kn(k,ne,U){return function Rt(k,ne,U,ye,Ye,Kt,fn=!1){let Un="",pi=!1;if(isFinite(k)){let $r=function Pn(k){let ye,Ye,Kt,fn,Un,ne=Math.abs(k)+"",U=0;for((Ye=ne.indexOf($))>-1&&(ne=ne.replace($,"")),(Kt=ne.search(/e/i))>0?(Ye<0&&(Ye=Kt),Ye+=+ne.slice(Kt+1),ne=ne.substring(0,Kt)):Ye<0&&(Ye=ne.length),Kt=0;ne.charAt(Kt)===Ie;Kt++);if(Kt===(Un=ne.length))ye=[0],Ye=1;else{for(Un--;ne.charAt(Un)===Ie;)Un--;for(Ye-=Kt,ye=[],fn=0;Kt<=Un;Kt++,fn++)ye[fn]=Number(ne.charAt(Kt))}return Ye>j&&(ye=ye.splice(0,j-1),U=Ye-1,Ye=1),{digits:ye,exponent:U,integerLen:Ye}}(k);fn&&($r=function Tr(k){if(0===k.digits[0])return k;const ne=k.digits.length-k.integerLen;return k.exponent?k.exponent+=2:(0===ne?k.digits.push(0,0):1===ne&&k.digits.push(0),k.integerLen+=2),k}($r));let Lr=ne.minInt,Hr=ne.minFrac,on=ne.maxFrac;if(Kt){const vs=Kt.match(oe);if(null===vs)throw new Error(`${Kt} is not a valid digit info`);const Rn=vs[1],Ht=vs[3],gn=vs[5];null!=Rn&&(Lr=wr(Rn)),null!=Ht&&(Hr=wr(Ht)),null!=gn?on=wr(gn):null!=Ht&&Hr>on&&(on=Hr)}!function kr(k,ne,U){if(ne>U)throw new Error(`The minimum number of digits after fraction (${ne}) is higher than the maximum (${U}).`);let ye=k.digits,Ye=ye.length-k.integerLen;const Kt=Math.min(Math.max(ne,Ye),U);let fn=Kt+k.integerLen,Un=ye[fn];if(fn>0){ye.splice(Math.max(k.integerLen,fn));for(let Hr=fn;Hr<ye.length;Hr++)ye[Hr]=0}else{Ye=Math.max(0,Ye),k.integerLen=1,ye.length=Math.max(1,fn=Kt+1),ye[0]=0;for(let Hr=1;Hr<fn;Hr++)ye[Hr]=0}if(Un>=5)if(fn-1<0){for(let Hr=0;Hr>fn;Hr--)ye.unshift(0),k.integerLen++;ye.unshift(1),k.integerLen++}else ye[fn-1]++;for(;Ye<Math.max(0,Kt);Ye++)ye.push(0);let pi=0!==Kt;const $r=ne+k.integerLen,Lr=ye.reduceRight(function(Hr,on,or,gi){return gi[or]=(on+=Hr)<10?on:on-10,pi&&(0===gi[or]&&or>=$r?gi.pop():pi=!1),on>=10?1:0},0);Lr&&(ye.unshift(Lr),k.integerLen++)}($r,Hr,on);let or=$r.digits,gi=$r.integerLen;const Gs=$r.exponent;let kn=[];for(pi=or.every(vs=>!vs);gi<Lr;gi++)or.unshift(0);for(;gi<0;gi++)or.unshift(0);gi>0?kn=or.splice(gi,or.length):(kn=or,or=[0]);const Xn=[];for(or.length>=ne.lgSize&&Xn.unshift(or.splice(-ne.lgSize,or.length).join(""));or.length>ne.gSize;)Xn.unshift(or.splice(-ne.gSize,or.length).join(""));or.length&&Xn.unshift(or.join("")),Un=Xn.join(cn(U,ye)),kn.length&&(Un+=cn(U,Ye)+kn.join("")),Gs&&(Un+=cn(U,jt.Exponential)+"+"+Gs)}else Un=cn(U,jt.Infinity);return Un=k<0&&!pi?ne.negPre+Un+ne.negSuf:ne.posPre+Un+ne.posSuf,Un}(k,function Yn(k,ne="-"){const U={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ye=k.split(Qe),Ye=ye[0],Kt=ye[1],fn=-1!==Ye.indexOf($)?Ye.split($):[Ye.substring(0,Ye.lastIndexOf(Ie)+1),Ye.substring(Ye.lastIndexOf(Ie)+1)],Un=fn[0],pi=fn[1]||"";U.posPre=Un.substring(0,Un.indexOf(Cn));for(let Lr=0;Lr<pi.length;Lr++){const Hr=pi.charAt(Lr);Hr===Ie?U.minFrac=U.maxFrac=Lr+1:Hr===Cn?U.maxFrac=Lr+1:U.posSuf+=Hr}const $r=Un.split(kt);if(U.gSize=$r[1]?$r[1].length:0,U.lgSize=$r[2]||$r[1]?($r[2]||$r[1]).length:0,Kt){const Lr=Ye.length-U.posPre.length-U.posSuf.length,Hr=Kt.indexOf(Cn);U.negPre=Kt.substring(0,Hr).replace(/'/g,""),U.negSuf=Kt.slice(Hr+Lr).replace(/'/g,"")}else U.negPre=ne+U.posPre,U.negSuf=U.posSuf;return U}(function tr(k,ne){return(0,c.\u0275findLocaleData)(k)[c.\u0275LocaleDataIndex.NumberFormats][ne]}(ne,At.Decimal),cn(ne,jt.MinusSign)),ne,jt.Group,jt.Decimal,U)}(function gs(k){if("string"==typeof k&&!isNaN(Number(k)-parseFloat(k)))return Number(k);if("number"!=typeof k)throw new Error(`${k} is not a number`);return k}(U),Ye,ye)}catch(Kt){throw Yi()}}}return k.\u0275fac=function(U){return new(U||k)(c.\u0275\u0275directiveInject(c.LOCALE_ID,16))},k.\u0275pipe=c.\u0275\u0275definePipe({name:"number",type:k,pure:!0,standalone:!0}),k})();let rs=(()=>{class k{}return k.\u0275fac=function(U){return new(U||k)},k.\u0275mod=c.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=c.\u0275\u0275defineInjector({}),k})();const lo="browser",Ho="server";function Yo(k){return k===lo}function hs(k){return k===Ho}let So=(()=>{class k{}return k.\u0275prov=(0,c.\u0275\u0275defineInjectable)({token:k,providedIn:"root",factory:()=>new Wi((0,c.\u0275\u0275inject)(me),window)}),k})();class Wi{constructor(ne,U){this.document=ne,this.window=U,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ne){this.supportsScrolling()&&this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){if(!this.supportsScrolling())return;const U=function xi(k,ne){const U=k.getElementById(ne)||k.getElementsByName(ne)[0];if(U)return U;if("function"==typeof k.createTreeWalker&&k.body&&(k.body.createShadowRoot||k.body.attachShadow)){const ye=k.createTreeWalker(k.body,NodeFilter.SHOW_ELEMENT);let Ye=ye.currentNode;for(;Ye;){const Kt=Ye.shadowRoot;if(Kt){const fn=Kt.getElementById(ne)||Kt.querySelector(`[name="${ne}"]`);if(fn)return fn}Ye=ye.nextNode()}}return null}(this.document,ne);U&&(this.scrollToElement(U),U.focus())}setHistoryScrollRestoration(ne){if(this.supportScrollRestoration()){const U=this.window.history;U&&U.scrollRestoration&&(U.scrollRestoration=ne)}}scrollToElement(ne){const U=ne.getBoundingClientRect(),ye=U.left+this.window.pageXOffset,Ye=U.top+this.window.pageYOffset,Kt=this.offset();this.window.scrollTo(ye-Kt[0],Ye-Kt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ne=vo(this.window.history)||vo(Object.getPrototypeOf(this.window.history));return!(!ne||!ne.writable&&!ne.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function vo(k){return Object.getOwnPropertyDescriptor(k,"scrollRestoration")}class Ao{}},529:(ln,et,C)=>{"use strict";C.d(et,{JF:()=>Q,WM:()=>q,eN:()=>Sn});var c=C(6895),m=C(4650),V=C(9646),_e=C(9751),pe=C(4351),me=C(9300),Oe=C(4004);class ie{}class Re{}class q{constructor(ce){this.normalizedNames=new Map,this.lazyUpdate=null,ce?this.lazyInit="string"==typeof ce?()=>{this.headers=new Map,ce.split("\n").forEach(xe=>{const Ft=xe.indexOf(":");if(Ft>0){const Ut=xe.slice(0,Ft),ke=Ut.toLowerCase(),Fe=xe.slice(Ft+1).trim();this.maybeSetNormalizedName(Ut,ke),this.headers.has(ke)?this.headers.get(ke).push(Fe):this.headers.set(ke,[Fe])}})}:()=>{this.headers=new Map,Object.entries(ce).forEach(([xe,Ft])=>{let Ut;if(Ut="string"==typeof Ft?[Ft]:"number"==typeof Ft?[Ft.toString()]:Ft.map(ke=>ke.toString()),Ut.length>0){const ke=xe.toLowerCase();this.headers.set(ke,Ut),this.maybeSetNormalizedName(xe,ke)}})}:this.headers=new Map}has(ce){return this.init(),this.headers.has(ce.toLowerCase())}get(ce){this.init();const xe=this.headers.get(ce.toLowerCase());return xe&&xe.length>0?xe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ce){return this.init(),this.headers.get(ce.toLowerCase())||null}append(ce,xe){return this.clone({name:ce,value:xe,op:"a"})}set(ce,xe){return this.clone({name:ce,value:xe,op:"s"})}delete(ce,xe){return this.clone({name:ce,value:xe,op:"d"})}maybeSetNormalizedName(ce,xe){this.normalizedNames.has(xe)||this.normalizedNames.set(xe,ce)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ce=>this.applyUpdate(ce)),this.lazyUpdate=null))}
vendor: 7,729 bytes, line 1
1copyFrom(ce){ce.init(),Array.from(ce.headers.keys()).forEach(xe=>{this.headers.set(xe,ce.headers.get(xe)),this.normalizedNames.set(xe,ce.normalizedNames.get(xe))})}clone(ce){const xe=new q;return xe.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,xe.lazyUpdate=(this.lazyUpdate||[]).concat([ce]),xe}applyUpdate(ce){const xe=ce.name.toLowerCase();switch(ce.op){case"a":case"s":let Ft=ce.value;if("string"==typeof Ft&&(Ft=[Ft]),0===Ft.length)return;this.maybeSetNormalizedName(ce.name,xe);const Ut=("a"===ce.op?this.headers.get(xe):void 0)||[];Ut.push(...Ft),this.headers.set(xe,Ut);break;case"d":const ke=ce.value;if(ke){let Fe=this.headers.get(xe);if(!Fe)return;Fe=Fe.filter(Ge=>-1===ke.indexOf(Ge)),0===Fe.length?(this.headers.delete(xe),this.normalizedNames.delete(xe)):this.headers.set(xe,Fe)}else this.headers.delete(xe),this.normalizedNames.delete(xe)}}forEach(ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(xe=>ce(this.normalizedNames.get(xe),this.headers.get(xe)))}}class be{encodeKey(ce){return wt(ce)}encodeValue(ce){return wt(ce)}decodeKey(ce){return decodeURIComponent(ce)}decodeValue(ce){return decodeURIComponent(ce)}}const it=/%(\d[a-f0-9])/gi,dt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wt(X){return encodeURIComponent(X).replace(it,(ce,xe)=>dt[xe]??ce)}function Me(X){return`${X}`}class Pe{constructor(ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ce.encoder||new be,ce.fromString){if(ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function lt(X,ce){const xe=new Map;return X.length>0&&X.replace(/^\?/,"").split("&").forEach(Ut=>{const ke=Ut.indexOf("="),[Fe,Ge]=-1==ke?[ce.decodeKey(Ut),""]:[ce.decodeKey(Ut.slice(0,ke)),ce.decodeValue(Ut.slice(ke+1))],Et=xe.get(Fe)||[];Et.push(Ge),xe.set(Fe,Et)}),xe}(ce.fromString,this.encoder)}else ce.fromObject?(this.map=new Map,Object.keys(ce.fromObject).forEach(xe=>{const Ft=ce.fromObject[xe],Ut=Array.isArray(Ft)?Ft.map(Me):[Me(Ft)];this.map.set(xe,Ut)})):this.map=null}has(ce){return this.init(),this.map.has(ce)}get(ce){this.init();const xe=this.map.get(ce);return xe?xe[0]:null}getAll(ce){return this.init(),this.map.get(ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ce,xe){return this.clone({param:ce,value:xe,op:"a"})}appendAll(ce){const xe=[];return Object.keys(ce).forEach(Ft=>{const Ut=ce[Ft];Array.isArray(Ut)?Ut.forEach(ke=>{xe.push({param:Ft,value:ke,op:"a"})}):xe.push({param:Ft,value:Ut,op:"a"})}),this.clone(xe)}set(ce,xe){return this.clone({param:ce,value:xe,op:"s"})}delete(ce,xe){return this.clone({param:ce,value:xe,op:"d"})}toString(){return this.init(),this.keys().map(ce=>{const xe=this.encoder.encodeKey(ce);return this.map.get(ce).map(Ft=>xe+"="+this.encoder.encodeValue(Ft)).join("&")}).filter(ce=>""!==ce).join("&")}clone(ce){const xe=new Pe({encoder:this.encoder});return xe.cloneFrom=this.cloneFrom||this,xe.updates=(this.updates||[]).concat(ce),xe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ce=>this.map.set(ce,this.cloneFrom.map.get(ce))),this.updates.forEach(ce=>{switch(ce.op){case"a":case"s":const xe=("a"===ce.op?this.map.get(ce.param):void 0)||[];xe.push(Me(ce.value)),this.map.set(ce.param,xe);break;case"d":if(void 0===ce.value){this.map.delete(ce.param);break}{let Ft=this.map.get(ce.param)||[];const Ut=Ft.indexOf(Me(ce.value));-1!==Ut&&Ft.splice(Ut,1),Ft.length>0?this.map.set(ce.param,Ft):this.map.delete(ce.param)}}}),this.cloneFrom=this.updates=null)}}class He{constructor(){this.map=new Map}set(ce,xe){return this.map.set(ce,xe),this}get(ce){return this.map.has(ce)||this.map.set(ce,ce.defaultValue()),this.map.get(ce)}delete(ce){return this.map.delete(ce),this}has(ce){return this.map.has(ce)}keys(){return this.map.keys()}}function ve(X){return typeof ArrayBuffer<"u"&&X instanceof ArrayBuffer}function ze(X){return typeof Blob<"u"&&X instanceof Blob}function rt(X){return typeof FormData<"u"&&X instanceof FormData}class At{constructor(ce,xe,Ft,Ut){let ke;if(this.url=xe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ce.toUpperCase(),function Ve(X){switch(X){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ut?(this.body=void 0!==Ft?Ft:null,ke=Ut):ke=Ft,ke&&(this.reportProgress=!!ke.reportProgress,this.withCredentials=!!ke.withCredentials,ke.responseType&&(this.responseType=ke.responseType),ke.headers&&(this.headers=ke.headers),ke.context&&(this.context=ke.context),ke.params&&(this.params=ke.params)),this.headers||(this.headers=new q),this.context||(this.context=new He),this.params){const Fe=this.params.toString();if(0===Fe.length)this.urlWithParams=xe;else{const Ge=xe.indexOf("?");this.urlWithParams=xe+(-1===Ge?"?":Ge<xe.length-1?"&":"")+Fe}}else this.params=new Pe,this.urlWithParams=xe}serializeBody(){return null===this.body?null:ve(this.body)||ze(this.body)||rt(this.body)||function nt(X){return typeof URLSearchParams<"u"&&X instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Pe?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||rt(this.body)?null:ze(this.body)?this.body.type||null:ve(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Pe?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ce={}){const xe=ce.method||this.method,Ft=ce.url||this.url,Ut=ce.responseType||this.responseType,ke=void 0!==ce.body?ce.body:this.body,Fe=void 0!==ce.withCredentials?ce.withCredentials:this.withCredentials,Ge=void 0!==ce.reportProgress?ce.reportProgress:this.reportProgress;let Et=ce.headers||this.headers,ht=ce.params||this.params;const an=ce.context??this.context;return void 0!==ce.setHeaders&&(Et=Object.keys(ce.setHeaders).reduce(($e,oe)=>$e.set(oe,ce.setHeaders[oe]),Et)),ce.setParams&&(ht=Object.keys(ce.setParams).reduce(($e,oe)=>$e.set(oe,ce.setParams[oe]),ht)),new At(xe,Ft,ke,{params:ht,headers:Et,context:an,reportProgress:Ge,responseType:Ut,withCredentials:Fe})}}var Ue=(()=>((Ue=Ue||{})[Ue.Sent=0]="Sent",Ue[Ue.UploadProgress=1]="UploadProgress",Ue[Ue.ResponseHeader=2]="ResponseHeader",Ue[Ue.DownloadProgress=3]="DownloadProgress",Ue[Ue.Response=4]="Response",Ue[Ue.User=5]="User",Ue))();class Wt{constructor(ce,xe=200,Ft="OK"){this.headers=ce.headers||new q,this.status=void 0!==ce.status?ce.status:xe,this.statusText=ce.statusText||Ft,this.url=ce.url||null,this.ok=this.status>=200&&this.status<300}}class je extends Wt{constructor(ce={}){super(ce),this.type=Ue.ResponseHeader}clone(ce={}){return new je({headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class vt extends Wt{constructor(ce={}){super(ce),this.type=Ue.Response,this.body=void 0!==ce.body?ce.body:null}clone(ce={}){return new vt({body:void 0!==ce.body?ce.body:this.body,headers:ce.headers||this.headers,status:void 0!==ce.status?ce.status:this.status,statusText:ce.statusText||this.statusText,url:ce.url||this.url||void 0})}}class jt extends Wt{constructor(ce){super(ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ce.url||"(unknown url)"}`:`Http failure response for ${ce.url||"(unknown url)"}: ${ce.status} ${ce.statusText}`,this.error=ce.error||null}}
1function On(X,ce){return{body:ce,headers:X.headers,context:X.context,observe:X.observe,params:X.params,reportProgress:X.reportProgress,responseType:X.responseType,withCredentials:X.withCredentials}}let Sn=(()=>{class X{constructor(xe){this.handler=xe}request(xe,Ft,Ut={}){let ke;if(xe instanceof At)ke=xe;else{let Et,ht;Et=Ut.headers instanceof q?Ut.headers:new q(Ut.headers),Ut.params&&(ht=Ut.params instanceof Pe?Ut.params:new Pe({fromObject:Ut.params})),ke=new At(xe,Ft,void 0!==Ut.body?Ut.body:null,{headers:Et,context:Ut.context,params:ht,reportProgress:Ut.reportProgress,responseType:Ut.responseType||"json",withCredentials:Ut.withCredentials})}const Fe=(0,V.of)(ke).pipe((0,pe.b)(Et=>this.handler.handle(Et)));if(xe instanceof At||"events"===Ut.observe)return Fe;const Ge=Fe.pipe((0,me.h)(Et=>Et instanceof vt));switch(Ut.observe||"body"){case"body":switch(ke.responseType){case"arraybuffer":return Ge.pipe((0,Oe.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return Ge.pipe((0,Oe.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return Ge.pipe((0,Oe.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));default:return Ge.pipe((0,Oe.U)(Et=>Et.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${Ut.observe}}`)}}delete(xe,Ft={}){return this.request("DELETE",xe,Ft)}get(xe,Ft={}){return this.request("GET",xe,Ft)}head(xe,Ft={}){return this.request("HEAD",xe,Ft)}jsonp(xe,Ft){return this.request("JSONP",xe,{params:(new Pe).append(Ft,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(xe,Ft={}){return this.request("OPTIONS",xe,Ft)}patch(xe,Ft,Ut={}){return this.request("PATCH",xe,On(Ut,Ft))}post(xe,Ft,Ut={}){return this.request("POST",xe,On(Ut,Ft))}put(xe,Ft,Ut={}){return this.request("PUT",xe,On(Ut,Ft))}}return X.\u0275fac=function(xe){return new(xe||X)(m.\u0275\u0275inject(ie))},X.\u0275prov=m.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();function St(X,ce){return ce(X)}function yn(X,ce){return(xe,Ft)=>ce.intercept(xe,{handle:Ut=>X(Ut,Ft)})}const Ne=new m.InjectionToken("HTTP_INTERCEPTORS"),Xe=new m.InjectionToken("HTTP_INTERCEPTOR_FNS");function qe(){let X=null;return(ce,xe)=>(null===X&&(X=((0,m.inject)(Ne,{optional:!0})??[]).reduceRight(yn,St)),X(ce,xe))}let yt=(()=>{class X extends ie{constructor(xe,Ft){super(),this.backend=xe,this.injector=Ft,this.chain=null}handle(xe){if(null===this.chain){const Ft=Array.from(new Set(this.injector.get(Xe)));this.chain=Ft.reduceRight((Ut,ke)=>function ae(X,ce,xe){return(Ft,Ut)=>xe.runInContext(()=>ce(Ft,ke=>X(ke,Ut)))}(Ut,ke,this.injector),St)}return this.chain(xe,Ft=>this.backend.handle(Ft))}}return X.\u0275fac=function(xe){return new(xe||X)(m.\u0275\u0275inject(Re),m.\u0275\u0275inject(m.EnvironmentInjector))},X.\u0275prov=m.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();const xn=/^\)\]\}',?\n/;let Nt=(()=>{class X{constructor(xe){this.xhrFactory=xe}handle(xe){if("JSONP"===xe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _e.y(Ft=>{const Ut=this.xhrFactory.build();if(Ut.open(xe.method,xe.urlWithParams),xe.withCredentials&&(Ut.withCredentials=!0),xe.headers.forEach((j,$)=>Ut.setRequestHeader(j,$.join(","))),xe.headers.has("Accept")||Ut.setRequestHeader("Accept","application/json, text/plain, */*"),!xe.headers.has("Content-Type")){const j=xe.detectContentTypeHeader();null!==j&&Ut.setRequestHeader("Content-Type",j)}if(xe.responseType){const j=xe.responseType.toLowerCase();Ut.responseType="json"!==j?j:"text"}const ke=xe.serializeBody();let Fe=null;const Ge=()=>{if(null!==Fe)return Fe;const j=Ut.statusText||"OK",$=new q(Ut.getAllResponseHeaders()),Ie=function Mt(X){return"responseURL"in X&&X.responseURL?X.responseURL:/^X-Request-URL:/m.test(X.getAllResponseHeaders())?X.getResponseHeader("X-Request-URL"):null}(Ut)||xe.url;return Fe=new je({headers:$,status:Ut.status,statusText:j,url:Ie}),Fe},Et=()=>{let{headers:j,status:$,statusText:Ie,url:Qe}=Ge(),kt=null;204!==$&&(kt=typeof Ut.response>"u"?Ut.responseText:Ut.response),0===$&&($=kt?200:0);let Cn=$>=200&&$<300;if("json"===xe.responseType&&"string"==typeof kt){const nr=kt;kt=kt.replace(xn,"");try{kt=""!==kt?JSON.parse(kt):null}catch(Rr){kt=nr,Cn&&(Cn=!1,kt={error:Rr,text:kt})}}Cn?(Ft.next(new vt({body:kt,headers:j,status:$,statusText:Ie,url:Qe||void 0})),Ft.complete()):Ft.error(new jt({error:kt,headers:j,status:$,statusText:Ie,url:Qe||void 0}))},ht=j=>{const{url:$}=Ge(),Ie=new jt({error:j,status:Ut.status||0,statusText:Ut.statusText||"Unknown Error",url:$||void 0});Ft.error(Ie)};let an=!1;const $e=j=>
1{an||(Ft.next(Ge()),an=!0);let $={type:Ue.DownloadProgress,loaded:j.loaded};j.lengthComputable&&($.total=j.total),"text"===xe.responseType&&Ut.responseText&&($.partialText=Ut.responseText),Ft.next($)},oe=j=>{let $={type:Ue.UploadProgress,loaded:j.loaded};j.lengthComputable&&($.total=j.total),Ft.next($)};return Ut.addEventListener("load",Et),Ut.addEventListener("error",ht),Ut.addEventListener("timeout",ht),Ut.addEventListener("abort",ht),xe.reportProgress&&(Ut.addEventListener("progress",$e),null!==ke&&Ut.upload&&Ut.upload.addEventListener("progress",oe)),Ut.send(ke),Ft.next({type:Ue.Sent}),()=>{Ut.removeEventListener("error",ht),Ut.removeEventListener("abort",ht),Ut.removeEventListener("load",Et),Ut.removeEventListener("timeout",ht),xe.reportProgress&&(Ut.removeEventListener("progress",$e),null!==ke&&Ut.upload&&Ut.upload.removeEventListener("progress",oe)),Ut.readyState!==Ut.DONE&&Ut.abort()}})}}return X.\u0275fac=function(xe){return new(xe||X)(m.\u0275\u0275inject(c.JF))},X.\u0275prov=m.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();const se=new m.InjectionToken("XSRF_ENABLED"),Te=new m.InjectionToken("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),It=new m.InjectionToken("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Yt{}let qt=(()=>{class X{constructor(xe,Ft,Ut){this.doc=xe,this.platform=Ft,this.cookieName=Ut,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const xe=this.doc.cookie||"";return xe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(xe,this.cookieName),this.lastCookieString=xe),this.lastToken}}return X.\u0275fac=function(xe){return new(xe||X)(m.\u0275\u0275inject(c.K0),m.\u0275\u0275inject(m.PLATFORM_ID),m.\u0275\u0275inject(Te))},X.\u0275prov=m.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})();function dn(X,ce){const xe=X.url.toLowerCase();if(!(0,m.inject)(se)||"GET"===X.method||"HEAD"===X.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce(X);const Ft=(0,m.inject)(Yt).getToken(),Ut=(0,m.inject)(It);return null!=Ft&&!X.headers.has(Ut)&&(X=X.clone({headers:X.headers.set(Ut,Ft)})),ce(X)}var Xt=(()=>((Xt=Xt||{})[Xt.Interceptors=0]="Interceptors",Xt[Xt.LegacyInterceptors=1]="LegacyInterceptors",Xt[Xt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Xt[Xt.NoXsrfProtection=3]="NoXsrfProtection",Xt[Xt.JsonpSupport=4]="JsonpSupport",Xt[Xt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Xt))();function Mn(X,ce){return{\u0275kind:X,\u0275providers:ce}}function bn(...X){const ce=[Sn,Nt,yt,{provide:ie,useExisting:yt},{provide:Re,useExisting:Nt},{provide:Xe,useValue:dn,multi:!0},{provide:se,useValue:!0},{provide:Yt,useClass:qt}];for(const xe of X)ce.push(...xe.\u0275providers);return(0,m.makeEnvironmentProviders)(ce)}const vr=new m.InjectionToken("LEGACY_INTERCEPTOR_FN");let Q=(()=>{class X{}return X.\u0275fac=function(xe){return new(xe||X)},X.\u0275mod=m.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=m.\u0275\u0275defineInjector({providers:[bn(Mn(Xt.LegacyInterceptors,[{provide:vr,useFactory:qe},{provide:Xe,useExisting:vr,multi:!0}]))]}),X})()},4650:(ln,et,C)=>{"use strict";C.r(et),C.d(et,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Rc,ANIMATION_MODULE_TYPE:()=>yw,APP_BOOTSTRAP_LISTENER:()=>z0,APP_ID:()=>R0,APP_INITIALIZER:()=>M0,ApplicationInitStatus:()=>Hy,ApplicationModule:()=>oC,ApplicationRef:()=>Ky,Attribute:()=>Ka,COMPILER_OPTIONS:()=>k0,CUSTOM_ELEMENTS_SCHEMA:()=>ya,ChangeDetectionStrategy:()=>Ge,ChangeDetectorRef:()=>ib,Compiler:()=>Cw,CompilerFactory:()=>Iw,Component:()=>aw,ComponentFactory:()=>Gc,ComponentFactoryResolver:()=>yh,ComponentRef:()=>mh,ContentChild:()=>N,ContentChildren:()=>b,DEFAULT_CURRENCY_CODE:()=>Ew,DebugElement:()=>um,DebugEventListener:()=>zw,DebugNode:()=>Wv,DefaultIterableDiffer:()=>ub,Directive:()=>A0,ENVIRONMENT_INITIALIZER:()=>Nu,ElementRef:()=>Fl,EmbeddedViewRef:()=>Hw,EnvironmentInjector:()=>il,ErrorHandler:()=>qc,EventEmitter:()=>gu,Host:()=>Vo,HostBinding:()=>dw,HostListener:()=>hw,INJECTOR:()=>gh,Inject:()=>ei,InjectFlags:()=>se,Injectable:()=>Xp,InjectionToken:()=>Yr,Injector:()=>Jc,Input:()=>cw,IterableDiffers:()=>Yv,KeyValueDiffers:()=>Qv,LOCALE_ID:()=>zy,MissingTranslationStrategy:()=>mu,ModuleWithComponentFactories:()=>
1x0,NO_ERRORS_SCHEMA:()=>Il,NgModule:()=>fw,NgModuleFactory:()=>mE,NgModuleRef:()=>Mp,NgProbeToken:()=>xw,NgZone:()=>cc,Optional:()=>ls,Output:()=>uw,PACKAGE_ROOT_URL:()=>mw,PLATFORM_ID:()=>gw,PLATFORM_INITIALIZER:()=>P0,Pipe:()=>lw,PlatformRef:()=>zv,Query:()=>_,QueryList:()=>Vy,ReflectiveInjector:()=>$u,ReflectiveKey:()=>_l,Renderer2:()=>Xy,RendererFactory2:()=>Hp,RendererStyleFlags2:()=>_a,ResolvedReflectiveFactory:()=>rg,Sanitizer:()=>bm,SecurityContext:()=>ti,Self:()=>po,SimpleChange:()=>Is,SkipSelf:()=>Ys,TRANSLATIONS:()=>bw,TRANSLATIONS_FORMAT:()=>ww,TemplateRef:()=>lm,Testability:()=>Pw,TestabilityRegistry:()=>$0,Type:()=>Fn,VERSION:()=>Pf,Version:()=>Of,ViewChild:()=>Ee,ViewChildren:()=>re,ViewContainerRef:()=>jy,ViewEncapsulation:()=>Et,ViewRef:()=>ob,asNativeElements:()=>Ww,assertPlatform:()=>Y0,createComponent:()=>yC,createEnvironmentInjector:()=>Ev,createNgModule:()=>yE,createNgModuleRef:()=>bb,createPlatform:()=>G0,createPlatformFactory:()=>q0,defineInjectable:()=>tr,destroyPlatform:()=>Fw,enableProdMode:()=>Uw,forwardRef:()=>de,getDebugNode:()=>Op,getModuleFactory:()=>jw,getNgModuleById:()=>Bw,getPlatform:()=>Wy,importProvidersFrom:()=>Lp,inject:()=>fe,isDevMode:()=>Vw,isStandalone:()=>_i,makeEnvironmentProviders:()=>Fp,platformCore:()=>sC,reflectComponentType:()=>_C,resolveForwardRef:()=>be,setTestabilityGetter:()=>H0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>$v,\u0275APP_ID_RANDOM_PROVIDER:()=>pw,\u0275ComponentFactory:()=>Gc,\u0275Console:()=>_w,\u0275DEFAULT_LOCALE_ID:()=>oc,\u0275INJECTOR_SCOPE:()=>Sf,\u0275LContext:()=>F,\u0275LifecycleHooksFeature:()=>tp,\u0275LocaleDataIndex:()=>Br,\u0275NG_COMP_DEF:()=>$e,\u0275NG_DIR_DEF:()=>oe,\u0275NG_ELEMENT_ID:()=>Qe,\u0275NG_INJ_DEF:()=>xn,\u0275NG_MOD_DEF:()=>$,\u0275NG_PIPE_DEF:()=>j,\u0275NG_PROV_DEF:()=>_n,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>_h,\u0275NO_CHANGE:()=>Qr,\u0275NgModuleFactory:()=>Ly,\u0275NoopNgZone:()=>U0,\u0275ReflectionCapabilities:()=>Zn,\u0275Render3ComponentFactory:()=>ru,\u0275Render3ComponentRef:()=>Wu,\u0275Render3NgModuleRef:()=>vv,\u0275RuntimeError:()=>Me,\u0275TESTABILITY:()=>j0,\u0275TESTABILITY_GETTER:()=>B0,\u0275ViewRef:()=>zu,\u0275XSS_SECURITY_URL:()=>wt,\u0275_sanitizeHtml:()=>jo,\u0275_sanitizeUrl:()=>Bc,\u0275allowSanitizationBypassAndThrow:()=>xl,\u0275bypassSanitizationTrustHtml:()=>dh,\u0275bypassSanitizationTrustResourceUrl:()=>$s,\u0275bypassSanitizationTrustScript:()=>Cf,\u0275bypassSanitizationTrustStyle:()=>hh,\u0275bypassSanitizationTrustUrl:()=>ba,\u0275clearResolutionOfComponentResourcesQueue:()=>hc,\u0275coerceToBoolean:()=>aC,\u0275compileComponent:()=>m0,\u0275compileDirective:()=>Fv,\u0275compileNgModule:()=>u0,\u0275compileNgModuleDefs:()=>d0,\u0275compileNgModuleFactory:()=>W0,\u0275compilePipe:()=>T0,\u0275convertToBitFlags:()=>X,\u0275createInjector:()=>Po,\u0275defaultIterableDiffers:()=>rC,\u0275defaultKeyValueDiffers:()=>iC,\u0275detectChanges:()=>ip,\u0275devModeEqual:()=>Zm,\u0275findLocaleData:()=>wy,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>l0,\u0275formatRuntimeError:()=>Pe,\u0275getDebugNode:()=>Op,\u0275getDebugNodeR2:()=>qw,\u0275getDirectives:()=>CE,\u0275getHostElement:()=>wv,\u0275getInjectableDef:()=>Wn,\u0275getLContext:()=>J,\u0275getLocaleCurrencyCode:()=>rm,\u0275getLocalePluralCase:()=>Cy,\u0275getSanitizationBypassType:()=>yd,\u0275getUnknownElementStrictMode:()=>Dl,\u0275getUnknownPropertyStrictMode:()=>el,\u0275global:()=>qt,\u0275injectChangeDetectorRef:()=>sb,\u0275internalCreateApplication:()=>Nw,\u0275isBoundToModule:()=>K0,\u0275isEnvironmentProviders:()=>it,\u0275isInjectable:()=>qn,\u0275isNgModule:()=>Rv,\u0275isObservable:()=>jd,\u0275isPromise:()=>zh,\u0275isSubscribable:()=>Qm,\u0275makeDecorator:()=>Bs,\u0275noSideEffects:()=>Fe,\u0275patchComponentDefWithScope:()=>kv,\u0275publishDefaultGlobalUtils:()=>Tw,\u0275publishGlobalUtil:()=>lc,\u0275registerLocaleData:()=>oE,\u0275resetCompiledComponents:()=>qb,\u0275resetJitOptions:()=>Kb,\u0275resolveComponentResources:()=>Xs,\u0275setAllowDuplicateNgModuleIdsForTest:()=>Oa,\u0275setClassMetadata:()=>DE,\u0275setCurrentInjector:()=>ct,\u0275setDocument:()=>bs,\u0275setLocaleId:()=>wp,\u0275setUnknownElementStrictMode:()=>Ko,\u0275setUnknownPropertyStrictMode:()=>pc,\u0275store:()=>qm,\u0275stringify:()=>ie,\u0275transitiveScopesFor:()=>ff,\u0275unregisterLocaleData:()=>G_,\u0275unwrapSafeValue:()=>eo,\u0275\u0275CopyDefinitionFeature:()=>Ig,\u0275\u0275FactoryTarget:()=>Ze,\u0275\u0275HostDirectivesFeature:()=>Dg,\u0275\u0275InheritDefinitionFeature:()=>wg,\u0275\u0275NgOnChangesFeature:()=>co,\u0275\u0275ProvidersFeature:()=>gE,\u0275\u0275StandaloneFeature:()=>_E,\u0275\u0275advance:()=>Am,\u0275\u0275attribute:()=>Ag,\u0275\u0275attributeInterpolate1:()=>Lh,\u0275\u0275attributeInterpolate2:()=>Mg,\u0275\u0275attributeInterpolate3:()=>Vh,\u0275\u0275attributeInterpolate4:()=>Ul,\u0275\u0275attributeInterpolate5:()=>Uh,\u0275\u0275attributeInterpolate6:()=>Rg,\u0275\u0275attributeInterpolate7:()=>jh,\u0275\u0275attributeInterpolate8:()=>Og,\u0275\u0275attributeInterpolateV:()=>Pg,\u0275\u0275classMap:()=>dy,\u0275\u0275classMapInterpolate1:()=>Yg,\u0275\u0275classMapInterpolate2:()=>ef,\u0275\u0275classMapInterpolate3:()=>_y,\u0275\u0275classMapInterpolate4:()=>du,\u0275\u0275classMapInterpolate5:()=>tf,\u0275\u0275classMapInterpolate6:()=>Kd,\u0275\u0275classMapInterpolate7:()=>Qg,\u0275\u0275classMapInterpolate8:()=>pp,\u0275\u0275classMapInterpolateV:()=>vy,\u0275\u0275classProp:()=>zg,\u0275\u0275contentQuery:()=>e0,\u0275\u0275defineComponent:()=>Cn,\u0275\u0275defineDirective:()=>Yn,\u0275\u0275defineInjectable:()=>cn,\u0275\u0275defineInjector:()=>wn,\u0275\u0275defineNgModule:()=>xt,\u0275\u0275definePipe:()=>Tr,\u0275\u0275directiveInject:()=>Id,\u0275\u0275disableBindings:()=>En,\u0275\u0275element:()=>kg,\u0275\u0275elementContainer:()=>Hh,\u0275\u0275elementContainerEnd:()=>ap,\u0275\u0275elementContainerStart:()=>Ud,\u0275\u0275elementEnd:()=>$h,\u0275\u0275elementStart:()=>Vd,\u0275\u0275enableBindings:()=>Qt,\u0275\u0275getCurrentView:()=>
vendor: 4,870 bytes, line 1
1lp,\u0275\u0275getInheritedFactory:()=>ga,\u0275\u0275hostProperty:()=>nf,\u0275\u0275i18n:()=>yi,\u0275\u0275i18nApply:()=>Ms,\u0275\u0275i18nAttributes:()=>xo,\u0275\u0275i18nEnd:()=>Oi,\u0275\u0275i18nExp:()=>mo,\u0275\u0275i18nPostprocess:()=>Fa,\u0275\u0275i18nStart:()=>si,\u0275\u0275inject:()=>Q,\u0275\u0275injectAttribute:()=>Wa,\u0275\u0275invalidFactory:()=>jf,\u0275\u0275invalidFactoryDep:()=>ue,\u0275\u0275listener:()=>Ng,\u0275\u0275loadQuery:()=>t0,\u0275\u0275namespaceHTML:()=>wo,\u0275\u0275namespaceMathML:()=>fa,\u0275\u0275namespaceSVG:()=>No,\u0275\u0275nextContext:()=>Jm,\u0275\u0275ngDeclareClassMetadata:()=>cC,\u0275\u0275ngDeclareComponent:()=>uC,\u0275\u0275ngDeclareDirective:()=>lC,\u0275\u0275ngDeclareFactory:()=>dC,\u0275\u0275ngDeclareInjectable:()=>fC,\u0275\u0275ngDeclareInjector:()=>pC,\u0275\u0275ngDeclareNgModule:()=>gC,\u0275\u0275ngDeclarePipe:()=>mC,\u0275\u0275pipe:()=>BE,\u0275\u0275pipeBind1:()=>$E,\u0275\u0275pipeBind2:()=>HE,\u0275\u0275pipeBind3:()=>zE,\u0275\u0275pipeBind4:()=>WE,\u0275\u0275pipeBindV:()=>KE,\u0275\u0275projection:()=>ty,\u0275\u0275projectionDef:()=>ey,\u0275\u0275property:()=>xg,\u0275\u0275propertyInterpolate:()=>Bd,\u0275\u0275propertyInterpolate1:()=>$d,\u0275\u0275propertyInterpolate2:()=>Gh,\u0275\u0275propertyInterpolate3:()=>Zh,\u0275\u0275propertyInterpolate4:()=>cp,\u0275\u0275propertyInterpolate5:()=>qh,\u0275\u0275propertyInterpolate6:()=>Yh,\u0275\u0275propertyInterpolate7:()=>Hd,\u0275\u0275propertyInterpolate8:()=>Qh,\u0275\u0275propertyInterpolateV:()=>up,\u0275\u0275pureFunction0:()=>TE,\u0275\u0275pureFunction1:()=>SE,\u0275\u0275pureFunction2:()=>AE,\u0275\u0275pureFunction3:()=>ME,\u0275\u0275pureFunction4:()=>RE,\u0275\u0275pureFunction5:()=>OE,\u0275\u0275pureFunction6:()=>PE,\u0275\u0275pureFunction7:()=>xE,\u0275\u0275pureFunction8:()=>kE,\u0275\u0275pureFunctionV:()=>NE,\u0275\u0275queryRefresh:()=>XE,\u0275\u0275reference:()=>op,\u0275\u0275registerNgModuleType:()=>fc,\u0275\u0275resetView:()=>le,\u0275\u0275resolveBody:()=>Eh,\u0275\u0275resolveDocument:()=>wd,\u0275\u0275resolveWindow:()=>Kp,\u0275\u0275restoreView:()=>P,\u0275\u0275sanitizeHtml:()=>Ou,\u0275\u0275sanitizeResourceUrl:()=>Na,\u0275\u0275sanitizeScript:()=>Pu,\u0275\u0275sanitizeStyle:()=>Ed,\u0275\u0275sanitizeUrl:()=>Nl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>ku,\u0275\u0275setComponentScope:()=>nr,\u0275\u0275setNgModuleScope:()=>pn,\u0275\u0275styleMap:()=>jl,\u0275\u0275styleMapInterpolate1:()=>Ey,\u0275\u0275styleMapInterpolate2:()=>by,\u0275\u0275styleMapInterpolate3:()=>gp,\u0275\u0275styleMapInterpolate4:()=>mp,\u0275\u0275styleMapInterpolate5:()=>Xg,\u0275\u0275styleMapInterpolate6:()=>hu,\u0275\u0275styleMapInterpolate7:()=>Jg,\u0275\u0275styleMapInterpolate8:()=>em,\u0275\u0275styleMapInterpolateV:()=>yp,\u0275\u0275styleProp:()=>El,\u0275\u0275stylePropInterpolate1:()=>Yu,\u0275\u0275stylePropInterpolate2:()=>tm,\u0275\u0275stylePropInterpolate3:()=>Gd,\u0275\u0275stylePropInterpolate4:()=>Zd,\u0275\u0275stylePropInterpolate5:()=>_p,\u0275\u0275stylePropInterpolate6:()=>Qu,\u0275\u0275stylePropInterpolate7:()=>nm,\u0275\u0275stylePropInterpolate8:()=>qd,\u0275\u0275stylePropInterpolateV:()=>vp,\u0275\u0275syntheticHostListener:()=>Wh,\u0275\u0275syntheticHostProperty:()=>Xu,\u0275\u0275template:()=>sp,\u0275\u0275templateRefExtractor:()=>o0,\u0275\u0275text:()=>Gg,\u0275\u0275textInterpolate:()=>qu,\u0275\u0275textInterpolate1:()=>hp,\u0275\u0275textInterpolate2:()=>ic,\u0275\u0275textInterpolate3:()=>sc,\u0275\u0275textInterpolate4:()=>yy,\u0275\u0275textInterpolate5:()=>Ac,\u0275\u0275textInterpolate6:()=>Wd,\u0275\u0275textInterpolate7:()=>Zg,\u0275\u0275textInterpolate8:()=>qg,\u0275\u0275textInterpolateV:()=>fp,\u0275\u0275trustConstantHtml:()=>xu,\u0275\u0275trustConstantResourceUrl:()=>bc,\u0275\u0275validateIframeAttribute:()=>gd,\u0275\u0275viewQuery:()=>JE});var c=C(7579),m=C(727),V=C(9751),_e=C(6451),pe=C(3099);function me(n){for(let i in n)if(n[i]===me)return i;throw Error("Could not find renamed property on target object.")}function Oe(n,i){for(const o in i)i.hasOwnProperty(o)&&!n.hasOwnProperty(o)&&(n[o]=i[o])}function ie(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ie).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const i=n.toString();if(null==i)return""+i;const o=i.indexOf("\n");return-1===o?i:i.substring(0,o)}function Re(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const q=me({__forward_ref__:me});function de(n){return n.__forward_ref__=de,n.toString=function(){return ie(this())},n}function be(n){return lt(n)?n():n}function lt(n){return"function"==typeof n&&n.hasOwnProperty(q)&&n.__forward_ref__===de}function it(n){return n&&!!n.\u0275providers}const wt="https://g.co/ng/security#xss";
1class Me extends Error{constructor(i,o){super(Pe(i,o)),this.code=i}}function Pe(n,i){return`NG0${Math.abs(n)}${i?": "+i.trim():""}`}function Ct(n){return"string"==typeof n?n:null==n?"":String(n)}function He(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Ct(n)}function rt(n,i){throw new Me(-201,!1)}function qe(n,i,o,l){throw new Error(`ASSERTION ERROR: ${n}`+(null==l?"":` [Expected=> ${o} ${l} ${i} <=Actual]`))}function cn(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const tr=cn;function wn(n){return{providers:n.providers||[],imports:n.imports||[]}}function Wn(n){return nn(n,_n)||nn(n,Mt)}function qn(n){return null!==Wn(n)}function nn(n,i){return n.hasOwnProperty(i)?n[i]:null}function rn(n){return n&&(n.hasOwnProperty(xn)||n.hasOwnProperty(Nt))?n[xn]:null}const _n=me({\u0275prov:me}),xn=me({\u0275inj:me}),Mt=me({ngInjectableDef:me}),Nt=me({ngInjectorDef:me});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let K;function Be(n){const i=K;return K=n,i}function It(n,i,o){const l=Wn(n);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:o&se.Optional?null:void 0!==i?i:void rt(ie(n))}const qt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Mn={},bn="__NG_DI_FLAG__",Dr="ngTempTokenPath",vr="ngTokenPath",Gn=/\n/gm,bt="\u0275",en="__source";let Se;function ct(n){const i=Se;return Se=n,i}function We(n,i=se.Default){if(void 0===Se)throw new Me(-203,!1);return null===Se?It(n,void 0,i):Se.get(n,i&se.Optional?null:void 0,i)}function Q(n,i=se.Default){return(function Te(){return K}()||We)(be(n),i)}function ue(n){throw new Me(202,!1)}function fe(n,i=se.Default){return Q(n,X(i))}function X(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function ce(n){const i=[];for(let o=0;o<n.length;o++){const l=be(n[o]);if(Array.isArray(l)){if(0===l.length)throw new Me(900,!1);let u,p=se.Default;for(let E=0;E<l.length;E++){const R=l[E],L=Ft(R);"number"==typeof L?-1===L?u=R.token:p|=L:u=R}i.push(Q(u,p))}else i.push(Q(l))}return i}function xe(n,i){return n[bn]=i,n.prototype[bn]=i,n}function Ft(n){return n[bn]}function Fe(n){return{toString:n}.toString()}var Ge=(()=>((Ge=Ge||{})[Ge.OnPush=0]="OnPush",Ge[Ge.Default=1]="Default",Ge))(),Et=(()=>{return(n=Et||(Et={}
1))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Et;var n})();const ht={},an=[],$e=me({\u0275cmp:me}),oe=me({\u0275dir:me}),j=me({\u0275pipe:me}),$=me({\u0275mod:me}),Ie=me({\u0275fac:me}),Qe=me({__NG_ELEMENT_ID__:me});let kt=0;function Cn(n){return Fe(()=>{const i=ro(n),o={...i,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Ge.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&n.dependencies||null,getStandaloneInjector:null,data:n.data||{},encapsulation:n.encapsulation||Et.Emulated,id:"c"+kt++,styles:n.styles||an,_:null,schemas:n.schemas||null,tView:null};Ni(o);const l=n.dependencies;return o.directiveDefs=Rs(l,!1),o.pipeDefs=Rs(l,!0),o})}function nr(n,i,o){const l=n.\u0275cmp;l.directiveDefs=Rs(i,!1),l.pipeDefs=Rs(o,!0)}function Rr(n){return Pn(n)||kr(n)}function Rt(n){return null!==n}function xt(n){return Fe(()=>({type:n.type,bootstrap:n.bootstrap||an,declarations:n.declarations||an,imports:n.imports||an,exports:n.exports||an,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function pn(n,i){return Fe(()=>{const o=li(n,!0);o.declarations=i.declarations||an,o.imports=i.imports||an,o.exports=i.exports||an})}function Kn(n,i){if(null==n)return ht;const o={};for(const l in n)if(n.hasOwnProperty(l)){let u=n[l],p=u;Array.isArray(u)&&(p=u[1],u=u[0]),o[u]=l,i&&(i[u]=p)}return o}function Yn(n){return Fe(()=>{const i=ro(n);return Ni(i),i})}function Tr(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Pn(n){return n[$e]||null}function kr(n){return n[oe]||null}function wr(n){return n[j]||null}function _i(n){const i=Pn(n)||kr(n)||wr(n);return null!==i&&i.standalone}function li(n,i){const o=n[$]||null;if(!o&&!0===i)throw new Error(`Type ${ie(n)} does not have '\u0275mod' property.`);return o}function ro(n){const i={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,exportAs:n.exportAs||null,standalone:!0===n.standalone,selectors:n.selectors||an,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Kn(n.inputs,i),outputs:Kn(n.outputs)}}function Ni(n){n.features?.forEach(i=>i(n))}function Rs(n,i){if(!n)return null;const o=i?wr:Rr;return()=>("function"==typeof n?n():n).map(l=>o(l)).filter(Rt)}const Si=0,Tn=1,pr=2,ci=3,qi=4,Nr=5,Zr=6,bi=7,gr=8,Ai=9,Fi=10,ir=11,ns=12,ws=13,ds=14,wi=15,ni=16,io=17,Bi=18,$i=19,Os=20,Xr=21,ui=22,Cs=1,pt=2,ut=7,Ot=8,Jt=9,mn=10;function yr(n){return Array.isArray(n)&&"object"==typeof n[Cs]}function Er(n){return Array.isArray(n)&&!0===n[Cs]}function Cr(n){return 0!=(4&n.flags)}function Pi(n){return n.componentOffset>-1}function ks(n){return 1==(1&n.flags)}function ri(n){return!!n.template}function di(n){return 0!=(256&n[pr])}function ms(n,i){return n.hasOwnProperty(Ie)?n[Ie]:null}class Is{constructor(i,o,l){this.previousValue=i,this.currentValue=o,this.firstChange=l}isFirstChange(){return this.firstChange}}function co(){return So}function So(n){return n.type.prototype.ngOnChanges&&(n.setInput=vo),Wi}function Wi(){const n=Qo(this),i=n?.current;if(i){const o=n.previous;if(o===ht)n.previous=i;else for(let l in i)o[l]=i[l];n.current=null,this.ngOnChanges(i)}}function vo(n,i,o,l){const u=this.declaredInputs[o],p=Qo(n)||function Ao(n,i){return n[xi]=i}(n,{previous:ht,current:null}),E=p.current||(p.current={}),R=p.previous,L=R[u];E[u]=new Is(L&&L.currentValue,i,R===ht),n[l]=i}co.ngInherit=!0;const xi="__ngSimpleChanges__";function Qo(n){return n[xi]||null}let fs=null;const Li=n=>{fs=n},Hi=function(n,i,o){fs?.(n,i,o)},Ki="svg",Ds="math";function vi(n){for(;Array.isArray(n);)n=n[Si];return n}function ys(n,i){return vi(i[n])}function xr(n,i){return vi(i[n.index])}function Eo(n,i){return n.data[i]}function Vi(n,i){return n[i]}function Ci(n,i){const o=i[n];return yr(o)?o:o[Si]}function zs(n){return 64==(64&n[pr])}function Gi(n,i){return null==i?null:n[i]}function Ls(n){n[Bi]=0}function Ji(n,i){n[Nr]+=i;let o=n,l=n[ci];for(;null!==l&&(1===i&&1===o[Nr]||-1===i&&0===o[Nr]);)l[Nr]+=i,o=l,l=l[ci]}const mr={lFrame:Wo(null),bindingsEnabled:!0};function gt(){return mr.bindingsEnabled}function Qt(){mr.bindingsEnabled=!0}function En(){mr.bindingsEnabled=!1}function S(){return mr.lFrame.lView}function x(){return mr.lFrame.tView}function P(n){return mr.lFrame.contextLView=n,n[gr]}function le(n){return mr.lFrame.contextLView=null,n}function Tt(){let n=In();for(;null!==n&&64===n.type;)n=n.parent;return n}function In(){return mr.lFrame.currentTNode}function _r(){const n=mr.lFrame,i=n.currentTNode;return n.isParent?i:i.parent}function Sr(n,i){const o=mr.lFrame;o.currentTNode=n,o.isParent=i}function ki(){return mr.lFrame.isParent}function Jr(){mr.lFrame.isParent=!1}function Wr(){const n=mr.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function is(){return mr.lFrame.bindingIndex}function ss(n){return mr.lFrame.bindingIndex=n}function ho(){return mr.lFrame.bindingIndex++}function Ui(n){const i=mr.lFrame,o=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,o}function da(n){mr.lFrame.inI18n=n}function Da(n,i){const o=mr.lFrame;o.bindingIndex=o.bindingRootIndex=n,os(i)}function os(n){mr.lFrame.currentDirectiveIndex=n}function as(n){const i=mr.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}function ha(){return mr.lFrame.currentQueryIndex}function oi(n){mr.lFrame.currentQueryIndex=n}function Sa(n){const i=n[Tn];return 2===i.type?i.declTNode:1===i.type?n[Zr]:null}function Vs(n,i,o){if(o&se.SkipSelf){let u=i,p=n;for(;!(u=u.parent,null!==u||o&se.Host||(u=Sa(p),null===u||(p=p[wi],10&u.type))););if(null===u)return!1;i=u,n=p}const l=mr.lFrame=Mo();return l.currentTNode=i,l.lView=n,!0}function Ts(n){const i=Mo(),o=n[Tn];mr.lFrame=i,i.currentTNode=o.firstChild,i.lView=n,i.tView=o,i.contextLView=n,i.bindingIndex=o.bindingStartIndex,i.inI18n=!1}function Mo(){const n=mr.lFrame,i=null===n?null:n.child;return null===i?Wo(n):i}function Wo(n){const i={currentTNode:null,isParent:!0,lView:null,tView:null,
1selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=i),i}function bo(){const n=mr.lFrame;return mr.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Va=bo;function Xo(){const n=bo();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ii(){return mr.lFrame.selectedIndex}function Us(n){mr.lFrame.selectedIndex=n}function Ti(){const n=mr.lFrame;return Eo(n.tView,n.selectedIndex)}function No(){mr.lFrame.currentNamespace=Ki}function fa(){mr.lFrame.currentNamespace=Ds}function wo(){!function Jo(){mr.lFrame.currentNamespace=null}()}function Co(n,i){for(let o=i.directiveStart,l=i.directiveEnd;o<l;o++){const p=n.data[o].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:R,ngAfterViewInit:L,ngAfterViewChecked:te,ngOnDestroy:we}=p;E&&(n.contentHooks??(n.contentHooks=[])).push(-o,E),R&&((n.contentHooks??(n.contentHooks=[])).push(o,R),(n.contentCheckHooks??(n.contentCheckHooks=[])).push(o,R)),L&&(n.viewHooks??(n.viewHooks=[])).push(-o,L),te&&((n.viewHooks??(n.viewHooks=[])).push(o,te),(n.viewCheckHooks??(n.viewCheckHooks=[])).push(o,te)),null!=we&&(n.destroyHooks??(n.destroyHooks=[])).push(o,we)}}function ja(n,i,o){ne(n,i,3,o)}function Ba(n,i,o,l){(3&n[pr])===o&&ne(n,i,o,l)}function k(n,i){let o=n[pr];(3&o)===i&&(o&=2047,o+=1,n[pr]=o)}function ne(n,i,o,l){const p=l??-1,E=i.length-1;let R=0;for(let L=void 0!==l?65535&n[Bi]:0;L<E;L++)if("number"==typeof i[L+1]){if(R=i[L],null!=l&&R>=l)break}else i[L]<0&&(n[Bi]+=65536),(R<p||-1==p)&&(U(n,o,i,L),n[Bi]=(4294901760&n[Bi])+L+2),L++}function U(n,i,o,l){const u=o[l]<0,p=o[l+1],R=n[u?-o[l]:o[l]];if(u){if(n[pr]>>11<n[Bi]>>16&&(3&n[pr])===i){n[pr]+=2048,Hi(4,R,p);try{p.call(R)}finally{Hi(5,R,p)}}}else{Hi(4,R,p);try{p.call(R)}finally{Hi(5,R,p)}}}const ye=-1;class Ye{constructor(i,o,l){this.factory=i,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=l}}function or(n,i,o){let l=0;for(;l<o.length;){const u=o[l];if("number"==typeof u){if(0!==u)break;l++;const p=o[l++],E=o[l++],R=o[l++];n.setAttribute(i,E,R,p)}else{const p=u,E=o[++l];Gs(p)?n.setProperty(i,p,E):n.setAttribute(i,p,E),l++}}return l}function gi(n){return 3===n||4===n||6===n}function Gs(n){return 64===n.charCodeAt(0)}function kn(n,i){if(null!==i&&0!==i.length)if(null===n||0===n.length)n=i.slice();else{let o=-1;for(let l=0;l<i.length;l++){const u=i[l];"number"==typeof u?o=u:0===o||Xn(n,o,u,null,-1===o||2===o?i[++l]:null)}}return n}function Xn(n,i,o,l,u){let p=0,E=n.length;if(-1===i)E=-1;else for(;p<n.length;){const R=n[p++];if("number"==typeof R){if(R===i){E=-1;break}if(R>i){E=p-1;break}}}for(;p<n.length;){const R=n[p];if("number"==typeof R)break;if(R===o){if(null===l)return void(null!==u&&(n[p+1]=u));if(l===n[p+1])return void(n[p+2]=u)}p++,null!==l&&p++,null!==u&&p++}-1!==E&&(n.splice(E,0,i),p=E+1),n.splice(p++,0,o),null!==l&&n.splice(p++,0,l),null!==u&&n.splice(p++,0,u)}function vs(n){return n!==ye}function Rn(n){return 32767&n}function gn(n,i){let o=function Ht(n){return n>>16}(n),l=i;for(;o>0;)l=l[wi],o--;return l}let es=!0;function Qa(n){const i=es;return es=n,i}const Aa=255,dc=5;let ea=0;const Ro={};function al(n,i){const o=$a(n,i);if(-1!==o)return o;const l=i[Tn];l.firstCreatePass&&(n.injectorIndex=i.length,Xa(l.data,n),Xa(i,null),Xa(l.blueprint,null));const u=js(n,i),p=n.injectorIndex;if(vs(u)){const E=Rn(u),R=gn(u,i),L=R[Tn].data;for(let te=0;te<8;te++)i[p+te]=R[E+te]|L[E+te]}return i[p+8]=u,p}function Xa(n,i){n.push(0,0,0,0,0,0,0,0,i)}function $a(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function js(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let o=0,l=null,u=i;for(;null!==u;){if(l=za(u),null===l)return ye;if(o++,u=u[wi],-1!==l.injectorIndex)return l.injectorIndex|o<<16}return ye}function Jn(n,i,o){!function ta(n,i,o){let l;
1"string"==typeof o?l=o.charCodeAt(0)||0:o.hasOwnProperty(Qe)&&(l=o[Qe]),null==l&&(l=o[Qe]=ea++);const u=l&Aa;i.data[n+(u>>dc)]|=1<<u}(n,i,o)}function Ha(n,i,o){if(o&se.Optional||void 0!==n)return n;rt()}function ji(n,i,o,l){if(o&se.Optional&&void 0===l&&(l=null),!(o&(se.Self|se.Host))){const u=n[Ai],p=Be(void 0);try{return u?u.get(i,l,o&se.Optional):It(i,l,o&se.Optional)}finally{Be(p)}}return Ha(l,0,o)}function cr(n,i,o,l=se.Default,u){if(null!==n){if(1024&i[pr]){const E=function ra(n,i,o,l,u){let p=n,E=i;for(;null!==p&&null!==E&&1024&E[pr]&&!(256&E[pr]);){const R=Ma(p,E,o,l|se.Self,Ro);if(R!==Ro)return R;let L=p.parent;if(!L){const te=E[Xr];if(te){const we=te.get(o,Ro,l);if(we!==Ro)return we}L=za(E),E=E[wi]}p=L}return u}(n,i,o,l,Ro);if(E!==Ro)return E}const p=Ma(n,i,o,l,Ro);if(p!==Ro)return p}return ji(i,o,l,u)}function Ma(n,i,o,l,u){const p=function jn(n){if("string"==typeof n)return n.charCodeAt(0)||0;const i=n.hasOwnProperty(Qe)?n[Qe]:void 0;return"number"==typeof i?i>=0?i&Aa:Mc:i}(o);if("function"==typeof p){if(!Vs(i,n,l))return l&se.Host?Ha(u,0,l):ji(i,o,l,u);try{const E=p(l);if(null!=E||l&se.Optional)return E;rt()}finally{Va()}}else if("number"==typeof p){let E=null,R=$a(n,i),L=ye,te=l&se.Host?i[ni][Zr]:null;for((-1===R||l&se.SkipSelf)&&(L=-1===R?js(n,i):i[R+8],L!==ye&&pa(l,!1)?(E=i[Tn],R=Rn(L),i=gn(L,i)):R=-1);-1!==R;){const we=i[Tn];if(Es(p,R,we.data)){const Ke=Pr(R,i,o,E,l,te);if(Ke!==Ro)return Ke}L=i[R+8],L!==ye&&pa(l,i[Tn].data[R+8]===te)&&Es(p,R,i)?(E=we,R=Rn(L),i=gn(L,i)):R=-1}}return u}function Pr(n,i,o,l,u,p){const E=i[Tn],R=E.data[n+8],we=Ja(R,E,o,null==l?Pi(R)&&es:l!=E&&0!=(3&R.type),u&se.Host&&p===R);return null!==we?Vr(i,E,we,R):Ro}function Ja(n,i,o,l,u){const p=n.providerIndexes,E=i.data,R=1048575&p,L=n.directiveStart,we=p>>20,Dt=u?R+we:n.directiveEnd;for(let zt=l?R:R+we;zt<Dt;zt++){const vn=E[zt];if(zt<L&&o===vn||zt>=L&&vn.type===o)return zt}if(u){const zt=E[L];if(zt&&ri(zt)&&zt.type===o)return L}return null}function Vr(n,i,o,l){let u=n[o];const p=i.data;if(function Kt(n){return n instanceof Ye}(u)){const E=u;E.resolving&&function Ve(n,i){const o=i?`. Dependency path: ${i.join(" > ")} > ${n}`:"";throw new Me(-200,`Circular dependency in DI detected for ${n}${o}`)}(He(p[o]));const R=Qa(E.canSeeViewProviders);E.resolving=!0;const L=E.injectImpl?Be(E.injectImpl):null;Vs(n,l,se.Default);try{u=n[o]=E.factory(void 0,p,n,l),i.firstCreatePass&&o>=l.directiveStart&&function wl(n,i,o){const{ngOnChanges:l,ngOnInit:u,ngDoCheck:p}=i.type.prototype;if(l){const E=So(i);(o.preOrderHooks??(o.preOrderHooks=[])).push(n,E),(o.preOrderCheckHooks??(o.preOrderCheckHooks=[])).push(n,E)}u&&(o.preOrderHooks??(o.preOrderHooks=[])).push(0-n,u),p&&((o.preOrderHooks??(o.preOrderHooks=[])).push(n,p),(o.preOrderCheckHooks??(o.preOrderCheckHooks=[])).push(n,p))}(o,p[o],i)}finally{null!==L&&Be(L),Qa(R),E.resolving=!1,Va()}}return u}function Es(n,i,o){return!!(o[i+(n>>dc)]&1<<n)}function pa(n,i){return!(n&se.Self||n&se.Host&&i)}class ps{constructor(i,o){this._tNode=i,this._lView=o}get(i,o,l){return cr(this._tNode,this._lView,i,X(l),o)}}function Mc(){return new ps(Tt(),S())}function ga(n){return Fe(()=>{const i=n.prototype.constructor,o=i[Ie]||Io(i),l=Object.prototype;let u=Object.getPrototypeOf(n.prototype).constructor;for(;u&&u!==l;){const p=u[Ie]||Io(u);if(p&&p!==o)return p;u=Object.getPrototypeOf(u)}return p=>new p})}function Io(n){return lt(n)?()=>{const i=Io(be(n));return i&&i()}:ms(n)}function za(n){const i=n[Tn],o=i.type;return 2===o?i.declTNode:1===o?n[Zr]:null}function Wa(n){return function na(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const o=n.attrs;if(o){const l=o.length;let u=0;for(;u<l;){const p=o[u];if(gi(p))break;if(0===p)u+=2;else if("number"==typeof p)for(u++;u<l&&"string"==typeof o[u];)u++;else{if(p===i)return o[u+1];u+=2}}}return null}(Tt(),n)}const As="__annotations__",Fo="__parameters__",ia="__prop__metadata__";function Bs(n,i,o,l,u){return Fe(()=>{const p=Zs(i);function E(...R){if(this instanceof E)return p.call(this,...R),this;const L=new E(...R);return function(we){return u&&u(we,...R),(we.hasOwnProperty(As)?we[As]:Object.defineProperty(we,As,{value:[]})[As]).push(L),l&&l(we),we}}return o&&(E.prototype=Object.create(o.prototype)),E.prototype.ngMetadataName=n,E.annotationCls=E,E})}function Zs(n){return function(...o){if(n){const l=n(...o);for(const u in l)this[u]=l[u]}}}function sa(n,i,o){return Fe(()=>{const l=Zs(i);function u(...p){if(this instanceof u)return l.apply(this,p),this;const E=new u(...p);return R.annotation=E,R;function R(L,te,we){const Ke=L.hasOwnProperty(Fo)?L[Fo]:Object.defineProperty(L,Fo,{value:[]})[Fo];for(;Ke.length<=we;)Ke.push(null);return(Ke[we]=Ke[we]||[]).push(E),L}}return o&&(u.prototype=Object.create(o.prototype)),u.prototype.ngMetadataName=n,u.annotationCls=u,u})}function Lt(n,i,o,l){return Fe(()=>{const u=Zs(i);function p(...E){if(this instanceof p)return u.apply(this,E),this;const R=new p(...E);return function L(te,we){const Ke=te.constructor,Dt=Ke.hasOwnProperty(ia)?Ke[ia]:Object.defineProperty(Ke,ia,{value:{}})[ia];Dt[we]=Dt.hasOwnProperty(we)&&Dt[we]||[],Dt[we].unshift(R),l&&l(te,we,...E)}}return o&&(p.prototype=Object.create(o.prototype)),p.prototype.ngMetadataName=n,p.annotationCls=p,p})}const Ka=sa("Attribute",n=>({attributeName:n,__NG_ELEMENT_ID__:()=>Wa(n)}));class Yr{constructor(i,o){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=cn({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Rc=new Yr("AnalyzeForEntryComponents");class _{}const b=Lt("ContentChildren",(n,i={})=>({selector:n,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...i}),_),N=Lt("ContentChild",(n,i={})=>({selector:n,first:!0,isViewQuery:!1,descendants:!0,...i}),_),re=Lt("ViewChildren",(n,i={})=>({selector:n,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...i}),_),Ee=Lt("ViewChild",(n,i)=>({selector:n,first:!0,isViewQuery:!0,descendants:!0,...i}),_);var Ze=(()=>((Ze=Ze||{}
vendor: 3,418 bytes, line 1
1)[Ze.Directive=0]="Directive",Ze[Ze.Component=1]="Component",Ze[Ze.Injectable=2]="Injectable",Ze[Ze.Pipe=3]="Pipe",Ze[Ze.NgModule=4]="NgModule",Ze))();function Zt(n){const i=qt.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Fn=Function;function Qn(n){return"function"==typeof n}function Or(n){return n.flat(Number.POSITIVE_INFINITY)}function hr(n,i){n.forEach(o=>Array.isArray(o)?hr(o,i):i(o))}function Mr(n,i,o){i>=n.length?n.push(o):n.splice(i,0,o)}function w(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function D(n,i){const o=[];for(let l=0;l<n;l++)o.push(i);return o}function Ce(n,i,o){let l=tn(n,i);return l>=0?n[1|l]=o:(l=~l,function z(n,i,o,l){let u=n.length;if(u==i)n.push(o,l);else if(1===u)n.push(l,n[0]),n[0]=o;else{for(u--,n.push(n[u-1],n[u]);u>i;)n[u]=n[u-2],u--;n[i]=o,n[i+1]=l}}(n,l,i,o)),l}function _t(n,i){const o=tn(n,i);if(o>=0)return n[1|o]}function tn(n,i){return function Vn(n,i,o){let l=0,u=n.length>>o;for(;u!==l;){const p=l+(u-l>>1),E=n[p<<o];if(i===E)return p<<o;E>i?u=p:l=p+1}return~(u<<o)}(n,i,1)}const Ur=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Zi=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,qs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Do=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Zn{constructor(i){this._reflect=i||qt.Reflect}factory(i){return(...o)=>new i(...o)}_zipTypesAndAnnotations(i,o){let l;l=D(typeof i>"u"?o.length:i.length);for(let u=0;u<l.length;u++)l[u]=typeof i>"u"?[]:i[u]&&i[u]!=Object?[i[u]]:[],o&&null!=o[u]&&(l[u]=l[u].concat(o[u]));return l}_ownParameters(i,o){if(function Lo(n){return Ur.test(n)||Do.test(n)||Zi.test(n)&&!qs.test(n)}(i.toString()))return null;if(i.parameters&&i.parameters!==o.parameters)return i.parameters;const u=i.ctorParameters;if(u&&u!==o.ctorParameters){const R="function"==typeof u?u():u,L=R.map(we=>we&&we.type),te=R.map(we=>we&&ur(we.decorators));return this._zipTypesAndAnnotations(L,te)}const p=i.hasOwnProperty(Fo)&&i[Fo],E=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",i);return E||p?this._zipTypesAndAnnotations(E,p):D(i.length)}parameters(i){if(!Qn(i))return[];const o=br(i);let l=this._ownParameters(i,o);return!l&&o!==Object&&(l=this.parameters(o)),l||[]}_ownAnnotations(i,o){if(i.annotations&&i.annotations!==o.annotations){let l=i.annotations;return"function"==typeof l&&l.annotations&&(l=l.annotations),l}return i.decorators&&i.decorators!==o.decorators?ur(i.decorators):i.hasOwnProperty(As)?i[As]:null}annotations(i){if(!Qn(i))return[];const o=br(i),l=this._ownAnnotations(i,o)||[];return(o!==Object?this.annotations(o):[]).concat(l)}_ownPropMetadata(i,o){if(i.propMetadata&&i.propMetadata!==o.propMetadata){let l=i.propMetadata;return"function"==typeof l&&l.propMetadata&&(l=l.propMetadata),l}if(i.propDecorators&&i.propDecorators!==o.propDecorators){const l=i.propDecorators,u={};return Object.keys(l).forEach(p=>{u[p]=ur(l[p])}),u}return i.hasOwnProperty(ia)?i[ia]:null}propMetadata(i){if(!Qn(i))return{};const o=br(i),l={};if(o!==Object){const p=this.propMetadata(o);Object.keys(p).forEach(E=>{l[E]=p[E]})}const u=this._ownPropMetadata(i,o);return u&&Object.keys(u).forEach(p=>{const E=[];l.hasOwnProperty(p)&&E.push(...l[p]),E.push(...u[p]),l[p]=E}
1),l}ownPropMetadata(i){return Qn(i)&&this._ownPropMetadata(i,br(i))||{}}hasLifecycleHook(i,o){return i instanceof Fn&&o in i.prototype}}function ur(n){return n?n.map(i=>new(0,i.type.annotationCls)(...i.args?i.args:[])):[]}function br(n){const i=n.prototype?Object.getPrototypeOf(n.prototype):null;return(i?i.constructor:null)||Object}const ei=xe(sa("Inject",n=>({token:n})),-1),ls=xe(sa("Optional"),8),po=xe(sa("Self"),2),Ys=xe(sa("SkipSelf"),4),Vo=xe(sa("Host"),1);let Kr=null;function Ra(){return Kr=Kr||new Zn}function Oo(n){return Qs(Ra().parameters(n))}function Qs(n){return n.map(i=>function mi(n){const i={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let o=0;o<n.length;o++){const l=n[o];if(void 0===l)continue;const u=Object.getPrototypeOf(l);if(l instanceof ls||"Optional"===u.ngMetadataName)i.optional=!0;else if(l instanceof Ys||"SkipSelf"===u.ngMetadataName)i.skipSelf=!0;else if(l instanceof po||"Self"===u.ngMetadataName)i.self=!0;else if(l instanceof Vo||"Host"===u.ngMetadataName)i.host=!0;else if(l instanceof ei)i.token=l.token;else if(l instanceof Ka){if(void 0===l.attributeName)throw new Me(204,!1);i.attribute=l.attributeName}else i.token=l}else i.token=void 0===n||Array.isArray(n)&&0===n.length?null:n;return i}(i))}function Xs(n){const i=[],o=new Map;function l(u){let p=o.get(u);if(!p){const E=n(u);o.set(u,p=E.then(yu))}return p}return zi.forEach((u,p)=>{const E=[];u.templateUrl&&E.push(l(u.templateUrl).then(Ke=>{u.template=Ke}));const R=u.styleUrls,L=u.styles||(u.styles=[]),te=u.styles.length;R&&R.forEach((Ke,Dt)=>{L.push(""),E.push(l(Ke).then(zt=>{L[te+Dt]=zt,R.splice(R.indexOf(Ke),1),0==R.length&&(u.styleUrls=void 0)}))});const we=Promise.all(E).then(()=>function ll(n){Ii.delete(n)}(p));i.push(we)}),hc(),Promise.all(i).then(()=>{})}let zi=new Map;const Ii=new Set;function Uo(n){return!!(n.templateUrl&&!n.hasOwnProperty("template")||n.styleUrls&&n.styleUrls.length)}function hc(){const n=zi;return zi=new Map,n}function yu(n){return"string"==typeof n?n:n.text()}const cs=new Map;let ma=!0;function fc(n,i){(function Oc(n,i,o){if(i&&i!==o&&ma)throw new Error(`Duplicate module registered for ${n} - ${ie(i)} vs ${ie(i.name)}`)})(i,cs.get(i)||null,n),cs.set(i,n)}function id(n){return cs.get(n)}function Oa(n){ma=!n}const ya={name:"custom-elements"},Il={name:"no-errors-schema"};let oa=!1;function Ko(n){oa=n}function Dl(){return oa}let aa=!1;function pc(n){aa=n}function el(){return aa}var _a=(()=>((_a=_a||{})[_a.Important=1]="Important",_a[_a.DashCase=2]="DashCase",_a))();const Sl=/^>|^->|<!--|-->|--!>|<!-$/g,kc=/(<|>)/,cl="\u200b$1\u200b";const go=new Map;let Eu=0;function od(n){return go.get(n)||null}class F{get lView(){return od(this.lViewId)}constructor(i,o,l){this.lViewId=i,this.nodeIndex=o,this.native=l}}function J(n){let i=Hn(n);if(i){if(yr(i)){const o=i;let l,u,p;if(fr(n)){if(l=Ps(o,n),-1==l)throw new Error("The provided component was not found in the application");u=n}else if(function jr(n){return n&&n.constructor&&n.constructor.\u0275dir}(n)){if(l=function Gl(n,i){let o=n[Tn].firstChild;for(;o;){const u=o.directiveEnd;for(let p=o.directiveStart;p<u;p++)if(n[p]===i)return o.index;o=la(o)}return-1}(o,n),-1==l)throw new Error("The provided directive was not found in the application");p=Nc(l,o)}else if(l=zr(o,n),-1==l)return null;const E=vi(o[l]),R=Hn(E),L=R&&!Array.isArray(R)?R:Le(o,l,E);if(u&&void 0===L.component&&(L.component=u,Gt(L.component,L)),p&&void 0===L.directives){L.directives=p;for(let te=0;te<p.length;te++)Gt(p[te],L)}Gt(L.native,L),i=L}}else{const o=n;let l=o;for(;l=l.parentNode;){const u=Hn(l);if(u){const p=Array.isArray(u)?u:u.lView;if(!p)return null;const E=zr(p,o);if(E>=0){const R=vi(p[E]),L=Le(p,E,R);Gt(R,L),i=L;break}}}}return i||null}function Le(n,i,o){return new F(n[Os],i,o)}function tt(n){let o,i=Hn(n);if(yr(i)){const l=i,u=Ps(l,n);o=Ci(u,l);const p=Le(l,u,o[Si]);p.component=n,Gt(n,p),Gt(p.native,p)}else o=Ci(i.nodeIndex,i.lView);return o}const mt="__ngContext__";function Gt(n,i){yr(i)?(n[mt]=i[Os],function ul(n){go.set(n[Os],n)}(i)):n[mt]=i}function Hn(n){const i=n[mt];return"number"==typeof i?od(i):i||null}function Bn(n){const i=Hn(n);return i?yr(i)?i:i.lView:null}function fr(n){return n&&n.constructor&&n.constructor.\u0275cmp}function zr(n,i){const o=n[Tn];for(let l=ui;l<o.bindingStartIndex;l++)if(vi(n[l])===i)return l;return-1}function la(n){if(n.child)return n.child;if(n.next)return n.next;for(;n.parent&&!n.parent.next;)n=n.parent;return n.parent&&n.parent.next}function Ps(n,i){const o=n[Tn].components;if(o)for(let l=0;l<o.length;l++){const u=o[l];if(Ci(u,n)[gr]===i)return u}else if(Ci(ui,n)[gr]===i)return ui;return-1}function Nc(n,i){const o=i[Tn].data[n];if(0===o.directiveStart)return an;const l=[];for(let u=o.directiveStart;u<o.directiveEnd;u++){const p=i[u];fr(p)||l.push(p)}return l}let Pa;function gc(n,i){return Pa(n,i)}function bu(n){const i=n[ci];return Er(i)?i[ci]:i}function wu(n){return function dm(n){let i=yr(n)?n:Bn(n);for(;i&&!(256&i[pr]);)i=bu(i);return i}(n)[gr]}function dl(n){return Fc(n[ws])}function hl(n){return Fc(n[qi])}function Fc(n){for(;null!==n&&!Er(n);)n=n[qi];return n}function fl(n,i,o,l,u){if(null!=l){let p,E=!1;Er(l)?p=l:yr(l)&&(E=!0,l=l[Si]);const R=vi(l);0===n&&null!==o?null==u?cd(i,o,R):ql(i,o,R,u||null,!0):1===n&&null!==o?ql(i,o,R,u||null,!0):2===n?hd(i,R,E):3===n&&i.destroyNode(R),null!=p&&function xp(n,i,o,l,u){const p=o[ut];p!==vi(o)&&fl(i,n,l,p,u);for(let R=mn;R<o.length;R++){const L=o[R];Uc(L[Tn],L,n,i,l,p)}}(i,n,p,o,u)}}function ad(n,i){return n.createText(i)}function th(n,i,o){n.setValue(i,o)}function Ml(n,i){return n.createComment(function vu(n){return n.replace(Sl,i=>i.replace(kc,cl))}(i))}function ld(n,i,o){return n.createElement(i,o)}function Go(n,i){const o=n[Jt],l=o.indexOf(i),u=i[ci];512&i[pr]&&(i[pr]&=-513,Ji(u,-1)),o.splice(l,1)}
1function yc(n,i){if(n.length<=mn)return;const o=mn+i,l=n[o];if(l){const u=l[io];null!==u&&u!==n&&Go(u,l),i>0&&(n[o-1][qi]=l[qi]);const p=w(n,mn+i);!function Lc(n,i){Uc(n,i,i[ir],2,null,null),i[Si]=null,i[Zr]=null}(l[Tn],l);const E=p[$i];null!==E&&E.detachView(p[Tn]),l[ci]=null,l[qi]=null,l[pr]&=-65}return l}function Cu(n,i){if(!(128&i[pr])){const o=i[ir];o.destroyNode&&Uc(n,i,o,3,null,null),function ih(n){let i=n[ws];if(!i)return Ol(n[Tn],n);for(;i;){let o=null;if(yr(i))o=i[ws];else{const l=i[mn];l&&(o=l)}if(!o){for(;i&&!i[qi]&&i!==n;)yr(i)&&Ol(i[Tn],i),i=i[ci];null===i&&(i=n),yr(i)&&Ol(i[Tn],i),o=i&&i[qi]}i=o}}(i)}}function Ol(n,i){if(!(128&i[pr])){i[pr]&=-65,i[pr]|=128,function sh(n,i){let o;if(null!=n&&null!=(o=n.destroyHooks))for(let l=0;l<o.length;l+=2){const u=i[o[l]];if(!(u instanceof Ye)){const p=o[l+1];if(Array.isArray(p))for(let E=0;E<p.length;E+=2){const R=u[p[E]],L=p[E+1];Hi(4,R,L);try{L.call(R)}finally{Hi(5,R,L)}}else{Hi(4,u,p);try{p.call(u)}finally{Hi(5,u,p)}}}}}(n,i),function gf(n,i){const o=n.cleanup,l=i[bi];let u=-1;if(null!==o)for(let p=0;p<o.length-1;p+=2)if("string"==typeof o[p]){const E=o[p+3];E>=0?l[u=E]():l[u=-E].unsubscribe(),p+=2}else{const E=l[u=o[p+1]];o[p].call(E)}if(null!==l){for(let p=u+1;p<l.length;p++)(0,l[p])();i[bi]=null}}(n,i),1===i[Tn].type&&i[ir].destroy();const o=i[io];if(null!==o&&Er(i[ci])){o!==i[ci]&&Go(o,i);const l=i[$i];null!==l&&l.detachView(n)}!function T(n){go.delete(n[Os])}(i)}}function Zl(n,i,o){return oh(n,i.parent,o)}function oh(n,i,o){let l=i;for(;null!==l&&40&l.type;)l=(i=l).parent;if(null===l)return o[Si];{const{componentOffset:u}=l;if(u>-1){const{encapsulation:p}=n.data[l.directiveStart+u];if(p===Et.None||p===Et.Emulated)return null}return xr(l,o)}}function ql(n,i,o,l,u){n.insertBefore(i,o,l,u)}function cd(n,i,o){n.appendChild(i,o)}function pl(n,i,o,l,u){null!==l?ql(n,i,o,l,u):cd(n,i,o)}function Iu(n,i){return n.parentNode(i)}function ud(n,i,o){return ah(n,i,o)}function ka(n,i,o){return 40&n.type?xr(n,o):null}let _c,tl,Au,Pl,ah=ka;function dd(n,i){ah=n,_c=i}function Vc(n,i,o,l){const u=Zl(n,l,i),p=i[ir],R=ud(l.parent||i[Zr],l,i);if(null!=u)if(Array.isArray(o))for(let L=0;L<o.length;L++)pl(p,u,o[L],R,!1);else pl(p,u,o,R,!1);void 0!==_c&&_c(p,l,i,o,u)}function qr(n,i){if(null!==i){const o=i.type;if(3&o)return xr(i,n);if(4&o)return Yl(-1,n[i.index]);if(8&o){const l=i.child;if(null!==l)return qr(n,l);{const u=n[i.index];return Er(u)?Yl(-1,u):vi(u)}}if(32&o)return gc(i,n)()||vi(n[i.index]);{const l=mf(n,i);return null!==l?Array.isArray(l)?l[0]:qr(bu(n[ni]),l):qr(n,i.next)}}return null}function mf(n,i){return null!==i?n[ni][Zr].projection[i.projection]:null}function Yl(n,i){const o=mn+n+1;if(o<i.length){const l=i[o],u=l[Tn].firstChild;if(null!==u)return qr(l,u)}return i[ut]}function hd(n,i,o){const l=Iu(n,i);l&&function Pp(n,i,o,l){n.removeChild(i,o,l)}(n,l,i,o)}function fd(n,i,o,l,u,p,E){for(;null!=o;){const R=l[o.index],L=o.type;if(E&&0===i&&(R&&Gt(vi(R),l),o.flags|=2),32!=(32&o.flags))if(8&L)fd(n,i,o.child,l,u,p,!1),fl(i,n,u,R,p);else if(32&L){const te=gc(o,l);let we;for(;we=te();)fl(i,n,u,we,p);fl(i,n,u,R,p)}else 16&L?yf(n,i,l,o,u,p):fl(i,n,u,R,p);o=E?o.projectionNext:o.next}}function Uc(n,i,o,l,u,p){fd(o,l,n.firstChild,i,u,p,!1)}function yf(n,i,o,l,u,p){const E=o[ni],L=E[Zr].projection[l.projection];if(Array.isArray(L))for(let te=0;te<L.length;te++)fl(i,n,u,L[te],p);else fd(n,i,L,E[ci],u,p,!0)}function Za(n,i,o){""===o?n.removeAttribute(i,"class"):n.setAttribute(i,"class",o)}function lh(n,i,o){const{mergedAttrs:l,classes:u,styles:p}=o;null!==l&&or(n,i,l),null!==u&&Za(n,i,u),null!==p&&function jc(n,i,o){n.setAttribute(i,"style",o)}(n,i,p)}function pd(){if(void 0===tl&&(tl=null,qt.trustedTypes))try{tl=qt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return tl}function nl(n){return pd()?.createHTML(n)||n}function gd(n,i,o){const l=S(),u=Ti(),p=xr(u,l);if(2===u.type&&"iframe"===i.toLowerCase()){const E=p;throw E.src="",E.srcdoc=nl(""),hd(l[ir],E),new Me(-910,!1)}return n}function bs(n){Au=n}function Mu(){return void 0!==Au?Au:typeof document<"u"?document:void 0}function md(){if(void 0===Pl&&(Pl=null,qt.trustedTypes))try{Pl=qt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Pl}function Ea(n){return md()?.createHTML(n)||n}function gl(n){return md()?.createScript(n)||n}function ch(n){return md()?.createScriptURL(n)||n}class Ql{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wt})`}}class Xl extends Ql{getTypeName(){return"HTML"}}class rl extends Ql{getTypeName(){return"Style"}}
1class bf extends Ql{getTypeName(){return"Script"}}class uh extends Ql{getTypeName(){return"URL"}}class wf extends Ql{getTypeName(){return"ResourceURL"}}function eo(n){return n instanceof Ql?n.changingThisBreaksApplicationSecurity:n}function xl(n,i){const o=yd(n);if(null!=o&&o!==i){if("ResourceURL"===o&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${o} (see ${wt})`)}return o===i}function yd(n){return n instanceof Ql&&n.getTypeName()||null}function dh(n){return new Xl(n)}function hh(n){return new rl(n)}function Cf(n){return new bf(n)}function ba(n){return new uh(n)}function $s(n){return new wf(n)}function Ei(n){const i=new ml(n);return function vc(){try{return!!(new window.DOMParser).parseFromString(nl(""),"text/html")}catch{return!1}}()?new If(i):i}class If{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const o=(new window.DOMParser).parseFromString(nl(i),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(i):(o.removeChild(o.firstChild),o)}catch{return null}}}class ml{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const o=this.inertDocument.createElement("template");return o.innerHTML=nl(i),o}}const Ru=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bc(n){return(n=String(n)).match(Ru)?n:"unsafe:"+n}function kl(n){const i={};for(const o of n.split(","))i[o]=!0;return i}function Jl(...n){const i={};for(const o of n)for(const l in o)o.hasOwnProperty(l)&&(i[l]=!0);return i}const fh=kl("area,br,col,hr,img,wbr"),_d=kl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$c=kl("rp,rt"),f=Jl(fh,Jl(_d,kl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Jl($c,kl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Jl($c,_d)),I=kl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),at=Jl(I,kl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),kl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Vt=kl("script,style,template");class Dn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let o=i.firstChild,l=!0;for(;o;)if(o.nodeType===Node.ELEMENT_NODE?l=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,l&&o.firstChild)o=o.firstChild;else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let u=this.checkClobberedElement(o,o.nextSibling);if(u){o=u;break}o=this.checkClobberedElement(o,o.parentNode)}return this.buf.join("")}startElement(i){const o=i.nodeName.toLowerCase();if(!f.hasOwnProperty(o))return this.sanitizedSomething=!0,!Vt.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const l=i.attributes;for(let u=0;u<l.length;u++){const p=l.item(u),E=p.name,R=E.toLowerCase();if(!at.hasOwnProperty(R)){this.sanitizedSomething=!0;continue}let L=p.value;I[R]&&(L=Bc(L)),this.buf.push(" ",E,'="',dr(L),'"')}return this.buf.push(">"),!0}endElement(i){const o=i.nodeName.toLowerCase();f.hasOwnProperty(o)&&!fh.hasOwnProperty(o)&&(this.buf.push("</"),this.buf.push(o),this.buf.push(">"))}chars(i){this.buf.push(dr(i))}checkClobberedElement(i,o){if(o&&(i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return o}}const zn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ar=/([^\#-~ |!])/g;function dr(n){return n.replace(/&/g,"&").replace(zn,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(ar,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ts;function jo(n,i){let o=null;try{ts=ts||Ei(n);let l=i?String(i):"";o=ts.getInertBodyElement(l);let u=5,p=l;do{if(0===u)throw new Error("Failed to sanitize html because the input is unstable");u--,l=p,p=o.innerHTML,o=ts.getInertBodyElement(l)}while(l!==p);return nl((new Dn).sanitizeChildren(Ec(o)||o))}finally{if(o){const l=Ec(o)||o;for(;l.firstChild;)l.removeChild(l.firstChild)}}}function Ec(n){return"content"in n&&function Df(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ti=(()=>((ti=ti||{})[ti.NONE=0]="NONE",ti[ti.HTML=1]="HTML",ti[ti.STYLE=2]="STYLE",ti[ti.SCRIPT=3]="SCRIPT",ti[ti.URL=4]="URL",ti[ti.RESOURCE_URL=5]="RESOURCE_URL",ti))();function Ou(n){const i=ph();return i?Ea(i.sanitize(ti.HTML,n)||""):xl(n,"HTML")?Ea(eo(n)):jo(Mu(),Ct(n))}function Ed(n){const i=ph();return i?i.sanitize(ti.STYLE,n)||"":xl(n,"Style")?eo(n):Ct(n)}function Nl(n){const i=ph();return i?i.sanitize(ti.URL,n)||"":xl(n,"URL")?eo(n):Bc(Ct(n))}function Na(n){const i=ph();if(i)return ch(i.sanitize(ti.RESOURCE_URL,n)||"");if(xl(n,"ResourceURL"))return ch(eo(n));throw new Me(904,!1)}function Pu(n){const i=ph();if(i)return gl(i.sanitize(ti.SCRIPT,n)||"");if(xl(n,"Script"))return gl(eo(n));throw new Me(905,!1)}function xu(n){return nl(n[0])}function bc(n){return function Ef(n){return pd()?.createScriptURL(n)||n}(n[0])}function ku(n,i,o){return function Tf(n,i){return"src"===i&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===i&&("base"===n||"link"===n)?Na:Nl}(i,o)(n)}function ph(){const n=S();return n&&n[ns]}const Nu=new Yr("ENVIRONMENT_INITIALIZER"),gh=new Yr("INJECTOR",-1),hm=new Yr("INJECTOR_DEF_TYPES");class Np{get(i,o=Mn){if(o===Mn){const l=new Error(`NullInjectorError: No provider for ${ie(i)}!`);throw l.name="NullInjectorError",l}return o}}function Fp(n){return{\u0275providers:n}}function Lp(...n){return{\u0275providers:fm(0,n),\u0275fromNgModule:!0}}function fm(n,...i){const o=[],l=new Set;let u;return hr(i,p=>{const E=p;Up(E,o,[],l)&&(u||(u=[]),u.push(E))}),void 0!==u&&Vp(u,o),o}function Vp(n,i){for(let o=0;o<n.length;o++){const{providers:u}=n[o];jp(u,p=>{i.push(p)})}}function Up(n,i,o,l){if(!(n=be(n)))return!1;let u=null,p=rn(n);const E=!p&&Pn(n);
vendor: 4,996 bytes, line 1
1if(p||E){if(E&&!E.standalone)return!1;u=n}else{const L=n.ngModule;if(p=rn(L),!p)return!1;u=L}const R=l.has(u);if(E){if(R)return!1;if(l.add(u),E.dependencies){const L="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const te of L)Up(te,i,o,l)}}else{if(!p)return!1;{if(null!=p.imports&&!R){let te;l.add(u);try{hr(p.imports,we=>{Up(we,i,o,l)&&(te||(te=[]),te.push(we))})}finally{}void 0!==te&&Vp(te,i)}if(!R){const te=ms(u)||(()=>new u);i.push({provide:u,useFactory:te,deps:an},{provide:hm,useValue:u,multi:!0},{provide:Nu,useValue:()=>Q(u),multi:!0})}const L=p.providers;null==L||R||jp(L,we=>{i.push(we)})}}return u!==n&&void 0!==n.providers}function jp(n,i){for(let o of n)it(o)&&(o=o.\u0275providers),Array.isArray(o)?jp(o,i):i(o)}const Hc=me({provide:String,useValue:me});function zc(n){return null!==n&&"object"==typeof n&&Hc in n}function Wc(n){return"function"==typeof n}const Sf=new Yr("Set Injector scope."),Af={},gm={};let bd;function ec(){return void 0===bd&&(bd=new Np),bd}class il{}class Kc extends il{get destroyed(){return this._destroyed}constructor(i,o,l,u){super(),this.parent=o,this.source=l,this.scopes=u,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rf(i,E=>this.processProvider(E)),this.records.set(gh,Lu(void 0,this)),u.has("environment")&&this.records.set(il,Lu(void 0,this));const p=this.records.get(Sf);null!=p&&"string"==typeof p.value&&this.scopes.add(p.value),this.injectorDefTypes=new Set(this.get(hm.multi,an,se.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const o=ct(this),l=Be(void 0);try{return i()}finally{ct(o),Be(l)}}get(i,o=Mn,l=se.Default){this.assertNotDestroyed(),l=X(l);const u=ct(this),p=Be(void 0);try{if(!(l&se.SkipSelf)){let R=this.records.get(i);if(void 0===R){const L=function _m(n){return"function"==typeof n||"object"==typeof n&&n instanceof Yr}(i)&&Wn(i);R=L&&this.injectableDefInScope(L)?Lu(Fu(i),Af):null,this.records.set(i,R)}if(null!=R)return this.hydrate(i,R)}return(l&se.Self?ec():this.parent).get(i,o=l&se.Optional&&o===Mn?null:o)}catch(E){if("NullInjectorError"===E.name){if((E[Dr]=E[Dr]||[]).unshift(ie(i)),u)throw E;return function Ut(n,i,o,l){const u=n[Dr];throw i[en]&&u.unshift(i[en]),n.message=function ke(n,i,o,l=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==bt?n.slice(2):n;let u=ie(i);if(Array.isArray(i))u=i.map(ie).join(" -> ");else if("object"==typeof i){let p=[];for(let E in i)if(i.hasOwnProperty(E)){let R=i[E];p.push(E+":"+("string"==typeof R?JSON.stringify(R):ie(R)))}u=`{${p.join(", ")}}`}return`${o}${l?"("+l+")":""}[${u}]: ${n.replace(Gn,"\n ")}`}("\n"+n.message,u,o,l),n[vr]=u,n[Dr]=null,n}(E,i,"R3InjectorError",this.source)}throw E}finally{Be(p),ct(u)}}resolveInjectorInitializers(){const i=ct(this),o=Be(void 0);try{const l=this.get(Nu.multi,an,se.Self);for(const u of l)u()}finally{ct(i),Be(o)}}toString(){const i=[],o=this.records;for(const l of o.keys())i.push(ie(l));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Me(205,!1)}processProvider(i){let o=Wc(i=be(i))?i:be(i&&i.provide);const l=function $p(n){return zc(n)?Lu(void 0,n.useValue):Lu(Mf(n),Af)}(i);if(Wc(i)||!0!==i.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=Lu(void 0,Af,!0),u.factory=()=>ce(u.multi),this.records.set(o,u)),o=i,u.multi.push(i)}this.records.set(o,l)}hydrate(i,o){return o.value===Af&&(o.value=gm,o.value=o.factory()),"object"==typeof o.value&&o.value&&function Zy(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}injectableDefInScope(i){if(!i.providedIn)return!1;const o=be(i.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}}function Fu(n){const i=Wn(n),o=null!==i?i.factory:ms(n);if(null!==o)return o;if(n instanceof Yr)throw new Me(204,!1);if(n instanceof Function)return function mm(n){const i=n.length;if(i>0)throw D(i,"?"),new Me(204,!1);const o=function hn(n){return n&&(n[_n]||n[Mt])||null}(n);return null!==o?()=>o.factory(n):()=>new n}(n);throw new Me(204,!1)}function Mf(n,i,o){let l;if(Wc(n)){const u=be(n);return ms(u)||Fu(u)}if(zc(n))l=()=>be(n.useValue);else if(function pm(n){return!(!n||!n.useFactory)}(n))l=()=>n.useFactory(...ce(n.deps||[]));else if(function Bp(n){return!(!n||!n.useExisting)}(n))l=()=>Q(be(n.useExisting));else{const u=be(n&&(n.useClass||n.provide));if(!function ym(n){return!!n.deps}(n))return ms(u)||Fu(u);l=()=>new u(...ce(n.deps))}return l}function Lu(n,i,o=!1){return{factory:n,value:i,multi:o?[]:void 0}}function Rf(n,i){for(const o of n)Array.isArray(o)?Rf(o,i):o&&it(o)?Rf(o.\u0275providers,i):i(o)}class mh{}class Gc{}
1class Yy{resolveComponentFactory(i){throw function Vu(n){const i=Error(`No component factory found for ${ie(n)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=n,i}(i)}}let yh=(()=>{class n{}return n.NULL=new Yy,n})();function Qy(){return tc(Tt(),S())}function tc(n,i){return new Fl(xr(n,i))}let Fl=(()=>{class n{constructor(o){this.nativeElement=o}}return n.__NG_ELEMENT_ID__=Qy,n})();function Zc(n){return n instanceof Fl?n.nativeElement:n}class Hp{}let Xy=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Em(){const n=S(),o=Ci(Tt().index,n);return(yr(o)?o:n)[ir]}(),n})(),bm=(()=>{class n{}return n.\u0275prov=cn({token:n,providedIn:"root",factory:()=>null}),n})();class Of{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const Pf=new Of("15.2.9"),_h={},vh="ngOriginalError";function xf(n){return n[vh]}class qc{constructor(){this._console=console}handleError(i){const o=this._findOriginalError(i);this._console.error("ERROR",i),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(i){let o=i&&xf(i);for(;o&&xf(o);)o=xf(o);return o||null}}function Kp(n){return n.ownerDocument.defaultView}function wd(n){return n.ownerDocument}function Eh(n){return n.ownerDocument.body}function rc(n){return n instanceof Function?n():n}function Cc(n,i,o){let l=n.length;for(;;){const u=n.indexOf(i,o);if(-1===u)return u;if(0===u||n.charCodeAt(u-1)<=32){const p=i.length;if(u+p===l||n.charCodeAt(u+p)<=32)return u}o=u+1}}const Uu="ng-template";function Cm(n,i,o){let l=0,u=!0;for(;l<n.length;){let p=n[l++];if("string"==typeof p&&u){const E=n[l++];if(o&&"class"===p&&-1!==Cc(E.toLowerCase(),i,0))return!0}else{if(1===p){for(;l<n.length&&"string"==typeof(p=n[l++]);)if(p.toLowerCase()===i)return!0;return!1}"number"==typeof p&&(u=!1)}}return!1}function Yc(n){return 4===n.type&&n.value!==Uu}function r_(n,i,o){return i===(4!==n.type||o?n.value:Uu)}function Cd(n,i,o){let l=4;const u=n.attrs||[],p=function Im(n){for(let i=0;i<n.length;i++)if(gi(n[i]))return i;return n.length}(u);let E=!1;for(let R=0;R<i.length;R++){const L=i[R];if("number"!=typeof L){if(!E)if(4&l){if(l=2|1&l,""!==L&&!r_(n,L,o)||""===L&&1===i.length){if(yl(l))return!1;E=!0}}else{const te=8&l?L:i[++R];if(8&l&&null!==n.attrs){if(!Cm(n.attrs,te,o)){if(yl(l))return!1;E=!0}continue}const Ke=Qc(8&l?"class":L,u,Yc(n),o);if(-1===Ke){if(yl(l))return!1;E=!0;continue}if(""!==te){let Dt;Dt=Ke>p?"":u[Ke+1].toLowerCase();const zt=8&l?Dt:null;if(zt&&-1!==Cc(zt,te,0)||2&l&&te!==Dt){if(yl(l))return!1;E=!0}}}}else{if(!E&&!yl(l)&&!yl(L))return!1;if(E&&yl(L))continue;E=!1,l=L|1&l}}return yl(l)||E}function yl(n){return 0==(1&n)}function Qc(n,i,o,l){if(null===i)return-1;let u=0;if(l||!o){let p=!1;for(;u<i.length;){const E=i[u];if(E===n)return u;if(3===E||6===E)p=!0;else{if(1===E||2===E){let R=i[++u];for(;"string"==typeof R;)R=i[++u];continue}if(4===E)break;if(0===E){u+=4;continue}}u+=p?1:2}return-1}return function s_(n,i){let o=n.indexOf(4);if(o>-1)for(o++;o<n.length;){const l=n[o];if("number"==typeof l)return-1;if(l===i)return o;o++}return-1}(i,n)}function Zp(n,i,o=!1){for(let l=0;l<i.length;l++)if(Cd(n,i[l],o))return!0;return!1}function Dm(n,i){e:for(let o=0;o<i.length;o++){const l=i[o];if(n.length===l.length){for(let u=0;u<n.length;u++)if(n[u]!==l[u])continue e;return!0}}return!1}function Tm(n,i){return n?":not("+i.trim()+")":i}function Nf(n){let i=n[0],o=1,l=2,u="",p=!1;for(;o<n.length;){let E=n[o];if("string"==typeof E)if(2&l){const R=n[++o];u+="["+E+(R.length>0?'="'+R+'"':"")+"]"}else 8&l?u+="."+E:4&l&&(u+=" "+E);else""!==u&&!yl(E)&&(i+=Tm(p,u),u=""),l=E,p=p||!yl(l);o++}return""!==u&&(i+=Tm(p,u)),i}const Qr={};function Am(n){qp(x(),S(),ii()+n,!1)}function qp(n,i,o,l){if(!l)if(3==(3&i[pr])){const p=n.preOrderCheckHooks;null!==p&&ja(i,p,o)}else{const p=n.preOrderHooks;null!==p&&Ba(i,p,0,o)}Us(o)}const Xc={\u0275\u0275defineInjectable:cn,\u0275\u0275defineInjector:wn,\u0275\u0275inject:Q,\u0275\u0275invalidFactoryDep:ue,resolveForwardRef:be};const Mm=me({provide:String,useValue:me});function Yp(n){return void 0!==n.useClass}function Qp(n){return void 0!==n.useFactory}const Xp=Bs("Injectable",void 0,void 0,void 0,(n,i)=>function wh(n,i){let o=null,l=null;n.hasOwnProperty(_n)||Object.defineProperty(n,_n,{get:()=>(null===o&&(o=Zt().compileInjectable(Xc,`ng:///${n.name}/\u0275prov.js`,function c_(n,i){const o=i||{providedIn:null},l={name:n.name,type:n,typeArgumentCount:0,providedIn:o.providedIn};return(Yp(o)||Qp(o))&&void 0!==o.deps&&(l.deps=Qs(o.deps)),Yp(o)?l.useClass=o.useClass:function a_(n){return Mm in n}(o)?l.useValue=o.useValue:Qp(o)?l.useFactory=o.useFactory:function l_(n){return void 0!==n.useExisting}(o)&&(l.useExisting=o.useExisting),l}(n,i))),o)}),n.hasOwnProperty(Ie)||Object.defineProperty(n,Ie,{get:()=>{if(null===l){const u=Zt();l=u.compileFactory(Xc,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:Oo(n),target:u.FactoryTarget.Injectable})}return l},configurable:!0})}(n,i));function Po(n,i=null,o=null,l){const u=Rm(n,i,o,l);
1return u.resolveInjectorInitializers(),u}function Rm(n,i=null,o=null,l,u=new Set){const p=[o||an,Lp(n)];return l=l||("object"==typeof n?void 0:ie(n)),new Kc(p,i||ec(),l||null,u)}let Jc=(()=>{class n{static create(o,l){if(Array.isArray(o))return Po({name:""},l,o,"");{const u=o.name??"";return Po({name:u},o.parent,o.providers,u)}}}return n.THROW_IF_NOT_FOUND=Mn,n.NULL=new Np,n.\u0275prov=cn({token:n,providedIn:"any",factory:()=>Q(gh)}),n.__NG_ELEMENT_ID__=-1,n})();function Jp(n){return n.length>1?" ("+function u_(n){const i=[];for(let o=0;o<n.length;++o){if(i.indexOf(n[o])>-1)return i.push(n[o]),i;i.push(n[o])}return i}(n.slice().reverse()).map(l=>ie(l.token)).join(" -> ")+")":""}function Ch(n,i,o,l){const u=[i],p=o(u),E=l?function zp(n,i){const o=`${n} caused by: ${i instanceof Error?i.message:i}`,l=Error(o);return l[vh]=i,l}(p,l):Error(p);return E.addKey=d_,E.keys=u,E.injectors=[n],E.constructResolvingMessage=o,E[vh]=l,E}function d_(n,i){this.injectors.push(n),this.keys.push(i),this.message=this.constructResolvingMessage(this.keys)}function Vf(n,i){const o=[];for(let l=0,u=i.length;l<u;l++){const p=i[l];o.push(p&&0!=p.length?p.map(ie).join(" "):"?")}return Error("Cannot resolve all parameters for '"+ie(n)+"'("+o.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+ie(n)+"' is decorated with Injectable.")}function Ih(n,i){return Error(`Cannot mix multi providers and regular providers, got: ${n} ${i}`)}class _l{constructor(i,o){if(this.token=i,this.id=o,!i)throw new Me(208,!1);this.displayName=ie(this.token)}static get(i){return Uf.get(be(i))}static get numberOfKeys(){return Uf.numberOfKeys}}class tg{constructor(){this._allKeys=new Map}get(i){if(i instanceof _l)return i;if(this._allKeys.has(i))return this._allKeys.get(i);const o=new _l(i,_l.numberOfKeys);return this._allKeys.set(i,o),o}get numberOfKeys(){return this._allKeys.size}}const Uf=new tg;class Dh{constructor(i,o,l){this.key=i,this.optional=o,this.visibility=l}static fromKey(i){return new Dh(i,!1,null)}}const f_=[];class ng{constructor(i,o,l){this.key=i,this.resolvedFactories=o,this.multiProvider=l,this.resolvedFactory=this.resolvedFactories[0]}}class rg{constructor(i,o){this.factory=i,this.dependencies=o}}function ig(n){let i,o;if(n.useClass){const l=be(n.useClass);i=Ra().factory(l),o=ju(l)}else n.useExisting?(i=l=>l,o=[Dh.fromKey(_l.get(n.useExisting))]):n.useFactory?(i=n.useFactory,o=function m_(n,i){if(i){const o=i.map(l=>[l]);return i.map(l=>Bu(n,l,o))}return ju(n)}(n.useFactory,n.deps)):(i=()=>n.useValue,o=f_);return new rg(i,o)}function p_(n){return new ng(_l.get(n.provide),[ig(n)],n.multi||!1)}function Pm(n){const l=function g_(n,i){for(let o=0;o<n.length;o++){const l=n[o],u=i.get(l.key.id);if(u){if(l.multiProvider!==u.multiProvider)throw Ih(u,l);if(l.multiProvider)for(let p=0;p<l.resolvedFactories.length;p++)u.resolvedFactories.push(l.resolvedFactories[p]);else i.set(l.key.id,l)}else{let p;p=l.multiProvider?new ng(l.key,l.resolvedFactories.slice(),l.multiProvider):l,i.set(l.key.id,p)}}return i}(sg(n,[]).map(p_),new Map);return Array.from(l.values())}function sg(n,i){return n.forEach(o=>{if(o instanceof Fn)i.push({provide:o,useClass:o});else if(o&&"object"==typeof o&&void 0!==o.provide)i.push(o);else{if(!Array.isArray(o))throw function Om(n){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${n}`)}(o);sg(o,i)}}),i}function ju(n){const i=Ra().parameters(n);if(!i)return[];if(i.some(o=>null==o))throw Vf(n,i);return i.map(o=>Bu(n,o,i))}function Bu(n,i,o){let l=null,u=!1;if(!Array.isArray(i))return Th(i instanceof ei?i.token:i,u,null);let p=null;for(let E=0;E<i.length;++E){const R=i[E];R instanceof Fn?l=R:R instanceof ei?l=R.token:R instanceof ls?u=!0:R instanceof po||R instanceof Ys?p=R:R instanceof Yr&&(l=R)}if(l=be(l),null!=l)return Th(l,u,p);throw Vf(n,o)}function Th(n,i,o){return new Dh(_l.get(n),i,o)}const eu={};class $u{static resolve(i){return Pm(i)}static resolveAndCreate(i,o){const l=$u.resolve(i);return $u.fromResolvedProviders(l,o)}static fromResolvedProviders(i,o){return new xm(i,o)}}let xm=(()=>{class n{constructor(o,l){this._constructionCounter=0,this._providers=o,this.parent=l||null;const u=o.length;this.keyIds=[],this.objs=[];for(let p=0;p<u;p++)this.keyIds[p]=o[p].key.id,this.objs[p]=eu}get(o,l=Mn){return this._getByKey(_l.get(o),null,l)}resolveAndCreateChild(o){const l=$u.resolve(o);return this.createChildFromResolved(l)}createChildFromResolved(o){const l=new n(o);return l.parent=this,l}resolveAndInstantiate(o){return this.instantiateResolved($u.resolve([o])[0])}instantiateResolved(o){return this._instantiateProvider(o)}getProviderAtIndex(o){if(o<0||o>=this._providers.length)throw function eg(n){return Error(`Index ${n} is out-of-bounds.`)}(o);return this._providers[o]}_new(o){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function Lf(n,i){return Ch(n,i,function(o){return`Cannot instantiate cyclic dependency!${Jp(o)}`})}(this,o.key);return this._instantiateProvider(o)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(o){if(o.multiProvider){const l=[];for(let u=0;u<o.resolvedFactories.length;++u)l[u]=this._instantiate(o,o.resolvedFactories[u]);return l}return this._instantiate(o,o.resolvedFactories[0])}_instantiate(o,l){const u=l.factory;let p,E;try{p=l.dependencies.map(R=>this._getByReflectiveDependency(R))}catch(R){throw R.addKey&&R.addKey(this,o.key),R}try{E=u(...p)}catch(R){throw function h_(n,i,o,l){return Ch(n,l,function(u){const p=ie(u[0].token);return`${i.message}: Error during instantiation of ${p}!${Jp(u)}.`},i)}(this,R,0,o.key)}return E}_getByReflectiveDependency(o){return this._getByKey(o.key,o.visibility,o.optional?null:Mn)}_getByKey(o,l,u){return o===n.INJECTOR_KEY?this:l instanceof po?this._getByKeySelf(o,u):this._getByKeyDefault(o,u,l)}_getObjByKeyId(o){for(let l=0;l<this.keyIds.length;l++)if(this.keyIds[l]===o)return this.objs[l]===eu&&(this.objs[l]=this._new(this._providers[l])),this.objs[l];return eu}_throwOrNull(o,l){if(l!==Mn)return l;throw function Ff(n,i){return Ch(n,i,function(o){return`No provider for ${ie(o[0].token)}!${Jp(o)}`})}(this,o)}_getByKeySelf(o,l){const u=this._getObjByKeyId(o.id);return u!==eu?u:this._throwOrNull(o,l)}_getByKeyDefault(o,l,u){let p;for(p=u instanceof Ys?this.parent:this;p instanceof n;){const E=p,R=E._getObjByKeyId(o.id);if(R!==eu)return R;p=E.parent}return null!==p?p.get(o.token,l):this._throwOrNull(o,l)}
1get displayName(){return`ReflectiveInjector(providers: [${function km(n,i){const o=[];for(let l=0;l<n._providers.length;++l)o[l]=i(n.getProviderAtIndex(l));return o}(this,l=>' "'+l.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return n.INJECTOR_KEY=_l.get(Jc),n})();function Id(n,i=se.Default){const o=S();return null===o?Q(n,i):cr(Tt(),o,be(n),i)}function jf(){throw new Error("invalid")}function Bf(n,i){const o=n.contentQueries;if(null!==o)for(let l=0;l<o.length;l+=2){const p=o[l+1];if(-1!==p){const E=n.data[p];oi(o[l]),E.contentQueries(2,i[p],p)}}}function Dd(n,i,o,l,u,p,E,R,L,te,we){const Ke=i.blueprint.slice();return Ke[Si]=u,Ke[pr]=76|l,(null!==we||n&&1024&n[pr])&&(Ke[pr]|=1024),Ls(Ke),Ke[ci]=Ke[wi]=n,Ke[gr]=o,Ke[Fi]=E||n&&n[Fi],Ke[ir]=R||n&&n[ir],Ke[ns]=L||n&&n[ns]||null,Ke[Ai]=te||n&&n[Ai]||null,Ke[Zr]=p,Ke[Os]=function us(){return Eu++}(),Ke[Xr]=we,Ke[ni]=2==i.type?n[ni]:Ke,Ke}function Ic(n,i,o,l,u){let p=n.data[i];if(null===p)p=Hu(n,i,o,l,u),function Fr(){return mr.lFrame.inI18n}()&&(p.flags|=32);else if(64&p.type){p.type=o,p.value=l,p.attrs=u;const E=_r();p.injectorIndex=null===E?-1:E.injectorIndex}return Sr(p,!0),p}function Hu(n,i,o,l,u){const p=In(),E=ki(),L=n.data[i]=function E_(n,i,o,l,u,p){return{type:o,index:l,insertBeforeIndex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:u,attrs:p,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,E?p:p&&p.parent,o,i,l,u);return null===n.firstChild&&(n.firstChild=L),null!==p&&(E?null==p.child&&null!==L.parent&&(p.child=L):null===p.next&&(p.next=L,L.prev=p)),L}function tu(n,i,o,l){if(0===o)return-1;const u=i.length;for(let p=0;p<o;p++)i.push(l),n.blueprint.push(l),n.data.push(null);return u}function Sh(n,i,o){Ts(i);try{const l=n.viewQuery;null!==l&&qf(1,l,o);const u=n.template;null!==u&&$f(n,i,u,1,o),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Bf(n,i),n.staticViewQueries&&qf(2,n.viewQuery,o);const p=n.components;null!==p&&function Fm(n,i){for(let o=0;o<i.length;o++)yg(n,i[o])}(i,p)}catch(l){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),l}finally{i[pr]&=-5,Xo()}}function Td(n,i,o,l){const u=i[pr];if(128!=(128&u)){Ts(i);try{Ls(i),ss(n.bindingStartIndex),null!==o&&$f(n,i,o,2,l);const E=3==(3&u);if(E){const te=n.preOrderCheckHooks;null!==te&&ja(i,te,null)}else{const te=n.preOrderHooks;null!==te&&Ba(i,te,0,null),k(i,0)}if(function T_(n){for(let i=dl(n);null!==i;i=hl(i)){if(!i[pt])continue;const o=i[Jt];for(let l=0;l<o.length;l++){const u=o[l];512&u[pr]||Ji(u[ci],1),u[pr]|=512}}}(i),function gg(n){for(let i=dl(n);null!==i;i=hl(i))for(let o=mn;o<i.length;o++){const l=i[o],u=l[Tn];zs(l)&&Td(u,l,u.template,l[gr])}}(i),null!==n.contentQueries&&Bf(n,i),E){const te=n.contentCheckHooks;null!==te&&ja(i,te)}else{const te=n.contentHooks;null!==te&&Ba(i,te,1),k(i,1)}!function y_(n,i){const o=n.hostBindingOpCodes;if(null!==o)try{for(let l=0;l<o.length;l++){const u=o[l];if(u<0)Us(~u);else{const p=u,E=o[++l],R=o[++l];Da(E,p),R(2,i[p])}}}finally{Us(-1)}}(n,i);const R=n.components;null!==R&&function Nm(n,i){for(let o=0;o<i.length;o++)mg(n,i[o])}(i,R);const L=n.viewQuery;if(null!==L&&qf(2,L,l),E){const te=n.viewCheckHooks;null!==te&&ja(i,te)}else{const te=n.viewHooks;null!==te&&Ba(i,te,2),k(i,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),i[pr]&=-41,512&i[pr]&&(i[pr]&=-513,Ji(i[ci],-1))}finally{Xo()}}}function $f(n,i,o,l,u){const p=ii(),E=2&l;try{Us(-1),E&&i.length>ui&&qp(n,i,ui,!1),Hi(E?2:0,u),o(l,u)}finally{Us(p),Hi(E?3:1,u)}}function Hf(n,i,o){if(Cr(i)){const u=i.directiveEnd;for(let p=i.directiveStart;p<u;p++){const E=n.data[p];E.contentQueries&&E.contentQueries(1,o[p],p)}}}function og(n,i,o){gt()&&(function Ph(n,i,o,l){const u=o.directiveStart,p=o.directiveEnd;Pi(o)&&function fg(n,i,o){const l=xr(i,n),u=Ah(o),p=n[Fi],E=Dc(n,Dd(n,u,null,o.onPush?32:16,l,i,p,p.createRenderer(l,o),null,null,null));n[i.index]=E}
vendor: 4,447 bytes, line 1
1(i,o,n.data[u+o.componentOffset]),n.firstCreatePass||al(o,i),Gt(l,i);const E=o.initialInputs;for(let R=u;R<p;R++){const L=n.data[R],te=Vr(i,n,R,o);Gt(te,i),null!==E&&D_(0,R-u,te,L,0,E),ri(L)&&(Ci(o.index,i)[gr]=Vr(i,n,R,o))}}(n,i,o,xr(o,i)),64==(64&o.flags)&&Kf(n,i,o))}function zf(n,i,o=xr){const l=i.localNames;if(null!==l){let u=i.index+1;for(let p=0;p<l.length;p+=2){const E=l[p+1],R=-1===E?o(i,n):n[E];n[u++]=R}}}function Ah(n){const i=n.tView;return null===i||i.incompleteFirstPass?n.tView=Mh(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):i}function Mh(n,i,o,l,u,p,E,R,L,te){const we=ui+l,Ke=we+u,Dt=function __(n,i){const o=[];for(let l=0;l<i;l++)o.push(l<n?null:Qr);return o}(we,Ke),zt="function"==typeof te?te():te;return Dt[Tn]={type:n,blueprint:Dt,template:o,queries:null,viewQuery:R,declTNode:i,data:Dt.slice().fill(null,we),bindingStartIndex:we,expandoStartIndex:Ke,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof p?p():p,pipeRegistry:"function"==typeof E?E():E,firstChild:null,schemas:L,consts:zt,incompleteFirstPass:!1}}function ca(n,i,o,l){const u=jm(i);null===o?u.push(l):(u.push(o),n.firstCreatePass&&Yf(n).push(l,u.length-1))}function ag(n,i,o,l){for(let u in n)if(n.hasOwnProperty(u)){o=null===o?{}:o;const p=n[u];null===l?Rh(o,i,u,p):l.hasOwnProperty(u)&&Rh(o,i,l[u],p)}return o}function Rh(n,i,o,l){n.hasOwnProperty(o)?n[o].push(i,l):n[o]=[i,l]}function qa(n,i,o,l,u,p,E,R){const L=xr(i,o);let we,te=i.inputs;!R&&null!=te&&(we=te[l])?(_g(n,o,we,l,u),Pi(i)&&function b_(n,i){const o=Ci(i,n);16&o[pr]||(o[pr]|=32)}(o,i.index)):3&i.type&&(l=function lg(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(l),u=null!=E?E(u,i.value||"",l):u,p.setProperty(L,l,u))}function cg(n,i,o,l){if(gt()){const u=null===l?null:{"":-1},p=function ug(n,i){const o=n.directiveRegistry;let l=null,u=null;if(o)for(let p=0;p<o.length;p++){const E=o[p];if(Zp(i,E.selectors,!1))if(l||(l=[]),ri(E))if(null!==E.findHostDirectiveDefs){const R=[];u=u||new Map,E.findHostDirectiveDefs(E,R,u),l.unshift(...R,E),Ad(n,i,R.length)}else l.unshift(E),Ad(n,i,0);else u=u||new Map,E.findHostDirectiveDefs?.(E,l,u),l.push(E)}return null===l?null:[l,u]}(n,o);let E,R;null===p?E=R=null:[E,R]=p,null!==E&&Wf(n,i,o,E,u,R),u&&function xh(n,i,o){if(i){const l=n.localNames=[];for(let u=0;u<i.length;u+=2){const p=o[i[u+1]];if(null==p)throw new Me(-301,!1);l.push(i[u],p)}}}(o,l,u)}o.mergedAttrs=kn(o.mergedAttrs,o.attrs)}function Wf(n,i,o,l,u,p){for(let te=0;te<l.length;te++)Jn(al(o,i),n,l[te].type);!function Lm(n,i,o){n.flags|=1,n.directiveStart=i,n.directiveEnd=i+o,n.providerIndexes=i}(o,n.data.length,l.length);for(let te=0;te<l.length;te++){const we=l[te];we.providersResolver&&we.providersResolver(we)}let E=!1,R=!1,L=tu(n,i,l.length,null);for(let te=0;te<l.length;te++){const we=l[te];o.mergedAttrs=kn(o.mergedAttrs,we.hostAttrs),hg(n,o,i,L,we),dg(L,we,u),null!==we.contentQueries&&(o.flags|=4),(null!==we.hostBindings||null!==we.hostAttrs||0!==we.hostVars)&&(o.flags|=64);const Ke=we.type.prototype;!E&&(Ke.ngOnChanges||Ke.ngOnInit||Ke.ngDoCheck)&&((n.preOrderHooks??(n.preOrderHooks=[])).push(o.index),E=!0),!R&&(Ke.ngOnChanges||Ke.ngDoCheck)&&((n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(o.index),R=!0),L++}!function Oh(n,i,o){const u=i.directiveEnd,p=n.data,E=i.attrs,R=[];let L=null,te=null;for(let we=i.directiveStart;we<u;we++){const Ke=p[we],Dt=o?o.get(Ke):null,vn=Dt?Dt.outputs:null;L=ag(Ke.inputs,we,L,Dt?Dt.inputs:null),te=ag(Ke.outputs,we,te,vn);const $n=null===L||null===E||Yc(i)?null:pg(L,we,E);R.push($n)}null!==L&&(L.hasOwnProperty("class")&&(i.flags|=8),L.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=R,i.inputs=L,i.outputs=te}(n,o,p)}function Kf(n,i,o){const l=o.directiveStart,u=o.directiveEnd,p=o.index,E=function Ta(){return mr.lFrame.currentDirectiveIndex}();try{Us(p);for(let R=l;R<u;R++){const L=n.data[R],te=i[R];os(R),(null!==L.hostBindings||0!==L.hostVars||null!==L.hostAttrs)&&Sd(L,te)}}finally{Us(-1),os(E)}}function Sd(n,i){null!==n.hostBindings&&n.hostBindings(1,i)}
1function Ad(n,i,o){i.componentOffset=o,(n.components??(n.components=[])).push(i.index)}function dg(n,i,o){if(o){if(i.exportAs)for(let l=0;l<i.exportAs.length;l++)o[i.exportAs[l]]=n;ri(i)&&(o[""]=n)}}function hg(n,i,o,l,u){n.data[l]=u;const p=u.factory||(u.factory=ms(u.type)),E=new Ye(p,ri(u),Id);n.blueprint[l]=E,o[l]=E,function C_(n,i,o,l,u){const p=u.hostBindings;if(p){let E=n.hostBindingOpCodes;null===E&&(E=n.hostBindingOpCodes=[]);const R=~i.index;(function I_(n){let i=n.length;for(;i>0;){const o=n[--i];if("number"==typeof o&&o<0)return o}return 0})(E)!=R&&E.push(R),E.push(o,l,p)}}(n,i,l,tu(n,o,u.hostVars,Qr),u)}function ua(n,i,o,l,u,p){const E=xr(n,i);Gf(i[ir],E,p,n.value,o,l,u)}function Gf(n,i,o,l,u,p,E){if(null==p)n.removeAttribute(i,u,o);else{const R=null==E?Ct(p):E(p,l||"",u);n.setAttribute(i,u,R,o)}}function D_(n,i,o,l,u,p){const E=p[i];if(null!==E){const R=l.setInput;for(let L=0;L<E.length;){const te=E[L++],we=E[L++],Ke=E[L++];null!==R?l.setInput(o,Ke,te,we):o[we]=Ke}}}function pg(n,i,o){let l=null,u=0;for(;u<o.length;){const p=o[u];if(0!==p)if(5!==p){if("number"==typeof p)break;if(n.hasOwnProperty(p)){null===l&&(l=[]);const E=n[p];for(let R=0;R<E.length;R+=2)if(E[R]===i){l.push(p,E[R+1],o[u+1]);break}}u+=2}else u+=2;else u+=4}return l}function Vm(n,i,o,l){return[n,!0,!1,i,null,0,l,o,null,null]}function mg(n,i){const o=Ci(i,n);if(zs(o)){const l=o[Tn];48&o[pr]?Td(l,o,l.template,o[gr]):o[Nr]>0&&Md(o)}}function Md(n){for(let l=dl(n);null!==l;l=hl(l))for(let u=mn;u<l.length;u++){const p=l[u];if(zs(p))if(512&p[pr]){const E=p[Tn];Td(E,p,E.template,p[gr])}else p[Nr]>0&&Md(p)}const o=n[Tn].components;if(null!==o)for(let l=0;l<o.length;l++){const u=Ci(o[l],n);zs(u)&&u[Nr]>0&&Md(u)}}function yg(n,i){const o=Ci(i,n),l=o[Tn];(function Um(n,i){for(let o=i.length;o<n.blueprint.length;o++)i.push(n.blueprint[o])})(l,o),Sh(l,o,o[gr])}function Dc(n,i){return n[ws]?n[ds][qi]=i:n[ws]=i,n[ds]=i,i}function Rd(n){for(;n;){n[pr]|=32;const i=bu(n);if(di(n)&&!i)return n;n=i}return null}function Zf(n,i,o,l=!0){const u=i[Fi];u.begin&&u.begin();try{Td(n,i,n.template,o)}catch(E){throw l&&Qf(i,E),E}finally{u.end&&u.end()}}function qf(n,i,o){oi(0),i(n,o)}function jm(n){return n[bi]||(n[bi]=[])}function Yf(n){return n.cleanup||(n.cleanup=[])}function Bm(n,i,o){return(null===n||ri(n))&&(o=function Mi(n){for(;Array.isArray(n);){if("object"==typeof n[Cs])return n;n=n[Si]}return null}(o[i.index])),o[ir]}function Qf(n,i){const o=n[Ai],l=o?o.get(qc,null):null;l&&l.handleError(i)}function _g(n,i,o,l,u){for(let p=0;p<o.length;){const E=o[p++],R=o[p++],L=i[E],te=n.data[E];null!==te.setInput?te.setInput(L,u,l,R):L[R]=u}}function Ll(n,i,o){const l=ys(i,n);th(n[ir],l,o)}function Xf(n,i,o){let l=o?n.styles:null,u=o?n.classes:null,p=0;if(null!==i)for(let E=0;E<i.length;E++){const R=i[E];"number"==typeof R?p=R:1==p?u=Re(u,R):2==p&&(l=Re(l,R+": "+i[++E]+";"))}o?n.styles=l:n.stylesWithoutHost=l,o?n.classes=u:n.classesWithoutHost=u}function Od(n,i,o,l,u=!1){for(;null!==o;){const p=i[o.index];if(null!==p&&l.push(vi(p)),Er(p))for(let R=mn;R<p.length;R++){const L=p[R],te=L[Tn].firstChild;null!==te&&Od(L[Tn],L,te,l)}const E=o.type;if(8&E)Od(n,i,o.child,l);else if(32&E){const R=gc(o,i);let L;for(;L=R();)l.push(L)}else if(16&E){const R=mf(i,o);if(Array.isArray(R))l.push(...R);else{const L=bu(i[ni]);Od(L[Tn],L,R,l,!0)}}o=u?o.projectionNext:o.next}return l}class zu{get rootNodes(){const i=this._lView,o=i[Tn];return Od(o,i,o.firstChild,[])}constructor(i,o){this._lView=i,this._cdRefInjectingView=o,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[gr]}set context(i){this._lView[gr]=i}get destroyed(){return 128==(128&this._lView[pr])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[ci];if(Er(i)){const o=i[Ot],l=o?o.indexOf(this):-1;l>-1&&(yc(i,l),w(o,l))}this._attachedToViewContainer=!1}Cu(this._lView[Tn],this._lView)}onDestroy(i){ca(this._lView[Tn],this._lView,null,i)}markForCheck(){Rd(this._cdRefInjectingView||this._lView)}detach(){this._lView[pr]&=-65}reattach(){this._lView[pr]|=64}detectChanges(){Zf(this._lView[Tn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Me(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rh(n,i){Uc(n,i,i[ir],2,null,null)}(this._lView[Tn],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Me(902,!1);this._appRef=i}}class vg extends zu{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Zf(i[Tn],i,i[gr],!1)}checkNoChanges(){}get context(){return null}}class Jf extends yh{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const o=Pn(i);return new ru(o,this.ngModule)}}function ep(n){const i=[];for(let o in n)n.hasOwnProperty(o)&&i.push({propName:n[o],templateName:o});return i}class nu{constructor(i,o){this.injector=i,this.parentInjector=o}get(i,o,l){l=X(l);const u=this.injector.get(i,_h,l);return u!==_h||o===_h?u:this.parentInjector.get(i,o,l)}}class ru extends Gc{get inputs(){return ep(this.componentDef.inputs)}get outputs(){return ep(this.componentDef.outputs)}constructor(i,o){super(),this.componentDef=i,this.ngModule=o,this.componentType=i.type,this.selector=function Sm(n){return n.map(Nf).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!o}create(i,o,l,u){let p=(u=u||this.ngModule)instanceof il?u:u?.injector;p&&null!==this.componentDef.getStandaloneInjector&&(p=this.componentDef.getStandaloneInjector(p)||p);const E=p?new nu(i,p):i,R=E.get(Hp,null);if(null===R)throw new Me(407,!1);const L=E.get(bm,null),te=R.createRenderer(null,this.componentDef),we=this.componentDef.selectors[0][0]||"div",Ke=l?function v_(n,i,o){return n.selectRootElement(i,o===Et.ShadowDom)}(te,l,this.componentDef.encapsulation):ld(te,we,function Pd(n){const i=n.toLowerCase();return"svg"===i?Ki:"math"===i?Ds:null}
1(we)),Dt=this.componentDef.onPush?288:272,zt=Mh(0,null,null,1,0,null,null,null,null,null),vn=Dd(null,zt,null,Dt,null,null,R,te,L,E,null);let $n,rr;Ts(vn);try{const Ir=this.componentDef;let Gr,An=null;Ir.findHostDirectiveDefs?(Gr=[],An=new Map,Ir.findHostDirectiveDefs(Ir,Gr,An),Gr.push(Ir)):Gr=[Ir];const ai=function $m(n,i){const o=n[Tn],l=ui;return n[l]=i,Ic(o,l,2,"#host",null)}(vn,Ke),yo=function xd(n,i,o,l,u,p,E,R){const L=u[Tn];!function A_(n,i,o,l){for(const u of n)i.mergedAttrs=kn(i.mergedAttrs,u.hostAttrs);null!==i.mergedAttrs&&(Xf(i,i.mergedAttrs,!0),null!==o&&lh(l,o,i))}(l,n,i,E);const te=p.createRenderer(i,o),we=Dd(u,Ah(o),null,o.onPush?32:16,u[n.index],n,p,te,R||null,null,null);return L.firstCreatePass&&Ad(L,n,l.length-1),Dc(u,we),u[n.index]=we}(ai,Ke,Ir,Gr,vn,R,te);rr=Eo(zt,ui),Ke&&function Eg(n,i,o,l){if(l)or(n,o,["ng-version",Pf.full]);else{const{attrs:u,classes:p}=function o_(n){const i=[],o=[];let l=1,u=2;for(;l<n.length;){let p=n[l];if("string"==typeof p)2===u?""!==p&&i.push(p,n[++l]):8===u&&o.push(p);else{if(!yl(u))break;u=p}l++}return{attrs:i,classes:o}}(i.selectors[0]);u&&or(n,o,u),p&&p.length>0&&Za(n,o,p.join(" "))}}(te,Ir,Ke,l),void 0!==o&&function bg(n,i,o){const l=n.projection=[];for(let u=0;u<i.length;u++){const p=o[u];l.push(null!=p?Array.from(p):null)}}(rr,this.ngContentSelectors,o),$n=function M_(n,i,o,l,u,p){const E=Tt(),R=u[Tn],L=xr(E,u);Wf(R,u,E,o,null,l);for(let we=0;we<o.length;we++)Gt(Vr(u,R,E.directiveStart+we,E),u);Kf(R,u,E),L&&Gt(L,u);const te=Vr(u,R,E.directiveStart+E.componentOffset,E);if(n[gr]=u[gr]=te,null!==p)for(const we of p)we(te,i);return Hf(R,E,n),te}(yo,Ir,Gr,An,vn,[tp]),Sh(zt,vn,null)}finally{Xo()}return new Wu(this.componentType,$n,tc(rr,vn),vn,rr)}}class Wu extends mh{constructor(i,o,l,u,p){super(),this.location=l,this._rootLView=u,this._tNode=p,this.instance=o,this.hostView=this.changeDetectorRef=new vg(u),this.componentType=i}setInput(i,o){const l=this._tNode.inputs;let u;if(null!==l&&(u=l[i])){const p=this._rootLView;_g(p[Tn],p,u,i,o),Rd(Ci(this._tNode.index,p))}}get injector(){return new ps(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function tp(){const n=Tt();Co(S()[Tn],n)}function np(n){return Object.getPrototypeOf(n.prototype).constructor}function wg(n){let i=np(n.type),o=!0;const l=[n];for(;i;){let u;if(ri(n))u=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Me(903,!1);u=i.\u0275dir}if(u){if(o){l.push(u);const E=n;E.inputs=Nh(n.inputs),E.declaredInputs=Nh(n.declaredInputs),E.outputs=Nh(n.outputs);const R=u.hostBindings;R&&Hm(n,R);const L=u.viewQuery,te=u.contentQueries;if(L&&Cg(n,L),te&&O_(n,te),Oe(n.inputs,u.inputs),Oe(n.declaredInputs,u.declaredInputs),Oe(n.outputs,u.outputs),ri(u)&&u.data.animation){const we=n.data;we.animation=(we.animation||[]).concat(u.data.animation)}}const p=u.features;if(p)for(let E=0;E<p.length;E++){const R=p[E];R&&R.ngInherit&&R(n),R===wg&&(o=!1)}}i=Object.getPrototypeOf(i)}!function R_(n){let i=0,o=null;for(let l=n.length-1;l>=0;l--){const u=n[l];u.hostVars=i+=u.hostVars,u.hostAttrs=kn(u.hostAttrs,o=kn(o,u.hostAttrs))}}(l)}function Nh(n){return n===ht?{}:n===an?[]:n}function Cg(n,i){const o=n.viewQuery;n.viewQuery=o?(l,u)=>{i(l,u),o(l,u)}:i}function O_(n,i){const o=n.contentQueries;n.contentQueries=o?(l,u,p)=>{i(l,u,p),o(l,u,p)}:i}function Hm(n,i){const o=n.hostBindings;n.hostBindings=o?(l,u)=>{i(l,u),o(l,u)}:i}const P_=["providersResolver"],zm=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Ig(n){let o,i=np(n.type);o=ri(n)?i.\u0275cmp:i.\u0275dir;const l=n;for(const u of P_)l[u]=o[u];if(ri(o))for(const u of zm)l[u]=o[u]}function Dg(n){return i=>{i.findHostDirectiveDefs=Tg,i.hostDirectives=(Array.isArray(n)?n:n()).map(o=>"function"==typeof o?{directive:be(o),inputs:ht,outputs:ht}:{directive:be(o.directive),inputs:Wm(o.inputs),outputs:Wm(o.outputs)})}}function Tg(n,i,o){if(null!==n.hostDirectives)for(const l of n.hostDirectives){const u=kr(l.directive);x_(u.declaredInputs,l.inputs),Tg(u,i,o),o.set(u,l),i.push(u)}}function Wm(n){if(void 0===n||0===n.length)return ht;const i={};for(let o=0;o<n.length;o+=2)i[n[o]]=n[o+1];return i}function x_(n,i){for(const o in i)i.hasOwnProperty(o)&&(n[i[o]]=n[o])}
1function kd(n){return!!Fh(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function Fh(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Zm(n,i){const o=kd(n),l=kd(i);return o&&l?function Sg(n,i,o){const l=n[Symbol.iterator](),u=i[Symbol.iterator]();for(;;){const p=l.next(),E=u.next();if(p.done&&E.done)return!0;if(p.done||E.done||!o(p.value,E.value))return!1}}(n,i,Zm):!(o||!n||"object"!=typeof n&&"function"!=typeof n||l||!i||"object"!=typeof i&&"function"!=typeof i)||Object.is(n,i)}function vl(n,i,o){return n[i]=o}function Nd(n,i){return n[i]}function Zo(n,i,o){return!Object.is(n[i],o)&&(n[i]=o,!0)}function iu(n,i,o,l){const u=Zo(n,i,o);return Zo(n,i+1,l)||u}function rp(n,i,o,l,u){const p=iu(n,i,o,l);return Zo(n,i+2,u)||p}function Ya(n,i,o,l,u,p){const E=iu(n,i,o,l);return iu(n,i+2,u,p)||E}function Ag(n,i,o,l){const u=S();return Zo(u,ho(),i)&&(x(),ua(Ti(),u,n,i,o,l)),Ag}function su(n,i){let o=!1,l=is();for(let p=1;p<i.length;p+=2)o=Zo(n,l++,i[p])||o;if(ss(l),!o)return Qr;let u=i[0];for(let p=1;p<i.length;p+=2)u+=Ct(i[p])+i[p+1];return u}function Fd(n,i,o,l){return Zo(n,ho(),o)?i+Ct(o)+l:Qr}function ou(n,i,o,l,u,p){const R=iu(n,is(),o,u);return Ui(2),R?i+Ct(o)+l+Ct(u)+p:Qr}function Ld(n,i,o,l,u,p,E,R){const te=rp(n,is(),o,u,E);return Ui(3),te?i+Ct(o)+l+Ct(u)+p+Ct(E)+R:Qr}function au(n,i,o,l,u,p,E,R,L,te){const Ke=Ya(n,is(),o,u,E,L);return Ui(4),Ke?i+Ct(o)+l+Ct(u)+p+Ct(E)+R+Ct(L)+te:Qr}function lu(n,i,o,l,u,p,E,R,L,te,we,Ke){const Dt=is();let zt=Ya(n,Dt,o,u,E,L);return zt=Zo(n,Dt+4,we)||zt,Ui(5),zt?i+Ct(o)+l+Ct(u)+p+Ct(E)+R+Ct(L)+te+Ct(we)+Ke:Qr}function cu(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt){const vn=is();let $n=Ya(n,vn,o,u,E,L);return $n=iu(n,vn+4,we,Dt)||$n,Ui(6),$n?i+Ct(o)+l+Ct(u)+p+Ct(E)+R+Ct(L)+te+Ct(we)+Ke+Ct(Dt)+zt:Qr}function Vl(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n){const rr=is();let Ir=Ya(n,rr,o,u,E,L);return Ir=rp(n,rr+4,we,Dt,vn)||Ir,Ui(7),Ir?i+Ct(o)+l+Ct(u)+p+Ct(E)+R+Ct(L)+te+Ct(we)+Ke+Ct(Dt)+zt+Ct(vn)+$n:Qr}function Ku(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir){const Gr=is();let An=Ya(n,Gr,o,u,E,L);return An=Ya(n,Gr+4,we,Dt,vn,rr)||An,Ui(8),An?i+Ct(o)+l+Ct(u)+p+Ct(E)+R+Ct(L)+te+Ct(we)+Ke+Ct(Dt)+zt+Ct(vn)+$n+Ct(rr)+Ir:Qr}function Lh(n,i,o,l,u,p){const E=S(),R=Fd(E,i,o,l);return R!==Qr&&ua(Ti(),E,n,R,u,p),Lh}function Mg(n,i,o,l,u,p,E,R){const L=S(),te=ou(L,i,o,l,u,p);return te!==Qr&&ua(Ti(),L,n,te,E,R),Mg}function Vh(n,i,o,l,u,p,E,R,L,te){const we=S(),Ke=Ld(we,i,o,l,u,p,E,R);return Ke!==Qr&&ua(Ti(),we,n,Ke,L,te),Vh}function Ul(n,i,o,l,u,p,E,R,L,te,we,Ke){const Dt=S(),zt=au(Dt,i,o,l,u,p,E,R,L,te);return zt!==Qr&&ua(Ti(),Dt,n,zt,we,Ke),Ul}function Uh(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt){const vn=S(),$n=lu(vn,i,o,l,u,p,E,R,L,te,we,Ke);return $n!==Qr&&ua(Ti(),vn,n,$n,Dt,zt),Uh}function Rg(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n){const rr=S(),Ir=cu(rr,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt);return Ir!==Qr&&ua(Ti(),rr,n,Ir,vn,$n),Rg}function jh(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir){const Gr=S(),An=Vl(Gr,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n);return An!==Qr&&ua(Ti(),Gr,n,An,rr,Ir),jh}function Og(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir,Gr,An){const ai=S(),yo=Ku(ai,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir);return yo!==Qr&&ua(Ti(),ai,n,yo,Gr,An),Og}function Pg(n,i,o,l){const u=S(),p=su(u,i);return p!==Qr&&ua(Ti(),u,n,p,o,l),Pg}function ip(n){const i=tt(n);Zf(i[Tn],i,n)}function sp(n,i,o,l,u,p,E,R){const L=S(),te=x(),we=n+ui,Ke=te.firstCreatePass?function N_(n,i,o,l,u,p,E,R,L){const te=i.consts,we=Ic(i,n,4,E||null,Gi(te,R));cg(i,o,we,Gi(te,L)),Co(i,we);const Ke=we.tView=Mh(2,we,l,u,p,i.directiveRegistry,i.pipeRegistry,null,i.schemas,te);return null!==i.queries&&(i.queries.template(i,we),Ke.queries=i.queries.embeddedTView(we)),we}(we,te,L,i,o,l,u,p,E):te.data[we];Sr(Ke,!1);const Dt=L[ir].createComment("");Vc(te,L,Dt,Ke),Gt(Dt,L),Dc(L,L[we]=Vm(Dt,L,Dt,Ke)),ks(Ke)&&og(te,L,Ke),null!=E&&zf(L,Ke,R)}function qm(n,i,o,l){o>=n.data.length&&(n.data[o]=null,n.blueprint[o]=null),i[o]=l}function op(n){return Vi(function _s(){return mr.lFrame.contextLView}(),ui+n)}function xg(n,i,o){const l=S();return Zo(l,ho(),i)&&qa(x(),Ti(),l,n,i,l[ir],o,!1),xg}function Bh(n,i,o,l,u){const E=u?"class":"style";_g(n,o,i.inputs[E],E,l)}function Vd(n,i,o,l){const u=S(),p=x(),E=ui+n,R=u[ir],L=p.firstCreatePass?function Ym(n,i,o,l,u,p){const E=i.consts,L=Ic(i,n,2,l,Gi(E,u));return cg(i,o,L,Gi(E,p)),null!==L.attrs&&Xf(L,L.attrs,!1),null!==L.mergedAttrs&&Xf(L,L.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,L),L}(E,p,u,i,o,l):p.data[E],te=u[E]=ld(R,i,function Ua(){return mr.lFrame.currentNamespace}()),we=ks(L);return Sr(L,!0),lh(R,te,L),32!=(32&L.flags)&&Vc(p,u,te,L),0===function W(){return mr.lFrame.elementDepthCount}()&&Gt(te,u),function Ae(){mr.lFrame.elementDepthCount++}
vendor: 9,558 bytes, line 1
1(),we&&(og(p,u,L),Hf(p,L,u)),null!==l&&zf(u,L),Vd}function $h(){let n=Tt();ki()?Jr():(n=n.parent,Sr(n,!1));const i=n;!function Je(){mr.lFrame.elementDepthCount--}();const o=x();return o.firstCreatePass&&(Co(o,n),Cr(n)&&o.queries.elementEnd(n)),null!=i.classesWithoutHost&&function $r(n){return 0!=(8&n.flags)}(i)&&Bh(o,i,S(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function Lr(n){return 0!=(16&n.flags)}(i)&&Bh(o,i,S(),i.stylesWithoutHost,!1),$h}function kg(n,i,o,l){return Vd(n,i,o,l),$h(),kg}function Ud(n,i,o){const l=S(),u=x(),p=n+ui,E=u.firstCreatePass?function F_(n,i,o,l,u){const p=i.consts,E=Gi(p,l),R=Ic(i,n,8,"ng-container",E);return null!==E&&Xf(R,E,!0),cg(i,o,R,Gi(p,u)),null!==i.queries&&i.queries.elementStart(i,R),R}(p,u,l,i,o):u.data[p];Sr(E,!0);const R=l[p]=l[ir].createComment("");return Vc(u,l,R,E),Gt(R,l),ks(E)&&(og(u,l,E),Hf(u,E,l)),null!=o&&zf(l,E),Ud}function ap(){let n=Tt();const i=x();return ki()?Jr():(n=n.parent,Sr(n,!1)),i.firstCreatePass&&(Co(i,n),Cr(n)&&i.queries.elementEnd(n)),ap}function Hh(n,i,o){return Ud(n,i,o),ap(),Hh}function lp(){return S()}function zh(n){return!!n&&"function"==typeof n.then}function Qm(n){return!!n&&"function"==typeof n.subscribe}const jd=Qm;function Ng(n,i,o,l){const u=S(),p=x(),E=Tt();return Gu(p,u,u[ir],E,n,i,l),Ng}function Wh(n,i){const o=Tt(),l=S(),u=x();return Gu(u,l,Bm(as(u.data),o,l),o,n,i),Wh}function Gu(n,i,o,l,u,p,E){const R=ks(l),te=n.firstCreatePass&&Yf(n),we=i[gr],Ke=jm(i);let Dt=!0;if(3&l.type||E){const $n=xr(l,i),rr=E?E($n):$n,Ir=Ke.length,Gr=E?ai=>E(vi(ai[l.index])):l.index;let An=null;if(!E&&R&&(An=function Xm(n,i,o,l){const u=n.cleanup;if(null!=u)for(let p=0;p<u.length-1;p+=2){const E=u[p];if(E===o&&u[p+1]===l){const R=i[bi],L=u[p+2];return R.length>L?R[L]:null}"string"==typeof E&&(p+=2)}return null}(n,i,u,l.index)),null!==An)(An.__ngLastListenerFn__||An).__ngNextListenerFn__=p,An.__ngLastListenerFn__=p,Dt=!1;else{p=Kh(l,i,we,p,!1);const ai=o.listen(rr,u,p);Ke.push(p,ai),te&&te.push(u,Gr,Ir,Ir+1)}}else p=Kh(l,i,we,p,!1);const zt=l.outputs;let vn;if(Dt&&null!==zt&&(vn=zt[u])){const $n=vn.length;if($n)for(let rr=0;rr<$n;rr+=2){const yo=i[vn[rr]][vn[rr+1]].subscribe(p),$o=Ke.length;Ke.push(p,yo),te&&te.push(u,l.index,$o,-($o+1))}}}function Fg(n,i,o,l){try{return Hi(6,i,o),!1!==o(l)}catch(u){return Qf(n,u),!1}finally{Hi(7,i,o)}}function Kh(n,i,o,l,u){return function p(E){if(E===Function)return l;Rd(n.componentOffset>-1?Ci(n.index,i):i);let L=Fg(i,o,l,E),te=p.__ngNextListenerFn__;for(;te;)L=Fg(i,o,te,E)&&L,te=te.__ngNextListenerFn__;return u&&!1===L&&(E.preventDefault(),E.returnValue=!1),L}}function Jm(n=1){return function fo(n){return(mr.lFrame.contextLView=function Ss(n,i){for(;n>0;)i=i[wi],n--;return i}(n,mr.lFrame.contextLView))[gr]}(n)}function L_(n,i){let o=null;const l=function i_(n){const i=n.attrs;if(null!=i){const o=i.indexOf(5);if(!(1&o))return i[o+1]}return null}(n);for(let u=0;u<i.length;u++){const p=i[u];if("*"!==p){if(null===l?Zp(n,p,!0):Dm(l,p))return u}else o=u}return o}function ey(n){const i=S()[ni][Zr];if(!i.projection){const l=i.projection=D(n?n.length:1,null),u=l.slice();let p=i.child;for(;null!==p;){const E=n?L_(p,n):0;null!==E&&(u[E]?u[E].projectionNext=p:l[E]=p,u[E]=p),p=p.next}}}function ty(n,i=0,o){const l=S(),u=x(),p=Ic(u,ui+n,16,null,o||null);null===p.projection&&(p.projection=i),Jr(),32!=(32&p.flags)&&function Tu(n,i,o){yf(i[ir],0,i,o,Zl(n,o,i),ud(o.parent||i[Zr],o,i))}(u,l,p)}function Bd(n,i,o){return $d(n,"",i,"",o),Bd}function $d(n,i,o,l,u){const p=S(),E=Fd(p,i,o,l);return E!==Qr&&qa(x(),Ti(),p,n,E,p[ir],u,!1),$d}function Gh(n,i,o,l,u,p,E){const R=S(),L=ou(R,i,o,l,u,p);return L!==Qr&&qa(x(),Ti(),R,n,L,R[ir],E,!1),Gh}function Zh(n,i,o,l,u,p,E,R,L){const te=S(),we=Ld(te,i,o,l,u,p,E,R);return we!==Qr&&qa(x(),Ti(),te,n,we,te[ir],L,!1),Zh}function cp(n,i,o,l,u,p,E,R,L,te,we){const Ke=S(),Dt=au(Ke,i,o,l,u,p,E,R,L,te);return Dt!==Qr&&qa(x(),Ti(),Ke,n,Dt,Ke[ir],we,!1),cp}function qh(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt){const zt=S(),vn=lu(zt,i,o,l,u,p,E,R,L,te,we,Ke);return vn!==Qr&&qa(x(),Ti(),zt,n,vn,zt[ir],Dt,!1),qh}function Yh(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn){const $n=S(),rr=cu($n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt);return rr!==Qr&&qa(x(),Ti(),$n,n,rr,$n[ir],vn,!1),Yh}function Hd(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr){const Ir=S(),Gr=Vl(Ir,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n);return Gr!==Qr&&qa(x(),Ti(),Ir,n,Gr,Ir[ir],rr,!1),Hd}function Qh(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir,Gr){const An=S(),ai=Ku(An,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir);return ai!==Qr&&qa(x(),Ti(),An,n,ai,An[ir],Gr,!1),Qh}function up(n,i,o){const l=S(),u=su(l,i);return u!==Qr&&qa(x(),Ti(),l,n,u,l[ir],o,!1),up}function Zu(n,i){return n<<17|i<<2}function Tc(n){return n>>17&32767}function uu(n){return 2|n}function Sc(n){return(131068&n)>>2}function Vg(n,i){return-131069&n|i<<2}function Ug(n){return 1|n}function iy(n,i,o,l,u){const p=n[o+1],E=null===i;let R=l?Tc(p):Sc(p),L=!1;for(;0!==R&&(!1===L||E);){const we=n[R+1];B_(n[R],i)&&(L=!0,n[R+1]=l?Ug(we):uu(we)),R=l?Tc(we):Sc(we)}L&&(n[o+1]=l?uu(p):Ug(p))}function B_(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&tn(n,i)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jg(n){return n.substring(Bo.key,Bo.keyEnd)}function sy(n){return n.substring(Bo.value,Bo.valueEnd)}function $g(n,i){const o=Bo.textEnd;return o===i?-1:(i=Bo.keyEnd=function ay(n,i,o){for(;i<o&&n.charCodeAt(i)>32;)i++;return i}(n,Bo.key=i,o),fi(n,i,o))}function Hg(n,i){const o=Bo.textEnd;let l=Bo.key=fi(n,i,o);return o===l?-1:(l=Bo.keyEnd=function ly(n,i,o){let l;for(;i<o&&(45===(l=n.charCodeAt(i))||95===l||(-33&l)>=65&&(-33&l)<=90||l>=48&&l<=57);)i++;return i}(n,l,o),l=zd(n,l,o),l=Bo.value=fi(n,l,o),l=Bo.valueEnd=function cy(n,i,o){let l=-1,u=-1,p=-1,E=i,R=E;for(;E<o;){const L=n.charCodeAt(E++);if(59===L)return R;34===L||39===L?R=E=to(n,L,E,o):i===E-4&&85===p&&82===u&&76===l&&40===L?R=E=to(n,41,E,o):L>32&&(R=E),p=u,u=l,l=-33&L}return R}(n,l,o),zd(n,l,o))}function Xh(n){Bo.key=0,Bo.keyEnd=0,Bo.value=0,Bo.valueEnd=0,Bo.textEnd=n.length}function fi(n,i,o){for(;i<o&&n.charCodeAt(i)<=32;)i++;return i}function zd(n,i,o,l){return(i=fi(n,i,o))<o&&i++,i}function to(n,i,o,l){let u=-1,p=o;for(;p<l;){const E=n.charCodeAt(p++);if(E==i&&92!==u)return p;u=92==E&&92===u?0:E}throw new Error}function El(n,i,o){return Bl(n,i,o,!1),El}function zg(n,i){return Bl(n,i,null,!0),zg}function jl(n){sl(Wg,uy,n,!1)}function uy(n,i){for(let o=function oy(n){return Xh(n),Hg(n,fi(n,0,Bo.textEnd))}(i);o>=0;o=Hg(i,o))Wg(n,jg(i),sy(i))}function dy(n){sl(H_,bl,n,!0)}function bl(n,i){for(let o=function Bg(n){return Xh(n),$g(n,fi(n,0,Bo.textEnd))}(i);o>=0;o=$g(i,o))Ce(n,jg(i),!0)}function Bl(n,i,o,l){const u=S(),p=x(),E=Ui(2);p.firstUpdatePass&&fy(p,n,E,l),i!==Qr&&Zo(u,E,i)&&py(p,p.data[ii()],u,u[ir],n,u[E+1]=function W_(n,i){return null==n||""===n||("string"==typeof i?n+=i:"object"==typeof n&&(n=ie(eo(n)))),n}(i,o),l,E)}function sl(n,i,o,l){const u=x(),p=Ui(2);u.firstUpdatePass&&fy(u,null,p,l);const E=S();if(o!==Qr&&Zo(E,p,o)){const R=u.data[ii()];if(my(R,l)&&!hy(u,p)){let L=l?R.classesWithoutHost:R.stylesWithoutHost;null!==L&&(o=Re(L,o||"")),Bh(u,R,E,o,l)}else!function z_(n,i,o,l,u,p,E,R){u===Qr&&(u=an);let L=0,te=0,we=0<u.length?u[0]:null,Ke=0<p.length?p[0]:null;for(;null!==we||null!==Ke;){const Dt=L<u.length?u[L+1]:void 0,zt=te<p.length?p[te+1]:void 0;let $n,vn=null;we===Ke?(L+=2,te+=2,Dt!==zt&&(vn=Ke,$n=zt)):null===Ke||null!==we&&we<Ke?(L+=2,vn=we):(te+=2,vn=Ke,$n=zt),null!==vn&&py(n,i,o,l,vn,$n,E,R),we=L<u.length?u[L]:null,Ke=te<p.length?p[te]:null}}(u,R,E,E[ir],E[p+1],E[p+1]=function $_(n,i,o){if(null==o||""===o)return an;const l=[],u=eo(o);if(Array.isArray(u))for(let p=0;p<u.length;p++)n(l,u[p],!0);else if("object"==typeof u)for(const p in u)u.hasOwnProperty(p)&&n(l,p,u[p]);else"string"==typeof u&&i(l,u);return l}(n,i,o),l,p)}}function hy(n,i){return i>=n.expandoStartIndex}function fy(n,i,o,l){const u=n.data;if(null===u[o+1]){const p=u[ii()],E=hy(n,o);my(p,l)&&null===i&&!E&&(i=!1),i=function xs(n,i,o,l){const u=as(n);let p=l?i.residualClasses:i.residualStyles;if(null===u)0===(l?i.classBindings:i.styleBindings)&&(o=Jh(o=dp(null,n,i,o,l),i.attrs,l),p=null);else{const E=i.directiveStylingLast;if(-1===E||n[E]!==u)if(o=dp(u,n,i,o,l),null===p){let L=function iE(n,i,o){const l=o?i.classBindings:i.styleBindings;if(0!==Sc(l))return n[Tc(l)]}(n,i,l);void 0!==L&&Array.isArray(L)&&(L=dp(null,n,i,L[1],l),L=Jh(L,i.attrs,l),function sE(n,i,o,l){n[Tc(o?i.classBindings:i.styleBindings)]=l}(n,i,l,L))}else p=function To(n,i,o){let l;const u=i.directiveEnd;for(let p=1+i.directiveStylingLast;p<u;p++)l=Jh(l,n[p].hostAttrs,o);return Jh(l,i.attrs,o)}(n,i,l)}return void 0!==p&&(l?i.residualClasses=p:i.residualStyles=p),o}(u,p,i,l),function ry(n,i,o,l,u,p){let E=p?i.classBindings:i.styleBindings,R=Tc(E),L=Sc(E);n[l]=o;let we,te=!1;if(Array.isArray(o)?(we=o[1],(null===we||tn(o,we)>0)&&(te=!0)):we=o,u)if(0!==L){const Dt=Tc(n[R+1]);n[l+1]=Zu(Dt,R),0!==Dt&&(n[Dt+1]=Vg(n[Dt+1],l)),n[R+1]=function ny(n,i){return 131071&n|i<<17}(n[R+1],l)}else n[l+1]=Zu(R,0),0!==R&&(n[R+1]=Vg(n[R+1],l)),R=l;else n[l+1]=Zu(L,0),0===R?R=l:n[L+1]=Vg(n[L+1],l),L=l;te&&(n[l+1]=uu(n[l+1])),iy(n,we,l,!0),iy(n,we,l,!1),function j_(n,i,o,l,u){const p=u?n.residualClasses:n.residualStyles;null!=p&&"string"==typeof i&&tn(p,i)>=0&&(o[l+1]=Ug(o[l+1]))}(i,we,n,l,p),E=Zu(R,L),p?i.classBindings=E:i.styleBindings=E}(u,p,i,o,E,l)}}function dp(n,i,o,l,u){let p=null;const E=o.directiveEnd;let R=o.directiveStylingLast;
1for(-1===R?R=o.directiveStart:R++;R<E&&(p=i[R],l=Jh(l,p.hostAttrs,u),p!==n);)R++;return null!==n&&(o.directiveStylingLast=R),l}function Jh(n,i,o){const l=o?1:2;let u=-1;if(null!==i)for(let p=0;p<i.length;p++){const E=i[p];"number"==typeof E?u=E:u===l&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Ce(n,E,!!o||i[++p]))}return void 0===n?null:n}function Wg(n,i,o){Ce(n,i,eo(o))}function H_(n,i,o){const l=String(i);""!==l&&!l.includes(" ")&&Ce(n,l,o)}function py(n,i,o,l,u,p,E,R){if(!(3&i.type))return;const L=n.data,te=L[R+1],we=function V_(n){return 1==(1&n)}(te)?gy(L,i,o,u,Sc(te),E):void 0;Kg(we)||(Kg(p)||function Lg(n){return 2==(2&n)}(te)&&(p=gy(L,null,o,u,R,E)),function _f(n,i,o,l,u){if(i)u?n.addClass(o,l):n.removeClass(o,l);else{let p=-1===l.indexOf("-")?void 0:_a.DashCase;null==u?n.removeStyle(o,l,p):("string"==typeof u&&u.endsWith("!important")&&(u=u.slice(0,-10),p|=_a.Important),n.setStyle(o,l,u,p))}}(l,E,ys(ii(),o),u,p))}function gy(n,i,o,l,u,p){const E=null===i;let R;for(;u>0;){const L=n[u],te=Array.isArray(L),we=te?L[1]:L,Ke=null===we;let Dt=o[u+1];Dt===Qr&&(Dt=Ke?an:void 0);let zt=Ke?_t(Dt,l):we===l?Dt:void 0;if(te&&!Kg(zt)&&(zt=_t(L,l)),Kg(zt)&&(R=zt,E))return R;const vn=n[u+1];u=E?Tc(vn):Sc(vn)}if(null!==i){let L=p?i.residualClasses:i.residualStyles;null!=L&&(R=_t(L,l))}return R}function Kg(n){return void 0!==n}function my(n,i){return 0!=(n.flags&(i?8:16))}function Gg(n,i=""){const o=S(),l=x(),u=n+ui,p=l.firstCreatePass?Ic(l,u,1,i,null):l.data[u],E=o[u]=ad(o[ir],i);Vc(l,o,E,p),Sr(p,!1)}function qu(n){return hp("",n,""),qu}function hp(n,i,o){const l=S(),u=Fd(l,n,i,o);return u!==Qr&&Ll(l,ii(),u),hp}function ic(n,i,o,l,u){const p=S(),E=ou(p,n,i,o,l,u);return E!==Qr&&Ll(p,ii(),E),ic}function sc(n,i,o,l,u,p,E){const R=S(),L=Ld(R,n,i,o,l,u,p,E);return L!==Qr&&Ll(R,ii(),L),sc}function yy(n,i,o,l,u,p,E,R,L){const te=S(),we=au(te,n,i,o,l,u,p,E,R,L);return we!==Qr&&Ll(te,ii(),we),yy}function Ac(n,i,o,l,u,p,E,R,L,te,we){const Ke=S(),Dt=lu(Ke,n,i,o,l,u,p,E,R,L,te,we);return Dt!==Qr&&Ll(Ke,ii(),Dt),Ac}function Wd(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt){const zt=S(),vn=cu(zt,n,i,o,l,u,p,E,R,L,te,we,Ke,Dt);return vn!==Qr&&Ll(zt,ii(),vn),Wd}function Zg(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn){const $n=S(),rr=Vl($n,n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn);return rr!==Qr&&Ll($n,ii(),rr),Zg}function qg(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr){const Ir=S(),Gr=Ku(Ir,n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr);return Gr!==Qr&&Ll(Ir,ii(),Gr),qg}function fp(n){const i=S(),o=su(i,n);return o!==Qr&&Ll(i,ii(),o),fp}function Yg(n,i,o){sl(Ce,bl,Fd(S(),n,i,o),!0)}function ef(n,i,o,l,u){sl(Ce,bl,ou(S(),n,i,o,l,u),!0)}function _y(n,i,o,l,u,p,E){sl(Ce,bl,Ld(S(),n,i,o,l,u,p,E),!0)}function du(n,i,o,l,u,p,E,R,L){sl(Ce,bl,au(S(),n,i,o,l,u,p,E,R,L),!0)}function tf(n,i,o,l,u,p,E,R,L,te,we){sl(Ce,bl,lu(S(),n,i,o,l,u,p,E,R,L,te,we),!0)}function Kd(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt){sl(Ce,bl,cu(S(),n,i,o,l,u,p,E,R,L,te,we,Ke,Dt),!0)}function Qg(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn){sl(Ce,bl,Vl(S(),n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn),!0)}function pp(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr){sl(Ce,bl,Ku(S(),n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr),!0)}function vy(n){sl(Ce,bl,su(S(),n),!0)}function Ey(n,i,o){jl(Fd(S(),n,i,o))}function by(n,i,o,l,u){jl(ou(S(),n,i,o,l,u))}function gp(n,i,o,l,u,p,E){jl(Ld(S(),n,i,o,l,u,p,E))}function mp(n,i,o,l,u,p,E,R,L){jl(au(S(),n,i,o,l,u,p,E,R,L))}function Xg(n,i,o,l,u,p,E,R,L,te,we){jl(lu(S(),n,i,o,l,u,p,E,R,L,te,we))}function hu(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt){jl(cu(S(),n,i,o,l,u,p,E,R,L,te,we,Ke,Dt))}function Jg(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn){jl(Vl(S(),n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn))}function em(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr){jl(Ku(S(),n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr))}function yp(n){jl(su(S(),n))}function Yu(n,i,o,l,u){return Bl(n,Fd(S(),i,o,l),u,!1),Yu}function tm(n,i,o,l,u,p,E){return Bl(n,ou(S(),i,o,l,u,p),E,!1),tm}function Gd(n,i,o,l,u,p,E,R,L){return Bl(n,Ld(S(),i,o,l,u,p,E,R),L,!1),Gd}function Zd(n,i,o,l,u,p,E,R,L,te,we){return Bl(n,au(S(),i,o,l,u,p,E,R,L,te),we,!1),Zd}function _p(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt){return Bl(n,lu(S(),i,o,l,u,p,E,R,L,te,we,Ke),Dt,!1),_p}function Qu(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn){return Bl(n,cu(S(),i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt),vn,!1),Qu}function nm(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr){return Bl(n,Vl(S(),i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n),rr,!1),nm}function qd(n,i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir,Gr){return Bl(n,Ku(S(),i,o,l,u,p,E,R,L,te,we,Ke,Dt,zt,vn,$n,rr,Ir),Gr,!1),qd}function vp(n,i,o){return Bl(n,su(S(),i),o,!1),vp}function nf(n,i,o){const l=S();return Zo(l,ho(),i)&&qa(x(),Ti(),l,n,i,l[ir],o,!0),nf}function Xu(n,i,o){const l=S();if(Zo(l,ho(),i)){const p=x(),E=Ti();qa(p,E,l,n,i,Bm(as(p.data),E,l),o,!0)}return Xu}const Ju=void 0;var K_=["en",[["a","p"],["AM","PM"],Ju],[["AM","PM"],Ju,Ju],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ju,[["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"]],Ju,[["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}",Ju,"{1} 'at' {0}",Ju],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function rf(n){const o=Math.floor(Math.abs(n)),l=n.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===l?1:5}];let $l={};function oE(n,i,o){"string"!=typeof i&&(o=i,i=n[Br.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),$l[i]=n,o&&($l[i][Br.ExtraData]=o)}function wy(n){const i=function Ep(n){return n.toLowerCase().replace(/_/g,"-")}(n);let o=sf(i);if(o)return o;const l=i.split("-")[0];if(o=sf(l),o)return o;if("en"===l)return K_;throw new Me(701,!1)}function rm(n){return wy(n)[Br.CurrencyCode]||null}function Cy(n){return wy(n)[Br.PluralCase]}function sf(n){return n in $l||($l[n]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[n]),$l[n]}function G_(){$l={}}var Br=(()=>((Br=Br||{})[Br.LocaleId=0]="LocaleId",Br[Br.DayPeriodsFormat=1]="DayPeriodsFormat",Br[Br.DayPeriodsStandalone=2]="DayPeriodsStandalone",Br[Br.DaysFormat=3]="DaysFormat",Br[Br.DaysStandalone=4]="DaysStandalone",Br[Br.MonthsFormat=5]="MonthsFormat",Br[Br.MonthsStandalone=6]="MonthsStandalone",Br[Br.Eras=7]="Eras",Br[Br.FirstDayOfWeek=8]="FirstDayOfWeek",Br[Br.WeekendRange=9]="WeekendRange",Br[Br.DateFormat=10]="DateFormat",Br[Br.TimeFormat=11]="TimeFormat",Br[Br.DateTimeFormat=12]="DateTimeFormat",Br[Br.NumberSymbols=13]="NumberSymbols",Br[Br.NumberFormats=14]="NumberFormats",Br[Br.CurrencyCode=15]="CurrencyCode",Br[Br.CurrencySymbol=16]="CurrencySymbol",Br[Br.CurrencyName=17]="CurrencyName",Br[Br.Currencies=18]="Currencies",Br[Br.Directionality=19]="Directionality",Br[Br.PluralCase=20]="PluralCase",Br[Br.ExtraData=21]="ExtraData",Br))();const Z_=["zero","one","two","few","many"],oc="en-US",bp={marker:"element"},af={marker:"ICU"};var no=(()=>((no=no||{})[no.SHIFT=2]="SHIFT",no[no.APPEND_EAGERLY=1]="APPEND_EAGERLY",no[no.COMMENT=2]="COMMENT",no))();let im=oc;function wp(n){(function Xe(n,i){null==n&&qe(i,n,null,"!=")})(n,"Expected localeId to be defined"),"string"==typeof n&&(im=n.toLowerCase().replace(/_/g,"-"))}function Cp(n,i,o){const l=i.insertBeforeIndex,u=Array.isArray(l)?l[0]:l;return null===u?ka(n,0,o):vi(o[u])}function lf(n,i,o,l,u){const p=i.insertBeforeIndex;if(Array.isArray(p)){let E=l,R=null;if(3&i.type||(R=E,E=u),null!==E&&-1===i.componentOffset)for(let L=1;L<p.length;L++)ql(n,E,o[p[L]],R,!1)}}function Dy(n,i){if(n.push(i),n.length>1)for(let o=n.length-2;o>=0;o--){const l=n[o];X_(l)||aE(l,i)&&null===J_(l)&&lE(l,i.index)}}function X_(n){return!(64&n.type)}function aE(n,i){return X_(i)||n.index>i.index}function J_(n){const i=n.insertBeforeIndex;return Array.isArray(i)?i[0]:i}function lE(n,i){const o=n.insertBeforeIndex;Array.isArray(o)?o[0]=i:(dd(Cp,lf),n.insertBeforeIndex=i)}function Ip(n,i){const o=n.data[i];return null===o||"string"==typeof o?null:o.hasOwnProperty("currentCaseLViewIndex")?o:o.value}function cf(n,i,o){const l=Hu(n,o,64,null,null);return Dy(i,l),l}function ac(n,i){const o=i[n.currentCaseLViewIndex];return null===o?o:o<0?~o:o}function Ty(n){return n>>>17}function Sy(n){return(131070&n)>>>1}let uf=0,df=0;function My(n,i,o,l){const u=o[ir];let E,p=null;for(let R=0;R<i.length;R++){const L=i[R];if("string"==typeof L){const te=i[++R];null===o[te]&&(o[te]=ad(u,L))}else if("number"==typeof L)switch(1&L){case 0:const te=Ty(L);let we,Ke;if(null===p&&(p=te,E=Iu(u,l)),te===p?(we=l,Ke=E):(we=null,Ke=vi(o[te])),null!==Ke){const $n=Sy(L);ql(u,Ke,o[$n],we,!1);const Ir=Ip(n,$n);if(null!==Ir&&"object"==typeof Ir){const Gr=ac(Ir,o);null!==Gr&&My(n,Ir.create[Gr],o,o[Ir.anchorIdx])}}break;case 1:const zt=i[++R],vn=i[++R];Gf(u,ys(L>>>1,o),null,null,zt,vn,null)}else switch(L){case af:const te=i[++R],we=i[++R];null===o[we]&&Gt(o[we]=Ml(u,te),o);break;case bp:const Ke=i[++R],Dt=i[++R];null===o[Dt]&&Gt(o[Dt]=ld(u,Ke,null),o)}}}function Ry(n,i,o,l,u){for(let p=0;p<o.length;p++){const E=o[p],R=o[++p];if(E&u){let L="";for(let te=p+1;te<=p+R;te++){const we=o[te];if("string"==typeof we)L+=we;else if("number"==typeof we)if(we<0)L+=Ct(i[l-we]);else{const Ke=we>>>2;switch(3&we){case 1:const Dt=o[++te],zt=o[++te],vn=n.data[Ke];"string"==typeof vn?Gf(i[ir],i[Ke],null,vn,Dt,L,zt):qa(n,vn,i,Dt,L,i[ir],zt,!1);break;case 0:const $n=i[Ke];null!==$n&&th(i[ir],$n,L);break;case 2:rv(n,Ip(n,Ke),i,L);break;case 3:Oy(n,Ip(n,Ke),l,i)}}}}else{const L=o[p+1];if(L>0&&3==(3&L)){const we=Ip(n,L>>>2);i[we.currentCaseLViewIndex]<0&&Oy(n,we,l,i)}}p+=R}}function Oy(n,i,o,l){let u=l[i.currentCaseLViewIndex];if(null!==u){let p=uf;u<0&&(u=l[i.currentCaseLViewIndex]=~u,p=-1),Ry(n,l,i.update[u],o,p)}}function rv(n,i,o,l){const u=function iv(n,i){let o=n.cases.indexOf(i);if(-1===o)switch(n.type){case 1:{const l=function q_(n,i){const o=Cy(i)(parseInt(n,10)),l=Z_[o];return void 0!==l?l:"other"}(i,function Iy(){return im}());o=n.cases.indexOf(l),-1===o&&"other"!==l&&(o=n.cases.indexOf("other"));break}case 0:o=n.cases.indexOf("other")}return-1===o?null:o}(i,l);if(ac(i,o)!==u&&(Py(n,i,o),o[i.currentCaseLViewIndex]=null===u?null:~u,null!==u)){const E=o[i.anchorIdx];E&&My(n,i.create[u],o,E)}}function Py(n,i,o){let l=ac(i,o);if(null!==l){const u=i.remove[l];for(let p=0;p<u.length;p++){const E=u[p];if(E>0){const R=ys(E,o);null!==R&&hd(o[ir],R)}else Py(n,Ip(n,~E),o)}}}function Yd(){const n=[];let o,l,i=-1;function p(R,L){i=0;const te=ac(R,L);l=null!==te?R.remove[te]:an}
1function E(){if(i<l.length){const R=l[i++];return R>0?o[R]:(n.push(i,l),p(o[Tn].data[~R],o),E())}return 0===n.length?null:(l=n.pop(),i=n.pop(),E())}return function u(R,L){for(o=L;n.length;)n.pop();return p(R.value,L),E}}const Dp=/\ufffd(\d+):?\d*\ufffd/gi,sv=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,dE=/\ufffd(\d+)\ufffd/,ov=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Tp="\ufffd",hE=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,av=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,lv=/\uE500/g;function sm(n,i,o,l,u,p,E){const R=tu(n,l,1,null);let L=R<<no.SHIFT,te=_r();i===te&&(te=null),null===te&&(L|=no.APPEND_EAGERLY),E&&(L|=no.COMMENT,function eh(n){void 0===Pa&&(Pa=n())}(Yd)),u.push(L,null===p?"":p);const we=Hu(n,R,E?32:1,null===p?"":p,null);Dy(o,we);const Ke=we.index;return Sr(we,!1),null!==te&&i!==te&&function td(n,i){let o=n.insertBeforeIndex;null===o?(dd(Cp,lf),o=n.insertBeforeIndex=[null,i]):(function je(n,i,o){n!=i&&qe(o,n,i,"==")}(Array.isArray(o),!0,"Expecting array here"),o.push(i))}(te,Ke),we}function pu(n,i,o,l,u,p,E){const R=E.match(Dp),L=sm(n,i,o,p,l,R?null:E,!1);R&&hf(u,E,L.index,null,0,null)}function hf(n,i,o,l,u,p){const E=n.length,R=E+1;n.push(null,null);const L=E+2,te=i.split(Dp);let we=0;for(let Ke=0;Ke<te.length;Ke++){const Dt=te[Ke];if(1&Ke){const zt=u+parseInt(Dt,10);n.push(-1-zt),we|=Ny(zt)}else""!==Dt&&n.push(Dt)}return n.push(o<<2|(l?1:0)),l&&n.push(l,p),n[E]=we,n[R]=n.length-L,we}function hv(n){let i=0;for(let o=0;o<n.length;o++){const l=n[o];"number"==typeof l&&l<0&&i++}return i}function Ny(n){return 1<<Math.min(n,31)}function Fy(n){let i,p,o="",l=0,u=!1;for(;null!==(i=hE.exec(n));)u?i[0]===`${Tp}/*${p}${Tp}`&&(l=i.index,u=!1):(o+=n.substring(l,i.index+i[0].length),p=i[1],u=!0);return o+=n.slice(l),o}function gv(n,i,o,l,u,p){let E=0;const R={type:u.type,currentCaseLViewIndex:tu(n,i,1,null),anchorIdx:p,cases:[],create:[],remove:[],update:[]};(function a(n,i,o){n.push(Ny(i.mainBinding),2,-1-i.mainBinding,o<<2|2)})(o,u,p),function ed(n,i,o){const l=n.data[i];null===l?n.data[i]=o:l.value=o}(n,p,R);const L=u.values;for(let te=0;te<L.length;te++){const we=L[te],Ke=[];for(let Dt=0;Dt<we.length;
1Dt++){const zt=we[Dt];if("string"!=typeof zt){const vn=Ke.push(zt)-1;we[Dt]=`\x3c!--\ufffd${vn}\ufffd--\x3e`}}E=r(n,R,i,o,l,u.cases[te],we.join(""),Ke)|E}E&&function d(n,i,o){n.push(i,1,o<<2|3)}(o,E,p)}function fE(n){const i=[],o=[];let l=1,u=0;const p=Sp(n=n.replace(ov,function(E,R,L){return l="select"===L?0:1,u=parseInt(R.slice(1),10),""}));for(let E=0;E<p.length;){let R=p[E++].trim();1===l&&(R=R.replace(/\s*(?:=)?(\w+)\s*/,"$1")),R.length&&i.push(R);const L=Sp(p[E++]);i.length>o.length&&o.push(L)}return{type:l,mainBinding:u,cases:i,values:o}}function Sp(n){if(!n)return[];let i=0;const o=[],l=[],u=/[{}]/g;let p;for(u.lastIndex=0;p=u.exec(n);){const R=p.index;if("}"==p[0]){if(o.pop(),0==o.length){const L=n.substring(i,R);ov.test(L)?l.push(fE(L)):l.push(L),i=R+1}}else{if(0==o.length){const L=n.substring(i,R);l.push(L),i=R+1}o.push("{")}}const E=n.substring(i);return l.push(E),l}function r(n,i,o,l,u,p,E,R){const L=[],te=[],we=[];i.cases.push(p),i.create.push(L),i.remove.push(te),i.update.push(we);const Dt=Ei(Mu()).getInertBodyElement(E),zt=Ec(Dt)||Dt;return zt?e(n,i,o,l,L,te,we,zt,u,R,0):0}function e(n,i,o,l,u,p,E,R,L,te,we){let Ke=0,Dt=R.firstChild;for(;Dt;){const zt=tu(n,o,1,null);switch(Dt.nodeType){case Node.ELEMENT_NODE:const vn=Dt,$n=vn.tagName.toLowerCase();if(f.hasOwnProperty($n)){g(u,bp,$n,L,zt),n.data[zt]=$n;const An=vn.attributes;for(let ai=0;ai<An.length;ai++){const yo=An.item(ai),$o=yo.name.toLowerCase();yo.value.match(Dp)?at.hasOwnProperty($o)&&hf(E,yo.value,zt,yo.name,0,I[$o]?Bc:null):M(u,zt,yo)}Ke=e(n,i,o,l,u,p,E,Dt,zt,te,we+1)|Ke,t(p,zt,we)}break;case Node.TEXT_NODE:const rr=Dt.textContent||"",Ir=rr.match(Dp);g(u,null,Ir?"":rr,L,zt),t(p,zt,we),Ir&&(Ke=hf(E,rr,zt,null,0,null)|Ke);break;case Node.COMMENT_NODE:const Gr=dE.exec(Dt.textContent||"");if(Gr){const ai=te[parseInt(Gr[1],10)];g(u,af,"",L,zt),gv(n,o,l,L,ai,zt),s(p,zt,we)}}Dt=Dt.nextSibling}return Ke}function t(n,i,o){0===o&&n.push(i)}function s(n,i,o){0===o&&(n.push(~i),n.push(i))}function g(n,i,o,l,u){null!==i&&n.push(i),n.push(o,u,function fu(n,i,o){return n|i<<17|o<<1}(0,l,u))}function M(n,i,o){n.push(i<<1|1,o.name,o.value)}const H=0,ee=/\[(\ufffd.+?\ufffd?)\]/,De=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,st=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Bt=/{([A-Z0-9_]+)}/g,un=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Nn=/\/\*/,er=/\d+\:(\d+)/;function si(n,i,o=-1){const l=x(),u=S(),p=ui+n,E=Gi(l.consts,i),R=_r();l.firstCreatePass&&function uv(n,i,o,l,u,p){const E=_r(),R=[],L=[],te=[[]];u=function pv(n,i){if(function fv(n){return-1===n}(i))return Fy(n);{const o=n.indexOf(`:${i}${Tp}`)+2+i.toString().length,l=n.search(new RegExp(`${Tp}\\/\\*\\d+:${i}${Tp}`));return Fy(n.substring(o,l))}}(u,p);const we=function cv(n){return n.replace(lv," ")}(u).split(av);for(let Ke=0;Ke<we.length;Ke++){let Dt=we[Ke];if(1&Ke){const zt=47===Dt.charCodeAt(0),$n=(Dt.charCodeAt(zt?1:0),ui+Number.parseInt(Dt.substring(zt?2:1)));if(zt)te.shift(),Sr(_r(),!1);else{const rr=cf(n,te[0],$n);te.unshift([]),Sr(rr,!0)}}else{const zt=Sp(Dt);for(let vn=0;vn<zt.length;vn++){let $n=zt[vn];if(1&vn){const rr=$n;if("object"!=typeof rr)throw new Error(`Unable to parse ICU expression in "${u}" message.`);gv(n,o,L,i,rr,sm(n,E,te[0],o,R,"",!0).index)}else""!==$n&&pu(n,E,te[0],R,L,o,$n)}}}n.data[l]={create:R,update:L}}(l,null===R?0:R.index,u,p,E,o);const L=l.data[p],we=oh(l,R===u[Zr]?null:R,u);(function nv(n,i,o,l){const u=n[ir];for(let p=0;p<i.length;p++){const E=i[p++],R=i[p],te=(E&no.APPEND_EAGERLY)===no.APPEND_EAGERLY,we=E>>>no.SHIFT;let Ke=n[we];null===Ke&&(Ke=n[we]=(E&no.COMMENT)===no.COMMENT?u.createComment(R):ad(u,R)),te&&null!==o&&ql(u,o,Ke,l,!1)}})(u,L.create,we,R&&8&R.type?u[R.index]:null),da(!0)}function Oi(){da(!1)}function yi(n,i,o){si(n,i,o),Oi()}function xo(n,i){const o=x(),l=Gi(o.consts,i);!function dv(n,i,o){const u=Tt().index,p=[];if(n.firstCreatePass&&null===n.data[i]){for(let E=0;E<o.length;E+=2){const R=o[E],L=o[E+1];if(""!==L){if(sv.test(L))throw new Error(`ICU expressions are not supported in attributes. Message: "${L}".`);hf(p,L,u,R,hv(p),null)}}n.data[i]=p}}(o,n+ui,l)}function mo(n){return function ev(n){n&&(uf|=1<<Math.min(df,31)),df++}(Zo(S(),ho(),n)),mo}function Ms(n){!function tv(n,i,o){if(df>0){const l=n.data[o];Ry(n,i,Array.isArray(l)?l:l.update,is()-df-1,uf)}uf=0,df=0}(x(),S(),n+ui)}function Fa(n,i={}){return function lr(n,i={}){let o=n;if(ee.test(n)){const l={},u=[H];o=o.replace(De,(p,E,R)=>{const L=E||R,te=l[L]||[];
1if(te.length||(L.split("|").forEach($n=>{const rr=$n.match(er),Ir=rr?parseInt(rr[1],10):H,Gr=Nn.test($n);te.push([Ir,Gr,$n])}),l[L]=te),!te.length)throw new Error(`i18n postprocess: unmatched placeholder - ${L}`);const we=u[u.length-1];let Ke=0;for(let $n=0;$n<te.length;$n++)if(te[$n][0]===we){Ke=$n;break}const[Dt,zt,vn]=te[Ke];return zt?u.pop():we!==Dt&&u.push(Dt),te.splice(Ke,1),vn})}return Object.keys(i).length&&(o=o.replace(st,(l,u,p,E,R,L)=>i.hasOwnProperty(p)?`${u}${i[p]}${L}`:l),o=o.replace(Bt,(l,u)=>i.hasOwnProperty(u)?i[u]:l),o=o.replace(un,(l,u)=>{if(i.hasOwnProperty(u)){const p=i[u];if(!p.length)throw new Error(`i18n postprocess: unmatched ICU - ${l} with key: ${u}`);return p.shift()}return l})),o}(n,i)}function Ap(n,i,o,l,u){if(n=be(n),Array.isArray(n))for(let p=0;p<n.length;p++)Ap(n[p],i,o,l,u);else{const p=x(),E=S();let R=Wc(n)?n:be(n.provide),L=Mf(n);const te=Tt(),we=1048575&te.providerIndexes,Ke=te.directiveStart,Dt=te.providerIndexes>>20;if(Wc(n)||!n.multi){const zt=new Ye(L,u,Id),vn=yv(R,i,u?we:we+Dt,Ke);-1===vn?(Jn(al(te,E),p,R),mv(p,n,i.length),i.push(R),te.directiveStart++,te.directiveEnd++,u&&(te.providerIndexes+=1048576),o.push(zt),E.push(zt)):(o[vn]=zt,E[vn]=zt)}else{const zt=yv(R,i,we+Dt,Ke),vn=yv(R,i,we,we+Dt),rr=vn>=0&&o[vn];if(u&&!rr||!u&&!(zt>=0&&o[zt])){Jn(al(te,E),p,R);const Ir=function Eb(n,i,o,l,u){const p=new Ye(n,o,Id);return p.multi=[],p.index=i,p.componentProviders=0,pE(p,u,l&&!o),p}(u?vb:_b,o.length,u,l,L);!u&&rr&&(o[vn].providerFactory=Ir),mv(p,n,i.length,0),i.push(R),te.directiveStart++,te.directiveEnd++,u&&(te.providerIndexes+=1048576),o.push(Ir),E.push(Ir)}else mv(p,n,zt>-1?zt:vn,pE(o[u?vn:zt],L,!u&&l));!u&&l&&rr&&o[vn].componentProviders++}}}function mv(n,i,o,l){const u=Wc(i),p=function wc(n){return!!n.useClass}(i);if(u||p){const L=(p?be(i.useClass):i).prototype.ngOnDestroy;if(L){const te=n.destroyHooks||(n.destroyHooks=[]);if(!u&&i.multi){const we=te.indexOf(o);-1===we?te.push(o,[l,L]):te[we+1].push(l,L)}else te.push(o,L)}}}function pE(n,i,o){return o&&n.componentProviders++,n.multi.push(i)-1}function yv(n,i,o,l){for(let u=o;u<l;u++)if(i[u]===n)return u;return-1}function _b(n,i,o,l){return _v(this.multi,[])}function vb(n,i,o,l){const u=this.multi;let p;if(this.providerFactory){const E=this.providerFactory.componentProviders,R=Vr(o,o[Tn],this.providerFactory.index,l);p=R.slice(0,E),_v(u,p);for(let L=E;L<R.length;L++)p.push(R[L])}else p=[],_v(u,p);return p}function _v(n,i){for(let o=0;o<n.length;o++)i.push((0,n[o])());return i}function gE(n,i=[]){return o=>{o.providersResolver=(l,u)=>function nd(n,i,o){const l=x();if(l.firstCreatePass){const u=ri(n);Ap(o,l.data,l.blueprint,u,!0),Ap(i,l.data,l.blueprint,u,!1)}}(l,u?u(n):n,i)}}class Mp{}class mE{}function yE(n,i){return new vv(n,i??null)}const bb=yE;class vv extends Mp{constructor(i,o){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Jf(this);const l=li(i);this._bootstrapComponents=rc(l.bootstrap),this._r3Injector=Rm(i,o,[{provide:Mp,useValue:this},{provide:yh,useValue:this.componentFactoryResolver}],ie(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Ly extends mE{constructor(i){super(),this.moduleType=i}create(i){return new vv(this.moduleType,i)}}class wb extends Mp{constructor(i,o,l){super(),this.componentFactoryResolver=new Jf(this),this.instance=null;const u=new Kc([...i,{provide:Mp,useValue:this},{provide:yh,useValue:this.componentFactoryResolver}],o||ec(),l,new Set(["environment"]));this.injector=u,u.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function Ev(n,i,o=null){return new wb(n,i,o).injector}let Cb=(()=>{class n{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o.id)){const l=fm(0,o.type),u=l.length>0?Ev([l],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o.id,u)}return this.cachedInjectors.get(o.id)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=cn({token:n,providedIn:"environment",factory:()=>new n(Q(il))}),n})();function _E(n){n.getStandaloneInjector=i=>i.get(Cb).getOrCreateStandaloneInjector(n)}function bv(n){const i=J(n);if(null===i)return null;if(void 0===i.component){const o=i.lView;if(null===o)return null;i.component=function Al(n,i){const o=i[Tn].data[n],{directiveStart:l,componentOff
1set:u}=o;return u>-1?i[l+u]:null}(i.nodeIndex,o)}return i.component}function vE(n){!function Mb(n){if(typeof Element<"u"&&!(n instanceof Element))throw new Error("Expecting instance of DOM Element")}(n);const i=J(n),o=i?i.lView:null;return null===o?null:o[gr]}function EE(n){const i=J(n);let l,o=i?i.lView:null;if(null===o)return null;for(;2===o[Tn].type&&(l=bu(o));)o=l;return 256&o[pr]?null:o[gr]}function bE(n){const i=Bn(n);return null!==i?[wu(i)]:[]}function wE(n){const i=J(n),o=i?i.lView:null;return null===o?Jc.NULL:new ps(o[Tn].data[i.nodeIndex],o)}function CE(n){if(n instanceof Text)return[];const i=J(n),o=i?i.lView:null;if(null===o)return[];const u=i.nodeIndex;return o[Tn]?.data[u]?(void 0===i.directives&&(i.directives=Nc(u,o)),null===i.directives?[]:[...i.directives]):[]}function Db(n){const{constructor:i}=n;if(!i)throw new Error("Unable to find the instance constructor");const o=Pn(i);if(o)return{inputs:o.inputs,outputs:o.outputs,encapsulation:o.encapsulation,changeDetection:o.onPush?Ge.OnPush:Ge.Default};const l=kr(i);return l?{inputs:l.inputs,outputs:l.outputs}:null}function wv(n){return J(n).native}function IE(n){const i=J(n),o=null===i?null:i.lView;if(null===o)return[];const u=o[bi],p=o[Tn].cleanup,E=[];if(p&&u)for(let R=0;R<p.length;){const L=p[R++],te=p[R++];if("string"==typeof L){const we=L,Ke=vi(o[te]),Dt=u[p[R++]],zt=p[R++];n==Ke&&E.push({element:n,name:we,callback:Dt,useCapture:"boolean"==typeof zt&&zt,type:"boolean"==typeof zt||zt>=0?"dom":"output"})}}return E.sort(Sb),E}function Sb(n,i){return n.name==i.name?0:n.name<i.name?-1:1}function Ab(n){return void 0!==n.type&&void 0!==n.declaredInputs&&void 0!==n.findHostDirectiveDefs}function DE(n,i,o,l){return Fe(()=>{const u=n;null!==i&&(u.hasOwnProperty("decorators")&&void 0!==u.decorators?u.decorators.push(...i):u.decorators=i),null!==o&&(u.ctorParameters=o),null!==l&&(u.propDecorators=u.hasOwnProperty("propDecorators")&&void 0!==u.propDecorators?{...u.propDecorators,...l}:l)})}function TE(n,i,o){const l=Wr()+n,u=S();return u[l]===Qr?vl(u,l,o?i.call(o):i()):Nd(u,l)}function SE(n,i,o,l){return FE(S(),Wr(),n,i,o,l)}function AE(n,i,o,l,u){return LE(S(),Wr(),n,i,o,l,u)}function ME(n,i,o,l,u,p){return VE(S(),Wr(),n,i,o,l,u,p)}function RE(n,i,o,l,u,p,E){return UE(S(),Wr(),n,i,o,l,u,p,E)}function OE(n,i,o,l,u,p,E,R){const L=Wr()+n,te=S(),we=Ya(te,L,o,l,u,p);return Zo(te,L+4,E)||we?vl(te,L+5,R?i.call(R,o,l,u,p,E):i(o,l,u,p,E)):Nd(te,L+5)}function PE(n,i,o,l,u,p,E,R,L){const te=Wr()+n,we=S(),Ke=Ya(we,te,o,l,u,p);return iu(we,te+4,E,R)||Ke?vl(we,te+6,L?i.call(L,o,l,u,p,E,R):i(o,l,u,p,E,R)):Nd(we,te+6)}function xE(n,i,o,l,u,p,E,R,L,te){const we=Wr()+n,Ke=S();let Dt=Ya(Ke,we,o,l,u,p);return rp(Ke,we+4,E,R,L)||Dt?vl(Ke,we+7,te?i.call(te,o,l,u,p,E,R,L):i(o,l,u,p,E,R,L)):Nd(Ke,we+7)}function kE(n,i,o,l,u,p,E,R,L,te,we){const Ke=Wr()+n,Dt=S(),zt=Ya(Dt,Ke,o,l,u,p);return Ya(Dt,Ke+4,E,R,L,te)||zt?vl(Dt,Ke+8,we?i.call(we,o,l,u,p,E,R,L,te):i(o,l,u,p,E,R,L,te)):Nd(Dt,Ke+8)}function NE(n,i,o,l){return jE(S(),Wr(),n,i,o,l)}function om(n,i){const o=n[i];return o===Qr?void 0:o}function FE(n,i,o,l,u,p){const E=i+o;return Zo(n,E,u)?vl(n,E+1,p?l.call(p,u):l(u)):om(n,E+1)}function LE(n,i,o,l,u,p,E){const R=i+o;return iu(n,R,u,p)?vl(n,R+2,E?l.call(E,u,p):l(u,p)):om(n,R+2)}function VE(n,i,o,l,u,p,E,R){const L=i+o;return rp(n,L,u,p,E)?vl(n,L+3,R?l.call(R,u,p,E):l(u,p,E)):om(n,L+3)}function UE(n,i,o,l,u,p,E,R,L){const te=i+o;return Ya(n,te,u,p,E,R)?vl(n,te+4,L?l.call(L,u,p,E,R):l(u,p,E,R)):om(n,te+4)}function jE(n,i,o,l,u,p){let E=i+o,R=!1;for(let L=0;L<u.length;L++)Zo(n,E++,u[L])&&(R=!0);return R?vl(n,E,l.apply(p,u)):om(n,E)}function BE(n,i){const o=x();let l;const u=n+ui;o.firstCreatePass?(l=function Rb(n,i){if(i)for(let o=i.length-1;o>=0;o--){const l=i[o];if(n===l.name)return l}}(i,o.pipeRegistry),o.data[u]=l,l.onDestroy&&(o.destroyHooks??(o.destroyHooks=[])).push(u,l.onDestroy)):l=o.data[u];const p=l.factory||(l.factory=ms(l.type)),E=Be(Id);try{const R=Qa(!1),L=p();return Qa(R),qm(o,S(),u,L),L}finally{Be(E)}}function $E(n,i,o){const l=n+ui,u=S(),p=Vi(u,l);return am(u,l)?FE(u,Wr(),i,p.transform,o,p):p.transform(o)}function HE(n,i,o,l){const u=n+ui,p=S(),E=Vi(p,u);return am(p,u)?LE(p,Wr(),i,E.transform,o,l,E):E.transform(o,l)}function zE(n,i,o,l,u){const p=n+ui,E=S(),R=Vi(E,p);return am(E,p)?VE(E,Wr(),i,R.transform,o,l,u,R):R.transform(o,l,u)}function WE(n,i,o,l,u,p){const E=n+ui,R=S(),L=Vi(R,E);return am(R,E)?UE(R,Wr(),i,L.transform,o,l,u,p,L):L.transform(o,l,u,p)}function KE(n,i,o){const l=n+ui,u=S(),p=Vi(u,l);return am(u,l)?jE(u,Wr(),i,p.transform,o,p):p.transform.apply(p,o)}function am(n,i){return n[Tn].data[i].pure}function Cv(n){return i=>{setTimeout(n,void 0,i)}}const gu=class Ob extends c.x{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,o,l){let u=i,p=o||(()=>null),E=l;if(i&&"object"==typeof i){const L=i;u=L.next?.bind(L),p=L.error?.bind(L),E=L.complete?.bind(L)}this.__isAsync&&(p=Cv(p),u&&(u=Cv(u)),E&&(E=Cv(E)));const R=super.subscribe({next:u,error:p,complete:E});return i instanceof m.w0&&i.add(R),R}};function Pb(){return this._results[Symbol.iterator]()}class Vy{get changes(){return this._changes||(this._changes=new gu)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const o=Vy.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=Pb)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,o){return this._results.reduce(i,o)}
1forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,o){const l=this;l.dirty=!1;const u=Or(i);(this._changesDetected=!function Ar(n,i,o){if(n.length!==i.length)return!1;for(let l=0;l<n.length;l++){let u=n[l],p=i[l];if(o&&(u=o(u),p=o(p)),p!==u)return!1}return!0}(l._results,u,o))&&(l._results=u,l.length=u.length,l.last=u[this.length-1],l.first=u[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let lm=(()=>{class n{}return n.__NG_ELEMENT_ID__=Nb,n})();const xb=lm,kb=class extends xb{constructor(i,o,l){super(),this._declarationLView=i,this._declarationTContainer=o,this.elementRef=l}createEmbeddedView(i,o){const l=this._declarationTContainer.tView,u=Dd(this._declarationLView,l,i,16,null,l.declTNode,null,null,null,null,o||null);u[io]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[$i];return null!==E&&(u[$i]=E.createEmbeddedView(l)),Sh(l,u,i),new zu(u)}};function Nb(){return Uy(Tt(),S())}function Uy(n,i){return 4&n.type?new kb(i,n,tc(n,i)):null}let jy=(()=>{class n{}return n.__NG_ELEMENT_ID__=Fb,n})();function Fb(){return qE(Tt(),S())}const Lb=jy,GE=class extends Lb{constructor(i,o,l){super(),this._lContainer=i,this._hostTNode=o,this._hostLView=l}get element(){return tc(this._hostTNode,this._hostLView)}get injector(){return new ps(this._hostTNode,this._hostLView)}get parentInjector(){const i=js(this._hostTNode,this._hostLView);if(vs(i)){const o=gn(i,this._hostLView),l=Rn(i);return new ps(o[Tn].data[l+8],o)}return new ps(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const o=ZE(this._lContainer);return null!==o&&o[i]||null}get length(){return this._lContainer.length-mn}createEmbeddedView(i,o,l){let u,p;"number"==typeof l?u=l:null!=l&&(u=l.index,p=l.injector);const E=i.createEmbeddedView(o||{},p);return this.insert(E,u),E}createComponent(i,o,l,u,p){const E=i&&!Qn(i);let R;if(E)R=o;else{const Ke=o||{};R=Ke.index,l=Ke.injector,u=Ke.projectableNodes,p=Ke.environmentInjector||Ke.ngModuleRef}const L=E?i:new ru(Pn(i)),te=l||this.parentInjector;if(!p&&null==L.ngModule){const Dt=(E?te:this.parentInjector).get(il,null);Dt&&(p=Dt)}const we=L.create(te,u,void 0,p);return this.insert(we.hostView,R),we}insert(i,o){const l=i._lView,u=l[Tn];if(function Ws(n){return Er(n[ci])}(l)){const we=this.indexOf(i);if(-1!==we)this.detach(we);else{const Ke=l[ci],Dt=new GE(Ke,Ke[Zr],Ke[ci]);Dt.detach(Dt.indexOf(i))}}const p=this._adjustIndex(o),E=this._lContainer;!function Rl(n,i,o,l){const u=mn+l,p=o.length;l>0&&(o[u-1][qi]=i),l<p-mn?(i[qi]=o[u],Mr(o,mn+l,i)):(o.push(i),i[qi]=null),i[ci]=o;const E=i[io];null!==E&&o!==E&&function mc(n,i){const o=n[Jt];i[ni]!==i[ci][ci][ni]&&(n[pt]=!0),null===o?n[Jt]=[i]:o.push(i)}(E,i);const R=i[$i];null!==R&&R.insertView(n),i[pr]|=64}(u,l,E,p);const R=Yl(p,E),L=l[ir],te=Iu(L,E[ut]);return null!==te&&function nh(n,i,o,l,u,p){l[Si]=u,l[Zr]=i,Uc(n,l,o,1,u,p)}(u,E[Zr],L,l,te,R),i.attachToViewContainerRef(),Mr(Iv(E),p,i),i}move(i,o){return this.insert(i,o)}indexOf(i){const o=ZE(this._lContainer);return null!==o?o.indexOf(i):-1}remove(i){const o=this._adjustIndex(i,-1),l=yc(this._lContainer,o);l&&(w(Iv(this._lContainer),o),Cu(l[Tn],l))}detach(i){const o=this._adjustIndex(i,-1),l=yc(this._lContainer,o);return l&&null!=w(Iv(this._lContainer),o)?new zu(l):null}_adjustIndex(i,o=0){return i??this.length+o}};function ZE(n){return n[Ot]}function Iv(n){return n[Ot]||(n[Ot]=[])}function qE(n,i){let o;const l=i[n.index];if(Er(l))o=l;else{let u;if(8&n.type)u=vi(l);else{const p=i[ir];u=p.createComment("");const E=xr(n,i);ql(p,Iu(p,E),u,function Du(n,i){return n.nextSibling(i)}(p,E),!1)}i[n.index]=o=Vm(l,i,u,n),Dc(i,o)}return new GE(o,n,i)}class Dv{constructor(i){this.queryList=i,this.matches=null}clone(){return new Dv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tv{constructor(i=[]){this.queries=i}createEmbeddedView(i){const o=i.queries;if(null!==o){const l=null!==i.contentQueries?i.contentQueries[0]:o.length,u=[];for(let p=0;p<l;p++){const E=o.getByIndex(p);u.push(this.queries[E.indexInDeclarationView].clone())}return new Tv(u)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let o=0;o<this.queries.length;o++)null!==s0(i,o).matches&&this.queries[o].setDirty()}}class YE{constructor(i,o,l=null){this.predicate=i,this.flags=o,this.read=l}}class Sv{constructor(i=[]){this.queries=i}elementStart(i,o){for(let l=0;l<this.queries.length;l++)this.queries[l].elementStart(i,o)}elementEnd(i){for(let o=0;o<this.queries.length;o++)this.queries[o].elementEnd(i)}embeddedTView(i){let o=null;for(let l=0;l<this.length;l++){const u=null!==o?o.length:0,p=this.getByIndex(l).embeddedTView(i,u);p&&(p.indexInDeclarationView=l,null!==o?o.push(p):o=[p])}return null!==o?new Sv(o):null}template(i,o){for(let l=0;l<this.queries.length;l++)this.queries[l].template(i,o)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class Av{constructor(i,o=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=o}elementStart(i,o){this.isApplyingToNode(o)&&this.matchTNode(i,o)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,o){this.elementStart(i,o)}embeddedTView(i,o){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,o),new Av(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const o=this._declarationNodeIndex;let l=i.parent;for(;null!==l&&8&l.type&&l.index!==o;)l=l.parent;return o===(null!==l?l.index:-1)}return this._appliesToNextNode}
vendor: 6,493 bytes, line 1
1matchTNode(i,o){const l=this.metadata.predicate;if(Array.isArray(l))for(let u=0;u<l.length;u++){const p=l[u];this.matchTNodeWithReadOption(i,o,Vb(o,p)),this.matchTNodeWithReadOption(i,o,Ja(o,i,p,!1,!1))}else l===lm?4&o.type&&this.matchTNodeWithReadOption(i,o,-1):this.matchTNodeWithReadOption(i,o,Ja(o,i,l,!1,!1))}matchTNodeWithReadOption(i,o,l){if(null!==l){const u=this.metadata.read;if(null!==u)if(u===Fl||u===jy||u===lm&&4&o.type)this.addMatch(o.index,-2);else{const p=Ja(o,i,u,!1,!1);null!==p&&this.addMatch(o.index,p)}else this.addMatch(o.index,l)}}addMatch(i,o){null===this.matches?this.matches=[i,o]:this.matches.push(i,o)}}function Vb(n,i){const o=n.localNames;if(null!==o)for(let l=0;l<o.length;l+=2)if(o[l]===i)return o[l+1];return null}function jb(n,i,o,l){return-1===o?function Ub(n,i){return 11&n.type?tc(n,i):4&n.type?Uy(n,i):null}(i,n):-2===o?function Bb(n,i,o){return o===Fl?tc(i,n):o===lm?Uy(i,n):o===jy?qE(i,n):void 0}(n,i,l):Vr(n,n[Tn],o,i)}function QE(n,i,o,l){const u=i[$i].queries[l];if(null===u.matches){const p=n.data,E=o.matches,R=[];for(let L=0;L<E.length;L+=2){const te=E[L];R.push(te<0?null:jb(i,p[te],E[L+1],o.metadata.read))}u.matches=R}return u.matches}function Mv(n,i,o,l){const u=n.queries.getByIndex(o),p=u.matches;if(null!==p){const E=QE(n,i,u,o);for(let R=0;R<p.length;R+=2){const L=p[R];if(L>0)l.push(E[R/2]);else{const te=p[R+1],we=i[-L];for(let Ke=mn;Ke<we.length;Ke++){const Dt=we[Ke];Dt[io]===Dt[ci]&&Mv(Dt[Tn],Dt,te,l)}if(null!==we[Jt]){const Ke=we[Jt];for(let Dt=0;Dt<Ke.length;Dt++){const zt=Ke[Dt];Mv(zt[Tn],zt,te,l)}}}}}return l}function XE(n){const i=S(),o=x(),l=ha();oi(l+1);const u=s0(o,l);if(n.dirty&&function uo(n){return 4==(4&n[pr])}(i)===(2==(2&u.metadata.flags))){if(null===u.matches)n.reset([]);else{const p=u.crossesNgTemplate?Mv(o,i,l,[]):QE(o,i,u,l);n.reset(p,Zc),n.notifyOnChanges()}return!0}return!1}function JE(n,i,o){const l=x();l.firstCreatePass&&(r0(l,new YE(n,i,o),-1),2==(2&i)&&(l.staticViewQueries=!0)),n0(l,S(),i)}function e0(n,i,o,l){const u=x();if(u.firstCreatePass){const p=Tt();r0(u,new YE(i,o,l),p.index),function Hb(n,i){const o=n.contentQueries||(n.contentQueries=[]);i!==(o.length?o[o.length-1]:-1)&&o.push(n.queries.length-1,i)}(u,n),2==(2&o)&&(u.staticContentQueries=!0)}n0(u,S(),o)}function t0(){return function $b(n,i){return n[$i].queries[i].queryList}(S(),ha())}function n0(n,i,o){const l=new Vy(4==(4&o));ca(n,i,l,l.destroy),null===i[$i]&&(i[$i]=new Tv),i[$i].queries.push(new Dv(l))}function r0(n,i,o){null===n.queries&&(n.queries=new Sv),n.queries.track(new Av(i,o))}function s0(n,i){return n.queries.getByIndex(i)}function o0(n,i){return Uy(n,i)}const ol=(()=>({\u0275\u0275attribute:Ag,\u0275\u0275attributeInterpolate1:Lh,\u0275\u0275attributeInterpolate2:Mg,\u0275\u0275attributeInterpolate3:Vh,\u0275\u0275attributeInterpolate4:Ul,\u0275\u0275attributeInterpolate5:Uh,\u0275\u0275attributeInterpolate6:Rg,\u0275\u0275attributeInterpolate7:jh,\u0275\u0275attributeInterpolate8:Og,\u0275\u0275attributeInterpolateV:Pg,\u0275\u0275defineComponent:Cn,\u0275\u0275defineDirective:Yn,\u0275\u0275defineInjectable:cn,\u0275\u0275defineInjector:wn,\u0275\u0275defineNgModule:xt,\u0275\u0275definePipe:Tr,\u0275\u0275directiveInject:Id,\u0275\u0275getInheritedFactory:ga,\u0275\u0275inject:Q,\u0275\u0275injectAttribute:Wa,\u0275\u0275invalidFactory:jf,\u0275\u0275invalidFactoryDep:ue,\u0275\u0275templateRefExtractor:o0,\u0275\u0275resetView:le,\u0275\u0275HostDirectivesFeature:Dg,\u0275\u0275NgOnChangesFeature:co,\u0275\u0275ProvidersFeature:gE,\u0275\u0275CopyDefinitionFeature:Ig,\u0275\u0275InheritDefinitionFeature:wg,\u0275\u0275StandaloneFeature:_E,\u0275\u0275nextContext:Jm,\u0275\u0275namespaceHTML:wo,\u0275\u0275namespaceMathML:fa,\u0275\u0275namespaceSVG:No,\u0275\u0275enableBindings:Qt,\u0275\u0275disableBindings:En,\u0275\u0275elementStart:Vd,\u0275\u0275elementEnd:$h,\u0275\u0275element:kg,\u0275\u0275elementContainerStart:Ud,\u0275\u0275elementContainerEnd:ap,\u0275\u0275elementContainer:Hh,\u0275\u0275pureFunction0:TE,\u0275\u0275pureFunction1:SE,\u0275\u0275pureFunction2:AE,\u0275\u0275pureFunction3:ME,\u0275\u0275pureFunction4:RE,\u0275\u0275pureFunction5:OE,\u0275\u0275pureFunction6:PE,\u0275\u0275pureFunction7:xE,\u0275\u0275pureFunction8:kE,\u0275\u0275pureFunctionV:NE,\u0275\u0275getCurrentView:lp,\u0275\u0275restoreView:P,\u0275\u0275listener:Ng,\u0275\u0275projection:ty,\u0275\u0275syntheticHostProperty:Xu,\u0275\u0275syntheticHostListener:Wh,\u0275\u0275pipeBind1:$E,\u0275\u0275pipeBind2:HE,\u0275\u0275pipeBind3:zE,\u0275\u0275pipeBind4:WE,\u0275\u0275pipeBindV:KE,\u0275\u0275projectionDef:ey,\u0275\u0275hostProperty:nf,\u0275\u0275property:xg,\u0275\u0275propertyInterpolate:Bd,\u0275\u0275propertyInterpolate1:$d,\u0275\u0275propertyInterpolate2:Gh,\u0275\u0275propertyInterpolate3:Zh,\u0275\u0275propertyInterpolate4:cp,\u0275\u0275propertyInterpolate5:qh,\u0275\u0275propertyInterpolate6:Yh,\u0275\u0275propertyInterpolate7:Hd,\u0275\u0275propertyInterpolate8:Qh,\u0275\u0275propertyInterpolateV:up,\u0275\u0275pipe:BE,\u0275\u0275queryRefresh:XE,\u0275\u0275viewQuery:JE,\u0275\u0275loadQuery:t0,\u0275\u0275contentQuery:e0,\u0275\u0275reference:op,\u0275\u0275classMap:dy,\u0275\u0275classMapInterpolate1:Yg,\u0275\u0275classMapInterpolate2:ef,\u0275\u0275classMapInterpolate3:_y,\u0275\u0275classMapInterpolate4:du,\u0275\u0275classMapInterpolate5:tf,\u0275\u0275classMapInterpolate6:Kd,\u0275\u0275classMapInterpolate7:Qg,\u0275\u0275classMapInterpolate8:pp,\u0275\u0275classMapInterpolateV:vy,\u0275\u0275styleMap:jl,\u0275\u0275styleMapInterpolate1:Ey,\u0275\u0275styleMapInterpolate2:by,\u0275\u0275styleMapInterpolate3:gp,\u0275\u0275styleMapInterpolate4:mp,\u0275\u0275styleMapInterpolate5:Xg,\u0275\u0275styleMapInterpolate6:hu,\u0275\u0275styleMapInterpolate7:Jg,\u0275\u0275styleMapInterpolate8:em,\u0275\u0275styleMapInterpolateV:yp,\u0275\u0275styleProp:El,\u0275\u0275stylePropInterpolate1:Yu,\u0275\u0275stylePropInterpolate2:tm,\u0275\u0275stylePropInterpolate3:Gd,\u0275\u0275stylePropInterpolate4:Zd,\u0275\u0275stylePropInterpolate5:_p,\u0275\u0275stylePropInterpolate6:Qu,\u0275\u0275stylePropInterpolate7:nm,\u0275\u0275stylePropInterpolate8:qd,\u0275\u0275stylePropInterpolateV:vp,\u0275\u0275classProp:zg,\u0275\u0275advance:Am,\u0275\u0275template:sp,\u0275\u0275text:Gg,\u0275\u0275textInterpolate:qu,\u0275\u0275textInterpolate1:hp,\u0275\u0275textInterpolate2:ic,\u0275\u0275textInterpolate3:sc,\u0275\u0275textInterpolate4:yy,\u
10275\u0275textInterpolate5:Ac,\u0275\u0275textInterpolate6:Wd,\u0275\u0275textInterpolate7:Zg,\u0275\u0275textInterpolate8:qg,\u0275\u0275textInterpolateV:fp,\u0275\u0275i18n:yi,\u0275\u0275i18nAttributes:xo,\u0275\u0275i18nExp:mo,\u0275\u0275i18nStart:si,\u0275\u0275i18nEnd:Oi,\u0275\u0275i18nApply:Ms,\u0275\u0275i18nPostprocess:Fa,\u0275\u0275resolveWindow:Kp,\u0275\u0275resolveDocument:wd,\u0275\u0275resolveBody:Eh,\u0275\u0275setComponentScope:nr,\u0275\u0275setNgModuleScope:pn,\u0275\u0275registerNgModuleType:fc,\u0275\u0275sanitizeHtml:Ou,\u0275\u0275sanitizeStyle:Ed,\u0275\u0275sanitizeResourceUrl:Na,\u0275\u0275sanitizeScript:Pu,\u0275\u0275sanitizeUrl:Nl,\u0275\u0275sanitizeUrlOrResourceUrl:ku,\u0275\u0275trustConstantHtml:xu,\u0275\u0275trustConstantResourceUrl:bc,\u0275\u0275validateIframeAttribute:gd,forwardRef:de,resolveForwardRef:be}))();let Rp=null;function Kb(){Rp=null}function Rv(n){return!!li(n)}const cm=[];let Ov=!1;function l0(){if(!Ov){Ov=!0;try{for(let n=cm.length-1;n>=0;n--){const{moduleType:i,ngModule:o}=cm[n];o.declarations&&o.declarations.every(c0)&&(cm.splice(n,1),Yb(i,o))}}finally{Ov=!1}}}function c0(n){return Array.isArray(n)?n.every(c0):!!be(n)}function u0(n,i={}){d0(n,i),void 0!==i.id&&fc(n,i.id),function Gb(n,i){cm.push({moduleType:n,ngModule:i})}(n,i)}function d0(n,i,o=!1){const l=Or(i.declarations||an);let u=null;Object.defineProperty(n,$,{configurable:!0,get:()=>(null===u&&(u=Zt().compileNgModule(ol,`ng:///${n.name}/\u0275mod.js`,{type:n,bootstrap:Or(i.bootstrap||an).map(be),declarations:l.map(be),imports:Or(i.imports||an).map(be).map(g0),exports:Or(i.exports||an).map(be).map(g0),schemas:i.schemas?Or(i.schemas):null,id:i.id||null}),u.schemas||(u.schemas=[])),u)});let p=null;Object.defineProperty(n,Ie,{get:()=>{if(null===p){const R=Zt();p=R.compileFactory(ol,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,deps:Oo(n),target:R.FactoryTarget.NgModule,typeArgumentCount:0})}return p},configurable:!1});let E=null;Object.defineProperty(n,xn,{get:()=>{if(null===E){const R={name:n.name,type:n,providers:i.providers||an,imports:[(i.imports||an).map(be),(i.exports||an).map(be)]};E=Zt().compileInjector(ol,`ng:///${n.name}/\u0275inj.js`,R)}return E},configurable:!1})}let By=new WeakMap,xv=new WeakMap;function qb(){By=new WeakMap,xv=new WeakMap,cm.length=0}function Yb(n,i){const o=Or(i.declarations||an),l=ff(n);o.forEach(u=>{(u=be(u)).hasOwnProperty($e)?kv(Pn(u),l):!u.hasOwnProperty(oe)&&!u.hasOwnProperty(j)&&(u.ngSelectorScope=n)})}function kv(n,i){n.directiveDefs=()=>Array.from(i.compilation.directives).map(o=>o.hasOwnProperty($e)?Pn(o):kr(o)).filter(o=>!!o),n.pipeDefs=()=>Array.from(i.compilation.pipes).map(o=>wr(o)),n.schemas=i.schemas,n.tView=null}function ff(n){if(Rv(n))return function Qb(n){const i=li(n,!0);if(null!==i.transitiveCompileScopes)return i.transitiveCompileScopes;const o={schemas:i.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return rc(i.imports).forEach(l=>{const u=ff(l);u.exported.directives.forEach(p=>o.compilation.directives.add(p)),u.exported.pipes.forEach(p=>o.compilation.pipes.add(p))}),rc(i.declarations).forEach(l=>{wr(l)?o.compilation.pipes.add(l):o.compilation.directives.add(l)}),rc(i.exports).forEach(l=>{const u=l;if(Rv(u)){const p=ff(u);p.exported.directives.forEach(E=>{o.compilation.directives.add(E),o.exported.directives.add(E)}),p.exported.pipes.forEach(E=>{o.compilation.pipes.add(E),o.exported.pipes.add(E)})}else wr(u)?o.exported.pipes.add(u):o.exported.directives.add(u)}),i.transitiveCompileScopes=o,o}(n);if(_i(n)){if(null!==(Pn(n)||kr(n)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([n]),pipes:new Set}};if(null!==wr(n))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([n])}}}throw new Error(`${n.name} does not have a module def (\u0275mod property)`)}function g0(n){return function a0(n){return void 0!==n.ngModule}(n)?n.ngModule:n}let Nv=0;function m0(n,i){let o=null;(function Xd(n,i){Uo(i)&&(zi.set(n,i),Ii.add(n))})(n,i),_0(n,i),Object.defineProperty(n,$e,{get:()=>{if(null===o){const l=Zt();if(Uo(i)){const te=[`Component '${n.name}' is not resolved:`];throw i.templateUrl&&te.push(` - templateUrl: ${i.templateUrl}`),i.styleUrls&&i.styleUrls.length&&te.push(` - styleUrls: ${JSON.stringify(i.styleUrls)}
1`),te.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(te.join("\n"))}const u=function Wb(){return Rp}();let p=i.preserveWhitespaces;void 0===p&&(p=null!==u&&void 0!==u.preserveWhitespaces&&u.preserveWhitespaces);let E=i.encapsulation;void 0===E&&(E=null!==u&&void 0!==u.defaultEncapsulation?u.defaultEncapsulation:Et.Emulated);const R=i.templateUrl||`ng:///${n.name}/template.html`,L={...v0(n,i),typeSourceSpan:l.createParseSourceSpan("Component",n.name,R),template:i.template||"",preserveWhitespaces:p,styles:i.styles||an,animations:i.animations,declarations:[],changeDetection:i.changeDetection,encapsulation:E,interpolation:i.interpolation,viewProviders:i.viewProviders||null};Nv++;try{if(L.usesInheritance&&E0(n),o=l.compileComponent(ol,R,L),i.standalone){const te=Or(i.imports||an),{directiveDefs:we,pipeDefs:Ke}=function Jb(n,i){let o=null,l=null;return{directiveDefs:()=>{if(null===o){o=[Pn(n)];const E=new Set;for(const R of i){const L=be(R);if(!E.has(L))if(E.add(L),li(L)){const te=ff(L);for(const we of te.exported.directives){const Ke=Pn(we)||kr(we);Ke&&!E.has(we)&&(E.add(we),o.push(Ke))}}else{const te=Pn(L)||kr(L);te&&o.push(te)}}}return o},pipeDefs:()=>{if(null===l){l=[];const E=new Set;for(const R of i){const L=be(R);if(!E.has(L))if(E.add(L),li(L)){const te=ff(L);for(const we of te.exported.pipes){const Ke=wr(we);Ke&&!E.has(we)&&(E.add(we),l.push(Ke))}}else{const te=wr(L);te&&l.push(te)}}}return l}}}(n,te);o.directiveDefs=we,o.pipeDefs=Ke,o.dependencies=()=>te.map(be)}}finally{Nv--}if(0===Nv&&l0(),function ew(n){return void 0!==n.ngSelectorScope}(n)){const te=ff(n.ngSelectorScope);kv(o,te)}if(i.schemas){if(!i.standalone)throw new Error(`The 'schemas' was specified for the ${He(n)} but is only valid on a component that is standalone.`);o.schemas=i.schemas}else i.standalone&&(o.schemas=[])}return o},configurable:!1})}function Fv(n,i){let o=null;_0(n,i||{}
1),Object.defineProperty(n,oe,{get:()=>{if(null===o){const l=y0(n,i||{});o=Zt().compileDirective(ol,l.sourceMapUrl,l.metadata)}return o},configurable:!1})}function y0(n,i){const o=n&&n.name,l=`ng:///${o}/\u0275dir.js`,u=Zt(),p=v0(n,i);return p.typeSourceSpan=u.createParseSourceSpan("Directive",o,l),p.usesInheritance&&E0(n),{metadata:p,sourceMapUrl:l}}function _0(n,i){let o=null;Object.defineProperty(n,Ie,{get:()=>{if(null===o){const l=y0(n,i),u=Zt();o=u.compileFactory(ol,`ng:///${n.name}/\u0275fac.js`,{name:l.metadata.name,type:l.metadata.type,typeArgumentCount:0,deps:Oo(n),target:u.FactoryTarget.Directive})}return o},configurable:!1})}function tw(n){return Object.getPrototypeOf(n.prototype)===Object.prototype}function v0(n,i){const o=Ra(),l=o.ownPropMetadata(n);return{name:n.name,type:n,selector:void 0!==i.selector?i.selector:null,host:i.host||ht,propMetadata:l,inputs:i.inputs||an,outputs:i.outputs||an,queries:b0(n,l,w0),lifecycle:{usesOnChanges:o.hasLifecycleHook(n,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!tw(n),exportAs:iw(i.exportAs),providers:i.providers||null,viewQueries:b0(n,l,C0),isStandalone:!!i.standalone,hostDirectives:i.hostDirectives?.map(u=>"function"==typeof u?{directive:u}:u)||null}}function E0(n){const i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;)!kr(o)&&!Pn(o)&&ow(o)&&Fv(o,null),o=Object.getPrototypeOf(o)}function nw(n){return"string"==typeof n?D0(n):be(n)}function rw(n,i){return{propertyName:n,predicate:nw(i.selector),descendants:i.descendants,first:i.first,read:i.read?i.read:null,static:!!i.static,emitDistinctChangesOnly:!!i.emitDistinctChangesOnly}}function b0(n,i,o){const l=[];for(const u in i)if(i.hasOwnProperty(u)){const p=i[u];p.forEach(E=>{if(o(E)){if(!E.selector)throw new Error(`Can't construct a query for the property "${u}" of "${He(n)}" since the query selector wasn't defined.`);if(p.some(I0))throw new Error("Cannot combine @Input decorators with query decorators");l.push(rw(u,E))}})}return l}function iw(n){return void 0===n?null:D0(n)}function w0(n){const i=n.ngMetadataName;return"ContentChild"===i||"ContentChildren"===i}function C0(n){const i=n.ngMetadataName;return"ViewChild"===i||"ViewChildren"===i}function I0(n){return"Input"===n.ngMetadataName}function D0(n){return n.split(",").map(i=>i.trim())}const sw=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function ow(n){const i=Ra();if(sw.some(l=>i.hasLifecycleHook(n,l)))return!0;const o=i.propMetadata(n);for(const l in o){const u=o[l];for(let p=0;p<u.length;p++){const E=u[p],R=E.ngMetadataName;if(I0(E)||w0(E)||C0(E)||"Output"===R||"HostBinding"===R||"HostListener"===R)return!0}}return!1}function T0(n,i){let o=null,l=null;Object.defineProperty(n,Ie,{get:()=>{if(null===l){const u=S0(n,i),p=Zt();l=p.compileFactory(ol,`ng:///${u.name}/\u0275fac.js`,{name:u.name,type:u.type,typeArgumentCount:0,deps:Oo(n),target:p.FactoryTarget.Pipe})}return l},configurable:!1}),Object.defineProperty(n,j,{get:()=>{if(null===o){const u=S0(n,i);o=Zt().compilePipe(ol,`ng:///${u.name}/\u0275pipe.js`,u)}return o},configurable:!1})}function S0(n,i){return{type:n,name:n.name,pipeName:i.name,pure:void 0===i.pure||i.pure,isStandalone:!!i.standalone}}const A0=Bs("Directive",(n={})=>n,void 0,void 0,(n,i)=>Fv(n,i)),aw=Bs("Component",(n={})=>({changeDetection:Ge.Default,...n}),A0,void 0,(n,i)=>m0(n,i)),lw=Bs("Pipe",n=>({pure:!0,...n}),void 0,void 0,(n,i)=>T0(n,i)),cw=Lt("Input",n=>({bindingPropertyName:n})),uw=Lt("Output",n=>({bindingPropertyName:n})),dw=Lt("HostBinding",n=>({hostPropertyName:n})),hw=Lt("HostListener",(n,i)=>({eventName:n,args:i})),fw=Bs("NgModule",n=>n,void 0,void 0,(n,i)=>u0(n,i));function $y(...n){}const M0=new Yr("Application Initializer");let Hy=(()=>{class n{constructor(o){this.appInits=o,this.resolve=$y,this.reject=$y,this.initialized=!1,this.done=!1,this.donePromise=new Promise((l,u)=>{this.resolve=l,this.reject=u})}runInitializers(){if(this.initialized)return;const o=[],l=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let u=0;u<this.appInits.length;u++){const p=this.appInits[u]();if(zh(p))o.push(p);else if(jd(p)){const E=new Promise((R,L)=>{p.subscribe({complete:R,error:L})});o.push(E)}}Promise.all(o).then(()=>{l()}).catch(u=>{this.reject(u)}),0===o.length&&l(),this.initialized=!0}}return n.\u0275fac=function(o){return new(o||n)(Q(M0,8))},n.\u0275prov=cn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();
1const R0=new Yr("AppId",{providedIn:"root",factory:O0});function O0(){return`${Lv()}${Lv()}${Lv()}`}const pw={provide:R0,useFactory:O0,deps:[]};function Lv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const P0=new Yr("Platform Initializer"),gw=new Yr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mw=new Yr("Application Packages Root URL"),yw=new Yr("AnimationModuleType");let _w=(()=>{class n{log(o){console.log(o)}warn(o){console.warn(o)}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275prov=cn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const zy=new Yr("LocaleId",{providedIn:"root",factory:()=>fe(zy,se.Optional|se.SkipSelf)||function vw(){return typeof $localize<"u"&&$localize.locale||oc}()}),Ew=new Yr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),bw=new Yr("Translations"),ww=new Yr("TranslationsFormat");var mu=(()=>((mu=mu||{})[mu.Error=0]="Error",mu[mu.Warning=1]="Warning",mu[mu.Ignore=2]="Ignore",mu))();class x0{constructor(i,o){this.ngModuleFactory=i,this.componentFactories=o}}let Cw=(()=>{class n{compileModuleSync(o){return new Ly(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const l=this.compileModuleSync(o),p=rc(li(o).declarations).reduce((E,R)=>{const L=Pn(R);return L&&E.push(new ru(L)),E},[]);return new x0(l,p)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275prov=cn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const k0=new Yr("compilerOptions");class Iw{}function Dw(n){Rd(tt(n)),bE(n).forEach(i=>ip(i))}const N0="ng";let F0=!1;function Tw(){F0||(F0=!0,lc("\u0275setProfiler",Li),lc("getDirectiveMetadata",Db),lc("getComponent",bv),lc("getContext",vE),lc("getListeners",IE),lc("getOwningComponent",EE),lc("getHostElement",wv),lc("getInjector",wE),lc("getRootComponents",bE),lc("getDirectives",CE),lc("applyChanges",Dw))}function lc(n,i){if((typeof COMPILED>"u"||!COMPILED)&&qt){let l=qt[N0];l||(l=qt[N0]={}),l[n]=i}}const Sw=(()=>Promise.resolve(0))();function Vv(n){typeof Zone>"u"?Sw.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class cc{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:l=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new gu(!1),this.onMicrotaskEmpty=new gu(!1),this.onStable=new gu(!1),this.onError=new gu(!1),typeof Zone>"u")throw new Me(908,!1);Zone.assertZonePatched();const u=this;u._nesting=0,u._outer=u._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(u._inner=u._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(u._inner=u._inner.fork(Zone.longStackTraceZoneSpec)),u.shouldCoalesceEventChangeDetection=!l&&o,u.shouldCoalesceRunChangeDetection=l,u.lastRequestAnimationFrameId=-1,u.nativeRequestAnimationFrame=function Aw(){let n=qt.requestAnimationFrame,i=qt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&i){const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o);const l=i[Zone.__symbol__("OriginalDelegate")];l&&(i=l)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function Ow(n){const i=()=>{!function Rw(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(qt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,jv(n),n.isCheckStableRunning=!0,Uv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),jv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,l,u,p,E,R)=>{try{return L0(n),o.invokeTask(u,p,E,R)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===p.type||n.shouldCoalesceRunChangeDetection)&&i(),V0(n)}},onInvoke:(o,l,u,p,E,R,L)=>{try{return L0(n),o.invoke(u,p,E,R,L)}finally{n.shouldCoalesceRunChangeDetection&&i(),V0(n)}},onHasTask:(o,l,u,p)=>{o.hasTask(u,p),l===u&&("microTask"==p.change?(n._hasPendingMicrotasks=p.microTask,jv(n),Uv(n)):"macroTask"==p.change&&(n.hasPendingMacrotasks=p.macroTask))},onHandleError:(o,l,u,p)=>(o.handleError(u,p),n.runOutsideAngular(()=>n.onError.emit(p)),!1)})}(u)}
1static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!cc.isInAngularZone())throw new Me(909,!1)}static assertNotInAngularZone(){if(cc.isInAngularZone())throw new Me(909,!1)}run(i,o,l){return this._inner.run(i,o,l)}runTask(i,o,l,u){const p=this._inner,E=p.scheduleEventTask("NgZoneEvent: "+u,i,Mw,$y,$y);try{return p.runTask(E,o,l)}finally{p.cancelTask(E)}}runGuarded(i,o,l){return this._inner.runGuarded(i,o,l)}runOutsideAngular(i){return this._outer.run(i)}}const Mw={};function Uv(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function jv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function L0(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function V0(n){n._nesting--,Uv(n)}class U0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new gu,this.onMicrotaskEmpty=new gu,this.onStable=new gu,this.onError=new gu}run(i,o,l){return i.apply(o,l)}runGuarded(i,o,l){return i.apply(o,l)}runOutsideAngular(i){return i()}runTask(i,o,l,u){return i.apply(o,l)}}const j0=new Yr(""),B0=new Yr("");let Bv,Pw=(()=>{class n{constructor(o,l,u){this._ngZone=o,this.registry=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bv||(H0(u),u.addToWindow(l)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{cc.assertNotInAngularZone(),Vv(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,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())Vv(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb(this._didWork)}this._didWork=!1});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(o)||(clearTimeout(l.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,l,u){let p=-1;l&&l>0&&(p=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==p),o(this._didWork,this.getPendingTasks())},l)),this._callbacks.push({doneCb:o,timeoutId:p,updateCb:u})}whenStable(o,l,u){if(u&&!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,l,u),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,l,u){return[]}}return n.\u0275fac=function(o){return new(o||n)(Q(cc),Q($0),Q(B0))},n.\u0275prov=cn({token:n,factory:n.\u0275fac}),n})(),$0=(()=>{class n{constructor(){this._applications=new Map}registerApplication(o,l){this._applications.set(o,l)}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,l=!0){return Bv?.findTestabilityInTree(this,o,l)??null}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275prov=cn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function H0(n){Bv=n}const rd=!1;let Qd=null;const $v=new Yr("AllowMultipleToken"),Hv=new Yr("PlatformDestroyListeners"),z0=new Yr("appBootstrapListener");function W0(n,i,o){const l=new Ly(o);return Promise.resolve(l)}function K0(n){return n.isBoundToModule}class xw{constructor(i,o){this.name=i,this.token=o}}function G0(n){if(Qd&&!Qd.get($v,!1))throw new Me(400,!1);Qd=n;const i=n.get(zv);return Z0(n),i}function Z0(n){const i=n.get(P0,null);
1i&&i.forEach(o=>o())}function Nw(n){const{rootComponent:i,appProviders:o,platformProviders:l}=n;rd&&void 0!==i&&function wm(n){if(function wa(n){if(!Pn(n))throw new Me(906,`The ${He(n)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(n),!Pn(n).standalone)throw new Me(907,`The ${He(n)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${He(n)} component has the \`standalone: true\` flag in the decorator.`)}(i);const u=function kw(n=[]){if(Qd)return Qd;const i=Q0(n);return Qd=i,Z0(i),i}(l),p=J0("zone.js",X0());return p.run(()=>{const R=Ev([{provide:cc,useValue:p},...o||[]],u,"Environment Injector"),L=R.get(qc,null);if(rd&&!L)throw new Me(402,"No `ErrorHandler` found in the Dependency Injection tree.");let te;p.runOutsideAngular(()=>{te=p.onError.subscribe({next:Dt=>{L.handleError(Dt)}})});const we=()=>R.destroy(),Ke=u.get(Hv);return Ke.add(we),R.onDestroy(()=>{te.unsubscribe(),Ke.delete(we)}),eb(L,p,()=>{const Dt=R.get(Hy);return Dt.runInitializers(),Dt.donePromise.then(()=>{wp(R.get(zy,oc)||oc);const vn=R.get(Ky);return void 0!==i&&vn.bootstrap(i),vn})})})}function q0(n,i,o=[]){const l=`Platform: ${i}`,u=new Yr(l);return(p=[])=>{let E=Wy();if(!E||E.injector.get($v,!1)){const R=[...o,...p,{provide:u,useValue:!0}];n?n(R):G0(Q0(R,l))}return Y0()}}function Y0(n){const i=Wy();if(!i)throw new Me(401,!1);return i}function Q0(n=[],i){return Jc.create({name:i,providers:[{provide:Sf,useValue:"platform"},{provide:Hv,useValue:new Set([()=>Qd=null])},...n]})}function Fw(){Wy()?.destroy()}function Wy(){return Qd?.get(zv)??null}let zv=(()=>{class n{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,l){const u=J0(l?.ngZone,X0(l)),p=[{provide:cc,useValue:u}];return u.run(()=>{const E=Jc.create({providers:p,parent:this.injector,name:o.moduleType.name}),R=o.create(E),L=R.injector.get(qc,null);if(!L)throw new Me(402,!1);return u.runOutsideAngular(()=>{const te=u.onError.subscribe({next:we=>{L.handleError(we)}});R.onDestroy(()=>{Gy(this._modules,R),te.unsubscribe()})}),eb(L,u,()=>{const te=R.injector.get(Hy);return te.runInitializers(),te.donePromise.then(()=>(wp(R.injector.get(zy,oc)||oc),this._moduleDoBootstrap(R),R))})})}bootstrapModule(o,l=[]){const u=tb({},l);return W0(0,0,o).then(p=>this.bootstrapModuleFactory(p,u))}_moduleDoBootstrap(o){const l=o.injector.get(Ky);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(u=>l.bootstrap(u));else{if(!o.instance.ngDoBootstrap)throw new Me(-403,!1);o.instance.ngDoBootstrap(l)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Me(404,!1);this._modules.slice().forEach(l=>l.destroy()),this._destroyListeners.forEach(l=>l());const o=this._injector.get(Hv,null);o&&(o.forEach(l=>l()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(o){return new(o||n)(Q(Jc))},n.\u0275prov=cn({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function X0(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}function J0(n,i){let o;return o="noop"===n?new U0:("zone.js"===n?void 0:n)||new cc(i),o}function eb(n,i,o){try{const l=o();return zh(l)?l.catch(u=>{throw i.runOutsideAngular(()=>n.handleError(u)),u}):l}catch(l){throw i.runOutsideAngular(()=>n.handleError(l)),l}}function tb(n,i){return Array.isArray(i)?i.reduce(tb,n):{...n,...i}}let Ky=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(o,l,u){this._zone=o,this._injector=l,this._exceptionHandler=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new V.y(R=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{R.next(this._stable),R.complete()})}),E=new V.y(R=>{let L;this._zone.runOutsideAngular(()=>{L=this._zone.onStable.subscribe(()=>{cc.assertNotInAngularZone(),Vv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,R.next(!0))})})});const te=this._zone.onUnstable.subscribe(()=>{cc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{R.next(!1)}))});return()=>{L.unsubscribe(),te.unsubscribe()}});
1this.isStable=(0,_e.T)(p,E.pipe((0,pe.B)()))}bootstrap(o,l){rd&&this.warnIfDestroyed();const u=o instanceof Gc;if(!this._injector.get(Hy).done){const zt="Cannot bootstrap as there are still asynchronous initializers running."+(!u&&_i(o)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new Me(405,rd&&zt)}let E;E=u?o:this._injector.get(yh).resolveComponentFactory(o),this.componentTypes.push(E.componentType);const R=K0(E)?void 0:this._injector.get(Mp),te=E.create(Jc.NULL,[],l||E.selector,R),we=te.location.nativeElement,Ke=te.injector.get(j0,null);return Ke?.registerApplication(we),te.onDestroy(()=>{this.detachView(te.hostView),Gy(this.components,te),Ke?.unregisterApplication(we)}),this._loadComponent(te),te}tick(){if(rd&&this.warnIfDestroyed(),this._runningTick)throw new Me(101,!1);try{this._runningTick=!0;for(let o of this._views)o.detectChanges()}catch(o){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(o))}finally{this._runningTick=!1}}attachView(o){rd&&this.warnIfDestroyed();const l=o;this._views.push(l),l.attachToAppRef(this)}detachView(o){rd&&this.warnIfDestroyed();const l=o;Gy(this._views,l),l.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const l=this._injector.get(z0,[]);l.push(...this._bootstrapListeners),l.forEach(u=>u(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return rd&&this.warnIfDestroyed(),this._destroyListeners.push(o),()=>Gy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Me(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){rd&&this._destroyed&&console.warn(Pe(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return n.\u0275fac=function(o){return new(o||n)(Q(cc),Q(il),Q(qc))},n.\u0275prov=cn({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gy(n,i){const o=n.indexOf(i);o>-1&&n.splice(o,1)}function Vw(){return!1}function Uw(){}function jw(n){const i=id(n);if(!i)throw rb(n);return new Ly(i)}function Bw(n){const i=id(n);if(!i)throw rb(n);return i}function rb(n){return new Error(`No module with ID ${n} loaded`)}let ib=(()=>{class n{}return n.__NG_ELEMENT_ID__=sb,n})();function sb(n){return function $w(n,i,o){if(Pi(n)&&!o){const l=Ci(n.index,i);return new zu(l,l)}return 47&n.type?new zu(i[ni],i):null}(Tt(),S(),16==(16&n))}class ob extends ib{}class Hw extends ob{}class zw{constructor(i,o){this.name=i,this.callback=o}}function Ww(n){return n.map(i=>i.nativeElement)}class Wv{constructor(i){this.nativeNode=i}get parent(){const i=this.nativeNode.parentNode;return i?new um(i):null}get injector(){return wE(this.nativeNode)}get componentInstance(){const i=this.nativeNode;return i&&(bv(i)||EE(i))}get context(){return bv(this.nativeNode)||vE(this.nativeNode)}get listeners(){return IE(this.nativeNode).filter(i=>"dom"===i.type)}get references(){return function Tb(n){const i=J(n);if(null===i)return{};if(void 0===i.localRefs){const o=i.lView;if(null===o)return{};i.localRefs=function va(n,i){const o=n[Tn].data[i];if(o&&o.localNames){const l={};let u=o.index+1;for(let p=0;p<o.localNames.length;p+=2)l[o.localNames[p]]=n[u],u++;return l}return null}(o,i.nodeIndex)}return i.localRefs||{}}(this.nativeNode)}get providerTokens(){return function Ib(n){const i=J(n),o=i?i.lView:null;if(null===o)return[];const l=o[Tn],u=l.data[i.nodeIndex],p=[],R=u.directiveEnd;for(let L=1048575&u.providerIndexes;L<R;L++){let te=l.data[L];Ab(te)&&(te=te.type),p.push(te)}return p}(this.nativeNode)}}class um extends Wv{constructor(i){super(i)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const i=J(this.nativeNode),o=i?i.lView:null;return null!==o?o[Tn].data[i.nodeIndex].value:this.nativeNode.nodeName}get properties(){const i=J(this.nativeNode),o=i?i.lView:null;if(null===o)return{};const l=o[Tn].data,u=l[i.nodeIndex],p={};
1return function Kw(n,i){if(n){let o=Object.getPrototypeOf(n);const l=Node.prototype;for(;null!==o&&o!==l;){const u=Object.getOwnPropertyDescriptors(o);for(let p in u)if(!p.startsWith("__")&&!p.startsWith("on")){const E=n[p];Gw(E)&&(i[p]=E)}o=Object.getPrototypeOf(o)}}}(this.nativeElement,p),function Zw(n,i,o,l){let u=i.propertyBindings;if(null!==u)for(let p=0;p<u.length;p++){const E=u[p],L=l[E].split("\ufffd"),te=L[0];if(L.length>1){let we=L[1];for(let Ke=1;Ke<L.length-1;Ke++)we+=Ct(o[E+Ke-1])+L[Ke+1];n[te]=we}else n[te]=o[E]}}(p,u,o,l),p}get attributes(){const i={},o=this.nativeElement;if(!o)return i;const l=J(o),u=l?l.lView:null;if(null===u)return{};const p=u[Tn].data[l.nodeIndex].attrs,E=[];if(p){let R=0;for(;R<p.length;){const L=p[R];if("string"!=typeof L)break;i[L]=p[R+1],E.push(L.toLowerCase()),R+=2}}for(const R of o.attributes)E.includes(R.name)||(i[R.name]=R.value);return i}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const i={},l=this.nativeElement.className;return("string"!=typeof l?l.baseVal.split(" "):l.split(" ")).forEach(p=>i[p]=!0),i}get childNodes(){const i=this.nativeNode.childNodes,o=[];for(let l=0;l<i.length;l++)o.push(Op(i[l]));return o}get children(){const i=this.nativeElement;if(!i)return[];const o=i.children,l=[];for(let u=0;u<o.length;u++)l.push(Op(o[u]));return l}query(i){return this.queryAll(i)[0]||null}queryAll(i){const o=[];return ab(this,i,o,!0),o}queryAllNodes(i){const o=[];return ab(this,i,o,!1),o}triggerEventHandler(i,o){const l=this.nativeNode,u=[];this.listeners.forEach(p=>{if(p.name===i){const E=p.callback;E.call(l,o),u.push(E)}}),"function"==typeof l.eventListeners&&l.eventListeners(i).forEach(p=>{if(-1!==p.toString().indexOf("__ngUnwrap__")){const E=p("__ngUnwrap__");return-1===u.indexOf(E)&&E.call(l,o)}})}}function Gw(n){return"string"==typeof n||"boolean"==typeof n||"number"==typeof n||null===n}function ab(n,i,o,l){const u=J(n.nativeNode),p=u?u.lView:null;null!==p?pf(p[Tn].data[u.nodeIndex],p,i,o,l,n.nativeNode):Gv(n.nativeNode,i,o,l)}function pf(n,i,o,l,u,p){const E=function Xi(n,i){const o=null===n?-1:n.index;return-1!==o?vi(i[o]):null}(n,i);if(11&n.type){if(Kv(E,o,l,u,p),Pi(n)){const L=Ci(n.index,i);L&&L[Tn].firstChild&&pf(L[Tn].firstChild,L,o,l,u,p)}else n.child&&pf(n.child,i,o,l,u,p),E&&Gv(E,o,l,u);const R=i[n.index];Er(R)&&lb(R,o,l,u,p)}else if(4&n.type){const R=i[n.index];Kv(R[ut],o,l,u,p),lb(R,o,l,u,p)}else if(16&n.type){const R=i[ni],te=R[Zr].projection[n.projection];if(Array.isArray(te))for(let we of te)Kv(we,o,l,u,p);else if(te){const we=R[ci];pf(we[Tn].data[te.index],we,o,l,u,p)}}else n.child&&pf(n.child,i,o,l,u,p);if(p!==E){const R=2&n.flags?n.projectionNext:n.next;R&&pf(R,i,o,l,u,p)}}function lb(n,i,o,l,u){for(let p=mn;p<n.length;p++){const E=n[p],R=E[Tn].firstChild;R&&pf(R,E,i,o,l,u)}}function Kv(n,i,o,l,u){if(u!==n){const p=Op(n);if(!p)return;(l&&p instanceof um&&i(p)&&-1===o.indexOf(p)||!l&&i(p)&&-1===o.indexOf(p))&&o.push(p)}}function Gv(n,i,o,l){const u=n.childNodes,p=u.length;for(let E=0;E<p;E++){const R=u[E],L=Op(R);L&&((l&&L instanceof um&&i(L)&&-1===o.indexOf(L)||!l&&i(L)&&-1===o.indexOf(L))&&o.push(L),Gv(R,i,o,l))}}const qv="__ng_debug__";function Op(n){return n instanceof Node?(n.hasOwnProperty(qv)||(n[qv]=n.nodeType==Node.ELEMENT_NODE?new um(n):new Wv(n)),n[qv]):null}function qw(n){return null}class cb{constructor(){}supports(i){return kd(i)}create(i){return new ub(i)}}const Yw=(n,i)=>i;class ub{constructor(i){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=i||Yw}forEachItem(i){let o;for(o=this._itHead;null!==o;o=o._next)i(o)}forEachOperation(i){let o=this._itHead,l=this._removalsHead,u=0,p=null;for(;o||l;){const E=!l||o&&o.currentIndex<hb(l,u,p)?o:l,R=hb(E,u,p),L=E.currentIndex;if(E===l)u--,l=l._nextRemoved;else if(o=o._next,null==E.previousIndex)u++;else{p||(p=[]);const te=R-u,we=L-u;if(te!=we){for(let Dt=0;Dt<te;
vendor: 9,084 bytes, line 1
1Dt++){const zt=Dt<p.length?p[Dt]:p[Dt]=0,vn=zt+Dt;we<=vn&&vn<te&&(p[Dt]=zt+1)}p[E.previousIndex]=we-te}}R!==L&&i(E,R,L)}}forEachPreviousItem(i){let o;for(o=this._previousItHead;null!==o;o=o._nextPrevious)i(o)}forEachAddedItem(i){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)i(o)}forEachMovedItem(i){let o;for(o=this._movesHead;null!==o;o=o._nextMoved)i(o)}forEachRemovedItem(i){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)i(o)}forEachIdentityChange(i){let o;for(o=this._identityChangesHead;null!==o;o=o._nextIdentityChange)i(o)}diff(i){if(null==i&&(i=[]),!kd(i))throw new Me(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let u,p,E,o=this._itHead,l=!1;if(Array.isArray(i)){this.length=i.length;for(let R=0;R<this.length;R++)p=i[R],E=this._trackByFn(R,p),null!==o&&Object.is(o.trackById,E)?(l&&(o=this._verifyReinsertion(o,p,E,R)),Object.is(o.item,p)||this._addIdentityChange(o,p)):(o=this._mismatch(o,p,E,R),l=!0),o=o._next}else u=0,function k_(n,i){if(Array.isArray(n))for(let o=0;o<n.length;o++)i(n[o]);else{const o=n[Symbol.iterator]();let l;for(;!(l=o.next()).done;)i(l.value)}}(i,R=>{E=this._trackByFn(u,R),null!==o&&Object.is(o.trackById,E)?(l&&(o=this._verifyReinsertion(o,R,E,u)),Object.is(o.item,R)||this._addIdentityChange(o,R)):(o=this._mismatch(o,R,E,u),l=!0),o=o._next,u++}),this.length=u;return this._truncate(o),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,o,l,u){let p;return null===i?p=this._itTail:(p=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._reinsertAfter(i,p,u)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(l,u))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._moveAfter(i,p,u)):i=this._addAfter(new Qw(o,l),p,u),i}_verifyReinsertion(i,o,l,u){let p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==p?i=this._reinsertAfter(p,i._prev,u):i.currentIndex!=u&&(i.currentIndex=u,this._addToMoves(i,u)),i}_truncate(i){for(;null!==i;){const o=i._next;this._addToRemovals(this._unlink(i)),i=o}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(i,o,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const u=i._prevRemoved,p=i._nextRemoved;return null===u?this._removalsHead=p:u._nextRemoved=p,null===p?this._removalsTail=u:p._prevRemoved=u,this._insertAfter(i,o,l),this._addToMoves(i,l),i}_moveAfter(i,o,l){return this._unlink(i),this._insertAfter(i,o,l),this._addToMoves(i,l),i}_addAfter(i,o,l){return this._insertAfter(i,o,l),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,o,l){const u=null===o?this._itHead:o._next;return i._next=u,i._prev=o,null===u?this._itTail=i:u._prev=i,null===o?this._itHead=i:o._next=i,null===this._linkedRecords&&(this._linkedRecords=new db),this._linkedRecords.put(i),i.currentIndex=l,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const o=i._prev,l=i._next;return null===o?this._itHead=l:o._next=l,null===l?this._itTail=o:l._prev=o,i}_addToMoves(i,o){return i.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new db),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,o){return i.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class Qw{constructor(i,o){this.item=i,this.trackById=o,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 Xw{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,o){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===o||o<=l.currentIndex)&&Object.is(l.trackById,i))return l;return null}remove(i){const o=i._prevDup,l=i._nextDup;return null===o?this._head=l:o._nextDup=l,null===l?this._tail=o:l._prevDup=o,null===this._head}}class db{constructor(){this.map=new Map}put(i){const o=i.trackById;let l=this.map.get(o);l||(l=new Xw,this.map.set(o,l)),l.add(i)}get(i,o){const u=this.map.get(i);return u?u.get(i,o):null}remove(i){const o=i.trackById;return this.map.get(o).remove(i)&&this.map.delete(o),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hb(n,i,o){const l=n.previousIndex;if(null===l)return l;let u=0;return o&&l<o.length&&(u=o[l]),l+i+u}class fb{constructor(){}supports(i){return i instanceof Map||Fh(i)}create(){return new Jw}}class Jw{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(i){let o;for(o=this._mapHead;null!==o;o=o._next)i(o)}forEachPreviousItem(i){let o;for(o=this._previousMapHead;null!==o;o=o._nextPrevious)i(o)}forEachChangedItem(i){let o;for(o=this._changesHead;null!==o;o=o._nextChanged)i(o)}forEachAddedItem(i){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)i(o)}forEachRemovedItem(i){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)i(o)}diff(i){if(i){if(!(i instanceof Map||Fh(i)))throw new Me(900,!1)}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let o=this._mapHead;if(this._appendAfter=null,this._forEach(i,(l,u)=>{if(o&&o.key===u)this._maybeAddToChanges(o,l),this._appendAfter=o,o=o._next;else{const p=this._getOrCreateRecordForKey(u,l);o=this._insertBeforeOrAppend(o,p)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let l=o;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,o){if(i){const l=i._prev;return o._next=i,o._prev=l,i._prev=o,l&&(l._next=o),i===this._mapHead&&(this._mapHead=o),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(i,o){if(this._records.has(i)){const u=this._records.get(i);this._maybeAddToChanges(u,o);const p=u._prev,E=u._next;return p&&(p._next=E),E&&(E._prev=p),u._next=null,u._prev=null,u}const l=new eC(i);return this._records.set(i,l),l.currentValue=o,this._addToAdditions(l),l}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,o){Object.is(o,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=o,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,o){i instanceof Map?i.forEach(o):Object.keys(i).forEac
1h(l=>o(i[l],l))}}class eC{constructor(i){this.key=i,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 pb(){return new Yv([new cb])}let Yv=(()=>{class n{constructor(o){this.factories=o}static create(o,l){if(null!=l){const u=l.factories.slice();o=o.concat(u)}return new n(o)}static extend(o){return{provide:n,useFactory:l=>n.create(o,l||pb()),deps:[[n,new Ys,new ls]]}}find(o){const l=this.factories.find(u=>u.supports(o));if(null!=l)return l;throw new Me(901,!1)}}return n.\u0275prov=cn({token:n,providedIn:"root",factory:pb}),n})();function gb(){return new Qv([new fb])}let Qv=(()=>{class n{constructor(o){this.factories=o}static create(o,l){if(l){const u=l.factories.slice();o=o.concat(u)}return new n(o)}static extend(o){return{provide:n,useFactory:l=>n.create(o,l||gb()),deps:[[n,new Ys,new ls]]}}find(o){const l=this.factories.find(u=>u.supports(o));if(l)return l;throw new Me(901,!1)}}return n.\u0275prov=cn({token:n,providedIn:"root",factory:gb}),n})();const tC=[new fb],rC=new Yv([new cb]),iC=new Qv(tC),sC=q0(null,"core",[]);let oC=(()=>{class n{constructor(o){}}return n.\u0275fac=function(o){return new(o||n)(Q(Ky))},n.\u0275mod=xt({type:n}),n.\u0275inj=wn({}),n})();function aC(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function lC(n){return Zt().compileDirectiveDeclaration(ol,`ng:///${n.type.name}/\u0275fac.js`,n)}function cC(n){DE(n.type,n.decorators,n.ctorParameters??null,n.propDecorators??null)}function uC(n){return Zt().compileComponentDeclaration(ol,`ng:///${n.type.name}/\u0275cmp.js`,n)}function dC(n){return Zt(function hC(n){switch(n){case Ze.Directive:return"directive";case Ze.Component:return"component";case Ze.Injectable:return"injectable";case Ze.Pipe:return"pipe";case Ze.NgModule:return"NgModule"}}(n.target)).compileFactoryDeclaration(ol,`ng:///${n.type.name}/\u0275fac.js`,n)}function fC(n){return Zt().compileInjectableDeclaration(ol,`ng:///${n.type.name}/\u0275prov.js`,n)}function pC(n){return Zt().compileInjectorDeclaration(ol,`ng:///${n.type.name}/\u0275inj.js`,n)}function gC(n){return Zt().compileNgModuleDeclaration(ol,`ng:///${n.type.name}/\u0275mod.js`,n)}function mC(n){return Zt().compilePipeDeclaration(ol,`ng:///${n.type.name}/\u0275pipe.js`,n)}function yC(n,i){const o=Pn(n),l=i.elementInjector||ec();return new ru(o).create(l,i.projectableNodes,i.hostElement,i.environmentInjector)}function _C(n){const i=Pn(n);if(!i)return null;const o=new ru(i);return{get selector(){return o.selector},get type(){return o.componentType},get inputs(){return o.inputs},get outputs(){return o.outputs},get ngContentSelectors(){return o.ngContentSelectors},get isStandalone(){return i.standalone}}}},433:(ln,et,C)=>{"use strict";C.r(et),C.d(et,{AbstractControl:()=>$,AbstractControlDirective:()=>se,AbstractFormGroupDirective:()=>$i,COMPOSITION_BUFFER_MODE:()=>He,CheckboxControlValueAccessor:()=>Me,CheckboxRequiredValidator:()=>vi,ControlContainer:()=>K,DefaultValueAccessor:()=>Ve,EmailValidator:()=>ys,FormArray:()=>Ji,FormArrayName:()=>Ns,FormBuilder:()=>W,FormControl:()=>ni,FormControlDirective:()=>Qi,FormControlName:()=>ao,FormGroup:()=>Ie,FormGroupDirective:()=>so,FormGroupName:()=>oo,FormRecord:()=>Cn,FormsModule:()=>Qt,MaxLengthValidator:()=>Vi,MaxValidator:()=>Ao,MinLengthValidator:()=>Xi,MinValidator:()=>Li,NG_ASYNC_VALIDATORS:()=>At,NG_VALIDATORS:()=>nt,NG_VALUE_ACCESSOR:()=>dt,NgControl:()=>Te,NgControlStatus:()=>qt,NgControlStatusGroup:()=>dn,NgForm:()=>ws,NgModel:()=>Jt,NgModelGroup:()=>pt,NgSelectOption:()=>zo,NonNullableFormBuilder:()=>Ae,NumberValueAccessor:()=>yr,PatternValidator:()=>uo,RadioControlValueAccessor:()=>ri,RangeValueAccessor:()=>Di,ReactiveFormsModule:()=>En,RequiredValidator:()=>Ds,SelectControlValueAccessor:()=>Fs,SelectMultipleControlValueAccessor:()=>co,UntypedFormArray:()=>mr,UntypedFormBuilder:()=>Je,UntypedFormControl:()=>io,UntypedFormGroup:()=>Qe,VERSION:()=>gt,Validators:()=>Wt,isFormArray:()=>Ks,isFormControl:()=>Bi,isFormGroup:()=>kt,isFormRecord:()=>nr,\u0275InternalFormsSharedModule:()=>Ls,\u0275NgNoValidate:()=>mn,\u0275NgSelectMultipleOption:()=>So});var c=C(4650),m=C(6895),V=C(8996),_e=C(9751),pe=C(4742),me=C(8421),Oe=C(3269),ie=C(5403),Re=C(3268),q=C(1810),be=C(4004);let lt=(()=>{class S{constructor(P,le){this._renderer=P,this._elementRef=le,this.onChange=Tt=>{},this.onTouched=()=>{}}setProperty(P,le){this._renderer.setProperty(this._elementRef.nativeElement,P,le)}registerOnTouched(P){this.onTouched=P}registerOnChange(P){this.onChange=P}setDisabledState(P){this.setProperty("disabled",P)}}
1return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(c.ElementRef))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S}),S})(),it=(()=>{class S extends lt{}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,features:[c.\u0275\u0275InheritDefinitionFeature]}),S})();const dt=new c.InjectionToken("NgValueAccessor"),wt={provide:dt,useExisting:(0,c.forwardRef)(()=>Me),multi:!0};let Me=(()=>{class S extends it{writeValue(P){this.setProperty("checked",P)}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("change",function(In){return le.onChange(In.target.checked)})("blur",function(){return le.onTouched()})},features:[c.\u0275\u0275ProvidersFeature([wt]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Pe={provide:dt,useExisting:(0,c.forwardRef)(()=>Ve),multi:!0},He=new c.InjectionToken("CompositionEventMode");let Ve=(()=>{class S extends lt{constructor(P,le,Tt){super(P,le),this._compositionMode=Tt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ct(){const S=(0,m.q)()?(0,m.q)().getUserAgent():"";return/android (\d+)/.test(S.toLowerCase())}())}writeValue(P){this.setProperty("value",P??"")}_handleInput(P){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(P)}_compositionStart(){this._composing=!0}_compositionEnd(P){this._composing=!1,this._compositionMode&&this.onChange(P)}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(He,8))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,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(P,le){1&P&&c.\u0275\u0275listener("input",function(In){return le._handleInput(In.target.value)})("blur",function(){return le.onTouched()})("compositionstart",function(){return le._compositionStart()})("compositionend",function(In){return le._compositionEnd(In.target.value)})},features:[c.\u0275\u0275ProvidersFeature([Pe]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const ve=!1;function ze(S){return null==S||("string"==typeof S||Array.isArray(S))&&0===S.length}function rt(S){return null!=S&&"number"==typeof S.length}const nt=new c.InjectionToken("NgValidators"),At=new c.InjectionToken("NgAsyncValidators"),Ue=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wt{static min(x){return je(x)}static max(x){return vt(x)}static required(x){return jt(x)}static requiredTrue(x){return On(x)}static email(x){return Sn(x)}static minLength(x){return St(x)}static maxLength(x){return yn(x)}static pattern(x){return ae(x)}static nullValidator(x){return null}static compose(x){return tr(x)}static composeAsync(x){return Wn(x)}}function je(S){return x=>{if(ze(x.value)||ze(S))return null;const P=parseFloat(x.value);return!isNaN(P)&&P<S?{min:{min:S,actual:x.value}}:null}}function vt(S){return x=>{if(ze(x.value)||ze(S))return null;const P=parseFloat(x.value);return!isNaN(P)&&P>S?{max:{max:S,actual:x.value}}:null}}function jt(S){return ze(S.value)?{required:!0}:null}function On(S){return!0===S.value?null:{required:!0}}function Sn(S){return ze(S.value)||Ue.test(S.value)?null:{email:!0}}function St(S){return x=>ze(x.value)||!rt(x.value)?null:x.value.length<S?{minlength:{requiredLength:S,actualLength:x.value.length}}:null}function yn(S){return x=>rt(x.value)&&x.value.length>S?{maxlength:{requiredLength:S,actualLength:x.value.length}}:null}function ae(S){if(!S)return Ne;let x,P;return"string"==typeof S?(P="","^"!==S.charAt(0)&&(P+="^"),P+=S,"$"!==S.charAt(S.length-1)&&(P+="$"),x=new RegExp(P)):(P=S.toString(),x=S),le=>{if(ze(le.value))return null;const Tt=le.value;return x.test(Tt)?null:{pattern:{requiredPattern:P,actualValue:Tt}}}}function Ne(S){return null}function Xe(S){return null!=S}
1function qe(S){const x=(0,c.\u0275isPromise)(S)?(0,V.D)(S):S;if(ve&&!(0,c.\u0275isObservable)(x)){let P="Expected async validator to return Promise or Observable.";throw"object"==typeof S&&(P+=" Are you using a synchronous validator where an async validator is expected?"),new c.\u0275RuntimeError(-1101,P)}return x}function yt(S){let x={};return S.forEach(P=>{x=null!=P?{...x,...P}:x}),0===Object.keys(x).length?null:x}function ft(S,x){return x.map(P=>P(S))}function cn(S){return S.map(x=>function $t(S){return!S.validate}(x)?x:P=>x.validate(P))}function tr(S){if(!S)return null;const x=S.filter(Xe);return 0==x.length?null:function(P){return yt(ft(P,x))}}function wn(S){return null!=S?tr(cn(S)):null}function Wn(S){if(!S)return null;const x=S.filter(Xe);return 0==x.length?null:function(P){return function de(...S){const x=(0,Oe.jO)(S),{args:P,keys:le}=(0,pe.D)(S),Tt=new _e.y(In=>{const{length:_r}=P;if(!_r)return void In.complete();const Sr=new Array(_r);let ki=_r,Jr=_r;for(let _s=0;_s<_r;_s++){let Ri=!1;(0,me.Xf)(P[_s]).subscribe((0,ie.x)(In,hi=>{Ri||(Ri=!0,Jr--),Sr[_s]=hi},()=>ki--,void 0,()=>{(!ki||!Ri)&&(Jr||In.next(le?(0,q.n)(le,Sr):Sr),In.complete())}))}});return x?Tt.pipe((0,Re.Z)(x)):Tt}(ft(P,x).map(qe)).pipe((0,be.U)(yt))}}function qn(S){return null!=S?Wn(cn(S)):null}function nn(S,x){return null===S?[x]:Array.isArray(S)?[...S,x]:[S,x]}function hn(S){return S._rawValidators}function rn(S){return S._rawAsyncValidators}function _n(S){return S?Array.isArray(S)?S:[S]:[]}function xn(S,x){return Array.isArray(S)?S.includes(x):S===x}function Mt(S,x){const P=_n(x);
1return _n(S).forEach(Tt=>{xn(P,Tt)||P.push(Tt)}),P}function Nt(S,x){return _n(x).filter(P=>!xn(S,P))}class se{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(x){this._rawValidators=x||[],this._composedValidatorFn=wn(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x){this.control&&this.control.reset(x)}hasError(x,P){return!!this.control&&this.control.hasError(x,P)}getError(x,P){return this.control?this.control.getError(x,P):null}}class K extends se{get formDirective(){return null}get path(){return null}}class Te extends se{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Be{constructor(x){this._cd=x}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qt=(()=>{class S extends Be{constructor(P){super(P)}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(Te,2))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(P,le){2&P&&c.\u0275\u0275classProp("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)},features:[c.\u0275\u0275InheritDefinitionFeature]}),S})(),dn=(()=>{class S extends Be{constructor(P){super(P)}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(K,10))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(P,le){2&P&&c.\u0275\u0275classProp("ng-untouched",le.isUntouched)("ng-touched",le.isTouched)("ng-pristine",le.isPristine)("ng-dirty",le.isDirty)("ng-valid",le.isValid)("ng-invalid",le.isInvalid)("ng-pending",le.isPending)("ng-submitted",le.isSubmitted)},features:[c.\u0275\u0275InheritDefinitionFeature]}),S})();function ue(S,x){return S?`with name: '${x}'`:`at index: ${x}`}const xe=!1,Ft="VALID",Ut="INVALID",ke="PENDING",Fe="DISABLED";function Ge(S){return($e(S)?S.validators:S)||null}function ht(S,x){return($e(x)?x.asyncValidators:S)||null}function $e(S){return null!=S&&!Array.isArray(S)&&"object"==typeof S}function oe(S,x,P){const le=S.controls;if(!(x?Object.keys(le):le).length)throw new c.\u0275RuntimeError(1e3,xe?function fe(S){return`\n There are no form controls registered with this ${S?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(x):"");if(!le[P])throw new c.\u0275RuntimeError(1001,xe?function X(S,x){return`Cannot find form control ${ue(S,x)}`}(x,P):"")}
vendor: 5,921 bytes, line 1
1function j(S,x,P){S._forEachChild((le,Tt)=>{if(void 0===P[Tt])throw new c.\u0275RuntimeError(1002,xe?function ce(S,x){return`Must supply a value for form control ${ue(S,x)}`}(x,Tt):"")})}class ${constructor(x,P){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(x),this._assignAsyncValidators(P)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===Ft}get invalid(){return this.status===Ut}get pending(){return this.status==ke}get disabled(){return this.status===Fe}get enabled(){return this.status!==Fe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._assignValidators(x)}setAsyncValidators(x){this._assignAsyncValidators(x)}addValidators(x){this.setValidators(Mt(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(Mt(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(Nt(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(Nt(x,this._rawAsyncValidators))}hasValidator(x){return xn(this._rawValidators,x)}hasAsyncValidator(x){return xn(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(P=>{P.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(P=>{P.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=ke,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const P=this._parentMarkedDirty(x.onlySelf);this.status=Fe,this.errors=null,this._forEachChild(le=>{le.disable({...x,onlySelf:!0})}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...x,skipPristineCheck:P}),this._onDisabledChange.forEach(le=>le(!0))}enable(x={}){const P=this._parentMarkedDirty(x.onlySelf);this.status=Ft,this._forEachChild(le=>{le.enable({...x,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors({...x,skipPristineCheck:P}),this._onDisabledChange.forEach(le=>le(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}getRawValue(){return this.value}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ft||this.status===ke)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(P=>P._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fe:Ft}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=ke,this._hasOwnPendingAsyncValidator=!0;const P=qe(this.asyncValidator(this));this._asyncValidationSubscription=P.subscribe(le=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(le,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,P={}){this.errors=x,this._updateControlsErrors(!1!==P.emitEvent)}get(x){let P=x;return null==P||(Array.isArray(P)||(P=P.split(".")),0===P.length)?null:P.reduce((le,Tt)=>le&&le._find(Tt),this)}getError(x,P){const le=P?this.get(P):this;return le&&le.errors?le.errors[x]:null}hasError(x,P){return!!this.getError(x,P)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new c.EventEmitter,this.statusChanges=new c.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Fe:this.errors?Ut:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ke)?ke:this._anyControlsHaveStatus(Ut)?Ut:Ft}_anyControlsHaveStatus(x){return this._anyControls(P=>P.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){$e(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}
1_find(x){return null}_assignValidators(x){this._rawValidators=Array.isArray(x)?x.slice():x,this._composedValidatorFn=function Et(S){return Array.isArray(S)?wn(S):S||null}(this._rawValidators)}_assignAsyncValidators(x){this._rawAsyncValidators=Array.isArray(x)?x.slice():x,this._composedAsyncValidatorFn=function an(S){return Array.isArray(S)?qn(S):S||null}(this._rawAsyncValidators)}}class Ie extends ${constructor(x,P,le){super(Ge(P),ht(le,P)),this.controls=x,this._initObservables(),this._setUpdateStrategy(P),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(x,P){return this.controls[x]?this.controls[x]:(this.controls[x]=P,P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange),P)}addControl(x,P,le={}){this.registerControl(x,P),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}removeControl(x,P={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),delete this.controls[x],this.updateValueAndValidity({emitEvent:P.emitEvent}),this._onCollectionChange()}setControl(x,P,le={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),delete this.controls[x],P&&this.registerControl(x,P),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}contains(x){return this.controls.hasOwnProperty(x)&&this.controls[x].enabled}setValue(x,P={}){j(this,!0,x),Object.keys(x).forEach(le=>{oe(this,!0,le),this.controls[le].setValue(x[le],{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P)}patchValue(x,P={}){null!=x&&(Object.keys(x).forEach(le=>{const Tt=this.controls[le];Tt&&Tt.patchValue(x[le],{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P))}reset(x={},P={}){this._forEachChild((le,Tt)=>{le.reset(x[Tt],{onlySelf:!0,emitEvent:P.emitEvent})}),this._updatePristine(P),this._updateTouched(P),this.updateValueAndValidity(P)}getRawValue(){return this._reduceChildren({},(x,P,le)=>(x[le]=P.getRawValue(),x))}_syncPendingControls(){let x=this._reduceChildren(!1,(P,le)=>!!le._syncPendingControls()||P);return x&&this.updateValueAndValidity({onlySelf:!0}),x}_forEachChild(x){Object.keys(this.controls).forEach(P=>{const le=this.controls[P];le&&x(le,P)})}_setUpControls(){this._forEachChild(x=>{x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(x){for(const[P,le]of Object.entries(this.controls))if(this.contains(P)&&x(le))return!0;return!1}_reduceValue(){return this._reduceChildren({},(P,le,Tt)=>((le.enabled||this.disabled)&&(P[Tt]=le.value),P))}_reduceChildren(x,P){let le=x;return this._forEachChild((Tt,In)=>{le=P(le,Tt,In)}),le}_allControlsDisabled(){for(const x of Object.keys(this.controls))if(this.controls[x].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(x){return this.controls.hasOwnProperty(x)?this.controls[x]:null}}const Qe=Ie,kt=S=>S instanceof Ie;class Cn extends Ie{}const nr=S=>S instanceof Cn,Rr=new c.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>Rt}),Rt="always";function xt(S,x){return[...x.path,S]}function pn(S,x,P=Rt){Pn(S,x),x.valueAccessor.writeValue(S.value),(S.disabled||"always"===P)&&x.valueAccessor.setDisabledState?.(S.disabled),function wr(S,x){x.valueAccessor.registerOnChange(P=>{S._pendingValue=P,S._pendingChange=!0,S._pendingDirty=!0,"change"===S.updateOn&&li(S,x)})}(S,x),function ro(S,x){const P=(le,Tt)=>{x.valueAccessor.writeValue(le),Tt&&x.viewToModelUpdate(le)};S.registerOnChange(P),x._registerOnDestroy(()=>{S._unregisterOnChange(P)})}(S,x),function _i(S,x){x.valueAccessor.registerOnTouched(()=>{S._pendingTouched=!0,"blur"===S.updateOn&&S._pendingChange&&li(S,x),"submit"!==S.updateOn&&S.markAsTouched()})}(S,x),function Tr(S,x){if(x.valueAccessor.setDisabledState){const P=le=>{x.valueAccessor.setDisabledState(le)};S.registerOnDisabledChange(P),x._registerOnDestroy(()=>{S._unregisterOnDisabledChange(P)})}}(S,x)}function Kn(S,x,P=!0){const le=()=>{};x.valueAccessor&&(x.valueAccessor.registerOnChange(le),x.valueAccessor.registerOnTouched(le)),kr(S,x),S&&(x._invokeOnDestroyCallbacks(),S._registerOnCollectionChange(()=>{}))}
1function Yn(S,x){S.forEach(P=>{P.registerOnValidatorChange&&P.registerOnValidatorChange(x)})}function Pn(S,x){const P=hn(S);null!==x.validator?S.setValidators(nn(P,x.validator)):"function"==typeof P&&S.setValidators([P]);const le=rn(S);null!==x.asyncValidator?S.setAsyncValidators(nn(le,x.asyncValidator)):"function"==typeof le&&S.setAsyncValidators([le]);const Tt=()=>S.updateValueAndValidity();Yn(x._rawValidators,Tt),Yn(x._rawAsyncValidators,Tt)}function kr(S,x){let P=!1;if(null!==S){if(null!==x.validator){const Tt=hn(S);if(Array.isArray(Tt)&&Tt.length>0){const In=Tt.filter(_r=>_r!==x.validator);In.length!==Tt.length&&(P=!0,S.setValidators(In))}}if(null!==x.asyncValidator){const Tt=rn(S);if(Array.isArray(Tt)&&Tt.length>0){const In=Tt.filter(_r=>_r!==x.asyncValidator);In.length!==Tt.length&&(P=!0,S.setAsyncValidators(In))}}}const le=()=>{};return Yn(x._rawValidators,le),Yn(x._rawAsyncValidators,le),P}function li(S,x){S._pendingDirty&&S.markAsDirty(),S.setValue(S._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(S._pendingValue),S._pendingChange=!1}function Ni(S,x){Pn(S,x)}function Nr(S,x){if(!S.hasOwnProperty("model"))return!1;const P=S.model;return!!P.isFirstChange()||!Object.is(x,P.currentValue)}function bi(S,x){S._syncPendingControls(),x.forEach(P=>{const le=P.control;"submit"===le.updateOn&&le._pendingChange&&(P.viewToModelUpdate(le._pendingValue),le._pendingChange=!1)})}function gr(S,x){if(!x)return null;let P,le,Tt;return Array.isArray(x),x.forEach(In=>{In.constructor===Ve?P=In:function Zr(S){return Object.getPrototypeOf(S.constructor)===it}(In)?le=In:Tt=In}),Tt||le||P||null}const ir={provide:K,useExisting:(0,c.forwardRef)(()=>ws)},ns=(()=>Promise.resolve())();let ws=(()=>{class S extends K{constructor(P,le,Tt){super(),this.callSetDisabledState=Tt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.EventEmitter,this.form=new Ie({},wn(P),qn(le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(P){ns.then(()=>{const le=this._findContainer(P.path);P.control=le.registerControl(P.name,P.control),pn(P.control,P,this.callSetDisabledState),P.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(P)})}getControl(P){return this.form.get(P.path)}
1removeControl(P){ns.then(()=>{const le=this._findContainer(P.path);le&&le.removeControl(P.name),this._directives.delete(P)})}addFormGroup(P){ns.then(()=>{const le=this._findContainer(P.path),Tt=new Ie({});Ni(Tt,P),le.registerControl(P.name,Tt),Tt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(P){ns.then(()=>{const le=this._findContainer(P.path);le&&le.removeControl(P.name)})}getFormGroup(P){return this.form.get(P.path)}updateModel(P,le){ns.then(()=>{this.form.get(P.path).setValue(le)})}setValue(P){this.control.setValue(P)}onSubmit(P){return this.submitted=!0,bi(this.form,this._directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P){this.form.reset(P),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(P){return P.pop(),P.length?this.form.get(P):this.form}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10),c.\u0275\u0275directiveInject(Rr,8))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("submit",function(In){return le.onSubmit(In)})("reset",function(){return le.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c.\u0275\u0275ProvidersFeature([ir]),c.\u0275\u0275InheritDefinitionFeature]}),S})();function ds(S,x){const P=S.indexOf(x);P>-1&&S.splice(P,1)}function wi(S){return"object"==typeof S&&null!==S&&2===Object.keys(S).length&&"value"in S&&"disabled"in S}const ni=class extends ${constructor(x=null,P,le){super(Ge(P),ht(le,P)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(P),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$e(P)&&(P.nonNullable||P.initialValueIsDefault)&&(this.defaultValue=wi(x)?x.value:x)}setValue(x,P={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==P.emitModelToViewChange&&this._onChange.forEach(le=>le(this.value,!1!==P.emitViewToModelChange)),this.updateValueAndValidity(P)}patchValue(x,P={}){this.setValue(x,P)}reset(x=this.defaultValue,P={}){this._applyFormState(x),this.markAsPristine(P),this.markAsUntouched(P),this.setValue(this.value,P),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){ds(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){ds(this._onDisabledChange,x)}_forEachChild(x){}_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(x){wi(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}},io=ni,Bi=S=>S instanceof ni;let $i=(()=>{class S extends K{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,features:[c.\u0275\u0275InheritDefinitionFeature]}),S})();const Cs={provide:K,useExisting:(0,c.forwardRef)(()=>pt)};let pt=(()=>{class S extends $i{constructor(P,le,Tt){super(),this._parent=P,this._setValidators(le),this._setAsyncValidators(Tt)}_checkParentType(){}}
1return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(K,5),c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[c.\u0275\u0275ProvidersFeature([Cs]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const ut={provide:Te,useExisting:(0,c.forwardRef)(()=>Jt)},Ot=(()=>Promise.resolve())();let Jt=(()=>{class S extends Te{constructor(P,le,Tt,In,_r,Sr){super(),this._changeDetectorRef=_r,this.callSetDisabledState=Sr,this.control=new ni,this._registered=!1,this.update=new c.EventEmitter,this._parent=P,this._setValidators(le),this._setAsyncValidators(Tt),this.valueAccessor=gr(0,In)}ngOnChanges(P){if(this._checkForErrors(),!this._registered||"name"in P){if(this._registered&&(this._checkName(),this.formDirective)){const le=P.name.previousValue;this.formDirective.removeControl({name:le,path:this._getPath(le)})}this._setUpControl()}"isDisabled"in P&&this._updateDisabled(P),Nr(P,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(P){this.viewModel=P,this.update.emit(P)}_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(){pn(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(P){Ot.then(()=>{this.control.setValue(P,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(P){const le=P.isDisabled.currentValue,Tt=0!==le&&(0,c.\u0275coerceToBoolean)(le);Ot.then(()=>{Tt&&!this.control.disabled?this.control.disable():!Tt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(P){return this._parent?xt(P,this._parent):[P]}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(K,9),c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10),c.\u0275\u0275directiveInject(dt,10),c.\u0275\u0275directiveInject(c.ChangeDetectorRef,8),c.\u0275\u0275directiveInject(Rr,8))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[c.\u0275\u0275ProvidersFeature([ut]),c.\u0275\u0275InheritDefinitionFeature,c.\u0275\u0275NgOnChangesFeature]}),S})(),mn=(()=>{class S{}return S.\u0275fac=function(P){return new(P||S)},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),S})();const sr={provide:dt,useExisting:(0,c.forwardRef)(()=>yr),multi:!0};let yr=(()=>{class S extends it{writeValue(P){this.setProperty("value",P??"")}registerOnChange(P){this.onChange=le=>{P(""==le?null:parseFloat(le))}}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("input",function(In){return le.onChange(In.target.value)})("blur",function(){return le.onTouched()})},features:[c.\u0275\u0275ProvidersFeature([sr]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Er={provide:dt,useExisting:(0,c.forwardRef)(()=>ri),multi:!0};let Pi=(()=>{class S{}return S.\u0275fac=function(P){return new(P||S)},S.\u0275mod=c.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=c.\u0275\u0275defineInjector({}),S})(),ks=(()=>{class S{constructor(){this._accessors=[]}add(P,le){this._accessors.push([P,le])}remove(P){for(let le=this._accessors.length-1;le>=0;--le)if(this._accessors[le][1]===P)return void this._accessors.splice(le,1)}
1select(P){this._accessors.forEach(le=>{this._isSameGroup(le,P)&&le[1]!==P&&le[1].fireUncheck(P.value)})}_isSameGroup(P,le){return!!P[0].control&&P[0]._parent===le._control._parent&&P[1].name===le.name}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275prov=c.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:Pi}),S})(),ri=(()=>{class S extends it{constructor(P,le,Tt,In){super(P,le),this._registry=Tt,this._injector=In,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,c.inject)(Rr,{optional:!0})??Rt}ngOnInit(){this._control=this._injector.get(Te),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(P){this._state=P===this.value,this.setProperty("checked",this._state)}registerOnChange(P){this._fn=P,this.onChange=()=>{P(this.value),this._registry.select(this)}}setDisabledState(P){(this.setDisabledStateFired||P||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",P),this.setDisabledStateFired=!0}fireUncheck(P){this.writeValue(P)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(ks),c.\u0275\u0275directiveInject(c.Injector))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("change",function(){return le.onChange()})("blur",function(){return le.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[c.\u0275\u0275ProvidersFeature([Er]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const di={provide:dt,useExisting:(0,c.forwardRef)(()=>Di),multi:!0};let Di=(()=>{class S extends it{writeValue(P){this.setProperty("value",parseFloat(P))}registerOnChange(P){this.onChange=le=>{P(""==le?null:parseFloat(le))}}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("change",function(In){return le.onChange(In.target.value)})("input",function(In){return le.onChange(In.target.value)})("blur",function(){return le.onTouched()})},features:[c.\u0275\u0275ProvidersFeature([di]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Hs=new c.InjectionToken("NgModelWithFormControlWarning"),_o={provide:Te,useExisting:(0,c.forwardRef)(()=>Qi)};let Qi=(()=>{class S extends Te{set isDisabled(P){}constructor(P,le,Tt,In,_r){super(),this._ngModelWarningConfig=In,this.callSetDisabledState=_r,this.update=new c.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(P),this._setAsyncValidators(le),this.valueAccessor=gr(0,Tt)}ngOnChanges(P){if(this._isControlChanged(P)){const le=P.form.previousValue;le&&Kn(le,this,!1),pn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Nr(P,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}_isControlChanged(P){return P.hasOwnProperty("form")}}return S._ngModelWarningSentOnce=!1,S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10),c.\u0275\u0275directiveInject(dt,10),c.\u0275\u0275directiveInject(Hs,8),c.\u0275\u0275directiveInject(Rr,8))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[c.\u0275\u0275ProvidersFeature([_o]),c.\u0275\u0275InheritDefinitionFeature,c.\u0275\u0275NgOnChangesFeature]}),S})();const ko={provide:K,useExisting:(0,c.forwardRef)(()=>so)};let so=(()=>{class S extends K{constructor(P,le,Tt){super(),this.callSetDisabledState=Tt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.EventEmitter,this._setValidators(P),this._setAsyncValidators(le)}ngOnChanges(P){this._checkFormPresent(),P.hasOwnProperty("form")&&(this._updateV
1alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(kr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(P){const le=this.form.get(P.path);return pn(le,P,this.callSetDisabledState),le.updateValueAndValidity({emitEvent:!1}),this.directives.push(P),le}getControl(P){return this.form.get(P.path)}removeControl(P){Kn(P.control||null,P,!1),function Ai(S,x){const P=S.indexOf(x);P>-1&&S.splice(P,1)}(this.directives,P)}addFormGroup(P){this._setUpFormContainer(P)}removeFormGroup(P){this._cleanUpFormContainer(P)}getFormGroup(P){return this.form.get(P.path)}addFormArray(P){this._setUpFormContainer(P)}removeFormArray(P){this._cleanUpFormContainer(P)}getFormArray(P){return this.form.get(P.path)}updateModel(P,le){this.form.get(P.path).setValue(le)}onSubmit(P){return this.submitted=!0,bi(this.form,this.directives),this.ngSubmit.emit(P),"dialog"===P?.target?.method}onReset(){this.resetForm()}resetForm(P){this.form.reset(P),this.submitted=!1}_updateDomValue(){this.directives.forEach(P=>{const le=P.control,Tt=this.form.get(P.path);le!==Tt&&(Kn(le||null,P),Bi(Tt)&&(pn(Tt,P,this.callSetDisabledState),P.control=Tt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(P){const le=this.form.get(P.path);Ni(le,P),le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(P){if(this.form){const le=this.form.get(P.path);le&&function Rs(S,x){return kr(S,x)}(le,P)&&le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Pn(this.form,this),this._oldForm&&kr(this._oldForm,this)}_checkFormPresent(){}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10),c.\u0275\u0275directiveInject(Rr,8))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formGroup",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("submit",function(In){return le.onSubmit(In)})("reset",function(){return le.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c.\u0275\u0275ProvidersFeature([ko]),c.\u0275\u0275InheritDefinitionFeature,c.\u0275\u0275NgOnChangesFeature]}),S})();const qo={provide:K,useExisting:(0,c.forwardRef)(()=>oo)};let oo=(()=>{class S extends $i{constructor(P,le,Tt){super(),this._parent=P,this._setValidators(le),this._setAsyncValidators(Tt)}_checkParentType(){gs(this._parent)}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(K,13),c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[c.\u0275\u0275ProvidersFeature([qo]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Ia={provide:K,useExisting:(0,c.forwardRef)(()=>Ns)};let Ns=(()=>{class S extends K{constructor(P,le,Tt){super(),this._parent=P,this._setValidators(le),this._setAsyncValidators(Tt)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return xt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){gs(this._parent)}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(K,13),c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[c.\u0275\u0275ProvidersFeature([Ia]),c.\u0275\u0275InheritDefinitionFeature]}),S})();function gs(S){return!(S instanceof oo||S instanceof so||S instanceof Ns)}const La={provide:Te,useExisting:(0,c.forwardRef)(()=>ao)};let ao=(()=>{class S extends Te{set isDisabled(P){}constructor(P,le,Tt,In,_r){super(),this._ngModelWarningConfig=_r,this._added=!1,this.update=new c.EventEmitter,this._ngModelWarningSent=!1,this._parent=P,this._setValidators(le),this._setAsyncValidators(Tt),this.valueAccessor=gr(0,In)}ngOnChanges(P){this._added||this._setUpControl(),Nr(P,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(P){this.viewModel=P,this.update.emit(P)}get path(){return xt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return S._ngModelWarningSentOnce=!1,S.\u0275fac=function(P){return new(P||S)(c.\u
10275\u0275directiveInject(K,13),c.\u0275\u0275directiveInject(nt,10),c.\u0275\u0275directiveInject(At,10),c.\u0275\u0275directiveInject(dt,10),c.\u0275\u0275directiveInject(Hs,8))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[c.\u0275\u0275ProvidersFeature([La]),c.\u0275\u0275InheritDefinitionFeature,c.\u0275\u0275NgOnChangesFeature]}),S})();const rs={provide:dt,useExisting:(0,c.forwardRef)(()=>Fs),multi:!0};function lo(S,x){return null==S?`${x}`:(x&&"object"==typeof x&&(x="Object"),`${S}: ${x}`.slice(0,50))}let Fs=(()=>{class S extends it{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){this.value=P;const Tt=lo(this._getOptionId(P),P);this.setProperty("value",Tt)}registerOnChange(P){this.onChange=le=>{this.value=this._getOptionValue(le),P(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(P){for(const le of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(le),P))return le;return null}_getOptionValue(P){const le=function Ho(S){return S.split(":")[0]}(P);return this._optionMap.has(le)?this._optionMap.get(le):P}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("change",function(In){return le.onChange(In.target.value)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[c.\u0275\u0275ProvidersFeature([rs]),c.\u0275\u0275InheritDefinitionFeature]}),S})(),zo=(()=>{class S{constructor(P,le,Tt){this._element=P,this._renderer=le,this._select=Tt,this._select&&(this.id=this._select._registerOption())}set ngValue(P){null!=this._select&&(this._select._optionMap.set(this.id,P),this._setElementValue(lo(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._setElementValue(P),this._select&&this._select.writeValue(this._select.value)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(Fs,9))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),S})();const Yo={provide:dt,useExisting:(0,c.forwardRef)(()=>co),multi:!0};function hs(S,x){return null==S?`${x}
1`:("string"==typeof x&&(x=`'${x}'`),x&&"object"==typeof x&&(x="Object"),`${S}: ${x}`.slice(0,50))}let co=(()=>{class S extends it{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(P){this._compareWith=P}writeValue(P){let le;if(this.value=P,Array.isArray(P)){const Tt=P.map(In=>this._getOptionId(In));le=(In,_r)=>{In._setSelected(Tt.indexOf(_r.toString())>-1)}}else le=(Tt,In)=>{Tt._setSelected(!1)};this._optionMap.forEach(le)}registerOnChange(P){this.onChange=le=>{const Tt=[],In=le.selectedOptions;if(void 0!==In){const _r=In;for(let Sr=0;Sr<_r.length;Sr++){const Jr=this._getOptionValue(_r[Sr].value);Tt.push(Jr)}}else{const _r=le.options;for(let Sr=0;Sr<_r.length;Sr++){const ki=_r[Sr];if(ki.selected){const Jr=this._getOptionValue(ki.value);Tt.push(Jr)}}}this.value=Tt,P(Tt)}}_registerOption(P){const le=(this._idCounter++).toString();return this._optionMap.set(le,P),le}_getOptionId(P){for(const le of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(le)._value,P))return le;return null}_getOptionValue(P){const le=function ms(S){return S.split(":")[0]}(P);return this._optionMap.has(le)?this._optionMap.get(le)._value:P}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(P,le){1&P&&c.\u0275\u0275listener("change",function(In){return le.onChange(In.target)})("blur",function(){return le.onTouched()})},inputs:{compareWith:"compareWith"},features:[c.\u0275\u0275ProvidersFeature([Yo]),c.\u0275\u0275InheritDefinitionFeature]}),S})(),So=(()=>{class S{constructor(P,le,Tt){this._element=P,this._renderer=le,this._select=Tt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(P){null!=this._select&&(this._value=P,this._setElementValue(hs(this.id,P)),this._select.writeValue(this._select.value))}set value(P){this._select?(this._value=P,this._setElementValue(hs(this.id,P)),this._select.writeValue(this._select.value)):this._setElementValue(P)}_setElementValue(P){this._renderer.setProperty(this._element.nativeElement,"value",P)}_setSelected(P){this._renderer.setProperty(this._element.nativeElement,"selected",P)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return S.\u0275fac=function(P){return new(P||S)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(co,9))},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),S})();function Wi(S){return"number"==typeof S?S:parseInt(S,10)}function vo(S){return"number"==typeof S?S:parseFloat(S)}let xi=(()=>{class S{constructor(){this._validator=Ne}ngOnChanges(P){if(this.inputName in P){const le=this.normalizeInput(P[this.inputName].currentValue);this._enabled=this.enabled(le),this._validator=this._enabled?this.createValidator(le):Ne,this._onChange&&this._onChange()}}validate(P){return this._validator(P)}registerOnValidatorChange(P){this._onChange=P}enabled(P){return null!=P}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275dir=c.\u0275\u0275defineDirective({type:S,features:[c.\u0275\u0275NgOnChangesFeature]}),S})();const Qo={provide:nt,useExisting:(0,c.forwardRef)(()=>Ao),multi:!0};let Ao=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=P=>vo(P),this.createValidator=P=>vt(P)}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("max",le._enabled?le.max:null)},inputs:{max:"max"},features:[c.\u0275\u0275ProvidersFeature([Qo]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const fs={provide:nt,useExisting:(0,c.forwardRef)(()=>Li),multi:!0};let Li=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=P=>vo(P),this.createValidator=P=>je(P)}}return S.\u0275fac=function(){let x;
1return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("min",le._enabled?le.min:null)},inputs:{min:"min"},features:[c.\u0275\u0275ProvidersFeature([fs]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Hi={provide:nt,useExisting:(0,c.forwardRef)(()=>Ds),multi:!0},Ki={provide:nt,useExisting:(0,c.forwardRef)(()=>vi),multi:!0};let Ds=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=c.\u0275coerceToBoolean,this.createValidator=P=>jt}enabled(P){return P}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("required",le._enabled?"":null)},inputs:{required:"required"},features:[c.\u0275\u0275ProvidersFeature([Hi]),c.\u0275\u0275InheritDefinitionFeature]}),S})(),vi=(()=>{class S extends Ds{constructor(){super(...arguments),this.createValidator=P=>On}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("required",le._enabled?"":null)},features:[c.\u0275\u0275ProvidersFeature([Ki]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Mi={provide:nt,useExisting:(0,c.forwardRef)(()=>ys),multi:!0};let ys=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=c.\u0275coerceToBoolean,this.createValidator=P=>Sn}enabled(P){return P}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[c.\u0275\u0275ProvidersFeature([Mi]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const xr={provide:nt,useExisting:(0,c.forwardRef)(()=>Xi),multi:!0};let Xi=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=P=>Wi(P),this.createValidator=P=>St(P)}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("minlength",le._enabled?le.minlength:null)},inputs:{minlength:"minlength"},features:[c.\u0275\u0275ProvidersFeature([xr]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Eo={provide:nt,useExisting:(0,c.forwardRef)(()=>Vi),multi:!0};let Vi=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=P=>Wi(P),this.createValidator=P=>yn(P)}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("maxlength",le._enabled?le.maxlength:null)},inputs:{maxlength:"maxlength"},features:[c.\u0275\u0275ProvidersFeature([Eo]),c.\u0275\u0275InheritDefinitionFeature]}),S})();const Ci={provide:nt,useExisting:(0,c.forwardRef)(()=>uo),multi:!0};let uo=(()=>{class S extends xi{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=P=>P,this.createValidator=P=>ae(P)}}return S.\u0275fac=function(){let x;
1return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275dir=c.\u0275\u0275defineDirective({type:S,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(P,le){2&P&&c.\u0275\u0275attribute("pattern",le._enabled?le.pattern:null)},inputs:{pattern:"pattern"},features:[c.\u0275\u0275ProvidersFeature([Ci]),c.\u0275\u0275InheritDefinitionFeature]}),S})(),Ls=(()=>{class S{}return S.\u0275fac=function(P){return new(P||S)},S.\u0275mod=c.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=c.\u0275\u0275defineInjector({imports:[Pi]}),S})();class Ji extends ${constructor(x,P,le){super(Ge(P),ht(le,P)),this.controls=x,this._initObservables(),this._setUpdateStrategy(P),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(x){return this.controls[this._adjustIndex(x)]}push(x,P={}){this.controls.push(x),this._registerControl(x),this.updateValueAndValidity({emitEvent:P.emitEvent}),this._onCollectionChange()}insert(x,P,le={}){this.controls.splice(x,0,P),this._registerControl(P),this.updateValueAndValidity({emitEvent:le.emitEvent})}removeAt(x,P={}){let le=this._adjustIndex(x);le<0&&(le=0),this.controls[le]&&this.controls[le]._registerOnCollectionChange(()=>{}),this.controls.splice(le,1),this.updateValueAndValidity({emitEvent:P.emitEvent})}setControl(x,P,le={}){let Tt=this._adjustIndex(x);Tt<0&&(Tt=0),this.controls[Tt]&&this.controls[Tt]._registerOnCollectionChange(()=>{}),this.controls.splice(Tt,1),P&&(this.controls.splice(Tt,0,P),this._registerControl(P)),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(x,P={}){j(this,!1,x),x.forEach((le,Tt)=>{oe(this,!1,Tt),this.at(Tt).setValue(le,{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P)}patchValue(x,P={}){null!=x&&(x.forEach((le,Tt)=>{this.at(Tt)&&this.at(Tt).patchValue(le,{onlySelf:!0,emitEvent:P.emitEvent})}),this.updateValueAndValidity(P))}reset(x=[],P={}){this._forEachChild((le,Tt)=>{le.reset(x[Tt],{onlySelf:!0,emitEvent:P.emitEvent})}),this._updatePristine(P),this._updateTouched(P),this.updateValueAndValidity(P)}getRawValue(){return this.controls.map(x=>x.getRawValue())}clear(x={}){this.controls.length<1||(this._forEachChild(P=>P._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:x.emitEvent}))}_adjustIndex(x){return x<0?x+this.length:x}_syncPendingControls(){let x=this.controls.reduce((P,le)=>!!le._syncPendingControls()||P,!1);return x&&this.updateValueAndValidity({onlySelf:!0}),x}_forEachChild(x){this.controls.forEach((P,le)=>{x(P,le)})}_updateValue(){this.value=this.controls.filter(x=>x.enabled||this.disabled).map(x=>x.value)}_anyControls(x){return this.controls.some(P=>P.enabled&&x(P))}_setUpControls(){this._forEachChild(x=>this._registerControl(x))}_allControlsDisabled(){for(const x of this.controls)if(x.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(x){x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange)}_find(x){return this.at(x)??null}}const mr=Ji,Ks=S=>
1S instanceof Ji;function Y(S){return!!S&&(void 0!==S.asyncValidators||void 0!==S.validators||void 0!==S.updateOn)}let W=(()=>{class S{constructor(){this.useNonNullable=!1}get nonNullable(){const P=new S;return P.useNonNullable=!0,P}group(P,le=null){const Tt=this._reduceControls(P);let In={};return Y(le)?In=le:null!==le&&(In.validators=le.validator,In.asyncValidators=le.asyncValidator),new Ie(Tt,In)}record(P,le=null){const Tt=this._reduceControls(P);return new Cn(Tt,le)}control(P,le,Tt){let In={};return this.useNonNullable?(Y(le)?In=le:(In.validators=le,In.asyncValidators=Tt),new ni(P,{...In,nonNullable:!0})):new ni(P,le,Tt)}array(P,le,Tt){const In=P.map(_r=>this._createControl(_r));return new Ji(In,le,Tt)}_reduceControls(P){const le={};return Object.keys(P).forEach(Tt=>{le[Tt]=this._createControl(P[Tt])}),le}_createControl(P){return P instanceof ni||P instanceof $?P:Array.isArray(P)?this.control(P[0],P.length>1?P[1]:null,P.length>2?P[2]:null):this.control(P)}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275prov=c.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),Ae=(()=>{class S{}return S.\u0275fac=function(P){return new(P||S)},S.\u0275prov=c.\u0275\u0275defineInjectable({token:S,factory:function(){return(0,c.inject)(W).nonNullable},providedIn:"root"}),S})(),Je=(()=>{class S extends W{group(P,le=null){return super.group(P,le)}control(P,le,Tt){return super.control(P,le,Tt)}array(P,le,Tt){return super.array(P,le,Tt)}}return S.\u0275fac=function(){let x;return function(le){return(x||(x=c.\u0275\u0275getInheritedFactory(S)))(le||S)}}(),S.\u0275prov=c.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();const gt=new c.Version("15.2.9");let Qt=(()=>{class S{static withConfig(P){return{ngModule:S,providers:[{provide:Rr,useValue:P.callSetDisabledState??Rt}]}}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275mod=c.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=c.\u0275\u0275defineInjector({imports:[Ls]}),S})(),En=(()=>{class S{static withConfig(P){return{ngModule:S,providers:[{provide:Hs,useValue:P.warnOnNgModelWithFormControl??"always"},{provide:Rr,useValue:P.callSetDisabledState??Rt}]}}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275mod=c.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=c.\u0275\u0275defineInjector({imports:[Ls]}),S})()},3238:(ln,et,C)=>{"use strict";C.d(et,{_A:()=>St,sG:()=>yn,BQ:()=>ve,XK:()=>ft,wG:()=>It,si:()=>Yt,pj:()=>Ue,Kr:()=>Wt,Id:()=>At});var c=C(4650),m=C(6995),V=C(445),pe=C(6895),me=C(3353),Oe=C(1281),ie=C(7579);const Ve=new c.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function He(){return!0}});let ve=(()=>{class ue{constructor(X,ce,xe){this._sanityChecks=ce,this._document=xe,this._hasDoneGlobalChecks=!1,X._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(X){return!(0,me.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[X])}}return ue.\u0275fac=function(X){return new(X||ue)(c.\u0275\u0275inject(m.qm),c.\u0275\u0275inject(Ve,8),c.\u0275\u0275inject(pe.K0))},ue.\u0275mod=c.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=c.\u0275\u0275defineInjector({imports:[V.vT,V.vT]}),ue})();function At(ue){return class extends ue{get disabled(){return this._disabled}set disabled(fe){this._disabled=(0,Oe.Ig)(fe)}constructor(...fe){super(...fe),this._disabled=!1}}}function Ue(ue,fe){return class extends ue{get color(){return this._color}set color(X){const ce=X||this.defaultColor;ce!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ce&&this._elementRef.nativeElement.classList.add(`mat-${ce}`),this._color=ce)}constructor(...X){super(...X),this.defaultColor=fe,this.color=fe}}}function Wt(ue){return class extends ue{get disableRipple(){return this._disableRipple}set disableRipple(fe){this._disableRipple=(0,Oe.Ig)(fe)}constructor(...fe){super(...fe),this._disableRipple=!1}}}const On=new c.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function Sn(){return(0,c.inject)(c.LOCALE_ID)}});class St{constructor(){this._localeChanges=new ie.x,this.localeChanges=this._localeChanges}getValidDateOrNull(fe){return this.isDateInstance(fe)&&this.isValid(fe)?fe:null}deserialize(fe){return null==fe||this.isDateInstance(fe)&&this.isValid(fe)?fe:this.invalid()}setLocale(fe){this.locale=fe,this._localeChanges.next()}compareDate(fe,X){return this.getYear(fe)-this.getYear(X)||this.getMonth(fe)-this.getMonth(X)||this.getDate(fe)-this.getDate(X)}sameDate(fe,X){if(fe&&X){let ce=this.isValid(fe),xe=this.isValid(X);return ce&&xe?!this.compareDate(fe,X):ce==xe}return fe==X}clampDate(fe,X,ce){return X&&this.compareDate(fe,X)<0?X:ce&&this.compareDate(fe,ce)>0?ce:fe}}const yn=new c.InjectionToken("mat-date-formats"),ae=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ne(ue,fe){const X=Array(ue);for(let ce=0;ce<ue;ce++)X[ce]=fe(ce);return X}
1let Xe=(()=>{class ue extends St{constructor(X,ce){super(),this.useUtcForDisplay=!1,super.setLocale(X)}getYear(X){return X.getFullYear()}getMonth(X){return X.getMonth()}getDate(X){return X.getDate()}getDayOfWeek(X){return X.getDay()}getMonthNames(X){const ce=new Intl.DateTimeFormat(this.locale,{month:X,timeZone:"utc"});return Ne(12,xe=>this._format(ce,new Date(2017,xe,1)))}getDateNames(){const X=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ne(31,ce=>this._format(X,new Date(2017,0,ce+1)))}getDayOfWeekNames(X){const ce=new Intl.DateTimeFormat(this.locale,{weekday:X,timeZone:"utc"});return Ne(7,xe=>this._format(ce,new Date(2017,0,xe+1)))}getYearName(X){const ce=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ce,X)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(X){return this.getDate(this._createDateWithOverflow(this.getYear(X),this.getMonth(X)+1,0))}clone(X){return new Date(X.getTime())}createDate(X,ce,xe){let Ft=this._createDateWithOverflow(X,ce,xe);return Ft.getMonth(),Ft}today(){return new Date}parse(X,ce){return"number"==typeof X?new Date(X):X?new Date(Date.parse(X)):null}format(X,ce){if(!this.isValid(X))throw Error("NativeDateAdapter: Cannot format invalid date.");const xe=new Intl.DateTimeFormat(this.locale,{...ce,timeZone:"utc"});return this._format(xe,X)}addCalendarYears(X,ce){return this.addCalendarMonths(X,12*ce)}addCalendarMonths(X,ce){let xe=this._createDateWithOverflow(this.getYear(X),this.getMonth(X)+ce,this.getDate(X));return this.getMonth(xe)!=((this.getMonth(X)+ce)%12+12)%12&&(xe=this._createDateWithOverflow(this.getYear(xe),this.getMonth(xe),0)),xe}addCalendarDays(X,ce){return this._createDateWithOverflow(this.getYear(X),this.getMonth(X),this.getDate(X)+ce)}toIso8601(X){return[X.getUTCFullYear(),this._2digit(X.getUTCMonth()+1),this._2digit(X.getUTCDate())].join("-")}deserialize(X){if("string"==typeof X){if(!X)return null;if(ae.test(X)){let ce=new Date(X);if(this.isValid(ce))return ce}}return super.deserialize(X)}isDateInstance(X){return X instanceof Date}isValid(X){return!isNaN(X.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(X,ce,xe){const Ft=new Date;return Ft.setFullYear(X,ce,xe),Ft.setHours(0,0,0,0),Ft}_2digit(X){return("00"+X).slice(-2)}_format(X,ce){const xe=new Date;return xe.setUTCFullYear(ce.getFullYear(),ce.getMonth(),ce.getDate()),xe.setUTCHours(ce.getHours(),ce.getMinutes(),ce.getSeconds(),ce.getMilliseconds()),X.format(xe)}}return ue.\u0275fac=function(X){return new(X||ue)(c.\u0275\u0275inject(On,8),c.\u0275\u0275inject(me.t4))},ue.\u0275prov=c.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const qe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let yt=(()=>{class ue{}return ue.\u0275fac=function(X){return new(X||ue)},ue.\u0275mod=c.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=c.\u0275\u0275defineInjector({providers:[{provide:St,useClass:Xe}]}),ue})(),ft=(()=>{class ue{}return ue.\u0275fac=function(X){return new(X||ue)},ue.\u0275mod=c.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=c.\u0275\u0275defineInjector({providers:[{provide:yn,useValue:qe}],imports:[yt]}),ue})();class nn{constructor(fe,X,ce,xe=!1){this._renderer=fe,this.element=X,this.config=ce,this._animationForciblyDisabledThroughCss=xe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const hn=(0,me.i$)({passive:!0,capture:!0});class rn{constructor(){this._events=new Map,this._delegateEventHandler=fe=>{const X=(0,me.sA)(fe);X&&this._events.get(fe.type)?.forEach((ce,xe)=>{(xe===X||xe.contains(X))&&ce.forEach(Ft=>Ft.handleEvent(fe))})}}addHandler(fe,X,ce,xe){const Ft=this._events.get(X);if(Ft){const Ut=Ft.get(ce);Ut?Ut.add(xe):Ft.set(ce,new Set([xe]))}else this._events.set(X,new Map([[ce,new Set([xe])]])),fe.runOutsideAngular(()=>{document.addEventListener(X,this._delegateEventHandler,hn)})}removeHandler(fe,X,ce){const xe=this._events.get(fe);if(!xe)return;const Ft=xe.get(X);Ft&&(Ft.delete(ce),0===Ft.size&&xe.delete(X),0===xe.size&&(this._events.delete(fe),document.removeEventListener(fe,this._delegateEventHandler,hn))
1)}}const _n={enterDuration:225,exitDuration:150},Mt=(0,me.i$)({passive:!0,capture:!0}),Nt=["mousedown","touchstart"],se=["mouseup","mouseleave","touchend","touchcancel"];class K{constructor(fe,X,ce,xe){this._target=fe,this._ngZone=X,this._platform=xe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,xe.isBrowser&&(this._containerElement=(0,Oe.fI)(ce))}fadeInRipple(fe,X,ce={}){const xe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ft={..._n,...ce.animation};ce.centered&&(fe=xe.left+xe.width/2,X=xe.top+xe.height/2);const Ut=ce.radius||function Te(ue,fe,X){const ce=Math.max(Math.abs(ue-X.left),Math.abs(ue-X.right)),xe=Math.max(Math.abs(fe-X.top),Math.abs(fe-X.bottom));return Math.sqrt(ce*ce+xe*xe)}(fe,X,xe),ke=fe-xe.left,Fe=X-xe.top,Ge=Ft.enterDuration,Et=document.createElement("div");Et.classList.add("mat-ripple-element"),Et.style.left=ke-Ut+"px",Et.style.top=Fe-Ut+"px",Et.style.height=2*Ut+"px",Et.style.width=2*Ut+"px",null!=ce.color&&(Et.style.backgroundColor=ce.color),Et.style.transitionDuration=`${Ge}ms`,this._containerElement.appendChild(Et);const ht=window.getComputedStyle(Et),$e=ht.transitionDuration,oe="none"===ht.transitionProperty||"0s"===$e||"0s, 0s"===$e||0===xe.width&&0===xe.height,j=new nn(this,Et,ce,oe);Et.style.transform="scale3d(1, 1, 1)",j.state=0,ce.persistent||(this._mostRecentTransientRipple=j);let $=null;return!oe&&(Ge||Ft.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ie=()=>this._finishRippleTransition(j),Qe=()=>this._destroyRipple(j);Et.addEventListener("transitionend",Ie),Et.addEventListener("transitioncancel",Qe),$={onTransitionEnd:Ie,onTransitionCancel:Qe}}),this._activeRipples.set(j,$),(oe||!Ge)&&this._finishRippleTransition(j),j}fadeOutRipple(fe){if(2===fe.state||3===fe.state)return;const X=fe.element,ce={..._n,...fe.config.animation};X.style.transitionDuration=`${ce.exitDuration}ms`,X.style.opacity="0",fe.state=2,(fe._animationForciblyDisabledThroughCss||!ce.exitDuration)&&this._finishRippleTransition(fe)}fadeOutAll(){this._getActiveRipples().forEach(fe=>fe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(fe=>{fe.config.persistent||fe.fadeOut()})}setupTriggerEvents(fe){const X=(0,Oe.fI)(fe);!this._platform.isBrowser||!X||X===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=X,Nt.forEach(ce=>{K._eventManager.addHandler(this._ngZone,ce,X,this)}))}handleEvent(fe){"mousedown"===fe.type?this._onMousedown(fe):"touchstart"===fe.type?this._onTouchStart(fe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{se.forEach(X=>{this._triggerElement.addEventListener(X,this,Mt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(fe){0===fe.state?this._startFadeOutTransition(fe):2===fe.state&&this._destroyRipple(fe)}_startFadeOutTransition(fe){const X=fe===this._mostRecentTransientRipple,{persistent:ce}=fe.config;fe.state=1,!ce&&(!X||!this._isPointerDown)&&fe.fadeOut()}_destroyRipple(fe){const X=this._activeRipples.get(fe)??null;this._activeRipples.delete(fe),this._activeRipples.size||(this._containerRect=null),fe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),fe.state=3,null!==X&&(fe.element.removeEventListener("transitionend",X.onTransitionEnd),fe.element.removeEventListener("transitioncancel",X.onTransitionCancel)),fe.element.remove()}_onMousedown(fe){const X=(0,m.X6)(fe),ce=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!X&&!ce&&(this._isPointerDown=!0,this.fadeInRipple(fe.clientX,fe.clientY,this._target.rippleConfig))}_onTouchStart(fe){if(!this._target.rippleDisabled&&!(0,m.yG)(fe)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const X=fe.changedTouches;for(let ce=0;ce<X.length;ce++)this.fadeInRipple(X[ce].clientX,X[ce].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(fe=>{!fe.config.persistent&&(1===fe.state||fe.config.terminateOnPointerUp&&0===fe.state)&&fe.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const fe=this._triggerElement;fe&&(Nt.forEach(X=>K._eventManager.removeHandler(X,fe,this)),this._pointerUpEventsRegistered&&se.forEach(X=>fe.removeEventListener(X,this,Mt)))}}K._eventManager=new rn;const Be=new c.InjectionToken("mat-ripple-global-options");let It=(()=>{class ue{get disabled(){return this._disabled}
1set disabled(X){X&&this.fadeOutAllNonPersistent(),this._disabled=X,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(X){this._trigger=X,this._setupTriggerEventsIfEnabled()}constructor(X,ce,xe,Ft,Ut){this._elementRef=X,this._animationMode=Ut,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ft||{},this._rippleRenderer=new K(this,ce,X,xe)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(X,ce=0,xe){return"number"==typeof X?this._rippleRenderer.fadeInRipple(X,ce,{...this.rippleConfig,...xe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...X})}}return ue.\u0275fac=function(X){return new(X||ue)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(me.t4),c.\u0275\u0275directiveInject(Be,8),c.\u0275\u0275directiveInject(c.ANIMATION_MODULE_TYPE,8))},ue.\u0275dir=c.\u0275\u0275defineDirective({type:ue,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(X,ce){2&X&&c.\u0275\u0275classProp("mat-ripple-unbounded",ce.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ue})(),Yt=(()=>{class ue{}return ue.\u0275fac=function(X){return new(X||ue)},ue.\u0275mod=c.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=c.\u0275\u0275defineInjector({imports:[ve,ve]}),ue})()},5938:(ln,et,C)=>{"use strict";C.d(et,{Is:()=>wn,Nv:()=>qn,Se:()=>Ne,WI:()=>vt,X2:()=>rt,_H:()=>Wn,so:()=>Wt,uw:()=>Xe,vA:()=>Pe});var c=C(8184),m=C(6895),V=C(4650),_e=C(6995),pe=C(7855),me=C(1281),Oe=C(4080),ie=C(7579),Re=C(6451),q=C(9770),de=C(9300),be=C(5698),lt=C(8675),it=C(9521),dt=C(3238),wt=C(7340);function Me(nn,hn){}class Pe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Ct="mdc-dialog--open",He="mdc-dialog--opening",Ve="mdc-dialog--closing";let rt=(()=>{class nn extends pe.LL{constructor(rn,_n,xn,Mt,Nt,se,K,Te){super(rn,_n,xn,Mt,Nt,se,K,Te),this._animationStateChanged=new V.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(rn){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:rn})}}return nn.\u0275fac=function(rn){return new(rn||nn)(V.\u0275\u0275directiveInject(V.ElementRef),V.\u0275\u0275directiveInject(_e.qV),V.\u0275\u0275directiveInject(m.K0,8),V.\u0275\u0275directiveInject(Pe),V.\u0275\u0275directiveInject(_e.ic),V.\u0275\u0275directiveInject(V.NgZone),V.\u0275\u0275directiveInject(c.Iu),V.\u0275\u0275directiveInject(_e.tE))},nn.\u0275cmp=V.\u0275\u0275defineComponent({type:nn,selectors:[["ng-component"]],features:[V.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(rn,_n){},encapsulation:2}),nn})();const nt="--mat-dialog-transition-duration";function At(nn){return null==nn?null:"number"==typeof nn?nn:nn.endsWith("ms")?(0,me.su)(nn.substring(0,nn.length-2)):nn.endsWith("s")?1e3*(0,me.su)(nn.substring(0,nn.length-1)):"0"===nn?0:null}let Ue=(()=>{class nn extends rt{constructor(rn,_n,xn,Mt,Nt,se,K,Te,Be){super(rn,_n,xn,Mt,Nt,se,K,Be),this._animationMode=Te,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?At(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?At(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(nt,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(He,Ct)),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Ct),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(Ct),this._animationsEnabled?(this._hostElement.style.setProperty(nt,`${this._openAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ve)),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(He,Ve)}_waitForAnimationToComplete(rn,_n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(_n,rn)}_requestAnimationFrame(rn){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(rn):rn()})}}
1return nn.\u0275fac=function(rn){return new(rn||nn)(V.\u0275\u0275directiveInject(V.ElementRef),V.\u0275\u0275directiveInject(_e.qV),V.\u0275\u0275directiveInject(m.K0,8),V.\u0275\u0275directiveInject(Pe),V.\u0275\u0275directiveInject(_e.ic),V.\u0275\u0275directiveInject(V.NgZone),V.\u0275\u0275directiveInject(c.Iu),V.\u0275\u0275directiveInject(V.ANIMATION_MODULE_TYPE,8),V.\u0275\u0275directiveInject(_e.tE))},nn.\u0275cmp=V.\u0275\u0275defineComponent({type:nn,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(rn,_n){2&rn&&(V.\u0275\u0275hostProperty("id",_n._config.id),V.\u0275\u0275attribute("aria-modal",_n._config.ariaModal)("role",_n._config.role)("aria-labelledby",_n._config.ariaLabel?null:_n._ariaLabelledBy)("aria-label",_n._config.ariaLabel)("aria-describedby",_n._config.ariaDescribedBy||null),V.\u0275\u0275classProp("_mat-animation-noopable",!_n._animationsEnabled))},features:[V.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(rn,_n){1&rn&&(V.\u0275\u0275elementStart(0,"div",0)(1,"div",1),V.\u0275\u0275template(2,Me,0,0,"ng-template",2),V.\u0275\u0275elementEnd()())},dependencies:[Oe.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}
1.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),nn})();class Wt{constructor(hn,rn,_n){this._ref=hn,this._containerInstance=_n,this._afterOpened=new ie.x,this._beforeClosed=new ie.x,this._state=0,this.disableClose=rn.disableClose,this.id=hn.id,_n._animationStateChanged.pipe((0,de.h)(xn=>"opened"===xn.state),(0,be.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),_n._animationStateChanged.pipe((0,de.h)(xn=>"closed"===xn.state),(0,be.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),hn.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Re.T)(this.backdropClick(),this.keydownEvents().pipe((0,de.h)(xn=>xn.keyCode===it.hY&&!this.disableClose&&!(0,it.Vb)(xn)))).subscribe(xn=>{this.disableClose||(xn.preventDefault(),function je(nn,hn,rn){nn._closeInteractionType=hn,nn.close(rn)}(this,"keydown"===xn.type?"keyboard":"mouse"))})}close(hn){this._result=hn,this._containerInstance._animationStateChanged.pipe((0,de.h)(rn=>"closing"===rn.state),(0,be.q)(1)).subscribe(rn=>{this._beforeClosed.next(hn),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),rn.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(hn){let rn=this._ref.config.positionStrategy;return hn&&(hn.left||hn.right)?hn.left?rn.left(hn.left):rn.right(hn.right):rn.centerHorizontally(),hn&&(hn.top||hn.bottom)?hn.top?rn.top(hn.top):rn.bottom(hn.bottom):rn.centerVertically(),this._ref.updatePosition(),this}updateSize(hn="",rn=""){return this._ref.updateSize(hn,rn),this}addPanelClass(hn){return this._ref.addPanelClass(hn),this}removePanelClass(hn){return this._ref.removePanelClass(hn),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const vt=new V.InjectionToken("MatMdcDialogData"),jt=new V.InjectionToken("mat-mdc-dialog-default-options"),On=new V.InjectionToken("mat-mdc-dialog-scroll-strategy"),St={provide:On,deps:[c.aV],useFactory:function Sn(nn){return()=>nn.scrollStrategies.block()}};let ae=0,Ne=(()=>{class nn{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const rn=this._parentDialog;return rn?rn._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(rn,_n,xn,Mt,Nt,se,K,Te,Be,It){this._overlay=rn,this._defaultOptions=xn,this._parentDialog=Mt,this._dialogRefConstructor=K,this._dialogContainerType=Te,this._dialogDataToken=Be,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ie.x,this._afterOpenedAtThisLevel=new ie.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=Pe,this.afterAllClosed=(0,q.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,lt.O)(void 0))),this._scrollStrategy=se,this._dialog=_n.get(pe.Vq)}open(rn,_n){let xn;(_n={...this._defaultOptions||new Pe,..._n}).id=_n.id||`${this._idPrefix}${ae++}`,_n.scrollStrategy=_n.scrollStrategy||this._scrollStrategy();const Mt=this._dialog.open(rn,{..._n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:_n},{provide:pe.ib,useValue:_n}]},templateContext:()=>({dialogRef:xn}
1),providers:(Nt,se,K)=>(xn=new this._dialogRefConstructor(Nt,_n,K),xn.updatePosition(_n?.position),[{provide:this._dialogContainerType,useValue:K},{provide:this._dialogDataToken,useValue:se.data},{provide:this._dialogRefConstructor,useValue:xn}])});return xn.componentInstance=Mt.componentInstance,this.openDialogs.push(xn),this.afterOpened.next(xn),xn.afterClosed().subscribe(()=>{const Nt=this.openDialogs.indexOf(xn);Nt>-1&&(this.openDialogs.splice(Nt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),xn}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(rn){return this.openDialogs.find(_n=>_n.id===rn)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(rn){let _n=rn.length;for(;_n--;)rn[_n].close()}}return nn.\u0275fac=function(rn){V.\u0275\u0275invalidFactory()},nn.\u0275prov=V.\u0275\u0275defineInjectable({token:nn,factory:nn.\u0275fac}),nn})(),Xe=(()=>{class nn extends Ne{constructor(rn,_n,xn,Mt,Nt,se,K,Te){super(rn,_n,Mt,se,K,Nt,Wt,Ue,vt,Te),this._idPrefix="mat-mdc-dialog-"}}return nn.\u0275fac=function(rn){return new(rn||nn)(V.\u0275\u0275inject(c.aV),V.\u0275\u0275inject(V.Injector),V.\u0275\u0275inject(m.Ye,8),V.\u0275\u0275inject(jt,8),V.\u0275\u0275inject(On),V.\u0275\u0275inject(nn,12),V.\u0275\u0275inject(c.Xj),V.\u0275\u0275inject(V.ANIMATION_MODULE_TYPE,8))},nn.\u0275prov=V.\u0275\u0275defineInjectable({token:nn,factory:nn.\u0275fac}),nn})(),wn=(()=>{class nn{}return nn.\u0275fac=function(rn){return new(rn||nn)},nn.\u0275mod=V.\u0275\u0275defineNgModule({type:nn}),nn.\u0275inj=V.\u0275\u0275defineInjector({providers:[Xe,St],imports:[pe.Su,c.U8,Oe.eL,dt.BQ,dt.BQ]}),nn})();const Wn={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},qn={dialogContainer:(0,wt.X$)("dialogContainer",[(0,wt.SB)("void, exit",(0,wt.oB)({opacity:0,transform:"scale(0.7)"})),(0,wt.SB)("enter",(0,wt.oB)({transform:"none"})),(0,wt.eR)("* => enter",(0,wt.ru)([(0,wt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,wt.oB)({transform:"none",opacity:1})),(0,wt.IO)("@*",(0,wt.pV)(),{optional:!0})]),Wn),(0,wt.eR)("* => void, * => exit",(0,wt.ru)([(0,wt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,wt.oB)({opacity:0})),(0,wt.IO)("@*",(0,wt.pV)(),{optional:!0})]),Wn)])}},1481:(ln,et,C)=>{"use strict";C.r(et),C.d(et,{BrowserModule:()=>Te,BrowserTransferStateModule:()=>ue,By:()=>fe,DomSanitizer:()=>Ge,EVENT_MANAGER_PLUGINS:()=>it,EventManager:()=>dt,HAMMER_GESTURE_CONFIG:()=>xe,HAMMER_LOADER:()=>Ft,HammerGestureConfig:()=>Ut,HammerModule:()=>Fe,Meta:()=>It,REMOVE_STYLES_ON_COMPONENT_DESTROY:()=>At,Title:()=>dn,TransferState:()=>We,VERSION:()=>an,bootstrapApplication:()=>wn,createApplication:()=>Wn,disableDebugTools:()=>bt,enableDebugTools:()=>Gn,makeStateKey:()=>ct,platformBrowser:()=>Mt,provideProtractorTestingSupport:()=>nn,\u0275BrowserDomAdapter:()=>_e,\u0275BrowserGetTestability:()=>be,\u0275DomEventsPlugin:()=>qe,\u0275DomRendererFactory2:()=>jt,\u0275DomSanitizerImpl:()=>ht,\u0275DomSharedStylesHost:()=>Pe,\u0275HammerGesturesPlugin:()=>ke,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>xn,\u0275KeyEventsPlugin:()=>cn,\u0275NAMESPACE_URIS:()=>Ct,\u0275SharedStylesHost:()=>Me,\u0275TRANSITION_ID:()=>Re,\u0275escapeHtml:()=>en,\u0275flattenStyles:()=>je,\u0275getDOM:()=>c.q,\u0275initDomAdapter:()=>hn,\u0275shimContentAttribute:()=>Ue,\u0275shimHostAttribute:()=>Wt});var c=C(6895),m=C(4650);class V extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class _e extends V{static makeCurrent(){(0,c.HT)(new _e)}onAndCancel(oe,j,$){return oe.addEventListener(j,$,!1),()=>{oe.removeEventListener(j,$,!1)}}dispatchEvent(oe,j){oe.dispatchEvent(j)}remove(oe){oe.parentNode&&oe.parentNode.removeChild(oe)}createElement(oe,j){return(j=j||this.getDefaultDocument()).createElement(oe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(oe){return oe.nodeType===Node.ELEMENT_NODE}isShadowRoot(oe){return oe instanceof DocumentFragment}getGlobalEventTarget(oe,j){return"window"===j?window:"document"===j?oe:"body"===j?oe.body:null}getBaseHref(oe){const j=function me(){return pe=pe||document.querySelector("base"),pe?pe.getAttribute("href"):null}();return null==j?null:function ie($e){Oe=Oe||document.createElement("a"),Oe.setAttribute("href",$e);const oe=Oe.pathname;return"/"===oe.charAt(0)?oe:`/${oe}`}(j)}resetBaseElement(){pe=null}getUserAgent(){return window.navigator.userAgent}getCookie(oe){return(0,c.Mx)(document.cookie,oe)}}let Oe,pe=null;const Re=new m.InjectionToken("TRANSITION_ID"),de=[{provide:m.APP_INITIALIZER,useFactory:function q($e,oe,j){return()=>{j.get(m.ApplicationInitStatus).donePromise.then(()=>{const $=(0,c.q)(),Ie=oe.querySelectorAll(`style[ng-transition="${$e}"]`);for(let Qe=0;Qe<Ie.length;Qe++)$.remove(Ie[Qe])})}},deps:[Re,c.K0,m.Injector],multi:!0}];class be{addToWindow(oe){m.\u0275global.getAngularTestability=($,Ie=!0)=>{const Qe=oe.findTestabilityInTree($,Ie);if(null==Qe)throw new Error("Could not find testability for element.");return Qe},m.\u0275global.getAllAngularTestabilities=()=>oe.getAllTestabilities(),m.\u0275global.getAllAngularRootElements=()=>oe.getAllRootElements(),m.\u0275global.frameworkStabilizers||(m.\u0275global.frameworkStabilizers=[]),m.\u0275global.frameworkStabilizers.push($=>{const Ie=m.\u0275global.getAllAngularTestabilities();let Qe=Ie.length,kt=!1;const Cn=function(nr){kt=kt||nr,Qe--,0==Qe&&$(kt)};Ie.forEach(function(nr){nr.whenStable(Cn)})})}findTestabilityInTree(oe,j,$){return null==j?null:oe.getTestability(j)??($?(0,c.q)().isShadowRoot(j)?this.findTestabilityInTree(oe,j.host,!0):this.findTestabilityInTree(oe,j.parentElement,!0):null)}}let lt=(()=>{class $e{build(){return new XMLHttpRequest}}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})();const it=new m.InjectionToken("EventManagerPlugins");let dt=(()=>{class $e{constructor(j,$){this._zone=$,this._eventNameToPlugin=new Map,j.forEac
1h(Ie=>{Ie.manager=this}),this._plugins=j.slice().reverse()}addEventListener(j,$,Ie){return this._findPluginFor($).addEventListener(j,$,Ie)}addGlobalEventListener(j,$,Ie){return this._findPluginFor($).addGlobalEventListener(j,$,Ie)}getZone(){return this._zone}_findPluginFor(j){const $=this._eventNameToPlugin.get(j);if($)return $;const Ie=this._plugins;for(let Qe=0;Qe<Ie.length;Qe++){const kt=Ie[Qe];if(kt.supports(j))return this._eventNameToPlugin.set(j,kt),kt}throw new Error(`No event manager plugin found for event ${j}`)}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(it),m.\u0275\u0275inject(m.NgZone))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})();class wt{constructor(oe){this._doc=oe}addGlobalEventListener(oe,j,$){const Ie=(0,c.q)().getGlobalEventTarget(this._doc,oe);if(!Ie)throw new Error(`Unsupported event target ${Ie} for event ${j}`);return this.addEventListener(Ie,j,$)}}let Me=(()=>{class $e{constructor(){this.usageCount=new Map}addStyles(j){for(const $ of j)1===this.changeUsageCount($,1)&&this.onStyleAdded($)}removeStyles(j){for(const $ of j)0===this.changeUsageCount($,-1)&&this.onStyleRemoved($)}onStyleRemoved(j){}onStyleAdded(j){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(j,$){const Ie=this.usageCount;let Qe=Ie.get(j)??0;return Qe+=$,Qe>0?Ie.set(j,Qe):Ie.delete(j),Qe}ngOnDestroy(){for(const j of this.getAllStyles())this.onStyleRemoved(j);this.usageCount.clear()}}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})(),Pe=(()=>{class $e extends Me{constructor(j){super(),this.doc=j,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(j){for(const $ of this.hostNodes)this.addStyleToHost($,j)}onStyleRemoved(j){const $=this.styleRef;$.get(j)?.forEach(Qe=>Qe.remove()),$.delete(j)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(j){this.hostNodes.add(j);for(const $ of this.getAllStyles())this.addStyleToHost(j,$)}removeHost(j){this.hostNodes.delete(j)}addStyleToHost(j,$){const Ie=this.doc.createElement("style");Ie.textContent=$,j.appendChild(Ie);const Qe=this.styleRef.get($);Qe?Qe.push(Ie):this.styleRef.set($,[Ie])}resetHostNodes(){const j=this.hostNodes;j.clear(),j.add(this.doc.head)}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})();const Ct={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/"},He=/%COMP%/g,ze="_nghost-%COMP%",rt="_ngcontent-%COMP%",At=new m.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Ue($e){return rt.replace(He,$e)}function Wt($e){return ze.replace(He,$e)}function je($e,oe){return oe.flat(100).map(j=>j.replace(He,$e))}function vt($e){return oe=>{if("__ngUnwrap__"===oe)return $e;!1===$e(oe)&&(oe.preventDefault(),oe.returnValue=!1)}}let jt=(()=>{class $e{constructor(j,$,Ie,Qe){this.eventManager=j,this.sharedStylesHost=$,this.appId=Ie,this.removeStylesOnCompDestory=Qe,this.rendererByCompId=new Map,this.defaultRenderer=new On(j)}createRenderer(j,$){if(!j||!$)return this.defaultRenderer;const Ie=this.getOrCreateRenderer(j,$);return Ie instanceof Xe?Ie.applyToHost(j):Ie instanceof Ne&&Ie.applyStyles(),Ie}getOrCreateRenderer(j,$){const Ie=this.rendererByCompId;let Qe=Ie.get($.id);if(!Qe){const kt=this.eventManager,Cn=this.sharedStylesHost,nr=this.removeStylesOnCompDestory;switch($.encapsulation){case m.ViewEncapsulation.Emulated:Qe=new Xe(kt,Cn,$,this.appId,nr);break;case m.ViewEncapsulation.ShadowDom:return new ae(kt,Cn,j,$);default:Qe=new Ne(kt,Cn,$,nr)}Qe.onDestroy=()=>Ie.delete($.id),Ie.set($.id,Qe)}return Qe}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(dt),m.\u0275\u0275inject(Pe),m.\u0275\u0275inject(m.APP_ID),m.\u0275\u0275inject(At))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})();class On{constructor(oe){this.eventManager=oe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(oe,j){return j?document.createElementNS(Ct[j]||j,oe):document.createElement(oe)}createComment(oe){return document.createComment(oe)}createText(oe){return document.createTextNode(oe)}appendChild(oe,j){(yn(oe)?oe.content:oe).appendChild(j)}insertBefore(oe,j,$){oe&&(yn(oe)?oe.content:oe).insertBefore(j,$)}removeChild(oe,j){oe&&oe.removeChild(j)}selectRootElement(oe,j){let $="string"==typeof oe?document.querySelector(oe):oe;if(!$)throw new Error(`The selector "${oe}
1" did not match any elements`);return j||($.textContent=""),$}parentNode(oe){return oe.parentNode}nextSibling(oe){return oe.nextSibling}setAttribute(oe,j,$,Ie){if(Ie){j=Ie+":"+j;const Qe=Ct[Ie];Qe?oe.setAttributeNS(Qe,j,$):oe.setAttribute(j,$)}else oe.setAttribute(j,$)}removeAttribute(oe,j,$){if($){const Ie=Ct[$];Ie?oe.removeAttributeNS(Ie,j):oe.removeAttribute(`${$}:${j}`)}else oe.removeAttribute(j)}addClass(oe,j){oe.classList.add(j)}removeClass(oe,j){oe.classList.remove(j)}setStyle(oe,j,$,Ie){Ie&(m.RendererStyleFlags2.DashCase|m.RendererStyleFlags2.Important)?oe.style.setProperty(j,$,Ie&m.RendererStyleFlags2.Important?"important":""):oe.style[j]=$}removeStyle(oe,j,$){$&m.RendererStyleFlags2.DashCase?oe.style.removeProperty(j):oe.style[j]=""}setProperty(oe,j,$){oe[j]=$}setValue(oe,j){oe.nodeValue=j}listen(oe,j,$){return"string"==typeof oe?this.eventManager.addGlobalEventListener(oe,j,vt($)):this.eventManager.addEventListener(oe,j,vt($))}}function yn($e){return"TEMPLATE"===$e.tagName&&void 0!==$e.content}class ae extends On{constructor(oe,j,$,Ie){super(oe),this.sharedStylesHost=j,this.hostEl=$,this.shadowRoot=$.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Qe=je(Ie.id,Ie.styles);for(const kt of Qe){const Cn=document.createElement("style");Cn.textContent=kt,this.shadowRoot.appendChild(Cn)}}nodeOrShadowRoot(oe){return oe===this.hostEl?this.shadowRoot:oe}appendChild(oe,j){return super.appendChild(this.nodeOrShadowRoot(oe),j)}insertBefore(oe,j,$){return super.insertBefore(this.nodeOrShadowRoot(oe),j,$)}removeChild(oe,j){return super.removeChild(this.nodeOrShadowRoot(oe),j)}parentNode(oe){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(oe)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ne extends On{constructor(oe,j,$,Ie,Qe=$.id){super(oe),this.sharedStylesHost=j,this.removeStylesOnCompDestory=Ie,this.rendererUsageCount=0,this.styles=je(Qe,$.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class Xe extends Ne{constructor(oe,j,$,Ie,Qe){const kt=Ie+"-"+$.id;super(oe,j,$,Qe,kt),this.contentAttr=Ue(kt),this.hostAttr=Wt(kt)}applyToHost(oe){this.applyStyles(),this.setAttribute(oe,this.hostAttr,"")}createElement(oe,j){const $=super.createElement(oe,j);return super.setAttribute($,this.contentAttr,""),$}}let qe=(()=>{class $e extends wt{constructor(j){super(j)}supports(j){return!0}addEventListener(j,$,Ie){return j.addEventListener($,Ie,!1),()=>this.removeEventListener(j,$,Ie)}removeEventListener(j,$,Ie){return j.removeEventListener($,Ie)}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})();const yt=["alt","control","meta","shift"],ft={"\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"},$t={alt:$e=>$e.altKey,control:$e=>$e.ctrlKey,meta:$e=>$e.metaKey,shift:$e=>$e.shiftKey};let cn=(()=>{class $e extends wt{constructor(j){super(j)}supports(j){return null!=$e.parseEventName(j)}addEventListener(j,$,Ie){const Qe=$e.parseEventName($),kt=$e.eventCallback(Qe.fullKey,Ie,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(j,Qe.domEventName,kt))}static parseEventName(j){const $=j.toLowerCase().split("."),Ie=$.shift();if(0===$.length||"keydown"!==Ie&&"keyup"!==Ie)return null;const Qe=$e._normalizeKey($.pop());let kt="",Cn=$.indexOf("code");if(Cn>
1-1&&($.splice(Cn,1),kt="code."),yt.forEach(Rr=>{const Rt=$.indexOf(Rr);Rt>-1&&($.splice(Rt,1),kt+=Rr+".")}),kt+=Qe,0!=$.length||0===Qe.length)return null;const nr={};return nr.domEventName=Ie,nr.fullKey=kt,nr}static matchEventFullKeyCode(j,$){let Ie=ft[j.key]||j.key,Qe="";return $.indexOf("code.")>-1&&(Ie=j.code,Qe="code."),!(null==Ie||!Ie)&&(Ie=Ie.toLowerCase()," "===Ie?Ie="space":"."===Ie&&(Ie="dot"),yt.forEach(kt=>{kt!==Ie&&(0,$t[kt])(j)&&(Qe+=kt+".")}),Qe+=Ie,Qe===$)}static eventCallback(j,$,Ie){return Qe=>{$e.matchEventFullKeyCode(Qe,j)&&Ie.runGuarded(()=>$(Qe))}}static _normalizeKey(j){return"esc"===j?"escape":j}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})();function wn($e,oe){return(0,m.\u0275internalCreateApplication)({rootComponent:$e,...qn(oe)})}function Wn($e){return(0,m.\u0275internalCreateApplication)(qn($e))}function qn($e){return{appProviders:[...K,...$e?.providers??[]],platformProviders:xn}}function nn(){return[...se]}function hn(){_e.makeCurrent()}const xn=[{provide:m.PLATFORM_ID,useValue:c.bD},{provide:m.PLATFORM_INITIALIZER,useValue:hn,multi:!0},{provide:c.K0,useFactory:function _n(){return(0,m.\u0275setDocument)(document),document},deps:[]}],Mt=(0,m.createPlatformFactory)(m.platformCore,"browser",xn),Nt=new m.InjectionToken(""),se=[{provide:m.\u0275TESTABILITY_GETTER,useClass:be,deps:[]},{provide:m.\u0275TESTABILITY,useClass:m.Testability,deps:[m.NgZone,m.TestabilityRegistry,m.\u0275TESTABILITY_GETTER]},{provide:m.Testability,useClass:m.Testability,deps:[m.NgZone,m.TestabilityRegistry,m.\u0275TESTABILITY_GETTER]}],K=[{provide:m.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:m.ErrorHandler,useFactory:function rn(){return new m.ErrorHandler},deps:[]},{provide:it,useClass:qe,multi:!0,deps:[c.K0,m.NgZone,m.PLATFORM_ID]},{provide:it,useClass:cn,multi:!0,deps:[c.K0]},{provide:jt,useClass:jt,deps:[dt,Pe,m.APP_ID,At]},{provide:m.RendererFactory2,useExisting:jt},{provide:Me,useExisting:Pe},{provide:Pe,useClass:Pe,deps:[c.K0]},{provide:dt,useClass:dt,deps:[it,m.NgZone]},{provide:c.JF,useClass:lt,deps:[]},[]];let Te=(()=>{class $e{constructor(j){}static withServerTransition(j){return{ngModule:$e,providers:[{provide:m.APP_ID,useValue:j.appId},{provide:Re,useExisting:m.APP_ID},de]}}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(Nt,12))},$e.\u0275mod=m.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=m.\u0275\u0275defineInjector({providers:[...K,...se],imports:[c.ez,m.ApplicationModule]}),$e})(),It=(()=>{class $e{constructor(j){this._doc=j,this._dom=(0,c.q)()}addTag(j,$=!1){return j?this._getOrCreateElement(j,$):null}addTags(j,$=!1){return j?j.reduce((Ie,Qe)=>(Qe&&Ie.push(this._getOrCreateElement(Qe,$)),Ie),[]):[]}getTag(j){return j&&this._doc.querySelector(`meta[${j}]`)||null}getTags(j){if(!j)return[];const $=this._doc.querySelectorAll(`meta[${j}]`);return $?[].slice.call($):[]}updateTag(j,$){if(!j)return null;$=$||this._parseSelector(j);const Ie=this.getTag($);return Ie?this._setMetaElementAttributes(j,Ie):this._getOrCreateElement(j,!0)}removeTag(j){this.removeTagElement(this.getTag(j))}removeTagElement(j){j&&this._dom.remove(j)}_getOrCreateElement(j,$=!1){if(!$){const kt=this._parseSelector(j),Cn=this.getTags(kt).filter(nr=>this._containsAttributes(j,nr))[0];if(void 0!==Cn)return Cn}const Ie=this._dom.createElement("meta");return this._setMetaElementAttributes(j,Ie),this._doc.getElementsByTagName("head")[0].appendChild(Ie),Ie}_setMetaElementAttributes(j,$){return Object.keys(j).forEach(Ie=>$.setAttribute(this._getMetaKeyMap(Ie),j[Ie])),$}_parseSelector(j){const $=j.name?"name":"property";return`${$}="${j[$]}"`}_containsAttributes(j,$){return Object.keys(j).every(Ie=>$.getAttribute(this._getMetaKeyMap(Ie))===j[Ie])}_getMetaKeyMap(j){return Yt[j]||j}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:function(j){let $=null;return $=j?new j:function Be(){return new It((0,m.\u0275\u0275inject)(c.K0))}(),$},providedIn:"root"}),$e})();const Yt={httpEquiv:"http-equiv"};let dn=(()=>{class $e{constructor(j){this._doc=j}getTitle(){return this._doc.title}setTitle(j){this._doc.title=j||""}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:function(j){let $=null;return $=j?new j:function qt(){return new dn((0,m.\u0275\u0275inject)(c.K0))}(),$},providedIn:"root"}),$e})();function sn($e,oe){(typeof COMPILED>"u"||!COMPILED)&&((m.\u0275global.ng=m.\u0275global.ng||{})[$e]=oe)}const Xt=typeof window<"u"&&window||{};class Mn{constructor(oe,j){this.msPerTick=oe,this.numTicks=j}}class bn{constructor(oe){this.appRef=oe.injector.get(m.ApplicationRef)}timeChangeDetection(oe){const j=oe&&oe.record,$="Change Detection",Ie=null!=Xt.console.profile;j&&Ie&&Xt.console.profile($);const Qe=Dr();let kt=0;for(;kt<5||Dr()-Qe<500;)this.appRef.tick(),kt++;const Cn=Dr();j&&Ie&&Xt.console.profileEnd($);const nr=(Cn-Qe)/kt;return Xt.console.log(`ran ${kt} change detection cycles`),Xt.console.log(`${nr.toFixed(2)} ms per check`),new Mn(nr,kt)}}function Dr(){return Xt.performance&&Xt.performance.now?Xt.performance.now():(new Date).getTime()}const vr="profiler";function Gn($e){return sn(vr,new bn($e)),$e}function bt(){sn(vr,null)}function en($e){const oe={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return $e.replace(/[&"'<>]/g,j=>oe[j])}function ct($e){return $e}let We=(()=>{class $e{constructor(){this.store={},this.onSerializeCallbacks={},this.store=function Q($e,oe){const j=$e.getElementById(oe+"-state");let $={};if(j&&j.textContent)try{$=JSON.parse(function Se($e){const oe={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return $e.replace(/&[^;]+;/g,j=>oe[j])}(j.textContent))}catch(Ie){console.warn("Exception while restoring TransferState for app "+oe,Ie)}return $}((0,m.inject)(c.K0),(0,m.inject)(m.APP_ID))}get(j,$){return void 0!==this.store[j]?this.store[j]:$}set(j,$){this.store[j]=$}remove(j){delete this.store[j]}hasKey(j){return this.store.hasOwnProperty(j)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(j,$){this.onSerializeCallbacks[j]=$}toJson(){for(const j in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(j))try{this.store[j]=this.onSerializeCallbacks[j]()}catch($){console.warn("Exception in onSerialize callback: ",$)}return JSON.stringify(this.store)}}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ue=(()=>{class $e{}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275mod=m.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=m.\u0275\u0275defineInjector({}),$e})();class fe{static all(){return()=>!0}static css(oe){return j=>null!=j.nativeElement&&function X($e,oe){return!!(0,c.q)().isElementNode($e)&&($e.matches&&$e.matches(oe)||$e.msMat
1chesSelector&&$e.msMatchesSelector(oe)||$e.webkitMatchesSelector&&$e.webkitMatchesSelector(oe))}(j.nativeElement,oe)}static directive(oe){return j=>-1!==j.providerTokens.indexOf(oe)}}const ce={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},xe=new m.InjectionToken("HammerGestureConfig"),Ft=new m.InjectionToken("HammerLoader");let Ut=(()=>{class $e{constructor(){this.events=[],this.overrides={}}buildHammer(j){const $=new Hammer(j,this.options);$.get("pinch").set({enable:!0}),$.get("rotate").set({enable:!0});for(const Ie in this.overrides)$.get(Ie).set(this.overrides[Ie]);return $}}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})(),ke=(()=>{class $e extends wt{constructor(j,$,Ie,Qe){super(j),this._config=$,this.console=Ie,this.loader=Qe,this._loaderPromise=null}supports(j){return!(!ce.hasOwnProperty(j.toLowerCase())&&!this.isCustomEvent(j)||!window.Hammer&&!this.loader)}addEventListener(j,$,Ie){const Qe=this.manager.getZone();if($=$.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Qe.runOutsideAngular(()=>this.loader());let kt=!1,Cn=()=>{kt=!0};return Qe.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?kt||(Cn=this.addEventListener(j,$,Ie)):Cn=()=>{}}
1).catch(()=>{Cn=()=>{}})),()=>{Cn()}}return Qe.runOutsideAngular(()=>{const kt=this._config.buildHammer(j),Cn=function(nr){Qe.runGuarded(function(){Ie(nr)})};return kt.on($,Cn),()=>{kt.off($,Cn),"function"==typeof kt.destroy&&kt.destroy()}})}isCustomEvent(j){return this._config.events.indexOf(j)>-1}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0),m.\u0275\u0275inject(xe),m.\u0275\u0275inject(m.\u0275Console),m.\u0275\u0275inject(Ft,8))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac}),$e})(),Fe=(()=>{class $e{}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275mod=m.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=m.\u0275\u0275defineInjector({providers:[{provide:it,useClass:ke,multi:!0,deps:[c.K0,xe,m.\u0275Console,[new m.Optional,Ft]]},{provide:xe,useClass:Ut,deps:[]}]}),$e})(),Ge=(()=>{class $e{}return $e.\u0275fac=function(j){return new(j||$e)},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:function(j){let $=null;return $=j?new(j||$e):m.\u0275\u0275inject(ht),$},providedIn:"root"}),$e})(),ht=(()=>{class $e extends Ge{constructor(j){super(),this._doc=j}sanitize(j,$){if(null==$)return null;switch(j){case m.SecurityContext.NONE:return $;case m.SecurityContext.HTML:return(0,m.\u0275allowSanitizationBypassAndThrow)($,"HTML")?(0,m.\u0275unwrapSafeValue)($):(0,m.\u0275_sanitizeHtml)(this._doc,String($)).toString();case m.SecurityContext.STYLE:return(0,m.\u0275allowSanitizationBypassAndThrow)($,"Style")?(0,m.\u0275unwrapSafeValue)($):$;case m.SecurityContext.SCRIPT:if((0,m.\u0275allowSanitizationBypassAndThrow)($,"Script"))return(0,m.\u0275unwrapSafeValue)($);throw new Error("unsafe value used in a script context");case m.SecurityContext.URL:return(0,m.\u0275allowSanitizationBypassAndThrow)($,"URL")?(0,m.\u0275unwrapSafeValue)($):(0,m.\u0275_sanitizeUrl)(String($));case m.SecurityContext.RESOURCE_URL:if((0,m.\u0275allowSanitizationBypassAndThrow)($,"ResourceURL"))return(0,m.\u0275unwrapSafeValue)($);throw new Error(`unsafe value used in a resource URL context (see ${m.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${j} (see ${m.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(j){return(0,m.\u0275bypassSanitizationTrustHtml)(j)}bypassSecurityTrustStyle(j){return(0,m.\u0275bypassSanitizationTrustStyle)(j)}bypassSecurityTrustScript(j){return(0,m.\u0275bypassSanitizationTrustScript)(j)}bypassSecurityTrustUrl(j){return(0,m.\u0275bypassSanitizationTrustUrl)(j)}bypassSecurityTrustResourceUrl(j){return(0,m.\u0275bypassSanitizationTrustResourceUrl)(j)}}return $e.\u0275fac=function(j){return new(j||$e)(m.\u0275\u0275inject(c.K0))},$e.\u0275prov=m.\u0275\u0275defineInjectable({token:$e,factory:function(j){let $=null;return $=j?new j:function Et($e){return new ht($e.get(c.K0))}(m.\u0275\u0275inject(m.Injector)),$},providedIn:"root"}),$e})();const an=new m.Version("15.2.9")},3453:(ln,et,C)=>{"use strict";C.d(et,{gz:()=>Di,gk:()=>Fi,m2:()=>Ai,Q3:()=>ns,OD:()=>gr,F0:()=>js,rH:()=>na,Od:()=>Ha,Bz:()=>ot,lC:()=>Is,co:()=>Wa});var c=C(4650),m=C(8996),V=C(9646),_e=C(1135),pe=C(6805),me=C(9841),Oe=C(7272),ie=C(9770),Re=C(9635),q=C(2843),de=C(9751),be=C(515),lt=C(727),it=C(4482),dt=C(5403);function wt(){return(0,it.e)((w,D)=>{let y=null;w._refCount++;const O=(0,dt.x)(D,void 0,void 0,void 0,()=>{if(!w||w._refCount<=0||0<--w._refCount)return void(y=null);const z=w._connection,he=y;y=null,z&&(!he||z===he)&&z.unsubscribe(),D.unsubscribe()});w.subscribe(O),O.closed||(y=w.connect())})}class Me extends de.y{constructor(D,y){super(),this.source=D,this.subjectFactory=y,this._subject=null,this._refCount=0,this._connection=null,(0,it.A)(D)&&(this.lift=D.lift)}_subscribe(D){return this.getSubject().subscribe(D)}getSubject(){const D=this._subject;return(!D||D.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:D}=this;this._subject=this._connection=null,D?.unsubscribe()}connect(){let D=this._connection;if(!D){D=this._connection=new lt.w0;const y=this.getSubject();D.add(this.source.subscribe((0,dt.x)(y,void 0,()=>{this._teardown(),y.complete()},O=>{this._teardown(),y.error(O)},()=>this._teardown()))),D.closed&&(this._connection=null,D=lt.w0.EMPTY)}return D}refCount(){return wt()(this)}}var Pe=C(7579),Ct=C(6895),He=C(4004),Ve=C(3900),ve=C(5698),ze=C(8675),rt=C(9300),nt=C(6099),At=C(590),Ue=C(4351),Wt=C(8505),je=C(8421);function vt(w){return(0,it.e)((D,y)=>{let he,O=null,z=!1;O=D.subscribe((0,dt.x)(y,void 0,void 0,Ce=>{he=(0,je.Xf)(w(Ce,vt(w)(D))),O?(O.unsubscribe(),O=null,he.subscribe(y)):z=!0})),z&&(O.unsubscribe(),O=null,he.subscribe(y))})}var jt=C(2940);function On(w){return w<=0?()=>be.E:(0,it.e)((D,y)=>{let O=[];D.subscribe((0,dt.x)(y,z=>{O.push(z),w<O.length&&O.shift()},()=>{for(const z of O)y.next(z);y.complete()},void 0,()=>{O=null}))})}var Sn=C(8068),St=C(6590),yn=C(4671);function ae(w,D){const y=arguments.length>=2;return O=>O.pipe(w?(0,rt.h)((z,he)=>w(z,he,O)):yn.y,On(1),y?(0,St.d)(D):(0,Sn.T)(()=>new pe.K))}
1var Ne=C(2529),Xe=C(9718),qe=C(8746),yt=C(8189),ft=C(1481);const $t="primary",cn=Symbol("RouteTitle");class tr{constructor(D){this.params=D||{}}has(D){return Object.prototype.hasOwnProperty.call(this.params,D)}get(D){if(this.has(D)){const y=this.params[D];return Array.isArray(y)?y[0]:y}return null}getAll(D){if(this.has(D)){const y=this.params[D];return Array.isArray(y)?y:[y]}return[]}get keys(){return Object.keys(this.params)}}function wn(w){return new tr(w)}function Wn(w,D,y){const O=y.path.split("/");if(O.length>w.length||"full"===y.pathMatch&&(D.hasChildren()||O.length<w.length))return null;const z={};for(let he=0;he<O.length;he++){const Ce=O[he],_t=w[he];if(Ce.startsWith(":"))z[Ce.substring(1)]=_t;else if(Ce!==_t.path)return null}return{consumed:w.slice(0,O.length),posParams:z}}function nn(w,D){const y=w?Object.keys(w):void 0,O=D?Object.keys(D):void 0;if(!y||!O||y.length!=O.length)return!1;let z;for(let he=0;he<y.length;he++)if(z=y[he],!hn(w[z],D[z]))return!1;return!0}function hn(w,D){if(Array.isArray(w)&&Array.isArray(D)){if(w.length!==D.length)return!1;const y=[...w].sort(),O=[...D].sort();return y.every((z,he)=>O[he]===z)}return w===D}function rn(w){return Array.prototype.concat.apply([],w)}function _n(w){return w.length>0?w[w.length-1]:null}function Mt(w,D){for(const y in w)w.hasOwnProperty(y)&&D(w[y],y)}function Nt(w){return(0,c.\u0275isObservable)(w)?w:(0,c.\u0275isPromise)(w)?(0,m.D)(Promise.resolve(w)):(0,V.of)(w)}const se=!1,K={exact:function Yt(w,D,y){if(!Gn(w.segments,D.segments)||!Xt(w.segments,D.segments,y)||w.numberOfChildren!==D.numberOfChildren)return!1;for(const O in D.children)if(!w.children[O]||!Yt(w.children[O],D.children[O],y))return!1;return!0},subset:dn},Te={exact:function It(w,D){return nn(w,D)},subset:function qt(w,D){return Object.keys(D).length<=Object.keys(w).length&&Object.keys(D).every(y=>hn(w[y],D[y]))},ignored:()=>!0};function Be(w,D,y){return K[y.paths](w.root,D.root,y.matrixParams)&&Te[y.queryParams](w.queryParams,D.queryParams)&&!("exact"===y.fragment&&w.fragment!==D.fragment)}function dn(w,D,y){return sn(w,D,D.segments,y)}function sn(w,D,y,O){if(w.segments.length>y.length){const z=w.segments.slice(0,y.length);return!(!Gn(z,y)||D.hasChildren()||!Xt(z,y,O))}if(w.segments.length===y.length){if(!Gn(w.segments,y)||!Xt(w.segments,y,O))return!1;for(const z in D.children)if(!w.children[z]||!dn(w.children[z],D.children[z],O))return!1;return!0}{const z=y.slice(0,w.segments.length),he=y.slice(w.segments.length);return!!(Gn(w.segments,z)&&Xt(w.segments,z,O)&&w.children[$t])&&sn(w.children[$t],D,he,O)}}function Xt(w,D,y){return D.every((O,z)=>Te[y](w[z].parameters,O.parameters))}class Mn{constructor(D=new bn([],{}),y={},O=null){this.root=D,this.queryParams=y,this.fragment=O}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class bn{constructor(D,y){this.segments=D,this.children=y,this.parent=null,Mt(y,(O,z)=>O.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return We(this)}}class Dr{constructor(D,y){this.path=D,this.parameters=y}get parameterMap(){return this._parameterMap||(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return Ut(this)}}function Gn(w,D){return w.length===D.length&&w.every((y,O)=>y.path===D[O].path)}let en=(()=>{class w{}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:function(){return new Se},providedIn:"root"}),w})();class Se{parse(D){const y=new j(D);return new Mn(y.parseRootSegment(),y.parseQueryParams(),y.parseFragment())}serialize(D){const y=`/${Q(D.root,!0)}`,O=function Fe(w){const D=Object.keys(w).map(y=>{const O=w[y];return Array.isArray(O)?O.map(z=>`${fe(y)}=${fe(z)}`).join("&"):`${fe(y)}=${fe(O)}`}).filter(y=>!!y);return D.length?`?${D.join("&")}`:""}(D.queryParams);return`${y}${O}${"string"==typeof D.fragment?`#${function X(w){return encodeURI(w)}(D.fragment)}`:""}`}}const ct=new Se;function We(w){return w.segments.map(D=>Ut(D)).join("/")}function Q(w,D){if(!w.hasChildren())return We(w);if(D){const y=w.children[$t]?Q(w.children[$t],!1):"",O=[];return Mt(w.children,(z,he)=>{he!==$t&&O.push(`${he}:${Q(z,!1)}`)}),O.length>0?`${y}(${O.join("//")})`:y}{const y=function bt(w,D){let y=[];return Mt(w.children,(O,z)=>{z===$t&&(y=y.concat(D(O,z)))}),Mt(w.children,(O,z)=>{z!==$t&&(y=y.concat(D(O,z)))}),y}(w,(O,z)=>z===$t?[Q(w.children[$t],!1)]:[`${z}:${Q(O,!1)}`]);return 1===Object.keys(w.children).length&&null!=w.children[$t]?`${We(w)}/${y[0]}`:`${We(w)}/(${y.join("//")})`}}function ue(w){return encodeURIComponent(w).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fe(w){return ue(w).replace(/%3B/gi,";")}function ce(w){return ue(w).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xe(w){return decodeURIComponent(w)}function Ft(w){return xe(w.replace(/\+/g,"%20"))}function Ut(w){return`${ce(w.path)}${function ke(w){return Object.keys(w).map(D=>`;${ce(D)}=${ce(w[D])}`).join("")}(w.parameters)}`}const Ge=/^[^\/()?;=#]+/;function Et(w){const D=w.match(Ge);return D?D[0]:""}const ht=/^[^=?&#]+/,$e=/^[^&#]+/;
1class j{constructor(D){this.url=D,this.remaining=D}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bn([],{}):new bn([],this.parseChildren())}parseQueryParams(){const D={};if(this.consumeOptional("?"))do{this.parseQueryParam(D)}while(this.consumeOptional("&"));return D}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const D=[];for(this.peekStartsWith("(")||D.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),D.push(this.parseSegment());let y={};this.peekStartsWith("/(")&&(this.capture("/"),y=this.parseParens(!0));let O={};return this.peekStartsWith("(")&&(O=this.parseParens(!1)),(D.length>0||Object.keys(y).length>0)&&(O[$t]=new bn(D,y)),O}parseSegment(){const D=Et(this.remaining);if(""===D&&this.peekStartsWith(";"))throw new c.\u0275RuntimeError(4009,se);return this.capture(D),new Dr(xe(D),this.parseMatrixParams())}parseMatrixParams(){const D={};for(;this.consumeOptional(";");)this.parseParam(D);return D}parseParam(D){const y=Et(this.remaining);if(!y)return;this.capture(y);let O="";if(this.consumeOptional("=")){const z=Et(this.remaining);z&&(O=z,this.capture(O))}D[xe(y)]=xe(O)}parseQueryParam(D){const y=function an(w){const D=w.match(ht);return D?D[0]:""}(this.remaining);if(!y)return;this.capture(y);let O="";if(this.consumeOptional("=")){const Ce=function oe(w){const D=w.match($e);return D?D[0]:""}(this.remaining);Ce&&(O=Ce,this.capture(O))}const z=Ft(y),he=Ft(O);if(D.hasOwnProperty(z)){let Ce=D[z];Array.isArray(Ce)||(Ce=[Ce],D[z]=Ce),Ce.push(he)}else D[z]=he}parseParens(D){const y={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const O=Et(this.remaining),z=this.remaining[O.length];if("/"!==z&&")"!==z&&";"!==z)throw new c.\u0275RuntimeError(4010,se);let he;O.indexOf(":")>-1?(he=O.slice(0,O.indexOf(":")),this.capture(he),this.capture(":")):D&&(he=$t);const Ce=this.parseChildren();y[he]=1===Object.keys(Ce).length?Ce[$t]:new bn([],Ce),this.consumeOptional("//")}return y}peekStartsWith(D){return this.remaining.startsWith(D)}consumeOptional(D){return!!this.peekStartsWith(D)&&(this.remaining=this.remaining.substring(D.length),!0)}capture(D){if(!this.consumeOptional(D))throw new c.\u0275RuntimeError(4011,se)}}function $(w){return w.segments.length>0?new bn([],{[$t]:w}):w}function Ie(w){const D={};for(const O of Object.keys(w.children)){const he=Ie(w.children[O]);(he.segments.length>0||he.hasChildren())&&(D[O]=he)}return function Qe(w){if(1===w.numberOfChildren&&w.children[$t]){const D=w.children[$t];return new bn(w.segments.concat(D.segments),D.children)}return w}(new bn(w.segments,D))}function kt(w){return w instanceof Mn}const Cn=!1;function xt(w,D,y,O,z){if(0===y.length)return Yn(D.root,D.root,D.root,O,z);const he=function kr(w){if("string"==typeof w[0]&&1===w.length&&"/"===w[0])return new Pn(!0,0,w);let D=0,y=!1;const O=w.reduce((z,he,Ce)=>{if("object"==typeof he&&null!=he){if(he.outlets){const _t={};return Mt(he.outlets,(tn,Ln)=>{_t[Ln]="string"==typeof tn?tn.split("/"):tn}),[...z,{outlets:_t}]}if(he.segmentPath)return[...z,he.segmentPath]}return"string"!=typeof he?[...z,he]:0===Ce?(he.split("/").forEach((_t,tn)=>{0==tn&&"."===_t||(0==tn&&""===_t?y=!0:".."===_t?D++:""!=_t&&z.push(_t))}),z):[...z,he]},[]);return new Pn(y,D,O)}(y);return he.toRoot()?Yn(D.root,D.root,new bn([],{}),O,z):function Ce(tn){const Ln=function li(w,D,y,O){if(w.isAbsolute)return new wr(D.root,!0,0);if(-1===O)return new wr(y,y===D.root,0);return function ro(w,D,y){let O=w,z=D,he=y;for(;he>z;){if(he-=z,O=O.parent,!O)throw new c.\u0275RuntimeError(4005,Cn&&"Invalid number of '../'");z=O.segments.length}return new wr(O,!1,z-he)}(y,O+(pn(w.commands[0])?0:1),w.numberOfDoubleDots)}(he,D,w.snapshot?._urlSegment,tn),Vn=Ln.processChildren?Si(Ln.segmentGroup,Ln.index,he.commands):Rs(Ln.segmentGroup,Ln.index,he.commands);return Yn(D.root,Ln.segmentGroup,Vn,O,z)}(w.snapshot?._lastPathIndex)}function pn(w){return"object"==typeof w&&null!=w&&!w.outlets&&!w.segmentPath}function Kn(w){return"object"==typeof w&&null!=w&&w.outlets}function Yn(w,D,y,O,z){let Ce,he={};O&&Mt(O,(tn,Ln)=>{he[Ln]=Array.isArray(tn)?tn.map(Vn=>`${Vn}`):`${tn}`}),Ce=w===D?y:Tr(w,D,y);const _t=$(Ie(Ce));return new Mn(_t,he,z)}function Tr(w,D,y){const O={};return Mt(w.children,(z,he)=>{O[he]=z===D?y:Tr(z,D,y)}),new bn(w.segments,O)}class Pn{constructor(D,y,O){if(this.isAbsolute=D,this.numberOfDoubleDots=y,this.commands=O,D&&O.length>
10&&pn(O[0]))throw new c.\u0275RuntimeError(4003,Cn&&"Root segment cannot have matrix parameters");const z=O.find(Kn);if(z&&z!==_n(O))throw new c.\u0275RuntimeError(4004,Cn&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wr{constructor(D,y,O){this.segmentGroup=D,this.processChildren=y,this.index=O}}function Rs(w,D,y){if(w||(w=new bn([],{})),0===w.segments.length&&w.hasChildren())return Si(w,D,y);const O=function Tn(w,D,y){let O=0,z=D;const he={match:!1,pathIndex:0,commandIndex:0};for(;z<w.segments.length;){if(O>=y.length)return he;const Ce=w.segments[z],_t=y[O];if(Kn(_t))break;const tn=`${_t}`,Ln=O<y.length-1?y[O+1]:null;if(z>0&&void 0===tn)break;if(tn&&Ln&&"object"==typeof Ln&&void 0===Ln.outlets){if(!Nr(tn,Ln,Ce))return he;O+=2}else{if(!Nr(tn,{},Ce))return he;O++}z++}return{match:!0,pathIndex:z,commandIndex:O}}(w,D,y),z=y.slice(O.commandIndex);if(O.match&&O.pathIndex<w.segments.length){const he=new bn(w.segments.slice(0,O.pathIndex),{});return he.children[$t]=new bn(w.segments.slice(O.pathIndex),w.children),Si(he,0,z)}return O.match&&0===z.length?new bn(w.segments,{}):O.match&&!w.hasChildren()?pr(w,D,y):O.match?Si(w,0,z):pr(w,D,y)}function Si(w,D,y){if(0===y.length)return new bn(w.segments,{});{const O=function Ni(w){return Kn(w[0])?w[0].outlets:{[$t]:w}}(y),z={};if(!O[$t]&&w.children[$t]&&1===w.numberOfChildren&&0===w.children[$t].segments.length){const he=Si(w.children[$t],D,y);return new bn(w.segments,he.children)}return Mt(O,(he,Ce)=>{"string"==typeof he&&(he=[he]),null!==he&&(z[Ce]=Rs(w.children[Ce],D,he))}),Mt(w.children,(he,Ce)=>{void 0===O[Ce]&&(z[Ce]=he)}),new bn(w.segments,z)}}function pr(w,D,y){const O=w.segments.slice(0,D);let z=0;for(;z<y.length;){const he=y[z];if(Kn(he)){const tn=ci(he.outlets);return new bn(O,tn)}if(0===z&&pn(y[0])){O.push(new Dr(w.segments[D].path,qi(y[0]))),z++;continue}const Ce=Kn(he)?he.outlets[$t]:`${he}`,_t=z<y.length-1?y[z+1]:null;Ce&&_t&&pn(_t)?(O.push(new Dr(Ce,qi(_t))),z+=2):(O.push(new Dr(Ce,{})),z++)}return new bn(O,{})}function ci(w){const D={};return Mt(w,(y,O)=>{"string"==typeof y&&(y=[y]),null!==y&&(D[O]=pr(new bn([],{}),0,y))}),D}function qi(w){const D={};return Mt(w,(y,O)=>D[O]=`${y}`),D}function Nr(w,D,y){return w==y.path&&nn(D,y.parameters)}const Zr="imperative";class bi{constructor(D,y){this.id=D,this.url=y}}class gr extends bi{constructor(D,y,O="imperative",z=null){super(D,y),this.type=0,this.navigationTrigger=O,this.restoredState=z}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ai extends bi{constructor(D,y,O){super(D,y),this.urlAfterRedirects=O,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fi extends bi{constructor(D,y,O,z){super(D,y),this.reason=O,this.code=z,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ir extends bi{constructor(D,y,O,z){super(D,y),this.reason=O,this.code=z,this.type=16}}class ns extends bi{constructor(D,y,O,z){super(D,y),this.error=O,this.target=z,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ws extends bi{constructor(D,y,O,z){super(D,y),this.urlAfterRedirects=O,this.state=z,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ds extends bi{constructor(D,y,O,z){super(D,y),this.urlAfterRedirects=O,this.state=z,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wi extends bi{constructor(D,y,O,z,he){super(D,y),this.urlAfterRedirects=O,this.state=z,this.shouldActivate=he,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ni extends bi{constructor(D,y,O,z){super(D,y),this.urlAfterRedirects=O,this.state=z,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class io extends bi{constructor(D,y,O,z){super(D,y),this.urlAfterRedirects=O,this.state=z,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bi{constructor(D){this.route=D,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $i{constructor(D){this.route=D,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Os{constructor(D){this.snapshot=D,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xr{constructor(D){this.snapshot=D,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ui{constructor(D){this.snapshot=D,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(D){this.snapshot=D,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cs{constructor(D,y,O){this.routerEvent=D,this.position=y,this.anchor=O,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Ot=(()=>{class w{createUrlTree(y,O,z,he,Ce,_t){return xt(y||O.root,z,he,Ce,_t)}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac}),w})(),mn=(()=>{class w{}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:function(D){return Ot.\u0275fac(D)},providedIn:"root"}),w})();class sr{constructor(D){this._root=D}get root(){return this._root.value}
1parent(D){const y=this.pathFromRoot(D);return y.length>1?y[y.length-2]:null}children(D){const y=yr(D,this._root);return y?y.children.map(O=>O.value):[]}firstChild(D){const y=yr(D,this._root);return y&&y.children.length>0?y.children[0].value:null}siblings(D){const y=Er(D,this._root);return y.length<2?[]:y[y.length-2].children.map(z=>z.value).filter(z=>z!==D)}pathFromRoot(D){return Er(D,this._root).map(y=>y.value)}}function yr(w,D){if(w===D.value)return D;for(const y of D.children){const O=yr(w,y);if(O)return O}return null}function Er(w,D){if(w===D.value)return[D];for(const y of D.children){const O=Er(w,y);if(O.length)return O.unshift(D),O}return[]}class Cr{constructor(D,y){this.value=D,this.children=y}toString(){return`TreeNode(${this.value})`}}function Pi(w){const D={};return w&&w.children.forEach(y=>D[y.value.outlet]=y),D}class ks extends sr{constructor(D,y){super(D),this.snapshot=y,so(this,D)}toString(){return this.snapshot.toString()}}function ri(w,D){const y=function di(w,D){const Ce=new Qi([],{},{},"",{},$t,D,null,w.root,-1,{});return new ko("",new Cr(Ce,[]))}(w,D),O=new _e.X([new Dr("",{})]),z=new _e.X({}),he=new _e.X({}),Ce=new _e.X({}),_t=new _e.X(""),tn=new Di(O,z,Ce,_t,he,$t,D,y.root);return tn.snapshot=y.root,new ks(new Cr(tn,[]),y)}class Di{constructor(D,y,O,z,he,Ce,_t,tn){this.url=D,this.params=y,this.queryParams=O,this.fragment=z,this.data=he,this.outlet=Ce,this.component=_t,this.title=this.data?.pipe((0,He.U)(Ln=>Ln[cn]))??(0,V.of)(void 0),this._futureSnapshot=tn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,He.U)(D=>wn(D)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,He.U)(D=>wn(D)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hs(w,D="emptyOnly"){const y=w.pathFromRoot;let O=0;if("always"!==D)for(O=y.length-1;O>=1;){const z=y[O],he=y[O-1];if(z.routeConfig&&""===z.routeConfig.path)O--;else{if(he.component)break;O--}}return function _o(w){return w.reduce((D,y)=>({params:{...D.params,...y.params},data:{...D.data,...y.data}
1,resolve:{...y.data,...D.resolve,...y.routeConfig?.data,...y._resolvedData}}),{params:{},data:{},resolve:{}})}(y.slice(O))}class Qi{get title(){return this.data?.[cn]}constructor(D,y,O,z,he,Ce,_t,tn,Ln,Vn,Ur){this.url=D,this.params=y,this.queryParams=O,this.fragment=z,this.data=he,this.outlet=Ce,this.component=_t,this.routeConfig=tn,this._urlSegment=Ln,this._lastPathIndex=Vn,this._resolve=Ur}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(O=>O.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ko extends sr{constructor(D,y){super(y),this.url=D,so(this,y)}toString(){return qo(this._root)}}function so(w,D){D.value._routerState=w,D.children.forEach(y=>so(w,y))}function qo(w){const D=w.children.length>0?` { ${w.children.map(qo).join(", ")} } `:"";return`${w.value}${D}`}function oo(w){if(w.snapshot){const D=w.snapshot,y=w._futureSnapshot;w.snapshot=y,nn(D.queryParams,y.queryParams)||w.queryParams.next(y.queryParams),D.fragment!==y.fragment&&w.fragment.next(y.fragment),nn(D.params,y.params)||w.params.next(y.params),function qn(w,D){if(w.length!==D.length)return!1;for(let y=0;y<w.length;++y)if(!nn(w[y],D[y]))return!1;return!0}(D.url,y.url)||w.url.next(y.url),nn(D.data,y.data)||w.data.next(y.data)}else w.snapshot=w._futureSnapshot,w.data.next(w._futureSnapshot.data)}function Ia(w,D){const y=nn(w.params,D.params)&&function vr(w,D){return Gn(w,D)&&w.every((y,O)=>nn(y.parameters,D[O].parameters))}(w.url,D.url);return y&&!(!w.parent!=!D.parent)&&(!w.parent||Ia(w.parent,D.parent))}function gs(w,D,y){if(y&&w.shouldReuseRoute(D.value,y.value.snapshot)){const O=y.value;O._futureSnapshot=D.value;const z=function La(w,D,y){return D.children.map(O=>{for(const z of y.children)if(w.shouldReuseRoute(O.value,z.value.snapshot))return gs(w,O,z);return gs(w,O)})}(w,D,y);return new Cr(O,z)}{if(w.shouldAttach(D.value)){const he=w.retrieve(D.value);if(null!==he){const Ce=he.route;return Ce.value._futureSnapshot=D.value,Ce.children=D.children.map(_t=>gs(w,_t)),Ce}}const O=function ao(w){return new Di(new _e.X(w.url),new _e.X(w.params),new _e.X(w.queryParams),new _e.X(w.fragment),new _e.X(w.data),w.outlet,w.component,w)}(D.value),z=D.children.map(he=>gs(w,he));return new Cr(O,z)}}const rs="ngNavigationCancelingError";function lo(w,D){const{redirectTo:y,navigationBehaviorOptions:O}=kt(D)?{redirectTo:D,navigationBehaviorOptions:void 0}:D,z=Ho(!1,0,D);return z.url=y,z.navigationBehaviorOptions=O,z}function Ho(w,D,y){const O=new Error("NavigationCancelingError: "+(w||""));return O[rs]=!0,O.cancellationCode=D,y&&(O.url=y),O}function Fs(w){return zo(w)&&kt(w.url)}function zo(w){return w&&w[rs]}class Yo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new hs,this.attachRef=null}}let hs=(()=>{class w{constructor(){this.contexts=new Map}onChildOutletCreated(y,O){const z=this.getOrCreateContext(y);z.outlet=O,this.contexts.set(y,z)}onChildOutletDestroyed(y){const O=this.getContext(y);O&&(O.outlet=null,O.attachRef=null)}onOutletDeactivated(){const y=this.contexts;return this.contexts=new Map,y}onOutletReAttached(y){this.contexts=y}getOrCreateContext(y){let O=this.getContext(y);return O||(O=new Yo,this.contexts.set(y,O)),O}getContext(y){return this.contexts.get(y)||null}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const ms=!1;let Is=(()=>{class w{constructor(){this.activated=null,this._activatedRoute=null,this.name=$t,this.activateEvents=new c.EventEmitter,this.deactivateEvents=new c.EventEmitter,this.attachEvents=new c.EventEmitter,this.detachEvents=new c.EventEmitter,this.parentContexts=(0,c.inject)(hs),this.location=(0,c.inject)(c.ViewContainerRef),this.changeDetector=(0,c.inject)(c.ChangeDetectorRef),this.environmentInjector=(0,c.inject)(c.EnvironmentInjector)}ngOnChanges(y){if(y.name){const{firstChange:O,previousValue:z}=y.name;if(O)return;this.isTrackedInParentContexts(z)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(z)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(y){return this.parentContexts.getContext(y)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const y=this.parentContexts.getContext(this.name);y?.route&&(y.attachRef?this.attach(y.attachRef,y.route):this.activateWith(y.route,y.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.\u0275RuntimeError(4012,ms);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.\u0275RuntimeError(4012,ms);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.\u0275RuntimeError(4012,ms);this.location.detach();const y=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(y.instance),y}attach(y,O){this.activated=y,this._activatedRoute=O,this.location.insert(y.hostView),this.attachEvents.emit(y.instance)}deactivate(){if(this.activated){const y=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(y)}}activateWith(y,O){if(this.isActivated)throw new c.\u0275RuntimeError(4013,ms);this._activatedRoute=y;const z=this.location,Ce=y.snapshot.component,_t=this.parentContexts.getOrCreateContext(this.name).children,tn=new co(y,_t,z.injector);if(O&&function So(w){return!!w.resolveComponentFactory}
1(O)){const Ln=O.resolveComponentFactory(Ce);this.activated=z.createComponent(Ln,z.length,tn)}else this.activated=z.createComponent(Ce,{index:z.length,injector:tn,environmentInjector:O??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275dir=c.\u0275\u0275defineDirective({type:w,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.\u0275\u0275NgOnChangesFeature]}),w})();class co{constructor(D,y,O){this.route=D,this.childContexts=y,this.parent=O}get(D,y){return D===Di?this.route:D===hs?this.childContexts:this.parent.get(D,y)}}let Wi=(()=>{class w{}return w.\u0275fac=function(y){return new(y||w)},w.\u0275cmp=c.\u0275\u0275defineComponent({type:w,selectors:[["ng-component"]],standalone:!0,features:[c.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(y,O){1&y&&c.\u0275\u0275element(0,"router-outlet")},dependencies:[Is],encapsulation:2}),w})();function vo(w,D){return w.providers&&!w._injector&&(w._injector=(0,c.createEnvironmentInjector)(w.providers,D,`Route: ${w.path}`)),w._injector??D}function vi(w){const D=w.children&&w.children.map(vi),y=D?{...w,children:D}:{...w};return!y.component&&!y.loadComponent&&(D||y.loadChildren)&&y.outlet&&y.outlet!==$t&&(y.component=Wi),y}function Mi(w){return w.outlet||$t}function ys(w,D){const y=w.filter(O=>Mi(O)===D);return y.push(...w.filter(O=>Mi(O)!==D)),y}function xr(w){if(!w)return null;if(w.routeConfig?._injector)return w.routeConfig._injector;for(let D=w.parent;D;D=D.parent){const y=D.routeConfig;if(y?._loadedInjector)return y._loadedInjector;if(y?._injector)return y._injector}return null}class Eo{constructor(D,y,O,z){this.routeReuseStrategy=D,this.futureState=y,this.currState=O,this.forwardEvent=z}activate(D){const y=this.futureState._root,O=this.currState?this.currState._root:null;this.deactivateChildRoutes(y,O,D),oo(this.futureState.root),this.activateChildRoutes(y,O,D)}deactivateChildRoutes(D,y,O){const z=Pi(y);D.children.forEach(he=>{const Ce=he.value.outlet;this.deactivateRoutes(he,z[Ce],O),delete z[Ce]}),Mt(z,(he,Ce)=>{this.deactivateRouteAndItsChildren(he,O)})}deactivateRoutes(D,y,O){const z=D.value,he=y?y.value:null;if(z===he)if(z.component){const Ce=O.getContext(z.outlet);Ce&&this.deactivateChildRoutes(D,y,Ce.children)}else this.deactivateChildRoutes(D,y,O);else he&&this.deactivateRouteAndItsChildren(y,O)}deactivateRouteAndItsChildren(D,y){D.value.component&&this.routeReuseStrategy.shouldDetach(D.value.snapshot)?this.detachAndStoreRouteSubtree(D,y):this.deactivateRouteAndOutlet(D,y)}detachAndStoreRouteSubtree(D,y){const O=y.getContext(D.value.outlet),z=O&&D.value.component?O.children:y,he=Pi(D);for(const Ce of Object.keys(he))this.deactivateRouteAndItsChildren(he[Ce],z);if(O&&O.outlet){const Ce=O.outlet.detach(),_t=O.children.onOutletDeactivated();this.routeReuseStrategy.store(D.value.snapshot,{componentRef:Ce,route:D,contexts:_t})}}deactivateRouteAndOutlet(D,y){const O=y.getContext(D.value.outlet),z=O&&D.value.component?O.children:y,he=Pi(D);for(const Ce of Object.keys(he))this.deactivateRouteAndItsChildren(he[Ce],z);O&&(O.outlet&&(O.outlet.deactivate(),O.children.onOutletDeactivated()),O.attachRef=null,O.resolver=null,O.route=null)}activateChildRoutes(D,y,O){const z=Pi(y);D.children.forEach(he=>{this.activateRoutes(he,z[he.value.outlet],O),this.forwardEvent(new Yi(he.value.snapshot))}),D.children.length&&this.forwardEvent(new Xr(D.value.snapshot))}activateRoutes(D,y,O){const z=D.value,he=y?y.value:null;if(oo(z),z===he)if(z.component){const Ce=O.getOrCreateContext(z.outlet);this.activateChildRoutes(D,y,Ce.children)}else this.activateChildRoutes(D,y,O);else if(z.component){const Ce=O.getOrCreateContext(z.outlet);if(this.routeReuseStrategy.shouldAttach(z.snapshot)){const _t=this.routeReuseStrategy.retrieve(z.snapshot);this.routeReuseStrategy.store(z.snapshot,null),Ce.children.onOutletReAttached(_t.contexts),Ce.attachRef=_t.componentRef,Ce.route=_t.route.value,Ce.outlet&&Ce.outlet.attach(_t.componentRef,_t.route.value),oo(_t.route.value),this.activateChildRoutes(D,null,Ce.children)}else{const _t=xr(z.snapshot),tn=_t?.get(c.ComponentFactoryResolver)??null;Ce.attachRef=null,Ce.route=z,Ce.resolver=tn,Ce.injector=_t,Ce.outlet&&Ce.outlet.activateWith(z,Ce.injector),this.activateChildRoutes(D,null,Ce.children)}}else this.activateChildRoutes(D,null,O)}}class Vi{constructor(D){this.path=D,this.route=this.path[this.path.length-1]}}
1class Ci{constructor(D,y){this.component=D,this.route=y}}function uo(w,D,y){const O=w._root;return Gi(O,D?D._root:null,y,[O.value])}function Ws(w,D){const y=Symbol(),O=D.get(w,y);return O===y?"function"!=typeof w||(0,c.\u0275isInjectable)(w)?D.get(w):w:O}function Gi(w,D,y,O,z={canDeactivateChecks:[],canActivateChecks:[]}){const he=Pi(D);return w.children.forEach(Ce=>{(function Ls(w,D,y,O,z={canDeactivateChecks:[],canActivateChecks:[]}){const he=w.value,Ce=D?D.value:null,_t=y?y.getContext(w.value.outlet):null;if(Ce&&he.routeConfig===Ce.routeConfig){const tn=function Ji(w,D,y){if("function"==typeof y)return y(w,D);switch(y){case"pathParamsChange":return!Gn(w.url,D.url);case"pathParamsOrQueryParamsChange":return!Gn(w.url,D.url)||!nn(w.queryParams,D.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ia(w,D)||!nn(w.queryParams,D.queryParams);default:return!Ia(w,D)}}(Ce,he,he.routeConfig.runGuardsAndResolvers);tn?z.canActivateChecks.push(new Vi(O)):(he.data=Ce.data,he._resolvedData=Ce._resolvedData),Gi(w,D,he.component?_t?_t.children:null:y,O,z),tn&&_t&&_t.outlet&&_t.outlet.isActivated&&z.canDeactivateChecks.push(new Ci(_t.outlet.component,Ce))}else Ce&&mr(D,_t,z),z.canActivateChecks.push(new Vi(O)),Gi(w,null,he.component?_t?_t.children:null:y,O,z)})(Ce,he[Ce.value.outlet],y,O.concat([Ce.value]),z),delete he[Ce.value.outlet]}),Mt(he,(Ce,_t)=>mr(Ce,y.getContext(_t),z)),z}function mr(w,D,y){const O=Pi(w),z=w.value;Mt(O,(he,Ce)=>{mr(he,z.component?D?D.children.getContext(Ce):null:D,y)}),y.canDeactivateChecks.push(new Ci(z.component&&D&&D.outlet&&D.outlet.isActivated?D.outlet.component:null,z))}function Ks(w){return"function"==typeof w}function x(w){return w instanceof pe.K||"EmptyError"===w?.name}const P=Symbol("INITIAL_VALUE");function le(){return(0,Ve.w)(w=>(0,me.a)(w.map(D=>D.pipe((0,ve.q)(1),(0,ze.O)(P)))).pipe((0,He.U)(D=>{for(const y of D)if(!0!==y){if(y===P)return P;if(!1===y||y instanceof Mn)return y}return!0}),(0,rt.h)(D=>D!==P),(0,ve.q)(1)))}function Wr(w){return(0,Re.z)((0,Wt.b)(D=>{if(kt(D))throw lo(0,D)}),(0,He.U)(D=>!0===D))}const ss={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ho(w,D,y,O,z){const he=Ui(w,D,y);return he.matched?function is(w,D,y,O){const z=D.canMatch;if(!z||0===z.length)return(0,V.of)(!0);const he=z.map(Ce=>{const _t=Ws(Ce,w);return Nt(function Qt(w){return w&&Ks(w.canMatch)}(_t)?_t.canMatch(D,y):w.runInContext(()=>_t(D,y)))});return(0,V.of)(he).pipe(le(),Wr())}(O=vo(D,O),D,y).pipe((0,He.U)(Ce=>!0===Ce?he:{...ss})):(0,V.of)(he)}function Ui(w,D,y){if(""===D.path)return"full"===D.pathMatch&&(w.hasChildren()||y.length>0)?{...ss}:{matched:!0,consumedSegments:[],remainingSegments:y,parameters:{},positionalParamSegments:{}};const z=(D.matcher||Wn)(y,w,D);if(!z)return{...ss};const he={};Mt(z.posParams,(_t,tn)=>{he[tn]=_t.path});const Ce=z.consumed.length>0?{...he,...z.consumed[z.consumed.length-1].parameters}:he;return{matched:!0,consumedSegments:z.consumed,remainingSegments:y.slice(z.consumed.length),parameters:Ce,positionalParamSegments:z.posParams??{}}}function Fr(w,D,y,O){if(y.length>0&&function Ta(w,D,y){return y.some(O=>as(w,D,O)&&Mi(O)!==$t)}(w,y,O)){const he=new bn(D,function Da(w,D,y,O){const z={};z[$t]=O,O._sourceSegment=w,O._segmentIndexShift=D.length;for(const he of y)if(""===he.path&&Mi(he)!==$t){const Ce=new bn([],{});Ce._sourceSegment=w,Ce._segmentIndexShift=D.length,z[Mi(he)]=Ce}return z}(w,D,O,new bn(y,w.children)));return he._sourceSegment=w,he._segmentIndexShift=D.length,{segmentGroup:he,slicedSegments:[]}}if(0===y.length&&function os(w,D,y){return y.some(O=>as(w,D,O))}(w,y,O)){const he=new bn(w.segments,function da(w,D,y,O,z){const he={};for(const Ce of O)if(as(w,y,Ce)&&!z[Mi(Ce)]){const _t=new bn([],{});_t._sourceSegment=w,_t._segmentIndexShift=D.length,he[Mi(Ce)]=_t}return{...z,...he}}(w,D,y,O,w.children));return he._sourceSegment=w,he._segmentIndexShift=D.length,{segmentGroup:he,slicedSegments:y}}const z=new bn(w.segments,w.children);return z._sourceSegment=w,z._segmentIndexShift=D.length,{segmentGroup:z,slicedSegments:y}}function as(w,D,y){return(!(w.hasChildren()||D.length>0)||"full"!==y.pathMatch)&&""===y.path}function ha(w,D,y,O){return!!(Mi(w)===O||O!==$t&&as(D,y,w))&&("**"===w.path||Ui(D,w,y).matched)}function oi(w,D,y){return 0===D.length&&!w.children[y]}const Sa=!1;class Vs{constructor(D){this.segmentGroup=D||null}}class Ts{constructor(D){this.urlTree=D}}function Mo(w){return(0,q._)(new Vs(w))}function Wo(w){return(0,q._)(new Ts(w))}class fo{constructor(D,y,O,z,he){this.injector=D,this.configLoader=y,this.urlSerializer
1=O,this.urlTree=z,this.config=he,this.allowRedirects=!0}apply(){const D=Fr(this.urlTree.root,[],[],this.config).segmentGroup,y=new bn(D.segments,D.children);return this.expandSegmentGroup(this.injector,this.config,y,$t).pipe((0,He.U)(he=>this.createUrlTree(Ie(he),this.urlTree.queryParams,this.urlTree.fragment))).pipe(vt(he=>{if(he instanceof Ts)return this.allowRedirects=!1,this.match(he.urlTree);throw he instanceof Vs?this.noMatchError(he):he}))}match(D){return this.expandSegmentGroup(this.injector,this.config,D.root,$t).pipe((0,He.U)(z=>this.createUrlTree(Ie(z),D.queryParams,D.fragment))).pipe(vt(z=>{throw z instanceof Vs?this.noMatchError(z):z}))}noMatchError(D){return new c.\u0275RuntimeError(4002,Sa)}createUrlTree(D,y,O){const z=$(D);return new Mn(z,y,O)}expandSegmentGroup(D,y,O,z){return 0===O.segments.length&&O.hasChildren()?this.expandChildren(D,y,O).pipe((0,He.U)(he=>new bn([],he))):this.expandSegment(D,O,y,O.segments,z,!0)}expandChildren(D,y,O){const z=[];for(const he of Object.keys(O.children))"primary"===he?z.unshift(he):z.push(he);return(0,m.D)(z).pipe((0,Ue.b)(he=>{const Ce=O.children[he],_t=ys(y,he);return this.expandSegmentGroup(D,_t,Ce,he).pipe((0,He.U)(tn=>({segment:tn,outlet:he})))}),(0,jt.R)((he,Ce)=>(he[Ce.outlet]=Ce.segment,he),{}),ae())}expandSegment(D,y,O,z,he,Ce){return(0,m.D)(O).pipe((0,Ue.b)(_t=>this.expandSegmentAgainstRoute(D,y,O,_t,z,he,Ce).pipe(vt(Ln=>{if(Ln instanceof Vs)return(0,V.of)(null);throw Ln}))),(0,At.P)(_t=>!!_t),vt((_t,tn)=>{if(x(_t))return oi(y,z,he)?(0,V.of)(new bn([],{})):Mo(y);throw _t}))}expandSegmentAgainstRoute(D,y,O,z,he,Ce,_t){return ha(z,y,he,Ce)?void 0===z.redirectTo?this.matchSegmentAgainstRoute(D,y,z,he,Ce):_t&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(D,y,O,z,he,Ce):Mo(y):Mo(y)}expandSegmentAgainstRouteUsingRedirect(D,y,O,z,he,Ce){return"**"===z.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(D,O,z,Ce):this.expandRegularSegmentAgainstRouteUsingRedirect(D,y,O,z,he,Ce)}expandWildCardWithParamsAgainstRouteUsingRedirect(D,y,O,z){const he=this.applyRedirectCommands([],O.redirectTo,{});return O.redirectTo.startsWith("/")?Wo(he):this.lineralizeSegments(O,he).pipe((0,nt.z)(Ce=>{const _t=new bn(Ce,{});return this.expandSegment(D,_t,y,Ce,z,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(D,y,O,z,he,Ce){const{matched:_t,consumedSegments:tn,remainingSegments:Ln,positionalParamSegments:Vn}=Ui(y,z,he);if(!_t)return Mo(y);const Ur=this.applyRedirectCommands(tn,z.redirectTo,Vn);return z.redirectTo.startsWith("/")?Wo(Ur):this.lineralizeSegments(z,Ur).pipe((0,nt.z)(Zi=>this.expandSegment(D,y,O,Zi.concat(Ln),Ce,!1)))}matchSegmentAgainstRoute(D,y,O,z,he){return"**"===O.path?(D=vo(O,D),O.loadChildren?(O._loadedRoutes?(0,V.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):this.configLoader.loadChildren(D,O)).pipe((0,He.U)(_t=>(O._loadedRoutes=_t.routes,O._loadedInjector=_t.injector,new bn(z,{})))):(0,V.of)(new bn(z,{}))):ho(y,O,z,D).pipe((0,Ve.w)(({matched:Ce,consumedSegments:_t,remainingSegments:tn})=>Ce?this.getChildConfig(D=O._injector??D,O,z).pipe((0,nt.z)(Vn=>{const Ur=Vn.injector??D,Zi=Vn.routes,{segmentGroup:qs,slicedSegments:Do}=Fr(y,_t,tn,Zi),Lo=new bn(qs.segments,qs.children);if(0===Do.length&&Lo.hasChildren())return this.expandChildren(Ur,Zi,Lo).pipe((0,He.U)(ei=>new bn(_t,ei)));if(0===Zi.length&&0===Do.length)return(0,V.of)(new bn(_t,{}));const Zn=Mi(O)===he;return this.expandSegment(Ur,Lo,Zi,Do,Zn?$t:he,!0).pipe((0,He.U)(br=>new bn(_t.concat(br.segments),br.children)))})):Mo(y)))}getChildConfig(D,y,O){return y.children?(0,V.of)({routes:y.children,injector:D}):y.loadChildren?void 0!==y._loadedRoutes?(0,V.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):function hi(w,D,y,O){const z=D.canLoad;if(void 0===z||0===z.length)return(0,V.of)(!0);const he=z.map(Ce=>{const _t=Ws(Ce,w);return Nt(function W(w){return w&&Ks(w.canLoad)}(_t)?_t.canLoad(D,y):w.runInContext(()=>_t(D,y)))});return(0,V.of)(he).pipe(le(),Wr())}(D,y,O).pipe((0,nt.z)(z=>z?this.configLoader.loadChildren(D,y).pipe((0,Wt.b)(he=>{y._loadedRoutes=he.routes,y._loadedInjector=he.injector})):function Va(w){return(0,q._)(Ho(Sa,3))}())):(0,V.of)({routes:[],injector:D})}lineralizeSegments(D,y){let O=[],z=y.root;for(;;){if(O=O.concat(z.segments),0===z.numberOfChildren)return(0,V.of)(O);if(z.numberOfChildren>1||!z.children[$t])return D.redirectTo,(0,q._)(new c.\u0275RuntimeError(4e3,S
1a));z=z.children[$t]}}applyRedirectCommands(D,y,O){return this.applyRedirectCreateUrlTree(y,this.urlSerializer.parse(y),D,O)}applyRedirectCreateUrlTree(D,y,O,z){const he=this.createSegmentGroup(D,y.root,O,z);return new Mn(he,this.createQueryParams(y.queryParams,this.urlTree.queryParams),y.fragment)}createQueryParams(D,y){const O={};return Mt(D,(z,he)=>{if("string"==typeof z&&z.startsWith(":")){const _t=z.substring(1);O[he]=y[_t]}else O[he]=z}),O}createSegmentGroup(D,y,O,z){const he=this.createSegments(D,y.segments,O,z);let Ce={};return Mt(y.children,(_t,tn)=>{Ce[tn]=this.createSegmentGroup(D,_t,O,z)}),new bn(he,Ce)}createSegments(D,y,O,z){return y.map(he=>he.path.startsWith(":")?this.findPosParam(D,he,z):this.findOrReturn(he,O))}findPosParam(D,y,O){const z=O[y.path.substring(1)];if(!z)throw new c.\u0275RuntimeError(4001,Sa);return z}findOrReturn(D,y){let O=0;for(const z of y){if(z.path===D.path)return y.splice(O),z;O++}return D}}class Us{}class fa{constructor(D,y,O,z,he,Ce,_t){this.injector=D,this.rootComponentType=y,this.config=O,this.urlTree=z,this.url=he,this.paramsInheritanceStrategy=Ce,this.urlSerializer=_t}recognize(){const D=Fr(this.urlTree.root,[],[],this.config.filter(y=>void 0===y.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,D,$t).pipe((0,He.U)(y=>{if(null===y)return null;const O=new Qi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$t,this.rootComponentType,null,this.urlTree.root,-1,{}),z=new Cr(O,y),he=new ko(this.url,z);return this.inheritParamsAndData(he._root),he}))}inheritParamsAndData(D){const y=D.value,O=Hs(y,this.paramsInheritanceStrategy);y.params=Object.freeze(O.params),y.data=Object.freeze(O.data),D.children.forEach(z=>this.inheritParamsAndData(z))}processSegmentGroup(D,y,O,z){return 0===O.segments.length&&O.hasChildren()?this.processChildren(D,y,O):this.processSegment(D,y,O,O.segments,z)}processChildren(D,y,O){return(0,m.D)(Object.keys(O.children)).pipe((0,Ue.b)(z=>{const he=O.children[z],Ce=ys(y,z);return this.processSegmentGroup(D,Ce,he,z)}),(0,jt.R)((z,he)=>z&&he?(z.push(...he),z):null),(0,Ne.o)(z=>null!==z),(0,St.d)(null),ae(),(0,He.U)(z=>{if(null===z)return null;const he=wl(z);return function wo(w){w.sort((D,y)=>D.value.outlet===$t?-1:y.value.outlet===$t?1:D.value.outlet.localeCompare(y.value.outlet))}(he),he}))}processSegment(D,y,O,z,he){return(0,m.D)(y).pipe((0,Ue.b)(Ce=>this.processSegmentAgainstRoute(Ce._injector??D,Ce,O,z,he)),(0,At.P)(Ce=>!!Ce),vt(Ce=>{if(x(Ce))return oi(O,z,he)?(0,V.of)([]):(0,V.of)(null);throw Ce}))}processSegmentAgainstRoute(D,y,O,z,he){if(y.redirectTo||!ha(y,O,z,he))return(0,V.of)(null);let Ce;if("**"===y.path){const _t=z.length>0?_n(z).parameters:{},tn=Ba(O)+z.length,Ln=new Qi(z,_t,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ne(y),Mi(y),y.component??y._loadedComponent??null,y,ja(O),tn,U(y));Ce=(0,V.of)({snapshot:Ln,consumedSegments:[],remainingSegments:[]})}else Ce=ho(O,y,z,D).pipe((0,He.U)(({matched:_t,consumedSegments:tn,remainingSegments:Ln,parameters:Vn})=>{if(!_t)return null;const Ur=Ba(O)+tn.length;return{snapshot:new Qi(tn,Vn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ne(y),Mi(y),y.component??y._loadedComponent??null,y,ja(O),Ur,U(y)),consumedSegments:tn,remainingSegments:Ln}}));return Ce.pipe((0,Ve.w)(_t=>{if(null===_t)return(0,V.of)(null);const{snapshot:tn,consumedSegments:Ln,remainingSegments:Vn}=_t;D=y._injector??D;const Ur=y._loadedInjector??D,Zi=function Jo(w){return w.children?w.children:w.loadChildren?w._loadedRoutes:[]}(y),{segmentGroup:qs,slicedSegments:Do}=Fr(O,Ln,Vn,Zi.filter(Zn=>void 0===Zn.redirectTo));if(0===Do.length&&qs.hasChildren())return this.processChildren(Ur,Zi,qs).pipe((0,He.U)(Zn=>null===Zn?null:[new Cr(tn,Zn)]));if(0===Zi.length&&0===Do.length)return(0,V.of)([new Cr(tn,[])]);const Lo=Mi(y)===he;return this.processSegment(Ur,Zi,qs,Do,Lo?$t:he).pipe((0,He.U)(Zn=>null===Zn?null:[new Cr(tn,Zn)]))}))}}function Ua(w){const D=w.value.routeConfig;return D&&""===D.path&&void 0===D.redirectTo}function wl(w){const D=[],y=new Set;for(const O of w){if(!Ua(O)){D.push(O);continue}const z=D.find(he=>O.value.routeConfig===he.value.routeConfig);void 0!==z?(z.children.push(...O.children),y.add(z)):D.push(O)}for(const O of y){const z=wl(O.children);D.push(new Cr(O.value,z))}return D.filter(O=>!y.has(O))}function ja(w){let D=w;for(;D._sourceSegment;)D=D._sourceSegment;return D}function Ba(w){let D=w,y=D._segmentIndexShift??0;for(;D._sourceSegment;)D=D._sourceSegment,y+=D._segmentIndexShift??0;return y-1}function ne(w){return w.data||{}}function U(w){return w.resolve||{}}function $r(w){return"string"==typeof w.title||null===w.title}function Lr(w){return(0,Ve.w)(D=>{const y=w(D);return y?(0,m.D)(y).pipe((0,He.U)(()=>D)):(0,V.of)(D)})}const on=new c.InjectionToken("ROUTES");let or=(()=>{class w{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.inject)(c.Compiler)}loadComponent(y){if(this.componentLoaders.get(y))return this.componentLoaders.get(y);if(y._loadedComponent)return(0,V.of)(y._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(y);const O=Nt(y.loadComponent()).pipe((0,He.U)(Gs),(0,Wt.b)(he=>{this.onLoadEndListener&&this.onLoadEndListener(y),y._loadedComponent=he}),(0,qe.x)(()=>{this.componentLoaders.delete(y)})),z=new Me(O,()=>new Pe.x).pipe(wt());return this.componentLoaders.set(y,z),z}loadChildren(y,O){if(this.childrenLoaders.get(O))return this.childrenLoaders.get(O);if(O._loadedRoutes)return(0,V.of)({routes:O._loadedRoutes,injector:O._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(O);const he=this.loadModuleFactoryOrRoutes(O.loadChildren).pipe((0,He.U)(_t=>{this.onLoadEndListener&&this.onLoadEndListener(O);let tn,Ln,Vn=!1;Array.isArray(_t)?Ln=_t:(tn=_t.create(y).injector,Ln=rn(tn.get(on,[],c.InjectFlags.Self|c.InjectFlags.Optional)));return{routes:Ln.map(vi),injector:tn}}),(0,qe.x)(()=>{this.childrenLoaders.delete(O)})),Ce=new Me(he,()=>new Pe.x).pipe(wt());return this.childrenLoaders.set(O,Ce),Ce}loadModuleFactoryOrRoutes(y){return Nt(y()).pipe((0,He.U)(Gs),(0,nt.z)(O=>O instanceof c.NgModuleFactory||Array.isArray(O)?(0,V.of)(O):(0,m.D)(this.compiler.compileModuleAsync(O))))}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function Gs(w){return function gi(w){return w&&"object"==typeof w&&"default"in w}(w)?w.default:w}let Xn=(()=>{class w{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Pe.x,this.configLoader=(0,c.inject)(or),this.environmentInjector=(0,c.inject)(c.EnvironmentInjector),this.urlSerializer
1=(0,c.inject)(en),this.rootContexts=(0,c.inject)(hs),this.navigationId=0,this.afterPreactivation=()=>(0,V.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=z=>this.events.next(new $i(z)),this.configLoader.onLoadStartListener=z=>this.events.next(new Bi(z))}complete(){this.transitions?.complete()}handleNavigationRequest(y){const O=++this.navigationId;this.transitions?.next({...this.transitions.value,...y,id:O})}setupNavigations(y){return this.transitions=new _e.X({id:0,targetPageId:0,currentUrlTree:y.currentUrlTree,currentRawUrl:y.currentUrlTree,extractedUrl:y.urlHandlingStrategy.extract(y.currentUrlTree),urlAfterRedirects:y.urlHandlingStrategy.extract(y.currentUrlTree),rawUrl:y.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zr,restoredState:null,currentSnapshot:y.routerState.snapshot,targetSnapshot:null,currentRouterState:y.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,rt.h)(O=>0!==O.id),(0,He.U)(O=>({...O,extractedUrl:y.urlHandlingStrategy.extract(O.rawUrl)})),(0,Ve.w)(O=>{let z=!1,he=!1;return(0,V.of)(O).pipe((0,Wt.b)(Ce=>{this.currentNavigation={id:Ce.id,initialUrl:Ce.rawUrl,extractedUrl:Ce.extractedUrl,trigger:Ce.source,extras:Ce.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ve.w)(Ce=>{const _t=y.browserUrlTree.toString(),tn=!y.navigated||Ce.extractedUrl.toString()!==_t||_t!==y.currentUrlTree.toString();if(!tn&&"reload"!==(Ce.extras.onSameUrlNavigation??y.onSameUrlNavigation)){const Vn="";return this.events.next(new ir(Ce.id,y.serializeUrl(O.rawUrl),Vn,0)),y.rawUrlTree=Ce.rawUrl,Ce.resolve(null),be.E}if(y.urlHandlingStrategy.shouldProcessUrl(Ce.rawUrl))return vs(Ce.source)&&(y.browserUrlTree=Ce.extractedUrl),(0,V.of)(Ce).pipe((0,Ve.w)(Vn=>{const Ur=this.transitions?.getValue();return this.events.next(new gr(Vn.id,this.urlSerializer.serialize(Vn.extractedUrl),Vn.source,Vn.restoredState)),Ur!==this.transitions?.getValue()?be.E:Promise.resolve(Vn)}),function Ss(w,D,y,O){return(0,Ve.w)(z=>function Xo(w,D,y,O,z){return new fo(w,D,y,O,z).apply()}(w,D,y,z.extractedUrl,O).pipe((0,He.U)(he=>({...z,urlAfterRedirects:he}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,y.config),(0,Wt.b)(Vn=>{this.currentNavigation={...this.currentNavigation,finalUrl:Vn.urlAfterRedirects},O.urlAfterRedirects=Vn.urlAfterRedirects}),function ye(w,D,y,O,z){return(0,nt.z)(he=>function No(w,D,y,O,z,he,Ce="emptyOnly"){return new fa(w,D,y,O,z,Ce,he).recognize().pipe((0,Ve.w)(_t=>null===_t?function Ti(w){return new de.y(D=>D.error(w))}(new Us):(0,V.of)(_t)))}(w,D,y,he.urlAfterRedirects,O.serialize(he.urlAfterRedirects),O,z).pipe((0,He.U)(Ce=>({...he,targetSnapshot:Ce}))))}(this.environmentInjector,this.rootComponentType,y.config,this.urlSerializer,y.paramsInheritanceStrategy),(0,Wt.b)(Vn=>{if(O.targetSnapshot=Vn.targetSnapshot,"eager"===y.urlUpdateStrategy){if(!Vn.extras.skipLocationChange){const Zi=y.urlHandlingStrategy.merge(Vn.urlAfterRedirects,Vn.rawUrl);y.setBrowserUrl(Zi,Vn)}y.browserUrlTree=Vn.urlAfterRedirects}const Ur=new ws(Vn.id,this.urlSerializer.serialize(Vn.extractedUrl),this.urlSerializer.serialize(Vn.urlAfterRedirects),Vn.targetSnapshot);this.events.next(Ur)}));if(tn&&y.urlHandlingStrategy.shouldProcessUrl(y.rawUrlTree)){const{id:Vn,extractedUrl:Ur,source:Zi,restoredState:qs,extras:Do}=Ce,Lo=new gr(Vn,this.urlSerializer.serialize(Ur),Zi,qs);this.events.next(Lo);const Zn=ri(Ur,this.rootComponentType).snapshot;return O={...Ce,targetSnapshot:Zn,urlAfterRedirects:Ur,extras:{...Do,skipLocationChange:!1,replaceUrl:!1}},(0,V.of)(O)}{const Vn="";return this.events.next(new ir(Ce.id,y.serializeUrl(O.extractedUrl),Vn,1)),y.rawUrlTree=Ce.rawUrl,Ce.resolve(null),be.E}}),(0,Wt.b)(Ce=>{const _t=new ds(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),this.urlSerializer.serialize(Ce.urlAfterRedirects),Ce.targetSnapshot);this.events.next(_t)}),(0,He.U)(Ce=>O={...Ce,guards:uo(Ce.targetSnapshot,Ce.currentSnapshot,this.rootContexts)}),function Tt(w,D){return(0,nt.z)(y=>{const{targetSnapshot:O,currentSnapshot:z,guards:{canActivateChecks:he,canDeactivateChecks:Ce}}=y;return 0===Ce.length&&0===he.length?(0,V.of)({...y,guardsResult:!0}):function In(w,D,y,O){return(0,m.D)(w).pipe((0,nt.z)(z=>function Ri(w,D,y,O,z){const he=D&&D.routeConfig?D.routeConfig.canDeactivate:null;if(!he||0===he.length)return(0,V.of)(!0);const Ce=he.map(_t=>{const tn=xr(D)??z,Ln=Ws(_t,tn);return Nt(function gt(w){return w&&Ks(w.canDeactivate)}(Ln)?Ln.canDeactivate(w,D,y,O):tn.runInContext(()=>Ln(w,D,y,O))).pipe((0,At.P)())});return(0,V.of)(Ce).pipe(le())}(z.component,z.route,y,D,O)),(0,At.P)(z=>!0!==z,!0))}(Ce,O,z,w).pipe((0,nt.z)(_t=>_t&&function Y(w){return"boolean"==typeof w}(_t)?function _r(w,D,y,O){return(0,m.D)(D).pipe((0,Ue.b)(z=>(0,Oe.z)(function ki(w,D){return null!==w&&D&&D(new Os(w)),(0,V.of)(!0)}(z.route.parent,O),function Sr(w,D){return null!==w&&D&&D(new ui(w)),(0,V.of)(!0)}(z.route,O),function _s(w,D,y){const O=D[D.length-1],he=D.slice(0,D.length-1).reverse().map(Ce=>
1function zs(w){const D=w.routeConfig?w.routeConfig.canActivateChild:null;return D&&0!==D.length?{node:w,guards:D}:null}(Ce)).filter(Ce=>null!==Ce).map(Ce=>(0,ie.P)(()=>{const _t=Ce.guards.map(tn=>{const Ln=xr(Ce.node)??y,Vn=Ws(tn,Ln);return Nt(function Je(w){return w&&Ks(w.canActivateChild)}(Vn)?Vn.canActivateChild(O,w):Ln.runInContext(()=>Vn(O,w))).pipe((0,At.P)())});return(0,V.of)(_t).pipe(le())}));return(0,V.of)(he).pipe(le())}(w,z.path,y),function Jr(w,D,y){const O=D.routeConfig?D.routeConfig.canActivate:null;if(!O||0===O.length)return(0,V.of)(!0);const z=O.map(he=>(0,ie.P)(()=>{const Ce=xr(D)??y,_t=Ws(he,Ce);return Nt(function Ae(w){return w&&Ks(w.canActivate)}(_t)?_t.canActivate(D,w):Ce.runInContext(()=>_t(D,w))).pipe((0,At.P)())}));return(0,V.of)(z).pipe(le())}(w,z.route,y))),(0,At.P)(z=>!0!==z,!0))}(O,he,w,D):(0,V.of)(_t)),(0,He.U)(_t=>({...y,guardsResult:_t})))})}(this.environmentInjector,Ce=>this.events.next(Ce)),(0,Wt.b)(Ce=>{if(O.guardsResult=Ce.guardsResult,kt(Ce.guardsResult))throw lo(0,Ce.guardsResult);const _t=new wi(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),this.urlSerializer.serialize(Ce.urlAfterRedirects),Ce.targetSnapshot,!!Ce.guardsResult);this.events.next(_t)}),(0,rt.h)(Ce=>!!Ce.guardsResult||(y.restoreHistory(Ce),this.cancelNavigationTransition(Ce,"",3),!1)),Lr(Ce=>{if(Ce.guards.canActivateChecks.length)return(0,V.of)(Ce).pipe((0,Wt.b)(_t=>{const tn=new ni(_t.id,this.urlSerializer.serialize(_t.extractedUrl),this.urlSerializer.serialize(_t.urlAfterRedirects),_t.targetSnapshot);this.events.next(tn)}),(0,Ve.w)(_t=>{let tn=!1;return(0,V.of)(_t).pipe(function Ye(w,D){return(0,nt.z)(y=>{const{targetSnapshot:O,guards:{canActivateChecks:z}}=y;if(!z.length)return(0,V.of)(y);let he=0;return(0,m.D)(z).pipe((0,Ue.b)(Ce=>function Kt(w,D,y,O){const z=w.routeConfig,he=w._resolve;return void 0!==z?.title&&!$r(z)&&(he[cn]=z.title),function fn(w,D,y,O){const z=function Un(w){return[...Object.keys(w),...Object.getOwnPropertySymbols(w)]}(w);if(0===z.length)return(0,V.of)({});const he={};return(0,m.D)(z).pipe((0,nt.z)(Ce=>function pi(w,D,y,O){const z=xr(D)??O,he=Ws(w,z);return Nt(he.resolve?he.resolve(D,y):z.runInContext(()=>he(D,y)))}(w[Ce],D,y,O).pipe((0,At.P)(),(0,Wt.b)(_t=>{he[Ce]=_t}))),On(1),(0,Xe.h)(he),vt(Ce=>x(Ce)?be.E:(0,q._)(Ce)))}(he,w,D,O).pipe((0,He.U)(Ce=>(w._resolvedData=Ce,w.data=Hs(w,y).resolve,z&&$r(z)&&(w.data[cn]=z.title),null)))}(Ce.route,O,w,D)),(0,Wt.b)(()=>he++),On(1),(0,nt.z)(Ce=>he===z.length?(0,V.of)(y):be.E))})}(y.paramsInheritanceStrategy,this.environmentInjector),(0,Wt.b)({next:()=>tn=!0,complete:()=>{tn||(y.restoreHistory(_t),this.cancelNavigationTransition(_t,"",2))}}))}),(0,Wt.b)(_t=>{const tn=new io(_t.id,this.urlSerializer.serialize(_t.extractedUrl),this.urlSerializer.serialize(_t.urlAfterRedirects),_t.targetSnapshot);this.events.next(tn)}))}),Lr(Ce=>{const _t=tn=>{const Ln=[];
1tn.routeConfig?.loadComponent&&!tn.routeConfig._loadedComponent&&Ln.push(this.configLoader.loadComponent(tn.routeConfig).pipe((0,Wt.b)(Vn=>{tn.component=Vn}),(0,He.U)(()=>{})));for(const Vn of tn.children)Ln.push(..._t(Vn));return Ln};return(0,me.a)(_t(Ce.targetSnapshot.root)).pipe((0,St.d)(),(0,ve.q)(1))}),Lr(()=>this.afterPreactivation()),(0,He.U)(Ce=>{const _t=function Ns(w,D,y){const O=gs(w,D._root,y?y._root:void 0);return new ks(O,D)}(y.routeReuseStrategy,Ce.targetSnapshot,Ce.currentRouterState);return O={...Ce,targetRouterState:_t}}),(0,Wt.b)(Ce=>{y.currentUrlTree=Ce.urlAfterRedirects,y.rawUrlTree=y.urlHandlingStrategy.merge(Ce.urlAfterRedirects,Ce.rawUrl),y.routerState=Ce.targetRouterState,"deferred"===y.urlUpdateStrategy&&(Ce.extras.skipLocationChange||y.setBrowserUrl(y.rawUrlTree,Ce),y.browserUrlTree=Ce.urlAfterRedirects)}),((w,D,y)=>(0,He.U)(O=>(new Eo(D,O.targetRouterState,O.currentRouterState,y).activate(w),O)))(this.rootContexts,y.routeReuseStrategy,Ce=>this.events.next(Ce)),(0,ve.q)(1),(0,Wt.b)({next:Ce=>{z=!0,this.lastSuccessfulNavigation=this.currentNavigation,y.navigated=!0,this.events.next(new Ai(Ce.id,this.urlSerializer.serialize(Ce.extractedUrl),this.urlSerializer.serialize(y.currentUrlTree))),y.titleStrategy?.updateTitle(Ce.targetRouterState.snapshot),Ce.resolve(!0)},complete:()=>{z=!0}}),(0,qe.x)(()=>{z||he||this.cancelNavigationTransition(O,"",1),this.currentNavigation?.id===O.id&&(this.currentNavigation=null)}),vt(Ce=>{if(he=!0,zo(Ce)){Fs(Ce)||(y.navigated=!0,y.restoreHistory(O,!0));const _t=new Fi(O.id,this.urlSerializer.serialize(O.extractedUrl),Ce.message,Ce.cancellationCode);if(this.events.next(_t),Fs(Ce)){const tn=y.urlHandlingStrategy.merge(Ce.url,y.rawUrlTree),Ln={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===y.urlUpdateStrategy||vs(O.source)};y.scheduleNavigation(tn,Zr,null,Ln,{resolve:O.resolve,reject:O.reject,promise:O.promise})}else O.resolve(!1)}else{y.restoreHistory(O,!0);const _t=new ns(O.id,this.urlSerializer.serialize(O.extractedUrl),Ce,O.targetSnapshot??void 0);this.events.next(_t);try{O.resolve(y.errorHandler(Ce))}catch(tn){O.reject(tn)}}return be.E}))}))}cancelNavigationTransition(y,O,z){const he=new Fi(y.id,this.urlSerializer.serialize(y.extractedUrl),O,z);this.events.next(he),y.resolve(!1)}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function vs(w){return w!==Zr}let Rn=(()=>{class w{buildTitle(y){let O,z=y.root;for(;void 0!==z;)O=this.getResolvedTitleForRoute(z)??O,z=z.children.find(he=>he.outlet===$t);return O}getResolvedTitleForRoute(y){return y.data[cn]}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:function(){return(0,c.inject)(Ht)},providedIn:"root"}),w})(),Ht=(()=>{class w extends Rn{constructor(y){super(),this.title=y}updateTitle(y){const O=this.buildTitle(y);void 0!==O&&this.title.setTitle(O)}}
1return w.\u0275fac=function(y){return new(y||w)(c.\u0275\u0275inject(ft.Title))},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),gn=(()=>{class w{}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:function(){return(0,c.inject)(Qa)},providedIn:"root"}),w})();class es{shouldDetach(D){return!1}store(D,y){}shouldAttach(D){return!1}retrieve(D){return null}shouldReuseRoute(D,y){return D.routeConfig===y.routeConfig}}let Qa=(()=>{class w extends es{}return w.\u0275fac=function(){let D;return function(O){return(D||(D=c.\u0275\u0275getInheritedFactory(w)))(O||w)}}(),w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const Aa=new c.InjectionToken("",{providedIn:"root",factory:()=>({})});let dc=(()=>{class w{}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:function(){return(0,c.inject)(ea)},providedIn:"root"}),w})(),ea=(()=>{class w{shouldProcessUrl(y){return!0}extract(y){return y}merge(y,O){return y}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();function ta(w){throw w}function al(w,D,y){return D.parse("/")}const Xa={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$a={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let js=(()=>{class w{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,c.inject)(c.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,c.inject)(Aa,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ta,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||al,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,c.inject)(dc),this.routeReuseStrategy=(0,c.inject)(gn),this.urlCreationStrategy=(0,c.inject)(mn),this.titleStrategy=(0,c.inject)(Rn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=rn((0,c.inject)(on,{optional:!0})??[]),this.navigationTransitions=(0,c.inject)(Xn),this.urlSerializer=(0,c.inject)(en),this.location=(0,c.inject)(Ct.Ye),this.isNgZoneEnabled=(0,c.inject)(c.NgZone)instanceof c.NgZone&&c.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Mn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ri(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(y=>{this.lastSuccessfulId=y.id,this.currentPageId=this.browserPageId??0},y=>{this.console.warn(`Unhandled Navigation Error: ${y}`)})}resetRootComponentType(y){this.routerState.root.component=y,this.navigationTransitions.rootComponentType=y}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const y=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Zr,y)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(y=>{const O="popstate"===y.type?"popstate":"hashchange";"popstate"===O&&setTimeout(()=>{this.navigateToSyncWithBrowser(y.url,O,y.state)},0)}))}navigateToSyncWithBrowser(y,O,z){const he={replaceUrl:!0},Ce=z?.navigationId?z:null;if(z){const tn={...z};delete tn.navigationId,delete tn.\u0275routerPageId,0!==Object.keys(tn).length&&(he.state=tn)}const _t=this.parseUrl(y);this.scheduleNavigation(_t,O,Ce,he)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(y){this.config=y.map(vi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(y,O={}){const{relativeTo:z,queryParams:he,fragment:Ce,queryParamsHandling:_t,preserveFragment:tn}=O,Ln=tn?this.currentUrlTree.fragment:Ce;let Vn=null;switch(_t){case"merge":Vn={...this.currentUrlTree.queryParams,...he};break;case"preserve":Vn=this.currentUrlTree.queryParams;break;default:Vn=he||null}return null!==Vn&&(Vn=this.removeEmptyProps(Vn)),this.urlCreationStrategy.createUrlTree(z,this.routerState,this.currentUrlTree,y,Vn,Ln??null)}navigateByUrl(y,O={skipLocationChange:!1}){const z=kt(y)?y:this.parseUrl(y),he=this.urlHandlingStrategy.merge(z,this.rawUrlTree);return this.scheduleNavigation(he,Zr,null,O)}navigate(y,O={skipLocationChange:!1}){return function Jn(w){for(let D=0;D<w.length;D++){const y=w[D];if(null==y)throw new c.\u0275RuntimeError(4008,false)}}(y),this.navigateByUrl(this.createUrlTree(y,O),O)}serializeUrl(y){return this.urlSerializer.serialize(y)}parseUrl(y){let O;try{O=this.urlSerializer.parse(y)}catch(z){O=this.malformedUriErrorHandler(z,this.urlSerializer,y)}return O}isActive(y,O){let z;if(z=!0===O?{...Xa}:!1===O?{...$a}:O,kt(y))return Be(this.currentUrlTree,y,z);const he=this.parseUrl(y);return Be(this.currentUrlTree,he,z)}removeEmptyProps(y){return Object.keys(y).reduce((O,z)=>{const he=y[z];return null!=he&&(O[z]=he),O},{})}scheduleNavigation(y,O,z,he,Ce){if(this.disposed)return Promise.resolve(!1);let _t,tn,Ln,Vn;return Ce?(_t=Ce.resolve,tn=Ce.reject,Ln=Ce.promise):Ln=new Promise((Ur,Zi)=>{_t=Ur,tn=Zi}
1),Vn="computed"===this.canceledNavigationResolution?z&&z.\u0275routerPageId?z.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:Vn,source:O,restoredState:z,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:y,extras:he,resolve:_t,reject:tn,promise:Ln,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ln.catch(Ur=>Promise.reject(Ur))}setBrowserUrl(y,O){const z=this.urlSerializer.serialize(y);if(this.location.isCurrentPathEqualTo(z)||O.extras.replaceUrl){const Ce={...O.extras.state,...this.generateNgRouterState(O.id,this.browserPageId)};this.location.replaceState(z,"",Ce)}else{const he={...O.extras.state,...this.generateNgRouterState(O.id,O.targetPageId)};this.location.go(z,"",he)}}restoreHistory(y,O=!1){if("computed"===this.canceledNavigationResolution){const he=this.currentPageId-(this.browserPageId??this.currentPageId);0!==he?this.location.historyGo(he):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===he&&(this.resetState(y),this.browserUrlTree=y.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(O&&this.resetState(y),this.resetUrlToCurrentUrlTree())}resetState(y){this.routerState=y.currentRouterState,this.currentUrlTree=y.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,y.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(y,O){return"computed"===this.canceledNavigationResolution?{navigationId:y,\u0275routerPageId:O}:{navigationId:y}}}return w.\u0275fac=function(y){return new(y||w)},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})(),na=(()=>{class w{constructor(y,O,z,he,Ce,_t){this.router=y,this.route=O,this.tabIndexAttribute=z,this.renderer=he,this.el=Ce,this.locationStrategy=_t,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Pe.x;const tn=Ce.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===tn||"area"===tn,this.isAnchorElement?this.subscription=y.events.subscribe(Ln=>{Ln instanceof Ai&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(y){this._preserveFragment=(0,c.\u0275coerceToBoolean)(y)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(y){this._skipLocationChange=(0,c.\u0275coerceToBoolean)(y)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(y){this._replaceUrl=(0,c.\u0275coerceToBoolean)(y)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(y){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",y)}ngOnChanges(y){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(y){null!=y?(this.commands=Array.isArray(y)?y:[y],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(y,O,z,he,Ce){return!!(null===this.urlTree||this.isAnchorElement&&(0!==y||O||z||he||Ce||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const y=null===this.href?null:(0,c.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",y)}applyAttributeValue(y,O){const z=this.renderer,he=this.el.nativeElement;null!==O?z.setAttribute(he,y,O):z.removeAttribute(he,y)}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})}}
1return w.\u0275fac=function(y){return new(y||w)(c.\u0275\u0275directiveInject(js),c.\u0275\u0275directiveInject(Di),c.\u0275\u0275injectAttribute("tabindex"),c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(Ct.S$))},w.\u0275dir=c.\u0275\u0275defineDirective({type:w,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(y,O){1&y&&c.\u0275\u0275listener("click",function(he){return O.onClick(he.button,he.ctrlKey,he.shiftKey,he.altKey,he.metaKey)}),2&y&&c.\u0275\u0275attribute("target",O.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[c.\u0275\u0275NgOnChangesFeature]}),w})(),Ha=(()=>{class w{get isActive(){return this._isActive}constructor(y,O,z,he,Ce){this.router=y,this.element=O,this.renderer=z,this.cdr=he,this.link=Ce,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new c.EventEmitter,this.routerEventsSubscription=y.events.subscribe(_t=>{_t instanceof Ai&&this.update()})}ngAfterContentInit(){(0,V.of)(this.links.changes,(0,V.of)(null)).pipe((0,yt.J)()).subscribe(y=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const y=[...this.links.toArray(),this.link].filter(O=>!!O).map(O=>O.onChanges);this.linkInputChangesSubscription=(0,m.D)(y).pipe((0,yt.J)()).subscribe(O=>{this._isActive!==this.isLinkActive(this.router)(O)&&this.update()})}set routerLinkActive(y){const O=Array.isArray(y)?y:y.split(" ");this.classes=O.filter(z=>!!z)}ngOnChanges(y){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const y=this.hasActiveLinks();this._isActive!==y&&(this._isActive=y,this.cdr.markForCheck(),this.classes.forEach(O=>{y?this.renderer.addClass(this.element.nativeElement,O):this.renderer.removeClass(this.element.nativeElement,O)}),y&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(y))})}isLinkActive(y){const O=function ji(w){return!!w.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return z=>!!z.urlTree&&y.isActive(z.urlTree,O)}hasActiveLinks(){const y=this.isLinkActive(this.router);return this.link&&y(this.link)||this.links.some(y)}}
1return w.\u0275fac=function(y){return new(y||w)(c.\u0275\u0275directiveInject(js),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.Renderer2),c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(na,8))},w.\u0275dir=c.\u0275\u0275defineDirective({type:w,selectors:[["","routerLinkActive",""]],contentQueries:function(y,O,z){if(1&y&&c.\u0275\u0275contentQuery(z,na,5),2&y){let he;c.\u0275\u0275queryRefresh(he=c.\u0275\u0275loadQuery())&&(O.links=he)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[c.\u0275\u0275NgOnChangesFeature]}),w})();class cr{}let Ja=(()=>{class w{constructor(y,O,z,he,Ce){this.router=y,this.injector=z,this.preloadingStrategy=he,this.loader=Ce}setUpPreloading(){this.subscription=this.router.events.pipe((0,rt.h)(y=>y instanceof Ai),(0,Ue.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(y,O){const z=[];for(const he of O){he.providers&&!he._injector&&(he._injector=(0,c.createEnvironmentInjector)(he.providers,y,`Route: ${he.path}`));const Ce=he._injector??y,_t=he._loadedInjector??Ce;(he.loadChildren&&!he._loadedRoutes&&void 0===he.canLoad||he.loadComponent&&!he._loadedComponent)&&z.push(this.preloadConfig(Ce,he)),(he.children||he._loadedRoutes)&&z.push(this.processRoutes(_t,he.children??he._loadedRoutes))}return(0,m.D)(z).pipe((0,yt.J)())}preloadConfig(y,O){return this.preloadingStrategy.preload(O,()=>{let z;z=O.loadChildren&&void 0===O.canLoad?this.loader.loadChildren(y,O):(0,V.of)(null);const he=z.pipe((0,nt.z)(Ce=>null===Ce?(0,V.of)(void 0):(O._loadedRoutes=Ce.routes,O._loadedInjector=Ce.injector,this.processRoutes(Ce.injector??y,Ce.routes))));if(O.loadComponent&&!O._loadedComponent){const Ce=this.loader.loadComponent(O);return(0,m.D)([he,Ce]).pipe((0,yt.J)())}return he})}}
1return w.\u0275fac=function(y){return new(y||w)(c.\u0275\u0275inject(js),c.\u0275\u0275inject(c.Compiler),c.\u0275\u0275inject(c.EnvironmentInjector),c.\u0275\u0275inject(cr),c.\u0275\u0275inject(or))},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const Vr=new c.InjectionToken("");let jn=(()=>{class w{constructor(y,O,z,he,Ce={}){this.urlSerializer=y,this.transitions=O,this.viewportScroller=z,this.zone=he,this.options=Ce,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ce.scrollPositionRestoration=Ce.scrollPositionRestoration||"disabled",Ce.anchorScrolling=Ce.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(y=>{y instanceof gr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=y.navigationTrigger,this.restoredId=y.restoredState?y.restoredState.navigationId:0):y instanceof Ai&&(this.lastId=y.id,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof Cs&&(y.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(y.position):y.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(y.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(y,O){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Cs(y,"popstate"===this.lastSource?this.store[this.restoredId]:null,O))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return w.\u0275fac=function(y){c.\u0275\u0275invalidFactory()},w.\u0275prov=c.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac}),w})();var Es=(()=>((Es=Es||{})[Es.COMPLETE=0]="COMPLETE",Es[Es.FAILED=1]="FAILED",Es[Es.REDIRECTING=2]="REDIRECTING",Es))();const ps=!1;function Io(w,D){return{\u0275kind:w,\u0275providers:D}}const ra=new c.InjectionToken("",{providedIn:"root",factory:()=>!1}),za={provide:c.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>()=>{(0,c.inject)(ra)||console.warn("`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. This is likely a mistake.")}};function Wa(w){return[{provide:on,multi:!0,useValue:w},ps?za:[]]}function Fo(){const w=(0,c.inject)(c.Injector);return D=>{const y=w.get(c.ApplicationRef);if(D!==y.components[0])return;const O=w.get(js),z=w.get(ia);1===w.get(Bs)&&O.initialNavigation(),w.get(Ka,null,c.InjectFlags.Optional)?.setUpPreloading(),w.get(Vr,null,c.InjectFlags.Optional)?.init(),O.resetRootComponentType(y.componentTypes[0]),z.closed||(z.next(),z.complete(),z.unsubscribe())}}const ia=new c.InjectionToken(ps?"bootstrap done indicator":"",{factory:()=>new Pe.x}),Bs=new c.InjectionToken(ps?"initial navigation":"",{providedIn:"root",factory:()=>1});function Lt(){let w=[];return w=ps?[{provide:c.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const D=(0,c.inject)(js);return()=>D.events.subscribe(y=>{console.group?.(`Router Event: ${y.constructor.name}`),console.log(function pt(w){if(!("type"in w))return`Unknown Router Event: ${w.constructor.name}`;switch(w.type){case 14:return`ActivationEnd(path: '${w.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${w.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${w.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${w.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${w.id}, url: '${w.url}', urlAfterRedirects: '${w.urlAfterRedirects}', state: ${w.state}, shouldActivate: ${w.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${w.id}, url: '${w.url}', urlAfterRedirects: '${w.urlAfterRedirects}', state: ${w.state})`;case 2:return`NavigationCancel(id: ${w.id}, url: '${w.url}')`;case 16:return`NavigationSkipped(id: ${w.id}, url: '${w.url}')`;case 1:return`NavigationEnd(id: ${w.id}, url: '${w.url}', urlAfterRedirects: '${w.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${w.id}, url: '${w.url}', error: ${w.error})`;case 0:return`NavigationStart(id: ${w.id}, url: '${w.url}')`;case 6:return`ResolveEnd(id: ${w.id}, url: '${w.url}', urlAfterRedirects: '${w.urlAfterRedirects}', state: ${w.state})`;case 5:return`ResolveStart(id: ${w.id}, url: '${w.url}', urlAfterRedirects: '${w.urlAfterRedirects}', state: ${w.state})`;case 10:return`RouteConfigLoadEnd(path: ${w.route.path})`;case 9:return`RouteConfigLoadStart(path: ${w.route.path})`;case 4:return`RoutesRecognized(id: ${w.id}, url: '${w.url}', urlAfterRedirects: '${w.urlAfterRedirects}', state: ${w.state})`;case 15:return`Scroll(anchor: '${w.anchor}', position: '${w.position?`${w.position[0]}, ${w.position[1]}`:null}')`}}(y)),console.log(y),console.groupEnd?.()})}}]:[],Io(1,w)}const Ka=new c.InjectionToken(ps?"router preloader":"");function Yr(w){return Io(0,[{provide:Ka,useExisting:Ja},{provide:cr,useExisting:w}])}const b=!1,re=new c.InjectionToken(b?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Ee=[Ct.Ye,{provide:en,useClass:Se},js,hs,{provide:Di,useFactory:function ga(w){return w.routerState.root},deps:[js]},or,b?{provide:ra,useValue:!0}:[]];function Ze(){return new c.NgProbeToken("Router",js)}let ot=(()=>{class w{constructor(y){}static forRoot(y,O){return{ngModule:w,providers:[Ee,b&&O?.enableTracing?Lt().\u0275providers:[],{provide:on,multi:!0,useValue:y},{provide:re,useFactory:Qn,deps:[[js,new c.Optional,new c.SkipSelf]]},{provide:Aa,useValue:O||{}},O?.useHash?{provide:Ct.S$,useClass:Ct.Do}:{provide:Ct.S$,useClass:Ct.b0},{provide:Vr,useFactory:()=>{const w=(0,c.inject)(Ct.EM),D=(0,c.inject)(c.NgZone),y=(0,c.inject)(Aa),O=(0,c.inject)(Xn),z=(0,c.inject)(en);return y.scrollOffset&&w.setOffset(y.scrollOffset),new jn(z,O,w,D,y)}},O?.preloadingStrategy?Yr(O.preloadingStrategy).\u0275providers:[],{provide:c.NgProbeToken,multi:!0,useFactory:Ze},O?.initialNavigation?Ar(O):[],[{provide:Or,useFactory:Fo},{provide:c.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Or}]]}}static forChild(y){return{ngModule:w,providers:[{provide:on,multi:!0,useValue:y}]}}}
1return w.\u0275fac=function(y){return new(y||w)(c.\u0275\u0275inject(re,8))},w.\u0275mod=c.\u0275\u0275defineNgModule({type:w}),w.\u0275inj=c.\u0275\u0275defineInjector({imports:[Wi]}),w})();function Qn(w){if(b&&w)throw new c.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ar(w){return["disabled"===w.initialNavigation?Io(3,[{provide:c.APP_INITIALIZER,multi:!0,useFactory:()=>{const D=(0,c.inject)(js);return()=>{D.setUpLocationChangeListener()}}},{provide:Bs,useValue:2}]).\u0275providers:[],"enabledBlocking"===w.initialNavigation?Io(2,[{provide:Bs,useValue:0},{provide:c.APP_INITIALIZER,multi:!0,deps:[c.Injector],useFactory:D=>{const y=D.get(Ct.V_,Promise.resolve());return()=>y.then(()=>new Promise(O=>{const z=D.get(js),he=D.get(ia);(function pa(w,D){w.events.pipe((0,rt.h)(y=>y instanceof Ai||y instanceof Fi||y instanceof ns||y instanceof ir),(0,He.U)(y=>y instanceof Ai||y instanceof ir?Es.COMPLETE:y instanceof Fi&&(0===y.code||1===y.code)?Es.REDIRECTING:Es.FAILED),(0,rt.h)(y=>y!==Es.REDIRECTING),(0,ve.q)(1)).subscribe(()=>{D()})})(z,()=>{O(!0)}),D.get(Xn).afterPreactivation=()=>(O(!0),he.closed?(0,V.of)(void 0):he),z.initialNavigation()}))}}]).\u0275providers:[]]}const Or=new c.InjectionToken(b?"Router Initializer":"")},3942:(ln,et,C)=>{"use strict";C.d(et,{Z:()=>dt});var c=C(2090),m=C(4859),V=C(6881),_e=C(1877);class pe{constructor(Me,Pe){this._delegate=Me,this.firebase=Pe,(0,V._addComponent)(Me,new m.wA("app-compat",()=>this,"PUBLIC")),this.container=Me.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Me){this._delegate.automaticDataCollectionEnabled=Me}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Me=>{this._delegate.checkDestroyed(),Me()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,V.deleteApp)(this._delegate)))}_getService(Me,Pe=V._DEFAULT_ENTRY_NAME){var Ct;this._delegate.checkDestroyed();const He=this._delegate.container.getProvider(Me);return!He.isInitialized()&&"EXPLICIT"===(null===(Ct=He.getComponent())||void 0===Ct?void 0:Ct.instantiationMode)&&He.initialize(),He.getImmediate({identifier:Pe})}_removeServiceInstance(Me,Pe=V._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Me).clearInstance(Pe)}_addComponent(Me){(0,V._addComponent)(this._delegate,Me)}_addOrOverwriteComponent(Me){(0,V._addOrOverwriteComponent)(this._delegate,Me)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const Oe=new c.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),q=function Re(){const wt=function ie(wt){const Me={},Pe={__esModule:!0,initializeApp:function Ve(nt,At={}){const Ue=V.initializeApp(nt,At);if((0,c.r3)(Me,Ue.name))return Me[Ue.name];const Wt=new wt(Ue,Pe);return Me[Ue.name]=Wt,Wt},app:He,registerVersion:V.registerVersion,setLogLevel:V.setLogLevel,onLog:V.onLog,apps:null,SDK_VERSION:V.SDK_VERSION,INTERNAL:{registerComponent:function ze(nt){const At=nt.name,Ue=At.replace("-compat","");if(V._registerComponent(nt)&&"PUBLIC"===nt.type){const Wt=(je=He())=>{if("function"!=typeof je[Ue])throw Oe.create("invalid-app-argument",{appName:At});return je[Ue]()};void 0!==nt.serviceProps&&(0,c.ZB)(Wt,nt.serviceProps),Pe[Ue]=Wt,wt.prototype[Ue]=function(...je){return this._getService.bind(this,At).apply(this,nt.multipleInstances?je:[])}}return"PUBLIC"===nt.type?Pe[Ue]:null},removeApp:function Ct(nt){delete Me[nt]},useAsService:function rt(nt,At){return"serverAuth"===At?null:At},modularAPIs:V}};function He(nt){if(!(0,c.r3)(Me,nt=nt||V._DEFAULT_ENTRY_NAME))throw Oe.create("no-app",{appName:nt});return Me[nt]}return Pe.default=Pe,Object.defineProperty(Pe,"apps",{get:function ve(){return Object.keys(Me).map(nt=>Me[nt])}}),He.App=wt,Pe}(pe);return wt.INTERNAL=Object.assign(Object.assign({},wt.INTERNAL),{createFirebaseNamespace:Re,extendNamespace:function Me(Pe){(0,c.ZB)(wt,Pe)},createSubscribe:c.ne,ErrorFactory:c.LL,deepExtend:c.ZB}),wt}(),de=new _e.Yd("@firebase/app-compat");
1if((0,c.jU)()&&void 0!==self.firebase){de.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const wt=self.firebase.SDK_VERSION;wt&&wt.indexOf("LITE")>=0&&de.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const dt=q;!function it(wt){(0,V.registerVersion)("@firebase/app-compat","0.2.13",wt)}()},6881:(ln,et,C)=>{"use strict";C.r(et),C.d(et,{FirebaseError:()=>_e.ZR,SDK_VERSION:()=>Se,_DEFAULT_ENTRY_NAME:()=>It,_addComponent:()=>sn,_addOrOverwriteComponent:()=>Xt,_apps:()=>qt,_clearComponents:()=>vr,_components:()=>dn,_getProvider:()=>bn,_registerComponent:()=>Mn,_removeServiceInstance:()=>Dr,deleteApp:()=>ue,getApp:()=>We,getApps:()=>Q,initializeApp:()=>ct,onLog:()=>ce,registerVersion:()=>X,setLogLevel:()=>xe});var c=C(5861),m=C(4859),V=C(1877),_e=C(2090);const pe=(Rt,xt)=>xt.some(pn=>Rt instanceof pn);let me,Oe;const q=new WeakMap,de=new WeakMap,be=new WeakMap,lt=new WeakMap,it=new WeakMap;let Me={get(Rt,xt,pn){if(Rt instanceof IDBTransaction){if("done"===xt)return de.get(Rt);if("objectStoreNames"===xt)return Rt.objectStoreNames||be.get(Rt);if("store"===xt)return pn.objectStoreNames[1]?void 0:pn.objectStore(pn.objectStoreNames[0])}return Ve(Rt[xt])},set:(Rt,xt,pn)=>(Rt[xt]=pn,!0),has:(Rt,xt)=>Rt instanceof IDBTransaction&&("done"===xt||"store"===xt)||xt in Rt};function He(Rt){return"function"==typeof Rt?function Ct(Rt){return Rt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Re(){return Oe||(Oe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Rt)?function(...xt){return Rt.apply(ve(this),xt),Ve(q.get(this))}:function(...xt){return Ve(Rt.apply(ve(this),xt))}:function(xt,...pn){const Kn=Rt.call(ve(this),xt,...pn);return be.set(Kn,xt.sort?xt.sort():[xt]),Ve(Kn)}}
1(Rt):(Rt instanceof IDBTransaction&&function wt(Rt){if(de.has(Rt))return;const xt=new Promise((pn,Kn)=>{const Yn=()=>{Rt.removeEventListener("complete",Tr),Rt.removeEventListener("error",Pn),Rt.removeEventListener("abort",Pn)},Tr=()=>{pn(),Yn()},Pn=()=>{Kn(Rt.error||new DOMException("AbortError","AbortError")),Yn()};Rt.addEventListener("complete",Tr),Rt.addEventListener("error",Pn),Rt.addEventListener("abort",Pn)});de.set(Rt,xt)}(Rt),pe(Rt,function ie(){return me||(me=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Rt,Me):Rt)}function Ve(Rt){if(Rt instanceof IDBRequest)return function dt(Rt){const xt=new Promise((pn,Kn)=>{const Yn=()=>{Rt.removeEventListener("success",Tr),Rt.removeEventListener("error",Pn)},Tr=()=>{pn(Ve(Rt.result)),Yn()},Pn=()=>{Kn(Rt.error),Yn()};Rt.addEventListener("success",Tr),Rt.addEventListener("error",Pn)});return xt.then(pn=>{pn instanceof IDBCursor&&q.set(pn,Rt)}).catch(()=>{}),it.set(xt,Rt),xt}(Rt);if(lt.has(Rt))return lt.get(Rt);const xt=He(Rt);return xt!==Rt&&(lt.set(Rt,xt),it.set(xt,Rt)),xt}const ve=Rt=>it.get(Rt),nt=["get","getKey","getAll","getAllKeys","count"],At=["put","add","delete","clear"],Ue=new Map;function Wt(Rt,xt){if(!(Rt instanceof IDBDatabase)||xt in Rt||"string"!=typeof xt)return;if(Ue.get(xt))return Ue.get(xt);const pn=xt.replace(/FromIndex$/,""),Kn=xt!==pn,Yn=At.includes(pn);if(!(pn in(Kn?IDBIndex:IDBObjectStore).prototype)||!Yn&&!nt.includes(pn))return;const Tr=function(){var Pn=(0,c.Z)(function*(kr,...wr){const _i=this.transaction(kr,Yn?"readwrite":"readonly");let li=_i.store;return Kn&&(li=li.index(wr.shift())),(yield Promise.all([li[pn](...wr),Yn&&_i.done]))[0]});return function(wr){return Pn.apply(this,arguments)}}();return Ue.set(xt,Tr),Tr}!function Pe(Rt){Me=Rt(Me)}(Rt=>({...Rt,get:(xt,pn,Kn)=>Wt(xt,pn)||Rt.get(xt,pn,Kn),has:(xt,pn)=>!!Wt(xt,pn)||Rt.has(xt,pn)}));
1class je{constructor(xt){this.container=xt}getPlatformInfoString(){return this.container.getProviders().map(pn=>{if(function vt(Rt){return"VERSION"===Rt.getComponent()?.type}(pn)){const Kn=pn.getImmediate();return`${Kn.library}/${Kn.version}`}return null}).filter(pn=>pn).join(" ")}}const jt="@firebase/app",Sn=new V.Yd("@firebase/app"),It="[DEFAULT]",Yt={[jt]:"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","fire-js":"fire-js",firebase:"fire-js-all"},qt=new Map,dn=new Map;function sn(Rt,xt){try{Rt.container.addComponent(xt)}catch(pn){Sn.debug(`Component ${xt.name} failed to register with FirebaseApp ${Rt.name}`,pn)}}function Xt(Rt,xt){Rt.container.addOrOverwriteComponent(xt)}function Mn(Rt){const xt=Rt.name;if(dn.has(xt))return Sn.debug(`There were multiple attempts to register component ${xt}.`),!1;dn.set(xt,Rt);for(const pn of qt.values())sn(pn,Rt);return!0}function bn(Rt,xt){const pn=Rt.container.getProvider("heartbeat").getImmediate({optional:!0});return pn&&pn.triggerHeartbeat(),Rt.container.getProvider(xt)}function Dr(Rt,xt,pn=It){bn(Rt,xt).clearInstance(pn)}function vr(){dn.clear()}const bt=new _e.LL("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","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.","invali
1d-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}."});class en{constructor(xt,pn,Kn){this._isDeleted=!1,this._options=Object.assign({},xt),this._config=Object.assign({},pn),this._name=pn.name,this._automaticDataCollectionEnabled=pn.automaticDataCollectionEnabled,this._container=Kn,this.container.addComponent(new m.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(xt){this.checkDestroyed(),this._automaticDataCollectionEnabled=xt}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(xt){this._isDeleted=xt}checkDestroyed(){if(this.isDeleted)throw bt.create("app-deleted",{appName:this._name})}}const Se="9.23.0";function ct(Rt,xt={}){let pn=Rt;"object"!=typeof xt&&(xt={name:xt});const Kn=Object.assign({name:It,automaticDataCollectionEnabled:!1},xt),Yn=Kn.name;if("string"!=typeof Yn||!Yn)throw bt.create("bad-app-name",{appName:String(Yn)});if(pn||(pn=(0,_e.aH)()),!pn)throw bt.create("no-options");const Tr=qt.get(Yn);if(Tr){if((0,_e.vZ)(pn,Tr.options)&&(0,_e.vZ)(Kn,Tr.config))return Tr;throw bt.create("duplicate-app",{appName:Yn})}const Pn=new m.H0(Yn);for(const wr of dn.values())Pn.addComponent(wr);const kr=new en(pn,Kn,Pn);return qt.set(Yn,kr),kr}function We(Rt=It){const xt=qt.get(Rt);if(!xt&&Rt===It&&(0,_e.aH)())return ct();if(!xt)throw bt.create("no-app",{appName:Rt});return xt}function Q(){return Array.from(qt.values())}function ue(Rt){return fe.apply(this,arguments)}function fe(){return(fe=(0,c.Z)(function*(Rt){const xt=Rt.name;qt.has(xt)&&(qt.delete(xt),yield Promise.all(Rt.container.getProviders().map(pn=>pn.delete())),Rt.isDeleted=!0)})).apply(this,arguments)}function X(Rt,xt,pn){var Kn;let Yn=null!==(Kn=Yt[Rt])&&void 0!==Kn?Kn:Rt;pn&&(Yn+=`-${pn}`);const Tr=Yn.match(/\s|\//),Pn=xt.match(/\s|\//);if(Tr||Pn){const kr=[`Unable to register library "${Yn}" with version "${xt}":`];return Tr&&kr.push(`library name "${Yn}" contains illegal characters (whitespace or "/")`),Tr&&Pn&&kr.push("and"),Pn&&kr.push(`version name "${xt}" contains illegal characters (whitespace or "/")`),void Sn.warn(kr.join(" "))}Mn(new m.wA(`${Yn}-version`,()=>({library:Yn,version:xt}),"VERSION"))}function ce(Rt,xt){if(null!==Rt&&"function"!=typeof Rt)throw bt.create("invalid-log-argument");(0,V.Am)(Rt,xt)}function xe(Rt){(0,V.Ub)(Rt)}const Ft="firebase-heartbeat-database",Ut=1,ke="firebase-heartbeat-store";let Fe=null;function Ge(){return Fe||(Fe=function ze(Rt,xt,{blocked:pn,upgrade:Kn,blocking:Yn,terminated:Tr}={}){const Pn=indexedDB.open(Rt,xt),kr=Ve(Pn);return Kn&&Pn.addEventListener("upgradeneeded",wr=>{Kn(Ve(Pn.result),wr.oldVersion,wr.newVersion,Ve(Pn.transaction),wr)}),pn&&Pn.addEventListener("blocked",wr=>pn(wr.oldVersion,wr.newVersion,wr)),kr.then(wr=>{Tr&&wr.addEventListener("close",()=>Tr()),Yn&&wr.addEventListener("versionchange",_i=>Yn(_i.oldVersion,_i.newVersion,_i))}).catch(()=>{}),kr}(Ft,Ut,{upgrade:(Rt,xt)=>{0===xt&&Rt.createObjectStore(ke)}}).catch(Rt=>{throw bt.create("idb-open",{originalErrorMessage:Rt.message})})),Fe}function ht(){return(ht=(0,c.Z)(function*(Rt){try{return yield(yield Ge()).transaction(ke).objectStore(ke).get(oe(Rt))}catch(xt){if(xt instanceof _e.ZR)Sn.warn(xt.message);else{const pn=bt.create("idb-get",{originalErrorMessage:xt?.message});Sn.warn(pn.message)}}})).apply(this,arguments)}function an(Rt,xt){return $e.apply(this,arguments)}function $e(){return($e=(0,c.Z)(function*(Rt,xt){try{const Kn=(yield Ge()).transaction(ke,"readwrite");yield Kn.objectStore(ke).put(xt,oe(Rt)),yield Kn.done}catch(pn){if(pn instanceof _e.ZR)Sn.warn(pn.message);else{const Kn=bt.create("idb-set",{originalErrorMessage:pn?.message});Sn.warn(Kn.message)}}})).apply(this,arguments)}function oe(Rt){return`${Rt.name}!${Rt.options.appId}`}class Ie{constructor(xt){this.container=xt,this._heartbeatsCache=null;const pn=this.container.getProvider("app").getImmediate();this._storage=new Cn(pn),this._heartbeatsCachePromise=this._storage.read().then(Kn=>(this._heartbeatsCache=Kn,Kn))}triggerHeartbeat(){var xt=this;return(0,c.Z)(function*(){const Kn=xt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Yn=Qe();if(null===xt._heartbeatsCache&&(xt._heartbeatsCache=yield xt._heartbeatsCachePromise),xt._heartbeatsCache.lastSentHeartbeatDate!==Yn&&!xt._heartbeatsCache.heartbeats.some(Tr=>Tr.date===Yn))return xt._heartbeatsCache.heartbeats.push({date:Yn,agent:Kn}),xt._heartbeatsCache.heartbeats=xt._heartbeatsCache.heartbeats.filter(Tr=>{const Pn=new Date(Tr.date).valueOf();return Date.now()-Pn<=2592e6}),xt._storage.overwrite(xt._heartbeatsCache)})()}getHeartbeatsHeader(){var xt=this;return(0,c.Z)(function*(){if(null===xt._heartbeatsCache&&(yield xt._heartbeatsCachePromise),null===xt._heartbeatsCache||0===xt._heartbeatsCache.heartbeats.length)return"";const pn=Qe(),{heartbeatsToSend:Kn,unsentEntries:Yn}=function kt(Rt,xt=1024){const pn=[];let Kn=Rt.slice();for(const Yn of Rt){const Tr=pn.find(Pn=>Pn.agent===Yn.agent);if(Tr){if(Tr.dates.push(Yn.date),nr(pn)>xt){Tr.dates.pop();break}}else if(pn.push({agent:Yn.agent,dates:[Yn.date]}),nr(pn)>xt){pn.pop();break}Kn=Kn.slice(1)}return{heartbeatsToSend:pn,unsentEntries:Kn}}(xt._heartbeatsCache.heartbeats),Tr=(0,_e.L)(JSON.stringify({version:2,heartbeats:Kn}));return xt._heartbeatsCache.lastSentHeartbeatDate=pn,Yn.length>0?(xt._heartbeatsCache.heartbeats=Yn,yield xt._storage.overwrite(xt._heartbeatsCache)):(xt._heartbeatsCache.heartbeats=[],xt._storage.overwrite(xt._heartbeatsCache)),Tr})()}}function Qe(){return(new Date).toISOString().substring(0,10)}class Cn{constructor(xt){this.app=xt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,c.Z)(function*(){return!!(0,_e.hl)()&&(0,_e.eu)().then(()=>!0).catch(()=>!1)})()}read(){var xt=this;return(0,c.Z)(function*(){return(yield xt._canUseIndexedDBPromise)&&(yield function Et(Rt){return ht.apply(this,arguments)}(xt.app))||{heartbeats:[]}})()}overwrite(xt){var pn=this;return(0,c.Z)(function*(){var Kn;
1if(yield pn._canUseIndexedDBPromise){const Tr=yield pn.read();return an(pn.app,{lastSentHeartbeatDate:null!==(Kn=xt.lastSentHeartbeatDate)&&void 0!==Kn?Kn:Tr.lastSentHeartbeatDate,heartbeats:xt.heartbeats})}})()}add(xt){var pn=this;return(0,c.Z)(function*(){var Kn;if(yield pn._canUseIndexedDBPromise){const Tr=yield pn.read();return an(pn.app,{lastSentHeartbeatDate:null!==(Kn=xt.lastSentHeartbeatDate)&&void 0!==Kn?Kn:Tr.lastSentHeartbeatDate,heartbeats:[...Tr.heartbeats,...xt.heartbeats]})}})()}}function nr(Rt){return(0,_e.L)(JSON.stringify({version:2,heartbeats:Rt})).length}!function Rr(Rt){Mn(new m.wA("platform-logger",xt=>new je(xt),"PRIVATE")),Mn(new m.wA("heartbeat",xt=>new Ie(xt),"PRIVATE")),X(jt,"0.9.13",Rt),X(jt,"0.9.13","esm2017"),X("fire-js","")}("")},4859:(ln,et,C)=>{"use strict";C.d(et,{H0:()=>ie,wA:()=>V});var c=C(5861),m=C(2090);class V{constructor(q,de,be){this.name=q,this.instanceFactory=de,this.type=be,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(q){return this.instantiationMode=q,this}setMultipleInstances(q){return this.multipleInstances=q,this}setServiceProps(q){return this.serviceProps=q,this}setInstanceCreatedCallback(q){return this.onInstanceCreated=q,this}}const _e="[DEFAULT]";class pe{constructor(q,de){this.name=q,this.container=de,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(q){const de=this.normalizeInstanceIdentifier(q);if(!this.instancesDeferred.has(de)){const be=new m.BH;if(this.instancesDeferred.set(de,be),this.isInitialized(de)||this.shouldAutoInitialize())try{const lt=this.getOrInitializeService({instanceIdentifier:de});lt&&be.resolve(lt)}catch{}}return this.instancesDeferred.get(de).promise}getImmediate(q){var de;const be=this.normalizeInstanceIdentifier(q?.identifier),lt=null!==(de=q?.optional)&&void 0!==de&&de;if(!this.isInitialized(be)&&!this.shouldAutoInitialize()){if(lt)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:be})}catch(it){if(lt)return null;throw it}}getComponent(){return this.component}setComponent(q){if(q.name!==this.name)throw Error(`Mismatching Component ${q.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=q,this.shouldAutoInitialize()){if(function Oe(Re){return"EAGER"===Re.instantiationMode}(q))try{this.getOrInitializeService({instanceIdentifier:_e})}catch{}for(const[de,be]of this.instancesDeferred.entries()){const lt=this.normalizeInstanceIdentifier(de);try{const it=this.getOrInitializeService({instanceIdentifier:lt});be.resolve(it)}catch{}}}}clearInstance(q=_e){this.instancesDeferred.delete(q),this.instancesOptions.delete(q),this.instances.delete(q)}delete(){var q=this;return(0,c.Z)(function*(){const de=Array.from(q.instances.values());yield Promise.all([...de.filter(be=>"INTERNAL"in be).map(be=>be.INTERNAL.delete()),...de.filter(be=>"_delete"in be).map(be=>be._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(q=_e){return this.instances.has(q)}getOptions(q=_e){return this.instancesOptions.get(q)||{}}initialize(q={}){const{options:de={}}=q,be=this.normalizeInstanceIdentifier(q.instanceIdentifier);if(this.isInitialized(be))throw Error(`${this.name}(${be}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const lt=this.getOrInitializeService({instanceIdentifier:be,options:de});for(const[it,dt]of this.instancesDeferred.entries())be===this.normalizeInstanceIdentifier(it)&&dt.resolve(lt);return lt}onInit(q,de){var be;const lt=this.normalizeInstanceIdentifier(de),it=null!==(be=this.onInitCallbacks.get(lt))&&void 0!==be?be:new Set;it.add(q),this.onInitCallbacks.set(lt,it);const dt=this.instances.get(lt);return dt&&q(dt,lt),()=>{it.delete(q)}}invokeOnInitCallbacks(q,de){const be=this.onInitCallbacks.get(de);if(be)for(const lt of be)try{lt(q,de)}catch{}}getOrInitializeService({instanceIdentifier:q,options:de={}}){let be=this.instances.get(q);if(!be&&this.component&&(be=this.component.instanceFactory(this.container,{instanceIdentifier:(Re=q,Re===_e?void 0:Re),options:de}),this.instances.set(q,be),this.instancesOptions.set(q,de),this.invokeOnInitCallbacks(be,q),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,q,be)}catch{}var Re;return be||null}normalizeInstanceIdentifier(q=_e){return this.component?this.component.multipleInstances?q:_e:q}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ie{constructor(q){this.name=q,this.providers=new Map}addComponent(q){const de=this.getProvider(q.name);if(de.isComponentSet())throw new Error(`Component ${q.name} has already been registered with ${this.name}`);de.setComponent(q)}addOrOverwriteComponent(q){this.getProvider(q.name).isComponentSet()&&this.providers.delete(q.name),this.addComponent(q)}getProvider(q){if(this.providers.has(q))return this.providers.get(q);const de=new pe(q,this);return this.providers.set(q,de),de}getProviders(){return Array.from(this.providers.values())}}},1877:(ln,et,C)=>{"use strict";C.d(et,{Am:()=>Re,Ub:()=>ie,Yd:()=>Oe,in:()=>m});const c=[];var m=(()=>{return(q=m||(m={}))[q.DEBUG=0]="DEBUG",q[q.VERBOSE=1]="VERBOSE",q[q.INFO=2]="INFO",q[q.WARN=3]="WARN",q[q.ERROR=4]="ERROR",q[q.SILENT=5]="SILENT",m;var q})();const V={debug:m.DEBUG,verbose:m.VERBOSE,info:m.INFO,warn:m.WARN,error:m.ERROR,silent:m.SILENT},_e=m.INFO,pe={[m.DEBUG]:"log",[m.VERBOSE]:"log",[m.INFO]:"info",[m.WARN]:"warn",[m.ERROR]:"error"},me=(q,de,...be)=>{if(de<q.logLevel)return;const lt=(new Date).toISOString(),it=pe[de];if(!it)throw new Error(`Attempted to log a message with an invali
1d logType (value: ${de})`);console[it](`[${lt}] ${q.name}:`,...be)};class Oe{constructor(de){this.name=de,this._logLevel=_e,this._logHandler=me,this._userLogHandler=null,c.push(this)}get logLevel(){return this._logLevel}set logLevel(de){if(!(de in m))throw new TypeError(`Invalid value "${de}" assigned to \`logLevel\``);this._logLevel=de}setLogLevel(de){this._logLevel="string"==typeof de?V[de]:de}get logHandler(){return this._logHandler}set logHandler(de){if("function"!=typeof de)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=de}get userLogHandler(){return this._userLogHandler}set userLogHandler(de){this._userLogHandler=de}debug(...de){this._userLogHandler&&this._userLogHandler(this,m.DEBUG,...de),this._logHandler(this,m.DEBUG,...de)}log(...de){this._userLogHandler&&this._userLogHandler(this,m.VERBOSE,...de),this._logHandler(this,m.VERBOSE,...de)}info(...de){this._userLogHandler&&this._userLogHandler(this,m.INFO,...de),this._logHandler(this,m.INFO,...de)}warn(...de){this._userLogHandler&&this._userLogHandler(this,m.WARN,...de),this._logHandler(this,m.WARN,...de)}error(...de){this._userLogHandler&&this._userLogHandler(this,m.ERROR,...de),this._logHandler(this,m.ERROR,...de)}}function ie(q){c.forEach(de=>{de.setLogLevel(q)})}function Re(q,de){for(const be of c){let lt=null;de&&de.level&&(lt=V[de.level]),be.userLogHandler=null===q?null:(it,dt,...wt)=>{const Me=wt.map(Pe=>{if(null==Pe)return null;if("string"==typeof Pe)return Pe;if("number"==typeof Pe||"boolean"==typeof Pe)return Pe.toString();if(Pe instanceof Error)return Pe.message;try{return JSON.stringify(Pe)}catch{return null}}).filter(Pe=>Pe).join(" ");dt>=(lt??it.logLevel)&&q({level:m[dt].toLowerCase(),message:Me,args:wt,type:it.name})}}}},7641:(ln,et,C)=>{"use strict";C.d(et,{ij:()=>dt,w0:()=>Me});var c=C(4650),m=C(6895),V=C(4707),_e=C(2843);const pe={target:null,action:"click",duration:650,easing:"easeInOutQuad",offset:0,offsetMap:new Map},me={easeInQuad:Pe=>Pe*Pe,easeOutQuad:Pe=>Pe*(2-Pe),easeInOutQuad:Pe=>Pe<.5?2*Pe*Pe:(4-2*Pe)*Pe-1,easeInCubic:Pe=>Pe*Pe*Pe,easeOutCubic:Pe=>--Pe*Pe*Pe+1,easeInOutCubic:Pe=>Pe<.5?4*Pe*Pe*Pe:(Pe-1)*(2*Pe-2)*(2*Pe-2)+1,easeInQuart:Pe=>Pe*Pe*Pe*Pe,easeOutQuart:Pe=>1- --Pe*Pe*Pe*Pe,easeInOutQuart:Pe=>Pe<.5?8*Pe*Pe*Pe*Pe:1-8*--Pe*Pe*Pe*Pe,easeInQuint:Pe=>Pe*Pe*Pe*Pe*Pe,easeOutQuint:Pe=>1+--Pe*Pe*Pe*Pe*Pe,easeInOutQuint:Pe=>Pe<.5?16*Pe*Pe*Pe*Pe*Pe:1+16*--Pe*Pe*Pe*Pe*Pe,easeOutElastic:Pe=>Math.pow(2,-10*Pe)*Math.sin((Pe-1/4)*(2*Math.PI)/1)+1};function q(Pe){return Pe===window}class it{constructor(Ct,He,Ve,ve,ze,rt){this.container=Ct,this.listenerTarget=He,this.isWindow=Ve,this.to=ve,this.options=ze,this.isBrowser=rt,this.loop=()=>{this.timeLapsed+=this.tick,this.percentage=this.timeLapsed/this.options.duration,this.percentage=this.percentage>1?1:this.percentage,this.position=this.startPosition+(this.startPosition-this.to<=0?1:-1)*this.distance*me[this.options.easing](this.percentage),null!==this.lastPosition&&this.position===this.lastPosition?this.stop():(this.source$.next(this.position),this.isWindow?this.listenerTarget.scrollTo(0,Math.floor(this.position)):this.container.scrollTop=Math.floor(this.position),this.lastPosition=this.position)},this.tick=16,this.interval=null,this.lastPosition=null,this.timeLapsed=0,this.windowScrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,this.startPosition=this.container?this.isWindow?this.windowScrollTop:this.container.scrollTop:this.windowScrollTop,this.container&&!this.isWindow&&(this.to=this.to-this.container.getBoundingClientRect().top+this.startPosition);const nt=this.startPosition-this.to;this.distance=this.container?Math.abs(this.startPosition-this.to):this.to,this.mappedOffset=this.options.offset,this.isBrowser&&this.options.offsetMap.forEach((At,Ue)=>this.mappedOffset=window.innerWidth>Ue?At:this.mappedOffset),this.distance+=this.mappedOffset*(nt<=0?1:-1),this.source$=new V.t}start(){return clearInterval(this.interval),this.interval=setInterval(this.loop,this.tick),this.source$.asObservable()}stop(){clearInterval(this.interval),this.interval=null,this.source$.complete()}}let dt=(()=>{class Pe{constructor(He,Ve){this.document=He,this.platformId=Ve,this.interruptiveEvents=["mousewheel","DOMMouseScroll","touchstart"]}scrollTo(He){return(0,m.NF)(this.platformId)?this.start(He):(new V.t).asObservable()}start(He){const Ve={...pe,...He};this.animation&&this.animation.stop();const ve=this.getNode(Ve.target);if(Ve.target&&!ve)return(0,_e._)(()=>new Error("Unable to find Target Element"));const ze=this.getContainer(Ve,ve);if(Ve.container&&!ze)return(0,_e._)(()=>new Error("Unable to find Container Element"));const rt=this.getListenerTarget(ze)||window;let nt=ze?ze.getBoundingClientRect().top:0;ve&&(nt=q(rt)?window.scrollY+ve.getBoundingClientRect().top:ve.getBoundingClientRect().top),this.animation=new it(ze,rt,q(rt),nt,Ve,(0,m.NF)(this.platformId));const At=()=>this.animation.stop();this.addInterruptiveEventListeners(rt,At);const Ue=this.animation.start();return this.subscribeToAnimation(Ue,rt,At),Ue}subscribeToAnimation(He,Ve,ve){const ze=He.subscribe({complete:()=>{this.removeInterruptiveEventListeners(this.interruptiveEvents,Ve,ve),ze.unsubscribe()}})}getContainer(He,Ve){let ve=null;return He.container?ve=this.getNode(He.container,!0):Ve&&(ve=this.getFirstScrollableParent(Ve)),ve}addInterruptiveEventListeners(He,Ve){He||(He=window),this.interruptiveEvents.forEac
1h(ve=>He.addEventListener(ve,Ve,!!this.supportPassive()&&{passive:!0}))}supportPassive(){let He=!1;try{const Ve=Object.defineProperty({},"passive",{get:()=>{He=!0}});window.addEventListener("testPassive",null,Ve),window.removeEventListener("testPassive",null,Ve)}catch{}return He}removeInterruptiveEventListeners(He,Ve,ve){Ve||(Ve=window),He.forEach(ze=>Ve.removeEventListener(ze,ve))}getFirstScrollableParent(He){let Ve=window.getComputedStyle(He);const ve=/(auto|scroll|overlay)/;if("fixed"===Ve.position)return null;let ze=He;for(;ze.parentElement;)if(ze=ze.parentElement,Ve=window.getComputedStyle(ze),"absolute"!==Ve.position&&"hidden"!==Ve.overflow&&"hidden"!==Ve.overflowY&&(ve.test(Ve.overflow+Ve.overflowY)||"BODY"===ze.tagName))return ze;return null}getNode(He,Ve=!1){let ve;return function Re(Pe){return"string"==typeof Pe||Pe instanceof String}(He)?ve=!Ve||"body"!==He&&"BODY"!==He?this.document.getElementById(function ie(Pe){return"#"===Pe.substring(0,1)?Pe.substring(1):Pe}(He)):this.document.body:function lt(Pe){return!isNaN(parseFloat(Pe))&&isFinite(Pe)}(He)?ve=this.document.getElementById(String(He)):function de(Pe){return Pe instanceof c.ElementRef}(He)?ve=He.nativeElement:function be(Pe){return Pe instanceof HTMLElement}(He)&&(ve=He),ve}getListenerTarget(He){return He?this.isDocumentBody(He)?window:He:null}isDocumentBody(He){return"BODY"===He.tagName.toUpperCase()}}return Pe.\u0275fac=function(He){return new(He||Pe)(c.\u0275\u0275inject(m.K0),c.\u0275\u0275inject(c.PLATFORM_ID))},Pe.\u0275prov=c.\u0275\u0275defineInjectable({token:Pe,factory:Pe.\u0275fac}),Pe})(),Me=(()=>{class Pe{static forRoot(){return{ngModule:Pe,providers:[dt]}}}return Pe.\u0275fac=function(He){return new(He||Pe)},Pe.\u0275mod=c.\u0275\u0275defineNgModule({type:Pe}),Pe.\u0275inj=c.\u0275\u0275defineInjector({}),Pe})()},259:(ln,et,C)=>{"use strict";C.d(et,{C6:()=>c.getApps,Mq:()=>c.getApp});var c=C(6881);(0,c.registerVersion)("firebase","9.23.0","app")},9260:(ln,et,C)=>{"use strict";C.d(et,{Z:()=>c.Z});var c=C(3942);c.Z.registerVersion("firebase","9.23.0","app-compat")},2644:(ln,et,C)=>{"use strict";C.r(et);var c=C(5861),m=C(3942),V=C(2090),_e=C(6881),pe=C(7582),me=C(1877),Oe=C(4859);const Re={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},be_EMAIL_SIGNIN="EMAIL_SIGNIN",be_PASSWORD_RESET="PASSWORD_RESET",be_RECOVER_EMAIL="RECOVER_EMAIL",be_REVERT_SECOND_FACTOR_ADDITION="REVERT_SECOND_FACTOR_ADDITION",be_VERIFY_AND_CHANGE_EMAIL="VERIFY_AND_CHANGE_EMAIL",be_VERIFY_EMAIL="VERIFY_EMAIL";const dt=function lt(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","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.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is
vendor: 7,825 bytes, line 1
1 malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."
1}},wt=function it(){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."}},Me=new V.LL("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."}),Ct=new me.Yd("@firebase/auth");function Ve(v,...h){Ct.logLevel<=me.in.ERROR&&Ct.error(`Auth (${_e.SDK_VERSION}): ${v}`,...h)}function ve(v,...h){throw At(v,...h)}function ze(v,...h){return At(v,...h)}function rt(v,h,f){const I=Object.assign(Object.assign({},wt()),{[h]:f});return new V.LL("auth","Firebase",I).create(h,{appName:v.name})}function nt(v,h,f){if(!(h instanceof f))throw f.name!==h.constructor.name&&ve(v,"argument-error"),rt(v,"argument-error",`Type of ${h.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function At(v,...h){if("string"!=typeof v){const f=h[0],I=[...h.slice(1)];return I[0]&&(I[0].appName=v.name),v._errorFactory.create(f,...I)}return Me.create(v,...h)}function Ue(v,h,...f){if(!v)throw At(h,...f)}function Wt(v){const h="INTERNAL ASSERTION FAILED: "+v;throw Ve(h),new Error(h)}function je(v,h){v||Wt(h)}function vt(){var v;return typeof self<"u"&&(null===(v=self.location)||void 0===v?void 0:v.href)||""}function jt(){return"http:"===On()||"https:"===On()}function On(){var v;return typeof self<"u"&&(null===(v=self.location)||void 0===v?void 0:v.protocol)||null}class yn{constructor(h,f){this.shortDelay=h,this.longDelay=f,je(f>h,"Short delay should be less than long delay!"),this.isMobile=(0,V.uI)()||(0,V.b$)()}get(){return function Sn(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(jt()||(0,V.ru)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(v,h){je(v.emulator,"Emulator should always be set here");const{url:f}=v.emulator;return h?`${f}${h.startsWith("/")?h.slice(1):h}`:f}class Ne{static initialize(h,f,I){this.fetchImpl=h,f&&(this.headersImpl=f),I&&(this.responseImpl=I)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void Wt("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:void Wt("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:void Wt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Xe={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",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",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-rec
1aptcha-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"},qe=new yn(3e4,6e4);function yt(v,h){return v.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:v.tenantId}):h}function ft(v,h,f,I){return $t.apply(this,arguments)}function $t(){return($t=(0,c.Z)(function*(v,h,f,I,G={}){return cn(v,G,(0,c.Z)(function*(){let ge={},at={};I&&("GET"===h?at=I:ge={body:JSON.stringify(I)});const Vt=(0,V.xO)(Object.assign({key:v.config.apiKey},at)).slice(1),Dn=yield v._getAdditionalHeaders();return Dn["Content-Type"]="application/json",v.languageCode&&(Dn["X-Firebase-Locale"]=v.languageCode),Ne.fetch()(qn(v,v.config.apiHost,f,Vt),Object.assign({method:h,headers:Dn,referrerPolicy:"no-referrer"},ge))}))})).apply(this,arguments)}function cn(v,h,f){return tr.apply(this,arguments)}function tr(){return(tr=(0,c.Z)(function*(v,h,f){v._canInitEmulator=!1;const I=Object.assign(Object.assign({},Xe),h);try{const G=new nn(v),ge=yield Promise.race([f(),G.promise]);G.clearNetworkTimeout();const at=yield ge.json();if("needConfirmation"in at)throw hn(v,"account-exists-with-different-credential",at);if(ge.ok&&!("errorMessage"in at))return at;{const Vt=ge.ok?at.errorMessage:at.error.message,[Dn,zn]=Vt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Dn)throw hn(v,"credential-already-in-use",at);if("EMAIL_EXISTS"===Dn)throw hn(v,"email-already-in-use",at);if("USER_DISABLED"===Dn)throw hn(v,"user-disabled",at);const ar=I[Dn]||Dn.toLowerCase().replace(/[_\s]+/g,"-");if(zn)throw rt(v,ar,zn);ve(v,ar)}}catch(G){if(G instanceof V.ZR)throw G;ve(v,"network-request-failed",{message:String(G)})}})).apply(this,arguments)}function wn(v,h,f,I){return Wn.apply(this,arguments)}function Wn(){return(Wn=(0,c.Z)(function*(v,h,f,I,G={}){const ge=yield ft(v,h,f,I,G);return"mfaPendingCredential"in ge&&ve(v,"multi-factor-auth-required",{_serverResponse:ge}),ge})).apply(this,arguments)}function qn(v,h,f,I){const G=`${h}${f}?${I}`;return v.config.emulator?ae(v.config,G):`${v.config.apiScheme}://${G}`}class nn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((f,I)=>{this.timer=setTimeout(()=>I(ze(this.auth,"network-request-failed")),qe.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function hn(v,h,f){const I={appName:v.name};f.email&&(I.email=f.email),f.phoneNumber&&(I.phoneNumber=f.phoneNumber);const G=ze(v,h,I);return G.customData._tokenResponse=f,G}function _n(){return(_n=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function Mt(){return(Mt=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:update",h)})).apply(this,arguments)}function se(){return(se=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function K(v){if(v)try{const h=new Date(Number(v));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function It(){return(It=(0,c.Z)(function*(v,h=!1){const f=(0,V.m9)(v),I=yield f.getIdToken(h),G=qt(I);Ue(G&&G.exp&&G.auth_time&&G.iat,f.auth,"internal-error");const ge="object"==typeof G.firebase?G.firebase:void 0,at=ge?.sign_in_provider;return{claims:G,token:I,authTime:K(Yt(G.auth_time)),issuedAtTime:K(Yt(G.iat)),expirationTime:K(Yt(G.exp)),signInProvider:at||null,signInSecondFactor:ge?.sign_in_second_factor||null}})).apply(this,arguments)}function Yt(v){return 1e3*Number(v)}function qt(v){const[h,f,I]=v.split(".");if(void 0===h||void 0===f||void 0===I)return Ve("JWT malformed, contained fewer than 3 sections"),null;try{const G=(0,V.tV)(f);return G?JSON.parse(G):(Ve("Failed to decode base64 JWT payload"),null)}catch(G){return Ve("Caught error parsing JWT payload as JSON",G?.toString()),null}}function sn(v,h){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,c.Z)(function*(v,h,f=!1){if(f)return h;try{return yield h}catch(I){throw I instanceof V.ZR&&function Mn({code:v}){return"auth/user-disabled"===v||"auth/user-token-expired"===v}(I)&&v.auth.currentUser===v&&(yield v.auth.signOut()),I}})).apply(this,arguments)}class bn{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 f;if(h){const I=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),I}{this.errorBackoff=3e4;const G=(null!==(f=this.user.stsTokenManager.expirationTime)&&void 0!==f?f:0)-Date.now()-3e5;return Math.max(0,G)}}schedule(h=!1){var f=this;if(!this.isRunning)return;const I=this.getInterval(h);this.timerId=setTimeout((0,c.Z)(function*(){yield f.iteration()}),I)}iteration(){var h=this;return(0,c.Z)(function*(){try{yield h.user.getIdToken(!0)}catch(f){return void("auth/network-request-failed"===f?.code&&h.schedule(!0))}h.schedule()})()}}class Dr{constructor(h,f){this.createdAt=h,this.lastLoginAt=f,this._initializeTime()}_initializeTime(){this.lastSignInTime=K(this.lastLoginAt),this.creationTime=K(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function vr(v){return Gn.apply(this,arguments)}function Gn(){return Gn=(0,c.Z)(function*(v){var h;const f=v.auth,I=yield v.getIdToken(),G=yield sn(v,function Nt(v,h){return se.apply(this,arguments)}(f,{idToken:I}));
1Ue(G?.users.length,f,"internal-error");const ge=G.users[0];v._notifyReloadListener(ge);const at=null!==(h=ge.providerUserInfo)&&void 0!==h&&h.length?function ct(v){return v.map(h=>{var{providerId:f}=h,I=(0,pe._T)(h,["providerId"]);return{providerId:f,uid:I.rawId||"",displayName:I.displayName||null,email:I.email||null,phoneNumber:I.phoneNumber||null,photoURL:I.photoUrl||null}})}(ge.providerUserInfo):[],Vt=function Se(v,h){return[...v.filter(I=>!h.some(G=>G.providerId===I.providerId)),...h]}(v.providerData,at),ar=!!v.isAnonymous&&!(v.email&&ge.passwordHash||Vt?.length),dr={uid:ge.localId,displayName:ge.displayName||null,photoURL:ge.photoUrl||null,email:ge.email||null,emailVerified:ge.emailVerified||!1,phoneNumber:ge.phoneNumber||null,tenantId:ge.tenantId||null,providerData:Vt,metadata:new Dr(ge.createdAt,ge.lastLoginAt),isAnonymous:ar};Object.assign(v,dr)}),Gn.apply(this,arguments)}function en(){return(en=(0,c.Z)(function*(v){const h=(0,V.m9)(v);yield vr(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Q(){return(Q=(0,c.Z)(function*(v,h){const f=yield cn(v,{},(0,c.Z)(function*(){const I=(0,V.xO)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:G,apiKey:ge}=v.config,at=qn(v,G,"/v1/token",`key=${ge}`),Vt=yield v._getAdditionalHeaders();return Vt["Content-Type"]="application/x-www-form-urlencoded",Ne.fetch()(at,{method:"POST",headers:Vt,body:I})}));return{accessToken:f.access_token,expiresIn:f.expires_in,refreshToken:f.refresh_token}})).apply(this,arguments)}class ue{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Ue(h.idToken,"internal-error"),Ue(typeof h.idToken<"u","internal-error"),Ue(typeof h.refreshToken<"u","internal-error");const f="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):function dn(v){const h=qt(v);return Ue(h,"internal-error"),Ue(typeof h.exp<"u","internal-error"),Ue(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,f)}getToken(h,f=!1){var I=this;return(0,c.Z)(function*(){return Ue(!I.accessToken||I.refreshToken,h,"user-token-expired"),f||!I.accessToken||I.isExpired?I.refreshToken?(yield I.refresh(h,I.refreshToken),I.accessToken):null:I.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,f){var I=this;return(0,c.Z)(function*(){const{accessToken:G,refreshToken:ge,expiresIn:at}=yield function We(v,h){return Q.apply(this,arguments)}(h,f);I.updateTokensAndExpiration(G,ge,Number(at))})()}updateTokensAndExpiration(h,f,I){this.refreshToken=f||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*I}static fromJSON(h,f){const{refreshToken:I,accessToken:G,expirationTime:ge}=f,at=new ue;return I&&(Ue("string"==typeof I,"internal-error",{appName:h}),at.refreshToken=I),G&&(Ue("string"==typeof G,"internal-error",{appName:h}),at.accessToken=G),ge&&(Ue("number"==typeof ge,"internal-error",{appName:h}),at.expirationTime=ge),at}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 ue,this.toJSON())}_performRefresh(){return Wt("not implemented")}}function fe(v,h){Ue("string"==typeof v||typeof v>"u","internal-error",{appName:h})}class X{constructor(h){var{uid:f,auth:I,stsTokenManager:G}=h,ge=(0,pe._T)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new bn(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=f,this.auth=I,this.stsTokenManager=G,this.accessToken=G.accessToken,this.displayName=ge.displayName||null,this.email=ge.email||null,this.emailVerified=ge.emailVerified||!1,this.phoneNumber=ge.phoneNumber||null,this.photoURL=ge.photoURL||null,this.isAnonymous=ge.isAnonymous||!1,this.tenantId=ge.tenantId||null,this.providerData=ge.providerData?[...ge.providerData]:[],this.metadata=new Dr(ge.createdAt||void 0,ge.lastLoginAt||void 0)}getIdToken(h){var f=this;return(0,c.Z)(function*(){const I=yield sn(f,f.stsTokenManager.getToken(f.auth,h));return Ue(I,f.auth,"internal-error"),f.accessToken!==I&&(f.accessToken=I,yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)),I})()}getIdTokenResult(h){return function Be(v){return It.apply(this,arguments)}(this,h)}reload(){return function bt(v){return en.apply(this,arguments)}(this)}_assign(h){this!==h&&(Ue(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(f=>Object.assign({},f)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const f=new X(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return f.metadata._copy(this.metadata),f}_onReload(h){Ue(!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,f=!1){var I=this;return(0,c.Z)(function*(){let G=!1;h.idToken&&h.idToken!==I.stsTokenManager.accessToken&&(I.stsTokenManager.updateFromServerResponse(h),G=!0),f&&(yield vr(I)),yield I.auth._persistUserIfCurrent(I),G&&I.auth._notifyListenersIfCurrent(I)})()}delete(){var h=this;return(0,c.Z)(function*(){const f=yield h.getIdToken();return yield sn(h,function rn(v,h){return _n.apply(this,arguments)}(h.auth,{idToken:f})),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,isA
1nonymous: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,f){var I,G,ge,at,Vt,Dn,zn,ar;const dr=null!==(I=f.displayName)&&void 0!==I?I:void 0,ts=null!==(G=f.email)&&void 0!==G?G:void 0,jo=null!==(ge=f.phoneNumber)&&void 0!==ge?ge:void 0,Ec=null!==(at=f.photoURL)&&void 0!==at?at:void 0,Df=null!==(Vt=f.tenantId)&&void 0!==Vt?Vt:void 0,ti=null!==(Dn=f._redirectEventId)&&void 0!==Dn?Dn:void 0,Ou=null!==(zn=f.createdAt)&&void 0!==zn?zn:void 0,Ed=null!==(ar=f.lastLoginAt)&&void 0!==ar?ar:void 0,{uid:Nl,emailVerified:Na,isAnonymous:Pu,providerData:xu,stsTokenManager:bc}=f;Ue(Nl&&bc,h,"internal-error");const Tf=ue.fromJSON(this.name,bc);Ue("string"==typeof Nl,h,"internal-error"),fe(dr,h.name),fe(ts,h.name),Ue("boolean"==typeof Na,h,"internal-error"),Ue("boolean"==typeof Pu,h,"internal-error"),fe(jo,h.name),fe(Ec,h.name),fe(Df,h.name),fe(ti,h.name),fe(Ou,h.name),fe(Ed,h.name);const ku=new X({uid:Nl,auth:h,email:ts,emailVerified:Na,displayName:dr,isAnonymous:Pu,photoURL:Ec,phoneNumber:jo,tenantId:Df,stsTokenManager:Tf,createdAt:Ou,lastLoginAt:Ed});return xu&&Array.isArray(xu)&&(ku.providerData=xu.map(kp=>Object.assign({},kp))),ti&&(ku._redirectEventId=ti),ku}static _fromIdTokenResponse(h,f,I=!1){return(0,c.Z)(function*(){const G=new ue;G.updateFromServerResponse(f);const ge=new X({uid:f.localId,auth:h,stsTokenManager:G,isAnonymous:I});return yield vr(ge),ge})()}}const ce=new Map;function xe(v){je(v instanceof Function,"Expected a class definition");let h=ce.get(v);return h?(je(h instanceof v,"Instance stored in cache mismatched with class"),h):(h=new v,ce.set(v,h),h)}const Ut=(()=>{class v{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,c.Z)(function*(){return!0})()}_set(f,I){var G=this;return(0,c.Z)(function*(){G.storage[f]=I})()}_get(f){var I=this;return(0,c.Z)(function*(){const G=I.storage[f];return void 0===G?null:G})()}_remove(f){var I=this;return(0,c.Z)(function*(){delete I.storage[f]})()}_addListener(f,I){}_removeListener(f,I){}}return v.type="NONE",v})();function ke(v,h,f){return`firebase:${v}:${h}:${f}`}class Fe{constructor(h,f,I){this.persistence=h,this.auth=f,this.userKey=I;const{config:G,name:ge}=this.auth;this.fullUserKey=ke(this.userKey,G.apiKey,ge),this.fullPersistenceKey=ke("persistence",G.apiKey,ge),this.boundEventHandler=f._onStorageEvent.bind(f),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,c.Z)(function*(){const f=yield h.persistence._get(h.fullUserKey);return f?X._fromJSON(h.auth,f):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var f=this;return(0,c.Z)(function*(){if(f.persistence===h)return;const I=yield f.getCurrentUser();return yield f.removeCurrentUser(),f.persistence=h,I?f.setCurrentUser(I):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,f,I="authUser"){return(0,c.Z)(function*(){if(!f.length)return new Fe(xe(Ut),h,I);const G=(yield Promise.all(f.map(function(){var zn=(0,c.Z)(function*(ar){if(yield ar._isAvailable())return ar});return function(ar){return zn.apply(this,arguments)}}()))).filter(zn=>zn);let ge=G[0]||xe(Ut);const at=ke(I,h.config.apiKey,h.name);let Vt=null;for(const zn of f)try{const ar=yield zn._get(at);if(ar){const dr=X._fromJSON(h,ar);zn!==ge&&(Vt=dr),ge=zn;break}}catch{}const Dn=G.filter(zn=>zn._shouldAllowMigration);return ge._shouldAllowMigration&&Dn.length?(ge=Dn[0],Vt&&(yield ge._set(at,Vt.toJSON())),yield Promise.all(f.map(function(){var zn=(0,c.Z)(function*(ar){if(ar!==ge)try{yield ar._remove(at)}catch{}});return function(ar){return zn.apply(this,arguments)}}())),new Fe(ge,h,I)):new Fe(ge,h,I)})()}}function Ge(v){const h=v.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if($e(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Et(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(j(h))return"Blackberry";if($(h))return"Webos";if(ht(h))return"Safari";
1if((h.includes("chrome/")||an(h))&&!h.includes("edge/"))return"Chrome";if(oe(h))return"Android";{const I=v.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===I?.length)return I[1]}return"Other"}function Et(v=(0,V.z$)()){return/firefox\//i.test(v)}function ht(v=(0,V.z$)()){const h=v.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function an(v=(0,V.z$)()){return/crios\//i.test(v)}function $e(v=(0,V.z$)()){return/iemobile/i.test(v)}function oe(v=(0,V.z$)()){return/android/i.test(v)}function j(v=(0,V.z$)()){return/blackberry/i.test(v)}function $(v=(0,V.z$)()){return/webos/i.test(v)}function Ie(v=(0,V.z$)()){return/iphone|ipad|ipod/i.test(v)||/macintosh/i.test(v)&&/mobile/i.test(v)}function nr(v=(0,V.z$)()){return Ie(v)||oe(v)||$(v)||j(v)||/windows phone/i.test(v)||$e(v)}function Rt(v,h=[]){let f;switch(v){case"Browser":f=Ge((0,V.z$)());break;case"Worker":f=`${Ge((0,V.z$)())}-${v}`;break;default:f=v}const I=h.length?h.join(","):"FirebaseCore-web";return`${f}/JsCore/${_e.SDK_VERSION}/${I}`}function pn(){return(pn=(0,c.Z)(function*(v){return(yield ft(v,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function Kn(v,h){return Yn.apply(this,arguments)}function Yn(){return(Yn=(0,c.Z)(function*(v,h){return ft(v,"GET","/v2/recaptchaConfig",yt(v,h))})).apply(this,arguments)}function Tr(v){return void 0!==v&&void 0!==v.getResponse}function Pn(v){return void 0!==v&&void 0!==v.enterprise}class kr{constructor(h){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.emailPasswordEnabled=h.recaptchaEnforcementState.some(f=>"EMAIL_PASSWORD_PROVIDER"===f.provider&&"OFF"!==f.enforcementState)}}function _i(v){return new Promise((h,f)=>{const I=document.createElement("script");I.setAttribute("src",v),I.onload=h,I.onerror=G=>{const ge=ze("internal-error");ge.customData=G,f(ge)},I.type="text/javascript",I.charset="UTF-8",function wr(){var v,h;return null!==(h=null===(v=document.getElementsByTagName("head"))||void 0===v?void 0:v[0])&&void 0!==h?h:document}().appendChild(I)})}function li(v){return`__${v}${Math.floor(1e6*Math.random())}`}const Rs="NO_RECAPTCHA";class Si{constructor(h){this.type="recaptcha-enterprise",this.auth=Nr(h)}verify(h="verify",f=!1){var I=this;return(0,c.Z)(function*(){function ge(){return ge=(0,c.Z)(function*(Vt){if(!f){if(null==Vt.tenantId&&null!=Vt._agentRecaptchaConfig)return Vt._agentRecaptchaConfig.siteKey;if(null!=Vt.tenantId&&void 0!==Vt._tenantRecaptchaConfigs[Vt.tenantId])return Vt._tenantRecaptchaConfigs[Vt.tenantId].siteKey}return new Promise(function(){var Dn=(0,c.Z)(function*(zn,ar){Kn(Vt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(dr=>{if(void 0!==dr.recaptchaKey){const ts=new kr(dr);return null==Vt.tenantId?Vt._agentRecaptchaConfig=ts:Vt._tenantRecaptchaConfigs[Vt.tenantId]=ts,zn(ts.siteKey)}ar(new Error("recaptcha Enterprise site key undefined"))}).catch(dr=>{ar(dr)})});return function(zn,ar){return Dn.apply(this,arguments)}}())}),ge.apply(this,arguments)}function at(Vt,Dn,zn){const ar=window.grecaptcha;Pn(ar)?ar.enterprise.ready(()=>{ar.enterprise.execute(Vt,{action:h}).then(dr=>{Dn(dr)}).catch(()=>{Dn(Rs)})}):zn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Vt,Dn)=>{(function G(Vt){return ge.apply(this,arguments)})(I.auth).then(zn=>{if(!f&&Pn(window.grecaptcha))at(zn,Vt,Dn);else{if(typeof window>"u")return void Dn(new Error("RecaptchaVerifier is only supported in browser"));_i("https://www.google.com/recaptcha/enterprise.js?render="+zn).then(()=>{at(zn,Vt,Dn)}).catch(ar=>{Dn(ar)})}}).catch(zn=>{Dn(zn)})})})()}}function Tn(v,h,f){return pr.apply(this,arguments)}function pr(){return(pr=(0,c.Z)(function*(v,h,f,I=!1){const G=new Si(v);let ge;try{ge=yield G.verify(f)}catch{ge=yield G.verify(f,!0)}const at=Object.assign({},h);return Object.assign(at,I?{captchaResp:ge}:{captchaResponse:ge}),Object.assign(at,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(at,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),at})).apply(this,arguments)}class ci{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,f){const I=ge=>new Promise((at,Vt)=>{try{at(h(ge))}catch(Dn){Vt(Dn)}});I.onAbort=f,this.queue.push(I);const G=this.queue.length-1;return()=>{this.queue[G]=()=>Promise.resolve()}}runMiddleware(h){var f=this;return(0,c.Z)(function*(){if(f.auth.currentUser===h)return;const I=[];try{for(const G of f.queue)yield G(h),G.onAbort&&I.push(G.onAbort)}catch(G){I.reverse();for(const ge of I)try{ge()}catch{}throw f.auth._errorFactory.create("login-blocked",{originalMessage:G?.message})}})()}}class qi{constructor(h,f,I,G){this.app=h,this.heartbeatServiceProvider=f,this.appCheckServiceProvider=I,this.config=G,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Zr(this),this.idTokenSubscription=new Zr(this),this.beforeStateQueue=new ci(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Me,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=h.name,this.clientVersion=G.sdkClientVersion}_initializeWithPersistence(h,f){var I=this;return f&&(this._popupRedirectResolver=xe(f)),this._initializationPromise=this.queue((0,c.Z)(function*(){var G,ge;if(!I._deleted&&(I.persistenceManager=yield Fe.create(I,h),!I._deleted)){if
1(null!==(G=I._popupRedirectResolver)&&void 0!==G&&G._shouldInitProactively)try{yield I._popupRedirectResolver._initialize(I)}catch{}yield I.initializeCurrentUser(f),I.lastNotifiedUid=(null===(ge=I.currentUser)||void 0===ge?void 0:ge.uid)||null,!I._deleted&&(I._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,c.Z)(function*(){if(h._deleted)return;const f=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||f){if(h.currentUser&&f&&h.currentUser.uid===f.uid)return h._currentUser._assign(f),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(f,!0)}})()}initializeCurrentUser(h){var f=this;return(0,c.Z)(function*(){var I;const G=yield f.assertedPersistence.getCurrentUser();let ge=G,at=!1;if(h&&f.config.authDomain){yield f.getOrInitRedirectPersistenceManager();const Vt=null===(I=f.redirectUser)||void 0===I?void 0:I._redirectEventId,Dn=ge?._redirectEventId,zn=yield f.tryRedirectSignIn(h);(!Vt||Vt===Dn)&&zn?.user&&(ge=zn.user,at=!0)}if(!ge)return f.directlySetCurrentUser(null);if(!ge._redirectEventId){if(at)try{yield f.beforeStateQueue.runMiddleware(ge)}catch(Vt){ge=G,f._popupRedirectResolver._overrideRedirectResult(f,()=>Promise.reject(Vt))}return ge?f.reloadAndSetCurrentUserOrClear(ge):f.directlySetCurrentUser(null)}return Ue(f._popupRedirectResolver,f,"argument-error"),yield f.getOrInitRedirectPersistenceManager(),f.redirectUser&&f.redirectUser._redirectEventId===ge._redirectEventId?f.directlySetCurrentUser(ge):f.reloadAndSetCurrentUserOrClear(ge)})()}tryRedirectSignIn(h){var f=this;return(0,c.Z)(function*(){let I=null;try{I=yield f._popupRedirectResolver._completeRedirectFn(f,h,!0)}catch{yield f._setRedirectUser(null)}return I})()}reloadAndSetCurrentUserOrClear(h){var f=this;return(0,c.Z)(function*(){try{yield vr(h)}catch(I){if("auth/network-request-failed"!==I?.code)return f.directlySetCurrentUser(null)}return f.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function St(){if(typeof navigator>"u")return null;const v=navigator;return v.languages&&v.languages[0]||v.language||null}()}_delete(){var h=this;return(0,c.Z)(function*(){h._deleted=!0})()}updateCurrentUser(h){var f=this;return(0,c.Z)(function*(){const I=h?(0,V.m9)(h):null;return I&&Ue(I.auth.config.apiKey===f.config.apiKey,f,"invalid-user-token"),f._updateCurrentUser(I&&I._clone(f))})()}_updateCurrentUser(h,f=!1){var I=this;return(0,c.Z)(function*(){if(!I._deleted)return h&&Ue(I.tenantId===h.tenantId,I,"tenant-id-mismatch"),f||(yield I.beforeStateQueue.runMiddleware(h)),I.queue((0,c.Z)(function*(){yield I.directlySetCurrentUser(h),I.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,c.Z)(function*(){return yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0)})()}setPersistence(h){var f=this;return this.queue((0,c.Z)(function*(){yield f.assertedPersistence.setPersistence(xe(h))}))}initializeRecaptchaConfig(){var h=this;return(0,c.Z)(function*(){const f=yield Kn(h,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),I=new kr(f);null==h.tenantId?h._agentRecaptchaConfig=I:h._tenantRecaptchaConfigs[h.tenantId]=I,I.emailPasswordEnabled&&new Si(h).verify()})()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new V.LL("auth","Firebase",h())}onAuthStateChanged(h,f,I){return this.registerStateListener(this.authStateSubscription,h,f,I)}beforeAuthStateChanged(h,f){return this.beforeStateQueue.pushCallback(h,f)}onIdTokenChanged(h,f,I){return this.registerStateListener(this.idTokenSubscription,h,f,I)}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,f){var I=this;return(0,c.Z)(function*(){const G=yield I.getOrInitRedirectPersistenceManager(f);return null===h?G.removeCurrentUser():G.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var f=this;return(0,c.Z)(function*(){if(!f.redirectPersistenceManager){const I=h&&xe(h)||f._popupRedirectResolver;Ue(I,f,"argument-error"),f.redirectPersistenceManager=yield Fe.create(f,[xe(I._redirectPersistence)],"redirectUser"),f.redirectUser=yield f.redirectPersistenceManager.getCurrentUser()}return f.redirectPersistenceManager})()}_redirectUserForId(h){var f=this;return(0,c.Z)(function*(){var I,G;return f._isInitialized&&(yield f.queue((0,c.Z)(function*(){}))),(null===(I=f._currentUser)||void 0===I?void 0:I._redirectEventId)===h?f._currentUser:(null===(G=f.redirectUser)||void 0===G?void 0:G._redirectEventId)===h?f.redirectUser:null})()}_persistUserIfCurrent(h){var f=this;return(0,c.Z)(function*(){if(h===f.currentUser)return f.queue((0,c.Z)(function*(){return f.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,f;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const I=null!==(f=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==f?f:null;this.lastNotifiedUid!==I&&(this.lastNotifiedUid=I,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,f,I,G){if(this._deleted)return()=>{};const ge="function"==typeof f?f:f.next.bind(f),at=this._isInitialized?Promise.resolve():this._initializationPromise;return Ue(at,this,"internal-error"),at.then(()=>ge(this.currentUser)),"function"==typeof f?h.addObserver(f,I,G):h.addObserver(f)}directlySetCurrentUser(h){var f=this;return(0,c.Z)(function*(){f.currentUser&&f.currentUser!==h&&f._currentUser._stopProactiveRefresh(),h&&f.isProactiveRefreshEnabled&&h._startProactiveRefresh(),f.currentUser=h,h?yield f.assertedPersistence.setCurrentUser(h):yield f.assertedPersistence.removeCurrentUser()})()}
1queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return Ue(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=Rt(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,c.Z)(function*(){var f;const I={"X-Client-Version":h.clientVersion};h.app.options.appId&&(I["X-Firebase-gmpid"]=h.app.options.appId);const G=yield null===(f=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===f?void 0:f.getHeartbeatsHeader();G&&(I["X-Firebase-Client"]=G);const ge=yield h._getAppCheckToken();return ge&&(I["X-Firebase-AppCheck"]=ge),I})()}_getAppCheckToken(){var h=this;return(0,c.Z)(function*(){var f;const I=yield null===(f=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===f?void 0:f.getToken();return I?.error&&function He(v,...h){Ct.logLevel<=me.in.WARN&&Ct.warn(`Auth (${_e.SDK_VERSION}): ${v}`,...h)}(`Error while retrieving App Check token: ${I.error}`),I?.token})()}}function Nr(v){return(0,V.m9)(v)}class Zr{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,V.ne)(f=>this.observer=f)}get next(){return Ue(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function Fi(v){const h=v.indexOf(":");return h<0?"":v.substr(0,h+1)}function ns(v){if(!v)return null;const h=Number(v);return isNaN(h)?null:h}class ds{constructor(h,f){this.providerId=h,this.signInMethod=f}toJSON(){return Wt("not implemented")}_getIdTokenResponse(h){return Wt("not implemented")}_linkToIdToken(h,f){return Wt("not implemented")}_getReauthenticationResolver(h){return Wt("not implemented")}}function wi(v,h){return ni.apply(this,arguments)}function ni(){return(ni=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:resetPassword",yt(v,h))})).apply(this,arguments)}function io(v,h){return Bi.apply(this,arguments)}function Bi(){return(Bi=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:update",h)})).apply(this,arguments)}function Os(){return(Os=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:update",yt(v,h))})).apply(this,arguments)}function Xr(v,h){return ui.apply(this,arguments)}function ui(){return(ui=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithPassword",yt(v,h))})).apply(this,arguments)}function Yi(v,h){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:sendOobCode",yt(v,h))})).apply(this,arguments)}function ut(){return(ut=(0,c.Z)(function*(v,h){return Yi(v,h)})).apply(this,arguments)}function Ot(v,h){return Jt.apply(this,arguments)}function Jt(){return(Jt=(0,c.Z)(function*(v,h){return Yi(v,h)})).apply(this,arguments)}function mn(v,h){return sr.apply(this,arguments)}function sr(){return(sr=(0,c.Z)(function*(v,h){return Yi(v,h)})).apply(this,arguments)}function Er(){return(Er=(0,c.Z)(function*(v,h){return Yi(v,h)})).apply(this,arguments)}function Pi(){return(Pi=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithEmailLink",yt(v,h))})).apply(this,arguments)}function ri(){return(ri=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithEmailLink",yt(v,h))})).apply(this,arguments)}class di extends ds{constructor(h,f,I,G=null){super("password",I),this._email=h,this._password=f,this._tenantId=G}static _fromEmailAndPassword(h,f){return new di(h,f,"password")}static _fromEmailAndCode(h,f,I=null){return new di(h,f,"emailLink",I)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const f="string"==typeof h?JSON.parse(h):h;if(f?.email&&f?.password){if("password"===f.signInMethod)return this._fromEmailAndPassword(f.email,f.password);if("emailLink"===f.signInMethod)return this._fromEmailAndCode(f.email,f.password,f.tenantId)}return null}_getIdTokenResponse(h){var f=this;return(0,c.Z)(function*(){var I;switch(f.signInMethod){case"password":const G={returnSecureToken:!0,email:f._email,password:f._password,clientType:"CLIENT_TYPE_WEB"};if(null!==(I=h._getRecaptchaConfig())&&void 0!==I&&I.emailPasswordEnabled){const ge=yield Tn(h,G,"signInWithPassword");return Xr(h,ge)}return Xr(h,G).catch(function(){var ge=(0,c.Z)(function*(at){if("auth/missing-rec
1aptcha-token"===at.code){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const Vt=yield Tn(h,G,"signInWithPassword");return Xr(h,Vt)}return Promise.reject(at)});return function(at){return ge.apply(this,arguments)}}());case"emailLink":return function Cr(v,h){return Pi.apply(this,arguments)}(h,{email:f._email,oobCode:f._password});default:ve(h,"internal-error")}})()}_linkToIdToken(h,f){var I=this;return(0,c.Z)(function*(){switch(I.signInMethod){case"password":return io(h,{idToken:f,returnSecureToken:!0,email:I._email,password:I._password});case"emailLink":return function ks(v,h){return ri.apply(this,arguments)}(h,{idToken:f,email:I._email,oobCode:I._password});default:ve(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function Di(v,h){return Hs.apply(this,arguments)}function Hs(){return(Hs=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithIdp",yt(v,h))})).apply(this,arguments)}class Qi extends ds{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(h){const f=new Qi(h.providerId,h.signInMethod);return h.idToken||h.accessToken?(h.idToken&&(f.idToken=h.idToken),h.accessToken&&(f.accessToken=h.accessToken),h.nonce&&!h.pendingToken&&(f.nonce=h.nonce),h.pendingToken&&(f.pendingToken=h.pendingToken)):h.oauthToken&&h.oauthTokenSecret?(f.accessToken=h.oauthToken,f.secret=h.oauthTokenSecret):ve("argument-error"),f}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(h){const f="string"==typeof h?JSON.parse(h):h,{providerId:I,signInMethod:G}=f,ge=(0,pe._T)(f,["providerId","signInMethod"]);if(!I||!G)return null;const at=new Qi(I,G);return at.idToken=ge.idToken||void 0,at.accessToken=ge.accessToken||void 0,at.secret=ge.secret,at.nonce=ge.nonce,at.pendingToken=ge.pendingToken||null,at}_getIdTokenResponse(h){return Di(h,this.buildRequest())}_linkToIdToken(h,f){const I=this.buildRequest();return I.idToken=f,Di(h,I)}_getReauthenticationResolver(h){const f=this.buildRequest();return f.autoCreate=!1,Di(h,f)}buildRequest(){const h={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)h.pendingToken=this.pendingToken;else{const f={};this.idToken&&(f.id_token=this.idToken),this.accessToken&&(f.access_token=this.accessToken),this.secret&&(f.oauth_token_secret=this.secret),f.providerId=this.providerId,this.nonce&&!this.pendingToken&&(f.nonce=this.nonce),h.postBody=(0,V.xO)(f)}return h}}function so(){return(so=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:sendVerificationCode",yt(v,h))})).apply(this,arguments)}function oo(){return(oo=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithPhoneNumber",yt(v,h))})).apply(this,arguments)}function Ns(){return(Ns=(0,c.Z)(function*(v,h){const f=yield wn(v,"POST","/v1/accounts:signInWithPhoneNumber",yt(v,h));if(f.temporaryProof)throw hn(v,"account-exists-with-different-credential",f);return f})).apply(this,arguments)}const gs={USER_NOT_FOUND:"user-not-found"};function ao(){return(ao=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithPhoneNumber",yt(v,Object.assign(Object.assign({},h),{operation:"REAUTH"})),gs)})).apply(this,arguments)}class rs extends ds{constructor(h){super("phone","phone"),this.params=h}static _fromVerification(h,f){return new rs({verificationId:h,verificationCode:f})}static _fromTokenResponse(h,f){return new rs({phoneNumber:h,temporaryProof:f})}_getIdTokenResponse(h){return function qo(v,h){return oo.apply(this,arguments)}(h,this._makeVerificationRequest())}_linkToIdToken(h,f){return function Ia(v,h){return Ns.apply(this,arguments)}(h,Object.assign({idToken:f},this._makeVerificationRequest()))}_getReauthenticationResolver(h){return function La(v,h){return ao.apply(this,arguments)}(h,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:h,phoneNumber:f,verificationId:I,verificationCode:G}=this.params;return h&&f?{temporaryProof:h,phoneNumber:f}:{sessionInfo:I,code:G}}toJSON(){const h={providerId:this.providerId};return this.params.phoneNumber&&(h.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(h.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(h.verificationCode=this.params.verificationCode),this.params.verificationId&&(h.verificationId=this.params.verificationId),h}static fromJSON(h){"string"==typeof h&&(h=JSON.parse(h));const{verificationId:f,verificationCode:I,phoneNumber:G,temporaryProof:ge}=h;return I||f||G||ge?new rs({verificationId:f,verificationCode:I,phoneNumber:G,temporaryProof:ge}):null}}class Fs{constructor(h){var f,I,G,ge,at,Vt;const Dn=(0,V.zd)((0,V.pd)(h)),zn=null!==(f=Dn.apiKey)&&void 0!==f?f:null,ar=null!==(I=Dn.oobCode)&&void 0!==I?I:null,dr=function lo(v){switch(v){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!==(G=Dn.mode)&&void 0!==G?G:null);Ue(zn&&ar&&dr,"argument-error"),this.apiKey=zn,this.operation=dr,this.code=ar,this.continueUrl=null!==(ge=Dn.continueUrl)&&void 0!==ge?ge:null,this.languageCode=null!==(at=Dn.languageCode)&&void 0!==at?at:null,this.tenantId=null!==(Vt=Dn.tenantId)&&void 0!==Vt?Vt:null}static parseLink(h){const f=function Ho(v){const h=(0,V.zd)((0,V.pd)(v)).link,f=h?(0,V.zd)((0,V.pd)(h)).deep_link_id:null,I=(0,V.zd)((0,V.pd)(v)).deep_link_id;return(I?(0,V.zd)((0,V.pd)(I)).link:null)||I||f||h||v}(h);try{return new Fs(f)}catch{return null}}}let Yo=(()=>{class v{constructor(){this.providerId=v.PROVIDER_ID}static credential(f,I){return di._fromEmailAndPassword(f,I)}static credentialWithLink(f,I){const G=Fs.parseLink(I);return Ue(G,"argument-error"),di._fromEmailAndCode(f,G.code,G.tenantId)}}return v.PROVIDER_ID="password",v.EMAIL_PASSWORD_SIGN_IN_METHOD="password",v.EMAIL_LINK_SIGN_IN_METHOD="emailLink",v})();class hs{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 ms extends hs{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}class Is extends ms{static credentialFromJSON(h){const f="string"==typeof h?JSON.parse(h):h;return Ue("providerId"in f&&"signInMethod"in f,"argument-error"),Qi._fromParams(f)}credential(h){return this._credential(Object.assign(Object.assign({},h),{nonce:h.rawNonce}))}_credential(h){return Ue(h.idToken||h.accessToken,"argument-error"),Qi._fromParams(Object.assign(Object.assign({}
1,h),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(h){return Is.oauthCredentialFromTaggedObject(h)}static credentialFromError(h){return Is.oauthCredentialFromTaggedObject(h.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:h}){if(!h)return null;const{oauthIdToken:f,oauthAccessToken:I,oauthTokenSecret:G,pendingToken:ge,nonce:at,providerId:Vt}=h;if(!I&&!G&&!f&&!ge||!Vt)return null;try{return new Is(Vt)._credential({idToken:f,accessToken:I,nonce:at,pendingToken:ge})}catch{return null}}}let co=(()=>{class v extends ms{constructor(){super("facebook.com")}static credential(f){return Qi._fromParams({providerId:v.PROVIDER_ID,signInMethod:v.FACEBOOK_SIGN_IN_METHOD,accessToken:f})}static credentialFromResult(f){return v.credentialFromTaggedObject(f)}static credentialFromError(f){return v.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f||!("oauthAccessToken"in f)||!f.oauthAccessToken)return null;try{return v.credential(f.oauthAccessToken)}catch{return null}}}return v.FACEBOOK_SIGN_IN_METHOD="facebook.com",v.PROVIDER_ID="facebook.com",v})(),So=(()=>{class v extends ms{constructor(){super("google.com"),this.addScope("profile")}static credential(f,I){return Qi._fromParams({providerId:v.PROVIDER_ID,signInMethod:v.GOOGLE_SIGN_IN_METHOD,idToken:f,accessToken:I})}static credentialFromResult(f){return v.credentialFromTaggedObject(f)}static credentialFromError(f){return v.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f)return null;const{oauthIdToken:I,oauthAccessToken:G}=f;if(!I&&!G)return null;try{return v.credential(I,G)}catch{return null}}}return v.GOOGLE_SIGN_IN_METHOD="google.com",v.PROVIDER_ID="google.com",v})(),Wi=(()=>{class v extends ms{constructor(){super("github.com")}static credential(f){return Qi._fromParams({providerId:v.PROVIDER_ID,signInMethod:v.GITHUB_SIGN_IN_METHOD,accessToken:f})}static credentialFromResult(f){return v.credentialFromTaggedObject(f)}static credentialFromError(f){return v.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f||!("oauthAccessToken"in f)||!f.oauthAccessToken)return null;try{return v.credential(f.oauthAccessToken)}catch{return null}}}return v.GITHUB_SIGN_IN_METHOD="github.com",v.PROVIDER_ID="github.com",v})();class xi extends ds{constructor(h,f){super(h,h),this.pendingToken=f}_getIdTokenResponse(h){return Di(h,this.buildRequest())}_linkToIdToken(h,f){const I=this.buildRequest();return I.idToken=f,Di(h,I)}_getReauthenticationResolver(h){const f=this.buildRequest();return f.autoCreate=!1,Di(h,f)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(h){const f="string"==typeof h?JSON.parse(h):h,{providerId:I,sign
1InMethod:G,pendingToken:ge}=f;return I&&G&&ge&&I===G?new xi(I,ge):null}static _create(h,f){return new xi(h,f)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class Ao extends hs{constructor(h){Ue(h.startsWith("saml."),"argument-error"),super(h)}static credentialFromResult(h){return Ao.samlCredentialFromTaggedObject(h)}static credentialFromError(h){return Ao.samlCredentialFromTaggedObject(h.customData||{})}static credentialFromJSON(h){const f=xi.fromJSON(h);return Ue(f,"argument-error"),f}static samlCredentialFromTaggedObject({_tokenResponse:h}){if(!h)return null;const{pendingToken:f,providerId:I}=h;if(!f||!I)return null;try{return xi._create(I,f)}catch{return null}}}let fs=(()=>{class v extends ms{constructor(){super("twitter.com")}static credential(f,I){return Qi._fromParams({providerId:v.PROVIDER_ID,signInMethod:v.TWITTER_SIGN_IN_METHOD,oauthToken:f,oauthTokenSecret:I})}static credentialFromResult(f){return v.credentialFromTaggedObject(f)}static credentialFromError(f){return v.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f)return null;const{oauthAccessToken:I,oauthTokenSecret:G}=f;if(!I||!G)return null;try{return v.credential(I,G)}catch{return null}}}return v.TWITTER_SIGN_IN_METHOD="twitter.com",v.PROVIDER_ID="twitter.com",v})();function Li(v,h){return Hi.apply(this,arguments)}function Hi(){return(Hi=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signUp",yt(v,h))})).apply(this,arguments)}class Ki{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,f,I,G=!1){return(0,c.Z)(function*(){const ge=yield X._fromIdTokenResponse(h,I,G),at=Ds(I);return new Ki({user:ge,providerId:at,_tokenResponse:I,operationType:f})})()}static _forOperation(h,f,I){return(0,c.Z)(function*(){yield h._updateTokensIfNecessary(I,!0);const G=Ds(I);return new Ki({user:h,providerId:G,_tokenResponse:I,operationType:f})})()}}function Ds(v){return v.providerId?v.providerId:"phoneNumber"in v?"phone":null}function Mi(){return(Mi=(0,c.Z)(function*(v){var h;const f=Nr(v);if(yield f._initializationPromise,null!==(h=f.currentUser)&&void 0!==h&&h.isAnonymous)return new Ki({user:f.currentUser,providerId:null,operationType:"signIn"});const I=yield Li(f,{returnSecureToken:!0}),G=yield Ki._fromIdTokenResponse(f,"signIn",I,!0);return yield f._updateCurrentUser(G.user),G})).apply(this,arguments)}class ys extends V.ZR{constructor(h,f,I,G){var ge;super(f.code,f.message),this.operationType=I,this.user=G,Object.setPrototypeOf(this,ys.prototype),this.customData={appName:h.name,tenantId:null!==(ge=h.tenantId)&&void 0!==ge?ge:void 0,_serverResponse:f.customData._serverResponse,operationType:I}}static _fromErrorAndOperation(h,f,I,G){return new ys(h,f,I,G)}}function xr(v,h,f,I){return("reauthenticate"===h?f._getReauthenticationResolver(v):f._getIdTokenResponse(v)).catch(ge=>{throw"auth/multi-factor-auth-required"===ge.code?ys._fromErrorAndOperation(v,ge,h,I):ge})}function Xi(v){return new Set(v.map(({providerId:h})=>h).filter(h=>!!h))}function Vi(){return Vi=(0,c.Z)(function*(v,h){const f=(0,V.m9)(v);yield zs(!0,f,h);const{providerUserInfo:I}=yield function xn(v,h){return Mt.apply(this,arguments)}(f.auth,{idToken:yield f.getIdToken(),deleteProvider:[h]}),G=Xi(I||[]);return f.providerData=f.providerData.filter(ge=>G.has(ge.providerId)),G.has("phone")||(f.phoneNumber=null),yield f.auth._persistUserIfCurrent(f),f}),Vi.apply(this,arguments)}function Ci(v,h){return uo.apply(this,arguments)}function uo(){return(uo=(0,c.Z)(function*(v,h,f=!1){const I=yield sn(v,h._linkToIdToken(v.auth,yield v.getIdToken()),f);return Ki._forOperation(v,"link",I)})).apply(this,arguments)}function zs(v,h,f){return Ws.apply(this,arguments)}function Ws(){return(Ws=(0,c.Z)(function*(v,h,f){yield vr(h);const G=!1===v?"provider-already-linked":"no-such-provider";Ue(Xi(h.providerData).has(f)===v,h.auth,G)})).apply(this,arguments)}function Gi(v,h){return Ls.apply(this,arguments)}function Ls(){return(Ls=(0,c.Z)(function*(v,h,f=!1){const{auth:I}=v,G="reauthenticate";try{const ge=yield sn(v,xr(I,G,h,v),f);Ue(ge.idToken,I,"internal-error");const at=qt(ge.idToken);Ue(at,I,"internal-error");const{sub:Vt}=at;return Ue(v.uid===Vt,I,"user-mismatch"),Ki._forOperation(v,G,ge)}catch(ge){throw"auth/user-not-found"===ge?.code&&ve(I,"user-mismatch"),ge}})).apply(this,arguments)}function Ji(v,h){return mr.apply(this,arguments)}function mr(){return(mr=(0,c.Z)(function*(v,h,f=!1){const I="sign
1In",G=yield xr(v,I,h),ge=yield Ki._fromIdTokenResponse(v,I,G);return f||(yield v._updateCurrentUser(ge.user)),ge})).apply(this,arguments)}function Ks(v,h){return Y.apply(this,arguments)}function Y(){return(Y=(0,c.Z)(function*(v,h){return Ji(Nr(v),h)})).apply(this,arguments)}function W(v,h){return Ae.apply(this,arguments)}function Ae(){return(Ae=(0,c.Z)(function*(v,h){const f=(0,V.m9)(v);return yield zs(!1,f,h.providerId),Ci(f,h)})).apply(this,arguments)}function Je(v,h){return gt.apply(this,arguments)}function gt(){return(gt=(0,c.Z)(function*(v,h){return Gi((0,V.m9)(v),h)})).apply(this,arguments)}function En(){return(En=(0,c.Z)(function*(v,h){return wn(v,"POST","/v1/accounts:signInWithCustomToken",yt(v,h))})).apply(this,arguments)}function x(){return x=(0,c.Z)(function*(v,h){const f=Nr(v),I=yield function Qt(v,h){return En.apply(this,arguments)}(f,{token:h,returnSecureToken:!0}),G=yield Ki._fromIdTokenResponse(f,"signIn",I);return yield f._updateCurrentUser(G.user),G}),x.apply(this,arguments)}class P{constructor(h,f){this.factorId=h,this.uid=f.mfaEnrollmentId,this.enrollmentTime=new Date(f.enrolledAt).toUTCString(),this.displayName=f.displayName}static _fromServerResponse(h,f){return"phoneInfo"in f?le._fromServerResponse(h,f):"totpInfo"in f?Tt._fromServerResponse(h,f):ve(h,"internal-error")}}class le extends P{constructor(h){super("phone",h),this.phoneNumber=h.phoneInfo}static _fromServerResponse(h,f){return new le(f)}}class Tt extends P{constructor(h){super("totp",h)}static _fromServerResponse(h,f){return new Tt(f)}}function In(v,h,f){var I;Ue((null===(I=f.url)||void 0===I?void 0:I.length)>0,v,"invalid-continue-uri"),Ue(typeof f.dynamicLinkDomain>"u"||f.dynamicLinkDomain.length>0,v,"invalid-dynamic-link-domain"),h.continueUrl=f.url,h.dynamicLinkDomain=f.dynamicLinkDomain,h.canHandleCodeInApp=f.handleCodeInApp,f.iOS&&(Ue(f.iOS.bundleId.length>0,v,"missing-ios-bundle-id"),h.iOSBundleId=f.iOS.bundleId),f.android&&(Ue(f.android.packageName.length>0,v,"missing-android-pkg-name"),h.androidInstallApp=f.android.installApp,h.androidMinimumVersionCode=f.android.minimumVersion,h.androidPackageName=f.android.packageName)}function Sr(){return Sr=(0,c.Z)(function*(v,h,f){var I;const G=Nr(v),ge={requestType:"PASSWORD_RESET",email:h,clientType:"CLIENT_TYPE_WEB"};if(null!==(I=G._getRecaptchaConfig())&&void 0!==I&&I.emailPasswordEnabled){const at=yield Tn(G,ge,"getOobCode",!0);f&&In(G,at,f),yield Ot(G,at)}else f&&In(G,ge,f),yield Ot(G,ge).catch(function(){var at=(0,c.Z)(function*(Vt){if("auth/missing-recaptcha-token"!==Vt.code)return Promise.reject(Vt);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");const Dn=yield Tn(G,ge,"getOobCode",!0);f&&In(G,Dn,f),yield Ot(G,Dn)}});
1return function(Vt){return at.apply(this,arguments)}}())}),Sr.apply(this,arguments)}function Jr(){return(Jr=(0,c.Z)(function*(v,h,f){yield wi((0,V.m9)(v),{oobCode:h,newPassword:f})})).apply(this,arguments)}function Ri(){return Ri=(0,c.Z)(function*(v,h){yield function $i(v,h){return Os.apply(this,arguments)}((0,V.m9)(v),{oobCode:h})}),Ri.apply(this,arguments)}function hi(v,h){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,c.Z)(function*(v,h){const f=(0,V.m9)(v),I=yield wi(f,{oobCode:h}),G=I.requestType;switch(Ue(G,f,"internal-error"),G){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":Ue(I.newEmail,f,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":Ue(I.mfaInfo,f,"internal-error");default:Ue(I.email,f,"internal-error")}let ge=null;return I.mfaInfo&&(ge=P._fromServerResponse(Nr(f),I.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===I.requestType?I.newEmail:I.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===I.requestType?I.email:I.newEmail)||null,multiFactorInfo:ge},operation:G}})).apply(this,arguments)}function ss(){return(ss=(0,c.Z)(function*(v,h){const{data:f}=yield hi((0,V.m9)(v),h);return f.email})).apply(this,arguments)}function Ui(){return Ui=(0,c.Z)(function*(v,h,f){var I;const G=Nr(v),ge={returnSecureToken:!0,email:h,password:f,clientType:"CLIENT_TYPE_WEB"};let at;if(null!==(I=G._getRecaptchaConfig())&&void 0!==I&&I.emailPasswordEnabled){const zn=yield Tn(G,ge,"signUpPassword");at=Li(G,zn)}else at=Li(G,ge).catch(function(){var zn=(0,c.Z)(function*(ar){if("auth/missing-recaptcha-token"===ar.code){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const dr=yield Tn(G,ge,"signUpPassword");return Li(G,dr)}return Promise.reject(ar)});return function(ar){return zn.apply(this,arguments)}}());const Vt=yield at.catch(zn=>Promise.reject(zn)),Dn=yield Ki._fromIdTokenResponse(G,"signIn",Vt);return yield G._updateCurrentUser(Dn.user),Dn}),Ui.apply(this,arguments)}function Da(){return Da=(0,c.Z)(function*(v,h,f){var I;const G=Nr(v),ge={requestType:"EMAIL_SIGNIN",email:h,clientType:"CLIENT_TYPE_WEB"};function at(Vt,Dn){Ue(Dn.handleCodeInApp,G,"argument-error"),Dn&&In(G,Vt,Dn)}if(null!==(I=G._getRecaptchaConfig())&&void 0!==I&&I.emailPasswordEnabled){const Vt=yield Tn(G,ge,"getOobCode",!0);at(Vt,f),yield mn(G,Vt)}else at(ge,f),yield mn(G,ge).catch(function(){var Vt=(0,c.Z)(function*(Dn){if("auth/missing-recaptcha-token"!==Dn.code)return Promise.reject(Dn);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const zn=yield Tn(G,ge,"getOobCode",!0);at(zn,f),yield mn(G,zn)}});return function(Dn){return Vt.apply(this,arguments)}}())}),Da.apply(this,arguments)}function as(){return(as=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v),G=Yo.credentialWithLink(h,f||vt());return Ue(G._tenantId===(I.tenantId||null),I,"tenant-id-mismatch"),Ks(I,G)})).apply(this,arguments)}function oi(){return(oi=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:createAuthUri",yt(v,h))})).apply(this,arguments)}function Vs(){return Vs=(0,c.Z)(function*(v,h){const I={identifier:h,continueUri:jt()?vt():"http://localhost"},{signinMethods:G}=yield function ha(v,h){return oi.apply(this,arguments)}((0,V.m9)(v),I);return G||[]}),Vs.apply(this,arguments)}function Mo(){return Mo=(0,c.Z)(function*(v,h){const f=(0,V.m9)(v),G={requestType:"VERIFY_EMAIL",idToken:yield v.getIdToken()};h&&In(f.auth,G,h);const{email:ge}=yield function pt(v,h){return ut.apply(this,arguments)}(f.auth,G);ge!==v.email&&(yield v.reload())}),Mo.apply(this,arguments)}function bo(){return bo=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v),ge={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield v.getIdToken(),newEmail:h};f&&In(I.auth,ge,f);const{email:at}=yield function yr(v,h){return Er.apply(this,arguments)}(I.auth,ge);at!==v.email&&(yield v.reload())}),bo.apply(this,arguments)}function Xo(){return(Xo=(0,c.Z)(function*(v,h){return ft(v,"POST","/v1/accounts:update",h)})).apply(this,arguments)}function Ss(){return Ss=(0,c.Z)(function*(v,{displayName:h,photoURL:f}){if(void 0===h&&void 0===f)return;const I=(0,V.m9)(v),ge={idToken:yield I.getIdToken(),displayName:h,photoUrl:f,returnSecureToken:!0},at=yield sn(I,function Va(v,h){return Xo.apply(this,arguments)}(I.auth,ge));I.displayName=at.displayName||null,I.photoURL=at.photoUrl||null;const Vt=I.providerData.find(({providerId:Dn})=>"password"===Dn);Vt&&(Vt.displayName=I.displayName,Vt.photoURL=I.photoURL),yield I._updateTokensIfNecessary(at)}),Ss.apply(this,arguments)}function Ti(v,h,f){return No.apply(this,arguments)}function No(){return(No=(0,c.Z)(function*(v,h,f){const{auth:I}=v,ge={idToken:yield v.getIdToken(),returnSecureToken:!0};h&&(ge.email=h),f&&(ge.password=f);const at=yield sn(v,io(I,ge));yield v._updateTokensIfNecessary(at,!0)})).apply(this,arguments)}class wo{constructor(h,f,I={}){this.isNewUser=h,this.providerId=f,this.profile=I}}class Jo extends wo{constructor(h,f,I,G){super(h,f,I),this.username=G}}class Ua extends wo{constructor(h,f){super(h,"facebook.com",f)}}class wl extends Jo{constructor(h,f){super(h,"github.com",f,"string"==typeof f?.login?f?.login:null)}}class Co extends wo{constructor(h,f){super(h,"google.com",f)}}class ja extends Jo{constructor(h,f,I){super(h,"twitter.com",f,I)}}function Ba(v){const{user:h,_tokenResponse:f}=v;return h.isAnonymous&&!f?{providerId:null,isNewUser:!1,profile:null}:function fa(v){var h,f;if(!v)return null;const{providerId:I}=v,G=v.rawUserInfo?JSON.parse(v.rawUserInfo):{},ge=v.isNewUser||"identitytoolkit#SignupNewUserResponse"===v.kind;if(!I&&v?.idToken){const at=null===(f=null===(h=qt(v.idToken))||void 0===h?void 0:h.firebase)||void 0===f?void 0:f.sign_in_provider;if(at)return new wo(ge,"anonymous"!==at&&"custom"!==at?at:null)}if(!I)return null;switch(I){case"facebook.com":return new Ua(ge,G);case"github.com":return new wl(ge,G);case"google.com":return new Co(ge,G);case"twitter.com":return new ja(ge,G,v.screenName||null);
1case"custom":case"anonymous":return new wo(ge,null);default:return new wo(ge,I,G)}}(f)}class Lr{constructor(h,f,I){this.type=h,this.credential=f,this.auth=I}static _fromIdtoken(h,f){return new Lr("enroll",h,f)}static _fromMfaPendingCredential(h){return new Lr("signin",h)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(h){var f,I;if(h?.multiFactorSession){if(null!==(f=h.multiFactorSession)&&void 0!==f&&f.pendingCredential)return Lr._fromMfaPendingCredential(h.multiFactorSession.pendingCredential);if(null!==(I=h.multiFactorSession)&&void 0!==I&&I.idToken)return Lr._fromIdtoken(h.multiFactorSession.idToken)}return null}}class Hr{constructor(h,f,I){this.session=h,this.hints=f,this.signInResolver=I}static _fromError(h,f){const I=Nr(h),G=f.customData._serverResponse,ge=(G.mfaInfo||[]).map(Vt=>P._fromServerResponse(I,Vt));Ue(G.mfaPendingCredential,I,"internal-error");const at=Lr._fromMfaPendingCredential(G.mfaPendingCredential);return new Hr(at,ge,function(){var Vt=(0,c.Z)(function*(Dn){const zn=yield Dn._process(I,at);delete G.mfaInfo,delete G.mfaPendingCredential;const ar=Object.assign(Object.assign({},G),{idToken:zn.idToken,refreshToken:zn.refreshToken});switch(f.operationType){case"signIn":const dr=yield Ki._fromIdTokenResponse(I,f.operationType,ar);return yield I._updateCurrentUser(dr.user),dr;case"reauthenticate":return Ue(f.user,I,"internal-error"),Ki._forOperation(f.user,f.operationType,ar);default:ve(I,"internal-error")}});return function(Dn){return Vt.apply(this,arguments)}}())}resolveSignIn(h){var f=this;return(0,c.Z)(function*(){return f.signInResolver(h)})()}}class vs{constructor(h){this.user=h,this.enrolledFactors=[],h._onReload(f=>{f.mfaInfo&&(this.enrolledFactors=f.mfaInfo.map(I=>P._fromServerResponse(h.auth,I)))})}static _fromUser(h){return new vs(h)}getSession(){var h=this;return(0,c.Z)(function*(){return Lr._fromIdtoken(yield h.user.getIdToken(),h.user.auth)})()}enroll(h,f){var I=this;return(0,c.Z)(function*(){const G=h,ge=yield I.getSession(),at=yield sn(I.user,G._process(I.user.auth,ge,f));return yield I.user._updateTokensIfNecessary(at),I.user.reload()})()}unenroll(h){var f=this;return(0,c.Z)(function*(){const I="string"==typeof h?h:h.uid,G=yield f.user.getIdToken();try{const ge=yield sn(f.user,function Xn(v,h){return ft(v,"POST","/v2/accounts/mfaEnrollment:withdraw",yt(v,h))}(f.user.auth,{idToken:G,mfaEnrollmentId:I}));f.enrolledFactors=f.enrolledFactors.filter(({uid:at})=>at!==I),yield f.user._updateTokensIfNecessary(ge),yield f.user.reload()}catch(ge){throw ge}})()}}const Rn=new WeakMap,gn="__sak";class es{constructor(h,f){this.storageRetriever=h,this.type=f}_isAvailable(){try{return this.storage?(this.storage.setItem(gn,"1"),this.storage.removeItem(gn),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,f){return this.storage.setItem(h,JSON.stringify(f)),Promise.resolve()}_get(h){const f=this.storage.getItem(h);return Promise.resolve(f?JSON.parse(f):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const ea=(()=>{class v extends es{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(f,I)=>this.onStorageEvent(f,I),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Qa(){const v=(0,V.z$)();return ht(v)||Ie(v)}()&&function Rr(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=nr(),this._shouldAllowMigration=!0}forAllChangedKeys(f){for(const I of Object.keys(this.listeners)){const G=this.storage.getItem(I),ge=this.localCache[I];G!==ge&&f(I,ge,G)}}onStorageEvent(f,I=!1){if(!f.key)return void this.forAllChangedKeys((Vt,Dn,zn)=>{this.notifyListeners(Vt,zn)});const G=f.key;if(I?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Vt=this.storage.getItem(G);if(f.newValue!==Vt)null!==f.newValue?this.storage.setItem(G,f.newValue):this.storage.removeItem(G);else if(this.localCache[G]===f.newValue&&!I)return}const ge=()=>{const Vt=this.storage.getItem(G);!I&&this.localCache[G]===Vt||this.notifyListeners(G,Vt)},at=this.storage.getItem(G);!function Cn(){return(0,V.w1)()&&10===document.documentMode}()||at===f.newValue||f.newValue===f.oldValue?ge():setTimeout(ge,10)}notifyListeners(f,I){this.localCache[f]=I;const G=this.listeners[f];if(G)for(const ge of Array.from(G))ge(I&&JSON.parse(I))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((f,I,G)=>{this.onStorageEvent(new StorageEvent("storage",{key:f,oldValue:I,newValue:G}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(f,I){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[f]||(this.listeners[f]=new Set,this.localCache[f]=this.storage.getItem(f)),this.listeners[f].add(I)}_removeListener(f,I){this.listeners[f]&&(this.listeners[f].delete(I),0===this.listeners[f].size&&delete this.listeners[f]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(f,I){var G=()=>super._set,ge=this;return(0,c.Z)(function*(){yield G().call(ge,f,I),ge.localCache[f]=JSON.stringify(I)})()}_get(f){var I=()=>super._get,G=this;return(0,c.Z)(function*(){const ge=yield I().call(G,f);return G.localCache[f]=JSON.stringify(ge),ge})()}_remove(f){var I=()=>super._remove,G=this;return(0,c.Z)(function*(){yield I().call(G,f),delete G.localCache[f]})()}}return v.type="LOCAL",v})(),ta=(()=>{class v extends es{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(f,I){}_removeListener(f,I){}}return v.type="SESSION",v})();let Xa=(()=>{class v{constructor(f){this.eventTarget=f,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(f){const I=this.receivers.find(ge=>ge.isListeningto(f));
1if(I)return I;const G=new v(f);return this.receivers.push(G),G}isListeningto(f){return this.eventTarget===f}handleEvent(f){var I=this;return(0,c.Z)(function*(){const G=f,{eventId:ge,eventType:at,data:Vt}=G.data,Dn=I.handlersMap[at];if(!Dn?.size)return;G.ports[0].postMessage({status:"ack",eventId:ge,eventType:at});const zn=Array.from(Dn).map(function(){var dr=(0,c.Z)(function*(ts){return ts(G.origin,Vt)});return function(ts){return dr.apply(this,arguments)}}()),ar=yield function al(v){return Promise.all(v.map(function(){var h=(0,c.Z)(function*(f){try{return{fulfilled:!0,value:yield f}}catch(I){return{fulfilled:!1,reason:I}}});return function(f){return h.apply(this,arguments)}}()))}(zn);G.ports[0].postMessage({status:"done",eventId:ge,eventType:at,response:ar})})()}_subscribe(f,I){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[f]||(this.handlersMap[f]=new Set),this.handlersMap[f].add(I)}_unsubscribe(f,I){this.handlersMap[f]&&I&&this.handlersMap[f].delete(I),(!I||0===this.handlersMap[f].size)&&delete this.handlersMap[f],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return v.receivers=[],v})();function $a(v="",h=10){let f="";for(let I=0;I<h;I++)f+=Math.floor(10*Math.random());return v+f}class js{constructor(h){this.target=h,this.handlers=new Set}removeMessageHandler(h){h.messageChannel&&(h.messageChannel.port1.removeEventListener("message",h.onMessage),h.messageChannel.port1.close()),this.handlers.delete(h)}_send(h,f,I=50){var G=this;return(0,c.Z)(function*(){const ge=typeof MessageChannel<"u"?new MessageChannel:null;if(!ge)throw new Error("connection_unavailable");let at,Vt;return new Promise((Dn,zn)=>{const ar=$a("",20);ge.port1.start();const dr=setTimeout(()=>{zn(new Error("unsupported_event"))},I);Vt={messageChannel:ge,onMessage(ts){const jo=ts;if(jo.data.eventId===ar)switch(jo.data.status){case"ack":clearTimeout(dr),at=setTimeout(()=>{zn(new Error("timeout"))},3e3);break;case"done":clearTimeout(at),Dn(jo.data.response);break;default:clearTimeout(dr),clearTimeout(at),zn(new Error("invalid_response"))}}},G.handlers.add(Vt),ge.port1.addEventListener("message",Vt.onMessage),G.target.postMessage({eventType:h,eventId:ar,data:f},[ge.port2])}).finally(()=>{Vt&&G.removeMessageHandler(Vt)})})()}}function Jn(){return window}function Ha(){return typeof Jn().WorkerGlobalScope<"u"&&"function"==typeof Jn().importScripts}function cr(){return(cr=(0,c.Z)(function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Ja="firebaseLocalStorageDb",Vr=1,jn="firebaseLocalStorage",Es="fbase_key";class pa{constructor(h){this.request=h}toPromise(){return new Promise((h,f)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{f(this.request.error)})})}}function ps(v,h){return v.transaction([jn],h?"readwrite":"readonly").objectStore(jn)}function ga(){const v=indexedDB.open(Ja,Vr);return new Promise((h,f)=>{v.addEventListener("error",()=>{f(v.error)}),v.addEventListener("upgradeneeded",()=>{const I=v.result;try{I.createObjectStore(jn,{keyPath:Es})}catch(G){f(G)}}),v.addEventListener("success",(0,c.Z)(function*(){const I=v.result;I.objectStoreNames.contains(jn)?h(I):(I.close(),yield function Mc(){const v=indexedDB.deleteDatabase(Ja);return new pa(v).toPromise()}(),h(yield ga()))}))})}function Io(v,h,f){return ra.apply(this,arguments)}function ra(){return(ra=(0,c.Z)(function*(v,h,f){const I=ps(v,!0).put({[Es]:h,value:f});return new pa(I).toPromise()})).apply(this,arguments)}function Wa(){return(Wa=(0,c.Z)(function*(v,h){const f=ps(v,!1).get(h),I=yield new pa(f).toPromise();return void 0===I?null:I.value})).apply(this,arguments)}function As(v,h){const f=ps(v,!0).delete(h);return new pa(f).toPromise()}const Zs=(()=>{class v{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 f=this;return(0,c.Z)(function*(){return f.db||(f.db=yield ga()),f.db})()}_withRetries(f){var I=this;return(0,c.Z)(function*(){let G=0;for(;;)try{const ge=yield I._openDb();return yield f(ge)}catch(ge){if(G++>3)throw ge;I.db&&(I.db.close(),I.db=void 0)}})()}initializeServiceWorkerMessaging(){var f=this;return(0,c.Z)(function*(){return Ha()?f.initializeReceiver():f.initializeSender()})()}initializeReceiver(){var f=this;return(0,c.Z)(function*(){f.receiver=Xa._getInstance(function Pr(){return Ha()?self:null}()),f.receiver._subscribe("keyChanged",function(){var I=(0,c.Z)(function*(G,ge){return{keyProcessed:(yield f._poll()).includes(ge.key)}});return function(G,ge){return I.apply(this,arguments)}}()),f.receiver._subscribe("ping",function(){var I=(0,c.Z)(function*(G,ge){return["keyChanged"]});return function(G,ge){return I.apply(this,arguments)}}())})()}initializeSender(){var f=this;return(0,c.Z)(function*(){var I,G;if(f.activeServiceWorker=yield function ji(){return cr.apply(this,arguments)}(),!f.activeServiceWorker)return;f.sender=new js(f.activeServiceWorker);const ge=yield f.sender._send("ping",{},800);ge&&null!==(I=ge[0])&&void 0!==I&&I.fulfilled&&null!==(G=ge[0])&&void 0!==G&&G.value.includes("keyChanged")&&(f.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(f){var I=this;return(0,c.Z)(function*(){if(I.sender&&I.activeServiceWorker&&function Ma(){var v;return(null===(v=navigator?.serviceWorker)||void 0===v?void 0:v.controller)||null}()===I.activeServiceWorker)try{yield I.sender._send("keyChanged",{key:f},I.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,c.Z)(function*(){try{if(!indexedDB)return!1;const f=yield ga();
1return yield Io(f,gn,"1"),yield As(f,gn),!0}catch{}return!1})()}_withPendingWrite(f){var I=this;return(0,c.Z)(function*(){I.pendingWrites++;try{yield f()}finally{I.pendingWrites--}})()}_set(f,I){var G=this;return(0,c.Z)(function*(){return G._withPendingWrite((0,c.Z)(function*(){return yield G._withRetries(ge=>Io(ge,f,I)),G.localCache[f]=I,G.notifyServiceWorker(f)}))})()}_get(f){var I=this;return(0,c.Z)(function*(){const G=yield I._withRetries(ge=>function za(v,h){return Wa.apply(this,arguments)}(ge,f));return I.localCache[f]=G,G})()}_remove(f){var I=this;return(0,c.Z)(function*(){return I._withPendingWrite((0,c.Z)(function*(){return yield I._withRetries(G=>As(G,f)),delete I.localCache[f],I.notifyServiceWorker(f)}))})()}_poll(){var f=this;return(0,c.Z)(function*(){const I=yield f._withRetries(at=>{const Vt=ps(at,!1).getAll();return new pa(Vt).toPromise()});if(!I)return[];if(0!==f.pendingWrites)return[];const G=[],ge=new Set;for(const{fbase_key:at,value:Vt}of I)ge.add(at),JSON.stringify(f.localCache[at])!==JSON.str
1ingify(Vt)&&(f.notifyListeners(at,Vt),G.push(at));for(const at of Object.keys(f.localCache))f.localCache[at]&&!ge.has(at)&&(f.notifyListeners(at,null),G.push(at));return G})()}notifyListeners(f,I){this.localCache[f]=I;const G=this.listeners[f];if(G)for(const ge of Array.from(G))ge(I)}startPolling(){var f=this;this.stopPolling(),this.pollTimer=setInterval((0,c.Z)(function*(){return f._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(f,I){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[f]||(this.listeners[f]=new Set,this._get(f)),this.listeners[f].add(I)}_removeListener(f,I){this.listeners[f]&&(this.listeners[f].delete(I),0===this.listeners[f].size&&delete this.listeners[f]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return v.type="LOCAL",v})(),B=1e12;class _{constructor(h){this.auth=h,this.counter=B,this._widgets=new Map}render(h,f){const I=this.counter;return this._widgets.set(I,new b(h,this.auth.name,f||{})),this.counter++,I}reset(h){var f;const I=h||B;null===(f=this._widgets.get(I))||void 0===f||f.delete(),this._widgets.delete(I)}getResponse(h){var f;return(null===(f=this._widgets.get(h||B))||void 0===f?void 0:f.getResponse())||""}execute(h){var f=this;return(0,c.Z)(function*(){var I;return null===(I=f._widgets.get(h||B))||void 0===I||I.execute(),""})()}}class b{constructor(h,f,I){this.params=I,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const G="string"==typeof h?document.getElementById(h):h;Ue(G,"argument-error",{appName:f}),this.container=G,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=function N(v){const h=[],f="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let I=0;I<v;I++)h.push(f.charAt(Math.floor(Math.random()*f.length)));return h.join("")}(50);const{callback:h,"expired-callback":f}=this.params;if(h)try{h(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,f)try{f()}catch{}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const re=li("rcb"),Ee=new yn(3e4,6e4);class ot{constructor(){var h;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!(null===(h=Jn().grecaptcha)||void 0===h||!h.render)}load(h,f=""){return Ue(function Pt(v){return v.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(v)}(f),h,"argument-error"),this.shouldResolveImmediately(f)&&Tr(Jn().grecaptcha)?Promise.resolve(Jn().grecaptcha):new Promise((I,G)=>{const ge=Jn().setTimeout(()=>{G(ze(h,"network-request-failed"))},Ee.get());Jn()[re]=()=>{Jn().clearTimeout(ge),delete Jn()[re];const Vt=Jn().grecaptcha;if(!Vt||!Tr(Vt))return void G(ze(h,"internal-error"));const Dn=Vt.render;Vt.render=(zn,ar)=>{const dr=Dn(zn,ar);return this.counter++,dr},this.hostLanguage=f,I(Vt)},_i(`https://www.google.com/recaptcha/api.js??${(0,V.xO)({onload:re,render:"explicit",hl:f})}`).catch(()=>{clearTimeout(ge),G(ze(h,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(h){var f;return!(null===(f=Jn().grecaptcha)||void 0===f||!f.render)&&(h===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Zt{load(h){return(0,c.Z)(function*(){return new _(h)})()}clearedOneInstance(){}}const Fn="recaptcha",Qn={theme:"light",type:"image"};class Ar{constructor(h,f=Object.assign({},Qn),I){this.parameters=f,this.type=Fn,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Nr(I),this.isInvisible="invisible"===this.parameters.size,Ue(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const G="string"==typeof h?document.getElementById(h):h;Ue(G,this.auth,"argument-error"),this.container=G,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new Zt:new ot,this.validateStartingState()}verify(){var h=this;return(0,c.Z)(function*(){h.assertNotDestroyed();const f=yield h.render(),I=h.getAssertedRecaptcha();return I.getResponse(f)||new Promise(ge=>{const at=Vt=>{Vt&&(h.tokenChangeListeners.delete(at),ge(Vt))};h.tokenChangeListeners.add(at),h.isInvisible&&I.execute(f)})})()}render(){try{this.assertNotDestroyed()}catch(h){return Promise.reject(h)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(h=>{throw this.renderPromise=null,h})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
1h(h=>{this.container.removeChild(h)})}validateStartingState(){Ue(!this.parameters.sitekey,this.auth,"argument-error"),Ue(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Ue(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(h){return f=>{if(this.tokenChangeListeners.forEach(I=>I(f)),"function"==typeof h)h(f);else if("string"==typeof h){const I=Jn()[h];"function"==typeof I&&I(f)}}}assertNotDestroyed(){Ue(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var h=this;return(0,c.Z)(function*(){if(yield h.init(),!h.widgetId){let f=h.container;if(!h.isInvisible){const I=document.createElement("div");f.appendChild(I),f=I}h.widgetId=h.getAssertedRecaptcha().render(f,h.parameters)}return h.widgetId})()}init(){var h=this;return(0,c.Z)(function*(){Ue(jt()&&!Ha(),h.auth,"internal-error"),yield function Or(){let v=null;return new Promise(h=>{"complete"!==document.readyState?(v=()=>h(),window.addEventListener("load",v)):h()}).catch(h=>{throw v&&window.removeEventListener("load",v),h})}(),h.recaptcha=yield h._recaptchaLoader.load(h.auth,h.auth.languageCode||void 0);const f=yield function xt(v){return pn.apply(this,arguments)}(h.auth);Ue(f,h.auth,"internal-error"),h.parameters.sitekey=f})()}getAssertedRecaptcha(){return Ue(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class hr{constructor(h,f){this.verificationId=h,this.onConfirmation=f}confirm(h){const f=rs._fromVerification(this.verificationId,h);return this.onConfirmation(f)}}function w(){return(w=(0,c.Z)(function*(v,h,f){const I=Nr(v),G=yield he(I,h,(0,V.m9)(f));return new hr(G,ge=>Ks(I,ge))})).apply(this,arguments)}function y(){return(y=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v);yield zs(!1,I,"phone");const G=yield he(I.auth,h,(0,V.m9)(f));return new hr(G,ge=>W(I,ge))})).apply(this,arguments)}function z(){return(z=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v),G=yield he(I.auth,h,(0,V.m9)(f));return new hr(G,ge=>Je(I,ge))})).apply(this,arguments)}function he(v,h,f){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,c.Z)(function*(v,h,f){var I;const G=yield f.verify();try{let ge;if(Ue("string"==typeof G,v,"argument-error"),Ue(f.type===Fn,v,"argument-error"),ge="string"==typeof h?{phoneNumber:h}:h,"session"in ge){const at=ge.session;if("phoneNumber"in ge)return Ue("enroll"===at.type,v,"internal-error"),(yield function or(v,h){return ft(v,"POST","/v2/accounts/mfaEnrollment:start",yt(v,h))}(v,{idToken:at.credential,phoneEnrollmentInfo:{phoneNumber:ge.phoneNumber,recaptchaToken:G}})).phoneSessionInfo.sessionInfo;{Ue("signin"===at.type,v,"internal-error");const Vt=(null===(I=ge.multiFactorHint)||void 0===I?void 0:I.uid)||ge.multiFactorUid;return Ue(Vt,v,"missing-multi-factor-info"),(yield function sa(v,h){return ft(v,"POST","/v2/accounts/mfaSignIn:start",yt(v,h))}(v,{mfaPendingCredential:at.credential,mfaEnrollmentId:Vt,phoneSignInInfo:{recaptchaToken:G}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:at}=yield function ko(v,h){return so.apply(this,arguments)}(v,{phoneNumber:ge.phoneNumber,recaptchaToken:G});return at}}finally{f._reset()}}),Ce.apply(this,arguments)}function tn(){return(tn=(0,c.Z)(function*(v,h){yield Ci((0,V.m9)(v),h)})).apply(this,arguments)}let Ln=(()=>{class v{constructor(f){this.providerId=v.PROVIDER_ID,this.auth=Nr(f)}verifyPhoneNumber(f,I){return he(this.auth,f,(0,V.m9)(I))}static credential(f,I){return rs._fromVerification(f,I)}static credentialFromResult(f){return v.credentialFromTaggedObject(f)}static credentialFromError(f){return v.credentialFromTaggedObject(f.customData||{})}static credentialFromTaggedObject({_tokenResponse:f}){if(!f)return null;const{phoneNumber:I,temporaryProof:G}=f;return I&&G?rs._fromTokenResponse(I,G):null}}return v.PROVIDER_ID="phone",v.PHONE_SIGN_IN_METHOD="phone",v})();function Vn(v,h){return h?xe(h):(Ue(v._popupRedirectResolver,v,"argument-error"),v._popupRedirectResolver)}class Ur extends ds{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return Di(h,this._buildIdpRequest())}_linkToIdToken(h,f){return Di(h,this._buildIdpRequest(f))}_getReauthenticationResolver(h){return Di(h,this._buildIdpRequest())}_buildIdpRequest(h){const f={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&&(f.idToken=h),f}}function Zi(v){return Ji(v.auth,new Ur(v),v.bypassAuthState)}function qs(v){const{auth:h,user:f}=v;return Ue(f,h,"internal-error"),Gi(f,new Ur(v),v.bypassAuthState)}function Do(v){return Lo.apply(this,arguments)}function Lo(){return(Lo=(0,c.Z)(function*(v){const{auth:h,user:f}=v;return Ue(f,h,"internal-error"),Ci(f,new Ur(v),v.bypassAuthState)})).apply(this,arguments)}class Zn{constructor(h,f,I,G,ge=!1){this.auth=h,this.resolver=I,this.user=G,this.bypassAuthState=ge,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(f)?f:[f]}execute(){var h=this;return new Promise(function(){var f=(0,c.Z)(function*(I,G){h.pendingPromise={resolve:I,reject:G};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(ge){h.reject(ge)}});return function(I,G){return f.apply(this,arguments)}}())}onAuthEvent(h){var f=this;return(0,c.Z)(function*(){const{urlResponse:I,sessionId:G,postBody:ge,tenantId:at,error:Vt,type:Dn}=h;if(Vt)return void f.reject(Vt);const zn={auth:f.auth,requestUri:I,sessionId:G,tenantId:at||void 0,postBody:ge||void 0,user:f.user,bypassAuthState:f.bypassAuthState};try{f.resolve(yield f.getIdpTask(Dn)(zn))}catch(ar){f.reject(ar)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Zi;case"linkViaPopup":case"linkViaRedirect":return Do;case"reauthViaPopup":case"reauthViaRedirect":return qs;default:ve(this.auth,"internal-error")}}resolve(h){je(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){je(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()}}const ur=new yn(2e3,1e4);function ei(){return(ei=(0,c.Z)(function*(v,h,f){const I=Nr(v);nt(v,h,hs);const G=Vn(I,f);return new Kr(I,"signInViaPopup",h,G).executeNotNull()})).apply(this,arguments)}function po(){return(po=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v);nt(I.auth,h,hs);const G=Vn(I.auth,f);return new Kr(I.auth,"reauthViaPopup",h,G,I).executeNotNull()})).apply(this,arguments)}function Vo(){return(Vo=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v);nt(I.auth,h,hs);const G=Vn(I.auth,f);return new Kr(I.auth,"linkViaPopup",h,G,I).executeNotNull()})).apply(this,arguments)}let Kr=(()=>{class v extends Zn{constructor(f,I,G,ge,at){super(f,I,ge,at),this.provider=G,this.authWindow=null,this.pollId=null,v.currentPopupAction&&v.currentPopupAction.cancel(),v.currentPopupAction=this}executeNotNull(){var f=this;return(0,c.Z)(function*(){const I=yield f.execute();return Ue(I,f.auth,"internal-error"),I})()}onExecution(){var f=this;return(0,c.Z)(function*(){je(1===f.filter.length,"Popup operations only handle one event");const I=$a();f.authWindow=yield f.resolver._openPopup(f.auth,f.provider,f.filter[0],I),f.authWindow.associatedEvent=I,f.resolver._originValidation(f.auth).catch(G=>{f.reject(G)}),f.resolver._isIframeWebStorageSupported(f.auth,G=>{G||f.reject(ze(f.auth,"web-storage-unsupported"))}),f.pollUserCancellation()})()}get eventId(){var f;return(null===(f=this.authWindow)||void 0===f?void 0:f.associatedEvent)||null}cancel(){this.reject(ze(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,v.currentPopupAction=null}pollUserCancellation(){const f=()=>{var I,G;this.pollId=null!==(G=null===(I=this.authWindow)||void 0===I?void 0:I.window)&&void 0!==G&&G.closed?window.setTimeout(()=>{this.pollId=null,this.reject(ze(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(f,ur.get())};f()}}return v.currentPopupAction=null,v})();const Ra="pendingRedirect",Oo=new Map;class Qs extends Zn{constructor(h,f,I=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],f,void 0,I),this.eventId=null}execute(){var h=()=>super.execute,f=this;return(0,c.Z)(function*(){let I=Oo.get(f.auth._key());if(!I){try{const ge=(yield function mi(v,h){return Xs.apply(this,arguments)}(f.resolver,f.auth))?yield h().call(f):null;I=()=>Promise.resolve(ge)}catch(G){I=()=>Promise.reject(G)}Oo.set(f.auth._key(),I)}return f.bypassAuthState||Oo.set(f.auth._key(),()=>Promise.resolve(null)),I()})()}onAuthEvent(h){var f=()=>super.onAuthEvent,I=this;return(0,c.Z)(function*(){if("signInViaRedirect"===h.type)return f().call(I,h);if("unknown"!==h.type){if(h.eventId){const G=yield I.auth._redirectUserForId(h.eventId);if(G)return I.user=G,f().call(I,h);I.resolve(null)}}else I.resolve(null)})()}onExecution(){return(0,c.Z)(function*(){})()}cleanUp(){}}function Xs(){return(Xs=(0,c.Z)(function*(v,h){const f=hc(h),I=Uo(v);if(!(yield I._isAvailable()))return!1;const G="true"===(yield I._get(f));return yield I._remove(f),G})).apply(this,arguments)}function zi(v,h){return Ii.apply(this,arguments)}function Ii(){return(Ii=(0,c.Z)(function*(v,h){return Uo(v)._set(hc(h),"true")})).apply(this,arguments)}function Cl(v,h){Oo.set(v._key(),h)}function Uo(v){return xe(v._redirectPersistence)}function hc(v){return ke(Ra,v.config.apiKey,v.name)}function Jd(v,h,f){return function Js(v,h,f){return yu.apply(this,arguments)}(v,h,f)}function yu(){return(yu=(0,c.Z)(function*(v,h,f){const I=Nr(v);nt(v,h,hs),yield I._initializationPromise;const G=Vn(I,f);return yield zi(G,I),G._openRedirect(I,h,"signInViaRedirect")})).apply(this,arguments)}function ll(v,h,f){return function cs(v,h,f){return ma.apply(this,arguments)}(v,h,f)}function ma(){return(ma=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v);nt(I.auth,h,hs),yield I.auth._initializationPromise;const G=Vn(I.auth,f);yield zi(G,I.auth);const ge=yield oa(I);return G._openRedirect(I.auth,h,"reauthViaRedirect",ge)})).apply(this,arguments)}function Oc(v,h,f){return function fc(v,h,f){return Hl.apply(this,arguments)}(v,h,f)}function Hl(){return(Hl=(0,c.Z)(function*(v,h,f){const I=(0,V.m9)(v);nt(I.auth,h,hs),yield I.auth._initializationPromise;const G=Vn(I.auth,f);yield zs(!1,I,h.providerId),yield zi(G,I.auth);const ge=yield oa(I);return G._openRedirect(I.auth,h,"linkViaRedirect",ge)})).apply(this,arguments)}function Oa(){return(Oa=(0,c.Z)(function*(v,h){return yield Nr(v)._initializationPromise,ya(v,h,!1)})).apply(this,arguments)}function ya(v,h){return Il.apply(this,arguments)}function Il(){return(Il=(0,c.Z)(function*(v,h,f=!1){const I=Nr(v),G=Vn(I,h),at=yield new Qs(I,G,f).execute();return at&&!f&&(delete at.user._redirectEventId,yield I._persistUserIfCurrent(at.user),yield I._setRedirectUser(null,h)),at})).apply(this,arguments)}function oa(v){return Ko.apply(this,arguments)}function Ko(){return(Ko=(0,c.Z)(function*(v){const h=$a(`${v.uid}:::`);return v._redirectEventId=h,yield v.auth._setRedirectUser(v),yield v.auth._persistUserIfCurrent(v),h})).apply(this,arguments)}class aa{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=
1Date.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 f=!1;return this.consumers.forEach(I=>{this.isEventForConsumer(h,I)&&(f=!0,this.sendToConsumer(h,I),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function Pc(v){switch(v.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return el(v);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,f||(this.queuedRedirectEvent=h,f=!0)),f}sendToConsumer(h,f){var I;if(h.error&&!el(h)){const G=(null===(I=h.error.code)||void 0===I?void 0:I.split("auth/")[1])||"internal-error";f.onError(ze(this.auth,G))}else f.onAuthEvent(h)}isEventForConsumer(h,f){const I=null===f.eventId||!!h.eventId&&h.eventId===f.eventId;return f.filter.includes(h.type)&&I}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(pc(h))}saveEventToCache(h){this.cachedEventUids.add(pc(h)),this.lastProcessedEventTime=Date.now()}}function pc(v){return[v.type,v.eventId,v.sessionId,v.tenantId].filter(h=>h).join("-")}function el({type:v,error:h}){return"unknown"===v&&"auth/no-auth-event"===h?.code}function _u(v){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,c.Z)(function*(v,h={}){return ft(v,"GET","/v1/projects",h)})).apply(this,arguments)}const sd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,zl=/^https?/;function Ga(){return(Ga=(0,c.Z)(function*(v){if(v.config.emulator)return;const{authorizedDomains:h}=yield _u(v);for(const f of h)try{if(Wl(f))return}catch{}ve(v,"unauthorized-domain")})).apply(this,arguments)}function Wl(v){const h=vt(),{protocol:f,hostname:I}=new URL(h);if(v.startsWith("chrome-extension://")){const at=new URL(v);return""===at.hostname&&""===I?"chrome-extension:"===f&&v.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===f&&at.hostname===I}if(!zl.test(f))return!1;if(sd.test(v))return I===v;const G=v.replace(/\./g,"\\.");return new RegExp("^(.+\\."+G+"|"+G+")$","i").test(I)}const Kl=new yn(3e4,6e4);function _a(){const v=Jn().___jsl;if(v?.H)for(const h of Object.keys(v.H))if(v.H[h].r=v.H[h].r||[],v.H[h].L=v.H[h].L||[],v.H[h].r=[...v.H[h].L],v.CP)for(let f=0;f<v.CP.length;f++)v.CP[f]=null}let kc=null;const vu=new yn(5e3,15e3),go="__/auth/iframe",Eu="emulator/auth/iframe",us={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},ul=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function od(v){const h=v.config;Ue(h.authDomain,v,"auth-domain-config-required");const f=h.emulator?ae(h,Eu):`https://${v.config.authDomain}/${go}`,I={apiKey:h.apiKey,appName:v.name,v:_e.SDK_VERSION},G=ul.get(v.config.apiHost);G&&(I.eid=G);const ge=v._getFrameworks();return ge.length&&(I.fw=ge.join(",")),`${f}?${(0,V.xO)(I).slice(1)}`}function F(){return F=(0,c.Z)(function*(v){const h=yield function cl(v){return kc=kc||function Sl(v){return new Promise((h,f)=>{var I,G,ge;function at(){_a(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{_a(),f(ze(v,"network-request-failed"))},timeout:Kl.get()})}if(null!==(G=null===(I=Jn().gapi)||void 0===I?void 0:I.iframes)&&void 0!==G&&G.Iframe)h(gapi.iframes.getContext());else{if(null===(ge=Jn().gapi)||void 0===ge||!ge.load){const Vt=li("iframefcb");return Jn()[Vt]=()=>{gapi.load?at():f(ze(v,"network-request-failed"))},_i(`https://apis.google.com/js/api.js?onload=${Vt}`).catch(Dn=>f(Dn))}at()}}).catch(h=>{throw kc=null,h})}(v),kc}(v),f=Jn().gapi;return Ue(f,v,"internal-error"),h.open({where:document.body,url:od(v),messageHandlersFilter:f.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:us,dontclear:!0},I=>new Promise(function(){var G=(0,c.Z)(function*(ge,at){yield I.restyle({setHideOnLeave:!1});const Vt=ze(v,"network-request-failed"),Dn=Jn().setTimeout(()=>{at(Vt)},vu.get());function zn(){Jn().clearTimeout(Dn),ge(I)}I.ping(zn).then(zn,()=>{at(Vt)})});return function(ge,at){return G.apply(this,arguments)}}()))}),F.apply(this,arguments)}const J={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},Le=500,tt=600,mt="_blank",Gt="http://localhost";class Hn{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const jr="__/auth/handler",zr="emulator/auth/handler",la=encodeURIComponent("fac");function Ps(v,h,f,I,G,ge){return Gl.apply(this,arguments)}function Gl(){return(Gl=(0,c.Z)(function*(v,h,f,I,G,ge){Ue(v.config.authDomain,v,"auth-domain-config-required"),Ue(v.config.apiKey,v,"invali
1d-api-key");const at={apiKey:v.config.apiKey,appName:v.name,authType:f,redirectUrl:I,v:_e.SDK_VERSION,eventId:G};if(h instanceof hs){h.setDefaultLanguage(v.languageCode),at.providerId=h.providerId||"",(0,V.xb)(h.getCustomParameters())||(at.customParameters=JSON.stringify(h.getCustomParameters()));for(const[ar,dr]of Object.entries(ge||{}))at[ar]=dr}if(h instanceof ms){const ar=h.getScopes().filter(dr=>""!==dr);ar.length>0&&(at.scopes=ar.join(","))}v.tenantId&&(at.tid=v.tenantId);const Vt=at;for(const ar of Object.keys(Vt))void 0===Vt[ar]&&delete Vt[ar];const Dn=yield v._getAppCheckToken(),zn=Dn?`#${la}=${encodeURIComponent(Dn)}`:"";return`${function Nc({config:v}){return v.emulator?ae(v,zr):`https://${v.authDomain}/${jr}`}(v)}?${(0,V.xO)(Vt).slice(1)}${zn}`})).apply(this,arguments)}const Al="webStorageSupport",Pa=class va{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ta,this._completeRedirectFn=ya,this._overrideRedirectResult=Cl}_openPopup(h,f,I,G){var ge=this;return(0,c.Z)(function*(){var at;je(null===(at=ge.eventManagers[h._key()])||void 0===at?void 0:at.manager,"_initialize() not called before _openPopup()");const Vt=yield Ps(h,f,I,vt(),G);return function Bn(v,h,f,I=Le,G=tt){const ge=Math.max((window.screen.availHeight-G)/2,0).toString(),at=Math.max((window.screen.availWidth-I)/2,0).toString();let Vt="";const Dn=Object.assign(Object.assign({},J),{width:I.toString(),height:G.toString(),top:ge,left:at}),zn=(0,V.z$)().toLowerCase();f&&(Vt=an(zn)?mt:f),Et(zn)&&(h=h||Gt,Dn.scrollbars="yes");const ar=Object.entries(Dn).reduce((ts,[jo,Ec])=>`${ts}${jo}=${Ec},`,"");if(function kt(v=(0,V.z$)()){var h;return Ie(v)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(zn)&&"_self"!==Vt)return function fr(v,h){const f=document.createElement("a");f.href=v,f.target=h;const I=document.createEvent("MouseEvent");I.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),f.dispatchEvent(I)}(h||"",Vt),new Hn(null);const dr=window.open(h||"",Vt,ar);Ue(dr,v,"popup-blocked");try{dr.focus()}catch{}return new Hn(dr)}(h,Vt,$a())})()}_openRedirect(h,f,I,G){var ge=this;return(0,c.Z)(function*(){return yield ge._originValidation(h),function na(v){Jn().location.href=v}(yield Ps(h,f,I,vt(),G)),new Promise(()=>{})})()}_initialize(h){const f=h._key();if(this.eventManagers[f]){const{manager:G,promise:ge}=this.eventManagers[f];return G?Promise.resolve(G):(je(ge,"If manager is not set, promise should be"),ge)}const I=this.initAndGetManager(h);return this.eventManagers[f]={promise:I},I.catch(()=>{delete this.eventManagers[f]}),I}initAndGetManager(h){var f=this;return(0,c.Z)(function*(){const I=yield function T(v){return F.apply(this,arguments)}(h),G=new aa(h);return I.register("authEvent",ge=>(Ue(ge?.authEvent,h,"invalid-auth-event"),{status:G.onEvent(ge.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),f.eventManagers[h._key()]={manager:G},f.iframes[h._key()]=I,G})()}_isIframeWebStorageSupported(h,f){this.iframes[h._key()].send(Al,{type:Al},G=>{var ge;const at=null===(ge=G?.[0])||void 0===ge?void 0:ge[Al];void 0!==at&&f(!!at),ve(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const f=h._key();return this.originValidationPromises[f]||(this.originValidationPromises[f]=function xc(v){return Ga.apply(this,arguments)}(h)),this.originValidationPromises[f]}get _shouldInitProactively(){return nr()||ht()||Ie()}};class gc{constructor(h){this.factorId=h}_process(h,f,I){switch(f.type){case"enroll":return this._finalizeEnroll(h,f.credential,I);case"signin":return this._finalizeSignIn(h,f.credential);default:return Wt("unexpected MultiFactorSessionType")}}}class eh extends gc{constructor(h){super("phone"),this.credential=h}static _fromCredential(h){return new eh(h)}_finalizeEnroll(h,f,I){return function gi(v,h){return ft(v,"POST","/v2/accounts/mfaEnrollment:finalize",yt(v,h))}(h,{idToken:f,displayName:I,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(h,f){return function Lt(v,h){return ft(v,"POST","/v2/accounts/mfaSignIn:finalize",yt(v,h))}(h,{mfaPendingCredential:f,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let bu=(()=>{class v{constructor(){}static assertion(f){return eh._fromCredential(f)}}return v.FACTOR_ID="phone",v})();var Fc="@firebase/auth";class ad{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 f=this;return(0,c.Z)(function*(){return f.assertAuthConfigured(),yield f.auth._initializationPromise,f.auth.currentUser?{accessToken:yield f.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const f=this.auth.onIdTokenChanged(I=>{h(I?.stsTokenManager.accessToken||null)});this.internalListeners.set(h,f),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const f=this.internalListeners.get(h);f&&(this.internalListeners.delete(h),f(),this.updateProactiveRefresh())}assertAuthConfigured(){Ue(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function Rl(){return window}
1(0,V.Pz)("authIdTokenMaxAge"),function Ml(v){(0,_e._registerComponent)(new Oe.wA("auth",(h,{options:f})=>{const I=h.getProvider("app").getImmediate(),G=h.getProvider("heartbeat"),ge=h.getProvider("app-check-internal"),{apiKey:at,authDomain:Vt}=I.options;Ue(at&&!at.includes(":"),"invalid-api-key",{appName:I.name});const Dn={apiKey:at,authDomain:Vt,clientPlatform:v,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Rt(v)},zn=new qi(I,G,ge,Dn);return function gr(v,h){const f=h?.persistence||[],I=(Array.isArray(f)?f:[f]).map(xe);h?.errorMap&&v._updateErrorMap(h.errorMap),v._initializeWithPersistence(I,h?.popupRedirectResolver)}(zn,f),zn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,f,I)=>{h.getProvider("auth-internal").initialize()})),(0,_e._registerComponent)(new Oe.wA("auth-internal",h=>{const f=Nr(h.getProvider("auth").getImmediate());return new ad(f)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,_e.registerVersion)(Fc,"0.23.2",function th(v){switch(v){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(v)),(0,_e.registerVersion)(Fc,"0.23.2","esm2017")}("Browser");const mc=2e3;function yc(){return yc=(0,c.Z)(function*(v,h,f){var I;const{BuildInfo:G}=Rl();je(h.sessionId,"AuthEvent did not contain a session ID");const ge=yield function ql(v){return cd.apply(this,arguments)}(h.sessionId),at={};return Ie()?at.ibi=G.packageName:oe()?at.apn=G.packageName:ve(v,"operation-not-supported-in-this-environment"),G.displayName&&(at.appDisplayName=G.displayName),at.sessionId=ge,Ps(v,f,h.type,void 0,null!==(I=h.eventId)&&void 0!==I?I:void 0,at)}),yc.apply(this,arguments)}function Ol(){return(Ol=(0,c.Z)(function*(v){const{BuildInfo:h}=Rl(),f={};Ie()?f.iosBundleId=h.packageName:oe()?f.androidPackageName=h.packageName:ve(v,"operation-not-supported-in-this-environment"),yield _u(v,f)})).apply(this,arguments)}function Zl(){return(Zl=(0,c.Z)(function*(v,h,f){const{cordova:I}=Rl();let G=()=>{};try{yield new Promise((ge,at)=>{let Vt=null;function Dn(){var dr;ge();const ts=null===(dr=I.plugins.browsertab)||void 0===dr?void 0:dr.close;"function"==typeof ts&&ts(),"function"==typeof f?.close&&f.close()}function zn(){Vt||(Vt=window.setTimeout(()=>{at(ze(v,"redirect-cancelled-by-user"))},mc))}function ar(){"visible"===document?.visibilityState&&zn()}h.addPassiveListener(Dn),document.addEventListener("resume",zn,!1),oe()&&document.addEventListener("visibilitychange",ar,!1),G=()=>{h.removePassiveListener(Dn),document.removeEventListener("resume",zn,!1),document.removeEventListener("visibilitychange",ar,!1),Vt&&window.clearTimeout(Vt)}})}finally{G()}})).apply(this,arguments)}function cd(){return(cd=(0,c.Z)(function*(v){const h=function pl(v){if(je(/[0-9a-zA-Z]+/.test(v),"Can only convert alpha-numeric strings"),typeof TextEncoder<"u")return(new TextEncoder).encode(v);const h=new ArrayBuffer(v.length),f=new Uint8Array(h);for(let I=0;I<v.length;I++)f[I]=v.charCodeAt(I);return f}(v),f=yield crypto.subtle.digest("SHA-256",h);return Array.from(new Uint8Array(f)).map(G=>G.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}const Pp=20;class xa extends aa{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(h=>{this.resolveInialized=h})}addPassiveListener(h){this.passiveListeners.add(h)}removePassiveListener(h){this.passiveListeners.delete(h)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(h){return this.resolveInialized(),this.passiveListeners.forEach(f=>f(h)),super.onEvent(h)}initialized(){var h=this;return(0,c.Z)(function*(){yield h.initPromise})()}}function ud(v){return ka.apply(this,arguments)}function ka(){return(ka=(0,c.Z)(function*(v){const h=yield dd()._get(Vc(v));return h&&(yield dd()._remove(Vc(v))),h})).apply(this,arguments)}function _c(){const v=[],h="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let f=0;f<Pp;f++){const I=Math.floor(Math.random()*h.length);v.push(h.charAt(I))}return v.join("")}function dd(){return xe(ea)}function Vc(v){return ke("authEvent",v.config.apiKey,v.name)}function Yl(v){if(!v?.includes("?"))return{};const[h,...f]=v.split("?");return(0,V.zd)(f.join("?"))}const Uc=class fd{constructor(){this._redirectPersistence=ta,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=ya,this._overrideRedirectResult=Cl}_initialize(h){var f=this;return(0,c.Z)(function*(){const I=h._key();let G=f.eventManagers.get(I);return G||(G=new xa(h),f.eventManagers.set(I,G),f.attachCallbackListeners(h,G)),G})()}_openPopup(h){ve(h,"operation-not-supported-in-this-environment")}_openRedirect(h,f,I,G){var ge=this;return(0,c.Z)(function*(){!function oh(v){var h,f,I,G,ge,at,Vt,Dn,zn,ar;const dr=Rl();Ue("function"==typeof(null===(h=dr?.universalLinks)||void 0===h?void 0:h.subscribe),v,"invali
1d-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),Ue(typeof(null===(f=dr?.BuildInfo)||void 0===f?void 0:f.packageName)<"u",v,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),Ue("function"==typeof(null===(ge=null===(G=null===(I=dr?.cordova)||void 0===I?void 0:I.plugins)||void 0===G?void 0:G.browsertab)||void 0===ge?void 0:ge.openUrl),v,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Ue("function"==typeof(null===(Dn=null===(Vt=null===(at=dr?.cordova)||void 0===at?void 0:at.plugins)||void 0===Vt?void 0:Vt.browsertab)||void 0===Dn?void 0:Dn.isAvailable),v,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Ue("function"==typeof(null===(ar=null===(zn=dr?.cordova)||void 0===zn?void 0:zn.InAppBrowser)||void 0===ar?void 0:ar.open),v,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(h);const at=yield ge._initialize(h);yield at.initialized(),at.resetRedirect(),function Xd(){Oo.clear()}(),yield ge._originValidation(h);const Vt=function Iu(v,h,f=null){return{type:h,eventId:f,urlResponse:null,sessionId:_c(),postBody:null,tenantId:v.tenantId,error:ze(v,"no-auth-event")}}(h,I,G);yield function Du(v,h){return dd()._set(Vc(v),h)}(h,Vt);const Dn=yield function Go(v,h,f){return yc.apply(this,arguments)}(h,Vt,f),zn=yield function gf(v){const{cordova:h}=Rl();return new Promise(f=>{h.plugins.browsertab.isAvailable(I=>{let G=null;I?h.plugins.browsertab.openUrl(v):G=h.InAppBrowser.open(v,function Qe(v=(0,V.z$)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(v)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(v)}()?"_blank":"_system","location=yes"),f(G)})})}(Dn);return function sh(v,h,f){return Zl.apply(this,arguments)}(h,at,zn)})()}_isIframeWebStorageSupported(h,f){throw new Error("Method not implemented.")}_originValidation(h){const f=h._key();return this.originValidationPromises[f]||(this.originValidationPromises[f]=function Cu(v){return Ol.apply(this,arguments)}(h)),this.originValidationPromises[f]}attachCallbackListeners(h,f){const{universalLinks:I,handleOpenURL:G,BuildInfo:ge}=Rl(),at=setTimeout((0,c.Z)(function*(){yield ud(h),f.onEvent(Tu())}),500),Vt=function(){var ar=(0,c.Z)(function*(dr){clearTimeout(at);const ts=yield ud(h);let jo=null;ts&&dr?.url&&(jo=function ah(v,h){var f,I;const G=function mf(v){const h=Yl(v),f=h.link?decodeURIComponent(h.link):void 0,I=Yl(f).link,G=h.deep_link_id?decodeURIComponent(h.deep_link_id):void 0;return Yl(G).link||G||I||f||v}(h);if(G.includes("/__/auth/callback")){const ge=Yl(G),at=ge.firebaseError?function qr(v){try{return JSON.parse(v)}catch{return null}}(decodeURIComponent(ge.firebaseError)):null,Vt=null===(I=null===(f=at?.code)||void 0===f?void 0:f.split("auth/"))||void 0===I?void 0:I[1],Dn=Vt?ze(Vt):null;return Dn?{type:v.type,eventId:v.eventId,tenantId:v.tenantId,error:Dn,urlResponse:null,sessionId:null,postBody:null}:{type:v.type,eventId:v.eventId,tenantId:v.tenantId,sessionId:v.sessionId,urlResponse:G,postBody:null}}return null}(ts,dr.url)),f.onEvent(jo||Tu())});return function(ts){return ar.apply(this,arguments)}}();typeof I<"u"&&"function"==typeof I.subscribe&&I.subscribe(null,Vt);const Dn=G,zn=`${ge.packageName.toLowerCase()}://`;Rl().handleOpenURL=function(){var ar=(0,c.Z)(function*(dr){if(dr.toLowerCase().startsWith(zn)&&Vt({url:dr}),"function"==typeof Dn)try{Dn(dr)}catch(ts){console.error(ts)}});return function(dr){return ar.apply(this,arguments)}}()}};function Tu(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:ze("no-auth-event")}}const jc=1e3;function Za(){var v;return(null===(v=self?.location)||void 0===v?void 0:v.protocol)||null}function tl(v=(0,V.z$)()){return!("file:"!==Za()&&"ionic:"!==Za()&&"capacitor:"!==Za()||!v.toLowerCase().match(/iphone|ipad|ipod|android/))}function Su(){try{const v=self.localStorage,h=$a();if(v)return v.setItem(h,"1"),v.removeItem(h),!function Ef(v=(0,V.z$)()){return function nl(){return(0,V.w1)()&&11===document?.documentMode}()||function vf(v=(0,V.z$)()){return/Edge\/\d+/.test(v)}(v)}()||(0,V.hl)()}catch{return gd()&&(0,V.hl)()}return!1}function gd(){return typeof global<"u"&&"WorkerGlobalScope"in global&&"importScripts"in global}function Au(){return(function lh(){return"http:"===Za()||"https:"===Za()}()||(0,V.ru)()||tl())&&!function pd(){return(0,V.b$)()||(0,V.UG)()}()&&Su()&&!gd()}function bs(){return tl()&&typeof document<"u"}function Pl(){return(Pl=(0,c.Z)(function*(){return!!bs()&&new Promise(v=>{const h=setTimeout(()=>{v(!1)},jc);document.addEventListener("deviceready",()=>{clearTimeout(h),v(!0)})})})).apply(this,arguments)}const Ea={LOCAL:"local",NONE:"none",SESSION:"session"},gl=Ue,ch="persistence";function Xl(v){return rl.apply(this,arguments)}function rl(){return(rl=(0,c.Z)(function*(v){yield v._initializationPromise;const h=uh(),f=ke(ch,v.config.apiKey,v.name);h&&h.setItem(f,v._getPersistence())})).apply(this,arguments)}function uh(){var v;try{return(null===(v=function md(){return typeof window<"u"?window:null}())||void 0===v?void 0:v.sessionStorage)||null}catch{return null}}const wf=Ue;class eo{constructor(){this.browserResolver=xe(Pa),this.cordovaResolver=xe(Uc),this.underlyingResolver=null,this._redirectPersistence=ta,this._completeRedirectFn=ya,this._overrideRedirectResult=Cl}_initialize(h){var f=this;return(0,c.Z)(function*(){return yield f.selectUnderlyingResolver(),f.assertedUnderlyingResolver._initialize(h)})()}_openPopup(h,f,I,G){var ge=this;return(0,c.Z)(function*(){return yield ge.selectUnderlyingResolver(),ge.assertedUnderlyingResolver._openPopup(h,f,I,G)})()}_openRedirect(h,f,I,G){var ge=this;return(0,c.Z)(function*(){return yield ge.selectUnderlyingResolver(),ge.assertedUnderlyingResolver._openRedirect(h,f,I,G)})()}_isIframeWebStorageSupported(h,f){this.assertedUnderlyingResolver._isIframeWebStorageSupported(h,f)}_originValidation(h){return this.assertedUnderlyingResolver._originValidation(h)}get _shouldInitProactively(){return bs()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return wf(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var h=this;return(0,c.Z)(function*(){if(h.underlyingResolver)return;const f=yield function Mu(){return Pl.apply(this,arguments)}();h.underlyingResolver=f?h.cordovaResolver:h.browserResolver})()}}function xl(v){return v.unwrap()}function dh(v){return Cf(v)}function Cf(v){const{_tokenResponse:h}=v instanceof V.ZR?v.customData:v;if(!h)return null;if(!(v instanceof V.ZR)&&"temporaryProof"in h&&"phoneNumber"in h)return Ln.credentialFromResult(v);const f=h.providerId;if(!f||f===Re.PASSWORD)return null;let I;switch(f){case Re.GOOGLE:I=So;break;case Re.FACEBOOK:I=co;break;case Re.GITHUB:I=Wi;break;case Re.TWITTER:I=fs;break;default:const{oauthIdToken:G,oauthAccessToken:ge,oauthTokenSecret:at,pendingToken:Vt,nonce:Dn}=h;return ge||at||G||Vt?Vt?f.startsWith("saml.")?xi._create(f,Vt):Qi._fromParams({providerId:f,signInMethod:f,pendingToken:Vt,idToken:G,accessToken:ge}):new Is(f).credential({idToken:G,accessToken:ge,rawNonce:Dn}):null}return v instanceof V.ZR?I.credentialFromError(v):I.credentialFromResult(v)}function ba(v,h){return h.catch(f=>{throw f instanceof V.ZR&&function hh(v,h){var f;
1const I=null===(f=h.customData)||void 0===f?void 0:f._tokenResponse;if("auth/multi-factor-auth-required"===h?.code)h.resolver=new If(v,function on(v,h){var f;const I=(0,V.m9)(v),G=h;return Ue(h.customData.operationType,I,"argument-error"),Ue(null===(f=G.customData._serverResponse)||void 0===f?void 0:f.mfaPendingCredential,I,"argument-error"),Hr._fromError(I,G)}(v,h));else if(I){const G=Cf(h),ge=h;G&&(ge.credential=G,ge.tenantId=I.tenantId||void 0,ge.email=I.email||void 0,ge.phoneNumber=I.phoneNumber||void 0)}}(v,f),f}).then(f=>{const G=f.user;return{operationType:f.operationType,credential:dh(f),additionalUserInfo:Ba(f),user:ml.getOrCreate(G)}})}function $s(v,h){return Ei.apply(this,arguments)}function Ei(){return(Ei=(0,c.Z)(function*(v,h){const f=yield h;return{verificationId:f.verificationId,confirm:I=>ba(v,f.confirm(I))}})).apply(this,arguments)}class If{constructor(h,f){this.resolver=f,this.auth=function yd(v){return v.wrapped()}(h)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(h){return ba(xl(this.auth),this.resolver.resolveSignIn(h))}}class ml{constructor(h){this._delegate=h,this.multiFactor=function Ht(v){const h=(0,V.m9)(v);return Rn.has(h)||Rn.set(h,vs._fromUser(h)),Rn.get(h)}(h)}static getOrCreate(h){return ml.USER_MAP.has(h)||ml.USER_MAP.set(h,new ml(h)),ml.USER_MAP.get(h)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(h){return this._delegate.getIdTokenResult(h)}getIdToken(h){return this._delegate.getIdToken(h)}linkAndRetrieveDataWithCredential(h){return this.linkWithCredential(h)}linkWithCredential(h){var f=this;return(0,c.Z)(function*(){return ba(f.auth,W(f._delegate,h))})()}linkWithPhoneNumber(h,f){var I=this;return(0,c.Z)(function*(){return $s(I.auth,function D(v,h,f){return y.apply(this,arguments)}(I._delegate,h,f))})()}linkWithPopup(h){var f=this;return(0,c.Z)(function*(){return ba(f.auth,function Ys(v,h,f){return Vo.apply(this,arguments)}(f._delegate,h,eo))})()}linkWithRedirect(h){var f=this;return(0,c.Z)(function*(){return yield Xl(Nr(f.auth)),Oc(f._delegate,h,eo)})()}reauthenticateAndRetrieveDataWithCredential(h){return this.reauthenticateWithCredential(h)}reauthenticateWithCredential(h){var f=this;return(0,c.Z)(function*(){return ba(f.auth,Je(f._delegate,h))})()}reauthenticateWithPhoneNumber(h,f){return $s(this.auth,function O(v,h,f){return z.apply(this,arguments)}(this._delegate,h,f))}reauthenticateWithPopup(h){return ba(this.auth,function ls(v,h,f){return po.apply(this,arguments)}(this._delegate,h,eo))}reauthenticateWithRedirect(h){var f=this;return(0,c.Z)(function*(){return yield Xl(Nr(f.auth)),ll(f._delegate,h,eo)})()}sendEmailVerification(h){return function Ts(v,h){return Mo.apply(this,arguments)}(this._delegate,h)}unlink(h){var f=this;return(0,c.Z)(function*(){return yield function Eo(v,h){return Vi.apply(this,arguments)}(f._delegate,h),f})()}updateEmail(h){return function ii(v,h){return Ti((0,V.m9)(v),h,null)}(this._delegate,h)}updatePassword(h){return function Us(v,h){return Ti((0,V.m9)(v),null,h)}(this._delegate,h)}updatePhoneNumber(h){return function _t(v,h){return tn.apply(this,arguments)}(this._delegate,h)}updateProfile(h){return function fo(v,h){return Ss.apply(this,arguments)}(this._delegate,h)}verifyBeforeUpdateEmail(h,f){return function Wo(v,h,f){return bo.apply(this,arguments)}(this._delegate,h,f)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}ml.USER_MAP=new WeakMap;const vc=Ue;let Ru=(()=>{class v{constructor(f,I){if(this.app=f,I.isInitialized())return this._delegate=I.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:G}=f.options;
1vc(G,"invalid-api-key",{appName:f.name}),vc(G,"invalid-api-key",{appName:f.name});const ge=typeof window<"u"?eo:void 0;this._delegate=I.initialize({options:{persistence:kl(G,f.name),popupRedirectResolver:ge}}),this._delegate._updateErrorMap(dt),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?ml.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(f){this._delegate.languageCode=f}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(f){this._delegate.tenantId=f}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(f,I){!function Ai(v,h,f){const I=Nr(v);Ue(I._canInitEmulator,I,"emulator-config-failed"),Ue(/^https?:\/\//.test(h),I,"invalid-emulator-scheme");const G=!!f?.disableWarnings,ge=Fi(h),{host:at,port:Vt}=function ir(v){const h=Fi(v),f=/(\/\/)?([^?#/]+)/.exec(v.substr(h.length));if(!f)return{host:"",port:null};const I=f[2].split("@").pop()||"",G=/^(\[[^\]]+\])(:|$)/.exec(I);if(G){const ge=G[1];return{host:ge,port:ns(I.substr(ge.length+1))}}{const[ge,at]=I.split(":");return{host:ge,port:ns(at)}}}(h);I.config.emulator={url:`${ge}//${at}${null===Vt?"":`:${Vt}`}/`},I.settings.appVerificationDisabledForTesting=!0,I.emulatorConfig=Object.freeze({host:at,port:Vt,protocol:ge.replace(":",""),options:Object.freeze({disableWarnings:G})}),G||function ws(){function v(){const h=document.createElement("p"),f=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",f.position="fixed",f.width="100%",f.backgroundColor="#ffffff",f.border=".1em solid #000000",f.color="#b50000",f.bottom="0px",f.left="0px",f.margin="0px",f.zIndex="10000",f.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",v):v())}()}(this._delegate,f,I)}applyActionCode(f){return function _s(v,h){return Ri.apply(this,arguments)}(this._delegate,f)}checkActionCode(f){return hi(this._delegate,f)}confirmPasswordReset(f,I){return function ki(v,h,f){return Jr.apply(this,arguments)}(this._delegate,f,I)}createUserWithEmailAndPassword(f,I){var G=this;return(0,c.Z)(function*(){return ba(G._delegate,function ho(v,h,f){return Ui.apply(this,arguments)}(G._delegate,f,I))})()}fetchProvidersForEmail(f){return this.fetchSignInMethodsForEmail(f)}fetchSignInMethodsForEmail(f){return function Sa(v,h){return Vs.apply(this,arguments)}(this._delegate,f)}isSignInWithEmailLink(f){return function Ta(v,h){return"EMAIL_SIGNIN"===Fs.parseLink(h)?.operation}(0,f)}getRedirectResult(){var f=this;return(0,c.Z)(function*(){vc(Au(),f._delegate,"operation-not-supported-in-this-environment");const I=yield function id(v,h){return Oa.apply(this,arguments)}(f._delegate,eo);return I?ba(f._delegate,Promise.resolve(I)):{credential:null,user:null}})()}addFrameworkForLogging(f){!function yf(v,h){Nr(v)._logFramework(h)}(this._delegate,f)}onAuthStateChanged(f,I,G){const{next:ge,error:at,complete:Vt}=Bc(f,I,G);return this._delegate.onAuthStateChanged(ge,at,Vt)}onIdTokenChanged(f,I,G){const{next:ge,error:at,complete:Vt}=Bc(f,I,G);return this._delegate.onIdTokenChanged(ge,at,Vt)}sendSignInLinkToEmail(f,I){return function da(v,h,f){return Da.apply(this,arguments)}(this._delegate,f,I)}sendPasswordResetEmail(f,I){return function _r(v,h,f){return Sr.apply(this,arguments)}(this._delegate,f,I||void 0)}setPersistence(f){var I=this;return(0,c.Z)(function*(){let G;switch(function Ql(v,h){gl(Object.values(Ea).includes(h),v,"invalid-persistence-type"),(0,V.b$)()?gl(h!==Ea.SESSION,v,"unsupported-persistence-type"):(0,V.UG)()?gl(h===Ea.NONE,v,"unsupported-persistence-type"):gd()?gl(h===Ea.NONE||h===Ea.LOCAL&&(0,V.hl)(),v,"unsupported-persistence-type"):gl(h===Ea.NONE||Su(),v,"unsupported-persistence-type")}(I._delegate,f),f){case Ea.SESSION:G=ta;break;case Ea.LOCAL:G=(yield xe(Zs)._isAvailable())?Zs:ea;break;case Ea.NONE:G=Ut;break;default:return ve("argument-error",{appName:I._delegate.name})}return I._delegate.setPersistence(G)})()}signInAndRetrieveDataWithCredential(f){return this.signInWithCredential(f)}signInAnonymously(){return ba(this._delegate,function vi(v){return Mi.apply(this,arguments)}(this._delegate))}signInWithCredential(f){return ba(this._delegate,Ks(this._delegate,f))}signInWithCustomToken(f){return ba(this._delegate,function S(v,h){return x.apply(this,arguments)}(this._delegate,f))}signInWithEmailAndPassword(f,I){return ba(this._delegate,function Fr(v,h,f){return Ks((0,V.m9)(v),Yo.credential(h,f))}(this._delegate,f,I))}signInWithEmailLink(f,I){return ba(this._delegate,function os(v,h,f){return as.apply(this,arguments)}(this._delegate,f,I))}signInWithPhoneNumber(f,I){return $s(this._delegate,function Mr(v,h,f){return w.apply(this,arguments)}(this._delegate,f,I))}signInWithPopup(f){var I=this;
1return(0,c.Z)(function*(){return vc(Au(),I._delegate,"operation-not-supported-in-this-environment"),ba(I._delegate,function br(v,h,f){return ei.apply(this,arguments)}(I._delegate,f,eo))})()}signInWithRedirect(f){var I=this;return(0,c.Z)(function*(){return vc(Au(),I._delegate,"operation-not-supported-in-this-environment"),yield Xl(I._delegate),Jd(I._delegate,f,eo)})()}updateCurrentUser(f){return this._delegate.updateCurrentUser(f)}verifyPasswordResetCode(f){return function is(v,h){return ss.apply(this,arguments)}(this._delegate,f)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return v.Persistence=Ea,v})();function Bc(v,h,f){let I=v;"function"!=typeof v&&({next:I,error:h,complete:f}=v);const G=I;return{next:at=>G(at&&ml.getOrCreate(at)),error:h,complete:f}}function kl(v,h){const f=function bf(v,h){const f=uh();if(!f)return[];const I=ke(ch,v,h);switch(f.getItem(I)){case Ea.NONE:return[Ut];case Ea.LOCAL:return[Zs,ta];case Ea.SESSION:return[ta];default:return[]}}(v,h);if(typeof self<"u"&&!f.includes(Zs)&&f.push(Zs),typeof window<"u")for(const I of[ea,ta])f.includes(I)||f.push(I);return f.includes(Ut)||f.push(Ut),f}class Jl{constructor(){this.providerId="phone",this._delegate=new Ln(xl(m.Z.auth()))}static credential(h,f){return Ln.credential(h,f)}verifyPhoneNumber(h,f){return this._delegate.verifyPhoneNumber(h,f)}unwrap(){return this._delegate}}
1Jl.PHONE_SIGN_IN_METHOD=Ln.PHONE_SIGN_IN_METHOD,Jl.PROVIDER_ID=Ln.PROVIDER_ID;const fh=Ue;class _d{constructor(h,f,I=m.Z.app()){var G;fh(null===(G=I.options)||void 0===G?void 0:G.apiKey,"invalid-api-key",{appName:I.name}),this._delegate=new Ar(h,f,I.auth()),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function vd(v){v.INTERNAL.registerComponent(new Oe.wA("auth-compat",h=>{const f=h.getProvider("app-compat").getImmediate(),I=h.getProvider("auth");return new Ru(f,I)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:be_EMAIL_SIGNIN,PASSWORD_RESET:be_PASSWORD_RESET,RECOVER_EMAIL:be_RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:be_REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:be_VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:be_VERIFY_EMAIL}},EmailAuthProvider:Yo,FacebookAuthProvider:co,GithubAuthProvider:Wi,GoogleAuthProvider:So,OAuthProvider:Is,SAMLAuthProvider:Ao,PhoneAuthProvider:Jl,PhoneMultiFactorGenerator:bu,RecaptchaVerifier:_d,TwitterAuthProvider:fs,Auth:Ru,AuthCredential:ds,Error:V.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),v.registerVersion("@firebase/auth-compat","0.4.2")}(m.Z)},6594:(ln,et,C)=>{"use strict";C.d(et,{Sv:()=>Oe,Xg:()=>me,vE:()=>pe});var c=C(6895),m=C(4650),V=C(433);const _e=["*"];let pe=(()=>{class ie{constructor(q,de,be){this.el=q,this.zone=de,this.platformId=be,this.afterChange=new m.EventEmitter,this.beforeChange=new m.EventEmitter,this.breakpoint=new m.EventEmitter,this.destroy=new m.EventEmitter,this.init=new m.EventEmitter,this.currentIndex=0,this.slides=[],this.initialized=!1,this._removedSlides=[],this._addedSlides=[]}ngOnDestroy(){this.unslick()}ngAfterViewInit(){this.ngAfterViewChecked()}ngAfterViewChecked(){if(!(0,c.PM)(this.platformId)&&(this._addedSlides.length>0||this._removedSlides.length>0)){const q=this.slides.length-this._removedSlides.length+this._addedSlides.length;this.initialized?0===q?this.unslick():(this._addedSlides.forEach(de=>{this.slides.push(de),this.zone.runOutsideAngular(()=>{this.$instance.slick("slickAdd",de.el.nativeElement)})}),this._addedSlides=[],this._removedSlides.forEach(de=>{const be=this.slides.indexOf(de);this.slides=this.slides.filter(lt=>lt!==de),this.zone.runOutsideAngular(()=>{this.$instance.slick("slickRemove",be)})}),this._removedSlides=[]):q>0&&this.initSlick()}}initSlick(){this.slides=this._addedSlides,this._addedSlides=[],this._removedSlides=[],this.zone.runOutsideAngular(()=>{this.$instance=jQuery(this.el.nativeElement),this.$instance.on("init",(q,de)=>{this.zone.run(()=>{this.init.emit({event:q,slick:de})})}),this.$instance.slick(this.config),this.zone.run(()=>{this.initialized=!0,this.currentIndex=this.config?.initialSlide||0}),this.$instance.on("afterChange",(q,de,be)=>{this.zone.run(()=>{this.afterChange.emit({event:q,slick:de,currentSlide:be,first:0===be,last:de.$slides.length===be+de.options.slidesToScroll}),this.currentIndex=be})}),this.$instance.on("beforeChange",(q,de,be,lt)=>{this.zone.run(()=>{this.beforeChange.emit({event:q,slick:de,currentSlide:be,nextSlide:lt}),this.currentIndex=lt})}),this.$instance.on("breakpoint",(q,de,be)=>{this.zone.run(()=>{this.breakpoint.emit({event:q,slick:de,breakpoint:be})})}),this.$instance.on("destroy",(q,de)=>{this.zone.run(()=>{this.destroy.emit({event:q,slick:de}),this.initialized=!1})})})}addSlide(q){this._addedSlides.push(q)}removeSlide(q){this._removedSlides.push(q)}slickGoTo(q){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickGoTo",q)})}slickNext(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickNext")})}slickPrev(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPrev")})}slickPause(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPause")})}slickPlay(){this.zone.runOutsideAngular(()=>{this.$instance.slick("slickPlay")})}unslick(){this.$instance&&(this.zone.runOutsideAngular(()=>{this.$instance.slick("unslick")}),this.$instance=void 0),this.initialized=!1}ngOnChanges(q){if(this.initialized){const de=q.config;if(de.previousValue!==de.currentValue&&void 0!==de.currentValue){const be=de.currentValue.refresh,lt=Object.assign({},de.currentValue);delete lt.refresh,this.zone.runOutsideAngular(()=>{this.$instance.slick("slickSetOption",lt,be)})}}}}return ie.\u0275fac=function(q){return new(q||ie)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(m.PLATFORM_ID))},ie.\u0275cmp=m.\u0275\u0275defineComponent({type:ie,selectors:[["ngx-slick-carousel"]],inputs:{config:"config"},outputs:{afterChange:"afterChange",beforeChange:"beforeChange",breakpoint:"breakpoint",destroy:"destroy",init:"init"},exportAs:["slick-carousel"],features:[m.\u0275\u0275ProvidersFeature([{provide:V.NG_VALUE_ACCESSOR,useExisting:(0,m.forwardRef)(()=>ie),multi:!0}]),m.\u0275\u0275NgOnChangesFeature],ngContentSelectors:_e,decls:1,vars:0,template:function(q,de){1&q&&(m.\u0275\u0275projectionDef(),m.\u0275\u0275projection(0))},encapsulation:2}),ie})(),me=(()=>{class ie{constructor(q,de,be,lt){this.el=q,this.renderer=de,this.platformId=be,this.carousel=lt}ngOnInit(){this.carousel.addSlide(this),(0,c.PM)(this.platformId)&&this.carousel.slides.length>0&&this.renderer.setStyle(this.el,"display","none")}ngOnDestroy(){this.carousel.removeSlide(this)}}return ie.\u0275fac=function(q){return new(q||ie)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.Renderer2),m.\u0275\u0275directiveInject(m.PLATFORM_ID),m.\u0275\u0275directiveInject(pe,1))},ie.\u0275dir=m.\u0275\u0275defineDirective({type:ie,selectors:[["","ngxSlickItem",""]]}),ie})(),Oe=(()=>{class ie{}return ie.\u0275fac=function(q){return new(q||ie)},ie.\u0275mod=m.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=m.\u0275\u0275defineInjector({imports:[c.ez]}),ie})()},5861:(ln,et,C)=>{"use strict";function c(V,_e,pe,me,Oe,ie,Re){try{var q=V[ie](Re),de=q.value}catch(be){return void pe(be)}q.done?_e(de):Promise.resolve(de).then(me,Oe)}function m(V){return function(){var _e=this,pe=arguments;return new Promise(function(me,Oe){var ie=V.apply(_e,pe);function Re(de){c(ie,me,Oe,Re,q,"next",de)}function q(de){c(ie,me,Oe,Re,q,"throw",de)}Re(void 0)})}}C.d(et,{Z:()=>m})},7582:(ln,et,C)=>{"use strict";function _e(ae,Ne){var Xe={};for(var qe in ae)Object.prototype.hasOwnProperty.call(ae,qe)&&Ne.indexOf(qe)<0&&(Xe[qe]=ae[qe]);if(null!=ae&&"function"==typeof Object.getOwnPropertySymbols){var yt=0;for(qe=Object.getOwnPropertySymbols(ae);yt<qe.length;yt++)Ne.indexOf(qe[yt])<0&&Object.prototype.propertyIsEnumerable.call(ae,qe[yt])&&(Xe[qe[yt]]=ae[qe[yt]])}return Xe}function be(ae,Ne,Xe,qe){return new(Xe||(Xe=Promise))(function(ft,$t){function cn(Wn){try{wn(qe.next(Wn))}catch(qn){$t(qn)}}function tr(Wn){try{wn(qe.throw(Wn))}catch(qn){$t(qn)}}function wn(Wn){Wn.done?ft(Wn.value):function yt(ft){return ft instanceof Xe?ft:new Xe(function($t){$t(ft)})}(Wn.value).then(cn,tr)}wn((qe=qe.apply(ae,Ne||[])).next())})}function Ve(ae){return this instanceof Ve?(this.v=ae,this):new Ve(ae)}function ve(ae,Ne,Xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var yt,qe=Xe.apply(ae,Ne||[]),ft=[];return yt={},$t("next"),$t("throw"),$t("return"),yt[Symbol.asyncIterator]=function(){return this},yt;function $t(nn){qe[nn]&&(yt[nn]=function(hn){return new Promise(function(rn,_n){ft.push([nn,hn,rn,_n])>1||cn(nn,hn)})})}function cn(nn,hn){try{!function tr(nn){nn.value instanceof Ve?Promise.resolve(nn.value.v).then(wn,Wn):qn(ft[0][2],nn)}(qe[nn](hn))}catch(rn){qn(ft[0][3],rn)}}function wn(nn){cn("next",nn)}function Wn(nn){cn("throw",nn)}function qn(nn,hn){nn(hn),ft.shift(),ft.length&&cn(ft[0][0],ft[0][1])}}function rt(ae){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Xe,Ne=ae[Symbol.asyncIterator];return Ne?Ne.call(ae):(ae=function wt(ae){var Ne="function"==typeof Symbol&&Symbol.iterator,Xe=Ne&&ae[Ne],qe=0;if(Xe)return Xe.call(ae);
vendor: 660 bytes, line 1
1if(ae&&"number"==typeof ae.length)return{next:function(){return ae&&qe>=ae.length&&(ae=void 0),{value:ae&&ae[qe++],done:!ae}}};throw new TypeError(Ne?"Object is not iterable.":"Symbol.iterator is not defined.")}(ae),Xe={},qe("next"),qe("throw"),qe("return"),Xe[Symbol.asyncIterator]=function(){return this},Xe);function qe(ft){Xe[ft]=ae[ft]&&function($t){return new Promise(function(cn,tr){!function yt(ft,$t,cn,tr){Promise.resolve(tr).then(function(wn){ft({value:wn,done:cn})},$t)}(cn,tr,($t=ae[ft]($t)).done,$t.value)})}}}C.d(et,{FC:()=>ve,KL:()=>rt,_T:()=>_e,mG:()=>be,qq:()=>Ve}),"function"==typeof SuppressedError&&SuppressedError}},ln=>{ln(ln.s=5196)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.