1var oC=Object.defineProperty,aC=Object.defineProperties,lC=Object.getOwnPropertyDescriptors,kb=Object.getOwnPropertySymbols,cC=Object.prototype.hasOwnProperty,uC=Object.prototype.propertyIsEnumerable,Y_=(Qt,Z,S)=>Z in Qt?oC(Qt,Z,{enumerable:!0,configurable:!0,writable:!0,value:S}):Qt[Z]=S,K_=(Qt,Z)=>{for(var S in Z||(Z={}))cC.call(Z,S)&&Y_(Qt,S,Z[S]);if(kb)for(var S of kb(Z))uC.call(Z,S)&&Y_(Qt,S,Z[S]);return Qt},$_=(Qt,Z)=>aC(Qt,lC(Z)),Vg=(Qt,Z,S)=>(Y_(Qt,"symbol"!=typeof Z?Z+"":Z,S),S);(self.webpackChunktanitutsX=self.webpackChunktanitutsX||[]).push([[736],{1744:(Qt,Z,S)=>{"use strict";S.d(Z,{zQ:()=>ne,ww:()=>E,Qv:()=>P});var s=S(5e3),_=S(8929),y=S(1086),j=S(6498),D=S(5254),L=S(6787),ce=S(7770),W=S(7545),G=S(4850),$=S(96),te=S(7224);function le(M,A){return A?(0,W.w)(()=>M,A):(0,W.w)(()=>M)}var J=S(3334),Me=S(2198),Re=S(6291),me=S(9808);const P=new s.OlP("angularfire2.auth.use-emulator"),N=new s.OlP("angularfire2.auth.settings"),Y=new s.OlP("angularfire2.auth.tenant-id"),de=new s.OlP("angularfire2.auth.langugage-code"),re=new s.OlP("angularfire2.auth.use-device-language"),V=new s.OlP("angularfire.auth.persistence");let ne=(()=>{class M{constructor(R,ee,B,K,ge,Fe,he,fe,Ie,Se){const pe=new Re.HU(K),ke=(0,Re.ss)(pe),ae=new _.xQ,Ce=(0,y.of)(void 0).pipe((0,ce.QV)(pe.outsideAngular),(0,W.w)(()=>K.runOutsideAngular(()=>Promise.resolve().then(S.bind(S,8304)))),(0,G.U)(()=>(0,Re.on)(R,K,ee)),(0,G.U)(Ve=>K.runOutsideAngular(()=>{const Be=ge,ut=Fe;return(0,Re.sI)(`${Ve.name}.auth`,"AngularFireAuth",Ve,()=>{const Ge=K.runOutsideAngular(()=>Ve.auth());if(Be&&Ge.useEmulator(`http://${Be.join(":")}`),he&&(Ge.tenantId=he),Ge.languageCode=fe,Ie&&Ge.useDeviceLanguage(),ut)for(const[wt,Ot]of Object.entries(ut))Ge.settings[wt]=Ot;return Se&&Ge.setPersistence(Se),Ge},[Be,he,fe,Ie,ut,Se])})),(0,$.d)({bufferSize:1,refCount:!1}));if((0,me.PM)(B))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,y.of)(null);else{Ce.pipe((0,te.P)()).subscribe();const Be=Ce.pipe((0,W.w)(Ot=>Ot.getRedirectResult().then(Ft=>Ft,()=>null)),ke,(0,$.d)({bufferSize:1,refCount:!1})),ut=Ot=>new j.y(Ft=>({unsubscribe:K.runOutsideAngular(()=>Ot(Ft))})),Ge=Ce.pipe((0,W.w)(Ot=>ut(Ot.onAuthStateChanged.bind(Ot)))),wt=Ce.pipe((0,W.w)(Ot=>ut(Ot.onIdTokenChanged.bind(Ot))));this.authState=Be.pipe(le(Ge),(0,J.R)(pe.outsideAngular),(0,ce.QV)(pe.insideAngular)),this.user=Be.pipe(le(wt),(0,J.R)(pe.outsideAngular),(0,ce.QV)(pe.insideAngular)),this.idToken=this.user.pipe((0,W.w)(Ot=>Ot?(0,D.D)(Ot.getIdToken()):(0,y.of)(null))),this.idTokenResult=this.user.pipe((0,W.w)(Ot=>Ot?(0,D.D)(Ot.getIdTokenResult()):(0,y.of)(null))),this.credential=(0,L.T)(Be,ae,this.authState.pipe((0,Me.h)(Ot=>!Ot))).pipe((0,G.U)(Ot=>(null==Ot?void 0:Ot.user)?Ot:null),(0,J.R)(pe.outsideAngular),(0,ce.QV)(pe.insideAngular))}return(0,Re.pX)(this,Ce,K,{spy:{apply:(Ve,Be,ut)=>{(Ve.startsWith("signIn")||Ve.startsWith("createUser"))&&ut.then(Ge=>ae.next(Ge))}}})}}return M.\u0275fac=function(R){return new(R||M)(s.LFG(Re.Dh),s.LFG(Re.xv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(P,8),s.LFG(N,8),s.LFG(Y,8),s.LFG(de,8),s.LFG(re,8),s.LFG(V,8))},M.\u0275prov=s.Yz7({factory:function(){return new M(s.LFG(Re.Dh),s.LFG(Re.xv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(P,8),s.LFG(N,8),s.LFG(Y,8),s.LFG(de,8),s.LFG(re,8),s.LFG(V,8))},token:M,providedIn:"any"}),M})(),E=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=s.oAB({type:M}),M.\u0275inj=s.cJS({providers:[ne]}),M})()},51:(Qt,Z,S)=>{"use strict";S.d(Z,{ST:()=>ae,yb:()=>Ce});var s=S(5e3),_=S(353),y=S(6498),j=S(5254),D=S(1086),L=S(1059),ce=S(3489);function W(){return Ve=>Ve.lift(new G)}class G{call(Be,ut){return ut.subscribe(new $(Be))}}class $ extends ce.L{constructor(Be){super(Be),this.hasPrev=!1}_next(Be){let ut;this.hasPrev?ut=[this.prev,Be]:this.hasPrev=!0,this.prev=Be,ut&&this.destination.next(ut)}}var te=S(4850),le=S(2014),J=S(5778),Me=S(2198),Re=S(7770),me=S(6291),Q=S(9808),P=S(3029),N=S.n(P),de=(S(2731),S(1744));function V(Ve,Be){return function re(Ve,Be=_.z){return new y.y(ut=>{let Ge;return null!=Be?Be.schedule(()=>{Ge=Ve.onSnapshot({includeMetadataChanges:!0},ut)}
1):Ge=Ve.onSnapshot({includeMetadataChanges:!0},ut),()=>{null!=Ge&&Ge()}})}(Ve,Be)}function E(Ve,Be){return V(Ve,Be).pipe((0,te.U)(ut=>({payload:ut,type:"query"})))}function M(Ve,Be){return E(Ve,Be).pipe((0,L.O)(void 0),W(),(0,te.U)(([ut,Ge])=>{const wt=Ge.payload.docChanges(),Ot=wt.map(Ft=>({type:Ft.type,payload:Ft}));return ut&&JSON.stringify(ut.payload.metadata)!==JSON.stringify(Ge.payload.metadata)&&Ge.payload.docs.forEach((Ft,ht)=>{const Ht=wt.find(cn=>cn.doc.ref.isEqual(Ft.ref)),jt=null==ut?void 0:ut.payload.docs.find(cn=>cn.ref.isEqual(Ft.ref));Ht&&JSON.stringify(Ht.doc.metadata)===JSON.stringify(Ft.metadata)||!Ht&&jt&&JSON.stringify(jt.metadata)===JSON.stringify(Ft.metadata)||Ot.push({type:"modified",payload:{oldIndex:ht,newIndex:ht,type:"modified",doc:Ft}})}),Ot}))}function A(Ve,Be,ut){return M(Ve,ut).pipe((0,le.R)((Ge,wt)=>function R(Ve,Be,ut){return Be.forEach(Ge=>{ut.indexOf(Ge.type)>-1&&(Ve=function B(Ve,Be){switch(Be.type){case"added":if(!Ve[Be.newIndex]||!Ve[Be.newIndex].doc.ref.isEqual(Be.doc.ref))return ee(Ve,Be.newIndex,0,Be);break;case"modified":if(null==Ve[Be.oldIndex]||Ve[Be.oldIndex].doc.ref.isEqual(Be.doc.ref)){if(Be.oldIndex!==Be.newIndex){const ut=Ve.slice();return ut.splice(Be.oldIndex,1),ut.splice(Be.newIndex,0,Be),ut}return ee(Ve,Be.newIndex,1,Be)}break;case"removed":if(Ve[Be.oldIndex]&&Ve[Be.oldIndex].doc.ref.isEqual(Be.doc.ref))return ee(Ve,Be.oldIndex,1)}return Ve}(Ve,Ge))}),Ve}(Ge,wt.map(Ot=>Ot.payload),Be),[]),(0,J.x)(),(0,te.U)(Ge=>Ge.map(wt=>({type:wt.type,payload:wt}))))}function ee(Ve,Be,ut,...Ge){const wt=Ve.slice();return wt.splice(Be,ut,...Ge),wt}function K(Ve){return(!Ve||0===Ve.length)&&(Ve=["added","removed","modified"]),Ve}class ge{constructor(Be,ut,Ge){this.ref=Be,this.query=ut,this.afs=Ge}stateChanges(Be){let ut=M(this.query,this.afs.schedulers.outsideAngular);return Be&&Be.length>0&&(ut=ut.pipe((0,te.U)(Ge=>Ge.filter(wt=>Be.indexOf(wt.type)>-1)))),ut.pipe((0,L.O)(void 0),W(),(0,Me.h)(([Ge,wt])=>wt.length>0||!Ge),(0,te.U)(([Ge,wt])=>wt),this.afs.keepUnstableUntilFirst)}auditTrail(Be){return this.stateChanges(Be).pipe((0,le.R)((ut,Ge)=>[...ut,...Ge],[]))}snapshotChanges(Be){const ut=K(Be);return A(this.query,ut,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(Be={}){return E(this.query,this.afs.schedulers.outsideAngular).pipe((0,te.U)(ut=>ut.payload.docs.map(Ge=>Be.idField?Object.assign(Object.assign({},Ge.data()),{[Be.idField]:Ge.id}):Ge.data())),this.afs.keepUnstableUntilFirst)}get(Be){return(0,j.D)(this.query.get(Be)).pipe((0,Re.QV)(this.afs.schedulers.insideAngular))}add(Be){return this.ref.add(Be)}doc(Be){return new Fe(this.ref.doc(Be),this.afs)}}class Fe{constructor(Be,ut){this.ref=Be,this.afs=ut}set(Be,ut){return this.ref.set(Be,ut)}update(Be){return this.ref.update(Be)}delete(){return this.ref.delete()}collection(Be,ut){const Ge=this.ref.collection(Be),{ref:wt,query:Ot}=ke(Ge,ut);return new ge(wt,Ot,this.afs)}snapshotChanges(){return function ne(Ve,Be){return V(Ve,Be).pipe((0,L.O)(void 0),W(),(0,te.U)(([ut,Ge])=>Ge.exists?(null==ut?void 0:ut.exists)?{payload:Ge,type:"modified"}:{payload:Ge,type:"added"}:{payload:Ge,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(Be={}){return this.snapshotChanges().pipe((0,te.U)(({payload:ut})=>Be.idField?Object.assign(Object.assign({},ut.data()),{[Be.idField]:ut.id}):ut.data()))}get(Be){return(0,j.D)(this.ref.get(Be)).pipe((0,Re.QV)(this.afs.schedulers.insideAngular))}}class he{constructor(Be,ut){this.query=Be,this.afs=ut}stateChanges(Be){return Be&&0!==Be.length?M(this.query,this.afs.schedulers.outsideAngular).pipe((0,te.U)(ut=>ut.filter(Ge=>Be.indexOf(Ge.type)>-1)),(0,Me.h)(ut=>ut.length>0),this.afs.keepUnstableUntilFirst):M(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(Be){return this.stateChanges(Be).pipe((0,le.R)((ut,Ge)=>[...ut,...Ge],[]))}snapshotChanges(Be){const ut=K(Be);return A(this.query,ut,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(Be={}){return E(this.query,this.afs.schedulers.outsideAngular).pipe((0,te.U)(Ge=>Ge.payload.docs.map(wt=>Be.idField?Object.assign({[Be.idField]:wt.id},wt.data()):wt.data())),this.afs.keepUnstableUntilFirst)}get(Be){return(0,j.D)(this.query.get(Be)).pipe((0,Re.QV)(this.afs.schedulers.insideAngular))}}const fe=new s.OlP("angularfire2.enableFirestorePersistence"),Ie=new s.OlP("angularfire2.firestore.persistenceSettings"),Se=new s.OlP("angularfire2.firestore.settings"),pe=new s.OlP("angularfire2.firestore.use-emulator");function ke(Ve,Be=(ut=>ut)){return{query:Be(Ve),ref:Ve}}let ae=(()=>{class Ve{constructor(ut,Ge,wt,Ot,Ft,ht,Ht,jt,cn){this.schedulers=new me.HU(ht),this.keepUnstableUntilFirst=(0,me.ss)(this.schedulers);const hn=(0,me.on)(ut,ht,Ge);!N().auth&&cn&&(0,me.yq)();const vn=jt;[this.firestore,this.persistenceEnabled$]=(0,me.sI)(`${hn.name}.firestore`,"AngularFirestore",hn,()=>{const ln=ht.runOutsideAngular(()=>hn.firestore());if(Ot&&ln.settings(Ot),vn&&ln.useEmulator(...vn),wt&&!(0,Q.PM)(Ft)){const Jt=()=>{try{return(0,j.D)(ln.enablePersistence(Ht||void 0).then(()=>!0,()=>!1))}catch(Xe){return"undefined"!=typeof console&&console.warn(Xe),(0,D.of)(!1)}};return[ln,ht.runOutsideAngular(Jt)]}return[ln,(0,D.of)(!1)]},[Ot,vn,wt])}collection(ut,Ge){let wt;wt="string"==typeof ut?this.firestore.collection(ut):ut;const{ref:Ot,query:Ft}=ke(wt,Ge),ht=this.schedulers.ngZone.run(()=>Ot);return new ge(ht,Ft,this)}collectionGroup(ut,Ge){const wt=Ge||(Ft=>Ft),Ot=this.firestore.collectionGroup(ut);return new he(wt(Ot),this)}doc(ut){let Ge;Ge="string"==typeof ut?this.firestore.doc(ut):ut;const wt=this.schedulers.ngZone.run(()=>Ge);return new Fe(wt,this)}createId(){return this.firestore.collection("_").doc().id}}return Ve.\u0275fac=function(ut){return new(ut||Ve)(s.LFG(me.Dh),s.LFG(me.xv,8),s.LFG(fe,8),s.LFG(Se,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(Ie,8),s.LFG(pe,8),s.LFG(de.Qv,8))},Ve.\u0275prov=s.Yz7({factory:function(){return new Ve(s.LFG(me.Dh),s.LFG(me.xv,8),s.LFG(fe,8),s.LFG(Se,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(Ie,8),s.LFG(pe,8),s.LFG(de.Qv,8))},token:Ve,providedIn:"any"}),Ve})(),Ce=(()=>{class Ve{static enablePersistence(ut){return{ngModule:Ve,providers:[{provide:fe,useValue:!0},{provide:Ie,useValue:ut}]}}}return Ve.\u0275fac=function(ut){return new(ut||Ve)},Ve.\u0275mod=s.oAB({type:Ve}),Ve.\u0275inj=s.cJS({providers:[ae]}),Ve})()},2883:(Qt,Z,S)=>{"use strict";S.d(Z,{Qv:()=>Re,l4:()=>Me});var s=S(5e3),_=S(1086),y=S(5254),j=S(7770),D=S(7545),L=S(4850),ce=S(96),W=S(6291);const $=new s.OlP("angularfire2.functions.origin"),te=new s.OlP("angularfire2.functions.region"),le=new s.OlP("angularfire2.functions.new-origin-behavior"),J=new s.OlP("angularfire2.functions.use-emulator");let Me=(()=>{class me{constructor(P,N,Y,de,re,V,ne){const E=new W.HU(Y),M=ne,A=(0,_.of)(void 0).pipe((0,j.QV)(E.outsideAngular),(0,D.w)(()=>S.e(855).then(S.bind(S,4855))),(0,L.U)(()=>(0,W.on)(P,Y,N)),(0,L.U)(R=>(0,W.sI)(`${R.name}.functions.${de||re}`,"AngularFireFunctions",R,()=>{let ee;if(V){if(de&&re)throw new Error("REGION and ORIGIN can't be used at the same time.");ee=R.functions(de||re||void 0)}else ee=R.functions(de||void 0);return!V&&!M&&re&&ee.useFunctionsEmulator(re),M&&ee.useEmulator(...M),ee},[de,re,M])),(0,ce.d)({bufferSize:1,refCount:!1}));return this.httpsCallable=(R,ee)=>B=>(0,y.D)(A).pipe((0,j.QV)(E.insideAngular),(0,D.w)(K=>K.httpsCallable(R,ee)(B)),(0,L.U)(K=>K.data)),(0,W.pX)(this,A,Y)}}return me.\u0275fac=function(P){return new(P||me)(s.LFG(W.Dh),s.LFG(W.xv,8),s.LFG(s.R0b),s.LFG(te,8),s.LFG($,8),s.LFG(le,8),s.LFG(J,8))},me.\u0275prov=s.Yz7({factory:function(){return new me(s.LFG(W.Dh),s.LFG(W.xv,8),s.LFG(s.R0b),s.LFG(te,8),s.LFG($,8),s.LFG(le,8),s.LFG(J,8))},token:me,providedIn:"any"}),me})(),Re=(()=>{class me{}return me.\u0275fac=function(P){return new(P||me)},me.\u0275mod=s.oAB({type:me}),me.\u0275inj=s.cJS({providers:[Me]}),me})()},1396:(Qt,Z,S)=>{"use strict";S.d(Z,{Q1:()=>P,TE:()=>de});var s=S(6498),_=S(1086),y=S(5254),j=S(13),D=S(4850),L=S(7770),ce=S(7545),W=S(5e3),G=S(6291);function J(re){const V=function le(re){return new s.y(V=>{const ne=R=>V.next(R);ne(re.snapshot);const A=re.on("state_changed",ne);return re.then(R=>
1{ne(R),V.complete()},R=>{ne(re.snapshot),(R=>{V.error(R)})(R)}),function(){A()}}).pipe((0,j.b)(0))}(re);return{task:re,then:re.then.bind(re),catch:re.catch.bind(re),pause:re.pause.bind(re),cancel:re.cancel.bind(re),resume:re.resume.bind(re),snapshotChanges:()=>V,percentageChanges:()=>V.pipe((0,D.U)(ne=>ne.bytesTransferred/ne.totalBytes*100))}}function Me(re,V,ne){return{getDownloadURL:()=>(0,_.of)(void 0).pipe((0,L.QV)(V.outsideAngular),(0,ce.w)(()=>re.getDownloadURL()),ne),getMetadata:()=>(0,_.of)(void 0).pipe((0,L.QV)(V.outsideAngular),(0,ce.w)(()=>re.getMetadata()),ne),delete:()=>(0,y.D)(re.delete()),child:E=>Me(re.child(E),V,ne),updateMetadata:E=>(0,y.D)(re.updateMetadata(E)),put:(E,M)=>J(re.put(E,M)),putString:(E,M,A)=>J(re.putString(E,M,A)),listAll:()=>(0,y.D)(re.listAll())}}S(2684),S(9808);const Re=new W.OlP("angularfire2.storageBucket"),me=new W.OlP("angularfire2.storage.maxUploadRetryTime"),Q=new W.OlP("angularfire2.storage.maxOperationRetryTime");let P=(()=>{class re{constructor(ne,E,M,A,R,ee,B){this.schedulers=new G.HU(R),this.keepUnstableUntilFirst=(0,G.ss)(this.schedulers);const K=(0,G.on)(ne,R,E);this.storage=(0,G.sI)(`${K.name}.storage.${M}`,"AngularFireStorage",K,()=>{const ge=R.runOutsideAngular(()=>K.storage(M||void 0));return ee&&ge.setMaxUploadRetryTime(ee),B&&ge.setMaxOperationRetryTime(B),ge},[ee,B])}ref(ne){return Me(this.storage.ref(ne),this.schedulers,this.keepUnstableUntilFirst)}refFromURL(ne){return Me(this.storage.refFromURL(ne),this.schedulers,this.keepUnstableUntilFirst)}upload(ne,E,M){return Me(this.storage.ref(ne),this.schedulers,this.keepUnstableUntilFirst).put(E,M)}}return re.\u0275fac=function(ne){return new(ne||re)(W.LFG(G.Dh),W.LFG(G.xv,8),W.LFG(Re,8),W.LFG(W.Lbi),W.LFG(W.R0b),W.LFG(me,8),W.LFG(Q,8))},re.\u0275prov=W.Yz7({factory:function(){return new re(W.LFG(G.Dh),W.LFG(G.xv,8),W.LFG(Re,8),W.LFG(W.Lbi),W.LFG(W.R0b),W.LFG(me,8),W.LFG(Q,8))},token:re,providedIn:"any"}),re})(),Y=(()=>{class re{}return re.\u0275fac=function(ne){return new(ne||re)},re.\u0275mod=W.oAB({type:re}),re.\u0275inj=W.cJS({}),re})(),de=(()=>{class re{}return re.\u0275fac=function(ne){return new(ne||re)},re.\u0275mod=W.oAB({type:re}),re.\u0275inj=W.cJS({providers:[P],imports:[Y]}),re})()},6291:(Qt,Z,S)=>{"use strict";S.d(Z,{Dh:()=>Q,GT:()=>me,HU:()=>le,hO:()=>A,on:()=>de,pX:()=>Re,sI:()=>E,ss:()=>J,xv:()=>P,yq:()=>re});var s=S(341),_=S(353),y=S(2868),j=S(3334),D=S(7770),L=S(5e3),ce=S(3029),W=S.n(ce);function G(){}Qt=S.hmd(Qt);class ${constructor(ee,B=s.N){this.zone=ee,this.delegate=B}now(){return this.delegate.now()}schedule(ee,B,K){const ge=this.zone;return this.delegate.schedule(function(he){ge.runGuarded(()=>{ee.apply(this,[he])})},B,K)}}class te{constructor(ee){this.zone=ee,this.task=null}call(ee,B){const K=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",G,{},G,G)),B.pipe((0,y.b)({next:K,complete:K,error:K})).subscribe(ee).add(K)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class le{constructor(ee){this.ngZone=ee,this.outsideAngular=ee.runOutsideAngular(()=>new $(Zone.current)),this.insideAngular=ee.run(()=>new $(Zone.current,_.z))}}function J(R){return function(B){return(B=B.lift(new te(R.ngZone))).pipe((0,j.R)(R.outsideAngular),(0,D.QV)(R.insideAngular))}}const Me=["ngOnDestroy"],Re=(R,ee,B,K={})=>new Proxy(R,{get:(ge,Fe)=>B.runOutsideAngular(()=>{var he;if(R[Fe])return(null===(he=null==K?void 0:K.spy)||void 0===he?void 0:he.get)&&K.spy.get(Fe,R[Fe]),R[Fe];if(Me.indexOf(Fe)>-1)return()=>{};const fe=ee.toPromise().then(Ie=>{const Se=Ie&&Ie[Fe];return"function"==typeof Se?Se.bind(Ie):Se&&Se.then?Se.then(pe=>B.run(()=>pe)):B.run(()=>Se)});return new Proxy(()=>{},{get:(Ie,Se)=>fe[Se],apply:(Ie,Se,pe)=>fe.then(ke=>{var ae;const Ce=ke&&ke(...pe);return(null===(ae=null==K?void 0:K.spy)||void 0===ae?void 0:ae.apply)&&K.spy.apply(Fe,pe,Ce),Ce})})})}),me=(R,ee)=>{ee.forEach(B=>{Object.getOwnPropertyNames(B.prototype||B).forEach(K=>{Object.defineProperty(R.prototype,K,Object.getOwnPropertyDescriptor(B.prototype||B,K))})})},Q=new L.OlP("angularfire2.app.options"),P=new L.OlP("angularfire2.app.nameOrConfig"),Y=new L.GfV("6.1.5");function de(R,ee,B){const ge="object"==typeof B&&B||{};ge.name=ge.name||"string"==typeof B&&B||"[DEFAULT]";const he=W().apps.filter(fe=>fe&&fe.name===ge.name)[0]||ee.runOutsideAngular(()=>W().initializeApp(R,ge));try{JSON.stringify(R)!==JSON.stringify(he.options)&&V("error",`${he.name} Firebase App already initialized with different options${Qt.hot?", you may
1need to reload as Firebase is not HMR aware.":"."}`)}catch(fe){}return he}const re=()=>{V("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},V=(R,...ee)=>{(0,L.X6Q)()&&"undefined"!=typeof console&&console[R](...ee)};function E(R,ee,B,K,ge){const[Fe,...he]=globalThis.\u0275AngularfireInstanceCache.get(R)||[];if(Fe){try{ge.some((fe,Ie)=>{const Se=he[Ie];return fe&&"object"==typeof fe?JSON.stringify(fe)!==JSON.stringify(Se):fe!==Se})&&V("error",`${ee} was already initialized on the ${B.name} Firebase App instance with different settings.${Qt.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(fe){}return Fe}{const fe=K();return globalThis.\u0275AngularfireInstanceCache.set(R,[fe,...ge]),fe}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);const M={provide:class N{},useFactory:de,deps:[Q,L.R0b,[new L.FiY,P]]};let A=(()=>{class R{constructor(B){W().registerVersion("angularfire",Y.full,B.toString()),W().registerVersion("angular",L.q4F.full)}static initializeApp(B,K){return{ngModule:R,providers:[{provide:Q,useValue:B},{provide:P,useValue:K}]}}}return R.\u0275fac=function(B){return new(B||R)(L.LFG(L.Lbi))},R.\u0275mod=L.oAB({type:R}),R.\u0275inj=L.cJS({providers:[M]}),R})()},454:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{factory:()=>We,getGlobalVars:()=>Rn,registerAnalytics:()=>xt,resetGlobalVars:()=>Yt,settings:()=>Mt});var y=function(){return y=Object.assign||function(Ne){for(var Ae,Oe=1,Ye=arguments.length;Oe<Ye;Oe++)for(var je in Ae=arguments[Oe])Object.prototype.hasOwnProperty.call(Ae,je)&&(Ne[je]=Ae[je]);return Ne},y.apply(this,arguments)};function W(Ke,Ne,Ae,Oe){return new(Ae||(Ae=Promise))(function(je,Tt){function rn(Xn){try{xn(Oe.next(Xn))}catch(Ai){Tt(Ai)}}function On(Xn){try{xn(Oe.throw(Xn))}catch(Ai){Tt(Ai)}}function xn(Xn){Xn.done?je(Xn.value):function Ye(je){return je instanceof Ae?je:new Ae(function(Tt){Tt(je)})}(Xn.value).then(rn,On)}xn((Oe=Oe.apply(Ke,Ne||[])).next())})}function G(Ke,Ne){var Oe,Ye,je,Tt,Ae={label:0,sent:function(){if(1&je[0])throw je[1];return je[1]},trys:[],ops:[]};return Tt={next:rn(0),throw:rn(1),return:rn(2)},"function"==typeof Symbol&&(Tt[Symbol.iterator]=function(){return this}),Tt;function rn(xn){return function(Xn){return function On(xn){if(Oe)throw new TypeError("Generator is already executing.");for(;Ae;)try{if(Oe=1,Ye&&(je=2&xn[0]?Ye.return:xn[0]?Ye.throw||((je=Ye.return)&&je.call(Ye),0):Ye.next)&&!(je=je.call(Ye,xn[1])).done)return je;switch(Ye=0,je&&(xn=[2&xn[0],je.value]),xn[0]){case 0:case 1:je=xn;break;case 4:return Ae.label++,{value:xn[1],done:!1};case 5:Ae.label++,Ye=xn[1],xn=[0];continue;case 7:xn=Ae.ops.pop(),Ae.trys.pop();continue;default:if(!(je=(je=Ae.trys).length>0&&je[je.length-1])&&(6===xn[0]||2===xn[0])){Ae=0;continue}if(3===xn[0]&&(!je||xn[1]>je[0]&&xn[1]<je[3])){Ae.label=xn[1];break}if(6===xn[0]&&Ae.label<je[1]){Ae.label=je[1],je=xn;break}if(je&&Ae.label<je[2]){Ae.label=je[2],Ae.ops.push(xn);break}je[2]&&Ae.ops.pop(),Ae.trys.pop();continue}xn=Ne.call(Ke,Ae)}catch(Xn){xn=[6,Xn],Ye=0}finally{Oe=je=0}if(5&xn[0])throw xn[1];return{value:xn[0]?xn[1]:void 0,done:!0}}([xn,Xn])}}}var E=S(9278),A=(S(8660),S(4003)),R=S(1270),ee=S(6355),he="https://www.googletagmanager.com/gtag/js",fe=(()=>{return(Ke=fe||(fe={})).EVENT="event",Ke.SET="set",Ke.CONFIG="config",fe;var Ke})(),Ie=(()=>{return(Ke=Ie||(Ie={})).ADD_SHIPPING_INFO="add_shipping_info",Ke.ADD_PAYMENT_INFO="add_payment_info",Ke.ADD_TO_CART="add_to_cart",Ke.ADD_TO_WISHLIST="add_to_wishlist",Ke.BEGIN_CHECKOUT="begin_checkout",Ke.CHECKOUT_PROGRESS="checkout_progress",Ke.EXCEPTION="exception",Ke.GENERATE_LEAD="generate_lead",Ke.LOGIN="login",Ke.PAGE_VIEW="page_view",Ke.PURCHASE="purchase",Ke.REFUND="refund",Ke.REMOVE_FROM_CART="remove_from_cart",Ke.SCREEN_VIEW="screen_view",Ke.SEARCH="search",Ke.SELECT_CONTENT="select_content",Ke.SELECT_ITEM="select_item",Ke.SELECT_PROMOTION="select_promotion",Ke.SET_CHECKOUT_OPTION="set_checkout_option",Ke.SHARE="share",Ke.SIGN_UP="sign_up",Ke.TIMING_COMPLETE="timing_complete",Ke.VIEW_CART="view_cart",Ke.VIEW_ITEM="view_item",Ke.VIEW_ITEM_LIST="view_item_list",Ke.VIEW_PROMOTION="view_promotion",Ke.VIEW_SEARCH_RESULTS="view_search_results",Ie;var Ke})(),Ve=new A.Logger("@firebase/analytics");function Ge(Ke,Ne,Ae,Oe,Ye,je){return W(this,void 0,void 0,function(){var Tt,rn,On,xn;return G(this,function(Xn){switch(Xn.label){case 0:Tt=Oe[Ye],Xn.label=1;case 1:return Xn.trys.push([1,7,,8]),Tt?[4,Ne[Tt]]:[3,3];case 2:return Xn.sent(),[3,6];case 3:return[4,Promise.all(Ae)];case 4:return rn=Xn.sent(),(On=rn.find(function(Ai){return Ai.measurementId===Ye}))?[4,Ne[On.appId]]:[3,6];case 5:Xn.sent(),Xn.label=6;case 6:return[3,8];case 7:return xn=Xn.sent(),Ve.error(xn),[3,8];case 8:return Ke(fe.CONFIG,Ye,je),[2]}})})}function wt(Ke,Ne,Ae,Oe,Ye){return W(this,void 0,void 0,function(){var je,Tt,rn,On,xn,Xn,fi;return G(this,function(Ki){switch(Ki.label){case 0:return Ki.trys.push([0,4,,5]),je=[],Ye&&Ye.send_to?(Tt=Ye.send_to,Array.isArray(Tt)||(Tt=[Tt]),[4,Promise.all(Ae)]):[3,2];case 1:for(rn=Ki.sent(),On=function(pn){var gn=rn.find(function(rt){return rt.measurementId===pn}),En=gn&&Ne[gn.appId];if(!En)return je=[],"break";je.push(En)},xn=0,Xn=Tt;xn<Xn.length&&"break"!==On(Xn[xn]);xn++);Ki.label=2;case 2:return 0===je.length&&(je=Object.values(Ne)),[4,Promise.all(je)];case 3:return Ki.sent(),Ke(fe.EVENT,Oe,Ye||{}),[3,5];case 4:return fi=Ki.sent(),Ve.error(fi),[3,5];case 5:return[2]}})})}var Ht,jt=((Ht={})["already-exists"]="A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.",Ht["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",Ht["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}
1",Ht["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}",Ht["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Ht["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",Ht["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",Ht["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',Ht["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',Ht),cn=new R.ErrorFactory("analytics","Analytics",jt),Jt=new(function(){function Ke(Ne,Ae){void 0===Ne&&(Ne={}),void 0===Ae&&(Ae=1e3),this.throttleMetadata=Ne,this.intervalMillis=Ae}return Ke.prototype.getThrottleMetadata=function(Ne){return this.throttleMetadata[Ne]},Ke.prototype.setThrottleMetadata=function(Ne,Ae){this.throttleMetadata[Ne]=Ae},Ke.prototype.deleteThrottleMetadata=function(Ne){delete this.throttleMetadata[Ne]},Ke}());function Xe(Ke){return new Headers({Accept:"application/json","x-goog-api-key":Ke})}function qe(Ke){var Ne;return W(this,void 0,void 0,function(){var Ae,Ye,je,Tt,rn,On;return G(this,function(Xn){switch(Xn.label){case 0:return Ae=Ke.appId,Ye={method:"GET",headers:Xe(Ke.apiKey)},je="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",Ae),[4,fetch(je,Ye)];case 1:if(200===(Tt=Xn.sent()).status||304===Tt.status)return[3,6];rn="",Xn.label=2;case 2:return Xn.trys.push([2,4,,5]),[4,Tt.json()];case 3:return On=Xn.sent(),(null===(Ne=On.error)||void 0===Ne?void 0:Ne.message)&&(rn=On.error.message),[3,5];case 4:return Xn.sent(),[3,5];case 5:throw cn.create("config-fetch-failed",{httpStatus:Tt.status,responseMessage:rn});case 6:return[2,Tt.json()]}})})}function tt(Ke,Ne,Ae,Oe){var Ye=Ne.throttleEndTimeMillis,je=Ne.backoffCount;return void 0===Oe&&(Oe=Jt),W(this,void 0,void 0,function(){var Tt,rn,On,xn,Xn,Ai,mi;return G(this,function(fi){switch(fi.label){case 0:Tt=Ke.appId,rn=Ke.measurementId,fi.label=1;case 1:return fi.trys.push([1,3,,4]),[4,bt(Ae,Ye)];case 2:return fi.sent(),[3,4];case 3:if(On=fi.sent(),rn)return Ve.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+rn+' provided in the "measurementId" field in the local Firebase config. ['+On.message+"]"),[2,{appId:Tt,measurementId:rn}];throw On;case 4:return fi.trys.push([4,6,,7]),[4,qe(Ke)];case 5:return xn=fi.sent(),Oe.deleteThrottleMetadata(Tt),[2,xn];case 6:if(!function un(Ke){if(!(Ke instanceof R.FirebaseError))return!1;var Ne=Number(Ke.httpStatus);return 429===Ne||500===Ne||503===Ne||504===Ne}(Xn=fi.sent())){if(Oe.deleteThrottleMetadata(Tt),rn)return Ve.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+rn+' provided in the "measurementId" field in the local Firebase config. ['+Xn.message+"]"),[2,{appId:Tt,measurementId:rn}];throw Xn}return Ai=503===Number(Xn.httpStatus)?(0,R.calculateBackoffMillis)(je,Oe.intervalMillis,30):(0,R.calculateBackoffMillis)(je,Oe.intervalMillis),mi={throttleEndTimeMillis:Date.now()+Ai,backoffCount:je+1},Oe.setThrottleMetadata(Tt,mi),Ve.debug("Calling attemptFetch again in "+Ai+" millis"),[2,tt(Ke,mi,Ae,Oe)];case 7:return[2]}})})}function bt(Ke,Ne){return new Promise(function(Ae,Oe){var Ye=Math.max(Ne-Date.now(),0),je=setTimeout(Ae,Ye);Ke.addEventListener(function(){clearTimeout(je),Oe(cn.create("fetch-throttle",{throttleEndTimeMillis:Ne}))})})}var It=function(){function Ke(){this.listeners=[]}return Ke.prototype.addEventListener=function(Ne){this.listeners.push(Ne)}
1,Ke.prototype.abort=function(){this.listeners.forEach(function(Ne){return Ne()})},Ke}();var zn,nn,Wt={},Pt=[],Dn={},Gn="dataLayer",Zn="gtag",Vn=!1;function Yt(Ke,Ne,Ae){void 0===Ke&&(Ke=!1),void 0===Ne&&(Ne={}),void 0===Ae&&(Ae=[]),Vn=Ke,Wt=Ne,Pt=Ae,Gn="dataLayer",Zn="gtag"}function Rn(){return{initializationPromisesMap:Wt,dynamicConfigPromisesList:Pt}}function Mt(Ke){if(Vn)throw cn.create("already-initialized");Ke.dataLayerName&&(Gn=Ke.dataLayerName),Ke.gtagName&&(Zn=Ke.gtagName)}function We(Ke,Ne){!function kt(){var Ke=[];if((0,R.isBrowserExtension)()&&Ke.push("This is a browser extension environment."),(0,R.areCookiesEnabled)()||Ke.push("Cookies are not available."),Ke.length>0){var Ne=Ke.map(function(Oe,Ye){return"("+(Ye+1)+") "+Oe}).join(" "),Ae=cn.create("invalid-analytics-context",{errorInfo:Ne});Ve.warn(Ae.message)}}();var Ae=Ke.options.appId;if(!Ae)throw cn.create("no-app-id");if(!Ke.options.apiKey){if(!Ke.options.measurementId)throw cn.create("no-api-key");Ve.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 '+Ke.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=Wt[Ae])throw cn.create("already-exists",{id:Ae});if(!Vn){(function ht(){for(var Ke=window.document.getElementsByTagName("script"),Ne=0,Ae=Object.values(Ke);Ne<Ae.length;Ne++){var Oe=Ae[Ne];if(Oe.src&&Oe.src.includes(he))return Oe}return null})()||function Be(Ke){var Ne=document.createElement("script");Ne.src=he+"?l="+Ke,Ne.async=!0,document.head.appendChild(Ne)}(Gn),function ut(Ke){var Ne=[];Array.isArray(window[Ke])?Ne=window[Ke]:window[Ke]=Ne}(Gn);var Oe=function Ft(Ke,Ne,Ae,Oe,Ye){var je=function(){for(var Tt=[],rn=0;rn<arguments.length;rn++)Tt[rn]=arguments[rn];window[Oe].push(arguments)};return window[Ye]&&"function"==typeof window[Ye]&&(je=window[Ye]),window[Ye]=function Ot(Ke,Ne,Ae,Oe){return function Ye(je,Tt,rn){return W(this,void 0,void 0,function(){var On;return G(this,function(xn){switch(xn.label){case 0:return xn.trys.push([0,6,,7]),je!==fe.EVENT?[3,2]:[4,wt(Ke,Ne,Ae,Tt,rn)];case 1:return xn.sent(),[3,5];case 2:return je!==fe.CONFIG?[3,4]:[4,Ge(Ke,Ne,Ae,Oe,Tt,rn)];case 3:return xn.sent(),[3,5];case 4:Ke(fe.SET,Tt),xn.label=5;case 5:return[3,7];case 6:return On=xn.sent(),Ve.error(On),[3,7];case 7:return[2]}})})}}(je,Ke,Ne,Ae),{gtagCore:je,wrappedGtag:window[Ye]}}(Wt,Pt,Dn,Gn,Zn);nn=Oe.wrappedGtag,zn=Oe.gtagCore,Vn=!0}Wt[Ae]=function Rt(Ke,Ne,Ae,Oe,Ye){return W(this,void 0,void 0,function(){var je,Tt,rn,On,xn,Xn,Ai;return G(this,function(mi){switch(mi.label){case 0:return je=function Pe(Ke,Ne,Ae){return void 0===Ne&&(Ne=Jt),W(this,void 0,void 0,function(){var Oe,Ye,je,Tt,rn,On,xn=this;return G(this,function(Xn){if(je=(Oe=Ke.options).apiKey,Tt=Oe.measurementId,!(Ye=Oe.appId))throw cn.create("no-app-id");if(!je){if(Tt)return[2,{measurementId:Tt,appId:Ye}];throw cn.create("no-api-key")}return rn=Ne.getThrottleMetadata(Ye)||{backoffCount:0,throttleEndTimeMillis:Date.now()},On=new It,setTimeout(function(){return W(xn,void 0,void 0,function(){return G(this,function(Ai){return On.abort(),[2]})})},void 0!==Ae?Ae:6e4),[2,tt({appId:Ye,apiKey:je,measurementId:Tt},rn,On,Ne)]})})}(Ke),je.then(function(fi){Ae[fi.measurementId]=fi.appId,Ke.options.measurementId&&fi.measurementId!==Ke.options.measurementId&&Ve.warn("The measurement ID in the local Firebase config ("+Ke.options.measurementId+") does not match the measurement ID fetched from the server ("+fi.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(function(fi){return Ve.error(fi)}),Ne.push(je),Tt=function Et(){return W(this,void 0,void 0,function(){var Ke;return G(this,function(Ne){switch(Ne.label){case 0:return(0,R.isIndexedDBAvailable)()?[3,1]:(Ve.warn(cn.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return Ne.trys.push([1,3,,4]),[4,(0,R.validateIndexedDBOpenable)()];case 2:return Ne.sent(),[3,4];case 3:return Ke=Ne.sent(),Ve.warn(cn.create("indexeddb-unavailable",{errorInfo:Ke}).message),[2,!1];case 4:return[2,!0]}})})}().then(function(fi){if(fi)return Oe.getId()}),[4,Promise.all([je,Tt])];case 1:return rn=mi.sent(),On=rn[0],xn=rn[1],Ye("js",new Date),(Ai={}).origin="firebase",Ai.update=!0,Xn=Ai,null!=xn&&(Xn.firebase_id=xn),Ye(fe.CONFIG,On.measurementId,Xn),[2,On.measurementId]}})})}(Ke,Pt,Dn,Ne,zn);var Tt={app:Ke,logEvent:function(rn,On,xn){(function Se(Ke,Ne,Ae,Oe,Ye){return W(this,void 0,void 0,function(){var je,Tt;return G(this,function(rn){switch(rn.label){case 0:return Ye&&Ye.global?(Ke(fe.EVENT,Ae,Oe),[2]):[3,1];case 1:return[4,Ne];case 2:je=rn.sent(),Tt=y(y({},Oe),{send_to:je}),Ke(fe.EVENT,Ae,Tt),rn.label=3;case 3:return[2]}})})})(nn,Wt[Ae],rn,On,xn).catch(function(Xn){return Ve.error(Xn)})},setCurrentScreen:function(rn,On){(function pe(Ke,Ne,Ae,Oe){return W(this,void 0,void 0,function(){var Ye;return G(this,function(je){switch(je.label){case 0:return Oe&&Oe.global?(Ke(fe.SET,{screen_name:Ae}),[2,Promise.resolve()]):[3,1];case 1:return[4,Ne];case 2:Ye=je.sent(),Ke(fe.CONFIG,Ye,{update:!0,screen_name:Ae}),je.label=3;case 3:return[2]}})})})(nn,Wt[Ae],rn,On).catch(function(xn){return Ve.error(xn)})},setUserId:function(rn,On){(function ke(Ke,Ne,Ae,Oe){return W(this,void 0,void 0,function(){var Ye;return G(this,function(je){switch(je.label){case 0:return Oe&&Oe.global?(Ke(fe.SET,{user_id:Ae}),[2,Promise.resolve()]):[3,1];case 1:return[4,Ne];case 2:Ye=je.sent(),Ke(fe.CONFIG,Ye,{update:!0,user_id:Ae}),je.label=3;case 3:return[2]}})})})(nn,Wt[Ae],rn,On).catch(function(xn){return Ve.error(xn)})},setUserProperties:function(rn,On){(function ae(Ke,Ne,Ae,Oe){return W(this,void 0,void 0,function(){var Ye,je,Tt,rn,On;return G(this,function(xn){switch(xn.label){case 0:if(!Oe||!Oe.global)return[3,1];for(Ye={},je=0,Tt=Object.keys(Ae);je<Tt.length;je++)Ye["user_properties."+(rn=Tt[je])]=Ae[rn];return Ke(fe.SET,Ye),[2,Promise.resolve()];case 1:return[4,Ne];case 2:On=xn.sent(),Ke(fe.CONFIG,On,{update:!0,user_properties:Ae}),xn.label=3;case 3:return[2]}})})})(nn,Wt[Ae],rn,On).catch(function(xn){return Ve.error(xn)})},setAnalyticsCollectionEnabled:function(rn){(function Ce(Ke,Ne){return W(this,void 0,void 0,function(){var Ae;return G(this,function(Oe){switch(Oe.label){case 0:return[4,Ke];case 1:return Ae=Oe.sent(),window["ga-disable-"+Ae]=!Ne,[2]}})})}
1)(Wt[Ae],rn).catch(function(On){return Ve.error(On)})},INTERNAL:{delete:function(){return delete Wt[Ae],Promise.resolve()}}};return Tt}var Lt="analytics";function xt(Ke){Ke.INTERNAL.registerComponent(new ee.Component(Lt,function(Ae){return We(Ae.getProvider("app").getImmediate(),Ae.getProvider("installations").getImmediate())},"PUBLIC").setServiceProps({settings:Mt,EventName:Ie,isSupported:Gt})),Ke.INTERNAL.registerComponent(new ee.Component("analytics-internal",function Ne(Ae){try{return{logEvent:Ae.getProvider(Lt).getImmediate().logEvent}}catch(Ye){throw cn.create("interop-component-reg-failed",{reason:Ye})}},"PRIVATE")),Ke.registerVersion("@firebase/analytics","0.6.0")}function Gt(){return W(this,void 0,void 0,function(){return G(this,function(Ae){switch(Ae.label){case 0:if((0,R.isBrowserExtension)())return[2,!1];if(!(0,R.areCookiesEnabled)())return[2,!1];if(!(0,R.isIndexedDBAvailable)())return[2,!1];Ae.label=1;case 1:return Ae.trys.push([1,3,,4]),[4,(0,R.validateIndexedDBOpenable)()];case 2:return[2,Ae.sent()];case 3:return Ae.sent(),[2,!1];case 4:return[2]}})})}xt(E.default)},9278:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var D,de,s=S(9628),_=S(1270),y=S(6355),j=S(4003),L=((D={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",D["bad-app-name"]="Illegal App name: '{$appName}",D["duplicate-app"]="Firebase App named '{$appName}' already exists",D["app-deleted"]="Firebase App named '{$appName}' already deleted",D["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",D["invalid-log-argument"]="First argument to `onLog` must be null or a function.",D),ce=new _.ErrorFactory("app","Firebase",L),W="@firebase/app",re="[DEFAULT]",V=((de={})[W]="fire-core",de["@firebase/analytics"]="fire-analytics",de["@firebase/auth"]="fire-auth",de["@firebase/database"]="fire-rtdb",de["@firebase/functions"]="fire-fn",de["@firebase/installations"]="fire-iid",de["@firebase/messaging"]="fire-fcm",de["@firebase/performance"]="fire-perf",de["@firebase/remote-config"]="fire-rc",de["@firebase/storage"]="fire-gcs",de["@firebase/firestore"]="fire-fst",de["fire-js"]="fire-js",de["firebase-wrapper"]="fire-js-all",de),ne=new j.Logger("@firebase/app"),E=function(){function Ie(Se,pe,ke){var ae,Ce,Ve=this;this.firebase_=ke,this.isDeleted_=!1,this.name_=pe.name,this.automaticDataCollectionEnabled_=pe.automaticDataCollectionEnabled||!1,this.options_=_.deepCopy(Se),this.container=new y.ComponentContainer(pe.name),this._addComponent(new y.Component("app",function(){return Ve},"PUBLIC"));try{for(var Be=s.__values(this.firebase_.INTERNAL.components.values()),ut=Be.next();!ut.done;ut=Be.next())this._addComponent(ut.value)}catch(wt){ae={error:wt}}finally{try{ut&&!ut.done&&(Ce=Be.return)&&Ce.call(Be)}finally{if(ae)throw ae.error}}}return Object.defineProperty(Ie.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(Se){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=Se},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),Ie.prototype.delete=function(){var Se=this;return new Promise(function(pe){Se.checkDestroyed_(),pe()}).then(function(){return Se.firebase_.INTERNAL.removeApp(Se.name_),Promise.all(Se.container.getProviders().map(function(pe){return pe.delete()}))}).then(function(){Se.isDeleted_=!0})},Ie.prototype._getService=function(Se,pe){return void 0===pe&&(pe=re),this.checkDestroyed_(),this.container.getProvider(Se).getImmediate({identifier:pe})},Ie.prototype._removeServiceInstance=function(Se,pe){void 0===pe&&(pe=re),this.container.getProvider(Se).clearInstance(pe)},Ie.prototype._addComponent=function(Se){try{this.container.addComponent(Se)}catch(pe){ne.debug("Component "+Se.name+" failed to register with FirebaseApp "+this.name,pe)}},Ie.prototype._addOrOverwriteComponent=function(Se){this.container.addOrOverwriteComponent(Se)},Ie.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw ce.create("app-deleted",{appName:this.name_})},Ie}();E.prototype.name&&E.prototype.options||E.prototype.delete||console.log("dc");var ee=function R(){var Ie=function A(Ie){var Se={}
1,pe=new Map,ke={__esModule:!0,initializeApp:function Ve(Ft,ht){void 0===ht&&(ht={}),("object"!=typeof ht||null===ht)&&(ht={name:ht});var jt=ht;void 0===jt.name&&(jt.name=re);var cn=jt.name;if("string"!=typeof cn||!cn)throw ce.create("bad-app-name",{appName:String(cn)});if(_.contains(Se,cn))throw ce.create("duplicate-app",{appName:cn});var hn=new Ie(Ft,jt,ke);return Se[cn]=hn,hn},app:Ce,registerVersion:function Ge(Ft,ht,Ht){var jt,cn=null!==(jt=V[Ft])&&void 0!==jt?jt:Ft;Ht&&(cn+="-"+Ht);var hn=cn.match(/\s|\//),vn=ht.match(/\s|\//);if(hn||vn){var ln=['Unable to register library "'+cn+'" with version "'+ht+'":'];return hn&&ln.push('library name "'+cn+'" contains illegal characters (whitespace or "/")'),hn&&vn&&ln.push("and"),vn&&ln.push('version name "'+ht+'" contains illegal characters (whitespace or "/")'),void ne.warn(ln.join(" "))}ut(new y.Component(cn+"-version",function(){return{library:cn,version:ht}},"VERSION"))},setLogLevel:j.setLogLevel,onLog:function wt(Ft,ht){if(null!==Ft&&"function"!=typeof Ft)throw ce.create("invalid-log-argument",{appName:name});j.setUserLogHandler(Ft,ht)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:ut,removeApp:function ae(Ft){delete Se[Ft]},components:pe,useAsService:function Ot(Ft,ht){return"serverAuth"===ht?null:ht}}};function Ce(Ft){if(!_.contains(Se,Ft=Ft||re))throw ce.create("no-app",{appName:Ft});return Se[Ft]}function ut(Ft){var ht,Ht,jt=Ft.name;if(pe.has(jt))return ne.debug("There were multiple attempts to register component "+jt+"."),"PUBLIC"===Ft.type?ke[jt]:null;if(pe.set(jt,Ft),"PUBLIC"===Ft.type){var cn=function(Jt){if(void 0===Jt&&(Jt=Ce()
1),"function"!=typeof Jt[jt])throw ce.create("invalid-app-argument",{appName:jt});return Jt[jt]()};void 0!==Ft.serviceProps&&_.deepExtend(cn,Ft.serviceProps),ke[jt]=cn,Ie.prototype[jt]=function(){for(var Jt=[],Xe=0;Xe<arguments.length;Xe++)Jt[Xe]=arguments[Xe];return this._getService.bind(this,jt).apply(this,Ft.multipleInstances?Jt:[])}}try{for(var hn=s.__values(Object.keys(Se)),vn=hn.next();!vn.done;vn=hn.next())Se[vn.value]._addComponent(Ft)}catch(Jt){ht={error:Jt}}finally{try{vn&&!vn.done&&(Ht=hn.return)&&Ht.call(hn)}finally{if(ht)throw ht.error}}return"PUBLIC"===Ft.type?ke[jt]:null}return ke.default=ke,Object.defineProperty(ke,"apps",{get:function Be(){return Object.keys(Se).map(function(Ft){return Se[Ft]})}}),Ce.App=Ie,ke}(E);return Ie.INTERNAL=s.__assign(s.__assign({},Ie.INTERNAL),{createFirebaseNamespace:R,extendNamespace:function Se(pe){_.deepExtend(Ie,pe)},createSubscribe:_.createSubscribe,ErrorFactory:_.ErrorFactory,deepExtend:_.deepExtend}),Ie}(),B=function(){function Ie(Se){this.container=Se}return Ie.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(pe){if(function K(Ie){var Se=Ie.getComponent();return"VERSION"===(null==Se?void 0:Se.type)}(pe)){var ke=pe.getImmediate();return ke.library+"/"+ke.version}return null}).filter(function(pe){return pe}).join(" ")},Ie}();if(_.isBrowser()&&void 0!==self.firebase){ne.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var Fe=self.firebase.SDK_VERSION;Fe&&Fe.indexOf("LITE")>=0&&ne.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 ")}var he=ee.initializeApp;ee.initializeApp=function(){for(var Ie=[],Se=0;Se<arguments.length;Se++)Ie[Se]=arguments[Se];return _.isNode()&&ne.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),he.apply(void 0,Ie)};var fe=ee;(function ge(Ie,Se){Ie.INTERNAL.registerComponent(new y.Component("platform-logger",function(pe){return new B(pe)},"PRIVATE")),Ie.registerVersion(W,"0.6.11",Se),Ie.registerVersion("fire-js","")})(fe),Z.default=fe,Z.firebase=fe},2451:(Qt,Z,S)=>{(function(){var _,s=S(9278).default,y="function"==typeof Object.defineProperties?Object.defineProperty:function(e,f,F){e!=Array.prototype&&e!=Object.prototype&&(e[f]=F.value)},D=function j(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,e];for(var f=0;f<e.length;++f){var F=e[f];if(F&&F.Math==Math)return F}return globalThis}(this);function ce(e){var f=0;return function(){return f<e.length?{done:!1,value:e[f++]}:{done:!0}}}function W(e){var f="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return f?f.call(e):{next:ce(e)}}!function L(e,f){if(f){var F=D;e=e.split(".");for(var _e=0;_e<e.length-1;_e++){var lt=e[_e];lt in F||(F[lt]={}),F=F[lt]}(f=f(_e=F[e=e[e.length-1]]))!=_e&&null!=f&&y(F,e,{configurable:!0,writable:!0,value:f})}}("Promise",function(e){function f(on){this.b=0,this.c=void 0,this.a=[];var Pn=this.f();try{on(Pn.resolve,Pn.reject)}catch(Ei){Pn.reject(Ei)}}function F(){this.a=null}function _e(on){return on instanceof f?on:new f(function(Pn){Pn(on)})}if(e)return e;F.prototype.b=function(on){if(null==this.a){this.a=[];var Pn=this;this.c(function(){Pn.g()})}this.a.push(on)};var lt=D.setTimeout;
1F.prototype.c=function(on){lt(on,0)},F.prototype.g=function(){for(;this.a&&this.a.length;){var on=this.a;this.a=[];for(var Pn=0;Pn<on.length;++Pn){var Ei=on[Pn];on[Pn]=null;try{Ei()}catch(ki){this.f(ki)}}}this.a=null},F.prototype.f=function(on){this.c(function(){throw on})},f.prototype.f=function(){function on(ki){return function(hs){Ei||(Ei=!0,ki.call(Pn,hs))}}var Pn=this,Ei=!1;return{resolve:on(this.v),reject:on(this.g)}},f.prototype.v=function(on){if(on===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(on instanceof f)this.o(on);else{e:switch(typeof on){case"object":var Pn=null!=on;break e;case"function":Pn=!0;break e;default:Pn=!1}Pn?this.m(on):this.h(on)}},f.prototype.m=function(on){var Pn=void 0;try{Pn=on.then}catch(Ei){return void this.g(Ei)}"function"==typeof Pn?this.u(Pn,on):this.h(on)},f.prototype.g=function(on){this.i(2,on)},f.prototype.h=function(on){this.i(1,on)},f.prototype.i=function(on,Pn){if(0!=this.b)throw Error("Cannot settle("+on+", "+Pn+"): Promise already settled in state"+this.b);this.b=on,this.c=Pn,this.l()},f.prototype.l=function(){if(null!=this.a){for(var on=0;on<this.a.length;++on)Vt.b(this.a[on]);this.a=null}};var Vt=new F;return f.prototype.o=function(on){var Pn=this.f();on.Pa(Pn.resolve,Pn.reject)},f.prototype.u=function(on,Pn){var Ei=this.f();try{on.call(Pn,Ei.resolve,Ei.reject)}catch(ki){Ei.reject(ki)}},f.prototype.then=function(on,Pn){function Ei(vo,tl){return"function"==typeof vo?function(md){try{ki(vo(md))}catch(Fg){hs(Fg)}}:tl}var ki,hs,ko=new f(function(vo,tl){ki=vo,hs=tl});return this.Pa(Ei(on,ki),Ei(Pn,hs)),ko},f.prototype.catch=function(on){return this.then(void 0,on)},f.prototype.Pa=function(on,Pn){function Ei(){switch(ki.b){case 1:on(ki.c);break;case 2:Pn(ki.c);break;default:throw Error("Unexpected state: "+ki.b)}}var ki=this;null==this.a?Vt.b(Ei):this.a.push(Ei)},f.resolve=_e,f.reject=function(on){return new f(function(Pn,Ei){Ei(on)})},f.race=function(on){return new f(function(Pn,Ei){for(var ki=W(on),hs=ki.next();!hs.done;hs=ki.next())_e(hs.value).Pa(Pn,Ei)})},f.all=function(on){var Pn=W(on),Ei=Pn.next();return Ei.done?_e([]):new f(function(ki,hs){function ko(md){return function(Fg){vo[md]=Fg,0==--tl&&ki(vo)}}var vo=[],tl=0;do{vo.push(void 0),tl++,_e(Ei.value).Pa(ko(vo.length-1),hs),Ei=Pn.next()}while(!Ei.done)})},f});var G=G||{},$=this||self,te=/^[\w+/_-]+[=]{0,2}$/,le=null;function J(){}function Me(e){var f=typeof e;if("object"==f){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return f;var F=Object.prototype.toString.call(e);if("[object Window]"==F)return"object";if("[object Array]"==F||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==F||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==f&&void 0===e.call)return"object";return f}function Re(e){var f=Me(e);return"array"==f||"object"==f&&"number"==typeof e.length}function me(e){return"function"==Me(e)}function Q(e){var f=typeof e;return"object"==f&&null!=e||"function"==f}function P(e){return Object.prototype.hasOwnProperty.call(e,N)&&e[N]||(e[N]=++Y)}var N="closure_uid_"+(1e9*Math.random()>>>0),Y=0;function de(e,f,F){return e.call.apply(e.bind,arguments)}function re(e,f,F){if(!e)throw Error();if(2<arguments.length){var _e=Array.prototype.slice.call(arguments,2);return function(){var lt=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(lt,_e),e.apply(f,lt)}}return function(){return e.apply(f,arguments)}}function V(e,f,F){return(V=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?de:re).apply(null,arguments)}function ne(e,f){var F=Array.prototype.slice.call(arguments,1);return function(){var _e=F.slice();return _e.push.apply(_e,arguments),e.apply(this,_e)}}var E=Date.now||function(){return+new Date};function M(e,f){function F(){}F.prototype=f.prototype,e.$a=f.prototype,e.prototype=new F,e.prototype.constructor=e}function A(e,f,F){this.code=ee+e,this.message=f||B[e]||"",this.a=F||null}function R(e){var f=e&&e.code;return f?new A(f.substring(ee.length),e.message,e.serverResponse):null}M(A,Error),A.prototype.w=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},A.prototype.toJSON=function(){return this.w()};var Fe,ee="auth/",B={"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.","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.","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 error 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 error 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 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-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 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.","invali
1d-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.","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.","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 error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is 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-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-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.","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 error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error 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."},K={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function ge(e){for(var f in K)if(K[f].id===e)return{firebaseEndpoint:(e=K[f]).Sa,secureTokenEndpoint:e.Ya,identityPlatformEndpoint:e.Va};return null}function he(e){if(!e)return!1;
1try{return!!e.$goog_Thenable}catch(f){return!1}}function fe(e){if(Error.captureStackTrace)Error.captureStackTrace(this,fe);else{var f=Error().stack;f&&(this.stack=f)}e&&(this.message=String(e))}function Ie(e,f){for(var F="",_e=(e=e.split("%s")).length-1,lt=0;lt<_e;lt++)F+=e[lt]+(lt<f.length?f[lt]:"%s");fe.call(this,F+e[_e])}function Se(e,f){throw new Ie("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function pe(e,f){this.c=e,this.f=f,this.b=0,this.a=null}function ke(e,f){e.f(f),100>e.b&&(e.b++,f.next=e.a,e.a=f)}function ae(){this.b=this.a=null}Fe=ge("__EID__")?"__EID__":void 0,M(fe,Error),fe.prototype.name="CustomError",M(Ie,fe),Ie.prototype.name="AssertionError",pe.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Ce=new pe(function(){return new Be},function(e){e.reset()});function Ve(){var e=Wr,f=null;return e.a&&(f=e.a,e.a=e.a.next,e.a||(e.b=null),f.next=null),f}function Be(){this.next=this.b=this.a=null}ae.prototype.add=function(e,f){var F=Ce.get();F.set(e,f),this.b?this.b.next=F:this.a=F,this.b=F},Be.prototype.set=function(e,f){this.a=e,this.b=f,this.next=null},Be.prototype.reset=function(){this.next=this.b=this.a=null};var ut=Array.prototype.indexOf?function(e,f){return Array.prototype.indexOf.call(e,f,void 0)}:function(e,f){if("string"==typeof e)return"string"!=typeof f||1!=f.length?-1:e.indexOf(f,0);for(var F=0;F<e.length;F++)if(F in e&&e[F]===f)return F;return-1},Ge=Array.prototype.forEach?function(e,f,F){Array.prototype.forEach.call(e,f,F)}:function(e,f,F){for(var _e=e.length,lt="string"==typeof e?e.split(""):e,Vt=0;Vt<_e;Vt++)Vt in lt&&f.call(F,lt[Vt],Vt,e)},Ot=Array.prototype.filter?function(e,f){return Array.prototype.filter.call(e,f,void 0)}:function(e,f){for(var F=e.length,_e=[],lt=0,Vt="string"==typeof e?e.split(""):e,on=0;on<F;on++)if(on in Vt){var Pn=Vt[on];f.call(void 0,Pn,on,e)&&(_e[lt++]=Pn)}return _e},Ft=Array.prototype.map?function(e,f){return Array.prototype.map.call(e,f,void 0)}:function(e,f){for(var F=e.length,_e=Array(F),lt="string"==typeof e?e.split(""):e,Vt=0;Vt<F;Vt++)Vt in lt&&(_e[Vt]=f.call(void 0,lt[Vt],Vt,e));return _e},ht=Array.prototype.some?function(e,f){return Array.prototype.some.call(e,f,void 0)}:function(e,f){for(var F=e.length,_e="string"==typeof e?e.split(""):e,lt=0;lt<F;lt++)if(lt in _e&&f.call(void 0,_e[lt],lt,e))return!0;return!1};function jt(e,f){return 0<=ut(e,f)}function cn(e,f){var F;return(F=0<=(f=ut(e,f)))&&Array.prototype.splice.call(e,f,1),F}function hn(e,f){!function wt(e,f){for(var F="string"==typeof e?e.split(""):e,_e=e.length-1;0<=_e;--_e)_e in F&&f.call(void 0,F[_e],_e,e)}(e,function(_e,lt){f.call(void 0,_e,lt,e)&&Array.prototype.splice.call(e,lt,1)})}function vn(e){return Array.prototype.concat.apply([],arguments)}function ln(e){var f=e.length;if(0<f){for(var F=Array(f),_e=0;_e<f;_e++)F[_e]=e[_e];return F}return[]}var Wt,Jt=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},Xe=/&/g,qe=/</g,Pe=/>/g,tt=/"/g,bt=/'/g,un=/\x00/g,It=/[\x00&<>"']/;function Et(e,f){return-1!=e.indexOf(f)}function Rt(e,f){return e<f?-1:e>f?1:0}e:{var Pt=$.navigator;if(Pt){var Dn=Pt.userAgent;if(Dn){Wt=Dn;break e}}Wt=""}function Gn(e){return Et(Wt,e)}function Zn(e,f){for(var F in e)f.call(void 0,e[F],F,e)}function zn(e){for(var f in e)return!1;return!0}function nn(e){var F,f={};for(F in e)f[F]=e[F];return f}var Vn="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Yt(e,f){for(var F,_e,lt=1;lt<arguments.length;lt++){for(F in _e=arguments[lt])e[F]=_e[F];for(var Vt=0;Vt<Vn.length;Vt++)F=Vn[Vt],Object.prototype.hasOwnProperty.call(_e,F)&&(e[F]=_e[F])}}function Rn(e,f){e:{try{var F=e&&e.ownerDocument,_e=F&&(F.defaultView||F.parentWindow);if((_e=_e||$).Element&&_e.Location){var lt=_e;break e}}catch(on){}lt=null}if(lt&&void 0!==lt[f]&&(!e||!(e instanceof lt[f])&&(e instanceof lt.Location||e instanceof lt.Element))){if(Q(e))try{var Vt=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(on){Vt="<object could not be stringified>"}else Vt=void 0===e?"undefined":null===e?"null":typeof e;Se("Argument is not a %s (or a non-Element, non-Location mock); got: %s",f,Vt)}}function Mt(e,f){this.a=e===Ue&&f||"",this.b=We}function kt(e){return e instanceof Mt&&e.constructor===Mt&&e.b===We?e.a:(Se("expected object of type Const, got '"+e+"'"),"type_error:Const")}Mt.prototype.sa=!0,Mt.prototype.ra=function(){return this.a},Mt.prototype.toString=function(){return"Const{"+this.a+"}"};var We={},Ue={},Qe=new Mt(Ue,"");function Lt(e,f){this.a=e===Oe&&f||"",this.b=Ae}function xt(e){return e instanceof Lt&&e.constructor===Lt&&e.b===Ae?e.a:(Se("expected object of type TrustedResourceUrl, got '"+e+"' of type "+Me(e)),"type_error:TrustedResourceUrl")}function Gt(e,f){var F=kt(e);if(!Ne.test(F))throw Error("Invalid TrustedResourceUrl format: "+F);return e=F.replace(Ke,function(_e,lt){if(!Object.prototype.hasOwnProperty.call(f,lt))throw Error('Found marker, "'+lt+'", in format str
1ing, "'+F+'", but no valid label mapping found in args: '+JSON.stringify(f));return(_e=f[lt])instanceof Mt?kt(_e):encodeURIComponent(String(_e))}),new Lt(Oe,e)}Lt.prototype.sa=!0,Lt.prototype.ra=function(){return this.a.toString()},Lt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ke=/%{(\w+)}/g,Ne=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ae={},Oe={};function Ye(e,f){this.a=e===xn&&f||"",this.b=On}function je(e){return e instanceof Ye&&e.constructor===Ye&&e.b===On?e.a:(Se("expected object of type SafeUrl, got '"+e+"' of type "+Me(e)),"type_error:SafeUrl")}Ye.prototype.sa=!0,Ye.prototype.ra=function(){return this.a.toString()},Ye.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Tt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function rn(e){return e instanceof Ye?e:(e="object"==typeof e&&e.sa?e.ra():String(e),Tt.test(e)||(e="about:invalid#zClosurez"),new Ye(xn,e))}var On={},xn={};function Xn(){this.a="",this.b=mi}function Ai(e){return e instanceof Xn&&e.constructor===Xn&&e.b===mi?e.a:(Se("expected object of type SafeHtml, got '"+e+"' of type "+Me(e)),"type_error:SafeHtml")}Xn.prototype.sa=!0,Xn.prototype.ra=function(){return this.a.toString()},Xn.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var mi={};function fi(e){var f=new Xn;return f.a=e,f}fi("<!DOCTYPE html>");var Ki=fi("");function En(e,f){for(var F=e.split("%s"),_e="",lt=Array.prototype.slice.call(arguments,1);lt.length&&1<F.length;)_e+=F.shift()+lt.shift();return _e+F.join("%s")}function rt(e){return It.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(Xe,"&")),-1!=e.indexOf("<")&&(e=e.replace(qe,"<")),-1!=e.indexOf(">")&&(e=e.replace(Pe,">")),-1!=e.indexOf('"')&&(e=e.replace(tt,""")),-1!=e.indexOf("'")&&(e=e.replace(bt,"'")),-1!=e.indexOf("\0")&&(e=e.replace(un,"�"))),e}function it(e){return it[" "](e),e}fi("<br>"),it[" "]=J;var Qn,e,ve=Gn("Opera"),at=Gn("Trident")||Gn("MSIE"),q=Gn("Edge"),xe=q||at,_t=Gn("Gecko")&&!(Et(Wt.toLowerCase(),"webkit")&&!Gn("Edge"))&&!(Gn("Trident")||Gn("MSIE"))&&!Gn("Edge"),Xt=Et(Wt.toLowerCase(),"webkit")&&!Gn("Edge");function Un(){var e=$.document;return e?e.documentMode:void 0}e:{var vi="",li=(e=Wt,_t?/rv:([^\);]+)(\)|;)/.exec(e):q?/Edge\/([\d\.]+)/.exec(e):at?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Xt?/WebKit\/(\S+)/.exec(e):ve?/(?:Version)[ \/]?(\S+)/.exec(e):void 0);if(li&&(vi=li?li[1]:""),at){var mr=Un();if(null!=mr&&mr>parseFloat(vi)){Qn=String(mr);break e}}Qn=vi}var Wi,zi={};function hr(e){return function ue(e,f){var F=zi;return Object.prototype.hasOwnProperty.call(F,e)?F[e]:F[e]=f(e)}(e,function(){for(var f=0,F=Jt(String(Qn)).split("."),_e=Jt(String(e)).split("."),lt=Math.max(F.length,_e.length),Vt=0;0==f&&Vt<lt;Vt++){var on=F[Vt]||"",Pn=_e[Vt]||"";do{if(on=/(\d*)(\D*)(.*)/.exec(on)||["","","",""],Pn=/(\d*)(\D*)(.*)/.exec(Pn)||["","","",""],0==on[0].length&&0==Pn[0].length)break;f=Rt(0==on[1].length?0:parseInt(on[1],10),0==Pn[1].length?0:parseInt(Pn[1],10))||Rt(0==on[2].length,0==Pn[2].length)||Rt(on[2],Pn[2]),on=on[3],Pn=Pn[3]}while(0==f)}return 0<=f})}Wi=$.document&&at?Un():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(e){}var qs=!at||9<=Number(Wi);function fs(e){var f=document;return"string"==typeof e?f.getElementById(e):e}function or(e,f){Zn(f,function(F,_e){F&&"object"==typeof F&&F.sa&&(F=F.ra()),"style"==_e?e.style.cssText=F:"class"==_e?e.className=F:"for"==_e?e.htmlFor=F:vs.hasOwnProperty(_e)?e.setAttribute(vs[_e],F):0==_e.lastIndexOf("aria-",0)||0==_e.lastIndexOf("data-",0)?e.setAttribute(_e,F):e[_e]=F})}var Rs,zr,vs={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Ds(e,f,F){function _e(on){on&&f.appendChild("string"==typeof on?e.createTextNode(on):on)}for(var lt=2;lt<F.length;lt++){var Vt=F[lt];!Re(Vt)||Q(Vt)&&0<Vt.nodeType?_e(Vt):Ge(Qs(Vt)?ln(Vt):Vt,_e)}}function dr(e,f){return f=String(f),"application/xhtml+xml"===e.contentType&&(f=f.toLowerCase()),e.createElement(f)}function Qs(e){if(e&&"number"==typeof e.length){if(Q(e))return"function"==typeof e.item||"string"==typeof e.item;if(me(e))return"function"==typeof e.item}return!1}function Os(e){$.setTimeout(function(){throw e},0)}function qr(e,f){zr||function Oo(){if($.Promise&&$.Promise.resolve){var e=$.Promise.resolve(void 0);zr=function(){e.then(ys)}}else zr=function(){var f=ys;!me($.setImmediate)||$.Window&&$.Window.prototype&&!Gn("Edge")&&$.Window.prototype.setImmediate==$.setImmediate?(Rs||(Rs=function Js(){var e=$.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!Gn("Presto")&&(e=function(){var lt=dr(document,"IFRAME");lt.style.display="none",function pn(e){var f=new Lt(Oe,kt(Qe));Rn(e,"HTMLIFrameElement"),e.src=xt(f).toString()}(lt),document.documentElement.appendChild(lt);var Vt=lt.contentWindow;(lt=Vt.document).open(),lt.write(Ai(Ki)),lt.close();var on="callImmediate"+Math.random(),Pn="file:"==Vt.location.protocol?"*":Vt.location.protocol+"//"+Vt.location.host;lt=V(function(Ei){("*"==Pn||Ei.origin==Pn)&&Ei.data==on&&this.port1.onmessage()},this),Vt.addEventListener("message",lt,!1),this.port1={},this.port2={postMessage:function(){Vt.postMessage(on,Pn)}}}),void 0!==e&&!Gn("Trident")&&!Gn("MSIE")){var f=new e,F={},_e=F;return f.port1.onmessage=function(){if(void 0!==F.next){var lt=(F=F.next).Fb;F.Fb=null,lt()}},function(lt){_e.next={Fb:lt},_e=_e.next,f.port2.postMessage(0)}}return function(lt){$.setTimeout(lt,0)}}()),Rs(f)):$.setImmediate(f)}}(),ar||(zr(),ar=!0),Wr.add(e,f)}var ar=!1,Wr=new ae;function ys(){for(var e;e=Ve();){try{e.a.call(e.b)}catch(f){Os(f)}ke(Ce,e)}ar=!1}function fr(e,f){if(this.a=ls,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=J)try{var F=this;e.call(f,function(_e){lo(F,eo,_e)},function(_e){if(!(_e instanceof Ws))try{throw _e instanceof Error?_e:Error("Promise rejected.")}catch(lt){}lo(F,Kr,_e)})}catch(_e){lo(this,Kr,_e)}}var ls=0,eo=2,Kr=3;function zs(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}zs.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Ro=new pe(function(){return new zs},function(e){e.reset()});function xs(e,f,F){var _e=Ro.get();return _e.g=e,_e.b=f,_e.f=F,_e}function Ui(e){if(e instanceof fr)return e;var f=new fr(J);return lo(f,eo,e),f}function vr(e){return new fr(function(f,F){F(e)})}function Po(e,f,F){wo(e,f,F,null)||qr(ne(f,e))}function Ao(e){return new fr(function(f){var F=e.length,_e=[];
1if(F)for(var lt=function(Pn,Ei,ki){F--,_e[Pn]=Ei?{Ob:!0,value:ki}:{Ob:!1,reason:ki},0==F&&f(_e)},Vt=0;Vt<e.length;Vt++)Po(e[Vt],ne(lt,Vt,!0),ne(lt,Vt,!1));else f(_e)})}function to(e,f){if(e.a==ls)if(e.c){var F=e.c;if(F.b){for(var _e=0,lt=null,Vt=null,on=F.b;on&&(on.c||(_e++,on.a==e&&(lt=on),!(lt&&1<_e)));on=on.next)lt||(Vt=on);lt&&(F.a==ls&&1==_e?to(F,f):(Vt?((_e=Vt).next==F.f&&(F.f=_e),_e.next=_e.next.next):Mo(F),no(F,lt,Kr,f)))}e.c=null}else lo(e,Kr,f)}function ms(e,f){e.b||e.a!=eo&&e.a!=Kr||Xs(e),e.f?e.f.next=f:e.b=f,e.f=f}function Ar(e,f,F,_e){var lt=xs(null,null,null);return lt.a=new fr(function(Vt,on){lt.g=f?function(Pn){try{var Ei=f.call(_e,Pn);Vt(Ei)}catch(ki){on(ki)}}:Vt,lt.b=F?function(Pn){try{var Ei=F.call(_e,Pn);void 0===Ei&&Pn instanceof Ws?on(Pn):Vt(Ei)}catch(ki){on(ki)}}:on}),lt.a.c=e,ms(e,lt),lt.a}function lo(e,f,F){e.a==ls&&(e===F&&(f=Kr,F=new TypeError("Promise cannot resolve to itself")),e.a=1,wo(F,e.Zc,e.$c,e)||(e.i=F,e.a=f,e.c=null,Xs(e),f!=Kr||F instanceof Ws||function Dr(e,f){e.g=!0,qr(function(){e.g&&mo.call(null,f)})}(e,F)))}function wo(e,f,F,_e){if(e instanceof fr)return ms(e,xs(f||J,F||null,_e)),!0;if(he(e))return e.then(f,F,_e),!0;if(Q(e))try{var lt=e.then;if(me(lt))return function Nr(e,f,F,_e,lt){function Vt(Ei){Pn||(Pn=!0,_e.call(lt,Ei))}var Pn=!1;try{f.call(e,function on(Ei){Pn||(Pn=!0,F.call(lt,Ei))},Vt)}catch(Ei){Vt(Ei)}}(e,lt,f,F,_e),!0}catch(Vt){return F.call(_e,Vt),!0}return!1}function Xs(e){e.h||(e.h=!0,qr(e.fc,e))}function Mo(e){var f=null;return e.b&&(e.b=(f=e.b).next,f.next=null),e.b||(e.f=null),f}function no(e,f,F,_e){if(F==Kr&&f.b&&!f.c)for(;e&&e.g;e=e.c)e.g=!1;if(f.a)f.a.c=null,Fs(f,F,_e);else try{f.c?f.g.call(f.f):Fs(f,F,_e)}catch(lt){mo.call(null,lt)}ke(Ro,f)}function Fs(e,f,F){f==eo?e.g.call(e.f,F):e.b&&e.b.call(e.f,F)}fr.prototype.then=function(e,f,F){return Ar(this,me(e)?e:null,me(f)?f:null,F)},fr.prototype.$goog_Thenable=!0,(_=fr.prototype).na=function(e,f){return(e=xs(e,e,f)).c=!0,ms(this,e),this},_.s=function(e,f){return Ar(this,null,e,f)},_.cancel=function(e){if(this.a==ls){var f=new Ws(e);qr(function(){to(this,f)},this)}},_.Zc=function(e){this.a=ls,lo(this,eo,e)},_.$c=function(e){this.a=ls,lo(this,Kr,e)},_.fc=function(){for(var e;e=Mo(this);)no(this,e,this.a,this.i);this.h=!1};var mo=Os;function Ws(e){fe.call(this,e)}function bs(){0!=ws&&(vt[P(this)]=this),this.xa=this.xa,this.oa=this.oa}M(Ws,fe),Ws.prototype.name="cancel";var ws=0,vt={};function pt(e){if(!e.xa&&(e.xa=!0,e.Da(),0!=ws)){var f=P(e);if(0!=ws&&e.oa&&0<e.oa.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete vt[f]}}bs.prototype.xa=!1,bs.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var Zt=Object.freeze||function(e){return e},yn=!at||9<=Number(Wi),Mn=at&&!hr("9"),jn=function(){if(!$.addEventListener||!Object.defineProperty)return!1;var e=!1,f=Object.defineProperty({},"passive",{get:function(){e=!0}});try{$.addEventListener("test",J,f),$.removeEventListener("test",J,f)}catch(F){}return e}();function ti(e,f){this.type=e,this.b=this.target=f,this.defaultPrevented=!1}function pi(e,f){if(ti.call(this,e?e.type:""),this.relatedTarget=this.b=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.pointerId=0,this.pointerType="",this.a=null,e){var F=this.type=e.type,_e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=f,f=e.relatedTarget){if(_t){e:{try{it(f.nodeName);var lt=!0;break e}catch(Vt){}lt=!1}lt||(f=null)}}else"mouseover"==F?f=e.fromElement:"mouseout"==F&&(f=e.toElement);this.relatedTarget=f,_e?(this.clientX=void 0!==_e.clientX?_e.clientX:_e.pageX,this.clientY=void 0!==_e.clientY?_e.clientY:_e.pageY,this.screenX=_e.screenX||0,this.screenY=_e.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:hi[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}ti.prototype.preventDefault=function(){this.defaultPrevented=!0},M(pi,ti);var hi=Zt({2:"touch",3:"pen",4:"mouse"});pi.prototype.preventDefault=function(){pi.$a.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Mn)try{(e.ctrlKey||112<=e.keyCode&&123>
1=e.keyCode)&&(e.keyCode=-1)}catch(f){}},pi.prototype.g=function(){return this.a};var Di="closure_listenable_"+(1e6*Math.random()|0),Pi=0;function Xi(e,f,F,_e,lt){this.listener=e,this.proxy=null,this.src=f,this.type=F,this.capture=!!_e,this.Ua=lt,this.key=++Pi,this.va=this.Oa=!1}function tr(e){e.va=!0,e.listener=null,e.proxy=null,e.src=null,e.Ua=null}function Qr(e){this.src=e,this.a={},this.b=0}function pr(e,f){var F=f.type;F in e.a&&cn(e.a[F],f)&&(tr(f),0==e.a[F].length&&(delete e.a[F],e.b--))}function ts(e,f,F,_e){for(var lt=0;lt<e.length;++lt){var Vt=e[lt];if(!Vt.va&&Vt.listener==f&&Vt.capture==!!F&&Vt.Ua==_e)return lt}return-1}Qr.prototype.add=function(e,f,F,_e,lt){var Vt=e.toString();(e=this.a[Vt])||(e=this.a[Vt]=[],this.b++);var on=ts(e,f,_e,lt);return-1<on?(f=e[on],F||(f.Oa=!1)):((f=new Xi(f,this.src,Vt,!!_e,lt)).Oa=F,e.push(f)),f};var jr="closure_lm_"+(1e6*Math.random()|0),ps={};function Rr(e,f,F,_e,lt){if(_e&&_e.once)gs(e,f,F,_e,lt);else if(Array.isArray(f))for(var Vt=0;Vt<f.length;Vt++)Rr(e,f[Vt],F,_e,lt);else F=ni(F),e&&e[Di]?Yi(e,f,F,Q(_e)?!!_e.capture:!!_e,lt):Us(e,f,F,!1,_e,lt)}function Us(e,f,F,_e,lt,Vt){if(!f)throw Error("Invalid event type");var on=Q(lt)?!!lt.capture:!!lt,Pn=et(e);if(Pn||(e[jr]=Pn=new Qr(e)),!(F=Pn.add(f,F,_e,on,Vt)).proxy)if(_e=function Ss(){var e=mt,f=yn?function(F){return e.call(f.src,f.listener,F)}:function(F){if(!(F=e.call(f.src,f.listener,F)))return F};return f}(),F.proxy=_e,_e.src=e,_e.listener=F,e.addEventListener)jn||(lt=on),void 0===lt&&(lt=!1),e.addEventListener(f.toString(),_e,lt);else if(e.attachEvent)e.attachEvent(To(f.toString()),_e);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(_e)}}function gs(e,f,F,_e,lt){if(Array.isArray(f))for(var Vt=0;Vt<f.length;Vt++)gs(e,f[Vt],F,_e,lt);else F=ni(F),e&&e[Di]?Eo(e,f,F,Q(_e)?!!_e.capture:!!_e,lt):Us(e,f,F,!0,_e,lt)}function Ms(e,f,F,_e,lt){if(Array.isArray(f))for(var Vt=0;Vt<f.length;Vt++)Ms(e,f[Vt],F,_e,lt);else _e=Q(_e)?!!_e.capture:!!_e,F=ni(F),e&&e[Di]?(e=e.v,(f=String(f).toString())in e.a&&-1<(F=ts(Vt=e.a[f],F,_e,lt))&&(tr(Vt[F]),Array.prototype.splice.call(Vt,F,1),0==Vt.length&&(delete e.a[f],e.b--))):e&&(e=et(e))&&(f=e.a[f.toString()],e=-1,f&&(e=ts(f,F,_e,lt)),(F=-1<e?f[e]:null)&&io(F))}function io(e){if("number"!=typeof e&&e&&!e.va){var f=e.src;if(f&&f[Di])pr(f.v,e);else{var F=e.type,_e=e.proxy;f.removeEventListener?f.removeEventListener(F,_e,e.capture):f.detachEvent?f.detachEvent(To(F),_e):f.addListener&&f.removeListener&&f.removeListener(_e),(F=et(f))?(pr(F,e),0==F.b&&(F.src=null,f[jr]=null)):tr(e)}}}function To(e){return e in ps?ps[e]:ps[e]="on"+e}function Is(e,f,F,_e){var lt=!0;if((e=et(e))&&(f=e.a[f.toString()]))for(f=f.concat(),e=0;e<f.length;e++){var Vt=f[e];Vt&&Vt.capture==F&&!Vt.va&&(Vt=yt(Vt,_e),lt=lt&&!1!==Vt)}return lt}function yt(e,f){var F=e.listener,_e=e.Ua||e.src;return e.Oa&&io(e),F.call(_e,f)}function mt(e,f){if(e.va)return!0;if(!yn){if(!f)e:{f=["window","event"];for(var F=$,_e=0;_e<f.length;_e++)if(null==(F=F[f[_e]])){f=null;break e}f=F}if(f=new pi(_e=f,this),F=!0,!(0>_e.keyCode||null!=_e.returnValue)){e:{var lt=!1;if(0==_e.keyCode)try{_e.keyCode=-1;break e}catch(on){lt=!0}(lt||null==_e.returnValue)&&(_e.returnValue=!0)}for(_e=[],lt=f.b;lt;lt=lt.parentNode)_e.push(lt);for(e=e.type,lt=_e.length-1;0<=lt;lt--){f.b=_e[lt];var Vt=Is(_e[lt],e,!0,f);F=F&&Vt}for(lt=0;lt<_e.length;lt++)f.b=_e[lt],Vt=Is(_e[lt],e,!1,f),F=F&&Vt}return F}return yt(e,new pi(f,this))}function et(e){return(e=e[jr])instanceof Qr?e:null}var Kt="__closure_events_fn_"+(1e9*Math.random()>>>0);function ni(e){return me(e)?e:(e[Kt]||(e[Kt]=function(f){return e.handleEvent(f)}),e[Kt])}function Fi(){bs.call(this),this.v=new Qr(this),this.$b=this,this.fb=null}function Yi(e,f,F,_e,lt){e.v.add(String(f),F,!1,_e,lt)}function Eo(e,f,F,_e,lt){e.v.add(String(f),F,!0,_e,lt)}function Ls(e,f,F,_e){if(!(f=e.v.a[String(f)]))return!0;f=f.concat();for(var lt=!0,Vt=0;Vt<f.length;++Vt){var on=f[Vt];if(on&&!on.va&&on.capture==F){var Pn=on.listener,Ei=on.Ua||on.src;on.Oa&&pr(e.v,on),lt=!1!==Pn.call(Ei,_e)&<}}
1return lt&&!_e.defaultPrevented}function Br(e,f,F){if(me(e))F&&(e=V(e,F));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=V(e.handleEvent,e)}return 2147483647<Number(f)?-1:$.setTimeout(e,f||0)}function ji(e){var f=null;return new fr(function(F,_e){-1==(f=Br(function(){F(void 0)},e))&&_e(Error("Failed to schedule timer."))}).s(function(F){throw $.clearTimeout(f),F})}function _i(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"==typeof e)return e.split("");if(Re(e)){for(var f=[],F=e.length,_e=0;_e<F;_e++)f.push(e[_e]);return f}for(_e in f=[],F=0,e)f[F++]=e[_e];return f}function Xr(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.V||"function"!=typeof e.V){if(Re(e)||"string"==typeof e){var f=[];e=e.length;for(var F=0;F<e;F++)f.push(F);return f}for(var _e in f=[],F=0,e)f[F++]=_e;return f}}function cs(e,f){this.b={},this.a=[],this.c=0;var F=arguments.length;if(1<F){if(F%2)throw Error("Uneven number of arguments");for(var _e=0;_e<F;_e+=2)this.set(arguments[_e],arguments[_e+1])}else if(e)if(e instanceof cs)for(F=e.Y(),_e=0;_e<F.length;_e++)this.set(F[_e],e.get(F[_e]));else for(_e in e)this.set(_e,e[_e])}function is(e){if(e.c!=e.a.length){for(var f=0,F=0;f<e.a.length;){var _e=e.a[f];js(e.b,_e)&&(e.a[F++]=_e),f++}e.a.length=F}if(e.c!=e.a.length){var lt={};for(F=f=0;f<e.a.length;)js(lt,_e=e.a[f])||(e.a[F++]=_e,lt[_e]=1),f++;e.a.length=F}}function js(e,f){return Object.prototype.hasOwnProperty.call(e,f)}M(Fi,bs),Fi.prototype[Di]=!0,Fi.prototype.addEventListener=function(e,f,F,_e){Rr(this,e,f,F,_e)},Fi.prototype.removeEventListener=function(e,f,F,_e){Ms(this,e,f,F,_e)},Fi.prototype.dispatchEvent=function(e){var f,F=this.fb;if(F)for(f=[];F;F=F.fb)f.push(F);F=this.$b;var _e=e.type||e;if("string"==typeof e)e=new ti(e,F);else if(e instanceof ti)e.target=e.target||F;else{var lt=e;Yt(e=new ti(_e,F),lt)}if(lt=!0,f)for(var Vt=f.length-1;0<=Vt;Vt--){var on=e.b=f[Vt];lt=Ls(on,_e,!0,e)&<}if(lt=Ls(on=e.b=F,_e,!0,e)&<,lt=Ls(on,_e,!1,e)&<,f)for(Vt=0;Vt<f.length;Vt++)lt=Ls(on=e.b=f[Vt],_e,!1,e)&<return lt},Fi.prototype.Da=function(){if(Fi.$a.Da.call(this),this.v){var F,e=this.v;for(F in e.a){for(var _e=e.a[F],lt=0;lt<_e.length;lt++)tr(_e[lt]);delete e.a[F],e.b--}}this.fb=null},(_=cs.prototype).V=function(){is(this);for(var e=[],f=0;f<this.a.length;f++)e.push(this.b[this.a[f]]);return e},_.Y=function(){return is(this),this.a.concat()},_.clear=function(){this.b={},this.c=this.a.length=0},_.get=function(e,f){return js(this.b,e)?this.b[e]:f},_.set=function(e,f){js(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=f},_.forEach=function(e,f){for(var F=this.Y(),_e=0;_e<F.length;_e++){var lt=F[_e],Vt=this.get(lt);e.call(f,Vt,lt,this)}};var _o=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function oo(e,f){var F;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,e instanceof oo?(this.i=void 0!==f?f:e.i,Ia(this,e.f),this.l=e.l,this.a=e.a,Co(this,e.g),this.c=e.c,qo(this,Mr(e.b)),this.h=e.h):e&&(F=String(e).match(_o))?(this.i=!!f,Ia(this,F[1]||"",!0),this.l=ye(F[2]||""),this.a=ye(F[3]||"",!0),Co(this,F[4]),this.c=ye(F[5]||"",!0),qo(this,F[6]||"",!0),this.h=ye(F[7]||"")):(this.i=!!f,this.b=new ci(null,this.i))}function Ia(e,f,F){e.f=F?ye(f,!0):f,e.f&&(e.f=e.f.replace(/:$/,""))}function Co(e,f){if(f){if(f=Number(f),isNaN(f)||0>f)throw Error("Bad port number "+f);e.g=f}else e.g=null}function qo(e,f,F){f instanceof ci?(e.b=f,function Sr(e,f){f&&!e.f&&(Oi(e),e.c=null,e.a.forEach(function(F,_e){var lt=_e.toLowerCase();_e!=lt&&(_r(this,_e),Li(this,lt,F))},e)),e.f=f}(e.b,e.i)):(F||(f=Te(f,In)),e.b=new ci(f,e.i))}function us(e,f,F){e.b.set(f,F)}function Ur(e,f){return e.b.get(f)}function Ys(e){return e instanceof oo?new oo(e):new oo(e,void 0)}function Bt(e,f,F,_e){var lt=new oo(null,void 0);return e&&Ia(lt,e),f&&(lt.a=f),F&&Co(lt,F),_e&&(lt.c=_e),lt}function ye(e,f){return e?f?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Te(e,f,F){return"string"==typeof e?(e=encodeURI(e).replace(f,gt),F&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function gt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}oo.prototype.toString=function(){var e=[],f=this.f;f&&e.push(Te(f,$t,!0),":");var F=this.a;return(F||"file"==f)&&(e.push("//"),(f=this.l)&&e.push(Te(f,$t,!0),"@"),e.push(encodeURIComponent(String(F)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(F=this.g)&&e.push(":",String(F))),(F=this.c)&&(this.a&&"/"!=F.charAt(0)&&e.push("/"),e.push(Te(F,"/"==F.charAt(0)?kn:mn,!0))),(F=this.b.toString())&&e.push("?",F),(F=this.h)&&e.push("#",Te(F,Yn)),e.join("")},oo.prototype.resolve=function(e){var f=new oo(this),F=!!e.f;F?Ia(f,e.f):F=!!e.l,F?f.l=e.l:F=!!e.a,F?f.a=e.a:F=null!=e.g;var _e=e.c;if(F)Co(f,e.g);else if(F=!!e.c){if("/"!=_e.charAt(0))if(this.a&&!this.c)_e="/"+_e;else{var lt=f.c.lastIndexOf("/");-1!=lt&&(_e=f.c.substr(0,lt+1)+_e)}if(".."==(lt=_e)||"."==lt)_e="";else if(Et(lt,"./")||Et(lt,"/.")){_e=0==lt.lastIndexOf("/",0),lt=lt.split("/");for(var Vt=[],on=0;on<lt.length;){var Pn=lt[on++];"."==Pn?_e&&on==lt.length&&Vt.push(""):".."==Pn?((1<Vt.length||1==Vt.length&&""!=Vt[0])&&Vt.pop(),_e&&on==lt.length&&Vt.push("")):(Vt.push(Pn),_e=!0)}_e=Vt.join("/")}else _e=lt}return F?f.c=_e:F=""!==e.b.toString(),F?qo(f,Mr(e.b)):F=!!e.h,F&&(f.h=e.h),f};var $t=/[#\/\?@]/g,mn=/[#\?:]/g,kn=/[#\?]/g,In=/[#\?@]/g,Yn=/#/g;function ci(e,f){this.b=this.a=null,this.c=e||null,this.f=!!f}function Oi(e){e.a||(e.a=new cs,e.b=0,e.c&&function Yo(e,f){if(e){e=e.split("&");for(var F=0;F<e.length;F++){var _e=e[F].indexOf("="),lt=null;if(0<=_e){var Vt=e[F].substring(0,_e);lt=e[F].substring(_e+1)}else Vt=e[F];f(Vt,lt?decodeURIComponent(lt.replace(/\+/g," ")):"")}}}(e.c,function(f,F){e.add(decodeURIComponent(f.replace(/\+/g," ")),F)}))}function Ji(e){var f=Xr(e);
1if(void 0===f)throw Error("Keys are undefined");var F=new ci(null,void 0);e=_i(e);for(var _e=0;_e<f.length;_e++){var lt=f[_e],Vt=e[_e];Array.isArray(Vt)?Li(F,lt,Vt):F.add(lt,Vt)}return F}function _r(e,f){Oi(e),f=ui(e,f),js(e.a.b,f)&&(e.c=null,e.b-=e.a.get(f).length,js((e=e.a).b,f)&&(delete e.b[f],e.c--,e.a.length>2*e.c&&is(e)))}function wr(e,f){return Oi(e),f=ui(e,f),js(e.a.b,f)}function Li(e,f,F){_r(e,f),0<F.length&&(e.c=null,e.a.set(ui(e,f),ln(F)),e.b+=F.length)}function Mr(e){var f=new ci;return f.c=e.c,e.a&&(f.a=new cs(e.a),f.b=e.b),f}function ui(e,f){return f=String(f),e.f&&(f=f.toLowerCase()),f}function $r(e){var f=[];return Vr(new Es,e,f),f.join("")}function Es(){}function Vr(e,f,F){if(null==f)F.push("null");else{if("object"==typeof f){if(Array.isArray(f)){var _e=f;f=_e.length,F.push("[");for(var lt="",Vt=0;Vt<f;Vt++)F.push(lt),Vr(e,_e[Vt],F),lt=",";return void F.push("]")}if(!(f instanceof String||f instanceof Number||f instanceof Boolean)){for(_e in F.push("{"),lt="",f)Object.prototype.hasOwnProperty.call(f,_e)&&"function"!=typeof(Vt=f[_e])&&(F.push(lt),br(_e,F),F.push(":"),Vr(e,Vt,F),lt=",");return void F.push("}")}f=f.valueOf()}switch(typeof f){case"string":br(f,F);break;case"number":F.push(isFinite(f)&&!isNaN(f)?String(f):"null");break;case"boolean":F.push(String(f));break;case"function":F.push("null");break;default:throw Error("Unknown type: "+typeof f)}}}(_=ci.prototype).add=function(e,f){Oi(this),this.c=null,e=ui(this,e);var F=this.a.get(e);return F||this.a.set(e,F=[]),F.push(f),this.b+=1,this},_.clear=function(){this.a=this.c=null,this.b=0},_.forEach=function(e,f){Oi(this),this.a.forEach(function(F,_e){Ge(F,function(lt){e.call(f,lt,_e,this)},this)},this)},_.Y=function(){Oi(this);for(var e=this.a.V(),f=this.a.Y(),F=[],_e=0;_e<f.length;_e++)for(var lt=e[_e],Vt=0;Vt<lt.length;Vt++)F.push(f[_e]);return F},_.V=function(e){Oi(this);var f=[];if("string"==typeof e)wr(this,e)&&(f=vn(f,this.a.get(ui(this,e))));else{e=this.a.V();for(var F=0;F<e.length;F++)f=vn(f,e[F])}return f},_.set=function(e,f){return Oi(this),this.c=null,wr(this,e=ui(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[f]),this.b+=1,this},_.get=function(e,f){return e&&0<(e=this.V(e)).length?String(e[0]):f},_.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],f=this.a.Y(),F=0;F<f.length;F++){var _e=f[F],lt=encodeURIComponent(String(_e));_e=this.V(_e);for(var Vt=0;Vt<_e.length;Vt++){var on=lt;""!==_e[Vt]&&(on+="="+encodeURIComponent(String(_e[Vt]))),e.push(on)}}return this.c=e.join("&")};var es={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},As=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function br(e,f){f.push('"',e.replace(As,function(F){var _e=es[F];return _e||(_e="\\u"+(65536|F.charCodeAt(0)).toString(16).substr(1),es[F]=_e),_e}),'"')}function rs(){var e=Ir();return at&&!!Wi&&11==Wi||/Edge\/\d+/.test(e)}function H(){return $.window&&$.window.location.href||self&&self.location&&self.location.href||""}function nt(e,f){f=f||$.window;var F="about:blank";e&&(F=je(rn(e))),f.location.href=F}function At(e,f){var _e,F=[];for(_e in e)_e in f?typeof e[_e]!=typeof f[_e]?F.push(_e):"object"==typeof e[_e]&&null!=e[_e]&&null!=f[_e]?0<At(e[_e],f[_e]).length&&F.push(_e):e[_e]!==f[_e]&&F.push(_e):F.push(_e);for(_e in f)_e in e||F.push(_e);return F}function Fn(e){return!!((e=(e||Ir()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function qn(e){e=e||$.window;try{e.close()}catch(f){}}function Hi(e,f,F){var _e=Math.floor(1e9*Math.random()).toString();f=f||500,F=F||600;var lt=(window.screen.availHeight-F)/2,Vt=(window.screen.availWidth-f)/2;for(on in f={width:f,height:F,top:0<lt?lt:0,left:0<Vt?Vt:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},F=Ir().toLowerCase(),_e&&(f.target=_e,Et(F,"crios/")&&(f.target="_blank")),Zi(Ir())==Ni&&(e=e||"http://localhost",f.scrollbars=!0),F=e||"",(e=f)||(e={}),_e=window,f=F instanceof Ye?F:rn(void 0!==F.href?F.href:String(F)),F=e.target||F.target,lt=[],e)switch(on){case"width":case"height":case"top":case"left":lt.push(on+"="+e[on]);break;case"target":case"noopener":case"noreferrer":break;default:lt.push(on+"="+(e[on]?1:0))}var on=lt.join(",");if((Gn("iPhone")&&!Gn("iPod")&&!Gn("iPad")||Gn("iPad")||Gn("iPod"))&&_e.navigator&&_e.navigator.standalone&&F&&"_self"!=F?(Rn(on=dr(document,"A"),"HTMLAnchorElement"),f instanceof Ye||f instanceof Ye||(f="object"==typeof f&&f.s
1a?f.ra():String(f),Tt.test(f)||(f="about:invalid#zClosurez"),f=new Ye(xn,f)),on.href=je(f),on.setAttribute("target",F),e.noreferrer&&on.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,_e,1),on.dispatchEvent(e),on={}):e.noreferrer?(on=_e.open("",F,on),e=je(f),on&&(xe&&Et(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),on.opener=null,e=fi('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+rt(e)+'">'),_e=on.document)&&(_e.write(Ai(e)),_e.close())):(on=_e.open(je(f),F,on))&&e.noopener&&(on.opener=null),on)try{on.focus()}catch(Pn){}return on}var xi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nr=/^[^@]+@[^@]+$/;function Er(){var e=null;return new fr(function(f){"complete"==$.document.readyState?f():(e=function(){f()},gs(window,"load",e))}).s(function(f){throw Ms(window,"load",e),f})}function Dt(e){return e=e||Ir(),!("file:"!==u()&&"ionic:"!==u()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function ct(){var e=$.window;try{return!(!e||e==e.top)}catch(f){return!1}}function zt(){return void 0!==$.WorkerGlobalScope&&"function"==typeof $.importScripts}function wn(){return s.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":s.INTERNAL.hasOwnProperty("node")?"Node":zt()?"Worker":"Browser"}function ii(){var e=wn();return"ReactNative"===e||"Node"===e}var Ni="Firefox";function Zi(e){var f=e.toLowerCase();return Et(f,"opera/")||Et(f,"opr/")||Et(f,"opios/")?"Opera":Et(f,"iemobile")?"IEMobile":Et(f,"msie")||Et(f,"trident/")?"IE":Et(f,"edge/")?"Edge":Et(f,"firefox/")?Ni:Et(f,"silk/")?"Silk":Et(f,"blackberry")?"Blackberry":Et(f,"webos")?"Webos":!Et(f,"safari/")||Et(f,"chrome/")||Et(f,"crios/")||Et(f,"android")?!Et(f,"chrome/")&&!Et(f,"crios/")||Et(f,"edge/")?Et(f,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":"Chrome":"Safari"}var Pr={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};function Fr(e,f){f=f||[];var lt,F=[],_e={};for(lt in Pr)_e[Pr[lt]]=!0;for(lt=0;lt<f.length;lt++)void 0!==_e[f[lt]]&&(delete _e[f[lt]],F.push(f[lt]));return F.sort(),(f=F).length||(f=["FirebaseCore-web"]),"Browser"===(F=wn())?F=Zi(_e=Ir()):"Worker"===F&&(F=Zi(_e=Ir())+"-"+F),F+"/JsCore/"+e+"/"+f.join(",")}function Ir(){return $.navigator&&$.navigator.userAgent||""}function Cr(e,f){e=e.split("."),f=f||$;for(var F=0;F<e.length&&"object"==typeof f&&null!=f;F++)f=f[e[F]];return F!=e.length&&(f=void 0),f}function st(){try{var e=$.localStorage,f=ft();if(e)return e.setItem(f,"1"),e.removeItem(f),!rs()||!!$.indexedDB}catch(F){return zt()&&!!$.indexedDB}return!1}function He(){return(g()||"chrome-extension:"===u()||Dt())&&!ii()&&st()&&!zt()}function g(){return"http:"===u()||"https:"===u()}function u(){return $.location&&$.location.protocol||null}function v(e){return!(Fn(e=e||Ir())||Zi(e)==Ni)}function T(e){return void 0===e?null:$r(e)}function ie(e){var F,f={};for(F in e)e.hasOwnProperty(F)&&null!=e[F]&&(f[F]=e[F]);return f}function we(e){if(null!==e)return JSON.parse(e)}function ft(e){return e||Math.floor(1e9*Math.random()).toString()}function Ut(e){return!("Safari"==Zi(e=e||Ir())||e.toLowerCase().match(/iphone|ipad|ipod/))}function dn(){var e=$.___jsl;if(e&&e.H)for(var f in e.H)if(e.H[f].r=e.H[f].r||[],e.H[f].L=e.H[f].L||[],e.H[f].r=e.H[f].L.concat(),e.CP)for(var F=0;F<e.CP.length;F++)e.CP[F]=null}function tn(e,f){if(e>f)throw Error("Short delay should be less than long delay!");this.a=e,this.c=f,e=Ir(),f=wn(),this.b=Fn(e)||"ReactNative"===f}function Bn(){var e=$.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function ri(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}function wi(e){try{var f=new Date(parseInt(e,10));if(!isNaN(f.getTime())&&!/[^0-9]/.test(e))return f.toUTCString()}catch(F){}return null}function Gi(){return!(!Cr("fireauth.oauthhelper",$)&&!Cr("fireauth.iframe",$))}tn.prototype.get=function(){var e=$.navigator;return!e||"boolean"!=typeof e.onLine||!g()&&"chrome-extension:"!==u()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Fo,Lr={};function _s(e){Lr[e]||(Lr[e]=!0,ri(e))}try{var sa={};Object.defineProperty(sa,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(sa,"abcd",{configurable:!0,enumerable:!0,value:2}),Fo=2==sa.abcd}catch(e){Fo=!1}function Qi(e,f,F){Fo?Object.defineProperty(e,f,{configurable:!0,enumerable:!0,value:F}):e[f]=F}function xo(e,f){if(f)for(var F in f)f.hasOwnProperty(F)&&Qi(e,F,f[F])}function na(e){var f={};return xo(f,e),f}function Al(e){var f=e;if("object"==typeof e&&null!=e)for(var F in f="length"in e?[]:{},e)Qi(f,F,Al(e[F]));return f}function cc(e){var f=e&&(e[xc]?"phone":null);if(!(f&&e&&e[Tc]))throw new A("internal-error","Internal assert: invalid MultiFactorInfo object");Qi(this,"uid",e[Tc]),Qi(this,"displayName",e[dl]||null);var F=null;e[_a]&&(F=new Date(e[_a]).toUTCString()),Qi(this,"enrollmentTime",F),Qi(this,"factorId",f)}function Tu(e){try{var f=new Ka(e)}catch(F){f=null}return f}cc.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var dl="displayName",_a="enrolledAt",Tc="mfaEnrollmentId",xc="phoneInfo";function Ka(e){cc.call(this,e),Qi(this,"phoneNumber",e[xc])}function Rh(e){var f={},F=e[oh],_e=e[Ph],lt=e[Fh];if(e=Tu(e[ro]),!lt||lt!=Ml&<!=Xc&&!F||lt==Xc&&!_e||lt==fl&&!e)throw Error("Invalid checkActionCode response!");lt==Xc?(f[Oa]=F||null,f[Lo]=F||null,f[ka]=_e):(f[Oa]=_e||null,f[Lo]=_e||null,f[ka]=F||null),f[Bo]=e||null,Qi(this,Tl,lt),Qi(this,Cg,Al(f))}M(Ka,cc),Ka.prototype.w=function(){var e=Ka.$a.w.call(this);return e.phoneNumber=this.phoneNumber,e};var fl="REVERT_SECOND_FACTOR_ADDITION",Ml="EMAIL_SIGNIN",Xc="VERIFY_AND_CHANGE_EMAIL",oh="email",ro="mfaInfo",Ph="newEmail",Fh="requestType",ka="email",Oa="fromEmail",Bo="multiFactorInfo",Lo="previousEmail",Cg="data",Tl="operation";function Ks(e){var f=Ur(e=Ys(e),so)||null,F=Ur(e,da)||null,_e=Ur(e,zl)||null;if(_e=_e&&aa[_e]||null,!f||!F||!_e)throw new A("argument-error",so+", "+da+"and "+zl+" are required in a valid action code URL.");xo(this,{apiKey:f,operation:_e,code:F,continueUrl:Ur(e,Qo)||null,languageCode:Ur(e,va)||null,tenantId:Ur(e,oa)||null})}var so="apiKey",da="oobCode",Qo="continueUrl",va="languageCode",zl="mode",oa="tenantId",aa={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:fl,signIn:Ml,verifyAndChangeEmail:Xc,verifyEmail:"VERIFY_EMAIL"};function ah(e){try{return new Ks(e)}catch(f){return null}}function Ic(e){var f=e[Qf];if(void 0===f)throw new A("missing-continue-uri");if("string"!=typeof f||"string"==typeof f&&!f.length)throw new A("invalid-continue-uri");this.h=f,this.b=this.a=null,this.g=!1;var F=e[Zc];if(F&&"object"==typeof F){f=F[fa];var _e=F[il];if(F=F[kc],"string"==typeof f&&f.length){if(this.a=f,void 0!==_e&&"boolean"!=typeof _e)throw new A("argument-error",il+" property must be a boolean when specified.");if(this.g=!!_e,void 0!==F&&("string"!=typeof F||"string"==typeof F&&!F.length))throw new A("argument-error",kc+" property must be a non empty string when specified.");this.b=F||null}else{if(void 0!==f)throw new A("argument-error",fa+" property must be a non empty string when specified.");if(void 0!==_e||void 0!==F)throw new A("missing-android-pkg-name")}}else if(void 0!==F)throw new A("argument-error",Zc+" property must be a non null object when specified.");if(this.f=null,(f=e[Wl])&&"object"==typeof f){if("string"==typeof(f=f[Ra])&&f.length)this.f=f;else if(void 0!==f)throw new A("argument-error",Ra+" property must be a non empty string when specified.")}else if(void 0!==f)throw new A("argument-error",Wl+" property must be a non null object when specified.");if(void 0!==(f=e[xu])&&"boolean"!=typeof f)throw new A("argument-error",xu+" property must be a boolean when specified.");if(this.c=!!f,void 0!==(e=e[lh])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new A("argument-error",lh+" property must be a non empty string when specified.");this.i=e||null}var Zc="android",lh="dynamicLinkDomain",xu="handleCodeInApp",Wl="iOS",Qf="url",il="installApp",kc="minimumVersion",fa="packageName",Ra="bundleId";function pl(e){var f={};for(var F in f.continueUrl=e.h,f.canHandleCodeInApp=e.c,(f.androidPackageName=e.a)&&(f.androidMinimumVersion=e.b,f.androidInstallApp=e.g),f.iOSBundleId=e.f,f.dynamicLinkDomain=e.i,f)null===f[F]&&delete f[F];return f}var Oc=null;function Yl(e){var f=Lh(e);if(!(f&&f.sub&&f.iss&&f.aud&&f.exp))throw Error("Invalid JWT");this.g=e,this.c=f.exp,this.h=f.sub,E(),this.a=f.provider_id||f.firebase&&f.firebase.sign_in_provider||null,this.f=f.firebase&&f.firebase.tenant||null,this.b=!!f.is_anonymous||"anonymous"==this.a}function Rc(e){try{return new Yl(e)}catch(f){return null}}function Lh(e){if(!e||3!=(e=e.split(".")).length)return null;for(var f=(4-(e=e[1]).length%4)%4,F=0;F<f;F++)e+=".";try{return JSON.parse(function uh(e){var f="";return function hf(e,f){function F(Ei){for(;_e<e.length;){var ki=e.charAt(_e++),hs=Oc[ki];if(null!=hs)return hs;if(!/^[\s\xa0]*$/.test(ki))throw Error("Unknown base64 encoding at char: "+ki)}return Ei}!function df(){if(!Oc){Oc={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],F=0;5>F;F++)for(var _e=e.concat(f[F].split("")),lt=0;lt<_e.length;lt++){var Vt=_e[lt];void 0===Oc[Vt]&&(Oc[Vt]=lt)}}}();for(var _e=0;;){var lt=F(-1),Vt=F(0),on=F(64),Pn=F(64);if(64===Pn&&-1===lt)break;f(lt<<2|Vt>>4),64!=on&&(f(Vt<<4&240|on>>2),64!=Pn&&f(on<<6&192|Pn))}}(e,function(F){f+=String.fromCharCode(F)}),f}(e))}catch(_e){}return null}Yl.prototype.S=function(){return this.f},Yl.prototype.i=function(){return this.b},Yl.prototype.toString=function(){return this.g};var ia="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),xl=["client_id","response_type","scope","redirect_uri","state"],Pc={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:xl},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:xl},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:xl},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:ia},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function ya(e){for(var f in Pc)if(Pc[f].fa==e)return Pc[f];return null}function hh(e){var f={};f["facebook.com"]=Io,f["google.com"]=Kl,f["github.com"]=Xf,f["twitter.com"]=ff;var F=e&&e[Nh];try{if(F)return f[F]?new f[F](e):new Pa(e);if(void 0!==e[Jc])return new Il(e)}catch(_e){}return null}var Jc="idToken",Nh="providerId";function Il(e){var f=e[Nh];if(!f&&e[Jc]){var F=Rc(e[Jc]);F&&F.a&&(f=F.a)}if(!f)throw Error("Invalid additional user info!");("anonymous"==f||"custom"==f)&&(f=null),F=!1,void 0!==e.isNewUser?F=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(F=!0),Qi(this,"providerId",f),Qi(this,"isNewUser",F)}function Pa(e){Il.call(this,e),Qi(this,"profile",Al((e=we(e.rawUserInfo||"{}"))||{}))}function Io(e){if(Pa.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Xf(e){if(Pa.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Qi(this,"username",this.profile&&this.profile.login||null)}function Kl(e){if(Pa.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ff(e){if(Pa.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Qi(this,"username",e.screenName||null)}function pf(e){var f=Ys(e),F=Ur(f,"link"),_e=Ur(Ys(F),"link");return f=Ur(f,"deep_link_id"),Ur(Ys(f),"link")||f||_e||F||e}function Uo(e,f){if(!e&&!f)throw new A("internal-error","Internal assert: no raw session string available");if(e&&f)throw new A("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=f||null,this.type=this.a?eu:pa}M(Pa,Il),M(Io,Pa),M(Xf,Pa),M(Kl,Pa),M(ff,Pa);var eu="enroll",pa="signin";function uc(){}function kl(e,f){return e.then(function(F){if(F[Ua]){var _e=Rc(F[Ua]);if(!_e||f!=_e.h)throw new A("user-mismatch");return F}throw new A("user-mismatch")}).s(function(F){throw F&&F.code&&F.code==ee+"user-not-found"?new A("user-mismatch"):F})}function hc(e,f){if(!f)throw new A("internal-error","failed to construct a credential");this.a=f,Qi(this,"providerId",e),Qi(this,"signInMethod",e)}function Bh(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function Ol(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new hc(e.providerId,e.pendingToken)}catch(f){}return null}function ga(e,f,F){if(this.a=null,f.idToken||f.accessToken)f.idToken&&Qi(this,"idToken",f.idToken),f.accessToken&&Qi(this,"accessToken",f.accessToken),f.nonce&&!f.pendingToken&&Qi(this,"nonce",f.nonce),f.pendingToken&&
1(this.a=f.pendingToken);else{if(!f.oauthToken||!f.oauthTokenSecret)throw new A("internal-error","failed to construct a credential");Qi(this,"accessToken",f.oauthToken),Qi(this,"secret",f.oauthTokenSecret)}Qi(this,"providerId",e),Qi(this,"signInMethod",F)}function dc(e){var f={};return e.idToken&&(f.id_token=e.idToken),e.accessToken&&(f.access_token=e.accessToken),e.secret&&(f.oauth_token_secret=e.secret),f.providerId=e.providerId,e.nonce&&!e.a&&(f.nonce=e.nonce),f={postBody:Ji(f).toString(),requestUri:"http://localhost"},e.a&&(delete f.postBody,f.pendingToken=e.a),f}function tu(e){if(e&&e.providerId&&e.signInMethod){var f={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new ga(e.providerId,f,e.signInMethod)}catch(F){}}return null}function Fa(e,f){this.Pc=f||[],xo(this,{providerId:e,isOAuthProvider:!0}),this.Hb={},this.ob=(ya(e)||{}).Ja||null,this.nb=null}function Fc(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new A("argument-error",'SAML provider IDs must be prefixed with "saml."');Fa.call(this,e,[])}function ba(e){Fa.call(this,e,xl),this.a=[]}function Rl(){ba.call(this,"facebook.com")}function fc(e){if(!e)throw new A("argument-error","credential failed: expected 1 argument (the OAuth access token).");var f=e;return Q(e)&&(f=e.accessToken),(new Rl).credential({accessToken:f})}function La(){ba.call(this,"github.com")}function vd(e){if(!e)throw new A("argument-error","credential failed: expected 1 argument (the OAuth access token).");var f=e;return Q(e)&&(f=e.accessToken),(new La).credential({accessToken:f})}function Iu(){ba.call(this,"google.com"),this.Ca("profile")}function Pl(e,f){var F=e;return Q(e)&&(F=e.idToken,f=e.accessToken),(new Iu).credential({idToken:F,accessToken:f})}function $a(){Fa.call(this,"twitter.com",ia)}function ku(e,f){var F=e;if(Q(F)||(F={oauthToken:e,oauthTokenSecret:f}),!F.oauthToken||!F.oauthTokenSecret)throw new A("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new ga("twitter.com",F,"twitter.com")}function pc(e,f,F){this.a=e,this.f=f,Qi(this,"providerId","password"),Qi(this,"signInMethod",F===wa.EMAIL_LINK_SIGN_IN_METHOD?wa.EMAIL_LINK_SIGN_IN_METHOD:wa.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Fl(e){return e&&e.email&&e.password?new pc(e.email,e.password,e.signInMethod):null}function wa(){xo(this,{providerId:"password",isOAuthProvider:!1})}function yd(e,f){if(!(f=Ou(f)))throw new A("argument-error","Invalid email link!");return new pc(e,f.code,wa.EMAIL_LINK_SIGN_IN_METHOD)}function Ou(e){return(e=ah(e=pf(e)))&&e.operation===Ml?e:null}function gl(e){if(!(e.cb&&e.bb||e.La&&e.ea))throw new A("internal-error");this.a=e,Qi(this,"providerId","phone"),this.fa="phone",Qi(this,"signInMethod","phone")}function dh(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var f={};return Ge(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(F){e[F]&&(f[F]=e[F])}),new gl(f)}return null}function Ru(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.cb,code:e.a.bb}}function ml(e){try{this.a=e||s.auth()}catch(f){throw new A("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}xo(this,{providerId:"phone",isOAuthProvider:!1})}function la(e,f){if(!e)throw new A("missing-verification-id");if(!f)throw new A("missing-verification-code");return new gl({cb:e,bb:f})}function _l(e){if(e.temporaryProof&&e.phoneNumber)return new gl({La:e.temporaryProof,ea:e.phoneNumber});var f=e&&e.providerId;if(!f||"password"===f)return null;var F=e&&e.oauthAccessToken,_e=e&&e.oauthTokenSecret,lt=e&&e.nonce,Vt=e&&e.oauthIdToken,on=e&&e.pendingToken;try{switch(f){case"google.com":return Pl(Vt,F);case"facebook.com":return fc(F);case"github.com":return vd(F);case"twitter.com":return ku(F,_e);default:return F||_e||Vt||on?on?0==f.indexOf("saml.")?new hc(f,on):new ga(f,{pendingToken:on,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},f):new ba(f).credential({idToken:Vt,accessToken:F,rawNonce:lt}):null}}catch(Pn){return null}}function Pu(e){if(!e.isOAuthProvider)throw new A("invalid-oauth-provider")}function Na(e,f,F,_e,lt,Vt,on){if(this.c=e,this.b=f||null,this.g=F||null,this.f=_e||null,this.i=Vt||null,this.h=on||null,this.a=lt||null,!this.g&&!this.a)throw new A("invalid-auth-event");
1if(this.g&&this.a)throw new A("invalid-auth-event");if(this.g&&!this.f)throw new A("invalid-auth-event")}function nu(e){return(e=e||{}).type?new Na(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&R(e.error),e.postBody,e.tenantId):null}function ca(){this.b=null,this.a=[]}Uo.prototype.Ha=function(){return Ui(this.a?this.a:this.b)},Uo.prototype.w=function(){return this.type==eu?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},uc.prototype.ja=function(){},uc.prototype.b=function(){},uc.prototype.c=function(){},uc.prototype.w=function(){},hc.prototype.ja=function(e){return vu(e,Bh(this))},hc.prototype.b=function(e,f){var F=Bh(this);return F.idToken=f,Cc(e,F)},hc.prototype.c=function(e,f){return kl(yu(e,Bh(this)),f)},hc.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},ga.prototype.ja=function(e){return vu(e,dc(this))},ga.prototype.b=function(e,f){var F=dc(this);return F.idToken=f,Cc(e,F)},ga.prototype.c=function(e,f){return kl(yu(e,dc(this)),f)},ga.prototype.w=function(){var e={providerId:this.providerId,sign
1InMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},Fa.prototype.Ka=function(e){return this.Hb=nn(e),this},M(Fc,Fa),M(ba,Fa),ba.prototype.Ca=function(e){return jt(this.a,e)||this.a.push(e),this},ba.prototype.Pb=function(){return ln(this.a)},ba.prototype.credential=function(e,f){var F;if(!(F=Q(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:f||null}).idToken&&!F.accessToken)throw new A("argument-error","credential failed: must provide the ID token and/or the access token.");return new ga(this.providerId,F,this.providerId)},M(Rl,ba),Qi(Rl,"PROVIDER_ID","facebook.com"),Qi(Rl,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),M(La,ba),Qi(La,"PROVIDER_ID","github.com"),Qi(La,"GITHUB_SIGN_IN_METHOD","github.com"),M(Iu,ba),Qi(Iu,"PROVIDER_ID","google.com"),Qi(Iu,"GOOGLE_SIGN_IN_METHOD","google.com"),M($a,Fa),Qi($a,"PROVIDER_ID","twitter.com"),Qi($a,"TWITTER_SIGN_IN_METHOD","twitter.com"),pc.prototype.ja=function(e){return this.signInMethod==wa.EMAIL_LINK_SIGN_IN_METHOD?ss(e,Da,{email:this.a,oobCode:this.f}):ss(e,Gr,{email:this.a,password:this.f})},pc.prototype.b=function(e,f){return this.signInMethod==wa.EMAIL_LINK_SIGN_IN_METHOD?ss(e,xp,{idToken:f,email:this.a,oobCode:this.f}):ss(e,Nn,{idToken:f,email:this.a,password:this.f})},pc.prototype.c=function(e,f){return kl(this.ja(e),f)},pc.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},xo(wa,{PROVIDER_ID:"password"}),xo(wa,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),xo(wa,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),gl.prototype.ja=function(e){return e.eb(Ru(this))},gl.prototype.b=function(e,f){var F=Ru(this);return F.idToken=f,ss(e,Vs,F)},gl.prototype.c=function(e,f){var F=Ru(this);return F.operation="REAUTH",kl(e=ss(e,co,F),f)},gl.prototype.w=function(){var e={providerId:"phone"};return this.a.cb&&(e.verificationId=this.a.cb),this.a.bb&&(e.verificationCode=this.a.bb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},ml.prototype.eb=function(e,f){var F=this.a.a;return Ui(f.verify()).then(function(_e){if("string"!=typeof _e)throw new A("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===f.type){var on,lt=Q(e)?e.session:null,Vt=Q(e)?e.phoneNumber:e;return on=lt&<.type==eu?lt.Ha().then(function(Pn){return function ma(e,f){return ss(e,$n,f).then(function(F){return F.phoneSessionInfo.sessionInfo})}(F,{idToken:Pn,phoneEnrollmentInfo:{phoneNumber:Vt,recaptchaToken:_e}})}):lt&<.type==pa?lt.Ha().then(function(Pn){return function Kh(e,f){return ss(e,si,f).then(function(F){return F.phoneResponseInfo.sessionInfo})}(F,{mfaPendingCredential:Pn,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:_e}})}):function wl(e,f){return ss(e,sn,f)}(F,{phoneNumber:Vt,recaptchaToken:_e}),on.then(function(Pn){return"function"==typeof f.reset&&f.reset(),Pn},function(Pn){throw"function"==typeof f.reset&&f.reset(),Pn})}throw new A("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')})},xo(ml,{PROVIDER_ID:"phone"}),xo(ml,{PHONE_SIGN_IN_METHOD:"phone"}),Na.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},Na.prototype.S=function(){return this.h},Na.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var wd,fh=null;function iu(e){var f="unauthorized-domain",F=void 0,_e=Ys(e);e=_e.a,"chrome-extension"==(_e=_e.f)?F=En("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==_e||"https"==_e?F=En("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):f="operation-not-supported-in-this-environment",A.call(this,f,F)}function jo(e,f,F){A.call(this,e,F),(e=f||{}).Ib&&Qi(this,"email",e.Ib),e.ea&&Qi(this,"phoneNumber",e.ea),e.credential&&Qi(this,"credential",e.credential),e.Yb&&Qi(this,"tenantId",e.Yb)}function ru(e){if(e.code){var f=e.code||"";0==f.indexOf(ee)&&(f=f.substring(ee.length));var F={credential:_l(e),Yb:e.tenantId};if(e.email)F.Ib=e.email;
1else if(e.phoneNumber)F.ea=e.phoneNumber;else if(!F.credential)return new A(f,e.message||void 0);return new jo(f,F,e.message)}return null}function gc(){}function vl(){}function Fu(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var f=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],F=0;F<f.length;F++){var _e=f[F];try{return new ActiveXObject(_e),e.f=_e}catch(lt){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function mc(){}function Lu(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=V(this.pc,this),this.a.onerror=V(this.Rb,this),this.a.onprogress=V(this.qc,this),this.a.ontimeout=V(this.uc,this)}function Ea(e,f){e.readyState=f,e.onreadystatechange&&e.onreadystatechange()}function su(e,f,F){this.reset(e,f,F,void 0,void 0)}function _c(e){this.f=e,this.b=this.c=this.a=null}function vc(e,f){this.name=e,this.value=f}M(iu,A),M(jo,A),jo.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var f=this.credential&&this.credential.w();return f&&Yt(e,f),e},jo.prototype.toJSON=function(){return this.w()},gc.prototype.c=null,M(vl,gc),vl.prototype.a=function(){var e=Fu(this);return e?new ActiveXObject(e):new XMLHttpRequest},vl.prototype.b=function(){var e={};return Fu(this)&&(e[0]=!0,e[1]=!0),e},wd=new vl,M(mc,gc),mc.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Lu;throw Error("Unsupported browser")},mc.prototype.b=function(){return{}},(_=Lu.prototype).open=function(e,f,F){if(null!=F&&!F)throw Error("Only async requests are supported.");this.a.open(e,f)},_.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},_.abort=function(){this.a.abort()},_.setRequestHeader=function(){},_.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},_.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ea(this,4)},_.Rb=function(){this.status=500,this.response=this.responseText="",Ea(this,4)},_.uc=function(){this.Rb()},_.qc=function(){this.status=200,Ea(this,1)},_.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},su.prototype.a=null,su.prototype.reset=function(e,f,F,_e,lt){_e||E(),delete this.a},vc.prototype.toString=function(){return this.name};var Ll=new vc("SEVERE",1e3),Nu=new vc("WARNING",900),Bu=new vc("CONFIG",700),ou=new vc("FINE",500);function au(e){return e.c?e.c:e.a?au(e.a):(Se("Root logger has no level set."),null)}_c.prototype.log=function(e,f,F){if(e.value>=au(this).value)for(me(f)&&(f=f()),e=new su(e,String(f),this.f),F&&(e.a=F),F=this;F;)F=F.a};var yc={},$l=null;function Nl(e){var f;if($l||($l=new _c(""),yc[""]=$l,$l.c=Bu),!(f=yc[e])){f=new _c(e);var F=e.lastIndexOf("."),_e=e.substr(F+1);(F=Nl(e.substr(0,F))).b||(F.b={}),F.b[_e]=f,f.a=F,yc[e]=f}return f}function Vo(e,f){e&&e.log(ou,f,void 0)}function rl(e){this.f=e}function ph(e){Fi.call(this),this.o=e,this.readyState=qa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=Nl("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}M(rl,gc),rl.prototype.a=function(){return new ph(this.f)},rl.prototype.b=function(e){return function(){return e}}({}),M(ph,Fi);var qa=0;function yl(e){e.c.read().then(e.oc.bind(e)).catch(e.Ta.bind(e))}function ql(e,f){f&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,lu(e)}function lu(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function jh(e){Fi.call(this),this.headers=new cs,this.O=e||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=gf,this.u=this.R=!1}(_=ph.prototype).open=function(e,f){if(this.readyState!=qa)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=f,this.readyState=1,lu(this)},_.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var f={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
1e&&(f.body=e),this.o.fetch(new Request(this.g,f)).then(this.tc.bind(this),this.Ta.bind(this))},_.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ql(this,!1)),this.readyState=qa},_.tc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,lu(this)),this.a&&(this.readyState=3,lu(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):void 0!==$.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,yl(this)):e.text().then(this.sc.bind(this),this.Ta.bind(this)))))},_.oc=function(e){if(this.a){var f=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});f&&(this.response=this.responseText+=f),e.done?ql(this,!0):lu(this),3==this.readyState&&yl(this)}},_.sc=function(e){this.a&&(this.response=this.responseText=e,ql(this,!0))},_.rc=function(e){this.a&&(this.response=e,ql(this,!0))},_.Ta=function(e){var f=this.h;f&&f.log(Nu,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&ql(this,!0)},_.setRequestHeader=function(e,f){this.i.append(e,f)},_.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(Nu,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},_.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(Nu,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var f=this.b.entries(),F=f.next();!F.done;
1)e.push((F=F.value)[0]+": "+F[1]),F=f.next();return e.join("\r\n")},M(jh,Fi);var gf="";jh.prototype.b=Nl("goog.net.XhrIo");var cu=/^https?$/i,Tp=["POST","PUT"];function Uu(e){return"content-type"==e.toLowerCase()}function Vh(e,f){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=f,gh(e),uu(e)}function gh(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function mh(e){if(e.c&&void 0!==G)if(e.A[1]&&4==hu(e)&&2==Ba(e))Vo(e.b,Qa(e,"Local request error detected and ignored"));else if(e.i&&4==hu(e))Br(e.Ub,0,e);else if(e.dispatchEvent("readystatechange"),4==hu(e)){Vo(e.b,Qa(e,"Request complete")),e.c=!1;try{var _e,f=Ba(e);e:switch(f){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var F=!0;break e;default:F=!1}if(!(_e=F)){var lt;if(lt=0===f){var Vt=String(e.l).match(_o)[1]||null;if(!Vt&&$.self&&$.self.location){var on=$.self.location.protocol;Vt=on.substr(0,on.length-1)}lt=!cu.test(Vt?Vt.toLowerCase():"")}_e=lt}if(_e)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var Pn=2<hu(e)?e.a.statusText:""}catch(Ei){Vo(e.b,"Can not get status: "+Ei.message),Pn=""}e.h=Pn+" ["+Ba(e)+"]",gh(e)}}finally{uu(e)}}}function uu(e,f){if(e.a){_h(e);var F=e.a,_e=e.A[0]?J:null;e.a=null,e.A=null,f||e.dispatchEvent("ready");try{F.onreadystatechange=_e}catch(lt){(e=e.b)&&e.log(Ll,"Problem encountered resetting onreadystatechange: "+lt.message,void 0)}}}function _h(e){e.a&&e.u&&(e.a.ontimeout=null),e.o&&($.clearTimeout(e.o),e.o=null)}function hu(e){return e.a?e.a.readyState:0}function Ba(e){try{return 2<hu(e)?e.a.status:-1}catch(f){return-1}}function Qa(e,f){return f+" ["+e.P+" "+e.l+" "+Ba(e)+"]"}function Ql(e){var f=Xa;this.g=[],this.u=f,this.o=e||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function Xl(e,f,F){e.a=!0,e.c=F,e.f=!f,fu(e)}function Ho(e){if(e.a){if(!e.m)throw new ju(e);e.m=!1}}function Zl(e,f,F,_e){e.g.push([f,F,_e]),e.a&&fu(e)}function bc(e){return ht(e.g,function(f){return me(f[1])})}function fu(e){if(e.h&&e.a&&bc(e)){var f=e.h,F=Hh[f];F&&($.clearTimeout(F.a),delete Hh[f]),e.h=0}e.b&&(e.b.l--,delete e.b),f=e.c;for(var _e=F=!1;e.g.length&&!e.i;){var lt=e.g.shift(),Vt=lt[0],on=lt[1];if(lt=lt[2],Vt=e.f?on:Vt)try{var Pn=Vt.call(lt||e.o,f);void 0!==Pn&&(e.f=e.f&&(Pn==f||Pn instanceof Error),e.c=f=Pn),(he(f)||"function"==typeof $.Promise&&f instanceof $.Promise)&&(_e=!0,e.i=!0)}catch(Ei){f=Ei,e.f=!0,bc(e)||(F=!0)}}e.c=f,_e&&(Pn=V(e.v,e,!0),_e=V(e.v,e,!1),f instanceof Ql?(Zl(f,Pn,_e),f.A=!0):f.then(Pn,_e)),F&&(f=new Ec(f),Hh[f.a]=f,e.h=f.a)}function ju(){fe.call(this)}function wc(){fe.call(this)}function Ec(e){this.a=$.setTimeout(V(this.c,this),0),this.b=e}(_=jh.prototype).Ma=function(){void 0!==G&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Vo(this.b,Qa(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},_.abort=function(){this.a&&this.c&&(Vo(this.b,Qa(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),uu(this))},_.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),uu(this,!0)),jh.$a.Da.call(this)},_.Ub=function(){this.xa||(this.N||this.i||this.f?mh(this):this.Ic())},_.Ic=function(){mh(this)},_.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case gf:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(Ll,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(f){return Vo(this.b,"Can not get response: "+f.message),null}},Ql.prototype.cancel=function(e){if(this.a)this.c instanceof Ql&&this.c.cancel();else{if(this.b){var f=this.b;delete this.b,e?f.cancel(e):(f.l--,0>=f.l&&f.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(e=new wc(this),Ho(this),Xl(this,!1,e))}},Ql.prototype.v=function(e,f){this.i=!1,Xl(this,e,f)},Ql.prototype.then=function(e,f,F){var _e,lt,Vt=new fr(function(on,Pn){_e=on,lt=Pn});return Zl(this,_e,function(on){on instanceof wc?Vt.cancel():lt(on)}),Vt.then(e,f,F)}
1,Ql.prototype.$goog_Thenable=!0,M(ju,fe),ju.prototype.message="Deferred has already fired",ju.prototype.name="AlreadyCalledError",M(wc,fe),wc.prototype.message="Deferred was canceled",wc.prototype.name="CanceledError",Ec.prototype.c=function(){throw delete Hh[this.a],this.b};var Hh={};function Jl(e){var f={},F=f.document||document,_e=xt(e).toString(),lt=dr(document,"SCRIPT"),Vt={Vb:lt,Ma:void 0},on=new Ql(Vt),Pn=null,Ei=null!=f.timeout?f.timeout:5e3;return 0<Ei&&(Pn=window.setTimeout(function(){Ca(lt,!0);var ki=new zh(Ed,"Timeout reached for loading script "+_e);Ho(on),Xl(on,!1,ki)},Ei),Vt.Ma=Pn),lt.onload=lt.onreadystatechange=function(){lt.readyState&&"loaded"!=lt.readyState&&"complete"!=lt.readyState||(Ca(lt,f.wd||!1,Pn),Ho(on),Xl(on,!0,null))},lt.onerror=function(){Ca(lt,!0,Pn);var ki=new zh(Gh,"Error while loading script "+_e);Ho(on),Xl(on,!1,ki)},Yt(Vt=f.attributes||{},{type:"text/javascript",charset:"UTF-8"}),or(lt,Vt),function gn(e,f){Rn(e,"HTMLScriptElement"),e.src=xt(f),null===le&&(le=(f=(f=$.document).querySelector&&f.querySelector("script[nonce]"))&&(f=f.nonce||f.getAttribute("nonce"))&&te.test(f)?f:""),(f=le)&&e.setAttribute("nonce",f)}(lt,e),function Bc(e){var f;return(f=(e||document).getElementsByTagName("HEAD"))&&0!=f.length?f[0]:e.documentElement}(F).appendChild(lt),on}function Xa(){if(this&&this.Vb){var e=this.Vb;e&&"SCRIPT"==e.tagName&&Ca(e,!0,this.Ma)}}function Ca(e,f,F){null!=F&&$.clearTimeout(F),e.onload=J,e.onerror=J,e.onreadystatechange=J,f&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}var Gh=0,Ed=1;function zh(e,f){var F="Jsloader error (code #"+e+")";f&&(F+=": "+f),fe.call(this,F),this.code=e}function vh(e){this.f=e}function ua(e,f,F){if(this.c=e,this.l=(e=f||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=e.secureTokenTimeout||Wh,this.g=nn(e.secureTokenHeaders||pu),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=e.firebaseTimeout||Hu,this.a=nn(e.firebaseHeaders||Yh),F&&(this.a["X-Client-Version"]=F,this.g["X-Client-Version"]=F),F="Node"==wn(),!(F=$.XMLHttpRequest||F&&s.INTERNAL.node&&s.INTERNAL.node.XMLHttpRequest)&&!zt())throw new A("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=zt()?new rl(self):ii()?new vh(F):new mc,this.b=null}M(zh,fe),M(vh,gc),vh.prototype.a=function(){return new this.f},vh.prototype.b=function(){return{}};var Vu,Ua="idToken",Wh=new tn(3e4,6e4),pu={"Content-Type":"application/x-www-form-urlencoded"},Hu=new tn(3e4,6e4),Yh={"Content-Type":"application/json"};function _f(e,f){f?e.a["X-Firebase-Locale"]=f:delete e.a["X-Firebase-Locale"]}function Uc(e,f){f&&(e.l=ec("https://securetoken.googleapis.com/v1/token",f),e.h=ec("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",f),e.i=ec("https://identitytoolkit.googleapis.com/v2/",f))}function ec(e,f){return e=Ys(e),f=Ys(f.url),e.c=e.a+e.c,Ia(e,f.f),e.a=f.a,Co(e,f.g),e.toString()}function gu(e,f){f?(e.a["X-Client-Version"]=f,e.g["X-Client-Version"]=f):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function Gu(e,f,F,_e,lt,Vt,on){(function fn(){var e=Ir();return!((e="Chrome"!=Zi(e)?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e||at&&Wi&&!(9<Wi))})()||zt()?e=V(e.u,e):(Vu||(Vu=new fr(function(Pn,Ei){!function mu(e,f){((window.gapi||{}).client||{}).request?e():($[Go]=function(){((window.gapi||{}).client||{}).request?e():f(Error("CORS_UNSUPPORTED"))},function du(e,f){Zl(e,null,f,void 0)}(Jl(Gt(Ko,{onload:Go})),function(){f(Error("CORS_UNSUPPORTED"))}))}(Pn,Ei)})),e=V(e.o,e)),e(f,F,_e,lt,Vt,on)}ua.prototype.S=function(){return this.b},ua.prototype.u=function(e,f,F,_e,lt,Vt){if(zt()&&(void 0===$.fetch||void 0===$.Headers||void 0===$.Request))throw new A("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var on=new jh(this.f);if(Vt){on.g=Math.max(0,Vt);var Pn=setTimeout(function(){on.dispatchEvent("timeout")},Vt)}
1Yi(on,"complete",function(){Pn&&clearTimeout(Pn);var Ei=null;try{Ei=JSON.parse(function Nc(e){try{return e.a?e.a.responseText:""}catch(f){return Vo(e.b,"Can not get responseText: "+f.message),""}}(this))||null}catch(ki){Ei=null}f&&f(Ei)}),Eo(on,"ready",function(){Pn&&clearTimeout(Pn),pt(this)}),Eo(on,"timeout",function(){Pn&&clearTimeout(Pn),pt(this),f&&f(null)}),function mf(e,f,F,_e,lt){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+f);F=F?F.toUpperCase():"GET",e.l=f,e.h="",e.P=F,e.G=!1,e.c=!0,e.a=e.O?e.O.a():wd.a(),e.A=function Lc(e){return e.c||(e.c=e.b())}(e.O?e.O:wd),e.a.onreadystatechange=V(e.Ub,e);try{Vo(e.b,Qa(e,"Opening Xhr")),e.N=!0,e.a.open(F,String(f),!0),e.N=!1}catch(on){return Vo(e.b,Qa(e,"Error opening Xhr: "+on.message)),void Vh(e,on)}f=_e||"";var Vt=new cs(e.headers);lt&&function ns(e,f){if(e.forEach&&"function"==typeof e.forEach)e.forEach(f,void 0);else if(Re(e)||"string"==typeof e)Ge(e,f,void 0);else for(var F=Xr(e),_e=_i(e),lt=_e.length,Vt=0;Vt<lt;Vt++)f.call(void 0,_e[Vt],F&&F[Vt],e)}(lt,function(on,Pn){Vt.set(Pn,on)}),lt=function Ht(e){e:{for(var f=Uu,F=e.length,_e="string"==typeof e?e.split(""):e,lt=0;lt<F;lt++)if(lt in _e&&f.call(void 0,_e[lt],lt,e)){f=lt;break e}f=-1}return 0>f?null:"string"==typeof e?e.charAt(f):e[f]}(Vt.Y()),_e=$.FormData&&f instanceof $.FormData,!jt(Tp,F)||lt||_e||Vt.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),Vt.forEach(function(on,Pn){this.a.setRequestHeader(Pn,on)},e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{_h(e),0<e.g&&(e.u=function Xo(e){return at&&hr(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),Vo(e.b,Qa(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=V(e.Ma,e)):e.o=Br(e.Ma,e.g,e)),Vo(e.b,Qa(e,"Sending request")),e.i=!0,e.a.send(f),e.i=!1}catch(on){Vo(e.b,Qa(e,"Send error: "+on.message)),Vh(e,on)}}(on,e,F,_e,lt)};var Ko=new Mt(Ue,"https://apis.google.com/js/client.js?onload=%{onload}"),Go="__fcb"+Math.floor(1e6*Math.random()).toString();function _u(e){if("string"!=typeof(e=e.email)||!nr.test(e))throw new A("invalid-email")}function Wu(e){"email"in e&&_u(e)}function zo(e){if(!e[Ua])throw e.mfaPendingCredential?new A("multi-factor-auth-required",null,nn(e)):new A("internal-error")}function bh(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new A("internal-error")}else{if(!e.sessionInfo)throw new A("missing-verification-id");if(!e.code)throw new A("missing-verification-code")}}ua.prototype.o=function(e,f,F,_e,lt){var Vt=this;Vu.then(function(){window.gapi.client.setApiKey(Vt.c);var on=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:F,body:_e,headers:lt,authType:"none",callback:function(Pn){window.gapi.auth.setToken(on),f&&f(Pn)}})}).s(function(on){f&&f({error:{message:on&&on.message||"CORS_UNSUPPORTED"}})})},ua.prototype.yb=function(){return ss(this,Ln,{})},ua.prototype.Ab=function(e,f){return ss(this,_n,{idToken:e,email:f})},ua.prototype.Bb=function(e,f){return ss(this,Nn,{idToken:e,password:f})};var ja={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function wh(e){if(!e.phoneVerificationInfo)throw new A("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new A("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new A("missing-verification-code")}function Eh(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new A("internal-error")}function Dd(e,f){return f.oauthIdToken&&f.providerId&&0==f.providerId.indexOf("oidc.")&&!f.pendingToken&&(e.sessionId?f.nonce=e.sessionId:e.postBody&&wr(e=new ci(e.postBody),"nonce")&&(f.nonce=e.get("nonce"))),f}function Sd(e){var f=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",f=ru(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",f=ru(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",f=ru(e)):e.errorMessage&&(f=wu(e.errorMessage)),f)throw f;zo(e)}function vu(e,f){return f.returnIdpCredential=!0,ss(e,ai,f)}function Cc(e,f){return f.returnIdpCredential=!0,ss(e,rr,f)}function yu(e,f){return f.returnIdpCredential=!0,f.autoCreate=!1,ss(e,lr,f)}function sl(e){if(!e.oobCode)throw new A("invalid-action-code")}(_=ua.prototype).Cb=function(e,f){var F={idToken:e},_e=[];return Zn(ja,function(lt,Vt){var on=f[Vt];null===on?_e.push(lt):Vt in f&&(F[Vt]=on)}),_e.length&&(F.deleteAttribute=_e),ss(this,_n,F)},_.ub=function(e,f){return Yt(e={requestType:"PASSWORD_RESET",email:e},f),ss(this,X,e)},_.vb=function(e,f){return Yt(e={requestType:"EMAIL_SIGNIN",email:e},f),ss(this,h,e)},_.tb=function(e,f){return Yt(e={requestType:"VERIFY_EMAIL",idToken:e},f),ss(this,w,e)},_.Db=function(e,f,F){return Yt(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:f},F),ss(this,O,e)},_.eb=function(e){return ss(this,Ts,e)},_.mb=function(e,f){return ss(this,Ct,{oobCode:e,newPassword:f})},_.Qa=function(e){return ss(this,ir,{oobCode:e})},_.ib=function(e){return ss(this,Ns,{oobCode:e})};var Ns={endpoint:"setAccountInfo",B:sl,Z:"email",C:!0},ir={endpoint:"resetPassword",B:sl,F:function(e){var f=e.requestType;if(!f||!e.email&&"EMAIL_SIGNIN"!=f&&"VERIFY_AND_CHANGE_EMAIL"!=f)throw new A("internal-error")},C:!0},bu={endpoint:"signupNewUser",B:function(e){if(_u(e),!e.password)throw new A("weak-
1password")},F:zo,U:!0,C:!0},Za={endpoint:"createAuthUri",C:!0},tc={endpoint:"deleteAccount",M:["idToken"]},El={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(e){if("array"!=Me(e.deleteProvider))throw new A("internal-error")}},Da={endpoint:"emailLinkSignin",M:["email","oobCode"],B:_u,F:zo,U:!0,C:!0},xp={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:_u,F:zo,U:!0},Ip={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:wh,F:zo,C:!0,Na:!0},d={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:wh,F:zo,C:!0,Na:!0},r={endpoint:"getAccountInfo"},h={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new A("internal-error");_u(e)},Z:"email",C:!0},w={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new A("internal-error")},Z:"email",C:!0},O={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new A("internal-error")},Z:"email",C:!0},X={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("PASSWORD_RESET"!=e.requestType)throw new A("internal-error");_u(e)},Z:"email",C:!0},De={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},ot={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(e){if(!e.recaptchaSiteKey)throw new A("internal-error")}},Ct={endpoint:"resetPassword",B:sl,Z:"email",C:!0},sn={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},_n={endpoint:"setAccountInfo",M:["idToken"],B:Wu,U:!0},Nn={endpoint:"setAccountInfo",M:["idToken"],B:function(e){if(Wu(e),!e.password)throw new A("weak-password")},F:zo,U:!0},Ln={endpoint:"signupNewUser",F:zo,U:!0,C:!0},$n={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(e){if(!e.phoneEnrollmentInfo)throw new A("internal-error");if(!e.phoneEnrollmentInfo.phoneNumber)throw new A("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new A("missing-app-credential")},F:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new A("internal-error")},C:!0,Na:!0},si={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new A("missing-app-credential")},F:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new A("internal-error")},C:!0,Na:!0},ai={endpoint:"verifyAssertion",B:Eh,Xa:Dd,F:Sd,U:!0,C:!0},lr={endpoint:"verifyAssertion",B:Eh,Xa:Dd,F:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new A("user-not-found");if(e.errorMessage)throw wu(e.errorMessage);zo(e)},U:!0,C:!0},rr={endpoint:"verifyAssertion",B:function(e){if(Eh(e),!e.idToken)throw new A("internal-error")},Xa:Dd,F:Sd,U:!0},kr={endpoint:"verifyCustomToken",B:function(e){if(!e.token)throw new A("invalid-custom-token")},F:zo,U:!0,C:!0},Gr={endpoint:"verifyPassword",B:function(e){if(_u(e),!e.password)throw new A("wrong-password")},F:zo,U:!0,C:!0},Ts={endpoint:"verifyPhoneNumber",B:bh,F:zo,C:!0},Vs={endpoint:"verifyPhoneNumber",B:function(e){if(!e.idToken)throw new A("internal-error");bh(e)},F:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",ru(e);zo(e)}},co={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:bh,F:zo,C:!0},Wo={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(e){if(!!e[Ua]^!!e.refreshToken)throw new A("internal-error")},C:!0,Na:!0};function ss(e,f,F){if(!function No(e,f){if(!f||!f.length)return!0;if(!e)return!1;for(var F=0;F<f.length;F++){var _e=e[f[F]];if(null==_e||""===_e)return!1}return!0}(F,f.M))return vr(new A("internal-error"));var Vt,_e=!!f.Na,lt=f.Tb||"POST";return Ui(F).then(f.B).then(function(){return f.U&&(F.returnSecureToken=!0),f.C&&e.b&&void 0===F.tenantId&&(F.tenantId=e.b),function yh(e,f,F,_e,lt,Vt,on){var Pn=Ys(f+F);
1us(Pn,"key",e.c),on&&us(Pn,"cb",E().toString());var Ei="GET"==_e;if(Ei)for(var ki in lt)lt.hasOwnProperty(ki)&&us(Pn,ki,lt[ki]);return new fr(function(hs,ko){Gu(e,Pn.toString(),function(vo){vo?vo.error?ko(nc(vo,Vt||{})):hs(vo):ko(new A("network-request-failed"))},_e,Ei?void 0:$r(ie(lt)),e.a,e.m.get())})}(e,_e?e.i:e.h,f.endpoint,lt,F,f.Gb,f.kb||!1)}).then(function(on){return Vt=on,f.Xa?f.Xa(F,Vt):Vt}).then(f.F).then(function(){if(!f.Z)return Vt;if(!(f.Z in Vt))throw new A("internal-error");return Vt[f.Z]})}function wu(e){return nc({error:{errors:[{message:e}],code:400,message:e}})}function nc(e,f){var F=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",_e={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(F=_e[F]?new A(_e[F]):null)return F;for(var lt in F=e.error&&e.error.message||"",Yt(_e={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",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_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",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",INVALID_PROVIDER_ID:"invalid-provider-id",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",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",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_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},f||{}),f=(f=F.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<f.length?f[1]:void 0,_e)if(0===F.indexOf(lt))return new A(_e[lt],f);return!f&&e&&(f=T(e)),new A("internal-error",f)}function Bl(e){this.b=e,this.a=null,this.qb=function jc(e){return function $s(){return Dl||(Dl=new fr(function(e,f){function F(){dn(),Cr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){dn(),f(Error("Network Error"))},timeout:Va.get()})}if(Cr("gapi.iframes.Iframe"))e();else if(Cr("gapi.load"))F();else{var _e="__iframefcb"+Math.floor(1e6*Math.random()).toString();$[_e]=function(){Cr("gapi.load")?F():f(Error("Network Error"))},Ui(Jl(_e=Gt($h,{onload:_e}))).s(function(){f(Error("Network Error"))})}}).s(function(e){throw Dl=null,e}))}().then(function(){return new fr(function(f,F){Cr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Cr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(_e){function lt(){clearTimeout(Vt),f()}e.a=_e,e.a.restyle({setHideOnLeave:!1});var Vt=setTimeout(function(){F(Error("Network Error"))},Cl.get());_e.ping(lt).then(lt,function(){F(Error("Network Error"))})})})})}(this)}var $h=new Mt(Ue,"https://apis.google.com/js/api.js?onload=%{onload}"),Va=new tn(3e4,6e4),Cl=new tn(5e3,15e3),Dl=null;function Td(e,f,F,_e){this.l=e,this.h=f,this.i=F,this.g=_e,this.f=null,e=this.g?Bt((e=Ys(this.g.url)).f,e.a,e.g,"/emulator/auth/iframe"):Bt("https",this.l,null,"/__/auth/iframe"),this.a=e,us(this.a,"apiKey",this.h),us(this.a,"appName",this.i),this.b=null,this.c=[]}function yf(e,f,F,_e,lt,Vt){this.u=e,this.o=f,this.c=F,this.v=_e,this.m=Vt,this.i=this.g=this.l=null,this.a=lt,this.h=this.f=null}function Zo(e){try{return s.app(e).auth().Ga()}catch(f){return[]}}function qh(e,f,F,_e,lt,Vt){this.o=e,this.g=f,this.b=F,this.f=Vt,this.c=_e||null,this.i=lt||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function xd(e){var f=H();return function bl(e){return ss(e,De,{}).then(function(f){return f.authorizedDomains||[]})}(e).then(function(F){e:{var _e=Ys(f),lt=_e.f;_e=_e.a;for(var Vt=0;Vt<F.length;Vt++){var on=F[Vt],Pn=_e,Ei=lt;if(0==on.indexOf("chrome-extension://")?Pn=Ys(on).a==Pn&&"chrome-extension"==Ei:"http"!=Ei&&"https"!=Ei?Pn=!1:xi.test(on)?Pn=Pn==on:(on=on.split(".").join("\\."),Pn=new RegExp("^(.+\\."+on+"|"+on+")$","i").test(Pn)),Pn){F=!0;break e}}F=!1}if(!F)throw new iu(H())})}function bf(e){return e.v||(e.v=Er().then(function(){if(!e.u){var f=e.c,F=e.i,_e=Zo(e.b),lt=new Td(e.o,e.g,e.b,e.f);lt.f=f,lt.b=F,lt.c=ln(_e||[]),e.u=lt.toString()}e.m=new Bl(e.u),function ic(e){if(!e.m)throw Error("IfcHandler must be initialized!");!function Md(e,f){e.qb.then(function(){e.a.register("authEvent",f,Cr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(e.m,function(f){var F={};if(f&&f.authEvent){var _e=!1;for(f=nu(f.authEvent),F=0;F<e.h.length;F++)_e=e.h[F](f)||_e;return(F={}).status=_e?"ACK":"ERROR",Ui(F)}return F.status="ERROR",Ui(F)})}(e)})),e.v}function kp(e){return e.l||(e.A=e.c?Fr(e.c,Zo(e.b)):null,e.l=new ua(e.g,ge(e.i),e.A),e.f&&Uc(e.l,e.f)),e.l}function uo(e,f,F,_e,lt,Vt,on,Pn,Ei,ki,hs,ko){return(e=new yf(e,f,F,_e,lt,ko)).l=Vt,e.g
1=on,e.i=Pn,e.b=nn(Ei||null),e.f=ki,e.xb(hs).toString()}function ol(e){if(this.a=e||s.INTERNAL.reactNative&&s.INTERNAL.reactNative.AsyncStorage,!this.a)throw new A("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Id(e){this.b=e,this.a={},this.f=V(this.c,this)}Td.prototype.toString=function(){return this.f?us(this.a,"v",this.f):_r(this.a.b,"v"),this.b?us(this.a,"eid",this.b):_r(this.a.b,"eid"),this.c.length?us(this.a,"fw",this.c.join(",")):_r(this.a.b,"fw"),this.a.toString()},yf.prototype.xb=function(e){return this.h=e,this},yf.prototype.toString=function(){if(this.m){var e=Ys(this.m.url);e=Bt(e.f,e.a,e.g,"/emulator/auth/handler")}else e=Bt("https",this.u,null,"/__/auth/handler");if(us(e,"apiKey",this.o),us(e,"appName",this.c),us(e,"authType",this.v),this.a.isOAuthProvider){var f=this.a;try{var F=s.app(this.c).auth().ka()}catch(Pn){F=null}for(var _e in f.nb=F,us(e,"providerId",this.a.providerId),f=ie((F=this.a).Hb))f[_e]=f[_e].toString();_e=F.Pc,f=nn(f);for(var lt=0;lt<_e.length;lt++){var Vt=_e[lt];Vt in f&&delete f[Vt]}F.ob&&F.nb&&!f[F.ob]&&(f[F.ob]=F.nb),zn(f)||us(e,"customParameters",T(f))}if("function"==typeof this.a.Pb&&(F=this.a.Pb()).length&&us(e,"scopes",F.join(",")),this.l?us(e,"redirectUrl",this.l):_r(e.b,"redirectUrl"),this.g?us(e,"eventId",this.g):_r(e.b,"eventId"),this.i?us(e,"v",this.i):_r(e.b,"v"),this.b)for(var on in this.b)this.b.hasOwnProperty(on)&&!Ur(e,on)&&us(e,on,this.b[on]);return this.h?us(e,"tid",this.h):_r(e.b,"tid"),this.f?us(e,"eid",this.f):_r(e.b,"eid"),(on=Zo(this.c)).length&&us(e,"fw",on.join(",")),e.toString()},(_=qh.prototype).Nb=function(e,f,F){var _e=new A("popup-closed-by-user"),lt=new A("web-storage-unsupported"),Vt=this,on=!1;return this.la().then(function(){(function ea(e){var f={type:"webStorageSupport"};return bf(e).then(function(){return function Ad(e,f){return e.qb.then(function(){return new fr(function(F){e.a.send(f.type,f,F,Cr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(e.m,f)}).then(function(F){if(F&&F.length&&void 0!==F[0].webStorageSupport)return F[0].webStorageSupport;throw Error()})})(Vt).then(function(Pn){Pn||(e&&qn(e),f(lt),on=!0)})}).s(function(){}).then(function(){if(!on)return function yi(e){return new fr(function(f){return function F(){ji(2e3).then(function(){if(e&&!e.closed)return F();f()})}()})}(e)}).then(function(){if(!on)return ji(F).then(function(){f(_e)})})},_.Wb=function(){var e=Ir();return!v(e)&&!Ut(e)},_.Sb=function(){return!1},_.Lb=function(e,f,F,_e,lt,Vt,on,Pn){if(!e)return vr(new A("popup-blocked"));if(on&&!v())return this.la().s(function(ki){qn(e),lt(ki)}),_e(),Ui();this.a||(this.a=xd(kp(this)));var Ei=this;return this.a.then(function(){var ki=Ei.la().s(function(hs){throw qn(e),lt(hs),hs});return _e(),ki}).then(function(){Pu(F),on||nt(uo(Ei.o,Ei.g,Ei.b,f,F,null,Vt,Ei.c,void 0,Ei.i,Pn,Ei.f),e)}).s(function(ki){throw"auth/network-request-failed"==ki.code&&(Ei.a=null),ki})},_.Mb=function(e,f,F,_e){this.a||(this.a=xd(kp(this)));var lt=this;return this.a.then(function(){Pu(f),nt(uo(lt.o,lt.g,lt.b,e,f,H(),F,lt.c,void 0,lt.i,_e,lt.f))}).s(function(Vt){throw"auth/network-request-failed"==Vt.code&&(lt.a=null),Vt})},_.la=function(){var e=this;return bf(this).then(function(){return e.m.qb}).s(function(){throw e.a=null,new A("network-request-failed")})},_.Zb=function(){return!0},_.Ea=function(e){this.h.push(e)},_.Ra=function(e){hn(this.h,function(f){return f==e})},(_=ol.prototype).get=function(e){return Ui(this.a.getItem(e)).then(function(f){return f&&we(f)})},_.set=function(e,f){return Ui(this.a.setItem(e,T(f)))},_.T=function(e){return Ui(this.a.removeItem(e))},_.ca=function(){},_.ia=function(){};var Sa,Ul=[];function tg(e,f,F){zn(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[f]&&(e.a[f]=[]),e.a[f].push(F)}function rc(e){this.a=e}function ng(e){this.c=e,this.b=!1,this.a=[]}function Jf(e,f,F,_e){var lt,on,Pn,Ei,Vt=F||{},ki=null;if(e.b)return vr(Error("connection_unavailable"));var hs=_e?800:50,ko="undefined"!=typeof MessageChannel?new MessageChannel:null;return new fr(function(vo,tl){ko?(lt=Math.floor(Math.random()*Math.pow(10,20)).toString(),ko.port1.start(),Pn=setTimeout(function(){tl(Error("unsupported_event"))},hs),e.a.push(ki={messageChannel:ko,onMessage:on=function(md){md.data.eventId===lt&&("ack"===md.data.status?(clearTimeout(Pn),Ei=setTimeout(function(){tl(Error("timeout"))},3e3)):"done"===md.data.status?(clearTimeout(Ei),void 0!==md.data.response?vo(md.data.response):tl(Error("unknown_error"))):(clearTimeout(Pn),clearTimeout(Ei),tl(Error("invalid_response"))))}}),ko.port1.addEventListener("message",on),e.c.postMessage({eventType:f,eventId:lt,data:Vt},[ko.port2])):tl(Error("connection_unavailable"))}).then(function(vo){return Yu(e,ki),vo}).s(function(vo){throw Yu(e,ki),vo})}function Yu(e,f){if(f){var F=f.messageChannel;F&&(F.port1.removeEventListener("message",f.onMessage),F.port1.close()),hn(e.a,function(lt){return lt==f})}}function Ha(){if(!Ef())throw new A("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=$.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var e=this;zt()&&self?(this.l=function Zf(){var e=zt()?self:null;if(Ge(Ul,function(F){F.b==e&&(f=F)}),!f){var f=new Id(e);Ul.push(f)}return f}(),tg(this.l,"keyChanged",function(f,F){return Rd(e).then(function(_e){return 0<_e.length&&Ge(e.a,function(lt){lt(_e)}),{keyProcessed:jt(_e,F.key)}})}),tg(this.l,"ping",function(){return Ui(["keyChanged"])})):function Zr(){var e=$.navigator;return e&&e.serviceWorker?Ui().then(function(){return e.serviceWorker.ready}).then(function(f){return f.active||null}).s(function(){return null}):Ui(null)}().then(function(f){(e.h=f)&&(e.g=new ng(new rc(f)),Jf(e.g,"ping",null,!0).then(function(F){F[0].fulfilled&&jt(F[0].value,"keyChanged")&&(e.o=!0)}).s(function(){}))})}function sc(e){return new fr(function(f,F){var _e=e.m.open("firebaseLocalStorageDb",1);_e.onerror=function(lt){try{lt.preventDefault()}catch(Vt){}F(Error(lt.target.error))},_e.onupgradeneeded=function(lt){lt=lt.target.result;try{lt.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(Vt){F(Vt)}},_e.onsuccess=function(lt){(lt=lt.target.result).objectStoreNames.contains("firebaseLocalStorage")?f(lt):function kd(e){return new fr(function(f,F){var _e=e.m.deleteDatabase("firebaseLocalStorageDb");_e.onsuccess=function(){f()},_e.onerror=function(lt){F(Error(lt.target.error))}})}(e).then(function(){return sc(e)}).then(function(Vt){f(Vt)}).s(function(Vt){F(Vt)})}})}function wf(e){return e.v||(e.v=sc(e)),e.v}function Ef(){try{return!!$.indexedDB}catch(e){return!1}}function Od(e){return e.objectStore("firebaseLocalStorage")}function Ch(e,f){return e.transaction(["firebaseLocalStorage"],f?"readwrite":"readonly")}function oc(e){return new fr(function(f,F){e.onsuccess=function(_e){_e&&_e.target?f(_e.target.result):f()},e.onerror=function(_e){F(_e.target.error)}})}function ep(e,f){return e.g&&e.h&&function qi(){var e=$.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Jf(e.g,"keyChanged",{key:f},e.o).then(function(){}).s(function(){}):Ui()}function Rd(e){return wf(e).then(function(f){var F=Od(Ch(f,!1));return F.getAll?oc(F.getAll()):new fr(function(_e,lt){var Vt=[],on=F.openCursor();on.onsuccess=function(Pn){(Pn=Pn.target.result)?(Vt.push(Pn.value),Pn.continue()):_e(Vt)},on.onerror=function(Pn){lt(Pn.target.error)}})}).then(function(f){var F={},_e=[];
1if(0==e.b){for(_e=0;_e<f.length;_e++)F[f[_e].fbase_key]=f[_e].value;_e=At(e.c,F),e.c=F}return _e})}function Op(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Dh(e){var f=this,F=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Ui().then(function(){if(Ef()){var _e=ft(),lt="__sak"+_e;return Sa||(Sa=new Ha),(F=Sa).set(lt,_e).then(function(){return F.get(lt)}).then(function(Vt){if(Vt!==_e)throw Error("indexedDB not supported!");return F.T(lt)}).then(function(){return F}).s(function(){return f.c})}return f.c}).then(function(_e){return f.type=_e.type,_e.ca(function(lt){Ge(f.a,function(Vt){Vt(lt)})}),_e})}function Yr(){this.a={},this.type="inMemory"}function Eu(){if(!function Rp(){var e="Node"==wn();if(!(e=Cf()||e&&s.INTERNAL.node&&s.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(f){return!1}}())throw"Node"==wn()?new A("internal-error","The LocalStorage compatibility library was not found."):new A("web-storage-unsupported");this.a=Cf()||s.INTERNAL.node.localStorage,this.type="localStorage"}function Cf(){try{var e=$.localStorage,f=ft();return e&&(e.setItem(f,"1"),e.removeItem(f)),e}catch(F){return null}}function Qh(){this.type="nullStorage"}function Ja(){if(!function Ti(){var e="Node"==wn();if(!(e=Df()||e&&s.INTERNAL.node&&s.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(f){return!1}}())throw"Node"==wn()?new A("internal-error","The SessionStorage compatibility library was not found."):new A("web-storage-unsupported");this.a=Df()||s.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Df(){try{var e=$.sessionStorage,f=ft();return e&&(e.setItem(f,"1"),e.removeItem(f)),e}catch(F){return null}}function Pp(){var e={};e.Browser=Xh,e.Node=Zh,e.ReactNative=tp,e.Worker=Sg,this.a=e[wn()]}Id.prototype.c=function(e){var f=e.data.eventType,F=e.data.eventId,_e=this.a[f];if(_e&&0<_e.length){e.ports[0].postMessage({status:"ack",eventId:F,eventType:f,response:null});var lt=[];Ge(_e,function(Vt){lt.push(Ui().then(function(){return Vt(e.origin,e.data.data)}))}),Ao(lt).then(function(Vt){var on=[];Ge(Vt,function(Pn){on.push({fulfilled:Pn.Ob,value:Pn.value,reason:Pn.reason?Pn.reason.message:void 0})}),Ge(on,function(Pn){for(var Ei in Pn)void 0===Pn[Ei]&&delete Pn[Ei]}),e.ports[0].postMessage({status:"done",eventId:F,eventType:f,response:on})})}},rc.prototype.postMessage=function(e,f){this.a.postMessage(e,f)},ng.prototype.close=function(){for(;0<this.a.length;)Yu(this,this.a[0]);this.b=!0},(_=Ha.prototype).set=function(e,f){var _e,F=!1,lt=this;return wf(this).then(function(Vt){return oc((Vt=Od(Ch(_e=Vt,!0))).get(e))}).then(function(Vt){var on=Od(Ch(_e,!0));return Vt?(Vt.value=f,oc(on.put(Vt))):(lt.b++,F=!0,(Vt={}).fbase_key=e,Vt.value=f,oc(on.add(Vt)))}).then(function(){return lt.c[e]=f,ep(lt,e)}).na(function(){F&<.b--})},_.get=function(e){return wf(this).then(function(f){return oc(Od(Ch(f,!1)).get(e))}).then(function(f){return f&&f.value})},_.T=function(e){var f=!1,F=this;return wf(this).then(function(_e){return f=!0,F.b++,oc(Od(Ch(_e,!0)).delete(e))}).then(function(){return delete F.c[e],ep(F,e)}).na(function(){f&&F.b--})},_.ca=function(e){0==this.a.length&&function Dg(e){Op(e),function f(){e.f=setTimeout(function(){e.i=Rd(e).then(function(F){0<F.length&&Ge(e.a,function(_e){_e(F)})}).then(function(){f()}).s(function(F){"STOP_EVENT"!=F.message&&f()})},800)}()}(this),this.a.push(e)},_.ia=function(e){hn(this.a,function(f){return f==e}),0==this.a.length&&Op(this)},(_=Dh.prototype).get=function(e){return this.b.then(function(f){return f.get(e)})},_.set=function(e,f){return this.b.then(function(F){return F.set(e,f)})},_.T=function(e){return this.b.then(function(f){return f.T(e)})},_.ca=function(e){this.a.push(e)},_.ia=function(e){hn(this.a,function(f){return f==e})},(_=Yr.prototype).get=function(e){return Ui(this.a[e])},_.set=function(e,f){return this.a[e]=f,Ui()},_.T=function(e){return delete this.a[e],Ui()},_.ca=function(){},_.ia=function(){},(_=Eu.prototype).get=function(e){var f=this;return Ui().then(function(){return we(f.a.getItem(e))})},_.set=function(e,f){var F=this;return Ui().then(function(){var _e=T(f);null===_e?F.T(e):F.a.setItem(e,_e)})},_.T=function(e){var f=this;return Ui().then(function(){f.a.removeItem(e)})},_.ca=function(e){$.window&&Rr($.window,"storage",e)},_.ia=function(e){$.window&&Ms($.window,"storage",e)},(_=Qh.prototype).get=function(){return Ui(null)},_.set=function(){return Ui()},_.T=function(){return Ui()},_.ca=function(){},_.ia=function(){},(_=Ja.prototype).get=function(e){var f=this;return Ui().then(function(){return we(f.a.getItem(e))})},_.set=function(e,f){var F=this;return Ui().then(function(){var _e=T(f);null===_e?F.T(e):F.a.setItem(e,_e)})},_.T=function(e){var f=this;return Ui().then(function(){f.a.removeItem(e)})},_.ca=function(){},_.ia=function(){};var Zs,Jh,Xh={D:Eu,ab:Ja},Zh={D:Eu,ab:Ja},tp={D:ol,ab:Qh},Sg={D:Eu,ab:Qh},Ku={qd:"local",NONE:"none",sd:"session"};function $u(){var e=!(Ut(Ir())||!ct()),f=v(),F=st();this.v=e,this.h=f,this.l=F,this.a={},Zs||(Zs=new Pp),e=Zs;
1try{this.g=!rs()&&Gi()||!$.indexedDB?new e.a.D:new Dh(zt()?new Yr:new e.a.D)}catch(_e){this.g=new Yr,this.h=!0}try{this.i=new e.a.ab}catch(_e){this.i=new Yr}this.m=new Yr,this.f=V(this.Xb,this),this.b={}}function jl(){return Jh||(Jh=new $u),Jh}function Cu(e,f){switch(f){case"session":return e.i;case"none":return e.m;default:return e.g}}function qu(e,f){return"firebase:"+e.name+(f?":"+f:"")}function ed(e,f,F){return F=qu(f,F),"local"==f.D&&(e.b[F]=null),Cu(e,f.D).T(F)}function Pd(e){e.c&&(clearInterval(e.c),e.c=null)}function rg(e){this.a=e,this.b=jl()}(_=$u.prototype).get=function(e,f){return Cu(this,e.D).get(qu(e,f))},_.set=function(e,f,F){var _e=qu(e,F),lt=this,Vt=Cu(this,e.D);return Vt.set(_e,f).then(function(){return Vt.get(_e)}).then(function(on){"local"==e.D&&(lt.b[_e]=on)})},_.addListener=function(e,f,F){e=qu(e,f),this.l&&(this.b[e]=$.localStorage.getItem(e)),zn(this.a)&&(Cu(this,"local").ca(this.f),this.h||(rs()||!Gi())&&$.indexedDB||!this.l||function ig(e){Pd(e),e.c=setInterval(function(){for(var f in e.a){var F=$.localStorage.getItem(f),_e=e.b[f];F!=_e&&(e.b[f]=F,F=new pi({type:"storage",key:f,target:window,oldValue:_e,newValue:F,a:!0}),e.Xb(F))}},1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(F)},_.removeListener=function(e,f,F){e=qu(e,f),this.a[e]&&(hn(this.a[e],function(_e){return _e==F}),0==this.a[e].length&&delete this.a[e]),zn(this.a)&&(Cu(this,"local").ia(this.f),Pd(this))},_.Xb=function(e){if(e&&e.g){var f=e.a.key;if(null==f)for(var F in this.a){var _e=this.b[F];void 0===_e&&(_e=null);var lt=$.localStorage.getItem(F);lt!==_e&&(this.b[F]=lt,this.lb(F))}else if(0==f.indexOf("firebase:")&&this.a[f]){if(void 0!==e.a.a?Cu(this,"local").ia(this.f):Pd(this),this.v)if(F=$.localStorage.getItem(f),(_e=e.a.newValue)!==F)null!==_e?$.localStorage.setItem(f,_e):$.localStorage.removeItem(f);else if(this.b[f]===_e&&void 0===e.a.a)return;var Vt=this;F=function(){(void 0!==e.a.a||Vt.b[f]!==$.localStorage.getItem(f))&&(Vt.b[f]=$.localStorage.getItem(f),Vt.lb(f))},at&&Wi&&10==Wi&&$.localStorage.getItem(f)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(F,10):F()}}else Ge(e,V(this.lb,this))},_.lb=function(e){this.a[e]&&Ge(this.a[e],function(f){f()})};var Ld,td={name:"authEvent",D:"local"};function og(){this.a=jl()}function Fd(e,f){this.b=Fp,this.f=$.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=f,this.l=$.Int32Array?new Int32Array(64):Array(64),void 0===Ld&&(Ld=$.Int32Array?new Int32Array(cg):cg),this.reset()}M(Fd,function Tg(){this.b=-1});for(var Fp=64,np=Fp-1,ag=[],Lp=0;Lp<np;Lp++)ag[Lp]=0;var lg=vn(128,ag);function Np(e){for(var f=e.f,F=e.l,_e=0,lt=0;lt<f.length;)F[_e++]=f[lt]<<24|f[lt+1]<<16|f[lt+2]<<8|f[lt+3],lt=4*_e;for(f=16;64>f;f++){var Vt=(0|F[f-16])+(((lt=0|F[f-15])>>>7|lt<<25)^(lt>>>18|lt<<14)^lt>>>3)|0,on=(0|F[f-7])+(((_e=0|F[f-2])>>>17|_e<<15)^(_e>>>19|_e<<13)^_e>>>10)|0;
1F[f]=Vt+on|0}_e=0|e.a[0],lt=0|e.a[1];var Pn=0|e.a[2],Ei=0|e.a[3],ki=0|e.a[4],hs=0|e.a[5],ko=0|e.a[6];for(Vt=0|e.a[7],f=0;64>f;f++){var vo=((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+(_e<^_e&Pn^lt&Pn)|0;on=(Vt=Vt+((ki>>>6|ki<<26)^(ki>>>11|ki<<21)^(ki>>>25|ki<<7))|0)+((on=(on=ki&hs^~ki&ko)+(0|Ld[f])|0)+(0|F[f])|0)|0,Vt=ko,ko=hs,hs=ki,ki=Ei+on|0,Ei=Pn,Pn=lt,lt=_e,_e=on+vo|0}e.a[0]=e.a[0]+_e|0,e.a[1]=e.a[1]+lt|0,e.a[2]=e.a[2]+Pn|0,e.a[3]=e.a[3]+Ei|0,e.a[4]=e.a[4]+ki|0,e.a[5]=e.a[5]+hs|0,e.a[6]=e.a[6]+ko|0,e.a[7]=e.a[7]+Vt|0}function Bp(e,f,F){void 0===F&&(F=f.length);var _e=0,lt=e.c;if("string"==typeof f)for(;_e<F;)e.f[lt++]=f.charCodeAt(_e++),lt==e.b&&(Np(e),lt=0);else{if(!Re(f))throw Error("message must be string or array");for(;_e<F;){var Vt=f[_e++];if(!("number"==typeof Vt&&0<=Vt&&255>=Vt&&Vt==(0|Vt)))throw Error("message must be a byte array");e.f[lt++]=Vt,lt==e.b&&(Np(e),lt=0)}}e.c=lt,e.g+=F}Fd.prototype.reset=function(){this.g=this.c=0,this.a=$.Int32Array?new Int32Array(this.h):ln(this.h)};var cg=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ug(){Fd.call(this,8,xg)}M(ug,Fd);var xg=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function hg(e,f,F,_e,lt,Vt){this.m=e,this.i=f,this.l=F,this.v=_e||null,this.u=lt||null,this.o=Vt,this.h=f+":"+F,this.A=new og,this.g=new rg(this.h),this.f=null,this.b=[],this.a=this.c=null}function ip(e){return new A("invalid-cordova-configuration",e)}function op(e,f){for(var F=0;F<e.b.length;F++)try{e.b[F](f)}catch(_e){}}function Nd(e){return e.f||(e.f=e.la().then(function(){return new fr(function(f){e.Ea(function F(_e){return f(_e),e.Ra(F),!1}),function Sh(e){function f(on){_e=!0,lt&<.cancel(),Sf(e).then(function(Pn){var Ei=F;if(Pn&&on&&on.url){var ki=null;-1!=(Ei=pf(on.url)).indexOf("/__/auth/callback")&&(ki=(ki="object"==typeof(ki=we(Ur(ki=Ys(Ei),"firebaseError")||null))?R(ki):null)?new Na(Pn.c,Pn.b,null,null,ki,null,Pn.S()):new Na(Pn.c,Pn.b,Ei,Pn.f,null,null,Pn.S())),Ei=ki||F}op(e,Ei)})}var F=new Na("unknown",null,null,null,new A("no-auth-event")),_e=!1,lt=ji(500).then(function(){return Sf(e).then(function(){_e||op(e,F)})}),Vt=$.handleOpenURL;$.handleOpenURL=function(on){if(0==on.toLowerCase().indexOf(Cr("BuildInfo.packageName",$).toLowerCase()+"://")&&f({url:on}),"function"==typeof Vt)try{Vt(on)}catch(Pn){console.error(Pn)}},fh||(fh=new ca),function bd(e){var f=fh;f.a.push(e),f.b||(f.b=function(F){for(var _e=0;_e<f.a.length;_e++)f.a[_e](F)},"function"==typeof(e=Cr("universalLinks.subscribe",$))&&e(null,f.b))}(f)}(e)})})),e.f}function Sf(e){var f=null;return function sg(e){return e.b.get(td,e.a).then(function(f){return nu(f)})}(e.g).then(function(F){return f=F,ed((F=e.g).b,td,F.a)}).then(function(){return f})}function Aa(e){this.a=e,this.b=jl()}(_=hg.prototype).la=function(){return this.Ia?this.Ia:this.Ia=function $e(){return Dt(void 0)?Er().then(function(){return new fr(function(e,f){var F=$.document,_e=setTimeout(function(){f(Error("Cordova framework is not ready."))},1e3);F.addEventListener("deviceready",function(){clearTimeout(_e),e()},!1)})}):vr(Error("Cordova must run in an Android or iOS file scheme."))}().then(function(){if("function"!=typeof Cr("universalLinks.subscribe",$))throw ip("cordova-universal-links-plugin-fix is not installed");if(void 0===Cr("BuildInfo.packageName",$))throw ip("cordova-plugin-buildinfo is not installed");if("function"!=typeof Cr("cordova.plugins.browsertab.openUrl",$))throw ip("cordova-plugin-browsertab is not installed");if("function"!=typeof Cr("cordova.InAppBrowser.open",$))throw ip("cordova-plugin-inappbrowser is not installed")},function(){throw new A("cordova-not-ready")})},_.Nb=function(e,f){return f(new A("operation-not-supported-in-this-environment")),Ui()},_.Lb=function(){return vr(new A("operation-not-supported-in-this-environment"))},_.Zb=function(){return!1},_.Wb=function(){return!0},_.Sb=function(){return!0},_.Mb=function(e,f,F,_e){if(this.c)return vr(new A("redirect-operation-pending"));var lt=this,Vt=$.document,on=null,Pn=null,Ei=null,ki=null;return this.c=Ui().then(function(){return Pu(f),Nd(lt)}).then(function(){return function sp(e,f,F,_e,lt){var Vt=function Qu(){for(var e=20,f=[];0<e;)f.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return f.join("")}(),on=new Na(f,_e,null,Vt,new A("no-auth-event"),null,lt),Pn=Cr("BuildInfo.packageName",$);if("string"!=typeof Pn)throw new A("invalid-cordova-configuration");var Ei=Cr("BuildInfo.displayName",$),ki={};if(Ir().toLowerCase().match(/iphone|ipad|ipod/))ki.ibi=Pn;else{if(!Ir().toLowerCase().match(/android/))return vr(new A("operation-not-supported-in-this-environment"));ki.apn=Pn}Ei&&(ki.appDisplayName=Ei),Vt=function rp(e){var f=new ug;Bp(f,e),e=[];var F=8*f.g;Bp(f,lg,56>f.c?56-f.c:f.b-(f.c-56));for(var _e=63;56<=_e;_e--)f.f[_e]=255&F,F/=256;for(Np(f),_e=F=0;_e<f.i;_e++)for(var lt=24;0<=lt;lt-=8)e[F++]=f.a[_e]>>lt&255;return function ch(e){return Ft(e,function(f){return 1<(f=f.toString(16)).length?f:"0"+f}).join("")}(e)}(Vt),ki.sessionId=Vt;var hs=uo(e.m,e.i,e.l,f,F,null,_e,e.v,ki,e.u,lt,e.o);return e.la().then(function(){var ko=e.h;return e.A.a.set(td,on.w(),ko)}).then(function(){var ko=Cr("cordova.plugins.browsertab.isAvailable",$);if("function"!=typeof ko)throw new A("invalid-cordova-configuration");var vo=null;ko(function(tl){if(tl){if("function"!=typeof(vo=Cr("cordova.plugins.browsertab.openUrl",$)))throw new A("invalid-cordova-configuration");vo(hs)}else{if("function"!=typeof(vo=Cr("cordova.InAppBrowser.open",$)))throw new A("invalid-cordova-configuration");tl=Ir(),e.a=vo(hs,tl.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||tl.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}(lt,e,f,F,_e)}).then(function(){return new fr(function(hs,ko){Pn=function(){var vo=Cr("cordova.plugins.browsertab.close",$);return hs(),"function"==typeof vo&&vo(),lt.a&&"function"==typeof lt.a.close&&(lt.a.close(),lt.a=null),!1},lt.Ea(Pn),ki=function(){Bn()&&Ei()},Vt.addEventListener("resume",Ei=function(){on||(on=ji(2e3).then(function(){ko(new A("redirect-cancelled-by-user"))}))},!1),Ir().toLowerCase().match(/android/)||Vt.addEventListener("visibilitychange",ki,!1)}).s(function(hs){return Sf(lt).then(function(){throw hs})})}).na(function(){Ei&&Vt.removeEventListener("resume",Ei,!1),ki&&Vt.removeEventListener("visibilitychange",ki,!1),on&&on.cancel(),Pn&<.Ra(Pn),lt.c=null})},_.Ea=function(e){this.b.push(e),Nd(this).s(function(f){"auth/invalid-cordova-configuration"===f.code&&(f=new Na("unknown",null,null,null,new A("no-auth-event")),e(f))})},_.Ra=function(e){hn(this.b,function(f){return f==e})};var Do={name:"pendingRedirect",D:"session"};function Bd(e){return ed(e.b,Do,e.a)}function Af(e,f,F,_e){this.i={},this.u=0,this.O=e,this.m=f,this.v=F,this.G=_e,this.h=[],this.f=!1,this.l=V(this.o,this),this.b=new Vd,this.A=new id,this.g=new Aa(Mf(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=ap(this.O,this.m,this.v,Fe,this.G)}function ap(e,f,F,_e,lt){var Vt=s.SDK_VERSION||null;return Dt()?new hg(e,f,F,Vt,_e,lt):new qh(e,f,F,Vt,_e,lt)}
1function nd(e){e.f||(e.f=!0,e.a.Ea(e.l));var f=e.a;return e.a.la().s(function(F){throw e.a==f&&e.reset(),F})}function dg(e){e.a.Wb()&&nd(e).s(function(f){var F=new Na("unknown",null,null,null,new A("operation-not-supported-in-this-environment"));Dc(f)&&e.o(F)}),e.a.Sb()||Hd(e.b)}function Sl(e,f){jt(e.h,f)||e.h.push(f),e.f||function Ud(e){return e.b.get(Do,e.a).then(function(f){return"pending"==f})}(e.g).then(function(F){F?Bd(e.g).then(function(){nd(e).s(function(_e){var lt=new Na("unknown",null,null,null,new A("operation-not-supported-in-this-environment"));Dc(_e)&&e.o(lt)})}):dg(e)}).s(function(){dg(e)})}function Vl(e,f){hn(e.h,function(F){return F==f})}Af.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=ap(this.O,this.m,this.v,null,this.G),this.i={}},Af.prototype.o=function(e){if(!e)throw new A("invalid-auth-event");if(6e5<=E()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var f=!1,F=0;F<this.h.length;F++){var _e=this.h[F];if(_e.Eb(e.c,e.b)){(f=this.c[e.c])&&(f.h(e,_e),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=E())),f=!0;break}}return Hd(this.b),f};var Ah=new tn(2e3,1e4),Vc=new tn(3e4,6e4);function Hc(e,f,F,_e,lt,Vt,on){return e.a.Lb(f,F,_e,function(){e.f||(e.f=!0,e.a.Ea(e.l))},function(){e.reset()},lt,Vt,on)}function Dc(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function ho(e,f,F,_e,lt){var Vt;return function Ma(e){return e.b.set(Do,"pending",e.a)}(e.g).then(function(){return e.a.Mb(f,F,_e,lt).s(function(on){if(Dc(on))throw new A("operation-not-supported-in-this-environment");return Vt=on,Bd(e.g).then(function(){throw Vt})}).then(function(){return e.a.Zb()?new fr(function(){}):Bd(e.g).then(function(){return e.qa()}).then(function(){}).s(function(){})})})}function Gc(e,f,F,_e,lt){return e.a.Nb(_e,function(Vt){f.ma(F,null,Vt,lt)},Ah.get())}Af.prototype.qa=function(){return this.b.qa()};var jd={};function Mf(e,f,F){return e=e+":"+f,F&&(e=e+":"+F.url),e}function Tf(e,f,F,_e){var lt=Mf(f,F,_e);return jd[lt]||(jd[lt]=new Af(e,f,F,_e)),jd[lt]}function Vd(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Hd(e){e.g||(e.g=!0,Xu(e,!1,null,null))}function xf(e){e.g&&!e.i&&Xu(e,!1,null,null)}function lp(e,f){if(e.b=function(){return Ui(f)},e.f.length)for(var F=0;F<e.f.length;F++)e.f[F](f)}function Xu(e,f,F,_e){f?_e?function Ig(e,f){if(e.b=function(){return vr(f)},e.c.length)for(var F=0;F<e.c.length;F++)e.c[F](f)}(e,_e):lp(e,F):lp(e,{user:null}),e.f=[],e.c=[]}function id(){}function Up(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(e){this.hb=e},enumerable:!1})}function Ga(e,f){this.a=f,Qi(this,"verificationId",e)}function Hs(e,f,F,_e){return new ml(e).eb(f,F).then(function(lt){return new Ga(lt,_e)})}function kg(e){var f=Lh(e);if(!(f&&f.exp&&f.auth_time&&f.iat))throw new A("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");xo(this,{token:e,expirationTime:wi(1e3*f.exp),authTime:wi(1e3*f.auth_time),issuedAtTime:wi(1e3*f.iat),signInProvider:f.firebase&&f.firebase.sign_in_provider?f.firebase.sign_in_provider:null,signInSecondFactor:f.firebase&&f.firebase.sign_in_second_factor?f.firebase.sign_in_second_factor:null,claims:f})}function zd(e,f,F){var _e=f&&f[jp];if(!_e)throw new A("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=nn(f),this.g=F,this.c=new Uo(null,_e),this.b=[];var lt=this;Ge(f[Og]||[],function(Vt){(Vt=Tu(Vt))&<.b.push(Vt)}),Qi(this,"auth",this.a),Qi(this,"session",this.c),Qi(this,"hints",this.b)}Vd.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Vd.prototype.h=function(e,f){if(e){this.reset(),this.g=!0;var F=e.c,_e=e.b,lt=e.a&&"auth/web-storage-unsupported"==e.a.code,Vt=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!lt&&!Vt),"unknown"!=F||lt||Vt?e.a?(Xu(this,!0,null,e.a),Ui()):f.Fa(F,_e)?function Gd(e,f,F){F=F.Fa(f.c,f.b);var _e=f.g,lt=f.f,Vt=f.i,on=f.S(),Pn=!!f.c.match(/Redirect$/);F(_e,lt,on,Vt).then(function(Ei){Xu(e,Pn,Ei,null)}).s(function(Ei){Xu(e,Pn,null,Ei)})}
1(this,e,f):vr(new A("invalid-auth-event")):(Xu(this,!1,null,null),Ui())}else vr(new A("invalid-auth-event"))},Vd.prototype.qa=function(){var e=this;return new fr(function(f,F){e.b?e.b().then(f,F):(e.f.push(f),e.c.push(F),function fg(e){var f=new A("timeout");e.a&&e.a.cancel(),e.a=ji(Vc.get()).then(function(){e.b||(e.g=!0,Xu(e,!0,null,f))})}(e))})},id.prototype.h=function(e,f){if(e){var F=e.c,_e=e.b;e.a?(f.ma(e.c,null,e.a,e.b),Ui()):f.Fa(F,_e)?function Zu(e,f){var F=e.b,_e=e.c;f.Fa(_e,F)(e.g,e.f,e.S(),e.i).then(function(lt){f.ma(_e,lt,null,F)}).s(function(lt){f.ma(_e,null,lt,F)})}(e,f):vr(new A("invalid-auth-event"))}else vr(new A("invalid-auth-event"))},Ga.prototype.confirm=function(e){return e=la(this.verificationId,e),this.a(e)};var Og="mfaInfo",jp="mfaPendingCredential";function rd(e,f,F,_e){A.call(this,"multi-factor-auth-required",_e,f),this.b=new zd(e,f,F),Qi(this,"resolver",this.b)}function If(e,f,F){if(e&&Q(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new rd(f,e.serverResponse,F,e.message)}catch(_e){}return null}function kf(){}function Wd(e){Qi(this,"factorId",e.fa),this.a=e}function cp(e){if(Wd.call(this,e),this.a.fa!=ml.PROVIDER_ID)throw new A("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function zc(e,f){for(var F in ti.call(this,e),f)this[F]=f[F]}function sd(e,f){this.a=e,this.b=[],this.c=V(this.xc,this),Rr(this.a,"userReloaded",this.c);var F=[];f&&f.multiFactor&&f.multiFactor.enrolledFactors&&Ge(f.multiFactor.enrolledFactors,function(_e){var lt=null,Vt={};if(_e){_e.uid&&(Vt[Tc]=_e.uid),_e.displayName&&(Vt[dl]=_e.displayName),_e.enrollmentTime&&(Vt[_a]=new Date(_e.enrollmentTime).toISOString()),_e.phoneNumber&&(Vt[xc]=_e.phoneNumber);try{lt=new Ka(Vt)}catch(on){}_e=lt}else _e=null;_e&&F.push(_e)}),Mh(this,F)}function Mh(e,f){e.b=f,Qi(e,"enrolledFactors",f)}function Yd(e,f,F){if(this.h=e,this.i=f,this.g=F,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Kd(e,f){e.stop(),e.b=ji(function up(e,f){return f?(e.a=e.c,e.g()):(f=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),f)}(e,f)).then(function(){return function Kn(){var e=$.document,f=null;return Bn()||!e?Ui():new fr(function(F){f=function(){Bn()&&(e.removeEventListener("visibilitychange",f,!1),F())},e.addEventListener("visibilitychange",f,!1)}).s(function(F){throw e.removeEventListener("visibilitychange",f,!1),F})}()}).then(function(){return e.h()}).then(function(){Kd(e,!0)}).s(function(F){e.i(F)&&Kd(e,!1)})}function $d(e){this.c=e,this.b=this.a=null}function Hl(e){return e.b&&1e3*e.b.c||0}function Of(e,f){var F=f.refreshToken;e.b=Rc(f[Ua]||""),e.a=F}function od(e,f){this.a=e||null,this.b=f||null,xo(this,{lastSignInTime:wi(f||null),creationTime:wi(e||null)})}function hp(e,f,F,_e,lt,Vt){xo(this,{uid:e,displayName:_e||null,photoURL:lt||null,email:F||null,phoneNumber:Vt||null,providerId:f})}function ac(e,f,F){this.G=[],this.l=e.apiKey,this.m=e.appName,this.o=e.authDomain||null;var _e=s.SDK_VERSION?Fr(s.SDK_VERSION):null;this.a=new ua(this.l,ge(Fe),_e),e.emulatorConfig&&Uc(this.a,e.emulatorConfig),this.b=new $d(this.a),dp(this,f[Ua]),Of(this.b,f),Qi(this,"refreshToken",this.b.a),cd(this,F||{}),Fi.call(this),this.P=!1,this.o&&He()&&(this.i=Tf(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=function Hp(e){return new Yd(function(){return e.I(!0)},function(f){return!(!f||"auth/network-request-failed"!=f.code)},function(){var f=Hl(e.b)-E()-3e5;return 0<f?f:0})}(this),this.$=V(this.gb,this);var lt=this;this.pa=null,this.Ba=function(Vt){lt.wa(Vt.h)},this.ba=null,this.za=function(Vt){Uc(lt.a,Vt.c)},this.W=null,this.X=[],this.Aa=function(Vt){Xd(lt,Vt.f)},this.aa=null,this.N=new sd(this,F),Qi(this,"multiFactor",this.N)}function qd(e,f){e.ba&&Ms(e.ba,"languageCodeChanged",e.Ba),(e.ba=f)&&Rr(f,"languageCodeChanged",e.Ba)}function Qd(e,f){e.W&&Ms(e.W,"emulatorConfigChanged",e.za),(e.W=f)&&Rr(f,"emulatorConfigChanged",e.za)}function Xd(e,f){e.X=f,gu(e.a,s.SDK_VERSION?Fr(s.SDK_VERSION,e.X):null)}function ld(e,f){e.aa&&Ms(e.aa,"frameworkChanged",e.Aa),(e.aa=f)&&Rr(f,"frameworkChanged",e.Aa)}function Wc(e){try{return s.app(e.m).auth()}catch(f){throw new A("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function Gp(e){e.A||e.u.b||(e.u.start(),Ms(e,"tokenChanged",e.$),Rr(e,"tokenChanged",e.$))}function Pf(e){Ms(e,"tokenChanged",e.$),e.u.stop()}function dp(e,f){e.ya=f,Qi(e,"_lat",f)}function Yc(e){for(var f=[],F=0;F<e.R.length;F++)f.push(e.R[F](e));return Ao(f).then(function(){return e})}function Th(e){e.i&&!e.P&&(e.P=!0,Sl(e.i,e))}function cd(e,f){xo(e,{uid:f.uid,displayName:f.displayName||null,photoURL:f.photoURL||null,email:f.email||null,emailVerified:f.emailVerified||!1,phoneNumber:f.phoneNumber||null,isAnonymous:f.isAnonymous||!1,tenantId:f.tenantId||null,metadata:new od(f.createdAt,f.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function fp(){}function pp(e){return Ui().then(function(){if(e.A)throw new A("app-deleted")})}function gp(e){return Ft(e.providerData,function(f){return f.providerId})}function mp(e,f){f&&(Kc(e,f.providerId),e.providerData.push(f))}function Kc(e,f){hn(e.providerData,function(F){return F.providerId==f})}function Ju(e,f,F){("uid"!=f||F)&&e.hasOwnProperty(f)&&Qi(e,f,F)}function eh(e,f){e!=f&&(xo(e,{uid:f.uid,displayName:f.displayName,photoURL:f.photoURL,email:f.email,emailVerified:f.emailVerified,phoneNumber:f.phoneNumber,isAnonymous:f.isAnonymous,tenantId:f.tenantId,providerData:[]}),Qi(e,"metadata",f.metadata?function ad(e){return new od(e.a,e.b)}(f.metadata):new od),Ge(f.providerData,function(F){mp(e,F)}),function Rg(e,f){e.b=f.b,e.a=f.a}(e.b,f.b),Qi(e,"refreshToken",e.b.a),Mh(e.N,f.N.b))}function al(e){return e.I().then(function(f){var F=e.isAnonymous;return function Zd(e,f){return ss(e.a,r,{idToken:f}).then(V(e.Jc,e))}(e,f).then(function(){return F||Ju(e,"isAnonymous",!1),f})})}function Ta(e,f){f[Ua]&&e.ya!=f[Ua]&&(Of(e.b,f),e.dispatchEvent(new zc("tokenChanged")),dp(e,f[Ua]),Ju(e,"refreshToken",e.b.a))}function ud(e,f){return al(e).then(function(){if(jt(gp(e),f))return Yc(e).then(function(){throw new A("provider-already-linked")})})}function th(e,f,F){return na({user:e,credential:_l(f),additionalUserInfo:f=hh(f),operationType:F})}function Lf(e,f){return Ta(e,f),e.reload().then(function(){return e})}function xh(e,f,F,_e,lt){if(!He())return vr(new A("operation-not-supported-in-this-environment"));if(e.f&&!lt)return vr(e.f);var Vt=ya(F.providerId),on=ft(e.uid+":::"),Pn=null;(!v()||ct())&&e.o&&F.isOAuthProvider&&(Pn=uo(e.o,e.l,e.m,f,F,null,on,s.SDK_VERSION||null,null,null,e.tenantId));var Ei=Hi(Pn,Vt&&Vt.ua,Vt&&Vt.ta);return _e=_e().then(function(){if(gg(e),!lt)return e.I().then(function(){})}).then(function(){return Hc(e.i,Ei,f,F,on,!!Pn,e.tenantId)}).then(function(){return new fr(function(ki,hs){e.ma(f,null,new A("cancelled-popup-request"),e.h||null),e.g=ki,e.O=hs,e.h=on,e.c=Gc(e.i,e,f,Ei,on)})}).then(function(ki){return Ei&&qn(Ei),ki?na(ki):null}).s(function(ki){throw Ei&&qn(Ei),ki}),ra(e,_e,lt)}function Du(e,f,F,_e,lt){if(!He())return vr(new A("operation-not-supported-in-this-environment"));if(e.f&&!lt)return vr(e.f);var Vt=null,on=ft(e.uid+":::");return _e=_e().then(function(){if(gg(e),!lt)return e.I().then(function(){})}).then(function(){return e.ga=on,Yc(e)}).then(function(Pn){return e.ha&&(Pn=(Pn=e.ha).b.set(Yp,e.w(),Pn.a)),Pn}).then(function(){return ho(e.i,f,F,on,e.tenantId)}).s(function(Pn){if(Vt=Pn,e.ha)return tf(e.ha);throw Vt}).then(function(){if(Vt)throw Vt}),ra(e,_e,lt)}function gg(e){if(!e.i||!e.P)throw new A(e.i&&!e.P?"internal-error":"auth-domain-config-required")}function ra(e,f,F){var _e=function _p(e,f,F){return e.f&&!F?(f.cancel(),vr(e.f)):f.s(function(_e){throw!_e||"auth/user-disabled"!=_e.code&&"auth/user-token-expired"!=_e.code||(e.f||e.dispatchEvent(new zc("userInvalidated")),e.f=_e),_e})}(e,f,F);return e.G.push(_e),_e.na(function(){cn(e.G,_e)}),_e.s(function(lt){var Vt=null;throw lt&&"auth/multi-factor-auth-required"===lt.code&&(Vt=If(lt.w(),Wc(e),V(e.ic,e))),Vt||lt})}function Jd(e){if(!e.apiKey)return null;var f={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName,emulatorConfig:e.emulatorConfig},F={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;F[Ua]=e.stsTokenManager.accessToken,F.refreshToken=e.stsTokenManager.refreshToken||null;var _e=new ac(f,F,e);return e.providerData&&Ge(e.providerData,function(lt){lt&&mp(_e,na(lt))}),e.redirectEventId&&(_e.ga=e.redirectEventId),_e}function Wp(e){this.a=e,this.b=jl()}zd.prototype.Qc=function(e){var f=this;return e.rb(this.a.a,this.c).then(function(F){var _e=nn(f.f);return delete _e[Og],delete _e[jp],Yt(_e,F),f.g(_e)})},M(rd,A),kf.prototype.rb=function(e,f,F){return f.type==eu?function fo(e,f,F,_e){return F.Ha().then(function(lt){return lt={idToken:lt},void 0!==_e&&(lt.displayName=_e),Yt(lt,{phoneVerificationInfo:Ru(e.a)}),ss(f,Ip,lt)})}(this,e,f,F):function pg(e,f,F){return F.Ha().then(function(_e){return Yt(_e={mfaPendingCredential:_e},{phoneVerificationInfo:Ru(e.a)}),ss(f,d,_e)})}(this,e,f)},M(Wd,kf),M(cp,Wd),M(zc,ti),(_=sd.prototype).xc=function(e){Mh(this,function Vp(e){var f=[];return Ge(e.mfaInfo||[],function(F){(F=Tu(F))&&f.push(F)}),f}(e.gd))},_.Qb=function(){return this.a.I().then(function(e){return new Uo(e,null)})},_.ec=function(e,f){var F=this,_e=this.a.a;return this.Qb().then(function(lt){return e.rb(_e,lt,f)}
1).then(function(lt){return Ta(F.a,lt),F.a.reload()})},_.ad=function(e){var f=this,F="string"==typeof e?e:e.uid,_e=this.a.a;return this.a.I().then(function(lt){return ss(_e,Wo,{idToken:lt,mfaEnrollmentId:F})}).then(function(lt){var Vt=Ot(f.b,function(on){return on.uid!=F});return Mh(f,Vt),Ta(f.a,lt),f.a.reload().s(function(on){if("auth/user-token-expired"!=on.code)throw on})})},_.w=function(){return{multiFactor:{enrolledFactors:Ft(this.b,function(e){return e.w()})}}},Yd.prototype.start=function(){this.a=this.c,Kd(this,!0)},Yd.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},$d.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:Hl(this)}},$d.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?vr(new A("user-token-expired")):e||!this.b||E()>Hl(this)-3e4?this.a?function Rf(e,f){return function zu(e,f){return new fr(function(F,_e){"refresh_token"==f.grant_type&&f.refresh_token||"authorization_code"==f.grant_type&&f.code?Gu(e,e.l+"?key="+encodeURIComponent(e.c),function(lt){lt?lt.error?_e(nc(lt)):lt.access_token&<.refresh_token?F(lt):_e(new A("internal-error")):_e(new A("network-request-failed"))},"POST",Ji(f).toString(),e.g,e.v.get()):_e(new A("internal-error"))})}(e.c,f).then(function(F){return e.b=Rc(F.access_token),e.a=F.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}}).s(function(F){throw"auth/user-token-expired"==F.code&&(e.a=null),F})}(this,{grant_type:"refresh_token",refresh_token:this.a}):Ui(null):Ui({accessToken:this.b.toString(),refreshToken:this.a})},od.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},M(ac,Fi),ac.prototype.wa=function(e){this.pa=e,_f(this.a,e)},ac.prototype.ka=function(){return this.pa},ac.prototype.Ga=function(){return ln(this.X)},ac.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},Qi(ac.prototype,"providerId","firebase"),(_=ac.prototype).reload=function(){var e=this;return ra(this,pp(this).then(function(){return al(e).then(function(){return Yc(e)}).then(fp)}))},_.nc=function(e){return this.I(e).then(function(f){return new kg(f)})},_.I=function(e){var f=this;return ra(this,pp(this).then(function(){return f.b.getToken(e)}).then(function(F){if(!F)throw new A("internal-error");return F.accessToken!=f.ya&&(dp(f,F.accessToken),f.dispatchEvent(new zc("tokenChanged"))),Ju(f,"refreshToken",F.refreshToken),F.accessToken}))},_.Jc=function(e){if(!(e=e.users)||!e.length)throw new A("internal-error");cd(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var f=function Pg(e){return(e=e.providerUserInfo)&&e.length?Ft(e,function(f){return new hp(f.rawId,f.providerId,f.email,f.displayName,f.photoUrl,f.phoneNumber)}):[]}(e),F=0;F<f.length;F++)mp(this,f[F]);Ju(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new zc("userReloaded",{gd:e}))},_.Kc=function(e){return _s("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(e)},_.sb=function(e){var f=this,F=null;return ra(this,e.c(this.a,this.uid).then(function(_e){return Ta(f,_e),F=th(f,_e,"reauthenticate"),f.f=null,f.reload()}).then(function(){return F}),!0)},_.Bc=function(e){return _s("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(e)},_.pb=function(e){var f=this,F=null;return ra(this,ud(this,e.providerId).then(function(){return f.I()}).then(function(_e){return e.b(f.a,_e)}).then(function(_e){return F=th(f,_e,"link"),Lf(f,_e)}).then(function(){return F}))},_.Cc=function(e,f){var F=this;return ra(this,ud(this,"phone").then(function(){return Hs(Wc(F),e,f,V(F.pb,F))}))},_.Lc=function(e,f){var F=this;return ra(this,Ui().then(function(){return Hs(Wc(F),e,f,V(F.sb,F))}),!0)},_.Ab=function(e){var f=this;return ra(this,this.I().then(function(F){return f.a.Ab(F,e)}).then(function(F){return Ta(f,F),f.reload()}))},_.dd=function(e){var f=this;return ra(this,this.I().then(function(F){return e.b(f.a,F)}).then(function(F){return Ta(f,F),f.reload()}))},_.Bb=function(e){var f=this;return ra(this,this.I().then(function(F){return f.a.Bb(F,e)}).then(function(F){return Ta(f,F),f.reload()}))},_.Cb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return pp(this);var f=this;return ra(this,this.I().then(function(F){return f.a.Cb(F,{displayName:e.displayName,photoUrl:e.photoURL})}).then(function(F){return Ta(f,F),Ju(f,"displayName",F.displayName||null),Ju(f,"photoURL",F.photoUrl||null),Ge(f.providerData,function(_e){"password"===_e.providerId&&(Qi(_e,"displayName",f.displayName),Qi(_e,"photoURL",f.photoURL))}),Yc(f)}).then(fp))},_.bd=function(e){var f=this;return ra(this,al(this).then(function(F){return jt(gp(f),e)?function Cd(e,f,F){return ss(e,El,{idToken:f,deleteProvider:F})}(f.a,F,[e]).then(function(_e){var lt={};return Ge(_e.providerUserInfo||[],function(Vt){lt[Vt.providerId]=!0}),Ge(gp(f),function(Vt){lt[Vt]||Kc(f,Vt)}),lt[ml.PROVIDER_ID]||Qi(f,"phoneNumber",null),Yc(f)}):Yc(f).then(function(){throw new A("no-such-provider")})}))},_.delete=function(){var e=this;return ra(this,this.I().then(function(f){return ss(e.a,tc,{idToken:f})}).then(function(){e.dispatchEvent(new zc("userDeleted"))})).then(function(){for(var f=0;f<e.G.length;f++)e.G[f].cancel("app-deleted");qd(e,null),Qd(e,null),ld(e,null),e.G=[],e.A=!0,Pf(e),Qi(e,"refreshToken",null),e.i&&Vl(e.i,e)})},_.Eb=function(e,f){return!!("linkViaPopup"==e&&(this.h||null)==f&&this.g||"reauthViaPopup"==e&&(this.h||null)==f&&this.g||"linkViaRedirect"==e&&(this.ga||null)==f||"reauthViaRedirect"==e&&(this.ga||null)==f)},_.ma=function(e,f,F,_e){"linkViaPopup"!=e&&"reauthViaPopup"!=e||_e!=(this.h||null)||(F&&this.O?this.O(F):f&&!F&&this.g&&this.g(f),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},_.Fa=function(e,f){return"linkViaPopup"==e&&f==(this.h||null)?V(this.Jb,this):"reauthViaPopup"==e&&f==(this.h||null)?V(this.Kb,this):"linkViaRedirect"==e&&(this.ga||null)==f?V(this.Jb,this):"reauthViaRedirect"==e&&(this.ga||null)==f?V(this.Kb,this):null},_.Dc=function(e){var f=this;return xh(this,"linkViaPopup",e,function(){return ud(f,e.providerId).then(function(){return Yc(f)})},!1)},_.Mc=function(e){return xh(this,"reauthViaPopup",e,function(){return Ui()},!0)},_.Ec=function(e){var f=this;return Du(this,"linkViaRedirect",e,function(){return ud(f,e.providerId)},!1)},_.Nc=function(e){return Du(this,"reauthViaRedirect",e,function(){return Ui()},!0)},_.Jb=function(e,f,F,_e){var lt=this;this.c&&(this.c.cancel(),this.c=null);var Vt=null;return ra(this,this.I().then(function(on){return Cc(lt.a,{requestUri:e,postBody:_e,sessionId:f,idToken:on})}).then(function(on){return Vt=th(lt,on,"link"),Lf(lt,on)}).then(function(){return Vt}))},_.Kb=function(e,f,F,_e){var lt=this;this.c&&(this.c.cancel(),this.c=null);var Vt=null;return ra(this,Ui().then(function(){return kl(yu(lt.a,{requestUri:e,sessionId:f,postBody:_e,tenantId:F}),lt.uid)}
1).then(function(Pn){return Vt=th(lt,Pn,"reauthenticate"),Ta(lt,Pn),lt.f=null,lt.reload()}).then(function(){return Vt}),!0)},_.tb=function(e){var f=this,F=null;return ra(this,this.I().then(function(_e){return F=_e,void 0===e||zn(e)?{}:pl(new Ic(e))}).then(function(_e){return f.a.tb(F,_e)}).then(function(_e){if(f.email!=_e)return f.reload()}).then(function(){}))},_.Db=function(e,f){var F=this,_e=null;return ra(this,this.I().then(function(lt){return _e=lt,void 0===f||zn(f)?{}:pl(new Ic(f))}).then(function(lt){return F.a.Db(_e,e,lt)}).then(function(lt){if(F.email!=lt)return F.reload()}).then(function(){}))},_.ic=function(e){var f=null,F=this;return ra(this,e=kl(Ui(e),F.uid).then(function(_e){return f=th(F,_e,"reauthenticate"),Ta(F,_e),F.f=null,F.reload()}).then(function(){return f}),!0)},_.toJSON=function(){return this.w()},_.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&Yt(e,this.metadata.w()),Ge(this.providerData,function(f){e.providerData.push(function Mu(e){var F,f={};for(F in e)e.hasOwnProperty(F)&&(f[F]=e[F]);return f}(f))}),Yt(e,this.N.w()),e};var Yp={name:"redirectUser",D:"session"};function tf(e){return ed(e.b,Yp,e.a)}function Ih(e){this.a=e,this.b=jl(),this.c=null,this.f=function mg(e){var f=ll("local"),F=ll("session"),_e=ll("none");return function Mg(e,f,F){var _e=qu(f,F),lt=Cu(e,f.D);return e.get(f,F).then(function(Vt){var on=null;try{on=we($.localStorage.getItem(_e))}catch(Pn){}if(on&&!Vt)return $.localStorage.removeItem(_e),e.set(f,on,F);on&&Vt&&"localStorage"!=lt.type&&$.localStorage.removeItem(_e)})}(e.b,f,e.a).then(function(){return e.b.get(F,e.a)}).then(function(lt){return lt?F:e.b.get(_e,e.a).then(function(Vt){return Vt?_e:e.b.get(f,e.a).then(function(on){return on?f:e.b.get(Nf,e.a).then(function(Pn){return Pn?ll(Pn):f})})})}).then(function(lt){return e.c=lt,$c(e,lt.D)}).s(function(){e.c||(e.c=f)})}(this),this.b.addListener(ll("local"),this.a,V(this.g,this))}function $c(e,f){var _e,F=[];for(_e in Ku)Ku[_e]!==f&&F.push(ed(e.b,ll(Ku[_e]),e.a));return F.push(ed(e.b,Nf,e.a)),function Ps(e){return new fr(function(f,F){var _e=e.length,lt=[];if(_e)for(var Vt=function(ki,hs){_e--,lt[ki]=hs,0==_e&&f(lt)},on=function(ki){F(ki)},Pn=0;Pn<e.length;Pn++)Po(e[Pn],ne(Vt,Pn),on);else f(lt)})}(F)}Ih.prototype.g=function(){var e=this,f=ll("local");za(this,function(){return Ui().then(function(){return e.c&&"local"!=e.c.D?e.b.get(f,e.a):null}).then(function(F){if(F)return $c(e,"local").then(function(){e.c=f})})})};var Nf={name:"persistence",D:"session"};function ll(e){return{name:"authUser",D:e}}function _g(e,f){return za(e,function(){return e.b.set(e.c,f.w(),e.a)})}function vp(e){return za(e,function(){return ed(e.b,e.c,e.a)})}function qp(e,f,F){return za(e,function(){return e.b.get(e.c,e.a).then(function(_e){return _e&&f&&(_e.authDomain=f),_e&&F&&(_e.emulatorConfig=F),Jd(_e||{})})})}function za(e,f){return e.f=e.f.then(f,f),e.f}function el(e){if(this.m=!1,Qi(this,"settings",new Up),Qi(this,"app",e),!cr(this).options||!cr(this).options.apiKey)throw new A("invalid-api-key");e=s.SDK_VERSION?Fr(s.SDK_VERSION):null,this.a=new ua(cr(this).options&&cr(this).options.apiKey,ge(Fe),e),this.R=[],this.u=[],this.P=[],this.ac=s.INTERNAL.createSubscribe(V(this.yc,this)),this.X=void 0,this.bc=s.INTERNAL.createSubscribe(V(this.zc,this)),sf(this,null),this.l=new Ih(cr(this).options.apiKey+":"+cr(this).name),this.G=new Wp(cr(this).options.apiKey+":"+cr(this).name),this.$=So(this,function af(e){var f=cr(e).options.authDomain,F=function Cs(e){var f=function Kp(e,f){return e.b.get(Yp,e.a).then(function(F){return F&&f&&(F.authDomain=f),Jd(F||{})})}(e.G,cr(e).options.authDomain).then(function(F){return(e.o=F)&&(F.ha=e.G),tf(e.G)});return So(e,f)}(e).then(function(){return qp(e.l,f,e.f)}).then(function(_e){return _e?(_e.ha=e.G,e.o&&(e.o.ga||null)==(_e.ga||null)?_e:_e.reload().then(function(){return _g(e.l,_e).then(function(){return _e})}).s(function(lt){return"auth/network-request-failed"==lt.code?_e:vp(e.l)})):null}).then(function(_e){sf(e,_e||null)});return So(e,F)}(this)),this.i=So(this,function Bs(e){return e.$.then(function(){return rf(e)}).s(function(){}).then(function(){if(!e.m)return e.pa()}).s(function(){}).then(function(){if(!e.m){e.ba=!0;var f=e.l;f.b.addListener(ll("local"),f.a,e.pa)}})}(this)),this.ba=!1,this.pa=V(this.Yc,this),this.Ba=V(this.da,this),this.ya=V(this.kc,this),this.za=V(this.vc,this),this.Aa=V(this.wc,this),this.b=null,function vg(e){var f=cr(e).options.authDomain,F=cr(e).options.apiKey;f&&He()&&(e.gb=e.$.then(function(){if(!e.m){if(e.b=Tf(f,F,cr(e).name,e.f),Sl(e.b,e),ds(e)&&Th(ds(e)),e.o){Th(e.o);var _e=e.o;_e.wa(e.ka()),qd(_e,e),Xd(_e=e.o,e.N),ld(_e,e),Uc((_e=e.o).a,e.f),Qd(_e,e),e.o=null}return e.b}}))}(this),this.INTERNAL={},this.INTERNAL.delete=V(this.delete,this),this.INTERNAL.logFramework=V(this.Fc,this),this.A=0,Fi.call(this),function Bf(e){Object.defineProperty(e,"lc",{get:function(){return this.ka()},set:function(f){this.wa(f)},enumerable:!1}),e.aa=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(f){this.xb(f)},enumerable:!1}),e.W=null}(this),this.N=[],this.f=null}
1function yp(e){ti.call(this,"languageCodeChanged"),this.h=e}function hd(e){ti.call(this,"emulatorConfigChanged"),this.c=e}function dd(e){ti.call(this,"frameworkChanged"),this.f=e}function Sc(e){return e.gb||vr(new A("auth-domain-config-required"))}function rf(e){if(!He())return vr(new A("operation-not-supported-in-this-environment"));var f=Sc(e).then(function(){return e.b.qa()}).then(function(F){return F?na(F):null});return So(e,f)}function sf(e,f){ds(e)&&(function Ff(e,f){hn(e.R,function(F){return F==f})}(ds(e),e.Ba),Ms(ds(e),"tokenChanged",e.ya),Ms(ds(e),"userDeleted",e.za),Ms(ds(e),"userInvalidated",e.Aa),Pf(ds(e))),f&&(f.R.push(e.Ba),Rr(f,"tokenChanged",e.ya),Rr(f,"userDeleted",e.za),Rr(f,"userInvalidated",e.Aa),0<e.A&&Gp(f)),Qi(e,"currentUser",f),f&&(f.wa(e.ka()),qd(f,e),Xd(f,e.N),ld(f,e),Uc(f.a,e.f),Qd(f,e))}function cl(e,f){var F=null,_e=null;return So(e,f.then(function(lt){return F=_l(lt),_e=hh(lt),function bp(e,f){var F={};return F.apiKey=cr(e).options.apiKey,F.authDomain=cr(e).options.authDomain,F.appName=cr(e).name,e.f&&(F.emulatorConfig=e.f),e.$.then(function(){return function zp(e,f,F,_e){var lt=new ac(e,f);return F&&(lt.ha=F),_e&&Xd(lt,_e),lt.reload().then(function(){return lt})}(F,f,e.G,e.Ga())}).then(function(_e){return ds(e)&&_e.uid==ds(e).uid?(eh(ds(e),_e),e.da(_e)):(sf(e,_e),Th(_e),e.da(_e))}).then(function(){fd(e)})}(e,lt)},function(lt){var Vt=null;throw lt&&"auth/multi-factor-auth-required"===lt.code&&(Vt=If(lt.w(),e,V(e.jc,e))),Vt||lt}).then(function(){return na({user:ds(e),credential:F,additionalUserInfo:_e,operationType:"signIn"})}))}function cr(e){return e.app}function ds(e){return e.currentUser}function Uf(e){return ds(e)&&ds(e)._lat||null}function fd(e){if(e.ba){for(var f=0;f<e.u.length;f++)e.u[f]&&e.u[f](Uf(e));if(e.X!==e.getUid()&&e.P.length)for(e.X=e.getUid(),f=0;f<e.P.length;f++)e.P[f]&&e.P[f](Uf(e))}}function So(e,f){return e.R.push(f),f.na(function(){cn(e.R,f)}),f}function ul(){}function os(){this.a={},this.b=1e12}Ih.prototype.wb=function(e){var f=null,F=this;return function Ag(e){var f=new A("invalid-persistence-type"),F=new A("unsupported-persistence-type");e:{for(_e in Ku)if(Ku[_e]==e){var _e=!0;break e}_e=!1}if(!_e||"string"!=typeof e)throw f;switch(wn()){case"ReactNative":if("session"===e)throw F;break;case"Node":if("none"!==e)throw F;break;case"Worker":if("session"===e||!Ef()&&"none"!==e)throw F;break;default:if(!st()&&"none"!==e)throw F}}(e),za(this,function(){return e!=F.c.D?F.b.get(F.c,F.a).then(function(_e){return f=_e,$c(F,e)}).then(function(){if(F.c=ll(e),f)return F.b.set(F.c,f,F.a)}):Ui()})},M(el,Fi),M(yp,ti),M(hd,ti),M(dd,ti),(_=el.prototype).wb=function(e){return So(this,e=this.l.wb(e))},_.wa=function(e){this.aa===e||this.m||(this.aa=e,_f(this.a,this.aa),this.dispatchEvent(new yp(this.ka())))},_.ka=function(){return this.aa},_.ed=function(){var e=$.navigator;this.wa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},_.fd=function(e){if(!this.f){if(!/^https?:\/\//.test(e))throw new A("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function nf(){ri("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),$.document&&Er().then(function(){var e=$.document.createElement("div");e.innerText="Running in emulator mode. Do not use with production credentials.",e.style.position="fixed",e.style.width="100%",e.style.backgroundColor="#ffffff",e.style.border=".1em solid #000000",e.style.color="#ff0000",e.style.bottom="0px",e.style.left="0px",e.style.margin="0px",e.style.zIndex=1e4,e.style.textAlign="center",e.classList.add("firebase-emulator-warning"),$.document.body.appendChild(e)})})(),this.f={url:e},this.settings.hb=!0,Uc(this.a,this.f),this.dispatchEvent(new hd(this.f))}},_.Fc=function(e){this.N.push(e),gu(this.a,s.SDK_VERSION?Fr(s.SDK_VERSION,this.N):null),this.dispatchEvent(new dd(this.N))},_.Ga=function(){return ln(this.N)},_.xb=function(e){this.W===e||this.m||(this.W=e,this.a.b=this.W)},_.S=function(){return this.W},_.toJSON=function(){return{apiKey:cr(this).options.apiKey,authDomain:cr(this).options.authDomain,appName:cr(this).name,currentUser:ds(this)&&ds(this).w()}},_.Eb=function(e,f){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==f&&!!this.g;default:return!1}},_.ma=function(e,f,F,_e){"signInViaPopup"==e&&this.h==_e&&(F&&this.O?this.O(F):f&&!F&&this.g&&this.g(f),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},_.Fa=function(e,f){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.h==f&&this.g?V(this.hc,this):null},_.hc=function(e,f,F,_e){var lt=this,Vt={requestUri:e,postBody:_e,sessionId:f,tenantId:F};return this.c&&(this.c.cancel(),this.c=null),lt.$.then(function(){return cl(lt,vu(lt.a,Vt))})},_.Wc=function(e){if(!He())return vr(new A("operation-not-supported-in-this-environment"));var f=this,F=ya(e.providerId),_e=ft(),lt=null;(!v()||ct())&&cr(this).options.authDomain&&e.isOAuthProvider&&(lt=uo(cr(this).options.authDomain,cr(this).options.apiKey,cr(this).name,"signInViaPopup",e,null,_e,s.SDK_VERSION||null,null,null,this.S(),this.f));var Vt=Hi(lt,F&&F.ua,F&&F.ta);return So(this,F=Sc(this).then(function(on){return Hc(on,Vt,"signInViaPopup",e,_e,!!lt,f.S())}).then(function(){return new fr(function(on,Pn){f.ma("signInViaPopup",null,new A("cancelled-popup-request"),f.h),f.g=on,f.O=Pn,f.h=_e,f.c=Gc(f.b,f,"signInViaPopup",Vt,_e)})}).then(function(on){return Vt&&qn(Vt),on?na(on):null}).s(function(on){throw Vt&&qn(Vt),on}))},_.Xc=function(e){if(!He())return vr(new A("operation-not-supported-in-this-environment"));var f=this,F=Sc(this).then(function(){return function $p(e){return za(e,function(){return e.b.set(Nf,e.c.D,e.a)})}(f.l)}).then(function(){return ho(f.b,"signInViaRedirect",e,void 0,f.S())});return So(this,F)},_.qa=function(){var e=this;return rf(this).then(function(f){return e.b&&xf(e.b.b),f}).s(function(f){throw e.b&&xf(e.b.b),f})},_.cd=function(e){if(!e)return vr(new A("null-user"));if(this.W!=e.tenantId)return vr(new A("tenant-id-mismatch"));var f=this,F={};F.apiKey=cr(this).options.apiKey,F.authDomain=cr(this).options.authDomain,F.appName=cr(this).name;var _e=function ef(e,f,F,_e){var lt=e.b,Vt={};return Vt[Ua]=lt.b&<.b.toString(),Vt.refreshToken=lt.a,f=new ac(f||{apiKey:e.l,authDomain:e.o,appName:e.m},Vt),F&&(f.ha=F),_e&&Xd(f,_e),eh(f,e),f}(e,F,f.G,f.Ga());return So(this,this.i.then(function(){if(cr(f).options.apiKey!=e.l)return _e.reload()}).then(function(){return ds(f)&&e.uid==ds(f).uid?(eh(ds(f),e),f.da(e)):(sf(f,_e),Th(_e),f.da(_e))}).then(function(){fd(f)}))},_.zb=function(){var e=this;return So(this,this.i.then(function(){return e.b&&xf(e.b.b),ds(e)?(sf(e,null),vp(e.l).then(function(){fd(e)})):Ui()}))},_.Yc=function(){var e=this;return qp(this.l,cr(this).options.authDomain).then(function(f){if(!e.m){var F;if(F=ds(e)&&f){F=ds(e).uid;var _e=f.uid;F=null!=F&&""!==F&&null!=_e&&""!==_e&&F==_e}if(F)return eh(ds(e),f),ds(e).I();(ds(e)||f)&&(sf(e,f),f&&(Th(f),f.ha=e.G),e.b&&Sl(e.b,e),fd(e))}})},_.da=function(e){return _g(this.l,e)},_.kc=function(){fd(this),this.da(ds(this))},_.vc=function(){this.zb()},_.wc=function(){this.zb()},_.jc=function(e){var f=this;return this.i.then(function(){return cl(f,Ui(e))})},_.yc=function(e){var f=this;this.addAuthTokenListener(function(){e.next(ds(f))})},_.zc=function(e){var f=this;!function jf(e,f){e.P.push(f),So(e,e.i.then(function(){!e.m&&jt(e.P,f)&&e.X!==e.getUid()&&(e.X=e.getUid(),f(Uf(e)))}))}(this,function(){e.next(ds(f))})},_.Hc=function(e,f,F){var _e=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof e?e(ds(_e)):"function"==typeof e.next&&e.next(ds(_e))}),this.ac(e,f,F)},_.Gc=function(e,f,F){var _e=this;return this.ba&&Promise.resolve().then(function(){_e.X=_e.getUid(),"function"==typeof e?e(ds(_e)):"function"==typeof e.next&&e.next(ds(_e))}),this.bc(e,f,F)},_.mc=function(e){var f=this;return So(this,this.i.then(function(){return ds(f)?ds(f).I(e).then(function(_e){return{accessToken:_e}}):null}))},_.Sc=function(e){var f=this;return this.i.then(function(){return cl(f,ss(f.a,kr,{token:e}))}).then(function(F){var _e=F.user;return Ju(_e,"isAnonymous",!1),f.da(_e),F})},_.Tc=function(e,f){var F=this;return this.i.then(function(){return cl(F,ss(F.a,Gr,{email:e,password:f}))})},_.dc=function(e,f){var F=this;return this.i.then(function(){return cl(F,ss(F.a,bu,{email:e,password:f}))})},_.Za=function(e){var f=this;return this.i.then(function(){return cl(f,e.ja(f.a))})},_.Rc=function(e){return _s("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(e)},_.yb=function(){var e=this;return this.i.then(function(){var f=ds(e);if(f&&f.isAnonymous){var F=na({providerId:null,isNewUser:!1});return na({user:f,credential:null,additionalUserInfo:F,operationType:"signIn"})}return cl(e,e.a.yb()).then(function(_e){var lt=_e.user;return Ju(lt,"isAnonymous",!0),e.da(lt),_e})})},_.getUid=function(){return ds(this)&&ds(this).uid||null},_.cc=function(e){this.addAuthTokenListener(e),this.A++,0<this.A&&ds(this)&&Gp(ds(this))},_.Oc=function(e){var f=this;Ge(this.u,function(F){F==e&&f.A--}),0>this.A&&(this.A=0),0==this.A&&ds(this)&&Pf(ds(this)),this.removeAuthTokenListener(e)},_.addAuthTokenListener=function(e){var f=this;this.u.push(e),So(this,this.i.then(function(){f.m||jt(f.u,e)&&e(Uf(f))}))},_.removeAuthTokenListener=function(e){hn(this.u,function(f){return f==e})},_.delete=function(){this.m=!0;for(var e=0;e<this.R.length;e++)this.R[e].cancel("app-deleted");return this.R=[],this.l&&(e=this.l).b.removeListener(ll("local"),e.a,this.pa),this.b&&(Vl(this.b,this),xf(this.b.b)),Promise.resolve()},_.gc=function(e){return So(this,function vf(e,f){return ss(e,Za,{identifier:f,continueUri:g()?H():"http://localhost"}).then(function(F){return F.signinMethods||[]})}(this.a,e))},_.Ac=function(e){return!!Ou(e)},_.vb=function(e,f){var F=this;return So(this,Ui().then(function(){var _e=new Ic(f);if(!_e.c)throw new A("argument-error",xu+" must be true when sending sign in link to email");return pl(_e)}
1).then(function(_e){return F.a.vb(e,_e)}).then(function(){}))},_.hd=function(e){return this.Qa(e).then(function(f){return f.data.email})},_.mb=function(e,f){return So(this,this.a.mb(e,f).then(function(){}))},_.Qa=function(e){return So(this,this.a.Qa(e).then(function(f){return new Rh(f)}))},_.ib=function(e){return So(this,this.a.ib(e).then(function(){}))},_.ub=function(e,f){var F=this;return So(this,Ui().then(function(){return void 0===f||zn(f)?{}:pl(new Ic(f))}).then(function(_e){return F.a.ub(e,_e)}).then(function(){}))},_.Vc=function(e,f){return So(this,Hs(this,e,f,V(this.Za,this)))},_.Uc=function(e,f){var F=this;return So(this,Ui().then(function(){var _e=f||H(),lt=yd(e,_e);if(!(_e=Ou(_e)))throw new A("argument-error","Invalid email link!");if(_e.tenantId!==F.S())throw new A("tenant-id-mismatch");return F.Za(lt)}))},ul.prototype.render=function(){},ul.prototype.reset=function(){},ul.prototype.getResponse=function(){},ul.prototype.execute=function(){};var yg=null;function Vf(e,f){return(f=wp(f))&&e.a[f]||null}function wp(e){return(e=void 0===e?1e12:e)?e.toString():null}function Hf(e,f){this.g=!1,this.c=f,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=fs(e);var F=this;this.i=function(){F.execute()},this.h?this.execute():Rr(this.f,"click",this.i)}function gi(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Gs(){}function Ep(){}os.prototype.render=function(e,f){return this.a[this.b.toString()]=new Hf(e,f),this.b++},os.prototype.reset=function(e){var f=Vf(this,e);e=wp(e),f&&e&&(f.delete(),delete this.a[e])},os.prototype.getResponse=function(e){return(e=Vf(this,e))?e.getResponse():null},os.prototype.execute=function(e){(e=Vf(this,e))&&e.execute()},Hf.prototype.getResponse=function(){return gi(this),this.b},Hf.prototype.execute=function(){gi(this);var e=this;this.a||(this.a=setTimeout(function(){e.b=function bi(){for(var e=50,f=[];0<e;)f.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return f.join("")}();var f=e.c.callback,F=e.c["expired-callback"];if(f)try{f(e.b)}catch(_e){}e.a=setTimeout(function(){if(e.a=null,e.b=null,F)try{F()}catch(_e){}e.h&&e.execute()},6e4)},500))},Hf.prototype.delete=function(){gi(this),this.g=!0,clearTimeout(this.a),this.a=null,Ms(this.f,"click",this.i)},Qi(Gs,"FACTOR_ID","phone"),Ep.prototype.g=function(){return yg||(yg=new os),Ui(yg)},Ep.prototype.c=function(){};var Gf=null;function Qp(){this.b=$.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Cp=new Mt(Ue,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),lf=new tn(3e4,6e4);Qp.prototype.g=function(e){var f=this;return new fr(function(F,_e){var lt=setTimeout(function(){_e(new A("network-request-failed"))},lf.get());!$.grecaptcha||e!==f.f&&!f.b?($[f.a]=function(){if($.grecaptcha){f.f=e;var on=$.grecaptcha.render;$.grecaptcha.render=function(Pn,Ei){return Pn=on(Pn,Ei),f.b++,Pn},clearTimeout(lt),F($.grecaptcha)}else clearTimeout(lt),_e(new A("internal-error"));delete $[f.a]},Ui(Jl(Gt(Cp,{onload:f.a,hl:e||""}))).s(function(){clearTimeout(lt),_e(new A("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(lt),F($.grecaptcha))})},Qp.prototype.c=function(){this.b--};var Xp=null;function zf(e,f,F,_e,lt,Vt,on){if(Qi(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=f,this.g=null,on?(Gf||(Gf=new Ep),on=Gf):(Xp||(Xp=new Qp),on=Xp),this.v=on,this.a=F||{theme:"light",type:"image"},this.h=[],this.a[pd])throw new A("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[gd],!$.document)throw new A("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!fs(f)||!this.i&&fs(f).hasChildNodes())throw new A("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new ua(e,Vt||null,lt||null),this.u=_e||function(){return null};var Pn=this;this.l=[];var Ei=this.a[nh];this.a[nh]=function(hs){if(kh(Pn,hs),"function"==typeof Ei)Ei(hs);else if("string"==typeof Ei){var ko=Cr(Ei,$);"function"==typeof ko&&ko(hs)}};var ki=this.a[Su];this.a[Su]=function(){if(kh(Pn,null),"function"==typeof ki)ki();else if("string"==typeof ki){var hs=Cr(ki,$);"function"==typeof hs&&hs()}}}var nh="callback",Su="expired-callback",pd="sitekey",gd="size";function kh(e,f){for(var F=0;F<e.l.length;F++)try{e.l[F](f)}catch(_e){}}function ih(e,f){return e.h.push(f),f.na(function(){cn(e.h,f)}
1),f}function Dp(e){if(e.A)throw new A("internal-error","RecaptchaVerifier instance has been destroyed.")}function cf(e,f,F){var _e=!1;try{this.b=F||s.app()}catch(on){throw new A("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new A("invalid-api-key");F=this.b.options.apiKey;var lt=this,Vt=null;try{Vt=this.b.auth().Ga()}catch(on){}try{_e=this.b.auth().settings.appVerificationDisabledForTesting}catch(on){}Vt=s.SDK_VERSION?Fr(s.SDK_VERSION,Vt):null,zf.call(this,F,e,f,function(){try{var on=lt.b.auth().ka()}catch(Pn){on=null}return on},Vt,ge(Fe),_e)}function Wf(e,f,F,_e){e:{F=Array.prototype.slice.call(F);for(var lt=0,Vt=!1,on=0;on<f.length;on++)if(f[on].optional)Vt=!0;else{if(Vt)throw new A("internal-error","Argument validator encountered a required argument after an optional argument.");lt++}if(Vt=f.length,F.length<lt||Vt<F.length)_e="Expected "+(lt==Vt?1==lt?"1 argument":lt+" arguments":lt+"-"+Vt+" arguments")+" but got "+F.length+".";else{for(lt=0;lt<F.length;lt++)if(Vt=f[lt].optional&&void 0===F[lt],!f[lt].K(F[lt])&&!Vt){if(f=f[lt],0>lt||lt>=Ac.length)throw new A("internal-error","Argument validator received an unsupported number of arguments.");F=Ac[lt],_e=(_e?"":F+" argument ")+(f.name?'"'+f.name+'" ':"")+"must be "+f.J+".";break e}_e=null}}if(_e)throw new A("argument-error",e+" failed: "+_e)}(_=zf.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=ih(this,Ui().then(function(){if(g()&&!zt())return Er();throw new A("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.v.g(e.u())}).then(function(f){return e.g=f,ss(e.o,ot,{})}).then(function(f){e.a[pd]=f.recaptchaSiteKey}).s(function(f){throw e.f=null,f}))},_.render=function(){Dp(this);var e=this;return ih(this,this.Ia().then(function(){if(null===e.c){var f=e.m;if(!e.i){var F=fs(f);f=function go(e,f,F){var _e=arguments,lt=document,Vt=String(_e[0]),on=_e[1];if(!qs&&on&&(on.name||on.type)){if(Vt=["<",Vt],on.name&&Vt.push(' name="',rt(on.name),'"'),on.type){Vt.push(' type="',rt(on.type),'"');var Pn={};Yt(Pn,on),delete Pn.type,on=Pn}Vt.push(">"),Vt=Vt.join("")}return Vt=dr(lt,Vt),on&&("string"==typeof on?Vt.className=on:Array.isArray(on)?Vt.className=on.join(" "):or(Vt,on)),2<_e.length&&Ds(lt,Vt,_e),Vt}("DIV"),F.appendChild(f)}e.c=e.g.render(f,e.a)}return e.c}))},_.verify=function(){Dp(this);var e=this;return ih(this,this.render().then(function(f){return new fr(function(F){var _e=e.g.getResponse(f);if(_e)F(_e);else{var lt=function(Vt){Vt&&(function Zp(e,f){hn(e.l,function(F){return F==f})}(e,lt),F(Vt))};e.l.push(lt),e.i&&e.g.execute(e.c)}})}))},_.reset=function(){Dp(this),null!==this.c&&this.g.reset(this.c)},_.clear=function(){Dp(this),this.A=!0,this.v.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=fs(this.m);for(var f;f=e.firstChild;)e.removeChild(f)}},M(cf,zf);var Ac="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function gr(e,f){return{name:e||"",J:"a valid string",optional:!!f,K:function(F){return"string"==typeof F}}}function xa(e,f){return{name:e||"",J:"a boolean",optional:!!f,K:function(F){return"boolean"==typeof F}}}function $o(e,f){return{name:e||"",J:"a valid object",optional:!!f,K:Q}}function rh(e,f){return{name:e||"",J:"a function",optional:!!f,K:function(F){return"function"==typeof F}}}function ha(e,f){return{name:e||"",J:"null",optional:!!f,K:function(F){return null===F}}}function ta(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(f){return!!f&&!(!f.ja||e&&f.providerId!==e)}}}function p(e,f){return Q(e)&&"string"==typeof e.type&&e.type===f&&"function"==typeof e.Ha}function x(e){return Q(e)&&"string"==typeof e.uid}function Le(e,f,F,_e){return{name:F||"",J:e.J+" or "+f.J,optional:!!_e,K:function(lt){return e.K(lt)||f.K(lt)}}}function Je(e,f){for(var F in f){var _e=f[F].name;e[_e]=di(_e,e[F],f[F].j)}}function an(e,f){for(var F in f){var _e=f[F].name;_e!==F&&Object.defineProperty(e,_e,{get:ne(function(lt){return this[lt]},F),set:ne(function(lt,Vt,on,Pn){Wf(lt,[on],[Pn],!0),this[Vt]=Pn},_e,F,f[F].jb),enumerable:!0})}}function Tn(e,f,F,_e){e[f]=di(f,F,_e)}function di(e,f,F){function _e(){var on=Array.prototype.slice.call(arguments);return Wf(lt,F,on),f.apply(this,on)}if(!F)return f;var Vt,lt=function Bi(e){return(e=e.split("."))[e.length-1]}(e);for(Vt in f)_e[Vt]=f[Vt];for(Vt in f.prototype)_e.prototype[Vt]=f.prototype[Vt];return _e}Je(el.prototype,{ib:{name:"applyActionCode",j:[gr("code")]},Qa:{name:"checkActionCode",j:[gr("code")]},mb:{name:"confirmPasswordReset",j:[gr("code"),gr("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[gr("email"),gr("password")]}
1,gc:{name:"fetchSignInMethodsForEmail",j:[gr("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[gr("emailLink")]},Gc:{name:"onAuthStateChanged",j:[Le($o(),rh(),"nextOrObserver"),rh("opt_error",!0),rh("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[Le($o(),rh(),"nextOrObserver"),rh("opt_error",!0),rh("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[gr("email"),Le($o("opt_actionCodeSettings",!0),ha(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[gr("email"),$o("actionCodeSettings")]},wb:{name:"setPersistence",j:[gr("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[ta()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[ta()]},Sc:{name:"signInWithCustomToken",j:[gr("token")]},Tc:{name:"signInWithEmailAndPassword",j:[gr("email"),gr("password")]},Uc:{name:"signInWithEmailLink",j:[gr("email"),gr("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[gr("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]},Wc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Xc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},cd:{name:"updateCurrentUser",j:[Le({name:"user",J:"an instance of Firebase User",optional:!1,K:function(f){return!!(f&&f instanceof ac)}},ha(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[gr(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[gr("url")]},hd:{name:"verifyPasswordResetCode",j:[gr("code")]}}),an(el.prototype,{lc:{name:"languageCode",jb:Le(gr(),ha(),"languageCode")},ti:{name:"tenantId",jb:Le(gr(),ha(),"tenantId")}}),(el.Persistence=Ku).LOCAL="local",el.Persistence.SESSION="session",el.Persistence.NONE="none",Je(ac.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[xa("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[xa("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[ta()]},pb:{name:"linkWithCredential",j:[ta()]},Cc:{name:"linkWithPhoneNumber",j:[gr("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]},Dc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Ec:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[ta()]},sb:{name:"reauthenticateWithCredential",j:[ta()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[gr("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]},Mc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[Le($o("opt_actionCodeSettings",!0),ha(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[gr(null,!0)]},bd:{name:"unlink",j:[gr("provider")]},Ab:{name:"updateEmail",j:[gr("email")]},Bb:{name:"updatePassword",j:[gr("password")]},dd:{name:"updatePhoneNumber",j:[ta("phone")]},Cb:{name:"updateProfile",j:[$o("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[gr("email"),Le($o("opt_actionCodeSettings",!0),ha(null,!0),"opt_actionCodeSettings",!0)]}}),Je(os.prototype,{execute:{name:"execute"},render:{name:"render"}
1,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Je(ul.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Je(fr.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),an(Up.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:xa("appVerificationDisabledForTesting")}}),Je(Ga.prototype,{confirm:{name:"confirm",j:[gr("verificationCode")]}}),Tn(uc,"fromJSON",function(e){e="string"==typeof e?JSON.parse(e):e;for(var f,F=[tu,Fl,dh,Ol],_e=0;_e<F.length;_e++)if(f=F[_e](e))return f;return null},[Le(gr(),$o(),"json")]),Tn(wa,"credential",function(e,f){return new pc(e,f)},[gr("email"),gr("password")]),Je(pc.prototype,{w:{name:"toJSON",j:[gr(null,!0)]}}),Je(Rl.prototype,{Ca:{name:"addScope",j:[gr("scope")]},Ka:{name:"setCustomParameters",j:[$o("customOAuthParameters")]}}),Tn(Rl,"credential",fc,[Le(gr(),$o(),"token")]),Tn(wa,"credentialWithLink",yd,[gr("email"),gr("emailLink")]),Je(La.prototype,{Ca:{name:"addScope",j:[gr("scope")]},Ka:{name:"setCustomParameters",j:[$o("customOAuthParameters")]}}),Tn(La,"credential",vd,[Le(gr(),$o(),"token")]),Je(Iu.prototype,{Ca:{name:"addScope",j:[gr("scope")]},Ka:{name:"setCustomParameters",j:[$o("customOAuthParameters")]}}),Tn(Iu,"credential",Pl,[Le(gr(),Le($o(),ha()),"idToken"),Le(gr(),ha(),"accessToken",!0)]),Je($a.prototype,{Ka:{name:"setCustomParameters",j:[$o("customOAuthParameters")]}}),Tn($a,"credential",ku,[Le(gr(),$o(),"token"),gr("secret",!0)]),Je(ba.prototype,{Ca:{name:"addScope",j:[gr("scope")]},credential:{name:"credential",j:[Le(gr(),Le($o(),ha()),"optionsOrIdToken"),Le(gr(),ha(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[$o("customOAuthParameters")]}}),Je(ga.prototype,{w:{name:"toJSON",j:[gr(null,!0)]}}),Je(hc.prototype,{w:{name:"toJSON",j:[gr(null,!0)]}}),Tn(ml,"credential",la,[gr("verificationId"),gr("verificationCode")]),Je(ml.prototype,{eb:{name:"verifyPhoneNumber",j:[Le(gr(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(F){return!!F&&(F.session&&F.phoneNumber?p(F.session,eu)&&"string"==typeof F.phoneNumber:F.session&&F.multiFactorHint?p(F.session,pa)&&x(F.multiFactorHint):F.session&&F.multiFactorUid?p(F.session,pa)&&"string"==typeof F.multiFactorUid:!!F.phoneNumber&&"string"==typeof F.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]}}),Je(gl.prototype,{w:{name:"toJSON",j:[gr(null,!0)]}}),Je(A.prototype,{toJSON:{name:"toJSON",j:[gr(null,!0)]}}),Je(jo.prototype,{toJSON:{name:"toJSON",j:[gr(null,!0)]}}),Je(iu.prototype,{toJSON:{name:"toJSON",j:[gr(null,!0)]}}),Je(rd.prototype,{toJSON:{name:"toJSON",j:[gr(null,!0)]}}),Je(zd.prototype,{Qc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}}]}}),Je(sd.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}},gr("displayName",!0)]},ad:{name:"unenroll",j:[Le({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:x},gr(),"multiFactorInfoIdentifier")]}}),Je(cf.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Tn(Ks,"parseLink",ah,[gr("link")]),Tn(Gs,"assertion",function(e){return new cp(e)},[ta("phone")]),function(){if(void 0===s||!s.INTERNAL||!s.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Ml,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:fl,VERIFY_AND_CHANGE_EMAIL:Xc,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:el,AuthCredential:uc,Error:A};Tn(e,"EmailAuthProvider",wa,[]),Tn(e,"FacebookAuthProvider",Rl,[]),Tn(e,"GithubAuthProvider",La,[]),Tn(e,"GoogleAuthProvider",Iu,[]),Tn(e,"TwitterAuthProvider",$a,[]),Tn(e,"OAuthProvider",ba,[gr("providerId")]),Tn(e,"SAMLAuthProvider",Fc,[gr("providerId")]),Tn(e,"PhoneAuthProvider",ml,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof el)}}]),Tn(e,"RecaptchaVerifier",cf,[Le(gr(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),$o("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof s.app.App)}}]),Tn(e,"ActionCodeURL",Ks,[]),Tn(e,"PhoneMultiFactorGenerator",Gs,[]),s.INTERNAL.registerComponent({name:"auth",instanceFactory:function(f){return new el(f=f.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),s.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(f){return{getUid:V((f=f.getProvider("auth").getImmediate()).getUid,f),getToken:V(f.mc,f),addAuthTokenListener:V(f.cc,f),removeAuthTokenListener:V(f.Oc,f)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),s.registerVersion("@firebase/auth","0.15.0"),s.INTERNAL.extendNamespace({User:ac})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},6355:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var s=S(7754),_=S(1270),y=function(){function G($,te,le){this.name=$,this.instanceFactory=te,this.type=le,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return G.prototype.setInstantiationMode=function($){return this.instantiationMode=$,this},G.prototype.setMultipleInstances=function($){return this.multipleInstances=$,this},G.prototype.setServiceProps=function($){return this.serviceProps=$,this},G}(),j="[DEFAULT]",D=function(){function G($,te){this.name=$,this.container=te,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return G.prototype.get=function($){void 0===$&&($=j);var te=this.normalizeInstanceIdentifier($);if(!this.instancesDeferred.has(te)){var le=new _.Deferred;this.instancesDeferred.set(te,le);try{var J=this.getOrInitializeService(te);J&&le.resolve(J)}catch(Me){}}return this.instancesDeferred.get(te).promise},G.prototype.getImmediate=function($){var te=s.__assign({identifier:j,optional:!1}
1,$),J=te.optional,Me=this.normalizeInstanceIdentifier(te.identifier);try{var Re=this.getOrInitializeService(Me);if(!Re){if(J)return null;throw Error("Service "+this.name+" is not available")}return Re}catch(me){if(J)return null;throw me}},G.prototype.getComponent=function(){return this.component},G.prototype.setComponent=function($){var te,le;if($.name!==this.name)throw Error("Mismatching Component "+$.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=$,function ce(G){return"EAGER"===G.instantiationMode}($))try{this.getOrInitializeService(j)}catch(Y){}try{for(var J=s.__values(this.instancesDeferred.entries()),Me=J.next();!Me.done;Me=J.next()){var Re=s.__read(Me.value,2),Q=Re[1],P=this.normalizeInstanceIdentifier(Re[0]);try{var N=this.getOrInitializeService(P);Q.resolve(N)}catch(Y){}}}catch(Y){te={error:Y}}finally{try{Me&&!Me.done&&(le=J.return)&&le.call(J)}finally{if(te)throw te.error}}},G.prototype.clearInstance=function($){void 0===$&&($=j),this.instancesDeferred.delete($),this.instances.delete($)},G.prototype.delete=function(){return s.__awaiter(this,void 0,void 0,function(){var $;return s.__generator(this,function(te){switch(te.label){case 0:return $=Array.from(this.instances.values()),[4,Promise.all(s.__spread($.filter(function(le){return"INTERNAL"in le}).map(function(le){return le.INTERNAL.delete()}),$.filter(function(le){return"_delete"in le}).map(function(le){return le._delete()})))];case 1:return te.sent(),[2]}})})},G.prototype.isComponentSet=function(){return null!=this.component},G.prototype.getOrInitializeService=function($){var te=this.instances.get($);return!te&&this.component&&(te=this.component.instanceFactory(this.container,function L(G){return G===j?void 0:G}($)),this.instances.set($,te)),te||null},G.prototype.normalizeInstanceIdentifier=function($){return this.component?this.component.multipleInstances?$:j:$},G}(),W=function(){function G($){this.name=$,this.providers=new Map}return G.prototype.addComponent=function($){var te=this.getProvider($.name);if(te.isComponentSet())throw new Error("Component "+$.name+" has already been registered with "+this.name);te.setComponent($)},G.prototype.addOrOverwriteComponent=function($){this.getProvider($.name).isComponentSet()&&this.providers.delete($.name),this.addComponent($)},G.prototype.getProvider=function($){if(this.providers.has($))return this.providers.get($);var te=new D($,this);return this.providers.set($,te),te},G.prototype.getProviders=function(){return Array.from(this.providers.values())},G}();Z.Component=y,Z.ComponentContainer=W,Z.Provider=D},1925:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var s=S(9278),_=S(4255),y=S(1270),j=S(4003),D=S(6355);function L(g){return g&&"object"==typeof g&&"default"in g?g:{default:g}}var g,ce=L(s),W=function(){function g(u){this.domStorage_=u,this.prefix_="firebase:"}return g.prototype.set=function(u,v){null==v?this.domStorage_.removeItem(this.prefixedName_(u)):this.domStorage_.setItem(this.prefixedName_(u),y.stringify(v))},g.prototype.get=function(u){var v=this.domStorage_.getItem(this.prefixedName_(u));return null==v?null:y.jsonEval(v)},g.prototype.remove=function(u){this.domStorage_.removeItem(this.prefixedName_(u))},g.prototype.prefixedName_=function(u){return this.prefix_+u},g.prototype.toString=function(){return this.domStorage_.toString()},g}(),G=function(){function g(){this.cache_={},this.isInMemoryStorage=!0}return g.prototype.set=function(u,v){null==v?delete this.cache_[u]:this.cache_[u]=v},g.prototype.get=function(u){return y.contains(this.cache_,u)?this.cache_[u]:null},g.prototype.remove=function(u){delete this.cache_[u]},g}(),$=function(g){try{if("undefined"!=typeof window&&void 0!==window[g]){var u=window[g];return u.setItem("firebase:sentinel","cache"),u.removeItem("firebase:sentinel"),new W(u)}}catch(v){}return new G},te=$("localStorage"),le=$("sessionStorage"),J=new j.Logger("@firebase/database"),Me=(g=1,function(){return g++}),Re=function(g){var u=y.stringToByteArray(g),v=new y.Sha1;v.update(u);var T=v.digest();return y.base64.encodeByteArray(T)},me=function(){for(var g=[],u=0;u<arguments.length;u++)g[u]=arguments[u];for(var v="",T=0;T<g.length;T++){var ie=g[T];Array.isArray(ie)||ie&&"object"==typeof ie&&"number"==typeof ie.length?v+=me.apply(null,ie):v+="object"==typeof ie?y.stringify(ie):ie,v+=" "}return v},Q=null,P=!0,N=function(g,u){y.assert(!u||!0===g||!1===g,"Can't turn on custom loggers persistently."),!0===g?(J.logLevel=j.LogLevel.VERBOSE,Q=J.log.bind(J),u&&le.set("logging_enabled",!0)):"function"==typeof g?Q=g:(Q=null,le.remove("logging_enabled"))},Y=function(){for(var g=[],u=0;u<arguments.length;u++)g[u]=arguments[u];if(!0===P&&(P=!1,null===Q&&!0===le.get("logging_enabled")&&N(!0)),Q){var v=me.apply(null,g);Q(v)}},de=function(g){return function(){for(var u=[],v=0;v<arguments.length;v++)u[v]=arguments[v];
1Y.apply(void 0,_.__spread([g],u))}},re=function(){for(var g=[],u=0;u<arguments.length;u++)g[u]=arguments[u];var v="FIREBASE INTERNAL ERROR: "+me.apply(void 0,_.__spread(g));J.error(v)},V=function(){for(var g=[],u=0;u<arguments.length;u++)g[u]=arguments[u];var v="FIREBASE FATAL ERROR: "+me.apply(void 0,_.__spread(g));throw J.error(v),new Error(v)},ne=function(){for(var g=[],u=0;u<arguments.length;u++)g[u]=arguments[u];var v="FIREBASE WARNING: "+me.apply(void 0,_.__spread(g));J.warn(v)},M=function(g){return"number"==typeof g&&(g!=g||g===Number.POSITIVE_INFINITY||g===Number.NEGATIVE_INFINITY)},R="[MIN_NAME]",ee="[MAX_NAME]",B=function(g,u){if(g===u)return 0;if(g===R||u===ee)return-1;if(u===R||g===ee)return 1;var v=Ce(g),T=Ce(u);return null!==v?null!==T?v-T==0?g.length-u.length:v-T:-1:null!==T?1:g<u?-1:1},K=function(g,u){return g===u?0:g<u?-1:1},ge=function(g,u){if(u&&g in u)return u[g];throw new Error("Missing required key ("+g+") in object: "+y.stringify(u))},Fe=function(g){if("object"!=typeof g||null===g)return y.stringify(g);var u=[];for(var v in g)u.push(v);u.sort();for(var T="{",ie=0;ie<u.length;ie++)0!==ie&&(T+=","),T+=y.stringify(u[ie]),T+=":",T+=Fe(g[u[ie]]);return T+"}"},he=function(g,u){var v=g.length;if(v<=u)return[g];for(var T=[],ie=0;ie<v;ie+=u)T.push(g.substring(ie,ie+u>v?v:ie+u));return T};function fe(g,u){for(var v in g)g.hasOwnProperty(v)&&u(v,g[v])}var Ae,je,xn,Ai,mi,xe,Ie=function(g){y.assert(!M(g),"Invalid JSON number");var ie,we,ft,Ut,dn,T=1023;0===g?(we=0,ft=0,ie=1/g==-1/0?1:0):(ie=g<0,(g=Math.abs(g))>=Math.pow(2,1-T)?(we=(Ut=Math.min(Math.floor(Math.log(g)/Math.LN2),T))+T,ft=Math.round(g*Math.pow(2,52-Ut)-Math.pow(2,52))):(we=0,ft=Math.round(g/Math.pow(2,-1074))));var tn=[];for(dn=52;dn;dn-=1)tn.push(ft%2?1:0),ft=Math.floor(ft/2);for(dn=11;dn;dn-=1)tn.push(we%2?1:0),we=Math.floor(we/2);tn.push(ie?1:0),tn.reverse();var Bn=tn.join(""),Kn="";for(dn=0;dn<64;dn+=8){var ri=parseInt(Bn.substr(dn,8),2).toString(16);1===ri.length&&(ri="0"+ri),Kn+=ri}return Kn.toLowerCase()},ae=new RegExp("^-?(0*)\\d{1,10}$"),Ce=function(g){if(ae.test(g)){var u=Number(g);if(u>=-2147483648&&u<=2147483647)return u}return null},Ve=function(g){try{g()}catch(u){setTimeout(function(){throw ne("Exception was thrown by user callback.",u.stack||""),u},Math.floor(0))}},ut=function(g,u){var v=setTimeout(g,u);return"object"==typeof v&&v.unref&&v.unref(),v},Ge=function(){function g(u,v){if(void 0===v){this.pieces_=u.split("/");for(var T=0,ie=0;ie<this.pieces_.length;ie++)this.pieces_[ie].length>0&&(this.pieces_[T]=this.pieces_[ie],T++);this.pieces_.length=T,this.pieceNum_=0}else this.pieces_=u,this.pieceNum_=v}return Object.defineProperty(g,"Empty",{get:function(){return new g("")},enumerable:!1,configurable:!0}),g.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},g.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},g.prototype.popFront=function(){var u=this.pieceNum_;return u<this.pieces_.length&&u++,new g(this.pieces_,u)},g.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},g.prototype.toString=function(){for(var u="",v=this.pieceNum_;v<this.pieces_.length;v++)""!==this.pieces_[v]&&(u+="/"+this.pieces_[v]);return u||"/"},g.prototype.toUrlEncodedString=function(){for(var u="",v=this.pieceNum_;v<this.pieces_.length;v++)""!==this.pieces_[v]&&(u+="/"+encodeURIComponent(String(this.pieces_[v])));return u||"/"},g.prototype.slice=function(u){return void 0===u&&(u=0),this.pieces_.slice(this.pieceNum_+u)},g.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var u=[],v=this.pieceNum_;v<this.pieces_.length-1;v++)u.push(this.pieces_[v]);return new g(u,0)},g.prototype.child=function(u){for(var v=[],T=this.pieceNum_;T<this.pieces_.length;T++)v.push(this.pieces_[T]);if(u instanceof g)for(T=u.pieceNum_;T<u.pieces_.length;T++)v.push(u.pieces_[T]);else{var ie=u.split("/");for(T=0;T<ie.length;T++)ie[T].length>0&&v.push(ie[T])}return new g(v,0)},g.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},g.relativePath=function(u,v){var T=u.getFront(),ie=v.getFront();if(null===T)return v;if(T===ie)return g.relativePath(u.popFront(),v.popFront());
1throw new Error("INTERNAL ERROR: innerPath ("+v+") is not within outerPath ("+u+")")},g.comparePaths=function(u,v){for(var T=u.slice(),ie=v.slice(),we=0;we<T.length&&we<ie.length;we++){var ft=B(T[we],ie[we]);if(0!==ft)return ft}return T.length===ie.length?0:T.length<ie.length?-1:1},g.prototype.equals=function(u){if(this.getLength()!==u.getLength())return!1;for(var v=this.pieceNum_,T=u.pieceNum_;v<=this.pieces_.length;v++,T++)if(this.pieces_[v]!==u.pieces_[T])return!1;return!0},g.prototype.contains=function(u){var v=this.pieceNum_,T=u.pieceNum_;if(this.getLength()>u.getLength())return!1;for(;v<this.pieces_.length;){if(this.pieces_[v]!==u.pieces_[T])return!1;++v,++T}return!0},g}(),wt=function(){function g(u,v){this.errorPrefix_=v,this.parts_=u.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var T=0;T<this.parts_.length;T++)this.byteLength_+=y.stringLength(this.parts_[T]);this.checkValid_()}return Object.defineProperty(g,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!1,configurable:!0}),Object.defineProperty(g,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!1,configurable:!0}),g.prototype.push=function(u){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(u),this.byteLength_+=y.stringLength(u),this.checkValid_()},g.prototype.pop=function(){var u=this.parts_.pop();this.byteLength_-=y.stringLength(u),this.parts_.length>0&&(this.byteLength_-=1)},g.prototype.checkValid_=function(){if(this.byteLength_>g.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+g.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>g.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+g.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},g.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},g}(),cn="firebaseio.com",ln="websocket",Jt="long_polling",Xe=function(){function g(u,v,T,ie,we,ft,Ut){void 0===we&&(we=!1),void 0===ft&&(ft=""),void 0===Ut&&(Ut=!1),this.secure=v,this.namespace=T,this.webSocketOnly=ie,this.nodeAdmin=we,this.persistenceKey=ft,this.includeNamespaceInQueryParams=Ut,this.host=u.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=te.get("host:"+u)||this.host}return g.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},g.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},g.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},g.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},g.prototype.updateHost=function(u){u!==this.internalHost&&(this.internalHost=u,this.isCacheableHost()&&te.set("host:"+this.host,this.internalHost))},g.prototype.connectionURL=function(u,v){var T;if(y.assert("string"==typeof u,"typeof type must == string"),y.assert("object"==typeof v,"typeof params must == object"),u===ln)T=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(u!==Jt)throw new Error("Unknown connection type: "+u);T=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(v.ns=this.namespace);var ie=[];return fe(v,function(we,ft){ie.push(we+"="+ft)}),T+ie.join("&")},g.prototype.toString=function(){var u=this.toURLString();return this.persistenceKey&&(u+="<"+this.persistenceKey+">"),u},g.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},g}(),tt=function(g,u){var v=bt(g),T=v.namespace;return"firebase.com"===v.domain&&V(v.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!T||"undefined"===T)&&"localhost"!==v.domain&&V("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),v.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&ne("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new Xe(v.host,v.secure,T,u,"ws"===v.scheme||"wss"===v.scheme,"",T!==v.subdomain),path:new Ge(v.pathString)}}
1,bt=function(g){var u="",v="",T="",ie="",we="",ft=!0,Ut="https",dn=443;if("string"==typeof g){var tn=g.indexOf("//");tn>=0&&(Ut=g.substring(0,tn-1),g=g.substring(tn+2));var Bn=g.indexOf("/");-1===Bn&&(Bn=g.length);var Kn=g.indexOf("?");-1===Kn&&(Kn=g.length),u=g.substring(0,Math.min(Bn,Kn)),Bn<Kn&&(ie=function qe(g){for(var u="",v=g.split("/"),T=0;T<v.length;T++)if(v[T].length>0){var ie=v[T];try{ie=decodeURIComponent(ie.replace(/\+/g," "))}catch(we){}u+="/"+ie}return u}(g.substring(Bn,Kn)));var ri=function Pe(g){var u,v,T={};"?"===g.charAt(0)&&(g=g.substring(1));try{for(var ie=_.__values(g.split("&")),we=ie.next();!we.done;we=ie.next()){var ft=we.value;if(0!==ft.length){var Ut=ft.split("=");2===Ut.length?T[decodeURIComponent(Ut[0])]=decodeURIComponent(Ut[1]):ne("Invalid query segment '"+ft+"' in query '"+g+"'")}}}catch(dn){u={error:dn}}finally{try{we&&!we.done&&(v=ie.return)&&v.call(ie)}finally{if(u)throw u.error}}return T}(g.substring(Math.min(g.length,Kn)));(tn=u.indexOf(":"))>=0?(ft="https"===Ut||"wss"===Ut,dn=parseInt(u.substring(tn+1),10)):tn=u.length;var wi=u.slice(0,tn);if("localhost"===wi.toLowerCase())v="localhost";else if(wi.split(".").length<=2)v=wi;else{var Gi=u.indexOf(".");T=u.substring(0,Gi).toLowerCase(),v=u.substring(Gi+1),we=T}"ns"in ri&&(we=ri.ns)}return{host:u,port:dn,domain:v,subdomain:T,secure:ft,scheme:Ut,pathString:ie,namespace:we}},un=/[\[\].#$\/\u0000-\u001F\u007F]/,It=/[\[\].#$\u0000-\u001F\u007F]/,Et=10485760,Rt=function(g){return"string"==typeof g&&0!==g.length&&!un.test(g)},Wt=function(g){return"string"==typeof g&&0!==g.length&&!It.test(g)},Dn=function(g){return null===g||"string"==typeof g||"number"==typeof g&&!M(g)||g&&"object"==typeof g&&y.contains(g,".sv")},Gn=function(g,u,v,T,ie){ie&&void 0===v||Zn(y.errorPrefix(g,u,ie),v,T)},Zn=function(g,u,v){var T=v instanceof Ge?new wt(v,g):v;if(void 0===u)throw new Error(g+"contains undefined "+T.toErrorString());if("function"==typeof u)throw new Error(g+"contains a function "+T.toErrorString()+" with contents = "+u.toString());if(M(u))throw new Error(g+"contains "+u.toString()+" "+T.toErrorString());if("string"==typeof u&&u.length>Et/3&&y.stringLength(u)>Et)throw new Error(g+"contains a string greater than "+Et+" utf8 bytes "+T.toErrorString()+" ('"+u.substring(0,50)+"...')");if(u&&"object"==typeof u){var ie=!1,we=!1;if(fe(u,function(ft,Ut){if(".value"===ft)ie=!0;else if(".priority"!==ft&&".sv"!==ft&&(we=!0,!Rt(ft)))throw new Error(g+" contains an invalid key ("+ft+") "+T.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');T.push(ft),Zn(g,Ut,T),T.pop()}),ie&&we)throw new Error(g+' contains ".value" child '+T.toErrorString()+" in addition to actual children.")}},nn=function(g,u,v,T,ie){if(!ie||void 0!==v){var we=y.errorPrefix(g,u,ie);if(!v||"object"!=typeof v||Array.isArray(v))throw new Error(we+" must be an object containing the children to replace.");var ft=[];fe(v,function(Ut,dn){var tn=new Ge(Ut);if(Zn(we,dn,T.child(tn)),".priority"===tn.getBack()&&!Dn(dn))throw new Error(we+"contains an invalid value for '"+tn.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");ft.push(tn)}),function(g,u){var v,T;for(v=0;v<u.length;v++)for(var ie=(T=u[v]).slice(),we=0;we<ie.length;we++)if((".priority"!==ie[we]||we!==ie.length-1)&&!Rt(ie[we]))throw new Error(g+"contains an invalid key ("+ie[we]+") in path "+T.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');u.sort(Ge.comparePaths);var ft=null;for(v=0;v<u.length;v++){if(T=u[v],null!==ft&&ft.contains(T))throw new Error(g+"contains a path "+ft.toString()+" that is ancestor of another path "+T.toString());ft=T}}(we,ft)}},Vn=function(g,u,v,T){if(!T||void 0!==v){if(M(v))throw new Error(y.errorPrefix(g,u,T)+"is "+v.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Dn(v))throw new Error(y.errorPrefix(g,u,T)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},Yt=function(g,u,v,T){if(!T||void 0!==v)switch(v){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(y.errorPrefix(g,u,T)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},Rn=function(g,u,v,T){if(!(T&&void 0===v||Rt(v)))throw new Error(y.errorPrefix(g,u,T)+'was an invali
1d key = "'+v+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},Mt=function(g,u,v,T){if(!(T&&void 0===v||Wt(v)))throw new Error(y.errorPrefix(g,u,T)+'was an invalid path = "'+v+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},kt=function(g,u,v,T){v&&(v=v.replace(/^\/*\.info(\/|$)/,"/")),Mt(g,u,v,T)},We=function(g,u){if(".info"===u.getFront())throw new Error(g+" failed = Can't modify data under /.info/")},Ue=function(g,u,v){var T=v.path.toString();if("string"!=typeof v.repoInfo.host||0===v.repoInfo.host.length||!Rt(v.repoInfo.namespace)&&"localhost"!==v.repoInfo.host.split(":")[0]||0!==T.length&&!function(g){return g&&(g=g.replace(/^\/*\.info(\/|$)/,"/")),Wt(g)}(T))throw new Error(y.errorPrefix(g,u,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},Qe=function(g,u,v,T){if((!T||void 0!==v)&&"boolean"!=typeof v)throw new Error(y.errorPrefix(g,u,T)+"must be a boolean.")},Lt=function(){function g(u,v){this.repo_=u,this.path_=v}return g.prototype.cancel=function(u){y.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),y.validateCallback("OnDisconnect.cancel",1,u,!0);var v=new y.Deferred;return this.repo_.onDisconnectCancel(this.path_,v.wrapCallback(u)),v.promise},g.prototype.remove=function(u){y.validateArgCount("OnDisconnect.remove",0,1,arguments.length),We("OnDisconnect.remove",this.path_),y.validateCallback("OnDisconnect.remove",1,u,!0);var v=new y.Deferred;return this.repo_.onDisconnectSet(this.path_,null,v.wrapCallback(u)),v.promise},g.prototype.set=function(u,v){y.validateArgCount("OnDisconnect.set",1,2,arguments.length),We("OnDisconnect.set",this.path_),Gn("OnDisconnect.set",1,u,this.path_,!1),y.validateCallback("OnDisconnect.set",2,v,!0);var T=new y.Deferred;return this.repo_.onDisconnectSet(this.path_,u,T.wrapCallback(v)),T.promise},g.prototype.setWithPriority=function(u,v,T){y.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),We("OnDisconnect.setWithPriority",this.path_),Gn("OnDisconnect.setWithPriority",1,u,this.path_,!1),Vn("OnDisconnect.setWithPriority",2,v,!1),y.validateCallback("OnDisconnect.setWithPriority",3,T,!0);var ie=new y.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,u,v,ie.wrapCallback(T)),ie.promise},g.prototype.update=function(u,v){if(y.validateArgCount("OnDisconnect.update",1,2,arguments.length),We("OnDisconnect.update",this.path_),Array.isArray(u)){for(var T={},ie=0;ie<u.length;++ie)T[""+ie]=u[ie];u=T,ne("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}nn("OnDisconnect.update",1,u,this.path_,!1),y.validateCallback("OnDisconnect.update",2,v,!0);var we=new y.Deferred;return this.repo_.onDisconnectUpdate(this.path_,u,we.wrapCallback(v)),we.promise},g}(),xt=function(){function g(u,v){this.committed=u,this.snapshot=v}return g.prototype.toJSON=function(){return y.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},g}(),Gt=function(){var g="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",u=0,v=[];return function(T){var ie=T===u;u=T;var we,ft=new Array(8);for(we=7;we>=0;we--)ft[we]=g.charAt(T%64),T=Math.floor(T/64);y.assert(0===T,"Cannot push at time == 0");var Ut=ft.join("");if(ie){for(we=11;we>=0&&63===v[we];we--)v[we]=0;v[we]++}else for(we=0;we<12;we++)v[we]=Math.floor(64*Math.random());for(we=0;we<12;we++)Ut+=g.charAt(v[we]);return y.assert(20===Ut.length,"nextPushId: Length should be 20."),Ut}}(),Ke=function(){function g(u,v){this.name=u,this.node=v}return g.Wrap=function(u,v){return new g(u,v)},g}(),Ne=function(){function g(){}return g.prototype.getCompare=function(){return this.compare.bind(this)},g.prototype.indexedValueChanged=function(u,v){var T=new Ke(R,u),ie=new Ke(R,v);return 0!==this.compare(T,ie)},g.prototype.minPost=function(){return Ke.MIN},g}(),Oe=function(g){function u(){return null!==g&&g.apply(this,arguments)||this}return _.__extends(u,g),Object.defineProperty(u,"__EMPTY_NODE",{get:function(){return Ae},set:function(v){Ae=v}
1,enumerable:!1,configurable:!0}),u.prototype.compare=function(v,T){return B(v.name,T.name)},u.prototype.isDefinedOn=function(v){throw y.assertionError("KeyIndex.isDefinedOn not expected to be called.")},u.prototype.indexedValueChanged=function(v,T){return!1},u.prototype.minPost=function(){return Ke.MIN},u.prototype.maxPost=function(){return new Ke(ee,Ae)},u.prototype.makePost=function(v,T){return y.assert("string"==typeof v,"KeyIndex indexValue must always be a string."),new Ke(v,Ae)},u.prototype.toString=function(){return".key"},u}(Ne),Ye=new Oe,rn=function(g){return"number"==typeof g?"number:"+Ie(g):"string:"+g},On=function(g){if(g.isLeafNode()){var u=g.val();y.assert("string"==typeof u||"number"==typeof u||"object"==typeof u&&y.contains(u,".sv"),"Priority must be a string or number.")}else y.assert(g===je||g.isEmpty(),"priority of unexpected type.");y.assert(g===je||g.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Xn=function(){function g(u,v){void 0===v&&(v=g.__childrenNodeConstructor.EMPTY_NODE),this.value_=u,this.priorityNode_=v,this.lazyHash_=null,y.assert(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),On(this.priorityNode_)}return Object.defineProperty(g,"__childrenNodeConstructor",{get:function(){return xn},set:function(u){xn=u},enumerable:!1,configurable:!0}),g.prototype.isLeafNode=function(){return!0},g.prototype.getPriority=function(){return this.priorityNode_},g.prototype.updatePriority=function(u){return new g(this.value_,u)},g.prototype.getImmediateChild=function(u){return".priority"===u?this.priorityNode_:g.__childrenNodeConstructor.EMPTY_NODE},g.prototype.getChild=function(u){return u.isEmpty()?this:".priority"===u.getFront()?this.priorityNode_:g.__childrenNodeConstructor.EMPTY_NODE},g.prototype.hasChild=function(){return!1},g.prototype.getPredecessorChildName=function(u,v){return null},g.prototype.updateImmediateChild=function(u,v){return".priority"===u?this.updatePriority(v):v.isEmpty()&&".priority"!==u?this:g.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(u,v).updatePriority(this.priorityNode_)},g.prototype.updateChild=function(u,v){var T=u.getFront();return null===T?v:v.isEmpty()&&".priority"!==T?this:(y.assert(".priority"!==T||1===u.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(T,g.__childrenNodeConstructor.EMPTY_NODE.updateChild(u.popFront(),v)))},g.prototype.isEmpty=function(){return!1},g.prototype.numChildren=function(){return 0},g.prototype.forEachChild=function(u,v){return!1},g.prototype.val=function(u){return u&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},g.prototype.hash=function(){if(null===this.lazyHash_){var u="";this.priorityNode_.isEmpty()||(u+="priority:"+rn(this.priorityNode_.val())+":");var v=typeof this.value_;u+=v+":",u+="number"===v?Ie(this.value_):this.value_,this.lazyHash_=Re(u)}return this.lazyHash_},g.prototype.getValue=function(){return this.value_},g.prototype.compareTo=function(u){return u===g.__childrenNodeConstructor.EMPTY_NODE?1:u instanceof g.__childrenNodeConstructor?-1:(y.assert(u.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(u))},g.prototype.compareToLeafNode_=function(u){var v=typeof u.value_,T=typeof this.value_,ie=g.VALUE_TYPE_ORDER.indexOf(v),we=g.VALUE_TYPE_ORDER.indexOf(T);return y.assert(ie>=0,"Unknown leaf type: "+v),y.assert(we>=0,"Unknown leaf type: "+T),ie===we?"object"===T?0:this.value_<u.value_?-1:this.value_===u.value_?0:1:we-ie},g.prototype.withIndex=function(){return this},g.prototype.isIndexed=function(){return!0},g.prototype.equals=function(u){return u===this||!!u.isLeafNode()&&(this.value_===u.value_&&this.priorityNode_.equals(u.priorityNode_))},g.VALUE_TYPE_ORDER=["object","boolean","number","string"],g}(),pn=function(g){function u(){return null!==g&&g.apply(this,arguments)||this}return _.__extends(u,g),u.prototype.compare=function(v,T){var ie=v.node.getPriority(),we=T.node.getPriority(),ft=ie.compareTo(we);return 0===ft?B(v.name,T.name):ft},u.prototype.isDefinedOn=function(v){return!v.getPriority().isEmpty()},u.prototype.indexedValueChanged=function(v,T){return!v.getPriority().equals(T.getPriority())},u.prototype.minPost=function(){return Ke.MIN},u.prototype.maxPost=function(){return new Ke(ee,new Xn("[PRIORITY-POST]",mi))},u.prototype.makePost=function(v,T){var ie=Ai(v);return new Ke(T,new Xn("[PRIORITY-POST]",ie))},u.prototype.toString=function(){return".priority"},u}(Ne),gn=new pn,En=function(){function g(u,v,T,ie,we){void 0===we&&(we=null),this.isReverse_=ie,this.resultGenerator_=we,this.nodeStack_=[];for(var ft=1;!u.isEmpty();)if(ft=v?T(u.key,v):1,ie&&(ft*=-1),ft<0)u=this.isReverse_?u.left:u.right;else{if(0===ft){this.nodeStack_.push(u);break}this.nodeStack_.push(u),u=this.isReverse_?u.right:u.left}}return g.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var v,u=this.nodeStack_.pop();if(v=this.resultGenerator_?this.resultGenerator_(u.key,u.value):{key:u.key,value:u.value},this.isReverse_)for(u=u.left;!u.isEmpty();)this.nodeStack_.push(u),u=u.right;else for(u=u.right;!u.isEmpty();)this.nodeStack_.push(u),u=u.left;return v},g.prototype.hasNext=function(){return this.nodeStack_.length>0},g.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var u=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(u.key,u.value):{key:u.key,value:u.value}},g}(),rt=function(){function g(u,v,T,ie,we){this.key=u,this.value=v,this.color=null!=T?T:g.RED,this.left=null!=ie?ie:ue.EMPTY_NODE,this.right=null!=we?we:ue.EMPTY_NODE}return g.prototype.copy=function(u,v,T,ie,we){return new g(null!=u?u:this.key,null!=v?v:this.value,
1null!=T?T:this.color,null!=ie?ie:this.left,null!=we?we:this.right)},g.prototype.count=function(){return this.left.count()+1+this.right.count()},g.prototype.isEmpty=function(){return!1},g.prototype.inorderTraversal=function(u){return this.left.inorderTraversal(u)||!!u(this.key,this.value)||this.right.inorderTraversal(u)},g.prototype.reverseTraversal=function(u){return this.right.reverseTraversal(u)||u(this.key,this.value)||this.left.reverseTraversal(u)},g.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},g.prototype.minKey=function(){return this.min_().key},g.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},g.prototype.insert=function(u,v,T){var ie=this,we=T(u,ie.key);return(ie=we<0?ie.copy(null,null,null,ie.left.insert(u,v,T),null):0===we?ie.copy(null,v,null,null,null):ie.copy(null,null,null,null,ie.right.insert(u,v,T))).fixUp_()},g.prototype.removeMin_=function(){if(this.left.isEmpty())return ue.EMPTY_NODE;var u=this;return!u.left.isRed_()&&!u.left.left.isRed_()&&(u=u.moveRedLeft_()),(u=u.copy(null,null,null,u.left.removeMin_(),null)).fixUp_()},g.prototype.remove=function(u,v){var T,ie;if(v(u,(T=this).key)<0)!T.left.isEmpty()&&!T.left.isRed_()&&!T.left.left.isRed_()&&(T=T.moveRedLeft_()),T=T.copy(null,null,null,T.left.remove(u,v),null);else{if(T.left.isRed_()&&(T=T.rotateRight_()),!T.right.isEmpty()&&!T.right.isRed_()&&!T.right.left.isRed_()&&(T=T.moveRedRight_()),0===v(u,T.key)){if(T.right.isEmpty())return ue.EMPTY_NODE;ie=T.right.min_(),T=T.copy(ie.key,ie.value,null,null,T.right.removeMin_())}T=T.copy(null,null,null,null,T.right.remove(u,v))}return T.fixUp_()},g.prototype.isRed_=function(){return this.color},g.prototype.fixUp_=function(){var u=this;return u.right.isRed_()&&!u.left.isRed_()&&(u=u.rotateLeft_()),u.left.isRed_()&&u.left.left.isRed_()&&(u=u.rotateRight_()),u.left.isRed_()&&u.right.isRed_()&&(u=u.colorFlip_()),u},g.prototype.moveRedLeft_=function(){var u=this.colorFlip_();return u.right.left.isRed_()&&(u=(u=(u=u.copy(null,null,null,null,u.right.rotateRight_())).rotateLeft_()).colorFlip_()),u},g.prototype.moveRedRight_=function(){var u=this.colorFlip_();return u.left.left.isRed_()&&(u=(u=u.rotateRight_()).colorFlip_()),u},g.prototype.rotateLeft_=function(){var u=this.copy(null,null,g.RED,null,this.right.left);return this.right.copy(null,null,this.color,u,null)},g.prototype.rotateRight_=function(){var u=this.copy(null,null,g.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,u)},g.prototype.colorFlip_=function(){var u=this.left.copy(null,null,!this.left.color,null,null),v=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,u,v)},g.prototype.checkMaxDepth_=function(){var u=this.check_();return Math.pow(2,u)<=this.count()+1},g.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
1if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var u=this.left.check_();if(u!==this.right.check_())throw new Error("Black depths differ");return u+(this.isRed_()?0:1)},g.RED=!0,g.BLACK=!1,g}(),it=function(){function g(){}return g.prototype.copy=function(u,v,T,ie,we){return this},g.prototype.insert=function(u,v,T){return new rt(u,v,null)},g.prototype.remove=function(u,v){return this},g.prototype.count=function(){return 0},g.prototype.isEmpty=function(){return!0},g.prototype.inorderTraversal=function(u){return!1},g.prototype.reverseTraversal=function(u){return!1},g.prototype.minKey=function(){return null},g.prototype.maxKey=function(){return null},g.prototype.check_=function(){return 0},g.prototype.isRed_=function(){return!1},g}(),ue=function(){function g(u,v){void 0===v&&(v=g.EMPTY_NODE),this.comparator_=u,this.root_=v}return g.prototype.insert=function(u,v){return new g(this.comparator_,this.root_.insert(u,v,this.comparator_).copy(null,null,rt.BLACK,null,null))},g.prototype.remove=function(u){return new g(this.comparator_,this.root_.remove(u,this.comparator_).copy(null,null,rt.BLACK,null,null))},g.prototype.get=function(u){for(var v,T=this.root_;!T.isEmpty();){if(0===(v=this.comparator_(u,T.key)))return T.value;v<0?T=T.left:v>0&&(T=T.right)}return null},g.prototype.getPredecessorKey=function(u){for(var v,T=this.root_,ie=null;!T.isEmpty();){if(0===(v=this.comparator_(u,T.key))){if(T.left.isEmpty())return ie?ie.key:null;for(T=T.left;!T.right.isEmpty();)T=T.right;return T.key}v<0?T=T.left:v>0&&(ie=T,T=T.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},g.prototype.isEmpty=function(){return this.root_.isEmpty()},g.prototype.count=function(){return this.root_.count()},g.prototype.minKey=function(){return this.root_.minKey()},g.prototype.maxKey=function(){return this.root_.maxKey()},g.prototype.inorderTraversal=function(u){return this.root_.inorderTraversal(u)},g.prototype.reverseTraversal=function(u){return this.root_.reverseTraversal(u)},g.prototype.getIterator=function(u){return new En(this.root_,null,this.comparator_,!1,u)},g.prototype.getIteratorFrom=function(u,v){return new En(this.root_,u,this.comparator_,!1,v)},g.prototype.getReverseIteratorFrom=function(u,v){return new En(this.root_,u,this.comparator_,!0,v)},g.prototype.getReverseIterator=function(u){return new En(this.root_,null,this.comparator_,!0,u)},g.EMPTY_NODE=new it,g}(),ve=Math.log(2),at=function(){function g(u){this.count=parseInt(Math.log(u+1)/ve,10),this.current_=this.count-1;var ie=parseInt(Array(this.count+1).join("1"),2);this.bits_=u+1&ie}return g.prototype.nextBitIsOne=function(){var u=!(this.bits_&1<<this.current_);return this.current_--,u},g}(),q=function(g,u,v,T){g.sort(u);var ie=function(dn,tn){var Kn,ri,Bn=tn-dn;if(0===Bn)return null;if(1===Bn)return Kn=g[dn],ri=v?v(Kn):Kn,new rt(ri,Kn.node,rt.BLACK,null,null);var wi=parseInt(Bn/2,10)+dn,Gi=ie(dn,wi),qi=ie(wi+1,tn);return Kn=g[wi],ri=v?v(Kn):Kn,new rt(ri,Kn.node,rt.BLACK,Gi,qi)},Ut=function(dn){for(var tn=null,Bn=null,Kn=g.length,ri=function(Lr,_s){var Fo=Kn-Lr,sa=Kn;Kn-=Lr;var Qi=ie(Fo+1,sa),xo=g[Fo],na=v?v(xo):xo;wi(new rt(na,xo.node,_s,null,Qi))},wi=function(Lr){tn?(tn.left=Lr,tn=Lr):(Bn=Lr,tn=Lr)},Gi=0;Gi<dn.count;++Gi){var qi=dn.nextBitIsOne(),Zr=Math.pow(2,dn.count-(Gi+1));qi?ri(Zr,rt.BLACK):(ri(Zr,rt.BLACK),ri(Zr,rt.RED))}return Bn}(new at(g.length));return new ue(T||u,Ut)},_t={},Xt=function(){function g(u,v){this.indexes_=u,this.indexSet_=v}return Object.defineProperty(g,"Default",{get:function(){return y.assert(_t&&gn,"ChildrenNode.ts has not been loaded"),xe=xe||new g({".priority":_t},{".priority":gn})},enumerable:!1,configurable:!0}),g.prototype.get=function(u){var v=y.safeGet(this.indexes_,u);if(!v)throw new Error("No index defined for "+u);return v instanceof ue?v:null},g.prototype.hasIndex=function(u){return y.contains(this.indexSet_,u.toString())},g.prototype.addIndex=function(u,v){y.assert(u!==Ye,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var T=[],ie=!1,we=v.getIterator(Ke.Wrap),ft=we.getNext();ft;)ie=ie||u.isDefinedOn(ft.node),T.push(ft),ft=we.getNext();var Ut;Ut=ie?q(T,u.getCompare()):_t;var dn=u.toString(),tn=_.__assign({},this.indexSet_);tn[dn]=u;var Bn=_.__assign({},this.indexes_);return Bn[dn]=Ut,new g(Bn,tn)},g.prototype.addToIndexes=function(u,v){var T=this;return new g(y.map(this.indexes_,function(we,ft){var Ut=y.safeGet(T.indexSet_,ft);if(y.assert(Ut,"Missing index implementation for "+ft),we===_t){if(Ut.isDefinedOn(u.node)){for(var dn=[],tn=v.getIterator(Ke.Wrap),Bn=tn.getNext();Bn;)Bn.name!==u.name&&dn.push(Bn),Bn=tn.getNext();return dn.push(u),q(dn,Ut.getCompare())}return _t}var Kn=v.get(u.name),ri=we;return Kn&&(ri=ri.remove(new Ke(u.name,Kn))),ri.insert(u,u.node)}),this.indexSet_)}
1,g.prototype.removeFromIndexes=function(u,v){return new g(y.map(this.indexes_,function(ie){if(ie===_t)return ie;var we=v.get(u.name);return we?ie.remove(new Ke(u.name,we)):ie}),this.indexSet_)},g}();function Un(g,u){return B(g.name,u.name)}function Qn(g,u){return B(g,u)}var vi,li=function(){function g(u,v,T){this.children_=u,this.priorityNode_=v,this.indexMap_=T,this.lazyHash_=null,this.priorityNode_&&On(this.priorityNode_),this.children_.isEmpty()&&y.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(g,"EMPTY_NODE",{get:function(){return vi||(vi=new g(new ue(Qn),null,Xt.Default))},enumerable:!1,configurable:!0}),g.prototype.isLeafNode=function(){return!1},g.prototype.getPriority=function(){return this.priorityNode_||vi},g.prototype.updatePriority=function(u){return this.children_.isEmpty()?this:new g(this.children_,u,this.indexMap_)},g.prototype.getImmediateChild=function(u){if(".priority"===u)return this.getPriority();var v=this.children_.get(u);return null===v?vi:v},g.prototype.getChild=function(u){var v=u.getFront();return null===v?this:this.getImmediateChild(v).getChild(u.popFront())},g.prototype.hasChild=function(u){return null!==this.children_.get(u)},g.prototype.updateImmediateChild=function(u,v){if(y.assert(v,"We should always be passing snapshot nodes"),".priority"===u)return this.updatePriority(v);var T=new Ke(u,v),ie=void 0,we=void 0;v.isEmpty()?(ie=this.children_.remove(u),we=this.indexMap_.removeFromIndexes(T,this.children_)):(ie=this.children_.insert(u,v),we=this.indexMap_.addToIndexes(T,this.children_));var ft=ie.isEmpty()?vi:this.priorityNode_;return new g(ie,ft,we)},g.prototype.updateChild=function(u,v){var T=u.getFront();if(null===T)return v;y.assert(".priority"!==u.getFront()||1===u.getLength(),".priority must be the last token in a path");var ie=this.getImmediateChild(T).updateChild(u.popFront(),v);return this.updateImmediateChild(T,ie)},g.prototype.isEmpty=function(){return this.children_.isEmpty()},g.prototype.numChildren=function(){return this.children_.count()},g.prototype.val=function(u){if(this.isEmpty())return null;var v={},T=0,ie=0,we=!0;if(this.forEachChild(gn,function(dn,tn){v[dn]=tn.val(u),T++,we&&g.INTEGER_REGEXP_.test(dn)?ie=Math.max(ie,Number(dn)):we=!1}),!u&&we&&ie<2*T){var ft=[];for(var Ut in v)ft[Ut]=v[Ut];return ft}return u&&!this.getPriority().isEmpty()&&(v[".priority"]=this.getPriority().val()),v},g.prototype.hash=function(){if(null===this.lazyHash_){var u="";this.getPriority().isEmpty()||(u+="priority:"+rn(this.getPriority().val())+":"),this.forEachChild(gn,function(v,T){var ie=T.hash();""!==ie&&(u+=":"+v+":"+ie)}),this.lazyHash_=""===u?"":Re(u)}return this.lazyHash_},g.prototype.getPredecessorChildName=function(u,v,T){var ie=this.resolveIndex_(T);if(ie){var we=ie.getPredecessorKey(new Ke(u,v));return we?we.name:null}return this.children_.getPredecessorKey(u)},g.prototype.getFirstChildName=function(u){var v=this.resolveIndex_(u);if(v){var T=v.minKey();return T&&T.name}return this.children_.minKey()},g.prototype.getFirstChild=function(u){var v=this.getFirstChildName(u);return v?new Ke(v,this.children_.get(v)):null},g.prototype.getLastChildName=function(u){var v=this.resolveIndex_(u);if(v){var T=v.maxKey();return T&&T.name}return this.children_.maxKey()},g.prototype.getLastChild=function(u){var v=this.getLastChildName(u);return v?new Ke(v,this.children_.get(v)):null},g.prototype.forEachChild=function(u,v){var T=this.resolveIndex_(u);return T?T.inorderTraversal(function(ie){return v(ie.name,ie.node)}):this.children_.inorderTraversal(v)},g.prototype.getIterator=function(u){return this.getIteratorFrom(u.minPost(),u)},g.prototype.getIteratorFrom=function(u,v){var T=this.resolveIndex_(v);if(T)return T.getIteratorFrom(u,function(ft){return ft});for(var ie=this.children_.getIteratorFrom(u.name,Ke.Wrap),we=ie.peek();null!=we&&v.compare(we,u)<0;)ie.getNext(),we=ie.peek();return ie},g.prototype.getReverseIterator=function(u){return this.getReverseIteratorFrom(u.maxPost(),u)},g.prototype.getReverseIteratorFrom=function(u,v){var T=this.resolveIndex_(v);if(T)return T.getReverseIteratorFrom(u,function(ft){return ft});for(var ie=this.children_.getReverseIteratorFrom(u.name,Ke.Wrap),we=ie.peek();null!=we&&v.compare(we,u)>0;)ie.getNext(),we=ie.peek();return ie},g.prototype.compareTo=function(u){return this.isEmpty()?u.isEmpty()?0:-1:u.isLeafNode()||u.isEmpty()?1:u===zi?-1:0},g.prototype.withIndex=function(u){if(u===Ye||this.indexMap_.hasIndex(u))return this;var v=this.indexMap_.addIndex(u,this.children_);return new g(this.children_,this.priorityNode_,v)},g.prototype.isIndexed=function(u){return u===Ye||this.indexMap_.hasIndex(u)},g.prototype.equals=function(u){if(u===this)return!0;
1if(u.isLeafNode())return!1;var v=u;if(this.getPriority().equals(v.getPriority())){if(this.children_.count()===v.children_.count()){for(var T=this.getIterator(gn),ie=v.getIterator(gn),we=T.getNext(),ft=ie.getNext();we&&ft;){if(we.name!==ft.name||!we.node.equals(ft.node))return!1;we=T.getNext(),ft=ie.getNext()}return null===we&&null===ft}return!1}return!1},g.prototype.resolveIndex_=function(u){return u===Ye?null:this.indexMap_.get(u.toString())},g.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,g}(),mr=function(g){function u(){return g.call(this,new ue(Qn),li.EMPTY_NODE,Xt.Default)||this}return _.__extends(u,g),u.prototype.compareTo=function(v){return v===this?0:1},u.prototype.equals=function(v){return v===this},u.prototype.getPriority=function(){return this},u.prototype.getImmediateChild=function(v){return li.EMPTY_NODE},u.prototype.isEmpty=function(){return!1},u}(li),zi=new mr;function Wi(g,u){if(void 0===u&&(u=null),null===g)return li.EMPTY_NODE;if("object"==typeof g&&".priority"in g&&(u=g[".priority"]),y.assert(null===u||"string"==typeof u||"number"==typeof u||"object"==typeof u&&".sv"in u,"Invalid priority type found: "+typeof u),"object"==typeof g&&".value"in g&&null!==g[".value"]&&(g=g[".value"]),"object"!=typeof g||".sv"in g)return new Xn(g,Wi(u));if(g instanceof Array){var dn=li.EMPTY_NODE;return fe(g,function(tn,Bn){if(y.contains(g,tn)&&"."!==tn.substring(0,1)){var Kn=Wi(Bn);(Kn.isLeafNode()||!Kn.isEmpty())&&(dn=dn.updateImmediateChild(tn,Kn))}}),dn.updatePriority(Wi(u))}var T=[],ie=!1;if(fe(g,function(tn,Bn){if("."!==tn.substring(0,1)){var Kn=Wi(Bn);Kn.isEmpty()||(ie=ie||!Kn.getPriority().isEmpty(),T.push(new Ke(tn,Kn)))}}),0===T.length)return li.EMPTY_NODE;var ft=q(T,Un,function(tn){return tn.name},Qn);if(ie){var Ut=q(T,gn.getCompare());return new li(ft,Wi(u),new Xt({".priority":Ut},{".priority":gn}))}return new li(ft,Wi(u),Xt.Default)}Object.defineProperties(Ke,{MIN:{value:new Ke(R,li.EMPTY_NODE)},MAX:{value:new Ke(ee,zi)}}),Oe.__EMPTY_NODE=li.EMPTY_NODE,Xn.__childrenNodeConstructor=li,function Tt(g){je=g}(zi),function Ki(g){mi=g}(zi),function fi(g){Ai=g}(Wi);var Os,qs=function(g){function u(){return null!==g&&g.apply(this,arguments)||this}return _.__extends(u,g),u.prototype.compare=function(v,T){var ie=v.node.compareTo(T.node);return 0===ie?B(v.name,T.name):ie},u.prototype.isDefinedOn=function(v){return!0},u.prototype.indexedValueChanged=function(v,T){return!v.equals(T)},u.prototype.minPost=function(){return Ke.MIN},u.prototype.maxPost=function(){return Ke.MAX},u.prototype.makePost=function(v,T){var ie=Wi(v);return new Ke(T,ie)},u.prototype.toString=function(){return".value"},u}(Ne),fs=new qs,or=function(g){function u(v){var T=g.call(this)||this;return T.indexPath_=v,y.assert(!v.isEmpty()&&".priority"!==v.getFront(),"Can't create PathIndex with empty path or .priority key"),T}return _.__extends(u,g),u.prototype.extractChild=function(v){return v.getChild(this.indexPath_)},u.prototype.isDefinedOn=function(v){return!v.getChild(this.indexPath_).isEmpty()},u.prototype.compare=function(v,T){var ie=this.extractChild(v.node),we=this.extractChild(T.node),ft=ie.compareTo(we);return 0===ft?B(v.name,T.name):ft},u.prototype.makePost=function(v,T){var ie=Wi(v),we=li.EMPTY_NODE.updateChild(this.indexPath_,ie);return new Ke(T,we)},u.prototype.maxPost=function(){var v=li.EMPTY_NODE.updateChild(this.indexPath_,zi);return new Ke(ee,v)},u.prototype.toString=function(){return this.indexPath_.slice().join("/")},u}(Ne),vs=function(){function g(u,v,T){this.node_=u,this.ref_=v,this.index_=T}return g.prototype.val=function(){return y.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},g.prototype.exportVal=function(){return y.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},g.prototype.toJSON=function(){return y.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},g.prototype.exists=function(){return y.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},g.prototype.child=function(u){y.validateArgCount("DataSnapshot.child",0,1,arguments.length),u=String(u),Mt("DataSnapshot.child",1,u,!1);var v=new Ge(u),T=this.ref_.child(v);return new g(this.node_.getChild(v),T,gn)},g.prototype.hasChild=function(u){y.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),Mt("DataSnapshot.hasChild",1,u,!1);var v=new Ge(u);return!this.node_.getChild(v).isEmpty()},g.prototype.getPriority=function(){return y.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},g.prototype.forEach=function(u){var v=this;if(y.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),y.validateCallback("DataSnapshot.forEach",1,u,!1),this.node_.isLeafNode())return!1;var T=this.node_;return!!T.forEachChild(this.index_,function(ie,we){return u(new g(we,v.ref_.child(ie),gn))})},g.prototype.hasChildren=function(){return y.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(g.prototype,"key",{get:function(){return this.ref_.getKey()}
1,enumerable:!1,configurable:!0}),g.prototype.numChildren=function(){return y.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},g.prototype.getRef=function(){return y.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(g.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),g}(),go=function(){function g(u,v,T,ie){this.eventType=u,this.eventRegistration=v,this.snapshot=T,this.prevName=ie}return g.prototype.getPath=function(){var u=this.snapshot.getRef();return"value"===this.eventType?u.path:u.getParent().path},g.prototype.getEventType=function(){return this.eventType},g.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},g.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+y.stringify(this.snapshot.exportVal())},g}(),Ds=function(){function g(u,v,T){this.eventRegistration=u,this.error=v,this.path=T}return g.prototype.getPath=function(){return this.path},g.prototype.getEventType=function(){return"cancel"},g.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},g.prototype.toString=function(){return this.path.toString()+":cancel"},g}(),dr=function(){function g(u,v,T){this.callback_=u,this.cancelCallback_=v,this.context_=T}return g.prototype.respondsTo=function(u){return"value"===u},g.prototype.createEvent=function(u,v){var T=v.getQueryParams().getIndex();return new go("value",this,new vs(u.snapshotNode,v.getRef(),T))},g.prototype.getEventRunner=function(u){var v=this.context_;if("cancel"===u.getEventType()){y.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var T=this.cancelCallback_;return function(){T.call(v,u.error)}}var ie=this.callback_;return function(){ie.call(v,u.snapshot)}},g.prototype.createCancelEvent=function(u,v){return this.cancelCallback_?new Ds(this,u,v):null},g.prototype.matches=function(u){return u instanceof g&&(!u.callback_||!this.callback_||u.callback_===this.callback_&&u.context_===this.context_)},g.prototype.hasAnyCallback=function(){return null!==this.callback_},g}(),Qs=function(){function g(u,v,T){this.callbacks_=u,this.cancelCallback_=v,this.context_=T}return g.prototype.respondsTo=function(u){var v="children_added"===u?"child_added":u;return y.contains(this.callbacks_,v="children_removed"===v?"child_removed":v)},g.prototype.createCancelEvent=function(u,v){return this.cancelCallback_?new Ds(this,u,v):null},g.prototype.createEvent=function(u,v){y.assert(null!=u.childName,"Child events should have a childName.");var T=v.getRef().child(u.childName),ie=v.getQueryParams().getIndex();return new go(u.type,this,new vs(u.snapshotNode,T,ie),u.prevName)},g.prototype.getEventRunner=function(u){var v=this.context_;if("cancel"===u.getEventType()){y.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var T=this.cancelCallback_;return function(){T.call(v,u.error)}}var ie=this.callbacks_[u.eventType];return function(){ie.call(v,u.snapshot,u.prevName)}},g.prototype.matches=function(u){var v=this;if(u instanceof g){if(!this.callbacks_||!u.callbacks_)return!0;if(this.context_===u.context_){var T=Object.keys(u.callbacks_),ie=Object.keys(this.callbacks_),we=T.length;if(we===ie.length){if(1===we){var Ut=T[0],dn=ie[0];return!(dn!==Ut||u.callbacks_[Ut]&&this.callbacks_[dn]&&u.callbacks_[Ut]!==this.callbacks_[dn])}return ie.every(function(tn){return u.callbacks_[tn]===v.callbacks_[tn]})}}}return!1},g.prototype.hasAnyCallback=function(){return null!==this.callbacks_},g}(),Rs=function(){function g(u,v,T,ie){this.repo=u,this.path=v,this.queryParams_=T,this.orderByCalled_=ie}return Object.defineProperty(g,"__referenceConstructor",{get:function(){return y.assert(Os,"Reference.ts has not been loaded"),Os},set:function(u){Os=u},enumerable:!1,configurable:!0}),g.validateQueryEndpoints_=function(u){var v=null,T=null;if(u.hasStart()&&(v=u.getIndexStartValue()),u.hasEnd()&&(T=u.getIndexEndValue()),u.getIndex()===Ye){var ie="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",we="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(u.hasStart()){if(u.getIndexStartName()!==R)throw new Error(ie);if("string"!=typeof v)throw new Error(we)}if(u.hasEnd()){if(u.getIndexEndName()!==ee)throw new Error(ie);if("string"!=typeof T)throw new Error(we)}}else if(u.getIndex()===gn){if(null!=v&&!Dn(v)||null!=T&&!Dn(T))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(y.assert(u.getIndex()instanceof or||u.getIndex()===fs,"unknown index type."),null!=v&&"object"==typeof v||null!=T&&"object"==typeof T)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},g.validateLimit_=function(u){if(u.hasStart()&&u.hasEnd()&&u.hasLimit()&&!u.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},g.prototype.validateNoPreviousOrderByCall_=function(u){if(!0===this.orderByCalled_)throw new Error(u+": You can't combine multiple orderBy calls.")},g.prototype.getQueryParams=function(){return this.queryParams_},g.prototype.getRef=function(){return y.validateArgCount("Query.ref",0,0,arguments.length),new g.__referenceConstructor(this.repo,this.path)},g.prototype.on=function(u,v,T,ie){y.validateArgCount("Query.on",2,4,arguments.length),Yt("Query.on",1,u,!1),y.validateCallback("Query.on",2,v,!1);var we=g.getCancelAndContextArgs_("Query.on",T,ie);
1if("value"===u)this.onValueEvent(v,we.cancel,we.context);else{var ft={};ft[u]=v,this.onChildEvent(ft,we.cancel,we.context)}return v},g.prototype.onValueEvent=function(u,v,T){var ie=new dr(u,v||null,T||null);this.repo.addEventCallbackForQuery(this,ie)},g.prototype.onChildEvent=function(u,v,T){var ie=new Qs(u,v,T);this.repo.addEventCallbackForQuery(this,ie)},g.prototype.off=function(u,v,T){y.validateArgCount("Query.off",0,3,arguments.length),Yt("Query.off",1,u,!0),y.validateCallback("Query.off",2,v,!0),y.validateContextObject("Query.off",3,T,!0);var ie=null,we=null;if("value"===u){var ft=v||null;ie=new dr(ft,null,T||null)}else u&&(v&&((we={})[u]=v),ie=new Qs(we,null,T||null));this.repo.removeEventCallbackForQuery(this,ie)},g.prototype.once=function(u,v,T,ie){var we=this;y.validateArgCount("Query.once",1,4,arguments.length),Yt("Query.once",1,u,!1),y.validateCallback("Query.once",2,v,!0);var ft=g.getCancelAndContextArgs_("Query.once",T,ie),Ut=!0,dn=new y.Deferred;dn.promise.catch(function(){});var tn=function(Bn){Ut&&(Ut=!1,we.off(u,tn),v&&v.bind(ft.context)(Bn),dn.resolve(Bn))};return this.on(u,tn,function(Bn){we.off(u,tn),ft.cancel&&ft.cancel.bind(ft.context)(Bn),dn.reject(Bn)}),dn.promise},g.prototype.limitToFirst=function(u){if(y.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof u||Math.floor(u)!==u||u<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new g(this.repo,this.path,this.queryParams_.limitToFirst(u),this.orderByCalled_)},g.prototype.limitToLast=function(u){if(y.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof u||Math.floor(u)!==u||u<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new g(this.repo,this.path,this.queryParams_.limitToLast(u),this.orderByCalled_)},g.prototype.orderByChild=function(u){if(y.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===u)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===u)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===u)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');Mt("Query.orderByChild",1,u,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var v=new Ge(u);if(v.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var T=new or(v),ie=this.queryParams_.orderBy(T);return g.validateQueryEndpoints_(ie),new g(this.repo,this.path,ie,!0)},g.prototype.orderByKey=function(){y.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var u=this.queryParams_.orderBy(Ye);return g.validateQueryEndpoints_(u),new g(this.repo,this.path,u,!0)},g.prototype.orderByPriority=function(){y.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var u=this.queryParams_.orderBy(gn);return g.validateQueryEndpoints_(u),new g(this.repo,this.path,u,!0)},g.prototype.orderByValue=function(){y.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var u=this.queryParams_.orderBy(fs);return g.validateQueryEndpoints_(u),new g(this.repo,this.path,u,!0)},g.prototype.startAt=function(u,v){void 0===u&&(u=null),y.validateArgCount("Query.startAt",0,2,arguments.length),Gn("Query.startAt",1,u,this.path,!0),Rn("Query.startAt",2,v,!0);var T=this.queryParams_.startAt(u,v);if(g.validateLimit_(T),g.validateQueryEndpoints_(T),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===u&&(u=null,v=null),new g(this.repo,this.path,T,this.orderByCalled_)},g.prototype.endAt=function(u,v){void 0===u&&(u=null),y.validateArgCount("Query.endAt",0,2,arguments.length),Gn("Query.endAt",1,u,this.path,!0),Rn("Query.endAt",2,v,!0);var T=this.queryParams_.endAt(u,v);if(g.validateLimit_(T),g.validateQueryEndpoints_(T),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set
1(by another call to endAt or equalTo).");return new g(this.repo,this.path,T,this.orderByCalled_)},g.prototype.equalTo=function(u,v){if(y.validateArgCount("Query.equalTo",1,2,arguments.length),Gn("Query.equalTo",1,u,this.path,!1),Rn("Query.equalTo",2,v,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(u,v).endAt(u,v)},g.prototype.toString=function(){return y.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},g.prototype.toJSON=function(){return y.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},g.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},g.prototype.queryIdentifier=function(){var u=this.queryObject(),v=Fe(u);return"{}"===v?"default":v},g.prototype.isEqual=function(u){if(y.validateArgCount("Query.isEqual",1,1,arguments.length),!(u instanceof g)){var v="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(v)}var T=this.repo===u.repo,ie=this.path.equals(u.path),we=this.queryIdentifier()===u.queryIdentifier();return T&&ie&&we},g.getCancelAndContextArgs_=function(u,v,T){var ie={cancel:null,context:null};if(v&&T)ie.cancel=v,y.validateCallback(u,3,ie.cancel,!0),ie.context=T,y.validateContextObject(u,4,ie.context,!0);else if(v)if("object"==typeof v&&null!==v)ie.context=v;else{if("function"!=typeof v)throw new Error(y.errorPrefix(u,3,!0)+" must either be a cancel callback or a context object.");ie.cancel=v}return ie},Object.defineProperty(g.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),g}(),Js=function(){function g(u){this.node_=u}return g.prototype.getImmediateChild=function(u){return new g(this.node_.getImmediateChild(u))},g.prototype.node=function(){return this.node_},g}(),qr=function(){function g(u,v){this.syncTree_=u,this.path_=v}return g.prototype.getImmediateChild=function(u){var v=this.path_.child(u);return new g(this.syncTree_,v)},g.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},g}(),Oo=function(g,u,v){return g&&"object"==typeof g?(y.assert(".sv"in g,"Unexpected leaf node or priority contents"),"string"==typeof g[".sv"]?ar(g[".sv"],u,v):"object"==typeof g[".sv"]?Wr(g[".sv"],u):void y.assert(!1,"Unexpected server value: "+JSON.stringify(g,null,2))):g},ar=function(g,u,v){if("timestamp"===g)return v.timestamp;y.assert(!1,"Unexpected server value: "+g)},Wr=function(g,u,v){g.hasOwnProperty("increment")||y.assert(!1,"Unexpected server value: "+JSON.stringify(g,null,2));var T=g.increment;"number"!=typeof T&&y.assert(!1,"Unexpected increment value: "+T);var ie=u.node();if(y.assert(null!=ie,"Expected ChildrenNode.EMPTY_NODE for nulls"),!ie.isLeafNode())return T;var ft=ie.getValue();return"number"!=typeof ft?T:ft+T},ys=function(g,u,v,T){return ls(u,new qr(v,g),T)},fr=function(g,u,v){return ls(g,new Js(u),v)};function ls(g,u,v){var we,T=g.getPriority().val(),ie=Oo(T,u.getImmediateChild(".priority"),v);if(g.isLeafNode()){var ft=g,Ut=Oo(ft.getValue(),u,v);return Ut!==ft.getValue()||ie!==ft.getPriority().val()?new Xn(Ut,Wi(ie)):g}var dn=g;return we=dn,ie!==dn.getPriority().val()&&(we=we.updatePriority(new Xn(ie))),dn.forEachChild(gn,function(tn,Bn){var Kn=ls(Bn,u.getImmediateChild(tn),v);Kn!==Bn&&(we=we.updateImmediateChild(tn,Kn))}),we}var xs,Ws,eo=function(){function g(){this.value=null,this.children=new Map}return g.prototype.find=function(u){if(null!=this.value)return this.value.getChild(u);if(!u.isEmpty()&&this.children.size>0){var v=u.getFront();return u=u.popFront(),this.children.has(v)?this.children.get(v).find(u):null}return null},g.prototype.remember=function(u,v){if(u.isEmpty())this.value=v,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(u,v);else{var T=u.getFront();this.children.has(T)||this.children.set(T,new g);var ie=this.children.get(T);u=u.popFront(),ie.remember(u,v)}},g.prototype.forget=function(u){if(u.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var v=this.value;this.value=null;var T=this;return v.forEachChild(gn,function(ft,Ut){T.remember(new Ge(ft),Ut)}),this.forget(u)}if(this.children.size>0){var ie=u.getFront();return u=u.popFront(),this.children.has(ie)&&this.children.get(ie).forget(u)&&this.children.delete(ie),0===this.children.size}return!0},g.prototype.forEachTree=function(u,v){null!==this.value?v(u,this.value):this.forEachChild(function(T,ie){var we=new Ge(u.toString()+"/"+T);ie.forEachTree(we,v)})}
1,g.prototype.forEachChild=function(u){this.children.forEach(function(v,T){u(T,v)})},g}(),Kr=(()=>(function(g){g[g.OVERWRITE=0]="OVERWRITE",g[g.MERGE=1]="MERGE",g[g.ACK_USER_WRITE=2]="ACK_USER_WRITE",g[g.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(Kr||(Kr={})),Kr))(),zs=function(){function g(u,v,T,ie){this.fromUser=u,this.fromServer=v,this.queryId=T,this.tagged=ie,y.assert(!ie||v,"Tagged queries must be from server.")}return g.User=new g(!0,!1,null,!1),g.Server=new g(!1,!0,null,!1),g.forServerTaggedQuery=function(u){return new g(!1,!0,u,!0)},g}(),Ro=function(){function g(u,v,T){this.path=u,this.affectedTree=v,this.revert=T,this.type=Kr.ACK_USER_WRITE,this.source=zs.User}return g.prototype.operationForChild=function(u){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return y.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var v=this.affectedTree.subtree(new Ge(u));return new g(Ge.Empty,v,this.revert)}return y.assert(this.path.getFront()===u,"operationForChild called for unrelated child."),new g(this.path.popFront(),this.affectedTree,this.revert)},g}(),vr=function(){function g(u,v){void 0===v&&(xs||(xs=new ue(K)),v=xs),this.value=u,this.children=v}return g.fromObject=function(u){var v=g.Empty;return fe(u,function(T,ie){v=v.set(new Ge(T),ie)}),v},g.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},g.prototype.findRootMostMatchingPathAndValue=function(u,v){if(null!=this.value&&v(this.value))return{path:Ge.Empty,value:this.value};if(u.isEmpty())return null;var T=u.getFront(),ie=this.children.get(T);if(null!==ie){var we=ie.findRootMostMatchingPathAndValue(u.popFront(),v);return null!=we?{path:new Ge(T).child(we.path),value:we.value}:null}return null},g.prototype.findRootMostValueAndPath=function(u){return this.findRootMostMatchingPathAndValue(u,function(){return!0})},g.prototype.subtree=function(u){if(u.isEmpty())return this;var v=u.getFront(),T=this.children.get(v);return null!==T?T.subtree(u.popFront()):g.Empty},g.prototype.set=function(u,v){if(u.isEmpty())return new g(v,this.children);var T=u.getFront(),we=(this.children.get(T)||g.Empty).set(u.popFront(),v),ft=this.children.insert(T,we);return new g(this.value,ft)},g.prototype.remove=function(u){if(u.isEmpty())return this.children.isEmpty()?g.Empty:new g(null,this.children);var v=u.getFront(),T=this.children.get(v);if(T){var ie=T.remove(u.popFront()),we=void 0;return we=ie.isEmpty()?this.children.remove(v):this.children.insert(v,ie),null===this.value&&we.isEmpty()?g.Empty:new g(this.value,we)}return this},g.prototype.get=function(u){if(u.isEmpty())return this.value;var v=u.getFront(),T=this.children.get(v);return T?T.get(u.popFront()):null},g.prototype.setTree=function(u,v){if(u.isEmpty())return v;var ft,T=u.getFront(),we=(this.children.get(T)||g.Empty).setTree(u.popFront(),v);return ft=we.isEmpty()?this.children.remove(T):this.children.insert(T,we),new g(this.value,ft)},g.prototype.fold=function(u){return this.fold_(Ge.Empty,u)},g.prototype.fold_=function(u,v){var T={};return this.children.inorderTraversal(function(ie,we){T[ie]=we.fold_(u.child(ie),v)}),v(u,this.value,T)},g.prototype.findOnPath=function(u,v){return this.findOnPath_(u,Ge.Empty,v)},g.prototype.findOnPath_=function(u,v,T){var ie=!!this.value&&T(v,this.value);if(ie)return ie;if(u.isEmpty())return null;var we=u.getFront(),ft=this.children.get(we);return ft?ft.findOnPath_(u.popFront(),v.child(we),T):null},g.prototype.foreachOnPath=function(u,v){return this.foreachOnPath_(u,Ge.Empty,v)},g.prototype.foreachOnPath_=function(u,v,T){if(u.isEmpty())return this;this.value&&T(v,this.value);var ie=u.getFront(),we=this.children.get(ie);return we?we.foreachOnPath_(u.popFront(),v.child(ie),T):g.Empty},g.prototype.foreach=function(u){this.foreach_(Ge.Empty,u)},g.prototype.foreach_=function(u,v){this.children.inorderTraversal(function(T,ie){ie.foreach_(u.child(T),v)}),this.value&&v(u,this.value)},g.prototype.foreachChild=function(u){this.children.inorderTraversal(function(v,T){T.value&&u(v,T.value)})},g.Empty=new g(null),g}(),Po=function(){function g(u,v){this.source=u,this.path=v,this.type=Kr.LISTEN_COMPLETE}return g.prototype.operationForChild=function(u){return this.path.isEmpty()?new g(this.source,Ge.Empty):new g(this.source,this.path.popFront())},g}(),Ps=function(){function g(u,v,T){this.source=u,this.path=v,this.snap=T,this.type=Kr.OVERWRITE}return g.prototype.operationForChild=function(u){return this.path.isEmpty()?new g(this.source,Ge.Empty,this.snap.getImmediateChild(u)):new g(this.source,this.path.popFront(),this.snap)},g}(),Ao=function(){function g(u,v,T){this.source=u,this.path=v,this.children=T,this.type=Kr.MERGE}return g.prototype.operationForChild=function(u){if(this.path.isEmpty()){var v=this.children.subtree(new Ge(u));return v.isEmpty()?null:v.value?new Ps(this.source,Ge.Empty,v.value):new g(this.source,Ge.Empty,v)}return y.assert(this.path.getFront()===u,"Can't get a merge for a child not on the path of the operation"),new g(this.source,this.path.popFront(),this.children)},g.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},g}(),to=function(){function g(u,v,T){this.node_=u,this.fullyInitialized_=v,this.filtered_=T}return g.prototype.isFullyInitialized=function(){return this.fullyInitialized_},g.prototype.isFiltered=function(){return this.filtered_},g.prototype.isCompleteForPath=function(u){if(u.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var v=u.getFront();return this.isCompleteForChild(v)},g.prototype.isCompleteForChild=function(u){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(u)},g.prototype.getNode=function(){return this.node_},g}(),ms=function(){function g(u,v){this.eventCache_=u,this.serverCache_=v}return g.prototype.updateEventSnap=function(u,v,T){return new g(new to(u,v,T),this.serverCache_)},g.prototype.updateServerSnap=function(u,v,T){return new g(this.eventCache_,new to(u,v,T))},g.prototype.getEventCache=function(){return this.eventCache_},g.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},g.prototype.getServerCache=function(){return this.serverCache_},g.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},g.Empty=new g(new to(li.EMPTY_NODE,!1,!1),new to(li.EMPTY_NODE,!1,!1)),g}(),Ar=function(){function g(u,v,T,ie,we){this.type=u,this.snapshotNode=v,this.childName=T,this.oldSnap=ie,this.prevName=we}return g.valueChange=function(u){return new g(g.VALUE,u)},g.childAddedChange=function(u,v){return new g(g.CHILD_ADDED,v,u)},g.childRemovedChange=function(u,v){return new g(g.CHILD_REMOVED,v,u)},g.childChangedChange=function(u,v,T){return new g(g.CHILD_CHANGED,v,u,T)},g.childMovedChange=function(u,v){return new g(g.CHILD_MOVED,v,u)},g.CHILD_ADDED="child_added",g.CHILD_REMOVED="child_removed",g.CHILD_CHANGED="child_changed",g.CHILD_MOVED="child_moved",g.VALUE="value",g}(),lo=function(){function g(u){this.index_=u}return g.prototype.updateChild=function(u,v,T,ie,we,ft){y.assert(u.isIndexed(this.index_),"A node must be indexed if only a child is updated");var Ut=u.getImmediateChild(v);return Ut.getChild(ie).equals(T.getChild(ie))&&Ut.isEmpty()===T.isEmpty()||(null!=ft&&(T.isEmpty()?u.hasChild(v)?ft.trackChildChange(Ar.childRemovedChange(v,Ut)):y.assert(u.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):Ut.isEmpty()?ft.trackChildChange(Ar.childAddedChange(v,T)):ft.trackChildChange(Ar.childChangedChange(v,T,Ut))),u.isLeafNode()&&T.isEmpty())?u:u.updateImmediateChild(v,T).withIndex(this.index_)},g.prototype.updateFullNode=function(u,v,T){return null!=T&&(u.isLeafNode()||u.forEachChild(gn,function(ie,we){v.hasChild(ie)||T.trackChildChange(Ar.childRemovedChange(ie,we))}),v.isLeafNode()||v.forEachChild(gn,function(ie,we){if(u.hasChild(ie)){var ft=u.getImmediateChild(ie);ft.equals(we)||T.trackChildChange(Ar.childChangedChange(ie,we,ft))}else T.trackChildChange(Ar.childAddedChange(ie,we))})),v.withIndex(this.index_)},g.prototype.updatePriority=function(u,v){return u.isEmpty()?li.EMPTY_NODE:u.updatePriority(v)},g.prototype.filtersNodes=function(){return!1},g.prototype.getIndexedFilter=function(){return this},g.prototype.getIndex=function(){return this.index_},g}(),wo=function(){function g(){this.changeMap=new Map}return g.prototype.trackChildChange=function(u){var v=u.type,T=u.childName;y.assert(v===Ar.CHILD_ADDED||v===Ar.CHILD_CHANGED||v===Ar.CHILD_REMOVED,"Only child changes supported for tracking"),y.assert(".priority"!==T,"Only non-priority child changes can be tracked.");var ie=this.changeMap.get(T);if(ie){var we=ie.type;if(v===Ar.CHILD_ADDED&&we===Ar.CHILD_REMOVED)this.changeMap.set(T,Ar.childChangedChange(T,u.snapshotNode,ie.snapshotNode));else if(v===Ar.CHILD_REMOVED&&we===Ar.CHILD_ADDED)this.changeMap.delete(T);else if(v===Ar.CHILD_REMOVED&&we===Ar.CHILD_CHANGED)this.changeMap.set(T,Ar.childRemovedChange(T,ie.oldSnap));else if(v===Ar.CHILD_CHANGED&&we===Ar.CHILD_ADDED)this.changeMap.set(T,Ar.childAddedChange(T,u.snapshotNode));else{if(v!==Ar.CHILD_CHANGED||we!==Ar.CHILD_CHANGED)throw y.assertionError("Illegal combination of changes: "+u+" occurred after "+ie);this.changeMap.set(T,Ar.childChangedChange(T,u.snapshotNode,ie.oldSnap))}}else this.changeMap.set(T,u)},g.prototype.getChanges=function(){return Array.from(this.changeMap.values())},g}(),Nr=function(){function g(){}return g.prototype.getCompleteChild=function(u){return null},g.prototype.getChildAfterChild=function(u,v,T){return null},g}(),Xs=new Nr,Mo=function(){function g(u,v,T){void 0===T&&(T=null),this.writes_=u,this.viewCache_=v,this.optCompleteServerCache_=T}return g.prototype.getCompleteChild=function(u){var v=this.viewCache_.getEventCache();if(v.isCompleteForChild(u))return v.getNode().getImmediateChild(u);var T=null!=this.optCompleteServerCache_?new to(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(u,T)},g.prototype.getChildAfterChild=function(u,v,T){var ie=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),we=this.writes_.calcIndexedSlice(ie,v,1,T,u);return 0===we.length?null:we[0]},g}(),no=function g(u,v){this.viewCache=u,this.changes=v},Fs=function(){function g(u){this.filter_=u}return g.prototype.assertIndexed=function(u){y.assert(u.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),y.assert(u.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},g.prototype.applyOperation=function(u,v,T,ie){var ft,Ut,we=new wo;if(v.type===Kr.OVERWRITE){var dn=v;dn.source.fromUser?ft=this.applyUserOverwrite_(u,dn.path,dn.snap,T,ie,we):(y.assert(dn.source.fromServer,"Unknown source."),Ut=dn.source.tagged||u.getServerCache().isFiltered()&&!dn.path.isEmpty(),ft=this.applyServerOverwrite_(u,dn.path,dn.snap,T,ie,Ut,we))}else if(v.type===Kr.MERGE){var tn=v;tn.source.fromUser?ft=this.applyUserMerge_(u,tn.path,tn.children,T,ie,we):(y.assert(tn.source.fromServer,"Unknown source."),Ut=tn.source.tagged||u.getServerCache().isFiltered(),ft=this.applyServerMerge_(u,tn.path,tn.children,T,ie,Ut,we))}else if(v.type===Kr.ACK_USER_WRITE){var Bn=v;ft=Bn.revert?this.revertUserWrite_(u,Bn.path,T,ie,we):this.ackUserWrite_(u,Bn.path,Bn.affectedTree,T,ie,we)}else{if(v.type!==Kr.LISTEN_COMPLETE)throw y.assertionError("Unknown operation type: "+v.type);ft=this.listenComplete_(u,v.path,T,we)}var Kn=we.getChanges();return g.maybeAddValueEvent_(u,ft,Kn),new no(ft,Kn)},g.maybeAddValueEvent_=function(u,v,T){var ie=v.getEventCache();if(ie.isFullyInitialized()){var we=ie.getNode().isLeafNode()||ie.getNode().isEmpty(),ft=u.getCompleteEventSnap();(T.length>0||!u.getEventCache().isFullyInitialized()||we&&!ie.getNode().equals(ft)||!ie.getNode().getPriority().equals(ft.getPriority()))&&T.push(Ar.valueChange(v.getCompleteEventSnap()))}},g.prototype.generateEventCacheAfterServerEvent_=function(u,v,T,ie,we){var ft=u.getEventCache();if(null!=T.shadowingWrite(v))return u;var Ut=void 0,dn=void 0;if(v.isEmpty())if(y.assert(u.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),u.getServerCache().isFiltered()){var tn=u.getCompleteServerSnap(),Kn=T.calcCompleteEventChildren(tn instanceof li?tn:li.EMPTY_NODE);Ut=this.filter_.updateFullNode(u.getEventCache().getNode(),Kn,we)}else{var ri=T.calcCompleteEventCache(u.getCompleteServerSnap());Ut=this.filter_.updateFullNode(u.getEventCache().getNode(),ri,we)}else{var wi=v.getFront();if(".priority"===wi){y.assert(1===v.getLength(),"Can't have a priority with additional path components");var Gi=ft.getNode();dn=u.getServerCache().getNode();var qi=T.calcEventCacheAfterServerOverwrite(v,Gi,dn);Ut=null!=qi?this.filter_.updatePriority(Gi,qi):ft.getNode()}else{var Zr=v.popFront(),Lr=void 0;if(ft.isCompleteForChild(wi)){dn=u.getServerCache().getNode();var _s=T.calcEventCacheAfterServerOverwrite(v,ft.getNode(),dn);Lr=null!=_s?ft.getNode().getImmediateChild(wi).updateChild(Zr,_s):ft.getNode().getImmediateChild(wi)}else Lr=T.calcCompleteChild(wi,u.getServerCache());Ut=null!=Lr?this.filter_.updateChild(ft.getNode(),wi,Lr,Zr,ie,we):ft.getNode()}}return u.updateEventSnap(Ut,ft.isFullyInitialized()||v.isEmpty(),this.filter_.filtersNodes())},g.prototype.applyServerOverwrite_=function(u,v,T,ie,we,ft,Ut){var tn,dn=u.getServerCache(),Bn=ft?this.filter_:this.filter_.getIndexedFilter();if(v.isEmpty())tn=Bn.updateFullNode(dn.getNode(),T,null);else if(Bn.filtersNodes()&&!dn.isFiltered()){var Kn=dn.getNode().updateChild(v,T);tn=Bn.updateFullNode(dn.getNode(),Kn,null)}else{var ri=v.getFront();if(!dn.isCompleteForPath(v)&&v.getLength()>1)return u;var wi=v.popFront(),qi=dn.getNode().getImmediateChild(ri).updateChild(wi,T);tn=".priority"===ri?Bn.updatePriority(dn.getNode(),qi):Bn.updateChild(dn.getNode(),ri,qi,wi,Xs,null)}var Zr=u.updateServerSnap(tn,dn.isFullyInitialized()||v.isEmpty(),Bn.filtersNodes()),Lr=new Mo(ie,Zr,we);return this.generateEventCacheAfterServerEvent_(Zr,v,ie,Lr,Ut)},g.prototype.applyUserOverwrite_=function(u,v,T,ie,we,ft){var dn,tn,Ut=u.getEventCache(),Bn=new Mo(ie,u,we);
1if(v.isEmpty())tn=this.filter_.updateFullNode(u.getEventCache().getNode(),T,ft),dn=u.updateEventSnap(tn,!0,this.filter_.filtersNodes());else{var Kn=v.getFront();if(".priority"===Kn)tn=this.filter_.updatePriority(u.getEventCache().getNode(),T),dn=u.updateEventSnap(tn,Ut.isFullyInitialized(),Ut.isFiltered());else{var ri=v.popFront(),wi=Ut.getNode().getImmediateChild(Kn),Gi=void 0;if(ri.isEmpty())Gi=T;else{var qi=Bn.getCompleteChild(Kn);Gi=null!=qi?".priority"===ri.getBack()&&qi.getChild(ri.parent()).isEmpty()?qi:qi.updateChild(ri,T):li.EMPTY_NODE}if(wi.equals(Gi))dn=u;else{var Zr=this.filter_.updateChild(Ut.getNode(),Kn,Gi,ri,Bn,ft);dn=u.updateEventSnap(Zr,Ut.isFullyInitialized(),this.filter_.filtersNodes())}}}return dn},g.cacheHasChild_=function(u,v){return u.getEventCache().isCompleteForChild(v)},g.prototype.applyUserMerge_=function(u,v,T,ie,we,ft){var Ut=this,dn=u;return T.foreach(function(tn,Bn){var Kn=v.child(tn);g.cacheHasChild_(u,Kn.getFront())&&(dn=Ut.applyUserOverwrite_(dn,Kn,Bn,ie,we,ft))}),T.foreach(function(tn,Bn){var Kn=v.child(tn);g.cacheHasChild_(u,Kn.getFront())||(dn=Ut.applyUserOverwrite_(dn,Kn,Bn,ie,we,ft))}),dn},g.prototype.applyMerge_=function(u,v){return v.foreach(function(T,ie){u=u.updateChild(T,ie)}),u},g.prototype.applyServerMerge_=function(u,v,T,ie,we,ft,Ut){var dn=this;if(u.getServerCache().getNode().isEmpty()&&!u.getServerCache().isFullyInitialized())return u;var Bn,tn=u;Bn=v.isEmpty()?T:vr.Empty.setTree(v,T);var Kn=u.getServerCache().getNode();return Bn.children.inorderTraversal(function(ri,wi){if(Kn.hasChild(ri)){var Gi=u.getServerCache().getNode().getImmediateChild(ri),qi=dn.applyMerge_(Gi,wi);tn=dn.applyServerOverwrite_(tn,new Ge(ri),qi,ie,we,ft,Ut)}}),Bn.children.inorderTraversal(function(ri,wi){var Gi=!u.getServerCache().isCompleteForChild(ri)&&null==wi.value;if(!Kn.hasChild(ri)&&!Gi){var qi=u.getServerCache().getNode().getImmediateChild(ri),Zr=dn.applyMerge_(qi,wi);tn=dn.applyServerOverwrite_(tn,new Ge(ri),Zr,ie,we,ft,Ut)}}),tn},g.prototype.ackUserWrite_=function(u,v,T,ie,we,ft){if(null!=ie.shadowingWrite(v))return u;var Ut=u.getServerCache().isFiltered(),dn=u.getServerCache();if(null!=T.value){if(v.isEmpty()&&dn.isFullyInitialized()||dn.isCompleteForPath(v))return this.applyServerOverwrite_(u,v,dn.getNode().getChild(v),ie,we,Ut,ft);if(v.isEmpty()){var tn=vr.Empty;return dn.getNode().forEachChild(Ye,function(Kn,ri){tn=tn.set(new Ge(Kn),ri)}),this.applyServerMerge_(u,v,tn,ie,we,Ut,ft)}return u}var Bn=vr.Empty;return T.foreach(function(Kn,ri){var wi=v.child(Kn);dn.isCompleteForPath(wi)&&(Bn=Bn.set(Kn,dn.getNode().getChild(wi)))}),this.applyServerMerge_(u,v,Bn,ie,we,Ut,ft)},g.prototype.listenComplete_=function(u,v,T,ie){var we=u.getServerCache(),ft=u.updateServerSnap(we.getNode(),we.isFullyInitialized()||v.isEmpty(),we.isFiltered());return this.generateEventCacheAfterServerEvent_(ft,v,T,Xs,ie)},g.prototype.revertUserWrite_=function(u,v,T,ie,we){var ft;if(null!=T.shadowingWrite(v))return u;var Ut=new Mo(T,u,ie),dn=u.getEventCache().getNode(),tn=void 0;if(v.isEmpty()||".priority"===v.getFront()){var Bn=void 0;if(u.getServerCache().isFullyInitialized())Bn=T.calcCompleteEventCache(u.getCompleteServerSnap());else{var Kn=u.getServerCache().getNode();y.assert(Kn instanceof li,"serverChildren would be complete if leaf node"),Bn=T.calcCompleteEventChildren(Kn)}tn=this.filter_.updateFullNode(dn,Bn,we)}else{var ri=v.getFront(),wi=T.calcCompleteChild(ri,u.getServerCache());null==wi&&u.getServerCache().isCompleteForChild(ri)&&(wi=dn.getImmediateChild(ri)),(tn=null!=wi?this.filter_.updateChild(dn,ri,wi,v.popFront(),Ut,
1we):u.getEventCache().getNode().hasChild(ri)?this.filter_.updateChild(dn,ri,li.EMPTY_NODE,v.popFront(),Ut,we):dn).isEmpty()&&u.getServerCache().isFullyInitialized()&&(ft=T.calcCompleteEventCache(u.getCompleteServerSnap())).isLeafNode()&&(tn=this.filter_.updateFullNode(tn,ft,we))}return ft=u.getServerCache().isFullyInitialized()||null!=T.shadowingWrite(Ge.Empty),u.updateEventSnap(tn,ft,this.filter_.filtersNodes())},g}(),Dr=function(){function g(u){this.query_=u,this.index_=this.query_.getQueryParams().getIndex()}return g.prototype.generateEventsForChanges=function(u,v,T){var ie=this,we=[],ft=[];return u.forEach(function(Ut){Ut.type===Ar.CHILD_CHANGED&&ie.index_.indexedValueChanged(Ut.oldSnap,Ut.snapshotNode)&&ft.push(Ar.childMovedChange(Ut.childName,Ut.snapshotNode))}),this.generateEventsForType_(we,Ar.CHILD_REMOVED,u,T,v),this.generateEventsForType_(we,Ar.CHILD_ADDED,u,T,v),this.generateEventsForType_(we,Ar.CHILD_MOVED,ft,T,v),this.generateEventsForType_(we,Ar.CHILD_CHANGED,u,T,v),this.generateEventsForType_(we,Ar.VALUE,u,T,v),we},g.prototype.generateEventsForType_=function(u,v,T,ie,we){var ft=this,Ut=T.filter(function(dn){return dn.type===v});Ut.sort(this.compareChanges_.bind(this)),Ut.forEach(function(dn){var tn=ft.materializeSingleChange_(dn,we);ie.forEach(function(Bn){Bn.respondsTo(dn.type)&&u.push(Bn.createEvent(tn,ft.query_))})})},g.prototype.materializeSingleChange_=function(u,v){return"value"===u.type||"child_removed"===u.type||(u.prevName=v.getPredecessorChildName(u.childName,u.snapshotNode,this.index_)),u},g.prototype.compareChanges_=function(u,v){if(null==u.childName||null==v.childName)throw y.assertionError("Should only compare child_ events.");var T=new Ke(u.childName,u.snapshotNode),ie=new Ke(v.childName,v.snapshotNode);return this.index_.compare(T,ie)},g}(),mo=function(){function g(u,v){this.query_=u,this.eventRegistrations_=[];var T=this.query_.getQueryParams(),ie=new lo(T.getIndex()),we=T.getNodeFilter();this.processor_=new Fs(we);var ft=v.getServerCache(),Ut=v.getEventCache(),dn=ie.updateFullNode(li.EMPTY_NODE,ft.getNode(),null),tn=we.updateFullNode(li.EMPTY_NODE,Ut.getNode(),null),Bn=new to(dn,ft.isFullyInitialized(),ie.filtersNodes()),Kn=new to(tn,Ut.isFullyInitialized(),we.filtersNodes());this.viewCache_=new ms(Kn,Bn),this.eventGenerator_=new Dr(this.query_)}return g.prototype.getQuery=function(){return this.query_},g.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},g.prototype.getCompleteServerCache=function(u){var v=this.viewCache_.getCompleteServerSnap();return v&&(this.query_.getQueryParams().loadsAllData()||!u.isEmpty()&&!v.getImmediateChild(u.getFront()).isEmpty())?v.getChild(u):null},g.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},g.prototype.addEventRegistration=function(u){this.eventRegistrations_.push(u)},g.prototype.removeEventRegistration=function(u,v){var T=[];if(v){y.assert(null==u,"A cancel should cancel all event registrations.");var ie=this.query_.path;this.eventRegistrations_.forEach(function(dn){var tn=dn.createCancelEvent(v,ie);tn&&T.push(tn)})}if(u){for(var we=[],ft=0;ft<this.eventRegistrations_.length;++ft){var Ut=this.eventRegistrations_[ft];if(Ut.matches(u)){if(u.hasAnyCallback()){we=we.concat(this.eventRegistrations_.slice(ft+1));break}}else we.push(Ut)}this.eventRegistrations_=we}else this.eventRegistrations_=[];return T},g.prototype.applyOperation=function(u,v,T){u.type===Kr.MERGE&&null!==u.source.queryId&&(y.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),y.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var ie=this.viewCache_,we=this.processor_.applyOperation(ie,u,v,T);return this.processor_.assertIndexed(we.viewCache),y.assert(we.viewCache.getServerCache().isFullyInitialized()||!ie.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=we.viewCache,this.generateEventsForChanges_(we.changes,we.viewCache.getEventCache().getNode(),null)},g.prototype.getInitialEvents=function(u){var v=this.viewCache_.getEventCache(),T=[];
1return v.getNode().isLeafNode()||v.getNode().forEachChild(gn,function(we,ft){T.push(Ar.childAddedChange(we,ft))}),v.isFullyInitialized()&&T.push(Ar.valueChange(v.getNode())),this.generateEventsForChanges_(T,v.getNode(),u)},g.prototype.generateEventsForChanges_=function(u,v,T){return this.eventGenerator_.generateEventsForChanges(u,v,T?[T]:this.eventRegistrations_)},g}(),bs=function(){function g(){this.views=new Map}return Object.defineProperty(g,"__referenceConstructor",{get:function(){return y.assert(Ws,"Reference.ts has not been loaded"),Ws},set:function(u){y.assert(!Ws,"__referenceConstructor has already been defined"),Ws=u},enumerable:!1,configurable:!0}),g.prototype.isEmpty=function(){return 0===this.views.size},g.prototype.applyOperation=function(u,v,T){var ie,we,ft=u.source.queryId;if(null!==ft){var Ut=this.views.get(ft);return y.assert(null!=Ut,"SyncTree gave us an op for an invalid query."),Ut.applyOperation(u,v,T)}var dn=[];try{for(var tn=_.__values(this.views.values()),Bn=tn.next();!Bn.done;Bn=tn.next())dn=dn.concat((Ut=Bn.value).applyOperation(u,v,T))}catch(Kn){ie={error:Kn}}finally{try{Bn&&!Bn.done&&(we=tn.return)&&we.call(tn)}finally{if(ie)throw ie.error}}return dn},g.prototype.addEventRegistration=function(u,v,T,ie,we){var ft=u.queryIdentifier(),Ut=this.views.get(ft);if(!Ut){var dn=T.calcCompleteEventCache(we?ie:null),tn=!1;dn?tn=!0:ie instanceof li?(dn=T.calcCompleteEventChildren(ie),tn=!1):(dn=li.EMPTY_NODE,tn=!1);var Bn=new ms(new to(dn,tn,!1),new to(ie,we,!1));Ut=new mo(u,Bn),this.views.set(ft,Ut)}return Ut.addEventRegistration(v),Ut.getInitialEvents(v)},g.prototype.removeEventRegistration=function(u,v,T){var ie,we,ft=u.queryIdentifier(),Ut=[],dn=[],tn=this.hasCompleteView();if("default"===ft)try{for(var Bn=_.__values(this.views.entries()),Kn=Bn.next();!Kn.done;Kn=Bn.next()){var Gi,ri=_.__read(Kn.value,2),wi=ri[0];dn=dn.concat((Gi=ri[1]).removeEventRegistration(v,T)),Gi.isEmpty()&&(this.views.delete(wi),Gi.getQuery().getQueryParams().loadsAllData()||Ut.push(Gi.getQuery()))}}catch(qi){ie={error:qi}}finally{try{Kn&&!Kn.done&&(we=Bn.return)&&we.call(Bn)}finally{if(ie)throw ie.error}}else(Gi=this.views.get(ft))&&(dn=dn.concat(Gi.removeEventRegistration(v,T)),Gi.isEmpty()&&(this.views.delete(ft),Gi.getQuery().getQueryParams().loadsAllData()||Ut.push(Gi.getQuery())));return tn&&!this.hasCompleteView()&&Ut.push(new g.__referenceConstructor(u.repo,u.path)),{removed:Ut,events:dn}},g.prototype.getQueryViews=function(){var u,v,T=[];try{for(var ie=_.__values(this.views.values()),we=ie.next();!we.done;we=ie.next()){var ft=we.value;ft.getQuery().getQueryParams().loadsAllData()||T.push(ft)}}catch(Ut){u={error:Ut}}finally{try{we&&!we.done&&(v=ie.return)&&v.call(ie)}finally{if(u)throw u.error}}return T},g.prototype.getCompleteServerCache=function(u){var v,T,ie=null;try{for(var we=_.__values(this.views.values()),ft=we.next();!ft.done;ft=we.next())ie=ie||ft.value.getCompleteServerCache(u)}catch(dn){v={error:dn}}finally{try{ft&&!ft.done&&(T=we.return)&&T.call(we)}finally{if(v)throw v.error}}return ie},g.prototype.viewForQuery=function(u){if(u.getQueryParams().loadsAllData())return this.getCompleteView();var T=u.queryIdentifier();return this.views.get(T)},g.prototype.viewExistsForQuery=function(u){return null!=this.viewForQuery(u)},g.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},g.prototype.getCompleteView=function(){var u,v;try{for(var T=_.__values(this.views.values()),ie=T.next();!ie.done;ie=T.next()){var we=ie.value;if(we.getQuery().getQueryParams().loadsAllData())return we}}catch(ft){u={error:ft}}finally{try{ie&&!ie.done&&(v=T.return)&&v.call(T)}finally{if(u)throw u.error}}return null},g}(),ws=function(){function g(u){this.writeTree_=u}return g.prototype.addWrite=function(u,v){if(u.isEmpty())return new g(new vr(v));var T=this.writeTree_.findRootMostValueAndPath(u);if(null!=T){var ie=T.path,we=T.value,ft=Ge.relativePath(ie,u);return we=we.updateChild(ft,v),new g(this.writeTree_.set(ie,we))}var Ut=new vr(v);return new g(this.writeTree_.setTree(u,Ut))},g.prototype.addWrites=function(u,v){var T=this;return fe(v,function(ie,we){T=T.addWrite(u.child(ie),we)}),T},g.prototype.removeWrite=function(u){return u.isEmpty()?g.Empty:new g(this.writeTree_.setTree(u,vr.Empty))},g.prototype.hasCompleteWrite=function(u){return null!=this.getCompleteNode(u)},g.prototype.getCompleteNode=function(u){var v=this.writeTree_.findRootMostValueAndPath(u);return null!=v?this.writeTree_.get(v.path).getChild(Ge.relativePath(v.path,u)):null},g.prototype.getCompleteChildren=function(){var u=[],v=this.writeTree_.value;return null!=v?v.isLeafNode()||v.forEachChild(gn,function(T,ie){u.push(new Ke(T,ie))}):this.writeTree_.children.inorderTraversal(function(T,ie){null!=ie.value&&u.push(new Ke(T,ie.value))}),u},g.prototype.childCompoundWrite=function(u){if(u.isEmpty())return this;var v=this.getCompleteNode(u);return new g(null!=v?new vr(v):this.writeTree_.subtree(u))},g.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},g.prototype.apply=function(u){return vt(Ge.Empty,this.writeTree_,u)},g.Empty=new g(new vr(null)),g}();function vt(g,u,v){if(null!=u.value)return v.updateChild(g,u.value);var T=null;return u.children.inorderTraversal(function(ie,we){".priority"===ie?
1(y.assert(null!==we.value,"Priority writes must always be leaf nodes"),T=we.value):v=vt(g.child(ie),we,v)}),!v.getChild(g).isEmpty()&&null!==T&&(v=v.updateChild(g.child(".priority"),T)),v}var pt=function(){function g(){this.visibleWrites_=ws.Empty,this.allWrites_=[],this.lastWriteId_=-1}return g.prototype.childWrites=function(u){return new Zt(u,this)},g.prototype.addOverwrite=function(u,v,T,ie){y.assert(T>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===ie&&(ie=!0),this.allWrites_.push({path:u,snap:v,writeId:T,visible:ie}),ie&&(this.visibleWrites_=this.visibleWrites_.addWrite(u,v)),this.lastWriteId_=T},g.prototype.addMerge=function(u,v,T){y.assert(T>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:u,children:v,writeId:T,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(u,v),this.lastWriteId_=T},g.prototype.getWrite=function(u){for(var v=0;v<this.allWrites_.length;v++){var T=this.allWrites_[v];if(T.writeId===u)return T}return null},g.prototype.removeWrite=function(u){var v=this,T=this.allWrites_.findIndex(function(Bn){return Bn.writeId===u});y.assert(T>=0,"removeWrite called with nonexistent writeId.");var ie=this.allWrites_[T];this.allWrites_.splice(T,1);for(var we=ie.visible,ft=!1,Ut=this.allWrites_.length-1;we&&Ut>=0;){var dn=this.allWrites_[Ut];dn.visible&&(Ut>=T&&this.recordContainsPath_(dn,ie.path)?we=!1:ie.path.contains(dn.path)&&(ft=!0)),Ut--}return!!we&&(ft?(this.resetTree_(),!0):(ie.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(ie.path):fe(ie.children,function(Bn){v.visibleWrites_=v.visibleWrites_.removeWrite(ie.path.child(Bn))}),!0))},g.prototype.getCompleteWriteData=function(u){return this.visibleWrites_.getCompleteNode(u)},g.prototype.calcCompleteEventCache=function(u,v,T,ie){if(T||ie){var dn=this.visibleWrites_.childCompoundWrite(u);return!ie&&dn.isEmpty()?v:ie||null!=v||dn.hasCompleteWrite(Ge.Empty)?g.layerTree_(this.allWrites_,function(ri){return(ri.visible||ie)&&(!T||!~T.indexOf(ri.writeId))&&(ri.path.contains(u)||u.contains(ri.path))},u).apply(v||li.EMPTY_NODE):null}var we=this.visibleWrites_.getCompleteNode(u);if(null!=we)return we;var ft=this.visibleWrites_.childCompoundWrite(u);return ft.isEmpty()?v:null!=v||ft.hasCompleteWrite(Ge.Empty)?ft.apply(v||li.EMPTY_NODE):null},g.prototype.calcCompleteEventChildren=function(u,v){var T=li.EMPTY_NODE,ie=this.visibleWrites_.getCompleteNode(u);if(ie)return ie.isLeafNode()||ie.forEachChild(gn,function(Ut,dn){T=T.updateImmediateChild(Ut,dn)}),T;if(v){var we=this.visibleWrites_.childCompoundWrite(u);return v.forEachChild(gn,function(Ut,dn){var tn=we.childCompoundWrite(new Ge(Ut)).apply(dn);T=T.updateImmediateChild(Ut,tn)}
1),we.getCompleteChildren().forEach(function(Ut){T=T.updateImmediateChild(Ut.name,Ut.node)}),T}return this.visibleWrites_.childCompoundWrite(u).getCompleteChildren().forEach(function(Ut){T=T.updateImmediateChild(Ut.name,Ut.node)}),T},g.prototype.calcEventCacheAfterServerOverwrite=function(u,v,T,ie){y.assert(T||ie,"Either existingEventSnap or existingServerSnap must exist");var we=u.child(v);if(this.visibleWrites_.hasCompleteWrite(we))return null;var ft=this.visibleWrites_.childCompoundWrite(we);return ft.isEmpty()?ie.getChild(v):ft.apply(ie.getChild(v))},g.prototype.calcCompleteChild=function(u,v,T){var ie=u.child(v),we=this.visibleWrites_.getCompleteNode(ie);return null!=we?we:T.isCompleteForChild(v)?this.visibleWrites_.childCompoundWrite(ie).apply(T.getNode().getImmediateChild(v)):null},g.prototype.shadowingWrite=function(u){return this.visibleWrites_.getCompleteNode(u)},g.prototype.calcIndexedSlice=function(u,v,T,ie,we,ft){var Ut,dn=this.visibleWrites_.childCompoundWrite(u),tn=dn.getCompleteNode(Ge.Empty);if(null!=tn)Ut=tn;else{if(null==v)return[];Ut=dn.apply(v)}if((Ut=Ut.withIndex(ft)).isEmpty()||Ut.isLeafNode())return[];for(var Bn=[],Kn=ft.getCompare(),ri=we?Ut.getReverseIteratorFrom(T,ft):Ut.getIteratorFrom(T,ft),wi=ri.getNext();wi&&Bn.length<ie;)0!==Kn(wi,T)&&Bn.push(wi),wi=ri.getNext();return Bn},g.prototype.recordContainsPath_=function(u,v){if(u.snap)return u.path.contains(v);for(var T in u.children)if(u.children.hasOwnProperty(T)&&u.path.child(T).contains(v))return!0;return!1},g.prototype.resetTree_=function(){this.visibleWrites_=g.layerTree_(this.allWrites_,g.DefaultFilter_,Ge.Empty),this.lastWriteId_=this.allWrites_.length>0?this.allWrites_[this.allWrites_.length-1].writeId:-1},g.DefaultFilter_=function(u){return u.visible},g.layerTree_=function(u,v,T){for(var ie=ws.Empty,we=0;we<u.length;++we){var ft=u[we];if(v(ft)){var Ut=ft.path,dn=void 0;if(ft.snap)T.contains(Ut)?(dn=Ge.relativePath(T,Ut),ie=ie.addWrite(dn,ft.snap)):Ut.contains(T)&&(dn=Ge.relativePath(Ut,T),ie=ie.addWrite(Ge.Empty,ft.snap.getChild(dn)));else{if(!ft.children)throw y.assertionError("WriteRecord should have .snap or .children");if(T.contains(Ut))dn=Ge.relativePath(T,Ut),ie=ie.addWrites(dn,ft.children);else if(Ut.contains(T))if((dn=Ge.relativePath(Ut,T)).isEmpty())ie=ie.addWrites(Ge.Empty,ft.children);else{var tn=y.safeGet(ft.children,dn.getFront());if(tn){var Bn=tn.getChild(dn.popFront());ie=ie.addWrite(Ge.Empty,Bn)}}}}}return ie},g}(),Zt=function(){function g(u,v){this.treePath_=u,this.writeTree_=v}return g.prototype.calcCompleteEventCache=function(u,v,T){return this.writeTree_.calcCompleteEventCache(this.treePath_,u,v,T)},g.prototype.calcCompleteEventChildren=function(u){return this.writeTree_.calcCompleteEventChildren(this.treePath_,u)},g.prototype.calcEventCacheAfterServerOverwrite=function(u,v,T){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,u,v,T)},g.prototype.shadowingWrite=function(u){return this.writeTree_.shadowingWrite(this.treePath_.child(u))},g.prototype.calcIndexedSlice=function(u,v,T,ie,we){return this.writeTree_.calcIndexedSlice(this.treePath_,u,v,T,ie,we)},g.prototype.calcCompleteChild=function(u,v){return this.writeTree_.calcCompleteChild(this.treePath_,u,v)},g.prototype.child=function(u){return new g(this.treePath_.child(u),this.writeTree_)},g}(),yn=function(){function g(u){this.listenProvider_=u,this.syncPointTree_=vr.Empty,this.pendingWriteTree_=new pt,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return g.prototype.applyUserOverwrite=function(u,v,T,ie){return this.pendingWriteTree_.addOverwrite(u,v,T,ie),ie?this.applyOperationToSyncPoints_(new Ps(zs.User,u,v)):[]},g.prototype.applyUserMerge=function(u,v,T){this.pendingWriteTree_.addMerge(u,v,T);var ie=vr.fromObject(v);return this.applyOperationToSyncPoints_(new Ao(zs.User,u,ie))},g.prototype.ackUserWrite=function(u,v){void 0===v&&(v=!1);var T=this.pendingWriteTree_.getWrite(u);if(this.pendingWriteTree_.removeWrite(u)){var we=vr.Empty;return null!=T.snap?we=we.set(Ge.Empty,!0):fe(T.children,function(ft,Ut){we=we.set(new Ge(ft),Ut)}),this.applyOperationToSyncPoints_(new Ro(T.path,we,v))}return[]},g.prototype.applyServerOverwrite=function(u,v){return this.applyOperationToSyncPoints_(new Ps(zs.Server,u,v))},g.prototype.applyServerMerge=function(u,v){var T=vr.fromObject(v);return this.applyOperationToSyncPoints_(new Ao(zs.Server,u,T))},g.prototype.applyListenComplete=function(u){return this.applyOperationToSyncPoints_(new Po(zs.Server,u))},g.prototype.applyTaggedQueryOverwrite=function(u,v,T){var ie=this.queryKeyForTag_(T);if(null!=ie){var we=g.parseQueryKey_(ie),ft=we.path,Ut=we.queryId,dn=Ge.relativePath(ft,u),tn=new Ps(zs.forServerTaggedQuery(Ut),dn,v);
1return this.applyTaggedOperation_(ft,tn)}return[]},g.prototype.applyTaggedQueryMerge=function(u,v,T){var ie=this.queryKeyForTag_(T);if(ie){var we=g.parseQueryKey_(ie),ft=we.path,Ut=we.queryId,dn=Ge.relativePath(ft,u),tn=vr.fromObject(v),Bn=new Ao(zs.forServerTaggedQuery(Ut),dn,tn);return this.applyTaggedOperation_(ft,Bn)}return[]},g.prototype.applyTaggedListenComplete=function(u,v){var T=this.queryKeyForTag_(v);if(T){var ie=g.parseQueryKey_(T),we=ie.path,ft=ie.queryId,Ut=Ge.relativePath(we,u),dn=new Po(zs.forServerTaggedQuery(ft),Ut);return this.applyTaggedOperation_(we,dn)}return[]},g.prototype.addEventRegistration=function(u,v){var T=u.path,ie=null,we=!1;this.syncPointTree_.foreachOnPath(T,function(qi,Zr){var Lr=Ge.relativePath(qi,T);ie=ie||Zr.getCompleteServerCache(Lr),we=we||Zr.hasCompleteView()});var Ut,ft=this.syncPointTree_.get(T);ft?(we=we||ft.hasCompleteView(),ie=ie||ft.getCompleteServerCache(Ge.Empty)):(ft=new bs,this.syncPointTree_=this.syncPointTree_.set(T,ft)),null!=ie?Ut=!0:(Ut=!1,ie=li.EMPTY_NODE,this.syncPointTree_.subtree(T).foreachChild(function(qi,Zr){var Lr=Zr.getCompleteServerCache(Ge.Empty);Lr&&(ie=ie.updateImmediateChild(qi,Lr))}));var tn=ft.viewExistsForQuery(u);if(!tn&&!u.getQueryParams().loadsAllData()){var Bn=g.makeQueryKey_(u);y.assert(!this.queryToTagMap.has(Bn),"View does not exist, but we have a tag");var Kn=g.getNextQueryTag_();this.queryToTagMap.set(Bn,Kn),this.tagToQueryMap.set(Kn,Bn)}var ri=this.pendingWriteTree_.childWrites(T),wi=ft.addEventRegistration(u,v,ri,ie,Ut);if(!tn&&!we){var Gi=ft.viewForQuery(u);wi=wi.concat(this.setupListener_(u,Gi))}return wi},g.prototype.removeEventRegistration=function(u,v,T){var ie=this,we=u.path,ft=this.syncPointTree_.get(we),Ut=[];if(ft&&("default"===u.queryIdentifier()||ft.viewExistsForQuery(u))){var dn=ft.removeEventRegistration(u,v,T);ft.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(we));var tn=dn.removed;Ut=dn.events;var Bn=-1!==tn.findIndex(function(Fo){return Fo.getQueryParams().loadsAllData()}),Kn=this.syncPointTree_.findOnPath(we,function(Fo,sa){return sa.hasCompleteView()});if(Bn&&!Kn){var ri=this.syncPointTree_.subtree(we);if(!ri.isEmpty())for(var wi=this.collectDistinctViewsForSubTree_(ri),Gi=0;Gi<wi.length;++Gi){var qi=wi[Gi],Zr=qi.getQuery(),Lr=this.createListenerForView_(qi);this.listenProvider_.startListening(g.queryForListening_(Zr),this.tagForQuery_(Zr),Lr.hashFn,Lr.onComplete)}}!Kn&&tn.length>0&&!T&&(Bn?this.listenProvider_.stopListening(g.queryForListening_(u),null):tn.forEach(function(Fo){var sa=ie.queryToTagMap.get(g.makeQueryKey_(Fo));ie.listenProvider_.stopListening(g.queryForListening_(Fo),sa)})),this.removeTags_(tn)}return Ut},g.prototype.calcCompleteEventCache=function(u,v){var ie=this.pendingWriteTree_,we=this.syncPointTree_.findOnPath(u,function(ft,Ut){var dn=Ge.relativePath(ft,u),tn=Ut.getCompleteServerCache(dn);if(tn)return tn});return ie.calcCompleteEventCache(u,we,v,!0)},g.prototype.collectDistinctViewsForSubTree_=function(u){return u.fold(function(v,T,ie){if(T&&T.hasCompleteView())return[T.getCompleteView()];var ft=[];return T&&(ft=T.getQueryViews()),fe(ie,function(Ut,dn){ft=ft.concat(dn)}),ft})},g.prototype.removeTags_=function(u){for(var v=0;v<u.length;++v){var T=u[v];if(!T.getQueryParams().loadsAllData()){var ie=g.makeQueryKey_(T),we=this.queryToTagMap.get(ie);this.queryToTagMap.delete(ie),this.tagToQueryMap.delete(we)}}},g.queryForListening_=function(u){return u.getQueryParams().loadsAllData()&&
1!u.getQueryParams().isDefault()?u.getRef():u},g.prototype.setupListener_=function(u,v){var T=u.path,ie=this.tagForQuery_(u),we=this.createListenerForView_(v),ft=this.listenProvider_.startListening(g.queryForListening_(u),ie,we.hashFn,we.onComplete),Ut=this.syncPointTree_.subtree(T);if(ie)y.assert(!Ut.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var dn=Ut.fold(function(Kn,ri,wi){if(!Kn.isEmpty()&&ri&&ri.hasCompleteView())return[ri.getCompleteView().getQuery()];var Gi=[];return ri&&(Gi=Gi.concat(ri.getQueryViews().map(function(qi){return qi.getQuery()}))),fe(wi,function(qi,Zr){Gi=Gi.concat(Zr)}),Gi}),tn=0;tn<dn.length;++tn){var Bn=dn[tn];this.listenProvider_.stopListening(g.queryForListening_(Bn),this.tagForQuery_(Bn))}return ft},g.prototype.createListenerForView_=function(u){var v=this,T=u.getQuery(),ie=this.tagForQuery_(T);return{hashFn:function(){return(u.getServerCache()||li.EMPTY_NODE).hash()},onComplete:function(we){if("ok"===we)return ie?v.applyTaggedListenComplete(T.path,ie):v.applyListenComplete(T.path);var ft=function(g,u){var v="Unknown Error";"too_big"===g?v="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===g?v="Client doesn't have permission to access the desired data.":"unavailable"===g&&(v="The service is unavailable");var T=new Error(g+" at "+u.path.toString()+": "+v);return T.code=g.toUpperCase(),T}(we,T);return v.removeEventRegistration(T,null,ft)}}},g.makeQueryKey_=function(u){return u.path.toString()+"$"+u.queryIdentifier()},g.parseQueryKey_=function(u){var v=u.indexOf("$");return y.assert(-1!==v&&v<u.length-1,"Bad queryKey."),{queryId:u.substr(v+1),path:new Ge(u.substr(0,v))}},g.prototype.queryKeyForTag_=function(u){return this.tagToQueryMap.get(u)},g.prototype.tagForQuery_=function(u){var v=g.makeQueryKey_(u);return this.queryToTagMap.get(v)},g.getNextQueryTag_=function(){return g.nextQueryTag_++},g.prototype.applyTaggedOperation_=function(u,v){var T=this.syncPointTree_.get(u);y.assert(T,"Missing sync point for query tag that we're tracking");var ie=this.pendingWriteTree_.childWrites(u);return T.applyOperation(v,ie,null)},g.prototype.applyOperationToSyncPoints_=function(u){return this.applyOperationHelper_(u,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(Ge.Empty))},g.prototype.applyOperationHelper_=function(u,v,T,ie){if(u.path.isEmpty())return this.applyOperationDescendantsHelper_(u,v,T,ie);var we=v.get(Ge.Empty);null==T&&null!=we&&(T=we.getCompleteServerCache(Ge.Empty));var ft=[],Ut=u.path.getFront(),dn=u.operationForChild(Ut),tn=v.children.get(Ut);if(tn&&dn){var Bn=T?T.getImmediateChild(Ut):null,Kn=ie.child(Ut);ft=ft.concat(this.applyOperationHelper_(dn,tn,Bn,Kn))}return we&&(ft=ft.concat(we.applyOperation(u,ie,T))),ft},g.prototype.applyOperationDescendantsHelper_=function(u,v,T,ie){var we=this,ft=v.get(Ge.Empty);null==T&&null!=ft&&(T=ft.getCompleteServerCache(Ge.Empty));var Ut=[];return v.children.inorderTraversal(function(dn,tn){var Bn=T?T.getImmediateChild(dn):null,Kn=ie.child(dn),ri=u.operationForChild(dn);ri&&(Ut=Ut.concat(we.applyOperationDescendantsHelper_(ri,tn,Bn,Kn)))}),ft&&(Ut=Ut.concat(ft.applyOperation(u,ie,T))),Ut},g.nextQueryTag_=1,g}(),Mn=function(){function g(){this.rootNode_=li.EMPTY_NODE}return g.prototype.getNode=function(u){return this.rootNode_.getChild(u)},g.prototype.updateSnapshot=function(u,v){this.rootNode_=this.rootNode_.updateChild(u,v)},g}(),jn=function(){function g(){this.counters_={}}return g.prototype.incrementCounter=function(u,v){void 0===v&&(v=1),y.contains(this.counters_,u)||(this.counters_[u]=0),this.counters_[u]+=v},g.prototype.get=function(){return y.deepCopy(this.counters_)},g}(),ti=function(){function g(){}return g.getCollection=function(u){var v=u.toString();return this.collections_[v]||(this.collections_[v]=new jn),this.collections_[v]},g.getOrCreateReporter=function(u,v){var T=u.toString();return this.reporters_[T]||(this.reporters_[T]=v()),this.reporters_[T]},g.collections_={},g.reporters_={},g}(),pi=function(){function g(u){this.collection_=u,this.last_=null}return g.prototype.get=function(){var u=this.collection_.get(),v=_.__assign({},u);return this.last_&&fe(this.last_,function(T,ie){v[T]=v[T]-ie}),this.last_=u,v},g}(),Xi=function(){function g(u,v){this.server_=v,this.statsToReport_={},this.statsListener_=new pi(u);var T=1e4+2e4*Math.random();ut(this.reportStats_.bind(this),Math.floor(T))}return g.prototype.includeStat=function(u){this.statsToReport_[u]=!0},g.prototype.reportStats_=function(){var u=this,v=this.statsListener_.get(),T={},ie=!1;fe(v,function(we,ft){ft>0&&y.contains(u.statsToReport_,we)&&(T[we]=ft,ie=!0)}),ie&&this.server_.reportStats(T),ut(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},g}(),tr=function(){function g(){this.eventLists_=[],this.recursionDepth_=0}return g.prototype.queueEvents=function(u){for(var v=null,T=0;T<u.length;T++){var ie=u[T],we=ie.getPath();null!==v&&!we.equals(v.getPath())&&(this.eventLists_.push(v),v=null),null===v&&(v=new Qr(we)),v.add(ie)}v&&this.eventLists_.push(v)},g.prototype.raiseEventsAtPath=function(u,v){this.queueEvents(v),this.raiseQueuedEventsMatchingPredicate_(function(T){return T.equals(u)})},g.prototype.raiseEventsForChangedPath=function(u,v){this.queueEvents(v),this.raiseQueuedEventsMatchingPredicate_(function(T){return T.contains(u)||u.contains(T)})},g.prototype.raiseQueuedEventsMatchingPredicate_=function(u){this.recursionDepth_++;for(var v=!0,T=0;T<this.eventLists_.length;T++){var ie=this.eventLists_[T];ie&&(u(ie.getPath())?(this.eventLists_[T].raise(),this.eventLists_[T]=null):v=!1)}v&&(this.eventLists_=[]),this.recursionDepth_--},g}(),Qr=function(){function g(u){this.path_=u,this.events_=[]}
1return g.prototype.add=function(u){this.events_.push(u)},g.prototype.raise=function(){for(var u=0;u<this.events_.length;u++){var v=this.events_[u];if(null!==v){this.events_[u]=null;var T=v.getEventRunner();Q&&Y("event: "+v.toString()),Ve(T)}}},g.prototype.getPath=function(){return this.path_},g}(),pr=function(){function g(u){this.allowedEvents_=u,this.listeners_={},y.assert(Array.isArray(u)&&u.length>0,"Requires a non-empty array")}return g.prototype.trigger=function(u){for(var v=[],T=1;T<arguments.length;T++)v[T-1]=arguments[T];if(Array.isArray(this.listeners_[u]))for(var ie=_.__spread(this.listeners_[u]),we=0;we<ie.length;we++)ie[we].callback.apply(ie[we].context,v)},g.prototype.on=function(u,v,T){this.validateEventType_(u),this.listeners_[u]=this.listeners_[u]||[],this.listeners_[u].push({callback:v,context:T});var ie=this.getInitialEvent(u);ie&&v.apply(T,ie)},g.prototype.off=function(u,v,T){this.validateEventType_(u);for(var ie=this.listeners_[u]||[],we=0;we<ie.length;we++)if(ie[we].callback===v&&(!T||T===ie[we].context))return void ie.splice(we,1)},g.prototype.validateEventType_=function(u){y.assert(this.allowedEvents_.find(function(v){return v===u}),"Unknown event: "+u)},g}(),ts=function(g){function u(){var T,ie,v=g.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(ie="visibilitychange",T="hidden"):void 0!==document.mozHidden?(ie="mozvisibilitychange",T="mozHidden"):void 0!==document.msHidden?(ie="msvisibilitychange",T="msHidden"):void 0!==document.webkitHidden&&(ie="webkitvisibilitychange",T="webkitHidden")),v.visible_=!0,ie&&document.addEventListener(ie,function(){var we=!document[T];we!==v.visible_&&(v.visible_=we,v.trigger("visible",we))},!1),v}return _.__extends(u,g),u.getInstance=function(){return new u},u.prototype.getInitialEvent=function(v){return y.assert("visible"===v,"Unknown event type: "+v),[this.visible_]},u}(pr),jr=function(g){function u(){var v=g.call(this,["online"])||this;return v.online_=!0,"undefined"!=typeof window&&void 0!==window.addEventListener&&!y.isMobileCordova()&&(window.addEventListener("online",function(){v.online_||(v.online_=!0,v.trigger("online",!0))},!1),window.addEventListener("offline",function(){v.online_&&(v.online_=!1,v.trigger("online",!1))},!1)),v}return _.__extends(u,g),u.getInstance=function(){return new u},u.prototype.getInitialEvent=function(v){return y.assert("online"===v,"Unknown event type: "+v),[this.online_]},u.prototype.currentlyOnline=function(){return this.online_},u}(pr),ps=function(){function g(u){this.onMessage_=u,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return g.prototype.closeAfter=function(u,v){this.closeAfterResponse=u,this.onClose=v,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},g.prototype.handleResponse=function(u,v){var T=this;this.pendingResponses[u]=v;for(var ie=function(){var Ut=we.pendingResponses[we.currentResponseNum];delete we.pendingResponses[we.currentResponseNum];for(var dn=function(Bn){Ut[Bn]&&Ve(function(){T.onMessage_(Ut[Bn])})},tn=0;tn<Ut.length;++tn)dn(tn);if(we.currentResponseNum===we.closeAfterResponse)return we.onClose&&(we.onClose(),we.onClose=null),"break";we.currentResponseNum++},we=this;this.pendingResponses[this.currentResponseNum]&&"break"!==ie(););},g}(),Ls=function(){function g(u,v,T,ie,we){this.connId=u,this.repoInfo=v,this.applicationId=T,this.transportSessionId=ie,this.lastSessionId=we,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=de(u),this.stats_=ti.getCollection(v),this.urlFn=function(ft){return v.connectionURL(Jt,ft)}}return g.prototype.open=function(u,v){var T=this;this.curSegmentNum=0,this.onDisconnect_=v,this.myPacketOrderer=new ps(u),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){T.log_("Timed out trying to connect."),T.onClosed_(),T.connectTimeoutTimer_=null},Math.floor(3e4)),function(g){if(y.isNodeSdk()||"complete"===document.readyState)g();else{var u=!1,v=function(){document.body?u||(u=!0,g()):setTimeout(v,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",v,!1),window.addEventListener("load",v,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&v()}),window.attachEvent("onload",v))}}(function(){if(!T.isClosed_){T.scriptTagHolder=new Br(function(){for(var ft=[],Ut=0;Ut<arguments.length;Ut++)ft[Ut]=arguments[Ut];var dn=_.__read(ft,5),tn=dn[0],Bn=dn[1],Kn=dn[2];if(T.incrementIncomingBytes_(ft),T.scriptTagHolder)if(T.connectTimeoutTimer_&&(clearTimeout(T.connectTimeoutTimer_),T.connectTimeoutTimer_=null),T.everConnected_=!0,"start"===tn)T.id=Bn,T.password=Kn;else{if("close"!==tn)throw new Error("Unrecognized command received: "+tn);Bn?(T.scriptTagHolder.sendNewPolls=!1,T.myPacketOrderer.closeAfter(
1Bn,function(){T.onClosed_()})):T.onClosed_()}},function(){for(var ft=[],Ut=0;Ut<arguments.length;Ut++)ft[Ut]=arguments[Ut];var dn=_.__read(ft,2),tn=dn[0],Bn=dn[1];T.incrementIncomingBytes_(ft),T.myPacketOrderer.handleResponse(tn,Bn)},function(){T.onClosed_()},T.urlFn);var ie={start:"t"};ie.ser=Math.floor(1e8*Math.random()),T.scriptTagHolder.uniqueCallbackIdentifier&&(ie.cb=T.scriptTagHolder.uniqueCallbackIdentifier),ie.v="5",T.transportSessionId&&(ie.s=T.transportSessionId),T.lastSessionId&&(ie.ls=T.lastSessionId),T.applicationId&&(ie.p=T.applicationId),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(cn)&&(ie.r="f");var we=T.urlFn(ie);T.log_("Connecting via long-poll to "+we),T.scriptTagHolder.addTag(we,function(){})}})},g.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},g.forceAllow=function(){g.forceAllow_=!0},g.forceDisallow=function(){g.forceDisallow_=!0},g.isAvailable=function(){return!(y.isNodeSdk()||!g.forceAllow_&&(g.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},g.prototype.markConnectionHealthy=function(){},g.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},g.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},g.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},g.prototype.send=function(u){var v=y.stringify(u);this.bytesSent+=v.length,this.stats_.incrementCounter("bytes_sent",v.length);for(var T=y.base64Encode(v),ie=he(T,1840),we=0;we<ie.length;we++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,ie.length,ie[we]),this.curSegmentNum++},g.prototype.addDisconnectPingFrame=function(u,v){if(!y.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var T={dframe:"t"};T.id=u,T.pw=v,this.myDisconnFrame.src=this.urlFn(T),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},g.prototype.incrementIncomingBytes_=function(u){var v=y.stringify(u).length;this.bytesReceived+=v,this.stats_.incrementCounter("bytes_received",v)},g}(),Br=function(){function g(u,v,T,ie){if(this.onDisconnect=T,this.urlFn=ie,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,y.isNodeSdk())this.commandCB=u,this.onMessageCB=v;else{this.uniqueCallbackIdentifier=Me(),window["pLPCommand"+this.uniqueCallbackIdentifier]=u,window["pRTLPCB"+this.uniqueCallbackIdentifier]=v,this.myIFrame=g.createIFrame_();var we="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(we='<script>document.domain="'+document.domain+'";<\/script>');var Ut="<html><body>"+we+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(Ut),this.myIFrame.doc.close()}catch(dn){Y("frame writing exception"),dn.stack&&Y(dn.stack),Y(dn)}}}return g.createIFrame_=function(){var u=document.createElement("iframe");if(u.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(u);try{u.contentWindow.document||Y("No IE domain setting required")}catch(ie){var T=document.domain;u.src="javascript:void((function(){document.open();document.domain='"+T+"';document.close();})())"}return u.contentDocument?u.doc=u.contentDocument:u.contentWindow?u.doc=u.contentWindow.document:u.document&&(u.doc=u.document),u},g.prototype.close=function(){var u=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==u.my
1IFrame&&(document.body.removeChild(u.myIFrame),u.myIFrame=null)},Math.floor(0)));var v=this.onDisconnect;v&&(this.onDisconnect=null,v())},g.prototype.startLongPoll=function(u,v){for(this.myID=u,this.myPW=v,this.alive=!0;this.newRequest_(););},g.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var u={};u.id=this.myID,u.pw=this.myPW,u.ser=this.currentSerial;for(var v=this.urlFn(u),T="",ie=0;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+T.length<=1870;){var ft=this.pendingSegs.shift();T=T+"&seg"+ie+"="+ft.seg+"&ts"+ie+"="+ft.ts+"&d"+ie+"="+ft.d,ie++}return this.addLongPollTag_(v+=T,this.currentSerial),!0}return!1},g.prototype.enqueueSegment=function(u,v,T){this.pendingSegs.push({seg:u,ts:v,d:T}),this.alive&&this.newRequest_()},g.prototype.addLongPollTag_=function(u,v){var T=this;this.outstandingRequests.add(v);var ie=function(){T.outstandingRequests.delete(v),T.newRequest_()},we=setTimeout(ie,Math.floor(25e3));this.addTag(u,function(){clearTimeout(we),ie()})},g.prototype.addTag=function(u,v){var T=this;y.isNodeSdk()?this.doNodeLongPoll(u,v):setTimeout(function(){try{if(!T.sendNewPolls)return;var ie=T.myIFrame.doc.createElement("script");ie.type="text/javascript",ie.async=!0,ie.src=u,ie.onload=ie.onreadystatechange=function(){var we=ie.readyState;(!we||"loaded"===we||"complete"===we)&&(ie.onload=ie.onreadystatechange=null,ie.parentNode&&ie.parentNode.removeChild(ie),v())},ie.onerror=function(){Y("Long-poll script failed to load: "+u),T.sendNewPolls=!1,T.close()},T.myIFrame.doc.body.appendChild(ie)}catch(we){}},Math.floor(1))},g}(),ji="",cs=null;"undefined"!=typeof MozWebSocket?cs=MozWebSocket:"undefined"!=typeof WebSocket&&(cs=WebSocket);var is=function(){function g(u,v,T,ie,we){this.connId=u,this.applicationId=T,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=de(this.connId),this.stats_=ti.getCollection(v),this.connURL=g.connectionURL_(v,ie,we),this.nodeAdmin=v.nodeAdmin}return g.connectionURL_=function(u,v,T){var ie={v:"5"};return!y.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(cn)&&(ie.r="f"),v&&(ie.s=v),T&&(ie.ls=T),u.connectionURL(ln,ie)},g.prototype.open=function(u,v){var T=this;this.onDisconnect=v,this.onMessage=u,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,te.set("previous_websocket_failure",!0);try{if(y.isNodeSdk()){var we={headers:{"User-Agent":"Firebase/5/"+ji+"/"+process.platform+"/"+(this.nodeAdmin?"AdminNode":"Node"),"X-Firebase-GMPID":this.applicationId||""}},ft=process.env,Ut=0===this.connURL.indexOf("wss://")?ft.HTTPS_PROXY||ft.https_proxy:ft.HTTP_PROXY||ft.http_proxy;Ut&&(we.proxy={origin:Ut}),this.mySock=new cs(this.connURL,[],we)}else this.mySock=new cs(this.connURL,[],we={headers:{"X-Firebase-GMPID":this.applicationId||""}})}catch(tn){this.log_("Error instantiating WebSocket.");var dn=tn.message||tn.data;return dn&&this.log_(dn),void this.onClosed_()}this.mySock.onopen=function(){T.log_("Websocket connected."),T.everConnected_=!0},this.mySock.onclose=function(){T.log_("Websocket connection was disconnected."),T.mySock=null,T.onClosed_()},this.mySock.onmessage=function(tn){T.handleIncomingFrame(tn)},this.mySock.onerror=function(tn){T.log_("WebSocket error. Closing connection.");var Bn=tn.message||tn.data;Bn&&T.log_(Bn),T.onClosed_()}},g.prototype.start=function(){},g.forceDisallow=function(){g.forceDisallow_=!0},g.isAvailable=function(){var u=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var T=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);T&&T.length>1&&parseFloat(T[1])<4.4&&(u=!0)}return!u&&null!==cs&&!g.forceDisallow_},g.previouslyFailed=function(){return te.isInMemoryStorage||!0===te.get("previous_websocket_failure")},g.prototype.markConnectionHealthy=function(){te.remove("previous_websocket_failure")},g.prototype.appendFrame_=function(u){if(this.frames.push(u),this.frames.length===this.totalFrames){var v=this.frames.join("");this.frames=null;var T=y.jsonEval(v);this.onMessage(T)}},g.prototype.handleNewFrameCount_=function(u){this.totalFrames=u,this.frames=[]},g.prototype.extractFrameCount_=function(u){if(y.assert(null===this.frames,"We already have a frame buffer"),u.length<=6){var v=Number(u);
1if(!isNaN(v))return this.handleNewFrameCount_(v),null}return this.handleNewFrameCount_(1),u},g.prototype.handleIncomingFrame=function(u){if(null!==this.mySock){var v=u.data;if(this.bytesReceived+=v.length,this.stats_.incrementCounter("bytes_received",v.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(v);else{var T=this.extractFrameCount_(v);null!==T&&this.appendFrame_(T)}}},g.prototype.send=function(u){this.resetKeepAlive();var v=y.stringify(u);this.bytesSent+=v.length,this.stats_.incrementCounter("bytes_sent",v.length);var T=he(v,16384);T.length>1&&this.sendString_(String(T.length));for(var ie=0;ie<T.length;ie++)this.sendString_(T[ie])},g.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},g.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},g.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},g.prototype.resetKeepAlive=function(){var u=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){u.mySock&&u.sendString_("0"),u.resetKeepAlive()},Math.floor(45e3))},g.prototype.sendString_=function(u){try{this.mySock.send(u)}catch(v){this.log_("Exception thrown from WebSocket.send():",v.message||v.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},g.responsesRequiredToBeHealthy=2,g.healthyTimeout=3e4,g}(),js=function(){function g(u){this.initTransports_(u)}return Object.defineProperty(g,"ALL_TRANSPORTS",{get:function(){return[Ls,is]},enumerable:!1,configurable:!0}),g.prototype.initTransports_=function(u){var v,T,ie=is&&is.isAvailable(),we=ie&&!is.previouslyFailed();if(u.webSocketOnly&&(ie||ne("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),we=!0),we)this.transports_=[is];else{var ft=this.transports_=[];try{for(var Ut=_.__values(g.ALL_TRANSPORTS),dn=Ut.next();!dn.done;dn=Ut.next()){var tn=dn.value;tn&&tn.isAvailable()&&ft.push(tn)}}catch(Bn){v={error:Bn}}finally{try{dn&&!dn.done&&(T=Ut.return)&&T.call(Ut)}finally{if(v)throw v.error}}}},g.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},g.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},g}(),mn=function(){function g(u,v,T,ie,we,ft,Ut,dn){this.id=u,this.repoInfo_=v,this.applicationId_=T,this.onMessage_=ie,this.onReady_=we,this.onDisconnect_=ft,this.onKill_=Ut,this.lastSessionId=dn,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=de("c:"+this.id+":"),this.transportManager_=new js(v),this.log_("Connection created"),this.start_()}return g.prototype.start_=function(){var u=this,v=this.transportManager_.initialTransport();this.conn_=new v(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=v.responsesRequiredToBeHealthy||0;var T=this.connReceiver_(this.conn_),ie=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){u.conn_&&u.conn_.open(T,ie)},Math.floor(0));var we=v.healthyTimeout||0;we>0&&(this.healthyTimeout_=ut(function(){u.healthyTimeout_=null,u.isHealthy_||(u.conn_&&u.conn_.bytesReceived>102400?(u.log_("Connection exceeded healthy timeout but has received "+u.conn_.bytesReceived+" bytes. Marking connection healthy."),u.isHealthy_=!0,u.conn_.markConnectionHealthy()):u.conn_&&u.conn_.bytesSent>10240?u.log_("Connection exceeded healthy timeout but has sent "+u.conn_.bytesSent+" bytes. Leaving connection alive."):(u.log_("Closing unhealthy connection after timeout."),u.close()))},Math.floor(we)))},g.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},g.prototype.disconnReceiver_=function(u){var v=this;return function(T){u===v.conn_?v.onConnectionLost_(T):u===v.secondaryConn_?(v.log_("Secondary connection lost."),v.onSecondaryConnectionLost_()):v.log_("closing an old connection")}},g.prototype.connReceiver_=function(u){var v=this;return function(T){2!==v.state_&&(u===v.rx_?v.onPrimaryMessageReceived_(T):u===v.secondaryConn_?v.onSecondaryMessageReceived_(T):v.log_("message on old connection"))}},g.prototype.sendRequest=function(u){this.sendData_({t:"d",d:u})},g.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},g.prototype.onSecondaryControl_=function(u){if("t"in u){var v=u.t;"a"===v?this.upgradeIfSecondaryHealthy_():"r"===v?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===v&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},g.prototype.onSecondaryMessageReceived_=function(u){var v=ge("t",u),T=ge("d",u);if("c"===v)this.onSecondaryControl_(T);else{if("d"!==v)throw new Error("Unknown protocol layer: "+v);this.pendingDataMessages.push(T)}},g.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t
1:"c",d:{t:"p",d:{}}}))},g.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},g.prototype.onPrimaryMessageReceived_=function(u){var v=ge("t",u),T=ge("d",u);"c"===v?this.onControl_(T):"d"===v&&this.onDataMessage_(T)},g.prototype.onDataMessage_=function(u){this.onPrimaryResponse_(),this.onMessage_(u)},g.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},g.prototype.onControl_=function(u){var v=ge("t",u);if("d"in u){var T=u.d;if("h"===v)this.onHandshake_(T);else if("n"===v){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var ie=0;ie<this.pendingDataMessages.length;++ie)this.onDataMessage_(this.pendingDataMessages[ie]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===v?this.onConnectionShutdown_(T):"r"===v?this.onReset_(T):"e"===v?re("Server Error: "+T):"o"===v?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):re("Unknown control packet command: "+v)}},g.prototype.onHandshake_=function(u){var v=u.ts,T=u.v,ie=u.h;this.sessionId=u.s,this.repoInfo_.updateHost(ie),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,v),"5"!==T&&ne("Protocol version mismatch detected"),this.tryStartUpgrade_())},g.prototype.tryStartUpgrade_=function(){var u=this.transportManager_.upgradeTransport();u&&this.startUpgrade_(u)},g.prototype.startUpgrade_=function(u){var v=this;this.secondaryConn_=new u(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.sessionId),this.secondaryResponsesRequired_=u.responsesRequiredToBeHealthy||0;var T=this.connReceiver_(this.secondaryConn_),ie=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(T,ie),ut(function(){v.secondaryConn_&&(v.log_("Timed out trying to upgrade."),v.secondaryConn_.close())},Math.floor(6e4))},g.prototype.onReset_=function(u){this.log_("Reset packet received. New host: "+u),this.repoInfo_.updateHost(u),1===this.state_?this.close():(this.closeConnections_(),this.start_())},g.prototype.onConnectionEstablished_=function(u,v){var T=this;this.log_("Realtime connection established."),this.conn_=u,this.state_=1,this.onReady_&&(this.onReady_(v,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):ut(function(){T.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))},g.prototype.sendPingOnPrimaryIfNecessary_=function(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},g.prototype.onSecondaryConnectionLost_=function(){var u=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===u||this.rx_===u)&&this.close()},g.prototype.onConnectionLost_=function(u){this.conn_=null,u||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(te.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},g.prototype.onConnectionShutdown_=function(u){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(u),this.onKill_=null),this.onDisconnect_=null,this.close()},g.prototype.sendData_=function(u){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(u)},g.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},g.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},g}(),kn=function(){function g(){}return g.prototype.put=function(u,v,T,ie){},g.prototype.merge=function(u,v,T,ie){},g.prototype.refreshAuthToken=function(u){},g.prototype.onDisconnectPut=function(u,v,T){},g.prototype.onDisconnectMerge=function(u,v,T){},g.prototype.onDisconnectCancel=function(u,v){},g.prototype.reportStats=function(u){},g}(),In=1e3,Li=function(g){function u(v,T,ie,we,ft,Ut,dn){var tn=g.call(this)||this;
1if(tn.repoInfo_=v,tn.applicationId_=T,tn.onDataUpdate_=ie,tn.onConnectStatus_=we,tn.onServerInfoUpdate_=ft,tn.authTokenProvider_=Ut,tn.authOverride_=dn,tn.id=u.nextPersistentConnectionId_++,tn.log_=de("p:"+tn.id+":"),tn.interruptReasons_={},tn.listens=new Map,tn.outstandingPuts_=[],tn.outstandingPutCount_=0,tn.onDisconnectRequestQueue_=[],tn.connected_=!1,tn.reconnectDelay_=In,tn.maxReconnectDelay_=3e5,tn.securityDebugCallback_=null,tn.lastSessionId=null,tn.establishConnectionTimer_=null,tn.visible_=!1,tn.requestCBHash_={},tn.requestNumber_=0,tn.realtime_=null,tn.authToken_=null,tn.forceTokenRefresh_=!1,tn.invalidAuthTokenCount_=0,tn.firstConnection_=!0,tn.lastConnectionAttemptTime_=null,tn.lastConnectionEstablishedTime_=null,dn&&!y.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return tn.scheduleConnect_(0),ts.getInstance().on("visible",tn.onVisible_,tn),-1===v.host.indexOf("fblocal")&&jr.getInstance().on("online",tn.onOnline_,tn),tn}return _.__extends(u,g),u.prototype.sendRequest=function(v,T,ie){var we=++this.requestNumber_,ft={r:we,a:v,b:T};this.log_(y.stringify(ft)),y.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(ft),ie&&(this.requestCBHash_[we]=ie)},u.prototype.listen=function(v,T,ie,we){var ft=v.queryIdentifier(),Ut=v.path.toString();this.log_("Listen called for "+Ut+" "+ft),this.listens.has(Ut)||this.listens.set(Ut,new Map),y.assert(v.getQueryParams().isDefault()||!v.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),y.assert(!this.listens.get(Ut).has(ft),"listen() called twice for same path/queryId.");var dn={onComplete:we,hashFn:T,query:v,tag:ie};this.listens.get(Ut).set(ft,dn),this.connected_&&this.sendListen_(dn)},u.prototype.sendListen_=function(v){var T=this,ie=v.query,we=ie.path.toString(),ft=ie.queryIdentifier();this.log_("Listen on "+we+" for "+ft);var Ut={p:we};v.tag&&(Ut.q=ie.queryObject(),Ut.t=v.tag),Ut.h=v.hashFn(),this.sendRequest("q",Ut,function(tn){var Bn=tn.d,Kn=tn.s;u.warnOnListenWarnings_(Bn,ie),(T.listens.get(we)&&T.listens.get(we).get(ft))===v&&(T.log_("listen response",tn),"ok"!==Kn&&T.removeListen_(we,ft),v.onComplete&&v.onComplete(Kn,Bn))})},u.warnOnListenWarnings_=function(v,T){if(v&&"object"==typeof v&&y.contains(v,"w")){var ie=y.safeGet(v,"w");if(Array.isArray(ie)&&~ie.indexOf("no_index")){var we='".indexOn": "'+T.getQueryParams().getIndex().toString()+'"',ft=T.path.toString();ne("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+we+" at "+ft+" to your security rules for better performance.")}}},u.prototype.refreshAuthToken=function(v){this.authToken_=v,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(v)},u.prototype.reduceReconnectDelayIfAdminCredential_=function(v){(v&&40===v.length||y.isAdmin(v))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},u.prototype.tryAuth=function(){var v=this;if(this.connected_&&this.authToken_){var T=this.authToken_,ie=y.isValidFormat(T)?"auth":"gauth",we={cred:T};null===this.authOverride_?we.noauth=!0:"object"==typeof this.authOverride_&&(we.authvar=this.authOverride_),this.sendRequest(ie,we,function(ft){var Ut=ft.s,dn=ft.d||"error";v.authToken_===T&&("ok"===Ut?v.invalidAuthTokenCount_=0:v.onAuthRevoked_(Ut,dn))})}},u.prototype.unlisten=function(v,T){var ie=v.path.toString(),we=v.queryIdentifier();this.log_("Unlisten called for "+ie+" "+we),y.assert(v.getQueryParams().isDefault()||!v.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(ie,we)&&this.connected_&&this.sendUnlisten_(ie,we,v.queryObject(),T)},u.prototype.sendUnlisten_=function(v,T,ie,we){this.log_("Unlisten on "+v+" for "+T);var ft={p:v};we&&(ft.q=ie,ft.t=we),this.sendRequest("n",ft)},u.prototype.onDisconnectPut=function(v,T,ie){this.connected_?this.sendOnDisconnect_("o",v,T,ie):this.onDisconnectRequestQueue_.push({pathString:v,action:"o",data:T,onComplete:ie})},u.prototype.onDisconnectMerge=function(v,T,ie){this.connected_?this.sendOnDisconnect_("om",v,T,ie):this.onDisconnectRequestQueue_.push({pathString:v,action:"om",data:T,onComplete:ie})},u.prototype.onDisconnectCancel=function(v,T){this.connected_?this.sendOnDisconnect_("oc",v,null,T):this.onDisconnectRequestQueue_.push({pathString:v,action:"oc",data:null,onComplete:T})},u.prototype.sendOnDisconnect_=function(v,T,ie,we){var ft={p:T,d:ie};this.log_("onDisconnect "+v,ft),this.sendRequest(v,ft,function(Ut){we&&setTimeout(function(){we(Ut.s,Ut.d)},Math.floor(0))})},u.prototype.put=function(v,T,ie,we){this.putInternal("p",v,T,ie,we)},u.prototype.merge=function(v,T,ie,we){this.putInternal("m",v,T,ie,we)},u.prototype.putInternal=function(v,T,ie,we,ft){var Ut={p:T,d:ie};void 0!==ft&&(Ut.h=ft),this.outstandingPuts_.push({action:v,request:Ut,onComplete:we}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+T)},u.prototype.sendPut_=function(v){var T=this,ie=this.outstandingPuts_[v].action,we=this.outstandingPuts_[v].request,ft=this.outstandingPuts_[v].onComplete;this.outstandingPuts_[v].queued=this.connected_,this.sendRequest(ie,we,function(Ut){T.log_(ie+" response",Ut),delete T.outstandingPuts_[v],T.outstandingPutCount_--,0===T.outstandingPutCount_&&(T.outstandingPuts_=[]),ft&&ft(Ut.s,Ut.d)})},u.prototype.reportStats=function(v){var T=this;if(this.connected_){var ie={c:v};this.log_("reportStats",ie),this.sendRequest("s",ie,function(we){"ok"!==we.s&&T.log_("reportStats","Error sending stats: "+we.d)})}},u.prototype.onDataMessage_=function(v){if("r"in v){this.log_("from server: "+y.stringify(v));var T=v.r,ie=this.requestCBHash_[T];ie&&(delete this.requestCBHash_[T],ie(v.b))}else{if("error"in v)throw"A server-side error has occurred: "+v.error;"a"in v&&this.onDataPush_(v.a,v.b)}},u.prototype.onDataPush_=function(v,T){this.log_("handleServerMessage",v,T),"d"===v?this.onDataUpdate_(T.p,T.d,!1,T.t):"m"===v?this.onDataUpdate_(T.p,T.d,!0,T.t):"c"===v?this.onListenRevoked_(T.p,T.q):"ac"===v?this.onAuthRevoked_(T.s,T.d):"sd"===v?this.onSecurityDebugPacket_(T):re("Unrecognized action received from server: "+y.stringify(v)+"\nAre you using the latest client?")},u.prototype.onReady_=function(v,T){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(v),this.lastSessionId=T,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},u.prototype.scheduleConnect_=function(v){var T=this;y.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){T.establishConnectionTimer_=null,T.establishConnection_()},Math.floor(v))},u.prototype.onVisible_=function(v){v&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=In,this.realtime_||this.scheduleConnect_(0)),this.visible_=v},u.prototype.onOnline_=function(v){v?(this.log_("Browser went online."),this.reconnectDelay_=In,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},u.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=In),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());var T=(new Date).getTime()-this.lastConnectionAttemptTime_,ie=Math.max(0,this.reconnectDelay_-T);
1ie=Math.random()*ie,this.log_("Trying to reconnect in "+ie+"ms"),this.scheduleConnect_(ie),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},u.prototype.establishConnection_=function(){var v=this;if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var T=this.onDataMessage_.bind(this),ie=this.onReady_.bind(this),we=this.onRealtimeDisconnect_.bind(this),ft=this.id+":"+u.nextConnectionId_++,Ut=this,dn=this.lastSessionId,tn=!1,Bn=null,Kn=function(){Bn?Bn.close():(tn=!0,we())};this.realtime_={close:Kn,sendRequest:function(Gi){y.assert(Bn,"sendRequest call when we're not connected not allowed."),Bn.sendRequest(Gi)}};var wi=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(wi).then(function(Gi){tn?Y("getToken() completed but was canceled"):(Y("getToken() completed. Creating connection."),Ut.authToken_=Gi&&Gi.accessToken,Bn=new mn(ft,Ut.repoInfo_,Ut.applicationId_,T,ie,we,function(qi){ne(qi+" ("+Ut.repoInfo_.toString()+")"),Ut.interrupt("server_kill")},dn))}).then(null,function(Gi){Ut.log_("Failed to get token: "+Gi),tn||(v.repoInfo_.nodeAdmin&&ne(Gi),Kn())})}},u.prototype.interrupt=function(v){Y("Interrupting connection for reason: "+v),this.interruptReasons_[v]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},u.prototype.resume=function(v){Y("Resuming connection for reason: "+v),delete this.interruptReasons_[v],y.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=In,this.realtime_||this.scheduleConnect_(0))},u.prototype.handleTimestamp_=function(v){var T=v-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:T})},u.prototype.cancelSentTransactions_=function(){for(var v=0;v<this.outstandingPuts_.length;v++){var T=this.outstandingPuts_[v];T&&"h"in T.request&&T.queued&&(T.onComplete&&T.onComplete("disconnect"),delete this.outstandingPuts_[v],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},u.prototype.onListenRevoked_=function(v,T){var ie;ie=T?T.map(function(ft){return Fe(ft)}).join("$"):"default";var we=this.removeListen_(v,ie);we&&we.onComplete&&we.onComplete("permission_denied")},u.prototype.removeListen_=function(v,T){var we,ie=new Ge(v).toString();if(this.listens.has(ie)){var ft=this.listens.get(ie);we=ft.get(T),ft.delete(T),0===ft.size&&this.listens.delete(ie)}else we=void 0;return we},u.prototype.onAuthRevoked_=function(v,T){Y("Auth token revoked: "+v+"/"+T),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===v||"permission_denied"===v)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},u.prototype.onSecurityDebugPacket_=function(v){this.securityDebugCallback_?this.securityDebugCallback_(v):"msg"in v&&console.log("FIREBASE: "+v.msg.replace("\n","\nFIREBASE: "))},u.prototype.restoreState_=function(){var v,T,ie,we;this.tryAuth();try{for(var ft=_.__values(this.listens.values()),Ut=ft.next();!Ut.done;Ut=ft.next()){var dn=Ut.value;try{for(var tn=(ie=void 0,_.__values(dn.values())),Bn=tn.next();!Bn.done;Bn=tn.next())this.sendListen_(Bn.value)}catch(Gi){ie={error:Gi}}finally{try{Bn&&!Bn.done&&(we=tn.return)&&we.call(tn)}finally{if(ie)throw ie.error}}}}catch(Gi){v={error:Gi}}finally{try{Ut&&!Ut.done&&(T=ft.return)&&T.call(ft)}finally{if(v)throw v.error}}for(var ri=0;ri<this.outstandingPuts_.length;ri++)this.outstandingPuts_[ri]&&this.sendPut_(ri);for(;this.onDisconnectRequestQueue_.length;){var wi=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(wi.action,wi.pathString,wi.data,wi.onComplete)}},u.prototype.sendConnectStats_=function(){var v={},T="js";y.isNodeSdk()&&(T=this.repoInfo_.nodeAdmin?"admin_node":"node"),v["sdk."+T+"."+ji.replace(/\./g,"-")]=1,y.isMobileCordova()?v["framework.cordova"]=1:y.isReactNative()&&(v["framework.reactnative"]=1),this.reportStats(v)},u.prototype.shouldReconnect_=function(){var v=jr.getInstance().currentlyOnline();return y.isEmpty(this.interruptReasons_)&&v},u.nextPersistentConnectionId_=0,u.nextConnectionId_=0,u}(kn),Mr=function(g){function u(v,T,ie){var we=g.call(this)||this;return we.repoInfo_=v,we.onDataUpdate_=T,we.authTokenProvider_=ie,we.log_=de("p:rest:"),we.listens_={},we}return _.__extends(u,g),u.prototype.reportStats=function(v){throw new Error("Method not implemented.")},u.getListenId_=function(v,T){return void 0!==T?"tag$"+T:(y.assert(v.getQueryParams().isDefault(),"should have a tag if it's not a default query."),v.path.toString())},u.prototype.listen=function(v,T,ie,we){var ft=this,Ut=v.path.toString();this.log_("Listen called for "+Ut+" "+v.queryIdentifier());var dn=u.getListenId_(v,ie),tn={};this.listens_[dn]=tn;var Bn=v.getQueryParams().toRestQueryStringParameters();this.restRequest_(Ut+".json",Bn,function(Kn,ri){var wi=ri;404===Kn&&(wi=null,Kn=null),null===Kn&&ft.onDataUpdate_(Ut,wi,!1,ie),y.safeGet(ft.listens_,dn)===tn&&we(Kn?401===Kn?"permission_denied":"rest_error:"+Kn:"ok",null)})},u.prototype.unlisten=function(v,T){var ie=u.getListenId_(v,T);delete this.listens_[ie]},u.prototype.refreshAuthToken=function(v){},u.prototype.restRequest_=function(v,T,ie){var we=this;void 0===T&&(T={}),T.format="export",this.authTokenProvider_.getToken(!1).then(function(ft){var Ut=ft&&ft.accessToken;Ut&&(T.auth=Ut);var dn=(we.repoInfo_.secure?"https://":"http://")+we.repoInfo_.host+v+"?ns="+we.repoInfo_.namespace+y.querystring(T);we.log_("Sending REST request for "+dn);var tn=new XMLHttpRequest;tn.onreadystatechange=function(){if(ie&&4===tn.readyState){we.log_("REST Response for "+dn+" received. status:",tn.status,"response:",tn.responseText);var Bn=null;if(tn.status>=200&&tn.status<300){try{Bn=y.jsonEval(tn.responseText)}catch(Kn){ne("Failed to parse JSON response for "+dn+": "+tn.responseText)}ie(null,Bn)}else 401!==tn.status&&404!==tn.status&&ne("Got unsuccessful REST response for "+dn+" Status: "+tn.status),ie(tn.status);ie=null}},tn.open("GET",dn,!0),tn.send()})},u}(kn),ui="repo_interrupt",Sr=function(){function g(u,v,T,ie){var we=this;if(this.repoInfo_=u,this.app=T,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new tr,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new eo,this.persistentConnection_=null,this.stats_=ti.getCollection(u),v||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new Mr(this.repoInfo_,this.onDataUpdate_.bind(this),ie),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var ft=T.options.databaseAuthVariableOverride;if(null!=ft){if("object"!=typeof ft)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{y.stringify(ft)}catch(Ut){throw new Error("Invalid authOverride provided: "+Ut)}}this.persistentConnection_=new Li(this.repoInfo_,T.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),ie,ft),this.server_=this.persistentConnection_}ie.addTokenChangeListener(function(Ut){we.server_.refreshAuthToken(Ut)}),this.statsReporter_=ti.getOrCreateReporter(u,function(){return new Xi(we.stats_,we.server_)}),this.transactionsInit_(),this.infoData_=new Mn,this.infoSyncTree_=new yn({startListening:function(Ut,dn,tn,Bn){var Kn=[],ri=we.infoData_.getNode(Ut.path);return ri.isEmpty()||(Kn=we.infoSyncTree_.applyServerOverwrite(Ut.path,ri),setTimeout(function(){Bn("ok")},0)),Kn},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new yn({startListening:function(Ut,dn,tn,Bn){return we.server_.listen(Ut,tn,dn,function(Kn,ri){var wi=Bn(Kn,ri);we.eventQueue_.raiseEventsForChangedPath(Ut.path,wi)}),[]},stopListening:function(Ut,dn){we.server_.unlisten(Ut,dn)}})}return g.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},g.prototype.name=function(){return this.repoInfo_.namespace},g.prototype.serverTime=function(){var v=this.infoData_.getNode(new Ge(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+v},g.prototype.generateServerValues=function(){return function(g){return(g=g||{}).timestamp=g.timestamp||(new Date).getTime(),g}({timestamp:this.serverTime()})},g.prototype.onDataUpdate_=function(u,v,T,ie){this.dataUpdateCount++;var we=new Ge(u);v=this.interceptServerDataCallback_?this.interceptServerDataCallback_(u,v):v;var ft=[];if(ie)if(T){var Ut=y.map(v,function(ri){return Wi(ri)});ft=this.serverSyncTree_.applyTaggedQueryMerge(we,Ut,ie)}else{var dn=Wi(v);ft=this.serverSyncTree_.applyTaggedQueryOverwrite(we,dn,ie)}else if(T){var tn=y.map(v,function(ri){return Wi(ri)});ft=this.serverSyncTree_.applyServerMerge(we,tn)}else{var Bn=Wi(v);ft=this.serverSyncTree_.applyServerOverwrite(we,Bn)}var Kn=we;ft.length>0&&(Kn=this.rerunTransactions_(we)),this.eventQueue_.raiseEventsForChangedPath(Kn,ft)},g.prototype.interceptServerData_=function(u){this.interceptServerDataCallback_=u},g.prototype.onConnectStatus_=function(u){this.updateInfo_("connected",u),!1===u&&this.runOnDisconnectEvents_()},g.prototype.onServerInfoUpdate_=function(u){var v=this;fe(u,function(T,ie){v.updateInfo_(T,ie)})},g.prototype.updateInfo_=function(u,v){var T=new Ge("/.info/"+u),ie=Wi(v);this.infoData_.updateSnapshot(T,ie);var we=this.infoSyncTree_.applyServerOverwrite(T,ie);this.eventQueue_.raiseEventsForChangedPath(T,we)},g.prototype.getNextWriteId_=function(){return this.nextWriteId_++},g.prototype.setWithPriority=function(u,v,T,ie){var we=this;this.log_("set",{path:u.toString(),value:v,priority:T});var ft=this.generateServerValues(),Ut=Wi(v,T),dn=this.serverSyncTree_.calcCompleteEventCache(u),tn=fr(Ut,dn,ft),Bn=this.getNextWriteId_(),Kn=this.serverSyncTree_.applyUserOverwrite(u,tn,Bn,!0);this.eventQueue_.queueEvents(Kn),this.server_.put(u.toString(),Ut.val(!0),function(wi,Gi){var qi="ok"===wi;qi||ne("set at "+u+" failed: "+wi);var Zr=we.serverSyncTree_.ackUserWrite(Bn,!qi);we.eventQueue_.raiseEventsForChangedPath(u,Zr),we.callOnCompleteCallback(ie,wi,Gi)});var ri=this.abortTransactions_(u);this.rerunTransactions_(ri),this.eventQueue_.raiseEventsForChangedPath(ri,[])},g.prototype.update=function(u,v,T){var ie=this;this.log_("update",{path:u.toString(),value:v});var we=!0,ft=this.generateServerValues(),Ut={};if(fe(v,function(Bn,Kn){we=!1,Ut[Bn]=ys(u.child(Bn),Wi(Kn),ie.serverSyncTree_,ft)}),we)Y("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(T,"ok");else{var dn=this.getNextWriteId_(),tn=this.serverSyncTree_.applyUserMerge(u,Ut,dn);this.eventQueue_.queueEvents(tn),this.server_.merge(u.toString(),v,function(Bn,Kn){var ri="ok"===Bn;ri||ne("update at "+u+" failed: "+Bn);var wi=ie.serverSyncTree_.ackUserWrite(dn,!ri),Gi=wi.length>0?ie.rerunTransactions_(u):u;ie.eventQueue_.raiseEventsForChangedPath(Gi,wi),ie.callOnCompleteCallback(T,Bn,Kn)}),fe(v,function(Bn){var Kn=ie.abortTransactions_(u.child(Bn));ie.rerunTransactions_(Kn)}),this.eventQueue_.raiseEventsForChangedPath(u,[])}},g.prototype.runOnDisconnectEvents_=function(){var u=this;this.log_("onDisconnectEvents");var v=this.generateServerValues(),T=new eo;
1this.onDisconnect_.forEachTree(Ge.Empty,function(we,ft){var Ut=ys(we,ft,u.serverSyncTree_,v);T.remember(we,Ut)});var ie=[];T.forEachTree(Ge.Empty,function(we,ft){ie=ie.concat(u.serverSyncTree_.applyServerOverwrite(we,ft));var Ut=u.abortTransactions_(we);u.rerunTransactions_(Ut)}),this.onDisconnect_=new eo,this.eventQueue_.raiseEventsForChangedPath(Ge.Empty,ie)},g.prototype.onDisconnectCancel=function(u,v){var T=this;this.server_.onDisconnectCancel(u.toString(),function(ie,we){"ok"===ie&&T.onDisconnect_.forget(u),T.callOnCompleteCallback(v,ie,we)})},g.prototype.onDisconnectSet=function(u,v,T){var ie=this,we=Wi(v);this.server_.onDisconnectPut(u.toString(),we.val(!0),function(ft,Ut){"ok"===ft&&ie.onDisconnect_.remember(u,we),ie.callOnCompleteCallback(T,ft,Ut)})},g.prototype.onDisconnectSetWithPriority=function(u,v,T,ie){var we=this,ft=Wi(v,T);this.server_.onDisconnectPut(u.toString(),ft.val(!0),function(Ut,dn){"ok"===Ut&&we.onDisconnect_.remember(u,ft),we.callOnCompleteCallback(ie,Ut,dn)})},g.prototype.onDisconnectUpdate=function(u,v,T){var ie=this;if(y.isEmpty(v))return Y("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(T,"ok");this.server_.onDisconnectMerge(u.toString(),v,function(we,ft){"ok"===we&&fe(v,function(Ut,dn){var tn=Wi(dn);ie.onDisconnect_.remember(u.child(Ut),tn)}),ie.callOnCompleteCallback(T,we,ft)})},g.prototype.addEventCallbackForQuery=function(u,v){var T;T=".info"===u.path.getFront()?this.infoSyncTree_.addEventRegistration(u,v):this.serverSyncTree_.addEventRegistration(u,v),this.eventQueue_.raiseEventsAtPath(u.path,T)},g.prototype.removeEventCallbackForQuery=function(u,v){var T;T=".info"===u.path.getFront()?this.infoSyncTree_.removeEventRegistration(u,v):this.serverSyncTree_.removeEventRegistration(u,v),this.eventQueue_.raiseEventsAtPath(u.path,T)},g.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt(ui)},g.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume(ui)},g.prototype.stats=function(u){if(void 0===u&&(u=!1),"undefined"!=typeof console){var v;u?(this.statsListener_||(this.statsListener_=new pi(this.stats_)),v=this.statsListener_.get()):v=this.stats_.get();var T=Object.keys(v).reduce(function(ie,we){return Math.max(we.length,ie)},0);fe(v,function(ie,we){for(var ft=ie,Ut=ie.length;Ut<T+2;Ut++)ft+=" ";console.log(ft+we)})}},g.prototype.statsIncrementCounter=function(u){this.stats_.incrementCounter(u),this.statsReporter_.includeStat(u)},g.prototype.log_=function(){for(var u=[],v=0;v<arguments.length;v++)u[v]=arguments[v];var T="";this.persistentConnection_&&(T=this.persistentConnection_.id+":"),Y.apply(void 0,_.__spread([T],u))},g.prototype.callOnCompleteCallback=function(u,v,T){u&&Ve(function(){if("ok"===v)u(null);else{var ie=(v||"error").toUpperCase(),we=ie;T&&(we+=": "+T);var ft=new Error(we);ft.code=ie,u(ft)}})},Object.defineProperty(g.prototype,"database",{get:function(){return this.__database||(this.__database=new qn(this))},enumerable:!1,configurable:!0}),g}(),$r=function(){function g(u){this.indexedFilter_=new lo(u.getIndex()),this.index_=u.getIndex(),this.startPost_=g.getStartPost_(u),this.endPost_=g.getEndPost_(u)}return g.prototype.getStartPost=function(){return this.startPost_},g.prototype.getEndPost=function(){return this.endPost_},g.prototype.matches=function(u){return this.index_.compare(this.getStartPost(),u)<=0&&this.index_.compare(u,this.getEndPost())<=0},g.prototype.updateChild=function(u,v,T,ie,we,ft){return this.matches(new Ke(v,T))||(T=li.EMPTY_NODE),this.indexedFilter_.updateChild(u,v,T,ie,we,ft)},g.prototype.updateFullNode=function(u,v,T){v.isLeafNode()&&(v=li.EMPTY_NODE);var ie=v.withIndex(this.index_);ie=ie.updatePriority(li.EMPTY_NODE);var we=this;return v.forEachChild(gn,function(ft,Ut){we.matches(new Ke(ft,Ut))||(ie=ie.updateImmediateChild(ft,li.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(u,ie,T)},g.prototype.updatePriority=function(u,v){return u},g.prototype.filtersNodes=function(){return!0},g.prototype.getIndexedFilter=function(){return this.indexedFilter_},g.prototype.getIndex=function(){return this.index_},g.getStartPost_=function(u){if(u.hasStart()){var v=u.getIndexStartName();return u.getIndex().makePost(u.getIndexStartValue(),v)}return u.getIndex().minPost()},g.getEndPost_=function(u){if(u.hasEnd()){var v=u.getIndexEndName();return u.getIndex().makePost(u.getIndexEndValue(),v)}return u.getIndex().maxPost()},g}
1(),Es=function(){function g(u){this.rangedFilter_=new $r(u),this.index_=u.getIndex(),this.limit_=u.getLimit(),this.reverse_=!u.isViewFromLeft()}return g.prototype.updateChild=function(u,v,T,ie,we,ft){return this.rangedFilter_.matches(new Ke(v,T))||(T=li.EMPTY_NODE),u.getImmediateChild(v).equals(T)?u:u.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(u,v,T,ie,we,ft):this.fullLimitUpdateChild_(u,v,T,we,ft)},g.prototype.updateFullNode=function(u,v,T){var ie;if(v.isLeafNode()||v.isEmpty())ie=li.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<v.numChildren()&&v.isIndexed(this.index_)){ie=li.EMPTY_NODE.withIndex(this.index_);var we=void 0;we=this.reverse_?v.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):v.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var ft=0;we.hasNext()&&ft<this.limit_;){var Ut=we.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),Ut)<=0:this.index_.compare(Ut,this.rangedFilter_.getEndPost())<=0))break;ie=ie.updateImmediateChild(Ut.name,Ut.node),ft++}}else{ie=(ie=v.withIndex(this.index_)).updatePriority(li.EMPTY_NODE);var tn=void 0,Bn=void 0,Kn=void 0;if(we=void 0,this.reverse_){we=ie.getReverseIterator(this.index_),tn=this.rangedFilter_.getEndPost(),Bn=this.rangedFilter_.getStartPost();var ri=this.index_.getCompare();Kn=function(Zr,Lr){return ri(Lr,Zr)}}else we=ie.getIterator(this.index_),tn=this.rangedFilter_.getStartPost(),Bn=this.rangedFilter_.getEndPost(),Kn=this.index_.getCompare();ft=0;for(var wi=!1;we.hasNext();)Ut=we.getNext(),!wi&&Kn(tn,Ut)<=0&&(wi=!0),wi&&ft<this.limit_&&Kn(Ut,Bn)<=0?ft++:ie=ie.updateImmediateChild(Ut.name,li.EMPTY_NODE)}return this.rangedFilter_.getIndexedFilter().updateFullNode(u,ie,T)},g.prototype.updatePriority=function(u,v){return u},g.prototype.filtersNodes=function(){return!0},g.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},g.prototype.getIndex=function(){return this.index_},g.prototype.fullLimitUpdateChild_=function(u,v,T,ie,we){var ft;if(this.reverse_){var Ut=this.index_.getCompare();ft=function(_s,Fo){return Ut(Fo,_s)}}else ft=this.index_.getCompare();var dn=u;y.assert(dn.numChildren()===this.limit_,"");var tn=new Ke(v,T),Bn=this.reverse_?dn.getFirstChild(this.index_):dn.getLastChild(this.index_),Kn=this.rangedFilter_.matches(tn);if(dn.hasChild(v)){for(var ri=dn.getImmediateChild(v),wi=ie.getChildAfterChild(this.index_,Bn,this.reverse_);null!=wi&&(wi.name===v||dn.hasChild(wi.name));)wi=ie.getChildAfterChild(this.index_,wi,this.reverse_);var Gi=null==wi?1:ft(wi,tn);if(Kn&&!T.isEmpty()&&Gi>=0)return null!=we&&we.trackChildChange(Ar.childChangedChange(v,T,ri)),dn.updateImmediateChild(v,T);null!=we&&we.trackChildChange(Ar.childRemovedChange(v,ri));var Zr=dn.updateImmediateChild(v,li.EMPTY_NODE);return null!=wi&&this.rangedFilter_.matches(wi)?(null!=we&&we.trackChildChange(Ar.childAddedChange(wi.name,wi.node)),Zr.updateImmediateChild(wi.name,wi.node)):Zr}return T.isEmpty()?u:Kn&&ft(Bn,tn)>=0?(null!=we&&(we.trackChildChange(Ar.childRemovedChange(Bn.name,Bn.node)),we.trackChildChange(Ar.childAddedChange(v,T))),dn.updateImmediateChild(v,T).updateImmediateChild(Bn.name,li.EMPTY_NODE)):u},g}(),Vr=function(){function g(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=gn}return g.prototype.hasStart=function(){return this.startSet_},g.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===g.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},g.prototype.getIndexStartValue=function(){return y.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},g.prototype.getIndexStartName=function(){return y.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:R},g.prototype.hasEnd=function(){return this.endSet_},g.prototype.getIndexEndValue=function(){return y.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},g.prototype.getIndexEndName=function(){return y.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:ee},g.prototype.hasLimit=function(){return this.limitSet_},g.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},g.prototype.getLimit=function(){return y.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},g.prototype.getIndex=function(){return this.index_},g.prototype.copy_=function(){var u=new g;return u.limitSet_=this.limitSet_,u.limit_=this.limit_,u.startSet_=this.startSet_,u.indexStartValue_=this.indexStartValue_,u.startNameSet_=this.startNameSet_,u.indexStartName_=this.indexStartName_,u.endSet_=this.endSet_,u.indexEndValue_=this.indexEndValue_,u.endNameSet_=this.endNameSet_,u.indexEndName_=this.indexEndName_,u.index_=this.index_,u.viewFrom_=this.viewFrom_,u},g.prototype.limit=function(u){var v=this.copy_();return v.limitSet_=!0,v.limit_=u,v.viewFrom_="",v},g.prototype.limitToFirst=function(u){var v=this.copy_();return v.limitSet_=!0,v.limit_=u,v.viewFrom_=g.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,v},g.prototype.limitToLast=function(u){var v=this.copy_();return v.limitSet_=!0,v.limit_=u,v.viewFrom_=g.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,v},g.prototype.startAt=function(u,v){var T=this.copy_();
1return T.startSet_=!0,void 0===u&&(u=null),T.indexStartValue_=u,null!=v?(T.startNameSet_=!0,T.indexStartName_=v):(T.startNameSet_=!1,T.indexStartName_=""),T},g.prototype.endAt=function(u,v){var T=this.copy_();return T.endSet_=!0,void 0===u&&(u=null),T.indexEndValue_=u,void 0!==v?(T.endNameSet_=!0,T.indexEndName_=v):(T.endNameSet_=!1,T.indexEndName_=""),T},g.prototype.orderBy=function(u){var v=this.copy_();return v.index_=u,v},g.prototype.getQueryObject=function(){var u=g.WIRE_PROTOCOL_CONSTANTS_,v={};if(this.startSet_&&(v[u.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(v[u.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(v[u.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(v[u.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){v[u.LIMIT]=this.limit_;var T=this.viewFrom_;""===T&&(T=this.isViewFromLeft()?u.VIEW_FROM_LEFT:u.VIEW_FROM_RIGHT),v[u.VIEW_FROM]=T}return this.index_!==gn&&(v[u.INDEX]=this.index_.toString()),v},g.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},g.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===gn},g.prototype.getNodeFilter=function(){return this.loadsAllData()?new lo(this.getIndex()):this.hasLimit()?new Es(this):new $r(this)},g.prototype.toRestQueryStringParameters=function(){var T,u=g.REST_QUERY_CONSTANTS_,v={};return this.isDefault()||(this.index_===gn?T=u.PRIORITY_INDEX:this.index_===fs?T=u.VALUE_INDEX:this.index_===Ye?T=u.KEY_INDEX:(y.assert(this.index_ instanceof or,"Unrecognized index type!"),T=this.index_.toString()),v[u.ORDER_BY]=y.stringify(T),this.startSet_&&(v[u.START_AT]=y.stringify(this.indexStartValue_),this.startNameSet_&&(v[u.START_AT]+=","+y.stringify(this.indexStartName_))),this.endSet_&&(v[u.END_AT]=y.stringify(this.indexEndValue_),this.endNameSet_&&(v[u.END_AT]+=","+y.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?v[u.LIMIT_TO_FIRST]=this.limit_:v[u.LIMIT_TO_LAST]=this.limit_)),v},g.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},g.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},g.DEFAULT=new g,g}(),es=function(g){function u(v,T){if(!(v instanceof Sr))throw new Error("new Reference() no longer supported - use app.database().");return g.call(this,v,T,Vr.DEFAULT,!1)||this}return _.__extends(u,g),u.prototype.getKey=function(){return y.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},u.prototype.child=function(v){return y.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof v?v=String(v):v instanceof Ge||(null===this.path.getFront()?kt("Reference.child",1,v,!1):Mt("Reference.child",1,v,!1)),new u(this.repo,this.path.child(v))},u.prototype.getParent=function(){y.validateArgCount("Reference.parent",0,0,arguments.length);var v=this.path.parent();return null===v?null:new u(this.repo,v)},u.prototype.getRoot=function(){y.validateArgCount("Reference.root",0,0,arguments.length);for(var v=this;null!==v.getParent();)v=v.getParent();return v},u.prototype.databaseProp=function(){return this.repo.database},u.prototype.set=function(v,T){y.validateArgCount("Reference.set",1,2,arguments.length),We("Reference.set",this.path),Gn("Reference.set",1,v,this.path,!1),y.validateCallback("Reference.set",2,T,!0);var ie=new y.Deferred;return this.repo.setWithPriority(this.path,v,null,ie.wrapCallback(T)),ie.promise},u.prototype.update=function(v,T){if(y.validateArgCount("Reference.update",1,2,arguments.length),We("Reference.update",this.path),Array.isArray(v)){for(var ie={},we=0;we<v.length;++we)ie[""+we]=v[we];v=ie,ne("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}nn("Reference.update",1,v,this.path,!1),y.validateCallback("Reference.update",2,T,!0);var ft=new y.Deferred;return this.repo.update(this.path,v,ft.wrapCallback(T)),ft.promise},u.prototype.setWithPriority=function(v,T,ie){if(y.validateArgCount("Reference.setWithPriority",2,3,arguments.length),We("Reference.setWithPriority",this.path),Gn("Reference.setWithPriority",1,v,this.path,!1),Vn("Reference.setWithPriority",2,T,!1),y.validateCallback("Reference.setWithPriority",3,ie,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var we=new y.Deferred;return this.repo.setWithPriority(this.path,v,T,we.wrapCallback(ie)),we.promise},u.prototype.remove=function(v){return y.validateArgCount("Reference.remove",0,1,arguments.length),We("Reference.remove",this.path),y.validateCallback("Reference.remove",1,v,!0),this.set(null,v)},u.prototype.transaction=function(v,T,ie){if(y.validateArgCount("Reference.transaction",1,3,arguments.length),We("Reference.transaction",this.path),y.validateCallback("Reference.transaction",1,v,!1),y.validateCallback("Reference.transaction",2,T,!0),Qe("Reference.transaction",3,ie,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===ie&&(ie=!0);var we=new y.Deferred;"function"==typeof T&&we.promise.catch(function(){});var ft=function(Ut,dn,tn){Ut?we.reject(Ut):we.resolve(new xt(dn,tn)),"function"==typeof T&&T(Ut,dn,tn)};return this.repo.startTransaction(this.path,v,ft,ie),we.promise},u.prototype.setPriority=function(v,T){y.validateArgCount("Reference.setPriority",1,2,arguments.length),We("Reference.setPriority",this.path),Vn("Reference.setPriority",1,v,!1),y.validateCallback("Reference.setPriority",2,T,!0);var ie=new y.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),v,null,ie.wrapCallback(T)),ie.promise},u.prototype.push=function(v,T){y.validateArgCount("Reference.push",0,2,arguments.length),We("Reference.push",this.path),Gn("Reference.push",1,v,this.path,!0),y.validateCallback("Reference.push",2,T,!0);var dn,ie=this.repo.serverTime(),we=Gt(ie),ft=this.child(we),Ut=this.child(we);return dn=null!=v?ft.set(v,T).then(function(){return Ut}):Promise.resolve(Ut),ft.then=dn.then.bind(dn),ft.catch=dn.then.bind(dn,void 0),"function"==typeof T&&dn.catch(function(){}),ft},u.prototype.onDisconnect=function(){return We("Reference.onDisconnect",this.path),new Lt(this.repo,this.path)},Object.defineProperty(u.prototype,"database",{get:function(){return this.databaseProp()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),u}(Rs);Rs.__referenceConstructor=es,bs.__referenceConstructor=es;var As=function g(){this.children={},this.childCount=0,this.value=null},br=function(){function g(u,v,T){void 0===u&&(u=""),void 0===v&&(v=null),void 0===T&&(T=new As),this.name_=u,this.parent_=v,this.node_=T}return g.prototype.subTree=function(u){for(var v=u instanceof Ge?u:new Ge(u),T=this,ie=v.getFront();null!==ie;)T=new g(ie,T,y.safeGet(T.node_.children,ie)||new As),ie=(v=v.popFront()).getFront();return T},g.prototype.getValue=function(){return this.node_.value},g.prototype.setValue=function(u){y.assert(void 0!==u,"Cannot set value to undefined"),this.node_.value=u,this.updateParents_()},g.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},g.prototype.hasChildren=function(){return this.node_.childCount>0},g.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},g.prototype.forEachChild=function(u){var v=this;fe(this.node_.children,function(T,ie){u(new g(T,v,ie))})},g.prototype.forEachDescendant=function(u,v,T){v&&!T&&u(this),this.forEachChild(function(ie){ie.forEachDescendant(u,!0,T)}),v&&T&&u(this)},g.prototype.forEachAncestor=function(u,v){for(var T=v?this:this.parent();null!==T;){if(u(T))return!0;T=T.parent()}return!1},g.prototype.forEachImmediateDescendantWithValue=function(u){this.forEachChild(function(v){null!==v.getValue()?u(v):v.forEachImmediateDescendantWithValue(u)})},g.prototype.path=function(){return new Ge(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},g.prototype.name=function(){return this.name_},g.prototype.parent=function(){return this.parent_},g.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},g.prototype.updateChild_=function(u,v){var T=v.isEmpty(),ie=y.contains(this.node_.children,u);T&&ie?(delete this.node_.children[u],this.node_.childCount--,this.updateParents_()):!T&&!ie&&(this.node_.children[u]=v.node_,this.node_.childCount++,this.updateParents_())},g}(),rs=(()=>(function(g){g[g.RUN=0]="RUN",g[g.SENT=1]="SENT",g[g.COMPLETED=2]="COMPLETED",g[g.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",g[g.NEEDS_ABORT=4]="NEEDS_ABORT"}(rs||(rs={}
1)),rs))();Sr.MAX_TRANSACTION_RETRIES_=25,Sr.prototype.transactionsInit_=function(){this.transactionQueueTree_=new br},Sr.prototype.startTransaction=function(g,u,v,T){this.log_("transaction on "+g);var ie=function(){},we=new es(this,g);we.on("value",ie);var Ut={path:g,update:u,onComplete:v,status:null,order:Me(),applyLocally:T,retryCount:0,unwatcher:function(){we.off("value",ie)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},dn=this.getLatestState_(g);Ut.currentInputSnapshot=dn;var tn=Ut.update(dn.val());if(void 0===tn){if(Ut.unwatcher(),Ut.currentOutputSnapshotRaw=null,Ut.currentOutputSnapshotResolved=null,Ut.onComplete){var Bn=new vs(Ut.currentInputSnapshot,new es(this,Ut.path),gn);Ut.onComplete(null,!1,Bn)}}else{Zn("transaction failed: Data returned ",tn,Ut.path),Ut.status=rs.RUN;var Kn=this.transactionQueueTree_.subTree(g),ri=Kn.getValue()||[];ri.push(Ut),Kn.setValue(ri);var wi=void 0;"object"==typeof tn&&null!==tn&&y.contains(tn,".priority")?(wi=y.safeGet(tn,".priority"),y.assert(Dn(wi),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):wi=(this.serverSyncTree_.calcCompleteEventCache(g)||li.EMPTY_NODE).getPriority().val();var qi=this.generateServerValues(),Zr=Wi(tn,wi),Lr=fr(Zr,dn,qi);Ut.currentOutputSnapshotRaw=Zr,Ut.currentOutputSnapshotResolved=Lr,Ut.currentWriteId=this.getNextWriteId_();var _s=this.serverSyncTree_.applyUserOverwrite(g,Lr,Ut.currentWriteId,Ut.applyLocally);this.eventQueue_.raiseEventsForChangedPath(g,_s),this.sendReadyTransactions_()}},Sr.prototype.getLatestState_=function(g,u){return this.serverSyncTree_.calcCompleteEventCache(g,u)||li.EMPTY_NODE},Sr.prototype.sendReadyTransactions_=function(g){var u=this;if(void 0===g&&(g=this.transactionQueueTree_),g||this.pruneCompletedTransactionsBelowNode_(g),null!==g.getValue()){var v=this.buildTransactionQueue_(g);y.assert(v.length>0,"Sending zero length transaction queue"),v.every(function(ie){return ie.status===rs.RUN})&&this.sendTransactionQueue_(g.path(),v)}else g.hasChildren()&&g.forEachChild(function(ie){u.sendReadyTransactions_(ie)})},Sr.prototype.sendTransactionQueue_=function(g,u){for(var v=this,T=u.map(function(ri){return ri.currentWriteId}),ie=this.getLatestState_(g,T),we=ie,ft=ie.hash(),Ut=0;Ut<u.length;Ut++){var dn=u[Ut];y.assert(dn.status===rs.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),dn.status=rs.SENT,dn.retryCount++;var tn=Ge.relativePath(g,dn.path);we=we.updateChild(tn,dn.currentOutputSnapshotRaw)}var Bn=we.val(!0),Kn=g;this.server_.put(Kn.toString(),Bn,function(ri){v.log_("transaction put response",{path:Kn.toString(),status:ri});var wi=[];if("ok"===ri){for(var Gi=[],qi=0;qi<u.length;qi++){if(u[qi].status=rs.COMPLETED,wi=wi.concat(v.serverSyncTree_.ackUserWrite(u[qi].currentWriteId)),u[qi].onComplete){var Zr=u[qi].currentOutputSnapshotResolved,Lr=new es(v,u[qi].path),_s=new vs(Zr,Lr,gn);Gi.push(u[qi].onComplete.bind(null,null,!0,_s))}u[qi].unwatcher()}for(v.pruneCompletedTransactionsBelowNode_(v.transactionQueueTree_.subTree(g)),v.sendReadyTransactions_(),v.eventQueue_.raiseEventsForChangedPath(g,wi),qi=0;qi<Gi.length;qi++)Ve(Gi[qi])}else{if("datastale"===ri)for(qi=0;qi<u.length;qi++)u[qi].status=u[qi].status===rs.SENT_NEEDS_ABORT?rs.NEEDS_ABORT:rs.RUN;else for(ne("transaction at "+Kn.toString()+" failed: "+ri),qi=0;qi<u.length;qi++)u[qi].status=rs.NEEDS_ABORT,u[qi].abortReason=ri;v.rerunTransactions_(g)}},ft)},Sr.prototype.rerunTransactions_=function(g){var u=this.getAncestorTransactionNode_(g),v=u.path(),T=this.buildTransactionQueue_(u);return this.rerunTransactionQueue_(T,v),v},Sr.prototype.rerunTransactionQueue_=function(g,u){if(0!==g.length){for(var v=[],T=[],we=g.filter(function(Qi){return Qi.status===rs.RUN}).map(function(Qi){return Qi.currentWriteId}),ft=0;ft<g.length;ft++){var Ut=g[ft],dn=Ge.relativePath(u,Ut.path),tn=!1,Bn=void 0;if(y.assert(null!==dn,"rerunTransactionsUnderNode_: relativePath should not be null."),Ut.status===rs.NEEDS_ABORT)tn=!0,Bn=Ut.abortReason,T=T.concat(this.serverSyncTree_.ackUserWrite(Ut.currentWriteId,!0));else if(Ut.status===rs.RUN)if(Ut.retryCount>=Sr.MAX_TRANSACTION_RETRIES_)tn=!0,Bn="maxretry",T=T.concat(this.serverSyncTree_.ackUserWrite(Ut.currentWriteId,!0));else{var Kn=this.getLatestState_(Ut.path,we);Ut.currentInputSnapshot=Kn;var ri=g[ft].update(Kn.val());if(void 0!==ri){Zn("transaction failed: Data returned ",ri,Ut.path);var wi=Wi(ri);"object"==typeof ri&&null!=ri&&y.contains(ri,".priority")||(wi=wi.updatePriority(Kn.getPri
1ority()));var qi=Ut.currentWriteId,Zr=this.generateServerValues(),Lr=fr(wi,Kn,Zr);Ut.currentOutputSnapshotRaw=wi,Ut.currentOutputSnapshotResolved=Lr,Ut.currentWriteId=this.getNextWriteId_(),we.splice(we.indexOf(qi),1),T=(T=T.concat(this.serverSyncTree_.applyUserOverwrite(Ut.path,Lr,Ut.currentWriteId,Ut.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(qi,!0))}else tn=!0,Bn="nodata",T=T.concat(this.serverSyncTree_.ackUserWrite(Ut.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(u,T),T=[],tn&&(g[ft].status=rs.COMPLETED,setTimeout(g[ft].unwatcher,Math.floor(0)),g[ft].onComplete))if("nodata"===Bn){var _s=new es(this,g[ft].path),sa=new vs(g[ft].currentInputSnapshot,_s,gn);v.push(g[ft].onComplete.bind(null,null,!1,sa))}else v.push(g[ft].onComplete.bind(null,new Error(Bn),!1,null))}for(this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_),ft=0;ft<v.length;ft++)Ve(v[ft]);this.sendReadyTransactions_()}},Sr.prototype.getAncestorTransactionNode_=function(g){var u,v=this.transactionQueueTree_;for(u=g.getFront();null!==u&&null===v.getValue();)v=v.subTree(u),u=(g=g.popFront()).getFront();return v},Sr.prototype.buildTransactionQueue_=function(g){var u=[];return this.aggregateTransactionQueuesForNode_(g,u),u.sort(function(v,T){return v.order-T.order}),u},Sr.prototype.aggregateTransactionQueuesForNode_=function(g,u){var v=this,T=g.getValue();if(null!==T)for(var ie=0;ie<T.length;ie++)u.push(T[ie]);g.forEachChild(function(we){v.aggregateTransactionQueuesForNode_(we,u)})},Sr.prototype.pruneCompletedTransactionsBelowNode_=function(g){var u=this,v=g.getValue();if(v){for(var T=0,ie=0;ie<v.length;ie++)v[ie].status!==rs.COMPLETED&&(v[T]=v[ie],T++);v.length=T,g.setValue(v.length>0?v:null)}g.forEachChild(function(we){u.pruneCompletedTransactionsBelowNode_(we)})},Sr.prototype.abortTransactions_=function(g){var u=this,v=this.getAncestorTransactionNode_(g).path(),T=this.transactionQueueTree_.subTree(g);return T.forEachAncestor(function(ie){u.abortTransactionsOnNode_(ie)}),this.abortTransactionsOnNode_(T),T.forEachDescendant(function(ie){u.abortTransactionsOnNode_(ie)}),v},Sr.prototype.abortTransactionsOnNode_=function(g){var u=g.getValue();if(null!==u){for(var v=[],T=[],ie=-1,we=0;we<u.length;we++)u[we].status!==rs.SENT_NEEDS_ABORT&&(u[we].status===rs.SENT?(y.assert(ie===we-1,"All SENT items should be at beginning of queue."),ie=we,u[we].status=rs.SENT_NEEDS_ABORT,u[we].abortReason="set"):(y.assert(u[we].status===rs.RUN,"Unexpected transaction status in abort"),u[we].unwatcher(),T=T.concat(this.serverSyncTree_.ackUserWrite(u[we].currentWriteId,!0)),u[we].onComplete&&v.push(u[we].onComplete.bind(null,new Error("set"),!1,null))));for(-1===ie?g.setValue(null):u.length=ie+1,this.eventQueue_.raiseEventsForChangedPath(g.path(),T),we=0;we<v.length;we++)Ve(v[we])}};var fn,H=function(){function g(u,v){var T=this;this.app_=u,this.authProvider_=v,this.auth_=null,this.auth_=v.getImmediate({optional:!0}),this.auth_||v.get().then(function(ie){return T.auth_=ie})}return g.prototype.getToken=function(u){return this.auth_?this.auth_.getToken(u).catch(function(v){return v&&"auth/token-not-initialized"===v.code?(Y("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(v)}):Promise.resolve(null)},g.prototype.addTokenChangeListener=function(u){this.auth_?this.auth_.addAuthTokenListener(u):(setTimeout(function(){return u(null)},0),this.authProvider_.get().then(function(v){return v.addAuthTokenListener(u)}))},g.prototype.removeTokenChangeListener=function(u){this.authProvider_.get().then(function(v){return v.removeAuthTokenListener(u)})},g.prototype.notifyForInvalidToken=function(){var u='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';ne(u+="credential"in this.app_.options?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.')},g}(),nt=function(){function g(){}return g.prototype.getToken=function(u){return Promise.resolve({accessToken:g.EMULATOR_AUTH_TOKEN})},g.prototype.addTokenChangeListener=function(u){u(g.EMULATOR_AUTH_TOKEN)},g.prototype.removeTokenChangeListener=function(u){},g.prototype.notifyForInvalidToken=function(){},g.EMULATOR_AUTH_TOKEN="owner",g}(),Fn=function(){function g(){this.repos_={},this.useRestClient_=!1}return g.getInstance=function(){return fn||(fn=new g),fn},g.prototype.interrupt=function(){var u,v,T,ie;
1try{for(var we=_.__values(Object.keys(this.repos_)),ft=we.next();!ft.done;ft=we.next()){var Ut=ft.value;try{for(var dn=(T=void 0,_.__values(Object.keys(this.repos_[Ut]))),tn=dn.next();!tn.done;tn=dn.next())this.repos_[Ut][tn.value].interrupt()}catch(Kn){T={error:Kn}}finally{try{tn&&!tn.done&&(ie=dn.return)&&ie.call(dn)}finally{if(T)throw T.error}}}}catch(Kn){u={error:Kn}}finally{try{ft&&!ft.done&&(v=we.return)&&v.call(we)}finally{if(u)throw u.error}}},g.prototype.resume=function(){var u,v,T,ie;try{for(var we=_.__values(Object.keys(this.repos_)),ft=we.next();!ft.done;ft=we.next()){var Ut=ft.value;try{for(var dn=(T=void 0,_.__values(Object.keys(this.repos_[Ut]))),tn=dn.next();!tn.done;tn=dn.next())this.repos_[Ut][tn.value].resume()}catch(Kn){T={error:Kn}}finally{try{tn&&!tn.done&&(ie=dn.return)&&ie.call(dn)}finally{if(T)throw T.error}}}}catch(Kn){u={error:Kn}}finally{try{ft&&!ft.done&&(v=we.return)&&v.call(we)}finally{if(u)throw u.error}}},g.prototype.databaseFromApp=function(u,v,T,ie){var we=T||u.options.databaseURL;void 0===we&&(u.options.projectId||V("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),Y("Using default host for project ",u.options.projectId),we=u.options.projectId+"-default-rtdb.firebaseio.com");var dn,ft=tt(we,ie),Ut=ft.repoInfo,tn=void 0;"undefined"!=typeof process&&(tn=process.env.FIREBASE_DATABASE_EMULATOR_HOST),tn?(dn=!0,Ut=(ft=tt(we="http://"+tn+"?ns="+Ut.namespace,ie)).repoInfo):dn=!ft.repoInfo.secure;var Bn=ie&&dn?new nt:new H(u,v);return Ue("Invalid Firebase Database URL",1,ft),ft.path.isEmpty()||V("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(Ut,u,Bn).database},g.prototype.deleteRepo=function(u){var v=y.safeGet(this.repos_,u.app.name);(!v||y.safeGet(v,u.repoInfo_.toURLString())!==u)&&V("Database "+u.app.name+"("+u.repoInfo_+") has already been deleted."),u.interrupt(),delete v[u.repoInfo_.toURLString()]},g.prototype.createRepo=function(u,v,T){var ie=y.safeGet(this.repos_,v.name);ie||(this.repos_[v.name]=ie={});var we=y.safeGet(ie,u.toURLString());return we&&V("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),we=new Sr(u,this.useRestClient_,v,T),ie[u.toURLString()]=we,we},g.prototype.forceRestClient=function(u){this.useRestClient_=u},g}(),qn=function(){function g(u){this.repo_=u,u instanceof Sr||V("Don't call new Database() directly - please use firebase.database()."),this.root_=new es(u,Ge.Empty),this.INTERNAL=new Hi(this)}return Object.defineProperty(g.prototype,"app",{get:function(){return this.repo_.app},enumerable:!1,configurable:!0}),g.prototype.ref=function(u){return this.checkDeleted_("ref"),y.validateArgCount("database.ref",0,1,arguments.length),u instanceof es?this.refFromURL(u.toString()):void 0!==u?this.root_.child(u):this.root_},g.prototype.refFromURL=function(u){var v="database.refFromURL";this.checkDeleted_(v),y.validateArgCount(v,1,1,arguments.length);var T=tt(u,this.repo_.repoInfo_.nodeAdmin);Ue(v,1,T);var ie=T.repoInfo;return ie.host!==this.repo_.repoInfo_.host&&V(v+": Host name does not match the current database: (found "+ie.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(T.path.toString())},g.prototype.checkDeleted_=function(u){null===this.repo_&&V("Cannot call "+u+" on a deleted database.")},g.prototype.goOffline=function(){y.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},g.prototype.goOnline=function(){y.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},g.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(u){return{".sv":{increment:u}}}},g}(),Hi=function(){function g(u){this.database=u}return g.prototype.delete=function(){return _.__awaiter(this,void 0,void 0,function(){return _.__generator(this,function(u){return this.database.checkDeleted_("delete"),Fn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]})})},g}(),wn=Object.freeze({__proto__:null,forceLongPolling:function(){is.forceDisallow(),Ls.forceAllow()},forceWebSockets:function(){Ls.forceDisallow()},isWebSocketsAvailable:function(){return is.isAvailable()},setSecurityDebugCallback:function(g,u){g.repo.persistentConnection_.securityDebugCallback_=u},stats:function(g,u){g.repo.stats(u)},statsIncrementCounter:function(g,u){g.repo.statsIncrementCounter(u)},dataUpdateCount:function(g){return g.repo.dataUpdateCount},interceptServerData:function(g,u){return g.repo.interceptServerData_(u)}}),ii=Li;Li.prototype.simpleListen=function(g,u){this.sendRequest("q",{p:g},u)},Li.prototype.echo=function(g,u){this.sendRequest("echo",{d:g},u)};var Fr=Object.freeze({__proto__:null,DataConnection:ii,RealTimeConnection:mn,hijackHash:function(g){var u=Li.prototype.put;return Li.prototype.put=function(v,T,ie,we){void 0!==we&&(we=g()),u.call(this,v,T,ie,we)},function(){Li.prototype.put=u}},ConnectionTarget:Xe,queryIdentifier:function(g){return g.queryIdentifier()},forceRestClient:function(g){Fn.getInstance().forceRestClient(g)}}),st=qn.ServerValue;function He(g){!function _i(g){ji=g}(g.SDK_VERSION);var u=g.INTERNAL.registerComponent(new D.Component("database",function(v,T){var ie=v.getProvider("app").getImmediate(),we=v.getProvider("auth-internal");return Fn.getInstance().databaseFromApp(ie,we,T)},"PUBLIC").setServiceProps({Reference:es,Query:Rs,Database:qn,DataSnapshot:vs,enableLogging:N,INTERNAL:wn,ServerValue:st,TEST_ACCESS:Fr}).setMultipleInstances(!0));g.registerVersion("@firebase/database","0.6.13"),y.isNodeSdk()&&(Qt.exports=u)}He(ce.default),Z.DataSnapshot=vs,Z.Database=qn,Z.OnDisconnect=Lt,Z.Query=Rs,Z.Reference=es,Z.ServerValue=st,Z.enableLogging=N,Z.registerDatabase=He},199:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var s=S(617),_=S(9278),y=S(4003),j=S(1270),D=S(670),L=S(6355),W=function ce(d){return d&&"object"==typeof d&&"default"in d?d:{default:d}}(_),G={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",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},$=function(d){function r(h,w){var O=this;return(O=d.call(this,w)||this).code=h,O.message=w,O.name="FirebaseError",O.toString=function(){return O.name+": [code="+O.code+"]: "+O.message},O}return s.__extends(r,d),r}(Error),te=new y.Logger("@firebase/firestore");function le(){return te.logLevel}function J(d){for(var r=[],h=1;h<arguments.length;h++)r[h-1]=arguments[h];if(te.logLevel<=y.LogLevel.DEBUG){var w=r.map(me);te.debug.apply(te,s.__spreadArrays(["Firestore (7.24.0): "+d],w))}}function Me(d){for(var r=[],h=1;h<arguments.length;h++)r[h-1]=arguments[h];if(te.logLevel<=y.LogLevel.ERROR){var w=r.map(me);te.error.apply(te,s.__spreadArrays(["Firestore (7.24.0): "+d],w))}}function Re(d){for(var r=[],h=1;h<arguments.length;h++)r[h-1]=arguments[h];if(te.logLevel<=y.LogLevel.WARN){var w=r.map(me);te.warn.apply(te,s.__spreadArrays(["Firestore (7.24.0): "+d],w))}}function me(d){if("string"==typeof d)return d;try{return JSON.stringify(d)}catch(h){return d}}function Q(d){void 0===d&&(d="Unexpected state");var r="FIRESTORE (7.24.0) INTERNAL ASSERTION FAILED: "+d;throw Me(r),new Error(r)}function P(d,r){d||Q()}function N(d,r){return d}function Y(d){var r=0;for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&r++;return r}function de(d,r){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&r(h,d[h])}function re(d){for(var r in d)if(Object.prototype.hasOwnProperty.call(d,r))return!1;return!0}var V=function(){function d(r,h,w){void 0===h?h=0:h>r.length&&Q(),void 0===w?w=r.length-h:w>r.length-h&&Q(),this.segments=r,this.offset=h,this.t=w}return Object.defineProperty(d.prototype,"length",{get:function(){return this.t},enumerable:!1,configurable:!0}),d.prototype.isEqual=function(r){return 0===d.i(this,r)},d.prototype.child=function(r){var h=this.segments.slice(this.offset,this.limit());return r instanceof d?r.forEach(function(w){h.push(w)}):h.push(r),this.o(h)},d.prototype.limit=function(){return this.offset+this.length},d.prototype.u=function(r){return this.o(this.segments,this.offset+(r=void 0===r?1:r),this.length-r)},d.prototype.h=function(){return this.o(this.segments,this.offset,this.length-1)},d.prototype.l=function(){return this.segments[this.offset]},d.prototype._=function(){return this.get(this.length-1)},d.prototype.get=function(r){return this.segments[this.offset+r]},d.prototype.m=function(){return 0===this.length},d.prototype.T=function(r){if(r.length<this.length)return!1;for(var h=0;h<this.length;h++)if(this.get(h)!==r.get(h))return!1;return!0},d.prototype.I=function(r){if(this.length+1!==r.length)return!1;for(var h=0;h<this.length;h++)if(this.get(h)!==r.get(h))return!1;return!0},d.prototype.forEach=function(r){for(var h=this.offset,w=this.limit();h<w;h++)r(this.segments[h])},d.prototype.A=function(){return this.segments.slice(this.offset,this.limit())},d.i=function(r,h){for(var w=Math.min(r.length,h.length),O=0;O<w;O++){var X=r.get(O),De=h.get(O);if(X<De)return-1;if(X>De)return 1}return r.length<h.length?-1:r.length>h.length?1:0},d}(),ne=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.o=function(h,w,O){return new r(h,w,O)},r.prototype.R=function(){return this.A().join("/")},r.prototype.toString=function(){return this.R()},r.g=function(){for(var h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];for(var O=[],X=0,De=h;X<De.length;X++){var ot=De[X];if(ot.indexOf("//")>=0)throw new $(G.INVALID_ARGUMENT,"Invalid segment ("+ot+"). Paths must not contain // in them.");O.push.apply(O,ot.split("/").filter(function(Ct){return Ct.length>0}))}return new r(O)},r.P=function(){return new r([])},r}(V),E=/^[_a-zA-Z][_a-zA-Z0-9]*$/,M=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.o=function(h,w,O){return new r(h,w,O)},r.V=function(h){return E.test(h)},r.prototype.R=function(){return this.A().map(function(h){return h=h.replace("\\","\\\\").replace("`","\\`"),r.V(h)||(h="`"+h+"`"),h}).join(".")},r.prototype.toString=function(){return this.R()},r.prototype.p=function(){return 1===this.length&&"__name__"===this.get(0)},r.v=function(){return new r(["__name__"])},r.S=function(h){for(var w=[],O="",X=0,De=function(){if(0===O.length)throw new $(G.INVALID_ARGUMENT,"Invalid field path ("+h+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");w.push(O),O=""},ot=!1;X<h.length;
1){var Ct=h[X];if("\\"===Ct){if(X+1===h.length)throw new $(G.INVALID_ARGUMENT,"Path has trailing escape character: "+h);var sn=h[X+1];if("\\"!==sn&&"."!==sn&&"`"!==sn)throw new $(G.INVALID_ARGUMENT,"Path has invalid escape sequence: "+h);O+=sn,X+=2}else"`"===Ct?(ot=!ot,X++):"."!==Ct||ot?(O+=Ct,X++):(De(),X++)}if(De(),ot)throw new $(G.INVALID_ARGUMENT,"Unterminated ` in path: "+h);return new r(w)},r.P=function(){return new r([])},r}(V),A=function(){function d(r){this.path=r}return d.D=function(r){return new d(ne.g(r))},d.C=function(r){return new d(ne.g(r).u(5))},d.prototype.N=function(r){return this.path.length>=2&&this.path.get(this.path.length-2)===r},d.prototype.isEqual=function(r){return null!==r&&0===ne.i(this.path,r.path)},d.prototype.toString=function(){return this.path.toString()},d.i=function(r,h){return ne.i(r.path,h.path)},d.F=function(r){return r.length%2==0},d.$=function(r){return new d(new ne(r.slice()))},d}();function R(d,r){if(0!==r.length)throw new $(G.INVALID_ARGUMENT,"Function "+d+"() does not support arguments, but was called with "+wt(r.length,"argument")+".")}function ee(d,r,h){if(r.length!==h)throw new $(G.INVALID_ARGUMENT,"Function "+d+"() requires "+wt(h,"argument")+", but was called with "+wt(r.length,"argument")+".")}function B(d,r,h){if(r.length<h)throw new $(G.INVALID_ARGUMENT,"Function "+d+"() requires at least "+wt(h,"argument")+", but was called with "+wt(r.length,"argument")+".")}function K(d,r,h,w){if(r.length<h||r.length>w)throw new $(G.INVALID_ARGUMENT,"Function "+d+"() requires between "+h+" and "+w+" arguments, but was called with "+wt(r.length,"argument")+".")}function ge(d,r,h,w){pe(d,r,Ge(h)+" argument",w)}function Fe(d,r,h,w){void 0!==w&&ge(d,r,h,w)}function he(d,r,h,w){pe(d,r,h+" option",w)}function fe(d,r,h,w){void 0!==w&&he(d,r,h,w)}function Ie(d,r,h,w,O){void 0!==w&&function(X,De,ot,Ct,sn){for(var _n=[],Nn=0,Ln=sn;Nn<Ln.length;Nn++){var $n=Ln[Nn];if($n===Ct)return;_n.push(ae($n))}var si=ae(Ct);throw new $(G.INVALID_ARGUMENT,"Invalid value "+si+" provided to function "+X+'() for option "'+ot+'". Acceptable values: '+_n.join(", "))}(d,0,h,w,O)}function Se(d,r,h,w){if(!r.some(function(O){return O===w}))throw new $(G.INVALID_ARGUMENT,"Invalid value "+ae(w)+" provided to function "+d+"() for its "+Ge(h)+" argument. Acceptable values: "+r.join(", "));return w}function pe(d,r,h,w){if(!("object"===r?ke(w):"non-empty string"===r?"string"==typeof w&&""!==w:typeof w===r)){var O=ae(w);throw new $(G.INVALID_ARGUMENT,"Function "+d+"() requires its "+h+" to be of type "+r+", but it was: "+O)}}function ke(d){return"object"==typeof d&&null!==d&&(Object.getPrototypeOf(d)===Object.prototype||null===Object.getPrototypeOf(d))}function ae(d){if(void 0===d)return"undefined";if(null===d)return"null";if("string"==typeof d)return d.length>20&&(d=d.substring(0,20)+"..."),JSON.stringify(d);if("number"==typeof d||"boolean"==typeof d)return""+d;if("object"==typeof d){if(d instanceof Array)return"an array";var r=function(h){if(h.constructor){var w=/function\s+([^\s(]+)\s*\(/.exec(h.constructor.toString());if(w&&w.length>1)return w[1]}return null}(d);return r?"a custom "+r+" object":"an object"}return"function"==typeof d?"a function":Q()}function Ce(d,r,h){if(void 0===h)throw new $(G.INVALID_ARGUMENT,"Function "+d+"() requires a valid "+Ge(r)+" argument, but it was undefined.")}function Ve(d,r,h){de(r,function(w,O){if(h.indexOf(w)<0)throw new $(G.INVALID_ARGUMENT,"Unknown option '"+w+"' passed to function "+d+"(). Available options: "+h.join(", "))})}function Be(d,r,h,w){var O=ae(w);return new $(G.INVALID_ARGUMENT,"Function "+d+"() requires its "+Ge(h)+" argument to be a "+r+", but it was: "+O)}function ut(d,r,h){if(h<=0)throw new $(G.INVALID_ARGUMENT,"Function "+d+"() requires its "+Ge(r)+" argument to be a positive number, but it was: "+h+".")}function Ge(d){switch(d){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return d+"th"}}function wt(d,r){return d+" "+r+(1===d?"":"s")}function Ot(d){var r="undefined"!=typeof self&&(self.crypto||self.msCrypto),h=new Uint8Array(d);if(r&&"function"==typeof r.getRandomValues)r.getRandomValues(h);else for(var w=0;w<d;w++)h[w]=Math.floor(256*Math.random());return h}var Ft=function(){function d(){}return d.k=function(){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",h=Math.floor(256/r.length)*r.length,w="";w.length<20;)for(var O=Ot(40),X=0;X<O.length;++X)w.length<20&&O[X]<h&&(w+=r.charAt(O[X]%r.length));return w},d}();function ht(d,r){return d<r?-1:d>r?1:0}function Ht(d,r,h){return d.length===r.length&&d.every(function(w,O){return h(w,r[O])})}function jt(d){return d+"\0"}var cn=function(){function d(r){this.M=r}return d.fromBase64String=function(r){return new d(atob(r))},d.fromUint8Array=function(r){return new d(function(h){for(var w="",O=0;O<h.length;++O)w+=String.fromCharCode(h[O]);return w}(r))},d.prototype.toBase64=function(){return btoa(this.M)},d.prototype.toUint8Array=function(){return function(r){for(var h=new Uint8Array(r.length),w=0;w<r.length;w++)h[w]=r.charCodeAt(w);return h}(this.M)},d.prototype.O=function(){return 2*this.M.length},d.prototype.L=function(r){return ht(this.M,r.M)},d.prototype.isEqual=function(r){return this.M===r.M},d}();cn.B=new cn("");var hn=function(){function d(r){this.q=r}return d.fromBase64String=function(r){try{return new d(cn.fromBase64String(r))}catch(h){throw new $(G.INVALID_ARGUMENT,"Failed to construct Bytes from Base64 string: "+h)}},d.fromUint8Array=function(r){return new d(cn.fromUint8Array(r))},d.prototype.toBase64=function(){return this.q.toBase64()},d.prototype.toUint8Array=function(){return this.q.toUint8Array()},d.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},d.prototype.isEqual=function(r){return this.q.isEqual(r.q)},d}();function vn(){if("undefined"==typeof Uint8Array)throw new $(G.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function ln(){if("undefined"==typeof atob)throw new $(G.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Jt=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.fromBase64String=function(h){ee("Blob.fromBase64String",arguments,1),ge("Blob.fromBase64String","string",1,h),ln();try{return new r(cn.fromBase64String(h))}catch(w){throw new $(G.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+w)}},r.fromUint8Array=function(h){if(ee("Blob.fromUint8Array",arguments,1),vn(),!(h instanceof Uint8Array))throw Be("Blob.fromUint8Array","Uint8Array",1,h);return new r(cn.fromUint8Array(h))},r.prototype.toBase64=function(){return ee("Blob.toBase64",arguments,0),ln(),d.prototype.toBase64.call(this)},r.prototype.toUint8Array=function(){return ee("Blob.toUint8Array",arguments,0),vn(),d.prototype.toUint8Array.call(this)},r.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},r}(hn),Xe=function(d,r,h,w,O,X){this.U=d,this.persistenceKey=r,this.host=h,this.ssl=w,this.forceLongPolling=O,this.W=X},qe=function(){function d(r,h){this.projectId=r,this.database=h||"(default)"}return Object.defineProperty(d.prototype,"j",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),d.prototype.isEqual=function(r){return r instanceof d&&r.projectId===this.projectId&&r.database===this.database},d.prototype.L=function(r){return ht(this.projectId,r.projectId)||ht(this.database,r.database)},d}(),Pe=function(){function d(r,h){this.K=r,this.G=h,this.H={}}return d.prototype.get=function(r){var h=this.K(r),w=this.H[h];if(void 0!==w)for(var O=0,X=w;O<X.length;O++){var De=X[O],Ct=De[1];if(this.G(De[0],r))return Ct}},d.prototype.has=function(r){return void 0!==this.get(r)},d.prototype.set=function(r,h){var w=this.K(r),O=this.H[w];if(void 0!==O){for(var X=0;X<O.length;X++)if(this.G(O[X][0],r))return void(O[X]=[r,h]);O.push([r,h])}else this.H[w]=[[r,h]]},d.prototype.delete=function(r){var h=this.K(r),w=this.H[h];if(void 0===w)return!1;for(var O=0;O<w.length;O++)if(this.G(w[O][0],r))return 1===w.length?delete this.H[h]:w.splice(O,1),!0;return!1},d.prototype.forEach=function(r){de(this.H,function(h,w){for(var O=0,X=w;O<X.length;O++){var De=X[O];r(De[0],De[1])}})},d.prototype.m=function(){return re(this.H)},d}(),tt=function(){function d(r,h){if(this.seconds=r,this.nanoseconds=h,h<0)throw new $(G.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+h);if(h>=1e9)throw new $(G.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+h);if(r<-62135596800)throw new $(G.INVALID_ARGUMENT,"Timestamp seconds out of range: "+r);if(r>=253402300800)throw new $(G.INVALID_ARGUMENT,"Timestamp seconds out of range: "+r)}return d.now=function(){return d.fromMillis(Date.now())},d.fromDate=function(r){return d.fromMillis(r.getTime())},d.fromMillis=function(r){var h=Math.floor(r/1e3);return new d(h,1e6*(r-1e3*h))},d.prototype.toDate=function(){return new Date(this.toMillis())},d.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},d.prototype.Y=function(r){return this.seconds===r.seconds?ht(this.nanoseconds,r.nanoseconds):ht(this.seconds,r.seconds)},d.prototype.isEqual=function(r){return r.seconds===this.seconds&&r.nanoseconds===this.nanoseconds},d.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},d.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},d.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
1,d}(),bt=function(){function d(r){this.timestamp=r}return d.J=function(r){return new d(r)},d.min=function(){return new d(new tt(0,0))},d.prototype.L=function(r){return this.timestamp.Y(r.timestamp)},d.prototype.isEqual=function(r){return this.timestamp.isEqual(r.timestamp)},d.prototype.X=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},d.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},d.prototype.Z=function(){return this.timestamp},d}();function un(d){return null==d}function It(d){return 0===d&&1/d==-1/0}function Et(d){return"number"==typeof d&&Number.isInteger(d)&&!It(d)&&d<=Number.MAX_SAFE_INTEGER&&d>=Number.MIN_SAFE_INTEGER}var Rt=function(d,r,h,w,O,X,De){void 0===r&&(r=null),void 0===h&&(h=[]),void 0===w&&(w=[]),void 0===O&&(O=null),void 0===X&&(X=null),void 0===De&&(De=null),this.path=d,this.collectionGroup=r,this.orderBy=h,this.filters=w,this.limit=O,this.startAt=X,this.endAt=De,this.tt=null};function Wt(d,r,h,w,O,X,De){return void 0===r&&(r=null),void 0===h&&(h=[]),void 0===w&&(w=[]),void 0===O&&(O=null),void 0===X&&(X=null),void 0===De&&(De=null),new Rt(d,r,h,w,O,X,De)}function Pt(d){var r=N(d);if(null===r.tt){var h=r.path.R();null!==r.collectionGroup&&(h+="|cg:"+r.collectionGroup),h+="|f:",h+=r.filters.map(function(w){return(O=w).field.R()+O.op.toString()+Qn(O.value);var O}).join(","),h+="|ob:",h+=r.orderBy.map(function(w){return(O=w).field.R()+O.dir;var O}).join(","),un(r.limit)||(h+="|l:",h+=r.limit),r.startAt&&(h+="|lb:",h+=Yn(r.startAt)),r.endAt&&(h+="|ub:",h+=Yn(r.endAt)),r.tt=h}return r.tt}function Dn(d,r){if(d.limit!==r.limit||d.orderBy.length!==r.orderBy.length)return!1;for(var h=0;h<d.orderBy.length;h++)if(!wr(d.orderBy[h],r.orderBy[h]))return!1;if(d.filters.length!==r.filters.length)return!1;for(var w=0;w<d.filters.length;w++)if((O=d.filters[w]).op!==(X=r.filters[w]).op||!O.field.isEqual(X.field)||!xe(O.value,X.value))return!1;var O,X;return d.collectionGroup===r.collectionGroup&&!!d.path.isEqual(r.path)&&!!Oi(d.startAt,r.startAt)&&Oi(d.endAt,r.endAt)}function Gn(d){return A.F(d.path)&&null===d.collectionGroup&&0===d.filters.length}var Zn,zn,nn=function(){function d(r,h,w,O,X,De,ot){void 0===X&&(X=bt.min()),void 0===De&&(De=bt.min()),void 0===ot&&(ot=cn.B),this.target=r,this.targetId=h,this.et=w,this.sequenceNumber=O,this.nt=X,this.lastLimboFreeSnapshotVersion=De,this.resumeToken=ot}return d.prototype.st=function(r){return new d(this.target,this.targetId,this.et,r,this.nt,this.lastLimboFreeSnapshotVersion,this.resumeToken)},d.prototype.it=function(r,h){return new d(this.target,this.targetId,this.et,this.sequenceNumber,h,this.lastLimboFreeSnapshotVersion,r)},d.prototype.rt=function(r){return new d(this.target,this.targetId,this.et,this.sequenceNumber,this.nt,r,this.resumeToken)},d}(),Vn=function(d){this.count=d};function Yt(d){switch(d){case G.OK:return Q();case G.CANCELLED:case G.UNKNOWN:case G.DEADLINE_EXCEEDED:case G.RESOURCE_EXHAUSTED:case G.INTERNAL:case G.UNAVAILABLE:case G.UNAUTHENTICATED:return!1;case G.INVALID_ARGUMENT:case G.NOT_FOUND:case G.ALREADY_EXISTS:case G.PERMISSION_DENIED:case G.FAILED_PRECONDITION:case G.ABORTED:case G.OUT_OF_RANGE:case G.UNIMPLEMENTED:case G.DATA_LOSS:return!0;default:return Q()}}function Rn(d){if(void 0===d)return Me("GRPC error has no .code"),G.UNKNOWN;switch(d){case Zn.OK:return G.OK;case Zn.CANCELLED:return G.CANCELLED;case Zn.UNKNOWN:return G.UNKNOWN;case Zn.DEADLINE_EXCEEDED:return G.DEADLINE_EXCEEDED;case Zn.RESOURCE_EXHAUSTED:return G.RESOURCE_EXHAUSTED;case Zn.INTERNAL:return G.INTERNAL;case Zn.UNAVAILABLE:return G.UNAVAILABLE;case Zn.UNAUTHENTICATED:return G.UNAUTHENTICATED;case Zn.INVALID_ARGUMENT:return G.INVALID_ARGUMENT;case Zn.NOT_FOUND:return G.NOT_FOUND;case Zn.ALREADY_EXISTS:return G.ALREADY_EXISTS;case Zn.PERMISSION_DENIED:return G.PERMISSION_DENIED;case Zn.FAILED_PRECONDITION:return G.FAILED_PRECONDITION;case Zn.ABORTED:return G.ABORTED;case Zn.OUT_OF_RANGE:return G.OUT_OF_RANGE;case Zn.UNIMPLEMENTED:return G.UNIMPLEMENTED;case Zn.DATA_LOSS:return G.DATA_LOSS;default:return Q()}}(zn=Zn||(Zn={}))[zn.OK=0]="OK",zn[zn.CANCELLED=1]="CANCELLED",zn[zn.UNKNOWN=2]="UNKNOWN",zn[zn.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",zn[zn.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",zn[zn.NOT_FOUND=5]="NOT_FOUND",zn[zn.ALREADY_EXISTS=6]="ALREADY_EXISTS",zn[zn.PERMISSION_DENIED=7]="PERMISSION_DENIED",zn[zn.UNAUTHENTICATED=16]="UNAUTHENTICATED",zn[zn.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",zn[zn.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",zn[zn.ABORTED=10]="ABORTED",zn[zn.OUT_OF_RANGE=11]="OUT_OF_RANGE",zn[zn.UNIMPLEMENT
1ED=12]="UNIMPLEMENTED",zn[zn.INTERNAL=13]="INTERNAL",zn[zn.UNAVAILABLE=14]="UNAVAILABLE",zn[zn.DATA_LOSS=15]="DATA_LOSS";var Mt=function(){function d(r,h){this.i=r,this.root=h||We.EMPTY}return d.prototype.ot=function(r,h){return new d(this.i,this.root.ot(r,h,this.i).copy(null,null,We.at,null,null))},d.prototype.remove=function(r){return new d(this.i,this.root.remove(r,this.i).copy(null,null,We.at,null,null))},d.prototype.get=function(r){for(var h=this.root;!h.m();){var w=this.i(r,h.key);if(0===w)return h.value;w<0?h=h.left:w>0&&(h=h.right)}return null},d.prototype.indexOf=function(r){for(var h=0,w=this.root;!w.m();){var O=this.i(r,w.key);if(0===O)return h+w.left.size;O<0?w=w.left:(h+=w.left.size+1,w=w.right)}return-1},d.prototype.m=function(){return this.root.m()},Object.defineProperty(d.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),d.prototype.ct=function(){return this.root.ct()},d.prototype.ut=function(){return this.root.ut()},d.prototype.ht=function(r){return this.root.ht(r)},d.prototype.forEach=function(r){this.ht(function(h,w){return r(h,w),!1})},d.prototype.toString=function(){var r=[];return this.ht(function(h,w){return r.push(h+":"+w),!1}),"{"+r.join(", ")+"}"},d.prototype.lt=function(r){return this.root.lt(r)},d.prototype._t=function(){return new kt(this.root,null,this.i,!1)},d.prototype.ft=function(r){return new kt(this.root,r,this.i,!1)},d.prototype.dt=function(){return new kt(this.root,null,this.i,!0)},d.prototype.wt=function(r){return new kt(this.root,r,this.i,!0)},d}(),kt=function(){function d(r,h,w,O){this.Tt=O,this.Et=[];for(var X=1;!r.m();)if(X=h?w(r.key,h):1,O&&(X*=-1),X<0)r=this.Tt?r.left:r.right;else{if(0===X){this.Et.push(r);break}this.Et.push(r),r=this.Tt?r.right:r.left}}return d.prototype.It=function(){var r=this.Et.pop(),h={key:r.key,value:r.value};if(this.Tt)for(r=r.left;!r.m();)this.Et.push(r),r=r.right;else for(r=r.right;!r.m();)this.Et.push(r),r=r.left;return h},d.prototype.At=function(){return this.Et.length>0},d.prototype.Rt=function(){if(0===this.Et.length)return null;var r=this.Et[this.Et.length-1];return{key:r.key,value:r.value}},d}(),We=function(){function d(r,h,w,O,X){this.key=r,this.value=h,this.color=null!=w?w:d.RED,this.left=null!=O?O:d.EMPTY,this.right=null!=X?X:d.EMPTY,this.size=this.left.size+1+this.right.size}return d.prototype.copy=function(r,h,w,O,X){return new d(null!=r?r:this.key,null!=h?h:this.value,null!=w?w:this.color,null!=O?O:this.left,null!=X?X:this.right)},d.prototype.m=function(){return!1},d.prototype.ht=function(r){return this.left.ht(r)||r(this.key,this.value)||this.right.ht(r)},d.prototype.lt=function(r){return this.right.lt(r)||r(this.key,this.value)||this.left.lt(r)},d.prototype.min=function(){return this.left.m()?this:this.left.min()},d.prototype.ct=function(){return this.min().key},d.prototype.ut=function(){return this.right.m()?this.key:this.right.ut()},d.prototype.ot=function(r,h,w){var O=this,X=w(r,O.key);return(O=X<0?O.copy(null,null,null,O.left.ot(r,h,w),null):0===X?O.copy(null,h,null,null,null):O.copy(null,null,null,null,O.right.ot(r,h,w))).gt()},d.prototype.Pt=function(){if(this.left.m())return d.EMPTY;var r=this;return r.left.yt()||r.left.left.yt()||(r=r.Vt()),(r=r.copy(null,null,null,r.left.Pt(),null)).gt()},d.prototype.remove=function(r,h){var w,O=this;if(h(r,O.key)<0)O.left.m()||O.left.yt()||O.left.left.yt()||(O=O.Vt()),O=O.copy(null,null,null,O.left.remove(r,h),null);else{if(O.left.yt()&&(O=O.bt()),O.right.m()||O.right.yt()||O.right.left.yt()||(O=O.vt()),0===h(r,O.key)){if(O.right.m())return d.EMPTY;w=O.right.min(),O=O.copy(w.key,w.value,null,null,O.right.Pt())}O=O.copy(null,null,null,null,O.right.remove(r,h))}return O.gt()},d.prototype.yt=function(){return this.color},d.prototype.gt=function(){var r=this;return r.right.yt()&&!r.left.yt()&&(r=r.St()),r.left.yt()&&r.left.left.yt()&&(r=r.bt()),r.left.yt()&&r.right.yt()&&(r=r.Dt()),r},d.prototype.Vt=function(){var r=this.Dt();return r.right.left.yt()&&(r=(r=(r=r.copy(null,null,null,null,r.right.bt())).St()).Dt()),r},d.prototype.vt=function(){var r=this.Dt();return r.left.left.yt()&&(r=(r=r.bt()).Dt()),r},d.prototype.St=function(){var r=this.copy(null,null,d.RED,null,this.right.left);return this.right.copy(null,null,this.color,r,null)},d.prototype.bt=function(){var r=this.copy(null,null,d.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,r)},d.prototype.Dt=function(){var r=this.left.copy(null,null,!this.left.color,null,null),h=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,r,h)},d.prototype.Ct=function(){var r=this.Nt();return Math.pow(2,r)<=this.size+1},d.prototype.Nt=function(){if(this.yt()&&this.left.yt()||this.right.yt())throw Q();var r=this.left.Nt();if(r!==this.right.Nt())throw Q();return r+(this.yt()?0:1)},d}();
1We.EMPTY=null,We.RED=!0,We.at=!1,We.EMPTY=new(function(){function d(){this.size=0}return Object.defineProperty(d.prototype,"key",{get:function(){throw Q()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"value",{get:function(){throw Q()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"color",{get:function(){throw Q()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"left",{get:function(){throw Q()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"right",{get:function(){throw Q()},enumerable:!1,configurable:!0}),d.prototype.copy=function(r,h,w,O,X){return this},d.prototype.ot=function(r,h,w){return new We(r,h)},d.prototype.remove=function(r,h){return this},d.prototype.m=function(){return!0},d.prototype.ht=function(r){return!1},d.prototype.lt=function(r){return!1},d.prototype.ct=function(){return null},d.prototype.ut=function(){return null},d.prototype.yt=function(){return!1},d.prototype.Ct=function(){return!0},d.prototype.Nt=function(){return 0},d}());var Ue=function(){function d(r){this.i=r,this.data=new Mt(this.i)}return d.prototype.has=function(r){return null!==this.data.get(r)},d.prototype.first=function(){return this.data.ct()},d.prototype.last=function(){return this.data.ut()},Object.defineProperty(d.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),d.prototype.indexOf=function(r){return this.data.indexOf(r)},d.prototype.forEach=function(r){this.data.ht(function(h,w){return r(h),!1})},d.prototype.Ft=function(r,h){for(var w=this.data.ft(r[0]);w.At();){var O=w.It();if(this.i(O.key,r[1])>=0)return;h(O.key)}},d.prototype.xt=function(r,h){var w;for(w=void 0!==h?this.data.ft(h):this.data._t();w.At();)if(!r(w.It().key))return},d.prototype.$t=function(r){var h=this.data.ft(r);return h.At()?h.It().key:null},d.prototype._t=function(){return new Qe(this.data._t())},d.prototype.ft=function(r){return new Qe(this.data.ft(r))},d.prototype.add=function(r){return this.copy(this.data.remove(r).ot(r,!0))},d.prototype.delete=function(r){return this.has(r)?this.copy(this.data.remove(r)):this},d.prototype.m=function(){return this.data.m()},d.prototype.kt=function(r){var h=this;return h.size<r.size&&(h=r,r=this),r.forEach(function(w){h=h.add(w)}),h},d.prototype.isEqual=function(r){if(!(r instanceof d)||this.size!==r.size)return!1;for(var h=this.data._t(),w=r.data._t();h.At();){var O=h.It().key,X=w.It().key;if(0!==this.i(O,X))return!1}return!0},d.prototype.A=function(){var r=[];return this.forEach(function(h){r.push(h)}),r},d.prototype.toString=function(){var r=[];return this.forEach(function(h){return r.push(h)}),"SortedSet("+r.toString()+")"},d.prototype.copy=function(r){var h=new d(this.i);return h.data=r,h},d}(),Qe=function(){function d(r){this.Mt=r}return d.prototype.It=function(){return this.Mt.It().key},d.prototype.At=function(){return this.Mt.At()},d}(),Lt=new Mt(A.i);function xt(){return Lt}function Gt(){return xt()}var Ke=new Mt(A.i);function Ne(){return Ke}var Ae=new Mt(A.i),Oe=new Ue(A.i);function Ye(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];for(var h=Oe,w=0,O=d;w<O.length;w++){var X=O[w];h=h.add(X)}return h}var je=new Ue(ht);function Tt(){return je}var rn=function(){function d(r){this.i=r?function(h,w){return r(h,w)||A.i(h.key,w.key)}:function(h,w){return A.i(h.key,w.key)},this.Ot=Ne(),this.Lt=new Mt(this.i)}return d.Bt=function(r){return new d(r.i)},d.prototype.has=function(r){return null!=this.Ot.get(r)},d.prototype.get=function(r){return this.Ot.get(r)},d.prototype.first=function(){return this.Lt.ct()},d.prototype.last=function(){return this.Lt.ut()},d.prototype.m=function(){return this.Lt.m()},d.prototype.indexOf=function(r){var h=this.Ot.get(r);return h?this.Lt.indexOf(h):-1},Object.defineProperty(d.prototype,"size",{get:function(){return this.Lt.size},enumerable:!1,configurable:!0}),d.prototype.forEach=function(r){this.Lt.ht(function(h,w){return r(h),!1})},d.prototype.add=function(r){var h=this.delete(r.key);return h.copy(h.Ot.ot(r.key,r),h.Lt.ot(r,null))},d.prototype.delete=function(r){var h=this.get(r);return h?this.copy(this.Ot.remove(r),this.Lt.remove(h)):this},d.prototype.isEqual=function(r){if(!(r instanceof d)||this.size!==r.size)return!1;for(var h=this.Lt._t(),w=r.Lt._t();h.At();){var O=h.It().key,X=w.It().key;if(!O.isEqual(X))return!1}return!0},d.prototype.toString=function(){var r=[];return this.forEach(function(h){r.push(h.toString())}),0===r.length?"DocumentSet ()":"DocumentSet (\n "+r.join(" \n")+"\n)"},d.prototype.copy=function(r,h){var w=new d;return w.i=this.i,w.Ot=r,w.Lt=h,w},d}(),On=function(){function d(){this.qt=new Mt(A.i)}return d.prototype.track=function(r){var h=r.doc.key,w=this.qt.get(h);w?0!==r.type&&3===w.type?this.qt=this.qt.ot(h,r):3===r.type&&1!==w.type?this.qt=this.qt.ot(h,{t
1ype:w.type,doc:r.doc}):2===r.type&&2===w.type?this.qt=this.qt.ot(h,{type:2,doc:r.doc}):2===r.type&&0===w.type?this.qt=this.qt.ot(h,{type:0,doc:r.doc}):1===r.type&&0===w.type?this.qt=this.qt.remove(h):1===r.type&&2===w.type?this.qt=this.qt.ot(h,{type:1,doc:w.doc}):0===r.type&&1===w.type?this.qt=this.qt.ot(h,{type:2,doc:r.doc}):Q():this.qt=this.qt.ot(h,r)},d.prototype.Ut=function(){var r=[];return this.qt.ht(function(h,w){r.push(w)}),r},d}(),xn=function(){function d(r,h,w,O,X,De,ot,Ct){this.query=r,this.docs=h,this.Qt=w,this.docChanges=O,this.Wt=X,this.fromCache=De,this.jt=ot,this.Kt=Ct}return d.Gt=function(r,h,w,O){var X=[];return h.forEach(function(De){X.push({type:0,doc:De})}),new d(r,h,rn.Bt(h),X,w,O,!0,!1)},Object.defineProperty(d.prototype,"hasPendingWrites",{get:function(){return!this.Wt.m()},enumerable:!1,configurable:!0}),d.prototype.isEqual=function(r){if(!(this.fromCache===r.fromCache&&this.jt===r.jt&&this.Wt.isEqual(r.Wt)&&oo(this.query,r.query)&&this.docs.isEqual(r.docs)&&this.Qt.isEqual(r.Qt)))return!1;var h=this.docChanges,w=r.docChanges;if(h.length!==w.length)return!1;for(var O=0;O<h.length;O++)if(h[O].type!==w[O].type||!h[O].doc.isEqual(w[O].doc))return!1;return!0},d}(),Xn=function(){function d(r,h,w,O,X){this.nt=r,this.zt=h,this.Ht=w,this.Yt=O,this.Jt=X}return d.Xt=function(r,h){var w=new Map;return w.set(r,Ai.Zt(r,h)),new d(bt.min(),w,Tt(),xt(),Ye())},d}(),Ai=function(){function d(r,h,w,O,X){this.resumeToken=r,this.te=h,this.ee=w,this.ne=O,this.se=X}return d.Zt=function(r,h){return new d(cn.B,h,Ye(),Ye(),Ye())},d}(),mi=function(d,r,h,w){this.ie=d,this.removedTargetIds=r,this.key=h,this.re=w},fi=function(d,r){this.targetId=d,this.oe=r},Ki=function(d,r,h,w){void 0===h&&(h=cn.B),void 0===w&&(w=null),this.state=d,this.targetIds=r,this.resumeToken=h,this.cause=w},pn=function(){function d(){this.ae=0,this.ce=rt(),this.ue=cn.B,this.he=!1,this.le=!0}return Object.defineProperty(d.prototype,"te",{get:function(){return this.he},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"resumeToken",{get:function(){return this.ue},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"_e",{get:function(){return 0!==this.ae},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fe",{get:function(){return this.le},enumerable:!1,configurable:!0}),d.prototype.de=function(r){r.O()>0&&(this.le=!0,this.ue=r)},d.prototype.we=function(){var r=Ye(),h=Ye(),w=Ye();return this.ce.forEach(function(O,X){switch(X){case 0:r=r.add(O);break;case 2:h=h.add(O);break;case 1:w=w.add(O);break;default:Q()}}),new Ai(this.ue,this.he,r,h,w)},d.prototype.me=function(){this.le=!1,this.ce=rt()},d.prototype.Te=function(r,h){this.le=!0,this.ce=this.ce.ot(r,h)},d.prototype.Ee=function(r){this.le=!0,this.ce=this.ce.remove(r)},d.prototype.Ie=function(){this.ae+=1},d.prototype.Ae=function(){this.ae-=1},d.prototype.Re=function(){this.le=!0,this.he=!0},d}(),gn=function(){function d(r){this.ge=r,this.Pe=new Map,this.ye=xt(),this.Ve=En(),this.pe=new Ue(ht)}return d.prototype.be=function(r){for(var h=0,w=r.ie;h<w.length;h++){var O=w[h];r.re instanceof Kt?this.ve(O,r.re):r.re instanceof ni&&this.Se(O,r.key,r.re)}for(var X=0,De=r.removedTargetIds;X<De.length;X++)this.Se(De[X],r.key,r.re)},d.prototype.De=function(r){var h=this;this.Ce(r,function(w){var O=h.Ne(w);switch(r.state){case 0:h.Fe(w)&&O.de(r.resumeToken);break;case 1:O.Ae(),O._e||O.me(),O.de(r.resumeToken);break;case 2:O.Ae(),O._e||h.removeTarget(w);break;case 3:h.Fe(w)&&(O.Re(),O.de(r.resumeToken));break;case 4:h.Fe(w)&&(h.xe(w),O.de(r.resumeToken));break;default:Q()}})},d.prototype.Ce=function(r,h){var w=this;r.targetIds.length>0?r.targetIds.forEach(h):this.Pe.forEach(function(O,X){w.Fe(X)&&h(X)})},d.prototype.$e=function(r){var h=r.targetId,w=r.oe.count,O=this.ke(h);if(O){var X=O.target;if(Gn(X))if(0===w){var De=new A(X.path);this.Se(h,De,new ni(De,bt.min()))}else P(1===w);else this.Me(h)!==w&&(this.xe(h),this.pe=this.pe.add(h))}},d.prototype.Oe=function(r){var h=this,w=new Map;this.Pe.forEach(function(De,ot){var Ct=h.ke(ot);if(Ct){if(De.te&&Gn(Ct.target)){var sn=new A(Ct.target.path);null!==h.ye.get(sn)||h.Le(ot,sn)||h.Se(ot,sn,new ni(sn,r))}De.fe&&(w.set(ot,De.we()),De.me())}});var O=Ye();this.Ve.forEach(function(De,ot){var Ct=!0;ot.xt(function(sn){var _n=h.ke(sn);return!_n||2===_n.et||(Ct=!1,!1)}),Ct&&(O=O.add(De))});var X=new Xn(r,w,this.pe,this.ye,O);
1return this.ye=xt(),this.Ve=En(),this.pe=new Ue(ht),X},d.prototype.ve=function(r,h){if(this.Fe(r)){var w=this.Le(r,h.key)?2:0;this.Ne(r).Te(h.key,w),this.ye=this.ye.ot(h.key,h),this.Ve=this.Ve.ot(h.key,this.Be(h.key).add(r))}},d.prototype.Se=function(r,h,w){if(this.Fe(r)){var O=this.Ne(r);this.Le(r,h)?O.Te(h,1):O.Ee(h),this.Ve=this.Ve.ot(h,this.Be(h).delete(r)),w&&(this.ye=this.ye.ot(h,w))}},d.prototype.removeTarget=function(r){this.Pe.delete(r)},d.prototype.Me=function(r){var h=this.Ne(r).we();return this.ge.qe(r).size+h.ee.size-h.se.size},d.prototype.Ie=function(r){this.Ne(r).Ie()},d.prototype.Ne=function(r){var h=this.Pe.get(r);return h||(h=new pn,this.Pe.set(r,h)),h},d.prototype.Be=function(r){var h=this.Ve.get(r);return h||(h=new Ue(ht),this.Ve=this.Ve.ot(r,h)),h},d.prototype.Fe=function(r){var h=null!==this.ke(r);return h||J("WatchChangeAggregator","Detected inactive target",r),h},d.prototype.ke=function(r){var h=this.Pe.get(r);return h&&h._e?null:this.ge.Ue(r)},d.prototype.xe=function(r){var h=this;this.Pe.set(r,new pn),this.ge.qe(r).forEach(function(w){h.Se(r,w,null)})},d.prototype.Le=function(r,h){return this.ge.qe(r).has(h)},d}();function En(){return new Mt(A.i)}function rt(){return new Mt(A.i)}function it(d){var r,h;return"server_timestamp"===(null===(h=((null===(r=null==d?void 0:d.mapValue)||void 0===r?void 0:r.fields)||{}).__type__)||void 0===h?void 0:h.stringValue)}function ue(d){var r=d.mapValue.fields.__previous_value__;return it(r)?ue(r):r}function ve(d){var r=li(d.mapValue.fields.__local_write_time__.timestampValue);return new tt(r.seconds,r.nanos)}var at=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function q(d){return"nullValue"in d?0:"booleanValue"in d?1:"integerValue"in d||"doubleValue"in d?2:"timestampValue"in d?3:"stringValue"in d?5:"bytesValue"in d?6:"referenceValue"in d?7:"geoPointValue"in d?8:"arrayValue"in d?9:"mapValue"in d?it(
1d)?4:10:Q()}function xe(d,r){var O,h=q(d);if(h!==q(r))return!1;switch(h){case 0:return!0;case 1:return d.booleanValue===r.booleanValue;case 4:return ve(d).isEqual(ve(r));case 3:return function(w,O){if("string"==typeof w.timestampValue&&"string"==typeof O.timestampValue&&w.timestampValue.length===O.timestampValue.length)return w.timestampValue===O.timestampValue;var X=li(w.timestampValue),De=li(O.timestampValue);return X.seconds===De.seconds&&X.nanos===De.nanos}(d,r);case 5:return d.stringValue===r.stringValue;case 6:return O=r,zi(d.bytesValue).isEqual(zi(O.bytesValue));case 7:return d.referenceValue===r.referenceValue;case 8:return function(w,O){return mr(w.geoPointValue.latitude)===mr(O.geoPointValue.latitude)&&mr(w.geoPointValue.longitude)===mr(O.geoPointValue.longitude)}(d,r);case 2:return function(w,O){if("integerValue"in w&&"integerValue"in O)return mr(w.integerValue)===mr(O.integerValue);if("doubleValue"in w&&"doubleValue"in O){var X=mr(w.doubleValue),De=mr(O.doubleValue);return X===De?It(X)===It(De):isNaN(X)&&isNaN(De)}return!1}(d,r);case 9:return Ht(d.arrayValue.values||[],r.arrayValue.values||[],xe);case 10:return function(w,O){var X=w.mapValue.fields||{},De=O.mapValue.fields||{};if(Y(X)!==Y(De))return!1;for(var ot in X)if(X.hasOwnProperty(ot)&&(void 0===De[ot]||!xe(X[ot],De[ot])))return!1;return!0}(d,r);default:return Q()}}function _t(d,r){return void 0!==(d.values||[]).find(function(h){return xe(h,r)})}function Xt(d,r){var O,X,De,ot,h=q(d),w=q(r);if(h!==w)return ht(h,w);switch(h){case 0:return 0;case 1:return ht(d.booleanValue,r.booleanValue);case 2:return X=r,(De=mr((O=d).integerValue||O.doubleValue))<(ot=mr(X.integerValue||X.doubleValue))?-1:De>ot?1:De===ot?0:isNaN(De)?isNaN(ot)?0:-1:1;case 3:return Un(d.timestampValue,r.timestampValue);case 4:return Un(ve(d),ve(r));case 5:return ht(d.stringValue,r.stringValue);case 6:return function(O,X){var De=zi(O),ot=zi(X);return De.L(ot)}(d.bytesValue,r.bytesValue);case 7:return function(O,X){for(var De=O.split("/"),ot=X.split("/"),Ct=0;Ct<De.length&&Ct<ot.length;Ct++){var sn=ht(De[Ct],ot[Ct]);if(0!==sn)return sn}return ht(De.length,ot.length)}(d.referenceValue,r.referenceValue);case 8:return function(O,X){var De=ht(mr(O.latitude),mr(X.latitude));return 0!==De?De:ht(mr(O.longitude),mr(X.longitude))}(d.geoPointValue,r.geoPointValue);case 9:return function(O,X){for(var De=O.values||[],ot=X.values||[],Ct=0;Ct<De.length&&Ct<ot.length;++Ct){var sn=Xt(De[Ct],ot[Ct]);if(sn)return sn}return ht(De.length,ot.length)}(d.arrayValue,r.arrayValue);case 10:return function(O,X){var De=O.fields||{},ot=Object.keys(De),Ct=X.fields||{},sn=Object.keys(Ct);ot.sort(),sn.sort();for(var _n=0;_n<ot.length&&_n<sn.length;++_n){var Nn=ht(ot[_n],sn[_n]);if(0!==Nn)return Nn;var Ln=Xt(De[ot[_n]],Ct[sn[_n]]);if(0!==Ln)return Ln}return ht(ot.length,sn.length)}(d.mapValue,r.mapValue);default:throw Q()}}function Un(d,r){if("string"==typeof d&&"string"==typeof r&&d.length===r.length)return ht(d,r);var h=li(d),w=li(r),O=ht(h.seconds,w.seconds);return 0!==O?O:ht(h.nanos,w.nanos)}function Qn(d){return vi(d)}function vi(d){return"nullValue"in d?"null":"booleanValue"in d?""+d.booleanValue:"integerValue"in d?""+d.integerValue:"doubleValue"in d?""+d.doubleValue:"timestampValue"in d?"time("+(O=li(d.timestampValue)).seconds+","+O.nanos+")":"stringValue"in d?d.stringValue:"bytesValue"in d?zi(d.bytesValue).toBase64():"referenceValue"in d?A.C(d.referenceValue).toString():"geoPointValue"in d?"geo("+(r=d.geoPointValue).latitude+","+r.longitude+")":"arrayValue"in d?function(w){for(var O="[",X=!0,De=0,ot=w.values||[];De<ot.length;De++)X?X=!1:O+=",",O+=vi(ot[De]);return O+"]"}(d.arrayValue):"mapValue"in d?function(w){for(var O="{",X=!0,De=0,ot=Object.keys(w.fields||{}).sort();De<ot.length;De++){var Ct=ot[De];X?X=!1:O+=",",O+=Ct+":"+vi(w.fields[Ct])}return O+"}"}(d.mapValue):Q();var O,r}function li(d){if(P(!!d),"string"==typeof d){var r=0,h=at.exec(d);if(P(!!h),h[1]){var w=h[1];w=(w+"000000000").substr(0,9),r=Number(w)}var O=new Date(d);return{seconds:Math.floor(O.getTime()/1e3),nanos:r}}return{seconds:mr(d.seconds),nanos:mr(d.nanos)}}function mr(d){return"number"==typeof d?d:"string"==typeof d?Number(d):0}function zi(d){return"string"==typeof d?cn.fromBase64String(d):cn.fromUint8Array(d)}function hr(d,r){return{referenceValue:"projects/"+d.projectId+"/databases/"+d.database+"/documents/"+r.path.R()}}function Wi(d){return!!d&&"integerValue"in d}function qs(d){return!!d&&"arrayValue"in d}function fs(d){return!!d&&"nullValue"in d}function or(d){return!!d&&"doubleValue"in d&&isNaN(Number(d.doubleValue))}function vs(d){return!!d&&"mapValue"in d}var go={asc:"ASCENDING",desc:"DESCENDING"},Ds={"<":"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"},dr=function(d,r){this.U=d,this.Qe=r};function Qs(d){return{integerValue:""+d}}function Os(d,r){if(d.Qe){if(isNaN(r))return{doubleValue:"NaN"};if(r===1/0)return{doubleValue:"Infinity"};if(r===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:It(r)?"-0":r}}function Rs(d,r){return Et(r)?Qs(r):Os(d,r)}function Js(d,r){return d.Qe?new Date(1e3*r.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+r.nanoseconds).slice(-9)+"Z":{seconds:""+r.seconds,nanos:r.nanoseconds}}function qr(d,r){return d.Qe?r.toBase64():r.toUint8Array()}function zr(d,r){return Js(d,r.Z())}function Oo(d){return P(!!d),bt.J((h=li(d),new tt(h.seconds,h.nanos)));var h}
1function ar(d,r){return(h=d,new ne(["projects",h.projectId,"databases",h.database])).child("documents").child(r).R();var h}function Wr(d){var r=ne.g(d);return P(Fs(r)),r}function ys(d,r){return ar(d.U,r.path)}function fr(d,r){var h=Wr(r);return P(h.get(1)===d.U.projectId),P(!h.get(3)&&!d.U.database||h.get(3)===d.U.database),new A(zs(h))}function ls(d,r){return ar(d.U,r)}function eo(d){var r=Wr(d);return 4===r.length?ne.P():zs(r)}function Kr(d){return new ne(["projects",d.U.projectId,"databases",d.U.database]).R()}function zs(d){return P(d.length>4&&"documents"===d.get(4)),d.u(5)}function Ro(d,r,h){return{name:ys(d,r),fields:h.proto.mapValue.fields}}function xs(d,r){var h,O;if(r instanceof yr)h={update:Ro(d,r.key,r.value)};else if(r instanceof io)h={delete:ys(d,r.key)};else if(r instanceof Rr)h={update:Ro(d,r.key,r.data),updateMask:no(r.We)};else if(r instanceof Ss)h={transform:{document:ys(d,r.key),fieldTransforms:r.fieldTransforms.map(function(w){return function(O,X){var De=X.transform;if(De instanceof ws)return{fieldPath:X.field.R(),setToServerValue:"REQUEST_TIME"};if(De instanceof vt)return{fieldPath:X.field.R(),appendMissingElements:{values:De.elements}};if(De instanceof Zt)return{fieldPath:X.field.R(),removeAllFromArray:{values:De.elements}};if(De instanceof Mn)return{fieldPath:X.field.R(),increment:De.je};throw Q()}(0,w)})}};else{if(!(r instanceof To))return Q();h={verify:ys(d,r.key)}}return r.Ge.Ke||(h.currentDocument=void 0!==(O=r.Ge).updateTime?{updateTime:zr(d,O.updateTime)}:void 0!==O.exists?{exists:O.exists}:Q()),h}function Ui(d,r){var _n,h=r.currentDocument?void 0!==(_n=r.currentDocument).updateTime?Pi.updateTime(Oo(_n.updateTime)):void 0!==_n.exists?Pi.exists(_n.exists):Pi.ze():Pi.ze();if(r.update){var w=fr(d,r.update.name),O=new Is({mapValue:{fields:r.update.fields}});if(r.updateMask){var X=function(_n){return new pi((_n.fieldPaths||[]).map(function(Ln){return M.S(Ln)}))}(r.updateMask);return new Rr(w,O,X,h)}return new yr(w,O,h)}if(r.delete){var De=fr(d,r.delete);return new io(De,h)}if(r.transform){var ot=fr(d,r.transform.document),Ct=r.transform.fieldTransforms.map(function(_n){return function(Nn,Ln){var $n=null;"setToServerValue"in Ln?(P("REQUEST_TIME"===Ln.setToServerValue),$n=new ws):"appendMissingElements"in Ln?$n=new vt(Ln.appendMissingElements.values||[]):"removeAllFromArray"in Ln?$n=new Zt(Ln.removeAllFromArray.values||[]):"increment"in Ln?$n=new Mn(Nn,Ln.increment):Q();var lr=M.S(Ln.fieldPath);return new hi(lr,$n)}(d,_n)});return P(!0===h.exists),new Ss(ot,Ct)}if(r.verify){var sn=fr(d,r.verify);return new To(sn,h)}return Q()}function vr(d,r){return{documents:[ls(d,r.path)]}}function Po(d,r){var h={structuredQuery:{}},w=r.path;null!==r.collectionGroup?(h.parent=ls(d,w),h.structuredQuery.from=[{collectionId:r.collectionGroup,allDescendants:!0}]):(h.parent=ls(d,w.h()),h.structuredQuery.from=[{collectionId:w._()}]);var O=function(ot){if(0!==ot.length){var Ct=ot.map(function(sn){return function(_n){if("=="===_n.op){if(or(_n.value))return{unaryFilter:{field:wo(_n.field),op:"IS_NAN"}};if(fs(_n.value))return{unaryFilter:{field:wo(_n.field),op:"IS_NULL"}}}else if("!="===_n.op){if(or(_n.value))return{unaryFilter:{field:wo(_n.field),op:"IS_NOT_NAN"}};if(fs(_n.value))return{unaryFilter:{field:wo(_n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:wo(_n.field),op:lo(_n.op),value:_n.value}}}(sn)});return 1===Ct.length?Ct[0]:{compositeFilter:{op:"AND",filters:Ct}}}}(r.filters);O&&(h.structuredQuery.where=O);var X=function(ot){if(0!==ot.length)return ot.map(function(Ct){return{field:wo((sn=Ct).field),direction:Ar(sn.dir)};var sn})}(r.orderBy);X&&(h.structuredQuery.orderBy=X);var Ct,De=(Ct=r.limit,d.Qe||un(Ct)?Ct:{value:Ct});return null!==De&&(h.structuredQuery.limit=De),r.startAt&&(h.structuredQuery.startAt=to(r.startAt)),r.endAt&&(h.structuredQuery.endAt=to(r.endAt)),h}function Ps(d){var r=eo(d.parent),h=d.structuredQuery,w=h.from?h.from.length:0,O=null;if(w>0){P(1===w);var X=h.from[0];X.allDescendants?O=X.collectionId:r=r.child(X.collectionId)}var De=[];h.where&&(De=Ao(h.where));var ot=[];h.orderBy&&(ot=h.orderBy.map(function(Nn){return new Ji(Nr((Ln=Nn).field),function($n){switch($n){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(Ln.direction));var Ln}));var Nn,Ln,Ct=null;h.limit&&(Ct=un(Ln="object"==typeof(Nn=h.limit)?Nn.value:Nn)?null:Ln);var sn=null;h.startAt&&(sn=ms(h.startAt));var _n=null;return h.endAt&&(_n=ms(h.endAt)),is(Eo(r,O,ot,De,Ct,"F",sn,_n))}function Ao(d){return d?void 0!==d.unaryFilter?[Mo(d)]:void 0!==d.fieldFilter?[Xs(d)]:void 0!==d.compositeFilter?d.compositeFilter.filters.map(function(r){return Ao(r)}).reduce(function(r,h){return r.concat(h)}):Q():[]}function to(d){return{before:d.before,values:d.position}}function ms(d){return new In(d.values||[],!!d.before)}function Ar(d){return go[d]}function lo(d){return Ds[d]}function wo(d){return{fieldPath:d.R()}}function Nr(d){return M.S(d.fieldPath)}function Xs(d){return Ur.create(Nr(d.fieldFilter.field),function(r){switch(r){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 Q()}}(d.fieldFilter.op),d.fieldFilter.value)}
1function Mo(d){switch(d.unaryFilter.op){case"IS_NAN":var r=Nr(d.unaryFilter.field);return Ur.create(r,"==",{doubleValue:NaN});case"IS_NULL":var h=Nr(d.unaryFilter.field);return Ur.create(h,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var w=Nr(d.unaryFilter.field);return Ur.create(w,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var O=Nr(d.unaryFilter.field);return Ur.create(O,"!=",{nullValue:"NULL_VALUE"});default:return Q()}}function no(d){var r=[];return d.fields.forEach(function(h){return r.push(h.R())}),{fieldPaths:r}}function Fs(d){return d.length>=4&&"projects"===d.get(0)&&"databases"===d.get(2)}var Dr=function(){this.He=void 0};function mo(d,r,h){return d instanceof ws?(X={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:(w=h).seconds,nanos:w.nanoseconds}}}},(O=r)&&(X.fields.__previous_value__=O),{mapValue:X}):d instanceof vt?pt(d,r):d instanceof Zt?yn(d,r):function(w,O){var X=bs(w,O),De=jn(X)+jn(w.je);return Wi(X)&&Wi(w.je)?Qs(De):Os(w.serializer,De)}(d,r);var w,O,X}function Ws(d,r,h){return d instanceof vt?pt(d,r):d instanceof Zt?yn(d,r):h}function bs(d,r){return d instanceof Mn?Wi(h=r)||(w=h)&&"doubleValue"in w?r:{integerValue:0}:null;var w,h}var ws=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r}(Dr),vt=function(d){function r(h){var w=this;return(w=d.call(this)||this).elements=h,w}return s.__extends(r,d),r}(Dr);function pt(d,r){for(var h=ti(r),w=function(De){h.some(function(ot){return xe(ot,De)})||h.push(De)},O=0,X=d.elements;O<X.length;O++)w(X[O]);return{arrayValue:{values:h}}}var Zt=function(d){function r(h){var w=this;return(w=d.call(this)||this).elements=h,w}return s.__extends(r,d),r}(Dr);function yn(d,r){for(var h=ti(r),w=function(De){h=h.filter(function(ot){return!xe(ot,De)})},O=0,X=d.elements;O<X.length;O++)w(X[O]);return{arrayValue:{values:h}}}var Mn=function(d){function r(h,w){var O=this;return(O=d.call(this)||this).serializer=h,O.je=w,O}return s.__extends(r,d),r}(Dr);function jn(d){return mr(d.integerValue||d.doubleValue)}function ti(d){return qs(d)&&d.arrayValue.values?d.arrayValue.values.slice():[]}var pi=function(){function d(r){this.fields=r,r.sort(M.i)}return d.prototype.Ye=function(r){for(var h=0,w=this.fields;h<w.length;h++)if(w[h].T(r))return!0;return!1},d.prototype.isEqual=function(r){return Ht(this.fields,r.fields,function(h,w){return h.isEqual(w)})},d}(),hi=function(d,r){this.field=d,this.transform=r},Di=function(d,r){this.version=d,this.transformResults=r},Pi=function(){function d(r,h){this.updateTime=r,this.exists=h}return d.ze=function(){return new d},d.exists=function(r){return new d(void 0,r)},d.updateTime=function(r){return new d(r)},Object.defineProperty(d.prototype,"Ke",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),d.prototype.isEqual=function(r){return this.exists===r.exists&&(this.updateTime?!!r.updateTime&&this.updateTime.isEqual(r.updateTime):!r.updateTime)},d}();function Xi(d,r){return void 0!==d.updateTime?r instanceof Kt&&r.version.isEqual(d.updateTime):void 0===d.exists||d.exists===r instanceof Kt}var tr=function(){};function Qr(d,r,h){return d instanceof yr?new Kt((w=d).key,h.version,w.value,{hasCommittedMutations:!0}):d instanceof Rr?function(w,O,X){if(!Xi(w.Ge,O))return new Fi(w.key,X.version);var De=Us(w,O);return new Kt(w.key,X.version,De,{hasCommittedMutations:!0})}(d,r,h):d instanceof Ss?function(w,O,X){if(P(null!=X.transformResults),!Xi(w.Ge,O))return new Fi(w.key,X.version);var De=gs(0,O),ot=function(_n,Nn,Ln){var $n=[];P(_n.length===Ln.length);for(var si=0;si<Ln.length;si++){var ai=_n[si],lr=ai.transform,rr=null;Nn instanceof Kt&&(rr=Nn.field(ai.field)),$n.push(Ws(lr,rr,Ln[si]))}return $n}(w.fieldTransforms,O,X.transformResults),Ct=X.version,sn=Ms(w,De.data(),ot);return new Kt(w.key,Ct,sn,{hasCommittedMutations:!0})}(d,r,h):function(w,O,X){return new ni(w.key,X.version,{hasCommittedMutations:!0})}(d,0,h);var w}function pr(d,r,h,w){return d instanceof yr?function(O,X){if(!Xi(O.Ge,X))return X;var De=ps(X);return new Kt(O.key,De,O.value,{Je:!0})}(d,r):d instanceof Rr?function(O,X){if(!Xi(O.Ge,X))return X;var De=ps(X),ot=Us(O,X);return new Kt(O.key,De,ot,{Je:!0})}(d,r):d instanceof Ss?function(O,X,De,ot){if(!Xi(O.Ge,X))return X;var Ct=gs(0,X),sn=function(Nn,Ln,$n,si){for(var ai=[],lr=0,rr=Nn;lr<rr.length;lr++){var kr=rr[lr],Gr=kr.transform,Ts=null;$n instanceof Kt&&(Ts=$n.field(kr.field)),null===Ts&&si instanceof Kt&&(Ts=si.field(kr.field)),ai.push(mo(Gr,Ts,Ln))}return ai}(O.fieldTransforms,De,X,ot),_n=Ms(O,Ct.data(),sn);return new Kt(O.key,Ct.version,_n,{Je:!0})}(d,r,w,h):Xi((O=d).Ge,X=r)?new ni(O.key,bt.min()):X;var O,X}function ts(d,r){return d instanceof Ss?function(h,w){for(var O=null,X=0,De=h.fieldTransforms;X<De.length;X++){var ot=De[X],Ct=w instanceof Kt?w.field(ot.field):void 0,sn=bs(ot.transform,Ct||null);null!=sn&&(O=null==O?(new yt).set(ot.field,sn):O.set(ot.field,sn))}return O?O.Xe():null}(d,r):null}function jr(d,r){return d.type===r.type&&!!d.key.isEqual(r.key)&&!!d.Ge.isEqual(r.Ge)&&(0===d.type?d.value.isEqual(r.value):1===d.type?d.data.isEqual(r.data)&&d.We.isEqual(r.We):2!==d.type||Ht(d.fieldTransforms,d.fieldTransforms,function(h,w){return(O=h).field.isEqual((X=w).field)&&(ot=X.transform,(De=O.transform)instanceof vt&&ot instanceof vt||De instanceof Zt&&ot instanceof Zt?Ht(De.elements,ot.elements,xe):De instanceof Mn&&ot instanceof Mn?xe(De.je,ot.je):De instanceof ws&&ot instanceof ws);var O,X,De,ot}))}function ps(d){return d instanceof Kt?d.version:bt.min()}var yr=function(d){function r(h,w,O){var X=this;return(X=d.call(this)||this).key=h,X.value=w,X.Ge=O,X.type=0,X}return s.__extends(r,d),r}(tr),Rr=function(d){function r(h,w,O,X){var De=this;
1return(De=d.call(this)||this).key=h,De.data=w,De.We=O,De.Ge=X,De.type=1,De}return s.__extends(r,d),r}(tr);function Us(d,r){return h=d,w=r instanceof Kt?r.data():Is.empty(),O=new yt(w),h.We.fields.forEach(function(X){if(!X.m()){var De=h.data.field(X);null!==De?O.set(X,De):O.delete(X)}}),O.Xe();var h,w,O}var Ss=function(d){function r(h,w){var O=this;return(O=d.call(this)||this).key=h,O.fieldTransforms=w,O.type=2,O.Ge=Pi.exists(!0),O}return s.__extends(r,d),r}(tr);function gs(d,r){return r}function Ms(d,r,h){for(var w=new yt(r),O=0;O<d.fieldTransforms.length;O++)w.set(d.fieldTransforms[O].field,h[O]);return w.Xe()}var io=function(d){function r(h,w){var O=this;return(O=d.call(this)||this).key=h,O.Ge=w,O.type=3,O}return s.__extends(r,d),r}(tr),To=function(d){function r(h,w){var O=this;return(O=d.call(this)||this).key=h,O.Ge=w,O.type=4,O}return s.__extends(r,d),r}(tr),Is=function(){function d(r){this.proto=r}return d.empty=function(){return new d({mapValue:{}})},d.prototype.field=function(r){if(r.m())return this.proto;for(var h=this.proto,w=0;w<r.length-1;++w)if(!h.mapValue.fields||!vs(h=h.mapValue.fields[r.get(w)]))return null;return(h=(h.mapValue.fields||{})[r._()])||null},d.prototype.isEqual=function(r){return xe(this.proto,r.proto)},d}(),yt=function(){function d(r){void 0===r&&(r=Is.empty()),this.Ze=r,this.tn=new Map}return d.prototype.set=function(r,h){return this.en(r,h),this},d.prototype.delete=function(r){return this.en(r,null),this},d.prototype.en=function(r,h){for(var w=this.tn,O=0;O<r.length-1;++O){var X=r.get(O),De=w.get(X);De instanceof Map?w=De:De&&10===q(De)?(De=new Map(Object.entries(De.mapValue.fields||{})),w.set(X,De),w=De):(w.set(X,De=new Map),w=De)}w.set(r._(),h)},d.prototype.Xe=function(){var r=this.nn(M.P(),this.tn);return null!=r?new Is(r):this.Ze},d.prototype.nn=function(r,h){var w=this,O=!1,X=this.Ze.field(r),De=vs(X)?Object.assign({},X.mapValue.fields):{};return h.forEach(function(ot,Ct){if(ot instanceof Map){var sn=w.nn(r.child(Ct),ot);null!=sn&&(De[Ct]=sn,O=!0)}else null!==ot?(De[Ct]=ot,O=!0):De.hasOwnProperty(Ct)&&(delete De[Ct],O=!0)}),O?{mapValue:{fields:De}}:null},d}();function mt(d){var r=[];return de(d.fields||{},function(h,w){var O=new M([h]);if(vs(w)){var X=mt(w.mapValue).fields;if(0===X.length)r.push(O);else for(var De=0,ot=X;De<ot.length;De++)r.push(O.child(ot[De]))}else r.push(O)}),new pi(r)}var et=function(d,r){this.key=d,this.version=r},Kt=function(d){function r(h,w,O,X){var De=this;return(De=d.call(this,h,w)||this).sn=O,De.Je=!!X.Je,De.hasCommittedMutations=!!X.hasCommittedMutations,De}return s.__extends(r,d),r.prototype.field=function(h){return this.sn.field(h)},r.prototype.data=function(){return this.sn},r.prototype.rn=function(){return this.sn.proto},r.prototype.isEqual=function(h){return h instanceof r&&this.key.isEqual(h.key)&&this.version.isEqual(h.version)&&this.Je===h.Je&&this.hasCommittedMutations===h.hasCommittedMutations&&this.sn.isEqual(h.sn)},r.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.sn.toString()+", {hasLocalMutations: "+this.Je+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(r.prototype,"hasPendingWrites",{get:function(){return this.Je||this.hasCommittedMutations},enumerable:!1,configurable:!0}),r}(et),ni=function(d){function r(h,w,O){var X=this;return(X=d.call(this,h,w)||this).hasCommittedMutations=!(!O||!O.hasCommittedMutations),X}return s.__extends(r,d),r.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(r.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,configurable:!0}),r.prototype.isEqual=function(h){return h instanceof r&&h.hasCommittedMutations===this.hasCommittedMutations&&h.version.isEqual(this.version)&&h.key.isEqual(this.key)},r}(et),Fi=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(r.prototype,"hasPendingWrites",{get:function(){return!0}
1,enumerable:!1,configurable:!0}),r.prototype.isEqual=function(h){return h instanceof r&&h.version.isEqual(this.version)&&h.key.isEqual(this.key)},r}(et),Yi=function(d,r,h,w,O,X,De,ot){void 0===r&&(r=null),void 0===h&&(h=[]),void 0===w&&(w=[]),void 0===O&&(O=null),void 0===X&&(X="F"),void 0===De&&(De=null),void 0===ot&&(ot=null),this.path=d,this.collectionGroup=r,this.on=h,this.filters=w,this.limit=O,this.an=X,this.startAt=De,this.endAt=ot,this.cn=null,this.un=null};function Eo(d,r,h,w,O,X,De,ot){return new Yi(d,r,h,w,O,X,De,ot)}function Ls(d){return new Yi(d)}function Br(d){return!un(d.limit)&&"F"===d.an}function ji(d){return!un(d.limit)&&"L"===d.an}function _i(d){return d.on.length>0?d.on[0].field:null}function Xr(d){for(var r=0,h=d.filters;r<h.length;r++){var w=h[r];if(w.hn())return w.field}return null}function ns(d){return null!==d.collectionGroup}function cs(d){var r=N(d);if(null===r.cn){r.cn=[];var h=Xr(r),w=_i(r);if(null!==h&&null===w)h.p()||r.cn.push(new Ji(h)),r.cn.push(new Ji(M.v(),"asc"));else{for(var O=!1,X=0,De=r.on;X<De.length;X++){var ot=De[X];r.cn.push(ot),ot.field.p()&&(O=!0)}if(!O){var Ct=r.on.length>0?r.on[r.on.length-1].dir:"asc";r.cn.push(new Ji(M.v(),Ct))}}}return r.cn}function is(d){var r=N(d);if(!r.un)if("F"===r.an)r.un=Wt(r.path,r.collectionGroup,cs(r),r.filters,r.limit,r.startAt,r.endAt);else{for(var h=[],w=0,O=cs(r);w<O.length;w++){var X=O[w];h.push(new Ji(X.field,"desc"===X.dir?"asc":"desc"))}var ot=r.endAt?new In(r.endAt.position,!r.endAt.before):null,Ct=r.startAt?new In(r.startAt.position,!r.startAt.before):null;r.un=Wt(r.path,r.collectionGroup,h,r.filters,r.limit,ot,Ct)}return r.un}function js(d,r,h){return new Yi(d.path,d.collectionGroup,d.on.slice(),d.filters.slice(),r,h,d.startAt,d.endAt)}function _o(d,r){return new Yi(d.path,d.collectionGroup,d.on.slice(),d.filters.slice(),d.limit,d.an,r,d.endAt)}function Yo(d,r){return new Yi(d.path,d.collectionGroup,d.on.slice(),d.filters.slice(),d.limit,d.an,d.startAt,r)}function oo(d,r){return Dn(is(d),is(r))&&d.an===r.an}function Ia(d){return Pt(is(d))+"|lt:"+d.an}function Co(d){return"Query(target="+(h=(r=is(d)).path.R(),null!==r.collectionGroup&&(h+=" collectionGroup="+r.collectionGroup),r.filters.length>0&&(h+=", filters: ["+r.filters.map(function(w){return(O=w).field.R()+" "+O.op+" "+Qn(O.value);var O}).join(", ")+"]"),un(r.limit)||(h+=", limit: "+r.limit),r.orderBy.length>0&&(h+=", orderBy: ["+r.orderBy.map(function(w){return(O=w).field.R()+" ("+O.dir+")";var O}).join(", ")+"]"),r.startAt&&(h+=", startAt: "+Yn(r.startAt)),r.endAt&&(h+=", endAt: "+Yn(r.endAt)),"Target("+h+"); limitType=")+d.an+")";var r,h}function qo(d,r){return O=(w=r).key.path,(null!==(h=d).collectionGroup?w.key.N(h.collectionGroup)&&h.path.T(O):A.F(h.path)?h.path.isEqual(O):h.path.I(O))&&function(h,w){for(var O=0,X=h.on;O<X.length;O++){var De=X[O];if(!De.field.p()&&null===w.field(De.field))return!1}return!0}(d,r)&&function(h,w){for(var O=0,X=h.filters;O<X.length;O++)if(!X[O].matches(w))return!1;return!0}(d,r)&&function(h,w){return!(h.startAt&&!ci(h.startAt,cs(h),w)||h.endAt&&ci(h.endAt,cs(h),w))}(d,r);var h,w,O}function us(d){return function(r,h){for(var w=!1,O=0,X=cs(d);O<X.length;O++){var De=X[O],ot=_r(De,r,h);if(0!==ot)return ot;w=w||De.field.p()}return 0}}var Ur=function(d){function r(h,w,O){var X=this;return(X=d.call(this)||this).field=h,X.op=w,X.value=O,X}return s.__extends(r,d),r.create=function(h,w,O){if(h.p())return"in"===w||"not-in"===w?this.ln(h,w,O):new Ys(h,w,O);if(fs(O)){if("=="!==w&&"!="!==w)throw new $(G.INVALID_ARGUMENT,"Invalid query. Null only supports '==' and '!=' comparisons.");return new r(h,w,O)}if(or(O)){if("=="!==w&&"!="!==w)throw new $(G.INVALID_ARGUMENT,"Invalid query. NaN only supports '==' and '!=' comparisons.");return new r(h,w,O)}return"array-contains"===w?new gt(h,O):"in"===w?new $t(h,O):"not-in"===w?new mn(h,O):"array-contains-any"===w?new kn(h,O):new r(h,w,O)},r.ln=function(h,w,O){return"in"===w?new Bt(h,O):new ye(h,O)},r.prototype.matches=function(h){var w=h.field(this.field);return"!="===this.op?null!==w&&this._n(Xt(w,this.value)):null!==w&&q(this.value)===q(w)&&this._n(Xt(w,this.value))},r.prototype._n=function(h){switch(this.op){case"<":return h<0;case"<=":return h<=0;case"==":return 0===h;case"!=":return 0!==h;case">":return h>0;case">=":return h>=0;default:return Q()}},r.prototype.hn=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},r}(function(){}),Ys=function(d){function r(h,w,O){var X=this;return(X=d.call(this,h,w,O)||this).key=A.C(O.referenceValue),X}return s.__extends(r,d),r.prototype.matches=function(h){var w=A.i(h.key,this.key);return this._n(w)},r}(Ur),Bt=function(d){function r(h,w){var O=this;return(O=d.call(this,h,"in",w)||this).keys=Te(0,w),O}return s.__extends(r,d),r.prototype.matches=function(h){return this.keys.some(function(w){return w.isEqual(h.key)})},r}(Ur),ye=function(d){function r(h,w){var O=this;return(O=d.call(this,h,"not-in",w)||this).keys=Te(0,w),O}return s.__extends(r,d),r.prototype.matches=function(h){return!this.keys.some(function(w){return w.isEqual(h.key)})},r}(Ur);function Te(d,r){var h;return((null===(h=r.arrayValue)||void 0===h?void 0:h.values)||[]).map(function(w){return A.C(w.referenceValue)})}var gt=function(d){function r(h,w){return d.call(this,h,"array-contains",w)||this}return s.__extends(r,d),r.prototype.matches=function(h){var w=h.field(this.field);return qs(w)&&_t(w.arrayValue,this.value)},r}(Ur),$t=function(d){function r(h,w){return d.call(this,h,"in",w)||this}return s.__extends(r,d),r.prototype.matches=function(h){var w=h.field(this.field);return null!==w&&_t(this.value.arrayValue,w)},r}(Ur),mn=function(d){function r(h,w){return d.call(this,h,"not-in",w)||this}return s.__extends(r,d),r.prototype.matches=function(h){if(_t(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var w=h.field(this.field);return null!==w&&!_t(this.value.arrayValue,w)},r}(Ur),kn=function(d){function r(h,w){return d.call(this,h,"array-contains-any",w)||this}return s.__extends(r,d),r.prototype.matches=function(h){var w=this,O=h.field(this.field);return!(!qs(O)||!O.arrayValue.values)&&O.arrayValue.values.some(function(X){return _t(w.value.arrayValue,X)})},r}(Ur),In=function(d,r){this.position=d,this.before=r};function Yn(d){return(d.before?"b":"a")+":"+d.position.map(function(r){return Qn(r)}).join(",")}function ci(d,r,h){for(var w=0,O=0;O<d.position.length;O++){var X=r[O],De=d.position[O];if(w=X.field.p()?A.i(A.C(De.referenceValue),h.key):Xt(De,h.field(X.field)),"desc"===X.dir&&(w*=-1),0!==w)break}return d.before?w<=0:w<0}
1function Oi(d,r){if(null===d)return null===r;if(null===r||d.before!==r.before||d.position.length!==r.position.length)return!1;for(var h=0;h<d.position.length;h++)if(!xe(d.position[h],r.position[h]))return!1;return!0}var Ji=function(d,r){void 0===r&&(r="asc"),this.field=d,this.dir=r};function _r(d,r,h){var O,De,ot,Ct,w=d.field.p()?A.i(r.key,h.key):(De=h,ot=r.field(O=d.field),Ct=De.field(O),null!==ot&&null!==Ct?Xt(ot,Ct):Q());switch(d.dir){case"asc":return w;case"desc":return-1*w;default:return Q()}}function wr(d,r){return d.dir===r.dir&&d.field.isEqual(r.field)}var Li=function(){var d=this;this.promise=new Promise(function(r,h){d.resolve=r,d.reject=h})},Mr=function(){function d(r,h,w,O,X){void 0===w&&(w=1e3),void 0===O&&(O=1.5),void 0===X&&(X=6e4),this.fn=r,this.dn=h,this.wn=w,this.mn=O,this.Tn=X,this.En=0,this.In=null,this.An=Date.now(),this.reset()}return d.prototype.reset=function(){this.En=0},d.prototype.Rn=function(){this.En=this.Tn},d.prototype.gn=function(r){var h=this;this.cancel();var w=Math.floor(this.En+this.Pn()),O=Math.max(0,Date.now()-this.An),X=Math.max(0,w-O);X>0&&J("ExponentialBackoff","Backing off for "+X+" ms (base delay: "+this.En+" ms, delay with jitter: "+w+" ms, last attempt: "+O+" ms ago)"),this.In=this.fn.yn(this.dn,X,function(){return h.An=Date.now(),r()}),this.En*=this.mn,this.En<this.wn&&(this.En=this.wn),this.En>this.Tn&&(this.En=this.Tn)},d.prototype.Vn=function(){null!==this.In&&(this.In.pn(),this.In=null)},d.prototype.cancel=function(){null!==this.In&&(this.In.cancel(),this.In=null)},d.prototype.Pn=function(){return(Math.random()-.5)*this.En},d}(),ui=function(){function d(r){var h=this;this.bn=null,this.vn=null,this.result=void 0,this.error=void 0,this.Sn=!1,this.Dn=!1,r(function(w){h.Sn=!0,h.result=w,h.bn&&h.bn(w)},function(w){h.Sn=!0,h.error=w,h.vn&&h.vn(w)})}return d.prototype.catch=function(r){return this.next(void 0,r)},d.prototype.next=function(r,h){var w=this;return this.Dn&&Q(),this.Dn=!0,this.Sn?this.error?this.Cn(h,this.error):this.Nn(r,this.result):new d(function(O,X){w.bn=function(De){w.Nn(r,De).next(O,X)},w.vn=function(De){w.Cn(h,De).next(O,X)}})},d.prototype.Fn=function(){var r=this;return new Promise(function(h,w){r.next(h,w)})},d.prototype.xn=function(r){try{var h=r();return h instanceof d?h:d.resolve(h)}catch(w){return d.reject(w)}},d.prototype.Nn=function(r,h){return r?this.xn(function(){return r(h)}):d.resolve(h)},d.prototype.Cn=function(r,h){return r?this.xn(function(){return r(h)}):d.reject(h)},d.resolve=function(r){return new d(function(h,w){h(r)})},d.reject=function(r){return new d(function(h,w){w(r)})},d.$n=function(r){return new d(function(h,w){var O=0,X=0,De=!1;r.forEach(function(ot){++O,ot.next(function(){++X,De&&X===O&&h()},function(Ct){return w(Ct)})}),De=!0,X===O&&h()})},d.kn=function(r){for(var h=d.resolve(!1),w=function(De){h=h.next(function(ot){return ot?d.resolve(ot):De()})},O=0,X=r;O<X.length;O++)w(X[O]);return h},d.forEach=function(r,h){var w=this,O=[];return r.forEach(function(X,De){O.push(h.call(w,X,De))}),this.$n(O)},d}(),Sr=function(){function d(r,h,w){this.name=r,this.version=h,this.Mn=w,12.2===d.On(j.getUA())&&Me("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return d.delete=function(r){return J("SimpleDb","Removing database:",r),br(window.indexedDB.deleteDatabase(r)).Fn()},d.Ln=function(){if("undefined"==typeof indexedDB)return!1;if(d.Bn())return!0;var r=j.getUA(),h=d.On(r),w=0<h&&h<10,O=d.qn(r),X=0<O&&O<4.5;return!(r.indexOf("MSIE ")>0||r.indexOf("Trident/")>0||r.indexOf("Edge/")>0||w||X)},d.Bn=function(){var r;return"undefined"!=typeof process&&"YES"===(null===(r=process.env)||void 0===r?void 0:r.Un)},d.Qn=function(r,h){return r.store(h)},d.On=function(r){var h=r.match(/i(?:phone|pad|pod) os ([\d_]+)/i),w=h?h[1].split("_").slice(0,2).join("."):"-1";return Number(w)},d.qn=function(r){var h=r.match(/Android ([\d.]+)/i),w=h?h[1].split(".").slice(0,2).join("."):"-1";return Number(w)},d.prototype.Wn=function(r){return s.__awaiter(this,void 0,void 0,function(){var h,w=this;return s.__generator(this,function(O){switch(O.label){case 0:return this.db?[3,2]:(J("SimpleDb","Opening database:",this.name),h=this,[4,new Promise(function(X,De){var ot=indexedDB.open(w.name,w.version);ot.onsuccess=function(Ct){X(Ct.target.result)},ot.onblocked=function(){De(new Es(r,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},ot.onerror=function(Ct){var sn=Ct.target.error;De("VersionError"===sn.name?new $(G.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."):new Es(r,sn))},ot.onupgradeneeded=function(Ct){J("SimpleDb",'Database "'+w.name+'" requires upgrade from version:',Ct.oldVersion),w.Mn.createOrUpgrade(Ct.target.result,ot.transaction,Ct.oldVersion,w.version).next(function(){J("SimpleDb","Database upgrade to version "+w.version+" complete")}
1)}})]);case 1:h.db=O.sent(),O.label=2;case 2:return[2,(this.jn&&(this.db.onversionchange=function(X){return w.jn(X)}),this.db)]}})})},d.prototype.Kn=function(r){this.jn=r,this.db&&(this.db.onversionchange=function(h){return r(h)})},d.prototype.runTransaction=function(r,h,w,O){return s.__awaiter(this,void 0,void 0,function(){var X,De,ot,Ct,sn;return s.__generator(this,function(_n){switch(_n.label){case 0:X="readonly"===h,De=0,ot=function(){var Nn,Ln,$n,si,ai;return s.__generator(this,function(lr){switch(lr.label){case 0:++De,lr.label=1;case 1:return lr.trys.push([1,4,,5]),[4,Ct.Wn(r)];case 2:return Ct.db=lr.sent(),Nn=es.open(Ct.db,r,X?"readonly":"readwrite",w),Ln=O(Nn).catch(function(rr){return Nn.abort(rr),ui.reject(rr)}).Fn(),$n={},Ln.catch(function(){}),[4,Nn.Gn];case 3:return[2,($n.value=(lr.sent(),Ln),$n)];case 4:return J("SimpleDb","Transaction failed with error:",(si=lr.sent()).message,"Retrying:",ai="FirebaseError"!==si.name&&De<3),Ct.close(),ai?[3,5]:[2,{value:Promise.reject(si)}];case 5:return[2]}})},Ct=this,_n.label=1;case 1:return[5,ot()];case 2:if("object"==typeof(sn=_n.sent()))return[2,sn.value];_n.label=3;case 3:return[3,1];case 4:return[2]}})})},d.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},d}(),$r=function(){function d(r){this.zn=r,this.Hn=!1,this.Yn=null}return Object.defineProperty(d.prototype,"Sn",{get:function(){return this.Hn},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"Jn",{get:function(){return this.Yn},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"cursor",{set:function(r){this.zn=r},enumerable:!1,configurable:!0}),d.prototype.done=function(){this.Hn=!0},d.prototype.Xn=function(r){this.Yn=r},d.prototype.delete=function(){return br(this.zn.delete())},d}(),Es=function(d){function r(h,w){var O=this;return(O=d.call(this,G.UNAVAILABLE,"IndexedDB transaction '"+h+"' failed: "+w)||this).name="IndexedDbTransactionError",O}return s.__extends(r,d),r}($);function Vr(d){return"IndexedDbTransactionError"===d.name}var es=function(){function d(r,h){var w=this;this.action=r,this.transaction=h,this.aborted=!1,this.Zn=new Li,this.transaction.oncomplete=function(){w.Zn.resolve()},this.transaction.onabort=function(){h.error?w.Zn.reject(new Es(r,h.error)):w.Zn.resolve()},this.transaction.onerror=function(O){var X=H(O.target.error);w.Zn.reject(new Es(r,X))}}return d.open=function(r,h,w,O){try{return new d(h,r.transaction(O,w))}catch(X){throw new Es(h,X)}},Object.defineProperty(d.prototype,"Gn",{get:function(){return this.Zn.promise},enumerable:!1,configurable:!0}),d.prototype.abort=function(r){r&&this.Zn.reject(r),this.aborted||(J("SimpleDb","Aborting transaction:",r?r.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},d.prototype.store=function(r){var h=this.transaction.objectStore(r);return new As(h)},d}(),As=function(){function d(r){this.store=r}return d.prototype.put=function(r,h){var w;return void 0!==h?(J("SimpleDb","PUT",this.store.name,r,h),w=this.store.put(h,r)):(J("SimpleDb","PUT",this.store.name,"<auto-key>",r),w=this.store.put(r)),br(w)},d.prototype.add=function(r){return J("SimpleDb","ADD",this.store.name,r,r),br(this.store.add(r))},d.prototype.get=function(r){var h=this;return br(this.store.get(r)).next(function(w){return void 0===w&&(w=null),J("SimpleDb","GET",h.store.name,r,w),w})},d.prototype.delete=function(r){return J("SimpleDb","DELETE",this.store.name,r),br(this.store.delete(r))},d.prototype.count=function(){return J("SimpleDb","COUNT",this.store.name),br(this.store.count())},d.prototype.ts=function(r,h){var w=this.cursor(this.options(r,h)),O=[];return this.es(w,function(X,De){O.push(De)}).next(function(){return O})},d.prototype.ns=function(r,h){J("SimpleDb","DELETE ALL",this.store.name);var w=this.options(r,h);w.ss=!1;var O=this.cursor(w);return this.es(O,function(X,De,ot){return ot.delete()})},d.prototype.rs=function(r,h){var w;h?w=r:(w={},h=r);var O=this.cursor(w);return this.es(O,h)},d.prototype.os=function(r){var h=this.cursor({});return new ui(function(w,O){h.onerror=function(X){var De=H(X.target.error);O(De)},h.onsuccess=function(X){var De=X.target.result;De?r(De.primaryKey,De.value).next(function(ot){ot?De.continue():w()}):w()}})},d.prototype.es=function(r,h){var w=[];return new ui(function(O,X){r.onerror=function(De){X(De.target.error)},r.onsuccess=function(De){var ot=De.target.result;if(ot){var Ct=new $r(ot),sn=h(ot.primaryKey,ot.value,Ct);if(sn instanceof ui){var _n=sn.catch(function(Nn){return Ct.done(),ui.reject(Nn)});w.push(_n)}Ct.Sn?O():null===Ct.Jn?ot.continue():ot.continue(Ct.Jn)}else O()}}).next(function(){return ui.$n(w)})},d.prototype.options=function(r,h){var w=void 0;return void 0!==r&&("string"==typeof r?w=r:h=r),{index:w,range:h}},d.prototype.cursor=function(r){var h="next";if(r.reverse&&(h="prev"),r.index){var w=this.store.index(r.index);return r.ss?w.openKeyCursor(r.range,h):w.openCursor(r.range,h)}return this.store.openCursor(r.range,h)},d}();function br(d){return new ui(function(r,h){d.onsuccess=function(w){r(w.target.result)},d.onerror=function(w){var O=H(w.target.error);h(O)}})}
1var rs=!1;function H(d){var r=Sr.On(j.getUA());if(r>=12.2&&r<13){var h="An internal error was encountered in the Indexed Database server";if(d.message.indexOf(h)>=0){var w=new $("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+h+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return rs||(rs=!0,setTimeout(function(){throw w},0)),w}}return d}function nt(){return"undefined"!=typeof window?window:null}function At(){return"undefined"!=typeof document?document:null}var fn=function(){function d(r,h,w,O,X){this.cs=r,this.dn=h,this.us=w,this.op=O,this.hs=X,this.ls=new Li,this.then=this.ls.promise.then.bind(this.ls.promise),this.ls.promise.catch(function(De){})}return d._s=function(r,h,w,O,X){var De=new d(r,h,Date.now()+w,O,X);return De.start(w),De},d.prototype.start=function(r){var h=this;this.fs=setTimeout(function(){return h.ds()},r)},d.prototype.pn=function(){return this.ds()},d.prototype.cancel=function(r){null!==this.fs&&(this.clearTimeout(),this.ls.reject(new $(G.CANCELLED,"Operation cancelled"+(r?": "+r:""))))},d.prototype.ds=function(){var r=this;this.cs.ws(function(){return null!==r.fs?(r.clearTimeout(),r.op().then(function(h){return r.ls.resolve(h)})):Promise.resolve()})},d.prototype.clearTimeout=function(){null!==this.fs&&(this.hs(this),clearTimeout(this.fs),this.fs=null)},d}(),Fn=function(){function d(){var r=this;this.Ts=Promise.resolve(),this.Es=[],this.Is=!1,this.As=[],this.Rs=null,this.gs=!1,this.Ps=[],this.ys=new Mr(this,"async_queue_retry"),this.Vs=function(){var w=At();w&&J("AsyncQueue","Visibility state changed to ",w.visibilityState),r.ys.Vn()};var h=At();h&&"function"==typeof h.addEventListener&&h.addEventListener("visibilitychange",this.Vs)}return Object.defineProperty(d.prototype,"ps",{get:function(){return this.Is},enumerable:!1,configurable:!0}),d.prototype.ws=function(r){this.enqueue(r)},d.prototype.bs=function(r){this.vs(),this.Ss(r)},d.prototype.Ds=function(){if(!this.Is){this.Is=!0;var r=At();r&&"function"==typeof r.removeEventListener&&r.removeEventListener("visibilitychange",this.Vs)}},d.prototype.enqueue=function(r){return this.vs(),this.Is?new Promise(function(h){}):this.Ss(r)},d.prototype.Cs=function(r){var h=this;this.ws(function(){return h.Es.push(r),h.Ns()})},d.prototype.Ns=function(){return s.__awaiter(this,void 0,void 0,function(){var r,h=this;return s.__generator(this,function(w){switch(w.label){case 0:if(0===this.Es.length)return[3,5];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,this.Es[0]()];case 2:return w.sent(),this.Es.shift(),this.ys.reset(),[3,4];case 3:if(!Vr(r=w.sent()))throw r;return J("AsyncQueue","Operation failed with retryable error: "+r),[3,4];case 4:this.Es.length>0&&this.ys.gn(function(){return h.Ns()}),w.label=5;case 5:return[2]}})})},d.prototype.Ss=function(r){var h=this,w=this.Ts.then(function(){return h.gs=!0,r().catch(function(O){throw h.Rs=O,h.gs=!1,Me("INTERNAL UNHANDLED ERROR: ",(De=(X=O).message||"",X.stack&&(De=X.stack.includes(X.message)?X.stack:X.message+"\n"+X.stack),De)),O;var X,De}).then(function(O){return h.gs=!1,O})});return this.Ts=w,w},d.prototype.yn=function(r,h,w){var O=this;this.vs(),this.Ps.indexOf(r)>-1&&(h=0);var X=fn._s(this,r,h,w,function(De){return O.Fs(De)});return this.As.push(X),X},d.prototype.vs=function(){this.Rs&&Q()},d.prototype.xs=function(){},d.prototype.$s=function(){return s.__awaiter(this,void 0,void 0,function(){var r;return s.__generator(this,function(h){switch(h.label){case 0:return[4,r=this.Ts];case 1:h.sent(),h.label=2;case 2:if(r!==this.Ts)return[3,0];h.label=3;case 3:return[2]}})})},d.prototype.ks=function(r){for(var h=0,w=this.As;h<w.length;h++)if(w[h].dn===r)return!0;return!1},d.prototype.Ms=function(r){var h=this;return this.$s().then(function(){h.As.sort(function(De,ot){return De.us-ot.us});for(var w=0,O=h.As;w<O.length;w++){var X=O[w];if(X.pn(),"all"!==r&&X.dn===r)break}return h.$s()})},d.prototype.Os=function(r){this.Ps.push(r)},d.prototype.Fs=function(r){var h=this.As.indexOf(r);this.As.splice(h,1)},d}();function qn(d,r){if(Me("AsyncQueue",r+": "+d),Vr(d))return new $(G.UNAVAILABLE,r+": "+d);throw d}var Hi=function(){this.Ls=void 0,this.listeners=[]}
1,yi=function(){this.Bs=new Pe(function(d){return Ia(d)},oo),this.onlineState="Unknown",this.qs=new Set};function xi(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w,O,X,De,ot,Ct;return s.__generator(this,function(sn){switch(sn.label){case 0:if(h=N(d),O=!1,(X=h.Bs.get(w=r.query))||(O=!0,X=new Hi),!O)return[3,4];sn.label=1;case 1:return sn.trys.push([1,3,,4]),De=X,[4,h.Us(w)];case 2:return De.Ls=sn.sent(),[3,4];case 3:return ot=sn.sent(),Ct=qn(ot,"Initialization of query '"+Co(r.query)+"' failed"),[2,void r.onError(Ct)];case 4:return h.Bs.set(w,X),X.listeners.push(r),r.Qs(h.onlineState),X.Ls&&r.Ws(X.Ls)&&Dt(h),[2]}})})}function nr(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w,O,X,De;return s.__generator(this,function(ot){return h=N(d),O=!1,(X=h.Bs.get(w=r.query))&&(De=X.listeners.indexOf(r))>=0&&(X.listeners.splice(De,1),O=0===X.listeners.length),O?[2,(h.Bs.delete(w),h.js(w))]:[2]})})}function Er(d,r){for(var h=N(d),w=!1,O=0,X=r;O<X.length;O++){var De=X[O],Ct=h.Bs.get(De.query);if(Ct){for(var sn=0,_n=Ct.listeners;sn<_n.length;sn++)_n[sn].Ws(De)&&(w=!0);Ct.Ls=De}}w&&Dt(h)}function $e(d,r,h){var w=N(d),O=w.Bs.get(r);if(O)for(var X=0,De=O.listeners;X<De.length;X++)De[X].onError(h);w.Bs.delete(r)}function Dt(d){d.qs.forEach(function(r){r.next()})}var ct=function(){function d(r,h,w){this.query=r,this.Ks=h,this.Gs=!1,this.zs=null,this.onlineState="Unknown",this.options=w||{}}return d.prototype.Ws=function(r){if(!this.options.includeMetadataChanges){for(var h=[],w=0,O=r.docChanges;w<O.length;w++){var X=O[w];3!==X.type&&h.push(X)}r=new xn(r.query,r.docs,r.Qt,h,r.Wt,r.fromCache,r.jt,!0)}var De=!1;return this.Gs?this.Hs(r)&&(this.Ks.next(r),De=!0):this.Ys(r,this.onlineState)&&(this.Js(r),De=!0),this.zs=r,De},d.prototype.onError=function(r){this.Ks.error(r)},d.prototype.Qs=function(r){this.onlineState=r;var h=!1;return this.zs&&!this.Gs&&this.Ys(this.zs,r)&&(this.Js(this.zs),h=!0),h},d.prototype.Ys=function(r,h){return!r.fromCache||!(this.options.Xs&&"Offline"!==h||r.docs.m()&&"Offline"!==h)},d.prototype.Hs=function(r){return r.docChanges.length>0||!!(r.jt||this.zs&&this.zs.hasPendingWrites!==r.hasPendingWrites)&&!0===this.options.includeMetadataChanges},d.prototype.Js=function(r){r=xn.Gt(r.query,r.docs,r.Wt,r.fromCache),this.Gs=!0,this.Ks.next(r)},d}(),zt=function(){function d(r){this.uid=r}return d.prototype.Zs=function(){return null!=this.uid},d.prototype.ti=function(){return this.Zs()?"uid:"+this.uid:"anonymous-user"},d.prototype.isEqual=function(r){return r.uid===this.uid},d}();zt.UNAUTHENTICATED=new zt(null),zt.ei=new zt("google-credentials-uid"),zt.ni=new zt("first-party-uid");var wn=function(){function d(r,h){var w=this;this.previousValue=r,h&&(h.si=function(O){return w.ii(O)},this.ri=function(O){return h.oi(O)})}return d.prototype.ii=function(r){return this.previousValue=Math.max(r,this.previousValue),this.previousValue},d.prototype.next=function(){var r=++this.previousValue;return this.ri&&this.ri(r),r},d}();function ii(d,r){return"firestore_clients_"+d+"_"+r}function bi(d,r,h){var w="firestore_mutations_"+d+"_"+h;return r.Zs()&&(w+="_"+r.uid),w}function Ni(d,r){return"firestore_targets_"+d+"_"+r}wn.ai=-1;var Hr=function(){function d(r,h,w,O){this.user=r,this.batchId=h,this.state=w,this.error=O}return d.ci=function(r,h,w){var O=JSON.parse(w),X="object"==typeof O&&-1!==["pending","acknowledged","rejected"].indexOf(O.state)&&(void 0===O.error||"object"==typeof O.error),De=void 0;return X&&O.error&&(X="string"==typeof O.error.message&&"string"==typeof O.error.code)&&(De=new $(O.error.code,O.error.message)),X?new d(r,h,O.state,De):(Me("SharedClientState","Failed to parse mutation state for ID '"+h+"': "+w),null)},d.prototype.ui=function(){var r={state:this.state,updateTimeMs:Date.now()};return this.error&&(r.error={code:this.error.code,message:this.error.message}),JSON.stringify(r)},d}(),Zi=function(){function d(r,h,w){this.targetId=r,this.state=h,this.error=w}return d.ci=function(r,h){var w=JSON.parse(h),O="object"==typeof w&&-1!==["not-current","current","rejected"].indexOf(w.state)&&(void 0===w.error||"object"==typeof w.error),X=void 0;return O&&w.error&&(O="string"==typeof w.error.message&&"string"==typeof w.error.code)&&(X=new $(w.error.code,w.error.message)),O?new d(r,w.state,X):(Me("SharedCl
1ientState","Failed to parse target state for ID '"+r+"': "+h),null)},d.prototype.ui=function(){var r={state:this.state,updateTimeMs:Date.now()};return this.error&&(r.error={code:this.error.code,message:this.error.message}),JSON.stringify(r)},d}(),Pr=function(){function d(r,h){this.clientId=r,this.activeTargetIds=h}return d.ci=function(r,h){for(var w=JSON.parse(h),O="object"==typeof w&&w.activeTargetIds instanceof Array,X=Tt(),De=0;O&&De<w.activeTargetIds.length;++De)O=Et(w.activeTargetIds[De]),X=X.add(w.activeTargetIds[De]);return O?new d(r,X):(Me("SharedClientState","Failed to parse client data for instance '"+r+"': "+h),null)},d}(),Fr=function(){function d(r,h){this.clientId=r,this.onlineState=h}return d.ci=function(r){var h=JSON.parse(r);return"object"==typeof h&&-1!==["Unknown","Online","Offline"].indexOf(h.onlineState)&&"string"==typeof h.clientId?new d(h.clientId,h.onlineState):(Me("SharedClientState","Failed to parse online state: "+r),null)},d}(),Ir=function(){function d(){this.activeTargetIds=Tt()}return d.prototype.hi=function(r){this.activeTargetIds=this.activeTargetIds.add(r)},d.prototype.li=function(r){this.activeTargetIds=this.activeTargetIds.delete(r)},d.prototype.ui=function(){var r={activeTargetIds:this.activeTargetIds.A(),updateTimeMs:Date.now()};return JSON.stringify(r)},d}(),Cr=function(){function d(r,h,w,O,X){this.window=r,this.fn=h,this.persistenceKey=w,this._i=O,this.fi=null,this.di=null,this.si=null,this.wi=this.mi.bind(this),this.Ti=new Mt(ht),this.Ei=!1,this.Ii=[];var De=w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=X,this.Ai=ii(this.persistenceKey,this._i),this.Ri="firestore_sequence_number_"+this.persistenceKey,this.Ti=this.Ti.ot(this._i,new Ir),this.gi=new RegExp("^firestore_clients_"+De+"_([^_]*)$"),this.Pi=new RegExp("^firestore_mutations_"+De+"_(\\d+)(?:_(.*))?$"),this.yi=new RegExp("^firestore_targets_"+De+"_(\\d+)$"),this.Vi="firestore_online_state_"+this.persistenceKey,this.window.addEventListener("storage",this.wi)}return d.Ln=function(r){return!(!r||!r.localStorage)},d.prototype.start=function(){return s.__awaiter(this,void 0,void 0,function(){var r,h,w,O,X,De,ot,Ct,sn,_n,Ln=this;return s.__generator(this,function($n){switch($n.label){case 0:return[4,this.fi.pi()];case 1:for(r=$n.sent(),h=0,w=r;h<w.length;h++)(O=w[h])!==this._i&&(X=this.getItem(ii(this.persistenceKey,O)))&&(De=Pr.ci(O,X))&&(this.Ti=this.Ti.ot(De.clientId,De));for(this.bi(),(ot=this.storage.getItem(this.Vi))&&(Ct=this.vi(ot))&&this.Si(Ct),sn=0,_n=this.Ii;sn<_n.length;sn++)this.mi(_n[sn]);return this.Ii=[],this.window.addEventListener("unload",function(){return Ln.Di()}),this.Ei=!0,[2]}})})},d.prototype.oi=function(r){this.setItem(this.Ri,JSON.stringify(r))},d.prototype.Ci=function(){return this.Ni(this.Ti)},d.prototype.Fi=function(r){var h=!1;return this.Ti.forEach(function(w,O){O.activeTargetIds.has(r)&&(h=!0)}),h},d.prototype.xi=function(r){this.$i(r,"pending")},d.prototype.ki=function(r,h,w){this.$i(r,h,w),this.Mi(r)},d.prototype.Oi=function(r){var h="not-current";if(this.Fi(r)){var w=this.storage.getItem(Ni(this.persistenceKey,r));if(w){var O=Zi.ci(r,w);O&&(h=O.state)}}return this.Li.hi(r),this.bi(),h},d.prototype.Bi=function(r){this.Li.li(r),this.bi()},d.prototype.qi=function(r){return this.Li.activeTargetIds.has(r)},d.prototype.Ui=function(r){this.removeItem(Ni(this.persistenceKey,r))},d.prototype.Qi=function(r,h,w){this.Wi(r,h,w)},d.prototype.ji=function(r,h,w){var O=this;h.forEach(function(X){O.Mi(X)}),this.currentUser=r,w.forEach(function(X){O.xi(X)})},d.prototype.Ki=function(r){this.Gi(r)},d.prototype.Di=function(){this.Ei&&(this.window.removeEventListener("storage",this.wi),this.removeItem(this.Ai),this.Ei=!1)},d.prototype.getItem=function(r){var h=this.storage.getItem(r);return J("SharedClientState","READ",r,h),h},d.prototype.setItem=function(r,h){J("SharedClientState","SET",r,h),this.storage.setItem(r,h)},d.prototype.removeItem=function(r){J("SharedClientState","REMOVE",r),this.storage.removeItem(r)},d.prototype.mi=function(r){var h=this,w=r;
1if(w.storageArea===this.storage){if(J("SharedClientState","EVENT",w.key,w.newValue),w.key===this.Ai)return void Me("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.fn.Cs(function(){return s.__awaiter(h,void 0,void 0,function(){var O,X,De,ot,Ct,sn;return s.__generator(this,function(_n){if(this.Ei){if(null!==w.key)if(this.gi.test(w.key)){if(null==w.newValue)return O=this.zi(w.key),[2,this.Hi(O,null)];if(X=this.Yi(w.key,w.newValue))return[2,this.Hi(X.clientId,X)]}else if(this.Pi.test(w.key)){if(null!==w.newValue&&(De=this.Ji(w.key,w.newValue)))return[2,this.Xi(De)]}else if(this.yi.test(w.key)){if(null!==w.newValue&&(ot=this.Zi(w.key,w.newValue)))return[2,this.tr(ot)]}else if(w.key===this.Vi){if(null!==w.newValue&&(Ct=this.vi(w.newValue)))return[2,this.Si(Ct)]}else w.key===this.Ri&&(sn=function(Nn){var Ln=wn.ai;if(null!=Nn)try{var $n=JSON.parse(Nn);P("number"==typeof $n),Ln=$n}catch(si){Me("SharedClientState","Failed to read sequence number from WebStorage",si)}return Ln}(w.newValue))!==wn.ai&&this.si(sn)}else this.Ii.push(w);return[2]})})})}},Object.defineProperty(d.prototype,"Li",{get:function(){return this.Ti.get(this._i)},enumerable:!1,configurable:!0}),d.prototype.bi=function(){this.setItem(this.Ai,this.Li.ui())},d.prototype.$i=function(r,h,w){var O=new Hr(this.currentUser,r,h,w),X=bi(this.persistenceKey,this.currentUser,r);this.setItem(X,O.ui())},d.prototype.Mi=function(r){var h=bi(this.persistenceKey,this.currentUser,r);this.removeItem(h)},d.prototype.Gi=function(r){this.storage.setItem(this.Vi,JSON.stringify({clientId:this._i,onlineState:r}))},d.prototype.Wi=function(r,h,w){var O=Ni(this.persistenceKey,r),X=new Zi(r,h,w);this.setItem(O,X.ui())},d.prototype.zi=function(r){var h=this.gi.exec(r);return h?h[1]:null},d.prototype.Yi=function(r,h){var w=this.zi(r);return Pr.ci(w,h)},d.prototype.Ji=function(r,h){var w=this.Pi.exec(r),O=Number(w[1]);return Hr.ci(new zt(void 0!==w[2]?w[2]:null),O,h)},d.prototype.Zi=function(r,h){var w=this.yi.exec(r),O=Number(w[1]);return Zi.ci(O,h)},d.prototype.vi=function(r){return Fr.ci(r)},d.prototype.Xi=function(r){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(h){return r.user.uid===this.currentUser.uid?[2,this.fi.er(r.batchId,r.state,r.error)]:(J("SharedClientState","Ignoring mutation for non-active user "+r.user.uid),[2])})})},d.prototype.tr=function(r){return this.fi.nr(r.targetId,r.state,r.error)},d.prototype.Hi=function(r,h){var w=this,O=h?this.Ti.ot(r,h):this.Ti.remove(r),X=this.Ni(this.Ti),De=this.Ni(O),ot=[],Ct=[];return De.forEach(function(sn){X.has(sn)||ot.push(sn)}),X.forEach(function(sn){De.has(sn)||Ct.push(sn)}),this.fi.sr(ot,Ct).then(function(){w.Ti=O})},d.prototype.Si=function(r){this.Ti.get(r.clientId)&&this.di(r.onlineState)},d.prototype.Ni=function(r){var h=Tt();return r.forEach(function(w,O){h=h.kt(O.activeTargetIds)}),h},d}(),st=function(){function d(){this.ir=new Ir,this.rr={},this.di=null,this.si=null}return d.prototype.xi=function(r){},d.prototype.ki=function(r,h,w){},d.prototype.Oi=function(r){return this.ir.hi(r),this.rr[r]||"not-current"},d.prototype.Qi=function(r,h,w){this.rr[r]=h},d.prototype.Bi=function(r){this.ir.li(r)},d.prototype.qi=function(r){return this.ir.activeTargetIds.has(r)},d.prototype.Ui=function(r){delete this.rr[r]},d.prototype.Ci=function(){return this.ir.activeTargetIds},d.prototype.Fi=function(r){return this.ir.activeTargetIds.has(r)},d.prototype.start=function(){return this.ir=new Ir,Promise.resolve()},d.prototype.ji=function(r,h,w){},d.prototype.Ki=function(r){},d.prototype.Di=function(){},d.prototype.oi=function(r){},d}(),He=function(){function d(r,h,w,O){this.batchId=r,this.ar=h,this.baseMutations=w,this.mutations=O}return d.prototype.cr=function(r,h,w){for(var O=w.ur,X=0;X<this.mutations.length;X++){var De=this.mutations[X];De.key.isEqual(r)&&(h=Qr(De,h,O[X]))}return h},d.prototype.hr=function(r,h){for(var w=0,O=this.baseMutations;w<O.length;w++){var X=O[w];X.key.isEqual(r)&&(h=pr(X,h,h,this.ar))}for(var De=h,ot=0,Ct=this.mutations;ot<Ct.length;ot++){var sn=Ct[ot];sn.key.isEqual(r)&&(h=pr(sn,h,De,this.ar))}return h},d.prototype.lr=function(r){var h=this,w=r;return this.mutations.forEach(function(O){var X=h.hr(O.key,r.get(O.key));X&&(w=w.ot(O.key,X))}),w},d.prototype.keys=function(){return this.mutations.reduce(function(r,h){return r.add(h.key)},Ye())},d.prototype.isEqual=function(r){return this.batchId===r.batchId&&Ht(this.mutations,r.mutations,function(h,w){return jr(h,w)})&&Ht(this.baseMutations,r.baseMutations,function(h,w){return jr(h,w)})},d}(),g=function(){function d(r,h,w,O){this.batch=r,this._r=h,this.ur=w,this.dr=O}return d.from=function(r,h,w){P(r.mutations.length===w.length);for(var O=Ae,X=r.mutations,De=0;De<X.length;De++)O=O.ot(X[De].key,w[De].version);return new d(r,h,w,O)},d}(),u=function(){function d(){this.wr=new Pe(function(r){return r.toString()},function(r,h){return r.isEqual(h)}),this.mr=!1}return Object.defineProperty(d.prototype,"readTime",{get:function(){return this.Tr},set:function(r){this.Tr=r}
1,enumerable:!1,configurable:!0}),d.prototype.Er=function(r,h){this.Ir(),this.readTime=h,this.wr.set(r.key,r)},d.prototype.Ar=function(r,h){this.Ir(),h&&(this.readTime=h),this.wr.set(r,null)},d.prototype.Rr=function(r,h){this.Ir();var w=this.wr.get(h);return void 0!==w?ui.resolve(w):this.gr(r,h)},d.prototype.getEntries=function(r,h){return this.Pr(r,h)},d.prototype.apply=function(r){return this.Ir(),this.mr=!0,this.yr(r)},d.prototype.Ir=function(){},d}(),v="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",T=function(){function d(){this.Vr=[]}return d.prototype.pr=function(r){this.Vr.push(r)},d.prototype.br=function(){this.Vr.forEach(function(r){return r()})},d}(),ie=function(){function d(r,h,w){this.vr=r,this.Sr=h,this.Dr=w}return d.prototype.Cr=function(r,h){var w=this;return this.Sr.Nr(r,h).next(function(O){return w.Fr(r,h,O)})},d.prototype.Fr=function(r,h,w){return this.vr.Rr(r,h).next(function(O){for(var X=0,De=w;X<De.length;X++)O=De[X].hr(h,O);return O})},d.prototype.$r=function(r,h,w){var O=Gt();return h.forEach(function(X,De){for(var ot=0,Ct=w;ot<Ct.length;ot++)De=Ct[ot].hr(X,De);O=O.ot(X,De)}),O},d.prototype.kr=function(r,h){var w=this;return this.vr.getEntries(r,h).next(function(O){return w.Mr(r,O)})},d.prototype.Mr=function(r,h){var w=this;return this.Sr.Or(r,h).next(function(O){var X=w.$r(r,h,O),De=xt();return X.forEach(function(ot,Ct){Ct||(Ct=new ni(ot,bt.min())),De=De.ot(ot,Ct)}),De})},d.prototype.Lr=function(r,h,w){return A.F((O=h).path)&&null===O.collectionGroup&&0===O.filters.length?this.Br(r,h.path):ns(h)?this.qr(r,h,w):this.Ur(r,h,w);var O},d.prototype.Br=function(r,h){return this.Cr(r,new A(h)).next(function(w){var O=Ne();return w instanceof Kt&&(O=O.ot(w.key,w)),O})},d.prototype.qr=function(r,h,w){var O=this,X=h.collectionGroup,De=Ne();return this.Dr.Qr(r,X).next(function(ot){return ui.forEach(ot,function(Ct){var _n,Nn,sn=(_n=h,Nn=Ct.child(X),new Yi(Nn,null,_n.on.slice(),_n.filters.slice(),_n.limit,_n.an,_n.startAt,_n.endAt));return O.Ur(r,sn,w).next(function(_n){_n.forEach(function(Nn,Ln){De=De.ot(Nn,Ln)})})}).next(function(){return De})})},d.prototype.Ur=function(r,h,w){var O,X,De=this;return this.vr.Lr(r,h,w).next(function(ot){return O=ot,De.Sr.Wr(r,h)}).next(function(ot){return De.jr(r,X=ot,O).next(function(Ct){O=Ct;for(var sn=0,_n=X;sn<_n.length;sn++)for(var Nn=_n[sn],Ln=0,$n=Nn.mutations;Ln<$n.length;Ln++){var si=$n[Ln],ai=si.key,lr=O.get(ai),rr=pr(si,lr,lr,Nn.ar);O=rr instanceof Kt?O.ot(ai,rr):O.remove(ai)}})}).next(function(){return O.forEach(function(ot,Ct){qo(h,Ct)||(O=O.remove(ot))}),O})},d.prototype.jr=function(r,h,w){for(var O=Ye(),X=0,De=h;X<De.length;X++)for(var ot=0,Ct=De[X].mutations;ot<Ct.length;ot++){var sn=Ct[ot];sn instanceof Rr&&null===w.get(sn.key)&&(O=O.add(sn.key))}var _n=w;return this.vr.getEntries(r,O).next(function(Nn){return Nn.forEach(function(Ln,$n){null!==$n&&$n instanceof Kt&&(_n=_n.ot(Ln,$n))}),_n})},d}(),we=function(){function d(r,h,w,O){this.targetId=r,this.fromCache=h,this.Kr=w,this.Gr=O}return d.zr=function(r,h){for(var w=Ye(),O=Ye(),X=0,De=h.docChanges;X<De.length;X++){var ot=De[X];switch(ot.type){case 0:w=w.add(ot.doc.key);break;case 1:O=O.add(ot.doc.key)}}return new d(r,h.fromCache,w,O)},d}();function ft(d,r){var w=d[1],X=r[1],De=ht(d[0],r[0]);return 0===De?ht(w,X):De}var Ut=function(){function d(r){this.Hr=r,this.buffer=new Ue(ft),this.Yr=0}return d.prototype.Jr=function(){return++this.Yr},d.prototype.Xr=function(r){var h=[r,this.Jr()];if(this.buffer.size<this.Hr)this.buffer=this.buffer.add(h);else{var w=this.buffer.last();ft(h,w)<0&&(this.buffer=this.buffer.delete(w).add(h))}},Object.defineProperty(d.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),d}(),dn={Zr:!1,eo:0,no:0,so:0},tn=function(){function d(r,h,w){this.io=r,this.ro=h,this.oo=w}return d.ao=function(r){return new d(r,d.co,d.uo)},d}();tn.ho=-1,tn.lo=1048576,tn._o=41943040,tn.co=10,tn.uo=1e3,tn.fo=new tn(tn._o,tn.co,tn.uo),tn.do=new tn(tn.ho,0,0);var Bn=function(){function d(r,h){this.wo=r,this.cs=h,this.mo=!1,this.To=null}return d.prototype.start=function(r){this.wo.params.io!==tn.ho&&this.Eo(r)},d.prototype.stop=function(){this.To&&(this.To.cancel(),this.To=null)},Object.defineProperty(d.prototype,"Ei",{get:function(){return null!==this.To}
1,enumerable:!1,configurable:!0}),d.prototype.Eo=function(r){var h=this,w=this.mo?3e5:6e4;J("LruGarbageCollector","Garbage collection scheduled in "+w+"ms"),this.To=this.cs.yn("lru_garbage_collection",w,function(){return s.__awaiter(h,void 0,void 0,function(){var O;return s.__generator(this,function(X){switch(X.label){case 0:this.To=null,this.mo=!0,X.label=1;case 1:return X.trys.push([1,3,,7]),[4,r.Io(this.wo)];case 2:return X.sent(),[3,7];case 3:return Vr(O=X.sent())?(J("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",O),[3,6]):[3,4];case 4:return[4,Il(O)];case 5:X.sent(),X.label=6;case 6:return[3,7];case 7:return[4,this.Eo(r)];case 8:return X.sent(),[2]}})})})},d}(),Kn=function(){function d(r,h){this.Ao=r,this.params=h}return d.prototype.Ro=function(r,h){return this.Ao.Po(r).next(function(w){return Math.floor(h/100*w)})},d.prototype.yo=function(r,h){var w=this;if(0===h)return ui.resolve(wn.ai);var O=new Ut(h);return this.Ao.Ce(r,function(X){return O.Xr(X.sequenceNumber)}).next(function(){return w.Ao.Vo(r,function(X){return O.Xr(X)})}).next(function(){return O.maxValue})},d.prototype.po=function(r,h,w){return this.Ao.po(r,h,w)},d.prototype.bo=function(r,h){return this.Ao.bo(r,h)},d.prototype.vo=function(r,h){var w=this;return this.params.io===tn.ho?(J("LruGarbageCollector","Garbage collection skipped; disabled"),ui.resolve(dn)):this.So(r).next(function(O){return O<w.params.io?(J("LruGarbageCollector","Garbage collection skipped; Cache size "+O+" is lower than threshold "+w.params.io),dn):w.Do(r,h)})},d.prototype.So=function(r){return this.Ao.So(r)},d.prototype.Do=function(r,h){var w,O,X,De,ot,Ct,sn,_n=this,Nn=Date.now();return this.Ro(r,this.params.ro).next(function(Ln){return Ln>_n.params.oo?(J("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+_n.params.oo+" from "+Ln),O=_n.params.oo):O=Ln,De=Date.now(),_n.yo(r,O)}).next(function(Ln){return w=Ln,ot=Date.now(),_n.po(r,w,h)}).next(function(Ln){return X=Ln,Ct=Date.now(),_n.bo(r,w)}).next(function(Ln){return sn=Date.now(),le()<=y.LogLevel.DEBUG&&J("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(De-Nn)+"ms\n\tDetermined least recently used "+O+" in "+(ot-De)+"ms\n\tRemoved "+X+" targets in "+(Ct-ot)+"ms\n\tRemoved "+Ln+" documents in "+(sn-Ct)+"ms\nTotal Duration: "+(sn-Nn)+"ms"),ui.resolve({Zr:!0,eo:O,no:X,so:Ln})})},d}();function ri(d){for(var r="",h=0;h<d.length;h++)r.length>0&&(r=Gi(r)),r=wi(d.get(h),r);return Gi(r)}function wi(d,r){for(var h=r,w=d.length,O=0;O<w;O++){var X=d.charAt(O);switch(X){case"\0":h+="\x01\x10";break;case"\x01":h+="\x01\x11";break;default:h+=X}}return h}function Gi(d){return d+"\x01\x01"}function qi(d){var r=d.length;if(P(r>=2),2===r)return P("\x01"===d.charAt(0)&&"\x01"===d.charAt(1)),ne.P();for(var h=r-2,w=[],O="",X=0;X<r;){var De=d.indexOf("\x01",X);switch((De<0||De>h)&&Q(),d.charAt(De+1)){case"\x01":var ot=d.substring(X,De),Ct=void 0;0===O.length?Ct=ot:(Ct=O+=ot,O=""),w.push(Ct);break;case"\x10":O+=d.substring(X,De),O+="\0";break;case"\x11":O+=d.substring(X,De+1);break;default:Q()}X=De+2}return new ne(w)}var Zr=function(d){this.Co=d};function Lr(d,r){if(r.document)return Ct=!!r.hasCommittedMutations,sn=fr(d.Co,(ot=r.document).name),_n=Oo(ot.updateTime),Nn=new Is({mapValue:{fields:ot.fields}}),new Kt(sn,_n,Nn,{hasCommittedMutations:!!Ct});var ot,Ct,sn,_n,Nn;if(r.noDocument){var h=A.$(r.noDocument.path),w=xo(r.noDocument.readTime);return new ni(h,w,{hasCommittedMutations:!!r.hasCommittedMutations})}if(r.unknownDocument){var O=A.$(r.unknownDocument.path),X=xo(r.unknownDocument.version);return new Fi(O,X)}return Q()}function _s(d,r,h){var Ln,$n,w=Fo(h),O=r.key.path.h().A();if(r instanceof Kt){var X={name:ys(Ln=d.Co,($n=r).key),fields:$n.rn().mapValue.fields,updateTime:Js(Ln,$n.version.Z())};return new Ks(null,null,X,r.hasCommittedMutations,w,O)}if(r instanceof ni){var ot=r.key.path.A(),Ct=Qi(r.version),sn=r.hasCommittedMutations;return new Ks(null,new Cg(ot,Ct),null,sn,w,O)}if(r instanceof Fi){var _n=r.key.path.A(),Nn=Qi(r.version);return new Ks(new Tl(_n,Nn),null,null,!0,w,O)}return Q()}function Fo(d){var r=d.Z();return[r.seconds,r.nanoseconds]}function sa(d){var r=new tt(d[0],d[1]);return bt.J(r)}function Qi(d){var r=d.Z();return new Fh(r.seconds,r.nanoseconds)}function xo(d){var r=new tt(d.seconds,d.nanoseconds);return bt.J(r)}function na(d,r){var h=(r.baseMutations||[]).map(function(X){return Ui(d.Co,X)}),w=r.mutations.map(function(X){return Ui(d.Co,X)}),O=tt.fromMillis(r.localWriteTimeMs);return new He(r.batchId,O,h,w)}function Mu(d){var r,h,w=xo(d.readTime),O=void 0!==d.lastLimboFreeSnapshotVersion?xo(d.lastLimboFreeSnapshotVersion):bt.min();return void 0!==d.query.documents?(P(1===(h=d.query).documents.length),r=is(Ls(eo(h.documents[0])))):r=Ps(d.query),new nn(r,d.targetId,0,d.lastListenSequenceNumber,w,O,cn.fromBase64String(d.resumeToken))}function No(d,r){var h,w=Qi(r.nt),O=Qi(r.lastLimboFreeSnapshotVersion);h=Gn(r.target)?vr(d.Co,r.target):Po(d.Co,r.target);var X=r.resumeToken.toBase64();return new da(r.targetId,Pt(r.target),w,X,r.sequenceNumber,O,h)}var Al=function(){function d(r,h,w,O){this.userId=r,this.serializer
1=h,this.Dr=w,this.No=O,this.Fo={}}return d.xo=function(r,h,w,O){return P(""!==r.uid),new d(r.Zs()?r.uid:"",h,w,O)},d.prototype.$o=function(r){var h=!0,w=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return dl(r).rs({index:Bo.userMutationsIndex,range:w},function(O,X,De){h=!1,De.done()}).next(function(){return h})},d.prototype.ko=function(r,h,w,O){var X=this,De=_a(r),ot=dl(r);return ot.add({}).next(function(Ct){P("number"==typeof Ct);for(var sn=new He(Ct,h,w,O),_n=function(rr,kr,Gr){var Ts=Gr.baseMutations.map(function(co){return xs(rr.Co,co)}),Vs=Gr.mutations.map(function(co){return xs(rr.Co,co)});return new Bo(kr,Gr.batchId,Gr.ar.toMillis(),Ts,Vs)}(X.serializer,X.userId,sn),Nn=[],Ln=new Ue(function(rr,kr){return ht(rr.R(),kr.R())}),$n=0,si=O;$n<si.length;$n++){var ai=si[$n],lr=Lo.key(X.userId,ai.key.path,Ct);Ln=Ln.add(ai.key.path.h()),Nn.push(ot.put(_n)),Nn.push(De.put(lr,Lo.PLACEHOLDER))}return Ln.forEach(function(rr){Nn.push(X.Dr.Mo(r,rr))}),r.pr(function(){X.Fo[Ct]=sn.keys()}),ui.$n(Nn).next(function(){return sn})})},d.prototype.Oo=function(r,h){var w=this;return dl(r).get(h).next(function(O){return O?(P(O.userId===w.userId),na(w.serializer,O)):null})},d.prototype.Lo=function(r,h){var w=this;return this.Fo[h]?ui.resolve(this.Fo[h]):this.Oo(r,h).next(function(O){if(O){var X=O.keys();
1return w.Fo[h]=X,X}return null})},d.prototype.Bo=function(r,h){var w=this,O=h+1,X=IDBKeyRange.lowerBound([this.userId,O]),De=null;return dl(r).rs({index:Bo.userMutationsIndex,range:X},function(ot,Ct,sn){Ct.userId===w.userId&&(P(Ct.batchId>=O),De=na(w.serializer,Ct)),sn.done()}).next(function(){return De})},d.prototype.qo=function(r){var h=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),w=-1;return dl(r).rs({index:Bo.userMutationsIndex,range:h,reverse:!0},function(O,X,De){w=X.batchId,De.done()}).next(function(){return w})},d.prototype.Uo=function(r){var h=this,w=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return dl(r).ts(Bo.userMutationsIndex,w).next(function(O){return O.map(function(X){return na(h.serializer,X)})})},d.prototype.Nr=function(r,h){var w=this,O=Lo.prefixForPath(this.userId,h.path),X=IDBKeyRange.lowerBound(O),De=[];return _a(r).rs({range:X},function(ot,Ct,sn){var _n=ot[0],Ln=ot[2],$n=qi(ot[1]);if(_n===w.userId&&h.path.isEqual($n))return dl(r).get(Ln).next(function(si){if(!si)throw Q();P(si.userId===w.userId),De.push(na(w.serializer,si))});sn.done()}).next(function(){return De})},d.prototype.Or=function(r,h){var w=this,O=new Ue(ht),X=[];return h.forEach(function(De){var ot=Lo.prefixForPath(w.userId,De.path),Ct=IDBKeyRange.lowerBound(ot),sn=_a(r).rs({range:Ct},function(_n,Nn,Ln){var $n=_n[0],ai=_n[2],lr=qi(_n[1]);$n===w.userId&&De.path.isEqual(lr)?O=O.add(ai):Ln.done()});X.push(sn)}),ui.$n(X).next(function(){return w.Qo(r,O)})},d.prototype.Wr=function(r,h){var w=this,O=h.path,X=O.length+1,De=Lo.prefixForPath(this.userId,O),ot=IDBKeyRange.lowerBound(De),Ct=new Ue(ht);return _a(r).rs({range:ot},function(sn,_n,Nn){var Ln=sn[0],si=sn[2],ai=qi(sn[1]);Ln===w.userId&&O.T(ai)?ai.length===X&&(Ct=Ct.add(si)):Nn.done()}).next(function(){return w.Qo(r,Ct)})},d.prototype.Qo=function(r,h){var w=this,O=[],X=[];return h.forEach(function(De){X.push(dl(r).get(De).next(function(ot){if(null===ot)throw Q();P(ot.userId===w.userId),O.push(na(w.serializer,ot))}))}),ui.$n(X).next(function(){return O})},d.prototype.Wo=function(r,h){var w=this;return Tu(r.jo,this.userId,h).next(function(O){return r.pr(function(){w.Ko(h.batchId)}),ui.forEach(O,function(X){return w.No.Go(r,X)})})},d.prototype.Ko=function(r){delete this.Fo[r]},d.prototype.zo=function(r){var h=this;return this.$o(r).next(function(w){if(!w)return ui.resolve();var O=IDBKeyRange.lowerBound(Lo.prefixForUser(h.userId)),X=[];return _a(r).rs({range:O},function(De,ot,Ct){if(De[0]===h.userId){var sn=qi(De[1]);X.push(sn)}else Ct.done()}).next(function(){P(0===X.length)})})},d.prototype.Ho=function(r,h){return cc(r,this.userId,h)},d.prototype.Yo=function(r){var h=this;return Tc(r).get(this.userId).next(function(w){return w||new Oa(h.userId,-1,"")})},d}();function cc(d,r,h){var w=Lo.prefixForPath(r,h.path),O=w[1],X=IDBKeyRange.lowerBound(w),De=!1;return _a(d).rs({range:X,ss:!0},function(ot,Ct,sn){ot[0]===r&&ot[1]===O&&(De=!0),sn.done()}).next(function(){return De})}function Tu(d,r,h){var w=d.store(Bo.store),O=d.store(Lo.store),X=[],De=IDBKeyRange.only(h.batchId),ot=0,Ct=w.rs({range:De},function(si,ai,lr){return ot++,lr.delete()});X.push(Ct.next(function(){P(1===ot)}));for(var sn=[],_n=0,Nn=h.mutations;_n<Nn.length;_n++){var Ln=Nn[_n],$n=Lo.key(r,Ln.key.path,h.batchId);X.push(O.delete($n)),sn.push(Ln.key)}return ui.$n(X).next(function(){return sn})}function dl(d){return Ra.Qn(d,Bo.store)}function _a(d){return Ra.Qn(d,Lo.store)}function Tc(d){return Ra.Qn(d,Oa.store)}var xc=function(){function d(r,h){this.serializer=r,this.Dr=h}return d.prototype.Er=function(r,h,w){return fl(r).put(Ml(h),w)},d.prototype.Ar=function(r,h){var w=fl(r),O=Ml(h);return w.delete(O)},d.prototype.updateMetadata=function(r,h){var w=this;return this.getMetadata(r).next(function(O){return O.byteSize+=h,w.Jo(r,O)})},d.prototype.Rr=function(r,h){var w=this;return fl(r).get(Ml(h)).next(function(O){return w.Xo(O)})},d.prototype.Zo=function(r,h){var w=this;return fl(r).get(Ml(h)).next(function(O){var X=w.Xo(O);return X?{ta:X,size:Xc(O)}:null})},d.prototype.getEntries=function(r,h){var w=this,O=Gt();return this.ea(r,h,function(X,De){var ot=w.Xo(De);O=O.ot(X,ot)}).next(function(){return O})},d.prototype.na=function(r,h){var w=this,O=Gt(),X=new Mt(A.i);return this.ea(r,h,function(De,ot){var Ct=w.Xo(ot);Ct?(O=O.ot(De,Ct),X=X.ot(De,Xc(ot))):(O=O.ot(De,null),X=X.ot(De,0))}).next(function(){return{sa:O,ia:X}})},d.prototype.ea=function(r,h,w){if(h.m())return ui.resolve();var O=IDBKeyRange.bound(h.first().path.A(),h.last().path.A()),X=h._t(),De=X.It();return fl(r).rs({range:O},function(ot,Ct,sn){for(var _n=A.$(ot);De&&A.i(De,_n)<0;)w(De,null),De=X.It();De&&De.isEqual(_n)&&(w(De,Ct),De=X.At()?X.It():null),De?sn.Xn(De.path.A()):sn.done()}).next(function(){for(;De;)w(De,null),De=X.At()?X.It():null})},d.prototype.Lr=function(r,h,w){var O=this,X=Ne(),De=h.path.length+1,ot={};if(w.isEqual(bt.min())){var Ct=h.path.A();ot.range=IDBKeyRange.lowerBound(Ct)}else{var sn=h.path.A(),_n=Fo(w);ot.range=IDBKeyRange.lowerBound([sn,_n],!0),ot.index=Ks.collectionReadTimeIndex}return fl(r).rs(ot,function(Nn,Ln,$n){if(Nn.length===De){var si=Lr(O.serializer,Ln);h.path.T(si.key.path)?si instanceof Kt&&qo(h,si)&&(X=X.ot(si.key,si)):$n.done()}}).next(function(){return X})},d.prototype.ra=function(r){return new Ka(this,!!r&&r.oa)},d.prototype.aa=function(r){return this.getMetadata(r).next(function(h){return h.byteSize})},d.prototype.getMetadata=function(r){return Rh(r).get(so.key).next(function(h){return P(!!h),h})},d.prototype.Jo=function(r,h){return Rh(r).put(so.key,h)},d.prototype.Xo=function(r){if(r){var h=Lr(this.serializer,r);return h instanceof ni&&h.version.isEqual(bt.min())?null:h}return null},d}(),Ka=function(d){function r(h,w){var O=this;
1return(O=d.call(this)||this).ca=h,O.oa=w,O.ua=new Pe(function(X){return X.toString()},function(X,De){return X.isEqual(De)}),O}return s.__extends(r,d),r.prototype.yr=function(h){var w=this,O=[],X=0,De=new Ue(function(ot,Ct){return ht(ot.R(),Ct.R())});return this.wr.forEach(function(ot,Ct){var sn=w.ua.get(ot);if(Ct){var _n=_s(w.ca.serializer,Ct,w.readTime);De=De.add(ot.path.h());var Nn=Xc(_n);X+=Nn-sn,O.push(w.ca.Er(h,ot,_n))}else if(X-=sn,w.oa){var Ln=_s(w.ca.serializer,new ni(ot,bt.min()),w.readTime);O.push(w.ca.Er(h,ot,Ln))}else O.push(w.ca.Ar(h,ot))}),De.forEach(function(ot){O.push(w.ca.Dr.Mo(h,ot))}),O.push(this.ca.updateMetadata(h,X)),ui.$n(O)},r.prototype.gr=function(h,w){var O=this;return this.ca.Zo(h,w).next(function(X){return null===X?(O.ua.set(w,0),null):(O.ua.set(w,X.size),X.ta)})},r.prototype.Pr=function(h,w){var O=this;return this.ca.na(h,w).next(function(X){var De=X.sa;return X.ia.forEach(function(ot,Ct){O.ua.set(ot,Ct)}),De})},r}(u);function Rh(d){return Ra.Qn(d,so.store)}function fl(d){return Ra.Qn(d,Ks.store)}function Ml(d){return d.path.A()}function Xc(d){var r;if(d.document)r=d.document;else if(d.unknownDocument)r=d.unknownDocument;else{if(!d.noDocument)throw Q();r=d.noDocument}return JSON.stringify(r).length}var oh=function(){function d(){this.ha=new ro}return d.prototype.Mo=function(r,h){return this.ha.add(h),ui.resolve()},d.prototype.Qr=function(r,h){return ui.resolve(this.ha.getEntries(h))},d}(),ro=function(){function d(){this.index={}}return d.prototype.add=function(r){var h=r._(),w=r.h(),O=this.index[h]||new Ue(ne.i),X=!O.has(w);return this.index[h]=O.add(w),X},d.prototype.has=function(r){var h=r._(),w=r.h(),O=this.index[h];return O&&O.has(w)},d.prototype.getEntries=function(r){return(this.index[r]||new Ue(ne.i)).A()},d}(),Ph=function(){function d(r){this.serializer=r}return d.prototype.createOrUpgrade=function(r,h,w,O){var X=this;P(w<O&&w>=0&&O<=10);var Ct,De=new es("createOrUpgrade",h);w<1&&O>=1&&(r.createObjectStore(ka.store),(Ct=r).createObjectStore(Oa.store,{keyPath:Oa.keyPath}),Ct.createObjectStore(Bo.store,{keyPath:Bo.keyPath,autoIncrement:!0}).createIndex(Bo.userMutationsIndex,Bo.userMutationsKeyPath,{unique:!0}),Ct.createObjectStore(Lo.store),oa(r),function(Ct){Ct.createObjectStore(Ks.store)}(r));var ot=ui.resolve();return w<3&&O>=3&&(0!==w&&(function(Ct){Ct.deleteObjectStore(Qo.store),Ct.deleteObjectStore(da.store),Ct.deleteObjectStore(va.store)}(r),oa(r)),ot=ot.next(function(){return function(Ct){var sn=Ct.store(va.store),_n=new va(0,0,bt.min().Z(),0);return sn.put(va.key,_n)}(De)})),w<4&&O>=4&&(0!==w&&(ot=ot.next(function(){return function(Ct,sn){return sn.store(Bo.store).ts().next(function(_n){Ct.deleteObjectStore(Bo.store),Ct.createObjectStore(Bo.store,{keyPath:Bo.keyPath,autoIncrement:!0}).createIndex(Bo.userMutationsIndex,Bo.userMutationsKeyPath,{unique:!0});var Nn=sn.store(Bo.store),Ln=_n.map(function($n){return Nn.put($n)});return ui.$n(Ln)})}(r,De)})),ot=ot.next(function(){!function(Ct){Ct.createObjectStore(aa.store,{keyPath:aa.keyPath})}(r)})),w<5&&O>=5&&(ot=ot.next(function(){return X.removeAcknowledgedMutations(De)})),w<6&&O>=6&&(ot=ot.next(function(){return function(Ct){Ct.createObjectStore(so.store)}(r),X.addDocumentGlobal(De)})),w<7&&O>=7&&(ot=ot.next(function(){return X.ensureSequenceNumbers(De)})),w<8&&O>=8&&(ot=ot.next(function(){return X.createCollectionParentIndex(r,De)})),w<9&&O>=9&&(ot=ot.next(function(){(function(Ct){Ct.objectStoreNames.contains("remoteDocumentChanges")&&Ct.deleteObjectStore("remoteDocumentChanges")})(r),function(Ct){var sn=Ct.objectStore(Ks.store);sn.createIndex(Ks.readTimeIndex,Ks.readTimeIndexPath,{unique:!1}),sn.createIndex(Ks.collectionReadTimeIndex,Ks.collectionReadTimeIndexPath,{unique:!1})}(h)})),w<10&&O>=10&&(ot=ot.next(function(){return X.rewriteCanonicalIds(De)})),ot},d.prototype.addDocumentGlobal=function(r){var h=0;return r.store(Ks.store).rs(function(w,O){h+=Xc(O)}).next(function(){var w=new so(h);return r.store(so.store).put(so.key,w)})},d.prototype.removeAcknowledgedMutations=function(r){var h=this,w=r.store(Oa.store),O=r.store(Bo.store);
1return w.ts().next(function(X){return ui.forEach(X,function(De){var ot=IDBKeyRange.bound([De.userId,-1],[De.userId,De.lastAcknowledgedBatchId]);return O.ts(Bo.userMutationsIndex,ot).next(function(Ct){return ui.forEach(Ct,function(sn){P(sn.userId===De.userId);var _n=na(h.serializer,sn);return Tu(r,De.userId,_n).next(function(){})})})})})},d.prototype.ensureSequenceNumbers=function(r){var h=r.store(Qo.store),w=r.store(Ks.store);return r.store(va.store).get(va.key).next(function(O){var X=[];return w.rs(function(De,ot){var Ct=new ne(De),sn=[0,ri(Ct)];X.push(h.get(sn).next(function(_n){return _n?ui.resolve():h.put(new Qo(0,ri(Ct),O.highestListenSequenceNumber))}))}).next(function(){return ui.$n(X)})})},d.prototype.createCollectionParentIndex=function(r,h){r.createObjectStore(zl.store,{keyPath:zl.keyPath});var w=h.store(zl.store),O=new ro,X=function(De){if(O.add(De)){var ot=De._(),Ct=De.h();return w.put({collectionId:ot,parent:ri(Ct)})}};return h.store(Ks.store).rs({ss:!0},function(De,ot){var Ct=new ne(De);return X(Ct.h())}).next(function(){return h.store(Lo.store).rs({ss:!0},function(De,ot){var sn=qi(De[1]);return X(sn.h())})})},d.prototype.rewriteCanonicalIds=function(r){var h=this,w=r.store(da.store);return w.rs(function(O,X){var De=Mu(X),ot=No(h.serializer,De);return w.put(ot)})},d}(),Fh=function(d,r){this.seconds=d,this.nanoseconds=r},ka=function(d,r,h){this.ownerId=d,this.allowTabSynchronization=r,this.leaseTimestampMs=h};ka.store="owner",ka.key="owner";var Oa=function(d,r,h){this.userId=d,this.lastAcknowledgedBatchId=r,this.lastStreamToken=h};Oa.store="mutationQueues",Oa.keyPath="userId";var Bo=function(d,r,h,w,O){this.userId=d,this.batchId=r,this.localWriteTimeMs=h,this.baseMutations=w,this.mutations=O};Bo.store="mutations",Bo.keyPath="batchId",Bo.userMutationsIndex="userMutationsIndex",Bo.userMutationsKeyPath=["userId","batchId"];var Lo=function(){function d(){}return d.prefixForUser=function(r){return[r]},d.prefixForPath=function(r,h){return[r,ri(h)]},d.key=function(r,h,w){return[r,ri(h),w]},d}();Lo.store="documentMutations",Lo.PLACEHOLDER=new Lo;var Cg=function(d,r){this.path=d,this.readTime=r},Tl=function(d,r){this.path=d,this.version=r},Ks=function(d,r,h,w,O,X){this.unknownDocument=d,this.noDocument=r,this.document=h,this.hasCommittedMutations=w,this.readTime=O,this.parentPath=X};Ks.store="remoteDocuments",Ks.readTimeIndex="readTimeIndex",Ks.readTimeIndexPath="readTime",Ks.collectionReadTimeIndex="collectionReadTimeIndex",Ks.collectionReadTimeIndexPath=["parentPath","readTime"];var so=function(d){this.byteSize=d};so.store="remoteDocumentGlobal",so.key="remoteDocumentGlobalKey";var da=function(d,r,h,w,O,X,De){this.targetId=d,this.canonicalId=r,this.readTime=h,this.resumeToken=w,this.lastListenSequenceNumber=O,this.lastLimboFreeSnapshotVersion=X,this.query=De};da.store="targets",da.keyPath="targetId",da.queryTargetsIndexName="queryTargetsIndex",da.queryTargetsKeyPath=["canonicalId","targetId"];var Qo=function(d,r,h){this.targetId=d,this.path=r,this.sequenceNumber=h};Qo.store="targetDocuments",Qo.keyPath=["targetId","path"],Qo.documentTargetsIndex="documentTargetsIndex",Qo.documentTargetsKeyPath=["path","targetId"];var va=function(d,r,h,w){this.highestTargetId=d,this.highestListenSequenceNumber=r,this.lastRemoteSnapshotVersion=h,this.targetCount=w};va.key="targetGlobalKey",va.store="targetGlobal";var zl=function(d,r){this.collectionId=d,this.parent=r};function oa(d){d.createObjectStore(Qo.store,{keyPath:Qo.keyPath}).createIndex(Qo.documentTargetsIndex,Qo.documentTargetsKeyPath,{unique:!0}),d.createObjectStore(da.store,{keyPath:da.keyPath}).createIndex(da.queryTargetsIndexName,da.queryTargetsKeyPath,{unique:!0}),d.createObjectStore(va.store)}zl.store="collectionParents",zl.keyPath=["collectionId","parent"];var aa=function(d,r,h,w){this.clientId=d,this.updateTimeMs=r,this.networkEnabled=h,this.inForeground=w};aa.store="clientMetadata",aa.keyPath="clientId";var ah=s.__spreadArrays(s.__spreadArrays(s.__spreadArrays([Oa.store,Bo.store,Lo.store,Ks.store,da.store,ka.store,va.store,Qo.store],[aa.store]),[so.store]),[zl.store]),Ic=function(){function d(){this.la=new ro}return d.prototype.Mo=function(r,h){var w=this;if(!this.la.has(h)){var O=h._(),X=h.h();r.pr(function(){w.la.add(h)});var De={collectionId:O,parent:ri(X)};return Zc(r).put(De)}return ui.resolve()},d.prototype.Qr=function(r,h){var w=[],O=IDBKeyRange.bound([h,""],[jt(h),""],!1,!0);return Zc(r).ts(O).next(function(X){for(var De=0,ot=X;De<ot.length;De++){var Ct=ot[De];if(Ct.collectionId!==h)break;w.push(qi(Ct.parent))}return w})},d}();function Zc(d){return Ra.Qn(d,zl.store)}var lh=function(){function d(r){this._a=r}return d.prototype.next=function(){return this._a+=2,this._a},d.fa=function(){return new d(0)},d.da=function(){return new d(-1)},d}
1(),xu=function(){function d(r,h){this.No=r,this.serializer=h}return d.prototype.wa=function(r){var h=this;return this.ma(r).next(function(w){var O=new lh(w.highestTargetId);return w.highestTargetId=O.next(),h.Ta(r,w).next(function(){return w.highestTargetId})})},d.prototype.Ea=function(r){return this.ma(r).next(function(h){return bt.J(new tt(h.lastRemoteSnapshotVersion.seconds,h.lastRemoteSnapshotVersion.nanoseconds))})},d.prototype.Ia=function(r){return this.ma(r).next(function(h){return h.highestListenSequenceNumber})},d.prototype.Aa=function(r,h,w){var O=this;return this.ma(r).next(function(X){return X.highestListenSequenceNumber=h,w&&(X.lastRemoteSnapshotVersion=w.Z()),h>X.highestListenSequenceNumber&&(X.highestListenSequenceNumber=h),O.Ta(r,X)})},d.prototype.Ra=function(r,h){var w=this;return this.ga(r,h).next(function(){return w.ma(r).next(function(O){return O.targetCount+=1,w.Pa(h,O),w.Ta(r,O)})})},d.prototype.ya=function(r,h){return this.ga(r,h)},d.prototype.Va=function(r,h){var w=this;return this.pa(r,h.targetId).next(function(){return Wl(r).delete(h.targetId)}).next(function(){return w.ma(r)}).next(function(O){return P(O.targetCount>0),O.targetCount-=1,w.Ta(r,O)})},d.prototype.po=function(r,h,w){var O=this,X=0,De=[];return Wl(r).rs(function(ot,Ct){var sn=Mu(Ct);sn.sequenceNumber<=h&&null===w.get(sn.targetId)&&(X++,De.push(O.Va(r,sn)))}).next(function(){return ui.$n(De)}).next(function(){return X})},d.prototype.Ce=function(r,h){return Wl(r).rs(function(w,O){var X=Mu(O);h(X)})},d.prototype.ma=function(r){return Qf(r).get(va.key).next(function(h){return P(null!==h),h})},d.prototype.Ta=function(r,h){return Qf(r).put(va.key,h)},d.prototype.ga=function(r,h){return Wl(r).put(No(this.serializer,h))},d.prototype.Pa=function(r,h){var w=!1;return r.targetId>h.highestTargetId&&(h.highestTargetId=r.targetId,w=!0),r.sequenceNumber>h.highestListenSequenceNumber&&(h.highestListenSequenceNumber=r.sequenceNumber,w=!0),w},d.prototype.ba=function(r){return this.ma(r).next(function(h){return h.targetCount})},d.prototype.va=function(r,h){var w=Pt(h),O=IDBKeyRange.bound([w,Number.NEGATIVE_INFINITY],[w,Number.POSITIVE_INFINITY]),X=null;return Wl(r).rs({range:O,index:da.queryTargetsIndexName},function(De,ot,Ct){var sn=Mu(ot);Dn(h,sn.target)&&(X=sn,Ct.done())}).next(function(){return X})},d.prototype.Sa=function(r,h,w){var O=this,X=[],De=il(r);return h.forEach(function(ot){var Ct=ri(ot.path);X.push(De.put(new Qo(w,Ct))),X.push(O.No.Da(r,w,ot))}),ui.$n(X)},d.prototype.Ca=function(r,h,w){var O=this,X=il(r);return ui.forEach(h,function(De){var ot=ri(De.path);return ui.$n([X.delete([w,ot]),O.No.Na(r,w,De)])})},d.prototype.pa=function(r,h){var w=il(r),O=IDBKeyRange.bound([h],[h+1],!1,!0);return w.delete(O)},d.prototype.Fa=function(r,h){var w=IDBKeyRange.bound([h],[h+1],!1,!0),O=il(r),X=Ye();return O.rs({range:w,ss:!0},function(De,ot,Ct){var sn=qi(De[1]),_n=new A(sn);X=X.add(_n)}).next(function(){return X})},d.prototype.Ho=function(r,h){var w=ri(h.path),O=IDBKeyRange.bound([w],[jt(w)],!1,!0),X=0;return il(r).rs({index:Qo.documentTargetsIndex,ss:!0,range:O},function(De,ot,Ct){0!==De[0]&&(X++,Ct.done())}).next(function(){return X>0})},d.prototype.Ue=function(r,h){return Wl(r).get(h).next(function(w){return w?Mu(w):null})},d}();function Wl(d){return Ra.Qn(d,da.store)}function Qf(d){return Ra.Qn(d,va.store)}function il(d){return Ra.Qn(d,Qo.store)}var kc="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",fa=function(d){function r(h,w){var O=this;return(O=d.call(this)||this).jo=h,O.xa=w,O}return s.__extends(r,d),r}(T),Ra=function(){function d(r,h,w,O,X,De,ot,Ct,sn,_n){if(this.allowTabSynchronization=r,this.persistenceKey=h,this.clientId=w,this.fn=X,this.window=De,this.document=ot,this.$a=sn,this.ka=_n,this.Ma=null,this.Oa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.La=null,this.inForeground=!1,this.Ba=null,this.qa=null,this.Ua=Number.NEGATIVE_INFINITY,this.Qa=function(Nn){return Promise.resolve()}
1,!d.Ln())throw new $(G.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.No=new Oc(this,O),this.Wa=h+"main",this.serializer=new Zr(Ct),this.ja=new Sr(this.Wa,10,new Ph(this.serializer)),this.Ka=new xu(this.No,this.serializer),this.Dr=new Ic,this.vr=new xc(this.serializer,this.Dr),this.window&&this.window.localStorage?this.Ga=this.window.localStorage:(this.Ga=null,!1===_n&&Me("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return d.Qn=function(r,h){if(r instanceof fa)return Sr.Qn(r.jo,h);throw Q()},d.prototype.start=function(){var r=this;return this.za().then(function(){if(!r.isPrimary&&!r.allowTabSynchronization)throw new $(G.FAILED_PRECONDITION,kc);return r.Ha(),r.Ya(),r.Ja(),r.runTransaction("getHighestListenSequenceNumber","readonly",function(h){return r.Ka.Ia(h)})}).then(function(h){r.Ma=new wn(h,r.$a)}).then(function(){r.Oa=!0}).catch(function(h){return r.ja&&r.ja.close(),Promise.reject(h)})},d.prototype.Xa=function(r){var h=this;return this.Qa=function(w){return s.__awaiter(h,void 0,void 0,function(){return s.__generator(this,function(O){return this.Ei?[2,r(w)]:[2]})})},r(this.isPrimary)},d.prototype.Za=function(r){var h=this;this.ja.Kn(function(w){return s.__awaiter(h,void 0,void 0,function(){return s.__generator(this,function(O){switch(O.label){case 0:return null===w.newVersion?[4,r()]:[3,2];case 1:O.sent(),O.label=2;case 2:return[2]}})})})},d.prototype.tc=function(r){var h=this;this.networkEnabled!==r&&(this.networkEnabled=r,this.fn.ws(function(){return s.__awaiter(h,void 0,void 0,function(){return s.__generator(this,function(w){switch(w.label){case 0:return this.Ei?[4,this.za()]:[3,2];case 1:w.sent(),w.label=2;case 2:return[2]}})})}))},d.prototype.za=function(){var r=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(h){return ch(h).put(new aa(r.clientId,Date.now(),r.networkEnabled,r.inForeground)).next(function(){if(r.isPrimary)return r.ec(h).next(function(w){w||(r.isPrimary=!1,r.fn.Cs(function(){return r.Qa(!1)}))})}).next(function(){return r.nc(h)}).next(function(w){return r.isPrimary&&!w?r.sc(h).next(function(){return!1}):!!w&&r.ic(h).next(function(){return!0})})}).catch(function(h){if(Vr(h))return J("IndexedDbPersistence","Failed to extend owner lease: ",h),r.isPrimary;if(!r.allowTabSynchronization)throw h;return J("IndexedDbPersistence","Releasing owner lease after error during lease refresh",h),!1}).then(function(h){r.isPrimary!==h&&r.fn.Cs(function(){return r.Qa(h)}),r.isPrimary=h})},d.prototype.ec=function(r){var h=this;return pl(r).get(ka.key).next(function(w){return ui.resolve(h.rc(w))})},d.prototype.oc=function(r){return ch(r).delete(this.clientId)},d.prototype.ac=function(){return s.__awaiter(this,void 0,void 0,function(){var r,h,w,X=this;return s.__generator(this,function(De){switch(De.label){case 0:return!this.isPrimary||this.cc(this.Ua,18e5)?[3,2]:(this.Ua=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(ot){var Ct=d.Qn(ot,aa.store);return Ct.ts().next(function(sn){var _n=X.uc(sn,18e5),Nn=sn.filter(function(Ln){return-1===_n.indexOf(Ln)});return ui.forEach(Nn,function(Ln){return Ct.delete(Ln.clientId)}).next(function(){return Nn})})}).catch(function(){return[]})]);case 1:if(r=De.sent(),this.Ga)for(h=0,w=r;h<w.length;h++)this.Ga.removeItem(this.hc(w[h].clientId));De.label=2;case 2:return[2]}})})},d.prototype.Ja=function(){var r=this;this.qa=this.fn.yn("client_metadata_refresh",4e3,function(){return r.za().then(function(){return r.ac()}).then(function(){return r.Ja()})})},d.prototype.rc=function(r){return!!r&&r.ownerId===this.clientId},d.prototype.nc=function(r){var h=this;return this.ka?ui.resolve(!0):pl(r).get(ka.key).next(function(w){if(null!==w&&h.cc(w.leaseTimestampMs,5e3)&&!h.lc(w.ownerId)){if(h.rc(w)&&h.networkEnabled)return!0;if(!h.rc(w)){if(!w.allowTabSynchronization)throw new $(G.FAILED_PRECONDITION,kc);return!1}}return!(!h.networkEnabled||!h.inForeground)||ch(r).ts().next(function(O){return void 0===h.uc(O,5e3).find(function(X){return!(h.clientId===X.clientId||!(!h.networkEnabled&&X.networkEnabled||!h.inForeground&&X.inForeground&&h.networkEnabled===X.networkEnabled))})})}).next(function(w){return h.isPrimary!==w&&J("IndexedDbPersistence","Client "+(w?"is":"is not")+" eligible for a primary lease."),w})},d.prototype.Di=function(){return s.__awaiter(this,void 0,void 0,function(){var r=this;return s.__generator(this,function(h){switch(h.label){case 0:return this.Oa=!1,this._c(),this.qa&&(this.qa.cancel(),this.qa=null),this.fc(),this.dc(),[4,this.ja.runTransaction("shutdown","readwrite",[ka.store,aa.store],function(w){var O=new fa(w,wn.ai);return r.sc(O).next(function(){return r.oc(O)})})];case 1:return h.sent(),this.ja.close(),this.wc(),[2]}})})},d.prototype.uc=function(r,h){var w=this;return r.filter(function(O){return w.cc(O.updateTimeMs,h)&&!w.lc(O.clientId)})},d.prototype.pi=function(){var r=this;return this.runTransaction("getActiveClients","readonly",function(h){return ch(h).ts().next(function(w){return r.uc(w,18e5).map(function(O){return O.clientId})})})},Object.defineProperty(d.prototype,"Ei",{get:function(){return this.Oa}
1,enumerable:!1,configurable:!0}),d.prototype.mc=function(r){return Al.xo(r,this.serializer,this.Dr,this.No)},d.prototype.Tc=function(){return this.Ka},d.prototype.Ec=function(){return this.vr},d.prototype.Ic=function(){return this.Dr},d.prototype.runTransaction=function(r,h,w){var X,O=this;return J("IndexedDbPersistence","Starting transaction:",r),this.ja.runTransaction(r,"readonly"===h?"readonly":"readwrite",ah,function(ot){return X=new fa(ot,O.Ma?O.Ma.next():wn.ai),"readwrite-primary"===h?O.ec(X).next(function(Ct){return!!Ct||O.nc(X)}).next(function(Ct){if(!Ct)throw Me("Failed to obtain primary lease for action '"+r+"'."),O.isPrimary=!1,O.fn.Cs(function(){return O.Qa(!1)}),new $(G.FAILED_PRECONDITION,v);return w(X)}).next(function(Ct){return O.ic(X).next(function(){return Ct})}):O.Ac(X).next(function(){return w(X)})}).then(function(ot){return X.br(),ot})},d.prototype.Ac=function(r){var h=this;return pl(r).get(ka.key).next(function(w){if(null!==w&&h.cc(w.leaseTimestampMs,5e3)&&!h.lc(w.ownerId)&&!h.rc(w)&&!(h.ka||h.allowTabSynchronization&&w.allowTabSynchronization))throw new $(G.FAILED_PRECONDITION,kc)})},d.prototype.ic=function(r){var h=new ka(this.clientId,this.allowTabSynchronization,Date.now());return pl(r).put(ka.key,h)},d.Ln=function(){return Sr.Ln()},d.prototype.sc=function(r){var h=this,w=pl(r);return w.get(ka.key).next(function(O){return h.rc(O)?(J("IndexedDbPersistence","Releasing primary lease."),w.delete(ka.key)):ui.resolve()})},d.prototype.cc=function(r,h){var w=Date.now();return!(r<w-h||r>w&&(Me("Detected an update time that is in the future: "+r+" > "+w),1))},d.prototype.Ha=function(){var r=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ba=function(){r.fn.ws(function(){return r.inForeground="visible"===r.document.visibilityState,r.za()})},this.document.addEventListener("visibilitychange",this.Ba),this.inForeground="visible"===this.document.visibilityState)},d.prototype.fc=function(){this.Ba&&(this.document.removeEventListener("visibilitychange",this.Ba),this.Ba=null)},d.prototype.Ya=function(){var r,h=this;"function"==typeof(null===(r=this.window)||void 0===r?void 0:r.addEventListener)&&(this.La=function(){h._c(),h.fn.ws(function(){return h.Di()})},this.window.addEventListener("unload",this.La))},d.prototype.dc=function(){this.La&&(this.window.removeEventListener("unload",this.La),this.La=null)},d.prototype.lc=function(r){var h;try{var w=null!==(null===(h=this.Ga)||void 0===h?void 0:h.getItem(this.hc(r)));return J("IndexedDbPersistence","Client '"+r+"' "+(w?"is":"is not")+" zombied in LocalStorage"),w}catch(O){return Me("IndexedDbPersistence","Failed to get zombied client id.",O),!1}},d.prototype._c=function(){if(this.Ga)try{this.Ga.setItem(this.hc(this.clientId),String(Date.now()))}catch(r){Me("Failed to set zombie client id.",r)}},d.prototype.wc=function(){if(this.Ga)try{this.Ga.removeItem(this.hc(this.clientId))}catch(r){}},d.prototype.hc=function(r){return"firestore_zombie_"+this.persistenceKey+"_"+r},d}();function pl(d){return Ra.Qn(d,ka.store)}function ch(d){return Ra.Qn(d,aa.store)}var Oc=function(){function d(r,h){this.db=r,this.wo=new Kn(this,h)}return d.prototype.Po=function(r){var h=this.Rc(r);return this.db.Tc().ba(r).next(function(w){return h.next(function(O){return w+O})})},d.prototype.Rc=function(r){var h=0;return this.Vo(r,function(w){h++}).next(function(){return h})},d.prototype.Ce=function(r,h){return this.db.Tc().Ce(r,h)},d.prototype.Vo=function(r,h){return this.gc(r,function(w,O){return h(O)})},d.prototype.Da=function(r,h,w){return uh(r,w)},d.prototype.Na=function(r,h,w){return uh(r,w)},d.prototype.po=function(r,h,w){return this.db.Tc().po(r,h,w)},d.prototype.Go=function(r,h){return uh(r,h)},d.prototype.Pc=function(r,h){return O=h,X=!1,Tc(w=r).os(function(De){return cc(w,De,O).next(function(ot){return ot&&(X=!0),ui.resolve(!ot)})}).next(function(){return X});var w,O,X},d.prototype.bo=function(r,h){var w=this,O=this.db.Ec().ra(),X=[],De=0;return this.gc(r,function(ot,Ct){if(Ct<=h){var sn=w.Pc(r,ot).next(function(_n){if(!_n)return De++,O.Rr(r,ot).next(function(){return O.Ar(ot),il(r).delete([0,ri(ot.path)])})});X.push(sn)}}).next(function(){return ui.$n(X)}).next(function(){return O.apply(r)}).next(function(){return De})},d.prototype.removeTarget=function(r,h){var w=h.st(r.xa);return this.db.Tc().ya(r,w)},d.prototype.yc=function(r,h){return uh(r,h)},d.prototype.gc=function(r,h){var w,O=il(r),X=wn.ai;return O.rs({index:Qo.documentTargetsIndex},function(De,ot){var sn=ot.path,_n=ot.sequenceNumber;0===De[0]?(X!==wn.ai&&h(new A(qi(w)),X),X=_n,w=sn):X=wn.ai}).next(function(){X!==wn.ai&&h(new A(qi(w)),X)})},d.prototype.So=function(r){return this.db.Ec().aa(r)},d}();function uh(d,r){return il(d).put((w=d.xa,new Qo(0,ri(r.path),w)));var w}function hf(d,r){var h=d.projectId;return d.j||(h+="."+d.database),"firestore/"+r+"/"+h+"/"}var df=function(){function d(r,h,w){this.persistence=r,this.Vc=h,this.bc=new Mt(ht),this.vc=new Pe(function(O){return Pt(O)},Dn),this.Sc=bt.min(),this.Sr=r.mc(w),this.Dc=r.Ec(),this.Ka=r.Tc(),this.Cc=new ie(this.Dc,this.Sr,this.persistence.Ic()),this.Vc.Nc(this.Cc)}return d.prototype.Io=function(r){var h=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(w){return r.vo(w,h.bc)})},d}();function Yl(d,r){var h=N(d);return h.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(w){var De,ot,Ct,sn,_n,Nn,Ln,O=r.batch.keys(),X=h.Dc.ra({oa:!0});return(De=h,ot=w,Ct=r,sn=X,_n=Ct.batch,Nn=_n.keys(),Ln=ui.resolve(),Nn.forEach(function($n){Ln=Ln.next(function(){return sn.Rr(ot,$n)}).next(function(si){var ai=si,lr=Ct.dr.get($n);P(null!==lr),(!ai||ai.version.L(lr)<0)&&(ai=_n.cr($n,ai,Ct))&&sn.Er(ai,Ct._r)})}),Ln.next(function(){return De.Sr.Wo(ot,_n)})).next(function(){return X.apply(w)}).next(function(){return h.Sr.zo(w)}).next(function(){return h.Cc.kr(w,O)})})}function Rc(d){var r=N(d);return r.persistence.runTransaction("Get last remote snapshot version","readonly",function(h){return r.Ka.Ea(h)})}function Lh(d,r){var h=N(d),w=r.nt,O=h.bc;return h.persistence.runTransaction("Apply remote event","readwrite-primary",function(X){var De=h.Dc.ra({oa:!0});O=h.bc;var ot=[];r.zt.forEach(function(Nn,Ln){var lr,rr,kr,$n=O.get(Ln);if($n){ot.push(h.Ka.Ca(X,Nn.se,Ln).next(function(){return h.Ka.Sa(X,Nn.ee,Ln)}));var si=Nn.resumeToken;if(si.O()>
10){var ai=$n.it(si,w).st(X.xa);O=O.ot(Ln,ai),lr=$n,kr=Nn,P((rr=ai).resumeToken.O()>0),(0===lr.resumeToken.O()||rr.nt.X()-lr.nt.X()>=3e8||kr.ee.size+kr.ne.size+kr.se.size>0)&&ot.push(h.Ka.ya(X,ai))}}});var Ct=xt(),sn=Ye();if(r.Yt.forEach(function(Nn,Ln){sn=sn.add(Nn)}),ot.push(De.getEntries(X,sn).next(function(Nn){r.Yt.forEach(function(Ln,$n){var si=Nn.get(Ln);$n instanceof ni&&$n.version.isEqual(bt.min())?(De.Ar(Ln,w),Ct=Ct.ot(Ln,$n)):null==si||$n.version.L(si.version)>0||0===$n.version.L(si.version)&&si.hasPendingWrites?(De.Er($n,w),Ct=Ct.ot(Ln,$n)):J("LocalStore","Ignoring outdated watch update for ",Ln,". Current version:",si.version," Watch version:",$n.version),r.Jt.has(Ln)&&ot.push(h.persistence.No.yc(X,Ln))})})),!w.isEqual(bt.min())){var _n=h.Ka.Ea(X).next(function(Nn){return h.Ka.Aa(X,X.xa,w)});ot.push(_n)}return ui.$n(ot).next(function(){return De.apply(X)}).next(function(){return h.Cc.Mr(X,Ct)})}).then(function(X){return h.bc=O,X})}function ia(d,r){var h=N(d);return h.persistence.runTransaction("Get next mutation batch","readonly",function(w){return void 0===r&&(r=-1),h.Sr.Bo(w,r)})}function xl(d,r){var h=N(d);return h.persistence.runTransaction("Allocate target","readwrite",function(w){var O;return h.Ka.va(w,r).next(function(X){return X?ui.resolve(O=X):h.Ka.wa(w).next(function(De){return O=new nn(r,De,0,w.xa),h.Ka.Ra(w,O).next(function(){return O})})})}).then(function(w){var O=h.bc.get(w.targetId);return(null===O||w.nt.L(O.nt)>0)&&(h.bc=h.bc.ot(w.targetId,w),h.vc.set(r,w.targetId)),w})}function Pc(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O,X,De;return s.__generator(this,function(ot){switch(ot.label){case 0:w=N(d),O=w.bc.get(r),X=h?"readwrite":"readwrite-primary",ot.label=1;case 1:return ot.trys.push([1,4,,5]),h?[3,3]:[4,w.persistence.runTransaction("Release target",X,function(Ct){return w.persistence.No.removeTarget(Ct,O)})];case 2:ot.sent(),ot.label=3;case 3:return[3,5];case 4:if(!Vr(De=ot.sent()))throw De;return J("LocalStore","Failed to update sequence numbers for target "+r+": "+De),[3,5];case 5:return w.bc=w.bc.remove(r),w.vc.delete(O.target),[2]}})})}function ya(d,r,h){var w=N(d),O=bt.min(),X=Ye();return w.persistence.runTransaction("Execute query","readonly",function(De){return(ot=w,Ct=De,sn=is(r),_n=N(ot),Nn=_n.vc.get(sn),void 0!==Nn?ui.resolve(_n.bc.get(Nn)):_n.Ka.va(Ct,sn)).next(function(ot){if(ot)return O=ot.lastLimboFreeSnapshotVersion,w.Ka.Fa(De,ot.targetId).next(function(Ct){X=Ct})}).next(function(){return w.Vc.Lr(De,r,h?O:bt.min(),h?X:Ye())}).next(function(ot){return{documents:ot,Fc:X}});var ot,Ct,sn,_n,Nn})}function hh(d,r){var h=N(d),w=N(h.Ka),O=h.bc.get(r);return O?Promise.resolve(O.target):h.persistence.runTransaction("Get target data","readonly",function(X){return w.Ue(X,r).next(function(De){return De?De.target:null})})}function Jc(d){var r=N(d);return r.persistence.runTransaction("Get new document changes","readonly",function(h){return O=h,X=r.Sc,De=N(r.Dc),ot=xt(),Ct=Fo(X),sn=fl(O),_n=IDBKeyRange.lowerBound(Ct,!0),sn.rs({index:Ks.readTimeIndex,range:_n},function(Nn,Ln){var $n=Lr(De.serializer,Ln);ot=ot.ot($n.key,$n),Ct=Ln.readTime}).next(function(){return{xc:ot,readTime:sa(Ct)}});var O,X,De,ot,Ct,sn,_n}).then(function(h){var w=h.xc;return r.Sc=h.readTime,w})}function Nh(d){return s.__awaiter(this,void 0,void 0,function(){var r;return s.__generator(this,function(h){return[2,(r=N(d)).persistence.runTransaction("Synchronize last document change read time","readonly",function(w){return X=fl(w),De=bt.min(),X.rs({index:Ks.readTimeIndex,reverse:!0},function(ot,Ct,sn){Ct.readTime&&(De=sa(Ct.readTime)),sn.done()}).next(function(){return De});var X,De}).then(function(w){r.Sc=w})]})})}function Il(d){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(r){if(d.code!==G.FAILED_PRECONDITION||d.message!==v)throw d;return J("LocalStore","Unexpectedly lost primary lease"),[2]})})}var Pa=function(){function d(){this.$c=new Ue(Io.kc),this.Mc=new Ue(Io.Oc)}return d.prototype.m=function(){return this.$c.m()},d.prototype.Da=function(r,h){var w=new Io(r,h);this.$c=this.$c.add(w),this.Mc=this.Mc.add(w)},d.prototype.Lc=function(r,h){var w=this;r.forEach(function(O){return w.Da(O,h)})},d.prototype.Na=function(r,h){this.Bc(new Io(r,h))},d.prototype.qc=function(r,h){var w=this;r.forEach(function(O){return w.Na(O,h)})},d.prototype.Uc=function(r){var h=this,w=new A(new ne([])),O=new Io(w,r),X=new Io(w,r+1),De=[];return this.Mc.Ft([O,X],function(ot){h.Bc(ot),De.push(ot.key)}),De},d.prototype.Qc=function(){var r=this;
1this.$c.forEach(function(h){return r.Bc(h)})},d.prototype.Bc=function(r){this.$c=this.$c.delete(r),this.Mc=this.Mc.delete(r)},d.prototype.Wc=function(r){var h=new A(new ne([])),w=new Io(h,r),O=new Io(h,r+1),X=Ye();return this.Mc.Ft([w,O],function(De){X=X.add(De.key)}),X},d.prototype.Ho=function(r){var h=new Io(r,0),w=this.$c.$t(h);return null!==w&&r.isEqual(w.key)},d}(),Io=function(){function d(r,h){this.key=r,this.jc=h}return d.kc=function(r,h){return A.i(r.key,h.key)||ht(r.jc,h.jc)},d.Oc=function(r,h){return ht(r.jc,h.jc)||A.i(r.key,h.key)},d}(),Xf=function(d,r){this.user=r,this.type="OAuth",this.Kc={},this.Kc.Authorization="Bearer "+d},Kl=function(){function d(){this.Gc=null}return d.prototype.getToken=function(){return Promise.resolve(null)},d.prototype.zc=function(){},d.prototype.Hc=function(r){this.Gc=r,r(zt.UNAUTHENTICATED)},d.prototype.Yc=function(){this.Gc=null},d}(),ff=function(){function d(r){var h=this;this.Jc=null,this.currentUser=zt.UNAUTHENTICATED,this.Xc=!1,this.Zc=0,this.Gc=null,this.forceRefresh=!1,this.Jc=function(){h.Zc++,h.currentUser=h.tu(),h.Xc=!0,h.Gc&&h.Gc(h.currentUser)},this.Zc=0,this.auth=r.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Jc):(this.Jc(null),r.get().then(function(w){h.auth=w,h.Jc&&h.auth.addAuthTokenListener(h.Jc)},function(){}))}return d.prototype.getToken=function(){var r=this,h=this.Zc,w=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(w).then(function(O){return r.Zc!==h?(J("FirebaseCredentialsProvider","getToken aborted due to token change."),r.getToken()):O?(P("string"==typeof O.accessToken),new Xf(O.accessToken,r.currentUser)):null}):Promise.resolve(null)},d.prototype.zc=function(){this.forceRefresh=!0},d.prototype.Hc=function(r){this.Gc=r,this.Xc&&r(this.currentUser)},d.prototype.Yc=function(){this.auth&&this.auth.removeAuthTokenListener(this.Jc),this.Jc=null,this.Gc=null},d.prototype.tu=function(){var r=this.auth&&this.auth.getUid();return P(null===r||"string"==typeof r),new zt(r)},d}(),pf=function(){function d(r,h){this.eu=r,this.nu=h,this.type="FirstParty",this.user=zt.ni}return Object.defineProperty(d.prototype,"Kc",{get:function(){var r={"X-Goog-AuthUser":this.nu},h=this.eu.auth.getAuthHeaderValueForFirstParty([]);return h&&(r.Authorization=h),r},enumerable:!1,configurable:!0}),d}(),Uo=function(){function d(r,h){this.eu=r,this.nu=h}return d.prototype.getToken=function(){return Promise.resolve(new pf(this.eu,this.nu))},d.prototype.Hc=function(r){r(zt.ni)},d.prototype.Yc=function(){},d.prototype.zc=function(){},d}(),eu=function(){function d(r,h,w,O,X,De){this.fn=r,this.su=w,this.iu=O,this.ru=X,this.listener=De,this.state=0,this.ou=0,this.au=null,this.stream=null,this.ys=new Mr(r,h)}return d.prototype.cu=function(){return 1===this.state||2===this.state||4===this.state},d.prototype.uu=function(){return 2===this.state},d.prototype.start=function(){3!==this.state?this.auth():this.hu()},d.prototype.stop=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(r){switch(r.label){case 0:return this.cu()?[4,this.close(0)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},d.prototype.lu=function(){this.state=0,this.ys.reset()},d.prototype._u=function(){var r=this;this.uu()&&null===this.au&&(this.au=this.fn.yn(this.su,6e4,function(){return r.fu()}))},d.prototype.du=function(r){this.wu(),this.stream.send(r)},d.prototype.fu=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(r){return this.uu()?[2,this.close(0)]:[2]})})},d.prototype.wu=function(){this.au&&(this.au.cancel(),this.au=null)},d.prototype.close=function(r,h){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(w){switch(w.label){case 0:return this.wu(),this.ys.cancel(),this.ou++,3!==r?this.ys.reset():h&&h.code===G.RESOURCE_EXHAUSTED?(Me(h.toString()),Me("Using maximum backoff delay to prevent overloading the backend."),this.ys.Rn()):h&&h.code===G.UNAUTHENTICATED&&this.ru.zc(),null!==this.stream&&(this.mu(),this.stream.close(),this.stream=null),this.state=r,[4,this.listener.Tu(h)];case 1:return w.sent(),[2]}})})},d.prototype.mu=function(){},d.prototype.auth=function(){var r=this;this.state=1;var h=this.Eu(this.ou),w=this.ou;this.ru.getToken().then(function(O){r.ou===w&&r.Iu(O)},function(O){h(function(){var X=new $(G.UNKNOWN,"Fetching auth token failed: "+O.message);return r.Au(X)})})},d.prototype.Iu=function(r){var h=this,w=this.Eu(this.ou);this.stream=this.Ru(r),this.stream.gu(function(){w(function(){return h.state=2,h.listener.gu()})}),this.stream.Tu(function(O){w(function(){return h.Au(O)})}),this.stream.onMessage(function(O){w(function(){return h.onMessage(O)})})},d.prototype.hu=function(){var r=this;this.state=4,this.ys.gn(function(){return s.__awaiter(r,void 0,void 0,function(){return s.__generator(this,function(h){return this.state=0,this.start(),[2]})})})},d.prototype.Au=function(r){return J("PersistentStream","close with error: "+r),this.stream=null,this.close(3,r)},d.prototype.Eu=function(r){var h=this;return function(w){h.fn.ws(function(){return h.ou===r?w():(J("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},d}(),pa=function(d){function r(h,w,O,X,De){var ot=this;return(ot=d.call(this,h,"listen_stream_connection_backoff","listen_stream_idle",w,O,De)||this).serializer
1=X,ot}return s.__extends(r,d),r.prototype.Ru=function(h){return this.iu.Pu("Listen",h)},r.prototype.onMessage=function(h){this.ys.reset();var w=function(X,De){var ot,Va;if("targetChange"in De){var Ct="NO_CHANGE"===(Va=De.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===Va?1:"REMOVE"===Va?2:"CURRENT"===Va?3:"RESET"===Va?4:Q(),sn=De.targetChange.targetIds||[],_n=function(Va,Cl){return Va.Qe?(P(void 0===Cl||"string"==typeof Cl),cn.fromBase64String(Cl||"")):(P(void 0===Cl||Cl instanceof Uint8Array),cn.fromUint8Array(Cl||new Uint8Array))}(X,De.targetChange.resumeToken),Nn=De.targetChange.cause,Ln=Nn&&function(Va){var Cl=void 0===Va.code?G.UNKNOWN:Rn(Va.code);return new $(Cl,Va.message||"")}(Nn);ot=new Ki(Ct,sn,_n,Ln||null)}else if("documentChange"in De){var $n=De.documentChange,si=fr(X,$n.document.name),ai=Oo($n.document.updateTime),lr=new Is({mapValue:{fields:$n.document.fields}}),rr=new Kt(si,ai,lr,{});ot=new mi($n.targetIds||[],$n.removedTargetIds||[],rr.key,rr)}else if("documentDelete"in De){var Ts=De.documentDelete,Vs=fr(X,Ts.document),co=Ts.readTime?Oo(Ts.readTime):bt.min(),Wo=new ni(Vs,co);ot=new mi([],Ts.removedTargetIds||[],Wo.key,Wo)}else if("documentRemove"in De){var wu=De.documentRemove,nc=fr(X,wu.document);ot=new mi([],wu.removedTargetIds||[],nc,null)}else{if(!("filter"in De))return Q();var jc=De.filter,Md=new Vn(jc.count||0);ot=new fi(jc.targetId,Md)}return ot}(this.serializer,h),O=function(X){if(!("targetChange"in X))return bt.min();var De=X.targetChange;return De.targetIds&&De.targetIds.length?bt.min():De.readTime?Oo(De.readTime):bt.min()}(h);return this.listener.yu(w,O)},r.prototype.Vu=function(h){var X,De,ot,Ct,w={};w.database=Kr(this.serializer),w.addTarget=(X=this.serializer,(ot=Gn(Ct=(De=h).target)?{documents:vr(X,Ct)}:{query:Po(X,Ct)}).targetId=De.targetId,De.resumeToken.O()>0&&(ot.resumeToken=qr(X,De.resumeToken)),ot);var O=function(X,De){var ot=function(Ct,sn){switch(sn){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Q()}}(0,De.et);return null==ot?null:{"goog-listen-tags":ot}}(0,h);O&&(w.labels=O),this.du(w)},r.prototype.pu=function(h){var w={};w.database=Kr(this.serializer),w.removeTarget=h,this.du(w)},r}(eu),uc=function(d){function r(h,w,O,X,De){var ot=this;return(ot=d.call(this,h,"write_stream_connection_backoff","write_stream_idle",w,O,De)||this).serializer=X,ot.bu=!1,ot}return s.__extends(r,d),Object.defineProperty(r.prototype,"vu",{get:function(){return this.bu},enumerable:!1,configurable:!0}),r.prototype.start=function(){this.bu=!1,this.lastStreamToken=void 0,d.prototype.start.call(this)},r.prototype.mu=function(){this.bu&&this.Su([])},r.prototype.Ru=function(h){return this.iu.Pu("Write",h)},r.prototype.onMessage=function(h){if(P(!!h.streamToken),this.lastStreamToken=h.streamToken,this.bu){this.ys.reset();var w=(De=h.commitTime,(X=h.writeResults)&&X.length>0?(P(void 0!==De),X.map(function(ot){return function(Ct,sn){var _n=Oo(Ct.updateTime?Ct.updateTime:sn);_n.isEqual(bt.min())&&(_n=Oo(sn));var Nn=null;return Ct.transformResults&&Ct.transformResults.length>0&&(Nn=Ct.transformResults),new Di(_n,Nn)}(ot,De)})):[]),O=Oo(h.commitTime);return this.listener.Du(O,w)}var X,De;return P(!h.writeResults||0===h.writeResults.length),this.bu=!0,this.listener.Cu()},r.prototype.Nu=function(){var h={};h.database=Kr(this.serializer),this.du(h)},r.prototype.Su=function(h){var w=this,O={streamToken:this.lastStreamToken,writes:h.map(function(X){return xs(w.serializer,X)})};this.du(O)},r}(eu),kl=function(d){function r(h,w,O){var X=this;return(X=d.call(this)||this).credentials=h,X.iu=w,X.serializer=O,X.Fu=!1,X}return s.__extends(r,d),r.prototype.xu=function(){if(this.Fu)throw new $(G.FAILED_PRECONDITION,"The client has already been terminated.")},r.prototype.$u=function(h,w,O){var X=this;return this.xu(),this.credentials.getToken().then(function(De){return X.iu.$u(h,w,O,De)}).catch(function(De){throw De.code===G.UNAUTHENTICATED&&X.credentials.zc(),De})},r.prototype.ku=function(h,w,O){var X=this;return this.xu(),this.credentials.getToken().then(function(De){return X.iu.ku(h,w,O,De)}).catch(function(De){throw De.code===G.UNAUTHENTICATED&&X.credentials.zc(),De})},r.prototype.terminate=function(){this.Fu=!1},r}(function(){}),hc=function(){function d(r,h){this.cs=r,this.di=h,this.state="Unknown",this.Mu=0,this.Ou=null,this.Lu=!0}return d.prototype.Bu=function(){var r=this;0===this.Mu&&(this.qu("Unknown"),this.Ou=this.cs.yn("online_state_timeout",1e4,function(){return r.Ou=null,r.Uu("Backend didn't respond within 10 seconds."),r.qu("Offline"),Promise.resolve()}))},d.prototype.Qu=function(r){"Online"===this.state?this.qu("Unknown"):(this.Mu++,this.Mu>=1&&(this.Wu(),this.Uu("Connection failed 1 times. Most recent error: "+r.toString()),this.qu("Offline")))},d.prototype.set=function(r){this.Wu(),this.Mu=0,"Online"===r&&(this.Lu=!1),this.qu(r)},d.prototype.qu=function(r){r!==this.state&&(this.state=r,this.di(r))},d.prototype.Uu=function(r){var h="Could not reach Cloud Firestore backend. "+r+"\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.Lu?(Me(h),this.Lu=!1):J("OnlineStateTracker",h)},d.prototype.Wu=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},d}(),Bh=function(d,r,h,w,O){var X=this;this.ju=d,this.Ku=r,this.cs=h,this.Gu={},this.zu=[],this.Hu=new Map,this.Yu=new Set,this.Ju=[],this.Xu=O,this.Xu.Zu(function(De){h.ws(function(){return s.__awaiter(X,void 0,void 0,function(){return s.__generator(this,function(ot){switch(ot.label){case 0:return La(this)?(J("RemoteStore","Restarting streams for network reach
1ability change."),[4,function(Ct){return s.__awaiter(this,void 0,void 0,function(){var sn;return s.__generator(this,function(_n){switch(_n.label){case 0:return(sn=N(Ct)).Yu.add(4),[4,ga(sn)];case 1:return _n.sent(),sn.th.set("Unknown"),sn.Yu.delete(4),[4,Ol(sn)];case 2:return _n.sent(),[2]}})})}(this)]):[3,2];case 1:ot.sent(),ot.label=2;case 2:return[2]}})})})}),this.th=new hc(h,w)};function Ol(d){return s.__awaiter(this,void 0,void 0,function(){var r,h;return s.__generator(this,function(w){switch(w.label){case 0:if(!La(d))return[3,4];r=0,h=d.Ju,w.label=1;case 1:return r<h.length?[4,(0,h[r])(!0)]:[3,4];case 2:w.sent(),w.label=3;case 3:return r++,[3,1];case 4:return[2]}})})}function ga(d){return s.__awaiter(this,void 0,void 0,function(){var r,h;return s.__generator(this,function(w){switch(w.label){case 0:r=0,h=d.Ju,w.label=1;case 1:return r<h.length?[4,(0,h[r])(!1)]:[3,4];case 2:w.sent(),w.label=3;case 3:return r++,[3,1];case 4:return[2]}})})}function dc(d){return s.__awaiter(this,void 0,void 0,function(){var r;return s.__generator(this,function(h){switch(h.label){case 0:return r=N(d),J("RemoteStore","RemoteStore shutting down."),r.Yu.add(5),[4,ga(r)];case 1:return h.sent(),r.Xu.Di(),r.th.set("Unknown"),[2]}})})}function tu(d,r){var h=N(d);h.Hu.has(r.targetId)||(h.Hu.set(r.targetId,r),fc(h)?Rl(h):la(h).uu()&&Fc(h,r))}function Fa(d,r){var h=N(d),w=la(h);h.Hu.delete(r),w.uu()&&ba(h,r),0===h.Hu.size&&(w.uu()?w._u():La(h)&&h.th.set("Unknown"))}function Fc(d,r){d.eh.Ie(r.targetId),la(d).Vu(r)}function ba(d,r){d.eh.Ie(r),la(d).pu(r)}function Rl(d){d.eh=new gn({qe:function(r){return d.Gu.qe(r)},Ue:function(r){return d.Hu.get(r)||null}}),la(d).start(),d.th.Bu()}function fc(d){return La(d)&&!la(d).cu()&&d.Hu.size>0}function La(d){return 0===N(d).Yu.size}function vd(d){d.eh=void 0}function Iu(d){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(r){return d.Hu.forEach(function(h,w){Fc(d,h)}),[2]})})}function Pl(d,r){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(h){return vd(d),fc(d)?(d.th.Qu(r),Rl(d)):d.th.set("Unknown"),[2]})})}function $a(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O,X;return s.__generator(this,function(De){switch(De.label){case 0:if(d.th.set("Online"),!(r instanceof Ki&&2===r.state&&r.cause))return[3,6];De.label=1;case 1:return De.trys.push([1,3,,5]),[4,function(ot,Ct){return s.__awaiter(this,void 0,void 0,function(){var sn,_n,Nn,Ln;return s.__generator(this,function($n){switch($n.label){case 0:sn=Ct.cause,_n=0,Nn=Ct.targetIds,$n.label=1;case 1:return _n<Nn.length?ot.Hu.has(Ln=Nn[_n])?[4,ot.Gu.nh(Ln,sn)]:[3,3]:[3,5];case 2:$n.sent(),ot.Hu.delete(Ln),ot.eh.removeTarget(Ln),$n.label=3;case 3:$n.label=4;case 4:return _n++,[3,1];case 5:return[2]}})})}(d,r)];case 2:return De.sent(),[3,5];case 3:return w=De.sent(),J("RemoteStore","Failed to remove targets %s: %s ",r.targetIds.join(","),w),[4,ku(d,w)];case 4:return De.sent(),[3,5];case 5:return[3,13];case 6:if(r instanceof mi?d.eh.be(r):r instanceof fi?d.eh.$e(r):d.eh.De(r),h.isEqual(bt.min()))return[3,13];De.label=7;case 7:return De.trys.push([7,11,,13]),[4,Rc(d.ju)];case 8:return O=De.sent(),h.L(O)>=0?[4,(ot=d,Ct=h,sn=ot.eh.Oe(Ct),sn.zt.forEach(function(_n,Nn){if(_n.resumeToken.O()>0){var Ln=ot.Hu.get(Nn);Ln&&ot.Hu.set(Nn,Ln.it(_n.resumeToken,Ct))}}),sn.Ht.forEach(function(_n){var Nn=ot.Hu.get(_n);if(Nn){ot.Hu.set(_n,Nn.it(cn.B,Nn.nt)),ba(ot,_n);var Ln=new nn(Nn.target,_n,1,Nn.sequenceNumber);Fc(ot,Ln)}}),ot.Gu.sh(sn))]:[3,10];case 9:De.sent(),De.label=10;case 10:return[3,13];case 11:return J("RemoteStore","Failed to raise snapshot:",X=De.sent()),[4,ku(d,X)];case 12:return De.sent(),[3,13];case 13:return[2]}var ot,Ct,sn})})}function ku(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w=this;return s.__generator(this,function(O){switch(O.label){case 0:if(!Vr(r))throw r;return d.Yu.add(1),[4,ga(d)];case 1:return O.sent(),d.th.set("Offline"),h||(h=function(){return Rc(d.ju)}),d.cs.Cs(function(){return s.__awaiter(w,void 0,void 0,function(){return s.__generator(this,function(X){switch(X.label){case 0:return J("RemoteStore","Retrying IndexedDB access"),[4,h()];case 1:return X.sent(),d.Yu.delete(1),[4,Ol(d)];case 2:return X.sent(),[2]}})})}),[2]}})})}function pc(d,r){return r().catch(function(h){return ku(d,h,r)})}function Fl(d){return s.__awaiter(this,void 0,void 0,function(){var r,h,w,O,X;return s.__generator(this,function(De){switch(De.label){case 0:r=N(d),h=_l(r),w=r.zu.length>0?r.zu[r.zu.length-1].batchId:-1,De.label=1;case 1:if(!(La(ot=r)&&ot.zu.length<10))return[3,7];De.label=2;case 2:return De.trys.push([2,4,,6]),[4,ia(r.ju,w)];case 3:return null===(O=De.sent())?(0===r.zu.length&&h._u(),[3,7]):(w=O.batchId,function(ot,Ct){ot.zu.push(Ct);var sn=_l(ot);sn.uu()&&sn.vu&&sn.Su(Ct.mutations)}(r,O),[3,6]);case 4:return X=De.sent(),[4,ku(r,X)];case 5:return De.sent(),[3,6];case 6:return[3,1];case 7:return wa(r)&&yd(r),[2]}var ot})})}function wa(d){return La(d)&&!_l(d).cu()&&d.zu.length>0}function yd(d){_l(d).start()}function Ou(d){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(r){return _l(d).Nu(),[2]})})}function gl(d){return s.__awaiter(this,void 0,void 0,function(){var r,h,w;return s.__generator(this,function(X){for(r=_l(d),h=0,w=d.zu;h<w.length;h++)r.Su(w[h].mutations);return[2]})})}function dh(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O;return s.__generator(this,function(X){switch(X.label){case 0:return w=d.zu.shift(),O=g.from(w,r,h),[4,pc(d,function(){return d.Gu.ih(O)})];case 1:return X.sent(),[4,Fl(d)];case 2:return X.sent(),[2]}})})}function Ru(d,r){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(h){switch(h.label){case 0:return r&&_l(d).vu?[4,function(w,O){return s.__awaiter(this,void 0,void 0,function(){var X,De;return s.__generator(this,function(ot){switch(ot.label){case 0:return Yt(De=O.code)&&De!==G.ABORTED?(X=w.zu.shift(),_l(w).lu(),[4,pc(w,function(){return w.Gu.rh(X.batchId,O)})]):[3,3];case 1:return ot.sent(),[4,Fl(w)];case 2:ot.sent(),ot.label=3;case 3:return[2]}})})}(d,r)]:[3,2];case 1:h.sent(),h.label=2;case 2:return wa(d)&&yd(d),[2]}})})}function ml(d,r){return s.__awaiter(this,void 0,void 0,function(){var h;return s.__generator(this,function(O){switch(O.label){case 0:return h=N(d),r?(h.Yu.delete(2),[4,Ol(h)]):[3,2];case 1:return O.sent(),[3,5];case 2:return r?[3,4]:(h.Yu.add(2),[4,ga(h)]);case 3:O.sent(),h.th.set("Unknown"),O.label=4;case 4:O.label=5;case 5:return[2]}})})}function la(d){var h,w,O,X,r=this;return d.oh||(d.oh=(h=d.Ku,w=d.cs,O={gu:Iu.bind(null,d),Tu:Pl.bind(null,d),yu:$a.bind(null,d)},(X=N(h)).xu(),new pa(w,X.iu,X.credentials,X.serializer,O)),d.Ju.push(function(h){return s.__awaiter(r,void 0,void 0,function(){return s.__generator(this,function(w){switch(w.label){case 0:return h?(d.oh.lu(),fc(d)?Rl(d):d.th.set("Unknown"),[3,3]):[3,1];case 1:return[4,d.oh.stop()];case 2:w.sent(),vd(d),w.label=3;case 3:return[2]}})})})),d.oh}function _l(d){var h,w,O,X,r=this;return d.ah||(d.ah=(h=d.Ku,w=d.cs,O={gu:Ou.bind(null,d),Tu:Ru.bind(null,d),Cu:gl.bind(null,d),Du:dh.bind(null,d)},(X=N(h)).xu(),new uc(w,X.iu,X.credentials,X.serializer,O)),d.Ju.push(function(h){return s.__awaiter(r,void 0,void 0,function(){return s.__generator(this,function(w){switch(w.label){case 0:return h?(d.ah.lu(),[4,Fl(d)]):[3,2];case 1:return w.sent(),[3,4];case 2:return[4,d.ah.stop()];case 3:w.sent(),d.zu.length>0&&(J("RemoteStore","Stopping write stream with "+d.zu.length+" pending writes"),d.zu=[]),w.label=4;case 4:return[2]}})})})),d.ah}var Pu=function(d){this.key=d},Na=function(d){this.key=d},nu=function(){function d(r,h){this.query=r,this.uh=h,this.hh=null,this.te=!1,this.lh=Ye(),this.Wt=Ye(),this._h=us(r),this.fh=new rn(this._h)}return Object.defineProperty(d.prototype,"dh",{get:function(){return this.uh}
1,enumerable:!1,configurable:!0}),d.prototype.wh=function(r,h){var w=this,O=h?h.mh:new On,X=h?h.fh:this.fh,De=h?h.Wt:this.Wt,ot=X,Ct=!1,sn=Br(this.query)&&X.size===this.query.limit?X.last():null,_n=ji(this.query)&&X.size===this.query.limit?X.first():null;if(r.ht(function(Ln,$n){var si=X.get(Ln),ai=$n instanceof Kt?$n:null;ai&&(ai=qo(w.query,ai)?ai:null);var lr=!!si&&w.Wt.has(si.key),rr=!!ai&&(ai.Je||w.Wt.has(ai.key)&&ai.hasCommittedMutations),kr=!1;si&&ai?si.data().isEqual(ai.data())?lr!==rr&&(O.track({type:3,doc:ai}),kr=!0):w.Th(si,ai)||(O.track({type:2,doc:ai}),kr=!0,(sn&&w._h(ai,sn)>0||_n&&w._h(ai,_n)<0)&&(Ct=!0)):!si&&ai?(O.track({type:0,doc:ai}),kr=!0):si&&!ai&&(O.track({type:1,doc:si}),kr=!0,(sn||_n)&&(Ct=!0)),kr&&(ai?(ot=ot.add(ai),De=rr?De.add(Ln):De.delete(Ln)):(ot=ot.delete(Ln),De=De.delete(Ln)))}),Br(this.query)||ji(this.query))for(;ot.size>this.query.limit;){var Nn=Br(this.query)?ot.last():ot.first();ot=ot.delete(Nn.key),De=De.delete(Nn.key),O.track({type:1,doc:Nn})}return{fh:ot,mh:O,Eh:Ct,Wt:De}},d.prototype.Th=function(r,h){return r.Je&&h.hasCommittedMutations&&!h.Je},d.prototype.yr=function(r,h,w){var O=this,X=this.fh;this.fh=r.fh,this.Wt=r.Wt;var De=r.mh.Ut();De.sort(function(_n,Nn){return $n=Nn.type,(si=function(ai){switch(ai){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Q()}})(_n.type)-si($n)||O._h(_n.doc,Nn.doc);var $n,si}),this.Ih(w);var ot=h?this.Ah():[],Ct=0===this.lh.size&&this.te?1:0,sn=Ct!==this.hh;return this.hh=Ct,0!==De.length||sn?{snapshot:new xn(this.query,r.fh,X,De,r.Wt,0===Ct,sn,!1),Rh:ot}:{Rh:ot}},d.prototype.Qs=function(r){return this.te&&"Offline"===r?(this.te=!1,this.yr({fh:this.fh,mh:new On,Wt:this.Wt,Eh:!1},!1)):{Rh:[]}},d.prototype.gh=function(r){return!this.uh.has(r)&&!!this.fh.has(r)&&!this.fh.get(r).Je},d.prototype.Ih=function(r){var h=this;r&&(r.ee.forEach(function(w){return h.uh=h.uh.add(w)}),r.ne.forEach(function(w){}),r.se.forEach(function(w){return h.uh=h.uh.delete(w)}),this.te=r.te)},d.prototype.Ah=function(){var r=this;if(!this.te)return[];var h=this.lh;this.lh=Ye(),this.fh.forEach(function(O){r.gh(O.key)&&(r.lh=r.lh.add(O.key))});var w=[];return h.forEach(function(O){r.lh.has(O)||w.push(new Na(O))}),this.lh.forEach(function(O){h.has(O)||w.push(new Pu(O))}),w},d.prototype.Ph=function(r){this.uh=r.Fc,this.lh=Ye();var h=this.wh(r.documents);return this.yr(h,!0)},d.prototype.yh=function(){return xn.Gt(this.query,this.fh,this.Wt,0===this.hh)},d}(),ca=function(d,r,h){this.query=d,this.targetId=r,this.view=h},fh=function(d){this.key=d,this.Vh=!1},bd=function(){function d(r,h,w,O,X,De){this.ju=r,this.ph=h,this.bh=w,this.Sh=O,this.currentUser=X,this.Dh=De,this.Ch={},this.Nh=new Pe(function(ot){return Ia(ot)},oo),this.Fh=new Map,this.xh=[],this.$h=new Mt(A.i),this.kh=new Map,this.Mh=new Pa,this.Oh={},this.Lh=new Map,this.Bh=lh.da(),this.onlineState="Unknown",this.qh=void 0}return Object.defineProperty(d.prototype,"Uh",{get:function(){return!0===this.qh},enumerable:!1,configurable:!0}),d}();function iu(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,O,X,De,ot;return s.__generator(this,function(Ct){switch(Ct.label){case 0:return h=qa(d),(X=h.Nh.get(r))?(h.Sh.Oi(X.targetId),O=X.view.yh(),[3,4]):[3,1];case 1:return[4,xl(h.ju,is(r))];case 2:return De=Ct.sent(),ot=h.Sh.Oi(De.targetId),[4,jo(h,r,De.targetId,"current"===ot)];case 3:O=Ct.sent(),h.Uh&&tu(h.ph,De),Ct.label=4;case 4:return[2,O]}})})}function jo(d,r,h,w){return s.__awaiter(this,void 0,void 0,function(){var O,X,De,ot,Ct,sn;return s.__generator(this,function(_n){switch(_n.label){case 0:return d.Qh=function(Nn,Ln,$n){return function(si,ai,lr,rr){return s.__awaiter(this,void 0,void 0,function(){var kr,Gr,Ts;return s.__generator(this,function(Vs){switch(Vs.label){case 0:return(kr=ai.view.wh(lr)).Eh?[4,ya(si.ju,ai.query,!1).then(function(co){return ai.view.wh(co.documents,kr)})]:[3,2];case 1:kr=Vs.sent(),Vs.label=2;case 2:return Gr=rr&&rr.zt.get(ai.targetId),Ts=ai.view.yr(kr,si.Uh,Gr),[2,(Uh(si,ai.targetId,Ts.Rh),Ts.snapshot)]}})})}(d,Nn,Ln,$n)},[4,ya(d.ju,r,!0)];case 1:return O=_n.sent(),X=new nu(r,O.Fc),De=X.wh(O.documents),ot=Ai.Zt(h,w&&"Offline"!==d.onlineState),Ct=X.yr(De,d.Uh,ot),Uh(d,h,Ct.Rh),sn=new ca(r,h,X),[2,(d.Nh.set(r,sn),d.Fh.has(h)?d.Fh.get(h).push(r):d.Fh.set(h,[r]),Ct.snapshot)]}})})}function ru(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w,O;return s.__generator(this,function(X){switch(X.label){case 0:return h=N(d),w=h.Nh.get(r),(O=h.Fh.get(w.targetId)).length>1?[2,(h.Fh.set(w.targetId,O.filter(function(De){return!oo(De,r)})),void h.Nh.delete(r))]:h.Uh?(h.Sh.Bi(w.targetId),h.Sh.Fi(w.targetId)?[3,2]:[4,Pc(h.ju,w.targetId,!1).then(function(){h.Sh.Ui(w.targetId),Fa(h.ph,w.targetId),Ea(h,w.targetId)}).catch(Il)]):[3,3];case 1:X.sent(),X.label=2;case 2:return[3,5];case 3:return Ea(h,w.targetId),[4,Pc(h.ju,w.targetId,!0)];case 4:X.sent(),X.label=5;case 5:return[2]}})})}function gc(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w;return s.__generator(this,function(O){switch(O.label){case 0:h=N(d),O.label=1;case 1:return O.trys.push([1,4,,6]),[4,Lh(h.ju,r)];case 2:return w=O.sent(),r.zt.forEach(function(X,De){var ot=h.kh.get(De);ot&&(P(X.ee.size+X.ne.size+X.se.size<=1),X.ee.size>0?ot.Vh=!0:X.ne.size>0?P(ot.Vh):X.se.size>0&&(P(ot.Vh),ot.Vh=!1))}),[4,Ll(h,w,r)];case 3:return O.sent(),[3,6];case 4:return[4,Il(O.sent())];case 5:return O.sent(),[3,6];case 6:return[2]}})})}function Lc(d,r,h){var w=N(d);if(w.Uh&&0===h||!w.Uh&&1===h){var O=[];
1w.Nh.forEach(function(X,De){var ot=De.view.Qs(r);ot.snapshot&&O.push(ot.snapshot)}),function(X,De){var ot=N(X);ot.onlineState=De;var Ct=!1;ot.Bs.forEach(function(sn,_n){for(var Nn=0,Ln=_n.listeners;Nn<Ln.length;Nn++)Ln[Nn].Qs(De)&&(Ct=!0)}),Ct&&Dt(ot)}(w.bh,r),O.length&&w.Ch.yu(O),w.onlineState=r,w.Uh&&w.Sh.Ki(r)}}function wd(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O,X,De,ot,Ct;return s.__generator(this,function(sn){switch(sn.label){case 0:return(w=N(d)).Sh.Qi(r,"rejected",h),O=w.kh.get(r),(X=O&&O.key)?(De=(De=new Mt(A.i)).ot(X,new ni(X,bt.min())),ot=Ye().add(X),Ct=new Xn(bt.min(),new Map,new Ue(ht),De,ot),[4,gc(w,Ct)]):[3,2];case 1:return sn.sent(),w.$h=w.$h.remove(X),w.kh.delete(r),vc(w),[3,4];case 2:return[4,Pc(w.ju,r,!1).then(function(){return Ea(w,r,h)}).catch(Il)];case 3:sn.sent(),sn.label=4;case 4:return[2]}})})}function vl(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w,O;return s.__generator(this,function(X){switch(X.label){case 0:h=N(d),w=r.batch.batchId,X.label=1;case 1:return X.trys.push([1,4,,6]),[4,Yl(h.ju,r)];case 2:return O=X.sent(),Lu(h,w,null),mc(h,w),h.Sh.ki(w,"acknowledged"),[4,Ll(h,O)];case 3:return X.sent(),[3,6];case 4:return[4,Il(X.sent())];case 5:return X.sent(),[3,6];case 6:return[2]}})})}function Fu(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O;return s.__generator(this,function(X){switch(X.label){case 0:w=N(d),X.label=1;case 1:return X.trys.push([1,4,,6]),[4,(De=w.ju,ot=r,Ct=N(De),Ct.persistence.runTransaction("Reject batch","readwrite-primary",function(sn){var _n;return Ct.Sr.Oo(sn,ot).next(function(Nn){return P(null!==Nn),_n=Nn.keys(),Ct.Sr.Wo(sn,Nn)}).next(function(){return Ct.Sr.zo(sn)}).next(function(){return Ct.Cc.kr(sn,_n)})}))];case 2:return O=X.sent(),Lu(w,r,h),mc(w,r),w.Sh.ki(r,"rejected",h),[4,Ll(w,O)];case 3:return X.sent(),[3,6];case 4:return[4,Il(X.sent())];case 5:return X.sent(),[3,6];case 6:return[2]}var De,ot,Ct})})}function mc(d,r){(d.Lh.get(r)||[]).forEach(function(h){h.resolve()}),d.Lh.delete(r)}function Lu(d,r,h){var w=N(d),O=w.Oh[w.currentUser.ti()];if(O){var X=O.get(r);X&&(h?X.reject(h):X.resolve(),O=O.remove(r)),w.Oh[w.currentUser.ti()]=O}}function Ea(d,r,h){void 0===h&&(h=null),d.Sh.Bi(r);for(var w=0,O=d.Fh.get(r);w<O.length;w++){var X=O[w];d.Nh.delete(X),h&&d.Ch.Wh(X,h)}d.Fh.delete(r),d.Uh&&d.Mh.Uc(r).forEach(function(De){d.Mh.Ho(De)||su(d,De)})}function su(d,r){var h=d.$h.get(r);null!==h&&(Fa(d.ph,h),d.$h=d.$h.remove(r),d.kh.delete(h),vc(d))}function Uh(d,r,h){for(var w=0,O=h;w<O.length;w++){var X=O[w];X instanceof Pu?(d.Mh.Da(X.key,r),_c(d,X)):X instanceof Na?(J("SyncEngine","Document no longer in limbo: "+X.key),d.Mh.Na(X.key,r),d.Mh.Ho(X.key)||su(d,X.key)):Q()}}function _c(d,r){var h=r.key;d.$h.get(h)||(J("SyncEngine","New document in limbo: "+h),d.xh.push(h),vc(d))}function vc(d){for(;d.xh.length>0&&d.$h.size<d.Dh;){var r=d.xh.shift(),h=d.Bh.next();d.kh.set(h,new fh(r)),d.$h=d.$h.ot(r,h),tu(d.ph,new nn(is(Ls(r.path)),h,2,wn.ai))}}function Ll(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O,X,De;return s.__generator(this,function(ot){switch(ot.label){case 0:return w=N(d),O=[],X=[],De=[],w.Nh.m()?[3,3]:(w.Nh.forEac
1h(function(Ct,sn){De.push(w.Qh(sn,r,h).then(function(_n){if(_n){w.Uh&&w.Sh.Qi(sn.targetId,_n.fromCache?"not-current":"current"),O.push(_n);var Nn=we.zr(sn.targetId,_n);X.push(Nn)}}))}),[4,Promise.all(De)]);case 1:return ot.sent(),w.Ch.yu(O),[4,function(Ct,sn){return s.__awaiter(this,void 0,void 0,function(){var _n,Nn,Ln,$n,si,ai,lr,kr;return s.__generator(this,function(Gr){switch(Gr.label){case 0:_n=N(Ct),Gr.label=1;case 1:return Gr.trys.push([1,3,,4]),[4,_n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(Ts){return ui.forEach(sn,function(Vs){return ui.forEach(Vs.Kr,function(co){return _n.persistence.No.Da(Ts,Vs.targetId,co)}).next(function(){return ui.forEach(Vs.Gr,function(co){return _n.persistence.No.Na(Ts,Vs.targetId,co)})})})})];case 2:return Gr.sent(),[3,4];case 3:if(!Vr(Nn=Gr.sent()))throw Nn;return J("LocalStore","Failed to update sequence numbers: "+Nn),[3,4];case 4:for(Ln=0,$n=sn;Ln<$n.length;Ln++)ai=(si=$n[Ln]).targetId,si.fromCache||(lr=_n.bc.get(ai),kr=lr.rt(lr.nt),_n.bc=_n.bc.ot(ai,kr));return[2]}})})}(w.ju,X)];case 2:ot.sent(),ot.label=3;case 3:return[2]}})})}function Nu(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w;return s.__generator(this,function(O){switch(O.label){case 0:return(h=N(d)).currentUser.isEqual(r)?[3,3]:(J("SyncEngine","User change. New user:",r.ti()),[4,function(X,De){return s.__awaiter(this,void 0,void 0,function(){var ot,Ct,sn,_n;return s.__generator(this,function(Nn){switch(Nn.label){case 0:return ot=N(X),Ct=ot.Sr,sn=ot.Cc,[4,ot.persistence.runTransaction("Handle user change","readonly",function(Ln){var $n;return ot.Sr.Uo(Ln).next(function(si){return $n=si,Ct=ot.persistence.mc(De),sn=new ie(ot.Dc,Ct,ot.persistence.Ic()),Ct.Uo(Ln)}).next(function(si){for(var ai=[],lr=[],rr=Ye(),kr=0,Gr=$n;kr<Gr.length;kr++){var Ts=Gr[kr];ai.push(Ts.batchId);for(var Vs=0,co=Ts.mutations;Vs<co.length;Vs++)rr=rr.add(co[Vs].key)}for(var ss=0,wu=si;ss<wu.length;ss++){var nc=wu[ss];lr.push(nc.batchId);for(var Bl=0,jc=nc.mutations;Bl<jc.length;Bl++)rr=rr.add(jc[Bl].key)}return sn.kr(Ln,rr).next(function(Md){return{jh:Md,Kh:ai,Gh:lr}})})})];case 1:return _n=Nn.sent(),[2,(ot.Sr=Ct,ot.Cc=sn,ot.Vc.Nc(ot.Cc),_n)]}})})}(h.ju,r)]);case 1:return w=O.sent(),h.currentUser=r,(X=h).Lh.forEach(function(ot){ot.forEach(function(Ct){Ct.reject(new $(G.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),X.Lh.clear(),h.Sh.ji(r,w.Kh,w.Gh),[4,Ll(h,w.jh)];case 2:O.sent(),O.label=3;case 3:return[2]}var X})})}function Bu(d,r){var h=N(d),w=h.kh.get(r);if(w&&w.Vh)return Ye().add(w.key);var O=Ye(),X=h.Fh.get(r);if(!X)return O;for(var De=0,ot=X;De<ot.length;De++){var sn=h.Nh.get(ot[De]);O=O.kt(sn.view.dh)}return O}function ou(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w,O;return s.__generator(this,function(X){switch(X.label){case 0:return[4,ya((h=N(d)).ju,r.query,!0)];case 1:return w=X.sent(),O=r.view.Ph(w),[2,(h.Uh&&Uh(h,r.targetId,O.Rh),O)]}})})}function au(d,r,h,w){return s.__awaiter(this,void 0,void 0,function(){var O,X;return s.__generator(this,function(De){switch(De.label){case 0:return[4,(ot=(O=N(d)).ju,Ct=r,sn=N(ot),_n=N(sn.Sr),sn.persistence.runTransaction("Lookup mutation documents","readonly",function(Nn){return _n.Lo(Nn,Ct).next(function(Ln){return Ln?sn.Cc.kr(Nn,Ln):ui.resolve(null)})}))];case 1:return null===(X=De.sent())?[3,6]:"pending"!==h?[3,3]:[4,Fl(O.ph)];case 2:return De.sent(),[3,4];case 3:"acknowledged"===h||"rejected"===h?(Lu(O,r,w||null),mc(O,r),function(ot,Ct){N(N(ot).Sr).Ko(Ct)}(O.ju,r)):Q(),De.label=4;case 4:return[4,Ll(O,X)];case 5:return De.sent(),[3,7];case 6:J("SyncEngine","Cannot apply mutation batch with id: "+r),De.label=7;case 7:return[2]}var ot,Ct,sn,_n})})}function yc(d,r){return s.__awaiter(this,void 0,void 0,function(){var h,w,O,X,De,Ct,sn;return s.__generator(this,function(_n){switch(_n.label){case 0:return qa(h=N(d)),yl(h),!0!==r||!0===h.qh?[3,3]:(w=h.Sh.Ci(),[4,$l(h,w.A())]);case 1:return O=_n.sent(),h.qh=!0,[4,ml(h.ph,!0)];case 2:for(_n.sent(),X=0,De=O;X<De.length;X++)tu(h.ph,De[X]);return[3,7];case 3:return!1!==r||!1===h.qh?[3,7]:(Ct=[],sn=Promise.resolve(),h.Fh.forEac
1h(function(Nn,Ln){h.Sh.qi(Ln)?Ct.push(Ln):sn=sn.then(function(){return Ea(h,Ln),Pc(h.ju,Ln,!0)}),Fa(h.ph,Ln)}),[4,sn]);case 4:return _n.sent(),[4,$l(h,Ct)];case 5:return _n.sent(),(Ln=N(h)).kh.forEach(function($n,si){Fa(Ln.ph,si)}),Ln.Mh.Qc(),Ln.kh=new Map,Ln.$h=new Mt(A.i),h.qh=!1,[4,ml(h.ph,!1)];case 6:_n.sent(),_n.label=7;case 7:return[2]}var Ln})})}function $l(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O,X,De,ot,Ct,sn,_n,Nn,Ln,si,ai,lr;return s.__generator(this,function(rr){switch(rr.label){case 0:w=N(d),O=[],X=[],De=0,ot=r,rr.label=1;case 1:return De<ot.length?(sn=void 0,(_n=w.Fh.get(Ct=ot[De]))&&0!==_n.length?[4,xl(w.ju,is(_n[0]))]:[3,7]):[3,13];case 2:sn=rr.sent(),Nn=0,Ln=_n,rr.label=3;case 3:return Nn<Ln.length?(si=w.Nh.get(Ln[Nn]),[4,ou(w,si)]):[3,6];case 4:(ai=rr.sent()).snapshot&&X.push(ai.snapshot),rr.label=5;case 5:return Nn++,[3,3];case 6:return[3,11];case 7:return[4,hh(w.ju,Ct)];case 8:return lr=rr.sent(),[4,xl(w.ju,lr)];case 9:return sn=rr.sent(),[4,jo(w,Nl(lr),Ct,!1)];case 10:rr.sent(),rr.label=11;case 11:O.push(sn),rr.label=12;case 12:return De++,[3,1];case 13:return[2,(w.Ch.yu(X),O)]}})})}function Nl(d){return Eo(d.path,d.collectionGroup,d.orderBy,d.filters,d.limit,"F",d.startAt,d.endAt)}function Vo(d){var r=N(d);return N(N(r.ju).persistence).pi()}function rl(d,r,h,w){return s.__awaiter(this,void 0,void 0,function(){var O,X,De;return s.__generator(this,function(ot){switch(ot.label){case 0:return(O=N(d)).qh?(J("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!O.Fh.has(r))return[3,8];switch(h){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,Jc(O.ju)];case 3:return X=ot.sent(),De=Xn.Xt(r,"current"===h),[4,Ll(O,X,De)];case 4:return ot.sent(),[3,8];case 5:return[4,Pc(O.ju,r,!0)];case 6:return ot.sent(),Ea(O,r,w),[3,8];case 7:Q(),ot.label=8;case 8:return[2]}})})}function ph(d,r,h){return s.__awaiter(this,void 0,void 0,function(){var w,O,X,De,ot,Ct,sn,_n,Nn;return s.__generator(this,function($n){switch($n.label){case 0:if(!(w=qa(d)).qh)return[3,10];O=0,X=r,$n.label=1;case 1:return O<X.length?w.Fh.has(De=X[O])?(J("SyncEngine","Adding an already active target "+De),[3,5]):[4,hh(w.ju,De)]:[3,6];case 2:return ot=$n.sent(),[4,xl(w.ju,ot)];case 3:return Ct=$n.sent(),[4,jo(w,Nl(ot),Ct.targetId,!1)];case 4:$n.sent(),tu(w.ph,Ct),$n.label=5;case 5:return O++,[3,1];case 6:sn=function(si){return s.__generator(this,function(ai){switch(ai.label){case 0:return w.Fh.has(si)?[4,Pc(w.ju,si,!1).then(function(){Fa(w.ph,si),Ea(w,si)}).catch(Il)]:[3,2];case 1:ai.sent(),ai.label=2;case 2:return[2]}})},_n=0,Nn=h,$n.label=7;case 7:return _n<Nn.length?[5,sn(Nn[_n])]:[3,10];case 8:$n.sent(),$n.label=9;case 9:return _n++,[3,7];case 10:return[2]}})})}function qa(d){var r=N(d);return r.ph.Gu.sh=gc.bind(null,r),r.ph.Gu.qe=Bu.bind(null,r),r.ph.Gu.nh=wd.bind(null,r),r.Ch.yu=Er.bind(null,r.bh),r.Ch.Wh=$e.bind(null,r.bh),r}function yl(d){var r=N(d);return r.ph.Gu.ih=vl.bind(null,r),r.ph.Gu.rh=Fu.bind(null,r),r}var ql=function(){function d(){}return d.prototype.Nc=function(r){this.zh=r},d.prototype.Lr=function(r,h,w,O){var De,X=this;return 0===(De=h).filters.length&&null===De.limit&&null==De.startAt&&null==De.endAt&&(0===De.on.length||1===De.on.length&&De.on[0].field.p())||w.isEqual(bt.min())?this.Hh(r,h):this.zh.kr(r,O).next(function(De){var ot=X.Yh(h,De);return(Br(h)||ji(h))&&X.Eh(h.an,ot,O,w)?X.Hh(r,h):(le()<=y.LogLevel.DEBUG&&J("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",w.toString(),Co(h)),X.zh.Lr(r,h,w).next(function(Ct){return ot.forEach(function(sn){Ct=Ct.ot(sn.key,sn)}),Ct}))})},d.prototype.Yh=function(r,h){var w=new Ue(us(r));return h.forEach(function(O,X){X instanceof Kt&&qo(r,X)&&(w=w.add(X))}),w},d.prototype.Eh=function(r,h,w,O){if(w.size!==h.size)return!0;var X="F"===r?h.last():h.first();return!!X&&(X.hasPendingWrites||X.version.L(O)>0)},d.prototype.Hh=function(r,h){return le()<=y.LogLevel.DEBUG&&J("IndexFreeQueryEngine","Using full collection scan to execute query:",Co(h)),this.zh.Lr(r,h,bt.min())},d}(),lu=function(){function d(r,h){this.Dr=r,this.No=h,this.Sr=[],this.Jh=1,this.Xh=new Ue(Io.kc)}return d.prototype.$o=function(r){return ui.resolve(0===this.Sr.length)},d.prototype.ko=function(r,h,w,O){var X=this.Jh;this.Jh++;var De=new He(X,h,w,O);this.Sr.push(De);for(var ot=0,Ct=O;ot<Ct.length;ot++){var sn=Ct[ot];this.Xh=this.Xh.add(new Io(sn.key,X)),this.Dr.Mo(r,sn.key.path.h())}return ui.resolve(De)}
1,d.prototype.Oo=function(r,h){return ui.resolve(this.Zh(h))},d.prototype.Bo=function(r,h){var O=this.tl(h+1),X=O<0?0:O;return ui.resolve(this.Sr.length>X?this.Sr[X]:null)},d.prototype.qo=function(){return ui.resolve(0===this.Sr.length?-1:this.Jh-1)},d.prototype.Uo=function(r){return ui.resolve(this.Sr.slice())},d.prototype.Nr=function(r,h){var w=this,O=new Io(h,0),X=new Io(h,Number.POSITIVE_INFINITY),De=[];return this.Xh.Ft([O,X],function(ot){var Ct=w.Zh(ot.jc);De.push(Ct)}),ui.resolve(De)},d.prototype.Or=function(r,h){var w=this,O=new Ue(ht);return h.forEach(function(X){var De=new Io(X,0),ot=new Io(X,Number.POSITIVE_INFINITY);w.Xh.Ft([De,ot],function(Ct){O=O.add(Ct.jc)})}),ui.resolve(this.el(O))},d.prototype.Wr=function(r,h){var w=h.path,O=w.length+1,X=w;A.F(X)||(X=X.child(""));var De=new Io(new A(X),0),ot=new Ue(ht);return this.Xh.xt(function(Ct){var sn=Ct.key.path;return!!w.T(sn)&&(sn.length===O&&(ot=ot.add(Ct.jc)),!0)},De),ui.resolve(this.el(ot))},d.prototype.el=function(r){var h=this,w=[];return r.forEach(function(O){var X=h.Zh(O);null!==X&&w.push(X)}),w},d.prototype.Wo=function(r,h){var w=this;P(0===this.nl(h.batchId,"removed")),this.Sr.shift();var O=this.Xh;return ui.forEach(h.mutations,function(X){var De=new Io(X.key,h.batchId);return O=O.delete(De),w.No.Go(r,X.key)}).next(function(){w.Xh=O})},d.prototype.Ko=function(r){},d.prototype.Ho=function(r,h){var w=new Io(h,0),O=this.Xh.$t(w);return ui.resolve(h.isEqual(O&&O.key))},d.prototype.zo=function(r){return ui.resolve()},d.prototype.nl=function(r,h){return this.tl(r)},d.prototype.tl=function(r){return 0===this.Sr.length?0:r-this.Sr[0].batchId},d.prototype.Zh=function(r){var h=this.tl(r);return h<0||h>=this.Sr.length?null:this.Sr[h]},d}(),jh=function(){function d(r,h){this.Dr=r,this.sl=h,this.docs=new Mt(A.i),this.size=0}return d.prototype.Er=function(r,h,w){var O=h.key,X=this.docs.get(O),De=X?X.size:0,ot=this.sl(h);return this.docs=this.docs.ot(O,{ta:h,size:ot,readTime:w}),this.size+=ot-De,this.Dr.Mo(r,O.path.h())},d.prototype.Ar=function(r){var h=this.docs.get(r);h&&(this.docs=this.docs.remove(r),this.size-=h.size)},d.prototype.Rr=function(r,h){var w=this.docs.get(h);return ui.resolve(w?w.ta:null)},d.prototype.getEntries=function(r,h){var w=this,O=Gt();return h.forEach(function(X){var De=w.docs.get(X);O=O.ot(X,De?De.ta:null)}),ui.resolve(O)},d.prototype.Lr=function(r,h,w){for(var O=Ne(),X=new A(h.path.child("")),De=this.docs.ft(X);De.At();){var ot=De.It(),sn=ot.value,_n=sn.ta,Nn=sn.readTime;if(!h.path.T(ot.key.path))break;Nn.L(w)<=0||_n instanceof Kt&&qo(h,_n)&&(O=O.ot(_n.key,_n))}return ui.resolve(O)},d.prototype.il=function(r,h){return ui.forEach(this.docs,function(w){return h(w)})},d.prototype.ra=function(r){return new gf(this)},d.prototype.aa=function(r){return ui.resolve(this.size)},d}(),gf=function(d){function r(h){var w=this;return(w=d.call(this)||this).ca=h,w}return s.__extends(r,d),r.prototype.yr=function(h){var w=this,O=[];return this.wr.forEach(function(X,De){De?O.push(w.ca.Er(h,De,w.readTime)):w.ca.Ar(X)}),ui.$n(O)},r.prototype.gr=function(h,w){return this.ca.Rr(h,w)},r.prototype.Pr=function(h,w){return this.ca.getEntries(h,w)},r}(u),cu=function(){function d(r){this.persistence=r,this.rl=new Pe(function(h){return Pt(h)},Dn),this.lastRemoteSnapshotVersion=bt.min(),this.highestTargetId=0,this.ol=0,this.al=new Pa,this.targetCount=0,this.cl=lh.fa()}return d.prototype.Ce=function(r,h){return this.rl.forEach(function(w,O){return h(O)}),ui.resolve()},d.prototype.Ea=function(r){return ui.resolve(this.lastRemoteSnapshotVersion)},d.prototype.Ia=function(r){return ui.resolve(this.ol)},d.prototype.wa=function(r){return this.highestTargetId=this.cl.next(),ui.resolve(this.highestTargetId)},d.prototype.Aa=function(r,h,w){return w&&(this.lastRemoteSnapshotVersion=w),h>this.ol&&(this.ol=h),ui.resolve()},d.prototype.ga=function(r){this.rl.set(r.target,r);var h=r.targetId;h>this.highestTargetId&&(this.cl=new lh(h),this.highestTargetId=h),r.sequenceNumber>this.ol&&(this.ol=r.sequenceNumber)},d.prototype.Ra=function(r,h){return this.ga(h),this.targetCount+=1,ui.resolve()},d.prototype.ya=function(r,h){return this.ga(h),ui.resolve()},d.prototype.Va=function(r,h){return this.rl.delete(h.target),this.al.Uc(h.targetId),this.targetCount-=1,ui.resolve()},d.prototype.po=function(r,h,w){var O=this,X=0,De=[];return this.rl.forEach(function(ot,Ct){Ct.sequenceNumber<=h&&null===w.get(Ct.targetId)&&(O.rl.delete(ot),De.push(O.pa(r,Ct.targetId)),X++)}),ui.$n(De).next(function(){return X})},d.prototype.ba=function(r){return ui.resolve(this.targetCount)},d.prototype.va=function(r,h){var w=this.rl.get(h)||null;return ui.resolve(w)},d.prototype.Sa=function(r,h,w){return this.al.Lc(h,w),ui.resolve()},d.prototype.Ca=function(r,h,w){this.al.qc(h,w);var O=this.persistence.No,X=[];return O&&h.forEach(function(De){X.push(O.Go(r,De))}),ui.$n(X)},d.prototype.pa=function(r,h){return this.al.Uc(h),ui.resolve()},d.prototype.Fa=function(r,h){var w=this.al.Wc(h);return ui.resolve(w)},d.prototype.Ho=function(r,h){return ui.resolve(this.al.Ho(h))},d}(),Tp=function(){function d(r){var h=this;this.ul={},this.Ma=new wn(0),this.Oa=!1,this.Oa=!0,this.No=r(this),this.Ka=new cu(this),this.Dr=new oh,this.vr=new jh(this.Dr,function(X){return h.No.hl(X)})}return d.prototype.start=function(){return Promise.resolve()},d.prototype.Di=function(){return this.Oa=!1,Promise.resolve()},Object.defineProperty(d.prototype,"Ei",{get:function(){return this.Oa}
1,enumerable:!1,configurable:!0}),d.prototype.Za=function(){},d.prototype.tc=function(){},d.prototype.Ic=function(){return this.Dr},d.prototype.mc=function(r){var h=this.ul[r.ti()];return h||(h=new lu(this.Dr,this.No),this.ul[r.ti()]=h),h},d.prototype.Tc=function(){return this.Ka},d.prototype.Ec=function(){return this.vr},d.prototype.runTransaction=function(r,h,w){var O=this;J("MemoryPersistence","Starting transaction:",r);var X=new mf(this.Ma.next());return this.No.ll(),w(X).next(function(De){return O.No._l(X).next(function(){return De})}).Fn().then(function(De){return X.br(),De})},d.prototype.fl=function(r,h){return ui.kn(Object.values(this.ul).map(function(w){return function(){return w.Ho(r,h)}}))},d}(),mf=function(d){function r(h){var w=this;return(w=d.call(this)||this).xa=h,w}return s.__extends(r,d),r}(T),Xo=function(){function d(r){this.persistence=r,this.dl=new Pa,this.wl=null}return d.ml=function(r){return new d(r)},Object.defineProperty(d.prototype,"Tl",{get:function(){if(this.wl)return this.wl;throw Q()},enumerable:!1,configurable:!0}),d.prototype.Da=function(r,h,w){return this.dl.Da(w,h),this.Tl.delete(w.toString()),ui.resolve()},d.prototype.Na=function(r,h,w){return this.dl.Na(w,h),this.Tl.add(w.toString()),ui.resolve()},d.prototype.Go=function(r,h){return this.Tl.add(h.toString()),ui.resolve()},d.prototype.removeTarget=function(r,h){var w=this;this.dl.Uc(h.targetId).forEach(function(X){return w.Tl.add(X.toString())});var O=this.persistence.Tc();
1return O.Fa(r,h.targetId).next(function(X){X.forEach(function(De){return w.Tl.add(De.toString())})}).next(function(){return O.Va(r,h)})},d.prototype.ll=function(){this.wl=new Set},d.prototype._l=function(r){var h=this,w=this.persistence.Ec().ra();return ui.forEach(this.Tl,function(O){var X=A.D(O);return h.El(r,X).next(function(De){De||w.Ar(X)})}).next(function(){return h.wl=null,w.apply(r)})},d.prototype.yc=function(r,h){var w=this;return this.El(r,h).next(function(O){O?w.Tl.delete(h.toString()):w.Tl.add(h.toString())})},d.prototype.hl=function(r){return 0},d.prototype.El=function(r,h){var w=this;return ui.kn([function(){return ui.resolve(w.dl.Ho(h))},function(){return w.persistence.Tc().Ho(r,h)},function(){return w.persistence.fl(r,h)}])},d}(),Uu=function(){function d(r){this.Il=r.Il,this.Al=r.Al}return d.prototype.gu=function(r){this.Rl=r},d.prototype.Tu=function(r){this.gl=r},d.prototype.onMessage=function(r){this.Pl=r},d.prototype.close=function(){this.Al()},d.prototype.send=function(r){this.Il(r)},d.prototype.yl=function(){this.Rl()},d.prototype.Vl=function(r){this.gl(r)},d.prototype.pl=function(r){this.Pl(r)},d}(),Vh={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},gh=function(d){function r(h){var w=this;return(w=d.call(this,h)||this).forceLongPolling=h.forceLongPolling,w.W=h.W,w}return s.__extends(r,d),r.prototype.Nl=function(h,w,O,X){return new Promise(function(De,ot){var Ct=new D.XhrIo;Ct.listenOnce(D.EventType.COMPLETE,function(){try{switch(Ct.getLastErrorCode()){case D.ErrorCode.NO_ERROR:var _n=Ct.getResponseJson();J("Connection","XHR received:",JSON.stringify(_n)),De(_n);break;case D.ErrorCode.TIMEOUT:J("Connection",'RPC "'+h+'" timed out'),ot(new $(G.DEADLINE_EXCEEDED,"Request time out"));break;case D.ErrorCode.HTTP_ERROR:var Nn=Ct.getStatus();if(J("Connection",'RPC "'+h+'" failed with status:',Nn,"response text:",Ct.getResponseText()),Nn>0){var Ln=Ct.getResponseJson().error;if(Ln&&Ln.status&&Ln.message){var $n=(ai=Ln.status.toLowerCase().replace("_","-"),Object.values(G).indexOf(ai)>=0?ai:G.UNKNOWN);ot(new $($n,Ln.message))}else ot(new $(G.UNKNOWN,"Server responded with status "+Ct.getStatus()))}else ot(new $(G.UNAVAILABLE,"Connection failed."));break;default:Q()}}finally{J("Connection",'RPC "'+h+'" completed.')}var ai});var sn=JSON.stringify(X);Ct.send(w,"POST",sn,O,15)})},r.prototype.Pu=function(h,w){var O=[this.vl,"/","google.firestore.v1.Firestore","/",h,"/channel"],X=D.createWebChannelTransport(),De={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.U.projectId+"/databases/"+this.U.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.W};this.Cl(De.initMessageHeaders,w),j.isMobileCordova()||j.isReactNative()||j.isElectron()||j.isIE()||j.isUWP()||j.isBrowserExtension()||(De.httpHeadersOverwriteParam="$httpHeaders");var ot=O.join("");J("Connection","Creating WebChannel: "+ot,De);var Ct=X.createWebChannel(ot,De),sn=!1,_n=!1,Nn=new Uu({Il:function($n){_n?J("Connection","Not sending because WebChannel is closed:",$n):(sn||(J("Connection","Opening WebChannel transport."),Ct.open(),sn=!0),J("Connection","WebChannel sending:",$n),Ct.send($n))},Al:function(){return Ct.close()}}),Ln=function($n,si){Ct.listen($n,function(ai){try{si(ai)}catch(lr){setTimeout(function(){throw lr},0)}})};return Ln(D.WebChannel.EventType.OPEN,function(){_n||J("Connection","WebChannel transport opened.")}),Ln(D.WebChannel.EventType.CLOSE,function(){_n||(_n=!0,J("Connection","WebChannel transport closed"),Nn.Vl())}),Ln(D.WebChannel.EventType.ERROR,function($n){_n||(_n=!0,Re("Connection","WebChannel transport errored:",$n),Nn.Vl(new $(G.UNAVAILABLE,"The operation could not be completed")))}),Ln(D.WebChannel.EventType.MESSAGE,function($n){var si;if(!_n){var ai=$n.data[0];P(!!ai);var rr=ai.error||(null===(si=ai[0])||void 0===si?void 0:si.error);if(rr){J("Connection","WebChannel received error:",rr);var kr=rr.status,Gr=function(Vs){var co=Zn[Vs];if(void 0!==co)return Rn(co)}(kr),Ts=rr.message;void 0===Gr&&(Gr=G.INTERNAL,Ts="Unknown error status: "+kr+" with message "+rr.message),_n=!0,Nn.Vl(new $(Gr,Ts)),Ct.close()}
1else J("Connection","WebChannel received:",ai),Nn.pl(ai)}}),setTimeout(function(){Nn.yl()},0),Nn},r}(function(){function d(r){this.bl=r,this.U=r.U,this.vl=(r.ssl?"https":"http")+"://"+r.host,this.Sl="projects/"+this.U.projectId+"/databases/"+this.U.database+"/documents"}return d.prototype.$u=function(r,h,w,O){var X=this.Dl(r,h);J("RestConnection","Sending: ",X,w);var De={};return this.Cl(De,O),this.Nl(r,X,De,w).then(function(ot){return J("RestConnection","Received: ",ot),ot},function(ot){throw Re("RestConnection",r+" failed with error: ",ot,"url: ",X,"request:",w),ot})},d.prototype.ku=function(r,h,w,O){return this.$u(r,h,w,O)},d.prototype.Cl=function(r,h){if(r["X-Goog-Api-Client"]="gl-js/ fire/7.24.0",r["Content-Type"]="text/plain",h)for(var w in h.Kc)h.Kc.hasOwnProperty(w)&&(r[w]=h.Kc[w])},d.prototype.Dl=function(r,h){return this.vl+"/v1/"+h+":"+Vh[r]},d}()),mh=function(){function d(){var r=this;this.Fl=function(){return r.xl()},this.$l=function(){return r.kl()},this.Ml=[],this.Ol()}return d.prototype.Zu=function(r){this.Ml.push(r)},d.prototype.Di=function(){window.removeEventListener("online",this.Fl),window.removeEventListener("offline",this.$l)},d.prototype.Ol=function(){window.addEventListener("online",this.Fl),window.addEventListener("offline",this.$l)},d.prototype.xl=function(){J("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var r=0,h=this.Ml;r<h.length;r++)(0,h[r])(0)},d.prototype.kl=function(){J("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var r=0,h=this.Ml;r<h.length;r++)(0,h[r])(1)},d.Ln=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},d}(),uu=function(){function d(){}return d.prototype.Zu=function(r){},d.prototype.Di=function(){},d}();function _h(d){return new dr(d,!0)}var hu="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",Ba=function(){function d(){}return d.prototype.initialize=function(r){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(h){switch(h.label){case 0:return this.Sh=this.Ll(r),this.persistence=this.Bl(r),[4,this.persistence.start()];case 1:return h.sent(),this.ql=this.Ul(r),this.ju=this.Ql(r),[2]}})})},d.prototype.Ul=function(r){return null},d.prototype.Ql=function(r){return h=this.persistence,w=new ql,new df(h,w,r.Wl);var h,w},d.prototype.Bl=function(r){if(r.persistenceSettings.jl)throw new $(G.FAILED_PRECONDITION,hu);return new Tp(Xo.ml)},d.prototype.Ll=function(r){return new st},d.prototype.terminate=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(r){switch(r.label){case 0:return this.ql&&this.ql.stop(),[4,this.Sh.Di()];case 1:return r.sent(),[4,this.persistence.Di()];case 2:return r.sent(),[2]}})})},d.prototype.clearPersistence=function(r,h){throw new $(G.FAILED_PRECONDITION,hu)},d}(),Nc=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.initialize=function(h){return s.__awaiter(this,void 0,void 0,function(){var w,O=this;return s.__generator(this,function(X){switch(X.label){case 0:return[4,d.prototype.initialize.call(this,h)];case 1:return X.sent(),w=this.Kl.fi,this.Sh instanceof Cr?(this.Sh.fi={er:au.bind(null,w),nr:rl.bind(null,w),sr:ph.bind(null,w),pi:Vo.bind(null,w)},[4,this.Sh.start()]):[3,3];case 2:X.sent(),X.label=3;case 3:return[4,this.persistence.Xa(function(De){return s.__awaiter(O,void 0,void 0,function(){return s.__generator(this,function(ot){switch(ot.label){case 0:return[4,yc(this.Kl.fi,De)];case 1:return ot.sent(),this.ql&&(De&&!this.ql.Ei?this.ql.start(this.ju):De||this.ql.stop()),[2]}})})})];case 4:return X.sent(),[2]}})})},r.prototype.Ll=function(h){if(h.persistenceSettings.jl&&h.persistenceSettings.synchronizeTabs){var w=nt();if(!Cr.Ln(w))throw new $(G.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var O=hf(h.bl.U,h.bl.persistenceKey);return new Cr(w,h.cs,O,h.clientId,h.Wl)}return new st},r}(function(d){function r(h){var w=this;return(w=d.call(this)||this).Kl=h,w}return s.__extends(r,d),r.prototype.initialize=function(h){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(w){switch(w.label){case 0:return[4,d.prototype.initialize.call(this,h)];case 1:return w.sent(),[4,Nh(this.ju)];case 2:return w.sent(),[4,this.Kl.initialize(this,h)];case 3:return w.sent(),[4,yl(this.Kl.fi)];case 4:return w.sent(),[4,Fl(this.Kl.ph)];case 5:return w.sent(),[2]}})})},r.prototype.Ul=function(h){return new Bn(this.persistence.No.wo,h.cs)},r.prototype.Bl=function(h){var w=hf(h.bl.U,h.bl.persistenceKey),O=_h(h.bl.U);return new Ra(h.persistenceSettings.synchronizeTabs,w,h.clientId,tn.ao(h.persistenceSettings.cacheSizeBytes),h.cs,nt(),At(),O,this.Sh,h.persistenceSettings.ka)},r.prototype.Ll=function(h){return new st},r.prototype.clearPersistence=function(h,w){return function(O){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(De){switch(De.label){case 0:return Sr.Ln()?[4,Sr.delete(O+"main")]:[2,Promise.resolve()];case 1:return De.sent(),[2]}})})}(hf(h,w))},r}(Ba)),Qa=function(){function d(){}return d.prototype.initialize=function(r,h){return s.__awaiter(this,void 0,void 0,function(){var w=this;return s.__generator(this,function(O){switch(O.label){case 0:return this.ju?[3,2]:(this.ju=r.ju,this.Sh=r.Sh,this.Ku=this.Gl(h),this.ph=this.zl(h),this.bh=this.Hl(h),this.fi=this.Yl(h),this.Sh.di=function(X){return Lc(w.fi,X,1)},this.ph.Gu.Jl=Nu.bind(null,this.fi),[4,ml(this.ph,this.fi.Uh)]);case 1:O.sent(),O.label=2;case 2:return[2]}})})},d.prototype.Hl=function(r){return new yi},d.prototype.Gl=function(r){var w=_h(r.bl.U),O=new gh(r.bl);return new kl(r.credentials,O,w)},d.prototype.zl=function(r){var h,w,O,X,De,ot=this;return h=this.ju,w=this.Ku,O=r.cs,X=function(Ct){return Lc(ot.fi,Ct,0)},De=mh.Ln()?new mh:new uu,new Bh(h,w,O,X,De)},d.prototype.Yl=function(r){return Ct=!r.persistenceSettings.jl||!r.persistenceSettings.synchronizeTabs,sn=new bd(this.ju,this.ph,this.bh,this.Sh,r.Wl,r.Dh),Ct&&(sn.qh=!0),sn;var Ct,sn},d.prototype.terminate=function(){return dc(this.ph)},d}(),Ql=function(){function d(r){this.observer=r,this.muted=!1}return d.prototype.next=function(r){this.observer.next&&this.Xl(this.observer.next,r)},d.prototype.error=function(r){this.observer.error?this.Xl(this.observer.error,r):console.error("Uncaught Error in snapshot listener:",r)},d.prototype.Zl=function(){this.muted=!0}
1,d.prototype.Xl=function(r,h){var w=this;this.muted||setTimeout(function(){w.muted||r(h)},0)},d}(),Xl=function(d){!function(h,w,O,X){if(!(w instanceof Array)||w.length<1)throw new $(G.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+wt(1,"element")+".")}(0,d);for(var r=0;r<d.length;++r)if(ge("FieldPath","string",r,d[r]),0===d[r].length)throw new $(G.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.t_=new M(d)},Ho=function(d){function r(){for(var h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];return d.call(this,h)||this}return s.__extends(r,d),r.documentId=function(){return new r(M.v().R())},r.prototype.isEqual=function(h){if(!(h instanceof r))throw Be("isEqual","FieldPath",1,h);return this.t_.isEqual(h.t_)},r}(Xl),du=new RegExp("[~\\*/\\[\\]]"),Zl=function(d){this.e_=d},bc=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.n_=function(h){if(2!==h.s_)throw h.i_(1===h.s_?this.e_+"() can only appear at the top level of your update data":this.e_+"() cannot be used with set() unless you pass {merge:true}");return h.We.push(h.path),null},r.prototype.isEqual=function(h){return h instanceof r},r}(Zl);function fu(d,r,h){return new vh({s_:3,r_:r.settings.r_,methodName:d.e_,o_:h},r.U,r.serializer,r.ignoreUndefinedProperties)}var ju=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.n_=function(h){return new hi(h.path,new ws)},r.prototype.isEqual=function(h){return h instanceof r},r}(Zl),wc=function(d){function r(h,w){var O=this;return(O=d.call(this,h)||this).a_=w,O}return s.__extends(r,d),r.prototype.n_=function(h){var w=fu(this,h,!0),O=this.a_.map(function(De){return Hu(De,w)}),X=new vt(O);return new hi(h.path,X)},r.prototype.isEqual=function(h){return this===h},r}(Zl),Ec=function(d){function r(h,w){var O=this;return(O=d.call(this,h)||this).a_=w,O}return s.__extends(r,d),r.prototype.n_=function(h){var w=fu(this,h,!0),O=this.a_.map(function(De){return Hu(De,w)}),X=new Zt(O);return new hi(h.path,X)},r.prototype.isEqual=function(h){return this===h},r}(Zl),Hh=function(d){function r(h,w){var O=this;return(O=d.call(this,h)||this).c_=w,O}return s.__extends(r,d),r.prototype.n_=function(h){var w=new Mn(h.serializer,Rs(h.serializer,this.c_));return new hi(h.path,w)},r.prototype.isEqual=function(h){return this===h},r}(Zl),Jl=function(){function d(r,h){if(ee("GeoPoint",arguments,2),ge("GeoPoint","number",1,r),ge("GeoPoint","number",2,h),!isFinite(r)||r<-90||r>90)throw new $(G.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+r);if(!isFinite(h)||h<-180||h>180)throw new $(G.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+h);this.u_=r,this.h_=h}return Object.defineProperty(d.prototype,"latitude",{get:function(){return this.u_},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"longitude",{get:function(){return this.h_},enumerable:!1,configurable:!0}),d.prototype.isEqual=function(r){return this.u_===r.u_&&this.h_===r.h_},d.prototype.toJSON=function(){return{latitude:this.u_,longitude:this.h_}},d.prototype.Y=function(r){return ht(this.u_,r.u_)||ht(this.h_,r.h_)},d}(),Bc=function(d){this.l_=d},Xa=/^__.*__$/,Ca=function(d,r,h){this.__=d,this.f_=r,this.d_=h},Gh=function(){function d(r,h,w){this.data=r,this.We=h,this.fieldTransforms=w}return d.prototype.w_=function(r,h){var w=[];return w.push(null!==this.We?new Rr(r,this.data,this.We,h):new yr(r,this.data,h)),this.fieldTransforms.length>0&&w.push(new Ss(r,this.fieldTransforms)),w},d}(),Ed=function(){function d(r,h,w){this.data=r,this.We=h,this.fieldTransforms=w}return d.prototype.w_=function(r,h){var w=[new Rr(r,this.data,this.We,h)];return this.fieldTransforms.length>0&&w.push(new Ss(r,this.fieldTransforms)),w},d}();function zh(d){switch(d){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Q()}}var vh=function(){function d(r,h,w,O,X,De){this.settings=r,this.U=h,this.serializer=w,this.ignoreUndefinedProperties=O,void 0===X&&this.m_(),this.fieldTransforms=X||[],this.We=De||[]}return Object.defineProperty(d.prototype,"path",{get:function(){return this.settings.path}
1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"s_",{get:function(){return this.settings.s_},enumerable:!1,configurable:!0}),d.prototype.T_=function(r){return new d(Object.assign(Object.assign({},this.settings),r),this.U,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.We)},d.prototype.E_=function(r){var h,w=null===(h=this.path)||void 0===h?void 0:h.child(r),O=this.T_({path:w,o_:!1});return O.I_(r),O},d.prototype.A_=function(r){var h,w=null===(h=this.path)||void 0===h?void 0:h.child(r),O=this.T_({path:w,o_:!1});return O.m_(),O},d.prototype.R_=function(r){return this.T_({path:void 0,o_:!0})},d.prototype.i_=function(r){return Gu(r,this.settings.methodName,this.settings.g_||!1,this.path,this.settings.r_)},d.prototype.contains=function(r){return void 0!==this.We.find(function(h){return r.T(h)})||void 0!==this.fieldTransforms.find(function(h){return r.T(h.field)})},d.prototype.m_=function(){if(this.path)for(var r=0;r<this.path.length;r++)this.I_(this.path.get(r))},d.prototype.I_=function(r){if(0===r.length)throw this.i_("Document fields must not be empty");if(zh(this.s_)&&Xa.test(r))throw this.i_('Document fields cannot begin and end with "__"')},d}(),ua=function(){function d(r,h,w){this.U=r,this.ignoreUndefinedProperties=h,this.serializer=w||_h(r)}return d.prototype.P_=function(r,h,w,O){return void 0===O&&(O=!1),new vh({s_:r,methodName:h,r_:w,path:M.P(),o_:!1,g_:O},this.U,this.serializer,this.ignoreUndefinedProperties)},d}();function Vu(d,r,h,w,O,X){void 0===X&&(X={});var De=d.P_(X.merge||X.mergeFields?2:0,r,h,O);Uc("Data must be an object, but it was:",De,w);var ot,Ct,sn=Yh(w,De);if(X.merge)ot=new pi(De.We),Ct=De.fieldTransforms;else if(X.mergeFields){for(var _n=[],Nn=0,Ln=X.mergeFields;Nn<Ln.length;Nn++){var $n=Ln[Nn],si=void 0;if($n instanceof Xl)si=$n.t_;else{if("string"!=typeof $n)throw Q();si=gu(r,$n,h)}if(!De.contains(si))throw new $(G.INVALID_ARGUMENT,"Field '"+si+"' is specified in your field mask but missing from your input data.");Ko(_n,si)||_n.push(si)}ot=new pi(_n),Ct=De.fieldTransforms.filter(function(ai){return ot.Ye(ai.field)})}else ot=null,Ct=De.fieldTransforms;return new Gh(new Is(sn),ot,Ct)}function Ua(d,r,h,w){var O=d.P_(1,r,h);Uc("Data must be an object, but it was:",O,w);var X=[],De=new yt;de(w,function(Ct,sn){var _n=gu(r,Ct,h),Nn=O.A_(_n);if(sn instanceof bc||sn instanceof Bc&&sn.l_ instanceof bc)X.push(_n);else{var Ln=Hu(sn,Nn);null!=Ln&&(X.push(_n),De.set(_n,Ln))}});var ot=new pi(X);return new Ed(De.Xe(),ot,O.fieldTransforms)}function Wh(d,r,h,w,O,X){var De=d.P_(1,r,h),ot=[ec(r,w,h)],Ct=[O];if(X.length%2!=0)throw new $(G.INVALID_ARGUMENT,"Function "+r+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var sn=0;sn<X.length;sn+=2)ot.push(ec(r,X[sn])),Ct.push(X[sn+1]);for(var _n=[],Nn=new yt,Ln=ot.length-1;Ln>=0;--Ln)if(!Ko(_n,ot[Ln])){var $n=ot[Ln],si=Ct[Ln],ai=De.A_($n);if(si instanceof bc||si instanceof Bc&&si.l_ instanceof bc)_n.push($n);else{var lr=Hu(si,ai);null!=lr&&(_n.push($n),Nn.set($n,lr))}}var rr=new pi(_n);return new Ed(Nn.Xe(),rr,De.fieldTransforms)}function pu(d,r,h,w){return void 0===w&&(w=!1),Hu(h,d.P_(w?4:3,r))}function Hu(d,r){if(d instanceof Bc&&(d=d.l_),_f(d))return Uc("Unsupported field value:",r,d),Yh(d,r);if(d instanceof Zl)return function(h,w){if(!zh(w.s_))throw w.i_(h.e_+"() can only be used with update() and set()");if(!w.path)throw w.i_(h.e_+"() is not currently supported inside arrays");var O=h.n_(w);O&&w.fieldTransforms.push(O)}(d,r),null;if(r.path&&r.We.push(r.path),d instanceof Array){if(r.settings.o_&&4!==r.s_)throw r.i_("Nested arrays are not supported");return function(h,w){for(var O=[],X=0,De=0,ot=h;De<ot.length;De++){var Ct=Hu(ot[De],w.R_(X));null==Ct&&(Ct={nullValue:"NULL_VALUE"}),O.push(Ct),X++}return{arrayValue:{values:O}}}(d,r)}return function(h,w){if(null===h)return{nullValue:"NULL_VALUE"};if("number"==typeof h)return Rs(w.serializer,h);if("boolean"==typeof h)return{booleanValue:h};if("string"==typeof h)return{stringValue:h};if(h instanceof Date){var O=tt.fromDate(h);return{timestampValue:Js(w.serializer,O)}}if(h instanceof tt){var X=new tt(h.seconds,1e3*Math.floor(h.nanoseconds/1e3));return{timestampValue:Js(w.serializer,X)}}if(h instanceof Jl)return{geoPointValue:{latitude:h.latitude,longitude:h.longitude}};if(h instanceof hn)return{bytesValue:qr(w.serializer,h.q)};if(h instanceof Ca){var De=w.U,ot=h.__;if(!ot.isEqual(De))throw w.i_("Document reference is for database "+ot.projectId+"/"+ot.database+" but should be for database "+De.projectId+"/"+De.database);return{referenceValue:ar(h.__||w.U,h.f_.path)}}if(void 0===h&&w.ignoreUndefinedProperties)return null;throw w.i_("Unsupported field value: "+ae(h))}(d,r)}function Yh(d,r){var h={};return re(d)?r.path&&r.path.length>0&&r.We.push(r.path):de(d,function(w,O){var X=Hu(O,r.E_(w));null!=X&&(h[w]=X)}),{mapValue:{fields:h}}}function _f(d){return!("object"!=typeof d||null===d||d instanceof Array||d instanceof Date||d instanceof tt||d instanceof Jl||d
1instanceof hn||d instanceof Ca||d instanceof Zl)}function Uc(d,r,h){if(!_f(h)||!ke(h)){var w=ae(h);throw r.i_("an object"===w?d+" a custom object":d+" "+w)}}function ec(d,r,h){if(r instanceof Xl)return r.t_;if("string"==typeof r)return gu(d,r);throw Gu("Field path arguments must be of type string or FieldPath.",d,!1,void 0,h)}function gu(d,r,h){try{return function(O){if(O.search(du)>=0)throw new $(G.INVALID_ARGUMENT,"Invalid field path ("+O+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Ho.bind.apply(Ho,s.__spreadArrays([void 0],O.split("."))))}catch(X){throw new $(G.INVALID_ARGUMENT,"Invalid field path ("+O+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(r).t_}catch(O){throw Gu((w=O)instanceof Error?w.message:w.toString(),d,!1,void 0,h)}var w}function Gu(d,r,h,w,O){var X=w&&!w.m(),De=void 0!==O,ot="Function "+r+"() called with invalid data";h&&(ot+=" (via `toFirestore()`)");var Ct="";return(X||De)&&(Ct+=" (found",X&&(Ct+=" in field "+w),De&&(Ct+=" in document "+O),Ct+=")"),new $(G.INVALID_ARGUMENT,(ot+=". ")+d+Ct)}function Ko(d,r){return d.some(function(h){return h.isEqual(r)})}var Go=function(){function d(r){this.Ku=r,this.y_=new Map,this.mutations=[],this.V_=!1,this.p_=null,this.b_=new Set}return d.prototype.v_=function(r){return s.__awaiter(this,void 0,void 0,function(){var h,w=this;return s.__generator(this,function(O){switch(O.label){case 0:if(this.S_(),this.mutations.length>0)throw new $(G.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(X,De){return s.__awaiter(this,void 0,void 0,function(){var ot,Ct,sn,_n,Nn,Ln;return s.__generator(this,function($n){switch($n.label){case 0:return ot=N(X),Ct=Kr(ot.serializer)+"/documents",sn={documents:De.map(function(si){return ys(ot.serializer,si)})},[4,ot.ku("BatchGetDocuments",Ct,sn)];case 1:return _n=$n.sent(),Nn=new Map,_n.forEach(function(si){var lr,rr,ai=(lr=ot.serializer,"found"in(rr=si)?function(kr,Gr){P(!!Gr.found);var Ts=fr(kr,Gr.found.name),Vs=Oo(Gr.found.updateTime),co=new Is({mapValue:{fields:Gr.found.fields}});return new Kt(Ts,Vs,co,{})}(lr,rr):"missing"in rr?function(kr,Gr){P(!!Gr.missing),P(!!Gr.readTime);var Ts=fr(kr,Gr.missing),Vs=Oo(Gr.readTime);return new ni(Ts,Vs)}(lr,rr):Q());Nn.set(ai.key.toString(),ai)}),Ln=[],[2,(De.forEach(function(si){var ai=Nn.get(si.toString());P(!!ai),Ln.push(ai)}),Ln)]}})})}(this.Ku,r)];case 1:return[2,((h=O.sent()).forEach(function(X){X instanceof ni||X instanceof Kt?w.D_(X):Q()}),h)]}})})},d.prototype.set=function(r,h){this.write(h.w_(r,this.Ge(r))),this.b_.add(r.toString())},d.prototype.update=function(r,h){try{this.write(h.w_(r,this.C_(r)))}catch(w){this.p_=w}this.b_.add(r.toString())},d.prototype.delete=function(r){this.write([new io(r,this.Ge(r))]),this.b_.add(r.toString())},d.prototype.commit=function(){return s.__awaiter(this,void 0,void 0,function(){var r,h=this;return s.__generator(this,function(w){switch(w.label){case 0:if(this.S_(),this.p_)throw this.p_;return r=this.y_,this.mutations.forEach(function(O){r.delete(O.key.toString())}),r.forEach(function(O,X){var De=A.D(X);h.mutations.push(new To(De,h.Ge(De)))}),[4,function(O,X){return s.__awaiter(this,void 0,void 0,function(){var De,ot,Ct;return s.__generator(this,function(sn){switch(sn.label){case 0:return De=N(O),ot=Kr(De.serializer)+"/documents",Ct={writes:X.map(function(_n){return xs(De.serializer,_n)})},[4,De.$u("Commit",ot,Ct)];case 1:return sn.sent(),[2]}})})}(this.Ku,this.mutations)];case 1:return w.sent(),this.V_=!0,[2]}})})},d.prototype.D_=function(r){var h;if(r instanceof Kt)h=r.version;else{if(!(r instanceof ni))throw Q();h=bt.min()}var w=this.y_.get(r.key.toString());if(w){if(!h.isEqual(w))throw new $(G.ABORTED,"Document version changed between two reads.")}else this.y_.set(r.key.toString(),h)},d.prototype.Ge=function(r){var h=this.y_.get(r.toString());return!this.b_.has(r.toString())&&h?Pi.updateTime(h):Pi.ze()},d.prototype.C_=function(r){var h=this.y_.get(r.toString());if(!this.b_.has(r.toString())&&h){if(h.isEqual(bt.min()))throw new $(G.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Pi.updateTime(h)}return Pi.exists(!0)},d.prototype.write=function(r){this.S_(),this.mutations=this.mutations.concat(r)},d.prototype.S_=function(){},d}(),mu=function(){function d(r,h,w,O){this.cs=r,this.Ku=h,this.updateFunction=w,this.ls=O,this.N_=5,this.ys=new Mr(this.cs,"transaction_retry")}return d.prototype.run=function(){this.F_()},d.prototype.F_=function(){var r=this;this.ys.gn(function(){return s.__awaiter(r,void 0,void 0,function(){var h,w,O=this;return s.__generator(this,function(X){return h=new Go(this.Ku),(w=this.x_(h))&&w.then(function(De){O.cs.ws(function(){return h.commit().then(function(){O.ls.resolve(De)}).catch(function(ot){O.k_(ot)})})}).catch(function(De){O.k_(De)}),[2]})})})},d.prototype.x_=function(r){try{var h=this.updateFunction(r);return!un(h)&&h.catch&&h.then?h:(this.ls.reject(Error("Transaction callback must return a Promise")),null)}catch(w){return this.ls.reject(w),null}},d.prototype.k_=function(r){var h=this;this.N_>0&&this.M_(r)?(this.N_-=1,this.cs.ws(function(){return h.F_(),Promise.resolve()})):this.ls.reject(r)},d.prototype.M_=function(r){if("FirebaseError"===r.name){var h=r.code;return"aborted"===h||"failed-precondition"===h||!Yt(h)}return!1},d}(),zu=function(){function d(r,h){this.credentials=r,this.cs=h,this.clientId=Ft.k(),this.O_=ne
1w Li}return d.prototype.start=function(r,h,w,O){var X=this;this.L_(),this.bl=r;var De=new Li,ot=!1;return this.credentials.Hc(function(Ct){if(!ot)return ot=!0,J("FirestoreClient","Initializing. user=",Ct.uid),X.B_(h,w,O,Ct,De).then(X.O_.resolve,X.O_.reject);X.cs.Cs(function(){return function(sn,_n){return s.__awaiter(this,void 0,void 0,function(){var Nn,Ln;return s.__generator(this,function($n){switch($n.label){case 0:return(Nn=N(sn)).cs.xs(),J("RemoteStore","RemoteStore received new credentials"),Ln=La(Nn),Nn.Yu.add(3),[4,ga(Nn)];case 1:return $n.sent(),Ln&&Nn.th.set("Unknown"),[4,Nn.Gu.Jl(_n)];case 2:return $n.sent(),Nn.Yu.delete(3),[4,Ol(Nn)];case 3:return $n.sent(),[2]}})})}(X.ph,Ct)})}),this.cs.ws(function(){return X.O_.promise}),De.promise},d.prototype.enableNetwork=function(){var r=this;return this.L_(),this.cs.enqueue(function(){return r.persistence.tc(!0),(w=N(r.ph)).Yu.delete(0),Ol(w);var w})},d.prototype.B_=function(r,h,w,O,X){return s.__awaiter(this,void 0,void 0,function(){var De,ot,Ct=this;return s.__generator(this,function(sn){switch(sn.label){case 0:return sn.trys.push([0,3,,4]),[4,r.initialize(De={cs:this.cs,bl:this.bl,clientId:this.clientId,credentials:this.credentials,Wl:O,Dh:100,persistenceSettings:w})];case 1:return sn.sent(),[4,h.initialize(r,De)];case 2:return sn.sent(),this.persistence=r.persistence,this.Sh=r.Sh,this.ju=r.ju,this.ql=r.ql,this.Ku=h.Ku,this.ph=h.ph,this.fi=h.fi,this.q_=h.bh,this.q_.Us=iu.bind(null,this.fi),this.q_.js=ru.bind(null,this.fi),this.persistence.Za(function(){return s.__awaiter(Ct,void 0,void 0,function(){return s.__generator(this,function(_n){switch(_n.label){case 0:return[4,this.terminate()];case 1:return _n.sent(),[2]}})})}),X.resolve(),[3,4];case 3:if(ot=sn.sent(),X.reject(ot),!this.U_(ot))throw ot;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+ot),this.B_(new Ba,new Qa,{jl:!1},O,X))];case 4:return[2]}})})},d.prototype.U_=function(r){return"FirebaseError"===r.name?r.code===G.FAILED_PRECONDITION||r.code===G.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&r instanceof DOMException)||22===r.code||20===r.code||11===r.code},d.prototype.L_=function(){if(this.cs.ps)throw new $(G.FAILED_PRECONDITION,"The client has already been terminated.")},d.prototype.disableNetwork=function(){var r=this;return this.L_(),this.cs.enqueue(function(){return r.persistence.tc(!1),function(h){return s.__awaiter(this,void 0,void 0,function(){var w;return s.__generator(this,function(O){switch(O.label){case 0:return(w=N(h)).Yu.add(0),[4,ga(w)];case 1:return O.sent(),w.th.set("Offline"),[2]}})})}(r.ph)})},d.prototype.terminate=function(){var r=this;this.cs.Ds();var h=new Li;return this.cs.bs(function(){return s.__awaiter(r,void 0,void 0,function(){var w,O;return s.__generator(this,function(X){switch(X.label){case 0:return X.trys.push([0,4,,5]),this.ql&&this.ql.stop(),[4,dc(this.ph)];case 1:return X.sent(),[4,this.Sh.Di()];case 2:return X.sent(),[4,this.persistence.Di()];case 3:return X.sent(),this.credentials.Yc(),h.resolve(),[3,5];case 4:return w=X.sent(),O=qn(w,"Failed to shutdown persistence"),h.reject(O),[3,5];case 5:return[2]}})})}),h.promise},d.prototype.waitForPendingWrites=function(){var r=this;this.L_();var h=new Li;return this.cs.ws(function(){return function(w,O){return s.__awaiter(this,void 0,void 0,function(){var X,De,ot,Ct,sn;return s.__generator(this,function(_n){switch(_n.label){case 0:La((X=N(w)).ph)||J("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),_n.label=1;case 1:return _n.trys.push([1,3,,4]),[4,(Nn=X.ju,Ln=N(Nn),Ln.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function($n){return Ln.Sr.qo($n)}))];case 2:return-1===(De=_n.sent())?[2,void O.resolve()]:((ot=X.Lh.get(De)||[]).push(O),X.Lh.set(De,ot),[3,4]);case 3:return Ct=_n.sent(),sn=qn(Ct,"Initialization of waitForPendingWrites() operation failed"),O.reject(sn),[3,4];case 4:return[2]}var Nn,Ln})})}(r.fi,h)}),h.promise},d.prototype.listen=function(r,h,w){var O=this;this.L_();var X=new Ql(w),De=new ct(r,X,h);return this.cs.ws(function(){return xi(O.q_,De)}),function(){X.Zl(),O.cs.ws(function(){return nr(O.q_,De)})}},d.prototype.Q_=function(r){return s.__awaiter(this,void 0,void 0,function(){var h,w=this;return s.__generator(this,function(O){switch(O.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return O.sent(),h=new Li,[2,(this.cs.ws(function(){return function(X,De,ot){return s.__awaiter(this,void 0,void 0,function(){var Ct,sn,_n;return s.__generator(this,function(Nn){switch(Nn.label){case 0:return Nn.trys.push([0,2,,3]),[4,(Ln=X,$n=De,si=N(Ln),si.persistence.runTransaction("read document","readonly",function(ai){return si.Cc.Cr(ai,$n)}))];case 1:return(Ct=Nn.sent())instanceof Kt?ot.resolve(Ct):Ct instanceof ni?ot.resolve(null):ot.reject(new $(G.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.)")),[3,3];case 2:return sn=Nn.sent(),_n=qn(sn,"Failed to get document '"+De+" from cache"),ot.reject(_n),[3,3];case 3:return[2]}var Ln,$n,si})})}(w.ju,r,h)}),h.promise)]}})})},d.prototype.W_=function(r,h){return void 0===h&&(h={}),s.__awaiter(this,void 0,void 0,function(){var w,O=this;return s.__generator(this,function(X){switch(X.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return X.sent(),w=new Li,[2,(this.cs.ws(function(){return De=O.q_,ot=O.cs,Ct=r,sn=h,_n=w,Nn=new Ql({next:function($n){ot.ws(function(){return nr(De,Ln)});var si=$n.docs.has(Ct);!si&&$n.fromCache?_n.reject(new $(G.UNAVAILABLE,"Failed to get document because the client is offline.")):si&&$n.fromCache&&sn&&"server"===sn.source?_n.reject(new $(G.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.)')):_n.resolve($n)},error:function($n){return _n.reject($n)}}),Ln=new ct(Ls(Ct.path),Nn,{includeMetadataChanges:!0,Xs:!0}),xi(De,Ln);var De,ot,Ct,sn,_n,Nn,Ln}),w.promise)]}})})},d.prototype.j_=function(r){return s.__awaiter(this,void 0,void 0,function(){var h,w=this;return s.__generator(this,function(O){switch(O.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return O.sent(),h=new Li,[2,(this.cs.ws(function(){return function(X,De,ot){return s.__awaiter(this,void 0,void 0,function(){var Ct,sn,_n,Nn,Ln,$n;return s.__generator(this,function(si){switch(si.label){case 0:return si.trys.push([0,2,,3]),[4,ya(X,De,!0)];case 1:return Ct=si.sent(),sn=new nu(De,Ct.Fc),_n=sn.wh(Ct.documents),Nn=sn.yr(_n,!1),ot.resolve(Nn.snapshot),[3,3];case 2:return Ln=si.sent(),$n=qn(Ln,"Failed to execute query '"+De+" against cache"),ot.reject($n),[3,3];case 3:return[2]}})})}(w.ju,r,h)}),h.promise)]}})})},d.prototype.K_=function(r,h){return void 0===h&&(h={}),s.__awaiter(this,void 0,void 0,function(){var w,O=this;return s.__generator(this,function(X){switch(X.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return X.sent(),w=new Li,[2,(this.cs.ws(function(){return De=O.q_,ot=O.cs,Ct=r,sn=h,_n=w,Nn=new Ql({next:function($n){ot.ws(function(){return nr(De,Ln)}),$n.fromCache&&"server"===sn.source?_n.reject(new $(G.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.)')):_n.resolve($n)},error:function($n){return _n.reject($n)}}),Ln=new ct(Ct,Nn,{includeMetadataChanges:!0,Xs:!0}),xi(De,Ln);var De,ot,Ct,sn,_n,Nn,Ln}),w.promise)]}})})},d.prototype.write=function(r){var h=this;this.L_();var w=new Li;return this.cs.ws(function(){return function(O,X,De){return s.__awaiter(this,void 0,void 0,function(){var ot,Ct,sn,_n;return s.__generator(this,function(Nn){switch(Nn.label){case 0:ot=yl(O),Nn.label=1;case 1:return Nn.trys.push([1,5,,6]),[4,(Ln=ot.ju,$n=X,ai=N(Ln),lr=tt.now(),rr=$n.reduce(function(kr,Gr){return kr.add(Gr.ke
1y)},Ye()),ai.persistence.runTransaction("Locally write mutations","readwrite",function(kr){return ai.Cc.kr(kr,rr).next(function(Gr){si=Gr;for(var Ts=[],Vs=0,co=$n;Vs<co.length;Vs++){var Wo=co[Vs],ss=ts(Wo,si.get(Wo.key));null!=ss&&Ts.push(new Rr(Wo.key,ss,mt(ss.proto.mapValue),Pi.exists(!0)))}return ai.Sr.ko(kr,lr,Ts,$n)})}).then(function(kr){var Gr=kr.lr(si);return{batchId:kr.batchId,wr:Gr}}))];case 2:return Ct=Nn.sent(),ot.Sh.xi(Ct.batchId),function(Ln,$n,si){var ai=Ln.Oh[Ln.currentUser.ti()];ai||(ai=new Mt(ht)),ai=ai.ot($n,si),Ln.Oh[Ln.currentUser.ti()]=ai}(ot,Ct.batchId,De),[4,Ll(ot,Ct.wr)];case 3:return Nn.sent(),[4,Fl(ot.ph)];case 4:return Nn.sent(),[3,6];case 5:return sn=Nn.sent(),_n=qn(sn,"Failed to persist write"),De.reject(_n),[3,6];case 6:return[2]}var Ln,$n,si,ai,lr,rr})})}(h.fi,r,w)}),w.promise},d.prototype.U=function(){return this.bl.U},d.prototype.G_=function(r){var h=this;this.L_();var w=new Ql(r);return this.cs.ws(function(){return s.__awaiter(h,void 0,void 0,function(){return s.__generator(this,function(O){return[2,(X=this.q_,De=w,N(X).qs.add(De),void De.next())];var X,De})})}),function(){w.Zl(),h.cs.ws(function(){return s.__awaiter(h,void 0,void 0,function(){return s.__generator(this,function(O){return[2,(X=this.q_,De=w,void N(X).qs.delete(De))];var X,De})})})}},Object.defineProperty(d.prototype,"z_",{get:function(){return this.cs.ps},enumerable:!1,configurable:!0}),d.prototype.transaction=function(r){var h=this;this.L_();var w=new Li;return this.cs.ws(function(){return new mu(h.cs,h.Ku,r,w).run(),Promise.resolve()}),w.promise},d}();function yh(d){return function(r,h){if("object"!=typeof r||null===r)return!1;for(var w=r,O=0,X=["next","error","complete"];O<X.length;O++){var De=X[O];if(De in w&&"function"==typeof w[De])return!0}return!1}(d)}var _u=function(){function d(r,h,w,O,X){this.U=r,this.timestampsInSnapshots=h,this.H_=w,this.Y_=O,this.J_=X}return d.prototype.X_=function(r){switch(q(r)){case 0:return null;case 1:return r.booleanValue;case 2:return mr(r.integerValue||r.doubleValue);case 3:return this.Z_(r.timestampValue);case 4:return this.tf(r);case 5:return r.stringValue;case 6:return this.J_(zi(r.bytesValue));case 7:return this.ef(r.referenceValue);case 8:return this.nf(r.geoPointValue);case 9:return this.sf(r.arrayValue);case 10:return this.if(r.mapValue);default:throw Q()}},d.prototype.if=function(r){var h=this,w={};return de(r.fields||{},function(O,X){w[O]=h.X_(X)}),w},d.prototype.nf=function(r){return new Jl(mr(r.latitude),mr(r.longitude))},d.prototype.sf=function(r){var h=this;return(r.values||[]).map(function(w){return h.X_(w)})},d.prototype.tf=function(r){switch(this.H_){case"previous":var h=ue(r);return null==h?null:this.X_(h);case"estimate":return this.Z_(ve(r));default:return null}},d.prototype.Z_=function(r){var h=li(r),w=new tt(h.seconds,h.nanos);return this.timestampsInSnapshots?w:w.toDate()},d.prototype.ef=function(r){var h=ne.g(r);P(Fs(h));var w=new qe(h.get(1),h.get(3)),O=new A(h.u(5));return w.isEqual(this.U)||Me("Document "+O+" contains a document reference within a different database ("+w.projectId+"/"+w.database+") which is not supported. It will be treated as a reference in the current database ("+this.U.projectId+"/"+this.U.database+") instead."),this.Y_(O)},d}(),Wu=tn.ho,vf=function(){function d(r){var h,w,O,X,De;if(void 0===r.host){if(void 0!==r.ssl)throw new $(G.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else he("settings","non-empty string","host",r.host),this.host=r.host,fe("settings","boolean","ssl",r.ssl),this.ssl=null===(h=r.ssl)||void 0===h||h;if(Ve("settings",r,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","experimentalAutoDetectLongPolling","ignoreUndefinedProperties"]),fe("settings","object","credentials",r.credentials),this.credentials=r.credentials,fe("settings","boolean","timestampsInSnapshots",r.timestampsInSnapshots),fe("settings","boolean","ignoreUndefinedProperties",r.ignoreUndefinedProperties),!0===r.timestampsInSnapshots?Me("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===r.timestampsInSnapshots&&Me("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your co
1de to handle Timestamp objects."),this.timestampsInSnapshots=null===(w=r.timestampsInSnapshots)||void 0===w||w,this.ignoreUndefinedProperties=null!==(O=r.ignoreUndefinedProperties)&&void 0!==O&&O,fe("settings","number","cacheSizeBytes",r.cacheSizeBytes),void 0===r.cacheSizeBytes)this.cacheSizeBytes=tn._o;else{if(r.cacheSizeBytes!==Wu&&r.cacheSizeBytes<tn.lo)throw new $(G.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+tn.lo);this.cacheSizeBytes=r.cacheSizeBytes}fe("settings","boolean","experimentalForceLongPolling",r.experimentalForceLongPolling),this.experimentalForceLongPolling=null!==(X=r.experimentalForceLongPolling)&&void 0!==X&&X,fe("settings","boolean","experimentalAutoDetectLongPolling",r.experimentalAutoDetectLongPolling),this.experimentalAutoDetectLongPolling=null!==(De=r.experimentalAutoDetectLongPolling)&&void 0!==De&&De,function(ot,Ct,sn,_n){if(!0===Ct&&!0===_n)throw new $(G.INVALID_ARGUMENT,"experimentalForceLongPolling and experimentalAutoDetectLongPolling cannot be used together.")}(0,r.experimentalForceLongPolling,0,r.experimentalAutoDetectLongPolling)}return d.prototype.isEqual=function(r){return this.host===r.host&&this.ssl===r.ssl&&this.timestampsInSnapshots===r.timestampsInSnapshots&&this.credentials===r.credentials&&this.cacheSizeBytes===r.cacheSizeBytes&&this.experimentalForceLongPolling===r.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===r.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===r.ignoreUndefinedProperties},d}(),bl=function(){function d(r,h,w,O){var X=this;if(void 0===w&&(w=new Ba),void 0===O&&(O=new Qa),this.rf=w,this.af=O,this.cf=null,this.uf=new Fn,this.INTERNAL={delete:function(){return s.__awaiter(X,void 0,void 0,function(){return s.__generator(this,function(Ct){switch(Ct.label){case 0:return this.hf(),[4,this.lf.terminate()];case 1:return Ct.sent(),[2]}})})}},"object"==typeof r.options){var De=r;this.cf=De,this.__=d._f(De),this.ff=De.name,this.df=new ff(h)}else{var ot=r;if(!ot.projectId)throw new $(G.INVALID_ARGUMENT,"Must provide projectId");this.__=new qe(ot.projectId,ot.database),this.ff="[DEFAULT]",this.df=new Kl}this.wf=new vf({})}return Object.defineProperty(d.prototype,"mf",{get:function(){return this.Tf||(this.Tf=new ua(this.__,this.wf.ignoreUndefinedProperties)),this.Tf},enumerable:!1,configurable:!0}),d.prototype.settings=function(r){ee("Firestore.settings",arguments,1),ge("Firestore.settings","object",1,r),r.merge&&delete(r=Object.assign(Object.assign({},this.wf),r)).merge;var h=new vf(r);if(this.lf&&!this.wf.isEqual(h))throw new $(G.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.wf=h,void 0!==h.credentials&&(this.df=function(w){if(!w)return new Kl;switch(w.type){case"gapi":var O=w.client;return P(!("object"!=typeof O||null===O||!O.auth||!O.auth.getAuthHeaderValueForFirstParty)),new Uo(O,w.sessionIndex||"0");case"provider":return w.client;default:throw new $(G.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(h.credentials))},d.prototype.enableNetwork=function(){return this.hf(),this.lf.enableNetwork()},d.prototype.disableNetwork=function(){return this.hf(),this.lf.disableNetwork()},d.prototype.enablePersistence=function(r){var h,w;if(this.lf)throw new $(G.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var O=!1,X=!1;if(r&&(void 0!==r.experimentalTabSynchronization&&Me("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),O=null!==(w=null!==(h=r.synchronizeTabs)&&void 0!==h?h:r.experimentalTabSynchronization)&&void 0!==w&&w,X=!!r.experimentalForceOwningTab&&r.experimentalForceOwningTab,O&&X))throw new $(G.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Ef(this.rf,this.af,{jl:!0,cacheSizeBytes:this.wf.cacheSizeBytes,synchronizeTabs:O,ka:X})},d.prototype.clearPersistence=function(){return s.__awaiter(this,void 0,void 0,function(){var r,h=this;return s.__generator(this,function(w){if(void 0!==this.lf&&!this.lf.z_)throw new $(G.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return r=new Li,[2,(this.uf.bs(function(){return s.__awaiter(h,void 0,void 0,function(){var O;return s.__generator(this,function(X){switch(X.label){case 0:return X.trys.push([0,2,,3]),[4,this.rf.clearPersistence(this.__,this.ff)];case 1:return X.sent(),r.resolve(),[3,3];case 2:return O=X.sent(),r.reject(O),[3,3];case 3:return[2]}})})}),r.promise)]})})},d.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(d.prototype,"If",{get:function(){return this.hf(),this.lf.z_}
1,enumerable:!1,configurable:!0}),d.prototype.waitForPendingWrites=function(){return this.hf(),this.lf.waitForPendingWrites()},d.prototype.onSnapshotsInSync=function(r){return this.hf(),yh(r)?this.lf.G_(r):(ge("Firestore.onSnapshotsInSync","function",1,r),this.lf.G_({next:r}))},d.prototype.hf=function(){return this.lf||this.Ef(new Ba,new Qa,{jl:!1}),this.lf},d.prototype.Af=function(){return new Xe(this.__,this.ff,this.wf.host,this.wf.ssl,this.wf.experimentalForceLongPolling,this.wf.experimentalAutoDetectLongPolling)},d.prototype.Ef=function(r,h,w){var O=this.Af();return this.lf=new zu(this.df,this.uf),this.lf.start(O,r,h,w)},d._f=function(r){if(!Object.prototype.hasOwnProperty.call(r.options,"projectId"))throw new $(G.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var w=r.options.projectId;if(!w||"string"!=typeof w)throw new $(G.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new qe(w)},Object.defineProperty(d.prototype,"app",{get:function(){if(!this.cf)throw new $(G.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.cf},enumerable:!1,configurable:!0}),d.prototype.collection=function(r){return ee("Firestore.collection",arguments,1),ge("Firestore.collection","non-empty string",1,r),this.hf(),new sl(ne.g(r),this,null)},d.prototype.doc=function(r){return ee("Firestore.doc",arguments,1),ge("Firestore.doc","non-empty string",1,r),this.hf(),ja.Rf(ne.g(r),this,null)},d.prototype.collectionGroup=function(r){if(ee("Firestore.collectionGroup",arguments,1),ge("Firestore.collectionGroup","non-empty string",1,r),r.indexOf("/")>=0)throw new $(G.INVALID_ARGUMENT,"Invalid collection ID '"+r+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.hf(),new Cc((h=r,new Yi(ne.P(),h)),this,null);var h},d.prototype.runTransaction=function(r){var h=this;return ee("Firestore.runTransaction",arguments,1),ge("Firestore.runTransaction","function",1,r),this.hf().transaction(function(w){return r(new zo(h,w))})},d.prototype.batch=function(){return this.hf(),new bh(this)},Object.defineProperty(d,"logLevel",{get:function(){switch(le()){case y.LogLevel.DEBUG:return"debug";case y.LogLevel.ERROR:return"error";case y.LogLevel.SILENT:return"silent";case y.LogLevel.WARN:return"warn";case y.LogLevel.INFO:return"info";case y.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),d.setLogLevel=function(r){ee("Firestore.setLogLevel",arguments,1),Se("setLogLevel",["debug","error","silent","warn","info","verbose"],1,r),te.setLogLevel(r)},d.prototype.gf=function(){return this.wf.timestampsInSnapshots},d.prototype.Pf=function(){return this.wf},d}(),zo=function(){function d(r,h){this.yf=r,this.Vf=h}return d.prototype.get=function(r){var h=this;ee("Transaction.get",arguments,1);var w=Za("Transaction.get",r,this.yf);return this.Vf.v_([w.f_]).then(function(O){if(!O||1!==O.length)return Q();var X=O[0];if(X instanceof ni)return new ma(h.yf,w.f_,null,!1,!1,w.d_);if(X instanceof Kt)return new ma(h.yf,w.f_,X,!1,!1,w.d_);throw Q()})},d.prototype.set=function(r,h,w){K("Transaction.set",arguments,2,3);var O=Za("Transaction.set",r,this.yf);w=Ns("Transaction.set",w);var X=El(O.d_,h,w),De=Vu(this.yf.mf,"Transaction.set",O.f_,X,null!==O.d_,w);return this.Vf.set(O.f_,De),this},d.prototype.update=function(r,h,w){for(var O,X,De=[],ot=3;ot<arguments.length;ot++)De[ot-3]=arguments[ot];return"string"==typeof h||h instanceof Ho?(B("Transaction.update",arguments,3),O=Za("Transaction.update",r,this.yf),X=Wh(this.yf.mf,"Transaction.update",O.f_,h,w,De)):(ee("Transaction.update",arguments,2),O=Za("Transaction.update",r,this.yf),X=Ua(this.yf.mf,"Transaction.update",O.f_,h)),this.Vf.update(O.f_,X),this},d.prototype.delete=function(r){ee("Transaction.delete",arguments,1);var h=Za("Transaction.delete",r,this.yf);return this.Vf.delete(h.f_),this},d}(),bh=function(){function d(r){this.yf=r,this.pf=[],this.bf=!1}return d.prototype.set=function(r,h,w){K("WriteBatch.set",arguments,2,3),this.vf();var O=Za("WriteBatch.set",r,this.yf);w=Ns("WriteBatch.set",w);var X=El(O.d_,h,w),De=Vu(this.yf.mf,"WriteBatch.set",O.f_,X,null!==O.d_,w);return this.pf=this.pf.concat(De.w_(O.f_,Pi.ze())),this},d.prototype.update=function(r,h,w){for(var O,X,De=[],ot=3;ot<arguments.length;ot++)De[ot-3]=arguments[ot];return this.vf(),"string"==typeof h||h instanceof Ho?(B("WriteBatch.update",arguments,3),O=Za("WriteBatch.update",r,this.yf),X=Wh(this.yf.mf,"WriteBatch.update",O.f_,h,w,De)):(ee("WriteBatch.update",arguments,2),O=Za("WriteBatch.update",r,this.yf),X=Ua(this.yf.mf,"WriteBatch.update",O.f_,h)),this.pf=this.pf.concat(X.w_(O.f_,Pi.exists(!0))),this},d.prototype.delete=function(r){ee("WriteBatch.delete",arguments,1
1),this.vf();var h=Za("WriteBatch.delete",r,this.yf);return this.pf=this.pf.concat(new io(h.f_,Pi.ze())),this},d.prototype.commit=function(){return this.vf(),this.bf=!0,this.pf.length>0?this.yf.hf().write(this.pf):Promise.resolve()},d.prototype.vf=function(){if(this.bf)throw new $(G.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},d}(),ja=function(d){function r(h,w,O){var X=this;return(X=d.call(this,w.__,h,O)||this).f_=h,X.firestore=w,X.d_=O,X.lf=X.firestore.hf(),X}return s.__extends(r,d),r.Rf=function(h,w,O){if(h.length%2!=0)throw new $(G.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+h.R()+" has "+h.length);return new r(new A(h),w,O)},Object.defineProperty(r.prototype,"id",{get:function(){return this.f_.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parent",{get:function(){return new sl(this.f_.path.h(),this.firestore,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return this.f_.path.R()},enumerable:!1,configurable:!0}),r.prototype.collection=function(h){if(ee("DocumentReference.collection",arguments,1),ge("DocumentReference.collection","non-empty string",1,h),!h)throw new $(G.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var w=ne.g(h);return new sl(this.f_.path.child(w),this.firestore,null)},r.prototype.isEqual=function(h){if(!(h instanceof r))throw Be("isEqual","DocumentReference",1,h);return this.firestore===h.firestore&&this.f_.isEqual(h.f_)&&this.d_===h.d_},r.prototype.set=function(h,w){K("DocumentReference.set",arguments,1,2),w=Ns("DocumentReference.set",w);var O=El(this.d_,h,w),X=Vu(this.firestore.mf,"DocumentReference.set",this.f_,O,null!==this.d_,w);return this.lf.write(X.w_(this.f_,Pi.ze()))},r.prototype.update=function(h,w){for(var O,X=[],De=2;De<arguments.length;De++)X[De-2]=arguments[De];return"string"==typeof h||h instanceof Ho?(B("DocumentReference.update",arguments,2),O=Wh(this.firestore.mf,"DocumentReference.update",this.f_,h,w,X)):(ee("DocumentReference.update",arguments,1),O=Ua(this.firestore.mf,"DocumentReference.update",this.f_,h)),this.lf.write(O.w_(this.f_,Pi.exists(!0)))},r.prototype.delete=function(){return ee("DocumentReference.delete",arguments,0),this.lf.write([new io(this.f_,Pi.ze())])},r.prototype.onSnapshot=function(){for(var h,w,O,X=this,De=[],ot=0;ot<arguments.length;ot++)De[ot]=arguments[ot];K("DocumentReference.onSnapshot",arguments,1,4);var Ct={includeMetadataChanges:!1},sn=0;"object"!=typeof De[sn]||yh(De[sn])||(Ve("DocumentReference.onSnapshot",Ct=De[sn],["includeMetadataChanges"]),fe("DocumentReference.onSnapshot","boolean","includeMetadataChanges",Ct.includeMetadataChanges),sn++);var _n={includeMetadataChanges:Ct.includeMetadataChanges};if(yh(De[sn])){var Nn=De[sn];De[sn]=null===(h=Nn.next)||void 0===h?void 0:h.bind(Nn),De[sn+1]=null===(w=Nn.error)||void 0===w?void 0:w.bind(Nn),De[sn+2]=null===(O=Nn.complete)||void 0===O?void 0:O.bind(Nn)}else ge("DocumentReference.onSnapshot","function",sn,De[sn]),Fe("DocumentReference.onSnapshot","function",sn+1,De[sn+1]),Fe("DocumentReference.onSnapshot","function",sn+2,De[sn+2]);var Ln={next:function($n){De[sn]&&De[sn](X.Sf($n))},error:De[sn+1],complete:De[sn+2]};return this.lf.listen(Ls(this.f_.path),_n,Ln)},r.prototype.get=function(h){var w=this;K("DocumentReference.get",arguments,0,1),bu("DocumentReference.get",h);var O=this.firestore.hf();return h&&"cache"===h.source?O.Q_(this.f_).then(function(X){return new ma(w.firestore,w.f_,X,!0,X instanceof Kt&&X.Je,w.d_)}):O.W_(this.f_,h).then(function(X){return w.Sf(X)})},r.prototype.withConverter=function(h){return new r(this.f_,this.firestore,h)},r.prototype.Sf=function(h){var w=h.docs.get(this.f_);return new ma(this.firestore,this.f_,w,h.fromCache,h.hasPendingWrites,this.d_)},r}(Ca),wl=function(){function d(r,h){this.hasPendingWrites=r,this.fromCache=h}return d.prototype.isEqual=function(r){return this.hasPendingWrites===r.hasPendingWrites&&this.fromCache===r.fromCache},d}(),ma=function(){function d(r,h,w,O,X,De){this.yf=r,this.f_=h,this.Df=w,this.Cf=O,this.Nf=X,this.d_=De}return d.prototype.data=function(r){var h=this;if(K("DocumentSnapshot.data",arguments,0,1),r=ir("DocumentSnapshot.data",r),this.Df){if(this.d_){var w=new wh(this.yf,this.f_,this.Df,this.Cf,this.Nf,null);return this.d_.fromFirestore(w,r)}return new _u(this.yf.__,this.yf.gf(),r.serverTimestamps||"none",function(O){return new ja(O,h.yf,null)},function(O){return new Jt(O)}).X_(this.Df.rn())}},d.prototype.get=function(r,h){var w=this;if(K("DocumentSnapshot.get",arguments,1,2),h=ir("DocumentSnapshot.get",h),this.Df){var O=this.Df.data().field(ec("DocumentSnapshot.get",r,this.f_));if(null!==O)return new _u(this.yf.__,this.yf.gf(),h.serverTimestamps||"none",function(X){return new ja(X,w.yf,w.d_)},function(X){return new Jt(X)}).X_(O)}},Object.defineProperty(d.prototype,"id",{get:function(){return this.f_.path._()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"ref",{get:function(){return new ja(this.f_,this.yf,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"exists",{get:function(){return null!==this.Df},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"metadata",{get:function(){return new wl(this.Nf,this.Cf)},enumerable:!1,configurable:!0}),d.prototype.isEqual=function(r){if(!(r instanceof d))throw Be("isEqual","DocumentSnapshot",1,r);return this.yf===r.yf&&this.Cf===r.Cf&&this.f_.isEqual(r.f_)&&(null===this.Df?null===r.Df:this.Df.isEqual(r.Df))&&this.d_===r.d_},d}(),wh=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.prototype.data=function(h){return d.prototype.data.call(this,h)},r}(ma);function Kh(d,r,h,w,O,X,De){var ot;if(O.p()){if("array-contains"===X||"array-contains-any"===X)throw new $(G.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+X+"' queries on FieldPath.documentId().");if("in"===X||"not-in"===X){Dd(De,X);for(var Ct=[],sn=0,_n=De;sn<_n.length;sn++)Ct.push(Eh(w,d,_n[sn]));ot={arrayValue:{values:Ct}}}else ot=Eh(w,d,De)}else"in"!==X&&"not-in"!==X&&"array-contains-any"!==X||Dd(De,X),ot=pu(h,r,De,"in"===X||"not-in"===X);var Ln=Ur.create(O,X,ot);return function($n,si){if(si.hn()){var ai=Xr($n);if(null!==ai&&!ai.isEqual(si.field))throw new $(G.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+ai.toString()+"' and '"+si.field.toString()+"'");var lr=_i($n);null!==lr&&Sd(0,si.field,lr)}var rr=function(kr,Gr){for(var Ts=0,Vs=kr.filters;Ts<Vs.length;Ts++){var co=Vs[Ts];if(Gr.indexOf(co.op)>=0)return co.op}return null}($n,function(kr){switch(kr){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(si.op));if(null!==rr)throw new $(G.INVALID_ARGUMENT,rr===si.op?"Invalid query. You cannot use more than one '"+si.op.toString()+"' filter.":"Invalid query. You cannot use '"+si.op.toString()+"' filters with '"+rr.toString()+"' filters.")}(d,Ln),Ln}function Cd(d,r,h){if(null!==d.startAt)throw new $(G.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==d.endAt)throw new $(G.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var w=new Ji(r,h);return function(O,X){if(null===_i(O)){var De=Xr(O);null!==De&&Sd(0,De,X.field)}}(d,w),w}function Eh(d,r,h){if("string"==typeof h){if(""===h)throw new $(G.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!ns(r)&&-1!==h.indexOf("/"))throw new $(G.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+h+"' contains a '/' character.");var w=r.path.child(ne.g(h));if(!A.F(w))throw new $(G.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+w+"' is not because it has an odd number of segments ("+w.length+").");return hr(d,new A(w))}if(h instanceof Ca)return hr(d,h.f_);throw new $(G.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+ae(h)+".")}function Dd(d,r){if(!Array.isArray(d)||0===d.length)throw new $(G.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+r.toString()+"' filters.");if(d.length>10)throw new $(G.INVALID_ARGUMENT,"Invalid Query. '"+r.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===r||"array-contains-any"===r){if(d.indexOf(null)>=0)throw new $(G.INVALID_ARGUMENT,"Invalid Query. '"+r.toString()+"' filters cannot contain 'null' in the value array.");if(d.filter(function(h){return Number.isNaN(h)}).length>0)throw new $(G.INVALID_ARGUMENT,"Invalid Query. '"+r.toString()+"' filters cannot contain 'NaN' in the value array.")}}function Sd(d,r,h){if(!h.isEqual(r))throw new $(G.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+r.toString()+"' and so you must also use '"+r.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+h.toString()+"' instead.")}function vu(d){if(ji(d)&&0===d.on.length)throw new $(G.UNIMPLEMENT
1ED,"limitToLast() queries require specifying at least one orderBy() clause")}var Cc=function(){function d(r,h,w){this.Ff=r,this.firestore=h,this.d_=w}return d.prototype.where=function(r,h,w){ee("Query.where",arguments,3),Ce("Query.where",3,w);var ot,sn,O=Se("Query.where",["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],2,h),X=ec("Query.where",r),De=Kh(this.Ff,"Query.where",this.firestore.mf,this.firestore.__,X,O,w);return new d((sn=(ot=this.Ff).filters.concat([De]),new Yi(ot.path,ot.collectionGroup,ot.on.slice(),sn,ot.limit,ot.an,ot.startAt,ot.endAt)),this.firestore,this.d_)},d.prototype.orderBy=function(r,h){var w;if(K("Query.orderBy",arguments,1,2),Fe("Query.orderBy","non-empty string",2,h),void 0===h||"asc"===h)w="asc";else{if("desc"!==h)throw new $(G.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+h+"', expected 'asc' or 'desc'.");w="desc"}var De,Ct,O=ec("Query.orderBy",r),X=Cd(this.Ff,O,w);return new d((Ct=(De=this.Ff).on.concat([X]),new Yi(De.path,De.collectionGroup,Ct,De.filters.slice(),De.limit,De.an,De.startAt,De.endAt)),this.firestore,this.d_)},d.prototype.limit=function(r){return ee("Query.limit",arguments,1),ge("Query.limit","number",1,r),ut("Query.limit",1,r),new d(js(this.Ff,r,"F"),this.firestore,this.d_)},d.prototype.limitToLast=function(r){return ee("Query.limitToLast",arguments,1),ge("Query.limitToLast","number",1,r),ut("Query.limitToLast",1,r),new d(js(this.Ff,r,"L"),this.firestore,this.d_)},d.prototype.startAt=function(r){for(var h=[],w=1;w<arguments.length;w++)h[w-1]=arguments[w];B("Query.startAt",arguments,1);var O=this.xf("Query.startAt",r,h,!0);return new d(_o(this.Ff,O),this.firestore,this.d_)},d.prototype.startAfter=function(r){for(var h=[],w=1;w<arguments.length;w++)h[w-1]=arguments[w];B("Query.startAfter",arguments,1);var O=this.xf("Query.startAfter",r,h,!1);return new d(_o(this.Ff,O),this.firestore,this.d_)},d.prototype.endBefore=function(r){for(var h=[],w=1;w<arguments.length;w++)h[w-1]=arguments[w];B("Query.endBefore",arguments,1);var O=this.xf("Query.endBefore",r,h,!0);return new d(Yo(this.Ff,O),this.firestore,this.d_)},d.prototype.endAt=function(r){for(var h=[],w=1;w<arguments.length;w++)h[w-1]=arguments[w];B("Query.endAt",arguments,1);var O=this.xf("Query.endAt",r,h,!1);return new d(Yo(this.Ff,O),this.firestore,this.d_)},d.prototype.isEqual=function(r){if(!(r instanceof d))throw Be("isEqual","Query",1,r);return this.firestore===r.firestore&&oo(this.Ff,r.Ff)&&this.d_===r.d_},d.prototype.withConverter=function(r){return new d(this.Ff,this.firestore,r)},d.prototype.xf=function(r,h,w,O){if(Ce(r,1,h),h instanceof ma)return ee(r,s.__spreadArrays([h],w),1),function(De,ot,Ct,sn,_n){if(!sn)throw new $(G.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+Ct+"().");for(var Nn=[],Ln=0,$n=cs(De);Ln<$n.length;Ln++){var si=$n[Ln];if(si.field.p())Nn.push(hr(ot,sn.key));else{var ai=sn.field(si.field);if(it(ai))throw new $(G.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+si.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===ai){var lr=si.field.R();throw new $(G.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+lr+"' (used as the orderBy) does not exist.")}Nn.push(ai)}}return new In(Nn,_n)}(this.Ff,this.firestore.__,r,h.Df,O);var X=[h].concat(w);return function(De,ot,Ct,sn,_n,Nn){var Ln=De.on;if(_n.length>Ln.length)throw new $(G.INVALID_ARGUMENT,"Too many arguments provided to "+sn+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var $n=[],si=0;si<_n.length;si++){var ai=_n[si];if(Ln[si].field.p()){if("string"!=typeof ai)throw new $(G.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+sn+"(), but got a "+typeof ai);if(!ns(De)&&-1!==ai.indexOf("/"))throw new $(G.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+sn+"() must be a plain document ID, but '"+ai+"' contains a slash.");var lr=De.path.child(ne.g(ai));if(!A.F(lr))throw new $(G.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+sn+"() must result in a valid document path, but '"+lr+"' is not because it c
1ontains an odd number of segments.");var rr=new A(lr);$n.push(hr(ot,rr))}else{var kr=pu(Ct,sn,ai);$n.push(kr)}}return new In($n,Nn)}(this.Ff,this.firestore.__,this.firestore.mf,r,X,O)},d.prototype.onSnapshot=function(){for(var r,h,w,O=this,X=[],De=0;De<arguments.length;De++)X[De]=arguments[De];K("Query.onSnapshot",arguments,1,4);var ot={},Ct=0;if("object"!=typeof X[Ct]||yh(X[Ct])||(Ve("Query.onSnapshot",ot=X[Ct],["includeMetadataChanges"]),fe("Query.onSnapshot","boolean","includeMetadataChanges",ot.includeMetadataChanges),Ct++),yh(X[Ct])){var sn=X[Ct];X[Ct]=null===(r=sn.next)||void 0===r?void 0:r.bind(sn),X[Ct+1]=null===(h=sn.error)||void 0===h?void 0:h.bind(sn),X[Ct+2]=null===(w=sn.complete)||void 0===w?void 0:w.bind(sn)}else ge("Query.onSnapshot","function",Ct,X[Ct]),Fe("Query.onSnapshot","function",Ct+1,X[Ct+1]),Fe("Query.onSnapshot","function",Ct+2,X[Ct+2]);var _n={next:function(Nn){X[Ct]&&X[Ct](new yu(O.firestore,O.Ff,Nn,O.d_))},error:X[Ct+1],complete:X[Ct+2]};return vu(this.Ff),this.firestore.hf().listen(this.Ff,ot,_n)},d.prototype.get=function(r){var h=this;K("Query.get",arguments,0,1),bu("Query.get",r),vu(this.Ff);var w=this.firestore.hf();return(r&&"cache"===r.source?w.j_(this.Ff):w.K_(this.Ff,r)).then(function(O){return new yu(h.firestore,h.Ff,O,h.d_)})},d}(),yu=function(){function d(r,h,w,O){this.yf=r,this.$f=h,this.kf=w,this.d_=O,this.Mf=null,this.Of=null,this.metadata=new wl(w.hasPendingWrites,w.fromCache)}return Object.defineProperty(d.prototype,"docs",{get:function(){var r=[];return this.forEach(function(h){return r.push(h)}),r},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"empty",{get:function(){return this.kf.docs.m()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"size",{get:function(){return this.kf.docs.size},enumerable:!1,configurable:!0}),d.prototype.forEach=function(r,h){var w=this;K("QuerySnapshot.forEach",arguments,1,2),ge("QuerySnapshot.forEach","function",1,r),this.kf.docs.forEach(function(O){r.call(h,w.Lf(O,w.metadata.fromCache,w.kf.Wt.has(O.key)))})},Object.defineProperty(d.prototype,"query",{get:function(){return new Cc(this.$f,this.yf,this.d_)},enumerable:!1,configurable:!0}),d.prototype.docChanges=function(r){r&&(Ve("QuerySnapshot.docChanges",r,["includeMetadataChanges"]),fe("QuerySnapshot.docChanges","boolean","includeMetadataChanges",r.includeMetadataChanges));var h=!(!r||!r.includeMetadataChanges);if(h&&this.kf.Kt)throw new $(G.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Mf&&this.Of===h||(this.Mf=function(w,O,X){if(w.Qt.m()){var De=0;return w.docChanges.map(function(Ct){return{type:"added",doc:X(Ct.doc,w.fromCache,w.Wt.has(Ct.doc.key)),oldIndex:-1,newIndex:De++}})}var ot=w.Qt;return w.docChanges.filter(function(Ct){return O||3!==Ct.type}).map(function(Ct){var sn=X(Ct.doc,w.fromCache,w.Wt.has(Ct.doc.key)),_n=-1,Nn=-1;return 0!==Ct.type&&(_n=ot.indexOf(Ct.doc.key),ot=ot.delete(Ct.doc.key)),1!==Ct.type&&(Nn=(ot=ot.add(Ct.doc)).indexOf(Ct.doc.key)),{type:tc(Ct.type),doc:sn,oldIndex:_n,newIndex:Nn}})}(this.kf,h,this.Lf.bind(this)),this.Of=h),this.Mf},d.prototype.isEqual=function(r){if(!(r instanceof d))throw Be("isEqual","QuerySnapshot",1,r);return this.yf===r.yf&&oo(this.$f,r.$f)&&this.kf.isEqual(r.kf)&&this.d_===r.d_},d.prototype.Lf=function(r,h,w){return new wh(this.yf,r.key,r,h,w,this.d_)},d}(),sl=function(d){function r(h,w,O){var X=this;if((X=d.call(this,Ls(h),w,O)||this).Bf=h,h.length%2!=1)throw new $(G.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+h.R()+" has "+h.length);return X}return s.__extends(r,d),Object.defineProperty(r.prototype,"id",{get:function(){return this.Ff.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parent",{get:function(){var h=this.Ff.path.h();return h.m()?null:new ja(new A(h),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return this.Ff.path.R()}
1,enumerable:!1,configurable:!0}),r.prototype.doc=function(h){K("CollectionReference.doc",arguments,0,1),0===arguments.length&&(h=Ft.k()),ge("CollectionReference.doc","non-empty string",1,h);var w=ne.g(h);return ja.Rf(this.Ff.path.child(w),this.firestore,this.d_)},r.prototype.add=function(h){ee("CollectionReference.add",arguments,1);var w=this.d_?this.d_.toFirestore(h):h;ge("CollectionReference.add","object",1,w);var O=this.doc();return new ja(O.f_,this.firestore,null).set(w).then(function(){return O})},r.prototype.withConverter=function(h){return new r(this.Bf,this.firestore,h)},r}(Cc);function Ns(d,r){if(void 0===r)return{merge:!1};if(Ve(d,r,["merge","mergeFields"]),fe(d,"boolean","merge",r.merge),void 0!==(X=r.mergeFields)&&function(ot,Ct,sn,_n,Nn){if(!(_n instanceof Array))throw new $(G.INVALID_ARGUMENT,"Function "+ot+"() requires its "+Ct+" option to be an array, but it was: "+ae(_n));for(var Ln=0;Ln<_n.length;++Ln)if(!Nn(_n[Ln]))throw new $(G.INVALID_ARGUMENT,"Function "+ot+"() requires all "+Ct+" elements to be a string or a FieldPath, but the value at index "+Ln+" was: "+ae(_n[Ln]))}(d,"mergeFields",0,X,function(h){return"string"==typeof h||h instanceof Ho}),void 0!==r.mergeFields&&void 0!==r.merge)throw new $(G.INVALID_ARGUMENT,"Invalid options passed to function "+d+'(): You cannot specify both "merge" and "mergeFields".');var X;return r}function ir(d,r){return void 0===r?{}:(Ve(d,r,["serverTimestamps"]),Ie(d,0,"serverTimestamps",r.serverTimestamps,["estimate","previous","none"]),r)}function bu(d,r){Fe(d,"object",1,r),r&&(Ve(d,r,["source"]),Ie(d,0,"source",r.source,["default","server","cache"]))}function Za(d,r,h){if(r instanceof Ca){if(r.firestore!==h)throw new $(G.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return r}throw Be(d,"DocumentReference",1,r)}function tc(d){switch(d){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Q()}}function El(d,r,h){return d?h&&(h.merge||h.mergeFields)?d.toFirestore(r,h):d.toFirestore(r):r}var Da=function(d){function r(){return null!==d&&d.apply(this,arguments)||this}return s.__extends(r,d),r.serverTimestamp=function(){R("FieldValue.serverTimestamp",arguments);var h=new ju("serverTimestamp");return h.e_="FieldValue.serverTimestamp",new r(h)},r.delete=function(){R("FieldValue.delete",arguments);var h=new bc("deleteField");return h.e_="FieldValue.delete",new r(h)},r.arrayUnion=function(){for(var h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];B("FieldValue.arrayUnion",arguments,1);var O=function(){for(var X=[],De=0;De<arguments.length;De++)X[De]=arguments[De];return B("arrayUnion()",arguments,1),new wc("arrayUnion",X)}.apply(void 0,h);return O.e_="FieldValue.arrayUnion",new r(O)},r.arrayRemove=function(){for(var h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];B("FieldValue.arrayRemove",arguments,1);var O=function(){for(var X=[],De=0;De<arguments.length;De++)X[De]=arguments[De];return B("arrayRemove()",arguments,1),new Ec("arrayRemove",X)}.apply(void 0,h);return O.e_="FieldValue.arrayRemove",new r(O)},r.increment=function(h){ge("FieldValue.increment","number",1,h),ee("FieldValue.increment",arguments,1);var w=new Hh("increment",h);return w.e_="FieldValue.increment",new r(w)},r.prototype.isEqual=function(h){return this.l_.isEqual(h.l_)},r}(Bc),xp={Firestore:bl,GeoPoint:Jl,Timestamp:tt,Blob:Jt,Transaction:zo,WriteBatch:bh,DocumentReference:ja,DocumentSnapshot:ma,Query:Cc,QueryDocumentSnapshot:wh,QuerySnapshot:yu,CollectionReference:sl,FieldPath:Ho,FieldValue:Da,setLogLevel:bl.setLogLevel,CACHE_SIZE_UNLIMITED:Wu};function Ip(d){d.INTERNAL.registerComponent(new L.Component("firestore",function(w){return O=w.getProvider("app").getImmediate(),X=w.getProvider("auth-internal"),De=new Qa,ot=new Nc(De),new bl(O,X,ot,De);var O,X,De,ot},"PUBLIC").setServiceProps(Object.assign({},xp))),d.registerVersion("@firebase/firestore","1.18.0")}Ip(W.default),Z.__PRIVATE_registerFirestore=Ip},5011:(Qt,Z,S)=>{"use strict";var s=S(9278),_=S(2472),y=S(6355);function j(re){return re&&"object"==typeof re&&"default"in re?re:{default:re}}var D=j(s),L={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",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},ce=function(re){function V(ne,E,M){var A=re.call(this,E)||this;return Object.setPrototypeOf(A,V.prototype),A.code=ne,A.details=M,A}return _.__extends(V,re),V}(Error),$=function(){function re(V,ne){var E=this;this.auth=null,this.messaging=null,this.auth=V.getImmediate({optional:!0}),this.messaging=ne.getImmediate({optional:!0}),this.auth||V.get().then(function(M){return E.auth=M},function(){}),this.messaging||ne.get().then(function(M){return E.messaging=M},function(){})}return re.prototype.getAuthToken=function(){return _.__awaiter(this,void 0,void 0,function(){var V;return _.__generator(this,function(E){switch(E.label){case 0:if(!this.auth)return[2,void 0];E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(V=E.sent())?[2,V.accessToken]:[2,void 0];case 3:return E.sent(),[2,void 0];case 4:return[2]}})})},re.prototype.getInstanceIdToken=function(){return _.__awaiter(this,void 0,void 0,function(){return _.__generator(this,function(V){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(ne){return[2,void 0]}return[2]})})},re.prototype.getContext=function(){return _.__awaiter(this,void 0,void 0,function(){var V,ne;return _.__generator(this,function(E){switch(E.label){case 0:return[4,this.getAuthToken()];case 1:return V=E.sent(),[4,this.getInstanceIdToken()];case 2:return ne=E.sent(),[2,{authToken:V,instanceIdToken:ne}]}})})},re}();function J(re,V){var ne={};for(var E in re)re.hasOwnProperty(E)&&(ne[E]=V(re[E]));return ne}var Me=function(){function re(){}return re.prototype.encode=function(V){var ne=this;if(null==V)return null;if(V instanceof Number&&(V=V.valueOf()),"number"==typeof V&&isFinite(V)||!0===V||!1===V||"[object String]"===Object.prototype.toString.call(V))return V;if(Array.isArray(V))return V.map(function(E){return ne.encode(E)});if("function"==typeof V||"object"==typeof V)return J(V,function(E){return ne.encode(E)});throw new Error("Data cannot be encoded in JSON: "+V)},re.prototype.decode=function(V){var ne=this;if(null==V)return V;if(V["@type"])switch(V["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var E=Number(V.value);if(isNaN(E))throw new Error("Data cannot be decoded from JSON: "+V);return E;default:throw new Error("Data cannot be decoded from JSON: "+V)}return Array.isArray(V)?V.map(function(M){return ne.decode(M)}):"function"==typeof V||"object"==typeof V?J(V,function(M){return ne.decode(M)}):V},re}(),me=function(){function re(V,ne,E,M,A){var R=this;void 0===M&&(M="us-central1"),this.app_=V,this.fetchImpl=A,this.serializer=new Me,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(R.deleteService())}},this.contextProvider=new $(ne,E),this.cancelAllRequests=new Promise(function(B){R.deleteService=function(){return B()}});try{var ee=new URL(M);this.customDomain=ee.origin,this.region="us-central1"}catch(B){this.customDomain=null,this.region=M}}return Object.defineProperty(re.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),re.prototype._url=function(V){var ne=this.app_.options.projectId;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+ne+"/"+this.region+"/"+V:null!==this.customDomain?this.customDomain+"/"+V:"https://"+this.region+"-"+ne+".cloudfunctions.net/"+V},re.prototype.useFunctionsEmulator=function(V){this.emulatorOrigin=V},re.prototype.httpsCallable=function(V,ne){var E=this;return function(M){return E.call(V,M,ne||{})}},re.prototype.postJSON=function(V,ne,E){return _.__awaiter(this,void 0,void 0,function(){var M,R;return _.__generator(this,function(B){switch(B.label){case 0:E["Content-Type"]="application/json",B.label=1;case 1:return B.trys.push([1,3,,4]),[4,this.fetchImpl(V,{method:"POST",body:JSON.stringify(ne),headers:E})];case 2:return M=B.sent(),[3,4];case 3:return B.sent(),[2,{status:0,json:null}];case 4:R=null,B.label=5;case 5:return B.trys.push([5,7,,8]),[4,M.json()];case 6:return R=B.sent(),[3,8];case 7:return B.sent(),[3,8];case 8:return[2,{status:M.status,json:R}]}})})},re.prototype.call=function(V,ne,E){return _.__awaiter(this,void 0,void 0,function(){var M,A,R,ee,K,ge,Fe,he,fe,Ie;return _.__generator(this,function(pe){switch(pe.label){case 0:return M=this._url(V),ne=this.serializer.encode(ne),A={data:ne},R={},[4,this.contextProvider.getContext()];case 1:return(ee=pe.sent()).authToken&&(R.Authorization="Bearer "+ee.authToken),ee.instanceIdToken&&(R["Firebase-Instance-ID-Token"]=ee.instanceIdToken),K=function Re(re){var V,ne=new Promise(function(E,M){V=setTimeout(function(){M(new ce("deadline-exceeded","deadline-exceeded"))},re)});return{timer:V,promise:ne}}(E.timeout||7e4),ge=K.timer,Fe=K.promise,[4,Promise.race([Q(ge,this.postJSON(M,A,R)),Fe,Q(ge,this.cancelAllRequests)])];case 2:if(!(he=pe.sent()))throw new ce("cancelled","Firebase Functions instance was deleted.");
1if(fe=function G(re,V,ne){var E=function W(re){if(re>=200&&re<300)return"ok";switch(re){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(re),M=E,A=void 0;try{var R=V&&V.error;if(R){var ee=R.status;if("string"==typeof ee){if(!L[ee])return new ce("internal","internal");E=L[ee],M=ee}var B=R.message;"string"==typeof B&&(M=B),void 0!==(A=R.details)&&(A=ne.decode(A))}}catch(K){}return"ok"===E?null:new ce(E,M,A)}(he.status,he.json,this.serializer),fe)throw fe;if(!he.json)throw new ce("internal","Response is not valid JSON object.");if(void 0===(Ie=he.json.data)&&(Ie=he.json.result),void 0===Ie)throw new ce("internal","Response is missing data field.");return[2,{data:this.serializer.decode(Ie)}]}})})},re}();function Q(re,V){return _.__awaiter(this,void 0,void 0,function(){var ne;return _.__generator(this,function(E){switch(E.label){case 0:return[4,V];case 1:return ne=E.sent(),clearTimeout(re),[2,ne]}})})}(function N(re,V){var ne={Functions:me};re.INTERNAL.registerComponent(new y.Component("functions",function E(M,A){var R=M.getProvider("app").getImmediate(),ee=M.getProvider("auth-internal"),B=M.getProvider("messaging");return new me(R,ee,B,A,V)},"PUBLIC").setServiceProps(ne).setMultipleInstances(!0))})(D.default,fetch.bind(self)),D.default.registerVersion("@firebase/functions","0.5.1")},8660:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{registerInstallations:()=>it});var s=S(9278),_=S(6355),D=function(){return D=Object.assign||function(ve){for(var at,q=1,xe=arguments.length;q<xe;q++)for(var _t in at=arguments[q])Object.prototype.hasOwnProperty.call(at,_t)&&(ve[_t]=at[_t]);return ve},D.apply(this,arguments)};function $(ue,ve,at,q){return new(at||(at=Promise))(function(_t,Xt){function Un(li){try{vi(q.next(li))}catch(mr){Xt(mr)}}function Qn(li){try{vi(q.throw(li))}catch(mr){Xt(mr)}}function vi(li){li.done?_t(li.value):function xe(_t){return _t instanceof at?_t:new at(function(Xt){Xt(_t)})}(li.value).then(Un,Qn)}vi((q=q.apply(ue,ve||[])).next())})}function te(ue,ve){var q,xe,_t,Xt,at={label:0,sent:function(){if(1&_t[0])throw _t[1];return _t[1]},trys:[],ops:[]};return Xt={next:Un(0),throw:Un(1),return:Un(2)},"function"==typeof Symbol&&(Xt[Symbol.iterator]=function(){return this}),Xt;function Un(vi){return function(li){return function Qn(vi){if(q)throw new TypeError("Generator is already executing.");for(;at;)try{if(q=1,xe&&(_t=2&vi[0]?xe.return:vi[0]?xe.throw||((_t=xe.return)&&_t.call(xe),0):xe.next)&&!(_t=_t.call(xe,vi[1])).done)return _t;switch(xe=0,_t&&(vi=[2&vi[0],_t.value]),vi[0]){case 0:case 1:_t=vi;break;case 4:return at.label++,{value:vi[1],done:!1};case 5:at.label++,xe=vi[1],vi=[0];continue;case 7:vi=at.ops.pop(),at.trys.pop();continue;default:if(!(_t=(_t=at.trys).length>0&&_t[_t.length-1])&&(6===vi[0]||2===vi[0])){at=0;continue}if(3===vi[0]&&(!_t||vi[1]>_t[0]&&vi[1]<_t[3])){at.label=vi[1];break}if(6===vi[0]&&at.label<_t[1]){at.label=_t[1],_t=vi;break}if(_t&&at.label<_t[2]){at.label=_t[2],at.ops.push(vi);break}_t[2]&&at.ops.pop(),at.trys.pop();continue}vi=ve.call(ue,at)}catch(li){vi=[6,li],xe=0}finally{q=_t=0}if(5&vi[0])throw vi[1];return{value:vi[0]?vi[1]:void 0,done:!0}}([vi,li])}}}function Me(ue){var ve="function"==typeof Symbol&&Symbol.iterator,at=ve&&ue[ve],q=0;if(at)return at.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&q>=ue.length&&(ue=void 0),{value:ue&&ue[q++],done:!ue}}};throw new TypeError(ve?"Object is not iterable.":"Symbol.iterator is not defined.")}function Re(ue,ve){var at="function"==typeof Symbol&&ue[Symbol.iterator];if(!at)return ue;var xe,Xt,q=at.call(ue),_t=[];try{for(;(void 0===ve||ve-- >0)&&!(xe=q.next()).done;)_t.push(xe.value)}catch(Un){Xt={error:Un}}finally{try{xe&&!xe.done&&(at=q.return)&&at.call(q)}finally{if(Xt)throw Xt.error}}return _t}var pe,A=S(1270),R=S(2940),B="0.4.17",ge="w:"+B,ke=((pe={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',pe["not-registered"]="Firebase Installation is not registered.",pe["installation-not-found"]="Firebase Installation not found.",pe["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',pe["app-offline"]="Could not process request. Application offline.",pe["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",pe),ae=new A.ErrorFactory("installations","Installations",ke);function Ce(ue){return ue instanceof A.FirebaseError&&ue.code.includes("request-failed")}function Ve(ue){return"https://firebaseinstallations.googleapis.com/v1/projects/"+ue.projectId+"/installations"}
1function Be(ue){return{token:ue.token,requestStatus:2,expiresIn:Ft(ue.expiresIn),creationTime:Date.now()}}function ut(ue,ve){return $(this,void 0,void 0,function(){var at,q;return te(this,function(xe){switch(xe.label){case 0:return[4,ve.json()];case 1:return at=xe.sent(),[2,ae.create("request-failed",{requestName:ue,serverCode:(q=at.error).code,serverMessage:q.message,serverStatus:q.status})]}})})}function Ge(ue){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":ue.apiKey})}function wt(ue,ve){var at=ve.refreshToken,q=Ge(ue);return q.append("Authorization",function ht(ue){return"FIS_v2 "+ue}(at)),q}function Ot(ue){return $(this,void 0,void 0,function(){var ve;return te(this,function(at){switch(at.label){case 0:return[4,ue()];case 1:return(ve=at.sent()).status>=500&&ve.status<600?[2,ue()]:[2,ve]}})})}function Ft(ue){return Number(ue.replace("s","000"))}function Ht(ue,ve){var at=ve.fid;return $(this,void 0,void 0,function(){var q,xe,Xt,Un,Qn;return te(this,function(li){switch(li.label){case 0:return q=Ve(ue),xe=Ge(ue),Xt={method:"POST",headers:xe,body:JSON.stringify({fid:at,authVersion:"FIS_v2",appId:ue.appId,sdkVersion:ge})},[4,Ot(function(){return fetch(q,Xt)})];case 1:return(Un=li.sent()).ok?[4,Un.json()]:[3,3];case 2:return[2,{fid:(Qn=li.sent()).fid||at,registrationStatus:2,refreshToken:Qn.refreshToken,authToken:Be(Qn.authToken)}];case 3:return[4,ut("Create Installation",Un)];case 4:throw li.sent()}})})}function jt(ue){return new Promise(function(ve){setTimeout(ve,ue)})}var hn=/^[cdef][\w-]{21}$/;function ln(){try{var ue=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(ue),ue[0]=112+ue[0]%16;var at=function Jt(ue){return function cn(ue){var ve=btoa(String.fromCharCode.apply(String,function me(){for(var ue=[],ve=0;ve<arguments.length;ve++)ue=ue.concat(Re(arguments[ve]));return ue}(ue)));return ve.replace(/\+/g,"-").replace(/\//g,"_")}(ue).substr(0,22)}(ue);return hn.test(at)?at:""}catch(q){return""}}function Xe(ue){return ue.appName+"!"+ue.appId}var qe=new Map;function Pe(ue,ve){var at=Xe(ue);un(at,ve),function It(ue,ve){var at=Rt();at&&at.postMessage({key:ue,fid:ve}),Wt()}(at,ve)}function un(ue,ve){var at,q,xe=qe.get(ue);if(xe)try{for(var _t=Me(xe),Xt=_t.next();!Xt.done;Xt=_t.next())(0,Xt.value)(ve)}catch(Qn){at={error:Qn}}finally{try{Xt&&!Xt.done&&(q=_t.return)&&q.call(_t)}finally{if(at)throw at.error}}}var Et=null;function Rt(){return!Et&&"BroadcastChannel"in self&&((Et=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(ue){un(ue.data.key,ue.data.fid)}),Et}function Wt(){0===qe.size&&Et&&(Et.close(),Et=null)}var Gn="firebase-installations-store",Zn=null;function zn(){return Zn||(Zn=(0,R.openDb)("firebase-installations-database",1,function(ue){0===ue.oldVersion&&ue.createObjectStore(Gn)})),Zn}function nn(ue,ve){return $(this,void 0,void 0,function(){var at,q,xe,_t,Xt;return te(this,function(Un){switch(Un.label){case 0:return at=Xe(ue),[4,zn()];case 1:return q=Un.sent(),xe=q.transaction(Gn,"readwrite"),[4,(_t=xe.objectStore(Gn)).get(at)];case 2:return Xt=Un.sent(),[4,_t.put(ve,at)];case 3:return Un.sent(),[4,xe.complete];case 4:return Un.sent(),(!Xt||Xt.fid!==ve.fid)&&Pe(ue,ve.fid),[2,ve]}})})}function Vn(ue){return $(this,void 0,void 0,function(){var ve,at,q;return te(this,function(xe){switch(xe.label){case 0:return ve=Xe(ue),[4,zn()];case 1:return at=xe.sent(),[4,(q=at.transaction(Gn,"readwrite")).objectStore(Gn).delete(ve)];case 2:return xe.sent(),[4,q.complete];case 3:return xe.sent(),[2]}})})}function Yt(ue,ve){return $(this,void 0,void 0,function(){var at,q,xe,_t,Xt,Un;return te(this,function(Qn){switch(Qn.label){case 0:return at=Xe(ue),[4,zn()];case 1:return q=Qn.sent(),xe=q.transaction(Gn,"readwrite"),[4,(_t=xe.objectStore(Gn)).get(at)];case 2:return Xt=Qn.sent(),void 0!==(Un=ve(Xt))?[3,4]:[4,_t.delete(at)];case 3:return Qn.sent(),[3,6];case 4:return[4,_t.put(Un,at)];case 5:Qn.sent(),Qn.label=6;case 6:return[4,xe.complete];case 7:return Qn.sent(),Un&&(!Xt||Xt.fid!==Un.fid)&&Pe(ue,Un.fid),[2,Un]}})})}function Rn(ue){return $(this,void 0,void 0,function(){var ve,at,q;return te(this,function(xe){switch(xe.label){case 0:return[4,Yt(ue,function(_t){var Xt=function Mt(ue){return Lt(ue||{fid:ln(),registrationStatus:0})}(_t),Un=function kt(ue,ve){if(0===ve.registrationStatus){if(!navigator.onLine)return{installationEntry:ve,registrationPromise:Promise.reject(ae.create("app-offline"))};var q={fid:ve.fid,registrationStatus:1,registrationTime:Date.now()},xe=function We(ue,ve){return $(this,void 0,void 0,function(){var at,q;return te(this,function(xe){switch(xe.label){case 0:return xe.trys.push([0,2,,7]),[4,Ht(ue,ve)];case 1:return at=xe.sent(),[2,nn(ue,at)];case 2:return Ce(q=xe.sent())&&409===q.serverCode?[4,Vn(ue)]:[3,4];case 3:return xe.sent(),[3,6];case 4:return[4,nn(ue,{fid:ve.fid,registrationStatus:0})];case 5:xe.sent(),xe.label=6;case 6:throw q;case 7:return[2]}})})}(ue,q);return{installationEntry:q,registrationPromise:xe}}return 1===ve.registrationStatus?{installationEntry:ve,registrationPromise:Ue(ue)}:{installationEntry:ve}}(ue,Xt);return ve=Un.registrationPromise,Un.installationEntry})];case 1:return""!==(at=xe.sent()).fid?[3,3]:(q={},[4,ve]);case 2:return[2,(q.installationEntry=xe.sent(),q)];case 3:return[2,{installationEntry:at,registrationPromise:ve}]}})})}function Ue(ue){return $(this,void 0,void 0,function(){var ve,at,q,xe;return te(this,function(_t){switch(_t.label){case 0:return[4,Qe(ue)];case 1:ve=_t.sent(),_t.label=2;case 2:return 1!==ve.registrationStatus?[3,5]:[4,jt(100)];case 3:return _t.sent(),[4,Qe(ue)];case 4:return ve=_t.sent(),[3,2];case 5:return 0!==ve.registrationStatus?[3,7]:[4,Rn(ue)];case 6:return at=_t.sent(),q=at.installationEntry,(xe=at.registrationPromise)?[2,xe]:[2,q];case 7:return[2,ve]}})})}function Qe(ue){return Yt(ue,function(ve){if(!ve)throw ae.create("installation-not-found");return Lt(ve)})}function Lt(ue){return function xt(ue){return 1===ue.registrationStatus&&ue.registrationTime+1e4<Date.now()}(ue)?{fid:ue.fid,registrationStatus:0}:ue}function Gt(ue,ve){var at=ue.appConfig,q=ue.platformLoggerProvider;return $(this,void 0,void 0,function(){var xe,_t,Xt,Qn,vi;return te(this,function(zi){switch(zi.label){case 0:return xe=function Ke(ue,ve){var at=ve.fid;return Ve(ue)+"/"+at+"/authTokens:generate"}(at,ve),_t=wt(at,ve),(Xt=q.getImmediate({optional:!0}))&&_t.append("x-firebase-client",Xt.getPlatformInfoString()),Qn={method:"POST",headers:_t,body:JSON.stringify({installation:{sdkVersion:ge}})},[4,Ot(function(){return fetch(xe,Qn)})];case 1:return(vi=zi.sent()).ok?[4,vi.json()]:[3,3];case 2:return[2,Be(zi.sent())];case 3:return[4,ut("Generate Auth Token",vi)];case 4:throw zi.sent()}})})}function Ne(ue,ve){return void 0===ve&&(ve=!1),$(this,void 0,void 0,function(){var at,q,_t;return te(this,function(Xt){switch(Xt.label){case 0:return[4,Yt(ue.appConfig,function(Un){if(!je(Un))throw ae.create("not-registered");var Qn=Un.authToken;if(!ve&&function Tt(ue){return 2===ue.requestStatus&&!function rn(ue){var ve=Date.now();
1return ve<ue.creationTime||ue.creationTime+ue.expiresIn<ve+36e5}(ue)}(Qn))return Un;if(1===Qn.requestStatus)return at=function Ae(ue,ve){return $(this,void 0,void 0,function(){var at,q;return te(this,function(xe){switch(xe.label){case 0:return[4,Oe(ue.appConfig)];case 1:at=xe.sent(),xe.label=2;case 2:return 1!==at.authToken.requestStatus?[3,5]:[4,jt(100)];case 3:return xe.sent(),[4,Oe(ue.appConfig)];case 4:return at=xe.sent(),[3,2];case 5:return 0===(q=at.authToken).requestStatus?[2,Ne(ue,ve)]:[2,q]}})})}(ue,ve),Un;if(!navigator.onLine)throw ae.create("app-offline");var vi=function On(ue){var ve={requestStatus:1,requestTime:Date.now()};return D(D({},ue),{authToken:ve})}(Un);return at=function Ye(ue,ve){return $(this,void 0,void 0,function(){var at,q,xe;return te(this,function(_t){switch(_t.label){case 0:return _t.trys.push([0,3,,8]),[4,Gt(ue,ve)];case 1:return at=_t.sent(),xe=D(D({},ve),{authToken:at}),[4,nn(ue.appConfig,xe)];case 2:return _t.sent(),[2,at];case 3:return!Ce(q=_t.sent())||401!==q.serverCode&&404!==q.serverCode?[3,5]:[4,Vn(ue.appConfig)];case 4:return _t.sent(),[3,7];case 5:return xe=D(D({},ve),{authToken:{requestStatus:0}}),[4,nn(ue.appConfig,xe)];case 6:_t.sent(),_t.label=7;case 7:throw q;case 8:return[2]}})})}(ue,vi),vi})];case 1:return q=Xt.sent(),at?[4,at]:[3,3];case 2:return _t=Xt.sent(),[3,4];case 3:_t=q.authToken,Xt.label=4;case 4:return[2,_t]}})})}function Oe(ue){return Yt(ue,function(ve){if(!je(ve))throw ae.create("not-registered");return function xn(ue){return 1===ue.requestStatus&&ue.requestTime+1e4<Date.now()}(ve.authToken)?D(D({},ve),{authToken:{requestStatus:0}}):ve})}function je(ue){return void 0!==ue&&2===ue.registrationStatus}function mi(ue){return $(this,void 0,void 0,function(){var ve;return te(this,function(at){switch(at.label){case 0:return[4,Rn(ue)];case 1:return(ve=at.sent().registrationPromise)?[4,ve]:[3,3];case 2:at.sent(),at.label=3;case 3:return[2]}})})}function fi(ue,ve){return $(this,void 0,void 0,function(){var at,q,xe,_t;return te(this,function(Xt){switch(Xt.label){case 0:return at=function Ki(ue,ve){var at=ve.fid;return Ve(ue)+"/"+at}(ue,ve),q=wt(ue,ve),xe={method:"DELETE",headers:q},[4,Ot(function(){return fetch(at,xe)})];case 1:return(_t=Xt.sent()).ok?[3,3]:[4,ut("Delete Installation",_t)];case 2:throw Xt.sent();case 3:return[2]}})})}function rt(ue){return ae.create("missing-app-config-values",{valueName:ue})}function it(ue){ue.INTERNAL.registerComponent(new _.Component("installations",function(at){var q=at.getProvider("app").getImmediate(),xe=function En(ue){var ve,at;if(!ue||!ue.options)throw rt("App Configuration");if(!ue.name)throw rt("App Name");try{for(var xe=Me(["projectId","apiKey","appId"]),_t=xe.next();!_t.done;_t=xe.next()){var Xt=_t.value;if(!ue.options[Xt])throw rt(Xt)}}catch(Un){ve={error:Un}}finally{try{_t&&!_t.done&&(at=xe.return)&&at.call(xe)}finally{if(ve)throw ve.error}}return{appName:ue.name,projectId:ue.options.projectId,apiKey:ue.options.apiKey,appId:ue.options.appId}}(q),Xt={appConfig:xe,platformLoggerProvider:at.getProvider("platform-logger")},Un={app:q,getId:function(){return function Xn(ue){return $(this,void 0,void 0,function(){var ve,at,q;return te(this,function(xe){switch(xe.label){case 0:return[4,Rn(ue.appConfig)];case 1:return ve=xe.sent(),at=ve.installationEntry,(q=ve.registrationPromise)?q.catch(console.error):Ne(ue).catch(console.error),[2,at.fid]}})})}(Xt)},getToken:function(Qn){return function Ai(ue,ve){return void 0===ve&&(ve=!1),$(this,void 0,void 0,function(){return te(this,function(q){switch(q.label){case 0:return[4,mi(ue.appConfig)];case 1:return q.sent(),[4,Ne(ue,ve)];case 2:return[2,q.sent().token]}})})}(Xt,Qn)},delete:function(){return function pn(ue){return $(this,void 0,void 0,function(){var ve,at;return te(this,function(q){switch(q.label){case 0:return[4,Yt(ve=ue.appConfig,function(xe){if(!xe||0!==xe.registrationStatus)return xe})];case 1:if(!(at=q.sent()))return[3,6];if(1!==at.registrationStatus)return[3,2];throw ae.create("delete-pending-registration");case 2:if(2!==at.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw ae.create("app-offline");case 3:return[4,fi(ve,at)];case 4:return q.sent(),[4,Vn(ve)];case 5:q.sent(),q.label=6;case 6:return[2]}})})}(Xt)},onIdChange:function(Qn){return function gn(ue,ve){var at=ue.appConfig;return function tt(ue,ve){Rt();var at=Xe(ue),q=qe.get(at);q||qe.set(at,q=new Set),q.add(ve)}(at,ve),function(){!function bt(ue,ve){var at=Xe(ue),q=qe.get(at);
1!q||(q.delete(ve),0===q.size&&qe.delete(at),Wt())}(at,ve)}}(Xt,Qn)}};return Un},"PUBLIC")),ue.registerVersion("@firebase/installations",B)}it(s.default)},4003:(Qt,Z,S)=>{"use strict";function s(){for(var le=0,J=0,Me=arguments.length;J<Me;J++)le+=arguments[J].length;var Re=Array(le),me=0;for(J=0;J<Me;J++)for(var Q=arguments[J],P=0,N=Q.length;P<N;P++,me++)Re[me]=Q[P];return Re}S.r(Z),S.d(Z,{LogLevel:()=>j,Logger:()=>G,setLogLevel:()=>$,setUserLogHandler:()=>te});var _,y=[],j=(()=>{return(le=j||(j={}))[le.DEBUG=0]="DEBUG",le[le.VERBOSE=1]="VERBOSE",le[le.INFO=2]="INFO",le[le.WARN=3]="WARN",le[le.ERROR=4]="ERROR",le[le.SILENT=5]="SILENT",j;var le})(),D={debug:j.DEBUG,verbose:j.VERBOSE,info:j.INFO,warn:j.WARN,error:j.ERROR,silent:j.SILENT},L=j.INFO,ce=((_={})[j.DEBUG]="log",_[j.VERBOSE]="log",_[j.INFO]="info",_[j.WARN]="warn",_[j.ERROR]="error",_),W=function(le,J){for(var Me=[],Re=2;Re<arguments.length;Re++)Me[Re-2]=arguments[Re];if(!(J<le.logLevel)){var me=(new Date).toISOString(),Q=ce[J];if(!Q)throw new Error("Attempted to log a message with an invalid logType (value: "+J+")");console[Q].apply(console,s(["["+me+"] "+le.name+":"],Me))}},G=function(){function le(J){this.name=J,this._logLevel=L,this._logHandler=W,this._userLogHandler=null,y.push(this)}return Object.defineProperty(le.prototype,"logLevel",{get:function(){return this._logLevel},set:function(J){if(!(J in j))throw new TypeError('Invalid value "'+J+'" assigned to `logLevel`');this._logLevel=J},enumerable:!1,configurable:!0}),le.prototype.setLogLevel=function(J){this._logLevel="string"==typeof J?D[J]:J},Object.defineProperty(le.prototype,"logHandler",{get:function(){return this._logHandler},set:function(J){if("function"!=typeof J)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=J},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(J){this._userLogHandler=J},enumerable:!1,configurable:!0}),le.prototype.debug=function(){for(var J=[],Me=0;Me<arguments.length;Me++)J[Me]=arguments[Me];this._userLogHandler&&this._userLogHandler.apply(this,s([this,j.DEBUG],J)),this._logHandler.apply(this,s([this,j.DEBUG],J))},le.prototype.log=function(){for(var J=[],Me=0;Me<arguments.length;Me++)J[Me]=arguments[Me];this._userLogHandler&&this._userLogHandler.apply(this,s([this,j.VERBOSE],J)),this._logHandler.apply(this,s([this,j.VERBOSE],J))},le.prototype.info=function(){for(var J=[],Me=0;Me<arguments.length;Me++)J[Me]=arguments[Me];this._userLogHandler&&this._userLogHandler.apply(this,s([this,j.INFO],J)),this._logHandler.apply(this,s([this,j.INFO],J))},le.prototype.warn=function(){for(var J=[],Me=0;Me<arguments.length;Me++)J[Me]=arguments[Me];this._userLogHandler&&this._userLogHandler.apply(this,s([this,j.WARN],J)),this._logHandler.apply(this,s([this,j.WARN],J))},le.prototype.error=function(){for(var J=[],Me=0;Me<arguments.length;Me++)J[Me]=arguments[Me];this._userLogHandler&&this._userLogHandler.apply(this,s([this,j.ERROR],J)),this._logHandler.apply(this,s([this,j.ERROR],J))},le}();function $(le){y.forEach(function(J){J.setLogLevel(le)})}function te(le,J){for(var Me=function(P){var N=null;J&&J.level&&(N=D[J.level]),P.userLogHandler=null===le?null:function(Y,de){for(var re=[],V=2;V<arguments.length;V++)re[V-2]=arguments[V];var ne=re.map(function(E){if(null==E)return null;if("string"==typeof E)return E;if("number"==typeof E||"boolean"==typeof E)return E.toString();if(E instanceof Error)return E.message;try{return JSON.stringify(E)}catch(M){return null}}).filter(function(E){return E}).join(" ");de>=(null!=N?N:Y.logLevel)&&le({level:j[de].toLowerCase(),message:ne,args:re,type:Y.name})}},Re=0,me=y;Re<me.length;Re++)Me(me[Re])}},6101:(Qt,Z,S)=>{"use strict";S.r(Z),S(8660);var _=S(6355),y=S(1270),L=function(){return L=Object.assign||function(gn){for(var En,rt=1,it=arguments.length;rt<it;rt++)for(var ue in En=arguments[rt])Object.prototype.hasOwnProperty.call(En,ue)&&(gn[ue]=En[ue]);return gn},L.apply(this,arguments)};function te(pn,gn,En,rt){return new(En||(En=Promise))(function(ue,ve){function at(_t){try{xe(rt.next(_t))}catch(Xt){ve(Xt)}}function q(_t){try{xe(rt.throw(_t))}catch(Xt){ve(Xt)}}function xe(_t){_t.done?ue(_t.value):function it(ue){return ue instanceof En?ue:new En(function(ve){ve(ue)})}(_t.value).then(at,q)}xe((rt=rt.apply(pn,gn||[])).next())})}function le(pn,gn){var rt,it,ue,ve,En={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ve={next:at(0),throw:at(1),return:at(2)},"function"==typeof Symbol&&(ve[Symbol.iterator]=function(){return this}),ve;function at(xe){return function(_t){return function q(xe){if(rt)throw new TypeError("Generator is already executing.");for(;En;)try{if(rt=1,it&&(ue=2&xe[0]?it.return:xe[0]?it.throw||((ue=it.return)&&ue.call(it),0):it.next)&&!(ue=ue.call(it,xe[1])).done)return ue;switch(it=0,ue&&(xe=[2&xe[0],ue.value]),xe[0]){case 0:case 1:ue=xe;break;case 4:return En.label++,{value:xe[1],done:!1};
1case 5:En.label++,it=xe[1],xe=[0];continue;case 7:xe=En.ops.pop(),En.trys.pop();continue;default:if(!(ue=(ue=En.trys).length>0&&ue[ue.length-1])&&(6===xe[0]||2===xe[0])){En=0;continue}if(3===xe[0]&&(!ue||xe[1]>ue[0]&&xe[1]<ue[3])){En.label=xe[1];break}if(6===xe[0]&&En.label<ue[1]){En.label=ue[1],ue=xe;break}if(ue&&En.label<ue[2]){En.label=ue[2],En.ops.push(xe);break}ue[2]&&En.ops.pop(),En.trys.pop();continue}xe=gn.call(pn,En)}catch(_t){xe=[6,_t],it=0}finally{rt=ue=0}if(5&xe[0])throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}([xe,_t])}}}function Re(pn){var gn="function"==typeof Symbol&&Symbol.iterator,En=gn&&pn[gn],rt=0;if(En)return En.call(pn);if(pn&&"number"==typeof pn.length)return{next:function(){return pn&&rt>=pn.length&&(pn=void 0),{value:pn&&pn[rt++],done:!pn}}};throw new TypeError(gn?"Object is not iterable.":"Symbol.iterator is not defined.")}function me(pn,gn){var En="function"==typeof Symbol&&pn[Symbol.iterator];if(!En)return pn;var it,ve,rt=En.call(pn),ue=[];try{for(;(void 0===gn||gn-- >0)&&!(it=rt.next()).done;)ue.push(it.value)}catch(at){ve={error:at}}finally{try{it&&!it.done&&(En=rt.return)&&En.call(rt)}finally{if(ve)throw ve.error}}return ue}var B,R=S(2940),ee=S(9278),K=((B={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',B["only-available-in-window"]="This method is available in a Window context.",B["only-available-in-sw"]="This method is available in a service worker context.",B["permission-default"]="The notification permission was not granted and dismissed instead.",B["permission-blocked"]="The notification permission was not granted and blocked instead.",B["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",B["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",B["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",B["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",B["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",B["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",B["token-update-no-token"]="FCM returned no token when updating the user to push.",B["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.",B["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",B["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",B["invalid-vapid-key"]="The public VAPID key must be a string.",B["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.",B),ge=new y.ErrorFactory("messaging","Messaging",K),fe="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Se="FCM_MSG",pe="google.c.a.c_id",Be=(()=>{return(pn=Be||(Be={})).PUSH_RECEIVED="push-received",pn.NOTIFICATION_CLICKED="notification-clicked",Be;var pn})();function ut(pn){var gn=new Uint8Array(pn),En=btoa(String.fromCharCode.apply(String,function Q(){for(var pn=[],gn=0;gn<arguments.length;gn++)pn=pn.concat(me(arguments[gn]));return pn}(gn)));return En.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ge(pn){for(var En=(pn+"=".repeat((4-pn.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),rt=atob(En),it=new Uint8Array(rt.length),ue=0;ue<rt.length;++ue)it[ue]=rt.charCodeAt(ue);return it}var wt="fcm_token_details_db",Ft="fcm_token_object_Store";function ht(pn){return te(this,void 0,void 0,function(){var rt,ue=this;return le(this,function(ve){switch(ve.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(!ve.sent().map(function(at){return at.name}).includes(wt))return[2,null];ve.label=2;case 2:return rt=null,[4,(0,R.openDb)(wt,5,function(at){return te(ue,void 0,void 0,function(){var q,xe,_t,Xt;return le(this,function(Un){switch(Un.label){case 0:return at.oldVersion<2?[2]:at.objectStoreNames.contains(Ft)?[4,(q=at.transaction.objectStore(Ft)).index("fcmSenderId").get(pn)]:[2];case 1:return xe=Un.sent(),[4,q.clear()];case 2:if(Un.sent(),!xe)return[2];if(2===at.oldVersion){if(!(_t=xe).auth||!_t.p256dh||!_t.endpoint)return[2];rt={token:_t.fcmToken,createTime:null!==(Xt=_t.createTime)&&void 0!==Xt?Xt:Date.now(),subscriptionOptions:{auth:_t.auth,p256dh:_t.p256dh,endpoint:_t.endpoint,swScope:_t.swScope,vapidKey:"string"==typeof _t.vapidKey?_t.vapidKey:ut(_t.vapidKey)}}}else(3===at.oldVersion||4===at.oldVersion)&&(rt={token:(_t=xe).fcmToken,createTime:_t.createTime,subscriptionOptions:{auth:ut(_t.auth),p256dh:ut(_t.p256dh),endpoint:_t.endpoint,swScope:_t.swScope,vapidKey:ut(_t.vapidKey)}});return[2]}})})})];case 3:return ve.sent().close(),[4,(0,R.deleteDb)(wt)];case 4:return ve.sent(),[4,(0,R.deleteDb)("fcm_vapid_details_db")];case 5:return ve.sent(),[4,(0,R.deleteDb)("undefined")];case 6:return ve.sent(),[2,Ht(rt)?rt:null]}})})}function Ht(pn){if(!pn||!pn.subscriptionOptions)return!1;var gn=pn.subscriptionOptions;return"number"==typeof pn.createTime&&pn.createTime>0&&"string"==typeof pn.token&&pn.token.length>0&&"string"==typeof gn.auth&&gn.auth.length>0&&"string"==typeof gn.p256dh&&gn.p256dh.length>0&&"string"==typeof gn.endpoint&&gn.endpoint.length>0&&"string"==typeof gn.swScope&&gn.swScope.length>0&&"string"==typeof gn.vapidKey&&gn.vapidKey.length>0}var hn="firebase-messaging-store",vn=null;function ln(){return vn||(vn=(0,R.openDb)("firebase-messaging-database",1,function(pn){0===pn.oldVersion&&pn.createObjectStore(hn)})),vn}function Jt(pn){return te(this,void 0,void 0,function(){var gn,rt,it;return le(this,function(ue){switch(ue.label){case 0:return gn=Pe(pn),[4,ln()];case 1:return[4,ue.sent().transaction(hn).objectStore(hn).get(gn)];case 2:return(rt=ue.sent())?[2,rt]:[3,3];case 3:return[4,ht(pn.appConfig.senderId)];case 4:return(it=ue.sent())?[4,Xe(pn,it)]:[3,6];case 5:return ue.sent(),[2,it];case 6:return[2]}})})}function Xe(pn,gn){return te(this,void 0,void 0,function(){var En,rt,it;return le(this,function(ue){switch(ue.label){case 0:return En=Pe(pn),[4,ln()];case 1:return rt=ue.sent(),[4,(it=rt.transaction(hn,"readwrite")).objectStore(hn).put(gn,En)];case 2:return ue.sent(),[4,it.complete];case 3:return ue.sent(),[2,gn]}})})}function qe(pn){return te(this,void 0,void 0,function(){var gn,En,rt;return le(this,function(it){switch(it.label){case 0:return gn=Pe(pn),[4,ln()];case 1:return En=it.sent(),[4,(rt=En.transaction(hn,"readwrite")).objectStore(hn).delete(gn)];case 2:return it.sent(),[4,rt.complete];case 3:return it.sent(),[2]}})})}function Pe(pn){return pn.appConfig.appId}function tt(pn,gn){return te(this,void 0,void 0,function(){var En,rt,it,ue,at;return le(this,function(xe){switch(xe.label){case 0:return[4,Et(pn)];case 1:En=xe.sent(),rt=Rt(gn),it={method:"POST",headers:En,body:JSON.stringify(rt)},xe.label=2;case 2:return xe.trys.push([2,5,,6]),[4,fetch(It(pn.appConfig),it)];case 3:return[4,xe.sent().json()];case 4:return ue=xe.sent(),[3,6];case 5:throw at=xe.sent(),ge.create("token-subscribe-failed",{errorInfo:at});case 6:if(ue.error)throw ge.create("token-subscribe-failed",{errorInfo:ue.error.message});if(!ue.token)throw ge.create("token-subscribe-no-token");return[2,ue.token]}})})}function bt(pn,gn){return te(this,void 0,void 0,function(){var En,rt,it,ue,at;return le(this,function(xe){switch(xe.label){case 0:return[4,Et(pn)];case 1:En=xe.sent(),rt=Rt(gn.subscriptionOptions),it={method:"PATCH",headers:En,body:JSON.stringify(rt)},xe.label=2;case 2:return xe.trys.push([2,5,,6]),[4,fetch(It(pn.appConfig)+"/"+gn.token,it)];case 3:return[4,xe.sent().json()];case 4:return ue=xe.sent(),[3,6];case 5:throw at=xe.sent(),ge.create("token-update-failed",{errorInfo:at});case 6:if(ue.error)throw ge.create("token-update-failed",{errorInfo:ue.error.message});if(!ue.token)throw ge.create("token-update-no-token");return[2,ue.token]}})})}function un(pn,gn){return te(this,void 0,void 0,function(){var En,rt,ue,at;return le(this,function(q){switch(q.label){case 0:return[4,Et(pn)];case 1:En=q.sent(),rt={method:"DELETE",headers:En},q.label=2;case 2:return q.trys.push([2,5,,6]),[4,fetch(It(pn.appConfig)+"/"+gn,rt)];case 3:return[4,q.sent().json()];case 4:if((ue=q.sent()).error)throw ge.create("token-unsubscribe-failed",{errorInfo:ue.error.message});return[3,6];case 5:throw at=q.sent(),ge.create("token-unsubscribe-failed",{errorInfo:at});case 6:return[2]}})})}function It(pn){return"https://fcmregistrations.googleapis.com/v1/projects/"+pn.projectId+"/registrations"}function Et(pn){var gn=pn.appConfig,En=pn.installations;return te(this,void 0,void 0,function(){var rt;return le(this,function(it){switch(it.label){case 0:return[4,En.getToken()];case 1:return rt=it.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":gn.apiKey,"x-goog-firebase-installations-auth":"FIS "+rt})]}})})}function Rt(pn){var it=pn.vapidKey,ue={web:{endpoint:pn.endpoint,auth:pn.auth,p256dh:pn.p256dh}};return it!==fe&&(ue.web.applicationPubKey=it),ue}function Pt(pn,gn,En){return te(this,void 0,void 0,function(){var rt,it,ue,ve;return le(this,function(at){switch(at.label){case 0:if("granted"!==Notification.permission)throw ge.create("permission-blocked");return[4,zn(gn,En)];case 1:return rt=at.sent(),[4,Jt(pn)];case 2:return it=at.sent(),ue={vapidKey:En,swScope:gn.scope,endpoint:rt.endpoint,auth:ut(rt.getKey("auth")),p256dh:ut(rt.getKey("p256dh"))},it?[3,3]:[2,Zn(pn,ue)];case 3:if(function nn(pn,gn){return gn.vapidKey===pn.vapidKey&&gn.endpoint===pn.endpoint&&gn.auth===pn.auth&&gn.p256dh===pn.p256dh}(it.subscriptionOptions,ue))return[3,8];at.label=4;case 4:return at.trys.push([4,6,,7]),[4,un(pn,it.token)];case 5:return at.sent(),[3,7];case 6:return ve=at.sent(),console.warn(ve),[3,7];case 7:return[2,Zn(pn,ue)];case 8:return Date.now()>=it.createTime+6048e5?[2,Gn({token:it.token,createTime:Date.now(),subscriptionOptions:ue},pn,gn)]:[2,it.token];case 9:return[2]}})})}function Dn(pn,gn){return te(this,void 0,void 0,function(){var En,rt;return le(this,function(it){switch(it.label){case 0:return[4,Jt(pn)];case 1:return(En=it.sent())?[4,un(pn,En.token)]:[3,4];case 2:return it.sent(),[4,qe(pn)];case 3:it.sent(),it.label=4;case 4:return[4,gn.pushManager.getSubscription()];case 5:return(rt=it.sent())?[2,rt.unsubscribe()]:[2,!0]}})})}function Gn(pn,gn,En){return te(this,void 0,void 0,function(){var rt,it,ue;return le(this,function(ve){switch(ve.label){case 0:return ve.trys.push([0,3,,5]),[4,bt(gn,pn)];case 1:return rt=ve.sent(),it=L(L({},pn),{token:rt,createTime:Date.now()}),[4,Xe(gn,it)];case 2:return ve.sent(),[2,rt];case 3:return ue=ve.sent(),[4,Dn(gn,En)];case 4:throw ve.sent(),ue;case 5:return[2]}})})}function Zn(pn,gn){return te(this,void 0,void 0,function(){var En,rt;return le(this,function(it){switch(it.label){case 0:return[4,tt(pn,gn)];case 1:return En=it.sent(),rt={token:En,createTime:Date.now(),subscriptionOptions:gn},[4,Xe(pn,rt)];case 2:return it.sent(),[2,rt.token]}})})}function zn(pn,gn){return te(this,void 0,void 0,function(){var En;return le(this,function(rt){switch(rt.label){case 0:return[4,pn.pushManager.getSubscription()];case 1:return(En=rt.sent())?[2,En]:[2,pn.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Ge(gn)})]}})})}function kt(pn){return"object"==typeof pn&&!!pn&&pe in pn}function We(pn){return new Promise(function(gn){setTimeout(gn,pn)})}var Ue=function(){function pn(gn){var En=this;
1this.firebaseDependencies=gn,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(rt){rt.waitUntil(En.onPush(rt))}),self.addEventListener("pushsubscriptionchange",function(rt){rt.waitUntil(En.onSubChange(rt))}),self.addEventListener("notificationclick",function(rt){rt.waitUntil(En.onNotificationClick(rt))})}return Object.defineProperty(pn.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),pn.prototype.setBackgroundMessageHandler=function(gn){if(this.isOnBackgroundMessageUsed=!1,!gn||"function"!=typeof gn)throw ge.create("invalid-bg-handler");this.bgMessageHandler=gn},pn.prototype.onBackgroundMessage=function(gn){var En=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=gn,function(){En.bgMessageHandler=null}},pn.prototype.getToken=function(){var gn,En;return te(this,void 0,void 0,function(){var rt;return le(this,function(it){switch(it.label){case 0:return this.vapidKey?[3,2]:[4,Jt(this.firebaseDependencies)];case 1:rt=it.sent(),this.vapidKey=null!==(En=null===(gn=null==rt?void 0:rt.subscriptionOptions)||void 0===gn?void 0:gn.vapidKey)&&void 0!==En?En:fe,it.label=2;case 2:return[2,Pt(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},pn.prototype.deleteToken=function(){return Dn(this.firebaseDependencies,self.registration)},pn.prototype.requestPermission=function(){throw ge.create("only-available-in-window")},pn.prototype.usePublicVapidKey=function(gn){if(null!==this.vapidKey)throw ge.create("use-vapid-key-after-get-token");if("string"!=typeof gn||0===gn.length)throw ge.create("invalid-vapid-key");this.vapidKey=gn},pn.prototype.useServiceWorker=function(){throw ge.create("only-available-in-window")},pn.prototype.onMessage=function(){throw ge.create("only-available-in-window")},pn.prototype.onTokenRefresh=function(){throw ge.create("only-available-in-window")},pn.prototype.onPush=function(gn){return te(this,void 0,void 0,function(){var En,rt,it,ue;return le(this,function(ve){switch(ve.label){case 0:return En=function Lt(pn){var gn=pn.data;if(!gn)return null;try{return gn.json()}catch(En){return null}}(gn),En?[4,Ne()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function Gt(pn){return pn.some(function(gn){return"visible"===gn.visibilityState&&!gn.url.startsWith("chrome-extension://")})}(rt=ve.sent())?[2,Ke(rt,En)]:(it=!1,En.notification?[4,Ae(Qe(En))]:[3,3]);case 2:ve.sent(),it=!0,ve.label=3;case 3:return!0===it&&!1===this.isOnBackgroundMessageUsed||this.bgMessageHandler&&(ue=function Vn(pn){var gn={from:pn.from,collapseKey:pn.collapse_key};return function Yt(pn,gn){if(gn.notification){pn.notification={};var En=gn.notification.title;En&&(pn.notification.title=En);var rt=gn.notification.body;rt&&(pn.notification.body=rt);var it=gn.notification.image;it&&(pn.notification.image=it)}}(gn,pn),function Rn(pn,gn){!gn.data||(pn.data=gn.data)}(gn,pn),function Mt(pn,gn){if(gn.fcmOptions){pn.fcmOptions={};var En=gn.fcmOptions.link;En&&(pn.fcmOptions.link=En);var rt=gn.fcmOptions.analytics_label;rt&&(pn.fcmOptions.analyticsLabel=rt)}}(gn,pn),gn}(En),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(ue):this.bgMessageHandler.next(ue)),[2]}})})},pn.prototype.onSubChange=function(gn){var En,rt;return te(this,void 0,void 0,function(){var ue;return le(this,function(ve){switch(ve.label){case 0:return gn.newSubscription?[3,2]:[4,Dn(this.firebaseDependencies,self.registration)];case 1:case 5:return ve.sent(),[2];case 2:return[4,Jt(this.firebaseDependencies)];case 3:return ue=ve.sent(),[4,Dn(this.firebaseDependencies,self.registration)];case 4:return ve.sent(),[4,Pt(this.firebaseDependencies,self.registration,null!==(rt=null===(En=null==ue?void 0:ue.subscriptionOptions)||void 0===En?void 0:En.vapidKey)&&void 0!==rt?rt:fe)]}})})},pn.prototype.onNotificationClick=function(gn){var En,rt;return te(this,void 0,void 0,function(){var it,ue,ve,at,q;return le(this,function(xe){switch(xe.label){case 0:return(it=null===(rt=null===(En=gn.notification)||void 0===En?void 0:En.data)||void 0===rt?void 0:rt[Se])?gn.action?[2]:(gn.stopImmediatePropagation(),gn.notification.close(),ue=function Oe(pn){var gn,En,rt;return(null!==(En=null===(gn=pn.fcmOptions)||void 0===gn?void 0:gn.link)&&void 0!==En?En:null===(rt=pn.notification)||void 0===rt?void 0:rt.click_action)||(kt(pn.data)?self.location.origin:null)}(it),ue?(ve=new URL(ue,self.location.href),at=new URL(self.location.origin),ve.host!==at.host?[2]:[4,xt(ve)]):[2]):[2];case 1:return(q=xe.sent())?[3,4]:[4,self.clients.openWindow(ue)];case 2:return q=xe.sent(),[4,We(3e3)];case 3:return xe.sent(),[3,6];case 4:return[4,q.focus()];case 5:q=xe.sent(),xe.label=6;case 6:return q?(it.messageType=Be.NOTIFICATION_CLICKED,it.isFirebaseMessaging=!0,[2,q.postMessage(it)]):[2]}})})},pn}();function Qe(pn){var gn,En=L({},pn.notification);return En.data=((gn={})[Se]=pn,gn),En}function xt(pn){return te(this,void 0,void 0,function(){var gn,En,rt,it,ue,ve,at;return le(this,function(q){switch(q.label){case 0:return[4,Ne()];case 1:gn=q.sent();try{for(En=Re(gn),rt=En.next();!rt.done;rt=En.next())if(it=rt.value,ue=new URL(it.url,self.location.href),pn.host===ue.host)return[2,it]}catch(xe){ve={error:xe}}finally{try{rt&&!rt.done&&(at=En.return)&&at.call(En)}finally{if(ve)throw ve.error}}return[2,null]}})})}function Ke(pn,gn){var En,rt;gn.isFirebaseMessaging=!0,gn.messageType=Be.PUSH_RECEIVED;try{for(var it=Re(pn),ue=it.next();!ue.done;ue=it.next())ue.value.postMessage(gn)}catch(at){En={error:at}}finally{try{ue&&!ue.done&&(rt=it.return)&&rt.call(it)}finally{if(En)throw En.error}}}function Ne(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Ae(pn){var gn,En=pn.actions,rt=Notification.maxActions;return En&&rt&&En.length>rt&&console.warn("This browser only supports "+rt+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(gn=pn.title)&&void 0!==gn?gn:"",pn)}var Ye=function(){function pn(gn){var En=this;this.firebaseDependencies=gn,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(rt){return En.messageEventListener(rt)})}return Object.defineProperty(pn.prototype,"app",{get:function(){return this.firebaseDependencies.app}
1,enumerable:!1,configurable:!0}),pn.prototype.messageEventListener=function(gn){return te(this,void 0,void 0,function(){var En,rt;return le(this,function(it){switch(it.label){case 0:return(En=gn.data).isFirebaseMessaging?(this.onMessageCallback&&En.messageType===Be.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function Tt(pn){return delete pn.messageType,delete pn.isFirebaseMessaging,pn}(Object.assign({},En))):this.onMessageCallback.next(Object.assign({},En))),kt(rt=En.data)&&"1"===rt["google.c.a.e"]?[4,this.logEvent(En.messageType,rt)]:[3,2]):[2];case 1:it.sent(),it.label=2;case 2:return[2]}})})},pn.prototype.getVapidKey=function(){return this.vapidKey},pn.prototype.getSwReg=function(){return this.swRegistration},pn.prototype.getToken=function(gn){return te(this,void 0,void 0,function(){return le(this,function(En){switch(En.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:En.sent(),En.label=2;case 2:if("granted"!==Notification.permission)throw ge.create("permission-blocked");return[4,this.updateVapidKey(null==gn?void 0:gn.vapidKey)];case 3:return En.sent(),[4,this.updateSwReg(null==gn?void 0:gn.serviceWorkerRegistration)];case 4:return En.sent(),[2,Pt(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},pn.prototype.updateVapidKey=function(gn){return te(this,void 0,void 0,function(){return le(this,function(En){return gn?this.vapidKey=gn:this.vapidKey||(this.vapidKey=fe),[2]})})},pn.prototype.updateSwReg=function(gn){return te(this,void 0,void 0,function(){return le(this,function(En){switch(En.label){case 0:return gn||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:En.sent(),En.label=2;case 2:if(!gn&&this.swRegistration)return[2];if(!(gn instanceof ServiceWorkerRegistration))throw ge.create("invalid-sw-registration");return this.swRegistration=gn,[2]}})})},pn.prototype.registerDefaultSw=function(){return te(this,void 0,void 0,function(){var gn,En;return le(this,function(rt){switch(rt.label){case 0:return rt.trys.push([0,2,,3]),gn=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return gn.swRegistration=rt.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw En=rt.sent(),ge.create("failed-service-worker-registration",{browserErrorMessage:En.message});case 3:return[2]}})})},pn.prototype.deleteToken=function(){return te(this,void 0,void 0,function(){return le(this,function(gn){switch(gn.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:gn.sent(),gn.label=2;case 2:return[2,Dn(this.firebaseDependencies,this.swRegistration)]}})})},pn.prototype.requestPermission=function(){return te(this,void 0,void 0,function(){var gn;return le(this,function(En){switch(En.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(gn=En.sent()))return[2];throw ge.create("denied"===gn?"permission-blocked":"permission-default")}})})},pn.prototype.usePublicVapidKey=function(gn){if(null!==this.vapidKey)throw ge.create("use-vapid-key-after-get-token");if("string"!=typeof gn||0===gn.length)throw ge.create("invalid-vapid-key");this.vapidKey=gn},pn.prototype.useServiceWorker=function(gn){if(!(gn instanceof ServiceWorkerRegistration))throw ge.create("invalid-sw-registration");if(this.swRegistration)throw ge.create("use-sw-after-get-token");this.swRegistration=gn},pn.prototype.onMessage=function(gn){var En=this;return this.onMessageCallback=gn,function(){En.onMessageCallback=null}},pn.prototype.setBackgroundMessageHandler=function(){throw ge.create("only-available-in-sw")},pn.prototype.onBackgroundMessage=function(){throw ge.create("only-available-in-sw")},pn.prototype.onTokenRefresh=function(){return function(){}},pn.prototype.logEvent=function(gn,En){return te(this,void 0,void 0,function(){var rt;return le(this,function(ue){switch(ue.label){case 0:return rt=function je(pn){switch(pn){case Be.NOTIFICATION_CLICKED:return"notification_open";case Be.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(gn),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return ue.sent().logEvent(rt,{message_id:En[pe],message_name:En["google.c.a.c_l"],message_time:En["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},pn}();function On(pn){return ge.create("missing-app-config-values",{valueName:pn})}var Ai={isSupported:mi};function mi(){return self&&"ServiceWorkerGlobalScope"in self?function Ki(){return"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSub
1scription.prototype.hasOwnProperty("getKey")}():function fi(){return"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}()}ee.default.INTERNAL.registerComponent(new _.Component("messaging",function Xn(pn){var gn=pn.getProvider("app").getImmediate(),En=function rn(pn){var gn,En;if(!pn||!pn.options)throw On("App Configuration Object");if(!pn.name)throw On("App Name");var it=pn.options;try{for(var ue=Re(["projectId","apiKey","appId","messagingSenderId"]),ve=ue.next();!ve.done;ve=ue.next()){var at=ve.value;if(!it[at])throw On(at)}}catch(q){gn={error:q}}finally{try{ve&&!ve.done&&(En=ue.return)&&En.call(ue)}finally{if(gn)throw gn.error}}return{appName:pn.name,projectId:it.projectId,apiKey:it.apiKey,appId:it.appId,senderId:it.messagingSenderId}}(gn),ue={app:gn,appConfig:En,installations:pn.getProvider("installations").getImmediate(),analyticsProvider:pn.getProvider("analytics-internal")};if(!mi())throw ge.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new Ue(ue):new Ye(ue)},"PUBLIC").setServiceProps(Ai))},2517:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var s=S(9278);S(8660);var _=S(1175),y=S(1270),j=S(4003),D=S(6355);function L(it){return it&&"object"==typeof it&&"default"in it?it:{default:it}}var re,ce=L(s),G="0.4.2",$=G,J="FB-PERF-TRACE-MEASURE",Q="_fid",P="@firebase/performance/config",N="@firebase/performance/configexpire",de="Performance",V=((re={})["trace started"]="Trace {$traceName} was started before.",re["trace stopped"]="Trace {$traceName} is not running.",re["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",re["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",re["no window"]="Window is not available.",re["no app id"]="App id is not available.",re["no project id"]="Project id is not available.",re["no api key"]="Api key is not available.",re["invalid cc log"]="Attempted to queue invalid cc event",re["FB not default"]="Performance can only start when Firebase app instance is the default one.",re["RC response not ok"]="RC response is not ok",re["invalid attribute name"]="Attribute name {$attributeName} is invalid.",re["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",re["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",re["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",re),ne=new y.ErrorFactory("performance",de,V),E=new j.Logger(de);E.logLevel=j.LogLevel.INFO;var M,A,R=function(){function it(ue){if(this.window=ue,!ue)throw ne.create("no window");this.performance=ue.performance,this.PerformanceObserver=ue.PerformanceObserver,this.windowLocation=ue.location,this.navigator=ue.navigator,this.document=ue.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=ue.localStorage),ue.perfMetrics&&ue.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=ue.perfMetrics.onFirstInputDelay)}return it.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},it.prototype.mark=function(ue){!this.performance||!this.performance.mark||this.performance.mark(ue)},it.prototype.measure=function(ue,ve,at){!this.performance||!this.performance.measure||this.performance.measure(ue,ve,at)},it.prototype.getEntriesByType=function(ue){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(ue):[]},it.prototype.getEntriesByName=function(ue){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(ue):[]},it.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},it.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?!!y.isIndexedDBAvailable()||(E.info("IndexedDB is not supported by current browswer"),!1):(E.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},it.prototype.setupObserver=function(ue,ve){this.PerformanceObserver&&new this.PerformanceObserver(function(q){for(var xe=0,_t=q.getEntries();xe<_t.length;xe++)ve(_t[xe])}).observe({entryTypes:[ue]})},it.getInstance=function(){return void 0===M&&(M=new it(A)),M},it}();function B(it,ue){var ve=it.length-ue.length;if(ve<0||ve>1)throw ne.create("invalid String merger input");for(var at=[],q=0;q<it.length;q++)at.push(it.charAt(q)),ue.length>q&&at.push(ue.charAt(q));return at.join("")}var K,Fe,ge=function(){function it(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSampl
1ingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=B("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=B("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return it.prototype.getAppId=function(){var ue=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!ue)throw ne.create("no app id");return ue},it.prototype.getProjectId=function(){var ue=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!ue)throw ne.create("no project id");return ue},it.prototype.getApiKey=function(){var ue=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!ue)throw ne.create("no api key");return ue},it.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},it.getInstance=function(){return void 0===K&&(K=new it),K},it}();function fe(){return Fe}var Se=(()=>{return(it=Se||(Se={}))[it.UNKNOWN=0]="UNKNOWN",it[it.VISIBLE=1]="VISIBLE",it[it.HIDDEN=2]="HIDDEN",Se;var it})(),pe=["firebase_","google_","ga_"],ke=new RegExp("^[a-zA-Z]\\w*$");function Be(){switch(R.getInstance().document.visibilityState){case"visible":return Se.VISIBLE;case"hidden":return Se.HIDDEN;default:return Se.UNKNOWN}}function ut(){var ue=R.getInstance().navigator.connection;switch(ue&&ue.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var hn="Could not fetch config, will use default configs";function ln(it){if(!it)return it;var ue=ge.getInstance(),ve=it.entries||{};return ue.loggingEnabled=void 0===ve.fpr_enabled||"true"===String(ve.fpr_enabled),ve.fpr_log_source&&(ue.logSource=Number(ve.fpr_log_source)),ve.fpr_log_endpoint_url&&(ue.logEndPointUrl=ve.fpr_log_endpoint_url),ve.fpr_log_transport_key&&(ue.transportKey=ve.fpr_log_transport_key),void 0!==ve.fpr_vc_network_request_sampling_rate&&(ue.networkRequestsSamplingRate=Number(ve.fpr_vc_network_request_sampling_rate)),void 0!==ve.fpr_vc_trace_sampling_rate&&(ue.tracesSamplingRate=Number(ve.fpr_vc_trace_sampling_rate)),ue.logTraceAfterSampling=Xe(ue.tracesSamplingRate),ue.logNetworkAfterSampling=Xe(ue.networkRequestsSamplingRate),it}function Xe(it){return Math.random()<=it}var Pe,qe=1;function tt(){return qe=2,Pe=Pe||function un(){return function It(){var it=R.getInstance().document;return new Promise(function(ue){if(it&&"complete"!==it.readyState){var ve=function(){"complete"===it.readyState&&(it.removeEventListener("readystatechange",ve),ue())};it.addEventListener("readystatechange",ve)}else ue()})}().then(function(){return function he(){var it=ge.getInstance().installationsService.getId();return it.then(function(ue){Fe=ue}),it}()}).then(function(it){return function Ht(it){var ue=function jt(){var it=R.getInstance().localStorage;if(it){var ue=it.getItem(N);if(ue&&function Jt(it){return Number(it)>Date.now()}(ue)){var ve=it.getItem(P);if(ve)try{return JSON.parse(ve)}catch(q){return}}}}();return ue?(ln(ue),Promise.resolve()):function vn(it){return function Ie(){var it=ge.getInstance().installationsService.getToken();return it.then(function(ue){}),it}().then(function(ue){var at="https://firebaseremoteconfig.googleapis.com/v1/projects/"+ge.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+ge.getInstance().getApiKey(),q=new Request(at,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+ue},body:JSON.stringify({app_instance_id:it,app_instance_id_token:ue,app_id:ge.getInstance().getAppId(),app_version:$,sdk_version:"0.0.1"})});return fetch(q).then(function(xe){if(xe.ok)return xe.json();throw ne.create("RC response not ok")})}).catch(function(){E.info(hn)})}(it).then(ln).then(function(ve){return function cn(it){var ue=R.getInstance().localStorage;!it||!ue||(ue.setItem(P,JSON.stringify(it)),ue.setItem(N,String(Date.now()+60*ge.getInstance().configTimeToLive*60*1e3)))}(ve)},function(){})}(it)}).then(function(){return Et()},function(){return Et()})}()}function Et(){qe=3}var We,Dn=3,Gn=[],Zn=!1;function nn(it){setTimeout(function(){if(0!==Dn){if(!Gn.length)return nn(1e4);!function Vn(){var it=_.__spreadArrays(Gn);Gn=[];var ue=it.map(function(at){return{source_extension_json_proto3:at.message,event_time_ms:String(at.eventTime)}});(function Yt(it,ue){return function Rn(it){var ue=ge.getInstance().getFlTransportFullUrl();return fetch(ue,{method:"POST",body:JSON.stringify(it)})}(it).then(function(ve){return ve.ok||E.info("Call to Firebase backend failed."),ve.json()}).then(function(ve){var at=Number(ve.nextRequestWaitMillis),q=1e4;isNaN(at)||(q=Math.max(at,q));var xe=ve.logResponseDetails;Array.isArray(xe)&&xe.length>0&&"RETRY_REQUEST_LATER"===xe[0].responseAction&&(Gn=_.__spreadArrays(ue,Gn),E.info("Retry transport request later.")),Dn=3,nn(q)})})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:ge.getInstance().logSource,log_event:ue},it).catch(function(){Gn=_.__spreadArrays(it,Gn),Dn--,E.info("Tries left: "+Dn+"."),nn(1e4)})}()}},it)}function Mt(it){if(!it.eventTime||!it.message)throw ne.create("invalid cc log");Gn=_.__spreadArrays(Gn,[it])}function Ue(it,ue){We||(We=function kt(it){return function(){for(var ue=[],ve=0;ve<arguments.length;ve++)ue[ve]=arguments[ve];Mt({message:it.apply(void 0,ue),eventTime:Date.now()})}}(Gt)),We(it,ue)}function Qe(it){var ue=ge.getInstance();!ue.instrumentationEnabled&&it.isAuto||!ue.dataCollectionEnabled&&!it.isAuto||!R.getInstance().requiredApisAvailable()||it.isAuto&&Be()!==Se.VISIBLE||(function bt(){return 3===qe}()?Lt(it):tt().then(function(){return Lt(it)},function(){return Lt(it)}))}function Lt(it){if(fe()){var ue=ge.getInstance();!ue.loggingEnabled||!ue.logTraceAfterSampling||setTimeout(function(){return Ue(it,1)},0)}}function Gt(it,ue){return 0===ue?function Ke(it){var ue={url:it.url,http_method:it.httpMethod||0,http_response_code:200,response_payload_bytes:it.responsePayloadBytes,client_start_time_us:it.startTimeUs,time_to_response_initiated_us:it.timeToResponseInitiatedUs,time_to_response_completed_us:it.timeToResponseCompletedUs},ve={application_info:Ae(),network_request_metric:ue};return JSON.stringify(ve)}(it):function Ne(it){var ue={name:it.name,is_auto:it.isAuto,client_start_time_us:it.startTimeUs,duration_us:it.durationUs};0!==Object.keys(it.counters).length&&(ue.counters=it.counters);var ve=it.getAttributes();0!==Object.keys(ve).length&&(ue.custom_attributes=ve);var at={application_info:Ae(),trace_metric:ue};return JSON.stringify(at)}(it)}function Ae(){return{google_app_id:ge.getInstance().getAppId(),app_instance_id:fe(),web_app_info:{sdk_version:$,page_url:R.getInstance().getUrl(),service_worker_status:(it=R.getInstance().navigator,"serviceWorker"
1in it?it.serviceWorker.controller?2:3:1),visibility_state:Be(),effective_connection_type:ut()},application_process_state:0};var it}var je=["_fp","_fcp",Q],On=function(){function it(ue,ve,at){void 0===ve&&(ve=!1),this.name=ue,this.isAuto=ve,this.state=1,this.customAttributes={},this.counters={},this.api=R.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=at||J+"-"+this.randomId+"-"+this.name,at&&this.calculateTraceMetrics())}return it.prototype.start=function(){if(1!==this.state)throw ne.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},it.prototype.stop=function(){if(2!==this.state)throw ne.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),Qe(this)},it.prototype.record=function(ue,ve,at){if(ue<=0)throw ne.create("nonpositive trace startTime",{traceName:this.name});if(ve<=0)throw ne.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*ve),this.startTimeUs=Math.floor(1e3*ue),at&&at.attributes&&(this.customAttributes=_.__assign({},at.attributes)),at&&at.metrics)for(var q=0,xe=Object.keys(at.metrics);q<xe.length;q++){var _t=xe[q];isNaN(Number(at.metrics[_t]))||(this.counters[_t]=Number(Math.floor(at.metrics[_t])))}Qe(this)},it.prototype.incrementMetric=function(ue,ve){void 0===ve&&(ve=1),this.putMetric(ue,void 0===this.counters[ue]?ve:this.counters[ue]+ve)},it.prototype.putMetric=function(ue,ve){if(!function Tt(it,ue){return!(0===it.length||it.length>100)&&(ue&&ue.startsWith("_wt_")&&je.indexOf(it)>-1||!it.startsWith("_"))}(ue,this.name))throw ne.create("invalid custom metric name",{customMetricName:ue});this.counters[ue]=function rn(it){var ue=Math.floor(it);return ue<it&&E.info("Metric value should be an Integer, setting the value as : "+ue+"."),ue}(ve)},it.prototype.getMetric=function(ue){return this.counters[ue]||0},it.prototype.putAttribute=function(ue,ve){var at=function Ge(it){return!(0===it.length||it.length>40||pe.some(function(ve){return it.startsWith(ve)})||!it.match(ke))}(ue),q=function wt(it){return 0!==it.length&&it.length<=100}(ve);if(at&&q)this.customAttributes[ue]=ve;else{if(!at)throw ne.create("invalid attribute name",{attributeName:ue});if(!q)throw ne.create("invalid attribute value",{attributeValue:ve})}},it.prototype.getAttribute=function(ue){return this.customAttributes[ue]},it.prototype.removeAttribute=function(ue){void 0!==this.customAttributes[ue]&&delete this.customAttributes[ue]},it.prototype.getAttributes=function(){return _.__assign({},this.customAttributes)},it.prototype.setStartTime=function(ue){this.startTimeUs=ue},it.prototype.setDuration=function(ue){this.durationUs=ue},it.prototype.calculateTraceMetrics=function(){var ue=this.api.getEntriesByName(this.traceMeasure),ve=ue&&ue[0];ve&&(this.durationUs=Math.floor(1e3*ve.duration),this.startTimeUs=Math.floor(1e3*(ve.startTime+this.api.getTimeOrigin())))},it.createOobTrace=function(ue,ve,at){var q=R.getInstance().getUrl();if(q){var xe=new it("_wt_"+q,!0),_t=Math.floor(1e3*R.getInstance().getTimeOrigin());if(xe.setStartTime(_t),ue&&ue[0]&&(xe.setDuration(Math.floor(1e3*ue[0].duration)),xe.putMetric("domInteractive",Math.floor(1e3*ue[0].domInteractive)),xe.putMetric("domContentLoadedEventEnd",Math.floor(1e3*ue[0].domContentLoadedEventEnd)),xe.putMetric("loadEventEnd",Math.floor(1e3*ue[0].loadEventEnd))),ve){var Qn=ve.find(function(li){return"first-paint"===li.name});Qn&&Qn.startTime&&xe.putMetric("_fp",Math.floor(1e3*Qn.startTime));var vi=ve.find(function(li){return"first-contentful-paint"===li.name});vi&&vi.startTime&&xe.putMetric("_fcp",Math.floor(1e3*vi.startTime)),at&&xe.putMetric(Q,Math.floor(1e3*at))}Qe(xe)}},it.createUserTimingTrace=function(ue){Qe(new it(ue,!1,ue))},it}();function xn(it){var ue=it;if(ue&&void 0!==ue.responseStart){var ve=R.getInstance().getTimeOrigin(),at=Math.floor(1e3*(ue.startTime+ve)),q=ue.responseStart?Math.floor(1e3*(ue.responseStart-ue.startTime)):void 0,xe=Math.floor(1e3*(ue.responseEnd-ue.startTime));!function xt(it){var ue=ge.getInstance();if(ue.instrumentationEnabled){var ve=it.url,at=ue.logEndPointUrl.split("?")[0],q=ue.flTransportEndpointUrl.split("?")[0];ve===at||ve===q||!ue.loggingEnabled||!ue.logNetworkAfterSampling||setTimeout(function(){return Ue(it,0)},0)}}({url:ue.name&&ue.name.split("?")[0],responsePayloadBytes:ue.transferSize,startTimeUs:at,timeToResponseInitiatedUs:q,timeToResponseCompletedUs:xe})}}function Ai(){!fe()||(setTimeout(function(){return function fi(){var it=R.getInstance(),ue=it.getEntriesByType("navigation"),ve=it.getEntriesByType("paint");if(it.onFirstInputDelay){var at=setTimeout(function(){On.createOobTrace(ue,ve),at=void 0},5e3);it.onFirstInputDelay(function(q){at&&(clearTimeout(at),On.createOobTrace(ue,ve,q))})}else On.createOobTrace(ue,ve)}()},0),setTimeout(function(){return function mi(){for(var it=R.getInstance(),ve=0,at=it.getEntriesByType("resource");ve<at.length;ve++)xn(at[ve]);it.setupObserver("resource",xn)}()},0),setTimeout(function(){return function Ki(){for(var it=R.getInstance(),ve=0,at=it.getEntriesByType("measure");ve<at.length;ve++)pn(at[ve]);it.setupObserver("measure",pn)}()},0))}function pn(it){var ue=it.name;ue.substring(0,J.length)!==J&&On.createUserTimingTrace(ue)}var gn=function(){function it(ue){this.app=ue,R.getInstance().requiredApisAvailable()&&y.val
1idateIndexedDBOpenable().then(function(ve){ve&&(function zn(){Zn||(nn(5500),Zn=!0)}(),tt().then(Ai,Ai))}).catch(function(ve){E.info("Environment doesn't support IndexedDB: "+ve)})}return it.prototype.trace=function(ue){return new On(ue)},Object.defineProperty(it.prototype,"instrumentationEnabled",{get:function(){return ge.getInstance().instrumentationEnabled},set:function(ue){ge.getInstance().instrumentationEnabled=ue},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"dataCollectionEnabled",{get:function(){return ge.getInstance().dataCollectionEnabled},set:function(ue){ge.getInstance().dataCollectionEnabled=ue},enumerable:!1,configurable:!0}),it}();function rt(it){it.INTERNAL.registerComponent(new D.Component("performance",function(ve){return function(ve,at){if("[DEFAULT]"!==ve.name)throw ne.create("FB not default");if("undefined"==typeof window)throw ne.create("no window");return function ee(it){A=it}(window),ge.getInstance().firebaseAppInstance=ve,ge.getInstance().installationsService=at,new gn(ve)}(ve.getProvider("app").getImmediate(),ve.getProvider("installations").getImmediate())},"PUBLIC")),it.registerVersion("@firebase/performance",G)}rt(ce.default),Z.registerPerformance=rt},8072:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var s=S(9278);S(8660);var _=S(2027),y=S(1270),j=S(4003),D=S(6355);function L(pe){return pe&&"object"==typeof pe&&"default"in pe?pe:{default:pe}}var G,ce=L(s),W=function(){function pe(ke,ae,Ce,Ve){this.client=ke,this.storage=ae,this.storageCache=Ce,this.logger=Ve}return pe.prototype.isCachedDataFresh=function(ke,ae){if(!ae)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var Ce=Date.now()-ae,Ve=Ce<=ke;return this.logger.debug("Config fetch cache check. Cache age millis: "+Ce+". Cache max age millis (minimumFetchIntervalMillis setting): "+ke+". Is cache hit: "+Ve+"."),Ve},pe.prototype.fetch=function(ke){return _.__awaiter(this,void 0,void 0,function(){var ae,Ce,Ve,Be,ut;return _.__generator(this,function(Ge){switch(Ge.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return ae=Ge.sent(),Ce=ae[0],(Ve=ae[1])&&this.isCachedDataFresh(ke.cacheMaxAgeMillis,Ce)?[2,Ve]:(ke.eTag=Ve&&Ve.eTag,[4,this.client.fetch(ke)]);case 2:return Be=Ge.sent(),ut=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===Be.status&&ut.push(this.storage.setLastSuccessfulFetchResponse(Be)),[4,Promise.all(ut)];case 3:return Ge.sent(),[2,Be]}})})},pe}(),$=((G={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",G["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",G["registration-api-key"]="Undefined API key. Check Firebase app initialization.",G["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",G["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",G["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",G["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",G["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",G["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",G["fetch-timeout"]='The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',G["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}.',G["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",G["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",G),te=new y.ErrorFactory("remoteconfig","Remote Config",$);function J(pe){return void 0===pe&&(pe=navigator),pe.languages&&pe.languages[0]||pe.language}var Me=function(){function pe(ke,ae,Ce,Ve,Be,ut){this.firebaseInstallations=ke,this.sdkVersion=ae,this.namespace=Ce,this.projectId=Ve,this.apiKey=Be,this.appId=ut}return pe.prototype.fetch=function(ke){return _.__awaiter(this,void 0,void 0,function(){var ae,Be,ut,Ge,wt,Ot,Ft,ht,Ht,jt,cn,hn,vn,ln,Jt,Xe,qe;return _.__generator(this,function(Pe){switch(Pe.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:ae=Pe.sent(),Be=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",ut=Be+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?ke
1y="+this.apiKey,Ge={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":ke.eTag||"*"},wt={sdk_version:this.sdkVersion,app_instance_id:ae[0],app_instance_id_token:ae[1],app_id:this.appId,language_code:J()},Ot={method:"POST",headers:Ge,body:JSON.stringify(wt)},Ft=fetch(ut,Ot),ht=new Promise(function(tt,bt){ke.signal.addEventListener(function(){var un=new Error("The operation was aborted.");un.name="AbortError",bt(un)})}),Pe.label=2;case 2:return Pe.trys.push([2,5,,6]),[4,Promise.race([Ft,ht])];case 3:return Pe.sent(),[4,Ft];case 4:return Ht=Pe.sent(),[3,6];case 5:throw jt=Pe.sent(),cn="fetch-client-network","AbortError"===jt.name&&(cn="fetch-timeout"),te.create(cn,{originalErrorMessage:jt.message});case 6:if(hn=Ht.status,vn=Ht.headers.get("ETag")||void 0,200!==Ht.status)return[3,11];Xe=void 0,Pe.label=7;case 7:return Pe.trys.push([7,9,,10]),[4,Ht.json()];case 8:return Xe=Pe.sent(),[3,10];case 9:throw qe=Pe.sent(),te.create("fetch-client-parse",{originalErrorMessage:qe.message});case 10:ln=Xe.entries,Jt=Xe.state,Pe.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===Jt?hn=500:"NO_CHANGE"===Jt?hn=304:("NO_TEMPLATE"===Jt||"EMPTY_CONFIG"===Jt)&&(ln={}),304!==hn&&200!==hn)throw te.create("fetch-status",{httpStatus:hn});return[2,{status:hn,eTag:vn,config:ln}]}})})},pe}(),Re=function(){function pe(){this.listeners=[]}return pe.prototype.addEventListener=function(ke){this.listeners.push(ke)},pe.prototype.abort=function(){this.listeners.forEach(function(ke){return ke()})},pe}(),N=["1","true","t","yes","y","on"],Y=function(){function pe(ke,ae){void 0===ae&&(ae=""),this._source=ke,this._value=ae}return pe.prototype.asString=function(){return this._value},pe.prototype.asBoolean=function(){return"static"!==this._source&&N.indexOf(this._value.toLowerCase())>=0},pe.prototype.asNumber=function(){if("static"===this._source)return 0;var ke=Number(this._value);return isNaN(ke)&&(ke=0),ke},pe.prototype.getSource=function(){return this._source},pe}(),V=function(){function pe(ke,ae,Ce,Ve,Be){this.app=ke,this._client=ae,this._storageCache=Ce,this._storage=Ve,this._logger=Be,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return pe.prototype.setLogLevel=function(ke){switch(ke){case"debug":this._logger.logLevel=j.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=j.LogLevel.SILENT;break;default:this._logger.logLevel=j.LogLevel.ERROR}},Object.defineProperty(pe.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),pe.prototype.activate=function(){return _.__awaiter(this,void 0,void 0,function(){var ke,ae,Ce;return _.__generator(this,function(Ve){switch(Ve.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return ke=Ve.sent(),Ce=ke[1],(ae=ke[0])&&ae.config&&ae.eTag&&ae.eTag!==Ce?[4,Promise.all([this._storageCache.setActiveConfig(ae.config),this._storage.setActiveConfigEtag(ae.eTag)])]:[2,!1];case 2:return Ve.sent(),[2,!0]}})})},pe.prototype.ensureInitialized=function(){var ke=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then(function(){ke._isInitializationComplete=!0})),this._initializePromise},pe.prototype.fetch=function(){return _.__awaiter(this,void 0,void 0,function(){var ke,ae,Ce,Ve=this;return _.__generator(this,function(Be){switch(Be.label){case 0:ke=new Re,setTimeout(function(){return _.__awaiter(Ve,void 0,void 0,function(){return _.__generator(this,function(ut){return ke.abort(),[2]})})},this.settings.fetchTimeoutMillis),Be.label=1;case 1:return Be.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:ke})];case 2:return Be.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return Be.sent(),[3,6];case 4:return ae=Be.sent(),Ce=function le(pe,ke){return pe instanceof y.FirebaseError&&-1!==pe.code.indexOf(ke)}(ae,"fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(Ce)];case 5:throw Be.sent(),ae;case 6:return[2]}})})},pe.prototype.fetchAndActivate=function(){return _.__awaiter(this,void 0,void 0,function(){return _.__generator(this,function(ke){switch(ke.label){case 0:return[4,this.fetch()];case 1:return ke.sent(),[2,this.activate()]}})})},pe.prototype.getAll=function(){var ke=this;return function ne(pe,ke){return void 0===pe&&(pe={}),void 0===ke&&(ke={}),Object.keys(_.__assign(_.__assign({},pe),ke))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce(function(ae,Ce){return ae[Ce]=ke.getValue(Ce),ae},{})},pe.prototype.getBoolean=function(ke){return this.getValue(ke).asBoolean()},pe.prototype.getNumber=function(ke){return this.getValue(ke).asNumber()},pe.prototype.getString=function(ke){return this.getValue(ke).asString()},pe.prototype.getValue=function(ke){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+ke+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var ae=this._storageCache.getActiveConfig();return ae&&void 0!==ae[ke]?new Y("remote",ae[ke]):this.defaultConfig&&void 0!==this.defaultConfig[ke]?new Y("default",String(this.defaultConfig[ke])):(this._logger.debug('Returning static value for key "'+ke+'". Define a default or remote value if this is unintentional.'),new Y("static"))},pe}();function E(pe,ke){var ae=pe.target.error||void 0;return te.create(ke,{originalErrorMessage:ae&&ae.message})}var M="app_namespace_store",B=function(){function pe(ke,ae,Ce,Ve){void 0===Ve&&(Ve=function ee(){return new Promise(function(pe,ke){var ae=indexedDB.open("firebase_remote_config",1);ae.onerror=function(Ce){ke(E(Ce,"storage-open"))},ae.onsuccess=function(Ce){pe(Ce.target.result)},ae.onupgradeneeded=function(Ce){0===Ce.oldVersion&&Ce.target.result.createObjectStore(M,{keyPath:"compositeKey"})}})}()),this.appId=ke,this.appName=ae,this.namespace=Ce,this.openDbPromise=Ve}return pe.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},pe.prototype.setLastFetchStatus=function(ke){return this.set("last_fetch_status",ke)},pe.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},pe.prototype.setLastSuccessfulFetchTimestampMillis=function(ke){return this.set("last_successful_fetch_timestamp_millis",ke)},pe.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},pe.prototype.setLastSuccessfulFetchResponse=function(ke){return this.set("last_successful_fetch_response",ke)},pe.prototype.getActiveConfig=function(){return this.get("active_config")},pe.prototype.setActiveConfig=function(ke){return this.set("active_config",ke)},pe.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},pe.prototype.setActiveConfigEtag=function(ke){return this.set("active_config_etag",ke)},pe.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},pe.prototype.setThrottleMetadata=function(ke){return this.set("throttle_metadata",ke)},pe.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},pe.prototype.get=function(ke){return _.__awaiter(this,void 0,void 0,function(){var ae,Ce=this;return _.__generator(this,function(Ve){switch(Ve.label){case 0:return[4,this.openDbPromise];case 1:return ae=Ve.sent(),[2,new Promise(function(Be,ut){var wt=ae.transaction([M],"readonly").objectStore(M),Ot=Ce.createCompositeKey(ke);try{var Ft=wt.get(Ot);Ft.onerror=function(ht){ut(E(ht,"storage-get"))},Ft.onsuccess=function(ht){var Ht=ht.target.result;Be(Ht?Ht.value:void 0)}}catch(ht){ut(te.create("storage-get",{originalErrorMessage:ht&&ht.message}))}})]}})})},pe.prototype.set=function(ke,ae){return _.__awaiter(this,void 0,void 0,function(){var Ce,Ve=this;return _.__generator(this,function(Be){switch(Be.label){case 0:return[4,this.openDbPromise];case 1:return Ce=Be.sent(),[2,new Promise(function(ut,Ge){var Ot=Ce.transaction([M],"readwrite").objectStore(M),Ft=Ve.createCompositeKey(ke);try{var ht=Ot.put({compositeKey:Ft,value:ae});ht.onerror=function(Ht){Ge(E(Ht,"storage-set"))},ht.onsuccess=function(){ut()}}catch(Ht){Ge(te.create("storage-set",{originalErrorMessage:Ht&&Ht.message}))}})]}})})},pe.prototype.delete=function(ke){return _.__awaiter(this,void 0,void 0,function(){var ae,Ce=this;return _.__generator(this,function(Ve){switch(Ve.label){case 0:return[4,this.openDbPromise];case 1:return ae=Ve.sent(),[2,new Promise(function(Be,ut){var wt=ae.transaction([M],"readwrite").objectStore(M),Ot=Ce.createCompositeKey(ke);try{var Ft=wt.delete(Ot);Ft.onerror=function(ht){ut(E(ht,"storage-delete"))},Ft.onsuccess=function(){Be()}}catch(ht){ut(te.create("storage-delete",{originalErrorMessage:ht&&ht.message}))}})]}})})},pe.prototype.createCompositeKey=function(ke){return[this.appId,this.appName,this.namespace,ke].join()},pe}(),K=function(){function pe(ke){this.storage=ke}return pe.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},pe.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},pe.prototype.getActiveConfig=function(){return this.activeConfig},pe.prototype.loadFromStorage=function(){return _.__awaiter(this,void 0,void 0,function(){var ke,ae,Ce,Ve,Be,ut;return _.__generator(this,function(Ge){switch(Ge.label){case 0:return ke=this.storage.getLastFetchStatus(),ae=this.storage.getLastSuccessfulFetchTimestampMillis(),Ce=this.storage.getActiveConfig(),[4,ke];case 1:return(Ve=Ge.sent())&&(this.lastFetchStatus=Ve),[4,ae];case 2:return(Be=Ge.sent())&&(this.lastSuccessfulFetchTimestampMillis=Be),[4,Ce];case 3:return(ut=Ge.sent())&&(this.activeConfig=ut),[2]}})})},pe.prototype.setLastFetchStatus=function(ke){return this.lastFetchStatus=ke,this.storage.setLastFetchStatus(ke)},pe.prototype.setLastSuccessfulFetchTimestampMillis=function(ke){return this.lastSuccessfulFetchTimestampMillis=ke,this.storage.setLastSuccessfulFetchTimestampMillis(ke)},pe.prototype.setActiveConfig=function(ke){return this.activeConfig=ke,this.storage.setActiveConfig(ke)},pe}();function ge(pe,ke){return new Promise(function(ae,Ce){var Ve=Math.max(ke-Date.now(),0),Be=setTimeout(ae,Ve);pe.addEventListener(function(){clearTimeout(Be),Ce(te.create("fetch-throttle",{throttleEndTimeMillis:ke}))})})}var he=function(){function pe(ke,ae){this.client=ke,this.storage=ae}return pe.prototype.fetch=function(ke){return _.__awaiter(this,void 0,void 0,function(){var ae;return _.__generator(this,function(Ce){switch(Ce.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return ae=Ce.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(ke,ae)]}})})}
1,pe.prototype.attemptFetch=function(ke,ae){var Ce=ae.throttleEndTimeMillis,Ve=ae.backoffCount;return _.__awaiter(this,void 0,void 0,function(){var Be,ut,Ge;return _.__generator(this,function(wt){switch(wt.label){case 0:return[4,ge(ke.signal,Ce)];case 1:wt.sent(),wt.label=2;case 2:return wt.trys.push([2,5,,7]),[4,this.client.fetch(ke)];case 3:return Be=wt.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return wt.sent(),[2,Be];case 5:if(!function Fe(pe){if(!(pe instanceof y.FirebaseError))return!1;var ke=Number(pe.httpStatus);return 429===ke||500===ke||503===ke||504===ke}(ut=wt.sent()))throw ut;return Ge={throttleEndTimeMillis:Date.now()+y.calculateBackoffMillis(Ve),backoffCount:Ve+1},[4,this.storage.setThrottleMetadata(Ge)];case 6:return wt.sent(),[2,this.attemptFetch(ke,Ge)];case 7:return[2]}})})},pe}(),fe="@firebase/remote-config";function Se(pe){pe.INTERNAL.registerComponent(new D.Component("remoteConfig",function ke(ae,Ce){var Ve=ae.getProvider("app").getImmediate(),Be=ae.getProvider("installations").getImmediate();if("undefined"==typeof window)throw te.create("registration-window");var ut=Ve.options,Ge=ut.projectId,wt=ut.apiKey,Ot=ut.appId;if(!Ge)throw te.create("registration-project-id");if(!wt)throw te.create("registration-api-key");if(!Ot)throw te.create("registration-app-id");var Ft=new B(Ot,Ve.name,Ce=Ce||"firebase"),ht=new K(Ft),Ht=new j.Logger(fe);Ht.logLevel=j.LogLevel.ERROR;var jt=new Me(Be,pe.SDK_VERSION,Ce,Ge,wt,Ot),cn=new he(jt,Ft),hn=new W(cn,Ft,ht,Ht),vn=new V(Ve,hn,ht,Ft,Ht);return vn.ensureInitialized(),vn},"PUBLIC").setMultipleInstances(!0)),pe.registerVersion(fe,"0.1.28")}Se(ce.default),Z.registerRemoteConfig=Se},2684:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{registerStorage:()=>ws});var s=S(9278);function G(vt,pt,Zt,yn){return new(Zt||(Zt=Promise))(function(jn,ti){function pi(Pi){try{Di(yn.next(Pi))}catch(Xi){ti(Xi)}}function hi(Pi){try{Di(yn.throw(Pi))}catch(Xi){ti(Xi)}}function Di(Pi){Pi.done?jn(Pi.value):function Mn(jn){return jn instanceof Zt?jn:new Zt(function(ti){ti(jn)})}(Pi.value).then(pi,hi)}Di((yn=yn.apply(vt,pt||[])).next())})}function $(vt,pt){var yn,Mn,jn,ti,Zt={label:0,sent:function(){if(1&jn[0])throw jn[1];return jn[1]},trys:[],ops:[]};return ti={next:pi(0),throw:pi(1),return:pi(2)},"function"==typeof Symbol&&(ti[Symbol.iterator]=function(){return this}),ti;function pi(Di){return function(Pi){return function hi(Di){if(yn)throw new TypeError("Generator is already executing.");for(;Zt;)try{if(yn=1,Mn&&(jn=2&Di[0]?Mn.return:Di[0]?Mn.throw||((jn=Mn.return)&&jn.call(Mn),0):Mn.next)&&!(jn=jn.call(Mn,Di[1])).done)return jn;switch(Mn=0,jn&&(Di=[2&Di[0],jn.value]),Di[0]){case 0:case 1:jn=Di;break;case 4:return Zt.label++,{value:Di[1],done:!1};case 5:Zt.label++,Mn=Di[1],Di=[0];continue;case 7:Di=Zt.ops.pop(),Zt.trys.pop();continue;default:if(!(jn=(jn=Zt.trys).length>0&&jn[jn.length-1])&&(6===Di[0]||2===Di[0])){Zt=0;continue}if(3===Di[0]&&(!jn||Di[1]>jn[0]&&Di[1]<jn[3])){Zt.label=Di[1];break}if(6===Di[0]&&Zt.label<jn[1]){Zt.label=jn[1],jn=Di;break}if(jn&&Zt.label<jn[2]){Zt.label=jn[2],Zt.ops.push(Di);break}jn[2]&&Zt.ops.pop(),Zt.trys.pop();continue}Di=pt.call(vt,Zt)}catch(Pi){Di=[6,Pi],Mn=0}finally{yn=jn=0}if(5&Di[0])throw Di[1];return{value:Di[0]?Di[1]:void 0,done:!0}}([Di,Pi])}}}function me(){for(var vt=0,pt=0,Zt=arguments.length;pt<Zt;pt++)vt+=arguments[pt].length;var yn=Array(vt),Mn=0;for(pt=0;pt<Zt;pt++)for(var jn=arguments[pt],ti=0,pi=jn.length;ti<pi;ti++,Mn++)yn[Mn]=jn[ti];return yn}var M=S(6355),A="firebasestorage.googleapis.com",K=function(){function vt(pt,Zt){this.code_=Fe(pt),this.message_="Firebase Storage: "+Zt,this.serverResponse_=null,this.name_="FirebaseError"}return vt.prototype.codeProp=function(){return this.code},vt.prototype.codeEquals=function(pt){return Fe(pt)===this.codeProp()},vt.prototype.serverResponseProp=function(){return this.serverResponse_},vt.prototype.setServerResponseProp=function(pt){this.serverResponse_=pt},Object.defineProperty(vt.prototype,"name",{get:function(){return this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"code",{get:function(){return this.co
1de_},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),vt}();function Fe(vt){return"storage/"+vt}function he(){return new K("unknown","An unknown error occurred, please check the error payload for server response.")}function ae(){return new K("canceled","User canceled the upload/download.")}function Be(){return new K("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function Ge(){return new K("no-download-url","The given file does not have any download URLs.")}function wt(vt,pt,Zt){return new K("invalid-argument","Invalid argument in `"+pt+"` at index "+vt+": "+Zt)}function Ft(){return new K("app-deleted","The Firebase app was deleted.")}function Ht(vt,pt){return new K("invalid-format","String does not match format '"+vt+"': "+pt)}function jt(vt){throw new K("internal-error","Internal error: "+vt)}var cn={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function hn(vt){switch(vt){case cn.RAW:case cn.BASE64:case cn.BASE64URL:case cn.DATA_URL:return;default:throw"Expected one of the event types: ["+cn.RAW+", "+cn.BASE64+", "+cn.BASE64URL+", "+cn.DATA_URL+"]."}}var vn=function vt(pt,Zt){this.data=pt,this.contentType=Zt||null};function ln(vt,pt){switch(vt){case cn.RAW:return new vn(Jt(pt));case cn.BASE64:case cn.BASE64URL:return new vn(qe(vt,pt));case cn.DATA_URL:return new vn(function tt(vt){var pt=new Pe(vt);return pt.base64?qe(cn.BASE64,pt.rest):function Xe(vt){var pt;try{pt=decodeURIComponent(vt)}catch(Zt){throw Ht(cn.DATA_URL,"Malformed data URL.")}return Jt(pt)}(pt.rest)}(pt),function bt(vt){return new Pe(vt).contentType}(pt))}throw he()}function Jt(vt){for(var pt=[],Zt=0;Zt<vt.length;Zt++){var yn=vt.charCodeAt(Zt);if(yn<=127)pt.push(yn);else if(yn<=2047)pt.push(192|yn>>6,128|63&yn);else if(55296==(64512&yn))if(Zt<vt.length-1&&56320==(64512&vt.charCodeAt(Zt+1))){var jn=yn,ti=vt.charCodeAt(++Zt);pt.push(240|(yn=65536|(1023&jn)<<10|1023&ti)>>18,128|yn>>12&63,128|yn>>6&63,128|63&yn)}else pt.push(239,191,189);else 56320==(64512&yn)?pt.push(239,191,189):pt.push(224|yn>>12,128|yn>>6&63,128|63&yn)}return new Uint8Array(pt)}function qe(vt,pt){switch(vt){case cn.BASE64:var Zt=-1!==pt.indexOf("-"),yn=-1!==pt.indexOf("_");if(Zt||yn)throw Ht(vt,"Invalid character '"+(Zt?"-":"_")+"' found: is it base64url encoded?");break;case cn.BASE64URL:var jn=-1!==pt.indexOf("+"),ti=-1!==pt.indexOf("/");if(jn||ti)throw Ht(vt,"Invalid character '"+(jn?"+":"/")+"' found: is it base64 encoded?");pt=pt.replace(/-/g,"+").replace(/_/g,"/")}var pi;try{pi=atob(pt)}catch(Pi){throw Ht(vt,"Invalid character found")}for(var hi=new Uint8Array(pi.length),Di=0;Di<pi.length;Di++)hi[Di]=pi.charCodeAt(Di);return hi}var Pe=function vt(pt){this.base64=!1,this.contentType=null;var Zt=pt.match(/^data:([^,]+)?,/);if(null===Zt)throw Ht(cn.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var yn=Zt[1]||null;null!=yn&&(this.base64=function un(vt,pt){return vt.length>=pt.length&&vt.substring(vt.length-pt.length)===pt}(yn,";base64"),this.contentType=this.base64?yn.substring(0,yn.length-7):yn),this.rest=pt.substring(pt.indexOf(",")+1)},It={STATE_CHANGED:"state_changed"},Rt={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Wt(vt){switch(vt){case"running":case"pausing":case"canceling":return Rt.RUNNING;case"paused":return Rt.PAUSED;case"success":return Rt.SUCCESS;case"canceled":return Rt.CANCELED;default:return Rt.ERROR}}function Pt(vt){return null!=vt}function Dn(vt){return void 0!==vt}function Gn(vt){return"function"==typeof vt}function Zn(vt){return"object"==typeof vt}function zn(vt){return Zn(vt)&&null!==vt}function Vn(vt){return"string"==typeof vt||vt instanceof String}function Yt(vt){return Rn(vt)&&Number.isInteger(vt)}function Rn(vt){return"number"==typeof vt||vt instanceof Number}function Mt(vt){return kt()&&vt instanceof Blob}function kt(){return"undefined"!=typeof Blob}var We=(()=>{return(vt=We||(We={}
1))[vt.NO_ERROR=0]="NO_ERROR",vt[vt.NETWORK_ERROR=1]="NETWORK_ERROR",vt[vt.ABORT=2]="ABORT",We;var vt})(),Ue=function(){function vt(){var pt=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=We.NO_ERROR,this.sendPromise_=new Promise(function(Zt){pt.xhr_.addEventListener("abort",function(){pt.errorCode_=We.ABORT,Zt(pt)}),pt.xhr_.addEventListener("error",function(){pt.errorCode_=We.NETWORK_ERROR,Zt(pt)}),pt.xhr_.addEventListener("load",function(){Zt(pt)})})}return vt.prototype.send=function(pt,Zt,yn,Mn){if(this.sent_)throw jt("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(Zt,pt,!0),Pt(Mn))for(var jn in Mn)Mn.hasOwnProperty(jn)&&this.xhr_.setRequestHeader(jn,Mn[jn].toString());return Pt(yn)?this.xhr_.send(yn):this.xhr_.send(),this.sendPromise_},vt.prototype.getErrorCode=function(){if(!this.sent_)throw jt("cannot .getErrorCode() before sending");return this.errorCode_},vt.prototype.getStatus=function(){if(!this.sent_)throw jt("cannot .getStatus() before sending");try{return this.xhr_.status}catch(pt){return-1}},vt.prototype.getResponseText=function(){if(!this.sent_)throw jt("cannot .getResponseText() before sending");return this.xhr_.responseText},vt.prototype.abort=function(){this.xhr_.abort()},vt.prototype.getResponseHeader=function(pt){return this.xhr_.getResponseHeader(pt)},vt.prototype.addUploadProgressListener=function(pt){Pt(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",pt)},vt.prototype.removeUploadProgressListener=function(pt){Pt(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",pt)},vt}(),Qe=function(){function vt(){}return vt.prototype.createXhrIo=function(){return new Ue},vt}();function Lt(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function xt(){for(var vt=[],pt=0;pt<arguments.length;pt++)vt[pt]=arguments[pt];var Zt=Lt();if(void 0!==Zt){for(var yn=new Zt,Mn=0;Mn<vt.length;Mn++)yn.append(vt[Mn]);return yn.getBlob()}if(kt())return new Blob(vt);throw Error("This browser doesn't seem to support creating Blobs")}var Ke=function(){function vt(pt,Zt){var yn=0,Mn="";Mt(pt)?(this.data_=pt,yn=pt.size,Mn=pt.type):pt instanceof ArrayBuffer?(Zt?this.data_=new Uint8Array(pt):(this.data_=new Uint8Array(pt.byteLength),this.data_.set(new Uint8Array(pt))),yn=this.data_.length):pt instanceof Uint8Array&&(Zt?this.data_=pt:(this.data_=new Uint8Array(pt.length),this.data_.set(pt)),yn=pt.length),this.size_=yn,this.type_=Mn}return vt.prototype.size=function(){return this.size_},vt.prototype.type=function(){return this.type_},vt.prototype.slice=function(pt,Zt){if(Mt(this.data_)){var Mn=function Gt(vt,pt,Zt){return vt.webkitSlice?vt.webkitSlice(pt,Zt):vt.mozSlice?vt.mozSlice(pt,Zt):vt.slice?vt.slice(pt,Zt):null}(this.data_,pt,Zt);return null===Mn?null:new vt(Mn)}return new vt(new Uint8Array(this.data_.buffer,pt,Zt-pt),!0)},vt.getBlob=function(){for(var pt=[],Zt=0;Zt<arguments.length;Zt++)pt[Zt]=arguments[Zt];if(kt()){var yn=pt.map(function(hi){return hi instanceof vt?hi.data_:hi});return new vt(xt.apply(null,yn))}var Mn=pt.map(function(hi){return Vn(hi)?ln(cn.RAW,hi).data:hi.data_}),jn=0;Mn.forEach(function(hi){jn+=hi.byteLength});var ti=new Uint8Array(jn),pi=0;return Mn.forEach(function(hi){for(var Di=0;Di<hi.length;Di++)ti[pi++]=hi[Di]}),new vt(ti,!0)},vt.prototype.uploadData=function(){return this.data_},vt}(),Ne=function(){function vt(pt,Zt){this.bucket=pt,this.path_=Zt}return Object.defineProperty(vt.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),vt.prototype.fullServerUrl=function(){var pt=encodeURIComponent;return"/b/"+pt(this.bucket)+"/o/"+pt(this.path)},vt.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},vt.makeFromBucketSpec=function(pt){var Zt;try{Zt=vt.makeFromUrl(pt)}catch(yn){return new vt(pt,"")}if(""===Zt.path)return Zt;throw function Ve(vt){return new K("invalid-default-bucket","Invalid default bucket '"+vt+"'.")}(pt)},vt.makeFromUrl=function(pt){var Zt=null,yn="([A-Za-z0-9.\\-_]+)",ti=new RegExp("^gs://"+yn+"(/(.*))?$","i");function hi(io){io.path_=decodeURIComponent(io.path)}for(var Pi=A.replace(/[.]/g,"\\."),yr=[{regex:ti,indices:{bucket:1,path:3},postModify:function Mn(io){"/"===io.path.charAt(io.path.length-1)&&(io.path_=io.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+Pi+"/v[A-Za-z0-9_]+/b/"+yn+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:hi},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/"+yn+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:hi}],Rr=0;Rr<yr.length;Rr++){var Us=yr[Rr],Ss=Us.regex.exec(pt);if(Ss){var Ms=Ss[Us.indices.path];Ms||(Ms=""),Zt=new vt(Ss[Us.indices.bucket],Ms),Us.postModify(Zt);break}}if(null==Zt)throw function Ce(vt){return new K("invalid-url","Invalid URL '"+vt+"'.")}(pt);return Zt},vt}();function Ae(vt){var pt;try{pt=JSON.parse(vt)}catch(Zt){return null}return function nn(vt){return Zn(vt)&&!Array.isArray(vt)}(pt)?pt:null}function Ye(vt,pt){var Zt=pt.split("/").filter(function(yn){return yn.length>0}).join("/");return 0===vt.length?Zt:vt+"/"+Zt}function je(vt){var pt=vt.lastIndexOf("/",vt.length-2);return-1===pt?vt:vt.slice(pt+1)}function Tt(vt){return"https://"+A+"/v0"+vt}function rn(vt){var pt=encodeURIComponent,Zt="?";for(var yn in vt)vt.hasOwnProperty(yn)&&(Zt=Zt+(pt(yn)+"=")+pt(vt[yn])+"&");return Zt.slice(0,-1)}function On(vt,pt){return pt}var xn=function vt(pt,Zt,yn,Mn){this.server=pt,this.local=Zt||pt,this.writable=!!yn,this.xform=Mn||On},Xn=null;function pn(vt,pt,Zt){var yn=Ae(pt);return null===yn?null:function Ki(vt,pt,Zt){for(var yn={type:"file"},Mn=Zt.length,jn=0;jn<Mn;jn++){var ti=Zt[jn];yn[ti.local]=ti.xform(yn,pt[ti.server])}return function fi(vt,pt){Object.defineProperty(vt,"ref",{get:function Zt(){var jn=new Ne(vt.bucket,vt.fullPath);return pt.makeStorageReference(jn)}})}(yn,vt),yn}(vt,yn,Zt)}function En(vt,pt){for(var Zt={},yn=pt.length,Mn=0;Mn<yn;Mn++){var jn=pt[Mn];jn.writable&&(Zt[jn.server]=vt[jn.local])}return JSON.stringify(Zt)}function rt(vt){if(!Zn(vt)||!vt)throw"Expected Metadata object.";for(var pt in vt)if(vt.hasOwnProperty(pt)){var Zt=vt[pt];if("customMetadata"===pt){if(!Zn(Zt))throw"Expected object for 'customMetadata' mapping."}else if(zn(Zt))throw"Mapping for '"+pt+"' cannot be an object."}}var it="maxResults",ve="pageToken",at="prefixes",q="items";function Xt(vt){if(!Zn(vt)||!vt)throw"Expected ListOptions object.";for(var pt in vt)if(pt===it){if(!Yt(vt[it])||vt[it]<=0)throw"Expected maxResults to be a positive number.";if(vt[it]>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if(pt!==ve)throw"Unknown option: "+pt;if(vt[ve]&&!Vn(vt[ve]))throw"Expected pageToken to be string."}}var Un=function vt(pt,Zt,yn,Mn){this.url=pt,this.method=Zt,this.handler=yn,this.timeout=Mn,this.urlParam
1s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Qn(vt){if(!vt)throw he()}function vi(vt,pt){return function Zt(yn,Mn){var jn=pn(vt,Mn,pt);return Qn(null!==jn),jn}}function zi(vt){return function pt(Zt,yn){var Mn;return Mn=401===Zt.getStatus()?function Se(){return new K("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===Zt.getStatus()?function Ie(vt){return new K("quota-exceeded","Quota for bucket '"+vt+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(vt.bucket):403===Zt.getStatus()?function pe(vt){return new K("unauthorized","User does not have permission to access '"+vt+"'.")}(vt.path):yn,Mn.setServerResponseProp(yn.serverResponseProp()),Mn}}function hr(vt){var pt=zi(vt);return function Zt(yn,Mn){var jn=pt(yn,Mn);return 404===yn.getStatus()&&(jn=function fe(vt){return new K("object-not-found","Object '"+vt+"' does not exist.")}(vt.path)),jn.setServerResponseProp(Mn.serverResponseProp()),jn}}function Wi(vt,pt,Zt){var Mn=Tt(pt.fullServerUrl()),ti=vt.maxOperationRetryTime,pi=new Un(Mn,"GET",vi(vt,Zt),ti);return pi.errorHandler=hr(pt),pi}function qs(vt,pt,Zt,yn,Mn){var jn={};jn.prefix=pt.isRoot?"":pt.path+"/",Zt&&Zt.length>0&&(jn.delimiter=Zt),yn&&(jn.pageToken=yn),Mn&&(jn.maxResults=Mn);var pi=Tt(pt.bucketOnlyServerUrl()),Di=vt.maxOperationRetryTime,Pi=new Un(pi,"GET",function li(vt,pt){return function Zt(yn,Mn){var jn=function _t(vt,pt,Zt){var yn=Ae(Zt);return null===yn?null:function xe(vt,pt,Zt){var yn={prefixes:[],items:[],nextPageToken:Zt.nextPageToken};if(Zt[at])for(var Mn=0,jn=Zt[at];Mn<jn.length;Mn++){var pi=jn[Mn].replace(/\/$/,""),hi=vt.makeStorageReference(new Ne(pt,pi));yn.prefixes.push(hi)}if(Zt[q])for(var Di=0,Pi=Zt[q];Di<Pi.length;Di++)hi=vt.makeStorageReference(new Ne(pt,Pi[Di].name)),yn.items.push(hi);return yn}(vt,pt,yn)}(vt,pt,Mn);return Qn(null!==jn),jn}}(vt,pt.bucket),Di);return Pi.urlParams=jn,Pi.errorHandler=zi(pt),Pi}function fs(vt,pt,Zt){var Mn=Tt(pt.fullServerUrl()),ti=vt.maxOperationRetryTime,pi=new Un(Mn,"GET",function mr(vt,pt){return function Zt(yn,Mn){var jn=pn(vt,Mn,pt);return Qn(null!==jn),function gn(vt,pt){var Zt=Ae(pt);if(null===Zt||!Vn(Zt.downloadTokens))return null;var yn=Zt.downloadTokens;if(0===yn.length)return null;var Mn=encodeURIComponent;return yn.split(",").map(function(pi){var Di=vt.fullPath;return Tt("/b/"+Mn(vt.bucket)+"/o/"+Mn(Di))+rn({alt:"media",token:pi})})[0]}(jn,Mn)}}(vt,Zt),ti);return pi.errorHandler=hr(pt),pi}function or(vt,pt,Zt,yn){var jn=Tt(pt.fullServerUrl()),pi=En(Zt,yn),Di=vt.maxOperationRetryTime,Pi=new Un(jn,"PATCH",vi(vt,yn),Di);return Pi.headers={"Content-Type":"application/json; charset=utf-8"},Pi.body=pi,Pi.errorHandler=hr(pt),Pi}function vs(vt,pt){var yn=Tt(pt.fullServerUrl()),pi=new Un(yn,"DELETE",function ti(hi,Di){},vt.maxOperationRetryTime);return pi.successCodes=[200,204],pi.errorHandler=hr(pt),pi}function Ds(vt,pt,Zt){var yn=Object.assign({},Zt);return yn.fullPath=vt.path,yn.size=pt.size(),yn.contentType||(yn.contentType=function go(vt,pt){return vt&&vt.contentType||pt&&pt.type()||"application/octet-stream"}(null,pt)),yn}var Qs=function vt(pt,Zt,yn,Mn){this.current=pt,this.total=Zt,this.finalized=!!yn,this.metadata=Mn||null};function Os(vt,pt){var Zt=null;try{Zt=vt.getResponseHeader("X-Goog-Upload-Status")}catch(Mn){Qn(!1)}return Qn(!!Zt&&-1!==(pt||["active"]).indexOf(Zt)),Zt}var Oo=function vt(pt,Zt,yn){if(Gn(pt)||Pt(Zt)||Pt(yn))this.next=pt,this.error=Zt||null,this.complete=yn||null;else{var jn=pt;this.next=jn.next||null,this.error=jn.error||null,this.complete=jn.complete||null}},ar=function vt(pt,Zt,yn,Mn,jn,ti){this.bytesTransferred=pt,this.totalBytes=Zt,this.state=yn,this.metadata=Mn,this.task=jn,this.ref=ti};function Wr(vt,pt,Zt){for(var yn=pt.length,Mn=pt.length,jn=0;jn<pt.length;jn++)if(pt[jn].optional){yn=jn;break}if(!(yn<=Zt.length&&Zt.length<=Mn))throw function Ot(vt,pt,Zt,yn){var Mn,jn;return vt===pt?(Mn=vt,jn=1===vt?"argument":"arguments"):(Mn="between "+vt+" and "+pt,jn="arguments"),new
1K("invalid-argument-count","Invalid argument count in `"+Zt+"`: Expected "+Mn+" "+jn+", received "+yn+".")}(yn,Mn,vt,Zt.length);for(jn=0;jn<Zt.length;jn++)try{pt[jn].validator(Zt[jn])}catch(hi){throw hi instanceof Error?wt(jn,vt,hi.message):wt(jn,vt,hi)}}var ys=function vt(pt,Zt){var yn=this;this.validator=function(Mn){yn.optional&&!Dn(Mn)||pt(Mn)},this.optional=!!Zt};function ls(vt,pt){function Zt(Mn){if(!Vn(Mn))throw"Expected string."}var yn;return yn=vt?function fr(vt,pt){return function(Zt){vt(Zt),pt(Zt)}}(Zt,vt):Zt,new ys(yn,pt)}function eo(){return new ys(function vt(pt){if(!(pt instanceof Uint8Array||pt instanceof ArrayBuffer||kt()&&pt instanceof Blob))throw"Expected Blob or File."})}function Kr(vt){return new ys(rt,vt)}function zs(vt){return new ys(Xt,vt)}function Ro(){return new ys(function vt(pt){if(!(Rn(pt)&&pt>=0))throw"Expected a number 0 or greater."})}function xs(vt,pt){return new ys(function Zt(yn){if(!(null===yn||Pt(yn)&&yn instanceof Object))throw"Expected an Object.";null!=vt&&vt(yn)},pt)}function Ui(vt){return new ys(function pt(Zt){if(null!==Zt&&!Gn(Zt))throw"Expected a Function."},vt)}function vr(vt){return function(){for(var pt=[],Zt=0;Zt<arguments.length;Zt++)pt[Zt]=arguments[Zt];Promise.resolve().then(function(){return vt.apply(void 0,pt)})}}var Po=function(){function vt(pt,Zt,yn,Mn,jn,ti){var pi=this;void 0===ti&&(ti=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=pt,this.service_=Zt,this.location_=yn,this.blob_=jn,this.metadata_=ti,this.mappings_=Mn,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_="running",this.errorHandler_=function(hi){pi.request_=null,pi.chunkMultiplier_=1,hi.codeEquals("canceled")?(pi.needToFetchStatus_=!0,pi.completeTransitions_()):(pi.error_=hi,pi.transition_("error"))},this.metadataErrorHandler_=function(hi){pi.request_=null,hi.codeEquals("canceled")?pi.completeTransitions_():(pi.error_=hi,pi.transition_("error"))},this.promise_=new Promise(function(hi,Di){pi.resolve_=hi,pi.reject_=Di,pi.start_()}),this.promise_.then(null,function(){})}return vt.prototype.makeProgressCallback_=function(){var pt=this,Zt=this.transferred_;return function(yn){return pt.updateProgress_(Zt+yn)}},vt.prototype.shouldDoResumable_=function(pt){return pt.size()>262144},vt.prototype.start_=function(){"running"===this.state_&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},vt.prototype.resolveToken_=function(pt){var Zt=this;this.service_.getAuthToken().then(function(yn){switch(Zt.state_){case"running":pt(yn);break;case"canceling":Zt.transition_("canceled");break;case"pausing":Zt.transition_("paused")}})},vt.prototype.createResumable_=function(){var pt=this;this.resolveToken_(function(Zt){var yn=function Rs(vt,pt,Zt,yn,Mn){var jn=pt.bucketOnlyServerUrl(),ti=Ds(pt,yn,Mn),pi={name:ti.fullPath},hi=Tt(jn),Pi={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":yn.size(),"X-Goog-Upload-Header-Content-Type":ti.contentType,"Content-Type":"application/json; charset=utf-8"},Xi=En(ti,Zt),pr=new Un(hi,"POST",function Qr(ts){var jr;Os(ts);try{jr=ts.getResponseHeader("X-Goog-Upload-URL")}catch(ps){Qn(!1)}return Qn(Vn(jr)),jr},vt.maxUploadRetryTime);return pr.urlParams=pi,pr.headers=Pi,pr.body=Xi,pr.errorHandler=zi(pt),pr}(pt.service_,pt.location_,pt.mappings_,pt.blob_,pt.metadata_),Mn=pt.service_.makeRequest(yn,Zt);pt.request_=Mn,Mn.getPromise().then(function(jn){pt.request_=null,pt.uploadUrl_=jn,pt.needToFetchStatus_=!1,pt.completeTransitions_()},pt.errorHandler_)})},vt.prototype.fetchStatus_=function(){var pt=this,Zt=this.uploadUrl_;this.resolveToken_(function(yn){var Mn=function Js(vt,pt,Zt,yn){var hi=new Un(Zt,"POST",function jn(Di){var Pi=Os(Di,["active","final"]),Xi=null;try{Xi=Di.getResponseHeader("X-Goog-Upload-Size-Received")}catch(Qr){Qn(!1)}Xi||Qn(!1);var tr=Number(Xi);return Qn(!isNaN(tr)),new Qs(tr,yn.size(),"final"===Pi)},vt.maxUploadRetryTime);return hi.headers={"X-Goog-Upload-Command":"query"},hi.errorHandler=zi(pt),hi}(pt.service_,pt.location_,Zt,pt.blob_),jn=pt.service_.makeRequest
1(Mn,yn);pt.request_=jn,jn.getPromise().then(function(ti){pt.request_=null,pt.updateProgress_(ti.current),pt.needToFetchStatus_=!1,ti.finalized&&(pt.needToFetchMetadata_=!0),pt.completeTransitions_()},pt.errorHandler_)})},vt.prototype.continueUpload_=function(){var pt=this,Zt=262144*this.chunkMultiplier_,yn=new Qs(this.transferred_,this.blob_.size()),Mn=this.uploadUrl_;this.resolveToken_(function(jn){var ti;try{ti=function zr(vt,pt,Zt,yn,Mn,jn,ti,pi){var hi=new Qs(0,0);if(ti?(hi.current=ti.current,hi.total=ti.total):(hi.current=0,hi.total=yn.size()),yn.size()!==hi.total)throw function ut(){return new K("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.")}();var Di=hi.total-hi.current,Pi=Di;Mn>0&&(Pi=Math.min(Pi,Mn));var Xi=hi.current,pr={"X-Goog-Upload-Command":Pi===Di?"upload, finalize":"upload","X-Goog-Upload-Offset":hi.current},ts=yn.slice(Xi,Xi+Pi);if(null===ts)throw Be();var Rr=new Un(Zt,"POST",function jr(Us,Ss){var To,gs=Os(Us,["active","final"]),Ms=hi.current+Pi,io=yn.size();return To="final"===gs?vi(pt,jn)(Us,Ss):null,new Qs(Ms,io,"final"===gs,To)},pt.maxUploadRetryTime);return Rr.headers=pr,Rr.body=ts.uploadData(),Rr.progressCallback=pi||null,Rr.errorHandler=zi(vt),Rr}(pt.location_,pt.service_,Mn,pt.blob_,Zt,pt.mappings_,yn,pt.makeProgressCallback_())}catch(hi){return pt.error_=hi,void pt.transition_("error")}var pi=pt.service_.makeRequest(ti,jn);pt.request_=pi,pi.getPromise().then(function(hi){pt.increaseMultiplier_(),pt.request_=null,pt.updateProgress_(hi.current),hi.finalized?(pt.metadata_=hi.metadata,pt.transition_("success")):pt.completeTransitions_()},pt.errorHandler_)})},vt.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},vt.prototype.fetchMetadata_=function(){var pt=this;this.resolveToken_(function(Zt){var yn=Wi(pt.service_,pt.location_,pt.mappings_),Mn=pt.service_.makeRequest(yn,Zt);pt.request_=Mn,Mn.getPromise().then(function(jn){pt.request_=null,pt.metadata_=jn,pt.transition_("success")},pt.metadataErrorHandler_)})},vt.prototype.oneShotUpload_=function(){var pt=this;this.resolveToken_(function(Zt){var yn=function dr(vt,pt,Zt,yn,Mn){var jn=pt.bucketOnlyServerUrl(),ti={"X-Goog-Upload-Protocol":"multipart"},hi=function pi(){for(var Rr="",Us=0;Us<2;Us++)Rr+=Math.random().toString().slice(2);return Rr}();ti["Content-Type"]="multipart/related; boundary="+hi;var Di=Ds(pt,yn,Mn),Pi=En(Di,Zt),Qr=Ke.getBlob("--"+hi+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Pi+"\r\n--"+hi+"\r\nContent-Type: "+Di.contentType+"\r\n\r\n",yn,"\r\n--"+hi+"--");if(null===Qr)throw Be();var pr={name:Di.fullPath},ts=Tt(jn),ps=vt.maxUploadRetryTime,yr=new Un(ts,"POST",vi(vt,Zt),ps);return yr.urlParams=pr,yr.headers=ti,yr.body=Qr.uploadData(),yr.errorHandler=zi(pt),yr}(pt.service_,pt.location_,pt.mappings_,pt.blob_,pt.metadata_),Mn=pt.service_.makeRequest(yn,Zt);pt.request_=Mn,Mn.getPromise().then(function(jn){pt.request_=null,pt.metadata_=jn,pt.updateProgress_(pt.blob_.size()),pt.transition_("success")},pt.errorHandler_)})},vt.prototype.updateProgress_=function(pt){var Zt=this.transferred_;this.transferred_=pt,this.transferred_!==Zt&&this.notifyObservers_()},vt.prototype.transition_=function(pt){if(this.state_!==pt)switch(pt){case"canceling":case"pausing":this.state_=pt,null!==this.request_&&this.request_.cancel();break;case"running":var Zt="paused"===this.state_;this.state_=pt,Zt&&(this.notifyObservers_(),this.start_());break;case"paused":case"error":case"success":this.state_=pt,this.notifyObservers_();break;case"canceled":this.error_=ae(),this.state_=pt,this.notifyObservers_()}},vt.prototype.completeTransitions_=function(){switch(this.state_){case"pausing":this.transition_("paused");break;case"canceling":this.transition_("canceled");break;case"running":this.start_()}},Object.defineProperty(vt.prototype,"snapshot",{get:function(){var pt=Wt(this.state_);return new ar(this.transferred_,this.blob_.size(),pt,this.metadata_,this,this.ref_)},enumerable:!1,configurable:!0}),vt.prototype.on=function(pt,Zt,yn,Mn){function jn(){if(pt!==It.STATE_CHANGED)throw"Expected one of the event types: ["+It.STATE_CHANGED+"]."}var ti="Expected a function or an Object with one of `next`, `error`, `complete` properties.",pi=Ui(!0).validator,hi=xs(null,!0).validator;function Di(jr){try{return void pi(jr)}catch(yr){}try{if(hi(jr),!(Dn(jr.next)||Dn(jr.error)||Dn(jr.complete)))throw"";return}catch(yr){throw ti}}var Pi=[ls(jn),xs(Di,!0),Ui(!0),Ui(!0)];Wr("on",Pi,arguments);var Xi=this;function tr(jr){return function ps(yr,Rr,Us){null!==jr&&Wr("on",jr,arguments);var Ss=new Oo(yr,Rr,Mn);return Xi.addObserver_(Ss),function(){Xi.removeObserver_(Ss)}}}function Qr(jr){if(null===jr)throw ti;Di(jr)}var pr=[xs(Qr),Ui(!0),Ui(!0)],ts=!(Dn(Zt)||Dn(yn)||Dn(Mn));return ts?tr(pr):tr(null)(Zt,yn,Mn)},vt.prototype.then=function(pt,Zt){return this.promise_.then(pt,Zt)},vt.prototype.catch=function(pt){return this.then(null,pt)},vt.prototype.addObserver_=function(pt){this.observers_.push(pt),this.notifyObserver_(pt)},vt.prototype.removeObserver_=function(pt){var Zt=this.observers_.indexOf(pt);-1!==Zt&&this.observers_.splice(Zt,1)},vt.prototype.notifyObservers_=function(){var pt=this;
1this.finishPromise_(),this.observers_.slice().forEach(function(yn){pt.notifyObserver_(yn)})},vt.prototype.finishPromise_=function(){if(null!==this.resolve_){var pt=!0;switch(Wt(this.state_)){case Rt.SUCCESS:vr(this.resolve_.bind(null,this.snapshot))();break;case Rt.CANCELED:case Rt.ERROR:vr(this.reject_.bind(null,this.error_))();break;default:pt=!1}pt&&(this.resolve_=null,this.reject_=null)}},vt.prototype.notifyObserver_=function(pt){switch(Wt(this.state_)){case Rt.RUNNING:case Rt.PAUSED:pt.next&&vr(pt.next.bind(pt,this.snapshot))();break;case Rt.SUCCESS:pt.complete&&vr(pt.complete.bind(pt))();break;default:pt.error&&vr(pt.error.bind(pt,this.error_))()}},vt.prototype.resume=function(){Wr("resume",[],arguments);var pt="paused"===this.state_||"pausing"===this.state_;return pt&&this.transition_("running"),pt},vt.prototype.pause=function(){Wr("pause",[],arguments);var pt="running"===this.state_;return pt&&this.transition_("pausing"),pt},vt.prototype.cancel=function(){Wr("cancel",[],arguments);var pt="running"===this.state_||"pausing"===this.state_;return pt&&this.transition_("canceling"),pt},vt}(),Ps=function(){function vt(pt,Zt){this.service=pt,this.location=Zt instanceof Ne?Zt:Ne.makeFromUrl(Zt)}return vt.prototype.toString=function(){return Wr("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},vt.prototype.newRef=function(pt,Zt){return new vt(pt,Zt)},vt.prototype.mappings=function(){return function mi(){if(Xn)return Xn;var vt=[];vt.push(new xn("bucket")),vt.push(new xn("generation")),vt.push(new xn("metageneration")),vt.push(new xn("name","fullPath",!0));var Zt=new xn("name");Zt.xform=function pt(jn,ti){return function Ai(vt){return!Vn(vt)||vt.length<2?vt:je(vt)}(ti)},vt.push(Zt);var Mn=new xn("size");return Mn.xform=function yn(jn,ti){return Pt(ti)?Number(ti):ti},vt.push(Mn),vt.push(new xn("timeCreated")),vt.push(new xn("updated")),vt.push(new xn("md5Hash",null,!0)),vt.push(new xn("cacheControl",null,!0)),vt.push(new xn("contentDisposition",null,!0)),vt.push(new xn("contentEncoding",null,!0)),vt.push(new xn("contentLanguage",null,!0)),vt.push(new xn("contentType",null,!0)),vt.push(new xn("metadata","customMetadata",!0)),Xn=vt}()},vt.prototype.child=function(pt){Wr("child",[ls()],arguments);var Zt=Ye(this.location.path,pt),yn=new Ne(this.location.bucket,Zt);return this.newRef(this.service,yn)},Object.defineProperty(vt.prototype,"parent",{get:function(){var pt=function Oe(vt){if(0===vt.length)return null;var pt=vt.lastIndexOf("/");return-1===pt?"":vt.slice(0,pt)}(this.location.path);if(null===pt)return null;var Zt=new Ne(this.location.bucket,pt);return this.newRef(this.service,Zt)},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"root",{get:function(){var pt=new Ne(this.location.bucket,"");return this.newRef(this.service,pt)},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"name",{get:function(){return je(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),vt.prototype.put=function(pt,Zt){return void 0===Zt&&(Zt=null),Wr("put",[eo(),Kr(!0)],arguments),this.throwIfRoot_("put"),new Po(this,this.service,this.location,this.mappings(),new Ke(pt),Zt)},vt.prototype.putString=function(pt,Zt,yn){void 0===Zt&&(Zt=cn.RAW),Wr("putString",[ls(),ls(hn,!0),Kr(!0)],arguments),this.throwIfRoot_("putString");var Mn=ln(Zt,pt),jn=Object.assign({},yn);return!Pt(jn.contentType)&&Pt(Mn.contentType)&&(jn.contentType=Mn.contentType),new Po(this,this.service,this.location,this.mappings(),new Ke(Mn.data,!0),jn)},vt.prototype.delete=function(){var pt=this;return Wr("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then(function(Zt){var yn=vs(pt.service,pt.location);return pt.service.makeRequest(yn,Zt).getPromise()})},vt.prototype.listAll=function(){Wr("listAll",[],arguments);var pt={prefixes:[],items:[]};return this.listAllHelper(pt).then(function(){return pt})},vt.prototype.listAllHelper=function(pt,Zt){return G(this,void 0,void 0,function(){var Mn,jn,ti;return $(this,function(pi){switch(pi.label){case 0:return[4,this.list({pageToken:Zt})];case 1:return Mn=pi.sent(),(jn=pt.prefixes).push.apply(jn,Mn.prefixes),(ti=pt.items).push.apply(ti,Mn.items),null==Mn.nextPageToken?[3,3]:[4,this.listAllHelper(pt,Mn.nextPageToken)];case 2:pi.sent(),pi.label=3;case 3:return[2]}})})},vt.prototype.list=function(pt){Wr("list",[zs(!0)],arguments);var Zt=this;return this.service.getAuthToken().then(function(yn){var Mn=pt||{},jn=qs(Zt.service,Zt.location,"/",Mn.pageToken,Mn.maxResults);
1return Zt.service.makeRequest(jn,yn).getPromise()})},vt.prototype.getMetadata=function(){var pt=this;return Wr("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then(function(Zt){var yn=Wi(pt.service,pt.location,pt.mappings());return pt.service.makeRequest(yn,Zt).getPromise()})},vt.prototype.updateMetadata=function(pt){var Zt=this;return Wr("updateMetadata",[Kr()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then(function(yn){var Mn=or(Zt.service,Zt.location,pt,Zt.mappings());return Zt.service.makeRequest(Mn,yn).getPromise()})},vt.prototype.getDownloadURL=function(){var pt=this;return Wr("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then(function(Zt){var yn=fs(pt.service,pt.location,pt.mappings());return pt.service.makeRequest(yn,Zt).getPromise().then(function(Mn){if(null===Mn)throw Ge();return Mn})})},vt.prototype.throwIfRoot_=function(pt){if(""===this.location.path)throw function ht(vt){return new K("invalid-root-operation","The operation '"+vt+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(pt)},vt}(),Ao=function(){function vt(pt){this.promise_=Promise.reject(pt)}return vt.prototype.getPromise=function(){return this.promise_},vt.prototype.cancel=function(pt){},vt}(),Ar=function(){function vt(pt,Zt,yn,Mn,jn,ti,pi,hi,Di,Pi,Xi){var tr=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=pt,this.method_=Zt,this.headers_=yn,this.body_=Mn,this.successCodes_=jn.slice(),this.additionalRetryCodes_=ti.slice(),this.callback_=pi,this.errorCallback_=hi,this.progressCallback_=Pi,this.timeout_=Di,this.pool_=Xi,this.promise_=new Promise(function(Qr,pr){tr.resolve_=Qr,tr.reject_=pr,tr.start_()})}return vt.prototype.start_=function(){var pt=this;function yn(Mn,jn){var ti=pt.resolve_,pi=pt.reject_,hi=jn.xhr;if(jn.wasSuccessCode)try{var Di=pt.callback_(hi,hi.getResponseText());Dn(Di)?ti(Di):ti()}catch(Xi){pi(Xi)}else if(null!==hi)(Pi=he()).setServerResponseProp(hi.getResponseText()),pi(pt.errorCallback_?pt.errorCallback_(hi,Pi):Pi);else if(jn.canceled)pi(Pi=pt.appDelete_?Ft():ae());else{var Pi;pi(Pi=function ke(){return new K("retry-limit-exceeded","Max retry time for operation exceeded, please try again.")}())}}this.canceled_?yn(0,new lo(!1,null,!0)):this.backoffId_=function to(vt,pt,Zt){var yn=1,Mn=null,jn=!1,ti=0;function pi(){return 2===ti}var hi=!1;function Di(){for(var pr=[],ts=0;ts<arguments.length;ts++)pr[ts]=arguments[ts];hi||(hi=!0,pt.apply(null,pr))}function Pi(pr){Mn=setTimeout(function(){Mn=null,vt(Xi,pi())},pr)}function Xi(pr){for(var ts=[],jr=1;jr<arguments.length;jr++)ts[jr-1]=arguments[jr];if(!hi){if(pr)return void Di.call.apply(Di,me([null,pr],ts));var yr;if(pi()||jn)return void Di.call.apply(Di,me([null,pr],ts));yn<64&&(yn*=2),1===ti?(ti=2,yr=0):yr=1e3*(yn+Math.random()),Pi(yr)}}var tr=!1;function Qr(pr){tr||(tr=!0,!hi&&(null!==Mn?(pr||(ti=2),clearTimeout(Mn),Pi(0)):pr||(ti=1)))}return Pi(0),setTimeout(function(){jn=!0,Qr(!0)},Zt),Qr}(function Zt(Mn,jn){if(jn)Mn(!1,new lo(!1,null,!0));else{var ti=pt.pool_.createXhrIo();pt.pendingXhr_=ti,null!==pt.progressCallback_&&ti.addUploadProgressListener(pi),ti.send(pt.url_,pt.method_,pt.body_,pt.headers_).then(function(hi){null!==pt.progressCallback_&&hi.removeUploadProgressListener(pi),pt.pendingXhr_=null;var Di=hi.getErrorCode()===We.NO_ERROR,Pi=hi.getStatus();if(Di&&!pt.isRetryStatusCode_(Pi)){var tr=-1!==pt.successCodes_.indexOf(Pi);Mn(!0,new lo(tr,hi))}else{var Xi=hi.getErrorCode()===We.ABORT;Mn(!1,new lo(!1,null,Xi))}})}function pi(hi){null!==pt.progressCallback_&&pt.progressCallback_(hi.loaded,hi.lengthComputable?hi.total:-1)}},yn,this.timeout_)},vt.prototype.getPromise=function(){return this.promise_},vt.prototype.cancel=function(pt){this.canceled_=!0,this.appDelete_=pt||!1,null!==this.backoffId_&&function ms(vt){vt(!1)}(this.backoffId_),null!==this.pendingXhr_&&this.pendingXhr_.abort()},vt.prototype.isRetryStatusCode_=function(pt){var Zt=pt>=500&&pt<600,Mn=-1!==[408,429].indexOf(pt),jn=-1!==this.additionalRetryCodes_.indexOf(pt);return Zt||Mn||jn},vt}(),lo=function vt(pt,Zt,yn){this.wasSuccessCode=pt,this.xhr=Zt,this.canceled=!!yn};var no=function(){function vt(pt,Zt,yn,Mn){var jn;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=pt,this.authProvider_=Zt,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=yn,this.bucket_=null!=Mn?Ne.makeFromBucketSpec(Mn):vt.extractBucket_(null===(jn=this.app_)||void 0===jn?void 0:jn.options),this.internals_=new Fs(this)}return vt.extractBucket_=function(pt){var Zt=null==pt?void 0:pt.storageBucket;return null==Zt?null:Ne.makeFromBucketSpec(Zt)},vt.prototype.getAuthToken=function(){return G(this,void 0,void 0,function(){var pt,Zt;return $(this,function(yn){switch(yn.label){case 0:return(pt=this.authProvider_.getImmediate({optional:!0}))?[4,pt.getToken()]:[3,2];case 1:if(null!==(Zt=yn.sent()))return[2,Zt.accessToken];yn.label=2;case 2:return[2,null]}})})},vt.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach(function(pt){return pt.cancel()}),this.requests_.clear()},vt.prototype.makeStorageReference=function(pt){return new Ps(this,pt)},vt.prototype.makeRequest=function(pt,Zt){var yn=this;if(this.deleted_)return new Ao(Ft());
1var Mn=function Mo(vt,pt,Zt,yn){var Mn=rn(vt.urlParams),jn=vt.url+Mn,ti=Object.assign({},vt.headers);return function Xs(vt,pt){pt&&(vt["X-Firebase-GMPID"]=pt)}(ti,pt),function wo(vt,pt){null!==pt&&pt.length>0&&(vt.Authorization="Firebase "+pt)}(ti,Zt),function Nr(vt){vt["X-Firebase-Storage-Version"]="webjs/"+(void 0!==s.default?s.default.SDK_VERSION:"AppManager")}(ti),new Ar(jn,vt.method,ti,vt.body,vt.successCodes,vt.additionalRetryCodes,vt.handler,vt.errorHandler,vt.timeout,vt.progressCallback,yn)}(pt,this.appId_,Zt,this.pool_);return this.requests_.add(Mn),Mn.getPromise().then(function(){return yn.requests_.delete(Mn)},function(){return yn.requests_.delete(Mn)}),Mn},vt.prototype.ref=function(pt){function Zt(Mn){if("string"!=typeof Mn)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(Mn))throw"Expected child path but got a URL, use refFromURL instead."}if(Wr("ref",[ls(Zt,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var yn=new Ps(this,this.bucket_);return null!=pt?yn.child(pt):yn},vt.prototype.refFromURL=function(pt){function Zt(yn){if("string"!=typeof yn)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(yn))throw"Expected full URL but got a child path, use ref instead.";try{Ne.makeFromUrl(yn)}catch(Mn){throw"Expected valid full URL but got an invalid one."}}return Wr("refFromURL",[ls(Zt,!1)],arguments),new Ps(this,pt)},Object.defineProperty(vt.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),vt.prototype.setMaxUploadRetryTime=function(pt){Wr("setMaxUploadRetryTime",[Ro()],arguments),this.maxUploadRetryTime_=pt},Object.defineProperty(vt.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),vt.prototype.setMaxOperationRetryTime=function(pt){Wr("setMaxOperationRetryTime",[Ro()],arguments),this.maxOperationRetryTime_=pt},Object.defineProperty(vt.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(vt.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),vt}(),Fs=function(){function vt(pt){this.service_=pt}return vt.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},vt}();function bs(vt,pt){var Zt=vt.getProvider("app").getImmediate(),yn=vt.getProvider("auth-internal");return new no(Zt,yn,new Qe,pt)}function ws(vt){var pt={TaskState:Rt,TaskEvent:It,StringFormat:cn,Storage:no,Reference:Ps};vt.INTERNAL.registerComponent(new M.Component("storage",bs,"PUBLIC").setServiceProps(pt).setMultipleInstances(!0)),vt.registerVersion("@firebase/storage","0.3.43")}ws(s.default)},1270:(Qt,Z,S)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var s=S(8713),_={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},y=function(It,Et){if(!It)throw j(Et)},j=function(It){return new Error("Firebase Database ("+_.SDK_VERSION+") INTERNAL ASSERT FAILED: "+It)},D=function(It){for(var Et=[],Rt=0,Wt=0;Wt<It.length;Wt++){var Pt=It.charCodeAt(Wt);Pt<128?Et[Rt++]=Pt:Pt<2048?(Et[Rt++]=Pt>>6|192,Et[Rt++]=63&Pt|128):55296==(64512&Pt)&&Wt+1<It.length&&56320==(64512&It.charCodeAt(Wt+1))?(Pt=65536+((1023&Pt)<<10)+(1023&It.charCodeAt(++Wt)),Et[Rt++]=Pt>>18|240,Et[Rt++]=Pt>>12&63|128,Et[Rt++]=Pt>>6&63|128,Et[Rt++]=63&Pt|128):(Et[Rt++]=Pt>>12|224,Et[Rt++]=Pt>>6&63|128,Et[Rt++]=63&Pt|128)}return Et},ce={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:function(It,Et){if(!Array.isArray(It))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var Rt=Et?this.byteToCharMapWebSafe_:this.byteToCharMap_,Wt=[],Pt=0;Pt<It.length;Pt+=3){var Dn=It[Pt],Gn=Pt+1<It.length,Zn=Gn?It[Pt+1]:0,zn=Pt+2<It.length,nn=zn?It[Pt+2]:0,Rn=(15&Zn)<<2|nn>>6,Mt=63&nn;zn||(Mt=64,Gn||(Rn=64)),Wt.push(Rt[Dn>>2],Rt[(3&Dn)<<4|Zn>>4],Rt[Rn],Rt[Mt])}return Wt.join("")},encodeString:function(It,Et){return this.HAS_NATIVE_SUPPORT&&!Et?btoa(It):this.encodeByteArray(D(It),Et)},decodeString:function(It,Et){return this.HAS_NATIVE_SUPPORT&&!Et?atob(It):function(It){for(var Et=[],Rt=0,Wt=0;Rt<It.length;){var Pt=It[Rt++];if(Pt<128)Et[Wt++]=String.fromCharCode(Pt);else if(Pt>191&&Pt<224){var Dn=It[Rt++];Et[Wt++]=String.fromCharCode((31&Pt)<<6|63&Dn)}else if(Pt>239&&Pt<365){var zn=((7&Pt)<<18|(63&(Dn=It[Rt++]))<<12|(63&(Gn=It[Rt++]))<<6|63&It[Rt++])-65536;Et[Wt++]=String.fromCharCode(55296+(zn>>10)),Et[Wt++]=String.fromCharCode(56320+(1023&zn))}else{Dn=It[Rt++];var Gn=It[Rt++];
1Et[Wt++]=String.fromCharCode((15&Pt)<<12|(63&Dn)<<6|63&Gn)}}return Et.join("")}(this.decodeStringToByteArray(It,Et))},decodeStringToByteArray:function(It,Et){this.init_();for(var Rt=Et?this.charToByteMapWebSafe_:this.charToByteMap_,Wt=[],Pt=0;Pt<It.length;){var Dn=Rt[It.charAt(Pt++)],Zn=Pt<It.length?Rt[It.charAt(Pt)]:0,nn=++Pt<It.length?Rt[It.charAt(Pt)]:64,Yt=++Pt<It.length?Rt[It.charAt(Pt)]:64;if(++Pt,null==Dn||null==Zn||null==nn||null==Yt)throw Error();Wt.push(Dn<<2|Zn>>4),64!==nn&&(Wt.push(Zn<<4&240|nn>>2),64!==Yt&&Wt.push(nn<<6&192|Yt))}return Wt},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var It=0;It<this.ENCODED_VALS.length;It++)this.byteToCharMap_[It]=this.ENCODED_VALS.charAt(It),this.charToByteMap_[this.byteToCharMap_[It]]=It,this.byteToCharMapWebSafe_[It]=this.ENCODED_VALS_WEBSAFE.charAt(It),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[It]]=It,It>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(It)]=It,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(It)]=It)}}},G=function(It){try{return ce.decodeString(It,!0)}catch(Et){console.error("base64Decode failed: ",Et)}return null};function te(It,Et){if(!(Et instanceof Object))return Et;switch(Et.constructor){case Date:return new Date(Et.getTime());case Object:void 0===It&&(It={});break;case Array:It=[];break;default:return Et}for(var Wt in Et)!Et.hasOwnProperty(Wt)||(It[Wt]=te(It[Wt],Et[Wt]));return It}var le=function(){function It(){var Et=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(Rt,Wt){Et.resolve=Rt,Et.reject=Wt})}return It.prototype.wrapCallback=function(Et){var Rt=this;return function(Wt,Pt){Wt?Rt.reject(Wt):Rt.resolve(Pt),"function"==typeof Et&&(Rt.promise.catch(function(){}),1===Et.length?Et(Wt):Et(Wt,Pt))}},It}();function J(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Re(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(It){return!1}}var R=function(It){function Et(Rt,Wt){var Pt=It.call(this,Wt)||this;return Pt.code=Rt,Pt.name="FirebaseError",Object.setPrototypeOf(Pt,Et.prototype),Error.captureStackTrace&&Error.captureStackTrace(Pt,ee.prototype.create),Pt}return s.__extends(Et,It),Et}(Error),ee=function(){function It(Et,Rt,Wt){this.service=Et,this.serviceName=Rt,this.errors=Wt}return It.prototype.create=function(Et){for(var Rt=[],Wt=1;Wt<arguments.length;Wt++)Rt[Wt-1]=arguments[Wt];for(var Pt=Rt[0]||{},Dn=this.service+"/"+Et,Gn=this.errors[Et],Zn=Gn?B(Gn,Pt):"Error",zn=this.serviceName+": "+Zn+" ("+Dn+").",nn=new R(Dn,zn),Vn=0,Yt=Object.keys(Pt);Vn<Yt.length;Vn++){var Rn=Yt[Vn];"_"!==Rn.slice(-1)&&(Rn in nn&&console.warn('Overwriting FirebaseError base field "'+Rn+'" can cause unexpected behavior.'),nn[Rn]=Pt[Rn])}return nn},It}();function B(It,Et){return It.replace(K,function(Rt,Wt){var Pt=Et[Wt];return null!=Pt?String(Pt):"<"+Wt+"?>"})}var K=/\{\$([^}]+)}/g;function ge(It){return JSON.parse(It)}var he=function(It){var Et={},Rt={},Wt={},Pt="";try{var Dn=It.split(".");Et=ge(G(Dn[0])||""),Rt=ge(G(Dn[1])||""),Pt=Dn[2],Wt=Rt.d||{},delete Rt.d}catch(Gn){}return{header:Et,claims:Rt,data:Wt,signature:Pt}},Ge=function(){function It(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var Et=1;Et<this.blockSize;++Et)this.pad_[Et]=0;this.reset()}return It.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},It.prototype.compress_=function(Et,Rt){Rt||(Rt=0);var Wt=this.W_;if("string"==typeof Et)for(var Pt=0;Pt<16;Pt++)Wt[Pt]=Et.charCodeAt(Rt)<<24|Et.charCodeAt(Rt+1)<<16|Et.charCodeAt(Rt+2)<<8|Et.charCodeAt(Rt+3),Rt+=4;else for(Pt=0;Pt<16;Pt++)Wt[Pt]=Et[Rt]<<24|Et[Rt+1]<<16|Et[Rt+2]<<8|Et[Rt+3],Rt+=4;for(Pt=16;Pt<80;Pt++)Wt[Pt]=4294967295&((Dn=Wt[Pt-3]^Wt[Pt-8]^Wt[Pt-14]^Wt[Pt-16])<<1|Dn>>>31);var Yt,Rn,Gn=this.chain_[0],Zn=this.chain_[1],zn=this.chain_[2],nn=this.chain_[3],Vn=this.chain_[4];for(Pt=0;Pt<80;Pt++){Pt<40?Pt<20?(Yt=nn^Zn&(zn^nn),Rn=1518500249):(Yt=Zn^zn^nn,Rn=1859775393):Pt<60?(Yt=Zn&zn|nn&(Zn|zn),Rn=2400959708):(Yt=Zn^zn^nn,Rn=3395469782);var Dn=(Gn<<5|Gn>>>27)+Yt+Vn+Rn+Wt[Pt]&4294967295;Vn=nn,nn=zn,zn=4294967295&(Zn<<30|Zn>>>2),Zn=Gn,Gn=Dn}this.chain_[0]=this.chain_[0]+Gn&4294967295,this.chain_[1]=this.chain_[1]+Zn&4294967295,this.chain_[2]=this.chain_[2]+zn&4294967295,this.chain_[3]=this.chain_[3]+nn&4294967295,this.chain_[4]=this.chain_[4]+Vn&4294967295},It.prototype.update=function(Et,Rt){if(null!=Et){void 0===Rt&&(Rt=Et.length);for(var Wt=Rt-this.blockSize,Pt=0,Dn=this.buf_,Gn=this.inbuf_;Pt<Rt;){if(0===Gn)for(;Pt<=Wt;)this.compress_(Et,Pt),Pt+=this.blockSize;if("string"==typeof Et){for(;Pt<Rt;)if(Dn[Gn]=Et.charCodeAt(Pt),++Pt,++Gn===this.blockSize){this.compress_(Dn),Gn=0;break}}else for(;Pt<Rt;)if(Dn[Gn]=Et[Pt],++Pt,++Gn===this.blockSize){this.compress_(Dn),Gn=0;break}}this.inbuf_=Gn,this.total_+=Rt}},It.prototype.digest=function(){var Et=[],Rt=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var Wt=this.blockSize-1;Wt>=56;Wt--)this.buf_[Wt]=255&Rt,Rt/=256;this.compress_(this.buf_);var Pt=0;for(Wt=0;Wt<5;Wt++)for(var Dn=24;Dn>=0;Dn-=8)Et[Pt]=this.chain_[Wt]>>Dn&255,++Pt;return Et},It}(),Ot=function(){function It(Et,Rt){var Wt=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=Rt,this.task.then(function(){Et(Wt)}).catch(function(Pt){Wt.error(Pt)})}return It.prototype.next=function(Et){this.forEachObserver(function(Rt){Rt.next(Et)})},It.prototype.error=function(Et){this.forEachObserver(function(Rt){Rt.error(Et)}),this.close(Et)},It.prototype.complete=function(){this.forEachObserver(function(Et){Et.complete()}),this.close()},It.prototype.subscribe=function(Et,Rt,Wt){var Dn,Pt=this;if(void 0===Et&&void 0===Rt&&void 0===Wt)throw new Error("Missing Observer.");Dn=function ht(It,Et){if("object"!=typeof It||null===It)return!1;for(var Rt=0,Wt=Et;Rt<Wt.length;Rt++){var Pt=Wt[Rt];if(Pt in It&&"function"==typeof It[Pt])return!0}return!1}(Et,["next","error","complete"])?Et:{next:Et,error:Rt,complete:Wt},void 0===Dn.next&&(Dn.next=Ht),void 0===Dn.error&&(Dn.error=Ht),void 0===Dn.complete&&(Dn.complete=Ht);var Gn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{Pt.finalError?Dn.error(Pt.finalError):Dn.complete()}catch(Zn){}}),this.observers.push(Dn),Gn},It.prototype.unsubscribeOne=function(Et){void 0===this.observers||void 0===this.observers[Et]||(delete this.observers[Et],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},It.prototype.forEachObserver=function(Et){if(!this.finalized)for(var Rt=0;Rt<this.observers.length;Rt++)this.sendOne(Rt,Et)},It.prototype.sendOne=function(Et,Rt){var Wt=this;this.task.then(function(){if(void 0!==Wt.observers&&void 0!==Wt.observers[Et])try{Rt(Wt.observers[Et])}catch(Pt){"undefined"!=typeof console&&console.error&&console.error(Pt)}})},It.prototype.close=function(Et){var Rt=this;this.finalized||(this.finalized=!0,void 0!==Et&&(this.finalError=Et),this.task.then(function(){Rt.observers=void 0,Rt.onNoObservers=void 0}))},It}();function Ht(){}function cn(It,Et,Rt){var Wt="";switch(Et){case 1:Wt=Rt?"first":"First";break;case 2:Wt=Rt?"second":"Second";break;case 3:Wt=Rt?"third":"Third";break;case 4:Wt=Rt?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return It+" failed: "+(Wt+" argument ")}Z.CONSTANTS=_,Z.Deferred=le,Z.ErrorFactory=ee,Z.FirebaseError=R,Z.MAX_VALUE_MILLIS=144e5,Z.RANDOM_FACTOR=.5,Z.Sha1=Ge,Z.areCookiesEnabled=function M(){return!(!navigator||!navigator.cookieEnabled)},Z.assert=y,Z.assertionError=j,Z.async=function Ft(It,Et){return function(){for(var Rt=[],Wt=0;Wt<arguments.length;Wt++)Rt[Wt]=arguments[Wt];Promise.resolve(!0).then(function(){It.apply(void 0,Rt)}).catch(function(Pt){Et&&Et(Pt)})}},Z.base64=ce,Z.base64Decode=G,Z.base64Encode=function(It){var Et=D(It);return ce.encodeByteArray(Et,!0)},Z.calculateBackoffMillis=function un(It,Et,Rt){void 0===Et&&(Et=1e3),void 0===Rt&&(Rt=2);var Wt=Et*Math.pow(Rt,It),Pt=Math.round(.5*Wt*(Math.random()-.5)*2);return Math.min(144e5,Wt+Pt)},Z.contains=function ke(It,Et){return Object.prototype.hasOwnProperty.call(It,Et)},Z.createSubscribe=function wt(It,Et){var Rt=new Ot(It,Et);return Rt.subscribe.bind(Rt)},Z.decode=he,Z.deepCopy=function $(It){return te(void 0,It)},Z.deepExtend=te,Z.errorPrefix=cn,Z.getUA=J,Z.isAdmin=function(It){var Et=he(It).claims;return"object"==typeof Et&&!0===Et.admin},Z.isBrowser=function me(){return"object"==typeof self&&self.self===self},Z.isBrowserExtension=function Q(){var It="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof It&&void 0!==It.id},Z.isElectron=function N(){return J().indexOf("Electron/")>=0},Z.isEmpty=function Ce(It){for(var Et in It)if(Object.prototype.hasOwnProperty.call(It,Et))return!1;return!0},Z.isIE=function Y(){var It=J();return It.indexOf("MSIE ")>=0||It.indexOf("Trident/")>=0},Z.isIndexedDBAvailable=function ne(){return"indexedDB"in self&&null!=indexedDB},Z.isMobileCordova=function Me(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(J())},Z.isNode=Re,Z.isNodeSdk=function re(){return!0===_.NODE_CLIENT||!0===_.NODE_ADMIN},Z.isReactNative=function P(){return"object"==typeof navigator&&"ReactNative"===navigator.product},Z.isSafari=function V(){return!Re()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},Z.isUWP=function de(){return J().indexOf("MSAppHost/")>=0},Z.isValidFormat=function(It){var Rt=he(It).claims;return!!Rt&&"object"==typeof Rt&&Rt.hasOwnProperty("iat")},Z.isValidTimestamp=function(It){var Et=he(It).claims,Rt=Math.floor((new Date).getTime()/1e3),Wt=0,Pt=0;return"object"==typeof Et&&(Et.hasOwnProperty("nbf")?Wt=Et.nbf:Et.hasOwnProperty("iat")&&(Wt=Et.iat),Pt=Et.hasOwnProperty("exp")?Et.exp:Wt+86400),!!Rt&&!!Wt&&!!Pt&&Rt>=Wt&&Rt<=Pt},Z.issuedAtTime=function(It){var Et=he(It).claims;return"object"==typeof Et&&Et.hasOwnProperty("iat")?Et.iat:null},Z.jsonEval=ge,Z.map=function Ve(It,Et,Rt){var Wt={};for(var Pt in It)Object.prototype.hasOwnProperty.call(It,Pt)&&(Wt[Pt]=Et.call(Rt,It[Pt],Pt,It));return Wt},Z.querystring=function Be(It){for(var Et=[],Rt=function(zn,nn){Array.isArray(nn)?nn.forEach(function(Vn){Et.push(encodeURIComponent(zn)+"="+encodeURIComponent(Vn))}):Et.push(encodeURIComponent(zn)+"="+encodeURIComponent(nn))},Wt=0,Pt=Object.entries(It);Wt<Pt.length;Wt++){var Dn=Pt[Wt];Rt(Dn[0],Dn[1])}return Et.length?"&"+Et.join("&"):""},Z.querystringDecode=function ut(It){var Et={};return It.replace(/^\?/,"").split("&").forEach(function(Wt){if(Wt){var Pt=Wt.split("=");Et[Pt[0]]=Pt[1]}}),Et}
1,Z.safeGet=function ae(It,Et){if(Object.prototype.hasOwnProperty.call(It,Et))return It[Et]},Z.stringLength=function(It){for(var Et=0,Rt=0;Rt<It.length;Rt++){var Wt=It.charCodeAt(Rt);Wt<128?Et++:Wt<2048?Et+=2:Wt>=55296&&Wt<=56319?(Et+=4,Rt++):Et+=3}return Et},Z.stringToByteArray=function(It){for(var Et=[],Rt=0,Wt=0;Wt<It.length;Wt++){var Pt=It.charCodeAt(Wt);if(Pt>=55296&&Pt<=56319){var Dn=Pt-55296;Wt++,y(Wt<It.length,"Surrogate pair missing trail surrogate."),Pt=65536+(Dn<<10)+(It.charCodeAt(Wt)-56320)}Pt<128?Et[Rt++]=Pt:Pt<2048?(Et[Rt++]=Pt>>6|192,Et[Rt++]=63&Pt|128):Pt<65536?(Et[Rt++]=Pt>>12|224,Et[Rt++]=Pt>>6&63|128,Et[Rt++]=63&Pt|128):(Et[Rt++]=Pt>>18|240,Et[Rt++]=Pt>>12&63|128,Et[Rt++]=Pt>>6&63|128,Et[Rt++]=63&Pt|128)}return Et},Z.stringify=function Fe(It){return JSON.stringify(It)},Z.validateArgCount=function(It,Et,Rt,Wt){var Pt;if(Wt<Et?Pt="at least "+Et:Wt>Rt&&(Pt=0===Rt?"none":"no more than "+Rt),Pt)throw new Error(It+" failed: Was called with "+Wt+(1===Wt?" argument.":" arguments.")+" Expects "+Pt+".")},Z.validateCallback=function vn(It,Et,Rt,Wt){if((!Wt||Rt)&&"function"!=typeof Rt)throw new Error(cn(It,Et,Wt)+"must be a valid function.")},Z.validateContextObject=function ln(It,Et,Rt,Wt){if((!Wt||Rt)&&("object"!=typeof Rt||null===Rt))throw new Error(cn(It,Et,Wt)+"must be a valid context object.")},Z.validateIndexedDBOpenable=function E(){return new Promise(function(It,Et){try{var Rt=!0,Wt="validate-browser-context-for-indexeddb-analytics-module",Pt=window.indexedDB.open(Wt);Pt.onsuccess=function(){Pt.result.close(),Rt||window.indexedDB.deleteDatabase(Wt),It(!0)},Pt.onupgradeneeded=function(){Rt=!1},Pt.onerror=function(){var Dn;Et((null===(Dn=Pt.error)||void 0===Dn?void 0:Dn.message)||"")}}catch(Dn){Et(Dn)}})},Z.validateNamespace=function hn(It,Et,Rt,Wt){if((!Wt||Rt)&&"string"!=typeof Rt)throw new Error(cn(It,Et,Wt)+"must be a valid firebase namespace.")}},670:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{ErrorCode:()=>Es,EventType:()=>Vr,WebChannel:()=>es,XhrIo:()=>As,createWebChannelTransport:()=>$r,default:()=>rs});var s=function(H,nt){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(At,fn){At.__proto__=fn}||function(At,fn){for(var Fn in fn)Object.prototype.hasOwnProperty.call(fn,Fn)&&(At[Fn]=fn[Fn])})(H,nt)};function y(H){var nt="function"==typeof Symbol&&Symbol.iterator,At=nt&&H[nt],fn=0;if(At)return At.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&fn>=H.length&&(H=void 0),{value:H&&H[fn++],done:!H}}};throw new TypeError(nt?"Object is not iterable.":"Symbol.iterator is not defined.")}var D,j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},L=L||{},ce=j||self;function W(){}function G(H){var nt=typeof H;return"object"!=nt?nt:H?Array.isArray(H)?"array":nt:"null"}function $(H){var nt=G(H);return"array"==nt||"object"==nt&&"number"==typeof H.length}function te(H){var nt=typeof H;return"object"==nt&&null!=H||"function"==nt}var J="closure_uid_"+(1e9*Math.random()>>>0),Me=0;function Re(H,nt,At){return H.call.apply(H.bind,arguments)}function me(H,nt,At){if(!H)throw Error();if(2<arguments.length){var fn=Array.prototype.slice.call(arguments,2);return function(){var Fn=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Fn,fn),H.apply(nt,Fn)}}return function(){return H.apply(nt,arguments)}}function Q(H,nt,At){return(Q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Re:me).apply(null,arguments)}function P(H,nt){var At=Array.prototype.slice.call(arguments,1);return function(){var fn=At.slice();return fn.push.apply(fn,arguments),H.apply(this,fn)}}var N=Date.now;function Y(H,nt){function At(){}At.prototype=nt.prototype,H.S=nt.prototype,H.prototype=new At,H.prototype.constructor=H}function de(){this.j=this.j,this.i=this.i}de.prototype.j=!1,de.prototype.ja=function(){!this.j&&(this.j=!0,this.G(),0)&&function le(H){Object.prototype.hasOwnProperty.call(H,J)&&H[J]||(H[J]=++Me)}(this)},de.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var V=Array.prototype.indexOf?function(H,nt){return Array.prototype.indexOf.call(H,nt,void 0)}:function(H,nt){if("string"==typeof H)return"string"!=typeof nt||1!=nt.length?-1:H.indexOf(nt,0);for(var At=0;At<H.length;At++)if(At in H&&H[At]===nt)return At;return-1},ne=Array.prototype.forEach?function(H,nt,At){Array.prototype.forEach.call(H,nt,At)}:function(H,nt,At){for(var fn=H.length,Fn="string"==typeof H?H.split(""):H,qn=0;qn<fn;qn++)qn in Fn&&nt.call(At,Fn[qn],qn,H)};function M(H){return Array.prototype.concat.apply([],arguments)}function A(H){var nt=H.length;if(0<nt){for(var At=Array(nt),fn=0;fn<nt;fn++)At[fn]=H[fn];return At}return[]}
vendor: 5,248 bytes, line 1
1function R(H){return/^[\s\xa0]*$/.test(H)}var ge,ee=String.prototype.trim?function(H){return H.trim()}:function(H){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(H)[1]};function B(H,nt){return-1!=H.indexOf(nt)}function K(H,nt){return H<nt?-1:H>nt?1:0}e:{var Fe=ce.navigator;if(Fe){var he=Fe.userAgent;if(he){ge=he;break e}}ge=""}function fe(H,nt,At){for(var fn in H)nt.call(At,H[fn],fn,H)}function Ie(H){var nt={};for(var At in H)nt[At]=H[At];return nt}var Se="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function pe(H,nt){for(var At,fn,Fn=1;Fn<arguments.length;Fn++){for(At in fn=arguments[Fn])H[At]=fn[At];for(var qn=0;qn<Se.length;qn++)At=Se[qn],Object.prototype.hasOwnProperty.call(fn,At)&&(H[At]=fn[At])}}function ke(H){return ke[" "](H),H}ke[" "]=W;var Ft,H,Ce=B(ge,"Opera"),Ve=B(ge,"Trident")||B(ge,"MSIE"),Be=B(ge,"Edge"),ut=Be||Ve,Ge=B(ge,"Gecko")&&!(B(ge.toLowerCase(),"webkit")&&!B(ge,"Edge"))&&!(B(ge,"Trident")||B(ge,"MSIE"))&&!B(ge,"Edge"),wt=B(ge.toLowerCase(),"webkit")&&!B(ge,"Edge");function Ot(){var H=ce.document;return H?H.documentMode:void 0}e:{var ht="",Ht=(H=ge,Ge?/rv:([^\);]+)(\)|;)/.exec(H):Be?/Edge\/([\d\.]+)/.exec(H):Ve?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(H):wt?/WebKit\/(\S+)/.exec(H):Ce?/(?:Version)[ \/]?(\S+)/.exec(H):void 0);if(Ht&&(ht=Ht?Ht[1]:""),Ve){var jt=Ot();if(null!=jt&&jt>parseFloat(ht)){Ft=String(jt);break e}}Ft=ht}var cn={};function hn(H){return function ae(H,nt){var At=cn;return Object.prototype.hasOwnProperty.call(At,H)?At[H]:At[H]=nt(H)}(H,function(){for(var nt=0,At=ee(String(Ft)).split("."),fn=ee(String(H)).split("."),Fn=Math.max(At.length,fn.length),qn=0;0==nt&&qn<Fn;qn++){var Hi=At[qn]||"",yi=fn[qn]||"";do{if(Hi=/(\d*)(\D*)(.*)/.exec(Hi)||["","","",""],yi=/(\d*)(\D*)(.*)/.exec(yi)||["","","",""],0==Hi[0].length&&0==yi[0].length)break;nt=K(0==Hi[1].length?0:parseInt(Hi[1],10),0==yi[1].length?0:parseInt(yi[1],10))||K(0==Hi[2].length,0==yi[2].length)||K(Hi[2],yi[2]),Hi=Hi[3],yi=yi[3]}while(0==nt)}return 0<=nt})}var Jt=ce.document&&Ve&&(Ot()||parseInt(Ft,10))||void 0,Xe=!Ve||9<=Number(Jt),qe=Ve&&!hn("9"),Pe=function(){if(!ce.addEventListener||!Object.defineProperty)return!1;var H=!1,nt=Object.defineProperty({},"passive",{get:function(){H=!0}});try{ce.addEventListener("test",W,nt),ce.removeEventListener("test",W,nt)}catch(At){}return H}();function tt(H,nt){this.type=H,this.a=this.target=nt,this.defaultPrevented=!1}function bt(H,nt){if(tt.call(this,H?H.type:""),this.relatedTarget=this.a=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.pointerId=0,this.pointerType="",this.c=null,H){var At=this.type=H.type,fn=H.changedTouches&&H.changedTouches.length?H.changedTouches[0]:null;if(this.target=H.target||H.srcElement,this.a=nt,nt=H.relatedTarget){if(Ge){e:{try{ke(nt.nodeName);var Fn=!0;break e}catch(qn){}Fn=!1}Fn||(nt=null)}}else"mouseover"==At?nt=H.fromElement:"mouseout"==At&&(nt=H.toElement);this.relatedTarget=nt,fn?(this.clientX=void 0!==fn.clientX?fn.clientX:fn.pageX,this.clientY=void 0!==fn.clientY?fn.clientY:fn.pageY,this.screenX=fn.screenX||0,this.screenY=fn.screenY||0):(this.clientX=void 0!==H.clientX?H.clientX:H.pageX,this.clientY=void 0!==H.clientY?H.clientY:H.pageY,this.screenX=H.screenX||0,this.screenY=H.screenY||0),this.button=H.button,this.key=H.key||"",this.ctrlKey=H.ctrlKey,this.altKey=H.altKey,this.shiftKey=H.shiftKey,this.metaKey=H.metaKey,this.pointerId=H.pointerId||0,this.pointerType="string"==typeof H.pointerType?H.pointerType:un[H.pointerType]||"",this.c=H,H.defaultPrevented&&this.b()}}tt.prototype.b=function(){this.defaultPrevented=!0},Y(bt,tt);var un={2:"touch",3:"pen",4:"mouse"};bt.prototype.b=function(){bt.S.b.call(this);var H=this.c;if(H.preventDefault)H.preventDefault();else if(H.returnValue=!1,qe)try{(H.ctrlKey||112<=H.keyCode&&123>=H.keyCode)&&(H.keyCode=-1)}catch(nt){}};var It="closure_listenable_"+(1e6*Math.random()|0),Et=0;function Rt(H,nt,At,fn,Fn){this.listener=H,this.proxy=null,this.src=nt,this.type=At,this.capture=!!fn,this.ca=Fn,this.key=++Et,this.Y=this.Z=!1}function Wt(H){H.Y=!0,H.listener=null,H.proxy=null,H.src=null,H.ca=null}function Pt(H){this.src=H,this.a={},this.b=0}function Dn(H,nt){var At=nt.type;if(At in H.a){var qn,fn=H.a[At],Fn=V(fn,nt);(qn=0<=Fn)&&Array.prototype.splice.call(fn,Fn,1),qn&&(Wt(nt),0==H.a[At].length&&(delete H.a[At],H.b--))}}function Gn(H,nt,At,fn){for(var Fn=0;Fn<H.length;++Fn){var qn=H[Fn];if(!qn.Y&&qn.listener==nt&&qn.capture==!!At&&qn.ca==fn)return Fn}return-1}Pt.prototype.add=function(H,nt,At,fn,Fn){var qn=H.toString();(H=this.a[qn])||(H=this.a[qn]=[],this.b++);var Hi=Gn(H,nt,fn,Fn);return-1<Hi?(nt=H[Hi],At||(nt.Z=!1)):((nt=new Rt(nt,this.src,qn,!!fn,Fn)).Z=At,H.push(nt)),nt};var Zn="closure_lm_"+(1e6*Math.random()|0),zn={};function nn(H,nt,At,fn,Fn){if(fn&&fn.once)return Rn(H,nt,At,fn,Fn);if(Array.isArray(nt)){for(var qn=0;qn<nt.length;qn++)nn(H,nt[qn],At,fn,Fn);return null}return At=Gt(At),H&&H[It]?H.va(nt,At,te(fn)?!!fn.capture:!!fn,Fn):Vn(H,nt,At,!1,fn,Fn)}function Vn(H,nt,At,fn,Fn,qn){if(!nt)throw Error("Invalid event type");var Hi=te(Fn)?!!Fn.capture:!!Fn;if(Hi&&!Xe)return null;var yi=Lt(H);
1if(yi||(H[Zn]=yi=new Pt(H)),(At=yi.add(nt,At,fn,Hi,qn)).proxy)return At;if(fn=function Yt(){var H=Qe,nt=Xe?function(At){return H.call(nt.src,nt.listener,At)}:function(At){if(!(At=H.call(nt.src,nt.listener,At)))return At};return nt}(),At.proxy=fn,fn.src=H,fn.listener=At,H.addEventListener)Pe||(Fn=Hi),void 0===Fn&&(Fn=!1),H.addEventListener(nt.toString(),fn,Fn);else if(H.attachEvent)H.attachEvent(We(nt.toString()),fn);else{if(!H.addListener||!H.removeListener)throw Error("addEventListener and attachEvent are unavailable.");H.addListener(fn)}return At}function Rn(H,nt,At,fn,Fn){if(Array.isArray(nt)){for(var qn=0;qn<nt.length;qn++)Rn(H,nt[qn],At,fn,Fn);return null}return At=Gt(At),H&&H[It]?H.wa(nt,At,te(fn)?!!fn.capture:!!fn,Fn):Vn(H,nt,At,!0,fn,Fn)}function Mt(H,nt,At,fn,Fn){if(Array.isArray(nt))for(var qn=0;qn<nt.length;qn++)Mt(H,nt[qn],At,fn,Fn);else fn=te(fn)?!!fn.capture:!!fn,At=Gt(At),H&&H[It]?(H=H.c,(nt=String(nt).toString())in H.a&&-1<(At=Gn(qn=H.a[nt],At,fn,Fn))&&(Wt(qn[At]),Array.prototype.splice.call(qn,At,1),0==qn.length&&(delete H.a[nt],H.b--))):H&&(H=Lt(H))&&(nt=H.a[nt.toString()],H=-1,nt&&(H=Gn(nt,At,fn,Fn)),(At=-1<H?nt[H]:null)&&kt(At))}function kt(H){if("number"!=typeof H&&H&&!H.Y){var nt=H.src;if(nt&&nt[It])Dn(nt.c,H);else{var At=H.type,fn=H.proxy;nt.removeEventListener?nt.removeEventListener(At,fn,H.capture):nt.detachEvent?nt.detachEvent(We(At),fn):nt.addListener&&nt.removeListener&&nt.removeListener(fn),(At=Lt(nt))?(Dn(At,H),0==At.b&&(At.src=null,nt[Zn]=null)):Wt(H)}}}function We(H){return H in zn?zn[H]:zn[H]="on"+H}function Ue(H,nt){var At=H.listener,fn=H.ca||H.src;return H.Z&&kt(H),At.call(fn,nt)}function Qe(H,nt){if(H.Y)return!0;if(!Xe){if(!nt)e:{nt=["window","event"];for(var At=ce,fn=0;fn<nt.length;fn++)if(null==(At=At[nt[fn]])){nt=null;break e}nt=At}return Ue(H,nt=new bt(nt,this))}return Ue(H,new bt(nt,this))}function Lt(H){return(H=H[Zn])instanceof Pt?H:null}var xt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Gt(H){return"function"==G(H)?H:(H[xt]||(H[xt]=function(nt){return H.handleEvent(nt)}),H[xt])}function Ke(){de.call(this),this.c=new Pt(this),this.J=this,this.C=null}function Ne(H,nt,At,fn){if(!(nt=H.c.a[String(nt)]))return!0;nt=nt.concat();for(var Fn=!0,qn=0;qn<nt.length;++qn){var Hi=nt[qn];if(Hi&&!Hi.Y&&Hi.capture==At){var yi=Hi.listener,xi=Hi.ca||Hi.src;Hi.Z&&Dn(H.c,Hi),Fn=!1!==yi.call(xi,fn)&&Fn}}return Fn&&!fn.defaultPrevented}Y(Ke,de),Ke.prototype[It]=!0,(D=Ke.prototype).addEventListener=function(H,nt,At,fn){nn(this,H,nt,At,fn)},D.removeEventListener=function(H,nt,At,fn){Mt(this,H,nt,At,fn)},D.dispatchEvent=function(H){var nt,At=this.C;if(At)for(nt=[];At;At=At.C)nt.push(At);At=this.J;var fn=H.type||H;if("string"==typeof H)H=new tt(H,At);else if(H instanceof tt)H.target=H.target||At;else{var Fn=H;pe(H=new tt(fn,At),Fn)}if(Fn=!0,nt)for(var qn=nt.length-1;0<=qn;qn--){var Hi=H.a=nt[qn];Fn=Ne(Hi,fn,!0,H)&&Fn}if(Fn=Ne(Hi=H.a=At,fn,!0,H)&&Fn,Fn=Ne(Hi,fn,!1,H)&&Fn,nt)for(qn=0;qn<nt.length;qn++)Fn=Ne(Hi=H.a=nt[qn],fn,!1,H)&&Fn;return Fn},D.G=function(){if(Ke.S.G.call(this),this.c){var nt,H=this.c;for(nt in H.a){for(var At=H.a[nt],fn=0;fn<At.length;fn++)Wt(At[fn]);delete H.a[nt],H.b--}}this.C=null},D.va=function(H,nt,At,fn){return this.c.add(String(H),nt,!1,At,fn)},D.wa=function(H,nt,At,fn){return this.c.add(String(H),nt,!0,At,fn)};var Ae=ce.JSON.stringify;function Oe(){this.b=this.a=null}var xn,Ye=new(function(){function H(nt,At,fn){this.f=fn,this.c=nt,this.g=At,this.b=0,this.a=null}return H.prototype.get=function(){var nt;return 0<this.b?(this.b--,this.a=(nt=this.a).next,nt.next=null):nt=this.c(),nt},H}())(function(){return new Tt},function(H){H.reset()},100);function je(){var H=mi,nt=null;return H.a&&(nt=H.a,H.a=H.a.next,H.a||(H.b=null),nt.next=null),nt}function Tt(){this.next=this.b=this.a=null}function rn(H){ce.setTimeout(function(){throw H},0)}function On(H,nt){xn||function Xn(){var H=ce.Promise.resolve(void 0);xn=function(){H.then(fi)}}(),Ai||(xn(),Ai=!0),mi.add(H,nt)}Oe.prototype.add=function(H,nt){var At=Ye.get();At.set(H,nt),this.b?this.b.next=At:this.a=At,this.b=At},Tt.prototype.set=function(H,nt){this.a=H,this.b=nt,this.next=null},Tt.prototype.reset=function(){this.next=this.b=this.a=null};var Ai=!1,mi=new Oe;function fi(){for(var H;H=je();){try{H.a.call(H.b)}catch(At){rn(At)}var nt=Ye;nt.g(H),nt.b<nt.f&&(nt.b++,H.next=nt.a,nt.a=H)}Ai=!1}function Ki(H,nt){Ke.call(this),this.b=H||1,this.a=nt||ce,this.f=Q(this.Ya,this),this.g=N()}function pn(H){H.aa=!1,H.M&&(H.a.clearTimeout(H.M),H.M=null)}function gn(H,nt,At){if("function"==G(H))At&&(H=Q(H,At));else{if(!H||"function"!=typeof H.handleEvent)throw Error("Invalid listener argument");H=Q(H.handleEvent,H)}return 2147483647<Number(nt)?-1:ce.setTimeout(H,nt||0)}
vendor: 31,553 bytes, line 1
1function En(H){H.a=gn(function(){H.a=null,H.c&&(H.c=!1,En(H))},H.h);var nt=H.b;H.b=null,H.g.apply(null,nt)}Y(Ki,Ke),(D=Ki.prototype).aa=!1,D.M=null,D.Ya=function(){if(this.aa){var H=N()-this.g;0<H&&H<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-H):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(pn(this),this.start()))}},D.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=N())},D.G=function(){Ki.S.G.call(this),pn(this),delete this.a};var rt=function(H){function nt(At,fn,Fn){var qn=H.call(this)||this;return qn.g=null!=Fn?At.bind(Fn):At,qn.h=fn,qn.b=null,qn.c=!1,qn.a=null,qn}return function _(H,nt){function At(){this.constructor=H}s(H,nt),H.prototype=null===nt?Object.create(nt):(At.prototype=nt.prototype,new At)}(nt,H),nt.prototype.f=function(At){this.b=arguments,this.a?this.c=!0:En(this)},nt.prototype.G=function(){H.prototype.G.call(this),this.a&&(ce.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},nt}(de);function it(H){de.call(this),this.b=H,this.a={}}Y(it,de);var ue=[];function ve(H,nt,At,fn){Array.isArray(At)||(At&&(ue[0]=At.toString()),At=ue);for(var Fn=0;Fn<At.length;Fn++){var qn=nn(nt,At[Fn],fn||H.handleEvent,!1,H.b||H);if(!qn)break;H.a[qn.key]=qn}}function at(H){fe(H.a,function(nt,At){this.a.hasOwnProperty(At)&&kt(nt)},H),H.a={}}function q(){this.a=!0}function Xt(H,nt,At,fn){H.info(function(){return"XMLHTTP TEXT ("+nt+"): "+function Qn(H,nt){if(!H.a)return nt;if(!nt)return null;try{var At=JSON.parse(nt);if(At)for(H=0;H<At.length;H++)if(Array.isArray(At[H])){var fn=At[H];if(!(2>fn.length)){var Fn=fn[1];if(Array.isArray(Fn)&&!(1>Fn.length)){var qn=Fn[0];if("noop"!=qn&&"stop"!=qn&&"close"!=qn)for(var Hi=1;Hi<Fn.length;Hi++)Fn[Hi]=""}}}return Ae(At)}catch(yi){return nt}}(H,At)+(fn?" "+fn:"")})}it.prototype.G=function(){it.S.G.call(this),at(this)},it.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},q.prototype.info=function(){};var vi=null;function li(){return vi=vi||new Ke}function mr(H){tt.call(this,"serverreachability",H)}function zi(H){var nt=li();nt.dispatchEvent(new mr(nt,H))}function hr(H){tt.call(this,"statevent",H)}function Wi(H){var nt=li();nt.dispatchEvent(new hr(nt,H))}function qs(H){tt.call(this,"timingevent",H)}function fs(H,nt){if("function"!=G(H))throw Error("Fn must not be null and must be a function");return ce.setTimeout(function(){H()},nt)}Y(mr,tt),Y(hr,tt),Y(qs,tt);var or={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},vs={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function go(){}function dr(){}go.prototype.a=null;var Js,Qs={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function Os(){tt.call(this,"d")}function Rs(){tt.call(this,"c")}function qr(){}function zr(H,nt,At,fn){this.g=H,this.c=nt,this.f=At,this.T=fn||1,this.J=new it(this),this.P=Oo,this.R=new Ki(H=ut?125:void 0),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}Y(Os,tt),Y(Rs,tt),Y(qr,go),Js=new qr;var Oo=45e3,ar={},Wr={};function ys(H,nt,At){H.H=1,H.i=mo(Nr(nt)),H.j=At,H.I=!0,fr(H,null)}function fr(H,nt){H.u=N(),Kr(H),H.l=Nr(H.i);var At=H.l,fn=H.T;Array.isArray(fn)||(fn=[String(fn)]),Xi(At.b,"t",fn),H.D=0,H.a=Ji(H.g,H.g.C?nt:null),0<H.O&&(H.F=new rt(Q(H.Ca,H,H.a),H.O)),ve(H.J,H.a,"readystatechange",H.Wa),nt=H.B?Ie(H.B):{},H.j?(H.m||(H.m="POST"),nt["Content-Type"]="application/x-www-form-urlencoded",H.a.ba(H.l,H.m,H.j,nt)):(H.m="GET",H.a.ba(H.l,H.m,null,nt)),zi(1),function xe(H,nt,At,fn,Fn,qn){H.info(function(){if(H.a)if(qn)for(var Hi="",yi=qn.split("&"),xi=0;xi<yi.length;xi++){var nr=yi[xi].split("=");if(1<nr.length){var Er=nr[0];nr=nr[1];var $e=Er.split("_");Hi=2<=$e.length&&"type"==$e[1]?Hi+(Er+"=")+nr+"&":Hi+(Er+"=redacted&")}}else Hi=null;else Hi=qn;return"XMLHTTP REQ ("+fn+") [attempt "+Fn+"]: "+nt+"\n"+At+"\n"+Hi})}(H.c,H.m,H.l,H.f,H.T,H.j)}function ls(H,nt,At){for(var fn=!0;!H.A&&H.D<At.length;){var Fn=eo(H,At);if(Fn==Wr){4==nt&&(H.h=4,Wi(14),fn=!1),Xt(H.c,H.f,null,"[Incomplete Response]");break}if(Fn==ar){H.h=4,Wi(15),Xt(H.c,H.f,At,"[Invalid Chunk]"),fn=!1;break}Xt(H.c,H.f,Fn,null),vr(H,Fn)}4==nt&&0==At.length&&(H.h=1,Wi(16),fn=!1),H.b=H.b&&fn,fn?0<At.length&&!H.W&&(H.W=!0,(nt=H.g).a==H&&nt.V&&!nt.F&&(nt.c.info("Great, no buffering proxy detected. Bytes received: "+At.length),gt(nt),nt.F=!0)):(Xt(H.c,H.f,At,"[Invalid Chunked Response]"),Ui(H),xs(H))}function eo(H,nt){var At=H.D,fn=nt.indexOf("\n",At);return-1==fn?Wr:(At=Number(nt.substring(At,fn)),isNaN(At)?ar:(fn+=1)+At>nt.length?Wr:(nt=nt.substr(fn,At),H.D=fn+At,nt))}function Kr(H){H.U=N()+H.P,zs(H,H.P)}function zs(H,nt){if(null!=H.o)throw Error("WatchDog timer not null");H.o=fs(Q(H.Ua,H),nt)}function Ro(H){H.o&&(ce.clearTimeout(H.o),H.o=null)}function xs(H){0==H.g.v||H.A||kn(H.g,H)}function Ui(H){Ro(H);var nt=H.F;nt&&"function"==typeof nt.ja&&nt.ja(),H.F=null,pn(H.R),at(H.J),H.a&&(nt=H.a,H.a=null,nt.abort(),nt.ja())}function vr(H,nt){try{var At=H.g;if(0!=At.v&&(At.a==H||Rr(At.b,H)))if(At.I=H.N,!H.C&&Rr(At.b,H)&&3==At.v){try{var fn=At.ka.a.parse(nt)}catch(ii){fn=null}if(Array.isArray(fn)&&3==fn.length){var Fn=fn;if(0==Fn[0])e:if(At.j)At.oa=Fn[1],0<At.oa-At.P&&37500>Fn[2]&&At.H&&0==At.o&&!At.m&&(At.m=fs(Q(At.Ra,At),6e3));else{if(At.a){if(!(At.a.u+3e3<H.u))break e;mn(At),oo(At)}Te(At),Wi(18)}if(1>=yr(At.b)&&At.ea){try{At.ea()}catch(ii){}At.ea=void 0}}else Yn(At,11)}else if((H.C||At.a==H)&&mn(At),!R(nt))for(nt=fn=At.ka.a.parse(nt),fn=0;fn<nt.length;fn++)if(At.P=(Fn=nt[fn])[0],Fn=Fn[1],2==At.v)if("c"==Fn[0]){At.J=Fn[1],At.ga=Fn[2];var qn=Fn[3];null!=qn&&(At.ha=qn,At.c.info("VER="+At.ha));var Hi=Fn[4];null!=Hi&&(At.pa=Hi,At.c.info("SVER="+At.pa));var yi=Fn[5];if(null!=yi&&"number"==typeof yi&&0<yi){var xi=1.5*yi;At.D=xi,At.c.info("backChannelRequestTimeoutMs_="+xi)}xi=At;var nr=H.a;if(nr){var Er=nr.a?nr.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(Er){var $e=xi.b;!$e.a&&(B(Er,"spdy")||B(Er,"quic")||B(Er,"h2"))&&($e.f=$e.g,$e.a=new Set,$e.b&&(Us($e,$e.b),$e.b=null))}if(xi.A){var Dt=nr.a?nr.a.getResponseHeader("X-HTTP-Session-Id"):null;Dt&&(xi.na=Dt,Dr(xi.B,xi.A,Dt))}}At.v=3,At.f&&At.f.ta(),At.V&&(At.N=N()-H.u,At.c.info("Handshake RTT: "+At.N+"ms"));var ct=H;if((xi=At).la=Oi(xi,xi.C?xi.ga:null,xi.fa),ct.C){Ss(xi.b,ct);var zt=ct,wn=xi.D;wn&&zt.setTimeout(wn),zt.o&&(Ro(zt),Kr(zt)),xi.a=ct}else ye(xi);0<At.g.length&&qo(At)}else"stop"!=Fn[0]&&"close"!=Fn[0]||Yn(At,7);else 3==At.v&&("stop"==Fn[0]||"close"==Fn[0]?"stop"==Fn[0]?Yn(At,7):Yo(At):"noop"!=Fn[0]&&At.f&&At.f.sa(Fn),At.o=0);zi(4)}catch(ii){}}function Ps(H,nt){if(H.forEach&&"function"==typeof H.forEach)H.forEach(nt,void 0);else if($(H)||"string"==typeof H)ne(H,nt,void 0);else{if(H.L&&"function"==typeof H.L)var At=H.L();else if(H.K&&"function"==typeof H.K)At=void 0;else if($(H)||"string"==typeof H){At=[];for(var fn=H.length,Fn=0;Fn<fn;Fn++)At.push(Fn)}else for(Fn in At=[],fn=0,H)At[fn++]=Fn;fn=function Po(H){if(H.K&&"function"==typeof H.K)return H.K();if("string"==typeof H)return H.split("");if($(H)){for(var nt=[],At=H.length,fn=0;fn<At;fn++)nt.push(H[fn]);return nt}for(fn in nt=[],At=0,H)nt[At++]=H[fn];return nt}(H),Fn=fn.length;for(var qn=0;qn<Fn;qn++)nt.call(void 0,fn[qn],At&&At[qn],H)}}function Ao(H,nt){this.b={},this.a=[],this.c=0;var At=arguments.length;if(1<At){if(At%2)throw Error("Uneven number of arguments");for(var fn=0;fn<At;fn+=2)this.set(arguments[fn],arguments[fn+1])}else if(H)if(H instanceof Ao)for(At=H.L(),fn=0;fn<At.length;fn++)this.set(At[fn],H.get(At[fn]));else for(fn in H)this.set(fn,H[fn])}function to(H){if(H.c!=H.a.length){for(var nt=0,At=0;nt<H.a.length;){var fn=H.a[nt];ms(H.b,fn)&&(H.a[At++]=fn),nt++}H.a.length=At}if(H.c!=H.a.length){var Fn={};for(At=nt=0;nt<H.a.length;)ms(Fn,fn=H.a[nt])||(H.a[At++]=fn,Fn[fn]=1),nt++;H.a.length=At}}function ms(H,nt){return Object.prototype.hasOwnProperty.call(H,nt)}(D=zr.prototype).setTimeout=function(H){this.P=H},D.Wa=function(H){H=H.target;var nt=this.F;nt&&3==ns(H)?nt.f():this.Ca(H)},D.Ca=function(H){try{if(H==this.a)e:{var nt=ns(this.a),At=this.a.ua(),fn=this.a.X();if(!(3>nt||3==nt&&!ut&&!this.a.$())){this.A||4!=nt||7==At||zi(8==At||0>=fn?3:2),Ro(this);var Fn=this.a.X();this.N=Fn;var qn=this.a.$();if(this.b=200==Fn,function _t(H,nt,At,fn,Fn,qn,Hi){H.info(function(){return"XMLHTTP RESP ("+fn+") [ attempt "+Fn+"]: "+nt+"\n"+At+"\n"+qn+" "+Hi})}(this.c,this.m,this.l,this.f,this.T,nt,Fn),this.b){if(this.V&&!this.C){t:{if(this.a){var Hi,yi=this.a;if((Hi=yi.a?yi.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!R(Hi)){var xi=Hi;break t}}xi=null}if(!xi){this.b=!1,this.h=3,Wi(12),Ui(this),xs(this);break e}Xt(this.c,this.f,xi,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,vr(this,xi)}this.I?(ls(this,nt,qn),ut&&this.b&&3==nt&&(ve(this.J,this.R,"tick",this.Va),this.R.start())):(Xt(this.c,this.f,qn,null),vr(this,qn)),4==nt&&Ui(this),this.b&&!this.A&&(4==nt?kn(this.g,this):(this.b=!1,Kr(this)))}else 400==Fn&&0<qn.indexOf("Unknown SID")?(this.h=3,Wi(12)):(this.h=0,Wi(13)),Ui(this),xs(this)}}}catch(nr){}},D.Va=function(){if(this.a){var H=ns(this.a),nt=this.a.$();this.D<nt.length&&(Ro(this),ls(this,H,nt),this.b&&4!=H&&Kr(this))}},D.cancel=function(){this.A=!0,Ui(this)},D.Ua=function(){this.o=null;var H=N();0<=H-this.U?(function Un(H,nt){H.info(function(){return"TIMEOUT: "+nt})}(this.c,this.l),2!=this.H&&(zi(3),Wi(17)),Ui(this),this.h=2,xs(this)):zs(this,this.U-H)},(D=Ao.prototype).K=function(){to(this);for(var H=[],nt=0;nt<this.a.length;nt++)H.push(this.b[this.a[nt]]);return H},D.L=function(){return to(this),this.a.concat()},D.get=function(H,nt){return ms(this.b,H)?this.b[H]:nt},D.set=function(H,nt){ms(this.b,H)||(this.c++,this.a.push(H)),this.b[H]=nt},D.forEach=function(H,nt){for(var At=this.L(),fn=0;fn<At.length;fn++){var Fn=At[fn],qn=this.get(Fn);H.call(nt,qn,Fn,this)}};var Ar=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function wo(H,nt){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,H instanceof wo){this.a=void 0!==nt?nt:H.a,Xs(this,H.f),this.j=H.j,Mo(this,H.c),no(this,H.h),this.g=H.g,nt=H.b;var At=new pi;At.c=nt.c,nt.a&&(At.a=new Ao(nt.a),At.b=nt.b),Fs(this,At),this.i=H.i}else H&&(At=String(H).match(Ar))?(this.a=!!nt,Xs(this,At[1]||"",!0),this.j=ws(At[2]||""),Mo(this,At[3]||"",!0),no(this,At[4]),this.g=ws(At[5]||"",!0),Fs(this,At[6]||"",!0),this.i=ws(At[7]||"")):(this.a=!!nt,this.b=new pi(null,this.a))}function Nr(H){return new wo(H)}function Xs(H,nt,At){H.f=At?ws(nt,!0):nt,H.f&&(H.f=H.f.replace(/:$/,""))}function Mo(H,nt,At){H.c=At?ws(nt,!0):nt}function no(H,nt){if(nt){if(nt=Number(nt),isNaN(nt)||0>nt)throw Error("Bad port number "+nt);H.h=nt}else H.h=null}function Fs(H,nt,At){nt instanceof pi?(H.b=nt,function Qr(H,nt){nt&&!H.f&&(hi(H),H.c=null,H.a.forEach(function(At,fn){var Fn=fn.toLowerCase();fn!=Fn&&(Di(this,fn),Xi(this,Fn,At))},H)),H.f=nt}(H.b,H.a)):(At||(nt=vt(nt,jn)),H.b=new pi(nt,H.a))}function Dr(H,nt,At){H.b.set(nt,At)}function mo(H){return Dr(H,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^N()).toString(36)),H}function ws(H,nt){return H?nt?decodeURI(H.replace(/%25/g,"%2525")):decodeURIComponent(H):""}function vt(H,nt,At){return"string"==typeof H?(H=encodeURI(H).replace(nt,pt),At&&(H=H.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H):null}function pt(H){return"%"+((H=H.charCodeAt(0))>>4&15).toString(16)+(15&H).toString(16)}wo.prototype.toString=function(){var H=[],nt=this.f;nt&&H.push(vt(nt,Zt,!0),":");var At=this.c;return(At||"file"==nt)&&(H.push("//"),(nt=this.j)&&H.push(vt(nt,Zt,!0),"@"),H.push(encodeURIComponent(String(At)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(At=this.h)&&H.push(":",String(At))),(At=this.g)&&(this.c&&"/"!=At.charAt(0)&&H.push("/"),H.push(vt(At,"/"==At.charAt(0)?Mn:yn,!0))),(At=this.b.toString())&&H.push("?",At),(At=this.i)&&H.push("#",vt(At,ti)),H.join("")};var Zt=/[#\/\?@]/g,yn=/[#\?:]/g,Mn=/[#\?]/g,jn=/[#\?@]/g,ti=/#/g;function pi(H,nt){this.b=this.a=null,this.c=H||null,this.f=!!nt}function hi(H){H.a||(H.a=new Ao,H.b=0,H.c&&function lo(H,nt){if(H){H=H.split("&");for(var At=0;At<H.length;At++){var fn=H[At].indexOf("="),Fn=null;if(0<=fn){var qn=H[At].substring(0,fn);Fn=H[At].substring(fn+1)}else qn=H[At];nt(qn,Fn?decodeURIComponent(Fn.replace(/\+/g," ")):"")}}}(H.c,function(nt,At){H.add(decodeURIComponent(nt.replace(/\+/g," ")),At)}))}function Di(H,nt){hi(H),nt=tr(H,nt),ms(H.a.b,nt)&&(H.c=null,H.b-=H.a.get(nt).length,ms((H=H.a).b,nt)&&(delete H.b[nt],H.c--,H.a.length>2*H.c&&to(H)))}function Pi(H,nt){return hi(H),nt=tr(H,nt),ms(H.a.b,nt)}function Xi(H,nt,At){Di(H,nt),0<At.length&&(H.c=null,H.a.set(tr(H,nt),A(At)),H.b+=At.length)}function tr(H,nt){return nt=String(nt),H.f&&(nt=nt.toLowerCase()),nt}function pr(H,nt){this.b=H,this.a=nt}function ts(H){this.g=H||jr,H=ce.PerformanceNavigationTiming?0<(H=ce.performance.getEntriesByType("navigation")).length&&("hq"==H[0].nextHopProtocol||"h2"==H[0].nextHopProtocol):!!(ce.ia&&ce.ia.ya&&ce.ia.ya()&&ce.ia.ya().qb),this.f=H?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(D=pi.prototype).add=function(H,nt){hi(this),this.c=null,H=tr(this,H);var At=this.a.get(H);return At||this.a.set(H,At=[]),At.push(nt),this.b+=1,this},D.forEach=function(H,nt){hi(this),this.a.forEach(function(At,fn){ne(At,function(Fn){H.call(nt,Fn,fn,this)},this)},this)},D.L=function(){hi(this);for(var H=this.a.K(),nt=this.a.L(),At=[],fn=0;fn<nt.length;fn++)for(var Fn=H[fn],qn=0;qn<Fn.length;qn++)At.push(nt[fn]);return At},D.K=function(H){hi(this);var nt=[];if("string"==typeof H)Pi(this,H)&&(nt=M(nt,this.a.get(tr(this,H))));else{H=this.a.K();for(var At=0;At<H.length;At++)nt=M(nt,H[At])}return nt},D.set=function(H,nt){return hi(this),this.c=null,Pi(this,H=tr(this,H))&&(this.b-=this.a.get(H).length),this.a.set(H,[nt]),this.b+=1,this},D.get=function(H,nt){return H&&0<(H=this.K(H)).length?String(H[0]):nt},D.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var H=[],nt=this.a.L(),At=0;At<nt.length;At++){var fn=nt[At],Fn=encodeURIComponent(String(fn));fn=this.K(fn);for(var qn=0;qn<fn.length;qn++){var Hi=Fn;""!==fn[qn]&&(Hi+="="+encodeURIComponent(String(fn[qn]))),H.push(Hi)}}return this.c=H.join("&")};var jr=10;function ps(H){return!!H.b||!!H.a&&H.a.size>=H.f}function yr(H){return H.b?1:H.a?H.a.size:0}function Rr(H,nt){return H.b?H.b==nt:!!H.a&&H.a.has(nt)}function Us(H,nt){H.a?H.a.add(nt):H.b=nt}function Ss(H,nt){H.b&&H.b==nt?H.b=null:H.a&&H.a.has(nt)&&H.a.delete(nt)}function gs(H){var nt,At;if(null!=H.b)return H.c.concat(H.b.s);if(null!=H.a&&0!==H.a.size){var fn=H.c;try{for(var Fn=y(H.a.values()),qn=Fn.next();!qn.done;qn=Fn.next())fn=fn.concat(qn.value.s)}catch(yi){nt={error:yi}}finally{try{qn&&!qn.done&&(At=Fn.return)&&At.call(Fn)}finally{if(nt)throw nt.error}}return fn}return A(H.c)}function Ms(){}function io(){this.a=new Ms}function To(H,nt,At){var fn=At||"";try{Ps(H,function(Fn,qn){var Hi=Fn;te(Fn)&&(Hi=Ae(Fn)),nt.push(fn+qn+"="+encodeURIComponent(Hi))})}catch(Fn){throw nt.push(fn+"type="+encodeURIComponent("_badmap")),Fn}}function yt(H,nt,At,fn,Fn){try{nt.onload=null,nt.onerror=null,nt.onabort=null,nt.ontimeout=null,Fn(fn)}catch(qn){}}ts.prototype.cancel=function(){var H,nt;if(this.c=gs(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var At=y(this.a.values()),fn=At.next();!fn.done;fn=At.next())fn.value.cancel()}catch(qn){H={error:qn}}finally{try{fn&&!fn.done&&(nt=At.return)&&nt.call(At)}finally{if(H)throw H.error}}this.a.clear()}},Ms.prototype.stringify=function(H){return ce.JSON.stringify(H,void 0)},Ms.prototype.parse=function(H){return ce.JSON.parse(H,void 0)};var mt=ce.JSON.parse;function et(H){Ke.call(this),this.headers=new Ao,this.H=H||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=Kt,this.D=this.F=!1}Y(et,Ke);var Kt="",ni=/^https?$/i,Fi=["POST","PUT"];function Eo(H){return"content-type"==H.toLowerCase()}function Ls(H,nt){H.b=!1,H.a&&(H.g=!0,H.a.abort(),H.g=!1),H.f=nt,H.h=5,Br(H),_i(H)}function Br(H){H.u||(H.u=!0,H.dispatchEvent("complete"),H.dispatchEvent("error"))}function ji(H){if(H.b&&void 0!==L&&(!H.s[1]||4!=ns(H)||2!=H.X()))if(H.l&&4==ns(H))gn(H.za,0,H);else if(H.dispatchEvent("readystatechange"),4==ns(H)){H.b=!1;try{var fn,nt=H.X();e:switch(nt){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var At=!0;break e;default:At=!1}if(!(fn=At)){var Fn;if(Fn=0===nt){var qn=String(H.B).match(Ar)[1]||null;if(!qn&&ce.self&&ce.self.location){var Hi=ce.self.location.protocol;qn=Hi.substr(0,Hi.length-1)}Fn=!ni.test(qn?qn.toLowerCase():"")}fn=Fn}if(fn)H.dispatchEvent("complete"),H.dispatchEvent("success");else{H.h=6;try{var yi=2<ns(H)?H.a.statusText:""}catch(xi){yi=""}H.f=yi+" ["+H.X()+"]",Br(H)}}finally{_i(H)}}}function _i(H,nt){if(H.a){Xr(H);var At=H.a,fn=H.s[0]?W:null;H.a=null,H.s=null,nt||H.dispatchEvent("ready");try{At.onreadystatechange=fn}catch(Fn){}}}function Xr(H){H.a&&H.D&&(H.a.ontimeout=null),H.m&&(ce.clearTimeout(H.m),H.m=null)}function ns(H){return H.a?H.a.readyState:0}function is(H,nt,At){e:{for(fn in At){var fn=!1;break e}fn=!0}fn||(At=function cs(H){var nt="";return fe(H,function(At,fn){nt+=fn,nt+=":",nt+=At,nt+="\r\n"}),nt}(At),"string"==typeof H?null!=At&&encodeURIComponent(String(At)):Dr(H,nt,At))}function js(H,nt,At){return At&&At.internalChannelParams&&At.internalChannelParams[H]||nt}function _o(H){this.pa=0,this.g=[],this.c=new q,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=js("failFast",!1,H),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=js("baseRetryDelayMs",5e3,H),this.Ma=js("retryDelaySeedMs",1e4,H),this.Ja=js("forwardChannelMaxRetries",2,H),this.ma=js("forwardChannelRequestTimeoutMs",2e4,H),this.Ka=H&&H.g||void 0,this.D=void 0,this.C=H&&H.supportsCrossDomainXhr||!1,this.J="",this.b=new ts(H&&H.concurrentRequestLimit),this.ka=new io,this.da=H&&H.fastHandshake||!1,this.Ga=H&&H.b||!1,H&&H.f&&(this.c.a=!1),H&&H.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&H&&H.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function Yo(H){if(Ia(H),3==H.v){var nt=H.R++,At=Nr(H.B);Dr(At,"SID",H.J),Dr(At,"RID",nt),Dr(At,"TYPE","terminate"),Ys(H,At),(nt=new zr(H,H.c,nt,void 0)).H=2,nt.i=mo(Nr(At)),At=!1,ce.navigator&&ce.navigator.sendBeacon&&(At=ce.navigator.sendBeacon(nt.i.toString(),"")),!At&&ce.Image&&((new Image).src=nt.i,At=!0),At||(nt.a=Ji(nt.g,null),nt.a.ba(nt.i)),nt.u=N(),Kr(nt)}ci(H)}function oo(H){H.a&&(gt(H),H.a.cancel(),H.a=null)}function Ia(H){oo(H),H.j&&(ce.clearTimeout(H.j),H.j=null),mn(H),H.b.cancel(),H.h&&("number"==typeof H.h&&ce.clearTimeout(H.h),H.h=null)}function Co(H,nt){H.g.push(new pr(H.La++,nt)),3==H.v&&qo(H)}function qo(H){ps(H.b)||H.h||(H.h=!0,On(H.Ba,H),H.u=0)}function Ur(H,nt){var At;At=nt?nt.f:H.R++;var fn=Nr(H.B);Dr(fn,"SID",H.J),Dr(fn,"RID",At),Dr(fn,"AID",H.P),Ys(H,fn),H.i&&H.l&&is(fn,H.i,H.l),At=new zr(H,H.c,At,H.u+1),null===H.i&&(At.B=H.l),nt&&(H.g=nt.s.concat(H.g)),nt=Bt(H,At,1e3),At.setTimeout(Math.round(.5*H.ma)+Math.round(.5*H.ma*Math.random())),Us(H.b,At),ys(At,fn,nt)}function Ys(H,nt){H.f&&Ps({},function(At,fn){Dr(nt,fn,At)})}function Bt(H,nt,At){At=Math.min(H.g.length,At);var fn=H.f?Q(H.f.Ha,H.f,H):null;e:for(var Fn=H.g,qn=-1;;){var Hi=["count="+At];-1==qn?0<At?Hi.push("ofs="+(qn=Fn[0].b)):qn=0:Hi.push("ofs="+qn);for(var yi=!0,xi=0;xi<At;xi++){var nr=Fn[xi].b,Er=Fn[xi].a;if(0>(nr-=qn))qn=Math.max(0,Fn[xi].b-100),yi=!1;else try{To(Er,Hi,"req"+nr+"_")}catch($e){fn&&fn(Er)}}if(yi){fn=Hi.join("&");break e}}return H=H.g.splice(0,At),nt.s=H,fn}function ye(H){H.a||H.j||(H.U=1,On(H.Aa,H),H.o=0)}function Te(H){return!(H.a||H.j||3<=H.o||(H.U++,H.j=fs(Q(H.Aa,H),In(H,H.o)),H.o++,0))}function gt(H){null!=H.s&&(ce.clearTimeout(H.s),H.s=null)}function $t(H){H.a=new zr(H,H.c,"rpc",H.U),null===H.i&&(H.a.B=H.l),H.a.O=0;var nt=Nr(H.la);Dr(nt,"RID","rpc"),Dr(nt,"SID",H.J),Dr(nt,"CI",H.H?"0":"1"),Dr(nt,"AID",H.P),Ys(H,nt),Dr(nt,"TYPE","xmlhttp"),H.i&&H.l&&is(nt,H.i,H.l),H.D&&H.a.setTimeout(H.D);var At=H.a;H=H.ga,At.H=1,At.i=mo(Nr(nt)),At.j=null,At.I=!0,fr(At,H)}function mn(H){null!=H.m&&(ce.clearTimeout(H.m),H.m=null)}function kn(H,nt){var At=null;if(H.a==nt){mn(H),gt(H),H.a=null;var fn=2}else{if(!Rr(H.b,nt))return;At=nt.s,Ss(H.b,nt),fn=1}if(H.I=nt.N,0!=H.v)if(nt.b)if(1==fn){At=nt.j?nt.j.length:0,nt=N()-nt.u;var Fn=H.u;(fn=li()).dispatchEvent(new qs(fn,At,nt,Fn)),qo(H)}else ye(H);else if(3==(Fn=nt.h)||0==Fn&&0<H.I||!(1==fn&&function us(H,nt){return!(yr(H.b)>=H.b.f-(H.h?1:0)||(H.h?(H.g=nt.s.concat(H.g),0):1==H.v||2==H.v||H.u>=(H.Ia?0:H.Ja)||(H.h=fs(Q(H.Ba,H,nt),In(H,H.u)),H.u++,0)))}(H,nt)||2==fn&&Te(H)))switch(At&&0<At.length&&(nt=H.b,nt.c=nt.c.concat(At)),Fn){case 1:Yn(H,5);break;case 4:Yn(H,10);break;case 3:Yn(H,6);break;default:Yn(H,2)}}function In(H,nt){var At=H.Fa+Math.floor(Math.random()*H.Ma);return H.f||(At*=2),At*nt}function Yn(H,nt){if(H.c.info("Error code "+nt),2==nt){var At=null;H.f&&(At=null);var fn=Q(H.Xa,H);At||(At=new wo("//www.google.com/images/cleardot.gif"),ce.location&&"http"==ce.location.protocol||Xs(At,"https"),mo(At)),function Is(H,nt){var At=new q;if(ce.Image){var fn=new Image;fn.onload=P(yt,At,fn,"TestLoadImage: loaded",!0,nt),fn.onerror=P(yt,At,fn,"TestLoadImage: error",!1,nt),fn.onabort=P(yt,At,fn,"TestLoadImage: abort",!1,nt),fn.ontimeout=P(yt,At,fn,"TestLoadImage: timeout",!1,nt),ce.setTimeout(function(){fn.ontimeout&&fn.ontimeout()},1e4),fn.src=H}else nt(!1)}(At.toString(),fn)}else Wi(2);H.v=0,H.f&&H.f.ra(nt),ci(H),Ia(H)}function ci(H){H.v=0,H.I=-1,H.f&&((0!=gs(H.b).length||0!=H.g.length)&&(H.b.c.length=0,A(H.g),H.g.length=0),H.f.qa())}function Oi(H,nt,At){var fn=function Ws(H){return H instanceof wo?Nr(H):new wo(H,void 0)}(At);if(""!=fn.c)nt&&Mo(fn,nt+"."+fn.c),no(fn,fn.h);else{var Fn=ce.location;fn=function bs(H,nt,At,fn){var Fn=new wo(null,void 0);return H&&Xs(Fn,H),nt&&Mo(Fn,nt),At&&no(Fn,At),fn&&(Fn.g=fn),Fn}(Fn.protocol,nt?nt+"."+Fn.hostname:Fn.hostname,+Fn.port,At)}return H.W&&fe(H.W,function(qn,Hi){Dr(fn,Hi,qn)}),At=H.na,(nt=H.A)&&At&&Dr(fn,nt,At),Dr(fn,"VER",H.ha),Ys(H,fn),fn}function Ji(H,nt){if(nt&&!H.C)throw Error("Can't create secondary domain capable XhrIo object.");return(nt=new et(H.Ka)).F=H.C,nt}function _r(){}function wr(){if(Ve&&!(10<=Number(Jt)))throw Error("Environmental error: no available transport.")}function Li(H,nt){Ke.call(this),this.a=new _o(nt),this.l=H,this.b=nt&&nt.messageUrlParams||null,H=nt&&nt.messageHeaders||null,nt&&nt.clientProtocolHeaderRequired&&(H?H["X-Client-Protocol"]="webchannel":H={"X-Client-Protocol":"webchannel"}),this.a.l=H,H=nt&&nt.initMessageHeaders||null,nt&&nt.messageContentType&&(H?H["X-WebChannel-Content-Type"]=nt.messageContentType:H={"X-WebChannel-Content-Type":nt.messageContentType}),nt&&nt.a&&(H?H["X-WebChannel-Client-Profile"]=nt.a:H={"X-WebChannel-Client-Profile":nt.a}),this.a.O=H,(H=nt&&nt.httpHeadersOverwriteParam)&&!R(H)&&(this.a.i=H),this.h=nt&&nt.supportsCrossDomainXhr||!1,this.g=nt&&nt.sendRawJson||!1,(nt=nt&&nt.httpSessionIdParam)&&!R(nt)&&(this.a.A=nt,null!==(H=this.b)&&nt in H&&nt in(H=this.b)&&delete H[nt]),this.f=new Sr(this)}function Mr(H){Os.call(this);var nt=H.__sm__;if(nt){e:{for(var At in nt){H=At;break e}H=void 0}(this.c=H)?(H=this.c,this.data=null!==nt&&H in nt?nt[H]:void 0):this.data=nt}else this.data=H}function ui(){Rs.call(this),this.status=1}function Sr(H){this.a=H}(D=et.prototype).ba=function(H,nt,At,fn){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+H);nt=nt?nt.toUpperCase():"GET",this.B=H,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function Ds(H){var nt;return(nt=H.a)||(nt=H.a={}),nt}(this.H?this.H:Js),this.a.onreadystatechange=Q(this.za,this);try{this.A=!0,this.a.open(nt,String(H),!0),this.A=!1}catch(qn){return void Ls(this,qn)}H=At||"";var Fn=new Ao(this.headers);fn&&Ps(fn,function(qn,Hi){Fn.set(Hi,qn)}),fn=function E(H){e:{for(var nt=Eo,At=H.length,fn="string"==typeof H?H.split(""):H,Fn=0;Fn<At;Fn++)if(Fn in fn&&nt.call(void 0,fn[Fn],Fn,H)){nt=Fn;break e}nt=-1}return 0>nt?null:"string"==typeof H?H.charAt(nt):H[nt]}(Fn.L()),At=ce.FormData&&H instanceof ce.FormData,!(0<=V(Fi,nt))||fn||At||Fn.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),Fn.forEach(function(qn,Hi){this.a.setRequestHeader(Hi,qn)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Xr(this),0<this.o&&((this.D=function Yi(H){return Ve&&hn(9)&&"number"==typeof H.timeout&&void 0!==H.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=Q(this.xa,this)):this.m=gn(this.xa,this.o,this)),this.l=!0,this.a.send(H),this.l=!1}catch(qn){Ls(this,qn)}},D.xa=function(){void 0!==L&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},D.abort=function(H){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=H||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),_i(this))},D.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),_i(this,!0)),et.S.G.call(this)},D.za=function(){this.j||(this.A||this.l||this.g?ji(this):this.Ta())},D.Ta=function(){ji(this)},D.X=function(){try{return 2<ns(this)?this.a.status:-1}catch(H){return-1}},D.$=function(){try{return this.a?this.a.responseText:""}catch(H){return""}},D.Na=function(H){if(this.a){var nt=this.a.responseText;return H&&0==nt.indexOf(H)&&(nt=nt.substring(H.length)),mt(nt)}},D.ua=function(){return this.h},D.Qa=function(){return"string"==typeof this.f?this.f:String(this.f)},(D=_o.prototype).ha=8,D.v=1,D.Ba=function(H){if(this.h)if(this.h=null,1==this.v){if(!H){this.R=Math.floor(1e5*Math.random()),H=this.R++;var fn,nt=new zr(this,this.c,H,void 0),At=this.l;if(this.O&&(At?pe(At=Ie(At),this.O):At=this.O),null===this.i&&(nt.B=At),this.da)e:{for(var Fn=fn=0;Fn<this.g.length;Fn++){var qn=this.g[Fn];if(void 0===(qn="__data__"in qn.a&&"string"==typeof(qn=qn.a.__data__)?qn.length:void 0))break;if(4096<(fn+=qn)){fn=Fn;break e}if(4096===fn||Fn===this.g.length-1){fn=Fn+1;break e}}fn=1e3}else fn=1e3;fn=Bt(this,nt,fn),Dr(Fn=Nr(this.B),"RID",H),Dr(Fn,"CVER",22),this.A&&Dr(Fn,"X-HTTP-Session-Id",this.A),Ys(this,Fn),this.i&&At&&is(Fn,this.i,At),Us(this.b,nt),this.Ga&&Dr(Fn,"TYPE","init"),this.da?(Dr(Fn,"$req",fn),Dr(Fn,"SID","null"),nt.V=!0,ys(nt,Fn,null)):ys(nt,Fn,fn),this.v=2}}else 3==this.v&&(H?Ur(this,H):0==this.g.length||ps(this.b)||Ur(this))},D.Aa=function(){if(this.j=null,$t(this),this.V&&!(this.F||null==this.a||0>=this.N)){var H=2*this.N;this.c.info("BP detection timer enabled: "+H),this.s=fs(Q(this.Sa,this),H)}},D.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,oo(this),$t(this))},D.Ra=function(){null!=this.m&&(this.m=null,oo(this),Te(this),Wi(19))},D.Xa=function(H){H?(this.c.info("Successfully pinged google.com"),Wi(2)):(this.c.info("Failed to ping google.com"),Wi(1))},(D=_r.prototype).ta=function(){},D.sa=function(){},D.ra=function(){},D.qa=function(){},D.Ha=function(){},wr.prototype.a=function(H,nt){return new Li(H,nt)},Y(Li,Ke),(D=Li.prototype).addEventListener=function(H,nt,At,fn){Li.S.addEventListener.call(this,H,nt,At,fn)},D.removeEventListener=function(H,nt,At,fn){Li.S.removeEventListener.call(this,H,nt,At,fn)},D.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var H=this.a,nt=this.l,At=this.b||void 0;Wi(0),H.fa=nt,H.W=At||{},H.H=H.T,H.B=Oi(H,null,H.fa),qo(H)},D.close=function(){Yo(this.a)},D.Pa=function(H){if("string"==typeof H){var nt={};nt.__data__=H,Co(this.a,nt)}else this.g?((nt={}).__data__=Ae(H),Co(this.a,nt)):Co(this.a,H)},D.G=function(){this.a.f=null,delete this.f,Yo(this.a),delete this.a,Li.S.G.call(this)},Y(Mr,Os),Y(ui,Rs),Y(Sr,_r),Sr.prototype.ta=function(){this.a.dispatchEvent("a")},Sr.prototype.sa=function(H){this.a.dispatchEvent(new Mr(H))},Sr.prototype.ra=function(H){this.a.dispatchEvent(new ui(H))},Sr.prototype.qa=function(){this.a.dispatchEvent("b")},wr.prototype.createWebChannel=wr.prototype.a,Li.prototype.send=Li.prototype.Pa,Li.prototype.open=Li.prototype.Oa,Li.prototype.close=Li.prototype.close,or.NO_ERROR=0,or.TIMEOUT=8,or.HTTP_ERROR=6,vs.COMPLETE="complete",dr.EventType=Qs,Qs.OPEN="a",Qs.CLOSE="b",Qs.ERROR="c",Qs.MESSAGE="d",Ke.prototype.listen=Ke.prototype.va,et.prototype.listenOnce=et.prototype.wa,et.prototype.getLastError=et.prototype.Qa,et.prototype.getLastErrorCode=et.prototype.ua,et.prototype.getStatus=et.prototype.X,et.prototype.getResponseJson=et.prototype.Na,et.prototype.getResponseText=et.prototype.$,et.prototype.send=et.prototype.ba;var $r=function(){return new wr},Es=or,Vr=vs,es=dr,As=et;const rs={createWebChannelTransport:$r,ErrorCode:or,EventType:vs,WebChannel:dr,XhrIo:et}},1908:(Qt,Z,S)=>{"use strict";S.d(Z,{PG:()=>fe,Z_:()=>Ie});var s=S(5e3),_=S(9808),y=S(3075);function j(Se,pe){}const D=()=>{const Se="undefined"!=typeof window?window:void 0;return Se&&Se.tinymce?Se.tinymce:null};let ce=(()=>{class Se{constructor(){this.onBeforePaste=new s.vpe,this.onBlur=new s.vpe,this.onClick=new s.vpe,this.onContextMenu=new s.vpe,this.onCopy=new s.vpe,this.onCut=new s.vpe,this.onDblclick=new s.vpe,this.onDrag=new s.vpe,this.onDragDrop=new s.vpe,this.onDragEnd=new s.vpe,this.onDragGesture=new s.vpe,this.onDragOver=new s.vpe,this.onDrop=new s.vpe,this.onFocus=new s.vpe,this.onFocusIn=new s.vpe,this.onFocusOut=new s.vpe,this.onKeyDown=new s.vpe,this.onKeyPress=new s.vpe,this.onKeyUp=new s.vpe,this.onMouseDown=new s.vpe,this.onMouseEnter=new s.vpe,this.onMouseLeave=new s.vpe,this.onMouseMove=new s.vpe,this.onMouseOut=new s.vpe,this.onMouseOver=new s.vpe,this.onMouseUp=new s.vpe,this.onPaste=new s.vpe,this.onSelectionChange=new s.vpe,this.onActivate=new s.vpe,this.onAddUndo=new s.vpe,this.onBeforeAddUndo=new s.vpe,this.onBeforeExecCommand=new s.vpe,this.onBeforeGetContent=new s.vpe,this.onBeforeRenderUI=new s.vpe,this.onBeforeSetContent=new s.vpe,this.onChange=new s.vpe,this.onClearUndos=new s.vpe,this.onDeactivate=new s.vpe,this.onDirty=new s.vpe,this.onExecCommand=new s.vpe,this.onGetContent=new s.vpe,this.onHide=new s.vpe,this.onInit=new s.vpe,this.onInitNgModel=new s.vpe,this.onLoadContent=new s.vpe,this.onNodeChange=new s.vpe,this.onPostProcess=new s.vpe,this.onPostRender=new s.vpe,this.onPreInit=new s.vpe,this.onPreProcess=new s.vpe,this.onProgressState=new s.vpe,this.onRedo=new s.vpe,this.onRemove=new s.vpe,this.onReset=new s.vpe,this.onResizeEditor=new s.vpe,this.onSaveContent=new s.vpe,this.onSetAttrib=new s.vpe,this.onObjectResizeStart=new s.vpe,this.onObjectResized=new s.vpe,this.onObjectSelected=new s.vpe,this.onSetContent=new s.vpe,this.onShow=new s.vpe,this.onSubmit=new s.vpe,this.onUndo=new s.vpe,this.onVisualAid=new s.vpe}}return Se.\u0275fac=function(ke){return new(ke||Se)},Se.\u0275dir=s.lG2({type:Se,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onF
1ocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}}),Se})();const W=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],J=(Se,pe)=>"string"==typeof Se?Se.split(",").map(ke=>ke.trim()):Array.isArray(Se)?Se:pe;let Re=0;const me=Se=>{const ke=(new Date).getTime(),ae=Math.floor(1e9*Math.random());return Re++,Se+"_"+ae+Re+String(ke)},P=Se=>void 0!==Se&&"textarea"===Se.tagName.toLowerCase(),Y=Se=>void 0===Se||""===Se?[]:Array.isArray(Se)?Se:Se.split(" "),re=(Se,pe)=>Y(Se).concat(Y(pe)),ne=()=>{},M=Se=>null==Se,R=()=>({listeners:[],scriptId:me("tiny-script"),scriptLoaded:!1}),ge=(()=>{let Se=R();return{load:(Ce,Ve,Be)=>{Se.scriptLoaded?Be():(Se.listeners.push(Be),Ce.getElementById(Se.scriptId)||((Ce,Ve,Be,ut)=>{const Ge=Ve.createElement("script");Ge.referrerPolicy="origin",Ge.type="application/javascript",Ge.id=Ce,Ge.src=Be;const wt=()=>{Ge.removeEventListener("load",wt),Se.listeners.forEach(ut=>ut()),Se.scriptLoaded=!0};Ge.addEventListener("load",wt),Ve.head&&Ve.head.appendChild(Ge)})(Se.scriptId,Ce,Ve))},reinitialize:()=>{Se=R()}}})(),Fe=new s.OlP("TINYMCE_SCRIPT_SRC"),he={provide:y.JU,useExisting:(0,s.Gpc)(()=>fe),multi:!0};let fe=(()=>{class Se extends ce{constructor(ke,ae,Ce,Ve){super(),this.platformId=Ce,this.tinymceScriptSrc=Ve,this.cloudChannel="5",this.apiKey="no-api-key",this.id="",this.modelEvents="change input undo redo",this.onTouchedCallback=ne,this._elementRef=ke,this.ngZone=ae,this.initialise=this.initialise.bind(this)}set disabled(ke){this._disabled=ke,this._editor&&this._editor.initialized&&this._editor.setMode(ke?"readonly":"design")}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(ke){this._editor&&this._editor.initialized?this._editor.setContent(M(ke)?"":ke):this.initialValue=null===ke?void 0:ke}registerOnChange(ke){this.onChangeCallback=ke}registerOnTouched(ke){this.onTouchedCallback=ke}setDisabledState(ke){this._editor?this._editor.setMode(ke?"readonly":"design"):ke&&(this.init=Object.assign(Object.assign({},this.init),{readonly:!0}))}ngAfterViewInit(){var ke;(0,_.NF)(this.platformId)&&(this.id=this.id||me("tiny-angular"),this.inline=void 0!==this.inl
vendor: 7,958 bytes, line 1
1ine?!1!==this.inline:!!(null===(ke=this.init)||void 0===ke?void 0:ke.inline),this.createElement(),null!==D()?this.initialise():this._element&&this._element.ownerDocument&&ge.load(this._element.ownerDocument,this.getScriptSrc(),this.initialise.bind(this)))}ngOnDestroy(){null!==D()&&D().remove(this._editor)}createElement(){this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element&&(document.getElementById(this.id)&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,P(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}initialise(){const ke=Object.assign(Object.assign({},this.init),{target:this._element,inline:this.inline,readonly:this.disabled,plugins:re(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:ae=>{this._editor=ae,ae.on("init",Ce=>{this.initEditor(ae)}),((Se,pe)=>{(Se=>{const pe=J(Se.ignoreEvents,[]);return J(Se.allowedEvents,W).filter(ae=>W.includes(ae)&&!pe.includes(ae))})(Se).forEach(ae=>{const Ce=Se[ae];pe.on(ae.substring(2),Ve=>Se.ngZone.run(()=>Ce.emit({event:Ve,editor:pe})))})})(this,ae),this.init&&"function"==typeof this.init.setup&&this.init.setup(ae)}});P(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{D().init(ke)})}getScriptSrc(){return M(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(ke){ke.on("blur",()=>this.ngZone.run(()=>this.onTouchedCallback())),ke.on(this.modelEvents,()=>this.ngZone.run(()=>this.emitOnChange(ke))),"string"==typeof this.initialValue&&this.ngZone.run(()=>{ke.setContent(this.initialValue),ke.getContent()!==this.initialValue&&this.emitOnChange(ke),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(ke)})}emitOnChange(ke){this.onChangeCallback&&this.onChangeCallback(ke.getContent({format:this.outputFormat}))}}return Se.\u0275fac=function(ke){return new(ke||Se)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(s.Lbi),s.Y36(Fe,8))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",id:"id",modelEvents:"modelEvents",disabled:"disabled",initialValue:"initialValue",init:"init",inline:"inline",outputFormat:"outputFormat",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents"},features:[s._Bn([he]),s.qOj],decls:1,vars:0,template:function(ke,ae){1&ke&&s.YNc(0,j,0,0,"ng-template")},styles:["[_nghost-%COMP%] { display: block; }"]}),Se})(),Ie=(()=>{class Se{}return Se.\u0275fac=function(ke){return new(ke||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[_.ez,y.u5]]}),Se})()},1764:function(Qt){Qt.exports=function(){"use strict";var S=6e4,s=36e5,_="millisecond",y="second",j="minute",D="hour",L="day",ce="week",W="month",G="quarter",$="year",te="date",le="Invalid Date",J=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Me=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Re={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var R=["th","st","nd","rd"],ee=A%100;return"["+A+(R[(ee-20)%10]||R[ee]||R[0])+"]"}},me=function(A,R,ee){var B=String(A);return!B||B.length>=R?A:""+Array(R+1-B.length).join(ee)+A},Q={s:me,z:function(A){var R=-A.utcOffset(),ee=Math.abs(R),B=Math.floor(ee/60),K=ee%60;return(R<=0?"+":"-")+me(B,2,"0")+":"+me(K,2,"0")},m:function A(R,ee){if(R.date()<ee.date())return-A(ee,R);var B=12*(ee.year()-R.year())+(ee.month()-R.month()),K=R.clone().add(B,W),ge=ee-K<0,Fe=R.clone().add(B+(ge?-1:1),W);return+(-(B+(ee-K)/(ge?K-Fe:Fe-K))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:W,y:$,w:ce,d:L,D:te,h:D,m:j,s:y,ms:_,Q:G}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return void 0===A}},P="en",N={};N[P]=Re;var Y="$isDayjsObject",de=function(A){return A instanceof E||!(!A||!A[Y])},re=function A(R,ee,B){var K;if(!R)return P;if("string"==typeof R){var ge=R.toLowerCase();N[ge]&&(K=ge),ee&&(N[ge]=ee,K=ge);var Fe=R.split("-");if(!K&&Fe.length>1)return A(Fe[0])}else{var he=R.name;N[he]=R,K=he}return!B&&K&&(P=K),K||!B&&P},V=function(A,R){if(de(A))return A.clone();var ee="object"==typeof R?R:{};return ee.date=A,ee.args=arguments,new E(ee)},ne=Q;ne.l=re,ne.i=de,ne.w=function(A,R){return V(A,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var E=function(){function A(ee){this.$L=re(ee.locale,null,!0),this.parse(ee),this.$x=this.$x||ee.x||{},this[Y]=!0}var R=A.prototype;return R.parse=function(ee){this.$d=function(B){var K=B.date,ge=B.utc;if(null===K)return new Date(NaN);if(ne.u(K))return new Date;if(K instanceof Date)return new Date(K);if("string"==typeof K&&!/Z$/i.test(K)){var Fe=K.match(J);if(Fe){var he=Fe[2]-1||0,fe=(Fe[7]||"0").substring(0,3);return ge?new Date(Date.UTC(Fe[1],he,Fe[3]||1,Fe[4]||0,Fe[5]||0,Fe[6]||0,fe)):new Date(Fe[1],he,Fe[3]||1,Fe[4]||0,Fe[5]||0,Fe[6]||0,fe)}}return new Date(K)}(ee),this.init()},R.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},R.$utils=function(){return ne},R.isValid=function(){return this.$d.toString()!==le},R.isSame=function(ee,B){var K=V(ee);return this.startOf(B)<=K&&K<=this.endOf(B)},R.isAfter=function(ee,B){return V(ee)<this.startOf(B)},R.isBefore=function(ee,B){return this.endOf(B)<V(ee)},R.$g=function(ee,B,K){return ne.u(ee)?this[B]:this.set(K,ee)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(ee,B){var K=this,ge=!!ne.u(B)||B,Fe=ne.p(ee),he=function(Ve,Be){var ut=ne.w(K.$u?Date.UTC(K.$y,Be,Ve):new Date(K.$y,Be,Ve),K);return ge?ut:ut.endOf(L)},fe=function(Ve,Be){return ne.w(K.toDate()[Ve].apply(K.toDate("s"),(ge?[0,0,0,0]:[23,59,59,999]).slice(Be)),K)},Ie=this.$W,Se=this.$M,pe=this.$D,ke="set"+(this.$u?"UTC":"");switch(Fe){case $:return ge?he(1,0):he(31,11);case W:return ge?he(1,Se):he(0,Se+1);case ce:var ae=this.$locale().weekStart||0,Ce=(Ie<ae?Ie+7:Ie)-ae;return he(ge?pe-Ce:pe+(6-Ce),Se);case L:case te:return fe(ke+"Hours",0);case D:return fe(ke+"Minutes",1);case j:return fe(ke+"Seconds",2);case y:return fe(ke+"Milliseconds",3);default:return this.clone()}},R.endOf=function(ee){return this.startOf(ee,!1)},R.$set=function(ee,B){var K,ge=ne.p(ee),Fe="set"+(this.$u?"UTC":""),he=(K={},K[L]=Fe+"Date",K[te]=Fe+"Date",K[W]=Fe+"Month",K[$]=Fe+"FullYear",K[D]=Fe+"Hours",K[j]=Fe+"Minutes",K[y]=Fe+"Seconds",K[_]=Fe+"Milliseconds",K)[ge],fe=ge===L?this.$D+(B-this.$W):B;if(ge===W||ge===$){var Ie=this.clone().set(te,1);Ie.$d[he](fe),Ie.init(),this.$d=Ie.set(te,Math.min(this.$D,Ie.daysInMonth())).$d}else he&&this.$d[he](fe);return this.init(),this},R.set=function(ee,B){return this.clone().$set(ee,B)},R.get=function(ee){return this[ne.p(ee)]()},R.add=function(ee,B){var K,ge=this;ee=Number(ee);var Fe=ne.p(B),he=function(Se){var pe=V(ge);return ne.w(pe.date(pe.date()+Math.round(Se*ee)),ge)};if(Fe===W)return this.set(W,this.$M+ee);if(Fe===$)return this.set($,this.$y+ee);if(Fe===L)return he(1);if(Fe===ce)return he(7);var fe=(K={},K[j]=S,K[D]=s,K[y]=1e3,K)[Fe]||1,Ie=this.$d.getTime()+ee*fe;return ne.w(Ie,this)},R.subtract=function(ee,B){return this.add(-1*ee,B)},R.format=function(ee){var B=this,K=this.$locale();if(!this.isValid())return K.invalidDate||le;var ge=ee||"YYYY-MM-DDTHH:mm:ssZ",Fe=ne.z(this),he=this.$H,fe=this.$m,Ie=this.$M,Se=K.weekdays,pe=K.months,ae=function(Be,ut,Ge,wt){return Be&&(Be[ut]||Be(
1B,ge))||Ge[ut].slice(0,wt)},Ce=function(Be){return ne.s(he%12||12,Be,"0")},Ve=K.meridiem||function(Be,ut,Ge){var wt=Be<12?"AM":"PM";return Ge?wt.toLowerCase():wt};return ge.replace(Me,function(Be,ut){return ut||function(Ge){switch(Ge){case"YY":return String(B.$y).slice(-2);case"YYYY":return ne.s(B.$y,4,"0");case"M":return Ie+1;case"MM":return ne.s(Ie+1,2,"0");case"MMM":return ae(K.monthsShort,Ie,pe,3);case"MMMM":return ae(pe,Ie);case"D":return B.$D;case"DD":return ne.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return ae(K.weekdaysMin,B.$W,Se,2);case"ddd":return ae(K.weekdaysShort,B.$W,Se,3);case"dddd":return Se[B.$W];case"H":return String(he);case"HH":return ne.s(he,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return Ve(he,fe,!0);case"A":return Ve(he,fe,!1);case"m":return String(fe);case"mm":return ne.s(fe,2,"0");case"s":return String(B.$s);case"ss":return ne.s(B.$s,2,"0");case"SSS":return ne.s(B.$ms,3,"0");case"Z":return Fe}return null}(Be)||Fe.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(ee,B,K){var ge,Fe=this,he=ne.p(B),fe=V(ee),Ie=(fe.utcOffset()-this.utcOffset())*S,Se=this-fe,pe=function(){return ne.m(Fe,fe)};switch(he){case $:ge=pe()/12;break;case W:ge=pe();break;case G:ge=pe()/3;break;case ce:ge=(Se-Ie)/6048e5;break;case L:ge=(Se-Ie)/864e5;break;case D:ge=Se/s;break;case j:ge=Se/S;break;case y:ge=Se/1e3;break;default:ge=Se}return K?ge:ne.a(ge)},R.daysInMonth=function(){return this.endOf(W).$D},R.$locale=function(){return N[this.$L]},R.locale=function(ee,B){if(!ee)return this.$L;var K=this.clone(),ge=re(ee,B,!0);return ge&&(K.$L=ge),K},R.clone=function(){return ne.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},A}(),M=E.prototype;return V.prototype=M,[["$ms",_],["$s",y],["$m",j],["$H",D],["$W",L],["$M",W],["$y",$],["$D",te]].forEach(function(A){M[A[1]]=function(R){return this.$g(R,A[0],A[1])}}),V.extend=function(A,R){return A.$i||(A(R,E,V),A.$i=!0),V},V.locale=re,V.isDayjs=de,V.unix=function(A){return V(1e3*A)},V.en=N[P],V.Ls=N,V.p={},V}()},4159:(Qt,Z,S)=>{var s;!function(){var _=window.CustomEvent;function j(me){for(;me;){if("dialog"===me.localName)return me;me=me.parentElement}return null}function D(me){me&&me.blur&&me!==document.body&&me.blur()}function L(me,Q){for(var P=0;P<me.length;++P)if(me[P]===Q)return!0;return!1}function ce(me){return!(!me||!me.hasAttribute("method"))&&"dialog"===me.getAttribute("method").toLowerCase()}function W(me){if(this.dialog_=me,this.replacedStyleTop_=!1,this.openAsModal_=!1,me.hasAttribute("role")||me.setAttribute("role","dialog"),me.show=this.show.bind(this),me.showModal=this.showModal.bind(this),me.close=this.close.bind(this),"returnValue"in me||(me.returnValue=""),"MutationObserver"in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(me,{attributes:!0,attributeFilter:["open"]});else{var Y,P=!1,N=function(){P?this.downgradeModal():this.maybeHideModal(),P=!1}.bind(this),de=function(re){if(re.target===me){var V="DOMNodeRemoved";P|=re.type.substr(0,V.length)===V,window.clearTimeout(Y),Y=window.setTimeout(N,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(re){me.addEventListener(re,de)})}Object.defineProperty(me,"open",{set:this.setOpen.bind(this),get:me.hasAttribute.bind(me,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}(!_||"object"==typeof _)&&((_=function(Q,P){P=P||{};var N=document.createEvent("CustomEvent");return N.initCustomEvent(Q,!!P.bubbles,!!P.cancelable,P.detail||null),N}).prototype=window.Event.prototype),W.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){!this.openAsModal_||(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),G.dm.removeDialog(this))},setOpen:function(me){me?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(me){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var Q=document.createElement("div");this.dialog_.insertBefore(Q,this.dialog_.firstChild),Q.tabIndex=-1,Q.focus(),this.dialog_.removeChild(Q)}var P=document.createEvent("MouseEvents");P.initMouseEvent(me.type,me.bubbles,me.cancelable,window,me.detail,me.screenX,me.screenY,me.clientX,me.clientY,me.ctrlKey,me.altKey,me.shiftKey,me.metaKey,me.button,me.relatedTarget),this.dialog_.dispatchEvent(P),me.stopPropagation()},focus_:function(){var me=this.dialog_.querySelector("[autofocus]:not([disabled])");if(!me&&this.dialog_.tabIndex>=0&&(me=this.dialog_),!me){var P=["button","input","keygen","select","textarea"].map(function(N){return N+":not([disabled])"});
vendor: 5,641 bytes, line 1
1P.push('[tabindex]:not([disabled]):not([tabindex=""])'),me=this.dialog_.querySelector(P.join(", "))}D(document.activeElement),me&&me.focus()},updateZIndex:function(me,Q){if(me<Q)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=me,this.backdrop_.style.zIndex=Q},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!G.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function y(me){for(;me&&me!==document.body;){var Q=window.getComputedStyle(me),P=function(N,Y){return!(void 0===Q[N]||Q[N]===Y)};if(Q.opacity<1||P("zIndex","auto")||P("transform","none")||P("mixBlendMode","normal")||P("filter","none")||P("perspective","none")||"isolate"===Q.isolation||"fixed"===Q.position||"touch"===Q.webkitOverflowScrolling)return!0;me=me.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,G.needsCentering(this.dialog_)?(G.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(me){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==me&&(this.dialog_.returnValue=me);var Q=new _("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(Q)}};var G={reposition:function(me){var Q=document.body.scrollTop||document.documentElement.scrollTop,P=Q+(window.innerHeight-me.offsetHeight)/2;me.style.top=Math.max(Q,P)+"px"},isInlinePositionSetByStylesheet:function(me){for(var Q=0;Q<document.styleSheets.length;++Q){var P=document.styleSheets[Q],N=null;try{N=P.cssRules}catch(E){}if(N)for(var Y=0;Y<N.length;++Y){var de=N[Y],re=null;try{re=document.querySelectorAll(de.selectorText)}catch(E){}if(re&&L(re,me)){var V=de.style.getPropertyValue("top"),ne=de.style.getPropertyValue("bottom");if(V&&"auto"!==V||ne&&"auto"!==ne)return!0}}}return!1},needsCentering:function(me){return!("absolute"!==window.getComputedStyle(me).position||"auto"!==me.style.top&&""!==me.style.top||"auto"!==me.style.bottom&&""!==me.style.bottom||G.isInlinePositionSetByStylesheet(me))},forceRegisterDialog:function(me){if((window.HTMLDialogElement||me.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",me),"dialog"!==me.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new W(me)},registerDialog:function(me){me.showModal||G.forceRegisterDialog(me)},DialogManager:function(){this.pendingDialogStack=[];var me=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(Q){this.forwardTab_=void 0,Q.stopPropagation(),me([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(Q){var P=[];Q.forEach(function(N){for(var de,Y=0;de=N.removedNodes[Y];++Y)de instanceof Element&&("dialog"===de.localName&&P.push(de),P=P.concat(de.querySelectorAll("dialog")))}),P.length&&me(P)}))}};if(G.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},G.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},G.DialogManager.prototype.updateStacking=function(){for(var P,me=this.zIndexHigh_,Q=0;P=this.pendingDialogStack[Q];++Q)P.updateZIndex(--me,--me),0===Q&&(this.overlay.style.zIndex=--me);var N=this.pendingDialogStack[0];N?(N.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},G.DialogManager.prototype.containedByTopDialog_=function(me){for(;me=j(me);){for(var P,Q=0;P=this.pendingDialogStack[Q];++Q)if(P.dialog===me)return 0===Q;me=me.parentElement}return!1},G.DialogManager.prototype.handleFocus_=function(me){if(!this.containedByTopDialog_(me.target)&&(me.preventDefault(),me.stopPropagation(),D(me.target),void 0!==this.forwardTab_)){var Q=this.pendingDialogStack[0];return Q.dialog.compareDocumentPosition(me.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?Q.focus_():document.documentElement.focus()),!1}},G.DialogManager.prototype.handleKey_=function(me){if(this.forwardTab_=void 0,27===me.keyCode){me.preventDefault(),me.stopPropagation();var Q=new _("cancel",{bubbles:!1,cancelable:!0}),P=this.pendingDialogStack[0];P&&P.dialog.dispatchEvent(Q)&&P.dialog.close()}else 9===me.keyCode&&(this.forwardTab_=!me.shiftKey)},G.DialogManager.prototype.checkDOM_=function(me){this.pendingDialogStack.slice().forEac
1h(function(P){-1!==me.indexOf(P.dialog)?P.downgradeModal():P.maybeHideModal()})},G.DialogManager.prototype.pushDialog=function(me){return!(this.pendingDialogStack.length>=(this.zIndexHigh_-this.zIndexLow_)/2-1||(1===this.pendingDialogStack.unshift(me)&&this.blockDocument(),this.updateStacking(),0))},G.DialogManager.prototype.removeDialog=function(me){var Q=this.pendingDialogStack.indexOf(me);-1!==Q&&(this.pendingDialogStack.splice(Q,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},G.dm=new G.DialogManager,G.formSubmitter=null,G.useValue=null,void 0===window.HTMLDialogElement){var $=document.createElement("form");if($.setAttribute("method","dialog"),"dialog"!==$.method){var te=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(te){var le=te.get;te.get=function(){return ce(this)?"dialog":le.call(this)};var J=te.set;te.set=function(me){return"string"==typeof me&&"dialog"===me.toLowerCase()?this.setAttribute("method",me):J.call(this,me)},Object.defineProperty(HTMLFormElement.prototype,"method",te)}}document.addEventListener("click",function(me){if(G.formSubmitter=null,G.useValue=null,!me.defaultPrevented){var Q=me.target;if(Q&&ce(Q.form)){if(!("submit"===Q.type&&["button","input"].indexOf(Q.localName)>-1)){if("input"!==Q.localName||"image"!==Q.type)return;G.useValue=me.offsetX+","+me.offsetY}!j(Q)||(G.formSubmitter=Q)}}},!1);var Me=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!ce(this))return Me.call(this);var me=j(this);me&&me.close()},document.addEventListener("submit",function(me){var Q=me.target;if(ce(Q)){me.preventDefault();var P=j(Q);if(P){var N=G.formSubmitter;N&&N.form===Q?P.close(G.useValue||N.value):P.close(),G.formSubmitter=null}}},!0)}G.forceRegisterDialog=G.forceRegisterDialog,G.registerDialog=G.registerDialog,"amd"in S.amdD?void 0!==(s=function(){return G}.call(Z,S,Z,Qt))&&(Qt.exports=s):"object"==typeof Qt.exports?Qt.exports=G:window.dialogPolyfill=G}()},4901:Qt=>{"use strict";var Z={single_source_shortest_paths:function(S,s,_){var y={},j={};j[s]=0;var L,ce,W,G,$,le,D=Z.PriorityQueue.make();for(D.push(s,0);!D.empty();)for(W in G=(L=D.pop()).cost,$=S[ce=L.value]||{})$.hasOwnProperty(W)&&(le=G+$[W],(void 0===j[W]||j[W]>le)&&(j[W]=le,D.push(W,le),y[W]=ce));if(void 0!==_&&void 0===j[_]){var Re=["Could not find a path from ",s," to ",_,"."].join("");throw new Error(Re)}return y},extract_shortest_path_from_predecessor_list:function(S,s){for(var _=[],y=s;y;)_.push(y),y=S[y];return _.reverse(),_},find_path:function(S,s,_){var y=Z.single_source_shortest_paths(S,s,_);return Z.extract_shortest_path_from_predecessor_list(y,_)},PriorityQueue:{make:function(S){var y,s=Z.PriorityQueue,_={};for(y in S=S||{},s)s.hasOwnProperty(y)&&(_[y]=s[y]);return _.queue=[],_.sorter=S.sorter||s.default_sorter,_},default_sorter:function(S,s){return S.cost-s.cost},push:function(S,s){this.queue.push({value:S,cost:s}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Qt.exports=Z},3029:(Qt,Z,S)=>{"use strict";function _(L){return L&&"object"==typeof L&&"default"in L?L:{default:L}}var y=_(S(9278));y.default.registerVersion("firebase","7.24.0","app"),Qt.exports=y.default},8304:(Qt,Z,S)=>{"use strict";S.r(Z),S(2451)},6175:(Qt,Z,S)=>{"use strict";var s=S(9278);function _(W){return W&&"object"==typeof W&&"default"in W?W:{default:W}}S(2451),S(1925),S(199),S(5011),S(6101),S(2684),S(2517),S(454),S(8072);var y=_(s);y.default.registerVersion("firebase","7.24.0","app"),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),y.default.registerVersion("firebase","7.24.0"),Qt.exports=y.default},2731:(Qt,Z,S)=>{"use strict";S(199)},2833:(Qt,Z,S)=>{"use strict";S.d(Z,{wC:()=>te}),S(5e3),S(6261),S(6291),S(1744),S(8304);var L=S(3029),ce=S.n(L);S(9808);const te=ce()},6261:(Qt,Z,S)=>{"use strict";S.d(Z,{I:()=>me});var s=S(3029),_=S.n(s),j=(S(8304),S(4159)),D=S.n(j);S(2125),S(5473),S(9812),S(7792),S(2910),function(){(function(){var Q,N,P="function"==typeof Object.create?Object.create:function(t){function p(){}return p.prototype=t,new p};
1if("function"==typeof Object.setPrototypeOf)N=Object.setPrototypeOf;else{var Y;e:{var re={};try{re.__proto__={xb:!0},Y=re.xb;break e}catch(t){}Y=!1}N=Y?function(t,p){if(t.__proto__=p,t.__proto__!==p)throw new TypeError(t+" is not extensible");return t}:null}var V=N;function ne(t,p){if(t.prototype=P(p.prototype),t.prototype.constructor=t,V)V(t,p);else for(var x in p)if("prototype"!=x)if(Object.defineProperties){var se=Object.getOwnPropertyDescriptor(p,x);se&&Object.defineProperty(t,x,se)}else t[x]=p[x];t.K=p.prototype}var E="function"==typeof Object.defineProperties?Object.defineProperty:function(t,p,x){t!=Array.prototype&&t!=Object.prototype&&(t[p]=x.value)},M="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function A(t,p){if(p){var x=M;t=t.split(".");for(var se=0;se<t.length-1;se++){var Le=t[se];Le in x||(x[Le]={}),x=x[Le]}(p=p(se=x[t=t[t.length-1]]))!=se&&null!=p&&E(x,t,{configurable:!0,writable:!0,value:p})}}A("Object.is",function(t){return t||function(p,x){return p===x?0!==p||1/p==1/x:p!=p&&x!=x}}),A("Array.prototype.includes",function(t){return t||function(p,x){var se=this;se instanceof String&&(se=String(se));var Le=se.length;for(0>(x=x||0)&&(x=Math.max(x+Le,0));x<Le;x++){var Je=se[x];if(Je===p||Object.is(Je,p))return!0}return!1}});var R=this;function ee(t){return void 0!==t}function B(t){return"string"==typeof t}var K=/^[\w+/_-]+[=]{0,2}$/,ge=null;function Fe(){}function he(t){t.W=void 0,t.Xa=function(){return t.W?t.W:t.W=new t}}function fe(t){var p=typeof t;if("object"==p){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return p;var x=Object.prototype.toString.call(t);if("[object Window]"==x)return"object";if("[object Array]"==x||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==x||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==p&&void 0===t.call)return"object";return p}function Ie(t){return"array"==fe(t)}function Se(t){var p=fe(t);return"array"==p||"object"==p&&"number"==typeof t.length}function pe(t){return"function"==fe(t)}function ke(t){var p=typeof t;return"object"==p&&null!=t||"function"==p}var ae="closure_uid_"+(1e9*Math.random()>>>0),Ce=0;function Ve(t,p,x){return t.call.apply(t.bind,arguments)}function Be(t,p,x){if(!t)throw Error();if(2<arguments.length){var se=Array.prototype.slice.call(arguments,2);return function(){var Le=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Le,se),t.apply(p,Le)}}return function(){return t.apply(p,arguments)}}function ut(t,p,x){return(ut=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Ve:Be).apply(null,arguments)}function Ge(t,p){var x=Array.prototype.slice.call(arguments,1);return function(){var se=x.slice();return se.push.apply(se,arguments),t.apply(this,se)}}function wt(t,p){for(var x in p)t[x]=p[x]}var jt,Ot=Date.now||function(){return+new Date};function Ft(t,p){t=t.split(".");var se,x=R;t[0]in x||void 0===x.execScript||x.execScript("var "+t[0]);for(;t.length&&(se=t.shift());)!t.length&&ee(p)?x[se]=p:x=x[se]&&x[se]!==Object.prototype[se]?x[se]:x[se]={}}function ht(t,p){function x(){}x.prototype=p.prototype,t.K=p.prototype,t.prototype=new x,t.prototype.constructor=t,t.vc=function(se,Le,Je){for(var an=Array(arguments.length-2),Tn=2;Tn<arguments.length;Tn++)an[Tn-2]=arguments[Tn];return p.prototype[Le].apply(se,an)}}function Ht(t){if(Error.captureStackTrace)Error.captureStackTrace(this,Ht);else{var p=Error().stack;p&&(this.stack=p)}t&&(this.message=String(t))}function cn(t,p){for(var x="",se=(t=t.split("%s")).length-1,Le=0;Le<se;Le++)x+=t[Le]+(Le<p.length?p[Le]:"%s");Ht.call(this,x+t[se])}function hn(t,p){throw new cn("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}
1ht(Ht,Error),Ht.prototype.name="CustomError",ht(cn,Ht),cn.prototype.name="AssertionError";var vn=Array.prototype.indexOf?function(t,p){return Array.prototype.indexOf.call(t,p,void 0)}:function(t,p){if(B(t))return B(p)&&1==p.length?t.indexOf(p,0):-1;for(var x=0;x<t.length;x++)if(x in t&&t[x]===p)return x;return-1},ln=Array.prototype.forEach?function(t,p,x){Array.prototype.forEach.call(t,p,x)}:function(t,p,x){for(var se=t.length,Le=B(t)?t.split(""):t,Je=0;Je<se;Je++)Je in Le&&p.call(x,Le[Je],Je,t)},Xe=Array.prototype.filter?function(t,p){return Array.prototype.filter.call(t,p,void 0)}:function(t,p){for(var x=t.length,se=[],Le=0,Je=B(t)?t.split(""):t,an=0;an<x;an++)if(an in Je){var Tn=Je[an];p.call(void 0,Tn,an,t)&&(se[Le++]=Tn)}return se},qe=Array.prototype.map?function(t,p){return Array.prototype.map.call(t,p,void 0)}:function(t,p){for(var x=t.length,se=Array(x),Le=B(t)?t.split(""):t,Je=0;Je<x;Je++)Je in Le&&(se[Je]=p.call(void 0,Le[Je],Je,t));return se},Pe=Array.prototype.some?function(t,p){return Array.prototype.some.call(t,p,void 0)}:function(t,p){for(var x=t.length,se=B(t)?t.split(""):t,Le=0;Le<x;Le++)if(Le in se&&p.call(void 0,se[Le],Le,t))return!0;return!1};function tt(t,p){return 0<=vn(t,p)}function bt(t,p){var x;return(x=0<=(p=vn(t,p)))&&un(t,p),x}function un(t,p){return 1==Array.prototype.splice.call(t,p,1).length}function Rt(t){return Array.prototype.concat.apply([],arguments)}function Wt(t){var p=t.length;if(0<p){for(var x=Array(p),se=0;se<p;se++)x[se]=t[se];return x}return[]}function Pt(t,p,x){return 2>=arguments.length?Array.prototype.slice.call(t,p):Array.prototype.slice.call(t,p,x)}var Dn=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},Gn=/&/g,Zn=/</g,zn=/>/g,nn=/"/g,Vn=/'/g,Yt=/\x00/g,Rn=/[\x00&<>"']/;function Mt(t,p){return t<p?-1:t>p?1:0}function kt(t){return Rn.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(Gn,"&")),-1!=t.indexOf("<")&&(t=t.replace(Zn,"<")),-1!=t.indexOf(">")&&(t=t.replace(zn,">")),-1!=t.indexOf('"')&&(t=t.replace(nn,""")),-1!=t.indexOf("'")&&(t=t.replace(Vn,"'")),-1!=t.indexOf("\0")&&(t=t.replace(Yt,"�"))),t}function We(t,p,x){for(var se in t)p.call(x,t[se],se,t)}function Ue(t){var x,p={};for(x in t)p[x]=t[x];return p}var Qe="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Lt(t,p){for(var x,se,Le=1;Le<arguments.length;Le++){for(x in se=arguments[Le])t[x]=se[x];for(var Je=0;Je<Qe.length;Je++)x=Qe[Je],Object.prototype.hasOwnProperty.call(se,x)&&(t[x]=se[x])}}var xt="StopIteration"in R?R.StopIteration:{message:"StopIteration",stack:""};function Gt(){}function Ke(t){if(t instanceof Gt)return t;if("function"==typeof t.ha)return t.ha(!1);if(Se(t)){var p=0,x=new Gt;return x.next=function(){for(;;){if(p>=t.length)throw xt;if(p in t)return t[p++];p++}},x}throw Error("Not implemented")}function Oe(t,p){this.g={},this.a=[],this.j=this.h=0;var x=arguments.length;if(1<x){if(x%2)throw Error("Uneven number of arguments");for(var se=0;se<x;se+=2)this.set(arguments[se],arguments[se+1])}else if(t)if(t instanceof Oe)for(x=t.ja(),se=0;se<x.length;se++)this.set(x[se],t.get(x[se]));else for(se in t)this.set(se,t[se])}function Ye(t){if(t.h!=t.a.length){for(var p=0,x=0;p<t.a.length;){var se=t.a[p];je(t.g,se)&&(t.a[x++]=se),p++}t.a.length=x}if(t.h!=t.a.length){var Le={};for(x=p=0;p<t.a.length;)je(Le,se=t.a[p])||(t.a[x++]=se,Le[se]=1),p++;t.a.length=x}}function je(t,p){return Object.prototype.hasOwnProperty.call(t,p)}Gt.prototype.next=function(){throw xt},Gt.prototype.ha=function(){return this},(Q=Oe.prototype).la=function(){Ye(this);for(var t=[],p=0;p<this.a.length;p++)t.push(this.g[this.a[p]]);return t},Q.ja=function(){return Ye(this),this.a.concat()},Q.clear=function(){this.g={},this.j=this.h=this.a.length=0},Q.get=function(t,p){return je(this.g,t)?this.g[t]:p},Q.set=function(t,p){je(this.g,t)||(this.h++,this.a.push(t),this.j++),this.g[t]=p},Q.forEach=function(t,p){for(var x=this.ja(),se=0;se<x.length;se++){var Le=x[se],Je=this.get(Le);t.call(p,Je,Le,this)}},Q.ha=function(t){Ye(this);var p=0,x=this.j,se=this,Le=new Gt;return Le.next=function(){if(x!=se.j)throw Error("The map has changed since the iterator was created");if(p>=se.a.length)throw xt;var Je=se.a[p++];return t?Je:se.g[Je]},Le};var Tt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function On(t,p,x,se){for(var Le=x.length;0<=(p=t.indexOf(x,p))&&p<se;){var Je=t.charCodeAt(p-1);if(!(38!=Je&&63!=Je||(Je=t.charCodeAt(p+Le))&&61!=Je&&38!=Je&&35!=Je))return p;p+=Le+1}return-1}var xn=/#|$/;function Xn(t,p){var x=t.search(xn),se=On(t,0,p,x);if(0>se)return null;var Le=t.indexOf("&",se);return(0>Le||Le>x)&&(Le=x),se+=p.length+1,decodeURIComponent(t.substr(se,Le-se).replace(/\+/g," "))}var Ai=/[?&]($|#)/;function mi(t,p){var x;this.h=this.A=this.j="",this.C=null,this.s=this.g="",this.i=!1,t instanceof mi?(this.i=ee(p)?p:t.i,fi(this,t.j),this.A=t.A,this.h=t.h,Ki(this,t.C),this.g=t.g,pn(this,vi(t.a)),this.s=t.s):t&&(x=String(t).match(Tt))?(this.i=!!p,fi(this,x[1]||"",!0),this.A=En(x[2]||""),this.h=En(x[3]||"",!0),Ki(this,x[4]),this.g=En(x[5]||"",!0),pn(this,x[6]||"",!0),this.s=En(x[7]||"")):(this.i=!!p,this.a=new _t(null,this.i))}function fi(t,p,x){t.j=x?En(p,!0):p,t.j&&(t.j=t.j.replace(/:$/,""))}function Ki(t,p){if(p){if(p=Number(p),isNaN(p)||0>p)throw Error("Bad port number "+p);t.C=p}else t.C=null}function pn(t,p,x){p instanceof _t?(t.a=p,function mr(t,p){p&&!t.j&&(Xt(t),t.h=null,t.a.forEach(function(x,se){var Le=se.toLowerCase();se!=Le&&(Un(this,se),Un(this,Le),0<x.length&&(this.h=null,this.a.set(li(this,Le),Wt(x)),this.g+=x.length))},t)),t.j=p}(t.a,t.i)):(x||(p=rt(p,q)),t.a=new _t(p,t.i))}function gn(t){return t instanceof mi?new mi(t):new mi(t,void 0)}
1function En(t,p){return t?p?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function rt(t,p,x){return B(t)?(t=encodeURI(t).replace(p,it),x&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function it(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}mi.prototype.toString=function(){var t=[],p=this.j;p&&t.push(rt(p,ue,!0),":");var x=this.h;return(x||"file"==p)&&(t.push("//"),(p=this.A)&&t.push(rt(p,ue,!0),"@"),t.push(encodeURIComponent(String(x)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(x=this.C)&&t.push(":",String(x))),(x=this.g)&&(this.h&&"/"!=x.charAt(0)&&t.push("/"),t.push(rt(x,"/"==x.charAt(0)?at:ve,!0))),(x=this.a.toString())&&t.push("?",x),(x=this.s)&&t.push("#",rt(x,xe)),t.join("")};var ue=/[#\/\?@]/g,ve=/[#\?:]/g,at=/[#\?]/g,q=/[#\?@]/g,xe=/#/g;function _t(t,p){this.g=this.a=null,this.h=t||null,this.j=!!p}function Xt(t){t.a||(t.a=new Oe,t.g=0,t.h&&function rn(t,p){if(t){t=t.split("&");for(var x=0;x<t.length;x++){var se=t[x].indexOf("="),Le=null;if(0<=se){var Je=t[x].substring(0,se);Le=t[x].substring(se+1)}else Je=t[x];p(Je,Le?decodeURIComponent(Le.replace(/\+/g," ")):"")}}}(t.h,function(p,x){t.add(decodeURIComponent(p.replace(/\+/g," ")),x)}))}function Un(t,p){Xt(t),p=li(t,p),je(t.a.g,p)&&(t.h=null,t.g-=t.a.get(p).length,je((t=t.a).g,p)&&(delete t.g[p],t.h--,t.j++,t.a.length>2*t.h&&Ye(t)))}function Qn(t,p){return Xt(t),p=li(t,p),je(t.a.g,p)}function vi(t){var p=new _t;return p.h=t.h,t.a&&(p.a=new Oe(t.a),p.g=t.g),p}function li(t,p){return p=String(p),t.j&&(p=p.toLowerCase()),p}function zi(t){this.a=gn(t)}function qs(t){return t.a.a.get(or.Pa)||null}function fs(t,p){p?t.a.a.set(or.PROVIDER_ID,p):Un(t.a.a,or.PROVIDER_ID)}(Q=_t.prototype).add=function(t,p){Xt(this),this.h=null,t=li(this,t);var x=this.a.get(t);return x||this.a.set(t,x=[]),x.push(p),this.g+=1,this},Q.clear=function(){this.a=this.h=null,this.g=0},Q.forEach=function(t,p){Xt(this),this.a.forEach(function(x,se){ln(x,function(Le){t.call(p,Le,se,this)},this)},this)},Q.ja=function(){Xt(this);for(var t=this.a.la(),p=this.a.ja(),x=[],se=0;se<p.length;se++)for(var Le=t[se],Je=0;Je<Le.length;Je++)x.push(p[se]);return x},Q.la=function(t){Xt(this);var p=[];if(B(t))Qn(this,t)&&(p=Rt(p,this.a.get(li(this,t))));else{t=this.a.la();for(var x=0;x<t.length;x++)p=Rt(p,t[x])}return p},Q.set=function(t,p){return Xt(this),this.h=null,Qn(this,t=li(this,t))&&(this.g-=this.a.get(t).length),this.a.set(t,[p]),this.g+=1,this},Q.get=function(t,p){return t&&0<(t=this.la(t)).length?String(t[0]):p},Q.toString=function(){if(this.h)return this.h;if(!this.a)return"";for(var t=[],p=this.a.ja(),x=0;x<p.length;x++){var se=p[x],Le=encodeURIComponent(String(se));se=this.la(se);for(var Je=0;Je<se.length;Je++){var an=Le;""!==se[Je]&&(an+="="+encodeURIComponent(String(se[Je]))),t.push(an)}}return this.h=t.join("&")},zi.prototype.toString=function(){return this.a.toString()};var vs,or={Pa:"ui_auid",lc:"apiKey",Qa:"ui_sd",ub:"mode",$a:"oobCode",PROVIDER_ID:"ui_pid",Sa:"ui_sid",vb:"tenantId"};e:{var go=R.navigator;if(go){var Ds=go.userAgent;if(Ds){vs=Ds;break e}}vs=""}function dr(t){return-1!=vs.indexOf(t)}function Qs(){return(dr("Chrome")||dr("CriOS"))&&!dr("Edge")}function Os(t){return Os[" "](t),t}Os[" "]=Fe;var eo,t,Js=dr("Opera"),qr=dr("Trident")||dr("MSIE"),zr=dr("Edge"),Oo=zr||qr,ar=dr("Gecko")&&!(-1!=vs.toLowerCase().indexOf("webkit")&&!dr("Edge"))&&!(dr("Trident")||dr("MSIE"))&&!dr("Edge"),Wr=-1!=vs.toLowerCase().indexOf("webkit")&&!dr("Edge"),ys=Wr&&dr("Mobile"),fr=dr("Macintosh");function ls(){var t=R.document;return t?t.documentMode:void 0}e:{var Kr="",zs=(t=vs,ar?/rv:([^\);]+)(\)|;)/.exec(t):zr?/Edge\/([\d\.]+)/.exec(t):qr?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Wr?/WebKit\/(\S+)/.exec(t):Js?/(?:Version)[ \/]?(\S+)/.exec(t):void 0);if(zs&&(Kr=zs?zs[1]:""),qr){var Ro=ls();if(null!=Ro&&Ro>parseFloat(Kr)){eo=String(Ro);break e}}eo=Kr}var xs={};function Ui(t){return function Rs(t,p){var x=xs;return Object.prototype.hasOwnProperty.call(x,t)?x[t]:x[t]=p(t)}(t,function(){for(var p=0,x=Dn(String(eo)).split("."),se=Dn(String(t)).split("."),Le=Math.max(x.length,se.length),Je=0;0==p&&Je<Le;Je++){var an=x[Je]||"",Tn=se[Je]||"";do{if(an=/(\d*)(\D*)(.*)/.exec(an)||["","","",""],Tn=/(\d*)(\D*)(.*)/.exec(Tn)||["","","",""],0==an[0].length&&0==Tn[0].length)break;p=Mt(0==an[1].length?0:parseInt(an[1],10),0==Tn[1].length?0:parseInt(Tn[1],10))||Mt(0==an[2].length,0==Tn[2].length)||Mt(an[2],Tn[2]),an=an[3],Tn=Tn[3]}while(0==p)}return 0<=p})}var vr,Po=R.document;function Ps(t,p){this.a=t===to&&p||"",this.g=Ao}vr=Po&&qr?ls()||("CSS1Compat"==Po.compatMode?parseInt(eo,10):5):void 0,Ps.prototype.ma=!0,Ps.prototype.ka=function(){return this.a},Ps.prototype.toString=function(){return"Const{"+this.a+"}"};var Ao={},to={};function ms(){this.a="",this.h=wo}function Ar(t){return t instanceof ms&&t.constructor===ms&&t.h===wo?t.a:(hn("expected object of type TrustedResourceUrl, got '"+t+"' of type "+fe(t)),"type_error:TrustedResourceUrl")}ms.prototype.ma=!0,ms.prototype.ka=function(){return this.a.toString()},ms.prototype.g=function(){return 1},ms.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var wo={};function Nr(){this.a="",this.h=Dr}function Xs(t){return t instanceof Nr&&t.constructor===Nr&&t.h===Dr?t.a:(hn("expected object of type SafeUrl, got '"+t+"' of type "+fe(t)),"type_error:SafeUrl")}Nr.prototype.ma=!0,Nr.prototype.ka=function(){return this.a.toString()},Nr.prototype.g=function(){return 1},Nr.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Mo=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function no(t){return t instanceof Nr?t:(t="object"==typeof t&&t.ma?t.ka():String(t),Mo.test(t)||(t="about:invalid#zClosurez"),mo(t))}function Fs(t){return t instanceof Nr?t:(t="object"==typeof t&&t.ma?t.ka():String(t),Mo.test(t)||(t="about:invalid#zClosurez"),mo(t))}var Dr={};function mo(t){var p=new Nr;return p.a=t,p}function Ws(){this.a="",this.g=bs}mo("about:blank"),Ws.prototype.ma=!0;var bs={};function ws(){this.a="",this.j=pt,this.h=null}function vt(t){return t instanceof ws&&t.constructor===ws&&t.j===pt?t.a:(hn("expected object of type SafeHtml, got '"+t+"' of type "+fe(t)),"type_error:SafeHtml")}Ws.prototype.ka=function(){return this.a},Ws.prototype.toString=function(){return"SafeStyle{"+this.a+"}"},ws.prototype.g=function(){return this.h},ws.prototype.ma=!0,ws.prototype.ka=function(){return this.a.toString()},ws.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var pt={};function Zt(t,p){var x=new ws;return x.a=t,x.h=p,x}Zt("<!DOCTYPE html>",0);var yn=Zt("",0);Zt("<br>",0);var x,p,Mn=(p=!1,function(){return p||(x=function(){if("undefined"==typeof document)return!1;var t=document.createElement("div"),p=document.createElement("div");return p.appendChild(document.createElement("div")),t.appendChild(p),!!t.firstChild&&(p=t.firstChild.firstChild,t.innerHTML=vt(yn),!p.parentElement)}(),p=!0),x});function ti(t,p){p=p instanceof Nr?p:Fs(p),t.assign(Xs(p))}function pi(t,p){this.a=ee(t)?t:0,this.g=ee(p)?p:0}function hi(t,p){this.width=t,this.height=p}function Di(t){return t?new Ss(ps(t)):jt||(jt=new Ss)}function Pi(t,p){var x=p||document;return x.querySelectorAll&&x.querySelector?x.querySelectorAll("."+t):tr(document,t,p)}function Xi(t,p){var x=p||document;if(x.getElementsByClassName)t=x.getElementsByClassName(t)[0];else{x=document;var se=p||x;t=se.querySelectorAll&&se.querySelector&&t?se.querySelector(t?"."+t:""):tr(
1x,t,p)[0]||null}return t||null}function tr(t,p,x){var se;if((t=x||t).querySelectorAll&&t.querySelector&&p)return t.querySelectorAll(p?"."+p:"");if(p&&t.getElementsByClassName){var Le=t.getElementsByClassName(p);return Le}if(Le=t.getElementsByTagName("*"),p){var Je={};for(x=se=0;t=Le[x];x++){var an=t.className;"function"==typeof an.split&&tt(an.split(/\s+/),p)&&(Je[se++]=t)}return Je.length=se,Je}return Le}pi.prototype.toString=function(){return"("+this.a+", "+this.g+")"},pi.prototype.ceil=function(){return this.a=Math.ceil(this.a),this.g=Math.ceil(this.g),this},pi.prototype.floor=function(){return this.a=Math.floor(this.a),this.g=Math.floor(this.g),this},pi.prototype.round=function(){return this.a=Math.round(this.a),this.g=Math.round(this.g),this},(Q=hi.prototype).toString=function(){return"("+this.width+" x "+this.height+")"},Q.aspectRatio=function(){return this.width/this.height},Q.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},Q.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},Q.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this};var pr={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ts(t){return t.scrollingElement?t.scrollingElement:(Wr||"CSS1Compat"!=t.compatMode)&&t.body||t.documentElement}function jr(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function ps(t){return 9==t.nodeType?t:t.ownerDocument||t.document}function yr(t,p){if("textContent"in t)t.textContent=p;else if(3==t.nodeType)t.data=String(p);else if(t.firstChild&&3==t.firstChild.nodeType){for(;t.lastChild!=t.firstChild;)t.removeChild(t.lastChild);t.firstChild.data=String(p)}else{for(var x;x=t.firstChild;)t.removeChild(x);t.appendChild(ps(t).createTextNode(String(p)))}}function Rr(t,p){return p?function Us(t,p){for(;t;){if(p(t))return t;t=t.parentNode}return null}(t,function(x){return!p||B(x.className)&&tt(x.className.split(/\s+/),p)}):null}function Ss(t){this.a=t||R.document||document}Ss.prototype.N=function(){return B(void 0)?this.a.getElementById(void 0):void 0};var gs={Fc:!0},Ms={Hc:!0},io={Ec:!0},To={Gc:!0};function Is(){throw Error("Do not instantiate directly")}function yt(t,p,x,se){if(t=t(p||Kt,void 0,x),se=(se||Di()).a.createElement("DIV"),(t=function mt(t){if(!ke(t))return kt(String(t));if(t instanceof Is){if(t.fa===gs)return t.content;if(t.fa===To)return kt(t.content)}return hn("Soy template output is unsafe for use as HTML: "+t),"zSoyz"}(t)).match(et),t=Zt(t,null),Mn())for(;se.lastChild;)se.removeChild(se.lastChild);return se.innerHTML=vt(t),1==se.childNodes.length&&1==(t=se.firstChild).nodeType&&(se=t),se}Is.prototype.va=null,Is.prototype.toString=function(){return this.content};var et=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,Kt={};function Fi(){Is.call(this)}function Yi(t){return null!=t&&t.fa===gs?t:t instanceof ws?ji(vt(t).toString(),t.g()):ji(kt(String(String(t))),function ni(t){if(null!=t)switch(t.va){case 1:return 1;case-1:return-1;case 0:return 0}return null}(t))}function Eo(){Is.call(this)}function Ls(t,p){this.content=String(t),this.va=null!=p?p:null}function Br(t){return new Ls(t,void 0)}ht(Fi,Is),Fi.prototype.fa=gs,ht(Eo,Is),Eo.prototype.fa=Ms,Eo.prototype.va=1,ht(Ls,Is),Ls.prototype.fa=To;var ji=function(t){function p(x){this.content=x}return p.prototype=t.prototype,function(x,se){return x=new p(String(x)),void 0!==se&&(x.va=se),x}}(Fi),_i=function(t){function p(x){this.content=x}return p.prototype=t.prototype,function(x){return new p(String(x))}}(Eo);function ns(t){return(t=String(t))?new Ls(t,void 0):""}var cs=function(t){function p(x){this.content=x}return p.prototype=t.prototype,function(x,se){return(x=String(x))?(x=new p(x),void 0!==se&&(x.va=se),x):""}}(Fi);function is(t){return null!=t&&t.fa===gs?String(String(t.content).replace(Bt,"").replace(ye,"<")).replace(qo,oo):kt(String(t))}function js(t){return null!=t&&t.fa===Ms?t=String(t).replace(us,Co):t instanceof Nr?t=String(Xs(t).toString()).replace(us,Co):(t=String(t),Ys.test(t)?t=t.replace(us,Co):(hn("Bad value `%s` for |filterNormalizeUri",[t]),t="#zSoyz")),t}function _o(t){return null!=t&&t.fa===io?t=t.content:null==t?t="":t instanceof Ws?t instanceof Ws&&t.constructor===Ws&&t.g===bs?t=t.a:(hn("expected object of type SafeStyle, got '"+t+"' of type "+fe(t)),t="type_error:SafeStyle"):(t=String(t),Ur.test(t)||(hn("Bad value `%s` for |filterCssValue",[t]),t="zSoyz")),t}var Yo={"\0":"�","\t":"	","\n":" ","\v":"","\f":"","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\x85":"…","\xa0":" ","\u2028":"
","\u2029":"
"};function oo(t){return Yo[t]}var Ia={"\0":"%00","\x01":"%01","\x02":"%02","\x03":"%03","\x04":"%04","\x05":"%05","\x06":"%06","\x07":"%07","\b":"%08","\t":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D","\x0e":"%0E","\x0f":"%0F","\x10":"%10","\x11":"%11","\x12":"%12","\x13":"%13","\x14":"%14","\x15":"%15","\x16":"%16","\x17":"%17","\x18":"%18","\x19":"%19","\x1a":"%1A","\x1b":"%1B","\x1c":"%1C","\x1d":"%1D","\x1e":"%1E","\x1f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\x7f":"%7F","\x85":"%C2%85","\xa0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"};function Co(t){return Ia[t]}var qo=/[\x00\x22\x27\x3c\x3e]/g,us=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Ur=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,Ys=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Bt=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,ye=/</g;function Te(){return Br("Enter a valid phone number")}function gt(){return Br("Unable to send password reset code to specified email")}function $t(){return Br("Something went wrong. Please try again.")}function mn(){return Br("This email already exists without any means of sign-in. Please reset the password to recover.")}function kn(t){var p="";switch((t=t||{}
1).code){case"invalid-argument":p+="Client specified an invalid argument.";break;case"invalid-configuration":p+="Client specified an invalid project configuration.";break;case"failed-precondition":p+="Request can not be executed in the current system state.";break;case"out-of-range":p+="Client specified an invalid range.";break;case"unauthenticated":p+="Request not authenticated due to missing, invalid, or expired OAuth token.";break;case"permission-denied":p+="Client does not have sufficient permission.";break;case"not-found":p+="Specified resource is not found.";break;case"aborted":p+="Concurrency conflict, such as read-modify-write conflict.";break;case"already-exists":p+="The resource that a client tried to create already exists.";break;case"resource-exhausted":p+="Either out of resource quota or reaching rate limiting.";break;case"cancelled":p+="Request cancelled by the client.";break;case"data-loss":p+="Unrecoverable data loss or data corruption.";break;case"unknown":p+="Unknown server error.";break;case"internal":p+="Internal server error.";break;case"not-implemented":p+="API method not implemented by the server.";break;case"unavailable":p+="Service unavailable.";break;case"deadline-exceeded":p+="Request deadline exceeded.";break;case"auth/user-disabled":p+="The user account has been disabled by an administrator.";break;case"auth/timeout":p+="The operation has timed out.";break;case"auth/too-many-requests":p+="We have blocked all requests from this device due to unusual activity. Try again later.";break;case"auth/quota-exceeded":p+="The quota for this operation has been exceeded. Try again later.";break;case"auth/network-request-failed":p+="A network error has occurred. Try again later.";break;case"restart-process":p+="An issue was encountered when authenticating your request. Please visit the URL that redirected you to this page again to restart the authentication process.";break;case"no-matching-tenant-for-email":p+="No sign-in provider is available for the given email, please try with a different email."}return Br(p)}function Yn(t,p,x){var se=Error.call(this);this.message=se.message,"stack"in se&&(this.stack=se.stack),this.code=ci+t,(t=p)||("firebaseui/merge-conflict"===(t="",this.code)?t+="The current anonymous user failed to upgrade. The non-anonymous credential is already associated with a different user account.":t+=$t(),t=Br(t).toString()),this.message=t||"",this.credential=x||null}ne(Yn,Error),Yn.prototype.toJSON=function(){return{code:this.code,message:this.message}};var ci="firebaseui/";function Oi(){0!=Ji&&(_r[this[ae]||(this[ae]=++Ce)]=this),this.T=this.T,this.C=this.C}var Ji=0,_r={};function wr(t,p){t.T?ee(void 0)?p.call(void 0):p():(t.C||(t.C=[]),t.C.push(ee(void 0)?ut(p,void 0):p))}function Li(t){t&&"function"==typeof t.m&&t.m()}Oi.prototype.T=!1,Oi.prototype.m=function(){if(!this.T&&(this.T=!0,this.o(),0!=Ji)){var t=this[ae]||(this[ae]=++Ce);if(0!=Ji&&this.C&&0<this.C.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete _r[t]}},Oi.prototype.o=function(){if(this.C)for(;this.C.length;)this.C.shift()()};var Mr=Object.freeze||function(t){return t},ui=!qr||9<=Number(vr),Sr=qr&&!Ui("9"),$r=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var t=!1,p=Object.defineProperty({},"passive",{get:function(){t=!0}});try{R.addEventListener("test",Fe,p),R.removeEventListener("test",Fe,p)}catch(x){}return t}();function Es(t,p){this.type=t,this.g=this.target=p,this.h=!1,this.qb=!0}function Vr(t,p){if(Es.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.j=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var x=this.type=t.type,se=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=p,p=t.relatedTarget){if(ar){e:{try{Os(p.nodeName);var Le=!0;break e}catch(Je){}Le=!1}Le||(p=null)}}
1else"mouseover"==x?p=t.fromElement:"mouseout"==x&&(p=t.toElement);this.relatedTarget=p,se?(this.clientX=void 0!==se.clientX?se.clientX:se.pageX,this.clientY=void 0!==se.clientY?se.clientY:se.pageY,this.screenX=se.screenX||0,this.screenY=se.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.keyCode=t.keyCode||0,this.key=t.key||"",this.j=t.charCode||("keypress"==x?t.keyCode:0),this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=B(t.pointerType)?t.pointerType:es[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Es.prototype.stopPropagation=function(){this.h=!0},Es.prototype.preventDefault=function(){this.qb=!1},ht(Vr,Es);var es=Mr({2:"touch",3:"pen",4:"mouse"});Vr.prototype.stopPropagation=function(){Vr.K.stopPropagation.call(this),this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0},Vr.prototype.preventDefault=function(){Vr.K.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Sr)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(p){}};var As="closure_listenable_"+(1e6*Math.random()|0),br=0;function rs(t,p,x,se,Le){this.listener=t,this.proxy=null,this.src=p,this.type=x,this.capture=!!se,this.La=Le,this.key=++br,this.sa=this.Ia=!1}function H(t){t.sa=!0,t.listener=null,t.proxy=null,t.src=null,t.La=null}function nt(t){this.src=t,this.a={},this.g=0}function At(t,p){var x=p.type;x in t.a&&bt(t.a[x],p)&&(H(p),0==t.a[x].length&&(delete t.a[x],t.g--))}function fn(t,p,x,se){for(var Le=0;Le<t.length;++Le){var Je=t[Le];if(!Je.sa&&Je.listener==p&&Je.capture==!!x&&Je.La==se)return Le}return-1}nt.prototype.add=function(t,p,x,se,Le){var Je=t.toString();(t=this.a[Je])||(t=this.a[Je]=[],this.g++);var an=fn(t,p,se,Le);return-1<an?(p=t[an],x||(p.Ia=!1)):((p=new rs(p,this.src,Je,!!se,Le)).Ia=x,t.push(p)),p};var Fn="closure_lm_"+(1e6*Math.random()|0),qn={};function yi(t,p,x,se,Le){if(se&&se.once)return Er(t,p,x,se,Le);if(Ie(p)){for(var Je=0;Je<p.length;Je++)yi(t,p[Je],x,se,Le);return null}return x=Hr(x),t&&t[As]?t.J.add(String(p),x,!1,ke(se)?!!se.capture:!!se,Le):xi(t,p,x,!1,se,Le)}function xi(t,p,x,se,Le,Je){if(!p)throw Error("Invalid event type");var an=ke(Le)?!!Le.capture:!!Le,Tn=bi(t);if(Tn||(t[Fn]=Tn=new nt(t)),(x=Tn.add(p,x,se,an,Je)).proxy)return x;if(se=function nr(){var t=ii,p=ui?function(x){return t.call(p.src,p.listener,x)}:function(x){if(!(x=t.call(p.src,p.listener,x)))return x};return p}(),x.proxy=se,se.src=t,se.listener=x,t.addEventListener)$r||(Le=an),void 0===Le&&(Le=!1),t.addEventListener(p.toString(),se,Le);else if(t.attachEvent)t.attachEvent(ct(p.toString()),se);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(se)}return x}function Er(t,p,x,se,Le){if(Ie(p)){for(var Je=0;Je<p.length;Je++)Er(t,p[Je],x,se,Le);return null}return x=Hr(x),t&&t[As]?t.J.add(String(p),x,!0,ke(se)?!!se.capture:!!se,Le):xi(t,p,x,!0,se,Le)}function $e(t,p,x,se,Le){if(Ie(p))for(var Je=0;Je<p.length;Je++)$e(t,p[Je],x,se,Le);else se=ke(se)?!!se.capture:!!se,x=Hr(x),t&&t[As]?(t=t.J,(p=String(p).toString())in t.a&&-1<(x=fn(Je=t.a[p],x,se,Le))&&(H(Je[x]),un(Je,x),0==Je.length&&(delete t.a[p],t.g--))):t&&(t=bi(t))&&(p=t.a[p.toString()],t=-1,p&&(t=fn(p,x,se,Le)),(x=-1<t?p[t]:null)&&Dt(x))}function Dt(t){if("number"!=typeof t&&t&&!t.sa){var p=t.src;if(p&&p[As])At(p.J,t);else{var x=t.type,se=t.proxy;p.removeEventListener?p.removeEventListener(x,se,t.capture):p.detachEvent?p.detachEvent(ct(x),se):p.addListener&&p.removeListener&&p.removeListener(se),(x=bi(p))?(At(x,t),0==x.g&&(x.src=null,p[Fn]=null)):H(t)}}}function ct(t){return t in qn?qn[t]:qn[t]="on"+t}function zt(t,p,x,se){var Le=!0;if((t=bi(t))&&(p=t.a[p.toString()]))for(p=p.concat(),t=0;t<p.length;t++){var Je=p[t];Je&&Je.capture==x&&!Je.sa&&(Je=wn(Je,se),Le=Le&&!1!==Je)}return Le}function wn(t,p){var x=t.listener,se=t.La||t.src;return t.Ia&&Dt(t),x.call(se,p)}function ii(t,p){if(t.sa)return!0;
1if(!ui){if(!p)e:{p=["window","event"];for(var x=R,se=0;se<p.length;se++)if(null==(x=x[p[se]])){p=null;break e}p=x}if(p=new Vr(se=p,this),x=!0,!(0>se.keyCode||null!=se.returnValue)){e:{var Le=!1;if(0==se.keyCode)try{se.keyCode=-1;break e}catch(an){Le=!0}(Le||null==se.returnValue)&&(se.returnValue=!0)}for(se=[],Le=p.g;Le;Le=Le.parentNode)se.push(Le);for(t=t.type,Le=se.length-1;!p.h&&0<=Le;Le--){p.g=se[Le];var Je=zt(se[Le],t,!0,p);x=x&&Je}for(Le=0;!p.h&&Le<se.length;Le++)p.g=se[Le],Je=zt(se[Le],t,!1,p),x=x&&Je}return x}return wn(t,new Vr(p,this))}function bi(t){return(t=t[Fn])instanceof nt?t:null}var Ni="__closure_events_fn_"+(1e9*Math.random()>>>0);function Hr(t){return pe(t)?t:(t[Ni]||(t[Ni]=function(p){return t.handleEvent(p)}),t[Ni])}function Zi(){Oi.call(this),this.J=new nt(this),this.wb=this,this.Ha=null}function Pr(t,p){var x,se=t.Ha;if(se)for(x=[];se;se=se.Ha)x.push(se);if(t=t.wb,se=p.type||p,B(p))p=new Es(p,t);else if(p instanceof Es)p.target=p.target||t;else{var Le=p;Lt(p=new Es(se,t),Le)}if(Le=!0,x)for(var Je=x.length-1;!p.h&&0<=Je;Je--){var an=p.g=x[Je];Le=Fr(an,se,!0,p)&&Le}if(p.h||(Le=Fr(an=p.g=t,se,!0,p)&&Le,p.h||(Le=Fr(an,se,!1,p)&&Le)),x)for(Je=0;!p.h&&Je<x.length;Je++)Le=Fr(an=p.g=x[Je],se,!1,p)&&Le;return Le}function Fr(t,p,x,se){if(!(p=t.J.a[String(p)]))return!0;p=p.concat();for(var Le=!0,Je=0;Je<p.length;++Je){var an=p[Je];if(an&&!an.sa&&an.capture==x){var Tn=an.listener,di=an.La||an.src;an.Ia&&At(t.J,an),Le=!1!==Tn.call(di,se)&&Le}}return Le&&0!=se.qb}ht(Zi,Oi),Zi.prototype[As]=!0,Zi.prototype.Za=function(t){this.Ha=t},Zi.prototype.removeEventListener=function(t,p,x,se){$e(this,t,p,x,se)},Zi.prototype.o=function(){if(Zi.K.o.call(this),this.J){var x,t=this.J;for(x in t.a){for(var se=t.a[x],Le=0;Le<se.length;Le++)H(se[Le]);delete t.a[x],t.g--}}this.Ha=null};var Ir={},Cr=0;function st(t,p){if(!t)throw Error("Event target element must be provided!");if(t=g(t),Ir[t]&&Ir[t].length)for(var x=0;x<Ir[t].length;x++)Pr(Ir[t][x],p)}function g(t){return void 0===t.a&&(t.a=Cr,Cr++),t.a}function u(t){if(!t)throw Error("Event target element must be provided!");Zi.call(this),this.a=t}function v(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(p){return!1}}function T(t,p){this.h=t,this.j=p,this.g=0,this.a=null}function ie(t,p){t.j(p),100>t.g&&(t.g++,p.next=t.a,t.a=p)}function we(){this.g=this.a=null}ne(u,Zi),u.prototype.N=function(){return this.a},u.prototype.register=function(){var t=g(this.N());
1Ir[t]?tt(Ir[t],this)||Ir[t].push(this):Ir[t]=[this]},T.prototype.get=function(){if(0<this.g){this.g--;var t=this.a;this.a=t.next,t.next=null}else t=this.h();return t};var Bn,wi,ft=new T(function(){return new dn},function(t){t.reset()});function Ut(){var t=Zr,p=null;return t.a&&(p=t.a,t.a=t.a.next,t.a||(t.g=null),p.next=null),p}function dn(){this.next=this.g=this.a=null}function tn(t){R.setTimeout(function(){throw t},0)}function ri(t,p){wi||function Gi(){if(R.Promise&&R.Promise.resolve){var t=R.Promise.resolve(void 0);wi=function(){t.then(Lr)}}else wi=function(){var p=Lr;!pe(R.setImmediate)||R.Window&&R.Window.prototype&&!dr("Edge")&&R.Window.prototype.setImmediate==R.setImmediate?(Bn||(Bn=function Kn(){var t=R.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!dr("Presto")&&(t=function(){var Le=document.createElement("IFRAME");Le.style.display="none",Le.src="",document.documentElement.appendChild(Le);var Je=Le.contentWindow;(Le=Je.document).open(),Le.write(""),Le.close();var an="callImmediate"+Math.random(),Tn="file:"==Je.location.protocol?"*":Je.location.protocol+"//"+Je.location.host;Le=ut(function(di){("*"==Tn||di.origin==Tn)&&di.data==an&&this.port1.onmessage()},this),Je.addEventListener("message",Le,!1),this.port1={},this.port2={postMessage:function(){Je.postMessage(an,Tn)}}}),void 0!==t&&!dr("Trident")&&!dr("MSIE")){var p=new t,x={},se=x;return p.port1.onmessage=function(){if(ee(x.next)){var Le=(x=x.next).gb;x.gb=null,Le()}},function(Le){se.next={gb:Le},se=se.next,p.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(Le){var Je=document.createElement("SCRIPT");Je.onreadystatechange=function(){Je.onreadystatechange=null,Je.parentNode.removeChild(Je),Je=null,Le(),Le=null},document.documentElement.appendChild(Je)}:function(Le){R.setTimeout(Le,0)}}()),Bn(p)):R.setImmediate(p)}}(),qi||(wi(),qi=!0),Zr.add(t,p)}we.prototype.add=function(t,p){var x=ft.get();x.set(t,p),this.g?this.g.next=x:this.a=x,this.g=x},dn.prototype.set=function(t,p){this.a=t,this.g=p,this.next=null},dn.prototype.reset=function(){this.next=this.g=this.a=null};var qi=!1,Zr=new we;function Lr(){for(var t;t=Ut();){try{t.a.call(t.g)}catch(p){tn(p)}ie(ft,t)}qi=!1}function _s(t){if(this.a=Fo,this.A=void 0,this.j=this.g=this.h=null,this.s=this.i=!1,t!=Fe)try{var p=this;t.call(void 0,function(x){_a(p,sa,x)},function(x){if(!(x instanceof oh))try{throw x instanceof Error?x:Error("Promise rejected.")}catch(se){}_a(p,Qi,x)})}catch(x){_a(this,Qi,x)}}var Fo=0,sa=2,Qi=3;function xo(){this.next=this.j=this.g=this.s=this.a=null,this.h=!1}xo.prototype.reset=function(){this.j=this.g=this.s=this.a=null,this.h=!1};var na=new T(function(){return new xo},function(t){t.reset()});function Mu(t,p,x){var se=na.get();return se.s=t,se.g=p,se.j=x,se}function No(t){if(t instanceof _s)return t;var p=new _s(Fe);return _a(p,sa,t),p}function Al(t){return new _s(function(p,x){x(t)})}function cc(t,p){if(t.a==Fo)if(t.h){var x=t.h;if(x.g){for(var se=0,Le=null,Je=null,an=x.g;an&&(an.h||(se++,an.a==t&&(Le=an),!(Le&&1<se)));an=an.next)Le||(Je=an);Le&&(x.a==Fo&&1==se?cc(x,p):(Je?((se=Je).next==x.j&&(x.j=se),se.next=se.next.next):Ka(x),Rh(x,Le,Qi,p)))}t.h=null}else _a(t,Qi,p)}function Tu(t,p){t.g||t.a!=sa&&t.a!=Qi||xc(t),t.j?t.j.next=p:t.g=p,t.j=p}function dl(t,p,x,se){var Le=Mu(null,null,null);return Le.a=new _s(function(Je,an){Le.s=p?function(Tn){try{var di=p.call(se,Tn);Je(di)}catch(Bi){an(Bi)}}:Je,Le.g=x?function(Tn){try{var di=x.call(se,Tn);!ee(di)&&Tn instanceof oh?an(Tn):Je(di)}catch(Bi){an(Bi)}}:an}),Le.a.h=t,Tu(t,Le),Le.a}function _a(t,p,x){if(t.a==Fo){t===x&&(p=Qi,x=new TypeError("Promise cannot resolve to itself")),t.a=1;e:{var se=x,Le=t.hc,Je=t.ic;if(se instanceof _s){Tu(se,Mu(Le||Fe,Je||null,t));var an=!0}else if(v(se))se.then(Le,Je,t),an=!0;else{if(ke(se))try{var Tn=se.then;if(pe(Tn)){(function Tc(t,p,x,se,Le){function Je(di){Tn||(Tn=!0,se.call(Le,di))}var Tn=!1;try{p.call(t,function an(di){Tn||(Tn=!0,x.call(Le,di))},Je)}catch(di){Je(di)}})(se,Tn,Le,Je,t),an=!0;break e}}catch(di){Je.call(t,di),an=!0;break e}an=!1}}an||(t.A=x,t.a=p,t.h=null,xc(t),p!=Qi||x instanceof oh||function Ml(t,p){t.s=!0,ri(function(){t.s&&Xc.call(null,p)})}(t,x))}}function xc(t){t.i||(t.i=!0,ri(t.Hb,t))}function Ka(t){var p=null;return t.g&&(t.g=(p=t.g).next,p.next=null),t.g||(t.j=null),p}function Rh(t,p,x,se){if(x==Qi&&p.g&&!p.h)for(;t&&t.s;t=t.h)t.s=!1;if(p.a)p.a.h=null,fl(p,x,se);else try{p.h?p.s.call(p.j):fl(p,x,se)}catch(Le){Xc.call(null,Le)}ie(na,p)}function fl(t,p,x){p==sa?t.s.call(t.j,x):t.g&&t.g.call(t.j,x)}_s.prototype.then=function(t,p,x){return dl(this,pe(t)?t:null,pe(p)?p:null,x)}
1,_s.prototype.$goog_Thenable=!0,(Q=_s.prototype).fc=function(t,p){return(t=Mu(t,t,p)).h=!0,Tu(this,t),this},Q.Ca=function(t,p){return dl(this,null,t,p)},Q.cancel=function(t){this.a==Fo&&ri(function(){cc(this,new oh(t))},this)},Q.hc=function(t){this.a=Fo,_a(this,sa,t)},Q.ic=function(t){this.a=Fo,_a(this,Qi,t)},Q.Hb=function(){for(var t;t=Ka(this);)Rh(this,t,this.a,this.A);this.i=!1};var Xc=tn;function oh(t){Ht.call(this,t)}function ro(t,p,x){p||(p={}),x=x||window;var se=t instanceof Nr?t:no(void 0!==t.href?t.href:String(t));t=p.target||t.target;var Le=[];for(Je in p)switch(Je){case"width":case"height":case"top":case"left":Le.push(Je+"="+p[Je]);break;case"target":case"noopener":case"noreferrer":break;default:Le.push(Je+"="+(p[Je]?1:0))}var Je=Le.join(",");return(dr("iPhone")&&!dr("iPod")&&!dr("iPad")||dr("iPad")||dr("iPod"))&&x.navigator&&x.navigator.standalone&&t&&"_self"!=t?(Je=x.document.createElement("A"),se=se instanceof Nr?se:Fs(se),Je.href=Xs(se),Je.setAttribute("target",t),p.noreferrer&&Je.setAttribute("rel","noreferrer"),(p=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,x,1),Je.dispatchEvent(p),x={}):p.noreferrer?(x=x.open("",t,Je),p=Xs(se).toString(),x&&(Oo&&-1!=p.indexOf(";")&&(p="'"+p.replace(/'/g,"%27")+"'"),x.opener=null,p=Zt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+kt(p)+'">',null),x.document.write(vt(p)),x.document.close())):(x=x.open(Xs(se).toString(),t,Je))&&p.noopener&&(x.opener=null),x}function Ph(){try{return!(!window.opener||!window.opener.location||window.opener.location.hostname!==window.location.hostname||window.opener.location.protocol!==window.location.protocol)}catch(t){}return!1}function Fh(t){ro(t,{target:window.cordova&&window.cordova.InAppBrowser?"_system":"_blank"},void 0)}function ka(t,p){if(null==(t=ke(t)&&1==t.nodeType?t:document.querySelector(String(t))))throw Error(p||"Cannot find element.");return t}function Oa(){return window.location.href}function Tl(t){var p=lh;this.s=[],this.T=p,this.O=t||null,this.j=this.a=!1,this.h=void 0,this.J=this.l=this.A=!1,this.i=0,this.g=null,this.C=0}function Ks(t,p,x){t.a=!0,t.h=x,t.j=!p,va(t)}function so(t){if(t.a){if(!t.J)throw new zl(t);t.J=!1}}function da(t,p,x){t.s.push([p,x,void 0]),t.a&&va(t)}function Qo(t){return Pe(t.s,function(p){return pe(p[1])})}function va(t){if(t.i&&t.a&&Qo(t)){var p=t.i,x=ah[p];x&&(R.clearTimeout(x.a),delete ah[p]),t.i=0}t.g&&(t.g.C--,delete t.g),p=t.h;for(var se=x=!1;t.s.length&&!t.A;){var Le=t.s.shift(),Je=Le[0],an=Le[1];if(Le=Le[2],Je=t.j?an:Je)try{var Tn=Je.call(Le||t.O,p);ee(Tn)&&(t.j=t.j&&(Tn==p||Tn instanceof Error),t.h=p=Tn),(v(p)||"function"==typeof R.Promise&&p instanceof R.Promise)&&(se=!0,t.A=!0)}catch(di){p=di,t.j=!0,Qo(t)||(x=!0)}}t.h=p,se&&(Tn=ut(t.L,t,!0),se=ut(t.L,t,!1),p instanceof Tl?(da(p,Tn,se),p.l=!0):p.then(Tn,se)),x&&(p=new aa(p),ah[p.a]=p,t.i=p.a)}function zl(){Ht.call(this)}function oa(){Ht.call(this)}function aa(t){this.a=R.setTimeout(ut(this.h,this),0),this.g=t}ht(oh,Ht),oh.prototype.name="cancel",Tl.prototype.cancel=function(t){if(this.a)this.h instanceof Tl&&this.h.cancel();else{if(this.g){var p=this.g;delete this.g,t?p.cancel(t):(p.C--,0>=p.C&&p.cancel())}this.T?this.T.call(this.O,this):this.J=!0,this.a||(t=new oa(this),so(this),Ks(this,!1,t))}},Tl.prototype.L=function(t,p){this.A=!1,Ks(this,t,p)},Tl.prototype.callback=function(t){so(this),Ks(this,!0,t)},Tl.prototype.then=function(t,p,x){var se,Le,Je=new _s(function(an,Tn){se=an,Le=Tn});return da(this,se,function(an){an instanceof oa?Je.cancel():Le(an)}),Je.then(t,p,x)},Tl.prototype.$goog_Thenable=!0,ht(zl,Ht),zl.prototype.message="Deferred has already fired",zl.prototype.name="AlreadyCalledError",ht(oa,Ht),oa.prototype.message="Deferred was canceled",oa.prototype.name="CanceledError",aa.prototype.h=function(){throw delete ah[this.a],this.g};var ah={};function lh(){if(this&&this.rb){var t=this.rb;t&&"SCRIPT"==t.tagName&&xu(t,!0,this.sb)}}function xu(t,p,x){null!=x&&R.clearTimeout(x),t.onload=Fe,t.onerror=Fe,t.onreadystatechange=Fe,p&&window.setTimeout(function(){jr(t)},0)}var Wl=0,Qf=1;function il(t,p){var x="Jsloader error (code #"+t+")";p&&(x+=": "+p),Ht.call(this,x),this.code=t}function kc(){return R.google&&R.google.accounts&&R.google.accounts.id||null}function fa(t){this.a=t||kc(),this.h=!1,this.g=null}function Ra(t,p,x){return t.a&&p?(t.h=!0,new _s(function(Le){t.g=Le,t.a.initialize({client_id:p,callback:Le,auto_select:!x}),t.a.prompt()})):No(p?ch.Xa().load().then(function(){return t.a=kc(),Ra(t,p,x)}).Ca(function(){return null}):null)}ht(il,Ht),fa.prototype.cancel=function(){this.a&&this.h&&(this.g&&this.g(null),this.a.cancel())},he(fa);var pl=new Ps(to,"https://accounts.google.com/gsi/client");function ch(){this.a=null}function Oc(t,p){this.a=t,this.g=p||function(x){throw x}}function uh(t,p,x){this.reset(t,p,x,void 0,void 0)}function df(t){this.s=t,this.a=this.h=this.j=this.g=null}function Yl(t,p){this.name=t,this.value=p}ch.prototype.load=function(){var t=this;if(this.a)return this.a;var p=function lo(){var t=pl;t instanceof Ps&&t.constructor===Ps&&t.g===Ao?t=t.a:(hn("expected object of type Const, got '"+t+"'"),t="type_error:Const");var p=new ms;return p.a=t,p}();return kc()?No():this.a=function Bo(){var t=null;return new _s(function(p){"complete"==R.document.readyState?p():(t=function(){p()},Er(window,"load",t))}).Ca(function(p){throw $e(window,"load",t),p})}().then(function(){if(!kc())return new _s(function(x,se){var Le=setTimeout(function(){t.a=null,se(Error("Network error!"))},1e4);R.onGoogleLibraryLoad=function(){clearTimeout(Le),x()},No(function Ic(t){var p={},x=p.document||document,se=Ar(t).toString(),Le=document.createElement("SCRIPT"),Je={rb:Le,sb:void 0},an=new Tl(Je),Tn=null,di=null!=p.timeout?p.timeout:5e3;return 0<di&&(Tn=window.setTimeout(function(){xu(Le,!0);var Bi=new il(Qf,"Timeout reached for loading script "+se);so(an),Ks(an,!1,Bi)},di),Je.sb=Tn),Le.onload=Le.onreadystatechange=function(){Le.readyState&&"loaded"!=Le.readyState&&"complete"!=Le.readyState||(xu(Le,p.xc||!1,Tn),an.callback(null))},Le.onerror=function(){xu(Le,!0,Tn);var Bi=new il(Wl,"Error while loading script "+se);so(an),Ks(an,!1,Bi)},Lt(Je=p.attributes||{}
1,{type:"text/javascript",charset:"UTF-8"}),function Qr(t,p){We(p,function(x,se){x&&"object"==typeof x&&x.ma&&(x=x.ka()),"style"==se?t.style.cssText=x:"class"==se?t.className=x:"for"==se?t.htmlFor=x:pr.hasOwnProperty(se)?t.setAttribute(pr[se],x):0==se.lastIndexOf("aria-",0)||0==se.lastIndexOf("data-",0)?t.setAttribute(se,x):t[se]=x})}(Le,Je),function jn(t,p){t.src=Ar(p),null===ge&&(ge=(p=(p=R.document).querySelector&&p.querySelector("script[nonce]"))&&(p=p.nonce||p.getAttribute("nonce"))&&K.test(p)?p:""),(p=ge)&&t.setAttribute("nonce",p)}(Le,t),function Zc(t){var p=(t||document).getElementsByTagName("HEAD");return p&&0!=p.length?p[0]:t.documentElement}(x).appendChild(Le),an}(p)).then(function(){kc()&&x()}).Ca(function(Je){clearTimeout(Le),t.a=null,se(Je)})})})},he(ch),Oc.prototype.confirm=function(t){return No(this.a.confirm(t)).Ca(this.g)},uh.prototype.a=null,uh.prototype.reset=function(t,p,x,se,Le){this.h=se||Ot(),this.j=t,this.s=p,this.g=x,delete this.a},Yl.prototype.toString=function(){return this.name};var Rc=new Yl("SEVERE",1e3),Lh=new Yl("WARNING",900),ia=new Yl("CONFIG",700);function xl(t){return t.j?t.j:t.g?xl(t.g):(hn("Root logger has no level set."),null)}df.prototype.log=function(t,p,x){if(t.value>=xl(this).value)for(pe(p)&&(p=p()),t=new uh(t,String(p),this.s),x&&(t.a=x),x=this;x;){var se=x,Le=t;if(se.a)for(var Je=0;p=se.a[Je];Je++)p(Le);x=x.g}};var Pc={},ya=null;function hh(){ya||(ya=new df(""),Pc[""]=ya,ya.j=ia)}function Nh(){this.a=Ot()}var Il=null;function Pa(t){this.j=t||"",Il||(Il=new Nh),this.s=Il}function Io(t){return 10>t?"0"+t:String(t)}function Kl(t){Pa.call(this,t)}function pf(){this.s=ut(this.h,this),this.a=new Kl,this.a.g=!1,this.a.h=!1,this.g=this.a.a=!1,this.j={}}Nh.prototype.set=function(t){this.a=t},Nh.prototype.reset=function(){this.set(Ot())},Nh.prototype.get=function(){return this.a},Pa.prototype.a=!0,Pa.prototype.g=!0,Pa.prototype.h=!1,ht(Kl,Pa),pf.prototype.h=function(t){if(!this.j[t.g]){var x=function ff(t,p){var x=[];if(x.push(t.j," "),t.g){var se=new Date(p.h);x.push("[",Io(se.getFullYear()-2e3)+Io(se.getMonth()+1)+Io(se.getDate())+" "+Io(se.getHours())+":"+Io(se.getMinutes())+":"+Io(se.getSeconds())+"."+Io(Math.floor(se.getMilliseconds()/10)),"] ")}return x.push("[",function Xf(t,p){p=(t=(t.h-p)/1e3).toFixed(3);var x=0;if(1>t)x=2;else for(;100>t;)x++,t*=10;for(;0<x--;)p=" "+p;return p}(p,t.s.get()),"s] "),x.push("[",p.g,"] "),x.push(p.s),t.h&&(p=p.a)&&x.push("\n",p instanceof Error?p.message:p.toString()),t.a&&x.push("\n"),x.join("")}(this.a,t);Uo&&function eu(t,p,x,se){t[p]?t[p](x,se||""):t.log(x,se||"")}(Uo,function p(Je){if(Je){if(Je.value>=Rc.value)return"error";if(Je.value>=Lh.value)return"warn";if(Je.value>=ia.value)return"log"}return"debug"}(t.j),x,t.a)}};var uc,Uo=R.console;function pa(t,p){uc&&uc.log(Rc,t,p)}uc=function Jc(t){var p;if(hh(),!(p=Pc[t])){p=new df(t);var x=t.lastIndexOf("."),se=t.substr(x+1);(x=Jc(t.substr(0,x))).h||(x.h={}),x.h[se]=p,p.g=x,Pc[t]=p}return p}("firebaseui");var kl=new pf;if(1!=kl.g){var hc;hh();var Bh=kl.s;(hc=ya).a||(hc.a=[]),hc.a.push(Bh),kl.g=!0}function Ol(t){uc&&uc.log(Lh,t,void 0)}function ga(){this.a=("undefined"==typeof document?null:document)||{cookie:""}}function dc(t){t=(t.a.cookie||"").split(";");for(var se,Le,p=[],x=[],Je=0;Je<t.length;Je++)-1==(se=(Le=Dn(t[Je])).indexOf("="))?(p.push(""),x.push(Le)):(p.push(Le.substring(0,se)),x.push(Le.substring(se+1)));return{keys:p,values:x}}(Q=ga.prototype).set=function(t,p,x,se,Le,Je){if(/[;=\s]/.test(t))throw Error('Invalid cookie name "'+t+'"');if(/[;\r\n]/.test(p))throw Error('Invalid cookie value "'+p+'"');ee(x)||(x=-1),Le=Le?";domain="+Le:"",se=se?";path="+se:"",Je=Je?";secure":"",x=0>x?"":0==x?";expires="+new Date(1970,1,1).toUTCString():";expires="+new Date(Ot()+1e3*x).toUTCString(),this.a.cookie=t+"="+p+Le+se+x+Je},Q.get=function(t,p){for(var Je,x=t+"=",se=(this.a.cookie||"").split(";"),Le=0;Le<se.length;Le++){if(0==(Je=Dn(se[Le])).lastIndexOf(x,0))return Je.substr(x.length);if(Je==t)return""}return p},Q.ja=function(){return dc(this).keys},Q.la=function(){return dc(this).values},Q.clear=function(){for(var t=dc(this).keys,p=t.length-1;0<=p;p--){var x=t[p];this.get(x),this.set(x,"",0,void 0,void 0)}};var tu=new ga;function Fa(){}function Fc(t,p,x,se){this.h=null!=t?t:-1,this.g=p||null,this.a=x||null,this.j=!!se}function ba(t,p){this.g=t,this.a=p||null}function Rl(t){return{email:t.g,credential:t.a&&t.a.toJSON()}}function fc(t){if(t&&t.email){var p=t.credential&&_().auth.AuthCredential.fromJSON(t.credential);return new ba(t.email,p)}return null}function La(t){this.a=t||null}function vd(t){for(var p=[],x=0,se=0;se<t.length;se++){var Le=t.charCodeAt(se);255<Le&&(p[x++]=255&Le,Le>>=8),p[x++]=Le}return p}function Iu(t){return qe(t,function(p){return 1<(p=p.toString(16)).length?p:"0"+p}).join("")}function Pl(t){for(this.i=t,this.g=this.i.length/4,this.j=this.g+6,this.h=[[],[],[],[]],this.s=[[],[],[],[]],this.a=Array($a*(this.j+1)),t=0;t<this.g;t++)this.a[t]=[this.i[4*t],this.i[4*t+1],this.i[4*t+2],this.i[4*t+3]];var p=Array(4);for(t=this.g;t<$a*(this.j+1);t++){if(p[0]=this.a[t-1][0],p[1]=this.a[t-1][1],p[2]=this.a[t-1][2],p[3]=this.a[t-1][3],t%this.g==0){var x=p,se=x[0];x[0]=x[1],x[1]=x[2],x[2]=x[3],x[3]=se,gl(p),p[0]^=ml[t/this.g][0],p[1]^=ml[t/this.g][1],p[2]^=ml[t/this.g][2],p[3]^=ml[t/this.g][3]}else 6<this.g&&t%this.g==4&&gl(p);this.a[t]=Array(4),this.a[t][0]=this.a[t-this.g][0]^p[0],this.a[t][1]=this.a[t-this.g][1]^p[1],this.a[t][2]=this.a[t-this.g][2]^p[2],this.a[t][3]=this.a[t-this.g][3]^p[3]}}ne(Fc,Fa),Fc.prototype.set=function(t,p){tu.set(t,p,this.h,this.g,this.a,this.j)},Fc.prototype.get=function(t){return tu.get(t)||null},Fc.prototype.ra=function(t){var p=this.g,x=this.a;tu.get(t),tu.set(t,"",0,p,x)};var $a=(Pl.prototype.A=16)/4;function ku(t,p){for(var se=0;se<$a;se++)for(var Le=0;4>Le;Le++)t.h[se][Le]=p[4*Le+se]}function pc(t){for(var p=[],x=0;x<$a;x++)for(var se=0;4>se;se++)p[4*se+x]=t.h[x][se];return p}function Fl(t,p){for(var x=0;4>x;x++)for(var se=0;4>se;se++)t.h[x][se]^=t.a[4*p+se][x]}function wa(t,p){for(var x=0;4>x;x++)for(var se=0;4>se;se++)t.h[x][se]=p[t.h[x][se]]}function yd(t){for(var p=1;4>p;p++)for(var x=0;4>x;x++)t.s[p][x]=t.h[p][x];for(p=1;4>p;p++)for(x=0;4>x;
1x++)t.h[p][x]=t.s[p][(x+p)%$a]}function Ou(t){for(var p=1;4>p;p++)for(var x=0;4>x;x++)t.s[p][(x+p)%$a]=t.h[p][x];for(p=1;4>p;p++)for(x=0;4>x;x++)t.h[p][x]=t.s[p][x]}function gl(t){t[0]=dh[t[0]],t[1]=dh[t[1]],t[2]=dh[t[2]],t[3]=dh[t[3]]}var dh=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Ru=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],ml=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],la=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],_l=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],Pu=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],Na=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],nu=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],ca=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,
1181,159,145,131,141];function fh(t,p){t=new Pl(iu(t));for(var Le,x=(p=vd(p)).splice(0,16),se="";x.length;){Le=16-x.length;for(var Je=0;Je<Le;Je++)x.push(0);for(ku(Le=t,x),Fl(Le,0),x=1;x<Le.j;++x){wa(Le,dh),yd(Le),Je=Le.h;for(var an=Le.s[0],Tn=0;4>Tn;Tn++)an[0]=Je[0][Tn],an[1]=Je[1][Tn],an[2]=Je[2][Tn],an[3]=Je[3][Tn],Je[0][Tn]=la[an[0]]^_l[an[1]]^an[2]^an[3],Je[1][Tn]=an[0]^la[an[1]]^_l[an[2]]^an[3],Je[2][Tn]=an[0]^an[1]^la[an[2]]^_l[an[3]],Je[3][Tn]=_l[an[0]]^an[1]^an[2]^la[an[3]];Fl(Le,x)}wa(Le,dh),yd(Le),Fl(Le,Le.j),se+=Iu(pc(Le)),x=p.splice(0,16)}return se}function bd(t,p){t=new Pl(iu(t));for(var x=[],se=0;se<p.length;se+=2)x.push(parseInt(p.substring(se,se+2),16));var Le=x.splice(0,16);for(p="";Le.length;){for(ku(se=t,Le),Fl(se,se.j),Le=1;Le<se.j;++Le){Ou(se),wa(se,Ru),Fl(se,se.j-Le);for(var Je=se.h,an=se.s[0],Tn=0;4>Tn;Tn++)an[0]=Je[0][Tn],an[1]=Je[1][Tn],an[2]=Je[2][Tn],an[3]=Je[3][Tn],Je[0][Tn]=ca[an[0]]^Na[an[1]]^nu[an[2]]^Pu[an[3]],Je[1][Tn]=Pu[an[0]]^ca[an[1]]^Na[an[2]]^nu[an[3]],Je[2][Tn]=nu[an[0]]^Pu[an[1]]^ca[an[2]]^Na[an[3]],Je[3][Tn]=Na[an[0]]^nu[an[1]]^Pu[an[2]]^ca[an[3]]}if(Ou(se),wa(se,Ru),Fl(se,0),8192>=(se=pc(se)).length)se=String.fromCharCode.apply(null,se);else{for(Le="",Je=0;Je<se.length;Je+=8192)Le+=String.fromCharCode.apply(null,Pt(se,Je,Je+8192));se=Le}p+=se,Le=x.splice(0,16)}return p.replace(/(\x00)+$/,"")}function iu(t){for(var p=32-(t=vd(t.substring(0,32))).length,x=0;x<p;x++)t.push(0);return t}function jo(t){var p=[];return gc(new ru,t,p),p.join("")}function ru(){}function gc(t,p,x){if(null==p)x.push("null");else{if("object"==typeof p){if(Ie(p)){var se=p;p=se.length,x.push("[");for(var Le="",Je=0;Je<p;Je++)x.push(Le),gc(t,se[Je],x),Le=",";return void x.push("]")}if(!(p instanceof String||p instanceof Number||p instanceof Boolean)){for(se in x.push("{"),Le="",p)Object.prototype.hasOwnProperty.call(p,se)&&"function"!=typeof(Je=p[se])&&(x.push(Le),vl(se,x),x.push(":"),gc(t,Je,x),Le=",");return void x.push("}")}p=p.valueOf()}switch(typeof p){case"string":vl(p,x);break;case"number":x.push(isFinite(p)&&!isNaN(p)?String(p):"null");break;case"boolean":x.push(String(p));break;case"function":x.push("null");break;default:throw Error("Unknown type: "+typeof p)}}}var Lc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},wd=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function vl(t,p){p.push('"',t.replace(wd,function(x){var se=Lc[x];return se||(se="\\u"+(65536|x.charCodeAt(0)).toString(16).substr(1),Lc[x]=se),se}),'"')}function Fu(t){this.a=t}function mc(){}function Lu(t){this.a=t}function Ea(t){if(!t.a)return!1;try{return t.a.setItem("__sak","1"),t.a.removeItem("__sak"),!0}catch(p){return!1}}function su(){var t=null;try{t=window.localStorage||null}catch(p){}this.a=t}function Uh(){var t=null;try{t=window.sessionStorage||null}catch(p){}this.a=t}function _c(t,p){this.g=t,this.a=p+"::"}Fu.prototype.set=function(t,p){ee(p)?this.a.set(t,jo(p)):this.a.ra(t)},Fu.prototype.get=function(t){try{var p=this.a.get(t)}catch(x){return}if(null!==p)try{return JSON.parse(p)}catch(x){throw"Storage: Invalid value was encountered"}},ht(mc,Fa),mc.prototype.clear=function(){var t=function Ae(t){if(Se(t))return Wt(t);t=Ke(t);var p=[];return function Ne(t,p){if(Se(t))try{ln(t,p,void 0)}catch(x){if(x!==xt)throw x}else{t=Ke(t);try{for(;;)p.call(void 0,t.next(),void 0,t)}catch(x){if(x!==xt)throw x}}}(t,function(x){p.push(x)}),p}(this.ha(!0)),p=this;ln(t,function(x){p.ra(x)})},ht(Lu,mc),(Q=Lu.prototype).set=function(t,p){try{this.a.setItem(t,p)}catch(x){throw 0==this.a.length?"Storage mechanism: Storage disabled":"Storage mechanism: Quota exceeded"}},Q.get=function(t){if(!B(t=this.a.getItem(t))&&null!==t)throw"Storage mechanism: Invalid value was encountered";return t},Q.ra=function(t){this.a.removeItem(t)},Q.ha=function(t){var p=0,x=this.a,se=new Gt;return se.next=function(){if(p>=x.length)throw xt;var Le=x.key(p++);if(t)return Le;if(!B(Le=x.getItem(Le)))throw"Storage mechanism: Invalid value was encountered";return Le},se},Q.clear=function(){this.a.clear()},Q.key=function(t){return this.a.key(t)},ht(su,Lu),ht(Uh,Lu),ht(_c,mc),_c.prototype.set=function(t,p){this.g.set(this.a+t,p)},_c.prototype.get=function(t){return this.g.get(this.a+t)},_c.prototype.ra=function(t){this.g.ra(this.a+t)},_c.prototype.ha=function(t){var p=this.g.ha(!0),x=this,se=new Gt;return se.next=function(){for(var Le=p.next();Le.substr(0,x.a.length)!=x.a;)Le=p.next();return t?Le.substr(x.a.length):x.g.get(Le)},se},Ea(new su);var Ll=new Uh,Nu=new Fu(Ea(Ll)?new _c(Ll,"firebaseui"):null),Bu={name:"pendingEmailCredential",storage:Nu},ou={name:"redirectStatus",storage:Nu},au={name:"redirectUrl",storage:Nu},yc={name:"emailForSignIn",storage:new Fu(new Fc(3600,"/"))},$l={name:"pendingEncryptedCredential",storage:new Fu(new Fc(3600,"/"))};function Nl(t,p){return t.storage.get(p?t.name+":"+p:t.name)}function Vo(t,p){t.storage.a.ra(p?t.name+":"+p:t.name)}function rl(t,p,x){t.storage.set(x?t.name+":"+x:t.name,p)}function ph(t){return Nl(au,t)||null}function qa(t){return fc(t=Nl(Bu,t)||null)}function yl(t){Vo(Bu,t)}function ql(t,p){rl(Bu,Rl(t),p)}function lu(t){return(t=Nl(ou,t)||null)&&void 0!==t.tenantId?new La(t.tenantId):null}function mf(){this.W={}}function Xo(t,p,x){if(p.toLowerCase()in t.W)throw Error("Configuration "+p+" has already been defined.");t.W[p.toLowerCase()]=x}function Uu(t,p,x){if(!(p.toLowerCase()in t.W))throw Error("Configuration "+p+" is not defined.");t.W[p.toLowerCase()]=x}function Vh(t,p){if(!(t=t.get(p)))throw Error("Configuration "+p+" is required.");return t}function gh(){this.g=void 0,this.a={}}function mh(t,p,x,se){for(var Le=0;Le<p.length;Le++){var Je=p.charAt(Le);t.a[Je]||(t.a[Je]=new gh),t=t.a[Je]}if(se&&void 0!==t.g)throw Error('The collection already contains the key "'+p+'"');t.g=x}function uu(t,p){for(var x in void 0!==t.g&&p.push(t.g),t.a)uu(t.a[x],p)}function _h(t,p,x){for(var se in void 0!==t.g&&x.push(p),t.a)_h(t.a[se],p+se,x)}function hu(t){for(this.a=t,this.g=new gh,t=0;t<this.a.length;t++){var p=this.g.get("+"+this.a[t].b);p?p.push(this.a[t]):this.g.add("+"+this.a[t].b,[this.a[t]])}}function Ba(t,p){var x={},se=0;for(void 0!==(t=t.g).g&&(x[se]=t.g);se<p.length;se++){var Le=p.charAt(se);if(!(Le in t.a))break;void 0!==(t=t.a[Le]).g&&(x[se]=t.g)}for(var Je in x)if(x.hasOwnProperty(Je))return x[Je];return[]}function Nc(t){for(var p=0;p<Ho.length;p++)if(Ho[p].c===t)return Ho[p];return null}function Qa(t){t=t.toUpperCase();for(var p=[],x=0;x<Ho.length;x++)Ho[x].f===t&&p.push(Ho[x]);return p}function Ql(t){if(0<t.length&&"+"==t.charAt(0)){t=t.substring(1);for(var p=[],x=0;x<Ho.length;x++)Ho[x].b==t&&p.push(Ho[x]);t=p}else t=Qa(t);return t}function Xl(t){t.sort(function(p,x){return p.name.localeCompare(x.name,"en")})}mf.prototype.get=function(t){if(!(t.toLowerCase()in this.W))throw Error("Configuration "+t+" is not defined.");return this.W[t.toLowerCase()]},(Q=gh.prototype).set=function(t,p){mh(this,t,p,!1)},Q.add=function(t,p){mh(this,t,p,!0)},Q.get=function(t){e:{for(var p=this,x=0;x<t.length;x++)if(!(p=p.a[t.charAt(x)])){t=void 0;break e}t=p}return t?t.g:void 0},Q.la=function(){var t=[];return uu(this,t),t},Q.ja=function(){var t=[];return _h(this,"",t),t},Q.clear=function(){this.a={},this.g=void 0};var Ho=[{name:"Afghanistan",c:"93-AF-0",b:"93",f:"AF"},{name:"\xc5land Islands",c:"358-AX-0",b:"358",f:"AX"},{name:"Albania",c:"355-AL-0",b:"355",f:"AL"},{name:"Algeria",c:"213-DZ-0",b:"213",f:"DZ"},{name:"American Samoa",c:"1-AS-0",b:"1",f:"AS"},{name:"Andorra",c:"376-AD-0",b:"376",f:"AD"},{name:"Angola",c:"244-AO-0",b:"244",f:"AO"},{name:"Anguilla",c:"1-AI-0",b:"1",f:"AI"},{name:"Antigua and Barbuda",c:"1-AG-0",b:"1",f:"AG"},{name:"Argentina",c:"54-AR-0",b:"54",f:"AR"},{name:"Armenia",c:"374-AM-0",b:"374",f:"AM"},{name:"Aruba",c:"297-AW-0",b:"297",f:"AW"},{name:"Ascension Island",c:"247-AC-0",b:"247",f:"AC"}
1,{name:"Australia",c:"61-AU-0",b:"61",f:"AU"},{name:"Austria",c:"43-AT-0",b:"43",f:"AT"},{name:"Azerbaijan",c:"994-AZ-0",b:"994",f:"AZ"},{name:"Bahamas",c:"1-BS-0",b:"1",f:"BS"},{name:"Bahrain",c:"973-BH-0",b:"973",f:"BH"},{name:"Bangladesh",c:"880-BD-0",b:"880",f:"BD"},{name:"Barbados",c:"1-BB-0",b:"1",f:"BB"},{name:"Belarus",c:"375-BY-0",b:"375",f:"BY"},{name:"Belgium",c:"32-BE-0",b:"32",f:"BE"},{name:"Belize",c:"501-BZ-0",b:"501",f:"BZ"},{name:"Benin",c:"229-BJ-0",b:"229",f:"BJ"},{name:"Bermuda",c:"1-BM-0",b:"1",f:"BM"},{name:"Bhutan",c:"975-BT-0",b:"975",f:"BT"},{name:"Bolivia",c:"591-BO-0",b:"591",f:"BO"},{name:"Bosnia and Herzegovina",c:"387-BA-0",b:"387",f:"BA"},{name:"Botswana",c:"267-BW-0",b:"267",f:"BW"},{name:"Brazil",c:"55-BR-0",b:"55",f:"BR"},{name:"British Indian Ocean Territory",c:"246-IO-0",b:"246",f:"IO"},{name:"British Virgin Islands",c:"1-VG-0",b:"1",f:"VG"},{name:"Brunei",c:"673-BN-0",b:"673",f:"BN"},{name:"Bulgaria",c:"359-BG-0",b:"359",f:"BG"},{name:"Burkina Faso",c:"226-BF-0",b:"226",f:"BF"},{name:"Burundi",c:"257-BI-0",b:"257",f:"BI"},{name:"Cambodia",c:"855-KH-0",b:"855",f:"KH"},{name:"Cameroon",c:"237-CM-0",b:"237",f:"CM"},{name:"Canada",c:"1-CA-0",b:"1",f:"CA"},{name:"Cape Verde",c:"238-CV-0",b:"238",f:"CV"},{name:"Caribbean Netherlands",c:"599-BQ-0",b:"599",f:"BQ"},{name:"Cayman Islands",c:"1-KY-0",b:"1",f:"KY"},{name:"Central African Republic",c:"236-CF-0",b:"236",f:"CF"},{name:"Chad",c:"235-TD-0",b:"235",f:"TD"},{name:"Chile",c:"56-CL-0",b:"56",f:"CL"},{name:"China",c:"86-CN-0",b:"86",f:"CN"},{name:"Christmas Island",c:"61-CX-0",b:"61",f:"CX"},{name:"Cocos [Keeling] Islands",c:"61-CC-0",b:"61",f:"CC"},{name:"Colombia",c:"57-CO-0",b:"57",f:"CO"},{name:"Comoros",c:"269-KM-0",b:"269",f:"KM"},{name:"Democratic Republic Congo",c:"243-CD-0",b:"243",f:"CD"},{name:"Republic of Congo",c:"242-CG-0",b:"242",f:"CG"},{name:"Cook Islands",c:"682-CK-0",b:"682",f:"CK"},{name:"Costa Rica",c:"506-CR-0",b:"506",f:"CR"},{name:"C\xf4te d'Ivoire",c:"225-CI-0",b:"225",f:"CI"},{name:"Croatia",c:"385-HR-0",b:"385",f:"HR"},{name:"Cuba",c:"53-CU-0",b:"53",f:"CU"},{name:"Cura\xe7ao",c:"599-CW-0",b:"599",f:"CW"},{name:"Cyprus",c:"357-CY-0",b:"357",f:"CY"},{name:"Czech Republic",c:"420-CZ-0",b:"420",f:"CZ"},{name:"Denmark",c:"45-DK-0",b:"45",f:"DK"},{name:"Djibouti",c:"253-DJ-0",b:"253",f:"DJ"},{name:"Dominica",c:"1-DM-0",b:"1",f:"DM"},{name:"Dominican Republic",c:"1-DO-0",b:"1",f:"DO"},{name:"East Timor",c:"670-TL-0",b:"670",f:"TL"},{name:"Ecuador",c:"593-EC-0",b:"593",f:"EC"},{name:"Egypt",c:"20-EG-0",b:"20",f:"EG"},{name:"El Salvador",c:"503-SV-0",b:"503",f:"SV"},{name:"Equatorial Guinea",c:"240-GQ-0",b:"240",f:"GQ"},{name:"Eritrea",c:"291-ER-0",b:"291",f:"ER"},{name:"Estonia",c:"372-EE-0",b:"372",f:"EE"},{name:"Ethiopia",c:"251-ET-0",b:"251",f:"ET"},{name:"Falkland Islands [Islas Malvinas]",c:"500-FK-0",b:"500",f:"FK"},{name:"Faroe Islands",c:"298-FO-0",b:"298",f:"FO"},{name:"Fiji",c:"679-FJ-0",b:"679",f:"FJ"},{name:"Finland",c:"358-FI-0",b:"358",f:"FI"},{name:"France",c:"33-FR-0",b:"33",f:"FR"},{name:"French Guiana",c:"594-GF-0",b:"594",f:"GF"},{name:"French Polynesia",c:"689-PF-0",b:"689",f:"PF"},{name:"Gabon",c:"241-GA-0",b:"241",f:"GA"},{name:"Gambia",c:"220-GM-0",b:"220",f:"GM"},{name:"Georgia",c:"995-GE-0",b:"995",f:"GE"},{name:"Germany",c:"49-DE-0",b:"49",f:"DE"},{name:"Ghana",c:"233-GH-0",b:"233",f:"GH"},{name:"Gibraltar",c:"350-GI-0",b:"350",f:"GI"},{name:"Greece",c:"30-GR-0",b:"30",f:"GR"},{name:"Greenland",c:"299-GL-0",b:"299",f:"GL"},{name:"Grenada",c:"1-GD-0",b:"1",f:"GD"},{name:"Guadeloupe",c:"590-GP-0",b:"590",f:"GP"},{name:"Guam",c:"1-GU-0",b:"1",f:"GU"},{name:"Guatemala",c:"502-GT-0",b:"502",f:"GT"},{name:"Guernsey",c:"44-GG-0",b:"44",f:"GG"},{name:"Guinea Conakry",c:"224-GN-0",b:"224",f:"GN"},{name:"Guinea-Bissau",c:"245-GW-0",b:"245",f:"GW"},{name:"Guyana",c:"592-GY-0",b:"592",f:"GY"},{name:"Haiti",c:"509-HT-0",b:"509",f:"HT"},{name:"Heard Island and McDonald Islands",c:"672-HM-0",b:"672",f:"HM"},{name:"Honduras",c:"504-HN-0",b:"504",f:"HN"},{name:"Hong Kong",c:"852-HK-0",b:"852",f:"HK"},{name:"Hungary",c:"36-HU-0",b:"36",f:"HU"},{name:"Iceland",c:"354-IS-0",b:"354",f:"IS"},{name:"India",c:"91-IN-0",b:"91",f:"IN"},{name:"Indonesia",c:"62-ID-0",b:"62",f:"ID"},{name:"Iran",c:"98-IR-0",b:"98",f:"IR"},{name:"Iraq",c:"964-IQ-0",b:"964",f:"IQ"},{name:"Ireland",c:"353-IE-0",b:"353",f:"IE"},{name:"Isle of Man",c:"44-IM-0",b:"44",f:"IM"},{name:"Israel",c:"972-IL-0",b:"972",f:"IL"},{name:"Italy",c:"39-IT-0",b:"39",f:"IT"},{name:"Jamaica",c:"1-JM-0",b:"1",f:"JM"},{name:"Japan",c:"81-JP-0",b:"81",f:"JP"},{name:"Jersey",c:"44-JE-0",b:"44",f:"JE"},{name:"Jordan",c:"962-JO-0",b:"962",f:"JO"},{name:"Kazakhstan",c:"7-KZ-0",b:"7",f:"KZ"},{name:"Kenya",c:"254-KE-0",b:"254",f:"KE"},{name:"Kiribati",c:"686-KI-0",b:"686",f:"KI"},{name:"Kosovo",c:"377-XK-0",b:"377",f:"XK"},{name:"Kosovo",c:"381-XK-0",b:"381",f:"XK"},{name:"Kosovo",c:"386-XK-0",b:"386",f:"XK"},{name:"Kuwait",c:"965-KW-0",b:"965",f:"KW"},{name:"Kyrgyzstan",c:"996-KG-0",b:"996",f:"KG"},{name:"Laos",c:"856-LA-0",b:"856",f:"LA"},{name:"Latvia",c:"371-LV-0",b:"371",f:"LV"},{name:"Lebanon",c:"961-LB-0",b:"961",f:"LB"},{name:"Lesotho",c:"266-LS-0",b:"266",f:"LS"},{name:"Liberia",c:"231-LR-0",b:"231",f:"LR"},{name:"Libya",c:"218-LY-0",b:"218",f:"LY"},{name:"Liechtenstein",c:"423-LI-0",b:"423",f:"LI"},{name:"Lithuania",c:"370-LT-0",b:"370",f:"LT"},{name:"Luxembourg",c:"352-LU-0",b:"352",f:"LU"},{name:"Macau",c:"853-MO-0",b:"853",f:"MO"},{name:"Macedonia",c:"389-MK-0",b:"389",f:"MK"},{name:"Madagascar",c:"261-MG-0",b:"261",f:"MG"}
1,{name:"Malawi",c:"265-MW-0",b:"265",f:"MW"},{name:"Malaysia",c:"60-MY-0",b:"60",f:"MY"},{name:"Maldives",c:"960-MV-0",b:"960",f:"MV"},{name:"Mali",c:"223-ML-0",b:"223",f:"ML"},{name:"Malta",c:"356-MT-0",b:"356",f:"MT"},{name:"Marshall Islands",c:"692-MH-0",b:"692",f:"MH"},{name:"Martinique",c:"596-MQ-0",b:"596",f:"MQ"},{name:"Mauritania",c:"222-MR-0",b:"222",f:"MR"},{name:"Mauritius",c:"230-MU-0",b:"230",f:"MU"},{name:"Mayotte",c:"262-YT-0",b:"262",f:"YT"},{name:"Mexico",c:"52-MX-0",b:"52",f:"MX"},{name:"Micronesia",c:"691-FM-0",b:"691",f:"FM"},{name:"Moldova",c:"373-MD-0",b:"373",f:"MD"},{name:"Monaco",c:"377-MC-0",b:"377",f:"MC"},{name:"Mongolia",c:"976-MN-0",b:"976",f:"MN"},{name:"Montenegro",c:"382-ME-0",b:"382",f:"ME"},{name:"Montserrat",c:"1-MS-0",b:"1",f:"MS"},{name:"Morocco",c:"212-MA-0",b:"212",f:"MA"},{name:"Mozambique",c:"258-MZ-0",b:"258",f:"MZ"},{name:"Myanmar [Burma]",c:"95-MM-0",b:"95",f:"MM"},{name:"Namibia",c:"264-NA-0",b:"264",f:"NA"},{name:"Nauru",c:"674-NR-0",b:"674",f:"NR"},{name:"Nepal",c:"977-NP-0",b:"977",f:"NP"},{name:"Netherlands",c:"31-NL-0",b:"31",f:"NL"},{name:"New Caledonia",c:"687-NC-0",b:"687",f:"NC"},{name:"New Zealand",c:"64-NZ-0",b:"64",f:"NZ"},{name:"Nicaragua",c:"505-NI-0",b:"505",f:"NI"},{name:"Niger",c:"227-NE-0",b:"227",f:"NE"},{name:"Nigeria",c:"234-NG-0",b:"234",f:"NG"},{name:"Niue",c:"683-NU-0",b:"683",f:"NU"},{name:"Norfolk Island",c:"672-NF-0",b:"672",f:"NF"},{name:"North Korea",c:"850-KP-0",b:"850",f:"KP"},{name:"Northern Mariana Islands",c:"1-MP-0",b:"1",f:"MP"},{name:"Norway",c:"47-NO-0",b:"47",f:"NO"},{name:"Oman",c:"968-OM-0",b:"968",f:"OM"},{name:"Pakistan",c:"92-PK-0",b:"92",f:"PK"},{name:"Palau",c:"680-PW-0",b:"680",f:"PW"},{name:"Palestinian Territories",c:"970-PS-0",b:"970",f:"PS"},{name:"Panama",c:"507-PA-0",b:"507",f:"PA"},{name:"Papua New Guinea",c:"675-PG-0",b:"675",f:"PG"},{name:"Paraguay",c:"595-PY-0",b:"595",f:"PY"},{name:"Peru",c:"51-PE-0",b:"51",f:"PE"},{name:"Philippines",c:"63-PH-0",b:"63",f:"PH"},{name:"Poland",c:"48-PL-0",b:"48",f:"PL"},{name:"Portugal",c:"351-PT-0",b:"351",f:"PT"},{name:"Puerto Rico",c:"1-PR-0",b:"1",f:"PR"},{name:"Qatar",c:"974-QA-0",b:"974",f:"QA"},{name:"R\xe9union",c:"262-RE-0",b:"262",f:"RE"},{name:"Romania",c:"40-RO-0",b:"40",f:"RO"},{name:"Russia",c:"7-RU-0",b:"7",f:"RU"},{name:"Rwanda",c:"250-RW-0",b:"250",f:"RW"},{name:"Saint Barth\xe9lemy",c:"590-BL-0",b:"590",f:"BL"},{name:"Saint Helena",c:"290-SH-0",b:"290",f:"SH"},{name:"St. Kitts",c:"1-KN-0",b:"1",f:"KN"},{name:"St. Lucia",c:"1-LC-0",b:"1",f:"LC"},{name:"Saint Martin",c:"590-MF-0",b:"590",f:"MF"},{name:"Saint Pierre and Miquelon",c:"508-PM-0",b:"508",f:"PM"},{name:"St. Vincent",c:"1-VC-0",b:"1",f:"VC"},{name:"Samoa",c:"685-WS-0",b:"685",f:"WS"},{name:"San Marino",c:"378-SM-0",b:"378",f:"SM"},{name:"S\xe3o Tom\xe9 and Pr\xedncipe",c:"239-ST-0",b:"239",f:"ST"},{name:"Saudi Arabia",c:"966-SA-0",b:"966",f:"SA"},{name:"Senegal",c:"221-SN-0",b:"221",f:"SN"},{name:"Serbia",c:"381-RS-0",b:"381",f:"RS"},{name:"Seychelles",c:"248-SC-0",b:"248",f:"SC"},{name:"Sierra Leone",c:"232-SL-0",b:"232",f:"SL"},{name:"Singapore",c:"65-SG-0",b:"65",f:"SG"},{name:"Sint Maarten",c:"1-SX-0",b:"1",f:"SX"},{name:"Slovakia",c:"421-SK-0",b:"421",f:"SK"},{name:"Slovenia",c:"386-SI-0",b:"386",f:"SI"},{name:"Solomon Islands",c:"677-SB-0",b:"677",f:"SB"},{name:"Somalia",c:"252-SO-0",b:"252",f:"SO"},{name:"South Africa",c:"27-ZA-0",b:"27",f:"ZA"},{name:"South Georgia and the South Sandwich Islands",c:"500-GS-0",b:"500",f:"GS"},{name:"South Korea",c:"82-KR-0",b:"82",f:"KR"},{name:"South Sudan",c:"211-SS-0",b:"211",f:"SS"},{name:"Spain",c:"34-ES-0",b:"34",f:"ES"},{name:"Sri Lanka",c:"94-LK-0",b:"94",f:"LK"},{name:"Sudan",c:"249-SD-0",b:"249",f:"SD"},{name:"Suriname",c:"597-SR-0",b:"597",f:"SR"},{name:"Svalbard and Jan Mayen",c:"47-SJ-0",b:"47",f:"SJ"},{name:"Swaziland",c:"268-SZ-0",b:"268",f:"SZ"},{name:"Sweden",c:"46-SE-0",b:"46",f:"SE"},{name:"Switzerland",c:"41-CH-0",b:"41",f:"CH"},{name:"Syria",c:"963-SY-0",b:"963",f:"SY"},{name:"Taiwan",c:"886-TW-0",b:"886",f:"TW"},{name:"Tajikistan",c:"992-TJ-0",b:"992",f:"TJ"},{name:"Tanzania",c:"255-TZ-0",b:"255",f:"TZ"},{name:"Thailand",c:"66-TH-0",b:"66",f:"TH"},{name:"Togo",c:"228-TG-0",b:"228",f:"TG"},{name:"Tokelau",c:"690-TK-0",b:"690",f:"TK"},{name:"Tonga",c:"676-TO-0",b:"676",f:"TO"}
1,{name:"Trinidad/Tobago",c:"1-TT-0",b:"1",f:"TT"},{name:"Tunisia",c:"216-TN-0",b:"216",f:"TN"},{name:"Turkey",c:"90-TR-0",b:"90",f:"TR"},{name:"Turkmenistan",c:"993-TM-0",b:"993",f:"TM"},{name:"Turks and Caicos Islands",c:"1-TC-0",b:"1",f:"TC"},{name:"Tuvalu",c:"688-TV-0",b:"688",f:"TV"},{name:"U.S. Virgin Islands",c:"1-VI-0",b:"1",f:"VI"},{name:"Uganda",c:"256-UG-0",b:"256",f:"UG"},{name:"Ukraine",c:"380-UA-0",b:"380",f:"UA"},{name:"United Arab Emirates",c:"971-AE-0",b:"971",f:"AE"},{name:"United Kingdom",c:"44-GB-0",b:"44",f:"GB"},{name:"United States",c:"1-US-0",b:"1",f:"US"},{name:"Uruguay",c:"598-UY-0",b:"598",f:"UY"},{name:"Uzbekistan",c:"998-UZ-0",b:"998",f:"UZ"},{name:"Vanuatu",c:"678-VU-0",b:"678",f:"VU"},{name:"Vatican City",c:"379-VA-0",b:"379",f:"VA"},{name:"Venezuela",c:"58-VE-0",b:"58",f:"VE"},{name:"Vietnam",c:"84-VN-0",b:"84",f:"VN"},{name:"Wallis and Futuna",c:"681-WF-0",b:"681",f:"WF"},{name:"Western Sahara",c:"212-EH-0",b:"212",f:"EH"},{name:"Yemen",c:"967-YE-0",b:"967",f:"YE"},{name:"Zambia",c:"260-ZM-0",b:"260",f:"ZM"}
1,{name:"Zimbabwe",c:"263-ZW-0",b:"263",f:"ZW"}];Xl(Ho);var du=new hu(Ho);function Zl(t,p){this.a=t,this.Aa=p}function bc(t){t=Dn(t);var p=Ba(du,t);return 0<p.length?new Zl("1"==p[0].b?"1-US-0":p[0].c,Dn(t.substr(p[0].b.length+1))):null}function fu(t){var p=Nc(t.a);if(!p)throw Error("Country ID "+t.a+" not found.");return"+"+p.b+t.Aa}function ju(t,p){for(var x=0;x<t.length;x++)if(!tt(wc,t[x])&&(null!==Ec&&t[x]in Ec||tt(p,t[x])))return t[x];return null}var wc=["emailLink","password","phone"],Ec={"facebook.com":"FacebookAuthProvider","github.com":"GithubAuthProvider","google.com":"GoogleAuthProvider",password:"EmailAuthProvider","twitter.com":"TwitterAuthProvider",phone:"PhoneAuthProvider"};function Hh(){this.a=new mf,Xo(this.a,"autoUpgradeAnonymousUsers"),Xo(this.a,"callbacks"),Xo(this.a,"credentialHelper",ma),Xo(this.a,"immediateFederatedRedirect",!1),Xo(this.a,"popupMode",!1),Xo(this.a,"privacyPolicyUrl"),Xo(this.a,"queryParameterForSignInSuccessUrl","signInSuccessUrl"),Xo(this.a,"queryParameterForWidgetMode","mode"),Xo(this.a,"signInFlow"),Xo(this.a,"signInOptions"),Xo(this.a,"signInSuccessUrl"),Xo(this.a,"siteName"),Xo(this.a,"tosUrl"),Xo(this.a,"widgetUrl"),Xo(this.a,"adminRestrictedOperation")}function Jl(t){var p=!!t.a.get("autoUpgradeAnonymousUsers");return p&&!bh(t)&&pa('Missing "signInFailure" callback: "signInFailure" callback needs to be provided when "autoUpgradeAnonymousUsers" is set to true.',void 0),p}function Bc(t){t=t.a.get("signInOptions")||[];for(var p=[],x=0;x<t.length;x++){var se=t[x];(se=ke(se)?se:{provider:se}).provider&&p.push(se)}return p}function Xa(t,p){t=Bc(t);for(var x=0;x<t.length;x++)if(t[x].provider===p)return t[x];return null}function Ca(t){return Bc(t).map(function(p){return p.provider})}function Gh(t,p){t=Ed(t);for(var x=0;x<t.length;x++)if(t[x].providerId===p)return t[x];return null}function Ed(t){return Bc(t).map(function(p){if(Ec[p.provider]||tt(Dd,p.provider)){for(var x in p={providerId:p.provider,S:p.providerName||null,V:p.fullLabel||null,ta:p.buttonColor||null,za:p.iconUrl?Xs(no(p.iconUrl)).toString():null})null===p[x]&&delete p[x];return p}return{providerId:p.provider,S:p.providerName||null,V:p.fullLabel||null,ta:p.buttonColor||null,za:p.iconUrl?Xs(no(p.iconUrl)).toString():null,Ob:p.loginHintKey||null}})}function zh(t){var x,p=Xa(t,_().auth.GoogleAuthProvider.PROVIDER_ID);if(x=p&&p.clientId){e:{if("http:"===(window.location&&window.location.protocol)||"https:"===(window.location&&window.location.protocol))for(se in t=t.a.get("credentialHelper"),wh)if(wh[se]===t){var se=wh[se];break e}se=ma}x=se===wl}return x&&p.clientId||null}function vh(t){return!!((t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))&&t.disableSignUp&&t.disableSignUp.status)}function ua(t){return!(!(t=t.a.get("adminRestrictedOperation")||null)||!t.status)}function Yh(t,p){return t=(t=Xa(t,p))&&t.scopes,Array.isArray(t)?t:[]}function _f(t,p){return ke(t=(t=Xa(t,p))&&t.customParameters)?(t=Ue(t),p===_().auth.GoogleAuthProvider.PROVIDER_ID&&delete t.login_hint,p===_().auth.GithubAuthProvider.PROVIDER_ID&&delete t.login,t):null}function gu(t){if(!(t=Xa(t,_().auth.PhoneAuthProvider.PROVIDER_ID)))return null;var p=t.whitelistedCountries,x=t.blacklistedCountries;if(void 0!==p&&(!Array.isArray(p)||0==p.length))throw Error("WhitelistedCountries must be a non-empty array.");if(void 0!==x&&!Array.isArray(x))throw Error("BlacklistedCountries must be an array.");if(p&&x)throw Error("Both whitelistedCountries and blacklistedCountries are provided.");if(!p&&!x)return Ho;if(t=[],p){x={};for(var se=0;se<p.length;se++)for(var Le=Ql(p[se]),Je=0;Je<Le.length;Je++)x[Le[Je].c]=Le[Je];for(var an in x)x.hasOwnProperty(an)&&t.push(x[an])}else{for(an={},p=0;p<x.length;p++)for(Le=Ql(x[p]),se=0;se<Le.length;se++)an[Le[se].c]=Le[se];for(Le=0;Le<Ho.length;Le++)null!==an&&Ho[Le].c in an||t.push(Ho[Le])}return t}function Gu(t){return Vh(t.a,"queryParameterForWidgetMode")}function Ko(t){var p=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,p&&!t&&Ol("Privacy Policy URL is missing, the link will not be displayed."),p&&t){if("function"==typeof p)return p;if("string"==typeof p)return function(){Fh(p)}}return null}function Go(t){var p=t.a.get("tosUrl")||null,x=t.a.get("privacyPolicyUrl")||null;if(x&&!p&&Ol("Term of Service URL is missing, the link will not be displayed."),p&&x){if("function"==typeof x)return x;if("string"==typeof x)return function(){Fh(x)}}return null}function mu(t){return!(t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))||void 0===t.requireDisplayName||!!t.requireDisplayName}function zu(t){return!(!(t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))||t.signInMethod!==_().auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD)}function Wu(t){var p=!!t.a.get("immediateFederatedRedirect"),x=Ca(t);return t=vf(t),p&&1==x.length&&!tt(wc,x[0])&&t==Kh}function vf(t){for(var p in t=t.a.get("signInFlow"),Cd)if(Cd[p]==t)return Cd[p];return Kh}function bl(t){return ja(t).signInSuccess||null}function zo(t){return ja(t).signInSuccessWithAuthResult||null}function bh(t){return ja(t).signInFailure||null}function ja(t){return t.a.get("callbacks")||{}}var vu,Cc,yu,sl,wl="googleyolo",ma="none",wh={nc:wl,NONE:ma},Kh="redirect",Cd={qc:"popup",rc:Kh},Eh={mc:"callback",RECOVER_EMAIL:"recoverEmail",sc:"resetPassword",REVERT_SECOND_FACTOR_ADDITION:"revertSecondFactorAddition",tc:"select",uc:"signIn",VERIFY_AND_CHANGE_EMAIL:"verifyAndChangeEmail",VERIFY_EMAIL:"verifyEmail"},Dd=["anonymous"],Sd=["sitekey","tabindex","callback","expired-callback"],Ns={};function ir(t,p,x,se){Ns[t].apply(null,Array.prototype.slice.call(arguments,1
1))}function bu(t){return t.classList?t.classList:B(t=t.className)&&t.match(/\S+/g)||[]}function Za(t,p){return t.classList?t.classList.contains(p):tt(bu(t),p)}function tc(t,p){t.classList?t.classList.add(p):Za(t,p)||(t.className+=0<t.className.length?" "+p:p)}function El(t,p){t.classList?t.classList.remove(p):Za(t,p)&&(t.className=Xe(bu(t),function(x){return x!=p}).join(" "))}function Da(t){var p=t.type;switch(B(p)&&p.toLowerCase()){case"checkbox":case"radio":return t.checked?t.value:null;case"select-one":return 0<=(p=t.selectedIndex)?t.options[p].value:null;case"select-multiple":p=[];for(var x,se=0;x=t.options[se];se++)x.selected&&p.push(x.value);return p.length?p:null;default:return null!=t.value?t.value:null}}function xp(t,p){var x=t.type;switch(B(x)&&x.toLowerCase()){case"checkbox":case"radio":t.checked=p;break;case"select-one":if(t.selectedIndex=-1,B(p))for(var se=0;x=t.options[se];se++)if(x.value==p){x.selected=!0;break}break;case"select-multiple":for(B(p)&&(p=[p]),se=0;x=t.options[se];se++)if(x.selected=!1,p)for(var Le,Je=0;Le=p[Je];Je++)x.value==Le&&(x.selected=!0);break;default:t.value=null!=p?p:""}}function d(t,p,x,se,Le,Je){if(Wr&&!Ui("525"))return!0;if(fr&&Le)return r(t);if(Le&&!se)return!1;if(!ar&&("number"==typeof p&&(p=h(p)),(!x||fr)&&(17==p||18==p||fr&&91==p)||fr&&16==p&&(se||Je)))return!1;if((Wr||zr)&&se&&x)switch(t){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(qr&&se&&p==t)return!1;switch(t){case 13:return!(ar&&(Je||Le||x&&se));case 27:return!(Wr||zr||ar)}return(!ar||!(se||Le||Je))&&r(t)}function r(t){if(48<=t&&57>=t||96<=t&&106>=t||65<=t&&90>=t||(Wr||zr)&&0==t)return!0;switch(t){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:return!0;case 173:return ar;default:return!1}}function h(t){return ar?t=function w(t){switch(t){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return t}}(t):fr&&Wr&&93===t&&(t=91),t}function O(t){Zi.call(this),this.a=t,yi(t,"keydown",this.g,!1,this),yi(t,"click",this.h,!1,this)}function X(t,p){var x=new ot(p);if(Pr(t,x)){x=new De(p);try{Pr(t,x)}finally{p.stopPropagation()}}}function De(t){Vr.call(this,t.a),this.type="action"}function ot(t){Vr.call(this,t.a),this.type="beforeaction"}function Ct(t){Zi.call(this),this.a=t,t=qr?"focusout":"blur",this.g=yi(this.a,qr?"focusin":"focus",this,!qr),this.h=yi(this.a,t,this,!qr)}function sn(t,p){Zi.call(this),this.g=t||1,this.a=p||R,this.h=ut(this.gc,this),this.j=Ot()}function _n(t){t.Ka=!1,t.aa&&(t.a.clearTimeout(t.aa),t.aa=null)}function Ln(t){Oi.call(this),this.g=t,this.a={}}ht(O,Zi),O.prototype.g=function(t){(13==t.keyCode||Wr&&3==t.keyCode)&&X(this,t)},O.prototype.h=function(t){X(this,t)},O.prototype.o=function(){O.K.o.call(this),$e(this.a,"keydown",this.g,!1,this),$e(this.a,"click",this.h,!1,this),delete this.a},ht(De,Vr),ht(ot,Vr),ht(Ct,Zi),Ct.prototype.handleEvent=function(t){var p=new Vr(t.a);p.type="focusin"==t.type||"focus"==t.type?"focusin":"focusout",Pr(this,p)},Ct.prototype.o=function(){Ct.K.o.call(this),Dt(this.g),Dt(this.h),delete this.a},ht(sn,Zi),(Q=sn.prototype).Ka=!1,Q.aa=null,Q.gc=function(){if(this.Ka){var t=Ot()-this.j;0<t&&t<.8*this.g?this.aa=this.a.setTimeout(this.h,this.g-t):(this.aa&&(this.a.clearTimeout(this.aa),this.aa=null),Pr(this,"tick"),this.Ka&&(_n(this),this.start()))}},Q.start=function(){this.Ka=!0,this.aa||(this.aa=this.a.setTimeout(this.h,this.g),this.j=Ot())},Q.o=function(){sn.K.o.call(this),_n(this),delete this.a},ht(Ln,Oi);var $n=[];function si(t,p,x,se){Ie(x)||(x&&($n[0]=x.toString()),x=$n);for(var Le=0;Le<x.length;Le++){var Je=yi(p,x[Le],se||t.handleEvent,!1,t.g||t);if(!Je)break;t.a[Je.key]=Je}}function ai(t){We(t.a,function(p,x){this.a.hasOwnProperty(x)&&Dt(p)},t),t.a={}}function lr(t){Zi.call(this),this.a=null,this.g=t,t=qr||zr||Wr&&!Ui("531")&&"TEXTAREA"==t.tagName,this.h=new Ln(this),si(this.h,this.g,t?["keydown","paste","cut","drop","input"]:"input",this)}function rr(t){null!=t.a&&(R.clearTimeout(t.a),t.a=null)}function kr(t){return(t=new Vr(t.a)).type="input",t}function Gr(t,p){Zi.call(this),t&&(this.Oa&&ss(this),this.qa=t,this.Na=yi(this.qa,"keypress",this,p),this.Ya=yi(this.qa,"keydown",this.Jb,p,this),this.Oa=yi(this.qa,"keyup",this.Kb,p,this))}Ln.prototype.o=function(){Ln.K.o.call(this),ai(this)},Ln.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},ht(lr,Zi),lr.prototype.handleEvent=function(t){if("input"==t.type)qr&&Ui(10)&&0==t.keyCode&&0==t.j||(rr(this),Pr(this,kr(t)));else if("keydown"!=t.type||function Ip(t){if(t.altKey&&!t.ctrlKey||t.metaKey||112<=t.keyCode&&123>=t.keyCode)return!1;if(r(t.keyCode))return!0;switch(t.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!ar;default:return 166>t.keyCode||183<t.keyCode}}(t)){var p="keydown"==t.type?this.g.value:null;qr&&229==t.keyCode&&(p=null);var x=kr(t);rr(this),this.a=function Nn(t,p){if(pe(t))p&&(t=ut(t,p));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=ut(t.handleEvent,t)}return 2147483647<Number(0)?-1:R.setTimeout(t,0)}(function(){this.a=null,this.g.value!=p&&Pr(this,x)},this)}},lr.prototype.o=function(){lr.K.o.call(this),this.h.m(),rr(this),delete this.g},ht(Gr,Zi),(Q=Gr.prototype).qa=null,Q.Na=null,Q.Ya=null,Q.Oa=null,Q.R=-1,Q.X=-1,Q.Ua=!1;var Ts={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Vs={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},co=!Wr||Ui("525"),Wo=fr&&ar;function ss(t){t.Na&&(Dt(t.Na),Dt(t.Ya),Dt(t.Oa),t.Na=null,t.Ya=null,t.Oa=null),t.qa=null,t.R=-1,t.X=-1}function wu(t,p,x,se){Vr.call(this,se),this.type="key",this.keyCode=t,this.j=p,this.repeat=x}function nc(t,p,x,se){this.top=t,this.right=p,this.bottom=x,this.left=se}function Bl(t,p){var x=ps(t);return x.defaultView&&x.defaultView.getComputedStyle&&(t=x.defaultView.getComputedStyle(t,null))&&(t[p]||t.getPropertyValue(p))||""}function jc(t){try{var p=t.getBoundingClientRect()}catch(x){return{left:0,top:0,right:0,bottom:0}}return qr&&t.ownerDocument.body&&(p.left-=(t=t.ownerDocument).documentElement.clientLeft+t.body.clientLeft,p.top-=t.documentElement.clientTop+t.body.clientTop),p}function Md(t){var p=ps(t),x=new pi(0,0),se=p?ps(p):document;return t==(se=!qr||9<=Number(vr)||"CSS1Compat"==Di(se).a.compatMode?se.documentElement:se.body)||(t=jc(t),p=ts(se=Di(p).a),se=se.parentWindow||se.defaultView,p=qr&&Ui("10")&&se.pageYOffset!=p.scrollTop?new pi(p.scrollLeft,p.scrollTop):new pi(se.pageXOffset||p.scrollLeft,se.pageYOffset||p.scrollTop),x.a=t.left+p.a,x.g=t.top+p.g),x}(Q=Gr.prototype).Jb=function(t){(Wr||zr)&&(17==this.R&&!t.ctrlKey||18==this.R&&!t.altKey||fr&&91==this.R&&!t.metaKey)&&(this.X=this.R=-1),-1==this.R&&(t.ctrlKey&&17!=t.keyCode?this.R=17:t.altKey&&18!=t.keyCode?this.R=18:t.metaKey&&9
11!=t.keyCode&&(this.R=91)),co&&!d(t.keyCode,this.R,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey)?this.handleEvent(t):(this.X=h(t.keyCode),Wo&&(this.Ua=t.altKey))},Q.Kb=function(t){this.X=this.R=-1,this.Ua=t.altKey},Q.handleEvent=function(t){var p=t.a,x=p.altKey;if(qr&&"keypress"==t.type)var se=this.X,Le=13!=se&&27!=se?p.keyCode:0;else(Wr||zr)&&"keypress"==t.type?(se=this.X,Le=0<=p.charCode&&63232>p.charCode&&r(se)?p.charCode:0):Js&&!Wr?Le=r(se=this.X)?p.keyCode:0:("keypress"==t.type?(Wo&&(x=this.Ua),p.keyCode==p.charCode?32>p.keyCode?(se=p.keyCode,Le=0):(se=this.X,Le=p.charCode):(se=p.keyCode||this.X,Le=p.charCode||0)):(se=p.keyCode||this.X,Le=p.charCode||0),fr&&63==Le&&224==se&&(se=191));var Je=se=h(se);se?63232<=se&&se in Ts?Je=Ts[se]:25==se&&t.shiftKey&&(Je=9):p.keyIdentifier&&p.keyIdentifier in Vs&&(Je=Vs[p.keyIdentifier]),ar&&co&&"keypress"==t.type&&!d(Je,this.R,t.shiftKey,t.ctrlKey,x,t.metaKey)||(t=Je==this.R,this.R=Je,(p=new wu(Je,Le,t,p)).altKey=x,Pr(this,p))},Q.N=function(){return this.qa},Q.o=function(){Gr.K.o.call(this),ss(this)},ht(wu,Vr),nc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"},nc.prototype.ceil=function(){return this.top=Math.ceil(this.top),this.right=Math.ceil(this.right),this.bottom=Math.ceil(this.bottom),this.left=Math.ceil(this.left),this},nc.prototype.floor=function(){return this.top=Math.floor(this.top),this.right=Math.floor(this.right),this.bottom=Math.floor(this.bottom),this.left=Math.floor(this.left),this},nc.prototype.round=function(){return this.top=Math.round(this.top),this.right=Math.round(this.right),this.bottom=Math.round(this.bottom),this.left=Math.round(this.left),this};var $h={thin:2,medium:4,thick:6};function Va(t,p){if("none"==(t.currentStyle?t.currentStyle[p+"Style"]:null))return 0;var x=t.currentStyle?t.currentStyle[p+"Width"]:null;if(x in $h)t=$h[x];else if(/^\d+px?$/.test(x))t=parseInt(x,10);else{p=t.style.left;var se=t.runtimeStyle.left;t.runtimeStyle.left=t.currentStyle.left,t.style.left=x,x=t.style.pixelLeft,t.style.left=p,t.runtimeStyle.left=se,t=+x}return t}function Cl(){}function Dl(t){Zi.call(this),this.s=t||Di(),this.cb=null,this.na=!1,this.g=null,this.L=void 0,this.oa=this.Ea=this.Y=null}function $s(t,p){return t.g?Xi(p,t.g||t.s.a):null}function Td(t){return t.L||(t.L=new Ln(t)),t.L}function yf(t,p){t.Ea&&ln(t.Ea,p,void 0)}function Zo(t,p){var x=Rr(t,"firebaseui-textfield");p?(El(t,"firebaseui-input-invalid"),tc(t,"firebaseui-input"),x&&El(x,"firebaseui-textfield-invalid")):(El(t,"firebaseui-input"),tc(t,"firebaseui-input-invalid"),x&&tc(x,"firebaseui-textfield-invalid"))}function qh(t,p,x){wr(t,Ge(Li,p=new lr(p))),si(Td(t),p,"input",x)}function xd(t,p,x){wr(t,Ge(Li,p=new Gr(p))),si(Td(t),p,"key",function(se){13==se.keyCode&&(se.stopPropagation(),se.preventDefault(),x(se))})}function uo(t,p,x){wr(t,Ge(Li,p=new O(p))),si(Td(t),p,"action",function(se){se.stopPropagation(),se.preventDefault(),x(se)})}function ic(t){tc(t,"firebaseui-hidden")}function ea(t,p){p&&yr(t,p),El(t,"firebaseui-hidden")}function ol(t){return!Za(t,"firebaseui-hidden")&&"none"!=t.style.display}function Id(t){var p=(t=t||{}).email,x=t.disabled,se='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-email-input">';return se=t.wc?se+"Enter new email address":se+"Email",se+='</label><input type="email" name="email" id="ui-sign-in-email-input" autocomplete="username" class="mdl-textfield__input firebaseui-input firebaseui-id-email" value="'+is(null!=p?p:"")+'"'+(x?"disabled":"")+'></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-email-error"></p></div>',ji(se)}function Ul(t){var p='<button type="submit" class="firebaseui-id-submit firebaseui-button mdl-button mdl-js-button mdl-button--raised mdl-button--colored">';return p=(t=(t=t||{}).label)?p+Yi(t):p+"Next",ji(p+"</button>")}function Zf(){var t=""+Ul({label:ns("Sign In")});return ji(t)}function tg(){var t=""+Ul({label:ns("Save")});return ji(t)}function rc(){var t=""+Ul({label:ns("Continue")});return ji(t)}function ng(t){var p='<div class="firebaseui-new-password-component"><div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-new-password-input">';return p=(t=(t=t||{}).label)?p+Yi(t):p+"Choose password",ji(p+'</label><input type="password" name="newPassword" id="ui-sign-in-new-password-input" autocomplete="new-password" class="mdl-textfield__input firebaseui-input firebaseui-id-new-password"></div><a href="javascript:void(0)" class="firebaseui-input-floating-button firebaseui-id-password-toggle firebaseui-input-toggle-on firebaseui-input-toggle-blur"></a><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-new-password-error"></p></div></div>')}function Jf(){var p='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-password-input">';return ji((p={}.current?p+"Current password":p+"Password")+'</label><input type="password" name="password" id="ui-sign-in-password-input" autocomplete="current-password" class="mdl-textfield__input firebaseui-input firebaseui-id-password"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-password-error"></p></div>')}function Yu(){return ji('<a class="firebaseui-link firebaseui-id-secondary-link" href="javascript:void(0)">Trouble signing in?</a>')}function Ha(t){var p='<button class="firebaseui-id-secondary-link firebaseui-button mdl-button mdl-js-button mdl-button--primary">';return p=(t=(t=t||{}).label)?p+Yi(t):p+"Cancel",ji(p+"</button>")}function Sa(t){var p="";return t.F&&t.D&&(p+='<ul class="firebaseui-tos-list firebaseui-tos"><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a></li><li class="firebaseui-inline-list-item"><a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a></li></ul>'),ji(p)}function kd(t){var p="";return t.F&&t.D&&(p+='<p class="firebaseui-tos firebaseui-tospp-full-message">By continuing, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>.</p>'),ji(p)}function sc(t){return t='<div class="firebaseui-info-bar firebaseui-id-info-bar"><p class="firebaseui-info-bar-message">'+Yi(t.message)+' <a href="javascript:void(0)" class="firebaseui-link firebaseui-id-dismiss-info-bar">Dismiss</a></p></div>',ji(t)}function wf(t){var p=t.content;return ji('<dialog class="mdl-dialog firebaseui-dialog firebaseui-id-dialog'+((t=t.Ab)?" "+is(t):"")+'">'+Yi(p)+"</dialog>")}function Ef(t){var p=t.message;return ji(wf({content:cs('<div class="firebaseui-dialog-icon-wrapper"><div class="'+is(t.Ma)+' firebaseui-dialog-icon"></div></div><div class="firebaseui-progress-dialog-message">'+Yi(p)+"</div>")}))}function Od(t){for(var p='<div class="firebaseui-list-box-actions">',x=(t=t.items).length,se=0;se<x;se++){var Le=t[se];p+='<button type="button" data-listboxid="'+is(Le.id)+'" class="mdl-button firebaseui-id-list-box-dialog-button firebaseui-list-box-dialog-button">'+(Le.Ma?'<div class="firebaseui-list-box-icon-wrapper"><div class="firebaseui-list-box-icon '+is(Le.Ma)+'"></div></div>':"")+'<div class="firebaseui-list-box-label-wrapper">'+Yi(Le.label)+"</div></button>"}return p=""+wf({Ab:ns("firebaseui-list-box-dialog"),content:cs(p+"</div>")}),ji(p)}function Ch(t){return ji((t=t||{}).tb?'<div class="mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>':'<div class="mdl-progress mdl-js-progress mdl-progress__indeterminate firebaseui-busy-indicator firebaseui-id-busy-indicator"></div>')}function oc(t,p){return Br((t=(t=t||{}).ga).S?t.S:p.hb[t.providerId]?""+p.hb[t.providerId]:t.providerId&&0==t.providerId.indexOf("saml.")||t.providerId&&0==t.providerId.indexOf("oidc.")?t.providerId.substring(5):""+t.providerId)}function ep(t){Op(t,"upgradeElement")}function Rd(t){Op(t,"downgradeElements")}he(Cl),Cl.prototype.a=0,ht(Dl,Zi),(Q=Dl.prototype).Lb=Cl.Xa(),Q.N=function(){return this.g},Q.Za=function(t){if(this.Y&&this.Y!=t)throw Error("Method not supported");Dl.K.Za.call(this,t)},Q.kb=function(){this.g=this.s.a.createElement("DIV")},Q.render=function(t){if(this.na)throw Error("Component already rendered");this.g||this.kb(),t?t.insertBefore(this.g,null):this.s.a.body.appendChild(this.g),this.Y&&!this.Y.na||this.v()},Q.v=function(){this.na=!0,yf(this,function(t){!t.na&&t.N()&&t.v()})},Q.ya=function(){yf(this,function(t){t.na&&t.ya()}),this.L&&ai(this.L),this.na=!1},Q.o=function(){this.na&&this.ya(),this.L&&(this.L.m(),delete this.L),yf(this,function(t){t.m()}),this.g&&jr(this.g),this.Y=this.g=this.oa=this.Ea=null,Dl.K.o.call(this)},Q.removeChild=function(t,p){if(t){var x=B(t)?t:t.cb||(t.cb=":"+(t.Lb.a++).toString(36));if(t=this.oa&&x&&(null!==(t=this.oa)&&x in t?t[x]:void 0)||null,x&&t){var se=this.oa;if(x in se&&delete se[x],bt(this.Ea,t),p&&(t.ya(),t.g&&jr(t.g)),null==(p=t))throw Error("Unable to set parent component");p.Y=null,Dl.K.Za.call(p,null)}}if(!t)throw Error("Child is not in parent component");return t},sc.a="firebaseui.auth.soy2.element.infoBar",Ef.a="firebaseui.auth.soy2.element.progressDialog",Od.a="firebaseui.auth.soy2.element.listBoxDialog",Ch.a="firebaseui.auth.soy2.element.busyIndicator";var Dg=["mdl-js-textfield","mdl-js-progress","mdl-js-spinner","mdl-js-button"];function Op(t,p){t&&window.componentHandler&&window.componentHandler[p]&&Dg.forEach(function(x){Za(t,x)&&window.componentHandler[p](t),ln(Pi(x,t),function(se){window.componentHandler[p](se)})})}function Dh(t,p,x){if(Yr.call(this),document.body.appendChild(t),t.showModal||window.dialogPolyfill.registerDialog(t),t.showModal(),ep(t),p&&uo(this,t,function(Je){var an=t.getBoundingClientRect();
1(Je.clientX<an.left||an.left+an.width<Je.clientX||Je.clientY<an.top||an.top+an.height<Je.clientY)&&Yr.call(this)}),!x){var se=this.N().parentElement||this.N().parentNode;if(se){var Le=this;this.da=function(){if(t.open){var Je=t.getBoundingClientRect().height,an=se.getBoundingClientRect().height,Tn=se.getBoundingClientRect().top-document.body.getBoundingClientRect().top,di=se.getBoundingClientRect().left-document.body.getBoundingClientRect().left,Bi=t.getBoundingClientRect().width,e=se.getBoundingClientRect().width;t.style.top=(Tn+(an-Je)/2).toString()+"px",t.style.left=(Je=di+(e-Bi)/2).toString()+"px",t.style.right=(document.body.getBoundingClientRect().width-Je-Bi).toString()+"px"}else window.removeEventListener("resize",Le.da)},this.da(),window.addEventListener("resize",this.da,!1)}}}function Yr(){var t=Eu.call(this);t&&(Rd(t),t.open&&t.close(),jr(t),this.da&&window.removeEventListener("resize",this.da))}function Eu(){return Xi("firebaseui-id-dialog")}function Cf(){jr(Rp.call(this))}function Rp(){return $s(this,"firebaseui-id-info-bar")}function Qh(){return $s(this,"firebaseui-id-dismiss-info-bar")}var Ja={xa:{"google.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg","github.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/github.svg","facebook.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/facebook.svg","twitter.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/twitter.svg",password:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/mail.svg",phone:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/phone.svg",anonymous:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/anonymous.png","microsoft.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/microsoft.svg","yahoo.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/yahoo.svg","apple.com":"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/apple.png",saml:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/saml.svg",oidc:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/oidc.svg"},wa:{"google.com":"#ffffff","github.com":"#333333","facebook.com":"#3b5998","twitter.com":"#55acee",password:"#db4437",phone:"#02bd7e",anonymous:"#f4b400","microsoft.com":"#2F2F2F","yahoo.com":"#720E9E","apple.com":"#000000",saml:"#007bff",oidc:"#007bff"},hb:{"google.com":"Google","github.com":"GitHub","facebook.com":"Facebook","twitter.com":"Twitter",password:"Password",phone:"Phone",anonymous:"Guest","microsoft.com":"Microsoft","yahoo.com":"Yahoo","apple.com":"Apple"}};function Df(t,p,x){for(var se in Es.call(this,t,p),x)this[se]=x[se]}function Ti(t,p,x,se,Le){Dl.call(this,x),this.fb=t,this.eb=p,this.Fa=!1,this.Ga=se||null,this.A=this.ca=null,this.Z=Ue(Ja),Lt(this.Z,Le||{})}function Zs(t){return t.N().parentElement||t.N().parentNode}function Xh(t,p,x){xd(t,p,function(){x.focus()})}function Zh(t,p,x){xd(t,p,function(){x()})}function tp(t,p,x){p=(t=t||{}).Va;var se=t.ia;return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in with email</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+Id(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(p?Ha(null):"")+Ul(null)+'</div></div><div class="firebaseui-card-footer">'+(se?kd(x):Sa(x))+"</div></form></div>",ji(t)}function Sg(t,p,x){return p=(t=t||{}).ia,t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-in"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content">'+Id(t)+Jf()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Yu()+'</div><div class="firebaseui-form-actions">'+Zf()+'</div></div><div class="firebaseui-card-footer">'+(p?kd(x):Sa(x))+"</div></form></div>",ji(t)}function Ku(t,p,x){var se=(t=t||{}).Tb;p=t.Ta;var Le=t.ia,Je='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-sign-up"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Create account</h1></div><div class="firebaseui-card-content">'+Id(t);return se?(t='<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-name-input">First & last name</label><input type="text" name="name" id="ui-sign-in-name-input" autocomplete="name" class="mdl-textfield__input firebaseui-input firebaseui-id-name" value="'+is(null!=(t=(t=t||{}).name)?t:"")+'"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-name-error"></p></div>',t=ji(t)):t="",x=Je+t+ng(null)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(p?Ha(null):"")+tg()+'</div></div><div class="firebaseui-card-footer">'+(Le?kd(x):Sa(x))+"</div></form></div>",ji(x)}function Ag(t,p,x){return p=(t=t||{}).Ta,t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Recover password</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Get instructions sent to this email that explain how to reset your password</p>'+Id(t)+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(p?Ha(null):"")+Ul({label:ns("Send")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(t)}function $u(t,p,x){p=t.G;var se="";return se+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-recovery-email-sent"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Check your email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="Follow the instructions sent to <strong>"+Yi(t.email)+"</strong> to recover your password")+'</p></div><div class="firebaseui-card-actions">',p&&(se+='<div class="firebaseui-form-actions">'+Ul({label:ns("Done")})+"</div>"),se+='</div><div class="firebaseui-card-footer">'+Sa(x)+"</div></div>",ji(se)}function Jh(t,p,x){return ji('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-callback"><div class="firebaseui-callback-indicator-container">'+Ch(null)+"</div></div>")}function jl(t,p,x){return ji('<div class="firebaseui-container firebaseui-id-page-spinner">'+Ch({tb:!0})+"</div>")}function Cu(){return ji('<div class="firebaseui-container firebaseui-id-page-blank firebaseui-use-spinner"></div>')}function qu(t,p,x){return p="",p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-se
1nt"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign-in email sent</h1></div><div class="firebaseui-card-content"><div class="firebaseui-email-sent"></div><p class="firebaseui-text">'+(t="A sign-in email with additional instructions was sent to <strong>"+Yi(t.email)+"</strong>. Check your email to complete sign-in.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+ji('<a class="firebaseui-link firebaseui-id-trouble-getting-email-link" href="javascript:void(0)">Trouble getting email?</a>')+'</div><div class="firebaseui-form-actions">'+Ha({label:ns("Back")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function Mg(t,p,x){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-not-received"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Trouble getting email?</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try these common fixes:<ul><li>Check if the email was marked as spam or filtered.</li><li>Check your internet connection.</li><li>Check that you did not misspell your email.</li><li>Check that your inbox space is not running out or other inbox settings related issues.</li></ul></p><p class="firebaseui-text">If the steps above didn\'t work, you can resend the email. Note that this will deactivate the link in the older email.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+ji('<a class="firebaseui-link firebaseui-id-resend-email-link" href="javascript:void(0)">Resend</a>')+'</div><div class="firebaseui-form-actions">'+Ha({label:ns("Back")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(t)}function ed(t,p,x){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-confirmation"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Confirm email</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Confirm your email to complete sign in</p><div class="firebaseui-relative-wrapper">'+Id(t)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ha(null)+Ul(null)+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(t)}function ig(){var t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-different-device-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">New device or browser detected</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Try opening the link using the same device or browser where you started the sign-in process.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ha({label:ns("Dismiss")})+"</div></div></div>";return ji(t)}function Pd(){var t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-anonymous-user-mismatch"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Session ended</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">The session associated with this sign-in request has either expired or was cleared.</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ha({label:ns("Dismiss")})+"</div></div></div>";return ji(t)}function rg(t,p,x){return p="",p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">'+(t="You\u2019ve already used <strong>"+Yi(t.email)+"</strong> to sign in. Enter your password for that account.")+"</p>"+Jf()+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">'+Yu()+'</div><div class="firebaseui-form-actions">'+Zf()+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function td(t,p,x){var se=t.email;return p="",t=ns(t=""+oc(t,x)),p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text firebaseui-text-justify">'+(se="You\u2019ve already used <strong>"+Yi(se)+"</strong>. You can connect your <strong>"+Yi(t)+"</strong> account with <strong>"+Yi(se)+"</strong> by signing in with email link below.")+'<p class="firebaseui-text firebaseui-text-justify">'+(t="For this flow to successfully connect your "+Yi(t)+" account with this email, you have to open the link on the same device or browser.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Zf()+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function sg(t,p,x){p="";var se=""+oc(t,x);return p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-link-sign-in-linking-different-device"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text firebaseui-text-justify">'+(t="You originally intended to connect <strong>"+Yi(se=ns(se))+"</strong> to your email account but have opened the link on a different device where you are not signed in.")+'</p><p class="firebaseui-text firebaseui-text-justify">'+(se="If you still want to connect your <strong>"+Yi(se)+"</strong> account, open the link on the same device where you started sign-in. Otherwise, tap Continue to sign-in on this device.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+rc()+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function og(t,p,x){var se=t.email;return p="",t=ns(t=""+oc(t,x)),p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-federated-linking"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">You already have an account</h2><p class="firebaseui-text">
1'+(se="You\u2019ve already used <strong>"+Yi(se)+"</strong>. Sign in with "+Yi(t)+" to continue.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ul({label:ns("Sign in with "+t)})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function Tg(t,p,x){var se=(t=t||{}).kc;p=t.yb,t=t.Eb;var Le='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unauthorized-user"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Not Authorized</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">';return Le+=se?se="<strong>"+Yi(se)+"</strong> is not authorized to view the requested page.":"User is not authorized to view the requested page.",Le+="</p>",p&&(Le+='<p class="firebaseui-text firebaseui-id-unauthorized-user-admin-email">'+(p="Please contact <strong>"+Yi(p)+"</strong> for authorization.")+"</p>"),Le+='</div><div class="firebaseui-card-actions"><div class="firebaseui-form-links">',t&&(Le+='<a class="firebaseui-link firebaseui-id-unauthorized-user-help-link" href="javascript:void(0)" target="_blank">Learn More</a>'),Le+='</div><div class="firebaseui-form-actions">'+Ha({label:ns("Back")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(Le)}function Fd(t,p,x){return p="",p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unsupported-provider"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="To continue sign in with <strong>"+Yi(t.email)+"</strong> on this device, you have to recover the password.")+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ha(null)+Ul({label:ns("Recover password")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function Ld(t){var p="";return p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Reset your password</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">for <strong>'+Yi(t.email)+"</strong></p>"+ng(function Xr(t){function p(){}var x={label:ns("New password")};for(var se in p.prototype=t,t=new p,x)t[se]=x[se];return t}(t))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+tg()+"</div></div></form></div>",ji(p)}function Fp(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Password changed</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new password</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function np(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-password-reset-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try resetting your password again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to reset your password has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function ag(t){var p=t.G,x="";return x+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-success"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Updated email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="Your sign-in email address has been changed back to <strong>"+Yi(t.email)+"</strong>.")+'</p><p class="firebaseui-text">If you didn\u2019t ask to change your sign-in email, it\u2019s possible someone is trying to access your account and
1you should <a class="firebaseui-link firebaseui-id-reset-password-link" href="javascript:void(0)">change your password right away</a>.</p></div><div class="firebaseui-card-actions">'+(p?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></form></div>",ji(x)}function Lp(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-change-revoke-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Unable to update your email address</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">There was a problem changing your sign-in email back.</p><p class="firebaseui-text">If you try again and still can\u2019t reset your email, try asking your administrator for help.</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function lg(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Your email has been verified</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You can now sign in with your new account</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function Np(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-verification-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try verifying your email again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to verify your email has expired or the link has already been used</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function Bp(t){var p=t.G,x="";return x+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-verify-and-change-email-success"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Your email has been verified and changed</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+(t="You can now sign in with your new email <strong>"+Yi(t.email)+"</strong>.")+'</p></div><div class="firebaseui-card-actions">'+(p?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(x)}function cg(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-verify-and-change-email-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Try updating your email again</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Your request to verify and update your email has expired or the link has already been used.</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function ug(t){var p=t.factorId,x=t.phoneNumber;t=t.G;var se='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-revert-second-factor-addition-success"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Removed second factor</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">';return se+="phone"===p?p="The <strong>"+Yi(p)+" "+Yi(x)+"</strong> was removed as a second authentication step.":"The device or app was removed as a second authentication step.",se+='</p><p class="firebaseui-text">If you don\'t recognize this device, someone might be trying to access your account. Consider <a class="firebaseui-link firebaseui-id-reset-password-link" href="javascript:void(0)">changing your password right away</a>.</p></div><div class="firebaseui-card-actions">'+(t?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></form></div>",ji(se)}function xg(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-revert-second-factor-addition-failure"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Couldn\'t remove your second factor</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">Something went wrong removing your second factor.</p><p class="firebaseui-text">Try removing it again. If that doesn\'t work, contact support for assistance.</p></div><div class="firebaseui-card-actions">'+((t=t||{}).G?'<div class="firebaseui-form-actions">'+rc()+"</div>":"")+"</div></div>",ji(t)}function hg(t){var p=t.zb;return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-recoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+Yi(t.errorMessage)+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">',p&&(t+=Ul({label:ns("Retry")})),ji(t+"</div></div></div>")}function ip(t){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-unrecoverable-error"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Error encountered</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+Yi(t.errorMessage)+"</p></div></div>",ji(t)}function Qu(t,p,x){var se=t.Qb;return p="",p+='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-email-mismatch"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><h2 class="firebaseui-subtitle">'+(t="Continue with "+Yi(t.jc)+"?")+'</h2><p class="firebaseui-text">
1'+(se="You originally wanted to sign in with "+Yi(se))+'</p></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ha(null)+Ul({label:ns("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form></div>",ji(p)}function rp(t,p,x){var se='<div class="firebaseui-container firebaseui-page-provider-sign-in firebaseui-id-page-provider-sign-in firebaseui-use-spinner"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-idp-list">';p=(t=t.Sb).length;for(var Le=0;Le<p;Le++){var Je={ga:t[Le]},an=x,Tn=(Je=Je||{}).ga,di=Je,Bi="";switch((di=di||{}).ga.providerId){case"google.com":Bi+="firebaseui-idp-google";break;case"github.com":Bi+="firebaseui-idp-github";break;case"facebook.com":Bi+="firebaseui-idp-facebook";break;case"twitter.com":Bi+="firebaseui-idp-twitter";break;case"phone":Bi+="firebaseui-idp-phone";break;case"anonymous":Bi+="firebaseui-idp-anonymous";break;case"password":Bi+="firebaseui-idp-password";break;default:Bi+="firebaseui-idp-generic"}di=(di='<button class="firebaseui-idp-button mdl-button mdl-js-button mdl-button--raised '+is(Br(Bi))+' firebaseui-id-idp-button" data-provider-id="'+is(Tn.providerId)+'" style="background-color:')+is(_o(Br((Bi=(Bi=(Bi=Je)||{}).ga).ta?Bi.ta:an.wa[Bi.providerId]?""+an.wa[Bi.providerId]:0==Bi.providerId.indexOf("saml.")?""+an.wa.saml:0==Bi.providerId.indexOf("oidc.")?""+an.wa.oidc:""+an.wa.password)))+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="';var e=Je;Bi=an,Bi=_i((e=(e=e||{}).ga).za?js(e.za):Bi.xa[e.providerId]?js(Bi.xa[e.providerId]):0==e.providerId.indexOf("saml.")?js(Bi.xa.saml):0==e.providerId.indexOf("oidc.")?js(Bi.xa.oidc):js(Bi.xa.password)),di=di+is(js(Bi))+'"></span>',"password"==Tn.providerId?(di+='<span class="firebaseui-idp-text firebaseui-idp-text-long">',di+=Tn.V?Yi(Tn.V):Tn.S?Je="Sign in with "+Yi(oc(Je,an)):"Sign in with email",di+='</span><span class="firebaseui-idp-text firebaseui-idp-text-short">',di=Tn.S?di+Yi(Tn.S):di+"Email",di+="</span>"):"phone"==Tn.providerId?(di+='<span class="firebaseui-idp-text firebaseui-idp-text-long">',di+=Tn.V?Yi(Tn.V):Tn.S?Je="Sign in with "+Yi(oc(Je,an)):"Sign in with phone",di+='</span><span class="firebaseui-idp-text firebaseui-idp-text-short">',di=Tn.S?di+Yi(Tn.S):di+"Phone",di+="</span>"):"anonymous"==Tn.providerId?(di+='<span class="firebaseui-idp-text firebaseui-idp-text-long">',di+=Tn.V?Yi(Tn.V):Tn.S?Je="Sign in with "+Yi(oc(Je,an)):"Continue as guest",di+='</span><span class="firebaseui-idp-text firebaseui-idp-text-short">',di=Tn.S?di+Yi(Tn.S):di+"Guest",di+="</span>"):(di+='<span class="firebaseui-idp-text firebaseui-idp-text-long">',di+=Tn.V?Yi(Tn.V):Bi="Sign in with "+Yi(oc(Je,an)),di+='</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+Yi(Tn.S?Tn.S:oc(Je,an))+"</span>"),se+='<li class="firebaseui-list-item">'+(Tn=ji(di+"</button>"))+"</li>"}return se+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+kd(x)+"</div></div>",ji(se)}function sp(t,p,x){var Je,se=(t=t||{}).Gb,Le=t.Va;return p=t.ia,t='<div class="firebaseui-phone-number"><button class="firebaseui-id-country-selector firebaseui-country-selector mdl-button mdl-js-button"><span class="firebaseui-flag firebaseui-country-selector-flag firebaseui-id-country-selector-flag"></span><span class="firebaseui-id-country-selector-code"></span></button><div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label firebaseui-textfield firebaseui-phone-input-wrapper"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-phone-number-input">Phone number</label><input type="tel" name="phoneNumber" id="ui-sign-in-phone-number-input" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-number" value="'+is(null!=(t=(t=t||{}).Aa)?t:"")+'"></div></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-phone-number-error firebaseui-id-phone-number-error"></p></div>',Je=(t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-start"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Enter your phone number</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+ji(t))+(Je=se?ji('<div class="firebaseui-recaptcha-wrapper"><div class="firebaseui-recaptcha-container"></div><div class="firebaseui-error-wrapper firebaseui-recaptcha-error-wrapper"><p class="firebaseui-error firebaseui-hidden firebaseui-id-recaptcha-error"></p></div></div>
1'):"")+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+(Le?Ha(null):"")+Ul({label:ns("Verify")})+'</div></div><div class="firebaseui-card-footer">',p?(p='<p class="firebaseui-tos firebaseui-phone-tos">',x=ji((p=x.F&&x.D?p+'By tapping Verify, you are indicating that you accept our <a href="javascript:void(0)" class="firebaseui-link firebaseui-tos-link" target="_blank">Terms of Service</a> and <a href="javascript:void(0)" class="firebaseui-link firebaseui-pp-link" target="_blank">Privacy Policy</a>. An SMS may be sent. Message & data rates may apply.':p+"By tapping Verify, an SMS may be sent. Message & data rates may apply.")+"</p>")):x=ji('<p class="firebaseui-tos firebaseui-phone-sms-notice">By tapping Verify, an SMS may be sent. Message & data rates may apply.</p>')+Sa(x),ji(Je+x+"</div></form></div>")}function op(t,p,x){var se="";return t='Enter the 6-digit code we sent to <a class="firebaseui-link firebaseui-change-phone-number-link firebaseui-id-change-phone-number-link" href="javascript:void(0)">‎'+Yi(p=(t=t||{}).phoneNumber)+"</a>",Yi(p),p=se,x='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-phone-sign-in-finish"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Verify your phone number</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">'+t+"</p>"+(se=ji('<div class="firebaseui-textfield mdl-textfield mdl-js-textfield mdl-textfield--floating-label"><label class="mdl-textfield__label firebaseui-label" for="ui-sign-in-phone-confirmation-code-input">6-digit code</label><input type="number" name="phoneConfirmationCode" id="ui-sign-in-phone-confirmation-code-input" class="mdl-textfield__input firebaseui-input firebaseui-id-phone-confirmation-code"></div><div class="firebaseui-error-wrapper"><p class="firebaseui-error firebaseui-text-input-error firebaseui-hidden firebaseui-id-phone-confirmation-code-error"></p></div>'))+'</div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ha(null)+Ul({label:ns("Continue")})+'</div></div><div class="firebaseui-card-footer">'+Sa(x)+"</div></form>",t=ji('<div class="firebaseui-resend-container"><span class="firebaseui-id-resend-countdown"></span><a href="javascript:void(0)" class="firebaseui-id-resend-link firebaseui-hidden firebaseui-link">Resend</a></div>'),ji(p+(x+t+"</div>"))}function Nd(){return ji('<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-sign-out"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign Out</h1></div><div class="firebaseui-card-content"><p class="firebaseui-text">You are now successfully signed out.</p></div></div>')}function Sf(t,p,x){var se='<div class="firebaseui-container firebaseui-page-select-tenant firebaseui-id-page-select-tenant"><div class="firebaseui-card-content"><form onsubmit="return false;"><ul class="firebaseui-tenant-list">';p=(t=t.ec).length;for(var Le=0;Le<p;Le++){var Je=t[Le],an="",Tn=Yi(Je.displayName),di=Je.tenantId?Je.tenantId:"top-level-project";an+='<button class="firebaseui-tenant-button mdl-button mdl-js-button mdl-button--raised firebaseui-tenant-selection-'+is(di=ns(di))+' firebaseui-id-tenant-selection-button"'+(Je.tenantId?'data-tenant-id="'+is(Je.tenantId)+'"':"")+'style="background-color:'+is(_o(Je.ta))+'"><span class="firebaseui-idp-icon-wrapper"><img class="firebaseui-idp-icon" alt="" src="'+is(js(Je.za))+'"></span><span class="firebaseui-idp-text firebaseui-idp-text-long">',an+=Je.V?Yi(Je.V):Je="Sign in to "+Yi(Je.displayName),se+='<li class="firebaseui-list-item">'+(an=ji(an+'</span><span class="firebaseui-idp-text firebaseui-idp-text-short">'+Tn+"</span></button>"))+"</li>"}return se+='</ul></form></div><div class="firebaseui-card-footer firebaseui-provider-sign-in-footer">'+kd(x)+"</div></div>",ji(se)}function Sh(t,p,x){return t='<div class="mdl-card mdl-shadow--2dp firebaseui-container firebaseui-id-page-provider-match-by-email"><form onsubmit="return false;"><div class="firebaseui-card-header"><h1 class="firebaseui-title">Sign in</h1></div><div class="firebaseui-card-content"><div class="firebaseui-relative-wrapper">'+Id(null)+'</div></div><div class="firebaseui-card-actions"><div class="firebaseui-form-actions">'+Ul(null)+'</div></div><div class="firebaseui-card-footer">'+kd(x)+"</div></form></div>",ji(t)}function Aa(){return $s(this,"firebaseui-id-submit")}function Do(){return $s(this,"firebaseui-id-secondary-link")}function Ma(t,p){uo(this,Aa.call(this),function(se){t(se)});var x=Do.call(this);x&&p&&uo(this,x,function(se){p(se)})}function Bd(){return $s(this,"firebaseui-id-password")}function Ud(){return $s(this,"firebaseui-id-password-error")}function Af(){var t=Bd.call(this),p=Ud.call(this);qh(this,t,function(){ol(p)&&(Zo(t,!0),ic(p))})}function ap(){var t=Bd.call(this),p=Ud.call(this);return Da(t)?(Zo(t,!0),ic(p),p=!0):(Zo(t,!1),ea(p,Br("Enter your password").toString()),p=!1),p?Da(t):null}
1function nd(t,p,x,se,Le,Je){Ti.call(this,rg,{email:t},Je,"passwordLinking",{F:se,D:Le}),this.w=p,this.H=x}ht(Df,Es),ht(Ti,Dl),(Q=Ti.prototype).kb=function(){var t=yt(this.fb,this.eb,this.Z,this.s);ep(t),this.g=t},Q.v=function(){if(Ti.K.v.call(this),st(Zs(this),new Df("pageEnter",Zs(this),{pageId:this.Ga})),this.bb()&&this.Z.F){var t=this.Z.F;uo(this,this.bb(),function(){t()})}if(this.ab()&&this.Z.D){var p=this.Z.D;uo(this,this.ab(),function(){p()})}},Q.ya=function(){st(Zs(this),new Df("pageExit",Zs(this),{pageId:this.Ga})),Ti.K.ya.call(this)},Q.o=function(){window.clearTimeout(this.ca),this.eb=this.fb=this.ca=null,this.Fa=!1,this.A=null,Rd(this.N()),Ti.K.o.call(this)},Q.I=function(t,p,x,se){function Le(){if(Je.T)return null;Je.Fa=!1,window.clearTimeout(Je.ca),Je.ca=null,Je.A&&(Rd(Je.A),jr(Je.A),Je.A=null)}var Je=this;return Je.Fa?null:(function Pp(t){t.Fa=!0;var p=Za(t.N(),"firebaseui-use-spinner");t.ca=window.setTimeout(function(){t.N()&&null===t.A&&(t.A=yt(Ch,{tb:p},null,t.s),t.N().appendChild(t.A),ep(t.A))},500)}(Je),t.apply(null,p).then(x,se).then(Le,Le))},wt(Ti.prototype,{a:function(t){Cf.call(this);var p=yt(sc,{message:t},null,this.s);this.N().appendChild(p),uo(this,Qh.call(this),function(){jr(p)})},yc:Cf,Ac:Rp,zc:Qh,$:function(t,p){t=yt(Ef,{Ma:t,message:p},null,this.s),Dh.call(this,t)},h:Yr,Cb:Eu,Cc:function(){return $s(this,"firebaseui-tos")},bb:function(){return $s(this,"firebaseui-tos-link")},ab:function(){return $s(this,"firebaseui-pp-link")},Dc:function(){return $s(this,"firebaseui-tos-list")}}),tp.a="firebaseui.auth.soy2.page.signIn",Sg.a="firebaseui.auth.soy2.page.passwordSignIn",Ku.a="firebaseui.auth.soy2.page.passwordSignUp",Ag.a="firebaseui.auth.soy2.page.passwordRecovery",$u.a="firebaseui.auth.soy2.page.passwordRecoveryEmailSent",Jh.a="firebaseui.auth.soy2.page.callback",jl.a="firebaseui.auth.soy2.page.spinner",Cu.a="firebaseui.auth.soy2.page.blank",qu.a="firebaseui.auth.soy2.page.emailLinkSignInSent",Mg.a="firebaseui.auth.soy2.page.emailNotReceived",ed.a="firebaseui.auth.soy2.page.emailLinkSignInConfirmation",ig.a="firebaseui.auth.soy2.page.differentDeviceError",Pd.a="firebaseui.auth.soy2.page.anonymousUserMismatch",rg.a="firebaseui.auth.soy2.page.passwordLinking",td.a="firebaseui.auth.soy2.page.emailLinkSignInLinking",sg.a="firebaseui.auth.soy2.page.emailLinkSignInLinkingDifferentDevice",og.a="firebaseui.auth.soy2.page.federatedLinking",Tg.a="firebaseui.auth.soy2.page.unauthorizedUser",Fd.a="firebaseui.auth.soy2.page.unsupportedProvider",Ld.a="firebaseui.auth.soy2.page.passwordReset",Fp.a="firebaseui.auth.soy2.page.passwordResetSuccess",np.a="firebaseui.auth.soy2.page.passwordResetFailure",ag.a="firebaseui.auth.soy2.page.emailChangeRevokeSuccess",Lp.a="firebaseui.auth.soy2.page.emailChangeRevokeFailure",lg.a="firebaseui.auth.soy2.page.emailVerificationSuccess",Np.a="firebaseui.auth.soy2.page.emailVerificationFailure",Bp.a="firebaseui.auth.soy2.page.verifyAndChangeEmailSuccess",cg.a="firebaseui.auth.soy2.page.verifyAndChangeEmailFailure",ug.a="firebaseui.auth.soy2.page.revertSecondFactorAdditionSuccess",xg.a="firebaseui.auth.soy2.page.revertSecondFactorAdditionFailure",hg.a="firebaseui.auth.soy2.page.recoverableError",ip.a="firebaseui.auth.soy2.page.unrecoverableError",Qu.a="firebaseui.auth.soy2.page.emailMismatch",rp.a="firebaseui.auth.soy2.page.providerSignIn",sp.a="firebaseui.auth.soy2.page.phoneSignInStart",op.a="firebaseui.auth.soy2.page.phoneSignInFinish",Nd.a="firebaseui.auth.soy2.page.signOut",Sf.a="firebaseui.auth.soy2.page.selectTenant",Sh.a="firebaseui.auth.soy2.page.providerMatchByEmail",ne(nd,Ti),nd.prototype.v=function(){this.P(),this.M(this.w,this.H),Zh(this,this.i(),this.w),this.i().focus(),Ti.prototype.v.call(this)},nd.prototype.o=function(){this.w=null,Ti.prototype.o.call(this)},nd.prototype.j=function(){return Da($s(this,"firebaseui-id-email"))},wt(nd.prototype,{i:Bd,B:Ud,P:Af,u:ap,ea:Aa,ba:Do,M:Ma});var dg=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function Sl(){return $s(this,"firebaseui-id-email")}function Vl(){return $s(this,"firebaseui-id-email-error")}function Ah(t){var p=Sl.call(this),x=Vl.call(this);
1qh(this,p,function(){ol(x)&&(Zo(p,!0),ic(x))}),t&&xd(this,p,function(){t()})}function Vc(){return Dn(Da(Sl.call(this))||"")}function Hc(){var t=Sl.call(this),p=Vl.call(this),x=Da(t)||"";return x?dg.test(x)?(Zo(t,!0),ic(p),p=!0):(Zo(t,!1),ea(p,Br("That email address isn't correct").toString()),p=!1):(Zo(t,!1),ea(p,Br("Enter your email address to continue").toString()),p=!1),p?Dn(Da(t)):null}function Dc(t,p,x,se,Le,Je,an){Ti.call(this,Sg,{email:x,ia:!!Je},an,"passwordSignIn",{F:se,D:Le}),this.w=t,this.H=p}function ho(t,p,x,se,Le,Je){Ti.call(this,t,p,se,Le||"notice",Je),this.i=x||null}function Gc(t,p,x,se,Le){ho.call(this,$u,{email:t,G:!!p},p,Le,"passwordRecoveryEmailSent",{F:x,D:se})}function jd(t,p){ho.call(this,lg,{G:!!t},t,p,"emailVerificationSuccess")}function Mf(t,p){ho.call(this,Np,{G:!!t},t,p,"emailVerificationFailure")}function Tf(t,p,x){ho.call(this,Bp,{email:t,G:!!p},p,x,"verifyAndChangeEmailSuccess")}function Vd(t,p){ho.call(this,cg,{G:!!t},t,p,"verifyAndChangeEmailFailure")}function Hd(t,p){ho.call(this,xg,{G:!!t},t,p,"revertSecondFactorAdditionFailure")}function xf(t){ho.call(this,Nd,void 0,void 0,t,"signOut")}function Gd(t,p){ho.call(this,Fp,{G:!!t},t,p,"passwordResetSuccess")}function Ig(t,p){ho.call(this,np,{G:!!t},t,p,"passwordResetFailure")}function lp(t,p){ho.call(this,Lp,{G:!!t},t,p,"emailChangeRevokeFailure")}function Xu(t,p,x){ho.call(this,hg,{errorMessage:t,zb:!!p},p,x,"recoverableError")}function fg(t,p){ho.call(this,ip,{errorMessage:t},void 0,p,"unrecoverableError")}function id(t){if("auth/invalid-credential"===t.code&&t.message&&-1!==t.message.indexOf("error=consent_required"))return{code:"auth/user-cancelled"};if(t.message&&-1!==t.message.indexOf("HTTP Cloud Function returned an error:")){var p=JSON.parse(t.message.substring(t.message.indexOf("{"),t.message.lastIndexOf("}")+1));return{code:t.code,message:p&&p.error&&p.error.message||t.message}}return t}function Zu(t,p,x,se){function Le(an){if(!an.name||"cancel"!=an.name){e:{var Tn=an.message;try{var di=((JSON.parse(Tn).error||{}).message||"").toLowerCase().match(/invalid.+(access|id)_token/);if(di&&di.length){var Bi=!0;break e}}catch(e){}Bi=!1}if(Bi)an=Zs(p),p.m(),fo(t,an,void 0,Br("Your sign-in session has expired. Please try again.").toString());else{if(Bi=an&&an.message||"",an.code){if("auth/email-already-in-use"==an.code||"auth/credential-already-in-use"==an.code)return;Bi=Hs(an)}p.a(Bi)}}}if(Vf(t),se)return Up(t,x),No();if(!x.credential)throw Error("No credential found!");if(!Bs(t).currentUser&&!x.user)throw Error("User not logged in.");try{var Je=function zf(t,p){return Gs(t),So(t,function(x){if(t.j&&!t.j.isAnonymous&&Jl(gi(t))&&!Bs(t).currentUser)return nh(t).then(function(){return"password"==p.credential.providerId&&(p.credential=null),p});if(x)return nh(t).then(function(){return x.linkWithCredential(p.credential)}).then(function(se){return p.user=se.user,p.credential=se.credential,p.operationType=se.operationType,p.additionalUserInfo=se.additionalUserInfo,p},function(se){if(se&&"auth/email-already-in-use"==se.code&&se.email&&se.credential)throw se;return Su(t,se,p.credential)});if(!p.user)throw Error('Internal error: An incompatible or outdated version of "firebase.js" may be used.');return nh(t).then(function(){return cl(t).updateCurrentUser(p.user)}).then(function(){return p.user=cl(t).currentUser,p.operationType="signIn",p.credential&&p.credential.providerId&&"password"==p.credential.providerId&&(p.credential=null),p})})}(t,x)}catch(an){return pa(an.code||an.message,an),p.a(an.code||an.message),No()}return x=Je.then(function(an){Up(t,an)},Le).then(void 0,Le),os(t,Je),No(x)}function Up(t,p){if(!p.user)throw Error("No user found");var x=zo(gi(t));if(bl(gi(t))&&x&&Ol("Both signInSuccess and signInSuccessWithAuthResult callbacks are provided. Only signInSuccessWithAuthResult callback will be invoked."),x){x=zo(gi(t));var se=ph(cr(t))||void 0;Vo(au,cr(t));var Le=!1;Ph()?((!x||x(p,se))&&(Le=!0,ti(window.opener.location,Ga(t,se))),x||window.close()):(!x||x(p,se))&&(Le=!0,ti(window.location,Ga(t,se))),Le||t.reset()}else{x=p.user,p=p.credential,se=bl(gi(t)),Le=ph(cr(t))||void 0,Vo(au,cr(t));var Je=!1;Ph()?((!se||se(x,p,Le))&&(Je=!0,ti(window.opener.location,Ga(t,Le))),se||window.close()):(!se||se(x,p,Le))&&(Je=!0,ti(window.location,Ga(t,Le))),Je||t.reset()}}function Ga(t,p){if(!(t=p||gi(t).a.get("signInSuccessUrl")))throw Error("No redirect URL has been found. You must either specify a signInSuccessUrl in the configuration, pass in a redirect URL to the widget URL, or return false from the callback.");return t}function Hs(t){var p={code:t.code},x="";switch((p=p||{}).code){case"auth/email-already-in-use":x+="The email address is already used by another account";break;case"auth/requires-recent-login":case"auth/user-token-expired":x+=function In(){return Br("Please login again to perform this operation")}();break;case"auth/too-many-requests":x+="You have entered an incorrect password too many times. Please try again in a few minutes.";break;case"auth/user-cancelled":x+="Please authorize the required permissions to sign in to the application";break;case"auth/user-not-found":x+="That email address doesn't match an existing account";break;case"auth/weak-password":x+="Strong passwords have at least 6 characters and a mix of letters and numbers";break;case"auth/wrong-password":x+="The email and password you entered don't match";break;case"auth/network-request-failed":x+="A network error has occurred";break;case"auth/invalid-phone-number":x+=Te();break;case"auth/invalid-verification-code":x+=Br("Wrong code. Try again.");break;case"auth/code-expired":x+="This code is no longer valid";break;case"auth/expired-action-code":x+="This code has expired.";break;
1case"auth/invalid-action-code":x+="The action code is invalid. This can happen if the code is malformed, expired, or has already been used."}if(p=Br(x).toString())return p;try{return JSON.parse(t.message),pa("Internal error: "+t.message,void 0),$t().toString()}catch(se){return t.message}}function zd(t,p,x,se){function Le(){(function jh(t,p){rl(ou,{tenantId:t.a},p)})(new La(t.h.tenantId||null),cr(t)),os(t,p.I(ut(t.dc,t),[di],function(){if("file:"===(window.location&&window.location.protocol))return os(t,sf(t).then(function(Bi){p.m(),Vo(ou,cr(t)),ir("callback",t,Tn,No(Bi))},Je))},an))}function Je(Bi){if(Vo(ou,cr(t)),!Bi.name||"cancel"!=Bi.name)switch(Bi=id(Bi),Bi.code){case"auth/popup-blocked":Le();break;case"auth/popup-closed-by-user":case"auth/cancelled-popup-request":case"auth/credential-already-in-use":break;case"auth/network-request-failed":case"auth/too-many-requests":case"auth/user-cancelled":p.a(Hs(Bi));break;case"auth/admin-restricted-operation":p.m(),ua(gi(t))?ir("handleUnauthorizedUser",t,Tn,null,x):ir("callback",t,Tn,Al(Bi));break;default:p.m(),ir("callback",t,Tn,Al(Bi))}}function an(Bi){Vo(ou,cr(t)),Bi.name&&"cancel"==Bi.name||(pa("signInWithRedirect: "+Bi.code,void 0),Bi=Hs(Bi),"blank"==p.Ga&&Wu(gi(t))?(p.m(),ir("providerSignIn",t,Tn,Bi)):p.a(Bi))}var Tn=Zs(p),di=function kg(t,p,x){var se=Ec[p]&&_().auth[Ec[p]]?new(_().auth[Ec[p]]):0==p.indexOf("saml.")?new(_().auth.SAMLAuthProvider)(p):new(_().auth.OAuthProvider)(p);if(!se)throw Error("Invalid Firebase Auth provider!");var Le=Yh(gi(t),p);if(se.addScope)for(var Je=0;Je<Le.length;Je++)se.addScope(Le[Je]);return Le=_f(gi(t),p)||{},x&&(t=p==_().auth.GoogleAuthProvider.PROVIDER_ID?"login_hint":p==_().auth.GithubAuthProvider.PROVIDER_ID?"login":(t=Gh(gi(t),p))&&t.Ob)&&(Le[t]=x),se.setCustomParameters&&se.setCustomParameters(Le),se}(t,x,se);vf(gi(t))==Kh?Le():os(t,function Xp(t,p){return Gs(t),So(t,function(x){return x&&!qa(cr(t))?x.linkWithPopup(p).then(function(se){return se},function(se){if(se&&"auth/email-already-in-use"==se.code&&se.email&&se.credential)throw se;return Su(t,se)}):Bs(t).signInWithPopup(p)})}(t,di).then(function(Bi){p.m(),ir("callback",t,Tn,No(Bi))},Je))}function If(t){return 1==(t=Ca(gi(t))).length&&t[0]==_().auth.EmailAuthProvider.PROVIDER_ID}function kf(t){return 1==(t=Ca(gi(t))).length&&t[0]==_().auth.PhoneAuthProvider.PROVIDER_ID}function fo(t,p,x,se){If(t)?se?ir("signIn",t,p,x,se):zc(t,p,x):t&&kf(t)&&!se?ir("phoneSignInStart",t,p):t&&Wu(gi(t))&&!se?ir("federatedRedirect",t,p,x):ir("providerSignIn",t,p,se,x)}function pg(t,p,x,se){var Le=Zs(p);os(t,p.I(ut(Bs(t).fetchSignInMethodsForEmail,Bs(t)),[x],function(Je){p.m(),Wd(t,Le,Je,x,se)},function(Je){Je=Hs(Je),p.a(Je)}))}function Wd(t,p,x,se,Le,Je){x.length||zu(gi(t))&&!zu(gi(t))?tt(x,_().auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?ir("passwordSignIn",t,p,se,Je):1==x.length&&x[0]===_().auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?zu(gi(t))?ir("sendEmailLinkForSignIn",t,p,se,function(){ir("signIn",t,p)}):ir("unsupportedProvider",t,p,se):(x=ju(x,Ca(gi(t))))?(ql(new ba(se),cr(t)),ir("federatedSignIn",t,p,se,x,Le)):ir("unsupportedProvider",t,p,se):vh(gi(t))?ir("handleUnauthorizedUser",t,p,se,_().auth.EmailAuthProvider.PROVIDER_ID):zu(gi(t))?ir("sendEmailLinkForSignIn",t,p,se,function(){ir("signIn",t,p)}):ir("passwordSignUp",t,p,se,void 0,void 0,Je)}function cp(t,p,x,se,Le,Je){var an=Zs(p);os(t,p.I(ut(t.Ib,t),[x,Je],function(){p.m(),ir("emailLinkSignInSent",t,an,x,se,Je)},Le))}function zc(t,p,x){x?ir("prefilledEmailSignIn",t,p,x):ir("signIn",t,p)}function sd(){return Xn(Oa(),"oobCode")}function Vp(){var t=Xn(Oa(),"continueUrl");return t?function(){ti(window.location,t)}:null}function Mh(t,p){Ti.call(this,Pd,void 0,p,"anonymousUserMismatch"),this.i=t}function Yd(t){Ti.call(this,Jh,void 0,t,"callback")}function up(t,p,x){if(x.user){var se={user:x.user,credential:x.credential,operationType:x.operationType,additionalUserInfo:x.additionalUserInfo},Le=qa(cr(t)),Je=Le&&Le.g;if(Je&&!function Rg(t,p){if(p==t.email)return!0;if(t.providerData)for(var x=0;x<t.providerData.length;x++)if(p==t.providerData[x].email)return!0;return!1}(x.user,Je))!function Of(t,p,x){var se=Zs(p);os(t,nh(t).then(function(){p.m(),ir("emailMismatch",t,se,x)},function(Le){Le.name&&"cancel"==Le.name||(Le=Hs(Le.code),p.a(Le))}))}(t,p,se);else{var an=Le&&Le.a;an?os(t,x.user.linkWithCredential(an).then(function(Tn){Kd(t,p,se={user:Tn.user,credential:an,operationType:Tn.operationType,additionalUserInfo:Tn.additionalUserInfo})},function(Tn){$d(t,p,Tn)})):Kd(t,p,se)}}else x=Zs(p),p.m(),yl(cr(t)),fo(t,x)}function Kd(t,p,x){yl(cr(t)),Zu(t,p,x)}function $d(t,p,x){var se=Zs(p);yl(cr(t)),x=Hs(x),p.m(),fo(t,se,void 0,x)}function Hl(t,p,x,se){var Le=Zs(p);os(t,Bs(t).fetchSignInMethodsForEmail(x).then(function(Je){p.m(),Je.length?tt(Je,_().auth.EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD)?ir("passwordLinking",t,Le,x):1==Je.length&&Je[0]===_().auth.EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD?ir("emailLinkSignInLinking",t,Le,x):(Je=ju(Je,Ca(gi(t))))?ir("federatedLinking",t,Le,x,Je,se):(yl(cr(t)),ir("unsupportedProvider",t,Le,x)):(yl(cr(t)),ir("passwordRecovery",t,Le,x,!1,mn().toString()))},function(Je){$d(t,p,Je)}))}function Rf(t,p){Ti.call(this,ig,void 0,p,"differentDeviceError"),this.i=t}function od(t,p,x,se){Ti.call(this,ag,{email:t,G:!!x},se,"emailChangeRevoke"),this.l=p,this.i=x||null}function ad(){return $s(this,"firebaseui-id-new-password")}function hp(){return $s(this,"firebaseui-id-password-toggle")}function ac(){this.Ra=!this.Ra;var t=hp.call(this),p=ad.call(this);this.Ra?(p.type="text",tc(t,"firebaseui-input-toggle-off"),El(t,"firebaseui-input-toggle-on")):(p.type="password",tc(t,"firebaseui-input-toggle-on"),El(t,"firebaseui-input-toggle-off")),p.focus()}function qd(){return $s(this,"firebaseui-id-new-password-error")}function Qd(){this.Ra=!1;var t=ad.call(this);t.type="password";var p=qd.call(this);qh(this,t,function(){ol(p)&&(Zo(t,!0),ic(p))});var x=hp.call(this);tc(x,"firebaseui-input-toggle-on"),El(x,"firebaseui-input-toggle-off"),function bf(t,p,x){wr(t,Ge(Li,p=new Ct(p))),si(Td(t),p,"focusin",x)}(this,t,function(){tc(x,"firebaseui-input-toggle-focus"),El(x,"firebaseui-input-toggle-blur")}),function kp(t,p,x){wr(t,Ge(Li,p=new Ct(p))),si(Td(t),p,"focusout",x)}(this,t,function(){tc(x,"firebaseui-input-toggle-blur"),El(x,"firebaseui-input-toggle-focus")}),uo(this,x,ut(ac,this))}function Xd(){var t=ad.call(this),p=qd.call(this);return Da(t)?(Zo(t,!0),ic(p),p=!0):(Zo(t,!1),ea(p,Br("Enter your password").toString()),p=!1),p?Da(t):null}function ld(t,p,x){Ti.call(this,Ld,{email:t},x,"passwordReset"),this.l=p}function Wc(t,p,x,se,Le){Ti.call(this,ug,{factorId:t,phoneNumber:x||null,G:!!se},Le,"revertSecondFactorAdditionSuccess"),this.l=p,this.i=se||null}function Gp(t,p,x,se){"auth/weak-password"==(se&&se.code)?(t=Hs(se),Zo(x.i(),!1),ea(x.w(),t),x.i().focus()):(x&&x.m(),(x=new Ig).render(p),Cs(t,x))}function Ff(t,p){try{var x="number"==typeof t.selectionStart}catch(se){x=!1}x?(t.selectionStart=p,t.selectionEnd=p):qr&&!Ui("9")&&("textarea"==t.type&&(p=t.value.substring(0,p).replace(/(\r\n|\r|\n)/g,"\n").length),(t=t.createTextRange()).collapse(!0),t.move("character",p),t.select())}function Yc(t,p,x,se,Le,Je){Ti.call(this,ed,{email:x},Je,"emailLinkSignInConfirmation",{F:se,D:Le}),this.l=t,this.u=p}function Th(t,p,x,se,Le){Ti.call(this,sg,{ga:t},Le,"emailLinkSignInLinkingDifferentDevice",{F:x,D:se}),this.i=p}function cd(t){Ti.call(this,Cu,void 0,t,"blank")}function fp(t,p,x,se,Le){var Je=new cd,an=new zi(x),Tn=an.a.a.get(or.$a)||"",di=an.a.a.get(or.Sa)||"",Bi="1"===an.a.a.get(or.Qa),e=qs(an),f=an.a.a.get(or.PROVIDER_ID)||null;an=an.a.a.get(or.vb)||null,wp(t,an);var F=!Nl(yc,cr(t)),_e=se||function gf(t,p){var x=null;if(p=Nl(yc,p))try{var se=bd(t,p),Le=JSON.parse(se);x=Le&&Le.email||null}catch(Je){}return x}(di,cr(t)),lt=(se=function cu(t,p){var x=null;if(p=Nl($l,p))try{var se=bd(t,p);x=JSON.parse(se)}catch(Le){}return fc(x||null)}(di,cr(t)))&&se.a;f&<&<.providerId!==f&&(lt=null),Je.render(p),Cs(t,Je),os(t,Je.I(function(){var Vt=No(null);Vt=e&&F||F&&Bi?Al(Error("anonymous-user-not-found")):function Gf(t,p){var x=qs(new zi(p));return x?(p=new _s(function(se,Le){var Je=cl(t).onAuthStateChanged(function(an){Je(),an&&an.isAnonymous&&an.uid===x?se(an):Le(an&&an.isAnonymous&&an.uid!==x?Error("anonymous-user-mismatch"):Error("anonymous-user-not-found"))});os(t,Je)}),os(t,p),p):No(null)}(t,x).then(function(Pn){if(f&&!lt)throw Error("pending-credential-not-found");return Pn});var on=null;return Vt.then(function(Pn){return on=Pn,Le?null:Bs(t).checkActionCode(Tn)}).then(function(){return on})},[],function(Vt){_e?function mp(t,p,x,se,Le,Je){var an=Zs(p);p.$("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",Br("Signing in...").toString());var Tn=null;Le=(Je?function Qp(t,p,x,se,Le){Gs(t);var Je=Le||null,an=_().auth.EmailAuthProvider.credentialWithLink(x,se);return x=Je?Bs(t).signInWithEmailLink(x,se).then(function(Tn){return Tn.user.linkWithCredential(Je)}).then(function(){return nh(t)}).then(function(){return Su(t,{code:"auth/email-already-in-use"},Je)}):Bs(t).fetchSignInMethodsForEmail(x).then(function(Tn){return Tn.length?Su(t,{code:"auth/email-already-in-use"},an):p.linkWithCredential(an)}),os(t,x),x}(t,Je,x,se,Le):function Cp(t,p,x,se){Gs(t);var Je,Le=se||null;return p=Bs(t).signInWithEmailLink(p,x).then(function(an){if(Je={user:an.user,credential:null,operationType:an.operationType,additionalUserInfo:an.additionalUserInfo},Le)return an.user.linkWithCredential(Le).then(function(Tn){Je={user:Tn.user,credential:Le,operationType:Je.operationType,additionalUserInfo:Tn.additionalUserInfo}})}).then(function(){nh(t)}).then(function(){return cl(t).updateCurrentUser(Je.user)}).then(function(){return Je.user=cl(t).currentUser,Je}),os(t,p),p}(t,x,se,Le)).then(function(di){Vo($l,cr(t)),Vo(yc,cr(t)),p.h(),p.$("firebaseui-icon-done",Br("Signed in!").toString()),Tn=setTimeout(function(){p.h(),Zu(t,p,di,!0)},1e3),os(t,function(){p&&(p.h(),p.m()),clearTimeout(Tn)})},function(di){if(p.h(),p.m(),!di.name||"cancel"!=di.name){var Bi=Hs(di=id(di));"auth/email-already-in-use"==di.code||"auth/credential-already-in-use"==di.code?(Vo($l,cr(t)),Vo(yc,cr(t))):"auth/invalid-email"==di.code?(Bi=Br("The email provided does not match the current sign-in session.").toString(),ir("emailLinkConfirmation",t,an,se,pp,null,Bi)):fo(t,an,x,Bi)}}),os(t,Le)}(t,Je,_e,x,lt,Vt):Bi?(Je.m(),ir("differentDeviceError",t,p)):(Je.m(),ir("emailLinkConfirmation",t,p,x,pp))},function(Vt){var on=void 0;if(!Vt||!Vt.name||"cancel"!=Vt.name)switch(Je.m(),Vt&&Vt.message){case"anonymous-user-not-found":ir("differentDeviceError",t,p);break;case"anonymous-user-mismatch":ir("anonymousUserMismatch",t,p);break;
1case"pending-credential-not-found":ir("emailLinkNewDeviceLinking",t,p,x,gp);break;default:Vt&&(on=Hs(Vt)),fo(t,p,void 0,on)}}))}function pp(t,p,x,se){fp(t,p,se,x,!0)}function gp(t,p,x){fp(t,p,x)}function Kc(t,p,x,se,Le,Je){Ti.call(this,td,{email:t,ga:p},Je,"emailLinkSignInLinking",{F:se,D:Le}),this.i=x}function eh(t,p,x,se,Le,Je){Ti.call(this,qu,{email:t},Je,"emailLinkSignInSent",{F:se,D:Le}),this.u=p,this.i=x}function al(t,p,x,se,Le,Je,an){Ti.call(this,Qu,{jc:t,Qb:p},an,"emailMismatch",{F:Le,D:Je}),this.l=x,this.i=se}function Ta(t,p,x,se,Le){Ti.call(this,Mg,void 0,Le,"emailNotReceived",{F:x,D:se}),this.l=t,this.i=p}function Zd(t,p,x,se,Le,Je){Ti.call(this,og,{email:t,ga:p},Je,"federatedLinking",{F:se,D:Le}),this.i=x}function ud(t,p,x,se,Le,Je){Ti.call(this,Ag,{email:x,Ta:!!p},Je,"passwordRecovery",{F:se,D:Le}),this.l=t,this.u=p}function Lf(){return $s(this,"firebaseui-id-name")}function xh(){return $s(this,"firebaseui-id-name-error")}function Du(t,p,x,se,Le,Je,an,Tn,di){Ti.call(this,Ku,{email:se,Tb:t,name:Le,Ta:!!x,ia:!!Tn},di,"passwordSignUp",{F:Je,D:an}),this.w=p,this.H=x,this.B=t}function _p(){return $s(this,"firebaseui-id-phone-confirmation-code")}function Jd(){return $s(this,"firebaseui-id-phone-confirmation-code-error")}function zp(){return $s(this,"firebaseui-id-resend-countdown")}function ef(t,p,x,se,Le,Je,an,Tn,di){Ti.call(this,op,{phoneNumber:Le},di,"phoneSignInFinish",{F:an,D:Tn}),this.jb=Je,this.i=new sn(1e3),this.B=Je,this.P=t,this.l=p,this.H=x,this.M=se}ne(Dc,Ti),Dc.prototype.v=function(){this.P(),this.ea(),this.ba(this.w,this.H),Xh(this,this.l(),this.i()),Zh(this,this.i(),this.w),Da(this.l())?this.i().focus():this.l().focus(),Ti.prototype.v.call(this)},Dc.prototype.o=function(){this.H=this.w=null,Ti.prototype.o.call(this)},wt(Dc.prototype,{l:Sl,U:Vl,P:Ah,M:Vc,j:Hc,i:Bd,B:Ud,ea:Af,u:ap,ua:Aa,pa:Do,ba:Ma}),ht(ho,Ti),ho.prototype.v=function(){this.i&&(this.u(this.i),this.l().focus()),ho.K.v.call(this)},ho.prototype.o=function(){this.i=null,ho.K.o.call(this)},wt(ho.prototype,{l:Aa,w:Do,u:Ma}),ht(Gc,ho),ht(jd,ho),ht(Mf,ho),ht(Tf,ho),ht(Vd,ho),ht(Hd,ho),ht(xf,ho),ht(Gd,ho),ht(Ig,ho),ht(lp,ho),ht(Xu,ho),ht(fg,ho),ne(Mh,Ti),Mh.prototype.v=function(){var t=this;uo(this,this.l(),function(){t.i()}),this.l().focus(),Ti.prototype.v.call(this)},Mh.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(Mh.prototype,{l:Do}),Ns.anonymousUserMismatch=function(t,p){var x=new Mh(function(){x.m(),fo(t,p)});x.render(p),Cs(t,x)},ne(Yd,Ti),Yd.prototype.I=function(t,p,x,se){return t.apply(null,p).then(x,se)},Ns.callback=function(t,p,x){var se=new Yd;se.render(p),Cs(t,se),x=x||sf(t),os(t,x.then(function(Le){up(t,se,Le)},function(Le){if((Le=id(Le))&&("auth/account-exists-with-different-credential"==Le.code||"auth/email-already-in-use"==Le.code)&&Le.email&&Le.credential)ql(new ba(Le.email,Le.credential),cr(t)),Hl(t,se,Le.email);else if(Le&&"auth/user-cancelled"==Le.code){var Je=qa(cr(t)),an=Hs(Le);Je&&Je.a?Hl(t,se,Je.g,an):Je?pg(t,se,Je.g,an):$d(t,se,Le)}else Le&&"auth/credential-already-in-use"==Le.code||(Le&&"auth/operation-not-supported-in-this-environment"==Le.code&&If(t)?up(t,se,{user:null,credential:null}):Le&&"auth/admin-restricted-operation"==Le.code&&ua(gi(t))?(se.m(),yl(cr(t)),ir("handleUnauthorizedUser",t,p,null,null)):$d(t,se,Le))}))},ne(Rf,Ti),Rf.prototype.v=function(){var t=this;uo(this,this.l(),function(){t.i()}),this.l().focus(),Ti.prototype.v.call(this)},Rf.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(Rf.prototype,{l:Do}),Ns.differentDeviceError=function(t,p){var x=new Rf(function(){x.m(),fo(t,p)});x.render(p),Cs(t,x)},ne(od,Ti),od.prototype.v=function(){var t=this;uo(this,$s(this,"firebaseui-id-reset-password-link"),function(){t.l()}),this.i&&(this.w(this.i),this.u().focus()),Ti.prototype.v.call(this)},od.prototype.o=function(){this.l=this.i=null,Ti.prototype.o.call(this)},wt(od.prototype,{u:Aa,B:Do,w:Ma}),ne(ld,Ti),ld.prototype.v=function(){this.H(),this.B(this.l),Zh(this,this.i(),this.l),this.i().focus(),Ti.prototype.v.call(this)},ld.prototype.o=function(){this.l=null,Ti.prototype.o.call(this)},wt(ld.prototype,{i:ad,w:qd,M:hp,H:Qd,u:Xd,U:Aa,P:Do,B:Ma}),ne(Wc,Ti),Wc.prototype.v=function(){var t=this;uo(this,$s(this,"firebaseui-id-reset-password-link"),function(){t.l()}),this.i&&(this.w(this.i),this.u().focus()),Ti.prototype.v.call(this)},Wc.prototype.o=function(){this.l=this.i=null,Ti.prototype.o.call(this)},wt(Wc.prototype,{u:Aa,B:Do,w:Ma}),Ns.passwordReset=function(t,p,x,se){os(t,Bs(t).verifyPasswordResetCode(x).then(function(Le){var Je=new ld(Le,function(){!function Hp(t,p,x,se,Le){var Je=x.u();Je&&os(t,x.I(ut(Bs(t).confirmPasswordReset,Bs(t)),[se,Je],function(){x.m();var an=new Gd(Le);an.render(p),Cs(t,an)},function(an){Gp(t,p,x,an)}))}(t,p,Je,x,se)});Je.render(p),Cs(t,Je)},function(){Gp(t,p)}))},Ns.emailChangeRevocation=function(t,p,x){var se=null;os(t,Bs(t).checkActionCode(x).then(function(Le){return se=Le.data.email,Bs(t).applyActionCode(x)}).then(function(){!function Pf(t,p,x){var se=new od(x,function(){os(t,se.I(ut(Bs(t).sendPasswordResetEmail,Bs(t)),[x],function(){se.m(),(se=new Gc(x,void 0,Ko(gi(t)),Go(gi(t)))).render(p),Cs(t,se)},function(){se.a(gt().toString())}))});se.render(p),Cs(t,se)}(t,p,se)},function(){var Le=new lp;Le.render(p),Cs(t,Le)}))},Ns.emailVerification=function(t,p,x,se){os(t,Bs(t).applyActionCode(x).then(function(){var Le=new jd(se);
1Le.render(p),Cs(t,Le)},function(){var Le=new Mf;Le.render(p),Cs(t,Le)}))},Ns.revertSecondFactorAddition=function(t,p,x){var se=null,Le=null;os(t,Bs(t).checkActionCode(x).then(function(Je){return se=Je.data.email,Le=Je.data.multiFactorInfo,Bs(t).applyActionCode(x)}).then(function(){!function dp(t,p,x,se){var Le=new Wc(se.factorId,function(){Le.I(ut(Bs(t).sendPasswordResetEmail,Bs(t)),[x],function(){Le.m(),(Le=new Gc(x,void 0,Ko(gi(t)),Go(gi(t)))).render(p),Cs(t,Le)},function(){Le.a(gt().toString())})},se.phoneNumber);Le.render(p),Cs(t,Le)}(t,p,se,Le)},function(){var Je=new Hd;Je.render(p),Cs(t,Je)}))},Ns.verifyAndChangeEmail=function(t,p,x,se){var Le=null;os(t,Bs(t).checkActionCode(x).then(function(Je){return Le=Je.data.email,Bs(t).applyActionCode(x)}).then(function(){var Je=new Tf(Le,se);Je.render(p),Cs(t,Je)},function(){var Je=new Vd;Je.render(p),Cs(t,Je)}))},ne(Yc,Ti),Yc.prototype.v=function(){this.w(this.l),this.B(this.l,this.u),this.i().focus(),Ff(this.i(),(this.i().value||"").length),Ti.prototype.v.call(this)},Yc.prototype.o=function(){this.u=this.l=null,Ti.prototype.o.call(this)},wt(Yc.prototype,{i:Sl,M:Vl,w:Ah,H:Vc,j:Hc,U:Aa,P:Do,B:Ma}),Ns.emailLinkConfirmation=function(t,p,x,se,Le,Je){var an=new Yc(function(){var Tn=an.j();Tn?(an.m(),se(t,p,Tn,x)):an.i().focus()},function(){an.m(),fo(t,p,Le||void 0)},Le||void 0,Ko(gi(t)),Go(gi(t)));an.render(p),Cs(t,an),Je&&an.a(Je)},ne(Th,Ti),Th.prototype.v=function(){this.u(this.i),this.l().focus(),Ti.prototype.v.call(this)},Th.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(Th.prototype,{l:Aa,u:Ma}),Ns.emailLinkNewDeviceLinking=function(t,p,x,se){var Le=new zi(x);if(x=Le.a.a.get(or.PROVIDER_ID)||null,fs(Le,null),x){var Je=new Th(Gh(gi(t),x),function(){Je.m(),se(t,p,Le.toString())},Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je)}else fo(t,p)},ne(cd,Ti),Ns.emailLinkSignInCallback=fp,ne(Kc,Ti),Kc.prototype.v=function(){this.u(this.i),this.l().focus(),Ti.prototype.v.call(this)},Kc.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(Kc.prototype,{l:Aa,u:Ma}),Ns.emailLinkSignInLinking=function(t,p,x){var se=qa(cr(t));if(yl(cr(t)),se){var Le=se.a.providerId,Je=new Kc(x,Gh(gi(t),Le),function(){!function Ju(t,p,x,se){var Le=Zs(p);cp(t,p,x,function(){fo(t,Le,x)},function(Je){if(!Je.name||"cancel"!=Je.name){var an=Hs(Je);Je&&"auth/network-request-failed"==Je.code?p.a(an):(p.m(),fo(t,Le,x,an))}},se)}(t,Je,x,se)},Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je)}else fo(t,p)},ne(eh,Ti),eh.prototype.v=function(){var t=this;uo(this,this.l(),function(){t.i()}),uo(this,$s(this,"firebaseui-id-trouble-getting-email-link"),function(){t.u()}),this.l().focus(),Ti.prototype.v.call(this)},eh.prototype.o=function(){this.i=this.u=null,Ti.prototype.o.call(this)},wt(eh.prototype,{l:Do}),Ns.emailLinkSignInSent=function(t,p,x,se,Le){var Je=new eh(x,function(){Je.m(),ir("emailNotReceived",t,p,x,se,Le)},function(){Je.m(),se()},Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je)},ne(al,Ti),al.prototype.v=function(){this.w(this.l,this.i),this.u().focus(),Ti.prototype.v.call(this)},al.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(al.prototype,{u:Aa,B:Do,w:Ma}),Ns.emailMismatch=function(t,p,x){var se=qa(cr(t));if(se){var Le=new al(x.user.email,se.g,function(){var Je=Le;yl(cr(t)),Zu(t,Je,x)},function(){var Je=x.credential.providerId,an=Zs(Le);Le.m(),ir(se.a?"federatedLinking":"federatedSignIn",t,an,se.g,Je)},Ko(gi(t)),Go(gi(t)));Le.render(p),Cs(t,Le)}else fo(t,p)},ne(Ta,Ti),Ta.prototype.v=function(){var t=this;uo(this,this.u(),function(){t.i()}),uo(this,this.Da(),function(){t.l()}),this.u().focus(),Ti.prototype.v.call(this)},Ta.prototype.Da=function(){return $s(this,"firebaseui-id-resend-email-link")},Ta.prototype.o=function(){this.i=this.l=null,Ti.prototype.o.call(this)},wt(Ta.prototype,{u:Do}),Ns.emailNotReceived=function(t,p,x,se,Le){var Je=new Ta(function(){cp(t,Je,x,se,function(an){an=Hs(an),Je.a(an)},Le)},function(){Je.m(),fo(t,p,x)},Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je)},ne(Zd,Ti),Zd.prototype.v=function(){this.u(this.i),this.l().focus(),Ti.prototype.v.call(this)},Zd.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(Zd.prototype,{l:Aa,u:Ma}),Ns.federatedLinking=function(t,p,x,se,Le){var Je=qa(cr(t));if(Je&&Je.a){var an=new Zd(x,Gh(gi(t),se),function(){zd(t,an,se,x)},Ko(gi(t)),Go(gi(t)));an.render(p),Cs(t,an),Le&&an.a(Le)}else fo(t,p)},Ns.federatedRedirect=function(t,p,x){var se=new cd;se.render(p),Cs(t,se),zd(t,se,p=Ca(gi(t))[0],x)},Ns.federatedSignIn=function(t,p,x,se,Le){var Je=new Zd(x,Gh(gi(t),se),function(){zd(t,Je,se,x)},Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je),Le&&Je.a(Le)},Ns.passwordLinking=function(t,p,x){var se=qa(cr(t));yl(cr(t));var Le=se&&se.a;if(Le){var Je=new nd(x,function(){!function Pg(t,p,x,se){var Le=p.u(
1);Le?os(t,p.I(ut(t.Xb,t),[x,Le],function(Je){return Je=Je.user.linkWithCredential(se).then(function(an){return Zu(t,p,{user:an.user,credential:se,operationType:an.operationType,additionalUserInfo:an.additionalUserInfo})}),os(t,Je),Je},function(Je){if(!Je.name||"cancel"!=Je.name)switch(Je.code){case"auth/wrong-password":Zo(p.i(),!1),ea(p.B(),Hs(Je));break;case"auth/too-many-requests":p.a(Hs(Je));break;default:pa("signInWithEmailAndPassword: "+Je.message,void 0),p.a(Hs(Je))}})):p.i().focus()}(t,Je,x,Le)},function(){Je.m(),ir("passwordRecovery",t,p,x)},Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je)}else fo(t,p)},ne(ud,Ti),ud.prototype.v=function(){this.B(),this.H(this.l,this.u),Da(this.i())||this.i().focus(),Zh(this,this.i(),this.l),Ti.prototype.v.call(this)},ud.prototype.o=function(){this.u=this.l=null,Ti.prototype.o.call(this)},wt(ud.prototype,{i:Sl,w:Vl,B:Ah,M:Vc,j:Hc,U:Aa,P:Do,H:Ma}),Ns.passwordRecovery=function(t,p,x,se,Le){var Je=new ud(function(){!function th(t,p){var x=p.j();if(x){var se=Zs(p);os(t,p.I(ut(Bs(t).sendPasswordResetEmail,Bs(t)),[x],function(){p.m();var Le=new Gc(x,function(){Le.m(),fo(t,se)},Ko(gi(t)),Go(gi(t)));Le.render(se),Cs(t,Le)},function(Le){Zo(p.i(),!1),ea(p.w(),Hs(Le))}))}else p.i().focus()}(t,Je)},se?void 0:function(){Je.m(),fo(t,p)},x,Ko(gi(t)),Go(gi(t)));Je.render(p),Cs(t,Je),Le&&Je.a(Le)},Ns.passwordSignIn=function(t,p,x,se){var Le=new Dc(function(){!function rd(t,p){var x=p.j(),se=p.u();if(x)if(se){var Le=_().auth.EmailAuthProvider.credential(x,se);os(t,p.I(ut(t.bc,t),[x,se],function(Je){return Zu(t,p,{user:Je.user,credential:Le,operationType:Je.operationType,additionalUserInfo:Je.additionalUserInfo})},function(Je){if(!Je.name||"cancel"!=Je.name)switch(Je.code){case"auth/email-already-in-use":break;case"auth/email-exists":Zo(p.l(),!1),ea(p.U(),Hs(Je));break;case"auth/too-many-requests":case"auth/wrong-password":Zo(p.i(),!1),ea(p.B(),Hs(Je));break;default:pa("verifyPassword: "+Je.message,void 0),p.a(Hs(Je))}}))}else p.i().focus();else p.l().focus()}(t,Le)},function(){var Je=Le.M();Le.m(),ir("passwordRecovery",t,p,Je)},x,Ko(gi(t)),Go(gi(t)),se);Le.render(p),Cs(t,Le)},ne(Du,Ti),Du.prototype.v=function(){this.ea(),this.B&&this.Ja(),this.ua(),this.pa(this.w,this.H),this.B?(Xh(this,this.i(),this.u()),Xh(this,this.u(),this.l())):Xh(this,this.i(),this.l()),this.w&&Zh(this,this.l(),this.w),Da(this.i())?this.B&&!Da(this.u())?this.u().focus():this.l().focus():this.i().focus(),Ti.prototype.v.call(this)},Du.prototype.o=function(){this.H=this.w=null,Ti.prototype.o.call(this)},wt(Du.prototype,{i:Sl,U:Vl,ea:Ah,jb:Vc,j:Hc,u:Lf,Bc:xh,Ja:function(){var t=Lf.call(this),p=xh.call(this);qh(this,t,function(){ol(p)&&(Zo(t,!0),ic(p))})},M:function(){var t=Lf.call(this),p=xh.call(this),x=Da(t);return Zo(t,x=!/^[\s\xa0]*$/.test(null==x?"":String(x))),x?(ic(p),p=!0):(ea(p,Br("Enter your account name").toString()),p=!1),p?Dn(Da(t)):null},l:ad,ba:qd,lb:hp,ua:Qd,P:Xd,Nb:Aa,Mb:Do,pa:Ma}),Ns.passwordSignUp=function(t,p,x,se,Le,Je){var Tn=new Du(mu(gi(t)),function(){!function gg(t,p){var x=mu(gi(t)),se=p.j(),Le=null;x&&(Le=p.M());var Je=p.P();if(se){if(x){if(!Le)return void p.u().focus();Le=kt(Le)}if(Je){var an=_().auth.EmailAuthProvider.credential(se,Je);os(t,p.I(ut(t.Yb,t),[se,Je],function(Tn){var di={user:Tn.user,credential:an,operationType:Tn.operationType,additionalUserInfo:Tn.additionalUserInfo};return x?(Tn=Tn.user.updateProfile({displayName:Le}).then(function(){return Zu(t,p,di)}),os(t,Tn),Tn):Zu(t,p,di)},function(Tn){if(!Tn.name||"cancel"!=Tn.name){var di=id(Tn);switch(Tn=Hs(di),di.code){case"auth/email-already-in-use":return function ra(t,p,x,se){function Le(){var an=Hs(se);Zo(p.i(),!1),ea(p.U(),an),p.i().focus()}var Je=Bs(t).fetchSignInMethodsForEmail(x).then(function(an){an.length?Le():(an=Zs(p),p.m(),ir("passwordRecovery",t,an,x,!1,mn().toString()))},function(){Le()});return os(t,Je),Je}(t,p,se,di);case"auth/too-many-requests":Tn=Br("Too many account requests are coming from your IP address. Try again in a few minutes.").toString();case"auth/operation-not-allowed":case"auth/weak-password":Zo(p.l(),!1),ea(p.ba(),Tn);break;case"auth/admin-restricted-operation":ua(gi(t))?(Tn=Zs(p),p.m(),ir("handleUnauthorizedUser",t,Tn,se,_().auth.EmailAuthProvider.PROVIDER_ID)):p.a(Tn);break;default:pa(di="setAccountInfo: "+jo(di),void 0),p.a(Tn)}}}))}
1else p.l().focus()}else p.i().focus()}(t,Tn)},Le?void 0:function an(){Tn.m(),fo(t,p)},x,se,Ko(gi(t)),Go(gi(t)),Je);Tn.render(p),Cs(t,Tn)},ne(ef,Ti),ef.prototype.v=function(){var t=this;this.U(this.jb),yi(this.i,"tick",this.w,!1,this),this.i.start(),uo(this,$s(this,"firebaseui-id-change-phone-number-link"),function(){t.P()}),uo(this,this.Da(),function(){t.M()}),this.Ja(this.l),this.ea(this.l,this.H),this.u().focus(),Ti.prototype.v.call(this)},ef.prototype.o=function(){this.M=this.H=this.l=this.P=null,_n(this.i),$e(this.i,"tick",this.w),this.i=null,Ti.prototype.o.call(this)},ef.prototype.w=function(){--this.B,0<this.B?this.U(this.B):(_n(this.i),$e(this.i,"tick",this.w),this.ua(),this.lb())},wt(ef.prototype,{u:_p,pa:Jd,Ja:function(t){var p=_p.call(this),x=Jd.call(this);qh(this,p,function(){ol(x)&&(Zo(p,!0),ic(x))}),t&&xd(this,p,function(){t()})},ba:function(){var t=Dn(Da(_p.call(this))||"");return/^\d{6}$/.test(t)?t:null},Fb:zp,U:function(t){yr(zp.call(this),Br("Resend code in "+(9<t?"0:":"0:0")+t).toString())},ua:function(){ic(this.Fb())},Da:function(){return $s(this,"firebaseui-id-resend-link")},lb:function(){ea(this.Da())},Nb:Aa,Mb:Do,ea:Ma}),Ns.phoneSignInFinish=function(t,p,x,se,Le,Je){var an=new ef(function(){an.m(),ir("phoneSignInStart",t,p,x)},function(){!function Wp(t,p,x,se){function Le(an){p.u().focus(),Zo(p.u(),!1),ea(p.pa(),an)}var Je=p.ba();Je?(p.$("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",Br("Verifying...").toString()),os(t,p.I(ut(se.confirm,se),[Je],function(an){p.h(),p.$("firebaseui-icon-done",Br("Verified!").toString());var Tn=setTimeout(function(){p.h(),p.m();var di={user:cl(t).currentUser,credential:null,operationType:an.operationType,additionalUserInfo:an.additionalUserInfo};Zu(t,p,di,!0)},1e3);os(t,function(){p&&p.h(),clearTimeout(Tn)})},function(an){if(an.name&&"cancel"==an.name)p.h();else{var Tn=id(an);switch(an=Hs(Tn),Tn.code){case"auth/credential-already-in-use":p.h();break;case"auth/code-expired":Tn=Zs(p),p.h(),p.m(),ir("phoneSignInStart",t,Tn,x,an);break;case"auth/missing-verification-code":case"auth/invalid-verification-code":p.h(),Le(an);break;default:p.h(),p.a(an)}}}))):Le(Br("Wrong code. Try again.").toString())}(t,an,x,Le)},function(){an.m(),fo(t,p)},function(){an.m(),ir("phoneSignInStart",t,p,x)},fu(x),se,Ko(gi(t)),Go(gi(t)));an.render(p),Cs(t,an),Je&&an.a(Je)};var Yp=!(qr||dr("Safari")&&!(Qs()||dr("Coast")||dr("Opera")||dr("Edge")||dr("Firefox")||dr("FxiOS")||dr("Silk")||dr("Android")));function tf(t,p){return/-[a-z]/.test(p)?null:Yp&&t.dataset?!dr("Android")||Qs()||dr("Firefox")||dr("FxiOS")||dr("Opera")||dr("Silk")||p in t.dataset?void 0===(t=t.dataset[p])?null:t:null:t.getAttribute("data-"+String(p).replace(/([A-Z])/g,"-$1").toLowerCase())}function Kp(t,p,x){var se=this;t=yt(Od,{items:t},null,this.s),Dh.call(this,t,!0,!0),x&&(x=function Ih(t,p){t=(t||document).getElementsByTagName("BUTTON");for(var x=0;x<t.length;x++)if(tf(t[x],"listboxid")===p)return t[x];return null}(t,x))&&(x.focus(),function Ad(t,p){var x=(p=p||ts(document))||ts(document),se=Md(t),Le=Md(x);if(!qr||9<=Number(vr)){an=Bl(x,"borderLeftWidth");var Je=Bl(x,"borderRightWidth");Tn=Bl(x,"borderTopWidth"),di=Bl(x,"borderBottomWidth"),Je=new nc(parseFloat(Tn),parseFloat(Je),parseFloat(di),parseFloat(an))}else{var an=Va(x,"borderLeft");Je=Va(x,"borderRight");var Tn=Va(x,"borderTop"),di=Va(x,"borderBottom");Je=new nc(Tn,Je,di,an)}x==ts(document)?(an=se.a-x.scrollLeft,se=se.g-x.scrollTop,!qr||10<=Number(vr)||(an+=Je.left,se+=Je.top)):(an=se.a-Le.a-Je.left,se=se.g-Le.g-Je.top),Le=t.offsetWidth,Je=t.offsetHeight,Tn=Wr&&!Le&&!Je,t=ee(Le)&&!Tn||!t.getBoundingClientRect?new hi(Le,Je):new hi((t=jc(t)).right-t.left,t.bottom-t.top),Le=x.clientHeight-t.height,Je=x.scrollLeft,Tn=x.scrollTop,x=new pi(Je+=Math.min(an,Math.max(an-(x.clientWidth-t.width),0)),Tn+=Math.min(se,Math.max(se-Le,0))),p.scrollLeft=x.a,p.scrollTop=x.g}(x,t)),uo(this,t,function(Le){(Le=(Le=Rr(Le.target,"firebaseui-id-list-box-dialog-button"))&&tf(Le,"listboxid"))&&(Yr.call(se),p(Le))})}function $c(){return $s(this,"firebaseui-id-phone-number")}function mg(){return $s(this,"firebaseui-id-country-selector")}function Nf(){return $s(this,"firebaseui-id-phone-number-error")}function ll(t,p){var Le,x=t.a,se=$p("1-US-0",x);if(!(Le=p&&$p(p,x)?p:se?"1-US-0":0<x.length?x[0].c:null))throw Error("No available default country");za.call(this,Le,t)}function $p(t,p){return!(!(t=Nc(t))||!tt(p,t))}function vp(t){return"firebaseui-flag-"+t.f}function qp(t){var p=this;Kp.call(this,function _g(t){return t.map(function(p){return{id:p.c,Ma:"firebaseui-flag "+vp(p),label:p.name+" \u200e+"+p.b}})}(t.a),function(x){za.call(p,x,t,!0),p.O().focus()},this.Ba)}function za(t,p,x){var se=Nc(t);se&&(x&&(p=Ba(p,x=Dn(Da($c.call(this))||""))).length&&p[0].b!=se.b&&(x="+"+se.b+x.substr(p[0].b.length+1),xp($c.call(this),x)),p=Nc(this.Ba),this.Ba=t,t=$s(this,"firebaseui-id-country-selector-flag"),p&&El(t,vp(p)),tc(t,vp(se)),yr($s(this,"firebaseui-id-country-selector-code"),"\u200e+"+se.b))}function el(t,p,x,se,Le,Je,an,Tn,di,Bi){Ti.call(this,sp,{Gb:p,Aa:di||null,Va:!!x,ia:!!Je},Bi,"phoneSignInStart",{F:se,D:Le}),this.H=Tn||null,this.M=p,this.l=t,this.w=x||null,this.pa=an||null}function yp(t,p,x,se){try{var Le=p.U(yu)}catch(Je){return}Le?vu?(p.$("mdl-spinner mdl-spinner--single-color mdl-js-spinner is-active firebaseui-progress-dialog-loading-icon",Br("Verifying...").toString()),os(t,p.I(ut(t.cc,t),[fu(Le),x],function(Je){var an=Zs(p);p.$("firebaseui-icon-done",Br("Code sent!").toString());var Tn=setTimeout(function(){p.h(),p.m(),ir("phoneSignInFinish",t,an,Le,15,Je)},1e3);os(t,function(){p&&p.h(),clearTimeout(Tn)})},function(Je){if(p.h(),!Je.name||"cancel"!=Je.name){grecaptcha.reset(sl),vu=null;var an=Je&&Je.message||"";if(Je.code)switch(Je.code){case"auth/too-many-requests":an=Br("This phone number has been used too many times").toString();break;case"auth/invalid-phone-number":case"auth/missing-phone-number":return p.O().focus(),void ea(p.B(),Te().toString());case"auth/admin-restricted-operation":if(ua(gi(t)))return Je=Zs(p),p.m(),void ir("handleUnauthorizedUser",t,Je,fu(Le),_().auth.PhoneAuthProvider.PROVIDER_ID);an=Hs(Je);break;default:an=Hs(Je)}p.a(an)}}))):Cc?ea(p.u(),Br("Solve the reCAPTCHA").toString()):!Cc&&se&&p.i().click():(p.O().focus(),ea(p.B(),Te().toString()))}function hd(t,p,x,se,Le){Ti.call(this,rp,{Sb:p},Le,"providerSignIn",{F:x,D:se}),this.i=t}function dd(t,p,x,se,Le,Je,an){Ti.call(this,tp,{email:x,Va:!!p,ia:!!Je},an,"signIn",{F:se,D:Le}),this.i=t,this.u=p}function nf(t,p,x,se,Le,Je,an){Ti.call(this,Tg,{kc:t,yb:x,Eb:!!se},an,"unauthorizedUser",{F:Le,D:Je}),this.l=p,this.i=se}function Bf(t,p,x,se,Le,Je){Ti.call(this,Fd,{email:t},Je,"unsupportedProvider",{F:se,D:Le}),this.l=p,this.i=x}function Sc(t,p){this.$=!1;var x=bp(p);if(rf[x])throw Error('An AuthUI instance already exists for the key "'+x+'"');rf[x]=this,this.a=t,this.u=null,this.Y=!1,vg(this.a),this.h=_().initializeApp({apiKey:t.app.options.apiKey,authDomain:t.app.options.authDomain},t.app.name+"-firebaseui-temp").auth(),(t=t.emulatorConfig)&&this.h.useEmulator(t.protocol+"://"+t.host+(null===(x=t.port)?"":":"+x),t.options),vg(this.h),this.h.setPersistence&&this.h.setPersistence(_().auth.Auth.Persistence.SESSION),this.oa=p,this.ca=new Hh,this.g=this.T=this.i=this.J=this.O=null,this.s=[],this.Z=!1,this.l=fa.Xa(),this.j=this.C=null,this.da=this.A=!1}function vg(t){t&&t.INTERNAL&&t.INTERNAL.logFramework&&t.INTERNAL.logFramework("FirebaseUI-web")}ne(el,Ti),el.prototype.v=function(){this.ea(this.pa,this.H),this.P(this.l,this.w||void 0),this.M||Xh(this,this.O(),this.i()),Zh(this,this.i(),this.l),this.O().focus(),Ff(this.O(),(this.O().value||"").length),Ti.prototype.v.call(this)},el.prototype.o=function(){this.w=this.l=null,Ti.prototype.o.call(this)},wt(el.prototype,{Cb:Eu,O:$c,B:Nf,ea:function(t,p,x){var se=this,Le=$c.call(this),Je=mg.call(this),an=Nf.call(this),Tn=t||du,di=Tn.a;if(0==di.length)throw Error("No available countries provided.");ll.call(se,Tn,p),uo(this,Je,function(){qp.call(se,Tn)}),qh(this,Le,function(){ol(an)&&(Zo(Le,!0),ic(an));var Bi=Dn(Da(Le)||""),e=Nc(this.Ba),f=Ba(Tn,Bi);Bi=$p("1-US-0",di),f.length&&f[0].b!=e.b&&za.call(se,"1"==(e=f[0]).b&&Bi?"1-US-0":e.c,Tn)}),x&&xd(this,Le,function(){x()})},U:function(t){var p=Dn(Da($c.call(this))||""),x=(t=t||du).a,se=Ba(du,p);if(se.length&&!tt(x,se[0]))throw xp($c.call(this)),$c.call(this).focus(),ea(Nf.call(this),Br("The country code provided is not supported.").toString()),Error("The country code provided is not supported.");return x=Nc(this.Ba),se.length&&se[0].b!=x.b&&za.call(this,se[0].c,t),se.length&&(p=p.substr(se[0].b.length+1)),p?new Zl(this.Ba,p):null},Ja:mg,ba:function(){return $s(this,"firebaseui-recaptcha-container")},u:function(){return $s(this,"firebaseui-id-recaptcha-error")},i:Aa,ua:Do,P:Ma}),Ns.phoneSignInStart=function(t,p,x,se){var Le=function Vu(t){var p=null;if(Bc(t).forEach(function(se){se.provider==_().auth.PhoneAuthProvider.PROVIDER_ID&&ke(se.recaptchaParameters)&&!Array.isArray(se.recaptchaParameters)&&(p=Ue(se.recaptchaParameters))}),p){var x=[];
1Sd.forEach(function(se){void 0!==p[se]&&(x.push(se),delete p[se])}),x.length&&Ol('The following provided "recaptchaParameters" keys are not allowed: '+x.join(", "))}return p}(gi(t))||{};vu=null,Cc=!(Le&&"invisible"===Le.size);var Je=kf(t),an=function ec(t){var p=(t=Xa(t,_().auth.PhoneAuthProvider.PROVIDER_ID))&&t.defaultCountry||null;p=p&&Qa(p);var x=null;return t&&"string"==typeof t.loginHint&&(x=bc(t.loginHint)),p&&p[0]||x&&Nc(x.a)||null}(gi(t)),Tn=Je?function Uc(t){var p=null;return(t=Xa(t,_().auth.PhoneAuthProvider.PROVIDER_ID))&&"string"==typeof t.loginHint&&(p=bc(t.loginHint)),t&&t.defaultNationalNumber||p&&p.Aa||null}(gi(t)):null;an=x&&x.a||an&&an.c||null,x=x&&x.Aa||Tn,(Tn=gu(gi(t)))&&Xl(Tn),yu=Tn?new hu(gu(gi(t))):du;var di=new el(function(e){yp(t,di,Bi,!(!e||!e.keyCode))},Cc,Je?null:function(){Bi.clear(),di.m(),fo(t,p)},Ko(gi(t)),Go(gi(t)),Je,yu,an,x);di.render(p),Cs(t,di),se&&di.a(se),Le.callback=function(e){di.u()&&ic(di.u()),vu=e,Cc||yp(t,di,Bi)},Le["expired-callback"]=function(){vu=null};var Bi=new(_().auth.RecaptchaVerifier)(Cc?di.ba():di.i(),Le,cl(t).app);os(t,di.I(ut(Bi.render,Bi),[],function(e){sl=e},function(e){e.name&&"cancel"==e.name||(e=Hs(e),di.m(),fo(t,p,void 0,e))}))},Ns.prefilledEmailSignIn=function(t,p,x){var se=new cd;se.render(p),Cs(t,se),os(t,se.I(ut(Bs(t).fetchSignInMethodsForEmail,Bs(t)),[x],function(Le){se.m();var Je=!(!If(t)||!ds(t));Wd(t,p,Le,x,void 0,Je)},function(Le){Le=Hs(Le),se.m(),ir("signIn",t,p,x,Le)}))},ne(hd,Ti),hd.prototype.v=function(){this.l(this.i),Ti.prototype.v.call(this)},hd.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(hd.prototype,{l:function(t){function p(an){t(an)}for(var x=this.g?Pi("firebaseui-id-idp-button",this.g||this.s.a):[],se=0;se<x.length;se++){var Le=x[se];uo(this,Le,Ge(p,tf(Le,"providerId")))}}}),Ns.providerSignIn=function(t,p,x,se){var Le=new hd(function(Je){Je==_().auth.EmailAuthProvider.PROVIDER_ID?(Le.m(),zc(t,p,se)):Je==_().auth.PhoneAuthProvider.PROVIDER_ID?(Le.m(),ir("phoneSignInStart",t,p)):"anonymous"==Je?function Og(t,p){os(t,p.I(ut(t.$b,t),[],function(x){return p.m(),Zu(t,p,x,!0)},function(x){x.name&&"cancel"==x.name||(pa("ContinueAsGuest: "+x.code,void 0),x=Hs(x),p.a(x))}))}(t,Le):zd(t,Le,Je,se),Gs(t),t.l.cancel()},Ed(gi(t)),Ko(gi(t)),Go(gi(t)));Le.render(p),Cs(t,Le),x&&Le.a(x),function Ep(t){Gs(t);try{Ra(t.l,zh(gi(t)),function yg(t){var p;return Gs(t),(p=t.Z)||(p=!(!(t=_f(t=gi(t),_().auth.GoogleAuthProvider.PROVIDER_ID))||"select_account"!==t.prompt)),p}(t)).then(function(p){return!!t.g&&function jp(t,p,x){if(x&&x.credential&&x.clientId===zh(gi(t))){if(Yh(gi(t),_().auth.GoogleAuthProvider.PROVIDER_ID).length){try{var Le=JSON.parse(atob(x.credential.split(".")[1])).email}catch(Je){}return zd(t,p,_().auth.GoogleAuthProvider.PROVIDER_ID,Le),No(!0)}return function se(Je){var an=!1;return Je=p.I(ut(t.ac,t),[Je],function(Tn){var di=Zs(p);p.m(),ir("callback",t,di,No(Tn)),an=!0},function(Tn){if(!(Tn.name&&"cancel"==Tn.name||Tn&&"auth/credential-already-in-use"==Tn.code))if(Tn&&"auth/email-already-in-use"==Tn.code&&Tn.email&&Tn.credential){var di=Zs(p);p.m(),ir("callback",t,di,Al(Tn))}else Tn&&"auth/admin-restricted-operation"==Tn.code&&ua(gi(t))?(Tn=Zs(p),p.m(),ir("handleUnauthorizedUser",t,Tn,null,_().auth.GoogleAuthProvider.PROVIDER_ID)):(Tn=Hs(Tn),p.a(Tn))}),os(t,Je),Je.then(function(){return an},function(){return!1})}(_().auth.GoogleAuthProvider.credential(x.credential))}return x&&p.a(Br("The selected credential for the authentication provider is not supported!").toString()),No(!1)}(t,t.g,p)})}catch(p){}}(t)},Ns.sendEmailLinkForSignIn=function(t,p,x,se){var Le=new Yd;Le.render(p),Cs(t,Le),cp(t,Le,x,se,function(Je){Le.m(),Je&&"auth/admin-restricted-operation"==Je.code&&ua(gi(t))?ir("handleUnauthorizedUser",t,p,x,_().auth.EmailAuthProvider.PROVIDER_ID):(Je=Hs(Je),ir("signIn",t,p,x,Je))})},ne(dd,Ti),dd.prototype.v=function(){this.w(this.i),this.B(this.i,this.u||void 0),this.l().focus(),Ff(this.l(),(this.l().value||"").length),Ti.prototype.v.call(this)},dd.prototype.o=function(){this.u=this.i=null,Ti.prototype.o.call(this)},wt(dd.prototype,{l:Sl,M:Vl,w:Ah,H:Vc,j:Hc,U:Aa,P:Do,B:Ma}),Ns.signIn=function(t,p,x,se){var Le=If(t),Je=new dd(function(){var an=Je,Tn=an.j()||"";Tn&&pg(t,an,Tn)},Le?null:function(){Je.m(),fo(t,p,x)},x,Ko(gi(t)),Go(gi(t)),Le);Je.render(p),Cs(t,Je),se&&Je.a(se)},ne(nf,Ti),nf.prototype.v=function(){var t=this,p=$s(this,"firebaseui-id-unauthorized-user-help-link");this.i&&p&&uo(this,p,function(){t.i()}),uo(this,this.u(),function(){t.l()}),this.u().focus(),Ti.prototype.v.call(this)},nf.prototype.o=function(){this.i=this.l=null,Ti.prototype.o.call(this)},wt(nf.prototype,{u:Do}),Ns.handleUnauthorizedUser=function(t,p,x,se){function Le(){fo(t,p)}se===_().auth.EmailAuthProvider.PROVIDER_ID?Le=function(){zc(t,p)}:se===_().auth.PhoneAuthProvider.PROVIDER_ID&&(Le=function(){ir("phoneSignInStart",t,p)});var Je=null,an=null;se===_().auth.EmailAuthProvider.PROVIDER_ID&&vh(gi(t))?(Je=function pu(t){return(t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))&&t.disableSignUp&&t.disableSignUp.adminEmail||null}(gi(t)),an=function Hu(t){if((t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))&&t.disableSignUp){var p=t.disableSignUp.helpLink||null;if(p&&"string"==typeof p)return function(){Fh(p)}}return null}(gi(t))):ua(gi(t))&&(Je=function Ua(t){return(t=t.a.get("adminRestrictedOperation"))&&t.adminEmail?t.adminEmail
1:null}(gi(t)),an=function Wh(t){if(t=t.a.get("adminRestrictedOperation")||null){var p=t.helpLink||null;if(p&&"string"==typeof p)return function(){Fh(p)}}return null}(gi(t)));var Tn=new nf(x,function(){Tn.m(),Le()},Je,an,Ko(gi(t)),Go(gi(t)));Tn.render(p),Cs(t,Tn)},ne(Bf,Ti),Bf.prototype.v=function(){this.w(this.l,this.i),this.u().focus(),Ti.prototype.v.call(this)},Bf.prototype.o=function(){this.i=this.l=null,Ti.prototype.o.call(this)},wt(Bf.prototype,{u:Aa,B:Do,w:Ma}),Ns.unsupportedProvider=function(t,p,x){var se=new Bf(x,function(){se.m(),ir("passwordRecovery",t,p,x)},function(){se.m(),fo(t,p,x)},Ko(gi(t)),Go(gi(t)));se.render(p),Cs(t,se)};var rf={};function bp(t){return t||"[DEFAULT]"}function sf(t){return Gs(t),t.i||(t.i=So(t,function(p){return p&&!qa(cr(t))?No(cl(t).getRedirectResult().then(function(x){return x},function(x){if(x&&"auth/email-already-in-use"==x.code&&x.email&&x.credential)throw x;return Su(t,x)})):No(Bs(t).getRedirectResult().then(function(x){return Jl(gi(t))&&!x.user&&t.j&&!t.j.isAnonymous?cl(t).getRedirectResult():x}))})),t.i}function Cs(t,p){Gs(t),t.g=p}var af=null;function Bs(t){return Gs(t),t.h}function cl(t){return Gs(t),t.a}function cr(t){return Gs(t),t.oa}function ds(t){return Gs(t),t.O?t.O.emailHint:void 0}function Uf(t){return"signIn"===((t=new zi(t)).a.a.get(or.ub)||null)&&!!t.a.a.get(or.$a)}function fd(t,p,x,se){Gs(t),void 0!==t.a.languageCode&&(t.u=t.a.languageCode);var Le="en".replace(/_/g,"-");t.a.languageCode=Le,t.h.languageCode=Le,t.Y=!0,void 0!==t.a.tenantId&&(t.h.tenantId=t.a.tenantId),t.ib(x),t.O=se||null;var Je=R.document;t.C?t.C.then(function(){"complete"==Je.readyState?jf(t,p):Er(window,"load",function(){jf(t,p)})}):"complete"==Je.readyState?jf(t,p):Er(window,"load",function(){jf(t,p)})}function jf(t,p){var x=ka(p,"Could not find the FirebaseUI widget element on the page.");if(x.setAttribute("lang","en".replace(/_/g,"-")),af){var se=af;Gs(se),qa(cr(se))&&Ol("UI Widget is already rendered on the page and is pending some user interaction. Only one widget instance can be rendered per page. The previous instance has been automatically reset."),af.reset()}if(af=t,t.T=x,function Hf(t,p){t.L=null,t.J=new u(p),t.J.register(),yi(t.J,"pageEnter",function(x){if(t.L!=(x=x&&x.pageId)){var se=gi(t);(se=ja(se).uiChanged||null)&&se(t.L,x),t.L=x}})}(t,x),Ea(new su)&&Ea(new Uh)){p=ka(p,"Could not find the FirebaseUI widget element on the page."),x=(x=Xn(x=Oa(),se=Vh(gi(t).a,"queryParameterForSignInSuccessUrl")))?Xs(no(x)).toString():null;e:{se=Oa();var Le=Gu(gi(t));for(Je in se=Xn(se,Le)||"",Eh)if(Eh[Je].toLowerCase()==se.toLowerCase()){var Je=Eh[Je];break e}Je="callback"}switch(Je){case"callback":x&&(Je=cr(t),rl(au,x,Je)),t.nb()?ir("callback",t,p):fo(t,p,ds(t));break;case"resetPassword":ir("passwordReset",t,p,sd(),Vp());break;case"recoverEmail":ir("emailChangeRevocation",t,p,sd());break;case"revertSecondFactorAddition":ir("revertSecondFactorAddition",t,p,sd());break;case"verifyEmail":ir("emailVerification",t,p,sd(),Vp());break;case"verifyAndChangeEmail":ir("verifyAndChangeEmail",t,p,sd(),Vp());break;case"signIn":ir("emailLinkSignInCallback",t,p,Oa()),lf();break;case"select":x&&(Je=cr(t),rl(au,x,Je)),fo(t,p);break;default:throw Error("Unhandled widget operation.")}(p=ja(p=gi(t)).uiShown||null)&&p()}else p=ka(p,"Could not find the FirebaseUI widget element on the page."),(Je=new fg(Br("The browser you are using does not support Web Storage. Please try again in a different browser.").toString())).render(p),Cs(t,Je);p=t.g&&"blank"==t.g.Ga&&Wu(gi(t)),lu(cr(t))&&!p&&(wp(t,(p=lu(cr(t))).a),Vo(ou,cr(t)))}function So(t,p){if(t.A)return p(ul(t));if(os(t,function(){t.A=!1}),Jl(gi(t))){var x=new _s(function(se){os(t,t.a.onAuthStateChanged(function(Le){t.j=Le,t.A||(t.A=!0,se(p(ul(t))))}))});return os(t,x),x}return t.A=!0,p(null)}function ul(t){return Gs(t),Jl(gi(t))&&t.j&&t.j.isAnonymous?t.j:null}function os(t,p){if(Gs(t),p){t.s.push(p);var x=function(){!function Et(t,p){!function Jt(t,p){for(var x=B(t)?t.split(""):t,se=t.length-1;0<=se;--se)se in x&&p.call(void 0,x[se],se,t)}(t,function(se,Le){p.call(void 0,se,Le,t)&&un(t,Le)})}(t.s,function(se){return se==p})};"function"!=typeof p&&p.then(x,x)}}function Vf(t){void 0!==t.a.languageCode&&t.Y&&(t.Y=!1,t.a.languageCode=t.u)}function wp(t,p){t.a.tenantId=p,t.h.tenantId=p}function gi(t){return Gs(t),t.ca}function Gs(t){if(t.$)throw Error("AuthUI instance is deleted!")}function lf(){var t=Oa();if(Uf(t)){for(var p in t=new zi(t),or)or.hasOwnProperty(p)&&Un(t.a.a,or[p]);p={state:"signIn",mode:"emailLink",operation:"clear"},R.history&&R.history.replaceState&&R.history.replaceState(p,R.document.title,t.toString())}}function nh(t){return Gs(t),Bs(t).signOut()}function Su(t,p,x){if(Gs(t),p&&p.code&&("auth/email-already-in-use"==p.code||"auth/credential-already-in-use"==p.code)){var se=bh(gi(t));return No().then(function(){return se(new Yn("anonymous-upgrade-merge-conflict",null,x||p.credential))}).then(function(){throw t.g&&(t.g.m(),t.g=null),p})}return Al(p)}function pd(t,p,x,se){Ti.call(this,Sh,void 0,se,"providerMatchByEmail",{F:p,D:x}),this.i=t}function gd(t,p,x,se,Le){Ti.call(this,Sf,{ec:p},Le,"selectTenant",{F:x,D:se}),this.i=t}function Zp(t){Ti.call(this,jl,void 0,t,"spinner")}function ih(t){for(var p in this.a=new mf,Xo(this.a,"authDomain"),Xo(this.a,"displayMode",uf),Xo(this.a,"tenants"),Xo(this.a,"callbacks"),Xo(this.a,"tosUrl"),Xo(this.a,"privacyPolicyUrl"),t)if(t.hasOwnProperty(p))try{Uu(this.a,p,t[p])}catch(x){pa('Invalid config: "'+p+'"',void 0)}}function cf(t){return t.a.get("callbacks")||{}}function Wf(t){var p=t.a.get("tosUrl")||null;if(t=t.a.get("privacyPolicyUrl")||null,p&&!t&&Ol("Privacy Policy URL is missing, the link will not be displayed."),p&&t){if("function"==typeof p)return p;if("string"==typeof p)return function(){Fh(p)}}return null}function Ac(t){var p=t.a.get("tosUrl")||null,x=t.a.get("privacyPolicyUrl")||null;if(x&&!p&&Ol("Terms of Service URL is missing, the link will not be displayed."),p&&x){if("function"==typeof x)return x;if("string"==typeof x)return function(){Fh(x)}}return null}function gr(t,p){if(!(t=t.a.get("tenants"))||!t.hasOwnProperty(p)&&!t.hasOwnProperty(Au))throw Error("Invalid tenant configuration!")}function xa(t,p,x){if(!(t=t.a.get("tenants")))throw Error("Invalid tenant configuration!");var se=[];if(!(t=t[p]||t[Au]))return pa("Invalid tenant configuration: "+p+" is not configured!",void 0),se;if(!(p=t.signInOptions))throw Error("Invalid tenant configuration: signInOptions are invalid!");return p.forEach(function(Le){if("string"==typeof Le)se.push(Le);else if("string"==typeof Le.provider){var Je=Le.hd;Je&&x?(Je instanceof RegExp?Je:new RegExp("@"+Je.replace(".","\\.")+"$")).test(x)&&se.pu
1sh(Le.provider):se.push(Le.provider)}else pa(Le="Invalid tenant configuration: signInOption "+JSON.stringify(Le)+" is invalid!",void 0)}),se}(Q=Sc.prototype).nb=function(){return Gs(this),!!lu(cr(this))||Uf(Oa())},Q.start=function(t,p){fd(this,t,p)},Q.Db=function(){Gs(this),this.Z=!0},Q.reset=function(){Gs(this);var t=this;this.T&&this.T.removeAttribute("lang"),this.J&&function He(t){var p=g(t.N());Ir[p]&&Ir[p].length&&(function It(t,p){e:{for(var x=t.length,se=B(t)?t.split(""):t,Le=0;Le<x;Le++)if(Le in se&&p.call(void 0,se[Le],Le,t)){p=Le;break e}p=-1}0<=p&&un(t,p)}(Ir[p],function(x){return x==t}),Ir[p].length||delete Ir[p])}(this.J),Vf(this),this.O=null,lf(),Vo(ou,cr(this)),Gs(this),this.l.cancel(),this.i=No({user:null,credential:null}),af==this&&(af=null),this.T=null;for(var p=0;p<this.s.length;p++)"function"==typeof this.s[p]?this.s[p]():this.s[p].cancel&&this.s[p].cancel();this.s=[],yl(cr(this)),this.g&&(this.g.m(),this.g=null),this.L=null,this.h&&(this.C=nh(this).then(function(){t.C=null},function(){t.C=null}))},Q.ib=function(t){Gs(this);var x,p=this.ca;for(x in t)try{Uu(p.a,x,t[x])}catch(se){pa('Invalid config: "'+x+'"',void 0)}ys&&Uu(p.a,"popupMode",!1),gu(p),!this.da&&bl(gi(this))&&(Ol("signInSuccess callback is deprecated. Please use signInSuccessWithAuthResult callback instead."),this.da=!0)},Q.Wb=function(){Gs(this);var t=gi(this),p=Vh(t.a,"widgetUrl");t=Gu(t);for(var Le,x=p.search(xn),se=0,Je=[];0<=(Le=On(p,se,t,x));)Je.push(p.substring(se,Le)),se=Math.min(p.indexOf("&",Le)+1||x,x);Je.push(p.substr(se)),p=Je.join("").replace(Ai,"$1"),(t+=x="="+encodeURIComponent("select"))?(0>(x=p.indexOf("#"))&&(x=p.length),0>(se=p.indexOf("?"))||se>x?(se=x,Le=""):Le=p.substring(se+1,x),x=(p=[p.substr(0,se),Le,p.substr(x)])[1],p[1]=t?x?x+"&"+t:t:x,x=p[0]+(p[1]?"?"+p[1]:"")+p[2]):x=p,gi(this).a.get("popupMode")?(x=x||"about:blank",(t={width:500,height:600,top:0<(t=(window.screen.availHeight-600)/2)?t:0,left:0<(p=(window.screen.availWidth-500)/2)?p:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1}).target=t.target||x.target||"google_popup",t.width=t.width||690,t.height=t.height||500,(t=ro(x,t))&&t.focus()):ti(window.location,x)},Q.Wa=function(){var t=this;return Gs(this),this.h.app.delete().then(function(){var p=bp(cr(t));delete rf[p],t.reset(),t.$=!0})},Q.Ib=function(t,p){Gs(this);var x=this,se=function Lo(){for(var t=32,p=[];0<t;)p.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return p.join("")}();if(!zu(gi(this)))return Al(Error("Email link sign-in should be enabled to trigger email sending."));var Le=function _u(t){if(zu(t)){var p={url:Oa(),handleCodeInApp:!0};(t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))&&"function"==typeof t.emailLinkSignIn&&Lt(p,t.emailLinkSignIn()),t=p.url;var x=Oa();x instanceof mi||(x=gn(x)),t instanceof mi||(t=gn(t));var se=x;x=new mi(se);var Le=!!t.j;Le?fi(x,t.j):Le=!!t.A,Le?x.A=t.A:Le=!!t.h,Le?x.h=t.h:Le=null!=t.C;var Je=t.g;if(Le)Ki(x,t.C);else if(Le=!!t.g)if("/"!=Je.charAt(0)&&(se.h&&!se.g?Je="/"+Je:-1!=(se=x.g.lastIndexOf("/"))&&(Je=x.g.substr(0,se+1)+Je)),".."==Je||"."==Je)Je="";else if(-1!=Je.indexOf("./")||-1!=Je.indexOf("/.")){se=0==Je.lastIndexOf("/",0),Je=Je.split("/");for(var an=[],Tn=0;Tn<Je.length;){var di=Je[Tn++];"."==di?se&&Tn==Je.length&&an.push(""):".."==di?((1<an.length||1==an.length&&""!=an[0])&&an.pop(),se&&Tn==Je.length&&an.push("")):(an.push(di),se=!0)}Je=an.join("/")}return Le?x.g=Je:Le=""!==t.a.toString(),Le?pn(x,vi(t.a)):Le=!!t.s,Le&&(x.s=t.s),p.url=x.toString(),p}return null}(gi(this)),Je=new zi(Le.url);return function hr(t,p){p?t.a.a.set(or.Sa,p):Un(t.a.a,or.Sa)}(Je,se),p&&p.a&&(function Tp(t,p,x){rl($l,fh(t,JSON.stringify(Rl(p))),x)}(se,p,cr(this)),fs(Je,p.a.providerId)),function Wi(t,p){null!==p?t.a.a.set(or.Qa,p?"1":"0"):Un(t.a.a,or.Qa)}(Je,function yh(t){return!(!(t=Xa(t,_().auth.EmailAuthProvider.PROVIDER_ID))||!t.forceSameDevice)}(gi(this))),So(this,function(an){return an&&((an=an.uid)?Je.a.a.set(or.Pa,an):Un(Je.a.a,or.Pa)),Le.url=Je.toString(),Bs(x).sendSignInLinkToEmail(t,Le)}).then(function(){var an=cr(x),Tn={};Tn.email=t,rl(yc,fh(se,JSON.stringify(Tn)),an)},function(an){throw Vo($l,cr(x)),Vo(yc,cr(x)),an})},Q.bc=function(t,p){Gs(this);var x=this;return Bs(this).signInWithEmailAndPassword(t,p).then(function(se){return So(x,function(Le){return Le?nh(x).then(function(){return Su(x,{code:"auth/email-already-in-use"},_().auth.EmailAuthProvider.credential(t,p))}):se})})},Q.Yb=function(t,p){Gs(this);var x=this;return So(this,function(se){if(se){var Le=_().auth.EmailAuthProvider.credential(t,p);return se.linkWithCredential(Le)}return Bs(x).createUserWithEmailAndPassword(t,p)})},Q.ac=function(t){Gs(this);var p=this;return So(this,function(x){return x?x.linkWithCredential(t).then(function(se){return se},function(se){if(se&&"auth/email-already-in-use"==se.code&&se.email&&se.credential)throw se;return Su(p,se,t)}):Bs(p).signInWithCredential(t)})},Q.dc=function(t){Gs(this);var p=this,x=this.i;return this.i=null,So(this,function(se){return se&&!qa(cr(p))?se.linkWithRedirect(t):Bs(p).signInWithRedirect(t)}).then(function(){},function(se){throw p.i=x,se})},Q.cc=function(t,p){Gs(this);var x=this;return So(this,function(se){return se?se.linkWithPhoneNumber(t,p).then(function(Le){return new Oc(Le,function(Je){if("auth/credential-already-in-use"==Je.code)return Su(x,Je);throw Je})}):cl(x).signInWithPhoneNumber(t,p).then(function(Le){return new Oc(Le)})})},Q.$b=function(){return Gs(this),cl(this).signInAnonymously()},Q.Xb=function(t,p){return Gs(this),Bs(this).signInWithEmailAndPassword(t,p)},ne(pd,Ti),pd.prototype.v=function(){this.u(this.i),this.w(this.i),this.l().focus(),Ff(this.l(),(this.l().value||"").length),Ti.prototype.v.call(this)},pd.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},wt(pd.prototype,{l:Sl,H:Vl,u:Ah,B:Vc,j:Hc,M:Aa,w:Ma}),ne(gd,Ti),gd.prototype.v=function(){(function kh(t,p){function x(Tn){p(Tn)}for(var se=t.g?Pi("firebaseui-id-tenant-selection-button",t.g||t.s.a):[],Le=0;Le<se.length;Le++){var Je=se[Le];uo(t,Je,Ge(x,tf(Je,"tenantId")))}})(this,this.i),Ti.prototype.v.call(this)},gd.prototype.o=function(){this.i=null,Ti.prototype.o.call(this)},ne(Zp,Ti);var ha=["immediateFederatedRedirect","privacyPolicyUrl","signInFlow","signInOptions","tosUrl"],uf="optionFirst",Oh={pc:uf,oc:"identifierFirst"},Au="*";function ta(t,p){var x=this;this.s=ka(t),this.a={}
1,Object.keys(p).forEach(function(se){x.a[se]=new ih(p[se])}),this.ob=this.g=this.A=this.h=this.i=this.j=null,Object.defineProperty(this,"languageCode",{get:function(){return this.ob},set:function(se){this.ob=se||null},enumerable:!1})}function Gl(t){t.j&&t.j.reset(),t.mb(),t.g&&t.g.m()}(Q=ta.prototype).Ub=function(t,p){var x=this;Gl(this);var se=t.apiKey;return new _s(function(Le,Je){if(x.a.hasOwnProperty(se)){var an=cf(x.a[se]).selectTenantUiHidden||null;if(function Dp(t){for(var p in t=t.a.get("displayMode"),Oh)if(Oh[p]===t)return Oh[p];return uf}(x.a[se])===uf){var Tn=[];p.forEach(function(e){e=e||"_";var f=x.a[se].a.get("tenants");if(!f)throw Error("Invalid tenant configuration!");(f=f[e]||f[Au])?e={tenantId:"_"!==e?e:null,V:f.fullLabel||null,displayName:f.displayName,za:f.iconUrl,ta:f.buttonColor}:(pa("Invalid tenant configuration: "+e+" is not configured!",void 0),e=null),e&&Tn.push(e)});var di=function(e){e={tenantId:e,providerIds:xa(x.a[se],e||"_")},Le(e)};if(1===Tn.length)return void di(Tn[0].tenantId);x.g=new gd(function(e){Gl(x),an&&an(),di(e)},Tn,Wf(x.a[se]),Ac(x.a[se]))}else x.g=new pd(function(){var e=x.g.j();if(e){for(var f=0;f<p.length;f++){var F=xa(x.a[se],p[f]||"_",e);if(0!==F.length)return e={tenantId:p[f],providerIds:F,email:e},Gl(x),an&&an(),void Le(e)}x.g.a(kn({code:"no-matching-tenant-for-email"}).toString())}},Wf(x.a[se]),Ac(x.a[se]));x.g.render(x.s),(Je=cf(x.a[se]).selectTenantUiShown||null)&&Je()}else{var Bi=Error("Invalid project configuration: API key is invalid!");Bi.code="invalid-configuration",x.pb(Bi),Je(Bi)}})},Q.Pb=function(t,p){if(!this.a.hasOwnProperty(t))throw Error("Invalid project configuration: API key is invalid!");var x=p||void 0;gr(this.a[t],p||"_");try{this.i=_().app(x).auth()}catch(Le){var se=this.a[t].a.get("authDomain");if(!se)throw Error("Invalid project configuration: authDomain is required!");(t=_().initializeApp({apiKey:t,authDomain:se},x)).auth().tenantId=p,this.i=t.auth()}return this.i},Q.Zb=function(t,p){var x=this;return new _s(function(se,Le){function Je(f,F){x.j=new Sc(t),fd(x.j,x.s,f,F)}var an=t.app.options.apiKey;x.a.hasOwnProperty(an)||Le(Error("Invalid project configuration: API key is invalid!"));var Tn=function $o(t,p,x){return t=function rh(t,p){var x=ha,se=void 0===se?{}:se;return gr(t,p),function Cg(t,p,x){return x=void 0===x?{}:x,Object.keys(t).filter(function(se){return p.includes(se)}).reduce(function(se,Le){return se[Le]=t[Le],se},x)}((t=t.a.get("tenants"))[p]||t[Au],x,se)}(t,p),(p=t.signInOptions)&&x&&(p=p.filter(function(se){return x.includes("string"==typeof se?se:se.provider)}),t.signInOptions=p),t}(x.a[an],t.tenantId||"_",p&&p.providerIds);Gl(x),Le={signInSuccessWithAuthResult:function(f){return se(f),!1}};var e,di=cf(x.a[an]).signInUiShown||null,Bi=!1;Le.uiChanged=function(f,F){null===f&&"callback"===F?((f=Xi("firebaseui-id-page-callback",x.s))&&ic(f),x.h=new Zp,x.h.render(x.s)):Bi||null===f&&"spinner"===F||"blank"===F||(x.h&&(x.h.m(),x.h=null),Bi=!0,di&&di(t.tenantId))},Tn.callbacks=Le,Tn.credentialHelper="none",p&&p.email&&(e={emailHint:p.email}),x.j?x.j.Wa().then(function(){Je(Tn,e)}):Je(Tn,e)})},Q.reset=function(){var t=this;return No().then(function(){t.j&&t.j.Wa()}).then(function(){t.j=null,Gl(t)})},Q.Vb=function(){var t=this;this.h||this.A||(this.A=window.setTimeout(function(){Gl(t),t.h=new Zp,t.g=t.h,t.h.render(t.s),t.A=null},500))},Q.mb=function(){window.clearTimeout(this.A),this.A=null,this.h&&(this.h.m(),this.h=null)},Q.Bb=function(){return Gl(this),this.g=new xf,this.g.render(this.s),No()},Q.pb=function(t){var se,p=this,x=kn({code:t.code}).toString()||t.message;Gl(this),t.retry&&"function"==typeof t.retry&&(se=function(){p.reset(),t.retry()}),this.g=new Xu(x,se),this.g.render(this.s)},Q.Rb=function(t){var p=this;return No().then(function(){var x=p.i&&p.i.app.options.apiKey;if(!p.a.hasOwnProperty(x))throw Error("Invalid project configuration: API key is invalid!");if(gr(p.a[x],t.tenantId||"_"),!p.i.currentUser||p.i.currentUser.uid!==t.uid)throw Error("The user being processed does not match the signed in user!");return(x=cf(p.a[x]).beforeSignInSuccess||null)?x(t):t}).then(function(x){if(x.uid!==t.uid)throw Error("User with mismatching UID returned.");return x})},Ft("firebaseui.auth.FirebaseUiHandler",ta),Ft("firebaseui.auth.FirebaseUiHandler.prototype.selectTenant",ta.prototype.Ub),Ft("firebaseui.auth.FirebaseUiHandler.prototype.getAuth",ta.prototype.Pb),Ft("firebaseui.auth.FirebaseUiHandler.prototype.startSignIn",ta.prototype.Zb),Ft("firebaseui.auth.FirebaseUiHandler.prototype.reset",ta.prototype.reset),Ft("firebaseui.auth.FirebaseUiHandler.prototype.showProgressBar",ta.prototype.Vb),Ft("firebaseui.auth.FirebaseUiHandler.prototype.hideProgressBar",ta.prototype.mb),Ft("firebaseui.auth.FirebaseUiHandler.prototype.completeSignOut",ta.prototype.Bb),Ft("firebaseui.auth.FirebaseUiHandler.prototype.handleError",ta.prototype.pb),Ft("firebaseui.auth.FirebaseUiHandler.prototype.processUser",ta.prototype.Rb),Ft("firebaseui.auth.AuthUI",Sc),Ft("firebaseui.auth.AuthUI.getInstance",function(t){return t=bp(t),rf[t]?rf[t]:null}),Ft("firebaseui.auth.AuthUI.prototype.disableAutoSignIn",Sc.prototype.Db),Ft("firebaseui.auth.AuthUI.prototype.start",Sc.prototype.start),Ft("firebaseui.auth.AuthUI.prototype.setConfig",Sc.prototype.ib),Ft("firebaseui.auth.AuthUI.prototype.signIn",Sc.prototype.Wb),Ft("firebaseui.auth.AuthUI.prototype.reset",Sc.prototype.reset),Ft("firebaseui.auth.AuthUI.prototype.delete",Sc.prototype.Wa),Ft("firebaseui.auth.AuthUI.prototype.isPendingRedirect",Sc.prototype.nb),Ft("firebaseui.auth.AuthUIError",Yn),Ft("firebaseui.auth.AuthUIError.prototype.toJSON",Yn.prototype.toJSON),Ft("firebaseui.auth.CredentialHelper.GOOGLE_YOLO",wl),Ft("firebaseui.auth.CredentialHelper.NONE",ma),Ft("firebaseui.auth.AnonymousAuthProvider.PROVIDER_ID","anonymous"),_s.prototype.catch=_s.prototype.Ca,_s.prototype.finally=_s.prototype.fc}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:window)}.apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:window),"undefined"!=typeof window&&(window.dialogPolyfill=D());var me=firebaseui.auth},2940:function(Qt,Z){!function(S){"use strict";function s(Q){return Array.prototype.slice.call(Q)}function _(Q){return new Promise(function(P,N){Q.onsuccess=function(){P(Q.result)},Q.onerror=function(){N(Q.error)}})}function y(Q,P,N){var Y,de=new Promise(function(re,V){_(Y=Q[P].apply(Q,N)).then(re,V)});return de.request=Y,de}function j(Q,P,N){var Y=y(Q,P,N);return Y.then(function(de){if(de)return new $(de,Y.request)})}
1function D(Q,P,N){N.forEach(function(Y){Object.defineProperty(Q.prototype,Y,{get:function(){return this[P][Y]},set:function(de){this[P][Y]=de}})})}function L(Q,P,N,Y){Y.forEach(function(de){de in N.prototype&&(Q.prototype[de]=function(){return y(this[P],de,arguments)})})}function ce(Q,P,N,Y){Y.forEach(function(de){de in N.prototype&&(Q.prototype[de]=function(){return this[P][de].apply(this[P],arguments)})})}function W(Q,P,N,Y){Y.forEach(function(de){de in N.prototype&&(Q.prototype[de]=function(){return j(this[P],de,arguments)})})}function G(Q){this._index=Q}function $(Q,P){this._cursor=Q,this._request=P}function te(Q){this._store=Q}function le(Q){this._tx=Q,this.complete=new Promise(function(P,N){Q.oncomplete=function(){P()},Q.onerror=function(){N(Q.error)},Q.onabort=function(){N(Q.error)}})}function J(Q,P,N){this._db=Q,this.oldVersion=P,this.transaction=new le(N)}function Me(Q){this._db=Q}D(G,"_index",["name","keyPath","multiEntry","unique"]),L(G,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),W(G,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),D($,"_cursor",["direction","key","primaryKey","value"]),L($,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(Q){Q in IDBCursor.prototype&&($.prototype[Q]=function(){var P=this,N=arguments;return Promise.resolve().then(function(){return P._cursor[Q].apply(P._cursor,N),_(P._request).then(function(Y){if(Y)return new $(Y,P._request)})})})}),te.prototype.createIndex=function(){return new G(this._store.createIndex.apply(this._store,arguments))},te.prototype.index=function(){return new G(this._store.index.apply(this._store,arguments))},D(te,"_store",["name","keyPath","indexNames","autoIncrement"]),L(te,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),W(te,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),ce(te,"_store",IDBObjectStore,["deleteIndex"]),le.prototype.objectStore=function(){return new te(this._tx.objectStore.apply(this._tx,arguments))},D(le,"_tx",["objectStoreNames","mode"]),ce(le,"_tx",IDBTransaction,["abort"]),J.prototype.createObjectStore=function(){return new te(this._db.createObjectStore.apply(this._db,arguments))},D(J,"_db",["name","version","objectStoreNames"]),ce(J,"_db",IDBDatabase,["deleteObjectStore","close"]),Me.prototype.transaction=function(){return new le(this._db.transaction.apply(this._db,arguments))},D(Me,"_db",["name","version","objectStoreNames"]),ce(Me,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(Q){[te,G].forEach(function(P){Q in P.prototype&&(P.prototype[Q.replace("open","iterate")]=function(){var N=s(arguments),Y=N[N.length-1],de=this._store||this._index,re=de[Q].apply(de,N.slice(0,-1));re.onsuccess=function(){Y(re.result)}})})}),[G,te].forEach(function(Q){Q.prototype.getAll||(Q.prototype.getAll=function(P,N){var Y=this,de=[];return new Promise(function(re){Y.iterateCursor(P,function(V){V?(de.push(V.value),void 0===N||de.length!=N?V.continue():re(de)):re(de)})})})}),S.openDb=function Re(Q,P,N){var Y=y(indexedDB,"open",[Q,P]),de=Y.request;return de&&(de.onupgradeneeded=function(re){N&&N(new J(de.result,re.oldVersion,de.transaction))}),Y.then(function(re){return new Me(re)})},S.deleteDb=function me(Q){return y(indexedDB,"deleteDatabase",[Q])},Object.defineProperty(S,"__esModule",{value:!0})}(Z)},5473:()=>{!function(){"use strict";var Qt=function(S){this.element_=S,this.init()};window.MaterialButton=Qt,Qt.prototype.Constant_={},Qt.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},Qt.prototype.blurHandler_=function(Z){Z&&this.element_.blur()},Qt.prototype.disable=Qt.prototype.disable=function(){this.element_.disabled=!0},Qt.prototype.enable=Qt.prototype.enable=function(){this.element_.disabled=!1},Qt.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var Z=document.createElement("span");Z.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),Z.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(Z)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},componentHandler.register({constructor:Qt,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0})}()},2125:()=>{var Qt={upgradeDom:function(Z,S){},upgradeElement:function(Z,S){},upgradeElements:function(Z){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(Z,S){},register:function(Z){},downgradeElements:function(Z){}};(Qt=function(){"use strict";var Z=[],S=[],s="mdlComponentConfigInternal_";function _(Me,Re){for(var me=0;me<Z.length;me++)if(Z[me].className===Me)return void 0!==Re&&(Z[me]=Re),Z[me];return!1}function y(Me){var Re=Me.getAttribute("data-upgraded");return null===Re?[""]:Re.split(",")}function j(Me,Re){return-1!==y(Me).indexOf(Re)}function D(Me,Re,me){if("CustomEvent"in window&&"function"==typeof window.CustomEvent)return new CustomEvent(Me,{bubbles:Re,cancelable:me});var Q=document.createEvent("Events");return Q.initEvent(Me,Re,me),Q}function L(Me,Re){if(void 0===Me&&void 0===Re)for(var me=0;me<Z.length;me++)L(Z[me].className,Z[me].cssClass);else{var Q=Me;if(void 0===Re){var P=_(Q);P&&(Re=P.cssClass)}for(var N=document.querySelectorAll("."+Re),Y=0;Y<N.length;Y++)ce(N[Y],Q)}}function ce(Me,Re){if(!("object"==typeof Me&&Me instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var me=D("mdl-componentupgrading",!0,!0);if(Me.dispatchEvent(me),!me.defaultPrevented){var Q=y(Me),P=[];if(Re)j(Me,Re)||P.push(_(Re));else{var N=Me.classList;Z.forEach(function(A){N.contains(A.cssClass)&&-1===P.indexOf(A)&&!j(Me,A.className)&&P.push(A)})}for(var re,Y=0,de=P.length;Y<de;Y++){if(!(re=P[Y]))throw new Error("Unable to find a registered component for the given class.");Q.push(re.className),Me.setAttribute("data-upgraded",Q.join(","));var V=new re.classConstructor(Me);V[s]=re,S.push(V);for(var ne=0,E=re.callbacks.length;ne<E;ne++)re.callbacks[ne](Me);re.widget&&(Me[re.className]=V);var M=D("mdl-componentupgraded",!0,!1);Me.dispatchEvent(M)}}}function le(Me){if(Me){var Re=S.indexOf(Me);S.splice(Re,1);var me=Me.element_.getAttribute("data-upgraded").split(","),Q=me.indexOf(Me[s].classAsString);me.splice(Q,1),Me.element_.setAttribute("data-upgraded",me.join(","));var P=D("mdl-componentdowngraded",!0,!1);Me.element_.dispatchEvent(P)}}return{upgradeDom:L,upgradeElement:ce,upgradeElements:function W(Me){Array.isArray(Me)||(Me=Me instanceof Element?[Me]:Array.prototype.slice.call(Me));for(var Q,Re=0,me=Me.length;Re<me;Re++)(Q=Me[Re])instanceof HTMLElement&&(ce(Q),Q.children.length>0&&W(Q.children))},upgradeAllRegistered:function te(){for(var Me=0;Me<Z.length;Me++)L(Z[Me].className)},registerUpgradedCallback:function $(Me,Re){var me=_(Me);me&&me.callbacks.push(Re)},register:function G(Me){var me=!0;void 0===Me.widget&&void 0===Me.widget||(me=Me.widget||Me.widget);var Q={classConstructor:Me.constructor||Me.constructor,className:Me.classAsString||Me.classAsString,cssClass:Me.cssClass||Me.cssClass,widget:me,callbacks:[]};
vendor: 4,472 bytes, line 1
1if(Z.forEach(function(N){if(N.cssClass===Q.cssClass)throw new Error("The provided cssClass has already been registered: "+N.cssClass);if(N.className===Q.className)throw new Error("The provided className has already been registered")}),Me.constructor.prototype.hasOwnProperty(s))throw new Error("MDL component classes must not have "+s+" defined as a property.");_(Me.classAsString,Q)||Z.push(Q)},downgradeElements:function J(Me){var Re=function(Q){S.filter(function(P){return P.element_===Q}).forEach(le)};if(Me instanceof Array||Me instanceof NodeList)for(var me=0;me<Me.length;me++)Re(Me[me]);else{if(!(Me instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");Re(Me)}}}}()).upgradeDom=Qt.upgradeDom,Qt.upgradeElement=Qt.upgradeElement,Qt.upgradeElements=Qt.upgradeElements,Qt.upgradeAllRegistered=Qt.upgradeAllRegistered,Qt.registerUpgradedCallback=Qt.registerUpgradedCallback,Qt.register=Qt.register,Qt.downgradeElements=Qt.downgradeElements,window.componentHandler=Qt,window.componentHandler=Qt,window.addEventListener("load",function(){"use strict";"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),Qt.upgradeAllRegistered()):(Qt.upgradeElement=function(){},Qt.register=function(){})})},9812:()=>{!function(){"use strict";var Qt=function(S){this.element_=S,this.init()};window.MaterialProgress=Qt,Qt.prototype.Constant_={},Qt.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},Qt.prototype.setProgress=Qt.prototype.setProgress=function(Z){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=Z+"%")},Qt.prototype.setBuffer=Qt.prototype.setBuffer=function(Z){this.bufferbar_.style.width=Z+"%",this.auxbar_.style.width=100-Z+"%"},Qt.prototype.init=function(){if(this.element_){var Z=document.createElement("div");Z.className="progressbar bar bar1",this.element_.appendChild(Z),this.progressbar_=Z,(Z=document.createElement("div")).className="bufferbar bar bar2",this.element_.appendChild(Z),this.bufferbar_=Z,(Z=document.createElement("div")).className="auxbar bar bar3",this.element_.appendChild(Z),this.auxbar_=Z,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:Qt,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0})}()},7792:()=>{!function(){"use strict";var Qt=function(S){this.element_=S,this.init()};window.MaterialSpinner=Qt,Qt.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},Qt.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},Qt.prototype.createLayer=Qt.prototype.createLayer=function(Z){var S=document.createElement("div");S.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),S.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+Z);var s=document.createElement("div");s.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),s.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var _=document.createElement("div");_.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var y=document.createElement("div");y.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),y.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var j=[s,_,y],D=0;D<j.length;D++){var L=document.createElement("div");L.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE),j[D].appendChild(L)}S.appendChild(s),S.appendChild(_),S.appendChild(y),this.element_.appendChild(S)},Qt.prototype.stop=Qt.prototype.stop=function(){this.element_.classList.remove("is-active")},Qt.prototype.start=Qt.prototype.start=function(){this.element_.classList.add("is-active")},Qt.prototype.init=function(){if(this.element_){for(var Z=1;Z<=this.Constant_.MDL_SPINNER_LAYER_COUNT;Z++)this.createLayer(Z);this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:Qt,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0})}()},2910:()=>{!function(){"use strict";var Qt=function(S){this.element_=S,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window.MaterialTextfield=Qt,Qt.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"}
1,Qt.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},Qt.prototype.onKeyDown_=function(Z){var S=Z.target.value.split("\n").length;13===Z.keyCode&&S>=this.maxRows&&Z.preventDefault()},Qt.prototype.onFocus_=function(Z){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},Qt.prototype.onBlur_=function(Z){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},Qt.prototype.onReset_=function(Z){this.updateClasses_()},Qt.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},Qt.prototype.checkDisabled=Qt.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},Qt.prototype.checkFocus=Qt.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},Qt.prototype.checkValidity=Qt.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},Qt.prototype.checkDirty=Qt.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},Qt.prototype.disable=Qt.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},Qt.prototype.enable=Qt.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},Qt.prototype.change=Qt.prototype.change=function(Z){this.input_.value=Z||"",this.updateClasses_()},Qt.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var Z=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),Z&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},componentHandler.register({constructor:Qt,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0})}()},456:(Qt,Z,S)=>{"use strict";S.d(Z,{D3:()=>Re,qA:()=>Me});var s=S(9808),_=S(5e3);let ce=(()=>{class me{constructor(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32,this.whitespaceRegex_=new RegExp("/s/"),this.linebreakRegex_=new RegExp("/[\r\n]/"),this.blanklineEndRegex_=new RegExp("/\n\r?\n$/"),this.blanklineStartRegex_=new RegExp("/^\r?\n\r?\n/"),this.diff_prettyHtml=function(P){const N=[],Y=/&/g,de=/</g,re=/>/g,V=/\n/g;for(let ne=0;ne<P.length;ne++){const E=P[ne][0],A=P[ne][1].replace(Y,"&").replace(de,"<").replace(re,">").replace(V,"¶<br>");switch(E){case 1:N[ne]='<ins style="background:#e6ffe6;">'+A+"</ins>";break;case-1:N[ne]='<del style="background:#ffe6e6;">'+A+"</del>";break;case 0:N[ne]="<span>"+A+"</span>"}}return N.join("")},this.patch_splitMax=function(P){const N=this.Match_MaxBits;for(let Y=0;Y<P.length;Y++){if(P[Y].length1<=N)continue;const de=P[Y];P.splice(Y--,1);let re=de.start1,V=de.start2,ne="";for(;0!==de.diffs.length;){const E=new W;let M=!0;for(E.start1=re-ne.length,E.start2=V-ne.length,""!==ne&&(E.length1=E.length2=ne.length,E.diffs.push([0,ne]));0!==de.diffs.length&&E.length1<N-this.Patch_Margin;){const R=de.diffs[0][0];let ee=de.diffs[0][1];1===R?(E.length2+=ee.length,V+=ee.length,E.diffs.push(de.diffs.shift()),M=!1):-1===R&&1==E.diffs.length&&0==E.diffs[0][0]&&ee.length>2*N?(E.length1+=ee.length,re+=ee.length,M=!1,E.diffs.push([R,ee]),de.diffs.shift()):(ee=ee.substring(0,N-E.length1-this.Patch_Margin),E.length1+=ee.length,re+=ee.length,0===R?(E.length2+=ee.length,V+=ee.length):M=!1,E.diffs.push([R,ee]),ee==de.diffs[0][1]?de.diffs.shift():de.diffs[0][1]=de.diffs[0][1].substring(ee.length))}ne=this.diff_text2(E.diffs),ne=ne.substring(ne.length-this.Patch_Margin);const A=this.diff_text1(de.diffs).substring(0,this.Patch_Margin);""!==A&&(E.length1+=A.length,E.length2+=A.length,0!==E.diffs.length&&0===E.diffs[E.diffs.length-1][0]?E.diffs[E.diffs.length-1][1]+=A:E.diffs.push([0,A])),M||P.splice(++Y,0,E)}}}}diff_main(P,N,Y,de){void 0===de&&(de=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);const re=de;if(null==P||null==N)throw new Error("Null input. (diff_main)");if(P==N)return P?[[0,P]]:[];void 0===Y&&(Y=!0);const V=Y;let ne=this.diff_commonPrefix(P,N);const E=P.substring(0,ne);P=P.substring(ne),N=N.substring(ne),ne=this.diff_commonSuffix(P,N);const M=P.substring(P.length-ne);P=P.substring(0,P.length-ne),N=N.substring(0,N.length-ne);const A=this.diff_compute_(P,N,V,re);return E&&A.unshift([0,E]),M&&A.push([0,M]),this.diff_cleanupMerge(A),A}diff_compute_(P,N,Y,de){let re;if(!P)return[[1,N]];if(!N)return[[-1,P]];const V=P.length>N.length?P:N,ne=P.length>N.length?N:P,E=V.indexOf(ne);if(-1!=E)return re=[[1,V.substring(0,E)],[0,ne],[1,V.substring(E+ne.length)]],P.length>N.length&&(re[0][0]=re[2][0]=-1),re;if(1==ne.length)return[[-1,P],[1,N]];const M=this.diff_halfMatch_(P,N);if(M){const R=M[1],B=M[3],K=M[4],ge=this.diff_main(M[0],M[2],Y,de),Fe=this.diff_main(R,B,Y,de);return ge.concat([[0,K]],Fe)}return Y&&P.length>100&&N.length>100?this.diff_lineMode_(P,N,de):this.diff_bisect_(P,N,de)}diff_lineMode_(P,N,Y){const de=this.diff_linesToChars_(P,N),re=de.lineArray,V=this.diff_main(P=de.chars1,N=de.chars2,!1,Y);this.diff_charsToLines_(V,re),this.diff_cleanupSemantic(V),V.push([0,""]);let ne=0,E=0,M=0,A="",R="";for(;ne<V.length;){switch(V[ne][0]){case 1:M++,R+=V[ne][1];break;case-1:E++,A+=V[ne][1];break;case 0:if(E>=1&&M>=1){V.splice(ne-E-M,E+M),ne=ne-E-M;const ee=this.diff_main(A,R,!1,Y);for(let B=ee.length-1;B>=0;B--)V.splice(ne,0,ee[B]);ne+=ee.length}M=0,E=0,A="",R=""}ne++}return V.pop(),V}diff_bisect_(P,N,Y){const de=P.length,re=N.length,V=Math.ceil((de+re)/2),ne=V,E=2*V,M=new Array(E),A=new Array(E);for(let he=0;he<E;he++)M[he]=-1,A[he]=-1;M[ne+1]=0,A[ne+1]=0;const R=de-re,ee=R%2!=0;
1let B=0,K=0,ge=0,Fe=0;for(let he=0;he<V&&!((new Date).getTime()>Y);he++){for(let fe=-he+B;fe<=he-K;fe+=2){const Ie=ne+fe;let Se;Se=fe==-he||fe!=he&&M[Ie-1]<M[Ie+1]?M[Ie+1]:M[Ie-1]+1;let pe=Se-fe;for(;Se<de&&pe<re&&P.charAt(Se)==N.charAt(pe);)Se++,pe++;if(M[Ie]=Se,Se>de)K+=2;else if(pe>re)B+=2;else if(ee){const ke=ne+R-fe;if(ke>=0&&ke<E&&-1!=A[ke]&&Se>=de-A[ke])return this.diff_bisectSplit_(P,N,Se,pe,Y)}}for(let fe=-he+ge;fe<=he-Fe;fe+=2){const Ie=ne+fe;let Se;Se=fe==-he||fe!=he&&A[Ie-1]<A[Ie+1]?A[Ie+1]:A[Ie-1]+1;let pe=Se-fe;for(;Se<de&&pe<re&&P.charAt(de-Se-1)==N.charAt(re-pe-1);)Se++,pe++;if(A[Ie]=Se,Se>de)Fe+=2;else if(pe>re)ge+=2;else if(!ee){const ke=ne+R-fe;if(ke>=0&&ke<E&&-1!=M[ke]){const ae=M[ke],Ce=ne+ae-ke;if(Se=de-Se,ae>=Se)return this.diff_bisectSplit_(P,N,ae,Ce,Y)}}}}return[[-1,P],[1,N]]}diff_bisectSplit_(P,N,Y,de,re){const V=P.substring(0,Y),ne=N.substring(0,de),E=P.substring(Y),M=N.substring(de),A=this.diff_main(V,ne,!1,re),R=this.diff_main(E,M,!1,re);return A.concat(R)}diff_linesToChars_(P,N){const Y=[],de={};return Y[0]="",{chars1:this.diff_linesToCharsMunge_(P,Y,de),chars2:this.diff_linesToCharsMunge_(N,Y,de),lineArray:Y}}diff_linesToCharsMunge_(P,N,Y){let de="",re=0,V=-1,ne=N.length;for(;V<P.length-1;){V=P.indexOf("\n",re),-1==V&&(V=P.length-1);const E=P.substring(re,V+1);re=V+1,(Y.hasOwnProperty?Y.hasOwnProperty(E):void 0!==Y[E])?de+=String.fromCharCode(Y[E]):(de+=String.fromCharCode(ne),Y[E]=ne,N[ne++]=E)}return de}diff_charsToLines_(P,N){for(let Y=0;Y<P.length;Y++){const de=P[Y][1],re=[];for(let V=0;V<de.length;V++)re[V]=N[de.charCodeAt(V)];P[Y][1]=re.join("")}}diff_commonPrefix(P,N){if(!P||!N||P.charAt(0)!=N.charAt(0))return 0;let Y=0,de=Math.min(P.length,N.length),re=de,V=0;for(;Y<re;)P.substring(V,re)==N.substring(V,re)?(Y=re,V=Y):de=re,re=Math.floor((de-Y)/2+Y);return re}diff_commonSuffix(P,N){if(!P||!N||P.charAt(P.length-1)!=N.charAt(N.length-1))return 0;let Y=0,de=Math.min(P.length,N.length),re=de,V=0;for(;Y<re;)P.substring(P.length-re,P.length-V)==N.substring(N.length-re,N.length-V)?(Y=re,V=Y):de=re,re=Math.floor((de-Y)/2+Y);return re}diff_commonOverlap_(P,N){const Y=P.length,de=N.length;if(0==Y||0==de)return 0;Y>de?P=P.substring(Y-de):Y<de&&(N=N.substring(0,Y));const re=Math.min(Y,de);if(P==N)return re;let V=0,ne=1;for(;;){const E=P.substring(re-ne),M=N.indexOf(E);if(-1==M)return V;ne+=M,(0==M||P.substring(re-ne)==N.substring(0,ne))&&(V=ne,ne++)}}diff_halfMatch_(P,N){if(this.Diff_Timeout<=0)return null;const Y=P.length>N.length?P:N,de=P.length>N.length?N:P;if(Y.length<4||2*de.length<Y.length)return null;const V=this.diff_halfMatchI_(Y,de,Math.ceil(Y.length/4),this),ne=this.diff_halfMatchI_(Y,de,Math.ceil(Y.length/2),this);let E,M,A,R,ee;return V||ne?(E=ne?V&&V[4].length>ne[4].length?V:ne:V,P.length>N.length?(M=E[0],A=E[1],R=E[2],ee=E[3]):(R=E[0],ee=E[1],M=E[2],A=E[3]),[M,A,R,ee,E[4]]):null}diff_halfMatchI_(P,N,Y,de){const re=P.substring(Y,Y+Math.floor(P.length/4));let E,M,A,R,V=-1,ne="";for(;-1!=(V=N.indexOf(re,V+1));){const ee=de.diff_commonPrefix(P.substring(Y),N.substring(V)),B=de.diff_commonSuffix(P.substring(0,Y),N.substring(0,V));ne.length<B+ee&&(ne=N.substring(V-B,V)+N.substring(V,V+ee),E=P.substring(0,Y-B),M=P.substring(Y+ee),A=N.substring(0,V-B),R=N.substring(V+ee))}return 2*ne.length>=P.length?[E,M,A,R,ne]:null}diff_cleanupSemantic(P){let N=!1;const Y=[];let de=0,re=null,V=0,ne=0,E=0,M=0,A=0;for(;V<P.length;)0==P[V][0]?(Y[de++]=V,ne=M,E=A,M=0,A=0,re=P[V][1]):(1==P[V][0]?M+=P[V][1].length:A+=P[V][1].length,re&&re.length<=Math.max(ne,E)&&re.length<=Math.max(M,A)&&(P.splice(Y[de-1],0,[-1,re]),P[Y[de-1]+1][0]=1,de--,de--,V=de>0?Y[de-1]:-1,ne=0,E=0,M=0,A=0,re=null,N=!0)),V++;for(N&&this.diff_cleanupMerge(P),this.diff_cleanupSemanticLossless(P),V=1;V<P.length;){if(-1==P[V-1][0]&&1==P[V][0]){const R=P[V-1][1],ee=P[V][1],B=this.diff_commonOverlap_(R,ee),K=this.diff_commonOverlap_(ee,R);B>=K?(B>=R.length/2||B>=ee.length/2)&&(P.splice(V,0,[0,ee.substring(0,B)]),P[V-1][1]=R.substring(0,R.length-B),P[V+1][1]=ee.substring(B),V++):(K>=R.length/2||K>=ee.length/2)&&(P.splice(V,0,[0,R.substring(0,K)]),P[V-1][0]=1,P[V-1][1]=ee.
1substring(0,ee.length-K),P[V+1][0]=-1,P[V+1][1]=R.substring(K),V++),V++}V++}}diff_cleanupSemanticLossless(P){function N(de,re){if(!de||!re)return 6;const V=new RegExp("/[^a-zA-Z0-9]/"),ne=de.charAt(de.length-1),E=re.charAt(0),M=ne.match(V),A=E.match(V),R=M&&ne.match(this.whitespaceRegex_),ee=A&&E.match(this.whitespaceRegex_),B=R&&ne.match(this.linebreakRegex_),K=ee&&E.match(this.linebreakRegex_),ge=B&&de.match(this.blanklineEndRegex_),Fe=K&&re.match(this.blanklineStartRegex_);return ge||Fe?5:B||K?4:M&&!R&&ee?3:R||ee?2:M||A?1:0}let Y=1;for(;Y<P.length-1;){if(0==P[Y-1][0]&&0==P[Y+1][0]){let de=P[Y-1][1],re=P[Y][1],V=P[Y+1][1];const ne=this.diff_commonSuffix(de,re);if(ne){const ee=re.substring(re.length-ne);de=de.substring(0,de.length-ne),re=ee+re.substring(0,re.length-ne),V=ee+V}let E=de,M=re,A=V,R=N(de,re)+N(re,V);for(;re.charAt(0)===V.charAt(0);){de+=re.charAt(0),re=re.substring(1)+V.charAt(0),V=V.substring(1);const ee=N(de,re)+N(re,V);ee>=R&&(R=ee,E=de,M=re,A=V)}P[Y-1][1]!=E&&(E?P[Y-1][1]=E:(P.splice(Y-1,1),Y--),P[Y][1]=M,A?P[Y+1][1]=A:(P.splice(Y+1,1),Y--))}Y++}}diff_cleanupEfficiency(P){let N=!1;const Y=[];let de=0,re=null,V=0,ne=!1,E=!1,M=!1,A=!1;for(;V<P.length;)0==P[V][0]?(P[V][1].length<this.Diff_EditCost&&(M||A)?(Y[de++]=V,ne=M,E=A,re=P[V][1]):(de=0,re=null),M=A=!1):(-1==P[V][0]?A=!0:M=!0,re&&(ne&&E&&M&&A||re.length<this.Diff_EditCost/2&&(ne?1:0)+(E?1:0)+(M?1:0)+(A?1:0)==3)&&(P.splice(Y[de-1],0,[-1,re]),P[Y[de-1]+1][0]=1,de--,re=null,ne&&E?(M=A=!0,de=0):(de--,V=de>0?Y[de-1]:-1,M=A=!1),N=!0)),V++;N&&this.diff_cleanupMerge(P)}diff_cleanupMerge(P){P.push([0,""]);let ne,N=0,Y=0,de=0,re="",V="";for(;N<P.length;)switch(P[N][0]){case 1:de++,V+=P[N][1],N++;break;case-1:Y++,re+=P[N][1],N++;break;case 0:Y+de>1?(0!==Y&&0!==de&&(ne=this.diff_commonPrefix(V,re),0!==ne&&(N-Y-de>0&&0==P[N-Y-de-1][0]?P[N-Y-de-1][1]+=V.substring(0,ne):(P.splice(0,0,[0,V.substring(0,ne)]),N++),V=V.substring(ne),re=re.substring(ne)),ne=this.diff_commonSuffix(V,re),0!==ne&&(P[N][1]=V.substring(V.length-ne)+P[N][1],V=V.substring(0,V.length-ne),re=re.substring(0,re.length-ne))),0===Y?P.splice(N-de,Y+de,[1,V]):0===de?P.splice(N-Y,Y+de,[-1,re]):P.splice(N-Y-de,Y+de,[-1,re],[1,V]),N=N-Y-de+(Y?1:0)+(de?1:0)+1):0!==N&&0==P[N-1][0]?(P[N-1][1]+=P[N][1],P.splice(N,1)):N++,de=0,Y=0,re="",V=""}""===P[P.length-1][1]&&P.pop();let E=!1;for(N=1;N<P.length-1;)0==P[N-1][0]&&0==P[N+1][0]&&(P[N][1].substring(P[N][1].length-P[N-1][1].length)==P[N-1][1]?(P[N][1]=P[N-1][1]+P[N][1].substring(0,P[N][1].length-P[N-1][1].length),P[N+1][1]=P[N-1][1]+P[N+1][1],P.splice(N-1,1),E=!0):P[N][1].substring(0,P[N+1][1].length)==P[N+1][1]&&(P[N-1][1]+=P[N+1][1],P[N][1]=P[N][1].substring(P[N+1][1].length)+P[N+1][1],P.splice(N+1,1),E=!0)),N++;E&&this.diff_cleanupMerge(P)}diff_xIndex(P,N){let ne,Y=0,de=0,re=0,V=0;for(ne=0;ne<P.length&&(1!==P[ne][0]&&(Y+=P[ne][1].length),-1!==P[ne][0]&&(de+=P[ne][1].length),!(Y>N));ne++)re=Y,V=de;return P.length!=ne&&-1===P[ne][0]?V:V+(N-re)}diff_text1(P){const N=[];for(let Y=0;Y<P.length;Y++)1!==P[Y][0]&&(N[Y]=P[Y][1]);return N.join("")}diff_text2(P){const N=[];for(let Y=0;Y<P.length;Y++)-1!==P[Y][0]&&(N[Y]=P[Y][1]);return N.join("")}diff_levenshtein(P){let N=0,Y=0,de=0;for(let re=0;re<P.length;re++){const ne=P[re][1];switch(P[re][0]){case 1:Y+=ne.length;break;case-1:de+=ne.length;break;case 0:N+=Math.max(Y,de),Y=0,de=0}}return N+=Math.max(Y,de),N}diff_toDelta(P){const N=[];for(let Y=0;Y<P.length;Y++)switch(P[Y][0]){case 1:N[Y]="+"+encodeURI(P[Y][1]);break;case-1:N[Y]="-"+P[Y][1].length;break;case 0:N[Y]="="+P[Y][1].length}return N.join("\t").replace(/%20/g," ")}diff_fromDelta(P,N){const Y=[];let de=0,re=0;const V=N.split(/\t/g);for(let ne=0;ne<V.length;ne++){const E=V[ne].substring(1);switch(V[ne].charAt(0)){case"+":try{Y[de++]=[1,decodeURI(E)]}catch(R){throw new Error("Illegal escape in diff_fromDelta: "+E)}break;case"-":case"=":const M=parseInt(E,10);if(isNaN(M)||M<0)throw new Error("Invalid number in diff_fromDelta: "+E);const A=P.substring(re,re+=M);"="==V[ne].charAt(0)?Y[de++]=[0,A]:Y[de++]=[-1,A];break;default:if(V[ne])throw new Error("Invalid diff operation in diff_fromDelta: "+V[ne])}}if(re!=P.length)throw new Error("Delta length ("+re+") does not equal source text length ("+P.length+").");return Y}match_main(P,N,Y){if(null==P||null==N||null==Y)throw new Error("Null input. (match_main)");return Y=Math.max(0,Math.min(Y,P.length)),P==N?0:P.length?P.substring(Y,Y+N.length)==N?Y:this.match_bitap_(P,N,Y):-1}match_bitap_(P,N,Y){if(N.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");const de=this.match_alphabet_(N),re=this;
1function V(K,ge){const Fe=K/N.length,he=Math.abs(Y-ge);return re.Match_Distance?Fe+he/re.Match_Distance:he?1:Fe}let ne=this.Match_Threshold,E=P.indexOf(N,Y);-1!=E&&(ne=Math.min(V(0,E),ne),E=P.lastIndexOf(N,Y+N.length),-1!=E&&(ne=Math.min(V(0,E),ne)));const M=1<<N.length-1;E=-1;let A,R,B,ee=N.length+P.length;for(let K=0;K<N.length;K++){for(A=0,R=ee;A<R;)V(K,Y+R)<=ne?A=R:ee=R,R=Math.floor((ee-A)/2+A);ee=R;let ge=Math.max(1,Y-R+1);const Fe=Math.min(Y+R,P.length)+N.length,he=Array(Fe+2);he[Fe+1]=(1<<K)-1;for(let fe=Fe;fe>=ge;fe--){const Ie=de[P.charAt(fe-1)];if(he[fe]=0===K?(he[fe+1]<<1|1)&Ie:(he[fe+1]<<1|1)&Ie|(B[fe+1]|B[fe])<<1|1|B[fe+1],he[fe]&M){const Se=V(K,fe-1);if(Se<=ne){if(ne=Se,E=fe-1,!(E>Y))break;ge=Math.max(1,2*Y-E)}}}if(V(K+1,Y)>ne)break;B=he}return E}match_alphabet_(P){const N={};for(let Y=0;Y<P.length;Y++)N[P.charAt(Y)]=0;for(let Y=0;Y<P.length;Y++)N[P.charAt(Y)]|=1<<P.length-Y-1;return N}patch_addContext_(P,N){if(0==N.length)return;let Y=N.substring(P.start2,P.start2+P.length1),de=0;for(;N.indexOf(Y)!=N.lastIndexOf(Y)&&Y.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)de+=this.Patch_Margin,Y=N.substring(P.start2-de,P.start2+P.length1+de);de+=this.Patch_Margin;const re=N.substring(P.start2-de,P.start2);re&&P.diffs.unshift([0,re]);const V=N.substring(P.start2+P.length1,P.start2+P.length1+de);V&&P.diffs.push([0,V]),P.start1-=re.length,P.start2-=re.length,P.length1+=re.length+V.length,P.length2+=re.length+V.length}patch_make(P,N,Y){let de,re;if("string"==typeof P&&"string"==typeof N&&void 0===Y)de=P,re=this.diff_main(de,N,!0),re.length>2&&(this.diff_cleanupSemantic(re),this.diff_cleanupEfficiency(re));else if(P&&"object"==typeof P&&void 0===N&&void 0===Y)re=P,de=this.diff_text1(re);else if("string"==typeof P&&N&&"object"==typeof N&&void 0===Y)de=P,re=N;else{if("string"!=typeof P||"string"!=typeof N||!Y||"object"!=typeof Y)throw new Error("Unknown call format to patch_make.");de=P,re=Y}if(0===re.length)return[];const V=[];let ne=new W,E=0,M=0,A=0,R=de,ee=de;for(let B=0;B<re.length;B++){const K=re[B][0],ge=re[B][1];switch(!E&&0!==K&&(ne.start1=M,ne.start2=A),K){case 1:ne.diffs[E++]=re[B],ne.length2+=ge.length,ee=ee.substring(0,A)+ge+ee.substring(A);break;case-1:ne.length1+=ge.length,ne.diffs[E++]=re[B],ee=ee.substring(0,A)+ee.substring(A+ge.length);break;case 0:ge.length<=2*this.Patch_Margin&&E&&re.length!=B+1?(ne.diffs[E++]=re[B],ne.length1+=ge.length,ne.length2+=ge.length):ge.length>=2*this.Patch_Margin&&E&&(this.patch_addContext_(ne,R),V.push(ne),ne=new W,E=0,R=ee,M=A)}1!==K&&(M+=ge.length),-1!==K&&(A+=ge.length)}return E&&(this.patch_addContext_(ne,R),V.push(ne)),V}patch_deepCopy(P){const N=[];for(let Y=0;Y<P.length;Y++){const de=P[Y],re=new W;re.diffs=[];for(let V=0;V<de.diffs.length;V++)re.diffs[V]=[de.diffs[V][0],de.diffs[V][1]];re.start1=de.start1,re.start2=de.start2,re.length1=de.length1,re.length2=de.length2,N[Y]=re}return N}patch_apply(P,N){if(0==P.length)return[N,[]];P=this.patch_deepCopy(P);const Y=this.patch_addPadding(P);N=Y+N+Y,this.patch_splitMax(P);let de=0;const re=[];for(let V=0;V<P.length;V++){const ne=P[V].start2+de,E=this.diff_text1(P[V].diffs);let M,A=-1;if(E.length>this.Match_MaxBits?(M=this.match_main(N,E.substring(0,this.Match_MaxBits),ne),-1!=M&&(A=this.match_main(N,E.substring(E.length-this.Match_MaxBits),ne+E.length-this.Match_MaxBits),(-1==A||M>=A)&&(M=-1))):M=this.match_main(N,E,ne),-1==M)re[V]=!1,de-=P[V].length2-P[V].length1;else{let R;if(re[V]=!0,de=M-ne,R=N.substring(M,-1==A?M+E.length:A+this.Match_MaxBits),E==R)N=N.substring(0,M)+this.diff_text2(P[V].diffs)+N.substring(M+E.length);else{const ee=this.diff_main(E,R,!1);if(E.length>this.Match_MaxBits&&this.diff_levenshtein(ee)/E.length>this.Patch_DeleteThreshold)re[V]=!1;else{this.diff_cleanupSemanticLossless(ee);let K,B=0;for(let ge=0;ge<P[V].diffs.length;ge++){const Fe=P[V].diffs[ge];0!==Fe[0]&&(K=this.diff_xIndex(ee,B)),1===Fe[0]?N=N.substring(0,M+K)+Fe[1]+N.substring(M+K):-1===Fe[0]&&(N=N.substring(0,M+K)+N.substring(M+this.diff_xIndex(ee,B+Fe[1].length))),-1!==Fe[0]&&(B+=Fe[1].length)}}}}}return[N=N.substring(Y.length,N.length-Y.length),re]}patch_addPadding(P){const N=this.Patch_Margin;let Y="";for(let V=1;V<=N;V++)Y+=String.fromCharCode(V);for(let V=0;V<P.length;V++)P[V].start1+=N,P[V].start2+=N;let de=P[0],re=de.diffs;if(0==re.length||0!=re[0][0])re.unshift([0,Y]),de.start1-=N,de.start2-=N,de.length1+=N,de.length2+=N;else if(N>re[0][1].length){const V=N-re[0][1].length;re[0][1]=Y.substring(re[0][1].length)+re[0][1],de.start1-=V,de.start2-=V,de.length1+=V,de.length2+=V}if(de=P[P.length-1],re=de.diffs,0==re.length||0!=re[re.length-1][0])re.push([0,Y]),de.length1+=N,de.length2+=N;else if(N>re[re.length-1][1].length){const V=N-re[re.length-1][1].length;re[re.length-1][1]+=Y.substring(0,V),de.length1+=V,de.length2+=V}return Y}patch_toText(P){const N=[];for(let Y=0;Y<P.length;Y++)N[Y]=P[Y];return N.join("")}patch_fromText(P){const N=[];if(!P)return N;const Y=P.split("\n");let de=0;const re=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;for(;de<Y.length;){const V=Y[de].match(re);if(!V)throw new Error("Invalid patch string: "+Y[de]);const ne=new W;for(N.push(ne),ne.start1=parseInt(V[1],10),""===V[2]?(ne.start1--,ne.length1=1):"0"==V[2]?ne.length1=0:(ne.start1--,ne.length1=parseInt(V[2],10)),ne.start2=parseInt(V[3],10),""===V[4]?(ne.start2--,ne.length2=1):"0"==V[4]?ne.length2=0:(ne.start2--,ne.length2=parseInt(V[4],10)),de++;de<Y.length;){const E=Y[de].charAt(0);let M;try{M=decodeURI(Y[de].substring(1))}catch(A){throw new Error("Illegal escape in patch_fromText: "+M)}if("-"==E)ne.diffs.push([-1,M]);else if("+"==E)ne.diffs.push([1,M]);else if(" "==E)ne.diffs.push([0,M]);else{if("@"==E)break;if(""!==E)throw new Error('Invalid patch mode "'+E+'" in: '+M)}de++}}return N}}return me.\u0275fac=function(P){return new(P||me)},me.\u0275prov=_.Yz7({token:me,factory:me.\u0275fac}),me})();class W{constructor(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0,this.toString=function(){let Q,P;Q=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1,P=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2;const N=["@@ -"+Q+" +"+P+" @@\n"];let Y;for(let de=0;de<this.diffs.length;de++){switch(this.diffs[de][0]){case 1:Y="+";break;case-1:Y="-";break;case 0:Y=" "}N[de+1]=Y+encodeURI(this.diffs[de][1])+"\n"}return N.join("").replace(/%20/g," ")}}}let G=(()=>{class me{constructor(P){this.dmp=P}ngOnInit(){}getDiff(P,N){return this.dmp.diff_main(P,N)}getSemanticDiff(P,N){const Y=this.dmp.diff_main(P,N);return this.dmp.diff_cleanupSemantic(Y),Y}getProcessingDiff(P,N){const Y=this.dmp.diff_main(P,N);return this.dmp.diff_cleanupEfficiency(Y),Y}getLineDiff(P,N){const Y=this.dmp.diff_linesToChars_(P,N),de=this.dmp.diff_main(Y.chars1,Y.chars2,!1);return this.dmp.diff_charsToLines_(de,Y.lineArray),de}getDmp(){return this.dmp}}return me.\u0275fac=function(P){return new(P||me)(_.LFG(ce))},me.\u0275prov=_.Yz7({token:me,factory:me.\u0275fac}),me})(),Me=(()=>{class me{constructor(P,N){this.el=P,this.dmp=N}ngOnInit(){this.updateHtml()}ngOnChanges(){this.updateHtml()}updateHtml(){this.left||(this.left=""),this.right||(this.right=""),("number"==typeof this.left||"boolean"==typeof this.left)&&(this.left=this.left.toString()),("number"==typeof this.right||"boolean"==typeof this.right)&&(this.right=this.right.toString()),this.el.nativeElement.innerHTML=this.createHtml(this.dmp.getSemanticDiff(this.left,this.right))}createHtml(P){let N;N="<div>";for(let Y of P)Y[1]=Y[1].replace(/\n/g,"<br/>
1"),0===Y[0]&&(N+='<span class="equal">'+Y[1]+"</span>"),-1===Y[0]&&(N+="<del>"+Y[1]+"</del>"),1===Y[0]&&(N+="<ins>"+Y[1]+"</ins>");return N+="</div>",N}}return me.\u0275fac=function(P){return new(P||me)(_.Y36(_.SBq),_.Y36(G))},me.\u0275dir=_.lG2({type:me,selectors:[["","semanticDiff",""]],inputs:{left:"left",right:"right"},features:[_.TTD]}),me})(),Re=(()=>{class me{}return me.\u0275fac=function(P){return new(P||me)},me.\u0275mod=_.oAB({type:me}),me.\u0275inj=_.cJS({providers:[ce,G],imports:[[s.ez]]}),me})()},5769:(Qt,Z,S)=>{"use strict";S.d(Z,{MR:()=>G,cD:()=>$,yM:()=>L});var s=S(5e3),_=S(9808);function y(te,le){if(1&te&&(s.ynx(0),s._UZ(1,"span",2),s.BQk()),2&te){const J=s.oxw();s.xp6(1),s.Q6J("innerHTML",J.i.text,s.oJD)}}function j(te,le){1&te&&s.GkF(0)}const D=function(te){return{$implicit:te}};var L=(()=>{return(te=L||(L={}))[te.ing=0]="ing",te[te.pause=1]="pause",te[te.stop=2]="stop",te[te.done=3]="done",L;var te})();let ce=(()=>{class te{constructor(J){this.ngZone=J,this.fns=[],this.commands=[],this.ing=!1}start(){!0!==this.ing&&(this.ing=!0,this.nextTime=+new Date,this.ngZone.runOutsideAngular(()=>{this.process()}))}process(){for(;this.commands.length;)this.commands.shift()();let J=+new Date-this.nextTime;const Me=1+Math.floor(J/100);J=100-J%100,this.nextTime+=100*Me;for(let Re=0,me=this.fns.length;Re<me;Re+=2){let Q=this.fns[Re+1];if(0===Q)this.fns[Re](Me);else{Q+=2*Me-1;const P=Math.floor(Q/20);P>0&&this.fns[Re](P),this.fns[Re+1]=Q%20+1}}!this.ing||setTimeout(()=>this.process(),J)}add(J,Me){return this.commands.push(()=>{this.fns.push(J),this.fns.push(1e3===Me?1:0),this.ing=!0}),this}remove(J){return this.commands.push(()=>{const Me=this.fns.indexOf(J);-1!==Me&&this.fns.splice(Me,2),this.ing=this.fns.length>0}),this}}return te.\u0275fac=function(J){return new(J||te)(s.LFG(s.R0b))},te.\u0275prov=s.Yz7({token:te,factory:te.\u0275fac}),te})(),W=(()=>{class te{constructor(J){this.locale=J,this.demand=!1,this.leftTime=0,this.format="HH:mm:ss",this.timezone="+0000",this.formatDate=({date:Me,formatStr:Re,timezone:me})=>(0,_.p6)(new Date(Me),Re,this.locale,me||this.timezone||"+0000")}}return te.\u0275fac=function(J){return new(J||te)(s.LFG(s.soG))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(s.soG))},token:te,providedIn:"root"}),te})(),G=(()=>{class te{constructor(J,Me,Re,me,Q){this.locale=J,this.timer=Me,this.defCog=Re,this.cdr=me,this.ngZone=Q,this.frequency=1e3,this._notify={},this.status=L.ing,this.isDestroy=!1,this.i={},this.left=0,this.event=new s.vpe}set config(J){null!=J.notify&&!Array.isArray(J.notify)&&J.notify>0&&(J.notify=[J.notify]),this._config=J}get config(){return this._config}begin(){this.status=L.ing,this.callEvent("start")}restart(){this.status!==L.stop&&this.destroy(),this.init(),this.callEvent("restart")}stop(){this.status!==L.stop&&(this.status=L.stop,this.destroy(),this.callEvent("stop"))}pause(){this.status===L.stop||this.status===L.pause||(this.status=L.pause,this.callEvent("pause"))}resume(){this.status===L.stop||this.status!==L.pause||(this.status=L.ing,this.callEvent("resume"))}callEvent(J){this.event.emit({action:J,left:this.left,status:this.status,text:this.i.text})}init(){const{locale:J,defCog:Me}=this,Re=this.config=Object.assign(Object.assign(Object.assign({},new W(J)),Me),this.config),me=this.frequency=~Re.format.indexOf("S")?100:1e3;this.status=Re.demand?L.pause:L.ing,this.getLeft();const Q=this.reflow;this.reflow=(P=0,N=!1)=>
1Q.apply(this,[P,N]),Array.isArray(Re.notify)&&Re.notify.forEach(P=>{if(P<1)throw new Error("The notify config must be a positive integer.");P*=1e3,this._notify[P-=P%me]=!0}),this.timer.add(this.reflow,me).start(),this.reflow(0,!0)}destroy(){return this.timer.remove(this.reflow),this}reflow(J=0,Me=!1){if(this.isDestroy)return;const{status:Re,config:me,_notify:Q}=this;if(!Me&&Re!==L.ing)return;let P=this.left=this.left-this.frequency*J;P<1&&(P=0),this.i={value:P,text:me.formatDate({date:P,formatStr:me.format,timezone:me.timezone})},"function"==typeof me.prettyText&&(this.i.text=me.prettyText(this.i.text)),this.cdr.detectChanges(),(0===me.notify||Q[P])&&this.ngZone.run(()=>{this.callEvent("notify")}),0===P&&this.ngZone.run(()=>{this.status=L.done,this.destroy(),this.callEvent("done")})}getLeft(){const{config:J,frequency:Me}=this;let Re=1e3*J.leftTime;const me=J.stopTime;!Re&&me&&(Re=me-(new Date).getTime()),this.left=Re-Re%Me}ngOnInit(){this.init(),this.config.demand||this.begin()}ngOnDestroy(){this.isDestroy=!0,this.destroy()}ngOnChanges(J){J.config.firstChange||this.restart()}}return te.\u0275fac=function(J){return new(J||te)(s.Y36(s.soG),s.Y36(ce),s.Y36(W),s.Y36(s.sBO),s.Y36(s.R0b))},te.\u0275cmp=s.Xpm({type:te,selectors:[["countdown"]],hostVars:2,hostBindings:function(J,Me){2&J&&s.ekj("count-down",!0)},inputs:{config:"config",render:"render"},outputs:{event:"event"},features:[s.TTD],decls:2,vars:5,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(J,Me){1&J&&(s.YNc(0,y,2,1,"ng-container",0),s.YNc(1,j,1,0,"ng-container",1)),2&J&&(s.Q6J("ngIf",!Me.render),s.xp6(1),s.Q6J("ngTemplateOutlet",Me.render)("ngTemplateOutletContext",s.VKq(3,D,Me.i)))},directives:[_.O5,_.tP],encapsulation:2,changeDetection:0}),te})(),$=(()=>{class te{}return te.\u0275fac=function(J){return new(J||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[ce],imports:[[_.ez]]}),te})()},7468:function(Qt){Qt.exports=function(){"use strict";function Z(xt,Gt){for(var Ke=0;Ke<Gt.length;Ke++){var Ne=Gt[Ke];Ne.enumerable=Ne.enumerable||!1,Ne.configurable=!0,"value"in Ne&&(Ne.writable=!0),Object.defineProperty(xt,Ne.key,Ne)}}function _(xt,Gt){(null==Gt||Gt>xt.length)&&(Gt=xt.length);for(var Ke=0,Ne=new Array(Gt);Ke<Gt;Ke++)Ne[Ke]=xt[Ke];return Ne}function y(xt,Gt){var Ke="undefined"!=typeof Symbol&&xt[Symbol.iterator]||xt["@@iterator"];if(Ke)return(Ke=Ke.call(xt)).next.bind(Ke);if(Array.isArray(xt)||(Ke=function s(xt,Gt){if(xt){if("string"==typeof xt)return _(xt,Gt);var Ke=Object.prototype.toString.call(xt).slice(8,-1);if("Object"===Ke&&xt.constructor&&(Ke=xt.constructor.name),"Map"===Ke||"Set"===Ke)return Array.from(xt);if("Arguments"===Ke||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return _(xt,Gt)}}(xt))||Gt&&xt&&"number"==typeof xt.length){Ke&&(xt=Ke);var Ne=0;return function(){return Ne>=xt.length?{done:!0}:{done:!1,value:xt[Ne++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var j={exports:{}};function D(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}j.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:D,changeDefaults:function L(xt){j.exports.defaults=xt}};var ce=/[&<>"']/,W=/[&<>"']/g,G=/[<>"']|&(?!#?\w+;)/,$=/[<>"']|&(?!#?\w+;)/g,te={"&":"&","<":"<",">":">",'"':""","'":"'"},le=function(Gt){return te[Gt]};var Me=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Re(xt){return xt.replace(Me,function(Gt,Ke){return"colon"===(Ke=Ke.toLowerCase())?":":"#"===Ke.charAt(0)?"x"===Ke.charAt(1)?String.fromCharCode(parseInt(Ke.substring(2),16)):String.fromCharCode(+Ke.substring(1)):""})}var me=/(^|[^\[])\^/g;var P=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var de={},re=/^[^:]+:\/*[^/]*$/,V=/^([^:]+:)[\s\S]*$/,ne=/^([^:]+:\/*[^/]*)[\s\S]*$/;function E(xt,Gt){de[" "+xt]||(de[" "+xt]=re.test(xt)?xt+"/":ee(xt,"/",!0));var Ke=-1===(xt=de[" "+xt]).indexOf(":");return"//"===Gt.substring(0,2)?Ke?Gt:xt.replace(V,"$1")+Gt:"/"===Gt.charAt(0)?Ke?Gt:xt.replace(ne,"$1")+Gt:xt+Gt}function ee(xt,Gt,Ke){var Ne=xt.length;if(0===Ne)return"";for(var Ae=0;Ae<Ne;){var Oe=xt.charAt(Ne-Ae-1);if(Oe!==Gt||Ke){if(Oe===Gt||!Ke)break;Ae++}else Ae++}return xt.substr(0,Ne-Ae)}var Fe_escape=function J(xt,Gt){if(Gt){if(ce.test(xt))return xt.replace(W,le)}else if(G.test(xt))return xt.replace($,le);return xt},Fe_unescape=Re,Fe_edit=function Q(xt,Gt){xt=xt.source||xt,Gt=Gt||"";var Ke={replace:function(Ae,Oe){return Oe=(Oe=Oe.source||Oe).replace(me,"$1"),xt=xt.replace(Ae,Oe),Ke},getRegex:function(){return new RegExp(xt,Gt)}};return Ke},Fe_cleanUrl=function Y(xt,Gt,Ke){if(xt){var Ne;try{Ne=decodeURIComponent(Re(Ke)).replace(P,"").toLowerCase()}catch(Ae){return null}if(0===Ne.indexOf("javascript:")||0===Ne.indexOf("vbscript:")||0===Ne.indexOf("data:"))return null}Gt&&!N.test(Ke)&&(Ke=E(Gt,Ke));try{Ke=encodeURI(Ke).replace(/%25/g,"%")}catch(Ae){return null}return Ke},Fe_noopTest={exec:function(){}},Fe_merge=function A(xt){for(var Ke,Ne,Gt=1;Gt<arguments.length;
vendor: 3,483 bytes, line 1
1Gt++)for(Ne in Ke=arguments[Gt])Object.prototype.hasOwnProperty.call(Ke,Ne)&&(xt[Ne]=Ke[Ne]);return xt},Fe_checkSanitizeDeprecation=function K(xt){xt&&xt.sanitize&&!xt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},Fe_repeatString=function ge(xt,Gt){if(Gt<1)return"";for(var Ke="";Gt>1;)1&Gt&&(Ke+=xt),Gt>>=1,xt+=xt;return Ke+xt},he=j.exports.defaults,fe=ee,Ie=function R(xt,Gt){var Ne=xt.replace(/\|/g,function(Oe,Ye,je){for(var Tt=!1,rn=Ye;--rn>=0&&"\\"===je[rn];)Tt=!Tt;return Tt?"|":" |"}).split(/ \|/),Ae=0;if(Ne.length>Gt)Ne.splice(Gt);else for(;Ne.length<Gt;)Ne.push("");for(;Ae<Ne.length;Ae++)Ne[Ae]=Ne[Ae].trim().replace(/\\\|/g,"|");return Ne},Se=Fe_escape,pe=function B(xt,Gt){if(-1===xt.indexOf(Gt[1]))return-1;for(var Ke=xt.length,Ne=0,Ae=0;Ae<Ke;Ae++)if("\\"===xt[Ae])Ae++;else if(xt[Ae]===Gt[0])Ne++;else if(xt[Ae]===Gt[1]&&--Ne<0)return Ae;return-1};function ke(xt,Gt,Ke){var Ne=Gt.href,Ae=Gt.title?Se(Gt.title):null,Oe=xt[1].replace(/\\([\[\]])/g,"$1");return"!"!==xt[0].charAt(0)?{type:"link",raw:Ke,href:Ne,title:Ae,text:Oe}:{type:"image",raw:Ke,href:Ne,title:Ae,text:Se(Oe)}}var Ce=function(){function xt(Ke){this.options=Ke||he}var Gt=xt.prototype;return Gt.space=function(Ne){var Ae=this.rules.block.newline.exec(Ne);if(Ae)return Ae[0].length>1?{type:"space",raw:Ae[0]}:{raw:"\n"}},Gt.code=function(Ne){var Ae=this.rules.block.code.exec(Ne);if(Ae){var Oe=Ae[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ae[0],codeBlockStyle:"indented",text:this.options.pedantic?Oe:fe(Oe,"\n")}}},Gt.fences=function(Ne){var Ae=this.rules.block.fences.exec(Ne);if(Ae){var Oe=Ae[0],Ye=function ae(xt,Gt){var Ke=xt.match(/^(\s+)(?:```)/);if(null===Ke)return Gt;var Ne=Ke[1];return Gt.split("\n").map(function(Ae){var Oe=Ae.match(/^\s+/);return null===Oe?Ae:Oe[0].length>=Ne.length?Ae.slice(Ne.length):Ae}).join("\n")}(Oe,Ae[3]||"");return{type:"code",raw:Oe,lang:Ae[2]?Ae[2].trim():Ae[2],text:Ye}}},Gt.heading=function(Ne){var Ae=this.rules.block.heading.exec(Ne);if(Ae){var Oe=Ae[2].trim();if(/#$/.test(Oe)){var Ye=fe(Oe,"#");(this.options.pedantic||!Ye||/ $/.test(Ye))&&(Oe=Ye.trim())}return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Oe}}},Gt.nptable=function(Ne){var Ae=this.rules.block.nptable.exec(Ne);if(Ae){var Oe={type:"table",header:Ie(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split("\n"):[],raw:Ae[0]};if(Oe.header.length===Oe.align.length){var je,Ye=Oe.align.length;for(je=0;je<Ye;je++)Oe.align[je]=/^ *-+: *$/.test(Oe.align[je])?"right":/^ *:-+: *$/.test(Oe.align[je])?"center":/^ *:-+ *$/.test(Oe.align[je])?"left":null;for(Ye=Oe.cells.length,je=0;je<Ye;je++)Oe.cells[je]=Ie(Oe.cells[je],Oe.header.length);return Oe}}},Gt.hr=function(Ne){var Ae=this.rules.block.hr.exec(Ne);if(Ae)return{type:"hr",raw:Ae[0]}},Gt.blockquote=function(Ne){var Ae=this.rules.block.blockquote.exec(Ne);if(Ae){var Oe=Ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ae[0],text:Oe}}},Gt.list=function(Ne){var Ae=this.rules.block.list.exec(Ne);if(Ae){var xn,Xn,Ai,mi,fi,Ki,pn,gn,En,Oe=Ae[0],Ye=Ae[2],je=Ye.length>1,Tt={type:"list",raw:Oe,ordered:je,start:je?+Ye.slice(0,-1):"",loose:!1,items:[]},rn=Ae[0].match(this.rules.block.item),On=!1,rt=rn.length;Ai=this.rules.block.listItemStart.exec(rn[0]);for(var it=0;
vendor: 4,292 bytes, line 1
1it<rt;it++){if(Oe=xn=rn[it],this.options.pedantic||(En=xn.match(new RegExp("\\n\\s*\\n {0,"+(Ai[0].length-1)+"}\\S")))&&(fi=xn.length-En.index+rn.slice(it+1).join("\n").length,Tt.raw=Tt.raw.substring(0,Tt.raw.length-fi),Oe=xn=xn.substring(0,En.index),rt=it+1),it!==rt-1){if(mi=this.rules.block.listItemStart.exec(rn[it+1]),this.options.pedantic?mi[1].length>Ai[1].length:mi[1].length>=Ai[0].length||mi[1].length>3){rn.splice(it,2,rn[it]+(!this.options.pedantic&&mi[1].length<Ai[0].length&&!rn[it].match(/\n$/)?"":"\n")+rn[it+1]),it--,rt--;continue}(!this.options.pedantic||this.options.smartLists?mi[2][mi[2].length-1]!==Ye[Ye.length-1]:je===(1===mi[2].length))&&(fi=rn.slice(it+1).join("\n").length,Tt.raw=Tt.raw.substring(0,Tt.raw.length-fi),it=rt-1),Ai=mi}Xn=xn.length,~(xn=xn.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(Xn-=xn.length,xn=xn.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+Xn+"}","gm"),"")),xn=fe(xn,"\n"),it!==rt-1&&(Oe+="\n"),Ki=On||/\n\n(?!\s*$)/.test(Oe),it!==rt-1&&(On="\n\n"===Oe.slice(-2),Ki||(Ki=On)),Ki&&(Tt.loose=!0),this.options.gfm&&(gn=void 0,(pn=/^\[[ xX]\] /.test(xn))&&(gn=" "!==xn[1],xn=xn.replace(/^\[[ xX]\] +/,""))),Tt.items.push({type:"list_item",raw:Oe,task:pn,checked:gn,loose:Ki,text:xn})}return Tt}},Gt.html=function(Ne){var Ae=this.rules.block.html.exec(Ne);if(Ae)return{type:this.options.sanitize?"paragraph":"html",raw:Ae[0],pre:!this.options.sanitizer&&("pre"===Ae[1]||"script"===Ae[1]||"style"===Ae[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ae[0]):Se(Ae[0]):Ae[0]}},Gt.def=function(Ne){var Ae=this.rules.block.def.exec(Ne);if(Ae)return Ae[3]&&(Ae[3]=Ae[3].substring(1,Ae[3].length-1)),{type:"def",tag:Ae[1].toLowerCase().replace(/\s+/g," "),raw:Ae[0],href:Ae[2],title:Ae[3]}},Gt.table=function(Ne){var Ae=this.rules.block.table.exec(Ne);if(Ae){var Oe={type:"table",header:Ie(Ae[1].replace(/^ *| *\| *$/g,"")),align:Ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ae[3]?Ae[3].replace(/\n$/,"").split("\n"):[]};if(Oe.header.length===Oe.align.length){Oe.raw=Ae[0];var je,Ye=Oe.align.length;for(je=0;je<Ye;je++)Oe.align[je]=/^ *-+: *$/.test(Oe.align[je])?"right":/^ *:-+: *$/.test(Oe.align[je])?"center":/^ *:-+ *$/.test(Oe.align[je])?"left":null;for(Ye=Oe.cells.length,je=0;je<Ye;je++)Oe.cells[je]=Ie(Oe.cells[je].replace(/^ *\| *| *\| *$/g,""),Oe.header.length);return Oe}}},Gt.lheading=function(Ne){var Ae=this.rules.block.lheading.exec(Ne);if(Ae)return{type:"heading",raw:Ae[0],depth:"="===Ae[2].charAt(0)?1:2,text:Ae[1]}},Gt.paragraph=function(Ne){var Ae=this.rules.block.paragraph.exec(Ne);if(Ae)return{type:"paragraph",raw:Ae[0],text:"\n"===Ae[1].charAt(Ae[1].length-1)?Ae[1].slice(0,-1):Ae[1]}},Gt.text=function(Ne){var Ae=this.rules.block.text.exec(Ne);if(Ae)return{type:"text",raw:Ae[0],text:Ae[0]}},Gt.escape=function(Ne){var Ae=this.rules.inline.escape.exec(Ne);if(Ae)return{type:"escape",raw:Ae[0],text:Se(Ae[1])}},Gt.tag=function(Ne,Ae,Oe){var Ye=this.rules.inline.tag.exec(Ne);if(Ye)return!Ae&&/^<a /i.test(Ye[0])?Ae=!0:Ae&&/^<\/a>/i.test(Ye[0])&&(Ae=!1),!Oe&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ye[0])?Oe=!0:Oe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ye[0])&&(Oe=!1),{type:this.options.sanitize?"text":"html",raw:Ye[0],inLink:Ae,inRawBlock:Oe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ye[0]):Se(Ye[0]):Ye[0]}},Gt.link=function(Ne){var Ae=this.rules.inline.link.exec(Ne);if(Ae){var Oe=Ae[2].trim();if(!this.options.pedantic&&/^</.test(Oe)){if(!/>$/.test(Oe))return;var Ye=fe(Oe.slice(0,-1),"\\");if((Oe.length-Ye.length)%2==0)return}else{var je=pe(Ae[2],"()");if(je>-1){var rn=(0===Ae[0].indexOf("!")?5:4)+Ae[1].length+je;Ae[2]=Ae[2].substring(0,je),Ae[0]=Ae[0].substring(0,rn).trim(),Ae[3]=""}}var On=Ae[2],xn="";if(this.options.pedantic){var Xn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(On);Xn&&(On=Xn[1],xn=Xn[3])}else xn=Ae[3]?Ae[3].slice(1,-1):"";return On=On.trim(),/^</.test(On)&&(On=this.options.pedantic&&!/>$/.test(Oe)?On.slice(1):On.slice(1,-1)),ke(Ae,{href:On&&On.replace(this.rules.inline._escapes,"$1"),title:xn&&xn.replace(this.rules.inline._escapes,"$1")},Ae[0])}},Gt.reflink=function(Ne,Ae){var Oe;if((Oe=this.rules.inline.reflink.exec(Ne))||(Oe=this.rules.inline.nolink.exec(Ne))){var Ye=(Oe[2]||Oe[1]).replace(/\s+/g," ");
1if(!(Ye=Ae[Ye.toLowerCase()])||!Ye.href){var je=Oe[0].charAt(0);return{type:"text",raw:je,text:je}}return ke(Oe,Ye,Oe[0])}},Gt.emStrong=function(Ne,Ae,Oe){void 0===Oe&&(Oe="");var Ye=this.rules.inline.emStrong.lDelim.exec(Ne);if(Ye&&(!Ye[3]||!Oe.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
vendor: 6,691 bytes, line 1
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var je=Ye[1]||Ye[2]||"";if(!je||je&&(""===Oe||this.rules.inline.punctuation.exec(Oe))){var rn,On,Tt=Ye[0].length-1,xn=Tt,Xn=0,Ai="*"===Ye[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Ai.lastIndex=0,Ae=Ae.slice(-1*Ne.length+Tt);null!=(Ye=Ai.exec(Ae));)if(rn=Ye[1]||Ye[2]||Ye[3]||Ye[4]||Ye[5]||Ye[6]){if(On=rn.length,Ye[3]||Ye[4]){xn+=On;continue}if((Ye[5]||Ye[6])&&Tt%3&&!((Tt+On)%3)){Xn+=On;continue}if(!((xn-=On)>0))return On=Math.min(On,On+xn+Xn),Math.min(Tt,On)%2?{type:"em",raw:Ne.slice(0,Tt+Ye.index+On+1),text:Ne.slice(1,Tt+Ye.index+On)}:{type:"strong",raw:Ne.slice(0,Tt+Ye.index+On+1),text:Ne.slice(2,Tt+Ye.index+On-1)}}}}},Gt.codespan=function(Ne){var Ae=this.rules.inline.code.exec(Ne);if(Ae){var Oe=Ae[2].replace(/\n/g," "),Ye=/[^ ]/.test(Oe),je=/^ /.test(Oe)&&/ $/.test(Oe);return Ye&&je&&(Oe=Oe.substring(1,Oe.length-1)),Oe=Se(Oe,!0),{type:"codespan",raw:Ae[0],text:Oe}}},Gt.br=function(Ne){var Ae=this.rules.inline.br.exec(Ne);if(Ae)return{type:"br",raw:Ae[0]}},Gt.del=function(Ne){var Ae=this.rules.inline.del.exec(Ne);if(Ae)return{type:"del",raw:Ae[0],text:Ae[2]}},Gt.autolink=function(Ne,Ae){var Ye,je,Oe=this.rules.inline.autolink.exec(Ne);if(Oe)return je="@"===Oe[2]?"mailto:"+(Ye=Se(this.options.mangle?Ae(Oe[1]):Oe[1])):Ye=Se(Oe[1]),{type:"link",raw:Oe[0],text:Ye,href:je,tokens:[{type:"text",raw:Ye,text:Ye}]}},Gt.url=function(Ne,Ae){var Oe;if(Oe=this.rules.inline.url.exec(Ne)){var Ye,je;if("@"===Oe[2])je="mailto:"+(Ye=Se(this.options.mangle?Ae(Oe[0]):Oe[0]));else{var Tt;do{Tt=Oe[0],Oe[0]=this.rules.inline._backpedal.exec(Oe[0])[0]}while(Tt!==Oe[0]);Ye=Se(Oe[0]),je="www."===Oe[1]?"http://"+Ye:Ye}return{type:"link",raw:Oe[0],text:Ye,href:je,tokens:[{type:"text",raw:Ye,text:Ye}]}}},Gt.inlineText=function(Ne,Ae,Oe){var je,Ye=this.rules.inline.text.exec(Ne);if(Ye)return je=Ae?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ye[0]):Se(Ye[0]):Ye[0]:Se(this.options.smartypants?Oe(Ye[0]):Ye[0]),{type:"text",raw:Ye[0],text:je}},xt}(),Ve=Fe_noopTest,Be=Fe_edit,ut=Fe_merge,Ge={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
1)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Ve,table:Ve,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ge.def=Be(Ge.def).replace("label",Ge._label).replace("title",Ge._title).getRegex(),Ge.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ge.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Ge.item=Be(Ge.item,"gm").replace(/bull/g,Ge.bullet).getRegex(),Ge.listItemStart=Be(/^( *)(bull) */).replace("bull",Ge.bullet).getRegex(),Ge.list=Be(Ge.list).replace(/bull/g,Ge.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ge.def.source+")").getRegex(),Ge._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ge._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ge.html=Be(Ge.html,"i").replace("comment",Ge._comment).replace("tag",Ge._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ge.paragraph=Be(Ge._paragraph).replace("hr",Ge.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge._tag).getRegex(),Ge.blockquote=Be(Ge.blockquote).replace("paragraph",Ge.paragraph).getRegex(),Ge.normal=ut({},Ge),Ge.gfm=ut({},Ge.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ge.gfm.nptable=Be(Ge.gfm.nptable).replace("hr",Ge.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge._tag).getRegex(),Ge.gfm.table=Be(Ge.gfm.table).replace("hr",Ge.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge._tag).getRegex(),Ge.pedantic=ut({},Ge.normal,{html:Be("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ge._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ve,paragraph:Be(Ge.normal._paragraph).replace("hr",Ge.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ge.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var wt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ve,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ve,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};wt.punctuation=Be(wt.punctuation).replace(/punctuation/g,wt._punctuation).getRegex(),wt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,wt.escapedEmSt=/\\\*|\\_/g,wt._comment=Be(Ge._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),wt.emStrong.lDelim=Be(wt.emStrong.lDelim).replace(/punct/g,wt._punctuation).getRegex(),wt.emStrong.rDelimAst=Be(wt.emStrong.rDelimAst,"g").replace(/punct/g,wt._punctuation).getRegex(),wt.emStrong.rDelimUnd=Be(wt.emStrong.rDelimUnd,"g").replace(/punct/g,wt._punctuation).getRegex(),wt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,wt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,wt._email=/[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])?)+(?![-_])/,wt.autolink=Be(wt.autolink).replace("scheme",wt._scheme).replace("email",wt._email).getRegex(),wt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,wt.tag=Be(wt.tag).replace("comment",wt._comment).replace("attribute",wt._attribute).getRegex(),wt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,wt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,wt.link=Be(wt.link).replace("label",wt._label).replace("href",wt._href).replace("title",wt._title).getRegex(),wt.reflink=Be(wt.reflink).replace("label",wt._label).getRegex(),wt.reflinkSearch=Be(wt.reflinkSearch,"g").replace("reflink",wt.reflink).replace("nolink",wt.nolink).getRegex(),wt.
1normal=ut({},wt),wt.pedantic=ut({},wt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Be(/^!?\[(label)\]\((.*?)\)/).replace("label",wt._label).getRegex(),reflink:Be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wt._label).getRegex()}),wt.gfm=ut({},wt.normal,{escape:Be(wt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),wt.gfm.url=Be(wt.gfm.url,"i").replace("email",wt.gfm._extended_email).getRegex(),wt.breaks=ut({},wt.gfm,{br:Be(wt.br).replace("{2,}","*").getRegex(),text:Be(wt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ot={block:Ge,inline:wt},Ft=Ce,ht=j.exports.defaults,Ht=Ot.block,jt=Ot.inline,cn=Fe_repeatString;function hn(xt){return xt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function vn(xt){var Ke,Ne,Gt="",Ae=xt.length;for(Ke=0;Ke<Ae;Ke++)Ne=xt.charCodeAt(Ke),Math.random()>.5&&(Ne="x"+Ne.toString(16)),Gt+="&#"+Ne+";";return Gt}var ln=function(){function xt(Ke){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ke||ht,this.options.tokenizer=this.options.tokenizer||new Ft,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ne={block:Ht.normal,inline:jt.normal};this.options.pedantic?(Ne.block=Ht.pedantic,Ne.inline=jt.pedantic):this.options.gfm&&(Ne.block=Ht.gfm,Ne.inline=this.options.breaks?jt.breaks:jt.gfm),this.tokenizer.rules=Ne}xt.lex=function(Ne,Ae){return new xt(Ae).lex(Ne)},xt.lexInline=function(Ne,Ae){return new xt(Ae).inlineTokens(Ne)};var Gt=xt.prototype;return Gt.lex=function(Ne){return Ne=Ne.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(Ne,this.tokens,!0),this.inline(this.tokens),this.tokens},Gt.blockTokens=function(Ne,Ae,Oe){var je,Tt,rn,On,xn,Xn,Ye=this;for(void 0===Ae&&(Ae=[]),void 0===Oe&&(Oe=!0),this.options.pedantic&&(Ne=Ne.replace(/^ +$/gm,""));Ne;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(mi){return!!(je=mi.call(Ye,Ne,Ae))&&(Ne=Ne.substring(je.raw.length),Ae.push(je),!0)}))){if(je=this.tokenizer.space(Ne)){Ne=Ne.substring(je.raw.length),je.type&&Ae.push(je);continue}if(je=this.tokenizer.code(Ne)){Ne=Ne.substring(je.raw.length),(On=Ae[Ae.length-1])&&"paragraph"===On.type?(On.raw+="\n"+je.raw,On.text+="\n"+je.text):Ae.push(je);continue}if(je=this.tokenizer.fences(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(je=this.tokenizer.heading(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(je=this.tokenizer.nptable(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(je=this.tokenizer.hr(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(je=this.tokenizer.blockquote(Ne)){Ne=Ne.substring(je.raw.length),je.tokens=this.blockTokens(je.text,[],Oe),Ae.push(je);continue}if(je=this.tokenizer.list(Ne)){for(Ne=Ne.substring(je.raw.length),rn=je.items.length,Tt=0;Tt<rn;Tt++)je.items[Tt].tokens=this.blockTokens(je.items[Tt].text,[],!1);Ae.push(je);continue}if(je=this.tokenizer.html(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(Oe&&(je=this.tokenizer.def(Ne))){Ne=Ne.substring(je.raw.length),this.tokens.links[je.tag]||(this.tokens.links[je.tag]={href:je.href,title:je.title});continue}if(je=this.tokenizer.table(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(je=this.tokenizer.lheading(Ne)){Ne=Ne.substring(je.raw.length),Ae.push(je);continue}if(xn=Ne,this.options.extensions&&this.options.extensions.startBlock&&function(){var mi=1/0,fi=Ne.slice(1),Ki=void 0;Ye.options.extensions.startBlock.forEach(function(pn){"number"==typeof(Ki=pn.call(this,fi))&&Ki>=0&&(mi=Math.min(mi,Ki))}),mi<1/0&&mi>=0&&(xn=Ne.substring(0,mi+1))}(),Oe&&(je=this.tokenizer.paragraph(xn))){On=Ae[Ae.length-1],Xn&&"paragraph"===On.type?(On.raw+="\n"+je.raw,On.text+="\n"+je.text):Ae.push(je),Xn=xn.length!==Ne.length,Ne=Ne.substring(je.raw.length);continue}if(je=this.tokenizer.text(Ne)){Ne=Ne.substring(je.raw.length),(On=Ae[Ae.length-1])&&"text"===On.type?(On.raw+="\n"+je.raw,On.text+="\n"+je.text):Ae.push(je);continue}if(Ne){var Ai="Infinite loop on byte: "+Ne.charCodeAt(0);if(this.options.silent){console.error(Ai);break}throw new Error(Ai)}}return Ae},Gt.inline=function(Ne){var Ae,Oe,Ye,je,Tt,rn,On=Ne.length;for(Ae=0;Ae<On;Ae++)switch(rn=Ne[Ae],rn.type){case"paragraph":case"text":case"heading":rn.tokens=[],this.inlineTokens(rn.text,rn.tokens);break;case"table":for(rn.tokens={header:[],cells:[]},je=rn.header.length,Oe=0;Oe<je;Oe++)rn.tokens.header[Oe]=[],this.inlineTokens(rn.header[Oe],rn.tokens.header[Oe]);for(je=rn.cells.length,Oe=0;Oe<je;Oe++)for(Tt=rn.cells[Oe],rn.tokens.cells[Oe]=[],Ye=0;Ye<Tt.length;Ye++)rn.tokens.cells[Oe][Ye]=[],this.inlineTokens(Tt[Ye],rn.tokens.cells[Oe][Ye]);break;
vendor: 4,868 bytes, line 1
1case"blockquote":this.inline(rn.tokens);break;case"list":for(je=rn.items.length,Oe=0;Oe<je;Oe++)this.inline(rn.items[Oe].tokens)}return Ne},Gt.inlineTokens=function(Ne,Ae,Oe,Ye){var je=this;void 0===Ae&&(Ae=[]),void 0===Oe&&(Oe=!1),void 0===Ye&&(Ye=!1);var Tt,rn,On,Xn,Ai,mi,xn=Ne;if(this.tokens.links){var fi=Object.keys(this.tokens.links);if(fi.length>0)for(;null!=(Xn=this.tokenizer.rules.inline.reflinkSearch.exec(xn));)fi.includes(Xn[0].slice(Xn[0].lastIndexOf("[")+1,-1))&&(xn=xn.slice(0,Xn.index)+"["+cn("a",Xn[0].length-2)+"]"+xn.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(Xn=this.tokenizer.rules.inline.blockSkip.exec(xn));)xn=xn.slice(0,Xn.index)+"["+cn("a",Xn[0].length-2)+"]"+xn.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(Xn=this.tokenizer.rules.inline.escapedEmSt.exec(xn));)xn=xn.slice(0,Xn.index)+"++"+xn.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;Ne;)if(Ai||(mi=""),Ai=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(pn){return!!(Tt=pn.call(je,Ne,Ae))&&(Ne=Ne.substring(Tt.raw.length),Ae.push(Tt),!0)}))){if(Tt=this.tokenizer.escape(Ne)){Ne=Ne.substring(Tt.raw.length),Ae.push(Tt);continue}if(Tt=this.tokenizer.tag(Ne,Oe,Ye)){Ne=Ne.substring(Tt.raw.length),Oe=Tt.inLink,Ye=Tt.inRawBlock,(rn=Ae[Ae.length-1])&&"text"===Tt.type&&"text"===rn.type?(rn.raw+=Tt.raw,rn.text+=Tt.text):Ae.push(Tt);continue}if(Tt=this.tokenizer.link(Ne)){Ne=Ne.substring(Tt.raw.length),"link"===Tt.type&&(Tt.tokens=this.inlineTokens(Tt.text,[],!0,Ye)),Ae.push(Tt);continue}if(Tt=this.tokenizer.reflink(Ne,this.tokens.links)){Ne=Ne.substring(Tt.raw.length),rn=Ae[Ae.length-1],"link"===Tt.type?(Tt.tokens=this.inlineTokens(Tt.text,[],!0,Ye),Ae.push(Tt)):rn&&"text"===Tt.type&&"text"===rn.type?(rn.raw+=Tt.raw,rn.text+=Tt.text):Ae.push(Tt);continue}if(Tt=this.tokenizer.emStrong(Ne,xn,mi)){Ne=Ne.substring(Tt.raw.length),Tt.tokens=this.inlineTokens(Tt.text,[],Oe,Ye),Ae.push(Tt);continue}if(Tt=this.tokenizer.codespan(Ne)){Ne=Ne.substring(Tt.raw.length),Ae.push(Tt);continue}if(Tt=this.tokenizer.br(Ne)){Ne=Ne.substring(Tt.raw.length),Ae.push(Tt);continue}if(Tt=this.tokenizer.del(Ne)){Ne=Ne.substring(Tt.raw.length),Tt.tokens=this.inlineTokens(Tt.text,[],Oe,Ye),Ae.push(Tt);continue}if(Tt=this.tokenizer.autolink(Ne,vn)){Ne=Ne.substring(Tt.raw.length),Ae.push(Tt);continue}if(!Oe&&(Tt=this.tokenizer.url(Ne,vn))){Ne=Ne.substring(Tt.raw.length),Ae.push(Tt);continue}if(On=Ne,this.options.extensions&&this.options.extensions.startInline&&function(){var pn=1/0,gn=Ne.slice(1),En=void 0;je.options.extensions.startInline.forEach(function(rt){"number"==typeof(En=rt.call(this,gn))&&En>=0&&(pn=Math.min(pn,En))}),pn<1/0&&pn>=0&&(On=Ne.substring(0,pn+1))}(),Tt=this.tokenizer.inlineText(On,Ye,hn)){Ne=Ne.substring(Tt.raw.length),"_"!==Tt.raw.slice(-1)&&(mi=Tt.raw.slice(-1)),Ai=!0,(rn=Ae[Ae.length-1])&&"text"===rn.type?(rn.raw+=Tt.raw,rn.text+=Tt.text):Ae.push(Tt);continue}if(Ne){var Ki="Infinite loop on byte: "+Ne.charCodeAt(0);if(this.options.silent){console.error(Ki);break}throw new Error(Ki)}}return Ae},function S(xt,Gt,Ke){return Gt&&Z(xt.prototype,Gt),Ke&&Z(xt,Ke),xt}(xt,null,[{key:"rules",get:function(){return{block:Ht,inline:jt}}}]),xt}(),Jt=j.exports.defaults,Xe=Fe_cleanUrl,qe=Fe_escape,Pe=function(){function xt(Ke){this.options=Ke||Jt}var Gt=xt.prototype;return Gt.code=function(Ne,Ae,Oe){var Ye=(Ae||"").match(/\S*/)[0];if(this.options.highlight){var je=this.options.highlight(Ne,Ye);null!=je&&je!==Ne&&(Oe=!0,Ne=je)}return Ne=Ne.replace(/\n$/,"")+"\n",Ye?'<pre><code class="'+this.options.langPrefix+qe(Ye,!0)+'">'+(Oe?Ne:qe(Ne,!0))+"</code></pre>\n":"<pre><code>"+(Oe?Ne:qe(Ne,!0))+"</code></pre>\n"},Gt.blockquote=function(Ne){return"<blockquote>\n"+Ne+"</blockquote>\n"},Gt.html=function(Ne){return Ne},Gt.heading=function(Ne,Ae,Oe,Ye){return this.options.headerIds?"<h"+Ae+' id="'+this.options.headerPrefix+Ye.slug(Oe)+'">'+Ne+"</h"+Ae+">\n":"<h"+Ae+">"+Ne+"</h"+Ae+">\n"},Gt.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},Gt.list=function(Ne,Ae,Oe){var Ye=Ae?"ol":"ul";return"<"+Ye+(Ae&&1!==Oe?' start="'+Oe+'"':"")+">\n"+Ne+"</"+Ye+">\n"},Gt.listitem=function(Ne){return"<li>"+Ne+"</li>\n"},Gt.checkbox=function(Ne){return"<input "+(Ne?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Gt.paragraph=function(Ne){return"<p>"+Ne+"</p>\n"},Gt.table=function(Ne,Ae){return Ae&&(Ae="<tbody>"+Ae+"</tbody>"),"<table>\n<thead>\n"+Ne+"</thead>\n"+Ae+"</table>\n"},Gt.tablerow=function(Ne){return"<tr>\n"+Ne+"</tr>\n"},Gt.tablecell=function(Ne,Ae){var Oe=Ae.header?"th":"td";return(Ae.align?"<"+Oe+' align="'+Ae.align+'">':"<"+Oe+">")+Ne+"</"+Oe+">\n"},Gt.strong=function(Ne){return"<strong>"+Ne+"</strong>"},Gt.em=function(Ne){return"<em>"+Ne+"</em>"},Gt.codespan=function(Ne){return"<code>
vendor: 11,326 bytes, line 1
1"+Ne+"</code>"},Gt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Gt.del=function(Ne){return"<del>"+Ne+"</del>"},Gt.link=function(Ne,Ae,Oe){if(null===(Ne=Xe(this.options.sanitize,this.options.baseUrl,Ne)))return Oe;var Ye='<a href="'+qe(Ne)+'"';return Ae&&(Ye+=' title="'+Ae+'"'),Ye+">"+Oe+"</a>"},Gt.image=function(Ne,Ae,Oe){if(null===(Ne=Xe(this.options.sanitize,this.options.baseUrl,Ne)))return Oe;var Ye='<img src="'+Ne+'" alt="'+Oe+'"';return Ae&&(Ye+=' title="'+Ae+'"'),Ye+(this.options.xhtml?"/>":">")},Gt.text=function(Ne){return Ne},xt}(),tt=function(){function xt(){}var Gt=xt.prototype;return Gt.strong=function(Ne){return Ne},Gt.em=function(Ne){return Ne},Gt.codespan=function(Ne){return Ne},Gt.del=function(Ne){return Ne},Gt.html=function(Ne){return Ne},Gt.text=function(Ne){return Ne},Gt.link=function(Ne,Ae,Oe){return""+Oe},Gt.image=function(Ne,Ae,Oe){return""+Oe},Gt.br=function(){return""},xt}(),bt=function(){function xt(){this.seen={}}var Gt=xt.prototype;return Gt.serialize=function(Ne){return Ne.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Gt.getNextSafeSlug=function(Ne,Ae){var Oe=Ne,Ye=0;if(this.seen.hasOwnProperty(Oe)){Ye=this.seen[Ne];do{Oe=Ne+"-"+ ++Ye}while(this.seen.hasOwnProperty(Oe))}return Ae||(this.seen[Ne]=Ye,this.seen[Oe]=0),Oe},Gt.slug=function(Ne,Ae){void 0===Ae&&(Ae={});var Oe=this.serialize(Ne);return this.getNextSafeSlug(Oe,Ae.dryrun)},xt}(),un=Pe,It=tt,Et=bt,Rt=j.exports.defaults,Wt=Fe_unescape,Dn=ln,Gn=function(){function xt(Ke){this.options=Ke||Rt,this.options.renderer=this.options.renderer||new un,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new It,this.slugger=new Et}xt.parse=function(Ne,Ae){return new xt(Ae).parse(Ne)},xt.parseInline=function(Ne,Ae){return new xt(Ae).parseInline(Ne)};var Gt=xt.prototype;return Gt.parse=function(Ne,Ae){void 0===Ae&&(Ae=!0);var Ye,je,Tt,rn,On,xn,Xn,Ai,mi,fi,Ki,pn,gn,En,rt,it,ue,ve,at,Oe="",q=Ne.length;for(Ye=0;Ye<q;Ye++)if(fi=Ne[Ye],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[fi.type]&&(!1!==(at=this.options.extensions.renderers[fi.type].call(this,fi))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(fi.type)))Oe+=at||"";else switch(fi.type){case"space":continue;case"hr":Oe+=this.renderer.hr();continue;case"heading":Oe+=this.renderer.heading(this.parseInline(fi.tokens),fi.depth,Wt(this.parseInline(fi.tokens,this.textRenderer)),this.slugger);continue;case"code":Oe+=this.renderer.code(fi.text,fi.lang,fi.escaped);continue;case"table":for(Ai="",Xn="",rn=fi.header.length,je=0;je<rn;je++)Xn+=this.renderer.tablecell(this.parseInline(fi.tokens.header[je]),{header:!0,align:fi.align[je]});for(Ai+=this.renderer.tablerow(Xn),mi="",rn=fi.cells.length,je=0;je<rn;je++){for(Xn="",On=(xn=fi.tokens.cells[je]).length,Tt=0;Tt<On;Tt++)Xn+=this.renderer.tablecell(this.parseInline(xn[Tt]),{header:!1,align:fi.align[Tt]});mi+=this.renderer.tablerow(Xn)}Oe+=this.renderer.table(Ai,mi);continue;case"blockquote":mi=this.parse(fi.tokens),Oe+=this.renderer.blockquote(mi);continue;case"list":for(Ki=fi.ordered,pn=fi.start,gn=fi.loose,rn=fi.items.length,mi="",je=0;je<rn;je++)it=(rt=fi.items[je]).checked,ue=rt.task,En="",rt.task&&(ve=this.renderer.checkbox(it),gn?rt.tokens.length>0&&"text"===rt.tokens[0].type?(rt.tokens[0].text=ve+" "+rt.tokens[0].text,rt.tokens[0].tokens&&rt.tokens[0].tokens.length>0&&"text"===rt.tokens[0].tokens[0].type&&(rt.tokens[0].tokens[0].text=ve+" "+rt.tokens[0].tokens[0].text)):rt.tokens.unshift({type:"text",text:ve}):En+=ve),En+=this.parse(rt.tokens,gn),mi+=this.renderer.listitem(En,ue,it);Oe+=this.renderer.list(mi,Ki,pn);continue;case"html":Oe+=this.renderer.html(fi.text);continue;case"paragraph":Oe+=this.renderer.paragraph(this.parseInline(fi.tokens));continue;case"text":for(mi=fi.tokens?this.parseInline(fi.tokens):fi.text;Ye+1<q&&"text"===Ne[Ye+1].type;)mi+="\n"+((fi=Ne[++Ye]).tokens?this.parseInline(fi.tokens):fi.text);Oe+=Ae?this.renderer.paragraph(mi):mi;continue;default:var xe='Token with "'+fi.type+'" type was not found.';if(this.options.silent)return void console.error(xe);throw new Error(xe)}return Oe},Gt.parseInline=function(Ne,Ae){Ae=Ae||this.renderer;var Ye,je,Tt,Oe="",rn=Ne.length;for(Ye=0;Ye<rn;Ye++)if(je=Ne[Ye],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[je.type]&&(!1!==(Tt=this.options.extensions.renderers[je.type].call(this,je))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(je.type)))Oe+=Tt||"";else switch(je.type){case"escape":case"text":Oe+=Ae.text(je.text);break;case"html":Oe+=Ae.html(je.text);break;case"link":Oe+=Ae.link(je.href,je.title,this.parseInline(je.tokens,Ae));break;case"image":Oe+=Ae.image(je.href,je.title,je.text);break;case"strong":Oe+=Ae.strong(this.parseInline(je.tokens,Ae));break;case"em":Oe+=Ae.em(this.parseInline(je.tokens,Ae));break;case"codespan":Oe+=Ae.codespan(je.text);break;case"br":Oe+=Ae.br();break;case"del":Oe+=Ae.del(this.parseInline(je.tokens,Ae));break;default:var On='Token with "'+je.type+'" type was not found.';if(this.options.silent)return void console.error(On);throw new Error(On)}return Oe},xt}(),Zn=Ce,zn=Pe,nn=tt,Vn=bt,Yt=Fe_merge,Rn=Fe_checkSanitizeDeprecation,Mt=Fe_escape,kt=j.exports.getDefaults,We=j.exports.changeDefaults,Ue=j.exports.defaults;function Qe(xt,Gt,Ke){if(null==xt)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof xt)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(xt)+", string expected");if("function"==typeof Gt&&(Ke=Gt,Gt=null),Gt=Yt({},Qe.defaults,Gt||{}),Rn(Gt),Ke){var Ae,Ne=Gt.highlight;try{Ae=Dn.lex(xt,Gt)}catch(Tt){return Ke(Tt)}var Oe=function(rn){var On;if(!rn)try{Gt.walkTokens&&Qe.walkTokens(Ae,Gt.walkTokens),On=Gn.parse(Ae,Gt)}catch(xn){rn=xn}return Gt.highlight=Ne,rn?Ke(rn):Ke(null,On)};if(!Ne||Ne.length<3||(delete Gt.highlight,!Ae.length))return Oe();var Ye=0;return Qe.walkTokens(Ae,function(Tt){"code"===Tt.type&&(Ye++,setTimeout(function(){Ne(Tt.text,Tt.lang,function(rn,On){if(rn)return Oe(rn);null!=On&&On!==Tt.text&&(Tt.text=On,Tt.escaped=!0),0==--Ye&&Oe()})},0))}),void(0===Ye&&Oe())}try{var je=Dn.lex(xt,Gt);return Gt.walkTokens&&Qe.walkTokens(je,Gt.walkTokens),Gn.parse(je,Gt)}catch(Tt){if(Tt.message+="\nPlease report this to https://github.com/markedjs/marked.",Gt.silent)return"<p>An error occurred:</p><pre>"+Mt(Tt.message+"",!0)+"</pre>";throw Tt}}return Qe.options=Qe.setOptions=function(xt){return Yt(Qe.defaults,xt),We(Qe.defaults),Qe},Qe.getDefaults=kt,Qe.defaults=Ue,Qe.use=function(){for(var xt=this,Gt=arguments.length,Ke=new Array(Gt),Ne=0;Ne<Gt;Ne++)Ke[Ne]=arguments[Ne];var Ye,Ae=Yt.apply(void 0,[{}].concat(Ke)),Oe=Qe.defaults.extensions||{renderers:{},childTokens:{}};Ke.forEach(function(je){if(je.extensions&&(Ye=!0,je.extensions.forEach(function(rn){if(!rn.name)throw new Error("extension name required");if(rn.renderer){var On=Oe.renderers?Oe.renderers[rn.name]:null;Oe.renderers[rn.name]=On?function(){for(var xn=arguments.length,Xn=new Array(xn),Ai=0;Ai<xn;Ai++)Xn[Ai]=arguments[Ai];var mi=rn.renderer.apply(this,Xn);return!1===mi&&(mi=On.apply(this,Xn)),mi}:rn.renderer}if(rn.tokenizer){if(!rn.level||"block"!==rn.level&&"inline"!==rn.level)throw new Error("extension level must be 'block' or 'inline'");Oe[rn.level]?Oe[rn.level].unshift(rn.tokenizer):Oe[rn.level]=[rn.tokenizer],rn.start&&("block"===rn.level?Oe.startBlock?Oe.startBlock.push(rn.start):Oe.startBlock=[rn.start]:"inline"===rn.level&&(Oe.startInline?Oe.startInline.push(rn.start):Oe.startInline=[rn.start]))}rn.childTokens&&(Oe.childTokens[rn.name]=rn.childTokens)})),je.renderer&&function(){var rn=Qe.defaults.renderer||new zn,On=function(Ai){var mi=rn[Ai];rn[Ai]=function(){for(var fi=arguments.length,Ki=new Array(fi),pn=0;pn<fi;pn++)Ki[pn]=arguments[pn];var gn=je.renderer[Ai].apply(rn,Ki);return!1===gn&&(gn=mi.apply(rn,Ki)),gn}};for(var xn in je.renderer)On(xn);Ae.renderer=rn}(),je.tokenizer&&function(){var rn=Qe.defaults.tokenizer||new Zn,On=function(Ai){var mi=rn[Ai];rn[Ai]=function(){for(var fi=arguments.length,Ki=new Array(fi),pn=0;pn<fi;pn++)Ki[pn]=arguments[pn];var gn=je.tokenizer[Ai].apply(rn,Ki);return!1===gn&&(gn=mi.apply(rn,Ki)),gn}};for(var xn in je.tokenizer)On(xn);Ae.tokenizer=rn}(),je.walkTokens){var Tt=Qe.defaults.walkTokens;Ae.walkTokens=function(rn){je.walkTokens.call(xt,rn),Tt&&Tt(rn)}}Ye&&(Ae.extensions=Oe),Qe.setOptions(Ae)})},Qe.walkTokens=function(xt,Gt){for(var Ae,Ke=function(){var Ye=Ae.value;switch(Gt(Ye),Ye.type){case"table":for(var Tt,je=y(Ye.tokens.header);!(Tt=je()).done;)Qe.walkTokens(Tt.value,Gt);for(var xn,On=y(Ye.tokens.cells);!(xn=On()).done;)for(var mi,Ai=y(xn.value);!(mi=Ai()).done;)Qe.walkTokens(mi.value,Gt);break;case"list":Qe.walkTokens(Ye.items,Gt);break;default:Qe.defaults.extensions&&Qe.defaults.extensions.childTokens&&Qe.defaults.extensions.childTokens[Ye.type]?Qe.defaults.extensions.childTokens[Ye.type].forEach(function(Ki){Qe.walkTokens(Ye[Ki],Gt)}):Ye.tokens&&Qe.walkTokens(Ye.tokens,Gt)}},Ne=y(xt);!(Ae=Ne()).done;)Ke()},Qe.parseInline=function(xt,Gt){if(null==xt)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof xt)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(xt)+", string expected");Gt=Yt({},Qe.defaults,Gt||{}),Rn(Gt);try{var Ke=Dn.lexInline(xt,Gt);return Gt.walkTokens&&Qe.walkTokens(Ke,Gt.walkTokens),Gn.parseInline(Ke,Gt)}catch(Ne){if(Ne.message+="\nPlease report this to https://github.com/markedjs/marked.",Gt.silent)return"<p>An error occurred:</p><pre>"+Mt(Ne.message+"",!0)+"</pre>";throw Ne}},Qe.Parser=Gn,Qe.parser=Gn.parse,Qe.Renderer=zn,Qe.TextRenderer=nn,Qe.Lexer=Dn,Qe.lexer=Dn.lex,Qe.Tokenizer=Zn,Qe.Slugger=Vn,Qe.parse=Qe,Qe}()},6036:function(module,__unused_webpack_exports,__webpack_require__){var _asyncToGenerator=__webpack_require__(8926).default,S;S=function(){return function(Qt){var Z={};function S(s){if(Z[s])return Z[s].exports;var _=Z[s]={i:s,l:!1,exports:{}};return Qt[s].call(_.exports,_,_.exports,S),_.l=!0,_.exports}return S.m=Qt,S.c=Z,S.d=function(s,_,y){S.o(s,_)||Object.defineProperty(s,_,{enumerable:!0,get:y})},S.r=function(s){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},S.t=function(s,_){if(1&_&&(s=S(s)),8&_||4&_&&"object"==typeof s&&s&&s.__esModule)return s;var y=Object.create(null);if(S.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:s}),2&_&&"string"!=typeof s)for(var j in s)S.d(y,j,function(D){return s[D]}.bind(null,j));return y},S.n=function(s){var _=s&&s.__esModule?function(){return s.default}:function(){return s};return S.d(_,"a",_),_},S.o=function(s,_){return Object.prototype.hasOwnProperty.call(s,_)},S.p="",S(S.s=0)}([function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Object.defineProperty(Z,"addLinkAttributes",{enumerable:!0,get:function(){return s.addLinkAttributes}}),Object.defineProperty(Z,"getFilenameFromUrl",{enumerable:!0,get:function(){return s.getFilenameFromUrl}}
1),Object.defineProperty(Z,"LinkTarget",{enumerable:!0,get:function(){return s.LinkTarget}}),Object.defineProperty(Z,"loadScript",{enumerable:!0,get:function(){return s.loadScript}}),Object.defineProperty(Z,"PDFDateString",{enumerable:!0,get:function(){return s.PDFDateString}}),Object.defineProperty(Z,"RenderingCancelledException",{enumerable:!0,get:function(){return s.RenderingCancelledException}}),Object.defineProperty(Z,"build",{enumerable:!0,get:function(){return _.build}}),Object.defineProperty(Z,"getDocument",{enumerable:!0,get:function(){return _.getDocument}}),Object.defineProperty(Z,"LoopbackPort",{enumerable:!0,get:function(){return _.LoopbackPort}}),Object.defineProperty(Z,"PDFDataRangeTransport",{enumerable:!0,get:function(){return _.PDFDataRangeTransport}}),Object.defineProperty(Z,"PDFWorker",{enumerable:!0,get:function(){return _.PDFWorker}}),Object.defineProperty(Z,"version",{enumerable:!0,get:function(){return _.version}}),Object.defineProperty(Z,"CMapCompressionType",{enumerable:!0,get:function(){return y.CMapCompressionType}}),Object.defineProperty(Z,"createObjectURL",{enumerable:!0,get:function(){return y.createObjectURL}}),Object.defineProperty(Z,"createPromiseCapability",{enumerable:!0,get:function(){return y.createPromiseCapability}}),Object.defineProperty(Z,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return y.createValidAbsoluteUrl}}),Object.defineProperty(Z,"InvalidPDFException",{enumerable:!0,get:function(){return y.InvalidPDFException}}),Object.defineProperty(Z,"MissingPDFException",{enumerable:!0,get:function(){return y.MissingPDFException}}),Object.defineProperty(Z,"OPS",{enumerable:!0,get:function(){return y.OPS}}),Object.defineProperty(Z,"PasswordResponses",{enumerable:!0,get:function(){return y.PasswordResponses}}),Object.defineProperty(Z,"PermissionFlag",{enumerable:!0,get:function(){return y.PermissionFlag}}),Object.defineProperty(Z,"removeNullCharacters",{enumerable:!0,get:function(){return y.removeNullCharacters}}),Object.defineProperty(Z,"shadow",{enumerable:!0,get:function(){return y.shadow}}),Object.defineProperty(Z,"UnexpectedResponseException",{enumerable:!0,get:function(){return y.UnexpectedResponseException}}),Object.defineProperty(Z,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return y.UNSUPPORTED_FEATURES}}),Object.defineProperty(Z,"Util",{enumerable:!0,get:function(){return y.Util}}),Object.defineProperty(Z,"VerbosityLevel",{enumerable:!0,get:function(){return y.VerbosityLevel}}),Object.defineProperty(Z,"AnnotationLayer",{enumerable:!0,get:function(){return j.AnnotationLayer}}),Object.defineProperty(Z,"apiCompatibilityParams",{enumerable:!0,get:function(){return D.apiCompatibilityParams}}),Object.defineProperty(Z,"GlobalWorkerOptions",{enumerable:!0,get:function(){return L.GlobalWorkerOptions}}),Object.defineProperty(Z,"renderTextLayer",{enumerable:!0,get:function(){return ce.renderTextLayer}}),Object.defineProperty(Z,"SVGGraphics",{enumerable:!0,get:function(){return W.SVGGraphics}});var s=S(1),_=S(5),y=S(2),j=S(16),D=S(7),L=S(10),ce=S(17),W=S(18);{const{isNodeJS:te}=S(4);if(te){const le=S(19).PDFNodeStream;(0,_.setPDFNetworkStreamFactory)(J=>new le(J))}else{const le=S(22).PDFNetworkStream;let J;(0,s.isFetchSupported)()&&(J=S(23).PDFFetchStream),(0,_.setPDFNetworkStreamFactory)(Me=>J&&(0,s.isValidFetchUrl)(Me.url)?new J(Me):new le(Me))}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.addLinkAttributes=function $(N,{url:Y,target:de,rel:re,enabled:V=!0}={}){(0,s.assert)(Y&&"string"==typeof Y,'addLinkAttributes: A valid "url" parameter must provided.');const ne=(0,s.removeNullCharacters)(Y);V?N.href=N.title=ne:(N.href="",N.title=`Disabled: ${ne}`,N.onclick=()=>!1);let E="";switch(de){case G.NONE:break;case G.SELF:E="_self";break;case G.BLANK:E="_blank";break;case G.PARENT:E="_parent";break;case G.TOP:E="_top"}N.target=E,N.rel="string"==typeof re?re:_},Z.getFilenameFromUrl=function te(N){const Y=N.indexOf("#"),de=N.indexOf("?"),re=Math.min(Y>0?Y:N.length,de>0?de:N.length);return N.substring(N.lastIndexOf("/",re)+1,re)},Z.isFetchSupported=J,Z.isValidFetchUrl=Me,Z.loadScript=function Re(N){return new Promise((Y,de)=>
1{const re=document.createElement("script");re.src=N,re.onload=Y,re.onerror=function(){de(new Error(`Cannot load script at: ${re.src}`))},(document.head||document.documentElement).appendChild(re)})},Z.deprecated=function me(N){console.log("Deprecated API usage: "+N)},Z.PDFDateString=Z.StatTimer=Z.DOMSVGFactory=Z.DOMCMapReaderFactory=Z.DOMCanvasFactory=Z.DEFAULT_LINK_REL=Z.LinkTarget=Z.RenderingCancelledException=Z.PageViewport=void 0;var s=S(2);const _="noopener noreferrer nofollow";Z.DEFAULT_LINK_REL=_;const y="http://www.w3.org/2000/svg";Z.DOMCanvasFactory=class j{create(Y,de){if(Y<=0||de<=0)throw new Error("Invalid canvas size");const re=document.createElement("canvas"),V=re.getContext("2d");return re.width=Y,re.height=de,{canvas:re,context:V}}reset(Y,de,re){if(!Y.canvas)throw new Error("Canvas is not specified");if(de<=0||re<=0)throw new Error("Invalid canvas size");Y.canvas.width=de,Y.canvas.height=re}destroy(Y){if(!Y.canvas)throw new Error("Canvas is not specified");Y.canvas.width=0,Y.canvas.height=0,Y.canvas=null,Y.context=null}},Z.DOMCMapReaderFactory=class D{constructor({baseUrl:Y=null,isCompressed:de=!1}){this.baseUrl=Y,this.isCompressed=de}fetch({name:Y}){var de=this;return _asyncToGenerator(function*(){if(!de.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!Y)throw new Error("CMap name must be specified.");const re=de.baseUrl+Y+(de.isCompressed?".bcmap":""),V=de.isCompressed?s.CMapCompressionType.BINARY:s.CMapCompressionType.NONE;return J()&&Me(re,document.baseURI)?fetch(re).then(function(){var ne=_asyncToGenerator(function*(E){if(!E.ok)throw new Error(E.statusText);let M;return M=de.isCompressed?new Uint8Array(yield E.arrayBuffer()):(0,s.stringToBytes)(yield E.text()),{cMapData:M,compressionType:V}});return function(E){return ne.apply(this,arguments)}}()).catch(ne=>{throw new Error(`Unable to load ${de.isCompressed?"binary ":""}CMap at: ${re}`)}):new Promise((ne,E)=>{const M=new XMLHttpRequest;M.open("GET",re,!0),de.isCompressed&&(M.responseType="arraybuffer"),M.onreadystatechange=()=>{if(M.readyState===XMLHttpRequest.DONE){if(200===M.status||0===M.status){let A;if(de.isCompressed&&M.response?A=new Uint8Array(M.response):!de.isCompressed&&M.responseText&&(A=(0,s.stringToBytes)(M.responseText)),A)return void ne({cMapData:A,compressionType:V})}E(new Error(M.statusText))}},M.send(null)}).catch(ne=>{throw new Error(`Unable to load ${de.isCompressed?"binary ":""}CMap at: ${re}`)})})()}},Z.DOMSVGFactory=class L{create(Y,de){(0,s.assert)(Y>0&&de>0,"Invalid SVG dimensions");const re=document.createElementNS(y,"svg:svg");return re.setAttribute("version","1.1"),re.setAttribute("width",Y+"px"),re.setAttribute("height",de+"px"),re.setAttribute("preserveAspectRatio","none"),re.setAttribute("viewBox","0 0 "+Y+" "+de),re}createElement(Y){return(0,s.assert)("string"==typeof Y,"Invalid SVG element type"),document.createElementNS(y,Y)}};class ce{constructor({viewBox:Y,scale:de,rotation:re,offsetX:V=0,offsetY:ne=0,dontFlip:E=!1}){this.viewBox=Y,this.scale=de,this.rotation=re,this.offsetX=V,this.offsetY=ne;const M=(Y[2]+Y[0])/2,A=(Y[3]+Y[1])/2;let R,ee,B,K,ge,Fe,he,fe;switch(re=(re%=360)<0?re+360:re){case 180:R=-1,ee=0,B=0,K=1;break;case 90:R=0,ee=1,B=1,K=0;break;case 270:R=0,ee=-1,B=-1,K=0;break;case 0:R=1,ee=0,B=0,K=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}E&&(B=-B,K=-K),0===R?(ge=Math.abs(A-Y[1])*de+V,Fe=Math.abs(M-Y[0])*de+ne,he=Math.abs(Y[3]-Y[1])*de,fe=Math.abs(Y[2]-Y[0])*de):(ge=Math.abs(M-Y[0])*de+V,Fe=Math.abs(A-Y[1])*de+ne,he=Math.abs(Y[2]-Y[0])*de,fe=Math.abs(Y[3]-Y[1])*de),this.transform=[R*de,ee*de,B*de,K*de,ge-R*de*M-B*de*A,Fe-ee*de*M-K*de*A],this.width=he,this.height=fe}clone({scale:Y=this.scale,rotation:de=this.rotation,offsetX:re=this.offsetX,offsetY:V=this.offsetY,dontFlip:ne=!1}={}){return new ce({viewBox:this.viewBox.slice(),scale:Y,rotation:de,offsetX:re,offsetY:V,dontFlip:ne})}convertToViewportPoint(Y,de){return s.Util.applyTransform([Y,de],this.transform)}convertToViewportRectangle(Y){const de=s.Util.applyTransform([Y[0],Y[1]],this.transform),re=s.Util.applyTransform([Y[2],Y[3]],this.transform);return[de[0],de[1],re[0],re[1]]}convertToPdfPoint(Y,de){return s.Util.applyInverseTransform([Y,de],this.transform)}}Z.PageViewport=ce,Z.RenderingCancelledException=class W extends s.BaseException{constructor(Y,de){super(Y),this.type=de}};const G={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function J(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function Me(N,Y){try{const{protocol:de}=Y?new URL(N,Y):new URL(N);return"http:"===de||"https:"===de}catch(de){return!1}}let Q;Z.LinkTarget=G,Z.StatTimer=class le{constructor(){this.started=Object.create(null),this.times=[]}time(Y){Y in this.started&&(0,s.warn)(`Timer is already running for ${Y}`),this.started[Y]=Date.now()}timeEnd(Y){Y in this.started||(0,s.warn)(`Timer has not been started for ${Y}`),this.times.push({name:Y,start:this.started[Y],end:Date.now()}),delete this.started[Y]}toString(){const Y=[];let de=0;for(const re of this.times){const V=re.name;V.length>de&&(de=V.length)}for(const re of this.times){const V=re.end-re.start;
vendor: 6,515 bytes, line 1
1Y.push(`${re.name.padEnd(de)} ${V}ms\n`)}return Y.join("")}},Z.PDFDateString=class P{static toDateObject(Y){if(!Y||!(0,s.isString)(Y))return null;Q||(Q=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const de=Q.exec(Y);if(!de)return null;const re=parseInt(de[1],10);let V=parseInt(de[2],10);V=V>=1&&V<=12?V-1:0;let ne=parseInt(de[3],10);ne=ne>=1&&ne<=31?ne:1;let E=parseInt(de[4],10);E=E>=0&&E<=23?E:0;let M=parseInt(de[5],10);M=M>=0&&M<=59?M:0;let A=parseInt(de[6],10);A=A>=0&&A<=59?A:0;const R=de[7]||"Z";let ee=parseInt(de[8],10);ee=ee>=0&&ee<=23?ee:0;let B=parseInt(de[9],10)||0;return B=B>=0&&B<=59?B:0,"-"===R?(E+=ee,M+=B):"+"===R&&(E-=ee,M-=B),new Date(Date.UTC(re,V,ne,E,M,A))}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.arrayByteLength=ut,Z.arraysToBytes=function Ge(Rt){const Wt=Rt.length;if(1===Wt&&Rt[0]instanceof Uint8Array)return Rt[0];let Pt=0;for(let Zn=0;Zn<Wt;Zn++)Pt+=ut(Rt[Zn]);let Dn=0;const Gn=new Uint8Array(Pt);for(let Zn=0;Zn<Wt;Zn++){let zn=Rt[Zn];zn instanceof Uint8Array||(zn="string"==typeof zn?Be(zn):new Uint8Array(zn));const nn=zn.byteLength;Gn.set(zn,Dn),Dn+=nn}return Gn},Z.assert=A,Z.bytesToString=function Ve(Rt){A(null!==Rt&&"object"==typeof Rt&&void 0!==Rt.length,"Invalid argument for bytesToString");const Wt=Rt.length;if(Wt<8192)return String.fromCharCode.apply(null,Rt);const Dn=[];for(let Gn=0;Gn<Wt;Gn+=8192){const Zn=Math.min(Gn+8192,Wt),zn=Rt.subarray(Gn,Zn);Dn.push(String.fromCharCode.apply(null,zn))}return Dn.join("")},Z.createPromiseCapability=function It(){const Rt=Object.create(null);let Wt=!1;return Object.defineProperty(Rt,"settled",{get:()=>Wt}),Rt.promise=new Promise(function(Pt,Dn){Rt.resolve=function(Gn){Wt=!0,Pt(Gn)},Rt.reject=function(Gn){Wt=!0,Dn(Gn)}}),Rt},Z.getVerbosityLevel=function V(){return de},Z.info=function ne(Rt){de>=me.INFOS&&console.log(`Info: ${Rt}`)},Z.isArrayBuffer=function bt(Rt){return"object"==typeof Rt&&null!==Rt&&void 0!==Rt.byteLength},Z.isArrayEqual=function un(Rt,Wt){return Rt.length===Wt.length&&Rt.every(function(Pt,Dn){return Pt===Wt[Dn]})},Z.isBool=function qe(Rt){return"boolean"==typeof Rt},Z.isEmptyObj=function Xe(Rt){for(const Wt in Rt)return!1;return!0},Z.isNum=function Pe(Rt){return"number"==typeof Rt},Z.isString=function tt(Rt){return"string"==typeof Rt},Z.isSameOrigin=function R(Rt,Wt){let Pt;try{if(Pt=new URL(Rt),!Pt.origin||"null"===Pt.origin)return!1}catch(Gn){return!1}const Dn=new URL(Wt,Pt);return Pt.origin===Dn.origin},Z.createValidAbsoluteUrl=function B(Rt,Wt){if(!Rt)return null;try{const Pt=Wt?new URL(Rt,Wt):new URL(Rt);if(function ee(Rt){if(!Rt)return!1;switch(Rt.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(Pt))return Pt}catch(Pt){}return null},Z.removeNullCharacters=function Ce(Rt){return"string"!=typeof Rt?(E("The argument for removeNullCharacters must be a string."),Rt):Rt.replace(ae,"")},Z.setVerbosityLevel=function re(Rt){Number.isInteger(Rt)&&(de=Rt)},Z.shadow=K,Z.string32=function wt(Rt){return String.fromCharCode(Rt>>24&255,Rt>>16&255,Rt>>8&255,255&Rt)},Z.stringToBytes=Be,Z.stringToPDFString=function vn(Rt){const Wt=Rt.length,Pt=[];if("\xfe"===Rt[0]&&"\xff"===Rt[1])for(let Dn=2;Dn<Wt;Dn+=2)Pt.push(String.fromCharCode(Rt.charCodeAt(Dn)<<8|Rt.charCodeAt(Dn+1)));else if("\xff"===Rt[0]&&"\xfe"===Rt[1])for(let Dn=2;Dn<Wt;Dn+=2)Pt.push(String.fromCharCode(Rt.charCodeAt(Dn+1)<<8|Rt.charCodeAt(Dn)));else for(let Dn=0;Dn<Wt;++Dn){const Gn=hn[Rt.charCodeAt(Dn)];Pt.push(Gn?String.fromCharCode(Gn):Rt.charAt(Dn))}return Pt.join("")},Z.stringToUTF8String=function ln(Rt){return decodeURIComponent(escape(Rt))},Z.utf8StringToString=function Jt(Rt){return unescape(encodeURIComponent(Rt))},Z.warn=E,Z.unreachable=M,Z.IsEvalSupportedCached=Z.IsLittleEndianCached=Z.createObjectURL=Z.FormatError=Z.Util=Z.UnknownErrorException=Z.UnexpectedResponseException=Z.TextRenderingMode=Z.StreamType=Z.PermissionFlag=Z.PasswordResponses=Z.PasswordException=Z.MissingPDFException=Z.InvalidPDFException=Z.AbortException=Z.CMapCompressionType=Z.ImageKind=Z.FontType=Z.AnnotationType=Z.AnnotationStateModelType=Z.AnnotationReviewState=Z.AnnotationReplyType=Z.AnnotationMarkedState=Z.AnnotationFlag=Z.AnnotationFieldFlag=Z.AnnotationBorderStyleType=Z.UNSUPPORTED_FEATURES=Z.VerbosityLevel=Z.OPS=Z.IDENTITY_MATRIX=Z.FONT_IDENTITY_MATRIX=Z.BaseException=void 0,S(3),Z.IDENTITY_MATRIX=[1,0,0,1,0,0],Z.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],Z.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Z.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},Z.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Z.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},Z.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},Z.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},Z.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},Z.AnnotationReplyType={GROUP:"Group",REPLY:"R"},Z.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},Z.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},Z.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},Z.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},Z.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const me={ERRORS:0,WARNINGS:1,INFOS:5};Z.VerbosityLevel=me,Z.CMapCompressionType={NONE:0,BINARY:1,STREAM:2}
1,Z.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},Z.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"},Z.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let de=me.WARNINGS;function E(Rt){de>=me.WARNINGS&&console.log(`Warning: ${Rt}`)}function M(Rt){throw new Error(Rt)}function A(Rt,Wt){Rt||M(Wt)}function K(Rt,Wt,Pt){return Object.defineProperty(Rt,Wt,{value:Pt,enumerable:!0,configurable:!0,writable:!1}),Pt}const ge=function(){function Wt(Pt){this.constructor===Wt&&M("Cannot initialize BaseException."),this.message=Pt,this.name=this.constructor.name}return Wt.prototype=new Error,Wt.constructor=Wt,Wt}();Z.BaseException=ge,Z.PasswordException=class Fe extends ge{constructor(Wt,Pt){super(Wt),this.code=Pt}},Z.UnknownErrorException=class he extends ge{constructor(Wt,Pt){super(Wt),this.details=Pt}},Z.InvalidPDFException=class fe extends ge{},Z.MissingPDFException=class Ie extends ge{},Z.UnexpectedResponseException=class Se extends ge{constructor(Wt,Pt){super(Wt),this.status=Pt}},Z.FormatError=class pe extends ge{},Z.AbortException=class ke extends ge{};const ae=/\x00/g;function Be(Rt){A("string"==typeof Rt,"Invalid argument for stringToBytes");const Wt=Rt.length,Pt=new Uint8Array(Wt);for(let Dn=0;Dn<Wt;++Dn)Pt[Dn]=255&Rt.charCodeAt(Dn);return Pt}function ut(Rt){return void 0!==Rt.length?Rt.length:(A(void 0!==Rt.byteLength,"arrayByteLength - invalid argument."),Rt.byteLength)}Z.IsLittleEndianCached={get value(){return K(this,"value",function Ot(){const Rt=new Uint8Array(4);return Rt[0]=1,1===new Uint32Array(Rt.buffer,0,1)[0]}())}},Z.IsEvalSupportedCached={get value(){return K(this,"value",function ht(){try{return new Function(""),!0}catch(Rt){return!1}}())}};const jt=["rgb(",0,",",0,",",0,")"];class cn{static makeCssRgb(Wt,Pt,Dn){return jt[1]=Wt,jt[3]=Pt,jt[5]=Dn,jt.join("")}static transform(Wt,Pt){return[Wt[0]*Pt[0]+Wt[2]*Pt[1],Wt[1]*Pt[0]+Wt[3]*Pt[1],Wt[0]*Pt[2]+Wt[2]*Pt[3],Wt[1]*Pt[2]+Wt[3]*Pt[3],Wt[0]*Pt[4]+Wt[2]*Pt[5]+Wt[4],Wt[1]*Pt[4]+Wt[3]*Pt[5]+Wt[5]]}static applyTransform(Wt,Pt){return[Wt[0]*Pt[0]+Wt[1]*Pt[2]+Pt[4],Wt[0]*Pt[1]+Wt[1]*Pt[3]+Pt[5]]}static applyInverseTransform(Wt,Pt){const Dn=Pt[0]*Pt[3]-Pt[1]*Pt[2];return[(Wt[0]*Pt[3]-Wt[1]*Pt[2]+Pt[2]*Pt[5]-Pt[4]*Pt[3])/Dn,(-Wt[0]*Pt[1]+Wt[1]*Pt[0]+Pt[4]*Pt[1]-Pt[5]*Pt[0])/Dn]}static getAxialAlignedBoundingBox(Wt,Pt){const Dn=cn.applyTransform(Wt,Pt),Gn=cn.applyTransform(Wt.slice(2,4),Pt),Zn=cn.applyTransform([Wt[0],Wt[3]],Pt),zn=cn.applyTransform([Wt[2],Wt[1]],Pt);return[Math.min(Dn[0],Gn[0],Zn[0],zn[0]),Math.min(Dn[1],Gn[1],Zn[1],zn[1]),Math.max(Dn[0],Gn[0],Zn[0],zn[0]),Math.max(Dn[1],Gn[1],Zn[1],zn[1])]}static inverseTransform(Wt){const Pt=Wt[0]*Wt[3]-Wt[1]*Wt[2];return[Wt[3]/Pt,-Wt[1]/Pt,-Wt[2]/Pt,Wt[0]/Pt,(Wt[2]*Wt[5]-Wt[4]*Wt[3])/Pt,(Wt[4]*Wt[1]-Wt[5]*Wt[0])/Pt]}static apply3dTransform(Wt,Pt){return[Wt[0]*Pt[0]+Wt[1]*Pt[1]+Wt[2]*Pt[2],Wt[3]*Pt[0]+Wt[4]*Pt[1]+Wt[5]*Pt[2],Wt[6]*Pt[0]+Wt[7]*Pt[1]+Wt[8]*Pt[2]]}static singularValueDecompose2dScale(Wt){const Pt=[Wt[0],Wt[2],Wt[1],Wt[3]],Dn=Wt[0]*Pt[0]+Wt[1]*Pt[2],zn=Wt[2]*Pt[1]+Wt[3]*Pt[3],nn=(Dn+zn)/2,Vn=Math.sqrt((Dn+zn)*(Dn+zn)-4*(Dn*zn-(Wt[2]*Pt[0]+Wt[3]*Pt[2])*(Wt[0]*Pt[1]+Wt[1]*Pt[3]))
1)/2,Rn=nn-Vn||1;return[Math.sqrt(nn+Vn||1),Math.sqrt(Rn)]}static normalizeRect(Wt){const Pt=Wt.slice(0);return Wt[0]>Wt[2]&&(Pt[0]=Wt[2],Pt[2]=Wt[0]),Wt[1]>Wt[3]&&(Pt[1]=Wt[3],Pt[3]=Wt[1]),Pt}static intersect(Wt,Pt){function Dn(nn,Vn){return nn-Vn}const Gn=[Wt[0],Wt[2],Pt[0],Pt[2]].sort(Dn),Zn=[Wt[1],Wt[3],Pt[1],Pt[3]].sort(Dn),zn=[];return Wt=cn.normalizeRect(Wt),Pt=cn.normalizeRect(Pt),Gn[0]===Wt[0]&&Gn[1]===Pt[0]||Gn[0]===Pt[0]&&Gn[1]===Wt[0]?(zn[0]=Gn[1],zn[2]=Gn[2],Zn[0]===Wt[1]&&Zn[1]===Pt[1]||Zn[0]===Pt[1]&&Zn[1]===Wt[1]?(zn[1]=Zn[1],zn[3]=Zn[2],zn):null):null}}Z.Util=cn;const hn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],Et=function(){const Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(Dn,Gn,Zn=!1){if(!Zn&&URL.createObjectURL){const nn=new Blob([Dn],{type:Gn});return URL.createObjectURL(nn)}let zn=`data:${Gn};base64,`;for(let nn=0,Vn=Dn.length;nn<Vn;nn+=3){const Yt=255&Dn[nn],Rn=255&Dn[nn+1],Mt=255&Dn[nn+2];zn+=Wt[Yt>>2]+Wt[(3&Yt)<<4|Rn>>4]+Wt[nn+1<Vn?(15&Rn)<<2|Mt>>6:64]+Wt[nn+2<Vn?63&Mt:64]}return zn}}();Z.createObjectURL=Et},function(Qt,Z,S){"use strict";S(4)},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNodeJS=void 0;const s="object"==typeof process&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;Z.isNodeJS=s},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_api_compatibility=__w_pdfjs_require__(7),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let createPDFNetworkStream;function setPDFNetworkStreamFactory(Qt){createPDFNetworkStream=Qt}function getDocument(Qt){const Z=new PDFDocumentLoadingTask;let S;if("string"==typeof Qt)S={url:Qt};else if((0,_util.isArrayBuffer)(Qt))S={data:Qt};else if(Qt instanceof PDFDataRangeTransport)S={range:Qt};else{if("object"!=typeof Qt)throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!Qt.url&&!Qt.data&&!Qt.range)throw new Error("Invalid parameter object: need either .data, .range or .url");S=Qt}const s=Object.create(null);let _=null,y=null;for(const D in S)if("url"!==D||"undefined"==typeof window)if("range"!==D)if("worker"!==D)if("data"!==D||S[D]instanceof Uint8Array)s[D]=S[D];else{const L=S[D];if("string"==typeof L)s[D]=(0,_util.stringToBytes)(L);else if("object"!=typeof L||null===L||isNaN(L.length)){if(!(0,_util.isArrayBuffer)(L))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");s[D]=new Uint8Array(L)}else s[D]=new Uint8Array(L)}else y=S[D];else _=S[D];else s[D]=new URL(S[D],window.location).href;if(s.rangeChunkSize=s.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,s.CMapReaderFactory=s.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,s.ignoreErrors=!0!==s.stopAtErrors,s.fontExtraProperties=!0===s.fontExtraProperties,s.pdfBug=!0===s.pdfBug,Number.isInteger(s.maxImageSize)||(s.maxImageSize=-1),"boolean"!=typeof s.isEvalSupported&&(s.isEvalSupported=!0),"boolean"!=typeof s.disableFontFace&&(s.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof s.disableRange&&(s.disableRange=!1),"boolean"!=typeof s.disableStream&&(s.disableStream=!1),"boolean"!=typeof s.disableAutoFetch&&(s.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(s.verbosity),!y){const D={verbosity:s.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};y=D.port?PDFWorker.fromPort(D):new PDFWorker(D),Z._worker=y}const j=Z.docId;return y.promise.then(function(){if(Z.destroyed)throw new Error("Loading aborted");const D=_fetchDocument(y,s,_,j),L=new Promise(function(ce){let W;_?W=new _transport_stream.PDFDataTransportStream({length:s.length,initialData:s.initialData,progressiveDone:s.progressiveDone,disableRange:s.disableRange,disableStream:s.disableStream},_):s.data||(W=createPDFNetworkStream({url:s.url,length:s.length,httpHeaders:s.httpHeaders,withCredentials:s.withCredentials,rangeChunkSize:s.rangeChunkSize,disableRange:s.disableRange,disableStream:s.disableStream})),ce(W)});return Promise.all([D,L]).then(function([ce,W]){if(Z.destroyed)throw new Error("Loading aborted");const G=new _message_handler.MessageHandler(j,ce,y.port);G.postMessageTransfers=y.postMessageTransfers;const $=new WorkerTransport(G,Z,W,s);Z._transport=$,G.send("Ready",null)})}).catch(Z._capability.reject),Z}function _fetchDocument(Qt,Z,S,s){return Qt.destroyed?Promise.reject(new Error("Worker was destroyed")):(S&&(Z.length=S.length,Z.initialData=S.initialData,Z.progressiveDone=S.progressiveDone),Qt.messageHandler.sendWithProm
1ise("GetDocRequest",{docId:s,apiVersion:"2.5.207",source:{data:Z.data,url:Z.url,password:Z.password,disableAutoFetch:Z.disableAutoFetch,rangeChunkSize:Z.rangeChunkSize,length:Z.length},maxImageSize:Z.maxImageSize,disableFontFace:Z.disableFontFace,postMessageTransfers:Qt.postMessageTransfers,docBaseUrl:Z.docBaseUrl,ignoreErrors:Z.ignoreErrors,isEvalSupported:Z.isEvalSupported,fontExtraProperties:Z.fontExtraProperties}).then(function(_){if(Qt.destroyed)throw new Error("Worker was destroyed");return _}))}const PDFDocumentLoadingTask=function(){let Z=0;return class S{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+Z++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}}}();class PDFDataRangeTransport{constructor(Z,S,s=!1){this.length=Z,this.initialData=S,this.progressiveDone=s,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(Z){this._rangeListeners.push(Z)}addProgressListener(Z){this._progressListeners.push(Z)}addProgressiveReadListener(Z){this._progressiveReadListeners.push(Z)}addProgressiveDoneListener(Z){this._progressiveDoneListeners.push(Z)}onDataRange(Z,S){for(const s of this._rangeListeners)s(Z,S)}onDataProgress(Z,S){this._readyCapability.promise.then(()=>{for(const s of this._progressListeners)s(Z,S)})}onDataProgressiveRead(Z){this._readyCapability.promise.then(()=>{for(const S of this._progressiveReadListeners)S(Z)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const Z of this._progressiveDoneListeners)Z()})}transportReady(){this._readyCapability.resolve()}requestDataRange(Z,S){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(Z,S){this._pdfInfo=Z,this._transport=S}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(Z){return this._transport.getPage(Z)}getPageIndex(Z){return this._transport.getPageIndex(Z)}getDestinations(){return this._transport.getDestinations()}getDestination(Z){return this._transport.getDestination(Z)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getOpenActionDestination(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(Z){return Z&&Z.dest?Z.dest:null})}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getOutline(){return this._transport.getOutline()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(Z,S,s,_=!1){this._pageIndex=Z,this._pageInfo=S,this._transport=s,this._stats=_?new _display_utils.StatTimer:null,this._pdfBug=_,this.commonObjs=s.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:Z,rotation:S=this.rotate,offsetX:s=0,offsetY:_=0,dontFlip:y=!1}
1={}){return new _display_utils.PageViewport({viewBox:this.view,scale:Z,rotation:S,offsetX:s,offsetY:_,dontFlip:y})}getAnnotations({intent:Z=null}={}){return(!this.annotationsPromise||this.annotationsIntent!==Z)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,Z),this.annotationsIntent=Z),this.annotationsPromise}render({canvasContext:Z,viewport:S,intent:s="display",enableWebGL:_=!1,renderInteractiveForms:y=!1,transform:j=null,imageLayer:D=null,canvasFactory:L=null,background:ce=null}){this._stats&&this._stats.time("Overall");const W="print"===s?"print":"display";this.pendingCleanup=!1,this.intentStates[W]||(this.intentStates[W]=Object.create(null));const G=this.intentStates[W];G.streamReaderCancelTimeout&&(clearTimeout(G.streamReaderCancelTimeout),G.streamReaderCancelTimeout=null);const $=L||new _display_utils.DOMCanvasFactory,te=new _webgl.WebGLContext({enable:_});G.displayReadyCapability||(G.displayReadyCapability=(0,_util.createPromiseCapability)(),G.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:W,renderInteractiveForms:!0===y}));const le=Re=>{const me=G.renderTasks.indexOf(J);me>=0&&G.renderTasks.splice(me,1),(this.cleanupAfterRender||"print"===W)&&(this.pendingCleanup=!0),this._tryCleanup(),Re?(J.capability.reject(Re),this._abortOperatorList({intentState:G,reason:Re})):J.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},J=new InternalRenderTask({callback:le,params:{canvasContext:Z,viewport:S,transform:j,imageLayer:D,background:ce},objs:this.objs,commonObjs:this.commonObjs,operatorList:G.operatorList,pageIndex:this._pageIndex,canvasFactory:$,webGLContext:te,useRequestAnimationFrame:"print"!==W,pdfBug:this._pdfBug});G.renderTasks||(G.renderTasks=[]),G.renderTasks.push(J);const Me=J.task;return G.displayReadyCapability.promise.then(Re=>{this.pendingCleanup?le():(this._stats&&this._stats.time("Rendering"),J.initializeGraphics(Re),J.operatorListChanged())}).catch(le),Me}getOperatorList(){const S="oplist";this.intentStates[S]||(this.intentStates[S]=Object.create(null));const s=this.intentStates[S];let _;return s.opListReadCapability||(_={},_.operatorListChanged=function Z(){if(s.operatorList.lastChunk){s.opListReadCapability.resolve(s.operatorList);const y=s.renderTasks.indexOf(_);y>=0&&s.renderTasks.splice(y,1)}},s.opListReadCapability=(0,_util.createPromiseCapability)(),s.renderTasks=[],s.renderTasks.push(_),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:S})),s.opListReadCapability.promise}streamTextContent({normalizeWhitespace:Z=!1,disableCombineTextItems:S=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===Z,combineTextItems:!0!==S},{highWaterMark:100,size:_=>_.items.length})}getTextContent(Z={}){const S=this.streamTextContent(Z);return new Promise(function(s,_){const j=S.getReader(),D={items:[],styles:Object.create(null)};!function y(){j.read().then(function({value:L,done:ce}){ce?s(D):(Object.assign(D.styles,L.styles),D.items.push(...L.items),y())},_)}()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const Z=[];return Object.keys(this.intentStates).forEach(S=>{const s=this.intentStates[S];this._abortOperatorList({intentState:s,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==S&&s.renderTasks.forEach(function(_){const y=_.capability.promise.catch(function(){});Z.push(y),_.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(Z)}cleanup(Z=!1){return this.pendingCleanup=!0,this._tryCleanup(Z)}_tryCleanup(Z=!1){return!(!this.pendingCleanup||Object.keys(this.intentStates).some(S=>{const s=this.intentStates[S];return 0!==s.renderTasks.length||!s.operatorList.lastChunk})||(Object.keys(this.intentStates).forEach(S=>{delete this.intentStates[S]}
1),this.objs.clear(),this.annotationsPromise=null,Z&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,0))}_startRenderPage(Z,S){const s=this.intentStates[S];!s||(this._stats&&this._stats.timeEnd("Page Request"),s.displayReadyCapability&&s.displayReadyCapability.resolve(Z))}_renderPageChunk(Z,S){for(let s=0,_=Z.length;s<_;s++)S.operatorList.fnArray.push(Z.fnArray[s]),S.operatorList.argsArray.push(Z.argsArray[s]);S.operatorList.lastChunk=Z.lastChunk;for(let s=0;s<S.renderTasks.length;s++)S.renderTasks[s].operatorListChanged();Z.lastChunk&&this._tryCleanup()}_pumpOperatorList(Z){(0,_util.assert)(Z.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');const s=this._transport.messageHandler.sendWithStream("GetOperatorList",Z).getReader(),_=this.intentStates[Z.intent];_.streamReader=s;const y=()=>{s.read().then(({value:j,done:D})=>{D?_.streamReader=null:this._transport.destroyed||(this._renderPageChunk(j,_),y())},j=>{if(_.streamReader=null,!this._transport.destroyed){if(_.operatorList){_.operatorList.lastChunk=!0;for(let D=0;D<_.renderTasks.length;D++)_.renderTasks[D].operatorListChanged();this._tryCleanup()}if(_.displayReadyCapability)_.displayReadyCapability.reject(j);else{if(!_.opListReadCapability)throw j;_.opListReadCapability.reject(j)}}})};y()}_abortOperatorList({intentState:Z,reason:S,force:s=!1}){if((0,_util.assert)(S instanceof Error||"object"==typeof S&&null!==S,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),Z.streamReader){if(!s){if(0!==Z.renderTasks.length)return;if(S instanceof _display_utils.RenderingCancelledException)return void(Z.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:Z,reason:S,force:!0}),Z.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}Z.streamReader.cancel(new _util.AbortException(S&&S.message)),Z.streamReader=null,!this._transport.destroyed&&(Object.keys(this.intentStates).some(_=>this.intentStates[_]===Z&&(delete this.intentStates[_],!0)),this.cleanup())}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(Z=!0){this._listeners=[],this._defer=Z,this._deferred=Promise.resolve(void 0)}postMessage(Z,S){if(!this._defer)return void this._listeners.forEach(j=>{j.call(this,{data:Z})});const _=new WeakMap,y={data:function s(j){if("object"!=typeof j||null===j)return j;if(_.has(j))return _.get(j);let D,L;if((D=j.buffer)&&(0,_util.isArrayBuffer)(D))return L=S&&S.includes(D)?new j.constructor(D,j.byteOffset,j.byteLength):new j.constructor(j),_.set(j,L),L;L=Array.isArray(j)?[]:{},_.set(j,L);for(const ce in j){let W,G=j;for(;!(W=Object.getOwnPropertyDescriptor(G,ce));)G=Object.getPrototypeOf(G);if(void 0!==W.value){if("function"==typeof W.value){if(j.hasOwnProperty&&j.hasOwnProperty(ce))throw new Error(`LoopbackPort.postMessage - cannot clone: ${j[ce]}`);continue}L[ce]=s(W.value)}}return L}(Z)};this._deferred.then(()=>{this._listeners.forEach(j=>{j.call(this,y)})})}addEventListener(Z,S){this._listeners.push(S)}removeEventListener(Z,S){const s=this._listeners.indexOf(S);this._listeners.splice(s,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document&&"currentScript"in document){const Qt=document.currentScript&&document.currentScript.src;Qt&&(fallbackWorkerSrc=Qt.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let Qt;try{Qt=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(Z){}return Qt||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler});return function Qt(){return _ref2.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(Qt){return URL.createObjectURL(new Blob(["importScripts('"+Qt+"');"]))}class PDFWorker{constructor({name:Z=null,port:S=null,verbosity:s=(0,_util.getVerbosityLevel)()}={}){if(S&&pdfWorkerPorts.has(S))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=Z,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,S)return pdfWorkerPorts.set(S,this),void this._initializeFromPort(S);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(Z){this._port=Z,this._messageHandler=new _message_handler.MessageHandler("main","worker",Z),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let Z=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,Z)||(Z=createCDNWrapper(new URL(Z,window.location).href));const S=new Worker(Z),s=new _message_handler.MessageHandler("main","worker",S),_=()=>{S.removeEventListener("error",y),s.destroy(),S.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},y=()=>{this._webWorker||_()};S.addEventListener("error",y),s.on("test",D=>
1{S.removeEventListener("error",y),this.destroyed?_():D?(this._messageHandler=s,this._port=S,this._webWorker=S,D.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),s.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),s.destroy(),S.terminate())}),s.on("ready",D=>{if(S.removeEventListener("error",y),this.destroyed)_();else try{j()}catch(L){this._setupFakeWorker()}});const j=()=>{const D=new Uint8Array([this.postMessageTransfers?255:0]);try{s.send("test",D,[D.buffer])}catch(L){(0,_util.warn)("Cannot use postMessage transfers."),D[0]=0,s.send("test",D)}};return void j()}catch(S){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(Z=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const S=new LoopbackPort;this._port=S;const s="fake"+nextFakeWorkerId++,_=new _message_handler.MessageHandler(s+"_worker",s,S);Z.setup(_,S);const y=new _message_handler.MessageHandler(s,s+"_worker",S);this._messageHandler=y,this._readyCapability.resolve(),y.send("configure",{verbosity:this.verbosity})}).catch(Z=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${Z.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(Z){if(!Z||!Z.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(Z.port)?pdfWorkerPorts.get(Z.port):new PDFWorker(Z)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(Z,S,s,_){this.messageHandler=Z,this.loadingTask=S,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:S.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=_,this.CMapReaderFactory=new _.CMapReaderFactory({baseUrl:_.cMapUrl,isCompressed:_.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=s,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const Z=[];this.pageCache.forEach(function(s){s&&Z.push(s._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const S=this.messageHandler.sendWithPromise("Terminate",null);return Z.push(S),Promise.all(Z).then(()=>{this.fontLoader.clear(),this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:Z,loadingTask:S}=this;Z.on("GetReader",(s,_)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=y=>{this._lastProgress={loaded:y.loaded,total:y.total}},_.onPull=()=>{this._fullReader.read().then(function({value:y,done:j}){j?_.close():((0,_util.assert)((0,_util.isArrayBuffer)(y),"GetReader - expected an ArrayBuffer."),_.enqueue(new Uint8Array(y),1,[y]))}).catch(y=>{_.error(y)})},_.onCancel=y=>{this._fullReader.cancel(y)}}),Z.on("ReaderHeadersReady",s=>{const _=(0,_util.createPromiseCapability)(),y=this._fullReader;return y.headersReady.then(()=>{(!y.isStreamingSupported||!y.isRangeSupported)&&(this._lastProgress&&S.onProgress&&S.onProgress(this._lastProgress),y.onProgress=j=>{S.onProgress&&S.onProgress({loaded:j.loaded,total:j.total})}),_.resolve({isStreamingSupported:y.isStreamingSupported,isRangeSupported:y.isRangeSupported,contentLength:y.contentLength})},_.reject),_.promise}),Z.on("GetRangeReader",(s,_)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const y=this._networkStream.getRangeReader(s.begin,s.end);y?(_.onPull=()=>{y.read().then(function({value:j,done:D}){D?_.close():((0,_util.assert)((0,_util.isArrayBuffer)(j),"GetRangeReader - expected an ArrayBuffer."),_.enqueue(new Uint8Array(j),1,[j]))}).catch(j=>{_.error(j)})},_.onCancel=j=>{y.cancel(j)}):_.close()}),Z.on("GetDoc",({pdfInfo:s})=>{this._numPages=s.numPages,S._capability.resolve(new PDFDocumentProxy(s,this))}),Z.on("DocException",function(s){let _;switch(s.name){case"PasswordException":_=new _util.PasswordException(s.message,s.code);break;case"InvalidPDFException":_=new _util.InvalidPDFException(s.message);break;case"MissingPDFException":_=new _util.MissingPDFException(s.message);break;case"UnexpectedResponseException":_=new _util.UnexpectedResponseException(s.message,s.status);break;case"UnknownErrorException":_=new _util.UnknownErrorException(s.message,s.details)}S._capability.reject(_)}),Z.on("PasswordRequest",s=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),S.onPassword){const _=y=>{this._passwordCapability.resolve({password:y})};try{S.onPassword(_,s.code)}catch(y){this._passwordCapability.reject(y)}}else this._passwordCapability.reject(new _util.PasswordException(s.message,s.code));return this._passwordCapability.promise}),Z.on("DataLoaded",s=>{S.onProgress&&S.onProgress({loaded:s.length,total:s.length}),this.downloadInfoCapability.resolve(s)}),Z.on("StartRenderPage",s=>{this.destroyed||this.pageCache[s.pageIndex]._startRenderPage(s.transparency,s.intent)}),Z.on("commonobj",s=>{if(this.destroyed)return;const[_,y,j]=s;
1if(!this.commonObjs.has(_))switch(y){case"Font":const D=this._params;if("error"in j){const W=j.error;(0,_util.warn)(`Error during font loading: ${W}`),this.commonObjs.resolve(_,W);break}let L=null;D.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(L={registerFont(W,G){globalThis.FontInspector.fontAdded(W,G)}});const ce=new _font_loader.FontFaceObject(j,{isEvalSupported:D.isEvalSupported,disableFontFace:D.disableFontFace,ignoreErrors:D.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:L});this.fontLoader.bind(ce).catch(W=>Z.sendWithPromise("FontFallback",{id:_})).finally(()=>{!D.fontExtraProperties&&ce.data&&(ce.data=null),this.commonObjs.resolve(_,ce)});break;case"FontPath":case"FontType3Res":case"Image":this.commonObjs.resolve(_,j);break;default:throw new Error(`Got unknown common object type ${y}`)}}),Z.on("obj",s=>{if(this.destroyed)return;const[_,y,j,D]=s,L=this.pageCache[y];if(!L.objs.has(_)){if("Image"!==j)throw new Error(`Got unknown object type ${j}`);{L.objs.resolve(_,D);const ce=8e6;D&&"data"in D&&D.data.length>ce&&(L.cleanupAfterRender=!0)}}}),Z.on("DocProgress",s=>{this.destroyed||S.onProgress&&S.onProgress({loaded:s.loaded,total:s.total})}),Z.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),Z.on("FetchBuiltInCMap",(s,_)=>{if(this.destroyed)return void _.error(new Error("Worker was destroyed"));let y=!1;_.onPull=()=>{y?_.close():(y=!0,this.CMapReaderFactory.fetch(s).then(function(j){_.enqueue(j,1,[j.cMapData.buffer])}).catch(function(j){_.error(j)}))}})}_onUnsupportedFeature({featureId:Z}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(Z)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(Z){if(!Number.isInteger(Z)||Z<=0||Z>this._numPages)return Promise.reject(new Error("Invalid page request"));const S=Z-1;if(S in this.pagePromises)return this.pagePromises[S];const s=this.messageHandler.sendWithPromise("GetPage",{pageIndex:S}).then(_=>{if(this.destroyed)throw new Error("Transport destroyed");const y=new PDFPageProxy(S,_,this,this._params.pdfBug);return this.pageCache[S]=y,y});return this.pagePromises[S]=s,s}getPageIndex(Z){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:Z}).catch(function(S){return Promise.reject(new Error(S))})}getAnnotations(Z,S){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:Z,intent:S})}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(Z){return"string"!=typeof Z?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:Z})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(Z=>({info:Z[0],metadata:Z[1]?new _metadata.Metadata(Z[1]):null,contentDispositionFilename:this._fullReader?this._fullReader.filename:null}))}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let Z=0,S=this.pageCache.length;Z<S;Z++){const s=this.pageCache[Z];if(s&&!s.cleanup())throw new Error(`startCleanup: Page ${Z+1} is currently rendering.`)}this.commonObjs.clear(),this.fontLoader.clear()})}get loadingParams(){const Z=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:Z.disableAutoFetch,disableFontFace:Z.disableFontFace})}}class PDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(Z){return this._objs[Z]?this._objs[Z]:this._objs[Z]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(Z,S=null){if(S)return this._ensureObj(Z).capability.promise.then(S),null;const s=this._objs[Z];if(!s||!s.resolved)throw new Error(`Requesting object that isn't resolved yet ${Z}.`);return s.data}has(Z){const S=this._objs[Z];return!!S&&S.resolved}resolve(Z,S){const s=this._ensureObj(Z);s.resolved=!0,s.data=S,s.capability.resolve(S)}clear(){this._objs=Object.create(null)}}class RenderTask{constructor(Z){this._internalRenderTask=Z,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}const InternalRenderTask=function Qt(){const Z=new WeakSet;return class S{constructor({callback:_,params:y,objs:j,commonObjs:D,operatorList:L,pageIndex:ce,canvasFactory:W,webGLContext:G,useRequestAnimationFrame:$=!1,pdfBug:te=!1}){this.callback=_,this.params=y,this.objs=j,this.commonObjs=D,this.operatorListIdx=null,this.operatorList=L,this._pageIndex=ce,this.canvasFactory=W,this.webGLContext=G,this._pdfBug=te,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===$&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=y.canvasContext.canvas}initializeGraphics(_=!1){if(this.cancelled)return;
vendor: 6,446 bytes, line 1
1if(this._canvas){if(Z.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Z.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:y,viewport:j,transform:D,imageLayer:L,background:ce}=this.params;this.gfx=new _canvas.CanvasGraphics(y,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,L),this.gfx.beginDrawing({transform:D,viewport:j,transparency:_,background:ce}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(_=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&Z.delete(this._canvas),this.callback(_||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}_next(){var _=this;return _asyncToGenerator(function*(){_.cancelled||(_.operatorListIdx=_.gfx.executeOperatorList(_.operatorList,_.operatorListIdx,_._continueBound,_.stepper),_.operatorListIdx===_.operatorList.argsArray.length&&(_.running=!1,_.operatorList.lastChunk&&(_.gfx.endDrawing(),_._canvas&&Z.delete(_._canvas),_.callback())))})()}}}(),version="2.5.207";exports.version=version;const build="0974d605";exports.build=build},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.FontLoader=Z.FontFaceObject=void 0;var s=S(2);class _{constructor({docId:L,onUnsupportedFeature:ce}){this.constructor===_&&(0,s.unreachable)("Cannot initialize BaseFontLoader."),this.docId=L,this._onUnsupportedFeature=ce,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(L){this.nativeFontFaces.push(L),document.fonts.add(L)}insertRule(L){let ce=this.styleElement;ce||(ce=this.styleElement=document.createElement("style"),ce.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,document.documentElement.getElementsByTagName("head")[0].appendChild(ce));const W=ce.sheet;W.insertRule(L,W.cssRules.length)}clear(){this.nativeFontFaces.forEach(function(L){document.fonts.delete(L)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(L){var ce=this;return _asyncToGenerator(function*(){if(L.attached||L.missingFile)return;if(L.attached=!0,ce.isFontLoadingAPISupported){const G=L.createNativeFontFace();if(G){ce.addNativeFontFace(G);try{yield G.loaded}catch($){throw ce._onUnsupportedFeature({featureId:s.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,s.warn)(`Failed to load font '${G.family}': '${$}'.`),L.disableFontFace=!0,$}}return}const W=L.createFontFaceRule();if(W){if(ce.insertRule(W),ce.isSyncFontLoadingSupported)return;yield new Promise(G=>{const $=ce._queueLoadingCallback(G);ce._prepareFontLoadEvent([W],[L],$)})}})()}_queueLoadingCallback(L){(0,s.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const L="undefined"!=typeof document&&!!document.fonts;return(0,s.shadow)(this,"isFontLoadingAPISupported",L)}get isSyncFontLoadingSupported(){(0,s.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,s.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(L,ce,W){(0,s.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let y;Z.FontLoader=y,Z.FontLoader=y=class extends _{constructor(L){super(L),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let L=!1;if("undefined"==typeof navigator)L=!0;else{const ce=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);ce&&ce[1]>=14&&(L=!0)}return(0,s.shadow)(this,"isSyncFontLoadingSupported",L)}_queueLoadingCallback(L){const W=this.loadingContext,G={id:"pdfjs-font-loading-"+W.nextRequestId++,done:!1,complete:function ce(){for((0,s.assert)(!G.done,"completeRequest() cannot be called twice."),G.done=!0;W.requests.length>0&&W.requests[0].done;){const $=W.requests.shift();setTimeout($.callback,0)}},callback:L};return W.requests.push(G),G}get _loadTestFont(){return(0,s.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(L,ce,W){function G(A,R){return A.charCodeAt(R)<<24|A.charCodeAt(R+1)<<16|A.charCodeAt(R+2)<<8|255&A.charCodeAt(R+3)}
1function $(A,R,ee,B){return A.substring(0,R)+B+A.substring(R+ee)}let te,le;const J=document.createElement("canvas");J.width=1,J.height=1;const Me=J.getContext("2d");let Re=0;const Q=`lt${Date.now()}${this.loadTestFontId++}`;let P=this._loadTestFont;P=$(P,976,Q.length,Q);const de=1482184792;let re=G(P,16);for(te=0,le=Q.length-3;te<le;te+=4)re=re-de+G(Q,te)|0;te<Q.length&&(re=re-de+G(Q+"XXX",te)|0),P=$(P,16,4,(0,s.string32)(re));const V=`url(data:font/opentype;base64,${btoa(P)});`;this.insertRule(`@font-face {font-family:"${Q}";src:${V}}`);const E=[];for(te=0,le=ce.length;te<le;te++)E.push(ce[te].loadedName);E.push(Q);const M=document.createElement("div");for(M.style.visibility="hidden",M.style.width=M.style.height="10px",M.style.position="absolute",M.style.top=M.style.left="0px",te=0,le=E.length;te<le;++te){const A=document.createElement("span");A.textContent="Hi",A.style.fontFamily=E[te],M.appendChild(A)}document.body.appendChild(M),function me(A,R){if(Re++,Re>30)return(0,s.warn)("Load test font never loaded."),void R();Me.font="30px "+A,Me.fillText(".",0,20),Me.getImageData(0,0,1,1).data[3]>0?R():setTimeout(me.bind(null,A,R))}(Q,function(){document.body.removeChild(M),W.complete()})}},Z.FontFaceObject=class j{constructor(L,{isEvalSupported:ce=!0,disableFontFace:W=!1,ignoreErrors:G=!1,onUnsupportedFeature:$=null,fontRegistry:te=null}){this.compiledGlyphs=Object.create(null);for(const le in L)this[le]=L[le];this.isEvalSupported=!1!==ce,this.disableFontFace=!0===W,this.ignoreErrors=!0===G,this._onUnsupportedFeature=$,this.fontRegistry=te}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const L=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),L}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const L=(0,s.bytesToString)(new Uint8Array(this.data)),ce=`url(data:${this.mimetype};base64,${btoa(L)});`,W=`@font-face {font-family:"${this.loadedName}";src:${ce}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,ce),W}getPathGenerator(L,ce){if(void 0!==this.compiledGlyphs[ce])return this.compiledGlyphs[ce];let W,G;try{W=L.get(this.loadedName+"_path_"+ce)}catch($){if(!this.ignoreErrors)throw $;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:s.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,s.warn)(`getPathGenerator - ignoring character: "${$}".`),this.compiledGlyphs[ce]=function(te,le){}}if(this.isEvalSupported&&s.IsEvalSupportedCached.value){let $,te="";for(let le=0,J=W.length;le<J;le++)G=W[le],$=void 0!==G.args?G.args.join(","):"",te+="c."+G.cmd+"("+$+");\n";return this.compiledGlyphs[ce]=new Function("c","size",te)}return this.compiledGlyphs[ce]=function($,te){for(let le=0,J=W.length;le<J;le++)G=W[le],"scale"===G.cmd&&(G.args=[te,-te]),$[G.cmd].apply($,G.args)}}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.apiCompatibilityParams=void 0;var s=S(4);const _=Object.create(null);s.isNodeJS&&(_.disableFontFace=!0);const y=Object.freeze(_);Z.apiCompatibilityParams=y},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.CanvasGraphics=void 0;var s=S(2),_=S(9),D=4096,L=.65,G=16;function $(Re){Re.mozCurrentTransform||(Re._originalSave=Re.save,Re._originalRestore=Re.restore,Re._originalRotate=Re.rotate,Re._originalScale=Re.scale,Re._originalTranslate=Re.translate,Re._originalTransform=Re.transform,Re._originalSetTransform=Re.setTransform,Re._transformMatrix=Re._transformMatrix||[1,0,0,1,0,0],Re._transformStack=[],Object.defineProperty(Re,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(Re,"mozCurrentTransformInverse",{get:function(){var Q=this._transformMatrix,P=Q[0],N=Q[1],Y=Q[2],de=Q[3],re=Q[4],V=Q[5],ne=P*de-N*Y,E=N*Y-P*de;return[de/ne,N/E,Y/E,P/ne,(de*re-Y*V)/E,(N*re-P*V)/ne]}}),Re.save=function(){var Q=this._transformMatrix;this._transformStack.push(Q),this._transformMatrix=Q.slice(0,6),this._originalSave()},Re.restore=function(){var Q=this._transformStack.pop();Q&&(this._transformMatrix=Q,this._originalRestore())},Re.translate=function(Q,P){var N=this._transformMatrix;N[4]=N[0]*Q+N[2]*P+N[4],N[5]=N[1]*Q+N[3]*P+N[5],this._originalTranslate(Q,P)},Re.scale=function(Q,P){var N=this._transformMatrix;N[0]=N[0]*Q,N[1]=N[1]*Q,N[2]=N[2]*P,N[3]=N[3]*P,this._originalScale(Q,P)},Re.transform=function(Q,P,N,Y,de,re){var V=this._transformMatrix;this._transformMatrix=[V[0]*Q+V[2]*P,V[1]*Q+V[3]*P,V[0]*N+V[2]*Y,V[1]*N+V[3]*Y,V[0]*de+V[2]*re+V[4],V[1]*de+V[3]*re+V[5]],Re._originalTransform(Q,P,N,Y,de,re)}
1,Re.setTransform=function(Q,P,N,Y,de,re){this._transformMatrix=[Q,P,N,Y,de,re],Re._originalSetTransform(Q,P,N,Y,de,re)},Re.rotate=function(Q){var P=Math.cos(Q),N=Math.sin(Q),Y=this._transformMatrix;this._transformMatrix=[Y[0]*P+Y[2]*N,Y[1]*P+Y[3]*N,Y[0]*-N+Y[2]*P,Y[1]*-N+Y[3]*P,Y[4],Y[5]],this._originalRotate(Q)})}var te=function(){function me(Q){this.canvasFactory=Q,this.cache=Object.create(null)}return me.prototype={getCanvas:function(P,N,Y,de){var re;return void 0!==this.cache[P]?(this.canvasFactory.reset(re=this.cache[P],N,Y),re.context.setTransform(1,0,0,1,0,0)):(re=this.canvasFactory.create(N,Y),this.cache[P]=re),de&&$(re.context),re},clear(){for(var Q in this.cache)this.canvasFactory.destroy(this.cache[Q]),delete this.cache[Q]}},me}(),J=function(){function me(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=s.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=s.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=s.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return me.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(P,N){this.x=P,this.y=N}},me}(),Me=function(){function P(Fe,he,fe,Ie,Se,pe){this.ctx=Fe,this.current=new J,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=he,this.objs=fe,this.canvasFactory=Ie,this.webGLContext=Se,this.imageLayer=pe,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new te(this.canvasFactory),Fe&&$(Fe),this._cachedGetSinglePixelWidth=null}function N(Fe,he){if("undefined"!=typeof ImageData&&he instanceof ImageData)Fe.putImageData(he,0,0);else{var Ve,Ge,wt,Ot,Ft,fe=he.height,Ie=he.width,Se=fe%G,pe=(fe-Se)/G,ke=0===Se?pe:pe+1,ae=Fe.createImageData(Ie,G),Ce=0,Be=he.data,ut=ae.data;if(he.kind===s.ImageKind.GRAYSCALE_1BPP){var ht=Be.byteLength,Ht=new Uint32Array(ut.buffer,0,ut.byteLength>>2),jt=Ht.length,cn=Ie+7>>3,hn=4294967295,vn=s.IsLittleEndianCached.value?4278190080:255;for(Ge=0;Ge<ke;Ge++){for(Ot=Ge<pe?G:Se,Ve=0,wt=0;wt<Ot;wt++){for(var ln=ht-Ce,Jt=0,Xe=ln>cn?Ie:8*ln-7,qe=-8&Xe,Pe=0,tt=0;Jt<qe;Jt+=8)tt=Be[Ce++],Ht[Ve++]=128&tt?hn:vn,Ht[Ve++]=64&tt?hn:vn,Ht[Ve++]=32&tt?hn:vn,Ht[Ve++]=16&tt?hn:vn,Ht[Ve++]=8&tt?hn:vn,Ht[Ve++]=4&tt?hn:vn,Ht[Ve++]=2&tt?hn:vn,Ht[Ve++]=1&tt?hn:vn;for(;Jt<Xe;Jt++)0===Pe&&(tt=Be[Ce++],Pe=128),Ht[Ve++]=tt&Pe?hn:vn,Pe>>=1}for(;Ve<jt;)Ht[Ve++]=0;Fe.putImageData(ae,0,Ge*G)}}else if(he.kind===s.ImageKind.RGBA_32BPP){for(wt=0,Ft=Ie*G*4,Ge=0;Ge<pe;Ge++)ut.set(Be.subarray(Ce,Ce+Ft)),Ce+=Ft,Fe.putImageData(ae,0,wt),wt+=G;Ge<ke&&(ut.set(Be.subarray(Ce,Ce+(Ft=Ie*Se*4))),Fe.putImageData(ae,0,wt))}else{if(he.kind!==s.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${he.kind}`);for(Ft=Ie*(Ot=G),Ge=0;Ge<ke;Ge++){for(Ge>=pe&&(Ft=Ie*(Ot=Se)),Ve=0,wt=Ft;wt--;)ut[Ve++]=Be[Ce++],ut[Ve++]=Be[Ce++],ut[Ve++]=Be[Ce++],ut[Ve++]=255;Fe.putImageData(ae,0,Ge*G)}}}}function Y(Fe,he){for(var fe=he.height,Ie=he.width,Se=fe%G,pe=(fe-Se)/G,ke=0===Se?pe:pe+1,ae=Fe.createImageData(Ie,G),Ce=0,Ve=he.data,Be=ae.data,ut=0;ut<ke;ut++){for(var Ge=ut<pe?G:Se,wt=3,Ot=0;Ot<Ge;Ot++)for(var Ft=0,ht=0;ht<Ie;ht++){if(!Ft){var Ht=Ve[Ce++];Ft=128}Be[wt]=Ht&Ft?0:255,wt+=4,Ft>>=1}Fe.putImageData(ae,0,ut*G)}}function de(Fe,he){for(var fe=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],Ie=0,Se=fe.length;Ie<Se;Ie++){var pe=fe[Ie];void 0!==Fe[pe]&&(he[pe]=Fe[pe])}void 0!==Fe.setLineDash&&(he.setLineDash(Fe.getLineDash()),he.lineDashOffset=Fe.lineDashOffset)}function re(Fe){Fe.strokeStyle="#000000",Fe.fillStyle="#000000",Fe.fillRule="nonzero",Fe.globalAlpha=1,Fe.lineWidth=1,Fe.lineCap="butt",Fe.lineJoin="miter",Fe.miter
1Limit=10,Fe.globalCompositeOperation="source-over",Fe.font="10px sans-serif",void 0!==Fe.setLineDash&&(Fe.setLineDash([]),Fe.lineDashOffset=0)}function V(Fe,he,fe,Ie){for(var Se=Fe.length,pe=3;pe<Se;pe+=4){var ke=Fe[pe];if(0===ke)Fe[pe-3]=he,Fe[pe-2]=fe,Fe[pe-1]=Ie;else if(ke<255){var ae=255-ke;Fe[pe-3]=Fe[pe-3]*ke+he*ae>>8,Fe[pe-2]=Fe[pe-2]*ke+fe*ae>>8,Fe[pe-1]=Fe[pe-1]*ke+Ie*ae>>8}}}function ne(Fe,he,fe){for(var Ie=Fe.length,pe=3;pe<Ie;pe+=4)he[pe]=he[pe]*(fe?fe[Fe[pe]]:Fe[pe])*.00392156862745098|0}function E(Fe,he,fe){for(var Ie=Fe.length,Se=3;Se<Ie;Se+=4){var pe=77*Fe[Se-3]+152*Fe[Se-2]+28*Fe[Se-1];he[Se]=fe?he[Se]*fe[pe>>8]>>8:he[Se]*pe>>16}}function A(Fe,he,fe,Ie){var Se=he.canvas,pe=he.context;Fe.setTransform(he.scaleX,0,0,he.scaleY,he.offsetX,he.offsetY);var ke=he.backdrop||null;if(!he.transferMap&&Ie.isEnabled){const ae=Ie.composeSMask({layer:fe.canvas,mask:Se,properties:{subtype:he.subtype,backdrop:ke}});return Fe.setTransform(1,0,0,1,0,0),void Fe.drawImage(ae,he.offsetX,he.offsetY)}(function M(Fe,he,fe,Ie,Se,pe,ke){var ut,ae=!!pe,Ce=ae?pe[0]:0,Ve=ae?pe[1]:0,Be=ae?pe[2]:0;ut="Luminosity"===Se?E:ne;for(var wt=Math.min(Ie,Math.ceil(1048576/fe)),Ot=0;Ot<Ie;Ot+=wt){var Ft=Math.min(wt,Ie-Ot),ht=Fe.getImageData(0,Ot,fe,Ft),Ht=he.getImageData(0,Ot,fe,Ft);ae&&V(ht.data,Ce,Ve,Be),ut(ht.data,Ht.data,ke),Fe.putImageData(Ht,0,Ot)}})(pe,fe,Se.width,Se.height,he.subtype,ke,he.transferMap),Fe.drawImage(Se,0,0)}var R=["butt","round","square"],ee=["miter","round","bevel"],B={},K={};for(var ge in P.prototype={beginDrawing({transform:Fe,viewport:he,transparency:fe=!1,background:Ie=null}){var Se=this.ctx.canvas.width,pe=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=Ie||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,Se,pe),this.ctx.restore(),fe){var ke=this.cachedCanvases.getCanvas("transparent",Se,pe,!0);this.compositeCtx=this.ctx,this.transparentCanvas=ke.canvas,this.ctx=ke.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),re(this.ctx),Fe&&this.ctx.transform.apply(this.ctx,Fe),this.ctx.transform.apply(this.ctx,he.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(he,fe,Ie,Se){var pe=he.argsArray,ke=he.fnArray,ae=fe||0,Ce=pe.length;if(Ce===ae)return ae;for(var Ot,Ve=Ce-ae>10&&"function"==typeof Ie,Be=Ve?Date.now()+15:0,ut=0,Ge=this.commonObjs,wt=this.objs;;){if(void 0!==Se&&ae===Se.nextBreakPoint)return Se.breakIt(ae,Ie),ae;if((Ot=ke[ae])!==s.OPS.dependency)this[Ot].apply(this,pe[ae]);else for(const Ft of pe[ae]){const ht=Ft.startsWith("g_")?Ge:wt;if(!ht.has(Ft))return ht.get(Ft,Ie),ae}if(++ae===Ce)return ae;if(Ve&&++ut>10){if(Date.now()>Be)return Ie(),ae;ut=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(he){this.current.lineWidth=he,this.ctx.lineWidth=he},setLineCap:function(he){this.ctx.lineCap=R[he]},setLineJoin:function(he){this.ctx.lineJoin=ee[he]},setMiterLimit:function(he){this.ctx.miterLimit=he},setDash:function(he,fe){var Ie=this.ctx;void 0!==Ie.setLineDash&&(Ie.setLineDash(he),Ie.lineDashOffset=fe)},setRenderingIntent(Fe){},setFlatness(Fe){},setGState:function(he){for(var fe=0,Ie=he.length;fe<Ie;fe++){var Se=he[fe],ke=Se[1];switch(Se[0]){case"LW":this.setLineWidth(ke);break;case"LC":this.setLineCap(ke);break;case"LJ":this.setLineJoin(ke);break;case"ML":this.setMiterLimit(ke);break;case"D":this.setDash(ke[0],ke[1]);break;case"RI":this.setRenderingIntent(ke);break;case"FL":this.setFlatness(ke);break;case"Font":this.setFont(ke[0],ke[1]);break;case"CA":this.current.strokeAlpha=Se[1];break;case"ca":this.current.fillAlpha=Se[1],this.ctx.globalAlpha=Se[1];break;case"BM":this.ctx.globalCompositeOperation=ke;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=ke?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var he=this.current.activeSMask,pe=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,he.canvas.width,he.canvas.height,!0),ke=this.ctx,ae=ke.mozCurrentTransform;this.ctx.save();var Ce=pe.context;Ce.scale(1/he.scaleX,1/he.scaleY),Ce.translate(-he.offsetX,-he.offsetY),Ce.transform.apply(Ce,ae),he.startTransformInverse=Ce.mozCurrentTransformInverse,de(ke,Ce),this.ctx=Ce,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(ke),this.groupLevel++},suspendSMaskGroup:function(){var he=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,he,this.webGLContext),this.ctx.restore(
1),this.ctx.save(),de(he,this.ctx),this.current.resumeSMaskCtx=he;var fe=s.Util.transform(this.current.activeSMask.startTransformInverse,he.mozCurrentTransform);this.ctx.transform.apply(this.ctx,fe),he.save(),he.setTransform(1,0,0,1,0,0),he.clearRect(0,0,he.canvas.width,he.canvas.height),he.restore()},resumeSMaskGroup:function(){var fe=this.ctx;this.ctx=this.current.resumeSMaskCtx,this.groupStack.push(fe),this.groupLevel++},endSMaskGroup:function(){var he=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,he,this.webGLContext),this.ctx.restore(),de(he,this.ctx);var fe=s.Util.transform(this.current.activeSMask.startTransformInverse,he.mozCurrentTransform);this.ctx.transform.apply(this.ctx,fe)},save:function(){this.ctx.save();var he=this.current;this.stateStack.push(he),this.current=he.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null!==this.current.activeSMask&&(0===this.stateStack.length||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)&&this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(he,fe,Ie,Se,pe,ke){this.ctx.transform(he,fe,Ie,Se,pe,ke),this._cachedGetSinglePixelWidth=null},constructPath:function(he,fe){for(var Ie=this.ctx,Se=this.current,pe=Se.x,ke=Se.y,ae=0,Ce=0,Ve=he.length;ae<Ve;ae++)switch(0|he[ae]){case s.OPS.rectangle:pe=fe[Ce++],ke=fe[Ce++];var Be=fe[Ce++],ut=fe[Ce++];0===Be&&(Be=this.getSinglePixelWidth()),0===ut&&(ut=this.getSinglePixelWidth());var Ge=pe+Be,wt=ke+ut;this.ctx.moveTo(pe,ke),this.ctx.lineTo(Ge,ke),this.ctx.lineTo(Ge,wt),this.ctx.lineTo(pe,wt),this.ctx.lineTo(pe,ke),this.ctx.closePath();break;case s.OPS.moveTo:pe=fe[Ce++],ke=fe[Ce++],Ie.moveTo(pe,ke);break;case s.OPS.lineTo:pe=fe[Ce++],ke=fe[Ce++],Ie.lineTo(pe,ke);break;case s.OPS.curveTo:Ie.bezierCurveTo(fe[Ce],fe[Ce+1],fe[Ce+2],fe[Ce+3],pe=fe[Ce+4],ke=fe[Ce+5]),Ce+=6;break;case s.OPS.curveTo2:Ie.bezierCurveTo(pe,ke,fe[Ce],fe[Ce+1],fe[Ce+2],fe[Ce+3]),pe=fe[Ce+2],ke=fe[Ce+3],Ce+=4;break;case s.OPS.curveTo3:Ie.bezierCurveTo(fe[Ce],fe[Ce+1],pe=fe[Ce+2],ke=fe[Ce+3],pe,ke),Ce+=4;break;case s.OPS.closePath:Ie.closePath()}Se.setCurrentPoint(pe,ke)},closePath:function(){this.ctx.closePath()},stroke:function(he){he=void 0===he||he;var fe=this.ctx,Ie=this.current.strokeColor;if(fe.globalAlpha=this.current.strokeAlpha,Ie&&Ie.hasOwnProperty("type")&&"Pattern"===Ie.type){fe.save();const pe=s.Util.singularValueDecompose2dScale(fe.mozCurrentTransform)[0];fe.strokeStyle=Ie.getPattern(fe,this),fe.lineWidth=Math.max(this.getSinglePixelWidth()*L,this.current.lineWidth*pe),fe.stroke(),fe.restore()}else fe.lineWidth=Math.max(this.getSinglePixelWidth()*L,this.current.lineWidth),fe.stroke();he&&this.consumePath(),fe.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(he){he=void 0===he||he;var fe=this.ctx,Ie=this.current.fillColor,pe=!1;this.current.patternFill&&(fe.save(),this.baseTransform&&fe.setTransform.apply(fe,this.baseTransform),fe.fillStyle=Ie.getPattern(fe,this),pe=!0),this.pendingEOFill?(fe.fill("evenodd"),this.pendingEOFill=!1):fe.fill(),pe&&fe.restore(),he&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=B},eoClip:function(){this.pendingClip=K},beginText:function(){this.current.textMatrix=s.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var he=this.pendingTextPaths,fe=this.ctx;if(void 0!==he){fe.save(),fe.beginPath();for(var Ie=0;Ie<he.length;Ie++){var Se=he[Ie];fe.setTransform.apply(fe,Se.transform),fe.translate(Se.x,Se.y),Se.addToPath(fe,Se.fontSize)}
1fe.restore(),fe.clip(),fe.beginPath(),delete this.pendingTextPaths}else fe.beginPath()},setCharSpacing:function(he){this.current.charSpacing=he},setWordSpacing:function(he){this.current.wordSpacing=he},setHScale:function(he){this.current.textHScale=he/100},setLeading:function(he){this.current.leading=-he},setFont:function(he,fe){var Ie=this.commonObjs.get(he),Se=this.current;if(!Ie)throw new Error(`Can't find font for ${he}`);if(Se.fontMatrix=Ie.fontMatrix?Ie.fontMatrix:s.FONT_IDENTITY_MATRIX,(0===Se.fontMatrix[0]||0===Se.fontMatrix[3])&&(0,s.warn)("Invalid font matrix for font "+he),fe<0?(fe=-fe,Se.fontDirection=-1):Se.fontDirection=1,this.current.font=Ie,this.current.fontSize=fe,Ie.isType3Font)return;let ke="normal";Ie.black?ke="900":Ie.bold&&(ke="bold");var ae=Ie.italic?"italic":"normal",Ce=`"${Ie.loadedName||"sans-serif"}", ${Ie.fallbackName}`;let Ve=fe;fe<16?Ve=16:fe>100&&(Ve=100),this.current.fontSizeScale=fe/Ve,this.ctx.font=`${ae} ${ke} ${Ve}px ${Ce}`},setTextRenderingMode:function(he){this.current.textRenderingMode=he},setTextRise:function(he){this.current.textRise=he},moveText:function(he,fe){this.current.x=this.current.lineX+=he,this.current.y=this.current.lineY+=fe},setLeadingMoveText:function(he,fe){this.setLeading(-fe),this.moveText(he,fe)},setTextMatrix:function(he,fe,Ie,Se,pe,ke){this.current.textMatrix=[he,fe,Ie,Se,pe,ke],this.current.textMatrixScale=Math.sqrt(he*he+fe*fe),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(Fe,he,fe,Ie){var Se=this.ctx,pe=this.current,ke=pe.font,ae=pe.textRenderingMode,Ce=pe.fontSize/pe.fontSizeScale,Ve=ae&s.TextRenderingMode.FILL_STROKE_MASK,Be=!!(ae&s.TextRenderingMode.ADD_TO_PATH_FLAG);const ut=pe.patternFill&&!ke.missingFile;var Ge;(ke.disableFontFace||Be||ut)&&(Ge=ke.getPathGenerator(this.commonObjs,Fe)),ke.disableFontFace||ut?(Se.save(),Se.translate(he,fe),Se.beginPath(),Ge(Se,Ce),Ie&&Se.setTransform.apply(Se,Ie),(Ve===s.TextRenderingMode.FILL||Ve===s.TextRenderingMode.FILL_STROKE)&&Se.fill(),(Ve===s.TextRenderingMode.STROKE||Ve===s.TextRenderingMode.FILL_STROKE)&&Se.stroke(),Se.restore()):((Ve===s.TextRenderingMode.FILL||Ve===s.TextRenderingMode.FILL_STROKE)&&Se.fillText(Fe,he,fe),(Ve===s.TextRenderingMode.STROKE||Ve===s.TextRenderingMode.FILL_STROKE)&&Se.strokeText(Fe,he,fe)),Be&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:Se.mozCurrentTransform,x:he,y:fe,fontSize:Ce,addToPath:Ge})},get isFontSubpixelAAEnabled(){const{context:Fe}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);Fe.scale(1.5,1),Fe.fillText("I",0,10);for(var he=Fe.getImageData(0,0,10,10).data,fe=!1,Ie=3;Ie<he.length;Ie+=4)if(he[Ie]>0&&he[Ie]<255){fe=!0;break}return(0,s.shadow)(this,"isFontSubpixelAAEnabled",fe)},showText:function(he){var fe=this.current,Ie=fe.font;if(Ie.isType3Font)return this.showType3Text(he);var Se=fe.fontSize;if(0===Se)return;var pe=this.ctx,ke=fe.fontSizeScale,ae=fe.charSpacing,Ce=fe.wordSpacing,Ve=fe.fontDirection,Be=fe.textHScale*Ve,ut=he.length,Ge=Ie.vertical,wt=Ge?1:-1,Ot=Ie.defaultVMetrics,Ft=Se*fe.fontMatrix[0],ht=fe.textRenderingMode===s.TextRenderingMode.FILL&&!Ie.disableFontFace&&!fe.patternFill;let Ht;if(pe.save(),fe.patternFill){pe.save();const nn=fe.fillColor.getPattern(pe,this);Ht=pe.mozCurrentTransform,pe.restore(),pe.fillStyle=nn}pe.transform.apply(pe,fe.textMatrix),pe.translate(fe.x,fe.y+fe.textRise),pe.scale(Be,Ve>0?-1:1);var jt=fe.lineWidth,cn=fe.textMatrixScale;if(0===cn||0===jt){var hn=fe.textRenderingMode&s.TextRenderingMode.FILL_STROKE_MASK;(hn===s.TextRenderingMode.STROKE||hn===s.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,jt=this.getSinglePixelWidth()*L)}else jt/=cn;1!==ke&&(pe.scale(ke,ke),jt/=ke),pe.lineWidth=jt;var ln,vn=0;for(ln=0;ln<ut;++ln){var Jt=he[ln];if((0,s.isNum)(Jt))vn+=wt*Jt*Se/1e3;else{var bt,un,Wt,Pt,Xe=!1,qe=(Jt.isSpace?Ce:0)+ae,Pe=Jt.fontChar,tt=Jt.accent,Rt=Jt.width;if(Ge?(Wt=Jt.vmetric||Ot,Pt=Jt.vmetric?Wt[1]:.5*Rt,Rt=Wt?-Wt[0]:Rt,bt=(Pt=-Pt*Ft)/ke,un=(vn+Wt[2]*Ft)/ke):(bt=vn/ke,un=0),Ie.remeasure&&Rt>0){var Gn=1e3*pe.measureText(Pe).width/Se*ke;
1if(Rt<Gn&&this.isFontSubpixelAAEnabled){var Zn=Rt/Gn;Xe=!0,pe.save(),pe.scale(Zn,1),bt/=Zn}else Rt!==Gn&&(bt+=(Rt-Gn)/2e3*Se/ke)}(Jt.isInFont||Ie.missingFile)&&(ht&&!tt?pe.fillText(Pe,bt,un):(this.paintChar(Pe,bt,un,Ht),tt&&this.paintChar(tt.fontChar,bt+tt.offset.x/ke,un-tt.offset.y/ke,Ht))),vn+=Ge?Rt*Ft-qe*Ve:Rt*Ft+qe*Ve,Xe&&pe.restore()}}Ge?fe.y-=vn:fe.x+=vn*Be,pe.restore()},showType3Text:function(he){var Ot,Ft,ht,Ht,fe=this.ctx,Ie=this.current,Se=Ie.font,pe=Ie.fontSize,ke=Ie.fontDirection,ae=Se.vertical?1:-1,Ce=Ie.charSpacing,Ve=Ie.wordSpacing,Be=Ie.textHScale*ke,ut=Ie.fontMatrix||s.FONT_IDENTITY_MATRIX,Ge=he.length;if(Ie.textRenderingMode!==s.TextRenderingMode.INVISIBLE&&0!==pe){for(this._cachedGetSinglePixelWidth=null,fe.save(),fe.transform.apply(fe,Ie.textMatrix),fe.translate(Ie.x,Ie.y),fe.scale(Be,ke),Ot=0;Ot<Ge;++Ot)if((0,s.isNum)(Ft=he[Ot]))this.ctx.translate(Ht=ae*Ft*pe/1e3,0),Ie.x+=Ht*Be;else{var jt=(Ft.isSpace?Ve:0)+Ce,cn=Se.charProcOperatorList[Ft.operatorListId];if(cn){this.processingType3=Ft,this.save(),fe.scale(pe,pe),fe.transform.apply(fe,ut),this.executeOperatorList(cn),this.restore();var hn=s.Util.applyTransform([Ft.width,0],ut);fe.translate(ht=hn[0]*pe+jt,0),Ie.x+=ht*Be}else(0,s.warn)(`Type3 character "${Ft.operatorListId}" is not available.`)}fe.restore(),this.processingType3=null}},setCharWidth:function(he,fe){},setCharWidthAndBounds:function(he,fe,Ie,Se,pe,ke){this.ctx.rect(Ie,Se,pe-Ie,ke-Se),this.clip(),this.endPath()},getColorN_Pattern:function(he){var fe;if("TilingPattern"===he[0]){var Ie=he[1],Se=this.baseTransform||this.ctx.mozCurrentTransform.slice();fe=new _.TilingPattern(he,Ie,this.ctx,{createCanvasGraphics:ke=>new P(ke,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)},Se)}else fe=(0,_.getShadingPatternFromIR)(he);return fe},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(he,fe,Ie){var Se=s.Util.makeCssRgb(he,fe,Ie);this.ctx.strokeStyle=Se,this.current.strokeColor=Se},setFillRGBColor:function(he,fe,Ie){var Se=s.Util.makeCssRgb(he,fe,Ie);this.ctx.fillStyle=Se,this.current.fillColor=Se,this.current.patternFill=!1},shadingFill:function(he){var fe=this.ctx;this.save();var Ie=(0,_.getShadingPatternFromIR)(he);fe.fillStyle=Ie.getPattern(fe,this,!0);var Se=fe.mozCurrentTransformInverse;if(Se){var pe=fe.canvas,ke=pe.width,ae=pe.height,Ce=s.Util.applyTransform([0,0],Se),Ve=s.Util.applyTransform([0,ae],Se),Be=s.Util.applyTransform([ke,0],Se),ut=s.Util.applyTransform([ke,ae],Se),Ge=Math.min(Ce[0],Ve[0],Be[0],ut[0]),wt=Math.min(Ce[1],Ve[1],Be[1],ut[1]),Ot=Math.max(Ce[0],Ve[0],Be[0],ut[0]),Ft=Math.max(Ce[1],Ve[1],Be[1],ut[1]);this.ctx.fillRect(Ge,wt,Ot-Ge,Ft-wt)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,s.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,s.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(he,fe){this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(he)&&6===he.length&&this.transform.apply(this,he),this.baseTransform=this.ctx.mozCurrentTransform,fe&&(this.ctx.rect(fe[0],fe[1],fe[2]-fe[0],fe[3]-fe[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(he){this.save();var fe=this.ctx;he.isolated||(0,s.info)("TODO: Support non-isolated groups."),he.knockout&&(0,s.warn)("Knockout groups not supported.");var Ie=fe.mozCurrentTransform;if(he.matrix&&fe.transform.apply(fe,he.matrix),!he.bbox)throw new Error("Bounding box is required.");var Se=s.Util.getAxialAlignedBoundingBox(he.bbox,fe.mozCurrentTransform);Se=s.Util.intersect(Se,[0,0,fe.canvas.width,fe.canvas.height])||[0,0,0,0];var ke=Math.floor(Se[0]),ae=Math.floor(Se[1]),Ce=Math.max(Math.ceil(Se[2])-ke,1),Ve=Math.max(Math.ceil(Se[3])-ae,1),Be=1,ut=1;Ce>D&&(Be=Ce/D,Ce=D),Ve>D&&(ut=Ve/D,Ve=D);var Ge="groupAt"+this.groupLevel;he.smask&&(Ge+="_smask_"+this.smaskCounter++%2);var wt=this.cachedCanvases.getCanvas(Ge,Ce,Ve,!0),Ot=wt.context;Ot.scale(1/Be,1/ut),Ot.translate(-ke,-ae),Ot.transform.apply(Ot,Ie),he.smask?this.smaskStack.push({canvas:wt.canvas,context:Ot,offsetX:ke,offsetY:ae,scaleX:Be,scaleY:ut,subtype:he.smask.subtype,backdrop:he.smask.backdrop,transferMap:he.smask.transferMap||null,startTransformInverse:null}):(fe.setTransform(1,0,0,1,0,0),fe.translate(ke,ae),fe.scale(Be,ut)),de(fe,Ot),this.ctx=Ot,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(fe),this.groupLevel++,this.current.activeSMask=null},endGroup:function(he){this.groupLevel--;var fe=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,he.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(fe.canvas,0,0),this.restore(
1)},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(he,fe,Ie){this.save(),re(this.ctx),this.current=new J,Array.isArray(he)&&4===he.length&&(this.ctx.rect(he[0],he[1],he[2]-he[0],he[3]-he[1]),this.clip(),this.endPath()),this.transform.apply(this,fe),this.transform.apply(this,Ie)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(he){var fe=this.ctx,Ie=he.width,Se=he.height,pe=this.current.fillColor,ke=this.current.patternFill,ae=this.processingType3;if(ae&&void 0===ae.compiled&&(ae.compiled=Ie<=1e3&&Se<=1e3?function le(Re){var N,Y,de,ee,Q=Re.width,P=Re.height,re=Q+1,V=new Uint8Array(re*(P+1)),ne=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),E=Q+7&-8,M=Re.data,A=new Uint8Array(E*P),R=0;for(N=0,ee=M.length;N<ee;N++)for(var B=128,K=M[N];B>0;)A[R++]=K&B?0:255,B>>=1;var ge=0;for(0!==A[R=0]&&(V[0]=1,++ge),Y=1;Y<Q;Y++)A[R]!==A[R+1]&&(V[Y]=A[R]?2:1,++ge),R++;for(0!==A[R]&&(V[Y]=2,++ge),N=1;N<P;N++){de=N*re,A[(R=N*E)-E]!==A[R]&&(V[de]=A[R]?1:8,++ge);var Fe=(A[R]?4:0)+(A[R-E]?8:0);for(Y=1;Y<Q;Y++)ne[Fe=(Fe>>2)+(A[R+1]?4:0)+(A[R-E+1]?8:0)]&&(V[de+Y]=ne[Fe],++ge),R++;if(A[R-E]!==A[R]&&(V[de+Y]=A[R]?2:4,++ge),ge>1e3)return null}for(de=N*re,0!==A[R=E*(P-1)]&&(V[de]=8,++ge),Y=1;Y<Q;Y++)A[R]!==A[R+1]&&(V[de+Y]=A[R]?4:8,++ge),R++;if(0!==A[R]&&(V[de+Y]=4,++ge),ge>1e3)return null;var he=new Int32Array([0,re,-1,0,-re,0,0,0,1]),fe=[];for(N=0;ge&&N<=P;N++){for(var Ie=N*re,Se=Ie+Q;Ie<Se&&!V[Ie];)Ie++;if(Ie!==Se){var Ce,pe=[Ie%re,N],ke=V[Ie],ae=Ie;do{var Ve=he[ke];do{Ie+=Ve}while(!V[Ie]);5!==(Ce=V[Ie])&&10!==Ce?(ke=Ce,V[Ie]=0):V[Ie]&=(ke=Ce&51*ke>>4)>>2|ke<<2,pe.push(Ie%re),pe.push(Ie/re|0),V[Ie]||--ge}while(ae!==Ie);fe.push(pe),--N}}return function(ut){ut.save(),ut.scale(1/Q,-1/P),ut.translate(0,-P),ut.beginPath();for(let wt=0,Ot=fe.length;wt<Ot;wt++){var Ge=fe[wt];ut.moveTo(Ge[0],Ge[1]);for(let Ft=2,ht=Ge.length;Ft<ht;Ft+=2)ut.lineTo(Ge[Ft],Ge[Ft+1])}ut.fill(),ut.beginPath(),ut.restore()}}({data:he.data,width:Ie,height:Se}):null),ae&&ae.compiled)ae.compiled(fe);else{var Ce=this.cachedCanvases.getCanvas("maskCanvas",Ie,Se),Ve=Ce.context;Ve.save(),Y(Ve,he),Ve.globalCompositeOperation="source-in",Ve.fillStyle=ke?pe.getPattern(Ve,this):pe,Ve.fillRect(0,0,Ie,Se),Ve.restore(),this.paintInlineImageXObject(Ce.canvas)}},paintImageMaskXObjectRepeat:function(he,fe,Ie,Se){var pe=he.width,ke=he.height,ae=this.current.fillColor,Ce=this.current.patternFill,Ve=this.cachedCanvases.getCanvas("maskCanvas",pe,ke),Be=Ve.context;Be.save(),Y(Be,he),Be.globalCompositeOperation="source-in",Be.fillStyle=Ce?ae.getPattern(Be,this):ae,Be.fillRect(0,0,pe,ke),Be.restore();for(var ut=this.ctx,Ge=0,wt=Se.length;Ge<wt;Ge+=2)ut.save(),ut.transform(fe,0,0,Ie,Se[Ge],Se[Ge+1]),ut.scale(1,-1),ut.drawImage(Ve.canvas,0,0,pe,ke,0,-1,1,1),ut.restore()},paintImageMaskXObjectGroup:function(he){for(var fe=this.ctx,Ie=this.current.fillColor,Se=this.current.patternFill,pe=0,ke=he.length;pe<ke;pe++){var ae=he[pe],Ce=ae.width,Ve=ae.height,Be=this.cachedCanvases.getCanvas("maskCanvas",Ce,Ve),ut=Be.context;ut.save(),Y(ut,ae),ut.globalCompositeOperation="source-in",ut.fillStyle=Se?Ie.getPattern(ut,this):Ie,ut.fillRect(0,0,Ce,Ve),ut.restore(),fe.save(),fe.transform.apply(fe,ae.transform),fe.scale(1,-1),fe.drawImage(Be.canvas,0,0,Ce,Ve,0,-1,1,1),fe.restore()}},paintImageXObject:function(he){const fe=he.startsWith("g_")?this.commonObjs.get(he):this.objs.get(he);fe?this.paintInlineImageXObject(fe):(0,s.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(he,fe,Ie,Se){const pe=he.startsWith("g_")?this.commonObjs.get(he):this.objs.get(he);if(pe){for(var ke=pe.width,ae=pe.height,Ce=[],Ve=0,Be=Se.length;Ve<Be;Ve+=2)Ce.push({transform:[fe,0,0,Ie,Se[Ve],Se[Ve+1]],x:0,y:0,w:ke,h:ae});this.paintInlineImageXObjectGroup(pe,Ce)}else(0,s.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(he){var fe=he.width,Ie=he.height,Se=this.ctx;this.save(),Se.scale(1/fe,-1/Ie);var Ge,wt,pe=Se.mozCurrentTransformInverse,ke=pe[0],ae=pe[1],Ce=Math.max(Math.sqrt(ke*ke+ae*ae),1),Ve=pe[2],Be=pe[3],ut=Math.max(Math.sqrt(Ve*Ve+Be*Be),1);if("function"==typeof HTMLElement&&he instanceof HTMLElement||!he.data)Ge=he;else{var Ot=(wt=this.cachedCanvases.getCanvas("inlineImage",fe,Ie)).context;N(Ot,he),Ge=wt.canvas}for(var Ft=fe,ht=Ie,Ht="prescale1";Ce>2&&Ft>1||ut>2&&ht>1;){var jt=Ft,cn=ht;Ce>2&&Ft>1&&(Ce/=Ft/(jt=Math.ceil(Ft/2))),ut>2&&ht>1&&(ut/=ht/(cn=Math.ceil(ht/2))),(Ot=(wt=this.cachedCanvases.getCanvas(Ht,jt,cn)).context).clearRect(0,0,jt,cn),Ot.drawImage(Ge,0,0,Ft,ht,0,0,jt,cn),Ge=wt.canvas,Ft=jt,ht=cn,Ht="prescale1"===Ht?"prescale2":"prescale1"}if(Se.drawImage(Ge,0,0,Ft,ht,0,-Ie,fe,Ie),this.imageLayer){var hn=this.getCanvasPosition(0,-Ie);this.imageLayer.appendImage({imgData:he,left:hn[0],top:hn[1],width:fe/pe[0],height:Ie/pe[3]}
1)}this.restore()},paintInlineImageXObjectGroup:function(he,fe){var Ie=this.ctx,Se=he.width,pe=he.height,ke=this.cachedCanvases.getCanvas("inlineImage",Se,pe);N(ke.context,he);for(var Ce=0,Ve=fe.length;Ce<Ve;Ce++){var Be=fe[Ce];if(Ie.save(),Ie.transform.apply(Ie,Be.transform),Ie.scale(1,-1),Ie.drawImage(ke.canvas,Be.x,Be.y,Be.w,Be.h,0,-1,1,1),this.imageLayer){var ut=this.getCanvasPosition(Be.x,Be.y);this.imageLayer.appendImage({imgData:he,left:ut[0],top:ut[1],width:Se,height:pe})}Ie.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,s.warn)("Unsupported 'paintXObject' command.")},markPoint:function(he){},markPointProps:function(he,fe){},beginMarkedContent:function(he){},beginMarkedContentProps:function(he,fe){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var he=this.ctx;this.pendingClip&&(this.pendingClip===K?he.clip("evenodd"):he.clip(),this.pendingClip=null),he.beginPath()},getSinglePixelWidth(Fe){if(null===this._cachedGetSinglePixelWidth){const he=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(he[0]*he[0]+he[1]*he[1],he[2]*he[2]+he[3]*he[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(he,fe){var Ie=this.ctx.mozCurrentTransform;return[Ie[0]*he+Ie[2]*fe+Ie[4],Ie[1]*he+Ie[3]*fe+Ie[5]]}},s.OPS)P.prototype[s.OPS[ge]]=P.prototype[ge];return P}();Z.CanvasGraphics=Me},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getShadingPatternFromIR=function D(ce){var W=_[ce[0]];if(!W)throw new Error(`Unknown IR type: ${ce[0]}`);return W.fromIR(ce)},Z.TilingPattern=void 0;var s=S(2),_={};function y(ce,W){if(!W||"undefined"==typeof Path2D)return;const G=W[2]-W[0],$=W[3]-W[1],te=new Path2D;te.rect(W[0],W[1],G,$),ce.clip(te)}_.RadialAxial={fromIR:function(W){var G=W[1],$=W[2],te=W[3],le=W[4],J=W[5],Me=W[6],Re=W[7];return{type:"Pattern",getPattern:function(Q){var P;y(Q,$),"axial"===G?P=Q.createLinearGradient(le[0],le[1],J[0],J[1]):"radial"===G&&(P=Q.createRadialGradient(le[0],le[1],Me,J[0],J[1],Re));for(var N=0,Y=te.length;N<Y;++N){var de=te[N];P.addColorStop(de[0],de[1])}return P}}}};var j=function(){function W(te,le,J,Me,Re,me,Q,P){var V,N=le.coords,Y=le.colors,de=te.data,re=4*te.width;N[J+1]>N[Me+1]&&(V=J,J=Me,Me=V,V=me,me=Q,Q=V),N[Me+1]>N[Re+1]&&(V=Me,Me=Re,Re=V,V=Q,Q=P,P=V),N[J+1]>N[Me+1]&&(V=J,J=Me,Me=V,V=me,me=Q,Q=V);var ne=(N[J]+le.offsetX)*le.scaleX,E=(N[J+1]+le.offsetY)*le.scaleY,M=(N[Me]+le.offsetX)*le.scaleX,A=(N[Me+1]+le.offsetY)*le.scaleY,R=(N[Re]+le.offsetX)*le.scaleX,ee=(N[Re+1]+le.offsetY)*le.scaleY;if(!(E>=ee))for(var Ce,Ve,Be,ut,Ge,wt,Ot,Ft,B=Y[me],K=Y[me+1],ge=Y[me+2],Fe=Y[Q],he=Y[Q+1],fe=Y[Q+2],Ie=Y[P],Se=Y[P+1],pe=Y[P+2],ke=Math.round(E),ae=Math.round(ee),ht=ke;ht<=ae;ht++){if(ht<A){let ln;ln=ht<E?0:E===A?1:(E-ht)/(E-A),Ce=ne-(ne-M)*ln,Ve=B-(B-Fe)*ln,Be=K-(K-he)*ln,ut=ge-(ge-fe)*ln}else{let ln;ln=ht>ee?1:A===ee?0:(A-ht)/(A-ee),Ce=M-(M-R)*ln,Ve=Fe-(Fe-Ie)*ln,Be=he-(he-Se)*ln,ut=fe-(fe-pe)*ln}let vn;vn=ht<E?0:ht>ee?1:(E-ht)/(E-ee),Ge=ne-(ne-R)*vn,wt=B-(B-Ie)*vn,Ot=K-(K-Se)*vn,Ft=ge-(ge-pe)*vn;for(var Ht=Math.round(Math.min(Ce,Ge)),jt=Math.round(Math.max(Ce,Ge)),cn=re*ht+4*Ht,hn=Ht;hn<=jt;hn++)vn=(Ce-hn)/(Ce-Ge),vn<0?vn=0:vn>1&&(vn=1),de[cn++]=Ve-(Ve-wt)*vn|0,de[cn++]=Be-(Be-Ot)*vn|0,de[cn++]=ut-(ut-Ft)*vn|0,de[cn++]=255}}function G(te,le,J){var me,Q,Me=le.coords,Re=le.colors;switch(le.type){case"lattice":var P=le.verticesPerRow,N=Math.floor(Me.length/P)-1,Y=P-1;for(me=0;me<N;me++)for(var de=me*P,re=0;re<Y;re++,de++)W(te,J,Me[de],Me[de+1],Me[de+P],Re[de],Re[de+1],Re[de+P]),W(te,J,Me[de+P+1],Me[de+1],Me[de+P],Re[de+P+1],Re[de+1],Re[de+P]);break;case"triangles":for(me=0,Q=Me.length;me<Q;me+=3)W(te,J,Me[me],Me[me+1],Me[me+2],Re[me],Re[me+1],Re[me+2]);break;default:throw new Error("illegal figure")}}return function $(te,le,J,Me,Re,me,Q,P){var Fe,he,fe,Ie,re=Math.floor(te[0]),V=Math.floor(te[1]),ne=Math.ceil(te[2])-re,E=Math.ceil(te[3])-V,M=Math.min(Math.ceil(Math.abs(ne*le[0]*1.1)),3e3),A=Math.min(Math.ceil(Math.abs(E*le[1]*1.1)),3e3),R=ne/M,ee=E/A,B={coords:J,colors:Me,offsetX:-re,offsetY:-V,scaleX:1/R,scaleY:1/ee},K=M+4,ge=A+4;if(P.isEnabled)Fe=P.drawFigures({width:M,height:A,backgroundColor:me,figures:Re,context:B}),(he=Q.getCanvas("mesh",K,ge,!1)).context.drawImage(Fe,2,2),Fe=he.canvas;else{var Se=(he=Q.getCanvas("mesh",K,ge,!1)).context,pe=Se.createImageData(M,A);if(me){var ke=pe.data;for(fe=0,Ie=ke.length;fe<Ie;fe+=4)ke[fe]=me[0],ke[fe+1]=me[1],ke[fe+2]=me[2],ke[fe+3]=255}for(fe=0;fe<Re.length;fe++)G(pe,Re[fe],B);Se.putImageData(pe,2,2),Fe=he.canvas}return{canvas:Fe,offsetX:re-2*R,offsetY:V-2*ee,scaleX:R,scaleY:ee}}}();_.Mesh={fromIR:function(W){var G=W[2],$=W[3],te=W[4],le=W[5],J=W[6],Me=W[7],Re=W[8];return{type:"Pattern",getPattern:function(Q,P,N){var Y;
1if(y(Q,Me),N)Y=s.Util.singularValueDecompose2dScale(Q.mozCurrentTransform);else if(Y=s.Util.singularValueDecompose2dScale(P.baseTransform),J){var de=s.Util.singularValueDecompose2dScale(J);Y=[Y[0]*de[0],Y[1]*de[1]]}var re=j(le,Y,G,$,te,N?null:Re,P.cachedCanvases,P.webGLContext);return N||(Q.setTransform.apply(Q,P.baseTransform),J&&Q.transform.apply(Q,J)),Q.translate(re.offsetX,re.offsetY),Q.scale(re.scaleX,re.scaleY),Q.createPattern(re.canvas,"no-repeat")}}}},_.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var L=function(){function $(te,le,J,Me,Re){this.operatorList=te[2],this.matrix=te[3]||[1,0,0,1,0,0],this.bbox=te[4],this.xstep=te[5],this.ystep=te[6],this.paintType=te[7],this.tilingType=te[8],this.color=le,this.canvasGraphicsFactory=Me,this.baseTransform=Re,this.type="Pattern",this.ctx=J}return $.prototype={createPatternCanvas:function(le){var J=this.operatorList,Me=this.bbox,Re=this.xstep,me=this.ystep,Q=this.paintType,N=this.color,Y=this.canvasGraphicsFactory;(0,s.info)("TilingType: "+this.tilingType);var de=Me[0],re=Me[1],V=Me[2],ne=Me[3],E=s.Util.singularValueDecompose2dScale(this.matrix),M=s.Util.singularValueDecompose2dScale(this.baseTransform),A=[E[0]*M[0],E[1]*M[1]],R=this.getSizeAndScale(Re,this.ctx.canvas.width,A[0]),ee=this.getSizeAndScale(me,this.ctx.canvas.height,A[1]),B=le.cachedCanvases.getCanvas("pattern",R.size,ee.size,!0),ge=Y.createCanvasGraphics(B.context);return ge.groupLevel=le.groupLevel,this.setFillAndStrokeStyleToContext(ge,Q,N),ge.transform(R.scale,0,0,ee.scale,0,0),ge.transform(1,0,0,1,-de,-re),this.clipBbox(ge,Me,de,re,V,ne),ge.executeOperatorList(J),this.ctx.transform(1,0,0,1,de,re),this.ctx.scale(1/R.scale,1/ee.scale),B.canvas},getSizeAndScale:function(le,J,Me){le=Math.abs(le);var Re=Math.max(3e3,J),me=Math.ceil(le*Me);return me>=Re?me=Re:Me=me/le,{scale:Me,size:me}},clipBbox:function(le,J,Me,Re,me,Q){Array.isArray(J)&&4===J.length&&(le.ctx.rect(Me,Re,me-Me,Q-Re),le.clip(),le.endPath())},setFillAndStrokeStyleToContext:function(le,J,Me){const Re=le.ctx,me=le.current;switch(J){case 1:var Q=this.ctx;Re.fillStyle=Q.fillStyle,Re.strokeStyle=Q.strokeStyle,me.fillColor=Q.fillStyle,me.strokeColor=Q.strokeStyle;break;case 2:var P=s.Util.makeCssRgb(Me[0],Me[1],Me[2]);Re.fillStyle=P,Re.strokeStyle=P,me.fillColor=P,me.strokeColor=P;break;default:throw new s.FormatError(`Unsupported paint type: ${J}`)}},getPattern:function(le,J){(le=this.ctx).setTransform.apply(le,this.baseTransform),le.transform.apply(le,this.matrix);var Me=this.createPatternCanvas(J);return le.createPattern(Me,"repeat")}},$}();Z.TilingPattern=L},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.GlobalWorkerOptions=void 0;const s=Object.create(null);Z.GlobalWorkerOptions=s,s.workerPort=void 0===s.workerPort?null:s.workerPort,s.workerSrc=void 0===s.workerSrc?"":s.workerSrc},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.MessageHandler=void 0;var s=S(2);function j(L){if("object"!=typeof L||null===L)return L;switch(L.name){case"AbortException":return new s.AbortException(L.message);case"MissingPDFException":return new s.MissingPDFException(L.message);case"UnexpectedResponseException":return new s.UnexpectedResponseException(L.message,L.status);case"UnknownErrorException":return new s.UnknownErrorException(L.message,L.details);default:return new s.UnknownErrorException(L.message,L.toString())}}Z.MessageHandler=class D{constructor(ce,W,G){this.sourceName=ce,this.targetName=W,this.comObj=G,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=$=>{const te=$.data;if(te.targetName!==this.sourceName)return;if(te.stream)return void this._processStreamMessage(te);if(te.callback){const J=te.callbackId,Me=this.callbackCapabilities[J];if(!Me)throw new Error(`Cannot resolve callback ${J}`);if(delete this.callbackCapabilities[J],1===te.callback)Me.resolve(te.data);else{if(2!==te.callback)throw new Error("Unexpected callback case");Me.reject(j(te.reason))}return}const le=this.actionHandler[te.action];if(!le)throw new Error(`Unknown action from worker: ${te.action}`);if(te.callbackId){const J=this.sourceName,Me=te.sourceName;new Promise(function(Re){Re(le(te.data))}).then(function(Re){G.postMessage({sourceName:J,targetName:Me,callback:1,callbackId:te.callbackId,data:Re})},function(Re){G.postMessage({sourceName:J,targetName:Me,callback:2,callbackId:te.callbackId,reason:j(Re)})})}else te.streamId?this._createStreamSink(te):le(te.data)},G.addEventListener("message",this._onComObjOnMessage)}on(ce,W){const G=this.actionHandler;if(G[ce])throw new Error(`There is already an actionName called "${ce}"`);G[ce]=W}send(ce,W,G){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ce,data:W},G)}
1sendWithPromise(ce,W,G){const $=this.callbackId++,te=(0,s.createPromiseCapability)();this.callbackCapabilities[$]=te;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:ce,callbackId:$,data:W},G)}catch(le){te.reject(le)}return te.promise}sendWithStream(ce,W,G,$){const te=this.streamId++,le=this.sourceName,J=this.targetName,Me=this.comObj;return new ReadableStream({start:Re=>{const me=(0,s.createPromiseCapability)();return this.streamControllers[te]={controller:Re,startCall:me,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:le,targetName:J,action:ce,streamId:te,data:W,desiredSize:Re.desiredSize},$),me.promise},pull:Re=>{const me=(0,s.createPromiseCapability)();return this.streamControllers[te].pullCall=me,Me.postMessage({sourceName:le,targetName:J,stream:6,streamId:te,desiredSize:Re.desiredSize}),me.promise},cancel:Re=>{(0,s.assert)(Re instanceof Error,"cancel must have a valid reason");const me=(0,s.createPromiseCapability)();return this.streamControllers[te].cancelCall=me,this.streamControllers[te].isClosed=!0,Me.postMessage({sourceName:le,targetName:J,stream:1,streamId:te,reason:j(Re)}),me.promise}},G)}_createStreamSink(ce){const W=this,G=this.actionHandler[ce.action],$=ce.streamId,te=this.sourceName,le=ce.sourceName,J=this.comObj,Me={enqueue(Re,me=1,Q){if(this.isCancelled)return;const P=this.desiredSize;this.desiredSize-=me,P>0&&this.desiredSize<=0&&(this.sinkCapability=(0,s.createPromiseCapability)(),this.ready=this.sinkCapability.promise),W._postMessage({sourceName:te,targetName:le,stream:4,streamId:$,chunk:Re},Q)},close(){this.isCancelled||(this.isCancelled=!0,J.postMessage({sourceName:te,targetName:le,stream:3,streamId:$}),delete W.streamSinks[$])},error(Re){(0,s.assert)(Re instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,J.postMessage({sourceName:te,targetName:le,stream:5,streamId:$,reason:j(Re)}))},sinkCapability:(0,s.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:ce.desiredSize,ready:null};Me.sinkCapability.resolve(),Me.ready=Me.sinkCapability.promise,this.streamSinks[$]=Me,new Promise(function(Re){Re(G(ce.data,Me))}).then(function(){J.postMessage({sourceName:te,targetName:le,stream:8,streamId:$,success:!0})},function(Re){J.postMessage({sourceName:te,targetName:le,stream:8,streamId:$,reason:j(Re)})})}_processStreamMessage(ce){const W=ce.streamId,G=this.sourceName,$=ce.sourceName,te=this.comObj;switch(ce.stream){case 8:ce.success?this.streamControllers[W].startCall.resolve():this.streamControllers[W].startCall.reject(j(ce.reason));break;case 7:ce.success?this.streamControllers[W].pullCall.resolve():this.streamControllers[W].pullCall.reject(j(ce.reason));break;case 6:if(!this.streamSinks[W]){te.postMessage({sourceName:G,targetName:$,stream:7,streamId:W,success:!0});break}this.streamSinks[W].desiredSize<=0&&ce.desiredSize>0&&this.streamSinks[W].sinkCapability.resolve(),this.streamSinks[W].desiredSize=ce.desiredSize;const{onPull:le}=this.streamSinks[ce.streamId];new Promise(function(Me){Me(le&&le())}).then(function(){te.postMessage({sourceName:G,targetName:$,stream:7,streamId:W,success:!0})},function(Me){te.postMessage({sourceName:G,targetName:$,stream:7,streamId:W,reason:j(Me)})});break;case 4:if((0,s.assert)(this.streamControllers[W],"enqueue should have stream controller"),this.streamControllers[W].isClosed)break;this.streamControllers[W].controller.enqueue(ce.chunk);break;case 3:if((0,s.assert)(this.streamControllers[W],"close should have stream controller"),this.streamControllers[W].isClosed)break;this.streamControllers[W].isClosed=!0,this.streamControllers[W].controller.close(),this._deleteStreamController(W);break;case 5:(0,s.assert)(this.streamControllers[W],"error should have stream controller"),this.streamControllers[W].controller.error(j(ce.reason)),this._deleteStreamController(W);break;case 2:ce.success?this.streamControllers[W].cancelCall.resolve():this.streamControllers[W].cancelCall.reject(j(ce.reason)),this._deleteStreamController(W);break;case 1:if(!this.streamSinks[W])break;const{onCancel:J}=this.streamSinks[ce.streamId];new Promise(function(Me){Me(J&&J(j(ce.reason)))}).then(function(){te.postMessage({sourceName:G,targetName:$,stream
1:2,streamId:W,success:!0})},function(Me){te.postMessage({sourceName:G,targetName:$,stream:2,streamId:W,reason:j(Me)})}),this.streamSinks[W].sinkCapability.reject(j(ce.reason)),this.streamSinks[W].isCancelled=!0,delete this.streamSinks[W];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(ce){var W=this;return _asyncToGenerator(function*(){yield Promise.allSettled([W.streamControllers[ce].startCall,W.streamControllers[ce].pullCall,W.streamControllers[ce].cancelCall].map(function(G){return G&&G.promise})),delete W.streamControllers[ce]})()}_postMessage(ce,W){W&&this.postMessageTransfers?this.comObj.postMessage(ce,W):this.comObj.postMessage(ce)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.Metadata=void 0;var s=S(2),_=S(13);Z.Metadata=class y{constructor(D){(0,s.assert)("string"==typeof D,"Metadata: input is not a string"),D=this._repair(D);const ce=(new _.SimpleXMLParser).parseFromString(D);this._metadataMap=new Map,ce&&this._parse(ce)}_repair(D){return D.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(L,ce){const W=ce.replace(/\\([0-3])([0-7])([0-7])/g,function($,te,le,J){return String.fromCharCode(64*te+8*le+1*J)}).replace(/&(amp|apos|gt|lt|quot);/g,function($,te){switch(te){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${te} isn't defined.`)});let G="";for(let $=0,te=W.length;$<te;$+=2){const le=256*W.charCodeAt($)+W.charCodeAt($+1);G+=le>=32&&le<127&&60!==le&&62!==le&&38!==le?String.fromCharCode(le):"&#x"+(65536+le).toString(16).substring(1)+";"}return">"+G})}_parse(D){let L=D.documentElement;if("rdf:rdf"!==L.nodeName.toLowerCase())for(L=L.firstChild;L&&"rdf:rdf"!==L.nodeName.toLowerCase();)L=L.nextSibling;const ce=L?L.nodeName.toLowerCase():null;if(!L||"rdf:rdf"!==ce||!L.hasChildNodes())return;const W=L.childNodes;for(let G=0,$=W.length;G<$;G++){const te=W[G];if("rdf:description"===te.nodeName.toLowerCase())for(let le=0,J=te.childNodes.length;le<J;le++)if("#text"!==te.childNodes[le].nodeName.toLowerCase()){const Me=te.childNodes[le],Re=Me.nodeName.toLowerCase();this._metadataMap.set(Re,Me.textContent.trim())}}}get(D){return this._metadataMap.has(D)?this._metadataMap.get(D):null}getAll(){const D=Object.create(null);for(const[L,ce]of this._metadataMap)D[L]=ce;return D}has(D){return this._metadataMap.has(D)}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.SimpleXMLParser=void 0;function _(ce,W){const G=ce[W];return" "===G||"\n"===G||"\r"===G||"\t"===G}class D{constructor(W,G){this.nodeName=W,this.nodeValue=G,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const W=this.parentNode.childNodes;if(!W)return;const G=W.indexOf(this);return-1!==G?W[G+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(function(W){return W.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}}Z.SimpleXMLParser=class L extends class j{_resolveEntities(W){return W.replace(/&([^;]+);/g,(G,$)=>{if("#x"===$.substring(0,2))return String.fromCharCode(parseInt($.substring(2),16));if("#"===$.substring(0,1))return String.fromCharCode(parseInt($.substring(1),10));switch($){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity($)})}_parseContent(W,G){const $=[];let te=G;function le(){for(;te<W.length&&_(W,te);)++te}for(;te<W.length&&!_(W,te)&&">"!==W[te]&&"/"!==W[te];)++te;const J=W.substring(G,te);for(le();te<W.length&&">"!==W[te]&&"/"!==W[te]&&"?"!==W[te];){le();let Me="",Re="";for(;te<W.length&&!_(W,te)&&"="!==W[te];)Me+=W[te],++te;if(le(),"="!==W[te])return null;++te,le();const me=W[te];if('"'!==me&&"'"!==me)return null;const Q=W.indexOf(me,++te);if(Q<0)return null;Re=W.substring(te,Q),$.push({name:Me,value:this._resolveEntities(Re)}),te=Q+1,le()}return{name:J,attributes:$,parsed:te-G}}_parseProcessingInstruction(W,G){let $=G;for(;$<W.length&&!_(W,$)&&">"!==W[$]&&"/"!==W[$];)++$;const le=W.substring(G,$);!function te(){for(;$<W.length&&_(W,$);)++$}();const J=$;for(;$<W.length&&("?"!==W[$]||">"!==W[$+1]);)++$;return{name:le,value:W.substring(J,$),parsed:$-G}}parseXml(W){let G=0;for(;G<W.length;){let te=G;if("<"===W[G]){let J;switch(++te,W[te]){case"/":if(++te,J=W.indexOf(">",te),J<0)return void this.onError(-9);this.onEndElement(W.substring(te,J)),te=J+1;break;case"?":++te;const Me=this._parseProcessingInstruction(W,te);if("?>"!==W.substring(te+Me.parsed,te+Me.parsed+2))return void this.onError(-3);
1this.onPi(Me.name,Me.value),te+=Me.parsed+2;break;case"!":if("--"===W.substring(te+1,te+3)){if(J=W.indexOf("--\x3e",te+3),J<0)return void this.onError(-5);this.onComment(W.substring(te+3,J)),te=J+3}else if("[CDATA["===W.substring(te+1,te+8)){if(J=W.indexOf("]]>",te+8),J<0)return void this.onError(-2);this.onCdata(W.substring(te+8,J)),te=J+3}else{if("DOCTYPE"!==W.substring(te+1,te+8))return void this.onError(-6);{const Q=W.indexOf("[",te+8);let P=!1;if(J=W.indexOf(">",te+8),J<0)return void this.onError(-4);if(Q>0&&J>Q){if(J=W.indexOf("]>",te+8),J<0)return void this.onError(-4);P=!0}const N=W.substring(te+8,J+(P?1:0));this.onDoctype(N),te=J+(P?2:1)}}break;default:const Re=this._parseContent(W,te);if(null===Re)return void this.onError(-6);let me=!1;if("/>"===W.substring(te+Re.parsed,te+Re.parsed+2))me=!0;else if(">"!==W.substring(te+Re.parsed,te+Re.parsed+1))return void this.onError(-9);this.onBeginElement(Re.name,Re.attributes,me),te+=Re.parsed+(me?2:1)}}else{for(;te<W.length&&"<"!==W[te];)te++;const le=W.substring(G,te);this.onText(this._resolveEntities(le))}G=te}}onResolveEntity(W){return`&${W};`}onPi(W,G){}onComment(W){}onCdata(W){}onDoctype(W){}onText(W){}onBeginElement(W,G,$){}onEndElement(W){}onError(W){}}{constructor(){super(),this._currentFragment=null,this._stack=null,this._errorCode=0}parseFromString(W){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(W),0!==this._errorCode)return;const[G]=this._currentFragment;return G?{documentElement:G}:void 0}onResolveEntity(W){return"apos"===W?"'":super.onResolveEntity(W)}onText(W){if(function y(ce){for(let W=0,G=ce.length;W<G;W++)if(!_(ce,W))return!1;return!0}(W))return;const G=new D("#text",W);this._currentFragment.push(G)}onCdata(W){const G=new D("#text",W);this._currentFragment.push(G)}onBeginElement(W,G,$){const te=new D(W);te.childNodes=[],this._currentFragment.push(te),!$&&(this._stack.push(this._currentFragment),this._currentFragment=te.childNodes)}onEndElement(W){this._currentFragment=this._stack.pop()||[];const G=this._currentFragment[this._currentFragment.length-1];if(G)for(let $=0,te=G.childNodes.length;$<te;$++)G.childNodes[$].parentNode=G}onError(W){this._errorCode=W}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.PDFDataTransportStream=void 0;var s=S(2);Z.PDFDataTransportStream=class _{constructor(L,ce){(0,s.assert)(ce,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=L.progressiveDone||!1;const W=L.initialData;if(W&&W.length>0){const G=new Uint8Array(W).buffer;this._queuedChunks.push(G)}this._pdfDataRangeTransport=ce,this._isStreamingSupported=!L.disableStream,this._isRangeSupported=!L.disableRange,this._contentLength=L.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((G,$)=>{this._onReceiveData({begin:G,chunk:$})}),this._pdfDataRangeTransport.addProgressListener((G,$)=>{this._onProgress({loaded:G,total:$})}),this._pdfDataRangeTransport.addProgressiveReadListener(G=>{this._onReceiveData({chunk:G})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(L){const ce=new Uint8Array(L.chunk).buffer;if(void 0===L.begin)this._fullRequestReader?this._fullRequestReader._enqueue(ce):this._queuedChunks.push(ce);else{const W=this._rangeReaders.some(function(G){return G._begin===L.begin&&(G._enqueue(ce),!0)});(0,s.assert)(W,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}_onProgress(L){if(void 0===L.total){const ce=this._rangeReaders[0];ce&&ce.onProgress&&ce.onProgress({loaded:L.loaded})}else{const ce=this._fullRequestReader;ce&&ce.onProgress&&ce.onProgress({loaded:L.loaded,total:L.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(L){const ce=this._rangeReaders.indexOf(L);ce>=0&&this._rangeReaders.splice(ce,1)}getFullReader(){(0,s.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const L=this._queuedChunks;return this._queuedChunks=null,new y(this,L,this._progressiveDone)}getRangeReader(L,ce){if(ce<=this._progressiveDataLength)return null;const W=new j(this,L,ce);return this._pdfDataRangeTransport.requestDataRange(L,ce),this._rangeReaders.push(W),W}cancelAllRequests(L){this._fullRequestReader&&this._fullRequestReader.cancel(L),this._rangeReaders.slice(0).forEac
1h(function(W){W.cancel(L)}),this._pdfDataRangeTransport.abort()}};class y{constructor(L,ce,W=!1){this._stream=L,this._done=W||!1,this._filename=null,this._queuedChunks=ce||[],this._loaded=0;for(const G of this._queuedChunks)this._loaded+=G.byteLength;this._requests=[],this._headersReady=Promise.resolve(),L._fullRequestReader=this,this.onProgress=null}_enqueue(L){this._done||(this._requests.length>0?this._requests.shift().resolve({value:L,done:!1}):this._queuedChunks.push(L),this._loaded+=L.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var L=this;return _asyncToGenerator(function*(){if(L._queuedChunks.length>0)return{value:L._queuedChunks.shift(),done:!1};if(L._done)return{value:void 0,done:!0};const ce=(0,s.createPromiseCapability)();return L._requests.push(ce),ce.promise})()}cancel(L){this._done=!0,this._requests.forEach(function(ce){ce.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class j{constructor(L,ce,W){this._stream=L,this._begin=ce,this._end=W,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(L){this._done||(0===this._requests.length?this._queuedChunk=L:(this._requests.shift().resolve({value:L,done:!1}),this._requests.forEach(function(W){W.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}read(){var L=this;return _asyncToGenerator(function*(){if(L._queuedChunk){const W=L._queuedChunk;return L._queuedChunk=null,{value:W,done:!1}}if(L._done)return{value:void 0,done:!0};const ce=(0,s.createPromiseCapability)();return L._requests.push(ce),ce.promise})()}cancel(L){this._done=!0,this._requests.forEach(function(ce){ce.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.WebGLContext=void 0;var s=S(2);Z.WebGLContext=class _{constructor({enable:D=!1}){this._enabled=!0===D}get isEnabled(){let D=this._enabled;return D&&(D=y.tryInitGL()),(0,s.shadow)(this,"isEnabled",D)}composeSMask({layer:D,mask:L,properties:ce}){return y.composeSMask(D,L,ce)}drawFigures({width:D,height:L,backgroundColor:ce,figures:W,context:G}){return y.drawFigures(D,L,ce,W,G)}clear(){y.cleanup()}};var y=function(){function D(V,ne,E){var M=V.createShader(E);if(V.shaderSource(M,ne),V.compileShader(M),!V.getShaderParameter(M,V.COMPILE_STATUS)){var R=V.getShaderInfoLog(M);throw new Error("Error during shader compilation: "+R)}return M}function L(V,ne){return D(V,ne,V.VERTEX_SHADER)}function ce(V,ne){return D(V,ne,V.FRAGMENT_SHADER)}function W(V,ne){for(var E=V.createProgram(),M=0,A=ne.length;M<A;++M)V.attachShader(E,ne[M]);if(V.linkProgram(E),!V.getProgramParameter(E,V.LINK_STATUS)){var ee=V.getProgramInfoLog(E);throw new Error("Error during program linking: "+ee)}return E}function G(V,ne,E){V.activeTexture(E);var M=V.createTexture();return V.bindTexture(V.TEXTURE_2D,M),V.texParameteri(V.TEXTURE_2D,V.TEXTURE_WRAP_S,V.CLAMP_TO_EDGE),V.texParameteri(V.TEXTURE_2D,V.TEXTURE_WRAP_T,V.CLAMP_TO_EDGE),V.texParameteri(V.TEXTURE_2D,V.TEXTURE_MIN_FILTER,V.NEAREST),V.texParameteri(V.TEXTURE_2D,V.TEXTURE_MAG_FILTER,V.NEAREST),V.texImage2D(V.TEXTURE_2D,0,V.RGBA,V.RGBA,V.UNSIGNED_BYTE,ne),M}var $,te;function le(){$||(te=document.createElement("canvas"),$=te.getContext("webgl",{premultipliedalpha:!1}))}var Re=null,Y=null;return{tryInitGL(){try{return le(),!!$}catch(V){}return!1},composeSMask:function Q(V,ne,E){var M=V.width,A=V.height;Re||function me(){var V,ne;le(),V=te,te=null,ne=$,$=null;var A=W(ne,[L(ne," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } "),ce(ne," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);ne.useProgram(A);var R={};R.gl=ne,R.canvas=V,R.resolutionLocation=ne.getUniformLocation(A,"u_resolution"),R.positionLocation=ne.getAttribLocation(A,"a_position"),R.backdropLocation=ne.getUniformLocation(A,"u_backdrop"),R.subtypeLocation=ne.getUniformLocation(A,"u_subtype");var ee=ne.getAttribLocation(A,"a_texCoord"),B=ne.getUniformLocation(A,"u_image"),K=ne.getUniformLocation(A,"u_mask"),ge=ne.createBuffer();ne.bindBuffer(ne.ARRAY_BUFFER,ge),ne.bufferData(ne.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),ne.STATIC_DRAW),ne.enableVertexAttribArray(ee),ne.vertexAttribPointer(ee,2,ne.FLOAT,!1,0,0),ne.uniform1i(B,0
1),ne.uniform1i(K,1),Re=R}();var R=Re,ee=R.canvas,B=R.gl;ee.width=M,ee.height=A,B.viewport(0,0,B.drawingBufferWidth,B.drawingBufferHeight),B.uniform2f(R.resolutionLocation,M,A),E.backdrop?B.uniform4f(R.resolutionLocation,E.backdrop[0],E.backdrop[1],E.backdrop[2],1):B.uniform4f(R.resolutionLocation,0,0,0,0),B.uniform1i(R.subtypeLocation,"Luminosity"===E.subtype?1:0);var K=G(B,V,B.TEXTURE0),ge=G(B,ne,B.TEXTURE1),Fe=B.createBuffer();return B.bindBuffer(B.ARRAY_BUFFER,Fe),B.bufferData(B.ARRAY_BUFFER,new Float32Array([0,0,M,0,0,A,0,A,M,0,M,A]),B.STATIC_DRAW),B.enableVertexAttribArray(R.positionLocation),B.vertexAttribPointer(R.positionLocation,2,B.FLOAT,!1,0,0),B.clearColor(0,0,0,0),B.enable(B.BLEND),B.blendFunc(B.ONE,B.ONE_MINUS_SRC_ALPHA),B.clear(B.COLOR_BUFFER_BIT),B.drawArrays(B.TRIANGLES,0,6),B.flush(),B.deleteTexture(K),B.deleteTexture(ge),B.deleteBuffer(Fe),ee},drawFigures:function re(V,ne,E,M,A){Y||function de(){var V,ne;le(),V=te,te=null,ne=$,$=null;var A=W(ne,[L(ne," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),ce(ne," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);ne.useProgram(A);var R={};R.gl=ne,R.canvas=V,R.resolutionLocation=ne.getUniformLocation(A,"u_resolution"),R.scaleLocation=ne.getUniformLocation(A,"u_scale"),R.offsetLocation=ne.getUniformLocation(A,"u_offset"),R.positionLocation=ne.getAttribLocation(A,"a_position"),R.colorLocation=ne.getAttribLocation(A,"a_color"),Y=R}();var R=Y,ee=R.canvas,B=R.gl;ee.width=V,ee.height=ne,B.viewport(0,0,B.drawingBufferWidth,B.drawingBufferHeight),B.uniform2f(R.resolutionLocation,V,ne);var ge,Fe,he,K=0;for(ge=0,Fe=M.length;ge<Fe;ge++)switch(M[ge].type){case"lattice":K+=((he=M[ge].coords.length/M[ge].verticesPerRow|0)-1)*(M[ge].verticesPerRow-1)*6;break;case"triangles":K+=M[ge].coords.length}var fe=new Float32Array(2*K),Ie=new Uint8Array(3*K),Se=A.coords,pe=A.colors,ke=0,ae=0;for(ge=0,Fe=M.length;ge<Fe;ge++){var Ce=M[ge],Ve=Ce.coords,Be=Ce.colors;switch(Ce.type){case"lattice":var ut=Ce.verticesPerRow;he=Ve.length/ut|0;for(var Ge=1;Ge<he;Ge++)for(var wt=Ge*ut+1,Ot=1;Ot<ut;Ot++,wt++)fe[ke]=Se[Ve[wt-ut-1]],fe[ke+1]=Se[Ve[wt-ut-1]+1],fe[ke+2]=Se[Ve[wt-ut]],fe[ke+3]=Se[Ve[wt-ut]+1],fe[ke+4]=Se[Ve[wt-1]],fe[ke+5]=Se[Ve[wt-1]+1],Ie[ae]=pe[Be[wt-ut-1]],Ie[ae+1]=pe[Be[wt-ut-1]+1],Ie[ae+2]=pe[Be[wt-ut-1]+2],Ie[ae+3]=pe[Be[wt-ut]],Ie[ae+4]=pe[Be[wt-ut]+1],Ie[ae+5]=pe[Be[wt-ut]+2],Ie[ae+6]=pe[Be[wt-1]],Ie[ae+7]=pe[Be[wt-1]+1],Ie[ae+8]=pe[Be[wt-1]+2],fe[ke+6]=fe[ke+2],fe[ke+7]=fe[ke+3],fe[ke+8]=fe[ke+4],fe[ke+9]=fe[ke+5],fe[ke+10]=Se[Ve[wt]],fe[ke+11]=Se[Ve[wt]+1],Ie[ae+9]=Ie[ae+3],Ie[ae+10]=Ie[ae+4],Ie[ae+11]=Ie[ae+5],Ie[ae+12]=Ie[ae+6],Ie[ae+13]=Ie[ae+7],Ie[ae+14]=Ie[ae+8],Ie[ae+15]=pe[Be[wt]],Ie[ae+16]=pe[Be[wt]+1],Ie[ae+17]=pe[Be[wt]+2],ke+=12,ae+=18;break;case"triangles":for(var Ft=0,ht=Ve.length;Ft<ht;Ft++)fe[ke]=Se[Ve[Ft]],fe[ke+1]=Se[Ve[Ft]+1],Ie[ae]=pe[Be[Ft]],Ie[ae+1]=pe[Be[Ft]+1],Ie[ae+2]=pe[Be[Ft]+2],ke+=2,ae+=3}}E?B.clearColor(E[0]/255,E[1]/255,E[2]/255,1):B.clearColor(0,0,0,0),B.clear(B.COLOR_BUFFER_BIT);var Ht=B.createBuffer();B.bindBuffer(B.ARRAY_BUFFER,Ht),B.bufferData(B.ARRAY_BUFFER,fe,B.STATIC_DRAW),B.enableVertexAttribArray(R.positionLocation),B.vertexAttribPointer(R.positionLocation,2,B.FLOAT,!1,0,0);var jt=B.createBuffer();return B.bindBuffer(B.ARRAY_BUFFER,jt),B.bufferData(B.ARRAY_BUFFER,Ie,B.STATIC_DRAW),B.enableVertexAttribArray(R.colorLocation),B.vertexAttribPointer(R.colorLocation,3,B.UNSIGNED_BYTE,!1,0,0),B.uniform2f(R.scaleLocation,A.scaleX,A.scaleY),B.uniform2f(R.offsetLocation,A.offsetX,A.offsetY),B.drawArrays(B.TRIANGLES,0,K),B.flush(),B.deleteBuffer(Ht),B.deleteBuffer(jt),ee},cleanup(){Re&&Re.canvas&&(Re.canvas.width=0,Re.canvas.height=0),Y&&Y.canvas&&(Y.canvas.width=0,Y.canvas.height=0),Re=null,Y=null}}}()},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.AnnotationLayer=void 0;var s=S(1),_=S(2);class y{static create(K){switch(K.data.annotationType){case _.AnnotationType.LINK:return new D(K);case _.AnnotationType.TEXT:return new L(K);case _.AnnotationType.WIDGET:switch(K.data.fieldType){case"Tx":return new W(K);case"Btn":return K.data.radioButton?new $(K):K.data.checkBox?new G(K):new te(K);case"Ch":return new le(K)}return new ce(K);
1case _.AnnotationType.POPUP:return new J(K);case _.AnnotationType.FREETEXT:return new Re(K);case _.AnnotationType.LINE:return new me(K);case _.AnnotationType.SQUARE:return new Q(K);case _.AnnotationType.CIRCLE:return new P(K);case _.AnnotationType.POLYLINE:return new N(K);case _.AnnotationType.CARET:return new de(K);case _.AnnotationType.INK:return new re(K);case _.AnnotationType.POLYGON:return new Y(K);case _.AnnotationType.HIGHLIGHT:return new V(K);case _.AnnotationType.UNDERLINE:return new ne(K);case _.AnnotationType.SQUIGGLY:return new E(K);case _.AnnotationType.STRIKEOUT:return new M(K);case _.AnnotationType.STAMP:return new A(K);case _.AnnotationType.FILEATTACHMENT:return new R(K);default:return new j(K)}}}class j{constructor(K,ge=!1,Fe=!1){this.isRenderable=ge,this.data=K.data,this.layer=K.layer,this.page=K.page,this.viewport=K.viewport,this.linkService=K.linkService,this.downloadManager=K.downloadManager,this.imageResourcesPath=K.imageResourcesPath,this.renderInteractiveForms=K.renderInteractiveForms,this.svgFactory=K.svgFactory,ge&&(this.container=this._createContainer(Fe))}_createContainer(K=!1){const ge=this.data,Fe=this.page,he=this.viewport,fe=document.createElement("section");let Ie=ge.rect[2]-ge.rect[0],Se=ge.rect[3]-ge.rect[1];fe.setAttribute("data-annotation-id",ge.id);const pe=_.Util.normalizeRect([ge.rect[0],Fe.view[3]-ge.rect[1]+Fe.view[1],ge.rect[2],Fe.view[3]-ge.rect[3]+Fe.view[1]]);if(fe.style.transform=`matrix(${he.transform.join(",")})`,fe.style.transformOrigin=`-${pe[0]}px -${pe[1]}px`,!K&&ge.borderStyle.width>0){fe.style.borderWidth=`${ge.borderStyle.width}px`,ge.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(Ie-=2*ge.borderStyle.width,Se-=2*ge.borderStyle.width);const ke=ge.borderStyle.horizontalCornerRadius,ae=ge.borderStyle.verticalCornerRadius;switch((ke>0||ae>0)&&(fe.style.borderRadius=`${ke}px / ${ae}px`),ge.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:fe.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:fe.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:fe.style.borderBottomStyle="solid"}ge.color?fe.style.borderColor=_.Util.makeCssRgb(0|ge.color[0],0|ge.color[1],0|ge.color[2]):fe.style.borderWidth=0}return fe.style.left=`${pe[0]}px`,fe.style.top=`${pe[1]}px`,fe.style.width=`${Ie}px`,fe.style.height=`${Se}px`,fe}_createPopup(K,ge,Fe){ge||((ge=document.createElement("div")).style.height=K.style.height,ge.style.width=K.style.width,K.appendChild(ge));const fe=new Me({container:K,trigger:ge,color:Fe.color,title:Fe.title,modificationDate:Fe.modificationDate,contents:Fe.contents,hideWrapper:!0}).render();fe.style.left=K.style.width,K.appendChild(fe)}render(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}class D extends j{constructor(K){super(K,!!(K.data.url||K.data.dest||K.data.action))}render(){this.container.className="linkAnnotation";const{data:K,linkService:ge}=this,Fe=document.createElement("a");return K.url?(0,s.addLinkAttributes)(Fe,{url:K.url,target:K.newWindow?s.LinkTarget.BLANK:ge.externalLinkTarget,rel:ge.externalLinkRel,enabled:ge.externalLinkEnabled}):K.action?this._bindNamedAction(Fe,K.action):this._bindLink(Fe,K.dest),this.container.appendChild(Fe),this.container}_bindLink(K,ge){K.href=this.linkService.getDestinationHash(ge),K.onclick=()=>(ge&&this.linkService.navigateTo(ge),!1),ge&&(K.className="internalLink")}_bindNamedAction(K,ge){K.href=this.linkService.getAnchorUrl(""),K.onclick=()=>(this.linkService.executeNamedAction(ge),!1),K.className="internalLink"}}class L extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents))}render(){this.container.className="textAnnotation";const K=document.createElement("img");return K.style.height=this.container.style.height,K.style.width=this.container.style.width,K.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",K.alt="[{{type}} Annotation]",K.dataset.l10nId="text_annotation_type",K.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,K,this.data),this.container.appendChild(K),this.container}}
1class ce extends j{render(){return this.container}}class W extends ce{constructor(K){super(K,K.renderInteractiveForms||!K.data.hasAppearance&&!!K.data.fieldValue)}render(){this.container.className="textWidgetAnnotation";let ge=null;if(this.renderInteractiveForms){if(this.data.multiLine?(ge=document.createElement("textarea"),ge.textContent=this.data.fieldValue):(ge=document.createElement("input"),ge.type="text",ge.setAttribute("value",this.data.fieldValue)),ge.disabled=this.data.readOnly,ge.name=this.data.fieldName,null!==this.data.maxLen&&(ge.maxLength=this.data.maxLen),this.data.comb){const he=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;ge.classList.add("comb"),ge.style.letterSpacing=`calc(${he}px - 1ch)`}}else{ge=document.createElement("div"),ge.textContent=this.data.fieldValue,ge.style.verticalAlign="middle",ge.style.display="table-cell";let Fe=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(Fe=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(ge,Fe)}return null!==this.data.textAlignment&&(ge.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(ge),this.container}_setTextStyle(K,ge){const Fe=K.style;if(Fe.fontSize=`${this.data.fontSize}px`,Fe.direction=this.data.fontDirection<0?"rtl":"ltr",!ge)return;let he="normal";ge.black?he="900":ge.bold&&(he="bold"),Fe.fontWeight=he,Fe.fontStyle=ge.italic?"italic":"normal",Fe.fontFamily=(ge.loadedName?`"${ge.loadedName}", `:"")+(ge.fallbackName||"Helvetica, sans-serif")}}class G extends ce{constructor(K){super(K,K.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation checkBox";const K=document.createElement("input");return K.disabled=this.data.readOnly,K.type="checkbox",K.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&K.setAttribute("checked",!0),this.container.appendChild(K),this.container}}class $ extends ce{constructor(K){super(K,K.renderInteractiveForms)}render(){this.container.className="buttonWidgetAnnotation radioButton";const K=document.createElement("input");return K.disabled=this.data.readOnly,K.type="radio",K.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&K.setAttribute("checked",!0),this.container.appendChild(K),this.container}}class te extends D{render(){const K=super.render();return K.className="buttonWidgetAnnotation pushButton",K}}class le extends ce{constructor(K){super(K,K.renderInteractiveForms)}render(){this.container.className="choiceWidgetAnnotation";const K=document.createElement("select");K.disabled=this.data.readOnly,K.name=this.data.fieldName,this.data.combo||(K.size=this.data.options.length,this.data.multiSelect&&(K.multiple=!0));for(const ge of this.data.options){const Fe=document.createElement("option");Fe.textContent=ge.displayValue,Fe.value=ge.exportValue,this.data.fieldValue.includes(ge.displayValue)&&Fe.setAttribute("selected",!0),K.appendChild(Fe)}return this.container.appendChild(K),this.container}}class J extends j{constructor(K){super(K,!(!K.data.title&&!K.data.contents))}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const Fe=this.layer.querySelector(`[data-annotation-id="${this.data.parentId}"]`);if(!Fe)return this.container;const he=new Me({container:this.container,trigger:Fe,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),fe=parseFloat(Fe.style.left),Ie=parseFloat(Fe.style.width);return this.container.style.transformOrigin=`-${fe+Ie}px -${Fe.style.top}`,this.container.style.left=`${fe+Ie}px`,this.container.appendChild(he.render()),this.container}}class Me{constructor(K){this.container=K.container,this.trigger=K.trigger,this.color=K.color,this.title=K.title,this.modificationDate=K.modificationDate,this.contents=K.contents,this.hideWrapper=K.hideWrapper||!1,this.pinned=!1}render(){const ge=document.createElement("div");ge.className="popupWrapper",this.hideElement=this.hideWrapper?ge:this.container,this.hideElement.setAttribute("hidden",!0);const Fe=document.createElement("div");Fe.className="popup";const he=this.color;he&&(Fe.style.backgroundColor=_.Util.makeCssRgb(0|.7*(255-he[0])+he[0],0|.7*(255-he[1])+he[1],0|.7*(255-he[2])+he[2]));const fe=document.createElement("h1");fe.textContent=this.title,Fe.appendChild(fe);const Ie=s.PDFDateString.toDateObject(this.modificationDate);if(Ie){const pe=document.createElement("span");pe.textContent="{{date}}, {{time}}",pe.dataset.l10nId="annotation_date_string",pe.dataset.l10nArgs=JSON.stringify({date:Ie.toLocaleDateString(),time:Ie.toLocaleTimeString()}),Fe.appendChild(pe)}const Se=this._formatContents(this.contents);return Fe.appendChild(Se),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),Fe.addEventListener("click",this._hide.bind(this,!0)),ge.appendChild(Fe),ge}_formatContents(K){const ge=document.createElement("p"),Fe=K.split(/(?:\r\n?|\n)/);for(let he=0,fe=Fe.length;he<fe;++he)ge.appendChild(document.createTextNode(Fe[he])),he<fe-1&&ge.appendChild(document.createElement("br"));return ge}
1_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(K=!1){K&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}_hide(K=!0){K&&(this.pinned=!1),!this.hideElement.hasAttribute("hidden")&&!this.pinned&&(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}class Re extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class me extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){this.container.className="lineAnnotation";const K=this.data,he=this.svgFactory.create(K.rect[2]-K.rect[0],K.rect[3]-K.rect[1]),fe=this.svgFactory.createElement("svg:line");return fe.setAttribute("x1",K.rect[2]-K.lineCoordinates[0]),fe.setAttribute("y1",K.rect[3]-K.lineCoordinates[1]),fe.setAttribute("x2",K.rect[2]-K.lineCoordinates[2]),fe.setAttribute("y2",K.rect[3]-K.lineCoordinates[3]),fe.setAttribute("stroke-width",K.borderStyle.width||1),fe.setAttribute("stroke","transparent"),he.appendChild(fe),this.container.append(he),this._createPopup(this.container,fe,K),this.container}}class Q extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){this.container.className="squareAnnotation";const K=this.data,ge=K.rect[2]-K.rect[0],Fe=K.rect[3]-K.rect[1],he=this.svgFactory.create(ge,Fe),fe=K.borderStyle.width,Ie=this.svgFactory.createElement("svg:rect");return Ie.setAttribute("x",fe/2),Ie.setAttribute("y",fe/2),Ie.setAttribute("width",ge-fe),Ie.setAttribute("height",Fe-fe),Ie.setAttribute("stroke-width",fe||1),Ie.setAttribute("stroke","transparent"),Ie.setAttribute("fill","none"),he.appendChild(Ie),this.container.append(he),this._createPopup(this.container,Ie,K),this.container}}class P extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){this.container.className="circleAnnotation";const K=this.data,ge=K.rect[2]-K.rect[0],Fe=K.rect[3]-K.rect[1],he=this.svgFactory.create(ge,Fe),fe=K.borderStyle.width,Ie=this.svgFactory.createElement("svg:ellipse");return Ie.setAttribute("cx",ge/2),Ie.setAttribute("cy",Fe/2),Ie.setAttribute("rx",ge/2-fe/2),Ie.setAttribute("ry",Fe/2-fe/2),Ie.setAttribute("stroke-width",fe||1),Ie.setAttribute("stroke","transparent"),Ie.setAttribute("fill","none"),he.appendChild(Ie),this.container.append(he),this._createPopup(this.container,Ie,K),this.container}}class N extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const K=this.data,he=this.svgFactory.create(K.rect[2]-K.rect[0],K.rect[3]-K.rect[1]);let fe=[];for(const Se of K.vertices)fe.push(Se.x-K.rect[0]+","+(K.rect[3]-Se.y));fe=fe.join(" ");const Ie=this.svgFactory.createElement(this.svgElementName);return Ie.setAttribute("points",fe),Ie.setAttribute("stroke-width",K.borderStyle.width||1),Ie.setAttribute("stroke","transparent"),Ie.setAttribute("fill","none"),he.appendChild(Ie),this.container.append(he),this._createPopup(this.container,Ie,K),this.container}}class Y extends N{constructor(K){super(K),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class de extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class re extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const K=this.data,he=this.svgFactory.create(K.rect[2]-K.rect[0],K.rect[3]-K.rect[1]);for(const fe of K.inkLists){let Ie=[];for(const pe of fe)Ie.push(`${pe.x-K.rect[0]},${K.rect[3]-pe.y}`);Ie=Ie.join(" ");const Se=this.svgFactory.createElement(this.svgElementName);Se.setAttribute("points",Ie),Se.setAttribute("stroke-width",K.borderStyle.width||1),Se.setAttribute("stroke","transparent"),Se.setAttribute("fill","none"),this._createPopup(this.container,Se,K),he.appendChild(Se)}return this.container.append(he),this.container}}
1class V extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class ne extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class E extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class M extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class A extends j{constructor(K){super(K,!!(K.data.hasPopup||K.data.title||K.data.contents),!0)}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}class R extends j{constructor(K){super(K,!0);const{filename:ge,content:Fe}=this.data.file;this.filename=(0,s.getFilenameFromUrl)(ge),this.content=Fe,this.linkService.eventBus&&this.linkService.eventBus.dispatch("fileattachmentannotation",{source:this,id:(0,_.stringToPDFString)(ge),filename:ge,content:Fe})}render(){this.container.className="fileAttachmentAnnotation";const K=document.createElement("div");return K.style.height=this.container.style.height,K.style.width=this.container.style.width,K.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.title||this.data.contents)&&this._createPopup(this.container,K,this.data),this.container.appendChild(K),this.container}_download(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,_.warn)("Download cannot be started due to unavailable download manager")}}Z.AnnotationLayer=class ee{static render(K){const ge=[],Fe=[];for(const he of K.annotations)if(he){if(he.annotationType===_.AnnotationType.POPUP){Fe.push(he);continue}ge.push(he)}Fe.length&&ge.push(...Fe);for(const he of ge){const fe=y.create({data:he,layer:K.div,page:K.page,viewport:K.viewport,linkService:K.linkService,downloadManager:K.downloadManager,imageResourcesPath:K.imageResourcesPath||"",renderInteractiveForms:K.renderInteractiveForms||!1,svgFactory:new s.DOMSVGFactory});fe.isRenderable&&K.div.appendChild(fe.render())}}static update(K){for(const ge of K.annotations){const Fe=K.div.querySelector(`[data-annotation-id="${ge.id}"]`);Fe&&(Fe.style.transform=`matrix(${K.viewport.transform.join(",")})`)}K.div.removeAttribute("hidden")}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.renderTextLayer=void 0;var s=S(2),_=function(){var D=/\S/;function ce(Re,me,Q){var P=document.createElement("span"),N={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(Re._textDivs.push(P),function L(Re){return!D.test(Re)}(me.str))return N.isWhitespace=!0,void Re._textDivProperties.set(P,N);var Y=s.Util.transform(Re._viewport.transform,me.transform),de=Math.atan2(Y[1],Y[0]),re=Q[me.fontName];re.vertical&&(de+=Math.PI/2);var V=Math.sqrt(Y[2]*Y[2]+Y[3]*Y[3]),ne=V;let E,M;re.ascent?ne*=re.ascent:re.descent&&(ne*=1+re.descent),0===de?(E=Y[4],M=Y[5]-ne):(E=Y[4]+ne*Math.sin(de),M=Y[5]-ne*Math.cos(de)),P.style.left=`${E}px`,P.style.top=`${M}px`,P.style.fontSize=`${V}px`,P.style.fontFamily=re.fontFamily,P.textContent=me.str,Re._fontInspectorEnabled&&(P.dataset.fontName=me.fontName),0!==de&&(N.angle=de*(180/Math.PI));let A=!1;if(me.str.length>1)A=!0;else if(me.transform[0]!==me.transform[3]){const he=Math.abs(me.transform[0]),fe=Math.abs(me.transform[3]);he!==fe&&Math.max(he,fe)/Math.min(he,fe)>1.5&&(A=!0)}if(A&&(N.canvasWidth=re.vertical?me.height*Re._viewport.scale:me.width*Re._viewport.scale),Re._textDivProperties.set(P,N),Re._textContentStream&&Re._layoutText(P),Re._enhanceTextSelection){var R=1,ee=0;0!==de&&(R=Math.cos(de),ee=Math.sin(de));var ge,Fe,B=(re.vertical?me.height:me.width)*Re._viewport.scale,K=V;Fe=0!==de?s.Util.getAxialAlignedBoundingBox([0,0,B,K],ge=[R,ee,-ee,R,E,M]):[E,M,E+B,M+K],Re._bounds.push({left:Fe[0],top:Fe[1],right:Fe[2],bottom:Fe[3],div:P,size:[B,K],m:ge})}}function W(Re){if(!Re._canceled){var me=Re._textDivs,Q=Re._capability,P=me.length;if(P>1e5)return Re._renderingDone=!0,void Q.resolve();if(!Re._textContentStream)for(var N=0;N<P;N++)Re._layoutText(me[N]);Re._renderingDone=!0,Q.resolve()}}function G(Re,me,Q){let P=0;for(let N=0;N<Q;N++){const Y=Re[me++];Y>0&&(P=P?Math.min(Y,P):Y)}return P}function le(Re,me){me.sort(function(N,Y){return N.x1-Y.x1||N.index-Y.index});var P=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];me.forEach(function(N){for(var Y=0;Y<P.length&&P[Y].end<=N.y1;)Y++;for(var de=P.length-1;de>=0&&P[de].start>=N.y2;)de--;var re,V,ne,E,M=-1/0;for(ne=Y;ne<=de;ne++){var A;(A=(V=(re=P[ne]).boundary).x2>N.x1?V.index>N.index?V.x1New:N.x1:void 0===V.x2New?(V.x2+N.x1)/2:V.x2New)>M&&(M=A)}for(N.x1New=M,ne=Y;ne<=de;ne++)void 0===(V=(re=P[ne]).boundary).x2New?V.x2>N.x1?V.index>N.index&&(V.x2New=V.x2):V.x2New=M:V.x2New>M&&(V.x2New=Math.max(M,V.x2));var R=[],ee=null;for(ne=Y;ne<=de;ne++){var B=(V=(re=P[ne]).boundary).x2>N.x2?V:N;ee===B?R[R.length-1].end=re.end:(R.push({start:re.start,end:re.end,boundary:B}),ee=B)}for(P[Y].start<N.y1&&(R[0].start=N.y1,R.unshift({start:P[Y].start,end:N.y1,boundary:P[Y].boundary})),N.y2<P[de].end&&(R[R.length-1].end=N.y2,R.push({start:N.y2,end:P[de].end,boundary:P[de].boundary})),ne=Y;ne<=de;ne++)if(void 0===(V=(re=P[ne]).boundary).x2New){var K=!1;for(E=Y-1;!K&&E>=0&&P[E].start>=V.y1;E--)K=P[E].boundary===V;for(E=de+1;!K&&E<P.length&&P[E].end<=V.y2;E++)K=P[E].boundary===V;for(E=0;!K&&E<R.length;E++)K=R[E].boundary===V;K||(V.x2New=M)}Array.prototype.splice.apply(P,[Y,de-Y+1].concat(R))}),P.forEach(function(N){var Y=N.boundary;void 0===Y.x2New&&(Y.x2New=Math.max(Re,Y.x2))})}function J({textContent:Re,textContentStream:me,container:Q,viewport:P,textDivs:N,textContentItemsStr:Y,enhanceTextSelection:de}){this._textContent=Re,this._textContentStream=me,this._container=Q,this._viewport=P,this._textDivs=N||[],this._textContentItemsStr=Y||[],this._enhanceTextSelection=!!de,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,s.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}
1).catch(()=>{})}return J.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new s.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(Re,me){for(let Q=0,P=Re.length;Q<P;Q++)this._textContentItemsStr.push(Re[Q].str),ce(this,Re[Q],me)},_layoutText(Re){const me=this._textDivProperties.get(Re);if(me.isWhitespace)return;let Q="";if(0!==me.canvasWidth){const{fontSize:P,fontFamily:N}=Re.style;(P!==this._layoutTextLastFontSize||N!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${P} ${N}`,this._layoutTextLastFontSize=P,this._layoutTextLastFontFamily=N);const{width:Y}=this._layoutTextCtx.measureText(Re.textContent);Y>0&&(me.scale=me.canvasWidth/Y,Q=`scaleX(${me.scale})`)}0!==me.angle&&(Q=`rotate(${me.angle}deg) ${Q}`),Q.length>0&&(this._enhanceTextSelection&&(me.originalTransform=Q),Re.style.transform=Q),this._textDivProperties.set(Re,me),this._container.appendChild(Re)},_render:function(me){const Q=(0,s.createPromiseCapability)();let P=Object.create(null);const N=document.createElement("canvas");if(N.mozOpaque=!0,this._layoutTextCtx=N.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),Q.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const Y=()=>{this._reader.read().then(({value:de,done:re})=>{re?Q.resolve():(Object.assign(P,de.styles),this._processItems(de.items,P),Y())},Q.reject)};this._reader=this._textContentStream.getReader(),Y()}}Q.promise.then(()=>{P=null,me?this._renderTimer=setTimeout(()=>{W(this),this._renderTimer=null},me):W(this)},this._capability.reject)},expandTextDivs:function(me){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function $(Re){for(var me=Re._bounds,Q=Re._viewport,P=function te(Re,me,Q){var P=Q.map(function(Y,de){return{x1:Y.left,y1:Y.top,x2:Y.right,y2:Y.bottom,index:de,x1New:void 0,x2New:void 0}});le(Re,P);var N=new Array(Q.length);return P.forEach(function(Y){N[Y.index]={left:Y.x1New,top:0,right:Y.x2New,bottom:0}}),Q.map(function(Y,de){var re=N[de],V=P[de];V.x1=Y.top,V.y1=Re-re.right,V.x2=Y.bottom,V.y2=Re-re.left,V.index=de,V.x1New=void 0,V.x2New=void 0}),le(me,P),P.forEach(function(Y){var de=Y.index;N[de].top=Y.x1New,N[de].bottom=Y.x2New}),N}(Q.width,Q.height,me),N=0;N<P.length;N++){var Y=me[N].div,de=Re._textDivProperties.get(Y);if(0!==de.angle){var re=P[N],V=me[N],ne=V.m,E=ne[0],M=ne[1],A=[[0,0],[0,V.size[1]],[V.size[0],0],V.size],R=new Float64Array(64);A.forEach(function(B,K){var ge=s.Util.applyTransform(B,ne);R[K+0]=E&&(re.left-ge[0])/E,R[K+4]=M&&(re.top-ge[1])/M,R[K+8]=E&&(re.right-ge[0])/E,R[K+12]=M&&(re.bottom-ge[1])/M,R[K+16]=M&&(re.left-ge[0])/-M,R[K+20]=E&&(re.top-ge[1])/E,R[K+24]=M&&(re.right-ge[0])/-M,R[K+28]=E&&(re.bottom-ge[1])/E,R[K+32]=E&&(re.left-ge[0])/-E,R[K+36]=M&&(re.top-ge[1])/-M,R[K+40]=E&&(re.right-ge[0])/-E,R[K+44]=M&&(re.bottom-ge[1])/-M,R[K+48]=M&&(re.left-ge[0])/M,R[K+52]=E&&(re.top-ge[1])/-E,R[K+56]=M&&(re.right-ge[0])/M,R[K+60]=E&&(re.bottom-ge[1])/-E});var ee=1+Math.min(Math.abs(E),Math.abs(M));de.paddingLeft=G(R,32,16)/ee,de.paddingTop=G(R,48,16)/ee,de.paddingRight=G(R,0,16)/ee,de.paddingBottom=G(R,16,16)/ee,Re._textDivProperties.set(Y,de)}else de.paddingLeft=me[N].left-P[N].left,de.paddingTop=me[N].top-P[N].top,de.paddingRight=P[N].right-me[N].right,de.paddingBottom=P[N].bottom-me[N].bottom,Re._textDivProperties.set(Y,de)}}(this),this._bounds=null);const Q=[],P=[];for(var N=0,Y=this._textDivs.length;N<Y;N++){const de=this._textDivs[N],re=this._textDivProperties.get(de);re.isWhitespace||(me?(Q.length=0,P.length=0,re.originalTransform&&Q.push(re.originalTransform),re.paddingTop>0?(P.push(`${re.paddingTop}px`),Q.push(`translateY(${-re.paddingTop}px)`)):P.push(0),P.push(re.paddingRight>0?re.paddingRight/re.scale+"px":0),P.push(re.paddingBottom>0?`${re.paddingBottom}px`:0),re.paddingLeft>0?(P.push(re.paddingLeft/re.scale+"px"),Q.push(`translateX(${-re.paddingLeft/re.scale}px)`)):P.push(0),de.style.padding=P.join(" "),Q.length&&(de.style.transform=Q.join(" "))):(de.style.padding=null,de.style.transform=re.originalTransform))}}},function Me(Re){var me=new J({textContent:Re.textContent,textContentStream:Re.textContentStream,container:Re.container,viewport:Re.viewport,textDivs:Re.textDivs,textContentItemsStr:Re.textContentItemsStr,enhanceTextSelection:Re.enhanceTextSelection});return me._render(Re.timeout),me}}();Z.renderTextLayer=_},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.SVGGraphics=void 0;var s=S(2),_=S(1),y=S(4);let j=function(){throw new Error("Not implemented: SVGGraphics")};Z.SVGGraphics=j;{let le=function(P){let N=[];const Y=[];for(const de of P)"save"!==de.fn?"restore"===de.fn?N=Y.pop():N.push(de):(N.push({fnId:92,fn:"group",items:[]}),Y.push(N),N=N[N.length-1].items);return N},J=function(P){if(Number.isInteger(P))return P.toString();const N=P.toFixed(10);let Y=N.length-1;if("0"!==N[Y])return N;do{Y--}while("0"===N[Y]);return N.substring(0,"."===N[Y]?Y:Y+1)},Me=function(P){if(0===P[4]&&0===P[5]){if(0===P[1]&&0===P[2])return 1===P[0]&&1===P[3]?""
vendor: 19,592 bytes, line 1
1:`scale(${J(P[0])} ${J(P[3])})`;if(P[0]===P[3]&&P[1]===-P[2]){const N=180*Math.acos(P[0])/Math.PI;return`rotate(${J(N)})`}}else if(1===P[0]&&0===P[1]&&0===P[2]&&1===P[3])return`translate(${J(P[4])} ${J(P[5])})`;return`matrix(${J(P[0])} ${J(P[1])} ${J(P[2])} ${J(P[3])} ${J(P[4])} ${J(P[5])})`};const D={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},L="http://www.w3.org/XML/1998/namespace",ce="http://www.w3.org/1999/xlink",W=["butt","round","square"],G=["miter","round","bevel"],$=function(){const P=new Uint8Array([137,80,78,71,13,10,26,10]),Y=new Int32Array(256);for(let A=0;A<256;A++){let R=A;for(let ee=0;ee<8;ee++)R=1&R?3988292384^R>>1&2147483647:R>>1&2147483647;Y[A]=R}function re(A,R,ee,B){let K=B;const ge=R.length;ee[K]=ge>>24&255,ee[K+1]=ge>>16&255,ee[K+2]=ge>>8&255,ee[K+3]=255&ge,K+=4,ee[K]=255&A.charCodeAt(0),ee[K+1]=255&A.charCodeAt(1),ee[K+2]=255&A.charCodeAt(2),ee[K+3]=255&A.charCodeAt(3),K+=4,ee.set(R,K),K+=R.length;const Fe=function de(A,R,ee){let B=-1;for(let K=R;K<ee;K++)B=B>>>8^Y[255&(B^A[K])];return-1^B}(ee,B+4,K);ee[K]=Fe>>24&255,ee[K+1]=Fe>>16&255,ee[K+2]=Fe>>8&255,ee[K+3]=255&Fe}function E(A){let R=A.length;const ee=65535,B=Math.ceil(R/ee),K=new Uint8Array(2+R+5*B+4);let ge=0;K[ge++]=120,K[ge++]=156;let Fe=0;for(;R>ee;)K[ge++]=0,K[ge++]=255,K[ge++]=255,K[ge++]=0,K[ge++]=0,K.set(A.subarray(Fe,Fe+ee),ge),ge+=ee,Fe+=ee,R-=ee;K[ge++]=1,K[ge++]=255&R,K[ge++]=R>>8&255,K[ge++]=255&~R,K[ge++]=(65535&~R)>>8&255,K.set(A.subarray(Fe),ge),ge+=A.length-Fe;const he=function V(A,R,ee){let B=1,K=0;for(let ge=R;ge<ee;++ge)B=(B+(255&A[ge]))%65521,K=(K+B)%65521;return K<<16|B}(A,0,A.length);return K[ge++]=he>>24&255,K[ge++]=he>>16&255,K[ge++]=he>>8&255,K[ge++]=255&he,K}return function(R,ee,B){return function M(A,R,ee,B){const K=A.width,ge=A.height;let Fe,he,fe;const Ie=A.data;switch(R){case s.ImageKind.GRAYSCALE_1BPP:he=0,Fe=1,fe=K+7>>3;break;case s.ImageKind.RGB_24BPP:he=2,Fe=8,fe=3*K;break;case s.ImageKind.RGBA_32BPP:he=6,Fe=8,fe=4*K;break;default:throw new Error("invalid format")}const Se=new Uint8Array((1+fe)*ge);let pe=0,ke=0;for(let Ge=0;Ge<ge;++Ge)Se[pe++]=0,Se.set(Ie.subarray(ke,ke+fe),pe),ke+=fe,pe+=fe;if(R===s.ImageKind.GRAYSCALE_1BPP&&B){pe=0;for(let Ge=0;Ge<ge;Ge++){pe++;for(let wt=0;wt<fe;wt++)Se[pe++]^=255}}const ae=new Uint8Array([K>>24&255,K>>16&255,K>>8&255,255&K,ge>>24&255,ge>>16&255,ge>>8&255,255&ge,Fe,he,0,0,0]),Ce=function ne(A){if(!y.isNodeJS)return E(A);try{let R;R=parseInt(process.versions.node)>=8?A:Buffer.from(A);const ee=__webpack_require__(2258).deflateSync(R,{level:9});return ee instanceof Uint8Array?ee:new Uint8Array(ee)}catch(R){(0,s.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+R)}return E(A)}(Se),Be=new Uint8Array(P.length+36+ae.length+Ce.length);let ut=0;return Be.set(P,ut),ut+=P.length,re("IHDR",ae,Be,ut),ut+=12+ae.length,re("IDATA",Ce,Be,ut),ut+=12+Ce.length,re("IEND",new Uint8Array(0),Be,ut),(0,s.createObjectURL)(Be,"image/png",ee)}(R,void 0===R.kind?s.ImageKind.GRAYSCALE_1BPP:R.kind,ee,B)}}();class te{constructor(){this.fontSizeScale=1,this.fontWeight=D.fontWeight,this.fontSize=0,this.textMatrix=s.IDENTITY_MATRIX,this.fontMatrix=s.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=s.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=D.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(N,Y){this.x=N,this.y=Y}}let Re=0,me=0,Q=0;Z.SVGGraphics=j=class{constructor(N,Y,de=!1){this.svgFactory=new _.DOMSVGFactory,this.current=new te,this.transformMatrix=s.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=N,this.objs=Y,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!de,this._operatorIdMapping=[];for(const re in s.OPS)this._operatorIdMapping[s.OPS[re]]=re}save(){this.transformStack.push(this.transformMatrix);const N=this.current;this.extraStack.push(N),this.current=N.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(N){this.save(),this.executeOpTree(N),this.restore()}loadDependencies(N){const Y=N.fnArray,de=N.argsArray;for(let re=0,V=Y.length;re<V;re++)if(Y[re]===s.OPS.dependency)for(const ne of de[re]){const E=ne.startsWith("g_")?this.commonObjs:this.objs,M=new Promise(A=>{E.get(ne,A)});this.current.dependencies.push(M)}return Promise.all(this.current.dependencies)}transform(N,Y,de,re,V,ne){this.transformMatrix=s.Util.transform(this.transformMatrix,[N,Y,de,re,V,ne]),this.tgrp=null}getSVG(N,Y){this.viewport=Y;const de=this._initialize(Y);return this.loadDependencies(N).then(()=>(this.transformMatrix=s.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(N)),de))}convertOpList(N){const Y=this._operatorIdMapping,de=N.argsArray,re=N.fnArray,V=[];for(let ne=0,E=re.length;ne<E;ne++){const M=re[ne];V.push({fnId:M,fn:Y[M],args:de[ne]})}return le(V)}executeOpTree(N){for(const Y of N){const de=Y.fn,V=Y.args;switch(0|Y.fnId){case s.OPS.beginText:this.beginText();break;case s.OPS.dependency:break;case s.OPS.setLeading:this.setLeading(V);break;case s.OPS.setLeadingMoveText:this.setLeadingMoveText(V[0],V[1]);break;case s.OPS.setFont:this.setFont(V);break;case s.OPS.showText:case s.OPS.showSpacedText:this.showText(V[0]);break;case s.OPS.endText:this.endText();break;case s.OPS.moveText:this.moveText(V[0],V[1]);break;case s.OPS.setCharSpacing:this.setCharSpacing(V[0]);break;case s.OPS.setWordSpacing:this.setWordSpacing(V[0]);break;case s.OPS.setHScale:this.setHScale(V[0]);break;case s.OPS.setTextMatrix:this.setTextMatrix(V[0],V[1],V[2],V[3],V[4],V[5]);break;case s.OPS.setTextRise:this.setTextRise(V[0]);break;case s.OPS.setTextRenderingMode:this.setTextRenderingMode(V[0]);break;case s.OPS.setLineWidth:this.setLineWidth(V[0]);break;case s.OPS.setLineJoin:this.setLineJoin(V[0]);break;case s.OPS.setLineCap:this.setLineCap(V[0]);break;case s.OPS.setMiterLimit:this.setMiterLimit(V[0]);break;case s.OPS.setFillRGBColor:this.setFillRGBColor(V[0],V[1],V[2]);break;case s.OPS.setStrokeRGBColor:this.setStrokeRGBColor(V[0],V[1],V[2]);break;case s.OPS.setStrokeColorN:this.setStrokeColorN(V);break;case s.OPS.setFillColorN:this.setFillColorN(V);break;case s.OPS.shadingFill:this.shadingFill(V[0]);break;case s.OPS.setDash:this.setDash(V[0],V[1]);break;case s.OPS.setRenderingIntent:this.setRenderingIntent(V[0]);break;case s.OPS.setFlatness:this.setFlatness(V[0]);break;case s.OPS.setGState:this.setGState(V[0]);break;case s.OPS.fill:this.fill();break;case s.OPS.eoFill:this.eoFill();break;case s.OPS.stroke:this.stroke();break;case s.OPS.fillStroke:this.fillStroke();break;case s.OPS.eoFillStroke:this.eoFillStroke();break;case s.OPS.clip:this.clip("nonzero");break;case s.OPS.eoClip:this.clip("evenodd");break;case s.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case s.OPS.paintImageXObject:this.paintImageXObject(V[0]);break;case s.OPS.paintInlineImageXObject:this.paintInlineImageXObject(V[0]);break;case s.OPS.paintImageMaskXObject:this.paintImageMaskXObject(V[0]);break;case s.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(V[0],V[1]);break;case s.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case s.OPS.closePath:this.closePath();break;case s.OPS.closeStroke:this.closeStroke();break;case s.OPS.closeFillStroke:this.closeFillStroke();break;case s.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case s.OPS.nextLine:this.nextLine();break;case s.OPS.transform:this.transform(V[0],V[1],V[2],V[3],V[4],V[5]);break;case s.OPS.constructPath:this.constructPath(V[0],V[1]);break;case s.OPS.endPath:this.endPath();break;case 92:this.group(Y.items);break;default:(0,s.warn)(`Unimplemented operator ${de}`)}}}setWordSpacing(N){this.current.wordSpacing=N}setCharSpacing(N){this.current.charSpacing=N}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(N,Y,de,re,V,ne){const E=this.current;E.textMatrix=E.lineMatrix=[N,Y,de,re,V,ne],E.textMatrixScale=Math.sqrt(N*N+Y*Y),E.x=E.lineX=0,E.y=E.lineY=0,E.xcoords=[],E.ycoords=[],E.tspan=this.svgFactory.createElement("svg:tspan"),E.tspan.setAttributeNS(null,"font-family",E.fontFamily),E.tspan.setAttributeNS(null,"font-size",`${J(E.fontSize)}px`),E.tspan.setAttributeNS(null,"y",J(-E.y)),E.txtElement=this.svgFactory.createElement("svg:text"),E.txtElement.appendChild(E.tspan)}beginText(){const N=this.current;N.x=N.lineX=0,N.y=N.lineY=0,N.textMatrix=s.IDENTITY_MATRIX,N.lineMatrix=s.IDENTITY_MATRIX,N.textMatrixScale=1,N.tspan=this.svgFactory.createElement("svg:tspan"),N.txtElement=this.svgFactory.createElement("svg:text"),N.txtgrp=this.svgFactory.createElement("svg:g"),N.xcoords=[],N.ycoords=[]}moveText(N,Y){const de=this.current;de.x=de.lineX+=N,de.y=de.lineY+=Y,de.xcoords=[],de.ycoords=[],de.tspan=this.svgFactory.createElement("svg:tspan"),de.tspan.setAttributeNS(null,"font-family",de.fontFamily),de.tspan.setAttributeNS(null,"font-size",`${J(de.fontSize)}px`),de.tspan.setAttributeNS(null,"y",J(-de.y))}showText(N){const Y=this.current,de=Y.font,re=Y.fontSize;if(0===re)return;const V=Y.fontSizeScale,ne=Y.charSpacing,E=Y.wordSpacing,M=Y.fontDirection,A=Y.textHScale*M,R=de.vertical,ee=R?1:-1,B=de.defaultVMetrics,K=re*Y.fontMatrix[0];let ge=0;for(const fe of N){if(null===fe){ge+=M*E;continue}if((0,s.isNum)(fe)){ge+=ee*fe*re/1e3;continue}const Ie=(fe.isSpace?E:0)+ne,Se=fe.fontChar;let pe,ke,Ce,ae=fe.width;if(R){let Ve;const Be=fe.vmetric||B;Ve=fe.vmetric?Be[1]:.5*ae,Ve=-Ve*K,ae=Be?-Be[0]:ae,pe=Ve/V,ke=(ge+Be[2]*K)/V}else pe=ge/V,ke=0;(fe.isInFont||de.missingFile)&&(Y.xcoords.push(Y.x+pe),R&&Y.ycoords.push(-Y.y+ke),Y.tspan.textContent+=Se),Ce=R?ae*K-Ie*M:ae*K+Ie*M,ge+=Ce}Y.tspan.setAttributeNS(null,"x",Y.xcoords.map(J).join(" ")),Y.tspan.setAttributeNS(null,"y",R?Y.ycoords.map(J).join(" "):J(-Y.y)),R?Y.y-=ge:Y.x+=ge*A,Y.tspan.setAttributeNS(null,"font-family",Y.fontFamily),Y.tspan.setAttributeNS(null,"font-size",`${J(Y.fontSize)}px`),Y.fontStyle!==D.fontStyle&&Y.tspan.setAttributeNS(null,"font-style",Y.fontStyle),Y.fontWeight!==D.fontWeight&&Y.tspan.setAttributeNS(null,"font-weight",Y.fontWeight);const Fe=Y.textRenderingMode&s.TextRenderingMode.FILL_STROKE_MASK;Fe===s.TextRenderingMode.FILL||Fe===s.TextRenderingMode.FILL_STROKE?(Y.fillColor!==D.fillColor&&Y.tspan.setAttributeNS(null,"fill",Y.fillColor),Y.fillAlpha<1&&Y.tspan.setAttributeNS(null,"fill-opacity",Y.fillAlpha)):Y.tspan.setAttributeNS(null,"fill",Y.textRenderingMode===s.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(Fe===s.TextRenderingMode.STROKE||Fe===s.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(Y.tspan,1/(Y.textMatrixScale||1));let he=Y.textMatrix;0!==Y.textRise&&(he=he.slice(),he[5]+=Y.textRise),Y.txtElement.setAttributeNS(null,"transform",`${Me(he)} scale(${J(A)}, -1)`),Y.txtElement.setAttributeNS(L,"xml:space","preserve"),Y.txtElement.appendChild(Y.tspan),Y.txtgrp.appendChild(Y.txtElement),this._ensureTransformGroup().appendChild(Y.txtElement)}setLeadingMoveText(N,Y){this.setLeading(-Y),this.moveText(N,Y)}addFontStyle(N){if(!N.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const Y=(0,s.createObjectURL)(N.data,N.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${N.loadedName}"; src: url(${Y}); }\n`}setFont(N){const Y=this.current,de=this.commonObjs.get(N[0]);let re=N[1];Y.font=de,this.embedFonts&&!de.missingFile&&!this.embeddedFonts[de.loadedName]&&(this.addFontStyle(de),this.embeddedFonts[de.loadedName]=de),Y.fontMatrix=de.fontMatrix?de.fontMatrix:s.FONT_IDENTITY_MATRIX;let V="normal";de.black?V="900":de.bold&&(V="bold");const ne=de.italic?"italic":"normal";re<0?(re=-re,Y.fontDirection=-1):Y.fontDirection=1,Y.fontSize=re,Y.fontFamily=de.loadedName,Y.fontWeight=V,Y.fontStyle=ne,Y.tspan=this.svgFactory.createElement("svg:tspan"),Y.tspan.setAttributeNS(null,"y",J(-Y.y)),Y.xcoords=[],Y.ycoords=[]}endText(){const N=this.current;N.textRenderingMode&s.TextRenderingMode.ADD_TO_PATH_FLAG&&N.txtElement&&N.txtElement.hasChildNodes()&&(N.element=N.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(N){N>0&&(this.current.lineWidth=N)}setLineCap(N){this.current.lineCap=W[N]}setLineJoin(N){this.current.lineJoin=G[N]}setMiterLimit(N){this.current.miterLimit=N}setStrokeAlpha(N){this.current.strokeAlpha=N}setStrokeRGBColor(N,Y,de){this.current.strokeColor=s.Util.makeCssRgb(N,Y,de)}setFillAlpha(N){this.current.fillAlpha=N}setFillRGBColor(N,Y,de){this.current.fillColor=s.Util.makeCssRgb(N,Y,de),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(N){this.current.strokeColor=this._makeColorN_Pattern(N)}setFillColorN(N){this.current.fillColor=this._makeColorN_Pattern(N)}shadingFill(N){const Y=this.viewport.width,de=this.viewport.height,re=s.Util.inverseTransform(this.transformMatrix),V=s.Util.applyTransform([0,0],re),ne=s.Util.applyTransform([0,de],re),E=s.Util.applyTransform([Y,0],re),M=s.Util.applyTransform([Y,de],re),A=Math.min(V[0],ne[0],E[0],M[0]),R=Math.min(V[1],ne[1],E[1],M[1]),ee=Math.max(V[0],ne[0],E[0],M[0]),B=Math.max(V[1],ne[1],E[1],M[1]),K=this.svgFactory.createElement("svg:rect");K.setAttributeNS(null,"x",A),K.setAttributeNS(null,"y",R),K.setAttributeNS(null,"width",ee-A),K.setAttributeNS(null,"height",B-R),K.setAttributeNS(null,"fill",this._makeShadingPattern(N)),this.current.fillAlpha<1&&K.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(K)}_makeColorN_Pattern(N){return"TilingPattern"===N[0]?this._makeTilingPattern(N):this._makeShadingPattern(N)}_makeTilingPattern(N){const Y=N[1],de=N[2],re=N[3]||s.IDENTITY_MATRIX,[V,ne,E,M]=N[4],A=N[5],R=N[6],ee=N[7],B="shading"+Q++,[K,ge]=s.Util.applyTransform([V,ne],re),[Fe,he]=s.Util.applyTransform([E,M],re),[fe,Ie]=s.Util.singularValueDecompose2dScale(re),Se=A*fe,pe=R*Ie,ke=this.svgFactory.createElement("svg:pattern");ke.setAttributeNS(null,"id",B),ke.setAttributeNS(null,"patternUnits","userSpaceOnUse"),ke.setAttributeNS(null,"width",Se),ke.setAttributeNS(null,"height",pe),ke.setAttributeNS(null,"x",`${K}`),ke.setAttributeNS(null,"y",`${ge}`);const ae=this.svg,Ce=this.transformMatrix,Ve=this.current.fillColor,Be=this.current.strokeColor,ut=this.svgFactory.create(Fe-K,he-ge);if(this.svg=ut,this.transformMatrix=re,2===ee){const Ge=s.Util.makeCssRgb(...Y);this.current.fillColor=Ge,this.current.strokeColor=Ge}return this.executeOpTree(this.convertOpList(de)),this.svg=ae,this.transformMatrix=Ce,this.current.fillColor=Ve,this.current.strokeColor=Be,ke.appendChild(ut.childNodes[0]),this.defs.appendChild(ke),`url(#${B})`}_makeShadingPattern(N){switch(N[0]){case"RadialAxial":const Y="shading"+Q++,de=N[3];let re;switch(N[1]){case"axial":const V=N[4],ne=N[5];re=this.svgFactory.createElement("svg:linearGradient"),re.setAttributeNS(null,"id",Y),re.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),re.setAttributeNS(null,"x1",V[0]),re.setAttributeNS(null,"y1",V[1]),re.setAttributeNS(null,"x2",ne[0]),re.setAttributeNS(null,"y2",ne[1]);break;case"radial":const E=N[4],M=N[5],A=N[6],R=N[7];re=this.svgFactory.createElement("svg:radialGradient"),re.setAttributeNS(null,"id",Y),re.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),re.setAttributeNS(null,"cx",M[0]),re.setAttributeNS(null,"cy",M[1]),re.setAttributeNS(null,"r",R),re.setAttributeNS(null,"fx",E[0]),re.setAttributeNS(null,"fy",E[1]),re.setAttributeNS(null,"fr",A);break;default:throw new Error(`Unknown RadialAxial type: ${N[1]}`)}for(const V of de){const ne=this.svgFactory.createElement("svg:stop");ne.setAttributeNS(null,"offset",V[0]),ne.setAttributeNS(null,"stop-color",V[1]),re.appendChild(ne)}return this.defs.appendChild(re),`url(#${Y})`;case"Mesh":return(0,s.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${N[0]}`)}}setDash(N,Y){this.current.dashArray=N,this.current.dashPhase=Y}constructPath(N,Y){const de=this.current;let re=de.x,V=de.y,ne=[],E=0;for(const M of N)switch(0|M){case s.OPS.rectangle:re=Y[E++],V=Y[E++];const ee=re+Y[E++],B=V+Y[E++];ne.push("M",J(re),J(V),"L",J(ee),J(V),"L",J(ee),J(B),"L",J(re),J(B),"Z");break;case s.OPS.moveTo:re=Y[E++],V=Y[E++],ne.push("M",J(re),J(V));break;case s.OPS.lineTo:re=Y[E++],V=Y[E++],ne.push("L",J(re),J(V));break;case s.OPS.curveTo:re=Y[E+4],V=Y[E+5],ne.push("C",J(Y[E]),J(Y[E+1]),J(Y[E+2]),J(Y[E+3]),J(re),J(V)),E+=6;break;case s.OPS.curveTo2:ne.push("C",J(re),J(V),J(Y[E]),J(Y[E+1]),J(Y[E+2]),J(Y[E+3])),re=Y[E+2],V=Y[E+3],E+=4;break;case s.OPS.curveTo3:re=Y[E+2],V=Y[E+3],ne.push("C",J(Y[E]),J(Y[E+1]),J(re),J(V),J(re),J(V)),E+=4;break;case s.OPS.closePath:ne.push("Z")}ne=ne.join(" "),de.path&&N.length>0&&N[0]!==s.OPS.rectangle&&N[0]!==s.OPS.moveTo?ne=de.path.getAttributeNS(null,"d")+ne:(de.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(de.path)),de.path.setAttributeNS(null,"d",ne),de.path.setAttributeNS(null,"fill","none"),de.element=de.path,de.setCurrentPoint(re,V)}endPath(){const N=this.current;if(N.path=null,!this.pendingClip)return;if(!N.element)return void(this.pendingClip=null);const Y="clippath"+Re++,de=this.svgFactory.createElement("svg:clipPath");de.setAttributeNS(null,"id",Y),de.setAttributeNS(null,"transform",Me(this.transformMatrix));const re=N.element.cloneNode(!0);re.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,de.appendChild(re),this.defs.appendChild(de),N.activeClipUrl&&(N.clipGroup=null,this.extraStack.forEach(function(V){V.clipGroup=null}),de.setAttributeNS(null,"clip-path",N.activeClipUrl)),N.activeClipUrl=`url(#${Y})`,this.tgrp=null}clip(N){this.pendingClip=N}closePath(){const N=this.current;if(N.path){const Y=`${N.path.getAttributeNS(null,"d")}Z`;N.path.setAttributeNS(null,"d",Y)}}setLeading(N){this.current.leading=-N}setTextRise(N){this.current.textRise=N}setTextRenderingMode(N){this.current.textRenderingMode=N}setHScale(N){this.current.textHScale=N/100}setRenderingIntent(N){}setFlatness(N){}setGState(N){for(const[Y,de]of N)switch(Y){case"LW":this.setLineWidth(de);break;case"LC":this.setLineCap(de);break;case"LJ":this.setLineJoin(de);break;case"ML":this.setMiterLimit(de);break;case"D":this.setDash(de[0],de[1]);break;case"RI":this.setRenderingIntent(de);break;case"FL":this.setFlatness(de);break;case"Font":this.setFont(de);break;case"CA":this.setStrokeAlpha(de);break;case"ca":this.setFillAlpha(de);break;default:(0,s.warn)(`Unimplemented graphic state operator ${Y}`)}}fill(){const N=this.current;N.element&&(N.element.setAttributeNS(null,"fill",N.fillColor),N.element.setAttributeNS(null,"fill-opacity",N.fillAlpha),this.endPath())}stroke(){const N=this.current;N.element&&(this._setStrokeAttributes(N.element),N.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(N,Y=1){const de=this.current;let re=de.dashArray;1!==Y&&re.length>0&&(re=re.map(function(V){return Y*V})),N.setAttributeNS(null,"stroke",de.strokeColor),N.setAttributeNS(null,"
1stroke-opacity",de.strokeAlpha),N.setAttributeNS(null,"stroke-miterlimit",J(de.miterLimit)),N.setAttributeNS(null,"stroke-linecap",de.lineCap),N.setAttributeNS(null,"stroke-linejoin",de.lineJoin),N.setAttributeNS(null,"stroke-width",J(Y*de.lineWidth)+"px"),N.setAttributeNS(null,"stroke-dasharray",re.map(J).join(" ")),N.setAttributeNS(null,"stroke-dashoffset",J(Y*de.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const N=this.svgFactory.createElement("svg:rect");N.setAttributeNS(null,"x","0"),N.setAttributeNS(null,"y","0"),N.setAttributeNS(null,"width","1px"),N.setAttributeNS(null,"height","1px"),N.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(N)}paintImageXObject(N){const Y=this.objs.get(N);Y?this.paintInlineImageXObject(Y):(0,s.warn)(`Dependent image with object ID ${N} is not ready yet`)}paintInlineImageXObject(N,Y){const de=N.width,re=N.height,V=$(N,this.forceDataSchema,!!Y),ne=this.svgFactory.createElement("svg:rect");ne.setAttributeNS(null,"x","0"),ne.setAttributeNS(null,"y","0"),ne.setAttributeNS(null,"width",J(de)),ne.setAttributeNS(null,"height",J(re)),this.current.element=ne,this.clip("nonzero");const E=this.svgFactory.createElement("svg:image");E.setAttributeNS(ce,"xlink:href",V),E.setAttributeNS(null,"x","0"),E.setAttributeNS(null,"y",J(-re)),E.setAttributeNS(null,"width",J(de)+"px"),E.setAttributeNS(null,"height",J(re)+"px"),E.setAttributeNS(null,"transform",`scale(${J(1/de)} ${J(-1/re)})`),Y?Y.appendChild(E):this._ensureTransformGroup().appendChild(E)}paintImageMaskXObject(N){const Y=this.current,de=N.width,re=N.height,V=Y.fillColor;Y.maskId="mask"+me++;const ne=this.svgFactory.createElement("svg:mask");ne.setAttributeNS(null,"id",Y.maskId);const E=this.svgFactory.createElement("svg:rect");E.setAttributeNS(null,"x","0"),E.setAttributeNS(null,"y","0"),E.setAttributeNS(null,"width",J(de)),E.setAttributeNS(null,"height",J(re)),E.setAttributeNS(null,"fill",V),E.setAttributeNS(null,"mask",`url(#${Y.maskId})`),this.defs.appendChild(ne),this._ensureTransformGroup().appendChild(E),this.paintInlineImageXObject(N,ne)}paintFormXObjectBegin(N,Y){if(Array.isArray(N)&&6===N.length&&this.transform(N[0],N[1],N[2],N[3],N[4],N[5]),Y){const de=Y[2]-Y[0],re=Y[3]-Y[1],V=this.svgFactory.createElement("svg:rect");V.setAttributeNS(null,"x",Y[0]),V.setAttributeNS(null,"y",Y[1]),V.setAttributeNS(null,"width",J(de)),V.setAttributeNS(null,"height",J(re)),this.current.element=V,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(N){const Y=this.svgFactory.create(N.width,N.height),de=this.svgFactory.createElement("svg:defs");Y.appendChild(de),this.defs=de;const re=this.svgFactory.createElement("svg:g");return re.setAttributeNS(null,"transform",Me(N.transform)),Y.appendChild(re),this.svg=re,Y}_ensureClipGroup(){if(!this.current.clipGroup){const N=this.svgFactory.createElement("svg:g");N.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(N),this.current.clipGroup=N}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",Me(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.PDFNodeStream=void 0;var s=S(2),_=S(20);const y=__webpack_require__(172),j=__webpack_require__(2001),D=__webpack_require__(3779),L=__webpack_require__(6558),ce=/^file:\/\/\/[a-zA-Z]:\//;Z.PDFNodeStream=class G{constructor(P){this.source=P,this.url=function W(Q){const P=L.parse(Q);return"file:"===P.protocol||P.host?P:/^[a-z]:[/\\]/i.test(Q)?L.parse(`file:///${Q}`):(P.host||(P.protocol="file:"),P)}(P.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&P.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new Re(this):new J(this),this._fullRequestReader}getRangeReader(P,N){if(N<=this._progressiveDataLength)return null;const Y=this.isFsUrl?new me(this,P,N):new Me(this,P,N);return this._rangeRequestReaders.push(Y),Y}cancelAllRequests(P){this._fullRequestReader&&this._fullRequestReader.cancel(P),this._rangeRequestReaders.slice(0).forEac
vendor: 5,379 bytes, line 1
1h(function(Y){Y.cancel(P)})}};class ${constructor(P){this._url=P.url,this._done=!1,this._storedError=null,this.onProgress=null;const N=P.source;this._contentLength=N.length,this._loaded=0,this._filename=null,this._disableRange=N.disableRange||!1,this._rangeChunkSize=N.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!N.disableStream,this._isRangeSupported=!N.disableRange,this._readableStream=null,this._readCapability=(0,s.createPromiseCapability)(),this._headersCapability=(0,s.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var P=this;return _asyncToGenerator(function*(){if(yield P._readCapability.promise,P._done)return{value:void 0,done:!0};if(P._storedError)throw P._storedError;const N=P._readableStream.read();return null===N?(P._readCapability=(0,s.createPromiseCapability)(),P.read()):(P._loaded+=N.length,P.onProgress&&P.onProgress({loaded:P._loaded,total:P._contentLength}),{value:new Uint8Array(N).buffer,done:!1})})()}cancel(P){this._readableStream?this._readableStream.destroy(P):this._error(P)}_error(P){this._storedError=P,this._readCapability.resolve()}_setReadableStream(P){this._readableStream=P,P.on("readable",()=>{this._readCapability.resolve()}),P.on("end",()=>{P.destroy(),this._done=!0,this._readCapability.resolve()}),P.on("error",N=>{this._error(N)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new s.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class te{constructor(P){this._url=P.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,s.createPromiseCapability)(),this._isStreamingSupported=!P.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var P=this;return _asyncToGenerator(function*(){if(yield P._readCapability.promise,P._done)return{value:void 0,done:!0};if(P._storedError)throw P._storedError;const N=P._readableStream.read();return null===N?(P._readCapability=(0,s.createPromiseCapability)(),P.read()):(P._loaded+=N.length,P.onProgress&&P.onProgress({loaded:P._loaded}),{value:new Uint8Array(N).buffer,done:!1})})()}cancel(P){this._readableStream?this._readableStream.destroy(P):this._error(P)}_error(P){this._storedError=P,this._readCapability.resolve()}_setReadableStream(P){this._readableStream=P,P.on("readable",()=>{this._readCapability.resolve()}),P.on("end",()=>{P.destroy(),this._done=!0,this._readCapability.resolve()}),P.on("error",N=>{this._error(N)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function le(Q,P){return{protocol:Q.protocol,auth:Q.auth,host:Q.hostname,port:Q.port,path:Q.path,method:"GET",headers:P}}class J extends ${constructor(P){super(P);const N=Y=>{if(404===Y.statusCode){const ne=new s.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=ne,void this._headersCapability.reject(ne)}this._headersCapability.resolve(),this._setReadableStream(Y);const de=ne=>this._readableStream.headers[ne.toLowerCase()],{allowRangeRequests:re,suggestedLength:V}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:de,isHttp:P.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=re,this._contentLength=V||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(de)};this._request=null,this._request="http:"===this._url.protocol?j.request(le(this._url,P.httpHeaders),N):D.request(le(this._url,P.httpHeaders),N),this._request.on("error",Y=>{this._storedError=Y,this._headersCapability.reject(Y)}),this._request.end()}}class Me extends te{constructor(P,N,Y){super(P),this._httpHeaders={};for(const re in P.httpHeaders){const V=P.httpHeaders[re];void 0!==V&&(this._httpHeaders[re]=V)}this._httpHeaders.Range=`bytes=${N}-${Y-1}`;const de=re=>{if(404!==re.statusCode)this._setReadableStream(re);else{const V=new s.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=V}};this._request=null,this._request="http:"===this._url.protocol?j.request(le(this._url,this._httpHeaders),de):D.request(le(this._url,this._httpHeaders),de),this._request.on("error",re=>{this._storedError=re}),this._request.end()}}class Re extends ${constructor(P){super(P);let N=decodeURIComponent(this._url.path);ce.test(this._url.href)&&(N=N.replace(/^\//,"")),y.lstat(N,(Y,de)=>{if(Y)return"ENOENT"===Y.code&&(Y=new s.MissingPDFException(`Missing PDF "${N}".`)),this._storedError=Y,void this._headersCapability.reject(Y);this._contentLength=de.size,this._setReadableStream(y.createReadStream(N)),this._headersCapability.resolve()})}}class me extends te{constructor(P,N,Y){super(P);let de=decodeURIComponent(this._url.path);ce.test(this._url.href)&&(de=de.replace(/^\//,"")),this._setReadableStream(y.createReadStream(de,{start:N,end:Y-1}))}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.createResponseStatusError=function D(ce,W){return 404===ce||0===ce&&W.startsWith("file:")?new s.MissingPDFException('Missing PDF "'+W+'".'):new s.UnexpectedResponseException("Unexpected server response
1("+ce+') while retrieving PDF "'+W+'".',ce)},Z.extractFilenameFromHeader=function j(ce){const W=ce("Content-Disposition");if(W){let G=(0,_.getFilenameFromContentDispositionHeader)(W);if(G.includes("%"))try{G=decodeURIComponent(G)}catch($){}if(/\.pdf$/i.test(G))return G}return null},Z.validateRangeRequestCapabilities=function y({getResponseHeader:ce,isHttp:W,rangeChunkSize:G,disableRange:$}){(0,s.assert)(G>0,"Range chunk size must be larger than zero");const te={allowRangeRequests:!1,suggestedLength:void 0},le=parseInt(ce("Content-Length"),10);return!Number.isInteger(le)||(te.suggestedLength=le,le<=2*G)||$||!W||"bytes"!==ce("Accept-Ranges")||"identity"!==(ce("Content-Encoding")||"identity")||(te.allowRangeRequests=!0),te},Z.validateResponseStatus=function L(ce){return 200===ce||206===ce};var s=S(2),_=S(21)},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getFilenameFromContentDispositionHeader=function s(_){let y=!0,j=D("filename\\*","i").exec(_);if(j){j=j[1];let le=G(j);return le=unescape(le),le=$(le),le=te(le),ce(le)}if(j=function W(le){const J=[];let Me;const Re=D("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(Me=Re.exec(le));){let[,Q,P,N]=Me;if(Q=parseInt(Q,10),Q in J){if(0===Q)break}else J[Q]=[P,N]}const me=[];for(let Q=0;Q<J.length&&Q in J;++Q){let[P,N]=J[Q];N=G(N),P&&(N=unescape(N),0===Q&&(N=$(N))),me.push(N)}return me.join("")}(_),j)return ce(te(j));if(j=D("filename","i").exec(_),j){j=j[1];let le=G(j);return le=te(le),ce(le)}function D(le,J){return new RegExp("(?:^|;)\\s*"+le+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',J)}function L(le,J){if(le){if(!/^[\x00-\xFF]+$/.test(J))return J;try{const Me=new TextDecoder(le,{fatal:!0}),Re=Array.from(J,function(me){return 255&me.charCodeAt(0)});J=Me.decode(new Uint8Array(Re)),y=!1}catch(Me){if(/^utf-?8$/i.test(le))try{J=decodeURIComponent(escape(J)),y=!1}catch(Re){}}}return J}function ce(le){return y&&/[\x80-\xff]/.test(le)&&(le=L("utf-8",le),y&&(le=L("iso-8859-1",le))),le}function G(le){if(le.startsWith('"')){const J=le.slice(1).split('\\"');for(let Me=0;Me<J.length;++Me){const Re=J[Me].indexOf('"');-1!==Re&&(J[Me]=J[Me].slice(0,Re),J.length=Me+1),J[Me]=J[Me].replace(/\\(.)/g,"$1")}le=J.join('"')}return le}function $(le){const J=le.indexOf("'");return-1===J?le:L(le.slice(0,J),le.slice(J+1).replace(/^[^']*'/,""))}function te(le){return!le.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(le)?le:le.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(J,Me,Re,me){if("q"===Re||"Q"===Re)return L(Me,me=(me=me.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(Q,P){return String.fromCharCode(parseInt(P,16))}));try{me=atob(me)}catch(Q){}return L(Me,me)})}return""}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.PDFNetworkStream=void 0;var s=S(2),_=S(20);class L{constructor(te,le){this.url=te,le=le||{},this.isHttp=/^https?:/i.test(te),this.httpHeaders=this.isHttp&&le.httpHeaders||{},this.withCredentials=le.withCredentials||!1,this.getXhr=le.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(te,le,J){const Me={begin:te,end:le};for(const Re in J)Me[Re]=J[Re];return this.request(Me)}requestFull(te){return this.request(te)}request(te){const le=this.getXhr(),J=this.currXhrId++,Me=this.pendingRequests[J]={xhr:le};le.open("GET",this.url),le.withCredentials=this.withCredentials;for(const Re in this.httpHeaders){const me=this.httpHeaders[Re];void 0!==me&&le.setRequestHeader(Re,me)}return this.isHttp&&"begin"in te&&"end"in te?(le.setRequestHeader("Range",`bytes=${te.begin}-${te.end-1}`),Me.expectedStatus=206):Me.expectedStatus=200,le.responseType="arraybuffer",te.onError&&(le.onerror=function(Re){te.onError(le.status)}),le.onreadystatechange=this.onStateChange.bind(this,J),le.onprogress=this.onProgress.bind(this,J),Me.onHeadersReceived=te.onHeadersReceived,Me.onDone=te.onDone,Me.onError=te.onError,Me.onProgress=te.onProgress,le.send(null),J}onProgress(te,le){const J=this.pendingRequests[te];!J||J.onProgress&&J.onProgress(le)}onStateChange(te,le){const J=this.pendingRequests[te];if(!J)return;const Me=J.xhr;if(Me.readyState>=2&&J.onHeadersReceived&&(J.onHeadersReceived(),delete J.onHeadersReceived),4!==Me.readyState||!(te in this.pendingRequests))return;if(delete this.pendingRequests[te],0===Me.status&&this.isHttp)return void(J.onError&&J.onError(Me.status));const Re=Me.status||200;if((200!==Re||206!==J.expectedStatus)&&Re!==J.expectedStatus)return void(J.onError&&J.onError(Me.status));const Q=function D($){const te=$.response;return"string"!=typeof te?te:(0,s.stringToBytes)(te).buffer}(Me);
vendor: 9,699 bytes, line 1
1if(206===Re){const P=Me.getResponseHeader("Content-Range"),N=/bytes (\d+)-(\d+)\/(\d+)/.exec(P);J.onDone({begin:parseInt(N[1],10),chunk:Q})}else Q?J.onDone({begin:0,chunk:Q}):J.onError&&J.onError(Me.status)}hasPendingRequests(){for(const te in this.pendingRequests)return!0;return!1}getRequestXhr(te){return this.pendingRequests[te].xhr}isPendingRequest(te){return te in this.pendingRequests}abortAllRequests(){for(const te in this.pendingRequests)this.abortRequest(0|te)}abortRequest(te){const le=this.pendingRequests[te].xhr;delete this.pendingRequests[te],le.abort()}}Z.PDFNetworkStream=class ce{constructor(te){this._source=te,this._manager=new L(te.url,{httpHeaders:te.httpHeaders,withCredentials:te.withCredentials}),this._rangeChunkSize=te.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(te){const le=this._rangeRequestReaders.indexOf(te);le>=0&&this._rangeRequestReaders.splice(le,1)}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new W(this._manager,this._source),this._fullRequestReader}getRangeReader(te,le){const J=new G(this._manager,te,le);return J.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(J),J}cancelAllRequests(te){this._fullRequestReader&&this._fullRequestReader.cancel(te),this._rangeRequestReaders.slice(0).forEach(function(J){J.cancel(te)})}};class W{constructor(te,le){this._manager=te;const J={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=le.url,this._fullRequestId=te.requestFull(J),this._headersReceivedCapability=(0,s.createPromiseCapability)(),this._disableRange=le.disableRange||!1,this._contentLength=le.length,this._rangeChunkSize=le.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const te=this._fullRequestId,le=this._manager.getRequestXhr(te),J=me=>le.getResponseHeader(me),{allowRangeRequests:Me,suggestedLength:Re}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:J,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});Me&&(this._isRangeSupported=!0),this._contentLength=Re||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(J),this._isRangeSupported&&this._manager.abortRequest(te),this._headersReceivedCapability.resolve()}_onDone(te){te&&(this._requests.length>0?this._requests.shift().resolve({value:te.chunk,done:!1}):this._cachedChunks.push(te.chunk)),this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(le){le.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(te){const J=(0,_.createResponseStatusError)(te,this._url);this._storedError=J,this._headersReceivedCapability.reject(J),this._requests.forEach(function(Me){Me.reject(J)}),this._requests=[],this._cachedChunks=[]}_onProgress(te){this.onProgress&&this.onProgress({loaded:te.loaded,total:te.lengthComputable?te.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var te=this;return _asyncToGenerator(function*(){if(te._storedError)throw te._storedError;if(te._cachedChunks.length>0)return{value:te._cachedChunks.shift(),done:!1};if(te._done)return{value:void 0,done:!0};const le=(0,s.createPromiseCapability)();return te._requests.push(le),le.promise})()}cancel(te){this._done=!0,this._headersReceivedCapability.reject(te),this._requests.forEach(function(le){le.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class G{constructor(te,le,J){this._manager=te;const Me={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=te.requestRange(le,J,Me),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(te){const le=te.chunk;this._requests.length>0?this._requests.shift().resolve({value:le,done:!1}):this._queuedChunk=le,this._done=!0,this._requests.forEach(function(J){J.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(te){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:te.loaded})}get isStreamingSupported(){return!1}read(){var te=this;return _asyncToGenerator(function*(){if(null!==te._queuedChunk){const J=te._queuedChunk;return te._queuedChunk=null,{value:J,done:!1}}if(te._done)return{value:void 0,done:!0};const le=(0,s.createPromiseCapability)();return te._requests.push(le),le.promise})()}cancel(te){this._done=!0,this._requests.forEach(function(le){le.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},function(Qt,Z,S){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.PDFFetchStream=void 0;var s=S(2),_=S(20);function y(W,G,$){return{method:"GET",headers:W,signal:$&&$.signal,mode:"cors",credentials:G?"include":"same-origin",redirect:"follow"}}function j(W){const G=new Headers;for(const $ in W){const te=W[$];void 0!==te&&G.append($,te)}return G}Z.PDFFetchStream=class D{constructor(G){this.source=G,this.isHttp=/^https?:/i.test(G.url),this.httpHeaders=this.isHttp&&G.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?this._fullRequestReader._loaded:0}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new L(this),this._fullRequestReader}getRangeReader(G,$){if($<=this._progressiveDataLength)return null;const te=new ce(this,G,$);return this._rangeRequestReaders.push(te),te}cancelAllRequests(G){this._fullRequestReader&&this._fullRequestReader.cancel(G),this._rangeRequestReaders.slice(0).forEach(function(te){te.cancel(G)})}};class L{constructor(G){this._stream=G,this._reader=null,this._loaded=0,this._filename=null;const $=G.source;this._withCredentials=$.withCredentials||!1,this._contentLength=$.length,this._headersCapability=(0,s.createPromiseCapability)(),this._disableRange=$.disableRange||!1,this._rangeChunkSize=$.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!$.disableStream,this._isRangeSupported=!$.disableRange,this._headers=j(this._stream.httpHeaders);const te=$.url;fetch(te,y(this._headers,this._withCredentials,this._abortController)).then(le=>{if(!(0,_.validateResponseStatus)(le.status))throw(0,_.createResponseStatusError)(le.status,te);this._reader=le.body.getReader(),this._headersCapability.resolve();const J=me=>le.headers.get(me),{allowRangeRequests:Me,suggestedLength:Re}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:J,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=Me,this._contentLength=Re||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(J),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new s.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var G=this;return _asyncToGenerator(function*(){yield G._headersCapability.promise;const{value:$,done:te}=yield G._reader.read();return te?{value:$,done:te}:(G._loaded+=$.byteLength,G.onProgress&&G.onProgress({loaded:G._loaded,total:G._contentLength}),{value:new Uint8Array($).buffer,done:!1})})()}cancel(G){this._reader&&this._reader.cancel(G),this._abortController&&this._abortController.abort()}}class ce{constructor(G,$,te){this._stream=G,this._reader=null,this._loaded=0;const le=G.source;this._withCredentials=le.withCredentials||!1,this._readCapability=(0,s.createPromiseCapability)(),this._isStreamingSupported=!le.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=j(this._stream.httpHeaders),this._headers.append("Range",`bytes=${$}-${te-1}`);const J=le.url;fetch(J,y(this._headers,this._withCredentials,this._abortController)).then(Me=>{if(!(0,_.validateResponseStatus)(Me.status))throw(0,_.createResponseStatusError)(Me.status,J);this._readCapability.resolve(),this._reader=Me.body.getReader()}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var G=this;return _asyncToGenerator(function*(){yield G._readCapability.promise;const{value:$,done:te}=yield G._reader.read();return te?{value:$,done:te}:(G._loaded+=$.byteLength,G.onProgress&&G.onProgress({loaded:G._loaded}),{value:new Uint8Array($).buffer,done:!1})})()}cancel(G){this._reader&&this._reader.cancel(G),this._abortController&&this._abortController.abort()}}}])},module.exports=S()},3259:(Qt,Z,S)=>{const _=S(8695),y=S(1465),j=S(3210),D=S(2334);
vendor: 10,806 bytes, line 1
1function L(ce,W,G,$,te){const le=[].slice.call(arguments,1),J=le.length,Me="function"==typeof le[J-1];if(!Me&&!_())throw new Error("Callback required as last argument");if(!Me){if(J<1)throw new Error("Too few arguments provided");return 1===J?(G=W,W=$=void 0):2===J&&!W.getContext&&($=G,G=W,W=void 0),new Promise(function(Re,me){try{const Q=y.create(G,$);Re(ce(Q,W,$))}catch(Q){me(Q)}})}if(J<2)throw new Error("Too few arguments provided");2===J?(te=G,G=W,W=$=void 0):3===J&&(W.getContext&&void 0===te?(te=$,$=void 0):(te=$,$=G,G=W,W=void 0));try{const Re=y.create(G,$);te(null,ce(Re,W,$))}catch(Re){te(Re)}}L.bind(null,j.render),Z.hz=L.bind(null,j.renderToDataURL),L.bind(null,function(ce,W,G){return D.render(ce,G)})},8695:Qt=>{Qt.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Qt,Z,S)=>{const s=S(4792).getSymbolSize;Z.getRowColCoords=function(y){if(1===y)return[];const j=Math.floor(y/7)+2,D=s(y),L=145===D?26:2*Math.ceil((D-13)/(2*j-2)),ce=[D-7];for(let W=1;W<j-1;W++)ce[W]=ce[W-1]-L;return ce.push(6),ce.reverse()},Z.getPositions=function(y){const j=[],D=Z.getRowColCoords(y),L=D.length;for(let ce=0;ce<L;ce++)for(let W=0;W<L;W++)0===ce&&0===W||0===ce&&W===L-1||ce===L-1&&0===W||j.push([D[ce],D[W]]);return j}},2424:(Qt,Z,S)=>{const s=S(4016),_=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function y(j){this.mode=s.ALPHANUMERIC,this.data=j}y.getBitsLength=function(D){return 11*Math.floor(D/2)+D%2*6},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(D){let L;for(L=0;L+2<=this.data.length;L+=2){let ce=45*_.indexOf(this.data[L]);ce+=_.indexOf(this.data[L+1]),D.put(ce,11)}this.data.length%2&&D.put(_.indexOf(this.data[L]),6)},Qt.exports=y},2118:Qt=>{function Z(){this.buffer=[],this.length=0}Z.prototype={get:function(S){const s=Math.floor(S/8);return 1==(this.buffer[s]>>>7-S%8&1)},put:function(S,s){for(let _=0;_<s;_++)this.putBit(1==(S>>>s-_-1&1))},getLengthInBits:function(){return this.length},putBit:function(S){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),S&&(this.buffer[s]|=128>>>this.length%8),this.length++}},Qt.exports=Z},4425:Qt=>{function Z(S){if(!S||S<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=S,this.data=new Uint8Array(S*S),this.reservedBit=new Uint8Array(S*S)}Z.prototype.set=function(S,s,_,y){const j=S*this.size+s;this.data[j]=_,y&&(this.reservedBit[j]=!0)},Z.prototype.get=function(S,s){return this.data[S*this.size+s]},Z.prototype.xor=function(S,s,_){this.data[S*this.size+s]^=_},Z.prototype.isReserved=function(S,s){return this.reservedBit[S*this.size+s]},Qt.exports=Z},5663:(Qt,Z,S)=>{const s=S(4016);function _(y){this.mode=s.BYTE,this.data="string"==typeof y?(new TextEncoder).encode(y):new Uint8Array(y)}_.getBitsLength=function(j){return 8*j},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(y){for(let j=0,D=this.data.length;j<D;j++)y.put(this.data[j],8)},Qt.exports=_},4655:(Qt,Z,S)=>{const s=S(2259),_=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],y=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Z.getBlocksCount=function(D,L){switch(L){case s.L:return _[4*(D-1)+0];case s.M:return _[4*(D-1)+1];case s.Q:return _[4*(D-1)+2];case s.H:return _[4*(D-1)+3];default:return}},Z.getTotalCodewordsCount=function(D,L){switch(L){case s.L:return y[4*(D-1)+0];case s.M:return y[4*(D-1)+1];case s.Q:return y[4*(D-1)+2];case s.H:return y[4*(D-1)+3];default:return}}},2259:(Qt,Z)=>{Z.L={bit:1},Z.M={bit:0},Z.Q={bit:3},Z.H={bit:2},Z.isValid=function(_){return _&&void 0!==_.bit&&_.bit>=0&&_.bit<4},Z.from=function(_,y){if(Z.isValid(_))return _;try{return function S(s){if("string"!=typeof s)throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return Z.L;case"m":case"medium":return Z.M;case"q":case"quartile":return Z.Q;case"h":case"high":return Z.H;default:throw new Error("Unknown EC Level: "+s)}}(_)}catch(j){return y}}},3114:(Qt,Z,S)=>{const s=S(4792).getSymbolSize;Z.getPositions=function(j){const D=s(j);return[[0,0],[D-7,0],[0,D-7]]}},7078:(Qt,Z,S)=>{const s=S(4792),j=s.getBCHDigit(1335);Z.getEncodedBits=function(L,ce){const W=L.bit<<3|ce;let G=W<<10;for(;s.getBCHDigit(G)-j>=0;)G^=1335<<s.getBCHDigit(G)-j;return 21522^(W<<10|G)}},5339:(Qt,Z)=>{const S=new Uint8Array(512),s=new Uint8Array(256);(function(){let y=1;for(let j=0;j<255;j++)S[j]=y,s[y]=j,y<<=1,256&y&&(y^=285);for(let j=255;j<512;j++)S[j]=S[j-255]})(),Z.log=function(y){if(y<1)throw new Error("log("+y+")");return s[y]},Z.exp=function(y){return S[y]},Z.mul=function(y,j){return 0===y||0===j?0:S[s[y]+s[j]]}},4388:(Qt,Z,S)=>{const s=S(4016),_=S(4792);function y(j){this.mode=s.KANJI,this.data=j}y.getBitsLength=function(D){return 13*D},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(j){let D;for(D=0;D<this.data.length;D++){let L=_.toSJIS(this.data[D]);if(L>=33088&&L<=40956)L-=33088;else{if(!(L>=57408&&L<=60351))throw new Error("Invalid SJIS character: "+this.data[D]+"\nMake sure your charset is UTF-8");L-=49472}L=192*(L>>>8&255)+(255&L),j.put(L,13)}},Qt.exports=y},3667:(Qt,Z)=>{Z.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function s(_,y,j){switch(_){case Z.Patterns.PATTERN000:return(y+j)%2==0;case Z.Patterns.PATTERN001:return y%2==0;case Z.Patterns.PATTERN010:return j%3==0;case Z.Patterns.PATTERN011:return(y+j)%3==0;case Z.Patterns.PATTERN100:return(Math.floor(y/2)+Math.floor(j/3))%2==0;case Z.Patterns.PATTERN101:return y*j%2+y*j%3==0;case Z.Patterns.PATTERN110:return(y*j%2+y*j%3)%2==0;case Z.Patterns.PATTERN111:return(y*j%3+(y+j)%2)%2==0;default:throw new Error("bad maskPattern:"+_)}}Z.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},Z.from=function(y){return Z.isValid(y)?parseInt(y,10):void 0},Z.getPenaltyN1=function(y){const j=y.size;let D=0,L=0,ce=0,W=null,G=null;for(let $=0;$<j;$++){L=ce=0,W=G=null;for(let te=0;te<j;te++){let le=y.get($,te);le===W?L++:(L>=5&&(D+=L-5+3),W=le,L=1),le=y.get(te,$),le===G?ce++:(ce>=5&&(D+=ce-5+3),G=le,ce=1)}L>=5&&(D+=L-5+3),ce>=5&&(D+=ce-5+3)}return D},Z.getPenaltyN2=function(y){const j=y.size;let D=0;for(let L=0;L<j-1;L++)for(let ce=0;ce<j-1;ce++){const W=y.get(L,ce)+y.get(L,ce+1)+y.get(L+1,ce)+y.get(L+1,ce+1);(4===W||0===W)&&D++}return 3*D},Z.getPenaltyN3=function(y){const j=y.size;let D=0,L=0,ce=0;for(let W=0;W<j;W++){L=ce=0;for(let G=0;G<j;G++)L=L<<1&2047|y.get(W,G),G>=10&&(1488===L||93===L)&&D++,ce=ce<<1&2047|y.get(G,W),G>=10&&(1488===ce||93===ce)&&D++}return 40*D},Z.getPenaltyN4=function(y){let j=0;const D=y.data.length;for(let ce=0;ce<D;ce++)j+=y.data[ce];return 10*Math.abs(Math.ceil(100*j/D/5)-10)},Z.applyMask=function(y,j){const D=j.size;for(let L=0;L<D;L++)for(let ce=0;ce<D;ce++)j.isReserved(ce,L)||j.xor(ce,L,s(y,ce,L))},Z.getBestMask=function(y,j){const D=Object.keys(Z.Patterns).length;let L=0,ce=1/0;for(let W=0;W<D;W++){j(W),Z.applyMask(W,y);const G=Z.getPenaltyN1(y)+Z.getPenaltyN2(y)+Z.getPenaltyN3(y)+Z.getPenaltyN4(y);Z.applyMask(W,y),G<ce&&(ce=G,L=W)}return L}},4016:(Qt,Z,S)=>{const s=S(4406),_=S(2699);Z.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},Z.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},Z.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},Z.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},Z.MIXED={bit:-1},Z.getCharCountIndicator=function(D,L){if(!D.ccBits)throw new Error("Invalid mode: "+D);if(!s.isValid(L))throw new Error("Invalid version: "+L);return L>=1&&L<10?D.ccBits[0]:L<27?D.ccBits[1]:D.ccBits[2]},Z.getBestModeForData=function(D){return _.testNumeric(D)?Z.NUMERIC:_.testAlphanumeric(D)?Z.ALPHANUMERIC:_.testKanji(D)?Z.KANJI:Z.BYTE},Z.toString=function(D){if(D&&D.id)return D.id;throw new Error("Invalid mode")},Z.isValid=function(D){return D&&D.bit&&D.ccBits},Z.from=function(D,L){if(Z.isValid(D))return D;try{return function y(j){if("string"!=typeof j)throw new Error("Param is not a string");switch(j.toLowerCase()){case"numeric":return Z.NUMERIC;case"alphanumeric":return Z.ALPHANUMERIC;case"kanji":return Z.KANJI;case"byte":return Z.BYTE;default:throw new Error("Unknown mode: "+j)}}(D)}catch(ce){return L}}},7783:(Qt,Z,S)=>{const s=S(4016);function _(y){this.mode=s.NUMERIC,this.data=y.toString()}_.getBitsLength=function(j){return 10*Math.floor(j/3)+(j%3?j%3*3+1:0)},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(j){let D,L,ce;for(D=0;D+3<=this.data.length;D+=3)L=this.data.substr(D,3),ce=parseInt(L,10),j.put(ce,10);const W=this.data.length-D;W>0&&(L=this.data.substr(D),ce=parseInt(L,10),j.put(ce,3*W+1))},Qt.exports=_},1106:(Qt,Z,S)=>{const s=S(5339);Z.mul=function(y,j){const D=new Uint8Array(y.length+j.length-1);for(let L=0;L<y.length;L++)for(let ce=0;ce<j.length;ce++)D[L+ce]^=s.mul(y[L],j[ce]);return D},Z.mod=function(y,j){let D=new Uint8Array(y);for(;D.length-j.length>=0;){const L=D[0];for(let W=0;W<j.length;W++)D[W]^=s.mul(j[W],L);let ce=0;for(;ce<D.length&&0===D[ce];)ce++;D=D.slice(ce)}return D},Z.generateECPolynomial=function(y){let j=new Uint8Array([1]);for(let D=0;D<y;D++)j=Z.mul(j,new Uint8Array([1,s.exp(D)]));return j}},1465:(Qt,Z,S)=>{const s=S(4792),_=S(2259),y=S(2118),j=S(4425),D=S(6221),L=S(3114),ce=S(3667),W=S(4655),G=S(2636),$=S(2088),te=S(7078),le=S(4016),J=S(2033);function P(V,ne,E){const M=V.size,A=te.getEncodedBits(ne,E);let R,ee;
vendor: 4,523 bytes, line 1
1for(R=0;R<15;R++)ee=1==(A>>R&1),V.set(R<6?R:R<8?R+1:M-15+R,8,ee,!0),V.set(8,R<8?M-R-1:R<9?15-R-1+1:15-R-1,ee,!0);V.set(M-8,8,1,!0)}function re(V,ne,E,M){let A;if(Array.isArray(V))A=J.fromArray(V);else{if("string"!=typeof V)throw new Error("Invalid data");{let ge=ne;if(!ge){const Fe=J.rawSplit(V);ge=$.getBestVersionForData(Fe,E)}A=J.fromString(V,ge||40)}}const R=$.getBestVersionForData(A,E);if(!R)throw new Error("The amount of data is too big to be stored in a QR Code");if(ne){if(ne<R)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+R+".\n")}else ne=R;const ee=function Y(V,ne,E){const M=new y;E.forEach(function(K){M.put(K.mode.bit,4),M.put(K.getLength(),le.getCharCountIndicator(K.mode,V)),K.write(M)});const ee=8*(s.getSymbolTotalCodewords(V)-W.getTotalCodewordsCount(V,ne));for(M.getLengthInBits()+4<=ee&&M.put(0,4);M.getLengthInBits()%8!=0;)M.putBit(0);const B=(ee-M.getLengthInBits())/8;for(let K=0;K<B;K++)M.put(K%2?17:236,8);return function de(V,ne,E){const M=s.getSymbolTotalCodewords(ne),R=M-W.getTotalCodewordsCount(ne,E),ee=W.getBlocksCount(ne,E),K=ee-M%ee,ge=Math.floor(M/ee),Fe=Math.floor(R/ee),he=Fe+1,fe=ge-Fe,Ie=new G(fe);let Se=0;const pe=new Array(ee),ke=new Array(ee);let ae=0;const Ce=new Uint8Array(V.buffer);for(let wt=0;wt<ee;wt++){const Ot=wt<K?Fe:he;pe[wt]=Ce.slice(Se,Se+Ot),ke[wt]=Ie.encode(pe[wt]),Se+=Ot,ae=Math.max(ae,Ot)}const Ve=new Uint8Array(M);let ut,Ge,Be=0;for(ut=0;ut<ae;ut++)for(Ge=0;Ge<ee;Ge++)ut<pe[Ge].length&&(Ve[Be++]=pe[Ge][ut]);for(ut=0;ut<fe;ut++)for(Ge=0;Ge<ee;Ge++)Ve[Be++]=ke[Ge][ut];return Ve}(M,V,ne)}(ne,E,A),B=s.getSymbolSize(ne),K=new j(B);return function Me(V,ne){const E=V.size,M=L.getPositions(ne);for(let A=0;A<M.length;A++){const R=M[A][0],ee=M[A][1];for(let B=-1;B<=7;B++)if(!(R+B<=-1||E<=R+B))for(let K=-1;K<=7;K++)ee+K<=-1||E<=ee+K||V.set(R+B,ee+K,B>=0&&B<=6&&(0===K||6===K)||K>=0&&K<=6&&(0===B||6===B)||B>=2&&B<=4&&K>=2&&K<=4,!0)}}(K,ne),function Re(V){const ne=V.size;for(let E=8;E<ne-8;E++){const M=E%2==0;V.set(E,6,M,!0),V.set(6,E,M,!0)}}(K),function me(V,ne){const E=D.getPositions(ne);for(let M=0;M<E.length;M++){const A=E[M][0],R=E[M][1];for(let ee=-2;ee<=2;ee++)for(let B=-2;B<=2;B++)V.set(A+ee,R+B,-2===ee||2===ee||-2===B||2===B||0===ee&&0===B,!0)}}(K,ne),P(K,E,0),ne>=7&&function Q(V,ne){const E=V.size,M=$.getEncodedBits(ne);let A,R,ee;for(let B=0;B<18;B++)A=Math.floor(B/3),R=B%3+E-8-3,ee=1==(M>>B&1),V.set(A,R,ee,!0),V.set(R,A,ee,!0)}(K,ne),function N(V,ne){const E=V.size;let M=-1,A=E-1,R=7,ee=0;for(let B=E-1;B>0;B-=2)for(6===B&&B--;;){for(let K=0;K<2;K++)if(!V.isReserved(A,B-K)){let ge=!1;ee<ne.length&&(ge=1==(ne[ee]>>>R&1)),V.set(A,B-K,ge),R--,-1===R&&(ee++,R=7)}if(A+=M,A<0||E<=A){A-=M,M=-M;break}}}(K,ee),isNaN(M)&&(M=ce.getBestMask(K,P.bind(null,K,E))),ce.applyMask(M,K),P(K,E,M),{modules:K,version:ne,errorCorrectionLevel:E,maskPattern:M,segments:A}}Z.create=function(ne,E){if(void 0===ne||""===ne)throw new Error("No input text");let A,R,M=_.M;return void 0!==E&&(M=_.from(E.errorCorrectionLevel,_.M),A=$.from(E.version),R=ce.from(E.maskPattern),E.toSJISFunc&&s.setToSJISFunction(E.toSJISFunc)),re(ne,A,M,R)}},2636:(Qt,Z,S)=>{const s=S(1106);function _(y){this.genPoly=void 0,this.degree=y,this.degree&&this.initialize(this.degree)}_.prototype.initialize=function(j){this.degree=j,this.genPoly=s.generateECPolynomial(this.degree)},_.prototype.encode=function(j){if(!this.genPoly)throw new Error("Encoder not initialized");const D=new Uint8Array(j.length+this.degree);D.set(j);const L=s.mod(D,this.genPoly),ce=this.degree-L.length;if(ce>0){const W=new Uint8Array(this.degree);return W.set(L,ce),W}return L},Qt.exports=_},2699:(Qt,Z)=>{const S="[0-9]+";let _="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";_=_.replace(/u/g,"\\u");const y="(?:(?![A-Z0-9 $%*+\\-./:]|"+_+")(?:.|[\r\n]))+";Z.KANJI=new RegExp(_,"g"),Z.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Z.BYTE=new RegExp(y,"g"),Z.NUMERIC=new RegExp(S,"g"),Z.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const j=new RegExp("^"+_+"$"),D=new RegExp("^"+S+"$"),L=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Z.testKanji=function(W){return j.test(W)},Z.testNumeric=function(W){return D.test(W)},Z.testAlphanumeric=function(W){return L.test(W)}},2033:(Qt,Z,S)=>{const s=S(4016),_=S(7783),y=S(2424),j=S(5663),D=S(4388),L=S(2699),
vendor: 4,683 bytes, line 1
1ce=S(4792),W=S(4901);function G(Q){return unescape(encodeURIComponent(Q)).length}function $(Q,P,N){const Y=[];let de;for(;null!==(de=Q.exec(N));)Y.push({data:de[0],index:de.index,mode:P,length:de[0].length});return Y}function te(Q){const P=$(L.NUMERIC,s.NUMERIC,Q),N=$(L.ALPHANUMERIC,s.ALPHANUMERIC,Q);let Y,de;return ce.isKanjiModeEnabled()?(Y=$(L.BYTE,s.BYTE,Q),de=$(L.KANJI,s.KANJI,Q)):(Y=$(L.BYTE_KANJI,s.BYTE,Q),de=[]),P.concat(N,Y,de).sort(function(V,ne){return V.index-ne.index}).map(function(V){return{data:V.data,mode:V.mode,length:V.length}})}function le(Q,P){switch(P){case s.NUMERIC:return _.getBitsLength(Q);case s.ALPHANUMERIC:return y.getBitsLength(Q);case s.KANJI:return D.getBitsLength(Q);case s.BYTE:return j.getBitsLength(Q)}}function me(Q,P){let N;const Y=s.getBestModeForData(Q);if(N=s.from(P,Y),N!==s.BYTE&&N.bit<Y.bit)throw new Error('"'+Q+'" cannot be encoded with mode '+s.toString(N)+".\n Suggested mode is: "+s.toString(Y));switch(N===s.KANJI&&!ce.isKanjiModeEnabled()&&(N=s.BYTE),N){case s.NUMERIC:return new _(Q);case s.ALPHANUMERIC:return new y(Q);case s.KANJI:return new D(Q);case s.BYTE:return new j(Q)}}Z.fromArray=function(P){return P.reduce(function(N,Y){return"string"==typeof Y?N.push(me(Y,null)):Y.data&&N.push(me(Y.data,Y.mode)),N},[])},Z.fromString=function(P,N){const de=function Me(Q){const P=[];for(let N=0;N<Q.length;N++){const Y=Q[N];switch(Y.mode){case s.NUMERIC:P.push([Y,{data:Y.data,mode:s.ALPHANUMERIC,length:Y.length},{data:Y.data,mode:s.BYTE,length:Y.length}]);break;case s.ALPHANUMERIC:P.push([Y,{data:Y.data,mode:s.BYTE,length:Y.length}]);break;case s.KANJI:P.push([Y,{data:Y.data,mode:s.BYTE,length:G(Y.data)}]);break;case s.BYTE:P.push([{data:Y.data,mode:s.BYTE,length:G(Y.data)}])}}return P}(te(P,ce.isKanjiModeEnabled())),re=function Re(Q,P){const N={},Y={start:{}};let de=["start"];for(let re=0;re<Q.length;re++){const V=Q[re],ne=[];for(let E=0;E<V.length;E++){const M=V[E],A=""+re+E;ne.push(A),N[A]={node:M,lastCount:0},Y[A]={};for(let R=0;R<de.length;R++){const ee=de[R];N[ee]&&N[ee].node.mode===M.mode?(Y[ee][A]=le(N[ee].lastCount+M.length,M.mode)-le(N[ee].lastCount,M.mode),N[ee].lastCount+=M.length):(N[ee]&&(N[ee].lastCount=M.length),Y[ee][A]=le(M.length,M.mode)+4+s.getCharCountIndicator(M.mode,P))}}de=ne}for(let re=0;re<de.length;re++)Y[de[re]].end=0;return{map:Y,table:N}}(de,N),V=W.find_path(re.map,"start","end"),ne=[];for(let E=1;E<V.length-1;E++)ne.push(re.table[V[E]].node);return Z.fromArray(function J(Q){return Q.reduce(function(P,N){const Y=P.length-1>=0?P[P.length-1]:null;return Y&&Y.mode===N.mode?(P[P.length-1].data+=N.data,P):(P.push(N),P)},[])}(ne))},Z.rawSplit=function(P){return Z.fromArray(te(P,ce.isKanjiModeEnabled()))}},4792:(Qt,Z)=>{let S;const s=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Z.getSymbolSize=function(y){if(!y)throw new Error('"version" cannot be null or undefined');if(y<1||y>40)throw new Error('"version" should be in range from 1 to 40');return 4*y+17},Z.getSymbolTotalCodewords=function(y){return s[y]},Z.getBCHDigit=function(_){let y=0;for(;0!==_;)y++,_>>>=1;return y},Z.setToSJISFunction=function(y){if("function"!=typeof y)throw new Error('"toSJISFunc" is not a valid function.');S=y},Z.isKanjiModeEnabled=function(){return void 0!==S},Z.toSJIS=function(y){return S(y)}},4406:(Qt,Z)=>{Z.isValid=function(s){return!isNaN(s)&&s>=1&&s<=40}},2088:(Qt,Z,S)=>{const s=S(4792),_=S(4655),y=S(2259),j=S(4016),D=S(4406),ce=s.getBCHDigit(7973);function G(le,J){return j.getCharCountIndicator(le,J)+4}function $(le,J){let Me=0;return le.forEach(function(Re){Me+=G(Re.mode,J)+Re.getBitsLength()}),Me}Z.from=function(J,Me){return D.isValid(J)?parseInt(J,10):Me},Z.getCapacity=function(J,Me,Re){if(!D.isValid(J))throw new Error("Invalid QR Code version");void 0===Re&&(Re=j.BYTE);const P=8*(s.getSymbolTotalCodewords(J)-_.getTotalCodewordsCount(J,Me));if(Re===j.MIXED)return P;const N=P-G(Re,J);switch(Re){case j.NUMERIC:return Math.floor(N/10*3);case j.ALPHANUMERIC:return Math.floor(N/11*2);case j.KANJI:return Math.floor(N/13);default:return Math.floor(N/8)}},Z.getBestVersionForData=function(J,Me){let Re;const me=y.from(Me,y.M);if(Array.isArray(J)){if(J.length>1)return function te(le,J){for(let Me=1;Me<=40;Me++)if($(le,Me)<=Z.getCapacity(Me,J,j.MIXED))return Me}(J,me);if(0===J.length)return 1;Re=J[0]}else Re=J;return function W(le,J,Me){for(let Re=1;Re<=40;Re++)if(J<=Z.getCapacity(Re,Me,le))return Re}(Re.mode,Re.getLength(),me)},Z.getEncodedBits=function(J){if(!D.isValid(J)||J<7)throw new Error("Invalid QR Code version");let Me=J<<12;
1for(;s.getBCHDigit(Me)-ce>=0;)Me^=7973<<s.getBCHDigit(Me)-ce;return J<<12|Me}},3210:(Qt,Z,S)=>{const s=S(68);Z.render=function(D,L,ce){let W=ce,G=L;void 0===W&&(!L||!L.getContext)&&(W=L,L=void 0),L||(G=function y(){try{return document.createElement("canvas")}catch(j){throw new Error("You need to specify a canvas element")}}()),W=s.getOptions(W);const $=s.getImageWidth(D.modules.size,W),te=G.getContext("2d"),le=te.createImageData($,$);return s.qrToImageData(le.data,D,W),function _(j,D,L){j.clearRect(0,0,D.width,D.height),D.style||(D.style={}),D.height=L,D.width=L,D.style.height=L+"px",D.style.width=L+"px"}(te,G,$),te.putImageData(le,0,0),G},Z.renderToDataURL=function(D,L,ce){let W=ce;return void 0===W&&(!L||!L.getContext)&&(W=L,L=void 0),W||(W={}),Z.render(D,L,W).toDataURL(W.type||"image/png",(W.rendererOpts||{}).quality)}},2334:(Qt,Z,S)=>{const s=S(68);function _(D,L){const ce=D.a/255,W=L+'="'+D.hex+'"';return ce<1?W+" "+L+'-opacity="'+ce.toFixed(2).slice(1)+'"':W}function y(D,L,ce){let W=D+L;return void 0!==ce&&(W+=" "+ce),W}Z.render=function(L,ce,W){const G=s.getOptions(ce),$=L.modules.size,te=L.modules.data,le=$+2*G.margin,J=G.color.light.a?"<path "+_(G.color.light,"fill")+' d="M0 0h'+le+"v"+le+'H0z"/>':"",Me="<path "+_(G.color.dark,"stroke")+' d="'+function j(D,L,ce){let W="",G=0,$=!1,te=0;for(let le=0;le<D.length;le++){const J=Math.floor(le%L),Me=Math.floor(le/L);!J&&!$&&($=!0),D[le]?(te++,le>0&&J>0&&D[le-1]||(W+=$?y("M",J+ce,.5+Me+ce):y("m",G,0),G=0,$=!1),J+1<L&&D[le+1]||(W+=y("h",te),te=0)):G++}return W}(te,$,G.margin)+'"/>',Q='<svg xmlns="http://www.w3.org/2000/svg" '+(G.width?'width="'+G.width+'" height="'+G.width+'" ':"")+'viewBox="0 0 '+le+" "+le+'" shape-rendering="crispEdges">'+J+Me+"</svg>\n";return"function"==typeof W&&W(null,Q),Q}},68:(Qt,Z)=>{function S(s){if("number"==typeof s&&(s=s.toString()),"string"!=typeof s)throw new Error("Color should be defined as hex string");let _=s.slice().replace("#","").split("");if(_.length<3||5===_.length||_.length>8)throw new Error("Invalid hex color: "+s);(3===_.length||4===_.length)&&(_=Array.prototype.concat.apply([],_.map(function(j){return[j,j]}))),6===_.length&&_.push("F","F");const y=parseInt(_.join(""),16);return{r:y>>24&255,g:y>>16&255,b:y>>8&255,a:255&y,hex:"#"+_.slice(0,6).join("")}}Z.getOptions=function(_){_||(_={}),_.color||(_.color={});const j=_.width&&_.width>=21?_.width:void 0;return{width:j,scale:j?4:_.scale||4,margin:null==_.margin||_.margin<0?4:_.margin,color:{dark:S(_.color.dark||"#000000ff"),light:S(_.color.light||"#ffffffff")},type:_.type,rendererOpts:_.rendererOpts||{}}},Z.getScale=function(_,y){return y.width&&y.width>=_+2*y.margin?y.width/(_+2*y.margin):y.scale},Z.getImageWidth=function(_,y){const j=Z.getScale(_,y);return Math.floor((_+2*y.margin)*j)},Z.qrToImageData=function(_,y,j){const D=y.modules.size,L=y.modules.data,ce=Z.getScale(D,j),W=Math.floor((D+2*j.margin)*ce),G=j.margin*ce,$=[j.color.light,j.color.dark];for(let te=0;te<W;te++)for(let le=0;le<W;le++){let J=4*(te*W+le),Me=j.color.light;te>=G&&le>=G&&te<W-G&&le<W-G&&(Me=$[L[Math.floor((te-G)/ce)*D+Math.floor((le-G)/ce)]?1:0]),_[J++]=Me.r,_[J++]=Me.g,_[J++]=Me.b,_[J]=Me.a}}},591:(Qt,Z,S)=>{"use strict";S.d(Z,{X:()=>y});var s=S(8929),_=S(5279);class y extends s.xQ{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const L=super._subscribe(D);return L&&!L.closed&&D.next(this._value),L}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _.N;return this._value}next(D){super.next(this._value=D)}}},9312:(Qt,Z,S)=>{"use strict";S.d(Z,{P:()=>D});var s=S(8896),_=S(1086),y=S(1737);class D{constructor(ce,W,G){this.kind=ce,this.value=W,this.error=G,this.hasValue="N"===ce}observe(ce){switch(this.kind){case"N":return ce.next&&ce.next(this.value);case"E":return ce.error&&ce.error(this.error);case"C":return ce.complete&&ce.complete()}}do(ce,W,G){switch(this.kind){case"N":return ce&&ce(this.value);case"E":return W&&W(this.error);case"C":return G&&G()}}accept(ce,W,G){return ce&&"function"==typeof ce.next?this.observe(ce):this.do(ce,W,G)}toObservable(){switch(this.kind){case"N":return(0,_.of)(this.value);case"E":return(0,y._)(this.error);case"C":return(0,s.c)()}throw new Error("unexpected notification kind value")}static createNext(ce){return void 0!==ce?new D("N",ce):D.undefinedValueNotification}static createError(ce){return new D("E",void 0,ce)}static createComplete(){return D.completeNotification}}D.completeNotification=new D("C"),D.undefinedValueNotification=new D("N",void 0)},6498:(Qt,Z,S)=>{"use strict";S.d(Z,{y:()=>G});var s=S(3489),y=S(7668),j=S(3292),L=S(3821),ce=S(4843),W=S(2830);let G=(()=>{class te{constructor(J){this._isScalar=!1,J&&(this._subscribe=J)}lift(J){const Me=new te;return Me.source=this,Me.operator=J,Me}subscribe(J,Me,Re){const{operator:me}=this,Q=function D(te,le,J){if(te){if(te instanceof s.L)return te;if(te[y.b])return te[y.b]()}return te||le||J?new s.L(te,le,J):new s.L(j.c)}(J,Me,Re);if(Q.add(me?me.call(Q,this.source):this.source||W.v.useDeprecatedSynchronousErrorHandling&&!Q.syncErrorThrowable?this._subscribe(Q):this._trySubscribe(Q)),W.v.useDeprecatedSynchronousErrorHandling&&Q.syncErrorThrowable&&(Q.syncErrorThrowable=!1,Q.syncErrorThrown))throw Q.syncErrorValue;return Q}_trySubscribe(J){try{return this._subscribe(J)}catch(Me){W.v.useDeprecatedSynchronousErrorHandling&&(J.syncErrorThrown=!0,J.syncErrorValue=Me),function _(te){for(;te;){const{closed:le,destination:J,isStopped:Me}=te;if(le||Me)return!1;te=J&&J instanceof s.L?J:null}return!0}(J)?J.error(Me):console.warn(Me)}}forEach(J,Me){return new(Me=$(Me))((Re,me)=>{let Q;Q=this.subscribe(P=>{try{J(P)}catch(N){me(N),Q&&Q.unsubscribe()}},me,Re)})}_subscribe(J){const{source:Me}=this;return Me&&Me.subscribe(J)}[L.L](){return this}pipe(...J){return 0===J.length?this:(0,ce.U)(J)(this)}toPromise(J){return new(J=$(J))((Me,Re)=>{let me;this.subscribe(Q=>me=Q,Q=>Re(Q),()=>Me(me))})}}return te.create=le=>new te(le),te})();function $(te){if(te||(te=W.v.Promise||Promise),!te)throw new Error("no Promise impl found");return te}},3292:(Qt,Z,S)=>{"use strict";S.d(Z,{c:()=>y});var s=S(2830),_=S(2782);const y={closed:!0,next(j){},error(j){if(s.v.useDeprecatedSynchronousErrorHandling)throw j;(0,_.z)(j)},complete(){}}},826:(Qt,Z,S)=>{"use strict";S.d(Z,{L:()=>_});var s=S(3489);class _ extends s.L{notifyNext(j,D,L,ce,W){this.destination.next(D)}notifyError(j,D){this.destination.error(j)}notifyComplete(j){this.destination.complete()}}},8929:(Qt,Z,S)=>{"use strict";S.d(Z,{Yc:()=>ce,xQ:()=>W});var s=S(6498),_=S(3489),y=S(2654),j=S(5279),D=S(5283),L=S(7668);class ce extends _.L{constructor(te){super(te),this.destination=te}}let W=(()=>{class $ extends s.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[L.b](){return new ce(this)}lift(le){const J=new G(this,this);return J.operator=le,J}next(le){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:J}=this,Me=J.length,Re=J.slice();for(let me=0;me<Me;me++)Re[me].next(le)}}error(le){if(this.closed)throw new j.N;this.hasError=!0,this.thrownError=le,this.isStopped=!0;const{observers:J}=this,Me=J.length,Re=J.slice();for(let me=0;me<Me;me++)Re[me].error(le);this.observers.length=0}complete(){if(this.closed)throw new j.N;this.isStopped=!0;const{observers:le}=this,J=le.length,Me=le.slice();for(let Re=0;Re<J;Re++)Me[Re].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(le){if(this.closed)throw new j.N;return super._trySubscribe(le)}_subscribe(le){if(this.closed)throw new j.N;return this.hasError?(le.error(this.thrownError),y.w.EMPTY):this.isStopped?(le.complete(),y.w.EMPTY):(this.observers.push(le),new D.W(this,le))}asObservable(){const le=new s.y;return le.source=this,le}}return $.create=(te,le)=>new G(te,le),$})();class G extends W{constructor(te,le){super(),this.destination=te,this.source=le}next(te){const{destination:le}=this;le&&le.next&&le.next(te)}error(te){const{destination:le}=this;le&&le.error&&this.destination.error(te)}complete(){const{destination:te}=this;te&&te.complete&&this.destination.complete()}_subscribe(te){const{source:le}=this;return le?this.source.subscribe(te):y.w.EMPTY}}},5283:(Qt,Z,S)=>{"use strict";S.d(Z,{W:()=>_});var s=S(2654);class _ extends s.w{constructor(j,D){super(),this.subject=j,this.subscriber=D,this.closed=!1}
1unsubscribe(){if(this.closed)return;this.closed=!0;const j=this.subject,D=j.observers;if(this.subject=null,!D||0===D.length||j.isStopped||j.closed)return;const L=D.indexOf(this.subscriber);-1!==L&&D.splice(L,1)}}},3489:(Qt,Z,S)=>{"use strict";S.d(Z,{L:()=>ce});var s=S(7043),_=S(3292),y=S(2654),j=S(7668),D=S(2830),L=S(2782);class ce extends y.w{constructor($,te,le){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_.c;break;case 1:if(!$){this.destination=_.c;break}if("object"==typeof $){$ instanceof ce?(this.syncErrorThrowable=$.syncErrorThrowable,this.destination=$,$.add(this)):(this.syncErrorThrowable=!0,this.destination=new W(this,$));break}default:this.syncErrorThrowable=!0,this.destination=new W(this,$,te,le)}}[j.b](){return this}static create($,te,le){const J=new ce($,te,le);return J.syncErrorThrowable=!1,J}next($){this.isStopped||this._next($)}error($){this.isStopped||(this.isStopped=!0,this._error($))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next($){this.destination.next($)}_error($){this.destination.error($),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:$}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=$,this}}class W extends ce{constructor($,te,le,J){super(),this._parentSubscriber=$;let Me,Re=this;(0,s.m)(te)?Me=te:te&&(Me=te.next,le=te.error,J=te.complete,te!==_.c&&(Re=Object.create(te),(0,s.m)(Re.unsubscribe)&&this.add(Re.unsubscribe.bind(Re)),Re.unsubscribe=this.unsubscribe.bind(this))),this._context=Re,this._next=Me,this._error=le,this._complete=J}next($){if(!this.isStopped&&this._next){const{_parentSubscriber:te}=this;D.v.useDeprecatedSynchronousErrorHandling&&te.syncErrorThrowable?this.__tryOrSetError(te,this._next,$)&&this.unsubscribe():this.__tryOrUnsub(this._next,$)}}error($){if(!this.isStopped){const{_parentSubscriber:te}=this,{useDeprecatedSynchronousErrorHandling:le}=D.v;if(this._error)le&&te.syncErrorThrowable?(this.__tryOrSetError(te,this._error,$),this.unsubscribe()):(this.__tryOrUnsub(this._error,$),this.unsubscribe());else if(te.syncErrorThrowable)le?(te.syncErrorValue=$,te.syncErrorThrown=!0):(0,L.z)($),this.unsubscribe();else{if(this.unsubscribe(),le)throw $;(0,L.z)($)}}}complete(){if(!this.isStopped){const{_parentSubscriber:$}=this;if(this._complete){const te=()=>this._complete.call(this._context);D.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?(this.__tryOrSetError($,te),this.unsubscribe()):(this.__tryOrUnsub(te),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub($,te){try{$.call(this._context,te)}catch(le){if(this.unsubscribe(),D.v.useDeprecatedSynchronousErrorHandling)throw le;(0,L.z)(le)}}__tryOrSetError($,te,le){if(!D.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{te.call(this._context,le)}catch(J){return D.v.useDeprecatedSynchronousErrorHandling?($.syncErrorValue=J,$.syncErrorThrown=!0,!0):((0,L.z)(J),!0)}return!1}_unsubscribe(){const{_parentSubscriber:$}=this;this._context=null,this._parentSubscriber=null,$.unsubscribe()}}},2654:(Qt,Z,S)=>{"use strict";S.d(Z,{w:()=>L});var s=S(6688),_=S(7830),y=S(7043);const D=(()=>{function W(G){return Error.call(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map(($,te)=>`${te+1}) ${$.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G,this}return W.prototype=Object.create(Error.prototype),W})();class L{constructor(G){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,G&&(this._ctorUnsubscribe=!0,this._unsubscribe=G)}unsubscribe(){let G;if(this.closed)return;let{_parentOrParents:$,_ctorUnsubscribe:te,_unsubscribe:le,_subscriptions:J}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,$ instanceof L)$.remove(this);else if(null!==$)for(let Me=0;Me<$.length;++Me)$[Me].remove(this);if((0,y.m)(le)){te&&(this._unsubscribe=void 0);try{le.call(this)}catch(Me){G=Me instanceof D?ce(Me.errors):[Me]}}if((0,s.k)(J)){let Me=-1,Re=J.length;for(;++Me<Re;){const me=J[Me];if((0,_.K)(me))try{me.unsubscribe()}catch(Q){G=G||[],Q instanceof D?G=G.concat(ce(Q.errors)):G.push(Q)}}}if(G)throw new D(G)}add(G){let $=G;
1if(!G)return L.EMPTY;switch(typeof G){case"function":$=new L(G);case"object":if($===this||$.closed||"function"!=typeof $.unsubscribe)return $;if(this.closed)return $.unsubscribe(),$;if(!($ instanceof L)){const J=$;$=new L,$._subscriptions=[J]}break;default:throw new Error("unrecognized teardown "+G+" added to Subscription.")}let{_parentOrParents:te}=$;if(null===te)$._parentOrParents=this;else if(te instanceof L){if(te===this)return $;$._parentOrParents=[te,this]}else{if(-1!==te.indexOf(this))return $;te.push(this)}const le=this._subscriptions;return null===le?this._subscriptions=[$]:le.push($),$}remove(G){const $=this._subscriptions;if($){const te=$.indexOf(G);-1!==te&&$.splice(te,1)}}}var W;function ce(W){return W.reduce((G,$)=>G.concat($ instanceof D?$.errors:$),[])}L.EMPTY=((W=new L).closed=!0,W)},2830:(Qt,Z,S)=>{"use strict";S.d(Z,{v:()=>_});let s=!1;const _={Promise:void 0,set useDeprecatedSynchronousErrorHandling(y){if(y){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=y},get useDeprecatedSynchronousErrorHandling(){return s}}},1177:(Qt,Z,S)=>{"use strict";S.d(Z,{Ds:()=>L,IY:()=>j,ft:()=>W});var s=S(3489),_=S(6498),y=S(9249);class j extends s.L{constructor($){super(),this.parent=$}_next($){this.parent.notifyNext($)}_error($){this.parent.notifyError($),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends s.L{notifyNext($){this.destination.next($)}notifyError($){this.destination.error($)}notifyComplete(){this.destination.complete()}}function W(G,$){if($.closed)return;if(G instanceof _.y)return G.subscribe($);let te;try{te=(0,y.s)(G)($)}catch(le){$.error(le)}return te}},1762:(Qt,Z,S)=>{"use strict";S.d(Z,{N:()=>L,c:()=>D});var s=S(8929),_=S(6498),y=S(2654),j=S(4327);class D extends _.y{constructor(te,le){super(),this.source=te,this.subjectFactory=le,this._refCount=0,this._isComplete=!1}_subscribe(te){return this.getSubject().subscribe(te)}getSubject(){const te=this._subject;return(!te||te.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let te=this._connection;return te||(this._isComplete=!1,te=this._connection=new y.w,te.add(this.source.subscribe(new ce(this.getSubject(),this))),te.closed&&(this._connection=null,te=y.w.EMPTY)),te}refCount(){return(0,j.x)()(this)}}const L=(()=>{const $=D.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:$._subscribe},_isComplete:{value:$._isComplete,writable:!0},getSubject:{value:$.getSubject},connect:{value:$.connect},refCount:{value:$.refCount}}})();class ce extends s.Yc{constructor(te,le){super(te),this.connectable=le}_error(te){this._unsubscribe(),super._error(te)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const te=this.connectable;if(te){this.connectable=null;const le=te._connection;te._refCount=0,te._subject=null,te._connection=null,le&&le.unsubscribe()}}}},6053:(Qt,Z,S)=>{"use strict";S.d(Z,{Ms:()=>W,aj:()=>ce});var s=S(2866),_=S(6688),y=S(826),j=S(448),D=S(3009);const L={};function ce(...$){let te,le;return(0,s.K)($[$.length-1])&&(le=$.pop()),"function"==typeof $[$.length-1]&&(te=$.pop()),1===$.length&&(0,_.k)($[0])&&($=$[0]),(0,D.n)($,le).lift(new W(te))}class W{constructor(te){this.resultSelector=te}call(te,le){return le.subscribe(new G(te,this.resultSelector))}}class G extends y.L{constructor(te,le){super(te),this.resultSelector=le,this.active=0,this.values=[],this.observables=[]}_next(te){this.values.push(L),this.observables.push(te)}_complete(){const te=this.observables,le=te.length;if(0===le)this.destination.complete();else{this.active=le,this.toRespond=le;for(let J=0;J<le;J++)this.add((0,j.D)(this,te[J],void 0,J))}}notifyComplete(te){0==(this.active-=1)&&this.destination.complete()}notifyNext(te,le,J){const Me=this.values,me=this.toRespond?Me[J]===L?--this.toRespond:this.toRespond:0;Me[J]=le,0===me&&(this.resultSelector?this._tryResultSelector(Me):this.destination.next(Me.slice()))}_tryResultSelector(te){let le;try{le=this.resultSelector.apply(this,te)}catch(J){return void this.destination.error(J)}this.destination.next(le)}}},1221:(Qt,Z,S)=>{"use strict";S.d(Z,{z:()=>j});var s=S(1086),_=S(9146);function j(...D){return function y(){return(0,_.J)(1)}()((0,s.of)(...D))}},8514:(Qt,Z,S)=>{"use strict";S.d(Z,{P:()=>j});var s=S(6498),_=S(5254),y=S(8896);function j(D){return new s.y(L=>
1{let ce;try{ce=D()}catch(G){return void L.error(G)}return(ce?(0,_.D)(ce):(0,y.c)()).subscribe(L)})}},8896:(Qt,Z,S)=>{"use strict";S.d(Z,{E:()=>_,c:()=>y});var s=S(6498);const _=new s.y(D=>D.complete());function y(D){return D?function j(D){return new s.y(L=>D.schedule(()=>L.complete()))}(D):_}},567:(Qt,Z,S)=>{"use strict";S.d(Z,{D:()=>L});var s=S(6498),_=S(6688),y=S(4850),j=S(7830),D=S(5254);function L(...W){if(1===W.length){const G=W[0];if((0,_.k)(G))return ce(G,null);if((0,j.K)(G)&&Object.getPrototypeOf(G)===Object.prototype){const $=Object.keys(G);return ce($.map(te=>G[te]),$)}}if("function"==typeof W[W.length-1]){const G=W.pop();return ce(W=1===W.length&&(0,_.k)(W[0])?W[0]:W,null).pipe((0,y.U)($=>G(...$)))}return ce(W,null)}function ce(W,G){return new s.y($=>{const te=W.length;if(0===te)return void $.complete();const le=new Array(te);let J=0,Me=0;for(let Re=0;Re<te;Re++){const me=(0,D.D)(W[Re]);let Q=!1;$.add(me.subscribe({next:P=>{Q||(Q=!0,Me++),le[Re]=P},error:P=>$.error(P),complete:()=>{J++,(J===te||!Q)&&(Me===te&&$.next(G?G.reduce((P,N,Y)=>(P[N]=le[Y],P),{}):le),$.complete())}}))}})}},5254:(Qt,Z,S)=>{"use strict";S.d(Z,{D:()=>Re});var s=S(6498),_=S(9249),y=S(2654),j=S(3821),ce=S(6454),W=S(5430),te=S(8955),le=S(8515);function Re(me,Q){return Q?function Me(me,Q){if(null!=me){if(function $(me){return me&&"function"==typeof me[j.L]}(me))return function D(me,Q){return new s.y(P=>{const N=new y.w;return N.add(Q.schedule(()=>{const Y=me[j.L]();N.add(Y.subscribe({next(de){N.add(Q.schedule(()=>P.next(de)))},error(de){N.add(Q.schedule(()=>P.error(de)))},complete(){N.add(Q.schedule(()=>P.complete()))}}))})),N})}(me,Q);if((0,te.t)(me))return function L(me,Q){return new s.y(P=>{const N=new y.w;return N.add(Q.schedule(()=>me.then(Y=>{N.add(Q.schedule(()=>{P.next(Y),N.add(Q.schedule(()=>P.complete()))}))},Y=>{N.add(Q.schedule(()=>P.error(Y)))}))),N})}(me,Q);if((0,le.z)(me))return(0,ce.r)(me,Q);if(function J(me){return me&&"function"==typeof me[W.hZ]}(me)||"string"==typeof me)return function G(me,Q){if(!me)throw new Error("Iterable cannot be null");return new s.y(P=>{const N=new y.w;let Y;return N.add(()=>{Y&&"function"==typeof Y.return&&Y.return()}),N.add(Q.schedule(()=>{Y=me[W.hZ](),N.add(Q.schedule(function(){if(P.closed)return;let de,re;try{const V=Y.next();de=V.value,re=V.done}catch(V){return void P.error(V)}re?P.complete():(P.next(de),this.schedule())}))})),N})}(me,Q)}throw new TypeError((null!==me&&typeof me||me)+" is not observable")}(me,Q):me instanceof s.y?me:new s.y((0,_.s)(me))}},3009:(Qt,Z,S)=>{"use strict";S.d(Z,{n:()=>j});var s=S(6498),_=S(3650),y=S(6454);function j(D,L){return L?(0,y.r)(D,L):new s.y((0,_.V)(D))}},3753:(Qt,Z,S)=>{"use strict";S.d(Z,{R:()=>L});var s=S(6498),_=S(6688),y=S(7043),j=S(4850);function L(te,le,J,Me){return(0,y.m)(J)&&(Me=J,J=void 0),Me?L(te,le,J).pipe((0,j.U)(Re=>(0,_.k)(Re)?Me(...Re):Me(Re))):new s.y(Re=>{ce(te,le,function me(Q){Re.next(arguments.length>1?Array.prototype.slice.call(arguments):Q)},Re,J)})}function ce(te,le,J,Me,Re){let me;if(function $(te){return te&&"function"==typeof te.addEventListener&&"function"==typeof te.removeEventListener}(te)){const Q=te;te.addEventListener(le,J,Re),me=()=>Q.removeEventListener(le,J,Re)}else if(function G(te){return te&&"function"==typeof te.on&&"function"==typeof te.off}(te)){const Q=te;te.on(le,J),me=()=>Q.off(le,J)}else if(function W(te){return te&&"function"==typeof te.addListener&&"function"==typeof te.removeListener}(te)){const Q=te;te.addListener(le,J),me=()=>Q.removeListener(le,J)}else{if(!te||!te.length)throw new TypeError("Invalid event target");for(let Q=0,P=te.length;Q<P;Q++)ce(te[Q],le,J,Me,Re)}Me.add(me)}},1715:(Qt,Z,S)=>{"use strict";S.d(Z,{F:()=>j});var s=S(6498),_=S(353),y=S(4241);function j(L=0,ce=_.P){return(!(0,y.k)(L)||L<0)&&(L=0),(!ce||"function"!=typeof ce.schedule)&&(ce=_.P),new s.y(W=>(W.add(ce.schedule(D,L,{subscriber:W,counter:0,period:L})),W))}function D(L){const{subscriber:ce,counter:W,period:G}=L;ce.next(W),this.schedule({subscriber:ce,counter:W+1,period:G},G)}},6787:(Qt,Z,S)=>{"use strict";S.d(Z,{T:()=>D});var s=S(6498),_=S(2866),y=S(9146),j=S(3009);function D(...L){let ce=Number.POSITIVE_INFINITY,W=null,G=L[L.length-1];return(0,_.K)(G)?(W=L.pop(),L.length>1&&"number"==typeof L[L.length-1]&&(ce=L.pop())):"number"==typeof G&&(ce=L.pop()),null===W&&1===L.length&&L[0]instanceof s.y?L[0]:(0,y.J)(ce)((0,j.n)(L,W))}},1086:(Qt,Z,S)=>{"use strict";S.d(Z,{of:()=>j});var s=S(2866),_=S(3009),y=S(6454);function j(...D){let L=D[D.length-1];return(0,s.K)(L)?(D.pop(),(0,y.r)(D,L)):(0,_.n)(D)}},1737:(Qt,Z,S)=>{"use strict";S.d(Z,{_:()=>_});var s=S(6498);function _(j,D){return new s.y(D?L=>D.schedule(y,0,{error:j,subscriber:L}):L=>L.error(j))}function y({error:j,subscriber:D}){D.error(j)}},8723:(Qt,Z,S)=>{"use strict";S.d(Z,{H:()=>D});var s=S(6498),_=S(353),y=S(4241),j=S(2866);function D(ce=0,W,G){let $=-1;return(0,y.k)(W)?$=Number(W)<1?1:Number(W):(0,j.K)(W)&&(G=W),(0,j.K)(G)||(G=_.P),new s.y(te=>{const le=(0,y.k)(ce)?ce:+ce-G.now();return G.schedule(L,le,{index:0,period:$,subscriber:te})})}function L(ce){const{index:W,period:G,subscriber:$}=ce;if($.next(W),!$.closed){if(-1===G)return $.complete();ce.index=W+1,this.schedule(ce,G)}}},7138:(Qt,Z,S)=>{"use strict";S.d(Z,{e:()=>ce});var s=S(353),_=S(1177);
1class j{constructor(G){this.durationSelector=G}call(G,$){return $.subscribe(new D(G,this.durationSelector))}}class D extends _.Ds{constructor(G,$){super(G),this.durationSelector=$,this.hasValue=!1}_next(G){if(this.value=G,this.hasValue=!0,!this.throttled){let $;try{const{durationSelector:le}=this;$=le(G)}catch(le){return this.destination.error(le)}const te=(0,_.ft)($,new _.IY(this));!te||te.closed?this.clearThrottle():this.add(this.throttled=te)}}clearThrottle(){const{value:G,hasValue:$,throttled:te}=this;te&&(this.remove(te),this.throttled=void 0,te.unsubscribe()),$&&(this.value=void 0,this.hasValue=!1,this.destination.next(G))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var L=S(8723);function ce(W,G=s.P){return function y(W){return function($){return $.lift(new j(W))}}(()=>(0,L.H)(W,G))}},7221:(Qt,Z,S)=>{"use strict";S.d(Z,{K:()=>_});var s=S(1177);function _(D){return function(ce){const W=new y(D),G=ce.lift(W);return W.caught=G}}class y{constructor(L){this.selector=L}call(L,ce){return ce.subscribe(new j(L,this.selector,this.caught))}}class j extends s.Ds{constructor(L,ce,W){super(L),this.selector=ce,this.caught=W}error(L){if(!this.isStopped){let ce;try{ce=this.selector(L,this.caught)}catch($){return void super.error($)}this._unsubscribeAndRecycle();const W=new s.IY(this);this.add(W);const G=(0,s.ft)(ce,W);G!==W&&this.add(G)}}}},1406:(Qt,Z,S)=>{"use strict";S.d(Z,{b:()=>_});var s=S(1709);function _(y,j){return(0,s.zg)(y,j,1)}},13:(Qt,Z,S)=>{"use strict";S.d(Z,{b:()=>y});var s=S(3489),_=S(353);function y(ce,W=_.P){return G=>G.lift(new j(ce,W))}class j{constructor(W,G){this.dueTime=W,this.scheduler=G}call(W,G){return G.subscribe(new D(W,this.dueTime,this.scheduler))}}class D extends s.L{constructor(W,G,$){super(W),this.dueTime=G,this.scheduler=$,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(W){this.clearDebounce(),this.lastValue=W,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:W}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(W)}}clearDebounce(){const W=this.debouncedSubscription;null!==W&&(this.remove(W),W.unsubscribe(),this.debouncedSubscription=null)}}function L(ce){ce.debouncedNext()}},7314:(Qt,Z,S)=>{"use strict";S.d(Z,{d:()=>_});var s=S(3489);function _(D=null){return L=>L.lift(new y(D))}class y{constructor(L){this.defaultValue=L}call(L,ce){return ce.subscribe(new j(L,this.defaultValue))}}class j extends s.L{constructor(L,ce){super(L),this.defaultValue=ce,this.isEmpty=!0}_next(L){this.isEmpty=!1,this.destination.next(L)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(Qt,Z,S)=>{"use strict";S.d(Z,{g:()=>D});var s=S(353),_=S(2697),y=S(3489),j=S(9312);function D(G,$=s.P){const le=(0,_.J)(G)?+G-$.now():Math.abs(G);return J=>J.lift(new L(le,$))}class L{constructor($,te){this.delay=$,this.scheduler=te}call($,te){return te.subscribe(new ce($,this.delay,this.scheduler))}}class ce extends y.L{constructor($,te,le){super($),this.delay=te,this.scheduler=le,this.queue=[],this.active=!1,this.errored=!1}static dispatch($){const te=$.source,le=te.queue,J=$.scheduler,Me=$.destination;for(;le.length>0&&le[0].time-J.now()<=0;)le.shift().notification.observe(Me);if(le.length>0){const Re=Math.max(0,le[0].time-J.now());this.schedule($,Re)}else this.unsubscribe(),te.active=!1}_schedule($){this.active=!0,this.destination.add($.schedule(ce.dispatch,this.delay,{source:this,destination:this.destination,scheduler:$}))}scheduleNotification($){if(!0===this.errored)return;const te=this.scheduler,le=new W(te.now()+this.delay,$);this.queue.push(le),!1===this.active&&this._schedule(te)}_next($){this.scheduleNotification(j.P.createNext($))}_error($){this.errored=!0,this.queue=[],this.destination.error($),this.unsubscribe()}_complete(){this.scheduleNotification(j.P.createComplete()),this.unsubscribe()}}class W{constructor($,te){this.time=$,this.notification=te}}},5778:(Qt,Z,S)=>{"use strict";S.d(Z,{x:()=>_});var s=S(3489);function _(D,L){return ce=>ce.lift(new y(D,L))}class y{constructor(L,ce){this.compare=L,this.keySelector=ce}call(L,ce){return ce.subscribe(new j(L,this.compare,this.keySelector))}}class j extends s.L{constructor(L,ce,W){super(L),this.keySelector=W,this.hasKey=!1,"function"==typeof ce&&(this.compare=ce)}compare(L,ce){return L===ce}_next(L){let ce;try{const{keySelector:G}=this;ce=G?G(L):L}catch(G){return this.destination.error(G)}let W=!1;if(this.hasKey)try{const{compare:G}=this;W=G(this.key,ce)}catch(G){return this.destination.error(G)}else this.hasKey=!0;W||(this.key=ce,this.destination.next(L))}}},2198:(Qt,Z,S)=>{"use strict";S.d(Z,{h:()=>_});var s=S(3489);function _(D,L){return function(W){return W.lift(new y(D,L))}}class y{constructor(L,ce){this.predicate=L,this.thisArg=ce}call(L,ce){return ce.subscribe(new j(L,this.predicate,this.thisArg))}}class j extends s.L{constructor(L,ce,W){super(L),this.predicate=ce,this.thisArg=W,this.count=0}_next(L){let ce;try{ce=this.predicate.call(this.thisArg,L,this.count++)}catch(W){return void this.destination.error(W)}ce&&this.destination.next(L)}}},537:(Qt,Z,S)=>{"use strict";S.d(Z,{x:()=>y});var s=S(3489),_=S(2654);function y(L){return ce=>ce.lift(new j(L))}class j{constructor(ce){this.callback=ce}call(ce,W){return W.subscribe(new D(ce,this.callback))}}class D extends s.L{constructor(ce,W){super(ce),this.add(new _.w(W))}}},7224:(Qt,Z,S)=>{"use strict";S.d(Z,{P:()=>ce});var s=S(4450),_=S(2198),y=S(2986),j=S(7314),D=S(4907),L=S(5379);function ce(W,G){const $=arguments.length>=2;return te=>te.pipe(W?(0,_.h)((le,J)=>W(le,J,te)):L.y,(0,y.q)(1),$?(0,j.d)(G):(0,D.T)(()=>new s.K))}},8127:(Qt,Z,S)=>{"use strict";S.d(Z,{Z:()=>ce});var s=S(4450),_=S(2198),y=S(2821),j=S(4907),D=S(7314),L=S(5379);function ce(W,G){const $=arguments.length>=2;return te=>te.pipe(W?(0,_.h)((le,J)=>W(le,J,te)):L.y,(0,y.h)(1),$?(0,D.d)(G):(0,j.T)(()=>new s.K))}},4850:(Qt,Z,S)=>{"use strict";S.d(Z,{U:()=>_});var s=S(3489);function _(D,L){return function(W){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return W.lift(new y(D,L))}}class y{constructor(L,ce){this.project=L,this.thisArg=ce}call(L,ce){return ce.subscribe(new j(L,this.project,this.thisArg))}}class j extends s.L{constructor(L,ce,W){super(L),this.project=ce,this.count=0,this.thisArg=W||this}_next(L){let ce;try{ce=this.project.call(this.thisArg,L,this.count++)}catch(W){return void this.destination.error(W)}this.destination.next(ce)}}},9146:(Qt,Z,S)=>{"use strict";S.d(Z,{J:()=>y});var s=S(1709),_=S(5379);function y(j=Number.POSITIVE_INFINITY){return(0,s.zg)(_.y,j)}},1709:(Qt,Z,S)=>{"use strict";S.d(Z,{zg:()=>j});var s=S(4850),_=S(5254),y=S(1177);function j(W,G,$=Number.POSITIVE_INFINITY){return"function"==typeof G?te=>te.pipe(j((le,J)=>(0,_.D)(W(le,J)).pipe((0,s.U)((Me,Re)=>G(le,Me,J,Re))),$)):("number"==typeof G&&($=G),te=>te.lift(new D(W,$)))}class D{constructor(G,$=Number.POSITIVE_INFINITY){this.project=G,this.concurrent=$}call(G,$){return $.subscribe(new L(G,this.project,this.concurrent))}}class L extends y.Ds{constructor(G,$,te=Number.POSITIVE_INFINITY){super(G),this.project=$,this.concurrent=te,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(G){this.active<this.concurrent?this._tryNext(G):this.buffer.push(G)}_tryNext(G){let $;const te=this.index++;try{$=this.project(G,te)}catch(le){return void this.destination.error(le)}this.active++,this._innerSub($)}_innerSub(G){const $=new y.IY(this),te=this.destination;te.add($);const le=(0,y.ft)(G,$);le!==$&&te.add(le)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(G){this.destination.next(G)}notifyComplete(){const G=this.buffer;this.active--,G.length>0?this._next(G.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(Qt,Z,S)=>{"use strict";S.d(Z,{O:()=>_});var s=S(1762);function _(j,D){return function(ce){let W;if(W="function"==typeof j?j:function(){return j},"function"==typeof D)return ce.lift(new y(W,D));const G=Object.create(ce,s.N);return G.source=ce,G.subjectFactory=W,G}}class y{constructor(D,L){this.subjectFactory=D,this.selector=L}call(D,L){const{selector:ce}=this,W=this.subjectFactory(),G=ce(W).subscribe(D);return G.add(L.subscribe(W)),G}}},7770:(Qt,Z,S)=>{"use strict";S.d(Z,{QV:()=>y,ht:()=>D});var s=S(3489),_=S(9312);function y(ce,W=0){return function($){return $.lift(new j(ce,W))}}
1class j{constructor(W,G=0){this.scheduler=W,this.delay=G}call(W,G){return G.subscribe(new D(W,this.scheduler,this.delay))}}class D extends s.L{constructor(W,G,$=0){super(W),this.scheduler=G,this.delay=$}static dispatch(W){const{notification:G,destination:$}=W;G.observe($),this.unsubscribe()}scheduleMessage(W){this.destination.add(this.scheduler.schedule(D.dispatch,this.delay,new L(W,this.destination)))}_next(W){this.scheduleMessage(_.P.createNext(W))}_error(W){this.scheduleMessage(_.P.createError(W)),this.unsubscribe()}_complete(){this.scheduleMessage(_.P.createComplete()),this.unsubscribe()}}class L{constructor(W,G){this.notification=W,this.destination=G}}},4327:(Qt,Z,S)=>{"use strict";S.d(Z,{x:()=>_});var s=S(3489);function _(){return function(L){return L.lift(new y(L))}}class y{constructor(L){this.connectable=L}call(L,ce){const{connectable:W}=this;W._refCount++;const G=new j(L,W),$=ce.subscribe(G);return G.closed||(G.connection=W.connect()),$}}class j extends s.L{constructor(L,ce){super(L),this.connectable=ce}_unsubscribe(){const{connectable:L}=this;if(!L)return void(this.connection=null);this.connectable=null;const ce=L._refCount;if(ce<=0)return void(this.connection=null);if(L._refCount=ce-1,ce>1)return void(this.connection=null);const{connection:W}=this,G=L._connection;this.connection=null,G&&(!W||G===W)&&G.unsubscribe()}}},2014:(Qt,Z,S)=>{"use strict";S.d(Z,{R:()=>_});var s=S(3489);function _(D,L){let ce=!1;return arguments.length>=2&&(ce=!0),function(G){return G.lift(new y(D,L,ce))}}class y{constructor(L,ce,W=!1){this.accumulator=L,this.seed=ce,this.hasSeed=W}call(L,ce){return ce.subscribe(new j(L,this.accumulator,this.seed,this.hasSeed))}}class j extends s.L{constructor(L,ce,W,G){super(L),this.accumulator=ce,this._seed=W,this.hasSeed=G,this.index=0}get seed(){return this._seed}set seed(L){this.hasSeed=!0,this._seed=L}_next(L){if(this.hasSeed)return this._tryNext(L);this.seed=L,this.destination.next(L)}_tryNext(L){const ce=this.index++;let W;try{W=this.accumulator(this.seed,L,ce)}catch(G){this.destination.error(G)}this.seed=W,this.destination.next(W)}}},8117:(Qt,Z,S)=>{"use strict";S.d(Z,{B:()=>D});var s=S(2536),_=S(4327),y=S(8929);function j(){return new y.xQ}function D(){return L=>(0,_.x)()((0,s.O)(j)(L))}},96:(Qt,Z,S)=>{"use strict";S.d(Z,{d:()=>G});var s=S(8929),_=S(341),y=S(2654),j=S(7770),D=S(5279),L=S(5283);class ce extends s.xQ{constructor(le=Number.POSITIVE_INFINITY,J=Number.POSITIVE_INFINITY,Me){super(),this.scheduler=Me,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=le<1?1:le,this._windowTime=J<1?1:J,J===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(le){if(!this.isStopped){const J=this._events;J.push(le),J.length>this._bufferSize&&J.shift()}super.next(le)}nextTimeWindow(le){this.isStopped||(this._events.push(new W(this._getNow(),le)),this._trimBufferThenGetEvents()),super.next(le)}_subscribe(le){const J=this._infiniteTimeWindow,Me=J?this._events:this._trimBufferThenGetEvents(),Re=this.scheduler,me=Me.length;let Q;if(this.closed)throw new D.N;if(this.isStopped||this.hasError?Q=y.w.EMPTY:(this.observers.push(le),Q=new L.W(this,le)),Re&&le.add(le=new j.ht(le,Re)),J)for(let P=0;P<me&&!le.closed;P++)le.next(Me[P]);else for(let P=0;P<me&&!le.closed;P++)le.next(Me[P].value);return this.hasError?le.error(this.thrownError):this.isStopped&&le.complete(),Q}_getNow(){return(this.scheduler||_.c).now()}_trimBufferThenGetEvents(){const le=this._getNow(),J=this._bufferSize,Me=this._windowTime,Re=this._events,me=Re.length;let Q=0;for(;Q<me&&!(le-Re[Q].time<Me);)Q++;return me>J&&(Q=Math.max(Q,me-J)),Q>0&&Re.splice(0,Q),Re}}class W{constructor(le,J){this.time=le,this.value=J}}function G(te,le,J){let Me;return Me=te&&"object"==typeof te?te:{bufferSize:te,windowTime:le,refCount:!1,scheduler:J},Re=>Re.lift(function $({bufferSize:te=Number.POSITIVE_INFINITY,windowTime:le=Number.POSITIVE_INFINITY,refCount:J,scheduler:Me}){let Re,Q,me=0,P=!1,N=!1;return function(de){let re;me++,!Re||P?(P=!1,Re=new ce(te,le,Me),re=Re.subscribe(this),Q=de.subscribe({next(V){Re.next(V)},error(V){P=!0,Re.error(V)},complete(){N=!0,Q=void 0,Re.complete()}}),N&&(Q=void 0)):re=Re.subscribe(this),this.add(()=>{me--,re.unsubscribe(),re=void 0,Q&&!N&&J&&0===me&&(Q.unsubscribe(),Q=void 0,Re=void 0)})}}(Me))}},1307:(Qt,Z,S)=>{"use strict";S.d(Z,{T:()=>_});var s=S(3489);function _(D){return L=>L.lift(new y(D))}class y{constructor(L){this.total=L}call(L,ce){return ce.subscribe(new j(L,this.total))}}class j extends s.L{constructor(L,ce){super(L),this.total=ce,this.count=0}_next(L){++this.count>this.total&&this.destination.next(L)}}},1059:(Qt,Z,S)=>{"use strict";S.d(Z,{O:()=>y});var s=S(1221),_=S(2866);function y(...j){const D=j[j.length-1];return(0,_.K)(D)?(j.pop(),L=>(0,s.z)(j,L,D)):L=>(0,s.z)(j,L)}},3334:(Qt,Z,S)=>{"use strict";S.d(Z,{R:()=>D});var s=S(6498),_=S(8139),y=S(4241);
1class j extends s.y{constructor(W,G=0,$=_.e){super(),this.source=W,this.delayTime=G,this.scheduler=$,(!(0,y.k)(G)||G<0)&&(this.delayTime=0),(!$||"function"!=typeof $.schedule)&&(this.scheduler=_.e)}static create(W,G=0,$=_.e){return new j(W,G,$)}static dispatch(W){const{source:G,subscriber:$}=W;return this.add(G.subscribe($))}_subscribe(W){return this.scheduler.schedule(j.dispatch,this.delayTime,{source:this.source,subscriber:W})}}function D(ce,W=0){return function($){return $.lift(new L(ce,W))}}class L{constructor(W,G){this.scheduler=W,this.delay=G}call(W,G){return new j(G,this.delay,this.scheduler).subscribe(W)}}},7545:(Qt,Z,S)=>{"use strict";S.d(Z,{w:()=>j});var s=S(4850),_=S(5254),y=S(1177);function j(ce,W){return"function"==typeof W?G=>G.pipe(j(($,te)=>(0,_.D)(ce($,te)).pipe((0,s.U)((le,J)=>W($,le,te,J))))):G=>G.lift(new D(ce))}class D{constructor(W){this.project=W}call(W,G){return G.subscribe(new L(W,this.project))}}class L extends y.Ds{constructor(W,G){super(W),this.project=G,this.index=0}_next(W){let G;const $=this.index++;try{G=this.project(W,$)}catch(te){return void this.destination.error(te)}this._innerSub(G)}_innerSub(W){const G=this.innerSubscription;G&&G.unsubscribe();const $=new y.IY(this),te=this.destination;te.add($),this.innerSubscription=(0,y.ft)(W,$),this.innerSubscription!==$&&te.add(this.innerSubscription)}_complete(){const{innerSubscription:W}=this;(!W||W.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(W){this.destination.next(W)}}},2986:(Qt,Z,S)=>{"use strict";S.d(Z,{q:()=>j});var s=S(3489),_=S(4231),y=S(8896);function j(ce){return W=>0===ce?(0,y.c)():W.lift(new D(ce))}class D{constructor(W){if(this.total=W,this.total<0)throw new _.W}call(W,G){return G.subscribe(new L(W,this.total))}}class L extends s.L{constructor(W,G){super(W),this.total=G,this.count=0}_next(W){const G=this.total,$=++this.count;$<=G&&(this.destination.next(W),$===G&&(this.destination.complete(),this.unsubscribe()))}}},2821:(Qt,Z,S)=>{"use strict";S.d(Z,{h:()=>j});var s=S(3489),_=S(4231),y=S(8896);function j(ce){return function(G){return 0===ce?(0,y.c)():G.lift(new D(ce))}}class D{constructor(W){if(this.total=W,this.total<0)throw new _.W}call(W,G){return G.subscribe(new L(W,this.total))}}class L extends s.L{constructor(W,G){super(W),this.total=G,this.ring=new Array,this.count=0}_next(W){const G=this.ring,$=this.total,te=this.count++;G.length<$?G.push(W):G[te%$]=W}_complete(){const W=this.destination;let G=this.count;if(G>0){const $=this.count>=this.total?this.total:this.count,te=this.ring;for(let le=0;le<$;le++){const J=G++%$;W.next(te[J])}}W.complete()}}},7625:(Qt,Z,S)=>{"use strict";S.d(Z,{R:()=>_});var s=S(1177);function _(D){return L=>L.lift(new y(D))}class y{constructor(L){this.notifier=L}call(L,ce){const W=new j(L),G=(0,s.ft)(this.notifier,new s.IY(W));return G&&!W.seenValue?(W.add(G),ce.subscribe(W)):W}}class j extends s.Ds{constructor(L){super(L),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2868:(Qt,Z,S)=>{"use strict";S.d(Z,{b:()=>j});var s=S(3489);function _(){}var y=S(7043);function j(ce,W,G){return function(te){return te.lift(new D(ce,W,G))}}class D{constructor(W,G,$){this.nextOrObserver=W,this.error=G,this.complete=$}call(W,G){return G.subscribe(new L(W,this.nextOrObserver,this.error,this.complete))}}class L extends s.L{constructor(W,G,$,te){super(W),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=$||_,this._tapComplete=te||_,(0,y.m)(G)?(this._context=this,this._tapNext=G):G&&(this._context=G,this._tapNext=G.next||_,this._tapError=G.error||_,this._tapComplete=G.complete||_)}_next(W){try{this._tapNext.call(this._context,W)}catch(G){return void this.destination.error(G)}this.destination.next(W)}_error(W){try{this._tapError.call(this._context,W)}catch(G){return void this.destination.error(G)}this.destination.error(W)}_complete(){try{this._tapComplete.call(this._context)}catch(W){return void this.destination.error(W)}return this.destination.complete()}}},2444:(Qt,Z,S)=>{"use strict";S.d(Z,{P:()=>y});var s=S(1177);const _={leading:!0,trailing:!1};function y(L,ce=_){return W=>W.lift(new j(L,!!ce.leading,!!ce.trailing))}class j{constructor(ce,W,G){this.durationSelector=ce,this.leading=W,this.trailing=G}call(ce,W){return W.subscribe(new D(ce,this.durationSelector,this.leading,this.trailing))}}class D extends s.Ds{constructor(ce,W,G,$){super(ce),this.destination=ce,this.durationSelector=W,this._leading=G,this._trailing=$,this._hasValue=!1}_next(ce){this._hasValue=!0,this._sendValue=ce,this._throttled||(this._leading?this.send():this.throttle(ce))}send(){const{_hasValue:ce,_sendValue:W}=this;ce&&(this.destination.next(W),this.throttle(W)),this._hasValue=!1,this._sendValue=void 0}throttle(ce){const W=this.tryDurationSelector(ce);W&&this.add(this._throttled=(0,s.ft)(W,new s.IY(this)))}tryDurationSelector(ce){try{return this.durationSelector(ce)}catch(W){return this.destination.error(W),null}}throttlingDone(){const{_throttled:ce,_trailing:W}=this;ce&&ce.unsubscribe(),this._throttled=void 0,W&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}},4907:(Qt,Z,S)=>{"use strict";S.d(Z,{T:()=>y});var s=S(4450),_=S(3489);function y(ce=L){return W=>W.lift(new j(ce))}class j{constructor(W){this.errorFactory=W}
1call(W,G){return G.subscribe(new D(W,this.errorFactory))}}class D extends _.L{constructor(W,G){super(W),this.errorFactory=G,this.hasValue=!1}_next(W){this.hasValue=!0,this.destination.next(W)}_complete(){if(this.hasValue)return this.destination.complete();{let W;try{W=this.errorFactory()}catch(G){W=G}this.destination.error(W)}}}function L(){return new s.K}},1168:(Qt,Z,S)=>{"use strict";S.d(Z,{V:()=>G});var s=S(353),_=S(854),y=S(2697),j=S(1177);class L{constructor(te,le,J,Me){this.waitFor=te,this.absoluteTimeout=le,this.withObservable=J,this.scheduler=Me}call(te,le){return le.subscribe(new ce(te,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class ce extends j.Ds{constructor(te,le,J,Me,Re){super(te),this.absoluteTimeout=le,this.waitFor=J,this.withObservable=Me,this.scheduler=Re,this.scheduleTimeout()}static dispatchTimeout(te){const{withObservable:le}=te;te._unsubscribeAndRecycle(),te.add((0,j.ft)(le,new j.IY(te)))}scheduleTimeout(){const{action:te}=this;te?this.action=te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(ce.dispatchTimeout,this.waitFor,this))}_next(te){this.absoluteTimeout||this.scheduleTimeout(),super._next(te)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var W=S(1737);function G($,te=s.P){return function D($,te,le=s.P){return J=>{let Me=(0,y.J)($),Re=Me?+$-le.now():Math.abs($);return J.lift(new L(Re,Me,te,le))}}($,(0,W._)(new _.W),te)}},6454:(Qt,Z,S)=>{"use strict";S.d(Z,{r:()=>y});var s=S(6498),_=S(2654);function y(j,D){return new s.y(L=>{const ce=new _.w;let W=0;return ce.add(D.schedule(function(){W!==j.length?(L.next(j[W++]),L.closed||ce.add(this.schedule())):L.complete()})),ce})}},6686:(Qt,Z,S)=>{"use strict";S.d(Z,{o:()=>y});var s=S(2654);class _ extends s.w{constructor(D,L){super()}schedule(D,L=0){return this}}class y extends _{constructor(D,L){super(D,L),this.scheduler=D,this.work=L,this.pending=!1}schedule(D,L=0){if(this.closed)return this;this.state=D;const ce=this.id,W=this.scheduler;return null!=ce&&(this.id=this.recycleAsyncId(W,ce,L)),this.pending=!0,this.delay=L,this.id=this.id||this.requestAsyncId(W,this.id,L),this}requestAsyncId(D,L,ce=0){return setInterval(D.flush.bind(D,this),ce)}recycleAsyncId(D,L,ce=0){if(null!==ce&&this.delay===ce&&!1===this.pending)return L;clearInterval(L)}execute(D,L){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ce=this._execute(D,L);if(ce)return ce;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,L){let W,ce=!1;try{this.work(D)}catch(G){ce=!0,W=!!G&&G||new Error(G)}if(ce)return this.unsubscribe(),W}_unsubscribe(){const D=this.id,L=this.scheduler,ce=L.actions,W=ce.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==W&&ce.splice(W,1),null!=D&&(this.id=this.recycleAsyncId(L,D,null)),this.delay=null}}},2268:(Qt,Z,S)=>{"use strict";S.d(Z,{v:()=>_});let s=(()=>{class y{constructor(D,L=y.now){this.SchedulerAction=D,this.now=L}schedule(D,L=0,ce){return new this.SchedulerAction(this,D).schedule(ce,L)}}return y.now=()=>Date.now(),y})();class _ extends s{constructor(j,D=s.now){super(j,()=>_.delegate&&_.delegate!==this?_.delegate.now():D()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,D=0,L){return _.delegate&&_.delegate!==this?_.delegate.schedule(j,D,L):super.schedule(j,D,L)}flush(j){const{actions:D}=this;if(this.active)return void D.push(j);let L;this.active=!0;do{if(L=j.execute(j.state,j.delay))break}while(j=D.shift());if(this.active=!1,L){for(;j=D.shift();)j.unsubscribe();throw L}}}},352:(Qt,Z,S)=>{"use strict";S.d(Z,{Z:()=>D});var s=S(6686),y=S(2268);const D=new class j extends y.v{flush(W){this.active=!0,this.scheduled=void 0;const{actions:G}=this;let $,te=-1,le=G.length;W=W||G.shift();do{if($=W.execute(W.state,W.delay))break}while(++te<le&&(W=G.shift()));if(this.active=!1,$){for(;++te<le&&(W=G.shift());)W.unsubscribe();throw $}}}(class _ extends s.o{constructor(W,G){super(W,G),this.scheduler=W,this.work=G}requestAsyncId(W,G,$=0){return null!==$&&$>0?super.requestAsyncId(W,G,$):(W.actions.push(this),W.scheduled||(W.scheduled=requestAnimationFrame(()=>W.flush(null))))}recycleAsyncId(W,G,$=0){if(null!==$&&$>0||null===$&&this.delay>0)return super.recycleAsyncId(W,G,$);0===W.actions.length&&(cancelAnimationFrame(G),W.scheduled=void 0)}})},8139:(Qt,Z,S)=>{"use strict";S.d(Z,{e:()=>le,E:()=>te});let s=1;const _=Promise.resolve(),y={};function j(J){return J in y&&(delete y[J],!0)}const D={setImmediate(J){const Me=s++;return y[Me]=!0,_.then(()=>j(Me)&&J()),Me},clearImmediate(J){j(J)}};var ce=S(6686),G=S(2268);const te=new class $ extends G.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:Re}=this;let me,Q=-1,P=Re.length;Me=Me||Re.shift();do{if(me=Me.execute(Me.state,Me.delay))break}
1while(++Q<P&&(Me=Re.shift()));if(this.active=!1,me){for(;++Q<P&&(Me=Re.shift());)Me.unsubscribe();throw me}}}(class W extends ce.o{constructor(Me,Re){super(Me,Re),this.scheduler=Me,this.work=Re}requestAsyncId(Me,Re,me=0){return null!==me&&me>0?super.requestAsyncId(Me,Re,me):(Me.actions.push(this),Me.scheduled||(Me.scheduled=D.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,Re,me=0){if(null!==me&&me>0||null===me&&this.delay>0)return super.recycleAsyncId(Me,Re,me);0===Me.actions.length&&(D.clearImmediate(Re),Me.scheduled=void 0)}}),le=te},353:(Qt,Z,S)=>{"use strict";S.d(Z,{P:()=>j,z:()=>y});var s=S(6686);const y=new(S(2268).v)(s.o),j=y},341:(Qt,Z,S)=>{"use strict";S.d(Z,{c:()=>L,N:()=>D});var s=S(6686),y=S(2268);const D=new class j extends y.v{}(class _ extends s.o{constructor(W,G){super(W,G),this.scheduler=W,this.work=G}schedule(W,G=0){return G>0?super.schedule(W,G):(this.delay=G,this.state=W,this.scheduler.flush(this),this)}execute(W,G){return G>0||this.closed?super.execute(W,G):this._execute(W,G)}requestAsyncId(W,G,$=0){return null!==$&&$>0||null===$&&this.delay>0?super.requestAsyncId(W,G,$):W.flush(this)}}),L=D},5430:(Qt,Z,S)=>{"use strict";S.d(Z,{hZ:()=>_});const _=function s(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Qt,Z,S)=>{"use strict";S.d(Z,{L:()=>s});const s="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Qt,Z,S)=>{"use strict";S.d(Z,{b:()=>s});const s="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Qt,Z,S)=>{"use strict";S.d(Z,{W:()=>_});const _=(()=>{function y(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return y.prototype=Object.create(Error.prototype),y})()},4450:(Qt,Z,S)=>{"use strict";S.d(Z,{K:()=>_});const _=(()=>{function y(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return y.prototype=Object.create(Error.prototype),y})()},5279:(Qt,Z,S)=>{"use strict";S.d(Z,{N:()=>_});const _=(()=>{function y(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return y.prototype=Object.create(Error.prototype),y})()},854:(Qt,Z,S)=>{"use strict";S.d(Z,{W:()=>_});const _=(()=>{function y(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return y.prototype=Object.create(Error.prototype),y})()},2782:(Qt,Z,S)=>{"use strict";function s(_){setTimeout(()=>{throw _},0)}S.d(Z,{z:()=>s})},5379:(Qt,Z,S)=>{"use strict";function s(_){return _}S.d(Z,{y:()=>s})},6688:(Qt,Z,S)=>{"use strict";S.d(Z,{k:()=>s});const s=Array.isArray||(_=>_&&"number"==typeof _.length)},8515:(Qt,Z,S)=>{"use strict";S.d(Z,{z:()=>s});const s=_=>_&&"number"==typeof _.length&&"function"!=typeof _},2697:(Qt,Z,S)=>{"use strict";function s(_){return _ instanceof Date&&!isNaN(+_)}S.d(Z,{J:()=>s})},7043:(Qt,Z,S)=>{"use strict";function s(_){return"function"==typeof _}S.d(Z,{m:()=>s})},4241:(Qt,Z,S)=>{"use strict";S.d(Z,{k:()=>_});var s=S(6688);function _(y){return!(0,s.k)(y)&&y-parseFloat(y)+1>=0}},7830:(Qt,Z,S)=>{"use strict";function s(_){return null!==_&&"object"==typeof _}S.d(Z,{K:()=>s})},4715:(Qt,Z,S)=>{"use strict";S.d(Z,{b:()=>_});var s=S(6498);function _(y){return!!y&&(y instanceof s.y||"function"==typeof y.lift&&"function"==typeof y.subscribe)}},8955:(Qt,Z,S)=>{"use strict";function s(_){return!!_&&"function"!=typeof _.subscribe&&"function"==typeof _.then}S.d(Z,{t:()=>s})},2866:(Qt,Z,S)=>{"use strict";function s(_){return _&&"function"==typeof _.schedule}S.d(Z,{K:()=>s})},4843:(Qt,Z,S)=>{"use strict";S.d(Z,{U:()=>y,z:()=>_});var s=S(5379);function _(...j){return y(j)}function y(j){return 0===j.length?s.y:1===j.length?j[0]:function(L){return j.reduce((ce,W)=>W(ce),L)}}},9249:(Qt,Z,S)=>{"use strict";S.d(Z,{s:()=>te});var s=S(3650),_=S(2782),j=S(5430),L=S(3821),W=S(8515),G=S(8955),$=S(7830);const te=le=>{if(le&&"function"==typeof le[L.L])return(le=>J=>{const Me=le[L.L]();if("function"!=typeof Me.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Me.subscribe(J)})(le);if((0,W.z)(le))return(0,s.V)(le);if((0,G.t)(le))return(le=>J=>(le.then(Me=>{J.closed||(J.next(Me),J.complete())},Me=>J.error(Me)).then(null,_.z),J))(le);if(le&&"function"==typeof le[j.hZ])return(le=>J=>{const Me=le[j.hZ]();for(;;){let Re;try{Re=Me.next()}catch(me){return J.error(me),J}if(Re.done){J.complete();break}if(J.next(Re.value),J.closed)break}return"function"==typeof Me.return&&J.add(()=>{Me.return&&Me.return()}),J})(le);
1{const Me=`You provided ${(0,$.K)(le)?"an invalid object":`'${le}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Me)}}},3650:(Qt,Z,S)=>{"use strict";S.d(Z,{V:()=>s});const s=_=>y=>{for(let j=0,D=_.length;j<D&&!y.closed;j++)y.next(_[j]);y.complete()}},448:(Qt,Z,S)=>{"use strict";S.d(Z,{D:()=>D});var s=S(3489);class _ extends s.L{constructor(ce,W,G){super(),this.parent=ce,this.outerValue=W,this.outerIndex=G,this.index=0}_next(ce){this.parent.notifyNext(this.outerValue,ce,this.outerIndex,this.index++,this)}_error(ce){this.parent.notifyError(ce,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var y=S(9249),j=S(6498);function D(L,ce,W,G,$=new _(L,W,G)){if(!$.closed)return ce instanceof j.y?ce.subscribe($):(0,y.s)(ce)($)}},8926:Qt=>{function Z(s,_,y,j,D,L,ce){try{var W=s[L](ce),G=W.value}catch($){return void y($)}W.done?_(G):Promise.resolve(G).then(j,D)}Qt.exports=function S(s){return function(){var _=this,y=arguments;return new Promise(function(j,D){var L=s.apply(_,y);function ce(G){Z(L,j,D,ce,W,"next",G)}function W(G){Z(L,j,D,ce,W,"throw",G)}ce(void 0)})}},Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports},9628:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},7754:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},4255:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},617:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},2472:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},1175:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},2027:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},8713:(Qt,Z,S)=>{"use strict";S.r(Z),S.d(Z,{__assign:()=>y,__asyncDelegator:()=>P,__asyncGenerator:()=>Q,__asyncValues:()=>N,__await:()=>me,__awaiter:()=>W,__classPrivateFieldGet:()=>V,__classPrivateFieldSet:()=>ne,__createBinding:()=>$,__decorate:()=>D,__exportStar:()=>te,__extends:()=>_,__generator:()=>G,__importDefault:()=>re,__importStar:()=>
vendor: 4,350 bytes, line 1
1de,__makeTemplateObject:()=>Y,__metadata:()=>ce,__param:()=>L,__read:()=>J,__rest:()=>j,__spread:()=>Me,__spreadArrays:()=>Re,__values:()=>le});var s=function(E,M){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,R){A.__proto__=R}||function(A,R){for(var ee in R)R.hasOwnProperty(ee)&&(A[ee]=R[ee])})(E,M)};function _(E,M){function A(){this.constructor=E}s(E,M),E.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)}var y=function(){return y=Object.assign||function(M){for(var A,R=1,ee=arguments.length;R<ee;R++)for(var B in A=arguments[R])Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B]);return M},y.apply(this,arguments)};function j(E,M){var A={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&M.indexOf(R)<0&&(A[R]=E[R]);if(null!=E&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(R=Object.getOwnPropertySymbols(E);ee<R.length;ee++)M.indexOf(R[ee])<0&&Object.prototype.propertyIsEnumerable.call(E,R[ee])&&(A[R[ee]]=E[R[ee]])}return A}function D(E,M,A,R){var K,ee=arguments.length,B=ee<3?M:null===R?R=Object.getOwnPropertyDescriptor(M,A):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)B=Reflect.decorate(E,M,A,R);else for(var ge=E.length-1;ge>=0;ge--)(K=E[ge])&&(B=(ee<3?K(B):ee>3?K(M,A,B):K(M,A))||B);return ee>3&&B&&Object.defineProperty(M,A,B),B}function L(E,M){return function(A,R){M(A,R,E)}}function ce(E,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(E,M)}function W(E,M,A,R){return new(A||(A=Promise))(function(B,K){function ge(fe){try{he(R.next(fe))}catch(Ie){K(Ie)}}function Fe(fe){try{he(R.throw(fe))}catch(Ie){K(Ie)}}function he(fe){fe.done?B(fe.value):function ee(B){return B instanceof A?B:new A(function(K){K(B)})}(fe.value).then(ge,Fe)}he((R=R.apply(E,M||[])).next())})}function G(E,M){var R,ee,B,K,A={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return K={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(K[Symbol.iterator]=function(){return this}),K;function ge(he){return function(fe){return function Fe(he){if(R)throw new TypeError("Generator is already executing.");for(;A;)try{if(R=1,ee&&(B=2&he[0]?ee.return:he[0]?ee.throw||((B=ee.return)&&B.call(ee),0):ee.next)&&!(B=B.call(ee,he[1])).done)return B;switch(ee=0,B&&(he=[2&he[0],B.value]),he[0]){case 0:case 1:B=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,ee=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(B=(B=A.trys).length>0&&B[B.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!B||he[1]>B[0]&&he[1]<B[3])){A.label=he[1];break}if(6===he[0]&&A.label<B[1]){A.label=B[1],B=he;break}if(B&&A.label<B[2]){A.label=B[2],A.ops.push(he);break}B[2]&&A.ops.pop(),A.trys.pop();continue}he=M.call(E,A)}catch(fe){he=[6,fe],ee=0}finally{R=B=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,fe])}}}function $(E,M,A,R){void 0===R&&(R=A),E[R]=M[A]}function te(E,M){for(var A in E)"default"!==A&&!M.hasOwnProperty(A)&&(M[A]=E[A])}function le(E){var M="function"==typeof Symbol&&Symbol.iterator,A=M&&E[M],R=0;if(A)return A.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&R>=E.length&&(E=void 0),{value:E&&E[R++],done:!E}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(E,M){var A="function"==typeof Symbol&&E[Symbol.iterator];if(!A)return E;var ee,K,R=A.call(E),B=[];try{for(;(void 0===M||M-- >0)&&!(ee=R.next()).done;)B.push(ee.value)}catch(ge){K={error:ge}}finally{try{ee&&!ee.done&&(A=R.return)&&A.call(R)}finally{if(K)throw K.error}}return B}function Me(){for(var E=[],M=0;M<arguments.length;M++)E=E.concat(J(arguments[M]));return E}function Re(){for(var E=0,M=0,A=arguments.length;M<A;M++)E+=arguments[M].length;var R=Array(E),ee=0;for(M=0;M<A;M++)for(var B=arguments[M],K=0,ge=B.length;K<ge;K++,ee++)R[ee]=B[K];return R}function me(E){return this instanceof me?(this.v=E,this):new me(E)}function Q(E,M,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,R=A.apply(E,M||[]),B=[];return ee={},K("next"),K("throw"),K("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function K(Se){R[Se]&&(ee[Se]=function(pe){return new Promise(function(ke,ae){B.push([Se,pe,ke,ae])>1||ge(Se,pe)})})}
vendor: 4,073 bytes, line 1
1function ge(Se,pe){try{!function Fe(Se){Se.value instanceof me?Promise.resolve(Se.value.v).then(he,fe):Ie(B[0][2],Se)}(R[Se](pe))}catch(ke){Ie(B[0][3],ke)}}function he(Se){ge("next",Se)}function fe(Se){ge("throw",Se)}function Ie(Se,pe){Se(pe),B.shift(),B.length&&ge(B[0][0],B[0][1])}}function P(E){var M,A;return M={},R("next"),R("throw",function(ee){throw ee}),R("return"),M[Symbol.iterator]=function(){return this},M;function R(ee,B){M[ee]=E[ee]?function(K){return(A=!A)?{value:me(E[ee](K)),done:"return"===ee}:B?B(K):K}:B}}function N(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,M=E[Symbol.asyncIterator];return M?M.call(E):(E=le(E),A={},R("next"),R("throw"),R("return"),A[Symbol.asyncIterator]=function(){return this},A);function R(B){A[B]=E[B]&&function(K){return new Promise(function(ge,Fe){!function ee(B,K,ge,Fe){Promise.resolve(Fe).then(function(he){B({value:he,done:ge})},K)}(ge,Fe,(K=E[B](K)).done,K.value)})}}}function Y(E,M){return Object.defineProperty?Object.defineProperty(E,"raw",{value:M}):E.raw=M,E}function de(E){if(E&&E.__esModule)return E;var M={};if(null!=E)for(var A in E)Object.hasOwnProperty.call(E,A)&&(M[A]=E[A]);return M.default=E,M}function re(E){return E&&E.__esModule?E:{default:E}}function V(E,M){if(!M.has(E))throw new TypeError("attempted to get private field on non-instance");return M.get(E)}function ne(E,M,A){if(!M.has(E))throw new TypeError("attempted to set private field on non-instance");return M.set(E,A),A}},1777:(Qt,Z,S)=>{"use strict";S.d(Z,{F4:()=>$,IO:()=>Re,LC:()=>_,SB:()=>G,X$:()=>j,ZE:()=>N,ZN:()=>P,_j:()=>s,eR:()=>te,jt:()=>D,k1:()=>Y,l3:()=>y,oB:()=>W,pV:()=>J,ru:()=>L,vP:()=>ce});class s{}class _{}const y="*";function j(de,re){return{type:7,name:de,definitions:re,options:{}}}function D(de,re=null){return{type:4,styles:re,timings:de}}function L(de,re=null){return{type:3,steps:de,options:re}}function ce(de,re=null){return{type:2,steps:de,options:re}}function W(de){return{type:6,styles:de,offset:null}}function G(de,re,V){return{type:0,name:de,styles:re,options:V}}function $(de){return{type:5,steps:de}}function te(de,re,V=null){return{type:1,expr:de,animation:re,options:V}}function J(de=null){return{type:9,options:de}}function Re(de,re,V=null){return{type:11,selector:de,animation:re,options:V}}function Q(de){Promise.resolve(null).then(de)}class P{constructor(re=0,V=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=re+V}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}onStart(re){this._onStartFns.push(re)}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Q(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(re=>re()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(re){this._position=this.totalTime?re*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(re){const V="start"==re?this._onStartFns:this._onDoneFns;V.forEach(ne=>ne()),V.length=0}}class N{constructor(re){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=re;let V=0,ne=0,E=0;const M=this.players.length;0==M?Q(()=>this._onFinish()):this.players.forEach(A=>{A.onDone(()=>{++V==M&&this._onFinish()}),A.onDestroy(()=>{++ne==M&&this._onDestroy()}),A.onStart(()=>{++E==M&&this._onStart()})}),this.totalTime=this.players.reduce((A,R)=>Math.max(A,R.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}
1init(){this.players.forEach(re=>re.init())}onStart(re){this._onStartFns.push(re)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(re=>re()),this._onStartFns=[])}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(re=>re.play())}pause(){this.players.forEach(re=>re.pause())}restart(){this.players.forEach(re=>re.restart())}finish(){this._onFinish(),this.players.forEach(re=>re.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(re=>re.destroy()),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this.players.forEach(re=>re.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(re){const V=re*this.totalTime;this.players.forEach(ne=>{const E=ne.totalTime?Math.min(1,V/ne.totalTime):1;ne.setPosition(E)})}getPosition(){const re=this.players.reduce((V,ne)=>null===V||ne.totalTime>V.totalTime?ne:V,null);return null!=re?re.getPosition():0}beforeDestroy(){this.players.forEach(re=>{re.beforeDestroy&&re.beforeDestroy()})}triggerCallback(re){const V="start"==re?this._onStartFns:this._onDoneFns;V.forEach(ne=>ne()),V.length=0}}const Y="!"},5664:(Qt,Z,S)=>{"use strict";S.d(Z,{$s:()=>A,Em:()=>ge,Kd:()=>Rt,X6:()=>ln,ic:()=>he,kH:()=>Zn,mK:()=>ht,qV:()=>Ft,qm:()=>Yt,rt:()=>Rn,s1:()=>K,tE:()=>Gn,yG:()=>Jt});var s=S(9808),_=S(5e3),y=S(925),j=S(8929),D=S(2654),L=S(591),ce=S(1086),W=S(1159),G=S(2868),$=S(13),te=S(2198),le=S(4850),J=S(2986),Me=S(1307),Re=S(5778),me=S(7625),Q=S(3191),P=S(7144);function re(Mt,kt){return(Mt.getAttribute(kt)||"").match(/\S+/g)||[]}const ne="cdk-describedby-message",E="cdk-describedby-host";let M=0,A=(()=>{class Mt{constructor(We,Ue){this._platform=Ue,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+M++,this._document=We}describe(We,Ue,Qe){if(!this._canBeDescribed(We,Ue))return;const Lt=R(Ue,Qe);"string"!=typeof Ue?(ee(Ue),this._messageRegistry.set(Lt,{messageElement:Ue,referenceCount:0})):this._messageRegistry.has(Lt)||this._createMessageElement(Ue,Qe),this._isElementDescribedByMessage(We,Lt)||this._addMessageReference(We,Lt)}removeDescription(We,Ue,Qe){var Lt;if(!Ue||!this._isElementNode(We))return;const xt=R(Ue,Qe);if(this._isElementDescribedByMessage(We,xt)&&this._removeMessageReference(We,xt),"string"==typeof Ue){const Gt=this._messageRegistry.get(xt);Gt&&0===Gt.referenceCount&&this._deleteMessageElement(xt)}0===(null===(Lt=this._messagesContainer)||void 0===Lt?void 0:Lt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var We;const Ue=this._document.querySelectorAll(`[${E}="${this._id}"]`);for(let Qe=0;Qe<Ue.length;Qe++)this._removeCdkDescribedByReferenceIds(Ue[Qe]),Ue[Qe].removeAttribute(E);null===(We=this._messagesContainer)||void 0===We||We.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(We,Ue){const Qe=this._document.createElement("div");ee(Qe),Qe.textContent=We,Ue&&Qe.setAttribute("role",Ue),this._createMessagesContainer(),this._messagesContainer.appendChild(Qe),this._messageRegistry.set(R(We,Ue),{messageElement:Qe,referenceCount:0})}_deleteMessageElement(We){var Ue,Qe;null===(Qe=null===(Ue=this._messageRegistry.get(We))||void 0===Ue?void 0:Ue.messageElement)||void 0===Qe||Qe.remove(),this._messageRegistry.delete(We)}_createMessagesContainer(){if(this._messagesContainer)return;const We="cdk-describedby-message-container",Ue=this._document.querySelectorAll(`.${We}[platform="server"]`);for(let Lt=0;Lt<Ue.length;Lt++)Ue[Lt].remove();const Qe=this._document.createElement("div");Qe.style.visibility="hidden",Qe.classList.add(We),Qe.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Qe.setAttribute("platform","server"),this._document.body.appendChild(Qe),this._messagesContainer=Qe}_removeCdkDescribedByReferenceIds(We){const Ue=re(We,"aria-describedby").filter(Qe=>0!=Qe.indexOf(ne));We.setAttribute("aria-describedby",Ue.join(" "))}_addMessageReference(We,Ue){const Qe=this._messageRegistry.get(Ue);(function Y(Mt,kt,We){const Ue=re(Mt,kt);Ue.some(Qe=>Qe.trim()==We.trim())||(Ue.push(We.trim()),Mt.setAttribute(kt,Ue.join(" ")))})(We,"aria-describedby",Qe.messageElement.id),We.setAttribute(E,this._id),Qe.referenceCount++}_removeMessageReference(We,Ue){const Qe=this._messageRegistry.get(Ue);Qe.referenceCount--,function de(Mt,kt,We){const Qe=re(Mt,kt).filter(Lt=>Lt!=We.trim());Qe.length?Mt.setAttribute(kt,Qe.join(" ")):Mt.removeAttribute(kt)}(We,"aria-describedby",Qe.messageElement.id),We.removeAttribute(E)}_isElementDescribedByMessage(We,Ue){const Qe=re(We,"aria-describedby"),Lt=this._messageRegistry.get(Ue),xt=Lt&&Lt.messageElement.id;return!!xt&&-1!=Qe.indexOf(xt)}_canBeDescribed(We,Ue){if(!this._isElementNode(We))return!1;if(Ue&&"object"==typeof Ue)return!0;const Qe=null==Ue?"":`${Ue}`.trim(),Lt=We.getAttribute("aria-label");
1return!(!Qe||Lt&&Lt.trim()===Qe)}_isElementNode(We){return We.nodeType===this._document.ELEMENT_NODE}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(s.K0),_.LFG(y.t4))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();function R(Mt,kt){return"string"==typeof Mt?`${kt||""}/${Mt}`:Mt}function ee(Mt){Mt.id||(Mt.id=`${ne}-${M++}`)}class B{constructor(kt){this._items=kt,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new j.xQ,this._typeaheadSubscription=D.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=We=>We.disabled,this._pressedLetters=[],this.tabOut=new j.xQ,this.change=new j.xQ,kt instanceof _.n_E&&kt.changes.subscribe(We=>{if(this._activeItem){const Qe=We.toArray().indexOf(this._activeItem);Qe>-1&&Qe!==this._activeItemIndex&&(this._activeItemIndex=Qe)}})}skipPredicate(kt){return this._skipPredicateFn=kt,this}withWrap(kt=!0){return this._wrap=kt,this}withVerticalOrientation(kt=!0){return this._vertical=kt,this}withHorizontalOrientation(kt){return this._horizontal=kt,this}withAllowedModifierKeys(kt){return this._allowedModifierKeys=kt,this}withTypeAhead(kt=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,G.b)(We=>this._pressedLetters.push(We)),(0,$.b)(kt),(0,te.h)(()=>this._pressedLetters.length>0),(0,le.U)(()=>this._pressedLetters.join(""))).subscribe(We=>{const Ue=this._getItemsArray();for(let Qe=1;Qe<Ue.length+1;Qe++){const Lt=(this._activeItemIndex+Qe)%Ue.length,xt=Ue[Lt];if(!this._skipPredicateFn(xt)&&0===xt.getLabel().toUpperCase().trim().indexOf(We)){this.setActiveItem(Lt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(kt=!0){return this._homeAndEnd=kt,this}setActiveItem(kt){const We=this._activeItem;this.updateActiveItem(kt),this._activeItem!==We&&this.change.next(this._activeItemIndex)}onKeydown(kt){const We=kt.keyCode,Qe=["altKey","ctrlKey","metaKey","shiftKey"].every(Lt=>!kt[Lt]||this._allowedModifierKeys.indexOf(Lt)>-1);switch(We){case W.Mf:return void this.tabOut.next();case W.JH:if(this._vertical&&Qe){this.setNextItemActive();break}return;case W.LH:if(this._vertical&&Qe){this.setPreviousItemActive();break}return;case W.SV:if(this._horizontal&&Qe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case W.oh:if(this._horizontal&&Qe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case W.Sd:if(this._homeAndEnd&&Qe){this.setFirstItemActive();break}return;case W.uR:if(this._homeAndEnd&&Qe){this.setLastItemActive();break}return;default:return void((Qe||(0,W.Vb)(kt,"shiftKey"))&&(kt.key&&1===kt.key.length?this._letterKeyStream.next(kt.key.toLocaleUpperCase()):(We>=W.A&&We<=W.Z||We>=W.xE&&We<=W.aO)&&this._letterKeyStream.next(String.fromCharCode(We))))}this._pressedLetters=[],kt.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(kt){const We=this._getItemsArray(),Ue="number"==typeof kt?kt:We.indexOf(kt),Qe=We[Ue];this._activeItem=null==Qe?null:Qe,this._activeItemIndex=Ue}_setActiveItemByDelta(kt){this._wrap?this._setActiveInWrapMode(kt):this._setActiveInDefaultMode(kt)}_setActiveInWrapMode(kt){const We=this._getItemsArray();for(let Ue=1;Ue<=We.length;Ue++){const Qe=(this._activeItemIndex+kt*Ue+We.length)%We.length;if(!this._skipPredicateFn(We[Qe]))return void this.setActiveItem(Qe)}}_setActiveInDefaultMode(kt){this._setActiveItemByIndex(this._activeItemIndex+kt,kt)}_setActiveItemByIndex(kt,We){const Ue=this._getItemsArray();if(Ue[kt]){for(;this._skipPredicateFn(Ue[kt]);)if(!Ue[kt+=We])return;this.setActiveItem(kt)}}_getItemsArray(){return this._items instanceof _.n_E?this._items.toArray():this._items}}class K extends B{setActiveItem(kt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(kt),this.activeItem&&this.activeItem.setActiveStyles()}}class ge extends B{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(kt){return this._origin=kt,this}setActiveItem(kt){super.setActiveItem(kt),this.activeItem&&this.activeItem.focus(this._origin)}}let he=(()=>{class Mt{constructor(We){this._platform=We}isDisabled(We){return We.hasAttribute("disabled")}isVisible(We){return function Ie(Mt){return!!(Mt.offsetWidth||Mt.offsetHeight||"function"==typeof Mt.getClientRects&&Mt.getClientRects().length)}(We)&&"visible"===getComputedStyle(We).visibility}isTabbable(We){if(!this._platform.isBrowser)return!1;const Ue=function fe(Mt){try{return Mt.frameElement}catch(kt){return null}}(function wt(Mt){return Mt.ownerDocument&&Mt.ownerDocument.defaultView||window}(We));if(Ue&&(-1===Be(Ue)||!this.isVisible(Ue)))return!1;let Qe=We.nodeName.toLowerCase(),Lt=Be(We);return We.hasAttribute("contenteditable")?-1!==Lt:!("iframe"===Qe||"object"===Qe||this._platform.WEBKIT&&this._platform.IOS&&!function ut(Mt){let kt=Mt.nodeName.toLowerCase(),We="input"===kt&&Mt.type;return"text"===We||"password"===We||"select"===kt||"textarea"===kt}(We))&&("audio"===Qe?!!We.hasAttribute("controls")&&-1!==Lt:"video"===Qe?-1!==Lt&&(null!==Lt||this._platform.FIRE
vendor: 4,875 bytes, line 1
1FOX||We.hasAttribute("controls")):We.tabIndex>=0)}isFocusable(We,Ue){return function Ge(Mt){return!function pe(Mt){return function ae(Mt){return"input"==Mt.nodeName.toLowerCase()}(Mt)&&"hidden"==Mt.type}(Mt)&&(function Se(Mt){let kt=Mt.nodeName.toLowerCase();return"input"===kt||"select"===kt||"button"===kt||"textarea"===kt}(Mt)||function ke(Mt){return function Ce(Mt){return"a"==Mt.nodeName.toLowerCase()}(Mt)&&Mt.hasAttribute("href")}(Mt)||Mt.hasAttribute("contenteditable")||Ve(Mt))}(We)&&!this.isDisabled(We)&&((null==Ue?void 0:Ue.ignoreVisibility)||this.isVisible(We))}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(y.t4))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();function Ve(Mt){if(!Mt.hasAttribute("tabindex")||void 0===Mt.tabIndex)return!1;let kt=Mt.getAttribute("tabindex");return!(!kt||isNaN(parseInt(kt,10)))}function Be(Mt){if(!Ve(Mt))return null;const kt=parseInt(Mt.getAttribute("tabindex")||"",10);return isNaN(kt)?-1:kt}class Ot{constructor(kt,We,Ue,Qe,Lt=!1){this._element=kt,this._checker=We,this._ngZone=Ue,this._document=Qe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Lt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(kt){this._enabled=kt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(kt,this._startAnchor),this._toggleAnchorTabIndex(kt,this._endAnchor))}destroy(){const kt=this._startAnchor,We=this._endAnchor;kt&&(kt.removeEventListener("focus",this.startAnchorListener),kt.remove()),We&&(We.removeEventListener("focus",this.endAnchorListener),We.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(kt){return new Promise(We=>{this._executeOnStable(()=>We(this.focusInitialElement(kt)))})}focusFirstTabbableElementWhenReady(kt){return new Promise(We=>{this._executeOnStable(()=>We(this.focusFirstTabbableElement(kt)))})}focusLastTabbableElementWhenReady(kt){return new Promise(We=>{this._executeOnStable(()=>We(this.focusLastTabbableElement(kt)))})}_getRegionBoundary(kt){const We=this._element.querySelectorAll(`[cdk-focus-region-${kt}], [cdkFocusRegion${kt}], [cdk-focus-${kt}]`);return"start"==kt?We.length?We[0]:this._getFirstTabbableElement(this._element):We.length?We[We.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(kt){const We=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(We){if(!this._checker.isFocusable(We)){const Ue=this._getFirstTabbableElement(We);return null==Ue||Ue.focus(kt),!!Ue}return We.focus(kt),!0}return this.focusFirstTabbableElement(kt)}focusFirstTabbableElement(kt){const We=this._getRegionBoundary("start");return We&&We.focus(kt),!!We}focusLastTabbableElement(kt){const We=this._getRegionBoundary("end");return We&&We.focus(kt),!!We}hasAttached(){return this._hasAttached}_getFirstTabbableElement(kt){if(this._checker.isFocusable(kt)&&this._checker.isTabbable(kt))return kt;const We=kt.children;for(let Ue=0;Ue<We.length;Ue++){const Qe=We[Ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(We[Ue]):null;if(Qe)return Qe}return null}_getLastTabbableElement(kt){if(this._checker.isFocusable(kt)&&this._checker.isTabbable(kt))return kt;const We=kt.children;for(let Ue=We.length-1;Ue>=0;Ue--){const Qe=We[Ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(We[Ue]):null;if(Qe)return Qe}return null}_createAnchor(){const kt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,kt),kt.classList.add("cdk-visually-hidden"),kt.classList.add("cdk-focus-trap-anchor"),kt.setAttribute("aria-hidden","true"),kt}_toggleAnchorTabIndex(kt,We){kt?We.setAttribute("tabindex","0"):We.removeAttribute("tabindex")}toggleAnchors(kt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(kt,this._startAnchor),this._toggleAnchorTabIndex(kt,this._endAnchor))}_executeOnStable(kt){this._ngZone.isStable?kt():this._ngZone.onStable.pipe((0,J.q)(1)).subscribe(kt)}}let Ft=(()=>{class Mt{constructor(We,Ue,Qe){this._checker=We,this._ngZone=Ue,this._document=Qe}create(We,Ue=!1){return new Ot(We,this._checker,this._ngZone,this._document,Ue)}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(he),_.LFG
1(_.R0b),_.LFG(s.K0))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),ht=(()=>{class Mt{constructor(We,Ue,Qe){this._elementRef=We,this._focusTrapFactory=Ue,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(We){this.focusTrap.enabled=(0,Q.Ig)(We)}get autoCapture(){return this._autoCapture}set autoCapture(We){this._autoCapture=(0,Q.Ig)(We)}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(We){const Ue=We.autoCapture;Ue&&!Ue.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,y.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.Y36(_.SBq),_.Y36(Ft),_.Y36(s.K0))},Mt.\u0275dir=_.lG2({type:Mt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[_.TTD]}),Mt})();function ln(Mt){return 0===Mt.buttons||0===Mt.offsetX&&0===Mt.offsetY}function Jt(Mt){const kt=Mt.touches&&Mt.touches[0]||Mt.changedTouches&&Mt.changedTouches[0];return!(!kt||-1!==kt.identifier||null!=kt.radiusX&&1!==kt.radiusX||null!=kt.radiusY&&1!==kt.radiusY)}const Xe=new _.OlP("cdk-input-modality-detector-options"),qe={ignoreKeys:[W.zL,W.jx,W.b2,W.MW,W.JU]},tt=(0,y.i$)({passive:!0,capture:!0});let bt=(()=>{class Mt{constructor(We,Ue,Qe,Lt){this._platform=We,this._mostRecentTarget=null,this._modality=new L.X(null),this._lastTouchMs=0,this._onKeydown=xt=>{var Gt,Ke;(null===(Ke=null===(Gt=this._options)||void 0===Gt?void 0:Gt.ignoreKeys)||void 0===Ke?void 0:Ke.some(Ne=>Ne===xt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,y.sA)(xt))},this._onMousedown=xt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ln(xt)?"keyboard":"mouse"),this._mostRecentTarget=(0,y.sA)(xt))},this._onTouchstart=xt=>{Jt(xt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,y.sA)(xt))},this._options=Object.assign(Object.assign({},qe),Lt),this.modalityDetected=this._modality.pipe((0,Me.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Re.x)()),We.isBrowser&&Ue.runOutsideAngular(()=>{Qe.addEventListener("keydown",this._onKeydown,tt),Qe.addEventListener("mousedown",this._onMousedown,tt),Qe.addEventListener("touchstart",this._onTouchstart,tt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,tt),document.removeEventListener("mousedown",this._onMousedown,tt),document.removeEventListener("touchstart",this._onTouchstart,tt))}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(y.t4),_.LFG(_.R0b),_.LFG(s.K0),_.LFG(Xe,8))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();const un=new _.OlP("liveAnnouncerElement",{providedIn:"root",factory:function It(){return null}}),Et=new _.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Rt=(()=>{class Mt{constructor(We,Ue,Qe,Lt){this._ngZone=Ue,this._defaultOptions=Lt,this._document=Qe,this._liveElement=We||this._createLiveElement()}announce(We,...Ue){const Qe=this._defaultOptions;let Lt,xt;return 1===Ue.length&&"number"==typeof Ue[0]?xt=Ue[0]:[Lt,xt]=Ue,this.clear(),clearTimeout(this._previousTimeout),Lt||(Lt=Qe&&Qe.politeness?Qe.politeness:"polite"),null==xt&&Qe&&(xt=Qe.duration),this._liveElement.setAttribute("aria-live",Lt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Gt=>this._currentResolve=Gt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=We,"number"==typeof xt&&(this._previousTimeout=setTimeout(()=>this.clear(),xt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var We,Ue;clearTimeout(this._previousTimeout),null===(We=this._liveElement)||void 0===We||We.remove(),this._liveElement=null,null===(Ue=this._currentResolve)||void 0===Ue||Ue.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const We="cdk-live-announcer-element",Ue=this._document.getElementsByClassName(We),Qe=this._document.createElement("div");for(let Lt=0;Lt<Ue.length;Lt++)Ue[Lt].remove();return Qe.classList.add(We),Qe.classList.add("cdk-visually-hidden"),Qe.setAttribute("aria-atomic","true"),Qe.setAttribute("aria-live","polite"),this._document.body.appendChild(Qe),Qe}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(un,8),_.LFG(_.R0b),_.LFG(s.K0),_.LFG(Et,8))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();
1const Pt=new _.OlP("cdk-focus-monitor-default-options"),Dn=(0,y.i$)({passive:!0,capture:!0});let Gn=(()=>{class Mt{constructor(We,Ue,Qe,Lt,xt){this._ngZone=We,this._platform=Ue,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 j.xQ,this._rootNodeFocusAndBlurListener=Gt=>{const Ke=(0,y.sA)(Gt),Ne="focus"===Gt.type?this._onFocus:this._onBlur;for(let Ae=Ke;Ae;Ae=Ae.parentElement)Ne.call(this,Gt,Ae)},this._document=Lt,this._detectionMode=(null==xt?void 0:xt.detectionMode)||0}monitor(We,Ue=!1){const Qe=(0,Q.fI)(We);if(!this._platform.isBrowser||1!==Qe.nodeType)return(0,ce.of)(null);const Lt=(0,y.kV)(Qe)||this._getDocument(),xt=this._elementInfo.get(Qe);if(xt)return Ue&&(xt.checkChildren=!0),xt.subject;const Gt={checkChildren:Ue,subject:new j.xQ,rootNode:Lt};return this._elementInfo.set(Qe,Gt),this._registerGlobalListeners(Gt),Gt.subject}stopMonitoring(We){const Ue=(0,Q.fI)(We),Qe=this._elementInfo.get(Ue);Qe&&(Qe.subject.complete(),this._setClasses(Ue),this._elementInfo.delete(Ue),this._removeGlobalListeners(Qe))}focusVia(We,Ue,Qe){const Lt=(0,Q.fI)(We);Lt===this._getDocument().activeElement?this._getClosestElementsInfo(Lt).forEach(([Gt,Ke])=>this._originChanged(Gt,Ue,Ke)):(this._setOrigin(Ue),"function"==typeof Lt.focus&&Lt.focus(Qe))}ngOnDestroy(){this._elementInfo.forEach((We,Ue)=>this.stopMonitoring(Ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(We){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(We)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(We){return 1===this._detectionMode||!!(null==We?void 0:We.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(We,Ue){We.classList.toggle("cdk-focused",!!Ue),We.classList.toggle("cdk-touch-focused","touch"===Ue),We.classList.toggle("cdk-keyboard-focused","keyboard"===Ue),We.classList.toggle("cdk-mouse-focused","mouse"===Ue),We.classList.toggle("cdk-program-focused","program"===Ue)}_setOrigin(We,Ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=We,this._originFromTouchInteraction="touch"===We&&Ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(We,Ue){const Qe=this._elementInfo.get(Ue),Lt=(0,y.sA)(We);!Qe||!Qe.checkChildren&&Ue!==Lt||this._originChanged(Ue,this._getFocusOrigin(Lt),Qe)}_onBlur(We,Ue){const Qe=this._elementInfo.get(Ue);!Qe||Qe.checkChildren&&We.relatedTarget instanceof Node&&Ue.contains(We.relatedTarget)||(this._setClasses(Ue),this._emitOrigin(Qe.subject,null))}_emitOrigin(We,Ue){this._ngZone.run(()=>We.next(Ue))}_registerGlobalListeners(We){if(!this._platform.isBrowser)return;const Ue=We.rootNode,Qe=this._rootNodeFocusListenerCount.get(Ue)||0;Qe||this._ngZone.runOutsideAngular(()=>{Ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Dn),Ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Dn)}),this._rootNodeFocusListenerCount.set(Ue,Qe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,me.R)(this._stopInputModalityDetector)).subscribe(Lt=>{this._setOrigin(Lt,!0)}))}_removeGlobalListeners(We){const Ue=We.rootNode;if(this._rootNodeFocusListenerCount.has(Ue)){const Qe=this._rootNodeFocusListenerCount.get(Ue);Qe>1?this._rootNodeFocusListenerCount.set(Ue,Qe-1):(Ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Dn),Ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Dn),this._rootNodeFocusListenerCount.delete(Ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(We,Ue,Qe){this._setClasses(We,Ue),this._emitOrigin(Qe.subject,Ue),this._lastFocusOrigin=Ue}_getClosestElementsInfo(We){const Ue=[];return this._elementInfo.forEach((Qe,Lt)=>{(Lt===We||Qe.checkChildren&&Lt.contains(We))&&Ue.push([Lt,Qe])}),Ue}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(_.R0b),_.LFG(y.t4),_.LFG
1(bt),_.LFG(s.K0,8),_.LFG(Pt,8))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Zn=(()=>{class Mt{constructor(We,Ue){this._elementRef=We,this._focusMonitor=Ue,this.cdkFocusChange=new _.vpe}ngAfterViewInit(){const We=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(We,1===We.nodeType&&We.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ue=>this.cdkFocusChange.emit(Ue))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.Y36(_.SBq),_.Y36(Gn))},Mt.\u0275dir=_.lG2({type:Mt,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Mt})();const zn="cdk-high-contrast-black-on-white",nn="cdk-high-contrast-white-on-black",Vn="cdk-high-contrast-active";let Yt=(()=>{class Mt{constructor(We,Ue){this._platform=We,this._document=Ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const We=this._document.createElement("div");We.style.backgroundColor="rgb(1,2,3)",We.style.position="absolute",this._document.body.appendChild(We);const Ue=this._document.defaultView||window,Qe=Ue&&Ue.getComputedStyle?Ue.getComputedStyle(We):null,Lt=(Qe&&Qe.backgroundColor||"").replace(/ /g,"");switch(We.remove(),Lt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const We=this._document.body.classList;We.remove(Vn),We.remove(zn),We.remove(nn),this._hasCheckedHighContrastMode=!0;const Ue=this.getHighContrastMode();1===Ue?(We.add(Vn),We.add(zn)):2===Ue&&(We.add(Vn),We.add(nn))}}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(y.t4),_.LFG(s.K0))},Mt.\u0275prov=_.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Rn=(()=>{class Mt{constructor(We){We._applyBodyHighContrastModeCssClasses()}}return Mt.\u0275fac=function(We){return new(We||Mt)(_.LFG(Yt))},Mt.\u0275mod=_.oAB({type:Mt}),Mt.\u0275inj=_.cJS({imports:[[P.Q8]]}),Mt})()},226:(Qt,Z,S)=>{"use strict";S.d(Z,{Is:()=>ce,vT:()=>G});var s=S(5e3),_=S(9808);const y=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function j(){return(0,s.f3M)(_.K0)}}),D=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ce=(()=>{class ${constructor(le){if(this.value="ltr",this.change=new s.vpe,le){const Me=le.documentElement?le.documentElement.dir:null;this.value=function L($){const te=(null==$?void 0:$.toLowerCase())||"";return"auto"===te&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?D.test(navigator.language)?"rtl":"ltr":"rtl"===te?"rtl":"ltr"}((le.body?le.body.dir:null)||Me||"ltr")}}ngOnDestroy(){this.change.complete()}}return $.\u0275fac=function(le){return new(le||$)(s.LFG(y,8))},$.\u0275prov=s.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),G=(()=>{class ${}return $.\u0275fac=function(le){return new(le||$)},$.\u0275mod=s.oAB({type:$}),$.\u0275inj=s.cJS({}),$})()},3191:(Qt,Z,S)=>{"use strict";S.d(Z,{Eq:()=>D,HM:()=>L,Ig:()=>_,du:()=>W,fI:()=>ce,su:()=>y,t6:()=>j});var s=S(5e3);function _(G){return null!=G&&"false"!=`${G}`}function y(G,$=0){return j(G)?Number(G):$}function j(G){return!isNaN(parseFloat(G))&&!isNaN(Number(G))}function D(G){return Array.isArray(G)?G:[G]}function L(G){return null==G?"":"string"==typeof G?G:`${G}px`}function ce(G){return G instanceof s.SBq?G.nativeElement:G}function W(G,$=/\s+/){const te=[];if(null!=G){const le=Array.isArray(G)?G:`${G}`.split($);for(const J of le){const Me=`${J}`.trim();Me&&te.push(Me)}}return te}},449:(Qt,Z,S)=>{"use strict";S.d(Z,{A8:()=>$,Ov:()=>W,Z9:()=>j,eX:()=>ce,k:()=>te,o2:()=>y,yy:()=>L});var s=S(8929),_=S(5e3);class y{}function j(le){return le&&"function"==typeof le.connect}class L{applyChanges(J,Me,Re,me,Q){J.forEachOperation((P,N,Y)=>{let de,re;if(null==P.previousIndex){const V=Re(P,N,Y);de=Me.createEmbeddedView(V.templateRef,V.context,V.index),re=1}else null==Y?(Me.remove(N),re=3):(de=Me.get(N),Me.move(de,Y),re=2);Q&&Q({context:null==de?void 0:de.context,operation:re,record:P})})}detach(){}}class ce{constructor(){this.viewCacheSize=20,this._viewCache=[]}
1applyChanges(J,Me,Re,me,Q){J.forEachOperation((P,N,Y)=>{let de,re;null==P.previousIndex?(de=this._insertView(()=>Re(P,N,Y),Y,Me,me(P)),re=de?1:0):null==Y?(this._detachAndCacheView(N,Me),re=3):(de=this._moveView(N,Y,Me,me(P)),re=2),Q&&Q({context:null==de?void 0:de.context,operation:re,record:P})})}detach(){for(const J of this._viewCache)J.destroy();this._viewCache=[]}_insertView(J,Me,Re,me){const Q=this._insertViewFromCache(Me,Re);if(Q)return void(Q.context.$implicit=me);const P=J();return Re.createEmbeddedView(P.templateRef,P.context,P.index)}_detachAndCacheView(J,Me){const Re=Me.detach(J);this._maybeCacheView(Re,Me)}_moveView(J,Me,Re,me){const Q=Re.get(J);return Re.move(Q,Me),Q.context.$implicit=me,Q}_maybeCacheView(J,Me){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(J);else{const Re=Me.indexOf(J);-1===Re?J.destroy():Me.remove(Re)}}_insertViewFromCache(J,Me){const Re=this._viewCache.pop();return Re&&Me.insert(Re,J),Re||null}}class W{constructor(J=!1,Me,Re=!0){this._multiple=J,this._emitChanges=Re,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.xQ,Me&&Me.length&&(J?Me.forEach(me=>this._markSelected(me)):this._markSelected(Me[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...J){this._verifyValueAssignment(J),J.forEach(Me=>this._markSelected(Me)),this._emitChangeEvent()}deselect(...J){this._verifyValueAssignment(J),J.forEach(Me=>this._unmarkSelected(Me)),this._emitChangeEvent()}toggle(J){this.isSelected(J)?this.deselect(J):this.select(J)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(J){return this._selection.has(J)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(J){this._multiple&&this.selected&&this._selected.sort(J)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(J){this.isSelected(J)||(this._multiple||this._unmarkAll(),this._selection.add(J),this._emitChanges&&this._selectedToEmit.push(J))}_unmarkSelected(J){this.isSelected(J)&&(this._selection.delete(J),this._emitChanges&&this._deselectedToEmit.push(J))}_unmarkAll(){this.isEmpty()||this._selection.forEach(J=>this._unmarkSelected(J))}_verifyValueAssignment(J){}}let $=(()=>{class le{constructor(){this._listeners=[]}notify(Me,Re){for(let me of this._listeners)me(Me,Re)}listen(Me){return this._listeners.push(Me),()=>{this._listeners=this._listeners.filter(Re=>Me!==Re)}}ngOnDestroy(){this._listeners=[]}}return le.\u0275fac=function(Me){return new(Me||le)},le.\u0275prov=_.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const te=new _.OlP("_ViewRepeater")},4409:(Qt,Z,S)=>{"use strict";S.d(Z,{Wj:()=>Dn,Zt:()=>Mt,_t:()=>kt,bA:()=>Ot});var s=S(5e3),_=S(9808),y=S(925),j=S(3191),D=S(5664),L=S(8929),ce=S(2654),W=S(1715),G=S(352),$=S(6498),te=S(6787),le=S(7625),J=S(1059),Me=S(4850),Re=S(2986),me=S(2868),Q=S(7545),P=S(9071),N=S(226);function Y(We,Ue,Qe){for(let Lt in Ue)if(Ue.hasOwnProperty(Lt)){const xt=Ue[Lt];xt?We.setProperty(Lt,xt,(null==Qe?void 0:Qe.has(Lt))?"important":""):We.removeProperty(Lt)}return We}function de(We,Ue){const Qe=Ue?"":"none";Y(We.style,{"touch-action":Ue?"":"none","-webkit-user-drag":Ue?"":"none","-webkit-tap-highlight-color":Ue?"":"transparent","user-select":Qe,"-ms-user-select":Qe,"-webkit-user-select":Qe,"-moz-user-select":Qe})}function re(We,Ue,Qe){Y(We.style,{position:Ue?"":"fixed",top:Ue?"":"0",opacity:Ue?"":"0",left:Ue?"":"-999em"},Qe)}function V(We,Ue){return Ue&&"none"!=Ue?We+" "+Ue:We}function ne(We){const Ue=We.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(We)*Ue}function M(We,Ue){return We.getPropertyValue(Ue).split(",").map(Lt=>Lt.trim())}function A(We){const Ue=We.getBoundingClientRect();return{top:Ue.top,right:Ue.right,bottom:Ue.bottom,left:Ue.left,width:Ue.width,height:Ue.height,x:Ue.x,y:Ue.y}}function R(We,Ue,Qe){const{top:Lt,bottom:xt,left:Gt,right:Ke}=We;return Qe>=Lt&&Qe<=xt&&Ue>=Gt&&Ue<=Ke}function ee(We,Ue,Qe){We.top+=Ue,We.bottom=We.top+We.height,We.left+=Qe,We.right=We.left+We.width}function B(We,Ue,Qe,Lt){const{top:xt,right:Gt,bottom:Ke,left:Ne,width:Ae,height:Oe}=We,Ye=Ae*Ue,je=Oe*Ue;return Lt>xt-je&&Lt<Ke+je&&Qe>Ne-Ye&&Qe<Gt+Ye}class K{constructor(Ue){this._document=Ue,this.positions=new Map}clear(){this.positions.clear()}cache(Ue){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),Ue.forEach(Qe=>{this.positions.set(Qe,{scrollPosition:{top:Qe.scrollTop,left:Qe.scrollLeft},clientRect:A(Qe)})})}handleScroll(Ue){const Qe=(0,y.sA)(Ue),Lt=this.positions.get(Qe);if(!Lt)return null;const xt=Lt.scrollPosition;
1let Gt,Ke;if(Qe===this._document){const Oe=this.getViewportScrollPosition();Gt=Oe.top,Ke=Oe.left}else Gt=Qe.scrollTop,Ke=Qe.scrollLeft;const Ne=xt.top-Gt,Ae=xt.left-Ke;return this.positions.forEach((Oe,Ye)=>{Oe.clientRect&&Qe!==Ye&&Qe.contains(Ye)&&ee(Oe.clientRect,Ne,Ae)}),xt.top=Gt,xt.left=Ke,{top:Ne,left:Ae}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ge(We){const Ue=We.cloneNode(!0),Qe=Ue.querySelectorAll("[id]"),Lt=We.nodeName.toLowerCase();Ue.removeAttribute("id");for(let xt=0;xt<Qe.length;xt++)Qe[xt].removeAttribute("id");return"canvas"===Lt?Ie(We,Ue):("input"===Lt||"select"===Lt||"textarea"===Lt)&&fe(We,Ue),Fe("canvas",We,Ue,Ie),Fe("input, textarea, select",We,Ue,fe),Ue}function Fe(We,Ue,Qe,Lt){const xt=Ue.querySelectorAll(We);if(xt.length){const Gt=Qe.querySelectorAll(We);for(let Ke=0;Ke<xt.length;Ke++)Lt(xt[Ke],Gt[Ke])}}let he=0;function fe(We,Ue){"file"!==Ue.type&&(Ue.value=We.value),"radio"===Ue.type&&Ue.name&&(Ue.name=`mat-clone-${Ue.name}-${he++}`)}function Ie(We,Ue){const Qe=Ue.getContext("2d");if(Qe)try{Qe.drawImage(We,0,0)}catch(Lt){}}const Se=(0,y.i$)({passive:!0}),pe=(0,y.i$)({passive:!1}),ae=new Set(["position"]);class Ce{constructor(Ue,Qe,Lt,xt,Gt,Ke){this._config=Qe,this._document=Lt,this._ngZone=xt,this._viewportRuler=Gt,this._dragDropRegistry=Ke,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new L.xQ,this._pointerMoveSubscription=ce.w.EMPTY,this._pointerUpSubscription=ce.w.EMPTY,this._scrollSubscription=ce.w.EMPTY,this._resizeSubscription=ce.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new L.xQ,this.started=new L.xQ,this.released=new L.xQ,this.ended=new L.xQ,this.entered=new L.xQ,this.exited=new L.xQ,this.dropped=new L.xQ,this.moved=this._moveEvents,this._pointerDown=Ne=>{if(this.beforeStarted.next(),this._handles.length){const Ae=this._getTargetHandle(Ne);Ae&&!this._disabledHandles.has(Ae)&&!this.disabled&&this._initializeDragSequence(Ae,Ne)}else this.disabled||this._initializeDragSequence(this._rootElement,Ne)},this._pointerMove=Ne=>{const Ae=this._getPointerPositionOnPage(Ne);if(!this._hasStartedDragging){if(Math.abs(Ae.x-this._pickupPositionOnPage.x)+Math.abs(Ae.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const rn=Date.now()>=this._dragStartTime+this._getDragStartDelay(Ne),On=this._dropContainer;if(!rn)return void this._endDragSequence(Ne);(!On||!On.isDragging()&&!On.isReceiving())&&(Ne.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Ne)))}return}Ne.preventDefault();const Oe=this._getConstrainedPointerPosition(Ae);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ae,this._updatePointerDirectionDelta(Oe),this._dropContainer)this._updateActiveDropContainer(Oe,Ae);else{const Ye=this._activeTransform;Ye.x=Oe.x-this._pickupPositionOnPage.x+this._passiveTransform.x,Ye.y=Oe.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(Ye.x,Ye.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Oe,event:Ne,distance:this._getDragDistance(Oe),delta:this._pointerDirectionDelta})})},this._pointerUp=Ne=>{this._endDragSequence(Ne)},this._nativeDragStart=Ne=>{if(this._handles.length){const Ae=this._getTargetHandle(Ne);Ae&&!this._disabledHandles.has(Ae)&&!this.disabled&&Ne.preventDefault()}else this.disabled||Ne.preventDefault()},this.withRootElement(Ue).withParent(Qe.parentDragRef||null),this._parentPositions=new K(Lt),Ke.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Ue){const Qe=(0,j.Ig)(Ue);Qe!==this._disabled&&(this._disabled=Qe,this._toggleNativeDragInteractions(),this._handles.forEach(Lt=>de(Lt,Qe)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Ue){this._handles=Ue.map(Lt=>
vendor: 4,457 bytes, line 1
1(0,j.fI)(Lt)),this._handles.forEach(Lt=>de(Lt,this.disabled)),this._toggleNativeDragInteractions();const Qe=new Set;return this._disabledHandles.forEach(Lt=>{this._handles.indexOf(Lt)>-1&&Qe.add(Lt)}),this._disabledHandles=Qe,this}withPreviewTemplate(Ue){return this._previewTemplate=Ue,this}withPlaceholderTemplate(Ue){return this._placeholderTemplate=Ue,this}withRootElement(Ue){const Qe=(0,j.fI)(Ue);return Qe!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Qe.addEventListener("mousedown",this._pointerDown,pe),Qe.addEventListener("touchstart",this._pointerDown,Se),Qe.addEventListener("dragstart",this._nativeDragStart,pe)}),this._initialTransform=void 0,this._rootElement=Qe),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Ue){return this._boundaryElement=Ue?(0,j.fI)(Ue):null,this._resizeSubscription.unsubscribe(),Ue&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Ue){return this._parentDragRef=Ue,this}dispose(){var Ue,Qe;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(Ue=this._rootElement)||void 0===Ue||Ue.remove()),null===(Qe=this._anchor)||void 0===Qe||Qe.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Ue){!this._disabledHandles.has(Ue)&&this._handles.indexOf(Ue)>-1&&(this._disabledHandles.add(Ue),de(Ue,!0))}enableHandle(Ue){this._disabledHandles.has(Ue)&&(this._disabledHandles.delete(Ue),de(Ue,this.disabled))}withDirection(Ue){return this._direction=Ue,this}_withDropContainer(Ue){this._dropContainer=Ue}getFreeDragPosition(){const Ue=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Ue.x,y:Ue.y}}setFreeDragPosition(Ue){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Ue.x,this._passiveTransform.y=Ue.y,this._dropContainer||this._applyRootElementTransform(Ue.x,Ue.y),this}withPreviewContainer(Ue){return this._previewContainer=Ue,this}_sortFromLastPointerPosition(){const Ue=this._lastKnownPointerPosition;Ue&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Ue),Ue)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var Ue,Qe;null===(Ue=this._preview)||void 0===Ue||Ue.remove(),null===(Qe=this._previewRef)||void 0===Qe||Qe.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var Ue,Qe;null===(Ue=this._placeholder)||void 0===Ue||Ue.remove(),null===(Qe=this._placeholderRef)||void 0===Qe||Qe.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Ue){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Ue),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Qe=this._getPointerPositionOnPage(Ue);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Qe),dropPoint:Qe})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}
1_startDragSequence(Ue){ut(Ue)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Qe=this._dropContainer;if(Qe){const Lt=this._rootElement,xt=Lt.parentNode,Gt=this._placeholder=this._createPlaceholderElement(),Ke=this._anchor=this._anchor||this._document.createComment(""),Ne=this._getShadowRoot();xt.insertBefore(Ke,Lt),this._initialTransform=Lt.style.transform||"",this._preview=this._createPreviewElement(),re(Lt,!1,ae),this._document.body.appendChild(xt.replaceChild(Gt,Lt)),this._getPreviewInsertionPoint(xt,Ne).appendChild(this._preview),this.started.next({source:this}),Qe.start(),this._initialContainer=Qe,this._initialIndex=Qe.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Qe?Qe.getScrollableParents():[])}_initializeDragSequence(Ue,Qe){this._parentDragRef&&Qe.stopPropagation();const Lt=this.isDragging(),xt=ut(Qe),Gt=!xt&&0!==Qe.button,Ke=this._rootElement,Ne=(0,y.sA)(Qe),Ae=!xt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Oe=xt?(0,D.yG)(Qe):(0,D.X6)(Qe);if(Ne&&Ne.draggable&&"mousedown"===Qe.type&&Qe.preventDefault(),Lt||Gt||Ae||Oe)return;if(this._handles.length){const Tt=Ke.style;this._rootElementTapHighlight=Tt.webkitTapHighlightColor||"",Tt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Tt=>this._updateOnScroll(Tt)),this._boundaryElement&&(this._boundaryRect=A(this._boundaryElement));const Ye=this._previewTemplate;this._pickupPositionInElement=Ye&&Ye.template&&!Ye.matchSize?{x:0,y:0}:this._getPointerPositionInElement(Ue,Qe);const je=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Qe);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:je.x,y:je.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Qe)}_cleanupDragArtifacts(Ue){re(this._rootElement,!0,ae),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Qe=this._dropContainer,Lt=Qe.getItemIndex(this),xt=this._getPointerPositionOnPage(Ue),Gt=this._getDragDistance(xt),Ke=Qe._isOverContainer(xt.x,xt.y);this.ended.next({source:this,distance:Gt,dropPoint:xt}),this.dropped.next({item:this,currentIndex:Lt,previousIndex:this._initialIndex,container:Qe,previousContainer:this._initialContainer,isPointerOverContainer:Ke,distance:Gt,dropPoint:xt}),Qe.drop(this,Lt,this._initialIndex,this._initialContainer,Ke,Gt,xt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Ue,y:Qe},{x:Lt,y:xt}){let Gt=this._initialContainer._getSiblingContainerFromPosition(this,Ue,Qe);!Gt&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Ue,Qe)&&(Gt=this._initialContainer),Gt&&Gt!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Gt,this._dropContainer.enter(this,Ue,Qe,Gt===this._initialContainer&&Gt.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Gt,currentIndex:Gt.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Lt,xt),this._dropContainer._sortItem(this,Ue,Qe,this._pointerDirectionDelta),this._applyPreviewTransform(Ue-this._pickupPositionInElement.x,Qe-this._pickupPositionInElement.y))}_createPreviewElement(){const Ue=this._previewTemplate,Qe=this.previewClass,Lt=Ue?Ue.template:null;let xt;if(Lt&&Ue){const Gt=Ue.matchSize?this._rootElement.getBoundingClientRect():null,Ke=Ue.viewContainer.createEmbeddedView(Lt,Ue.context);Ke.detectChanges(),xt=Ge(Ke,this._document),this._previewRef=Ke,
1Ue.matchSize?wt(xt,Gt):xt.style.transform=Ve(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const Gt=this._rootElement;xt=ge(Gt),wt(xt,Gt.getBoundingClientRect()),this._initialTransform&&(xt.style.transform=this._initialTransform)}return Y(xt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ae),de(xt,!1),xt.classList.add("cdk-drag-preview"),xt.setAttribute("dir",this._direction),Qe&&(Array.isArray(Qe)?Qe.forEach(Gt=>xt.classList.add(Gt)):xt.classList.add(Qe)),xt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Ue=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Ue.left,Ue.top);const Qe=function E(We){const Ue=getComputedStyle(We),Qe=M(Ue,"transition-property"),Lt=Qe.find(Ne=>"transform"===Ne||"all"===Ne);if(!Lt)return 0;const xt=Qe.indexOf(Lt),Gt=M(Ue,"transition-duration"),Ke=M(Ue,"transition-delay");return ne(Gt[xt])+ne(Ke[xt])}(this._preview);return 0===Qe?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Lt=>{const xt=Ke=>{var Ne;(!Ke||(0,y.sA)(Ke)===this._preview&&"transform"===Ke.propertyName)&&(null===(Ne=this._preview)||void 0===Ne||Ne.removeEventListener("transitionend",xt),Lt(),clearTimeout(Gt))},Gt=setTimeout(xt,1.5*Qe);this._preview.addEventListener("transitionend",xt)}))}_createPlaceholderElement(){const Ue=this._placeholderTemplate,Qe=Ue?Ue.template:null;let Lt;return Qe?(this._placeholderRef=Ue.viewContainer.createEmbeddedView(Qe,Ue.context),this._placeholderRef.detectChanges(),Lt=Ge(this._placeholderRef,this._document)):Lt=ge(this._rootElement),Lt.style.pointerEvents="none",Lt.classList.add("cdk-drag-placeholder"),Lt}_getPointerPositionInElement(Ue,Qe){const Lt=this._rootElement.getBoundingClientRect(),xt=Ue===this._rootElement?null:Ue,Gt=xt?xt.getBoundingClientRect():Lt,Ke=ut(Qe)?Qe.targetTouches[0]:Qe,Ne=this._getViewportScrollPosition();return{x:Gt.left-Lt.left+(Ke.pageX-Gt.left-Ne.left),y:Gt.top-Lt.top+(Ke.pageY-Gt.top-Ne.top)}}_getPointerPositionOnPage(Ue){const Qe=this._getViewportScrollPosition(),Lt=ut(Ue)?Ue.touches[0]||Ue.changedTouches[0]||{pageX:0,pageY:0}:Ue,xt=Lt.pageX-Qe.left,Gt=Lt.pageY-Qe.top;if(this._ownerSVGElement){const Ke=this._ownerSVGElement.getScreenCTM();if(Ke){const Ne=this._ownerSVGElement.createSVGPoint();return Ne.x=xt,Ne.y=Gt,Ne.matrixTransform(Ke.inverse())}}return{x:xt,y:Gt}}_getConstrainedPointerPosition(Ue){const Qe=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Lt,y:xt}=this.constrainPosition?this.constrainPosition(Ue,this):Ue;if("x"===this.lockAxis||"x"===Qe?xt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Qe)&&(Lt=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Gt,y:Ke}=this._pickupPositionInElement,Ne=this._boundaryRect,{width:Ae,height:Oe}=this._getPreviewRect(),Ye=Ne.top+Ke,je=Ne.bottom-(Oe-Ke);Lt=Be(Lt,Ne.left+Gt,Ne.right-(Ae-Gt)),xt=Be(xt,Ye,je)}return{x:Lt,y:xt}}_updatePointerDirectionDelta(Ue){const{x:Qe,y:Lt}=Ue,xt=this._pointerDirectionDelta,Gt=this._pointerPositionAtLastDirectionChange,Ke=Math.abs(Qe-Gt.x),Ne=Math.abs(Lt-Gt.y);return Ke>this._config.pointerDirectionChangeThreshold&&(xt.x=Qe>Gt.x?1:-1,Gt.x=Qe),Ne>this._config.pointerDirectionChangeThreshold&&(xt.y=Lt>Gt.y?1:-1,Gt.y=Lt),xt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Ue=this._handles.length>0||!this.isDragging();Ue!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Ue,de(this._rootElement,Ue))}_removeRootElementListeners(Ue){Ue.removeEventListener("mousedown",this._pointerDown,pe),Ue.removeEventListener("touchstart",this._pointerDown,Se),Ue.removeEventListener("dragstart",this._nativeDragStart,pe)}_applyRootElementTransform(Ue,Qe){const Lt=Ve(Ue,Qe),xt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=xt.transform&&"none"!=xt.transform?xt.transform:""),xt.transform=V(Lt,this._initialTransform)}_applyPreviewTransform(Ue,Qe){var Lt;const xt=(null===(Lt=this._previewTemplate)||void 0===Lt?void 0:Lt.template)?void 0:this._initialTransform,Gt=Ve(Ue,Qe);this._preview.style.transform=V(Gt,xt)}_getDragDistance(Ue){const Qe=this._pickupPositionOnPage;return Qe?{x:Ue.x-Qe.x,y:Ue.y-Qe.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Ue,y:Qe}=this._passiveTransform;if(0===Ue&&0===Qe||this.isDragging()||!this._boundaryElement)return;const Lt=this._boundaryElement.getBoundingClientRect(),xt=this._rootElement.getBoundingClientRect();if(0===Lt.width&&0===Lt.height||0===xt.width&&0===xt.height)return;const Gt=Lt.left-xt.left,Ke=xt.right-Lt.right,Ne=Lt.top-xt.top,Ae=xt.bottom-Lt.bottom;Lt.width>xt.width?(Gt>0&&(Ue+=Gt),Ke>0&&(Ue-=Ke)):Ue=0,Lt.height>xt.height?(Ne>0&&(Qe+=Ne),Ae>0&&(Qe-=Ae)):Qe=0,(Ue!==this._passiveTransform.x||Qe!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Qe,x:Ue})}_getDragStartDelay(Ue){const Qe=this.dragStartDelay;return"number"==typeof Qe?Qe:ut(Ue)?Qe.touch:Qe?Qe.mouse:0}_updateOnScroll(Ue){const Qe=this._parentPositions.handleScroll(Ue);if(Qe){const Lt=(0,y.sA)(Ue);this._boundaryRect&&Lt!==this._boundaryElement&&Lt.contains(this._boundaryElement)&&ee(this._boundaryRect,Qe.top,Qe.left),this._pickupPositionOnPage.x+=Qe.left,this._pickupPositionOnPage.y+=Qe.top,this._dropContainer||(this._activeTransform.x-=Qe.left,this._activeTransform.y-=Qe.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var Ue;return(null===(Ue=this._parentPositions.positions.get(this._document))||void 0===Ue?void 0:Ue.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,y.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Ue,Qe){const Lt=this._previewContainer||"global";if("parent"===Lt)return Ue;if("global"===Lt){const xt=this._document;return Qe||xt.fullscreenElement||xt.webkitFullscreenElement||xt.mozFullScreenElement||xt.msFullscreenElement||xt.body}return(0,j.fI)(Lt)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}_getTargetHandle(Ue){return this._handles.find(Qe=>Ue.target&&(Ue.target===Qe||Qe.contains(Ue.target)))}}function Ve(We,Ue){return`translate3d(${Math.round(We)}px, ${Math.round(Ue)}px, 0)`}function Be(We,Ue,Qe){return Math.max(Ue,Math.min(Qe,We))}function ut(We){return"t"===We.type[0]}function Ge(We,Ue){const Qe=We.rootNodes;if(1===Qe.length&&Qe[0].nodeType===Ue.ELEMENT_NODE)return Qe[0];const Lt=Ue.createElement("div");return Qe.forEach(xt=>Lt.appendChild(xt)),Lt}function wt(We,Ue){We.style.width=`${Ue.width}
1px`,We.style.height=`${Ue.height}px`,We.style.transform=Ve(Ue.left,Ue.top)}function Ot(We,Ue,Qe){const Lt=Ht(Ue,We.length-1),xt=Ht(Qe,We.length-1);if(Lt===xt)return;const Gt=We[Lt],Ke=xt<Lt?-1:1;for(let Ne=Lt;Ne!==xt;Ne+=Ke)We[Ne]=We[Ne+Ke];We[xt]=Gt}function Ht(We,Ue){return Math.max(0,Math.min(Ue,We))}class hn{constructor(Ue,Qe,Lt,xt,Gt){this._dragDropRegistry=Qe,this._ngZone=xt,this._viewportRuler=Gt,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new L.xQ,this.entered=new L.xQ,this.exited=new L.xQ,this.dropped=new L.xQ,this.sorted=new L.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=ce.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new L.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,W.F)(0,G.Z).pipe((0,le.R)(this._stopScrollTimers)).subscribe(()=>{const Ke=this._scrollNode,Ne=this.autoScrollStep;1===this._verticalScrollDirection?Ke.scrollBy(0,-Ne):2===this._verticalScrollDirection&&Ke.scrollBy(0,Ne),1===this._horizontalScrollDirection?Ke.scrollBy(-Ne,0):2===this._horizontalScrollDirection&&Ke.scrollBy(Ne,0)})},this.element=(0,j.fI)(Ue),this._document=Lt,this.withScrollableParents([this.element]),Qe.registerDropContainer(this),this._parentPositions=new K(Lt)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Ue,Qe,Lt,xt){let Gt;this._draggingStarted(),null==xt?(Gt=this.sortingDisabled?this._draggables.indexOf(Ue):-1,-1===Gt&&(Gt=this._getItemIndexFromPointerPosition(Ue,Qe,Lt))):Gt=xt;const Ke=this._activeDraggables,Ne=Ke.indexOf(Ue),Ae=Ue.getPlaceholderElement();let Oe=Ke[Gt];if(Oe===Ue&&(Oe=Ke[Gt+1]),!Oe&&(null==Gt||-1===Gt||Gt<Ke.length-1)&&this._shouldEnterAsFirstChild(Qe,Lt)&&(Oe=Ke[0]),Ne>-1&&Ke.splice(Ne,1),Oe&&!this._dragDropRegistry.isDragging(Oe)){const Ye=Oe.getRootElement();Ye.parentElement.insertBefore(Ae,Ye),Ke.splice(Gt,0,Ue)}else(0,j.fI)(this.element).appendChild(Ae),Ke.push(Ue);Ae.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Ue,container:this,currentIndex:this.getItemIndex(Ue)})}exit(Ue){this._reset(),this.exited.next({item:Ue,container:this})}drop(Ue,Qe,Lt,xt,Gt,Ke,Ne){this._reset(),this.dropped.next({item:Ue,currentIndex:Qe,previousIndex:Lt,container:this,previousContainer:xt,isPointerOverContainer:Gt,distance:Ke,dropPoint:Ne})}withItems(Ue){const Qe=this._draggables;return this._draggables=Ue,Ue.forEach(Lt=>Lt._withDropContainer(this)),this.isDragging()&&(Qe.filter(xt=>xt.isDragging()).every(xt=>-1===Ue.indexOf(xt))?this._reset():this._cacheItems()),this}withDirection(Ue){return this._direction=Ue,this}connectedTo(Ue){return this._siblings=Ue.slice(),this}withOrientation(Ue){return this._orientation=Ue,this}withScrollableParents(Ue){const Qe=(0,j.fI)(this.element);return this._scrollableElements=-1===Ue.indexOf(Qe)?[Qe,...Ue]:Ue.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Ue){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Lt=>Lt.drag===Ue):this._draggables.indexOf(Ue)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Ue,Qe,Lt,xt){if(this.sortingDisabled||!this._clientRect||!B(this._clientRect,.05,Qe,Lt))return;const Gt=this._itemPositions,Ke=this._getItemIndexFromPointerPosition(Ue,Qe,Lt,xt);if(-1===Ke&&Gt.length>0)return;const Ne="horizontal"===this._orientation,Ae=Gt.findIndex(Xn=>Xn.drag===Ue),Oe=Gt[Ke],je=Oe.clientRect,Tt=Ae>Ke?1:-1,rn=this._getItemOffsetPx(Gt[Ae].clientRect,je,Tt),On=this._getSiblingOffsetPx(Ae,Gt,Tt),xn=Gt.slice();Ot(Gt,Ae,Ke),this.sorted.next({previousIndex:Ae,currentIndex:Ke,container:this,item:Ue}),Gt.forEach((Xn,Ai)=>{if(xn[Ai]===Xn)return;const mi=Xn.drag===Ue,fi=mi?rn:On,Ki=mi?Ue.getPlaceholderElement():Xn.drag.getRootElement();Xn.offset+=fi,Ne?(Ki.style.transform=V(`translate3d(${Math.round(Xn.offset)}px, 0, 0)`,Xn.initialTransform),ee(Xn.clientRect,0,fi)):(Ki.style.transform=V(`translate3d(0, ${Math.round(Xn.offset)}px, 0)`,Xn.initialTransform),ee(Xn.clientRect,fi,0))}),this._previousSwap.overlaps=R(je,Qe,Lt),this._previousSwap.drag=Oe.drag,this._previousSwap.delta=Ne?xt.x:xt.y}_startScrollingIfNecessary(Ue,Qe){if(this.autoScrollDisabled)return;let Lt,xt=0,Gt=0;if(this._parentPositions.positions.forEach((Ke,Ne)=>{Ne===this._document||!Ke.clientRect||Lt||B(Ke.clientRect,.05,Ue,Qe)&&([xt,Gt]=function Jt(We,Ue,Qe,Lt){const xt=vn(Ue,Lt),Gt=ln(Ue,Qe);let Ke=0,Ne=0;if(xt){const Ae=We.scrollTop;1===xt?Ae>0&&(Ke=1):We.scrollHeight-Ae>We.clientHeight&&(Ke=2)}
vendor: 4,867 bytes, line 1
1if(Gt){const Ae=We.scrollLeft;1===Gt?Ae>0&&(Ne=1):We.scrollWidth-Ae>We.clientWidth&&(Ne=2)}return[Ke,Ne]}(Ne,Ke.clientRect,Ue,Qe),(xt||Gt)&&(Lt=Ne))}),!xt&&!Gt){const{width:Ke,height:Ne}=this._viewportRuler.getViewportSize(),Ae={width:Ke,height:Ne,top:0,right:Ke,bottom:Ne,left:0};xt=vn(Ae,Qe),Gt=ln(Ae,Ue),Lt=window}Lt&&(xt!==this._verticalScrollDirection||Gt!==this._horizontalScrollDirection||Lt!==this._scrollNode)&&(this._verticalScrollDirection=xt,this._horizontalScrollDirection=Gt,this._scrollNode=Lt,(xt||Gt)&&Lt?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Ue=(0,j.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Ue.msScrollSnapType||Ue.scrollSnapType||"",Ue.scrollSnapType=Ue.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Ue=(0,j.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Ue).clientRect}_cacheItemPositions(){const Ue="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(Qe=>{const Lt=Qe.getVisibleElement();return{drag:Qe,offset:0,initialTransform:Lt.style.transform||"",clientRect:A(Lt)}}).sort((Qe,Lt)=>Ue?Qe.clientRect.left-Lt.clientRect.left:Qe.clientRect.top-Lt.clientRect.top)}_reset(){this._isDragging=!1;const Ue=(0,j.fI)(this.element).style;Ue.scrollSnapType=Ue.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(Qe=>{var Lt;const xt=Qe.getRootElement();if(xt){const Gt=null===(Lt=this._itemPositions.find(Ke=>Ke.drag===Qe))||void 0===Lt?void 0:Lt.initialTransform;xt.style.transform=Gt||""}}),this._siblings.forEach(Qe=>Qe._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(Ue,Qe,Lt){const xt="horizontal"===this._orientation,Gt=Qe[Ue].clientRect,Ke=Qe[Ue+-1*Lt];let Ne=Gt[xt?"width":"height"]*Lt;if(Ke){const Ae=xt?"left":"top",Oe=xt?"right":"bottom";-1===Lt?Ne-=Ke.clientRect[Ae]-Gt[Oe]:Ne+=Gt[Ae]-Ke.clientRect[Oe]}return Ne}_getItemOffsetPx(Ue,Qe,Lt){const xt="horizontal"===this._orientation;let Gt=xt?Qe.left-Ue.left:Qe.top-Ue.top;return-1===Lt&&(Gt+=xt?Qe.width-Ue.width:Qe.height-Ue.height),Gt}_shouldEnterAsFirstChild(Ue,Qe){if(!this._activeDraggables.length)return!1;const Lt=this._itemPositions,xt="horizontal"===this._orientation;if(Lt[0].drag!==this._activeDraggables[0]){const Ke=Lt[Lt.length-1].clientRect;return xt?Ue>=Ke.right:Qe>=Ke.bottom}{const Ke=Lt[0].clientRect;return xt?Ue<=Ke.left:Qe<=Ke.top}}_getItemIndexFromPointerPosition(Ue,Qe,Lt,xt){const Gt="horizontal"===this._orientation,Ke=this._itemPositions.findIndex(({drag:Ne,clientRect:Ae})=>{if(Ne===Ue)return!1;if(xt){const Oe=Gt?xt.x:xt.y;if(Ne===this._previousSwap.drag&&this._previousSwap.overlaps&&Oe===this._previousSwap.delta)return!1}return Gt?Qe>=Math.floor(Ae.left)&&Qe<Math.floor(Ae.right):Lt>=Math.floor(Ae.top)&&Lt<Math.floor(Ae.bottom)});return-1!==Ke&&this.sortPredicate(Ke,Ue,this)?Ke:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(Ue,Qe){return null!=this._clientRect&&R(this._clientRect,Ue,Qe)}_getSiblingContainerFromPosition(Ue,Qe,Lt){return this._siblings.find(xt=>xt._canReceive(Ue,Qe,Lt))}_canReceive(Ue,Qe,Lt){if(!this._clientRect||!R(this._clientRect,Qe,Lt)||!this.enterPredicate(Ue,this))return!1;const xt=this._getShadowRoot().elementFromPoint(Qe,Lt);if(!xt)return!1;const Gt=(0,j.fI)(this.element);return xt===Gt||Gt.contains(xt)}_startReceiving(Ue,Qe){const Lt=this._activeSiblings;!Lt.has(Ue)&&Qe.every(xt=>this.enterPredicate(xt,this)||this._draggables.indexOf(xt)>-1)&&(Lt.add(Ue),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(Ue){this._activeSiblings.delete(Ue),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ue=>{if(this.isDragging()){const Qe=this._parentPositions.handleScroll(Ue);Qe&&(this._itemPositions.forEach(({clientRect:Lt})=>{ee(Lt,Qe.top,Qe.left)}),this._itemPositions.forEach(({drag:Lt})=>{this._dragDropRegistry.isDragging(Lt)&&Lt._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Ue=(0,y.kV)((0,j.fI)(this.element));this._cachedShadowRoot=Ue||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Ue=this._activeDraggables.filter(Qe=>Qe.isDragging());
1this._siblings.forEach(Qe=>Qe._startReceiving(this,Ue))}}function vn(We,Ue){const{top:Qe,bottom:Lt,height:xt}=We,Gt=.05*xt;return Ue>=Qe-Gt&&Ue<=Qe+Gt?1:Ue>=Lt-Gt&&Ue<=Lt+Gt?2:0}function ln(We,Ue){const{left:Qe,right:Lt,width:xt}=We,Gt=.05*xt;return Ue>=Qe-Gt&&Ue<=Qe+Gt?1:Ue>=Lt-Gt&&Ue<=Lt+Gt?2:0}const Xe=(0,y.i$)({passive:!1,capture:!0});let qe=(()=>{class We{constructor(Qe,Lt){this._ngZone=Qe,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=xt=>xt.isDragging(),this.pointerMove=new L.xQ,this.pointerUp=new L.xQ,this.scroll=new L.xQ,this._preventDefaultWhileDragging=xt=>{this._activeDragInstances.length>0&&xt.preventDefault()},this._persistentTouchmoveListener=xt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&xt.preventDefault(),this.pointerMove.next(xt))},this._document=Lt}registerDropContainer(Qe){this._dropInstances.has(Qe)||this._dropInstances.add(Qe)}registerDragItem(Qe){this._dragInstances.add(Qe),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Xe)})}removeDropContainer(Qe){this._dropInstances.delete(Qe)}removeDragItem(Qe){this._dragInstances.delete(Qe),this.stopDragging(Qe),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Xe)}startDragging(Qe,Lt){if(!(this._activeDragInstances.indexOf(Qe)>-1)&&(this._activeDragInstances.push(Qe),1===this._activeDragInstances.length)){const xt=Lt.type.startsWith("touch");this._globalListeners.set(xt?"touchend":"mouseup",{handler:Gt=>this.pointerUp.next(Gt),options:!0}).set("scroll",{handler:Gt=>this.scroll.next(Gt),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Xe}),xt||this._globalListeners.set("mousemove",{handler:Gt=>this.pointerMove.next(Gt),options:Xe}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Gt,Ke)=>{this._document.addEventListener(Ke,Gt.handler,Gt.options)})})}}stopDragging(Qe){const Lt=this._activeDragInstances.indexOf(Qe);Lt>-1&&(this._activeDragInstances.splice(Lt,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Qe){return this._activeDragInstances.indexOf(Qe)>-1}scrolled(Qe){const Lt=[this.scroll];return Qe&&Qe!==this._document&&Lt.push(new $.y(xt=>this._ngZone.runOutsideAngular(()=>{const Ke=Ne=>{this._activeDragInstances.length&&xt.next(Ne)};return Qe.addEventListener("scroll",Ke,!0),()=>{Qe.removeEventListener("scroll",Ke,!0)}}))),(0,te.T)(...Lt)}ngOnDestroy(){this._dragInstances.forEach(Qe=>this.removeDragItem(Qe)),this._dropInstances.forEach(Qe=>this.removeDropContainer(Qe)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Qe,Lt)=>{this._document.removeEventListener(Lt,Qe.handler,Qe.options)}),this._globalListeners.clear()}}return We.\u0275fac=function(Qe){return new(Qe||We)(s.LFG(s.R0b),s.LFG(_.K0))},We.\u0275prov=s.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"}),We})();const Pe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let tt=(()=>{class We{constructor(Qe,Lt,xt,Gt){this._document=Qe,this._ngZone=Lt,this._viewportRuler=xt,this._dragDropRegistry=Gt}createDrag(Qe,Lt=Pe){return new Ce(Qe,Lt,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Qe){return new hn(Qe,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return We.\u0275fac=function(Qe){return new(Qe||We)(s.LFG(_.K0),s.LFG(s.R0b),s.LFG(P.rL),s.LFG(qe))},We.\u0275prov=s.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"}),We})();const bt=new s.OlP("CDK_DRAG_PARENT"),un=new s.OlP("CdkDropListGroup"),Et=new s.OlP("CDK_DRAG_CONFIG");let Wt=0;const Pt=new s.OlP("CdkDropList");let Dn=(()=>{class We{constructor(Qe,Lt,xt,Gt,Ke,Ne,Ae){this.element=Qe,this._changeDetectorRef=xt,this._scrollDispatcher=Gt,this._dir=Ke,this._group=Ne,this._destroyed=new L.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Wt++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new s.vpe,this.entered=new s.vpe,this.exited=new s.vpe,this.sorted=new s.vpe,this._unsortedItems=new Set,this._dropListRef=Lt.createDropList(Qe),this._dropListRef.data=this,Ae&&this._assignDefaults(Ae),this._dropListRef.enterPredicate=(Oe,Ye)=>this.enterPredicate(Oe.data,Ye.data),this._dropListRef.sortPredicate=(Oe,Ye,je)=>this.sortPredicate(Oe,Ye.data,je.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),We._dropLists.push(this),Ne&&Ne._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Qe){this._dropListRef.disabled=this._disabled=(0,j.Ig)(Qe)}addItem(Qe){this._unsortedItems.add(Qe),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Qe){this._unsortedItems.delete(Qe),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Qe,Lt)=>Qe._dragRef.getVisibleElement().compareDocumentPosition(Lt._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Qe=We._dropLists.indexOf(this);Qe>-1&&We._dropLists.splice(Qe,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Qe){this._dir&&this._dir.change.pipe((0,J.O)(this._dir.value),(0,le.R)(this._destroyed)).subscribe(Lt=>Qe.withDirection(Lt)),Qe.beforeStarted.subscribe(()=>{const Lt=(0,j.Eq)(this.connectedTo).map(xt=>"string"==typeof xt?We._dropLists.find(Ke=>Ke.id===xt):xt);
1if(this._group&&this._group._items.forEach(xt=>{-1===Lt.indexOf(xt)&&Lt.push(xt)}),!this._scrollableParentsResolved){const xt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Gt=>Gt.getElementRef().nativeElement);this._dropListRef.withScrollableParents(xt),this._scrollableParentsResolved=!0}Qe.disabled=this.disabled,Qe.lockAxis=this.lockAxis,Qe.sortingDisabled=(0,j.Ig)(this.sortingDisabled),Qe.autoScrollDisabled=(0,j.Ig)(this.autoScrollDisabled),Qe.autoScrollStep=(0,j.su)(this.autoScrollStep,2),Qe.connectedTo(Lt.filter(xt=>xt&&xt!==this).map(xt=>xt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Qe){Qe.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Qe.entered.subscribe(Lt=>{this.entered.emit({container:this,item:Lt.item.data,currentIndex:Lt.currentIndex})}),Qe.exited.subscribe(Lt=>{this.exited.emit({container:this,item:Lt.item.data}),this._changeDetectorRef.markForCheck()}),Qe.sorted.subscribe(Lt=>{this.sorted.emit({previousIndex:Lt.previousIndex,currentIndex:Lt.currentIndex,container:this,item:Lt.item.data})}),Qe.dropped.subscribe(Lt=>{this.dropped.emit({previousIndex:Lt.previousIndex,currentIndex:Lt.currentIndex,previousContainer:Lt.previousContainer.data,container:Lt.container.data,item:Lt.item.data,isPointerOverContainer:Lt.isPointerOverContainer,distance:Lt.distance,dropPoint:Lt.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Qe){const{lockAxis:Lt,draggingDisabled:xt,sortingDisabled:Gt,listAutoScrollDisabled:Ke,listOrientation:Ne}=Qe;this.disabled=null!=xt&&xt,this.sortingDisabled=null!=Gt&&Gt,this.autoScrollDisabled=null!=Ke&&Ke,this.orientation=Ne||"vertical",Lt&&(this.lockAxis=Lt)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Qe=>Qe._dragRef))}}return We._dropLists=[],We.\u0275fac=function(Qe){return new(Qe||We)(s.Y36(s.SBq),s.Y36(tt),s.Y36(s.sBO),s.Y36(P.mF),s.Y36(N.Is,8),s.Y36(un,12),s.Y36(Et,8))},We.\u0275dir=s.lG2({type:We,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Qe,Lt){2&Qe&&(s.uIk("id",Lt.id),s.ekj("cdk-drop-list-disabled",Lt.disabled)("cdk-drop-list-dragging",Lt._dropListRef.isDragging())("cdk-drop-list-receiving",Lt._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s._Bn([{provide:un,useValue:void 0},{provide:Pt,useExisting:We}])]}),We})();const Gn=new s.OlP("CdkDragHandle"),zn=new s.OlP("CdkDragPlaceholder"),Vn=new s.OlP("CdkDragPreview");let Mt=(()=>{class We{constructor(Qe,Lt,xt,Gt,Ke,Ne,Ae,Oe,Ye,je,Tt){this.element=Qe,this.dropContainer=Lt,this._ngZone=Gt,this._viewContainerRef=Ke,this._dir=Ae,this._changeDetectorRef=Ye,this._selfHandle=je,this._parentDrag=Tt,this._destroyed=new L.xQ,this.started=new s.vpe,this.released=new s.vpe,this.ended=new s.vpe,this.entered=new s.vpe,this.exited=new s.vpe,this.dropped=new s.vpe,this.moved=new $.y(rn=>{const On=this._dragRef.moved.pipe((0,Me.U)(xn=>({source:this,pointerPosition:xn.pointerPosition,event:xn.event,delta:xn.delta,distance:xn.distance}))).subscribe(rn);return()=>{On.unsubscribe()}}),this._dragRef=Oe.createDrag(Qe,{dragStartThreshold:Ne&&null!=Ne.dragStartThreshold?Ne.dragStartThreshold:5,pointerDirectionChangeThreshold:Ne&&null!=Ne.pointerDirectionChangeThreshold?Ne.pointerDirectionChangeThreshold:5,zIndex:null==Ne?void 0:Ne.zIndex}),this._dragRef.data=this,We._dragInstances.push(this),Ne&&this._assignDefaults(Ne),Lt&&(this._dragRef._withDropContainer(Lt._dropListRef),Lt.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Qe){this._disabled=(0,j.Ig)(Qe),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Re.q)(1),(0,le.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Qe){const Lt=Qe.rootElementSelector,xt=Qe.freeDragPosition;Lt&&!Lt.firstChange&&this._updateRootElement(),xt&&!xt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Qe=We._dragInstances.indexOf(this);Qe>-1&&We._dragInstances.splice(Qe,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var Qe;const Lt=this.element.nativeElement;let xt=Lt;this.rootElementSelector&&(xt=void 0!==Lt.closest?Lt.closest(this.rootElementSelector):null===(Qe=Lt.parentElement)||void 0===Qe?void 0:Qe.closest(this.rootElementSelector)),this._dragRef.withRootElement(xt||Lt)}_getBoundaryElement(){const Qe=this.boundaryElement;return Qe?"string"==typeof Qe?this.element.nativeElement.closest(Qe):(0,j.fI)(Qe):null}_syncInputs(Qe){Qe.beforeStarted.subscribe(()=>{if(!Qe.isDragging()){const Lt=this._dir,xt=this.dragStartDelay,Gt=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Ke=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Qe.disabled=this.disabled,Qe.lockAxis=this.lockAxis,Qe.dragStartDelay="object"==typeof xt&&xt?xt:(0,j.su)(xt),Qe.constrainPosition=this.constrainPosition,Qe.previewClass=this.previewClass,Qe.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Gt).withPreviewTemplate(Ke).withPreviewContainer(this.previewContainer||"global"),Lt&&Qe.withDirection(Lt.value)}}),Qe.beforeStarted.pipe((0,Re.q)(1)).subscribe(()=>{var Lt;if(this._parentDrag)return void Qe.withParent(this._parentDrag._dragRef);let xt=this.element.nativeElement.parentElement;for(;xt;){if(xt.classList.contains("cdk-drag")){Qe.withParent((null===(Lt=We._dragInstances.find(Gt=>Gt.element.nativeElement===xt))||void 0===Lt?void 0:Lt._dragRef)||null);break}xt=xt.parentElement}})}_handleEvents(Qe){Qe.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),Qe.released.subscribe(()=>
1{this.released.emit({source:this})}),Qe.ended.subscribe(Lt=>{this.ended.emit({source:this,distance:Lt.distance,dropPoint:Lt.dropPoint}),this._changeDetectorRef.markForCheck()}),Qe.entered.subscribe(Lt=>{this.entered.emit({container:Lt.container.data,item:this,currentIndex:Lt.currentIndex})}),Qe.exited.subscribe(Lt=>{this.exited.emit({container:Lt.container.data,item:this})}),Qe.dropped.subscribe(Lt=>{this.dropped.emit({previousIndex:Lt.previousIndex,currentIndex:Lt.currentIndex,previousContainer:Lt.previousContainer.data,container:Lt.container.data,isPointerOverContainer:Lt.isPointerOverContainer,item:this,distance:Lt.distance,dropPoint:Lt.dropPoint})})}_assignDefaults(Qe){const{lockAxis:Lt,dragStartDelay:xt,constrainPosition:Gt,previewClass:Ke,boundaryElement:Ne,draggingDisabled:Ae,rootElementSelector:Oe,previewContainer:Ye}=Qe;this.disabled=null!=Ae&&Ae,this.dragStartDelay=xt||0,Lt&&(this.lockAxis=Lt),Gt&&(this.constrainPosition=Gt),Ke&&(this.previewClass=Ke),Ne&&(this.boundaryElement=Ne),Oe&&(this.rootElementSelector=Oe),Ye&&(this.previewContainer=Ye)}_setupHandlesListener(){this._handles.changes.pipe((0,J.O)(this._handles),(0,me.b)(Qe=>{const Lt=Qe.filter(xt=>xt._parentDrag===this).map(xt=>xt.element);this._selfHandle&&this.rootElementSelector&&Lt.push(this.element),this._dragRef.withHandles(Lt)}),(0,Q.w)(Qe=>(0,te.T)(...Qe.map(Lt=>Lt._stateChanges.pipe((0,J.O)(Lt))))),(0,le.R)(this._destroyed)).subscribe(Qe=>{const Lt=this._dragRef,xt=Qe.element.nativeElement;Qe.disabled?Lt.disableHandle(xt):Lt.enableHandle(xt)})}}return We._dragInstances=[],We.\u0275fac=function(Qe){return new(Qe||We)(s.Y36(s.SBq),s.Y36(Pt,12),s.Y36(_.K0),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(Et,8),s.Y36(N.Is,8),s.Y36(tt),s.Y36(s.sBO),s.Y36(Gn,10),s.Y36(bt,12))},We.\u0275dir=s.lG2({type:We,selectors:[["","cdkDrag",""]],contentQueries:function(Qe,Lt,xt){if(1&Qe&&(s.Suo(xt,Vn,5),s.Suo(xt,zn,5),s.Suo(xt,Gn,5)),2&Qe){let Gt;s.iGM(Gt=s.CRH())&&(Lt._previewTemplate=Gt.first),s.iGM(Gt=s.CRH())&&(Lt._placeholderTemplate=Gt.first),s.iGM(Gt=s.CRH())&&(Lt._handles=Gt)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Qe,Lt){2&Qe&&s.ekj("cdk-drag-disabled",Lt.disabled)("cdk-drag-dragging",Lt._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s._Bn([{provide:bt,useExisting:We}]),s.TTD]}),We})(),kt=(()=>{class We{}return We.\u0275fac=function(Qe){return new(Qe||We)},We.\u0275mod=s.oAB({type:We}),We.\u0275inj=s.cJS({providers:[tt],imports:[P.ZD]}),We})()},1159:(Qt,Z,S)=>{"use strict";S.d(Z,{A:()=>ke,JH:()=>Y,JU:()=>L,K5:()=>D,Ku:()=>J,LH:()=>P,L_:()=>le,MW:()=>Rt,Mf:()=>y,SV:()=>N,Sd:()=>me,VM:()=>Me,Vb:()=>fs,Z:()=>Et,ZH:()=>_,aO:()=>he,b2:()=>qs,hY:()=>te,jx:()=>ce,oh:()=>Q,uR:()=>Re,xE:()=>E,yY:()=>ne,zL:()=>W});const _=8,y=9,D=13,L=16,ce=17,W=18,te=27,le=32,J=33,Me=34,Re=35,me=36,Q=37,P=38,N=39,Y=40,ne=46,E=48,he=57,ke=65,Et=90,Rt=91,qs=224;function fs(or,...vs){return vs.length?vs.some(go=>or[go]):or.altKey||or.shiftKey||or.ctrlKey||or.metaKey}},5113:(Qt,Z,S)=>{"use strict";S.d(Z,{Yg:()=>Y,u3:()=>re,xu:()=>Me});var s=S(5e3),_=S(3191),y=S(8929),j=S(6053),D=S(1221),L=S(6498),ce=S(2986),W=S(1307),G=S(13),$=S(4850),te=S(1059),le=S(7625),J=S(925);let Me=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({}),V})();const Re=new Set;let me,Q=(()=>{class V{constructor(E){this._platform=E,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):N}matchMedia(E){return(this._platform.WEBKIT||this._platform.BLINK)&&function P(V){if(!Re.has(V))try{me||(me=document.createElement("style"),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${V} {body{ }}`,0),Re.add(V))}catch(ne){console.error(ne)}}(E),this._matchMedia(E)}}return V.\u0275fac=function(E){return new(E||V)(s.LFG(J.t4))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function N(V){return{matches:"all"===V||""===V,media:V,addListener:()=>{},removeListener:()=>{}}}let Y=(()=>{class V{constructor(E,M){this._mediaMatcher=E,this._zone=M,this._queries=new Map,this._destroySubject=ne
1w y.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(E){return de((0,_.Eq)(E)).some(A=>this._registerQuery(A).mql.matches)}observe(E){const A=de((0,_.Eq)(E)).map(ee=>this._registerQuery(ee).observable);let R=(0,j.aj)(A);return R=(0,D.z)(R.pipe((0,ce.q)(1)),R.pipe((0,W.T)(1),(0,G.b)(0))),R.pipe((0,$.U)(ee=>{const B={matches:!1,breakpoints:{}};return ee.forEach(({matches:K,query:ge})=>{B.matches=B.matches||K,B.breakpoints[ge]=K}),B}))}_registerQuery(E){if(this._queries.has(E))return this._queries.get(E);const M=this._mediaMatcher.matchMedia(E),R={observable:new L.y(ee=>{const B=K=>this._zone.run(()=>ee.next(K));return M.addListener(B),()=>{M.removeListener(B)}}).pipe((0,te.O)(M),(0,$.U)(({matches:ee})=>({query:E,matches:ee})),(0,le.R)(this._destroySubject)),mql:M};return this._queries.set(E,R),R}}return V.\u0275fac=function(E){return new(E||V)(s.LFG(Q),s.LFG(s.R0b))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function de(V){return V.map(ne=>ne.split(",")).reduce((ne,E)=>ne.concat(E)).map(ne=>ne.trim())}const re={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(Qt,Z,S)=>{"use strict";S.d(Z,{Q8:()=>G,wD:()=>W});var s=S(3191),_=S(5e3),y=S(6498),j=S(8929),D=S(13);let L=(()=>{class ${create(le){return"undefined"==typeof MutationObserver?null:new MutationObserver(le)}}return $.\u0275fac=function(le){return new(le||$)},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),ce=(()=>{class ${constructor(le){this._mutationObserverFactory=le,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((le,J)=>this._cleanupObserver(J))}observe(le){const J=(0,s.fI)(le);return new y.y(Me=>{const me=this._observeElement(J).subscribe(Me);return()=>{me.unsubscribe(),this._unobserveElement(J)}})}_observeElement(le){if(this._observedElements.has(le))this._observedElements.get(le).count++;else{const J=new j.xQ,Me=this._mutationObserverFactory.create(Re=>J.next(Re));Me&&Me.observe(le,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(le,{observer:Me,stream:J,count:1})}return this._observedElements.get(le).stream}_unobserveElement(le){this._observedElements.has(le)&&(this._observedElements.get(le).count--,this._observedElements.get(le).count||this._cleanupObserver(le))}_cleanupObserver(le){if(this._observedElements.has(le)){const{observer:J,stream:Me}=this._observedElements.get(le);J&&J.disconnect(),Me.complete(),this._observedElements.delete(le)}}}return $.\u0275fac=function(le){return new(le||$)(_.LFG(L))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),W=(()=>{class ${constructor(le,J,Me){this._contentObserver=le,this._elementRef=J,this._ngZone=Me,this.event=new _.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(le){this._disabled=(0,s.Ig)(le),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(le){this._debounce=(0,s.su)(le),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const le=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?le.pipe((0,D.b)(this.debounce)):le).subscribe(this.event)})}_unsubscribe(){var le;null===(le=this._currentSubscription)||void 0===le||le.unsubscribe()}}return $.\u0275fac=function(le){return new(le||$)(_.Y36(ce),_.Y36(_.SBq),_.Y36(_.R0b))},$.\u0275dir=_.lG2({type:$,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),$})(),G=(()=>{class ${}return $.\u0275fac=function(le){return new(le||$)},$.\u0275mod=_.oAB({type:$}),$.\u0275inj=_.cJS({providers:[L]}),$})()},2845:(Qt,Z,S)=>{"use strict";S.d(Z,{pI:()=>cn,xu:()=>jt,_G:()=>Se,aV:()=>Ft,X_:()=>A,Xj:()=>he,U8:()=>ln});var s=S(9071),_=S(9808),y=S(5e3),j=S(3191),D=S(925),L=S(226),ce=S(7429),W=S(8929),G=S(2654),$=S(6787),te=S(2986),le=S(7625),J=S(3489);class Re{constructor(qe,Pe){this.predicate=qe,this.inclusive=Pe}call(qe,Pe){return Pe.subscribe(new me(qe,this.predicate,this.inclusive))}}class me extends J.L{constructor(qe,Pe,tt){super(qe),this.predicate=Pe,this.inclusive=tt,this.index=0}_next(qe){const Pe=this.destination;let tt;try{tt=this.predicate(qe,this.index++)}catch(bt){return void Pe.error(bt)}this.nextOrComplete(qe,tt)}nextOrComplete(qe,Pe){const tt=this.destination;Boolean(Pe)?tt.next(qe):(this.inclusive&&tt.next(qe),tt.complete())}}var Q=S(1159);const P=(0,D.Mq)();
1class N{constructor(qe,Pe){this._viewportRuler=qe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Pe}attach(){}enable(){if(this._canBeEnabled()){const qe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=qe.style.left||"",this._previousHTMLStyles.top=qe.style.top||"",qe.style.left=(0,j.HM)(-this._previousScrollPosition.left),qe.style.top=(0,j.HM)(-this._previousScrollPosition.top),qe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const qe=this._document.documentElement,tt=qe.style,bt=this._document.body.style,un=tt.scrollBehavior||"",It=bt.scrollBehavior||"";this._isEnabled=!1,tt.left=this._previousHTMLStyles.left,tt.top=this._previousHTMLStyles.top,qe.classList.remove("cdk-global-scrollblock"),P&&(tt.scrollBehavior=bt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),P&&(tt.scrollBehavior=un,bt.scrollBehavior=It)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Pe=this._document.body,tt=this._viewportRuler.getViewportSize();return Pe.scrollHeight>tt.height||Pe.scrollWidth>tt.width}}class de{constructor(qe,Pe,tt,bt){this._scrollDispatcher=qe,this._ngZone=Pe,this._viewportRuler=tt,this._config=bt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(qe){this._overlayRef=qe}enable(){if(this._scrollSubscription)return;const qe=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=qe.subscribe(()=>{const Pe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Pe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=qe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class re{enable(){}disable(){}attach(){}}function V(Xe,qe){return qe.some(Pe=>Xe.bottom<Pe.top||Xe.top>Pe.bottom||Xe.right<Pe.left||Xe.left>Pe.right)}function ne(Xe,qe){return qe.some(Pe=>Xe.top<Pe.top||Xe.bottom>Pe.bottom||Xe.left<Pe.left||Xe.right>Pe.right)}class E{constructor(qe,Pe,tt,bt){this._scrollDispatcher=qe,this._viewportRuler=Pe,this._ngZone=tt,this._config=bt,this._scrollSubscription=null}attach(qe){this._overlayRef=qe}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 Pe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:tt,height:bt}=this._viewportRuler.getViewportSize();V(Pe,[{width:tt,height:bt,bottom:bt,right:tt,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 M=(()=>{class Xe{constructor(Pe,tt,bt,un){this._scrollDispatcher=Pe,this._viewportRuler=tt,this._ngZone=bt,this.noop=()=>new re,this.close=It=>new de(this._scrollDispatcher,this._ngZone,this._viewportRuler,It),this.block=()=>new N(this._viewportRuler,this._document),this.reposition=It=>new E(this._scrollDispatcher,this._viewportRuler,this._ngZone,It),this._document=un}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(s.mF),y.LFG(s.rL),y.LFG(y.R0b),y.LFG(_.K0))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();class A{constructor(qe){if(this.scrollStrategy=new re,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,qe){const Pe=Object.keys(qe);for(const tt of Pe)void 0!==qe[tt]&&(this[tt]=qe[tt])}}}class B{constructor(qe,Pe){this.connectionPair=qe,this.scrollableViewProperties=Pe}}class Fe{constructor(qe,Pe,tt,bt,un,It,Et,Rt,Wt){this._portalOutlet=qe,this._host=Pe,this._pane=tt,this._config=bt,this._ngZone=un,this._keyboardDispatcher=It,this._document=Et,this._location=Rt,this._outsideClickDispatcher=Wt,this._backdropElement=null,this._backdropClick=new W.xQ,this._attachments=new W.xQ,this._detachments=new W.xQ,this._locationChanges=G.w.EMPTY,this._backdropClickHandler=Pt=>this._backdropClick.next(Pt),this._backdropTransitionendHandler=Pt=>{this._disposeBackdrop(Pt.target)}
1,this._keydownEvents=new W.xQ,this._outsidePointerEvents=new W.xQ,bt.scrollStrategy&&(this._scrollStrategy=bt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=bt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(qe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Pe=this._portalOutlet.attach(qe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,te.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),Pe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const qe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),qe}dispose(){var qe;const Pe=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),null===(qe=this._host)||void 0===qe||qe.remove(),this._previousHostParent=this._pane=this._host=null,Pe&&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(qe){qe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=qe,this.hasAttached()&&(qe.attach(this),this.updatePosition()))}updateSize(qe){this._config=Object.assign(Object.assign({},this._config),qe),this._updateElementSize()}setDirection(qe){this._config=Object.assign(Object.assign({},this._config),{direction:qe}),this._updateElementDirection()}addPanelClass(qe){this._pane&&this._toggleClasses(this._pane,qe,!0)}removePanelClass(qe){this._pane&&this._toggleClasses(this._pane,qe,!1)}getDirection(){const qe=this._config.direction;return qe?"string"==typeof qe?qe:qe.value:"ltr"}updateScrollStrategy(qe){qe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=qe,this.hasAttached()&&(qe.attach(this),qe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const qe=this._pane.style;qe.width=(0,j.HM)(this._config.width),qe.height=(0,j.HM)(this._config.height),qe.minWidth=(0,j.HM)(this._config.minWidth),qe.minHeight=(0,j.HM)(this._config.minHeight),qe.maxWidth=(0,j.HM)(this._config.maxWidth),qe.maxHeight=(0,j.HM)(this._config.maxHeight)}_togglePointerEvents(qe){this._pane.style.pointerEvents=qe?"":"none"}_attachBackdrop(){const qe="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(qe)})}):this._backdropElement.classList.add(qe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const qe=this._backdropElement;!qe||(qe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{qe.addEventListener("transitionend",this._backdropTransitionendHandler)}),qe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(qe)},500)))}_toggleClasses(qe,Pe,tt){const bt=(0,j.Eq)(Pe||[]).filter(un=>!!un);bt.length&&(tt?qe.classList.add(...bt):qe.classList.remove(...bt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const qe=this._ngZone.onStable.pipe((0,le.R)((0,$.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()),qe.unsubscribe())})})}_disposeScrollStrategy(){const qe=this._scrollStrategy;qe&&(qe.disable(),qe.detach&&qe.detach())}_disposeBackdrop(qe){qe&&(qe.removeEventListener("click",this._backdropClickHandler),qe.removeEventListener("transitionend",this._backdropTransitionendHandler),qe.remove(),this._backdropElement===qe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let he=(()=>{class Xe{constructor(Pe,tt){this._platform=tt,this._document=Pe}ngOnDestroy(){var Pe;null===(Pe=this._containerElement)||void 0===Pe||Pe.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Pe="cdk-overlay-container";if(this._platform.isBrowser||(0,D.Oy)()){const bt=this._document.querySelectorAll(`.${Pe}[platform="server"], .${Pe}[platform="test"]`);for(let un=0;un<bt.length;un++)bt[un].remove()}const tt=this._document.createElement("div");tt.classList.add(Pe),(0,D.Oy)()?tt.setAttribute("platform","test"):this._platform.isBrowser||tt.setAttribute("platform","server"),this._document.body.appendChild(tt),this._containerElement=tt}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(_.K0),y.LFG(D.t4))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();const fe="cdk-overlay-connected-position-bounding-box",Ie=/([A-Za-z%]+)$/;
vendor: 4,929 bytes, line 1
1class Se{constructor(qe,Pe,tt,bt,un){this._viewportRuler=Pe,this._document=tt,this._platform=bt,this._overlayContainer=un,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 W.xQ,this._resizeSubscription=G.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(qe)}get positions(){return this._preferredPositions}attach(qe){this._validatePositions(),qe.hostElement.classList.add(fe),this._overlayRef=qe,this._boundingBox=qe.hostElement,this._pane=qe.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 qe=this._originRect,Pe=this._overlayRect,tt=this._viewportRect,bt=this._containerRect,un=[];let It;for(let Et of this._preferredPositions){let Rt=this._getOriginPoint(qe,bt,Et),Wt=this._getOverlayPoint(Rt,Pe,Et),Pt=this._getOverlayFit(Wt,Pe,tt,Et);if(Pt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Et,Rt);this._canFitWithFlexibleDimensions(Pt,Wt,tt)?un.push({position:Et,origin:Rt,overlayRect:Pe,boundingBoxRect:this._calculateBoundingBoxRect(Rt,Et)}):(!It||It.overlayFit.visibleArea<Pt.visibleArea)&&(It={overlayFit:Pt,overlayPoint:Wt,originPoint:Rt,position:Et,overlayRect:Pe})}if(un.length){let Et=null,Rt=-1;for(const Wt of un){const Pt=Wt.boundingBoxRect.width*Wt.boundingBoxRect.height*(Wt.position.weight||1);Pt>Rt&&(Rt=Pt,Et=Wt)}return this._isPushed=!1,void this._applyPosition(Et.position,Et.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(It.position,It.originPoint);this._applyPosition(It.position,It.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&pe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const qe=this._lastPosition;if(qe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Pe=this._getOriginPoint(this._originRect,this._containerRect,qe);this._applyPosition(qe,Pe)}else this.apply()}withScrollableContainers(qe){return this._scrollables=qe,this}withPositions(qe){return this._preferredPositions=qe,-1===qe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(qe){return this._viewportMargin=qe,this}withFlexibleDimensions(qe=!0){return this._hasFlexibleDimensions=qe,this}withGrowAfterOpen(qe=!0){return this._growAfterOpen=qe,this}withPush(qe=!0){return this._canPush=qe,this}withLockedPosition(qe=!0){return this._positionLocked=qe,this}setOrigin(qe){return this._origin=qe,this}withDefaultOffsetX(qe){return this._offsetX=qe,this}withDefaultOffsetY(qe){return this._offsetY=qe,this}withTransformOriginOn(qe){return this._transformOriginSelector=qe,this}_getOriginPoint(qe,Pe,tt){let bt,un;if("center"==tt.originX)bt=qe.left+qe.width/2;else{const It=this._isRtl()?qe.right:qe.left,Et=this._isRtl()?qe.left:qe.right;bt="start"==tt.originX?It:Et}return Pe.left<0&&(bt-=Pe.left),un="center"==tt.originY?qe.top+qe.height/2:"top"==tt.originY?qe.top:qe.bottom,Pe.top<0&&(un-=Pe.top),{x:bt,y:un}}_getOverlayPoint(qe,Pe,tt){let bt,un;return bt="center"==tt.overlayX?-Pe.width/2:"start"===tt.overlayX?this._isRtl()?-Pe.width:0:this._isRtl()?0:-Pe.width,un="center"==tt.overlayY?-Pe.height/2:"top"==tt.overlayY?0:-Pe.height,{x:qe.x+bt,y:qe.y+un}}_getOverlayFit(qe,Pe,tt,bt){const un=ae(Pe);let{x:It,y:Et}=qe,Rt=this._getOffset(bt,"x"),Wt=this._getOffset(bt,"y");Rt&&(It+=Rt),Wt&&(Et+=Wt);let Gn=0-Et,Zn=Et+un.height-tt.height,zn=this._subtractOverflows(u
vendor: 6,581 bytes, line 1
1n.width,0-It,It+un.width-tt.width),nn=this._subtractOverflows(un.height,Gn,Zn),Vn=zn*nn;return{visibleArea:Vn,isCompletelyWithinViewport:un.width*un.height===Vn,fitsInViewportVertically:nn===un.height,fitsInViewportHorizontally:zn==un.width}}_canFitWithFlexibleDimensions(qe,Pe,tt){if(this._hasFlexibleDimensions){const bt=tt.bottom-Pe.y,un=tt.right-Pe.x,It=ke(this._overlayRef.getConfig().minHeight),Et=ke(this._overlayRef.getConfig().minWidth),Wt=qe.fitsInViewportHorizontally||null!=Et&&Et<=un;return(qe.fitsInViewportVertically||null!=It&&It<=bt)&&Wt}return!1}_pushOverlayOnScreen(qe,Pe,tt){if(this._previousPushAmount&&this._positionLocked)return{x:qe.x+this._previousPushAmount.x,y:qe.y+this._previousPushAmount.y};const bt=ae(Pe),un=this._viewportRect,It=Math.max(qe.x+bt.width-un.width,0),Et=Math.max(qe.y+bt.height-un.height,0),Rt=Math.max(un.top-tt.top-qe.y,0),Wt=Math.max(un.left-tt.left-qe.x,0);let Pt=0,Dn=0;return Pt=bt.width<=un.width?Wt||-It:qe.x<this._viewportMargin?un.left-tt.left-qe.x:0,Dn=bt.height<=un.height?Rt||-Et:qe.y<this._viewportMargin?un.top-tt.top-qe.y:0,this._previousPushAmount={x:Pt,y:Dn},{x:qe.x+Pt,y:qe.y+Dn}}_applyPosition(qe,Pe){if(this._setTransformOrigin(qe),this._setOverlayElementStyles(Pe,qe),this._setBoundingBoxStyles(Pe,qe),qe.panelClass&&this._addPanelClasses(qe.panelClass),this._lastPosition=qe,this._positionChanges.observers.length){const tt=this._getScrollVisibility(),bt=new B(qe,tt);this._positionChanges.next(bt)}this._isInitialRender=!1}_setTransformOrigin(qe){if(!this._transformOriginSelector)return;const Pe=this._boundingBox.querySelectorAll(this._transformOriginSelector);let tt,bt=qe.overlayY;tt="center"===qe.overlayX?"center":this._isRtl()?"start"===qe.overlayX?"right":"left":"start"===qe.overlayX?"left":"right";for(let un=0;un<Pe.length;un++)Pe[un].style.transformOrigin=`${tt} ${bt}`}_calculateBoundingBoxRect(qe,Pe){const tt=this._viewportRect,bt=this._isRtl();let un,It,Et,Pt,Dn,Gn;if("top"===Pe.overlayY)It=qe.y,un=tt.height-It+this._viewportMargin;else if("bottom"===Pe.overlayY)Et=tt.height-qe.y+2*this._viewportMargin,un=tt.height-Et+this._viewportMargin;else{const Zn=Math.min(tt.bottom-qe.y+tt.top,qe.y),zn=this._lastBoundingBoxSize.height;un=2*Zn,It=qe.y-Zn,un>zn&&!this._isInitialRender&&!this._growAfterOpen&&(It=qe.y-zn/2)}if("end"===Pe.overlayX&&!bt||"start"===Pe.overlayX&&bt)Gn=tt.width-qe.x+this._viewportMargin,Pt=qe.x-this._viewportMargin;else if("start"===Pe.overlayX&&!bt||"end"===Pe.overlayX&&bt)Dn=qe.x,Pt=tt.right-qe.x;else{const Zn=Math.min(tt.right-qe.x+tt.left,qe.x),zn=this._lastBoundingBoxSize.width;Pt=2*Zn,Dn=qe.x-Zn,Pt>zn&&!this._isInitialRender&&!this._growAfterOpen&&(Dn=qe.x-zn/2)}return{top:It,left:Dn,bottom:Et,right:Gn,width:Pt,height:un}}_setBoundingBoxStyles(qe,Pe){const tt=this._calculateBoundingBoxRect(qe,Pe);!this._isInitialRender&&!this._growAfterOpen&&(tt.height=Math.min(tt.height,this._lastBoundingBoxSize.height),tt.width=Math.min(tt.width,this._lastBoundingBoxSize.width));const bt={};if(this._hasExactPosition())bt.top=bt.left="0",bt.bottom=bt.right=bt.maxHeight=bt.maxWidth="",bt.width=bt.height="100%";else{const un=this._overlayRef.getConfig().maxHeight,It=this._overlayRef.getConfig().maxWidth;bt.height=(0,j.HM)(tt.height),bt.top=(0,j.HM)(tt.top),bt.bottom=(0,j.HM)(tt.bottom),bt.width=(0,j.HM)(tt.width),bt.left=(0,j.HM)(tt.left),bt.right=(0,j.HM)(tt.right),bt.alignItems="center"===Pe.overlayX?"center":"end"===Pe.overlayX?"flex-end":"flex-start",bt.justifyContent="center"===Pe.overlayY?"center":"bottom"===Pe.overlayY?"flex-end":"flex-start",un&&(bt.maxHeight=(0,j.HM)(un)),It&&(bt.maxWidth=(0,j.HM)(It))}this._lastBoundingBoxSize=tt,pe(this._boundingBox.style,bt)}_resetBoundingBoxStyles(){pe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){pe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(qe,Pe){const tt={},bt=this._hasExactPosition(),un=this._hasFlexibleDimensions,It=this._overlayRef.getConfig();if(bt){const Pt=this._viewportRuler.getViewportScrollPosition();pe(tt,this._getExactOverlayY(Pe,qe,Pt)),pe(tt,this._getExactOverlayX(Pe,qe,Pt))}else tt.position="static";let Et="",Rt=this._getOffset(Pe,"x"),Wt=this._getOffset(Pe,"y");Rt&&(Et+=`translateX(${Rt}px) `),Wt&&(Et+=`translateY(${Wt}px)`),tt.transform=Et.trim(),It.maxHeight&&(bt?tt.maxHeight=(0,j.HM)(It.maxHeight):un&&(tt.maxHeight="")),It.maxWidth&&(bt?tt.maxWidth=(0,j.HM)(It.maxWidth):un&&(tt.maxWidth="")),pe(this._pane.style,tt)}_getExactOverlayY(qe,Pe,tt){let bt={top:"",bottom:""},un=this._getOverlayPoint(Pe,this._overlayRect,qe);return this._isPushed&&(un=this._pushOverlayOnScreen(un,this._overlayRect,tt)),"bottom"===qe.overlayY?bt.bottom=this._document.documentElement.clientHeight-(un.y+this._overlayRect.height)+"px":bt.top=(0,j.HM)(un.y),bt}_getExactOverlayX(qe,Pe,tt){let It,bt={left:"",right:""},un=this._getOverlayPoint(Pe,this._overlayRect,qe);return this._isPushed&&(un=this._pushOverlayOnScreen(un,this._overlayRect,tt)),It=this._isRtl()?"end"===qe.overlayX?"left":"right":"end"===qe.overlayX?"right":"left","right"===It?bt.right=this._document.documentElement.clientWidth-(un.x+this._overlayRect.width)+"px":bt.left=(0,j.HM)(un.x),bt}_getScrollVisibility(){const qe=this._getOriginRect(),Pe=this._pane.getBoundingClientRect(),tt=this._scrollables.map(bt=>bt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ne(qe,tt),isOriginOutsideView:V(qe,tt),isOverlayClipped:ne(Pe,tt),isOverlayOutsideView:V(Pe,tt)}}_subtractOverflows(qe,...Pe){return Pe.reduce((tt,bt)=>tt-Math.max(bt,0),qe)}_getNarrowedViewportRect(){const qe=this._document.documentElement.clientWidth,Pe=this._document.documentElement.clientHeight,tt=this._viewportRuler.getViewportScrollPosition();return{top:tt.top+this._viewportMargin,left:tt.left+this._viewportMargin,right:tt.left+qe-this._viewportMargin,bottom:tt.top+Pe-this._viewportMargin,width:qe-2*this._viewportMargin,height:Pe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(qe,Pe){return"x"===Pe?null==qe.offsetX?this._offsetX:qe.offsetX:null==qe.offsetY?this._offsetY:qe.offsetY}_validatePositions(){}_addPanelClasses(qe){this._pane&&(0,j.Eq)(qe).forEach(Pe=>{""!==Pe&&-1===this._appliedPanelClasses.indexOf(Pe)&&(this._appliedPanelClasses.push(Pe),this._pane.classList.add(Pe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEac
1h(qe=>{this._pane.classList.remove(qe)}),this._appliedPanelClasses=[])}_getOriginRect(){const qe=this._origin;if(qe instanceof y.SBq)return qe.nativeElement.getBoundingClientRect();if(qe instanceof Element)return qe.getBoundingClientRect();const Pe=qe.width||0,tt=qe.height||0;return{top:qe.y,bottom:qe.y+tt,left:qe.x,right:qe.x+Pe,height:tt,width:Pe}}}function pe(Xe,qe){for(let Pe in qe)qe.hasOwnProperty(Pe)&&(Xe[Pe]=qe[Pe]);return Xe}function ke(Xe){if("number"!=typeof Xe&&null!=Xe){const[qe,Pe]=Xe.split(Ie);return Pe&&"px"!==Pe?null:parseFloat(qe)}return Xe||null}function ae(Xe){return{top:Math.floor(Xe.top),right:Math.floor(Xe.right),bottom:Math.floor(Xe.bottom),left:Math.floor(Xe.left),width:Math.floor(Xe.width),height:Math.floor(Xe.height)}}const Ce="cdk-global-overlay-wrapper";class Ve{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(qe){const Pe=qe.getConfig();this._overlayRef=qe,this._width&&!Pe.width&&qe.updateSize({width:this._width}),this._height&&!Pe.height&&qe.updateSize({height:this._height}),qe.hostElement.classList.add(Ce),this._isDisposed=!1}top(qe=""){return this._bottomOffset="",this._topOffset=qe,this._alignItems="flex-start",this}left(qe=""){return this._rightOffset="",this._leftOffset=qe,this._justifyContent="flex-start",this}bottom(qe=""){return this._topOffset="",this._bottomOffset=qe,this._alignItems="flex-end",this}right(qe=""){return this._leftOffset="",this._rightOffset=qe,this._justifyContent="flex-end",this}width(qe=""){return this._overlayRef?this._overlayRef.updateSize({width:qe}):this._width=qe,this}height(qe=""){return this._overlayRef?this._overlayRef.updateSize({height:qe}):this._height=qe,this}centerHorizontally(qe=""){return this.left(qe),this._justifyContent="center",this}centerVertically(qe=""){return this.top(qe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const qe=this._overlayRef.overlayElement.style,Pe=this._overlayRef.hostElement.style,tt=this._overlayRef.getConfig(),{width:bt,height:un,maxWidth:It,maxHeight:Et}=tt,Rt=!("100%"!==bt&&"100vw"!==bt||It&&"100%"!==It&&"100vw"!==It),Wt=!("100%"!==un&&"100vh"!==un||Et&&"100%"!==Et&&"100vh"!==Et);qe.position=this._cssPosition,qe.marginLeft=Rt?"0":this._leftOffset,qe.marginTop=Wt?"0":this._topOffset,qe.marginBottom=this._bottomOffset,qe.marginRight=this._rightOffset,Rt?Pe.justifyContent="flex-start":"center"===this._justifyContent?Pe.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?Pe.justifyContent="flex-end":"flex-end"===this._justifyContent&&(Pe.justifyContent="flex-start"):Pe.justifyContent=this._justifyContent,Pe.alignItems=Wt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const qe=this._overlayRef.overlayElement.style,Pe=this._overlayRef.hostElement,tt=Pe.style;Pe.classList.remove(Ce),tt.justifyContent=tt.alignItems=qe.marginTop=qe.marginBottom=qe.marginLeft=qe.marginRight=qe.position="",this._overlayRef=null,this._isDisposed=!0}}let Be=(()=>{class Xe{constructor(Pe,tt,bt,un){this._viewportRuler=Pe,this._document=tt,this._platform=bt,this._overlayContainer=un}global(){return new Ve}flexibleConnectedTo(Pe){return new Se(Pe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(s.rL),y.LFG(_.K0),y.LFG(D.t4),y.LFG(he))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),ut=(()=>{class Xe{constructor(Pe){this._attachedOverlays=[],this._document=Pe}ngOnDestroy(){this.detach()}add(Pe){this.remove(Pe),this._attachedOverlays.push(Pe)}remove(Pe){const tt=this._attachedOverlays.indexOf(Pe);tt>-1&&this._attachedOverlays.splice(tt,1),0===this._attachedOverlays.length&&this.detach()}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(_.K0))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Ge=(()=>{class Xe extends ut{constructor(Pe,tt){super(Pe),this._ngZone=tt,this._key
1downListener=bt=>{const un=this._attachedOverlays;for(let It=un.length-1;It>-1;It--)if(un[It]._keydownEvents.observers.length>0){const Et=un[It]._keydownEvents;this._ngZone?this._ngZone.run(()=>Et.next(bt)):Et.next(bt);break}}}add(Pe){super.add(Pe),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 Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(_.K0),y.LFG(y.R0b,8))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),wt=(()=>{class Xe extends ut{constructor(Pe,tt,bt){super(Pe),this._platform=tt,this._ngZone=bt,this._cursorStyleIsSet=!1,this._pointerDownListener=un=>{this._pointerDownEventTarget=(0,D.sA)(un)},this._clickListener=un=>{const It=(0,D.sA)(un),Et="click"===un.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:It;this._pointerDownEventTarget=null;const Rt=this._attachedOverlays.slice();for(let Wt=Rt.length-1;Wt>-1;Wt--){const Pt=Rt[Wt];if(Pt._outsidePointerEvents.observers.length<1||!Pt.hasAttached())continue;if(Pt.overlayElement.contains(It)||Pt.overlayElement.contains(Et))break;const Dn=Pt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Dn.next(un)):Dn.next(un)}}}add(Pe){if(super.add(Pe),!this._isAttached){const tt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(tt)):this._addEventListeners(tt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=tt.style.cursor,tt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Pe=this._document.body;Pe.removeEventListener("pointerdown",this._pointerDownListener,!0),Pe.removeEventListener("click",this._clickListener,!0),Pe.removeEventListener("auxclick",this._clickListener,!0),Pe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Pe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Pe){Pe.addEventListener("pointerdown",this._pointerDownListener,!0),Pe.addEventListener("click",this._clickListener,!0),Pe.addEventListener("auxclick",this._clickListener,!0),Pe.addEventListener("contextmenu",this._clickListener,!0)}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(_.K0),y.LFG(D.t4),y.LFG(y.R0b,8))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Ot=0,Ft=(()=>{class Xe{constructor(Pe,tt,bt,un,It,Et,Rt,Wt,Pt,Dn,Gn){this.scrollStrategies=Pe,this._overlayContainer=tt,this._componentFactoryResolver=bt,this._positionBuilder=un,this._keyboardDispatcher=It,this._injector=Et,this._ngZone=Rt,this._document=Wt,this._directionality=Pt,this._location=Dn,this._outsideClickDispatcher=Gn}create(Pe){const tt=this._createHostElement(),bt=this._createPaneElement(tt),un=this._createPortalOutlet(bt),It=new A(Pe);return It.direction=It.direction||this._directionality.value,new Fe(un,tt,bt,It,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(Pe){const tt=this._document.createElement("div");return tt.id="cdk-overlay-"+Ot++,tt.classList.add("cdk-overlay-pane"),Pe.appendChild(tt),tt}_createHostElement(){const Pe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Pe),Pe}_createPortalOutlet(Pe){return this._appRef||(this._appRef=this._injector.get(y.z2F)),new ce.u0(Pe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.LFG(M),y.LFG(he),y.LFG(y._Vd),y.LFG(Be),y.LFG(Ge),y.LFG(y.zs3),y.LFG(y.R0b),y.LFG(_.K0),y.LFG(L.Is),y.LFG(_.Ye),y.LFG(wt))},Xe.\u0275prov=y.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();const ht=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ht=new y.OlP("cdk-connected-overlay-scroll-strategy");let jt=(()=>{class Xe{constructor(Pe){this.elementRef=Pe}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.Y36(y.SBq))},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Xe})(),cn=(()=>{class Xe{constructor(Pe,tt,bt,un,It){this._overlay=Pe,this._dir=It,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=G.w.EMPTY,this._attachSubscription=G.w.EMPTY,this._detachSubscription=G.w.EMPTY,this._positionSubscription=G.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new y.vpe,this.positionChange=new y.vpe,this.attach=new y.vpe,this.detach=new y.vpe,this.overlayKeydown=new y.vpe,this.overlayOutsideClick=new y.vpe,this._templatePortal=new ce.UE(tt,bt),this._scrollStrategyFactory=un,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(Pe){this._offsetX=Pe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Pe){this._offsetY=Pe,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Pe){this._hasBackdrop=(0,j.Ig)(Pe)}get lockPosition(){return this._lockPosition}set lockPosition(Pe){this._lockPosition=(0,j.Ig)(Pe)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(Pe){this._flexibleDimensions=(0,j.Ig)(Pe)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(Pe){this._growAfterOpen=(0,j.Ig)(Pe)}get push(){return this._push}set push(Pe){this._push=(0,j.Ig)(Pe)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(Pe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Pe.origin&&this.open&&this._position.apply()),Pe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ht);const Pe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Pe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Pe.detachments().subscribe(()=>this.detach.emit()),Pe.keydownEvents().subscribe(tt=>{this.overlayKeydown.next(tt),tt.keyCode===Q.hY&&!this.disableClose&&!(0,Q.Vb)(tt)&&(tt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(tt=>{this.overlayOutsideClick.next(tt)})}_buildConfig(){const Pe=this._position=this.positionStrategy||this._createPositionStrategy(),tt=new A({direction:this._dir,positionStrategy:Pe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(tt.width=this.width),(this.height||0===this.height)&&(tt.height=this.height),(this.minWidth||0===this.minWidth)&&(tt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(tt.minHeight=this.minHeight),this.backdropClass&&(tt.backdropClass=this.backdropClass),this.panelClass&&(tt.panelClass=this.panelClass),tt}_updatePositionStrategy(Pe){const tt=this.positions.map(bt=>({originX:bt.originX,originY:bt.originY,overlayX:bt.overlayX,overlayY:bt.overlayY,offsetX:bt.offsetX||this.offsetX,offsetY:bt.offsetY||this.offsetY,panelClass:bt.panelClass||void 0}));return Pe.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(tt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Pe=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(Pe),Pe}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin
1instanceof jt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Pe=>{this.backdropClick.emit(Pe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Me(Xe,qe=!1){return Pe=>Pe.lift(new Re(Xe,qe))}(()=>this.positionChange.observers.length>0)).subscribe(Pe=>{this.positionChange.emit(Pe),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.Y36(Ft),y.Y36(y.Rgc),y.Y36(y.s_b),y.Y36(Ht),y.Y36(L.Is,8))},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[y.TTD]}),Xe})();const vn={provide:Ht,deps:[Ft],useFactory:function hn(Xe){return()=>Xe.scrollStrategies.reposition()}};let ln=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275mod=y.oAB({type:Xe}),Xe.\u0275inj=y.cJS({providers:[Ft,vn],imports:[[L.vT,ce.eL,s.Cl],s.Cl]}),Xe})()},925:(Qt,Z,S)=>{"use strict";S.d(Z,{Mq:()=>Me,Oy:()=>de,_i:()=>Re,ht:()=>N,i$:()=>te,kV:()=>P,qK:()=>W,sA:()=>Y,t4:()=>j});var s=S(5e3),_=S(9808);let y;try{y="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(re){y=!1}let L,j=(()=>{class re{constructor(ne){this._platformId=ne,this.isBrowser=this._platformId?(0,_.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!y)&&"undefined"!=typeof CSS&&!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 re.\u0275fac=function(ne){return new(ne||re)(s.LFG(s.Lbi))},re.\u0275prov=s.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();const ce=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","t
1ime","url","week"];function W(){if(L)return L;if("object"!=typeof document||!document)return L=new Set(ce),L;let re=document.createElement("input");return L=new Set(ce.filter(V=>(re.setAttribute("type",V),re.type===V))),L}let G,le,J,me;function te(re){return function $(){if(null==G&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>G=!0}))}finally{G=G||!1}return G}()?re:!!re.capture}function Me(){if(null==J){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return J=!1,J;if("scrollBehavior"in document.documentElement.style)J=!0;else{const re=Element.prototype.scrollTo;J=!!re&&!/\{\s*\[native code\]\s*\}/.test(re.toString())}}return J}function Re(){if("object"!=typeof document||!document)return 0;if(null==le){const re=document.createElement("div"),V=re.style;re.dir="rtl",V.width="1px",V.overflow="auto",V.visibility="hidden",V.pointerEvents="none",V.position="absolute";const ne=document.createElement("div"),E=ne.style;E.width="2px",E.height="1px",re.appendChild(ne),document.body.appendChild(re),le=0,0===re.scrollLeft&&(re.scrollLeft=1,le=0===re.scrollLeft?1:2),re.remove()}return le}function P(re){if(function Q(){if(null==me){const re="undefined"!=typeof document?document.head:null;me=!(!re||!re.createShadowRoot&&!re.attachShadow)}return me}()){const V=re.getRootNode?re.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&V instanceof ShadowRoot)return V}return null}function N(){let re="undefined"!=typeof document&&document?document.activeElement:null;for(;re&&re.shadowRoot;){const V=re.shadowRoot.activeElement;if(V===re)break;re=V}return re}function Y(re){return re.composedPath?re.composedPath()[0]:re.target}function de(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Qt,Z,S)=>{"use strict";S.d(Z,{C5:()=>$,Pl:()=>N,UE:()=>te,eL:()=>de,en:()=>J,ig:()=>Q,u0:()=>Re});var s=S(5e3),_=S(9808);class G{attach(ne){return this._attachedHost=ne,ne.attach(this)}detach(){let ne=this._attachedHost;null!=ne&&(this._attachedHost=null,ne.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ne){this._attachedHost=ne}}class $ extends G{constructor(ne,E,M,A){super(),this.component=ne,this.viewContainerRef=E,this.injector=M,this.componentFactoryResolver=A}}class te extends G{constructor(ne,E,M){super(),this.templateRef=ne,this.viewContainerRef=E,this.context=M}get origin(){return this.templateRef.elementRef}attach(ne,E=this.context){return this.context=E,super.attach(ne)}detach(){return this.context=void 0,super.detach()}}class le extends G{constructor(ne){super(),this.element=ne instanceof s.SBq?ne.nativeElement:ne}}class J{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ne){return ne instanceof $?(this._attachedPortal=ne,this.attachComponentPortal(ne)):ne instanceof te?(this._attachedPortal=ne,this.attachTemplatePortal(ne)):this.attachDomPortal&&ne instanceof le?(this._attachedPortal=ne,this.attachDomPortal(ne)):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(ne){this._disposeFn=ne}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Re extends J{constructor(ne,E,M,A,R){super(),this.outletElement=ne,this._componentFactoryResolver=E,this._appRef=M,this._defaultInjector=A,this.attachDomPortal=ee=>{const B=ee.element,K=this._document.createComment("dom-portal");B.parentNode.insertBefore(K,B),this.outletElement.appendChild(B),this._attachedPortal=ee,super.setDisposeFn(()=>{K.parentNode&&K.parentNode.replaceChild(B,K)})},this._document=R}attachComponentPortal(ne){const M=(ne.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ne.component);let A;return ne.viewContainerRef?(A=ne.viewContainerRef.createComponent(M,ne.viewContainerRef.length,ne.injector||ne.viewContainerRef.injector),this.setDisposeFn(()=>A.destroy())):(A=M.create(ne.injector||this._defaultInjector||s.zs3.NULL),this._appRef.attachView(A.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(A.hostView),A.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(A)),this._attachedPortal=ne,A}attachTemplatePortal(ne){let E=ne.viewContainerRef,M=E.createEmbeddedView(ne.templateRef,ne.context);
1return M.rootNodes.forEach(A=>this.outletElement.appendChild(A)),M.detectChanges(),this.setDisposeFn(()=>{let A=E.indexOf(M);-1!==A&&E.remove(A)}),this._attachedPortal=ne,M}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ne){return ne.hostView.rootNodes[0]}}let Q=(()=>{class V extends te{constructor(E,M){super(E,M)}}return V.\u0275fac=function(E){return new(E||V)(s.Y36(s.Rgc),s.Y36(s.s_b))},V.\u0275dir=s.lG2({type:V,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.qOj]}),V})(),N=(()=>{class V extends J{constructor(E,M,A){super(),this._componentFactoryResolver=E,this._viewContainerRef=M,this._isInitialized=!1,this.attached=new s.vpe,this.attachDomPortal=R=>{const ee=R.element,B=this._document.createComment("dom-portal");R.setAttachedHost(this),ee.parentNode.insertBefore(B,ee),this._getRootNode().appendChild(ee),this._attachedPortal=R,super.setDisposeFn(()=>{B.parentNode&&B.parentNode.replaceChild(ee,B)})},this._document=A}get portal(){return this._attachedPortal}set portal(E){this.hasAttached()&&!E&&!this._isInitialized||(this.hasAttached()&&super.detach(),E&&super.attach(E),this._attachedPortal=E||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(E){E.setAttachedHost(this);const M=null!=E.viewContainerRef?E.viewContainerRef:this._viewContainerRef,R=(E.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(E.component),ee=M.createComponent(R,M.length,E.injector||M.injector);return M!==this._viewContainerRef&&this._getRootNode().appendChild(ee.hostView.rootNodes[0]),super.setDisposeFn(()=>ee.destroy()),this._attachedPortal=E,this._attachedRef=ee,this.attached.emit(ee),ee}attachTemplatePortal(E){E.setAttachedHost(this);const M=this._viewContainerRef.createEmbeddedView(E.templateRef,E.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=E,this._attachedRef=M,this.attached.emit(M),M}_getRootNode(){const E=this._viewContainerRef.element.nativeElement;return E.nodeType===E.ELEMENT_NODE?E:E.parentNode}}return V.\u0275fac=function(E){return new(E||V)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36(_.K0))},V.\u0275dir=s.lG2({type:V,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.qOj]}),V})(),de=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({}),V})()},9071:(Qt,Z,S)=>{"use strict";S.d(Z,{Cl:()=>ge,PQ:()=>V,ZD:()=>K,mF:()=>re,rL:()=>E});var s=S(3191),_=S(5e3),y=S(8929),j=S(1086),D=S(6498),L=S(3753),G=(S(352),S(8139),S(7138)),$=S(2198),te=S(7625),le=S(9808),J=S(925),Me=S(226);let re=(()=>{class Fe{constructor(fe,Ie,Se){this._ngZone=fe,this._platform=Ie,this._scrolled=new y.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Se}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const Ie=this.scrollContainers.get(fe);Ie&&(Ie.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new D.y(Ie=>{this._globalSubscription||this._addGlobalListener();const Se=fe>0?this._scrolled.pipe((0,G.e)(fe)).subscribe(Ie):this._scrolled.subscribe(Ie);return this._scrolledCount++,()=>{Se.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,j.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,Ie)=>this.deregister(Ie)),this._scrolled.complete()}ancestorScrolled(fe,Ie){const Se=this.getAncestorScrollContainers(fe);return this.scrolled(Ie).pipe((0,$.h)(pe=>!pe||Se.indexOf(pe)>-1))}getAncestorScrollContainers(fe){const Ie=[];return this.scrollContainers.forEach((Se,pe)=>{this._scrollableContainsElement(pe,fe)&&Ie.push(pe)}),Ie}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,Ie){let Se=(0,s.fI)(Ie),pe=fe.getElementRef().nativeElement;do{if(Se==pe)return!0}while(Se=Se.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,L.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Fe.\u0275fac=function(fe){return new(fe||Fe)(_.LFG(_.R0b),_.LFG(J.t4),_.LFG
1(le.K0,8))},Fe.\u0275prov=_.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})(),V=(()=>{class Fe{constructor(fe,Ie,Se,pe){this.elementRef=fe,this.scrollDispatcher=Ie,this.ngZone=Se,this.dir=pe,this._destroyed=new y.xQ,this._elementScrolled=new D.y(ke=>this.ngZone.runOutsideAngular(()=>(0,L.R)(this.elementRef.nativeElement,"scroll").pipe((0,te.R)(this._destroyed)).subscribe(ke)))}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(fe){const Ie=this.elementRef.nativeElement,Se=this.dir&&"rtl"==this.dir.value;null==fe.left&&(fe.left=Se?fe.end:fe.start),null==fe.right&&(fe.right=Se?fe.start:fe.end),null!=fe.bottom&&(fe.top=Ie.scrollHeight-Ie.clientHeight-fe.bottom),Se&&0!=(0,J._i)()?(null!=fe.left&&(fe.right=Ie.scrollWidth-Ie.clientWidth-fe.left),2==(0,J._i)()?fe.left=fe.right:1==(0,J._i)()&&(fe.left=fe.right?-fe.right:fe.right)):null!=fe.right&&(fe.left=Ie.scrollWidth-Ie.clientWidth-fe.right),this._applyScrollToOptions(fe)}_applyScrollToOptions(fe){const Ie=this.elementRef.nativeElement;(0,J.Mq)()?Ie.scrollTo(fe):(null!=fe.top&&(Ie.scrollTop=fe.top),null!=fe.left&&(Ie.scrollLeft=fe.left))}measureScrollOffset(fe){const Ie="left",pe=this.elementRef.nativeElement;if("top"==fe)return pe.scrollTop;if("bottom"==fe)return pe.scrollHeight-pe.clientHeight-pe.scrollTop;const ke=this.dir&&"rtl"==this.dir.value;return"start"==fe?fe=ke?"right":Ie:"end"==fe&&(fe=ke?Ie:"right"),ke&&2==(0,J._i)()?fe==Ie?pe.scrollWidth-pe.clientWidth-pe.scrollLeft:pe.scrollLeft:ke&&1==(0,J._i)()?fe==Ie?pe.scrollLeft+pe.scrollWidth-pe.clientWidth:-pe.scrollLeft:fe==Ie?pe.scrollLeft:pe.scrollWidth-pe.clientWidth-pe.scrollLeft}}return Fe.\u0275fac=function(fe){return new(fe||Fe)(_.Y36(_.SBq),_.Y36(re),_.Y36(_.R0b),_.Y36(Me.Is,8))},Fe.\u0275dir=_.lG2({type:Fe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Fe})(),E=(()=>{class Fe{constructor(fe,Ie,Se){this._platform=fe,this._change=new y.xQ,this._changeListener=pe=>{this._change.next(pe)},this._document=Se,Ie.runOutsideAngular(()=>{if(fe.isBrowser){const pe=this._getWindow();pe.addEventListener("resize",this._changeListener),pe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:Ie,height:Se}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+Se,right:fe.left+Ie,height:Se,width:Ie}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,Ie=this._getWindow(),Se=fe.documentElement,pe=Se.getBoundingClientRect();return{top:-pe.top||fe.body.scrollTop||Ie.scrollY||Se.scrollTop||0,left:-pe.left||fe.body.scrollLeft||Ie.scrollX||Se.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe((0,G.e)(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHe
1ight}:{width:0,height:0}}}return Fe.\u0275fac=function(fe){return new(fe||Fe)(_.LFG(J.t4),_.LFG(_.R0b),_.LFG(le.K0,8))},Fe.\u0275prov=_.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})(),K=(()=>{class Fe{}return Fe.\u0275fac=function(fe){return new(fe||Fe)},Fe.\u0275mod=_.oAB({type:Fe}),Fe.\u0275inj=_.cJS({}),Fe})(),ge=(()=>{class Fe{}return Fe.\u0275fac=function(fe){return new(fe||Fe)},Fe.\u0275mod=_.oAB({type:Fe}),Fe.\u0275inj=_.cJS({imports:[[Me.vT,K],Me.vT,K]}),Fe})()},4533:(Qt,Z,S)=>{"use strict";S.d(Z,{IC:()=>J,Ky:()=>Me,Lq:()=>te});var s=S(925),_=S(5e3),y=S(3191),j=S(8896),D=S(8929),L=S(3753),ce=S(7138),W=S(7625),G=S(9808);const $=(0,s.i$)({passive:!0});let te=(()=>{class Re{constructor(Q,P){this._platform=Q,this._ngZone=P,this._monitoredElements=new Map}monitor(Q){if(!this._platform.isBrowser)return j.E;const P=(0,y.fI)(Q),N=this._monitoredElements.get(P);if(N)return N.subject;const Y=new D.xQ,de="cdk-text-field-autofilled",re=V=>{"cdk-text-field-autofill-start"!==V.animationName||P.classList.contains(de)?"cdk-text-field-autofill-end"===V.animationName&&P.classList.contains(de)&&(P.classList.remove(de),this._ngZone.run(()=>Y.next({target:V.target,isAutofilled:!1}))):(P.classList.add(de),this._ngZone.run(()=>Y.next({target:V.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{P.addEventListener("animationstart",re,$),P.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(P,{subject:Y,unlisten:()=>{P.removeEventListener("animationstart",re,$)}}),Y}stopMonitoring(Q){const P=(0,y.fI)(Q),N=this._monitoredElements.get(P);N&&(N.unlisten(),N.subject.complete(),P.classList.remove("cdk-text-field-autofill-monitored"),P.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(P))}ngOnDestroy(){this._monitoredElements.forEach((Q,P)=>this.stopMonitoring(P))}}return Re.\u0275fac=function(Q){return new(Q||Re)(_.LFG(s.t4),_.LFG(_.R0b))},Re.\u0275prov=_.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),J=(()=>{class Re{constructor(Q,P,N,Y){this._elementRef=Q,this._platform=P,this._ngZone=N,this._destroyed=new D.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=de=>{this._hasFocus="focus"===de.type},this._document=Y,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(Q){this._minRows=(0,y.su)(Q),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(Q){this._maxRows=(0,y.su)(Q),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(Q){Q=(0,y.Ig)(Q),this._enabled!==Q&&((this._enabled=Q)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(Q){this._cachedPlaceholderHeight=void 0,Q?this._textareaElement.setAttribute("placeholder",Q):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const Q=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;Q&&(this._textareaElement.style.minHeight=Q)}_setMaxHeight(){const Q=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;Q&&(this._textareaElement.style.maxHeight=Q)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const Q=this._getWindow();(0,L.R)(Q,"resize").pipe((0,ce.e)(16),(0,W.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let Q=this._textareaElement.cloneNode(!1);Q.rows=1,Q.style.position="absolute",Q.style.visibility="hidden",Q.style.border="none",Q.style.padding="0",Q.style.height="",Q.style.minHeight="",Q.style.maxHeight="",Q.style.overflow="hidden",this._textareaElement.parentNode.appendChild(Q),this._cachedLineHeight=Q.clientHeight,Q.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const Q=this._textareaElement,P=Q.style.marginBottom||"",N=this._platform.FIRE
1FOX,Y=N&&this._hasFocus,de=N?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Y&&(Q.style.marginBottom=`${Q.clientHeight}px`),Q.classList.add(de);const re=Q.scrollHeight-4;return Q.classList.remove(de),Y&&(Q.style.marginBottom=P),re}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const Q=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=Q}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(Q=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const P=this._elementRef.nativeElement,N=P.value;if(!Q&&this._minRows===this._previousMinRows&&N===this._previousValue)return;const Y=this._measureScrollHeight(),de=Math.max(Y,this._cachedPlaceholderHeight||0);P.style.height=`${de}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(P)):setTimeout(()=>this._scrollToCaretPosition(P))}),this._previousValue=N,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(Q){const{selectionStart:P,selectionEnd:N}=Q;!this._destroyed.isStopped&&this._hasFocus&&Q.setSelectionRange(P,N)}}return Re.\u0275fac=function(Q){return new(Q||Re)(_.Y36(_.SBq),_.Y36(s.t4),_.Y36(_.R0b),_.Y36(G.K0,8))},Re.\u0275dir=_.lG2({type:Re,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Q,P){1&Q&&_.NdJ("input",function(){return P._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),Re})(),Me=(()=>{class Re{}return Re.\u0275fac=function(Q){return new(Q||Re)},Re.\u0275mod=_.oAB({type:Re}),Re.\u0275inj=_.cJS({}),Re})()},8258:(Qt,Z,S)=>{"use strict";S.d(Z,{C2:()=>te,HI:()=>J,Hs:()=>V,Ud:()=>ee,XJ:()=>R,Xx:()=>M,_0:()=>re,cu:()=>Me,nZ:()=>K,rO:()=>me});var s=S(449),_=S(8929),y=S(591),j=S(4715),D=S(1086),L=S(7625),ce=S(5e3),W=S(3191),G=S(226);class te extends class ${constructor(){this.expansionModel=new s.Ov(!0)}toggle(Fe){this.expansionModel.toggle(this._trackByValue(Fe))}expand(Fe){this.expansionModel.select(this._trackByValue(Fe))}collapse(Fe){this.expansionModel.deselect(this._trackByValue(Fe))}isExpanded(Fe){return this.expansionModel.isSelected(this._trackByValue(Fe))}toggleDescendants(Fe){this.expansionModel.isSelected(this._trackByValue(Fe))?this.collapseDescendants(Fe):this.expandDescendants(Fe)}collapseAll(){this.expansionModel.clear()}expandDescendants(Fe){let he=[Fe];he.push(...this.getDescendants(Fe)),this.expansionModel.select(...he.map(fe=>this._trackByValue(fe)))}collapseDescendants(Fe){let he=[Fe];he.push(...this.getDescendants(Fe)),this.expansionModel.deselect(...he.map(fe=>this._trackByValue(fe)))}_trackByValue(Fe){return this.trackBy?this.trackBy(Fe):Fe}}{constructor(Fe,he,fe){super(),this.getLevel=Fe,this.isExpandable=he,this.options=fe,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(Fe){const fe=[];for(let Ie=this.dataNodes.indexOf(Fe)+1;Ie<this.dataNodes.length&&this.getLevel(Fe)<this.getLevel(this.dataNodes[Ie]);Ie++)fe.push(this.dataNodes[Ie]);return fe}expandAll(){this.expansionModel.select(...this.dataNodes.map(Fe=>this._trackByValue(Fe)))}}const J=new ce.OlP("CDK_TREE_NODE_OUTLET_NODE");let Me=(()=>{class ge{constructor(he,fe){this.viewContainer=he,this._node=fe}}return ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(ce.s_b),ce.Y36(J,8))},ge.\u0275dir=ce.lG2({type:ge,selectors:[["","cdkTreeNodeOutlet",""]]}),ge})();class Re{constructor(Fe){this.$implicit=Fe}}let me=(()=>{class ge{constructor(he){this.template=he}}return ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(ce.Rgc))},ge.\u0275dir=ce.lG2({type:ge,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),ge})(),re=(()=>{class ge{constructor(he,fe){this._differs=he,this._changeDetectorRef=fe,this._onDestroy=new _.xQ,this._levels=new Map,this.viewChange=new y.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(he){this._dataSource!==he&&this._switchDataSource(he)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const he=this._nodeDefs.filter(fe=>!fe.when);this._defaultNodeDef=he[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(he){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),he||this._nodeOutlet.viewContainer.clear(),this._dataSource=he,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let he;(0,s.Z9)(this._dataSource)?he=this._dataSource.connect(this):(0,j.b)(this._dataSource)?he=this._dataSource:Array.isArray(this._dataSource)&&(he=(0,D.of)(this._dataSource)),he&&(this._dataSubscription=he.pipe((0,L.R)(this._onDestroy)).subscribe(fe=>this.renderNodeChanges(fe)))}renderNodeChanges(he,fe=this._dataDiffer,Ie=this._nodeOutlet.viewContainer,Se){const pe=fe.diff(he);!pe||(pe.forEachOperation((ke,ae,Ce)=>{if(null==ke.previousIndex)this.insertNode(he[Ce],Ce,Ie,Se);else if(null==Ce)Ie.remove(ae),this._levels.delete(ke.item);else{const Ve=Ie.get(ae);Ie.move(Ve,Ce)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(he,fe){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Se=>Se.when&&Se.when(fe,he))||this._defaultNodeDef}insertNode(he,fe,Ie,Se){const pe=this._getNodeDef(he,fe),ke=new Re(he);ke.level=this.treeControl.getLevel?this.treeControl.getLevel(he):void 0!==Se&&this._levels.has(Se)?this._levels.get(Se)+1:0,this._levels.set(he,ke.level),(Ie||this._nodeOutlet.viewContainer).createEmbeddedView(pe.template,ke,fe),V.mostRecentTreeNode&&(V.mostRecentTreeNode.data=he)}}return ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(ce.ZZ4),ce.Y36(ce.sBO))}
1,ge.\u0275cmp=ce.Xpm({type:ge,selectors:[["cdk-tree"]],contentQueries:function(he,fe,Ie){if(1&he&&ce.Suo(Ie,me,5),2&he){let Se;ce.iGM(Se=ce.CRH())&&(fe._nodeDefs=Se)}},viewQuery:function(he,fe){if(1&he&&ce.Gf(Me,7),2&he){let Ie;ce.iGM(Ie=ce.CRH())&&(fe._nodeOutlet=Ie.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(he,fe){1&he&&ce.GkF(0,0)},directives:[Me],encapsulation:2}),ge})(),V=(()=>{class ge{constructor(he,fe){this._elementRef=he,this._tree=fe,this._destroyed=new _.xQ,this._dataChanges=new _.xQ,ge.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(he){this._elementRef.nativeElement.setAttribute("role",he)}get data(){return this._data}set data(he){he!==this._data&&(this._data=he,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ne(ge){let Fe=ge.parentElement;for(;Fe&&!E(Fe);)Fe=Fe.parentElement;return Fe?Fe.classList.contains("cdk-nested-tree-node")?(0,W.su)(Fe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){ge.mostRecentTreeNode===this&&(ge.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return ge.mostRecentTreeNode=null,ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(ce.SBq),ce.Y36(re))},ge.\u0275dir=ce.lG2({type:ge,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(he,fe){2&he&&ce.uIk("aria-expanded",fe.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),ge})();function E(ge){const Fe=ge.classList;return!(!(null==Fe?void 0:Fe.contains("cdk-nested-tree-node"))&&!(null==Fe?void 0:Fe.contains("cdk-tree")))}let M=(()=>{class ge extends V{constructor(he,fe,Ie){super(he,fe),this._differs=Ie}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const he=this._tree.treeControl.getChildren(this.data);Array.isArray(he)?this.updateChildrenNodes(he):(0,j.b)(he)&&he.pipe((0,L.R)(this._destroyed)).subscribe(fe=>this.updateChildrenNodes(fe)),this.nodeOutlet.changes.pipe((0,L.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(he){const fe=this._getNodeOutlet();he&&(this._children=he),fe&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,fe.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const he=this._getNodeOutlet();he&&(he.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const he=this.nodeOutlet;return he&&he.find(fe=>!fe._node||fe._node===this)}}return ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(ce.SBq),ce.Y36(re),ce.Y36(ce.ZZ4))},ge.\u0275dir=ce.lG2({type:ge,selectors:[["cdk-nested-tree-node"]],contentQueries:function(he,fe,Ie){if(1&he&&ce.Suo(Ie,Me,5),2&he){let Se;ce.iGM(Se=ce.CRH())&&(fe.nodeOutlet=Se)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[ce._Bn([{provide:V,useExisting:ge},{provide:J,useExisting:ge}]),ce.qOj]}),ge})();const A=/([A-Za-z%]+)$/;let R=(()=>{class ge{constructor(he,fe,Ie,Se){this._treeNode=he,this._tree=fe,this._element=Ie,this._dir=Se,this._destroyed=new _.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Se&&Se.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),he._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(he){this._setLevelInput(he)}get indent(){return this._indent}set indent(he){this._setIndentInput(he)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}
1_paddingIndent(){const he=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,fe=null==this._level?he:this._level;return"number"==typeof fe?`${fe*this._indent}${this.indentUnits}`:null}_setPadding(he=!1){const fe=this._paddingIndent();if(fe!==this._currentPadding||he){const Ie=this._element.nativeElement,Se=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",pe="paddingLeft"===Se?"paddingRight":"paddingLeft";Ie.style[Se]=fe||"",Ie.style[pe]="",this._currentPadding=fe}}_setLevelInput(he){this._level=(0,W.su)(he,null),this._setPadding()}_setIndentInput(he){let fe=he,Ie="px";if("string"==typeof he){const Se=he.split(A);fe=Se[0],Ie=Se[1]||Ie}this.indentUnits=Ie,this._indent=(0,W.su)(fe),this._setPadding()}}return ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(V),ce.Y36(re),ce.Y36(ce.SBq),ce.Y36(G.Is,8))},ge.\u0275dir=ce.lG2({type:ge,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),ge})(),ee=(()=>{class ge{constructor(he,fe){this._tree=he,this._treeNode=fe,this._recursive=!1}get recursive(){return this._recursive}set recursive(he){this._recursive=(0,W.Ig)(he)}_toggle(he){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),he.stopPropagation()}}return ge.\u0275fac=function(he){return new(he||ge)(ce.Y36(re),ce.Y36(V))},ge.\u0275dir=ce.lG2({type:ge,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(he,fe){1&he&&ce.NdJ("click",function(Se){return fe._toggle(Se)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),ge})(),K=(()=>{class ge{}return ge.\u0275fac=function(he){return new(he||ge)},ge.\u0275mod=ce.oAB({type:ge}),ge.\u0275inj=ce.cJS({}),ge})()},9808:(Qt,Z,S)=>{"use strict";S.d(Z,{Do:()=>de,ED:()=>oo,EM:()=>fn,H9:()=>es,HT:()=>D,JF:()=>xi,JJ:()=>Es,K0:()=>ce,Mx:()=>vi,NF:()=>Os,Nd:()=>Sr,O5:()=>fs,OU:()=>rs,Ov:()=>mn,PC:()=>us,PM:()=>Rs,RF:()=>_o,S$:()=>Q,Ts:()=>Mr,V_:()=>$,Ye:()=>re,b0:()=>Y,bD:()=>go,ez:()=>nt,gd:()=>ci,i8:()=>kn,lw:()=>W,mk:()=>li,mr:()=>N,n9:()=>Yo,p6:()=>Wt,q:()=>y,rS:()=>Yn,sg:()=>hr,tP:()=>Ur,uU:()=>Ji,w_:()=>L});var s=S(5e3);let _=null;function y(){return _}function D($e){_||(_=$e)}class L{}const ce=new s.OlP("DocumentToken");let W=(()=>{class $e{historyGo(ct){throw new Error("Not implemented")}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275prov=s.Yz7({token:$e,factory:function(){return function G(){return(0,s.LFG)(te)}()},providedIn:"platform"}),$e})();const $=new s.OlP("Location Initialized");let te=(()=>{class $e extends W{constructor(ct){super(),this._doc=ct,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(ct){const zt=y().getGlobalEventTarget(this._doc,"window");return zt.addEventListener("popstate",ct,!1),()=>zt.removeEventListener("popstate",ct)}onHashChange(ct){const zt=y().getGlobalEventTarget(this._doc,"window");return zt.addEventListener("hashchange",ct,!1),()=>zt.removeEventListener("hashchange",ct)}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(ct){this.location.pathname=ct}pushState(ct,zt,wn){le()?this._history.pushState(ct,zt,wn):this.location.hash=wn}replaceState(ct,zt,wn){le()?this._history.replaceState(ct,zt,wn):this.location.hash=wn}forward(){this._history.forward()}back(){this._history.back()}historyGo(ct=0){this._history.go(ct)}getState(){return this._history.state}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.LFG(ce))},$e.\u0275prov=s.Yz7({token:$e,factory:function(){return function J(){return new te((0,s.LFG)(ce))}()},providedIn:"platform"}),$e})();function le(){return!!window.history.pushState}function Me($e,Dt){if(0==$e.length)return Dt;if(0==Dt.length)return $e;let ct=0;return $e.endsWith("/")&&ct++,Dt.startsWith("/")&&ct++,2==ct?$e+Dt.substring(1):1==ct?$e+Dt:$e+"/"+Dt}function Re($e){const Dt=$e.match(/#|\?|$/),ct=Dt&&Dt.index||$e.length;return $e.slice(0,ct-("/"===$e[ct-1]?1:0))+$e.slice(ct)}function me($e){return $e&&"?"!==$e[0]?"?"+$e:$e}let Q=(()=>{class $e{historyGo(ct){throw new Error("Not implemented")}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275prov=s.Yz7({token:$e,factory:function(){return function P($e){const Dt=(0,s.LFG)(ce).location;return new Y((0,s.LFG)(W),Dt&&Dt.origin||"")}()},providedIn:"root"}),$e})();const N=new s.OlP("appBaseHref");let Y=(()=>{class $e extends Q{constructor(ct,zt){if(super(),this._platformLocation=ct,this._removeListenerFns=[],null==zt&&(zt=this._platformLocation.getBaseHrefFromDOM()),null==zt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=zt}
1ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ct){this._removeListenerFns.push(this._platformLocation.onPopState(ct),this._platformLocation.onHashChange(ct))}getBaseHref(){return this._baseHref}prepareExternalUrl(ct){return Me(this._baseHref,ct)}path(ct=!1){const zt=this._platformLocation.pathname+me(this._platformLocation.search),wn=this._platformLocation.hash;return wn&&ct?`${zt}${wn}`:zt}pushState(ct,zt,wn,ii){const bi=this.prepareExternalUrl(wn+me(ii));this._platformLocation.pushState(ct,zt,bi)}replaceState(ct,zt,wn,ii){const bi=this.prepareExternalUrl(wn+me(ii));this._platformLocation.replaceState(ct,zt,bi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(ct=0){var zt,wn;null===(wn=(zt=this._platformLocation).historyGo)||void 0===wn||wn.call(zt,ct)}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.LFG(W),s.LFG(N,8))},$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),de=(()=>{class $e extends Q{constructor(ct,zt){super(),this._platformLocation=ct,this._baseHref="",this._removeListenerFns=[],null!=zt&&(this._baseHref=zt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ct){this._removeListenerFns.push(this._platformLocation.onPopState(ct),this._platformLocation.onHashChange(ct))}getBaseHref(){return this._baseHref}path(ct=!1){let zt=this._platformLocation.hash;return null==zt&&(zt="#"),zt.length>0?zt.substring(1):zt}prepareExternalUrl(ct){const zt=Me(this._baseHref,ct);return zt.length>0?"#"+zt:zt}pushState(ct,zt,wn,ii){let bi=this.prepareExternalUrl(wn+me(ii));0==bi.length&&(bi=this._platformLocation.pathname),this._platformLocation.pushState(ct,zt,bi)}replaceState(ct,zt,wn,ii){let bi=this.prepareExternalUrl(wn+me(ii));0==bi.length&&(bi=this._platformLocation.pathname),this._platformLocation.replaceState(ct,zt,bi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(ct=0){var zt,wn;null===(wn=(zt=this._platformLocation).historyGo)||void 0===wn||wn.call(zt,ct)}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.LFG(W),s.LFG(N,8))},$e.\u0275prov=s.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),re=(()=>{class $e{constructor(ct,zt){this._subject=new s.vpe,this._urlChangeListeners=[],this._platformStrategy=ct;const wn=this._platformStrategy.getBaseHref();this._platformLocation=zt,this._baseHref=Re(E(wn)),this._platformStrategy.onPopState(ii=>{this._subject.emit({url:this.path(!0),pop:!0,state:ii.state,type:ii.type})})}path(ct=!1){return this.normalize(this._platformStrategy.path(ct))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(ct,zt=""){return this.path()==this.normalize(ct+me(zt))}normalize(ct){return $e.stripTrailingSlash(function ne($e,Dt){return $e&&Dt.startsWith($e)?Dt.substring($e.length):Dt}(this._baseHref,E(ct)))}prepareExternalUrl(ct){return ct&&"/"!==ct[0]&&(ct="/"+ct),this._platformStrategy.prepareExternalUrl(ct)}go(ct,zt="",wn=null){this._platformStrategy.pushState(wn,"",ct,zt),this._notifyUrlChangeListeners(this.prepareExternalUrl(ct+me(zt)),wn)}replaceState(ct,zt="",wn=null){this._platformStrategy.replaceState(wn,"",ct,zt),this._notifyUrlChangeListeners(this.prepareExternalUrl(ct+me(zt)),wn)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(ct=0){var zt,wn;null===(wn=(zt=this._platformStrategy).historyGo)||void 0===wn||wn.call(zt,ct)}onUrlChange(ct){this._urlChangeListeners.push(ct),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(zt=>{this._notifyUrlChangeListeners(zt.url,zt.state)}))}_notifyUrlChangeListeners(ct="",zt){this._urlChangeListeners.forEach(wn=>wn(ct,zt))}subscribe(ct,zt,wn){return this._subject.subscribe({next:ct,error:zt,complete:wn})}}return $e.normalizeQueryParams=me,$e.joinWithSlash=Me,$e.stripTrailingSlash=Re,$e.\u0275fac=function(ct){return new(ct||$e)(s.LFG(Q),s.LFG(W))},$e.\u0275prov=s.Yz7({token:$e,factory:function(){return function V(){return new re((0,s.LFG)(Q),(0,s.LFG)(W))}()},providedIn:"root"}),$e})();function E($e){return $e.replace(/\/index.html$/,"")}const M={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var A=(()=>((A=A||{})[A.Decimal=0]="Decimal",A[A.Percent=1]="Percent",A[A.Currency=2]="Currency",A[A.Scientific=3]="Scientific",A))(),ee=(()=>((ee=ee||{})[ee.Format=0]="Format",ee[ee.Standalone=1]="Standalone",ee))(),B=(()=>((B=B||{})[B.Narrow=0]="Narrow",B[B.Abbreviated=1]="Abbreviated",B[B.Wide=2]="Wide",B[B.Short=3]="Short",B))(),K=(()=>((K=K||{})[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function Ce($e,Dt){return ln((0,s.cg1)($e)[s.wAp.DateFormat],Dt)}function Ve($e,Dt){return ln((0,s.cg1)($e)[s.wAp.TimeFormat],Dt)}function Be($e,Dt){return ln((0,s.cg1)($e)[s.wAp.DateTimeFormat],Dt)}function ut($e,Dt){const ct=(0,s.cg1)($e),zt=ct[s.wAp.NumberSymbols][Dt];if(void 0===zt){if(Dt===ge.CurrencyDecimal)return ct[s.wAp.NumberSymbols][ge.Decimal];if(Dt===ge.CurrencyGroup)return ct[s.wAp.NumberSymbols][ge.Group]}return zt}function Ge($e,Dt){return(0,s.cg1)($e)[s.wAp.NumberFormats][Dt]}function jt($e){if(!$e[s.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${$e[s.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ln($e,Dt){for(let ct=Dt;ct>-1;ct--)if(void 0!==$e[ct])return $e[ct];throw new Error("Locale data API: locale data undefined")}function Jt($e){const[Dt,ct]=$e.split(":");return{hours:+Dt,minutes:+ct}}const tt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,bt={},un=/((?:[^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 It=(()=>((It=It||{})[It.Short=0]="Short",It[It.ShortGMT=1]="ShortGMT",It[It.Long=2]="Long",It[It.Extended=3]="Extended",It))(),Et=(()=>((Et=Et||{})[Et.FullYear=0]="FullYear",Et[Et.Month=1]="Month",Et[Et.Date=2]="Date",Et[Et.Hours=3]="Hours",Et[Et.Minutes=4]="Minutes",Et[Et.Seconds=5]="Seconds",Et[Et.FractionalSeconds=6]="FractionalSeconds",Et[Et.Day=7]="Day",Et))(),Rt=(()=>((Rt=Rt||{})[Rt.DayPeriods=0]="DayPeriods",Rt[Rt.Days=1]="Days",Rt[Rt.Months=2]="Months",Rt[Rt.Eras=3]="Eras",Rt))();function Wt($e,Dt,ct,zt){let wn=function Ye($e){if(Tt($e))return $e;if("number"==typeof $e&&!isNaN($e))return new Date($e);if("string"==typeof $e){if($e=$e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($e)){const[wn,ii=1,bi=1]=$e.split("-").map(Ni=>+Ni);return Pt(wn,ii-1,bi)}const ct=parseFloat($e);if(!isNaN($e-ct))return new Date(ct);let zt;if(zt=$e.match(tt))return function je($e){const Dt=new Date(0);let ct=0,zt=0;
vendor: 5,815 bytes, line 1
1const wn=$e[8]?Dt.setUTCFullYear:Dt.setFullYear,ii=$e[8]?Dt.setUTCHours:Dt.setHours;$e[9]&&(ct=Number($e[9]+$e[10]),zt=Number($e[9]+$e[11])),wn.call(Dt,Number($e[1]),Number($e[2])-1,Number($e[3]));const bi=Number($e[4]||0)-ct,Ni=Number($e[5]||0)-zt,Hr=Number($e[6]||0),Zi=Math.floor(1e3*parseFloat("0."+($e[7]||0)));return ii.call(Dt,bi,Ni,Hr,Zi),Dt}(zt)}const Dt=new Date($e);if(!Tt(Dt))throw new Error(`Unable to convert "${$e}" into a date`);return Dt}($e);Dt=Dn(ct,Dt)||Dt;let Ni,bi=[];for(;Dt;){if(Ni=un.exec(Dt),!Ni){bi.push(Dt);break}{bi=bi.concat(Ni.slice(1));const Pr=bi.pop();if(!Pr)break;Dt=Pr}}let Hr=wn.getTimezoneOffset();zt&&(Hr=Ne(zt,Hr),wn=function Oe($e,Dt,ct){const zt=ct?-1:1,wn=$e.getTimezoneOffset();return function Ae($e,Dt){return($e=new Date($e.getTime())).setMinutes($e.getMinutes()+Dt),$e}($e,zt*(Ne(Dt,wn)-wn))}(wn,zt,!0));let Zi="";return bi.forEach(Pr=>{const Fr=function Ke($e){if(Gt[$e])return Gt[$e];let Dt;switch($e){case"G":case"GG":case"GGG":Dt=Yt(Rt.Eras,B.Abbreviated);break;case"GGGG":Dt=Yt(Rt.Eras,B.Wide);break;case"GGGGG":Dt=Yt(Rt.Eras,B.Narrow);break;case"y":Dt=nn(Et.FullYear,1,0,!1,!0);break;case"yy":Dt=nn(Et.FullYear,2,0,!0,!0);break;case"yyy":Dt=nn(Et.FullYear,3,0,!1,!0);break;case"yyyy":Dt=nn(Et.FullYear,4,0,!1,!0);break;case"Y":Dt=xt(1);break;case"YY":Dt=xt(2,!0);break;case"YYY":Dt=xt(3);break;case"YYYY":Dt=xt(4);break;case"M":case"L":Dt=nn(Et.Month,1,1);break;case"MM":case"LL":Dt=nn(Et.Month,2,1);break;case"MMM":Dt=Yt(Rt.Months,B.Abbreviated);break;case"MMMM":Dt=Yt(Rt.Months,B.Wide);break;case"MMMMM":Dt=Yt(Rt.Months,B.Narrow);break;case"LLL":Dt=Yt(Rt.Months,B.Abbreviated,ee.Standalone);break;case"LLLL":Dt=Yt(Rt.Months,B.Wide,ee.Standalone);break;case"LLLLL":Dt=Yt(Rt.Months,B.Narrow,ee.Standalone);break;case"w":Dt=Lt(1);break;case"ww":Dt=Lt(2);break;case"W":Dt=Lt(1,!0);break;case"d":Dt=nn(Et.Date,1);break;case"dd":Dt=nn(Et.Date,2);break;case"c":case"cc":Dt=nn(Et.Day,1);break;case"ccc":Dt=Yt(Rt.Days,B.Abbreviated,ee.Standalone);break;case"cccc":Dt=Yt(Rt.Days,B.Wide,ee.Standalone);break;case"ccccc":Dt=Yt(Rt.Days,B.Narrow,ee.Standalone);break;case"cccccc":Dt=Yt(Rt.Days,B.Short,ee.Standalone);break;case"E":case"EE":case"EEE":Dt=Yt(Rt.Days,B.Abbreviated);break;case"EEEE":Dt=Yt(Rt.Days,B.Wide);break;case"EEEEE":Dt=Yt(Rt.Days,B.Narrow);break;case"EEEEEE":Dt=Yt(Rt.Days,B.Short);break;case"a":case"aa":case"aaa":Dt=Yt(Rt.DayPeriods,B.Abbreviated);break;case"aaaa":Dt=Yt(Rt.DayPeriods,B.Wide);break;case"aaaaa":Dt=Yt(Rt.DayPeriods,B.Narrow);break;case"b":case"bb":case"bbb":Dt=Yt(Rt.DayPeriods,B.Abbreviated,ee.Standalone,!0);break;case"bbbb":Dt=Yt(Rt.DayPeriods,B.Wide,ee.Standalone,!0);break;case"bbbbb":Dt=Yt(Rt.DayPeriods,B.Narrow,ee.Standalone,!0);break;case"B":case"BB":case"BBB":Dt=Yt(Rt.DayPeriods,B.Abbreviated,ee.Format,!0);break;case"BBBB":Dt=Yt(Rt.DayPeriods,B.Wide,ee.Format,!0);break;case"BBBBB":Dt=Yt(Rt.DayPeriods,B.Narrow,ee.Format,!0);break;case"h":Dt=nn(Et.Hours,1,-12);break;case"hh":Dt=nn(Et.Hours,2,-12);break;case"H":Dt=nn(Et.Hours,1);break;case"HH":Dt=nn(Et.Hours,2);break;case"m":Dt=nn(Et.Minutes,1);break;case"mm":Dt=nn(Et.Minutes,2);break;case"s":Dt=nn(Et.Seconds,1);break;case"ss":Dt=nn(Et.Seconds,2);break;case"S":Dt=nn(Et.FractionalSeconds,1);break;case"SS":Dt=nn(Et.FractionalSeconds,2);break;case"SSS":Dt=nn(Et.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Dt=Mt(It.Short);break;case"ZZZZZ":Dt=Mt(It.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Dt=Mt(It.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Dt=Mt(It.Long);break;default:return null}return Gt[$e]=Dt,Dt}(Pr);Zi+=Fr?Fr(wn,ct,Hr):"''"===Pr?"'":Pr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Zi}function Pt($e,Dt,ct){const zt=new Date(0);return zt.setFullYear($e,Dt,ct),zt.setHours(0,0,0),zt}function Dn($e,Dt){const ct=function he($e){return(0,s.cg1)($e)[s.wAp.LocaleId]}($e);if(bt[ct]=bt[ct]||{},bt[ct][Dt])return bt[ct][Dt];let zt="";switch(Dt){case"shortDate":zt=Ce($e,K.Short);break;case"mediumDate":zt=Ce($e,K.Medium);break;case"longDate":zt=Ce($e,K.Long);break;case"fullDate":zt=Ce($e,K.Full);break;case"shortTime":zt=Ve($e,K.Short);break;case"mediumTime":zt=Ve($e,K.Medium);break;case"longTime":zt=Ve($e,K.Long);break;case"fullTime":zt=Ve($e,K.Full);break;case"short":const wn=Dn($e,"shortTime"),ii=Dn($e,"shortDate");zt=Gn(Be($e,K.Short),[wn,ii]);break;case"medium":const bi=Dn($e,"mediumTime"),Ni=Dn($e,"mediumDate");zt=Gn(Be($e,K.Medium),[bi,Ni]);break;case"long":const Hr=Dn($e,"longTime"),Zi=Dn($e,"longDate");zt=Gn(Be($e,K.Long),[Hr,Zi]);break;case"full":const Pr=Dn($e,"fullTime"),Fr=Dn($e,"fullDate");zt=Gn(Be($e,K.Full),[Pr,Fr])}return zt&&(bt[ct][Dt]=zt),zt}function Gn($e,Dt){return Dt&&($e=$e.replace(/\{([^}]+)}/g,function(ct,zt){return null!=Dt&&zt in Dt?Dt[zt]:ct})),$e}function Zn($e,Dt,ct="-",zt,wn){let ii="";($e<0||wn&&$e<=0)&&(wn?$e=1-$e:($e=-$e,ii=ct));let bi=String($e);for(;bi.length<Dt;)bi="0"+bi;return zt&&(bi=bi.substr(bi.length-Dt)),ii+bi}function nn($e,Dt,ct=0,zt=!1,wn=!1){return function(ii,bi){let Ni=function Vn($e,Dt){switch($e){case Et.FullYear:return Dt.getFullYear();case Et.Month:return Dt.getMonth();case Et.Date:return Dt.getDate();case Et.Hours:return Dt.getHours();case Et.Minutes:return Dt.getMinutes();case Et.Seconds:return Dt.getSeconds();case Et.FractionalSeconds:return Dt.getMilliseconds();case Et.Day:return Dt.getDay();default:throw new Error(`Unknown DateType value "${$e}".`)}}($e,ii);if((ct>0||Ni>-ct)&&(Ni+=ct),$e===Et.Hours)0===Ni&&-12===ct&&(Ni=12);else if($e===Et.FractionalSeconds)return function zn($e,Dt){return Zn($e,3).substr(0,Dt)}(Ni,Dt);const Hr=ut(bi,ge.MinusSign);return Zn(Ni,Dt,Hr,zt,wn)}}function Yt($e,Dt,ct=ee.Format,zt=!1){return function(wn,ii){return function Rn($e,Dt,ct,zt,wn,ii){switch(ct){case Rt.Months:return function Se($e,Dt,ct){const zt
vendor: 5,989 bytes, line 1
1=(0,s.cg1)($e),ii=ln([zt[s.wAp.MonthsFormat],zt[s.wAp.MonthsStandalone]],Dt);return ln(ii,ct)}(Dt,wn,zt)[$e.getMonth()];case Rt.Days:return function Ie($e,Dt,ct){const zt=(0,s.cg1)($e),ii=ln([zt[s.wAp.DaysFormat],zt[s.wAp.DaysStandalone]],Dt);return ln(ii,ct)}(Dt,wn,zt)[$e.getDay()];case Rt.DayPeriods:const bi=$e.getHours(),Ni=$e.getMinutes();if(ii){const Zi=function cn($e){const Dt=(0,s.cg1)($e);return jt(Dt),(Dt[s.wAp.ExtraData][2]||[]).map(zt=>"string"==typeof zt?Jt(zt):[Jt(zt[0]),Jt(zt[1])])}(Dt),Pr=function hn($e,Dt,ct){const zt=(0,s.cg1)($e);jt(zt);const ii=ln([zt[s.wAp.ExtraData][0],zt[s.wAp.ExtraData][1]],Dt)||[];return ln(ii,ct)||[]}(Dt,wn,zt),Fr=Zi.findIndex(Ir=>{if(Array.isArray(Ir)){const[Cr,st]=Ir,He=bi>=Cr.hours&&Ni>=Cr.minutes,g=bi<st.hours||bi===st.hours&&Ni<st.minutes;if(Cr.hours<st.hours){if(He&&g)return!0}else if(He||g)return!0}else if(Ir.hours===bi&&Ir.minutes===Ni)return!0;return!1});if(-1!==Fr)return Pr[Fr]}return function fe($e,Dt,ct){const zt=(0,s.cg1)($e),ii=ln([zt[s.wAp.DayPeriodsFormat],zt[s.wAp.DayPeriodsStandalone]],Dt);return ln(ii,ct)}(Dt,wn,zt)[bi<12?0:1];case Rt.Eras:return function pe($e,Dt){return ln((0,s.cg1)($e)[s.wAp.Eras],Dt)}(Dt,zt)[$e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${ct}`)}}(wn,ii,$e,Dt,ct,zt)}}function Mt($e){return function(Dt,ct,zt){const wn=-1*zt,ii=ut(ct,ge.MinusSign),bi=wn>0?Math.floor(wn/60):Math.ceil(wn/60);switch($e){case It.Short:return(wn>=0?"+":"")+Zn(bi,2,ii)+Zn(Math.abs(wn%60),2,ii);case It.ShortGMT:return"GMT"+(wn>=0?"+":"")+Zn(bi,1,ii);case It.Long:return"GMT"+(wn>=0?"+":"")+Zn(bi,2,ii)+":"+Zn(Math.abs(wn%60),2,ii);case It.Extended:return 0===zt?"Z":(wn>=0?"+":"")+Zn(bi,2,ii)+":"+Zn(Math.abs(wn%60),2,ii);default:throw new Error(`Unknown zone width "${$e}"`)}}}function Qe($e){return Pt($e.getFullYear(),$e.getMonth(),$e.getDate()+(4-$e.getDay()))}function Lt($e,Dt=!1){return function(ct,zt){let wn;if(Dt){const ii=new Date(ct.getFullYear(),ct.getMonth(),1).getDay()-1,bi=ct.getDate();wn=1+Math.floor((bi+ii)/7)}else{const ii=Qe(ct),bi=function Ue($e){const Dt=Pt($e,0,1).getDay();return Pt($e,0,1+(Dt<=4?4:11)-Dt)}(ii.getFullYear()),Ni=ii.getTime()-bi.getTime();wn=1+Math.round(Ni/6048e5)}return Zn(wn,$e,ut(zt,ge.MinusSign))}}function xt($e,Dt=!1){return function(ct,zt){return Zn(Qe(ct).getFullYear(),$e,ut(zt,ge.MinusSign),Dt)}}const Gt={};function Ne($e,Dt){$e=$e.replace(/:/g,"");const ct=Date.parse("Jan 01, 1970 00:00:00 "+$e)/6e4;return isNaN(ct)?Dt:ct}function Tt($e){return $e instanceof Date&&!isNaN($e.valueOf())}const rn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function gn($e,Dt,ct,zt,wn,ii,bi=!1){let Ni="",Hr=!1;if(isFinite($e)){let Zi=function at($e){let zt,wn,ii,bi,Ni,Dt=Math.abs($e)+"",ct=0;for((wn=Dt.indexOf("."))>-1&&(Dt=Dt.replace(".","")),(ii=Dt.search(/e/i))>0?(wn<0&&(wn=ii),wn+=+Dt.slice(ii+1),Dt=Dt.substring(0,ii)):wn<0&&(wn=Dt.length),ii=0;"0"===Dt.charAt(ii);ii++);if(ii===(Ni=Dt.length))zt=[0],wn=1;else{for(Ni--;"0"===Dt.charAt(Ni);)Ni--;for(wn-=ii,zt=[],bi=0;ii<=Ni;ii++,bi++)zt[bi]=Number(Dt.charAt(ii))}return wn>22&&(zt=zt.splice(0,21),ct=wn-1,wn=1),{digits:zt,exponent:ct,integerLen:wn}}($e);bi&&(Zi=function ve($e){if(0===$e.digits[0])return $e;const Dt=$e.digits.length-$e.integerLen;return $e.exponent?$e.exponent+=2:(0===Dt?$e.digits.push(0,0):1===Dt&&$e.digits.push(0),$e.integerLen+=2),$e}(Zi));let Pr=Dt.minInt,Fr=Dt.minFrac,Ir=Dt.maxFrac;if(ii){const v=ii.match(rn);if(null===v)throw new Error(`${ii} is not a valid digit info`);const T=v[1],ie=v[3],we=v[5];null!=T&&(Pr=xe(T)),null!=ie&&(Fr=xe(ie)),null!=we?Ir=xe(we):null!=ie&&Fr>Ir&&(Ir=Fr)}!function q($e,Dt,ct){if(Dt>ct)throw new Error(`The minimum number of digits after fraction (${Dt}) is higher than the maximum (${ct}).`);let zt=$e.digits,wn=zt.length-$e.integerLen;const ii=Math.min(Math.max(Dt,wn),ct);let bi=ii+$e.integerLen,Ni=zt[bi];if(bi>0){zt.splice(Math.max($e.integerLen,bi));for(let Fr=bi;Fr<zt.length;Fr++)zt[Fr]=0}else{wn=Math.max(0,wn),$e.integerLen=1,zt.length=Math.max(1,bi=ii+1),zt[0]=0;for(let Fr=1;Fr<bi;Fr++)zt[Fr]=0}if(Ni>=5)if(bi-1<0){for(let Fr=0;Fr>bi;Fr--)zt.unshift(0),$e.integerLen++;zt.unshift(1),$e.integerLen++}else zt[bi-1]++;for(;wn<Math.max(0,ii);wn++)zt.push(0);let Hr=0!==ii;const Zi=Dt+$e.integerLen,Pr=zt.reduceRight(function(Fr,Ir,Cr,st){return st[Cr]=(Ir+=Fr)<10?Ir:Ir-10,Hr&&(0===st[Cr]&&Cr>=Zi?st.pop():Hr=!1),Ir>=10?1:0},0);Pr&&(zt.unshift(Pr),$e.integerLen++)}(Zi,Fr,Ir);let Cr=Zi.digits,st=Zi.integerLen;const He=Zi.exponent;let g=[];for(Hr=Cr.every(v=>!v);st<Pr;st++)Cr.unshift(0);for(;st<0;st++)Cr.unshift(0);st>0?g=Cr.splice(st,Cr.length):(g=Cr,Cr=[0]);const u=[];for(Cr.length>=Dt.lgSize&&u.unshift(Cr.splice(-Dt.lgSize,Cr.length).join(""));Cr.length>Dt.gSize;)u.unshift(Cr.splice(-Dt.gSize,Cr.length).join(""));Cr.length&&u.unshift(Cr.join("")),Ni=u.join(ut(ct,zt)),g.length&&(Ni+=ut(ct,wn)+g.join("")),He&&(Ni+=ut(ct,ge.Exponential)+"+"+He)}else Ni=ut(ct,ge.Infinity);return Ni=$e<0&&!Hr?Dt.negPre+Ni+Dt.negSuf:Dt.posPre+Ni+Dt.posSuf,Ni}function ue($e,Dt="-"){const ct={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},zt=$e.split(";"),wn=zt[0],ii=zt[1],bi=-1!==wn.indexOf(".")?wn.split("."):[wn.substring(0,wn.lastIndexOf("0")+1),wn.substring(wn.lastIndexOf("0")+1)],Ni=bi[0],Hr=bi[1]||"";ct.posPre=Ni.substr(0,Ni.indexOf("#"));for(let Pr=0;Pr<Hr.length;Pr++){const Fr=Hr.charAt(Pr);"0"===Fr?ct.minFrac=ct.maxFrac=Pr+1:"#"===Fr?ct.maxFrac=Pr+1:ct.posSuf+=Fr}const Zi=Ni.split(",");if(ct.gSize=Zi[1]?Zi[1].length:0,ct.lgSize=Zi[2]||Zi[1]?(Zi[2]||Zi[1]).length:0,ii){const Pr=wn.length-ct.posPre.length-ct.posSuf.length,Fr=ii.indexOf("#");ct.negPre=ii.substr(0,Fr).replace(/'/g,""),ct.negSuf=ii.substr(Fr+Pr).replace(/'/g,"")}else ct.negPre=Dt+ct.posPre,ct.negSuf=ct.posSuf;return ct}function xe($e){const Dt=parseInt($e);if(isNaN(Dt))throw new Error("Invalid integer literal when parsing "+$e);return Dt}function vi($e,Dt){Dt=encodeURIComponent(Dt);for(const ct of $e.split(";
1")){const zt=ct.indexOf("="),[wn,ii]=-1==zt?[ct,""]:[ct.slice(0,zt),ct.slice(zt+1)];if(wn.trim()===Dt)return decodeURIComponent(ii)}return null}let li=(()=>{class $e{constructor(ct,zt,wn,ii){this._iterableDiffers=ct,this._keyValueDiffers=zt,this._ngEl=wn,this._renderer=ii,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(ct){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof ct?ct.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(ct){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof ct?ct.split(/\s+/):ct,this._rawClass&&((0,s.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const ct=this._iterableDiffer.diff(this._rawClass);ct&&this._applyIterableChanges(ct)}else if(this._keyValueDiffer){const ct=this._keyValueDiffer.diff(this._rawClass);ct&&this._applyKeyValueChanges(ct)}}_applyKeyValueChanges(ct){ct.forEachAddedItem(zt=>this._toggleClass(zt.key,zt.currentValue)),ct.forEachChangedItem(zt=>this._toggleClass(zt.key,zt.currentValue)),ct.forEachRemovedItem(zt=>{zt.previousValue&&this._toggleClass(zt.key,!1)})}_applyIterableChanges(ct){ct.forEachAddedItem(zt=>{if("string"!=typeof zt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,s.AaK)(zt.item)}`);this._toggleClass(zt.item,!0)}),ct.forEachRemovedItem(zt=>this._toggleClass(zt.item,!1))}_applyClasses(ct){ct&&(Array.isArray(ct)||ct instanceof Set?ct.forEach(zt=>this._toggleClass(zt,!0)):Object.keys(ct).forEach(zt=>this._toggleClass(zt,!!ct[zt])))}_removeClasses(ct){ct&&(Array.isArray(ct)||ct instanceof Set?ct.forEach(zt=>this._toggleClass(zt,!1)):Object.keys(ct).forEach(zt=>this._toggleClass(zt,!1)))}_toggleClass(ct,zt){(ct=ct.trim())&&ct.split(/\s+/g).forEach(wn=>{zt?this._renderer.addClass(this._ngEl.nativeElement,wn):this._renderer.removeClass(this._ngEl.nativeElement,wn)})}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.ZZ4),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Qsj))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),$e})();class zi{constructor(Dt,ct,zt,wn){this.$implicit=Dt,this.ngForOf=ct,this.index=zt,this.count=wn}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 hr=(()=>{class $e{constructor(ct,zt,wn){this._viewContainer=ct,this._template=zt,this._differs=wn,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(ct){this._ngForOf=ct,this._ngForOfDirty=!0}set ngForTrackBy(ct){this._trackByFn=ct}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(ct){ct&&(this._template=ct)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ct=this._ngForOf;!this._differ&&ct&&(this._differ=this._differs.find(ct).create(this.ngForTrackBy))}if(this._differ){const ct=this._differ.diff(this._ngForOf);ct&&this._applyChanges(ct)}}_applyChanges(ct){const zt=this._viewContainer;ct.forEachOperation((wn,ii,bi)=>{if(null==wn.previousIndex)zt.createEmbeddedView(this._template,new zi(wn.item,this._ngForOf,-1,-1),null===bi?void 0:bi);else if(null==bi)zt.remove(null===ii?void 0:ii);else if(null!==ii){const Ni=zt.get(ii);zt.move(Ni,bi),Wi(Ni,wn)}});for(let wn=0,ii=zt.length;wn<ii;wn++){const Ni=zt.get(wn).context;Ni.index=wn,Ni.count=ii,Ni.ngForOf=this._ngForOf}ct.forEachIdentityChange(wn=>{Wi(zt.get(wn.currentIndex),wn)})}static ngTemplateContextGuard(ct,zt){return!0}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),$e})();function Wi($e,Dt){$e.context.$implicit=Dt.item}let fs=(()=>{class $e{constructor(ct,zt){this._viewContainer=ct,this._context=new or,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenView
vendor: 4,092 bytes, line 1
1Ref=null,this._elseViewRef=null,this._thenTemplateRef=zt}set ngIf(ct){this._context.$implicit=this._context.ngIf=ct,this._updateView()}set ngIfThen(ct){vs("ngIfThen",ct),this._thenTemplateRef=ct,this._thenViewRef=null,this._updateView()}set ngIfElse(ct){vs("ngIfElse",ct),this._elseTemplateRef=ct,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(ct,zt){return!0}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.s_b),s.Y36(s.Rgc))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),$e})();class or{constructor(){this.$implicit=null,this.ngIf=null}}function vs($e,Dt){if(Dt&&!Dt.createEmbeddedView)throw new Error(`${$e} must be a TemplateRef, but received '${(0,s.AaK)(Dt)}'.`)}const go="browser";function Os($e){return $e===go}function Rs($e){return"server"===$e}class js{constructor(Dt,ct){this._viewContainerRef=Dt,this._templateRef=ct,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Dt){Dt&&!this._created?this.create():!Dt&&this._created&&this.destroy()}}let _o=(()=>{class $e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ct){this._ngSwitch=ct,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ct){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(ct)}_matchCase(ct){const zt=ct==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||zt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),zt}_updateDefaultCases(ct){if(this._defaultViews&&ct!==this._defaultUsed){this._defaultUsed=ct;for(let zt=0;zt<this._defaultViews.length;zt++)this._defaultViews[zt].enforceState(ct)}}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),$e})(),Yo=(()=>{class $e{constructor(ct,zt,wn){this.ngSwitch=wn,wn._addCase(),this._view=new js(ct,zt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(_o,9))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),$e})(),oo=(()=>{class $e{constructor(ct,zt,wn){wn._addDefault(new js(ct,zt))}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(_o,9))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngSwitchDefault",""]]}),$e})(),us=(()=>{class $e{constructor(ct,zt,wn){this._ngEl=ct,this._differs=zt,this._renderer=wn,this._ngStyle=null,this._differ=null}set ngStyle(ct){this._ngStyle=ct,!this._differ&&ct&&(this._differ=this._differs.find(ct).create())}ngDoCheck(){if(this._differ){const ct=this._differ.diff(this._ngStyle);ct&&this._applyChanges(ct)}}_setStyle(ct,zt){const[wn,ii]=ct.split(".");null!=(zt=null!=zt&&ii?`${zt}${ii}`:zt)?this._renderer.setStyle(this._ngEl.nativeElement,wn,zt):this._renderer.removeStyle(this._ngEl.nativeElement,wn)}_applyChanges(ct){ct.forEachRemovedItem(zt=>this._setStyle(zt.key,null)),ct.forEachAddedItem(zt=>this._setStyle(zt.key,zt.currentValue)),ct.forEachChangedItem(zt=>this._setStyle(zt.key,zt.currentValue))}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.SBq),s.Y36(s.aQg),s.Y36(s.Qsj))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),$e})(),Ur=(()=>
1{class $e{constructor(ct){this._viewContainerRef=ct,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(ct){if(ct.ngTemplateOutlet){const zt=this._viewContainerRef;this._viewRef&&zt.remove(zt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?zt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&ct.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.s_b))},$e.\u0275dir=s.lG2({type:$e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[s.TTD]}),$e})();function Bt($e,Dt){return new s.vHH(2100,"")}class ye{createSubscription(Dt,ct){return Dt.subscribe({next:ct,error:zt=>{throw zt}})}dispose(Dt){Dt.unsubscribe()}onDestroy(Dt){Dt.unsubscribe()}}class Te{createSubscription(Dt,ct){return Dt.then(ct,zt=>{throw zt})}dispose(Dt){}onDestroy(Dt){}}const gt=new Te,$t=new ye;let mn=(()=>{class $e{constructor(ct){this._ref=ct,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(ct){return this._obj?ct!==this._obj?(this._dispose(),this.transform(ct)):this._latestValue:(ct&&this._subscribe(ct),this._latestValue)}_subscribe(ct){this._obj=ct,this._strategy=this._selectStrategy(ct),this._subscription=this._strategy.createSubscription(ct,zt=>this._updateLatestValue(ct,zt))}_selectStrategy(ct){if((0,s.QGY)(ct))return gt;if((0,s.F4k)(ct))return $t;throw Bt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ct,zt){ct===this._obj&&(this._latestValue=zt,this._ref.markForCheck())}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.sBO,16))},$e.\u0275pipe=s.Yjl({name:"async",type:$e,pure:!1}),$e})(),kn=(()=>{class $e{transform(ct){if(null==ct)return null;if("string"!=typeof ct)throw Bt();return ct.toLowerCase()}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275pipe=s.Yjl({name:"lowercase",type:$e,pure:!0}),$e})();const In=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Yn=(()=>{class $e{transform(ct){if(null==ct)return null;if("string"!=typeof ct)throw Bt();return ct.replace(In,zt=>zt[0].toUpperCase()+zt.substr(1).toLowerCase())}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275pipe=s.Yjl({name:"titlecase",type:$e,pure:!0}),$e})(),ci=(()=>{class $e{transform(ct){if(null==ct)return null;if("string"!=typeof ct)throw Bt();return ct.toUpperCase()}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275pipe=s.Yjl({name:"uppercase",type:$e,pure:!0}),$e})();const Oi=new s.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ji=(()=>{class $e{constructor(ct,zt){this.locale=ct,this.defaultTimezone=zt}transform(ct,zt="mediumDate",wn,ii){var bi;if(null==ct||""===ct||ct!=ct)return null;try{return Wt(ct,zt,ii||this.locale,null!==(bi=null!=wn?wn:this.defaultTimezone)&&void 0!==bi?bi:void 0)}catch(Ni){throw Bt()}}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.soG,16),s.Y36(Oi,24))},$e.\u0275pipe=s.Yjl({name:"date",type:$e,pure:!0}),$e})(),Mr=(()=>{class $e{transform(ct){return JSON.stringify(ct,null,2)}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275pipe=s.Yjl({name:"json",type:$e,pure:!1}),$e})(),Sr=(()=>{class $e{constructor(ct){this.differs=ct,this.keyValues=[],this.compareFn=$r}transform(ct,zt=$r){if(!ct||!(ct instanceof Map)&&"object"!=typeof ct)return null;this.differ||(this.differ=this.differs.find(ct).create());const wn=this.differ.diff(ct),ii=zt!==this.compareFn;return wn&&(this.keyValues=[],wn.forEachItem(bi=>{this.keyValues.push(function ui($e,Dt){return{key:$e,value:Dt}}(bi.key,bi.currentValue))})),(wn||ii)&&(this.keyValues.sort(zt),this.compareFn=zt),this.keyValues}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.aQg,16))},$e.\u0275pipe=s.Yjl({name:"keyvalue",type:$e,pure:!1}),$e})();function $r($e,Dt){const ct=$e.key,zt=Dt.key;if(ct===zt)return 0;if(void 0===ct)return 1;if(void 0===zt)return-1;if(null===ct)return 1;if(null===zt)return-1;if("string"==typeof ct&&"string"==typeof zt)return ct<zt?-1:1;if("number"==typeof ct&&"number"==typeof zt)return ct-zt;if("boolean"==typeof ct&&"boolean"==typeof zt)return ct<zt?-1:1;const wn=String(ct),ii=String(zt);return wn==ii?0:wn<ii?-1:1}let Es=(()=>{class $e{constructor(ct){this._locale=ct}transform(ct,zt,wn){if(!As(ct))return null;wn=wn||this._locale;try{return function it($e,Dt,ct){return gn($e,ue(Ge(Dt,A.Decimal),ut(Dt,ge.MinusSign)),Dt,ge.Group,ge.Decimal,ct)}(br(ct),wn,zt)}catch(ii){throw Bt()}}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.soG,16))},$e.\u0275pipe=s.Yjl({name:"number",type:$e,pure:!0}),$e})(),es=(()=>{class $e{constructor(ct,zt="USD"){this._locale=ct,this._defaultCurrencyCode=zt}transform(ct,zt=this._defaultCurrencyCode,wn="symbol",ii,bi){if(!As(ct))return null;bi=bi||this._locale,"boolean"==typeof wn&&(wn=wn?"symbol":"code");let Ni=zt||this._defaultCurrencyCode;"code"!==wn&&(Ni="symbol"===wn||"symbol-narrow"===wn?function Xe($e,Dt,ct="en"){const zt
1=function ht($e){return(0,s.cg1)($e)[s.wAp.Currencies]}(ct)[$e]||M[$e]||[],wn=zt[1];return"narrow"===Dt&&"string"==typeof wn?wn:zt[0]||$e}(Ni,"symbol"===wn?"wide":"narrow",bi):wn);try{return function En($e,Dt,ct,zt,wn){const bi=ue(Ge(Dt,A.Currency),ut(Dt,ge.MinusSign));return bi.minFrac=function Pe($e){let Dt;const ct=M[$e];return ct&&(Dt=ct[2]),"number"==typeof Dt?Dt:2}(zt),bi.maxFrac=bi.minFrac,gn($e,bi,Dt,ge.CurrencyGroup,ge.CurrencyDecimal,wn).replace("\xa4",ct).replace("\xa4","").trim()}(br(ct),bi,Ni,zt,ii)}catch(Hr){throw Bt()}}}return $e.\u0275fac=function(ct){return new(ct||$e)(s.Y36(s.soG,16),s.Y36(s.EJc,16))},$e.\u0275pipe=s.Yjl({name:"currency",type:$e,pure:!0}),$e})();function As($e){return!(null==$e||""===$e||$e!=$e)}function br($e){if("string"==typeof $e&&!isNaN(Number($e)-parseFloat($e)))return Number($e);if("number"!=typeof $e)throw new Error(`${$e} is not a number`);return $e}let rs=(()=>{class $e{transform(ct,zt,wn){if(null==ct)return null;if(!this.supports(ct))throw Bt();return ct.slice(zt,wn)}supports(ct){return"string"==typeof ct||Array.isArray(ct)}}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275pipe=s.Yjl({name:"slice",type:$e,pure:!1}),$e})(),nt=(()=>{class $e{}return $e.\u0275fac=function(ct){return new(ct||$e)},$e.\u0275mod=s.oAB({type:$e}),$e.\u0275inj=s.cJS({}),$e})(),fn=(()=>{class $e{}return $e.\u0275prov=(0,s.Yz7)({token:$e,providedIn:"root",factory:()=>new Fn((0,s.LFG)(ce),window)}),$e})();class Fn{constructor(Dt,ct){this.document=Dt,this.window=ct,this.offset=()=>[0,0]}setOffset(Dt){this.offset=Array.isArray(Dt)?()=>Dt:Dt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Dt){this.supportsScrolling()&&this.window.scrollTo(Dt[0],Dt[1])}scrollToAnchor(Dt){if(!this.supportsScrolling())return;const ct=function Hi($e,Dt){const ct=$e.getElementById(Dt)||$e.getElementsByName(Dt)[0];if(ct)return ct;if("function"==typeof $e.createTreeWalker&&$e.body&&($e.body.createShadowRoot||$e.body.attachShadow)){const zt=$e.createTreeWalker($e.body,NodeFilter.SHOW_ELEMENT);let wn=zt.currentNode;for(;wn;){const ii=wn.shadowRoot;if(ii){const bi=ii.getElementById(Dt)||ii.querySelector(`[name="${Dt}"]`);if(bi)return bi}wn=zt.nextNode()}}return null}(this.document,Dt);ct&&(this.scrollToElement(ct),ct.focus())}setHistoryScrollRestoration(Dt){if(this.supportScrollRestoration()){const ct=this.window.history;ct&&ct.scrollRestoration&&(ct.scrollRestoration=Dt)}}scrollToElement(Dt){const ct=Dt.getBoundingClientRect(),zt=ct.left+this.window.pageXOffset,wn=ct.top+this.window.pageYOffset,ii=this.offset();this.window.scrollTo(zt-ii[0],wn-ii[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Dt=qn(this.window.history)||qn(Object.getPrototypeOf(this.window.history));return!(!Dt||!Dt.writable&&!Dt.set)}catch(Dt){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Dt){return!1}}}function qn($e){return Object.getOwnPropertyDescriptor($e,"scrollRestoration")}class xi{}},520:(Qt,Z,S)=>{"use strict";S.d(Z,{JF:()=>Jt,LE:()=>Q,TP:()=>he,WM:()=>$,eN:()=>ge});var s=S(9808),_=S(5e3),y=S(1086),j=S(6498),D=S(1406),L=S(2198),ce=S(4850);class W{}class G{}class ${constructor(tt){this.normalizedNames=new Map,this.lazyUpdate=null,tt?this.lazyInit="string"==typeof tt?()=>{this.headers=new Map,tt.split("\n").forEach(bt=>{const un=bt.indexOf(":");if(un>0){const It=bt.slice(0,un),Et=It.toLowerCase(),Rt=bt.slice(un+1).trim();this.maybeSetNormalizedName(It,Et),this.headers.has(Et)?this.headers.get(Et).push(Rt):this.headers.set(Et,[Rt])}})}:()=>{this.headers=new Map,Object.keys(tt).forEach(bt=>{let un=tt[bt];const It=bt.toLowerCase();"string"==typeof un&&(un=[un]),un.length>0&&(this.headers.set(It,un),this.maybeSetNormalizedName(bt,It))})}:this.headers=new Map}has(tt){return this.init(),this.headers.has(tt.toLowerCase())}get(tt){this.init();const bt=this.headers.get(tt.toLowerCase());return bt&&bt.length>0?bt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(tt){return this.init(),this.headers.get(tt.toLowerCase())||null}append(tt,bt){return this.clone({name:tt,value:bt,op:"a"})}set(tt,bt){return this.clone({name:tt,value:bt,op:"s"})}delete(tt,bt){return this.clone({name:tt,value:bt,op:"d"})}maybeSetNormalizedName(tt,bt){this.normalizedNames.has(bt)||this.normalizedNames.set(bt,tt)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(tt=>this.applyUpdate(tt)),this.lazyUpdate=null))}
vendor: 9,990 bytes, line 1
1copyFrom(tt){tt.init(),Array.from(tt.headers.keys()).forEach(bt=>{this.headers.set(bt,tt.headers.get(bt)),this.normalizedNames.set(bt,tt.normalizedNames.get(bt))})}clone(tt){const bt=new $;return bt.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,bt.lazyUpdate=(this.lazyUpdate||[]).concat([tt]),bt}applyUpdate(tt){const bt=tt.name.toLowerCase();switch(tt.op){case"a":case"s":let un=tt.value;if("string"==typeof un&&(un=[un]),0===un.length)return;this.maybeSetNormalizedName(tt.name,bt);const It=("a"===tt.op?this.headers.get(bt):void 0)||[];It.push(...un),this.headers.set(bt,It);break;case"d":const Et=tt.value;if(Et){let Rt=this.headers.get(bt);if(!Rt)return;Rt=Rt.filter(Wt=>-1===Et.indexOf(Wt)),0===Rt.length?(this.headers.delete(bt),this.normalizedNames.delete(bt)):this.headers.set(bt,Rt)}else this.headers.delete(bt),this.normalizedNames.delete(bt)}}forEach(tt){this.init(),Array.from(this.normalizedNames.keys()).forEach(bt=>tt(this.normalizedNames.get(bt),this.headers.get(bt)))}}class te{encodeKey(tt){return Re(tt)}encodeValue(tt){return Re(tt)}decodeKey(tt){return decodeURIComponent(tt)}decodeValue(tt){return decodeURIComponent(tt)}}const J=/%(\d[a-f0-9])/gi,Me={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Re(Pe){return encodeURIComponent(Pe).replace(J,(tt,bt)=>{var un;return null!==(un=Me[bt])&&void 0!==un?un:tt})}function me(Pe){return`${Pe}`}class Q{constructor(tt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=tt.encoder||new te,tt.fromString){if(tt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Pe,tt){const bt=new Map;return Pe.length>0&&Pe.replace(/^\?/,"").split("&").forEach(It=>{const Et=It.indexOf("="),[Rt,Wt]=-1==Et?[tt.decodeKey(It),""]:[tt.decodeKey(It.slice(0,Et)),tt.decodeValue(It.slice(Et+1))],Pt=bt.get(Rt)||[];Pt.push(Wt),bt.set(Rt,Pt)}),bt}(tt.fromString,this.encoder)}else tt.fromObject?(this.map=new Map,Object.keys(tt.fromObject).forEach(bt=>{const un=tt.fromObject[bt];this.map.set(bt,Array.isArray(un)?un:[un])})):this.map=null}has(tt){return this.init(),this.map.has(tt)}get(tt){this.init();const bt=this.map.get(tt);return bt?bt[0]:null}getAll(tt){return this.init(),this.map.get(tt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(tt,bt){return this.clone({param:tt,value:bt,op:"a"})}appendAll(tt){const bt=[];return Object.keys(tt).forEach(un=>{const It=tt[un];Array.isArray(It)?It.forEach(Et=>{bt.push({param:un,value:Et,op:"a"})}):bt.push({param:un,value:It,op:"a"})}),this.clone(bt)}set(tt,bt){return this.clone({param:tt,value:bt,op:"s"})}delete(tt,bt){return this.clone({param:tt,value:bt,op:"d"})}toString(){return this.init(),this.keys().map(tt=>{const bt=this.encoder.encodeKey(tt);return this.map.get(tt).map(un=>bt+"="+this.encoder.encodeValue(un)).join("&")}).filter(tt=>""!==tt).join("&")}clone(tt){const bt=new Q({encoder:this.encoder});return bt.cloneFrom=this.cloneFrom||this,bt.updates=(this.updates||[]).concat(tt),bt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(tt=>this.map.set(tt,this.cloneFrom.map.get(tt))),this.updates.forEach(tt=>{switch(tt.op){case"a":case"s":const bt=("a"===tt.op?this.map.get(tt.param):void 0)||[];bt.push(me(tt.value)),this.map.set(tt.param,bt);break;case"d":if(void 0===tt.value){this.map.delete(tt.param);break}{let un=this.map.get(tt.param)||[];const It=un.indexOf(me(tt.value));-1!==It&&un.splice(It,1),un.length>0?this.map.set(tt.param,un):this.map.delete(tt.param)}}}),this.cloneFrom=this.updates=null)}}class N{constructor(){this.map=new Map}set(tt,bt){return this.map.set(tt,bt),this}get(tt){return this.map.has(tt)||this.map.set(tt,tt.defaultValue()),this.map.get(tt)}delete(tt){return this.map.delete(tt),this}has(tt){return this.map.has(tt)}keys(){return this.map.keys()}}function de(Pe){return"undefined"!=typeof ArrayBuffer&&Pe instanceof ArrayBuffer}function re(Pe){return"undefined"!=typeof Blob&&Pe instanceof Blob}function V(Pe){return"undefined"!=typeof FormData&&Pe instanceof FormData}class E{constructor(tt,bt,un,It){let Et;if(this.url=bt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=tt.toUpperCase(),function Y(Pe){switch(Pe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||It?(this.body=void 0!==un?un:null,Et=It):Et=un,Et&&(this.reportProgress=!!Et.reportProgress,this.withCredentials=!!Et.withCredentials,Et.responseType&&(this.responseType=Et.responseType),Et.headers&&(this.headers=Et.headers),Et.context&&(this.context=Et.context),Et.params&&(this.params=Et.params)),this.headers||(this.headers=new $),this.context||(this.context=new N),this.params){const Rt=this.params.toString();if(0===Rt.length)this.urlWithParams=bt;else{const Wt=bt.indexOf("?");this.urlWithParams=bt+(-1===Wt?"?":Wt<bt.length-1?"&":"")+Rt}}else this.params=new Q,this.urlWithParams=bt}serializeBody(){return null===this.body?null:de(this.body)||re(this.body)||V(this.body)||function ne(Pe){return"undefined"!=typeof URLSearchParams&&Pe instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Q?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||V(this.body)?null:re(this.body)?this.body.type||null:de(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(tt={}){var bt;const un=tt.method||this.method,It=tt.url||this.url,Et=tt.responseType||this.responseType,Rt=void 0!==tt.body?tt.body:this.body,Wt=void 0!==tt.withCredentials?tt.withCredentials:this.withCredentials,Pt=void 0!==tt.reportProgress?tt.reportProgress:this.reportProgress;let Dn=tt.headers||this.headers,Gn=tt.params||this.params;const Zn=null!==(bt=tt.context)&&void 0!==bt?bt:this.context;return void 0!==tt.setHeaders&&(Dn=Object.keys(tt.setHeaders).reduce((zn,nn)=>zn.set(nn,tt.setHeaders[nn]),Dn)),tt.setParams&&(Gn=Object.keys(tt.setParams).reduce((zn,nn)=>zn.set(nn,tt.setParams[nn]),Gn)),new E(un,It,Rt,{params:Gn,headers:Dn,context:Zn,reportProgress:Pt,responseType:Et,withCredentials:Wt})}}var M=(()=>((M=M||{})[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M))();class A{constructor(tt,bt=200,un="OK"){this.headers=tt.headers||new $,this.status=void 0!==tt.status?tt.status:bt,this.statusText=tt.statusText||un,this.url=tt.url||null,this.ok=this.status>=200&&this.status<300}}class R extends A{constructor(tt={}){super(tt),this.type=M.ResponseHeader}clone(tt={}){return new R({headers:tt.headers||this.headers,status:void 0!==tt.status?tt.status:this.status,statusText:tt.statusText||this.statusText,url:tt.url||this.url||void 0})}}class ee extends A{constructor(tt={}){super(tt),this.type=M.Response,this.body=void 0!==tt.body?tt.body:null}clone(tt={}){return new ee({body:void 0!==tt.body?tt.body:this.body,headers:tt.headers||this.headers,status:void 0!==tt.status?tt.status:this.status,statusText:tt.statusText||this.statusText,url:tt.url||this.url||void 0})}}class B extends A{constructor(tt){super(tt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${tt.url||"(unknown url)"}`:`Http failure response for ${tt.url||"(unknown url)"}: ${tt.status} ${tt.statusText}`,this.error=tt.error||null}}function K(Pe,tt){return{body:tt,headers:Pe.headers,context:Pe.context,observe:Pe.observe,params:Pe.params,reportProgress:Pe.reportProgress,responseType:Pe.responseType,withCredentials:Pe.withCredentials}}let ge=(()=>{class Pe{constructor(bt){this.handler=bt}request(bt,un,It={}){let Et;if(bt instanceof E)Et=bt;else{let Pt,Dn;Pt=It.headers instanceof $?It.headers:new $(It.headers),It.params&&(Dn=It.params instanceof Q?It.params:new Q({fromObject:It.params})),Et=new E(bt,un,void 0!==It.body?It.body:null,{headers:Pt,context:It.context,params:Dn,reportProgress:It.reportProgress,responseType:It.responseType||"json",withCredentials:It.withCredentials})}const Rt=(0,y.of)(Et).pipe((0,D.b)(Pt=>this.handler.handle(Pt)));if(bt instanceof E||"events"===It.observe)return Rt;const Wt=Rt.pipe((0,L.h)(Pt=>Pt instanceof ee));switch(It.observe||"body"){case"body":switch(Et.responseType){case"arraybuffer":return Wt.pipe((0,ce.U)(Pt=>{if(null!==Pt.body&&!(Pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Pt.body}));case"blob":return Wt.pipe((0,ce.U)(Pt=>{if(null!==Pt.body&&!(Pt.body instanceof Blob))throw new Error("Response is not a Blob.");return Pt.body}));case"text":return Wt.pipe((0,ce.U)(Pt=>{if(null!==Pt.body&&"string"!=typeof Pt.body)throw new Error("Response is not a string.");return Pt.body}));default:return Wt.pipe((0,ce.U)(Pt=>Pt.body))}case"response":return Wt;default:throw new Error(`Unreachable: unhandled observe type ${It.observe}}`)}}delete(bt,un={}){return this.request("DELETE",bt,un)}get(bt,un={}){return this.request("GET",bt,un)}head(bt,un={}){return this.request("HEAD",bt,un)}jsonp(bt,un){return this.request("JSONP",bt,{params:(new Q).append(un,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(bt,un={}){return this.request("OPTIONS",bt,un)}patch(bt,un,It={}){return this.request("PATCH",bt,K(It,un))}post(bt,un,It={}){return this.request("POST",bt,K(It,un))}put(bt,un,It={}){return this.request("PUT",bt,K(It,un))}}return Pe.\u0275fac=function(bt){return new(bt||Pe)(_.LFG(W))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Fe{constructor(tt,bt){this.next=tt,this.interceptor=bt}
vendor: 9,460 bytes, line 1
1handle(tt){return this.interceptor.intercept(tt,this.next)}}const he=new _.OlP("HTTP_INTERCEPTORS");let fe=(()=>{class Pe{intercept(bt,un){return un.handle(bt)}}return Pe.\u0275fac=function(bt){return new(bt||Pe)},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const ut=/^\)\]\}',?\n/;let wt=(()=>{class Pe{constructor(bt){this.xhrFactory=bt}handle(bt){if("JSONP"===bt.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(un=>{const It=this.xhrFactory.build();if(It.open(bt.method,bt.urlWithParams),bt.withCredentials&&(It.withCredentials=!0),bt.headers.forEach((nn,Vn)=>It.setRequestHeader(nn,Vn.join(","))),bt.headers.has("Accept")||It.setRequestHeader("Accept","application/json, text/plain, */*"),!bt.headers.has("Content-Type")){const nn=bt.detectContentTypeHeader();null!==nn&&It.setRequestHeader("Content-Type",nn)}if(bt.responseType){const nn=bt.responseType.toLowerCase();It.responseType="json"!==nn?nn:"text"}const Et=bt.serializeBody();let Rt=null;const Wt=()=>{if(null!==Rt)return Rt;const nn=It.statusText||"OK",Vn=new $(It.getAllResponseHeaders()),Yt=function Ge(Pe){return"responseURL"in Pe&&Pe.responseURL?Pe.responseURL:/^X-Request-URL:/m.test(Pe.getAllResponseHeaders())?Pe.getResponseHeader("X-Request-URL"):null}(It)||bt.url;return Rt=new R({headers:Vn,status:It.status,statusText:nn,url:Yt}),Rt},Pt=()=>{let{headers:nn,status:Vn,statusText:Yt,url:Rn}=Wt(),Mt=null;204!==Vn&&(Mt=void 0===It.response?It.responseText:It.response),0===Vn&&(Vn=Mt?200:0);let kt=Vn>=200&&Vn<300;if("json"===bt.responseType&&"string"==typeof Mt){const We=Mt;Mt=Mt.replace(ut,"");try{Mt=""!==Mt?JSON.parse(Mt):null}catch(Ue){Mt=We,kt&&(kt=!1,Mt={error:Ue,text:Mt})}}kt?(un.next(new ee({body:Mt,headers:nn,status:Vn,statusText:Yt,url:Rn||void 0})),un.complete()):un.error(new B({error:Mt,headers:nn,status:Vn,statusText:Yt,url:Rn||void 0}))},Dn=nn=>{const{url:Vn}=Wt(),Yt=new B({error:nn,status:It.status||0,statusText:It.statusText||"Unknown Error",url:Vn||void 0});un.error(Yt)};let Gn=!1;const Zn=nn=>{Gn||(un.next(Wt()),Gn=!0);let Vn={type:M.DownloadProgress,loaded:nn.loaded};nn.lengthComputable&&(Vn.total=nn.total),"text"===bt.responseType&&!!It.responseText&&(Vn.partialText=It.responseText),un.next(Vn)},zn=nn=>{let Vn={type:M.UploadProgress,loaded:nn.loaded};nn.lengthComputable&&(Vn.total=nn.total),un.next(Vn)};return It.addEventListener("load",Pt),It.addEventListener("error",Dn),It.addEventListener("timeout",Dn),It.addEventListener("abort",Dn),bt.reportProgress&&(It.addEventListener("progress",Zn),null!==Et&&It.upload&&It.upload.addEventListener("progress",zn)),It.send(Et),un.next({type:M.Sent}),()=>{It.removeEventListener("error",Dn),It.removeEventListener("abort",Dn),It.removeEventListener("load",Pt),It.removeEventListener("timeout",Dn),bt.reportProgress&&(It.removeEventListener("progress",Zn),null!==Et&&It.upload&&It.upload.removeEventListener("progress",zn)),It.readyState!==It.DONE&&It.abort()}})}}return Pe.\u0275fac=function(bt){return new(bt||Pe)(_.LFG(s.JF))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const Ot=new _.OlP("XSRF_COOKIE_NAME"),Ft=new _.OlP("XSRF_HEADER_NAME");class ht{}let Ht=(()=>{class Pe{constructor(bt,un,It){this.doc=bt,this.platform=un,this.cookieName=It,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const bt=this.doc.cookie||"";return bt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,s.Mx)(bt,this.cookieName),this.lastCookieString=bt),this.lastToken}}return Pe.\u0275fac=function(bt){return new(bt||Pe)(_.LFG(s.K0),_.LFG(_.Lbi),_.LFG(Ot))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),jt=(()=>{class Pe{constructor(bt,un){this.tokenService=bt,this.headerName=un}intercept(bt,un){const It=bt.url.toLowerCase();if("GET"===bt.method||"HEAD"===bt.method||It.startsWith("http://")||It.startsWith("https://"))return un.handle(bt);const Et=this.tokenService.getToken();return null!==Et&&!bt.headers.has(this.headerName)&&(bt=bt.clone({headers:bt.headers.set(this.headerName,Et)})),un.handle(bt)}}return Pe.\u0275fac=function(bt){return new(bt||Pe)(_.LFG(ht),_.LFG(Ft))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),cn=(()=>{class Pe{constructor(bt,un){this.backend=bt,this.injector=un,this.chain=null}handle(bt){if(null===this.chain){const un=this.injector.get(he,[]);this.chain=un.reduceRight((It,Et)=>new Fe(It,Et),this.backend)}return this.chain.handle(bt)}}return Pe.\u0275fac=function(bt){return new(bt||Pe)(_.LFG(G),_.LFG(_.zs3))},Pe.\u0275prov=_.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),ln=(()=>{class Pe{static disable(){return{ngModule:Pe,providers:[{provide:jt,useClass:fe}]}}static withOptions(bt={}){return{ngModule:Pe,providers:[bt.cookieName?{provide:Ot,useValue:bt.cookieName}:[],bt.headerName?{provide:Ft,useValue:bt.headerName}:[]]}}}return Pe.\u0275fac=function(bt){return new(bt||Pe)},Pe.\u0275mod=_.oAB({type:Pe}),Pe.\u0275inj=_.cJS({providers:[jt,{provide:he,useExisting:jt,multi:!0},{provide:ht,useClass:Ht},{provide:Ot,useValue:"XSRF-TOKEN"},{provide:Ft,useValue:"X-XSRF-TOKEN"}]}),Pe})(),Jt=(()=>{class Pe{}return Pe.\u0275fac=function(bt){return new(bt||Pe)},Pe.\u0275mod=_.oAB({type:Pe}),Pe.\u0275inj=_.cJS({providers:[ge,{provide:W,useClass:cn},wt,{provide:G,useExisting:wt}],imports:[[ln.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Pe})()},5e3:(Qt,Z,S)=>{"use strict";S.d(Z,{$8M:()=>_a,$Z:()=>be,AFp:()=>ab,ALo:()=>Ay,AaK:()=>W,AsE:()=>$m,B6R:()=>Lt,BQk:()=>Ci,CHM:()=>ns,CRH:()=>Uy,CZH:()=>w_,CqO:()=>sr,DdM:()=>_y,Dn7:()=>xy,EJc:()=>vE,EiD:()=>Ln,EpF:()=>Ri,F$t:()=>nl,F4k:()=>er,FYo:()=>ly,FiY:()=>dc,G48:()=>VE,Gf:()=>Ny,GfV:()=>cy,GkF:()=>Vi,Gpc:()=>te,Gre:()=>wv,HOy:()=>Qm,Hsn:()=>Ya,Ikx:()=>Xm,JOm:()=>la,JVY:()=>ja,Jf7:()=>kp,Jzz:()=>Ev,L6k:()=>wl,LAX:()=>wh,LFG:()=>Uo,LSH:()=>kr,Lbi:()=>gE,MAs:()=>Pn,MGl:()=>wg,NdJ:()=>Tr,O4$:()=>rs,OlP:()=>ro,Oqu:()=>Km,PXZ:()=>RE,Q2q:()=>Je,Q6J:()=>Ze,QGY:()=>Mi,Qsj:()=>yw,R0b:()=>qf,RDi:()=>hi,Rgc:()=>dm,SBq:()=>lm,Sil:()=>bE,Suo:()=>By,TTD:()=>Mo,TgZ:()=>bn,Tol:()=>lv,Udp:()=>zm,VKq:()=>vy,VLi:()=>IE,W1O:()=>Gy,WFA:()=>Or,WLB:()=>yy,X6Q:()=>jE,XFs:()=>hn,Xpm:()=>Qe,Y36:()=>oe,YKP:()=>fy,YNc:()=>Vt,Yjl:()=>je,Yz7:()=>Ce,ZZ4:()=>F_,_Bn:()=>sy,_UZ:()=>An,_Vd:()=>Am,_c5:()=>iC,_uU:()=>gv,aQg:()=>L_,c2e:()=>mE,cJS:()=>Be,cg1:()=>Jm,d8E:()=>Zm,dDg:()=>fb,deG:()=>Ph,dqk:()=>Dn,eBb:()=>ma,eFA:()=>mb,ekj:()=>Wm,evT:()=>uo,f3M:()=>pa,g9A:()=>cb,gM2:()=>Iy,h0i:()=>Qg,hGG:()=>rC,hij:()=>bm,iGM:()=>Ly,ifc:()=>It,ip1:()=>ob,kEZ:()=>by,kL8:()=>Ov,kYT:()=>Ae,kcU:()=>nt,lG2:()=>Ye,lcZ:()=>My,lnq:()=>qm,mCW:()=>sl,n5z:()=>Tu,n_E:()=>Tm,oAB:()=>Ne,oJD:()=>lr,oxw:()=>Mc,pB0:()=>Kh,q3G:()=>ai,q4F:()=>uy,qLn:()=>Dl,qOj:()=>Gf,qZA:()=>Cn,qzn:()=>zo,s9C:()=>Yf,sBO:()=>HE,sIi:()=>ih,s_b:()=>Im,soG:()=>C_,tBr:()=>ga,tb:()=>ub,tp0:()=>Fa,uIk:()=>uf,uOi:()=>Gr,vHH:()=>Re,vpe:()=>Mp,wAp:()=>as,xi3:()=>Ty,xp6:()=>Eu,yhl:()=>bh,ynx:()=>oi,z2F:()=>x_,z3N:()=>bl,zSh:()=>xh,zs3:()=>za});var s=S(8929),_=S(2654),y=S(6498),j=S(6787),D=S(8117);function L(n){for(let i in n)if(n[i]===L)return i;throw Error("Could not find renamed property on target object.")}function ce(n,i){for(const a in i)i.hasOwnProperty(a)&&!n.hasOwnProperty(a)&&(n[a]=i[a])}function W(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(W).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 a=i.indexOf("\n");return-1===a?i:i.substring(0,a)}function G(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const $=L({__forward_ref__:L});function te(n){return n.__forward_ref__=te,n.toString=function(){return W(this())},n}function le(n){return J(n)?n():n}function J(n){return"function"==typeof n&&n.hasOwnProperty($)&&n.__forward_ref__===te}class Re extends Error{constructor(i,a){super(function me(n,i){return`NG0${Math.abs(n)}${i?": "+i:""}`}(i,a)),this.code=i}}function Q(n){return"string"==typeof n?n:null==n?"":String(n)}function P(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Q(n)}function re(n,i){const a=i?` in ${i}`:"";throw new Re(-201,`No provider for ${P(n)} found${a}`)}function Ie(n,i){null==n&&function Se(n,i,a,b){throw new Error(`ASSERTION ERROR: ${n}`+(null==b?"":` [Expected=> ${a} ${b} ${i} <=Actual]`))}(i,n,null,"!=")}function Ce(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Be(n){return{providers:n.providers||[],imports:n.imports||[]}}function ut(n){return Ge(n,ht)||Ge(n,jt)}function Ge(n,i){return n.hasOwnProperty(i)?n[i]:null}function Ft(n){return n&&(n.hasOwnProperty(Ht)||n.hasOwnProperty(cn))?n[Ht]:null}const ht=L({\u0275prov:L}),Ht=L({\u0275inj:L}),jt=L({ngInjectableDef:L}),cn=L({ngInjectorDef:L});var hn=(()=>((hn=hn||{})[hn.Default=0]="Default",hn[hn.Host=1]="Host",hn[hn.Self=2]="Self",hn[hn.SkipSelf=4]="SkipSelf",hn[hn.Optional=8]="Optional",hn))();let vn;function Jt(n){const i=vn;return vn=n,i}function Xe(n,i,a){const b=ut(n);return b&&"root"==b.providedIn?void 0===b.value?b.value=b.factory():b.value:a&hn.Optional?null:void 0!==i?i:void re(W(n),"Injector")}function Pe(n){return{toString:n}.toString()}var tt=(()=>((tt=tt||{})[tt.OnPush=0]="OnPush",tt[tt.Default=1]="Default",tt))(),It=(()=>{return(n=It||(It={}
vendor: 5,938 bytes, line 1
1))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",It;var n})();const Et="undefined"!=typeof globalThis&&globalThis,Rt="undefined"!=typeof window&&window,Wt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Dn=Et||"undefined"!=typeof global&&global||Rt||Wt,zn={},nn=[],Vn=L({\u0275cmp:L}),Yt=L({\u0275dir:L}),Rn=L({\u0275pipe:L}),Mt=L({\u0275mod:L}),kt=L({\u0275fac:L}),We=L({__NG_ELEMENT_ID__:L});let Ue=0;function Qe(n){return Pe(()=>{const a={},b={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:a,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===tt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||nn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||It.Emulated,id:"c",styles:n.styles||nn,_:null,setInput:null,schemas:n.schemas||null,tView:null},I=n.directives,z=n.features,Ee=n.pipes;return b.id+=Ue++,b.inputs=Oe(n.inputs,a),b.outputs=Oe(n.outputs),z&&z.forEach(ze=>ze(b)),b.directiveDefs=I?()=>("function"==typeof I?I():I).map(xt):null,b.pipeDefs=Ee?()=>("function"==typeof Ee?Ee():Ee).map(Gt):null,b})}function Lt(n,i,a){const b=n.\u0275cmp;b.directiveDefs=()=>i.map(xt),b.pipeDefs=()=>a.map(Gt)}function xt(n){return Tt(n)||function rn(n){return n[Yt]||null}(n)}function Gt(n){return function On(n){return n[Rn]||null}(n)}const Ke={};function Ne(n){return Pe(()=>{const i={type:n.type,bootstrap:n.bootstrap||nn,declarations:n.declarations||nn,imports:n.imports||nn,exports:n.exports||nn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Ke[n.id]=n.type),i})}function Ae(n,i){return Pe(()=>{const a=xn(n,!0);a.declarations=i.declarations||nn,a.imports=i.imports||nn,a.exports=i.exports||nn})}function Oe(n,i){if(null==n)return zn;const a={};for(const b in n)if(n.hasOwnProperty(b)){let I=n[b],z=I;Array.isArray(I)&&(z=I[1],I=I[0]),a[I]=b,i&&(i[I]=z)}return a}const Ye=Qe;function je(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function Tt(n){return n[Vn]||null}function xn(n,i){const a=n[Mt]||null;if(!a&&!0===i)throw new Error(`Type ${W(n)} does not have '\u0275mod' property.`);return a}function Ds(n){return Array.isArray(n)&&"object"==typeof n[1]}function dr(n){return Array.isArray(n)&&!0===n[1]}function Qs(n){return 0!=(8&n.flags)}function Os(n){return 2==(2&n.flags)}function Rs(n){return 1==(1&n.flags)}function Js(n){return null!==n.template}function qr(n){return 0!=(512&n[2])}function Nr(n,i){return n.hasOwnProperty(kt)?n[kt]:null}class Xs{constructor(i,a,b){this.previousValue=i,this.currentValue=a,this.firstChange=b}isFirstChange(){return this.firstChange}}function Mo(){return no}function no(n){return n.type.prototype.ngOnChanges&&(n.setInput=Dr),Fs}function Fs(){const n=Ws(this),i=null==n?void 0:n.current;if(i){const a=n.previous;if(a===zn)n.previous=i;else for(let b in i)a[b]=i[b];n.current=null,this.ngOnChanges(i)}}function Dr(n,i,a,b){const I=Ws(n)||function bs(n,i){return n[mo]=i}(n,{previous:zn,current:null}),z=I.current||(I.current={}),Ee=I.previous,ze=this.declaredInputs[a],dt=Ee[ze];z[ze]=new Xs(dt&&dt.currentValue,i,Ee===zn),n[b]=i}Mo.ngInherit=!0;const mo="__ngSimpleChanges__";function Ws(n){return n[mo]||null}let pi;function hi(n){pi=n}function Di(){return void 0!==pi?pi:"undefined"!=typeof document?document:void 0}function Xi(n){return!!n.listen}const tr={createRenderer:(n,i)=>Di()};function pr(n){for(;Array.isArray(n);)n=n[0];return n}function ps(n,i){return pr(i[n])}function yr(n,i){return pr(i[n.index])}function Us(n,i){return n.data[i]}function Ss(n,i){return n[i]}function gs(n,i){const a=i[n];return Ds(a)?a:a[0]}function Ms(n){return 4==(4&n[2])}function io(n){return 128==(128&n[2])}function Is(n,i){return null==i?null:n[i]}function yt(n){n[18]=0}function mt(n,i){n[5]+=i;let a=n,b=n[3];for(;null!==b&&(1===i&&1===a[5]||-1===i&&0===a[5]);)b[5]+=i,a=b,b=b[3]}const et={lFrame:Mr(null),bindingsEnabled:!0};function Ls(){return et.bindingsEnabled}function _i(){return et.lFrame.lView}function Xr(){return et.lFrame.tView}function ns(n){return et.lFrame.contextLView=n,n[8]}function cs(){let n=is();for(;null!==n&&64===n.type;)n=n.parent;return n}function is(){return et.lFrame.currentTNode}function _o(n,i){const a=et.lFrame;a.currentTNode=n,a.isParent=i}function Yo(){return et.lFrame.isParent}function oo(){et.lFrame.isParent=!1}function Ur(){const n=et.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function Ys(){return et.lFrame.bindingIndex}function ye(){return et.lFrame.bindingIndex++}function Te(n){const i=et.lFrame,a=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,a}function mn(n,i){const a=et.lFrame;a.bindingIndex=a.bindingRootIndex=n,In(i)}function In(n){et.lFrame.currentDirectiveIndex=n}function Yn(n){const i=et.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}function ci(){return et.lFrame.currentQueryIndex}function Oi(n){et.lFrame.currentQueryIndex=n}function Ji(n){const i=n[1];return 2===i.type?i.declTNode:1===i.type?n[6]:null}function _r(n,i,a){if(a&hn.SkipSelf){let I=i,z=n;for(;!(I=I.parent,null!==I||a&hn.Host||(I=Ji(z),null===I||(z=z[15],10&I.type))););if(null===I)return!1;i=I,n=z}const b=et.lFrame=Li();return b.currentTNode=i,b.lView=n,!0}function wr(n){const i=Li(),a=n[1];et.lFrame=i,i.currentTNode=a.firstChild,i.lView=n,i.tView=a,i.contextLView=n,i.bindingIndex=a.bindingStartIndex,i.inI18n=!1}function Li(){const n=et.lFrame,i=null===n?null:n.child;return null===i?Mr(n):i}function Mr(n){const i={currentTNode:null,isParent:!0,lView:null,tView:null,
vendor: 8,701 bytes, line 1
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 ui(){const n=et.lFrame;return et.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Sr=ui;function $r(){const n=ui();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 es(){return et.lFrame.selectedIndex}function As(n){et.lFrame.selectedIndex=n}function br(){const n=et.lFrame;return Us(n.tView,n.selectedIndex)}function rs(){et.lFrame.currentNamespace="svg"}function nt(){!function At(){et.lFrame.currentNamespace=null}()}function qn(n,i){for(let a=i.directiveStart,b=i.directiveEnd;a<b;a++){const z=n.data[a].type.prototype,{ngAfterContentInit:Ee,ngAfterContentChecked:ze,ngAfterViewInit:dt,ngAfterViewChecked:Nt,ngOnDestroy:en}=z;Ee&&(n.contentHooks||(n.contentHooks=[])).push(-a,Ee),ze&&((n.contentHooks||(n.contentHooks=[])).push(a,ze),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(a,ze)),dt&&(n.viewHooks||(n.viewHooks=[])).push(-a,dt),Nt&&((n.viewHooks||(n.viewHooks=[])).push(a,Nt),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(a,Nt)),null!=en&&(n.destroyHooks||(n.destroyHooks=[])).push(a,en)}}function Hi(n,i,a){nr(n,i,3,a)}function yi(n,i,a,b){(3&n[2])===a&&nr(n,i,a,b)}function xi(n,i){let a=n[2];(3&a)===i&&(a&=2047,a+=1,n[2]=a)}function nr(n,i,a,b){const z=null!=b?b:-1,Ee=i.length-1;let ze=0;for(let dt=void 0!==b?65535&n[18]:0;dt<Ee;dt++)if("number"==typeof i[dt+1]){if(ze=i[dt],null!=b&&ze>=b)break}else i[dt]<0&&(n[18]+=65536),(ze<z||-1==z)&&(Er(n,a,i,dt),n[18]=(4294901760&n[18])+dt+2),dt++}function Er(n,i,a,b){const I=a[b]<0,z=a[b+1],ze=n[I?-a[b]:a[b]];if(I){if(n[2]>>11<n[18]>>16&&(3&n[2])===i){n[2]+=2048;try{z.call(ze)}finally{}}}else try{z.call(ze)}finally{}}class Dt{constructor(i,a,b){this.factory=i,this.resolving=!1,this.canSeeViewProviders=a,this.injectImpl=b}}function Pr(n,i,a){const b=Xi(n);let I=0;for(;I<a.length;){const z=a[I];if("number"==typeof z){if(0!==z)break;I++;const Ee=a[I++],ze=a[I++],dt=a[I++];b?n.setAttribute(i,ze,dt,Ee):i.setAttributeNS(Ee,ze,dt)}else{const Ee=z,ze=a[++I];Ir(Ee)?b&&n.setProperty(i,Ee,ze):b?n.setAttribute(i,Ee,ze):i.setAttribute(Ee,ze),I++}}return I}function Fr(n){return 3===n||4===n||6===n}function Ir(n){return 64===n.charCodeAt(0)}function Cr(n,i){if(null!==i&&0!==i.length)if(null===n||0===n.length)n=i.slice();else{let a=-1;for(let b=0;b<i.length;b++){const I=i[b];"number"==typeof I?a=I:0===a||st(n,a,I,null,-1===a||2===a?i[++b]:null)}}return n}function st(n,i,a,b,I){let z=0,Ee=n.length;if(-1===i)Ee=-1;else for(;z<n.length;){const ze=n[z++];if("number"==typeof ze){if(ze===i){Ee=-1;break}if(ze>i){Ee=z-1;break}}}for(;z<n.length;){const ze=n[z];if("number"==typeof ze)break;if(ze===a){if(null===b)return void(null!==I&&(n[z+1]=I));if(b===n[z+1])return void(n[z+2]=I)}z++,null!==b&&z++,null!==I&&z++}-1!==Ee&&(n.splice(Ee,0,i),z=Ee+1),n.splice(z++,0,a),null!==b&&n.splice(z++,0,b),null!==I&&n.splice(z++,0,I)}function He(n){return-1!==n}function g(n){return 32767&n}function v(n,i){let a=function u(n){return n>>16}(n),b=i;for(;a>0;)b=b[15],a--;return b}let T=!0;function ie(n){const i=T;return T=n,i}let dn=0;function Bn(n,i){const a=ri(n,i);if(-1!==a)return a;const b=i[1];b.firstCreatePass&&(n.injectorIndex=i.length,Kn(b.data,n),Kn(i,null),Kn(b.blueprint,null));const I=wi(n,i),z=n.injectorIndex;if(He(I)){const Ee=g(I),ze=v(I,i),dt=ze[1].data;for(let Nt=0;Nt<8;Nt++)i[z+Nt]=ze[Ee+Nt]|dt[Ee+Nt]}return i[z+8]=I,z}function Kn(n,i){n.push(0,0,0,0,0,0,0,0,i)}function ri(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function wi(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let a=0,b=null,I=i;for(;null!==I;){const z=I[1],Ee=z.type;if(b=2===Ee?z.declTNode:1===Ee?I[6]:null,null===b)return-1;if(a++,I=I[15],-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1}function Gi(n,i,a){!function tn(n,i,a){let b;"string"==typeof a?b=a.charCodeAt(0)||0:a.hasOwnProperty(We)&&(b=a[We]),null==b&&(b=a[We]=dn++);const I=255&b;i.data[n+(I>>5)]|=1<<I}(n,i,a)}function Zr(n,i,a){if(a&hn.Optional)return n;re(i,"NodeInjector")}function Lr(n,i,a,b){if(a&hn.Optional&&void 0===b&&(b=null),0==(a&(hn.Self|hn.Host))){const I=n[9],z=Jt(void 0);try{return I?I.get(i,b,a&hn.Optional):Xe(i,b,a&hn.Optional)}finally{Jt(z)}}return Zr(b,i,a)}function _s(n,i,a,b=hn.Default,I){if(null!==n){const z=function Mu(n){if("string"==typeof n)return n.charCodeAt(0)||0;const i=n.hasOwnProperty(We)?n[We]:void 0;return"number"==typeof i?i>=0?255&i:sa:i}(a);if("function"==typeof z){if(!_r(i,n,b))return b&hn.Host?Zr(I,a,b):Lr(i,a,b,I);try{const Ee=z(b);if(null!=Ee||b&hn.Optional)return Ee;re(a)}finally{Sr()}}else if("number"==typeof z){let Ee=null,ze=ri(n,i),dt=-1,Nt=b&hn.Host?i[16][6]:null;for((-1===ze||b&hn.SkipSelf)&&(dt=-1===ze?wi(n,i):i[ze+8],-1!==dt&&Al(b,!1)?(Ee=i[1],ze=g(dt),i=v(dt,i)):ze=-1);-1!==ze;){const en=i[1];if(No(z,ze,en.data)){const Sn=Qi(ze,i,a,Ee,b,Nt);if(Sn!==Fo)return Sn}dt=i[ze+8],-1!==dt&&Al(b,i[1].data[ze+8]===Nt)&&No(z,ze,i)?(Ee=en,ze=g(dt),i=v(dt,i)):ze=-1}}}return Lr(i,a,b,I)}const Fo={};function sa(){return new cc(cs(),_i())}function Qi(n,i,a,b,I,z){const Ee=i[1],ze=Ee.data[n+8],en=xo(ze,Ee,a,null==b?Os(ze)&&T:b!=Ee&&0!=(3&ze.type),I&hn.Host&&z===ze);return null!==en?na(i,Ee,en,ze):Fo}function xo(n,i,a,b,I){const z=n.providerIndexes,Ee=i.data,ze=1048575&z,dt=n.directiveStart,en=z>>20,Hn=I?ze+en:n.directiveEnd;for(let Jn=b?ze:ze+en;Jn<Hn;Jn++){const Si=Ee[Jn];if(Jn<dt&&a===Si||Jn>=dt&&Si.type===a)return Jn}if(I){const Jn=Ee[dt];if(Jn&&Js(Jn)&&Jn.type===a)return dt}return null}function na(n,i,a,b){let I=n[a];const z=i.data;if(function ct(n){return n instanceof Dt}(I)){const Ee=I;Ee.resolving&&function N(n,i){const a=i?`. Dependency path: ${i.join(" > ")} > ${n}`:"";throw new Re(-200,`Circular dependency in DI detected for ${n}${a}`)}(P(z[a]));const ze=ie(Ee.canSeeViewProviders);Ee.resolving=!0;const dt=Ee.injectImpl?Jt(Ee.injectImpl):null;_r(n,b,hn.Default);try{I=n[a]=Ee.factory(void 0,z,n,b),i.firstCreatePass&&a>=b.directiveStart&&function Fn(n,i,a){const{ngOnChanges:b,ngOnInit:I,ngDoCheck:z}=i.type.prototype;if(b){const Ee=no(i);(a.preOrderHooks||(a.preOrderHooks=[])).push(n,Ee),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(n,Ee)}I&&(a.preOrderHooks||(a.preOrderHooks=[])).push(0-n,I),z&&((a.preOrderHooks||(a.preOrderHooks=[])).push(n,z),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(n,z))}(a,z[a],i)}finally{null!==dt&&Jt(dt),ie(ze),Ee.resolving=!1,Sr()}}return I}function No(n,i,a){return!!(a[i+(n>>5)]&1<<n)}function Al(n,i){return!(n&hn.Self||n&hn.Host&&i)}class cc{constructor(i,a){this._tNode=i,this._lView=a}get(i,a,b){return _s(this._tNode,this._lView,i,b,a)}}function Tu(n){return Pe(()=>{const i=n.prototype.constructor,a=i[kt]||dl(i),b=Object.prototype;let I=Object.getPrototypeOf(n.prototype).constructor;for(;I&&I!==b;){const z=I[kt]||dl(I);if(z&&z!==a)return z;I=Object.getPrototypeOf(I)}return z=>new z})}function dl(n){return J(n)?()=>{const i=dl(le(n));return i&&i()}:Nr(n)}function _a(n){return function qi(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const a=n.attrs;if(a){const b=a.length;let I=0;for(;I<b;){const z=a[I];if(Fr(z))break;if(0===z)I+=2;else if("number"==typeof z)for(I++;I<b&&"string"==typeof a[I];)I++;else{if(z===i)return a[I+1];I+=2}}}return null}(cs(),n)}const xc="__parameters__";function Ml(n,i,a){return Pe(()=>{const b=function fl(n){return function(...a){if(n){const b=n(...a);for(const I in b)this[I]=b[I]}}}(i);function I(...z){if(this instanceof I)return b.apply(this,z),this;const Ee=new I(...z);return ze.annotation=Ee,ze;function ze(dt,Nt,en){const Sn=dt.hasOwnProperty(xc)?dt[xc]:Object.defineProperty(dt,xc,{value:[]})[xc];for(;Sn.length<=en;)Sn.push(null);return(Sn[en]=Sn[en]||[]).push(Ee),dt}}return a&&(I.prototype=Object.create(a.prototype)),I.prototype.ngMetadataName=n,I.annotationCls=I,I})}class ro{constructor(i,a){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof a?this.__NG_ELEMENT_ID__=a:void 0!==a&&(this.\u0275prov=Ce({token:this,providedIn:a.providedIn||"root",factory:a.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ph=new ro("AnalyzeForEntryComponents");function oa(n,i){void 0===i&&(i=n);for(let a=0;a<n.length;a++){let b=n[a];Array.isArray(b)?(i===n&&(i=n.slice(0,a)),oa(b,i)):i!==n&&i.push(b)}return i}
vendor: 9,591 bytes, line 1
1function aa(n,i){n.forEach(a=>Array.isArray(a)?aa(a,i):i(a))}function ah(n,i,a){i>=n.length?n.push(a):n.splice(i,0,a)}function Ic(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function Zc(n,i){const a=[];for(let b=0;b<n;b++)a.push(i);return a}function fa(n,i,a){let b=pl(n,i);return b>=0?n[1|b]=a:(b=~b,function Wl(n,i,a,b){let I=n.length;if(I==i)n.push(a,b);else if(1===I)n.push(b,n[0]),n[0]=a;else{for(I--,n.push(n[I-1],n[I]);I>i;)n[I]=n[I-2],I--;n[i]=a,n[i+1]=b}}(n,b,i,a)),b}function Ra(n,i){const a=pl(n,i);if(a>=0)return n[1|a]}function pl(n,i){return function Oc(n,i,a){let b=0,I=n.length>>a;for(;I!==b;){const z=b+(I-b>>1),Ee=n[z<<a];if(i===Ee)return z<<a;Ee>i?I=z:b=z+1}return~(I<<a)}(n,i,1)}const ya={},hh="__NG_DI_FLAG__",Jc="ngTempTokenPath",Il=/\n/gm,Io="__source",Xf=L({provide:String,useValue:L});let Kl;function ff(n){const i=Kl;return Kl=n,i}function pf(n,i=hn.Default){if(void 0===Kl)throw new Re(203,"");return null===Kl?Xe(n,void 0,i):Kl.get(n,i&hn.Optional?null:void 0,i)}function Uo(n,i=hn.Default){return(function ln(){return vn}()||pf)(le(n),i)}const pa=Uo;function uc(n){const i=[];for(let a=0;a<n.length;a++){const b=le(n[a]);if(Array.isArray(b)){if(0===b.length)throw new Re(900,"");let I,z=hn.Default;for(let Ee=0;Ee<b.length;Ee++){const ze=b[Ee],dt=hc(ze);"number"==typeof dt?-1===dt?I=ze.token:z|=dt:I=ze}i.push(Uo(I,z))}else i.push(Uo(b))}return i}function kl(n,i){return n[hh]=i,n.prototype[hh]=i,n}function hc(n){return n[hh]}const ga=kl(Ml("Inject",n=>({token:n})),-1),dc=kl(Ml("Optional"),8),Fa=kl(Ml("SkipSelf"),4);var la=(()=>((la=la||{})[la.Important=1]="Important",la[la.DashCase=2]="DashCase",la))();const iu="__ngContext__";function jo(n,i){n[iu]=i}function gc(n){const i=function ru(n){return n[iu]||null}(n);return i?Array.isArray(i)?i:i.lView:null}function vc(n,i){return undefined(n,i)}function Bu(n){const i=n[3];return dr(i)?i[3]:i}function yc(n){return Nl(n[13])}function $l(n){return Nl(n[4])}function Nl(n){for(;null!==n&&!dr(n);)n=n[4];return n}function rl(n,i,a,b,I){if(null!=b){let z,Ee=!1;dr(b)?z=b:Ds(b)&&(Ee=!0,b=b[0]);const ze=pr(b);0===n&&null!==a?null==I?Nc(i,a,ze):Ba(i,a,ze,I||null,!0):1===n&&null!==a?Ba(i,a,ze,I||null,!0):2===n?function Bc(n,i,a){const b=Xl(n,i);b&&function Ql(n,i,a,b){Xi(n)?n.removeChild(i,a,b):i.removeChild(a)}(n,b,i,a)}(i,ze,Ee):3===n&&i.destroyNode(ze),null!=z&&function zh(n,i,a,b,I){const z=a[7];z!==pr(a)&&rl(i,n,b,z,I);for(let ze=10;ze<a.length;ze++){const dt=a[ze];Ca(dt[1],dt,n,i,b,z)}}(i,n,z,a,I)}}function ql(n,i,a){if(Xi(n))return n.createElement(i,a);{const b=null!==a?function ti(n){const i=n.toLowerCase();return"svg"===i?"http://www.w3.org/2000/svg":"math"===i?"http://www.w3.org/1998/MathML/":null}(a):null;return null===b?n.createElement(i):n.createElementNS(b,i)}}function Xo(n,i){const a=n[9],b=a.indexOf(i),I=i[3];1024&i[2]&&(i[2]&=-1025,mt(I,-1)),a.splice(b,1)}function Uu(n,i){if(n.length<=10)return;const a=10+i,b=n[a];if(b){const I=b[17];null!==I&&I!==n&&Xo(I,b),i>0&&(n[a-1][4]=b[4]);const z=Ic(n,10+i);!function lu(n,i){Ca(n,i,i[11],2,null,null),i[0]=null,i[6]=null}(b[1],b);const Ee=z[19];null!==Ee&&Ee.detachView(z[1]),b[3]=null,b[4]=null,b[2]&=-129}return b}function Vh(n,i){if(!(256&i[2])){const a=i[11];Xi(a)&&a.destroyNode&&Ca(n,i,a,3,null,null),function cu(n){let i=n[13];if(!i)return gh(n[1],n);for(;i;){let a=null;if(Ds(i))a=i[13];else{const b=i[10];b&&(a=b)}if(!a){for(;i&&!i[4]&&i!==n;)Ds(i)&&gh(i[1],i),i=i[3];null===i&&(i=n),Ds(i)&&gh(i[1],i),a=i&&i[4]}i=a}}(i)}}function gh(n,i){if(!(256&i[2])){i[2]&=-129,i[2]|=256,function uu(n,i){let a;if(null!=n&&null!=(a=n.destroyHooks))for(let b=0;b<a.length;b+=2){const I=i[a[b]];if(!(I instanceof Dt)){const z=a[b+1];if(Array.isArray(z))for(let Ee=0;Ee<z.length;Ee+=2){const ze=I[z[Ee]],dt=z[Ee+1];try{dt.call(ze)}finally{}}else try{z.call(I)}finally{}}}}(n,i),function mh(n,i){const a=n.cleanup,b=i[7];let I=-1;if(null!==a)for(let z=0;z<a.length-1;z+=2)if("string"==typeof a[z]){const Ee=a[z+1],ze="function"==typeof Ee?Ee(i):pr(i[Ee]),dt=b[I=a[z+2]],Nt=a[z+3];"boolean"==typeof Nt?ze.removeEventListener(a[z],dt,Nt):Nt>=0?b[I=Nt]():b[I=-Nt].unsubscribe(),z+=2}else{const Ee=b[I=a[z+1]];a[z].call(Ee)}if(null!==b){for(let z=I+1;z<b.length;z++)b[z]();i[7]=null}}(n,i),1===i[1].type&&Xi(i[11])&&i[11].destroy();const a=i[17];if(null!==a&&dr(i[3])){a!==i[3]&&Xo(a,i);const b=i[19];null!==b&&b.detachView(n)}}}function _h(n,i,a){return function hu(n,i,a){let b=i;for(;null!==b&&40&b.type;)b=(i=b).parent;if(null===b)return a[0];if(2&b.flags){const I=n.data[b.directiveStart].encapsulation;if(I===It.None||I===It.Emulated)return null}return yr(b,a)}(n,i.parent,a)}function Ba(n,i,a,b,I){Xi(n)?n.insertBefore(i,a,b,I):i.insertBefore(a,b,I)}function Nc(n,i,a){Xi(n)?n.appendChild(i,a):i.appendChild(a)}function Qa(n,i,a,b,I){null!==b?Ba(n,i,a,b,I):Nc(n,i,a)}function Xl(n,i){return Xi(n)?n.parentNode(i):i.parentNode}function du(n,i,a){return bc(n,i,a)}let Ua,ec,bc=function Zl(n,i,a){return 40&n.type?yr(n,a):null};function wc(n,i,a,b){const I=_h(n,b,i),z=i[11],ze=du(b.parent||i[6],b,i);if(null!=I)if(Array.isArray(a))for(let dt=0;dt<a.length;dt++)Qa(z,I,a[dt],ze,!1);else Qa(z,I,a,ze,!1)}function Ec(n,i){if(null!==i){const a=i.type;if(3&a)return yr(i,n);if(4&a)return Jl(-1,n[i.index]);if(8&a){const b=i.child;if(null!==b)return Ec(n,b);{const I=n[i.index];return dr(I)?Jl(-1,I):pr(I)}}if(32&a)return vc(i,n)()||pr(n[i.index]);{const b=Hh(n,i);return null!==b?Array.isArray(b)?b[0]:Ec(Bu(n[16]),b):Ec(n,i.next)}}return null}function Hh(n,i){return null!==i?n[16][6].projection[i.projection]:null}function Jl(n,i){const a=10+n+1;if(a<i.length){const b=i[a],I=b[1].firstChild;if(null!==I)return Ec(b,I)}return i[7]}function Xa(n,i,a,b,I,z,Ee){for(;null!=a;){const ze=b[a.index],dt=a.type;if(Ee&&0===i&&(ze&&jo(pr(ze),b),a.flags|=4),64!=(64&a.flags))if(8&dt)Xa(n,i,a.child,b,I,z,!1),rl(i,n,I,ze,z);else if(32&dt){const Nt=vc(a,b);let en;for(;en=Nt();)rl(i,n,I,en,z);rl(i,n,I,ze,z)}else 16&dt?Ed(n,i,b,a,I,z):rl(i,n,I,ze,z);a=Ee?a.projectionNext:a.next}}function Ca(n,i,a,b,I,z){Xa(a,b,n.firstChild,i,I,z,!1)}function Ed(n,i,a,b,I,z){const Ee=a[16],dt=Ee[6].projection[b.projection];if(Array.isArray(dt))for(let Nt=0;Nt<dt.length;Nt++)rl(i,n,I,dt[Nt],z);else Xa(n,i,dt,Ee[3],I,z,!0)}function ua(n,i,a){Xi(n)?n.setAttribute(i,"style",a):i.style.cssText=a}function Vu(n,i,a){Xi(n)?""===a?n.removeAttribute(i,"class"):n.setAttribute(i,"class",a):i.className=a}function pu(n){var i;return(null===(i=function Wh(){if(void 0===Ua&&(Ua=null,Dn.trustedTypes))try{Ua=Dn.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ua}())||void 0===i?void 0:i.createHTML(n))||n}function gu(){if(void 0===ec&&(ec=null,Dn.trustedTypes))try{ec=Dn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return ec}function Gu(n){var i;return(null===(i=gu())||void 0===i?void 0:i.createHTML(n))||n}function Go(n){var i;return(null===(i=gu())||void 0===i?void 0:i.createScriptURL(n))||n}class mu{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zu extends mu{getTypeName(){return"HTML"}}class yh extends mu{getTypeName(){return"Style"}}class _u extends mu{getTypeName(){return"Script"}}class Wu extends mu{getTypeName(){return"URL"}}class vf extends mu{getTypeName(){return"ResourceURL"}}function bl(n){return n instanceof mu?n.changingThisBreaksApplicationSecurity:n}function zo(n,i){const a=bh(n);if(null!=a&&a!==i){if("ResourceURL"===a&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${a} (see https://g.co/ng/security#xss)`)}return a===i}function bh(n){return n instanceof mu&&n.getTypeName()||null}function ja(n){return new zu(n)}function wl(n){return new yh(n)}function ma(n){return new _u(n)}function wh(n){return new Wu(n)}function Kh(n){return new vf(n)}class Eh{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const a=(new window.DOMParser).parseFromString(pu(i),"text/html").body;return null===a?this.inertDocumentHelper.getInertBodyElement(i):(a.removeChild(a.firstChild),a)}catch(a){return null}}}class Dd{constructor(i){if(this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);const b=this.inertDocument.createElement("body");a.appendChild(b)}}getInertBodyElement(i){const a=this.inertDocument.createElement("template");if("content"in a)return a.innerHTML=pu(i),a;const b=this.inertDocument.createElement("body");return b.innerHTML=pu(i),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(b),b}stripCustomNsAttrs(i){const a=i.attributes;for(let I=a.length-1;0<I;I--){const Ee=a.item(I).name;("xmlns:ns1"===Ee||0===Ee.indexOf("ns1:"))&&i.removeAttribute(Ee)}let b=i.firstChild;for(;b;)b.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(b),b=b.nextSibling}}const vu=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,yu=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function sl(n){return(n=String(n)).match(vu)||n.match(yu)?n:"unsafe:"+n}function ir(n){const i={};for(const a of n.split(","))i[a]=!0;return i}function bu(...n){const i={};for(const a of n)for(const b in a)a.hasOwnProperty(b)&&(i[b]=!0);return i}
vendor: 4,511 bytes, line 1
1const Za=ir("area,br,col,hr,img,wbr"),tc=ir("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),El=ir("rp,rt"),d=bu(Za,bu(tc,ir("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")),bu(El,ir("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")),bu(El,tc)),r=ir("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),h=ir("srcset"),X=bu(r,h,ir("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ir("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")),De=ir("script,style,template");class ot{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let a=i.firstChild,b=!0;for(;a;)if(a.nodeType===Node.ELEMENT_NODE?b=this.startElement(a):a.nodeType===Node.TEXT_NODE?this.chars(a.nodeValue):this.sanitizedSomething=!0,b&&a.firstChild)a=a.firstChild;else for(;a;){a.nodeType===Node.ELEMENT_NODE&&this.endElement(a);let I=this.checkClobberedElement(a,a.nextSibling);if(I){a=I;break}a=this.checkClobberedElement(a,a.parentNode)}return this.buf.join("")}startElement(i){const a=i.nodeName.toLowerCase();if(!d.hasOwnProperty(a))return this.sanitizedSomething=!0,!De.hasOwnProperty(a);this.buf.push("<"),this.buf.push(a);const b=i.attributes;for(let I=0;I<b.length;I++){const z=b.item(I),Ee=z.name,ze=Ee.toLowerCase();if(!X.hasOwnProperty(ze)){this.sanitizedSomething=!0;continue}let dt=z.value;r[ze]&&(dt=sl(dt)),h[ze]&&(n=dt,dt=(n=String(n)).split(",").map(i=>sl(i.trim())).join(", ")),this.buf.push(" ",Ee,'="',_n(dt),'"')}var n;return this.buf.push(">"),!0}endElement(i){const a=i.nodeName.toLowerCase();d.hasOwnProperty(a)&&!Za.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))}chars(i){this.buf.push(_n(i))}checkClobberedElement(i,a){if(a&&(i.compareDocumentPosition(a)&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 a}}const Ct=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sn=/([^\#-~ |!])/g;function _n(n){return n.replace(/&/g,"&").replace(Ct,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(sn,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Nn;function Ln(n,i){let a=null;try{Nn=Nn||function Cd(n){const i=new Dd(n);return function Sd(){try{return!!(new window.DOMParser).parseFromString(pu(""),"text/html")}catch(n){return!1}}()?new Eh(i):i}(n);let b=i?String(i):"";a=Nn.getInertBodyElement(b);let I=5,z=b;do{if(0===I)throw new Error("Failed to sanitize html because the input is unstable");I--,b=z,z=a.innerHTML,a=Nn.getInertBodyElement(b)}while(b!==z);return pu((new ot).sanitizeChildren($n(a)||a))}finally{if(a){const b=$n(a)||a;for(;b.firstChild;)b.removeChild(b.firstChild)}}}function $n(n){return"content"in n&&function si(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var ai=(()=>((ai=ai||{})[ai.NONE=0]="NONE",ai[ai.HTML=1]="HTML",ai[ai.STYLE=2]="STYLE",ai[ai.SCRIPT=3]="SCRIPT",ai[ai.URL=4]="URL",ai[ai.RESOURCE_URL=5]="RESOURCE_URL",ai))();function lr(n){const i=Bl();return i?Gu(i.sanitize(ai.HTML,n)||""):zo(n,"HTML")?Gu(bl(n)):Ln(Di(),Q(n))}function kr(n){const i=Bl();
vendor: 4,316 bytes, line 1
1return i?i.sanitize(ai.URL,n)||"":zo(n,"URL")?bl(n):sl(Q(n))}function Gr(n){const i=Bl();if(i)return Go(i.sanitize(ai.RESOURCE_URL,n)||"");if(zo(n,"ResourceURL"))return Go(bl(n));throw new Re(904,"")}function Bl(){const n=_i();return n&&n[12]}function $h(n){return n.ngOriginalError}function Cl(n,...i){n.error(...i)}class Dl{constructor(){this._console=console}handleError(i){const a=this._findOriginalError(i),b=function Va(n){return n&&n.ngErrorLogger||Cl}(i);b(this._console,"ERROR",i),a&&b(this._console,"ORIGINAL ERROR",a)}_findOriginalError(i){let a=i&&$h(i);for(;a&&$h(a);)a=$h(a);return a||null}}const bf=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Dn))();function kp(n){return n.ownerDocument.defaultView}function uo(n){return n.ownerDocument}function ol(n){return n instanceof Function?n():n}function rc(n,i,a){let b=n.length;for(;;){const I=n.indexOf(i,a);if(-1===I)return I;if(0===I||n.charCodeAt(I-1)<=32){const z=i.length;if(I+z===b||n.charCodeAt(I+z)<=32)return I}a=I+1}}const Jf="ng-template";function Yu(n,i,a){let b=0;for(;b<n.length;){let I=n[b++];if(a&&"class"===I){if(I=n[b],-1!==rc(I.toLowerCase(),i,0))return!0}else if(1===I){for(;b<n.length&&"string"==typeof(I=n[b++]);)if(I.toLowerCase()===i)return!0;return!1}}return!1}function Ha(n){return 4===n.type&&n.value!==Jf}function Sa(n,i,a){return i===(4!==n.type||a?n.value:Jf)}function kd(n,i,a){let b=4;const I=n.attrs||[],z=function Ch(n){for(let i=0;i<n.length;i++)if(Fr(n[i]))return i;return n.length}(I);let Ee=!1;for(let ze=0;ze<i.length;ze++){const dt=i[ze];if("number"!=typeof dt){if(!Ee)if(4&b){if(b=2|1&b,""!==dt&&!Sa(n,dt,a)||""===dt&&1===i.length){if(sc(b))return!1;Ee=!0}}else{const Nt=8&b?dt:i[++ze];if(8&b&&null!==n.attrs){if(!Yu(n.attrs,Nt,a)){if(sc(b))return!1;Ee=!0}continue}const Sn=wf(8&b?"class":dt,I,Ha(n),a);if(-1===Sn){if(sc(b))return!1;Ee=!0;continue}if(""!==Nt){let Hn;Hn=Sn>z?"":I[Sn+1].toLowerCase();const Jn=8&b?Hn:null;if(Jn&&-1!==rc(Jn,Nt,0)||2&b&&Nt!==Hn){if(sc(b))return!1;Ee=!0}}}}else{if(!Ee&&!sc(b)&&!sc(dt))return!1;if(Ee&&sc(dt))continue;Ee=!1,b=dt|1&b}}return sc(b)||Ee}function sc(n){return 0==(1&n)}function wf(n,i,a,b){if(null===i)return-1;let I=0;if(b||!a){let z=!1;for(;I<i.length;){const Ee=i[I];if(Ee===n)return I;if(3===Ee||6===Ee)z=!0;else{if(1===Ee||2===Ee){let ze=i[++I];for(;"string"==typeof ze;)ze=i[++I];continue}if(4===Ee)break;if(0===Ee){I+=4;continue}}I+=z?1:2}return-1}return function oc(n,i){let a=n.indexOf(4);if(a>-1)for(a++;a<n.length;){const b=n[a];if("number"==typeof b)return-1;if(b===i)return a;a++}return-1}(i,n)}function Ef(n,i,a=!1){for(let b=0;b<i.length;b++)if(kd(n,i[b],a))return!0;return!1}function ep(n,i){e:for(let a=0;a<i.length;a++){const b=i[a];if(n.length===b.length){for(let I=0;I<n.length;I++)if(n[I]!==b[I])continue e;return!0}}return!1}function Rd(n,i){return n?":not("+i.trim()+")":i}function Dg(n){let i=n[0],a=1,b=2,I="",z=!1;for(;a<n.length;){let Ee=n[a];if("string"==typeof Ee)if(2&b){const ze=n[++a];I+="["+Ee+(ze.length>0?'="'+ze+'"':"")+"]"}else 8&b?I+="."+Ee:4&b&&(I+=" "+Ee);else""!==I&&!sc(Ee)&&(i+=Rd(z,I),I=""),b=Ee,z=z||!sc(b);a++}return""!==I&&(i+=Rd(z,I)),i}const Yr={};function Eu(n){Cf(Xr(),_i(),es()+n,!1)}function Cf(n,i,a,b){if(!b)if(3==(3&i[2])){const z=n.preOrderCheckHooks;null!==z&&Hi(i,z,a)}else{const z=n.preOrderHooks;null!==z&&yi(i,z,0,a)}As(a)}function Qh(n,i){return n<<17|i<<2}function Ja(n){return n>>17&32767}function Pp(n){return 2|n}function Zs(n){return(131068&n)>>2}function Xh(n,i){return-131069&n|i<<2}function tp(n){return 1|n}function ap(n,i){const a=n.contentQueries;if(null!==a)for(let b=0;b<a.length;b+=2){const I=a[b],z=a[b+1];if(-1!==z){const Ee=n.data[z];Oi(I),Ee.contentQueries(2,i[z],z)}}}function Sl(n,i,a,b,I,z,Ee,ze,dt,Nt){const en=i.blueprint.slice();return en[0]=I,en[2]=140|b,yt(en),en[3]=en[15]=n,en[8]=a,en[10]=Ee||n&&n[10],en[11]=ze||n&&n[11],en[12]=dt||n&&n[12]||null,en[9]=Nt||n&&n[9]||null,en[6]=z,en[16]=2==i.type?n[16]:en,en}function Vl(n,i,a,b,I){let z=n.data[i];if(null===z)z=function Ah(n,i,a,b,I){const z=is(),Ee=Yo(),dt=n.data[i]=function fg(n,i,a,b,I,z){return{type:a,index:b,insertBeforeIndex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:
vendor: 2,286 bytes, line 1
1I,attrs:z,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next: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,Ee?z:z&&z.parent,a,i,b,I);return null===n.firstChild&&(n.firstChild=dt),null!==z&&(Ee?null==z.child&&null!==dt.parent&&(z.child=dt):null===z.next&&(z.next=dt)),dt}(n,i,a,b,I),function gt(){return et.lFrame.inI18n}()&&(z.flags|=64);else if(64&z.type){z.type=a,z.value=b,z.attrs=I;const Ee=function js(){const n=et.lFrame,i=n.currentTNode;return n.isParent?i:i.parent}();z.injectorIndex=null===Ee?-1:Ee.injectorIndex}return _o(z,!0),z}function Vc(n,i,a,b){if(0===a)return-1;const I=i.length;for(let z=0;z<a;z++)i.push(b),n.blueprint.push(b),n.data.push(null);return I}function Hc(n,i,a){wr(i);try{const b=n.viewQuery;null!==b&&cd(1,b,a);const I=n.template;null!==I&&Gc(n,i,I,1,a),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&ap(n,i),n.staticViewQueries&&cd(2,n.viewQuery,a);const z=n.components;null!==z&&function dg(n,i){for(let a=0;a<i.length;a++)Xd(n,i[a])}(i,z)}catch(b){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),b}finally{i[2]&=-5,$r()}}function Dc(n,i,a,b){const I=i[2];if(256!=(256&I)){wr(i);try{yt(i),function Bt(n){return et.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==a&&Gc(n,i,a,2,b);const Ee=3==(3&I);if(Ee){const Nt=n.preOrderCheckHooks;null!==Nt&&Hi(i,Nt,null)}else{const Nt=n.preOrderHooks;null!==Nt&&yi(i,Nt,0,null),xi(i,0)}if(function ac(n){for(let i=yc(n);null!==i;i=$l(i)){if(!i[2])continue;const a=i[9];for(let b=0;b<a.length;b++){const I=a[b],z=I[3];0==(1024&I[2])&&mt(z,1),I[2]|=1024}}}(i),function hp(n){for(let i=yc(n);null!==i;i=$l(i))for(let a=10;a<i.length;a++){const b=i[a],I=b[1];io(b)&&Dc(I,b,I.template,b[8])}}(i),null!==n.contentQueries&&ap(n,i),Ee){const Nt=n.contentCheckHooks;null!==Nt&&Hi(i,Nt)}else{const Nt=n.contentHooks;null!==Nt&&yi(i,Nt,1),xi(i,1)}!function Af(n,i){const a=n.hostBindingOpCodes;if(null!==a)try{for(let b=0;b<a.length;b++){const I=a[b];if(I<0)As(~I);else{const z=I,Ee=a[++b],ze=a[++b];mn(Ee,z),ze(2,i[z])}}}finally{As(-1)}}(n,i);const ze=n.components;
vendor: 9,105 bytes, line 1
1null!==ze&&function nd(n,i){for(let a=0;a<i.length;a++)qd(n,i[a])}(i,ze);const dt=n.viewQuery;if(null!==dt&&cd(2,dt,b),Ee){const Nt=n.viewCheckHooks;null!==Nt&&Hi(i,Nt)}else{const Nt=n.viewHooks;null!==Nt&&yi(i,Nt,2),xi(i,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),i[2]&=-73,1024&i[2]&&(i[2]&=-1025,mt(i[3],-1))}finally{$r()}}}function ho(n,i,a,b){const I=i[10],Ee=Ms(i);try{!Ee&&I.begin&&I.begin(),Ee&&Hc(n,i,b),Dc(n,i,a,b)}finally{!Ee&&I.end&&I.end()}}function Gc(n,i,a,b,I){const z=es(),Ee=2&b;try{As(-1),Ee&&i.length>20&&Cf(n,i,20,!1),a(b,I)}finally{As(z)}}function jd(n,i,a){if(Qs(i)){const I=i.directiveEnd;for(let z=i.directiveStart;z<I;z++){const Ee=n.data[z];Ee.contentQueries&&Ee.contentQueries(1,a[z],z)}}}function Mf(n,i,a){!Ls()||(function Wd(n,i,a,b){const I=a.directiveStart,z=a.directiveEnd;n.firstCreatePass||Bn(a,i),jo(b,i);const Ee=a.initialInputs;for(let ze=I;ze<z;ze++){const dt=n.data[ze],Nt=Js(dt);Nt&&$d(i,a,dt);const en=na(i,n,ze,a);jo(en,i),null!==Ee&&Rg(0,ze-I,en,dt,0,Ee),Nt&&(gs(a.index,i)[8]=en)}}(n,i,a,yr(a,i)),128==(128&a.flags)&&function cp(n,i,a){const b=a.directiveStart,I=a.directiveEnd,Ee=a.index,ze=function kn(){return et.lFrame.currentDirectiveIndex}();try{As(Ee);for(let dt=b;dt<I;dt++){const Nt=n.data[dt],en=i[dt];In(dt),(null!==Nt.hostBindings||0!==Nt.hostVars||null!==Nt.hostAttrs)&&zc(Nt,en)}}finally{As(-1),In(ze)}}(n,i,a))}function Tf(n,i,a=yr){const b=i.localNames;if(null!==b){let I=i.index+1;for(let z=0;z<b.length;z+=2){const Ee=b[z+1],ze=-1===Ee?a(i,n):n[Ee];n[I++]=ze}}}function Vd(n){const i=n.tView;return null===i||i.incompleteFirstPass?n.tView=Hd(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):i}function Hd(n,i,a,b,I,z,Ee,ze,dt,Nt){const en=20+b,Sn=en+I,Hn=function xf(n,i){const a=[];for(let b=0;b<i;b++)a.push(b<n?null:Yr);return a}(en,Sn),Jn="function"==typeof Nt?Nt():Nt;return Hn[1]={type:n,blueprint:Hn,template:a,queries:null,viewQuery:ze,declTNode:i,data:Hn.slice().fill(null,en),bindingStartIndex:en,expandoStartIndex:Sn,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 z?z():z,pipeRegistry:"function"==typeof Ee?Ee():Ee,firstChild:null,schemas:dt,consts:Jn,incompleteFirstPass:!1}}function Xu(n,i,a,b){const I=gp(i);null===a?I.push(b):(I.push(a),n.firstCreatePass&&mp(n).push(b,I.length-1))}function id(n,i,a){for(let b in n)if(n.hasOwnProperty(b)){const I=n[b];(a=null===a?{}:a).hasOwnProperty(b)?a[b].push(i,I):a[b]=[i,I]}return a}function Ga(n,i,a,b,I,z,Ee,ze){const dt=yr(i,a);let en,Nt=i.inputs;!ze&&null!=Nt&&(en=Nt[b])?(eh(n,a,en,b,I),Os(i)&&function Hs(n,i){const a=gs(i,n);16&a[2]||(a[2]|=64)}(a,i.index)):3&i.type&&(b=function Up(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(b),I=null!=Ee?Ee(I,i.value||"",b):I,Xi(z)?z.setProperty(dt,b,I):Ir(b)||(dt.setProperty?dt.setProperty(b,I):dt[b]=I))}function kf(n,i,a,b){let I=!1;if(Ls()){const z=function sd(n,i,a){const b=n.directiveRegistry;let I=null;if(b)for(let z=0;z<b.length;z++){const Ee=b[z];Ef(a,Ee.selectors,!1)&&(I||(I=[]),Gi(Bn(a,i),n,Ee.type),Js(Ee)?(Vp(n,a),I.unshift(Ee)):I.push(Ee))}return I}(n,i,a),Ee=null===b?null:{"":-1};if(null!==z){I=!0,up(a,n.data.length,z.length);for(let en=0;en<z.length;en++){const Sn=z[en];Sn.providersResolver&&Sn.providersResolver(Sn)}let ze=!1,dt=!1,Nt=Vc(n,i,z.length,null);for(let en=0;en<z.length;en++){const Sn=z[en];a.mergedAttrs=Cr(a.mergedAttrs,Sn.hostAttrs),Kd(n,a,i,Nt,Sn),Yd(Nt,Sn,Ee),null!==Sn.contentQueries&&(a.flags|=8),(null!==Sn.hostBindings||null!==Sn.hostAttrs||0!==Sn.hostVars)&&(a.flags|=128);const Hn=Sn.type.prototype;!ze&&(Hn.ngOnChanges||Hn.ngOnInit||Hn.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(a.index),ze=!0),!dt&&(Hn.ngOnChanges||Hn.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(a.index),dt=!0),Nt++}!function Zu(n,i){const b=i.directiveEnd,I=n.data,z=i.attrs,Ee=[];let ze=null,dt=null;for(let Nt=i.directiveStart;Nt<b;Nt++){const en=I[Nt],Sn=en.inputs,Hn=null===z||Ha(i)?null:Rf(Sn,z);Ee.push(Hn),ze=id(Sn,Nt,ze),dt=id(en.outputs,Nt,dt)}null!==ze&&(ze.hasOwnProperty("class")&&(i.flags|=16),ze.hasOwnProperty("style")&&(i.flags|=32)),i.initialInputs=Ee,i.inputs=ze,i.outputs=dt}(n,a)}Ee&&function Mh(n,i,a){if(i){const b=n.localNames=[];for(let I=0;I<i.length;I+=2){const z=a[i[I+1]];if(null==z)throw new Re(-301,!1);b.push(i[I],z)}}}(a,b,Ee)}return a.mergedAttrs=Cr(a.mergedAttrs,a.attrs),I}function fo(n,i,a,b,I,z){const Ee=z.hostBindings;if(Ee){let ze=n.hostBindingOpCodes;null===ze&&(ze=n.hostBindingOpCodes=[]);const dt=~i.index;(function pg(n){let i=n.length;for(;i>0;){const a=n[--i];if("number"==typeof a&&a<0)return a}return 0})(ze)!=dt&&ze.push(dt),ze.push(b,I,Ee)}}function zc(n,i){null!==n.hostBindings&&n.hostBindings(1,i)}function Vp(n,i){i.flags|=2,(n.components||(n.components=[])).push(i.index)}function Yd(n,i,a){if(a){if(i.exportAs)for(let b=0;b<i.exportAs.length;b++)a[i.exportAs[b]]=n;Js(i)&&(a[""]=n)}}function up(n,i,a){n.flags|=1,n.directiveStart=i,n.directiveEnd=i+a,n.providerIndexes=i}function Kd(n,i,a,b,I){n.data[b]=I;const z=I.factory||(I.factory=Nr(I.type)),Ee=new Dt(z,Js(I),null);n.blueprint[b]=Ee,a[b]=Ee,fo(n,i,0,b,Vc(n,a,I.hostVars,Yr),I)}function $d(n,i,a){const b=yr(i,n),I=Vd(a),z=n[10],Ee=Wc(n,Sl(n,I,null,a.onPush?64:16,b,i,z,z.createRenderer(b,a),null,null));n[i.index]=Ee}function Hl(n,i,a,b,I,z){const Ee=yr(n,i);!function Of(n,i,a,b,I,z,Ee){if(null==z)Xi(n)?n.removeAttribute(i,I,a):i.removeAttribute(I);else{const ze=null==Ee?Q(z):Ee(z,b||"",I);Xi(n)?n.setAttribute(i,I,ze,a):a?i.setAttributeNS(a,I,ze):i.setAttribute(I,ze)}}(i[11],Ee,z,n.value,a,b,I)}function Rg(n,i,a,b,I,z){const Ee=z[i];if(null!==Ee){const ze=b.setInput;for(let dt=0;dt<Ee.length;){const Nt=Ee[dt++],en=Ee[dt++],Sn=Ee[dt++];null!==ze?b.setInput(a,Sn,Nt,en):a[en]=Sn}}}function Rf(n,i){let a=null,b=0;for(;b<i.length;){const I=i[b];if(0!==I)if(5!==I){if("number"==typeof I)break;n.hasOwnProperty(I)&&(null===a&&(a=[]),a.push(I,n[I],i[b+1])),b+=2}else b+=2;else b+=4}return a}function ad(n,i,a,b){return new Array(n,!0,!1,i,null,0,b,a,null,null)}function qd(n,i){const a=gs(i,n);if(io(a)){const b=a[1];80&a[2]?Dc(b,a,b.template,a[8]):a[5]>0&&Qd(a)}}function Qd(n){for(let b=yc(n);null!==b;b=$l(b))for(let I=10;I<b.length;I++){const z=b[I];if(1024&z[2]){const Ee=z[1];Dc(Ee,z,Ee.template,z[8])}else z[5]>0&&Qd(z)}const a=n[1].components;if(null!==a)for(let b=0;b<a.length;b++){const I=gs(a[b],n);io(I)&&I[5]>0&&Qd(I)}}function Xd(n,i){const a=gs(i,n),b=a[1];(function ld(n,i){for(let a=i.length;a<n.blueprint.length;a++)i.push(n.blueprint[a])})(b,a),Hc(b,a,a[8])}function Wc(n,i){return n[13]?n[14][4]=i:n[13]=i,n[14]=i,i}function Hp(n){for(;n;){n[2]|=64;const i=Bu(n);if(qr(n)&&!i)return n;n=i}return null}function Ff(n){!function Pf(n){for(let i=0;i<n.components.length;i++){const a=n.components[i],b=gc(a),I=b[1];ho(I,b,I.template,a)}}(n[8])}function cd(n,i,a){Oi(0),i(n,a)}const pp=(()=>Promise.resolve(null))();function gp(n){return n[7]||(n[7]=[])}function mp(n){return n.cleanup||(n.cleanup=[])}function Kc(n,i,a){return(null===n||Js(n))&&(a=function ts(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(a[i.index])),a[11]}function Ju(n,i){const a=n[9],b=a?a.get(Dl,null):null;b&&b.handleError(i)}function eh(n,i,a,b,I){for(let z=0;z<a.length;){const Ee=a[z++],ze=a[z++],dt=i[Ee],Nt=n.data[Ee];null!==Nt.setInput?Nt.setInput(dt,I,b,ze):dt[ze]=I}}function al(n,i,a){const b=ps(i,n);!function qa(n,i,a){Xi(n)?n.setValue(i,a):i.textContent=a}(n[11],b,a)}function Ta(n,i,a){let b=a?n.styles:null,I=a?n.classes:null,z=0;if(null!==i)for(let Ee=0;Ee<i.length;Ee++){const ze=i[Ee];"number"==typeof ze?z=ze:1==z?I=G(I,ze):2==z&&(b=G(b,ze+": "+i[++Ee]+";"))}a?n.styles=b:n.stylesWithoutHost=b,a?n.classes=I:n.classesWithoutHost=I}const th=new ro("INJECTOR",-1);class Lf{get(i,a=ya){if(a===ya){const b=new Error(`NullInjectorError: No provider for ${W(i)}!`);throw b.name="NullInjectorError",b}return a}}const xh=new ro("Set Injector scope."),Du={},gg={};let ra;function _p(){return void 0===ra&&(ra=new Lf),ra}function Jd(n,i=null,a=null,b){const I=zp(n,i,a,b);return I._resolveInjectorDefTypes(),I}function zp(n,i=null,a=null,b){return new ef(n,a,i||_p(),b)}class ef{constructor(i,a,b,I=null){this.parent=b,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const z=[];a&&aa(a,ze=>this.processProvider(ze,i,a)),aa([i],ze=>this.processInjectorType(ze,[],z)),this.records.set(th,Ih(void 0,this));const Ee=this.records.get(xh);this.scope=null!=Ee?Ee.value:null,this.source=I||("object"==typeof i?null:W(i))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(i=>
vendor: 4,785 bytes, line 1
1i.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(i,a=ya,b=hn.Default){this.assertNotDestroyed();const I=ff(this),z=Jt(void 0);try{if(!(b&hn.SkipSelf)){let ze=this.records.get(i);if(void 0===ze){const dt=function qp(n){return"function"==typeof n||"object"==typeof n&&n instanceof ro}(i)&&ut(i);ze=dt&&this.injectableDefInScope(dt)?Ih(Wp(i),Du):null,this.records.set(i,ze)}if(null!=ze)return this.hydrate(i,ze)}return(b&hn.Self?_p():this.parent).get(i,a=b&hn.Optional&&a===ya?null:a)}catch(Ee){if("NullInjectorError"===Ee.name){if((Ee[Jc]=Ee[Jc]||[]).unshift(W(i)),I)throw Ee;return function Bh(n,i,a,b){const I=n[Jc];throw i[Io]&&I.unshift(i[Io]),n.message=function Ol(n,i,a,b=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let I=W(i);if(Array.isArray(i))I=i.map(W).join(" -> ");else if("object"==typeof i){let z=[];for(let Ee in i)if(i.hasOwnProperty(Ee)){let ze=i[Ee];z.push(Ee+":"+("string"==typeof ze?JSON.stringify(ze):W(ze)))}I=`{${z.join(", ")}}`}return`${a}${b?"("+b+")":""}[${I}]: ${n.replace(Il,"\n ")}`}("\n"+n.message,I,a,b),n.ngTokenPath=I,n[Jc]=null,n}(Ee,i,"R3InjectorError",this.source)}throw Ee}finally{Jt(z),ff(I)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(i=>this.get(i))}toString(){const i=[];return this.records.forEach((b,I)=>i.push(W(I))),`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Re(205,!1)}processInjectorType(i,a,b){if(!(i=le(i)))return!1;let I=Ft(i);const z=null==I&&i.ngModule||void 0,Ee=void 0===z?i:z,ze=-1!==b.indexOf(Ee);if(void 0!==z&&(I=Ft(z)),null==I)return!1;if(null!=I.imports&&!ze){let en;b.push(Ee);try{aa(I.imports,Sn=>{this.processInjectorType(Sn,a,b)&&(void 0===en&&(en=[]),en.push(Sn))})}finally{}if(void 0!==en)for(let Sn=0;Sn<en.length;Sn++){const{ngModule:Hn,providers:Jn}=en[Sn];aa(Jn,Si=>this.processProvider(Si,Hn,Jn||nn))}}this.injectorDefTypes.add(Ee);const dt=Nr(Ee)||(()=>new Ee);this.records.set(Ee,Ih(dt,Du));const Nt=I.providers;if(null!=Nt&&!ze){const en=i;aa(Nt,Sn=>this.processProvider(Sn,en,Nt))}return void 0!==z&&void 0!==i.providers}processProvider(i,a,b){let I=ll(i=le(i))?i:le(i&&i.provide);const z=function tf(n,i,a){return $c(n)?Ih(void 0,n.useValue):Ih(Kp(n),Du)}(i);if(ll(i)||!0!==i.multi)this.records.get(I);else{let Ee=this.records.get(I);Ee||(Ee=Ih(void 0,Du,!0),Ee.factory=()=>uc(Ee.multi),this.records.set(I,Ee)),I=i,Ee.multi.push(i)}this.records.set(I,z)}hydrate(i,a){return a.value===Du&&(a.value=gg,a.value=a.factory()),"object"==typeof a.value&&a.value&&function vp(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(a.value)&&this.onDestroy.add(a.value),a.value}injectableDefInScope(i){if(!i.providedIn)return!1;const a=le(i.providedIn);return"string"==typeof a?"any"===a||a===this.scope:this.injectorDefTypes.has(a)}}function Wp(n){const i=ut(n),a=null!==i?i.factory:Nr(n);if(null!==a)return a;if(n instanceof ro)throw new Re(204,!1);if(n instanceof Function)return function Yp(n){const i=n.length;if(i>0)throw Zc(i,"?"),new Re(204,!1);const a=function wt(n){const i=n&&(n[ht]||n[jt]);if(i){const a=function Ot(n){if(n.hasOwnProperty("name"))return n.name;const i=(""+n).match(/^function\s*([^\s(]+)/);return null===i?"":i[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${a}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${a}" class.`),i}return null}(n);return null!==a?()=>a.factory(n):()=>new n}(n);throw new Re(204,!1)}function Kp(n,i,a){let b;if(ll(n)){const I=le(n);return Nr(I)||Wp(I)}if($c(n))b=()=>le(n.useValue);else if(function Nf(n){return!(!n||!n.useFactory)}(n))b=()=>n.useFactory(...uc(n.deps||[]));else if(function mg(n){return!(!n||!n.useExisting)}(n))b=()=>Uo(le(n.useExisting));else{const I=le(n&&(n.useClass||n.provide));if(!function _g(n){return!!n.deps}(n))return Nr(I)||Wp(I);b=()=>new I(...uc(n.deps))}return b}function Ih(n,i,a=!1){return{factory:n,value:i,multi:a?[]:void 0}}function $c(n){return null!==n&&"object"==typeof n&&Xf in n}function ll(n){return"function"==typeof n}let za=(()=>{class n{static create(a,b){var I;if(Array.isArray(a))return Jd({name:""},b,a,"");{const z=null!==(I=a.name)&&void 0!==I?I:"";return Jd({name:z},a.parent,a.providers,z)}}}return n.THROW_IF_NOT_FOUND=ya,n.NULL=new Lf,n.\u0275prov=Ce({token:n,providedIn:"any",factory:()=>Uo(th)}),n.__NG_ELEMENT_ID__=-1,n})();function gi(n,i){qn(gc(n)[1],cs())}function Gf(n){let i=function Ep(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),a=!0;const b=[n];for(;i;){let I;if(Js(n))I=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Re(903,"");I=i.\u0275dir}if(I){if(a){b.push(I);const Ee=n;
vendor: 7,875 bytes, line 1
1Ee.inputs=Cp(n.inputs),Ee.declaredInputs=Cp(n.declaredInputs),Ee.outputs=Cp(n.outputs);const ze=I.hostBindings;ze&&zf(n,ze);const dt=I.viewQuery,Nt=I.contentQueries;if(dt&&lf(n,dt),Nt&&Xp(n,Nt),ce(n.inputs,I.inputs),ce(n.declaredInputs,I.declaredInputs),ce(n.outputs,I.outputs),Js(I)&&I.data.animation){const en=n.data;en.animation=(en.animation||[]).concat(I.data.animation)}}const z=I.features;if(z)for(let Ee=0;Ee<z.length;Ee++){const ze=z[Ee];ze&&ze.ngInherit&&ze(n),ze===Gf&&(a=!1)}}i=Object.getPrototypeOf(i)}!function Qp(n){let i=0,a=null;for(let b=n.length-1;b>=0;b--){const I=n[b];I.hostVars=i+=I.hostVars,I.hostAttrs=Cr(I.hostAttrs,a=Cr(a,I.hostAttrs))}}(b)}function Cp(n){return n===zn?{}:n===nn?[]:n}function lf(n,i){const a=n.viewQuery;n.viewQuery=a?(b,I)=>{i(b,I),a(b,I)}:i}function Xp(n,i){const a=n.contentQueries;n.contentQueries=a?(b,I,z)=>{i(b,I,z),a(b,I,z)}:i}function zf(n,i){const a=n.hostBindings;n.hostBindings=a?(b,I)=>{i(b,I),a(b,I)}:i}let gd=null;function kh(){if(!gd){const n=Dn.Symbol;if(n&&n.iterator)gd=n.iterator;else{const i=Object.getOwnPropertyNames(Map.prototype);for(let a=0;a<i.length;++a){const b=i[a];"entries"!==b&&"size"!==b&&Map.prototype[b]===Map.prototype.entries&&(gd=b)}}}return gd}function ih(n){return!!Wf(n)&&(Array.isArray(n)||!(n instanceof Map)&&kh()in n)}function Wf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ac(n,i,a){return n[i]=a}function xa(n,i,a){return!Object.is(n[i],a)&&(n[i]=a,!0)}function $o(n,i,a,b){const I=xa(n,i,a);return xa(n,i+1,b)||I}function rh(n,i,a,b,I){const z=$o(n,i,a,b);return xa(n,i+2,I)||z}function ha(n,i,a,b,I,z){const Ee=$o(n,i,a,b);return $o(n,i+2,I,z)||Ee}function uf(n,i,a,b){const I=_i();return xa(I,ye(),i)&&(Xr(),Hl(br(),I,n,i,a,b)),uf}function Au(n,i,a,b){return xa(n,ye(),a)?i+Q(a)+b:Yr}function Je(n,i,a,b,I,z){const Ee=_i(),ze=Au(Ee,i,a,b);return ze!==Yr&&Hl(br(),Ee,n,ze,I,z),Je}function Vt(n,i,a,b,I,z,Ee,ze){const dt=_i(),Nt=Xr(),en=n+20,Sn=Nt.firstCreatePass?function lt(n,i,a,b,I,z,Ee,ze,dt){const Nt=i.consts,en=Vl(i,n,4,Ee||null,Is(Nt,ze));kf(i,a,en,Is(Nt,dt)),qn(i,en);const Sn=en.tViews=Hd(2,en,b,I,z,i.directiveRegistry,i.pipeRegistry,null,i.schemas,Nt);return null!==i.queries&&(i.queries.template(i,en),Sn.queries=i.queries.embeddedTView(en)),en}(en,Nt,dt,i,a,b,I,z,Ee):Nt.data[en];_o(Sn,!1);const Hn=dt[11].createComment("");wc(Nt,dt,Hn,Sn),jo(Hn,dt),Wc(dt,dt[en]=ad(Hn,dt,Hn,Sn)),Rs(Sn)&&Mf(Nt,dt,Sn),null!=Ee&&Tf(dt,Sn,ze)}function Pn(n){return Ss(function Co(){return et.lFrame.contextLView}(),20+n)}function oe(n,i=hn.Default){const a=_i();return null===a?Uo(n,i):_s(cs(),a,le(n),i)}function be(){throw new Error("invalid")}function Ze(n,i,a){const b=_i();return xa(b,ye(),i)&&Ga(Xr(),br(),b,n,i,b[11],a,!1),Ze}function St(n,i,a,b,I){const Ee=I?"class":"style";eh(n,a,i.inputs[Ee],Ee,b)}function bn(n,i,a,b){const I=_i(),z=Xr(),Ee=20+n,ze=I[11],dt=I[Ee]=ql(ze,i,function fn(){return et.lFrame.currentNamespace}()),Nt=z.firstCreatePass?function qt(n,i,a,b,I,z,Ee){const ze=i.consts,Nt=Vl(i,n,2,I,Is(ze,z));return kf(i,a,Nt,Is(ze,Ee)),null!==Nt.attrs&&Ta(Nt,Nt.attrs,!1),null!==Nt.mergedAttrs&&Ta(Nt,Nt.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,Nt),Nt}(Ee,z,I,0,i,a,b):z.data[Ee];_o(Nt,!0);const en=Nt.mergedAttrs;null!==en&&Pr(ze,dt,en);const Sn=Nt.classes;null!==Sn&&Vu(ze,dt,Sn);const Hn=Nt.styles;return null!==Hn&&ua(ze,dt,Hn),64!=(64&Nt.flags)&&wc(z,I,dt,Nt),0===function Fi(){return et.lFrame.elementDepthCount}()&&jo(dt,I),function Yi(){et.lFrame.elementDepthCount++}(),Rs(Nt)&&(Mf(z,I,Nt),jd(z,Nt,I)),null!==b&&Tf(I,Nt),bn}function Cn(){let n=cs();Yo()?oo():(n=n.parent,_o(n,!1));const i=n;!function Eo(){et.lFrame.elementDepthCount--}();const a=Xr();return a.firstCreatePass&&(qn(a,n),Qs(n)&&a.queries.elementEnd(n)),null!=i.classesWithoutHost&&function bi(n){return 0!=(16&n.flags)}(i)&&St(a,i,_i(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function Ni(n){return 0!=(32&n.flags)}(i)&&St(a,i,_i(),i.stylesWithoutHost,!1),Cn}function An(n,i,a,b){return bn(n,i,a,b),Cn(),An}function oi(n,i,a){const b=_i(),I=Xr(),z=n+20,Ee=I.firstCreatePass?function ei(n,i,a,b,I){const z=i.consts,Ee=Is(z,b),ze=Vl(i,n,8,"ng-container",Ee);return null!==Ee&&Ta(ze,Ee,!0),kf(i,a,ze,Is(z,I)),null!==i.queries&&i.queries.elementStart(i,ze),ze}(z,I,b,i,a):I.data[z];_o(Ee,!0);const ze=b[z]=b[11].createComment("");return wc(I,b,ze,Ee),jo(ze,b),Rs(Ee)&&(Mf(I,b,Ee),jd(I,Ee,b)),null!=a&&Tf(b,Ee),oi}function Ci(){let n=cs();const i=Xr();return Yo()?oo():(n=n.parent,_o(n,!1)),i.firstCreatePass&&(qn(i,n),Qs(n)&&i.queries.elementEnd(n)),Ci}function Vi(n,i,a){return oi(n,i,a),Ci(),Vi}function Ri(){return _i()}function Mi(n){return!!n&&"function"==typeof n.then}function er(n){return!!n&&"function"==typeof n.subscribe}const sr=er;function Tr(n,i,a,b){const I=_i(),z=Xr(),Ee=cs();return bo(z,I,I[11],Ee,n,i,!!a,b),Tr}function Or(n,i){const a=cs(),b=_i(),I=Xr();return bo(I,b,Kc(Yn(I.data),a,b),a,n,i,!1),Or}function bo(n,i,a,b,I,z,Ee,ze){const dt=Rs(b),en=n.firstCreatePass&&mp(n),Sn=i[8],Hn=gp(i);let Jn=!0;if(3&b.type||ze){const ur=yr(b,i),xr=ze?ze(ur):ur,Ii=Hn.length,Jr=ze?po=>ze(pr(po[b.index])):b.index;if(Xi(a)){let po=null;if(!ze&&dt&&(po=function yo(n,i,a,b){const I=n.cleanup;if(null!=I)for(let z=0;z<I.length-1;z+=2){const Ee=I[z];if(Ee===a&&I[z+1]===b){const ze=i[7],dt=I[z+2];return ze.length>dt?ze[dt]:null}"string"==typeof Ee&&(z+=2)}return null}(n,i,I,b.index)),null!==po)(po.__ngLastListenerFn__||po).__ngNextListenerFn__=z,po.__ngLastListenerFn__=z,Jn=!1;else{z=Wa(b,i,Sn,z,!1);const Jo=a.listen(xr,I,z);Hn.push(z,Jo),en&&en.push(I,Jr,Ii,Ii+1)}}else z=Wa(b,i,Sn,z,!0),xr.addEventListener(I,z,Ee),Hn.push(z),en&&en.push(I,Jr,Ii,Ee)}else z=Wa(b,i,Sn,z,!1);const Si=b.outputs;let $i;if(Jn&&null!==Si&&($i=Si[I])){const ur=$i.length;if(ur)for(let xr=0;xr<ur;xr+=2){const _d=i[$i[xr]][$i[xr+1]].subscribe(z),jg=Hn.length;Hn.push(z,_d),en&&en.push(I,b.index,jg,-(jg+1))}}}function ao(n,i,a,b){try{return!1!==a(b)}catch(I){return Ju(n,I),!1}}function Wa(n,i,a,b,I){return function z(Ee){if(Ee===Function)return b;const ze=2&n.flags?gs(n.index,i):i;0==(32&i[2])&&Hp(ze);let dt=ao(i,0,b,Ee),Nt=z.__ngNextListenerFn__;for(;Nt;)dt=ao(i,0,Nt,Ee)&&dt,Nt=Nt.__ngNextListenerFn__;return I&&!1===dt&&(Ee.preventDefault(),Ee.returnValue=!1),dt}}function Mc(n=1){return function Es(n){return(et.lFrame.contextLView=function Vr(n,i){for(;n>0;)i=i[15],n--;return i}(n,et.lFrame.contextLView))[8]}(n)}function ks(n,i){let a=null;const b=function Od(n){const i=n.attrs;if(null!=i){const a=i.indexOf(5);if(0==(1&a))return i[a+1]}return null}(n);for(let I=0;I<i.length;I++){const z=i[I];if("*"!==z){if(null===b?Ef(n,z,!0):ep(b,z))return I}else a=I}return a}function nl(n){const i=_i()[16][6];if(!i.projection){const b=i.projection=Zc(n?n.length:1,null),I=b.slice();let z=i.child;for(;null!==z;){const Ee=n?ks(z,n):0;null!==Ee&&(I[Ee]?I[Ee].projectionNext=z:b[Ee]=z,I[Ee]=z),z=z.next}}}function Ya(n,i=0,a){const b=_i(),I=Xr(),z=Vl(I,20+n,16,null,a||null);null===z.projection&&(z.projection=i),oo(),64!=(64&z.flags)&&function Gh(n,i,a){Ed(i[11],0,i,a,_h(n,a,i),du(a.parent||i[6],a,i))}(I,b,z)}function Yf(n,i,a){return wg(n,"",i,"",a),Yf}function wg(n,i,a,b,I){const z=_i(),Ee=Au(z,i,a,b);return Ee!==Yr&&Ga(Xr(),br(),z,n,Ee,z[11],I,!1),wg}function tv(n,i,a,b,I){const z=n[a+1],Ee=null===i;let ze=b?Ja(z):Zs(z),dt=!1;for(;0!==ze&&(!1===dt||Ee);){const en=n[ze+1];Fb(n[ze],i)&&(dt=!0,n[ze+1]=b?tp(en):Pp(en)),ze=b?Ja(en):Zs(en)}dt&&(n[a+1]=b?Pp(z):tp(z))}function Fb(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&pl(n,i)>=0}const lc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nv(n){return n.substring(lc.key,lc.keyEnd)}function Lb(n){return n.substring(lc.value,lc.valueEnd)}function iv(n,i){const a=lc.textEnd;return a===i?-1:(i=lc.keyEnd=function Ub(n,i,a){for(;
vendor: 4,196 bytes, line 1
1i<a&&n.charCodeAt(i)>32;)i++;return i}(n,lc.key=i,a),Yg(n,i,a))}function rv(n,i){const a=lc.textEnd;let b=lc.key=Yg(n,i,a);return a===b?-1:(b=lc.keyEnd=function jb(n,i,a){let b;for(;i<a&&(45===(b=n.charCodeAt(i))||95===b||(-33&b)>=65&&(-33&b)<=90||b>=48&&b<=57);)i++;return i}(n,b,a),b=ov(n,b,a),b=lc.value=Yg(n,b,a),b=lc.valueEnd=function Vb(n,i,a){let b=-1,I=-1,z=-1,Ee=i,ze=Ee;for(;Ee<a;){const dt=n.charCodeAt(Ee++);if(59===dt)return ze;34===dt||39===dt?ze=Ee=av(n,dt,Ee,a):i===Ee-4&&85===z&&82===I&&76===b&&40===dt?ze=Ee=av(n,41,Ee,a):dt>32&&(ze=Ee),z=I,I=b,b=-33&dt}return ze}(n,b,a),ov(n,b,a))}function sv(n){lc.key=0,lc.keyEnd=0,lc.value=0,lc.valueEnd=0,lc.textEnd=n.length}function Yg(n,i,a){for(;i<a&&n.charCodeAt(i)<=32;)i++;return i}function ov(n,i,a,b){return(i=Yg(n,i,a))<a&&i++,i}function av(n,i,a,b){let I=-1,z=a;for(;z<b;){const Ee=n.charCodeAt(z++);if(Ee==i&&92!==I)return z;I=92==Ee&&92===I?0:Ee}throw new Error}function zm(n,i,a){return Kf(n,i,a,!1),zm}function Wm(n,i){return Kf(n,i,null,!0),Wm}function Hb(n,i){for(let a=function Bb(n){return sv(n),rv(n,Yg(n,0,lc.textEnd))}(i);a>=0;a=rv(i,a))hv(n,nv(i),Lb(i))}function lv(n){$f(fa,Ap,n,!0)}function Ap(n,i){for(let a=function Nb(n){return sv(n),iv(n,Yg(n,0,lc.textEnd))}(i);a>=0;a=iv(i,a))fa(n,nv(i),!0)}function Kf(n,i,a,b){const I=_i(),z=Xr(),Ee=Te(2);z.firstUpdatePass&&uv(z,n,Ee,b),i!==Yr&&xa(I,Ee,i)&&dv(z,z.data[es()],I,I[11],n,I[Ee+1]=function qb(n,i){return null==n||("string"==typeof i?n+=i:"object"==typeof n&&(n=W(bl(n)))),n}(i,a),b,Ee)}function $f(n,i,a,b){const I=Xr(),z=Te(2);I.firstUpdatePass&&uv(I,null,z,b);const Ee=_i();if(a!==Yr&&xa(Ee,z,a)){const ze=I.data[es()];if(pv(ze,b)&&!cv(I,z)){let dt=b?ze.classesWithoutHost:ze.stylesWithoutHost;null!==dt&&(a=G(dt,a||"")),St(I,ze,Ee,a,b)}else!function $b(n,i,a,b,I,z,Ee,ze){I===Yr&&(I=nn);let dt=0,Nt=0,en=0<I.length?I[0]:null,Sn=0<z.length?z[0]:null;for(;null!==en||null!==Sn;){const Hn=dt<I.length?I[dt+1]:void 0,Jn=Nt<z.length?z[Nt+1]:void 0;let $i,Si=null;en===Sn?(dt+=2,Nt+=2,Hn!==Jn&&(Si=Sn,$i=Jn)):null===Sn||null!==en&&en<Sn?(dt+=2,Si=en):(Nt+=2,Si=Sn,$i=Jn),null!==Si&&dv(n,i,a,b,Si,$i,Ee,ze),en=dt<I.length?I[dt]:null,Sn=Nt<z.length?z[Nt]:null}}(I,ze,Ee,Ee[11],Ee[z+1],Ee[z+1]=function Kb(n,i,a){if(null==a||""===a)return nn;const b=[],I=bl(a);if(Array.isArray(I))for(let z=0;z<I.length;z++)n(b,I[z],!0);else if("object"==typeof I)for(const z in I)I.hasOwnProperty(z)&&n(b,z,I[z]);else"string"==typeof I&&i(b,I);return b}(n,i,a),b,z)}}function cv(n,i){return i>=n.expandoStartIndex}function uv(n,i,a,b){const I=n.data;if(null===I[a+1]){const z=I[es()],Ee=cv(n,a);pv(z,b)&&null===i&&!Ee&&(i=!1),i=function Gb(n,i,a,b){const I=Yn(n);let z=b?i.residualClasses:i.residualStyles;if(null===I)0===(b?i.classBindings:i.styleBindings)&&(a=im(a=Ym(null,n,i,a,b),i.attrs,b),z=null);else{const Ee=i.directiveStylingLast;if(-1===Ee||n[Ee]!==I)if(a=Ym(I,n,i,a,b),null===z){let dt=function zb(n,i,a){const b=a?i.classBindings:i.styleBindings;if(0!==Zs(b))return n[Ja(b)]}(n,i,b);void 0!==dt&&Array.isArray(dt)&&(dt=Ym(null,n,i,dt[1],b),dt=im(dt,i.attrs,b),function Wb(n,i,a,b){n[Ja(a?i.classBindings:i.styleBindings)]=b}(n,i,b,dt))}else z=function Yb(n,i,a){let b;const I=i.directiveEnd;for(let z=1+i.directiveStylingLast;z<I;z++)b=im(b,n[z].hostAttrs,a);return im(b,i.attrs,a)}(n,i,b)}return void 0!==z&&(b?i.residualClasses=z:i.residualStyles=z),a}(I,z,i,b),function Rb(n,i,a,b,I,z){let Ee=z?i.classBindings:i.styleBindings,ze=Ja(Ee),dt=Zs(Ee);n[b]=a;let en,Nt=!1;if(Array.isArray(a)){const Sn=a;en=Sn[1],(null===en||pl(Sn,en)>0)&&(Nt=!0)}else en=a;if(I)if(0!==dt){const Hn=Ja(n[ze+1]);n[b+1]=Qh(Hn,ze),0!==Hn&&(n[Hn+1]=Xh(n[Hn+1],b)),n[ze+1]=function Ti(n,i){return 131071&n|i<<17}(n[ze+1],b)}else n[b+1]=Qh(ze,0),0!==ze&&(n[ze+1]=Xh(n[ze+1],b)),ze=b;else n[b+1]=Qh(dt,0),0===ze?ze=b:n[dt+1]=Xh(n[dt+1],b),dt=b;Nt&&(n[b+1]=Pp(n[b+1])),tv(n,en,b,!0),tv(n,en,b,!1),function Pb(n,i,a,b,I){const z=I?n.residualClasses:n.residualStyles;null!=z&&"string"==typeof i&&pl(z,i)>=0&&(a[b+1]=tp(a[b+1]))}(i,en,n,b,z),Ee=Qh(ze,dt),z?i.classBindings=Ee:i.styleBindings=Ee}(I,z,i,a,Ee,b)}}function Ym(n,i,a,b,I){let z=null;const Ee=a.directiveEnd;let ze=a.directiveStylingLast;
vendor: 5,916 bytes, line 1
1for(-1===ze?ze=a.directiveStart:ze++;ze<Ee&&(z=i[ze],b=im(b,z.hostAttrs,I),z!==n);)ze++;return null!==n&&(a.directiveStylingLast=ze),b}function im(n,i,a){const b=a?1:2;let I=-1;if(null!==i)for(let z=0;z<i.length;z++){const Ee=i[z];"number"==typeof Ee?I=Ee:I===b&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),fa(n,Ee,!!a||i[++z]))}return void 0===n?null:n}function hv(n,i,a){fa(n,i,bl(a))}function dv(n,i,a,b,I,z,Ee,ze){if(!(3&i.type))return;const dt=n.data,Nt=dt[ze+1];ym(function Zh(n){return 1==(1&n)}(Nt)?fv(dt,i,a,I,Zs(Nt),Ee):void 0)||(ym(z)||function Df(n){return 2==(2&n)}(Nt)&&(z=fv(dt,null,a,I,ze,Ee)),function vh(n,i,a,b,I){const z=Xi(n);if(i)I?z?n.addClass(a,b):a.classList.add(b):z?n.removeClass(a,b):a.classList.remove(b);else{let Ee=-1===b.indexOf("-")?void 0:la.DashCase;if(null==I)z?n.removeStyle(a,b,Ee):a.style.removeProperty(b);else{const ze="string"==typeof I&&I.endsWith("!important");ze&&(I=I.slice(0,-10),Ee|=la.Important),z?n.setStyle(a,b,I,Ee):a.style.setProperty(b,I,ze?"important":"")}}}(b,Ee,ps(es(),a),I,z))}function fv(n,i,a,b,I,z){const Ee=null===i;let ze;for(;I>0;){const dt=n[I],Nt=Array.isArray(dt),en=Nt?dt[1]:dt,Sn=null===en;let Hn=a[I+1];Hn===Yr&&(Hn=Sn?nn:void 0);let Jn=Sn?Ra(Hn,b):en===b?Hn:void 0;if(Nt&&!ym(Jn)&&(Jn=Ra(dt,b)),ym(Jn)&&(ze=Jn,Ee))return ze;const Si=n[I+1];I=Ee?Ja(Si):Zs(Si)}if(null!==i){let dt=z?i.residualClasses:i.residualStyles;null!=dt&&(ze=Ra(dt,b))}return ze}function ym(n){return void 0!==n}function pv(n,i){return 0!=(n.flags&(i?16:32))}function gv(n,i=""){const a=_i(),b=Xr(),I=n+20,z=b.firstCreatePass?Vl(b,I,1,i,null):b.data[I],Ee=a[I]=function ph(n,i){return Xi(n)?n.createText(i):n.createTextNode(i)}(a[11],i);wc(b,a,Ee,z),_o(z,!1)}function Km(n){return bm("",n,""),Km}function bm(n,i,a){const b=_i(),I=Au(b,n,i,a);return I!==Yr&&al(b,es(),I),bm}function $m(n,i,a,b,I){const z=_i(),Ee=function ta(n,i,a,b,I,z){const ze=$o(n,Ys(),a,I);return Te(2),ze?i+Q(a)+b+Q(I)+z:Yr}(z,n,i,a,b,I);return Ee!==Yr&&al(z,es(),Ee),$m}function qm(n,i,a,b,I,z,Ee){const ze=_i(),dt=function Gl(n,i,a,b,I,z,Ee,ze){const Nt=rh(n,Ys(),a,I,Ee);return Te(3),Nt?i+Q(a)+b+Q(I)+z+Q(Ee)+ze:Yr}(ze,n,i,a,b,I,z,Ee);return dt!==Yr&&al(ze,es(),dt),qm}function Qm(n,i,a,b,I,z,Ee,ze,dt){const Nt=_i(),en=function t(n,i,a,b,I,z,Ee,ze,dt,Nt){const Sn=ha(n,Ys(),a,I,Ee,dt);return Te(4),Sn?i+Q(a)+b+Q(I)+z+Q(Ee)+ze+Q(dt)+Nt:Yr}(Nt,n,i,a,b,I,z,Ee,ze,dt);return en!==Yr&&al(Nt,es(),en),Qm}function wv(n,i,a){$f(fa,Ap,Au(_i(),n,i,a),!0)}function Ev(n,i,a){!function Sp(n){$f(hv,Hb,n,!1)}(Au(_i(),n,i,a))}function Xm(n,i,a){const b=_i();return xa(b,ye(),i)&&Ga(Xr(),br(),b,n,i,b[11],a,!0),Xm}function Zm(n,i,a){const b=_i();if(xa(b,ye(),i)){const z=Xr(),Ee=br();Ga(z,Ee,b,n,i,Kc(Yn(z.data),Ee,b),a,!0)}return Zm}const Ng=void 0;var p0=["en",[["a","p"],["AM","PM"],Ng],[["AM","PM"],Ng,Ng],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ng,[["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"]],Ng,[["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}",Ng,"{1} 'at' {0}",Ng],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function f0(n){const a=Math.floor(Math.abs(n)),b=n.toString().replace(/^[^.]*\.?/,"").length;return 1===a&&0===b?1:5}];let Kg={};function Jm(n){const i=function g0(n){return n.toLowerCase().replace(/_/g,"-")}(n);let a=Rv(i);if(a)return a;const b=i.split("-")[0];if(a=Rv(b),a)return a;if("en"===b)return p0;throw new Error(`Missing locale data for the locale "${n}".`)}function Ov(n){return Jm(n)[as.PluralCase]}function Rv(n){return n in Kg||(Kg[n]=Dn.ng&&Dn.ng.common&&Dn.ng.common.locales&&Dn.ng.common.locales[n]),Kg[n]}var as=(()=>((as=as||{})[as.LocaleId=0]="LocaleId",as[as.DayPeriodsFormat=1]="DayPeriodsFormat",as[as.DayPeriodsStandalone=2]="DayPeriodsStandalone",as[as.DaysFormat=3]="DaysFormat",as[as.DaysStandalone=4]="DaysStandalone",as[as.MonthsFormat=5]="MonthsFormat",as[as.MonthsStandalone=6]="MonthsStandalone",as[as.Eras=7]="Eras",as[as.FirstDayOfWeek=8]="FirstDayOfWeek",as[as.WeekendRange=9]="WeekendRange",as[as.DateFormat=10]="DateFormat",as[as.TimeFormat=11]="TimeFormat",as[as.DateTimeFormat=12]="DateTimeFormat",as[as.NumberSymbols=13]="NumberSymbols",as[as.NumberFormats=14]="NumberFormats",as[as.CurrencyCode=15]="CurrencyCode",as[as.CurrencySymbol=16]="CurrencySymbol",as[as.CurrencyName=17]="CurrencyName",as[as.Currencies=18]="Currencies",as[as.Directionality=19]="Directionality",as[as.PluralCase=20]="PluralCase",as[as.ExtraData=21]="ExtraData",as))();const wm="en-US";let Pv=wm;function n_(n,i,a,b,I){if(n=le(n),Array.isArray(n))for(let z=0;z<n.length;z++)n_(n[z],i,a,b,I);else{const z=Xr(),Ee=_i();let ze=ll(n)?n:le(n.provide),dt=Kp(n);const Nt=cs(),en=1048575&Nt.providerIndexes,Sn=Nt.directiveStart,Hn=Nt.providerIndexes>>20;if(ll(n)||!n.multi){const Jn=new Dt(dt,I,oe),Si=r_(ze,i,I?en:en+Hn,Sn);-1===Si?(Gi(Bn(Nt,Ee),z,ze),i_(z,n,i.length),i.push(ze),Nt.directiveStart++,Nt.directiveEnd++,I&&(Nt.providerIndexes+=1048576),a.push(Jn),Ee.push(Jn)):(a[Si]=Jn,Ee[Si]=Jn)}else{const Jn=r_(ze,i,en+Hn,Sn),Si=r_(ze,i,en,en+Hn),$i=Jn>=0&&a[Jn],ur=Si>=0&&a[Si];if(I&&!ur||!I&&!$i){Gi(Bn(Nt,Ee),z,ze);const xr=function fw(n,i,a,b,I){const z=new Dt(n,a,oe);return z.multi=[],z.index=i,z.componentProviders=0,ry(z,I,b&&!a),z}(I?dw:hw,a.length,I,b,dt);!I&&ur&&(a[Si].providerFactory=xr),i_(z,n,i.length,0),i.push(ze),Nt.directiveStart++,Nt.directiveEnd++,I&&(Nt.providerIndexes+=1048576),a.push(xr),Ee.pu
vendor: 2,072 bytes, line 1
1sh(xr)}else i_(z,n,Jn>-1?Jn:Si,ry(a[I?Si:Jn],dt,!I&&b));!I&&b&&ur&&a[Si].componentProviders++}}}function i_(n,i,a,b){const I=ll(i),z=function $p(n){return!!n.useClass}(i);if(I||z){const dt=(z?le(i.useClass):i).prototype.ngOnDestroy;if(dt){const Nt=n.destroyHooks||(n.destroyHooks=[]);if(!I&&i.multi){const en=Nt.indexOf(a);-1===en?Nt.push(a,[b,dt]):Nt[en+1].push(b,dt)}else Nt.push(a,dt)}}}function ry(n,i,a){return a&&n.componentProviders++,n.multi.push(i)-1}function r_(n,i,a,b){for(let I=a;I<b;I++)if(i[I]===n)return I;return-1}function hw(n,i,a,b){return s_(this.multi,[])}function dw(n,i,a,b){const I=this.multi;let z;if(this.providerFactory){const Ee=this.providerFactory.componentProviders,ze=na(a,a[1],this.providerFactory.index,b);z=ze.slice(0,Ee),s_(I,z);for(let dt=Ee;dt<ze.length;dt++)z.push(ze[dt])}else z=[],s_(I,z);return z}function s_(n,i){for(let a=0;a<n.length;a++)i.push((0,n[a])());return i}function sy(n,i=[]){return a=>{a.providersResolver=(b,I)=>function uw(n,i,a){const b=Xr();if(b.firstCreatePass){const I=Js(n);n_(a,b.data,b.blueprint,I,!0),n_(i,b.data,b.blueprint,I,!1)}}(b,I?I(n):n,i)}}class oy{}class mw{resolveComponentFactory(i){throw function gw(n){const i=Error(`No component factory found for ${W(n)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=n,i}(i)}}let Am=(()=>{class n{}return n.NULL=new mw,n})();function _w(){return qg(cs(),_i())}function qg(n,i){return new lm(yr(n,i))}let lm=(()=>{class n{constructor(a){this.nativeElement=a}}return n.__NG_ELEMENT_ID__=_w,n})();function vw(n){return n instanceof lm?n.nativeElement:n}class ly{}let yw=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function ww(){const n=_i(),a=gs(cs().index,n);return function bw(n){return n[11]}(Ds(a)?a:n)}(),n})(),Ew=(()=>{class n{}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:()=>null}),n})();class cy{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const uy=new cy("13.4.0"),o_={};function Mm(n,i,a,b,I=!1){for(;null!==a;){const z=i[a.index];
vendor: 9,872 bytes, line 1
1if(null!==z&&b.push(pr(z)),dr(z))for(let ze=10;ze<z.length;ze++){const dt=z[ze],Nt=dt[1].firstChild;null!==Nt&&Mm(dt[1],dt,Nt,b)}const Ee=a.type;if(8&Ee)Mm(n,i,a.child,b);else if(32&Ee){const ze=vc(a,i);let dt;for(;dt=ze();)b.push(dt)}else if(16&Ee){const ze=Hh(i,a);if(Array.isArray(ze))b.push(...ze);else{const dt=Bu(i[16]);Mm(dt[1],dt,ze,b,!0)}}a=I?a.projectionNext:a.next}return b}class cm{constructor(i,a){this._lView=i,this._cdRefInjectingView=a,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const i=this._lView,a=i[1];return Mm(a,i,a.firstChild,[])}get context(){return this._lView[8]}set context(i){this._lView[8]=i}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[3];if(dr(i)){const a=i[8],b=a?a.indexOf(this):-1;b>-1&&(Uu(i,b),Ic(a,b))}this._attachedToViewContainer=!1}Vh(this._lView[1],this._lView)}onDestroy(i){Xu(this._lView[1],this._lView,null,i)}markForCheck(){Hp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function dp(n,i,a){const b=i[10];b.begin&&b.begin();try{Dc(n,i,n.template,a)}catch(I){throw Ju(i,I),I}finally{b.end&&b.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gf(n,i){Ca(n,i,i[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Re(902,"");this._appRef=i}}class Cw extends cm{constructor(i){super(i),this._view=i}detectChanges(){Ff(this._view)}checkNoChanges(){}get context(){return null}}class hy extends Am{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const a=Tt(i);return new a_(a,this.ngModule)}}function dy(n){const i=[];for(let a in n)n.hasOwnProperty(a)&&i.push({propName:n[a],templateName:a});return i}class a_ extends oy{constructor(i,a){super(),this.componentDef=i,this.ngModule=a,this.componentType=i.type,this.selector=function Op(n){return n.map(Dg).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!a}get inputs(){return dy(this.componentDef.inputs)}get outputs(){return dy(this.componentDef.outputs)}create(i,a,b,I){const z=(I=I||this.ngModule)?function Sw(n,i){return{get:(a,b,I)=>{const z=n.get(a,o_,I);return z!==o_||b===o_?z:i.get(a,b,I)}}}(i,I.injector):i,Ee=z.get(ly,tr),ze=z.get(Ew,null),dt=Ee.createRenderer(null,this.componentDef),Nt=this.componentDef.selectors[0][0]||"div",en=b?function lp(n,i,a){if(Xi(n))return n.selectRootElement(i,a===It.ShadowDom);let b="string"==typeof i?n.querySelector(i):i;return b.textContent="",b}(dt,b,this.componentDef.encapsulation):ql(Ee.createRenderer(null,this.componentDef),Nt,function Dw(n){const i=n.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(Nt)),Sn=this.componentDef.onPush?576:528,Hn=function Hf(n,i){return{components:[],scheduler:n||bf,clean:pp,playerHandler:i||null,flags:0}}(),Jn=Hd(0,null,null,1,0,null,null,null,null,null),Si=Sl(null,Jn,Hn,Sn,null,null,Ee,dt,ze,z);let $i,ur;wr(Si);try{const xr=function Vf(n,i,a,b,I,z){const Ee=a[1];a[20]=n;const dt=Vl(Ee,20,2,"#host",null),Nt=dt.mergedAttrs=i.hostAttrs;null!==Nt&&(Ta(dt,Nt,!0),null!==n&&(Pr(I,n,Nt),null!==dt.classes&&Vu(I,n,dt.classes),null!==dt.styles&&ua(I,n,dt.styles)));const en=b.createRenderer(n,i),Sn=Sl(a,Vd(i),null,i.onPush?64:16,a[20],dt,b,en,z||null,null);return Ee.firstCreatePass&&(Gi(Bn(dt,a),Ee,i.type),Vp(Ee,dt),up(dt,a.length,1)),Wc(a,Sn),a[20]=Sn}(en,this.componentDef,Si,Ee,dt);if(en)if(b)Pr(dt,en,["ng-version",uy.full]);else{const{attrs:Ii,classes:Jr}=function Dh(n){const i=[],a=[];let b=1,I=2;for(;b<n.length;){let z=n[b];if("string"==typeof z)2===I?""!==z&&i.push(z,n[++b]):8===I&&a.push(z);else{if(!sc(I))break;I=z}b++}return{attrs:i,classes:a}}(this.componentDef.selectors[0]);Ii&&Pr(dt,en,Ii),Jr&&Jr.length>0&&Vu(dt,en,Jr.join(" "))}if(ur=Us(Jn,20),void 0!==a){const Ii=ur.projection=[];for(let Jr=0;Jr<this.ngContentSelectors.length;Jr++){const po=a[Jr];Ii.push(null!=po?Array.from(po):null)}}$i=function wp(n,i,a,b,I){const z=a[1],Ee=function If(n,i,a){const b=cs();n.firstCreatePass&&(a.providersResolver&&a.providersResolver(a),Kd(n,b,i,Vc(n,i,1,null),a));const I=na(i,n,b.directiveStart,b);jo(I,i);const z=yr(b,i);return z&&jo(z,i),I}(z,a,i);if(b.components.push(Ee),n[8]=Ee,I&&I.forEach(dt=>dt(Ee,i)),i.contentQueries){const dt=cs();i.contentQueries(1,Ee,dt.directiveStart)}const ze=cs();return!z.firstCreatePass||null===i.hostBindings&&null===i.hostAttrs||(As(ze.index),fo(a[1],ze,0,ze.directiveStart,ze.directiveEnd,i),zc(i,Ee)),Ee}(xr,this.componentDef,Si,Hn,[gi]),Hc(Jn,Si,null)}finally{$r()}return new Mw(this.componentType,$i,qg(ur,Si),Si,ur)}}class Mw extends class pw{}{constructor(i,a,b,I,z){super(),this.location=b,this._rootLView=I,this._tNode=z,this.instance=a,this.hostView=this.changeDetectorRef=new Cw(I),this.componentType=i}get injector(){return new cc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}class Qg{}class fy{}const Xg=new Map;class my extends Qg{constructor(i,a){super(),this._parent=a,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hy(this);const b=xn(i);this._bootstrapComponents=ol(b.bootstrap),this._r3Injector=zp(i,a,[{provide:Qg,useValue:this},{provide:Am,useValue:this.componentFactoryResolver}],W(i)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(i)}get(i,a=za.THROW_IF_NOT_FOUND,b=hn.Default){return i===za||i===Qg||i===th?this:this._r3Injector.get(i,a,b)}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(a=>a()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class l_ extends fy{constructor(i){super(),this.moduleType=i,null!==xn(i)&&function xw(n){const i=new Set;!function a(b){const I=xn(b,!0),z=I.id;null!==z&&(function py(n,i,a){if(i&&i!==a)throw new Error(`Duplicate module registered for ${n} - ${W(i)} vs ${W(i.name)}`)}(z,Xg.get(z),b),Xg.set(z,b));const Ee=ol(I.imports);for(const ze of Ee)i.has(ze)||(i.add(ze),a(ze))}(n)}(i)}create(i){return new my(this.moduleType,i)}}function _y(n,i,a){const b=Ur()+n,I=_i();return I[b]===Yr?Ac(I,b,a?i.call(a):i()):function gr(n,i){return n[i]}(I,b)}function vy(n,i,a,b){return wy(_i(),Ur(),n,i,a,b)}function yy(n,i,a,b,I){return Ey(_i(),Ur(),n,i,a,b,I)}function by(n,i,a,b,I,z){return Cy(_i(),Ur(),n,i,a,b,I,z)}function um(n,i){const a=n[i];return a===Yr?void 0:a}function wy(n,i,a,b,I,z){const Ee=i+a;return xa(n,Ee,I)?Ac(n,Ee+1,z?b.call(z,I):b(I)):um(n,Ee+1)}function Ey(n,i,a,b,I,z,Ee){const ze=i+a;return $o(n,ze,I,z)?Ac(n,ze+2,Ee?b.call(Ee,I,z):b(I,z)):um(n,ze+2)}function Cy(n,i,a,b,I,z,Ee,ze){const dt=i+a;return rh(n,dt,I,z,Ee)?Ac(n,dt+3,ze?b.call(ze,I,z,Ee):b(I,z,Ee)):um(n,dt+3)}function Ay(n,i){const a=Xr();let b;const I=n+20;a.firstCreatePass?(b=function Lw(n,i){if(i)for(let a=i.length-1;a>=0;a--){const b=i[a];if(n===b.name)return b}}(i,a.pipeRegistry),a.data[I]=b,b.onDestroy&&(a.destroyHooks||(a.destroyHooks=[])).push(I,b.onDestroy)):b=a.data[I];const z=b.factory||(b.factory=Nr(b.type)),Ee=Jt(oe);try{const ze=ie(!1),dt=z();return ie(ze),function on(n,i,a,b){a>=n.data.length&&(n.data[a]=null,n.blueprint[a]=null),i[a]=b}(a,_i(),I,dt),dt}finally{Jt(Ee)}}function My(n,i,a){const b=n+20,I=_i(),z=Ss(I,b);return hm(I,b)?wy(I,Ur(),i,z.transform,a,z):z.transform(a)}function Ty(n,i,a,b){const I=n+20,z=_i(),Ee=Ss(z,I);return hm(z,I)?Ey(z,Ur(),i,Ee.transform,a,b,Ee):Ee.transform(a,b)}function xy(n,i,a,b,I){const z=n+20,Ee=_i(),ze=Ss(Ee,z);return hm(Ee,z)?Cy(Ee,Ur(),i,ze.transform,a,b,I,ze):ze.transform(a,b,I)}function Iy(n,i,a,b,I,z){const Ee=n+20,ze=_i(),dt=Ss(ze,Ee);return hm(ze,Ee)?function Dy(n,i,a,b,I,z,Ee,ze,dt){const Nt=i+a;return ha(n,Nt,I,z,Ee,ze)?Ac(n,Nt+4,dt?b.call(dt,I,z,Ee,ze):b(I,z,Ee,ze)):um(n,Nt+4)}(ze,Ur(),i,dt.transform,a,b,I,z,dt):dt.transform(a,b,I,z)}function hm(n,i){return n[1].data[i].pure}function c_(n){return i=>{setTimeout(n,void 0,i)}}const Mp=class Bw extends s.xQ{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,a,b){var I,z,Ee;let ze=i,dt=a||(()=>null),Nt=b;if(i&&"object"==typeof i){const Sn=i;ze=null===(I=Sn.next)||void 0===I?void 0:I.bind(Sn),dt=null===(z=Sn.error)||void 0===z?void 0:z.bind(Sn),Nt=null===(Ee=Sn.complete)||void 0===Ee?void 0:Ee.bind(Sn)}this.__isAsync&&(dt=c_(dt),ze&&(ze=c_(ze)),Nt&&(Nt=c_(Nt)));const en=super.subscribe({next:ze,error:dt,complete:Nt});return i instanceof _.w&&i.add(en),en}};function Uw(){return this._results[kh()]()}class Tm{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 a=kh(),b=Tm.prototype;b[a]||(b[a]=Uw)}get changes(){return this._changes||(this._changes=new Mp)}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,a){return this._results.reduce(i,a)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,a){const b=this;b.dirty=!1;const I=oa(i);(this._changesDetected=!function zl(n,i,a){if(n.length!==i.length)return!1;for(let b=0;b<n.length;b++){let I=n[b],z=i[b];if(a&&(I=a(I),z=a(z)),z!==I)return!1}return!0}(b._results,I,a))&&(b._results=I,b.length=I.length,b.last=I[this.length-1],b.first=I[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;
vendor: 5,308 bytes, line 1
1let dm=(()=>{class n{}return n.__NG_ELEMENT_ID__=Hw,n})();const jw=dm,Vw=class extends jw{constructor(i,a,b){super(),this._declarationLView=i,this._declarationTContainer=a,this.elementRef=b}createEmbeddedView(i){const a=this._declarationTContainer.tViews,b=Sl(this._declarationLView,a,i,16,null,a.declTNode,null,null,null,null);b[17]=this._declarationLView[this._declarationTContainer.index];const z=this._declarationLView[19];return null!==z&&(b[19]=z.createEmbeddedView(a)),Hc(a,b,i),new cm(b)}};function Hw(){return xm(cs(),_i())}function xm(n,i){return 4&n.type?new Vw(i,n,qg(n,i)):null}let Im=(()=>{class n{}return n.__NG_ELEMENT_ID__=Gw,n})();function Gw(){return Ry(cs(),_i())}const zw=Im,ky=class extends zw{constructor(i,a,b){super(),this._lContainer=i,this._hostTNode=a,this._hostLView=b}get element(){return qg(this._hostTNode,this._hostLView)}get injector(){return new cc(this._hostTNode,this._hostLView)}get parentInjector(){const i=wi(this._hostTNode,this._hostLView);if(He(i)){const a=v(i,this._hostLView),b=g(i);return new cc(a[1].data[b+8],a)}return new cc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const a=Oy(this._lContainer);return null!==a&&a[i]||null}get length(){return this._lContainer.length-10}createEmbeddedView(i,a,b){const I=i.createEmbeddedView(a||{});return this.insert(I,b),I}createComponent(i,a,b,I,z){const Ee=i&&!function Qo(n){return"function"==typeof n}(i);let ze;if(Ee)ze=a;else{const Sn=a||{};ze=Sn.index,b=Sn.injector,I=Sn.projectableNodes,z=Sn.ngModuleRef}const dt=Ee?i:new a_(Tt(i)),Nt=b||this.parentInjector;if(!z&&null==dt.ngModule){const Hn=(Ee?Nt:this.parentInjector).get(Qg,null);Hn&&(z=Hn)}const en=dt.create(Nt,I,void 0,z);return this.insert(en.hostView,ze),en}insert(i,a){const b=i._lView,I=b[1];if(function To(n){return dr(n[3])}(b)){const en=this.indexOf(i);if(-1!==en)this.detach(en);else{const Sn=b[3],Hn=new ky(Sn,Sn[6],Sn[3]);Hn.detach(Hn.indexOf(i))}}const z=this._adjustIndex(a),Ee=this._lContainer;!function Tp(n,i,a,b){const I=10+b,z=a.length;b>0&&(a[I-1][4]=i),b<z-10?(i[4]=a[I],ah(a,10+b,i)):(a.push(i),i[4]=null),i[3]=a;const Ee=i[17];null!==Ee&&a!==Ee&&function mf(n,i){const a=n[9];i[16]!==i[3][3][16]&&(n[2]=!0),null===a?n[9]=[i]:a.push(i)}(Ee,i);const ze=i[19];null!==ze&&ze.insertView(n),i[2]|=128}(I,b,Ee,z);const ze=Jl(z,Ee),dt=b[11],Nt=Xl(dt,Ee[7]);return null!==Nt&&function jh(n,i,a,b,I,z){b[0]=I,b[6]=i,Ca(n,b,a,1,I,z)}(I,Ee[6],dt,b,Nt,ze),i.attachToViewContainerRef(),ah(u_(Ee),z,i),i}move(i,a){return this.insert(i,a)}indexOf(i){const a=Oy(this._lContainer);return null!==a?a.indexOf(i):-1}remove(i){const a=this._adjustIndex(i,-1),b=Uu(this._lContainer,a);b&&(Ic(u_(this._lContainer),a),Vh(b[1],b))}detach(i){const a=this._adjustIndex(i,-1),b=Uu(this._lContainer,a);return b&&null!=Ic(u_(this._lContainer),a)?new cm(b):null}_adjustIndex(i,a=0){return null==i?this.length+a:i}};function Oy(n){return n[8]}function u_(n){return n[8]||(n[8]=[])}function Ry(n,i){let a;const b=i[n.index];if(dr(b))a=b;else{let I;if(8&n.type)I=pr(b);else{const z=i[11];I=z.createComment("");const Ee=yr(n,i);Ba(z,Xl(z,Ee),I,function Ho(n,i){return Xi(n)?n.nextSibling(i):i.nextSibling}(z,Ee),!1)}i[n.index]=a=ad(b,i,I,n),Wc(i,a)}return new ky(a,n,i)}class h_{constructor(i){this.queryList=i,this.matches=null}clone(){return new h_(this.queryList)}setDirty(){this.queryList.setDirty()}}class d_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const a=i.queries;if(null!==a){const b=null!==i.contentQueries?i.contentQueries[0]:a.length,I=[];for(let z=0;z<b;z++){const Ee=a.getByIndex(z);I.push(this.queries[Ee.indexInDeclarationView].clone())}return new d_(I)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let a=0;a<this.queries.length;a++)null!==Hy(i,a).matches&&this.queries[a].setDirty()}}class Py{constructor(i,a,b=null){this.predicate=i,this.flags=a,this.read=b}}class f_{constructor(i=[]){this.queries=i}elementStart(i,a){for(let b=0;b<this.queries.length;b++)this.queries[b].elementStart(i,a)}elementEnd(i){for(let a=0;a<this.queries.length;a++)this.queries[a].elementEnd(i)}embeddedTView(i){let a=null;for(let b=0;b<this.length;b++){const I=null!==a?a.length:0,z=this.getByIndex(b).embeddedTView(i,I);z&&(z.indexInDeclarationView=b,null!==a?a.push(z):a=[z])}return null!==a?new f_(a):null}template(i,a){for(let b=0;b<this.queries.length;b++)this.queries[b].template(i,a)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class p_{constructor(i,a=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=a}elementStart(i,a){this.isApplyingToNode(a)&&this.matchTNode(i,a)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,a){this.elementStart(i,a)}embeddedTView(i,a){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,a),new p_(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const a=this._declarationNodeIndex;let b=i.parent;for(;null!==b&&8&b.type&&b.index!==a;)b=b.parent;return a===(null!==b?b.index:-1)}return this._appliesToNextNode}
vendor: 4,224 bytes, line 1
1matchTNode(i,a){const b=this.metadata.predicate;if(Array.isArray(b))for(let I=0;I<b.length;I++){const z=b[I];this.matchTNodeWithReadOption(i,a,Kw(a,z)),this.matchTNodeWithReadOption(i,a,xo(a,i,z,!1,!1))}else b===dm?4&a.type&&this.matchTNodeWithReadOption(i,a,-1):this.matchTNodeWithReadOption(i,a,xo(a,i,b,!1,!1))}matchTNodeWithReadOption(i,a,b){if(null!==b){const I=this.metadata.read;if(null!==I)if(I===lm||I===Im||I===dm&&4&a.type)this.addMatch(a.index,-2);else{const z=xo(a,i,I,!1,!1);null!==z&&this.addMatch(a.index,z)}else this.addMatch(a.index,b)}}addMatch(i,a){null===this.matches?this.matches=[i,a]:this.matches.push(i,a)}}function Kw(n,i){const a=n.localNames;if(null!==a)for(let b=0;b<a.length;b+=2)if(a[b]===i)return a[b+1];return null}function qw(n,i,a,b){return-1===a?function $w(n,i){return 11&n.type?qg(n,i):4&n.type?xm(n,i):null}(i,n):-2===a?function Qw(n,i,a){return a===lm?qg(i,n):a===dm?xm(i,n):a===Im?Ry(i,n):void 0}(n,i,b):na(n,n[1],a,i)}function Fy(n,i,a,b){const I=i[19].queries[b];if(null===I.matches){const z=n.data,Ee=a.matches,ze=[];for(let dt=0;dt<Ee.length;dt+=2){const Nt=Ee[dt];ze.push(Nt<0?null:qw(i,z[Nt],Ee[dt+1],a.metadata.read))}I.matches=ze}return I.matches}function g_(n,i,a,b){const I=n.queries.getByIndex(a),z=I.matches;if(null!==z){const Ee=Fy(n,i,I,a);for(let ze=0;ze<z.length;ze+=2){const dt=z[ze];if(dt>0)b.push(Ee[ze/2]);else{const Nt=z[ze+1],en=i[-dt];for(let Sn=10;Sn<en.length;Sn++){const Hn=en[Sn];Hn[17]===Hn[3]&&g_(Hn[1],Hn,Nt,b)}if(null!==en[9]){const Sn=en[9];for(let Hn=0;Hn<Sn.length;Hn++){const Jn=Sn[Hn];g_(Jn[1],Jn,Nt,b)}}}}}return b}function Ly(n){const i=_i(),a=Xr(),b=ci();Oi(b+1);const I=Hy(a,b);if(n.dirty&&Ms(i)===(2==(2&I.metadata.flags))){if(null===I.matches)n.reset([]);else{const z=I.crossesNgTemplate?g_(a,i,b,[]):Fy(a,i,I,b);n.reset(z,vw),n.notifyOnChanges()}return!0}return!1}function Ny(n,i,a){const b=Xr();b.firstCreatePass&&(Vy(b,new Py(n,i,a),-1),2==(2&i)&&(b.staticViewQueries=!0)),jy(b,_i(),i)}function By(n,i,a,b){const I=Xr();if(I.firstCreatePass){const z=cs();Vy(I,new Py(i,a,b),z.index),function Zw(n,i){const a=n.contentQueries||(n.contentQueries=[]);i!==(a.length?a[a.length-1]:-1)&&a.push(n.queries.length-1,i)}(I,n),2==(2&a)&&(I.staticContentQueries=!0)}jy(I,_i(),a)}function Uy(){return function Xw(n,i){return n[19].queries[i].queryList}(_i(),ci())}function jy(n,i,a){const b=new Tm(4==(4&a));Xu(n,i,b,b.destroy),null===i[19]&&(i[19]=new d_),i[19].queries.push(new h_(b))}function Vy(n,i,a){null===n.queries&&(n.queries=new f_),n.queries.track(new p_(i,a))}function Hy(n,i){return n.queries.getByIndex(i)}function Gy(n,i){return xm(n,i)}function Rm(...n){}const ob=new ro("Application Initializer");let w_=(()=>{class n{constructor(a){this.appInits=a,this.resolve=Rm,this.reject=Rm,this.initialized=!1,this.done=!1,this.donePromise=new Promise((b,I)=>{this.resolve=b,this.reject=I})}runInitializers(){if(this.initialized)return;const a=[],b=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let I=0;I<this.appInits.length;I++){const z=this.appInits[I]();if(Mi(z))a.push(z);else if(sr(z)){const Ee=new Promise((ze,dt)=>{z.subscribe({complete:ze,error:dt})});a.push(Ee)}}Promise.all(a).then(()=>{b()}).catch(I=>{this.reject(I)}),0===a.length&&b(),this.initialized=!0}}return n.\u0275fac=function(a){return new(a||n)(Uo(ob,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ab=new ro("AppId",{providedIn:"root",factory:function lb(){return`${E_()}${E_()}${E_()}`}});function E_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cb=new ro("Platform Initializer"),gE=new ro("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ub=new ro("appBootstrapListener");let mE=(()=>{class n{log(a){console.log(a)}warn(a){console.warn(a)}}return n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const C_=new ro("LocaleId",{providedIn:"root",factory:()=>pa(C_,hn.Optional|hn.SkipSelf)||function _E(){return"undefined"!=typeof $localize&&$localize.locale||wm}()}),vE=new ro("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class yE{constructor(i,a){this.ngModuleFactory=i,this.componentFactories=a}}let bE=(()=>
vendor: 19,539 bytes, line 1
1{class n{compileModuleSync(a){return new l_(a)}compileModuleAsync(a){return Promise.resolve(this.compileModuleSync(a))}compileModuleAndAllComponentsSync(a){const b=this.compileModuleSync(a),z=ol(xn(a).declarations).reduce((Ee,ze)=>{const dt=Tt(ze);return dt&&Ee.push(new a_(dt)),Ee},[]);return new yE(b,z)}compileModuleAndAllComponentsAsync(a){return Promise.resolve(this.compileModuleAndAllComponentsSync(a))}clearCache(){}clearCacheFor(a){}getModuleId(a){}}return n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const EE=(()=>Promise.resolve(0))();function D_(n){"undefined"==typeof Zone?EE.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class qf{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:a=!1,shouldCoalesceRunChangeDetection:b=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mp(!1),this.onMicrotaskEmpty=new Mp(!1),this.onStable=new Mp(!1),this.onError=new Mp(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const I=this;I._nesting=0,I._outer=I._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(I._inner=I._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(I._inner=I._inner.fork(Zone.longStackTraceZoneSpec)),I.shouldCoalesceEventChangeDetection=!b&&a,I.shouldCoalesceRunChangeDetection=b,I.lastRequestAnimationFrameId=-1,I.nativeRequestAnimationFrame=function CE(){let n=Dn.requestAnimationFrame,i=Dn.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&i){const a=n[Zone.__symbol__("OriginalDelegate")];a&&(n=a);const b=i[Zone.__symbol__("OriginalDelegate")];b&&(i=b)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function AE(n){const i=()=>{!function SE(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Dn,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,A_(n),n.isCheckStableRunning=!0,S_(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),A_(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(a,b,I,z,Ee,ze)=>{try{return hb(n),a.invokeTask(I,z,Ee,ze)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===z.type||n.shouldCoalesceRunChangeDetection)&&i(),db(n)}},onInvoke:(a,b,I,z,Ee,ze,dt)=>{try{return hb(n),a.invoke(I,z,Ee,ze,dt)}finally{n.shouldCoalesceRunChangeDetection&&i(),db(n)}},onHasTask:(a,b,I,z)=>{a.hasTask(I,z),b===I&&("microTask"==z.change?(n._hasPendingMicrotasks=z.microTask,A_(n),S_(n)):"macroTask"==z.change&&(n.hasPendingMacrotasks=z.macroTask))},onHandleError:(a,b,I,z)=>(a.handleError(I,z),n.runOutsideAngular(()=>n.onError.emit(z)),!1)})}(I)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qf.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(qf.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(i,a,b){return this._inner.run(i,a,b)}runTask(i,a,b,I){const z=this._inner,Ee=z.scheduleEventTask("NgZoneEvent: "+I,i,DE,Rm,Rm);try{return z.runTask(Ee,a,b)}finally{z.cancelTask(Ee)}}runGuarded(i,a,b){return this._inner.runGuarded(i,a,b)}runOutsideAngular(i){return this._outer.run(i)}}const DE={};function S_(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 A_(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function hb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function db(n){n._nesting--,S_(n)}class ME{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mp,this.onMicrotaskEmpty=new Mp,this.onStable=new Mp,this.onError=new Mp}run(i,a,b){return i.apply(a,b)}runGuarded(i,a,b){return i.apply(a,b)}runOutsideAngular(i){return i()}runTask(i,a,b,I){return i.apply(a,b)}}let fb=(()=>{class n{constructor(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),a.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{qf.assertNotInAngularZone(),D_(()=>{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())D_(()=>{for(;0!==this._callbacks.length;){let a=this._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb(this._didWork)}this._didWork=!1});else{let a=this.getPendingTasks();this._callbacks=this._callbacks.filter(b=>!b.updateCb||!b.updateCb(a)||(clearTimeout(b.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(a=>({source:a.source,creationLocation:a.creationLocation,data:a.data})):[]}addCallback(a,b,I){let z=-1;b&&b>0&&(z=setTimeout(()=>{this._callbacks=this._callbacks.filter(Ee=>Ee.timeoutId!==z),a(this._didWork,this.getPendingTasks())},b)),this._callbacks.push({doneCb:a,timeoutId:z,updateCb:I})}whenStable(a,b,I){if(I&&!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(a,b,I),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(a,b,I){return[]}}return n.\u0275fac=function(a){return new(a||n)(Uo(qf))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),TE=(()=>{class n{constructor(){this._applications=new Map,M_.addToWindow(this)}registerApplication(a,b){this._applications.set(a,b)}unregisterApplication(a){this._applications.delete(a)}unregisterAllApplications(){this._applications.clear()}getTestability(a){return this._applications.get(a)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(a,b=!0){return M_.findTestabilityInTree(this,a,b)}}return n.\u0275fac=function(a){return new(a||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class xE{addToWindow(i){}findTestabilityInTree(i,a,b){return null}}function IE(n){M_=n}let M_=new xE,Bg=null;const pb=new ro("AllowMultipleToken"),gb=new ro("PlatformOnDestroy");class RE{constructor(i,a){this.name=i,this.token=a}}function mb(n,i,a=[]){const b=`Platform: ${i}`,I=new ro(b);return(z=[])=>{let Ee=T_();if(!Ee||Ee.injector.get(pb,!1)){const ze=[...a,...z,{provide:I,useValue:!0}];n?n(ze):function PE(n){if(Bg&&!Bg.get(pb,!1))throw new Re(400,"");Bg=n;const i=n.get(_b),a=n.get(cb,null);a&&a.forEach(b=>b())}(function LE(n=[],i){return za.create({name:i,providers:[{provide:xh,useValue:"platform"},{provide:gb,useValue:()=>Bg=null},...n]})}(ze,b))}return function FE(n){const i=T_();if(!i)throw new Re(401,"");return i}()}}function T_(){var n;return null!==(n=null==Bg?void 0:Bg.get(_b))&&void 0!==n?n:null}let _b=(()=>{class n{constructor(a){this._injector=a,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(a,b){const ze=function NE(n,i){let a;return a="noop"===n?new ME:("zone.js"===n?void 0:n)||new qf({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)}),a}(b?b.ngZone:void 0,{ngZoneEventCoalescing:b&&b.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:b&&b.ngZoneRunCoalescing||!1}),dt=[{provide:qf,useValue:ze}];return ze.run(()=>{const Nt=za.create({providers:dt,parent:this.injector,name:a.moduleType.name}),en=a.create(Nt),Sn=en.injector.get(Dl,null);if(!Sn)throw new Re(402,"");return ze.runOutsideAngular(()=>{const Hn=ze.onError.subscribe({next:Jn=>{Sn.handleError(Jn)}});en.onDestroy(()=>{I_(this._modules,en),Hn.unsubscribe()})}),function BE(n,i,a){try{const b=a();return Mi(b)?b.catch(I=>{throw i.runOutsideAngular(()=>n.handleError(I)),I}):b}catch(b){throw i.runOutsideAngular(()=>n.handleError(b)),b}}(Sn,ze,()=>{const Hn=en.injector.get(w_);return Hn.runInitializers(),Hn.donePromise.then(()=>(function y0(n){Ie(n,"Expected localeId to be defined"),"string"==typeof n&&(Pv=n.toLowerCase().replace(/_/g,"-"))}(en.injector.get(C_,wm)||wm),this._moduleDoBootstrap(en),en))})})}bootstrapModule(a,b=[]){const I=vb({},b);return function kE(n,i,a){const b=new l_(a);return Promise.resolve(b)}(0,0,a).then(z=>this.bootstrapModuleFactory(z,I))}_moduleDoBootstrap(a){const b=a.injector.get(x_);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(I=>b.bootstrap(I));else{if(!a.instance.ngDoBootstrap)throw new Re(403,"");a.instance.ngDoBootstrap(b)}this._modules.push(a)}onDestroy(a){this._destroyListeners.push(a)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Re(404,"");this._modules.slice().forEach(b=>b.destroy()),this._destroyListeners.forEach(b=>b());const a=this._injector.get(gb,null);null==a||a(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(a){return new(a||n)(Uo(za))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function vb(n,i){return Array.isArray(i)?i.reduce(vb,n):Object.assign(Object.assign({},n),i)}let x_=(()=>{class n{constructor(a,b,I,z){this._zone=a,this._injector=b,this._exceptionHandler=I,this._initStatus=z,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Ee=new y.y(dt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{dt.next(this._stable),dt.complete()})}),ze=new y.y(dt=>{let Nt;this._zone.runOutsideAngular(()=>{Nt=this._zone.onStable.subscribe(()=>{qf.assertNotInAngularZone(),D_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,dt.next(!0))})})});const en=this._zone.onUnstable.subscribe(()=>{qf.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{dt.next(!1)}))});return()=>{Nt.unsubscribe(),en.unsubscribe()}});this.isStable=(0,j.T)(Ee,ze.pipe((0,D.B)()))}bootstrap(a,b){if(!this._initStatus.done)throw new Re(405,"");let I;I=a instanceof oy?a:this._injector.get(Am).resolveComponentFactory(a),this.componentTypes.push(I.componentType);const z=function OE(n){return n.isBoundToModule}(I)?void 0:this._injector.get(Qg),ze=I.create(za.NULL,[],b||I.selector,z),dt=ze.location.nativeElement,Nt=ze.injector.get(fb,null),en=Nt&&ze.injector.get(TE);return Nt&&en&&en.registerApplication(dt,Nt),ze.onDestroy(()=>{this.detachView(ze.hostView),I_(this.components,ze),en&&en.unregisterApplication(dt)}),this._loadComponent(ze),ze}tick(){if(this._runningTick)throw new Re(101,"");try{this._runningTick=!0;for(let a of this._views)a.detectChanges()}catch(a){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(a))}finally{this._runningTick=!1}}attachView(a){const b=a;this._views.push(b),b.attachToAppRef(this)}detachView(a){const b=a;I_(this._views,b),b.detachFromAppRef()}_loadComponent(a){this.attachView(a.hostView),this.tick(),this.components.push(a),this._injector.get(ub,[]).concat(this._bootstrapListeners).forEach(I=>I(a))}ngOnDestroy(){this._views.slice().forEach(a=>a.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(a){return new(a||n)(Uo(qf),Uo(za),Uo(Dl),Uo(w_))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function I_(n,i){const a=n.indexOf(i);a>-1&&n.splice(a,1)}let bb=!0,wb=!1;function jE(){return wb=!0,bb}function VE(){if(wb)throw new Error("Cannot enable prod mode after platform setup.");bb=!1}let HE=(()=>{class n{}return n.__NG_ELEMENT_ID__=GE,n})();function GE(n){return function zE(n,i,a){if(Os(n)&&!a){const b=gs(n.index,i);return new cm(b,b)}return 47&n.type?new cm(i[16],i):null}(cs(),_i(),16==(16&n))}class Sb{constructor(){}supports(i){return ih(i)}create(i){return new QE(i)}}const qE=(n,i)=>i;class QE{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||qE}forEachItem(i){let a;for(a=this._itHead;null!==a;a=a._next)i(a)}forEachOperation(i){let a=this._itHead,b=this._removalsHead,I=0,z=null;for(;a||b;){const Ee=!b||a&&a.currentIndex<Mb(b,I,z)?a:b,ze=Mb(Ee,I,z),dt=Ee.currentIndex;if(Ee===b)I--,b=b._nextRemoved;else if(a=a._next,null==Ee.previousIndex)I++;else{z||(z=[]);const Nt=ze-I,en=dt-I;if(Nt!=en){for(let Hn=0;Hn<Nt;Hn++){const Jn=Hn<z.length?z[Hn]:z[Hn]=0,Si=Jn+Hn;en<=Si&&Si<Nt&&(z[Hn]=Jn+1)}z[Ee.previousIndex]=en-Nt}}ze!==dt&&i(Ee,ze,dt)}}forEachPreviousItem(i){let a;for(a=this._previousItHead;null!==a;a=a._nextPrevious)i(a)}forEachAddedItem(i){let a;for(a=this._additionsHead;null!==a;a=a._nextAdded)i(a)}forEachMovedItem(i){let a;for(a=this._movesHead;null!==a;a=a._nextMoved)i(a)}forEachRemovedItem(i){let a;for(a=this._removalsHead;null!==a;a=a._nextRemoved)i(a)}forEachIdentityChange(i){let a;for(a=this._identityChangesHead;null!==a;a=a._nextIdentityChange)i(a)}diff(i){if(null==i&&(i=[]),!ih(i))throw new Re(900,"");return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let I,z,Ee,a=this._itHead,b=!1;if(Array.isArray(i)){this.length=i.length;for(let ze=0;ze<this.length;ze++)z=i[ze],Ee=this._trackByFn(ze,z),null!==a&&Object.is(a.trackById,Ee)?(b&&(a=this._verifyReinsertion(a,z,Ee,ze)),Object.is(a.item,z)||this._addIdentityChange(a,z)):(a=this._mismatch(a,z,Ee,ze),b=!0),a=a._next}else I=0,function cf(n,i){if(Array.isArray(n))for(let a=0;a<n.length;a++)i(n[a]);else{const a=n[kh()]();let b;for(;!(b=a.next()).done;)i(b.value)}}(i,ze=>{Ee=this._trackByFn(I,ze),null!==a&&Object.is(a.trackById,Ee)?(b&&(a=this._verifyReinsertion(a,ze,Ee,I)),Object.is(a.item,ze)||this._addIdentityChange(a,ze)):(a=this._mismatch(a,ze,Ee,I),b=!0),a=a._next,I++}),this.length=I;return this._truncate(a),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,a,b,I){let z;return null===i?z=this._itTail:(z=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null))?(Object.is(i.item,a)||this._addIdentityChange(i,a),this._reinsertAfter(i,z,I)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(b,I))?(Object.is(i.item,a)||this._addIdentityChange(i,a),this._moveAfter(i,z,I)):i=this._addAfter(new XE(a,b),z,I),i}_verifyReinsertion(i,a,b,I){let z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null);return null!==z?i=this._reinsertAfter(z,i._prev,I):i.currentIndex!=I&&(i.currentIndex=I,this._addToMoves(i,I)),i}_truncate(i){for(;null!==i;){const a=i._next;this._addToRemovals(this._unlink(i)),i=a}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,a,b){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const I=i._prevRemoved,z=i._nextRemoved;return null===I?this._removalsHead=z:I._nextRemoved=z,null===z?this._removalsTail=I:z._prevRemoved=I,this._insertAfter(i,a,b),this._addToMoves(i,b),i}_moveAfter(i,a,b){return this._unlink(i),this._insertAfter(i,a,b),this._addToMoves(i,b),i}_addAfter(i,a,b){return this._insertAfter(i,a,b),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,a,b){const I=null===a?this._itHead:a._next;return i._next=I,i._prev=a,null===I?this._itTail=i:I._prev=i,null===a?this._itHead=i:a._next=i,null===this._linkedRecords&&(this._linkedRecords=new Ab),this._linkedRecords.put(i),i.currentIndex=b,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const a=i._prev,b=i._next;return null===a?this._itHead=b:a._next=b,null===b?this._itTail=a:b._prev=a,i}_addToMoves(i,a){return i.previousIndex===a||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ab),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,a){return i.item=a,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class XE{constructor(i,a){this.item=i,this.trackById=a,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 ZE{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,a){let b;for(b=this._head;null!==b;b=b._nextDup)if((null===a||a<=b.currentIndex)&&Object.is(b.trackById,i))return b;return null}remove(i){const a=i._prevDup,b=i._nextDup;return null===a?this._head=b:a._nextDup=b,null===b?this._tail=a:b._prevDup=a,null===this._head}}
vendor: 3,532 bytes, line 1
1class Ab{constructor(){this.map=new Map}put(i){const a=i.trackById;let b=this.map.get(a);b||(b=new ZE,this.map.set(a,b)),b.add(i)}get(i,a){const I=this.map.get(i);return I?I.get(i,a):null}remove(i){const a=i.trackById;return this.map.get(a).remove(i)&&this.map.delete(a),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Mb(n,i,a){const b=n.previousIndex;if(null===b)return b;let I=0;return a&&b<a.length&&(I=a[b]),b+i+I}class Tb{constructor(){}supports(i){return i instanceof Map||Wf(i)}create(){return new JE}}class JE{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 a;for(a=this._mapHead;null!==a;a=a._next)i(a)}forEachPreviousItem(i){let a;for(a=this._previousMapHead;null!==a;a=a._nextPrevious)i(a)}forEachChangedItem(i){let a;for(a=this._changesHead;null!==a;a=a._nextChanged)i(a)}forEachAddedItem(i){let a;for(a=this._additionsHead;null!==a;a=a._nextAdded)i(a)}forEachRemovedItem(i){let a;for(a=this._removalsHead;null!==a;a=a._nextRemoved)i(a)}diff(i){if(i){if(!(i instanceof Map||Wf(i)))throw new Re(900,"")}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let a=this._mapHead;if(this._appendAfter=null,this._forEach(i,(b,I)=>{if(a&&a.key===I)this._maybeAddToChanges(a,b),this._appendAfter=a,a=a._next;else{const z=this._getOrCreateRecordForKey(I,b);a=this._insertBeforeOrAppend(a,z)}}),a){a._prev&&(a._prev._next=null),this._removalsHead=a;for(let b=a;null!==b;b=b._nextRemoved)b===this._mapHead&&(this._mapHead=null),this._records.delete(b.key),b._nextRemoved=b._next,b.previousValue=b.currentValue,b.currentValue=null,b._prev=null,b._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,a){if(i){const b=i._prev;return a._next=i,a._prev=b,i._prev=a,b&&(b._next=a),i===this._mapHead&&(this._mapHead=a),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=a,a._prev=this._appendAfter):this._mapHead=a,this._appendAfter=a,null}_getOrCreateRecordForKey(i,a){if(this._records.has(i)){const I=this._records.get(i);this._maybeAddToChanges(I,a);const z=I._prev,Ee=I._next;return z&&(z._next=Ee),Ee&&(Ee._prev=z),I._next=null,I._prev=null,I}const b=new eC(i);return this._records.set(i,b),b.currentValue=a,this._addToAdditions(b),b}_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,a){Object.is(a,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=a,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,a){i instanceof Map?i.forEach(a):Object.keys(i).forEac
1h(b=>a(i[b],b))}}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 xb(){return new F_([new Sb])}let F_=(()=>{class n{constructor(a){this.factories=a}static create(a,b){if(null!=b){const I=b.factories.slice();a=a.concat(I)}return new n(a)}static extend(a){return{provide:n,useFactory:b=>n.create(a,b||xb()),deps:[[n,new Fa,new dc]]}}find(a){const b=this.factories.find(I=>I.supports(a));if(null!=b)return b;throw new Re(901,"")}}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:xb}),n})();function Ib(){return new L_([new Tb])}let L_=(()=>{class n{constructor(a){this.factories=a}static create(a,b){if(b){const I=b.factories.slice();a=a.concat(I)}return new n(a)}static extend(a){return{provide:n,useFactory:b=>n.create(a,b||Ib()),deps:[[n,new Fa,new dc]]}}find(a){const b=this.factories.find(z=>z.supports(a));if(b)return b;throw new Re(901,"")}}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:Ib}),n})();const iC=mb(null,"core",[]);let rC=(()=>{class n{constructor(a){}}return n.\u0275fac=function(a){return new(a||n)(Uo(x_))},n.\u0275mod=Ne({type:n}),n.\u0275inj=Be({}),n})()},3075:(Qt,Z,S)=>{"use strict";S.d(Z,{CE:()=>Ps,Cf:()=>Q,EJ:()=>Nr,F:()=>hr,Fd:()=>yn,Fj:()=>Me,JJ:()=>hn,JL:()=>vn,JU:()=>W,K7:()=>mo,Kr:()=>Ws,NI:()=>Qn,On:()=>Os,Q7:()=>hi,UX:()=>Ms,Wl:()=>$,YN:()=>Xs,Zs:()=>Di,_:()=>ys,_Y:()=>Rs,a5:()=>Ft,c5:()=>ps,cw:()=>vi,eT:()=>ls,gN:()=>ht,kI:()=>Y,nD:()=>ts,oH:()=>zs,on:()=>Xi,qQ:()=>jn,qu:()=>To,sg:()=>xs,u:()=>ms,u5:()=>gs,wO:()=>Qr,wV:()=>qr,x0:()=>vr});var s=S(5e3),_=S(9808),y=S(5254),j=S(567),D=S(4850);let L=(()=>{class yt{constructor(et,Kt){this._renderer=et,this._elementRef=Kt,this.onChange=ni=>{},this.onTouched=()=>{}}setProperty(et,Kt){this._renderer.setProperty(this._elementRef.nativeElement,et,Kt)}registerOnTouched(et){this.onTouched=et}registerOnChange(et){this.onChange=et}setDisabledState(et){this.setProperty("disabled",et)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(s.Qsj),s.Y36(s.SBq))},yt.\u0275dir=s.lG2({type:yt}),yt})(),ce=(()=>{class yt extends L{}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,features:[s.qOj]}),yt})();const W=new s.OlP("NgValueAccessor"),G={provide:W,useExisting:(0,s.Gpc)(()=>$),multi:!0};let $=(()=>{class yt extends ce{writeValue(et){this.setProperty("checked",et)}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("change",function(Fi){return Kt.onChange(Fi.target.checked)})("blur",function(){return Kt.onTouched()})},features:[s._Bn([G]),s.qOj]}),yt})();const te={provide:W,useExisting:(0,s.Gpc)(()=>Me),multi:!0},J=new s.OlP("CompositionEventMode");let Me=(()=>{class yt extends L{constructor(et,Kt,ni){super(et,Kt),this._compositionMode=ni,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function le(){const yt=(0,_.q)()?(0,_.q)().getUserAgent():"";return/android (\d+)/.test(yt.toLowerCase())}())}writeValue(et){this.setProperty("value",null==et?"":et)}_handleInput(et){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(et)}_compositionStart(){this._composing=!0}_compositionEnd(et){this._composing=!1,this._compositionMode&&this.onChange(et)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(J,8))},yt.\u0275dir=s.lG2({type:yt,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(et,Kt){1&et&&s.NdJ("input",function(Fi){return Kt._handleInput(Fi.target.value)})("blur",function(){return Kt.onTouched()})("compositionstart",function(){return Kt._compositionStart()})("compositionend",function(Fi){return Kt._compositionEnd(Fi.target.value)})},features:[s._Bn([te]),s.qOj]}),yt})();function Re(yt){return null==yt||0===yt.length}function me(yt){return null!=yt&&"number"==typeof yt.length}const Q=new s.OlP("NgValidators"),P=new s.OlP("NgAsyncValidators"),N=/^(?=.{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 Y{static min(mt){return de(mt)}static max(mt){return re(mt)}static required(mt){return V(mt)}static requiredTrue(mt){return ne(mt)}static email(mt){return E(mt)}static minLength(mt){return M(mt)}static maxLength(mt){return A(mt)}static pattern(mt){return R(mt)}static nullValidator(mt){return null}static compose(mt){return Ie(mt)}static composeAsync(mt){return pe(mt)}}function de(yt){return mt=>{if(Re(mt.value)||Re(yt))return null;const et=parseFloat(mt.value);return!isNaN(et)&&et<yt?{min:{min:yt,actual:mt.value}}:null}}function re(yt){return mt=>{if(Re(mt.value)||Re(yt))return null;const et=parseFloat(mt.value);return!isNaN(et)&&et>yt?{max:{max:yt,actual:mt.value}}:null}}function V(yt){return Re(yt.value)?{required:!0}:null}function ne(yt){return!0===yt.value?null:{required:!0}}function E(yt){return Re(yt.value)||N.test(yt.value)?null:{email:!0}}function M(yt){return mt=>Re(mt.value)||!me(mt.value)?null:mt.value.length<yt?{minlength:{requiredLength:yt,actualLength:mt.value.length}}:null}function A(yt){return mt=>me(mt.value)&&mt.value.length>yt?{maxlength:{requiredLength:yt,actualLength:mt.value.length}}:null}function R(yt){if(!yt)return ee;let mt,et;return"string"==typeof yt?(et="","^"!==yt.charAt(0)&&(et+="^"),et+=yt,"$"!==yt.charAt(yt.length-1)&&(et+="$"),mt=new RegExp(et)):(et=yt.toString(),mt=yt),Kt=>{if(Re(Kt.value))return null;const ni=Kt.value;return mt.test(ni)?null:{pattern:{requiredPattern:et,actualValue:ni}}}}function ee(yt){return null}function B(yt){return null!=yt}function K(yt){const mt=(0,s.QGY)(yt)?(0,y.D)(yt):yt;return(0,s.CqO)(mt),mt}function ge(yt){let mt={};return yt.forEach(et=>{mt=null!=et?Object.assign(Object.assign({},mt),et):mt}),0===Object.keys(mt).length?null:mt}function Fe(yt,mt){return mt.map(et=>et(yt))}function fe(yt){return yt.map(mt=>function he(yt){return!yt.validate}(mt)?mt:et=>mt.validate(et))}function Ie(yt){if(!yt)return null;const mt=yt.filter(B);return 0==mt.length?null:function(et){return ge(Fe(et,mt))}}function Se(yt){return null!=yt?Ie(fe(yt)):null}function pe(yt){if(!yt)return null;const mt=yt.filter(B);return 0==mt.length?null:function(et){const Kt=Fe(et,mt).map(K);return(0,j.D)(Kt).pipe((0,D.U)(ge))}}function ke(yt){return null!=yt?pe(fe(yt)):null}function ae(yt,mt){return null===yt?[mt]:Array.isArray(yt)?[...yt,mt]:[yt,mt]}function Ce(yt){return yt._rawValidators}function Ve(yt){return yt._rawAsyncValidators}function Be(yt){return yt?Array.isArray(yt)?yt:[yt]:[]}function ut(yt,mt){return Array.isArray(yt)?yt.includes(mt):yt===mt}function Ge(yt,mt){const et=Be(mt);return Be(yt).forEach(ni=>{ut(et,ni)||et.push(ni)}),et}function wt(yt,mt){return Be(mt).filter(et=>!ut(yt,et))}class Ot{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(mt){this._rawValidators=mt||[],this._composedValidatorFn=Se(this._rawValidators)}_setAsyncValidators(mt){this._rawAsyncValidators=mt||[],this._composedAsyncValidatorFn=ke(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(mt){this._onDestroyCallbacks.push(mt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(mt=>mt()),this._onDestroyCallbacks=[]}reset(mt){this.control&&this.control.reset(mt)}hasError(mt,et){return!!this.control&&this.control.hasError(mt,et)}getError(mt,et){return this.control?this.control.getError(mt,et):null}}class Ft extends Ot{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ht extends Ot{get formDirective(){return null}get path(){return null}}class Ht{constructor(mt){this._cd=mt}is(mt){var et,Kt,ni;return"submitted"===mt?!!(null===(et=this._cd)||void 0===et?void 0:et.submitted):!!(null===(ni=null===(Kt=this._cd)||void 0===Kt?void 0:Kt.control)||void 0===ni?void 0:ni[mt])}}let hn=(()=>{class yt extends Ht{constructor(et){super(et)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(Ft,2))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(et,Kt){2&et&&s.ekj("ng-untouched",Kt.is("untouched"))("ng-touched",Kt.is("touched"))("ng-pristine",Kt.is("pristine"))("ng-dirty",Kt.is("dirty"))("ng-valid",Kt.is("valid"))("ng-invalid",Kt.is("invalid"))("ng-pending",Kt.is("pending"))},features:[s.qOj]}),yt})(),vn=(()=>{class yt extends Ht{constructor(et){super(et)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(ht,10))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(et,Kt){2&et&&s.ekj("ng-untouched",Kt.is("untouched"))("ng-touched",Kt.is("touched"))("ng-pristine",Kt.is("pristine"))("ng-dirty",Kt.is("dirty"))("ng-valid",Kt.is("valid"))("ng-invalid",Kt.is("invalid"))("ng-pending",Kt.is("pending"))("ng-submitted",Kt.is("submitted"))},features:[s.qOj]}),yt})();function zn(yt,mt){return[...mt.path,yt]}function nn(yt,mt){Mt(yt,mt),mt.valueAccessor.writeValue(yt.value),function We(yt,mt){mt.valueAccessor.registerOnChange(et=>{yt._pendingValue=et,yt._pendingChange=!0,yt._pendingDirty=!0,"change"===yt.updateOn&&Qe(yt,mt)})}(yt,mt),function Lt(yt,mt){const et=(Kt,ni)=>{mt.valueAccessor.writeValue(Kt),ni&&mt.viewToModelUpdate(Kt)};yt.registerOnChange(et),mt._registerOnDestroy(()=>{yt._unregisterOnChange(et)})}(yt,mt),function Ue(yt,mt){mt.valueAccessor.registerOnTouched(()=>{yt._pendingTouched=!0,"blur"===yt.updateOn&&yt._pendingChange&&Qe(yt,mt),"submit"!==yt.updateOn&&yt.markAsTouched()})}(yt,mt),function Rn(yt,mt){if(mt.valueAccessor.setDisabledState){const et=Kt=>{mt.valueAccessor.setDisabledState(Kt)};yt.registerOnDisabledChange(et),mt._registerOnDestroy(()=>{yt._unregisterOnDisabledChange(et)})}}(yt,mt)}function Vn(yt,mt,et=!0){const Kt=()=>{};mt.valueAccessor&&(mt.valueAccessor.registerOnChange(Kt),mt.valueAccessor.registerOnTouched(Kt)),kt(yt,mt),yt&&(mt._invokeOnDestroyCallbacks(),yt._registerOnCollectionChange(()=>{}))}function Yt(yt,mt){yt.forEach(et=>{et.registerOnValidatorChange&&et.registerOnValidatorChange(mt)})}function Mt(yt,mt){const et=Ce(yt);null!==mt.validator?yt.setValidators(ae(et,mt.validator)):"function"==typeof et&&yt.setValidators([et]);const Kt=Ve(yt);null!==mt.asyncValidator?yt.setAsyncValidators(ae(Kt,mt.asyncValidator)):"function"==typeof Kt&&yt.setAsyncValidators([Kt]);const ni=()=>yt.updateValueAndValidity();Yt(mt._rawValidators,ni),Yt(mt._rawAsyncValidators,ni)}function kt(yt,mt){let et=!1;if(null!==yt){if(null!==mt.validator){const ni=Ce(yt);
1if(Array.isArray(ni)&&ni.length>0){const Fi=ni.filter(Yi=>Yi!==mt.validator);Fi.length!==ni.length&&(et=!0,yt.setValidators(Fi))}}if(null!==mt.asyncValidator){const ni=Ve(yt);if(Array.isArray(ni)&&ni.length>0){const Fi=ni.filter(Yi=>Yi!==mt.asyncValidator);Fi.length!==ni.length&&(et=!0,yt.setAsyncValidators(Fi))}}}const Kt=()=>{};return Yt(mt._rawValidators,Kt),Yt(mt._rawAsyncValidators,Kt),et}function Qe(yt,mt){yt._pendingDirty&&yt.markAsDirty(),yt.setValue(yt._pendingValue,{emitModelToViewChange:!1}),mt.viewToModelUpdate(yt._pendingValue),yt._pendingChange=!1}function xt(yt,mt){Mt(yt,mt)}function Ye(yt,mt){if(!yt.hasOwnProperty("model"))return!1;const et=yt.model;return!!et.isFirstChange()||!Object.is(mt,et.currentValue)}function Tt(yt,mt){yt._syncPendingControls(),mt.forEach(et=>{const Kt=et.control;"submit"===Kt.updateOn&&Kt._pendingChange&&(et.viewToModelUpdate(Kt._pendingValue),Kt._pendingChange=!1)})}function rn(yt,mt){if(!mt)return null;let et,Kt,ni;return Array.isArray(mt),mt.forEach(Fi=>{Fi.constructor===Me?et=Fi:function je(yt){return Object.getPrototypeOf(yt.constructor)===ce}(Fi)?Kt=Fi:ni=Fi}),ni||Kt||et||null}function On(yt,mt){const et=yt.indexOf(mt);et>-1&&yt.splice(et,1)}const Ai="VALID",mi="INVALID",fi="PENDING",Ki="DISABLED";function gn(yt){return(ue(yt)?yt.validators:yt)||null}function En(yt){return Array.isArray(yt)?Se(yt):yt||null}function rt(yt,mt){return(ue(mt)?mt.asyncValidators:yt)||null}function it(yt){return Array.isArray(yt)?ke(yt):yt||null}function ue(yt){return null!=yt&&!Array.isArray(yt)&&"object"==typeof yt}const ve=yt=>yt instanceof Qn,at=yt=>yt instanceof vi,q=yt=>yt instanceof li;function xe(yt){return ve(yt)?yt.value:yt.getRawValue()}function _t(yt,mt){const et=at(yt),Kt=yt.controls;if(!(et?Object.keys(Kt):Kt).length)throw new s.vHH(1e3,"");if(!Kt[mt])throw new s.vHH(1001,"")}function Xt(yt,mt){at(yt),yt._forEachChild((Kt,ni)=>{if(void 0===mt[ni])throw new s.vHH(1002,"")})}class Un{constructor(mt,et){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=mt,this._rawAsyncValidators=et,this._composedValidatorFn=En(this._rawValidators),this._composedAsyncValidatorFn=it(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(mt){this._rawValidators=this._composedValidatorFn=mt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(mt){this._rawAsyncValidators=this._composedAsyncValidatorFn=mt}get parent(){return this._parent}get valid(){return this.status===Ai}get invalid(){return this.status===mi}get pending(){return this.status==fi}get disabled(){return this.status===Ki}get enabled(){return this.status!==Ki}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(mt){this._rawValidators=mt,this._composedValidatorFn=En(mt)}setAsyncValidators(mt){this._rawAsyncValidators=mt,this._composedAsyncValidatorFn=it(mt)}addValidators(mt){this.setValidators(Ge(mt,this._rawValidators))}addAsyncValidators(mt){this.setAsyncValidators(Ge(mt,this._rawAsyncValidators))}removeValidators(mt){this.setValidators(wt(mt,this._rawValidators))}removeAsyncValidators(mt){this.setAsyncValidators(wt(mt,this._rawAsyncValidators))}hasValidator(mt){return ut(this._rawValidators,mt)}hasAsyncValidator(mt){return ut(this._rawAsyncValidators,mt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(mt={}){this.touched=!0,this._parent&&!mt.onlySelf&&this._parent.markAsTouched(mt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(mt=>mt.markAllAsTouched())}markAsUntouched(mt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(et=>{et.markAsUntouched({onlySelf:!0})}),this._parent&&!mt.onlySelf&&this._parent._updateTouched(mt)}markAsDirty(mt={}){this.pristine=!1,this._parent&&!mt.onlySelf&&this._parent.markAsDirty(mt)}markAsPristine(mt={}
vendor: 4,181 bytes, line 1
1){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(et=>{et.markAsPristine({onlySelf:!0})}),this._parent&&!mt.onlySelf&&this._parent._updatePristine(mt)}markAsPending(mt={}){this.status=fi,!1!==mt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!mt.onlySelf&&this._parent.markAsPending(mt)}disable(mt={}){const et=this._parentMarkedDirty(mt.onlySelf);this.status=Ki,this.errors=null,this._forEachChild(Kt=>{Kt.disable(Object.assign(Object.assign({},mt),{onlySelf:!0}))}),this._updateValue(),!1!==mt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},mt),{skipPristineCheck:et})),this._onDisabledChange.forEach(Kt=>Kt(!0))}enable(mt={}){const et=this._parentMarkedDirty(mt.onlySelf);this.status=Ai,this._forEachChild(Kt=>{Kt.enable(Object.assign(Object.assign({},mt),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:mt.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},mt),{skipPristineCheck:et})),this._onDisabledChange.forEach(Kt=>Kt(!1))}_updateAncestors(mt){this._parent&&!mt.onlySelf&&(this._parent.updateValueAndValidity(mt),mt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(mt){this._parent=mt}updateValueAndValidity(mt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ai||this.status===fi)&&this._runAsyncValidator(mt.emitEvent)),!1!==mt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!mt.onlySelf&&this._parent.updateValueAndValidity(mt)}_updateTreeValidity(mt={emitEvent:!0}){this._forEachChild(et=>et._updateTreeValidity(mt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:mt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ki:Ai}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(mt){if(this.asyncValidator){this.status=fi,this._hasOwnPendingAsyncValidator=!0;const et=K(this.asyncValidator(this));this._asyncValidationSubscription=et.subscribe(Kt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Kt,{emitEvent:mt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(mt,et={}){this.errors=mt,this._updateControlsErrors(!1!==et.emitEvent)}get(mt){return function pn(yt,mt,et){if(null==mt||(Array.isArray(mt)||(mt=mt.split(et)),Array.isArray(mt)&&0===mt.length))return null;let Kt=yt;return mt.forEach(ni=>{Kt=at(Kt)?Kt.controls.hasOwnProperty(ni)?Kt.controls[ni]:null:q(Kt)&&Kt.at(ni)||null}),Kt}(this,mt,".")}getError(mt,et){const Kt=et?this.get(et):this;return Kt&&Kt.errors?Kt.errors[mt]:null}hasError(mt,et){return!!this.getError(mt,et)}get root(){let mt=this;for(;mt._parent;)mt=mt._parent;return mt}_updateControlsErrors(mt){this.status=this._calculateStatus(),mt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(mt)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?Ki:this.errors?mi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fi)?fi:this._anyControlsHaveStatus(mi)?mi:Ai}_anyControlsHaveStatus(mt){return this._anyControls(et=>et.status===mt)}_anyControlsDirty(){return this._anyControls(mt=>mt.dirty)}_anyControlsTouched(){return this._anyControls(mt=>mt.touched)}_updatePristine(mt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!mt.onlySelf&&this._parent._updatePristine(mt)}_updateTouched(mt={}){this.touched=this._anyControlsTouched(),this._parent&&!mt.onlySelf&&this._parent._updateTouched(mt)}_isBoxedValue(mt){return"object"==typeof mt&&null!==mt&&2===Object.keys(mt).length&&"value"in mt&&"disabled"in mt}_registerOnCollectionChange(mt){this._onCollectionChange=mt}_setUpdateStrategy(mt){ue(mt)&&null!=mt.updateOn&&(this._updateOn=mt.updateOn)}_parentMarkedDirty(mt){return!mt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}
vendor: 4,253 bytes, line 1
1class Qn extends Un{constructor(mt=null,et,Kt){super(gn(et),rt(Kt,et)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(mt),this._setUpdateStrategy(et),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ue(et)&&et.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(mt)?mt.value:mt)}setValue(mt,et={}){this.value=this._pendingValue=mt,this._onChange.length&&!1!==et.emitModelToViewChange&&this._onChange.forEach(Kt=>Kt(this.value,!1!==et.emitViewToModelChange)),this.updateValueAndValidity(et)}patchValue(mt,et={}){this.setValue(mt,et)}reset(mt=this.defaultValue,et={}){this._applyFormState(mt),this.markAsPristine(et),this.markAsUntouched(et),this.setValue(this.value,et),this._pendingChange=!1}_updateValue(){}_anyControls(mt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(mt){this._onChange.push(mt)}_unregisterOnChange(mt){On(this._onChange,mt)}registerOnDisabledChange(mt){this._onDisabledChange.push(mt)}_unregisterOnDisabledChange(mt){On(this._onDisabledChange,mt)}_forEachChild(mt){}_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(mt){this._isBoxedValue(mt)?(this.value=this._pendingValue=mt.value,mt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=mt}}class vi extends Un{constructor(mt,et,Kt){super(gn(et),rt(Kt,et)),this.controls=mt,this._initObservables(),this._setUpdateStrategy(et),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(mt,et){return this.controls[mt]?this.controls[mt]:(this.controls[mt]=et,et.setParent(this),et._registerOnCollectionChange(this._onCollectionChange),et)}addControl(mt,et,Kt={}){this.registerControl(mt,et),this.updateValueAndValidity({emitEvent:Kt.emitEvent}),this._onCollectionChange()}removeControl(mt,et={}){this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),delete this.controls[mt],this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}setControl(mt,et,Kt={}){this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),delete this.controls[mt],et&&this.registerControl(mt,et),this.updateValueAndValidity({emitEvent:Kt.emitEvent}),this._onCollectionChange()}contains(mt){return this.controls.hasOwnProperty(mt)&&this.controls[mt].enabled}setValue(mt,et={}){Xt(this,mt),Object.keys(mt).forEach(Kt=>{_t(this,Kt),this.controls[Kt].setValue(mt[Kt],{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et)}patchValue(mt,et={}){null!=mt&&(Object.keys(mt).forEach(Kt=>{this.controls[Kt]&&this.controls[Kt].patchValue(mt[Kt],{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et))}reset(mt={},et={}){this._forEachChild((Kt,ni)=>{Kt.reset(mt[ni],{onlySelf:!0,emitEvent:et.emitEvent})}),this._updatePristine(et),this._updateTouched(et),this.updateValueAndValidity(et)}getRawValue(){return this._reduceChildren({},(mt,et,Kt)=>(mt[Kt]=xe(et),mt))}_syncPendingControls(){let mt=this._reduceChildren(!1,(et,Kt)=>!!Kt._syncPendingControls()||et);return mt&&this.updateValueAndValidity({onlySelf:!0}),mt}_forEachChild(mt){Object.keys(this.controls).forEach(et=>{const Kt=this.controls[et];Kt&&mt(Kt,et)})}_setUpControls(){this._forEachChild(mt=>{mt.setParent(this),mt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(mt){for(const et of Object.keys(this.controls)){const Kt=this.controls[et];if(this.contains(et)&&mt(Kt))return!0}return!1}_reduceValue(){return this._reduceChildren({},(mt,et,Kt)=>((et.enabled||this.disabled)&&(mt[Kt]=et.value),mt))}_reduceChildren(mt,et){let Kt=mt;return this._forEachChild((ni,Fi)=>{Kt=et(Kt,ni,Fi)}),Kt}_allControlsDisabled(){for(const mt of Object.keys(this.controls))if(this.controls[mt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class li extends Un{constructor(mt,et,Kt){super(gn(et),rt(Kt,et)),this.controls=mt,this._initOb
1servables(),this._setUpdateStrategy(et),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(mt){return this.controls[mt]}push(mt,et={}){this.controls.push(mt),this._registerControl(mt),this.updateValueAndValidity({emitEvent:et.emitEvent}),this._onCollectionChange()}insert(mt,et,Kt={}){this.controls.splice(mt,0,et),this._registerControl(et),this.updateValueAndValidity({emitEvent:Kt.emitEvent})}removeAt(mt,et={}){this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),this.controls.splice(mt,1),this.updateValueAndValidity({emitEvent:et.emitEvent})}setControl(mt,et,Kt={}){this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),this.controls.splice(mt,1),et&&(this.controls.splice(mt,0,et),this._registerControl(et)),this.updateValueAndValidity({emitEvent:Kt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(mt,et={}){Xt(this,mt),mt.forEach((Kt,ni)=>{_t(this,ni),this.at(ni).setValue(Kt,{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et)}patchValue(mt,et={}){null!=mt&&(mt.forEach((Kt,ni)=>{this.at(ni)&&this.at(ni).patchValue(Kt,{onlySelf:!0,emitEvent:et.emitEvent})}),this.updateValueAndValidity(et))}reset(mt=[],et={}){this._forEachChild((Kt,ni)=>{Kt.reset(mt[ni],{onlySelf:!0,emitEvent:et.emitEvent})}),this._updatePristine(et),this._updateTouched(et),this.updateValueAndValidity(et)}getRawValue(){return this.controls.map(mt=>xe(mt))}clear(mt={}){this.controls.length<1||(this._forEachChild(et=>et._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:mt.emitEvent}))}_syncPendingControls(){let mt=this.controls.reduce((et,Kt)=>!!Kt._syncPendingControls()||et,!1);return mt&&this.updateValueAndValidity({onlySelf:!0}),mt}_forEachChild(mt){this.controls.forEach((et,Kt)=>{mt(et,Kt)})}_updateValue(){this.value=this.controls.filter(mt=>mt.enabled||this.disabled).map(mt=>mt.value)}_anyControls(mt){return this.controls.some(et=>et.enabled&&mt(et))}_setUpControls(){this._forEachChild(mt=>this._registerControl(mt))}_allControlsDisabled(){for(const mt of this.controls)if(mt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(mt){mt.setParent(this),mt._registerOnCollectionChange(this._onCollectionChange)}}const mr={provide:ht,useExisting:(0,s.Gpc)(()=>hr)},zi=(()=>Promise.resolve(null))();let hr=(()=>{class yt extends ht{constructor(et,Kt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new s.vpe,this.form=new vi({},Se(et),ke(Kt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(et){zi.then(()=>{const Kt=this._findContainer(et.path);et.control=Kt.registerControl(et.name,et.control),nn(et.control,et),et.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(et)})}getControl(et){return this.form.get(et.path)}
1removeControl(et){zi.then(()=>{const Kt=this._findContainer(et.path);Kt&&Kt.removeControl(et.name),this._directives.delete(et)})}addFormGroup(et){zi.then(()=>{const Kt=this._findContainer(et.path),ni=new vi({});xt(ni,et),Kt.registerControl(et.name,ni),ni.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(et){zi.then(()=>{const Kt=this._findContainer(et.path);Kt&&Kt.removeControl(et.name)})}getFormGroup(et){return this.form.get(et.path)}updateModel(et,Kt){zi.then(()=>{this.form.get(et.path).setValue(Kt)})}setValue(et){this.control.setValue(et)}onSubmit(et){return this.submitted=!0,Tt(this.form,this._directives),this.ngSubmit.emit(et),!1}onReset(){this.resetForm()}resetForm(et){this.form.reset(et),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(et){return et.pop(),et.length?this.form.get(et):this.form}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(Q,10),s.Y36(P,10))},yt.\u0275dir=s.lG2({type:yt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("submit",function(Fi){return Kt.onSubmit(Fi)})("reset",function(){return Kt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([mr]),s.qOj]}),yt})(),Wi=(()=>{class yt extends ht{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,features:[s.qOj]}),yt})();const dr={provide:Ft,useExisting:(0,s.Gpc)(()=>Os)},Qs=(()=>Promise.resolve(null))();let Os=(()=>{class yt extends Ft{constructor(et,Kt,ni,Fi,Yi){super(),this._changeDetectorRef=Yi,this.control=new Qn,this._registered=!1,this.update=new s.vpe,this._parent=et,this._setValidators(Kt),this._setAsyncValidators(ni),this.valueAccessor=rn(0,Fi)}ngOnChanges(et){if(this._checkForErrors(),!this._registered||"name"in et){if(this._registered&&(this._checkName(),this.formDirective)){const Kt=et.name.previousValue;this.formDirective.removeControl({name:Kt,path:this._getPath(Kt)})}this._setUpControl()}"isDisabled"in et&&this._updateDisabled(et),Ye(et,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(et){this.viewModel=et,this.update.emit(et)}_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(){nn(this.control,this),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(et){Qs.then(()=>{var Kt;this.control.setValue(et,{emitViewToModelChange:!1}),null===(Kt=this._changeDetectorRef)||void 0===Kt||Kt.markForCheck()})}_updateDisabled(et){const Kt=et.isDisabled.currentValue,ni=""===Kt||Kt&&"false"!==Kt;Qs.then(()=>{var Fi;ni&&!this.control.disabled?this.control.disable():!ni&&this.control.disabled&&this.control.enable(),null===(Fi=this._changeDetectorRef)||void 0===Fi||Fi.markForCheck()})}_getPath(et){return this._parent?zn(et,this._parent):[et]}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(ht,9),s.Y36(Q,10),s.Y36(P,10),s.Y36(W,10),s.Y36(s.sBO,8))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s._Bn([dr]),s.qOj,s.TTD]}),yt})(),Rs=(()=>{class yt{}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275dir=s.lG2({type:yt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),yt})();const Js={provide:W,useExisting:(0,s.Gpc)(()=>qr),multi:!0};let qr=(()=>{class yt extends ce{writeValue(et){this.setProperty("value",null==et?"":et)}registerOnChange(et){this.onChange=Kt=>{et(""==Kt?null:parseFloat(Kt))}}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("input",function(Fi){return Kt.onChange(Fi.target.value)})("blur",function(){return Kt.onTouched()})},features:[s._Bn([Js]),s.qOj]}),yt})();const zr={provide:W,useExisting:(0,s.Gpc)(()=>ys),multi:!0};let ar=(()=>{class yt{}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275mod=s.oAB({type:yt}),yt.\u0275inj=s.cJS({}),yt})(),Wr=(()=>{class yt{constructor(){this._accessors=[]}add(et,Kt){this._accessors.push([et,Kt])}remove(et){for(let Kt=this._accessors.length-1;Kt>=0;--Kt)if(this._accessors[Kt][1]===et)return void this._accessors.splice(Kt,1)}
1select(et){this._accessors.forEach(Kt=>{this._isSameGroup(Kt,et)&&Kt[1]!==et&&Kt[1].fireUncheck(et.value)})}_isSameGroup(et,Kt){return!!et[0].control&&et[0]._parent===Kt._control._parent&&et[1].name===Kt.name}}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275prov=s.Yz7({token:yt,factory:yt.\u0275fac,providedIn:ar}),yt})(),ys=(()=>{class yt extends ce{constructor(et,Kt,ni,Fi){super(et,Kt),this._registry=ni,this._injector=Fi,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Ft),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(et){this._state=et===this.value,this.setProperty("checked",this._state)}registerOnChange(et){this._fn=et,this.onChange=()=>{et(this.value),this._registry.select(this)}}fireUncheck(et){this.writeValue(et)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Wr),s.Y36(s.zs3))},yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("change",function(){return Kt.onChange()})("blur",function(){return Kt.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s._Bn([zr]),s.qOj]}),yt})();const fr={provide:W,useExisting:(0,s.Gpc)(()=>ls),multi:!0};let ls=(()=>{class yt extends ce{writeValue(et){this.setProperty("value",parseFloat(et))}registerOnChange(et){this.onChange=Kt=>{et(""==Kt?null:parseFloat(Kt))}}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("change",function(Fi){return Kt.onChange(Fi.target.value)})("input",function(Fi){return Kt.onChange(Fi.target.value)})("blur",function(){return Kt.onTouched()})},features:[s._Bn([fr]),s.qOj]}),yt})();const eo=new s.OlP("NgModelWithFormControlWarning"),Kr={provide:Ft,useExisting:(0,s.Gpc)(()=>zs)};let zs=(()=>{class yt extends Ft{constructor(et,Kt,ni,Fi){super(),this._ngModelWarningConfig=Fi,this.update=new s.vpe,this._ngModelWarningSent=!1,this._setValidators(et),this._setAsyncValidators(Kt),this.valueAccessor=rn(0,ni)}set isDisabled(et){}ngOnChanges(et){if(this._isControlChanged(et)){const Kt=et.form.previousValue;Kt&&Vn(Kt,this,!1),nn(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ye(et,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Vn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(et){this.viewModel=et,this.update.emit(et)}_isControlChanged(et){return et.hasOwnProperty("form")}}return yt._ngModelWarningSentOnce=!1,yt.\u0275fac=function(et){return new(et||yt)(s.Y36(Q,10),s.Y36(P,10),s.Y36(W,10),s.Y36(eo,8))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s._Bn([Kr]),s.qOj,s.TTD]}),yt})();const Ro={provide:ht,useExisting:(0,s.Gpc)(()=>xs)};let xs=(()=>{class yt extends ht{constructor(et,Kt){super(),this.validators=et,this.asyncValidators=Kt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(et),this._setAsyncValidators(Kt)}ngOnChanges(et){this._checkFormPresent(),et.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(kt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(et){const Kt=this.form.get(et.path);return nn(Kt,et),Kt.updateValueAndValidity({emitEvent:!1}),this.directives.push(et),Kt}getControl(et){return this.form.get(et.path)}
1removeControl(et){Vn(et.control||null,et,!1),On(this.directives,et)}addFormGroup(et){this._setUpFormContainer(et)}removeFormGroup(et){this._cleanUpFormContainer(et)}getFormGroup(et){return this.form.get(et.path)}addFormArray(et){this._setUpFormContainer(et)}removeFormArray(et){this._cleanUpFormContainer(et)}getFormArray(et){return this.form.get(et.path)}updateModel(et,Kt){this.form.get(et.path).setValue(Kt)}onSubmit(et){return this.submitted=!0,Tt(this.form,this.directives),this.ngSubmit.emit(et),!1}onReset(){this.resetForm()}resetForm(et){this.form.reset(et),this.submitted=!1}_updateDomValue(){this.directives.forEach(et=>{const Kt=et.control,ni=this.form.get(et.path);Kt!==ni&&(Vn(Kt||null,et),ve(ni)&&(nn(ni,et),et.control=ni))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(et){const Kt=this.form.get(et.path);xt(Kt,et),Kt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(et){if(this.form){const Kt=this.form.get(et.path);Kt&&function Gt(yt,mt){return kt(yt,mt)}(Kt,et)&&Kt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Mt(this.form,this),this._oldForm&&kt(this._oldForm,this)}_checkFormPresent(){}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(Q,10),s.Y36(P,10))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formGroup",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("submit",function(Fi){return Kt.onSubmit(Fi)})("reset",function(){return Kt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([Ro]),s.qOj,s.TTD]}),yt})();const Ui={provide:ht,useExisting:(0,s.Gpc)(()=>vr)};let vr=(()=>{class yt extends Wi{constructor(et,Kt,ni){super(),this._parent=et,this._setValidators(Kt),this._setAsyncValidators(ni)}_checkParentType(){Ao(this._parent)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(ht,13),s.Y36(Q,10),s.Y36(P,10))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s._Bn([Ui]),s.qOj]}),yt})();const Po={provide:ht,useExisting:(0,s.Gpc)(()=>Ps)};let Ps=(()=>{class yt extends ht{constructor(et,Kt,ni){super(),this._parent=et,this._setValidators(Kt),this._setAsyncValidators(ni)}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 zn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ao(this._parent)}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(ht,13),s.Y36(Q,10),s.Y36(P,10))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s._Bn([Po]),s.qOj]}),yt})();function Ao(yt){return!(yt instanceof vr||yt instanceof xs||yt instanceof Ps)}const to={provide:Ft,useExisting:(0,s.Gpc)(()=>ms)};let ms=(()=>{class yt extends Ft{constructor(et,Kt,ni,Fi,Yi){super(),this._ngModelWarningConfig=Yi,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=et,this._setValidators(Kt),this._setAsyncValidators(ni),this.valueAccessor=rn(0,Fi)}set isDisabled(et){}ngOnChanges(et){this._added||this._setUpControl(),Ye(et,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(et){this.viewModel=et,this.update.emit(et)}get path(){return zn(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return yt._ngModelWarningSentOnce=!1,yt.\u0275fac=function(et){return new(et||yt)(s.Y36(ht,13),s.Y36(Q,10),s.Y36(P,10),s.Y36(W,10),s.Y36(eo,8))},yt.\u0275dir=s.lG2({type:yt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([to]),s.qOj,s.TTD]}),yt})();const Ar={provide:W,useExisting:(0,s.Gpc)(()=>Nr),multi:!0};function lo(yt,mt){return null==yt?`${mt}`:(mt&&"object"==typeof mt&&(mt="Object"),`${yt}: ${mt}`.slice(0,50))}let Nr=(()=>{class yt extends ce{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(et){this._compareWith=et}writeValue(et){this.value=et;const ni=lo(this._getOptionId(et),et);this.setProperty("value",ni)}registerOnChange(et){this.onChange=Kt=>{this.value=this._getOptionValue(Kt),et(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(et){for(const Kt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Kt),et))return Kt;return null}_getOptionValue(et){const Kt=function wo(yt){return yt.split(":")[0]}(et);return this._optionMap.has(Kt)?this._optionMap.get(Kt):et}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("
1change",function(Fi){return Kt.onChange(Fi.target.value)})("blur",function(){return Kt.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([Ar]),s.qOj]}),yt})(),Xs=(()=>{class yt{constructor(et,Kt,ni){this._element=et,this._renderer=Kt,this._select=ni,this._select&&(this.id=this._select._registerOption())}set ngValue(et){null!=this._select&&(this._select._optionMap.set(this.id,et),this._setElementValue(lo(this.id,et)),this._select.writeValue(this._select.value))}set value(et){this._setElementValue(et),this._select&&this._select.writeValue(this._select.value)}_setElementValue(et){this._renderer.setProperty(this._element.nativeElement,"value",et)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(Nr,9))},yt.\u0275dir=s.lG2({type:yt,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),yt})();const Mo={provide:W,useExisting:(0,s.Gpc)(()=>mo),multi:!0};function no(yt,mt){return null==yt?`${mt}`:("string"==typeof mt&&(mt=`'${mt}'`),mt&&"object"==typeof mt&&(mt="Object"),`${yt}: ${mt}`.slice(0,50))}let mo=(()=>{class yt extends ce{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(et){this._compareWith=et}writeValue(et){let Kt;if(this.value=et,Array.isArray(et)){const ni=et.map(Fi=>this._getOptionId(Fi));Kt=(Fi,Yi)=>{Fi._setSelected(ni.indexOf(Yi.toString())>-1)}}else Kt=(ni,Fi)=>{ni._setSelected(!1)};this._optionMap.forEach(Kt)}registerOnChange(et){this.onChange=Kt=>{const ni=[],Fi=Kt.selectedOptions;if(void 0!==Fi){const Yi=Fi;for(let Eo=0;Eo<Yi.length;Eo++){const Br=this._getOptionValue(Yi[Eo].value);ni.push(Br)}}else{const Yi=Kt.options;for(let Eo=0;Eo<Yi.length;Eo++){const Ls=Yi[Eo];if(Ls.selected){const Br=this._getOptionValue(Ls.value);ni.push(Br)}}}this.value=ni,et(ni)}}_registerOption(et){const Kt=(this._idCounter++).toString();return this._optionMap.set(Kt,et),Kt}_getOptionId(et){for(const Kt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Kt)._value,et))return Kt;return null}_getOptionValue(et){const Kt=function Fs(yt){return yt.split(":")[0]}(et);return this._optionMap.has(Kt)?this._optionMap.get(Kt)._value:et}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(et,Kt){1&et&&s.NdJ("change",function(Fi){return Kt.onChange(Fi.target)})("blur",function(){return Kt.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([Mo]),s.qOj]}),yt})(),Ws=(()=>{class yt{constructor(et,Kt,ni){this._element=et,this._renderer=Kt,this._select=ni,this._select&&(this.id=this._select._registerOption(this))}set ngValue(et){null!=this._select&&(this._value=et,this._setElementValue(no(this.id,et)),this._select.writeValue(this._select.value))}set value(et){this._select?(this._value=et,this._setElementValue(no(this.id,et)),this._select.writeValue(this._select.value)):this._setElementValue(et)}_setElementValue(et){this._renderer.setProperty(this._element.nativeElement,"value",et)}_setSelected(et){this._renderer.setProperty(this._element.nativeElement,"selected",et)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return yt.\u0275fac=function(et){return new(et||yt)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(mo,9))},yt.\u0275dir=s.lG2({type:yt,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),yt})();function bs(yt){return"number"==typeof yt?yt:parseInt(yt,10)}function vt(yt){return"number"==typeof yt?yt:parseFloat(yt)}let pt=(()=>{class yt{constructor(){this._validator=ee}ngOnChanges(et){if(this.inputName in et){const Kt=this.normalizeInput(et[this.inputName].currentValue);this._enabled=this.enabled(Kt),this._validator=this._enabled?this.createValidator(Kt):ee,this._onChange&&this._onChange()}}
1validate(et){return this._validator(et)}registerOnValidatorChange(et){this._onChange=et}enabled(et){return null!=et}}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275dir=s.lG2({type:yt,features:[s.TTD]}),yt})();const Zt={provide:Q,useExisting:(0,s.Gpc)(()=>yn),multi:!0};let yn=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=et=>vt(et),this.createValidator=et=>re(et)}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("max",Kt._enabled?Kt.max:null)},inputs:{max:"max"},features:[s._Bn([Zt]),s.qOj]}),yt})();const Mn={provide:Q,useExisting:(0,s.Gpc)(()=>jn),multi:!0};let jn=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=et=>vt(et),this.createValidator=et=>de(et)}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("min",Kt._enabled?Kt.min:null)},inputs:{min:"min"},features:[s._Bn([Mn]),s.qOj]}),yt})();const ti={provide:Q,useExisting:(0,s.Gpc)(()=>hi),multi:!0},pi={provide:Q,useExisting:(0,s.Gpc)(()=>Di),multi:!0};let hi=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=et=>function ws(yt){return null!=yt&&!1!==yt&&"false"!=`${yt}`}(et),this.createValidator=et=>V}enabled(et){return et}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("required",Kt._enabled?"":null)},inputs:{required:"required"},features:[s._Bn([ti]),s.qOj]}),yt})(),Di=(()=>{class yt extends hi{constructor(){super(...arguments),this.createValidator=et=>ne}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("required",Kt._enabled?"":null)},features:[s._Bn([pi]),s.qOj]}),yt})();const Pi={provide:Q,useExisting:(0,s.Gpc)(()=>Xi),multi:!0};let Xi=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=et=>""===et||!0===et||"true"===et,this.createValidator=et=>E}enabled(et){return et}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[s._Bn([Pi]),s.qOj]}),yt})();const tr={provide:Q,useExisting:(0,s.Gpc)(()=>Qr),multi:!0};let Qr=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=et=>bs(et),this.createValidator=et=>M(et)}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("minlength",Kt._enabled?Kt.minlength:null)},inputs:{minlength:"minlength"},features:[s._Bn([tr]),s.qOj]}),yt})();const pr={provide:Q,useExisting:(0,s.Gpc)(()=>ts),multi:!0};let ts=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=et=>bs(et),this.createValidator=et=>A(et)}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("maxlength",Kt._enabled?Kt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s._Bn([pr]),s.qOj]}),yt})();const jr={provide:Q,useExisting:(0,s.Gpc)(()=>ps),multi:!0};let ps=(()=>{class yt extends pt{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=et=>et,this.createValidator=et=>R(et)}}return yt.\u0275fac=function(){let mt;return function(Kt){return(mt||(mt=s.n5z(yt)))(Kt||yt)}}(),yt.\u0275dir=s.lG2({type:yt,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(et,Kt){2&et&&s.uIk("pattern",Kt._enabled?Kt.pattern:null)},inputs:{pattern:"pattern"},features:[s._Bn([jr]),s.qOj]}),yt})(),Ss=(()=>{class yt{}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275mod=s.oAB({type:yt}),yt.\u0275inj=s.cJS({imports:[[ar]]}),yt})(),gs=(()=>{class yt{}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275mod=s.oAB({type:yt}),yt.\u0275inj=s.cJS({imports:[Ss]}),yt})(),Ms=(()=>{class yt{static withConfig(et){return{ngModule:yt,providers:[{provide:eo,useValue:et.warnOnNgModelWithFormControl}]}}}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275mod=s.oAB({type:yt}),yt.\u0275inj=s.cJS({imports:[Ss]}),yt})(),To=(()=>{class yt{group(et,Kt=null){const ni=this._reduceControls(et);let Eo,Fi=null,Yi=null;return null!=Kt&&(function io(yt){return void 0!==yt.asyncValidators||void 0!==yt.validators||void 0!==yt.updateOn}(Kt)?(Fi=null!=Kt.validators?Kt.validators:null,Yi=null!=Kt.asyncValidators?Kt.asyncValidators:null,Eo=null!=Kt.updateOn?Kt.updateOn:void 0):(Fi=null!=Kt.validator?Kt.validator:null,Yi=null!=Kt.asyncValidator?Kt.asyncValidator:null)),new vi(ni,{asyncValidators:Yi,updateOn:Eo,validators:Fi})}control(et,Kt,ni){return new Qn(et,Kt,ni)}array(et,Kt,ni){const Fi=et.map(Yi=>this._createControl(Yi));return new li(Fi,Kt,ni)}_reduceControls(et){const Kt={};return Object.keys(et).forEach(ni=>{Kt[ni]=this._createControl(et[ni])}),Kt}_createControl(et){return ve(et)||at(et)||q(et)?et:Array.isArray(et)?this.control(et[0],et.length>1?et[1]:null,et.length>2?et[2]:null):this.control(et)}}return yt.\u0275fac=function(et){return new(et||yt)},yt.\u0275prov=s.Yz7({token:yt,factory:yt.\u0275fac,providedIn:Ms}),yt})()},1079:(Qt,Z,S)=>{"use strict";S.d(Z,{Bb:()=>wt,XC:()=>Ie,ZL:()=>Be});var s=S(5664),_=S(3191),y=S(5e3),j=S(508),D=S(2654),L=S(8929),ce=S(8514),W=S(6787),G=S(1086),$=S(3753),te=S(925),le=S(9808),J=S(2845),Me=S(9071),Re=S(1159),me=S(7429),Q=S(3075),P=S(7322),N=S(1059),Y=S(7545),de=S(2986),re=S(2198),V=S(4850),ne=S(2868),E=S(943),M=S(226);const A=["panel"];function R(Ot,Ft){if(1&Ot&&(y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA()),2&Ot){const ht=Ft.id,Ht=y.oxw();y.Q6J("id",Ht.id)("ngClass",Ht._classList),y.uIk("aria-label",Ht.ariaLabel||null)("aria-labelledby",Ht._getPanelAriaLabelledby(ht))}}const ee=["*"];let B=0;class K{constructor(Ft,ht){this.source=Ft,this.option=ht}}const ge=(0,j.Kr)(class{}),Fe=new y.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function he(){return{autoActiveFirstOption:!1}}});let fe=(()=>{class Ot extends ge{constructor(ht,Ht,jt,cn){super(),this._changeDetectorRef=ht,this._elementRef=Ht,this._activeOptionChanges=D.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new y.vpe,this.opened=new y.vpe,this.closed=new y.vpe,this.optionActivated=new y.vpe,this._classList={},this.id="mat-autocomplete-"+B++,this.inertGroups=(null==cn?void 0:cn.SAFARI)||!1,this._autoActiveFirstOption=!!jt.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ht){this._autoActiveFirstOption=(0,_.Ig)(ht)}set classList(ht){this._classList=ht&&ht.length?(0,_.du)(ht).reduce((Ht,jt)=>(Ht[jt]=!0,Ht),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new s.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ht=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ht]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ht){this.panel&&(this.panel.nativeElement.scrollTop=ht)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ht){const Ht=new K(this,ht);this.optionSelected.emit(Ht)}_getPanelAriaLabelledby(ht){return this.ariaLabel?null:this.ariaLabelledby?(ht?ht+" ":"")+this.ariaLabelledby:ht}_setVisibilityClasses(ht){ht[this._visibleClass]=this.showPanel,ht[this._hiddenClass]=!this.showPanel}}return Ot.\u0275fac=function(ht){return new(ht||Ot)(y.Y36(y.sBO),y.Y36(y.SBq),y.Y36(Fe),y.Y36(te.t4))},Ot.\u0275dir=y.lG2({type:Ot,viewQuery:function(ht,Ht){if(1&ht&&(y.Gf(y.Rgc,7),y.Gf(A,5)),2&ht){let jt;y.iGM(jt=y.CRH())&&(Ht.template=jt.first),y.iGM(jt=y.CRH())&&(Ht.panel=jt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[y.qOj]}),Ot})(),Ie=(()=>{class Ot extends fe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ot.\u0275fac=function(){let Ft;return function(Ht){return(Ft||(Ft=y.n5z(Ot)))(Ht||Ot)}}(),Ot.\u0275cmp=y.Xpm({type:Ot,selectors:[["mat-autocomplete"]],contentQueries:function(ht,Ht,jt){if(1&ht&&(y.Suo(jt,j.K7,5),y.Suo(jt,j.ey,5)),2&ht){let cn;y.iGM(cn=y.CRH())&&(Ht.optionGroups=cn),y.iGM(cn=y.CRH())&&(Ht.options=cn)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[y._Bn([{provide:j.HF,useExisting:Ot}]),y.qOj],ngContentSelectors:ee,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ht,Ht){1&ht&&(y.F$t(),y.YNc(0,R,3,4,"ng-template"))},directives:[le.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),Ot})();const Se=new y.OlP("mat-autocomplete-scroll-strategy"),ke={provide:Se,deps:[J.aV],useFactory:function pe(Ot){return()=>Ot.scrollStrategies.reposition()}},ae={provide:Q.JU,useExisting:(0,y.Gpc)(()=>Be),multi:!0};let Ve=(()=>{class Ot{constructor(ht,Ht,jt,cn,hn,vn,ln,Jt,Xe,qe,Pe){this._element=ht,this._overlay=Ht,this._viewContainerRef
1=jt,this._zone=cn,this._changeDetectorRef=hn,this._dir=ln,this._formField=Jt,this._document=Xe,this._viewportRuler=qe,this._defaults=Pe,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=D.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new L.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,ce.P)(()=>{const tt=this.autocomplete?this.autocomplete.options:null;return tt?tt.changes.pipe((0,N.O)(tt),(0,Y.w)(()=>(0,W.T)(...tt.map(bt=>bt.onSelectionChange)))):this._zone.onStable.pipe((0,de.q)(1),(0,Y.w)(()=>this.optionSelections))}),this._scrollStrategy=vn}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ht){this._autocompleteDisabled=(0,_.Ig)(ht)}ngAfterViewInit(){const ht=this._getWindow();void 0!==ht&&this._zone.runOutsideAngular(()=>ht.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ht){ht.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ht=this._getWindow();void 0!==ht&&ht.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,W.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,re.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,re.h)(()=>this._overlayAttached)):(0,G.of)()).pipe((0,V.U)(ht=>ht instanceof j.rN?ht:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,W.T)((0,$.R)(this._document,"click"),(0,$.R)(this._document,"auxclick"),(0,$.R)(this._document,"touchend")).pipe((0,re.h)(ht=>{const Ht=(0,te.sA)(ht),jt=this._formField?this._formField._elementRef.nativeElement:null,cn=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ht!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!jt||!jt.contains(Ht))&&(!cn||!cn.contains(Ht))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ht)}))}writeValue(ht){Promise.resolve().then(()=>this._setTriggerValue(ht))}registerOnChange(ht){this._onChange=ht}registerOnTouched(ht){this._onTouched=ht}setDisabledState(ht){this._element.nativeElement.disabled=ht}_handleKeydown(ht){const Ht=ht.keyCode,jt=(0,Re.Vb)(ht);if(Ht===Re.hY&&!jt&&ht.preventDefault(),this.activeOption&&Ht===Re.K5&&this.panelOpen&&!jt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ht.preventDefault();else if(this.autocomplete){const cn=this.autocomplete._keyManager.activeItem,hn=Ht===Re.LH||Ht===Re.JH;Ht===Re.Mf||hn&&!jt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ht):hn&&this._canOpen()&&this.openPanel(),(hn||this.autocomplete._keyManager.activeItem!==cn)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(ht){let Ht=ht.target,jt=Ht.value;"number"===Ht.type&&(jt=""==jt?null:parseFloat(jt)),this._previousValue!==jt&&(this._previousValue=jt,this._onChange(jt),this._canOpen()&&this._document.activeElement===ht.target&&this.openPanel
1())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(ht=!1){this._formField&&"auto"===this._formField.floatLabel&&(ht?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ht=this._zone.onStable.pipe((0,de.q)(1)),Ht=this.autocomplete.options.changes.pipe((0,ne.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,E.g)(0));return(0,W.T)(ht,Ht).pipe((0,Y.w)(()=>(this._zone.run(()=>{const jt=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),jt!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,de.q)(1)).subscribe(jt=>this._setValueAndClose(jt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(ht){const Ht=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ht):ht,jt=null!=Ht?Ht:"";this._formField?this._formField._control.value=jt:this._element.nativeElement.value=jt,this._previousValue=jt}_setValueAndClose(ht){const Ht=ht&&ht.source;Ht&&(this._clearPreviousSelectedOption(Ht),this._setTriggerValue(Ht.value),this._onChange(Ht.value),this.autocomplete._emitSelectEvent(Ht),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ht){this.autocomplete.options.forEach(Ht=>{Ht!==ht&&Ht.selected&&Ht.deselect()})}_attachOverlay(){var ht;let Ht=this._overlayRef;Ht?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ht.updateSize({width:this._getPanelWidth()})):(this._portal=new me.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ht=this._formField)||void 0===ht?void 0:ht.getLabelId()}),Ht=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ht,Ht.keydownEvents().subscribe(cn=>{(cn.keyCode===Re.hY&&!(0,Re.Vb)(cn)||cn.keyCode===Re.LH&&(0,Re.Vb)(cn,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),cn.stopPropagation(),cn.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ht&&Ht.updateSize({width:this._getPanelWidth()})})),Ht&&!Ht.hasAttached()&&(Ht.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const jt=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&jt!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ht;return new J.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ht=this._defaults)||void 0===ht?void 0:ht.overlayPanelClass})}_getOverlayPosition(){const ht=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ht),this._positionStrategy=ht,ht}_setStrategyPositions(ht){const Ht=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],jt=this._aboveClass,cn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:jt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:jt}];let hn;hn="above"===this.position?cn:"below"===this.position?Ht:[...Ht,...cn],ht.withPositions(hn)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ht=this.autocomplete;ht.autoActiveFirstOption?ht._keyManager.setFirstItemActive():ht._keyManager.setActiveItem(-1)}_canOpen(){const ht=this._element.nativeElement;return!ht.readOnly&&!ht.disabled&&!this._autocompleteDisabled}_getWindow(){var ht;return(null===(ht=this._document)||void 0===ht?void 0:ht.defaultView)||window}
1_scrollToOption(ht){const Ht=this.autocomplete,jt=(0,j.CB)(ht,Ht.options,Ht.optionGroups);if(0===ht&&1===jt)Ht._setScrollTop(0);else if(Ht.panel){const cn=Ht.options.toArray()[ht];if(cn){const hn=cn._getHostElement(),vn=(0,j.jH)(hn.offsetTop,hn.offsetHeight,Ht._getScrollTop(),Ht.panel.nativeElement.offsetHeight);Ht._setScrollTop(vn)}}}}return Ot.\u0275fac=function(ht){return new(ht||Ot)(y.Y36(y.SBq),y.Y36(J.aV),y.Y36(y.s_b),y.Y36(y.R0b),y.Y36(y.sBO),y.Y36(Se),y.Y36(M.Is,8),y.Y36(P.G_,9),y.Y36(le.K0,8),y.Y36(Me.rL),y.Y36(Fe,8))},Ot.\u0275dir=y.lG2({type:Ot,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[y.TTD]}),Ot})(),Be=(()=>{class Ot extends Ve{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ot.\u0275fac=function(){let Ft;return function(Ht){return(Ft||(Ft=y.n5z(Ot)))(Ht||Ot)}}(),Ot.\u0275dir=y.lG2({type:Ot,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ht,Ht){1&ht&&y.NdJ("focusin",function(){return Ht._handleFocus()})("blur",function(){return Ht._onTouched()})("input",function(cn){return Ht._handleInput(cn)})("keydown",function(cn){return Ht._handleKeydown(cn)})("click",function(){return Ht._handleClick()}),2&ht&&y.uIk("autocomplete",Ht.autocompleteAttribute)("role",Ht.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ht.autocompleteDisabled?null:"list")("aria-activedescendant",Ht.panelOpen&&Ht.activeOption?Ht.activeOption.id:null)("aria-expanded",Ht.autocompleteDisabled?null:Ht.panelOpen.toString())("aria-owns",Ht.autocompleteDisabled||!Ht.panelOpen||null==Ht.autocomplete?null:Ht.autocomplete.id)("aria-haspopup",Ht.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[y._Bn([ae]),y.qOj]}),Ot})(),wt=(()=>{class Ot{}return Ot.\u0275fac=function(ht){return new(ht||Ot)},Ot.\u0275mod=y.oAB({type:Ot}),Ot.\u0275inj=y.cJS({providers:[ke],imports:[[J.U8,j.Ng,j.BQ,le.ez],Me.ZD,j.Ng,j.BQ]}),Ot})()},7544:(Qt,Z,S)=>{"use strict";S.d(Z,{g:()=>W});var s=S(5e3),_=S(508),y=S(5664);let W=(()=>{class G{}return G.\u0275fac=function(te){return new(te||G)},G.\u0275mod=s.oAB({type:G}),G.\u0275inj=s.cJS({imports:[[y.rt,_.BQ],_.BQ]}),G})()},7399:(Qt,Z,S)=>{"use strict";S.d(Z,{_r:()=>te});var s=S(2845),_=S(7429),y=S(5e3),j=S(508);S(1777);let te=(()=>{class me{}return me.\u0275fac=function(P){return new(P||me)},me.\u0275mod=y.oAB({type:me}),me.\u0275inj=y.cJS({imports:[[s.U8,j.BQ,_.eL],j.BQ]}),me})()},7423:(Qt,Z,S)=>{"use strict";S.d(Z,{lW:()=>te,ot:()=>J,zs:()=>le});var s=S(5e3),_=S(508),y=S(6360),j=S(5664);const D=["mat-button",""],L=["*"],G=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],$=(0,_.pj)((0,_.Id)((0,_.Kr)(class{constructor(Me){this._elementRef=Me}})));let te=(()=>{class Me extends ${constructor(me,Q,P){super(me),this._focusMonitor=Q,this._animationMode=P,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const N of G)this._hasHostAttributes(N)&&this._getHostElement().classList.add(N);me.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(me,Q){me?this._focusMonitor.focusVia(this._getHostElement(),me,Q):this._getHostElement().focus(Q)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...me){return me.some(Q=>this._getHostElement().hasAttribute(Q))}}return Me.\u0275fac=function(me){return new(me||Me)(s.Y36(s.SBq),s.Y36(j.tE),s.Y36(y.Qb,8))},Me.\u0275cmp=s.Xpm({type:Me,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(me,Q){if(1&me&&s.Gf(_.wG,5),2&me){let P;s.iGM(P=s.CRH())&&(Q.ripple=P.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(me,Q){2&me&&(s.uIk("disabled",Q.disabled||null),s.ekj("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mat-button-disabled",Q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.qOj],attrs:D,ngContentSelectors:L,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(me,Q){1&me&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1)(3,"span",2)),2&me&&(s.xp6(2),s.ekj("mat-button-ripple-round",Q.isRoundButton||Q.isIconButton),s.Q6J("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",Q.isIconButton)("matRippleTrigger",Q._getHostElement()))},directives:[_.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
1.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),Me})(),le=(()=>{class Me extends te{constructor(me,Q,P,N){super(Q,me,P),this._ngZone=N,this._haltDisabledEvents=Y=>{this.disabled&&(Y.preventDefault(),Y.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return Me.\u0275fac=function(me){return new(me||Me)(s.Y36(j.tE),s.Y36(s.SBq),s.Y36(y.Qb,8),s.Y36(s.R0b,8))},Me.\u0275cmp=s.Xpm({type:Me,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(me,Q){2&me&&(s.uIk("tabindex",Q.disabled?-1:Q.tabIndex)("disabled",Q.disabled||null)("aria-disabled",Q.disabled.toString()),s.ekj("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mat-button-disabled",Q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.qOj],attrs:D,ngContentSelectors:L,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(me,Q){1&me&&(s.F$t(),s.TgZ(0,"span",0),s.Hsn(1),s.qZA(),s._UZ(2,"span",1)(3,"span",2)),2&me&&(s.xp6(2),s.ekj("mat-button-ripple-round",Q.isRoundButton||Q.isIconButton),s.Q6J("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",Q.isIconButton)("matRippleTrigger",Q._getHostElement()))},directives:[_.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}
1.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),Me})(),J=(()=>{class Me{}return Me.\u0275fac=function(me){return new(me||Me)},Me.\u0275mod=s.oAB({type:Me}),Me.\u0275inj=s.cJS({imports:[[_.si,_.BQ],_.BQ]}),Me})()},9224:(Qt,Z,S)=>{"use strict";S.d(Z,{$j:()=>le,QW:()=>ne,a8:()=>de,dk:()=>re,dn:()=>$,hq:()=>J,kc:()=>Y,n5:()=>te});var s=S(5e3),_=S(6360),y=S(508);const j=["*",[["mat-card-footer"]]],D=["*","mat-card-footer"],L=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],ce=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let $=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275dir=s.lG2({type:E,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),E})(),te=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275dir=s.lG2({type:E,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),E})(),le=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275dir=s.lG2({type:E,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),E})(),J=(()=>{class E{constructor(){this.align="start"}}return E.\u0275fac=function(A){return new(A||E)},E.\u0275dir=s.lG2({type:E,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(A,R){2&A&&s.ekj("mat-card-actions-align-en
1d","end"===R.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),E})(),Y=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275dir=s.lG2({type:E,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),E})(),de=(()=>{class E{constructor(A){this._animationMode=A}}return E.\u0275fac=function(A){return new(A||E)(s.Y36(_.Qb,8))},E.\u0275cmp=s.Xpm({type:E,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(A,R){2&A&&s.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode)},exportAs:["matCard"],ngContentSelectors:D,decls:2,vars:0,template:function(A,R){1&A&&(s.F$t(j),s.Hsn(0),s.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}
1.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),E})(),re=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275cmp=s.Xpm({type:E,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:ce,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(A,R){1&A&&(s.F$t(L),s.Hsn(0),s.TgZ(1,"div",0),s.Hsn(2,1),s.qZA(),s.Hsn(3,2))},encapsulation:2,changeDetection:0}),E})(),ne=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275mod=s.oAB({type:E}),E.\u0275inj=s.cJS({imports:[[y.BQ],y.BQ]}),E})()},7446:(Qt,Z,S)=>{"use strict";S.d(Z,{oG:()=>P,p9:()=>re});var s=S(3191),_=S(5e3),y=S(3075),j=S(508),D=S(6360),L=S(5664),ce=S(7144);const W=["input"],G=function(V){return{enterDuration:V}},$=["*"],te=new _.OlP("mat-checkbox-default-options",{providedIn:"root",factory:le});function le(){return{color:"accent",clickAction:"check-indeterminate"}}let J=0;const Me=le(),Re={provide:y.JU,useExisting:(0,_.Gpc)(()=>P),multi:!0};class me{}const Q=(0,j.sb)((0,j.pj)((0,j.Kr)((0,j.Id)(class{constructor(V){this._elementRef=V}}))));let P=(()=>{class V extends Q{constructor(E,M,A,R,ee,B,K){super(E),this._changeDetectorRef=M,this._focusMonitor=A,this._ngZone=R,this._animationMode=B,this._options=K,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++J,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new _.vpe,this.indeterminateChange=new _.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Me,this.color=this.defaultColor=this._options.color||Me.color,this.tabIndex=parseInt(ee)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(E){this._required=(0,s.Ig)(E)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(E=>{E||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(E){const M=(0,s.Ig)(E);M!=this.checked&&(this._checked=M,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(E){const M=(0,s.Ig)(E);M!==this.disabled&&(this._disabled=M,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(E){const M=E!=this._indeterminate;this._indeterminate=(0,s.Ig)(E),M&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(E){this.checked=!!E}registerOnChange(E){this._controlValueAccessorChangeFn=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(E){let M=this._currentCheckState,A=this._elementRef.nativeElement;if(M!==E&&(this._currentAnimationClass.length>0&&A.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(M,E),this._currentCheckState=E,this._currentAnimationClass.length>0)){A.classList.add(this._currentAnimationClass);const R=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{A.classList.remove(R)},1e3)})}}_emitChangeEvent(){const E=new me;E.source=this,E.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(E),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(E){var M;const A=null===(M=this._options)||void 0===M?void 0:M.clickAction;E.stopPropagation(),this.disabled||"noop"===A?!this.disabled&&"noop"===A&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==A&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(E,M){E?this._focusMonitor.focusVia(this._inputElement,E,M):this._inputElement.nativeElement.focus(M)}_onInteractionEvent(E){E.stopPropagation()}_getAnimationClassForCheckStateTransition(E,M){if("NoopAnimations"===this._animationMode)return"";let A="";switch(E){case 0:if(1===M)A="unchecked-checked";else{if(3!=M)return"";A="unchecked-indeterminate"}break;case 2:A=1===M?"unchecked-checked":"unchecked-indeterminate";break;case 1:A=2===M?"checked-unchecked":"checked-indeterminate";break;case 3:A=1===M?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${A}`}_syncIndeterminate(E){const M=this._inputElement;M&&(M.nativeElement.indeterminate=E)}}
1return V.\u0275fac=function(E){return new(E||V)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(L.tE),_.Y36(_.R0b),_.$8M("tabindex"),_.Y36(D.Qb,8),_.Y36(te,8))},V.\u0275cmp=_.Xpm({type:V,selectors:[["mat-checkbox"]],viewQuery:function(E,M){if(1&E&&(_.Gf(W,5),_.Gf(j.wG,5)),2&E){let A;_.iGM(A=_.CRH())&&(M._inputElement=A.first),_.iGM(A=_.CRH())&&(M.ripple=A.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(E,M){2&E&&(_.Ikx("id",M.id),_.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),_.ekj("mat-checkbox-indeterminate",M.indeterminate)("mat-checkbox-checked",M.checked)("mat-checkbox-disabled",M.disabled)("mat-checkbox-label-before","before"==M.labelPosition)("_mat-animation-noopable","NoopAnimations"===M._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[_._Bn([Re]),_.qOj],ngContentSelectors:$,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(E,M){if(1&E&&(_.F$t(),_.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),_.NdJ("change",function(R){return M._onInteractionEvent(R)})("click",function(R){return M._onInputClick(R)}),_.qZA(),_.TgZ(5,"span",5),_._UZ(6,"span",6),_.qZA(),_._UZ(7,"span",7),_.TgZ(8,"span",8),_.O4$(),_.TgZ(9,"svg",9),_._UZ(10,"path",10),_.qZA(),_.kcU(),_._UZ(11,"span",11),_.qZA()(),_.TgZ(12,"span",12,13),_.NdJ("cdkObserveContent",function(){return M._onLabelTextChange()}),_.TgZ(14,"span",14),_._uU(15,"\xa0"),_.qZA(),_.Hsn(16),_.qZA()()),2&E){const A=_.MAs(1),R=_.MAs(13);_.uIk("for",M.inputId),_.xp6(2),_.ekj("mat-checkbox-inner-container-no-side-margin",!R.textContent||!R.textContent.trim()),_.xp6(1),_.Q6J("id",M.inputId)("required",M.required)("checked",M.checked)("disabled",M.disabled)("tabIndex",M.tabIndex),_.uIk("value",M.value)("name",M.name)("aria-label",M.ariaLabel||null)("aria-labelledby",M.ariaLabelledby)("aria-checked",M._getAriaChecked())("aria-describedby",M.ariaDescribedby),_.xp6(2),_.Q6J("matRippleTrigger",A)("matRippleDisabled",M._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",_.VKq(19,G,"NoopAnimations"===M._animationMode?0:150))}},directives:[j.wG,ce.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;
1transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),V})(),de=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({}),V})(),re=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({imports:[[j.si,j.BQ,ce.Q8,de],j.BQ,de]}),V})()},2140:(Qt,Z,S)=>{"use strict";S.d(Z,{HS:()=>A,Hi:()=>Se,qn:()=>fe});
1var s=S(1159),_=S(5e3),y=S(508),j=S(3191),D=S(9808),L=S(6360),ce=S(8929),W=S(6787),G=S(2986),$=S(7625),te=S(1059),le=S(925),J=S(5664),Me=S(449),Re=S(3075),me=S(7322),Q=S(226);const P=["*"],Y=new _.OlP("MatChipRemove"),de=new _.OlP("MatChipAvatar"),re=new _.OlP("MatChipTrailingIcon");class V{constructor(ke){this._elementRef=ke}}const ne=(0,y.sb)((0,y.pj)((0,y.Kr)(V),"primary"),-1);let A=(()=>{class pe extends ne{constructor(ae,Ce,Ve,Be,ut,Ge,wt,Ot){super(ae),this._ngZone=Ce,this._changeDetectorRef=ut,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new ce.xQ,this._onBlur=new ce.xQ,this.selectionChange=new _.vpe,this.destroyed=new _.vpe,this.removed=new _.vpe,this._addHostClassName(),this._chipRippleTarget=Ge.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new y.IR(this,Ce,this._chipRippleTarget,Ve),this._chipRipple.setupTriggerEvents(ae),this.rippleConfig=Be||{},this._animationsDisabled="NoopAnimations"===wt,this.tabIndex=null!=Ot&&parseInt(Ot)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(ae){const Ce=(0,j.Ig)(ae);Ce!==this._selected&&(this._selected=Ce,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(ae){this._value=ae}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(ae){this._selectable=(0,j.Ig)(ae)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(ae){this._disabled=(0,j.Ig)(ae)}get removable(){return this._removable}set removable(ae){this._removable=(0,j.Ig)(ae)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const ae="mat-basic-chip",Ce=this._elementRef.nativeElement;Ce.hasAttribute(ae)||Ce.tagName.toLowerCase()===ae?Ce.classList.add(ae):Ce.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(ae=!1){return this._selected=!this.selected,this._dispatchSelectionChange(ae),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(ae){this.disabled&&ae.preventDefault()}_handleKeydown(ae){if(!this.disabled)switch(ae.keyCode){case s.yY:case s.ZH:this.remove(),ae.preventDefault();break;case s.L_:this.selectable&&this.toggleSelected(!0),ae.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(ae=!1){this.selectionChange.emit({source:this,isUserInput:ae,selected:this._selected})}}return pe.\u0275fac=function(ae){return new(ae||pe)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(le.t4),_.Y36(y.Y2,8),_.Y36(_.sBO),_.Y36(D.K0),_.Y36(L.Qb,8),_.$8M("tabindex"))},pe.\u0275dir=_.lG2({type:pe,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(ae,Ce,Ve){if(1&ae&&(_.Suo(Ve,de,5),_.Suo(Ve,re,5),_.Suo(Ve,Y,5)),2&ae){let Be;_.iGM(Be=_.CRH())&&(Ce.avatar=Be.first),_.iGM(Be=_.CRH())&&(Ce.trailingIcon=Be.first),_.iGM(Be=_.CRH())&&(Ce.removeIcon=Be.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(ae,Ce){1&ae&&_.NdJ("click",function(Be){return Ce._handleClick(Be)})("keydown",function(Be){return Ce._handleKeydown(Be)}
1)("focus",function(){return Ce.focus()})("blur",function(){return Ce._blur()}),2&ae&&(_.uIk("tabindex",Ce.disabled?null:Ce.tabIndex)("disabled",Ce.disabled||null)("aria-disabled",Ce.disabled.toString())("aria-selected",Ce.ariaSelected),_.ekj("mat-chip-selected",Ce.selected)("mat-chip-with-avatar",Ce.avatar)("mat-chip-with-trailing-icon",Ce.trailingIcon||Ce.removeIcon)("mat-chip-disabled",Ce.disabled)("_mat-animation-noopable",Ce._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[_.qOj]}),pe})();const ee=new _.OlP("mat-chips-default-options"),ge=(0,y.FD)(class{constructor(pe,ke,ae,Ce){this._defaultErrorStateMatcher=pe,this._parentForm=ke,this._parentFormGroup=ae,this.ngControl=Ce}});let Fe=0;class he{constructor(ke,ae){this.source=ke,this.value=ae}}let fe=(()=>{class pe extends ge{constructor(ae,Ce,Ve,Be,ut,Ge,wt){super(Ge,Be,ut,wt),this._elementRef=ae,this._changeDetectorRef=Ce,this._dir=Ve,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new ce.xQ,this._uid="mat-chip-list-"+Fe++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ot,Ft)=>Ot===Ft,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var ae,Ce;return this.multiple?(null===(ae=this._selectionModel)||void 0===ae?void 0:ae.selected)||[]:null===(Ce=this._selectionModel)||void 0===Ce?void 0:Ce.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(ae){this._multiple=(0,j.Ig)(ae),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(ae){this._compareWith=ae,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ae){this.writeValue(ae),this._value=ae}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var ae,Ce,Ve,Be;return null!==(Be=null!==(ae=this._required)&&void 0!==ae?ae:null===(Ve=null===(Ce=this.ngControl)||void 0===Ce?void 0:Ce.control)||void 0===Ve?void 0:Ve.hasValidator(Re.kI.required))&&void 0!==Be&&Be}set required(ae){this._required=(0,j.Ig)(ae),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(ae){this._placeholder=ae,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(ae){this._disabled=(0,j.Ig)(ae),this._syncChipsState()}get selectable(){return this._selectable}set selectable(ae){this._selectable=(0,j.Ig)(ae),this.chips&&this.chips.forEach(Ce=>Ce.chipListSelectable=this._selectable)}set tabIndex(ae){this._userTabIndex=ae,this._tabIndex=ae}get chipSelectionChanges(){return(0,W.T)(...this.chips.map(ae=>ae.selectionChange))}get chipFocusChanges(){return(0,W.T)(...this.chips.map(ae=>ae._onFocus))}get chipBlurChanges(){return(0,W.T)(...this.chips.map(ae=>ae._onBlur))}get chipRemoveChanges(){return(0,W.T)(...this.chips.map(ae=>ae.destroyed))}ngAfterContentInit(){this._keyManager=new J.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,$.R)(this._destroyed)).subscribe(ae=>this._keyManager.withHorizontalOrientation(ae)),this._keyManager.tabOut.pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,te.O)(null),(0,$.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Me.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(ae){this._chipInput=ae,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",ae.id)}setDescribedByIds(ae){this._ariaDescribedby=ae.join(" ")}writeValue(ae){this.chips&&this._setSelectionByValue(ae,!1)}registerOnChange(ae){this._onChange=ae}registerOnTouched(ae){this._onTouched=ae}setDisabledState(ae){this.disabled=ae,this.stateChanges.next()}onContainerClick(ae){this._originatesFromChip(ae)||this.focus()}focus(ae){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(ae),this.stateChanges.next()))}_focusInput(ae){this._chipInput&&this._chipInput.focus(ae)}_keydown(ae){const Ce=ae.target;Ce&&Ce.classList.contains("mat-chip")&&(this._keyManager.onKeydown(ae),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const ae=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(ae)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(ae){return ae>=0&&ae<this.chips.length}_setSelectionByValue(ae,Ce=!0){if(this._clearSelection(),this.chips.forEach(Ve=>Ve.deselect()),Array.isArray(ae))ae.forEach(Ve=>this._selectValue(Ve,Ce)),this._sortValues();else{const Ve=this._selectValue(ae,Ce);Ve&&Ce&&this._keyManager.setActiveItem(Ve)}}_selectValue(ae,Ce=!0){const Ve=this.chips.find(Be=>null!=Be.value&&this._compareWith(Be.value,ae));return Ve&&(Ce?Ve.selectViaInteraction():Ve.select(),this._selectionModel.select(Ve)),Ve}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(ae){this._selectionModel.clear(),this.chips.forEach(Ce=>{Ce!==ae&&Ce.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(ae=>{ae.selected&&this._selectionModel.select(ae)}),this.stateChanges.next())}_propagateChanges(ae){let Ce=null;Ce=Array.isArray(this.selected)?this.selected.map(Ve=>Ve.value):this.selected?this.selected.value:ae,this._value=Ce,this.change.emit(new he(this,Ce)),this.valueChange.emit(Ce),this._onChange(Ce),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(ae=>
1{ae.source.selected?this._selectionModel.select(ae.source):this._selectionModel.deselect(ae.source),this.multiple||this.chips.forEach(Ce=>{!this._selectionModel.isSelected(Ce)&&Ce.selected&&Ce.deselect()}),ae.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(ae=>{let Ce=this.chips.toArray().indexOf(ae.chip);this._isValidIndex(Ce)&&this._keyManager.updateActiveItem(Ce),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(ae=>{const Ce=ae.chip,Ve=this.chips.toArray().indexOf(ae.chip);this._isValidIndex(Ve)&&Ce._hasFocus&&(this._lastDestroyedChipIndex=Ve)})}_originatesFromChip(ae){let Ce=ae.target;for(;Ce&&Ce!==this._elementRef.nativeElement;){if(Ce.classList.contains("mat-chip"))return!0;Ce=Ce.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(ae=>ae._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(ae=>{ae._chipListDisabled=this._disabled,ae._chipListMultiple=this.multiple})}}return pe.\u0275fac=function(ae){return new(ae||pe)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(Q.Is,8),_.Y36(Re.F,8),_.Y36(Re.sg,8),_.Y36(y.rD),_.Y36(Re.a5,10))},pe.\u0275cmp=_.Xpm({type:pe,selectors:[["mat-chip-list"]],contentQueries:function(ae,Ce,Ve){if(1&ae&&_.Suo(Ve,A,5),2&ae){let Be;_.iGM(Be=_.CRH())&&(Ce.chips=Be)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(ae,Ce){1&ae&&_.NdJ("focus",function(){return Ce.focus()})("blur",function(){return Ce._blur()})("keydown",function(Be){return Ce._keydown(Be)}),2&ae&&(_.Ikx("id",Ce._uid),_.uIk("tabindex",Ce.disabled?null:Ce._tabIndex)("aria-describedby",Ce._ariaDescribedby||null)("aria-required",Ce.role?Ce.required:null)("aria-disabled",Ce.disabled.toString())("aria-invalid",Ce.errorState)("aria-multiselectable",Ce.multiple)("role",Ce.role)("aria-orientation",Ce.ariaOrientation),_.ekj("mat-chip-list-disabled",Ce.disabled)("mat-chip-list-invalid",Ce.errorState)("mat-chip-list-required",Ce.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[_._Bn([{provide:me.Eo,useExisting:pe}]),_.qOj],ngContentSelectors:P,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(ae,Ce){1&ae&&(_.F$t(),_.TgZ(0,"div",0),_.Hsn(1),_.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;
1cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),pe})(),Se=(()=>{class pe{}return pe.\u0275fac=function(ae){return new(ae||pe)},pe.\u0275mod=_.oAB({type:pe}),pe.\u0275inj=_.cJS({providers:[y.rD,{provide:ee,useValue:{separatorKeyCodes:[s.K5]}}],imports:[[y.BQ]]}),pe})()},508:(Qt,Z,S)=>{"use strict";S.d(Z,{yN:()=>N,mZ:()=>Y,_A:()=>fe,rD:()=>ut,sG:()=>Ie,Ad:()=>Fe,K7:()=>Pt,HF:()=>It,Y2:()=>qe,BQ:()=>V,X2:()=>Ge,uc:()=>Ft,XK:()=>Ve,Nv:()=>Dn,ey:()=>nn,Ng:()=>Rn,rN:()=>Zn,nP:()=>bt,us:()=>un,wG:()=>Pe,si:()=>tt,IR:()=>ln,CB:()=>Vn,jH:()=>Yt,pj:()=>R,Kr:()=>ee,Id:()=>A,FD:()=>K,dB:()=>ge,sb:()=>B,E0:()=>wt});var s=S(5e3),_=S(226),j=S(9808),D=S(925),L=S(5664),ce=S(3191),W=S(8929),G=S(6498),$=S(1059),te=S(6360),le=S(1159);const J=["*",[["mat-option"],["ng-container"]]],Me=["*","mat-option, ng-container"];function Re(Mt,kt){if(1&Mt&&s._UZ(0,"mat-pseudo-checkbox",4),2&Mt){const We=s.oxw();s.Q6J("state",We.selected?"checked":"unchecked")("disabled",We.disabled)}}function me(Mt,kt){if(1&Mt&&(s.TgZ(0,"span",5),s._uU(1),s.qZA()),2&Mt){const We=s.oxw();s.xp6(1),s.hij("(",We.group.label,")")}}const Q=["*"];let N=(()=>{class Mt{}return Mt.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Mt.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Mt.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Mt.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Mt})(),Y=(()=>{class Mt{}return Mt.COMPLEX="375ms",Mt.ENTERING="225ms",Mt.EXITING="195ms",Mt})();const re=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function de(){return!0}});let V=(()=>{class Mt{constructor(We,Ue,Qe){this._sanityChecks=Ue,this._document=Qe,this._hasDoneGlobalChecks=!1,We._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(We){return!(0,D.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[We])}}return Mt.\u0275fac=function(We){return new(We||Mt)(s.LFG(L.qm),s.LFG(re,8),s.LFG(j.K0))},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({imports:[[_.vT],_.vT]}),Mt})();function A(Mt){return class extends Mt{constructor(...kt){super(...kt),this._disabled=!1}get disabled(){return this._disabled}set disabled(kt){this._disabled=(0,ce.Ig)(kt)}}}function R(Mt,kt){return class extends Mt{constructor(...We){super(...We),this.defaultColor=kt,this.color=kt}get color(){return this._color}set color(We){const Ue=We||this.defaultColor;Ue!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Ue&&this._elementRef.nativeElement.classList.add(`mat-${Ue}`),this._color=Ue)}}}function ee(Mt){return class extends Mt{constructor(...kt){super(...kt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(kt){this._disableRipple=(0,ce.Ig)(kt)}}}function B(Mt,kt=0){return class extends Mt{constructor(...We){super(...We),this._tabIndex=kt,this.defaultTabIndex=kt}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(We){this._tabIndex=null!=We?(0,ce.su)(We):this.defaultTabIndex}}}function K(Mt){return class extends Mt{constructor(...kt){super(...kt),this.stateChanges=new W.xQ,this.errorState=!1}updateErrorState(){const kt=this.errorState,Lt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Lt!==kt&&(this.errorState=Lt,this.stateChanges.next())}}}function ge(Mt){return class extends Mt{constructor(...kt){super(...kt),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new G.y(We=>
1{this._isInitialized?this._notifySubscriber(We):this._pendingSubscribers.push(We)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(kt){kt.next(),kt.complete()}}}const Fe=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function he(){return(0,s.f3M)(s.soG)}});class fe{constructor(){this._localeChanges=new W.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(kt){return this.isDateInstance(kt)&&this.isValid(kt)?kt:null}deserialize(kt){return null==kt||this.isDateInstance(kt)&&this.isValid(kt)?kt:this.invalid()}setLocale(kt){this.locale=kt,this._localeChanges.next()}compareDate(kt,We){return this.getYear(kt)-this.getYear(We)||this.getMonth(kt)-this.getMonth(We)||this.getDate(kt)-this.getDate(We)}sameDate(kt,We){if(kt&&We){let Ue=this.isValid(kt),Qe=this.isValid(We);return Ue&&Qe?!this.compareDate(kt,We):Ue==Qe}return kt==We}clampDate(kt,We,Ue){return We&&this.compareDate(kt,We)<0?We:Ue&&this.compareDate(kt,Ue)>0?Ue:kt}}const Ie=new s.OlP("mat-date-formats"),Se=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pe(Mt,kt){const We=Array(Mt);for(let Ue=0;Ue<Mt;Ue++)We[Ue]=kt(Ue);return We}let ke=(()=>{class Mt extends fe{constructor(We,Ue){super(),this.useUtcForDisplay=!1,super.setLocale(We)}getYear(We){return We.getFullYear()}getMonth(We){return We.getMonth()}getDate(We){return We.getDate()}getDayOfWeek(We){return We.getDay()}getMonthNames(We){const Ue=new Intl.DateTimeFormat(this.locale,{month:We,timeZone:"utc"});return pe(12,Qe=>this._format(Ue,new Date(2017,Qe,1)))}getDateNames(){const We=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pe(31,Ue=>this._format(We,new Date(2017,0,Ue+1)))}getDayOfWeekNames(We){const Ue=new Intl.DateTimeFormat(this.locale,{weekday:We,timeZone:"utc"});return pe(7,Qe=>this._format(Ue,new Date(2017,0,Qe+1)))}getYearName(We){const Ue=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ue,We)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(We){return this.getDate(this._createDateWithOverflow(this.getYear(We),this.getMonth(We)+1,0))}clone(We){return new Date(We.getTime())}createDate(We,Ue,Qe){let Lt=this._createDateWithOverflow(We,Ue,Qe);return Lt.getMonth(),Lt}today(){return new Date}parse(We){return"number"==typeof We?new Date(We):We?new Date(Date.parse(We)):null}format(We,Ue){if(!this.isValid(We))throw Error("NativeDateAdapter: Cannot format invalid date.");const Qe=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Ue),{timeZone:"utc"}));return this._format(Qe,We)}addCalendarYears(We,Ue){return this.addCalendarMonths(We,12*Ue)}addCalendarMonths(We,Ue){let Qe=this._createDateWithOverflow(this.getYear(We),this.getMonth(We)+Ue,this.getDate(We));return this.getMonth(Qe)!=((this.getMonth(We)+Ue)%12+12)%12&&(Qe=this._createDateWithOverflow(this.getYear(Qe),this.getMonth(Qe),0)),Qe}addCalendarDays(We,Ue){return this._createDateWithOverflow(this.getYear(We),this.getMonth(We),this.getDate(We)+Ue)}toIso8601(We){return[We.getUTCFullYear(),this._2digit(We.getUTCMonth()+1),this._2digit(We.getUTCDate())].join("-")}deserialize(We){if("string"==typeof We){if(!We)return null;if(Se.test(We)){let Ue=new Date(We);if(this.isValid(Ue))return Ue}}return super.deserialize(We)}isDateInstance(We){return We instanceof Date}isValid(We){return!isNaN(We.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(We,Ue,Qe){const Lt=new Date;return Lt.setFullYear(We,Ue,Qe),Lt.setHours(0,0,0,0),Lt}_2digit(We){return("00"+We).slice(-2)}_format(We,Ue){const Qe=new Date;return Qe.setUTCFullYear(Ue.getFullYear(),Ue.getMonth(),Ue.getDate()),Qe.setUTCHours(Ue.getHours(),Ue.getMinutes(),Ue.getSeconds(),Ue.getMilliseconds()),We.format(Qe)}}return Mt.\u0275fac=function(We){return new(We||Mt)(s.LFG(Fe,8),s.LFG(D.t4))},Mt.\u0275prov=s.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})();const ae={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 Ce=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({providers:[{provide:fe,useClass:ke}]}),Mt})(),Ve=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({providers:[{provide:Ie,useValue:ae}],imports:[[Ce]]}),Mt})(),ut=(()=>
1{class Mt{isErrorState(We,Ue){return!!(We&&We.invalid&&(We.touched||Ue&&Ue.submitted))}}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275prov=s.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Ge=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275dir=s.lG2({type:Mt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Mt})();function wt(Mt,kt,We="mat"){Mt.changes.pipe((0,$.O)(Mt)).subscribe(({length:Ue})=>{Ot(kt,`${We}-2-line`,!1),Ot(kt,`${We}-3-line`,!1),Ot(kt,`${We}-multi-line`,!1),2===Ue||3===Ue?Ot(kt,`${We}-${Ue}-line`,!0):Ue>3&&Ot(kt,`${We}-multi-line`,!0)})}function Ot(Mt,kt,We){Mt.nativeElement.classList.toggle(kt,We)}let Ft=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({imports:[[V],V]}),Mt})();class ht{constructor(kt,We,Ue){this._renderer=kt,this.element=We,this.config=Ue,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ht={enterDuration:225,exitDuration:150},cn=(0,D.i$)({passive:!0}),hn=["mousedown","touchstart"],vn=["mouseup","mouseleave","touchend","touchcancel"];class ln{constructor(kt,We,Ue,Qe){this._target=kt,this._ngZone=We,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Qe.isBrowser&&(this._containerElement=(0,ce.fI)(Ue))}fadeInRipple(kt,We,Ue={}){const Qe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Lt=Object.assign(Object.assign({},Ht),Ue.animation);Ue.centered&&(kt=Qe.left+Qe.width/2,We=Qe.top+Qe.height/2);const xt=Ue.radius||function Xe(Mt,kt,We){const Ue=Math.max(Math.abs(Mt-We.left),Math.abs(Mt-We.right)),Qe=Math.max(Math.abs(kt-We.top),Math.abs(kt-We.bottom));return Math.sqrt(Ue*Ue+Qe*Qe)}(kt,We,Qe),Gt=kt-Qe.left,Ke=We-Qe.top,Ne=Lt.enterDuration,Ae=document.createElement("div");Ae.classList.add("mat-ripple-element"),Ae.style.left=Gt-xt+"px",Ae.style.top=Ke-xt+"px",Ae.style.height=2*xt+"px",Ae.style.width=2*xt+"px",null!=Ue.color&&(Ae.style.backgroundColor=Ue.color),Ae.style.transitionDuration=`${Ne}ms`,this._containerElement.appendChild(Ae),function Jt(Mt){window.getComputedStyle(Mt).getPropertyValue("opacity")}(Ae),Ae.style.transform="scale(1)";const Oe=new ht(this,Ae,Ue);return Oe.state=0,this._activeRipples.add(Oe),Ue.persistent||(this._mostRecentTransientRipple=Oe),this._runTimeoutOutsideZone(()=>{const Ye=Oe===this._mostRecentTransientRipple;Oe.state=1,!Ue.persistent&&(!Ye||!this._isPointerDown)&&Oe.fadeOut()},Ne),Oe}fadeOutRipple(kt){const We=this._activeRipples.delete(kt);if(kt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!We)return;const Ue=kt.element,Qe=Object.assign(Object.assign({},Ht),kt.config.animation);Ue.style.transitionDuration=`${Qe.exitDuration}ms`,Ue.style.opacity="0",kt.state=2,this._runTimeoutOutsideZone(()=>{kt.state=3,Ue.remove()},Qe.exitDuration)}fadeOutAll(){this._activeRipples.forEach(kt=>kt.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(kt=>{kt.config.persistent||kt.fadeOut()})}setupTriggerEvents(kt){const We=(0,ce.fI)(kt);!We||We===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=We,this._registerEvents(hn))}handleEvent(kt){"mousedown"===kt.type?this._onMousedown(kt):"touchstart"===kt.type?this._onTouchStart(kt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vn),this._pointerUpEventsRegistered=!0)}_onMousedown(kt){const We=(0,L.X6)(kt),Ue=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!We&&!Ue&&(this._isPointerDown=!0,this.fadeInRipple(kt.clientX,kt.clientY,this._target.rippleConfig))}_onTouchStart(kt){if(!this._target.rippleDisabled&&!(0,L.yG)(kt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const We=kt.changedTouches;for(let Ue=0;Ue<We.length;Ue++)this.fadeInRipple(We[Ue].clientX,We[Ue].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(kt=>{!kt.config.persistent&&(1===kt.state||kt.config.terminateOnPointerUp&&0===kt.state)&&kt.fadeOut()}))}_runTimeoutOutsideZone(kt,We=0){this._ngZone.runOutsideAngular(()=>setTimeout(kt,We))}_registerEvents(kt){this._ngZone.runOutsideAngular(()=>{kt.forEach(We=>{this._triggerElement.addEventListener(We,this,cn)})})}_removeTriggerEvents(){this._triggerElement&&(hn.forEach(kt=>{this._triggerElement.removeEventListener(kt,this,cn)}
1),this._pointerUpEventsRegistered&&vn.forEach(kt=>{this._triggerElement.removeEventListener(kt,this,cn)}))}}const qe=new s.OlP("mat-ripple-global-options");let Pe=(()=>{class Mt{constructor(We,Ue,Qe,Lt,xt){this._elementRef=We,this._animationMode=xt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Lt||{},this._rippleRenderer=new ln(this,Ue,We,Qe)}get disabled(){return this._disabled}set disabled(We){We&&this.fadeOutAllNonPersistent(),this._disabled=We,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(We){this._trigger=We,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(We,Ue=0,Qe){return"number"==typeof We?this._rippleRenderer.fadeInRipple(We,Ue,Object.assign(Object.assign({},this.rippleConfig),Qe)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),We))}}return Mt.\u0275fac=function(We){return new(We||Mt)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(D.t4),s.Y36(qe,8),s.Y36(te.Qb,8))},Mt.\u0275dir=s.lG2({type:Mt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(We,Ue){2&We&&s.ekj("mat-ripple-unbounded",Ue.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"]}),Mt})(),tt=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({imports:[[V],V]}),Mt})(),bt=(()=>{class Mt{constructor(We){this._animationMode=We,this.state="unchecked",this.disabled=!1}}return Mt.\u0275fac=function(We){return new(We||Mt)(s.Y36(te.Qb,8))},Mt.\u0275cmp=s.Xpm({type:Mt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(We,Ue){2&We&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ue.state)("mat-pseudo-checkbox-checked","checked"===Ue.state)("mat-pseudo-checkbox-disabled",Ue.disabled)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(We,Ue){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Mt})(),un=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({imports:[[V]]}),Mt})();const It=new s.OlP("MAT_OPTION_PARENT_COMPONENT"),Et=A(class{});let Rt=0,Wt=(()=>
1{class Mt extends Et{constructor(We){var Ue;super(),this._labelId="mat-optgroup-label-"+Rt++,this._inert=null!==(Ue=null==We?void 0:We.inertGroups)&&void 0!==Ue&&Ue}}return Mt.\u0275fac=function(We){return new(We||Mt)(s.Y36(It,8))},Mt.\u0275dir=s.lG2({type:Mt,inputs:{label:"label"},features:[s.qOj]}),Mt})();const Pt=new s.OlP("MatOptgroup");let Dn=(()=>{class Mt extends Wt{}return Mt.\u0275fac=function(){let kt;return function(Ue){return(kt||(kt=s.n5z(Mt)))(Ue||Mt)}}(),Mt.\u0275cmp=s.Xpm({type:Mt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(We,Ue){2&We&&(s.uIk("role",Ue._inert?null:"group")("aria-disabled",Ue._inert?null:Ue.disabled.toString())("aria-labelledby",Ue._inert?null:Ue._labelId),s.ekj("mat-optgroup-disabled",Ue.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[s._Bn([{provide:Pt,useExisting:Mt}]),s.qOj],ngContentSelectors:Me,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(We,Ue){1&We&&(s.F$t(J),s.TgZ(0,"span",0),s._uU(1),s.Hsn(2),s.qZA(),s.Hsn(3,1)),2&We&&(s.Q6J("id",Ue._labelId),s.xp6(1),s.hij("",Ue.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Mt})(),Gn=0;class Zn{constructor(kt,We=!1){this.source=kt,this.isUserInput=We}}let zn=(()=>{class Mt{constructor(We,Ue,Qe,Lt){this._element=We,this._changeDetectorRef=Ue,this._parent=Qe,this.group=Lt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Gn++,this.onSelectionChange=new s.vpe,this._stateChanges=new W.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(We){this._disabled=(0,ce.Ig)(We)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(We,Ue){const Qe=this._getHostElement();"function"==typeof Qe.focus&&Qe.focus(Ue)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(We){(We.keyCode===le.K5||We.keyCode===le.L_)&&!(0,le.Vb)(We)&&(this._selectViaInteraction(),We.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const We=this.viewValue;We!==this._mostRecentViewValue&&(this._mostRecentViewValue=We,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(We=!1){this.onSelectionChange.emit(new Zn(this,We))}}return Mt.\u0275fac=function(We){s.$Z()},Mt.\u0275dir=s.lG2({type:Mt,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Mt})(),nn=(()=>{class Mt extends zn{constructor(We,Ue,Qe,Lt){super(We,Ue,Qe,Lt)}}return Mt.\u0275fac=function(We){return new(We||Mt)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(It,8),s.Y36(Pt,8))},Mt.\u0275cmp=s.Xpm({type:Mt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(We,Ue){1&We&&s.NdJ("
1click",function(){return Ue._selectViaInteraction()})("keydown",function(Lt){return Ue._handleKeydown(Lt)}),2&We&&(s.Ikx("id",Ue.id),s.uIk("tabindex",Ue._getTabIndex())("aria-selected",Ue._getAriaSelected())("aria-disabled",Ue.disabled.toString()),s.ekj("mat-selected",Ue.selected)("mat-option-multiple",Ue.multiple)("mat-active",Ue.active)("mat-option-disabled",Ue.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:Q,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(We,Ue){1&We&&(s.F$t(),s.YNc(0,Re,1,2,"mat-pseudo-checkbox",0),s.TgZ(1,"span",1),s.Hsn(2),s.qZA(),s.YNc(3,me,2,1,"span",2),s._UZ(4,"div",3)),2&We&&(s.Q6J("ngIf",Ue.multiple),s.xp6(3),s.Q6J("ngIf",Ue.group&&Ue.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",Ue._getHostElement())("matRippleDisabled",Ue.disabled||Ue.disableRipple))},directives:[bt,j.O5,Pe],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Mt})();function Vn(Mt,kt,We){if(We.length){let Ue=kt.toArray(),Qe=We.toArray(),Lt=0;for(let xt=0;xt<Mt+1;xt++)Ue[xt].group&&Ue[xt].group===Qe[Lt]&&Lt++;return Lt}return 0}function Yt(Mt,kt,We,Ue){return Mt<We?Mt:Mt+kt>We+Ue?Math.max(0,Mt-Ue+kt):We}let Rn=(()=>{class Mt{}return Mt.\u0275fac=function(We){return new(We||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({imports:[[tt,j.ez,V,un]]}),Mt})()},6856:(Qt,Z,S)=>{"use strict";S.d(Z,{By:()=>fi,FA:()=>ue,Mq:()=>Ke,_g:()=>gn,hl:()=>Tt,nW:()=>On,wx:()=>pn,zY:()=>mi});var s=S(5664),_=S(2845),y=S(7429),j=S(9808),D=S(5e3),L=S(7423),ce=S(9071),W=S(508),G=S(8929),$=S(2654),te=S(6787),le=S(1086),J=S(1159),Me=S(2986),Re=S(1059),me=S(2198),Q=S(226),P=S(3191),N=S(925),Y=S(1777),de=S(3075),re=S(7322),V=S(8833);const ne=["mat-calendar-body",""];function E(ve,at){if(1&ve&&(D.TgZ(0,"tr",2)(1,"td",3),D._uU(2),D.qZA()()),2&ve){const q=D.oxw();D.xp6(1),D.Udp("padding-top",q._cellPadding)("padding-bottom",q._cellPadding),D.uIk("colspan",q.numCols),D.xp6(1),D.hij(" ",q.label," ")}}function M(ve,at){if(1&ve&&(D.TgZ(0,"td",3),D._uU(1),D.qZA()),2&ve){const q=D.oxw(2);D.Udp("padding-top",q._cellPadding)("padding-bottom",q._cellPadding),D.uIk("colspan",q._firstRowOffset),D.xp6(1),D.hij(" ",q._firstRowOffset>=q.labelMinRequiredCells?q.label:""," ")}}function A(ve,at){if(1&ve){const q=D.EpF();D.TgZ(0,"td",7)(1,"button",8),D.NdJ("click",function(_t){const Un=D.CHM(q).$implicit;return D.oxw(2)._cellClicked(Un,_t)}),D.TgZ(2,"div",9),D._uU(3),D.qZA(),D._UZ(4,"div",10),D.qZA()()}if(2&ve){const q=at.$implicit,xe=at.index,_t=D.oxw().index,Xt=D.oxw();D.Udp("width",Xt._cellWidth)("padding-top",Xt._cellPadding)("padding-bottom",Xt._cellPadding),D.uIk("data-mat-row",_t)("data-mat-col",xe),D.xp6(1),D.ekj("mat-calendar-body-disabled",!q.enabled)("mat-calendar-body-active",Xt._isActiveCell(_t,xe))("mat-calendar-body-range-start",Xt._isRangeStart(q.compareValue))("mat-calendar-body-range-end",Xt._isRangeEnd(q.compareValue))("mat-calendar-body-in-range",Xt._isInRange(q.compareValue))("mat-calendar-body-comparison-bridge-start",Xt._isComparisonBridgeStart(q.compareValue,_t,xe))("mat-calendar-body-comparison-bridge-end",Xt._isComparisonBridgeEnd(q.compareValue,_t,xe))("mat-calendar-body-comparison-start",Xt._isComparisonStart(q.compareValue))("mat-calendar-body-comparison-e
1nd",Xt._isComparisonEnd(q.compareValue))("mat-calendar-body-in-comparison-range",Xt._isInComparisonRange(q.compareValue))("mat-calendar-body-preview-start",Xt._isPreviewStart(q.compareValue))("mat-calendar-body-preview-end",Xt._isPreviewEnd(q.compareValue))("mat-calendar-body-in-preview",Xt._isInPreview(q.compareValue)),D.Q6J("ngClass",q.cssClasses)("tabindex",Xt._isActiveCell(_t,xe)?0:-1),D.uIk("aria-label",q.ariaLabel)("aria-disabled",!q.enabled||null)("aria-pressed",Xt._isSelected(q.compareValue))("aria-current",Xt.todayValue===q.compareValue?"date":null),D.xp6(1),D.ekj("mat-calendar-body-selected",Xt._isSelected(q.compareValue))("mat-calendar-body-comparison-identical",Xt._isComparisonIdentical(q.compareValue))("mat-calendar-body-today",Xt.todayValue===q.compareValue),D.xp6(1),D.hij(" ",q.displayValue," ")}}function R(ve,at){if(1&ve&&(D.TgZ(0,"tr",4),D.YNc(1,M,2,6,"td",5),D.YNc(2,A,5,47,"td",6),D.qZA()),2&ve){const q=at.$implicit,xe=at.index,_t=D.oxw();D.xp6(1),D.Q6J("ngIf",0===xe&&_t._firstRowOffset),D.xp6(1),D.Q6J("ngForOf",q)}}function ee(ve,at){if(1&ve&&(D.TgZ(0,"th",5)(1,"span",6),D._uU(2),D.qZA(),D.TgZ(3,"span",7),D._uU(4),D.qZA()()),2&ve){const q=at.$implicit;D.xp6(2),D.Oqu(q.long),D.xp6(2),D.Oqu(q.narrow)}}const B=["*"];function K(ve,at){}function ge(ve,at){if(1&ve){const q=D.EpF();D.TgZ(0,"mat-month-view",5),D.NdJ("activeDateChange",function(_t){return D.CHM(q),D.oxw().activeDate=_t})("_userSelection",function(_t){return D.CHM(q),D.oxw()._dateSelected(_t)}),D.qZA()}if(2&ve){const q=D.oxw();D.Q6J("activeDate",q.activeDate)("selected",q.selected)("dateFilter",q.dateFilter)("maxDate",q.maxDate)("minDate",q.minDate)("dateClass",q.dateClass)("comparisonStart",q.comparisonStart)("comparisonEnd",q.comparisonEnd)}}function Fe(ve,at){if(1&ve){const q=D.EpF();D.TgZ(0,"mat-year-view",6),D.NdJ("activeDateChange",function(_t){return D.CHM(q),D.oxw().activeDate=_t})("monthSelected",function(_t){return D.CHM(q),D.oxw()._monthSelectedInYearView(_t)})("selectedChange",function(_t){return D.CHM(q),D.oxw()._goToDateInView(_t,"month")}),D.qZA()}if(2&ve){const q=D.oxw();D.Q6J("activeDate",q.activeDate)("selected",q.selected)("dateFilter",q.dateFilter)("maxDate",q.maxDate)("minDate",q.minDate)("dateClass",q.dateClass)}}function he(ve,at){if(1&ve){const q=D.EpF();D.TgZ(0,"mat-multi-year-view",7),D.NdJ("activeDateChange",function(_t){return D.CHM(q),D.oxw().activeDate=_t})("yearSelected",function(_t){return D.CHM(q),D.oxw()._yearSelectedInMultiYearView(_t)})("selectedChange",function(_t){return D.CHM(q),D.oxw()._goToDateInView(_t,"year")}),D.qZA()}if(2&ve){const q=D.oxw();D.Q6J("activeDate",q.activeDate)("selected",q.selected)("dateFilter",q.dateFilter)("maxDate",q.maxDate)("minDate",q.minDate)("dateClass",q.dateClass)}}function fe(ve,at){}const Ie=["button"];function Se(ve,at){1&ve&&(D.O4$(),D.TgZ(0,"svg",3),D._UZ(1,"path",4),D.qZA())}const pe=[[["","matDatepickerToggleIcon",""]]],ke=["[matDatepickerToggleIcon]"],ae=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Ce=["input[matStartDate]","input[matEndDate]"];class ut{constructor(at,q,xe,_t,Xt={},Un=at,Qn){this.value=at,this.displayValue=q,this.ariaLabel=xe,this.enabled=_t,this.cssClasses=Xt,this.compareValue=Un,this.rawValue=Qn}}let Ge=(()=>{class ve{constructor(q,xe){this._elementRef=q,this._ngZone=xe,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new D.vpe,this.previewChange=new D.vpe,this._enterHandler=_t=>{if(this._skipNextFocus&&"focus"===_t.type)this._skipNextFocus=!1;else if(_t.target&&this.isRange){const Xt=this._getCellFromElement(_t.target);Xt&&this._ngZone.run(()=>this.previewChange.emit({value:Xt.enabled?Xt:null,event:_t}))}},this._leaveHandler=_t=>{null!==this.previewEnd&&this.isRange&&_t.target&&this._getCellFromElement(_t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:_t}))},xe.runOutsideAngular(()=>{const _t=q.nativeElement;_t.addEventListener("mouseenter",this._enterHandler,!0),_t.addEventListener("focus",this._enterHandler,!0),_t.addEventListener("mouseleave",this._leaveHandler,!0),_t.addEventListener("blur",this._leaveHandler,!0)})}
1_cellClicked(q,xe){q.enabled&&this.selectedValueChange.emit({value:q.value,event:xe})}_isSelected(q){return this.startValue===q||this.endValue===q}ngOnChanges(q){const xe=q.numCols,{rows:_t,numCols:Xt}=this;(q.rows||xe)&&(this._firstRowOffset=_t&&_t.length&&_t[0].length?Xt-_t[0].length:0),(q.cellAspectRatio||xe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Xt+"%"),(xe||!this._cellWidth)&&(this._cellWidth=100/Xt+"%")}ngOnDestroy(){const q=this._elementRef.nativeElement;q.removeEventListener("mouseenter",this._enterHandler,!0),q.removeEventListener("focus",this._enterHandler,!0),q.removeEventListener("mouseleave",this._leaveHandler,!0),q.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(q,xe){let _t=q*this.numCols+xe;return q&&(_t-=this._firstRowOffset),_t==this.activeCell}_focusActiveCell(q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Me.q)(1)).subscribe(()=>{setTimeout(()=>{const xe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");xe&&(q||(this._skipNextFocus=!0),xe.focus())})})})}_isRangeStart(q){return Ot(q,this.startValue,this.endValue)}_isRangeEnd(q){return Ft(q,this.startValue,this.endValue)}_isInRange(q){return ht(q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(q){return Ot(q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(q,xe,_t){if(!this._isComparisonStart(q)||this._isRangeStart(q)||!this._isInRange(q))return!1;let Xt=this.rows[xe][_t-1];if(!Xt){const Un=this.rows[xe-1];Xt=Un&&Un[Un.length-1]}return Xt&&!this._isRangeEnd(Xt.compareValue)}_isComparisonBridgeEnd(q,xe,_t){if(!this._isComparisonEnd(q)||this._isRangeEnd(q)||!this._isInRange(q))return!1;let Xt=this.rows[xe][_t+1];if(!Xt){const Un=this.rows[xe+1];Xt=Un&&Un[0]}return Xt&&!this._isRangeStart(Xt.compareValue)}_isComparisonEnd(q){return Ft(q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(q){return ht(q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(q){return this.comparisonStart===this.comparisonEnd&&q===this.comparisonStart}_isPreviewStart(q){return Ot(q,this.previewStart,this.previewEnd)}_isPreviewEnd(q){return Ft(q,this.previewStart,this.previewEnd)}_isInPreview(q){return ht(q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(q){let xe;if(wt(q)?xe=q:wt(q.parentNode)&&(xe=q.parentNode),xe){const _t=xe.getAttribute("data-mat-row"),Xt=xe.getAttribute("data-mat-col");if(_t&&Xt)return this.rows[parseInt(_t)][parseInt(Xt)]}return null}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.SBq),D.Y36(D.R0b))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[D.TTD],attrs:ne,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(q,xe){1&q&&(D.YNc(0,E,3,6,"tr",0),D.YNc(1,R,3,2,"tr",1)),2&q&&(D.Q6J("ngIf",xe._firstRowOffset<xe.labelMinRequiredCells),D.xp6(1),D.Q6J("ngForOf",xe.rows))},directives:[j.O5,j.sg,j.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}
1.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}
1.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),ve})();function wt(ve){return"TD"===ve.nodeName}function Ot(ve,at,q){return null!==q&&at!==q&&ve<q&&ve===at}function Ft(ve,at,q){return null!==at&&at!==q&&ve>=at&&ve===q}function ht(ve,at,q,xe){return xe&&null!==at&&null!==q&&at!==q&&ve>=at&&ve<=q}class Ht{constructor(at,q){this.start=at,this.end=q}}let jt=(()=>{class ve{constructor(q,xe){this.selection=q,this._adapter=xe,this._selectionChanged=new G.xQ,this.selectionChanged=this._selectionChanged,this.selection=q}updateSelection(q,xe){const _t=this.selection;this.selection=q,this._selectionChanged.next({selection:q,source:xe,oldValue:_t})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(q){return this._adapter.isDateInstance(q)&&this._adapter.isValid(q)}}return ve.\u0275fac=function(q){D.$Z()},ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),cn=(()=>{class ve extends jt{constructor(q){super(null,q)}add(q){super.updateSelection(q,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const q=new ve(this._adapter);return q.updateSelection(this.selection,this),q}}return ve.\u0275fac=function(q){return new(q||ve)(D.LFG(W._A))},ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),hn=(()=>{class ve extends jt{constructor(q){super(new Ht(null,null),q)}add(q){let{start:xe,end:_t}=this.selection;null==xe?xe=q:null==_t?_t=q:(xe=q,_t=null),super.updateSelection(new Ht(xe,_t),this)}isValid(){const{start:q,end:xe}=this.selection;return null==q&&null==xe||(null!=q&&null!=xe?this._isValidDateInstance(q)&&this._isValidDateInstance(xe)&&this._adapter.compareDate(q,xe)<=0:(null==q||this._isValidDateInstance(q))&&(null==xe||this._isValidDateInstance(xe)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const q=new ve(this._adapter);return q.updateSelection(this.selection,this),q}}return ve.\u0275fac=function(q){return new(q||ve)(D.LFG(W._A))},ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac}),ve})();const ln={provide:jt,deps:[[new D.FiY,new D.tp0,jt],W._A],useFactory:function vn(ve,at){return ve||new cn(at)}},Xe={provide:jt,deps:[[new D.FiY,new D.tp0,jt],W._A],useFactory:function Jt(ve,at){return ve||new hn(at)}},qe=new D.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Pe=(()=>{class ve{constructor(q){this._dateAdapter=q}selectionFinished(q,xe){let{start:_t,end:Xt}=xe;return null==_t?_t=q:null==Xt&&q&&this._dateAdapter.compareDate(q,_t)>=0?Xt=q:(_t=q,Xt=null),new Ht(_t,Xt)}createPreview(q,xe){let _t=null,Xt=null;return xe.start&&!xe.end&&q&&(_t=xe.start,Xt=q),new Ht(_t,Xt)}}return ve.\u0275fac=function(q){return new(q||ve)(D.LFG(W._A))},ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac}),ve})();const bt={provide:qe,deps:[[new D.FiY,new D.tp0,qe],W._A],useFactory:function tt(ve,at){return ve||new Pe(at)}};let It=(()=>{class ve{constructor(q,xe,_t,Xt,Un){this._changeDetectorRef=q,this._dateFormats=xe,this._dateAdapter=_t,this._dir=Xt,this._rangeStrategy=Un,this._rerenderSubscription=$.w.EMPTY,this.selectedChange=new D.vpe,this._userSelection=new D.vpe,this.activeDateChange=new D.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(q){const xe=this._activeDate,_t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(_t,this.minDate,this.maxDate),this._hasSameMonthAndYear(xe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(q){this._selected=q instanceof Ht?q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get maxDate(){return this._maxDate}set maxDate(q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Re.O)(null)).subscribe(()=>this._init())}ngOnChanges(q){const xe=q.comparisonStart||q.comparisonEnd;xe&&!xe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(q){const xe=q.value,_t=this._dateAdapter.getYear(this.activeDate),Xt=this._dateAdapter.getMonth(this.activeDate),Un=this._dateAdapter.createDate(_t,Xt,xe);let Qn,vi;this._selected instanceof Ht?(Qn=this._getDateInCurrentMonth(this._selected.start),vi=this._getDateInCurrentMonth(this._selected.end)):Qn=vi=this._getDateInCurrentMonth(this._selected),(Qn!==xe||vi!==xe)&&this.selectedChange.emit(Un),this._userSelection.emit({value:Un,event:q.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(q){const xe=this._activeDate,_t=this._isRtl();switch(q.keyCode){case J.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,_t?1:-1);break;case J.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,_t?-1:1);break;case J.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case J.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case J.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case J.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case J.Ku:this.activeDate=q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case J.VM:this.activeDate=q.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case J.K5:case J.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&q.preventDefault());case J.hY:return void(null!=this._previewEnd&&!(0,J.Vb)(q)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:q}),q.preventDefault(),q.stopPropagation()));default:return}this._dateAdapter.compareDate(xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),q.preventDefault()}_handleCalendarBodyKeyup(q){(q.keyCode===J.L_||q.keyCode===J.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:q}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(q)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeek
1days(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(q){this._matCalendarBody._focusActiveCell(q)}_previewChanged({event:q,value:xe}){if(this._rangeStrategy){const Xt=this._rangeStrategy.createPreview(xe?xe.rawValue:null,this.selected,q);this._previewStart=this._getCellCompareValue(Xt.start),this._previewEnd=this._getCellCompareValue(Xt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const q=this._dateAdapter.getFirstDayOfWeek(),xe=this._dateAdapter.getDayOfWeekNames("narrow");let Xt=this._dateAdapter.getDayOfWeekNames("long").map((Un,Qn)=>({long:Un,narrow:xe[Qn]}));this._weekdays=Xt.slice(q).concat(Xt.slice(0,q))}_createWeekCells(){const q=this._dateAdapter.getNumDaysInMonth(this.activeDate),xe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let _t=0,Xt=this._firstWeekOffset;_t<q;_t++,Xt++){7==Xt&&(this._weeks.push([]),Xt=0);const Un=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),_t+1),Qn=this._shouldEnableDate(Un),vi=this._dateAdapter.format(Un,this._dateFormats.display.dateA11yLabel),li=this.dateClass?this.dateClass(Un,"month"):void 0;this._weeks[this._weeks.length-1].push(new ut(_t+1,xe[_t],vi,Qn,li,this._getCellCompareValue(Un),Un))}}_shouldEnableDate(q){return!!q&&(!this.minDate||this._dateAdapter.compareDate(q,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(q,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(q))}_getDateInCurrentMonth(q){return q&&this._hasSameMonthAndYear(q,this.activeDate)?this._dateAdapter.getDate(q):null}_hasSameMonthAndYear(q,xe){return!(!q||!xe||this._dateAdapter.getMonth(q)!=this._dateAdapter.getMonth(xe)||this._dateAdapter.getYear(q)!=this._dateAdapter.getYear(xe))}_getCellCompareValue(q){if(q){const xe=this._dateAdapter.getYear(q),_t=this._dateAdapter.getMonth(q),Xt=this._dateAdapter.getDate(q);return new Date(xe,_t,Xt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(q){q instanceof Ht?(this._rangeStart=this._getCellCompareValue(q.start),this._rangeEnd=this._getCellCompareValue(q.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(q),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(q){return!this.dateFilter||this.dateFilter(q)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.sBO),D.Y36(W.sG,8),D.Y36(W._A,8),D.Y36(Q.Is,8),D.Y36(qe,8))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-month-view"]],viewQuery:function(q,xe){if(1&q&&D.Gf(Ge,5),2&q){let _t;D.iGM(_t=D.CRH())&&(xe._matCalendarBody=_t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[D.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(q,xe){1&q&&(D.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),D.YNc(3,ee,5,2,"th",2),D.qZA(),D.TgZ(4,"tr"),D._UZ(5,"th",3),D.qZA()(),D.TgZ(6,"tbody",4),D.NdJ("selectedValueChange",function(Xt){return xe._dateSelected(Xt)})("previewChange",function(Xt){return xe._previewChanged(Xt)})("keyup",function(Xt){return xe._handleCalendarBodyKeyup(Xt)})("keydown",function(Xt){return xe._handleCalendarBodyKeydown(Xt)}),D.qZA()()),2&q&&(D.xp6(3),D.Q6J("ngForOf",xe._weekdays),D.xp6(3),D.Q6J("label",xe._monthLabel)("rows",xe._weeks)("todayValue",xe._todayDate)("startValue",xe._rangeStart)("endValue",xe._rangeEnd)("comparisonStart",xe._comparisonRangeStart)("comparisonEnd",xe._comparisonRangeEnd)("previewStart",xe._previewStart)("previewEnd",xe._previewEnd)("isRange",xe._isRange)("labelMinRequiredCells",3)("activeCell",xe._dateAdapter.getDate(xe.activeDate)-1))},directives:[Ge,j.sg],encapsulation:2,changeDetection:0}),ve})(),Wt=(()=>{class ve{constructor(q,xe,_t){this._changeDetectorRef=q,this._dateAdapter=xe,this._dir=_t,this._rerenderSubscription=$.w.EMPTY,this.selectedChange=new D.vpe,this.yearSelected=new D.vpe,this.activeDateChange=new D.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(q){let xe=this._activeDate;const _t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(_t,this.minDate,this.maxDate),Pt(this._dateAdapter,xe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(q){this._selected=q instanceof Ht?q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q)),this._setSelectedYear(q)}
1get minDate(){return this._minDate}set minDate(q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get maxDate(){return this._maxDate}set maxDate(q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Re.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const xe=this._dateAdapter.getYear(this._activeDate)-Dn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let _t=0,Xt=[];_t<24;_t++)Xt.push(xe+_t),4==Xt.length&&(this._years.push(Xt.map(Un=>this._createCellForYear(Un))),Xt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(q){const xe=q.value;this.yearSelected.emit(this._dateAdapter.createDate(xe,0,1));let _t=this._dateAdapter.getMonth(this.activeDate),Xt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(xe,_t,1));this.selectedChange.emit(this._dateAdapter.createDate(xe,_t,Math.min(this._dateAdapter.getDate(this.activeDate),Xt)))}_handleCalendarBodyKeydown(q){const xe=this._activeDate,_t=this._isRtl();switch(q.keyCode){case J.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_t?1:-1);break;case J.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,_t?-1:1);break;case J.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case J.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case J.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Dn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case J.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Dn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case J.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,q.altKey?-240:-24);break;case J.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,q.altKey?240:24);break;case J.K5:case J.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),q.preventDefault()}_handleCalendarBodyKeyup(q){(q.keyCode===J.L_||q.keyCode===J.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:q}),this._selectionKeyPressed=!1)}_getActiveCell(){return Dn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(q){const xe=this._dateAdapter.createDate(q,0,1),_t=this._dateAdapter.getYearName(xe),Xt=this.dateClass?this.dateClass(xe,"multi-year"):void 0;return new ut(q,_t,_t,this._shouldEnableYear(q),Xt)}_shouldEnableYear(q){if(null==q||this.maxDate&&q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&q<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let _t=this._dateAdapter.createDate(q,0,1);this._dateAdapter.getYear(_t)==q;_t=this._dateAdapter.addCalendarDays(_t,1))if(this.dateFilter(_t))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(q){if(this._selectedYear=null,q instanceof Ht){const xe=q.start||q.end;xe&&(this._selectedYear=this._dateAdapter.getYear(xe))}else q&&(this._selectedYear=this._dateAdapter.getYear(q))}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.sBO),D.Y36(W._A,8),D.Y36(Q.Is,8))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-multi-year-view"]],viewQuery:function(q,xe){if(1&q&&D.Gf(Ge,5),2&q){let _t;D.iGM(_t=D.CRH())&&(xe._matCalendarBody=_t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(q,xe){1&q&&(D.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),D._UZ(3,"th",2),D.qZA()(),D.TgZ(4,"tbody",3),D.NdJ("selectedValueChange",function(Xt){return xe._yearSelected(Xt)})("keyup",function(Xt){return xe._handleCalendarBodyKeyup(Xt)})("keydown",function(Xt){return xe._handleCalendarBodyKeydown(Xt)}),D.qZA()()),2&q&&(D.xp6(4),D.Q6J("rows",xe._years)("todayValue",xe._todayYear)("startValue",xe._selectedYear)("endValue",xe._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",xe._getActiveCell()))},directives:[Ge],encapsulation:2,changeDetection:0}),ve})();function Pt(ve,at,q,xe,_t){const Xt=ve.getYear(at),Un=ve.getYear(q),Qn=Gn(ve,xe,_t);return Math.floor((Xt-Qn)/24)===Math.floor((Un-Qn)/24)}function Dn(ve,at,q,xe){return function Zn(ve,at){return(ve%at+at)%at}(ve.getYear(at)-Gn(ve,q,xe),24)}function Gn(ve,at,q){let xe=0;return q?xe=ve.getYear(q)-24+1:at&&(xe=ve.getYear(at)),xe}let zn=(()=>{class ve{constructor(q,xe,_t,Xt){this._changeDetectorRef=q,this._dateFormats=xe,this._dateAdapter=_t,this._dir=Xt,this._rerenderSubscription=$.w.EMPTY,this.selectedChange=new D.vpe,this.monthSelected=new D.vpe,this.activeDateChange=new D.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(q){let xe=this._activeDate;const _t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(_t,this.minDate,this.maxDate),this._dateAdapter.getYear(xe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(q){this._selected=q instanceof Ht?q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q)),this._setSelectedMonth(q)}
1get minDate(){return this._minDate}set minDate(q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get maxDate(){return this._maxDate}set maxDate(q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,Re.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(q){const xe=q.value,_t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),xe,1);this.monthSelected.emit(_t);const Xt=this._dateAdapter.getNumDaysInMonth(_t);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),xe,Math.min(this._dateAdapter.getDate(this.activeDate),Xt)))}_handleCalendarBodyKeydown(q){const xe=this._activeDate,_t=this._isRtl();switch(q.keyCode){case J.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,_t?1:-1);break;case J.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,_t?-1:1);break;case J.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case J.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case J.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case J.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case J.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,q.altKey?-10:-1);break;case J.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,q.altKey?10:1);break;case J.K5:case J.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),q.preventDefault()}_handleCalendarBodyKeyup(q){(q.keyCode===J.L_||q.keyCode===J.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:q}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let q=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(xe=>xe.map(_t=>this._createCellForMonth(_t,q[_t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(q){return q&&this._dateAdapter.getYear(q)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(q):null}_createCellForMonth(q,xe){const _t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),q,1),Xt=this._dateAdapter.format(_t,this._dateFormats.display.monthYearA11yLabel),Un=this.dateClass?this.dateClass(_t,"year"):void 0;return new ut(q,xe.toLocaleUpperCase(),Xt,this._shouldEnableMonth(q),Un)}_shouldEnableMonth(q){const xe=this._dateAdapter.getYear(this.activeDate);if(null==q||this._isYearAndMonthAfterMaxDate(xe,q)||this._isYearAndMonthBeforeMinDate(xe,q))return!1;if(!this.dateFilter)return!0;for(let Xt=this._dateAdapter.createDate(xe,q,1);this._dateAdapter.getMonth(Xt)==q;Xt=this._dateAdapter.addCalendarDays(Xt,1))if(this.dateFilter(Xt))return!0;return!1}_isYearAndMonthAfterMaxDate(q,xe){if(this.maxDate){const _t=this._dateAdapter.getYear(this.maxDate),Xt=this._dateAdapter.getMonth(this.maxDate);return q>_t||q===_t&&xe>Xt}return!1}_isYearAndMonthBeforeMinDate(q,xe){if(this.minDate){const _t=this._dateAdapter.getYear(this.minDate),Xt=this._dateAdapter.getMonth(this.minDate);return q<_t||q===_t&&xe<Xt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(q){this._selectedMonth=q instanceof Ht?this._getMonthInCurrentYear(q.start)||this._getMonthInCurrentYear(q.end):this._getMonthInCurrentYear(q)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.sBO),D.Y36(W.sG,8),D.Y36(W._A,8),D.Y36(Q.Is,8))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-year-view"]],viewQuery:function(q,xe){if(1&q&&D.Gf(Ge,5),2&q){let _t;D.iGM(_t=D.CRH())&&(xe._matCalendarBody=_t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(q,xe){1&q&&(D.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),D._UZ(3,"th",2),D.qZA()(),D.TgZ(4,"tbody",3),D.NdJ("selectedValueChange",function(Xt){return xe._monthSelected(Xt)})("keyup",function(Xt){return xe._handleCalendarBodyKeyup(Xt)})("keydown",function(Xt){return xe._handleCalendarBodyKeydown(Xt)}),D.qZA()()),2&q&&(D.xp6(4),D.Q6J("label",xe._yearLabel)("rows",xe._months)("todayValue",xe._todayMonth)("startValue",xe._selectedMonth)("endValue",xe._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",xe._dateAdapter.getMonth(xe.activeDate)))},directives:[Ge],encapsulation:2,changeDetection:0}),ve})(),nn=(()=>{class ve{constructor(){this.changes=new G.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Cho
1ose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(q,xe){return`${q} \u2013 ${xe}`}}return ve.\u0275fac=function(q){return new(q||ve)},ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Vn=0,Yt=(()=>{class ve{constructor(q,xe,_t,Xt,Un){this._intl=q,this.calendar=xe,this._dateAdapter=_t,this._dateFormats=Xt,this._buttonDescriptionId="mat-calendar-button-"+Vn++,this.calendar.stateChanges.subscribe(()=>Un.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const xe=this._dateAdapter.getYear(this.calendar.activeDate)-Dn(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),_t=xe+24-1,Xt=this._dateAdapter.getYearName(this._dateAdapter.createDate(xe,0,1)),Un=this._dateAdapter.getYearName(this._dateAdapter.createDate(_t,0,1));return this._intl.formatYearRange(Xt,Un)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(q,xe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(q)==this._dateAdapter.getYear(xe)&&this._dateAdapter.getMonth(q)==this._dateAdapter.getMonth(xe):"year"==this.calendar.currentView?this._dateAdapter.getYear(q)==this._dateAdapter.getYear(xe):Pt(this._dateAdapter,q,xe,this.calendar.minDate,this.calendar.maxDate)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(nn),D.Y36((0,D.Gpc)(()=>Rn)),D.Y36(W._A,8),D.Y36(W.sG,8),D.Y36(D.sBO))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:B,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(q,xe){1&q&&(D.F$t(),D.TgZ(0,"div",0)(1,"div",1)(2,"button",2),D.NdJ("click",function(){return xe.currentPeriodClicked()}),D.TgZ(3,"span"),D._uU(4),D.qZA(),D.O4$(),D.TgZ(5,"svg",3),D._UZ(6,"polygon",4),D.qZA()(),D.kcU(),D._UZ(7,"div",5),D.Hsn(8),D.TgZ(9,"button",6),D.NdJ("click",function(){return xe.previousClicked()}),D.qZA(),D.TgZ(10,"button",7),D.NdJ("click",function(){return xe.nextClicked()}),D.qZA()()()),2&q&&(D.xp6(2),D.uIk("aria-label",xe.periodButtonLabel)("aria-describedby",xe._buttonDescriptionId),D.xp6(1),D.uIk("id",xe._buttonDescriptionId),D.xp6(1),D.Oqu(xe.periodButtonText),D.xp6(1),D.ekj("mat-calendar-invert","month"!==xe.calendar.currentView),D.xp6(4),D.Q6J("disabled",!xe.previousEnabled()),D.uIk("aria-label",xe.prevButtonLabel),D.xp6(1),D.Q6J("disabled",!xe.nextEnabled()),D.uIk("aria-label",xe.nextButtonLabel))},directives:[L.lW],encapsulation:2,changeDetection:0}),ve})(),Rn=(()=>{class ve{constructor(q,xe,_t,Xt){this._dateAdapter=xe,this._dateFormats=_t,this._changeDetectorRef=Xt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new D.vpe,this.yearSelected=new D.vpe,this.monthSelected=new D.vpe,this.viewChanged=new D.vpe(!0),this._userSelection=new D.vpe,this.stateChanges=new G.xQ,this._intlChanges=q.changes.subscribe(()=>{Xt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get selected(){return this._selected}set selected(q){this._selected=q instanceof Ht?q:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}
1get minDate(){return this._minDate}set minDate(q){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get maxDate(){return this._maxDate}set maxDate(q){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get activeDate(){return this._clampedActiveDate}set activeDate(q){this._clampedActiveDate=this._dateAdapter.clampDate(q,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(q){const xe=this._currentView!==q?q:null;this._currentView=q,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),xe&&this.viewChanged.emit(xe)}ngAfterContentInit(){this._calendarHeaderPortal=new y.C5(this.headerComponent||Yt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(q){const xe=q.minDate&&!this._dateAdapter.sameDate(q.minDate.previousValue,q.minDate.currentValue)?q.minDate:void 0,_t=q.maxDate&&!this._dateAdapter.sameDate(q.maxDate.previousValue,q.maxDate.currentValue)?q.maxDate:void 0,Xt=xe||_t||q.dateFilter;if(Xt&&!Xt.firstChange){const Un=this._getCurrentViewComponent();Un&&(this._changeDetectorRef.detectChanges(),Un._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(q){const xe=q.value;(this.selected instanceof Ht||xe&&!this._dateAdapter.sameDate(xe,this.selected))&&this.selectedChange.emit(xe),this._userSelection.emit(q)}_yearSelectedInMultiYearView(q){this.yearSelected.emit(q)}_monthSelectedInYearView(q){this.monthSelected.emit(q)}_goToDateInView(q,xe){this.activeDate=q,this.currentView=xe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(nn),D.Y36(W._A,8),D.Y36(W.sG,8),D.Y36(D.sBO))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-calendar"]],viewQuery:function(q,xe){if(1&q&&(D.Gf(It,5),D.Gf(zn,5),D.Gf(Wt,5)),2&q){let _t;D.iGM(_t=D.CRH())&&(xe.monthView=_t.first),D.iGM(_t=D.CRH())&&(xe.yearView=_t.first),D.iGM(_t=D.CRH())&&(xe.multiYearView=_t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[D._Bn([ln]),D.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(q,xe){1&q&&(D.YNc(0,K,0,0,"ng-template",0),D.TgZ(1,"div",1),D.YNc(2,ge,1,8,"mat-month-view",2),D.YNc(3,Fe,1,6,"mat-year-view",3),D.YNc(4,he,1,6,"mat-multi-year-view",4),D.qZA()),2&q&&(D.Q6J("cdkPortalOutlet",xe._calendarHeaderPortal),D.xp6(1),D.Q6J("ngSwitch",xe.currentView),D.xp6(1),D.Q6J("ngSwitchCase","month"),D.xp6(1),D.Q6J("ngSwitchCase","year"),D.xp6(1),D.Q6J("ngSwitchCase","multi-year"))},directives:[It,zn,Wt,y.Pl,s.kH,j.RF,j.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}
1.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),ve})();const Mt={transformPanel:(0,Y.X$)("transformPanel",[(0,Y.eR)("void => enter-dropdown",(0,Y.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Y.F4)([(0,Y.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Y.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Y.eR)("void => enter-dialog",(0,Y.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Y.F4)([(0,Y.oB)({opacity:0,transform:"scale(0.7)"}),(0,Y.oB)({transform:"none",opacity:1})]))),(0,Y.eR)("* => void",(0,Y.jt)("100ms linear",(0,Y.oB)({opacity:0})))]),fadeInCalendar:(0,Y.X$)("fadeInCalendar",[(0,Y.SB)("void",(0,Y.oB)({opacity:0})),(0,Y.SB)("enter",(0,Y.oB)({opacity:1})),(0,Y.eR)("void => *",(0,Y.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let kt=0;const We=new D.OlP("mat-datepicker-scroll-strategy"),Qe={provide:We,deps:[_.aV],useFactory:function Ue(ve){return()=>ve.scrollStrategies.reposition()}},Lt=(0,W.pj)(class{constructor(ve){this._elementRef=ve}});let xt=(()=>{class ve extends Lt{constructor(q,xe,_t,Xt,Un,Qn){super(q),this._changeDetectorRef=xe,this._globalModel=_t,this._dateAdapter=Xt,this._rangeSelectionStrategy=Un,this._subscriptions=new $.w,this._animationDone=new G.xQ,this._actionsPortal=null,this._closeButtonText=Qn.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(q){const xe=this._model.selection,_t=q.value,Xt=xe instanceof Ht;if(Xt&&this._rangeSelectionStrategy){const Un=this._rangeSelectionStrategy.selectionFinished(_t,xe,q.event);this._model.updateSelection(Un,this)}else _t&&(Xt||!this._dateAdapter.sameDate(_t,xe))&&this._model.add(_t);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(jt),D.Y36(W._A),D.Y36(qe,8),D.Y36(nn))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-datepicker-content"]],viewQuery:function(q,xe){if(1&q&&D.Gf(Rn,5),2&q){let _t;D.iGM(_t=D.CRH())&&(xe._calendar=_t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(q,xe){1&q&&D.WFA("@transformPanel.done",function(){return xe._animationDone.next()}),2&q&&(D.d8E("@transformPanel",xe._animationState),D.ekj("mat-datepicker-content-touch",xe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[D.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(q,xe){if(1&q&&(D.TgZ(0,"div",0)(1,"mat-calendar",1),D.NdJ("yearSelected",function(Xt){return xe.datepicker._selectYear(Xt)})("monthSelected",function(Xt){return xe.datepicker._selectMonth(Xt)})("viewChanged",function(Xt){return xe.datepicker._viewChanged(Xt)})("_userSelection",function(Xt){return xe._handleUserSelection(Xt)}),D.qZA(),D.YNc(2,fe,0,0,"ng-template",2),D.TgZ(3,"button",3),D.NdJ("focus",function(){return xe._closeButtonF
1ocused=!0})("blur",function(){return xe._closeButtonFocused=!1})("click",function(){return xe.datepicker.close()}),D._uU(4),D.qZA()()),2&q){let _t;D.ekj("mat-datepicker-content-container-with-custom-header",xe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",xe._actionsPortal),D.uIk("aria-modal",!0)("aria-labelledby",null!==(_t=xe._dialogLabelId)&&void 0!==_t?_t:void 0),D.xp6(1),D.Q6J("id",xe.datepicker.id)("ngClass",xe.datepicker.panelClass)("startAt",xe.datepicker.startAt)("startView",xe.datepicker.startView)("minDate",xe.datepicker._getMinDate())("maxDate",xe.datepicker._getMaxDate())("dateFilter",xe.datepicker._getDateFilter())("headerComponent",xe.datepicker.calendarHeaderComponent)("selected",xe._getSelected())("dateClass",xe.datepicker.dateClass)("comparisonStart",xe.comparisonStart)("comparisonEnd",xe.comparisonEnd)("@fadeInCalendar","enter"),D.xp6(1),D.Q6J("cdkPortalOutlet",xe._actionsPortal),D.xp6(1),D.ekj("cdk-visually-hidden",!xe._closeButtonFocused),D.Q6J("color",xe.color||"primary"),D.xp6(1),D.Oqu(xe._closeButtonText)}},directives:[Rn,L.lW,s.mK,j.mk,y.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Mt.transformPanel,Mt.fadeInCalendar]},changeDetection:0}),ve})(),Gt=(()=>{class ve{constructor(q,xe,_t,Xt,Un,Qn,vi){this._overlay=q,this._ngZone=xe,this._viewContainerRef=_t,this._dateAdapter=Un,this._dir=Qn,this._model=vi,this._inputStateChanges=$.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new D.vpe,this.monthSelected=new D.vpe,this.viewChanged=new D.vpe(!0),this.openedStream=new D.vpe,this.closedStream
1=new D.vpe,this._opened=!1,this.id="mat-datepicker-"+kt++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new G.xQ,this._scrollStrategy=Xt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(q){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(q){this._color=q}get touchUi(){return this._touchUi}set touchUi(q){this._touchUi=(0,P.Ig)(q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(q){const xe=(0,P.Ig)(q);xe!==this._disabled&&(this._disabled=xe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(q){this._restoreFocus=(0,P.Ig)(q)}get panelClass(){return this._panelClass}set panelClass(q){this._panelClass=(0,P.du)(q)}get opened(){return this._opened}set opened(q){(0,P.Ig)(q)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(q){const xe=q.xPosition||q.yPosition;if(xe&&!xe.firstChange&&this._overlayRef){const _t=this._overlayRef.getConfig().positionStrategy;_t instanceof _._G&&(this._setConnectedPositions(_t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(q){this._model.add(q)}_selectYear(q){this.yearSelected.emit(q)}_selectMonth(q){this.monthSelected.emit(q)}_viewChanged(q){this.viewChanged.emit(q)}registerInput(q){return this._inputStateChanges.unsubscribe(),this.datepickerInput=q,this._inputStateChanges=q.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(q){this._actionsPortal=q}removeActions(q){q===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,N.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const xe=this._componentRef.instance;xe._startExitAnimation(),xe._animationDone.pipe((0,Me.q)(1)).subscribe(()=>this._destroyOverlay())}const q=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(q)):q()}_applyPendingSelection(){var q,xe;null===(xe=null===(q=this._componentRef)||void 0===q?void 0:q.instance)||void 0===xe||xe._applyPendingSelection()}_forwardContentValues(q){q.datepicker=this,q.color=this.color,q._actionsPortal=this._actionsPortal,q._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const q=this.touchUi,xe=new y.C5(xt,this._viewContainerRef),_t=this._overlayRef=this._overlay.create(new _.X_({positionStrategy:q?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[q?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:q?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(q?"dialog":"popup")}));this._getCloseStream(_t).subscribe(Xt=>{Xt&&Xt.preventDefault(),this.close()}),_t.keydownEvents().subscribe(Xt=>{const Un=Xt.keyCode;(Un===J.LH||Un===J.JH||Un===J.oh||Un===J.SV||Un===J.Ku||Un===J.VM)&&Xt.preventDefault()}),this._componentRef=_t.attach(xe),this._forwardContentValues(this._componentRef.instance),q||this._ngZone.onStable.pipe((0,Me.q)(1)).subscribe(()=>_t.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const q=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(q)}_setConnectedPositions(q){const xe="end"===this.xPosition?"end":"start",_t="start"===xe?"end":"start",Xt="above"===this.yPosition?"bottom":"top",Un="top"===Xt?"bottom":"top";return q.withPositions([{originX:xe,originY:Un,overlayX:xe,overlayY:Xt},{originX:xe,originY:Xt,overlayX:xe,overlayY:Un},{originX:_t,originY:Un,overlayX:_t,overlayY:Xt},{originX:_t,originY:Xt,overlayX:_t,overlayY:Un}])}_getCloseStream(q){return(0,te.T)(q.backdropClick(),q.detachments(),q.keydownEvents().pipe((0,me.h)(xe=>xe.keyCode===J.hY&&!(0,J.Vb)(xe)||this.datepickerInput&&(0,J.Vb)(xe,"altKey")&&xe.keyCode===J.LH)))}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(_.aV),D.Y36(D.R0b),D.Y36(D.s_b),D.Y36(We),D.Y36(W._A,8),D.Y36(Q.Is,8),D.Y36(jt))}
1,ve.\u0275dir=D.lG2({type:ve,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[D.TTD]}),ve})(),Ke=(()=>{class ve extends Gt{}return ve.\u0275fac=function(){let at;return function(xe){return(at||(at=D.n5z(ve)))(xe||ve)}}(),ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[D._Bn([ln,{provide:Gt,useExisting:ve}]),D.qOj],decls:0,vars:0,template:function(q,xe){},encapsulation:2,changeDetection:0}),ve})();class Ne{constructor(at,q){this.target=at,this.targetElement=q,this.value=this.target.value}}let Ae=(()=>{class ve{constructor(q,xe,_t){this._elementRef=q,this._dateAdapter=xe,this._dateFormats=_t,this.dateChange=new D.vpe,this.dateInput=new D.vpe,this.stateChanges=new G.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=$.w.EMPTY,this._localeSubscription=$.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Xt=>{const Un=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xt.value));return!Un||this._matchesFilter(Un)?null:{matDatepickerFilter:!0}},this._minValidator=Xt=>{const Un=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xt.value)),Qn=this._getMinDate();return!Qn||!Un||this._dateAdapter.compareDate(Qn,Un)<=0?null:{matDatepickerMin:{min:Qn,actual:Un}}},this._maxValidator=Xt=>{const Un=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xt.value)),Qn=this._getMaxDate();return!Qn||!Un||this._dateAdapter.compareDate(Qn,Un)>=0?null:{matDatepickerMax:{max:Qn,actual:Un}}},this._lastValueValid=!1,this._localeSubscription=xe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(q){this._assignValueProgrammatically(q)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(q){const xe=(0,P.Ig)(q),_t=this._elementRef.nativeElement;this._disabled!==xe&&(this._disabled=xe,this.stateChanges.next(void 0)),xe&&this._isInitialized&&_t.blur&&_t.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(q){this._model=q,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(xe=>{if(this._shouldHandleChangeEvent(xe)){const _t=this._getValueFromModel(xe.selection);this._lastValueValid=this._isValidValue(_t),this._cvaOnChange(_t),this._onTouched(),this._formatValue(_t),this.dateInput.emit(new Ne(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ne(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(q){Oe(q,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(q){this._validatorOnChange=q}validate(q){return this._validator?this._validator(q):null}writeValue(q){this._assignValueProgrammatically(q)}registerOnChange(q){this._cvaOnChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q}_onKeydown(q){q.altKey&&q.keyCode===J.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),q.preventDefault())}_onInput(q){const xe=this._lastValueValid;let _t=this._dateAdapter.parse(q,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(_t),_t=this._dateAdapter.getValidDateOrNull(_t);const Xt=!this._dateAdapter.sameDate(_t,this.value);!_t||Xt?this._cvaOnChange(_t):(q&&!this.value&&this._cvaOnChange(_t),xe!==this._lastValueValid&&this._val
1idatorOnChange()),Xt&&(this._assignValue(_t),this.dateInput.emit(new Ne(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ne(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(q){this._elementRef.nativeElement.value=null!=q?this._dateAdapter.format(q,this._dateFormats.display.dateInput):""}_assignValue(q){this._model?(this._assignValueToModel(q),this._pendingValue=null):this._pendingValue=q}_isValidValue(q){return!q||this._dateAdapter.isValid(q)}_parentDisabled(){return!1}_assignValueProgrammatically(q){q=this._dateAdapter.deserialize(q),this._lastValueValid=this._isValidValue(q),q=this._dateAdapter.getValidDateOrNull(q),this._assignValue(q),this._formatValue(q)}_matchesFilter(q){const xe=this._getDateFilter();return!xe||xe(q)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.SBq),D.Y36(W._A,8),D.Y36(W.sG,8))},ve.\u0275dir=D.lG2({type:ve,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[D.TTD]}),ve})();function Oe(ve,at){const q=Object.keys(ve);for(let xe of q){const{previousValue:_t,currentValue:Xt}=ve[xe];if(!at.isDateInstance(_t)||!at.isDateInstance(Xt))return!0;if(!at.sameDate(_t,Xt))return!0}return!1}const Ye={provide:de.JU,useExisting:(0,D.Gpc)(()=>Tt),multi:!0},je={provide:de.Cf,useExisting:(0,D.Gpc)(()=>Tt),multi:!0};let Tt=(()=>{class ve extends Ae{constructor(q,xe,_t,Xt){super(q,xe,_t),this._formField=Xt,this._closedSubscription=$.w.EMPTY,this._validator=de.kI.compose(super._getValidators())}set matDatepicker(q){q&&(this._datepicker=q,this._closedSubscription=q.closedStream.subscribe(()=>this._onTouched()),this._registerModel(q.registerInput(this)))}get min(){return this._min}set min(q){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q));this._dateAdapter.sameDate(xe,this._min)||(this._min=xe,this._validatorOnChange())}get max(){return this._max}set max(q){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q));this._dateAdapter.sameDate(xe,this._max)||(this._max=xe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(q){const xe=this._matchesFilter(this.value);this._dateFilter=q,this._matchesFilter(this.value)!==xe&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(q){return q}_assignValueToModel(q){this._model&&this._model.updateSelection(q,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(q){return q.source!==this}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.SBq),D.Y36(W._A,8),D.Y36(W.sG,8),D.Y36(re.G_,8))},ve.\u0275dir=D.lG2({type:ve,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(q,xe){1&q&&D.NdJ("input",function(Xt){return xe._onInput(Xt.target.value)})("change",function(){return xe._onChange()})("blur",function(){return xe._onBlur()})("keydown",function(Xt){return xe._onKeydown(Xt)}),2&q&&(D.Ikx("disabled",xe.disabled),D.uIk("aria-haspopup",xe._datepicker?"dialog":null)("aria-owns",(null==xe._datepicker?null:xe._datepicker.opened)&&xe._datepicker.id||null)("min",xe.min?xe._dateAdapter.toIso8601(xe.min):null)("max",xe.max?xe._dateAdapter.toIso8601(xe.max):null)("data-mat-calendar",xe._datepicker?xe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[D._Bn([Ye,je,{provide:V.Jk,useExisting:ve}]),D.qOj]}),ve})(),rn=(()=>{class ve{}return ve.\u0275fac=function(q){return new(q||ve)},ve.\u0275dir=D.lG2({type:ve,selectors:[["","matDatepickerToggleIcon",""]]}),ve})(),On=(()=>{class ve{constructor(q,xe,_t){this._intl=q,this._changeDetectorRef=xe,this._stateChanges=$.w.EMPTY;const Xt=Number(_t);this.tabIndex=Xt||0===Xt?Xt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(q){this._disabled=(0,P.Ig)(q)}ngOnChanges(q){q.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(q){this.datepicker&&!this.disabled&&(this.datepicker.open(),q.stopPropagation())}_watchStateChanges(){const q=this.datepicker?this.datepicker.stateChanges:(0,le.of)(),xe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,le.of)(),_t=this.datepicker?(0,te.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,le.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,te.T)(this._intl.changes,q,xe,_t).subscribe(()=>this._changeDetectorRef.markForCheck())}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(nn),D.Y36(D.sBO),D.$8M("tabindex"))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-datepicker-toggle"]],c
1ontentQueries:function(q,xe,_t){if(1&q&&D.Suo(_t,rn,5),2&q){let Xt;D.iGM(Xt=D.CRH())&&(xe._customIcon=Xt.first)}},viewQuery:function(q,xe){if(1&q&&D.Gf(Ie,5),2&q){let _t;D.iGM(_t=D.CRH())&&(xe._button=_t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(q,xe){1&q&&D.NdJ("click",function(Xt){return xe._open(Xt)}),2&q&&(D.uIk("tabindex",null)("data-mat-calendar",xe.datepicker?xe.datepicker.id:null),D.ekj("mat-datepicker-toggle-active",xe.datepicker&&xe.datepicker.opened)("mat-accent",xe.datepicker&&"accent"===xe.datepicker.color)("mat-warn",xe.datepicker&&"warn"===xe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[D.TTD],ngContentSelectors:ke,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(q,xe){1&q&&(D.F$t(pe),D.TgZ(0,"button",0,1),D.YNc(2,Se,2,0,"svg",2),D.Hsn(3),D.qZA()),2&q&&(D.Q6J("disabled",xe.disabled)("disableRipple",xe.disableRipple),D.uIk("aria-haspopup",xe.datepicker?"dialog":null)("aria-label",xe.ariaLabel||xe._intl.openCalendarLabel)("tabindex",xe.disabled?-1:xe.tabIndex),D.xp6(2),D.Q6J("ngIf",!xe._customIcon))},directives:[L.lW,j.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),ve})();const xn=new D.OlP("MAT_DATE_RANGE_INPUT_PARENT"),Ai=(0,W.FD)((()=>{class ve extends Ae{constructor(q,xe,_t,Xt,Un,Qn,vi,li){super(xe,vi,li),this._rangeInput=q,this._defaultErrorStateMatcher=_t,this._injector=Xt,this._parentForm=Un,this._parentFormGroup=Qn}ngOnInit(){const q=this._injector.get(de.a5,null,D.XFs.Self|D.XFs.Optional);q&&(this.ngControl=q)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(q){super._onInput(q),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:q}){return q!==this._rangeInput._startInput&&q!==this._rangeInput._endInput}_assignValueProgrammatically(q){super._assignValueProgrammatically(q);const xe=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==xe||xe._validatorOnChange()}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(xn),D.Y36(D.SBq),D.Y36(W.rD),D.Y36(D.zs3),D.Y36(de.F,8),D.Y36(de.sg,8),D.Y36(W._A,8),D.Y36(W.sG,8))},ve.\u0275dir=D.lG2({type:ve,features:[D.qOj]}),ve})());let mi=(()=>{class ve extends Ai{constructor(q,xe,_t,Xt,Un,Qn,vi,li){super(q,xe,_t,Xt,Un,Qn,vi,li),this._startValidator=mr=>{const zi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(mr.value)),hr=this._model?this._model.selection.end:null;return!zi||!hr||this._dateAdapter.compareDate(zi,hr)<=0?null:{matStartDateInvalid:{end:hr,actual:zi}}}
1,this._validator=de.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(q){return q.start}_shouldHandleChangeEvent(q){var xe;return!(!super._shouldHandleChangeEvent(q)||((null===(xe=q.oldValue)||void 0===xe?void 0:xe.start)?q.selection.start&&!this._dateAdapter.compareDate(q.oldValue.start,q.selection.start):!q.selection.start))}_assignValueToModel(q){if(this._model){const xe=new Ht(q,this._model.selection.end);this._model.updateSelection(xe,this)}}_formatValue(q){super._formatValue(q),this._rangeInput._handleChildValueChange()}getMirrorValue(){const q=this._elementRef.nativeElement,xe=q.value;return xe.length>0?xe:q.placeholder}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(xn),D.Y36(D.SBq),D.Y36(W.rD),D.Y36(D.zs3),D.Y36(de.F,8),D.Y36(de.sg,8),D.Y36(W._A,8),D.Y36(W.sG,8))},ve.\u0275dir=D.lG2({type:ve,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(q,xe){1&q&&D.NdJ("input",function(Xt){return xe._onInput(Xt.target.value)})("change",function(){return xe._onChange()})("keydown",function(Xt){return xe._onKeydown(Xt)})("blur",function(){return xe._onBlur()}),2&q&&(D.Ikx("disabled",xe.disabled),D.uIk("id",xe._rangeInput.id)("aria-haspopup",xe._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==xe._rangeInput.rangePicker?null:xe._rangeInput.rangePicker.opened)&&xe._rangeInput.rangePicker.id||null)("min",xe._getMinDate()?xe._dateAdapter.toIso8601(xe._getMinDate()):null)("max",xe._getMaxDate()?xe._dateAdapter.toIso8601(xe._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[D._Bn([{provide:de.JU,useExisting:ve,multi:!0},{provide:de.Cf,useExisting:ve,multi:!0}]),D.qOj]}),ve})(),fi=(()=>{class ve extends Ai{constructor(q,xe,_t,Xt,Un,Qn,vi,li){super(q,xe,_t,Xt,Un,Qn,vi,li),this._endValidator=mr=>{const zi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(mr.value)),hr=this._model?this._model.selection.start:null;return!zi||!hr||this._dateAdapter.compareDate(zi,hr)>=0?null:{matEndDateInvalid:{start:hr,actual:zi}}},this._validator=de.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(q){return q.end}_shouldHandleChangeEvent(q){var xe;return!(!super._shouldHandleChangeEvent(q)||((null===(xe=q.oldValue)||void 0===xe?void 0:xe.end)?q.selection.end&&!this._dateAdapter.compareDate(q.oldValue.end,q.selection.end):!q.selection.end))}_assignValueToModel(q){if(this._model){const xe=new Ht(this._model.selection.start,q);this._model.updateSelection(xe,this)}}_onKeydown(q){q.keyCode===J.ZH&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(q)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(xn),D.Y36(D.SBq),D.Y36(W.rD),D.Y36(D.zs3),D.Y36(de.F,8),D.Y36(de.sg,8),D.Y36(W._A,8),D.Y36(W.sG,8))},ve.\u0275dir=D.lG2({type:ve,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(q,xe){1&q&&D.NdJ("input",function(Xt){return xe._onInput(Xt.target.value)})("change",function(){return xe._onChange()})("keydown",function(Xt){return xe._onKeydown(Xt)})("blur",function(){return xe._onBlur()}),2&q&&(D.Ikx("disabled",xe.disabled),D.uIk("aria-haspopup",xe._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==xe._rangeInput.rangePicker?null:xe._rangeInput.rangePicker.opened)&&xe._rangeInput.rangePicker.id||null)("min",xe._getMinDate()?xe._dateAdapter.toIso8601(xe._getMinDate()):null)("max",xe._getMaxDate()?xe._dateAdapter.toIso8601(xe._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[D._Bn([{provide:de.JU,useExisting:ve,multi:!0},{provide:de.Cf,useExisting:ve,multi:!0}]),D.qOj]}),ve})(),Ki=0,pn=(()=>{class ve{constructor(q,xe,_t,Xt,Un){if(this._changeDetectorRef=q,this._elementRef=xe,this._dateAdapter=Xt,this._formField=Un,this._closedSubscription=$.w.EMPTY,this.id="mat-date-range-input-"+Ki++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new G.xQ,null==Un?void 0:Un._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const Qn=xe.nativeElement.classList;Qn.add("mat-mdc-input-element"),Qn.add("mat-mdc-form-field-input-control")}this.ngControl=_t}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var q,xe;const _t=(null===(q=this._startInput)||void 0===q?void 0:q._getPlaceholder())||"",Xt=(null===(xe=this._endInput)||void 0===xe?void 0:xe._getPlaceholder())||"";return _t||Xt?`${_t} ${this.separator} ${Xt}`:""}get rangePicker(){return this._rangePicker}set rangePicker(q){q&&(this._model=q.registerInput(this),this._rangePicker=q,this._closedSubscription.unsubscribe(),this._closedSubscription=q.closedStream.subscribe(()=>{var xe,_t;null===(xe=this._startInput)||void 0===xe||xe._onTouched(),null===(_t=this._endInput)||void 0===_t||_t._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(q){this._required=(0,P.Ig)(q)}get dateFilter(){return this._dateFilter}set dateFilter(q){const xe=this._startInput,_t=this._endInput,Xt=xe&&xe._matchesFilter(xe.value),Un=_t&&_t._matchesFilter(xe.value);this._dateFilter=q,xe&&xe._matchesFilter(xe.value)!==Xt&&xe._validatorOnChange(),_t&&_t._matchesFilter(_t.value)!==Un&&_t._validatorOnChange()}get min(){return this._min}set min(q){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q));this._dateAdapter.sameDate(xe,this._min)||(this._min=xe,this._revalidate())}get max(){return this._max}set max(q){const xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(q));this._dateAdapter.sameDate(xe,this._max)||(this._max=xe,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(q){const xe=(0,P.Ig)(q);xe!==this._groupDisabled&&(this._groupDisabled=xe,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const q=!!this._startInput&&this._startInput.isEmpty(),xe=!!this._endInput&&this._endInput.isEmpty();return q&&xe}setDescribedByIds(q){this._ariaDescribedBy=q.length?q.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,te.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(q){Oe(q,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}
1getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const q=this._formField;return q&&q._hasFloatingLabel()?q._labelId:null}_updateFocus(q){this.focused=null!==q,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(q){this._startInput&&this._startInput._registerModel(q),this._endInput&&this._endInput._registerModel(q)}}return ve.\u0275fac=function(q){return new(q||ve)(D.Y36(D.sBO),D.Y36(D.SBq),D.Y36(de.gN,10),D.Y36(W._A,8),D.Y36(re.G_,8))},ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-date-range-input"]],contentQueries:function(q,xe,_t){if(1&q&&(D.Suo(_t,mi,5),D.Suo(_t,fi,5)),2&q){let Xt;D.iGM(Xt=D.CRH())&&(xe._startInput=Xt.first),D.iGM(Xt=D.CRH())&&(xe._endInput=Xt.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(q,xe){2&q&&(D.uIk("id",null)("aria-labelledby",xe._getAriaLabelledby())("aria-describedby",xe._ariaDescribedBy)("data-mat-calendar",xe.rangePicker?xe.rangePicker.id:null),D.ekj("mat-date-range-input-hide-placeholders",xe._shouldHidePlaceholders())("mat-date-range-input-required",xe.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[D._Bn([{provide:re.Eo,useExisting:ve},{provide:xn,useExisting:ve}]),D.TTD],ngContentSelectors:Ce,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(q,xe){1&q&&(D.F$t(ae),D.TgZ(0,"div",0),D.NdJ("cdkFocusChange",function(Xt){return xe._updateFocus(Xt)}),D.TgZ(1,"div",1),D.Hsn(2),D.TgZ(3,"span",2),D._uU(4),D.qZA()(),D.TgZ(5,"span",3),D._uU(6),D.qZA(),D.TgZ(7,"div",4),D.Hsn(8,1),D.qZA()()),2&q&&(D.xp6(4),D.Oqu(xe._getInputMirrorValue()),D.xp6(1),D.ekj("mat-date-range-input-separator-hidden",xe._shouldHideSeparator()),D.xp6(1),D.Oqu(xe.separator))},directives:[s.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}
1.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),ve})(),gn=(()=>{class ve extends Gt{_forwardContentValues(q){super._forwardContentValues(q);const xe=this.datepickerInput;xe&&(q.comparisonStart=xe.comparisonStart,q.comparisonEnd=xe.comparisonEnd)}}return ve.\u0275fac=function(){let at;return function(xe){return(at||(at=D.n5z(ve)))(xe||ve)}}(),ve.\u0275cmp=D.Xpm({type:ve,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[D._Bn([Xe,bt,{provide:Gt,useExisting:ve}]),D.qOj],decls:0,vars:0,template:function(q,xe){},encapsulation:2,changeDetection:0}),ve})(),ue=(()=>{class ve{}return ve.\u0275fac=function(q){return new(q||ve)},ve.\u0275mod=D.oAB({type:ve}),ve.\u0275inj=D.cJS({providers:[nn,Qe],imports:[[j.ez,L.ot,_.U8,s.rt,y.eL,W.BQ],ce.ZD]}),ve})()},8966:(Qt,Z,S)=>{"use strict";S.d(Z,{H8:()=>ae,Is:()=>Ve,WI:()=>A,ZT:()=>Se,so:()=>E,uh:()=>pe,uw:()=>he,xY:()=>ke});var s=S(2845),_=S(7429),y=S(5e3),j=S(508),D=S(226),L=S(8929),ce=S(8514),W=S(1086),G=S(2198),$=S(2986),te=S(1059),le=S(925),J=S(9808),Me=S(1777),Re=S(5664),me=S(1159),Q=S(6360);function P(Be,ut){}class N{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Y={dialogContainer:(0,Me.X$)("dialogContainer",[(0,Me.SB)("void, exit",(0,Me.oB)({opacity:0,transform:"scale(0.7)"})),(0,Me.SB)("enter",(0,Me.oB)({transform:"none"})),(0,Me.eR)("* => enter",(0,Me.ru)([(0,Me.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Me.oB)({transform:"none",opacity:1})),(0,Me.IO)("@*",(0,Me.pV)(),{optional:!0})])),(0,Me.eR)("* => void, * => exit",(0,Me.ru)([(0,Me.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Me.oB)({opacity:0})),(0,Me.IO)("@*",(0,Me.pV)(),{optional:!0})]))])};let re=(()=>{class Be extends _.en{constructor(Ge,wt,Ot,Ft,ht,Ht,jt,cn){super(),this._elementRef=Ge,this._focusTrapFactory=wt,this._changeDetectorRef=Ot,this._config=ht,this._interactivityChecker=Ht,this._ngZone=jt,this._focusMonitor=cn,this._animationStateChanged=new y.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=hn=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(hn)),this._ariaLabelledBy=ht.ariaLabelledBy||null,this._document=Ft}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,le.ht)())}attachComponentPortal(Ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ge)}attachTemplatePortal(Ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ge)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ge,wt){this._interactivityChecker.isFocusable(Ge)||(Ge.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ot=()=>{Ge.removeEventListener("blur",Ot),Ge.removeEventListener("mousedown",Ot),Ge.removeAttribute("tabindex")};Ge.addEventListener("blur",Ot),Ge.addEventListener("mousedown",Ot)})),Ge.focus(wt)}_focusByCssSelector(Ge,wt){let Ot=this._elementRef.nativeElement.querySelector(Ge);Ot&&this._forceFocus(Ot,wt)}_trapFocus(){const Ge=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ge.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(wt=>
1{wt||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 Ge=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ge&&"function"==typeof Ge.focus){const wt=(0,le.ht)(),Ot=this._elementRef.nativeElement;(!wt||wt===this._document.body||wt===Ot||Ot.contains(wt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ge,this._closeInteractionType),this._closeInteractionType=null):Ge.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ge=this._elementRef.nativeElement,wt=(0,le.ht)();return Ge===wt||Ge.contains(wt)}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(y.Y36(y.SBq),y.Y36(Re.qV),y.Y36(y.sBO),y.Y36(J.K0,8),y.Y36(N),y.Y36(Re.ic),y.Y36(y.R0b),y.Y36(Re.tE))},Be.\u0275dir=y.lG2({type:Be,viewQuery:function(Ge,wt){if(1&Ge&&y.Gf(_.Pl,7),2&Ge){let Ot;y.iGM(Ot=y.CRH())&&(wt._portalOutlet=Ot.first)}},features:[y.qOj]}),Be})(),V=(()=>{class Be extends re{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ge,totalTime:wt}){"enter"===Ge?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:wt})):"exit"===Ge&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:wt}))}_onAnimationStart({toState:Ge,totalTime:wt}){"enter"===Ge?this._animationStateChanged.next({state:"opening",totalTime:wt}):("exit"===Ge||"void"===Ge)&&this._animationStateChanged.next({state:"closing",totalTime:wt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return Be.\u0275fac=function(){let ut;return function(wt){return(ut||(ut=y.n5z(Be)))(wt||Be)}}(),Be.\u0275cmp=y.Xpm({type:Be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ge,wt){1&Ge&&y.WFA("@dialogContainer.start",function(Ft){return wt._onAnimationStart(Ft)})("@dialogContainer.done",function(Ft){return wt._onAnimationDone(Ft)}),2&Ge&&(y.Ikx("id",wt._id),y.uIk("role",wt._config.role)("aria-labelledby",wt._config.ariaLabel?null:wt._ariaLabelledBy)("aria-label",wt._config.ariaLabel)("aria-describedby",wt._config.ariaDescribedBy||null),y.d8E("@dialogContainer",wt._state))},features:[y.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ge,wt){1&Ge&&y.YNc(0,P,0,0,"ng-template",0)},directives:[_.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Y.dialogContainer]}}),Be})(),ne=0;class E{constructor(ut,Ge,wt="mat-dialog-"+ne++){this._overlayRef=ut,this._containerInstance=Ge,this.id=wt,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new L.xQ,this._afterClosed=new L.xQ,this._beforeClosed=new L.xQ,this._state=0,Ge._id=wt,Ge._animationStateChanged.pipe((0,G.h)(Ot=>"opened"===Ot.state),(0,$.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ge._animationStateChanged.pipe((0,G.h)(Ot=>"closed"===Ot.state),(0,$.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ut.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ut.keydownEvents().pipe((0,G.h)(Ot=>Ot.keyCode===me.hY&&!this.disableClose&&!(0,me.Vb)(Ot))).subscribe(Ot=>{Ot.preventDefault(),M(this,"keyboard")}),ut.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():M(this,"mouse")})}close(ut){this._result=ut,this._containerInstance._animationStateChanged.pipe((0,G.h)(Ge=>"closing"===Ge.state),(0,$.q)(1)).subscribe(Ge=>{this._beforeClosed.next(ut),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ge.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ut){let Ge=this._getPositionStrategy();return ut&&(ut.left||ut.right)?ut.left?Ge.left(ut.left):Ge.right(ut.right):Ge.centerHorizontally(),ut&&(ut.top||ut.bottom)?ut.top?Ge.top(ut.top):Ge.bottom(ut.bottom):Ge.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ut="",Ge=""){return this._overlayRef.updateSize({width:ut,height:Ge}),this._overlayRef.updatePosition(),this}addPanelClass(ut){return this._overlayRef.addPanelClass(ut),this}removePanelClass(ut){return this._overlayRef.removePanelClass(ut),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function M(Be,ut,Ge){return void 0!==Be._containerInstance&&(Be._containerInstance._closeInteractionType=ut),Be.close(Ge)}const A=new y.OlP("MatDialogData"),R=new y.OlP("mat-dialog-default-options"),ee=new y.OlP("mat-dialog-scroll-strategy"),ge={provide:ee,deps:[s.aV],useFactory:function K(Be){return()=>Be.scrollStrategies.block()}};let Fe=(()=>{class Be{constructor(Ge,wt,Ot,Ft,ht,Ht,jt,cn,hn,vn){this._overlay=Ge,this._injector=wt,this._defaultOptions=Ot,this._parentDialog=Ft,this._overlayContainer=ht,this._dialogRefConstructor=jt,this._dialogContainerType=cn,this._dialogDataToken=hn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L.xQ,this._afterOpenedAtThisLevel=new L.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ce.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,te.O)(void 0))),this._scrollStrategy=Ht}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ge=this._parentDialog;return Ge?Ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ge,wt){wt=function fe(Be,ut){return Object.assign(Object.assign({},ut),Be)}(wt,this._defaultOptions||new N),wt.id&&this.getDialogById(wt.id);const Ot=this._createOverlay(wt),Ft=this._attachDialogContainer(Ot,wt),ht=this._attachDialogContent(Ge,Ft,Ot,wt);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ht),ht.afterClosed().subscribe(()=>this._removeOpenDialog(ht)),this.afterOpened.next(ht),Ft._initializeWithAttachedContent(),ht}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ge){return this.openDialogs.find(wt=>wt.id===Ge)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Ge){const wt=this._getOverlayConfig(Ge);return this._overlay.create(wt)}_getOverlayConfig(Ge){const wt=new s.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ge.scrollStrategy||this._scrollStrategy(),panelClass:Ge.panelClass,hasBackdrop:Ge.hasBackdrop,direction:Ge.direction,minWidth:Ge.minWidth,minHeight:Ge.minHeight,maxWidth:Ge.maxWidth,maxHeight:Ge.maxHeight,disposeOnNavigation:Ge.closeOnNavigation});return Ge.backdropClass&&(wt.backdropClass=Ge.backdropClass),wt}_attachDialogContainer(Ge,wt){const Ft=y.zs3.create({parent:wt&&wt.viewContainerRef&&wt.viewContainerRef.injector||this._injector,providers:[{provide:N,useValue:wt}]}),ht=new _.C5(this._dialogContainerType,wt.viewContainerRef,Ft,wt.componentFactoryResolver);return Ge.attach(ht).instance}_attachDialogContent(Ge,wt,Ot,Ft){const ht=new this._dialogRefConstructor(Ot,wt,Ft.id);if(Ge instanceof y.Rgc)wt.attachTemplatePortal(new _.UE(Ge,null,{$implicit:Ft.data,dialogRef:ht}));else{const Ht=this._createInjector(Ft,ht,wt),jt=wt.attachComponentPortal(new _.C5(Ge,Ft.viewContainerRef,Ht,Ft.componentFactoryResolver));ht.componentInstance=jt.instance}return ht.updateSize(Ft.width,Ft.height).updatePosition(Ft.position),ht}_createInjector(Ge,wt,Ot){const Ft=Ge&&Ge.viewContainerRef&&Ge.viewContainerRef.injector,ht=[{provide:this._dialogContainerType,useValue:Ot},{provide:this._dialogDataToken,useValue:Ge.data},{provide:this._dialogRefConstructor,useValue:wt}];return Ge.direction&&(!Ft||!Ft.get(D.Is,null,y.XFs.Optional))&&ht.push({provide:D.Is,useValue:{value:Ge.direction,change:(0,W.of)()}}),y.zs3.create({parent:Ft||this._injector,providers:ht})}_removeOpenDialog(Ge){const wt=this.openDialogs.indexOf(Ge);wt>-1&&(this.openDialogs.splice(wt,1),this.openDialogs.length||(this._ariaHiddenElements.forEac
1h((Ot,Ft)=>{Ot?Ft.setAttribute("aria-hidden",Ot):Ft.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ge=this._overlayContainer.getContainerElement();if(Ge.parentElement){const wt=Ge.parentElement.children;for(let Ot=wt.length-1;Ot>-1;Ot--){let Ft=wt[Ot];Ft!==Ge&&"SCRIPT"!==Ft.nodeName&&"STYLE"!==Ft.nodeName&&!Ft.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ft,Ft.getAttribute("aria-hidden")),Ft.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ge){let wt=Ge.length;for(;wt--;)Ge[wt].close()}}return Be.\u0275fac=function(Ge){y.$Z()},Be.\u0275dir=y.lG2({type:Be}),Be})(),he=(()=>{class Be extends Fe{constructor(Ge,wt,Ot,Ft,ht,Ht,jt,cn){super(Ge,wt,Ft,Ht,jt,ht,E,V,A,cn)}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(y.LFG(s.aV),y.LFG(y.zs3),y.LFG(J.Ye,8),y.LFG(R,8),y.LFG(ee),y.LFG(Be,12),y.LFG(s.Xj),y.LFG(Q.Qb,8))},Be.\u0275prov=y.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),Ie=0,Se=(()=>{class Be{constructor(Ge,wt,Ot){this.dialogRef=Ge,this._elementRef=wt,this._dialog=Ot,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ce(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ge){const wt=Ge._matDialogClose||Ge._matDialogCloseResult;wt&&(this.dialogResult=wt.currentValue)}_onButtonClick(Ge){M(this.dialogRef,0===Ge.screenX&&0===Ge.screenY?"keyboard":"mouse",this.dialogResult)}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(y.Y36(E,8),y.Y36(y.SBq),y.Y36(he))},Be.\u0275dir=y.lG2({type:Be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ge,wt){1&Ge&&y.NdJ("click",function(Ft){return wt._onButtonClick(Ft)}),2&Ge&&y.uIk("aria-label",wt.ariaLabel||null)("type",wt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[y.TTD]}),Be})(),pe=(()=>{class Be{constructor(Ge,wt,Ot){this._dialogRef=Ge,this._elementRef=wt,this._dialog=Ot,this.id="mat-dialog-title-"+Ie++}ngOnInit(){this._dialogRef||(this._dialogRef=Ce(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Ge=this._dialogRef._containerInstance;Ge&&!Ge._ariaLabelledBy&&(Ge._ariaLabelledBy=this.id)})}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(y.Y36(E,8),y.Y36(y.SBq),y.Y36(he))},Be.\u0275dir=y.lG2({type:Be,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Ge,wt){2&Ge&&y.Ikx("id",wt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Be})(),ke=(()=>{class Be{}return Be.\u0275fac=function(Ge){return new(Ge||Be)},Be.\u0275dir=y.lG2({type:Be,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Be})(),ae=(()=>{class Be{}return Be.\u0275fac=function(Ge){return new(Ge||Be)},Be.\u0275dir=y.lG2({type:Be,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Be})();function Ce(Be,ut){let Ge=Be.nativeElement.parentElement;for(;Ge&&!Ge.classList.contains("mat-dialog-container");)Ge=Ge.parentElement;return Ge?ut.find(wt=>wt.id===Ge.id):null}let Ve=(()=>{class Be{}return Be.\u0275fac=function(Ge){return new(Ge||Be)},Be.\u0275mod=y.oAB({type:Be}),Be.\u0275inj=y.cJS({providers:[he,ge],imports:[[s.U8,_.eL,j.BQ],j.BQ]}),Be})()},4834:(Qt,Z,S)=>{"use strict";S.d(Z,{d:()=>j,t:()=>D});var s=S(5e3),_=S(3191),y=S(508);let j=(()=>{class L{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(W){this._vertical=(0,_.Ig)(W)}get inset(){return this._inset}set inset(W){this._inset=(0,_.Ig)(W)}}return L.\u0275fac=function(W){return new(W||L)},L.\u0275cmp=s.Xpm({type:L,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(W,G){2&W&&(s.uIk("aria-orientation",G.vertical?"vertical":"horizontal"),s.ekj("mat-divider-vertical",G.vertical)("mat-divider-horizontal",!G.vertical)("mat-divider-inset",G.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(W,G){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),L})(),D=(()=>{class L{}return L.\u0275fac=function(W){return new(W||L)},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[y.BQ],y.BQ]}),L})()},1125:(Qt,Z,S)=>{"use strict";S.d(Z,{pp:()=>Ge,To:()=>wt,ib:()=>pe,u4:()=>Be,yz:()=>Ve,yK:()=>ut});var s=S(5e3),_=S(3191),y=S(8929),j=S(2654),D=S(449);let L=0;const ce=new s.OlP("CdkAccordion");let W=(()=>{class Ot{constructor(){this._stateChanges=new y.xQ,this._openCloseAllActions=new y.xQ,this.id="cdk-accordion-"+L++,this._multi=!1}get multi(){return this._multi}set multi(ht){this._multi=(0,_.Ig)(ht)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ht){this._stateChanges.next(ht)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ot.\u0275fac=function(ht){return new(ht||Ot)},Ot.\u0275dir=s.lG2({type:Ot,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:ce,useExisting:Ot}]),s.TTD]}),Ot})(),G=0,$=(()=>{class Ot{constructor(ht,Ht,jt){this.accordion=ht,this._changeDetectorRef=Ht,this._expansionDispatcher=jt,this._openCloseAllSubscription=j.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+G++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=jt.listen((cn,hn)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===hn&&this.id!==cn&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(ht){ht=(0,_.Ig)(ht),this._expanded!==ht&&(this._expanded=ht,this.expandedChange.emit(ht),ht?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit
1(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ht){this._disabled=(0,_.Ig)(ht)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(ht=>{this.disabled||(this.expanded=ht)})}}return Ot.\u0275fac=function(ht){return new(ht||Ot)(s.Y36(ce,12),s.Y36(s.sBO),s.Y36(D.A8))},Ot.\u0275dir=s.lG2({type:Ot,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:ce,useValue:void 0}])]}),Ot})(),te=(()=>{class Ot{}return Ot.\u0275fac=function(ht){return new(ht||Ot)},Ot.\u0275mod=s.oAB({type:Ot}),Ot.\u0275inj=s.cJS({}),Ot})();var le=S(7429),J=S(9808),Me=S(508),Re=S(5664),me=S(5778),Q=S(1059),P=S(2198),N=S(2986),Y=S(1159),de=S(6360),re=S(8896),V=S(6787),ne=S(1777);const E=["body"];function M(Ot,Ft){}const A=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],R=["mat-expansion-panel-header","*","mat-action-row"];function ee(Ot,Ft){if(1&Ot&&s._UZ(0,"span",2),2&Ot){const ht=s.oxw();s.Q6J("@indicatorRotate",ht._getExpandedState())}}const B=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],K=["mat-panel-title","mat-panel-description","*"],ge=new s.OlP("MAT_ACCORDION"),Fe="225ms cubic-bezier(0.4,0.0,0.2,1)",he={indicatorRotate:(0,ne.X$)("indicatorRotate",[(0,ne.SB)("collapsed, void",(0,ne.oB)({transform:"rotate(0deg)"})),(0,ne.SB)("expanded",(0,ne.oB)({transform:"rotate(180deg)"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(Fe))]),bodyExpansion:(0,ne.X$)("bodyExpansion",[(0,ne.SB)("collapsed, void",(0,ne.oB)({height:"0px",visibility:"hidden"})),(0,ne.SB)("expanded",(0,ne.oB)({height:"*",visibility:"visible"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(Fe))])};let fe=(()=>{class Ot{constructor(ht){this._template=ht}}return Ot.\u0275fac=function(ht){return new(ht||Ot)(s.Y36(s.Rgc))},Ot.\u0275dir=s.lG2({type:Ot,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ot})(),Ie=0;const Se=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pe=(()=>{class Ot extends ${constructor(ht,Ht,jt,cn,hn,vn,ln){super(ht,Ht,jt),this._viewContainerRef=cn,this._animationMode=vn,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new y.xQ,this._headerId="mat-expansion-panel-header-"+Ie++,this._bodyAnimationDone=new y.xQ,this.accordion=ht,this._document=hn,this._bodyAnimationDone.pipe((0,me.x)((Jt,Xe)=>Jt.fromState===Xe.fromState&&Jt.toState===Xe.toState)).subscribe(Jt=>{"void"!==Jt.fromState&&("expanded"===Jt.toState?this.afterExpand.emit():"collapsed"===Jt.toState&&this.afterCollapse.emit())}),ln&&(this.hideToggle=ln.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ht){this._hideToggle=(0,_.Ig)(ht)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ht){this._togglePosition=ht}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,Q.O)(null),(0,P.h)(()=>this.expanded&&!this._portal),(0,N.q)(1)).subscribe(()=>{this._portal=new le.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ht){this._inputChanges.next(ht)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ht=this._document.activeElement,Ht=this._body.nativeElement;return ht===Ht||Ht.contains(ht)}return!1}}return Ot.\u0275fac=function(ht){return new(ht||Ot)(s.Y36(ge,12),s.Y36(s.sBO),s.Y36(D.A8),s.Y36(s.s_b),s.Y36(J.K0),s.Y36(de.Qb,8),s.Y36(Se,8))},Ot.\u0275cmp=s.Xpm({type:Ot,selectors:[["mat-expansion-panel"]],contentQueries:function(ht,Ht,jt){if(1&ht&&s.Suo(jt,fe,5),2&ht){let cn;s.iGM(cn=s.CRH())&&(Ht._lazyContent=cn.first)}},viewQuery:function(ht,Ht){if(1&ht&&s.Gf(E,5),2&ht){let jt;s.iGM(jt=s.CRH())&&(Ht._body=jt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ht,Ht){2&ht&&s.ekj("mat-expanded",Ht.expanded)("_mat-animation-noopable","NoopAnimations"===Ht._animationMode)("mat-expansion-panel-spacing",Ht._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:ge,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:R,decls:7,vars:4,consts:[["role","regi
1on",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ht,Ht){1&ht&&(s.F$t(A),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(cn){return Ht._bodyAnimationDone.next(cn)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,M,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&ht&&(s.xp6(1),s.Q6J("@bodyExpansion",Ht._getExpandedState())("id",Ht.id),s.uIk("aria-labelledby",Ht._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",Ht._portal))},directives:[le.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[he.bodyExpansion]},changeDetection:0}),Ot})();class ae{}const Ce=(0,Me.sb)(ae);let Ve=(()=>{class Ot extends Ce{constructor(ht,Ht,jt,cn,hn,vn,ln){super(),this.panel=ht,this._element=Ht,this._focusMonitor=jt,this._changeDetectorRef=cn,this._animationMode=vn,this._parentChangeSubscription=j.w.EMPTY;const Jt=ht.accordion?ht.accordion._stateChanges.pipe((0,P.h)(Xe=>!(!Xe.hideToggle&&!Xe.togglePosition))):re.E;this.tabIndex=parseInt(ln||"")||0,this._parentChangeSubscription=(0,V.T)(ht.opened,ht.closed,Jt,ht._inputChanges.pipe((0,P.h)(Xe=>!!(Xe.hideToggle||Xe.disabled||Xe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ht.closed.pipe((0,P.h)(()=>ht._containsFocus())).subscribe(()=>jt.focusVia(Ht,"program")),hn&&(this.expandedHeight=hn.expandedHeight,this.collapsedHeight=hn.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const ht=this._isExpanded();return ht&&this.expandedHeight?this.expandedHeight:!ht&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ht){switch(ht.keyCode){case Y.L_:case Y.K5:(0,Y.Vb)(ht)||(ht.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ht))}}focus(ht,Ht){ht?this._focusMonitor.focusVia(this._element,ht,Ht):this._element.nativeElement.focus(Ht)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ht=>{ht&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ot.\u0275fac=function(ht){return new(ht||Ot)(s.Y36(pe,1),s.Y36(s.SBq),s.Y36(Re.tE),s.Y36(s.sBO),s.Y36(Se,8),s.Y36(de.Qb,8),s.$8M("tabindex"))},Ot.\u0275cmp=s.Xpm({type:Ot,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ht,Ht){1&ht&&s.NdJ("
1click",function(){return Ht._toggle()})("keydown",function(cn){return Ht._keydown(cn)}),2&ht&&(s.uIk("id",Ht.panel._headerId)("tabindex",Ht.tabIndex)("aria-controls",Ht._getPanelId())("aria-expanded",Ht._isExpanded())("aria-disabled",Ht.panel.disabled),s.Udp("height",Ht._getHeaderHeight()),s.ekj("mat-expanded",Ht._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ht._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ht._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ht._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:K,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ht,Ht){1&ht&&(s.F$t(B),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,ee,1,1,"span",1)),2&ht&&(s.xp6(4),s.Q6J("ngIf",Ht._showToggle()))},directives:[J.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[he.indicatorRotate]},changeDetection:0}),Ot})(),Be=(()=>{class Ot{}return Ot.\u0275fac=function(ht){return new(ht||Ot)},Ot.\u0275dir=s.lG2({type:Ot,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ot})(),ut=(()=>{class Ot{}return Ot.\u0275fac=function(ht){return new(ht||Ot)},Ot.\u0275dir=s.lG2({type:Ot,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ot})(),Ge=(()=>{class Ot extends W{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(ht){this._hideToggle=(0,_.Ig)(ht)}ngAfterContentInit(){this._headers.changes.pipe((0,Q.O)(this._headers)).subscribe(ht=>{this._ownHeaders.reset(ht.filter(Ht=>Ht.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Re.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ht){this._keyManager.onKeydown(ht)}_handleHeaderFocus(ht){this._keyManager.updateActiveItem(ht)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ot.\u0275fac=function(){let Ft;return function(Ht){return(Ft||(Ft=s.n5z(Ot)))(Ht||Ot)}}(),Ot.\u0275dir=s.lG2({type:Ot,selectors:[["mat-accordion"]],contentQueries:function(ht,Ht,jt){if(1&ht&&s.Suo(jt,Ve,5),2&ht){let cn;s.iGM(cn=s.CRH())&&(Ht._headers=cn)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ht,Ht){2&ht&&s.ekj("mat-accordion-multi",Ht.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[s._Bn([{provide:ge,useExisting:Ot}]),s.qOj]}),Ot})(),wt=(()=>{class Ot{}return Ot.\u0275fac=function(ht){return new(ht||Ot)},Ot.\u0275mod=s.oAB({type:Ot}),Ot.\u0275inj=s.cJS({imports:[[J.ez,Me.BQ,te,le.eL]]}),Ot})()},7322:(Qt,Z,S)=>{"use strict";S.d(Z,{Eo:()=>Ie,G_:()=>vn,KE:()=>ln,R9:()=>Ft,TO:()=>he,bx:()=>Ve,hX:()=>Be,lN:()=>Jt,qo:()=>wt});var s=S(7144),_=S(9808),y=S(5e3),j=S(508),D=S(3191),L=S(8929),ce=S(6787),W=S(3753),G=S(1059),$=S(7625),te=S(2986),le=S(1777),J=S(6360),Me=S(226),Re=S(925);const me=["connectionContainer"],Q=["inputContainer"],P=["label"];function N(Xe,qe){1&Xe&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15)(3,"div",16)(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15)(7,"div",16)(8,"div",17),y.qZA(),y.BQk())}function Y(Xe,qe){if(1&Xe){const Pe=y.EpF();
1y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(Pe),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&Xe){const Pe=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=Pe.appearance)}}function de(Xe,qe){if(1&Xe&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&Xe){const Pe=y.oxw(2);y.xp6(3),y.Oqu(Pe._control.placeholder)}}function re(Xe,qe){1&Xe&&y.Hsn(0,3,["*ngSwitchCase","true"])}function V(Xe,qe){1&Xe&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function ne(Xe,qe){if(1&Xe){const Pe=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(Pe),y.oxw().updateOutlineGap()}),y.YNc(2,de,4,1,"ng-container",12),y.YNc(3,re,1,0,"ng-content",12),y.YNc(4,V,2,0,"span",22),y.qZA()}if(2&Xe){const Pe=y.oxw();y.ekj("mat-empty",Pe._control.empty&&!Pe._shouldAlwaysFloat())("mat-form-field-empty",Pe._control.empty&&!Pe._shouldAlwaysFloat())("mat-accent","accent"==Pe.color)("mat-warn","warn"==Pe.color),y.Q6J("cdkObserveContentDisabled","outline"!=Pe.appearance)("id",Pe._labelId)("ngSwitch",Pe._hasLabel()),y.uIk("for",Pe._control.id)("aria-owns",Pe._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!Pe.hideRequiredMarker&&Pe._control.required&&!Pe._control.disabled)}}function E(Xe,qe){1&Xe&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function M(Xe,qe){if(1&Xe&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&Xe){const Pe=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==Pe.color)("mat-warn","warn"==Pe.color)}}function A(Xe,qe){if(1&Xe&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&Xe){const Pe=y.oxw();y.Q6J("@transitionMessages",Pe._subscriptAnimationState)}}function R(Xe,qe){if(1&Xe&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&Xe){const Pe=y.oxw(2);y.Q6J("id",Pe._hintLabelId),y.xp6(1),y.Oqu(Pe.hintLabel)}}function ee(Xe,qe){if(1&Xe&&(y.TgZ(0,"div",27),y.YNc(1,R,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&Xe){const Pe=y.oxw();y.Q6J("@transitionMessages",Pe._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",Pe.hintLabel)}}const B=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],K=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ge=0;const Fe=new y.OlP("MatError");let he=(()=>{class Xe{constructor(Pe,tt){this.id="mat-error-"+ge++,Pe||tt.nativeElement.setAttribute("aria-live","polite")}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.$8M("aria-live"),y.Y36(y.SBq))},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Pe,tt){2&Pe&&y.uIk("id",tt.id)},inputs:{id:"id"},features:[y._Bn([{provide:Fe,useExisting:Xe}])]}),Xe})();const fe={transitionMessages:(0,le.X$)("transitionMessages",[(0,le.SB)("enter",(0,le.oB)({opacity:1,transform:"translateY(0%)"})),(0,le.eR)("void => enter",[(0,le.oB)({opacity:0,transform:"translateY(-5px)"}),(0,le.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ie=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275dir=y.lG2({type:Xe}),Xe})(),ae=0;const Ce=new y.OlP("MatHint");let Ve=(()=>{class Xe{constructor(){this.align="start",this.id="mat-hint-"+ae++}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Pe,tt){2&Pe&&(y.uIk("id",tt.id)("align",null),y.ekj("mat-form-field-hint-end","end"===tt.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:Ce,useExisting:Xe}])]}),Xe})(),Be=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["mat-label"]]}),Xe})(),ut=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["mat-placeholder"]]}),Xe})();const Ge=new y.OlP("MatPrefix");let wt=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["","matPrefix",""]],features:[y._Bn([{provide:Ge,useExisting:Xe}])]}),Xe})();const Ot=new y.OlP("MatSuffix");let Ft=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Ot,useExisting:Xe}])]}),Xe})(),ht=0;const cn=(0,j.pj)(class{constructor(Xe){this._elementRef=Xe}},"primary"),hn=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),vn=new y.OlP("MatFormField");let ln=(()=>{class Xe extends cn{constructor(Pe,tt,bt,un,It,Et,Rt){super(Pe),this._changeDetectorRef=tt,this._dir=bt,this._defaults=un,this._platform=It,this._ngZone=Et,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new L.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ht++,this._labelId="mat-form-field-label-"+ht++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Rt,this.appearance=un&&un.appearance?un.appearance:"legacy",this._hideRequiredMarker=!(!un||null==un.hideRequiredMarker)&&un.hideRequiredMarker}get appearance(){return this._appearance}set appearance(Pe){const tt=this._appearance;this._appearance=Pe||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&tt!==Pe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Pe){this._hideRequiredMarker=(0,D.Ig)(Pe)}
1_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Pe){this._hintLabel=Pe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Pe){Pe!==this._floatLabel&&(this._floatLabel=Pe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Pe){this._explicitFormFieldControl=Pe}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Pe=this._control;Pe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Pe.controlType}`),Pe.stateChanges.pipe((0,G.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Pe.ngControl&&Pe.ngControl.valueChanges&&Pe.ngControl.valueChanges.pipe((0,$.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,ce.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,G.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,G.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,$.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Pe){const tt=this._control?this._control.ngControl:null;return tt&&tt[Pe]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,W.R)(this._label.nativeElement,"transitionend").pipe((0,te.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Pe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Pe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const tt=this._hintChildren?this._hintChildren.find(un=>"start"===un.align):null,bt=this._hintChildren?this._hintChildren.find(un=>"end"===un.align):null;tt?Pe.push(tt.id):this._hintLabel&&Pe.push(this._hintLabelId),bt&&Pe.push(bt.id)}else this._errorChildren&&Pe.push(...this._errorChildren.map(tt=>tt.id));this._control.setDescribedByIds(Pe)}}_validateControlChild(){}updateOutlineGap(){const Pe=this._label?this._label.nativeElement:null,tt=this._connectionContainerRef.nativeElement,bt=".mat-form-field-outline-start",un=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Pe||!Pe.children.length||!Pe.textContent.trim()){const Pt=tt.querySelectorAll(`${bt}, ${un}`);for(let Dn=0;Dn<Pt.length;Dn++)Pt[Dn].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let It=0,Et=0;const Rt=tt.querySelectorAll(bt),Wt=tt.querySelectorAll(un);if(this._label&&this._label.nativeElement.children.length){const Pt=tt.getBoundingClientRect();if(0===Pt.width&&0===Pt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Dn=this._getStartEnd(Pt),Gn=Pe.children,Zn=this._getStartEnd(Gn[0].getBoundingClientRect());let zn=0;for(let nn=0;nn<Gn.length;nn++)zn+=Gn[nn].offsetWidth;It=Math.abs(Zn-Dn)-5,Et=zn>
10?.75*zn+10:0}for(let Pt=0;Pt<Rt.length;Pt++)Rt[Pt].style.width=`${It}px`;for(let Pt=0;Pt<Wt.length;Pt++)Wt[Pt].style.width=`${Et}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(Pe){return this._dir&&"rtl"===this._dir.value?Pe.right:Pe.left}_isAttachedToDOM(){const Pe=this._elementRef.nativeElement;if(Pe.getRootNode){const tt=Pe.getRootNode();return tt&&tt!==Pe}return document.documentElement.contains(Pe)}}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(Me.Is,8),y.Y36(hn,8),y.Y36(Re.t4),y.Y36(y.R0b),y.Y36(J.Qb,8))},Xe.\u0275cmp=y.Xpm({type:Xe,selectors:[["mat-form-field"]],contentQueries:function(Pe,tt,bt){if(1&Pe&&(y.Suo(bt,Ie,5),y.Suo(bt,Ie,7),y.Suo(bt,Be,5),y.Suo(bt,Be,7),y.Suo(bt,ut,5),y.Suo(bt,Fe,5),y.Suo(bt,Ce,5),y.Suo(bt,Ge,5),y.Suo(bt,Ot,5)),2&Pe){let un;y.iGM(un=y.CRH())&&(tt._controlNonStatic=un.first),y.iGM(un=y.CRH())&&(tt._controlStatic=un.first),y.iGM(un=y.CRH())&&(tt._labelChildNonStatic=un.first),y.iGM(un=y.CRH())&&(tt._labelChildStatic=un.first),y.iGM(un=y.CRH())&&(tt._placeholderChild=un.first),y.iGM(un=y.CRH())&&(tt._errorChildren=un),y.iGM(un=y.CRH())&&(tt._hintChildren=un),y.iGM(un=y.CRH())&&(tt._prefixChildren=un),y.iGM(un=y.CRH())&&(tt._suffixChildren=un)}},viewQuery:function(Pe,tt){if(1&Pe&&(y.Gf(me,7),y.Gf(Q,5),y.Gf(P,5)),2&Pe){let bt;y.iGM(bt=y.CRH())&&(tt._connectionContainerRef=bt.first),y.iGM(bt=y.CRH())&&(tt._inputContainerRef=bt.first),y.iGM(bt=y.CRH())&&(tt._label=bt.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(Pe,tt){2&Pe&&y.ekj("mat-form-field-appearance-standard","standard"==tt.appearance)("mat-form-field-appearance-fill","fill"==tt.appearance)("mat-form-field-appearance-outline","outline"==tt.appearance)("mat-form-field-appearance-legacy","legacy"==tt.appearance)("mat-form-field-invalid",tt._control.errorState)("mat-form-field-can-float",tt._canLabelFloat())("mat-form-field-should-float",tt._shouldLabelFloat())("mat-form-field-has-label",tt._hasFloatingLabel())("mat-form-field-hide-placeholder",tt._hideControlPlaceholder())("mat-form-field-disabled",tt._control.disabled)("mat-form-field-autofilled",tt._control.autofilled)("mat-focused",tt._control.focused)("ng-untouched",tt._shouldForward("untouched"))("ng-touched",tt._shouldForward("touched"))("ng-pristine",tt._shouldForward("pristine"))("ng-dirty",tt._shouldForward("dirty"))("ng-valid",tt._shouldForward("valid"))("ng-invalid",tt._shouldForward("invalid"))("ng-pending",tt._shouldForward("pending"))("_mat-animation-noopable",!tt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[y._Bn([{provide:vn,useExisting:Xe}]),y.qOj],ngContentSelectors:K,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(Pe,tt){1&Pe&&(y.F$t(B),y.TgZ(0,"div",0)(1,"div",1,2),y.NdJ("
1click",function(un){return tt._control.onContainerClick&&tt._control.onContainerClick(un)}),y.YNc(3,N,9,0,"ng-container",3),y.YNc(4,Y,2,1,"div",4),y.TgZ(5,"div",5,6),y.Hsn(7),y.TgZ(8,"span",7),y.YNc(9,ne,5,16,"label",8),y.qZA()(),y.YNc(10,E,2,0,"div",9),y.qZA(),y.YNc(11,M,2,4,"div",10),y.TgZ(12,"div",11),y.YNc(13,A,2,1,"div",12),y.YNc(14,ee,5,2,"div",13),y.qZA()()),2&Pe&&(y.xp6(3),y.Q6J("ngIf","outline"==tt.appearance),y.xp6(1),y.Q6J("ngIf",tt._prefixChildren.length),y.xp6(5),y.Q6J("ngIf",tt._hasFloatingLabel()),y.xp6(1),y.Q6J("ngIf",tt._suffixChildren.length),y.xp6(1),y.Q6J("ngIf","outline"!=tt.appearance),y.xp6(1),y.Q6J("ngSwitch",tt._getDisplayedMessages()),y.xp6(1),y.Q6J("ngSwitchCase","error"),y.xp6(1),y.Q6J("ngSwitchCase","hint"))},directives:[_.O5,s.wD,_.RF,_.n9],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}
1.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}
1.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[fe.transitionMessages]},changeDetection:0}),Xe})(),Jt=(()=>{class Xe{}return Xe.\u0275fac=function(Pe){return new(Pe||Xe)},Xe.\u0275mod=y.oAB({type:Xe}),Xe.\u0275inj=y.cJS({imports:[[_.ez,j.BQ,s.Q8],j.BQ]}),Xe})()},5245:(Qt,Z,S)=>{"use strict";S.d(Z,{Hw:()=>pe,Ps:()=>ke,jv:()=>M});var s=S(5e3),_=S(508),y=S(3191),j=S(9808),D=S(1086),L=S(1737),ce=S(567),W=S(2654),G=S(2868),$=S(4850),te=S(7221),le=S(537),J=S(8117),Me=S(2986),Re=S(520),me=S(2313);const Q=["*"];let P;function Y(ae){var Ce;return(null===(Ce=function N(){if(void 0===P&&(P=null,"undefined"!=typeof window)){const ae=window;void 0!==ae.trustedTypes&&(P=ae.trustedTypes.createPolicy("angular#components",{createHTML:Ce=>Ce}))}return P}())||void 0===Ce?void 0:Ce.createHTML(ae))||ae}function de(ae){return Error(`Unable to find icon with the name "${ae}"`)}function V(ae){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ae}".`)}function ne(ae){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ae}".`)}class E{constructor(Ce,Ve,Be){this.url=Ce,this.svgText=Ve,this.options=Be}}let M=(()=>{class ae{constructor(Ve,Be,ut,Ge){this._httpClient=Ve,this._sanitizer=Be,this._errorHandler=Ge,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClasse
vendor: 4,098 bytes, line 1
1sByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=ut}addSvgIcon(Ve,Be,ut){return this.addSvgIconInNamespace("",Ve,Be,ut)}addSvgIconLiteral(Ve,Be,ut){return this.addSvgIconLiteralInNamespace("",Ve,Be,ut)}addSvgIconInNamespace(Ve,Be,ut,Ge){return this._addSvgIconConfig(Ve,Be,new E(ut,null,Ge))}addSvgIconResolver(Ve){return this._resolvers.push(Ve),this}addSvgIconLiteralInNamespace(Ve,Be,ut,Ge){const wt=this._sanitizer.sanitize(s.q3G.HTML,ut);if(!wt)throw ne(ut);const Ot=Y(wt);return this._addSvgIconConfig(Ve,Be,new E("",Ot,Ge))}addSvgIconSet(Ve,Be){return this.addSvgIconSetInNamespace("",Ve,Be)}addSvgIconSetLiteral(Ve,Be){return this.addSvgIconSetLiteralInNamespace("",Ve,Be)}addSvgIconSetInNamespace(Ve,Be,ut){return this._addSvgIconSetConfig(Ve,new E(Be,null,ut))}addSvgIconSetLiteralInNamespace(Ve,Be,ut){const Ge=this._sanitizer.sanitize(s.q3G.HTML,Be);if(!Ge)throw ne(Be);const wt=Y(Ge);return this._addSvgIconSetConfig(Ve,new E("",wt,ut))}registerFontClassAlias(Ve,Be=Ve){return this._fontCssClassesByAlias.set(Ve,Be),this}classNameForFontAlias(Ve){return this._fontCssClassesByAlias.get(Ve)||Ve}setDefaultFontSetClass(Ve){return this._defaultFontSetClass=Ve,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ve){const Be=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,Ve);if(!Be)throw V(Ve);const ut=this._cachedIconsByUrl.get(Be);return ut?(0,D.of)(ee(ut)):this._loadSvgIconFromConfig(new E(Ve,null)).pipe((0,G.b)(Ge=>this._cachedIconsByUrl.set(Be,Ge)),(0,$.U)(Ge=>ee(Ge)))}getNamedSvgIcon(Ve,Be=""){const ut=B(Be,Ve);let Ge=this._svgIconConfigs.get(ut);if(Ge)return this._getSvgFromConfig(Ge);if(Ge=this._getIconConfigFromResolvers(Be,Ve),Ge)return this._svgIconConfigs.set(ut,Ge),this._getSvgFromConfig(Ge);const wt=this._iconSetConfigs.get(Be);return wt?this._getSvgFromIconSetConfigs(Ve,wt):(0,L._)(de(ut))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ve){return Ve.svgText?(0,D.of)(ee(this._svgElementFromConfig(Ve))):this._loadSvgIconFromConfig(Ve).pipe((0,$.U)(Be=>ee(Be)))}_getSvgFromIconSetConfigs(Ve,Be){const ut=this._extractIconWithNameFromAnySet(Ve,Be);if(ut)return(0,D.of)(ut);const Ge=Be.filter(wt=>!wt.svgText).map(wt=>this._loadSvgIconSetFromConfig(wt).pipe((0,te.K)(Ot=>{const ht=`Loading icon set URL: ${this._sanitizer.sanitize(s.q3G.RESOURCE_URL,wt.url)} failed: ${Ot.message}`;return this._errorHandler.handleError(new Error(ht)),(0,D.of)(null)})));return(0,ce.D)(Ge).pipe((0,$.U)(()=>{const wt=this._extractIconWithNameFromAnySet(Ve,Be);if(!wt)throw de(Ve);return wt}))}_extractIconWithNameFromAnySet(Ve,Be){for(let ut=Be.length-1;ut>=0;ut--){const Ge=Be[ut];if(Ge.svgText&&Ge.svgText.toString().indexOf(Ve)>-1){const wt=this._svgElementFromConfig(Ge),Ot=this._extractSvgIconFromSet(wt,Ve,Ge.options);if(Ot)return Ot}}return null}_loadSvgIconFromConfig(Ve){return this._fetchIcon(Ve).pipe((0,G.b)(Be=>Ve.svgText=Be),(0,$.U)(()=>this._svgElementFromConfig(Ve)))}_loadSvgIconSetFromConfig(Ve){return Ve.svgText?(0,D.of)(null):this._fetchIcon(Ve).pipe((0,G.b)(Be=>Ve.svgText=Be))}_extractSvgIconFromSet(Ve,Be,ut){const Ge=Ve.querySelector(`[id="${Be}"]`);if(!Ge)return null;const wt=Ge.cloneNode(!0);if(wt.removeAttribute("id"),"svg"===wt.nodeName.toLowerCase())return this._setSvgAttributes(wt,ut);if("symbol"===wt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(wt),ut);const Ot=this._svgElementFromString(Y("<svg></svg>"));return Ot.appendChild(wt),this._setSvgAttributes(Ot,ut)}_svgElementFromString(Ve){const Be=this._document.createElement("DIV");Be.innerHTML=Ve;const ut=Be.querySelector("svg");if(!ut)throw Error("<svg> tag not found");return ut}_toSvgElement(Ve){const Be=this._svgElementFromString(Y("<svg></svg>")),ut=Ve.attributes;for(let Ge=0;Ge<ut.length;Ge++){const{name:wt,value:Ot}=ut[Ge];"id"!==wt&&Be.setAttribute(wt,Ot)}for(let Ge=0;Ge<Ve.childNodes.length;Ge++)Ve.childNodes[Ge].nodeType===this._document.ELEMENT_NODE&&Be.appendChild(Ve.childNodes[Ge].
1cloneNode(!0));return Be}_setSvgAttributes(Ve,Be){return Ve.setAttribute("fit",""),Ve.setAttribute("height","100%"),Ve.setAttribute("width","100%"),Ve.setAttribute("preserveAspectRatio","xMidYMid meet"),Ve.setAttribute("focusable","false"),Be&&Be.viewBox&&Ve.setAttribute("viewBox",Be.viewBox),Ve}_fetchIcon(Ve){var Be;const{url:ut,options:Ge}=Ve,wt=null!==(Be=null==Ge?void 0:Ge.withCredentials)&&void 0!==Be&&Be;if(!this._httpClient)throw function re(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==ut)throw Error(`Cannot fetch icon from URL "${ut}".`);const Ot=this._sanitizer.sanitize(s.q3G.RESOURCE_URL,ut);if(!Ot)throw V(ut);const Ft=this._inProgressUrlFetches.get(Ot);if(Ft)return Ft;const ht=this._httpClient.get(Ot,{responseType:"text",withCredentials:wt}).pipe((0,$.U)(Ht=>Y(Ht)),(0,le.x)(()=>this._inProgressUrlFetches.delete(Ot)),(0,J.B)());return this._inProgressUrlFetches.set(Ot,ht),ht}_addSvgIconConfig(Ve,Be,ut){return this._svgIconConfigs.set(B(Ve,Be),ut),this}_addSvgIconSetConfig(Ve,Be){const ut=this._iconSetConfigs.get(Ve);return ut?ut.push(Be):this._iconSetConfigs.set(Ve,[Be]),this}_svgElementFromConfig(Ve){if(!Ve.svgElement){const Be=this._svgElementFromString(Ve.svgText);this._setSvgAttributes(Be,Ve.options),Ve.svgElement=Be}return Ve.svgElement}_getIconConfigFromResolvers(Ve,Be){for(let ut=0;ut<this._resolvers.length;ut++){const Ge=this._resolvers[ut](Be,Ve);if(Ge)return K(Ge)?new E(Ge.url,null,Ge.options):new E(Ge,null)}}}return ae.\u0275fac=function(Ve){return new(Ve||ae)(s.LFG(Re.eN,8),s.LFG(me.H7),s.LFG(j.K0,8),s.LFG(s.qLn))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();function ee(ae){return ae.cloneNode(!0)}function B(ae,Ce){return ae+":"+Ce}function K(ae){return!(!ae.url||!ae.options)}const ge=(0,_.pj)(class{constructor(ae){this._elementRef=ae}}),Fe=new s.OlP("mat-icon-location",{providedIn:"root",factory:function he(){const ae=(0,s.f3M)(j.K0),Ce=ae?ae.location:null;return{getPathname:()=>Ce?Ce.pathname+Ce.search:""}}}),fe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ie=fe.map(ae=>`[${ae}]`).join(", "),Se=/^url\(['"]?#(.*?)['"]?\)$/;let pe=(()=>{class ae extends ge{constructor(Ve,Be,ut,Ge,wt){super(Ve),this._iconRegistry=Be,this._location=Ge,this._errorHandler=wt,this._inline=!1,this._currentIconFetch=W.w.EMPTY,ut||Ve.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ve){this._inline=(0,y.Ig)(Ve)}get svgIcon(){return this._svgIcon}set svgIcon(Ve){Ve!==this._svgIcon&&(Ve?this._updateSvgIcon(Ve):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ve)}get fontSet(){return this._fontSet}set fontSet(Ve){const Be=this._cleanupFontValue(Ve);Be!==this._fontSet&&(this._fontSet=Be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ve){const Be=this._cleanupFontValue(Ve);Be!==this._fontIcon&&(this._fontIcon=Be,this._updateFontIconClasses())}_splitIconName(Ve){if(!Ve)return["",""];const Be=Ve.split(":");switch(Be.length){case 1:return["",Be[0]];case 2:return Be;default:throw Error(`Invalid icon name: "${Ve}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ve=this._elementsWithExternalReferences;if(Ve&&Ve.size){const Be=this._location.getPathname();Be!==this._previousPath&&(this._previousPath=Be,this._prependPathToReferences(Be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ve){this._clearSvgElement();const Be=this._location.getPathname();this._previousPath=Be,this._cacheChildrenWithExternalReferences(Ve),this._prependPathToReferences(Be),this._elementRef.nativeElement.appendChild(Ve)}_clearSvgElement(){const Ve=this._elementRef.nativeElement;let Be=Ve.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Be--;){const ut=Ve.childNodes[Be];(1!==ut.nodeType||"svg"===ut.nodeName.toLowerCase())&&ut.remove()}}
1_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ve=this._elementRef.nativeElement,Be=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();Be!=this._previousFontSetClass&&(this._previousFontSetClass&&Ve.classList.remove(this._previousFontSetClass),Be&&Ve.classList.add(Be),this._previousFontSetClass=Be),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Ve.classList.remove(this._previousFontIconClass),this.fontIcon&&Ve.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ve){return"string"==typeof Ve?Ve.trim().split(" ")[0]:Ve}_prependPathToReferences(Ve){const Be=this._elementsWithExternalReferences;Be&&Be.forEach((ut,Ge)=>{ut.forEach(wt=>{Ge.setAttribute(wt.name,`url('${Ve}#${wt.value}')`)})})}_cacheChildrenWithExternalReferences(Ve){const Be=Ve.querySelectorAll(Ie),ut=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ge=0;Ge<Be.length;Ge++)fe.forEach(wt=>{const Ot=Be[Ge],Ft=Ot.getAttribute(wt),ht=Ft?Ft.match(Se):null;if(ht){let Ht=ut.get(Ot);Ht||(Ht=[],ut.set(Ot,Ht)),Ht.push({name:wt,value:ht[1]})}})}_updateSvgIcon(Ve){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ve){const[Be,ut]=this._splitIconName(Ve);Be&&(this._svgNamespace=Be),ut&&(this._svgName=ut),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ut,Be).pipe((0,Me.q)(1)).subscribe(Ge=>this._setSvgElement(Ge),Ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Be}:${ut}! ${Ge.message}`))})}}}return ae.\u0275fac=function(Ve){return new(Ve||ae)(s.Y36(s.SBq),s.Y36(M),s.$8M("aria-hidden"),s.Y36(Fe),s.Y36(s.qLn))},ae.\u0275cmp=s.Xpm({type:ae,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Ve,Be){2&Ve&&(s.uIk("data-mat-icon-type",Be._usingFontIcon()?"font":"svg")("data-mat-icon-name",Be._svgName||Be.fontIcon)("data-mat-icon-namespace",Be._svgNamespace||Be.fontSet),s.ekj("mat-icon-inline",Be.inline)("mat-icon-no-color","primary"!==Be.color&&"accent"!==Be.color&&"warn"!==Be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.qOj],ngContentSelectors:Q,decls:1,vars:0,template:function(Ve,Be){1&Ve&&(s.F$t(),s.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),ae})(),ke=(()=>{class ae{}return ae.\u0275fac=function(Ve){return new(Ve||ae)},ae.\u0275mod=s.oAB({type:ae}),ae.\u0275inj=s.cJS({imports:[[_.BQ],_.BQ]}),ae})()},8833:(Qt,Z,S)=>{"use strict";S.d(Z,{Jk:()=>$,Nt:()=>Me,c:()=>Re});var s=S(3191),_=S(925),y=S(5e3),j=S(3075),D=S(508),L=S(7322),ce=S(8929),W=S(4533);const $=new y.OlP("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let le=0;const J=(0,D.FD)(class{constructor(me,Q,P,N){this._defaultErrorStateMatcher=me,this._parentForm=Q,this._parentFormGroup=P,this.ngControl=N}});let Me=(()=>{class me extends J{constructor(P,N,Y,de,re,V,ne,E,M,A){super(V,de,re,Y),this._elementRef=P,this._platform=N,this._autofillMonitor=E,this._formField=A,this._uid="mat-input-"+le++,this.focused=!1,this.stateChanges=new ce.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(
1B=>(0,_.qK)().has(B)),this._iOSKeyupListener=B=>{const K=B.target;!K.value&&0===K.selectionStart&&0===K.selectionEnd&&(K.setSelectionRange(1,1),K.setSelectionRange(0,0))};const R=this._elementRef.nativeElement,ee=R.nodeName.toLowerCase();this._inputValueAccessor=ne||R,this._previousNativeValue=this.value,this.id=this.id,N.IOS&&M.runOutsideAngular(()=>{P.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ee,this._isTextarea="textarea"===ee,this._isInFormField=!!A,this._isNativeSelect&&(this.controlType=R.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(P){this._disabled=(0,s.Ig)(P),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(P){this._id=P||this._uid}get required(){var P,N,Y,de;return null!==(de=null!==(P=this._required)&&void 0!==P?P:null===(Y=null===(N=this.ngControl)||void 0===N?void 0:N.control)||void 0===Y?void 0:Y.hasValidator(j.kI.required))&&void 0!==de&&de}set required(P){this._required=(0,s.Ig)(P)}get type(){return this._type}set type(P){this._type=P||"text",this._validateType(),!this._isTextarea&&(0,_.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(P){P!==this.value&&(this._inputValueAccessor.value=P,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(P){this._readonly=(0,s.Ig)(P)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(P=>{this.autofilled=P.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(P){this._elementRef.nativeElement.focus(P)}_focusChanged(P){P!==this.focused&&(this.focused=P,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var P,N;const Y=(null===(N=null===(P=this._formField)||void 0===P?void 0:P._hideControlPlaceholder)||void 0===N?void 0:N.call(P))?null:this.placeholder;if(Y!==this._previousPlaceholder){const de=this._elementRef.nativeElement;this._previousPlaceholder=Y,Y?de.setAttribute("placeholder",Y):de.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const P=this._elementRef.nativeElement.value;this._previousNativeValue!==P&&(this._previousNativeValue=P,this.stateChanges.next())}_validateType(){te.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let P=this._elementRef.nativeElement.validity;return P&&P.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const P=this._elementRef.nativeElement,N=P.options[0];return this.focused||P.multiple||!this.empty||!!(P.selectedIndex>-1&&N&&N.label)}return this.focused||!this.empty}setDescribedByIds(P){P.length?this._elementRef.nativeElement.setAttribute("aria-describedby",P.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const P=this._elementRef.nativeElement;return this._isNativeSelect&&(P.multiple||P.size>1)}}return me.\u0275fac=function(P){return new(P||me)(y.Y36(y.SBq),y.Y36(_.t4),y.Y36(j.a5,10),y.Y36(j.F,8),y.Y36(j.sg,8),y.Y36(D.rD),y.Y36($,10),y.Y36(W.Lq),y.Y36(y.R0b),y.Y36(L.G_,8))},me.\u0275dir=y.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(P,N){1&P&&y.NdJ("focus",function(){return N._focusChanged(!0)})("blur",function(){return N._focusChanged(!1)})("input",function(){return N._onInput()}),2&P&&(y.Ikx("disabled",N.disabled)("required",N.required),y.uIk("id",N.id)("data-placeholder",N.placeholder)("name",N.name||null)("readonly",N.readonly&&!N._isNativeSelect||null)("aria-invalid",N.empty&&N.required?null:N.errorState)("aria-required",N.required),y.ekj("mat-input-server",N._isServer)("mat-native-select-inline",N._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[y._Bn([{provide:L.Eo,useExisting:me}]),y.qOj,y.TTD]}),me})(),Re=(()=>{class me{}return me.\u0275fac=function(P){return new(P||me)},me.\u0275mod=y.oAB({type:me}),me.\u0275inj=y.cJS({providers:[D.rD],imports:[[W.Ky,L.lN,D.BQ],W.Ky,L.lN]}),me})()},4623:(Qt,Z,S)=>{"use strict";S.d(Z,{Hk:()=>E,Nh:()=>R,Tg:()=>B,Ub:()=>Ie,gs:()=>ee,i$:()=>M,ie:()=>Se,vS:()=>fe});
1var s=S(9808),_=S(5e3),y=S(508),j=S(3191),D=S(8929),L=S(7625),ce=S(1059),W=S(5664),G=S(449),$=S(1159),te=S(3075),le=S(4834);const J=["*"],Me='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{dis
1play:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',Re=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],me=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Q=["text"];function P(pe,ke){if(1&pe&&_._UZ(0,"mat-pseudo-checkbox",5),2&pe){const ae=_.oxw();_.Q6J("state",ae.selected?"checked":"unchecked")("disabled",ae.disabled)}}const N=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Y=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],de=(0,y.Id)((0,y.Kr)(class{})),re=(0,y.Kr)(class{}),V=new _.OlP("MatList"),ne=new _.OlP("MatNavList");let E=(()=>{class pe extends de{constructor(){super(...arguments),this._stateChanges=new D.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return pe.\u0275fac=function(){let ke;return function(Ce){return(ke||(ke=_.n5z(pe)))(Ce||pe)}}(),pe.\u0275cmp=_.Xpm({type:pe,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[_._Bn([{provide:ne,useExisting:pe}]),_.qOj,_.TTD],ngContentSelectors:J,decls:1,vars:0,template:function(ae,Ce){1&ae&&(_.F$t(),_.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{dis
1play:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{dis
1play:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),pe})(),M=(()=>{class pe extends de{constructor(ae){super(),this._elementRef=ae,this._stateChanges=new D.xQ,"action-list"===this._getListType()&&ae.nativeElement.classList.add("mat-action-list")}_getListType(){const ae=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ae?"list":"mat-action-list"===ae?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}
1return pe.\u0275fac=function(ae){return new(ae||pe)(_.Y36(_.SBq))},pe.\u0275cmp=_.Xpm({type:pe,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[_._Bn([{provide:V,useExisting:pe}]),_.qOj,_.TTD],ngContentSelectors:J,decls:1,vars:0,template:function(ae,Ce){1&ae&&(_.F$t(),_.Hsn(0))},styles:[Me],encapsulation:2,changeDetection:0}),pe})(),A=(()=>{class pe{}return pe.\u0275fac=function(ae){return new(ae||pe)},pe.\u0275dir=_.lG2({type:pe,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),pe})(),R=(()=>{class pe{}return pe.\u0275fac=function(ae){return new(ae||pe)},pe.\u0275dir=_.lG2({type:pe,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),pe})(),ee=(()=>{class pe{}return pe.\u0275fac=function(ae){return new(ae||pe)},pe.\u0275dir=_.lG2({type:pe,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),pe})(),B=(()=>{class pe extends re{constructor(ae,Ce,Ve,Be){super(),this._element=ae,this._isInteractiveList=!1,this._destroyed=new D.xQ,this._disabled=!1,this._isInteractiveList=!!(Ve||Be&&"action-list"===Be._getListType()),this._list=Ve||Be;const ut=this._getHostElement();"button"===ut.nodeName.toLowerCase()&&!ut.hasAttribute("type")&&ut.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>{Ce.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ae){this._disabled=(0,j.Ig)(ae)}ngAfterContentInit(){(0,y.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return pe.\u0275fac=function(ae){return new(ae||pe)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(ne,8),_.Y36(V,8))},pe.\u0275cmp=_.Xpm({type:pe,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ae,Ce,Ve){if(1&ae&&(_.Suo(Ve,A,5),_.Suo(Ve,R,5),_.Suo(Ve,y.X2,5)),2&ae){let Be;_.iGM(Be=_.CRH())&&(Ce._avatar=Be.first),_.iGM(Be=_.CRH())&&(Ce._icon=Be.first),_.iGM(Be=_.CRH())&&(Ce._lines=Be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(ae,Ce){2&ae&&_.ekj("mat-list-item-disabled",Ce.disabled)("mat-list-item-avatar",Ce._avatar||Ce._icon)("mat-list-item-with-avatar",Ce._avatar||Ce._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[_.qOj],ngContentSelectors:me,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(ae,Ce){1&ae&&(_.F$t(Re),_.TgZ(0,"span",0),_._UZ(1,"span",1),_.Hsn(2),_.TgZ(3,"span",2),_.Hsn(4,1),_.qZA(),_.Hsn(5,2),_.qZA()),2&ae&&(_.xp6(1),_.Q6J("matRippleTrigger",Ce._getHostElement())("matRippleDisabled",Ce._isRippleDisabled()))},directives:[y.wG],encapsulation:2,changeDetection:0}),pe})();const K=(0,y.Kr)(class{}),ge=(0,y.Kr)(class{}),Fe={provide:te.JU,useExisting:(0,_.Gpc)(()=>Ie),multi:!0};class he{constructor(ke,ae,Ce){this.source=ke,this.option=ae,this.options=Ce}}let fe=(()=>{class pe extends ge{constructor(ae,Ce,Ve){super(),this._element=ae,this._changeDetector=Ce,this.selectionList=Ve,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new _.vpe,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(ae){this._color=ae}get value(){return this._value}set value(ae){this.selected&&!this.selectionList.compareWith(ae,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=ae}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(ae){const Ce=(0,j.Ig)(ae);Ce!==this._disabled&&(this._disabled=Ce,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(ae){const Ce=(0,j.Ig)(ae);Ce!==this._selected&&(this._setSelected(Ce),(Ce||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const ae=this.selectionList;ae._value&&ae._value.some(Ve=>ae.compareWith(this._value,Ve))&&this._setSelected(!0);const Ce=this._selected;Promise.resolve().then(()=>{(this._selected||Ce)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){(0,y.E0)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const ae=this._hasFocus,Ce=this.selectionList._removeOptionFromList(this);ae&&Ce&&Ce.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(ae){return ae!==this._selected&&(this._selected=ae,ae?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(ae),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}
1return pe.\u0275fac=function(ae){return new(ae||pe)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36((0,_.Gpc)(()=>Ie)))},pe.\u0275cmp=_.Xpm({type:pe,selectors:[["mat-list-option"]],contentQueries:function(ae,Ce,Ve){if(1&ae&&(_.Suo(Ve,A,5),_.Suo(Ve,R,5),_.Suo(Ve,y.X2,5)),2&ae){let Be;_.iGM(Be=_.CRH())&&(Ce._avatar=Be.first),_.iGM(Be=_.CRH())&&(Ce._icon=Be.first),_.iGM(Be=_.CRH())&&(Ce._lines=Be)}},viewQuery:function(ae,Ce){if(1&ae&&_.Gf(Q,5),2&ae){let Ve;_.iGM(Ve=_.CRH())&&(Ce._text=Ve.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(ae,Ce){1&ae&&_.NdJ("focus",function(){return Ce._handleFocus()})("blur",function(){return Ce._handleBlur()})("click",function(){return Ce._handleClick()}),2&ae&&(_.uIk("aria-selected",Ce.selected)("aria-disabled",Ce.disabled)("tabindex",-1),_.ekj("mat-list-item-disabled",Ce.disabled)("mat-list-item-with-avatar",Ce._avatar||Ce._icon)("mat-primary","primary"===Ce.color)("mat-accent","primary"!==Ce.color&&"warn"!==Ce.color)("mat-warn","warn"===Ce.color)("mat-list-single-selected-option",Ce.selected&&!Ce.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[_.qOj],ngContentSelectors:Y,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(ae,Ce){1&ae&&(_.F$t(N),_.TgZ(0,"div",0),_._UZ(1,"div",1),_.YNc(2,P,1,2,"mat-pseudo-checkbox",2),_.TgZ(3,"div",3,4),_.Hsn(5),_.qZA(),_.Hsn(6,1),_.qZA()),2&ae&&(_.ekj("mat-list-item-content-reverse","after"==Ce.checkboxPosition),_.xp6(1),_.Q6J("matRippleTrigger",Ce._getHostElement())("matRippleDisabled",Ce._isRippleDisabled()),_.xp6(1),_.Q6J("ngIf",Ce.selectionList.multiple))},directives:[y.nP,y.wG,s.O5],encapsulation:2,changeDetection:0}),pe})(),Ie=(()=>{class pe extends K{constructor(ae,Ce,Ve,Be){super(),this._element=ae,this._changeDetector=Ve,this._focusMonitor=Be,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new _.vpe,this.tabIndex=0,this.color="accent",this.compareWith=(ut,Ge)=>ut===Ge,this._disabled=!1,this.selectedOptions=new G.Ov(this._multiple),this._tabIndex=-1,this._onChange=ut=>{},this._destroyed=new D.xQ,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,j.Ig)(ae),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(ae){const Ce=(0,j.Ig)(ae);Ce!==this._multiple&&(this._multiple=Ce,this.selectedOptions=new G.Ov(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){var ae;this._contentInitialized=!0,this._keyManager=new W.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe((0,ce.O)(null),(0,L.R)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe((0,L.R)(this._destroyed)).subscribe(Ce=>{if(Ce.added)for(let Ve of Ce.added)Ve.selected=!0;if(Ce.removed)for(let Ve of Ce.removed)Ve.selected=!1}),null===(ae=this._focusMonitor)||void 0===ae||ae.monitor(this._element).pipe((0,L.R)(this._destroyed)).subscribe(Ce=>{var Ve;if("keyboard"===Ce||"program"===Ce){let Be=0;for(let ut=0;ut<this.options.length;ut++)if(null===(Ve=this.options.get(ut))||void 0===Ve?void 0:Ve.selected){Be=ut;break}this._keyManager.setActiveItem(Be)}})}ngOnChanges(ae){const Ce=ae.disableRipple,Ve=ae.color;(Ce&&!Ce.firstChange||Ve&&!Ve.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){var ae;null===(ae=this._focusMonitor)||void 0===ae||ae.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(ae){this._element.nativeElement.focus(ae)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(ae){this._keyManager.updateActiveItem(ae)}
1_removeOptionFromList(ae){const Ce=this._getOptionIndex(ae);return Ce>-1&&this._keyManager.activeItemIndex===Ce&&(Ce>0?this._keyManager.updateActiveItem(Ce-1):0===Ce&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(Ce+1,this.options.length-1))),this._keyManager.activeItem}_keydown(ae){const Ce=ae.keyCode,Ve=this._keyManager,Be=Ve.activeItemIndex,ut=(0,$.Vb)(ae);switch(Ce){case $.L_:case $.K5:!ut&&!Ve.isTyping()&&(this._toggleFocusedOption(),ae.preventDefault());break;default:if(Ce===$.A&&this.multiple&&(0,$.Vb)(ae,"ctrlKey")&&!Ve.isTyping()){const Ge=this.options.some(wt=>!wt.disabled&&!wt.selected);this._setAllOptionsSelected(Ge,!0,!0),ae.preventDefault()}else Ve.onKeydown(ae)}this.multiple&&(Ce===$.LH||Ce===$.JH)&&ae.shiftKey&&Ve.activeItemIndex!==Be&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const ae=this._getSelectedOptionValues();this._onChange(ae),this._value=ae}}_emitChangeEvent(ae){this.selectionChange.emit(new he(this,ae[0],ae))}writeValue(ae){this._value=ae,this.options&&this._setOptionsFromValues(ae||[])}setDisabledState(ae){this.disabled=ae}registerOnChange(ae){this._onChange=ae}registerOnTouched(ae){this._onTouched=ae}_setOptionsFromValues(ae){this.options.forEach(Ce=>Ce._setSelected(!1)),ae.forEach(Ce=>{const Ve=this.options.find(Be=>!Be.selected&&this.compareWith(Be.value,Ce));Ve&&Ve._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(ae=>ae.selected).map(ae=>ae.value)}_toggleFocusedOption(){let ae=this._keyManager.activeItemIndex;if(null!=ae&&this._isValidIndex(ae)){let Ce=this.options.toArray()[ae];Ce&&!Ce.disabled&&(this._multiple||!Ce.selected)&&(Ce.toggle(),this._emitChangeEvent([Ce]))}}_setAllOptionsSelected(ae,Ce,Ve){const Be=[];return this.options.forEach(ut=>{(!Ce||!ut.disabled)&&ut._setSelected(ae)&&Be.push(ut)}),Be.length&&(this._reportValueChange(),Ve&&this._emitChangeEvent(Be)),Be}_isValidIndex(ae){return ae>=0&&ae<this.options.length}_getOptionIndex(ae){return this.options.toArray().indexOf(ae)}_markOptionsForCheck(){this.options&&this.options.forEach(ae=>ae._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return pe.\u0275fac=function(ae){return new(ae||pe)(_.Y36(_.SBq),_.$8M("tabindex"),_.Y36(_.sBO),_.Y36(W.tE))},pe.\u0275cmp=_.Xpm({type:pe,selectors:[["mat-selection-list"]],contentQueries:function(ae,Ce,Ve){if(1&ae&&_.Suo(Ve,fe,5),2&ae){let Be;_.iGM(Be=_.CRH())&&(Ce.options=Be)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(ae,Ce){1&ae&&_.NdJ("keydown",function(Be){return Ce._keydown(Be)}),2&ae&&_.uIk("aria-multiselectable",Ce.multiple)("aria-disabled",Ce.disabled.toString())("tabindex",Ce._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[_._Bn([Fe]),_.qOj,_.TTD],ngContentSelectors:J,decls:1,vars:0,template:function(ae,Ce){1&ae&&(_.F$t(),_.Hsn(0))},styles:[Me],encapsulation:2,changeDetection:0}),pe})(),Se=(()=>{class pe{}return pe.\u0275fac=function(ae){return new(ae||pe)},pe.\u0275mod=_.oAB({type:pe}),pe.\u0275inj=_.cJS({imports:[[y.uc,y.si,y.BQ,y.us,s.ez],y.uc,y.BQ,y.us,le.t]}),pe})()},2181:(Qt,Z,S)=>{"use strict";S.d(Z,{OP:()=>ae,Tx:()=>hn,VK:()=>Ge,p6:()=>cn});var s=S(5664),_=S(3191),y=S(1159),j=S(5e3),D=S(8929),L=S(2654),ce=S(6787),W=S(1086),G=S(8139),$=S(1059),te=S(7545),le=S(2986),J=S(7625),Me=S(2198),Re=S(943),me=S(1777),Q=S(7429),P=S(9808),N=S(508),Y=S(2845),de=S(925),re=S(226),V=S(9071);const ne=["mat-menu-item",""];function E(vn,ln){1&vn&&(j.O4$(),j.TgZ(0,"svg",2),j._UZ(1,"polygon",3),j.qZA())}const M=["*"];function A(vn,ln){if(1&vn){const Jt=j.EpF();j.TgZ(0,"div",0),j.NdJ("keydown",function(qe){return j.CHM(Jt),j.oxw()._handleKeydown(qe)})("click",function(){return j.CHM(Jt),j.oxw().closed.emit("click")})("@transformMenu.start",function(qe){return j.CHM(Jt),j.oxw()._onAnimationStart(qe)})("@transformMenu.done",function(qe){return j.CHM(Jt),j.oxw()._onAnimationDone(qe)}),j.TgZ(1,"div",1),j.Hsn(2),j.qZA()()}if(2&vn){const Jt=j.oxw();j.Q6J("id",Jt.panelId)("ngClass",Jt._classList)("@transformMenu",Jt._panelAnimationState),j.uIk("aria-label",Jt.ariaLabel||null)("aria-labelledby",Jt.ariaLabelledby||null)("aria-describedby",Jt.ariaDescribedby||null)}}const R={transformMenu:(0,me.X$)("transformMenu",[(0,me.SB)("void",(0,me.oB)({opacity:0,transform:"scale(0.8)"})),(0,me.eR)("void => enter",(0,me.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,me.oB)({opacity:1,transform:"scale(1)"}))),(0,me.eR)("* => void",(0,me.jt)("100ms 25ms linear",(0,me.oB)({opacity:0}
1)))]),fadeInItems:(0,me.X$)("fadeInItems",[(0,me.SB)("showing",(0,me.oB)({opacity:1})),(0,me.eR)("void => *",[(0,me.oB)({opacity:0}),(0,me.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},K=new j.OlP("MatMenuContent"),pe=new j.OlP("MAT_MENU_PANEL"),ke=(0,N.Kr)((0,N.Id)(class{}));let ae=(()=>{class vn extends ke{constructor(Jt,Xe,qe,Pe,tt){var bt;super(),this._elementRef=Jt,this._document=Xe,this._focusMonitor=qe,this._parentMenu=Pe,this._changeDetectorRef=tt,this.role="menuitem",this._hovered=new D.xQ,this._focused=new D.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(bt=null==Pe?void 0:Pe.addItem)||void 0===bt||bt.call(Pe,this)}focus(Jt,Xe){this._focusMonitor&&Jt?this._focusMonitor.focusVia(this._getHostElement(),Jt,Xe):this._getHostElement().focus(Xe),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Jt){this.disabled&&(Jt.preventDefault(),Jt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var Jt;const Xe=this._elementRef.nativeElement.cloneNode(!0),qe=Xe.querySelectorAll("mat-icon, .material-icons");for(let Pe=0;Pe<qe.length;Pe++)qe[Pe].remove();return(null===(Jt=Xe.textContent)||void 0===Jt?void 0:Jt.trim())||""}_setHighlighted(Jt){var Xe;this._highlighted=Jt,null===(Xe=this._changeDetectorRef)||void 0===Xe||Xe.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return vn.\u0275fac=function(Jt){return new(Jt||vn)(j.Y36(j.SBq),j.Y36(P.K0),j.Y36(s.tE),j.Y36(pe,8),j.Y36(j.sBO))},vn.\u0275cmp=j.Xpm({type:vn,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(Jt,Xe){1&Jt&&j.NdJ("click",function(Pe){return Xe._checkDisabled(Pe)})("mouseenter",function(){return Xe._handleMouseEnter()}),2&Jt&&(j.uIk("role",Xe.role)("tabindex",Xe._getTabIndex())("aria-disabled",Xe.disabled.toString())("disabled",Xe.disabled||null),j.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",Xe._highlighted)("mat-menu-item-submenu-trigger",Xe._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[j.qOj],attrs:ne,ngContentSelectors:M,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Jt,Xe){1&Jt&&(j.F$t(),j.Hsn(0),j._UZ(1,"div",0),j.YNc(2,E,2,0,"svg",1)),2&Jt&&(j.xp6(1),j.Q6J("matRippleDisabled",Xe.disableRipple||Xe.disabled)("matRippleTrigger",Xe._getHostElement()),j.xp6(1),j.Q6J("ngIf",Xe._triggersSubmenu))},directives:[N.wG,P.O5],encapsulation:2,changeDetection:0}),vn})();const Ce=new j.OlP("mat-menu-default-options",{providedIn:"root",factory:function Ve(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Be=0,ut=(()=>{class vn{constructor(Jt,Xe,qe,Pe){this._elementRef=Jt,this._ngZone=Xe,this._defaultOptions=qe,this._changeDetectorRef=Pe,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new j.n_E,this._tabSubscription=L.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new D.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new j.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Be++}get xPosition(){return this._xPosition}set xPosition(Jt){this._xPosition=Jt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Jt){this._yPosition=Jt,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Jt){this._overlapTrigger=(0,_.Ig)(Jt)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Jt){this._hasBackdrop=(0,_.Ig)(Jt)}set panelClass(Jt){const Xe=this._previousPanelClass;Xe&&Xe.length&&Xe.split(" ").forEach(qe=>{this._classList[qe]=!1}),this._previousPanelClass=Jt,Jt&&Jt.length&&(Jt.split(" ").forEach(qe=>{this._classList[qe]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Jt){this.panelClass=Jt}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new s.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>
1this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,$.O)(this._directDescendantItems),(0,te.w)(Jt=>(0,ce.T)(...Jt.map(Xe=>Xe._focused)))).subscribe(Jt=>this._keyManager.updateActiveItem(Jt)),this._directDescendantItems.changes.subscribe(Jt=>{var Xe;const qe=this._keyManager;if("enter"===this._panelAnimationState&&(null===(Xe=qe.activeItem)||void 0===Xe?void 0:Xe._hasFocus())){const Pe=Jt.toArray(),tt=Math.max(0,Math.min(Pe.length-1,qe.activeItemIndex||0));Pe[tt]&&!Pe[tt].disabled?qe.setActiveItem(tt):qe.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,$.O)(this._directDescendantItems),(0,te.w)(Xe=>(0,ce.T)(...Xe.map(qe=>qe._hovered))))}addItem(Jt){}removeItem(Jt){}_handleKeydown(Jt){const Xe=Jt.keyCode,qe=this._keyManager;switch(Xe){case y.hY:(0,y.Vb)(Jt)||(Jt.preventDefault(),this.closed.emit("keydown"));break;case y.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case y.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Xe===y.LH||Xe===y.JH)&&qe.setFocusOrigin("keyboard"),void qe.onKeydown(Jt)}Jt.stopPropagation()}focusFirstItem(Jt="program"){this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{let Xe=null;if(this._directDescendantItems.length&&(Xe=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Xe||!Xe.contains(document.activeElement)){const qe=this._keyManager;qe.setFocusOrigin(Jt).setFirstItemActive(),!qe.activeItem&&Xe&&Xe.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Jt){const Xe=Math.min(this._baseElevation+Jt,24),qe=`${this._elevationPrefix}${Xe}`,Pe=Object.keys(this._classList).find(tt=>tt.startsWith(this._elevationPrefix));(!Pe||Pe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[qe]=!0,this._previousElevation=qe)}setPositionClasses(Jt=this.xPosition,Xe=this.yPosition){var qe;const Pe=this._classList;Pe["mat-menu-before"]="before"===Jt,Pe["mat-menu-after"]="after"===Jt,Pe["mat-menu-above"]="above"===Xe,Pe["mat-menu-below"]="below"===Xe,null===(qe=this._changeDetectorRef)||void 0===qe||qe.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Jt){this._animationDone.next(Jt),this._isAnimating=!1}_onAnimationStart(Jt){this._isAnimating=!0,"enter"===Jt.toState&&0===this._keyManager.activeItemIndex&&(Jt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,$.O)(this._allItems)).subscribe(Jt=>{this._directDescendantItems.reset(Jt.filter(Xe=>Xe._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return vn.\u0275fac=function(Jt){return new(Jt||vn)(j.Y36(j.SBq),j.Y36(j.R0b),j.Y36(Ce),j.Y36(j.sBO))},vn.\u0275dir=j.lG2({type:vn,contentQueries:function(Jt,Xe,qe){if(1&Jt&&(j.Suo(qe,K,5),j.Suo(qe,ae,5),j.Suo(qe,ae,4)),2&Jt){let Pe;j.iGM(Pe=j.CRH())&&(Xe.lazyContent=Pe.first),j.iGM(Pe=j.CRH())&&(Xe._allItems=Pe),j.iGM(Pe=j.CRH())&&(Xe.items=Pe)}},viewQuery:function(Jt,Xe){if(1&Jt&&j.Gf(j.Rgc,5),2&Jt){let qe;j.iGM(qe=j.CRH())&&(Xe.templateRef=qe.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),vn})(),Ge=(()=>{class vn extends ut{constructor(Jt,Xe,qe,Pe){super(Jt,Xe,qe,Pe),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return vn.\u0275fac=function(Jt){return new(Jt||vn)(j.Y36(j.SBq),j.Y36(j.R0b),j.Y36(Ce),j.Y36(j.sBO))},vn.\u0275cmp=j.Xpm({type:vn,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Jt,Xe){2&Jt&&j.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[j._Bn([{provide:pe,useExisting:vn}]),j.qOj],ngContentSelectors:M,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Jt,Xe){1&Jt&&(j.F$t(),j.YNc(0,A,3,6,"ng-template"))},directives:[P.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[R.transformMenu,R.fadeInItems]},changeDetection:0}),vn})();const wt=new j.OlP("mat-menu-scroll-strategy"),Ft={provide:wt,deps:[Y.aV],useFactory:function Ot(vn){return()=>vn.scrollStrategies.reposition()}},Ht=(0,de.i$)({passive:!0});let jt=(()=>{class vn{constructor(Jt,Xe,qe,Pe,tt,bt,un,It,Et){this._overlay=Jt,this._element=Xe,this._viewContainerRef
1=qe,this._menuItemInstance=bt,this._dir=un,this._focusMonitor=It,this._ngZone=Et,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=L.w.EMPTY,this._hoverSubscription=L.w.EMPTY,this._menuCloseSubscription=L.w.EMPTY,this._handleTouchStart=Rt=>{(0,s.yG)(Rt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new j.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new j.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Pe,this._parentMaterialMenu=tt instanceof ut?tt:void 0,Xe.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ht),bt&&(bt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Jt){this.menu=Jt}get menu(){return this._menu}set menu(Jt){Jt!==this._menu&&(this._menu=Jt,this._menuCloseSubscription.unsubscribe(),Jt&&(this._menuCloseSubscription=Jt.close.subscribe(Xe=>{this._destroyMenu(Xe),("click"===Xe||"tab"===Xe)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Xe)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ht),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const Jt=this._createOverlay(),Xe=Jt.getConfig(),qe=Xe.positionStrategy;this._setPosition(qe),Xe.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,Jt.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ut&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,J.R)(this.menu.close)).subscribe(()=>{qe.withLockedPosition(!1).reapplyLastPosition(),qe.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(Jt,Xe){this._focusMonitor&&Jt?this._focusMonitor.focusVia(this._element,Jt,Xe):this._element.nativeElement.focus(Xe)}updatePosition(){var Jt;null===(Jt=this._overlayRef)||void 0===Jt||Jt.updatePosition()}_destroyMenu(Jt){if(!this._overlayRef||!this.menuOpen)return;const Xe=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Jt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Xe instanceof ut?(Xe._resetAnimation(),Xe.lazyContent?Xe._animationDone.pipe((0,Me.h)(qe=>"void"===qe.toState),(0,le.q)(1),(0,J.R)(Xe.lazyContent._attached)).subscribe({next:()=>Xe.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Xe.lazyContent&&Xe.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let Jt=0,Xe=this.menu.parentMenu;for(;Xe;)Jt++,Xe=Xe.parentMenu;this.menu.setElevation(Jt)}}_setIsMenuOpen(Jt){this._menuOpen=Jt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Jt)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const Jt=this._getOverlayConfig();this._subscribeToPositions(Jt.positionStrategy),this._overlayRef=this._overlay.create(Jt),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Y.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Jt){this.menu.setPositionClasses&&Jt.positionChanges.subscribe(Xe=>{const qe="start"===Xe.connectionPair.overlayX?"after":"before",Pe="top"===Xe.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(qe,Pe)):this.menu.setPositionClasses(qe,Pe)})}_setPosition(Jt){let[Xe,qe]="before"===this.menu.xPosition?["end","start"]:["start","end"],[Pe,tt]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[bt,un]=[Pe,tt],[It,Et]=[Xe,qe],Rt=0;this.triggersSubmenu()?(Et=Xe="before"===this.menu.xPosition?"start":"end",qe=It="end"===Xe?"start":"end",Rt="bottom"===Pe?8:-8):this.menu.overlapTrigger||(bt="top"===Pe?"bottom":"top",un="top"===tt?"bottom":"top"),Jt.withPositions([{originX:Xe,originY:bt,overlayX:It,overlayY:Pe,offsetY:Rt},{originX:qe,originY:bt,overlayX:Et,overlayY:Pe,offsetY:Rt},{originX:Xe,originY:un,overlayX:It,overlayY:tt,offsetY:-Rt},{originX:qe,originY:un,overlayX:Et,overlayY:tt,offsetY:-Rt}])}_menuClosingActions(){const Jt=this._overlayRef.backdropClick(),Xe=this._overlayRef.detachments(),qe=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,W.of)(),Pe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Me.h)(tt=>tt!==this._menuItemInstance),(0,Me.h)(()=>this._menuOpen)):(0,W.of)();return(0,ce.T)(Jt,qe,Pe,Xe)}_handleMousedown(Jt){(0,s.X6)(Jt)||(this._openedBy=0===Jt.button?"mouse":void 0,this.triggersSubmenu()&&Jt.preventDefault())}_handleKeydown(Jt){const Xe=Jt.keyCode;(Xe===y.K5||Xe===y.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Xe===y.SV&&"ltr"===this.dir||Xe===y.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Jt){this.triggersSubmenu()?(Jt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Me.h)(Jt=>Jt===this._menuItemInstance&&!Jt.disabled),(0,Re.g)(0,G.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ut&&this.menu._isAnimating?this.menu._animationDone.pipe((0,le.q)(1),(0,Re.g)(0,G.E),(0,J.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Q.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return vn.\u0275fac=function(Jt){return new(Jt||vn)(j.Y36(Y.aV),j.Y36(j.SBq),j.Y36(j.s_b),j.Y36(wt),j.Y36(pe,8),j.Y36(ae,10),j.Y36(re.Is,8),j.Y36(s.tE),j.Y36(j.R0b))},vn.\u0275dir=j.lG2({type:vn,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(Jt,Xe){1&Jt&&j.NdJ("
1click",function(Pe){return Xe._handleClick(Pe)})("mousedown",function(Pe){return Xe._handleMousedown(Pe)})("keydown",function(Pe){return Xe._handleKeydown(Pe)}),2&Jt&&j.uIk("aria-expanded",Xe.menuOpen||null)("aria-controls",Xe.menuOpen?Xe.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),vn})(),cn=(()=>{class vn extends jt{}return vn.\u0275fac=function(){let ln;return function(Xe){return(ln||(ln=j.n5z(vn)))(Xe||vn)}}(),vn.\u0275dir=j.lG2({type:vn,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[j.qOj]}),vn})(),hn=(()=>{class vn{}return vn.\u0275fac=function(Jt){return new(Jt||vn)},vn.\u0275mod=j.oAB({type:vn}),vn.\u0275inj=j.cJS({providers:[Ft],imports:[[P.ez,N.BQ,N.si,Y.U8],V.ZD,N.BQ]}),vn})()},6087:(Qt,Z,S)=>{"use strict";S.d(Z,{NW:()=>ne,TU:()=>E});var s=S(9808),_=S(5e3),y=S(508),j=S(7423),D=S(4107),L=S(7238),ce=S(3191),W=S(8929),G=S(7322);function $(M,A){if(1&M&&(_.TgZ(0,"mat-option",19),_._uU(1),_.qZA()),2&M){const R=A.$implicit;_.Q6J("value",R),_.xp6(1),_.hij(" ",R," ")}}function te(M,A){if(1&M){const R=_.EpF();_.TgZ(0,"mat-form-field",16)(1,"mat-select",17),_.NdJ("selectionChange",function(B){return _.CHM(R),_.oxw(2)._changePageSize(B.value)}),_.YNc(2,$,2,2,"mat-option",18),_.qZA()()}if(2&M){const R=_.oxw(2);_.Q6J("appearance",R._formFieldAppearance)("color",R.color),_.xp6(1),_.Q6J("value",R.pageSize)("disabled",R.disabled)("aria-label",R._intl.itemsPerPageLabel),_.xp6(1),_.Q6J("ngForOf",R._displayedPageSizeOptions)}}function le(M,A){if(1&M&&(_.TgZ(0,"div",20),_._uU(1),_.qZA()),2&M){const R=_.oxw(2);_.xp6(1),_.Oqu(R.pageSize)}}function J(M,A){if(1&M&&(_.TgZ(0,"div",12)(1,"div",13),_._uU(2),_.qZA(),_.YNc(3,te,3,6,"mat-form-field",14),_.YNc(4,le,2,1,"div",15),_.qZA()),2&M){const R=_.oxw();_.xp6(2),_.hij(" ",R._intl.itemsPerPageLabel," "),_.xp6(1),_.Q6J("ngIf",R._displayedPageSizeOptions.length>1),_.xp6(1),_.Q6J("ngIf",R._displayedPageSizeOptions.length<=1)}}function Me(M,A){if(1&M){const R=_.EpF();_.TgZ(0,"button",21),_.NdJ("click",function(){return _.CHM(R),_.oxw().firstPage()}),_.O4$(),_.TgZ(1,"svg",7),_._UZ(2,"path",22),_.qZA()()}if(2&M){const R=_.oxw();_.Q6J("matTooltip",R._intl.firstPageLabel)("matTooltipDisabled",R._previousButtonsDisabled())("matTooltipPosition","above")("disabled",R._previousButtonsDisabled()),_.uIk("aria-label",R._intl.firstPageLabel)}}function Re(M,A){if(1&M){const R=_.EpF();_.O4$(),_.kcU(),_.TgZ(0,"button",23),_.NdJ("click",function(){return _.CHM(R),_.oxw().lastPage()}),_.O4$(),_.TgZ(1,"svg",7),_._UZ(2,"path",24),_.qZA()()}if(2&M){const R=_.oxw();_.Q6J("matTooltip",R._intl.lastPageLabel)("matTooltipDisabled",R._nextButtonsDisabled())("matTooltipPosition","above")("disabled",R._nextButtonsDisabled()),_.uIk("aria-label",R._intl.lastPageLabel)}}let me=(()=>{class M{constructor(){this.changes=new W.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(R,ee,B)=>{if(0==B||0==ee)return`0 of ${B}`;const K=R*ee;return`${K+1} \u2013 ${K<(B=Math.max(B,0))?Math.min(K+ee,B):K+ee} of ${B}`}}}return M.\u0275fac=function(R){return new(R||M)},M.\u0275prov=_.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();const P={provide:me,deps:[[new _.FiY,new _.tp0,me]],useFactory:function Q(M){return M||new me}},de=new _.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),re=(0,y.Id)((0,y.dB)(class{}));let V=(()=>{class M extends re{constructor(R,ee,B){if(super(),this._intl=R,this._changeDetectorRef=ee,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new _.vpe,this._intlChanges=R.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),B){const{pageSize:K,pageSizeOptions:ge,hidePageSize:Fe,showFirstLastButtons:he}=B;null!=K&&(this._pageSize=K),null!=ge&&(this._pageSizeOptions=ge),null!=Fe&&(this._hidePageSize=Fe),null!=he&&(this._showFirstLastButtons=he)}}get pageIndex(){return this._pageIndex}set pageIndex(R){this._pageIndex=Math.max((0,ce.su)(R),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(R){this._length=(0,ce.su)(R),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(R){this._pageSize=Math.max((0,ce.su)(R),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(R){this._pageSizeOptions=(R||[]).map(ee=>(0,ce.su)(ee)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(R){this._hidePageSize=(0,ce.Ig)(R)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(R){this._showFirstLastButtons=(0,ce.Ig)(R)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const R=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(R)}previousPage(){if(!this.hasPreviousPage())return;const R=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(R)}firstPage(){if(!this.hasPreviousPage())return;const R=this.pageIndex;this.pageIndex=0,this._emitPageEvent(R)}lastPage(){if(!this.hasNextPage())return;const R=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(R)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const R=this.getNumberOfPages()-1;return this.pageIndex<R&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(R){const B=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/R)||0,this.pageSize=R,this._emitPageEvent(B
1)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((R,ee)=>R-ee),this._changeDetectorRef.markForCheck())}_emitPageEvent(R){this.page.emit({previousPageIndex:R,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return M.\u0275fac=function(R){_.$Z()},M.\u0275dir=_.lG2({type:M,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[_.qOj]}),M})(),ne=(()=>{class M extends V{constructor(R,ee,B){super(R,ee,B),B&&null!=B.formFieldAppearance&&(this._formFieldAppearance=B.formFieldAppearance)}}return M.\u0275fac=function(R){return new(R||M)(_.Y36(me),_.Y36(_.sBO),_.Y36(de,8))},M.\u0275cmp=_.Xpm({type:M,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[_.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(R,ee){1&R&&(_.TgZ(0,"div",0)(1,"div",1),_.YNc(2,J,5,3,"div",2),_.TgZ(3,"div",3)(4,"div",4),_._uU(5),_.qZA(),_.YNc(6,Me,3,5,"button",5),_.TgZ(7,"button",6),_.NdJ("click",function(){return ee.previousPage()}),_.O4$(),_.TgZ(8,"svg",7),_._UZ(9,"path",8),_.qZA()(),_.kcU(),_.TgZ(10,"button",9),_.NdJ("click",function(){return ee.nextPage()}),_.O4$(),_.TgZ(11,"svg",7),_._UZ(12,"path",10),_.qZA()(),_.YNc(13,Re,3,5,"button",11),_.qZA()()()),2&R&&(_.xp6(2),_.Q6J("ngIf",!ee.hidePageSize),_.xp6(3),_.hij(" ",ee._intl.getRangeLabel(ee.pageIndex,ee.pageSize,ee.length)," "),_.xp6(1),_.Q6J("ngIf",ee.showFirstLastButtons),_.xp6(1),_.Q6J("matTooltip",ee._intl.previousPageLabel)("matTooltipDisabled",ee._previousButtonsDisabled())("matTooltipPosition","above")("disabled",ee._previousButtonsDisabled()),_.uIk("aria-label",ee._intl.previousPageLabel),_.xp6(3),_.Q6J("matTooltip",ee._intl.nextPageLabel)("matTooltipDisabled",ee._nextButtonsDisabled())("matTooltipPosition","above")("disabled",ee._nextButtonsDisabled()),_.uIk("aria-label",ee._intl.nextPageLabel),_.xp6(3),_.Q6J("ngIf",ee.showFirstLastButtons))},directives:[G.KE,D.gD,y.ey,j.lW,s.O5,s.sg,L.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),M})(),E=(()=>{class M{}return M.\u0275fac=function(R){return new(R||M)},M.\u0275mod=_.oAB({type:M}),M.\u0275inj=_.cJS({providers:[P],imports:[[s.ez,j.ot,D.LD,L.AV,y.BQ]]}),M})()},5899:(Qt,Z,S)=>{"use strict";S.d(Z,{Cv:()=>Q,pW:()=>Re});var s=S(5e3),_=S(9808),y=S(508),j=S(3191),D=S(6360),L=S(2654),ce=S(3753),W=S(2198);const G=["primaryValueBar"],$=(0,y.pj)(class{constructor(P){this._elementRef=P}},"primary"),te=new s.OlP("mat-progress-bar-location",{providedIn:"root",factory:function le(){const P=(0,s.f3M)(_.K0),N=P?P.location:null;return{getPathname:()=>N?N.pathname+N.search:""}}}),J=new s.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let Me=0,Re=(()=>{class P extends ${constructor(Y,de,re,V,ne,E){super(Y),this._ngZone=de,this._animationMode=re,this._changeDetectorRef=E,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new s.vpe,this._animationEndSubscription=L.w.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+Me++;const M=V?V.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${M}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===re,ne&&(ne.color&&(this.color=this.defaultColor=ne.color),this.mode=ne.mode||this.mode)}get value(){return this._value}set value(Y){var de;this._value=me((0,j.su)(Y)||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Y){var de;this._bufferValue=me(Y||0),null===(de=this._changeDetectorRef)||void 0===de||de.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const Y=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,ce.R)(Y,"transitionend").pipe((0,W.h)(de=>de.target===Y)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return P.\u0275fac=function(Y){return new(Y||P)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(D.Qb,8),s.Y36(te,8),s.Y36(J,8),s.Y36(s.sBO))},P.\u0275cmp=s.Xpm({type:P,selectors:[["mat-progress-bar"]],viewQuery:function(Y,de){if(1&Y&&s.Gf(G,5),2&Y){let re;s.iGM(re=s.CRH())&&(de._primaryValueBar=re.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Y,de){2&Y&&(s.uIk("aria-valuenow","indeterminate"===de.mode||"query"===de.mode?null:de.value)("mode",de.mode),s.ekj("_mat-animation-noopable",de._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[s.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(Y,de){1&Y&&(s.TgZ(0,"div",0),s.O4$(),s.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),s._UZ(4,"circle",3),s.qZA()(),s._UZ(5,"rect",4),s.qZA(),s.kcU(),s._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),s.qZA()),2&Y&&(s.xp6(3),s.Q6J("id",de.progressbarId),s.xp6(2),s.uIk("fill",de._rectangleFillValue),s.xp6(1),s.Q6J("ngStyle",de._bufferTransform()),s.xp6(1),s.Q6J("ngStyle",de._primaryTransform()))},directives:[_.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;
1transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);
1transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),P})();function me(P,N=0,Y=100){return Math.max(N,Math.min(Y,P))}let Q=(()=>{class P{}return P.\u0275fac=function(Y){return new(Y||P)},P.\u0275mod=s.oAB({type:P}),P.\u0275inj=s.cJS({imports:[[_.ez,y.BQ],y.BQ]}),P})()},773:(Qt,Z,S)=>{"use strict";S.d(Z,{Cq:()=>P,Ou:()=>Q});var s=S(3191),_=S(925),y=S(9808),j=S(5e3),D=S(508),L=S(6360),ce=S(2654),W=S(9071);function G(Y,de){if(1&Y&&(j.O4$(),j._UZ(0,"circle",4)),2&Y){const re=j.oxw(),V=j.MAs(1);j.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+re._spinnerAnimationLabel)("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%")("transform-origin",re._getCircleTransformOrigin(V)),j.uIk("r",re._getCircleRadius())}}function $(Y,de){if(1&Y&&(j.O4$(),j._UZ(0,"circle",4)),2&Y){const re=j.oxw(),V=j.MAs(1);j.Udp("stroke-dashoffset",re._getStrokeDashOffset(),"px")("stroke-dasharray",re._getStrokeCircumference(),"px")("stroke-width",re._getCircleStrokeWidth(),"%")("transform-origin",re._getCircleTransformOrigin(V)),j.uIk("r",re._getCircleRadius())}}const J=(0,D.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),Me=new j.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Re(){return{diameter:100}}});class Q extends J{constructor(de,re,V,ne,E,M,A,R){super(de),this._document=V,this._diameter=100,this._value=0,this._resizeSubscription=ce.w.EMPTY,this.mode="determinate";const ee=Q._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),ee.has(V.head)||ee.set(V.head,new Set([100])),this._noopAnimations="NoopAnimations"===ne&&!!E&&!E._forceAnimations,"mat-spinner"===de.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),E&&(E.diameter&&(this.diameter=E.diameter),E.strokeWidth&&(this.strokeWidth=E.strokeWidth)),re.isBrowser&&re.SAFARI&&A&&M&&R&&(this._resizeSubscription=A.change(150).subscribe(()=>{"indeterminate"===this.mode&&R.run(()=>M.markForCheck())}))}get diameter(){return this._diameter}set diameter(de){this._diameter=(0,s.su)(de),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(de){this._strokeWidth=(0,s.su)(de)}get value(){return"determinate"===this.mode?this._value:0}set value(de){this._value=Math.max(0,Math.min(100,(0,s.su)(de)))}ngOnInit(){const de=this._elementRef.nativeElement;this._styleRoot=(0,_.kV)(de)||this._document.head,this._attachStyleNode(),de.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const de=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${de} ${de}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(de){var re;const V=50*(null!==(re=de.currentScale)&&void 0!==re?re:1);return`${V}% ${V}%`}_attachStyleNode(){const de=this._styleRoot,re=this._diameter,V=Q._diameters;let ne=V.get(de);if(!ne||!ne.has(re)){const E=this._document.createElement("style");E.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),E.textContent=this._getAnimationText(),de.appendChild(E),ne||(ne=new Set,V.set(de,ne)),ne.add(re)}}_getAnimationText(){const de=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*de).replace(/END_VALUE/g,""+.2*de).replace(/DIAMET
1ER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Q._diameters=new WeakMap,Q.\u0275fac=function(de){return new(de||Q)(j.Y36(j.SBq),j.Y36(_.t4),j.Y36(y.K0,8),j.Y36(L.Qb,8),j.Y36(Me),j.Y36(j.sBO),j.Y36(W.rL),j.Y36(j.R0b))},Q.\u0275cmp=j.Xpm({type:Q,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(de,re){2&de&&(j.uIk("aria-valuemin","determinate"===re.mode?0:null)("aria-valuemax","determinate"===re.mode?100:null)("aria-valuenow","determinate"===re.mode?re.value:null)("mode",re.mode),j.Udp("width",re.diameter,"px")("height",re.diameter,"px"),j.ekj("_mat-animation-noopable",re._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[j.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(de,re){1&de&&(j.O4$(),j.TgZ(0,"svg",0,1),j.YNc(2,G,1,11,"circle",2),j.YNc(3,$,1,9,"circle",3),j.qZA()),2&de&&(j.Udp("width",re.diameter,"px")("height",re.diameter,"px"),j.Q6J("ngSwitch","indeterminate"===re.mode),j.uIk("viewBox",re._getViewBox()),j.xp6(2),j.Q6J("ngSwitchCase",!0),j.xp6(1),j.Q6J("ngSwitchCase",!1))},directives:[y.RF,y.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let P=(()=>{class Y{}return Y.\u0275fac=function(re){return new(re||Y)},Y.\u0275mod=j.oAB({type:Y}),Y.\u0275inj=j.cJS({imports:[[D.BQ,y.ez],D.BQ]}),Y})()},9814:(Qt,Z,S)=>{"use strict";S.d(Z,{Fk:()=>V,U0:()=>re,VQ:()=>P});var s=S(5e3),_=S(508),y=S(3191),j=S(3075),D=S(6360),L=S(5664),ce=S(449);const W=["input"],G=function(ne){return{enterDuration:ne}},$=["*"],te=new s.OlP("mat-radio-default-options",{providedIn:"root",factory:function le(){return{color:"accent"}}});let J=0;const Me={provide:j.JU,useExisting:(0,s.Gpc)(()=>P),multi:!0};class Re{constructor(E,M){this.source=E,this.value=M}}const me=new s.OlP("MatRadioGroup");let Q=(()=>{class ne{constructor(M){this._changeDetector=M,this._value=null,this._name="mat-radio-group-"+J++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.vpe}get name(){return this._name}set name(M){this._name=M,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(M){this._labelPosition="before"===M?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(M){this._value!==M&&(this._value=M,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(M){this._selected=M,this.value=M?M.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(M){this._disabled=(0,y.Ig)(M),this._markRadiosForCheck()}get required(){return this._required}set required(M){this._required=(0,y.Ig)(M),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(M=>{M.name=this.name,M._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(A=>{A.checked=this.value===A.value,A.checked&&(this._selected=A)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Re(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(M=>M._markForCheck())}writeValue(M){this.value=M,this._changeDetector.markForCheck()}registerOnChange(M){this._controlValueAccessorChangeFn=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.disabled=M,this._changeDetector.markForCheck()}}return ne.\u0275fac=function(M){return new(M||ne)(s.Y36(s.sBO))}
1,ne.\u0275dir=s.lG2({type:ne,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ne})(),P=(()=>{class ne extends Q{}return ne.\u0275fac=function(){let E;return function(A){return(E||(E=s.n5z(ne)))(A||ne)}}(),ne.\u0275dir=s.lG2({type:ne,selectors:[["mat-radio-group"]],contentQueries:function(M,A,R){if(1&M&&s.Suo(R,re,5),2&M){let ee;s.iGM(ee=s.CRH())&&(A._radios=ee)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[s._Bn([Me,{provide:me,useExisting:ne}]),s.qOj]}),ne})();class N{constructor(E){this._elementRef=E}}const Y=(0,_.Kr)((0,_.sb)(N));let de=(()=>{class ne extends Y{constructor(M,A,R,ee,B,K,ge,Fe){super(A),this._changeDetector=R,this._focusMonitor=ee,this._radioDispatcher=B,this._providerOverride=ge,this._uniqueId="mat-radio-"+ ++J,this.id=this._uniqueId,this.change=new s.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=M,this._noopAnimations="NoopAnimations"===K,Fe&&(this.tabIndex=(0,y.su)(Fe,0)),this._removeUniqueSelectionListener=B.listen((he,fe)=>{he!==this.id&&fe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(M){const A=(0,y.Ig)(M);this._checked!==A&&(this._checked=A,A&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!A&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),A&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(M){this._value!==M&&(this._value=M,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===M),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(M){this._labelPosition=M}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(M){this._setDisabled((0,y.Ig)(M))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(M){this._required=(0,y.Ig)(M)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(M){this._color=M}get inputId(){return`${this.id||this._uniqueId}-input`}focus(M,A){A?this._focusMonitor.focusVia(this._inputElement,A,M):this._inputElement.nativeElement.focus(M)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(M=>{!M&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Re(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(M){M.stopPropagation()}_onInputInteraction(M){if(M.stopPropagation(),!this.checked&&!this.disabled){const A=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),A&&this.radioGroup._emitChangeEvent())}}_setDisabled(M){this._disabled!==M&&(this._disabled=M,this._changeDetector.markForCheck())}_updateTabIndex(){var M;const A=this.radioGroup;let R;if(R=A&&A.selected&&!this.disabled?A.selected===this?this.tabIndex:-1:this.tabIndex,R!==this._previousTabIndex){const ee=null===(M=this._inputElement)||void 0===M?void 0:M.nativeElement;ee&&(ee.setAttribute("tabindex",R+""),this._previousTabIndex=R)}}}return ne.\u0275fac=function(M){s.$Z()},ne.\u0275dir=s.lG2({type:ne,viewQuery:function(M,A){if(1&M&&s.Gf(W,5),2&M){let R;s.iGM(R=s.CRH())&&(A._inputElement=R.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[s.qOj]}),ne})(),re=(()=>{class ne extends de{constructor(M,A,R,ee,B,K,ge,Fe){super(M,A,R,ee,B,K,ge,Fe)}}return ne.\u0275fac=function(M){return new(M||ne)(s.Y36(me,8),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(L.tE),s.Y36(ce.A8),s.Y36(D.Qb,8),s.Y36(te,8),s.$8M("tabindex"))},ne.\u0275cmp=s.Xpm({type:ne,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(M,A){1&M&&s.NdJ("focus",function(){return A._inputElement.nativeElement.focus()}),2&M&&(s.uIk("tabindex",null)("id",A.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.ekj("mat-radio-checked",A.checked)("mat-radio-disabled",A.disabled)("_mat-animation-noopable",A._noopAnimations)("mat-primary","primary"===A.color)("mat-accent","accent"===A.color)("mat-warn","warn"===A.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[s.qOj],ngContentSelectors:$,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(M,A){if(1&M&&(s.F$t(),s.TgZ(0,"label",0,1)(2,"span",2),s._UZ(3,"span",3)(4,"span",4),s.TgZ(5,"input",5,6),s.NdJ("
1change",function(ee){return A._onInputInteraction(ee)})("click",function(ee){return A._onInputClick(ee)}),s.qZA(),s.TgZ(7,"span",7),s._UZ(8,"span",8),s.qZA()(),s.TgZ(9,"span",9)(10,"span",10),s._uU(11,"\xa0"),s.qZA(),s.Hsn(12),s.qZA()()),2&M){const R=s.MAs(1);s.uIk("for",A.inputId),s.xp6(5),s.Q6J("id",A.inputId)("checked",A.checked)("disabled",A.disabled)("required",A.required),s.uIk("name",A.name)("value",A.value)("aria-label",A.ariaLabel)("aria-labelledby",A.ariaLabelledby)("aria-describedby",A.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",R)("matRippleDisabled",A._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.VKq(17,G,A._noopAnimations?0:150)),s.xp6(2),s.ekj("mat-radio-label-before","before"==A.labelPosition)}},directives:[_.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),ne})(),V=(()=>{class ne{}return ne.\u0275fac=function(M){return new(M||ne)},ne.\u0275mod=s.oAB({type:ne}),ne.\u0275inj=s.cJS({imports:[[_.si,_.BQ],_.BQ]}),ne})()},4107:(Qt,Z,S)=>{"use strict";S.d(Z,{$L:()=>jt,LD:()=>vn,gD:()=>hn});var s=S(2845),_=S(9808),y=S(5e3),j=S(508),D=S(7322),L=S(9071),ce=S(5664),W=S(3191),G=S(449),$=S(1159),te=S(3075),le=S(8929),J=S(8514),Me=S(6787),Re=S(1059),me=S(7545),Q=S(2986),P=S(2198),N=S(4850),Y=S(5778),de=S(7625),re=S(1777),V=S(226);const ne=["trigger"],E=["panel"];function M(ln,Jt){if(1&ln&&(y.TgZ(0,"span",8),y._uU(1),y.qZA()),2&ln){const Xe=y.oxw();y.xp6(1),y.Oqu(Xe.placeholder)}}function A(ln,Jt){if(1&ln&&(y.TgZ(0,"span",12),y._uU(1),y.qZA()),2&ln){const Xe=y.oxw(2);y.xp6(1),y.Oqu(Xe.triggerValue)}}function R(ln,Jt){1&ln&&y.Hsn(0,0,["*ngSwitchCase","true"])}function ee(ln,Jt){if(1&ln&&(y.TgZ(0,"span",9),y.YNc(1,A,2,1,"span",10),y.YNc(2,R,1,0,"ng-content",11),y.qZA()),2&ln){const Xe=y.oxw();y.Q6J("ngSwitch",!!Xe.customTrigger),y.xp6(2),y.Q6J("ngSwitchCase",!0)}}function B(ln,Jt){if(1&ln){const Xe=y.EpF();y.TgZ(0,"div",13)(1,"div",14,15),y.NdJ("@transformPanel.done",function(Pe){return y.CHM(Xe),y.oxw()._panelDoneAnimatingStream.next(Pe.toState)})("keydown",function(Pe){return y.CHM(Xe),y.oxw()._handleKeydown(Pe)}),y.Hsn(3,1),y.qZA()()}if(2&ln){const Xe=y.oxw();y.Q6J("@transformPanelWrap",void 0),y.xp6(1),y.Gre("mat-select-panel ",Xe._getPanelTheme(
1),""),y.Udp("transform-origin",Xe._transformOrigin)("font-size",Xe._triggerFontSize,"px"),y.Q6J("ngClass",Xe.panelClass)("@transformPanel",Xe.multiple?"showing-multiple":"showing"),y.uIk("id",Xe.id+"-panel")("aria-multiselectable",Xe.multiple)("aria-label",Xe.ariaLabel||null)("aria-labelledby",Xe._getPanelAriaLabelledby())}}const K=[[["mat-select-trigger"]],"*"],ge=["mat-select-trigger","*"],Fe={transformPanelWrap:(0,re.X$)("transformPanelWrap",[(0,re.eR)("* => void",(0,re.IO)("@transformPanel",[(0,re.pV)()],{optional:!0}))]),transformPanel:(0,re.X$)("transformPanel",[(0,re.SB)("void",(0,re.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,re.SB)("showing",(0,re.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,re.SB)("showing-multiple",(0,re.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,re.eR)("void => *",(0,re.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,re.eR)("* => void",(0,re.jt)("100ms 25ms linear",(0,re.oB)({opacity:0})))])};let Se=0;const ut=new y.OlP("mat-select-scroll-strategy"),wt=new y.OlP("MAT_SELECT_CONFIG"),Ot={provide:ut,deps:[s.aV],useFactory:function Ge(ln){return()=>ln.scrollStrategies.reposition()}};class Ft{constructor(Jt,Xe){this.source=Jt,this.value=Xe}}const ht=(0,j.Kr)((0,j.sb)((0,j.Id)((0,j.FD)(class{constructor(ln,Jt,Xe,qe,Pe){this._elementRef=ln,this._defaultErrorStateMatcher=Jt,this._parentForm=Xe,this._parentFormGroup=qe,this.ngControl=Pe}})))),Ht=new y.OlP("MatSelectTrigger");let jt=(()=>{class ln{}return ln.\u0275fac=function(Xe){return new(Xe||ln)},ln.\u0275dir=y.lG2({type:ln,selectors:[["mat-select-trigger"]],features:[y._Bn([{provide:Ht,useExisting:ln}])]}),ln})(),cn=(()=>{class ln extends ht{constructor(Xe,qe,Pe,tt,bt,un,It,Et,Rt,Wt,Pt,Dn,Gn,Zn){var zn,nn,Vn;super(bt,tt,It,Et,Wt),this._viewportRuler=Xe,this._changeDetectorRef=qe,this._ngZone=Pe,this._dir=un,this._parentFormField=Rt,this._liveAnnouncer=Gn,this._defaultOptions=Zn,this._panelOpen=!1,this._compareWith=(Yt,Rn)=>Yt===Rn,this._uid="mat-select-"+Se++,this._triggerAriaLabelledBy=null,this._destroy=new le.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Se++,this._panelDoneAnimatingStream=new le.xQ,this._overlayPanelClass=(null===(zn=this._defaultOptions)||void 0===zn?void 0:zn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Vn=null===(nn=this._defaultOptions)||void 0===nn?void 0:nn.disableOptionCentering)&&void 0!==Vn&&Vn,this.ariaLabel="",this.optionSelectionChanges=(0,J.P)(()=>{const Yt=this.options;return Yt?Yt.changes.pipe((0,Re.O)(Yt),(0,me.w)(()=>(0,Me.T)(...Yt.map(Rn=>Rn.onSelectionChange)))):this._ngZone.onStable.pipe((0,Q.q)(1),(0,me.w)(()=>this.optionSelectionChanges))}),this.openedChange=new y.vpe,this._openedStream=this.openedChange.pipe((0,P.h)(Yt=>Yt),(0,N.U)(()=>{}
1)),this._closedStream=this.openedChange.pipe((0,P.h)(Yt=>!Yt),(0,N.U)(()=>{})),this.selectionChange=new y.vpe,this.valueChange=new y.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Zn?void 0:Zn.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Zn.typeaheadDebounceInterval),this._scrollStrategyFactory=Dn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Pt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Xe){this._placeholder=Xe,this.stateChanges.next()}get required(){var Xe,qe,Pe,tt;return null!==(tt=null!==(Xe=this._required)&&void 0!==Xe?Xe:null===(Pe=null===(qe=this.ngControl)||void 0===qe?void 0:qe.control)||void 0===Pe?void 0:Pe.hasValidator(te.kI.required))&&void 0!==tt&&tt}set required(Xe){this._required=(0,W.Ig)(Xe),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Xe){this._multiple=(0,W.Ig)(Xe)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Xe){this._disableOptionCentering=(0,W.Ig)(Xe)}get compareWith(){return this._compareWith}set compareWith(Xe){this._compareWith=Xe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Xe){this._assignValue(Xe)&&this._onChange(Xe)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Xe){this._typeaheadDebounceInterval=(0,W.su)(Xe)}get id(){return this._id}set id(Xe){this._id=Xe||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new G.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Y.x)(),(0,de.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,de.R)(this._destroy)).subscribe(Xe=>{Xe.added.forEach(qe=>
1qe.select()),Xe.removed.forEach(qe=>qe.deselect())}),this.options.changes.pipe((0,Re.O)(null),(0,de.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Xe=this._getTriggerAriaLabelledby(),qe=this.ngControl;if(Xe!==this._triggerAriaLabelledBy){const Pe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Xe,Xe?Pe.setAttribute("aria-labelledby",Xe):Pe.removeAttribute("aria-labelledby")}qe&&(this._previousControl!==qe.control&&(void 0!==this._previousControl&&null!==qe.disabled&&qe.disabled!==this.disabled&&(this.disabled=qe.disabled),this._previousControl=qe.control),this.updateErrorState())}ngOnChanges(Xe){Xe.disabled&&this.stateChanges.next(),Xe.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Xe){this._assignValue(Xe)}registerOnChange(Xe){this._onChange=Xe}registerOnTouched(Xe){this._onTouched=Xe}setDisabledState(Xe){this.disabled=Xe,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var Xe,qe;return this.multiple?(null===(Xe=this._selectionModel)||void 0===Xe?void 0:Xe.selected)||[]:null===(qe=this._selectionModel)||void 0===qe?void 0:qe.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Xe=this._selectionModel.selected.map(qe=>qe.viewValue);return this._isRtl()&&Xe.reverse(),Xe.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Xe){this.disabled||(this.panelOpen?this._handleOpenKeydown(Xe):this._handleClosedKeydown(Xe))}_handleClosedKeydown(Xe){const qe=Xe.keyCode,Pe=qe===$.JH||qe===$.LH||qe===$.oh||qe===$.SV,tt=qe===$.K5||qe===$.L_,bt=this._keyManager;if(!bt.isTyping()&&tt&&!(0,$.Vb)(Xe)||(this.multiple||Xe.altKey)&&Pe)Xe.preventDefault(),this.open();else if(!this.multiple){const un=this.selected;bt.onKeydown(Xe);const It=this.selected;It&&un!==It&&this._liveAnnouncer.announce(It.viewValue,1e4)}}_handleOpenKeydown(Xe){const qe=this._keyManager,Pe=Xe.keyCode,tt=Pe===$.JH||Pe===$.LH,bt=qe.isTyping();if(tt&&Xe.altKey)Xe.preventDefault(),this.close();else if(bt||Pe!==$.K5&&Pe!==$.L_||!qe.activeItem||(0,$.Vb)(Xe))if(!bt&&this._multiple&&Pe===$.A&&Xe.ctrlKey){Xe.preventDefault();const un=this.options.some(It=>!It.disabled&&!It.selected);this.options.forEach(It=>{It.disabled||(un?It.select():It.deselect())})}else{const un=qe.activeItemIndex;qe.onKeydown(Xe),this._multiple&&tt&&Xe.shiftKey&&qe.activeItem&&qe.activeItemIndex!==un&&qe.activeItem._selectViaInteraction()}else Xe.preventDefault(),qe.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Xe){if(this._selectionModel.selected.forEach(qe=>
1qe.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Xe)Array.isArray(Xe),Xe.forEach(qe=>this._selectOptionByValue(qe)),this._sortValues();else{const qe=this._selectOptionByValue(Xe);qe?this._keyManager.updateActiveItem(qe):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Xe){const qe=this.options.find(Pe=>{if(this._selectionModel.isSelected(Pe))return!1;try{return null!=Pe.value&&this._compareWith(Pe.value,Xe)}catch(tt){return!1}});return qe&&this._selectionModel.select(qe),qe}_assignValue(Xe){return!!(Xe!==this._value||this._multiple&&Array.isArray(Xe))&&(this.options&&this._setSelectionByValue(Xe),this._value=Xe,!0)}_initKeyManager(){this._keyManager=new ce.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,de.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,de.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Xe=(0,Me.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(Xe)).subscribe(qe=>{this._onSelect(qe.source,qe.isUserInput),qe.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Me.T)(...this.options.map(qe=>qe._stateChanges)).pipe((0,de.R)(Xe)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(Xe,qe){const Pe=this._selectionModel.isSelected(Xe);null!=Xe.value||this._multiple?(Pe!==Xe.selected&&(Xe.selected?this._selectionModel.select(Xe):this._selectionModel.deselect(Xe)),qe&&this._keyManager.setActiveItem(Xe),this.multiple&&(this._sortValues(),qe&&this.focus())):(Xe.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Xe.value)),Pe!==this._selectionModel.isSelected(Xe)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Xe=this.options.toArray();this._selectionModel.sort((qe,Pe)=>this.sortComparator?this.sortComparator(qe,Pe,Xe):Xe.indexOf(qe)-Xe.indexOf(Pe)),this.stateChanges.next()}}_propagateChanges(Xe){let qe=null;qe=this.multiple?this.selected.map(Pe=>Pe.value):this.selected?this.selected.value:Xe,this._value=qe,this.valueChange.emit(qe),this._onChange(qe),this.selectionChange.emit(this._getChangeEvent(qe)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var Xe;return!this._panelOpen&&!this.disabled&&(null===(Xe=this.options)||void 0===Xe?void 0:Xe.length)>0}focus(Xe){this._elementRef.nativeElement.focus(Xe)}_getPanelAriaLabelledby(){var Xe;if(this.ariaLabel)return null;const qe=null===(Xe=this._parentFormField)||void 0===Xe?void 0:Xe.getLabelId();return this.ariaLabelledby?(qe?qe+" ":"")+this.ariaLabelledby:qe}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var Xe;if(this.ariaLabel)return null;const qe=null===(Xe=this._parentFormField)||void 0===Xe?void 0:Xe.getLabelId();let Pe=(qe?qe+" ":"")+this._valueId;return this.ariaLabelledby&&(Pe+=" "+this.ariaLabelledby),Pe}_panelDoneAnimating(Xe){this.openedChange.emit(Xe)}setDescribedByIds(Xe){this._ariaDescribedby=Xe.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return ln.\u0275fac=function(Xe){return new(Xe||ln)(y.Y36(L.rL),y.Y36(y.sBO),y.Y36(y.R0b),y.Y36(j.rD),y.Y36(y.SBq),y.Y36(V.Is,8),y.Y36(te.F,8),y.Y36(te.sg,8),y.Y36(D.G_,8),y.Y36(te.a5,10),y.$8M("tabindex"),y.Y36(ut),y.Y36(ce.Kd),y.Y36(wt,8))},ln.\u0275dir=y.lG2({type:ln,viewQuery:function(Xe,qe){if(1&Xe&&(y.Gf(ne,5),y.Gf(E,5),y.Gf(s.pI,5)),2&Xe){let Pe;y.iGM(Pe=y.CRH())&&(qe.trigger=Pe.first),y.iGM(Pe=y.CRH())&&(qe.panel=Pe.first),y.iGM(Pe=y.CRH())&&(qe._overlayDir=Pe.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[y.qOj,y.TTD]}),ln})(),hn=(()=>{class ln extends cn{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(Xe,qe,Pe){const tt=this._getItemHeight();return Math.min(Math.max(0,tt*Xe-qe+tt/2),Pe)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,de.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}
1_scrollOptionIntoView(Xe){const qe=(0,j.CB)(Xe,this.options,this.optionGroups),Pe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===Xe&&1===qe?0:(0,j.jH)((Xe+qe)*Pe,Pe,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(Xe){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(Xe)}_getChangeEvent(Xe){return new Ft(this,Xe)}_calculateOverlayOffsetX(){const Xe=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),qe=this._viewportRuler.getViewportSize(),Pe=this._isRtl(),tt=this.multiple?56:32;let bt;if(this.multiple)bt=40;else if(this.disableOptionCentering)bt=16;else{let Et=this._selectionModel.selected[0]||this.options.first;bt=Et&&Et.group?32:16}Pe||(bt*=-1);const un=0-(Xe.left+bt-(Pe?tt:0)),It=Xe.right+bt-qe.width+(Pe?0:tt);un>0?bt+=un+8:It>0&&(bt-=It+8),this._overlayDir.offsetX=Math.round(bt),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(Xe,qe,Pe){const tt=this._getItemHeight(),bt=(tt-this._triggerRect.height)/2,un=Math.floor(256/tt);let It;return this.disableOptionCentering?0:(It=0===this._scrollTop?Xe*tt:this._scrollTop===Pe?(Xe-(this._getItemCount()-un))*tt+(tt-(this._getItemCount()*tt-256)%tt):qe-tt/2,Math.round(-1*It-bt))}_checkOverlayWithinViewport(Xe){const qe=this._getItemHeight(),Pe=this._viewportRuler.getViewportSize(),tt=this._triggerRect.top-8,bt=Pe.height-this._triggerRect.bottom-8,un=Math.abs(this._offsetY),Et=Math.min(this._getItemCount()*qe,256)-un-this._triggerRect.height;Et>bt?this._adjustPanelUp(Et,bt):un>tt?this._adjustPanelDown(un,tt,Xe):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(Xe,qe){const Pe=Math.round(Xe-qe);this._scrollTop-=Pe,this._offsetY-=Pe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(Xe,qe,Pe){const tt=Math.round(Xe-qe);if(this._scrollTop+=tt,this._offsetY+=tt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Pe)return this._scrollTop=Pe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const Xe=this._getItemHeight(),qe=this._getItemCount(),Pe=Math.min(qe*Xe,256),bt=qe*Xe-Pe;let un;un=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),un+=(0,j.CB)(un,this.options,this.optionGroups);const It=Pe/2;this._scrollTop=this._calculateOverlayScroll(un,It,bt),this._offsetY=this._calculateOverlayOffsetY(un,It,bt),this._checkOverlayWithinViewport(bt)}_getOriginBasedOnOption(){const Xe=this._getItemHeight(),qe=(Xe-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-qe+Xe/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return ln.\u0275fac=function(){let Jt;return function(qe){return(Jt||(Jt=y.n5z(ln)))(qe||ln)}}(),ln.\u0275cmp=y.Xpm({type:ln,selectors:[["mat-select"]],contentQueries:function(Xe,qe,Pe){if(1&Xe&&(y.Suo(Pe,Ht,5),y.Suo(Pe,j.ey,5),y.Suo(Pe,j.K7,5)),2&Xe){let tt;y.iGM(tt=y.CRH())&&(qe.customTrigger=tt.first),y.iGM(tt=y.CRH())&&(qe.options=tt),y.iGM(tt=y.CRH())&&(qe.optionGroups=tt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(Xe,qe){1&Xe&&y.NdJ("keydown",function(tt){return qe._handleKeydown(tt)})("focus",function(){return qe._onFocus()})("blur",function(){return qe._onBlur()}),2&Xe&&(y.uIk("id",qe.id)("tabindex",qe.tabIndex)("aria-controls",qe.panelOpen?qe.
1id+"-panel":null)("aria-expanded",qe.panelOpen)("aria-label",qe.ariaLabel||null)("aria-required",qe.required.toString())("aria-disabled",qe.disabled.toString())("aria-invalid",qe.errorState)("aria-describedby",qe._ariaDescribedby||null)("aria-activedescendant",qe._getAriaActiveDescendant()),y.ekj("mat-select-disabled",qe.disabled)("mat-select-invalid",qe.errorState)("mat-select-required",qe.required)("mat-select-empty",qe.empty)("mat-select-multiple",qe.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[y._Bn([{provide:D.Eo,useExisting:ln},{provide:j.HF,useExisting:ln}]),y.qOj],ngContentSelectors:ge,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Xe,qe){if(1&Xe&&(y.F$t(K),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return qe.toggle()}),y.TgZ(3,"div",2),y.YNc(4,M,2,1,"span",3),y.YNc(5,ee,3,2,"span",4),y.qZA(),y.TgZ(6,"div",5),y._UZ(7,"div",6),y.qZA()(),y.YNc(8,B,4,14,"ng-template",7),y.NdJ("backdropClick",function(){return qe.close()})("attach",function(){return qe._onAttached()})("detach",function(){return qe.close()})),2&Xe){const Pe=y.MAs(1);
1y.uIk("aria-owns",qe.panelOpen?qe.id+"-panel":null),y.xp6(3),y.Q6J("ngSwitch",qe.empty),y.uIk("id",qe._valueId),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngSwitchCase",!1),y.xp6(3),y.Q6J("cdkConnectedOverlayPanelClass",qe._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",qe._scrollStrategy)("cdkConnectedOverlayOrigin",Pe)("cdkConnectedOverlayOpen",qe.panelOpen)("cdkConnectedOverlayPositions",qe._positions)("cdkConnectedOverlayMinWidth",null==qe._triggerRect?null:qe._triggerRect.width)("cdkConnectedOverlayOffsetY",qe._offsetY)}},directives:[s.xu,_.RF,_.n9,_.ED,s.pI,_.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[Fe.transformPanelWrap,Fe.transformPanel]},changeDetection:0}),ln})(),vn=(()=>{class ln{}return ln.\u0275fac=function(Xe){return new(Xe||ln)},ln.\u0275mod=y.oAB({type:ln}),ln.\u0275inj=y.cJS({providers:[Ot],imports:[[_.ez,s.U8,j.Ng,j.BQ],L.ZD,D.lN,j.Ng,j.BQ]}),ln})()},8561:(Qt,Z,S)=>{"use strict";S.d(Z,{jA:()=>Be,kh:()=>ut,JX:()=>wt,TM:()=>Ot,Rh:()=>Ge,SJ:()=>Ft});var s=S(9071),_=S(9808),y=S(5e3),j=S(508),D=S(3191),L=S(1159),ce=S(8929),W=S(3753),G=S(6787),$=S(2198),te=S(4850),le=S(3489);function J(ht){return Ht=>Ht.lift(new Me(ht))}class Me{constructor(Ht){this.value=Ht}call(Ht,jt){return jt.subscribe(new Re(Ht,this.value))}}class Re extends le.L{constructor(Ht,jt){super(Ht),this.value=jt}_next(Ht){this.destination.next(this.value)}}var me=S(7625),Q=S(5778),P=S(2986),N=S(1059),Y=S(13),de=S(1777),re=S(6360),V=S(5664),ne=S(925),E=S(226);const M=["*"],A=["content"];function R(ht,Ht){if(1&ht){const jt=y.EpF();y.TgZ(0,"div",2),y.NdJ("click",function(){return y.CHM(jt),y.oxw()._onBackdropClicked()}),y.qZA()}if(2&ht){const jt=y.oxw();y.ekj("mat-drawer-shown",jt._isShowingBackdrop())}}function ee(ht,Ht){1&ht&&(y.TgZ(0,"mat-drawer-content"),y.Hsn(1,2),y.qZA())}const B=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],K=["mat-drawer","mat-drawer-content","*"];function ge(ht,Ht){if(1&ht){const jt=y.EpF();
1y.TgZ(0,"div",2),y.NdJ("click",function(){return y.CHM(jt),y.oxw()._onBackdropClicked()}),y.qZA()}if(2&ht){const jt=y.oxw();y.ekj("mat-drawer-shown",jt._isShowingBackdrop())}}function Fe(ht,Ht){1&ht&&(y.TgZ(0,"mat-sidenav-content"),y.Hsn(1,2),y.qZA())}const he=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],fe=["mat-sidenav","mat-sidenav-content","*"],Se={transformDrawer:(0,de.X$)("transform",[(0,de.SB)("open, open-instant",(0,de.oB)({transform:"none",visibility:"visible"})),(0,de.SB)("void",(0,de.oB)({"box-shadow":"none",visibility:"hidden"})),(0,de.eR)("void => open-instant",(0,de.jt)("0ms")),(0,de.eR)("void <=> open, open-instant => void",(0,de.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},ke=new y.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ce(){return!1}}),ae=new y.OlP("MAT_DRAWER_CONTAINER");let Ve=(()=>{class ht extends s.PQ{constructor(jt,cn,hn,vn,ln){super(hn,vn,ln),this._changeDetectorRef=jt,this._container=cn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return ht.\u0275fac=function(jt){return new(jt||ht)(y.Y36(y.sBO),y.Y36((0,y.Gpc)(()=>ut)),y.Y36(y.SBq),y.Y36(s.mF),y.Y36(y.R0b))},ht.\u0275cmp=y.Xpm({type:ht,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(jt,cn){2&jt&&y.Udp("margin-left",cn._container._contentMargins.left,"px")("margin-right",cn._container._contentMargins.right,"px")},features:[y._Bn([{provide:s.PQ,useExisting:ht}]),y.qOj],ngContentSelectors:M,decls:1,vars:0,template:function(jt,cn){1&jt&&(y.F$t(),y.Hsn(0))},encapsulation:2,changeDetection:0}),ht})(),Be=(()=>{class ht{constructor(jt,cn,hn,vn,ln,Jt,Xe,qe){this._elementRef=jt,this._focusTrapFactory=cn,this._focusMonitor=hn,this._platform=vn,this._ngZone=ln,this._interactivityChecker=Jt,this._doc=Xe,this._container=qe,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ce.xQ,this._animationEnd=new ce.xQ,this._animationState="void",this.openedChange=new y.vpe(!0),this._openedStream=this.openedChange.pipe((0,$.h)(Pe=>Pe),(0,te.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,$.h)(Pe=>Pe.fromState!==Pe.toState&&0===Pe.toState.indexOf("open")),J(void 0)),this._closedStream
1=this.openedChange.pipe((0,$.h)(Pe=>!Pe),(0,te.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,$.h)(Pe=>Pe.fromState!==Pe.toState&&"void"===Pe.toState),J(void 0)),this._destroyed=new ce.xQ,this.onPositionChanged=new y.vpe,this._modeChanged=new ce.xQ,this.openedChange.subscribe(Pe=>{Pe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,W.R)(this._elementRef.nativeElement,"keydown").pipe((0,$.h)(Pe=>Pe.keyCode===L.hY&&!this.disableClose&&!(0,L.Vb)(Pe)),(0,me.R)(this._destroyed)).subscribe(Pe=>this._ngZone.run(()=>{this.close(),Pe.stopPropagation(),Pe.preventDefault()}))}),this._animationEnd.pipe((0,Q.x)((Pe,tt)=>Pe.fromState===tt.fromState&&Pe.toState===tt.toState)).subscribe(Pe=>{const{fromState:tt,toState:bt}=Pe;(0===bt.indexOf("open")&&"void"===tt||"void"===bt&&0===tt.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(jt){(jt="end"===jt?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(jt),this._position=jt,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(jt){this._mode=jt,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(jt){this._disableClose=(0,D.Ig)(jt)}get autoFocus(){const jt=this._autoFocus;return null==jt?"side"===this.mode?"dialog":"first-tabbable":jt}set autoFocus(jt){("true"===jt||"false"===jt||null==jt)&&(jt=(0,D.Ig)(jt)),this._autoFocus=jt}get opened(){return this._opened}set opened(jt){this.toggle((0,D.Ig)(jt))}_forceFocus(jt,cn){this._interactivityChecker.isFocusable(jt)||(jt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const hn=()=>{jt.removeEventListener("blur",hn),jt.removeEventListener("mousedown",hn),jt.removeAttribute("tabindex")};jt.addEventListener("blur",hn),jt.addEventListener("mousedown",hn)})),jt.focus(cn)}_focusByCssSelector(jt,cn){let hn=this._elementRef.nativeElement.querySelector(jt);hn&&this._forceFocus(hn,cn)}_takeFocus(){if(!this._focusTrap)return;const jt=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(cn=>{!cn&&"function"==typeof this._elementRef.nativeElement.focus&&jt.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(jt){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,jt):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const jt=this._doc.activeElement;return!!jt&&this._elementRef.nativeElement.contains(jt)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var jt;this._focusTrap&&this._focusTrap.destroy(),null===(jt=this._anchor)||void 0===jt||jt.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(jt){return this.toggle(!0,jt)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(jt=!this.opened,cn){jt&&cn&&(this._openedVia=cn);const hn=this._setOpen(jt,!jt&&this._isFocusWithinDrawer(),this._openedVia||"program");return jt||(this._openedVia=null),hn}_setOpen(jt,cn,hn){return this._opened=jt,jt?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",cn&&this._restoreFocus(hn)),this._updateFocusTrapState(),new Promise(vn=>{this.openedChange.pipe((0,P.q)(1)).subscribe(ln=>vn(ln?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(jt){const cn=this._elementRef.nativeElement,hn=cn.parentNode;"end"===jt?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),hn.insertBefore(this._anchor,cn)),hn.appendChild(cn)):this._anchor&&this._anchor.parentNode.insertBefore(cn,this._anchor)}}return ht.\u0275fac=function(jt){return new(jt||ht)(y.Y36(y.SBq),y.Y36(V.q
1V),y.Y36(V.tE),y.Y36(ne.t4),y.Y36(y.R0b),y.Y36(V.ic),y.Y36(_.K0,8),y.Y36(ae,8))},ht.\u0275cmp=y.Xpm({type:ht,selectors:[["mat-drawer"]],viewQuery:function(jt,cn){if(1&jt&&y.Gf(A,5),2&jt){let hn;y.iGM(hn=y.CRH())&&(cn._content=hn.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(jt,cn){1&jt&&y.WFA("@transform.start",function(vn){return cn._animationStarted.next(vn)})("@transform.done",function(vn){return cn._animationEnd.next(vn)}),2&jt&&(y.uIk("align",null),y.d8E("@transform",cn._animationState),y.ekj("mat-drawer-end","end"===cn.position)("mat-drawer-over","over"===cn.mode)("mat-drawer-push","push"===cn.mode)("mat-drawer-side","side"===cn.mode)("mat-drawer-opened",cn.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:M,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(jt,cn){1&jt&&(y.F$t(),y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[Se.transformDrawer]},changeDetection:0}),ht})(),ut=(()=>{class ht{constructor(jt,cn,hn,vn,ln,Jt=!1,Xe){this._dir=jt,this._element=cn,this._ngZone=hn,this._changeDetectorRef=vn,this._animationMode=Xe,this._drawers=new y.n_E,this.backdropClick=new y.vpe,this._destroyed=new ce.xQ,this._doCheckSubject=new ce.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ce.xQ,jt&&jt.change.pipe((0,me.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),ln.change().pipe((0,me.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Jt}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(jt){this._autosize=(0,D.Ig)(jt)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(jt){this._backdropOverride=null==jt?null:(0,D.Ig)(jt)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,N.O)(this._allDrawers),(0,me.R)(this._destroyed)).subscribe(jt=>{this._drawers.reset(jt.filter(cn=>!cn._container||cn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,N.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(jt=>{this._watchDrawerToggle(jt),this._watchDrawerPosition(jt),this._watchDrawerMode(jt)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Y.b)(10),(0,me.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(jt=>jt.open())}close(){this._drawers.forEach(jt=>jt.close())}updateContentMargins(){let jt=0,cn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)jt+=this._left._getWidth();else if("push"==this._left.mode){const hn=this._left._getWidth();jt+=hn,cn-=hn}if(this._right&&this._right.opened)if("side"==this._right.mode)cn+=this._right._getWidth();else if("push"==this._right.mode){const hn=this._right._getWidth();cn+=hn,jt-=hn}jt=jt||null,cn=cn||null,(jt!==this._contentMargins.left||cn!==this._contentMargins.right)&&(this._contentMargins={left:jt,right:cn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(jt){jt._animationStarted.pipe((0,$.h)(cn=>cn.fromState!==cn.toState),(0,me.R)(this._drawers.changes)).subscribe(cn=>{"open-instant"!==cn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==jt.mode&&jt.openedChange.pipe((0,me.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(jt.opened))}_watchDrawerPosition(jt){!jt||jt.onPositionChanged.pipe((0,me.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1)).subscribe(()=>
1{this._validateDrawers()})})}_watchDrawerMode(jt){jt&&jt._modeChanged.pipe((0,me.R)((0,G.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(jt){const cn=this._element.nativeElement.classList,hn="mat-drawer-container-has-open";jt?cn.add(hn):cn.remove(hn)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(jt=>{"end"==jt.position?this._end=jt:this._start=jt}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(jt=>jt&&!jt.disableClose&&this._canHaveBackdrop(jt)).forEach(jt=>jt._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(jt){return"side"!==jt.mode||!!this._backdropOverride}_isDrawerOpen(jt){return null!=jt&&jt.opened}}return ht.\u0275fac=function(jt){return new(jt||ht)(y.Y36(E.Is,8),y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(y.sBO),y.Y36(s.rL),y.Y36(ke),y.Y36(re.Qb,8))},ht.\u0275cmp=y.Xpm({type:ht,selectors:[["mat-drawer-container"]],contentQueries:function(jt,cn,hn){if(1&jt&&(y.Suo(hn,Ve,5),y.Suo(hn,Be,5)),2&jt){let vn;y.iGM(vn=y.CRH())&&(cn._content=vn.first),y.iGM(vn=y.CRH())&&(cn._allDrawers=vn)}},viewQuery:function(jt,cn){if(1&jt&&y.Gf(Ve,5),2&jt){let hn;y.iGM(hn=y.CRH())&&(cn._userContent=hn.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(jt,cn){2&jt&&y.ekj("mat-drawer-container-explicit-backdrop",cn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[y._Bn([{provide:ae,useExisting:ht}])],ngContentSelectors:K,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(jt,cn){1&jt&&(y.F$t(B),y.YNc(0,R,1,2,"div",0),y.Hsn(1),y.Hsn(2,1),y.YNc(3,ee,2,0,"mat-drawer-content",1)),2&jt&&(y.Q6J("ngIf",cn.hasBackdrop),y.xp6(3),y.Q6J("ngIf",!cn._content))},directives:[Ve,_.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),ht})(),Ge=(()=>{class ht extends Ve{constructor(jt,cn,hn,vn,ln){super(jt,cn,hn,vn,ln)}}return ht.\u0275fac=function(jt){return new(jt||ht)(y.Y36(y.sBO),y.Y36((0,y.Gpc)(()=>Ot)),y.Y36(y.SBq),y.Y36(s.mF),y.Y36(y.R0b))},ht.\u0275cmp=y.Xpm({type:ht,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(jt,cn){2&jt&&y.Udp("margin-left",cn._container._contentMargins.left,"px")("margin-right",cn._container._contentMargins.right,"px")},features:[y._Bn([{provide:s.PQ,useExisting:ht}]),y.qOj],ngContentSelectors:M,decls:1,vars:0,template:function(jt,cn){1&jt&&(y.F$t(),y.Hsn(0))},encapsulation:2,changeDetection:0}),ht})(),wt=(()=>{class ht extends Be{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(jt){this._fixedInViewport=(0,D.Ig)(jt)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(jt){this._fixedTopGap=(0,D.su)(jt)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(jt){this._fixedBottomGap=(0,D.su)(jt)}}return ht.\u0275fac=function(){let Ht;return function(cn){return(Ht||(Ht=y.n5z(ht)))(cn||ht)}}(),ht.\u0275cmp=y.Xpm({type:ht,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(jt,cn){2&jt&&(y.uIk("align",null),y.Udp("top",cn.fixedInViewport?cn.fixedTopGap:null,"px")("bottom",cn.fixedInViewport?cn.fixedBottomGap:null,"px"),y.ekj("mat-drawer-end","end"===cn.position)("mat-drawer-over","over"===cn.mode)("mat-drawer-push","push"===cn.mode)("mat-drawer-side","side"===cn.mode)("mat-drawer-opened",cn.opened)("mat-sidenav-fixed",cn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[y.qOj],ngContentSelectors:M,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(jt,cn){1&jt&&(y.F$t(),y.TgZ(0,"div",0,1),y.Hsn(2),y.qZA())},directives:[s.PQ],encapsulation:2,data:{animation:[Se.transformDrawer]},changeDetection:0}),ht})(),Ot=(()=>{class ht extends ut{}return ht.\u0275fac=function(){let Ht;return function(cn){return(Ht||(Ht=y.n5z(ht)))(cn||ht)}}(),ht.\u0275cmp=y.Xpm({type:ht,selectors:[["mat-sidenav-container"]],contentQueries:function(jt,cn,hn){if(1&jt&&(y.Suo(hn,Ge,5),y.Suo(hn,wt,5)),2&jt){let vn;y.iGM(vn=y.CRH())&&(cn._content=vn.first),y.iGM(vn=y.CRH())&&(cn._allDrawers=vn)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(jt,cn){2&jt&&y.ekj("mat-drawer-container-explicit-backdrop",cn._backdropOverride)},exportAs:["matSidenavContainer"],features:[y._Bn([{provide:ae,useExisting:ht}]),y.qOj],ngContentSelectors:fe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(jt,cn){1&jt&&(y.F$t(he),y.YNc(0,ge,1,2,"div",0),y.Hsn(1),y.Hsn(2,1),y.YNc(3,Fe,2,0,"mat-sidenav-content",1)),2&jt&&(y.Q6J("ngIf",cn.hasBackdrop),y.xp6(3),y.Q6J("ngIf",!cn._content))},directives:[Ge,_.O5],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),ht})(),Ft=(()=>{class ht{}return ht.\u0275fac=function(jt){return new(jt||ht)},ht.\u0275mod=y.oAB({type:ht}),ht.\u0275inj=y.cJS({imports:[[_.ez,j.BQ,s.ZD],s.ZD,j.BQ]}),ht})()},2368:(Qt,Z,S)=>{"use strict";S.d(Z,{Rr:()=>P,rP:()=>re});
1var s=S(7144),_=S(5e3),y=S(508),j=S(3191),D=S(3075),L=S(6360),ce=S(5664);const W=["thumbContainer"],G=["toggleBar"],$=["input"],te=function(V){return{enterDuration:V}},le=["*"],J=new _.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Me=0;const Re={provide:D.JU,useExisting:(0,_.Gpc)(()=>P),multi:!0};class me{constructor(ne,E){this.source=ne,this.checked=E}}const Q=(0,y.sb)((0,y.pj)((0,y.Kr)((0,y.Id)(class{constructor(V){this._elementRef=V}}))));let P=(()=>{class V extends Q{constructor(E,M,A,R,ee,B){super(E),this._focusMonitor=M,this._changeDetectorRef=A,this.defaults=ee,this._onChange=K=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++Me,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new _.vpe,this.toggleChange=new _.vpe,this.tabIndex=parseInt(R)||0,this.color=this.defaultColor=ee.color||"accent",this._noopAnimations="NoopAnimations"===B}get required(){return this._required}set required(E){this._required=(0,j.Ig)(E)}get checked(){return this._checked}set checked(E){this._checked=(0,j.Ig)(E),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(E=>{E||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(E){E.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(E){E.stopPropagation()}writeValue(E){this.checked=!!E}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this._changeDetectorRef.markForCheck()}focus(E,M){M?this._focusMonitor.focusVia(this._inputElement,M,E):this._inputElement.nativeElement.focus(E)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new me(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return V.\u0275fac=function(E){return new(E||V)(_.Y36(_.SBq),_.Y36(ce.tE),_.Y36(_.sBO),_.$8M("tabindex"),_.Y36(J),_.Y36(L.Qb,8))},V.\u0275cmp=_.Xpm({type:V,selectors:[["mat-slide-toggle"]],viewQuery:function(E,M){if(1&E&&(_.Gf(W,5),_.Gf(G,5),_.Gf($,5)),2&E){let A;_.iGM(A=_.CRH())&&(M._thumbEl=A.first),_.iGM(A=_.CRH())&&(M._thumbBarEl=A.first),_.iGM(A=_.CRH())&&(M._inputElement=A.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(E,M){2&E&&(_.Ikx("id",M.id),_.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),_.ekj("mat-checked",M.checked)("mat-disabled",M.disabled)("mat-slide-toggle-label-before","before"==M.labelPosition)("_mat-animation-noopable",M._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[_._Bn([Re]),_.qOj],ngContentSelectors:le,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(E,M){if(1&E&&(_.F$t(),_.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),_.NdJ("change",function(R){return M._onChangeEvent(R)})("click",function(R){return M._onInputClick(R)}),_.qZA(),_.TgZ(6,"span",6,7),_._UZ(8,"span",8),_.TgZ(9,"span",9),_._UZ(10,"span",10),_.qZA()()(),_.TgZ(11,"span",11,12),_.NdJ("cdkObserveContent",function(){return M._onLabelTextChange()}),_.TgZ(13,"span",13),_._uU(14,"\xa0"),_.qZA(),_.Hsn(15),_.qZA()()),2&E){const A=_.MAs(1),R=_.MAs(12);_.uIk("for",M.inputId),_.xp6(2),_.ekj("mat-slide-toggle-bar-no-side-margin",!R.textContent||!R.textContent.trim()),_.xp6(2),_.Q6J("id",M.inputId)("required",M.required)("tabIndex",M.tabIndex)("checked",M.checked)("disabled",M.disabled),_.uIk("name",M.name)("aria-checked",M.checked)("aria-label",M.ariaLabel)("aria-labelledby",M.ariaLabelledby)("aria-describedby",M.ariaDescribedby),_.xp6(
15),_.Q6J("matRippleTrigger",A)("matRippleDisabled",M.disableRipple||M.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",_.VKq(18,te,M._noopAnimations?0:150))}},directives:[y.wG,s.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),V})(),de=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({}),V})(),re=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({imports:[[de,y.si,y.BQ,s.Q8],de,y.BQ]}),V})()},7261:(Qt,Z,S)=>{"use strict";S.d(Z,{Ve:()=>ne,ZX:()=>V,ux:()=>A});var s=S(2845),_=S(7429),y=S(9808),j=S(5e3),D=S(508),L=S(7423),ce=S(8929),W=S(2986),G=S(7625),$=S(1777),te=S(925),le=S(5113),J=S(5664);function Me(R,ee){if(1&R){const B=j.EpF();j.TgZ(0,"div",2)(1,"button",3),j.NdJ("click",function(){return j.CHM(B),j.oxw().action()}),j._uU(2),j.qZA()()}if(2&R){const B=j.oxw();j.xp6(2),j.Oqu(B.data.action)}}function Re(R,ee){}const me=new j.OlP("MatSnackBarData");class Q{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const P=Math.pow(2,31)-1;class N{constructor(ee,B){this._overlayRef=B,this._afterDismissed=new ce.xQ,this._afterOpened=new ce.xQ,this._onAction=new ce.xQ,this._dismissedByAction=!1,this.containerInstance=ee,ee._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(ee){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(ee,P))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let Y=(()=>{class R{constructor(B,K){this.snackBarRef=B,this.data=K}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return R.\u0275fac=function(B){return new(B||R)(j.Y36(N),j.Y36(me))},R.\u0275cmp=j.Xpm({type:R,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(B,K){1&B&&(j.TgZ(0,"span",0),j._uU(1),j.qZA(),j.YNc(2,Me,3,1,"div",1)),2&B&&(j.xp6(1),j.Oqu(K.data.message),j.xp6(1),j.Q6J("ngIf",K.hasAction))},directives:[L.lW,y.O5],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),R})();const de={snackBarState:(0,$.X$)("state",[(0,$.SB)("void, hidden",(0,$.oB)({transform:"scale(0.8)",opacity:0}
1)),(0,$.SB)("visible",(0,$.oB)({transform:"scale(1)",opacity:1})),(0,$.eR)("* => visible",(0,$.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,$.eR)("* => void, * => hidden",(0,$.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,$.oB)({opacity:0})))])};let re=(()=>{class R extends _.en{constructor(B,K,ge,Fe,he){super(),this._ngZone=B,this._elementRef=K,this._changeDetectorRef=ge,this._platform=Fe,this.snackBarConfig=he,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ce.xQ,this._onExit=new ce.xQ,this._onEnter=new ce.xQ,this._animationState="void",this.attachDomPortal=fe=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(fe)),this._live="assertive"!==he.politeness||he.announcementMessage?"off"===he.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(B){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(B)}attachTemplatePortal(B){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(B)}onAnimationEnd(B){const{fromState:K,toState:ge}=B;if(("void"===ge&&"void"!==K||"hidden"===ge)&&this._completeExit(),"visible"===ge){const Fe=this._onEnter;this._ngZone.run(()=>{Fe.next(),Fe.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,W.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const B=this._elementRef.nativeElement,K=this.snackBarConfig.panelClass;K&&(Array.isArray(K)?K.forEach(ge=>B.classList.add(ge)):B.classList.add(K)),"center"===this.snackBarConfig.horizontalPosition&&B.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&B.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const B=this._elementRef.nativeElement.querySelector("[aria-hidden]"),K=this._elementRef.nativeElement.querySelector("[aria-live]");if(B&&K){let ge=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&B.contains(document.activeElement)&&(ge=document.activeElement),B.removeAttribute("aria-hidden"),K.appendChild(B),null==ge||ge.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return R.\u0275fac=function(B){return new(B||R)(j.Y36(j.R0b),j.Y36(j.SBq),j.Y36(j.sBO),j.Y36(te.t4),j.Y36(Q))},R.\u0275cmp=j.Xpm({type:R,selectors:[["snack-bar-container"]],viewQuery:function(B,K){if(1&B&&j.Gf(_.Pl,7),2&B){let ge;j.iGM(ge=j.CRH())&&(K._portalOutlet=ge.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(B,K){1&B&&j.WFA("@state.done",function(Fe){return K.onAnimationEnd(Fe)}),2&B&&j.d8E("@state",K._animationState)},features:[j.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(B,K){1&B&&(j.TgZ(0,"div",0),j.YNc(1,Re,0,0,"ng-template",1),j.qZA(),j._UZ(2,"div")),2&B&&(j.xp6(2),j.uIk("aria-live",K._live)("role",K._role))},directives:[_.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[de.snackBarState]}}),R})(),V=(()=>{class R{}return R.\u0275fac=function(B){return new(B||R)},R.\u0275mod=j.oAB({type:R}),R.\u0275inj=j.cJS({imports:[[s.U8,_.eL,y.ez,L.ot,D.BQ],D.BQ]}),R})();const ne=new j.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function E(){return new Q}});let M=(()=>{class R{constructor(B,K,ge,Fe,he,fe){this._overlay=B,this._live=K,this._injector=ge,this._breakpointObserver=Fe,this._parentSnackBar=he,this._defaultConfig=fe,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const B=this._parentSnackBar;return B?B._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(B){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=B:this._snackBarRefAtThisLevel=B}openFromComponent(B,K){return this._attach(B,K)}openFromTemplate(B,K){return this._attach(B,K)}open(B,K="",ge){const Fe=Object.assign(Object.assign({},this._defaultConfig),ge);return Fe.data={message:B,action:K},Fe.announcementMessage===B&&(Fe.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Fe)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(B,K){const Fe=j.zs3.create({parent:K&&K.viewContainerRef&&K.viewContainerRef.injector||this._injector,providers:[{provide:Q,useValue:K}]}),he=new _.C5(this.snackBarContainerComponent,K.viewContainerRef,Fe),fe=B.attach(he);return fe.instance.snackBarConfig=K,fe.instance}_attach(B,K){const ge=Object.assign(Object.assign(Object.assign({},new Q),this._defaultConfig),K),Fe=this._createOverlay(ge),he=this._attachSnackBarContainer(Fe,ge),fe=new N(he,Fe);if(B instanceof j.Rgc){const Ie=new _.UE(B,null,{$implicit:ge.data,snackBarRef:fe});fe.instance=he.attachTemplatePortal(Ie)}else{const Ie=this._createInjector(ge,fe),Se=new _.C5(B,void 0,Ie),pe=he.attachComponentPortal(Se);fe.instance=pe.instance}return this._breakpointObserver.observe(le.u3.HandsetPortrait).pipe((0,G.R)(Fe.detachments())).subscribe(Ie=>{Fe.overlayElement.classList.toggle(this.handsetCssClass,Ie.matches)}),ge.announcementMessage&&he._onAnnounce.subscribe(()=>{this._live.announce(ge.announcementMessage,ge.politeness)}),this._animateSnackBar(fe,ge),this._openedSnackBarRef=fe,this._openedSnackBarRef}_animateSnackBar(B,K){B.afterDismissed().subscribe(()=>{this._openedSnackBarRef==B&&(this._openedSnackBarRef=null),K.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{B.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):B.containerInstance.enter(),K.duration&&K.duration>0&&B.afterOpened().subscribe(()=>
1B._dismissAfter(K.duration))}_createOverlay(B){const K=new s.X_;K.direction=B.direction;let ge=this._overlay.position().global();const Fe="rtl"===B.direction,he="left"===B.horizontalPosition||"start"===B.horizontalPosition&&!Fe||"end"===B.horizontalPosition&&Fe,fe=!he&&"center"!==B.horizontalPosition;return he?ge.left("0"):fe?ge.right("0"):ge.centerHorizontally(),"top"===B.verticalPosition?ge.top("0"):ge.bottom("0"),K.positionStrategy=ge,this._overlay.create(K)}_createInjector(B,K){return j.zs3.create({parent:B&&B.viewContainerRef&&B.viewContainerRef.injector||this._injector,providers:[{provide:N,useValue:K},{provide:me,useValue:B.data}]})}}return R.\u0275fac=function(B){return new(B||R)(j.LFG(s.aV),j.LFG(J.Kd),j.LFG(j.zs3),j.LFG(le.Yg),j.LFG(R,12),j.LFG(ne))},R.\u0275prov=j.Yz7({token:R,factory:R.\u0275fac}),R})(),A=(()=>{class R extends M{constructor(B,K,ge,Fe,he,fe){super(B,K,ge,Fe,he,fe),this.simpleSnackBarComponent=Y,this.snackBarContainerComponent=re,this.handsetCssClass="mat-snack-bar-handset"}}return R.\u0275fac=function(B){return new(B||R)(j.LFG(s.aV),j.LFG(J.Kd),j.LFG(j.zs3),j.LFG(le.Yg),j.LFG(R,12),j.LFG(ne))},R.\u0275prov=j.Yz7({token:R,factory:R.\u0275fac,providedIn:V}),R})()},4847:(Qt,Z,S)=>{"use strict";S.d(Z,{YE:()=>Y});var s=S(5e3),_=S(3191),y=S(508),j=S(8929);S(1777);const P=new s.OlP("MAT_SORT_DEFAULT_OPTIONS"),N=(0,y.dB)((0,y.Id)(class{}));let Y=(()=>{class E extends N{constructor(A){super(),this._defaultOptions=A,this.sortables=new Map,this._stateChanges=new j.xQ,this.start="asc",this._direction="",this.sortChange=new s.vpe}get direction(){return this._direction}set direction(A){this._direction=A}get disableClear(){return this._disableClear}set disableClear(A){this._disableClear=(0,_.Ig)(A)}register(A){this.sortables.set(A.id,A)}deregister(A){this.sortables.delete(A.id)}sort(A){this.active!=A.id?(this.active=A.id,this.direction=A.start?A.start:this.start):this.direction=this.getNextSortDirection(A),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(A){var R,ee,B;if(!A)return"";const K=null!==(ee=null!==(R=null==A?void 0:A.disableClear)&&void 0!==R?R:this.disableClear)&&void 0!==ee?ee:!!(null===(B=this._defaultOptions)||void 0===B?void 0:B.disableClear);let ge=function de(E,M){let A=["asc","desc"];return"desc"==E&&A.reverse(),M||A.push(""),A}(A.start||this.start,K),Fe=ge.indexOf(this.direction)+1;return Fe>=ge.length&&(Fe=0),ge[Fe]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return E.\u0275fac=function(A){return new(A||E)(s.Y36(P,8))},E.\u0275dir=s.lG2({type:E,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.qOj,s.TTD]}),E})()},2081:(Qt,Z,S)=>{"use strict";S.d(Z,{C0:()=>Et,VY:()=>ln,Vq:()=>Dn,T5:()=>zn});var s=S(7429),_=S(5664),y=S(3191),j=S(1159),D=S(9808),L=S(5e3),ce=S(925),W=S(8929),G=S(1086),$=S(1059),te=S(7625),le=S(226);function J(nn,Vn){1&nn&&L.Hsn(0)}const Me=["*"];let Re=(()=>{class nn{constructor(Yt){this._elementRef=Yt}focus(){this._elementRef.nativeElement.focus()}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(L.SBq))},nn.\u0275dir=L.lG2({type:nn,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),nn})(),me=(()=>{class nn{constructor(Yt){this.template=Yt}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(L.Rgc))},nn.\u0275dir=L.lG2({type:nn,selectors:[["","cdkStepLabel",""]]}),nn})(),Q=0;const Y=new L.OlP("STEPPER_GLOBAL_OPTIONS");let de=(()=>{class nn{constructor(Yt,Rn){this._stepper=Yt,this.interacted=!1,this.interactedStream=new L.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Rn||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(Yt){this._editable=(0,y.Ig)(Yt)}get optional(){return this._optional}set optional(Yt){this._optional=(0,y.Ig)(Yt)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(Yt){this._completedOverride=(0,y.Ig)(Yt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(Yt){this._customError=(0,y.Ig)(Yt)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var Yt;return null!==(Yt=this._stepperOptions.showError)&&void 0!==Yt?Yt:null!=this._customError}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36((0,L.Gpc)(()=>re)),L.Y36(Y,8))},nn.\u0275cmp=L.Xpm({type:nn,selectors:[["cdk-step"]],contentQueries:function(Yt,Rn,Mt){if(1&Yt&&L.Suo(Mt,me,5),2&Yt){let kt;L.iGM(kt=L.CRH())&&(Rn.stepLabel=kt.first)}},viewQuery:function(Yt,Rn){if(1&Yt&&L.Gf(L.Rgc,7),2&Yt){let Mt;L.iGM(Mt=L.CRH())&&(Rn.content=Mt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[L.TTD],ngContentSelectors:Me,decls:1,vars:0,template:function(Yt,Rn){1&Yt&&(L.F$t(),L.YNc(0,J,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),nn})(),re=(()=>{class nn{constructor(Yt,Rn,Mt,kt){this._dir=Yt,this._changeDetectorRef=Rn,this._elementRef=Mt,this._destroyed=new W.xQ,this.steps=new L.n_E,this._sortedHeaders=new L.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new L.vpe,this._orientation="horizontal",this._groupId=Q++}get linear(){return this._linear}set linear(Yt){this._linear=(0,y.Ig)(Yt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Yt){var Rn;const Mt=(0,y.su)(Yt);this.steps&&this._steps?(this._isValidIndex(Mt),null===(Rn=this.selected)||void 0===Rn||Rn._markAsInteracted(),this._selectedIndex!==Mt&&!this._anyControlsInvalidOrPending(Mt)&&(Mt>=this._selectedIndex||this.steps.toArray()[Mt].editable)&&this._updateSelectedItemIndex(Mt)):this._selectedIndex=Mt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Yt){this.selectedIndex=Yt&&this.steps?this.steps.toArray().indexOf(Yt):-1}get orientation(){return this._orientation}set orientation(Yt){this._orientation=Yt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Yt)}ngAfterContentInit(){this._steps.changes.pipe((0,$.O)(this._steps),(0,te.R)(this._destroyed)).subscribe(Yt=>{this.steps.reset(Yt.filter(Rn=>Rn._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,$.O)(this._stepHeader),(0,te.R)(this._destroyed)).subscribe(Yt=>{this._sortedHeaders.reset(Yt.toArray().sort((Rn,Mt)=>Rn._elementRef.nativeElement.compareDocumentPosition(Mt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new _.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,G.of)()).pipe((0,$.O)(this._layoutDirection()),(0,te.R)(this._destroyed)).subscribe(Yt=>this._keyManager.withHorizontalOrientation(Yt)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Yt=>Yt.reset()),this._stateChanged()}_getStepLabelId(Yt){return`cdk-step-label-${this._groupId}-${Yt}`}_getStepContentId(Yt){return`cdk-step-content-${this._groupId}-${Yt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Yt){const Rn=Yt-this._selectedIndex;return Rn<0?"rtl"===this._layoutDirection()?"next":"previous":Rn>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Yt,Rn="number"){const Mt=this.steps.toArray()[Yt],kt=this._isCurrentStep(Yt);return Mt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Mt,kt):this._getGuidelineLogic(Mt,kt,Rn)}_getDefaultIndicatorLogic(Yt,Rn){return Yt._showError()&&Yt.hasError&&!Rn?"error":!Yt.completed||Rn?"number":Yt.editable?"edit":"done"}_getGuidelineLogic(Yt,Rn,Mt="number"){return Yt._showError()&&Yt.hasError&&!Rn?"error":Yt.completed&&!Rn?"done":Yt.completed&&Rn?Mt:Yt.editable&&Rn?"edit":Mt}_isCurrentStep(Yt){return this._selectedIndex===Yt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Yt){const Rn=this.steps.toArray();this.selectionChange.emit({selectedIndex:Yt,previouslySelectedIndex:this._selectedIndex,selectedStep:Rn[Yt],previouslySelectedStep:Rn[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Yt):this._keyManager.updateActiveItem(Yt),this._selectedIndex=Yt,this._stateChanged()}_onKeydown(Yt){const Rn=(0,j.Vb)(Yt),Mt=Yt.keyCode,kt=this._keyManager;null==kt.activeItemIndex||Rn||Mt!==j.L_&&Mt!==j.K5?kt.onKeydown(Yt):(this.selectedIndex=kt.activeItemIndex,Yt.preventDefault())}_anyControlsInvalidOrPending(Yt){return!!(this._linear&&Yt>=0)&&this.steps.toArray().slice(0,Yt).some(Rn=>{const Mt=Rn.stepControl;
1return(Mt?Mt.invalid||Mt.pending||!Rn.interacted:!Rn.completed)&&!Rn.optional&&!Rn._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Yt=this._elementRef.nativeElement,Rn=(0,ce.ht)();return Yt===Rn||Yt.contains(Rn)}_isValidIndex(Yt){return Yt>-1&&(!this.steps||Yt<this.steps.length)}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(le.Is,8),L.Y36(L.sBO),L.Y36(L.SBq),L.Y36(D.K0))},nn.\u0275dir=L.lG2({type:nn,selectors:[["","cdkStepper",""]],contentQueries:function(Yt,Rn,Mt){if(1&Yt&&(L.Suo(Mt,de,5),L.Suo(Mt,Re,5)),2&Yt){let kt;L.iGM(kt=L.CRH())&&(Rn._steps=kt),L.iGM(kt=L.CRH())&&(Rn._stepHeader=kt)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),nn})(),E=(()=>{class nn{}return nn.\u0275fac=function(Yt){return new(Yt||nn)},nn.\u0275mod=L.oAB({type:nn}),nn.\u0275inj=L.cJS({imports:[[le.vT]]}),nn})();var M=S(7423),A=S(508),R=S(5245),ee=S(2654),B=S(7545),K=S(4850),ge=S(5778),Fe=S(1777);function he(nn,Vn){if(1&nn&&L.GkF(0,8),2&nn){const Yt=L.oxw();L.Q6J("ngTemplateOutlet",Yt.iconOverrides[Yt.state])("ngTemplateOutletContext",Yt._getIconContext())}}function fe(nn,Vn){if(1&nn&&(L.TgZ(0,"span",13),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw(2);L.xp6(1),L.Oqu(Yt._getDefaultTextForState(Yt.state))}}function Ie(nn,Vn){if(1&nn&&(L.TgZ(0,"span",14),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw(2);L.xp6(1),L.Oqu(Yt._intl.completedLabel)}}function Se(nn,Vn){if(1&nn&&(L.TgZ(0,"span",14),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw(2);L.xp6(1),L.Oqu(Yt._intl.editableLabel)}}function pe(nn,Vn){if(1&nn&&(L.TgZ(0,"mat-icon",13),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw(2);L.xp6(1),L.Oqu(Yt._getDefaultTextForState(Yt.state))}}function ke(nn,Vn){if(1&nn&&(L.ynx(0,9),L.YNc(1,fe,2,1,"span",10),L.YNc(2,Ie,2,1,"span",11),L.YNc(3,Se,2,1,"span",11),L.YNc(4,pe,2,1,"mat-icon",12),L.BQk()),2&nn){const Yt=L.oxw();L.Q6J("ngSwitch",Yt.state),L.xp6(1),L.Q6J("ngSwitchCase","number"),L.xp6(1),L.Q6J("ngIf","done"===Yt.state),L.xp6(1),L.Q6J("ngIf","edit"===Yt.state)}}function ae(nn,Vn){if(1&nn&&(L.TgZ(0,"div",15),L.GkF(1,16),L.qZA()),2&nn){const Yt=L.oxw();L.xp6(1),L.Q6J("ngTemplateOutlet",Yt._templateLabel().template)}}function Ce(nn,Vn){if(1&nn&&(L.TgZ(0,"div",15),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw();L.xp6(1),L.Oqu(Yt.label)}}function Ve(nn,Vn){if(1&nn&&(L.TgZ(0,"div",17),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw();L.xp6(1),L.Oqu(Yt._intl.optionalLabel)}}function Be(nn,Vn){if(1&nn&&(L.TgZ(0,"div",18),L._uU(1),L.qZA()),2&nn){const Yt=L.oxw();L.xp6(1),L.Oqu(Yt.errorMessage)}}function ut(nn,Vn){}function Ge(nn,Vn){if(1&nn&&(L.Hsn(0),L.YNc(1,ut,0,0,"ng-template",0)),2&nn){const Yt=L.oxw();L.xp6(1),L.Q6J("cdkPortalOutlet",Yt._portal)}}const wt=["*"];function Ot(nn,Vn){1&nn&&L._UZ(0,"div",9)}const Ft=function(nn,Vn){return{step:nn,i:Vn}};function ht(nn,Vn){if(1&nn&&(L.ynx(0),L.GkF(1,7),L.YNc(2,Ot,1,0,"div",8),L.BQk()),2&nn){const Yt=Vn.$implicit,Rn=Vn.index,Mt=Vn.last;L.oxw(2);const kt=L.MAs(4);L.xp6(1),L.Q6J("ngTemplateOutlet",kt)("ngTemplateOutletContext",L.WLB(3,Ft,Yt,Rn)),L.xp6(1),L.Q6J("ngIf",!Mt)}}function Ht(nn,Vn){if(1&nn){const Yt=L.EpF();L.TgZ(0,"div",10),L.NdJ("@horizontalStepTransition.done",function(Mt){return L.CHM(Yt),L.oxw(2)._animationDone.next(Mt)}),L.GkF(1,11),L.qZA()}if(2&nn){const Yt=Vn.$implicit,Rn=Vn.index,Mt=L.oxw(2);L.Q6J("@horizontalStepTransition",Mt._getAnimationDirection(Rn))("id",Mt._getStepContentId(Rn)),L.uIk("aria-labelledby",Mt._getStepLabelId(Rn))("aria-expanded",Mt.selectedIndex===Rn),L.xp6(1),L.Q6J("ngTemplateOutlet",Yt.content)}}function jt(nn,Vn){if(1&nn&&(L.ynx(0),L.TgZ(1,"div",3),L.YNc(2,ht,3,6,"ng-container",4),L.qZA(),L.TgZ(3,"div",5),L.YNc(4,Ht,2,5,"div",6),L.qZA(),L.BQk()),2&nn){const Yt=L.oxw();L.xp6(2),L.Q6J("ngForOf",Yt.steps),L.xp6(2),L.Q6J("ngForOf",Yt.steps)}}function cn(nn,Vn){if(1&nn){const Yt=L.EpF();L.TgZ(0,"div",13),L.GkF(1,7),L.TgZ(2,"div",14)(3,"div",15),L.NdJ("@verticalStepTransition.done",function(Mt){return L.CHM(Yt),L.oxw(2)._animationDone.next(Mt)}),L.TgZ(4,"div",16),L.GkF(5,11),L.qZA()()()()}if(2&nn){const Yt=Vn.$implicit,Rn=Vn.index,Mt=Vn.last,kt=L.oxw(2),We=L.MAs(4);L.xp6(1),L.Q6J("ngTemplateOutlet",We)("ngTemplateOutletContext",L.WLB(9,Ft,Yt,Rn)),L.xp6(1),L.ekj("mat-stepper-vertical-line",!Mt),L.xp6(1),L.Q6J("@verticalStepTransition",kt._getAnimationDirection(Rn))("id",kt._getStepContentId(Rn)),L.uIk("aria-labelledby",kt._getStepLabelId(Rn))("aria-expanded",kt.selectedIndex===Rn),L.xp6(2),L.Q6J("ngTemplateOutlet",Yt.content)}}function hn(nn,Vn){if(1&nn&&(L.ynx(0),L.YNc(1,cn,6,12,"div",12),L.BQk()),2&nn){const Yt=L.oxw();L.xp6(1),L.Q6J("ngForOf",Yt.steps)}}function vn(nn,Vn){if(1&nn){const Yt=L.EpF();
1L.TgZ(0,"mat-step-header",17),L.NdJ("click",function(){return L.CHM(Yt).step.select()})("keydown",function(Mt){return L.CHM(Yt),L.oxw()._onKeydown(Mt)}),L.qZA()}if(2&nn){const Yt=Vn.step,Rn=Vn.i,Mt=L.oxw();L.ekj("mat-horizontal-stepper-header","horizontal"===Mt.orientation)("mat-vertical-stepper-header","vertical"===Mt.orientation),L.Q6J("tabIndex",Mt._getFocusIndex()===Rn?0:-1)("id",Mt._getStepLabelId(Rn))("index",Rn)("state",Mt._getIndicatorType(Rn,Yt.state))("label",Yt.stepLabel||Yt.label)("selected",Mt.selectedIndex===Rn)("active",Mt._stepIsNavigable(Rn,Yt))("optional",Yt.optional)("errorMessage",Yt.errorMessage)("iconOverrides",Mt._iconOverrides)("disableRipple",Mt.disableRipple||!Mt._stepIsNavigable(Rn,Yt))("color",Yt.color||Mt.color),L.uIk("aria-posinset",Rn+1)("aria-setsize",Mt.steps.length)("aria-controls",Mt._getStepContentId(Rn))("aria-selected",Mt.selectedIndex==Rn)("aria-label",Yt.ariaLabel||null)("aria-labelledby",!Yt.ariaLabel&&Yt.ariaLabelledby?Yt.ariaLabelledby:null)("aria-disabled",!Mt._stepIsNavigable(Rn,Yt)||null)}}let ln=(()=>{class nn extends me{}return nn.\u0275fac=function(){let Vn;return function(Rn){return(Vn||(Vn=L.n5z(nn)))(Rn||nn)}}(),nn.\u0275dir=L.lG2({type:nn,selectors:[["","matStepLabel",""]],features:[L.qOj]}),nn})(),Jt=(()=>{class nn{constructor(){this.changes=new W.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return nn.\u0275fac=function(Yt){return new(Yt||nn)},nn.\u0275prov=L.Yz7({token:nn,factory:nn.\u0275fac,providedIn:"root"}),nn})();const qe={provide:Jt,deps:[[new L.FiY,new L.tp0,Jt]],useFactory:function Xe(nn){return nn||new Jt}},Pe=(0,A.pj)(class extends Re{constructor(Vn){super(Vn)}},"primary");let tt=(()=>{class nn extends Pe{constructor(Yt,Rn,Mt,kt){super(Mt),this._intl=Yt,this._focusMonitor=Rn,this._intlSubscription=Yt.changes.subscribe(()=>kt.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Yt,Rn){Yt?this._focusMonitor.focusVia(this._elementRef,Yt,Rn):this._elementRef.nativeElement.focus(Rn)}_stringLabel(){return this.label instanceof ln?null:this.label}_templateLabel(){return this.label instanceof ln?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Yt){return"number"==Yt?`${this.index+1}`:"edit"==Yt?"create":"error"==Yt?"warning":Yt}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(Jt),L.Y36(_.tE),L.Y36(L.SBq),L.Y36(L.sBO))},nn.\u0275cmp=L.Xpm({type:nn,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[L.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Yt,Rn){1&Yt&&(L._UZ(0,"div",0),L.TgZ(1,"div")(2,"div",1),L.YNc(3,he,1,2,"ng-container",2),L.YNc(4,ke,5,4,"ng-container",3),L.qZA()(),L.TgZ(5,"div",4),L.YNc(6,ae,2,1,"div",5),L.YNc(7,Ce,2,1,"div",5),L.YNc(8,Ve,2,1,"div",6),L.YNc(9,Be,2,1,"div",7),L.qZA()),2&Yt&&(L.Q6J("matRippleTrigger",Rn._getHostElement())("matRippleDisabled",Rn.disableRipple),L.xp6(1),L.Gre("mat-step-icon-state-",Rn.state," mat-step-icon"),L.ekj("mat-step-icon-selected",Rn.selected),L.xp6(1),L.Q6J("ngSwitch",!(!Rn.iconOverrides||!Rn.iconOverrides[Rn.state])),L.xp6(1),L.Q6J("ngSwitchCase",!0),L.xp6(2),L.ekj("mat-step-label-active",Rn.active)("mat-step-label-selected",Rn.selected)("mat-step-label-error","error"==Rn.state),L.xp6(1),L.Q6J("ngIf",Rn._templateLabel()),L.xp6(1),L.Q6J("ngIf",Rn._stringLabel()),L.xp6(1),L.Q6J("ngIf",Rn.optional&&"error"!=Rn.state),L.xp6(1),L.Q6J("ngIf","error"==Rn.state))},directives:[R.Hw,A.wG,D.RF,D.n9,D.tP,D.ED,D.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),nn})();const bt={horizontalStepTransition:(0,Fe.X$)("horizontalStepTransition",[(0,Fe.SB)("previous",(0,Fe.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Fe.SB)("current",(0,Fe.oB)({transform:"none",visibility:"inherit"})),(0,Fe.SB)("next",(0,Fe.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Fe.eR)("* => *",(0,Fe.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,Fe.X$)("verticalStepTransition",[(0,Fe.SB)("previous",(0,Fe.oB)({height:"0px",visibility:"hidden"})),(0,Fe.SB)("next",(0,Fe.oB)({height:"0px",visibility:"hidden"})),(0,Fe.SB)("current",(0,Fe.oB)({height:"*",visibility:"inherit"})),(0,Fe.eR)("* <=> current",(0,Fe.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let un=(()=>{class nn{constructor(Yt){this.templateRef=Yt}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(L.Rgc))},nn.\u0275dir=L.lG2({type:nn,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),nn})(),It=(()=>{class nn{constructor(Yt){this._template=Yt}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(L.Rgc))},nn.\u0275dir=L.lG2({type:nn,selectors:[["ng-template","matStepContent",""]]}),nn})(),Et=(()=>{class nn extends de{constructor(Yt,Rn,Mt,kt){super(Yt,kt),this._errorStateMatcher=Rn,this._viewContainerRef
1=Mt,this._isSelected=ee.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,B.w)(()=>this._stepper.selectionChange.pipe((0,K.U)(Yt=>Yt.selectedStep===this),(0,$.O)(this._stepper.selected===this)))).subscribe(Yt=>{Yt&&this._lazyContent&&!this._portal&&(this._portal=new s.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Yt,Rn){return this._errorStateMatcher.isErrorState(Yt,Rn)||!!(Yt&&Yt.invalid&&this.interacted)}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36((0,L.Gpc)(()=>Dn)),L.Y36(A.rD,4),L.Y36(L.s_b),L.Y36(Y,8))},nn.\u0275cmp=L.Xpm({type:nn,selectors:[["mat-step"]],contentQueries:function(Yt,Rn,Mt){if(1&Yt&&(L.Suo(Mt,ln,5),L.Suo(Mt,It,5)),2&Yt){let kt;L.iGM(kt=L.CRH())&&(Rn.stepLabel=kt.first),L.iGM(kt=L.CRH())&&(Rn._lazyContent=kt.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[L._Bn([{provide:A.rD,useExisting:nn},{provide:de,useExisting:nn}]),L.qOj],ngContentSelectors:wt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Yt,Rn){1&Yt&&(L.F$t(),L.YNc(0,Ge,2,1,"ng-template"))},directives:[s.Pl],encapsulation:2,changeDetection:0}),nn})(),Rt=(()=>{class nn extends re{}return nn.\u0275fac=function(){let Vn;return function(Rn){return(Vn||(Vn=L.n5z(nn)))(Rn||nn)}}(),nn.\u0275dir=L.lG2({type:nn,features:[L.qOj]}),nn})(),Wt=(()=>{class nn extends Rt{}return nn.\u0275fac=function(){let Vn;return function(Rn){return(Vn||(Vn=L.n5z(nn)))(Rn||nn)}}(),nn.\u0275dir=L.lG2({type:nn,selectors:[["mat-horizontal-stepper"]],features:[L.qOj]}),nn})(),Pt=(()=>{class nn extends Rt{}return nn.\u0275fac=function(){let Vn;return function(Rn){return(Vn||(Vn=L.n5z(nn)))(Rn||nn)}}(),nn.\u0275dir=L.lG2({type:nn,selectors:[["mat-vertical-stepper"]],features:[L.qOj]}),nn})(),Dn=(()=>{class nn extends re{constructor(Yt,Rn,Mt,kt){super(Yt,Rn,Mt,kt),this.steps=new L.n_E,this.animationDone=new L.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new W.xQ;const We=Mt.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===We?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Yt,templateRef:Rn})=>this._iconOverrides[Yt]=Rn),this.steps.changes.pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ge.x)((Yt,Rn)=>Yt.fromState===Rn.fromState&&Yt.toState===Rn.toState),(0,te.R)(this._destroyed)).subscribe(Yt=>{"current"===Yt.toState&&this.animationDone.emit()})}_stepIsNavigable(Yt,Rn){return Rn.completed||this.selectedIndex===Yt||!this.linear}}return nn.\u0275fac=function(Yt){return new(Yt||nn)(L.Y36(le.Is,8),L.Y36(L.sBO),L.Y36(L.SBq),L.Y36(D.K0))},nn.\u0275cmp=L.Xpm({type:nn,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Yt,Rn,Mt){if(1&Yt&&(L.Suo(Mt,Et,5),L.Suo(Mt,un,5)),2&Yt){let kt;L.iGM(kt=L.CRH())&&(Rn._steps=kt),L.iGM(kt=L.CRH())&&(Rn._icons=kt)}},viewQuery:function(Yt,Rn){if(1&Yt&&L.Gf(tt,5),2&Yt){let Mt;L.iGM(Mt=L.CRH())&&(Rn._stepHeader=Mt)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(Yt,Rn){2&Yt&&(L.uIk("aria-orientation",Rn.orientation),L.ekj("mat-stepper-horizontal","horizontal"===Rn.orientation)("mat-stepper-vertical","vertical"===Rn.orientation)("mat-stepper-label-position-end","horizontal"===Rn.orientation&&"end"==Rn.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Rn.orientation&&"bottom"==Rn.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[L._Bn([{provide:re,useExisting:nn},{provide:Wt,useExisting:nn},{provide:Pt,useExisting:nn}]),L.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Yt,Rn){1&Yt&&(L.ynx(0,0),L.YNc(1,jt,5,2,"ng-container",1),L.YNc(2,hn,2,1,"ng-container",1),L.BQk(),L.YNc(3,vn,1,23,"ng-template",null,2,L.W1O)),2&Yt&&(L.Q6J("ngSwitch",Rn.orientation),L.xp6(1),L.Q6J("ngSwitchCase","horizontal"),L.xp6(1),L.Q6J("ngSwitchCase","vertical"))},directives:[tt,D.RF,D.n9,D.sg,D.tP,D.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;
1left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[bt.horizontalStepTransition,bt.verticalStepTransition]},changeDetection:0}),nn})(),zn=(()=>{class nn{}return nn.\u0275fac=function(Yt){return new(Yt||nn)},nn.\u0275mod=L.oAB({type:nn}),nn.\u0275inj=L.cJS({providers:[qe,A.rD],imports:[[A.BQ,D.ez,s.eL,M.ot,E,R.Ps,A.si],A.BQ]}),nn})()},2075:(Qt,Z,S)=>{"use strict";S.d(Z,{ev:()=>Ye,Dz:()=>xt,w1:()=>Ne,ge:()=>Ae,fO:()=>Gt,XQ:()=>On,as:()=>je,Ee:()=>Ai,Gk:()=>Xn,nj:()=>rn,BZ:()=>Lt,by:()=>En,p0:()=>Ki});var s=S(5e3),_=S(3191),y=S(449),j=S(9808),D=S(8929),L=S(5254),ce=S(591),W=S(4715),G=S(1086),$=S(7625),te=S(2986),le=S(226),J=S(925),Me=S(9071);const Re=[[["caption"]],[["colgroup"],["col"]]],me=["caption","colgroup, col"];function N(rt){return class extends rt{constructor(...it){super(...it),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(it){const ue=this._sticky;this._sticky=(0,_.Ig)(it),this._hasStickyChanged=ue!==this._sticky}hasStickyChanged(){const it=this._hasStickyChanged;return this._hasStickyChanged=!1,it}resetStickyChanged(){this._hasStickyChanged=!1}}}const Y=new s.OlP("CDK_TABLE");let re=(()=>{class rt{constructor(ue){this.template=ue}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkCellDef",""]]}),rt})(),V=(()=>{class rt{constructor(ue){this.template=ue}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkHeaderCellDef",""]]}),rt})(),ne=(()=>{class rt{constructor(ue){this.template=ue}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkFooterCellDef",""]]}),rt})();class E{}const M=N(E);let A=(()=>{class rt extends M{constructor(ue){super(),this._table=ue,this._stickyEnd=!1}get name(){return this._name}set name(ue){this._setNameInput(ue)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ue){const ve=this._stickyEnd;this._stickyEnd=(0,_.Ig)(ue),this._hasStickyChanged=ve!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ue){ue&&(this._name=ue,this.cssClassFriendlyName=ue.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(Y,8))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkColumnDef",""]],contentQueries:function(ue,ve,at){if(1&ue&&(s.Suo(at,re,5),s.Suo(at,V,5),s.Suo(at,ne,5)),2&ue){let q;s.iGM(q=s.CRH())&&(ve.cell=q.first),s.iGM(q=s.CRH())&&(ve.headerCell=q.first),s.iGM(q=s.CRH())&&(ve.footerCell=q.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),s.qOj]}),rt})();class R{constructor(it,ue){ue.nativeElement.classList.add(...it._columnCssClassName)}}let ee=(()=>{class rt extends R{constructor(ue,ve){super(ue,ve)}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(A),s.Y36(s.SBq))},rt.\u0275dir=s.lG2({type:rt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),rt})(),K=(()=>{class rt extends R{constructor(ue,ve){var at;if(super(ue,ve),1===(null===(at=ue._table)||void 0===at?void 0:at._elementRef.nativeElement.nodeType)){const q=ue._table._elementRef.nativeElement.getAttribute("role");ve.nativeElement.setAttribute("role","grid"===q||"treegrid"===q?"gridcell":"cell")}}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(A),s.Y36(s.SBq))},rt.\u0275dir=s.lG2({type:rt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[s.qOj]}),rt})();class ge{constructor(){this.tasks=[],this.endTasks=[]}}const Fe=new s.OlP("_COALESCED_STYLE_SCHEDULER");let he=(()=>{class rt{constructor(ue){this._ngZone=ue,this._currentSchedule=null,this._destroyed=new D.xQ}schedule(ue){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ue)}scheduleEnd(ue){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ue)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ge,this._getScheduleObservable().pipe((0,$.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ue=this._currentSchedule;this._currentSchedule=new ge;for(const ve of ue.tasks)ve();for(const ve of ue.endTasks)ve()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,L.D)(Prom
1ise.resolve(void 0)):this._ngZone.onStable.pipe((0,te.q)(1))}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.LFG(s.R0b))},rt.\u0275prov=s.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),Ie=(()=>{class rt{constructor(ue,ve){this.template=ue,this._differs=ve}ngOnChanges(ue){if(!this._columnsDiffer){const ve=ue.columns&&ue.columns.currentValue||[];this._columnsDiffer=this._differs.find(ve).create(),this._columnsDiffer.diff(ve)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ue){return this instanceof ke?ue.headerCell.template:this instanceof Ve?ue.footerCell.template:ue.cell.template}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},rt.\u0275dir=s.lG2({type:rt,features:[s.TTD]}),rt})();class Se extends Ie{}const pe=N(Se);let ke=(()=>{class rt extends pe{constructor(ue,ve,at){super(ue,ve),this._table=at}ngOnChanges(ue){super.ngOnChanges(ue)}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(Y,8))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),rt})();class ae extends Ie{}const Ce=N(ae);let Ve=(()=>{class rt extends Ce{constructor(ue,ve,at){super(ue,ve),this._table=at}ngOnChanges(ue){super.ngOnChanges(ue)}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(Y,8))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),rt})(),Be=(()=>{class rt extends Ie{constructor(ue,ve,at){super(ue,ve),this._table=at}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(Y,8))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),rt})(),ut=(()=>{class rt{constructor(ue){this._viewContainer=ue,rt.mostRecentCellOutlet=this}ngOnDestroy(){rt.mostRecentCellOutlet===this&&(rt.mostRecentCellOutlet=null)}}return rt.mostRecentCellOutlet=null,rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.s_b))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","cdkCellOutlet",""]]}),rt})(),Ge=(()=>{class rt{}return rt.\u0275fac=function(ue){return new(ue||rt)},rt.\u0275cmp=s.Xpm({type:rt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,ve){1&ue&&s.GkF(0,0)},directives:[ut],encapsulation:2}),rt})(),Ot=(()=>{class rt{}return rt.\u0275fac=function(ue){return new(ue||rt)},rt.\u0275cmp=s.Xpm({type:rt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,ve){1&ue&&s.GkF(0,0)},directives:[ut],encapsulation:2}),rt})(),Ft=(()=>{class rt{constructor(ue){this.templateRef=ue,this._contentClassName="cdk-no-data-row"}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.Rgc))},rt.\u0275dir=s.lG2({type:rt,selectors:[["ng-template","cdkNoDataRow",""]]}),rt})();const ht=["top","bottom","left","right"];class Ht{constructor(it,ue,ve,at,q=!0,xe=!0,_t){this._isNativeHtmlTable=it,this._stickCellCss=ue,this.direction=ve,this._coalescedStyleScheduler
1=at,this._isBrowser=q,this._needsPositionStickyOnElement=xe,this._positionListener=_t,this._cachedCellWidths=[],this._borderCellCss={top:`${ue}-border-elem-top`,bottom:`${ue}-border-elem-bottom`,left:`${ue}-border-elem-left`,right:`${ue}-border-elem-right`}}clearStickyPositioning(it,ue){const ve=[];for(const at of it)if(at.nodeType===at.ELEMENT_NODE){ve.push(at);for(let q=0;q<at.children.length;q++)ve.push(at.children[q])}this._coalescedStyleScheduler.schedule(()=>{for(const at of ve)this._removeStickyStyle(at,ue)})}updateStickyColumns(it,ue,ve,at=!0){if(!it.length||!this._isBrowser||!ue.some(li=>li)&&!ve.some(li=>li))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const q=it[0],xe=q.children.length,_t=this._getCellWidths(q,at),Xt=this._getStickyStartColumnPositions(_t,ue),Un=this._getStickyEndColumnPositions(_t,ve),Qn=ue.lastIndexOf(!0),vi=ve.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const li="rtl"===this.direction,mr=li?"right":"left",zi=li?"left":"right";for(const hr of it)for(let Wi=0;Wi<xe;Wi++){const qs=hr.children[Wi];ue[Wi]&&this._addStickyStyle(qs,mr,Xt[Wi],Wi===Qn),ve[Wi]&&this._addStickyStyle(qs,zi,Un[Wi],Wi===vi)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Qn?[]:_t.slice(0,Qn+1).map((hr,Wi)=>ue[Wi]?hr:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===vi?[]:_t.slice(vi).map((hr,Wi)=>
1ve[Wi+vi]?hr:null).reverse()}))})}stickRows(it,ue,ve){if(!this._isBrowser)return;const at="bottom"===ve?it.slice().reverse():it,q="bottom"===ve?ue.slice().reverse():ue,xe=[],_t=[],Xt=[];for(let Qn=0,vi=0;Qn<at.length;Qn++){if(!q[Qn])continue;xe[Qn]=vi;const li=at[Qn];Xt[Qn]=this._isNativeHtmlTable?Array.from(li.children):[li];const mr=li.getBoundingClientRect().height;vi+=mr,_t[Qn]=mr}const Un=q.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Qn,vi;for(let li=0;li<at.length;li++){if(!q[li])continue;const mr=xe[li],zi=li===Un;for(const hr of Xt[li])this._addStickyStyle(hr,ve,mr,zi)}"top"===ve?null===(Qn=this._positionListener)||void 0===Qn||Qn.stickyHeaderRowsUpdated({sizes:_t,offsets:xe,elements:Xt}):null===(vi=this._positionListener)||void 0===vi||vi.stickyFooterRowsUpdated({sizes:_t,offsets:xe,elements:Xt})})}updateStickyFooterContainer(it,ue){if(!this._isNativeHtmlTable)return;const ve=it.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{ue.some(at=>!at)?this._removeStickyStyle(ve,["bottom"]):this._addStickyStyle(ve,"bottom",0,!1)})}_removeStickyStyle(it,ue){for(const at of ue)it.style[at]="",it.classList.remove(this._borderCellCss[at]);ht.some(at=>-1===ue.indexOf(at)&&it.style[at])?it.style.zIndex=this._getCalculatedZIndex(it):(it.style.zIndex="",this._needsPositionStickyOnElement&&(it.style.position=""),it.classList.remove(this._stickCellCss))}_addStickyStyle(it,ue,ve,at){it.classList.add(this._stickCellCss),at&&it.classList.add(this._borderCellCss[ue]),it.style[ue]=`${ve}px`,it.style.zIndex=this._getCalculatedZIndex(it),this._needsPositionStickyOnElement&&(it.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(it){const ue={top:100,bottom:10,left:1,right:1};let ve=0;for(const at of ht)it.style[at]&&(ve+=ue[at]);return ve?`${ve}`:""}_getCellWidths(it,ue=!0){if(!ue&&this._cachedCellWidths.length)return this._cachedCellWidths;const ve=[],at=it.children;for(let q=0;q<at.length;q++)ve.push(at[q].getBoundingClientRect().width);return this._cachedCellWidths=ve,ve}_getStickyStartColumnPositions(it,ue){const ve=[];let at=0;for(let q=0;q<it.length;q++)ue[q]&&(ve[q]=at,at+=it[q]);return ve}_getStickyEndColumnPositions(it,ue){const ve=[];let at=0;for(let q=it.length;q>0;q--)ue[q]&&(ve[q]=at,at+=it[q]);return ve}}const Pe=new s.OlP("CDK_SPL");let bt=(()=>{class rt{constructor(ue,ve){this.viewContainer=ue,this.elementRef=ve}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.s_b),s.Y36(s.SBq))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","rowOutlet",""]]}),rt})(),un=(()=>{class rt{constructor(ue,ve){this.viewContainer=ue,this.elementRef=ve}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.s_b),s.Y36(s.SBq))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","headerRowOutlet",""]]}),rt})(),It=(()=>{class rt{constructor(ue,ve){this.viewContainer=ue,this.elementRef=ve}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.s_b),s.Y36(s.SBq))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","footerRowOutlet",""]]}),rt})(),Et=(()=>{class rt{constructor(ue,ve){this.viewContainer=ue,this.elementRef=ve}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.s_b),s.Y36(s.SBq))},rt.\u0275dir=s.lG2({type:rt,selectors:[["","noDataRowOutlet",""]]}),rt})(),Pt=(()=>{class rt{constructor(ue,ve,at,q,xe,_t,Xt,Un,Qn,vi,li,mr){this._differs=ue,this._changeDetectorRef=ve,this._elementRef=at,this._dir=xe,this._platform=Xt,this._viewRepeater=Un,this._coalescedStyleScheduler
1=Qn,this._viewportRuler=vi,this._stickyPositioningListener=li,this._ngZone=mr,this._onDestroy=new D.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new s.vpe,this.viewChange=new ce.X({start:0,end:Number.MAX_VALUE}),q||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_t,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ue){this._trackByFn=ue}get dataSource(){return this._dataSource}set dataSource(ue){this._dataSource!==ue&&this._switchDataSource(ue)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ue){this._multiTemplateDataRows=(0,_.Ig)(ue),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ue){this._fixedLayout=(0,_.Ig)(ue),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ue,ve)=>this.trackBy?this.trackBy(ve.dataIndex,ve.data):ve),this._viewportRuler.change().pipe((0,$.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const ve=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ve,this._forceRecalculateCellWidths=ve,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ue=>{ue.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ue=this._dataDiffer.diff(this._renderRows);if(!ue)return this._updateNoDataRow(),void this.contentChanged.next();const ve=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ue,ve,(at,q,xe)=>this._getEmbeddedViewArgs(at.item,xe),at=>at.item.data,at=>{1===at.operation&&at.context&&this._renderCellTemplateForItem(at.record.item.rowDef,at.context)}),this._updateRowIndexContext(),ue.forEachIdentityChange(at=>{ve.get(at.currentIndex).context.$implicit=at.item.data}),this._updateNoDataRow(),this._ngZone&&s.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,te.q)(1),(0,$.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ue){this._customColumnDefs.add(ue)}removeColumnDef(ue){this._customColumnDefs.delete(ue)}addRowDef(ue){this._customRowDefs.add(ue)}removeRowDef(ue){this._customRowDefs.delete(ue)}addHeaderRowDef(ue){this._customHeaderRowDefs.add(ue),this._headerRowDefChanged=!0}removeHeaderRowDef(ue){this._customHeaderRowDefs.delete(ue),this._headerRowDefChanged=!0}addFooterRowDef(ue){this._customFooterRowDefs.add(ue),this._footerRowDefChanged=!0}removeFooterRowDef(ue){this._customFooterRowDefs.delete(ue),this._footerRowDefChanged=!0}setNoDataRow(ue){this._customNoDataRow=ue}updateStickyHeaderRowStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),at=this._elementRef.nativeElement.querySelector("thead");at&&(at.style.display=ue.length?"":"none");const q=this._headerRowDefs.map(xe=>xe.sticky);this._stickyStyler.clearStickyPositioning(ue,["top"]),this._stickyStyler.stickRows(ue,q,"top"),this._headerRowDefs.forEac
1h(xe=>xe.resetStickyChanged())}updateStickyFooterRowStyles(){const ue=this._getRenderedRows(this._footerRowOutlet),at=this._elementRef.nativeElement.querySelector("tfoot");at&&(at.style.display=ue.length?"":"none");const q=this._footerRowDefs.map(xe=>xe.sticky);this._stickyStyler.clearStickyPositioning(ue,["bottom"]),this._stickyStyler.stickRows(ue,q,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,q),this._footerRowDefs.forEach(xe=>xe.resetStickyChanged())}updateStickyColumnStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),ve=this._getRenderedRows(this._rowOutlet),at=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ue,...ve,...at],["left","right"]),this._stickyColumnStylesNeedReset=!1),ue.forEach((q,xe)=>{this._addStickyColumnStyles([q],this._headerRowDefs[xe])}),this._rowDefs.forEach(q=>{const xe=[];for(let _t=0;_t<ve.length;_t++)this._renderRows[_t].rowDef===q&&xe.push(ve[_t]);this._addStickyColumnStyles(xe,q)}),at.forEach((q,xe)=>{this._addStickyColumnStyles([q],this._footerRowDefs[xe])}),Array.from(this._columnDefsByName.values()).forEach(q=>q.resetStickyChanged())}_getAllRenderRows(){const ue=[],ve=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let at=0;at<this._data.length;at++){let q=this._data[at];const xe=this._getRenderRowsForData(q,at,ve.get(q));this._cachedRenderRowsMap.has(q)||this._cachedRenderRowsMap.set(q,new WeakMap);for(let _t=0;_t<xe.length;_t++){let Xt=xe[_t];const Un=this._cachedRenderRowsMap.get(Xt.data);Un.has(Xt.rowDef)?Un.get(Xt.rowDef).push(Xt):Un.set(Xt.rowDef,[Xt]),ue.push(Xt)}}return ue}_getRenderRowsForData(ue,ve,at){return this._getRowDefs(ue,ve).map(xe=>{const _t=at&&at.has(xe)?at.get(xe):[];if(_t.length){const Xt=_t.shift();return Xt.dataIndex=ve,Xt}return{data:ue,rowDef:xe,dataIndex:ve}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Dn(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ve=>{this._columnDefsByName.has(ve.name),this._columnDefsByName.set(ve.name,ve)})}_cacheRowDefs(){this._headerRowDefs=Dn(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Dn(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Dn(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ue=this._rowDefs.filter(ve=>!ve.when);this._defaultRowDef=ue[0]}_renderUpdatedColumns(){const ue=(xe,_t)=>xe||!!_t.getColumnsDiff(),ve=this._rowDefs.reduce(ue,!1);ve&&this._forceRenderDataRows();const at=this._headerRowDefs.reduce(ue,!1);at&&this._forceRenderHeaderRows();const q=this._footerRowDefs.reduce(ue,!1);return q&&this._forceRenderFooterRows(),ve||at||q}_switchDataSource(ue){this._data=[],(0,y.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ue||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ue}_observeRenderChanges(){if(!this.dataSource)return;let ue;(0,y.Z9)(this.dataSource)?ue=this.dataSource.connect(this):(0,W.b)(this.dataSource)?ue=this.dataSource:Array.isArray(this.dataSource)&&(ue=(0,G.of)(this.dataSource)),this._renderChangeSubscription=ue.pipe((0,$.R)(this._onDestroy)).subscribe(ve=>{this._data=ve||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ue,ve)=>this._renderRow(this._headerRowOutlet,ue,ve)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ue,ve)=>this._renderRow(this._footerRowOutlet,ue,ve)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ue,ve){const at=Array.from(ve.columns||[]).map(_t=>this._columnDefsByName.get(_t)),q=at.map(_t=>_t.sticky),xe=at.map(_t=>_t.stickyEnd);this._stickyStyler.updateStickyColumns(ue,q,xe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ue){const ve=[];for(let at=0;at<ue.viewContainer.length;at++){const q=ue.viewContainer.get(at);ve.push(q.rootNodes[0])}return ve}_getRowDefs(ue,ve){if(1==this._rowDefs.length)return[this._rowDefs[0]];let at=[];
1if(this.multiTemplateDataRows)at=this._rowDefs.filter(q=>!q.when||q.when(ve,ue));else{let q=this._rowDefs.find(xe=>xe.when&&xe.when(ve,ue))||this._defaultRowDef;q&&at.push(q)}return at}_getEmbeddedViewArgs(ue,ve){return{templateRef:ue.rowDef.template,context:{$implicit:ue.data},index:ve}}_renderRow(ue,ve,at,q={}){const xe=ue.viewContainer.createEmbeddedView(ve.template,q,at);return this._renderCellTemplateForItem(ve,q),xe}_renderCellTemplateForItem(ue,ve){for(let at of this._getCellTemplates(ue))ut.mostRecentCellOutlet&&ut.mostRecentCellOutlet._viewContainer.createEmbeddedView(at,ve);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ue=this._rowOutlet.viewContainer;for(let ve=0,at=ue.length;ve<at;ve++){const xe=ue.get(ve).context;xe.count=at,xe.first=0===ve,xe.last=ve===at-1,xe.even=ve%2==0,xe.odd=!xe.even,this.multiTemplateDataRows?(xe.dataIndex=this._renderRows[ve].dataIndex,xe.renderIndex=ve):xe.index=this._renderRows[ve].dataIndex}}_getCellTemplates(ue){return ue&&ue.columns?Array.from(ue.columns,ve=>{const at=this._columnDefsByName.get(ve);return ue.extractCellTemplate(at)}):[]}_applyNativeTableSections(){const ue=this._document.createDocumentFragment(),ve=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const at of ve){const q=this._document.createElement(at.tag);q.setAttribute("role","rowgroup");for(const xe of at.outlets)q.appendChild(xe.elementRef.nativeElement);ue.appendChild(q)}this._elementRef.nativeElement.appendChild(ue)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ue=(ve,at)=>ve||at.hasStickyChanged();this._headerRowDefs.reduce(ue,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ue,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ue,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ht(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,G.of)()).pipe((0,$.R)(this._onDestroy)).subscribe(ve=>{this._stickyStyler.direction=ve,this.updateStickyColumnStyles()})}_getOwnDefs(ue){return ue.filter(ve=>!ve._table||ve._table===this)}_updateNoDataRow(){const ue=this._customNoDataRow||this._noDataRow;if(!ue)return;const ve=0===this._rowOutlet.viewContainer.length;if(ve===this._isShowingNoDataRow)return;const at=this._noDataRowOutlet.viewContainer;if(ve){const q=at.createEmbeddedView(ue.templateRef),xe=q.rootNodes[0];1===q.rootNodes.length&&(null==xe?void 0:xe.nodeType)===this._document.ELEMENT_NODE&&(xe.setAttribute("role","row"),xe.classList.add(ue._contentClassName))}else at.clear();this._isShowingNoDataRow=ve}}return rt.\u0275fac=function(ue){return new(ue||rt)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(le.Is,8),s.Y36(j.K0),s.Y36(J.t4),s.Y36(y.k),s.Y36(Fe),s.Y36(Me.rL),s.Y36(Pe,12),s.Y36(s.R0b,8))},rt.\u0275cmp=s.Xpm({type:rt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ue,ve,at){if(1&ue&&(s.Suo(at,Ft,5),s.Suo(at,A,5),s.Suo(at,Be,5),s.Suo(at,ke,5),s.Suo(at,Ve,5)),2&ue){let q;s.iGM(q=s.CRH())&&(ve._noDataRow=q.first),s.iGM(q=s.CRH())&&(ve._contentColumnDefs=q),s.iGM(q=s.CRH())&&(ve._contentRowDefs=q),s.iGM(q=s.CRH())&&(ve._contentHeaderRowDefs=q),s.iGM(q=s.CRH())&&(ve._contentFooterRowDefs=q)}},viewQuery:function(ue,ve){if(1&ue&&(s.Gf(bt,7),s.Gf(un,7),s.Gf(It,7),s.Gf(Et,7)),2&ue){let at;s.iGM(at=s.CRH())&&(ve._rowOutlet=at.first),s.iGM(at=s.CRH())&&(ve._headerRowOutlet=at.first),s.iGM(at=s.CRH())&&(ve._footerRowOutlet=at.first),s.iGM(at=s.CRH())&&(ve._noDataRowOutlet=at.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ue,ve){2&ue&&s.ekj("cdk-table-fixed-layout",ve.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[s._Bn([{provide:Y,useExisting:rt},{provide:y.k,useClass:y.yy},{provide:Fe,useClass:he},{provide:Pe,useValue:null}])],ngContentSelectors:me,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,ve){1&ue&&(s.F$t(Re),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0)(3,1)(4,2)(5,3))},directives:[un,bt,Et,It],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),rt})();function Dn(rt,it){return rt.concat(Array.from(it))}let zn=(()=>{class rt{}return rt.\u0275fac=function(ue){return new(ue||rt)},rt.\u0275mod=s.oAB({type:rt}),rt.\u0275inj=s.cJS({imports:[[Me.Cl]]}),rt})();var nn=S(508),Vn=S(6787),Yt=S(6053),Rn=S(4850);const Mt=[[["caption"]],[["colgroup"],["col"]]],kt=["caption","colgroup, col"];let Lt=(()=>{class rt extends Pt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275cmp=s.Xpm({type:rt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ue,ve){2&ue&&s.ekj("mat-table-fixed-layout",ve.fixedLayout)},exportAs:["matTable"],features:[s._Bn([{provide:y.k,useClass:y.yy},{provide:Pt,useExisting:rt},{provide:Y,useExisting:rt},{provide:Fe,useClass:he},{provide:Pe,useValue:null}]),s.qOj],ngContentSelectors:kt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,ve){1&ue&&(s.F$t(Mt),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0)(3,1)(4,2)(5,3))},directives:[un,bt,Et,It],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),rt})(),xt=(()=>{class rt extends re{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["","matCellDef",""]],features:[s._Bn([{provide:re,useExisting:rt}]),s.qOj]}),rt})(),Gt=(()=>{class rt extends V{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["","matHeaderCellDef",""]],features:[s._Bn([{provide:V,useExisting:rt}]),s.qOj]}),rt})(),Ne=(()=>{class rt extends A{get name(){return this._name}set name(ue){this._setNameInput(ue)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s._Bn([{provide:A,useExisting:rt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),s.qOj]}),rt})(),Ae=(()=>{class rt extends ee{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.qOj]}),rt})(),Ye=(()=>{class rt extends K{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.qOj]}),rt})(),je=(()=>{class rt extends ke{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s._Bn([{provide:ke,useExisting:rt}]),s.qOj]}),rt})(),rn=(()=>{class rt extends Be{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s._Bn([{provide:Be,useExisting:rt}]),s.qOj]}),rt})(),On=(()=>{class rt extends Ge{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275cmp=s.Xpm({type:rt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s._Bn([{provide:Ge,useExisting:rt}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,ve){1&ue&&s.GkF(0,0)},directives:[ut],encapsulation:2}),rt})(),Xn=(()=>{class rt extends Ot{}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275cmp=s.Xpm({type:rt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s._Bn([{provide:Ot,useExisting:rt}]),s.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,ve){1&ue&&s.GkF(0,0)},directives:[ut],encapsulation:2}),rt})(),Ai=(()=>{class rt extends Ft{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return rt.\u0275fac=function(){let it;return function(ve){return(it||(it=s.n5z(rt)))(ve||rt)}}(),rt.\u0275dir=s.lG2({type:rt,selectors:[["ng-template","matNoDataRow",""]],features:[s._Bn([{provide:Ft,useExisting:rt}]),s.qOj]}),rt})(),Ki=(()=>{class rt{}return rt.\u0275fac=function(ue){return new(ue||rt)},rt.\u0275mod=s.oAB({type:rt}),rt.\u0275inj=s.cJS({imports:[[zn,nn.BQ],nn.BQ]}),rt})();class gn extends y.o2{constructor(it=[]){super(),this._renderData=new ce.X([]),this._filter=new ce.X(""),this._internalPageChanges=new D.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ue,ve)=>{const at=ue[ve];if((0,_.t6)(at)){const q=Number(at);return q<9007199254740991?q:at}return at},this.sortData=(ue,ve)=>{const at=ve.active,q=ve.direction;return at&&""!=q?ue.sort((xe,_t)=>{let Xt=this.sortingDataAccessor(xe,at),Un=this.sortingDataAccessor(_t,at);const Qn=typeof Xt,vi=typeof Un;Qn!==vi&&("number"===Qn&&(Xt+=""),"number"===vi&&(Un+=""));let li=0;return null!=Xt&&null!=Un?Xt>Un?li=1:Xt<Un&&(li=-1):null!=Xt?li=1:null!=Un&&(li=-1),li*("asc"==q?1:-1)}):ue},this.filterPredicate=(ue,ve)=>{const at=Object.keys(ue).reduce((xe,_t)=>xe+ue[_t]+"\u25ec","").toLowerCase(),q=ve.trim().toLowerCase();return-1!=at.indexOf(q)},this._data=new ce.X(it),this._updateChangeSubscription()}get data(){return this._data.value}set data(it){it=Array.isArray(it)?it:[],this._data.next(it),this._renderChangesSubscription||this._filterData(it)}get filter(){return this._filter.value}set filter(it){this._filter.next(it),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(it){this._sort=it,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(it){this._paginator=it,this._updateChangeSubscription()}_updateChangeSubscription(){var it;const ue=this._sort?(0,Vn.T)(this._sort.sortChange,this._sort.initialized):(0,G.of)(null),ve=this._paginator?(0,Vn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,G.of)(null),q=(0,Yt.aj)([this._data,this._filter]).pipe((0,Rn.U)(([Xt])=>this._filterData(Xt))),xe=(0,Yt.aj)([q,ue]).pipe((0,Rn.U)(([Xt])=>this._orderData(Xt))),_t=(0,Yt.aj)([xe,ve]).pipe((0,Rn.U)(([Xt])=>this._pageData(Xt)));null===(it=this._renderChangesSubscription)||void 0===it||it.unsubscribe(),this._renderChangesSubscription=_t.subscribe(Xt=>this._renderData.next(Xt))}_filterData(it){return this.filteredData=null==this.filter||""===this.filter?it:it.filter(ue=>this.filterPredicate(ue,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(it){return this.sort?this.sortData(it.slice(),this.sort):it}_pageData(it){if(!this.paginator)return it;const ue=this.paginator.pageIndex*this.paginator.pageSize;return it.slice(ue,ue+this.paginator.pageSize)}_updatePaginator(it){Promise.resolve().then(()=>{const ue=this.paginator;if(ue&&(ue.length=it,ue.pageIndex>0)){const ve=Math.ceil(ue.length/ue.pageSize)-1||0,at=Math.min(ue.pageIndex,ve);at!==ue.pageIndex&&(ue.pageIndex=at,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var it;null===(it=this._renderChangesSubscription)||void 0===it||it.unsubscribe(),this._renderChangesSubscription=null}}class En extends gn{}},3251:(Qt,Z,S)=>{"use strict";S.d(Z,{Nh:()=>Gt,SP:()=>Rn,Vc:()=>Ht,uD:()=>hn,uX:()=>Jt});var s=S(5664),_=S(7144),y=S(7429),j=S(9808),D=S(5e3),L=S(508),ce=S(6360),W=S(2986),G=S(1059),$=S(5778),te=S(7625),le=S(7545),J=S(1307),Me=S(8929),Re=S(2654),me=S(3753),Q=S(1086),P=S(6787),N=S(8896),Y=S(6498),de=S(8723),re=S(1777),V=S(226),ne=S(3191),E=S(1159),M=S(925),A=S(9071);function R(Ke,Ne){1&Ke&&D.Hsn(0)}const ee=["*"];function B(Ke,Ne){}const K=function(Ke){return{animationDuration:Ke}},ge=function(Ke,Ne){return{value:Ke,params:Ne}},Fe=["tabListContainer"],he=["tabList"],fe=["tabListInner"],Ie=["nextPaginator"],Se=["previousPaginator"],pe=["tabBodyWrapper"],ke=["tabHeader"];function ae(Ke,Ne){}function Ce(Ke,Ne){if(1&Ke&&D.YNc(0,ae,0,0,"ng-template",10),2&Ke){const Ae=D.oxw().$implicit;D.Q6J("cdkPortalOutlet",Ae.templateLabel)}}function Ve(Ke,Ne){if(1&Ke&&D._uU(0),2&Ke){const Ae=D.oxw().$implicit;D.Oqu(Ae.textLabel)}}function Be(Ke,Ne){if(1&Ke){const Ae=D.EpF();D.TgZ(0,"div",6),D.NdJ("click",function(){const Ye=D.CHM(Ae),je=Ye.$implicit,Tt=Ye.index,rn=D.oxw(),On=D.MAs(1);return rn._handleClick(je,On,Tt)})("cdkFocusChange",function(Ye){const Tt=D.CHM(Ae).index;return D.oxw()._tabFocusChanged(Ye,Tt)}),D.TgZ(1,"div",7),D.YNc(2,Ce,1,1,"ng-template",8),D.YNc(3,Ve,1,1,"ng-template",null,9,D.W1O),D.qZA()()}if(2&Ke){const Ae=Ne.$implicit,Oe=Ne.index,Ye=D.MAs(4),je=D.oxw();D.ekj("mat-tab-label-active",je.selectedIndex===Oe),D.Q6J("id",je._getTabLabelId(Oe))("ngClass",Ae.labelClass)("disabled",Ae.disabled)("matRippleDisabled",Ae.disabled||je.disableRipple),D.uIk("tabIndex",je._getTabIndex(Ae,Oe))("aria-posinset",Oe+1)("aria-setsize",je._tabs.length)("aria-controls",je._getTabContentId(Oe))("aria-selected",je.selectedIndex===Oe)("aria-label",Ae.ariaLabel||null)("aria-labelledby",!Ae.ariaLabel&&Ae.aria
1Labelledby?Ae.ariaLabelledby:null),D.xp6(2),D.Q6J("ngIf",Ae.templateLabel)("ngIfElse",Ye)}}function ut(Ke,Ne){if(1&Ke){const Ae=D.EpF();D.TgZ(0,"mat-tab-body",11),D.NdJ("_onCentered",function(){return D.CHM(Ae),D.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ye){return D.CHM(Ae),D.oxw()._setTabBodyWrapperHeight(Ye)}),D.qZA()}if(2&Ke){const Ae=Ne.$implicit,Oe=Ne.index,Ye=D.oxw();D.ekj("mat-tab-body-active",Ye.selectedIndex===Oe),D.Q6J("id",Ye._getTabContentId(Oe))("ngClass",Ae.bodyClass)("content",Ae.content)("position",Ae.position)("origin",Ae.origin)("animationDuration",Ye.animationDuration),D.uIk("tabindex",null!=Ye.contentTabIndex&&Ye.selectedIndex===Oe?Ye.contentTabIndex:null)("aria-labelledby",Ye._getTabLabelId(Oe))}}const wt=new D.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ot(){return Ne=>({left:Ne?(Ne.offsetLeft||0)+"px":"0",width:Ne?(Ne.offsetWidth||0)+"px":"0"})}});let Ft=(()=>{class Ke{constructor(Ae,Oe,Ye,je){this._elementRef=Ae,this._ngZone=Oe,this._inkBarPositioner=Ye,this._animationMode=je}alignToElement(Ae){this.show(),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{const Oe=this._inkBarPositioner(Ae),Ye=this._elementRef.nativeElement;Ye.style.left=Oe.left,Ye.style.width=Oe.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(D.R0b),D.Y36(wt),D.Y36(ce.Qb,8))},Ke.\u0275dir=D.lG2({type:Ke,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Ae,Oe){2&Ae&&D.ekj("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)}}),Ke})();const ht=new D.OlP("MatTabContent");let Ht=(()=>{class Ke{constructor(Ae){this.template=Ae}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.Rgc))},Ke.\u0275dir=D.lG2({type:Ke,selectors:[["","matTabContent",""]],features:[D._Bn([{provide:ht,useExisting:Ke}])]}),Ke})();const jt=new D.OlP("MatTabLabel"),cn=new D.OlP("MAT_TAB");let hn=(()=>{class Ke extends y.ig{constructor(Ae,Oe,Ye){super(Ae,Oe),this._closestTab=Ye}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(cn,8))},Ke.\u0275dir=D.lG2({type:Ke,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[D._Bn([{provide:jt,useExisting:Ke}]),D.qOj]}),Ke})();const vn=(0,L.Id)(class{}),ln=new D.OlP("MAT_TAB_GROUP");let Jt=(()=>{class Ke extends vn{constructor(Ae,Oe){super(),this._viewContainerRef=Ae,this._closestTabGroup=Oe,this.textLabel="",this._contentPortal=null,this._stateChanges=new Me.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Ae){this._setTemplateLabelInput(Ae)}get content(){return this._contentPortal}ngOnChanges(Ae){(Ae.hasOwnProperty("textLabel")||Ae.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new y.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ae){Ae&&Ae._closestTab===this&&(this._templateLabel=Ae)}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.s_b),D.Y36(ln,8))},Ke.\u0275cmp=D.Xpm({type:Ke,selectors:[["mat-tab"]],contentQueries:function(Ae,Oe,Ye){if(1&Ae&&(D.Suo(Ye,jt,5),D.Suo(Ye,ht,7,D.Rgc)),2&Ae){let je;D.iGM(je=D.CRH())&&(Oe.templateLabel=je.first),D.iGM(je=D.CRH())&&(Oe._explicitContent=je.first)}},viewQuery:function(Ae,Oe){if(1&Ae&&D.Gf(D.Rgc,7),2&Ae){let Ye;D.iGM(Ye=D.CRH())&&(Oe._implicitContent=Ye.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[D._Bn([{provide:cn,useExisting:Ke}]),D.qOj,D.TTD],ngContentSelectors:ee,decls:1,vars:0,template:function(Ae,Oe){1&Ae&&(D.F$t(),D.YNc(0,R,1,0,"ng-template"))},encapsulation:2}),Ke})();const Xe={translateTab:(0,re.X$)("translateTab",[(0,re.SB)("center, void, left-origin-center, right-origin-center",(0,re.oB)({transform:"none"})),(0,re.SB)("left",(0,re.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,re.SB)("right",(0,re.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,re.eR)("* => left, * => right, left => center, right => center",(0,re.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,re.eR)("void => left-origin-center",[(0,re.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,re.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,re.eR)("void => right-origin-center",[(0,re.oB)({transform:"translate3d(100%, 0, 0)"}),(0,re.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let qe=(()=>{class Ke extends y.Pl{constructor(Ae,Oe,Ye,je){super(Ae,Oe,je),this._host=Ye,this._centeringSub=Re.w.EMPTY,this._leavingSub=Re.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,G.O)(this._host._isCenterPosition(this._host._position))).subscribe(Ae=>{Ae&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D._Vd),D.Y36(D.s_b),D.Y36((0,D.Gpc)(()=>tt)),D.Y36(j.K0))},Ke.\u0275dir=D.lG2({type:Ke,selectors:[["","matTabBodyHost",""]],features:[D.qOj]}),Ke})(),Pe=(()=>{class Ke{constructor(Ae,Oe,Ye){this._elementRef=Ae,this._dir=Oe,this._dirChangeSubscription=Re.w.EMPTY,this._translateTabComplete=new Me.xQ,this._onCentering=new D.vpe,this._beforeCentering=new D.vpe,this._afterLeavingCenter=new D.vpe,this._onCentered=new D.vpe(!0),this.animationDuration="500ms",Oe&&(this._dirChangeSubscription=Oe.change.subscribe(je=>{this._computePositionAnimationState(je),Ye.markForCheck()})),this._translateTabComplete.pipe((0,$.x)((je,Tt)=>je.fromState===Tt.fromState&&je.toState===Tt.toState)).subscribe(je=>{this._isCenterPosition(je.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(je.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Ae){this._positionIndex=Ae,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Ae){const Oe=this._isCenterPosition(Ae.toState);this._beforeCentering.emit(Oe),Oe&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Ae){return"center"==Ae||"left-origin-center"==Ae||"right-origin-center"==Ae}_computePositionAnimationState(Ae=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Ae?"left":"right":this._positionIndex>0?"ltr"==Ae?"right":"left":"center"}_computePositionFromOrigin(Ae){const Oe=this._getLayoutDirection();return"ltr"==Oe&&Ae<=0||"rtl"==Oe&&Ae>0?"left-origin-center":"right-origin-center"}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(V.Is,8),D.Y36(D.sBO))}
1,Ke.\u0275dir=D.lG2({type:Ke,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ke})(),tt=(()=>{class Ke extends Pe{constructor(Ae,Oe,Ye){super(Ae,Oe,Ye)}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(V.Is,8),D.Y36(D.sBO))},Ke.\u0275cmp=D.Xpm({type:Ke,selectors:[["mat-tab-body"]],viewQuery:function(Ae,Oe){if(1&Ae&&D.Gf(y.Pl,5),2&Ae){let Ye;D.iGM(Ye=D.CRH())&&(Oe._portalHost=Ye.first)}},hostAttrs:[1,"mat-tab-body"],features:[D.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Ae,Oe){1&Ae&&(D.TgZ(0,"div",0,1),D.NdJ("@translateTab.start",function(je){return Oe._onTranslateTabStarted(je)})("@translateTab.done",function(je){return Oe._translateTabComplete.next(je)}),D.YNc(2,B,0,0,"ng-template",2),D.qZA()),2&Ae&&D.Q6J("@translateTab",D.WLB(3,ge,Oe._position,D.VKq(1,K,Oe.animationDuration)))},directives:[qe],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[Xe.translateTab]}}),Ke})();const bt=new D.OlP("MAT_TABS_CONFIG"),un=(0,L.Id)(class{});let It=(()=>{class Ke extends un{constructor(Ae){super(),this.elementRef=Ae}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq))},Ke.\u0275dir=D.lG2({type:Ke,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Ae,Oe){2&Ae&&(D.uIk("aria-disabled",!!Oe.disabled),D.ekj("mat-tab-disabled",Oe.disabled))},inputs:{disabled:"disabled"},features:[D.qOj]}),Ke})();const Et=(0,M.i$)({passive:!0});let Dn=(()=>{class Ke{constructor(Ae,Oe,Ye,je,Tt,rn,On){this._elementRef=Ae,this._changeDetectorRef=Oe,this._viewportRuler=Ye,this._dir=je,this._ngZone=Tt,this._platform=rn,this._animationMode=On,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Me.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Me.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new D.vpe,this.indexFocused=new D.vpe,Tt.runOutsideAngular(()=>{(0,me.R)(Ae.nativeElement,"mouseleave").pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ae){Ae=(0,ne.su)(Ae),this._selectedIndex!=Ae&&(this._selectedIndexChanged=!0,this._selectedIndex=Ae,this._keyManager&&this._keyManager.updateActiveItem(Ae))}ngAfterViewInit(){(0,me.R)(this._previousPaginator.nativeElement,"touchstart",Et).pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,me.R)(this._nextPaginator.nativeElement,"touchstart",Et).pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Ae=this._dir?this._dir.change:(0,Q.of)("ltr"),Oe=this._viewportRuler.change(150),Ye=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new s.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(Ye),(0,P.T)(Ae,Oe,this._items.changes,this._itemsResized()).pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ye()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,te.R)(this._destroyed)).subscribe(je=>{this.indexFocused.emit(je),this._setTabFocus(je)})}_itemsResized(){return"function"!=typeof ResizeObserver?N.E:this._items.changes.pipe((0,G.O)(this._items),(0,le.w)(Ae=>new Y.y(Oe=>this._ngZone.runOutsideAngular(()=>{const Ye=new ResizeObserver(()=>{Oe.next()});return Ae.forEach(je=>{Ye.observe(je.elementRef.nativeElement)}),()=>{Ye.disconnect()}}))),(0,J.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ae){if(!(0,E.Vb)(Ae))switch(Ae.keyCode){case E.K5:case E.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit
1(this.focusIndex),this._itemSelected(Ae));break;default:this._keyManager.onKeydown(Ae)}}_onContentChanges(){const Ae=this._elementRef.nativeElement.textContent;Ae!==this._currentTextContent&&(this._currentTextContent=Ae||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Ae){!this._isValidIndex(Ae)||this.focusIndex===Ae||!this._keyManager||this._keyManager.setActiveItem(Ae)}_isValidIndex(Ae){if(!this._items)return!0;const Oe=this._items?this._items.toArray()[Ae]:null;return!!Oe&&!Oe.disabled}_setTabFocus(Ae){if(this._showPaginationControls&&this._scrollToLabel(Ae),this._items&&this._items.length){this._items.toArray()[Ae].focus();const Oe=this._tabListContainer.nativeElement;Oe.scrollLeft="ltr"==this._getLayoutDirection()?0:Oe.scrollWidth-Oe.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ae=this.scrollDistance,Oe="ltr"===this._getLayoutDirection()?-Ae:Ae;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Oe)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ae){this._scrollTo(Ae)}_scrollHeader(Ae){return this._scrollTo(this._scrollDistance+("before"==Ae?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ae){this._stopInterval(),this._scrollHeader(Ae)}_scrollToLabel(Ae){if(this.disablePagination)return;const Oe=this._items?this._items.toArray()[Ae]:null;if(!Oe)return;const Ye=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:je,offsetWidth:Tt}=Oe.elementRef.nativeElement;let rn,On;"ltr"==this._getLayoutDirection()?(rn=je,On=rn+Tt):(On=this._tabListInner.nativeElement.offsetWidth-je,rn=On-Tt);const xn=this.scrollDistance,Xn=this.scrollDistance+Ye;rn<xn?this.scrollDistance-=xn-rn+60:On>Xn&&(this.scrollDistance+=On-Xn+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Ae=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Ae||(this.scrollDistance=0),Ae!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Ae}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Ae=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Oe=Ae?Ae.elementRef.nativeElement:null;Oe?this._inkBar.alignToElement(Oe):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ae,Oe){Oe&&null!=Oe.button&&0!==Oe.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,te.R)((0,P.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ye,distance:je}=this._scrollHeader(Ae);(0===je||je>=Ye)&&this._stopInterval()}))}_scrollTo(Ae){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Oe=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Oe,Ae)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Oe,distance:this._scrollDistance}}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(A.rL),D.Y36(V.Is,8),D.Y36(D.R0b),D.Y36(M.t4),D.Y36(ce.Qb,8))},Ke.\u0275dir=D.lG2({type:Ke,inputs:{disablePagination:"disablePagination"}}),Ke})(),Gn=(()=>{class Ke extends Dn{constructor(Ae,Oe,Ye,je,Tt,rn,On){super(Ae,Oe,Ye,je,Tt,rn,On),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ae){this._disableRipple=(0,ne.Ig)(Ae)}_itemSelected(Ae){Ae.preventDefault()}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(A.rL),D.Y36(V.Is,8),D.Y36(D.R0b),D.Y36(M.t4),D.Y36(ce.Qb,8))}
1,Ke.\u0275dir=D.lG2({type:Ke,inputs:{disableRipple:"disableRipple"},features:[D.qOj]}),Ke})(),Zn=(()=>{class Ke extends Gn{constructor(Ae,Oe,Ye,je,Tt,rn,On){super(Ae,Oe,Ye,je,Tt,rn,On)}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(A.rL),D.Y36(V.Is,8),D.Y36(D.R0b),D.Y36(M.t4),D.Y36(ce.Qb,8))},Ke.\u0275cmp=D.Xpm({type:Ke,selectors:[["mat-tab-header"]],contentQueries:function(Ae,Oe,Ye){if(1&Ae&&D.Suo(Ye,It,4),2&Ae){let je;D.iGM(je=D.CRH())&&(Oe._items=je)}},viewQuery:function(Ae,Oe){if(1&Ae&&(D.Gf(Ft,7),D.Gf(Fe,7),D.Gf(he,7),D.Gf(fe,7),D.Gf(Ie,5),D.Gf(Se,5)),2&Ae){let Ye;D.iGM(Ye=D.CRH())&&(Oe._inkBar=Ye.first),D.iGM(Ye=D.CRH())&&(Oe._tabListContainer=Ye.first),D.iGM(Ye=D.CRH())&&(Oe._tabList=Ye.first),D.iGM(Ye=D.CRH())&&(Oe._tabListInner=Ye.first),D.iGM(Ye=D.CRH())&&(Oe._nextPaginator=Ye.first),D.iGM(Ye=D.CRH())&&(Oe._previousPaginator=Ye.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Ae,Oe){2&Ae&&D.ekj("mat-tab-header-pagination-controls-enabled",Oe._showPaginationControls)("mat-tab-header-rtl","rtl"==Oe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[D.qOj],ngContentSelectors:ee,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Ae,Oe){1&Ae&&(D.F$t(),D.TgZ(0,"button",0,1),D.NdJ("click",function(){return Oe._handlePaginatorClick("before")})("mousedown",function(je){return Oe._handlePaginatorPress("before",je)})("touchend",function(){return Oe._stopInterval()}),D._UZ(2,"div",2),D.qZA(),D.TgZ(3,"div",3,4),D.NdJ("keydown",function(je){return Oe._handleKeydown(je)}),D.TgZ(5,"div",5,6),D.NdJ("cdkObserveContent",function(){return Oe._onContentChanges()}),D.TgZ(7,"div",7,8),D.Hsn(9),D.qZA(),D._UZ(10,"mat-ink-bar"),D.qZA()(),D.TgZ(11,"button",9,10),D.NdJ("mousedown",function(je){return Oe._handlePaginatorPress("after",je)})("click",function(){return Oe._handlePaginatorClick("after")})("touchend",function(){return Oe._stopInterval()}),D._UZ(13,"div",2),D.qZA()),2&Ae&&(D.ekj("mat-tab-header-pagination-disabled",Oe._disableScrollBefore),D.Q6J("matRippleDisabled",Oe._disableScrollBefore||Oe.disableRipple)("disabled",Oe._disableScrollBefore||null),D.xp6(5),D.ekj("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),D.xp6(6),D.ekj("mat-tab-header-pagination-disabled",Oe._disableScrollAfter),D.Q6J("matRippleDisabled",Oe._disableScrollAfter||Oe.disableRipple)("disabled",Oe._disableScrollAfter||null))},directives:[L.wG,_.wD,Ft],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;
1cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Ke})(),zn=0;class nn{}const Vn=(0,L.pj)((0,L.Kr)(class{constructor(Ke){this._elementRef=Ke}}),"primary");let Yt=(()=>{class Ke extends Vn{constructor(Ae,Oe,Ye,je){var Tt;super(Ae),this._changeDetectorRef=Oe,this._animationMode=je,this._tabs=new D.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Re.w.EMPTY,this._tabLabelSubscription=Re.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new D.vpe,this.focusChange=new D.vpe,this.animationDone=new D.vpe,this.selectedTabChange=new D.vpe(!0),this._groupId=zn++,this.animationDuration=Ye&&Ye.animationDuration?Ye.animationDuration:"500ms",this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.dynamicHeight=!(!Ye||null==Ye.dynamicHeight)&&Ye.dynamicHeight,this.contentTabIndex=null!==(Tt=null==Ye?void 0:Ye.contentTabIndex)&&void 0!==Tt?Tt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Ae){this._dynamicHeight=(0,ne.Ig)(Ae)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ae){this._indexToSelect=(0,ne.su)(Ae,null)}get animationDuration(){return this._animationDuration}set animationDuration(Ae){this._animationDuration=/^\d+$/.test(Ae+"")?Ae+"ms":Ae}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ae){this._contentTabIndex=(0,ne.su)(Ae,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Ae){const Oe=this._elementRef.nativeElement;Oe.classList.remove(`mat-background-${this.backgroundColor}`),Ae&&Oe.classList.add(`mat-background-${Ae}`),this._backgroundColor=Ae}ngAfterContentChecked(){const Ae=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ae){const Oe=null==this._selectedIndex;if(!Oe){this.selectedTabChange.emit(this._createChangeEvent(Ae));const Ye=this._tabBodyWrapper.nativeElement;Ye.style.minHeight=Ye.clientHeight+"px"}Promise.resolve().then(()=>
1{this._tabs.forEach((Ye,je)=>Ye.isActive=je===Ae),Oe||(this.selectedIndexChange.emit(Ae),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Oe,Ye)=>{Oe.position=Ye-Ae,null!=this._selectedIndex&&0==Oe.position&&!Oe.origin&&(Oe.origin=Ae-this._selectedIndex)}),this._selectedIndex!==Ae&&(this._selectedIndex=Ae,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ae=this._clampTabIndex(this._indexToSelect);if(Ae===this._selectedIndex){const Oe=this._tabs.toArray();let Ye;for(let je=0;je<Oe.length;je++)if(Oe[je].isActive){this._indexToSelect=this._selectedIndex=je,this._lastFocusedTabIndex=null,Ye=Oe[je];break}!Ye&&Oe[Ae]&&Promise.resolve().then(()=>{Oe[Ae].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ae))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,G.O)(this._allTabs)).subscribe(Ae=>{this._tabs.reset(Ae.filter(Oe=>Oe._closestTabGroup===this||!Oe._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ae){const Oe=this._tabHeader;Oe&&(Oe.focusIndex=Ae)}_focusChanged(Ae){this._lastFocusedTabIndex=Ae,this.focusChange.emit(this._createChangeEvent(Ae))}_createChangeEvent(Ae){const Oe=new nn;return Oe.index=Ae,this._tabs&&this._tabs.length&&(Oe.tab=this._tabs.toArray()[Ae]),Oe}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,P.T)(...this._tabs.map(Ae=>Ae._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ae){return Math.min(this._tabs.length-1,Math.max(Ae||0,0))}_getTabLabelId(Ae){return`mat-tab-label-${this._groupId}-${Ae}`}_getTabContentId(Ae){return`mat-tab-content-${this._groupId}-${Ae}`}_setTabBodyWrapperHeight(Ae){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Oe=this._tabBodyWrapper.nativeElement;Oe.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Oe.style.height=Ae+"px")}_removeTabBodyWrapperHeight(){const Ae=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ae.clientHeight,Ae.style.height="",this.animationDone.emit()}_handleClick(Ae,Oe,Ye){Ae.disabled||(this.selectedIndex=Oe.focusIndex=Ye)}_getTabIndex(Ae,Oe){var Ye;return Ae.disabled?null:Oe===(null!==(Ye=this._lastFocusedTabIndex)&&void 0!==Ye?Ye:this.selectedIndex)?0:-1}_tabFocusChanged(Ae,Oe){Ae&&"mouse"!==Ae&&"touch"!==Ae&&(this._tabHeader.focusIndex=Oe)}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(bt,8),D.Y36(ce.Qb,8))},Ke.\u0275dir=D.lG2({type:Ke,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[D.qOj]}),Ke})(),Rn=(()=>{class Ke extends Yt{constructor(Ae,Oe,Ye,je){super(Ae,Oe,Ye,je)}}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(bt,8),D.Y36(ce.Qb,8))},Ke.\u0275cmp=D.Xpm({type:Ke,selectors:[["mat-tab-group"]],contentQueries:function(Ae,Oe,Ye){if(1&Ae&&D.Suo(Ye,Jt,5),2&Ae){let je;D.iGM(je=D.CRH())&&(Oe._allTabs=je)}},viewQuery:function(Ae,Oe){if(1&Ae&&(D.Gf(pe,5),D.Gf(ke,5)),2&Ae){let Ye;D.iGM(Ye=D.CRH())&&(Oe._tabBodyWrapper=Ye.first),D.iGM(Ye=D.CRH())&&(Oe._tabHeader=Ye.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Ae,Oe){2&Ae&&D.ekj("mat-tab-group-dynamic-height",Oe.dynamicHeight)("mat-tab-group-inverted-header","below"===Oe.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[D._Bn([{provide:ln,useExisting:Ke}]),D.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Ae,Oe){1&Ae&&(D.TgZ(0,"mat-tab-header",0,1),D.NdJ("indexFocused",function(je){return Oe._focusChanged(je)})("selectFocusedIndex",function(je){return Oe.selectedIndex=je}),D.YNc(2,Be,5,15,"div",2),D.qZA(),D.TgZ(3,"div",3,4),D.YNc(5,ut,1,10,"mat-tab-body",5),D.qZA()),2&Ae&&(D.Q6J("selectedIndex",Oe.selectedIndex||0)("disableRipple",Oe.disableRipple)("disablePagination",Oe.disablePagination),D.xp6(2),D.Q6J("ngForOf",Oe._tabs),D.xp6(1),D.ekj("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),D.xp6(2),D.Q6J("ngForOf",Oe._tabs))},directives:[Zn,tt,j.sg,It,L.wG,s.kH,j.mk,j.O5,y.Pl],styles:[".mat-tab-group{dis
1play:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ke})(),Gt=(()=>{class Ke{}return Ke.\u0275fac=function(Ae){return new(Ae||Ke)},Ke.\u0275mod=D.oAB({type:Ke}),Ke.\u0275inj=D.cJS({imports:[[j.ez,L.BQ,y.eL,L.si,_.Q8,s.rt],L.BQ]}),Ke})()},4594:(Qt,Z,S)=>{"use strict";S.d(Z,{Ye:()=>G,g0:()=>te,rD:()=>W});var s=S(5e3),_=S(508),y=S(9808),j=S(925);const D=["*",[["mat-toolbar-row"]]],L=["*","mat-toolbar-row"],ce=(0,_.pj)(class{constructor(le){this._elementRef=le}});let W=(()=>{class le{}return le.\u0275fac=function(Me){return new(Me||le)},le.\u0275dir=s.lG2({type:le,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),le})(),G=(()=>{class le extends ce{constructor(Me,Re,me){super(Me),this._platform=Re,this._document=me}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return le.\u0275fac=function(Me){return new(Me||le)(s.Y36(s.SBq),s.Y36(j.t4),s.Y36(y.K0))},le.\u0275cmp=s.Xpm({type:le,selectors:[["mat-toolbar"]],contentQueries:function(Me,Re,me){if(1&Me&&s.Suo(me,W,5),2&Me){let Q;s.iGM(Q=s.CRH())&&(Re._toolbarRows=Q)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(Me,Re){2&Me&&s.ekj("mat-toolbar-multiple-rows",Re._toolbarRows.length>0)("mat-toolbar-single-row",0===Re._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:L,decls:2,vars:0,template:function(Me,Re){1&Me&&(s.F$t(D),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),le})(),te=(()=>{class le{}return le.\u0275fac=function(Me){return new(Me||le)},le.\u0275mod=s.oAB({type:le}),le.\u0275inj=s.cJS({imports:[[_.BQ],_.BQ]}),le})()},7238:(Qt,Z,S)=>{"use strict";S.d(Z,{AV:()=>he,gM:()=>K});var s=S(2845),_=S(5664),y=S(9808),j=S(5e3),D=S(508),L=S(9071),ce=S(3191),W=S(1159),G=S(5113),$=S(925),te=S(7429),le=S(6360),J=S(8929),Me=S(7625),Re=S(2986),me=S(226);S(1777);const P=["tooltip"],de="tooltip-panel",re=(0,$.i$)({passive:!0}),E=new j.OlP("mat-tooltip-scroll-strategy"),A={provide:E,deps:[s.aV],useFactory:function M(Ie){return()=>Ie.scrollStrategies.reposition({scrollThrottle:20})}},R=new j.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let B=(()=>{class Ie{constructor(pe,ke,ae,Ce,Ve,Be,ut,Ge,wt,Ot,Ft,ht){this._overlay=pe,this._elementRef=ke,this._scrollDispatcher=ae,this._viewContainerRef
1=Ce,this._ngZone=Ve,this._platform=Be,this._ariaDescriber=ut,this._focusMonitor=Ge,this._dir=Ot,this._defaultOptions=Ft,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new J.xQ,this._scrollStrategy=wt,this._document=ht,Ft&&(Ft.position&&(this.position=Ft.position),Ft.touchGestures&&(this.touchGestures=Ft.touchGestures)),Ot.change.pipe((0,Me.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(pe){var ke;pe!==this._position&&(this._position=pe,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(ke=this._tooltipInstance)||void 0===ke||ke.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(pe){this._disabled=(0,ce.Ig)(pe),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(pe){this._showDelay=(0,ce.su)(pe)}get hideDelay(){return this._hideDelay}set hideDelay(pe){this._hideDelay=(0,ce.su)(pe),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(pe){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=pe?String(pe).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(pe){this._tooltipClass=pe,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Me.R)(this._destroyed)).subscribe(pe=>{pe?"keyboard"===pe&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const pe=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ke,ae])=>{pe.removeEventListener(ke,ae,re)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(pe,this.message,"tooltip"),this._focusMonitor.stopMonitoring(pe)}show(pe=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const ke=this._createOverlay();this._detach(),this._portal=this._portal||new te.C5(this._tooltipComponent,this._viewContainerRef);const ae=this._tooltipInstance=ke.attach(this._portal).instance;ae._triggerElement=this._elementRef.nativeElement,ae._mouseLeaveHideDelay=this._hideDelay,ae.afterHidden().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ae.show(pe)}hide(pe=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(pe)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var pe;if(this._overlayRef)return this._overlayRef;const ke=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ae=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ke);return ae.positionChanges.pipe((0,Me.R)(this._destroyed)).subscribe(Ce=>{this._updateCurrentPositionClass(Ce.connectionPair),this._tooltipInstance&&Ce.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ae,panelClass:`${this._cssClassPrefix}-${de}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Me.R)(this._destroyed)).subscribe(()=>{var Ce;return null===(Ce=this._tooltipInstance)||void 0===Ce?void 0:Ce._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Me.R)(this._destroyed)).subscribe(Ce=>{this._isTooltipVisible()&&Ce.keyCode===W.hY&&!(0,W.Vb)(Ce)&&(Ce.preventDefault(),Ce.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(pe){const ke=pe.getConfig().positionStrategy,ae=this._getOrigin(),Ce=this._getOverlayPosition();ke.withPositions([this._addOffset(Object.assign(Object.assign({},ae.main),Ce.main)),this._addOffset(Object.assign(Object.assign({},ae.fallback),Ce.fallback))])}_addOffset(pe){return pe}_getOrigin(){const pe=!this._dir||"ltr"==this._dir.value,ke=this.position;let ae;"above"==ke||"below"==ke?ae={originX:"center",originY:"above"==ke?"top":"bottom"}:"before"==ke||"left"==ke&&pe||"right"==ke&&!pe?ae={originX:"start",originY:"center"}:("after"==ke||"right"==ke&&pe||"left"==ke&&!pe)&&(ae={originX:"end",originY:"center"});const{x:Ce,y:Ve}=this._invertPosition(ae.originX,ae.originY);return{main:ae,fallback:{originX:Ce,originY:Ve}}}_getOverlayPosition(){const pe=!this._dir||"ltr"==this._dir.value,ke=this.position;let ae;"above"==ke?ae={overlayX:"center",overlayY:"bottom"}:"below"==ke?ae={overlayX:"center",overlayY:"top"}:"before"==ke||"left"==ke&&pe||"right"==ke&&!pe?ae={overlayX:"end",overlayY:"center"}:("after"==ke||"right"==ke&&pe||"left"==ke&&!pe)&&(ae={overlayX:"start",overlayY:"center"});const{x:Ce,y:Ve}=this._invertPosition(ae.overlayX,ae.overlayY);return{main:ae,fallback:{overlayX:Ce,overlayY:Ve}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Re.q)(1),(0,Me.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(pe){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=pe,this._tooltipInstance._markForCheck())}_invertPosition(pe,ke){return"above"===this.position||"below"===this.position?"top"===ke?ke="bottom":"bottom"===ke&&(ke="top"):"end"===pe?pe="start":"start"===pe&&(pe="end"),{x:pe,y:ke}}_updateCurrentPositionClass(pe){const{overlayY:ke,originX:ae,originY:Ce}=pe;let Ve;if(Ve="center"===ke?this._dir&&"rtl"===this._dir.value?"end"===ae?"left"
1:"right":"start"===ae?"left":"right":"bottom"===ke&&"top"===Ce?"above":"below",Ve!==this._currentPosition){const Be=this._overlayRef;if(Be){const ut=`${this._cssClassPrefix}-${de}-`;Be.removePanelClass(ut+this._currentPosition),Be.addPanelClass(ut+Ve)}this._currentPosition=Ve}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const pe=[];if(this._platformSupportsMouseEvents())pe.push(["mouseleave",ke=>{var ae;const Ce=ke.relatedTarget;(!Ce||!(null===(ae=this._overlayRef)||void 0===ae?void 0:ae.overlayElement.contains(Ce)))&&this.hide()}],["wheel",ke=>this._wheelListener(ke)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ke=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};pe.push(["touchend",ke],["touchcancel",ke])}this._addListeners(pe),this._passiveListeners.push(...pe)}_addListeners(pe){pe.forEach(([ke,ae])=>{this._elementRef.nativeElement.addEventListener(ke,ae,re)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(pe){if(this._isTooltipVisible()){const ke=this._document.elementFromPoint(pe.clientX,pe.clientY),ae=this._elementRef.nativeElement;ke!==ae&&!ae.contains(ke)&&this.hide()}}_disableNativeGesturesIfNecessary(){const pe=this.touchGestures;if("off"!==pe){const ke=this._elementRef.nativeElement,ae=ke.style;("on"===pe||"INPUT"!==ke.nodeName&&"TEXTAREA"!==ke.nodeName)&&(ae.userSelect=ae.msUserSelect=ae.webkitUserSelect=ae.MozUserSelect="none"),("on"===pe||!ke.draggable)&&(ae.webkitUserDrag="none"),ae.touchAction="none",ae.webkitTapHighlightColor="transparent"}}}return Ie.\u0275fac=function(pe){j.$Z()},Ie.\u0275dir=j.lG2({type:Ie,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Ie})(),K=(()=>{class Ie extends B{constructor(pe,ke,ae,Ce,Ve,Be,ut,Ge,wt,Ot,Ft,ht){super(pe,ke,ae,Ce,Ve,Be,ut,Ge,wt,Ot,Ft,ht),this._tooltipComponent=Fe}}return Ie.\u0275fac=function(pe){return new(pe||Ie)(j.Y36(s.aV),j.Y36(j.SBq),j.Y36(L.mF),j.Y36(j.s_b),j.Y36(j.R0b),j.Y36($.t4),j.Y36(_.$s),j.Y36(_.tE),j.Y36(E),j.Y36(me.Is,8),j.Y36(R,8),j.Y36(y.K0))},Ie.\u0275dir=j.lG2({type:Ie,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[j.qOj]}),Ie})(),ge=(()=>{class Ie{constructor(pe,ke){this._changeDetectorRef=pe,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new J.xQ,this._animationsDisabled="NoopAnimations"===ke}show(pe){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},pe)}hide(pe){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},pe)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:pe}){(!pe||!this._triggerElement.contains(pe))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:pe}){(pe===this._showAnimation||pe===this._hideAnimation)&&this._finalizeAnimation(pe===this._showAnimation)}_finalizeAnimation(pe){pe?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(pe){const ke=this._tooltip.nativeElement,ae=this._showAnimation,Ce=this._hideAnimation;if(ke.classList.remove(pe?Ce:ae),ke.classList.add(pe?ae:Ce),this._isVisible=pe,pe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ve=getComputedStyle(ke);("0s"===Ve.getPropertyValue("animation-duration")||"none"===Ve.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}pe&&this._onShow(),this._animationsDisabled&&(ke.classList.add("_mat-animation-noopable"),this._finalizeAnimation(pe))}}return Ie.\u0275fac=function(pe){return new(pe||Ie)(j.Y36(j.sBO),j.Y36(le.Qb,8))},Ie.\u0275dir=j.lG2({type:Ie}),Ie})(),Fe=(()=>{class Ie extends ge{constructor(pe,ke,ae){super(pe,ae),this._breakpointObserver=ke,this._isHandset=this._breakpointObserver.observe(G.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Ie.\u0275fac=function(pe){return new(pe||Ie)(j.Y36(j.sBO),j.Y36(G.Yg),j.Y36(le.Qb,8))},Ie.\u0275cmp=j.Xpm({type:Ie,selectors:[["mat-tooltip-component"]],viewQuery:function(pe,ke){if(1&pe&&j.Gf(P,7),2&pe){let ae;j.iGM(ae=j.CRH())&&(ke._tooltip=ae.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(pe,ke){1&pe&&j.NdJ("mouseleave",function(Ce){return ke._handleMouseLeave(Ce)}),2&pe&&j.Udp("zoom",ke.isVisible()?1:null)},features:[j.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(pe,ke){if(1&pe&&(j.TgZ(0,"div",0,1),j.NdJ("animationend",function(Ce){return ke._handleAnimationEnd(Ce)}),j.ALo(2,"async"),j._uU(3),j.qZA()),2&pe){let ae;j.ekj("mat-tooltip-handset",null==(ae=j.lcZ(2,4,ke._isHandset))?null:ae.matches),j.Q6J("ngClass",ke.tooltipClass),j.xp6(3),j.Oqu(ke.message)}},directives:[y.mk],pipes:[y.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),Ie})(),he=(()=>{class Ie{}return Ie.\u0275fac=function(pe){return new(pe||Ie)},Ie.\u0275mod=j.oAB({type:Ie}),Ie.\u0275inj=j.cJS({providers:[A],imports:[[_.rt,y.ez,s.U8,D.BQ],D.BQ,L.ZD]}),Ie})()},149:(Qt,Z,S)=>{"use strict";S.d(Z,{JZ:()=>Y,ah:()=>Me,dp:()=>N,eu:()=>Q,fQ:()=>le,gi:()=>me,kc:()=>de,uo:()=>te});
1var s=S(8258),_=S(5e3),y=S(508),D=(S(3191),S(449)),L=S(591),ce=S(6787),W=S(2986),G=S(4850);const $=(0,y.sb)((0,y.Id)(s.Hs));let te=(()=>{class V extends ${constructor(E,M,A){super(E,M),this.tabIndex=Number(A)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return V.\u0275fac=function(E){return new(E||V)(_.Y36(_.SBq),_.Y36(s._0),_.$8M("tabindex"))},V.\u0275dir=_.lG2({type:V,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[_._Bn([{provide:s.Hs,useExisting:V}]),_.qOj]}),V})(),le=(()=>{class V extends s.rO{}return V.\u0275fac=function(){let ne;return function(M){return(ne||(ne=_.n5z(V)))(M||V)}}(),V.\u0275dir=_.lG2({type:V,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[_._Bn([{provide:s.rO,useExisting:V}]),_.qOj]}),V})(),Me=(()=>{class V extends s.XJ{get level(){return this._level}set level(E){this._setLevelInput(E)}get indent(){return this._indent}set indent(E){this._setIndentInput(E)}}return V.\u0275fac=function(){let ne;return function(M){return(ne||(ne=_.n5z(V)))(M||V)}}(),V.\u0275dir=_.lG2({type:V,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[_._Bn([{provide:s.XJ,useExisting:V}]),_.qOj]}),V})(),Re=(()=>{class V{constructor(E,M){this.viewContainer=E,this._node=M}}return V.\u0275fac=function(E){return new(E||V)(_.Y36(_.s_b),_.Y36(s.HI,8))},V.\u0275dir=_.lG2({type:V,selectors:[["","matTreeNodeOutlet",""]],features:[_._Bn([{provide:s.cu,useExisting:V}])]}),V})(),me=(()=>{class V extends s._0{}return V.\u0275fac=function(){let ne;return function(M){return(ne||(ne=_.n5z(V)))(M||V)}}(),V.\u0275cmp=_.Xpm({type:V,selectors:[["mat-tree"]],viewQuery:function(E,M){if(1&E&&_.Gf(Re,7),2&E){let A;_.iGM(A=_.CRH())&&(M._nodeOutlet=A.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[_._Bn([{provide:s._0,useExisting:V}]),_.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(E,M){1&E&&_.GkF(0,0)},directives:[Re],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),V})(),Q=(()=>{class V extends s.Ud{}return V.\u0275fac=function(){let ne;return function(M){return(ne||(ne=_.n5z(V)))(M||V)}}(),V.\u0275dir=_.lG2({type:V,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[_._Bn([{provide:s.Ud,useExisting:V}]),_.qOj]}),V})(),N=(()=>{class V{}return V.\u0275fac=function(E){return new(E||V)},V.\u0275mod=_.oAB({type:V}),V.\u0275inj=_.cJS({imports:[[s.nZ,y.BQ],y.BQ]}),V})();class Y{constructor(ne,E,M,A){this.transformFunction=ne,this.getLevel=E,this.isExpandable=M,this.getChildren=A}_flattenNode(ne,E,M,A){const R=this.transformFunction(ne,E);if(M.push(R),this.isExpandable(R)){const ee=this.getChildren(ne);ee&&(Array.isArray(ee)?this._flattenChildren(ee,E,M,A):ee.pipe((0,W.q)(1)).subscribe(B=>{this._flattenChildren(B,E,M,A)}))}return M}_flattenChildren(ne,E,M,A){ne.forEach((R,ee)=>{let B=A.slice();B.push(ee!=ne.length-1),this._flattenNode(R,E+1,M,B)})}flattenNodes(ne){let E=[];return ne.forEach(M=>this._flattenNode(M,0,E,[])),E}expandFlattenedNodes(ne,E){let M=[],A=[];return A[0]=!0,ne.forEach(R=>{let ee=!0;for(let B=0;B<=this.getLevel(R);B++)ee=ee&&A[B];ee&&M.push(R),this.isExpandable(R)&&(A[this.getLevel(R)+1]=E.isExpanded(R))}),M}}class de extends D.o2{constructor(ne,E,M){super(),this._treeControl=ne,this._treeFlattener=E,this._flattenedData=new L.X([]),this._expandedData=new L.X([]),this._data=new L.X([]),M&&(this.data=M)}get data(){return this._data.value}set data(ne){this._data.next(ne),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(ne){return(0,ce.T)(ne.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,G.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}},6360:(Qt,Z,S)=>{"use strict";S.d(Z,{Qb:()=>Ia,PW:()=>Ur});var s=S(5e3),_=S(2313),y=S(1777);const j=!1;function L(Bt){return new s.vHH(3e3,j)}function Ve(){return"undefined"!=typeof window&&void 0!==window.document}function Be(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ut(Bt){switch(Bt.length){case 0:return new y.ZN;case 1:return Bt[0];default:return new y.ZE(Bt)}}function Ge(Bt,ye,Te,gt,$t={},mn={}){const kn=[],In=[];let Yn=-1,ci=null;if(gt.forEach(Oi=>{const Ji=Oi.offset,_r=Ji==Yn,wr=_r&&ci||{};
1Object.keys(Oi).forEach(Li=>{let Mr=Li,ui=Oi[Li];if("offset"!==Li)switch(Mr=ye.normalizePropertyName(Mr,kn),ui){case y.k1:ui=$t[Li];break;case y.l3:ui=mn[Li];break;default:ui=ye.normalizeStyleValue(Li,Mr,ui,kn)}wr[Mr]=ui}),_r||In.push(wr),ci=wr,Yn=Ji}),kn.length)throw function B(Bt){return new s.vHH(3502,j)}();return In}function wt(Bt,ye,Te,gt){switch(ye){case"start":Bt.onStart(()=>gt(Te&&Ot(Te,"start",Bt)));break;case"done":Bt.onDone(()=>gt(Te&&Ot(Te,"done",Bt)));break;case"destroy":Bt.onDestroy(()=>gt(Te&&Ot(Te,"destroy",Bt)))}}function Ot(Bt,ye,Te){const gt=Te.totalTime,mn=Ft(Bt.element,Bt.triggerName,Bt.fromState,Bt.toState,ye||Bt.phaseName,null==gt?Bt.totalTime:gt,!!Te.disabled),kn=Bt._data;return null!=kn&&(mn._data=kn),mn}function Ft(Bt,ye,Te,gt,$t="",mn=0,kn){return{element:Bt,triggerName:ye,fromState:Te,toState:gt,phaseName:$t,totalTime:mn,disabled:!!kn}}function ht(Bt,ye,Te){let gt;return Bt instanceof Map?(gt=Bt.get(ye),gt||Bt.set(ye,gt=Te)):(gt=Bt[ye],gt||(gt=Bt[ye]=Te)),gt}function Ht(Bt){const ye=Bt.indexOf(":");return[Bt.substring(1,ye),Bt.substr(ye+1)]}let jt=(Bt,ye)=>!1,cn=(Bt,ye,Te)=>[],hn=null;function vn(Bt){const ye=Bt.parentNode||Bt.host;return ye===hn?null:ye}(Be()||"undefined"!=typeof Element)&&(Ve()?(hn=(()=>document.documentElement)(),jt=(Bt,ye)=>{for(;ye;){if(ye===Bt)return!0;ye=vn(ye)}return!1}):jt=(Bt,ye)=>Bt.contains(ye),cn=(Bt,ye,Te)=>{if(Te)return Array.from(Bt.querySelectorAll(ye));const gt=Bt.querySelector(ye);return gt?[gt]:[]});let Xe=null,qe=!1;function Pe(Bt){Xe||(Xe=function tt(){return"undefined"!=typeof document?document.body:null}()||{},qe=!!Xe.style&&"WebkitAppearance"in Xe.style);let ye=!0;return Xe.style&&!function Jt(Bt){return"ebkit"==Bt.substring(1,6)}(Bt)&&(ye=Bt in Xe.style,!ye&&qe&&(ye="Webkit"+Bt.charAt(0).toUpperCase()+Bt.substr(1)in Xe.style)),ye}const bt=jt,un=cn;let Et=(()=>{class Bt{validateStyleProperty(Te){return Pe(Te)}matchesElement(Te,gt){return!1}containsElement(Te,gt){return bt(Te,gt)}getParentElement(Te){return vn(Te)}query(Te,gt,$t){return un(Te,gt,$t)}computeStyle(Te,gt,$t){return $t||""}animate(Te,gt,$t,mn,kn,In=[],Yn){return new y.ZN($t,mn)}}return Bt.\u0275fac=function(Te){return new(Te||Bt)},Bt.\u0275prov=s.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})(),Rt=(()=>{class Bt{}return Bt.NOOP=new Et,Bt})();const Gn="ng-enter",Zn="ng-leave",zn="ng-trigger",nn=".ng-trigger",Vn="ng-animating",Yt=".ng-animating";function Rn(Bt){if("number"==typeof Bt)return Bt;const ye=Bt.match(/^(-?[\.\d]+)(m?s)/);return!ye||ye.length<2?0:Mt(parseFloat(ye[1]),ye[2])}function Mt(Bt,ye){return"s"===ye?1e3*Bt:Bt}function kt(Bt,ye,Te){return Bt.hasOwnProperty("duration")?Bt:function We(Bt,ye,Te){let $t,mn=0,kn="";if("string"==typeof Bt){const In=Bt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===In)return ye.push(L()),{duration:0,delay:0,easing:""};$t=Mt(parseFloat(In[1]),In[2]);const Yn=In[3];null!=Yn&&(mn=Mt(parseFloat(Yn),In[4]));const ci=In[5];ci&&(kn=ci)}else $t=Bt;if(!Te){let In=!1,Yn=ye.length;$t<0&&(ye.push(function ce(){return new s.vHH(3100,j)}()),In=!0),mn<0&&(ye.push(function W(){return new s.vHH(3101,j)}()),In=!0),In&&ye.splice(Yn,0,L())}return{duration:$t,delay:mn,easing:kn}}(Bt,ye,Te)}function Ue(Bt,ye={}){return Object.keys(Bt).forEach(Te=>{ye[Te]=Bt[Te]}),ye}function Lt(Bt,ye,Te={}){if(ye)for(let gt in Bt)Te[gt]=Bt[gt];else Ue(Bt,Te);return Te}function xt(Bt,ye,Te){return Te?ye+":"+Te+";":""}function Gt(Bt){let ye="";for(let Te=0;Te<Bt.style.length;Te++){const gt=Bt.style.item(Te);ye+=xt(0,gt,Bt.style.getPropertyValue(gt))}for(const Te in Bt.style)Bt.style.hasOwnProperty(Te)&&!Te.startsWith("_")&&(ye+=xt(0,Xn(Te),Bt.style[Te]));Bt.setAttribute("style",ye)}function Ke(Bt,ye,Te){Bt.style&&(Object.keys(ye).forEach(gt=>{const $t=xn(gt);Te&&!Te.hasOwnProperty(gt)&&(Te[gt]=Bt.style[$t]),Bt.style[$t]=ye[gt]}),Be()&&Gt(Bt))}function Ne(Bt,ye){Bt.style&&(Object.keys(ye).forEach(Te=>{const gt=xn(Te);Bt.style[gt]=""}),Be()&&Gt(Bt))}function Ae(Bt){return Array.isArray(Bt)?1==Bt.length?Bt[0]:(0,y.vP)(Bt):Bt}const Ye=new RegExp("{{\\s*(.+?)\\s*}}","g");function je(Bt){let ye=[];if("string"==typeof Bt){let Te;for(;Te=Ye.exec(Bt);)ye.push(Te[1]);Ye.lastIndex=0}return ye}function Tt(Bt,ye,Te){const gt=Bt.toString(),$t=gt.replace(Ye,(mn,kn)=>{let In=ye[kn];return ye.hasOwnProperty(kn)||(Te.push(function $(Bt){return new s.vHH(3003,j)}()),In=""),In.toString()});return $t==gt?Bt:$t}function rn(Bt){const ye=[];let Te=Bt.next();for(;!Te.done;)ye.push(Te.value),Te=Bt.next();return ye}const On=/-+([a-z0-9])/g;function xn(Bt){return Bt.replace(On,(...ye)=>ye[1].toUpperCase())}function Xn(Bt){return Bt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function fi(Bt,ye,Te){switch(ye.type){case 7:return Bt.visitTrigger(ye,Te);case 0:return Bt.visitState(ye,Te);case 1:return Bt.visitTransition(ye,Te);case 2:return Bt.visitSequence(ye,Te);case 3:return Bt.visitGroup(ye,Te);case 4:return Bt.visitAnimate(ye,Te);case 5:return Bt.visitKeyframes(ye,Te);case 6:return Bt.visitStyle(ye,Te);case 8:return Bt.visitReference(ye,Te);case 9:return Bt.visitAnimateChild(ye,Te);case 10:return Bt.visitAnimateRef(ye,Te);case 11:return Bt.visitQuery(ye,Te);case 12:return Bt.visitStagger(ye,Te);default:throw function te(Bt){return new s.vHH(3004,j)}()}}function Ki(Bt,ye){return window.getComputedStyle(Bt)[ye]}function q(Bt,ye){const Te=[];
vendor: 18,274 bytes, line 1
1return"string"==typeof Bt?Bt.split(/\s*,\s*/).forEach(gt=>function xe(Bt,ye,Te){if(":"==Bt[0]){const Yn=function _t(Bt,ye){switch(Bt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(Te,gt)=>parseFloat(gt)>parseFloat(Te);case":decrement":return(Te,gt)=>parseFloat(gt)<parseFloat(Te);default:return ye.push(function M(Bt){return new s.vHH(3016,j)}()),"* => *"}}(Bt,Te);if("function"==typeof Yn)return void ye.push(Yn);Bt=Yn}const gt=Bt.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==gt||gt.length<4)return Te.push(function E(Bt){return new s.vHH(3015,j)}()),ye;const $t=gt[1],mn=gt[2],kn=gt[3];ye.push(Qn($t,kn));"<"==mn[0]&&!("*"==$t&&"*"==kn)&&ye.push(Qn(kn,$t))}(gt,Te,ye)):Te.push(Bt),Te}const Xt=new Set(["true","1"]),Un=new Set(["false","0"]);function Qn(Bt,ye){const Te=Xt.has(Bt)||Un.has(Bt),gt=Xt.has(ye)||Un.has(ye);return($t,mn)=>{let kn="*"==Bt||Bt==$t,In="*"==ye||ye==mn;return!kn&&Te&&"boolean"==typeof $t&&(kn=$t?Xt.has(Bt):Un.has(Bt)),!In&>&&"boolean"==typeof mn&&(In=mn?Xt.has(ye):Un.has(ye)),kn&&In}}const li=new RegExp("s*:selfs*,?","g");function mr(Bt,ye,Te,gt){return new hr(Bt).build(ye,Te,gt)}class hr{constructor(ye){this._driver=ye}build(ye,Te,gt){const $t=new fs(Te);this._resetContextStyleTimingState($t);const mn=fi(this,Ae(ye),$t);return $t.unsupportedCSSPropertiesFound.size&&$t.unsupportedCSSPropertiesFound.keys(),mn}_resetContextStyleTimingState(ye){ye.currentQuerySelector="",ye.collectedStyles={},ye.collectedStyles[""]={},ye.currentTime=0}visitTrigger(ye,Te){let gt=Te.queryCount=0,$t=Te.depCount=0;const mn=[],kn=[];return"@"==ye.name.charAt(0)&&Te.errors.push(function J(){return new s.vHH(3006,j)}()),ye.definitions.forEach(In=>{if(this._resetContextStyleTimingState(Te),0==In.type){const Yn=In,ci=Yn.name;ci.toString().split(/\s*,\s*/).forEach(Oi=>{Yn.name=Oi,mn.push(this.visitState(Yn,Te))}),Yn.name=ci}else if(1==In.type){const Yn=this.visitTransition(In,Te);gt+=Yn.queryCount,$t+=Yn.depCount,kn.push(Yn)}else Te.errors.push(function Me(){return new s.vHH(3007,j)}())}),{type:7,name:ye.name,states:mn,transitions:kn,queryCount:gt,depCount:$t,options:null}}visitState(ye,Te){const gt=this.visitStyle(ye.styles,Te),$t=ye.options&&ye.options.params||null;if(gt.containsDynamicStyles){const mn=new Set,kn=$t||{};gt.styles.forEach(In=>{if(vs(In)){const Yn=In;Object.keys(Yn).forEach(ci=>{je(Yn[ci]).forEach(Oi=>{kn.hasOwnProperty(Oi)||mn.add(Oi)})})}}),mn.size&&(rn(mn.values()),Te.errors.push(function Re(Bt,ye){return new s.vHH(3008,j)}()))}return{type:0,name:ye.name,style:gt,options:$t?{params:$t}:null}}visitTransition(ye,Te){Te.queryCount=0,Te.depCount=0;const gt=fi(this,Ae(ye.animation),Te);return{type:1,matchers:q(ye.expr,Te.errors),animation:gt,queryCount:Te.queryCount,depCount:Te.depCount,options:Ds(ye.options)}}visitSequence(ye,Te){return{type:2,steps:ye.steps.map(gt=>fi(this,gt,Te)),options:Ds(ye.options)}}visitGroup(ye,Te){const gt=Te.currentTime;let $t=0;const mn=ye.steps.map(kn=>{Te.currentTime=gt;const In=fi(this,kn,Te);return $t=Math.max($t,Te.currentTime),In});return Te.currentTime=$t,{type:3,steps:mn,options:Ds(ye.options)}}visitAnimate(ye,Te){const gt=function go(Bt,ye){if(Bt.hasOwnProperty("duration"))return Bt;if("number"==typeof Bt)return dr(kt(Bt,ye).duration,0,"");const Te=Bt;if(Te.split(/\s+/).some(mn=>"{"==mn.charAt(0)&&"{"==mn.charAt(1))){const mn=dr(0,0,"");return mn.dynamic=!0,mn.strValue=Te,mn}const $t=kt(Te,ye);return dr($t.duration,$t.delay,$t.easing)}(ye.timings,Te.errors);Te.currentAnimateTimings=gt;let $t,mn=ye.styles?ye.styles:(0,y.oB)({});if(5==mn.type)$t=this.visitKeyframes(mn,Te);else{let kn=ye.styles,In=!1;if(!kn){In=!0;const ci={};gt.easing&&(ci.easing=gt.easing),kn=(0,y.oB)(ci)}Te.currentTime+=gt.duration+gt.delay;const Yn=this.visitStyle(kn,Te);Yn.isEmptyStep=In,$t=Yn}return Te.currentAnimateTimings=null,{type:4,timings:gt,style:$t,options:null}}visitStyle(ye,Te){const gt=this._makeStyleAst(ye,Te);return this._validateStyleAst(gt,Te),gt}_makeStyleAst(ye,Te){const gt=[];Array.isArray(ye.styles)?ye.styles.forEach(kn=>{"string"==typeof kn?kn==y.l3?gt.push(kn):Te.errors.push(function me(Bt){return new s.vHH(3002,j)}()):gt.push(kn)}):gt.push(ye.styles);let $t=!1,mn=null;return gt.forEach(kn=>{if(vs(kn)){const In=kn,Yn=In.easing;if(Yn&&(mn=Yn,delete In.easing),!$t)for(let ci in In)if(In[ci].toString().indexOf("{{")>=0){$t=!0;break}}}),{type:6,styles:gt,easing:mn,offset:ye.offset,containsDynamicStyles:$t,options:null}}_validateStyleAst(ye,Te){const gt=Te.currentAnimateTimings;let $t=Te.currentTime,mn=Te.currentTime;gt&&mn>0&&(mn-=gt.duration+gt.delay),ye.styles.forEach(kn=>{"string"!=typeof kn&&Object.keys(kn).forEach(In=>{if(!this._driver.validateStyleProperty(In))return delete kn[In],void Te.unsupportedCSSPropertiesFound.add(In);const Yn=Te.collectedStyles[Te.currentQuerySelector],ci=Yn[In];let Oi=!0;ci&&(mn!=$t&&mn>=ci.startTime&&$t<=ci.endTime&&(Te.errors.push(function P(Bt,ye,Te,gt,$t){return new s.vHH(3010,j)}()),Oi=!1),mn=ci.startTime),Oi&&(Yn[In]={startTime:mn,endTime:$t}),Te.options&&function Oe(Bt,ye,Te){const gt=ye.params||{},$t=je(Bt);$t.length&&$t.forEach(mn=>{gt.hasOwnProperty(mn)||Te.push(function G(Bt){return new s.vHH(3001,j)}())})}(kn[In],Te.options,Te.errors)})})}visitKeyframes(ye,Te){const gt={type:5,styles:[],options:null};if(!Te.currentAnimateTimings)return Te.errors.push(function N(){return new s.vHH(3011,j)}()),gt;let mn=0;const kn=[];let In=!1,Yn=!1,ci=0;const Oi=ye.steps.map(Sr=>{const $r=this._makeStyleAst(Sr,Te);let Es=null!=$r.offset?$r.offset:function or(Bt){if("string"==typeof Bt)return null;let ye=null;if(Array.isArray(Bt))Bt.forEach(Te=>{if(vs(Te)&&Te.hasOwnProperty("offset")){const gt=Te;ye=parseFloat(gt.offset),delete gt.offset}});else if(vs(Bt)&&Bt.hasOwnProperty("offset")){const Te=Bt;ye=parseFloat(Te.offset),delete Te.offset}return ye}($r.styles),Vr=0;return null!=Es&&(mn++,Vr=$r.offset=Es),Yn=Yn||Vr<0||Vr>1,In=In||Vr<ci,ci=Vr,kn.push(Vr),$r});Yn&&Te.errors.push(function Y(){return new s.vHH(3012,j)}()),In&&Te.errors.push(function de(){return new s.vHH(3200,j)}());const Ji=ye.steps.length;let _r=0;mn>0&&mn<Ji?Te.errors.push(function re(){return new s.vHH(3202,j)}()):0==mn&&(_r=1/(Ji-1));const wr=Ji-1,Li=Te.currentTime,Mr=Te.currentAnimateTimings,ui=Mr.duration;return Oi.forEach((Sr,$r)=>{const Es=_r>0?$r==wr?1:_r*$r:kn[$r],Vr=Es*ui;Te.currentTime=Li+Mr.delay+Vr,Mr.duration=Vr,this._validateStyleAst(Sr,Te),Sr.offset=Es,gt.styles.push(Sr)}),gt}visitReference(ye,Te){return{type:8,animation:fi(this,Ae(ye.animation),Te),options:Ds(ye.options)}}visitAnimateChild(ye,Te){return Te.depCount++,{type:9,options:Ds(ye.options)}}visitAnimateRef(ye,Te){return{type:10,animation:this.visitReference(ye.animation,Te),options:Ds(ye.options)}}visitQuery(ye,Te){const gt=Te.currentQuerySelector,$t=ye.options||{};Te.queryCount++,Te.currentQuery=ye;const[mn,kn]=function Wi(Bt){const ye=!!Bt.split(/\s*,\s*/).find(Te=>":self"==Te);return ye&&(Bt=Bt.replace(li,"")),Bt=Bt.replace(/@\*/g,nn).replace(/@\w+/g,Te=>nn+"-"+Te.substr(1)).replace(/:animating/g,Yt),[Bt,ye]}(ye.selector);Te.currentQuerySelector=gt.length?gt+" "+mn:mn,ht(Te.collectedStyles,Te.currentQuerySelector,{});const In=fi(this,Ae(ye.animation),Te);return Te.currentQuery=null,Te.currentQuerySelector=gt,{type:11,selector:mn,limit:$t.limit||0,optional:!!$t.optional,includeSelf:kn,animation:In,originalSelector:ye.selector,options:Ds(ye.options)}}visitStagger(ye,Te){Te.currentQuery||Te.errors.push(function V(){return new s.vHH(3013,j)}());const gt="full"===ye.timings?{duration:0,delay:0,easing:"full"}:kt(ye.timings,Te.errors,!0);return{type:12,animation:fi(this,Ae(ye.animation),Te),timings:gt,options:null}}}class fs{constructor(ye){this.errors=ye,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vs(Bt){return!Array.isArray(Bt)&&"object"==typeof Bt}function Ds(Bt){return Bt?(Bt=Ue(Bt)).params&&(Bt.params=function qs(Bt){return Bt?Ue(Bt):null}(Bt.params)):Bt={},Bt}function dr(Bt,ye,Te){return{duration:Bt,delay:ye,easing:Te}}function Qs(Bt,ye,Te,gt,$t,mn,kn=null,In=!1){return{type:1,element:Bt,keyframes:ye,preStyleProps:Te,postStyleProps:gt,duration:$t,delay:mn,totalTime:$t+mn,easing:kn,subTimeline:In}}class Os{constructor(){this._map=new Map}get(ye){return this._map.get(ye)||[]}append(ye,Te){let gt=this._map.get(ye);gt||this._map.set(ye,gt=[]),gt.push(...Te)}has(ye){return this._map.has(ye)}clear(){this._map.clear()}}const qr=new RegExp(":enter","g"),Oo=new RegExp(":leave","g");function ar(Bt,ye,Te,gt,$t,mn={},kn={},In,Yn,ci=[]){return(new Wr).buildKeyframes(Bt,ye,Te,gt,$t,mn,kn,In,Yn,ci)}class Wr{buildKeyframes(ye,Te,gt,$t,mn,kn,In,Yn,ci,Oi=[]){ci=ci||new Os;const Ji=new fr(ye,Te,ci,$t,mn,Oi,[]);Ji.options=Yn,Ji.currentTimeline.setStyles([kn],null,Ji.errors,Yn),fi(this,gt,Ji);const _r=Ji.timelines.filter(wr=>wr.containsAnimation());if(Object.keys(In).length){let wr;for(let Li=_r.length-1;Li>=0;Li--){const Mr=_r[Li];if(Mr.element===Te){wr=Mr;break}}wr&&!wr.allowOnlyTimelineStyles()&&wr.setStyles([In],null,Ji.errors,Yn)}return _r.length?_r.map(wr=>wr.buildKeyframes()):[Qs(Te,[],[],[],0,0,"",!1)]}visitTrigger(ye,Te){}visitState(ye,Te){}visitTransition(ye,Te){}visitAnimateChild(ye,Te){const gt=Te.subInstructions.get(Te.element);if(gt){const $t=Te.createSubContext(ye.options),mn=Te.currentTimeline.currentTime,kn=this._visitSubInstructions(gt,$t,$t.options);mn!=kn&&Te.transformIntoNewTimeline(kn)}Te.previousNode=ye}visitAnimateRef(ye,Te){const gt=Te.createSubContext(ye.options);gt.transformIntoNewTimeline(),this.visitReference(ye.animation,gt),Te.transformIntoNewTimeline(gt.currentTimeline.currentTime),Te.previousNode=ye}_visitSubInstructions(ye,Te,gt){let mn=Te.currentTimeline.currentTime;const kn=null!=gt.duration?Rn(gt.duration):null,In=null!=gt.delay?Rn(gt.delay):null;return 0!==kn&&ye.forEach(Yn=>{const ci=Te.appendInstructionToTimeline(Yn,kn,In);mn=Math.max(mn,ci.duration+ci.delay)}),mn}visitReference(ye,Te){Te.updateOptions(ye.options,!0),fi(this,ye.animation,Te),Te.previousNode=ye}visitSequence(ye,Te){const gt=Te.subContextCount;let $t=Te;const mn=ye.options;if(mn&&(mn.params||mn.delay)&&($t=Te.createSubContext(mn),$t.transformIntoNewTimeline(),null!=mn.delay)){6==$t.previousNode.type&&($t.currentTimeline.snapshotCurrentStyles(),$t.previousNode=ys);const kn=Rn(mn.delay);$t.delayNextStep(kn)}ye.steps.length&&(ye.steps.forEach(kn=>fi(this,kn,$t)),$t.currentTimeline.applyStylesToKeyframe(),$t.subContextCount>gt&&$t.transformIntoNewTimeline()),Te.previousNode=ye}visitGroup(ye,Te){const gt=[];let $t=Te.currentTimeline.currentTime;const mn=ye.options&&ye.options.delay?Rn(ye.options.delay):0;ye.steps.forEach(kn=>{const In=Te.createSubContext(ye.options);mn&&In.delayNextStep(mn),fi(this,kn,In),$t=Math.max($t,In.currentTimeline.currentTime),gt.push(In.currentTimeline)}),gt.forEach(kn=>Te.currentTimeline.mergeTimelineCollectedStyles(kn)),Te.transformIntoNewTimeline($t),Te.previousNode=ye}_visitTiming(ye,Te){if(ye.dynamic){const gt=ye.strValue;return kt(Te.params?Tt(gt,Te.params,Te.errors):gt,Te.errors)}return{duration:ye.duration,delay:ye.delay,easing:ye.easing}}visitAnimate(ye,Te){const gt=Te.currentAnimateTimings=this._visitTiming(ye.timings,Te),$t=Te.currentTimeline;gt.delay&&(Te.incrementTime(gt.delay),$t.snapshotCurrentStyles());const mn=ye.style;5==mn.type?this.visitKeyframes(mn,Te):(Te.incrementTime(gt.duration),this.visitStyle(mn,Te),$t.applyStylesToKeyframe()),Te.currentAnimateTimings=null,Te.previousNode=ye}visitStyle(ye,Te){const gt=Te.currentTimeline,$t=Te.currentAnimateTimings;!$t&>.getCurrentStyleProperties().length&>.forwardFrame();const mn=$t&&$t.easing||ye.easing;ye.isEmptyStep?gt.applyEmptyStep(mn):gt.setStyles(ye.styles,mn,Te.errors,Te.options),Te.previousNode=ye}visitKeyframes(ye,Te){const gt=Te.currentAnimateTimings,$t=Te.currentTimeline.duration,mn=gt.duration,In=Te.createSubContext().currentTimeline;In.easing=gt.easing,ye.styles.forEach(Yn=>{In.forwardTime((Yn.offset||0)*mn),In.setStyles(Yn.styles,Yn.easing,Te.errors,Te.options),In.applyStylesToKeyframe()}),Te.currentTimeline.mergeTimelineCollectedStyles(In),Te.transformIntoNewTimeline($t+mn),Te.previousNode=ye}visitQuery(ye,Te){const gt=Te.currentTimeline.currentTime,$t=ye.options||{},mn=$t.delay?Rn($t.delay):0;mn&&(6===Te.previousNode.type||0==gt&&Te.currentTimeline.getCurrentStyleProperties().length)&&(Te.currentTimeline.snapshotCurrentStyles(),Te.previousNode=ys);let kn=gt;const In=Te.invokeQuery(ye.selector,ye.originalSelector,ye.limit,ye.includeSelf,!!$t.optional,Te.errors);Te.currentQueryTotal=In.length;let Yn=null;In.forEach((ci,Oi)=>{Te.currentQueryIndex=Oi;const Ji=Te.createSubContext(ye.options,ci);mn&&Ji.delayNextStep(mn),ci===Te.element&&(Yn=Ji.currentTimeline),fi(this,ye.animation,Ji),Ji.currentTimeline.applyStylesToKeyframe(),kn=Math.max(kn,Ji.currentTimeline.currentTime)}),Te.currentQueryIndex=0,Te.currentQueryTotal=0,Te.transformIntoNewTimeline(kn),Yn&&(Te.currentTimeline.mergeTimelineCollectedStyles(Yn),Te.currentTimeline.snapshotCurrentStyles()),Te.previousNode=ye}visitStagger(ye,Te){const gt=Te.parentContext,$t=Te.currentTimeline,mn=ye.timings,kn=Math.abs(mn.duration),In=kn*(Te.currentQueryTotal-1);let Yn=kn*Te.currentQueryIndex;switch(mn.duration<0?"reverse":mn.easing){case"reverse":Yn=In-Yn;break;case"full":Yn=gt.currentStaggerTime}const Oi=Te.currentTimeline;Yn&&Oi.delayNextStep(Yn);const Ji=Oi.currentTime;fi(this,ye.animation,Te),Te.previousNode=ye,gt.currentStaggerTime=$t.currentTime-Ji+($t.startTime-gt.currentTimeline.startTime)}}const ys={};class fr{constructor(ye,Te,gt,$t,mn,kn,In,Yn){this._driver=ye,this.element=Te,this.subInstructions=gt,this._enterClassName=$t,this._leaveClassName=mn,this.errors=kn,this.timelines=In,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ys,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Yn||new ls(this._driver,Te,0),In.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(ye,Te){if(!ye)return;const gt=ye;let $t=this.options;null!=gt.duration&&($t.duration=Rn(gt.duration)),null!=gt.delay&&($t.delay=Rn(gt.delay));const mn=gt.params;if(mn){let kn=$t.params;kn||(kn=this.options.params={}),Object.keys(mn).forEach(In=>{(!Te||!kn.hasOwnProperty(In))&&(kn[In]=Tt(mn[In],kn,this.errors))})}}_copyOptions(){const ye={};if(this.options){const Te=this.options.params;if(Te){const gt=ye.params={};Object.keys(Te).forEach($t=>{gt[$t]=Te[$t]})}}return ye}createSubContext(ye=null,Te,gt){const $t=Te||this.element,mn=new fr(this._driver,$t,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork($t,gt||0));return mn.previousNode=this.previousNode,mn.currentAnimateTimings=this.currentAnimateTimings,mn.options=this._copyOptions(),mn.updateOptions(ye),mn.currentQueryIndex=this.currentQueryIndex,mn.currentQueryTotal=this.currentQueryTotal,mn.parentContext=this,this.subContextCount++,mn}transformIntoNewTimeline(ye){return this.previousNode=ys,this.currentTimeline=this.currentTimeline.fork(this.element,ye),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(ye,Te,gt){const $t={duration:null!=Te?Te:ye.duration,delay:this.currentTimeline.currentTime+(null!=gt?gt:0)+ye.delay,easing:""},mn=new eo(this._driver,ye.element,ye.keyframes,ye.preStyleProps,ye.postStyleProps,$t,ye.stretchStartingKeyframe);return this.timelines.push(mn),$t}incrementTime(ye){this.currentTimeline.forwardTime(this.currentTimeline.duration+ye)}delayNextStep(ye){ye>0&&this.currentTimeline.delayNextStep(ye)}invokeQuery(ye,Te,gt,$t,mn,kn){let In=[];if($t&&In.push(this.element),ye.length>0){ye=(ye=ye.replace(qr,"."+this._enterClassName)).replace(Oo,"."+this._leaveClassName);let ci=this._driver.query(this.element,ye,1!=gt);0!==gt&&(ci=gt<0?ci.slice(ci.length+gt,ci.length):ci.slice(0,gt)),In.push(...ci)}return!mn&&0==In.length&&kn.push(function ne(Bt){return new s.vHH(3014,j)}()),In}}class ls{constructor(ye,Te,gt,$t){this._driver=ye,this.element=Te,this.startTime=gt,this._elementTimelineStylesLookup=$t,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Te),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Te,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(ye){const Te=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||Te?(this.forwardTime(this.currentTime+ye),Te&&this.snapshotCurrentStyles()):this.startTime+=ye}fork(ye,Te){return this.applyStylesToKeyframe(),new ls(this._driver,ye,Te||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(ye){this.applyStylesToKeyframe(),this.duration=ye,this._loadKeyframe()}_updateStyle(ye,Te){this._localTimelineStyles[ye]=Te,this._globalTimelineStyles[ye]=Te,this._styleSummary[ye]={time:this.currentTime,value:Te}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(ye){ye&&(this._previousKeyframe.easing=ye),Object.keys(this._globalTimelineStyles).forEac
1h(Te=>{this._backFill[Te]=this._globalTimelineStyles[Te]||y.l3,this._currentKeyframe[Te]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(ye,Te,gt,$t){Te&&(this._previousKeyframe.easing=Te);const mn=$t&&$t.params||{},kn=function zs(Bt,ye){const Te={};let gt;return Bt.forEach($t=>{"*"===$t?(gt=gt||Object.keys(ye),gt.forEach(mn=>{Te[mn]=y.l3})):Lt($t,!1,Te)}),Te}(ye,this._globalTimelineStyles);Object.keys(kn).forEach(In=>{const Yn=Tt(kn[In],mn,gt);this._pendingStyles[In]=Yn,this._localTimelineStyles.hasOwnProperty(In)||(this._backFill[In]=this._globalTimelineStyles.hasOwnProperty(In)?this._globalTimelineStyles[In]:y.l3),this._updateStyle(In,Yn)})}applyStylesToKeyframe(){const ye=this._pendingStyles,Te=Object.keys(ye);0!=Te.length&&(this._pendingStyles={},Te.forEach(gt=>{this._currentKeyframe[gt]=ye[gt]}),Object.keys(this._localTimelineStyles).forEach(gt=>{this._currentKeyframe.hasOwnProperty(gt)||(this._currentKeyframe[gt]=this._localTimelineStyles[gt])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(ye=>{const Te=this._localTimelineStyles[ye];this._pendingStyles[ye]=Te,this._updateStyle(ye,Te)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const ye=[];for(let Te in this._currentKeyframe)ye.push(Te);return ye}mergeTimelineCollectedStyles(ye){Object.keys(ye._styleSummary).forEach(Te=>{const gt=this._styleSummary[Te],$t=ye._styleSummary[Te];(!gt||$t.time>gt.time)&&this._updateStyle(Te,$t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const ye=new Set,Te=new Set,gt=1===this._keyframes.size&&0===this.duration;let $t=[];this._keyframes.forEach((In,Yn)=>{const ci=Lt(In,!0);
1Object.keys(ci).forEach(Oi=>{const Ji=ci[Oi];Ji==y.k1?ye.add(Oi):Ji==y.l3&&Te.add(Oi)}),gt||(ci.offset=Yn/this.duration),$t.push(ci)});const mn=ye.size?rn(ye.values()):[],kn=Te.size?rn(Te.values()):[];if(gt){const In=$t[0],Yn=Ue(In);In.offset=0,Yn.offset=1,$t=[In,Yn]}return Qs(this.element,$t,mn,kn,this.duration,this.startTime,this.easing,!1)}}class eo extends ls{constructor(ye,Te,gt,$t,mn,kn,In=!1){super(ye,Te,kn.delay),this.keyframes=gt,this.preStyleProps=$t,this.postStyleProps=mn,this._stretchStartingKeyframe=In,this.timings={duration:kn.duration,delay:kn.delay,easing:kn.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let ye=this.keyframes,{delay:Te,duration:gt,easing:$t}=this.timings;if(this._stretchStartingKeyframe&&Te){const mn=[],kn=gt+Te,In=Te/kn,Yn=Lt(ye[0],!1);Yn.offset=0,mn.push(Yn);const ci=Lt(ye[0],!1);ci.offset=Kr(In),mn.push(ci);const Oi=ye.length-1;for(let Ji=1;Ji<=Oi;Ji++){let _r=Lt(ye[Ji],!1);_r.offset=Kr((Te+_r.offset*gt)/kn),mn.push(_r)}gt=kn,Te=0,$t="",ye=mn}return Qs(this.element,ye,this.preStyleProps,this.postStyleProps,gt,Te,$t,!0)}}function Kr(Bt,ye=3){const Te=Math.pow(10,ye-1);return Math.round(Bt*Te)/Te}class xs{}class vr extends xs{normalizePropertyName(ye,Te){return xn(ye)}normalizeStyleValue(ye,Te,gt,$t){let mn="";const kn=gt.toString().trim();if(Po[Te]&&0!==gt&&"0"!==gt)if("number"==typeof gt)mn="px";else{const In=gt.match(/^[+-]?[\d\.]+([a-z]*)$/);In&&0==In[1].length&&$t.push(function le(Bt,ye){return new s.vHH(3005,j)}())}return kn+mn}}const Po=(()=>function Ps(Bt){const ye={};return Bt.forEach(Te=>ye[Te]=!0),ye}("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".split(",")))();function Ao(Bt,ye,Te,gt,$t,mn,kn,In,Yn,ci,Oi,Ji,_r){return{type:0,element:Bt,triggerName:ye,isRemovalTransition:$t,fromState:Te,fromStyles:mn,toState:gt,toStyles:kn,timelines:In,queriedElements:Yn,preStyleProps:ci,postStyleProps:Oi,totalTime:Ji,errors:_r}}const to={};class ms{constructor(ye,Te,gt){this._triggerName=ye,this.ast=Te,this._stateStyles=gt}match(ye,Te,gt,$t){return function Ar(Bt,ye,Te,gt,$t){return Bt.some(mn=>mn(ye,Te,gt,$t))}(this.ast.matchers,ye,Te,gt,$t)}buildStyles(ye,Te,gt){const $t=this._stateStyles["*"],mn=this._stateStyles[ye],kn=$t?$t.buildStyles(Te,gt):{};return mn?mn.buildStyles(Te,gt):kn}build(ye,Te,gt,$t,mn,kn,In,Yn,ci,Oi){const Ji=[],_r=this.ast.options&&this.ast.options.params||to,Li=this.buildStyles(gt,In&&In.params||to,Ji),Mr=Yn&&Yn.params||to,ui=this.buildStyles($t,Mr,Ji),Sr=new Set,$r=new Map,Es=new Map,Vr="void"===$t,es={params:Object.assign(Object.assign({},_r),Mr)},As=Oi?[]:ar(ye,Te,this.ast.animation,mn,kn,Li,ui,es,ci,Ji);let br=0;if(As.forEach(H=>{br=Math.max(H.duration+H.delay,br)}),Ji.length)return Ao(Te,this._triggerName,gt,$t,Vr,Li,ui,[],[],$r,Es,br,Ji);As.forEach(H=>{const nt=H.element,At=ht($r,nt,{});H.preStyleProps.forEach(Fn=>At[Fn]=!0);const fn=ht(Es,nt,{});H.postStyleProps.forEach(Fn=>fn[Fn]=!0),nt!==Te&&Sr.add(nt)});const rs=rn(Sr.values());return Ao(Te,this._triggerName,gt,$t,Vr,Li,ui,As,rs,$r,Es,br)}}class lo{constructor(ye,Te,gt){this.styles=ye,this.defaultParams=Te,this.normalizer=gt}buildStyles(ye,Te){const gt={},$t=Ue(this.defaultParams);return Object.keys(ye).forEach(mn=>{const kn=ye[mn];null!=kn&&($t[mn]=kn)}),this.styles.styles.forEach(mn=>{if("string"!=typeof mn){const kn=mn;
1Object.keys(kn).forEach(In=>{let Yn=kn[In];Yn.length>1&&(Yn=Tt(Yn,$t,Te));const ci=this.normalizer.normalizePropertyName(In,Te);Yn=this.normalizer.normalizeStyleValue(In,ci,Yn,Te),gt[ci]=Yn})}}),gt}}class Nr{constructor(ye,Te,gt){this.name=ye,this.ast=Te,this._normalizer=gt,this.transitionFactories=[],this.states={},Te.states.forEach($t=>{this.states[$t.name]=new lo($t.style,$t.options&&$t.options.params||{},gt)}),Mo(this.states,"true","1"),Mo(this.states,"false","0"),Te.transitions.forEach($t=>{this.transitionFactories.push(new ms(ye,$t,this.states))}),this.fallbackTransition=function Xs(Bt,ye,Te){return new ms(Bt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(kn,In)=>!0],options:null,queryCount:0,depCount:0},ye)}(ye,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(ye,Te,gt,$t){return this.transitionFactories.find(kn=>kn.match(ye,Te,gt,$t))||null}matchStyles(ye,Te,gt){return this.fallbackTransition.buildStyles(ye,Te,gt)}}function Mo(Bt,ye,Te){Bt.hasOwnProperty(ye)?Bt.hasOwnProperty(Te)||(Bt[Te]=Bt[ye]):Bt.hasOwnProperty(Te)&&(Bt[ye]=Bt[Te])}const no=new Os;class Fs{constructor(ye,Te,gt){this.bodyNode=ye,this._driver=Te,this._normalizer=gt,this._animations={},this._playersById={},this.players=[]}register(ye,Te){const gt=[],mn=mr(this._driver,Te,gt,[]);if(gt.length)throw function K(Bt){return new s.vHH(3503,j)}();this._animations[ye]=mn}_buildPlayer(ye,Te,gt){const $t=ye.element,mn=Ge(0,this._normalizer,0,ye.keyframes,Te,gt);return this._driver.animate($t,mn,ye.duration,ye.delay,ye.easing,[],!0)}create(ye,Te,gt={}){const $t=[],mn=this._animations[ye];let kn;const In=new Map;if(mn?(kn=ar(this._driver,Te,mn,Gn,Zn,{},{},gt,no,$t),kn.forEach(Oi=>{const Ji=ht(In,Oi.element,{});Oi.postStyleProps.forEach(_r=>Ji[_r]=null)})):($t.push(function ge(){return new s.vHH(3300,j)}()),kn=[]),$t.length)throw function Fe(Bt){return new s.vHH(3504,j)}();In.forEach((Oi,Ji)=>{Object.keys(Oi).forEach(_r=>{Oi[_r]=this._driver.computeStyle(Ji,_r,y.l3)})});const ci=ut(kn.map(Oi=>{const Ji=In.get(Oi.element);return this._buildPlayer(Oi,{},Ji)}));return this._playersById[ye]=ci,ci.onDestroy(()=>this.destroy(ye)),this.players.push(ci),ci}destroy(ye){const Te=this._getPlayer(ye);Te.destroy(),delete this._playersById[ye];const gt=this.players.indexOf(Te);gt>=0&&this.players.splice(gt,1)}_getPlayer(ye){const Te=this._playersById[ye];if(!Te)throw function he(Bt){return new s.vHH(3301,j)}();return Te}listen(ye,Te,gt,$t){const mn=Ft(Te,"","","");return wt(this._getPlayer(ye),gt,mn,$t),()=>{}}command(ye,Te,gt,$t){if("register"==gt)return void this.register(ye,$t[0]);if("create"==gt)return void this.create(ye,Te,$t[0]||{});const mn=this._getPlayer(ye);switch(gt){case"play":mn.play();break;case"pause":mn.pause();break;case"reset":mn.reset();break;case"restart":mn.restart();break;case"finish":mn.finish();break;case"init":mn.init();break;case"setPosition":mn.setPosition(parseFloat($t[0]));break;case"destroy":this.destroy(ye)}}}const Dr="ng-animate-queued",Ws="ng-animate-disabled",pt=[],Zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Mn="__ng_removed";class jn{constructor(ye,Te=""){this.namespaceId=Te;const gt=ye&&ye.hasOwnProperty("value");if(this.value=function tr(Bt){return null!=Bt?Bt:null}(gt?ye.value:ye),gt){const mn=Ue(ye);delete mn.value,this.options=mn}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(ye){const Te=ye.params;if(Te){const gt=this.options.params;Object.keys(Te).forEach($t=>{null==gt[$t]&&(gt[$t]=Te[$t])})}}}const ti="void",pi=new jn(ti);class hi{constructor(ye,Te,gt){this.id=ye,this.hostElement=Te,this._engine=gt,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
vendor: 26,435 bytes, line 1
1+ye,yr(Te,this._hostClassName)}listen(ye,Te,gt,$t){if(!this._triggers.hasOwnProperty(Te))throw function fe(Bt,ye){return new s.vHH(3302,j)}();if(null==gt||0==gt.length)throw function Ie(Bt){return new s.vHH(3303,j)}();if(!function pr(Bt){return"start"==Bt||"done"==Bt}(gt))throw function Se(Bt,ye){return new s.vHH(3400,j)}();const mn=ht(this._elementListeners,ye,[]),kn={name:Te,phase:gt,callback:$t};mn.push(kn);const In=ht(this._engine.statesByElement,ye,{});return In.hasOwnProperty(Te)||(yr(ye,zn),yr(ye,zn+"-"+Te),In[Te]=pi),()=>{this._engine.afterFlush(()=>{const Yn=mn.indexOf(kn);Yn>=0&&mn.splice(Yn,1),this._triggers[Te]||delete In[Te]})}}register(ye,Te){return!this._triggers[ye]&&(this._triggers[ye]=Te,!0)}_getTrigger(ye){const Te=this._triggers[ye];if(!Te)throw function pe(Bt){return new s.vHH(3401,j)}();return Te}trigger(ye,Te,gt,$t=!0){const mn=this._getTrigger(Te),kn=new Pi(this.id,Te,ye);let In=this._engine.statesByElement.get(ye);In||(yr(ye,zn),yr(ye,zn+"-"+Te),this._engine.statesByElement.set(ye,In={}));let Yn=In[Te];const ci=new jn(gt,this.id);if(!(gt&>.hasOwnProperty("value"))&&Yn&&ci.absorbOptions(Yn.options),In[Te]=ci,Yn||(Yn=pi),ci.value!==ti&&Yn.value===ci.value){if(!function Ms(Bt,ye){const Te=Object.keys(Bt),gt=Object.keys(ye);if(Te.length!=gt.length)return!1;for(let $t=0;$t<Te.length;$t++){const mn=Te[$t];if(!ye.hasOwnProperty(mn)||Bt[mn]!==ye[mn])return!1}return!0}(Yn.params,ci.params)){const Mr=[],ui=mn.matchStyles(Yn.value,Yn.params,Mr),Sr=mn.matchStyles(ci.value,ci.params,Mr);Mr.length?this._engine.reportError(Mr):this._engine.afterFlush(()=>{Ne(ye,ui),Ke(ye,Sr)})}return}const _r=ht(this._engine.playersByElement,ye,[]);_r.forEach(Mr=>{Mr.namespaceId==this.id&&Mr.triggerName==Te&&Mr.queued&&Mr.destroy()});let wr=mn.matchTransition(Yn.value,ci.value,ye,ci.params),Li=!1;if(!wr){if(!$t)return;wr=mn.fallbackTransition,Li=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ye,triggerName:Te,transition:wr,fromState:Yn,toState:ci,player:kn,isFallbackTransition:Li}),Li||(yr(ye,Dr),kn.onStart(()=>{Rr(ye,Dr)})),kn.onDone(()=>{let Mr=this.players.indexOf(kn);Mr>=0&&this.players.splice(Mr,1);const ui=this._engine.playersByElement.get(ye);if(ui){let Sr=ui.indexOf(kn);Sr>=0&&ui.splice(Sr,1)}}),this.players.push(kn),_r.push(kn),kn}deregister(ye){delete this._triggers[ye],this._engine.statesByElement.forEach((Te,gt)=>{delete Te[ye]}),this._elementListeners.forEach((Te,gt)=>{this._elementListeners.set(gt,Te.filter($t=>$t.name!=ye))})}clearElementCache(ye){this._engine.statesByElement.delete(ye),this._elementListeners.delete(ye);const Te=this._engine.playersByElement.get(ye);Te&&(Te.forEach(gt=>gt.destroy()),this._engine.playersByElement.delete(ye))}_signalRemovalForInnerTriggers(ye,Te){const gt=this._engine.driver.query(ye,nn,!0);gt.forEach($t=>{if($t[Mn])return;const mn=this._engine.fetchNamespacesByElement($t);mn.size?mn.forEach(kn=>kn.triggerLeaveAnimation($t,Te,!1,!0)):this.clearElementCache($t)}),this._engine.afterFlushAnimationsDone(()=>gt.forEach($t=>this.clearElementCache($t)))}triggerLeaveAnimation(ye,Te,gt,$t){const mn=this._engine.statesByElement.get(ye),kn=new Map;if(mn){const In=[];if(Object.keys(mn).forEach(Yn=>{if(kn.set(Yn,mn[Yn].value),this._triggers[Yn]){const ci=this.trigger(ye,Yn,ti,$t);ci&&In.push(ci)}}),In.length)return this._engine.markElementAsRemoved(this.id,ye,!0,Te,kn),gt&&ut(In).onDone(()=>this._engine.processLeaveNode(ye)),!0}return!1}prepareLeaveAnimationListeners(ye){const Te=this._elementListeners.get(ye),gt=this._engine.statesByElement.get(ye);if(Te&>){const $t=new Set;Te.forEach(mn=>{const kn=mn.name;if($t.has(kn))return;$t.add(kn);const Yn=this._triggers[kn].fallbackTransition,ci=gt[kn]||pi,Oi=new jn(ti),Ji=new Pi(this.id,kn,ye);this._engine.totalQueuedPlayers++,this._queue.push({element:ye,triggerName:kn,transition:Yn,fromState:ci,toState:Oi,player:Ji,isFallbackTransition:!0})})}}removeNode(ye,Te){const gt=this._engine;if(ye.childElementCount&&this._signalRemovalForInnerTriggers(ye,Te),this.triggerLeaveAnimation(ye,Te,!0))return;let $t=!1;if(gt.totalAnimations){const mn=gt.players.length?gt.playersByQueriedElement.get(ye):[];if(mn&&mn.length)$t=!0;else{let kn=ye;for(;kn=kn.parentNode;)if(gt.statesByElement.get(kn)){$t=!0;break}}}if(this.prepareLeaveAnimationListeners(ye),$t)gt.markElementAsRemoved(this.id,ye,!1,Te);else{const mn=ye[Mn];(!mn||mn===Zt)&&(gt.afterFlush(()=>this.clearElementCache(ye)),gt.destroyInnerAnimations(ye),gt._onRemovalComplete(ye,Te))}}insertNode(ye,Te){yr(ye,this._hostClassName)}drainQueuedTransitions(ye){const Te=[];return this._queue.forEach(gt=>{const $t=gt.player;if($t.destroyed)return;const mn=gt.element,kn=this._elementListeners.get(mn);kn&&kn.forEach(In=>{if(In.name==gt.triggerName){const Yn=Ft(mn,gt.triggerName,gt.fromState.value,gt.toState.value);Yn._data=ye,wt(gt.player,In.phase,Yn,In.callback)}}),$t.markedForDestroy?this._engine.afterFlush(()=>{$t.destroy()}):Te.push(gt)}),this._queue=[],Te.sort((gt,$t)=>{const mn=gt.transition.ast.depCount,kn=$t.transition.ast.depCount;return 0==mn||0==kn?mn-kn:this._engine.driver.containsElement(gt.element,$t.element)?1:-1})}destroy(ye){this.players.forEach(Te=>Te.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,ye)}elementContainsData(ye){let Te=!1;return this._elementListeners.has(ye)&&(Te=!0),Te=!!this._queue.find(gt=>gt.element===ye)||Te,Te}}class Di{constructor(ye,Te,gt){this.bodyNode=ye,this.driver=Te,this._normalizer=gt,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=($t,mn)=>{}}_onRemovalComplete(ye,Te){this.onRemovalComplete(ye,Te)}get queuedPlayers(){const ye=[];return this._namespaceList.forEach(Te=>{Te.players.forEach(gt=>{gt.queued&&ye.push(gt)})}),ye}createNamespace(ye,Te){const gt=new hi(ye,Te,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,Te)?this._balanceNamespaceList(gt,Te):(this.newHostElements.set(Te,gt),this.collectEnterElement(Te)),this._namespaceLookup[ye]=gt}_balanceNamespaceList(ye,Te){const gt=this._namespaceList,$t=this.namespacesByHostElement,mn=gt.length-1;if(mn>=0){let kn=!1;if(void 0!==this.driver.getParentElement){let In=this.driver.getParentElement(Te);for(;In;){const Yn=$t.get(In);if(Yn){const ci=gt.indexOf(Yn);gt.splice(ci+1,0,ye),kn=!0;break}In=this.driver.getParentElement(In)}}else for(let In=mn;In>=0;In--)if(this.driver.containsElement(gt[In].hostElement,Te)){gt.splice(In+1,0,ye),kn=!0;break}kn||gt.unshift(ye)}else gt.push(ye);return $t.set(Te,ye),ye}register(ye,Te){let gt=this._namespaceLookup[ye];return gt||(gt=this.createNamespace(ye,Te)),gt}registerTrigger(ye,Te,gt){let $t=this._namespaceLookup[ye];$t&&$t.register(Te,gt)&&this.totalAnimations++}destroy(ye,Te){if(!ye)return;const gt=this._fetchNamespace(ye);this.afterFlush(()=>{this.namespacesByHostElement.delete(gt.hostElement),delete this._namespaceLookup[ye];const $t=this._namespaceList.indexOf(gt);$t>=0&&this._namespaceList.splice($t,1)}),this.afterFlushAnimationsDone(()=>gt.destroy(Te))}_fetchNamespace(ye){return this._namespaceLookup[ye]}fetchNamespacesByElement(ye){const Te=new Set,gt=this.statesByElement.get(ye);if(gt){const $t=Object.keys(gt);for(let mn=0;mn<$t.length;mn++){const kn=gt[$t[mn]].namespaceId;if(kn){const In=this._fetchNamespace(kn);In&&Te.add(In)}}}return Te}trigger(ye,Te,gt,$t){if(Qr(Te)){const mn=this._fetchNamespace(ye);if(mn)return mn.trigger(Te,gt,$t),!0}return!1}insertNode(ye,Te,gt,$t){if(!Qr(Te))return;const mn=Te[Mn];if(mn&&mn.setForRemoval){mn.setForRemoval=!1,mn.setForMove=!0;const kn=this.collectedLeaveElements.indexOf(Te);kn>=0&&this.collectedLeaveElements.splice(kn,1)}if(ye){const kn=this._fetchNamespace(ye);kn&&kn.insertNode(Te,gt)}$t&&this.collectEnterElement(Te)}collectEnterElement(ye){this.collectedEnterElements.push(ye)}markElementAsDisabled(ye,Te){Te?this.disabledNodes.has(ye)||(this.disabledNodes.add(ye),yr(ye,Ws)):this.disabledNodes.has(ye)&&(this.disabledNodes.delete(ye),Rr(ye,Ws))}removeNode(ye,Te,gt,$t){if(Qr(Te)){const mn=ye?this._fetchNamespace(ye):null;if(mn?mn.removeNode(Te,$t):this.markElementAsRemoved(ye,Te,!1,$t),gt){const kn=this.namespacesByHostElement.get(Te);kn&&kn.id!==ye&&kn.removeNode(Te,$t)}}else this._onRemovalComplete(Te,$t)}markElementAsRemoved(ye,Te,gt,$t,mn){this.collectedLeaveElements.push(Te),Te[Mn]={namespaceId:ye,setForRemoval:$t,hasAnimation:gt,removedBeforeQueried:!1,previousTriggersValues:mn}}listen(ye,Te,gt,$t,mn){return Qr(Te)?this._fetchNamespace(ye).listen(Te,gt,$t,mn):()=>{}}_buildInstruction(ye,Te,gt,$t,mn){return ye.transition.build(this.driver,ye.element,ye.fromState.value,ye.toState.value,gt,$t,ye.fromState.options,ye.toState.options,Te,mn)}destroyInnerAnimations(ye){let Te=this.driver.query(ye,nn,!0);Te.forEach(gt=>this.destroyActiveAnimationsForElement(gt)),0!=this.playersByQueriedElement.size&&(Te=this.driver.query(ye,Yt,!0),Te.forEach(gt=>this.finishActiveQueriedAnimationOnElement(gt)))}destroyActiveAnimationsForElement(ye){const Te=this.playersByElement.get(ye);Te&&Te.forEach(gt=>{gt.queued?gt.markedForDestroy=!0:gt.destroy()})}finishActiveQueriedAnimationOnElement(ye){const Te=this.playersByQueriedElement.get(ye);Te&&Te.forEach(gt=>gt.finish())}whenRenderingDone(){return new Promise(ye=>{if(this.players.length)return ut(this.players).onDone(()=>ye());ye()})}processLeaveNode(ye){var Te;const gt=ye[Mn];if(gt&>.setForRemoval){if(ye[Mn]=Zt,gt.namespaceId){this.destroyInnerAnimations(ye);const $t=this._fetchNamespace(gt.namespaceId);$t&&$t.clearElementCache(ye)}this._onRemovalComplete(ye,gt.setForRemoval)}(null===(Te=ye.classList)||void 0===Te?void 0:Te.contains(Ws))&&this.markElementAsDisabled(ye,!1),this.driver.query(ye,".ng-animate-disabled",!0).forEach($t=>{this.markElementAsDisabled($t,!1)})}flush(ye=-1){let Te=[];if(this.newHostElements.size&&(this.newHostElements.forEach((gt,$t)=>this._balanceNamespaceList(gt,$t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let gt=0;gt<this.collectedEnterElements.length;gt++)yr(this.collectedEnterElements[gt],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const gt=[];try{Te=this._flushAnimations(gt,ye)}finally{for(let $t=0;$t<gt.length;$t++)gt[$t]()}}else for(let gt=0;gt<this.collectedLeaveElements.length;gt++)this.processLeaveNode(this.collectedLeaveElements[gt]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(gt=>gt()),this._flushFns=[],this._whenQuietFns.length){const gt=this._whenQuietFns;this._whenQuietFns=[],Te.length?ut(Te).onDone(()=>{gt.forEach($t=>$t())}):gt.forEach($t=>$t())}}reportError(ye){throw function ke(Bt){return new s.vHH(3402,j)}()}_flushAnimations(ye,Te){const gt=new Os,$t=[],mn=new Map,kn=[],In=new Map,Yn=new Map,ci=new Map,Oi=new Set;this.disabledNodes.forEach(yi=>{Oi.add(yi);const xi=this.driver.query(yi,".ng-animate-queued",!0);for(let nr=0;nr<xi.length;nr++)Oi.add(xi[nr])});const Ji=this.bodyNode,_r=Array.from(this.statesByElement.keys()),wr=ps(_r,this.collectedEnterElements),Li=new Map;let Mr=0;wr.forEach((yi,xi)=>{const nr=Gn+Mr++;Li.set(xi,nr),yi.forEach(Er=>yr(Er,nr))});const ui=[],Sr=new Set,$r=new Set;for(let yi=0;yi<this.collectedLeaveElements.length;yi++){const xi=this.collectedLeaveElements[yi],nr=xi[Mn];nr&&nr.setForRemoval&&(ui.push(xi),Sr.add(xi),nr.hasAnimation?this.driver.query(xi,".ng-star-inserted",!0).forEach(Er=>Sr.add(Er)):$r.add(xi))}const Es=new Map,Vr=ps(_r,Array.from(Sr));Vr.forEach((yi,xi)=>{const nr=Zn+Mr++;Es.set(xi,nr),yi.forEach(Er=>yr(Er,nr))}),ye.push(()=>{wr.forEach((yi,xi)=>{const nr=Li.get(xi);yi.forEach(Er=>Rr(Er,nr))}),Vr.forEach((yi,xi)=>{const nr=Es.get(xi);yi.forEach(Er=>Rr(Er,nr))}),ui.forEach(yi=>{this.processLeaveNode(yi)})});const es=[],As=[];for(let yi=this._namespaceList.length-1;yi>=0;yi--)this._namespaceList[yi].drainQueuedTransitions(Te).forEach(nr=>{const Er=nr.player,$e=nr.element;if(es.push(Er),this.collectedEnterElements.length){const Ni=$e[Mn];if(Ni&&Ni.setForMove){if(Ni.previousTriggersValues&&Ni.previousTriggersValues.has(nr.triggerName)){const Hr=Ni.previousTriggersValues.get(nr.triggerName),Zi=this.statesByElement.get(nr.element);Zi&&Zi[nr.triggerName]&&(Zi[nr.triggerName].value=Hr)}return void Er.destroy()}}const Dt=!Ji||!this.driver.containsElement(Ji,$e),ct=Es.get($e),zt=Li.get($e),wn=this._buildInstruction(nr,gt,zt,ct,Dt);if(wn.errors&&wn.errors.length)return void As.push(wn);if(Dt)return Er.onStart(()=>Ne($e,wn.fromStyles)),Er.onDestroy(()=>Ke($e,wn.toStyles)),void $t.push(Er);if(nr.isFallbackTransition)return Er.onStart(()=>Ne($e,wn.fromStyles)),Er.onDestroy(()=>Ke($e,wn.toStyles)),void $t.push(Er);const ii=[];wn.timelines.forEach(Ni=>{Ni.stretchStartingKeyframe=!0,this.disabledNodes.has(Ni.element)||ii.push(Ni)}),wn.timelines=ii,gt.append($e,wn.timelines),kn.push({instruction:wn,player:Er,element:$e}),wn.queriedElements.forEach(Ni=>ht(In,Ni,[]).push(Er)),wn.preStyleProps.forEach((Ni,Hr)=>{const Zi=Object.keys(Ni);if(Zi.length){let Pr=Yn.get(Hr);Pr||Yn.set(Hr,Pr=new Set),Zi.forEach(Fr=>Pr.add(Fr))}}),wn.postStyleProps.forEach((Ni,Hr)=>{const Zi=Object.keys(Ni);let Pr=ci.get(Hr);Pr||ci.set(Hr,Pr=new Set),Zi.forEach(Fr=>Pr.add(Fr))})});if(As.length){const yi=[];As.forEach(xi=>{yi.push(function Ce(Bt,ye){return new s.vHH(3505,j)}())}),es.forEach(xi=>xi.destroy()),this.reportError(yi)}const br=new Map,rs=new Map;kn.forEach(yi=>{const xi=yi.element;gt.has(xi)&&(rs.set(xi,xi),this._beforeAnimationBuild(yi.player.namespaceId,yi.instruction,br))}),$t.forEach(yi=>{const xi=yi.element;this._getPreviousPlayers(xi,!1,yi.namespaceId,yi.triggerName,null).forEach(Er=>{ht(br,xi,[]).push(Er),Er.destroy()})});const H=ui.filter(yi=>io(yi,Yn,ci)),nt=new Map;jr(nt,this.driver,$r,ci,y.l3).forEach(yi=>{io(yi,Yn,ci)&&H.push(yi)});const fn=new Map;wr.forEach((yi,xi)=>{jr(fn,this.driver,new Set(yi),Yn,y.k1)}),H.forEach(yi=>{const xi=nt.get(yi),nr=fn.get(yi);nt.set(yi,Object.assign(Object.assign({},xi),nr))});const Fn=[],qn=[],Hi={};kn.forEach(yi=>{const{element:xi,player:nr,instruction:Er}=yi;if(gt.has(xi)){if(Oi.has(xi))return nr.onDestroy(()=>Ke(xi,Er.toStyles)),nr.disabled=!0,nr.overrideTotalTime(Er.totalTime),void $t.push(nr);let $e=Hi;if(rs.size>1){let ct=xi;const zt=[];for(;ct=ct.parentNode;){const wn=rs.get(ct);if(wn){$e=wn;break}zt.push(ct)}zt.forEach(wn=>rs.set(wn,$e))}const Dt=this._buildAnimation(nr.namespaceId,Er,br,mn,fn,nt);if(nr.setRealPlayer(Dt),$e===Hi)Fn.push(nr);else{const ct=this.playersByElement.get($e);ct&&ct.length&&(nr.parentPlayer=ut(ct)),$t.push(nr)}}else Ne(xi,Er.fromStyles),nr.onDestroy(()=>Ke(xi,Er.toStyles)),qn.push(nr),Oi.has(xi)&&$t.push(nr)}),qn.forEach(yi=>{const xi=mn.get(yi.element);if(xi&&xi.length){const nr=ut(xi);yi.setRealPlayer(nr)}}),$t.forEach(yi=>{yi.parentPlayer?yi.syncPlayerEvents(yi.parentPlayer):yi.destroy()});for(let yi=0;yi<ui.length;yi++){const xi=ui[yi],nr=xi[Mn];if(Rr(xi,Zn),nr&&nr.hasAnimation)continue;let Er=[];if(In.size){let Dt=In.get(xi);Dt&&Dt.length&&Er.push(...Dt);let ct=this.driver.query(xi,Yt,!0);for(let zt=0;zt<ct.length;zt++){let wn=In.get(ct[zt]);wn&&wn.length&&Er.push(...wn)}}const $e=Er.filter(Dt=>!Dt.destroyed);$e.length?Us(this,xi,$e):this.processLeaveNode(xi)}return ui.length=0,Fn.forEach(yi=>{this.players.push(yi),yi.onDone(()=>{yi.destroy();const xi=this.players.indexOf(yi);this.players.splice(xi,1)}),yi.play()}),Fn}elementContainsData(ye,Te){let gt=!1;const $t=Te[Mn];return $t&&$t.setForRemoval&&(gt=!0),this.playersByElement.has(Te)&&(gt=!0),this.playersByQueriedElement.has(Te)&&(gt=!0),this.statesByElement.has(Te)&&(gt=!0),this._fetchNamespace(ye).elementContainsData(Te)||gt}afterFlush(ye){this._flushFns.push(ye)}afterFlushAnimationsDone(ye){this._whenQuietFns.push(ye)}_getPreviousPlayers(ye,Te,gt,$t,mn){let kn=[];if(Te){const In=this.playersByQueriedElement.get(ye);In&&(kn=In)}else{const In=this.playersByElement.get(ye);if(In){const Yn=!mn||mn==ti;In.forEach(ci=>{ci.queued||!Yn&&ci.triggerName!=$t||kn.push(ci)})}}return(gt||$t)&&(kn=kn.filter(In=>!(gt&>!=In.namespaceId||$t&&$t!=In.triggerName))),kn}_beforeAnimationBuild(ye,Te,gt){const mn=Te.element,kn=Te.isRemovalTransition?void 0:ye,In=Te.isRemovalTransition?void 0:Te.triggerName;for(const Yn of Te.timelines){const ci=Yn.element,Oi=ci!==mn,Ji=ht(gt,ci,[]);this._getPreviousPlayers(ci,Oi,kn,In,Te.toState).forEach(wr=>{const Li=wr.getRealPlayer();Li.beforeDestroy&&Li.beforeDestroy(),wr.destroy(),Ji.push(wr)})}Ne(mn,Te.fromStyles)}_buildAnimation(ye,Te,gt,$t,mn,kn){const In=Te.triggerName,Yn=Te.element,ci=[],Oi=new Set,Ji=new Set,_r=Te.timelines.map(Li=>{const Mr=Li.element;Oi.add(Mr);const ui=Mr[Mn];if(ui&&ui.removedBeforeQueried)return new y.ZN(Li.duration,Li.delay);const Sr=Mr!==Yn,$r=function Ss(Bt){const ye=[];return gs(Bt,ye),ye}((gt.get(Mr)||pt).map(br=>br.getRealPlayer())).filter(br=>!!br.element&&br.element===Mr),Es=mn.get(Mr),Vr=kn.get(Mr),es=Ge(0,this._normalizer,0,Li.keyframes,Es,Vr),As=this._buildPlayer(Li,es,$r);if(Li.subTimeline&&$t&&Ji.add(Mr),Sr){const br=new Pi(ye,In,Mr);br.setRealPlayer(As),ci.push(br)}return As});ci.forEach(Li=>{ht(this.playersByQueriedElement,Li.element,[]).push(Li),Li.onDone(()=>function Xi(Bt,ye,Te){let gt;if(Bt instanceof Map){if(gt=Bt.get(ye),gt){if(gt.length){const $t=gt.indexOf(Te);gt.splice($t,1)}0==gt.length&&Bt.delete(ye)}}else if(gt=Bt[ye],gt){if(gt.length){const $t=gt.indexOf(Te);gt.splice($t,1)}0==gt.length&&delete Bt[ye]}return gt}(this.playersByQueriedElement,Li.element,Li))}),Oi.forEach(Li=>yr(Li,Vn));const wr=ut(_r);return wr.onDestroy(()=>{Oi.forEach(Li=>Rr(Li,Vn)),Ke(Yn,Te.toStyles)}),Ji.forEach(Li=>{ht($t,Li,[]).push(wr)}),wr}_buildPlayer(ye,Te,gt){return Te.length>0?this.driver.animate(ye.element,Te,ye.duration,ye.delay,ye.easing,gt):new y.ZN(ye.duration,ye.delay)}}class Pi{constructor(ye,Te,gt){this.namespaceId=ye,this.triggerName=Te,this.element=gt,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(ye){this._containsRealPlayer||(this._player=ye,Object.keys(this._queuedCallbacks).forEach(Te=>{this._queuedCallbacks[Te].forEach(gt=>wt(ye,Te,void 0,gt))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ye.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(ye){this.totalTime=ye}syncPlayerEvents(ye){const Te=this._player;Te.triggerCallback&&ye.onStart(()=>Te.triggerCallback("start")),ye.onDone(()=>this.finish()),ye.onDestroy(()=>this.destroy())}_queueEvent(ye,Te){ht(this._queuedCallbacks,ye,[]).push(Te)}onDone(ye){this.queued&&this._queueEvent("done",ye),this._player.onDone(ye)}onStart(ye){this.queued&&this._queueEvent("start",ye),this._player.onStart(ye)}onDestroy(ye){this.queued&&this._queueEvent("destroy",ye),this._player.onDestroy(ye)}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(ye){this.queued||this._player.setPosition(ye)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(ye){const Te=this._player;Te.triggerCallback&&Te.triggerCallback(ye)}}function Qr(Bt){return Bt&&1===Bt.nodeType}function ts(Bt,ye){const Te=Bt.style.display;return Bt.style.display=null!=ye?ye:"none",Te}function jr(Bt,ye,Te,gt,$t){const mn=[];Te.forEach(Yn=>mn.push(ts(Yn)));const kn=[];gt.forEach((Yn,ci)=>{const Oi={};Yn.forEach(Ji=>{const _r=Oi[Ji]=ye.computeStyle(ci,Ji,$t);(!_r||0==_r.length)&&(ci[Mn]=yn,kn.push(ci))}),Bt.set(ci,Oi)});let In=0;return Te.forEach(Yn=>ts(Yn,mn[In++])),kn}function ps(Bt,ye){const Te=new Map;if(Bt.forEach(In=>Te.set(In,[])),0==ye.length)return Te;const $t=new Set(ye),mn=new Map;function kn(In){if(!In)return 1;let Yn=mn.get(In);if(Yn)return Yn;const ci=In.parentNode;return Yn=Te.has(ci)?ci:$t.has(ci)?1:kn(ci),mn.set(In,Yn),Yn}return ye.forEach(In=>{const Yn=kn(In);1!==Yn&&Te.get(Yn).push(In)}),Te}function yr(Bt,ye){var Te;null===(Te=Bt.classList)||void 0===Te||Te.add(ye)}function Rr(Bt,ye){var Te;null===(Te=Bt.classList)||void 0===Te||Te.remove(ye)}function Us(Bt,ye,Te){ut(Te).onDone(()=>Bt.processLeaveNode(ye))}function gs(Bt,ye){for(let Te=0;Te<Bt.length;Te++){const gt=Bt[Te];gt instanceof y.ZE?gs(gt.players,ye):ye.push(gt)}}function io(Bt,ye,Te){const gt=Te.get(Bt);if(!gt)return!1;let $t=ye.get(Bt);return $t?gt.forEach(mn=>$t.add(mn)):ye.set(Bt,gt),Te.delete(Bt),!0}class To{constructor(ye,Te,gt){this.bodyNode=ye,this._driver=Te,this._normalizer=gt,this._triggerCache={},this.onRemovalComplete=($t,mn)=>{},this._transitionEngine=new Di(ye,Te,gt),this._timelineEngine=new Fs(ye,Te,gt),this._transitionEngine.onRemovalComplete=($t,mn)=>this.onRemovalComplete($t,mn)}registerTrigger(ye,Te,gt,$t,mn){const kn=ye+"-"+$t;let In=this._triggerCache[kn];if(!In){const Yn=[],Oi=mr(this._driver,mn,Yn,[]);if(Yn.length)throw function ee(Bt,ye){return new s.vHH(3404,j)}();In=function wo(Bt,ye,Te){return new Nr(Bt,ye,Te)}($t,Oi,this._normalizer),this._triggerCache[kn]=In}this._transitionEngine.registerTrigger(Te,$t,In)}register(ye,Te){this._transitionEngine.register(ye,Te)}destroy(ye,Te){this._transitionEngine.destroy(ye,Te)}onInsert(ye,Te,gt,$t){this._transitionEngine.insertNode(ye,Te,gt,$t)}onRemove(ye,Te,gt,$t){this._transitionEngine.removeNode(ye,Te,$t||!1,gt)}disableAnimations(ye,Te){this._transitionEngine.markElementAsDisabled(ye,Te)}process(ye,Te,gt,$t){if("@"==gt.charAt(0)){const[mn,kn]=Ht(gt);this._timelineEngine.command(mn,Te,kn,$t)}else this._transitionEngine.trigger(ye,Te,gt,$t)}listen(ye,Te,gt,$t,mn){if("@"==gt.charAt(0)){const[kn,In]=Ht(gt);return this._timelineEngine.listen(kn,Te,In,mn)}return this._transitionEngine.listen(ye,Te,gt,$t,mn)}flush(ye=-1){this._transitionEngine.flush(ye)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let yt=(()=>{class Bt{constructor(Te,gt,$t){this._element=Te,this._startStyles=gt,this._endStyles=$t,this._state=0;let mn=Bt.initialStylesByElement.get(Te);mn||Bt.initialStylesByElement.set(Te,mn={}),this._initialStyles=mn}start(){this._state<1&&(this._startStyles&&Ke(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ke(this._element,this._initialStyles),this._endStyles&&(Ke(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Bt.initialStylesByElement.delete(this._element),this._startStyles&&(Ne(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ne(this._element,this._endStyles),this._endStyles=null),Ke(this._element,this._initialStyles),this._state=3)}}return Bt.initialStylesByElement=new WeakMap,Bt})();function mt(Bt){let ye=null;const Te=Object.keys(Bt);for(let gt=0;gt<Te.length;gt++){const $t=Te[gt];et($t)&&(ye=ye||{},ye[$t]=Bt[$t])}return ye}function et(Bt){return"display"===Bt||"position"===Bt}class Kt{constructor(ye,Te,gt,$t){this.element=ye,this.keyframes=Te,this.options=gt,this._specialStyles=$t,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=gt.duration,this._delay=gt.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ye=>ye()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const ye=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ye,this.options),this._finalKeyframe=ye.length?ye[ye.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(ye,Te,gt){return ye.animate(Te,gt)}onStart(ye){this._onStartFns.push(ye)}onDone(ye){this._onDoneFns.push(ye)}onDestroy(ye){this._onDestroyFns.push(ye)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(ye=>ye()),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}_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(ye=>ye()),this._onDestroyFns=[])}setPosition(ye){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ye*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const ye={};if(this.hasStarted()){const Te=this._finalKeyframe;Object.keys(Te).forEach(gt=>{"offset"!=gt&&(ye[gt]=this._finished?Te[gt]:Ki(this.element,gt))})}this.currentSnapshot=ye}triggerCallback(ye){const Te="start"==ye?this._onStartFns:this._onDoneFns;Te.forEach(gt=>gt()),Te.length=0}}class ni{validateStyleProperty(ye){return Pe(ye)}matchesElement(ye,Te){return!1}containsElement(ye,Te){return bt(ye,Te)}getParentElement(ye){return vn(ye)}query(ye,Te,gt){return un(ye,Te,gt)}computeStyle(ye,Te,gt){return window.getComputedStyle(ye)[Te]}animate(ye,Te,gt,$t,mn,kn=[]){const Yn={duration:gt,delay:$t,fill:0==$t?"both":"forwards"};mn&&(Yn.easing=mn);const ci={},Oi=kn.filter(_r=>_r instanceof Kt);(function Ai(Bt,ye){return 0===Bt||0===ye}
1)(gt,$t)&&Oi.forEach(_r=>{let wr=_r.currentSnapshot;Object.keys(wr).forEach(Li=>ci[Li]=wr[Li])}),Te=function mi(Bt,ye,Te){const gt=Object.keys(Te);if(gt.length&&ye.length){let mn=ye[0],kn=[];if(gt.forEach(In=>{mn.hasOwnProperty(In)||kn.push(In),mn[In]=Te[In]}),kn.length)for(var $t=1;$t<ye.length;$t++){let In=ye[$t];kn.forEach(function(Yn){In[Yn]=Ki(Bt,Yn)})}}return ye}(ye,Te=Te.map(_r=>Lt(_r,!1)),ci);const Ji=function Is(Bt,ye){let Te=null,gt=null;return Array.isArray(ye)&&ye.length?(Te=mt(ye[0]),ye.length>1&&(gt=mt(ye[ye.length-1]))):ye&&(Te=mt(ye)),Te||gt?new yt(Bt,Te,gt):null}(ye,Te);return new Kt(ye,Te,Yn,Ji)}}var Fi=S(9808);let Yi=(()=>{class Bt extends y._j{constructor(Te,gt){super(),this._nextAnimationId=0,this._renderer=Te.createRenderer(gt.body,{id:"0",encapsulation:s.ifc.None,styles:[],data:{animation:[]}})}build(Te){const gt=this._nextAnimationId.toString();this._nextAnimationId++;const $t=Array.isArray(Te)?(0,y.vP)(Te):Te;return Br(this._renderer,null,gt,"register",[$t]),new Eo(gt,this._renderer)}}return Bt.\u0275fac=function(Te){return new(Te||Bt)(s.LFG(s.FYo),s.LFG(Fi.K0))},Bt.\u0275prov=s.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();class Eo extends y.LC{constructor(ye,Te){super(),this._id=ye,this._renderer=Te}create(ye,Te){return new Ls(this._id,ye,Te||{},this._renderer)}}class Ls{constructor(ye,Te,gt,$t){this.id=ye,this.element=Te,this._renderer=$t,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",gt)}_listen(ye,Te){return this._renderer.listen(this.element,`@@${this.id}:${ye}`,Te)}_command(ye,...Te){return Br(this._renderer,this.element,this.id,ye,Te)}onDone(ye){this._listen("done",ye)}onStart(ye){this._listen("start",ye)}onDestroy(ye){this._listen("destroy",ye)}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(ye){this._command("setPosition",ye)}getPosition(){var ye,Te;return null!==(Te=null===(ye=this._renderer.engine.players[+this.id])||void 0===ye?void 0:ye.getPosition())&&void 0!==Te?Te:0}}function Br(Bt,ye,Te,gt,$t){return Bt.setProperty(ye,`@@${Te}:${gt}`,$t)}const _i="@.disabled";let Xr=(()=>{class Bt{constructor(Te,gt,$t){this.delegate=Te,this.engine=gt,this._zone=$t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),gt.onRemovalComplete=(mn,kn)=>{const In=null==kn?void 0:kn.parentNode(mn);In&&kn.removeChild(In,mn)}}createRenderer(Te,gt){const mn=this.delegate.createRenderer(Te,gt);if(!(Te&>&>.data&>.data.animation)){let Oi=this._rendererCache.get(mn);return Oi||(Oi=new ns("",mn,this.engine),this._rendererCache.set(mn,Oi)),Oi}const kn=gt.id,In=gt.id+"-"+this._currentId;this._currentId++,this.engine.register(In,Te);const Yn=Oi=>{Array.isArray(Oi)?Oi.forEach(Yn):this.engine.registerTrigger(kn,In,Te,Oi.name,Oi)};return gt.data.animation.forEach(Yn),new cs(this,In,mn,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(Te,gt,$t){Te>=0&&Te<this._microtaskId?this._zone.run(()=>gt($t)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(mn=>{const[kn,In]=mn;kn(In)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([gt,$t]))}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 Bt.\u0275fac=function(Te){return new(Te||Bt)(s.LFG(s.FYo),s.LFG(To),s.LFG(s.R0b))},Bt.\u0275prov=s.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();class ns{constructor(ye,Te,gt){this.namespaceId=ye,this.delegate=Te,this.engine=gt,this.destroyNode=this.delegate.destroyNode?$t=>Te.destroyNode($t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(ye,Te){return this.delegate.createElement(ye,Te)}createComment(ye){return this.delegate.createComment(ye)}createText(ye){return this.delegate.createText(ye)}appendChild(ye,Te){this.delegate.appendChild(ye,Te),this.engine.onInsert(this.namespaceId,Te,ye,!1)}insertBefore(ye,Te,gt,$t=!0){this.delegate.insertBefore(ye,Te,gt),this.engine.onInsert(this.namespaceId,Te,ye,$t)}removeChild(ye,Te,gt){this.engine.onRemove(this.namespaceId,Te,this.delegate,gt)}selectRootElement(ye,Te){return this.delegate.selectRootElement(ye,Te)}parentNode(ye){return this.delegate.parentNode(ye)}nextSibling(ye){return this.delegate.nextSibling(ye)}setAttribute(ye,Te,gt,$t){this.delegate.setAttribute(ye,Te,gt,$t)}removeAttribute(ye,Te,gt){this.delegate.removeAttribute(ye,Te,gt)}addClass(ye,Te){this.delegate.addClass(ye,Te)}removeClass(ye,Te){this.delegate.removeClass(ye,Te)}setStyle(ye,Te,gt,$t){this.delegate.setStyle(ye,Te,gt,$t)}removeStyle(ye,Te,gt){this.delegate.removeStyle(ye,Te,gt)}
1setProperty(ye,Te,gt){"@"==Te.charAt(0)&&Te==_i?this.disableAnimations(ye,!!gt):this.delegate.setProperty(ye,Te,gt)}setValue(ye,Te){this.delegate.setValue(ye,Te)}listen(ye,Te,gt){return this.delegate.listen(ye,Te,gt)}disableAnimations(ye,Te){this.engine.disableAnimations(ye,Te)}}class cs extends ns{constructor(ye,Te,gt,$t){super(Te,gt,$t),this.factory=ye,this.namespaceId=Te}setProperty(ye,Te,gt){"@"==Te.charAt(0)?"."==Te.charAt(1)&&Te==_i?this.disableAnimations(ye,gt=void 0===gt||!!gt):this.engine.process(this.namespaceId,ye,Te.substr(1),gt):this.delegate.setProperty(ye,Te,gt)}listen(ye,Te,gt){if("@"==Te.charAt(0)){const $t=function is(Bt){switch(Bt){case"body":return document.body;case"document":return document;case"window":return window;default:return Bt}}(ye);let mn=Te.substr(1),kn="";return"@"!=mn.charAt(0)&&([mn,kn]=function js(Bt){const ye=Bt.indexOf(".");return[Bt.substring(0,ye),Bt.substr(ye+1)]}(mn)),this.engine.listen(this.namespaceId,$t,mn,kn,In=>{this.factory.scheduleListenerCallback(In._data||-1,gt,In)})}return this.delegate.listen(ye,Te,gt)}}let _o=(()=>{class Bt extends To{constructor(Te,gt,$t){super(Te.body,gt,$t)}ngOnDestroy(){this.flush()}}return Bt.\u0275fac=function(Te){return new(Te||Bt)(s.LFG(Fi.K0),s.LFG(Rt),s.LFG(xs))},Bt.\u0275prov=s.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();const Ia=new s.OlP("AnimationModuleType"),Co=[{provide:y._j,useClass:Yi},{provide:xs,useFactory:function Yo(){return new vr}},{provide:To,useClass:_o},{provide:s.FYo,useFactory:function oo(Bt,ye,Te){return new Xr(Bt,ye,Te)},deps:[_.se,To,s.R0b]}],qo=[{provide:Rt,useFactory:()=>new ni},{provide:Ia,useValue:"BrowserAnimations"},...Co],us=[{provide:Rt,useClass:Et},{provide:Ia,useValue:"NoopAnimations"},...Co];let Ur=(()=>{class Bt{static withConfig(Te){return{ngModule:Bt,providers:Te.disableAnimations?us:qo}}}return Bt.\u0275fac=function(Te){return new(Te||Bt)},Bt.\u0275mod=s.oAB({type:Bt}),Bt.\u0275inj=s.cJS({providers:qo,imports:[_.b2]}),Bt})()},2313:(Qt,Z,S)=>{"use strict";S.d(Z,{Dx:()=>Jt,H7:()=>Gt,b2:()=>jt,h_:()=>hn,q6:()=>ht,se:()=>K});var s=S(9808),_=S(5e3);class y extends s.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends y{static makeCurrent(){(0,s.HT)(new j)}onAndCancel(Ye,je,Tt){return Ye.addEventListener(je,Tt,!1),()=>{Ye.removeEventListener(je,Tt,!1)}}dispatchEvent(Ye,je){Ye.dispatchEvent(je)}remove(Ye){Ye.parentNode&&Ye.parentNode.removeChild(Ye)}createElement(Ye,je){return(je=je||this.getDefaultDocument()).createElement(Ye)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ye){return Ye.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ye){return Ye instanceof DocumentFragment}getGlobalEventTarget(Ye,je){return"window"===je?window:"document"===je?Ye:"body"===je?Ye.body:null}getBaseHref(Ye){const je=function L(){return D=D||document.querySelector("base"),D?D.getAttribute("href"):null}();return null==je?null:function W(Oe){ce=ce||document.createElement("a"),ce.setAttribute("href",Oe);const Ye=ce.pathname;return"/"===Ye.charAt(0)?Ye:`/${Ye}`}(je)}resetBaseElement(){D=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ye){return(0,s.Mx)(document.cookie,Ye)}}let ce,D=null;const G=new _.OlP("TRANSITION_ID"),te=[{provide:_.ip1,useFactory:function $(Oe,Ye,je){return()=>{je.get(_.CZH).donePromise.then(()=>{const Tt=(0,s.q)(),rn=Ye.querySelectorAll(`style[ng-transition="${Oe}"]`);for(let On=0;On<rn.length;On++)Tt.remove(rn[On])})}},deps:[G,s.K0,_.zs3],multi:!0}];class le{static init(){(0,_.VLi)(new le)}addToWindow(Ye){_.dqk.getAngularTestability=(Tt,rn=!0)=>{const On=Ye.findTestabilityInTree(Tt,rn);if(null==On)throw new Error("Could not find testability for element.");return On},_.dqk.getAllAngularTestabilities=()=>Ye.getAllTestabilities(),_.dqk.getAllAngularRootElements=()=>Ye.getAllRootElements(),_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(Tt=>{const rn=_.dqk.getAllAngularTestabilities();let On=rn.length,xn=!1;const Xn=function(Ai){xn=xn||Ai,On--,0==On&&Tt(xn)};
vendor: 4,647 bytes, line 1
1rn.forEach(function(Ai){Ai.whenStable(Xn)})})}findTestabilityInTree(Ye,je,Tt){if(null==je)return null;const rn=Ye.getTestability(je);return null!=rn?rn:Tt?(0,s.q)().isShadowRoot(je)?this.findTestabilityInTree(Ye,je.host,!0):this.findTestabilityInTree(Ye,je.parentElement,!0):null}}let J=(()=>{class Oe{build(){return new XMLHttpRequest}}return Oe.\u0275fac=function(je){return new(je||Oe)},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const Me=new _.OlP("EventManagerPlugins");let Re=(()=>{class Oe{constructor(je,Tt){this._zone=Tt,this._eventNameToPlugin=new Map,je.forEach(rn=>rn.manager=this),this._plugins=je.slice().reverse()}addEventListener(je,Tt,rn){return this._findPluginFor(Tt).addEventListener(je,Tt,rn)}addGlobalEventListener(je,Tt,rn){return this._findPluginFor(Tt).addGlobalEventListener(je,Tt,rn)}getZone(){return this._zone}_findPluginFor(je){const Tt=this._eventNameToPlugin.get(je);if(Tt)return Tt;const rn=this._plugins;for(let On=0;On<rn.length;On++){const xn=rn[On];if(xn.supports(je))return this._eventNameToPlugin.set(je,xn),xn}throw new Error(`No event manager plugin found for event ${je}`)}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(Me),_.LFG(_.R0b))},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class me{constructor(Ye){this._doc=Ye}addGlobalEventListener(Ye,je,Tt){const rn=(0,s.q)().getGlobalEventTarget(this._doc,Ye);if(!rn)throw new Error(`Unsupported event target ${rn} for event ${je}`);return this.addEventListener(rn,je,Tt)}}let Q=(()=>{class Oe{constructor(){this._stylesSet=new Set}addStyles(je){const Tt=new Set;je.forEach(rn=>{this._stylesSet.has(rn)||(this._stylesSet.add(rn),Tt.add(rn))}),this.onStylesAdded(Tt)}onStylesAdded(je){}getAllStyles(){return Array.from(this._stylesSet)}}return Oe.\u0275fac=function(je){return new(je||Oe)},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})(),P=(()=>{class Oe extends Q{constructor(je){super(),this._doc=je,this._hostNodes=new Map,this._hostNodes.set(je.head,[])}_addStylesToHost(je,Tt,rn){je.forEach(On=>{const xn=this._doc.createElement("style");xn.textContent=On,rn.push(Tt.appendChild(xn))})}addHost(je){const Tt=[];this._addStylesToHost(this._stylesSet,je,Tt),this._hostNodes.set(je,Tt)}removeHost(je){const Tt=this._hostNodes.get(je);Tt&&Tt.forEach(N),this._hostNodes.delete(je)}onStylesAdded(je){this._hostNodes.forEach((Tt,rn)=>{this._addStylesToHost(je,rn,Tt)})}ngOnDestroy(){this._hostNodes.forEach(je=>je.forEach(N))}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(s.K0))},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();function N(Oe){(0,s.q)().remove(Oe)}const Y={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/"},de=/%COMP%/g,V="%COMP%",ne=`_nghost-${V}`,E=`_ngcontent-${V}`;function R(Oe,Ye,je){for(let Tt=0;Tt<Ye.length;Tt++){let rn=Ye[Tt];Array.isArray(rn)?R(Oe,rn,je):(rn=rn.replace(de,Oe),je.push(rn))}return je}function ee(Oe){return Ye=>{if("__ngUnwrap__"===Ye)return Oe;!1===Oe(Ye)&&(Ye.preventDefault(),Ye.returnValue=!1)}}let K=(()=>{class Oe{constructor(je,Tt,rn){this.eventManager=je,this.sharedStylesHost=Tt,this.appId=rn,this.rendererByCompId=new Map,this.defaultRenderer=new ge(je)}createRenderer(je,Tt){if(!je||!Tt)return this.defaultRenderer;switch(Tt.encapsulation){case _.ifc.Emulated:{let rn=this.rendererByCompId.get(Tt.id);return rn||(rn=new fe(this.eventManager,this.sharedStylesHost,Tt,this.appId),this.rendererByCompId.set(Tt.id,rn)),rn.applyToHost(je),rn}case 1:case _.ifc.ShadowDom:return new Ie(this.eventManager,this.sharedStylesHost,je,Tt);default:if(!this.rendererByCompId.has(Tt.id)){const rn=R(Tt.id,Tt.styles,[]);this.sharedStylesHost.addStyles(rn),this.rendererByCompId.set(Tt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(Re),_.LFG(P),_.LFG(_.AFp))},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();class ge{constructor(Ye){this.eventManager=Ye,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ye,je){return je?document.createElementNS(Y[je]||je,Ye):document.createElement(Ye)}createComment(Ye){return document.createComment(Ye)}createText(Ye){return document.createTextNode(Ye)}appendChild(Ye,je){Ye.appendChild(je)}insertBefore(Ye,je,Tt){Ye&&Ye.insertBefore(je,Tt)}removeChild(Ye,je){Ye&&Ye.removeChild(je)}selectRootElement(Ye,je){let Tt="string"==typeof Ye?document.querySelector(Ye):Ye;if(!Tt)throw new Error(`The selector "${Ye}
1" did not match any elements`);return je||(Tt.textContent=""),Tt}parentNode(Ye){return Ye.parentNode}nextSibling(Ye){return Ye.nextSibling}setAttribute(Ye,je,Tt,rn){if(rn){je=rn+":"+je;const On=Y[rn];On?Ye.setAttributeNS(On,je,Tt):Ye.setAttribute(je,Tt)}else Ye.setAttribute(je,Tt)}removeAttribute(Ye,je,Tt){if(Tt){const rn=Y[Tt];rn?Ye.removeAttributeNS(rn,je):Ye.removeAttribute(`${Tt}:${je}`)}else Ye.removeAttribute(je)}addClass(Ye,je){Ye.classList.add(je)}removeClass(Ye,je){Ye.classList.remove(je)}setStyle(Ye,je,Tt,rn){rn&(_.JOm.DashCase|_.JOm.Important)?Ye.style.setProperty(je,Tt,rn&_.JOm.Important?"important":""):Ye.style[je]=Tt}removeStyle(Ye,je,Tt){Tt&_.JOm.DashCase?Ye.style.removeProperty(je):Ye.style[je]=""}setProperty(Ye,je,Tt){Ye[je]=Tt}setValue(Ye,je){Ye.nodeValue=je}listen(Ye,je,Tt){return"string"==typeof Ye?this.eventManager.addGlobalEventListener(Ye,je,ee(Tt)):this.eventManager.addEventListener(Ye,je,ee(Tt))}}class fe extends ge{constructor(Ye,je,Tt,rn){super(Ye),this.component=Tt;const On=R(rn+"-"+Tt.id,Tt.styles,[]);je.addStyles(On),this.contentAttr=function M(Oe){return E.replace(de,Oe)}(rn+"-"+Tt.id),this.hostAttr=function A(Oe){return ne.replace(de,Oe)}(rn+"-"+Tt.id)}applyToHost(Ye){super.setAttribute(Ye,this.hostAttr,"")}createElement(Ye,je){const Tt=super.createElement(Ye,je);return super.setAttribute(Tt,this.contentAttr,""),Tt}}class Ie extends ge{constructor(Ye,je,Tt,rn){super(Ye),this.sharedStylesHost=je,this.hostEl=Tt,this.shadowRoot=Tt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const On=R(rn.id,rn.styles,[]);for(let xn=0;xn<On.length;xn++){const Xn=document.createElement("style");Xn.textContent=On[xn],this.shadowRoot.appendChild(Xn)}}nodeOrShadowRoot(Ye){return Ye===this.hostEl?this.shadowRoot:Ye}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ye,je){return super.appendChild(this.nodeOrShadowRoot(Ye),je)}insertBefore(Ye,je,Tt){return super.insertBefore(this.nodeOrShadowRoot(Ye),je,Tt)}removeChild(Ye,je){return super.removeChild(this.nodeOrShadowRoot(Ye),je)}parentNode(Ye){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ye)))}}let Se=(()=>{class Oe extends me{constructor(je){super(je)}supports(je){return!0}addEventListener(je,Tt,rn){return je.addEventListener(Tt,rn,!1),()=>this.removeEventListener(je,Tt,rn)}removeEventListener(je,Tt,rn){return je.removeEventListener(Tt,rn)}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(s.K0))},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const pe=["alt","control","meta","shift"],ae={"\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"},Ce={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ve={alt:Oe=>Oe.altKey,control:Oe=>Oe.ctrlKey,meta:Oe=>Oe.metaKey,shift:Oe=>Oe.shiftKey};let Be=(()=>{class Oe extends me{constructor(je){super(je)}supports(je){return null!=Oe.parseEventName(je)}addEventListener(je,Tt,rn){const On=Oe.parseEventName(Tt),xn=Oe.eventCallback(On.fullKey,rn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,s.q)().onAndCancel(je,On.domEventName,xn))}static parseEventName(je){const Tt=je.toLowerCase().split("."),rn=Tt.shift();if(0===Tt.length||"keydown"!==rn&&"keyup"!==rn)return null;const On=Oe._normalizeKey(Tt.pop());let xn="";if(pe.forEach(Ai=>{const mi=Tt.indexOf(Ai);mi>-1&&(Tt.splice(mi,1),xn+=Ai+".")}),xn+=On,0!=Tt.length||0===On.length)return null;const Xn={};return Xn.domEventName=rn,Xn.fullKey=xn,Xn}static getEventFullKey(je){let Tt="",rn=function ut(Oe){let Ye=Oe.key;if(null==Ye){if(Ye=Oe.keyIdentifier,null==Ye)return"Unidentified";Ye.startsWith("U+")&&(Ye=String.fromCharCode(parseInt(Ye.substring(2),16)),3===Oe.location&&Ce.hasOwnProperty(Ye)&&(Ye=Ce[Ye]))}return ae[Ye]||Ye}(je);return rn=rn.toLowerCase()," "===rn?rn="space":"."===rn&&(rn="dot"),pe.forEach(On=>{On!=rn&&Ve[On](je)&&(Tt+=On+".")}),Tt+=rn,Tt}static eventCallback(je,Tt,rn){return On=>{Oe.getEventFullKey(On)===je&&rn.runGuarded(()=>Tt(On))}}static _normalizeKey(je){return"esc"===je?"escape":je}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(s.K0))},Oe.\u0275prov=_.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const ht=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:s.bD}
1,{provide:_.g9A,useValue:function Ge(){j.makeCurrent(),le.init()},multi:!0},{provide:s.K0,useFactory:function Ot(){return(0,_.RDi)(document),document},deps:[]}]),Ht=[{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function wt(){return new _.qLn},deps:[]},{provide:Me,useClass:Se,multi:!0,deps:[s.K0,_.R0b,_.Lbi]},{provide:Me,useClass:Be,multi:!0,deps:[s.K0]},{provide:K,useClass:K,deps:[Re,P,_.AFp]},{provide:_.FYo,useExisting:K},{provide:Q,useExisting:P},{provide:P,useClass:P,deps:[s.K0]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b]},{provide:Re,useClass:Re,deps:[Me,_.R0b]},{provide:s.JF,useClass:J,deps:[]}];let jt=(()=>{class Oe{constructor(je){if(je)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(je){return{ngModule:Oe,providers:[{provide:_.AFp,useValue:je.appId},{provide:G,useExisting:_.AFp},te]}}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(Oe,12))},Oe.\u0275mod=_.oAB({type:Oe}),Oe.\u0275inj=_.cJS({providers:Ht,imports:[s.ez,_.hGG]}),Oe})(),hn=(()=>{class Oe{constructor(je){this._doc=je,this._dom=(0,s.q)()}addTag(je,Tt=!1){return je?this._getOrCreateElement(je,Tt):null}addTags(je,Tt=!1){return je?je.reduce((rn,On)=>(On&&rn.push(this._getOrCreateElement(On,Tt)),rn),[]):[]}getTag(je){return je&&this._doc.querySelector(`meta[${je}]`)||null}getTags(je){if(!je)return[];const Tt=this._doc.querySelectorAll(`meta[${je}]`);return Tt?[].slice.call(Tt):[]}updateTag(je,Tt){if(!je)return null;Tt=Tt||this._parseSelector(je);const rn=this.getTag(Tt);return rn?this._setMetaElementAttributes(je,rn):this._getOrCreateElement(je,!0)}removeTag(je){this.removeTagElement(this.getTag(je))}removeTagElement(je){je&&this._dom.remove(je)}_getOrCreateElement(je,Tt=!1){if(!Tt){const xn=this._parseSelector(je),Xn=this.getTags(xn).filter(Ai=>this._containsAttributes(je,Ai))[0];if(void 0!==Xn)return Xn}const rn=this._dom.createElement("meta");return this._setMetaElementAttributes(je,rn),this._doc.getElementsByTagName("head")[0].appendChild(rn),rn}_setMetaElementAttributes(je,Tt){return Object.keys(je).forEach(rn=>Tt.setAttribute(this._getMetaKeyMap(rn),je[rn])),Tt}_parseSelector(je){const Tt=je.name?"name":"property";return`${Tt}="${je[Tt]}"`}_containsAttributes(je,Tt){return Object.keys(je).every(rn=>Tt.getAttribute(this._getMetaKeyMap(rn))===je[rn])}_getMetaKeyMap(je){return vn[je]||je}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(s.K0))},Oe.\u0275prov=_.Yz7({token:Oe,factory:function(je){let Tt=null;return Tt=je?new je:function cn(){return new hn((0,_.LFG)(s.K0))}(),Tt},providedIn:"root"}),Oe})();const vn={httpEquiv:"http-equiv"};let Jt=(()=>{class Oe{constructor(je){this._doc=je}getTitle(){return this._doc.title}setTitle(je){this._doc.title=je||""}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(s.K0))},Oe.\u0275prov=_.Yz7({token:Oe,factory:function(je){let Tt=null;return Tt=je?new je:function ln(){return new Jt((0,_.LFG)(s.K0))}(),Tt},providedIn:"root"}),Oe})();"undefined"!=typeof window&&window;let Gt=(()=>{class Oe{}return Oe.\u0275fac=function(je){return new(je||Oe)},Oe.\u0275prov=_.Yz7({token:Oe,factory:function(je){let Tt=null;return Tt=je?new(je||Oe):_.LFG(Ne),Tt},providedIn:"root"}),Oe})(),Ne=(()=>{class Oe extends Gt{constructor(je){super(),this._doc=je}sanitize(je,Tt){if(null==Tt)return null;switch(je){case _.q3G.NONE:return Tt;case _.q3G.HTML:return(0,_.qzn)(Tt,"HTML")?(0,_.z3N)(Tt):(0,_.EiD)(this._doc,String(Tt)).toString();case _.q3G.STYLE:return(0,_.qzn)(Tt,"Style")?(0,_.z3N)(Tt):Tt;case _.q3G.SCRIPT:if((0,_.qzn)(Tt,"Script"))return(0,_.z3N)(Tt);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.yhl)(Tt),(0,_.qzn)(Tt,"URL")?(0,_.z3N)(Tt):(0,_.mCW)(String(Tt));case _.q3G.RESOURCE_URL:if((0,_.qzn)(Tt,"ResourceURL"))return(0,_.z3N)(Tt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${je} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(je){return(0,_.JVY)(je)}bypassSecurityTrustStyle(je){return(0,_.L6k)(je)}bypassSecurityTrustScript(je){return(0,_.eBb)(je)}bypassSecurityTrustUrl(je){return(0,_.LAX)(je)}bypassSecurityTrustResourceUrl(je){return(0,_.pB0)(je)}}return Oe.\u0275fac=function(je){return new(je||Oe)(_.LFG(s.K0))},Oe.\u0275prov=_.Yz7({token:Oe,factory:function(je){let Tt=null;return Tt=je?new je:function Ke(Oe){return new Ne(Oe.get(s.K0))}(_.LFG(_.zs3)),Tt},providedIn:"root"}),Oe})()},4202:(Qt,Z,S)=>{"use strict";S.d(Z,{Bz:()=>$e,F0:()=>$r,Od:()=>rs,gz:()=>xe,lC:()=>Xs,m2:()=>Fe,rH:()=>es,yS:()=>As});var s=S(5e3),_=S(5254),y=S(1086),j=S(591),D=S(6053),L=S(1737),ce=S(4450),W=S(1221),G=S(8514),$=S(6498),te=S(8896),le=S(1762),J=S(8929),Me=S(4850),Re=S(7545),me=S(2986),Q=S(1059),P=S(2014),N=S(2198),Y=S(7221),de=S(1406),re=S(8127),V=S(7224),ne=S(1709),E=S(2868),M=S(2821),A=S(4327),R=S(537),ee=S(9146),B=S(9808);class K{constructor(He,g){this.id=He,this.url=g}}class ge extends K{constructor(He,g,u="imperative",v=null){super(He,g),this.navigationTrigger=u,this.restoredState=v}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fe extends K{constructor(He,g,u){super(He,g),this.urlAfterRedirects=u}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class he extends K{constructor(He,g,u){super(He,g),this.reason=u}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fe extends K{constructor(He,g,u){super(He,g),this.error=u}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ie extends K{constructor(He,g,u,v){super(He,g),this.urlAfterRedirects=u,this.state=v}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Se extends K{constructor(He,g,u,v){super(He,g),this.urlAfterRedirects=u,this.state=v}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pe extends K{constructor(He,g,u,v,T){super(He,g),this.urlAfterRedirects=u,this.state=v,this.shouldActivate=T}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ke extends K{constructor(He,g,u,v){super(He,g),this.urlAfterRedirects=u,this.state=v}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ae extends K{constructor(He,g,u,v){super(He,g),this.urlAfterRedirects=u,this.state=v}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ce{constructor(He){this.route=He}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ve{constructor(He){this.route=He}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Be{constructor(He){this.snapshot=He}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(He){this.snapshot=He}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ge{constructor(He){this.snapshot=He}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wt{constructor(He){this.snapshot=He}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ot{constructor(He,g,u){this.routerEvent=He,this.position=g,this.anchor=u}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ft="primary";class ht{constructor(He){this.params=He||{}}has(He){return Object.prototype.hasOwnProperty.call(this.params,He)}get(He){if(this.has(He)){const g=this.params[He];return Array.isArray(g)?g[0]:g}return null}getAll(He){if(this.has(He)){const g=this.params[He];return Array.isArray(g)?g:[g]}return[]}get keys(){return Object.keys(this.params)}}function Ht(st){return new ht(st)}const jt="ngNavigationCancelingError";function cn(st){const He=Error("NavigationCancelingError: "+st);return He[jt]=!0,He}function vn(st,He,g){const u=g.path.split("/");if(u.length>st.length||"full"===g.pathMatch&&(He.hasChildren()||u.length<st.length))return null;const v={};for(let T=0;T<u.length;T++){const ie=u[T],we=st[T];
1if(ie.startsWith(":"))v[ie.substring(1)]=we;else if(ie!==we.path)return null}return{consumed:st.slice(0,u.length),posParams:v}}function Jt(st,He){const g=st?Object.keys(st):void 0,u=He?Object.keys(He):void 0;if(!g||!u||g.length!=u.length)return!1;let v;for(let T=0;T<g.length;T++)if(v=g[T],!Xe(st[v],He[v]))return!1;return!0}function Xe(st,He){if(Array.isArray(st)&&Array.isArray(He)){if(st.length!==He.length)return!1;const g=[...st].sort(),u=[...He].sort();return g.every((v,T)=>u[T]===v)}return st===He}function qe(st){return Array.prototype.concat.apply([],st)}function Pe(st){return st.length>0?st[st.length-1]:null}function bt(st,He){for(const g in st)st.hasOwnProperty(g)&&He(st[g],g)}function un(st){return(0,s.CqO)(st)?st:(0,s.QGY)(st)?(0,_.D)(Promise.resolve(st)):(0,y.of)(st)}const Et={exact:function Dn(st,He,g){if(!kt(st.segments,He.segments)||!nn(st.segments,He.segments,g)||st.numberOfChildren!==He.numberOfChildren)return!1;for(const u in He.children)if(!st.children[u]||!Dn(st.children[u],He.children[u],g))return!1;return!0},subset:Zn},Rt={exact:function Pt(st,He){return Jt(st,He)},subset:function Gn(st,He){return Object.keys(He).length<=Object.keys(st).length&&Object.keys(He).every(g=>Xe(st[g],He[g]))},ignored:()=>!0};function Wt(st,He,g){return Et[g.paths](st.root,He.root,g.matrixParams)&&Rt[g.queryParams](st.queryParams,He.queryParams)&&!("exact"===g.fragment&&st.fragment!==He.fragment)}function Zn(st,He,g){return zn(st,He,He.segments,g)}function zn(st,He,g,u){if(st.segments.length>g.length){const v=st.segments.slice(0,g.length);return!(!kt(v,g)||He.hasChildren()||!nn(v,g,u))}if(st.segments.length===g.length){if(!kt(st.segments,g)||!nn(st.segments,g,u))return!1;for(const v in He.children)if(!st.children[v]||!Zn(st.children[v],He.children[v],u))return!1;return!0}{const v=g.slice(0,st.segments.length),T=g.slice(st.segments.length);return!!(kt(st.segments,v)&&nn(st.segments,v,u)&&st.children[Ft])&&zn(st.children[Ft],He,T,u)}}function nn(st,He,g){return He.every((u,v)=>Rt[g](st[v].parameters,u.parameters))}class Vn{constructor(He,g,u){this.root=He,this.queryParams=g,this.fragment=u}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ht(this.queryParams)),this._queryParamMap}toString(){return Lt.serialize(this)}}class Yt{constructor(He,g){this.segments=He,this.children=g,this.parent=null,bt(g,(u,v)=>u.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xt(this)}}class Rn{constructor(He,g){this.path=He,this.parameters=g}get parameterMap(){return this._parameterMap||(this._parameterMap=Ht(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function kt(st,He){return st.length===He.length&&st.every((g,u)=>g.path===He[u].path)}class Ue{}class Qe{parse(He){const g=new pn(He);return new Vn(g.parseRootSegment(),g.parseQueryParams(),g.parseFragment())}serialize(He){const g=`/${Gt(He.root,!0)}`,u=function On(st){const He=Object.keys(st).map(g=>{const u=st[g];return Array.isArray(u)?u.map(v=>`${Ne(g)}=${Ne(v)}`).join("&"):`${Ne(g)}=${Ne(u)}`}).filter(g=>!!g);return He.length?`?${He.join("&")}`:""}(He.queryParams);return`${g}${u}${"string"==typeof He.fragment?`#${function Ae(st){return encodeURI(st)}(He.fragment)}`:""}`}}const Lt=new Qe;function xt(st){return st.segments.map(He=>Tt(He)).join("/")}function Gt(st,He){if(!st.hasChildren())return xt(st);if(He){const g=st.children[Ft]?Gt(st.children[Ft],!1):"",u=[];return bt(st.children,(v,T)=>{T!==Ft&&u.push(`${T}:${Gt(v,!1)}`)}),u.length>0?`${g}(${u.join("//")})`:g}{const g=function We(st,He){let g=[];return bt(st.children,(u,v)=>{v===Ft&&(g=g.concat(He(u,v)))}),bt(st.children,(u,v)=>{v!==Ft&&(g=g.concat(He(u,v)))}),g}(st,(u,v)=>v===Ft?[Gt(st.children[Ft],!1)]:[`${v}:${Gt(u,!1)}`]);return 1===Object.keys(st.children).length&&null!=st.children[Ft]?`${xt(st)}/${g[0]}`:`${xt(st)}/(${g.join("//")})`}}function Ke(st){return encodeURIComponent(st).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ne(st){return Ke(st).replace(/%3B/gi,";")}function Oe(st){return Ke(st).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ye(st){return decodeURIComponent(st)}function je(st){return Ye(st.replace(/\+/g,"%20"))}function Tt(st){return`${Oe(st.path)}${function rn(st){return Object.keys(st).map(He=>`;${Oe(He)}=${Oe(st[He])}`).join("")}(st.parameters)}`}const xn=/^[^\/()?;=#]+/;function Xn(st){const He=st.match(xn);return He?He[0]:""}const Ai=/^[^=?&#]+/,fi=/^[^&#]+/;class pn{constructor(He){this.url=He,this.remaining=He}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yt([],{}):new Yt([],this.parseChildren())}parseQueryParams(){const He={};if(this.consumeOptional("?"))do{this.parseQueryParam(He)}while(this.consumeOptional("&"));return He}
vendor: 9,967 bytes, line 1
1parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const He=[];for(this.peekStartsWith("(")||He.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),He.push(this.parseSegment());let g={};this.peekStartsWith("/(")&&(this.capture("/"),g=this.parseParens(!0));let u={};return this.peekStartsWith("(")&&(u=this.parseParens(!1)),(He.length>0||Object.keys(g).length>0)&&(u[Ft]=new Yt(He,g)),u}parseSegment(){const He=Xn(this.remaining);if(""===He&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(He),new Rn(Ye(He),this.parseMatrixParams())}parseMatrixParams(){const He={};for(;this.consumeOptional(";");)this.parseParam(He);return He}parseParam(He){const g=Xn(this.remaining);if(!g)return;this.capture(g);let u="";if(this.consumeOptional("=")){const v=Xn(this.remaining);v&&(u=v,this.capture(u))}He[Ye(g)]=Ye(u)}parseQueryParam(He){const g=function mi(st){const He=st.match(Ai);return He?He[0]:""}(this.remaining);if(!g)return;this.capture(g);let u="";if(this.consumeOptional("=")){const ie=function Ki(st){const He=st.match(fi);return He?He[0]:""}(this.remaining);ie&&(u=ie,this.capture(u))}const v=je(g),T=je(u);if(He.hasOwnProperty(v)){let ie=He[v];Array.isArray(ie)||(ie=[ie],He[v]=ie),ie.push(T)}else He[v]=T}parseParens(He){const g={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const u=Xn(this.remaining),v=this.remaining[u.length];if("/"!==v&&")"!==v&&";"!==v)throw new Error(`Cannot parse url '${this.url}'`);let T;u.indexOf(":")>-1?(T=u.substr(0,u.indexOf(":")),this.capture(T),this.capture(":")):He&&(T=Ft);const ie=this.parseChildren();g[T]=1===Object.keys(ie).length?ie[Ft]:new Yt([],ie),this.consumeOptional("//")}return g}peekStartsWith(He){return this.remaining.startsWith(He)}consumeOptional(He){return!!this.peekStartsWith(He)&&(this.remaining=this.remaining.substring(He.length),!0)}capture(He){if(!this.consumeOptional(He))throw new Error(`Expected "${He}".`)}}class gn{constructor(He){this._root=He}get root(){return this._root.value}parent(He){const g=this.pathFromRoot(He);return g.length>1?g[g.length-2]:null}children(He){const g=En(He,this._root);return g?g.children.map(u=>u.value):[]}firstChild(He){const g=En(He,this._root);return g&&g.children.length>0?g.children[0].value:null}siblings(He){const g=rt(He,this._root);return g.length<2?[]:g[g.length-2].children.map(v=>v.value).filter(v=>v!==He)}pathFromRoot(He){return rt(He,this._root).map(g=>g.value)}}function En(st,He){if(st===He.value)return He;for(const g of He.children){const u=En(st,g);if(u)return u}return null}function rt(st,He){if(st===He.value)return[He];for(const g of He.children){const u=rt(st,g);if(u.length)return u.unshift(He),u}return[]}class it{constructor(He,g){this.value=He,this.children=g}toString(){return`TreeNode(${this.value})`}}function ue(st){const He={};return st&&st.children.forEach(g=>He[g.value.outlet]=g),He}class ve extends gn{constructor(He,g){super(He),this.snapshot=g,vi(this,He)}toString(){return this.snapshot.toString()}}function at(st,He){const g=function q(st,He){const ie=new Un([],{},{},"",{},Ft,He,null,st.root,-1,{});return new Qn("",new it(ie,[]))}(st,He),u=new j.X([new Rn("",{})]),v=new j.X({}),T=new j.X({}),ie=new j.X({}),we=new j.X(""),ft=new xe(u,v,ie,we,T,Ft,He,g.root);return ft.snapshot=g.root,new ve(new it(ft,[]),g)}class xe{constructor(He,g,u,v,T,ie,we,ft){this.url=He,this.params=g,this.queryParams=u,this.fragment=v,this.data=T,this.outlet=ie,this.component=we,this._futureSnapshot=ft}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,Me.U)(He=>Ht(He)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Me.U)(He=>Ht(He)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _t(st,He="emptyOnly"){const g=st.pathFromRoot;let u=0;if("always"!==He)for(u=g.length-1;u>=1;){const v=g[u],T=g[u-1];if(v.routeConfig&&""===v.routeConfig.path)u--;else{if(T.component)break;u--}}return function Xt(st){return st.reduce((He,g)=>({params:Object.assign(Object.assign({},He.params),g.params),data:Object.assign(Object.assign({},He.data),g.data),resolve:Object.assign(Object.assign({},He.resolve),g._resolvedData)}),{params:{},data:{},resolve:{}})}(g.slice(u))}class Un{constructor(He,g,u,v,T,ie,we,ft,Ut,dn,tn){this.url=He,this.params=g,this.queryParams=u,this.fragment=v,this.data=T,this.outlet=ie,this.component=we,this.routeConfig=ft,this._urlSegment=Ut,this._lastPathIndex=dn,this._resolve=tn}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=Ht(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ht(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(u=>u.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qn extends gn{constructor(He,g){super(g),this.url=He,vi(this,g)}toString(){return li(this._root)}}function vi(st,He){He.value._routerState=st,He.children.forEach(g=>vi(st,g))}function li(st){const He=st.children.length>0?` { ${st.children.map(li).join(", ")} } `:"";return`${st.value}${He}`}function mr(st){if(st.snapshot){const He=st.snapshot,g=st._futureSnapshot;st.snapshot=g,Jt(He.queryParams,g.queryParams)||st.queryParams.next(g.queryParams),He.fragment!==g.fragment&&st.fragment.next(g.fragment),Jt(He.params,g.params)||st.params.next(g.params),function ln(st,He){if(st.length!==He.length)return!1;for(let g=0;g<st.length;++g)if(!Jt(st[g],He[g]))return!1;return!0}(He.url,g.url)||st.url.next(g.url),Jt(He.data,g.data)||st.data.next(g.data)}else st.snapshot=st._futureSnapshot,st.data.next(st._futureSnapshot.data)}function zi(st,He){const g=Jt(st.params,He.params)&&function Mt(st,He){return kt(st,He)&&st.every((g,u)=>Jt(g.parameters,He[u].parameters))}(st.url,He.url);return g&&!(!st.parent!=!He.parent)&&(!st.parent||zi(st.parent,He.parent))}function Wi(st,He,g){if(g&&st.shouldReuseRoute(He.value,g.value.snapshot)){const u=g.value;u._futureSnapshot=He.value;const v=function qs(st,He,g){return He.children.map(u=>{for(const v of g.children)if(st.shouldReuseRoute(u.value,v.value.snapshot))return Wi(st,u,v);return Wi(st,u)})}(st,He,g);return new it(u,v)}{if(st.shouldAttach(He.value)){const T=st.retrieve(He.value);if(null!==T){const ie=T.route;return ie.value._futureSnapshot=He.value,ie.children=He.children.map(we=>Wi(st,we)),ie}}const u=function fs(st){return new xe(new j.X(st.url),new j.X(st.params),new j.X(st.queryParams),new j.X(st.fragment),new j.X(st.data),st.outlet,st.component,st)}(He.value),v=He.children.map(T=>Wi(st,T));return new it(u,v)}}function vs(st){return"object"==typeof st&&null!=st&&!st.outlets&&!st.segmentPath}function go(st){return"object"==typeof st&&null!=st&&st.outlets}function Ds(st,He,g,u,v){let T={};if(u&&bt(u,(we,ft)=>{T[ft]=Array.isArray(we)?we.map(Ut=>`${Ut}`):`${we}`}),st===He)return new Vn(g,T,v);const ie=dr(st,He,g);return new Vn(ie,T,v)}function dr(st,He,g){const u={};return bt(st.children,(v,T)=>{u[T]=v===He?g:dr(v,He,g)}),new Yt(st.segments,u)}class Qs{constructor(He,g,u){if(this.isAbsolute=He,this.numberOfDoubleDots=g,this.commands=u,He&&u.length>0&&vs(u[0]))throw new Error("Root segment cannot have matrix parameters");const v=u.find(go);if(v&&v!==Pe(u))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rs{constructor(He,g,u){this.segmentGroup=He,this.processChildren=g,this.index=u}}function Oo(st,He,g){if(st||(st=new Yt([],{})),0===st.segments.length&&st.hasChildren())return ar(st,He,g);const u=function Wr(st,He,g){let u=0,v=He;const T={match:!1,pathIndex:0,commandIndex:0};for(;v<st.segments.length;){if(u>=g.length)return T;const ie=st.segments[v],we=g[u];if(go(we))break;const ft=`${we}`,Ut=u<g.length-1?g[u+1]:null;if(v>0&&void 0===ft)break;if(ft&&Ut&&"object"==typeof Ut&&void 0===Ut.outlets){if(!eo(ft,Ut,ie))return T;u+=2}else{if(!eo(ft,{},ie))return T;u++}v++}return{match:!0,pathIndex:v,commandIndex:u}}(st,He,g),v=g.slice(u.commandIndex);if(u.match&&u.pathIndex<st.segments.length){const T=new Yt(st.segments.slice(0,u.pathIndex),{});return T.children[Ft]=new Yt(st.segments.slice(u.pathIndex),st.children),ar(T,0,v)}return u.match&&0===v.length?new Yt(st.segments,{}):u.match&&!st.hasChildren()?ys(st,He,g):u.match?ar(st,0,v):ys(st,He,g)}function ar(st,He,g){if(0===g.length)return new Yt(st.segments,{});{const u=function zr(st){return go(st[0])?st[0].outlets:{[Ft]:st}}(g),v={};return bt(u,(T,ie)=>{"string"==typeof T&&(T=[T]),null!==T&&(v[ie]=Oo(st.children[ie],He,T))}),bt(st.children,(T,ie)=>{void 0===u[ie]&&(v[ie]=T)}),new Yt(st.segments,v)}}function ys(st,He,g){const u=st.segments.slice(0,He);let v=0;for(;v<g.length;){const T=g[v];if(go(T)){const ft=fr(T.outlets);return new Yt(u,ft)}if(0===v&&vs(g[0])){u.push(new Rn(st.segments[He].path,ls(g[0]))),v++;continue}const ie=go(T)?T.outlets[Ft]:`${T}`,we=v<g.length-1?g[v+1]:null;ie&&we&&vs(we)?(u.push(new Rn(ie,ls(we))),v+=2):(u.push(new Rn(ie,{})),v++)}return new Yt(u,{})}function fr(st){const He={};return bt(st,(g,u)=>
1{"string"==typeof g&&(g=[g]),null!==g&&(He[u]=ys(new Yt([],{}),0,g))}),He}function ls(st){const He={};return bt(st,(g,u)=>He[u]=`${g}`),He}function eo(st,He,g){return st==g.path&&Jt(He,g.parameters)}class zs{constructor(He,g,u,v){this.routeReuseStrategy=He,this.futureState=g,this.currState=u,this.forwardEvent=v}activate(He){const g=this.futureState._root,u=this.currState?this.currState._root:null;this.deactivateChildRoutes(g,u,He),mr(this.futureState.root),this.activateChildRoutes(g,u,He)}deactivateChildRoutes(He,g,u){const v=ue(g);He.children.forEach(T=>{const ie=T.value.outlet;this.deactivateRoutes(T,v[ie],u),delete v[ie]}),bt(v,(T,ie)=>{this.deactivateRouteAndItsChildren(T,u)})}deactivateRoutes(He,g,u){const v=He.value,T=g?g.value:null;if(v===T)if(v.component){const ie=u.getContext(v.outlet);ie&&this.deactivateChildRoutes(He,g,ie.children)}else this.deactivateChildRoutes(He,g,u);else T&&this.deactivateRouteAndItsChildren(g,u)}deactivateRouteAndItsChildren(He,g){He.value.component&&this.routeReuseStrategy.shouldDetach(He.value.snapshot)?this.detachAndStoreRouteSubtree(He,g):this.deactivateRouteAndOutlet(He,g)}detachAndStoreRouteSubtree(He,g){const u=g.getContext(He.value.outlet),v=u&&He.value.component?u.children:g,T=ue(He);for(const ie of Object.keys(T))this.deactivateRouteAndItsChildren(T[ie],v);if(u&&u.outlet){const ie=u.outlet.detach(),we=u.children.onOutletDeactivated();this.routeReuseStrategy.store(He.value.snapshot,{componentRef:ie,route:He,contexts:we})}}deactivateRouteAndOutlet(He,g){const u=g.getContext(He.value.outlet),v=u&&He.value.component?u.children:g,T=ue(He);for(const ie of Object.keys(T))this.deactivateRouteAndItsChildren(T[ie],v);u&&u.outlet&&(u.outlet.deactivate(),u.children.onOutletDeactivated(),u.attachRef=null,u.resolver=null,u.route=null)}activateChildRoutes(He,g,u){const v=ue(g);He.children.forEach(T=>{this.activateRoutes(T,v[T.value.outlet],u),this.forwardEvent(new wt(T.value.snapshot))}),He.children.length&&this.forwardEvent(new ut(He.value.snapshot))}activateRoutes(He,g,u){const v=He.value,T=g?g.value:null;if(mr(v),v===T)if(v.component){const ie=u.getOrCreateContext(v.outlet);this.activateChildRoutes(He,g,ie.children)}else this.activateChildRoutes(He,g,u);else if(v.component){const ie=u.getOrCreateContext(v.outlet);if(this.routeReuseStrategy.shouldAttach(v.snapshot)){const we=this.routeReuseStrategy.retrieve(v.snapshot);this.routeReuseStrategy.store(v.snapshot,null),ie.children.onOutletReAttached(we.contexts),ie.attachRef=we.componentRef,ie.route=we.route.value,ie.outlet&&ie.outlet.attach(we.componentRef,we.route.value),mr(we.route.value),this.activateChildRoutes(He,null,ie.children)}else{const we=function Ro(st){for(let He=st.parent;He;He=He.parent){const g=He.routeConfig;if(g&&g._loadedConfig)return g._loadedConfig;if(g&&g.component)return null}return null}(v.snapshot),ft=we?we.module.componentFactoryResolver:null;ie.attachRef=null,ie.route=v,ie.resolver=ft,ie.outlet&&ie.outlet.activateWith(v,ft),this.activateChildRoutes(He,null,ie.children)}}else this.activateChildRoutes(He,null,u)}}class xs{constructor(He,g){this.routes=He,this.module=g}}function Ui(st){return"function"==typeof st}function Po(st){return st instanceof Vn}const Ar=Symbol("INITIAL_VALUE");function lo(){return(0,Re.w)(st=>(0,D.aj)(st.map(He=>He.pipe((0,me.q)(1),(0,Q.O)(Ar)))).pipe((0,P.R)((He,g)=>{let u=!1;return g.reduce((v,T,ie)=>v!==Ar?v:(T===Ar&&(u=!0),u||!1!==T&&ie!==g.length-1&&!Po(T)?v:T),He)},Ar),(0,N.h)(He=>He!==Ar),(0,Me.U)(He=>Po(He)?He:!0===He),(0,me.q)(1)))}class wo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Nr,this.attachRef=null}}class Nr{constructor(){this.contexts=new Map}onChildOutletCreated(He,g){const u=this.getOrCreateContext(He);u.outlet=g,this.contexts.set(He,u)}onChildOutletDestroyed(He){const g=this.getContext(He);g&&(g.outlet=null,g.attachRef=null)}onOutletDeactivated(){const He=this.contexts;return this.contexts=new Map,He}onOutletReAttached(He){this.contexts=He}getOrCreateContext(He){let g=this.getContext(He);return g||(g=new wo,this.contexts.set(He,g)),g}getContext(He){return this.contexts.get(He)||null}}let Xs=(()=>{class st{constructor(g,u,v,T,ie){this.parentContexts=g,this.location=u,this.resolver=v,this.changeDetector=ie,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.attachEvents=new s.vpe,this.detachEvents=new s.vpe,this.name=T||Ft,g.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const g=this.parentContexts.getContext(this.name);g&&g.route&&(g.attachRef?this.attach(g.attachRef,g.route):this.activateWith(g.route,g.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const g=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(g.instance),g}attach(g,u){this.activated=g,this._activatedRoute=u,this.location.insert(g.hostView),this.attachEvents.emit(g.instance)}deactivate(){if(this.activated){const g=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(g)}}activateWith(g,u){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=g;const ie=(u=u||this.resolver).resolveComponentFactory(g._futureSnapshot.routeConfig.component),we=this.parentContexts.getOrCreateContext(this.name).children,ft=new Mo(g,we,this.location.injector);this.activated=this.location.createComponent(ie,this.location.length,ft),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return st.\u0275fac=function(g){return new(g||st)(s.Y36(Nr),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},st.\u0275dir=s.lG2({type:st,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),st})();class Mo{constructor(He,g,u){this.route=He,this.childContexts=g,this.parent=u}get(He,g){return He===xe?this.route:He===Nr?this.childContexts:this.parent.get(He,g)}}let no=(()=>{class st{}return st.\u0275fac=function(g){return new(g||st)},st.\u0275cmp=s.Xpm({type:st,selectors:[["ng-component"]],decls:1,vars:0,template:function(g,u){1&g&&s._UZ(0,"router-outlet")},directives:[Xs],encapsulation:2}),st})();function Fs(st,He=""){for(let g=0;g<st.length;g++){const u=st[g];Dr(u,mo(He,u))}}function Dr(st,He){st.children&&Fs(st.children,He)}function mo(st,He){return He?st||He.path?st&&!He.path?`${st}/`:!st&&He.path?He.path:`${st}/${He.path}`:"":st}function Ws(st){const He=st.children&&st.children.map(Ws),g=He?Object.assign(Object.assign({},st),{children:He}):Object.assign({},st);return!g.component&&(He||g.loadChildren)&&g.outlet&&g.outlet!==Ft&&(g.component=no),g}function bs(st){return st.outlet||Ft}function ws(st,He){const g=st.filter(u=>bs(u)===He);return g.push(...st.filter(u=>bs(u)!==He)),g}const vt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function pt(st,He,g){var u;if(""===He.path)return"full"===He.pathMatch&&(st.hasChildren()||g.length>0)?Object.assign({},vt):{matched:!0,consumedSegments:[],remainingSegments:g,parameters:{},positionalParamSegments:{}};const T=(He.matcher||vn)(g,st,He);if(!T)return Object.assign({},vt);const ie={};bt(T.posParams,(ft,Ut)=>{ie[Ut]=ft.path});const we=T.consumed.length>0?Object.assign(Object.assign({},ie),T.consumed[T.consumed.length-1].parameters):ie;return{matched:!0,consumedSegments:T.consumed,remainingSegments:g.slice(T.consumed.length),parameters:we,positionalParamSegments:null!==(u=T.posParams)&&void 0!==u?u:{}}}function Zt(st,He,g,u,v="corrected"){if(g.length>0&&function jn(st,He,g){return g.some(u=>pi(st,He,u)&&bs(u)!==Ft)}
1(st,g,u)){const ie=new Yt(He,function Mn(st,He,g,u){const v={};v[Ft]=u,u._sourceSegment=st,u._segmentIndexShift=He.length;for(const T of g)if(""===T.path&&bs(T)!==Ft){const ie=new Yt([],{});ie._sourceSegment=st,ie._segmentIndexShift=He.length,v[bs(T)]=ie}return v}(st,He,u,new Yt(g,st.children)));return ie._sourceSegment=st,ie._segmentIndexShift=He.length,{segmentGroup:ie,slicedSegments:[]}}if(0===g.length&&function ti(st,He,g){return g.some(u=>pi(st,He,u))}(st,g,u)){const ie=new Yt(st.segments,function yn(st,He,g,u,v,T){const ie={};for(const we of u)if(pi(st,g,we)&&!v[bs(we)]){const ft=new Yt([],{});ft._sourceSegment=st,ft._segmentIndexShift="legacy"===T?st.segments.length:He.length,ie[bs(we)]=ft}return Object.assign(Object.assign({},v),ie)}(st,He,g,u,st.children,v));return ie._sourceSegment=st,ie._segmentIndexShift=He.length,{segmentGroup:ie,slicedSegments:g}}const T=new Yt(st.segments,st.children);return T._sourceSegment=st,T._segmentIndexShift=He.length,{segmentGroup:T,slicedSegments:g}}function pi(st,He,g){return(!(st.hasChildren()||He.length>0)||"full"!==g.pathMatch)&&""===g.path}function hi(st,He,g,u){return!!(bs(st)===u||u!==Ft&&pi(He,g,st))&&("**"===st.path||pt(He,st,g).matched)}function Di(st,He,g){return 0===He.length&&!st.children[g]}class Pi{constructor(He){this.segmentGroup=He||null}}class Xi{constructor(He){this.urlTree=He}}function tr(st){return(0,L._)(new Pi(st))}function Qr(st){return(0,L._)(new Xi(st))}class ps{constructor(He,g,u,v,T){this.configLoader=g,this.urlSerializer=u,this.urlTree=v,this.config=T,this.allowRedirects=!0,this.ngModule=He.get(s.h0i)}apply(){const He=Zt(this.urlTree.root,[],[],this.config).segmentGroup,g=new Yt(He.segments,He.children);return this.expandSegmentGroup(this.ngModule,this.config,g,Ft).pipe((0,Me.U)(T=>this.createUrlTree(Rr(T),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Y.K)(T=>{if(T instanceof Xi)return this.allowRedirects=!1,this.match(T.urlTree);throw T instanceof Pi?this.noMatchError(T):T}))}match(He){return this.expandSegmentGroup(this.ngModule,this.config,He.root,Ft).pipe((0,Me.U)(v=>this.createUrlTree(Rr(v),He.queryParams,He.fragment))).pipe((0,Y.K)(v=>{throw v instanceof Pi?this.noMatchError(v):v}))}noMatchError(He){return new Error(`Cannot match any routes. URL Segment: '${He.segmentGroup}'`)}createUrlTree(He,g,u){const v=He.segments.length>0?new Yt([],{[Ft]:He}):He;return new Vn(v,g,u)}expandSegmentGroup(He,g,u,v){return 0===u.segments.length&&u.hasChildren()?this.expandChildren(He,g,u).pipe((0,Me.U)(T=>new Yt([],T))):this.expandSegment(He,u,g,u.segments,v,!0)}expandChildren(He,g,u){const v=[];for(const T of Object.keys(u.children))"primary"===T?v.unshift(T):v.push(T);return(0,_.D)(v).pipe((0,de.b)(T=>{const ie=u.children[T],we=ws(g,T);return this.expandSegmentGroup(He,we,ie,T).pipe((0,Me.U)(ft=>({segment:ft,outlet:T})))}),(0,P.R)((T,ie)=>(T[ie.outlet]=ie.segment,T),{}),(0,re.Z)())}expandSegment(He,g,u,v,T,ie){return(0,_.D)(u).pipe((0,de.b)(we=>this.expandSegmentAgainstRoute(He,g,u,we,v,T,ie).pipe((0,Y.K)(Ut=>{if(Ut instanceof Pi)return(0,y.of)(null);throw Ut}))),(0,V.P)(we=>!!we),(0,Y.K)((we,ft)=>{if(we instanceof ce.K||"EmptyError"===we.name)return Di(g,v,T)?(0,y.of)(new Yt([],{})):tr(g);throw we}))}expandSegmentAgainstRoute(He,g,u,v,T,ie,we){return hi(v,g,T,ie)?void 0===v.redirectTo?this.matchSegmentAgainstRoute(He,g,v,T,ie):we&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(He,g,u,v,T,ie):tr(g):tr(g)}expandSegmentAgainstRouteUsingRedirect(He,g,u,v,T,ie){return"**"===v.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(He,u,v,ie):this.expandRegularSegmentAgainstRouteUsingRedirect(He,g,u,v,T,ie)}expandWildCardWithParamsAgainstRouteUsingRedirect(He,g,u,v){const T=this.applyRedirectCommands([],u.redirectTo,{});return u.redirectTo.startsWith("/")?Qr(T):this.lineralizeSegments(u,T).pipe((0,ne.zg)(ie=>{const we=new Yt(ie,{});return this.expandSegment(He,we,g,ie,v,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(He,g,u,v,T,ie){const{matched:we,consumedSegments:ft,remainingSegments:Ut,positionalParamSegments:dn}=pt(g,v,T);if(!we)return tr(g);const tn=this.applyRedirectCommands(ft,v.redirectTo,dn);return v.redirectTo.startsWith("/")?Qr(tn):this.lineralizeSegments(v,tn).pipe((0,ne.zg)(Bn=>
1this.expandSegment(He,g,u,Bn.concat(Ut),ie,!1)))}matchSegmentAgainstRoute(He,g,u,v,T){if("**"===u.path)return u.loadChildren?(u._loadedConfig?(0,y.of)(u._loadedConfig):this.configLoader.load(He.injector,u)).pipe((0,Me.U)(tn=>(u._loadedConfig=tn,new Yt(v,{})))):(0,y.of)(new Yt(v,{}));const{matched:ie,consumedSegments:we,remainingSegments:ft}=pt(g,u,v);return ie?this.getChildConfig(He,u,v).pipe((0,ne.zg)(dn=>{const tn=dn.module,Bn=dn.routes,{segmentGroup:Kn,slicedSegments:ri}=Zt(g,we,ft,Bn),wi=new Yt(Kn.segments,Kn.children);if(0===ri.length&&wi.hasChildren())return this.expandChildren(tn,Bn,wi).pipe((0,Me.U)(Lr=>new Yt(we,Lr)));if(0===Bn.length&&0===ri.length)return(0,y.of)(new Yt(we,{}));const Gi=bs(u)===T;return this.expandSegment(tn,wi,Bn,ri,Gi?Ft:T,!0).pipe((0,Me.U)(Zr=>new Yt(we.concat(Zr.segments),Zr.children)))})):tr(g)}getChildConfig(He,g,u){return g.children?(0,y.of)(new xs(g.children,He)):g.loadChildren?void 0!==g._loadedConfig?(0,y.of)(g._loadedConfig):this.runCanLoadGuards(He.injector,g,u).pipe((0,ne.zg)(v=>v?this.configLoader.load(He.injector,g).pipe((0,Me.U)(T=>(g._loadedConfig=T,T))):function ts(st){return(0,L._)(cn(`Cannot load children because the guard of the route "path: '${st.path}'" returned false`))}(g))):(0,y.of)(new xs([],He))}runCanLoadGuards(He,g,u){const v=g.canLoad;if(!v||0===v.length)return(0,y.of)(!0);const T=v.map(ie=>{const we=He.get(ie);let ft;if(function Ps(st){return st&&Ui(st.canLoad)}(we))ft=we.canLoad(g,u);else{if(!Ui(we))throw new Error("Invalid CanLoad guard");ft=we(g,u)}return un(ft)});return(0,y.of)(T).pipe(lo(),(0,E.b)(ie=>{if(!Po(ie))return;const we=cn(`Redirecting to "${this.urlSerializer.serialize(ie)}"`);throw we.url=ie,we}),(0,Me.U)(ie=>!0===ie))}lineralizeSegments(He,g){let u=[],v=g.root;for(;;){if(u=u.concat(v.segments),0===v.numberOfChildren)return(0,y.of)(u);if(v.numberOfChildren>1||!v.children[Ft])return(0,L._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${He.redirectTo}'`));v=v.children[Ft]}}applyRedirectCommands(He,g,u){return this.applyRedirectCreatreUrlTree(g,this.urlSerializer.parse(g),He,u)}applyRedirectCreatreUrlTree(He,g,u,v){const T=this.createSegmentGroup(He,g.root,u,v);return new Vn(T,this.createQueryParams(g.queryParams,this.urlTree.queryParams),g.fragment)}createQueryParams(He,g){const u={};return bt(He,(v,T)=>{if("string"==typeof v&&v.startsWith(":")){const we=v.substring(1);u[T]=g[we]}else u[T]=v}),u}createSegmentGroup(He,g,u,v){const T=this.createSegments(He,g.segments,u,v);let ie={};return bt(g.children,(we,ft)=>{ie[ft]=this.createSegmentGroup(He,we,u,v)}),new Yt(T,ie)}createSegments(He,g,u,v){return g.map(T=>T.path.startsWith(":")?this.findPosParam(He,T,v):this.findOrReturn(T,u))}findPosParam(He,g,u){const v=u[g.path.substring(1)];if(!v)throw new Error(`Cannot redirect to '${He}'. Cannot find '${g.path}'.`);return v}findOrReturn(He,g){let u=0;for(const v of g){if(v.path===He.path)return g.splice(u),v;u++}return He}}function Rr(st){const He={};for(const u of Object.keys(st.children)){const T=Rr(st.children[u]);(T.segments.length>0||T.hasChildren())&&(He[u]=T)}return function yr(st){if(1===st.numberOfChildren&&st.children[Ft]){const He=st.children[Ft];return new Yt(st.segments.concat(He.segments),He.children)}return st}(new Yt(st.segments,He))}class Ss{constructor(He){this.path=He,this.route=this.path[this.path.length-1]}}class gs{constructor(He,g){this.component=He,this.route=g}}function Ms(st,He,g){const u=st._root;return yt(u,He?He._root:null,g,[u.value])}function To(st,He,g){const u=function Is(st){if(!st)return null;for(let He=st.parent;He;He=He.parent){const g=He.routeConfig;if(g&&g._loadedConfig)return g._loadedConfig}return null}(He);return(u?u.module.injector:g).get(st)}function yt(st,He,g,u,v={canDeactivateChecks:[],canActivateChecks:[]}){const T=ue(He);return st.children.forEach(ie=>{(function mt(st,He,g,u,v={canDeactivateChecks:[],canActivateChecks:[]}){const T=st.value,ie=He?He.value:null,we=g?g.getContext(st.value.outlet):null;if(ie&&T.routeConfig===ie.routeConfig){const ft=function et(st,He,g){if("function"==typeof g)return g(st,He);switch(g){case"pathParamsChange":return!kt(st.url,He.url);case"pathParamsOrQueryParamsChange":return!kt(st.url,He.url)||!Jt(st.queryParams,He.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zi(st,He)||!Jt(st.queryParams,He.queryParams);default:return!zi(st,He)}}(ie,T,T.routeConfig.runGuardsAndResolvers);ft?v.canActivateChecks.push(new Ss(u)):(T.data=ie.data,T._resolvedData=ie._resolvedData),yt(st,He,T.component?we?we.children:null:g,u,v),ft&&we&&we.outlet&&we.outlet.isActivated&&v.canDeactivateChecks.push(new gs(we.outlet.component,ie))}else ie&&Kt(He,we,v),v.canActivateChecks.push(new Ss(u)),yt(st,null,T.component?we?we.children:null:g,u,v)})(ie,T[ie.value.outlet],g,u.concat([ie.value]),v),delete T[ie.value.outlet]}),bt(T,(ie,we)=>Kt(ie,g.getContext(we),v)),v}function Kt(st,He,g){const u=ue(st),v=st.value;bt(u,(T,ie)=>{Kt(T,v.component?He?He.children.getContext(ie):null:He,g)}),g.canDeactivateChecks.push(new gs(v.component&&He&&He.outlet&&He.outlet.isActivated?He.outlet.component:null,v))}class Xr{}function ns(st){return new $.y(He=>He.error(st))}class is{constructor(He,g,u,v,T,ie){this.rootComponentType=He,this.config=g,this.urlTree=u,this.url=v,this.paramsInheritanceStrategy=T,this.relativeLinkResolution=ie}recognize(){const He=Zt(this.urlTree.root,[],[],this.config.filter(ie=>void 0===ie.redirectTo),this.relativeLinkResolution).segmentGroup,g=this.processSegmentGroup(this.config,He,Ft);if(null===g)return null;const u=new Un([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ft,this.rootComponentType,null,this.urlTree.root,-1,{}),v=new it(u,g),T=new Qn(this.url,v);return this.inheritParamsAndData(T._root),T}inheritParamsAndData(He){const g=He.value,u=_t(g,this.paramsInheritanceStrategy);g.params=Object.freeze(u.params),g.data=Object.freeze(u.data),He.children.forEac
1h(v=>this.inheritParamsAndData(v))}processSegmentGroup(He,g,u){return 0===g.segments.length&&g.hasChildren()?this.processChildren(He,g):this.processSegment(He,g,g.segments,u)}processChildren(He,g){const u=[];for(const T of Object.keys(g.children)){const ie=g.children[T],we=ws(He,T),ft=this.processSegmentGroup(we,ie,T);if(null===ft)return null;u.push(...ft)}const v=oo(u);return function js(st){st.sort((He,g)=>He.value.outlet===Ft?-1:g.value.outlet===Ft?1:He.value.outlet.localeCompare(g.value.outlet))}(v),v}processSegment(He,g,u,v){for(const T of He){const ie=this.processSegmentAgainstRoute(T,g,u,v);if(null!==ie)return ie}return Di(g,u,v)?[]:null}processSegmentAgainstRoute(He,g,u,v){if(He.redirectTo||!hi(He,g,u,v))return null;let T,ie=[],we=[];if("**"===He.path){const Kn=u.length>0?Pe(u).parameters:{};T=new Un(u,Kn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,us(He),bs(He),He.component,He,Co(g),qo(g)+u.length,Ur(He))}else{const Kn=pt(g,He,u);if(!Kn.matched)return null;ie=Kn.consumedSegments,we=Kn.remainingSegments,T=new Un(ie,Kn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,us(He),bs(He),He.component,He,Co(g),qo(g)+ie.length,Ur(He))}const ft=function _o(st){return st.children?st.children:st.loadChildren?st._loadedConfig.routes:[]}(He),{segmentGroup:Ut,slicedSegments:dn}=Zt(g,ie,we,ft.filter(Kn=>void 0===Kn.redirectTo),this.relativeLinkResolution);if(0===dn.length&&Ut.hasChildren()){const Kn=this.processChildren(ft,Ut);return null===Kn?null:[new it(T,Kn)]}if(0===ft.length&&0===dn.length)return[new it(T,[])];const tn=bs(He)===v,Bn=this.processSegment(ft,Ut,dn,tn?Ft:v);return null===Bn?null:[new it(T,Bn)]}}function Yo(st){const He=st.value.routeConfig;return He&&""===He.path&&void 0===He.redirectTo}function oo(st){const He=[],g=new Set;for(const u of st){if(!Yo(u)){He.push(u);continue}const v=He.find(T=>u.value.routeConfig===T.value.routeConfig);void 0!==v?(v.children.push(...u.children),g.add(v)):He.push(u)}for(const u of g){const v=oo(u.children);He.push(new it(u.value,v))}return He.filter(u=>!g.has(u))}function Co(st){let He=st;for(;He._sourceSegment;)He=He._sourceSegment;return He}function qo(st){let He=st,g=He._segmentIndexShift?He._segmentIndexShift:0;for(;He._sourceSegment;)He=He._sourceSegment,g+=He._segmentIndexShift?He._segmentIndexShift:0;return g-1}function us(st){return st.data||{}}function Ur(st){return st.resolve||{}}function gt(st){return[...Object.keys(st),...Object.getOwnPropertySymbols(st)]}function mn(st){return(0,Re.w)(He=>{const g=st(He);return g?(0,_.D)(g).pipe((0,Me.U)(()=>He)):(0,y.of)(He)})}class Yn extends class In{shouldDetach(He){return!1}store(He,g){}shouldAttach(He){return!1}retrieve(He){return null}shouldReuseRoute(He,g){return He.routeConfig===g.routeConfig}}{}const ci=new s.OlP("ROUTES");class Oi{constructor(He,g,u,v){this.injector=He,this.compiler=g,this.onLoadStartListener=u,this.onLoadEndListener=v}load(He,g){if(g._loader$)return g._loader$;this.onLoadStartListener&&this.onLoadStartListener(g);const v=this.loadModuleFactory(g.loadChildren).pipe((0,Me.U)(T=>{this.onLoadEndListener&&this.onLoadEndListener(g);const ie=T.create(He);return new xs(qe(ie.injector.get(ci,void 0,s.XFs.Self|s.XFs.Optional)).map(Ws),ie)}),(0,Y.K)(T=>{throw g._loader$=void 0,T}));return g._loader$=new le.c(v,()=>new J.xQ).pipe((0,A.x)()),g._loader$}loadModuleFactory(He){return un(He()).pipe((0,ne.zg)(g=>g instanceof s.YKP?(0,y.of)(g):(0,_.D)(this.compiler.compileModuleAsync(g))))}}class _r{shouldProcessUrl(He){return!0}extract(He){return He}merge(He,g){return He}}function wr(st){throw st}function Li(st,He,g){return He.parse("/")}function Mr(st,He){return(0,y.of)(null)}const ui={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $r=(()=>{class st{constructor(g,u,v,T,ie,we,ft){this.rootComponentType=g,this.urlSerializer=u,this.rootContexts=v,this.location=T,this.config=ft,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new J.xQ,this.errorHandler=wr,this.malformedUriErrorHandler=Li,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mr,afterPreactivation:Mr},this.urlHandlingStrategy=new _r,this.routeReuseStrategy=new Yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ie.get(s.h0i),this.console=ie.get(s.c2e);const tn=ie.get(s.R0b);this.isNgZoneEnabled=tn instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(ft),this.currentUrlTree=function It(){return new Vn(new Yt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Oi(ie,we,Bn=>this.triggerEvent(new Ce(Bn)),Bn=>this.triggerEvent(new Ve(Bn))),this.routerState=at(this.currentUrlTree,this.rootComponentType),this.transitions=new j.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var g;return null===(g=this.location.getState())||void 0===g?void 0:g.\u0275routerPageId}setupNavigations(g){const u=this.events;return g.pipe((0,N.h)(v=>0!==v.id),(0,Me.U)(v=>Object.assign(Object.assign({},v),{extractedUrl:this.urlHandlingStrategy.extract(v.rawUrl)})),(0,Re.w)(v=>{let T=!1,ie=!1;return(0,y.of)(v).pipe((0,E.b)(we=>{this.currentNavigation={id:we.id,initialUrl:we.currentRawUrl,extractedUrl:we.extractedUrl,trigger:we.source,extras:we.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Re.w)(we=>
1{const ft=this.browserUrlTree.toString(),Ut=!this.navigated||we.extractedUrl.toString()!==ft||ft!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ut)&&this.urlHandlingStrategy.shouldProcessUrl(we.rawUrl))return Vr(we.source)&&(this.browserUrlTree=we.extractedUrl),(0,y.of)(we).pipe((0,Re.w)(tn=>{const Bn=this.transitions.getValue();return u.next(new ge(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),Bn!==this.transitions.getValue()?te.E:Promise.resolve(tn)}),function Us(st,He,g,u){return(0,Re.w)(v=>function jr(st,He,g,u,v){return new ps(st,He,g,u,v).apply()}(st,He,g,v.extractedUrl,u).pipe((0,Me.U)(T=>Object.assign(Object.assign({},v),{urlAfterRedirects:T}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,E.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function Ys(st,He,g,u,v){return(0,ne.zg)(T=>function cs(st,He,g,u,v="emptyOnly",T="legacy"){try{const ie=new is(st,He,g,u,v,T).recognize();return null===ie?ns(new Xr):(0,y.of)(ie)}catch(ie){return ns(ie)}}(st,He,T.urlAfterRedirects,g(T.urlAfterRedirects),u,v).pipe((0,Me.U)(ie=>Object.assign(Object.assign({},T),{targetSnapshot:ie}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,E.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Kn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Kn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const Bn=new Ie(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);u.next(Bn)}));if(Ut&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Bn,extractedUrl:Kn,source:ri,restoredState:wi,extras:Gi}=we,qi=new ge(Bn,this.serializeUrl(Kn),ri,wi);u.next(qi);const Zr=at(Kn,this.rootComponentType).snapshot;return(0,y.of)(Object.assign(Object.assign({},we),{targetSnapshot:Zr,urlAfterRedirects:Kn,extras:Object.assign(Object.assign({},Gi),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=we.rawUrl,we.resolve(null),te.E}),mn(we=>{const{targetSnapshot:ft,id:Ut,extractedUrl:dn,rawUrl:tn,extras:{skipLocationChange:Bn,replaceUrl:Kn}}=we;return this.hooks.beforePreactivation(ft,{navigationId:Ut,appliedUrlTree:dn,rawUrlTree:tn,skipLocationChange:!!Bn,replaceUrl:!!Kn})}),(0,E.b)(we=>{const ft=new Se(we.id,this.serializeUrl(we.extractedUrl),this.serializeUrl(we.urlAfterRedirects),we.targetSnapshot);this.triggerEvent(ft)}),(0,Me.U)(we=>Object.assign(Object.assign({},we),{guards:Ms(we.targetSnapshot,we.currentSnapshot,this.rootContexts)})),function ni(st,He){return(0,ne.zg)(g=>{const{targetSnapshot:u,currentSnapshot:v,guards:{canActivateChecks:T,canDeactivateChecks:ie}}=g;return 0===ie.length&&0===T.length?(0,y.of)(Object.assign(Object.assign({},g),{guardsResult:!0})):function Fi(st,He,g,u){return(0,_.D)(st).pipe((0,ne.zg)(v=>function _i(st,He,g,u,v){const T=He&&He.routeConfig?He.routeConfig.canDeactivate:null;if(!T||0===T.length)return(0,y.of)(!0);const ie=T.map(we=>{const ft=To(we,He,v);let Ut;if(function ms(st){return st&&Ui(st.canDeactivate)}(ft))Ut=un(ft.canDeactivate(st,He,g,u));else{if(!Ui(ft))throw new Error("Invalid CanDeactivate guard");Ut=un(ft(st,He,g,u))}return Ut.pipe((0,V.P)())});return(0,y.of)(ie).pipe(lo())}(v.component,v.route,g,He,u)),(0,V.P)(v=>!0!==v,!0))}(ie,u,v,st).pipe((0,ne.zg)(we=>we&&function vr(st){return"boolean"==typeof st}(we)?function Yi(st,He,g,u){return(0,_.D)(He).pipe((0,de.b)(v=>(0,W.z)(function Ls(st,He){return null!==st&&He&&He(new Be(st)),(0,y.of)(!0)}(v.route.parent,u),function Eo(st,He){return null!==st&&He&&He(new Ge(st)),(0,y.of)(!0)}(v.route,u),function ji(st,He,g){const u=He[He.length-1],T=He.slice(0,He.length-1).reverse().map(ie=>function io(st){const He=st.routeConfig?st.routeConfig.canActivateChild:null;return He&&0!==He.length?{node:st,guards:He}:null}(ie)).filter(ie=>null!==ie).map(ie=>(0,G.P)(()=>{const we=ie.guards.map(ft=>{const Ut=To(ft,ie.node,g);let dn;if(function to(st){return st&&Ui(st.canActivateChild)}(Ut))dn=un(Ut.canActivateChild(u,st));else{if(!Ui(Ut))throw new Error("Invalid CanActivateChild guard");dn=un(Ut(u,st))}return dn.pipe((0,V.P)())});return(0,y.of)(we).pipe(lo())}));return(0,y.of)(T).pipe(lo())}(st,v.path,g),function Br(st,He,g){const u=He.routeConfig?He.routeConfig.canActivate:null;if(!u||0===u.length)return(0,y.of)(!0);const v=u.map(T=>(0,G.P)(()=>{const ie=To(T,He,g);let we;if(function Ao(st){return st&&Ui(st.canActivate)}(ie))we=un(ie.canActivate(He,st));else{if(!Ui(ie))throw new Error("Invalid CanActivate guard");we=un(ie(He,st))}return we.pipe((0,V.P)())}));return(0,y.of)(v).pipe(lo())}(st,v.route,g))),(0,V.P)(v=>!0!==v,!0))}(u,T,st,He):(0,y.of)(we)),(0,Me.U)(we=>Object.assign(Object.assign({},g),{guardsResult:we})))})}(this.ngModule.injector,we=>this.triggerEvent(we)),(0,E.b)(we=>{if(Po(we.guardsResult)){const Ut=cn(`Redirecting to "${this.serializeUrl(we.guardsResult)}"`);throw Ut.url=we.guardsResult,Ut}const ft=new pe(we.id,this.serializeUrl(we.extractedUrl),this.serializeUrl(we.urlAfterRedirects),we.targetSnapshot,!!we.guardsResult);this.triggerEvent(ft)}),(0,N.h)(we=>!!we.guardsResult||(this.restoreHistory(we),this.cancelNavigationTransition(we,""),!1)),mn(we=>{if(we.guards.canActivateChecks.length)return(0,y.of)(we).pipe((0,E.b)(ft=>
1{const Ut=new ke(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot);this.triggerEvent(Ut)}),(0,Re.w)(ft=>{let Ut=!1;return(0,y.of)(ft).pipe(function Bt(st,He){return(0,ne.zg)(g=>{const{targetSnapshot:u,guards:{canActivateChecks:v}}=g;if(!v.length)return(0,y.of)(g);let T=0;return(0,_.D)(v).pipe((0,de.b)(ie=>function ye(st,He,g,u){return function Te(st,He,g,u){const v=gt(st);if(0===v.length)return(0,y.of)({});const T={};return(0,_.D)(v).pipe((0,ne.zg)(ie=>function $t(st,He,g,u){const v=To(st,He,u);return un(v.resolve?v.resolve(He,g):v(He,g))}(st[ie],He,g,u).pipe((0,E.b)(we=>{T[ie]=we}))),(0,M.h)(1),(0,ne.zg)(()=>gt(T).length===v.length?(0,y.of)(T):te.E))}(st._resolve,st,He,u).pipe((0,Me.U)(T=>(st._resolvedData=T,st.data=Object.assign(Object.assign({},st.data),_t(st,g).resolve),null)))}(ie.route,u,st,He)),(0,E.b)(()=>T++),(0,M.h)(1),(0,ne.zg)(ie=>T===v.length?(0,y.of)(g):te.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,E.b)({next:()=>Ut=!0,complete:()=>{Ut||(this.restoreHistory(ft),this.cancelNavigationTransition(ft,"At least one route resolver didn't emit any value."))}}))}),(0,E.b)(ft=>{const Ut=new ae(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot);this.triggerEvent(Ut)}))}),mn(we=>{const{targetSnapshot:ft,id:Ut,extractedUrl:dn,rawUrl:tn,extras:{skipLocationChange:Bn,replaceUrl:Kn}}=we;return this.hooks.afterPreactivation(ft,{navigationId:Ut,appliedUrlTree:dn,rawUrlTree:tn,skipLocationChange:!!Bn,replaceUrl:!!Kn})}),(0,Me.U)(we=>{const ft=function hr(st,He,g){const u=Wi(st,He._root,g?g._root:void 0);return new ve(u,He)}(this.routeReuseStrategy,we.targetSnapshot,we.currentRouterState);return Object.assign(Object.assign({},we),{targetRouterState:ft})}),(0,E.b)(we=>{this.currentUrlTree=we.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(we.urlAfterRedirects,we.rawUrl),this.routerState=we.targetRouterState,"deferred"===this.urlUpdateStrategy&&(we.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,we),this.browserUrlTree=we.urlAfterRedirects)}),((st,He,g)=>(0,Me.U)(u=>(new zs(He,u.targetRouterState,u.currentRouterState,g).activate(st),u)))(this.rootContexts,this.routeReuseStrategy,we=>this.triggerEvent(we)),(0,E.b)({next(){T=!0},complete(){T=!0}}),(0,R.x)(()=>{var we;T||ie||this.cancelNavigationTransition(v,`Navigation ID ${v.id} is not equal to the current navigation id ${this.navigationId}`),(null===(we=this.currentNavigation)||void 0===we?void 0:we.id)===v.id&&(this.currentNavigation=null)}),(0,Y.K)(we=>{if(ie=!0,function hn(st){return st&&st[jt]}(we)){const ft=Po(we.url);ft||(this.navigated=!0,this.restoreHistory(v,!0));const Ut=new he(v.id,this.serializeUrl(v.extractedUrl),we.message);u.next(Ut),ft?setTimeout(()=>{const dn=this.urlHandlingStrategy.merge(we.url,this.rawUrlTree),tn={skipLocationChange:v.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Vr(v.source)};this.scheduleNavigation(dn,"imperative",null,tn,{resolve:v.resolve,reject:v.reject,promise:v.promise})},0):v.resolve(!1)}else{this.restoreHistory(v,!0);
1const ft=new fe(v.id,this.serializeUrl(v.extractedUrl),we);u.next(ft);try{v.resolve(this.errorHandler(we))}catch(Ut){v.reject(Ut)}}return te.E}))}))}resetRootComponentType(g){this.rootComponentType=g,this.routerState.root.component=this.rootComponentType}setTransition(g){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),g))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(g=>{const u="popstate"===g.type?"popstate":"hashchange";"popstate"===u&&setTimeout(()=>{var v;const T={replaceUrl:!0},ie=(null===(v=g.state)||void 0===v?void 0:v.navigationId)?g.state:null;if(ie){const ft=Object.assign({},ie);delete ft.navigationId,delete ft.\u0275routerPageId,0!==Object.keys(ft).length&&(T.state=ft)}const we=this.parseUrl(g.url);this.scheduleNavigation(we,u,ie,T)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(g){this.events.next(g)}resetConfig(g){Fs(g),this.config=g.map(Ws),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(g,u={}){const{relativeTo:v,queryParams:T,fragment:ie,queryParamsHandling:we,preserveFragment:ft}=u,Ut=v||this.routerState.root,dn=ft?this.currentUrlTree.fragment:ie;let tn=null;switch(we){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),T);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=T||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function or(st,He,g,u,v){if(0===g.length)return Ds(He.root,He.root,He.root,u,v);const T=function Os(st){if("string"==typeof st[0]&&1===st.length&&"/"===st[0])return new Qs(!0,0,st);let He=0,g=!1;const u=st.reduce((v,T,ie)=>{if("object"==typeof T&&null!=T){if(T.outlets){const we={};return bt(T.outlets,(ft,Ut)=>{we[Ut]="string"==typeof ft?ft.split("/"):ft}),[...v,{outlets:we}]}if(T.segmentPath)return[...v,T.segmentPath]}return"string"!=typeof T?[...v,T]:0===ie?(T.split("/").forEach((we,ft)=>{0==ft&&"."===we||(0==ft&&""===we?g=!0:".."===we?He++:""!=we&&v.push(we))}),v):[...v,T]},[]);return new Qs(g,He,u)}(g);if(T.toRoot())return Ds(He.root,He.root,new Yt([],{}),u,v);const ie=function Js(st,He,g){if(st.isAbsolute)return new Rs(He.root,!0,0);if(-1===g.snapshot._lastPathIndex){const T=g.snapshot._urlSegment;return new Rs(T,T===He.root,0)}const u=vs(st.commands[0])?0:1;return function qr(st,He,g){let u=st,v=He,T=g;for(;T>v;){if(T-=v,u=u.parent,!u)throw new Error("Invalid number of '../'");v=u.segments.length}return new Rs(u,!1,v-T)}(g.snapshot._urlSegment,g.snapshot._lastPathIndex+u,st.numberOfDoubleDots)}(T,He,st),we=ie.processChildren?ar(ie.segmentGroup,ie.index,T.commands):Oo(ie.segmentGroup,ie.index,T.commands);return Ds(He.root,ie.segmentGroup,we,u,v)}(Ut,this.currentUrlTree,g,tn,null!=dn?dn:null)}navigateByUrl(g,u={skipLocationChange:!1}){const v=Po(g)?g:this.parseUrl(g),T=this.urlHandlingStrategy.merge(v,this.rawUrlTree);return this.scheduleNavigation(T,"imperative",null,u)}navigate(g,u={skipLocationChange:!1}){return function Es(st){for(let He=0;He<st.length;He++){const g=st[He];if(null==g)throw new Error(`The requested path contains ${g} segment at index ${He}`)}}(g),this.navigateByUrl(this.createUrlTree(g,u),u)}serializeUrl(g){return this.urlSerializer.serialize(g)}parseUrl(g){let u;try{u=this.urlSerializer.parse(g)}catch(v){u=this.malformedUriErrorHandler(v,this.urlSerializer,g)}return u}isActive(g,u){let v;if(v=!0===u?Object.assign({},ui):!1===u?Object.assign({},Sr):u,Po(g))return Wt(this.currentUrlTree,g,v);const T=this.parseUrl(g);return Wt(this.currentUrlTree,T,v)}removeEmptyProps(g){return Object.keys(g).reduce((u,v)=>{const T=g[v];return null!=T&&(u[v]=T),u},{})}processNavigations(){this.navigations.subscribe(g=>{this.navigated=!0,this.lastSuccessfulId=g.id,this.currentPageId=g.targetPageId,this.events.next(new Fe(g.id,this.serializeUrl(g.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,g.resolve(!0)},g=>{this.console.warn(`Unhandled Navigation Error: ${g}`)})}scheduleNavigation(g,u,v,T,ie){var we,ft;if(this.disposed)return Promise.resolve(!1);let Ut,dn,tn;ie?(Ut=ie.resolve,dn=ie.reject,tn=ie.promise):tn=new Promise((ri,wi)=>{Ut=ri,dn=wi});const Bn=++this.navigationId;let Kn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(v=this.location.getState()),Kn=v&&v.\u0275routerPageId?v.\u0275routerPageId:T.replaceUrl||T.skipLocationChange?null!==(we=this.browserPageId)&&void 0!==we?we:0:(null!==(ft=this.browserPageId)&&void 0!==ft?ft:0)+1):Kn=0,this.setTransition({id:Bn,targetPageId:Kn,source:u,restoredState:v,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:g,extras:T,resolve:Ut,reject:dn,promise:tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),tn.catch(ri=>Promise.reject(ri))}setBrowserUrl(g,u){const v=this.urlSerializer.serialize(g),T=Object.assign(Object.assign({},u.extras.state),this.generateNgRouterState(u.id,u.targetPageId));this.location.isCurrentPathEqualTo(v)||u.extras.replaceUrl?this.location.replaceState(v,"",T):this.location.go(v,"",T)}restoreHistory(g,u=!1){var v,T;if("computed"===this.canceledNavigationResolution){const ie=this.currentPageId-g.targetPageId;"popstate"!==g.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(v=this.currentNavigation)||void 0===v?void 0:v.finalUrl)||0===ie?this.currentUrlTree===(null===(T=this.currentNavigation)||void 0===T?void 0:T.finalUrl)&&0===ie&&(this.resetState(g),this.browserUrlTree=g.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ie)}else"replace"===this.canceledNavigationResolution&&(u&&this.resetState(g),this.resetUrlToCurrentUrlTree())}resetState(g){this.routerState=g.currentRouterState,this.currentUrlTree=g.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,g.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(g,u){const v=new he(g.id,this.serializeUrl(g.extractedUrl),u);this.triggerEvent(v),g.resolve(!1)}generateNgRouterState(g,u){return"computed"===this.canceledNavigationResolution?{navigationId:g,\u0275routerPageId:u}:{navigationId:g}}}return st.\u0275fac=function(g){s.$Z()},st.\u0275prov=s.Yz7({token:st,factory:st.\u0275fac}),st})();function Vr(st){return"imperative"!==st}let es=(()=>{class st{constructor(g,u,v,T,ie){this.router=g,this.route=u,this.tabIndexAttribute=v,this.renderer=T,this.el=ie,this.commands=null,this.onChanges=new J.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(g){if(null!=this.tabIndexAttribute)return;const u=this.renderer,v=this.el.nativeElement;null!==g?u.setAttribute(v,"tabindex",g):u.removeAttribute(v,"tabindex")}ngOnChanges(g){this.onChanges.next(this)}set routerLink(g){null!=g?(this.commands=Array.isArray(g)?g:[g],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const g={skipLocationChange:br(this.skipLocationChange),replaceUrl:br(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,g),!0}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:br(this.preserveFragment)})}}return st.\u0275fac=function(g){return new(g||st)(s.Y36($r),s.Y36(xe),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},st.\u0275dir=s.lG2({type:st,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(g,u){1&g&&s.NdJ("
1click",function(){return u.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[s.TTD]}),st})(),As=(()=>{class st{constructor(g,u,v){this.router=g,this.route=u,this.locationStrategy=v,this.commands=null,this.href=null,this.onChanges=new J.xQ,this.subscription=g.events.subscribe(T=>{T instanceof Fe&&this.updateTargetUrlAndHref()})}set routerLink(g){this.commands=null!=g?Array.isArray(g)?g:[g]:null}ngOnChanges(g){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(g,u,v,T,ie){if(0!==g||u||v||T||ie||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const we={skipLocationChange:br(this.skipLocationChange),replaceUrl:br(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,we),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:br(this.preserveFragment)})}}return st.\u0275fac=function(g){return new(g||st)(s.Y36($r),s.Y36(xe),s.Y36(B.S$))},st.\u0275dir=s.lG2({type:st,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(g,u){1&g&&s.NdJ("click",function(T){return u.onClick(T.button,T.ctrlKey,T.shiftKey,T.altKey,T.metaKey)}),2&g&&s.uIk("target",u.target)("href",u.href,s.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[s.TTD]}),st})();function br(st){return""===st||!!st}let rs=(()=>{class st{constructor(g,u,v,T,ie,we){this.router=g,this.element=u,this.renderer=v,this.cdr=T,this.link=ie,this.linkWithHref=we,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new s.vpe,this.routerEventsSubscription=g.events.subscribe(ft=>{ft instanceof Fe&&this.update()})}ngAfterContentInit(){(0,y.of)(this.links.changes,this.linksWithHrefs.changes,(0,y.of)(null)).pipe((0,ee.J)()).subscribe(g=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var g;null===(g=this.linkInputChangesSubscription)||void 0===g||g.unsubscribe();const u=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(v=>!!v).map(v=>v.onChanges);this.linkInputChangesSubscription=(0,_.D)(u).pipe((0,ee.J)()).subscribe(v=>{this.isActive!==this.isLinkActive(this.router)(v)&&this.update()})}set routerLinkActive(g){const u=Array.isArray(g)?g:g.split(" ");this.classes=u.filter(v=>!!v)}ngOnChanges(g){this.update()}ngOnDestroy(){var g;this.routerEventsSubscription.unsubscribe(),null===(g=this.linkInputChangesSubscription)||void 0===g||g.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const g=this.hasActiveLinks();this.isActive!==g&&(this.isActive=g,this.cdr.markForCheck(),this.classes.forEach(u=>{g?this.renderer.addClass(this.element.nativeElement,u):this.renderer.removeClass(this.element.nativeElement,u)}),this.isActiveChange.emit(g))})}isLinkActive(g){const u=function H(st){return!!st.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return v=>!!v.urlTree&&g.isActive(v.urlTree,u)}hasActiveLinks(){const g=this.isLinkActive(this.router);return this.link&&g(this.link)||this.linkWithHref&&g(this.linkWithHref)||this.links.some(g)||this.linksWithHrefs.some(g)}}return st.\u0275fac=function(g){return new(g||st)(s.Y36($r),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(es,8),s.Y36(As,8))},st.\u0275dir=s.lG2({type:st,selectors:[["","routerLinkActive",""]],contentQueries:function(g,u,v){if(1&g&&(s.Suo(v,es,5),s.Suo(v,As,5)),2&g){let T;s.iGM(T=s.CRH())&&(u.links=T),s.iGM(T=s.CRH())&&(u.linksWithHrefs=T)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[s.TTD]}),st})();
1class nt{}class fn{preload(He,g){return(0,y.of)(null)}}let Fn=(()=>{class st{constructor(g,u,v,T){this.router=g,this.injector=v,this.preloadingStrategy=T,this.loader=new Oi(v,u,ft=>g.triggerEvent(new Ce(ft)),ft=>g.triggerEvent(new Ve(ft)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,N.h)(g=>g instanceof Fe),(0,de.b)(()=>this.preload())).subscribe(()=>{})}preload(){const g=this.injector.get(s.h0i);return this.processRoutes(g,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(g,u){const v=[];for(const T of u)if(T.loadChildren&&!T.canLoad&&T._loadedConfig){const ie=T._loadedConfig;v.push(this.processRoutes(ie.module,ie.routes))}else T.loadChildren&&!T.canLoad?v.push(this.preloadConfig(g,T)):T.children&&v.push(this.processRoutes(g,T.children));return(0,_.D)(v).pipe((0,ee.J)(),(0,Me.U)(T=>{}))}preloadConfig(g,u){return this.preloadingStrategy.preload(u,()=>(u._loadedConfig?(0,y.of)(u._loadedConfig):this.loader.load(g.injector,u)).pipe((0,ne.zg)(T=>(u._loadedConfig=T,this.processRoutes(T.module,T.routes)))))}}return st.\u0275fac=function(g){return new(g||st)(s.LFG($r),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(nt))},st.\u0275prov=s.Yz7({token:st,factory:st.\u0275fac}),st})(),qn=(()=>{class st{constructor(g,u,v={}){this.router=g,this.viewportScroller=u,this.options=v,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},v.scrollPositionRestoration=v.scrollPositionRestoration||"disabled",v.anchorScrolling=v.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(g=>{g instanceof ge?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=g.navigationTrigger,this.restoredId=g.restoredState?g.restoredState.navigationId:0):g instanceof Fe&&(this.lastId=g.id,this.scheduleScrollEvent(g,this.router.parseUrl(g.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(g=>{g instanceof Ot&&(g.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(g.position):g.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(g.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(g,u){this.router.triggerEvent(new Ot(g,"popstate"===this.lastSource?this.store[this.restoredId]:null,u))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return st.\u0275fac=function(g){s.$Z()},st.\u0275prov=s.Yz7({token:st,factory:st.\u0275fac}),st})();const yi=new s.OlP("ROUTER_CONFIGURATION"),xi=new s.OlP("ROUTER_FORROOT_GUARD"),nr=[B.Ye,{provide:Ue,useClass:Qe},{provide:$r,useFactory:function ii(st,He,g,u,v,T,ie={},we,ft){const Ut=new $r(null,st,He,g,u,v,qe(T));return we&&(Ut.urlHandlingStrategy=we),ft&&(Ut.routeReuseStrategy=ft),function bi(st,He){st.errorHandler&&(He.errorHandler=st.errorHandler),st.malformedUriErrorHandler&&(He.malformedUriErrorHandler=st.malformedUriErrorHandler),st.onSameUrlNavigation&&(He.onSameUrlNavigation=st.onSameUrlNavigation),st.paramsInheritanceStrategy&&(He.paramsInheritanceStrategy=st.paramsInheritanceStrategy),st.relativeLinkResolution&&(He.relativeLinkResolution=st.relativeLinkResolution),st.urlUpdateStrategy&&(He.urlUpdateStrategy=st.urlUpdateStrategy),st.canceledNavigationResolution&&(He.canceledNavigationResolution=st.canceledNavigationResolution)}(ie,Ut),ie.enableTracing&&Ut.events.subscribe(dn=>{var tn,Bn;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${dn.constructor.name}`),console.log(dn.toString()),console.log(dn),null===(Bn=console.groupEnd)||void 0===Bn||Bn.call(console)}
1),Ut},deps:[Ue,Nr,B.Ye,s.zs3,s.Sil,ci,yi,[class Ji{},new s.FiY],[class kn{},new s.FiY]]},Nr,{provide:xe,useFactory:function Ni(st){return st.routerState.root},deps:[$r]},Fn,fn,class At{preload(He,g){return g().pipe((0,Y.K)(()=>(0,y.of)(null)))}},{provide:yi,useValue:{enableTracing:!1}}];function Er(){return new s.PXZ("Router",$r)}let $e=(()=>{class st{constructor(g,u){}static forRoot(g,u){return{ngModule:st,providers:[nr,wn(g),{provide:xi,useFactory:zt,deps:[[$r,new s.FiY,new s.tp0]]},{provide:yi,useValue:u||{}},{provide:B.S$,useFactory:ct,deps:[B.lw,[new s.tBr(B.mr),new s.FiY],yi]},{provide:qn,useFactory:Dt,deps:[$r,B.EM,yi]},{provide:nt,useExisting:u&&u.preloadingStrategy?u.preloadingStrategy:fn},{provide:s.PXZ,multi:!0,useFactory:Er},[Hr,{provide:s.ip1,multi:!0,useFactory:Zi,deps:[Hr]},{provide:Fr,useFactory:Pr,deps:[Hr]},{provide:s.tb,multi:!0,useExisting:Fr}]]}}static forChild(g){return{ngModule:st,providers:[wn(g)]}}}return st.\u0275fac=function(g){return new(g||st)(s.LFG(xi,8),s.LFG($r,8))},st.\u0275mod=s.oAB({type:st}),st.\u0275inj=s.cJS({}),st})();function Dt(st,He,g){return g.scrollOffset&&He.setOffset(g.scrollOffset),new qn(st,He,g)}function ct(st,He,g={}){return g.useHash?new B.Do(st,He):new B.b0(st,He)}function zt(st){return"guarded"}function wn(st){return[{provide:s.deG,multi:!0,useValue:st},{provide:ci,multi:!0,useValue:st}]}let Hr=(()=>{class st{constructor(g){this.injector=g,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new J.xQ}appInitializer(){return this.injector.get(B.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let u=null;const v=new Promise(we=>u=we),T=this.injector.get($r),ie=this.injector.get(yi);return"disabled"===ie.initialNavigation?(T.setUpLocationChangeListener(),u(!0)):"enabled"===ie.initialNavigation||"enabledBlocking"===ie.initialNavigation?(T.hooks.afterPreactivation=()=>this.initNavigation?(0,y.of)(null):(this.initNavigation=!0,u(!0),this.resultOfPreactivationDone),T.initialNavigation()):u(!0),v})}bootstrapListener(g){const u=this.injector.get(yi),v=this.injector.get(Fn),T=this.injector.get(qn),ie=this.injector.get($r),we=this.injector.get(s.z2F);g===we.components[0]&&(("enabledNonBlocking"===u.initialNavigation||void 0===u.initialNavigation)&&ie.initialNavigation(),v.setUpPreloading(),T.init(),ie.resetRootComponentType(we.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return st.\u0275fac=function(g){return new(g||st)(s.LFG(s.zs3))},st.\u0275prov=s.Yz7({token:st,factory:st.\u0275fac}),st})();function Zi(st){return st.appInitializer.bind(st)}function Pr(st){return st.bootstrapListener.bind(st)}const Fr=new s.OlP("Router Initializer")},5530:(Qt,Z,S)=>{"use strict";S.d(Z,{D:()=>ae,e:()=>cn});var s=S(5e3),_=S(9808),y=S(8929),j=S(591),D=S(1086),L=S(6498),ce=S(6688),W=S(7043),G=S(4850);function $(hn,vn,ln){return ln?$(hn,vn).pipe((0,G.U)(Jt=>(0,ce.k)(Jt)?ln(...Jt):ln(Jt))):new L.y(Jt=>{const Xe=(...Pe)=>Jt.next(1===Pe.length?Pe[0]:Pe);let qe;try{qe=hn(Xe)}catch(Pe){return void Jt.error(Pe)}if((0,W.m)(vn))return()=>vn(Xe,qe)})}var te=S(6053),le=S(4843),J=S(6787),Me=S(2986),Re=S(1059),me=S(2868),Q=S(7625),P=S(2536),Y=S(7545),de=S(1709),re=S(826),V=S(448);function ne(...hn){return vn=>{let ln;return"function"==typeof hn[hn.length-1]&&(ln=hn.pop()),vn.lift(new E(hn,ln))}}class E{constructor(vn,ln){this.observables=vn,this.project=ln}call(vn,ln){return ln.subscribe(new M(vn,this.observables,this.project))}}class M extends re.L{constructor(vn,ln,Jt){super(vn),this.observables=ln,this.project=Jt,this.toRespond=[];const Xe=ln.length;this.values=new Array(Xe);for(let qe=0;qe<Xe;qe++)this.toRespond.push(qe);for(let qe=0;qe<Xe;qe++)this.add((0,V.D)(this,ln[qe],void 0,qe))}notifyNext(vn,ln,Jt){this.values[Jt]=ln;const Xe=this.toRespond;if(Xe.length>0){const qe=Xe.indexOf(Jt);-1!==qe&&Xe.splice(qe,1)}}notifyComplete(){}_next(vn){if(0===this.toRespond.length){const ln=[vn,...this.values];this.project?this._tryProject(ln):this.destination.next(ln)}}_tryProject(vn){let ln;try{ln=this.project.apply(this,vn)}catch(Jt){return void this.destination.error(Jt)}this.destination.next(ln)}}var A=S(2014),R=S(5778),ee=S(5254),ge=S(3489);class he{constructor(vn){this.predicate=vn}call(vn,ln){return ln.subscribe(new fe(vn,this.predicate))}}class fe extends ge.L{constructor(vn,ln){super(vn),this.predicate=ln,this.skipping=!0,this.index=0}_next(vn){const ln=this.destination;this.skipping&&this.tryCallPredicate(vn),this.skipping||ln.next(vn)}tryCallPredicate(vn){try{const ln=this.predicate(vn,this.index++);this.skipping=Boolean(ln)}catch(ln){this.destination.error(ln)}}}var Ie=S(2198);const Se=["youtubeContainer"];let ae=(()=>{class hn{constructor(ln,Jt){this._ngZone=ln,this._youtubeContainer=new y.xQ,this._destroyed=new y.xQ,this._playerChanges=new j.X(void 0),this._videoId=new j.X(void 0),this._height=new j.X(390),this._width=new j.X(640),this._startSeconds=new j.X(void 0),this._endSeconds=new j.X(void 0),this._suggestedQuality=new j.X(void 0),this._playerVars=new j.X(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=(0,_.NF)(Jt)}get videoId(){return this._videoId.value}set videoId(ln){this._videoId.next(ln)}get height(){return this._height.value}set height(ln){this._height.next(ln||390)}get width(){return this._width.value}set width(ln){this._width.next(ln||640)}set startSeconds(ln){this._startSeconds.next(ln)}set endSeconds(ln){this._endSeconds.next(ln)}set suggestedQuality(ln){this._suggestedQuality.next(ln)}get playerVars(){return this._playerVars.value}set playerVars(ln){this._playerVars.next(ln)}ngOnInit(){if(!this._isBrowser)return;let ln=(0,D.of)(!0);if(!window.YT||!window.YT.Player){const Xe=new y.xQ;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>Xe.next(!0))},ln=Xe.pipe((0,Me.q)(1),(0,Re.O)(!1))}const Jt=function ut(hn,vn,ln,Jt,Xe,qe,Pe){const tt=(0,te.aj)([vn,qe]).pipe(ne((0,te.aj)([Jt,Xe])),(0,G.U)(([bt,un])=>{const[It,Et]=bt,[Rt,Wt]=un;return It?{videoId:It,playerVars:Et,width:Rt,height:Wt}:void 0}));return(0,te.aj)([hn,tt,(0,D.of)(Pe)]).pipe(function Ge(hn){return(0,le.z)(function K(...hn){let vn=null;return"function"==typeof hn[hn.length-1]&&(vn=hn.pop()),1===hn.length&&(0,ce.k)(hn[0])&&(hn=hn[0].slice()),ln=>ln.lift.call((0,ee.D)([ln,...hn]),new te.Ms(vn))}(hn),function Fe(hn){return vn=>vn.lift(new he(hn))}(([vn,ln])=>!ln),(0,G.U)(([vn])=>vn))}(ln),(0,A.R)(wt,void 0),(0,R.x)())}(this._youtubeContainer,this._videoId,ln,this._width,this._height,this._playerVars,this._ngZone).pipe((0,me.b)(Xe=>{this._playerChanges.next(Xe)}),function Be(hn){return(0,de.zg)(vn=>vn?ht(vn)?(0,D.of)(vn):new L.y(ln=>{let Jt=!1,Xe=!1;const qe=Pe=>{Xe=!0,Jt||(Pe.target.removeEventListener("onReady",qe),ln.next(Pe.target))};return vn.addEventListener("onReady",qe),()=>{Jt=!0,Xe||hn(vn)}}).pipe((0,Me.q)(1),(0,Re.O)(void 0)):(0,D.of)(void 0))}(Xe=>{ht(Xe)||Xe.destroy()}),(0,Q.R)(this._destroyed),function N(hn){return hn?(0,P.O)(()=>new y.xQ,hn):(0,P.O)(new y.xQ)}());Jt.subscribe(Xe=>{this._player=Xe,Xe&&this._pendingPlayerState&&this._initializePlayer(Xe,this._pendingPlayerState),this._pendingPlayerState=void 0}),function Ce(hn,vn,ln){(0,te.aj)([hn,vn,ln]).subscribe(([Jt,Xe,qe])=>Jt&&Jt.setSize(Xe,qe))}(Jt,this._width,this._height),function Ve(hn,vn){(0,te.aj)([hn,vn]).subscribe(([ln,Jt])=>ln&&Jt&&ln.setPlaybackQuality(Jt))}(Jt,this._suggestedQuality),function Ot(hn,vn,ln,Jt,Xe,qe){const Pe=(0,te.aj)([ln,Jt]).pipe((0,G.U)(([It,Et])=>({startSeconds:It,endSeconds:Et}))),tt=Pe.pipe(Ht(hn,It=>!!It&&!function Ft(hn){const vn=hn.getPlayerState();return vn!==YT.PlayerState.UNSTARTED&&vn!==YT.PlayerState.CUED}(It))),bt=vn.pipe(Ht(hn,(It,Et)=>!!It&&It.videoId!==Et)),un=hn.pipe(Ht((0,te.aj)([vn,Pe]),([It,Et],Rt)=>!(!Rt||It==Rt.videoId&&!Et.startSeconds&&!Et.endSeconds)));(0,J.T)(un,bt,tt).pipe(ne((0,te.aj)([hn,vn,Pe,Xe])),(0,G.U)(([It,Et])=>Et),(0,Q.R)(qe)).subscribe(([It,Et,Rt,Wt])=>{!Et||!It||(It.videoId=Et,It.cueVideoById(Object.assign({videoId:Et,suggestedQuality:Wt},Rt)))})}(Jt,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),Jt.connect()}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=YT.PlayerState.PLAYING}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=YT.PlayerState.PAUSED}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=YT.PlayerState.CUED}seekTo(ln,Jt){this._player?this._player.seekTo(ln,Jt):this._getPendingState().seek={seconds:ln,allowSeekAhead:Jt}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}
1unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(ln){this._player?this._player.setVolume(ln):this._getPendingState().volume=ln}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(ln){if(this._player)return this._player.setPlaybackRate(ln);this._getPendingState().playbackRate=ln}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:YT.PlayerState.UNSTARTED}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(ln,Jt){const{playbackState:Xe,playbackRate:qe,volume:Pe,muted:tt,seek:bt}=Jt;switch(Xe){case YT.PlayerState.PLAYING:ln.playVideo();break;case YT.PlayerState.PAUSED:ln.pauseVideo();break;case YT.PlayerState.CUED:ln.stopVideo()}null!=qe&&ln.setPlaybackRate(qe),null!=Pe&&ln.setVolume(Pe),null!=tt&&(tt?ln.mute():ln.unMute()),null!=bt&&ln.seekTo(bt.seconds,bt.allowSeekAhead)}_getLazyEmitter(ln){return this._playerChanges.pipe((0,Y.w)(Jt=>Jt?$(Xe=>{Jt.addEventListener(ln,Xe)},Xe=>{try{Jt.removeEventListener&&Jt.removeEventListener(ln,Xe)}catch(qe){}}):(0,D.of)()),Jt=>new L.y(Xe=>Jt.subscribe({next:qe=>this._ngZone.run(()=>Xe.next(qe)),error:qe=>Xe.error(qe),complete:()=>Xe.complete()})),(0,Q.R)(this._destroyed))}}return hn.\u0275fac=function(ln){return new(ln||hn)(s.Y36(s.R0b),s.Y36(s.Lbi))},hn.\u0275cmp=s.Xpm({type:hn,selectors:[["youtube-player"]],viewQuery:function(ln,Jt){if(1&ln&&s.Gf(Se,5),2&ln){let Xe;s.iGM(Xe=s.CRH())&&(Jt.youtubeContainer=Xe.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(ln,Jt){1&ln&&s._UZ(0,"div",null,0)},encapsulation:2,changeDetection:0}),hn})();function wt(hn,[vn,ln,Jt]){if(hn&&ln&&hn.playerVars!==ln.playerVars)hn.destroy();else{if(!ln)return void(hn&&hn.destroy());if(hn)return hn}const Xe=Jt.runOutsideAngular(()=>new YT.Player(vn,ln));return Xe.videoId=ln.videoId,Xe.playerVars=ln.playerVars,Xe}function ht(hn){return"getPlayerStatus"in hn}function Ht(hn,vn){return(0,le.z)(ne(hn),(0,Ie.h)(([ln,Jt])=>vn(Jt,ln)),(0,G.U)(([ln])=>ln))}let cn=(()=>{class hn{}return hn.\u0275fac=function(ln){return new(ln||hn)},hn.\u0275mod=s.oAB({type:hn}),hn.\u0275inj=s.cJS({}),hn})()},5755:(Qt,Z,S)=>{"use strict";S.d(Z,{w:()=>j});const s=["ahole","anus","ash0le","ash0les","asholes","ass","Ass Monkey","Assface","assh0le","assh0lez","asshole","assholes","assholz","asswipe","azzhole","bassterds","bastard","bastards","bastardz","basterds","basterdz","Biatch","bitch","bitches","Blow Job","boffing","butthole","buttwipe","c0ck","c0cks","c0k","Carpet Muncher","cawk","cawks","Clit","cnts","cntz","cock","cockhead","cock-head","cocks","CockSucker","cock-sucker","crap","cum","cunt","cunts","cuntz","dick","dild0","dild0s","dildo","dildos","dilld0","dilld0s","dominatricks","dominatrics","dominatrix","dyke","enema","f u c k","f u c k e r","fag","fag1t","faget","fagg1t","faggit","faggot","fagg0t","fagit","fags","fagz","faig","faigs","fart","flipping the bird","fuck","fucker","fuckin","fucking","fucks","Fudge Packer","fuk","Fukah","Fuken","fuker","Fukin","Fukk","Fukkah","Fukken","Fukker","Fukkin","g00k","God-damned","h00r","h0ar","h0re","hells","hoar","hoor","hoore","jackoff","jap","japs","jerk-off","jisim","jiss","jizm","jizz","knob","knobs","knobz","kunt","kunts","kuntz","Lezzian","Lipshits","Lipshitz","masochist","masokist","massterbait","masstrbait","masstrbate","masterbaiter","masterbate","masterbates","Motha Fucker","Motha Fuker","Motha Fukkah","Motha Fukker","Mother Fucker","Mother Fukah","Mother Fuker","Mother Fukkah","Mother Fukker","mother-fucker","Mutha Fucker","Mutha Fukah","Mutha Fuker","Mutha Fukkah","Mutha Fukker","n1gr","nastt","nigger;","nigur;","niiger;","niigr;","orafis","orgasim;","orgasm","orgasum","oriface","orifice","orifiss","packi","packie","packy","paki","pakie","paky","pecker","peeenus","peeenusss","peenus","peinus","pen1s","penas","penis","penis-breath","penus","penuus","Phuc","Phuck","Phuk","Phuker","Phukker","polac","polack","polak","Poonani","pr1c","pr1ck","pr1k","pusse","pussee","pussy","puuke","puuker","recktum","rectum","retard","
1sadist","scank","schlong","screwing","semen","sex","sexy","Sh!t","sh1t","sh1ter","sh1ts","sh1tter","sh1tz","shit","shits","shitter","Shitty","Shity","shitz","Shyt","Shyte","Shytty","Shyty","skanck","skank","skankee","skankey","skanks","Skanky","slag","slut","sluts","Slutty","slutz","son-of-a-bitch","tit","turd","va1jina","vag1na","vagiina","vagina","vaj1na","vajina","vullva","vulva","w0p","wh00r","wh0re","whore","xrated","xxx","b!+ch","bitch","blowjob","clit","arschloch","fuck","shit","ass","asshole","b!tch","b17ch","b1tch","bastard","bi+ch","boiolas","buceta","c0ck","cawk","chink","cipa","clits","cock","cum","cunt","dildo","dirsa","ejakulate","fatass","fcuk","fuk","fux0r","hoer","hore","jism","kawk","l3itch","l3i+ch","masturbate","masterbat*","masterbat3","motherfucker","s.o.b.","mofo","nazi","nigga","nigger","nutsack","phuck","pimpis","pusse","pussy","scrotum","sh!t","shemale","shi+","sh!+","slut","smut","teets","tits","boobs","b00bs","teez","testical","testicle","titt","w00se","jackoff","wank","whoar","whore","*damn","*dyke","*fuck*","*shit*","@$$","amcik","andskota","arse*","assrammer","ayir","bi7ch","bitch*","bollock*","breasts","butt-pirate","cabron","cazzo","chraa","chuj","Cock*","cunt*","d4mn","daygo","dego","dick*","dike*","dupa","dziwka","ejackulate","Ekrem*","Ekto","enculer","faen","fag*","fanculo","fanny","feces","feg","Felcher","ficken","fitt*","Flikker","foreskin","Fotze","Fu(*","fuk*","futkretzn","gook","guiena","h0r","h4x0r","hell","helvete","hoer*","honkey","Huevon","hui","injun","jizz","kanker*","kike","klootzak","kraut","knulle","kuk","kuksuger","Kurac","kurwa","kusi*","kyrpa*","lesbo","mamhoon","masturbat*","merd*","mibun","monkleigh","mouliewop","muie","mulkku","muschi","nazis","nepesaurio","nigger*","orospu","paska*","perse","picka","pierdol*","pillu*","pimmel","piss*","pizda","poontsee","poop","porn","p0rn","pr0n","preteen","pula","pule","puta","puto","qahbeh","queef*","rautenberg","schaffer","scheiss*","schlampe","schmuck","screw","sh!t*","sharmuta","sharmute","shipal","shiz","skribz","skurwysyn","sphencter","spic","spierdalaj","splooge","suka","b00b*","testicle*","titt*","twat","vittu","wank*","wetback*","wichser","wop*","yed","zabourah"],_=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fuckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","t
1wat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"];class j{constructor(L={}){Vg(this,"list",[]),Vg(this,"exclude",[]),Vg(this,"placeHolder","*"),Vg(this,"regex",/[^a-zA-Z0-9|$|@]|\^/g),Vg(this,"replaceRegex",/\w/g),Vg(this,"splitRegex",/\b|_/g),Object.assign(this,{list:L.emptyList&&[]||Array.prototype.concat.apply(s,[_,L.list||[]]),exclude:L.exclude||[],splitRegex:L.splitRegex||/\b|_/g,placeHolder:L.placeHolder||"*",regex:L.regex||/[^a-zA-Z0-9|$|@]|\^/g,replaceRegex:L.replaceRegex||/\w/g})}isProfane(L){return this.list.filter(ce=>{const W=new RegExp(`\\b${ce.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(ce.toLowerCase())&&W.test(L)}).length>0||!1}replaceWord(L){return L.replace(this.regex,"").replace(this.replaceRegex,this.placeHolder)}clean(L){const ce=this.splitRegex.exec(L);return L&&ce?L.split(this.splitRegex).map(W=>this.isProfane(W)?this.replaceWord(W):W).join(ce[0]):L}addWords(...L){this.list.push(...L),L.map(ce=>ce.toLowerCase()).forEach(ce=>{this.exclude.includes(ce)&&this.exclude.splice(this.exclude.indexOf(ce),1)})}removeWords(...L){this.exclude.push(...L.map(ce=>ce.toLowerCase()))}}},8594:(Qt,Z,S)=>{"use strict";S.d(Z,{Z:()=>_});var s={};!function j(D,L,ce,W){var G=!!(D.Worker&&D.Blob&&D.Promise&&D.OffscreenCanvas&&D.OffscreenCanvasRenderingContext2D&&D.HTMLCanvasElement&&D.HTMLCanvasElement.prototype.transferControlToOffscreen&&D.URL&&D.URL.createObjectURL),$="function"==typeof Path2D&&"function"==typeof DOMMatrix,te=function(){if(!D.OffscreenCanvas)return!1;var ae=new OffscreenCanvas(1,1),Ce=ae.getContext("2d");Ce.fillRect(0,0,1,1);var Ve=ae.transferToImageBitmap();try{Ce.createPattern(Ve,"no-repeat")}catch(Be){return!1}return!0}();function le(){}function J(ae){var Ce=L.exports.Promise,Ve=void 0!==Ce?Ce:D.Promise;return"function"==typeof Ve?new Ve(ae):(ae(le,le),null)}var ae,Ce,fe,Me=(ae=te,Ce=new Map,{transform:function(Ve){if(ae)return Ve;if(Ce.has(Ve))return Ce.get(Ve);var Be=new OffscreenCanvas(Ve.width,Ve.height);return Be.getContext("2d").drawImage(Ve,0,0),Ce.set(Ve,Be),Be},clear:function(){Ce.clear()}}),Re=function(){var Ce,Ve,ae=Math.floor(16.666666666666668),Be={},ut=0;return"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(Ce=function(Ge){var wt=Math.random();return Be[wt]=requestAnimationFrame(function Ot(Ft){ut===Ft||ut+ae-1<Ft?(ut=Ft,delete Be[wt],Ge()):Be[wt]=requestAnimationFrame(Ot)}),wt},Ve=function(Ge){Be[Ge]&&cancelAnimationFrame(Be[Ge])}):(Ce=function(Ge){return setTimeout(Ge,ae)},Ve=function(Ge){return clearTimeout(Ge)}),{frame:Ce,cancel:Ve}}(),me=function(){var ae,Ce,Ve={};return function(){if(ae)return ae;if(!ce&&G){var ut=["var CONFETTI, SIZE = {}, module = {};","("+j.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{ae=new Worker(URL.createObjectURL(new Blob([ut])))}catch(Ge){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("\u{1f38a} Could not load worker",Ge),null}!function Be(ut){function Ge(wt,Ot){ut.postMessage({options:wt||{},callback:Ot})}ut.init=function(Ot){var Ft=Ot.transferControlToOffscreen();ut.postMessage({canvas:Ft},[Ft])},ut.fire=function(Ot,Ft,ht){if(Ce)return Ge(Ot,null),Ce;var Ht=Math.random().toString(36).slice(2);return Ce=J(function(jt){function cn(hn){hn.data.callback===Ht&&(delete Ve[Ht],ut.removeEventListener("message",cn),Ce=null,Me.clear(),ht(),jt())}ut.addEventListener("message",cn),Ge(Ot,Ht),Ve[Ht]=cn.bind(null,{data:{callback:Ht}})})},ut.reset=function(){for(var Ot in ut.postMessage({reset:!0}),Ve)Ve[Ot](),delete Ve[Ot]}}(ae)}return ae}}(),Q={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function Y(ae,Ce,Ve){return function P(ae,Ce){return Ce?Ce(ae):ae}(ae&&function N(ae){return null!=ae}(ae[Ce])?ae[Ce]:Q[Ce],Ve)}function de(ae){return ae<0?0:Math.floor(ae)}function re(ae,Ce){return Math.floor(Math.random()*(Ce-ae))+ae}function V(ae){return parseInt(ae,16)}function ne(ae){return ae.map(E)}function E(ae){var Ce=String(ae).replace(/[^0-9a-f]/gi,"");return Ce.length<6&&(Ce=Ce[0]+Ce[0]+Ce[1]+Ce[1]+Ce[2]+Ce[2]),{r:V(Ce.substring(0,2)),g:V(Ce.substring(2,4)),b:V(Ce.substring(4,6))}}function A(ae){ae.width=document.documentElement.clientWidth,ae.height=document.documentElement.clientHeight}function R(ae){var Ce=ae.getBoundingClientRect();ae.width=Ce.width,ae.height=Ce.height}function K(ae){var Ce=ae.angle*(Math.PI/180),Ve=ae.spread*(Math.PI/180);return{x:ae.x,y:ae.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*ae.startVelocity+Math.random()*ae.startVelocity,angle2D:-Ce+(.5*Ve-Math.random()*Ve),tiltAngle:(.5*Math.random()+.25)
vendor: 5,030 bytes, line 1
1*Math.PI,color:ae.color,shape:ae.shape,tick:0,totalTicks:ae.ticks,decay:ae.decay,drift:ae.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*ae.gravity,ovalScalar:.6,scalar:ae.scalar,flat:ae.flat}}function he(ae,Ce){var jt,Ve=!ae,Be=!!Y(Ce||{},"resize"),ut=!1,Ge=Y(Ce,"disableForReducedMotion",Boolean),Ot=G&&Y(Ce||{},"useWorker")?me():null,Ft=Ve?A:R,ht=!(!ae||!Ot||!ae.__confetti_initialized),Ht="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function cn(vn,ln,Jt){for(var Xe=Y(vn,"particleCount",de),qe=Y(vn,"angle",Number),Pe=Y(vn,"spread",Number),tt=Y(vn,"startVelocity",Number),bt=Y(vn,"decay",Number),un=Y(vn,"gravity",Number),It=Y(vn,"drift",Number),Et=Y(vn,"colors",ne),Rt=Y(vn,"ticks",Number),Wt=Y(vn,"shapes"),Pt=Y(vn,"scalar"),Dn=!!Y(vn,"flat"),Gn=function M(ae){var Ce=Y(ae,"origin",Object);return Ce.x=Y(Ce,"x",Number),Ce.y=Y(Ce,"y",Number),Ce}(vn),Zn=Xe,zn=[],nn=ae.width*Gn.x,Vn=ae.height*Gn.y;Zn--;)zn.push(K({x:nn,y:Vn,angle:qe,spread:Pe,startVelocity:tt,color:Et[Zn%Et.length],shape:Wt[re(0,Wt.length)],ticks:Rt,decay:bt,gravity:un,drift:It,scalar:Pt,flat:Dn}));return jt?jt.addFettis(zn):(jt=function Fe(ae,Ce,Ve,Be,ut){var Ot,Ft,Ge=Ce.slice(),wt=ae.getContext("2d"),ht=J(function(Ht){function jt(){Ot=Ft=null,wt.clearRect(0,0,Be.width,Be.height),Me.clear(),ut(),Ht()}Ot=Re.frame(function cn(){ce&&!(Be.width===W.width&&Be.height===W.height)&&(Be.width=ae.width=W.width,Be.height=ae.height=W.height),!Be.width&&!Be.height&&(Ve(ae),Be.width=ae.width,Be.height=ae.height),wt.clearRect(0,0,Be.width,Be.height),(Ge=Ge.filter(function(hn){return function ge(ae,Ce){Ce.x+=Math.cos(Ce.angle2D)*Ce.velocity+Ce.drift,Ce.y+=Math.sin(Ce.angle2D)*Ce.velocity+Ce.gravity,Ce.velocity*=Ce.decay,Ce.flat?(Ce.wobble=0,Ce.wobbleX=Ce.x+10*Ce.scalar,Ce.wobbleY=Ce.y+10*Ce.scalar,Ce.tiltSin=0,Ce.tiltCos=0,Ce.random=1):(Ce.wobble+=Ce.wobbleSpeed,Ce.wobbleX=Ce.x+10*Ce.scalar*Math.cos(Ce.wobble),Ce.wobbleY=Ce.y+10*Ce.scalar*Math.sin(Ce.wobble),Ce.tiltAngle+=.1,Ce.tiltSin=Math.sin(Ce.tiltAngle),Ce.tiltCos=Math.cos(Ce.tiltAngle),Ce.random=Math.random()+2);var Ve=Ce.tick++/Ce.totalTicks,Be=Ce.x+Ce.random*Ce.tiltCos,ut=Ce.y+Ce.random*Ce.tiltSin,Ge=Ce.wobbleX+Ce.random*Ce.tiltCos,wt=Ce.wobbleY+Ce.random*Ce.tiltSin;if(ae.fillStyle="rgba("+Ce.color.r+", "+Ce.color.g+", "+Ce.color.b+", "+(1-Ve)+")",ae.beginPath(),$&&"path"===Ce.shape.type&&"string"==typeof Ce.shape.path&&Array.isArray(Ce.shape.matrix))ae.fill(function Se(ae,Ce,Ve,Be,ut,Ge,wt){var Ot=new Path2D(ae),Ft=new Path2D;Ft.addPath(Ot,new DOMMatrix(Ce));var ht=new Path2D;return ht.addPath(Ft,new DOMMatrix([Math.cos(wt)*ut,Math.sin(wt)*ut,-Math.sin(wt)*Ge,Math.cos(wt)*Ge,Ve,Be])),ht}(Ce.shape.path,Ce.shape.matrix,Ce.x,Ce.y,.1*Math.abs(Ge-Be),.1*Math.abs(wt-ut),Math.PI/10*Ce.wobble));else if("bitmap"===Ce.shape.type){var Ot=Math.PI/10*Ce.wobble,Ft=.1*Math.abs(Ge-Be),ht=.1*Math.abs(wt-ut),Ht=Ce.shape.bitmap.width*Ce.scalar,jt=Ce.shape.bitmap.height*Ce.scalar,cn=new DOMMatrix([Math.cos(Ot)*Ft,Math.sin(Ot)*Ft,-Math.sin(Ot)*ht,Math.cos(Ot)*ht,Ce.x,Ce.y]);cn.multiplySelf(new DOMMatrix(Ce.shape.matrix));var hn=ae.createPattern(Me.transform(Ce.shape.bitmap),"no-repeat");hn.setTransform(cn),ae.globalAlpha=1-Ve,ae.fillStyle=hn,ae.fillRect(Ce.x-Ht/2,Ce.y-jt/2,Ht,jt),ae.globalAlpha=1}else if("circle"===Ce.shape)ae.ellipse?ae.ellipse(Ce.x,Ce.y,Math.abs(Ge-Be)*Ce.ovalScalar,Math.abs(wt-ut)*Ce.ovalScalar,Math.PI/10*Ce.wobble,0,2*Math.PI):function B(ae,Ce,Ve,Be,ut,Ge,wt,Ot,Ft){ae.save(),ae.translate(Ce,Ve),ae.rotate(Ge),ae.scale(Be,ut),ae.arc(0,0,1,wt,Ot,Ft),ae.restore()}(ae,Ce.x,Ce.y,Math.abs(Ge-Be)*Ce.ovalScalar,Math.abs(wt-ut)*Ce.ovalScalar,Math.PI/10*Ce.wobble,0,2*Math.PI);else if("star"===Ce.shape)for(var vn=Math.PI/2*3,ln=4*Ce.scalar,Jt=8*Ce.scalar,Xe=Ce.x,qe=Ce.y,Pe=5,tt=Math.PI/Pe;Pe--;)Xe=Ce.x+Math.cos(vn)*Jt,qe=Ce.y+Math.sin(vn)*Jt,ae.lineTo(Xe,qe),vn+=tt,Xe=Ce.x+Math.cos(vn)*ln,qe=Ce.y+Math.sin(vn)*ln,ae.lineTo(Xe,qe),vn+=tt;else ae.moveTo(Math.floor(Ce.x),Math.floor(Ce.y)),ae.lineTo(Math.floor(Ce.wobbleX),Math.floor(ut)),ae.lineTo(Math.floor(Ge),Math.floor(wt)),ae.lineTo(Math.floor(Be),Math.floor(Ce.wobbleY));return ae.closePath(),ae.fill(),Ce.tick<Ce.totalTicks}(wt,hn)})).length?Ot=Re.frame(cn):jt()}),Ft=jt});return{addFettis:function(Ht){return Ge=Ge.concat(Ht),ht},canvas:ae,promise:ht,reset:function(){Ot&&Re.cancel(Ot),Ft&&Ft()}}}(ae,zn,Ft,ln,Jt),jt.promise)}function hn(vn){var ln=Ge||Y(vn,"disableForReducedMotion",Boolean),Jt=Y(vn,"zIndex",Number);if(ln&&Ht)return J(function(tt){tt()});Ve&&jt?ae=jt.canvas:Ve&&!ae&&(ae=function ee(ae){var Ce=document.createElement("canvas");return Ce.style.position="fixed",Ce.style.top="0px",Ce.style.left="0px",Ce.style.pointerEvents="none",Ce.style.zIndex=ae,Ce}(Jt),document.body.appendChild(ae)),Be&&!ht&&Ft(ae);var Xe={width:ae.width,height:ae.height};function qe(){if(Ot){var tt={getBoundingClientRect:function(){if(!Ve)return ae.getBoundingClientRect()}};return Ft(tt),void Ot.postMessage({resize:{width:tt.width,height:tt.height}})}
1Xe.width=Xe.height=null}function Pe(){jt=null,Be&&(ut=!1,D.removeEventListener("resize",qe)),Ve&&ae&&(document.body.contains(ae)&&document.body.removeChild(ae),ae=null,ht=!1)}return Ot&&!ht&&Ot.init(ae),ht=!0,Ot&&(ae.__confetti_initialized=!0),Be&&!ut&&(ut=!0,D.addEventListener("resize",qe,!1)),Ot?Ot.fire(vn,Xe,Pe):cn(vn,Xe,Pe)}return hn.reset=function(){Ot&&Ot.reset(),jt&&jt.reset()},hn}function Ie(){return fe||(fe=he(null,{useWorker:!0,resize:!0})),fe}L.exports=function(){return Ie().apply(this,arguments)},L.exports.reset=function(){Ie().reset()},L.exports.create=he,L.exports.shapeFromPath=function pe(ae){if(!$)throw new Error("path confetti are not supported in this browser");var Ce,Ve;"string"==typeof ae?Ce=ae:(Ce=ae.path,Ve=ae.matrix);var Be=new Path2D(Ce),Ge=document.createElement("canvas").getContext("2d");if(!Ve){for(var jt,cn,Ot=1e3,Ft=1e3,ht=0,Ht=0,hn=0;hn<1e3;hn+=2)for(var vn=0;vn<1e3;vn+=2)Ge.isPointInPath(Be,hn,vn,"nonzero")&&(Ot=Math.min(Ot,hn),Ft=Math.min(Ft,vn),ht=Math.max(ht,hn),Ht=Math.max(Ht,vn));jt=ht-Ot,cn=Ht-Ft;var Jt=Math.min(10/jt,10/cn);Ve=[Jt,0,0,Jt,-Math.round(jt/2+Ot)*Jt,-Math.round(cn/2+Ft)*Jt]}return{type:"path",path:Ce,matrix:Ve}},L.exports.shapeFromText=function ke(ae){var Ce,Ve=1,Be="#000000",ut='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof ae?Ce=ae:(Ce=ae.text,Ve="scalar"in ae?ae.scalar:Ve,ut="fontFamily"in ae?ae.fontFamily:ut,Be="color"in ae?ae.color:Be);var Ge=10*Ve,wt=Ge+"px "+ut,Ot=new OffscreenCanvas(Ge,Ge),Ft=Ot.getContext("2d");Ft.font=wt;var ht=Ft.measureText(Ce),Ht=Math.ceil(ht.actualBoundingBoxRight+ht.actualBoundingBoxLeft),jt=Math.ceil(ht.actualBoundingBoxAscent+ht.actualBoundingBoxDescent),hn=ht.actualBoundingBoxLeft+2,vn=ht.actualBoundingBoxAscent+2;Ht+=4,jt+=4,(Ft=(Ot=new OffscreenCanvas(Ht,jt)).getContext("2d")).font=wt,Ft.fillStyle=Be,Ft.fillText(Ce,hn,vn);var ln=1/Ve;return{type:"bitmap",bitmap:Ot.transferToImageBitmap(),matrix:[ln,0,0,ln,-Ht*ln/2,-jt*ln/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),s,!1);const _=s.exports},7296:(Qt,Z,S)=>{"use strict";S.d(Z,{jh:()=>jm,vQ:()=>Gm});var s=S(5e3);function _(){}const y=function(){let c=0;return function(){return c++}}();function j(c){return null==c}function D(c){if(Array.isArray&&Array.isArray(c))return!0;const l=Object.prototype.toString.call(c);return"[object"===l.slice(0,7)&&"Array]"===l.slice(-6)}function L(c){return null!==c&&"[object Object]"===Object.prototype.toString.call(c)}const ce=c=>("number"==typeof c||c instanceof Number)&&isFinite(+c);function W(c,l){return ce(c)?c:l}function G(c,l){return void 0===c?l:c}const te=(c,l)=>"string"==typeof c&&c.endsWith("%")?parseFloat(c)/100*l:+c;function le(c,l,o){if(c&&"function"==typeof c.call)return c.apply(o,l)}function J(c,l,o,m){let C,k,U;if(D(c))if(k=c.length,m)for(C=k-1;C>=0;C--)l.call(o,c[C],C);else for(C=0;C<k;C++)l.call(o,c[C],C);else if(L(c))for(U=Object.keys(c),k=U.length,C=0;C<k;C++)l.call(o,c[U[C]],U[C])}function Me(c,l){let o,m,C,k;if(!c||!l||c.length!==l.length)return!1;for(o=0,m=c.length;o<m;++o)if(C=c[o],k=l[o],C.datasetIndex!==k.datasetIndex||C.index!==k.index)return!1;return!0}function Re(c){if(D(c))return c.map(Re);if(L(c)){const l=Object.create(null),o=Object.keys(c),m=o.length;let C=0;for(;C<m;++C)l[o[C]]=Re(c[o[C]]);return l}return c}function me(c){return-1===["__proto__","prototype","constructor"].indexOf(c)}function Q(c,l,o,m){if(!me(c))return;const C=l[c],k=o[c];L(C)&&L(k)?P(C,k,m):l[c]=Re(k)}function P(c,l,o){const m=D(l)?l:[l],C=m.length;if(!L(c))return c;const k=(o=o||{}).merger||Q;for(let U=0;U<C;++U){if(!L(l=m[U]))continue;const oe=Object.keys(l);for(let be=0,Ze=oe.length;be<Ze;++be)k(oe[be],c,l,o)}return c}function N(c,l){return P(c,l,{merger:Y})}function Y(c,l,o){if(!me(c))return;const m=l[c],C=o[c];L(m)&&L(C)?N(m,C):Object.prototype.hasOwnProperty.call(l,c)||(l[c]=Re(C))}const re={"":c=>c,x:c=>c.x,y:c=>c.y};function V(c,l){return(re[l]||(re[l]=function ne(c){const l=function E(c){const l=c.split("."),o=[];let m="";for(const C of l)m+=C,m.endsWith("\\")?m=m.slice(0,-1)+".":(o.push(m),m="");return o}(c);return o=>{for(const m of l){if(""===m)break;o=o&&o[m]}return o}}(l)))(c)}function M(c){return c.charAt(0).toUpperCase()+c.slice(1)}const A=c=>void 0!==c,R=c=>"function"==typeof c,ee=(c,l)=>{if(c.size!==l.size)return!1;for(const o of c)if(!l.has(o))return!1;return!0},K=Math.PI,ge=2*K,Fe=ge+K,he=Number.POSITIVE_INFINITY,fe=K/180,Ie=K/2,Se=K/4,pe=2*K/3,ke=Math.log10,ae=Math.sign;function Ce(c){const l=Math.round(c);c=ut(c,l,c/1e3)?l:c;const o=Math.pow(10,Math.floor(ke(c))),m=c/o;return(m<=1?1:m<=2?2:m<=5?5:10)*o}function Be(c){return!isNaN(parseFloat(c))&&isFinite(c)}function ut(c,l,o){return Math.abs(c-l)<o}function wt(c,l,o){let m,C,k;for(m=0,C=c.length;m<C;m++)k=c[m][o],isNaN(k)||(l.min=Math.min(l.min,k),l.max=Math.max(l.max,
vendor: 4,635 bytes, line 1
1k))}function Ot(c){return c*(K/180)}function Ft(c){return c*(180/K)}function ht(c){if(!ce(c))return;let l=1,o=0;for(;Math.round(c*l)/l!==c;)l*=10,o++;return o}function Ht(c,l){const o=l.x-c.x,m=l.y-c.y,C=Math.sqrt(o*o+m*m);let k=Math.atan2(m,o);return k<-.5*K&&(k+=ge),{angle:k,distance:C}}function jt(c,l){return Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}function cn(c,l){return(c-l+Fe)%ge-K}function hn(c){return(c%ge+ge)%ge}function vn(c,l,o,m){const C=hn(c),k=hn(l),U=hn(o),oe=hn(k-C),be=hn(U-C),Ze=hn(C-k),St=hn(C-U);return C===k||C===U||m&&k===U||oe>be&&Ze<St}function ln(c,l,o){return Math.max(l,Math.min(o,c))}function Xe(c,l,o,m=1e-6){return c>=Math.min(l,o)-m&&c<=Math.max(l,o)+m}function qe(c,l,o){o=o||(U=>c[U]<l);let k,m=c.length-1,C=0;for(;m-C>1;)k=C+m>>1,o(k)?C=k:m=k;return{lo:C,hi:m}}const Pe=(c,l,o,m)=>qe(c,o,m?C=>c[C][l]<=o:C=>c[C][l]<o),tt=(c,l,o)=>qe(c,o,m=>c[m][l]>=o),un=["push","pop","shift","splice","unshift"];function Et(c,l){const o=c._chartjs;if(!o)return;const m=o.listeners,C=m.indexOf(l);-1!==C&&m.splice(C,1),!(m.length>0)&&(un.forEach(k=>{delete c[k]}),delete c._chartjs)}function Rt(c){const l=new Set;let o,m;for(o=0,m=c.length;o<m;++o)l.add(c[o]);return l.size===m?c:Array.from(l)}const Pt="undefined"==typeof window?function(c){return c()}:window.requestAnimationFrame;function Dn(c,l,o){const m=o||(U=>Array.prototype.slice.call(U));let C=!1,k=[];return function(...U){k=m(U),C||(C=!0,Pt.call(window,()=>{C=!1,c.apply(l,k)}))}}const Zn=c=>"start"===c?"left":"end"===c?"right":"center",zn=(c,l,o)=>"start"===c?l:"end"===c?o:(l+o)/2;function Vn(c,l,o){const m=l.length;let C=0,k=m;if(c._sorted){const{iScale:U,_parsed:oe}=c,be=U.axis,{min:Ze,max:St,minDefined:qt,maxDefined:bn}=U.getUserBounds();qt&&(C=ln(Math.min(Pe(oe,U.axis,Ze).lo,o?m:Pe(l,be,U.getPixelForValue(Ze)).lo),0,m-1)),k=bn?ln(Math.max(Pe(oe,U.axis,St,!0).hi+1,o?0:Pe(l,be,U.getPixelForValue(St),!0).hi+1),C,m)-C:m-C}return{start:C,count:k}}function Yt(c){const{xScale:l,yScale:o,_scaleRanges:m}=c,C={xmin:l.min,xmax:l.max,ymin:o.min,ymax:o.max};if(!m)return c._scaleRanges=C,!0;const k=m.xmin!==l.min||m.xmax!==l.max||m.ymin!==o.min||m.ymax!==o.max;return Object.assign(m,C),k}const Rn=c=>0===c||1===c,Mt=(c,l,o)=>-Math.pow(2,10*(c-=1))*Math.sin((c-l)*ge/o),kt=(c,l,o)=>Math.pow(2,-10*c)*Math.sin((c-l)*ge/o)+1,We={linear:c=>c,easeInQuad:c=>c*c,easeOutQuad:c=>-c*(c-2),easeInOutQuad:c=>(c/=.5)<1?.5*c*c:-.5*(--c*(c-2)-1),easeInCubic:c=>c*c*c,easeOutCubic:c=>(c-=1)*c*c+1,easeInOutCubic:c=>(c/=.5)<1?.5*c*c*c:.5*((c-=2)*c*c+2),easeInQuart:c=>c*c*c*c,easeOutQuart:c=>-((c-=1)*c*c*c-1),easeInOutQuart:c=>(c/=.5)<1?.5*c*c*c*c:-.5*((c-=2)*c*c*c-2),easeInQuint:c=>c*c*c*c*c,easeOutQuint:c=>(c-=1)*c*c*c*c+1,easeInOutQuint:c=>(c/=.5)<1?.5*c*c*c*c*c:.5*((c-=2)*c*c*c*c+2),easeInSine:c=>1-Math.cos(c*Ie),easeOutSine:c=>Math.sin(c*Ie),easeInOutSine:c=>-.5*(Math.cos(K*c)-1),easeInExpo:c=>0===c?0:Math.pow(2,10*(c-1)),easeOutExpo:c=>1===c?1:1-Math.pow(2,-10*c),easeInOutExpo:c=>Rn(c)?c:c<.5?.5*Math.pow(2,10*(2*c-1)):.5*(2-Math.pow(2,-10*(2*c-1))),easeInCirc:c=>c>=1?c:-(Math.sqrt(1-c*c)-1),easeOutCirc:c=>Math.sqrt(1-(c-=1)*c),easeInOutCirc:c=>(c/=.5)<1?-.5*(Math.sqrt(1-c*c)-1):.5*(Math.sqrt(1-(c-=2)*c)+1),easeInElastic:c=>Rn(c)?c:Mt(c,.075,.3),easeOutElastic:c=>Rn(c)?c:kt(c,.075,.3),easeInOutElastic:c=>Rn(c)?c:c<.5?.5*Mt(2*c,.1125,.45):.5+.5*kt(2*c-1,.1125,.45),easeInBack:c=>c*c*(2.70158*c-1.70158),easeOutBack:c=>(c-=1)*c*(2.70158*c+1.70158)+1,easeInOutBack(c){let l=1.70158;return(c/=.5)<1?c*c*((1+(l*=1.525))*c-l)*.5:.5*((c-=2)*c*((1+(l*=1.525))*c+l)+2)},easeInBounce:c=>1-We.easeOutBounce(1-c),easeOutBounce:c=>c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375,easeInOutBounce:c=>c<.5?.5*We.easeInBounce(2*c):.5*We.easeOutBounce(2*c-1)+.5};function Ue(c){return c+.5|0}const Qe=(c,l,o)=>Math.max(Math.min(c,o),l);function Lt(c){return Qe(Ue(2.55*c),0,255)}function xt(c){return Qe(Ue(255*c),0,255)}function Gt(c){return Qe(Ue(c/2.55)/100,0,1)}function Ke(c){return Qe(Ue(100*c),0,100)}const Ne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ae=[..."0123456789ABCDEF"],Oe=c=>Ae[15&c],Ye=c=>Ae[(240&c)>>4]+Ae[15&c],je=c=>(240&c)>>4==(15&c);const Xn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ai(c,l,o){const m=l*Math.min(o,1-o),C=(k,U=(k+c/30)%12)=>o-m*Math.max(Math.min(U-3,9-U,1),-1);return[C(0),C(8),C(4)]}function mi(c,l,o){const m=(C,k=(C+c/60)%6)=>o-o*l*Math.max(Math.min(k,4-k,1),0);return[m(5),m(3),m(1)]}
vendor: 4,357 bytes, line 1
1function fi(c,l,o){const m=Ai(c,1,.5);let C;for(l+o>1&&(C=1/(l+o),l*=C,o*=C),C=0;C<3;C++)m[C]*=1-l-o,m[C]+=l;return m}function pn(c){const o=c.r/255,m=c.g/255,C=c.b/255,k=Math.max(o,m,C),U=Math.min(o,m,C),oe=(k+U)/2;let be,Ze,St;return k!==U&&(St=k-U,Ze=oe>.5?St/(2-k-U):St/(k+U),be=function Ki(c,l,o,m,C){return c===C?(l-o)/m+(l<o?6:0):l===C?(o-c)/m+2:(c-l)/m+4}(o,m,C,St,k),be=60*be+.5),[0|be,Ze||0,oe]}function gn(c,l,o,m){return(Array.isArray(l)?c(l[0],l[1],l[2]):c(l,o,m)).map(xt)}function En(c,l,o){return gn(Ai,c,l,o)}function ue(c){return(c%360+360)%360}const xe={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},_t={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Un;const vi=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,zi=c=>c<=.0031308?12.92*c:1.055*Math.pow(c,1/2.4)-.055,hr=c=>c<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4);function qs(c,l,o){if(c){let m=pn(c);m[l]=Math.max(0,Math.min(m[l]+m[l]*o,0===l?360:1)),m=En(m),c.r=m[0],c.g=m[1],c.b=m[2]}}function fs(c,l){return c&&Object.assign(l||{},c)}function or(c){var l={r:0,g:0,b:0,a:255};return Array.isArray(c)?c.length>=3&&(l={r:c[0],g:c[1],b:c[2],a:255},c.length>3&&(l.a=xt(c[3]))):(l=fs(c,{r:0,g:0,b:0,a:1})).a=xt(l.a),l}function vs(c){return"r"===c.charAt(0)?function li(c){const l=vi.exec(c);let m,C,k,o=255;if(l){if(l[7]!==m){const U=+l[7];o=l[8]?Lt(U):Qe(255*U,0,255)}return m=+l[1],C=+l[3],k=+l[5],m=255&(l[2]?Lt(m):Qe(m,0,255)),C=255&(l[4]?Lt(C):Qe(C,0,255)),k=255&(l[6]?Lt(k):Qe(k,0,255)),{r:m,g:C,b:k,a:o}}}(c):function ve(c){const l=Xn.exec(c);let m,o=255;if(!l)return;l[5]!==m&&(o=l[6]?Lt(+l[5]):xt(+l[5]));const C=ue(+l[2]),k=+l[3]/100,U=+l[4]/100;return m="hwb"===l[1]?function rt(c,l,o){return gn(fi,c,l,o)}(C,k,U):"hsv"===l[1]?function it(c,l,o){return gn(mi,c,l,o)}(C,k,U):En(C,k,U),{r:m[0],g:m[1],b:m[2],a:o}}(c)}class go{constructor(l){if(l instanceof go)return l;const o=typeof l;let m;
vendor: 3,841 bytes, line 1
1"object"===o?m=or(l):"string"===o&&(m=function rn(c){var o,l=c.length;return"#"===c[0]&&(4===l||5===l?o={r:255&17*Ne[c[1]],g:255&17*Ne[c[2]],b:255&17*Ne[c[3]],a:5===l?17*Ne[c[4]]:255}:(7===l||9===l)&&(o={r:Ne[c[1]]<<4|Ne[c[2]],g:Ne[c[3]]<<4|Ne[c[4]],b:Ne[c[5]]<<4|Ne[c[6]],a:9===l?Ne[c[7]]<<4|Ne[c[8]]:255})),o}(l)||function Qn(c){Un||(Un=function Xt(){const c={},l=Object.keys(_t),o=Object.keys(xe);let m,C,k,U,oe;for(m=0;m<l.length;m++){for(U=oe=l[m],C=0;C<o.length;C++)k=o[C],oe=oe.replace(k,xe[k]);k=parseInt(_t[U],16),c[oe]=[k>>16&255,k>>8&255,255&k]}return c}(),Un.transparent=[0,0,0,0]);const l=Un[c.toLowerCase()];return l&&{r:l[0],g:l[1],b:l[2],a:4===l.length?l[3]:255}}(l)||vs(l)),this._rgb=m,this._valid=!!m}get valid(){return this._valid}get rgb(){var l=fs(this._rgb);return l&&(l.a=Gt(l.a)),l}set rgb(l){this._rgb=or(l)}rgbString(){return this._valid?function mr(c){return c&&(c.a<255?`rgba(${c.r}, ${c.g}, ${c.b}, ${Gt(c.a)})`:`rgb(${c.r}, ${c.g}, ${c.b})`)}(this._rgb):void 0}hexString(){return this._valid?function xn(c){var l=(c=>je(c.r)&&je(c.g)&&je(c.b)&&je(c.a))(c)?Oe:Ye;return c?"#"+l(c.r)+l(c.g)+l(c.b)+((c,l)=>c<255?l(c):"")(c.a,l):void 0}(this._rgb):void 0}hslString(){return this._valid?function q(c){if(!c)return;const l=pn(c),o=l[0],m=Ke(l[1]),C=Ke(l[2]);return c.a<255?`hsla(${o}, ${m}%, ${C}%, ${Gt(c.a)})`:`hsl(${o}, ${m}%, ${C}%)`}(this._rgb):void 0}mix(l,o){if(l){const m=this.rgb,C=l.rgb;let k;const U=o===k?.5:o,oe=2*U-1,be=m.a-C.a,Ze=((oe*be==-1?oe:(oe+be)/(1+oe*be))+1)/2;k=1-Ze,m.r=255&Ze*m.r+k*C.r+.5,m.g=255&Ze*m.g+k*C.g+.5,m.b=255&Ze*m.b+k*C.b+.5,m.a=U*m.a+(1-U)*C.a,this.rgb=m}return this}interpolate(l,o){return l&&(this._rgb=function Wi(c,l,o){const m=hr(Gt(c.r)),C=hr(Gt(c.g)),k=hr(Gt(c.b));return{r:xt(zi(m+o*(hr(Gt(l.r))-m))),g:xt(zi(C+o*(hr(Gt(l.g))-C))),b:xt(zi(k+o*(hr(Gt(l.b))-k))),a:c.a+o*(l.a-c.a)}}(this._rgb,l._rgb,o)),this}clone(){return new go(this.rgb)}alpha(l){return this._rgb.a=xt(l),this}clearer(l){return this._rgb.a*=1-l,this}greyscale(){const l=this._rgb,o=Ue(.3*l.r+.59*l.g+.11*l.b);return l.r=l.g=l.b=o,this}opaquer(l){return this._rgb.a*=1+l,this}negate(){const l=this._rgb;return l.r=255-l.r,l.g=255-l.g,l.b=255-l.b,this}lighten(l){return qs(this._rgb,2,l),this}darken(l){return qs(this._rgb,2,-l),this}saturate(l){return qs(this._rgb,1,l),this}desaturate(l){return qs(this._rgb,1,-l),this}rotate(l){return function at(c,l){var o=pn(c);o[0]=ue(o[0]+l),o=En(o),c.r=o[0],c.g=o[1],c.b=o[2]}(this._rgb,l),this}}function Ds(c){return new go(c)}function dr(c){if(c&&"object"==typeof c){const l=c.toString();return"[object CanvasPattern]"===l||"[object CanvasGradient]"===l}return!1}function Qs(c){return dr(c)?c:Ds(c)}function Os(c){return dr(c)?c:Ds(c).saturate(.5).darken(.1).hexString()}const Rs=Object.create(null),Js=Object.create(null);function qr(c,l){if(!l)return c;const o=l.split(".");for(let m=0,C=o.length;m<C;++m){const k=o[m];c=c[k]||(c[k]=Object.create(null))}return c}function zr(c,l,o){return"string"==typeof l?P(qr(c,l),o):P(qr(c,""),l)}var ar=new class Oo{constructor(l){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,m)=>Os(m.backgroundColor),this.hoverBorderColor=(o,m)=>Os(m.borderColor),this.hoverColor=(o,m)=>Os(m.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 15,143 bytes, line 1
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(l)}set(l,o){return zr(this,l,o)}get(l){return qr(this,l)}describe(l,o){return zr(Js,l,o)}override(l,o){return zr(Rs,l,o)}route(l,o,m,C){const k=qr(this,l),U=qr(this,m),oe="_"+o;Object.defineProperties(k,{[oe]:{value:k[o],writable:!0},[o]:{enumerable:!0,get(){const be=this[oe],Ze=U[C];return L(be)?Object.assign({},Ze,be):G(be,Ze)},set(be){this[oe]=be}}})}}({_scriptable:c=>!c.startsWith("on"),_indexable:c=>"events"!==c,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ys(c,l,o,m,C){let k=l[C];return k||(k=l[C]=c.measureText(C).width,o.push(C)),k>m&&(m=k),m}function fr(c,l,o,m){let C=(m=m||{}).data=m.data||{},k=m.garbageCollect=m.garbageCollect||[];m.font!==l&&(C=m.data={},k=m.garbageCollect=[],m.font=l),c.save(),c.font=l;let U=0;const oe=o.length;let be,Ze,St,qt,bn;for(be=0;be<oe;be++)if(qt=o[be],null!=qt&&!0!==D(qt))U=ys(c,C,k,U,qt);else if(D(qt))for(Ze=0,St=qt.length;Ze<St;Ze++)bn=qt[Ze],null!=bn&&!D(bn)&&(U=ys(c,C,k,U,bn));c.restore();const Cn=k.length/2;if(Cn>o.length){for(be=0;be<Cn;be++)delete C[k[be]];k.splice(0,Cn)}return U}function ls(c,l,o){const m=c.currentDevicePixelRatio,C=0!==o?Math.max(o/2,.5):0;return Math.round((l-C)*m)/m+C}function eo(c,l){(l=l||c.getContext("2d")).save(),l.resetTransform(),l.clearRect(0,0,c.width,c.height),l.restore()}function Kr(c,l,o,m){zs(c,l,o,m,null)}function zs(c,l,o,m,C){let k,U,oe,be,Ze,St;const qt=l.pointStyle,bn=l.rotation,Cn=l.radius;let An=(bn||0)*fe;if(qt&&"object"==typeof qt&&(k=qt.toString(),"[object HTMLImageElement]"===k||"[object HTMLCanvasElement]"===k))return c.save(),c.translate(o,m),c.rotate(An),c.drawImage(qt,-qt.width/2,-qt.height/2,qt.width,qt.height),void c.restore();if(!(isNaN(Cn)||Cn<=0)){switch(c.beginPath(),qt){default:C?c.ellipse(o,m,C/2,Cn,0,0,ge):c.arc(o,m,Cn,0,ge),c.closePath();break;case"triangle":c.moveTo(o+Math.sin(An)*Cn,m-Math.cos(An)*Cn),An+=pe,c.lineTo(o+Math.sin(An)*Cn,m-Math.cos(An)*Cn),An+=pe,c.lineTo(o+Math.sin(An)*Cn,m-Math.cos(An)*Cn),c.closePath();break;case"rectRounded":Ze=.516*Cn,be=Cn-Ze,U=Math.cos(An+Se)*be,oe=Math.sin(An+Se)*be,c.arc(o-U,m-oe,Ze,An-K,An-Ie),c.arc(o+oe,m-U,Ze,An-Ie,An),c.arc(o+U,m+oe,Ze,An,An+Ie),c.arc(o-oe,m+U,Ze,An+Ie,An+K),c.closePath();break;case"rect":if(!bn){be=Math.SQRT1_2*Cn,St=C?C/2:be,c.rect(o-St,m-be,2*St,2*be);break}An+=Se;case"rectRot":U=Math.cos(An)*Cn,oe=Math.sin(An)*Cn,c.moveTo(o-U,m-oe),c.lineTo(o+oe,m-U),c.lineTo(o+U,m+oe),c.lineTo(o-oe,m+U),c.closePath();break;case"crossRot":An+=Se;case"cross":U=Math.cos(An)*Cn,oe=Math.sin(An)*Cn,c.moveTo(o-U,m-oe),c.lineTo(o+U,m+oe),c.moveTo(o+oe,m-U),c.lineTo(o-oe,m+U);break;case"star":U=Math.cos(An)*Cn,oe=Math.sin(An)*Cn,c.moveTo(o-U,m-oe),c.lineTo(o+U,m+oe),c.moveTo(o+oe,m-U),c.lineTo(o-oe,m+U),An+=Se,U=Math.cos(An)*Cn,oe=Math.sin(An)*Cn,c.moveTo(o-U,m-oe),c.lineTo(o+U,m+oe),c.moveTo(o+oe,m-U),c.lineTo(o-oe,m+U);break;case"line":U=C?C/2:Math.cos(An)*Cn,oe=Math.sin(An)*Cn,c.moveTo(o-U,m-oe),c.lineTo(o+U,m+oe);break;case"dash":c.moveTo(o,m),c.lineTo(o+Math.cos(An)*Cn,m+Math.sin(An)*Cn)}c.fill(),l.borderWidth>0&&c.stroke()}}function Ro(c,l,o){return o=o||.5,!l||c&&c.x>l.left-o&&c.x<l.right+o&&c.y>l.top-o&&c.y<l.bottom+o}function xs(c,l){c.save(),c.beginPath(),c.rect(l.left,l.top,l.right-l.left,l.bottom-l.top),c.clip()}function Ui(c){c.restore()}function vr(c,l,o,m,C){if(!l)return c.lineTo(o.x,o.y);if("middle"===C){const k=(l.x+o.x)/2;c.lineTo(k,l.y),c.lineTo(k,o.y)}else"after"===C!=!!m?c.lineTo(l.x,o.y):c.lineTo(o.x,l.y);c.lineTo(o.x,o.y)}function Po(c,l,o,m){if(!l)return c.lineTo(o.x,o.y);c.bezierCurveTo(m?l.cp1x:l.cp2x,m?l.cp1y:l.cp2y,m?o.cp2x:o.cp1x,m?o.cp2y:o.cp1y,o.x,o.y)}function Ps(c,l,o,m,C,k={}){const U=D(l)?l:[l],oe=k.strokeWidth>0&&""!==k.strokeColor;let be,Ze;for(c.save(),c.font=C.string,function Ao(c,l){l.translation&&c.translate(l.translation[0],l.translation[1]),j(l.rotation)||c.rotate(l.rotation),l.color&&(c.fillStyle=l.color),l.textAlign&&(c.textAlign=l.textAlign),l.textBaseline&&(c.textBaseline=l.textBaseline)}(c,k),be=0;be<U.length;++be)Ze=U[be],oe&&(k.strokeColor&&(c.strokeStyle=k.strokeColor),j(k.strokeWidth)||(c.lineWidth=k.strokeWidth),c.strokeText(Ze,o,m,k.maxWidth)),c.fillText(Ze,o,m,k.maxWidth),to(c,o,m,Ze,k),m+=C.lineHeight;c.restore()}function to(c,l,o,m,C){if(C.strikethrough||C.underline){const k=c.measureText(m),U=l-k.actualBoundingBoxLeft,oe=l+k.actualBoundingBoxRight,be=o-k.actualBoundingBoxAscent,Ze=o+k.actualBoundingBoxDescent,St=C.strikethrough?(be+Ze)/2:Ze;c.strokeStyle=c.fillStyle,c.beginPath(),c.lineWidth=C.decorationWidth||2,c.moveTo(U,St),c.lineTo(oe,St),c.stroke()}}function ms(c,l){const{x:o,y:m,w:C,h:k,radius:U}=l;c.arc(o+U.topLeft,m+U.topLeft,U.topLeft,-Ie,K,!0),c.lineTo(o,m+k-U.bottomLeft),c.arc(o+U.bottomLeft,m+k-U.bottomLeft,U.bottomLeft,K,Ie,!0),c.lineTo(o+C-U.bottomRight,m+k),c.arc(o+C-U.bottomRight,m+k-U.bottomRight,U.bottomRight,Ie,0,!0),c.lineTo(o+C,m+U.topRight),c.arc(o+C-U.topRight,m+U.topRight,U.topRight,0,-Ie,!0),c.lineTo(o+U.topLeft,m)}const Ar=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),lo=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function wo(c,l){const o=(""+c).match(Ar);if(!o||"normal"===o[1])return 1.2*l;switch(c=+o[2],o[3]){case"px":return c;case"%":c/=100}return l*c}const Nr=c=>+c||0;function Xs(c,l){const o={},m=L(l),C=m?Object.keys(l):l,k=L(c)?m?U=>G(c[U],c[l[U]]):U=>c[U]:()=>c;for(const U of C)o[U]=Nr(k(U));return o}function Mo(c){return Xs(c,{top:"y",right:"x",bottom:"y",left:"x"})}function no(c){return Xs(c,["topLeft","topRight","bottomLeft","bottomRight"])}function Fs(c){const l=Mo(c);return l.width=l.left+l.right,l.height=l.top+l.bottom,l}function Dr(c,l){let o=G((c=c||{}).size,(l=l||ar.font).size);"string"==typeof o&&(o=parseInt(o,10));let m=G(c.style,l.style);m&&!(""+m).match(lo)&&(console.warn('Invalid font style specified: "'+m+'"'),m="");const C={family:G(c.family,l.family),lineHeight:wo(G(c.lineHeight,l.lineHeight),o),size:o,style:m,weight:G(c.weight,l.weight),string:""};return C.string=function Wr(c){return!c||j(c.size)||j(c.family)?null:(c.style?c.style+" ":"")+(c.weight?c.weight+" ":"")+c.size+"px "+c.family}(C),C}function mo(c,l,o,m){let k,U,oe,C=!0;for(k=0,U=c.length;k<U;++k)if(oe=c[k],void 0!==oe&&(void 0!==l&&"function"==typeof oe&&(oe=oe(l),C=!1),void 0!==o&&D(oe)&&(oe=oe[o%oe.length],C=!1),void 0!==oe))return m&&!C&&(m.cacheable=!1),oe}function bs(c,l){return Object.assign(Object.create(c),l)}function ws(c,l=[""],o=c,m,C=(()=>c[0])){A(m)||(m=ts("_fallback",c));const k={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:c,_rootScopes:o,_fallback:m,_getTarget:C,override:U=>ws([U,...c],l,o,m)};return new Proxy(k,{deleteProperty:(U,oe)=>(delete U[oe],delete U._keys,delete c[0][oe],!0),get:(U,oe)=>Mn(U,oe,()=>function pr(c,l,o,m){let C;for(const k of l)if(C=ts(Zt(k,c),o),A(C))return yn(c,C)?Xi(o,m,c,C):C}(oe,l,c,U)),getOwnPropertyDescriptor:(U,oe)=>Reflect.getOwnPropertyDescriptor(U._scopes[0],oe),getPrototypeOf:()=>Reflect.getPrototypeOf(c[0]),has:(U,oe)=>jr(U).includes(oe),ownKeys:U=>jr(U),set(U,oe,be){const Ze=U._storage||(U._storage=C());return U[oe]=Ze[oe]=be,delete U._keys,!0}})}function vt(c,l,o,m){const C={_cacheable:!1,_proxy:c,_context:l,_subProxy:o,_stack:new Set,_descriptors:pt(c,m),setContext:k=>vt(c,k,o,m),override:k=>vt(c.override(k),l,o,m)};return new Proxy(C,{deleteProperty:(k,U)=>(delete k[U],delete c[U],!0),get:(k,U,oe)=>Mn(k,U,()=>function jn(c,l,o){const{_proxy:m,_context:C,_subProxy:k,_descriptors:U}=c;let oe=m[l];return R(oe)&&U.isScriptable(l)&&(oe=function ti(c,l,o,m){const{_proxy:C,_context:k,_subProxy:U,_stack:oe}=o;if(oe.has(c))throw new Error("Recursion detected: "+Array.from(oe).join("->")+"->"+c);return oe.add(c),l=l(k,U||m),oe.delete(c),yn(c,l)&&(l=Xi(C._scopes,C,c,l)),l}(l,oe,c,o)),D(oe)&&oe.length&&(oe=function pi(c,l,o,m){const{_proxy:C,_context:k,_subProxy:U,_descriptors:oe}=o;if(A(k.index)&&m(c))l=l[k.index%l.length];else if(L(l[0])){const be=l,Ze=C._scopes.filter(St=>St!==be);l=[];for(const St of be){const qt=Xi(Ze,C,c,St);l.push(vt(qt,k,U&&U[c],oe))}}return l}(l,oe,c,U.isIndexable)),yn(l,oe)&&(oe=vt(oe,C,k&&k[l],U)),oe}(k,U,oe)),getOwnPropertyDescriptor:(k,U)=>k._descriptors.allKeys?Reflect.has(c,U)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(c,U),getPrototypeOf:()=>Reflect.getPrototypeOf(c),has:(k,U)=>Reflect.has(c,U),ownKeys:()=>Reflect.ownKeys(c),set:(k,U,oe)=>(c[U]=oe,delete k[U],!0)})}function pt(c,l={scriptable:!0,indexable:!0}){const{_scriptable:o=l.scriptable,_indexable:m=l.indexable,_allKeys:C=l.allKeys}=c;return{allKeys:C,scriptable:o,indexable:m,isScriptable:R(o)?o:()=>o,isIndexable:R(m)?m:()=>m}}const Zt=(c,l)=>c?c+M(l):l,yn=(c,l)=>L(l)&&"adapters"!==c&&(null===Object.getPrototypeOf(l)||l.constructor===Object);function Mn(c,l,o){if(Object.prototype.hasOwnProperty.call(c,l))return c[l];const m=o();return c[l]=m,m}function hi(c,l,o){return R(c)?c(l,o):c}const Di=(c,l)=>!0===c?l:"string"==typeof c?V(l,c):void 0;function Pi(c,l,o,m,C){for(const k of l){const U=Di(o,k);if(U){c.add(U);const oe=hi(U._fallback,o,C);if(A(oe)&&oe!==o&&oe!==m)return oe}else if(!1===U&&A(m)&&o!==m)return null}return!1}function Xi(c,l,o,m){const C=l._rootScopes,k=hi(l._fallback,o,m),U=[...c,...C],oe=new Set;oe.add(m);let be=tr(oe,U,o,k||o,m);return!(null===be||A(k)&&k!==o&&(be=tr(oe,U,k,be,m),null===be))&&ws(Array.from(oe),[""],C,k,()=>function Qr(c,l,o){const m=c._getTarget();l in m||(m[l]={});const C=m[l];return D(C)&&L(o)?o:C}(l,o,m))}function tr(c,l,o,m,C){for(;o;)o=Pi(c,l,o,m,C);return o}function ts(c,l){for(const o of l){if(!o)continue;const m=o[c];if(A(m))return m}}function jr(c){let l=c._keys;return l||(l=c._keys=function ps(c){const l=new Set;for(const o of c)for(const m of Object.keys(o).filter(C=>!C.startsWith("_")))l.add(m);return Array.from(l)}(c._scopes)),l}function yr(c,l,o,m){const{iScale:C}=c,{key:k="r"}=this._parsing,U=new Array(m);let oe,be,Ze,St;for(oe=0,be=m;oe<be;++oe)Ze=oe+o,St=l[Ze],U[oe]={r:C.parse(V(St,k),Ze)};return U}const Rr=Number.EPSILON||1e-14,Us=(c,l)=>l<c.length&&!c[l].skip&&c[l],Ss=c=>"x"===c?"y":"x";function gs(c,l,o,m){const C=c.skip?l:c,k=l,U=o.skip?l:o,oe=jt(k,C),be=jt(U,k);let Ze=oe/(oe+be),St=be/(oe+be);Ze=isNaN(Ze)?0:Ze,St=isNaN(St)?0:St;const qt=m*Ze,bn=m*St;return{previous:{x:k.x-qt*(U.x-C.x),y:k.y-qt*(U.y-C.y)},next:{x:k.x+bn*(U.x-C.x),y:k.y+bn*(U.y-C.y)}}}function Is(c,l,o){return Math.max(Math.min(c,o),l)}function mt(c,l,o,m,C){let k,U,oe,be;if(l.spanGaps&&(c=c.filter(Ze=>!Ze.skip)),"monotone"===l.cubicInterpolationMode)!function To(c,l="x"){const o=Ss(l),m=c.length,C=Array(m).fill(0),k=Array(m);let U,oe,be,Ze=Us(c,0);for(U=0;U<m;++U)if(oe=be,be=Ze,Ze=Us(c,U+1),be){if(Ze){const St=Ze[l]-be[l];C[U]=0!==St?(Ze[o]-be[o])/St:0}k[U]=oe?Ze?ae(C[U-1])!==ae(C[U])?0:(C[U-1]+C[U])/2:C[U-1]:C[U]}(function Ms(c,l,o){const m=c.length;let C,k,U,oe,be,Ze=Us(c,0);for(let St=0;St<m-1;++St)if(be=Ze,Ze=Us(c,St+1),be&&Ze){if(ut(l[St],0,Rr)){o[St]=o[St+1]=0;continue}C=o[St]/l[St],k=o[St+1]/l[St],oe=Math.pow(C,2)+Math.pow(k,2),!(oe<=9)&&(U=3/Math.sqrt(oe),o[St]=C*U*l[St],o[St+1]=k*U*l[St])}})(c,C,k),function io(c,l,o="x"){const m=Ss(o),C=c.length;let k,U,oe,be=Us(c,0);for(let Ze=0;Ze<C;++Ze){if(U=oe,oe=be,be=Us(c,Ze+1),!oe)continue;const St=oe[o],qt=oe[m];U&&(k=(St-U[o])/3,oe[`cp1${o}`]=St-k,oe[`cp1${m}`]=qt-k*l[Ze]),be&&(k=(be[o]-St)/3,oe[`cp2${o}`]=St+k,oe[`cp2${m}`]=qt+k*l[Ze])}}(c,k,l)}(c,C);else{let Ze=m?c[c.length-1]:c[0];for(k=0,U=c.length;k<U;++k)oe=c[k],be=gs(Ze,oe,c[Math.min(k+1,U-(m?0:1))%U],l.tension),oe.cp1x=be.previous.x,oe.cp1y=be.previous.y,oe.cp2x=be.next.x,oe.cp2y=be.next.y,Ze=oe}l.capBezierPoints&&function yt(c,l){let o,m,C,k,U,oe=Ro(c[0],l);for(o=0,m=c.length;o<m;++o)U=k,k=oe,oe=o<m-1&&Ro(c[o+1],l),k&&(C=c[o],U&&(C.cp1x=Is(C.cp1x,l.left,l.right),C.cp1y=Is(C.cp1y,l.top,l.bottom)),oe&&(C.cp2x=Is(C.cp2x,l.left,l.right),C.cp2y=Is(C.cp2y,l.top,l.bottom)))}(c,o)}function et(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Kt(c){let l=c.parentNode;return l&&"[object ShadowRoot]"===l.toString()&&(l=l.host),l}function ni(c,l,o){let m;return"string"==typeof c?(m=parseInt(c,10),-1!==c.indexOf("%")&&(m=m/100*l.parentNode[o])):m=c,m}const Fi=c=>window.getComputedStyle(c,null),Eo=["top","right","bottom","left"];function Ls(c,l,o){const m={};o=o?"-"+o:"";for(let C=0;C<4;C++){const k=Eo[C];m[k]=parseFloat(c[l+"-"+k+o])||0}return m.width=m.left+m.right,m.height=m.top+m.bottom,m}function _i(c,l){if("native"in c)return c;const{canvas:o,currentDevicePixelRatio:m}=l,C=Fi(o),k="border-box"===C.boxSizing,U=Ls(C,"padding"),oe=Ls(C,"border","width"),{x:be,y:Ze,box:St}=function ji(c,l){const o=c.touches,m=o&&o.length?o[0]:c,{offsetX:C,offsetY:k}=m;let oe,be,U=!1;if(((c,l,o)=>(c>0||l>0)&&(!o||!o.shadowRoot))(C,k,c.target))oe=C,be=k;else{const Ze=l.getBoundingClientRect();oe=m.clientX-Ze.left,be=m.clientY-Ze.top,U=!0}return{x:oe,y:be,box:U}}(c,o),qt=U.left+(St&&oe.left),bn=U.top+(St&&oe.top);let{width:Cn,height:An}=l;return k&&(Cn-=U.width+oe.width,An-=U.height+oe.height),{x:Math.round((be-qt)/Cn*o.width/m),y:Math.round((Ze-bn)/An*o.height/m)}}const ns=c=>Math.round(10*c)/10;function is(c,l,o){const m=l||1,C=Math.floor(c.height*m),k=Math.floor(c.width*m);c.height=C/m,c.width=k/m;const U=c.canvas;return U.style&&(o||!U.style.height&&!U.style.width)&&(U.style.height=`${c.height}px`,U.style.width=`${c.width}px`),(c.currentDevicePixelRatio!==m||U.height!==C||U.width!==k)&&(c.currentDevicePixelRatio=m,U.height=C,U.width=k,c.ctx.setTransform(m,0,0,m,0,0),!0)}const js=function(){let c=!1;try{const l={get passive(){return c=!0,!1}};window.addEventListener("test",null,l),window.removeEventListener("test",null,l)}catch(l){}return c}();function _o(c,l){const o=function Yi(c,l){return Fi(c).getPropertyValue(l)}(c,l),m=o&&o.match(/^(\d+)(\.\d+)?px$/);return m?+m[1]:void 0}function Yo(c,l,o,m){return{x:c.x+o*(l.x-c.x),y:c.y+o*(l.y-c.y)}}function oo(c,l,o,m){return{x:c.x+o*(l.x-c.x),y:"middle"===m?o<.5?c.y:l.y:"after"===m?o<1?c.y:l.y:o>0?l.y:c.y}}function Ia(c,l,o,m){const C={x:c.cp2x,y:c.cp2y},k={x:l.cp1x,y:l.cp1y},U=Yo(c,C,o),oe=Yo(C,k,o),be=Yo(k,l,o),Ze=Yo(U,oe,o),St=Yo(oe,be,o);return Yo(Ze,St,o)}const Co=new Map;function us(c,l,o){return function qo(c,l){l=l||{};const o=c+JSON.stringify(l);let m=Co.get(o);return m||(m=new Intl.NumberFormat(c,l),Co.set(o,m)),m}(l,o).format(c)}function Bt(c,l,o){return c?function(c,l){return{x:o=>c+c+l-o,setWidth(o){l=o},textAlign:o=>"center"===o?o:"right"===o?"left":"right",xPlus:(o,m)=>o-m,leftForLtr:(o,m)=>o-m}}(l,o):{x:c=>c,setWidth(c){},textAlign:c=>c,xPlus:(c,l)=>c+l,leftForLtr:(c,l)=>c}}function ye(c,l){let o,m;("ltr"===l||"rtl"===l)&&(o=c.canvas.style,m=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",l,"important"),c.prevTextDirection=m)}function Te(c,l){void 0!==l&&(delete c.prevTextDirection,c.canvas.style.setProperty("direction",l[0],l[1]))}function gt(c){return"angle"===c?{between:vn,compare:cn,normalize:hn}:{between:Xe,compare:(l,o)=>l-o,normalize:l=>l}}function $t({start:c,end:l,count:o,loop:m,style:C}
vendor: 1,738 bytes, line 1
1){return{start:c%o,end:l%o,loop:m&&(l-c+1)%o==0,style:C}}function kn(c,l,o){if(!o)return[c];const{property:m,start:C,end:k}=o,U=l.length,{compare:oe,between:be,normalize:Ze}=gt(m),{start:St,end:qt,loop:bn,style:Cn}=function mn(c,l,o){const{property:m,start:C,end:k}=o,{between:U,normalize:oe}=gt(m),be=l.length;let bn,Cn,{start:Ze,end:St,loop:qt}=c;if(qt){for(Ze+=be,St+=be,bn=0,Cn=be;bn<Cn&&U(oe(l[Ze%be][m]),C,k);++bn)Ze--,St--;Ze%=be,St%=be}return St<Ze&&(St+=be),{start:Ze,end:St,loop:qt,style:c.style}}(c,l,o),An=[];let oi,Ci,Vi,Wn=!1,ei=null;for(let Tr=St,Or=St;Tr<=qt;++Tr)Ci=l[Tr%U],!Ci.skip&&(oi=Ze(Ci[m]),oi!==Vi&&(Wn=be(oi,C,k),null===ei&&(Wn||be(C,Vi,oi)&&0!==oe(C,Vi))&&(ei=0===oe(oi,C)?Tr:Or),null!==ei&&(!Wn||0===oe(k,oi)||be(k,Vi,oi))&&(An.push($t({start:ei,end:Tr,loop:bn,count:U,style:Cn})),ei=null),Or=Tr,Vi=oi));return null!==ei&&An.push($t({start:ei,end:qt,loop:bn,count:U,style:Cn})),An}function In(c,l){const o=[],m=c.segments;for(let C=0;C<m.length;C++){const k=kn(m[C],c.points,l);k.length&&o.push(...k)}return o}function wr(c){return{backgroundColor:c.backgroundColor,borderCapStyle:c.borderCapStyle,borderDash:c.borderDash,borderDashOffset:c.borderDashOffset,borderJoinStyle:c.borderJoinStyle,borderWidth:c.borderWidth,borderColor:c.borderColor}}function Li(c,l){return l&&JSON.stringify(c)!==JSON.stringify(l)}var ui=new class Mr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(l,o,m,C){const U=o.duration;o.listeners[C].forEach(oe=>oe({chart:l,initial:o.initial,numSteps:U,currentStep:Math.min(m-o.start,U)}))}_refresh(){this._request||(this._running=!0,this._request=Pt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}
vendor: 8,271 bytes, line 1
1_update(l=Date.now()){let o=0;this._charts.forEach((m,C)=>{if(!m.running||!m.items.length)return;const k=m.items;let be,U=k.length-1,oe=!1;for(;U>=0;--U)be=k[U],be._active?(be._total>m.duration&&(m.duration=be._total),be.tick(l),oe=!0):(k[U]=k[k.length-1],k.pop());oe&&(C.draw(),this._notify(C,m,l,"progress")),k.length||(m.running=!1,this._notify(C,m,l,"complete"),m.initial=!1),o+=k.length}),this._lastDate=l,0===o&&(this._running=!1)}_getAnims(l){const o=this._charts;let m=o.get(l);return m||(m={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(l,m)),m}listen(l,o,m){this._getAnims(l).listeners[o].push(m)}add(l,o){!o||!o.length||this._getAnims(l).items.push(...o)}has(l){return this._getAnims(l).items.length>0}start(l){const o=this._charts.get(l);!o||(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((m,C)=>Math.max(m,C._duration),0),this._refresh())}running(l){if(!this._running)return!1;const o=this._charts.get(l);return!(!o||!o.running||!o.items.length)}stop(l){const o=this._charts.get(l);if(!o||!o.items.length)return;const m=o.items;let C=m.length-1;for(;C>=0;--C)m[C].cancel();o.items=[],this._notify(l,o,Date.now(),"complete")}remove(l){return this._charts.delete(l)}};const Sr="transparent",$r={boolean:(c,l,o)=>o>.5?l:c,color(c,l,o){const m=Qs(c||Sr),C=m.valid&&Qs(l||Sr);return C&&C.valid?C.mix(m,o).hexString():l},number:(c,l,o)=>c+(l-c)*o};class Es{constructor(l,o,m,C){const k=o[m];C=mo([l.to,C,k,l.from]);const U=mo([l.from,k,C]);this._active=!0,this._fn=l.fn||$r[l.type||typeof U],this._easing=We[l.easing]||We.linear,this._start=Math.floor(Date.now()+(l.delay||0)),this._duration=this._total=Math.floor(l.duration),this._loop=!!l.loop,this._target=o,this._prop=m,this._from=U,this._to=C,this._promises=void 0}active(){return this._active}update(l,o,m){if(this._active){this._notify(!1);const C=this._target[this._prop],k=m-this._start,U=this._duration-k;this._start=m,this._duration=Math.floor(Math.max(U,l.duration)),this._total+=k,this._loop=!!l.loop,this._to=mo([l.to,o,C,l.from]),this._from=mo([l.from,C,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(l){const o=l-this._start,m=this._duration,C=this._prop,k=this._from,U=this._loop,oe=this._to;let be;if(this._active=k!==oe&&(U||o<m),!this._active)return this._target[C]=oe,void this._notify(!0);o<0?this._target[C]=k:(be=o/m%2,be=U&&be>1?2-be:be,be=this._easing(Math.min(1,Math.max(0,be))),this._target[C]=this._fn(k,oe,be))}wait(){const l=this._promises||(this._promises=[]);return new Promise((o,m)=>{l.push({res:o,rej:m})})}_notify(l){const o=l?"res":"rej",m=this._promises||[];for(let C=0;C<m.length;C++)m[C][o]()}}ar.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const As=Object.keys(ar.animation);ar.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:c=>"onProgress"!==c&&"onComplete"!==c&&"fn"!==c}),ar.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ar.describe("animations",{_fallback:"animation"}),ar.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:c=>0|c}}}});class br{constructor(l,o){this._chart=l,this._properties=new Map,this.configure(o)}configure(l){if(!L(l))return;const o=this._properties;Object.getOwnPropertyNames(l).forEach(m=>{const C=l[m];if(!L(C))return;const k={};for(const U of As)k[U]=C[U];(D(C.properties)&&C.properties||[m]).forEach(U=>{(U===m||!o.has(U))&&o.set(U,k)})})}_animateOptions(l,o){const m=o.options,C=function H(c,l){if(!l)return;let o=c.options;if(o)return o.$shared&&(c.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o;c.options=l}(l,m);if(!C)return[];const k=this._createAnimations(C,m);return m.$shared&&function rs(c,l){const o=[],m=Object.keys(l);for(let C=0;C<m.length;C++){const k=c[m[C]];k&&k.active()&&o.push(k.wait())}return Promise.all(o)}(l.options.$animations,m).then(()=>{l.options=m},()=>{}),k}_createAnimations(l,o){const m=this._properties,C=[],k=l.$animations||(l.$animations={}),U=Object.keys(o),oe=Date.now();let be;for(be=U.length-1;be>=0;--be){const Ze=U[be];if("$"===Ze.charAt(0))continue;if("options"===Ze){C.push(...this._animateOptions(l,o));continue}const St=o[Ze];let qt=k[Ze];const bn=m.get(Ze);if(qt){if(bn&&qt.active()){qt.update(bn,St,oe);continue}qt.cancel()}bn&&bn.duration?(k[Ze]=qt=new Es(bn,l,Ze,St),C.push(qt)):l[Ze]=St}return C}update(l,o){if(0===this._properties.size)return void Object.assign(l,o);const m=this._createAnimations(l,o);return m.length?(ui.add(this._chart,m),!0):void 0}}function nt(c,l){const o=c&&c.options||{},m=o.reverse,C=void 0===o.min?l:0,k=void 0===o.max?l:0;return{start:m?k:C,end:m?C:k}}function Fn(c,l){const o=[],m=c._getSortedDatasetMetas(l);let C,k;for(C=0,k=m.length;C<k;++C)o.push(m[C].index);return o}function qn(c,l,o,m={}){const C=c.keys,k="single"===m.mode;let U,oe,be,Ze;if(null!==l){for(U=0,oe=C.length;U<oe;++U){if(be=+C[U],be===o){if(m.all)continue;break}Ze=c.values[be],ce(Ze)&&(k||0===l||ae(l)===ae(Ze))&&(l+=Ze)}return l}}function yi(c,l){const o=c&&c.options.stacked;return o||void 0===o&&void 0!==l.stack}function Er(c,l,o){const m=c[l]||(c[l]={});return m[o]||(m[o]={})}function $e(c,l,o,m){for(const C of l.getMatchingVisibleMetas(m).reverse()){const k=c[C.index];if(o&&k>0||!o&&k<0)return C.index}return null}function Dt(c,l){const{chart:o,_cachedMeta:m}=c,C=o._stacks||(o._stacks={}),{iScale:k,vScale:U,index:oe}=m,be=k.axis,Ze=U.axis,St=function xi(c,l,o){return`${c.id}.${l.id}.${o.stack||o.type}`}(k,U,m),qt=l.length;let bn;for(let Cn=0;Cn<qt;++Cn){const An=l[Cn],{[be]:Wn,[Ze]:ei}=An;bn=(An._stacks||(An._stacks={}))[Ze]=Er(C,St,Wn),bn[oe]=ei,bn._top=$e(bn,U,!0,m.type),bn._bottom=$e(bn,U,!1,m.type)}}function ct(c,l){const o=c.scales;return Object.keys(o).filter(m=>o[m].axis===l).shift()}function ii(c,l){const o=c.controller.index,m=c.vScale&&c.vScale.axis;if(m){l=l||c._parsed;for(const C of l){const k=C._stacks;if(!k||void 0===k[m]||void 0===k[m][o])return;delete k[m][o]}}}const bi=c=>"reset"===c||"none"===c,Ni=(c,l)=>l?c:Object.assign({},c);let Zi=(()=>{class c{constructor(o,m){this.chart=o,this._ctx=o.ctx,this.index=m,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const o=this._cachedMeta;this.configure(),this.linkScales(),o._stacked=yi(o.vScale,o),this.addElements()}updateIndex(o){this.index!==o&&ii(this._cachedMeta),this.index=o}linkScales(){const o=this.chart,m=this._cachedMeta,C=this.getDataset(),k=(bn,Cn,An,Wn)=>"x"===bn?Cn:"r"===bn?Wn:An,U=m.xAxisID=G(C.xAxisID,ct(o,"x")),oe=m.yAxisID=G(C.yAxisID,ct(o,"y")),be=m.rAxisID=G(C.rAxisID,ct(o,"r")),Ze=m.indexAxis,St=m.iAxisID=k(Ze,U,oe,be),qt=m.vAxisID=k(Ze,oe,U,be);m.xScale=this.getScaleForId(U),m.yScale=this.getScaleForId(oe),m.rScale=this.getScaleForId(be),m.iScale=this.getScaleForId(St),m.vScale=this.getScaleForId(qt)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(o){return this.chart.scales[o]}_getOtherScale(o){const m=this._cachedMeta;return o===m.iScale?m.vScale:m.iScale}reset(){this._update("reset")}_destroy(){const o=this._cachedMeta;this._data&&Et(this._data,this),o._stacked&&ii(o)}_dataCheck(){const o=this.getDataset(),m=o.data||(o.data=[]),C=this._data;if(L(m))this._data=function Hi(c){const l=Object.keys(c),o=new Array(l.length);let m,C,k;for(m=0,C=l.length;m<C;++m)k=l[m],o[m]={x:k,y:c[k]};return o}(m);else if(C!==m){if(C){Et(C,this);const k=this._cachedMeta;ii(k),k._parsed=[]}m&&Object.isExtensible(m)&&function It(c,l){c._chartjs?c._chartjs.listeners.push(l):(Object.defineProperty(c,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[l]}}
vendor: 6,743 bytes, line 1
1),un.forEach(o=>{const m="_onData"+M(o),C=c[o];Object.defineProperty(c,o,{configurable:!0,enumerable:!1,value(...k){const U=C.apply(this,k);return c._chartjs.listeners.forEach(oe=>{"function"==typeof oe[m]&&oe[m](...k)}),U}})}))}(m,this),this._syncList=[],this._data=m}}addElements(){const o=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(o.dataset=new this.datasetElementType)}buildOrUpdateElements(o){const m=this._cachedMeta,C=this.getDataset();let k=!1;this._dataCheck();const U=m._stacked;m._stacked=yi(m.vScale,m),m.stack!==C.stack&&(k=!0,ii(m),m.stack=C.stack),this._resyncElements(o),(k||U!==m._stacked)&&Dt(this,m._parsed)}configure(){const o=this.chart.config,m=o.datasetScopeKeys(this._type),C=o.getOptionScopes(this.getDataset(),m,!0);this.options=o.createResolver(C,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(o,m){const{_cachedMeta:C,_data:k}=this,{iScale:U,_stacked:oe}=C,be=U.axis;let qt,bn,Cn,Ze=0===o&&m===k.length||C._sorted,St=o>0&&C._parsed[o-1];if(!1===this._parsing)C._parsed=k,C._sorted=!0,Cn=k;else{Cn=D(k[o])?this.parseArrayData(C,k,o,m):L(k[o])?this.parseObjectData(C,k,o,m):this.parsePrimitiveData(C,k,o,m);const An=()=>null===bn[be]||St&&bn[be]<St[be];for(qt=0;qt<m;++qt)C._parsed[qt+o]=bn=Cn[qt],Ze&&(An()&&(Ze=!1),St=bn);C._sorted=Ze}oe&&Dt(this,Cn)}parsePrimitiveData(o,m,C,k){const{iScale:U,vScale:oe}=o,be=U.axis,Ze=oe.axis,St=U.getLabels(),qt=U===oe,bn=new Array(k);let Cn,An,Wn;for(Cn=0,An=k;Cn<An;++Cn)Wn=Cn+C,bn[Cn]={[be]:qt||U.parse(St[Wn],Wn),[Ze]:oe.parse(m[Wn],Wn)};return bn}parseArrayData(o,m,C,k){const{xScale:U,yScale:oe}=o,be=new Array(k);let Ze,St,qt,bn;for(Ze=0,St=k;Ze<St;++Ze)qt=Ze+C,bn=m[qt],be[Ze]={x:U.parse(bn[0],qt),y:oe.parse(bn[1],qt)};return be}parseObjectData(o,m,C,k){const{xScale:U,yScale:oe}=o,{xAxisKey:be="x",yAxisKey:Ze="y"}=this._parsing,St=new Array(k);let qt,bn,Cn,An;for(qt=0,bn=k;qt<bn;++qt)Cn=qt+C,An=m[Cn],St[qt]={x:U.parse(V(An,be),Cn),y:oe.parse(V(An,Ze),Cn)};return St}getParsed(o){return this._cachedMeta._parsed[o]}getDataElement(o){return this._cachedMeta.data[o]}applyStack(o,m,C){const U=this._cachedMeta,oe=m[o.axis];return qn({keys:Fn(this.chart,!0),values:m._stacks[o.axis]},oe,U.index,{mode:C})}updateRangeFromParsed(o,m,C,k){const U=C[m.axis];let oe=null===U?NaN:U;const be=k&&C._stacks[m.axis];k&&be&&(k.values=be,oe=qn(k,U,this._cachedMeta.index)),o.min=Math.min(o.min,oe),o.max=Math.max(o.max,oe)}getMinMax(o,m){const C=this._cachedMeta,k=C._parsed,U=C._sorted&&o===C.iScale,oe=k.length,be=this._getOtherScale(o),Ze=((c,l,o)=>c&&!l.hidden&&l._stacked&&{keys:Fn(this.chart,!0),values:null})(m,C),St={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:qt,max:bn}=function nr(c){const{min:l,max:o,minDefined:m,maxDefined:C}=c.getUserBounds();return{min:m?l:Number.NEGATIVE_INFINITY,max:C?o:Number.POSITIVE_INFINITY}}(be);let Cn,An;function Wn(){An=k[Cn];const ei=An[be.axis];return!ce(An[o.axis])||qt>ei||bn<ei}for(Cn=0;Cn<oe&&(Wn()||(this.updateRangeFromParsed(St,o,An,Ze),!U));++Cn);if(U)for(Cn=oe-1;Cn>=0;--Cn)if(!Wn()){this.updateRangeFromParsed(St,o,An,Ze);break}return St}getAllParsedValues(o){const m=this._cachedMeta._parsed,C=[];let k,U,oe;for(k=0,U=m.length;k<U;++k)oe=m[k][o.axis],ce(oe)&&C.push(oe);return C}getMaxOverflow(){return!1}getLabelAndValue(o){const m=this._cachedMeta,C=m.iScale,k=m.vScale,U=this.getParsed(o);return{label:C?""+C.getLabelForValue(U[C.axis]):"",value:k?""+k.getLabelForValue(U[k.axis]):""}}_update(o){const m=this._cachedMeta;this.update(o||"default"),m._clip=function fn(c){let l,o,m,C;return L(c)?(l=c.top,o=c.right,m=c.bottom,C=c.left):l=o=m=C=c,{top:l,right:o,bottom:m,left:C,disabled:!1===c}}(G(this.options.clip,function At(c,l,o){if(!1===o)return!1;const m=nt(c,o),C=nt(l,o);return{top:C.end,right:m.end,bottom:C.start,left:m.start}}(m.xScale,m.yScale,this.getMaxOverflow())))}update(o){}draw(){const o=this._ctx,C=this._cachedMeta,k=C.data||[],U=this.chart.chartArea,oe=[],be=this._drawStart||0,Ze=this._drawCount||k.length-be,St=this.options.drawActiveElementsOnTop;let qt;for(C.dataset&&C.dataset.draw(o,U,be,Ze),qt=be;qt<be+Ze;++qt){const bn=k[qt];bn.hidden||(bn.active&&St?oe.push(bn):bn.draw(o,U))}for(qt=0;qt<oe.length;++qt)oe[qt].draw(o,U)}getStyle(o,m){const C=m?"active":"default";return void 0===o&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(C):this.resolveDataElementOptions(o||0,C)}getContext(o,m,C){const k=this.getDataset();let U;if(o>=0&&o<this._cachedMeta.data.length){const oe=this._cachedMeta.data[o];U=oe.$context||(oe.$context=function wn(c,l,o){return bs(c,{active:!1,dataIndex:l,parsed:void 0,raw:void 0,element:o,index:l,mode:"default",type:"data"})}(this.getContext(),o,oe)),U.parsed=this.getParsed(o),U.raw=k.data[o],U.index=U.dataIndex=o}else U=this.$context||(this.$context=function zt(c,l){return bs(c,{active:!1,dataset:void 0,datasetIndex:l,index:l,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),U.dataset=k,U.index=U.datasetIndex=this.index;return U.active=!!m,U.mode=C,U}resolveDatasetElementOptions(o){return this._resolveElementOptions(this.datasetElementType.id,o)}resolveDataElementOptions(o,m){return this._resolveElementOptions(this.dataElementType.id,m,o)}_resolveElementOptions(o,m="default",C){const k="active"===m,U=this._cachedDataOpts,oe=o+"-"+m,be=U[oe],Ze=this.enableOptionSharing&&A(C);if(be)return Ni(be,Ze);const St=this.chart.config,qt=St.datasetElementScopeKeys(this._type,o),bn=k?[`${o}Hover`,"hover",o,""]:[o,""],Cn=St.getOptionScopes(this.getDataset(),qt),An=Object.keys(ar.elements[o]),ei=St.resolveNamedOptions(Cn,An,()=>this.getContext(C,k),bn);return ei.$shared&&(ei.$shared=Ze,U[oe]=Object.freeze(Ni(ei,Ze))),ei}_resolveAnimations(o,m,C){const k=this.chart,U=this._cachedDataOpts,oe=`animation-${m}`,be=U[oe];if(be)return be;let Ze;if(!1!==k.options.animation){const qt=this.chart.config,bn=qt.datasetAnimationScopeKeys(this._type,m),Cn=qt.getOptionScopes(this.getDataset(),bn);Ze=qt.createResolver(Cn,this.getContext(o,C,m))}const St=new br(k,Ze&&Ze.animations);return Ze&&Ze._cacheable&&(U[oe]=Object.freeze(St)),St}getSharedOptions(o){if(o.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},o))}includeOptions(o,m){return!m||bi(o)||this.chart._animationsDisabled}_getSharedOptions(o,m){const C=this.resolveDataElementOptions(o,m),k=this._sharedOptions,U=this.getSharedOptions(C),oe=this.includeOptions(m,U)||U!==k;return this.updateSharedOptions(U,m,C),{sharedOptions:U,includeOptions:oe}}updateElement(o,m,C,k){bi(k)?Object.assign(o,C):this._resolveAnimations(m,k).update(o,C)}updateSharedOptions(o,m,C){o&&!bi(m)&&this._resolveAnimations(void 0,m).update(o,C)}_setStyle(o,m,C,k){o.active=k;const U=this.getStyle(m,k);
vendor: 1,102 bytes, line 1
1this._resolveAnimations(m,C,k).update(o,{options:!k&&this.getSharedOptions(U)||U})}removeHoverStyle(o,m,C){this._setStyle(o,C,"active",!1)}setHoverStyle(o,m,C){this._setStyle(o,C,"active",!0)}_removeDatasetHoverStyle(){const o=this._cachedMeta.dataset;o&&this._setStyle(o,void 0,"active",!1)}_setDatasetHoverStyle(){const o=this._cachedMeta.dataset;o&&this._setStyle(o,void 0,"active",!0)}_resyncElements(o){const m=this._data,C=this._cachedMeta.data;for(const[be,Ze,St]of this._syncList)this[be](Ze,St);this._syncList=[];const k=C.length,U=m.length,oe=Math.min(U,k);oe&&this.parse(0,oe),U>k?this._insertElements(k,U-k,o):U<k&&this._removeElements(U,k-U)}_insertElements(o,m,C=!0){const k=this._cachedMeta,U=k.data,oe=o+m;let be;const Ze=St=>{for(St.length+=m,be=St.length-1;be>=oe;be--)St[be]=St[be-m]};for(Ze(U),be=o;be<oe;++be)U[be]=new this.dataElementType;this._parsing&&Ze(k._parsed),this.parse(o,m),C&&this.updateElements(U,o,m,"reset")}updateElements(o,m,C,k){}_removeElements(o,m){const C=this._cachedMeta;if(this._parsing){const k=C._parsed.splice(o,m);C._stacked&&ii(C,k)}C.data.splice(o,m)}
vendor: 10,327 bytes, line 1
1_sync(o){if(this._parsing)this._syncList.push(o);else{const[m,C,k]=o;this[m](C,k)}this.chart._dataChanges.push([this.index,...o])}_onDataPush(){const o=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-o,o])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(o,m){m&&this._sync(["_removeElements",o,m]);const C=arguments.length-2;C&&this._sync(["_insertElements",o,C])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return c.defaults={},c})();function Fr(c){const l=c.iScale,o=function Pr(c,l){if(!c._cache.$bar){const o=c.getMatchingVisibleMetas(l);let m=[];for(let C=0,k=o.length;C<k;C++)m=m.concat(o[C].controller.getAllParsedValues(c));c._cache.$bar=Rt(m.sort((C,k)=>C-k))}return c._cache.$bar}(l,c.type);let C,k,U,oe,m=l._length;const be=()=>{32767===U||-32768===U||(A(oe)&&(m=Math.min(m,Math.abs(U-oe)||m)),oe=U)};for(C=0,k=o.length;C<k;++C)U=l.getPixelForValue(o[C]),be();for(oe=void 0,C=0,k=l.ticks.length;C<k;++C)U=l.getPixelForTick(C),be();return m}function He(c,l,o,m){return D(c)?function st(c,l,o,m){const C=o.parse(c[0],m),k=o.parse(c[1],m),U=Math.min(C,k),oe=Math.max(C,k);let be=U,Ze=oe;Math.abs(U)>Math.abs(oe)&&(be=oe,Ze=U),l[o.axis]=Ze,l._custom={barStart:be,barEnd:Ze,start:C,end:k,min:U,max:oe}}(c,l,o,m):l[o.axis]=o.parse(c,m),l}function g(c,l,o,m){const C=c.iScale,k=c.vScale,U=C.getLabels(),oe=C===k,be=[];let Ze,St,qt,bn;for(Ze=o,St=o+m;Ze<St;++Ze)bn=l[Ze],qt={},qt[C.axis]=oe||C.parse(U[Ze],Ze),be.push(He(bn,qt,k,Ze));return be}function u(c){return c&&void 0!==c.barStart&&void 0!==c.barEnd}function ie(c,l,o,m){let C=l.borderSkipped;const k={};if(!C)return void(c.borderSkipped=k);if(!0===C)return void(c.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:U,end:oe,reverse:be,top:Ze,bottom:St}=function T(c){let l,o,m,C,k;return c.horizontal?(l=c.base>c.x,o="left",m="right"):(l=c.base<c.y,o="bottom",m="top"),l?(C="end",k="start"):(C="start",k="end"),{start:o,end:m,reverse:l,top:C,bottom:k}}(c);"middle"===C&&o&&(c.enableBorderRadius=!0,(o._top||0)===m?C=Ze:(o._bottom||0)===m?C=St:(k[we(St,U,oe,be)]=!0,C=Ze)),k[we(C,U,oe,be)]=!0,c.borderSkipped=k}function we(c,l,o,m){return m?(c=function ft(c,l,o){return c===l?o:c===o?l:c}(c,l,o),c=Ut(c,o,l)):c=Ut(c,l,o),c}function Ut(c,l,o){return"start"===c?l:"end"===c?o:c}function dn(c,{inflateAmount:l},o){c.inflateAmount="auto"===l?1===o?.33:0:l}Zi.prototype.datasetElementType=null,Zi.prototype.dataElementType=null;let tn=(()=>{class c extends Zi{parsePrimitiveData(o,m,C,k){return g(o,m,C,k)}parseArrayData(o,m,C,k){return g(o,m,C,k)}parseObjectData(o,m,C,k){const{iScale:U,vScale:oe}=o,{xAxisKey:be="x",yAxisKey:Ze="y"}=this._parsing,St="x"===U.axis?be:Ze,qt="x"===oe.axis?be:Ze,bn=[];let Cn,An,Wn,ei;for(Cn=C,An=C+k;Cn<An;++Cn)ei=m[Cn],Wn={},Wn[U.axis]=U.parse(V(ei,St),Cn),bn.push(He(V(ei,qt),Wn,oe,Cn));return bn}updateRangeFromParsed(o,m,C,k){super.updateRangeFromParsed(o,m,C,k);const U=C._custom;U&&m===this._cachedMeta.vScale&&(o.min=Math.min(o.min,U.min),o.max=Math.max(o.max,U.max))}getMaxOverflow(){return 0}getLabelAndValue(o){const m=this._cachedMeta,{iScale:C,vScale:k}=m,U=this.getParsed(o),oe=U._custom,be=u(oe)?"["+oe.start+", "+oe.end+"]":""+k.getLabelForValue(U[k.axis]);return{label:""+C.getLabelForValue(U[C.axis]),value:be}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(o){const m=this._cachedMeta;this.updateElements(m.data,0,m.data.length,o)}updateElements(o,m,C,k){const U="reset"===k,{index:oe,_cachedMeta:{vScale:be}}=this,Ze=be.getBasePixel(),St=be.isHorizontal(),qt=this._getRuler(),{sharedOptions:bn,includeOptions:Cn}=this._getSharedOptions(m,k);for(let An=m;An<m+C;An++){const Wn=this.getParsed(An),ei=U||j(Wn[be.axis])?{base:Ze,head:Ze}:this._calculateBarValuePixels(An),oi=this._calculateBarIndexPixels(An,qt),Ci=(Wn._stacks||{})[be.axis],Vi={horizontal:St,base:ei.base,enableBorderRadius:!Ci||u(Wn._custom)||oe===Ci._top||oe===Ci._bottom,x:St?ei.head:oi.center,y:St?oi.center:ei.head,height:St?oi.size:Math.abs(ei.size),width:St?Math.abs(ei.size):oi.size};Cn&&(Vi.options=bn||this.resolveDataElementOptions(An,o[An].active?"active":k));const Ri=Vi.options||o[An].options;ie(Vi,Ri,Ci,oe),dn(Vi,Ri,qt.ratio),this.updateElement(o[An],An,Vi,k)}}_getStacks(o,m){const{iScale:C}=this._cachedMeta,k=C.getMatchingVisibleMetas(this._type).filter(Ze=>Ze.controller.options.grouped),U=C.options.stacked,oe=[],be=Ze=>{const St=Ze.controller.getParsed(m),qt=St&&St[Ze.vScale.axis];if(j(qt)||isNaN(qt))return!0};for(const Ze of k)if((void 0===m||!be(Ze))&&((!1===U||-1===oe.indexOf(Ze.stack)||void 0===U&&void 0===Ze.stack)&&oe.push(Ze.stack),Ze.index===o))break;return oe.length||oe.push(void 0),oe}_getStackCount(o){return this._getStacks(void 0,o).length}_getStackIndex(o,m,C){const k=this._getStacks(o,C),U=void 0!==m?k.indexOf(m):-1;return-1===U?k.length-1:U}_getRuler(){const o=this.options,m=this._cachedMeta,C=m.iScale,k=[];let U,oe;for(U=0,oe=m.data.length;U<oe;++U)k.push(C.getPixelForValue(this.getParsed(U)[C.axis],U));const be=o.barThickness;return{min:be||Fr(m),pixels:k,start:C._startPixel,end:C._endPixel,stackCount:this._getStackCount(),scale:C,grouped:o.grouped,ratio:be?1:o.categoryPercentage*o.barPercentage}}_calculateBarValuePixels(o){const{_cachedMeta:{vScale:m,_stacked:C},options:{base:k,minBarLength:U}}=this,oe=k||0,be=this.getParsed(o),Ze=be._custom,St=u(Ze);let An,Wn,qt=be[m.axis],bn=0,Cn=C?this.applyStack(m,be,C):qt;Cn!==qt&&(bn=Cn-qt,Cn=qt),St&&(qt=Ze.barStart,Cn=Ze.barEnd-Ze.barStart,0!==qt&&ae(qt)!==ae(Ze.barEnd)&&(bn=0),bn+=qt);const ei=j(k)||St?bn:k;let oi=m.getPixelForValue(ei);if(An=this.chart.getDataVisibility(o)?m.getPixelForValue(bn+Cn):oi,Wn=An-oi,Math.abs(Wn)<U){Wn=function v(c,l,o){return 0!==c?ae(c):(l.isHorizontal()?1:-1)*(l.min>=o?1:-1)}(Wn,m,oe)*U,qt===oe&&(oi-=Wn/2);const Ci=m.getPixelForDecimal(0),Vi=m.getPixelForDecimal(1),Ri=Math.min(Ci,Vi),Mi=Math.max(Ci,Vi);oi=Math.max(Math.min(oi,Mi),Ri),An=oi+Wn}if(oi===m.getPixelForValue(oe)){const Ci=ae(Wn)*m.getLineWidthForValue(oe)/2;oi+=Ci,Wn-=Ci}return{size:Wn,base:oi,head:An,center:An+Wn/2}}_calculateBarIndexPixels(o,m){const C=m.scale,k=this.options,U=k.skipNull,oe=G(k.maxBarThickness,1/0);let be,Ze;if(m.grouped){const St=U?this._getStackCount(o):m.stackCount,qt="flex"===k.barThickness?function Cr(c,l,o,m){const C=l.pixels,k=C[c];let U=c>0?C[c-1]:null,oe=c<C.length-1?C[c+1]:null;const be=o.categoryPercentage;null===U&&(U=k-(null===oe?l.end-l.start:oe-k)),null===oe&&(oe=k+k-U);const Ze=k-(k-Math.min(U,oe))/2*be;return{chunk:Math.abs(oe-U)/2*be/m,ratio:o.barPercentage,start:Ze}}(o,m,k,St):function Ir(c,l,o,m){const C=o.barThickness;let k,U;return j(C)?(k=l.min*o.categoryPercentage,U=o.barPercentage):(k=C*m,U=1),{chunk:k/m,ratio:U,start:l.pixels[c]-k/2}}(o,m,k,St),bn=this._getStackIndex(this.index,this._cachedMeta.stack,U?o:void 0);be=qt.start+qt.chunk*bn+qt.chunk/2,Ze=Math.min(oe,qt.chunk*qt.ratio)}else be=C.getPixelForValue(this.getParsed(o)[C.axis],o),Ze=Math.min(oe,m.min*m.ratio);return{base:be-Ze/2,head:be+Ze/2,center:be,size:Ze}}draw(){const o=this._cachedMeta,m=o.vScale,C=o.data,k=C.length;let U=0;for(;U<k;++U)null!==this.getParsed(U)[m.axis]&&C[U].draw(this._ctx)}}return c.id="bar",c.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},c.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}},c})(),Bn=(()=>{class c extends Zi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(o,m,C,k){const U=super.parsePrimitiveData(o,m,C,k);for(let oe=0;oe<U.length;oe++)U[oe]._custom=this.resolveDataElementOptions(oe+C).radius;return U}parseArrayData(o,m,C,k){const U=super.parseArrayData(o,m,C,k);for(let oe=0;oe<U.length;oe++)U[oe]._custom=G(m[C+oe][2],this.resolveDataElementOptions(oe+C).radius);return U}parseObjectData(o,m,C,k){const U=super.parseObjectData(o,m,C,k);for(let oe=0;oe<U.length;oe++){const be=m[C+oe];U[oe]._custom=G(be&&be.r&&+be.r,this.resolveDataElementOptions(oe+C).radius)}return U}getMaxOverflow(){const o=this._cachedMeta.data;let m=0;for(let C=o.length-1;C>=0;--C)m=Math.max(m,o[C].size(this.resolveDataElementOptions(C))/2);return m>0&&m}getLabelAndValue(o){const m=this._cachedMeta,{xScale:C,yScale:k}=m,U=this.getParsed(o),oe=C.getLabelForValue(U.x),be=k.getLabelForValue(U.y),Ze=U._custom;return{label:m.label,value:"("+oe+", "+be+(Ze?", "+Ze:"")+")"}}update(o){const m=this._cachedMeta.data;this.updateElements(m,0,m.length,o)}updateElements(o,m,C,k){const U="reset"===k,{iScale:oe,vScale:be}=this._cachedMeta,{sharedOptions:Ze,includeOptions:St}=this._getSharedOptions(m,k),qt=oe.axis,bn=be.axis;for(let Cn=m;Cn<m+C;Cn++){const An=o[Cn],Wn=!U&&this.getParsed(Cn),ei={},oi=ei[qt]=U?oe.getPixelForDecimal(.5):oe.getPixelForValue(Wn[qt]),Ci=ei[bn]=U?be.getBasePixel():be.getPixelForValue(Wn[bn]);ei.skip=isNaN(oi)||isNaN(Ci),St&&(ei.options=Ze||this.resolveDataElementOptions(Cn,An.active?"active":k),U&&(ei.options.radius=0)),this.updateElement(An,Cn,ei,k)}}resolveDataElementOptions(o,m){const C=this.getParsed(o);let k=super.resolveDataElementOptions(o,m);k.$shared&&(k=Object.assign({},k,{$shared:!1}));const U=k.radius;return"active"!==m&&(k.radius=0),k.radius+=G(C&&C._custom,U),k}}return c.id="bubble",c.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},c.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}},c})(),ri=(()=>{class c extends Zi{constructor(o,m){super(o,m),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(o,m){const C=this.getDataset().data,k=this._cachedMeta;if(!1===this._parsing)k._parsed=C;else{let oe,be,U=Ze=>+C[Ze];if(L(C[o])){const{key:Ze="value"}=this._parsing;U=St=>+V(C[St],Ze)}for(oe=o,be=o+m;oe<be;++oe)k._parsed[oe]=U(oe)}}_getRotation(){return Ot(this.options.rotation-90)}_getCircumference(){return Ot(this.options.circumference)}_getRotationExtents(){let o=ge,m=-ge;
vendor: 4,545 bytes, line 1
1for(let C=0;C<this.chart.data.datasets.length;++C)if(this.chart.isDatasetVisible(C)){const k=this.chart.getDatasetMeta(C).controller,U=k._getRotation(),oe=k._getCircumference();o=Math.min(o,U),m=Math.max(m,U+oe)}return{rotation:o,circumference:m-o}}update(o){const m=this.chart,{chartArea:C}=m,k=this._cachedMeta,U=k.data,oe=this.getMaxBorderWidth()+this.getMaxOffset(U)+this.options.spacing,be=Math.max((Math.min(C.width,C.height)-oe)/2,0),Ze=Math.min(((c,l)=>"string"==typeof c&&c.endsWith("%")?parseFloat(c)/100:c/l)(this.options.cutout,be),1),St=this._getRingWeight(this.index),{circumference:qt,rotation:bn}=this._getRotationExtents(),{ratioX:Cn,ratioY:An,offsetX:Wn,offsetY:ei}=function Kn(c,l,o){let m=1,C=1,k=0,U=0;if(l<ge){const oe=c,be=oe+l,Ze=Math.cos(oe),St=Math.sin(oe),qt=Math.cos(be),bn=Math.sin(be),Cn=(Vi,Ri,Mi)=>vn(Vi,oe,be,!0)?1:Math.max(Ri,Ri*o,Mi,Mi*o),An=(Vi,Ri,Mi)=>vn(Vi,oe,be,!0)?-1:Math.min(Ri,Ri*o,Mi,Mi*o),Wn=Cn(0,Ze,qt),ei=Cn(Ie,St,bn),oi=An(K,Ze,qt),Ci=An(K+Ie,St,bn);m=(Wn-oi)/2,C=(ei-Ci)/2,k=-(Wn+oi)/2,U=-(ei+Ci)/2}return{ratioX:m,ratioY:C,offsetX:k,offsetY:U}}(bn,qt,Ze),Vi=Math.max(Math.min((C.width-oe)/Cn,(C.height-oe)/An)/2,0),Ri=te(this.options.radius,Vi),er=(Ri-Math.max(Ri*Ze,0))/this._getVisibleDatasetWeightTotal();this.offsetX=Wn*Ri,this.offsetY=ei*Ri,k.total=this.calculateTotal(),this.outerRadius=Ri-er*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-er*St,0),this.updateElements(U,0,U.length,o)}_circumference(o,m){const C=this.options,k=this._cachedMeta,U=this._getCircumference();return m&&C.animation.animateRotate||!this.chart.getDataVisibility(o)||null===k._parsed[o]||k.data[o].hidden?0:this.calculateCircumference(k._parsed[o]*U/ge)}updateElements(o,m,C,k){const U="reset"===k,oe=this.chart,be=oe.chartArea,qt=(be.left+be.right)/2,bn=(be.top+be.bottom)/2,Cn=U&&oe.options.animation.animateScale,An=Cn?0:this.innerRadius,Wn=Cn?0:this.outerRadius,{sharedOptions:ei,includeOptions:oi}=this._getSharedOptions(m,k);let Vi,Ci=this._getRotation();for(Vi=0;Vi<m;++Vi)Ci+=this._circumference(Vi,U);for(Vi=m;Vi<m+C;++Vi){const Ri=this._circumference(Vi,U),Mi=o[Vi],er={x:qt+this.offsetX,y:bn+this.offsetY,startAngle:Ci,endAngle:Ci+Ri,circumference:Ri,outerRadius:Wn,innerRadius:An};oi&&(er.options=ei||this.resolveDataElementOptions(Vi,Mi.active?"active":k)),Ci+=Ri,this.updateElement(Mi,Vi,er,k)}}calculateTotal(){const o=this._cachedMeta,m=o.data;let k,C=0;for(k=0;k<m.length;k++){const U=o._parsed[k];null!==U&&!isNaN(U)&&this.chart.getDataVisibility(k)&&!m[k].hidden&&(C+=Math.abs(U))}return C}calculateCircumference(o){const m=this._cachedMeta.total;return m>0&&!isNaN(o)?ge*(Math.abs(o)/m):0}getLabelAndValue(o){const C=this.chart,k=C.data.labels||[],U=us(this._cachedMeta._parsed[o],C.options.locale);return{label:k[o]||"",value:U}}getMaxBorderWidth(o){let m=0;const C=this.chart;let k,U,oe,be,Ze;if(!o)for(k=0,U=C.data.datasets.length;k<U;++k)if(C.isDatasetVisible(k)){oe=C.getDatasetMeta(k),o=oe.data,be=oe.controller;break}if(!o)return 0;for(k=0,U=o.length;k<U;++k)Ze=be.resolveDataElementOptions(k),"inner"!==Ze.borderAlign&&(m=Math.max(m,Ze.borderWidth||0,Ze.hoverBorderWidth||0));return m}getMaxOffset(o){let m=0;for(let C=0,k=o.length;C<k;++C){const U=this.resolveDataElementOptions(C);m=Math.max(m,U.offset||0,U.hoverOffset||0)}return m}_getRingWeightOffset(o){let m=0;for(let C=0;C<o;++C)this.chart.isDatasetVisible(C)&&(m+=this._getRingWeight(C));return m}_getRingWeight(o){return Math.max(G(this.chart.data.datasets[o].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return c.id="doughnut",c.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},c.descriptors={_scriptable:l=>"spacing"!==l,_indexable:l=>"spacing"!==l},c.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(l){const o=l.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:m}}=l.legend.options;return o.labels.map((C,k)=>{const oe=l.getDatasetMeta(0).controller.getStyle(k);return{text:C,fillStyle:oe.backgroundColor,strokeStyle:oe.borderColor,lineWidth:oe.borderWidth,pointStyle:m,hidden:!l.getDataVisibility(k),index:k}})}return[]}},onClick(l,o,m){m.chart.toggleDataVisibility(o.index),m.chart.update(
vendor: 4,700 bytes, line 1
1)}},tooltip:{callbacks:{title:()=>"",label(l){let o=l.label;const m=": "+l.formattedValue;return D(o)?(o=o.slice(),o[0]+=m):o+=m,o}}}}},c})(),wi=(()=>{class c extends Zi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(o){const m=this._cachedMeta,{dataset:C,data:k=[],_dataset:U}=m,oe=this.chart._animationsDisabled;let{start:be,count:Ze}=Vn(m,k,oe);this._drawStart=be,this._drawCount=Ze,Yt(m)&&(be=0,Ze=k.length),C._chart=this.chart,C._datasetIndex=this.index,C._decimated=!!U._decimated,C.points=k;const St=this.resolveDatasetElementOptions(o);this.options.showLine||(St.borderWidth=0),St.segment=this.options.segment,this.updateElement(C,void 0,{animated:!oe,options:St},o),this.updateElements(k,be,Ze,o)}updateElements(o,m,C,k){const U="reset"===k,{iScale:oe,vScale:be,_stacked:Ze,_dataset:St}=this._cachedMeta,{sharedOptions:qt,includeOptions:bn}=this._getSharedOptions(m,k),Cn=oe.axis,An=be.axis,{spanGaps:Wn,segment:ei}=this.options,oi=Be(Wn)?Wn:Number.POSITIVE_INFINITY,Ci=this.chart._animationsDisabled||U||"none"===k;let Vi=m>0&&this.getParsed(m-1);for(let Ri=m;Ri<m+C;++Ri){const Mi=o[Ri],er=this.getParsed(Ri),sr=Ci?Mi:{},Tr=j(er[An]),Or=sr[Cn]=oe.getPixelForValue(er[Cn],Ri),yo=sr[An]=U||Tr?be.getBasePixel():be.getPixelForValue(Ze?this.applyStack(be,er,Ze):er[An],Ri);sr.skip=isNaN(Or)||isNaN(yo)||Tr,sr.stop=Ri>0&&Math.abs(er[Cn]-Vi[Cn])>oi,ei&&(sr.parsed=er,sr.raw=St.data[Ri]),bn&&(sr.options=qt||this.resolveDataElementOptions(Ri,Mi.active?"active":k)),Ci||this.updateElement(Mi,Ri,sr,k),Vi=er}}getMaxOverflow(){const o=this._cachedMeta,m=o.dataset,C=m.options&&m.options.borderWidth||0,k=o.data||[];if(!k.length)return C;const U=k[0].size(this.resolveDataElementOptions(0)),oe=k[k.length-1].size(this.resolveDataElementOptions(k.length-1));return Math.max(C,U,oe)/2}draw(){const o=this._cachedMeta;o.dataset.updateControlPoints(this.chart.chartArea,o.iScale.axis),super.draw()}}return c.id="line",c.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},c.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},c})(),Gi=(()=>{class c extends Zi{constructor(o,m){super(o,m),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(o){const C=this.chart,k=C.data.labels||[],U=us(this._cachedMeta._parsed[o].r,C.options.locale);return{label:k[o]||"",value:U}}parseObjectData(o,m,C,k){return yr.bind(this)(o,m,C,k)}update(o){const m=this._cachedMeta.data;this._updateRadius(),this.updateElements(m,0,m.length,o)}getMinMax(){const m={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((C,k)=>{const U=this.getParsed(k).r;!isNaN(U)&&this.chart.getDataVisibility(k)&&(U<m.min&&(m.min=U),U>m.max&&(m.max=U))}),m}_updateRadius(){const o=this.chart,m=o.chartArea,C=o.options,k=Math.min(m.right-m.left,m.bottom-m.top),U=Math.max(k/2,0),be=(U-Math.max(C.cutoutPercentage?U/100*C.cutoutPercentage:1,0))/o.getVisibleDatasetCount();this.outerRadius=U-be*this.index,this.innerRadius=this.outerRadius-be}updateElements(o,m,C,k){const U="reset"===k,oe=this.chart,Ze=oe.options.animation,St=this._cachedMeta.rScale,qt=St.xCenter,bn=St.yCenter,Cn=St.getIndexAngle(0)-.5*K;let Wn,An=Cn;const ei=360/this.countVisibleElements();for(Wn=0;Wn<m;++Wn)An+=this._computeAngle(Wn,k,ei);for(Wn=m;Wn<m+C;Wn++){const oi=o[Wn];let Ci=An,Vi=An+this._computeAngle(Wn,k,ei),Ri=oe.getDataVisibility(Wn)?St.getDistanceFromCenterForValue(this.getParsed(Wn).r):0;An=Vi,U&&(Ze.animateScale&&(Ri=0),Ze.animateRotate&&(Ci=Vi=Cn));const Mi={x:qt,y:bn,innerRadius:0,outerRadius:Ri,startAngle:Ci,endAngle:Vi,options:this.resolveDataElementOptions(Wn,oi.active?"active":k)};this.updateElement(oi,Wn,Mi,k)}}countVisibleElements(){let m=0;return this._cachedMeta.data.forEach((C,k)=>{!isNaN(this.getParsed(k).r)&&this.chart.getDataVisibility(k)&&m++}),m}_computeAngle(o,m,C){return this.chart.getDataVisibility(o)?Ot(this.resolveDataElementOptions(o,m).angle||C):0}}return c.id="polarArea",c.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},c.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(l){const o=l.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:m}}=l.legend.options;return o.labels.map((C,k)=>{const oe=l.getDatasetMeta(0).controller.getStyle(k);return{text:C,fillStyle:oe.backgroundColor,strokeStyle:oe.borderColor,lineWidth:oe.borderWidth,pointStyle:m,hidden:!l.getDataVisibility(k),index:k}})}return[]}},onClick(l,o,m){m.chart.toggleDataVisibility(o.index),m.chart.update(
vendor: 18,832 bytes, line 1
1)}},tooltip:{callbacks:{title:()=>"",label:l=>l.chart.data.labels[l.dataIndex]+": "+l.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},c})(),qi=(()=>{class c extends ri{}return c.id="pie",c.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},c})(),Zr=(()=>{class c extends Zi{getLabelAndValue(o){const m=this._cachedMeta.vScale,C=this.getParsed(o);return{label:m.getLabels()[o],value:""+m.getLabelForValue(C[m.axis])}}parseObjectData(o,m,C,k){return yr.bind(this)(o,m,C,k)}update(o){const m=this._cachedMeta,C=m.dataset,k=m.data||[],U=m.iScale.getLabels();if(C.points=k,"resize"!==o){const oe=this.resolveDatasetElementOptions(o);this.options.showLine||(oe.borderWidth=0),this.updateElement(C,void 0,{_loop:!0,_fullLoop:U.length===k.length,options:oe},o)}this.updateElements(k,0,k.length,o)}updateElements(o,m,C,k){const U=this._cachedMeta.rScale,oe="reset"===k;for(let be=m;be<m+C;be++){const Ze=o[be],St=this.resolveDataElementOptions(be,Ze.active?"active":k),qt=U.getPointPositionForValue(be,this.getParsed(be).r),bn=oe?U.xCenter:qt.x,Cn=oe?U.yCenter:qt.y,An={x:bn,y:Cn,angle:qt.angle,skip:isNaN(bn)||isNaN(Cn),options:St};this.updateElement(Ze,be,An,k)}}}return c.id="radar",c.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},c.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}},c})();class Lr{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(l){const{x:o,y:m}=this.getProps(["x","y"],l);return{x:o,y:m}}hasValue(){return Be(this.x)&&Be(this.y)}getProps(l,o){const m=this.$animations;if(!o||!m)return this;const C={};return l.forEach(k=>{C[k]=m[k]&&m[k].active()?m[k]._to:this[k]}),C}}Lr.defaults={},Lr.defaultRoutes=void 0;const _s={values:c=>D(c)?c:""+c,numeric(c,l,o){if(0===c)return"0";const m=this.chart.options.locale;let C,k=c;if(o.length>1){const Ze=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(Ze<1e-4||Ze>1e15)&&(C="scientific"),k=function Fo(c,l){let o=l.length>3?l[2].value-l[1].value:l[1].value-l[0].value;return Math.abs(o)>=1&&c!==Math.floor(c)&&(o=c-Math.floor(c)),o}(c,o)}const U=ke(Math.abs(k)),oe=Math.max(Math.min(-1*Math.floor(U),20),0),be={notation:C,minimumFractionDigits:oe,maximumFractionDigits:oe};return Object.assign(be,this.options.ticks.format),us(c,m,be)},logarithmic(c,l,o){if(0===c)return"0";const m=c/Math.pow(10,Math.floor(ke(c)));return 1===m||2===m||5===m?_s.numeric.call(this,c,l,o):""}};var sa={formatters:_s};function Al(c,l,o,m,C){const k=G(m,0),U=Math.min(G(C,c.length),c.length);let be,Ze,St,oe=0;for(o=Math.ceil(o),C&&(be=C-m,o=be/Math.floor(be/o)),St=k;St<0;)oe++,St=Math.round(k+oe*o);for(Ze=Math.max(k,0);Ze<U;Ze++)Ze===St&&(l.push(c[Ze]),oe++,St=Math.round(k+oe*o))}ar.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(c,l)=>l.lineWidth,tickColor:(c,l)=>l.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:sa.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ar.route("scale.ticks","color","","color"),ar.route("scale.grid","color","","borderColor"),ar.route("scale.grid","borderColor","","borderColor"),ar.route("scale.title","color","","color"),ar.describe("scale",{_fallback:!1,_scriptable:c=>!c.startsWith("before")&&!c.startsWith("after")&&"callback"!==c&&"parser"!==c,_indexable:c=>"borderDash"!==c&&"tickBorderDash"!==c}),ar.describe("scales",{_fallback:"scale"}),ar.describe("scale.ticks",{_scriptable:c=>"backdropPadding"!==c&&"callback"!==c,_indexable:c=>"backdropPadding"!==c});const dl=(c,l,o)=>"top"===l||"left"===l?c[l]+o:c[l]-o;function _a(c,l){const o=[],m=c.length/l,C=c.length;let k=0;for(;k<C;k+=m)o.push(c[Math.floor(k)]);return o}function Tc(c,l,o){const m=c.ticks.length,C=Math.min(l,m-1),k=c._startPixel,U=c._endPixel;let Ze,be=c.getPixelForTick(C);if(!(o&&(Ze=1===m?Math.max(be-k,U-be):0===l?(c.getPixelForTick(1)-be)/2:(be-c.getPixelForTick(C-1))/2,be+=C<l?Ze:-Ze,be<k-1e-6||be>U+1e-6)))return be}function Ka(c){return c.drawTicks?c.tickLength:0}function Rh(c,l){if(!c.display)return 0;const o=Dr(c.font,l),m=Fs(c.padding);return(D(c.text)?c.text.length:1)*o.lineHeight+m.height}function Xc(c,l,o){let m=Zn(c);return(o&&"right"!==l||!o&&"right"===l)&&(m=(c=>"left"===c?"right":"right"===c?"left":c)(m)),m}class ro extends Lr{constructor(l){super(),this.id=l.id,this.type=l.type,this.options=void 0,this.ctx=l.ctx,this.chart=l.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(l){this.options=l.setContext(this.getContext()),this.axis=l.axis,this._userMin=this.parse(l.min),this._userMax=this.parse(l.max),this._suggestedMin=this.parse(l.suggestedMin),this._suggestedMax=this.parse(l.suggestedMax)}parse(l,o){return l}getUserBounds(){let{_userMin:l,_userMax:o,_suggestedMin:m,_suggestedMax:C}=this;return l=W(l,Number.POSITIVE_INFINITY),o=W(o,Number.NEGATIVE_INFINITY),m=W(m,Number.POSITIVE_INFINITY),C=W(C,Number.NEGATIVE_INFINITY),{min:W(l,m),max:W(o,C),minDefined:ce(l),maxDefined:ce(o)}}getMinMax(l){let U,{min:o,max:m,minDefined:C,maxDefined:k}=this.getUserBounds();if(C&&k)return{min:o,max:m};const oe=this.getMatchingVisibleMetas();for(let be=0,Ze=oe.length;be<Ze;++be)U=oe[be].controller.getMinMax(this,l),C||(o=Math.min(o,U.min)),k||(m=Math.max(m,U.max));return o=k&&o>m?m:o,m=C&&o>m?o:m,{min:W(o,W(m,o)),max:W(m,W(o,m))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const l=this.chart.data;return this.options.labels||(this.isHorizontal()?l.xLabels:l.yLabels)||l.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){le(this.options.beforeUpdate,[this])}update(l,o,m){const{beginAtZero:C,grace:k,ticks:U}=this.options,oe=U.sampleSize;this.beforeUpdate(),this.maxWidth=l,this.maxHeight=o,this._margins=m=Object.assign({left:0,right:0,top:0,bottom:0},m),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+m.left+m.right:this.height+m.top+m.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function Ws(c,l,o){const{min:m,max:C}=c,k=te(l,(C-m)/2),U=(oe,be)=>o&&0===oe?0:oe+be;return{min:U(m,-Math.abs(k)),max:U(C,k)}}(this,k,C),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const be=oe<this.ticks.length;this._convertTicksToLabels(be?_a(this.ticks,oe):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),U.display&&(U.autoSkip||"auto"===U.source)&&(this.ticks=function Qi(c,l){const o=c.options.ticks,m=o.maxTicksLimit||function xo(c){const l=c.options.offset,o=c._tickSize();return Math.floor(Math.min(c._length/o+(l?0:1),c._maxLength/o))}(c),C=o.major.enabled?function Mu(c){const l=[];let o,m;for(o=0,m=c.length;o<m;o++)c[o].major&&l.push(o);return l}(l):[],k=C.length,U=C[0],oe=C[k-1],be=[];if(k>m)return function No(c,l,o,m){let U,C=0,k=o[0];for(m=Math.ceil(m),U=0;U<c.length;U++)U===k&&(l.push(c[U]),C++,k=o[C*m])}(l,be,C,k/m),be;const Ze=function na(c,l,o){const m=function cc(c){const l=c.length;let o,m;if(l<2)return!1;for(m=c[0],o=1;o<l;++o)if(c[o]-c[o-1]!==m)return!1;return m}(c),C=l.length/o;if(!m)return Math.max(C,1);const k=function Ve(c){const l=[],o=Math.sqrt(c);let m;for(m=1;m<o;m++)c%m==0&&(l.push(m),l.push(c/m));return o===(0|o)&&l.push(o),l.sort((C,k)=>C-k).pop(),l}(m);for(let U=0,oe=k.length-1;U<oe;U++){const be=k[U];if(be>C)return be}return Math.max(C,1)}(C,l,m);if(k>0){let St,qt;const bn=k>1?Math.round((oe-U)/(k-1)):null;for(Al(l,be,Ze,j(bn)?0:U-bn,U),St=0,qt=k-1;St<qt;St++)Al(l,be,Ze,C[St],C[St+1]);return Al(l,be,Ze,oe,j(bn)?l.length:oe+bn),be}return Al(l,be,Ze),be}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),be&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let o,m,l=this.options.reverse;this.isHorizontal()?(o=this.left,m=this.right):(o=this.top,m=this.bottom,l=!l),this._startPixel=o,this._endPixel=m,this._reversePixels=l,this._length=m-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){le(this.options.afterUpdate,[this])}beforeSetDimensions(){le(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){le(this.options.afterSetDimensions,[this])}_callHooks(l){this.chart.notifyPlugins(l,this.getContext()),le(this.options[l],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){le(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(l){const o=this.options.ticks;let m,C,k;for(m=0,C=l.length;m<C;m++)k=l[m],k.label=le(o.callback,[k.value,m,l],this)}afterTickToLabelConversion(){le(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){le(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const l=this.options,o=l.ticks,m=this.ticks.length,C=o.minRotation||0,k=o.maxRotation;let oe,be,Ze,U=C;if(!this._isVisible()||!o.display||C>=k||m<=1||!this.isHorizontal())return void(this.labelRotation=C);const St=this._getLabelSizes(),qt=St.widest.width,bn=St.highest.height,Cn=ln(this.chart.width-qt,0,this.maxWidth);oe=l.offset?this.maxWidth/m:Cn/(m-1),qt+6>oe&&(oe=Cn/(m-(l.offset?.5:1)),be=this.maxHeight-Ka(l.grid)-o.padding-Rh(l.title,this.chart.options.font),Ze=Math.sqrt(qt*qt+bn*bn),U=Ft(Math.min(Math.asin(ln((St.highest.height+6)/oe,-1,1)),Math.asin(ln(be/Ze,-1,1))-Math.asin(ln(bn/Ze,-1,1)))),U=Math.max(C,Math.min(k,U))),this.labelRotation=U}afterCalculateLabelRotation(){le(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){le(this.options.beforeFit,[this])}fit(){const l={width:0,height:0},{chart:o,options:{ticks:m,title:C,grid:k}}=this,U=this._isVisible(),oe=this.isHorizontal();if(U){const be=Rh(C,o.options.font);if(oe?(l.width=this.maxWidth,l.height=Ka(k)+be):(l.height=this.maxHeight,l.width=Ka(k)+be),m.display&&this.ticks.length){const{first:Ze,last:St,widest:qt,highest:bn}=this._getLabelSizes(),Cn=2*m.padding,An=Ot(this.labelRotation),Wn=Math.cos(An),ei=Math.sin(An);oe?l.height=Math.min(this.maxHeight,l.height+(m.mirror?0:ei*qt.width+Wn*bn.height)+Cn):l.width=Math.min(this.maxWidth,l.width+(m.mirror?0:Wn*qt.width+ei*bn.height)+Cn),this._calculatePadding(Ze,St,ei,Wn)}}this._handleMargins(),oe?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=l.height):(this.width=l.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(l,o,m,C){const{ticks:{align:k,padding:U},position:oe}=this.options,be=0!==this.labelRotation,Ze="top"!==oe&&"x"===this.axis;if(this.isHorizontal()){const St=this.getPixelForTick(0)-this.left,qt=this.right-this.getPixelForTick(this.ticks.length-1);let bn=0,Cn=0;be?Ze?(bn=C*l.width,Cn=m*o.height):(bn=m*l.height,Cn=C*o.width):"start"===k?Cn=o.width:"end"===k?bn=l.width:"inner"!==k&&(bn=l.width/2,Cn=o.width/2),this.paddingLeft=Math.max((bn-St+U)*this.width/(this.width-St),0),this.paddingRight=Math.max((Cn-qt+U)*this.width/(this.width-qt),0)}else{let St=o.height/2,qt=l.height/2;"start"===k?(St=0,qt=l.height):"end"===k&&(St=o.height,qt=0),this.paddingTop=St+U,this.paddingBottom=qt+U}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){le(this.options.afterFit,[this])}isHorizontal(){const{axis:l,position:o}=this.options;return"top"===o||"bottom"===o||"x"===l}isFullSize(){return this.options.fullSize}_convertTicksToLabels(l){let o,m;for(this.beforeTickToLabelConversion(),this.generateTickLabels(l),o=0,m=l.length;o<m;o++)j(l[o].label)&&(l.splice(o,1),m--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let l=this._labelSizes;if(!l){const o=this.options.ticks.sampleSize;let m=this.ticks;o<m.length&&(m=_a(m,o)),this._labelSizes=l=this._computeLabelSizes(m,m.length)}return l}_computeLabelSizes(l,o){const{ctx:m,_longestTextCache:C}=this,k=[],U=[];let Ze,St,qt,bn,Cn,An,Wn,ei,oi,Ci,Vi,oe=0,be=0;for(Ze=0;Ze<o;++Ze){if(bn=l[Ze].label,Cn=this._resolveTickFontOptions(Ze),m.font=An=Cn.string,Wn=C[An]=C[An]||{data:{},gc:[]},ei=Cn.lineHeight,oi=Ci=0,j(bn)||D(bn)){if(D(bn))for(St=0,qt=bn.length;St<qt;++St)Vi=bn[St],!j(Vi)&&!D(Vi)&&(oi=ys(m,Wn.data,Wn.gc,oi,Vi),Ci+=ei)}else oi=ys(m,Wn.data,Wn.gc,oi,bn),Ci=ei;k.push(oi),U.push(Ci),oe=Math.max(oi,oe),be=Math.max(Ci,be)}!function xc(c,l){J(c,o=>{const m=o.gc,C=m.length/2;let k;if(C>l){for(k=0;k<C;++k)delete o.data[m[k]];m.splice(0,C)}})}(C,o);const Ri=k.indexOf(oe),Mi=U.indexOf(be),er=sr=>({width:k[sr]||0,height:U[sr]||0});return{first:er(0),last:er(o-1),widest:er(Ri),highest:er(Mi),widths:k,heights:U}}getLabelForValue(l){return l}getPixelForValue(l,o){return NaN}getValueForPixel(l){}getPixelForTick(l){const o=this.ticks;return l<0||l>o.length-1?null:this.getPixelForValue(o[l].value)}getPixelForDecimal(l){this._reversePixels&&(l=1-l);const o=this._startPixel+l*this._length;return function Jt(c){return ln(c,-32768,32767)}(this._alignToPixels?ls(this.chart,o,0):o)}getDecimalForPixel(l){const o=(l-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:l,max:o}=this;return l<0&&o<0?o:l>0&&o>0?l:0}getContext(l){const o=this.ticks||[];if(l>=0&&l<o.length){const m=o[l];return m.$context||(m.$context=function Ml(c,l,o){return bs(c,{tick:o,index:l,type:"tick"})}(this.getContext(),l,m))}return this.$context||(this.$context=function fl(c,l){return bs(c,{scale:l,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const l=this.options.ticks,o=Ot(this.labelRotation),m=Math.abs(Math.cos(o)),C=Math.abs(Math.sin(o)),k=this._getLabelSizes(),U=l.autoSkipPadding||0,oe=k?k.widest.width+U:0,be=k?k.highest.height+U:0;return this.isHorizontal()?be*m>oe*C?oe/m:be/C:be*C<oe*m?be/m:oe/C}_isVisible(){const l=this.options.display;return"auto"!==l?!!l:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(l){const o=this.axis,m=this.chart,C=this.options,{grid:k,position:U}=C,oe=k.offset,be=this.isHorizontal(),St=this.ticks.length+(oe?1:0),qt=Ka(k),bn=[],Cn=k.setContext(this.getContext()),An=Cn.drawBorder?Cn.borderWidth:0,Wn=An/2,ei=function(ks){return ls(m,ks,An)};let oi,Ci,Vi,Ri,Mi,er,sr,Tr,Or,yo,bo,ao;if("top"===U)oi=ei(this.bottom),er=this.bottom-qt,Tr=oi-Wn,yo=ei(l.top)+Wn,ao=l.bottom;else if("bottom"===U)oi=ei(this.top),yo=l.top,ao=ei(l.bottom)-Wn,er=oi+Wn,Tr=this.top+qt;else if("left"===U)oi=ei(this.right),Mi=this.right-qt,sr=oi-Wn,Or=ei(l.left)+Wn,bo=l.right;else if("right"===U)oi=ei(this.left),Or=l.left,bo=ei(l.right)-Wn,Mi=oi+Wn,sr=this.left+qt;else if("x"===o){if("center"===U)oi=ei((l.top+l.bottom)/2+.5);else if(L(U)){const ks=Object.keys(U)[0];oi=ei(this.chart.scales[ks].getPixelForValue(U[ks]))}yo=l.top,ao=l.bottom,er=oi+Wn,Tr=er+qt}else if("y"===o){if("center"===U)oi=ei((l.left+l.right)/2);else if(L(U)){const ks=Object.keys(U)[0];oi=ei(this.chart.scales[ks].getPixelForValue(U[ks]))}Mi=oi-Wn,sr=Mi-qt,Or=l.left,bo=l.right}const Wa=G(C.ticks.maxTicksLimit,St),Mc=Math.max(1,Math.ceil(St/Wa));for(Ci=0;Ci<St;Ci+=Mc){const ks=k.setContext(this.getContext(Ci)),nl=ks.lineWidth,Ya=ks.color,Yf=ks.borderDash||[],wg=ks.borderDashOffset,Jp=ks.tickWidth,Lg=ks.tickColor,eg=ks.tickBorderDash||[],Eg=ks.tickBorderDashOffset;Vi=Tc(this,Ci,oe),void 0!==Vi&&(Ri=ls(m,Vi,nl),be?Mi=sr=Or=bo=Ri:er=Tr=yo=ao=Ri,bn.push({tx1:Mi,ty1:er,tx2:sr,ty2:Tr,x1:Or,y1:yo,x2:bo,y2:ao,width:nl,color:Ya,borderDash:Yf,borderDashOffset:wg,tickWidth:Jp,tickColor:Lg,tickBorderDash:eg,tickBorderDashOffset:Eg}))}return this._ticksLength=St,this._borderValue=oi,bn}_computeLabelItems(l){const o=this.axis,m=this.options,{position:C,ticks:k}=m,U=this.isHorizontal(),oe=this.ticks,{align:be,crossAlign:Ze,padding:St,mirror:qt}=k,bn=Ka(m.grid),Cn=bn+St,An=qt?-St:Cn,Wn=-Ot(this.labelRotation),ei=[];let oi,Ci,Vi,Ri,Mi,er,sr,Tr,Or,yo,bo,ao,Wa="middle";if("top"===C)er=this.bottom-An,sr=this._getXAxisLabelAlignment();else if("bottom"===C)er=this.top+An,sr=this._getXAxisLabelAlignment();else if("left"===C){const ks=this._getYAxisLabelAlignment(bn);sr=ks.textAlign,Mi=ks.x}else if("right"===C){const ks=this._getYAxisLabelAlignment(bn);sr=ks.textAlign,Mi=ks.x}else if("x"===o){if("center"===C)er=(l.top+l.bottom)/2+Cn;else if(L(C)){const ks=Object.keys(C)[0];er=this.chart.scales[ks].getPixelForValue(C[ks])+Cn}sr=this._getXAxisLabelAlignment()}else if("y"===o){if("center"===C)Mi=(l.left+l.right)/2-Cn;else if(L(C)){const ks=Object.keys(C)[0];Mi=this.chart.scales[ks].getPixelForValue(C[ks])}sr=this._getYAxisLabelAlignment(bn).textAlign}"y"===o&&("start"===be?Wa="top":"end"===be&&(Wa="bottom"));const Mc=this._getLabelSizes();for(oi=0,Ci=oe.length;oi<Ci;++oi){Vi=oe[oi],Ri=Vi.label;
vendor: 6,698 bytes, line 1
1const ks=k.setContext(this.getContext(oi));Tr=this.getPixelForTick(oi)+k.labelOffset,Or=this._resolveTickFontOptions(oi),yo=Or.lineHeight,bo=D(Ri)?Ri.length:1;const nl=bo/2,Ya=ks.color,Yf=ks.textStrokeColor,wg=ks.textStrokeWidth;let Lg,Jp=sr;if(U?(Mi=Tr,"inner"===sr&&(Jp=oi===Ci-1?this.options.reverse?"left":"right":0===oi?this.options.reverse?"right":"left":"center"),ao="top"===C?"near"===Ze||0!==Wn?-bo*yo+yo/2:"center"===Ze?-Mc.highest.height/2-nl*yo+yo:yo/2-Mc.highest.height:"near"===Ze||0!==Wn?yo/2:"center"===Ze?Mc.highest.height/2-nl*yo:Mc.highest.height-bo*yo,qt&&(ao*=-1)):(er=Tr,ao=(1-bo)*yo/2),ks.showLabelBackdrop){const eg=Fs(ks.backdropPadding),Eg=Mc.heights[oi],Gg=Mc.widths[oi];let zg=er+ao-eg.top,Wg=Mi-eg.left;switch(Wa){case"middle":zg-=Eg/2;break;case"bottom":zg-=Eg}switch(sr){case"center":Wg-=Gg/2;break;case"right":Wg-=Gg}Lg={left:Wg,top:zg,width:Gg+eg.width,height:Eg+eg.height,color:ks.backdropColor}}ei.push({rotation:Wn,label:Ri,font:Or,color:Ya,strokeColor:Yf,strokeWidth:wg,textOffset:ao,textAlign:Jp,textBaseline:Wa,translation:[Mi,er],backdrop:Lg})}return ei}_getXAxisLabelAlignment(){const{position:l,ticks:o}=this.options;if(-Ot(this.labelRotation))return"top"===l?"left":"right";let C="center";return"start"===o.align?C="left":"end"===o.align?C="right":"inner"===o.align&&(C="inner"),C}_getYAxisLabelAlignment(l){const{position:o,ticks:{crossAlign:m,mirror:C,padding:k}}=this.options,oe=l+k,be=this._getLabelSizes().widest.width;let Ze,St;return"left"===o?C?(St=this.right+k,"near"===m?Ze="left":"center"===m?(Ze="center",St+=be/2):(Ze="right",St+=be)):(St=this.right-oe,"near"===m?Ze="right":"center"===m?(Ze="center",St-=be/2):(Ze="left",St=this.left)):"right"===o?C?(St=this.left+k,"near"===m?Ze="right":"center"===m?(Ze="center",St-=be/2):(Ze="left",St-=be)):(St=this.left+oe,"near"===m?Ze="left":"center"===m?(Ze="center",St+=be/2):(Ze="right",St=this.right)):Ze="right",{textAlign:Ze,x:St}}_computeLabelArea(){if(this.options.ticks.mirror)return;const l=this.chart,o=this.options.position;return"left"===o||"right"===o?{top:0,left:this.left,bottom:l.height,right:this.right}:"top"===o||"bottom"===o?{top:this.top,left:0,bottom:this.bottom,right:l.width}:void 0}drawBackground(){const{ctx:l,options:{backgroundColor:o},left:m,top:C,width:k,height:U}=this;o&&(l.save(),l.fillStyle=o,l.fillRect(m,C,k,U),l.restore())}getLineWidthForValue(l){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const C=this.ticks.findIndex(k=>k.value===l);return C>=0?o.setContext(this.getContext(C)).lineWidth:0}drawGrid(l){const o=this.options.grid,m=this.ctx,C=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(l));let k,U;const oe=(be,Ze,St)=>{!St.width||!St.color||(m.save(),m.lineWidth=St.width,m.strokeStyle=St.color,m.setLineDash(St.borderDash||[]),m.lineDashOffset=St.borderDashOffset,m.beginPath(),m.moveTo(be.x,be.y),m.lineTo(Ze.x,Ze.y),m.stroke(),m.restore())};if(o.display)for(k=0,U=C.length;k<U;++k){const be=C[k];o.drawOnChartArea&&oe({x:be.x1,y:be.y1},{x:be.x2,y:be.y2},be),o.drawTicks&&oe({x:be.tx1,y:be.ty1},{x:be.tx2,y:be.ty2},{color:be.tickColor,width:be.tickWidth,borderDash:be.tickBorderDash,borderDashOffset:be.tickBorderDashOffset})}}drawBorder(){const{chart:l,ctx:o,options:{grid:m}}=this,C=m.setContext(this.getContext()),k=m.drawBorder?C.borderWidth:0;if(!k)return;const U=m.setContext(this.getContext(0)).lineWidth,oe=this._borderValue;let be,Ze,St,qt;this.isHorizontal()?(be=ls(l,this.left,k)-k/2,Ze=ls(l,this.right,U)+U/2,St=qt=oe):(St=ls(l,this.top,k)-k/2,qt=ls(l,this.bottom,U)+U/2,be=Ze=oe),o.save(),o.lineWidth=C.borderWidth,o.strokeStyle=C.borderColor,o.beginPath(),o.moveTo(be,St),o.lineTo(Ze,qt),o.stroke(),o.restore()}drawLabels(l){if(!this.options.ticks.display)return;const m=this.ctx,C=this._computeLabelArea();C&&xs(m,C);const k=this._labelItems||(this._labelItems=this._computeLabelItems(l));let U,oe;for(U=0,oe=k.length;U<oe;++U){const be=k[U],Ze=be.font,St=be.label;be.backdrop&&(m.fillStyle=be.backdrop.color,m.fillRect(be.backdrop.left,be.backdrop.top,be.backdrop.width,be.backdrop.height)),Ps(m,St,0,be.textOffset,Ze,be)}C&&Ui(m)}drawTitle(){const{ctx:l,options:{position:o,title:m,reverse:C}}=this;if(!m.display)return;const k=Dr(m.font),U=Fs(m.padding),oe=m.align;let be=k.lineHeight/2;"bottom"===o||"center"===o||L(o)?(be+=U.bottom,D(m.text)&&(be+=k.lineHeight*(m.text.length-1))):be+=U.top;const{titleX:Ze,titleY:St,maxWidth:qt,rotation:bn}=function oh(c,l,o,m){const{top:C,left:k,bottom:U,right:oe,chart:be}=c,{chartArea:Ze,scales:St}=be;let bn,Cn,An,qt=0;const Wn=U-C,ei=oe-k;if(c.isHorizontal()){if(Cn=zn(m,k,oe),L(o)){const oi=Object.keys(o)[0];An=St[oi].getPixelForValue(o[oi])+Wn-l}else An="center"===o?(Ze.bottom+Ze.top)/2+Wn-l:dl(c,o,l);bn=oe-k}else{if(L(o)){const oi=Object.keys(o)[0];Cn=St[oi].getPixelForValue(o[oi])-ei+l}else Cn="center"===o?(Ze.left+Ze.right)/2-ei+l:dl(c,o,l);An=zn(m,U,C),qt="left"===o?-Ie:Ie}return{titleX:Cn,titleY:An,maxWidth:bn,rotation:qt}}(this,be,o,oe);Ps(l,m.text,0,0,k,{color:m.color,maxWidth:qt,rotation:bn,textAlign:Xc(oe,o,C),textBaseline:"middle",translation:[Ze,St]})}draw(l){!this._isVisible()||(this.drawBackground(),this.drawGrid(l),this.drawBorder(),this.drawTitle(),this.drawLabels(l))}_layers(){const l=this.options,o=l.ticks&&l.ticks.z||0,m=G(l.grid&&l.grid.z,-1);return this._isVisible()&&this.draw===ro.prototype.draw?[{z:m,draw:C=>{this.drawBackground(),this.drawGrid(C),this.drawTitle()}},{z:m+1,draw:()=>{this.drawBorder()}},{z:o,draw:C=>{this.drawLabels(C)}}]:[{z:o,draw:C=>{this.draw(C)}}]}getMatchingVisibleMetas(l){const o=this.chart.getSortedVisibleDatasetMetas(),m=this.axis+"AxisID",C=[];let k,U;for(k=0,U=o.length;k<U;++k){const oe=o[k];oe[m]===this.id&&(!l||oe.type===l)&&C.push(oe)}return C}_resolveTickFontOptions(l){return Dr(this.options.ticks.setContext(this.getContext(l)).font)}_maxDigits(){const l=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/l}}class Ph{constructor(l,o,m){this.type=l,this.scope=o,this.override=m,this.items=Object.create(null)}isForType(l){return Object.prototype.isPrototypeOf.call(this.type.prototype,l.prototype)}register(l){const o=Object.getPrototypeOf(l);let m;(function Oa(c){return"id"in c&&"defaults"in c})(o)&&(m=this.register(o));const C=this.items,k=l.id,U=this.scope+"."+k;if(!k)throw new Error("class does not have id: "+l);return k in C||(C[k]=l,function Fh(c,l,o){const m=P(Object.create(null),[o?ar.get(o):{},ar.get(l),c.defaults]);ar.set(l,m),c.defaultRoutes&&function ka(c,l){Object.keys(l).forEach(o=>{const m=o.split("."),C=m.pop(),k=[c].concat(m).join("."),U=l[o].split("."),oe=U.pop(),be=U.join(".");ar.route(k,C,be,oe)})}
vendor: 6,484 bytes, line 1
1(l,c.defaultRoutes),c.descriptors&&ar.describe(l,c.descriptors)}(l,U,m),this.override&&ar.override(l.id,l.overrides)),U}get(l){return this.items[l]}unregister(l){const o=this.items,m=l.id,C=this.scope;m in o&&delete o[m],C&&m in ar[C]&&(delete ar[C][m],this.override&&delete Rs[m])}}var Lo=new class Bo{constructor(){this.controllers=new Ph(Zi,"datasets",!0),this.elements=new Ph(Lr,"elements"),this.plugins=new Ph(Object,"plugins"),this.scales=new Ph(ro,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...l){this._each("register",l)}remove(...l){this._each("unregister",l)}addControllers(...l){this._each("register",l,this.controllers)}addElements(...l){this._each("register",l,this.elements)}addPlugins(...l){this._each("register",l,this.plugins)}addScales(...l){this._each("register",l,this.scales)}getController(l){return this._get(l,this.controllers,"controller")}getElement(l){return this._get(l,this.elements,"element")}getPlugin(l){return this._get(l,this.plugins,"plugin")}getScale(l){return this._get(l,this.scales,"scale")}removeControllers(...l){this._each("unregister",l,this.controllers)}removeElements(...l){this._each("unregister",l,this.elements)}removePlugins(...l){this._each("unregister",l,this.plugins)}removeScales(...l){this._each("unregister",l,this.scales)}_each(l,o,m){[...o].forEach(C=>{const k=m||this._getRegistryForType(C);m||k.isForType(C)||k===this.plugins&&C.id?this._exec(l,k,C):J(C,U=>{const oe=m||this._getRegistryForType(U);this._exec(l,oe,U)})})}_exec(l,o,m){const C=M(l);le(m["before"+C],[],m),o[l](m),le(m["after"+C],[],m)}_getRegistryForType(l){for(let o=0;o<this._typedRegistries.length;o++){const m=this._typedRegistries[o];if(m.isForType(l))return m}return this.plugins}_get(l,o,m){const C=o.get(l);if(void 0===C)throw new Error('"'+l+'" is not a registered '+m+".");return C}},Tl=Object.freeze({__proto__:null,BarController:tn,BubbleController:Bn,DoughnutController:ri,LineController:wi,PolarAreaController:Gi,PieController:qi,RadarController:Zr,ScatterController:(()=>{class c extends Zi{update(o){const m=this._cachedMeta,{data:C=[]}=m,k=this.chart._animationsDisabled;let{start:U,count:oe}=Vn(m,C,k);if(this._drawStart=U,this._drawCount=oe,Yt(m)&&(U=0,oe=C.length),this.options.showLine){const{dataset:be,_dataset:Ze}=m;be._chart=this.chart,be._datasetIndex=this.index,be._decimated=!!Ze._decimated,be.points=C;const St=this.resolveDatasetElementOptions(o);St.segment=this.options.segment,this.updateElement(be,void 0,{animated:!k,options:St},o)}this.updateElements(C,U,oe,o)}addElements(){const{showLine:o}=this.options;!this.datasetElementType&&o&&(this.datasetElementType=Lo.getElement("line")),super.addElements()}updateElements(o,m,C,k){const U="reset"===k,{iScale:oe,vScale:be,_stacked:Ze,_dataset:St}=this._cachedMeta,qt=this.resolveDataElementOptions(m,k),bn=this.getSharedOptions(qt),Cn=this.includeOptions(k,bn),An=oe.axis,Wn=be.axis,{spanGaps:ei,segment:oi}=this.options,Ci=Be(ei)?ei:Number.POSITIVE_INFINITY,Vi=this.chart._animationsDisabled||U||"none"===k;let Ri=m>0&&this.getParsed(m-1);for(let Mi=m;Mi<m+C;++Mi){const er=o[Mi],sr=this.getParsed(Mi),Tr=Vi?er:{},Or=j(sr[Wn]),yo=Tr[An]=oe.getPixelForValue(sr[An],Mi),bo=Tr[Wn]=U||Or?be.getBasePixel():be.getPixelForValue(Ze?this.applyStack(be,sr,Ze):sr[Wn],Mi);Tr.skip=isNaN(yo)||isNaN(bo)||Or,Tr.stop=Mi>0&&Math.abs(sr[An]-Ri[An])>Ci,oi&&(Tr.parsed=sr,Tr.raw=St.data[Mi]),Cn&&(Tr.options=bn||this.resolveDataElementOptions(Mi,er.active?"active":k)),Vi||this.updateElement(er,Mi,Tr,k),Ri=sr}this.updateSharedOptions(bn,k,qt)}getMaxOverflow(){const o=this._cachedMeta,m=o.data||[];if(!this.options.showLine){let be=0;for(let Ze=m.length-1;Ze>=0;--Ze)be=Math.max(be,m[Ze].size(this.resolveDataElementOptions(Ze))/2);return be>0&&be}const C=o.dataset,k=C.options&&C.options.borderWidth||0;if(!m.length)return k;const U=m[0].size(this.resolveDataElementOptions(0)),oe=m[m.length-1].size(this.resolveDataElementOptions(m.length-1));return Math.max(k,U,oe)/2}}return c.id="scatter",c.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},c.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:l=>"("+l.label+", "+l.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},c})()});function Ks(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var da={_date:(()=>{class c{constructor(o){this.options=o||{}}init(o){}formats(){return Ks()}parse(o,m){return Ks()}format(o,m){return Ks()}add(o,m,C){return Ks()}diff(o,m,C){return Ks()}startOf(o,m,C){return Ks()}endOf(o,m){return Ks()}}return c.override=function(l){Object.assign(c.prototype,l)},c})()};function Qo(c,l,o,m){const{controller:C,data:k,_sorted:U}=c,oe=C._cachedMeta.iScale;if(oe&&l===oe.axis&&"r"!==l&&U&&k.length){const be=oe._reversePixels?tt:Pe;if(!m)return be(k,l,o);if(C._sharedOptions){const Ze=k[0],St="function"==typeof Ze.getRange&&Ze.getRange(l);if(St){const qt=be(k,l,o-St),bn=be(k,l,o+St);return{lo:qt.lo,hi:bn.hi}}}}return{lo:0,hi:k.length-1}}function va(c,l,o,m,C){const k=c.getSortedVisibleDatasetMetas(),U=o[l];for(let oe=0,be=k.length;oe<be;++oe){const{index:Ze,data:St}=k[oe],{lo:qt,hi:bn}=Qo(k[oe],l,U,C);for(let Cn=qt;Cn<=bn;++Cn){const An=St[Cn];An.skip||m(An,Ze,Cn)}}}function oa(c,l,o,m,C){const k=[];return!C&&!c.isPointInArea(l)||va(c,o,l,function(oe,be,Ze){!C&&!Ro(oe,c.chartArea,0)||oe.inRange(l.x,l.y,m)&&k.push({element:oe,datasetIndex:be,index:Ze})},!0),k}function Ic(c,l,o,m,C,k){return k||c.isPointInArea(l)?"r"!==o||m?function ah(c,l,o,m,C,k){let U=[];const oe=function zl(c){const l=-1!==c.indexOf("x"),o=-1!==c.indexOf("y");return function(m,C){const k=l?Math.abs(m.x-C.x):0,U=o?Math.abs(m.y-C.y):0;return Math.sqrt(Math.pow(k,2)+Math.pow(U,2))}}(o);let be=Number.POSITIVE_INFINITY;return va(c,o,l,function Ze(St,qt,bn){const Cn=St.inRange(l.x,l.y,C);if(m&&!Cn)return;const An=St.getCenterPoint(C);if(!k&&!c.isPointInArea(An)&&!Cn)return;const ei=oe(l,An);ei<be?(U=[{element:St,datasetIndex:qt,index:bn}],be=ei):ei===be&&U.push({element:St,datasetIndex:qt,index:bn})}),U}(c,l,o,m,C,k):function aa(c,l,o,m){let C=[];return va(c,o,l,function k(U,oe,be){const{startAngle:Ze,endAngle:St}=U.getProps(["startAngle","endAngle"],m),{angle:qt}=Ht(U,{x:l.x,y:l.y});vn(qt,Ze,St)&&C.push({element:U,datasetIndex:oe,index:be})}),C}(c,l,o,C):[]}function Zc(c,l,o,m,C){const k=[],U="x"===o?"inXRange":"inYRange";let oe=!1;return va(c,o,l,(be,Ze,St)=>
vendor: 19,605 bytes, line 1
1{be[U](l[o],C)&&(k.push({element:be,datasetIndex:Ze,index:St}),oe=oe||be.inRange(l.x,l.y,C))}),m&&!oe?[]:k}var lh={evaluateInteractionItems:va,modes:{index(c,l,o,m){const C=_i(l,c),k=o.axis||"x",U=o.includeInvisible||!1,oe=o.intersect?oa(c,C,k,m,U):Ic(c,C,k,!1,m,U),be=[];return oe.length?(c.getSortedVisibleDatasetMetas().forEach(Ze=>{const St=oe[0].index,qt=Ze.data[St];qt&&!qt.skip&&be.push({element:qt,datasetIndex:Ze.index,index:St})}),be):[]},dataset(c,l,o,m){const C=_i(l,c),k=o.axis||"xy",U=o.includeInvisible||!1;let oe=o.intersect?oa(c,C,k,m,U):Ic(c,C,k,!1,m,U);if(oe.length>0){const be=oe[0].datasetIndex,Ze=c.getDatasetMeta(be).data;oe=[];for(let St=0;St<Ze.length;++St)oe.push({element:Ze[St],datasetIndex:be,index:St})}return oe},point:(c,l,o,m)=>oa(c,_i(l,c),o.axis||"xy",m,o.includeInvisible||!1),nearest:(c,l,o,m)=>Ic(c,_i(l,c),o.axis||"xy",o.intersect,m,o.includeInvisible||!1),x:(c,l,o,m)=>Zc(c,_i(l,c),"x",o.intersect,m),y:(c,l,o,m)=>Zc(c,_i(l,c),"y",o.intersect,m)}};const xu=["left","top","right","bottom"];function Wl(c,l){return c.filter(o=>o.pos===l)}function Qf(c,l){return c.filter(o=>-1===xu.indexOf(o.pos)&&o.box.axis===l)}function il(c,l){return c.sort((o,m)=>{const C=l?m:o,k=l?o:m;return C.weight===k.weight?C.index-k.index:C.weight-k.weight})}function ch(c,l,o,m){return Math.max(c[o],l[o])+Math.max(c[m],l[m])}function Oc(c,l){c.top=Math.max(c.top,l.top),c.left=Math.max(c.left,l.left),c.bottom=Math.max(c.bottom,l.bottom),c.right=Math.max(c.right,l.right)}function uh(c,l,o,m){const{pos:C,box:k}=o,U=c.maxPadding;if(!L(C)){o.size&&(c[C]-=o.size);const qt=m[o.stack]||{size:0,count:1};qt.size=Math.max(qt.size,o.horizontal?k.height:k.width),o.size=qt.size/qt.count,c[C]+=o.size}k.getPadding&&Oc(U,k.getPadding());const oe=Math.max(0,l.outerWidth-ch(U,c,"left","right")),be=Math.max(0,l.outerHeight-ch(U,c,"top","bottom")),Ze=oe!==c.w,St=be!==c.h;return c.w=oe,c.h=be,o.horizontal?{same:Ze,other:St}:{same:St,other:Ze}}function df(c,l){const o=l.maxPadding;return function m(C){const k={left:0,top:0,right:0,bottom:0};return C.forEach(U=>{k[U]=Math.max(l[U],o[U])}),k}(c?["left","right"]:["top","bottom"])}function Yl(c,l,o,m){const C=[];let k,U,oe,be,Ze,St;for(k=0,U=c.length,Ze=0;k<U;++k){oe=c[k],be=oe.box,be.update(oe.width||l.w,oe.height||l.h,df(oe.horizontal,l));const{same:qt,other:bn}=uh(l,o,oe,m);Ze|=qt&&C.length,St=St||bn,be.fullSize||C.push(oe)}return Ze&&Yl(C,l,o,m)||St}function Rc(c,l,o,m,C){c.top=o,c.left=l,c.right=l+m,c.bottom=o+C,c.width=m,c.height=C}function Lh(c,l,o,m){const C=o.padding;let{x:k,y:U}=l;for(const oe of c){const be=oe.box,Ze=m[oe.stack]||{count:1,placed:0,weight:1},St=oe.stackWeight/Ze.weight||1;if(oe.horizontal){const qt=l.w*St,bn=Ze.size||be.height;A(Ze.start)&&(U=Ze.start),be.fullSize?Rc(be,C.left,U,o.outerWidth-C.right-C.left,bn):Rc(be,l.left+Ze.placed,U,qt,bn),Ze.start=U,Ze.placed+=qt,U=be.bottom}else{const qt=l.h*St,bn=Ze.size||be.width;A(Ze.start)&&(k=Ze.start),be.fullSize?Rc(be,k,C.top,bn,o.outerHeight-C.bottom-C.top):Rc(be,k,l.top+Ze.placed,bn,qt),Ze.start=k,Ze.placed+=qt,k=be.right}}l.x=k,l.y=U}ar.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var ia={addBox(c,l){c.boxes||(c.boxes=[]),l.fullSize=l.fullSize||!1,l.position=l.position||"top",l.weight=l.weight||0,l._layers=l._layers||function(){return[{z:0,draw(o){l.draw(o)}}]},c.boxes.push(l)},removeBox(c,l){const o=c.boxes?c.boxes.indexOf(l):-1;-1!==o&&c.boxes.splice(o,1)},configure(c,l,o){l.fullSize=o.fullSize,l.position=o.position,l.weight=o.weight},update(c,l,o,m){if(!c)return;const C=Fs(c.options.layout.padding),k=Math.max(l-C.width,0),U=Math.max(o-C.height,0),oe=function pl(c){const l=function kc(c){const l=[];let o,m,C,k,U,oe;for(o=0,m=(c||[]).length;o<m;++o)C=c[o],({position:k,options:{stack:U,stackWeight:oe=1}}=C),l.push({index:o,box:C,pos:k,horizontal:C.isHorizontal(),weight:C.weight,stack:U&&k+U,stackWeight:oe});return l}(c),o=il(l.filter(Ze=>Ze.box.fullSize),!0),m=il(Wl(l,"left"),!0),C=il(Wl(l,"right")),k=il(Wl(l,"top"),!0),U=il(Wl(l,"bottom")),oe=Qf(l,"x"),be=Qf(l,"y");return{fullSize:o,leftAndTop:m.concat(k),rightAndBottom:C.concat(be).concat(U).concat(oe),chartArea:Wl(l,"chartArea"),vertical:m.concat(C).concat(be),horizontal:k.concat(U).concat(oe)}}(c.boxes),be=oe.vertical,Ze=oe.horizontal;J(c.boxes,Wn=>{"function"==typeof Wn.beforeLayout&&Wn.beforeLayout()});const St=be.reduce((Wn,ei)=>ei.box.options&&!1===ei.box.options.display?Wn:Wn+1,0)||1,qt=Object.freeze({outerWidth:l,outerHeight:o,padding:C,availableWidth:k,availableHeight:U,vBoxMaxWidth:k/2/St,hBoxMaxHeight:U/2}),bn=Object.assign({},C);Oc(bn,Fs(m));const Cn=Object.assign({maxPadding:bn,w:k,h:U,x:C.left,y:C.top},C),An=function Ra(c,l){const o=function fa(c){const l={};for(const o of c){const{stack:m,pos:C,stackWeight:k}=o;if(!m||!xu.includes(C))continue;const U=l[m]||(l[m]={count:0,placed:0,weight:0,size:0});U.count++,U.weight+=k}return l}(c),{vBoxMaxWidth:m,hBoxMaxHeight:C}=l;let k,U,oe;for(k=0,U=c.length;k<U;++k){oe=c[k];const{fullSize:be}=oe.box,Ze=o[oe.stack],St=Ze&&oe.stackWeight/Ze.weight;oe.horizontal?(oe.width=St?St*m:be&&l.availableWidth,oe.height=C):(oe.width=m,oe.height=St?St*C:be&&l.availableHeight)}return o}(be.concat(Ze),qt);Yl(oe.fullSize,Cn,qt,An),Yl(be,Cn,qt,An),Yl(Ze,Cn,qt,An)&&Yl(be,Cn,qt,An),function hf(c){const l=c.maxPadding;function o(m){const C=Math.max(l[m]-c[m],0);return c[m]+=C,C}c.y+=o("top"),c.x+=o("left"),o("right"),o("bottom")}(Cn),Lh(oe.leftAndTop,Cn,qt,An),Cn.x+=Cn.w,Cn.y+=Cn.h,Lh(oe.rightAndBottom,Cn,qt,An),c.chartArea={left:Cn.left,top:Cn.top,right:Cn.left+Cn.w,bottom:Cn.top+Cn.h,height:Cn.h,width:Cn.w},J(oe.chartArea,Wn=>{const ei=Wn.box;Object.assign(ei,c.chartArea),ei.update(Cn.w,Cn.h,{left:0,top:0,right:0,bottom:0})})}};class xl{acquireContext(l,o){}releaseContext(l){return!1}addEventListener(l,o,m){}removeEventListener(l,o,m){}getDevicePixelRatio(){return 1}getMaximumSize(l,o,m,C){return o=Math.max(0,o||l.width),m=m||l.height,{width:o,height:Math.max(0,C?Math.floor(o/C):m)}}isAttached(l){return!0}updateConfig(l){}}class Pc extends xl{acquireContext(l){return l&&l.getContext&&l.getContext("2d")||null}updateConfig(l){l.options.animation=!1}}const ya="$chartjs",hh={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jc=c=>null===c||""===c,Il=!!js&&{passive:!0};function Io(c,l,o){c.canvas.removeEventListener(l,o,Il)}function Kl(c,l){for(const o of c)if(o===l||o.contains(l))return!0}function ff(c,l,o){const m=c.canvas,C=new MutationObserver(k=>{let U=!1;for(const oe of k)U=U||Kl(oe.addedNodes,m),U=U&&!Kl(oe.removedNodes,m);U&&o()});return C.observe(document,{childList:!0,subtree:!0}),C}function pf(c,l,o){const m=c.canvas,C=new MutationObserver(k=>{let U=!1;for(const oe of k)U=U||Kl(oe.removedNodes,m),U=U&&!Kl(oe.addedNodes,m);U&&o()});return C.observe(document,{childList:!0,subtree:!0}),C}const Uo=new Map;let eu=0;function pa(){const c=window.devicePixelRatio;c!==eu&&(eu=c,Uo.forEach((l,o)=>{o.currentDevicePixelRatio!==c&&l()}))}function hc(c,l,o){const m=c.canvas,C=m&&Kt(m);if(!C)return;const k=Dn((oe,be)=>{const Ze=C.clientWidth;o(oe,be),Ze<C.clientWidth&&o()},window),U=new ResizeObserver(oe=>{const be=oe[0],Ze=be.contentRect.width,St=be.contentRect.height;0===Ze&&0===St||k(Ze,St)});return U.observe(C),function uc(c,l){Uo.size||window.addEventListener("resize",pa),Uo.set(c,l)}(c,k),U}function Bh(c,l,o){o&&o.disconnect(),"resize"===l&&function kl(c){Uo.delete(c),Uo.size||window.removeEventListener("resize",pa)}(c)}function Ol(c,l,o){const m=c.canvas,C=Dn(k=>{null!==c.ctx&&o(function Xf(c,l){const o=hh[c.type]||c.type,{x:m,y:C}=_i(c,l);return{type:o,chart:l,native:c,x:void 0!==m?m:null,y:void 0!==C?C:null}}(k,c))},c,k=>{const U=k[0];return[U,U.offsetX,U.offsetY]});return function Pa(c,l,o){c.addEventListener(l,o,Il)}(m,l,C),C}class ga extends xl{acquireContext(l,o){const m=l&&l.getContext&&l.getContext("2d");return m&&m.canvas===l?(function Nh(c,l){const o=c.style,m=c.getAttribute("height"),C=c.getAttribute("width");if(c[ya]={initial:{height:m,width:C,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",Jc(C)){const k=_o(c,"width");void 0!==k&&(c.width=k)}if(Jc(m))if(""===c.style.height)c.height=c.width/(l||2);else{const k=_o(c,"height");void 0!==k&&(c.height=k)}}(l,o),m):null}releaseContext(l){const o=l.canvas;if(!o[ya])return!1;const m=o[ya].initial;["height","width"].forEach(k=>{const U=m[k];j(U)?o.removeAttribute(k):o.setAttribute(k,U)});const C=m.style||{};return Object.keys(C).forEach(k=>{o.style[k]=C[k]}),o.width=o.width,delete o[ya],!0}addEventListener(l,o,m){this.removeEventListener(l,o),(l.$proxies||(l.$proxies={}))[o]=({attach:ff,detach:pf,resize:hc}[o]||Ol)(l,o,m)}removeEventListener(l,o){const m=l.$proxies||(l.$proxies={}),C=m[o];C&&(({attach:Bh,detach:Bh,resize:Bh}[o]||Io)(l,o,C),m[o]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(l,o,m,C){return function cs(c,l,o,m){const C=Fi(c),k=Ls(C,"margin"),U=ni(C.maxWidth,c,"clientWidth")||he,oe=ni(C.maxHeight,c,"clientHeight")||he,be=function Xr(c,l,o){let m,C;if(void 0===l||void 0===o){const k=Kt(c);if(k){const U=k.getBoundingClientRect(),oe=Fi(k),be=Ls(oe,"border","width"),Ze=Ls(oe,"padding");l=U.width-Ze.width-be.width,o=U.height-Ze.height-be.height,m=ni(oe.maxWidth,k,"clientWidth"),C=ni(oe.maxHeight,k,"clientHeight")}else l=c.clientWidth,o=c.clientHeight}return{width:l,height:o,maxWidth:m||he,maxHeight:C||he}}(c,l,o);let{width:Ze,height:St}=be;if("content-box"===C.boxSizing){const qt=Ls(C,"border","width"),bn=Ls(C,"padding");Ze-=bn.width+qt.width,St-=bn.height+qt.height}return Ze=Math.max(0,Ze-k.width),St=Math.max(0,m?Math.floor(Ze/m):St-k.height),Ze=ns(Math.min(Ze,U,be.maxWidth)),St=ns(Math.min(St,oe,be.maxHeight)),Ze&&!St&&(St=ns(Ze/2)),{width:Ze,height:St}}(l,o,m,C)}isAttached(l){const o=Kt(l);return!(!o||!o.isConnected)}}class tu{constructor(){this._init=[]}notify(l,o,m,C){"beforeInit"===o&&(this._init=this._createDescriptors(l,!0),this._notify(this._init,l,"install"));const k=C?this._descriptors(l).filter(C):this._descriptors(l),U=this._notify(k,l,o,m);return"afterDestroy"===o&&(this._notify(k,l,"stop"),this._notify(this._init,l,"uninstall")),U}_notify(l,o,m,C){C=C||{};for(const k of l){const U=k.plugin;if(!1===le(U[m],[o,C,k.options],U)&&C.cancelable)return!1}return!0}invalidate(){j(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(l){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(l);return this._notifyStateChanges(l),o}_createDescriptors(l,o){const m=l&&l.config,C=G(m.options&&m.options.plugins,{}),k=function Fa(c){const l={},o=[],m=Object.keys(Lo.plugins.items);for(let k=0;k<m.length;k++)o.push(Lo.getPlugin(m[k]));const C=c.plugins||[];for(let k=0;k<C.length;k++){const U=C[k];-1===o.indexOf(U)&&(o.push(U),l[U.id]=!0)}return{plugins:o,localIds:l}}(m);return!1!==C||o?function ba(c,{plugins:l,localIds:o},m,C){const k=[],U=c.getContext();for(const oe of l){const be=oe.id,Ze=Fc(m[be],C);null!==Ze&&k.push({plugin:oe,options:Rl(c.config,{plugin:oe,local:o[be]},Ze,U)})}return k}(l,k,C,o):[]}_notifyStateChanges(l){const o=this._oldCache||[],m=this._cache,C=(k,U)=>k.filter(oe=>!U.some(be=>oe.plugin.id===be.plugin.id));this._notify(C(o,m),l,"stop"),this._notify(C(m,o),l,"start")}}function Fc(c,l){return l||!1!==c?!0===c?{}:c:null}function Rl(c,{plugin:l,local:o},m,C){const k=c.pluginScopeKeys(l),U=c.getOptionScopes(m,k);return o&&l.defaults&&U.push(l.defaults),c.createResolver(U,C,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function fc(c,l){return((l.datasets||{})[c]||{}).indexAxis||l.indexAxis||(ar.datasets[c]||{}).indexAxis||"x"}function Pl(c,l){return"x"===c||"y"===c?c:l.axis||function Iu(c){return"top"===c||"bottom"===c?"x":"left"===c||"right"===c?"y":void 0}(l.position)||c.charAt(0).toLowerCase()}function ku(c){const l=c.options||(c.options={});l.plugins=G(l.plugins,{}),l.scales=function $a(c,l){const o=Rs[c.type]||{scales:{}},m=l.scales||{},C=fc(c.type,l),k=Object.create(null),U=Object.create(null);return Object.keys(m).forEach(oe=>{const be=m[oe];if(!L(be))return console.error(`Invalid scale configuration for scale: ${oe}`);if(be._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${oe}`);const Ze=Pl(oe,be),St=function vd(c,l){return c===l?"_index_":"_value_"}(Ze,C),qt=o.scales||{};k[Ze]=k[Ze]||oe,U[oe]=N(Object.create(null),[{axis:Ze},be,qt[Ze],qt[St]])}),c.data.datasets.forEach(oe=>{const be=oe.type||c.type,Ze=oe.indexAxis||fc(be,l),qt=(Rs[be]||{}).scales||{};Object.keys(qt).forEach(bn=>{const Cn=function La(c,l){let o=c;return"_index_"===c?o=l:"_value_"===c&&(o="x"===l?"y":"x"),o}(bn,Ze),An=oe[Cn+"AxisID"]||k[Cn]||Cn;U[An]=U[An]||Object.create(null),N(U[An],[{axis:Cn},m[An],qt[bn]])})}),Object.keys(U).forEach(oe=>{const be=U[oe];N(be,[ar.scales[be.type],ar.scale])}),U}(c,l)}function pc(c){return(c=c||{}).datasets=c.datasets||[],c.labels=c.labels||[],c}const wa=new Map,yd=new Set;function Ou(c,l){let o=wa.get(c);return o||(o=l(),wa.set(c,o),yd.add(o)),o}const gl=(c,l,o)=>{const m=V(l,o);void 0!==m&&c.add(m)};class dh{constructor(l){this._config=function Fl(c){return(c=c||{}).data=pc(c.data),ku(c),c}(l),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(l){this._config.type=l}get data(){return this._config.data}set data(l){this._config.data=pc(l)}get options(){return this._config.options}set options(l){this._config.options=l}get plugins(){return this._config.plugins}update(){const l=this._config;this.clearCache(),ku(l)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(l){return Ou(l,()=>[[`datasets.${l}`,""]])}datasetAnimationScopeKeys(l,o){return Ou(`${l}.transition.${o}`,()=>[[`datasets.${l}.transitions.${o}`,`transitions.${o}`],[`datasets.${l}`,""]])}datasetElementScopeKeys(l,o){return Ou(`${l}-${o}`,()=>[[`datasets.${l}.elements.${o}`,`datasets.${l}`,`elements.${o}`,""]])}pluginScopeKeys(l){const o=l.id;return Ou(`${this.type}-plugin-${o}`,()=>[[`plugins.${o}`,...l.additionalOptionScopes||[]]])}_cachedScopes(l,o){const m=this._scopeCache;let C=m.get(l);return(!C||o)&&(C=new Map,m.set(l,C)),C}getOptionScopes(l,o,m){const{options:C,type:k}=this,U=this._cachedScopes(l,m),oe=U.get(o);if(oe)return oe;const be=new Set;o.forEach(St=>{l&&(be.add(l),St.forEach(qt=>gl(be,l,qt))),St.forEach(qt=>gl(be,C,qt)),St.forEach(qt=>gl(be,Rs[k]||{},qt)),St.forEach(qt=>gl(be,ar,qt)),St.forEach(qt=>gl(be,Js,qt))});const Ze=Array.from(be);return 0===Ze.length&&Ze.push(Object.create(null)),yd.has(o)&&U.set(o,Ze),Ze}chartOptionScopes(){const{options:l,type:o}=this;return[l,Rs[o]||{},ar.datasets[o]||{},{type:o},ar,Js]}resolveNamedOptions(l,o,m,C=[""]){const k={$shared:!0},{resolver:U,subPrefixes:oe}=Ru(this._resolverCache,l,C);let be=U;(function la(c,l){const{isScriptable:o,isIndexable:m}=pt(c);for(const C of l){const k=o(C),U=m(C),oe=(U||k)&&c[C];if(k&&(R(oe)||ml(oe))||U&&D(oe))return!0}return!1})(U,o)&&(k.$shared=!1,be=vt(U,m=R(m)?m():m,this.createResolver(l,m,oe)));for(const Ze of o)k[Ze]=be[Ze];return k}createResolver(l,o,m=[""],C){const{resolver:k}=Ru(this._resolverCache,l,m);return L(o)?vt(k,o,void 0,C):k}}function Ru(c,l,o){let m=c.get(l);m||(m=new Map,c.set(l,m));const C=o.join();let k=m.get(C);return k||(k={resolver:ws(l,o),subPrefixes:o.filter(oe=>!oe.toLowerCase().includes("hover"))},m.set(C,k)),k}const ml=c=>L(c)&&Object.getOwnPropertyNames(c).reduce((l,o)=>l||R(c[o]),!1),Pu=["top","bottom","left","right","chartArea"];function Na(c,l){return"top"===c||"bottom"===c||-1===Pu.indexOf(c)&&"x"===l}function nu(c,l){return function(o,m){return o[c]===m[c]?o[l]-m[l]:o[c]-m[c]}}function ca(c){const l=c.chart,o=l.options.animation;l.notifyPlugins("afterRender"),le(o&&o.onComplete,[c],l)}function fh(c){const l=c.chart,o=l.options.animation;le(o&&o.onProgress,[c],l)}function bd(c){return et()&&"string"==typeof c?c=document.getElementById(c):c&&c.length&&(c=c[0]),c&&c.canvas&&(c=c.canvas),c}const iu={},jo=c=>{const l=bd(c);return Object.values(iu).filter(o=>o.canvas===l).pop()};function ru(c,l,o){const m=Object.keys(c);for(const C of m){const k=+C;if(k>=l){const U=c[C];delete c[C],(o>0||k>l)&&(c[k+o]=U)}}}class Lc{constructor(l,o){const m=this.config=new dh(o),C=bd(l),k=jo(C);if(k)throw new Error("Canvas is already in use. Chart with ID '"+k.id+"' must be destroyed before the canvas with ID '"+k.canvas.id+"' can be reused.");const U=m.createResolver(m.chartOptionScopes(),this.getContext());this.platform=new(m.platform||function dc(c){return!et()||"undefined"!=typeof OffscreenCanvas&&c instanceof OffscreenCanvas?Pc:ga}(C)),this.platform.updateConfig(m);const oe=this.platform.acquireContext(C,U.aspectRatio),be=oe&&oe.canvas,Ze=be&&be.height,St=be&&be.width;this.id=y(),this.ctx=oe,this.canvas=be,this.width=St,this.height=Ze,this._options=U,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tu,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Gn(c,l){let o;return function(...m){return l?(clearTimeout(o),o=setTimeout(c,l,m)):c.apply(this,m),l}}(qt=>this.update(qt),U.resizeDelay||0),this._dataChanges=[],iu[this.id]=this,oe&&be?(ui.listen(this,"complete",ca),ui.listen(this,"progress",fh),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:l,maintainAspectRatio:o},width:m,height:C,_aspectRatio:k}=this;return j(l)?o&&k?k:C?m/C:null:l}get data(){return this.config.data}set data(l){this.config.data=l}get options(){return this._options}set options(l){this.config.options=l}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():is(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return eo(this.canvas,this.ctx),this}stop(){return ui.stop(this),this}resize(l,o){ui.running(this)?this._resizeBeforeDraw={width:l,height:o}:this._resize(l,o)}_resize(l,o){const m=this.options,U=this.platform.getMaximumSize(this.canvas,l,o,m.maintainAspectRatio&&this.aspectRatio),oe=m.devicePixelRatio||this.platform.getDevicePixelRatio(),be=this.width?"resize":"attach";this.width=U.width,this.height=U.height,this._aspectRatio=this.aspectRatio,is(this,oe,!0)&&(this.notifyPlugins("resize",{size:U}),le(m.onResize,[this,U],this),this.attached&&this._doResize(be)&&this.render())}ensureScalesHaveIDs(){J(this.options.scales||{},(m,C)=>{m.id=C})}buildOrUpdateScales(){const l=this.options,o=l.scales,m=this.scales,C=Object.keys(m).reduce((U,oe)=>(U[oe]=!1,U),{});let k=[];o&&(k=k.concat(Object.keys(o).map(U=>{const oe=o[U],be=Pl(U,oe),Ze="r"===be,St="x"===be;return{options:oe,dposition:Ze?"chartArea":St?"bottom":"left",dtype:Ze?"radialLinear":St?"category":"linear"}}))),J(k,U=>{const oe=U.options,be=oe.id,Ze=Pl(be,oe),St=G(oe.type,U.dtype);(void 0===oe.position||Na(oe.position,Ze)!==Na(U.dposition))&&(oe.position=U.dposition),C[be]=!0;let qt=null;be in m&&m[be].type===St?qt=m[be]:(qt=new(Lo.getScale(St))({id:be,type:St,ctx:this.ctx,
vendor: 6,163 bytes, line 1
1chart:this}),m[qt.id]=qt),qt.init(oe,l)}),J(C,(U,oe)=>{U||delete m[oe]}),J(m,U=>{ia.configure(this,U,U.options),ia.addBox(this,U)})}_updateMetasets(){const l=this._metasets,o=this.data.datasets.length,m=l.length;if(l.sort((C,k)=>C.index-k.index),m>o){for(let C=o;C<m;++C)this._destroyDatasetMeta(C);l.splice(o,m-o)}this._sortedMetasets=l.slice(0).sort(nu("order","index"))}_removeUnreferencedMetasets(){const{_metasets:l,data:{datasets:o}}=this;l.length>o.length&&delete this._stacks,l.forEach((m,C)=>{0===o.filter(k=>k===m._dataset).length&&this._destroyDatasetMeta(C)})}buildOrUpdateControllers(){const l=[],o=this.data.datasets;let m,C;for(this._removeUnreferencedMetasets(),m=0,C=o.length;m<C;m++){const k=o[m];let U=this.getDatasetMeta(m);const oe=k.type||this.config.type;if(U.type&&U.type!==oe&&(this._destroyDatasetMeta(m),U=this.getDatasetMeta(m)),U.type=oe,U.indexAxis=k.indexAxis||fc(oe,this.options),U.order=k.order||0,U.index=m,U.label=""+k.label,U.visible=this.isDatasetVisible(m),U.controller)U.controller.updateIndex(m),U.controller.linkScales();else{const be=Lo.getController(oe),{datasetElementType:Ze,dataElementType:St}=ar.datasets[oe];Object.assign(be.prototype,{dataElementType:Lo.getElement(St),datasetElementType:Ze&&Lo.getElement(Ze)}),U.controller=new be(this,m),l.push(U.controller)}}return this._updateMetasets(),l}_resetElements(){J(this.data.datasets,(l,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(l){const o=this.config;o.update();const m=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),C=this._animationsDisabled=!m.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:l,cancelable:!0}))return;const k=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let U=0;for(let Ze=0,St=this.data.datasets.length;Ze<St;Ze++){const{controller:qt}=this.getDatasetMeta(Ze),bn=!C&&-1===k.indexOf(qt);qt.buildOrUpdateElements(bn),U=Math.max(+qt.getMaxOverflow(),U)}U=this._minPadding=m.layout.autoPadding?U:0,this._updateLayout(U),C||J(k,Ze=>{Ze.reset()}),this._updateDatasets(l),this.notifyPlugins("afterUpdate",{mode:l}),this._layers.sort(nu("z","_idx"));const{_active:oe,_lastEvent:be}=this;be?this._eventHandler(be,!0):oe.length&&this._updateHoverStyles(oe,oe,!0),this.render()}_updateScales(){J(this.scales,l=>{ia.removeBox(this,l)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const l=this.options,o=new Set(Object.keys(this._listeners)),m=new Set(l.events);(!ee(o,m)||!!this._responsiveListeners!==l.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:l}=this,o=this._getUniformDataChanges()||[];for(const{method:m,start:C,count:k}of o)ru(l,C,"_removeElements"===m?-k:k)}_getUniformDataChanges(){const l=this._dataChanges;if(!l||!l.length)return;this._dataChanges=[];const o=this.data.datasets.length,m=k=>new Set(l.filter(U=>U[0]===k).map((U,oe)=>oe+","+U.splice(1).join(","))),C=m(0);for(let k=1;k<o;k++)if(!ee(C,m(k)))return;return Array.from(C).map(k=>k.split(",")).map(k=>({method:k[1],start:+k[2],count:+k[3]}))}_updateLayout(l){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ia.update(this,this.width,this.height,l);const o=this.chartArea,m=o.width<=0||o.height<=0;this._layers=[],J(this.boxes,C=>{m&&"chartArea"===C.position||(C.configure&&C.configure(),this._layers.push(...C._layers()))},this),this._layers.forEach((C,k)=>{C._idx=k}),this.notifyPlugins("afterLayout")}_updateDatasets(l){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:l,cancelable:!0})){for(let o=0,m=this.data.datasets.length;o<m;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,m=this.data.datasets.length;o<m;++o)this._updateDataset(o,R(l)?l({datasetIndex:o}):l);this.notifyPlugins("afterDatasetsUpdate",{mode:l})}}_updateDataset(l,o){const m=this.getDatasetMeta(l),C={meta:m,index:l,mode:o,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",C)&&(m.controller._update(o),C.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",C))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(ui.has(this)?this.attached&&!ui.running(this)&&ui.start(this):(this.draw(),ca({chart:this})))}draw(){let l;if(this._resizeBeforeDraw){const{width:m,height:C}=this._resizeBeforeDraw;this._resize(m,C),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const o=this._layers;for(l=0;l<o.length&&o[l].z<=0;++l)o[l].draw(this.chartArea);for(this._drawDatasets();l<o.length;++l)o[l].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(l){const o=this._sortedMetasets,m=[];let C,k;for(C=0,k=o.length;C<k;++C){const U=o[C];(!l||U.visible)&&m.push(U)}return m}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const l=this.getSortedVisibleDatasetMetas();for(let o=l.length-1;o>=0;--o)this._drawDataset(l[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(l){const o=this.ctx,m=l._clip,C=!m.disabled,k=this.chartArea,U={meta:l,index:l.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",U)&&(C&&xs(o,{left:!1===m.left?0:k.left-m.left,right:!1===m.right?this.width:k.right+m.right,top:!1===m.top?0:k.top-m.top,bottom:!1===m.bottom?this.height:k.bottom+m.bottom}),l.controller.draw(),C&&Ui(o),U.cancelable=!1,this.notifyPlugins("afterDatasetDraw",U))}isPointInArea(l){return Ro(l,this.chartArea,this._minPadding)}getElementsAtEventForMode(l,o,m,C){const k=lh.modes[o];return"function"==typeof k?k(this,l,m,C):[]}getDatasetMeta(l){const o=this.data.datasets[l],m=this._metasets;let C=m.filter(k=>k&&k._dataset===o).pop();return C||(C={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:l,_dataset:o,_parsed:[],_sorted:!1},m.push(C)),C}getContext(){return this.$context||(this.$context=bs(null,{chart:this,type:"chart"}))}
vendor: 4,181 bytes, line 1
1getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(l){const o=this.data.datasets[l];if(!o)return!1;const m=this.getDatasetMeta(l);return"boolean"==typeof m.hidden?!m.hidden:!o.hidden}setDatasetVisibility(l,o){this.getDatasetMeta(l).hidden=!o}toggleDataVisibility(l){this._hiddenIndices[l]=!this._hiddenIndices[l]}getDataVisibility(l){return!this._hiddenIndices[l]}_updateVisibility(l,o,m){const C=m?"show":"hide",k=this.getDatasetMeta(l),U=k.controller._resolveAnimations(void 0,C);A(o)?(k.data[o].hidden=!m,this.update()):(this.setDatasetVisibility(l,m),U.update(k,{visible:m}),this.update(oe=>oe.datasetIndex===l?C:void 0))}hide(l,o){this._updateVisibility(l,o,!1)}show(l,o){this._updateVisibility(l,o,!0)}_destroyDatasetMeta(l){const o=this._metasets[l];o&&o.controller&&o.controller._destroy(),delete this._metasets[l]}_stop(){let l,o;for(this.stop(),ui.remove(this),l=0,o=this.data.datasets.length;l<o;++l)this._destroyDatasetMeta(l)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:l,ctx:o}=this;this._stop(),this.config.clearCache(),l&&(this.unbindEvents(),eo(l,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete iu[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...l){return this.canvas.toDataURL(...l)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const l=this._listeners,o=this.platform,m=(k,U)=>{o.addEventListener(this,k,U),l[k]=U},C=(k,U,oe)=>{k.offsetX=U,k.offsetY=oe,this._eventHandler(k)};J(this.options.events,k=>m(k,C))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const l=this._responsiveListeners,o=this.platform,m=(be,Ze)=>{o.addEventListener(this,be,Ze),l[be]=Ze},C=(be,Ze)=>{l[be]&&(o.removeEventListener(this,be,Ze),delete l[be])},k=(be,Ze)=>{this.canvas&&this.resize(be,Ze)};let U;const oe=()=>{C("attach",oe),this.attached=!0,this.resize(),m("resize",k),m("detach",U)};U=()=>{this.attached=!1,C("resize",k),this._stop(),this._resize(0,0),m("attach",oe)},o.isAttached(this.canvas)?oe():U()}unbindEvents(){J(this._listeners,(l,o)=>{this.platform.removeEventListener(this,o,l)}),this._listeners={},J(this._responsiveListeners,(l,o)=>{this.platform.removeEventListener(this,o,l)}),this._responsiveListeners=void 0}updateHoverStyle(l,o,m){const C=m?"set":"remove";let k,U,oe,be;for("dataset"===o&&(k=this.getDatasetMeta(l[0].datasetIndex),k.controller["_"+C+"DatasetHoverStyle"]()),oe=0,be=l.length;oe<be;++oe){U=l[oe];const Ze=U&&this.getDatasetMeta(U.datasetIndex).controller;Ze&&Ze[C+"HoverStyle"](U.element,U.datasetIndex,U.index)}}getActiveElements(){return this._active||[]}setActiveElements(l){const o=this._active||[],m=l.map(({datasetIndex:k,index:U})=>{const oe=this.getDatasetMeta(k);if(!oe)throw new Error("No dataset found at index "+k);return{datasetIndex:k,element:oe.data[U],index:U}});!Me(m,o)&&(this._active=m,this._lastEvent=null,this._updateHoverStyles(m,o))}notifyPlugins(l,o,m){return this._plugins.notify(this,l,o,m)}_updateHoverStyles(l,o,m){const C=this.options.hover,k=(be,Ze)=>be.filter(St=>!Ze.some(qt=>St.datasetIndex===qt.datasetIndex&&St.index===qt.index)),U=k(o,l),oe=m?l:k(l,o);U.length&&this.updateHoverStyle(U,C.mode,!1),oe.length&&C.mode&&this.updateHoverStyle(oe,C.mode,!0)}_eventHandler(l,o){const m={event:l,replay:o,cancelable:!0,inChartArea:this.isPointInArea(l)},C=U=>(U.options.events||this.options.events).includes(l.native.type);if(!1===this.notifyPlugins("beforeEvent",m,C))return;const k=this._handleEvent(l,o,m.inChartArea);return m.cancelable=!1,this.notifyPlugins("afterEvent",m,C),(k||m.changed)&&this.render(),this}_handleEvent(l,o,m){const{_active:C=[],options:k}=this,oe=this._getActiveElements(l,C,m,o),be=function B(c){return"mouseup"===c.type||"click"===c.type||"contextmenu"===c.type}(l),Ze=function gc(c,l,o,m){return o&&"mouseout"!==c.type?m?l:c:null}(l,this._lastEvent,m,be);m&&(this._lastEvent=null,le(k.onHover,[l,oe,this],this),be&&le(k.onClick,[l,oe,this],this));const St=!Me(oe,C);return(St||o)&&(this._active=oe,this._updateHoverStyles(oe,C,o)),this._lastEvent=Ze,St}
vendor: 4,477 bytes, line 1
1_getActiveElements(l,o,m,C){if("mouseout"===l.type)return[];if(!m)return o;const k=this.options.hover;return this.getElementsAtEventForMode(l,k.mode,k,C)}}const wd=()=>J(Lc.instances,c=>c._plugins.invalidate()),vl=!0;function Fu(c,l,o){const{startAngle:m,pixelMargin:C,x:k,y:U,outerRadius:oe,innerRadius:be}=l;let Ze=C/oe;c.beginPath(),c.arc(k,U,oe,m-Ze,o+Ze),be>C?(Ze=C/be,c.arc(k,U,be,o+Ze,m-Ze,!0)):c.arc(k,U,C,o+Ie,m-Ie),c.closePath(),c.clip()}function Ea(c,l,o,m){return{x:o+c*Math.cos(l),y:m+c*Math.sin(l)}}function su(c,l,o,m,C,k){const{x:U,y:oe,startAngle:be,pixelMargin:Ze,innerRadius:St}=l,qt=Math.max(l.outerRadius+m+o-Ze,0),bn=St>0?St+m+o+Ze:0;let Cn=0;const An=C-be;if(m){const Ya=((St>0?St-m:0)+(qt>0?qt-m:0))/2;Cn=(An-(0!==Ya?An*Ya/(Ya+m):An))/2}const ei=(An-Math.max(.001,An*qt-o/K)/qt)/2,oi=be+ei+Cn,Ci=C-ei-Cn,{outerStart:Vi,outerEnd:Ri,innerStart:Mi,innerEnd:er}=function Lu(c,l,o,m){const C=function mc(c){return Xs(c,["outerStart","outerEnd","innerStart","innerEnd"])}(c.options.borderRadius),k=(o-l)/2,U=Math.min(k,m*l/2),oe=be=>{const Ze=(o-Math.min(k,be))*m/2;return ln(be,0,Math.min(k,Ze))};return{outerStart:oe(C.outerStart),outerEnd:oe(C.outerEnd),innerStart:ln(C.innerStart,0,U),innerEnd:ln(C.innerEnd,0,U)}}(l,bn,qt,Ci-oi),sr=qt-Vi,Tr=qt-Ri,Or=oi+Vi/sr,yo=Ci-Ri/Tr,bo=bn+Mi,ao=bn+er,Wa=oi+Mi/bo,Mc=Ci-er/ao;if(c.beginPath(),k){if(c.arc(U,oe,qt,Or,yo),Ri>0){const Ya=Ea(Tr,yo,U,oe);c.arc(Ya.x,Ya.y,Ri,yo,Ci+Ie)}const ks=Ea(ao,Ci,U,oe);if(c.lineTo(ks.x,ks.y),er>0){const Ya=Ea(ao,Mc,U,oe);c.arc(Ya.x,Ya.y,er,Ci+Ie,Mc+Math.PI)}if(c.arc(U,oe,bn,Ci-er/bn,oi+Mi/bn,!0),Mi>0){const Ya=Ea(bo,Wa,U,oe);c.arc(Ya.x,Ya.y,Mi,Wa+Math.PI,oi-Ie)}const nl=Ea(sr,oi,U,oe);if(c.lineTo(nl.x,nl.y),Vi>0){const Ya=Ea(sr,Or,U,oe);c.arc(Ya.x,Ya.y,Vi,oi-Ie,Or)}}else{c.moveTo(U,oe);const ks=Math.cos(Or)*qt+U,nl=Math.sin(Or)*qt+oe;c.lineTo(ks,nl);const Ya=Math.cos(yo)*qt+U,Yf=Math.sin(yo)*qt+oe;c.lineTo(Ya,Yf)}c.closePath()}Object.defineProperties(Lc,{defaults:{enumerable:vl,value:ar},instances:{enumerable:vl,value:iu},overrides:{enumerable:vl,value:Rs},registry:{enumerable:vl,value:Lo},version:{enumerable:vl,value:"3.9.1"},getChart:{enumerable:vl,value:jo},register:{enumerable:vl,value:(...c)=>{Lo.add(...c),wd()}},unregister:{enumerable:vl,value:(...c)=>{Lo.remove(...c),wd()}}});class Ll extends Lr{constructor(l){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,l&&Object.assign(this,l)}inRange(l,o,m){const C=this.getProps(["x","y"],m),{angle:k,distance:U}=Ht(C,{x:l,y:o}),{startAngle:oe,endAngle:be,innerRadius:Ze,outerRadius:St,circumference:qt}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],m),bn=this.options.spacing/2,An=G(qt,be-oe)>=ge||vn(k,oe,be),Wn=Xe(U,Ze+bn,St+bn);return An&&Wn}getCenterPoint(l){const{x:o,y:m,startAngle:C,endAngle:k,innerRadius:U,outerRadius:oe}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],l),{offset:be,spacing:Ze}=this.options,St=(C+k)/2,qt=(U+oe+Ze+be)/2;return{x:o+Math.cos(St)*qt,y:m+Math.sin(St)*qt}}tooltipPosition(l){return this.getCenterPoint(l)}draw(l){const{options:o,circumference:m}=this,C=(o.offset||0)/2,k=(o.spacing||0)/2,U=o.circular;if(this.pixelMargin="inner"===o.borderAlign?.33:0,this.fullCircles=m>ge?Math.floor(m/ge):0,0===m||this.innerRadius<0||this.outerRadius<0)return;l.save();let oe=0;if(C){oe=C/2;const Ze=(this.startAngle+this.endAngle)/2;l.translate(Math.cos(Ze)*oe,Math.sin(Ze)*oe),this.circumference>=K&&(oe=C)}l.fillStyle=o.backgroundColor,l.strokeStyle=o.borderColor;const be=function Uh(c,l,o,m,C){const{fullCircles:k,startAngle:U,circumference:oe}=l;let be=l.endAngle;if(k){su(c,l,o,m,U+ge,C);for(let Ze=0;Ze<k;++Ze)c.fill();isNaN(oe)||(be=U+oe%ge,oe%ge==0&&(be+=ge))}return su(c,l,o,m,be,C),c.fill(),be}(l,this,oe,k,U);(function vc(c,l,o,m,C,k){const{options:U}=l,{borderWidth:oe,borderJoinStyle:be}=U,Ze="inner"===U.borderAlign;!oe||(Ze?(c.lineWidth=2*oe,c.lineJoin=be||"round"):(c.lineWidth=oe,c.lineJoin=be||"bevel"),l.fullCircles&&function _c(c,l,o){const{x:m,y:C,startAngle:k,pixelMargin:U,fullCircles:oe}=l,be=Math.max(l.outerRadius-U,0),Ze=l.innerRadius+U;let St;for(o&&Fu(c,l,k+ge),c.beginPath(),c.arc(m,C,Ze,k+ge,k,!0),St=0;St<oe;++St)c.stroke();for(c.beginPath(),c.arc(m,C,be,k,k+ge),St=0;St<oe;++St)c.stroke()}(c,l,Ze),Ze&&Fu(c,l,C),su(c,l,o,m,C,k),c.stroke())}
vendor: 8,479 bytes, line 1
1)(l,this,oe,k,be,U),l.restore()}}function Nu(c,l,o=l){c.lineCap=G(o.borderCapStyle,l.borderCapStyle),c.setLineDash(G(o.borderDash,l.borderDash)),c.lineDashOffset=G(o.borderDashOffset,l.borderDashOffset),c.lineJoin=G(o.borderJoinStyle,l.borderJoinStyle),c.lineWidth=G(o.borderWidth,l.borderWidth),c.strokeStyle=G(o.borderColor,l.borderColor)}function Bu(c,l,o){c.lineTo(o.x,o.y)}function au(c,l,o={}){const m=c.length,{start:C=0,end:k=m-1}=o,{start:U,end:oe}=l,be=Math.max(C,U),Ze=Math.min(k,oe);return{count:m,start:be,loop:l.loop,ilen:Ze<be&&!(C<U&&k<U||C>oe&&k>oe)?m+Ze-be:Ze-be}}function yc(c,l,o,m){const{points:C,options:k}=l,{count:U,start:oe,loop:be,ilen:Ze}=au(C,o,m),St=function ou(c){return c.stepped?vr:c.tension||"monotone"===c.cubicInterpolationMode?Po:Bu}(k);let Cn,An,Wn,{move:qt=!0,reverse:bn}=m||{};for(Cn=0;Cn<=Ze;++Cn)An=C[(oe+(bn?Ze-Cn:Cn))%U],!An.skip&&(qt?(c.moveTo(An.x,An.y),qt=!1):St(c,Wn,An,bn,k.stepped),Wn=An);return be&&(An=C[(oe+(bn?Ze:0))%U],St(c,Wn,An,bn,k.stepped)),!!be}function $l(c,l,o,m){const C=l.points,{count:k,start:U,ilen:oe}=au(C,o,m),{move:be=!0,reverse:Ze}=m||{};let bn,Cn,An,Wn,ei,oi,St=0,qt=0;const Ci=Ri=>(U+(Ze?oe-Ri:Ri))%k,Vi=()=>{Wn!==ei&&(c.lineTo(St,ei),c.lineTo(St,Wn),c.lineTo(St,oi))};for(be&&(Cn=C[Ci(0)],c.moveTo(Cn.x,Cn.y)),bn=0;bn<=oe;++bn){if(Cn=C[Ci(bn)],Cn.skip)continue;const Ri=Cn.x,Mi=Cn.y,er=0|Ri;er===An?(Mi<Wn?Wn=Mi:Mi>ei&&(ei=Mi),St=(qt*St+Ri)/++qt):(Vi(),c.lineTo(Ri,Mi),An=er,qt=0,Wn=ei=Mi),oi=Mi}Vi()}function Nl(c){const l=c.options;return c._decimated||c._loop||l.tension||"monotone"===l.cubicInterpolationMode||l.stepped||l.borderDash&&l.borderDash.length?yc:$l}Ll.id="arc",Ll.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ll.defaultRoutes={backgroundColor:"backgroundColor"};const qa="function"==typeof Path2D;let ql=(()=>{class c extends Lr{constructor(o){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,o&&Object.assign(this,o)}updateControlPoints(o,m){const C=this.options;!C.tension&&"monotone"!==C.cubicInterpolationMode||C.stepped||this._pointsUpdated||(mt(this._points,C,o,C.spanGaps?this._loop:this._fullLoop,m),this._pointsUpdated=!0)}set points(o){this._points=o,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Oi(c,l){const o=c.points,m=c.options.spanGaps,C=o.length;if(!C)return[];const k=!!c._loop,{start:U,end:oe}=function Yn(c,l,o,m){let C=0,k=l-1;if(o&&!m)for(;C<l&&!c[C].skip;)C++;for(;C<l&&c[C].skip;)C++;for(C%=l,o&&(k+=C);k>C&&c[k%l].skip;)k--;return k%=l,{start:C,end:k}}(o,C,k,m);return function Ji(c,l,o,m){return m&&m.setContext&&o?function _r(c,l,o,m){const C=c._chart.getContext(),k=wr(c.options),{_datasetIndex:U,options:{spanGaps:oe}}=c,be=o.length,Ze=[];let St=k,qt=l[0].start,bn=qt;function Cn(An,Wn,ei,oi){const Ci=oe?-1:1;if(An!==Wn){for(An+=be;o[An%be].skip;)An-=Ci;for(;o[Wn%be].skip;)Wn+=Ci;An%be!=Wn%be&&(Ze.push({start:An%be,end:Wn%be,loop:ei,style:oi}),St=oi,qt=Wn%be)}}for(const An of l){qt=oe?qt:An.start;let ei,Wn=o[qt%be];for(bn=qt+1;bn<=An.end;bn++){const oi=o[bn%be];ei=wr(m.setContext(bs(C,{type:"segment",p0:Wn,p1:oi,p0DataIndex:(bn-1)%be,p1DataIndex:bn%be,datasetIndex:U}))),Li(ei,St)&&Cn(qt,bn-1,An.loop,St),Wn=oi,St=ei}qt<bn-1&&Cn(qt,bn-1,An.loop,St)}return Ze}(c,l,o,m):l}(c,!0===m?[{start:U,end:oe,loop:k}]:function ci(c,l,o,m){const C=c.length,k=[];let be,U=l,oe=c[l];for(be=l+1;be<=o;++be){const Ze=c[be%C];Ze.skip||Ze.stop?oe.skip||(k.push({start:l%C,end:(be-1)%C,loop:m=!1}),l=U=Ze.stop?be:null):(U=be,oe.skip&&(l=be)),oe=Ze}return null!==U&&k.push({start:l%C,end:U%C,loop:m}),k}(o,U,oe<U?oe+C:oe,!!c._fullLoop&&0===U&&oe===C-1),o,l)}(this,this.options.segment))}first(){const o=this.segments;return o.length&&this.points[o[0].start]}last(){const o=this.segments,C=o.length;return C&&this.points[o[C-1].end]}interpolate(o,m){const C=this.options,k=o[m],U=this.points,oe=In(this,{property:m,start:k,end:k});if(!oe.length)return;const be=[],Ze=function Vo(c){return c.stepped?oo:c.tension||"monotone"===c.cubicInterpolationMode?Ia:Yo}(C);let St,qt;for(St=0,qt=oe.length;St<qt;++St){const{start:bn,end:Cn}=oe[St],An=U[bn],Wn=U[Cn];if(An===Wn){be.push(An);continue}const oi=Ze(An,Wn,Math.abs((k-An[m])/(Wn[m]-An[m])),C.stepped);oi[m]=o[m],be.push(oi)}return 1===be.length?be[0]:be}pathSegment(o,m,C){return Nl(this)(o,this,m,C)}path(o,m,C){const k=this.segments,U=Nl(this);let oe=this._loop;m=m||0,C=C||this.points.length-m;for(const be of k)oe&=U(o,this,be,{start:m,end:m+C-1});return!!oe}draw(o,m,C,k){(this.points||[]).length&&(this.options||{}).borderWidth&&(o.save(),function yl(c,l,o,m){qa&&!l.options.segment?function rl(c,l,o,m){let C=l._path;C||(C=l._path=new Path2D,l.path(C,o,m)&&C.closePath()),Nu(c,l.options),c.stroke(C)}(c,l,o,m):function ph(c,l,o,m){const{segments:C,options:k}=l,U=Nl(l);for(const oe of C)Nu(c,k,oe.style),c.beginPath(),U(c,l,oe,{start:o,end:o+m-1})&&c.closePath(),c.stroke()}(c,l,o,m)}(o,this,C,k),o.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return c.id="line",c.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},c.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},c.descriptors={_scriptable:!0,_indexable:l=>"borderDash"!==l&&"fill"!==l},c})();function lu(c,l,o,m){const C=c.options,{[o]:k}=c.getProps([o],m);return Math.abs(l-k)<C.radius+C.hitRadius}let jh=(()=>{class c extends Lr{constructor(o){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,o&&Object.assign(this,o)}inRange(o,m,C){const k=this.options,{x:U,y:oe}=this.getProps(["x","y"],C);return Math.pow(o-U,2)+Math.pow(m-oe,2)<Math.pow(k.hitRadius+k.radius,2)}inXRange(o,m){return lu(this,o,"x",m)}inYRange(o,m){return lu(this,o,"y",m)}getCenterPoint(o){const{x:m,y:C}=this.getProps(["x","y"],o);return{x:m,y:C}}size(o){let m=(o=o||this.options||{}).radius||0;return m=Math.max(m,m&&o.hoverRadius||0),2*(m+(m&&o.borderWidth||0))}draw(o,m){const C=this.options;this.skip||C.radius<.1||!Ro(this,m,this.size(C)/2)||(o.strokeStyle=C.borderColor,o.lineWidth=C.borderWidth,o.fillStyle=C.backgroundColor,Kr(o,C,this.x,this.y))}getRange(){const o=this.options||{};return o.radius+o.hitRadius}}return c.id="point",c.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},c.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},c})();function gf(c,l){const{x:o,y:m,base:C,width:k,height:U}=c.getProps(["x","y","base","width","height"],l);let oe,be,Ze,St,qt;return c.horizontal?(qt=U/2,oe=Math.min(o,C),be=Math.max(o,C),Ze=m-qt,St=m+qt):(qt=k/2,oe=o-qt,be=o+qt,Ze=Math.min(m,C),St=Math.max(m,C)),{left:oe,top:Ze,right:be,bottom:St}}function cu(c,l,o,m){return c?0:ln(l,o,m)}function Uu(c,l,o,m){const C=null===l,k=null===o,oe=c&&!(C&&k)&&gf(c,m);return oe&&(C||Xe(l,oe.left,oe.right))&&(k||Xe(o,oe.top,oe.bottom))}function gh(c,l){c.rect(l.x,l.y,l.w,l.h)}function mh(c,l,o={}){const m=c.x!==o.x?-l:0,C=c.y!==o.y?-l:0;return{x:c.x+m,y:c.y+C,w:c.w+((c.x+c.w!==o.x+o.w?l:0)-m),h:c.h+((c.y+c.h!==o.y+o.h?l:0)-C),radius:c.radius}}class uu extends Lr{constructor(l){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,l&&Object.assign(this,l)}draw(l){const{inflateAmount:o,options:{borderColor:m,backgroundColor:C}}=this,{inner:k,outer:U}=function Xo(c){const l=gf(c),o=l.right-l.left,m=l.bottom-l.top,C=function Tp(c,l,o){const C=c.borderSkipped,k=Mo(c.options.borderWidth);return{t:cu(C.top,k.top,0,o),r:cu(C.right,k.right,0,l),b:cu(C.bottom,k.bottom,0,o),l:cu(C.left,k.left,0,l)}}(c,o/2,m/2),k=function mf(c,l,o){const{enableBorderRadius:m}=c.getProps(["enableBorderRadius"]),C=c.options.borderRadius,k=no(C),U=Math.min(l,o),oe=c.borderSkipped,be=m||L(C);return{topLeft:cu(!be||oe.top||oe.left,k.topLeft,0,U),topRight:cu(!be||oe.top||oe.right,k.topRight,0,U),bottomLeft:cu(!be||oe.bottom||oe.left,k.bottomLeft,0,U),bottomRight:cu(!be||oe.bottom||oe.right,k.bottomRight,0,U)}}(c,o/2,m/2);
1return{outer:{x:l.left,y:l.top,w:o,h:m,radius:k},inner:{x:l.left+C.l,y:l.top+C.t,w:o-C.l-C.r,h:m-C.t-C.b,radius:{topLeft:Math.max(0,k.topLeft-Math.max(C.t,C.l)),topRight:Math.max(0,k.topRight-Math.max(C.t,C.r)),bottomLeft:Math.max(0,k.bottomLeft-Math.max(C.b,C.l)),bottomRight:Math.max(0,k.bottomRight-Math.max(C.b,C.r))}}}}(this),oe=function Vh(c){return c.topLeft||c.topRight||c.bottomLeft||c.bottomRight}(U.radius)?ms:gh;l.save(),(U.w!==k.w||U.h!==k.h)&&(l.beginPath(),oe(l,mh(U,o,k)),l.clip(),oe(l,mh(k,-o,U)),l.fillStyle=m,l.fill("evenodd")),l.beginPath(),oe(l,mh(k,o)),l.fillStyle=C,l.fill(),l.restore()}inRange(l,o,m){return Uu(this,l,o,m)}inXRange(l,o){return Uu(this,l,null,o)}inYRange(l,o){return Uu(this,null,l,o)}getCenterPoint(l){const{x:o,y:m,base:C,horizontal:k}=this.getProps(["x","y","base","horizontal"],l);return{x:k?(o+C)/2:o,y:k?m:(m+C)/2}}getRange(l){return"x"===l?this.width/2:this.height/2}}uu.id="bar",uu.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},uu.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var _h=Object.freeze({__proto__:null,ArcElement:Ll,LineElement:ql,PointElement:jh,BarElement:uu});function Nc(c){if(c._decimated){const l=c._data;delete c._decimated,delete c._data,Object.defineProperty(c,"data",{value:l})}}function Qa(c){c.data.datasets.forEach(l=>{Nc(l)})}var Xl={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(c,l,o)=>{if(!o.enabled)return void Qa(c);const m=c.width;c.data.datasets.forEach((C,k)=>{const{_data:U,indexAxis:oe}=C,be=c.getDatasetMeta(k),Ze=U||C.data;if("y"===mo([oe,c.options.indexAxis])||!be.controller.supportsDecimation)return;const St=c.scales[be.xAxisID];if("linear"!==St.type&&"time"!==St.type||c.options.parsing)return;let An,{start:qt,count:bn}=function Ql(c,l){const o=l.length;let C,m=0;const{iScale:k}
vendor: 4,836 bytes, line 1
1=c,{min:U,max:oe,minDefined:be,maxDefined:Ze}=k.getUserBounds();return be&&(m=ln(Pe(l,k.axis,U).lo,0,o-1)),C=Ze?ln(Pe(l,k.axis,oe).hi+1,m,o)-m:o-m,{start:m,count:C}}(be,Ze);if(bn<=(o.threshold||4*m))Nc(C);else{switch(j(U)&&(C._data=Ze,delete C.data,Object.defineProperty(C,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(Wn){this._data=Wn}})),o.algorithm){case"lttb":An=function hu(c,l,o,m,C){const k=C.samples||m;if(k>=o)return c.slice(l,l+o);const U=[],oe=(o-2)/(k-2);let be=0;const Ze=l+o-1;let qt,bn,Cn,An,Wn,St=l;for(U[be++]=c[St],qt=0;qt<k-2;qt++){let Ci,ei=0,oi=0;const Vi=Math.floor((qt+1)*oe)+1+l,Ri=Math.min(Math.floor((qt+2)*oe)+1,o)+l,Mi=Ri-Vi;for(Ci=Vi;Ci<Ri;Ci++)ei+=c[Ci].x,oi+=c[Ci].y;ei/=Mi,oi/=Mi;const er=Math.floor(qt*oe)+1+l,sr=Math.min(Math.floor((qt+1)*oe)+1,o)+l,{x:Tr,y:Or}=c[St];for(Cn=An=-1,Ci=er;Ci<sr;Ci++)An=.5*Math.abs((Tr-ei)*(c[Ci].y-Or)-(Tr-c[Ci].x)*(oi-Or)),An>Cn&&(Cn=An,bn=c[Ci],Wn=Ci);U[be++]=bn,St=Wn}return U[be++]=c[Ze],U}(Ze,qt,bn,m,o);break;case"min-max":An=function Ba(c,l,o,m){let U,oe,be,Ze,St,qt,bn,Cn,An,Wn,C=0,k=0;const ei=[],Ci=c[l].x,Ri=c[l+o-1].x-Ci;for(U=l;U<l+o;++U){oe=c[U],be=(oe.x-Ci)/Ri*m,Ze=oe.y;const Mi=0|be;if(Mi===St)Ze<An?(An=Ze,qt=U):Ze>Wn&&(Wn=Ze,bn=U),C=(k*C+oe.x)/++k;else{const er=U-1;if(!j(qt)&&!j(bn)){const sr=Math.min(qt,bn),Tr=Math.max(qt,bn);sr!==Cn&&sr!==er&&ei.push($_(K_({},c[sr]),{x:C})),Tr!==Cn&&Tr!==er&&ei.push($_(K_({},c[Tr]),{x:C}))}U>0&&er!==Cn&&ei.push(c[er]),ei.push(oe),St=Mi,k=0,An=Wn=Ze,qt=bn=Cn=U}}return ei}(Ze,qt,bn,m);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}C._decimated=An}})},destroy(c){Qa(c)}};function du(c,l,o,m){if(m)return;let C=l[c],k=o[c];return"angle"===c&&(C=hn(C),k=hn(k)),{property:c,start:C,end:k}}function bc(c,l,o){for(;l>c;l--){const m=o[l];if(!isNaN(m.x)&&!isNaN(m.y))break}return l}function fu(c,l,o,m){return c&&l?m(c[o],l[o]):c?c[o]:l?l[o]:0}function ju(c,l){let o=[],m=!1;return D(c)?(m=!0,o=c):o=function Zl(c,l){const{x:o=null,y:m=null}=c||{},C=l.points,k=[];return l.segments.forEach(({start:U,end:oe})=>{oe=bc(U,oe,C);const be=C[U],Ze=C[oe];null!==m?(k.push({x:be.x,y:m}),k.push({x:Ze.x,y:m})):null!==o&&(k.push({x:o,y:be.y}),k.push({x:o,y:Ze.y}))}),k}(c,l),o.length?new ql({points:o,options:{tension:0},_loop:m,_fullLoop:m}):null}function wc(c){return c&&!1!==c.fill}function Ec(c,l,o){let C=c[l].fill;const k=[l];let U;if(!o)return C;for(;!1!==C&&-1===k.indexOf(C);){if(!ce(C))return C;if(U=c[C],!U)return!1;if(U.visible)return C;k.push(C),C=U.fill}return!1}function Hh(c,l,o){const m=function Ca(c){const l=c.options,o=l.fill;let m=G(o&&o.target,o);return void 0===m&&(m=!!l.backgroundColor),!1!==m&&null!==m&&(!0===m?"origin":m)}(c);if(L(m))return!isNaN(m.value)&&m;let C=parseFloat(m);return ce(C)&&Math.floor(C)===C?function Jl(c,l,o,m){return("-"===c||"+"===c)&&(o=l+o),!(o===l||o<0||o>=m)&&o}(m[0],l,C,o):["origin","start","end","stack","shape"].indexOf(m)>=0&&m}function zh(c,l,o){const m=[];for(let C=0;C<o.length;C++){const k=o[C],{first:U,last:oe,point:be}=vh(k,l,"x");if(!(!be||U&&oe))if(U)m.unshift(be);else if(c.push(be),!oe)break}c.push(...m)}function vh(c,l,o){const m=c.interpolate(l,o);if(!m)return{};const C=m[o],k=c.segments,U=c.points;let oe=!1,be=!1;for(let Ze=0;Ze<k.length;Ze++){const St=k[Ze],qt=U[St.start][o],bn=U[St.end][o];if(Xe(C,qt,bn)){oe=C===qt,be=C===bn;break}}return{first:oe,last:be,point:m}}class ua{constructor(l){this.x=l.x,this.y=l.y,this.radius=l.radius}pathSegment(l,o,m){const{x:C,y:k,radius:U}=this;return l.arc(C,k,U,(o=o||{start:0,end:ge}).end,o.start,!0),!m.bounds}interpolate(l){const{x:o,y:m,radius:C}=this,k=l.angle;return{x:o+Math.cos(k)*C,y:m+Math.sin(k)*C,angle:k}}}function Yh(c,l,o){const m=function Vu(c){const{chart:l,fill:o,line:m}=c;if(ce(o))return function Ua(c,l){const o=c.getDatasetMeta(l);return o&&c.isDatasetVisible(l)?o.dataset:null}(l,o);if("stack"===o)return function Gh(c){const{scale:l,index:o,line:m}=c,C=[],k=m.segments,U=m.points,oe=function Ed(c,l){const o=[],m=c.getMatchingVisibleMetas("line");for(let C=0;C<m.length;C++){const k=m[C];if(k.index===l)break;k.hidden||o.unshift(k.dataset)}return o}(l,o);oe.push(ju({x:null,y:l.bottom},m));for(let be=0;be<k.length;be++){const Ze=k[be];for(let St=Ze.start;St<=Ze.end;St++)zh(C,U[St],oe)}return new ql({points:C,options:{}})}(c);if("shape"===o)return!0;const C=function Wh(c){return(c.scale||{}).getPointPositionForValue?function Hu(c){const{scale:l,fill:o}=c,m=l.options,C=l.getLabels().length,k=m.reverse?l.max:l.min,U=function Xa(c,l,o){let m;return m="start"===c?o:"end"===c?l.options.reverse?l.min:l.max:L(c)?c.value:l.getBaseValue(),m}(o,l,k),oe=[];if(m.grid.circular){const be=l.getPointPositionForValue(0,k);return new ua({x:be.x,y:be.y,radius:l.getDistanceFromCenterForValue(U)})}for(let be=0;be<C;
vendor: 10,798 bytes, line 1
1++be)oe.push(l.getPointPositionForValue(be,U));return oe}(c):function pu(c){const{scale:l={},fill:o}=c,m=function Bc(c,l){let o=null;return"start"===c?o=l.bottom:"end"===c?o=l.top:L(c)?o=l.getPixelForValue(c.value):l.getBasePixel&&(o=l.getBasePixel()),o}(o,l);if(ce(m)){const C=l.isHorizontal();return{x:C?m:null,y:C?null:m}}return null}(c)}(c);return C instanceof ua?C:ju(C,m)}(l),{line:C,scale:k,axis:U}=l,oe=C.options,be=oe.fill,Ze=oe.backgroundColor,{above:St=Ze,below:qt=Ze}=be||{};m&&C.points.length&&(xs(c,o),function _f(c,l){const{line:o,target:m,above:C,below:k,area:U,scale:oe}=l,be=o._loop?"angle":l.axis;c.save(),"x"===be&&k!==C&&(Uc(c,m,U.top),ec(c,{line:o,target:m,color:C,scale:oe,property:be}),c.restore(),c.save(),Uc(c,m,U.bottom)),ec(c,{line:o,target:m,color:k,scale:oe,property:be}),c.restore()}(c,{line:C,target:m,above:St,below:qt,area:o,scale:k,axis:U}),Ui(c))}function Uc(c,l,o){const{segments:m,points:C}=l;let k=!0,U=!1;c.beginPath();for(const oe of m){const{start:be,end:Ze}=oe,St=C[be],qt=C[bc(be,Ze,C)];k?(c.moveTo(St.x,St.y),k=!1):(c.lineTo(St.x,o),c.lineTo(St.x,St.y)),U=!!l.pathSegment(c,oe,{move:U}),U?c.closePath():c.lineTo(qt.x,o)}c.lineTo(l.first().x,o),c.closePath(),c.clip()}function ec(c,l){const{line:o,target:m,property:C,color:k,scale:U}=l,oe=function Ho(c,l,o){const m=c.segments,C=c.points,k=l.points,U=[];for(const oe of m){let{start:be,end:Ze}=oe;Ze=bc(be,Ze,C);const St=du(o,C[be],C[Ze],oe.loop);if(!l.segments){U.push({source:oe,target:St,start:C[be],end:C[Ze]});continue}const qt=In(l,St);for(const bn of qt){const Cn=du(o,k[bn.start],k[bn.end],bn.loop),An=kn(oe,C,Cn);for(const Wn of An)U.push({source:Wn,target:bn,start:{[o]:fu(St,Cn,"start",Math.max)},end:{[o]:fu(St,Cn,"end",Math.min)}})}}return U}(o,m,C);for(const{source:be,target:Ze,start:St,end:qt}of oe){const{style:{backgroundColor:bn=k}={}}=be,Cn=!0!==m;c.save(),c.fillStyle=bn,gu(c,U,Cn&&du(C,St,qt)),c.beginPath();const An=!!o.pathSegment(c,be);let Wn;if(Cn){An?c.closePath():Gu(c,m,qt,C);const ei=!!m.pathSegment(c,Ze,{move:An,reverse:!0});Wn=An&&ei,Wn||Gu(c,m,St,C)}c.closePath(),c.fill(Wn?"evenodd":"nonzero"),c.restore()}}function gu(c,l,o){const{top:m,bottom:C}=l.chart.chartArea,{property:k,start:U,end:oe}=o||{};"x"===k&&(c.beginPath(),c.rect(U,m,oe-U,C-m),c.clip())}function Gu(c,l,o,m){const C=l.interpolate(o,m);C&&c.lineTo(C.x,C.y)}var Ko={id:"filler",afterDatasetsUpdate(c,l,o){const m=(c.data.datasets||[]).length,C=[];let k,U,oe,be;for(U=0;U<m;++U)k=c.getDatasetMeta(U),oe=k.dataset,be=null,oe&&oe.options&&oe instanceof ql&&(be={visible:c.isDatasetVisible(U),index:U,fill:Hh(oe,U,m),chart:c,axis:k.controller.options.indexAxis,scale:k.vScale,line:oe}),k.$filler=be,C.push(be);for(U=0;U<m;++U)be=C[U],be&&!1!==be.fill&&(be.fill=Ec(C,U,o.propagate))},beforeDraw(c,l,o){const m="beforeDraw"===o.drawTime,C=c.getSortedVisibleDatasetMetas(),k=c.chartArea;for(let U=C.length-1;U>=0;--U){const oe=C[U].$filler;!oe||(oe.line.updateControlPoints(k,oe.axis),m&&oe.fill&&Yh(c.ctx,oe,k))}},beforeDatasetsDraw(c,l,o){if("beforeDatasetsDraw"!==o.drawTime)return;const m=c.getSortedVisibleDatasetMetas();for(let C=m.length-1;C>=0;--C){const k=m[C].$filler;wc(k)&&Yh(c.ctx,k,c.chartArea)}},beforeDatasetDraw(c,l,o){const m=l.meta.$filler;!wc(m)||"beforeDatasetDraw"!==o.drawTime||Yh(c.ctx,m,c.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Go=(c,l)=>{let{boxHeight:o=l,boxWidth:m=l}=c;return c.usePointStyle&&(o=Math.min(o,l),m=c.pointStyleWidth||Math.min(m,l)),{boxWidth:m,boxHeight:o,itemHeight:Math.max(l,o)}};class zu extends Lr{constructor(l){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=l.chart,this.options=l.options,this.ctx=l.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(l,o,m){this.maxWidth=l,this.maxHeight=o,this._margins=m,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const l=this.options.labels||{};let o=le(l.generateLabels,[this.chart],this)||[];l.filter&&(o=o.filter(m=>l.filter(m,this.chart.data))),l.sort&&(o=o.sort((m,C)=>l.sort(m,C,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:l,ctx:o}=this;if(!l.display)return void(this.width=this.height=0);const m=l.labels,C=Dr(m.font),k=C.size,U=this._computeTitleHeight(),{boxWidth:oe,itemHeight:be}=Go(m,k);let Ze,St;o.font=C.string,this.isHorizontal()?(Ze=this.maxWidth,St=this._fitRows(U,k,oe,be)+10):(St=this.maxHeight,Ze=this._fitCols(U,k,oe,be)+10),this.width=Math.min(Ze,l.maxWidth||this.maxWidth),this.height=Math.min(St,l.maxHeight||this.maxHeight)}_fitRows(l,o,m,C){const{ctx:k,maxWidth:U,options:{labels:{padding:oe}}}=this,be=this.legendHitBoxes=[],Ze=this.lineWidths=[0],St=C+oe;let qt=l;k.textAlign="left",k.textBaseline="middle";let bn=-1,Cn=-St;return this.legendItems.forEach((An,Wn)=>{const ei=m+o/2+k.measureText(An.text).width;(0===Wn||Ze[Ze.length-1]+ei+2*oe>U)&&(qt+=St,Ze[Ze.length-(Wn>0?0:1)]=0,Cn+=St,bn++),be[Wn]={left:0,top:Cn,row:bn,width:ei,height:C},Ze[Ze.length-1]+=ei+oe}),qt}_fitCols(l,o,m,C){const{ctx:k,maxHeight:U,options:{labels:{padding:oe}}}=this,be=this.legendHitBoxes=[],Ze=this.columnSizes=[],St=U-l;let qt=oe,bn=0,Cn=0,An=0,Wn=0;return this.legendItems.forEach((ei,oi)=>{const Ci=m+o/2+k.measureText(ei.text).width;oi>0&&Cn+C+2*oe>St&&(qt+=bn+oe,Ze.push({width:bn,height:Cn}),An+=bn+oe,Wn++,bn=Cn=0),be[oi]={left:An,top:Cn,col:Wn,width:Ci,height:C},bn=Math.max(bn,Ci),Cn+=C+oe}),qt+=bn,Ze.push({width:bn,height:Cn}),qt}adjustHitBoxes(){if(!this.options.display)return;const l=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:m,labels:{padding:C},rtl:k}}=this,U=Bt(k,this.left,this.width);if(this.isHorizontal()){let oe=0,be=zn(m,this.left+C,this.right-this.lineWidths[oe]);for(const Ze of o)oe!==Ze.row&&(oe=Ze.row,be=zn(m,this.left+C,this.right-this.lineWidths[oe])),Ze.top+=this.top+l+C,Ze.left=U.leftForLtr(U.x(be),Ze.width),be+=Ze.width+C}else{let oe=0,be=zn(m,this.top+l+C,this.bottom-this.columnSizes[oe].height);for(const Ze of o)Ze.col!==oe&&(oe=Ze.col,be=zn(m,this.top+l+C,this.bottom-this.columnSizes[oe].height)),Ze.top=be,Ze.left+=this.left+C,Ze.left=U.leftForLtr(U.x(Ze.left),Ze.width),be+=Ze.height+C}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const l=this.ctx;xs(l,this),this._draw(),Ui(l)}}_draw(){const{options:l,columnSizes:o,lineWidths:m,ctx:C}=this,{align:k,labels:U}=l,oe=ar.color,be=Bt(l.rtl,this.left,this.width),Ze=Dr(U.font),{color:St,padding:qt}=U,bn=Ze.size,Cn=bn/2;let An;this.drawTitle(),C.textAlign=be.textAlign("left"),C.textBaseline="middle",C.lineWidth=.5,C.font=Ze.string;const{boxWidth:Wn,boxHeight:ei,itemHeight:oi}=Go(U,bn),Ri=this.isHorizontal(),Mi=this._computeTitleHeight();An=Ri?{x:zn(k,this.left+qt,this.right-m[0]),y:this.top+qt+Mi,line:0}:{x:this.left+qt,y:zn(k,this.top+Mi+qt,this.bottom-o[0].height),line:0},ye(this.ctx,l.textDirection);const er=oi+qt;this.legendItems.forEach((sr,Tr)=>{C.strokeStyle=sr.fontColor||St,C.fillStyle=sr.fontColor||St;const Or=C.measureText(sr.text).width,yo=be.textAlign(sr.textAlign||(sr.textAlign=U.textAlign)),bo=Wn+Cn+Or;let ao=An.x,Wa=An.y;be.setWidth(this.width),Ri?Tr>0&&ao+bo+qt>this.right&&(Wa=An.y+=er,An.line++,ao=An.x=zn(k,this.left+qt,this.right-m[An.line])):Tr>0&&Wa+er>this.bottom&&(ao=An.x=ao+o[An.line].width+qt,An.line++,Wa=An.y=zn(k,this.top+Mi+qt,this.bottom-o[An.line].height)),function(sr,Tr,Or){if(isNaN(Wn)||Wn<=0||isNaN(ei)||ei<0)return;C.save();const yo=G(Or.lineWidth,1);if(C.fillStyle=G(Or.fillStyle,oe),C.lineCap=G(Or.lineCap,"butt"),C.lineDashOffset=G(Or.lineDashOffset,0),C.lineJoin=G(Or.lineJoin,"miter"),C.lineWidth=yo,C.strokeStyle=G(Or.strokeStyle,oe),C.setLineDash(G(Or.lineDash,[])),U.usePointStyle){const bo={radius:ei*Math.SQRT2/2,pointStyle:Or.pointStyle,rotation:Or.rotation,borderWidth:yo},ao=be.xPlus(sr,Wn/2);zs(C,bo,ao,Tr+Cn,U.pointStyleWidth&&Wn)}else{const bo=Tr+Math.max((bn-ei)/2,0),ao=be.leftForLtr(sr,Wn),Wa=no(Or.borderRadius);C.beginPath(),Object.values(Wa).some(Mc=>0!==Mc)?ms(C,{x:ao,y:bo,w:Wn,h:ei,radius:Wa}):C.rect(ao,bo,Wn,ei),C.fill(),0!==yo&&C.stroke()}C.restore()}(be.x(ao),Wa,sr),ao=((c,l,o,m)=>c===(m?"left":"right")?o:"center"===c?(l+o)/2:l)(yo,ao+Wn+Cn,Ri?ao+bo:this.right,l.rtl),function(sr,Tr,Or){Ps(C,Or.text,sr,Tr+oi/2,Ze,{strikethrough:Or.hidden,textAlign:be.textAlign(Or.textAlign)})}(be.x(ao),Wa,sr),Ri?An.x+=bo+qt:An.y+=er}),Te(this.ctx,l.textDirection)}drawTitle(){const l=this.options,o=l.title,m=Dr(o.font),C=Fs(o.padding);if(!o.display)return;const k=Bt(l.rtl,this.left,this.width),U=this.ctx,oe=o.position,Ze=C.top+m.size/2;let St,qt=this.left,bn=this.width;if(this.isHorizontal())bn=Math.max(...this.lineWidths),St=this.top+Ze,qt=zn(l.align,qt,this.right-bn);else{const An=this.columnSizes.reduce((Wn,ei)=>Math.max(Wn,ei.height),0);St=Ze+zn(l.align,this.top,this.bottom-An-l.labels.padding-this._computeTitleHeight())}const Cn=zn(oe,qt,qt+bn);U.textAlign=k.textAlign(Zn(oe)),U.textBaseline="middle",U.strokeStyle=o.color,U.fillStyle=o.color,U.font=m.string,Ps(U,o.text,Cn,St,m)}_computeTitleHeight(){const l=this.options.title,o=Dr(l.font),m=Fs(l.padding);return l.display?o.lineHeight+m.height:0}_getLegendItemAt(l,o){let m,C,k;if(Xe(l,this.left,this.right)&&Xe(o,this.top,this.bottom))for(k=this.legendHitBoxes,m=0;m<k.length;++m)if(C=k[m],Xe(l,C.left,C.left+C.width)&&Xe(o,C.top,C.top+C.height))return this.legendItems[m];return null}handleEvent(l){const o=this.options;if(!function yh(c,l){return!(("mousemove"!==c&&"mouseout"!==c||!l.onHover&&!l.onLeave)&&(!l.onClick||"click"!==c&&"mouseup"!==c))}(l.type,o))return;const m=this._getLegendItemAt(l.x,l.y);if("mousemove"===l.type||"mouseout"===l.type){const C=this._hoveredItem,k=((c,l)=>null!==c&&null!==l&&c.datasetIndex===l.datasetIndex&&c.index===l.index)(C,m);C&&!k&&le(o.onLeave,[l,C,this],this),this._hoveredItem=m,m&&!k&&le(o.onHover,[l,m,this],this)}else m&&le(o.onClick,[l,m,this],this)}}var _u={id:"legend",_element:zu,start(c,l,o){const m=c.legend=new zu({ctx:c.ctx,options:o,chart:c});ia.configure(c,m,o),ia.addBox(c,m)},stop(c){ia.removeBox(c,c.legend),delete c.legend},beforeUpdate(c,l,o){const m=c.legend;ia.configure(c,m,o),m.options=o},afterUpdate(c){const l=c.legend;l.buildLabels(),l.adjustHitBoxes()},afterEvent(c,l){l.replay||c.legend.handleEvent(l.event)}
vendor: 5,157 bytes, line 1
1,defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(c,l,o){const m=l.datasetIndex,C=o.chart;C.isDatasetVisible(m)?(C.hide(m),l.hidden=!0):(C.show(m),l.hidden=!1)},onHover:null,onLeave:null,labels:{color:c=>c.chart.options.color,boxWidth:40,padding:10,generateLabels(c){const l=c.data.datasets,{labels:{usePointStyle:o,pointStyle:m,textAlign:C,color:k}}=c.legend.options;return c._getSortedDatasetMetas().map(U=>{const oe=U.controller.getStyle(o?0:void 0),be=Fs(oe.borderWidth);return{text:l[U.index].label,fillStyle:oe.backgroundColor,fontColor:k,hidden:!U.visible,lineCap:oe.borderCapStyle,lineDash:oe.borderDash,lineDashOffset:oe.borderDashOffset,lineJoin:oe.borderJoinStyle,lineWidth:(be.width+be.height)/4,strokeStyle:oe.borderColor,pointStyle:m||oe.pointStyle,rotation:oe.rotation,textAlign:C||oe.textAlign,borderRadius:0,datasetIndex:U.index}},this)}},title:{color:c=>c.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:c=>!c.startsWith("on"),labels:{_scriptable:c=>!["generateLabels","filter","sort"].includes(c)}}};class Wu extends Lr{constructor(l){super(),this.chart=l.chart,this.options=l.options,this.ctx=l.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(l,o){const m=this.options;if(this.left=0,this.top=0,!m.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=l,this.height=this.bottom=o;const C=D(m.text)?m.text.length:1;this._padding=Fs(m.padding);const k=C*Dr(m.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=k:this.width=k}isHorizontal(){const l=this.options.position;return"top"===l||"bottom"===l}_drawArgs(l){const{top:o,left:m,bottom:C,right:k,options:U}=this,oe=U.align;let Ze,St,qt,be=0;return this.isHorizontal()?(St=zn(oe,m,k),qt=o+l,Ze=k-m):("left"===U.position?(St=m+l,qt=zn(oe,C,o),be=-.5*K):(St=k-l,qt=zn(oe,o,C),be=.5*K),Ze=C-o),{titleX:St,titleY:qt,maxWidth:Ze,rotation:be}}draw(){const l=this.ctx,o=this.options;if(!o.display)return;const m=Dr(o.font),k=m.lineHeight/2+this._padding.top,{titleX:U,titleY:oe,maxWidth:be,rotation:Ze}=this._drawArgs(k);Ps(l,o.text,0,0,m,{color:o.color,maxWidth:be,rotation:Ze,textAlign:Zn(o.align),textBaseline:"middle",translation:[U,oe]})}}var bl={id:"title",_element:Wu,start(c,l,o){!function vf(c,l){const o=new Wu({ctx:c.ctx,options:l,chart:c});ia.configure(c,o,l),ia.addBox(c,o),c.titleBlock=o}(c,o)},stop(c){ia.removeBox(c,c.titleBlock),delete c.titleBlock},beforeUpdate(c,l,o){const m=c.titleBlock;ia.configure(c,m,o),m.options=o},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const zo=new WeakMap;var bh={id:"subtitle",start(c,l,o){const m=new Wu({ctx:c.ctx,options:o,chart:c});ia.configure(c,m,o),ia.addBox(c,m),zo.set(c,m)},stop(c){ia.removeBox(c,zo.get(c)),zo.delete(c)},beforeUpdate(c,l,o){const m=zo.get(c);ia.configure(c,m,o),m.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ja={average(c){if(!c.length)return!1;let l,o,m=0,C=0,k=0;for(l=0,o=c.length;l<o;++l){const U=c[l].element;if(U&&U.hasValue()){const oe=U.tooltipPosition();m+=oe.x,C+=oe.y,++k}}return{x:m/k,y:C/k}},nearest(c,l){if(!c.length)return!1;let k,U,oe,o=l.x,m=l.y,C=Number.POSITIVE_INFINITY;for(k=0,U=c.length;k<U;++k){const be=c[k].element;if(be&&be.hasValue()){const St=jt(l,be.getCenterPoint());St<C&&(C=St,oe=be)}}if(oe){const be=oe.tooltipPosition();o=be.x,m=be.y}return{x:o,y:m}}};function wl(c,l){return l&&(D(l)?Array.prototype.push.apply(c,l):c.push(l)),c}function ma(c){return("string"==typeof c||c instanceof String)&&c.indexOf("\n")>-1?c.split("\n"):c}function wh(c,l){const{element:o,datasetIndex:m,index:C}=l,k=c.getDatasetMeta(m).controller,{label:U,value:oe}=k.getLabelAndValue(C);return{chart:c,label:U,parsed:k.getParsed(C),raw:c.data.datasets[m].data[C],formattedValue:oe,dataset:k.getDataset(),dataIndex:C,datasetIndex:m,element:o}}function Kh(c,l){const o=c.chart.ctx,{body:m,footer:C,title:k}=c,{boxWidth:U,boxHeight:oe}=l,be=Dr(l.bodyFont),Ze=Dr(l.titleFont),St=Dr(l.footerFont),qt=k.length,bn=C.length,Cn=m.length,An=Fs(l.padding);let Wn=An.height,ei=0,oi=m.reduce((Ri,Mi)=>Ri+Mi.before.length+Mi.lines.length+Mi.after.length,0);oi+=c.beforeBody.length+c.afterBody.length,qt&&(Wn+=qt*Ze.lineHeight+(qt-1)*l.titleSpacing+l.titleMarginBottom),oi&&(Wn+=Cn*(l.displayColors?Math.max(oe,be.lineHeight):be.lineHeight)+(oi-Cn)*be.lineHeight+(oi-1)*l.bodySpacing),bn&&(Wn+=l.footerMarginTop+bn*St.lineHeight+(bn-1)*l.footerSpacing);let Ci=0;const Vi=function(Ri){ei=Math.max(ei,o.measureText(Ri).width+Ci)};return o.save(),o.font=Ze.string,J(c.title,Vi),o.font=be.string,J(c.beforeBody.concat(c.afterBody),Vi),Ci=l.displayColors?U+2+l.boxPadding:0,J(m,Ri=>{J(Ri.before,Vi),J(Ri.lines,Vi),J(Ri.after,Vi)}
vendor: 9,142 bytes, line 1
1),Ci=0,o.font=St.string,J(c.footer,Vi),o.restore(),ei+=An.width,{width:ei,height:Wn}}function Dd(c,l,o,m){const{x:C,width:k}=o,{width:U,chartArea:{left:oe,right:be}}=c;let Ze="center";return"center"===m?Ze=C<=(oe+be)/2?"left":"right":C<=k/2?Ze="left":C>=U-k/2&&(Ze="right"),function Eh(c,l,o,m){const{x:C,width:k}=m,U=o.caretSize+o.caretPadding;if("left"===c&&C+k+U>l.width||"right"===c&&C-k-U<0)return!0}(Ze,c,l,o)&&(Ze="center"),Ze}function Sd(c,l,o){const m=o.yAlign||l.yAlign||function Cd(c,l){const{y:o,height:m}=l;return o<m/2?"top":o>c.height-m/2?"bottom":"center"}(c,o);return{xAlign:o.xAlign||l.xAlign||Dd(c,l,o,m),yAlign:m}}function yu(c,l,o,m){const{caretSize:C,caretPadding:k,cornerRadius:U}=c,{xAlign:oe,yAlign:be}=o,Ze=C+k,{topLeft:St,topRight:qt,bottomLeft:bn,bottomRight:Cn}=no(U);let An=function vu(c,l){let{x:o,width:m}=c;return"right"===l?o-=m:"center"===l&&(o-=m/2),o}(l,oe);const Wn=function Cc(c,l,o){let{y:m,height:C}=c;return"top"===l?m+=o:m-="bottom"===l?C+o:C/2,m}(l,be,Ze);return"center"===be?"left"===oe?An+=Ze:"right"===oe&&(An-=Ze):"left"===oe?An-=Math.max(St,bn)+C:"right"===oe&&(An+=Math.max(qt,Cn)+C),{x:ln(An,0,m.width-l.width),y:ln(Wn,0,m.height-l.height)}}function sl(c,l,o){const m=Fs(o.padding);return"center"===l?c.x+c.width/2:"right"===l?c.x+c.width-m.right:c.x+m.left}function Ns(c){return wl([],ma(c))}function bu(c,l){const o=l&&l.dataset&&l.dataset.tooltip&&l.dataset.tooltip.callbacks;return o?c.override(o):c}let Za=(()=>{class c extends Lr{constructor(o){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=o.chart||o._chart,this._chart=this.chart,this.options=o.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(o){this.options=o,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const o=this._cachedAnimations;if(o)return o;const m=this.chart,C=this.options.setContext(this.getContext()),k=C.enabled&&m.options.animation&&C.animations,U=new br(this.chart,k);return k._cacheable&&(this._cachedAnimations=Object.freeze(U)),U}getContext(){return this.$context||(this.$context=function ir(c,l,o){return bs(c,{tooltip:l,tooltipItems:o,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(o,m){const{callbacks:C}=m,k=C.beforeTitle.apply(this,[o]),U=C.title.apply(this,[o]),oe=C.afterTitle.apply(this,[o]);let be=[];return be=wl(be,ma(k)),be=wl(be,ma(U)),be=wl(be,ma(oe)),be}getBeforeBody(o,m){return Ns(m.callbacks.beforeBody.apply(this,[o]))}getBody(o,m){const{callbacks:C}=m,k=[];return J(o,U=>{const oe={before:[],lines:[],after:[]},be=bu(C,U);wl(oe.before,ma(be.beforeLabel.call(this,U))),wl(oe.lines,be.label.call(this,U)),wl(oe.after,ma(be.afterLabel.call(this,U))),k.push(oe)}),k}getAfterBody(o,m){return Ns(m.callbacks.afterBody.apply(this,[o]))}getFooter(o,m){const{callbacks:C}=m,k=C.beforeFooter.apply(this,[o]),U=C.footer.apply(this,[o]),oe=C.afterFooter.apply(this,[o]);let be=[];return be=wl(be,ma(k)),be=wl(be,ma(U)),be=wl(be,ma(oe)),be}_createItems(o){const m=this._active,C=this.chart.data,k=[],U=[],oe=[];let Ze,St,be=[];for(Ze=0,St=m.length;Ze<St;++Ze)be.push(wh(this.chart,m[Ze]));return o.filter&&(be=be.filter((qt,bn,Cn)=>o.filter(qt,bn,Cn,C))),o.itemSort&&(be=be.sort((qt,bn)=>o.itemSort(qt,bn,C))),J(be,qt=>{const bn=bu(o.callbacks,qt);k.push(bn.labelColor.call(this,qt)),U.push(bn.labelPointStyle.call(this,qt)),oe.push(bn.labelTextColor.call(this,qt))}),this.labelColors=k,this.labelPointStyles=U,this.labelTextColors=oe,this.dataPoints=be,be}update(o,m){const C=this.options.setContext(this.getContext()),k=this._active;let U,oe=[];if(k.length){const be=ja[C.position].call(this,k,this._eventPosition);oe=this._createItems(C),this.title=this.getTitle(oe,C),this.beforeBody=this.getBeforeBody(oe,C),this.body=this.getBody(oe,C),this.afterBody=this.getAfterBody(oe,C),this.footer=this.getFooter(oe,C);const Ze=this._size=Kh(this,C),St=Object.assign({},be,Ze),qt=Sd(this.chart,C,St),bn=yu(C,St,qt,this.chart);this.xAlign=qt.xAlign,this.yAlign=qt.yAlign,U={opacity:1,x:bn.x,y:bn.y,width:Ze.width,height:Ze.height,caretX:be.x,caretY:be.y}}else 0!==this.opacity&&(U={opacity:0});this._tooltipItems=oe,this.$context=void 0,U&&this._resolveAnimations().update(this,U),o&&C.external&&C.external.call(this,{chart:this.chart,tooltip:this,replay:m})}drawCaret(o,m,C,k){const U=this.getCaretPosition(o,C,k);m.lineTo(U.x1,U.y1),m.lineTo(U.x2,U.y2),m.lineTo(U.x3,U.y3)}getCaretPosition(o,m,C){const{xAlign:k,yAlign:U}=this,{caretSize:oe,cornerRadius:be}=C,{topLeft:Ze,topRight:St,bottomLeft:qt,bottomRight:bn}=no(be),{x:Cn,y:An}=o,{width:Wn,height:ei}=m;let oi,Ci,Vi,Ri,Mi,er;return"center"===U?(Mi=An+ei/2,"left"===k?(oi=Cn,Ci=oi-oe,Ri=Mi+oe,er=Mi-oe):(oi=Cn+Wn,Ci=oi+oe,Ri=Mi-oe,er=Mi+oe),Vi=oi):(Ci="left"===k?Cn+Math.max(Ze,qt)+oe:"right"===k?Cn+Wn-Math.max(St,bn)-oe:this.caretX,"top"===U?(Ri=An,Mi=Ri-oe,oi=Ci-oe,Vi=Ci+oe):(Ri=An+ei,Mi=Ri+oe,oi=Ci+oe,Vi=Ci-oe),er=Ri),{x1:oi,x2:Ci,x3:Vi,y1:Ri,y2:Mi,y3:er}}drawTitle(o,m,C){const k=this.title,U=k.length;let oe,be,Ze;if(U){const St=Bt(C.rtl,this.x,this.width);for(o.x=sl(this,C.titleAlign,C),m.textAlign=St.textAlign(C.titleAlign),m.textBaseline="middle",oe=Dr(C.titleFont),be=C.titleSpacing,m.fillStyle=C.titleColor,m.font=oe.string,Ze=0;Ze<U;++Ze)m.fillText(k[Ze],St.x(o.x),o.y+oe.lineHeight/2),o.y+=oe.lineHeight+be,Ze+1===U&&(o.y+=C.titleMarginBottom-be)}}_drawColorBox(o,m,C,k,U){const oe=this.labelColors[C],be=this.labelPointStyles[C],{boxHeight:Ze,boxWidth:St,boxPadding:qt}=U,bn=Dr(U.bodyFont),Cn=sl(this,"left",U),An=k.x(Cn),ei=m.y+(Ze<bn.lineHeight?(bn.lineHeight-Ze)/2:0);if(U.usePointStyle){const oi={radius:Math.min(St,Ze)/2,pointStyle:be.pointStyle,rotation:be.rotation,borderWidth:1},Ci=k.leftForLtr(An,St)+St/2,Vi=ei+Ze/2;o.strokeStyle=U.multiKeyBackground,o.fillStyle=U.multiKeyBackground,Kr(o,oi,Ci,Vi),o.strokeStyle=oe.borderColor,o.fillStyle=oe.backgroundColor,Kr(o,oi,Ci,Vi)}else{o.lineWidth=L(oe.borderWidth)?Math.max(...Object.values(oe.borderWidth)):oe.borderWidth||1,o.strokeStyle=oe.borderColor,o.setLineDash(oe.borderDash||[]),o.lineDashOffset=oe.borderDashOffset||0;const oi=k.leftForLtr(An,St-qt),Ci=k.leftForLtr(k.xPlus(An,1),St-qt-2),Vi=no(oe.borderRadius);Object.values(Vi).some(Ri=>0!==Ri)?(o.beginPath(),o.fillStyle=U.multiKeyBackground,ms(o,{x:oi,y:ei,w:St,h:Ze,radius:Vi}),o.fill(),o.stroke(),o.fillStyle=oe.backgroundColor,o.beginPath(),ms(o,{x:Ci,y:ei+1,w:St-2,h:Ze-2,radius:Vi}),o.fill()):(o.fillStyle=U.multiKeyBackground,o.fillRect(oi,ei,St,Ze),o.strokeRect(oi,ei,St,Ze),o.fillStyle=oe.backgroundColor,o.fillRect(Ci,ei+1,St-2,Ze-2))}o.fillStyle=this.labelTextColors[C]}drawBody(o,m,C){const{body:k}=this,{bodySpacing:U,bodyAlign:oe,displayColors:be,boxHeight:Ze,boxWidth:St,boxPadding:qt}=C,bn=Dr(C.bodyFont);let Cn=bn.lineHeight,An=0;const Wn=Bt(C.rtl,this.x,this.width),ei=function(Or){m.fillText(Or,Wn.x(o.x+An),o.y+Cn/2),o.y+=Cn+U},oi=Wn.textAlign(oe);let Ci,Vi,Ri,Mi,er,sr,Tr;for(m.textAlign=oe,m.textBaseline="middle",m.font=bn.string,o.x=sl(this,oi,C),m.fillStyle=C.bodyColor,J(this.beforeBody,ei),An=be&&"right"!==oi?"center"===oe?St/2+qt:St+2+qt:0,Mi=0,sr=k.length;Mi<sr;++Mi){for(Ci=k[Mi],Vi=this.labelTextColors[Mi],m.fillStyle=Vi,J(Ci.before,ei),Ri=Ci.lines,be&&Ri.length&&(this._drawColorBox(m,o,Mi,Wn,C),Cn=Math.max(bn.lineHeight,Ze)),er=0,Tr=Ri.length;er<Tr;++er)ei(Ri[er]),Cn=bn.lineHeight;J(Ci.after,ei)}An=0,Cn=bn.lineHeight,J(this.afterBody,ei),o.y-=U}drawFooter(o,m,C){const k=this.footer,U=k.length;let oe,be;if(U){const Ze=Bt(C.rtl,this.x,this.width);for(o.x=sl(this,C.footerAlign,C),o.y+=C.footerMarginTop,m.textAlign=Ze.textAlign(C.footerAlign),m.textBaseline="middle",oe=Dr(C.footerFont),m.fillStyle=C.footerColor,m.font=oe.string,be=0;be<U;++be)m.fillText(k[be],Ze.x(o.x),o.y+oe.lineHeight/2),o.y+=oe.lineHeight+C.footerSpacing}}drawBackground(o,m,C,k){const{xAlign:U,yAlign:oe}=this,{x:be,y:Ze}=o,{width:St,height:qt}=C,{topLeft:bn,topRight:Cn,bottomLeft:An,bottomRight:Wn}=no(k.cornerRadius);m.fillStyle=k.backgroundColor,m.strokeStyle=k.borderColor,m.lineWidth=k.borderWidth,m.beginPath(),m.moveTo(be+bn,Ze),"top"===oe&&this.drawCaret(o,m,C,k),m.lineTo(be+St-Cn,Ze),m.quadraticCurveTo(be+St,Ze,be+St,Ze+Cn),"center"===oe&&"right"===U&&this.drawCaret(o,m,C,k),m.lineTo(be+St,Ze+qt-Wn),m.quadraticCurveTo(be+St,Ze+qt,be+St-Wn,Ze+qt),"bottom"===oe&&this.drawCaret(o,m,C,k),m.lineTo(be+An,Ze+qt),m.quadraticCurveTo(be,Ze+qt,be,Ze+qt-An),"center"===oe&&"left"===U&&this.drawCaret(o,m,C,k),m.lineTo(be,Ze+bn),m.quadraticCurveTo(be,Ze,be+bn,Ze),m.closePath(),m.fill(),k.borderWidth>0&&m.stroke()}_updateAnimationTarget(o){const m=this.chart,C=this.$animations,k=C&&C.x,U=C&&C.y;if(k||U){const oe=ja[o.position].call(this,this._active,this._eventPosition);if(!oe)return;
vendor: 6,711 bytes, line 1
1const be=this._size=Kh(this,o),Ze=Object.assign({},oe,this._size),St=Sd(m,o,Ze),qt=yu(o,Ze,St,m);(k._to!==qt.x||U._to!==qt.y)&&(this.xAlign=St.xAlign,this.yAlign=St.yAlign,this.width=be.width,this.height=be.height,this.caretX=oe.x,this.caretY=oe.y,this._resolveAnimations().update(this,qt))}}_willRender(){return!!this.opacity}draw(o){const m=this.options.setContext(this.getContext());let C=this.opacity;if(!C)return;this._updateAnimationTarget(m);const k={width:this.width,height:this.height},U={x:this.x,y:this.y};C=Math.abs(C)<.001?0:C;const oe=Fs(m.padding);m.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(o.save(),o.globalAlpha=C,this.drawBackground(U,o,k,m),ye(o,m.textDirection),U.y+=oe.top,this.drawTitle(U,o,m),this.drawBody(U,o,m),this.drawFooter(U,o,m),Te(o,m.textDirection),o.restore())}getActiveElements(){return this._active||[]}setActiveElements(o,m){const C=this._active,k=o.map(({datasetIndex:be,index:Ze})=>{const St=this.chart.getDatasetMeta(be);if(!St)throw new Error("Cannot find a dataset at index "+be);return{datasetIndex:be,element:St.data[Ze],index:Ze}}),U=!Me(C,k),oe=this._positionChanged(k,m);(U||oe)&&(this._active=k,this._eventPosition=m,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(o,m,C=!0){if(m&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const k=this.options,U=this._active||[],oe=this._getActiveElements(o,U,m,C),be=this._positionChanged(oe,o),Ze=m||!Me(oe,U)||be;return Ze&&(this._active=oe,(k.enabled||k.external)&&(this._eventPosition={x:o.x,y:o.y},this.update(!0,m))),Ze}_getActiveElements(o,m,C,k){const U=this.options;if("mouseout"===o.type)return[];if(!k)return m;const oe=this.chart.getElementsAtEventForMode(o,U.mode,U,C);return U.reverse&&oe.reverse(),oe}_positionChanged(o,m){const{caretX:C,caretY:k,options:U}=this,oe=ja[U.position].call(this,o,m);return!1!==oe&&(C!==oe.x||k!==oe.y)}}return c.positioners=ja,c})();var tc={id:"tooltip",_element:Za,positioners:ja,afterInit(c,l,o){o&&(c.tooltip=new Za({chart:c,options:o}))},beforeUpdate(c,l,o){c.tooltip&&c.tooltip.initialize(o)},reset(c,l,o){c.tooltip&&c.tooltip.initialize(o)},afterDraw(c){const l=c.tooltip;if(l&&l._willRender()){const o={tooltip:l};if(!1===c.notifyPlugins("beforeTooltipDraw",o))return;l.draw(c.ctx),c.notifyPlugins("afterTooltipDraw",o)}},afterEvent(c,l){c.tooltip&&c.tooltip.handleEvent(l.event,l.replay,l.inChartArea)&&(l.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(c,l)=>l.bodyFont.size,boxWidth:(c,l)=>l.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:_,title(c){if(c.length>0){const l=c[0],o=l.chart.data.labels,m=o?o.length:0;if(this&&this.options&&"dataset"===this.options.mode)return l.dataset.label||"";if(l.label)return l.label;if(m>0&&l.dataIndex<m)return o[l.dataIndex]}return""},afterTitle:_,beforeBody:_,beforeLabel:_,label(c){if(this&&this.options&&"dataset"===this.options.mode)return c.label+": "+c.formattedValue||c.formattedValue;let l=c.dataset.label||"";l&&(l+=": ");const o=c.formattedValue;return j(o)||(l+=o),l},labelColor(c){const o=c.chart.getDatasetMeta(c.datasetIndex).controller.getStyle(c.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(c){const o=c.chart.getDatasetMeta(c.datasetIndex).controller.getStyle(c.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:_,afterBody:_,beforeFooter:_,footer:_,afterFooter:_}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:c=>"filter"!==c&&"itemSort"!==c&&"external"!==c,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},El=Object.freeze({__proto__:null,Decimation:Xl,Filler:Ko,Legend:_u,SubTitle:bh,Title:bl,Tooltip:tc});class d extends ro{constructor(l){super(l),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(l){const o=this._addedLabels;if(o.length){const m=this.getLabels();for(const{index:C,label:k}of o)m[C]===k&&m.splice(C,1);this._addedLabels=[]}super.init(l)}parse(l,o){if(j(l))return null;const m=this.getLabels();return((c,l)=>null===c?null:ln(Math.round(c),0,l))(o=isFinite(o)&&m[o]===l?o:function xp(c,l,o,m){const C=c.indexOf(l);return-1===C?((c,l,o,m)=>("string"==typeof l?(o=c.push(l)-1,m.unshift({index:o,label:l})):isNaN(l)&&(o=null),o))(c,l,o,m):C!==c.lastIndexOf(l)?o:C}(m,l,G(o,l),this._addedLabels),m.length-1)}determineDataLimits(){const{minDefined:l,maxDefined:o}=this.getUserBounds();let{min:m,max:C}=this.getMinMax(!0);"ticks"===this.options.bounds&&(l||(m=0),o||(C=this.getLabels().length-1)),this.min=m,this.max=C}buildTicks(){const l=this.min,o=this.max,m=this.options.offset,C=[];let k=this.getLabels();k=0===l&&o===k.length-1?k:k.slice(l,o+1),this._valueRange=Math.max(k.length-(m?0:1),1),this._startValue=this.min-(m?.5:0);for(let U=l;U<=o;U++)C.push({value:U});return C}getLabelForValue(l){const o=this.getLabels();return l>=0&&l<o.length?o[l]:l}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(l){return"number"!=typeof l&&(l=this.parse(l)),null===l?NaN:this.getPixelForDecimal((l-this._startValue)/this._valueRange)}getPixelForTick(l){const o=this.ticks;return l<0||l>o.length-1?null:this.getPixelForValue(o[l].value)}getValueForPixel(l){return Math.round(this._startValue+this.getDecimalForPixel(l)*this._valueRange)}getBasePixel(){return this.bottom}}function h(c,l,{horizontal:o,minRotation:m}){const C=Ot(m),k=(o?Math.sin(C):Math.cos(C))||.001;return Math.min(l/k,.75*l*(""+c).length)}d.id="category",d.defaults={ticks:{callback:d.prototype.getLabelForValue}};class w extends ro{constructor(l){super(l),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(l,o){return j(l)||("number"==typeof l||l instanceof Number)&&!isFinite(+l)?
vendor: 9,715 bytes, line 1
1null:+l}handleTickRangeOptions(){const{beginAtZero:l}=this.options,{minDefined:o,maxDefined:m}=this.getUserBounds();let{min:C,max:k}=this;const U=be=>C=o?C:be,oe=be=>k=m?k:be;if(l){const be=ae(C),Ze=ae(k);be<0&&Ze<0?oe(0):be>0&&Ze>0&&U(0)}if(C===k){let be=1;(k>=Number.MAX_SAFE_INTEGER||C<=Number.MIN_SAFE_INTEGER)&&(be=Math.abs(.05*k)),oe(k+be),l||U(C-be)}this.min=C,this.max=k}getTickLimit(){const l=this.options.ticks;let C,{maxTicksLimit:o,stepSize:m}=l;return m?(C=Math.ceil(this.max/m)-Math.floor(this.min/m)+1,C>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${m} would result generating up to ${C} ticks. Limiting to 1000.`),C=1e3)):(C=this.computeTickLimit(),o=o||11),o&&(C=Math.min(o,C)),C}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const l=this.options,o=l.ticks;let m=this.getTickLimit();m=Math.max(2,m);const U=function r(c,l){const o=[],{bounds:C,step:k,min:U,max:oe,precision:be,count:Ze,maxTicks:St,maxDigits:qt,includeBounds:bn}=c,Cn=k||1,An=St-1,{min:Wn,max:ei}=l,oi=!j(U),Ci=!j(oe),Vi=!j(Ze),Ri=(ei-Wn)/(qt+1);let er,sr,Tr,Or,Mi=Ce((ei-Wn)/An/Cn)*Cn;if(Mi<1e-14&&!oi&&!Ci)return[{value:Wn},{value:ei}];Or=Math.ceil(ei/Mi)-Math.floor(Wn/Mi),Or>An&&(Mi=Ce(Or*Mi/An/Cn)*Cn),j(be)||(er=Math.pow(10,be),Mi=Math.ceil(Mi*er)/er),"ticks"===C?(sr=Math.floor(Wn/Mi)*Mi,Tr=Math.ceil(ei/Mi)*Mi):(sr=Wn,Tr=ei),oi&&Ci&&k&&function Ge(c,l){const o=Math.round(c);return o-l<=c&&o+l>=c}((oe-U)/k,Mi/1e3)?(Or=Math.round(Math.min((oe-U)/Mi,St)),Mi=(oe-U)/Or,sr=U,Tr=oe):Vi?(sr=oi?U:sr,Tr=Ci?oe:Tr,Or=Ze-1,Mi=(Tr-sr)/Or):(Or=(Tr-sr)/Mi,Or=ut(Or,Math.round(Or),Mi/1e3)?Math.round(Or):Math.ceil(Or));const yo=Math.max(ht(Mi),ht(sr));er=Math.pow(10,j(be)?yo:be),sr=Math.round(sr*er)/er,Tr=Math.round(Tr*er)/er;let bo=0;for(oi&&(bn&&sr!==U?(o.push({value:U}),sr<U&&bo++,ut(Math.round((sr+bo*Mi)*er)/er,U,h(U,Ri,c))&&bo++):sr<U&&bo++);bo<Or;++bo)o.push({value:Math.round((sr+bo*Mi)*er)/er});return Ci&&bn&&Tr!==oe?o.length&&ut(o[o.length-1].value,oe,h(oe,Ri,c))?o[o.length-1].value=oe:o.push({value:oe}):(!Ci||Tr===oe)&&o.push({value:Tr}),o}({maxTicks:m,bounds:l.bounds,min:l.min,max:l.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:!1!==o.includeBounds},this._range||this);return"ticks"===l.bounds&&wt(U,this,"value"),l.reverse?(U.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),U}configure(){const l=this.ticks;let o=this.min,m=this.max;if(super.configure(),this.options.offset&&l.length){const C=(m-o)/Math.max(l.length-1,1)/2;o-=C,m+=C}this._startValue=o,this._endValue=m,this._valueRange=m-o}getLabelForValue(l){return us(l,this.chart.options.locale,this.options.ticks.format)}}class O extends w{determineDataLimits(){const{min:l,max:o}=this.getMinMax(!0);this.min=ce(l)?l:0,this.max=ce(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const l=this.isHorizontal(),o=l?this.width:this.height,m=Ot(this.options.ticks.minRotation),C=(l?Math.sin(m):Math.cos(m))||.001,k=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,k.lineHeight/C))}getPixelForValue(l){return null===l?NaN:this.getPixelForDecimal((l-this._startValue)/this._valueRange)}getValueForPixel(l){return this._startValue+this.getDecimalForPixel(l)*this._valueRange}}function X(c){return c/Math.pow(10,Math.floor(ke(c)))==1}O.id="linear",O.defaults={ticks:{callback:sa.formatters.numeric}};class ot extends ro{constructor(l){super(l),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(l,o){const m=w.prototype.parse.apply(this,[l,o]);if(0!==m)return ce(m)&&m>0?m:null;this._zero=!0}determineDataLimits(){const{min:l,max:o}=this.getMinMax(!0);this.min=ce(l)?Math.max(0,l):null,this.max=ce(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:l,maxDefined:o}=this.getUserBounds();let m=this.min,C=this.max;const k=be=>m=l?m:be,U=be=>C=o?C:be,oe=(be,Ze)=>Math.pow(10,Math.floor(ke(be))+Ze);m===C&&(m<=0?(k(1),U(10)):(k(oe(m,-1)),U(oe(C,1)))),m<=0&&k(oe(C,-1)),C<=0&&U(oe(m,1)),this._zero&&this.min!==this._suggestedMin&&m===oe(this.min,0)&&k(oe(m,-1)),this.min=m,this.max=C}buildTicks(){const l=this.options,m=function De(c,l){const o=Math.floor(ke(l.max)),m=Math.ceil(l.max/Math.pow(10,o)),C=[];let k=W(c.min,Math.pow(10,Math.floor(ke(l.min)))),U=Math.floor(ke(k)),oe=Math.floor(k/Math.pow(10,U)),be=U<0?Math.pow(10,Math.abs(U)):1;do{C.push({value:k,major:X(k)}),++oe,10===oe&&(oe=1,++U,be=U>=0?1:be),k=Math.round(oe*Math.pow(10,U)*be)/be}while(U<o||U===o&&oe<m);const Ze=W(c.max,k);return C.push({value:Ze,major:X(k)}),C}({min:this._userMin,max:this._userMax},this);return"ticks"===l.bounds&&wt(m,this,"value"),l.reverse?(m.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),m}getLabelForValue(l){return void 0===l?"0":us(l,this.chart.options.locale,this.options.ticks.format)}configure(){const l=this.min;super.configure(),this._startValue=ke(l),this._valueRange=ke(this.max)-ke(l)}getPixelForValue(l){return(void 0===l||0===l)&&(l=this.min),null===l||isNaN(l)?NaN:this.getPixelForDecimal(l===this.min?0:(ke(l)-this._startValue)/this._valueRange)}getValueForPixel(l){const o=this.getDecimalForPixel(l);return Math.pow(10,this._startValue+o*this._valueRange)}}function Ct(c){const l=c.ticks;if(l.display&&c.display){const o=Fs(l.backdropPadding);return G(l.font&&l.font.size,ar.font.size)+o.height}return 0}function sn(c,l,o){return o=D(o)?o:[o],{w:fr(c,l.string,o),h:o.length*l.lineHeight}}function _n(c,l,o,m,C){return c===m||c===C?{start:l-o/2,end:l+o/2}:c<m||c>C?{start:l-o,end:l}:{start:l,end:l+o}}function Ln(c,l,o,m,C){const k=Math.abs(Math.sin(o)),U=Math.abs(Math.cos(o));let oe=0,be=0;m.start<l.l?(oe=(l.l-m.start)/k,c.l=Math.min(c.l,l.l-oe)):m.end>l.r&&(oe=(m.end-l.r)/k,c.r=Math.max(c.r,l.r+oe)),C.start<l.t?(be=(l.t-C.start)/U,c.t=Math.min(c.t,l.t-be)):C.end>l.b&&(be=(C.end-l.b)/U,c.b=Math.max(c.b,l.b+be))}function si(c){return 0===c||180===c?"center":c<180?"left":"right"}function ai(c,l,o){return"right"===o?c-=l:"center"===o&&(c-=l/2),c}function lr(c,l,o){return 90===o||270===o?c-=l/2:(o>270||o<90)&&(c-=l),c}function kr(c,l,o,m){const{ctx:C}=c;if(o)C.arc(c.xCenter,c.yCenter,l,0,ge);else{let k=c.getPointPosition(0,l);C.moveTo(k.x,k.y);for(let U=1;U<m;U++)k=c.getPointPosition(U,l),C.lineTo(k.x,k.y)}}ot.id="logarithmic",ot.defaults={ticks:{callback:sa.formatters.logarithmic,major:{enabled:!0}}};class Vs extends w{constructor(l){super(l),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const l=this._padding=Fs(Ct(this.options)/2),o=this.width=this.maxWidth-l.width,m=this.height=this.maxHeight-l.height;this.xCenter=Math.floor(this.left+o/2+l.left),this.yCenter=Math.floor(this.top+m/2+l.top),this.drawingArea=Math.floor(Math.min(o,m)/2)}determineDataLimits(){const{min:l,max:o}=this.getMinMax(!1);this.min=ce(l)&&!isNaN(l)?l:0,this.max=ce(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ct(this.options))}generateTickLabels(l){w.prototype.generateTickLabels.call(this,l),this._pointLabels=this.getLabels().map((o,m)=>{const C=le(this.options.pointLabels.callback,[o,m],this);return C||0===C?C:""}).filter((o,m)=>this.chart.getDataVisibility(m))}fit(){const l=this.options;l.display&&l.pointLabels.display?function Nn(c){const l={l:c.left+c._padding.left,r:c.right-c._padding.right,t:c.top+c._padding.top,b:c.bottom-c._padding.bottom},o=Object.assign({},l),m=[],C=[],k=c._pointLabels.length,U=c.options.pointLabels,oe=U.centerPointLabels?K/k:0;for(let be=0;be<k;be++){const Ze=U.setContext(c.getPointLabelContext(be));C[be]=Ze.padding;const St=c.getPointPosition(be,c.drawingArea+C[be],oe),qt=Dr(Ze.font),bn=sn(c.ctx,qt,c._pointLabels[be]);m[be]=bn;const Cn=hn(c.getIndexAngle(be)+oe),An=Math.round(Ft(Cn));Ln(o,l,Cn,_n(An,St.x,bn.w,0,180),_n(An,St.y,bn.h,90,270))}c.setCenterPoint(l.l-o.l,o.r-l.r,l.t-o.t,o.b-l.b),c._pointLabelItems=function $n(c,l,o){const m=[],C=c._pointLabels.length,k=c.options,U=Ct(k)/2,oe=c.drawingArea,be=k.pointLabels.centerPointLabels?K/C:0;for(let Ze=0;Ze<C;Ze++){const St=c.getPointPosition(Ze,oe+U+o[Ze],be),qt=Math.round(Ft(hn(St.angle+Ie))),bn=l[Ze],Cn=lr(St.y,bn.h,qt),An=si(qt),Wn=ai(St.x,bn.w,An);m.push({x:St.x,y:Cn,textAlign:An,left:Wn,top:Cn,right:Wn+bn.w,bottom:Cn+bn.h})}return m}(c,m,C)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(l,o,m,C){this.xCenter+=Math.floor((l-o)/2),this.yCenter+=Math.floor((m-C)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(l,o,m,C))}getIndexAngle(l){return hn(l*(ge/(this._pointLabels.length||1))+Ot(this.options.startAngle||0))}getDistanceFromCenterForValue(l){if(j(l))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-l)*o:(l-this.min)*o}getValueForDistanceFromCenter(l){if(j(l))return NaN;const o=l/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(l){const o=this._pointLabels||[];if(l>=0&&l<o.length){const m=o[l];return function Ts(c,l,o){return bs(c,{label:o,index:l,type:"pointLabel"})}(this.getContext(),l,m)}}getPointPosition(l,o,m=0){const C=this.getIndexAngle(l)-Ie+m;return{x:Math.cos(C)*o+this.xCenter,y:Math.sin(C)*o+this.yCenter,angle:C}}getPointPositionForValue(l,o){return this.getPointPosition(l,this.getDistanceFromCenterForValue(o))}getBasePosition(l){return this.getPointPositionForValue(l||0,this.getBaseValue())}getPointLabelPosition(l){const{left:o,top:m,right:C,bottom:k}=this._pointLabelItems[l];return{left:o,top:m,right:C,bottom:k}}
vendor: 7,921 bytes, line 1
1drawBackground(){const{backgroundColor:l,grid:{circular:o}}=this.options;if(l){const m=this.ctx;m.save(),m.beginPath(),kr(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),m.closePath(),m.fillStyle=l,m.fill(),m.restore()}}drawGrid(){const l=this.ctx,o=this.options,{angleLines:m,grid:C}=o,k=this._pointLabels.length;let U,oe,be;if(o.pointLabels.display&&function rr(c,l){const{ctx:o,options:{pointLabels:m}}=c;for(let C=l-1;C>=0;C--){const k=m.setContext(c.getPointLabelContext(C)),U=Dr(k.font),{x:oe,y:be,textAlign:Ze,left:St,top:qt,right:bn,bottom:Cn}=c._pointLabelItems[C],{backdropColor:An}=k;if(!j(An)){const Wn=no(k.borderRadius),ei=Fs(k.backdropPadding);o.fillStyle=An;const oi=St-ei.left,Ci=qt-ei.top,Vi=bn-St+ei.width,Ri=Cn-qt+ei.height;Object.values(Wn).some(Mi=>0!==Mi)?(o.beginPath(),ms(o,{x:oi,y:Ci,w:Vi,h:Ri,radius:Wn}),o.fill()):o.fillRect(oi,Ci,Vi,Ri)}Ps(o,c._pointLabels[C],oe,be+U.lineHeight/2,U,{color:k.color,textAlign:Ze,textBaseline:"middle"})}}(this,k),C.display&&this.ticks.forEach((Ze,St)=>{0!==St&&(oe=this.getDistanceFromCenterForValue(Ze.value),function Gr(c,l,o,m){const C=c.ctx,k=l.circular,{color:U,lineWidth:oe}=l;!k&&!m||!U||!oe||o<0||(C.save(),C.strokeStyle=U,C.lineWidth=oe,C.setLineDash(l.borderDash),C.lineDashOffset=l.borderDashOffset,C.beginPath(),kr(c,o,k,m),C.closePath(),C.stroke(),C.restore())}(this,C.setContext(this.getContext(St-1)),oe,k))}),m.display){for(l.save(),U=k-1;U>=0;U--){const Ze=m.setContext(this.getPointLabelContext(U)),{color:St,lineWidth:qt}=Ze;!qt||!St||(l.lineWidth=qt,l.strokeStyle=St,l.setLineDash(Ze.borderDash),l.lineDashOffset=Ze.borderDashOffset,oe=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),be=this.getPointPosition(U,oe),l.beginPath(),l.moveTo(this.xCenter,this.yCenter),l.lineTo(be.x,be.y),l.stroke())}l.restore()}}drawBorder(){}drawLabels(){const l=this.ctx,o=this.options,m=o.ticks;if(!m.display)return;const C=this.getIndexAngle(0);let k,U;l.save(),l.translate(this.xCenter,this.yCenter),l.rotate(C),l.textAlign="center",l.textBaseline="middle",this.ticks.forEach((oe,be)=>{if(0===be&&!o.reverse)return;const Ze=m.setContext(this.getContext(be)),St=Dr(Ze.font);if(k=this.getDistanceFromCenterForValue(this.ticks[be].value),Ze.showLabelBackdrop){l.font=St.string,U=l.measureText(oe.label).width,l.fillStyle=Ze.backdropColor;const qt=Fs(Ze.backdropPadding);l.fillRect(-U/2-qt.left,-k-St.size/2-qt.top,U+qt.width,St.size+qt.height)}Ps(l,oe.label,0,-k,St,{color:Ze.color})}),l.restore()}drawTitle(){}}Vs.id="radialLinear",Vs.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:sa.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:c=>c,padding:5,centerPointLabels:!1}},Vs.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Vs.descriptors={angleLines:{_fallback:"grid"}};const co={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Wo=Object.keys(co);function ss(c,l){return c-l}function wu(c,l){if(j(l))return null;const o=c._adapter,{parser:m,round:C,isoWeekday:k}=c._parseOpts;let U=l;return"function"==typeof m&&(U=m(U)),ce(U)||(U="string"==typeof m?o.parse(U,m):o.parse(U)),null===U?null:(C&&(U="week"!==C||!Be(k)&&!0!==k?o.startOf(U,C):o.startOf(U,"isoWeek",k)),+U)}function nc(c,l,o,m){const C=Wo.length;for(let k=Wo.indexOf(c);k<C-1;++k){const U=co[Wo[k]],oe=U.steps?U.steps:Number.MAX_SAFE_INTEGER;if(U.common&&Math.ceil((o-l)/(oe*U.size))<=m)return Wo[k]}return Wo[C-1]}function Ad(c,l,o){if(o){if(o.length){const{lo:m,hi:C}=qe(o,l);c[o[m]>=l?o[m]:o[C]]=!0}}else c[l]=!0}function $h(c,l,o){const m=[],C={},k=l.length;let U,oe;for(U=0;U<k;++U)oe=l[U],C[oe]=U,m.push({value:oe,major:!1});return 0!==k&&o?function Md(c,l,o,m){const C=c._adapter,k=+C.startOf(l[0].value,m),U=l[l.length-1].value;let oe,be;for(oe=k;oe<=U;oe=+C.add(oe,1,m))be=o[oe],be>=0&&(l[be].major=!0);return l}(c,m,C,o):m}let Va=(()=>{class c extends ro{constructor(o){super(o),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(o,m){const C=o.time||(o.time={}),k=this._adapter=new da._date(o.adapters.date);k.init(m),N(C.displayFormats,k.formats()),this._parseOpts={parser:C.parser,round:C.round,isoWeekday:C.isoWeekday},super.init(o),this._normalized=m.normalized}parse(o,m){return void 0===o?null:wu(this,o)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const o=this.options,m=this._adapter,C=o.time.unit||"day";let{min:k,max:U,minDefined:oe,maxDefined:be}=this.getUserBounds();function Ze(St){!oe&&!isNaN(St.min)&&(k=Math.min(k,St.min)),!be&&!isNaN(St.max)&&(U=Math.max(U,St.max))}(!oe||!be)&&(Ze(this._getLabelBounds()),("ticks"!==o.bounds||"labels"!==o.ticks.source)&&Ze(this.getMinMax(!1))),k=ce(k)&&!isNaN(k)?k:+m.startOf(Date.now(),C),U=ce(U)&&!isNaN(U)?U:+m.endOf(Date.now(),C)+1,this.min=Math.min(k,U-1),this.max=Math.max(k+1,U)}_getLabelBounds(){const o=this.getLabelTimestamps();let m=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY;return o.length&&(m=o[0],C=o[o.length-1]),{min:m,max:C}}buildTicks(){const o=this.options,m=o.time,C=o.ticks,k="labels"===C.source?this.getLabelTimestamps():this._generate();"ticks"===o.bounds&&k.length&&(this.min=this._userMin||k[0],this.max=this._userMax||k[k.length-1]);const U=this.min,be=function bt(c,l,o){let m=0,C=c.length;for(;m<C&&c[m]<l;)m++;for(;C>m&&c[C-1]>o;)C--;return m>0||C<c.length?c.slice(m,C):c}(k,U,this.max);return this._unit=m.unit||(C.autoSkip?nc(m.minUnit,this.min,this.max,this._getLabelCapacity(U)):function Bl(c,l,o,m,C){for(let k=Wo.length-1;k>=Wo.indexOf(o);k--){const U=Wo[k];if(co[U].common&&c._adapter.diff(C,m,U)>=l-1)return U}return Wo[o?Wo.indexOf(o):0]}(this,be.length,m.minUnit,this.min,this.max)),this._majorUnit=C.major.enabled&&"year"!==this._unit?function jc(c){for(let l=Wo.indexOf(c)+1,o=Wo.length;l<o;++l)if(co[Wo[l]].common)return Wo[l]}(this._unit):void 0,this.initOffsets(k),o.reverse&&be.reverse(),$h(this,be,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(o=>+o.value))}initOffsets(o){let k,U,m=0,C=0;this.options.offset&&o.length&&(k=this.getDecimalForValue(o[0]),m=1===o.length?1-k:(this.getDecimalForValue(o[1])-k)/2,U=this.getDecimalForValue(o[o.length-1]),C=1===o.length?U:(U-this.getDecimalForValue(o[o.length-2]))/2);const oe=o.length<3?.5:.25;m=ln(m,0,oe),C=ln(C,0,oe),this._offsets={start:m,end:C,factor:1/(m+1+C)}}_generate(){const o=this._adapter,m=this.min,C=this.max,k=this.options,U=k.time,oe=U.unit||nc(U.minUnit,m,C,this._getLabelCapacity(m)),be=G(U.stepSize,1),Ze="week"===oe&&U.isoWeekday,St=Be(Ze)||!0===Ze,qt={};let Cn,An,bn=m;if(St&&(bn=+o.startOf(bn,"isoWeek",Ze)),bn=+o.startOf(bn,St?"day":oe),o.diff(C,m,oe)>1e5*be)throw new Error(m+" and "+C+" are too far apart with stepSize of "+be+" "+oe);const Wn="data"===k.ticks.source&&this.getDataTimestamps();for(Cn=bn,An=0;Cn<C;Cn=+o.add(Cn,be,oe),An++)Ad(qt,Cn,Wn);return(Cn===C||"ticks"===k.bounds||1===An)&&Ad(qt,Cn,Wn),Object.keys(qt).sort((ei,oi)=>ei-oi).map(ei=>+ei)}getLabelForValue(o){const C=this.options.time;return this._adapter.format(o,C.tooltipFormat?C.tooltipFormat:C.displayFormats.datetime)}_tickFormatFunction(o,m,C,k){const U=this.options,oe=U.time.displayFormats,be=this._unit,Ze=this._majorUnit,qt=Ze&&oe[Ze],bn=C[m],An=this._adapter.format(o,k||(Ze&&qt&&bn&&bn.major?qt:be&&oe[be])),Wn=U.ticks.callback;
1return Wn?le(Wn,[An,m,C],this):An}generateTickLabels(o){let m,C,k;for(m=0,C=o.length;m<C;++m)k=o[m],k.label=this._tickFormatFunction(k.value,m,o)}getDecimalForValue(o){return null===o?NaN:(o-this.min)/(this.max-this.min)}getPixelForValue(o){const m=this._offsets,C=this.getDecimalForValue(o);return this.getPixelForDecimal((m.start+C)*m.factor)}getValueForPixel(o){const m=this._offsets,C=this.getDecimalForPixel(o)/m.factor-m.end;return this.min+C*(this.max-this.min)}_getLabelSize(o){const m=this.options.ticks,C=this.ctx.measureText(o).width,k=Ot(this.isHorizontal()?m.maxRotation:m.minRotation),U=Math.cos(k),oe=Math.sin(k),be=this._resolveTickFontOptions(0).size;return{w:C*U+be*oe,h:C*oe+be*U}}_getLabelCapacity(o){const m=this.options.time,C=m.displayFormats,k=C[m.unit]||C.millisecond,U=this._tickFormatFunction(o,0,$h(this,[o],this._majorUnit),k),oe=this._getLabelSize(U),be=Math.floor(this.isHorizontal()?this.width/oe.w:this.height/oe.h)-1;return be>0?be:1}getDataTimestamps(){let m,C,o=this._cache.data||[];if(o.length)return o;const k=this.getMatchingVisibleMetas();if(this._normalized&&k.length)return this._cache.data=k[0].controller.getAllParsedValues(this);for(m=0,C=k.length;m<C;++m)o=o.concat(k[m].controller.getAllParsedValues(this));return this._cache.data=this.normalize(o)}getLabelTimestamps(){const o=this._cache.labels||[];let m,C;if(o.length)return o;const k=this.getLabels();for(m=0,C=k.length;m<C;++m)o.push(wu(this,k[m]));return this._cache.labels=this._normalized?o:this.normalize(o)}normalize(o){return Rt(o.sort(ss))}}return c.id="time",c.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},c})();function Cl(c,l,o){let k,U,oe,be,m=0,C=c.length-1;o?(l>=c[m].pos&&l<=c[C].pos&&({lo:m,hi:C}=Pe(c,"pos",l)),({pos:k,time:oe}=c[m]),({pos:U,time:be}=c[C])):(l>=c[m].time&&l<=c[C].time&&({lo:m,hi:C}=Pe(c,"time",l)),({time:k,pos:oe}=c[m]),({time:U,pos:be}=c[C]));const Ze=U-k;return Ze?oe+(be-oe)*(l-k)/Ze:oe}class Dl extends Va{constructor(l){super(l),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const l=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(l);this._minPos=Cl(o,this.min),this._tableRange=Cl(o,this.max)-this._minPos,super.initOffsets(l)}buildLookupTable(l){const{min:o,max:m}=this,C=[],k=[];let U,oe,be,Ze,St;for(U=0,oe=l.length;U<oe;++U)Ze=l[U],Ze>=o&&Ze<=m&&C.push(Ze);if(C.length<2)return[{time:o,pos:0},{time:m,pos:1}];for(U=0,oe=C.length;U<oe;++U)St=C[U+1],be=C[U-1],Ze=C[U],Math.round((St+be)/2)!==Ze&&k.push({time:Ze,pos:U/(oe-1)});return k}_getTimestampsForTable(){let l=this._cache.all||[];if(l.length)return l;const o=this.getDataTimestamps(),m=this.getLabelTimestamps();return l=o.length&&m.length?this.normalize(o.concat(m)):o.length?o:m,l=this._cache.all=l,l}getDecimalForValue(l){return(Cl(this._table,l)-this._minPos)/this._tableRange}getValueForPixel(l){const o=this._offsets,m=this.getDecimalForPixel(l)/o.factor-o.end;return Cl(this._table,m*this._tableRange+this._minPos,!0)}}Dl.id="timeseries",Dl.defaults=Va.defaults;const Td=[Tl,_h,El,Object.freeze({__proto__:null,CategoryScale:d,LinearScale:O,LogarithmicScale:ot,RadialLinearScale:Vs,TimeScale:Va,TimeSeriesScale:Dl})];var yf=S(5778);const bf=function xd(c,l){return c===l||c!=c&&l!=l},uo=function kp(c,l){for(var o=c.length;o--;)if(bf(c[o][0],l))return o;return-1};var ea=Array.prototype.splice;function Yu(c){var l=-1,o=null==c?0:c.length;for(this.clear();++l<o;){var m=c[l];this.set(m[0],m[1])}}Yu.prototype.clear=function Zo(){this.__data__=[],this.size=0},Yu.prototype.delete=function ol(c){var l=this.__data__,o=uo(l,c);return!(o<0||(o==l.length-1?l.pop():ea.call(l,o,1),--this.size,0))},Yu.prototype.get=function Ul(c){var l=this.__data__,o=uo(l,c);return o<0?void 0:l[o][1]},Yu.prototype.has=function tg(c){return uo(this.__data__,c)>-1},Yu.prototype.set=function ng(c,l){var o=this.__data__,m=uo(o,c);return m<0?(++this.size,o.push([c,l])):o[m][1]=l,this};const Ha=Yu,Rd="object"==typeof global&&global&&global.Object===Object&&global;var Dg="object"==typeof self&&self&&self.Object===Object&&self;const Dh=Rd||Dg||Function("return this")();var Yr=Dh.Symbol,Cf=Object.prototype,Rp=Cf.hasOwnProperty,Qh=Cf.toString,Ja=Yr?Yr.toStringTag:void 0;var Zs=Object.prototype.toString;var Ku=Yr?Yr.toStringTag:void 0;const $u=function Ag(c){return null==c?void 0===c?"[object Undef
1ined]":"[object Null]":Ku&&Ku in Object(c)?function Df(c){var l=Rp.call(c,Ja),o=c[Ja];try{c[Ja]=void 0;var m=!0}catch(k){}var C=Qh.call(c);return m&&(l?c[Ja]=o:delete c[Ja]),C}(c):function Xh(c){return Zs.call(c)}(c)},jl=function Jh(c){var l=typeof c;return null!=c&&("object"==l||"function"==l)},Pd=function ig(c){if(!jl(c))return!1;var l=$u(c);return"[object Function]"==l||"[object GeneratorFunction]"==l||"[object AsyncFunction]"==l||"[object Proxy]"==l};var c,rg=Dh["__core-js_shared__"],sg=(c=/[^.]+$/.exec(rg&&rg.keys&&rg.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"";var Ld=Function.prototype.toString;var Lp=/^\[object .+?Constructor\]$/,ug=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const hg=function xg(c){return!(!jl(c)||function og(c){return!!sg&&sg in c}(c))&&(Pd(c)?ug:Lp).test(function Fp(c){if(null!=c){try{return Ld.call(c)}catch(l){}try{return c+""}catch(l){}}return""}(c))},sp=function rp(c,l){var o=function ip(c,l){return null==c?void 0:c[l]}(c,l);return hg(o)?o:void 0},Nd=sp(Dh,"Map"),Sh=sp(Object,"create");var ap=Object.prototype.hasOwnProperty;var Vl=Object.prototype.hasOwnProperty;function Gc(c){var l=-1,o=null==c?0:c.length;for(this.clear();++l<o;){var m=c[l];this.set(m[0],m[1])}}Gc.prototype.clear=function Aa(){this.__data__=Sh?Sh(null):{},this.size=0},Gc.prototype.delete=function Ma(c){var l=this.has(c)&&delete this.__data__[c];return this.size-=l?1:0,l},Gc.prototype.get=function nd(c){var l=this.__data__;if(Sh){var o=l[c];return"__lodash_hash_undefined__"===o?void 0:o}return ap.call(l,c)?l[c]:void 0},Gc.prototype.has=function Ah(c){var l=this.__data__;return Sh?void 0!==l[c]:Vl.call(l,c)},Gc.prototype.set=function Dc(c,l){var o=this.__data__;
1return this.size+=this.has(c)?0:1,o[c]=Sh&&void 0===l?"__lodash_hash_undefined__":l,this};const jd=Gc,Gd=function xf(c,l){var o=c.__data__;return function Vd(c){var l=typeof c;return"string"==l||"number"==l||"symbol"==l||"boolean"==l?"__proto__"!==c:null===c}(l)?o["string"==typeof l?"string":"hash"]:o.map};function Hs(c){var l=-1,o=null==c?0:c.length;for(this.clear();++l<o;){var m=c[l];this.set(m[0],m[1])}}Hs.prototype.clear=function Mf(){this.size=0,this.__data__={hash:new jd,map:new(Nd||Ha),string:new jd}},Hs.prototype.delete=function Ig(c){var l=Gd(this,c).delete(c);return this.size-=l?1:0,l},Hs.prototype.get=function Xu(c){return Gd(this,c).get(c)},Hs.prototype.has=function id(c){return Gd(this,c).has(c)},Hs.prototype.set=function Up(c,l){var o=Gd(this,c),m=o.size;return o.set(c,l),this.size+=o.size==m?0:1,this};const kg=Hs;function rd(c){var l=this.__data__=new Ha(c);this.size=l.size}rd.prototype.clear=function Sa(){this.__data__=new Ha,this.size=0},rd.prototype.delete=function sc(c){var l=this.__data__,o=l.delete(c);return this.size=l.size,o},rd.prototype.get=function Ef(c){return this.__data__.get(c)},rd.prototype.has=function Ch(c){return this.__data__.has(c)},rd.prototype.set=function Og(c,l){var o=this.__data__;if(o instanceof Ha){var m=o.__data__;if(!Nd||m.length<199)return m.push([c,l]),this.size=++o.size,this;o=this.__data__=new kg(m)}return o.set(c,l),this.size=o.size,this};const If=rd;var kf=function(){try{var c=sp(Object,"defineProperty");return c({},"",{}),c}catch(l){}}();const fo=kf,Wd=function pg(c,l,o){"__proto__"==l&&fo?fo(c,l,{configurable:!0,enumerable:!0,value:o,writable:!0}):c[l]=o},zc=function cp(c,l,o){(void 0!==o&&!bf(c[l],o)||void 0===o&&!(l in c))&&Wd(c,l,o)};var Mh=function sd(c){return function(l,o,m){for(var C=-1,k=Object(l),U=m(l),oe=U.length;oe--;){var be=U[c?oe:++C];if(!1===o(k[be],be,k))break}return l}}();const Yd=Mh;var up="object"==typeof exports&&exports&&!exports.nodeType&&exports,Kd=up&&"object"==typeof module&&module&&!module.nodeType&&module,Hl=Kd&&Kd.exports===up?Dh.Buffer:void 0,Of=Hl?Hl.allocUnsafe:void 0;const ad=Dh.Uint8Array,Qd=function qd(c,l){var o=l?function hp(c){var l=new c.constructor(c.byteLength);return new ad(l).set(new ad(c)),l}(c.buffer):c.buffer;return new c.constructor(o,c.byteOffset,c.length)};var Wc=Object.create,Hp=function(){function c(){}return function(l){if(!jl(l))return{};if(Wc)return Wc(l);c.prototype=l;var o=new c;return c.prototype=void 0,o}}();const Gp=Hp;var Ff=function Pf(c,l){return function(o){return c(l(o))}}(Object.getPrototypeOf,Object);const Yc=Ff;var Th=Object.prototype;const fp=function cd(c){var l=c&&c.constructor;return c===("function"==typeof l&&l.prototype||Th)},Kc=function mp(c){return null!=c&&"object"==typeof c},al=function eh(c){return Kc(c)&&"[object Arguments]"==$u(c)};var Ta=Object.prototype,Zd=Ta.hasOwnProperty,Pg=Ta.propertyIsEnumerable,ud=al(function(){return arguments}())?al:function(c){return Kc(c)&&Zd.call(c,"callee")&&!Pg.call(c,"callee")};const th=ud,xh=Array.isArray,ra=function gg(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991},Jd=function _p(c){return null!=c&&ra(c.length)&&!Pd(c)};var tf="object"==typeof exports&&exports&&!exports.nodeType&&exports,Kp=tf&&"object"==typeof module&&module&&!module.nodeType&&module,$c=Kp&&Kp.exports===tf?Dh.Buffer:void 0;const ll=($c?$c.isBuffer:void 0)||function Wp(){return!1};var qp=Function.prototype.toString,za=Object.prototype.hasOwnProperty,el=qp.call(Object);var gi={};gi["[object Float32Array]"]=gi["[object Float64Array]"]=gi["[object Int8Array]"]=gi["[object Int16Array]"]=gi["[object Int32Array]"]=gi["[object Uint8Array]"]=gi["[object Uint8ClampedArray]"]=gi["[object Uint16Array]"]=gi["[object Uint32Array]"]=!0,gi["[object Arguments]"]=gi["[object Array]"]=gi["[object ArrayBuffer]"]=gi["[object Boolean]"]=gi["[object DataView]"]=gi["[object Date]"]=gi["[object Error]"]=gi["[object Function]"]=gi["[object Map]"]=gi["[object Number]"]=gi["[object Object]"]=gi["[object RegExp]"]=gi["[object Set]"]=gi["[object String]"]=gi["[object WeakMap]"]=!1;var Cp="object"==typeof exports&&exports&&!exports.nodeType&&exports,lf=Cp&&"object"==typeof module&&module&&!module.nodeType&&module,zf=lf&&lf.exp
1orts===Cp&&Rd.process,nh=function(){try{return lf&&lf.require&&lf.require("util").types||zf&&zf.binding&&zf.binding("util")}catch(l){}}(),pd=nh&&nh.isTypedArray;const kh=pd?function Gf(c){return function(l){return c(l)}}(pd):function Gs(c){return Kc(c)&&ra(c.length)&&!!gi[$u(c)]},ih=function Zp(c,l){if(("constructor"!==l||"function"!=typeof c[l])&&"__proto__"!=l)return c[l]};var cf=Object.prototype.hasOwnProperty;const Ac=function Wf(c,l,o){var m=c[l];(!cf.call(c,l)||!bf(m,o)||void 0===o&&!(l in c))&&Wd(c,l,o)};var uf=/^(?:0|[1-9]\d*)$/;const Au=function Oh(c,l){var o=typeof c;return!!(l=null==l?9007199254740991:l)&&("number"==o||"symbol"!=o&&uf.test(c))&&c>-1&&c%1==0&&c<l};var Gl=Object.prototype.hasOwnProperty;const p=function t(c,l){var o=xh(c),m=!o&&th(c),C=!o&&!m&&ll(c),k=!o&&!m&&!C&&kh(c),U=o||m||C||k,oe=U?function $o(c,l){for(var o=-1,m=Array(c);++o<c;)m[o]=l(o);return m}(c.length,String):[],be=oe.length;for(var Ze in c)(l||Gl.call(c,Ze))&&(!U||!("length"==Ze||C&&("offset"==Ze||"parent"==Ze)||k&&("buffer"==Ze||"byteLength"==Ze||"byteOffset"==Ze)||Au(Ze,be)))&&oe.push(Ze);return oe};var Je=Object.prototype.hasOwnProperty;const Tn=function an(c){if(!jl(c))return function x(c){var l=[];if(null!=c)for(var o in Object(c))l.push(o);return l}(c);var l=fp(c),o=[];for(var m in c)"constructor"==m&&(l||!Je.call(c,m))||o.push(m);return o},Bi=function di(c){return Jd(c)?p(c,!0):Tn(c)},f=function e(c){return function gr(c,l,o,m){var C=!o;o||(o={});for(var k=-1,U=l.length;++k<U;){var oe=l[k],be=m?m(o[oe],c[oe],oe,o,c):void 0;void 0===be&&(be=c[oe]),C?Wd(o,oe,be):Ac(o,oe,be)}return o}(c,Bi(c))},_e=function F(c,l,o,m,C,k,U){var oe=ih(c,o),be=ih(l,o),Ze=U.get(be);if(Ze)zc(c,o,Ze);else{var St=k?k(oe,be,o+"",c,l,U):void 0,qt=void 0===St;if(qt){var bn=xh(be),Cn=!bn&&ll(be),An=!bn&&!Cn&&kh(be);St=be,bn||Cn||An?xh(oe)?St=oe:function zp(c){return Kc(c)&&Jd(c)}(oe)?St=function Xd(c,l){var o=-1,m=c.length;for(l||(l=Array(m));++o<m;)l[o]=c[o];return l}(oe):Cn?(qt=!1,St=function Rg(c,l){if(l)return c.slice();var o=c.length,m=Of?Of(o):new c.constructor(o);return c.copy(m),m}(be,!0)):An?(qt=!1,St=Qd(be,!0)):St=[]:function yp(c){if(!Kc(c)||"[object Object]"!=$u(c))return!1;var l=Yc(c);if(null===l)return!0;var o=za.call(l,"constructor")&&l.constructor;return"function"==typeof o&&o instanceof o&&qp.call(o)==el}(be)||th(be)?(St=oe,th(oe)?St=f(oe):(!jl(oe)||Pd(oe))&&(St=function pp(c){return"function"!=typeof c.constructor||fp(c)?{}:Gp(Yc(c))}(be))):qt=!1}qt&&(U.set(be,St),C(St,be,m,k,U),U.delete(be)),zc(c,o,St)}},Vt=function lt(c,l,o,m,C){c!==l&&Yd(l,function(k,U){if(C||(C=new If),jl(k))_e(c,l,U,o,lt,m,C);else{var oe=m?m(ih(c,U),k,U+"",c,l,C):void 0;void 0===oe&&(oe=k),zc(c,U,oe)}},Bi)},Pn=function on(c){return c},ki=function Ei(c,l,o){switch(o.length){case 0:return c.call(l);case 1:return c.call(l,o[0]);case 2:return c.call(l,o[0],o[1]);case 3:return c.call(l,o[0],o[1],o[2])}return c.apply(l,o)};var hs=Math.max;const md=function tl(c){return function(){return c}};var Fg=fo?function(c,l){return fo(c,"toString",{configurable:!0,enumerable:!1,value:md(l),writable:!0})}:Pn,em=Date.now,Q_=function Nm(c){var l=0,o=0;return function(){var m=em(),C=16-(m-o);if(o=m,C>0){if(++l>=800)return arguments[0]}else l=0;return c.apply(void 0,arguments)}}(Fg);const X_=Q_,pm=function Bm(c,l){return X_(function ko(c,l,o){return l=hs(void 0===l?c.length-1:l,0),function(){for(var m=arguments,C=-1,k=hs(m.length-l,0),U=Array(k);++C<k;)U[C]=m[l+C];C=-1;for(var oe=Array(l+1);++C<l;)oe[C]=m[C];return oe[l]=o(U),ki(c,this,oe)}}(c,l,Pn),c+"")};var gm=function bg(c){return pm(function(l,o){var m=-1,C=o.length,k=C>1?o[C-1]:void 0,U=C>2?o[2]:void 0;for(k=c.length>3&&"function"==typeof k?(C--,k):void 0,U&&function Z_(c,l,o){if(!jl(o))return!1;var m=typeof l;return!!("number"==m?Jd(o)&&Au(l,o.length):"string"==m&&l in o)&&bf(o[l],c)}(o[0],o[1],U)&&(k=C<3?void 0:k,C=1),l=Object(l);++m<C;){var oe=o[m];oe&&c(l,oe,m,k)}return l})}(function(c,l,o){Vt(c,l,o)});const mm=gm;var _m=S(591);let Hg=(()=>{class c{constructor(){this.colorschemesOptions=new _m.X(void 0)}setColorschemesOptions(o){this.pColorschemesOptions=o,this.colorschemesOptions.next(o)}getColorschemesOptions(){return this.pColorschemesOptions}}return c.\u0275fac=function(o){return new(o||c)},c.\u0275prov=s.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),jm=(()=>{class c{constructor(o,m,C){this.zone=m,this.themeService=C,this.type="bar",this.plugins=[],this.chartClick=new s.vpe,this.chartHover=new s.vpe,this.subs=[],this.ctx=o.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe((0,yf.x)()).subscribe(k=>this.themeChanged(k)))}ngOnChanges(o){const m=["type"],C=Object.getOwnPropertyNames(o);if(C.some(k=>m.includes(k))||C.every(k=>o[k].isFirstChange()))this.render();
1else{const k=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,k.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,k.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,k.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(o=>o.unsubscribe())}render(){return this.chart&&this.chart.destroy(),Lc.register(...this.plugins),this.zone.runOutsideAngular(()=>this.chart=new Lc(this.ctx,this.getChartConfiguration()))}update(o){this.chart&&this.zone.runOutsideAngular(()=>{var m;return null===(m=this.chart)||void 0===m?void 0:m.update(o)})}hideDataset(o,m){this.chart&&(this.chart.getDatasetMeta(o).hidden=m,this.update())}isDatasetHidden(o){var m,C;return null===(C=null===(m=this.chart)||void 0===m?void 0:m.getDatasetMeta(o))||void 0===C?void 0:C.hidden}toBase64Image(){var o;return null===(o=this.chart)||void 0===o?void 0:o.toBase64Image()}themeChanged(o){this.themeOverrides=o,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return mm({onHover:(o,m)=>{var C;!this.chartHover.observed&&!(null===(C=this.chartHover.observers)||void 0===C?void 0:C.length)||this.zone.run(()=>this.chartHover.emit({event:o,active:m}))},onClick:(o,m)=>{var C;!this.chartClick.observed&&!(null===(C=this.chartClick.observers)||void 0===C?void 0:C.length)||this.zone.run(()=>this.chartClick.emit({event:o,active:m}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions()}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}}return c.\u0275fac=function(o){return new(o||c)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(Hg))},c.\u0275dir=s.lG2({type:c,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[s.TTD]}),c})();const vm=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],Vm={datasets:{line:{backgroundColor:c=>qc(Qc(c.datasetIndex),.4),borderColor:c=>
1qc(Qc(c.datasetIndex),1),pointBackgroundColor:c=>qc(Qc(c.datasetIndex),1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:c=>qc(Qc(c.datasetIndex),.8)},bar:{backgroundColor:c=>qc(Qc(c.datasetIndex),.6),borderColor:c=>qc(Qc(c.datasetIndex),1),hoverBackgroundColor:c=>qc(Qc(c.datasetIndex),.8),hoverBorderColor:c=>qc(Qc(c.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:c=>qc(Qc(c.dataIndex),.6),borderColor:"#fff",hoverBackgroundColor:c=>qc(Qc(c.dataIndex),1),hoverBorderColor:c=>qc(Qc(c.dataIndex),1)},get pie(){return this.doughnut},polarArea:{backgroundColor:c=>qc(Qc(c.dataIndex),.6),borderColor:c=>qc(Qc(c.dataIndex),1),hoverBackgroundColor:c=>qc(Qc(c.dataIndex),.8),hoverBorderColor:c=>qc(Qc(c.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function qc(c,l){return"rgba("+c.concat(l).join(",")+")"}function tm(c,l){return Math.floor(Math.random()*(l-c+1))+c}function Qc(c=0){return vm[c]||function Hm(){return[tm(0,255),tm(0,255),tm(0,255)]}()}let nm=(()=>{class c{}return c.\u0275fac=function(o){return new(o||c)},c.\u0275prov=s.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();Lc.register(...Td);let Gm=(()=>{class c{constructor(o){(null==o?void 0:o.plugins)&&Lc.register(...null==o?void 0:o.plugins);const m=mm(Vm,(null==o?void 0:o.defaults)||{});ar.set(m)}static forRoot(o){return{ngModule:c,providers:[{provide:nm,useValue:o}]}}}return c.\u0275fac=function(o){return new(o||c)(s.LFG(nm,8))},c.\u0275mod=s.oAB({type:c}),c.\u0275inj=s.cJS({imports:[[]]}),c})()},7404:(Qt,Z,S)=>{"use strict";S.d(Z,{JP:()=>de,Zy:()=>Q,lF:()=>P});var s=S(5e3),_=S(9808),y=S(7468),j=S(4850),L=(S(7224),S(520)),ce=S(2313);const W=["*"];var te=(()=>{return(re=te||(te={})).CommandLine="command-line",re.LineHighlight="line-highlight",re.LineNumbers="line-numbers",te;var re})();class le{}const me=new s.OlP("SECURITY_CONTEXT");let Q=(()=>{class re{constructor(ne,E,M,A,R){this.platform=ne,this.securityContext=E,this.http=M,this.sanitizer=R,this.initialMarkedOptions={renderer:new y.Renderer},this.options=A}get options(){return this._options}set options(ne){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),ne)}get renderer(){return this.options.renderer}set renderer(ne){this.options.renderer=ne}compile(ne,E=!1,M=!1,A=this.options){const R=this.trimIndentation(ne),ee=E?this.decodeHtml(R):R,B=M?this.renderEmoji(ee):ee,K=y.parse(B,A);return this.sanitizer.sanitize(this.securityContext,K)||""}getSource(ne){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(ne,{responseType:"text"}).pipe((0,j.U)(E=>this.handleExtension(ne,E)))}highlight(ne){if((0,_.NF)(this.platform)&&"undefined"!=typeof Prism){ne||(ne=document);const E=ne.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(E,M=>M.classList.add("language-none")),Prism.highlightAllUnder(ne)}}renderKatex(ne,E){if(!(0,_.NF)(this.platform))return ne;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return ne.replace(/\$([^\s][^$]*?[^\s])\$/gm,(M,A)=>katex.renderToString(A,E))}decodeHtml(ne){if(!(0,_.NF)(this.platform))return ne;const E=document.createElement("textarea");return E.innerHTML=ne,E.value}handleExtension(ne,E){const M=ne?ne.split("?")[0].split(".").splice(-1).join():"";return"md"!==M?"```"+M+"\n"+E+"\n```":E}renderEmoji(ne){if(!(0,_.NF)(this.platform))return ne;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(ne)}trimIndentation(ne){if(!ne)return"";let E;return ne.split("\n").map(M=>{let A=E;return M.length>0&&(A=isNaN(A)?M.search(/\S|$/):Math.min(M.search(/\S|$/),A)),isNaN(E)&&(E=A),A?M.substring(A):M}).join("\n")}}return re.\u0275fac=function(ne){return new(ne||re)(s.LFG(s.Lbi),s.LFG(me),s.LFG(L.eN,8),s.LFG(le,8),s.LFG(ce.H7))},re.\u0275prov=s.Yz7({token:re,factory:re.\u0275fac}),re})(),P=(()=>{class re{constructor(ne,E){this.element=ne,this.markdownService=E,this.error=new s.vpe,this.load=new s.vpe,this.ready=new s.vpe,this._commandLine=!1,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(ne){this._emoji=this.coerceBooleanProperty(ne)}get katex(){return this._katex}set katex(ne){this._katex=this.coerceBooleanProperty(ne)}get lineHighlight(){return this._lineHighlight}set lineHighlight(ne){this._lineHighlight=this.coerceBooleanProperty(ne)}get lineNumbers(){return this._lineNumbers}set lineNumbers(ne){this._lineNumbers=this.coerceBooleanProperty(ne)}get commandLine(){return this._commandLine}set commandLine(ne){this._commandLine=this.coerceBooleanProperty(ne)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion()}render(ne,E=!1){let M=this.markdownService.compile(ne,E,this.emoji);M=this.katex?this.markdownService.renderKatex(M,this.katexOptions):M,this.element.nativeElement.innerHTML=M,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(ne){return null!=ne&&"false"!=`${String(ne)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(ne=>{this.render(ne),this.load.emit(ne)},ne=>this.error.emit(ne))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,te.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,te.
1LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(ne,E){const M=ne.querySelectorAll("pre");for(let A=0;A<M.length;A++){const R=E instanceof Array?E:[E];M.item(A).classList.add(...R)}}setPluginOptions(ne,E){const M=ne.querySelectorAll("pre");for(let A=0;A<M.length;A++)Object.keys(E).forEach(R=>{const ee=E[R];if(ee){const B=this.toLispCase(R);M.item(A).setAttribute(B,ee.toString())}})}toLispCase(ne){const E=ne.match(/([A-Z])/g);if(!E)return ne;let M=ne.toString();for(let A=0,R=E.length;A<R;A++)M=M.replace(new RegExp(E[A]),"-"+E[A].toLowerCase());return"-"===M.slice(0,1)&&(M=M.slice(1)),M}}return re.\u0275fac=function(ne){return new(ne||re)(s.Y36(s.SBq),s.Y36(Q))},re.\u0275cmp=s.Xpm({type:re,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[s.TTD],ngContentSelectors:W,decls:1,vars:0,template:function(ne,E){1&ne&&(s.F$t(),s.Hsn(0))},encapsulation:2}),re})(),de=(()=>{class re{static forRoot(ne){return{ngModule:re,providers:[Q,ne&&ne.loader||[],ne&&ne.markedOptions||[],{provide:me,useValue:ne&&null!=ne.sanitize?ne.sanitize:s.q3G.HTML}]}}static forChild(){return{ngModule:re}}}return re.\u0275fac=function(ne){return new(ne||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({}),re})()},1269:(Qt,Z,S)=>{"use strict";S.d(Z,{Z:()=>te});const _={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let y;const j=new Uint8Array(16),L=[];for(let le=0;le<256;++le)L.push((le+256).toString(16).slice(1));const te=function $(le,J,Me){var me,Q,P;if(_.randomUUID&&!J&&!le)return _.randomUUID();const Re=null!=(P=null!=(Q=(le=le||{}).random)?Q:null==(me=le.rng)?void 0:me.call(le))?P:function D(){if(!y){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");y=crypto.getRandomValues.bind(crypto)}return y(j)}();if(Re.length<16)throw new Error("Random bytes length must be >= 16");if(Re[6]=15&Re[6]|64,Re[8]=63&Re[8]|128,J){if((Me=Me||0)<0||Me+16>J.length)throw new RangeError(`UUID byte range ${Me}:${Me+15} is out of buffer bounds`);for(let N=0;N<16;++N)J[Me+N]=Re[N];return J}return function ce(le,J=0){return(L[le[J+0]]+L[le[J+1]]+L[le[J+2]]+L[le[J+3]]+"-"+L[le[J+4]]+L[le[J+5]]+"-"+L[le[J+6]]+L[le[J+7]]+"-"+L[le[J+8]]+L[le[J+9]]+"-"+L[le[J+10]]+L[le[J+11]]+L[le[J+12]]+L[le[J+13]]+L[le[J+14]]+L[le[J+15]]).toLowerCase()}(Re)}},5861:(Qt,Z,S)=>{"use strict";function s(y,j,D,L,ce,W,G){try{var $=y[W](G),te=$.value}catch(le){return void D(le)}$.done?j(te):Promise.resolve(te).then(L,ce)}function _(y){return function(){var j=this,D=arguments;return new Promise(function(L,ce){var W=y.apply(j,D);function G(te){s(W,L,ce,G,$,"next",te)}function $(te){s(W,L,ce,G,$,"throw",te)}G(void 0)})}}S.d(Z,{Z:()=>_})},7582:(Qt,Z,S)=>{"use strict";function j(Ie,Se){var pe={};for(var ke in Ie)Object.prototype.hasOwnProperty.call(Ie,ke)&&Se.indexOf(ke)<0&&(pe[ke]=Ie[ke]);if(null!=Ie&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(ke=Object.getOwnPropertySymbols(Ie);ae<ke.length;ae++)Se.indexOf(ke[ae])<0&&Object.prototype.propertyIsEnumerable.call(Ie,ke[ae])&&(pe[ke[ae]]=Ie[ke[ae]])}return pe}function D(Ie,Se,pe,ke){var Ve,ae=arguments.length,Ce=ae<3?Se:null===ke?ke=Object.getOwnPropertyDescriptor(Se,pe):ke;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ce=Reflect.decorate(Ie,Se,pe,ke);else for(var Be=Ie.length-1;Be>=0;Be--)(Ve=Ie[Be])&&(Ce=(ae<3?Ve(Ce):ae>3?Ve(Se,pe,Ce):Ve(Se,pe))||Ce);return ae>3&&Ce&&Object.defineProperty(Se,pe,Ce),Ce}S.d(Z,{_T:()=>j,gn:()=>D}),"function"==typeof SuppressedError&&SuppressedError}}]);
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.