(self.webpackChunkpopsy_frontend=self.webpackChunkpopsy_frontend||[]).push([[8792],{28505:(it,ge,s)=>{"use strict";s.d(ge,{D_:()=>Un,XK:()=>Nr,qU:()=>bt,il:()=>Be,g7:()=>vt,PN:()=>S,hW:()=>Z,hO:()=>Hr,Af:()=>We,Os:()=>zn,d5:()=>A,gz:()=>at,c4:()=>ns});const i={type:null,entityIds:null,skip:!1,payload:null};let E=!1;function A(Ve,te,Ce){M(Ve,te,Ce),E=!0}function M(Ve,te,Ce){!1===E&&(i.type=Ve,i.entityIds=te,i.payload=Ce)}let f={resettable:!1,ttl:null,producerFn:void 0};function S(Ve){f={...f,...Ve}}function O(){return f}function _(Ve){return null==Ve}function U(Ve){return!1===_(Ve)}var w=s(40352),R=s(52769);const V=new w.B,x=new R.m(50,5e3),z=new w.B,le=typeof window<"u",Y=!le,ve=()=>{try{return typeof localStorage<"u"}catch{return!1}},Ie=()=>{try{return typeof sessionStorage<"u"}catch{return!1}},He={},se={};function Ge(Ve){return Ve&&Ve.charAt(0).toUpperCase()+Ve.slice(1)}le&&(window.$$stores=He,window.$$queries=se);let B=[];function Z(Ve,te={}){if(Y||!window.__REDUX_DEVTOOLS_EXTENSION__)return;B.length&&B.forEach(Dn=>{Dn.unsubscribe?Dn.unsubscribe():Dn&&Dn()}),Ve&&Ve.run||((Ve=Ve||{}).run=Dn=>Dn(),te=Ve);const tt=Object.assign({},{name:"Akita",shallow:!0,storesWhitelist:[]},te),Vt=tt.storesWhitelist,rn=window.__REDUX_DEVTOOLS_EXTENSION__.connect(tt);let gn={};const Gn=Dn=>!Vt.length||Vt.indexOf(Dn)>-1;B.push(x.subscribe(Dn=>{!1!==Gn(Dn)&&(gn={...gn,[Dn]:He[Dn]._value()},rn.send({type:`[${Ge(Dn)}] - @@INIT`},gn))})),B.push(V.subscribe(Dn=>{!1!==Gn(Dn)&&(delete gn[Dn],rn.send({type:`[${Dn}] - Delete Store`},gn))})),B.push(z.subscribe(({storeName:Dn,action:Sr})=>{if(!1===Gn(Dn))return;const{type:dr,entityIds:wr,skip:br,...Lr}=Sr,Br=Lr.payload;if(br)return void function D(Ve=!0){i.skip=Ve}(!1);const ni=He[Dn];if(!ni||!1===te.shallow&&gn[Dn]&&JSON.stringify(ni._value())===JSON.stringify(gn[Dn]))return;gn={...gn,[Dn]:ni._value()};const zi=Ge(Dn);let ki=U(wr)?`[${zi}] - ${dr} (ids: ${wr})`:`[${zi}] - ${dr}`;if(te.logTrace&&(console.group(ki),console.trace(),console.groupEnd()),te.sortAlphabetically){const Qi=Object.keys(gn).sort().reduce((ws,is)=>(ws[is]=gn[is],ws),{});rn.send({type:ki,...Br},Qi)}else rn.send({type:ki,...Br},gn)})),B.push(rn.subscribe(Dn=>{if("DISPATCH"===Dn.type){if("COMMIT"===Dn.payload.type)return void rn.init(gn);if(Dn.state){const dr=JSON.parse(Dn.state);for(let wr=0,br=Object.keys(dr);wr<br.length;wr++){const Lr=br[wr];He[Lr]&&Ve.run(()=>{He[Lr]._setState(()=>dr[Lr],!1)})}}}}))}function J(Ve){return"function"==typeof Ve}var re=function(Ve){return Ve.ASC="asc",Ve.DESC="desc",Ve}(re||{});function Se(Ve){return _(Ve)?[]:Array.isArray(Ve)?Ve:[Ve]}var oe=function(Ve){return Ve.Set="Set",Ve.Add="Add",Ve.Update="Update",Ve.Remove="Remove",Ve}(oe||{}),Ee=s(47701);function Pe(Ve,te){return Ve.hasOwnProperty(te)}let De=!0;function We(){De=!1,le&&(delete window.$$stores,delete window.$$queries)}function st(){return De}function gt(Ve){const te=typeof Ve;return null!=Ve&&("object"==te||"function"==te)}function dt(Ve){return Array.isArray(Ve)}function mt(Ve){return!!dt(Ve)&&0===Ve.length}function Ft(Ve){return void 0===Ve}function At(Ve){return Ve.hasOwnProperty("active")}function lt(Ve){return dt(Ve)}function Le({active:Ve,ids:te,entities:Ce}){return lt(Ve)?function ze(Ve,te){const Ce=Ve.filter(Ne=>te.indexOf(Ne)>-1);return Ce.length===Ve.length?Ve:Ce}(Ve,te):!1===Pe(Ce,Ve)?null:Ve}function fn(Ve,te){let Ce={};for(const Ne of Object.keys(Ve))Ce[Ne]=te(Ve[Ne]);return Ce}var Xn=s(94638),Sn=s(54436),mn=s(8632);function Tr(Ve){Object.freeze(Ve);const te="function"==typeof Ve,Ce=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(Ve).forEach(function(Ne){Ce.call(Ve,Ne)&&(!te||"caller"!==Ne&&"callee"!==Ne&&"arguments"!==Ne)&&null!==Ve[Ne]&&("object"==typeof Ve[Ne]||"function"==typeof Ve[Ne])&&!Object.isFrozen(Ve[Ne])&&Tr(Ve[Ne])}),Ve}function ee(Ve){return null!=Ve&&"false"!=`${Ve}`}function Fe(Ve){return ee(Ve)&&"Object"===Ve.constructor.name}Error;const pt="akitaConfig";function vt(Ve){return function(te){te[pt]={idKey:"id"};for(let Ce=0,Ne=Object.keys(Ve);Ce<Ne.length;Ce++){const tt=Ne[Ce];"name"===tt?te[pt].storeName=Ve[tt]:te[pt][tt]=Ve[tt]}}}var Mt=s(10047);const cn=new w.B,kn=new Xn.t(!1),Hn={activeTransactions:0,batchTransaction:null};function Pr(){return Hn.activeTransactions>0}function Hr(Ve,te=void 0){!function An(){Pr()||(Hn.batchTransaction=new w.B),Hn.activeTransactions++,kn.next(!0)}();try{return Ve.apply(te)}finally{A("@Transaction"),function Vn(){0==--Hn.activeTransactions&&(Hn.batchTransaction.next(!0),Hn.batchTransaction.complete(),kn.next(!1),cn.next(!0))}()}}function _t(){return function(Ve,te,Ce){const Ne=Ce.value;return Ce.value=function(...tt){return Hr(()=>Ne.apply(this,tt),this)},Ce}}class Be{constructor(te,Ce={}){this.options=Ce,this.inTransaction=!1,this.cache={active:new Xn.t(!1),ttl:null},this.onInit(te)}setLoading(te=!1){te!==this._value().loading&&(st()&&M("Set Loading"),this._setState(Ce=>({...Ce,loading:te})))}setHasCache(te,Ce={restartTTL:!1}){if(te!==this.cache.active.value&&this.cache.active.next(te),Ce.restartTTL){const Ne=this.getCacheTTL();Ne&&(null!==this.cache.ttl&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout(()=>this.setHasCache(!1),Ne))}}getValue(){return this.storeValue}setError(te){te!==this._value().error&&(st()&&M("Set Error"),this._setState(Ce=>({...Ce,error:te})))}_select(te){return this.store.asObservable().pipe((0,Sn.T)(Ce=>te(Ce.state)),(0,mn.F)())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor[pt]||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||Tr}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||function C(){return f.producerFn}()}get resettable(){return U(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(te,Ce=!0){if(J(te)){const Ne=te(this._value());this.storeValue=De?this.deepFreeze(Ne):Ne}else this.storeValue=te;if(!this.store)return this.store=new Xn.t({state:this.storeValue}),void(st()&&this.store.subscribe(({action:Ne})=>{Ne&&function ne(Ve,te){z.next({storeName:Ve,action:te})}(this.storeName,Ne)}));Pr()?this.handleTransaction():this.dispatch(this.storeValue,Ce)}reset(){this.isResettable()&&(st()&&M("Reset"),this._setState(()=>Object.assign({},this._initialState)),this.setHasCache(!1))}update(te){let Ce;st()&&M("Update");const Ne=this._value();Ce=J(te)?J(this._producerFn)?this._producerFn(Ne,te):te(Ne):te;const tt=this.akitaPreUpdate(Ne,{...Ne,...Ce}),Vt=Fe(Ne)?tt:new Ne.constructor(tt);this._setState(Vt)}updateStoreConfig(te){this.options={...this.options,...te}}akitaPreUpdate(te,Ce){return Ce}destroy(){(!le||!window.hmrEnabled)&&this===He[this.storeName]&&(delete He[this.storeName],function X(Ve){V.next(Ve)}(this.storeName),this.setHasCache(!1),this.cache.active.complete(),this.store.complete())}onInit(te){He[this.storeName]=this,this._setState(()=>te),function K(Ve){x.next(Ve)}(this.storeName),this.isResettable()&&(this._initialState=te),st()&&function G(Ve,te){Ve||console.error(`@StoreConfig({ name }) is missing in ${te}`)}(this.storeName,this.constructor.name)}dispatch(te,Ce=!0){let Ne;Ce&&(Ne=i,function y(){E=!1}()),this.store.next({state:te,action:Ne})}watchTransaction(){(function Mi(){return Hn.batchTransaction?Hn.batchTransaction.asObservable():(0,Mt.of)(!0)})().subscribe(()=>{this.inTransaction=!1,this.dispatch(this._value())})}isResettable(){return!1!==this.resettable&&(this.resettable||O().resettable)}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=!0)}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||O().ttl}}var yn;class Un extends Be{constructor(te={},Ce={}){super({entities:{},ids:[],loading:!0,error:null,...te},Ce),this.options=Ce,this.entityActions=new w.B,this.entityIdChanges=new w.B}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||"id"}set(te,Ce={}){if(_(te))return;st()&&M("Set Entity");const Ne=this.akitaPreAddEntity===Un.prototype.akitaPreAddEntity;this.setHasCache(!0,{restartTTL:!0}),this._setState(tt=>{const Vt=function Fn({state:Ve,entities:te,idKey:Ce,preAddEntity:Ne,isNativePreAdd:tt}){let Vt,rn;if(dt(te)){const Gn=function Gt(Ve,te,Ce){const Ne={entities:{},ids:[]};for(const tt of Ve){const Vt=Ce(tt);Ne.entities[Vt[te]]=Vt,Ne.ids.push(Vt[te])}return Ne}(te,Ce,Ne);Vt=Gn.entities,rn=Gn.ids}else!function Yt(Ve){return Ve.entities&&Ve.ids}(te)?(Vt=tt?te:fn(te,Ne),rn=Object.keys(Vt).map(Gn=>isNaN(Gn)?Gn:Number(Gn))):(Vt=tt?te.entities:fn(te.entities,Ne),rn=te.ids);const gn={...Ve,entities:Vt,ids:rn,loading:!1};return At(Ve)&&(gn.active=Le(gn)),gn}({state:tt,entities:te,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity.bind(this),isNativePreAdd:Ne});return!1===Ft(Ce.activeId)&&(Vt.active=Ce.activeId),Vt}),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:oe.Set,ids:this.ids})}add(te,Ce={loading:!1}){const Ne=Se(te);if(mt(Ne))return;const tt=function $e({state:Ve,entities:te,idKey:Ce,options:Ne={},preAddEntity:tt}){let Vt={},rn=[],gn=!1;for(const Gn of te)if(!1===Pe(Ve.entities,Gn[Ce])){const Dn=tt(Gn),Sr=Dn[Ce];Vt[Sr]=Dn,Ne.prepend?rn.unshift(Sr):rn.push(Sr),gn=!0}return gn?{newState:{...Ve,entities:{...Ve.entities,...Vt},ids:Ne.prepend?[...rn,...Ve.ids]:[...Ve.ids,...rn]},newIds:rn}:null}({state:this._value(),preAddEntity:this.akitaPreAddEntity.bind(this),entities:Ne,idKey:this.idKey,options:Ce});tt&&(st()&&M("Add Entity"),tt.newState.loading=Ce.loading,this._setState(()=>tt.newState),this.hasInitialUIState()&&this.handleUICreation(!0),this.entityActions.next({type:oe.Add,ids:tt.newIds}))}update(te,Ce){if(Ft(Ce))return void super.update(te);let tt,Ne=[];Ne=J(te)?this.ids.filter(Vt=>te(this.entities[Vt])):_(te)?this.ids:Se(te),mt(Ne)||(st()&&M("Update Entity",Ne),this._setState(Vt=>function et({state:Ve,ids:te,idKey:Ce,newStateOrFn:Ne,preUpdateEntity:tt,producerFn:Vt,onEntityIdChanges:rn}){const gn={};let Dn,Gn=!1;for(const wr of te){if(!1===Pe(Ve.entities,wr))continue;const br=Ve.entities[wr];let Lr;Lr=J(Ne)?J(Vt)?Vt(br,Ne):Ne(br):Ne;const Br=Lr.hasOwnProperty(Ce)&&Lr[Ce]!==br[Ce];let ni;Dn=wr,Br&&(Gn=!0,Dn=Lr[Ce]);const zi={...br,...Lr};ni=Fe(br)?zi:Fe(Lr)?new br.constructor(zi):new Lr.constructor(zi),gn[Dn]=tt(br,ni)}let Sr=Ve.ids,dr=Ve.entities;if(Gn){const[wr]=te,{[wr]:br,...Lr}=Ve.entities;dr=Lr,Sr=Ve.ids.map(Br=>Br===wr?Dn:Br),rn(wr,Dn)}return{...Ve,entities:{...dr,...gn},ids:Sr}}({idKey:this.idKey,ids:Ne,preUpdateEntity:this.akitaPreUpdateEntity.bind(this),state:Vt,newStateOrFn:Ce,producerFn:this._producerFn,onEntityIdChanges:(rn,gn)=>{tt={oldId:rn,newId:gn},this.entityIdChanges.next({...tt,pending:!0})}})),tt&&this.entityIdChanges.next({...tt,pending:!1}),this.entityActions.next({type:oe.Update,ids:Ne}))}upsert(te,Ce,Ne,tt={}){const Vt=Se(te),rn=dr=>wr=>Pe(this.entities,wr)===dr,gn=J(Ne)?tt.baseClass:Ne?Ne.baseClass:void 0,Gn=J(gn),Dn=Vt.filter(rn(!0)),Sr=Vt.filter(rn(!1)).map(dr=>{const wr="function"==typeof Ce?Ce({}):Ce,Lr={...J(Ne)?Ne(dr,wr):wr,[this.idKey]:dr};return Gn?new gn(Lr):Lr});this.update(Dn,Ce),this.add(Sr),st()&&A("Upsert Entity")}upsertMany(te,Ce={}){const Ne=[],tt=[],Vt={};for(const rn of te){const gn=this.akitaPreCheckEntity(rn),Gn=gn[this.idKey];if(Pe(this.entities,Gn)){const Dn=this._value().entities[Gn],Sr={...this._value().entities[Gn],...gn},dr=Ce.baseClass?new Ce.baseClass(Sr):Sr,wr=this.akitaPreUpdateEntity(Dn,dr),br=wr[this.idKey];Vt[br]=wr,tt.push(br)}else{const Dn=Ce.baseClass?new Ce.baseClass(gn):gn,Sr=this.akitaPreAddEntity(Dn),dr=Sr[this.idKey];Ne.push(dr),Vt[dr]=Sr}}st()&&A("Upsert Many"),this._setState(rn=>({...rn,ids:Ne.length?[...rn.ids,...Ne]:rn.ids,entities:{...rn.entities,...Vt},loading:!!Ce.loading})),tt.length&&this.entityActions.next({type:oe.Update,ids:tt}),Ne.length&&this.entityActions.next({type:oe.Add,ids:Ne}),Ne.length&&this.hasUIStore()&&this.handleUICreation(!0)}replace(te,Ce){const Ne=Se(te);if(mt(Ne))return;const tt={};for(const Vt of Ne)tt[Vt]={...Ce,[this.idKey]:Vt};st()&&M("Replace Entity",te),this._setState(Vt=>({...Vt,entities:{...Vt.entities,...tt}}))}move(te,Ce){const Ne=this.ids.slice();Ne.splice(Ce<0?Ne.length+Ce:Ce,0,Ne.splice(te,1)[0]),st()&&M("Move Entity"),this._setState(tt=>({...tt,entities:{...tt.entities},ids:Ne}))}remove(te){if(mt(this.ids))return;const Ce=U(te);let Ne=[];Ne=J(te)?this.ids.filter(tt=>te(this.entities[tt])):Ce?Se(te):this.ids,!mt(Ne)&&(st()&&M("Remove Entity",Ne),this._setState(tt=>function Ue({state:Ve,ids:te}){if(_(te))return function Dt(Ve){return{...Ve,entities:{},ids:[],active:lt(Ve.active)?[]:null}}(Ve);const Ce=Ve.entities;let Ne={};for(const Vt of Ve.ids)!1===te.includes(Vt)&&(Ne[Vt]=Ce[Vt]);const tt={...Ve,entities:Ne,ids:Ve.ids.filter(Vt=>!1===te.includes(Vt))};return At(Ve)&&(tt.active=Le(tt)),tt}({state:tt,ids:Ne})),Ce||this.setHasCache(!1),this.handleUIRemove(Ne),this.entityActions.next({type:oe.Remove,ids:Ne}))}updateActive(te){const Ce=Se(this.active);st()&&M("Update Active",Ce),this.update(Ce,te)}setActive(te){const Ce=function Wt(Ve,te,Ce){let Ne;if(dt(Ve))Ne=Ve;else if(gt(Ve)){if(_(Ce))return;Ve=Object.assign({wrap:!0},Ve);const tt=te.indexOf(Ce);if(Ve.prev){const Vt=0===tt;if(Vt&&!Ve.wrap)return;Ne=Vt?te[te.length-1]:te[tt-1]}else if(Ve.next){const Vt=te.length===tt+1;if(Vt&&!Ve.wrap)return;Ne=Vt?te[0]:te[tt+1]}}else{if(Ve===Ce)return;Ne=Ve}return Ne}(te,this.ids,this.active);void 0!==Ce&&(st()&&M("Set Active",Ce),this._setActive(Ce))}addActive(te){const Ce=Se(te);mt(Ce)||Ce.every(tt=>this.active.indexOf(tt)>-1)||(st()&&M("Add Active",te),this._setState(tt=>{const Vt=Array.from(new Set([...tt.active,...Ce]));return{...tt,active:Vt}}))}removeActive(te){const Ce=Se(te);mt(Ce)||!Ce.some(tt=>this.active.indexOf(tt)>-1)||(st()&&M("Remove Active",te),this._setState(tt=>({...tt,active:Array.isArray(tt.active)?tt.active.filter(Vt=>-1===Ce.indexOf(Vt)):null})))}toggleActive(te){const Ce=Se(te),Ne=rn=>gn=>this.active.includes(gn)===rn,tt=Ce.filter(Ne(!0)),Vt=Ce.filter(Ne(!1));this.removeActive(tt),this.addActive(Vt),st()&&A("Toggle Active")}createUIStore(te={},Ce={}){return this.ui=new ur(te,{name:`UI/${this.storeName}`,idKey:this.idKey,...Ce}),this.ui}destroy(){super.destroy(),this.ui instanceof Un&&this.ui.destroy(),this.entityActions.complete()}akitaPreUpdateEntity(te,Ce){return Ce}akitaPreAddEntity(te){return te}akitaPreCheckEntity(te){return te}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(te){this._setState(Ce=>({...Ce,active:te}))}handleUICreation(te=!1){const Ce=this.ids,Ne=J(this.ui._akitaCreateEntityFn);let tt;const Vt=rn=>{const gn=this.entities[rn],Gn=Ne?this.ui._akitaCreateEntityFn(gn):this.ui._akitaCreateEntityFn;return{[this.idKey]:gn[this.idKey],...Gn}};tt=te?this.ids.filter(rn=>Ft(this.ui.entities[rn])).map(Vt):Ce.map(Vt),te?this.ui.add(tt):this.ui.set(tt)}hasInitialUIState(){return this.hasUIStore()&&!1===Ft(this.ui._akitaCreateEntityFn)}handleUIRemove(te){this.hasUIStore()&&this.ui.remove(te)}hasUIStore(){return this.ui instanceof ur}}(0,Ee.Cg)([_t(),(0,Ee.Sn)("design:type",Function),(0,Ee.Sn)("design:paramtypes",[Object,Object,Object,Object]),(0,Ee.Sn)("design:returntype",void 0)],Un.prototype,"upsert",null),(0,Ee.Cg)([_t(),(0,Ee.Sn)("design:type",Function),(0,Ee.Sn)("design:paramtypes",["function"==typeof(yn=typeof T<"u"&&T)?yn:Object]),(0,Ee.Sn)("design:returntype",void 0)],Un.prototype,"toggleActive",null);class ur extends Un{constructor(te={},Ce={}){super(te,Ce)}setInitialEntityState(te){this._akitaCreateEntityFn=te}}function yi(Ve){return"string"==typeof Ve}class Nr{constructor(te){this.store=te,this.__store__=te,st()&&(se[te.storeName]=this)}select(te){let Ce;if(J(te))Ce=te;else if(yi(te))Ce=Ne=>Ne[te];else{if(Array.isArray(te))return this.store._select(Ne=>Ne).pipe((0,mn.F)(function Ur(Ve){return function(te,Ce){const Ne=J(Ve[0]);return!1===Ve.some(tt=>Ne?tt(te)!==tt(Ce):te[tt]!==Ce[tt])}}(te)),(0,Sn.T)(Ne=>J(te[0])?te.map(tt=>tt(Ne)):te.reduce((tt,Vt)=>(tt[Vt]=Ne[Vt],tt),{})));Ce=Ne=>Ne}return this.store._select(Ce)}selectLoading(){return this.select(te=>te.loading)}selectError(){return this.select(te=>te.error)}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor.akitaQueryConfig}}var vi=s(22900),Et=s(79274);function nt(Ve,te){return function(Ce){const Ne=Ce[Ve];if(!Ft(Ne))return te?yi(te)?Ne[te]:te(Ne):Ne}}class bt extends Nr{constructor(te,Ce={}){super(te),this.options=Ce,this.__store__=te}selectAll(te={asObject:!1}){return this.select(Ce=>Ce.entities).pipe((0,Sn.T)(()=>this.getAll(te)))}getAll(te={asObject:!1,filterBy:void 0,limitTo:void 0}){return te.asObject?function Bn(Ve,te){const Ce={},{filterBy:Ne,limitTo:tt}=te,{ids:Vt,entities:rn}=Ve;if(!Ne&&!tt)return rn;const gn=!1===_(tt);if(Ne&&gn){let Gn=0;for(let Dn=0,Sr=Vt.length;Dn<Sr&&Gn!==tt;Dn++){const dr=Vt[Dn],wr=rn[dr];Se(Ne).every(Lr=>Lr(wr,Dn))&&(Ce[dr]=wr,Gn++)}}else{const Gn=Math.min(tt||Vt.length,Vt.length);for(let Dn=0;Dn<Gn;Dn++){const Sr=Vt[Dn],dr=rn[Sr];Ne?Se(Ne).every(br=>br(dr,Dn))&&(Ce[Sr]=dr):Ce[Sr]=dr}}return Ce}(this.getValue(),te):(function je(Ve,te){Ve.sortBy=Ve.sortBy||te&&te.sortBy,Ve.sortByOrder=Ve.sortByOrder||te&&te.sortByOrder}(te,this.config||this.options),function we(Ve,te){let Ce=[];const{ids:Ne,entities:tt}=Ve,{filterBy:Vt,limitTo:rn,sortBy:gn,sortByOrder:Gn}=te;for(let Sr=0;Sr<Ne.length;Sr++){const dr=tt[Ne[Sr]];Vt?Se(Vt).every(Lr=>Lr(dr,Sr))&&Ce.push(dr):Ce.push(dr)}if(gn){let Sr=J(gn)?gn:function ce(Ve,te=re.ASC){return function(Ce,Ne){if(!Ce.hasOwnProperty(Ve)||!Ne.hasOwnProperty(Ve))return 0;const tt="string"==typeof Ce[Ve]?Ce[Ve].toUpperCase():Ce[Ve],Vt="string"==typeof Ne[Ve]?Ne[Ve].toUpperCase():Ne[Ve];let rn=0;return tt>Vt?rn=1:tt<Vt&&(rn=-1),te==re.DESC?-1*rn:rn}}(gn,Gn);Ce=Ce.sort((dr,wr)=>Sr(dr,wr,Ve))}const Dn=Math.min(rn||Ce.length,Ce.length);return Dn===Ce.length?Ce:Ce.slice(0,Dn)}(this.getValue(),te))}selectMany(te,Ce){return te&&te.length?this.select(Ne=>Ne.entities).pipe((0,Sn.T)(Ne=>function qt(Ve,te){return Ve.reduce((Ce,Ne,tt,Vt)=>{const rn=te(Ne,tt,Vt);return void 0!==rn&&Ce.push(rn),Ce},[])}(te,tt=>nt(tt,Ce)(Ne))),function It(){return(0,mn.F)((Ve,te)=>Ve===te||!(!dt(Ve)||!dt(te))&&(!(!mt(Ve)||!mt(te))||Ve.length===te.length&&!1===te.some((Ne,tt)=>Ve[tt]!==Ne)))}()):(0,Mt.of)([])}selectEntity(te,Ce){let Ne=te;return J(te)&&(Ne=function Yn(Ve,te){for(const Ce of Object.keys(te))if(!0===Ve(te[Ce]))return Ce}(te,this.getValue().entities)),this.select(tt=>tt.entities).pipe((0,Sn.T)(nt(Ne,Ce)),(0,mn.F)())}getEntity(te){return this.getValue().entities[te]}selectActiveId(){return this.select(te=>te.active)}getActiveId(){return this.getValue().active}selectActive(te){return dt(this.getActive())?this.selectActiveId().pipe((0,vi.n)(Ce=>this.selectMany(Ce,te))):this.selectActiveId().pipe((0,vi.n)(Ce=>this.selectEntity(Ce,te)))}getActive(){const te=this.getActiveId();return dt(te)?te.map(Ce=>this.getValue().entities[Ce]):ee(te)?this.getEntity(te):void 0}selectCount(te){return this.select(Ce=>Ce.entities).pipe((0,Sn.T)(()=>this.getCount(te)))}getCount(te){return J(te)?this.getAll().filter(te).length:this.getValue().ids.length}selectLast(te){return this.selectAt(Ce=>Ce[Ce.length-1],te)}selectFirst(te){return this.selectAt(Ce=>Ce[0],te)}selectEntityAction(te){if(_(te))return this.store.selectEntityAction$;const Ce=dt(te)?tt=>tt:({ids:tt})=>tt,Ne=Se(te);return this.store.selectEntityAction$.pipe((0,Et.p)(({type:tt})=>Ne.includes(tt)),(0,Sn.T)(tt=>Ce(tt)))}hasEntity(te){return _(te)?this.getValue().ids.length>0:J(te)?this.getAll().some(te):dt(te)?te.every(Ce=>Ce in this.getValue().entities):te in this.getValue().entities}hasActive(te){const Ce=this.getValue().active,Ne=U(te);return Array.isArray(Ce)?Ne?Ce.includes(te):Ce.length>0:Ne?Ce===te:U(Ce)}createUIQuery(){this.ui=new Rt(this.__store__.ui)}selectAt(te,Ce){return this.select(Ne=>Ne.ids).pipe((0,Sn.T)(te),(0,mn.F)(),(0,vi.n)(Ne=>this.selectEntity(Ne,Ce)))}}class Rt extends bt{constructor(te){super(te)}}function zn(){return Math.random().toString(36).slice(2)}var Me=s(62644),Je=s(90249),qe=s(98627);function xt(Ve,te){return 1===te.split(".").length?Ve:te.split(".").slice(1).join(".").split(".").reduce((Ne,tt)=>Ne&&Ne[tt],Ve)}function Pt(Ve,te,Ce,Ne=!1){const tt=te.split(".");if(1===tt.length)return{...Ve,...Ce};Ve={...Ve};const Vt=tt.length-2;return te.split(".").slice(1).reduce((gn,Gn,Dn)=>Dn!==Vt?(gn[Gn]={...gn[Gn]},gn&&gn[Gn]):(gn[Gn]=Ne||Array.isArray(gn[Gn])||!gt(gn[Gn])?Ce:{...gn[Gn],...Ce},gn&&gn[Gn]),Ve),Ve}let un=!1;const dn=new R.m(1);function Nn(Ve){un=Ve}function be(){return un}function ke(Ve){return function Qe(Ve){return Ve&&J(Ve.then)}(Ve)||(0,Me.A)(Ve)?(0,Je.H)(Ve):(0,Mt.of)(Ve)}function at(Ve){const te={key:"AkitaStores",enableInNonBrowser:!1,storage:ve()?localStorage:Ve.storage,deserialize:JSON.parse,serialize:JSON.stringify,include:[],select:[],persistOnDestroy:!1,preStorageUpdate:function(hr,vr){return vr},preStoreUpdate:function(hr,vr){return vr},skipStorageUpdate:be,preStorageUpdateOperator:()=>hr=>hr},{storage:Ce,enableInNonBrowser:Ne,deserialize:tt,serialize:Vt,include:rn,select:gn,key:Gn,preStorageUpdate:Dn,persistOnDestroy:Sr,preStorageUpdateOperator:dr,preStoreUpdate:wr,skipStorageUpdate:br}=Object.assign({},te,Ve);if(Y&&!Ne||!Ce)return;const Lr=rn.length>0,Br=gn.length>0;let ni,zi;Lr&&(ni=rn.reduce((hr,vr)=>(J(vr)?hr.fns.push(vr):hr[vr.split(".")[0]]=vr,hr),{fns:[]})),Br&&(zi=gn.reduce((hr,vr)=>(hr[vr.storeName]=vr,hr),{}));let ki={},Qi={},ws=[];const is=[];function aa(hr){ke(hr).subscribe(()=>{const vr=is.shift();vr&&aa(vr)})}const fo=ve()&&Ce===localStorage||Ie()&&Ce===sessionStorage;return ke(Ce.getItem(Gn)).subscribe(hr=>{let vr=gt(hr)?hr:tt(hr||"{}");function xr(sr){vr.$cache={...vr.$cache||{},...sr},vr=Object.assign({},vr,Qi),is.push(Ce.setItem(Gn,fo?Vt(vr):vr)),aa(is.shift())}function Xs(sr,fr){ki[sr]=He[sr]._select(_i=>xt(_i,fr)).pipe((0,qe.i)(1),(0,Sn.T)(_i=>Br&&zi[sr]?zi[sr](_i):_i),(0,Et.p)(()=>!1===br()),dr()).subscribe(_i=>{Qi[sr]=Dn(sr,_i),Promise.resolve().then(()=>xr({[sr]:He[sr]._cache().getValue()}))})}function Ps(sr,fr,_i){sr in vr&&(M("@PersistState"),fr._setState(Yi=>Pt(Yi,_i,wr(sr,vr[sr],Yi))),He[sr].setHasCache(!!vr.$cache&&vr.$cache[sr],{restartTTL:!0}))}ws.push(V.subscribe(sr=>{ki[sr]&&(!1===Sr&&xr({[sr]:!1}),ki[sr].unsubscribe(),delete ki[sr])})),ws.push(x.subscribe(sr=>{if("router"===sr)return;const fr=He[sr];if(Lr){let _i=ni[sr];if(!_i){if(!ni.fns.some(Yi=>Yi(sr)))return;_i=sr}Ps(sr,fr,_i),Xs(sr,_i)}else Ps(sr,fr,sr),Xs(sr,sr)})),dn.next(!0)}),{destroy(){ws.forEach(hr=>hr.unsubscribe());for(let hr=0,vr=Object.keys(ki);hr<vr.length;hr++)ki[vr[hr]].unsubscribe();ki={}},clear(){Ce.clear()},clearStore(hr){_(hr)?ke(Ce.setItem(Gn,"{}")).subscribe():ke(Ce.getItem(Gn)).subscribe(xr=>{const Xs=tt(xr||"{}");Xs[hr]&&(delete Xs[hr],ke(Ce.setItem(Gn,Vt(Xs))).subscribe())})}}}class wt{constructor(te,Ce){this.query=te,Ce&&Ce.resetFn&&O().resettable&&this.onReset(Ce.resetFn)}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(te){return ee(te)}selectSource(te,Ce){return this.isEntityBased(te)?this.getQuery().selectEntity(te).pipe(function ht(){return(0,Et.p)(Ve=>null!=Ve)}()):Ce?this.getQuery().select(Ne=>xt(Ne,this.withStoreName(Ce))):this.getQuery().select()}getSource(te,Ce){if(this.isEntityBased(te))return this.getQuery().getEntity(te);const Ne=this.getQuery().getValue();return Ce?xt(Ne,this.withStoreName(Ce)):Ne}withStoreName(te){return`${this.storeName}.${te}`}get storeName(){return this.getStore().storeName}updateStore(te,Ce,Ne,tt=!1){if(this.isEntityBased(Ce)){const Vt=this.getStore();tt?Vt.replace(Ce,te):Vt.update(Ce,te)}else{if(Ne)return void this.getStore()._setState(rn=>Pt(rn,this.withStoreName(Ne),te,!0));const Vt=tt?te:rn=>({...rn,...te});this.getStore()._setState(Vt)}}onReset(te){const Ce=this.getStore().reset;this.getStore().reset=(...Ne)=>{setTimeout(()=>{Ce.apply(this.getStore(),Ne),te()})}}}s(58298),s(67102),s(80852);var Wn=s(92785),Qr=s(2267);const jr={pagesControls:!1,range:!1,startWith:1,cacheTimeout:void 0,clearStoreWithCache:!0};function ns(Ve){Ve=Object.assign({},{exclude:[]},Ve);const Ce=Object.keys(He);Hr(()=>{for(const Ne of Ce){const tt=He[Ne];Ve.exclude?-1===Ve.exclude.indexOf(tt.storeName)&&tt.reset():tt.reset()}})}(0,Ee.Cg)([function b(Ve,te){return function(Ce,Ne,tt){const Vt=tt.value;return tt.value=function(...rn){return A(Ve,te),Vt.apply(this,rn)},tt}}("@Pagination - New Page"),(0,Ee.Sn)("design:type",Function),(0,Ee.Sn)("design:paramtypes",[Object]),(0,Ee.Sn)("design:returntype",void 0)],class ls extends wt{constructor(te,Ce={}){super(te,{resetFn:()=>{this.initial=!1,this.destroy({clearCache:!0,currentPage:1})}}),this.query=te,this.config=Ce,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=!0,this.isLoading$=this.query.selectLoading().pipe((0,Wn.c)(0)),this.config={...jr,...Ce};const{startWith:Ne,cacheTimeout:tt}=this.config;this.page=new Xn.t(Ne),(0,Me.A)(tt)&&(this.clearCacheSubscription=tt.subscribe(()=>this.clearCache()))}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return 1===this.currentPage}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=!0,this}withRange(){return this.config.range=!0,this}setLoading(te=!0){this.getStore().setLoading(te)}update(te){this.pagination=te,this.addPage(te.data)}addPage(te){this.pages.set(this.currentPage,{ids:te.map(Ce=>Ce[this.getStore().idKey])}),this.getStore().upsertMany(te)}clearCache(te={}){this.initial||(A("@Pagination - Clear Cache"),!1!==te.clearStore&&(this.config.clearStoreWithCache||te.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=!1}clearPage(te){this.pages.delete(te)}destroy({clearCache:te,currentPage:Ce}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),te&&this.clearCache(),Ft(Ce)||this.setPage(Ce),this.initial=!0}isPageActive(te){return this.currentPage===te}setPage(te){(te!==this.currentPage||!this.hasPage(te))&&this.page.next(this.pagination.currentPage=te)}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1)}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1)}setLastPage(){this.setPage(this.pagination.lastPage)}setFirstPage(){this.setPage(1)}hasPage(te){return this.pages.has(te)}getPage(te){let Ce=this.pagination.currentPage;return this.hasPage(Ce)?this.selectPage(Ce):(this.setLoading(!0),(0,Je.H)(te()).pipe((0,vi.n)(Ne=>(Ce=Ne.currentPage,Hr(()=>{this.setLoading(!1),this.update(Ne)}),this.selectPage(Ce)))))}getQuery(){return this.query}refreshCurrentPage(){!1===_(this.currentPage)&&(this.clearPage(this.currentPage),this.setPage(this.currentPage))}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(te){return this.query.selectAll({asObject:!0}).pipe((0,Qr.s)(1),(0,Sn.T)(Ce=>{const Ne={...this.pagination,data:this.pages.get(te).ids.map(rn=>Ce[rn])},{range:tt,pagesControls:Vt}=this.config;return isNaN(this.pagination.total)&&(Ne.total=1===Ne.lastPage?Ne.data?Ne.data.length:0:Ne.perPage*Ne.lastPage,this.pagination.total=Ne.total),tt&&(Ne.from=this.getFrom(),Ne.to=this.getTo()),Vt&&(Ne.pageControls=function js(Ve,te){const Ce=Math.ceil(Ve/te),Ne=[];for(let tt=0;tt<Ce;tt++)Ne.push(tt+1);return Ne}(this.pagination.total,this.pagination.perPage)),Ne}))}}.prototype,"update",null),s(48582),s(97216),s(91002),new class ho{getStoresSnapshot(te=[]){let Ce={};const tt=te.length>0?te:Object.keys(He);for(let Vt=0;Vt<tt.length;Vt++){let rn=tt[Vt];"router"!==rn&&(Ce[rn]=He[rn]._value())}return Ce}setStoresSnapshot(te,Ce){const Ne={skipStorageUpdate:!1,lazy:!1,...Ce};Ne.skipStorageUpdate&&Nn(!0);let tt=te;yi(te)&&(tt=JSON.parse(tt));const Vt=Object.keys(tt).length;if(Ne.lazy)x.pipe((0,Et.p)(rn=>tt.hasOwnProperty(rn)),(0,Qr.s)(Vt)).subscribe(rn=>He[rn]._setState(()=>tt[rn]));else for(let rn=0,gn=Object.keys(tt);rn<gn.length;rn++){const Gn=gn[rn];He[Gn]&&He[Gn]._setState(()=>tt[Gn])}Ne.skipStorageUpdate&&Nn(!1)}}},3898:(it,ge,s)=>{"use strict";s.d(ge,{Cp:()=>E,PN:()=>M,ZQ:()=>D,v4:()=>U});var i=s(78058);function E(R,V){return(0,i.BF)().captureException(R,{captureContext:V})}function M(R){(0,i.BF)().configureScope(R)}function D(R){(0,i.BF)().addBreadcrumb(R)}function U(R){(0,i.BF)().withScope(R)}},78058:(it,ge,s)=>{"use strict";s.d(ge,{BF:()=>U});var i=s(5663),E=s(7930),y=s(75715),A=s(42788),M=s(40911),D=s(84849),b=s(78985),f=4,S=100;class O{__init(){this._stack=[{}]}constructor(X,K=new D.H,ne=f){this._version=ne,O.prototype.__init.call(this),this.getStackTop().scope=K,X&&this.bindClient(X)}isOlderThan(X){return this._version<X}bindClient(X){this.getStackTop().client=X,X&&X.setupIntegrations&&X.setupIntegrations()}pushScope(){var X=D.H.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:X}),X}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(X){var K=this.pushScope();try{X(K)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(X,K){var ne=this._lastEventId=K&&K.event_id?K.event_id:(0,i.eJ)(),le=new Error("Sentry syntheticException");return this._withClient((Y,ve)=>{Y.captureException(X,{originalException:X,syntheticException:le,...K,event_id:ne},ve)}),ne}captureMessage(X,K,ne){var le=this._lastEventId=ne&&ne.event_id?ne.event_id:(0,i.eJ)(),Y=new Error(X);return this._withClient((ve,Ie)=>{ve.captureMessage(X,K,{originalException:X,syntheticException:Y,...ne,event_id:le},Ie)}),le}captureEvent(X,K){var ne=K&&K.event_id?K.event_id:(0,i.eJ)();return"transaction"!==X.type&&(this._lastEventId=ne),this._withClient((le,Y)=>{le.captureEvent(X,{...K,event_id:ne},Y)}),ne}lastEventId(){return this._lastEventId}addBreadcrumb(X,K){const{scope:ne,client:le}=this.getStackTop();if(!ne||!le)return;const{beforeBreadcrumb:Y=null,maxBreadcrumbs:ve=S}=le.getOptions&&le.getOptions()||{};if(!(ve<=0)){var He={timestamp:(0,E.lu)(),...X},se=Y?(0,y.pq)(()=>Y(He,K)):He;null!==se&&ne.addBreadcrumb(se,ve)}}setUser(X){var K=this.getScope();K&&K.setUser(X)}setTags(X){var K=this.getScope();K&&K.setTags(X)}setExtras(X){var K=this.getScope();K&&K.setExtras(X)}setTag(X,K){var ne=this.getScope();ne&&ne.setTag(X,K)}setExtra(X,K){var ne=this.getScope();ne&&ne.setExtra(X,K)}setContext(X,K){var ne=this.getScope();ne&&ne.setContext(X,K)}configureScope(X){const{scope:K,client:ne}=this.getStackTop();K&&ne&&X(K)}run(X){var K=_(this);try{X(this)}finally{_(K)}}getIntegration(X){var K=this.getClient();if(!K)return null;try{return K.getIntegration(X)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.vF.warn(`Cannot retrieve integration ${X.id} from the current Hub`),null}}startTransaction(X,K){return this._callExtensionMethod("startTransaction",X,K)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(X=!1){if(X)return this.endSession();this._sendSessionUpdate()}endSession(){var X=this.getStackTop(),K=X&&X.scope,ne=K&&K.getSession();ne&&(0,b.Vu)(ne),this._sendSessionUpdate(),K&&K.setSession()}startSession(X){const{scope:K,client:ne}=this.getStackTop(),{release:le,environment:Y}=ne&&ne.getOptions()||{};var ve=(0,A.V)();const{userAgent:Ie}=ve.navigator||{};var He=(0,b.fj)({release:le,environment:Y,...K&&{user:K.getUser()},...Ie&&{userAgent:Ie},...X});if(K){var se=K.getSession&&K.getSession();se&&"ok"===se.status&&(0,b.qO)(se,{status:"exited"}),this.endSession(),K.setSession(He)}return He}shouldSendDefaultPii(){var X=this.getClient(),K=X&&X.getOptions();return!(!K||!K.sendDefaultPii)}_sendSessionUpdate(){const{scope:X,client:K}=this.getStackTop();if(X){var ne=X.getSession();ne&&K&&K.captureSession&&K.captureSession(ne)}}_withClient(X){const{scope:K,client:ne}=this.getStackTop();ne&&X(ne,K)}_callExtensionMethod(X,...K){var le=C().__SENTRY__;if(le&&le.extensions&&"function"==typeof le.extensions[X])return le.extensions[X].apply(this,K);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&y.vF.warn(`Extension method ${X} couldn't be found, doing nothing.`)}}function C(){var z=(0,A.V)();return z.__SENTRY__=z.__SENTRY__||{extensions:{},hub:void 0},z}function _(z){var X=C(),K=V(X);return x(X,z),K}function U(){var z=C();return(!R(z)||V(z).isOlderThan(f))&&x(z,new O),(0,M.wD)()?function w(z){try{var X=C().__SENTRY__,K=X&&X.extensions&&X.extensions.domain&&X.extensions.domain.active;if(!K)return V(z);if(!R(K)||V(K).isOlderThan(f)){var ne=V(z).getStackTop();x(K,new O(ne.client,D.H.clone(ne.scope)))}return V(K)}catch{return V(z)}}(z):V(z)}function R(z){return!!(z&&z.__SENTRY__&&z.__SENTRY__.hub)}function V(z){return(0,A.B)("hub",()=>new O,z)}function x(z,X){return!!z&&((z.__SENTRY__=z.__SENTRY__||{}).hub=X,!0)}},84849:(it,ge,s)=>{"use strict";s.d(ge,{H:()=>f,l:()=>O});var i=s(69623),E=s(7930),y=s(79839),A=s(75715),M=s(42788),D=s(78985);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(_){var U=new f;return _&&(U._breadcrumbs=[..._._breadcrumbs],U._tags={..._._tags},U._extra={..._._extra},U._contexts={..._._contexts},U._user=_._user,U._level=_._level,U._span=_._span,U._session=_._session,U._transactionName=_._transactionName,U._fingerprint=_._fingerprint,U._eventProcessors=[..._._eventProcessors],U._requestSession=_._requestSession,U._attachments=[..._._attachments]),U}addScopeListener(_){this._scopeListeners.push(_)}addEventProcessor(_){return this._eventProcessors.push(_),this}setUser(_){return this._user=_||{},this._session&&(0,D.qO)(this._session,{user:_}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(_){return this._requestSession=_,this}setTags(_){return this._tags={...this._tags,..._},this._notifyScopeListeners(),this}setTag(_,U){return this._tags={...this._tags,[_]:U},this._notifyScopeListeners(),this}setExtras(_){return this._extra={...this._extra,..._},this._notifyScopeListeners(),this}setExtra(_,U){return this._extra={...this._extra,[_]:U},this._notifyScopeListeners(),this}setFingerprint(_){return this._fingerprint=_,this._notifyScopeListeners(),this}setLevel(_){return this._level=_,this._notifyScopeListeners(),this}setTransactionName(_){return this._transactionName=_,this._notifyScopeListeners(),this}setContext(_,U){return null===U?delete this._contexts[_]:this._contexts={...this._contexts,[_]:U},this._notifyScopeListeners(),this}setSpan(_){return this._span=_,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var _=this.getSpan();return _&&_.transaction}setSession(_){return _?this._session=_:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(_){if(!_)return this;if("function"==typeof _){var U=_(this);return U instanceof f?U:this}return _ instanceof f?(this._tags={...this._tags,..._._tags},this._extra={...this._extra,..._._extra},this._contexts={...this._contexts,..._._contexts},_._user&&Object.keys(_._user).length&&(this._user=_._user),_._level&&(this._level=_._level),_._fingerprint&&(this._fingerprint=_._fingerprint),_._requestSession&&(this._requestSession=_._requestSession)):(0,i.Qd)(_)&&(this._tags={...this._tags,..._.tags},this._extra={...this._extra,..._.extra},this._contexts={...this._contexts,..._.contexts},_.user&&(this._user=_.user),_.level&&(this._level=_.level),_.fingerprint&&(this._fingerprint=_.fingerprint),_.requestSession&&(this._requestSession=_.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(_,U){var w="number"==typeof U?Math.min(U,100):100;if(w<=0)return this;var R={timestamp:(0,E.lu)(),..._};return this._breadcrumbs=[...this._breadcrumbs,R].slice(-w),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(_){return this._attachments.push(_),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(_,U={}){if(this._extra&&Object.keys(this._extra).length&&(_.extra={...this._extra,..._.extra}),this._tags&&Object.keys(this._tags).length&&(_.tags={...this._tags,..._.tags}),this._user&&Object.keys(this._user).length&&(_.user={...this._user,..._.user}),this._contexts&&Object.keys(this._contexts).length&&(_.contexts={...this._contexts,..._.contexts}),this._level&&(_.level=this._level),this._transactionName&&(_.transaction=this._transactionName),this._span){_.contexts={trace:this._span.getTraceContext(),..._.contexts};var w=this._span.transaction&&this._span.transaction.name;w&&(_.tags={transaction:w,..._.tags})}return this._applyFingerprint(_),_.breadcrumbs=[..._.breadcrumbs||[],...this._breadcrumbs],_.breadcrumbs=_.breadcrumbs.length>0?_.breadcrumbs:void 0,_.sdkProcessingMetadata={..._.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...S(),...this._eventProcessors],_,U)}setSDKProcessingMetadata(_){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,..._},this}_notifyEventProcessors(_,U,w,R=0){return new y.T2((V,x)=>{var z=_[R];if(null===U||"function"!=typeof z)V(U);else{var X=z({...U},w);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&z.id&&null===X&&A.vF.log(`Event processor "${z.id}" dropped event`),(0,i.Qg)(X)?X.then(K=>this._notifyEventProcessors(_,K,w,R+1).then(V)).then(null,x):this._notifyEventProcessors(_,X,w,R+1).then(V).then(null,x)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(_=>{_(this)}),this._notifyingListeners=!1)}_applyFingerprint(_){_.fingerprint=_.fingerprint?Array.isArray(_.fingerprint)?_.fingerprint:[_.fingerprint]:[],this._fingerprint&&(_.fingerprint=_.fingerprint.concat(this._fingerprint)),_.fingerprint&&!_.fingerprint.length&&delete _.fingerprint}}function S(){return(0,M.B)("globalEventProcessors",()=>[])}function O(C){S().push(C)}},78985:(it,ge,s)=>{"use strict";s.d(ge,{Vu:()=>D,fj:()=>A,qO:()=>M});var i=s(7930),E=s(5663),y=s(89564);function A(f){var S=(0,i.zf)(),O={sid:(0,E.eJ)(),init:!0,timestamp:S,started:S,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function b(f){return(0,y.Ce)({sid:`${f.sid}`,init:f.init,started:new Date(1e3*f.started).toISOString(),timestamp:new Date(1e3*f.timestamp).toISOString(),status:f.status,errors:f.errors,did:"number"==typeof f.did||"string"==typeof f.did?`${f.did}`:void 0,duration:f.duration,attrs:{release:f.release,environment:f.environment,ip_address:f.ipAddress,user_agent:f.userAgent}})}(O)};return f&&M(O,f),O}function M(f,S={}){if(S.user&&(!f.ipAddress&&S.user.ip_address&&(f.ipAddress=S.user.ip_address),!f.did&&!S.did&&(f.did=S.user.id||S.user.email||S.user.username)),f.timestamp=S.timestamp||(0,i.zf)(),S.ignoreDuration&&(f.ignoreDuration=S.ignoreDuration),S.sid&&(f.sid=32===S.sid.length?S.sid:(0,E.eJ)()),void 0!==S.init&&(f.init=S.init),!f.did&&S.did&&(f.did=`${S.did}`),"number"==typeof S.started&&(f.started=S.started),f.ignoreDuration)f.duration=void 0;else if("number"==typeof S.duration)f.duration=S.duration;else{var O=f.timestamp-f.started;f.duration=O>=0?O:0}S.release&&(f.release=S.release),S.environment&&(f.environment=S.environment),!f.ipAddress&&S.ipAddress&&(f.ipAddress=S.ipAddress),!f.userAgent&&S.userAgent&&(f.userAgent=S.userAgent),"number"==typeof S.errors&&(f.errors=S.errors),S.status&&(f.status=S.status)}function D(f,S){let O={};S?O={status:S}:"ok"===f.status&&(O={status:"exited"}),M(f,O)}},72423:(it,ge,s)=>{"use strict";s.d(ge,{$:()=>M,H:()=>y});var i=s(42788),E=s(69623);function y(D,b){try{let U=D;var O=[];let V,w=0,R=0;for(;U&&w++<5&&(V=A(U,b),!("html"===V||w>1&&R+3*O.length+V.length>=80));)O.push(V),R+=V.length,U=U.parentNode;return O.reverse().join(" > ")}catch{return"<unknown>"}}function A(D,b){var f=D,S=[];let O,C,_,U,w;if(!f||!f.tagName)return"";S.push(f.tagName.toLowerCase());var R=b&&b.length?b.filter(x=>f.getAttribute(x)).map(x=>[x,f.getAttribute(x)]):null;if(R&&R.length)R.forEach(x=>{S.push(`[${x[0]}="${x[1]}"]`)});else if(f.id&&S.push(`#${f.id}`),O=f.className,O&&(0,E.Kg)(O))for(C=O.split(/\s+/),w=0;w<C.length;w++)S.push(`.${C[w]}`);var V=["type","name","title","alt"];for(w=0;w<V.length;w++)_=V[w],U=f.getAttribute(_),U&&S.push(`[${_}="${U}"]`);return S.join("")}function M(){var D=(0,i.V)();try{return D.document.location.href}catch{return""}}},42788:(it,ge,s)=>{"use strict";s.d(ge,{B:()=>A,V:()=>y});var i=s(40911),E={};function y(){return(0,i.wD)()?global:typeof window<"u"?window:typeof self<"u"?self:E}function A(M,D,b){var f=b||y(),S=f.__SENTRY__=f.__SENTRY__||{};return S[M]||(S[M]=D())}},69623:(it,ge,s)=>{"use strict";s.d(ge,{BD:()=>M,Kg:()=>b,Qd:()=>S,Qg:()=>U,T2:()=>A,W6:()=>D,bJ:()=>E,gd:()=>_,mE:()=>w,sO:()=>f,tH:()=>V,vq:()=>C,xH:()=>O,yr:()=>R});var i=Object.prototype.toString;function E(x){switch(i.call(x)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return V(x,Error)}}function y(x,z){return i.call(x)===`[object ${z}]`}function A(x){return y(x,"ErrorEvent")}function M(x){return y(x,"DOMError")}function D(x){return y(x,"DOMException")}function b(x){return y(x,"String")}function f(x){return null===x||"object"!=typeof x&&"function"!=typeof x}function S(x){return y(x,"Object")}function O(x){return typeof Event<"u"&&V(x,Event)}function C(x){return typeof Element<"u"&&V(x,Element)}function _(x){return y(x,"RegExp")}function U(x){return!(!x||!x.then||"function"!=typeof x.then)}function w(x){return S(x)&&"nativeEvent"in x&&"preventDefault"in x&&"stopPropagation"in x}function R(x){return"number"==typeof x&&x!=x}function V(x,z){try{return x instanceof z}catch{return!1}}},75715:(it,ge,s)=>{"use strict";s.d(ge,{Ow:()=>A,pq:()=>M,vF:()=>b});var i=s(42788),E=(0,i.V)(),A=["debug","info","warn","error","log","assert","trace"];function M(f){var S=(0,i.V)();if(!("console"in S))return f();var O=S.console,C={};A.forEach(_=>{var U=O[_]&&O[_].__sentry_original__;_ in S.console&&U&&(C[_]=O[_],O[_]=U)});try{return f()}finally{Object.keys(C).forEach(_=>{O[_]=C[_]})}}function D(){let f=!1;var S={enable:()=>{f=!0},disable:()=>{f=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?A.forEach(O=>{S[O]=(...C)=>{f&&M(()=>{E.console[O](`Sentry Logger [${O}]:`,...C)})}}):A.forEach(O=>{S[O]=()=>{}}),S}let b;b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?(0,i.B)("logger",D):D()},5663:(it,ge,s)=>{"use strict";s.d(ge,{$X:()=>M,GR:()=>C,M6:()=>b,eJ:()=>y,gO:()=>D});var i=s(42788),E=s(89564);function y(){var _=(0,i.V)(),U=_.crypto||_.msCrypto;if(U&&U.randomUUID)return U.randomUUID().replace(/-/g,"");var w=U&&U.getRandomValues?()=>U.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,R=>(R^(15&w())>>R/4).toString(16))}function A(_){return _.exception&&_.exception.values?_.exception.values[0]:void 0}function M(_){const{message:U,event_id:w}=_;if(U)return U;var R=A(_);return R?R.type&&R.value?`${R.type}: ${R.value}`:R.type||R.value||w||"<unknown>":w||"<unknown>"}function D(_,U,w){var R=_.exception=_.exception||{},V=R.values=R.values||[],x=V[0]=V[0]||{};x.value||(x.value=U||""),x.type||(x.type=w||"Error")}function b(_,U){var w=A(_);if(w){var V=w.mechanism;if(w.mechanism={type:"generic",handled:!0,...V,...U},U&&"data"in U){var x={...V&&V.data,...U.data};w.mechanism.data=x}}}function C(_){if(_&&_.__sentry_captured__)return!0;try{(0,E.my)(_,"__sentry_captured__",!0)}catch{}return!1}},40911:(it,ge,s)=>{"use strict";function E(){return!function i(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function y(M,D){return M.require(D)}s.d(ge,{fj:()=>y,wD:()=>E}),it=s.hmd(it)},89564:(it,ge,s)=>{"use strict";s.d(ge,{Ce:()=>U,GS:()=>A,HF:()=>_,W4:()=>S,my:()=>M,pO:()=>D,sp:()=>b,u4:()=>f});var i=s(72423),E=s(69623),y=s(91066);function A(V,x,z){if(x in V){var X=V[x],K=z(X);if("function"==typeof K)try{D(K,X)}catch{}V[x]=K}}function M(V,x,z){Object.defineProperty(V,x,{value:z,writable:!0,configurable:!0})}function D(V,x){V.prototype=x.prototype=x.prototype||{},M(V,"__sentry_original__",x)}function b(V){return V.__sentry_original__}function f(V){return Object.keys(V).map(x=>`${encodeURIComponent(x)}=${encodeURIComponent(V[x])}`).join("&")}function S(V){if((0,E.bJ)(V))return{message:V.message,name:V.name,stack:V.stack,...C(V)};if((0,E.xH)(V)){var x={type:V.type,target:O(V.target),currentTarget:O(V.currentTarget),...C(V)};return typeof CustomEvent<"u"&&(0,E.tH)(V,CustomEvent)&&(x.detail=V.detail),x}return V}function O(V){try{return(0,E.vq)(V)?(0,i.H)(V):Object.prototype.toString.call(V)}catch{return"<unknown>"}}function C(V){if("object"==typeof V&&null!==V){var x={};for(var z in V)Object.prototype.hasOwnProperty.call(V,z)&&(x[z]=V[z]);return x}return{}}function _(V,x=40){var z=Object.keys(S(V));if(z.sort(),!z.length)return"[object has no keys]";if(z[0].length>=x)return(0,y.xv)(z[0],x);for(let K=z.length;K>0;K--){var X=z.slice(0,K).join(", ");if(!(X.length>x))return K===z.length?X:(0,y.xv)(X,x)}return""}function U(V){return w(V,new Map)}function w(V,x){if((0,E.Qd)(V)){if(void 0!==(z=x.get(V)))return z;var X={};for(var K of(x.set(V,X),Object.keys(V)))typeof V[K]<"u"&&(X[K]=w(V[K],x));return X}var z;return Array.isArray(V)?void 0!==(z=x.get(V))?z:(x.set(V,X=[]),V.forEach(Y=>{X.push(w(Y,x))}),X):V}},91066:(it,ge,s)=>{"use strict";s.d(ge,{_c:()=>M,gt:()=>A,xv:()=>E});var i=s(69623);function E(b,f=0){return"string"!=typeof b||0===f||b.length<=f?b:`${b.substr(0,f)}...`}function A(b,f){if(!Array.isArray(b))return"";var S=[];for(let C=0;C<b.length;C++){var O=b[C];try{S.push(String(O))}catch{S.push("[value cannot be serialized]")}}return S.join(f)}function M(b,f){return!!(0,i.Kg)(b)&&((0,i.gd)(f)?f.test(b):"string"==typeof f&&-1!==b.indexOf(f))}},79839:(it,ge,s)=>{"use strict";s.d(ge,{T2:()=>M,XW:()=>y,xg:()=>A});var E,D,i=s(69623);function y(D){return new M(b=>{b(D)})}function A(D){return new M((b,f)=>{f(D)})}(D=E||(E={}))[D.PENDING=0]="PENDING",D[D.RESOLVED=1]="RESOLVED",D[D.REJECTED=2]="REJECTED";class M{__init(){this._state=E.PENDING}__init2(){this._handlers=[]}constructor(b){M.prototype.__init.call(this),M.prototype.__init2.call(this),M.prototype.__init3.call(this),M.prototype.__init4.call(this),M.prototype.__init5.call(this),M.prototype.__init6.call(this);try{b(this._resolve,this._reject)}catch(f){this._reject(f)}}then(b,f){return new M((S,O)=>{this._handlers.push([!1,C=>{if(b)try{S(b(C))}catch(_){O(_)}else S(C)},C=>{if(f)try{S(f(C))}catch(_){O(_)}else O(C)}]),this._executeHandlers()})}catch(b){return this.then(f=>f,b)}finally(b){return new M((f,S)=>{let O,C;return this.then(_=>{C=!1,O=_,b&&b()},_=>{C=!0,O=_,b&&b()}).then(()=>{C?S(O):f(O)})})}__init3(){this._resolve=b=>{this._setResult(E.RESOLVED,b)}}__init4(){this._reject=b=>{this._setResult(E.REJECTED,b)}}__init5(){this._setResult=(b,f)=>{if(this._state===E.PENDING){if((0,i.Qg)(f))return void f.then(this._resolve,this._reject);this._state=b,this._value=f,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==E.PENDING){var b=this._handlers.slice();this._handlers=[],b.forEach(f=>{f[0]||(this._state===E.RESOLVED&&f[1](this._value),this._state===E.REJECTED&&f[2](this._value),f[0]=!0)})}}}}},7930:(it,ge,s)=>{"use strict";s.d(ge,{lu:()=>f,zf:()=>S});var i=s(42788),E=s(40911);it=s.hmd(it);var y={nowSeconds:()=>Date.now()/1e3},D=(0,E.wD)()?function M(){try{return(0,E.fj)(it,"perf_hooks").performance}catch{return}}():function A(){const{performance:w}=(0,i.V)();if(w&&w.now)return{now:()=>w.now(),timeOrigin:Date.now()-w.now()}}(),b=void 0===D?y:{nowSeconds:()=>(D.timeOrigin+D.now())/1e3},f=y.nowSeconds.bind(y),S=b.nowSeconds.bind(b);let _;(()=>{const{performance:w}=(0,i.V)();if(w&&w.now){var R=36e5,V=w.now(),x=Date.now(),z=w.timeOrigin?Math.abs(w.timeOrigin+V-x):R,X=z<R,K=w.timing&&w.timing.navigationStart,le="number"==typeof K?Math.abs(K+V-x):R;return X||le<R?z<=le?(_="timeOrigin",w.timeOrigin):(_="navigationStart",K):(_="dateNow",x)}_="none"})()},46743:(it,ge)=>{"use strict";ge.byteLength=function b(U){var w=D(U),V=w[1];return 3*(w[0]+V)/4-V},ge.toByteArray=function S(U){var w,ne,R=D(U),V=R[0],x=R[1],z=new E(function f(U,w,R){return 3*(w+R)/4-R}(0,V,x)),X=0,K=x>0?V-4:V;for(ne=0;ne<K;ne+=4)w=i[U.charCodeAt(ne)]<<18|i[U.charCodeAt(ne+1)]<<12|i[U.charCodeAt(ne+2)]<<6|i[U.charCodeAt(ne+3)],z[X++]=w>>16&255,z[X++]=w>>8&255,z[X++]=255&w;return 2===x&&(w=i[U.charCodeAt(ne)]<<2|i[U.charCodeAt(ne+1)]>>4,z[X++]=255&w),1===x&&(w=i[U.charCodeAt(ne)]<<10|i[U.charCodeAt(ne+1)]<<4|i[U.charCodeAt(ne+2)]>>2,z[X++]=w>>8&255,z[X++]=255&w),z},ge.fromByteArray=function _(U){for(var w,R=U.length,V=R%3,x=[],z=16383,X=0,K=R-V;X<K;X+=z)x.push(C(U,X,X+z>K?K:X+z));return 1===V?x.push(s[(w=U[R-1])>>2]+s[w<<4&63]+"=="):2===V&&x.push(s[(w=(U[R-2]<<8)+U[R-1])>>10]+s[w>>4&63]+s[w<<2&63]+"="),x.join("")};for(var s=[],i=[],E=typeof Uint8Array<"u"?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0;A<64;++A)s[A]=y[A],i[y.charCodeAt(A)]=A;function D(U){var w=U.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=U.indexOf("=");return-1===R&&(R=w),[R,R===w?0:4-R%4]}function O(U){return s[U>>18&63]+s[U>>12&63]+s[U>>6&63]+s[63&U]}function C(U,w,R){for(var x=[],z=w;z<R;z+=3)x.push(O((U[z]<<16&16711680)+(U[z+1]<<8&65280)+(255&U[z+2])));return x.join("")}i[45]=62,i[95]=63},72504:(it,ge,s)=>{"use strict";const E=s(46743),y=s(67798),A="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ge.hp=f,ge.IS=50;const M=2147483647;function b(Ae){if(Ae>M)throw new RangeError('The value "'+Ae+'" is invalid for option "size"');const G=new Uint8Array(Ae);return Object.setPrototypeOf(G,f.prototype),G}function f(Ae,G,ee){if("number"==typeof Ae){if("string"==typeof G)throw new TypeError('The "string" argument must be of type string. Received type number');return _(Ae)}return S(Ae,G,ee)}function S(Ae,G,ee){if("string"==typeof Ae)return function U(Ae,G){if(("string"!=typeof G||""===G)&&(G="utf8"),!f.isEncoding(G))throw new TypeError("Unknown encoding: "+G);const ee=0|K(Ae,G);let Fe=b(ee);const pt=Fe.write(Ae,G);return pt!==ee&&(Fe=Fe.slice(0,pt)),Fe}(Ae,G);if(ArrayBuffer.isView(Ae))return function R(Ae){if(Fn(Ae,Uint8Array)){const G=new Uint8Array(Ae);return V(G.buffer,G.byteOffset,G.byteLength)}return w(Ae)}(Ae);if(null==Ae)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ae);if(Fn(Ae,ArrayBuffer)||Ae&&Fn(Ae.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Fn(Ae,SharedArrayBuffer)||Ae&&Fn(Ae.buffer,SharedArrayBuffer)))return V(Ae,G,ee);if("number"==typeof Ae)throw new TypeError('The "value" argument must not be of type number. Received type number');const Fe=Ae.valueOf&&Ae.valueOf();if(null!=Fe&&Fe!==Ae)return f.from(Fe,G,ee);const pt=function x(Ae){if(f.isBuffer(Ae)){const G=0|z(Ae.length),ee=b(G);return 0===ee.length||Ae.copy(ee,0,0,G),ee}return void 0!==Ae.length?"number"!=typeof Ae.length||Xn(Ae.length)?b(0):w(Ae):"Buffer"===Ae.type&&Array.isArray(Ae.data)?w(Ae.data):void 0}(Ae);if(pt)return pt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ae[Symbol.toPrimitive])return f.from(Ae[Symbol.toPrimitive]("string"),G,ee);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ae)}function O(Ae){if("number"!=typeof Ae)throw new TypeError('"size" argument must be of type number');if(Ae<0)throw new RangeError('The value "'+Ae+'" is invalid for option "size"')}function _(Ae){return O(Ae),b(Ae<0?0:0|z(Ae))}function w(Ae){const G=Ae.length<0?0:0|z(Ae.length),ee=b(G);for(let Fe=0;Fe<G;Fe+=1)ee[Fe]=255&Ae[Fe];return ee}function V(Ae,G,ee){if(G<0||Ae.byteLength<G)throw new RangeError('"offset" is outside of buffer bounds');if(Ae.byteLength<G+(ee||0))throw new RangeError('"length" is outside of buffer bounds');let Fe;return Fe=void 0===G&&void 0===ee?new Uint8Array(Ae):void 0===ee?new Uint8Array(Ae,G):new Uint8Array(Ae,G,ee),Object.setPrototypeOf(Fe,f.prototype),Fe}function z(Ae){if(Ae>=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Ae}function K(Ae,G){if(f.isBuffer(Ae))return Ae.length;if(ArrayBuffer.isView(Ae)||Fn(Ae,ArrayBuffer))return Ae.byteLength;if("string"!=typeof Ae)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ae);const ee=Ae.length,Fe=arguments.length>2&&!0===arguments[2];if(!Fe&&0===ee)return 0;let pt=!1;for(;;)switch(G){case"ascii":case"latin1":case"binary":return ee;case"utf8":case"utf-8":return Ue(Ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ee;case"hex":return ee>>>1;case"base64":return Yt(Ae).length;default:if(pt)return Fe?-1:Ue(Ae).length;G=(""+G).toLowerCase(),pt=!0}}function ne(Ae,G,ee){let Fe=!1;if((void 0===G||G<0)&&(G=0),G>this.length||((void 0===ee||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(G>>>=0))return"";for(Ae||(Ae="utf8");;)switch(Ae){case"hex":return oe(this,G,ee);case"utf8":case"utf-8":return J(this,G,ee);case"ascii":return Se(this,G,ee);case"latin1":case"binary":return we(this,G,ee);case"base64":return Z(this,G,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,G,ee);default:if(Fe)throw new TypeError("Unknown encoding: "+Ae);Ae=(Ae+"").toLowerCase(),Fe=!0}}function le(Ae,G,ee){const Fe=Ae[G];Ae[G]=Ae[ee],Ae[ee]=Fe}function Y(Ae,G,ee,Fe,pt){if(0===Ae.length)return-1;if("string"==typeof ee?(Fe=ee,ee=0):ee>2147483647?ee=2147483647:ee<-2147483648&&(ee=-2147483648),Xn(ee=+ee)&&(ee=pt?0:Ae.length-1),ee<0&&(ee=Ae.length+ee),ee>=Ae.length){if(pt)return-1;ee=Ae.length-1}else if(ee<0){if(!pt)return-1;ee=0}if("string"==typeof G&&(G=f.from(G,Fe)),f.isBuffer(G))return 0===G.length?-1:ve(Ae,G,ee,Fe,pt);if("number"==typeof G)return G&=255,"function"==typeof Uint8Array.prototype.indexOf?pt?Uint8Array.prototype.indexOf.call(Ae,G,ee):Uint8Array.prototype.lastIndexOf.call(Ae,G,ee):ve(Ae,[G],ee,Fe,pt);throw new TypeError("val must be string, number or Buffer")}function ve(Ae,G,ee,Fe,pt){let Hn,vt=1,Mt=Ae.length,cn=G.length;if(void 0!==Fe&&("ucs2"===(Fe=String(Fe).toLowerCase())||"ucs-2"===Fe||"utf16le"===Fe||"utf-16le"===Fe)){if(Ae.length<2||G.length<2)return-1;vt=2,Mt/=2,cn/=2,ee/=2}function kn(An,Vn){return 1===vt?An[Vn]:An.readUInt16BE(Vn*vt)}if(pt){let An=-1;for(Hn=ee;Hn<Mt;Hn++)if(kn(Ae,Hn)===kn(G,-1===An?0:Hn-An)){if(-1===An&&(An=Hn),Hn-An+1===cn)return An*vt}else-1!==An&&(Hn-=Hn-An),An=-1}else for(ee+cn>Mt&&(ee=Mt-cn),Hn=ee;Hn>=0;Hn--){let An=!0;for(let Vn=0;Vn<cn;Vn++)if(kn(Ae,Hn+Vn)!==kn(G,Vn)){An=!1;break}if(An)return Hn}return-1}function Ie(Ae,G,ee,Fe){ee=Number(ee)||0;const pt=Ae.length-ee;Fe?(Fe=Number(Fe))>pt&&(Fe=pt):Fe=pt;const vt=G.length;let Mt;for(Fe>vt/2&&(Fe=vt/2),Mt=0;Mt<Fe;++Mt){const cn=parseInt(G.substr(2*Mt,2),16);if(Xn(cn))return Mt;Ae[ee+Mt]=cn}return Mt}function He(Ae,G,ee,Fe){return fn(Ue(G,Ae.length-ee),Ae,ee,Fe)}function se(Ae,G,ee,Fe){return fn(function Dt(Ae){const G=[];for(let ee=0;ee<Ae.length;++ee)G.push(255&Ae.charCodeAt(ee));return G}(G),Ae,ee,Fe)}function Ge(Ae,G,ee,Fe){return fn(Yt(G),Ae,ee,Fe)}function B(Ae,G,ee,Fe){return fn(function Gt(Ae,G){let ee,Fe,pt;const vt=[];for(let Mt=0;Mt<Ae.length&&!((G-=2)<0);++Mt)ee=Ae.charCodeAt(Mt),Fe=ee>>8,pt=ee%256,vt.push(pt),vt.push(Fe);return vt}(G,Ae.length-ee),Ae,ee,Fe)}function Z(Ae,G,ee){return E.fromByteArray(0===G&&ee===Ae.length?Ae:Ae.slice(G,ee))}function J(Ae,G,ee){ee=Math.min(Ae.length,ee);const Fe=[];let pt=G;for(;pt<ee;){const vt=Ae[pt];let Mt=null,cn=vt>239?4:vt>223?3:vt>191?2:1;if(pt+cn<=ee){let kn,Hn,An,Vn;switch(cn){case 1:vt<128&&(Mt=vt);break;case 2:kn=Ae[pt+1],128==(192&kn)&&(Vn=(31&vt)<<6|63&kn,Vn>127&&(Mt=Vn));break;case 3:kn=Ae[pt+1],Hn=Ae[pt+2],128==(192&kn)&&128==(192&Hn)&&(Vn=(15&vt)<<12|(63&kn)<<6|63&Hn,Vn>2047&&(Vn<55296||Vn>57343)&&(Mt=Vn));break;case 4:kn=Ae[pt+1],Hn=Ae[pt+2],An=Ae[pt+3],128==(192&kn)&&128==(192&Hn)&&128==(192&An)&&(Vn=(15&vt)<<18|(63&kn)<<12|(63&Hn)<<6|63&An,Vn>65535&&Vn<1114112&&(Mt=Vn))}}null===Mt?(Mt=65533,cn=1):Mt>65535&&(Mt-=65536,Fe.push(Mt>>>10&1023|55296),Mt=56320|1023&Mt),Fe.push(Mt),pt+=cn}return function ce(Ae){const G=Ae.length;if(G<=re)return String.fromCharCode.apply(String,Ae);let ee="",Fe=0;for(;Fe<G;)ee+=String.fromCharCode.apply(String,Ae.slice(Fe,Fe+=re));return ee}(Fe)}!(f.TYPED_ARRAY_SUPPORT=function D(){try{const Ae=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(Ae,G),42===Ae.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(Ae,G,ee){return S(Ae,G,ee)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(Ae,G,ee){return function C(Ae,G,ee){return O(Ae),Ae<=0?b(Ae):void 0!==G?"string"==typeof ee?b(Ae).fill(G,ee):b(Ae).fill(G):b(Ae)}(Ae,G,ee)},f.allocUnsafe=function(Ae){return _(Ae)},f.allocUnsafeSlow=function(Ae){return _(Ae)},f.isBuffer=function(G){return null!=G&&!0===G._isBuffer&&G!==f.prototype},f.compare=function(G,ee){if(Fn(G,Uint8Array)&&(G=f.from(G,G.offset,G.byteLength)),Fn(ee,Uint8Array)&&(ee=f.from(ee,ee.offset,ee.byteLength)),!f.isBuffer(G)||!f.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===ee)return 0;let Fe=G.length,pt=ee.length;for(let vt=0,Mt=Math.min(Fe,pt);vt<Mt;++vt)if(G[vt]!==ee[vt]){Fe=G[vt],pt=ee[vt];break}return Fe<pt?-1:pt<Fe?1:0},f.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(G,ee){if(!Array.isArray(G))throw new TypeError('"list" argument must be an Array of Buffers');if(0===G.length)return f.alloc(0);let Fe;if(void 0===ee)for(ee=0,Fe=0;Fe<G.length;++Fe)ee+=G[Fe].length;const pt=f.allocUnsafe(ee);let vt=0;for(Fe=0;Fe<G.length;++Fe){let Mt=G[Fe];if(Fn(Mt,Uint8Array))vt+Mt.length>pt.length?(f.isBuffer(Mt)||(Mt=f.from(Mt)),Mt.copy(pt,vt)):Uint8Array.prototype.set.call(pt,Mt,vt);else{if(!f.isBuffer(Mt))throw new TypeError('"list" argument must be an Array of Buffers');Mt.copy(pt,vt)}vt+=Mt.length}return pt},f.byteLength=K,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<G;ee+=2)le(this,ee,ee+1);return this},f.prototype.swap32=function(){const G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<G;ee+=4)le(this,ee,ee+3),le(this,ee+1,ee+2);return this},f.prototype.swap64=function(){const G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<G;ee+=8)le(this,ee,ee+7),le(this,ee+1,ee+6),le(this,ee+2,ee+5),le(this,ee+3,ee+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){const G=this.length;return 0===G?"":0===arguments.length?J(this,0,G):ne.apply(this,arguments)},f.prototype.equals=function(G){if(!f.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G||0===f.compare(this,G)},f.prototype.inspect=function(){let G="";const ee=ge.IS;return G=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(G+=" ... "),"<Buffer "+G+">"},A&&(f.prototype[A]=f.prototype.inspect),f.prototype.compare=function(G,ee,Fe,pt,vt){if(Fn(G,Uint8Array)&&(G=f.from(G,G.offset,G.byteLength)),!f.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(void 0===ee&&(ee=0),void 0===Fe&&(Fe=G?G.length:0),void 0===pt&&(pt=0),void 0===vt&&(vt=this.length),ee<0||Fe>G.length||pt<0||vt>this.length)throw new RangeError("out of range index");if(pt>=vt&&ee>=Fe)return 0;if(pt>=vt)return-1;if(ee>=Fe)return 1;if(this===G)return 0;let Mt=(vt>>>=0)-(pt>>>=0),cn=(Fe>>>=0)-(ee>>>=0);const kn=Math.min(Mt,cn),Hn=this.slice(pt,vt),An=G.slice(ee,Fe);for(let Vn=0;Vn<kn;++Vn)if(Hn[Vn]!==An[Vn]){Mt=Hn[Vn],cn=An[Vn];break}return Mt<cn?-1:cn<Mt?1:0},f.prototype.includes=function(G,ee,Fe){return-1!==this.indexOf(G,ee,Fe)},f.prototype.indexOf=function(G,ee,Fe){return Y(this,G,ee,Fe,!0)},f.prototype.lastIndexOf=function(G,ee,Fe){return Y(this,G,ee,Fe,!1)},f.prototype.write=function(G,ee,Fe,pt){if(void 0===ee)pt="utf8",Fe=this.length,ee=0;else if(void 0===Fe&&"string"==typeof ee)pt=ee,Fe=this.length,ee=0;else{if(!isFinite(ee))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ee>>>=0,isFinite(Fe)?(Fe>>>=0,void 0===pt&&(pt="utf8")):(pt=Fe,Fe=void 0)}const vt=this.length-ee;if((void 0===Fe||Fe>vt)&&(Fe=vt),G.length>0&&(Fe<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");pt||(pt="utf8");let Mt=!1;for(;;)switch(pt){case"hex":return Ie(this,G,ee,Fe);case"utf8":case"utf-8":return He(this,G,ee,Fe);case"ascii":case"latin1":case"binary":return se(this,G,ee,Fe);case"base64":return Ge(this,G,ee,Fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,G,ee,Fe);default:if(Mt)throw new TypeError("Unknown encoding: "+pt);pt=(""+pt).toLowerCase(),Mt=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const re=4096;function Se(Ae,G,ee){let Fe="";ee=Math.min(Ae.length,ee);for(let pt=G;pt<ee;++pt)Fe+=String.fromCharCode(127&Ae[pt]);return Fe}function we(Ae,G,ee){let Fe="";ee=Math.min(Ae.length,ee);for(let pt=G;pt<ee;++pt)Fe+=String.fromCharCode(Ae[pt]);return Fe}function oe(Ae,G,ee){const Fe=Ae.length;(!G||G<0)&&(G=0),(!ee||ee<0||ee>Fe)&&(ee=Fe);let pt="";for(let vt=G;vt<ee;++vt)pt+=Sn[Ae[vt]];return pt}function Ee(Ae,G,ee){const Fe=Ae.slice(G,ee);let pt="";for(let vt=0;vt<Fe.length-1;vt+=2)pt+=String.fromCharCode(Fe[vt]+256*Fe[vt+1]);return pt}function Pe(Ae,G,ee){if(Ae%1!=0||Ae<0)throw new RangeError("offset is not uint");if(Ae+G>ee)throw new RangeError("Trying to access beyond buffer length")}function $e(Ae,G,ee,Fe,pt,vt){if(!f.isBuffer(Ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>pt||G<vt)throw new RangeError('"value" argument is out of bounds');if(ee+Fe>Ae.length)throw new RangeError("Index out of range")}function Xe(Ae,G,ee,Fe,pt){Ft(G,Fe,pt,Ae,ee,7);let vt=Number(G&BigInt(4294967295));Ae[ee++]=vt,vt>>=8,Ae[ee++]=vt,vt>>=8,Ae[ee++]=vt,vt>>=8,Ae[ee++]=vt;let Mt=Number(G>>BigInt(32)&BigInt(4294967295));return Ae[ee++]=Mt,Mt>>=8,Ae[ee++]=Mt,Mt>>=8,Ae[ee++]=Mt,Mt>>=8,Ae[ee++]=Mt,ee}function De(Ae,G,ee,Fe,pt){Ft(G,Fe,pt,Ae,ee,7);let vt=Number(G&BigInt(4294967295));Ae[ee+7]=vt,vt>>=8,Ae[ee+6]=vt,vt>>=8,Ae[ee+5]=vt,vt>>=8,Ae[ee+4]=vt;let Mt=Number(G>>BigInt(32)&BigInt(4294967295));return Ae[ee+3]=Mt,Mt>>=8,Ae[ee+2]=Mt,Mt>>=8,Ae[ee+1]=Mt,Mt>>=8,Ae[ee]=Mt,ee+8}function We(Ae,G,ee,Fe,pt,vt){if(ee+Fe>Ae.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("Index out of range")}function st(Ae,G,ee,Fe,pt){return G=+G,ee>>>=0,pt||We(Ae,0,ee,4),y.write(Ae,G,ee,Fe,23,4),ee+4}function gt(Ae,G,ee,Fe,pt){return G=+G,ee>>>=0,pt||We(Ae,0,ee,8),y.write(Ae,G,ee,Fe,52,8),ee+8}f.prototype.slice=function(G,ee){const Fe=this.length;(G=~~G)<0?(G+=Fe)<0&&(G=0):G>Fe&&(G=Fe),(ee=void 0===ee?Fe:~~ee)<0?(ee+=Fe)<0&&(ee=0):ee>Fe&&(ee=Fe),ee<G&&(ee=G);const pt=this.subarray(G,ee);return Object.setPrototypeOf(pt,f.prototype),pt},f.prototype.readUintLE=f.prototype.readUIntLE=function(G,ee,Fe){G>>>=0,ee>>>=0,Fe||Pe(G,ee,this.length);let pt=this[G],vt=1,Mt=0;for(;++Mt<ee&&(vt*=256);)pt+=this[G+Mt]*vt;return pt},f.prototype.readUintBE=f.prototype.readUIntBE=function(G,ee,Fe){G>>>=0,ee>>>=0,Fe||Pe(G,ee,this.length);let pt=this[G+--ee],vt=1;for(;ee>0&&(vt*=256);)pt+=this[G+--ee]*vt;return pt},f.prototype.readUint8=f.prototype.readUInt8=function(G,ee){return G>>>=0,ee||Pe(G,1,this.length),this[G]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(G,ee){return G>>>=0,ee||Pe(G,2,this.length),this[G]|this[G+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(G,ee){return G>>>=0,ee||Pe(G,2,this.length),this[G]<<8|this[G+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(G,ee){return G>>>=0,ee||Pe(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+16777216*this[G+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(G,ee){return G>>>=0,ee||Pe(G,4,this.length),16777216*this[G]+(this[G+1]<<16|this[G+2]<<8|this[G+3])},f.prototype.readBigUInt64LE=mn(function(G){At(G>>>=0,"offset");const ee=this[G],Fe=this[G+7];(void 0===ee||void 0===Fe)&&lt(G,this.length-8);const pt=ee+256*this[++G]+65536*this[++G]+this[++G]*2**24,vt=this[++G]+256*this[++G]+65536*this[++G]+Fe*2**24;return BigInt(pt)+(BigInt(vt)<<BigInt(32))}),f.prototype.readBigUInt64BE=mn(function(G){At(G>>>=0,"offset");const ee=this[G],Fe=this[G+7];(void 0===ee||void 0===Fe)&&lt(G,this.length-8);const pt=ee*2**24+65536*this[++G]+256*this[++G]+this[++G],vt=this[++G]*2**24+65536*this[++G]+256*this[++G]+Fe;return(BigInt(pt)<<BigInt(32))+BigInt(vt)}),f.prototype.readIntLE=function(G,ee,Fe){G>>>=0,ee>>>=0,Fe||Pe(G,ee,this.length);let pt=this[G],vt=1,Mt=0;for(;++Mt<ee&&(vt*=256);)pt+=this[G+Mt]*vt;return vt*=128,pt>=vt&&(pt-=Math.pow(2,8*ee)),pt},f.prototype.readIntBE=function(G,ee,Fe){G>>>=0,ee>>>=0,Fe||Pe(G,ee,this.length);let pt=ee,vt=1,Mt=this[G+--pt];for(;pt>0&&(vt*=256);)Mt+=this[G+--pt]*vt;return vt*=128,Mt>=vt&&(Mt-=Math.pow(2,8*ee)),Mt},f.prototype.readInt8=function(G,ee){return G>>>=0,ee||Pe(G,1,this.length),128&this[G]?-1*(255-this[G]+1):this[G]},f.prototype.readInt16LE=function(G,ee){G>>>=0,ee||Pe(G,2,this.length);const Fe=this[G]|this[G+1]<<8;return 32768&Fe?4294901760|Fe:Fe},f.prototype.readInt16BE=function(G,ee){G>>>=0,ee||Pe(G,2,this.length);const Fe=this[G+1]|this[G]<<8;return 32768&Fe?4294901760|Fe:Fe},f.prototype.readInt32LE=function(G,ee){return G>>>=0,ee||Pe(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},f.prototype.readInt32BE=function(G,ee){return G>>>=0,ee||Pe(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},f.prototype.readBigInt64LE=mn(function(G){At(G>>>=0,"offset");const ee=this[G],Fe=this[G+7];return(void 0===ee||void 0===Fe)&&lt(G,this.length-8),(BigInt(this[G+4]+256*this[G+5]+65536*this[G+6]+(Fe<<24))<<BigInt(32))+BigInt(ee+256*this[++G]+65536*this[++G]+this[++G]*2**24)}),f.prototype.readBigInt64BE=mn(function(G){At(G>>>=0,"offset");const ee=this[G],Fe=this[G+7];(void 0===ee||void 0===Fe)&&lt(G,this.length-8);const pt=(ee<<24)+65536*this[++G]+256*this[++G]+this[++G];return(BigInt(pt)<<BigInt(32))+BigInt(this[++G]*2**24+65536*this[++G]+256*this[++G]+Fe)}),f.prototype.readFloatLE=function(G,ee){return G>>>=0,ee||Pe(G,4,this.length),y.read(this,G,!0,23,4)},f.prototype.readFloatBE=function(G,ee){return G>>>=0,ee||Pe(G,4,this.length),y.read(this,G,!1,23,4)},f.prototype.readDoubleLE=function(G,ee){return G>>>=0,ee||Pe(G,8,this.length),y.read(this,G,!0,52,8)},f.prototype.readDoubleBE=function(G,ee){return G>>>=0,ee||Pe(G,8,this.length),y.read(this,G,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(G,ee,Fe,pt){G=+G,ee>>>=0,Fe>>>=0,pt||$e(this,G,ee,Fe,Math.pow(2,8*Fe)-1,0);let vt=1,Mt=0;for(this[ee]=255&G;++Mt<Fe&&(vt*=256);)this[ee+Mt]=G/vt&255;return ee+Fe},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(G,ee,Fe,pt){G=+G,ee>>>=0,Fe>>>=0,pt||$e(this,G,ee,Fe,Math.pow(2,8*Fe)-1,0);let vt=Fe-1,Mt=1;for(this[ee+vt]=255&G;--vt>=0&&(Mt*=256);)this[ee+vt]=G/Mt&255;return ee+Fe},f.prototype.writeUint8=f.prototype.writeUInt8=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,1,255,0),this[ee]=255&G,ee+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,2,65535,0),this[ee]=255&G,this[ee+1]=G>>>8,ee+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,2,65535,0),this[ee]=G>>>8,this[ee+1]=255&G,ee+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,4,4294967295,0),this[ee+3]=G>>>24,this[ee+2]=G>>>16,this[ee+1]=G>>>8,this[ee]=255&G,ee+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,4,4294967295,0),this[ee]=G>>>24,this[ee+1]=G>>>16,this[ee+2]=G>>>8,this[ee+3]=255&G,ee+4},f.prototype.writeBigUInt64LE=mn(function(G,ee=0){return Xe(this,G,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=mn(function(G,ee=0){return De(this,G,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(G,ee,Fe,pt){if(G=+G,ee>>>=0,!pt){const kn=Math.pow(2,8*Fe-1);$e(this,G,ee,Fe,kn-1,-kn)}let vt=0,Mt=1,cn=0;for(this[ee]=255&G;++vt<Fe&&(Mt*=256);)G<0&&0===cn&&0!==this[ee+vt-1]&&(cn=1),this[ee+vt]=(G/Mt|0)-cn&255;return ee+Fe},f.prototype.writeIntBE=function(G,ee,Fe,pt){if(G=+G,ee>>>=0,!pt){const kn=Math.pow(2,8*Fe-1);$e(this,G,ee,Fe,kn-1,-kn)}let vt=Fe-1,Mt=1,cn=0;for(this[ee+vt]=255&G;--vt>=0&&(Mt*=256);)G<0&&0===cn&&0!==this[ee+vt+1]&&(cn=1),this[ee+vt]=(G/Mt|0)-cn&255;return ee+Fe},f.prototype.writeInt8=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,1,127,-128),G<0&&(G=255+G+1),this[ee]=255&G,ee+1},f.prototype.writeInt16LE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,2,32767,-32768),this[ee]=255&G,this[ee+1]=G>>>8,ee+2},f.prototype.writeInt16BE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,2,32767,-32768),this[ee]=G>>>8,this[ee+1]=255&G,ee+2},f.prototype.writeInt32LE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,4,2147483647,-2147483648),this[ee]=255&G,this[ee+1]=G>>>8,this[ee+2]=G>>>16,this[ee+3]=G>>>24,ee+4},f.prototype.writeInt32BE=function(G,ee,Fe){return G=+G,ee>>>=0,Fe||$e(this,G,ee,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[ee]=G>>>24,this[ee+1]=G>>>16,this[ee+2]=G>>>8,this[ee+3]=255&G,ee+4},f.prototype.writeBigInt64LE=mn(function(G,ee=0){return Xe(this,G,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=mn(function(G,ee=0){return De(this,G,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(G,ee,Fe){return st(this,G,ee,!0,Fe)},f.prototype.writeFloatBE=function(G,ee,Fe){return st(this,G,ee,!1,Fe)},f.prototype.writeDoubleLE=function(G,ee,Fe){return gt(this,G,ee,!0,Fe)},f.prototype.writeDoubleBE=function(G,ee,Fe){return gt(this,G,ee,!1,Fe)},f.prototype.copy=function(G,ee,Fe,pt){if(!f.isBuffer(G))throw new TypeError("argument should be a Buffer");if(Fe||(Fe=0),!pt&&0!==pt&&(pt=this.length),ee>=G.length&&(ee=G.length),ee||(ee=0),pt>0&&pt<Fe&&(pt=Fe),pt===Fe||0===G.length||0===this.length)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(Fe<0||Fe>=this.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("sourceEnd out of bounds");pt>this.length&&(pt=this.length),G.length-ee<pt-Fe&&(pt=G.length-ee+Fe);const vt=pt-Fe;return this===G&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(ee,Fe,pt):Uint8Array.prototype.set.call(G,this.subarray(Fe,pt),ee),vt},f.prototype.fill=function(G,ee,Fe,pt){if("string"==typeof G){if("string"==typeof ee?(pt=ee,ee=0,Fe=this.length):"string"==typeof Fe&&(pt=Fe,Fe=this.length),void 0!==pt&&"string"!=typeof pt)throw new TypeError("encoding must be a string");if("string"==typeof pt&&!f.isEncoding(pt))throw new TypeError("Unknown encoding: "+pt);if(1===G.length){const Mt=G.charCodeAt(0);("utf8"===pt&&Mt<128||"latin1"===pt)&&(G=Mt)}}else"number"==typeof G?G&=255:"boolean"==typeof G&&(G=Number(G));if(ee<0||this.length<ee||this.length<Fe)throw new RangeError("Out of range index");if(Fe<=ee)return this;let vt;if(ee>>>=0,Fe=void 0===Fe?this.length:Fe>>>0,G||(G=0),"number"==typeof G)for(vt=ee;vt<Fe;++vt)this[vt]=G;else{const Mt=f.isBuffer(G)?G:f.from(G,pt),cn=Mt.length;if(0===cn)throw new TypeError('The value "'+G+'" is invalid for argument "value"');for(vt=0;vt<Fe-ee;++vt)this[vt+ee]=Mt[vt%cn]}return this};const dt={};function Wt(Ae,G,ee){dt[Ae]=class extends ee{constructor(){super(),Object.defineProperty(this,"message",{value:G.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Ae}]`,delete this.name}get code(){return Ae}set code(pt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pt,writable:!0})}toString(){return`${this.name} [${Ae}]: ${this.message}`}}}function Qt(Ae){let G="",ee=Ae.length;const Fe="-"===Ae[0]?1:0;for(;ee>=Fe+4;ee-=3)G=`_${Ae.slice(ee-3,ee)}${G}`;return`${Ae.slice(0,ee)}${G}`}function Ft(Ae,G,ee,Fe,pt,vt){if(Ae>ee||Ae<G){const Mt="bigint"==typeof G?"n":"";let cn;throw cn=vt>3?0===G||G===BigInt(0)?`>= 0${Mt} and < 2${Mt} ** ${8*(vt+1)}${Mt}`:`>= -(2${Mt} ** ${8*(vt+1)-1}${Mt}) and < 2 ** ${8*(vt+1)-1}${Mt}`:`>= ${G}${Mt} and <= ${ee}${Mt}`,new dt.ERR_OUT_OF_RANGE("value",cn,Ae)}!function mt(Ae,G,ee){At(G,"offset"),(void 0===Ae[G]||void 0===Ae[G+ee])&&lt(G,Ae.length-(ee+1))}(Fe,pt,vt)}function At(Ae,G){if("number"!=typeof Ae)throw new dt.ERR_INVALID_ARG_TYPE(G,"number",Ae)}function lt(Ae,G,ee){throw Math.floor(Ae)!==Ae?(At(Ae,ee),new dt.ERR_OUT_OF_RANGE(ee||"offset","an integer",Ae)):G<0?new dt.ERR_BUFFER_OUT_OF_BOUNDS:new dt.ERR_OUT_OF_RANGE(ee||"offset",`>= ${ee?1:0} and <= ${G}`,Ae)}Wt("ERR_BUFFER_OUT_OF_BOUNDS",function(Ae){return Ae?`${Ae} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Wt("ERR_INVALID_ARG_TYPE",function(Ae,G){return`The "${Ae}" argument must be of type number. Received type ${typeof G}`},TypeError),Wt("ERR_OUT_OF_RANGE",function(Ae,G,ee){let Fe=`The value of "${Ae}" is out of range.`,pt=ee;return Number.isInteger(ee)&&Math.abs(ee)>2**32?pt=Qt(String(ee)):"bigint"==typeof ee&&(pt=String(ee),(ee>BigInt(2)**BigInt(32)||ee<-(BigInt(2)**BigInt(32)))&&(pt=Qt(pt)),pt+="n"),Fe+=` It must be ${G}. Received ${pt}`,Fe},RangeError);const Le=/[^+/0-9A-Za-z-_]/g;function Ue(Ae,G){let ee;G=G||1/0;const Fe=Ae.length;let pt=null;const vt=[];for(let Mt=0;Mt<Fe;++Mt){if(ee=Ae.charCodeAt(Mt),ee>55295&&ee<57344){if(!pt){if(ee>56319){(G-=3)>-1&&vt.push(239,191,189);continue}if(Mt+1===Fe){(G-=3)>-1&&vt.push(239,191,189);continue}pt=ee;continue}if(ee<56320){(G-=3)>-1&&vt.push(239,191,189),pt=ee;continue}ee=65536+(pt-55296<<10|ee-56320)}else pt&&(G-=3)>-1&&vt.push(239,191,189);if(pt=null,ee<128){if((G-=1)<0)break;vt.push(ee)}else if(ee<2048){if((G-=2)<0)break;vt.push(ee>>6|192,63&ee|128)}else if(ee<65536){if((G-=3)<0)break;vt.push(ee>>12|224,ee>>6&63|128,63&ee|128)}else{if(!(ee<1114112))throw new Error("Invalid code point");if((G-=4)<0)break;vt.push(ee>>18|240,ee>>12&63|128,ee>>6&63|128,63&ee|128)}}return vt}function Yt(Ae){return E.toByteArray(function ze(Ae){if((Ae=(Ae=Ae.split("=")[0]).trim().replace(Le,"")).length<2)return"";for(;Ae.length%4!=0;)Ae+="=";return Ae}(Ae))}function fn(Ae,G,ee,Fe){let pt;for(pt=0;pt<Fe&&!(pt+ee>=G.length||pt>=Ae.length);++pt)G[pt+ee]=Ae[pt];return pt}function Fn(Ae,G){return Ae instanceof G||null!=Ae&&null!=Ae.constructor&&null!=Ae.constructor.name&&Ae.constructor.name===G.name}function Xn(Ae){return Ae!=Ae}const Sn=function(){const Ae="0123456789abcdef",G=new Array(256);for(let ee=0;ee<16;++ee){const Fe=16*ee;for(let pt=0;pt<16;++pt)G[Fe+pt]=Ae[ee]+Ae[pt]}return G}();function mn(Ae){return typeof BigInt>"u"?Tr:Ae}function Tr(){throw new Error("BigInt not supported")}},71780:(it,ge,s)=>{"use strict";function i(E,y){if(y.length<E)throw new TypeError(E+" argument"+(E>1?"s":"")+" required, but only "+y.length+" present")}s.d(ge,{A:()=>i})},60437:(it,ge,s)=>{"use strict";function i(E){if(null===E||!0===E||!1===E)return NaN;var y=Number(E);return isNaN(y)?y:y<0?Math.ceil(y):Math.floor(y)}s.d(ge,{A:()=>i})},10589:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>A});var i=s(60437),E=s(40118),y=s(71780);function A(M,D){(0,y.A)(2,arguments);var b=(0,E.A)(M),f=(0,i.A)(D);return isNaN(f)?new Date(NaN):(f&&b.setDate(b.getDate()+f),b)}},70992:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>A});var i=s(60437),E=s(40118),y=s(71780);function A(M,D){(0,y.A)(2,arguments);var b=(0,E.A)(M).getTime(),f=(0,i.A)(D);return new Date(b+f)}},55696:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>y});var i=s(40118),E=s(71780);function y(A,M){(0,E.A)(2,arguments);var D=(0,i.A)(A),b=(0,i.A)(M);return D.getTime()<b.getTime()}},54171:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>ne}),Math.pow(10,8);var A=6e4,M=36e5,X=s(71780),K=s(60437);function ne(De,We){var st;(0,X.A)(1,arguments);var gt=(0,K.A)(null!==(st=We?.additionalDigits)&&void 0!==st?st:2);if(2!==gt&&1!==gt&&0!==gt)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof De&&"[object String]"!==Object.prototype.toString.call(De))return new Date(NaN);var Wt,dt=function He(De){var gt,We={},st=De.split(le.dateTimeDelimiter);if(st.length>2)return We;if(/:/.test(st[0])?gt=st[0]:(We.date=st[0],gt=st[1],le.timeZoneDelimiter.test(We.date)&&(We.date=De.split(le.timeZoneDelimiter)[0],gt=De.substr(We.date.length,De.length))),gt){var dt=le.timezone.exec(gt);dt?(We.time=gt.replace(dt[1],""),We.timezone=dt[1]):We.time=gt}return We}(De);if(dt.date){var Qt=function se(De,We){var st=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+We)+"})|(\\d{2}|[+-]\\d{"+(2+We)+"})$)"),gt=De.match(st);if(!gt)return{year:NaN,restDateString:""};var dt=gt[1]?parseInt(gt[1]):null,Wt=gt[2]?parseInt(gt[2]):null;return{year:null===Wt?dt:100*Wt,restDateString:De.slice((gt[1]||gt[2]).length)}}(dt.date,gt);Wt=function Ge(De,We){if(null===We)return new Date(NaN);var st=De.match(Y);if(!st)return new Date(NaN);var gt=!!st[4],dt=B(st[1]),Wt=B(st[2])-1,Qt=B(st[3]),mt=B(st[4]),Ft=B(st[5])-1;if(gt)return function Pe(De,We,st){return We>=1&&We<=53&&st>=0&&st<=6}(0,mt,Ft)?function ce(De,We,st){var gt=new Date(0);gt.setUTCFullYear(De,0,4);var Wt=7*(We-1)+st+1-(gt.getUTCDay()||7);return gt.setUTCDate(gt.getUTCDate()+Wt),gt}(We,mt,Ft):new Date(NaN);var At=new Date(0);return function oe(De,We,st){return We>=0&&We<=11&&st>=1&&st<=(Se[We]||(we(De)?29:28))}(We,Wt,Qt)&&function Ee(De,We){return We>=1&&We<=(we(De)?366:365)}(We,dt)?(At.setUTCFullYear(We,Wt,Math.max(dt,Qt)),At):new Date(NaN)}(Qt.restDateString,Qt.year)}if(!Wt||isNaN(Wt.getTime()))return new Date(NaN);var At,mt=Wt.getTime(),Ft=0;if(dt.time&&(Ft=function Z(De){var We=De.match(ve);if(!We)return NaN;var st=J(We[1]),gt=J(We[2]),dt=J(We[3]);return function $e(De,We,st){return 24===De?0===We&&0===st:st>=0&&st<60&&We>=0&&We<60&&De>=0&&De<25}(st,gt,dt)?st*M+gt*A+1e3*dt:NaN}(dt.time),isNaN(Ft)))return new Date(NaN);if(!dt.timezone){var lt=new Date(mt+Ft),Le=new Date(0);return Le.setFullYear(lt.getUTCFullYear(),lt.getUTCMonth(),lt.getUTCDate()),Le.setHours(lt.getUTCHours(),lt.getUTCMinutes(),lt.getUTCSeconds(),lt.getUTCMilliseconds()),Le}return At=function re(De){if("Z"===De)return 0;var We=De.match(Ie);if(!We)return 0;var st="+"===We[1]?-1:1,gt=parseInt(We[2]),dt=We[3]&&parseInt(We[3])||0;return function Xe(De,We){return We>=0&&We<=59}(0,dt)?st*(gt*M+dt*A):NaN}(dt.timezone),isNaN(At)?new Date(NaN):new Date(mt+Ft+At)}var le={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Y=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ve=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ie=/^([+-])(\d{2})(?::?(\d{2}))?$/;function B(De){return De?parseInt(De):1}function J(De){return De&&parseFloat(De.replace(",","."))||0}var Se=[31,null,31,30,31,30,31,31,30,31,30,31];function we(De){return De%400==0||De%4==0&&De%100!=0}},40118:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>E});var i=s(71780);function E(y){(0,i.A)(1,arguments);var A=Object.prototype.toString.call(y);return y instanceof Date||"object"==typeof y&&"[object Date]"===A?new Date(y.getTime()):"number"==typeof y||"[object Number]"===A?new Date(y):(("string"==typeof y||"[object String]"===A)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},3281:it=>{function ge(y){return y&&y.constructor&&"function"==typeof y.constructor.isBuffer&&y.constructor.isBuffer(y)}function s(y){return y}function i(y,A){const M=(A=A||{}).delimiter||".",D=A.maxDepth,b=A.transformKey||s,f={};return function S(O,C,_){_=_||1,Object.keys(O).forEach(function(U){const w=O[U],R=A.safe&&Array.isArray(w),V=Object.prototype.toString.call(w),x=ge(w),z="[object Object]"===V||"[object Array]"===V,X=C?C+M+b(U):b(U);if(!R&&!x&&z&&Object.keys(w).length&&(!A.maxDepth||_<D))return S(w,X,_+1);f[X]=w})}(y),f}it.exports=i,i.flatten=i,i.unflatten=function E(y,A){const M=(A=A||{}).delimiter||".",D=A.overwrite||!1,b=A.transformKey||s,f={};if(ge(y)||"[object Object]"!==Object.prototype.toString.call(y))return y;function O(U){const w=Number(U);return isNaN(w)||-1!==U.indexOf(".")||A.object?U:w}return y=Object.keys(y).reduce(function(U,w){const R=Object.prototype.toString.call(y[w]);return"[object Object]"!==R&&"[object Array]"!==R||function _(U){const w=Object.prototype.toString.call(U);return!U||("[object Array]"===w?!U.length:"[object Object]"===w?!Object.keys(U).length:void 0)}(y[w])?(U[w]=y[w],U):function C(U,w,R){return Object.keys(R).reduce(function(V,x){return V[U+M+x]=R[x],V},w)}(w,U,i(y[w],A))},{}),Object.keys(y).forEach(function(U){const w=U.split(M).map(b);let R=O(w.shift()),V=O(w[0]),x=f;for(;void 0!==V;){if("__proto__"===R)return;const z=Object.prototype.toString.call(x[R]),X="[object Object]"===z||"[object Array]"===z;if(!D&&!X&&typeof x[R]<"u")return;(D&&!X||!D&&null==x[R])&&(x[R]="number"!=typeof V||A.object?{}:[]),x=x[R],w.length>0&&(R=O(w.shift()),V=O(w[0]))}x[R]=E(y[U],A)}),f}},67798:(it,ge)=>{ge.read=function(s,i,E,y,A){var M,D,b=8*A-y-1,f=(1<<b)-1,S=f>>1,O=-7,C=E?A-1:0,_=E?-1:1,U=s[i+C];for(C+=_,M=U&(1<<-O)-1,U>>=-O,O+=b;O>0;M=256*M+s[i+C],C+=_,O-=8);for(D=M&(1<<-O)-1,M>>=-O,O+=y;O>0;D=256*D+s[i+C],C+=_,O-=8);if(0===M)M=1-S;else{if(M===f)return D?NaN:1/0*(U?-1:1);D+=Math.pow(2,y),M-=S}return(U?-1:1)*D*Math.pow(2,M-y)},ge.write=function(s,i,E,y,A,M){var D,b,f,S=8*M-A-1,O=(1<<S)-1,C=O>>1,_=23===A?Math.pow(2,-24)-Math.pow(2,-77):0,U=y?0:M-1,w=y?1:-1,R=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(b=isNaN(i)?1:0,D=O):(D=Math.floor(Math.log(i)/Math.LN2),i*(f=Math.pow(2,-D))<1&&(D--,f*=2),(i+=D+C>=1?_/f:_*Math.pow(2,1-C))*f>=2&&(D++,f/=2),D+C>=O?(b=0,D=O):D+C>=1?(b=(i*f-1)*Math.pow(2,A),D+=C):(b=i*Math.pow(2,C-1)*Math.pow(2,A),D=0));A>=8;s[E+U]=255&b,U+=w,b/=256,A-=8);for(D=D<<A|b,S+=A;S>0;s[E+U]=255&D,U+=w,D/=256,S-=8);s[E+U-w]|=128*R}},26096:function(it){it.exports=function(){"use strict";var ge=Math.imul,s=Math.clz32;function i(Y){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ve){return typeof ve}:function(ve){return ve&&"function"==typeof Symbol&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(Y)}function y(Y,ve){for(var Ie,He=0;He<ve.length;He++)(Ie=ve[He]).enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(Y,Ie.key,Ie)}function D(Y){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(Y)}function b(Y,ve){return(b=Object.setPrototypeOf||function(Ie,He){return Ie.__proto__=He,Ie})(Y,ve)}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(){return(S=f()?Reflect.construct:function(Y,ve,Ie){var He=[null];He.push.apply(He,ve);var Ge=new(Function.bind.apply(Y,He));return Ie&&b(Ge,Ie.prototype),Ge}).apply(null,arguments)}function C(Y){var ve="function"==typeof Map?new Map:void 0;return C=function(Ie){function He(){return S(Ie,arguments,D(this).constructor)}if(null===Ie||!function O(Y){return-1!==Function.toString.call(Y).indexOf("[native code]")}(Ie))return Ie;if("function"!=typeof Ie)throw new TypeError("Super expression must either be null or a function");if(typeof ve<"u"){if(ve.has(Ie))return ve.get(Ie);ve.set(Ie,He)}return He.prototype=Object.create(Ie.prototype,{constructor:{value:He,enumerable:!1,writable:!0,configurable:!0}}),b(He,Ie)},C(Y)}function _(Y){if(void 0===Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}function w(Y){var ve=f();return function(){var Ie,He=D(Y);if(ve){var se=D(this).constructor;Ie=Reflect.construct(He,arguments,se)}else Ie=He.apply(this,arguments);return function U(Y,ve){if(ve&&("object"==typeof ve||"function"==typeof ve))return ve;if(void 0!==ve)throw new TypeError("Derived constructors may only return object or undefined");return _(Y)}(this,Ie)}}function R(Y,ve){return function V(Y){if(Array.isArray(Y))return Y}(Y)||function x(Y,ve){var Ie=null==Y?null:typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(null!=Ie){var He,se,Ge=[],B=!0,Z=!1;try{for(Ie=Ie.call(Y);!(B=(He=Ie.next()).done)&&(Ge.push(He.value),!ve||Ge.length!==ve);B=!0);}catch(J){Z=!0,se=J}finally{try{B||null==Ie.return||Ie.return()}finally{if(Z)throw se}}return Ge}}(Y,ve)||z(Y,ve)||function K(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(Y,ve){if(Y){if("string"==typeof Y)return X(Y,ve);var Ie=Object.prototype.toString.call(Y).slice(8,-1);return"Object"===Ie&&Y.constructor&&(Ie=Y.constructor.name),"Map"===Ie||"Set"===Ie?Array.from(Y):"Arguments"===Ie||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ie)?X(Y,ve):void 0}}function X(Y,ve){(null==ve||ve>Y.length)&&(ve=Y.length);for(var Ie=0,He=Array(ve);Ie<ve;Ie++)He[Ie]=Y[Ie];return He}var le=function(Y){var ve=Math.abs,Ie=Math.max,He=Math.floor;function se(B,Z){var J;if(function E(Y,ve){if(!(Y instanceof ve))throw new TypeError("Cannot call a class as a function")}(this,se),(J=Ge.call(this,B)).sign=Z,Object.setPrototypeOf(_(J),se.prototype),B>se.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return J}!function M(Y,ve){if("function"!=typeof ve&&null!==ve)throw new TypeError("Super expression must either be null or a function");Y.prototype=Object.create(ve&&ve.prototype,{constructor:{value:Y,writable:!0,configurable:!0}}),Object.defineProperty(Y,"prototype",{writable:!1}),ve&&b(Y,ve)}(se,Y);var Ge=w(se);return function A(Y,ve,Ie){return ve&&y(Y.prototype,ve),Ie&&y(Y,Ie),Object.defineProperty(Y,"prototype",{writable:!1}),Y}(se,[{key:"toDebugString",value:function(){var B,Z=["BigInt["],J=function ne(Y,ve){var Ie=typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(!Ie){if(Array.isArray(Y)||(Ie=z(Y))||ve&&Y&&"number"==typeof Y.length){Ie&&(Y=Ie);var He=0,se=function(){};return{s:se,n:function(){return He>=Y.length?{done:!0}:{done:!1,value:Y[He++]}},e:function(J){throw J},f:se}}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 Ge,B=!0,Z=!1;return{s:function(){Ie=Ie.call(Y)},n:function(){var J=Ie.next();return B=J.done,J},e:function(J){Z=!0,Ge=J},f:function(){try{B||null==Ie.return||Ie.return()}finally{if(Z)throw Ge}}}}(this);try{for(J.s();!(B=J.n()).done;){var re=B.value;Z.push((re&&(re>>>0).toString(16))+", ")}}catch(ce){J.e(ce)}finally{J.f()}return Z.push("]"),Z.join("")}},{key:"toString",value:function(){var B=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>B||36<B)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":B&B-1?se.__toStringGeneric(this,B,!1):se.__toStringBasePowerOfTwo(this,B)}},{key:"valueOf",value:function(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}},{key:"__copy",value:function(){for(var B=new se(this.length,this.sign),Z=0;Z<this.length;Z++)B[Z]=this[Z];return B}},{key:"__trim",value:function(){for(var B=this.length,Z=this[B-1];0===Z;)Z=this[--B-1],this.pop();return 0===B&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var B=0;B<this.length;B++)this[B]=0}},{key:"__clzmsd",value:function(){return se.__clz30(this.__digit(this.length-1))}},{key:"__inplaceMultiplyAdd",value:function(B,Z,J){J>this.length&&(J=this.length);for(var re=32767&B,ce=B>>>15,Se=0,we=Z,oe=0;oe<J;oe++){var Ee=this.__digit(oe),Pe=32767&Ee,$e=Ee>>>15,Xe=se.__imul(Pe,re),De=se.__imul(Pe,ce),We=se.__imul($e,re),gt=we+Xe+Se;Se=gt>>>30,gt&=1073741823,Se+=(gt+=((32767&De)<<15)+((32767&We)<<15))>>>30,we=se.__imul($e,ce)+(De>>>15)+(We>>>15),this.__setDigit(oe,1073741823&gt)}if(0!==Se||0!==we)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(B,Z,J){for(var re,ce=0,Se=0;Se<J;Se++)ce=(re=this.__halfDigit(Z+Se)+B.__halfDigit(Se)+ce)>>>15,this.__setHalfDigit(Z+Se,32767&re);return ce}},{key:"__inplaceSub",value:function(B,Z,J){var re=0;if(1&Z){for(var ce=this.__digit(Z>>=1),Se=32767&ce,we=0;we<J-1>>>1;we++){var oe=B.__digit(we),Ee=(ce>>>15)-(32767&oe)-re;re=1&Ee>>>15,this.__setDigit(Z+we,(32767&Ee)<<15|32767&Se),re=1&(Se=(32767&(ce=this.__digit(Z+we+1)))-(oe>>>15)-re)>>>15}var Pe=B.__digit(we),$e=(ce>>>15)-(32767&Pe)-re;if(re=1&$e>>>15,this.__setDigit(Z+we,(32767&$e)<<15|32767&Se),Z+we+1>=this.length)throw new RangeError("out of bounds");!(1&J)&&(re=1&(Se=(32767&(ce=this.__digit(Z+we+1)))-(Pe>>>15)-re)>>>15,this.__setDigit(Z+B.length,1073709056&ce|32767&Se))}else{Z>>=1;for(var Xe=0;Xe<B.length-1;Xe++){var De=this.__digit(Z+Xe),We=B.__digit(Xe),st=(32767&De)-(32767&We)-re,gt=(De>>>15)-(We>>>15)-(re=1&st>>>15);re=1&gt>>>15,this.__setDigit(Z+Xe,(32767&gt)<<15|32767&st)}var dt=this.__digit(Z+Xe),Wt=B.__digit(Xe),Qt=(32767&dt)-(32767&Wt)-re;re=1&Qt>>>15;var mt=0;!(1&J)&&(re=1&(mt=(dt>>>15)-(Wt>>>15)-re)>>>15),this.__setDigit(Z+Xe,(32767&mt)<<15|32767&Qt)}return re}},{key:"__inplaceRightShift",value:function(B){if(0!==B){for(var Z,J=this.__digit(0)>>>B,re=this.length-1,ce=0;ce<re;ce++)Z=this.__digit(ce+1),this.__setDigit(ce,1073741823&Z<<30-B|J),J=Z>>>B;this.__setDigit(re,J)}}},{key:"__digit",value:function(B){return this[B]}},{key:"__unsignedDigit",value:function(B){return this[B]>>>0}},{key:"__setDigit",value:function(B,Z){this[B]=0|Z}},{key:"__setDigitGrow",value:function(B,Z){this[B]=0|Z}},{key:"__halfDigitLength",value:function(){var B=this.length;return 32767>=this.__unsignedDigit(B-1)?2*B-1:2*B}},{key:"__halfDigit",value:function(B){return 32767&this[B>>>1]>>>15*(1&B)}},{key:"__setHalfDigit",value:function(B,Z){var J=B>>>1,re=this.__digit(J);this.__setDigit(J,1&B?32767&re|Z<<15:1073709056&re|32767&Z)}}],[{key:"BigInt",value:function(B){var Z=Number.isFinite;if("number"==typeof B){if(0===B)return se.__zero();if(se.__isOneDigitInt(B))return 0>B?se.__oneDigit(-B,!0):se.__oneDigit(B,!1);if(!Z(B)||He(B)!==B)throw new RangeError("The number "+B+" cannot be converted to BigInt because it is not an integer");return se.__fromDouble(B)}if("string"==typeof B){var J=se.__fromString(B);if(null===J)throw new SyntaxError("Cannot convert "+B+" to a BigInt");return J}if("boolean"==typeof B)return!0===B?se.__oneDigit(1,!1):se.__zero();if("object"===i(B)){if(B.constructor===se)return B;var re=se.__toPrimitive(B);return se.BigInt(re)}throw new TypeError("Cannot convert "+B+" to a BigInt")}},{key:"toNumber",value:function(B){var Z=B.length;if(0===Z)return 0;if(1===Z){var J=B.__unsignedDigit(0);return B.sign?-J:J}var re=B.__digit(Z-1),ce=se.__clz30(re),Se=30*Z-ce;if(1024<Se)return B.sign?-1/0:1/0;var we=Se-1,oe=re,Ee=Z-1,Pe=ce+3,$e=32===Pe?0:oe<<Pe;$e>>>=12;var Xe=Pe-12,De=12<=Pe?0:oe<<20+Pe,We=20+Pe;for(0<Xe&&0<Ee&&(Ee--,$e|=(oe=B.__digit(Ee))>>>30-Xe,De=oe<<Xe+2,We=Xe+2);0<We&&0<Ee;)Ee--,oe=B.__digit(Ee),De|=30<=We?oe<<We-30:oe>>>30-We,We-=30;var st=se.__decideRounding(B,We,Ee,oe);return 1!==st&&(0!==st||1&~De)||0!=(De=De+1>>>0)||!(++$e>>>20!=0&&($e=0,1023<++we))?(se.__kBitConversionInts[1]=(B.sign?-2147483648:0)|(we=we+1023<<20)|$e,se.__kBitConversionInts[0]=De,se.__kBitConversionDouble[0]):B.sign?-1/0:1/0}},{key:"unaryMinus",value:function(B){if(0===B.length)return B;var Z=B.__copy();return Z.sign=!B.sign,Z}},{key:"bitwiseNot",value:function(B){return B.sign?se.__absoluteSubOne(B).__trim():se.__absoluteAddOne(B,!0)}},{key:"exponentiate",value:function(B,Z){if(Z.sign)throw new RangeError("Exponent must be positive");if(0===Z.length)return se.__oneDigit(1,!1);if(0===B.length)return B;if(1===B.length&&1===B.__digit(0))return!B.sign||1&Z.__digit(0)?B:se.unaryMinus(B);if(1<Z.length)throw new RangeError("BigInt too big");var J=Z.__unsignedDigit(0);if(1===J)return B;if(J>=se.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===B.length&&2===B.__digit(0)){var re=1+(0|J/30),Se=new se(re,B.sign&&!!(1&J));return Se.__initializeDigits(),Se.__setDigit(re-1,1<<J%30),Se}var oe=null,Ee=B;for(1&J&&(oe=B),J>>=1;0!==J;J>>=1)Ee=se.multiply(Ee,Ee),1&J&&(oe=null===oe?Ee:se.multiply(oe,Ee));return oe}},{key:"multiply",value:function(B,Z){if(0===B.length)return B;if(0===Z.length)return Z;var J=B.length+Z.length;30<=B.__clzmsd()+Z.__clzmsd()&&J--;var re=new se(J,B.sign!==Z.sign);re.__initializeDigits();for(var ce=0;ce<B.length;ce++)se.__multiplyAccumulate(Z,B.__digit(ce),re,ce);return re.__trim()}},{key:"divide",value:function(B,Z){if(0===Z.length)throw new RangeError("Division by zero");if(0>se.__absoluteCompare(B,Z))return se.__zero();var J,re=B.sign!==Z.sign,ce=Z.__unsignedDigit(0);if(1===Z.length&&32767>=ce){if(1===ce)return re===B.sign?B:se.unaryMinus(B);J=se.__absoluteDivSmall(B,ce,null)}else J=se.__absoluteDivLarge(B,Z,!0,!1);return J.sign=re,J.__trim()}},{key:"remainder",value:function(Z,J){if(0===J.length)throw new RangeError("Division by zero");if(0>se.__absoluteCompare(Z,J))return Z;var re=J.__unsignedDigit(0);if(1===J.length&&32767>=re){if(1===re)return se.__zero();var ce=se.__absoluteModSmall(Z,re);return 0===ce?se.__zero():se.__oneDigit(ce,Z.sign)}var Se=se.__absoluteDivLarge(Z,J,!1,!0);return Se.sign=Z.sign,Se.__trim()}},{key:"add",value:function(B,Z){var J=B.sign;return J===Z.sign?se.__absoluteAdd(B,Z,J):0<=se.__absoluteCompare(B,Z)?se.__absoluteSub(B,Z,J):se.__absoluteSub(Z,B,!J)}},{key:"subtract",value:function(B,Z){var J=B.sign;return J===Z.sign?0<=se.__absoluteCompare(B,Z)?se.__absoluteSub(B,Z,J):se.__absoluteSub(Z,B,!J):se.__absoluteAdd(B,Z,J)}},{key:"leftShift",value:function(B,Z){return 0===Z.length||0===B.length?B:Z.sign?se.__rightShiftByAbsolute(B,Z):se.__leftShiftByAbsolute(B,Z)}},{key:"signedRightShift",value:function(B,Z){return 0===Z.length||0===B.length?B:Z.sign?se.__leftShiftByAbsolute(B,Z):se.__rightShiftByAbsolute(B,Z)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(B,Z){return 0>se.__compareToBigInt(B,Z)}},{key:"lessThanOrEqual",value:function(B,Z){return 0>=se.__compareToBigInt(B,Z)}},{key:"greaterThan",value:function(B,Z){return 0<se.__compareToBigInt(B,Z)}},{key:"greaterThanOrEqual",value:function(B,Z){return 0<=se.__compareToBigInt(B,Z)}},{key:"equal",value:function(B,Z){if(B.sign!==Z.sign||B.length!==Z.length)return!1;for(var J=0;J<B.length;J++)if(B.__digit(J)!==Z.__digit(J))return!1;return!0}},{key:"notEqual",value:function(B,Z){return!se.equal(B,Z)}},{key:"bitwiseAnd",value:function(B,Z){if(!B.sign&&!Z.sign)return se.__absoluteAnd(B,Z).__trim();if(B.sign&&Z.sign){var J=Ie(B.length,Z.length)+1,re=se.__absoluteSubOne(B,J),ce=se.__absoluteSubOne(Z);return re=se.__absoluteOr(re,ce,re),se.__absoluteAddOne(re,!0,re).__trim()}if(B.sign){var Se=[Z,B];B=Se[0],Z=Se[1]}return se.__absoluteAndNot(B,se.__absoluteSubOne(Z)).__trim()}},{key:"bitwiseXor",value:function(B,Z){if(!B.sign&&!Z.sign)return se.__absoluteXor(B,Z).__trim();if(B.sign&&Z.sign){var J=Ie(B.length,Z.length),re=se.__absoluteSubOne(B,J),ce=se.__absoluteSubOne(Z);return se.__absoluteXor(re,ce,re).__trim()}var Se=Ie(B.length,Z.length)+1;if(B.sign){var we=[Z,B];B=we[0],Z=we[1]}var oe=se.__absoluteSubOne(Z,Se);return oe=se.__absoluteXor(oe,B,oe),se.__absoluteAddOne(oe,!0,oe).__trim()}},{key:"bitwiseOr",value:function(B,Z){var J=Ie(B.length,Z.length);if(!B.sign&&!Z.sign)return se.__absoluteOr(B,Z).__trim();if(B.sign&&Z.sign){var re=se.__absoluteSubOne(B,J),ce=se.__absoluteSubOne(Z);return re=se.__absoluteAnd(re,ce,re),se.__absoluteAddOne(re,!0,re).__trim()}if(B.sign){var Se=[Z,B];B=Se[0],Z=Se[1]}var we=se.__absoluteSubOne(Z,J);return we=se.__absoluteAndNot(we,B,we),se.__absoluteAddOne(we,!0,we).__trim()}},{key:"asIntN",value:function(B,Z){if(0===Z.length)return Z;if(0>(B=He(B)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===B)return se.__zero();if(B>=se.__kMaxLengthBits)return Z;var J=0|(B+29)/30;if(Z.length<J)return Z;var re=Z.__unsignedDigit(J-1),ce=1<<(B-1)%30;if(Z.length===J&&re<ce)return Z;if((re&ce)!==ce)return se.__truncateToNBits(B,Z);if(!Z.sign)return se.__truncateAndSubFromPowerOfTwo(B,Z,!0);if(!(re&ce-1)){for(var Se=J-2;0<=Se;Se--)if(0!==Z.__digit(Se))return se.__truncateAndSubFromPowerOfTwo(B,Z,!1);return Z.length===J&&re===ce?Z:se.__truncateToNBits(B,Z)}return se.__truncateAndSubFromPowerOfTwo(B,Z,!1)}},{key:"asUintN",value:function(B,Z){if(0===Z.length)return Z;if(0>(B=He(B)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===B)return se.__zero();if(Z.sign){if(B>se.__kMaxLengthBits)throw new RangeError("BigInt too big");return se.__truncateAndSubFromPowerOfTwo(B,Z,!1)}if(B>=se.__kMaxLengthBits)return Z;var J=0|(B+29)/30;if(Z.length<J)return Z;var re=B%30;if(Z.length==J){if(0===re)return Z;if(!(Z.__digit(J-1)>>>re))return Z}return se.__truncateToNBits(B,Z)}},{key:"ADD",value:function(B,Z){if(B=se.__toPrimitive(B),Z=se.__toPrimitive(Z),"string"==typeof B)return"string"!=typeof Z&&(Z=Z.toString()),B+Z;if("string"==typeof Z)return B.toString()+Z;if(B=se.__toNumeric(B),Z=se.__toNumeric(Z),se.__isBigInt(B)&&se.__isBigInt(Z))return se.add(B,Z);if("number"==typeof B&&"number"==typeof Z)return B+Z;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(B,Z){return se.__compare(B,Z,0)}},{key:"LE",value:function(B,Z){return se.__compare(B,Z,1)}},{key:"GT",value:function(B,Z){return se.__compare(B,Z,2)}},{key:"GE",value:function(B,Z){return se.__compare(B,Z,3)}},{key:"EQ",value:function(B,Z){for(;;){if(se.__isBigInt(B))return se.__isBigInt(Z)?se.equal(B,Z):se.EQ(Z,B);if("number"==typeof B){if(se.__isBigInt(Z))return se.__equalToNumber(Z,B);if("object"!==i(Z))return B==Z;Z=se.__toPrimitive(Z)}else if("string"==typeof B){if(se.__isBigInt(Z))return null!==(B=se.__fromString(B))&&se.equal(B,Z);if("object"!==i(Z))return B==Z;Z=se.__toPrimitive(Z)}else if("boolean"==typeof B){if(se.__isBigInt(Z))return se.__equalToNumber(Z,+B);if("object"!==i(Z))return B==Z;Z=se.__toPrimitive(Z)}else if("symbol"===i(B)){if(se.__isBigInt(Z))return!1;if("object"!==i(Z))return B==Z;Z=se.__toPrimitive(Z)}else{if("object"!==i(B))return B==Z;if("object"===i(Z)&&Z.constructor!==se)return B==Z;B=se.__toPrimitive(B)}}}},{key:"NE",value:function(B,Z){return!se.EQ(B,Z)}},{key:"DataViewGetBigInt64",value:function(B,Z){return se.asIntN(64,se.DataViewGetBigUint64(B,Z,2<arguments.length&&void 0!==arguments[2]&&arguments[2]))}},{key:"DataViewGetBigUint64",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]&&arguments[2],ce=R(J?[4,0]:[0,4],2),we=ce[1],oe=B.getUint32(Z+ce[0],J),Ee=B.getUint32(Z+we,J),Pe=new se(3,!1);return Pe.__setDigit(0,1073741823&Ee),Pe.__setDigit(1,(268435455&oe)<<2|Ee>>>30),Pe.__setDigit(2,oe>>>28),Pe.__trim()}},{key:"DataViewSetBigInt64",value:function(B,Z,J){se.DataViewSetBigUint64(B,Z,J,3<arguments.length&&void 0!==arguments[3]&&arguments[3])}},{key:"DataViewSetBigUint64",value:function(B,Z,J){var re=3<arguments.length&&void 0!==arguments[3]&&arguments[3],ce=0,Se=0;if(0<(J=se.asUintN(64,J)).length&&(Se=J.__digit(0),1<J.length)){var we=J.__digit(1);Se|=we<<30,ce=we>>>2,2<J.length&&(ce|=J.__digit(2)<<28)}var Ee=R(re?[4,0]:[0,4],2),$e=Ee[1];B.setUint32(Z+Ee[0],ce,re),B.setUint32(Z+$e,Se,re)}},{key:"__zero",value:function(){return new se(0,!1)}},{key:"__oneDigit",value:function(B,Z){var J=new se(1,Z);return J.__setDigit(0,B),J}},{key:"__decideRounding",value:function(B,Z,J,re){if(0<Z)return-1;var ce;if(0>Z)ce=-Z-1;else{if(0===J)return-1;J--,re=B.__digit(J),ce=29}var Se=1<<ce;if(!(re&Se))return-1;if(re&(Se-=1))return 1;for(;0<J;)if(J--,0!==B.__digit(J))return 1;return 0}},{key:"__fromDouble",value:function(B){se.__kBitConversionDouble[0]=B;var Z,re=(2047&se.__kBitConversionInts[1]>>>20)-1023,ce=1+(0|re/30),Se=new se(ce,0>B),we=1048575&se.__kBitConversionInts[1]|1048576,oe=se.__kBitConversionInts[0],Pe=re%30,$e=0;if(Pe<20){var Xe=20-Pe;$e=Xe+32,Z=we>>>Xe,we=we<<32-Xe|oe>>>Xe,oe<<=32-Xe}else if(20===Pe)$e=32,Z=we,we=oe,oe=0;else{var De=Pe-20;$e=32-De,Z=we<<De|oe>>>32-De,we=oe<<De,oe=0}Se.__setDigit(ce-1,Z);for(var We=ce-2;0<=We;We--)0<$e?($e-=30,Z=we>>>2,we=we<<30|oe>>>2,oe<<=30):Z=0,Se.__setDigit(We,Z);return Se.__trim()}},{key:"__isWhitespace",value:function(B){return 13>=B&&9<=B||(159>=B?32==B:131071>=B?160==B||5760==B:196607>=B?10>=(B&=131071)||40==B||41==B||47==B||95==B||4096==B:65279==B)}},{key:"__fromString",value:function(B){var Z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,J=0,re=B.length,ce=0;if(ce===re)return se.__zero();for(var Se=B.charCodeAt(ce);se.__isWhitespace(Se);){if(++ce===re)return se.__zero();Se=B.charCodeAt(ce)}if(43===Se){if(++ce===re)return null;Se=B.charCodeAt(ce),J=1}else if(45===Se){if(++ce===re)return null;Se=B.charCodeAt(ce),J=-1}if(0===Z){if(Z=10,48===Se){if(++ce===re)return se.__zero();if(88===(Se=B.charCodeAt(ce))||120===Se){if(Z=16,++ce===re)return null;Se=B.charCodeAt(ce)}else if(79===Se||111===Se){if(Z=8,++ce===re)return null;Se=B.charCodeAt(ce)}else if(66===Se||98===Se){if(Z=2,++ce===re)return null;Se=B.charCodeAt(ce)}}}else if(16===Z&&48===Se){if(++ce===re)return se.__zero();if(88===(Se=B.charCodeAt(ce))||120===Se){if(++ce===re)return null;Se=B.charCodeAt(ce)}}if(0!==J&&10!==Z)return null;for(;48===Se;){if(++ce===re)return se.__zero();Se=B.charCodeAt(ce)}var we=re-ce,oe=se.__kMaxBitsPerChar[Z],Ee=se.__kBitsPerCharTableMultiplier-1;if(we>1073741824/oe)return null;var $e=new se(0|(29+(oe*we+Ee>>>se.__kBitsPerCharTableShift))/30,!1),Xe=10>Z?Z:10,De=10<Z?Z-10:0;if(Z&Z-1){$e.__initializeDigits();var mt=!1,Ft=0;do{for(var At,lt=0,Le=1;;){if(At=void 0,Se-48>>>0<Xe)At=Se-48;else{if(!((32|Se)-97>>>0<De)){mt=!0;break}At=(32|Se)-87}var ze=Le*Z;if(1073741823<ze)break;if(Le=ze,lt=lt*Z+At,Ft++,++ce===re){mt=!0;break}Se=B.charCodeAt(ce)}$e.__inplaceMultiplyAdd(Le,lt,0|(oe*Ft+(Ee=30*se.__kBitsPerCharTableMultiplier-1)>>>se.__kBitsPerCharTableShift)/30)}while(!mt)}else{oe>>=se.__kBitsPerCharTableShift;var We=[],st=[],gt=!1;do{for(var dt,Wt=0,Qt=0;;){if(dt=void 0,Se-48>>>0<Xe)dt=Se-48;else{if(!((32|Se)-97>>>0<De)){gt=!0;break}dt=(32|Se)-87}if(Qt+=oe,Wt=Wt<<oe|dt,++ce===re){gt=!0;break}if(Se=B.charCodeAt(ce),30<Qt+oe)break}We.push(Wt),st.push(Qt)}while(!gt);se.__fillFromParts($e,We,st)}if(ce!==re){if(!se.__isWhitespace(Se))return null;for(ce++;ce<re;ce++)if(Se=B.charCodeAt(ce),!se.__isWhitespace(Se))return null}return $e.sign=-1===J,$e.__trim()}},{key:"__fillFromParts",value:function(B,Z,J){for(var re=0,ce=0,Se=0,we=Z.length-1;0<=we;we--){var oe=Z[we],Ee=J[we];ce|=oe<<Se,30===(Se+=Ee)?(B.__setDigit(re++,ce),Se=0,ce=0):30<Se&&(B.__setDigit(re++,1073741823&ce),ce=oe>>>Ee-(Se-=30))}if(0!==ce){if(re>=B.length)throw new Error("implementation bug");B.__setDigit(re++,ce)}for(;re<B.length;re++)B.__setDigit(re,0)}},{key:"__toStringBasePowerOfTwo",value:function(B,Z){var J=B.length,re=Z-1,ce=re=(15&(re=(51&(re=(85&re>>>1)+(85&re))>>>2)+(51&re))>>>4)+(15&re),Se=Z-1,we=B.__digit(J-1),Ee=0|(30*J-se.__clz30(we)+ce-1)/ce;if(B.sign&&Ee++,268435456<Ee)throw new Error("string too long");for(var Pe=Array(Ee),$e=Ee-1,Xe=0,De=0,We=0;We<J-1;We++){var st=B.__digit(We);Pe[$e--]=se.__kConversionChars[(Xe|st<<De)&Se];var dt=ce-De;for(Xe=st>>>dt,De=30-dt;De>=ce;)Pe[$e--]=se.__kConversionChars[Xe&Se],Xe>>>=ce,De-=ce}for(Pe[$e--]=se.__kConversionChars[(Xe|we<<De)&Se],Xe=we>>>ce-De;0!==Xe;)Pe[$e--]=se.__kConversionChars[Xe&Se],Xe>>>=ce;if(B.sign&&(Pe[$e--]="-"),-1!==$e)throw new Error("implementation bug");return Pe.join("")}},{key:"__toStringGeneric",value:function(B,Z,J){var re=B.length;if(0===re)return"";if(1===re){var ce=B.__unsignedDigit(0).toString(Z);return!1===J&&B.sign&&(ce="-"+ce),ce}var Pe,$e,Se=30*re-se.__clz30(B.__digit(re-1)),oe=se.__kMaxBitsPerChar[Z]-1,Ee=Se*se.__kBitsPerCharTableMultiplier,Xe=1+(Ee=0|(Ee+=oe-1)/oe)>>1,De=se.exponentiate(se.__oneDigit(Z,!1),se.__oneDigit(Xe,!1)),We=De.__unsignedDigit(0);if(1===De.length&&32767>=We){(Pe=new se(B.length,!1)).__initializeDigits();for(var st,gt=0,dt=2*B.length-1;0<=dt;dt--)st=gt<<15|B.__halfDigit(dt),Pe.__setHalfDigit(dt,0|st/We),gt=0|st%We;$e=gt.toString(Z)}else{var Wt=se.__absoluteDivLarge(B,De,!0,!0);Pe=Wt.quotient;var Qt=Wt.remainder.__trim();$e=se.__toStringGeneric(Qt,Z,!0)}Pe.__trim();for(var mt=se.__toStringGeneric(Pe,Z,!0);$e.length<Xe;)$e="0"+$e;return!1===J&&B.sign&&(mt="-"+mt),mt+$e}},{key:"__unequalSign",value:function(B){return B?-1:1}},{key:"__absoluteGreater",value:function(B){return B?-1:1}},{key:"__absoluteLess",value:function(B){return B?1:-1}},{key:"__compareToBigInt",value:function(B,Z){var J=B.sign;if(J!==Z.sign)return se.__unequalSign(J);var re=se.__absoluteCompare(B,Z);return 0<re?se.__absoluteGreater(J):0>re?se.__absoluteLess(J):0}},{key:"__compareToNumber",value:function(B,Z){if(se.__isOneDigitInt(Z)){var J=B.sign,re=0>Z;if(J!==re)return se.__unequalSign(J);if(0===B.length){if(re)throw new Error("implementation bug");return 0===Z?0:-1}if(1<B.length)return se.__absoluteGreater(J);var ce=ve(Z),Se=B.__unsignedDigit(0);return Se>ce?se.__absoluteGreater(J):Se<ce?se.__absoluteLess(J):0}return se.__compareToDouble(B,Z)}},{key:"__compareToDouble",value:function(B,Z){if(Z!=Z)return Z;if(Z===1/0)return-1;if(Z===-1/0)return 1;var J=B.sign;if(J!==0>Z)return se.__unequalSign(J);if(0===Z)throw new Error("implementation bug: should be handled elsewhere");if(0===B.length)return-1;se.__kBitConversionDouble[0]=Z;var re=2047&se.__kBitConversionInts[1]>>>20;if(2047==re)throw new Error("implementation bug: handled elsewhere");var ce=re-1023;if(0>ce)return se.__absoluteGreater(J);var Se=B.length,we=B.__digit(Se-1),oe=se.__clz30(we),Ee=30*Se-oe,Pe=ce+1;if(Ee<Pe)return se.__absoluteLess(J);if(Ee>Pe)return se.__absoluteGreater(J);var $e=1048576|1048575&se.__kBitConversionInts[1],Xe=se.__kBitConversionInts[0],We=29-oe;if(We!==(0|(Ee-1)%30))throw new Error("implementation bug");var st,gt=0;if(We<20){var dt=20-We;gt=dt+32,st=$e>>>dt,$e=$e<<32-dt|Xe>>>dt,Xe<<=32-dt}else if(20===We)gt=32,st=$e,$e=Xe,Xe=0;else{var Wt=We-20;gt=32-Wt,st=$e<<Wt|Xe>>>32-Wt,$e=Xe<<Wt,Xe=0}if((we>>>=0)>(st>>>=0))return se.__absoluteGreater(J);if(we<st)return se.__absoluteLess(J);for(var Qt=Se-2;0<=Qt;Qt--){0<gt?(gt-=30,st=$e>>>2,$e=$e<<30|Xe>>>2,Xe<<=30):st=0;var mt=B.__unsignedDigit(Qt);if(mt>st)return se.__absoluteGreater(J);if(mt<st)return se.__absoluteLess(J)}if(0!==$e||0!==Xe){if(0===gt)throw new Error("implementation bug");return se.__absoluteLess(J)}return 0}},{key:"__equalToNumber",value:function(B,Z){return se.__isOneDigitInt(Z)?0===Z?0===B.length:1===B.length&&B.sign===0>Z&&B.__unsignedDigit(0)===ve(Z):0===se.__compareToDouble(B,Z)}},{key:"__comparisonResultToBool",value:function(B,Z){return 0===Z?0>B:1===Z?0>=B:2===Z?0<B:3===Z?0<=B:void 0}},{key:"__compare",value:function(B,Z,J){if(B=se.__toPrimitive(B),Z=se.__toPrimitive(Z),"string"==typeof B&&"string"==typeof Z)switch(J){case 0:return B<Z;case 1:return B<=Z;case 2:return B>Z;case 3:return B>=Z}if(se.__isBigInt(B)&&"string"==typeof Z)return null!==(Z=se.__fromString(Z))&&se.__comparisonResultToBool(se.__compareToBigInt(B,Z),J);if("string"==typeof B&&se.__isBigInt(Z))return null!==(B=se.__fromString(B))&&se.__comparisonResultToBool(se.__compareToBigInt(B,Z),J);if(B=se.__toNumeric(B),Z=se.__toNumeric(Z),se.__isBigInt(B)){if(se.__isBigInt(Z))return se.__comparisonResultToBool(se.__compareToBigInt(B,Z),J);if("number"!=typeof Z)throw new Error("implementation bug");return se.__comparisonResultToBool(se.__compareToNumber(B,Z),J)}if("number"!=typeof B)throw new Error("implementation bug");if(se.__isBigInt(Z))return se.__comparisonResultToBool(se.__compareToNumber(Z,B),2^J);if("number"!=typeof Z)throw new Error("implementation bug");return 0===J?B<Z:1===J?B<=Z:2===J?B>Z:3===J?B>=Z:void 0}},{key:"__absoluteAdd",value:function(B,Z,J){if(B.length<Z.length)return se.__absoluteAdd(Z,B,J);if(0===B.length)return B;if(0===Z.length)return B.sign===J?B:se.unaryMinus(B);var re=B.length;(0===B.__clzmsd()||Z.length===B.length&&0===Z.__clzmsd())&&re++;for(var ce,Se=new se(re,J),we=0,oe=0;oe<Z.length;oe++)we=(ce=B.__digit(oe)+Z.__digit(oe)+we)>>>30,Se.__setDigit(oe,1073741823&ce);for(;oe<B.length;oe++){var Ee=B.__digit(oe)+we;we=Ee>>>30,Se.__setDigit(oe,1073741823&Ee)}return oe<Se.length&&Se.__setDigit(oe,we),Se.__trim()}},{key:"__absoluteSub",value:function(B,Z,J){if(0===B.length)return B;if(0===Z.length)return B.sign===J?B:se.unaryMinus(B);for(var re,ce=new se(B.length,J),Se=0,we=0;we<Z.length;we++)Se=1&(re=B.__digit(we)-Z.__digit(we)-Se)>>>30,ce.__setDigit(we,1073741823&re);for(;we<B.length;we++){var oe=B.__digit(we)-Se;Se=1&oe>>>30,ce.__setDigit(we,1073741823&oe)}return ce.__trim()}},{key:"__absoluteAddOne",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,re=B.length;null===J?J=new se(re,Z):J.sign=Z;for(var ce,Se=1,we=0;we<re;we++)Se=(ce=B.__digit(we)+Se)>>>30,J.__setDigit(we,1073741823&ce);return 0!==Se&&J.__setDigitGrow(re,1),J}},{key:"__absoluteSubOne",value:function(B,Z){for(var re,J=B.length,ce=new se(Z=Z||J,!1),Se=1,we=0;we<J;we++)Se=1&(re=B.__digit(we)-Se)>>>30,ce.__setDigit(we,1073741823&re);if(0!==Se)throw new Error("implementation bug");for(var oe=J;oe<Z;oe++)ce.__setDigit(oe,0);return ce}},{key:"__absoluteAnd",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,re=B.length,ce=Z.length,Se=ce;if(re<ce){Se=re;var we=B,oe=re;B=Z,re=ce,Z=we,ce=oe}var Ee=Se;null===J?J=new se(Ee,!1):Ee=J.length;for(var Pe=0;Pe<Se;Pe++)J.__setDigit(Pe,B.__digit(Pe)&Z.__digit(Pe));for(;Pe<Ee;Pe++)J.__setDigit(Pe,0);return J}},{key:"__absoluteAndNot",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,re=B.length,ce=Z.length,Se=ce;re<ce&&(Se=re);var we=re;null===J?J=new se(we,!1):we=J.length;for(var oe=0;oe<Se;oe++)J.__setDigit(oe,B.__digit(oe)&~Z.__digit(oe));for(;oe<re;oe++)J.__setDigit(oe,B.__digit(oe));for(;oe<we;oe++)J.__setDigit(oe,0);return J}},{key:"__absoluteOr",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,re=B.length,ce=Z.length,Se=ce;if(re<ce){Se=re;var we=B,oe=re;B=Z,re=ce,Z=we,ce=oe}var Ee=re;null===J?J=new se(Ee,!1):Ee=J.length;for(var Pe=0;Pe<Se;Pe++)J.__setDigit(Pe,B.__digit(Pe)|Z.__digit(Pe));for(;Pe<re;Pe++)J.__setDigit(Pe,B.__digit(Pe));for(;Pe<Ee;Pe++)J.__setDigit(Pe,0);return J}},{key:"__absoluteXor",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,re=B.length,ce=Z.length,Se=ce;if(re<ce){Se=re;var we=B,oe=re;B=Z,re=ce,Z=we,ce=oe}var Ee=re;null===J?J=new se(Ee,!1):Ee=J.length;for(var Pe=0;Pe<Se;Pe++)J.__setDigit(Pe,B.__digit(Pe)^Z.__digit(Pe));for(;Pe<re;Pe++)J.__setDigit(Pe,B.__digit(Pe));for(;Pe<Ee;Pe++)J.__setDigit(Pe,0);return J}},{key:"__absoluteCompare",value:function(B,Z){var J=B.length-Z.length;if(0!=J)return J;for(var re=B.length-1;0<=re&&B.__digit(re)===Z.__digit(re);)re--;return 0>re?0:B.__unsignedDigit(re)>Z.__unsignedDigit(re)?1:-1}},{key:"__multiplyAccumulate",value:function(B,Z,J,re){if(0!==Z){for(var ce=32767&Z,Se=Z>>>15,we=0,oe=0,Ee=0;Ee<B.length;Ee++,re++){var Pe=J.__digit(re),$e=B.__digit(Ee),Xe=32767&$e,De=$e>>>15,We=se.__imul(Xe,ce),st=se.__imul(Xe,Se),gt=se.__imul(De,ce);we=(Pe+=oe+We+we)>>>30,Pe&=1073741823,we+=(Pe+=((32767&st)<<15)+((32767&gt)<<15))>>>30,oe=se.__imul(De,Se)+(st>>>15)+(gt>>>15),J.__setDigit(re,1073741823&Pe)}for(;0!==we||0!==oe;re++){var Wt=J.__digit(re);Wt+=we+oe,oe=0,we=Wt>>>30,J.__setDigit(re,1073741823&Wt)}}}},{key:"__internalMultiplyAdd",value:function(B,Z,J,re,ce){for(var Se=J,we=0,oe=0;oe<re;oe++){var Ee=B.__digit(oe),Pe=se.__imul(32767&Ee,Z),$e=se.__imul(Ee>>>15,Z),Xe=Pe+((32767&$e)<<15)+we+Se;Se=Xe>>>30,we=$e>>>15,ce.__setDigit(oe,1073741823&Xe)}if(ce.length>re)for(ce.__setDigit(re++,Se+we);re<ce.length;)ce.__setDigit(re++,0);else if(Se+we!==0)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(B,Z){var J=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;null===J&&(J=new se(B.length,!1));for(var re=0,ce=2*B.length-1;0<=ce;ce-=2){var Se=(re<<15|B.__halfDigit(ce))>>>0,we=0|Se/Z;re=0|(Se=((re=0|Se%Z)<<15|B.__halfDigit(ce-1))>>>0)%Z,J.__setDigit(ce>>>1,we<<15|Se/Z)}return J}},{key:"__absoluteModSmall",value:function(B,Z){for(var re=0,ce=2*B.length-1;0<=ce;ce--)re=0|((re<<15|B.__halfDigit(ce))>>>0)%Z;return re}},{key:"__absoluteDivLarge",value:function(B,Z,J,re){var ce=Z.__halfDigitLength(),Se=Z.length,we=B.__halfDigitLength()-ce,oe=null;J&&(oe=new se(we+2>>>1,!1)).__initializeDigits();var Ee=new se(ce+2>>>1,!1);Ee.__initializeDigits();var Pe=se.__clz15(Z.__halfDigit(ce-1));0<Pe&&(Z=se.__specialLeftShift(Z,Pe,0));for(var $e=se.__specialLeftShift(B,Pe,1),Xe=Z.__halfDigit(ce-1),De=0,We=we;0<=We;We--){var st=32767,gt=$e.__halfDigit(We+ce);if(gt!==Xe){var dt=(gt<<15|$e.__halfDigit(We+ce-1))>>>0;st=0|dt/Xe;for(var Wt=0|dt%Xe,Qt=Z.__halfDigit(ce-2),mt=$e.__halfDigit(We+ce-2);se.__imul(st,Qt)>>>0>(Wt<<16|mt)>>>0&&(st--,!(32767<(Wt+=Xe))););}se.__internalMultiplyAdd(Z,st,0,Se,Ee);var Ft=$e.__inplaceSub(Ee,We,ce+1);0!==Ft&&(Ft=$e.__inplaceAdd(Z,We,ce),$e.__setHalfDigit(We+ce,32767&$e.__halfDigit(We+ce)+Ft),st--),J&&(1&We?De=st<<15:oe.__setDigit(We>>>1,De|st))}if(re)return $e.__inplaceRightShift(Pe),J?{quotient:oe,remainder:$e}:$e;if(J)return oe;throw new Error("unreachable")}},{key:"__clz15",value:function(B){return se.__clz30(B)-15}},{key:"__specialLeftShift",value:function(B,Z,J){var re=B.length,ce=new se(re+J,!1);if(0===Z){for(var Se=0;Se<re;Se++)ce.__setDigit(Se,B.__digit(Se));return 0<J&&ce.__setDigit(re,0),ce}for(var we,oe=0,Ee=0;Ee<re;Ee++)we=B.__digit(Ee),ce.__setDigit(Ee,1073741823&we<<Z|oe),oe=we>>>30-Z;return 0<J&&ce.__setDigit(re,oe),ce}},{key:"__leftShiftByAbsolute",value:function(B,Z){var J=se.__toShiftAmount(Z);if(0>J)throw new RangeError("BigInt too big");var re=0|J/30,ce=J%30,Se=B.length,we=0!==ce&&B.__digit(Se-1)>>>30-ce!=0,oe=Se+re+(we?1:0),Ee=new se(oe,B.sign);if(0===ce){for(var Pe=0;Pe<re;Pe++)Ee.__setDigit(Pe,0);for(;Pe<oe;Pe++)Ee.__setDigit(Pe,B.__digit(Pe-re))}else{for(var $e=0,Xe=0;Xe<re;Xe++)Ee.__setDigit(Xe,0);for(var De,We=0;We<Se;We++)De=B.__digit(We),Ee.__setDigit(We+re,1073741823&De<<ce|$e),$e=De>>>30-ce;if(we)Ee.__setDigit(Se+re,$e);else if(0!==$e)throw new Error("implementation bug")}return Ee.__trim()}},{key:"__rightShiftByAbsolute",value:function(B,Z){var J=B.length,re=B.sign,ce=se.__toShiftAmount(Z);if(0>ce)return se.__rightShiftByMaximum(re);var Se=0|ce/30,we=ce%30,oe=J-Se;if(0>=oe)return se.__rightShiftByMaximum(re);var Ee=!1;if(re)if(B.__digit(Se)&(1<<we)-1)Ee=!0;else for(var Pe=0;Pe<Se;Pe++)if(0!==B.__digit(Pe)){Ee=!0;break}Ee&&0===we&&!~B.__digit(J-1)&&oe++;var Xe=new se(oe,re);if(0===we){Xe.__setDigit(oe-1,0);for(var De=Se;De<J;De++)Xe.__setDigit(De-Se,B.__digit(De))}else{for(var We,st=B.__digit(Se)>>>we,gt=J-Se-1,dt=0;dt<gt;dt++)We=B.__digit(dt+Se+1),Xe.__setDigit(dt,1073741823&We<<30-we|st),st=We>>>we;Xe.__setDigit(gt,st)}return Ee&&(Xe=se.__absoluteAddOne(Xe,!0,Xe)),Xe.__trim()}},{key:"__rightShiftByMaximum",value:function(B){return B?se.__oneDigit(1,!0):se.__zero()}},{key:"__toShiftAmount",value:function(B){if(1<B.length)return-1;var Z=B.__unsignedDigit(0);return Z>se.__kMaxLengthBits?-1:Z}},{key:"__toPrimitive",value:function(B){var Z=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==i(B)||B.constructor===se)return B;if(typeof Symbol<"u"&&"symbol"===i(Symbol.toPrimitive)){var J=B[Symbol.toPrimitive];if(J){var re=J(Z);if("object"!==i(re))return re;throw new TypeError("Cannot convert object to primitive value")}}var ce=B.valueOf;if(ce){var Se=ce.call(B);if("object"!==i(Se))return Se}var we=B.toString;if(we){var oe=we.call(B);if("object"!==i(oe))return oe}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(B){return se.__isBigInt(B)?B:+B}},{key:"__isBigInt",value:function(B){return"object"===i(B)&&null!==B&&B.constructor===se}},{key:"__truncateToNBits",value:function(B,Z){for(var J=0|(B+29)/30,re=new se(J,Z.sign),ce=J-1,Se=0;Se<ce;Se++)re.__setDigit(Se,Z.__digit(Se));var we=Z.__digit(ce);if(B%30!=0){var oe=32-B%30;we=we<<oe>>>oe}return re.__setDigit(ce,we),re.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(B,Z,J){for(var ce,re=Math.min,Se=0|(B+29)/30,we=new se(Se,J),oe=0,Ee=Se-1,Pe=0,$e=re(Ee,Z.length);oe<$e;oe++)Pe=1&(ce=0-Z.__digit(oe)-Pe)>>>30,we.__setDigit(oe,1073741823&ce);for(;oe<Ee;oe++)we.__setDigit(oe,1073741823&-Pe);var Xe,De=Ee<Z.length?Z.__digit(Ee):0,We=B%30;if(0===We)Xe=0-De-Pe,Xe&=1073741823;else{var st=32-We,gt=1<<32-st;Xe=gt-(De=De<<st>>>st)-Pe,Xe&=gt-1}return we.__setDigit(Ee,Xe),we.__trim()}},{key:"__digitPow",value:function(B,Z){for(var J=1;0<Z;)1&Z&&(J*=B),Z>>>=1,B*=B;return J}},{key:"__isOneDigitInt",value:function(B){return(1073741823&B)===B}}]),se}(C(Array));return le.__kMaxLength=33554432,le.__kMaxLengthBits=le.__kMaxLength<<5,le.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],le.__kBitsPerCharTableShift=5,le.__kBitsPerCharTableMultiplier=1<<le.__kBitsPerCharTableShift,le.__kConversionChars=["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"],le.__kBitConversionBuffer=new ArrayBuffer(8),le.__kBitConversionDouble=new Float64Array(le.__kBitConversionBuffer),le.__kBitConversionInts=new Int32Array(le.__kBitConversionBuffer),le.__clz30=s?function(Y){return s(Y)-2}:function(Y){var ve=Math.LN2,Ie=Math.log;return 0===Y?30:0|29-(0|Ie(Y>>>0)/ve)},le.__imul=ge||function(Y,ve){return 0|Y*ve},le}()},70925:it=>{it.exports=function E(y,A,M){function D(S,O){if(!A[S]){if(!y[S]){if(b)return b(S,!0);var _=new Error("Cannot find module '"+S+"'");throw _.code="MODULE_NOT_FOUND",_}var U=A[S]={exports:{}};y[S][0].call(U.exports,function(w){return D(y[S][1][w]||w)},U,U.exports,E,y,A,M)}return A[S].exports}for(var b=void 0,f=0;f<M.length;f++)D(M[f]);return D}({1:[function(E,y,A){(function(M){"use strict";var b,D=M.MutationObserver||M.WebKitMutationObserver;if(D){var f=0,S=new D(w),O=M.document.createTextNode("");S.observe(O,{characterData:!0}),b=function(){O.data=f=++f%2}}else if(!M.setImmediate&&typeof M.MessageChannel<"u"){var C=new M.MessageChannel;C.port1.onmessage=w,b=function(){C.port2.postMessage(0)}}else b="document"in M&&"onreadystatechange"in M.document.createElement("script")?function(){var V=M.document.createElement("script");V.onreadystatechange=function(){w(),V.onreadystatechange=null,V.parentNode.removeChild(V),V=null},M.document.documentElement.appendChild(V)}:function(){setTimeout(w,0)};var _,U=[];function w(){_=!0;for(var V,x,z=U.length;z;){for(x=U,U=[],V=-1;++V<z;)x[V]();z=U.length}_=!1}y.exports=function R(V){1===U.push(V)&&!_&&b()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(E,y,A){"use strict";var M=E(1);function D(){}var b={},f=["REJECTED"],S=["FULFILLED"],O=["PENDING"];function C(ne){if("function"!=typeof ne)throw new TypeError("resolver must be a function");this.state=O,this.queue=[],this.outcome=void 0,ne!==D&&R(this,ne)}function _(ne,le,Y){this.promise=ne,"function"==typeof le&&(this.onFulfilled=le,this.callFulfilled=this.otherCallFulfilled),"function"==typeof Y&&(this.onRejected=Y,this.callRejected=this.otherCallRejected)}function U(ne,le,Y){M(function(){var ve;try{ve=le(Y)}catch(Ie){return b.reject(ne,Ie)}ve===ne?b.reject(ne,new TypeError("Cannot resolve promise with itself")):b.resolve(ne,ve)})}function w(ne){var le=ne&&ne.then;if(ne&&("object"==typeof ne||"function"==typeof ne)&&"function"==typeof le)return function(){le.apply(ne,arguments)}}function R(ne,le){var Y=!1;function ve(Ge){Y||(Y=!0,b.reject(ne,Ge))}function Ie(Ge){Y||(Y=!0,b.resolve(ne,Ge))}var se=V(function He(){le(Ie,ve)});"error"===se.status&&ve(se.value)}function V(ne,le){var Y={};try{Y.value=ne(le),Y.status="success"}catch(ve){Y.status="error",Y.value=ve}return Y}y.exports=C,C.prototype.catch=function(ne){return this.then(null,ne)},C.prototype.then=function(ne,le){if("function"!=typeof ne&&this.state===S||"function"!=typeof le&&this.state===f)return this;var Y=new this.constructor(D);return this.state!==O?U(Y,this.state===S?ne:le,this.outcome):this.queue.push(new _(Y,ne,le)),Y},_.prototype.callFulfilled=function(ne){b.resolve(this.promise,ne)},_.prototype.otherCallFulfilled=function(ne){U(this.promise,this.onFulfilled,ne)},_.prototype.callRejected=function(ne){b.reject(this.promise,ne)},_.prototype.otherCallRejected=function(ne){U(this.promise,this.onRejected,ne)},b.resolve=function(ne,le){var Y=V(w,le);if("error"===Y.status)return b.reject(ne,Y.value);var ve=Y.value;if(ve)R(ne,ve);else{ne.state=S,ne.outcome=le;for(var Ie=-1,He=ne.queue.length;++Ie<He;)ne.queue[Ie].callFulfilled(le)}return ne},b.reject=function(ne,le){ne.state=f,ne.outcome=le;for(var Y=-1,ve=ne.queue.length;++Y<ve;)ne.queue[Y].callRejected(le);return ne},C.resolve=function x(ne){return ne instanceof this?ne:b.resolve(new this(D),ne)},C.reject=function z(ne){var le=new this(D);return b.reject(le,ne)},C.all=function X(ne){var le=this;if("[object Array]"!==Object.prototype.toString.call(ne))return this.reject(new TypeError("must be an array"));var Y=ne.length,ve=!1;if(!Y)return this.resolve([]);for(var Ie=new Array(Y),He=0,se=-1,Ge=new this(D);++se<Y;)B(ne[se],se);return Ge;function B(Z,J){le.resolve(Z).then(function re(ce){Ie[J]=ce,++He===Y&&!ve&&(ve=!0,b.resolve(Ge,Ie))},function(ce){ve||(ve=!0,b.reject(Ge,ce))})}},C.race=function K(ne){var le=this;if("[object Array]"!==Object.prototype.toString.call(ne))return this.reject(new TypeError("must be an array"));var Y=ne.length,ve=!1;if(!Y)return this.resolve([]);for(var Ie=-1,He=new this(D);++Ie<Y;)le.resolve(ne[Ie]).then(function(B){ve||(ve=!0,b.resolve(He,B))},function(B){ve||(ve=!0,b.reject(He,B))});return He}},{1:1}],3:[function(E,y,A){(function(M){"use strict";"function"!=typeof M.Promise&&(M.Promise=E(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(E,y,A){"use strict";var M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(be){return typeof be}:function(be){return be&&"function"==typeof Symbol&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be};var f=function b(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}();function O(be,Qe){be=be||[],Qe=Qe||{};try{return new Blob(be,Qe)}catch(ht){if("TypeError"!==ht.name)throw ht;for(var at=new(typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder),yt=0;yt<be.length;yt+=1)at.append(be[yt]);return at.getBlob(Qe.type)}}typeof Promise>"u"&&E(3);var C=Promise;function _(be,Qe){Qe&&be.then(function(ke){Qe(null,ke)},function(ke){Qe(ke)})}function U(be,Qe,ke){"function"==typeof Qe&&be.then(Qe),"function"==typeof ke&&be.catch(ke)}function w(be){return"string"!=typeof be&&(console.warn(be+" used as a key, but it is not a string."),be=String(be)),be}function R(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var V="local-forage-detect-blob-support",x=void 0,z={},X=Object.prototype.toString,K="readonly",ne="readwrite";function le(be){for(var Qe=be.length,ke=new ArrayBuffer(Qe),at=new Uint8Array(ke),yt=0;yt<Qe;yt++)at[yt]=be.charCodeAt(yt);return ke}function ve(be){return"boolean"==typeof x?C.resolve(x):function Y(be){return new C(function(Qe){var ke=be.transaction(V,ne),at=O([""]);ke.objectStore(V).put(at,"key"),ke.onabort=function(yt){yt.preventDefault(),yt.stopPropagation(),Qe(!1)},ke.oncomplete=function(){var yt=navigator.userAgent.match(/Chrome\/(\d+)/),ht=navigator.userAgent.match(/Edge\//);Qe(ht||!yt||parseInt(yt[1],10)>=43)}}).catch(function(){return!1})}(be).then(function(Qe){return x=Qe})}function Ie(be){var Qe=z[be.name],ke={};ke.promise=new C(function(at,yt){ke.resolve=at,ke.reject=yt}),Qe.deferredOperations.push(ke),Qe.dbReady=Qe.dbReady?Qe.dbReady.then(function(){return ke.promise}):ke.promise}function He(be){var ke=z[be.name].deferredOperations.pop();if(ke)return ke.resolve(),ke.promise}function se(be,Qe){var at=z[be.name].deferredOperations.pop();if(at)return at.reject(Qe),at.promise}function Ge(be,Qe){return new C(function(ke,at){if(z[be.name]=z[be.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},be.db){if(!Qe)return ke(be.db);Ie(be),be.db.close()}var yt=[be.name];Qe&&yt.push(be.version);var ht=f.open.apply(f,yt);Qe&&(ht.onupgradeneeded=function(wt){var Bt=ht.result;try{Bt.createObjectStore(be.storeName),wt.oldVersion<=1&&Bt.createObjectStore(V)}catch(Xt){if("ConstraintError"!==Xt.name)throw Xt;console.warn('The database "'+be.name+'" has been upgraded from version '+wt.oldVersion+" to version "+wt.newVersion+', but the storage "'+be.storeName+'" already exists.')}}),ht.onerror=function(wt){wt.preventDefault(),at(ht.error)},ht.onsuccess=function(){var wt=ht.result;wt.onversionchange=function(Bt){Bt.target.close()},ke(wt),He(be)}})}function B(be){return Ge(be,!1)}function Z(be){return Ge(be,!0)}function J(be,Qe){if(!be.db)return!0;var ke=!be.db.objectStoreNames.contains(be.storeName),yt=be.version>be.db.version;if(be.version<be.db.version&&(be.version!==Qe&&console.warn('The database "'+be.name+"\" can't be downgraded from version "+be.db.version+" to version "+be.version+"."),be.version=be.db.version),yt||ke){if(ke){var ht=be.db.version+1;ht>be.version&&(be.version=ht)}return!0}return!1}function ce(be){return O([le(atob(be.data))],{type:be.type})}function Se(be){return be&&be.__local_forage_encoded_blob}function we(be){var Qe=this,ke=Qe._initReady().then(function(){var at=z[Qe._dbInfo.name];if(at&&at.dbReady)return at.dbReady});return U(ke,be,be),ke}function Ee(be,Qe,ke,at){void 0===at&&(at=1);try{var yt=be.db.transaction(be.storeName,Qe);ke(null,yt)}catch(ht){if(at>0&&(!be.db||"InvalidStateError"===ht.name||"NotFoundError"===ht.name))return C.resolve().then(function(){if(!be.db||"NotFoundError"===ht.name&&!be.db.objectStoreNames.contains(be.storeName)&&be.version<=be.db.version)return be.db&&(be.version=be.db.version+1),Z(be)}).then(function(){return function oe(be){Ie(be);for(var Qe=z[be.name],ke=Qe.forages,at=0;at<ke.length;at++){var yt=ke[at];yt._dbInfo.db&&(yt._dbInfo.db.close(),yt._dbInfo.db=null)}return be.db=null,B(be).then(function(ht){return be.db=ht,J(be)?Z(be):ht}).then(function(ht){be.db=Qe.db=ht;for(var wt=0;wt<ke.length;wt++)ke[wt]._dbInfo.db=ht}).catch(function(ht){throw se(be,ht),ht})}(be).then(function(){Ee(be,Qe,ke,at-1)})}).catch(ke);ke(ht)}}var Ft={_driver:"asyncStorage",_initStorage:function $e(be){var Qe=this,ke={db:null};if(be)for(var at in be)ke[at]=be[at];var yt=z[ke.name];yt||(z[ke.name]=yt={forages:[],db:null,dbReady:null,deferredOperations:[]}),yt.forages.push(Qe),Qe._initReady||(Qe._initReady=Qe.ready,Qe.ready=we);var ht=[];function wt(){return C.resolve()}for(var Bt=0;Bt<yt.forages.length;Bt++){var Xt=yt.forages[Bt];Xt!==Qe&&ht.push(Xt._initReady().catch(wt))}var tn=yt.forages.slice(0);return C.all(ht).then(function(){return ke.db=yt.db,B(ke)}).then(function(en){return ke.db=en,J(ke,Qe._defaultConfig.version)?Z(ke):en}).then(function(en){ke.db=yt.db=en,Qe._dbInfo=ke;for(var Cn=0;Cn<tn.length;Cn++){var Jn=tn[Cn];Jn!==Qe&&(Jn._dbInfo.db=ke.db,Jn._dbInfo.version=ke.version)}})},_support:function S(){try{if(!f||!f.open)return!1;var be=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),Qe="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!be||Qe)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}(),iterate:function De(be,Qe){var ke=this,at=new C(function(yt,ht){ke.ready().then(function(){Ee(ke._dbInfo,K,function(wt,Bt){if(wt)return ht(wt);try{var tn=Bt.objectStore(ke._dbInfo.storeName).openCursor(),en=1;tn.onsuccess=function(){var Cn=tn.result;if(Cn){var Jn=Cn.value;Se(Jn)&&(Jn=ce(Jn));var tr=be(Jn,Cn.key,en++);void 0!==tr?yt(tr):Cn.continue()}else yt()},tn.onerror=function(){ht(tn.error)}}catch(Cn){ht(Cn)}})}).catch(ht)});return _(at,Qe),at},getItem:function Xe(be,Qe){var ke=this;be=w(be);var at=new C(function(yt,ht){ke.ready().then(function(){Ee(ke._dbInfo,K,function(wt,Bt){if(wt)return ht(wt);try{var tn=Bt.objectStore(ke._dbInfo.storeName).get(be);tn.onsuccess=function(){var en=tn.result;void 0===en&&(en=null),Se(en)&&(en=ce(en)),yt(en)},tn.onerror=function(){ht(tn.error)}}catch(en){ht(en)}})}).catch(ht)});return _(at,Qe),at},setItem:function We(be,Qe,ke){var at=this;be=w(be);var yt=new C(function(ht,wt){var Bt;at.ready().then(function(){return Bt=at._dbInfo,"[object Blob]"===X.call(Qe)?ve(Bt.db).then(function(Xt){return Xt?Qe:function re(be){return new C(function(Qe,ke){var at=new FileReader;at.onerror=ke,at.onloadend=function(yt){var ht=btoa(yt.target.result||"");Qe({__local_forage_encoded_blob:!0,data:ht,type:be.type})},at.readAsBinaryString(be)})}(Qe)}):Qe}).then(function(Xt){Ee(at._dbInfo,ne,function(tn,en){if(tn)return wt(tn);try{var Cn=en.objectStore(at._dbInfo.storeName);null===Xt&&(Xt=void 0);var Jn=Cn.put(Xt,be);en.oncomplete=function(){void 0===Xt&&(Xt=null),ht(Xt)},en.onabort=en.onerror=function(){wt(Jn.error?Jn.error:Jn.transaction.error)}}catch(tr){wt(tr)}})}).catch(wt)});return _(yt,ke),yt},removeItem:function st(be,Qe){var ke=this;be=w(be);var at=new C(function(yt,ht){ke.ready().then(function(){Ee(ke._dbInfo,ne,function(wt,Bt){if(wt)return ht(wt);try{var tn=Bt.objectStore(ke._dbInfo.storeName).delete(be);Bt.oncomplete=function(){yt()},Bt.onerror=function(){ht(tn.error)},Bt.onabort=function(){ht(tn.error?tn.error:tn.transaction.error)}}catch(en){ht(en)}})}).catch(ht)});return _(at,Qe),at},clear:function gt(be){var Qe=this,ke=new C(function(at,yt){Qe.ready().then(function(){Ee(Qe._dbInfo,ne,function(ht,wt){if(ht)return yt(ht);try{var Xt=wt.objectStore(Qe._dbInfo.storeName).clear();wt.oncomplete=function(){at()},wt.onabort=wt.onerror=function(){yt(Xt.error?Xt.error:Xt.transaction.error)}}catch(tn){yt(tn)}})}).catch(yt)});return _(ke,be),ke},length:function dt(be){var Qe=this,ke=new C(function(at,yt){Qe.ready().then(function(){Ee(Qe._dbInfo,K,function(ht,wt){if(ht)return yt(ht);try{var Xt=wt.objectStore(Qe._dbInfo.storeName).count();Xt.onsuccess=function(){at(Xt.result)},Xt.onerror=function(){yt(Xt.error)}}catch(tn){yt(tn)}})}).catch(yt)});return _(ke,be),ke},key:function Wt(be,Qe){var ke=this,at=new C(function(yt,ht){be<0?yt(null):ke.ready().then(function(){Ee(ke._dbInfo,K,function(wt,Bt){if(wt)return ht(wt);try{var Xt=Bt.objectStore(ke._dbInfo.storeName),tn=!1,en=Xt.openKeyCursor();en.onsuccess=function(){var Cn=en.result;Cn?0===be||tn?yt(Cn.key):(tn=!0,Cn.advance(be)):yt(null)},en.onerror=function(){ht(en.error)}}catch(Cn){ht(Cn)}})}).catch(ht)});return _(at,Qe),at},keys:function Qt(be){var Qe=this,ke=new C(function(at,yt){Qe.ready().then(function(){Ee(Qe._dbInfo,K,function(ht,wt){if(ht)return yt(ht);try{var Xt=wt.objectStore(Qe._dbInfo.storeName).openKeyCursor(),tn=[];Xt.onsuccess=function(){var en=Xt.result;en?(tn.push(en.key),en.continue()):at(tn)},Xt.onerror=function(){yt(Xt.error)}}catch(en){yt(en)}})}).catch(yt)});return _(ke,be),ke},dropInstance:function mt(be,Qe){Qe=R.apply(this,arguments);var yt,ke=this.config();return(be="function"!=typeof be&&be||{}).name||(be.name=be.name||ke.name,be.storeName=be.storeName||ke.storeName),_(yt=be.name?(be.name===ke.name&&this._dbInfo.db?C.resolve(this._dbInfo.db):B(be).then(function(Bt){var Xt=z[be.name],tn=Xt.forages;Xt.db=Bt;for(var en=0;en<tn.length;en++)tn[en]._dbInfo.db=Bt;return Bt})).then(be.storeName?function(Bt){if(Bt.objectStoreNames.contains(be.storeName)){var Xt=Bt.version+1;Ie(be);var tn=z[be.name],en=tn.forages;Bt.close();for(var Cn=0;Cn<en.length;Cn++){var Jn=en[Cn];Jn._dbInfo.db=null,Jn._dbInfo.version=Xt}return new C(function(En,Wn){var Qr=f.open(be.name,Xt);Qr.onerror=function(jr){Qr.result.close(),Wn(jr)},Qr.onupgradeneeded=function(){Qr.result.deleteObjectStore(be.storeName)},Qr.onsuccess=function(){var jr=Qr.result;jr.close(),En(jr)}}).then(function(En){tn.db=En;for(var Wn=0;Wn<en.length;Wn++){var Qr=en[Wn];Qr._dbInfo.db=En,He(Qr._dbInfo)}}).catch(function(En){throw(se(be,En)||C.resolve()).catch(function(){}),En})}}:function(Bt){Ie(be);var Xt=z[be.name],tn=Xt.forages;Bt.close();for(var en=0;en<tn.length;en++)tn[en]._dbInfo.db=null;return new C(function(tr,En){var Wn=f.deleteDatabase(be.name);Wn.onerror=function(){var Qr=Wn.result;Qr&&Qr.close(),En(Wn.error)},Wn.onblocked=function(){console.warn('dropInstance blocked for database "'+be.name+'" until all open connections are closed')},Wn.onsuccess=function(){var Qr=Wn.result;Qr&&Qr.close(),tr(Qr)}}).then(function(tr){Xt.db=tr;for(var En=0;En<tn.length;En++)He(tn[En]._dbInfo)}).catch(function(tr){throw(se(be,tr)||C.resolve()).catch(function(){}),tr})}):C.reject("Invalid arguments"),Qe),yt}};var lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=/^~~local_forage_type~([^~]+)~/,Ue="__lfsc__:",Gt="arbf",Yt="blob",G="fl32",pt=Object.prototype.toString;function vt(be){var at,ht,wt,Bt,Xt,Qe=.75*be.length,ke=be.length,yt=0;"="===be[be.length-1]&&(Qe--,"="===be[be.length-2]&&Qe--);var tn=new ArrayBuffer(Qe),en=new Uint8Array(tn);for(at=0;at<ke;at+=4)ht=lt.indexOf(be[at]),wt=lt.indexOf(be[at+1]),Bt=lt.indexOf(be[at+2]),Xt=lt.indexOf(be[at+3]),en[yt++]=ht<<2|wt>>4,en[yt++]=(15&wt)<<4|Bt>>2,en[yt++]=(3&Bt)<<6|63&Xt;return tn}function Mt(be){var at,Qe=new Uint8Array(be),ke="";for(at=0;at<Qe.length;at+=3)ke+=lt[Qe[at]>>2],ke+=lt[(3&Qe[at])<<4|Qe[at+1]>>4],ke+=lt[(15&Qe[at+1])<<2|Qe[at+2]>>6],ke+=lt[63&Qe[at+2]];return Qe.length%3==2?ke=ke.substring(0,ke.length-1)+"=":Qe.length%3==1&&(ke=ke.substring(0,ke.length-2)+"=="),ke}var Hn={serialize:function cn(be,Qe){var ke="";if(be&&(ke=pt.call(be)),be&&("[object ArrayBuffer]"===ke||be.buffer&&"[object ArrayBuffer]"===pt.call(be.buffer))){var at,yt=Ue;be instanceof ArrayBuffer?(at=be,yt+=Gt):(at=be.buffer,"[object Int8Array]"===ke?yt+="si08":"[object Uint8Array]"===ke?yt+="ui08":"[object Uint8ClampedArray]"===ke?yt+="uic8":"[object Int16Array]"===ke?yt+="si16":"[object Uint16Array]"===ke?yt+="ur16":"[object Int32Array]"===ke?yt+="si32":"[object Uint32Array]"===ke?yt+="ui32":"[object Float32Array]"===ke?yt+=G:"[object Float64Array]"===ke?yt+="fl64":Qe(new Error("Failed to get type for BinaryArray"))),Qe(yt+Mt(at))}else if("[object Blob]"===ke){var ht=new FileReader;ht.onload=function(){var wt="~~local_forage_type~"+be.type+"~"+Mt(this.result);Qe(Ue+Yt+wt)},ht.readAsArrayBuffer(be)}else try{Qe(JSON.stringify(be))}catch(wt){console.error("Couldn't convert value into a JSON string: ",be),Qe(null,wt)}},deserialize:function kn(be){if(be.substring(0,9)!==Ue)return JSON.parse(be);var at,Qe=be.substring(13),ke=be.substring(9,13);if(ke===Yt&&ze.test(Qe)){var yt=Qe.match(ze);at=yt[1],Qe=Qe.substring(yt[0].length)}var ht=vt(Qe);switch(ke){case Gt:return ht;case Yt:return O([ht],{type:at});case"si08":return new Int8Array(ht);case"ui08":return new Uint8Array(ht);case"uic8":return new Uint8ClampedArray(ht);case"si16":return new Int16Array(ht);case"ur16":return new Uint16Array(ht);case"si32":return new Int32Array(ht);case"ui32":return new Uint32Array(ht);case G:return new Float32Array(ht);case"fl64":return new Float64Array(ht);default:throw new Error("Unkown type: "+ke)}},stringToBuffer:vt,bufferToString:Mt};function An(be,Qe,ke,at){be.executeSql("CREATE TABLE IF NOT EXISTS "+Qe.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],ke,at)}function Pr(be,Qe,ke,at,yt,ht){be.executeSql(ke,at,yt,function(wt,Bt){Bt.code===Bt.SYNTAX_ERR?wt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Qe.storeName],function(Xt,tn){tn.rows.length?ht(Xt,Bt):An(Xt,Qe,function(){Xt.executeSql(ke,at,yt,ht)},ht)},ht):ht(wt,Bt)},ht)}function _t(be,Qe,ke,at){var yt=this;be=w(be);var ht=new C(function(wt,Bt){yt.ready().then(function(){void 0===Qe&&(Qe=null);var Xt=Qe,tn=yt._dbInfo;tn.serializer.serialize(Qe,function(en,Cn){Cn?Bt(Cn):tn.db.transaction(function(Jn){Pr(Jn,tn,"INSERT OR REPLACE INTO "+tn.storeName+" (key, value) VALUES (?, ?)",[be,en],function(){wt(Xt)},function(tr,En){Bt(En)})},function(Jn){if(Jn.code===Jn.QUOTA_ERR){if(at>0)return void wt(_t.apply(yt,[be,Xt,ke,at-1]));Bt(Jn)}})})}).catch(Bt)});return _(ht,ke),ht}var zr={_driver:"webSQLStorage",_initStorage:function Vn(be){var Qe=this,ke={db:null};if(be)for(var at in be)ke[at]="string"!=typeof be[at]?be[at].toString():be[at];var yt=new C(function(ht,wt){try{ke.db=openDatabase(ke.name,String(ke.version),ke.description,ke.size)}catch(Bt){return wt(Bt)}ke.db.transaction(function(Bt){An(Bt,ke,function(){Qe._dbInfo=ke,ht()},function(Xt,tn){wt(tn)})},wt)});return ke.serializer=Hn,yt},_support:function At(){return"function"==typeof openDatabase}(),iterate:function Hr(be,Qe){var ke=this,at=new C(function(yt,ht){ke.ready().then(function(){var wt=ke._dbInfo;wt.db.transaction(function(Bt){Pr(Bt,wt,"SELECT * FROM "+wt.storeName,[],function(Xt,tn){for(var en=tn.rows,Cn=en.length,Jn=0;Jn<Cn;Jn++){var tr=en.item(Jn),En=tr.value;if(En&&(En=wt.serializer.deserialize(En)),void 0!==(En=be(En,tr.key,Jn+1)))return void yt(En)}yt()},function(Xt,tn){ht(tn)})})}).catch(ht)});return _(at,Qe),at},getItem:function Mi(be,Qe){var ke=this;be=w(be);var at=new C(function(yt,ht){ke.ready().then(function(){var wt=ke._dbInfo;wt.db.transaction(function(Bt){Pr(Bt,wt,"SELECT * FROM "+wt.storeName+" WHERE key = ? LIMIT 1",[be],function(Xt,tn){var en=tn.rows.length?tn.rows.item(0).value:null;en&&(en=wt.serializer.deserialize(en)),yt(en)},function(Xt,tn){ht(tn)})})}).catch(ht)});return _(at,Qe),at},setItem:function Ct(be,Qe,ke){return _t.apply(this,[be,Qe,ke,1])},removeItem:function Be(be,Qe){var ke=this;be=w(be);var at=new C(function(yt,ht){ke.ready().then(function(){var wt=ke._dbInfo;wt.db.transaction(function(Bt){Pr(Bt,wt,"DELETE FROM "+wt.storeName+" WHERE key = ?",[be],function(){yt()},function(Xt,tn){ht(tn)})})}).catch(ht)});return _(at,Qe),at},clear:function et(be){var Qe=this,ke=new C(function(at,yt){Qe.ready().then(function(){var ht=Qe._dbInfo;ht.db.transaction(function(wt){Pr(wt,ht,"DELETE FROM "+ht.storeName,[],function(){at()},function(Bt,Xt){yt(Xt)})})}).catch(yt)});return _(ke,be),ke},length:function $t(be){var Qe=this,ke=new C(function(at,yt){Qe.ready().then(function(){var ht=Qe._dbInfo;ht.db.transaction(function(wt){Pr(wt,ht,"SELECT COUNT(key) as c FROM "+ht.storeName,[],function(Bt,Xt){var tn=Xt.rows.item(0).c;at(tn)},function(Bt,Xt){yt(Xt)})})}).catch(yt)});return _(ke,be),ke},key:function yn(be,Qe){var ke=this,at=new C(function(yt,ht){ke.ready().then(function(){var wt=ke._dbInfo;wt.db.transaction(function(Bt){Pr(Bt,wt,"SELECT key FROM "+wt.storeName+" WHERE id = ? LIMIT 1",[be+1],function(Xt,tn){var en=tn.rows.length?tn.rows.item(0).key:null;yt(en)},function(Xt,tn){ht(tn)})})}).catch(ht)});return _(at,Qe),at},keys:function Un(be){var Qe=this,ke=new C(function(at,yt){Qe.ready().then(function(){var ht=Qe._dbInfo;ht.db.transaction(function(wt){Pr(wt,ht,"SELECT key FROM "+ht.storeName,[],function(Bt,Xt){for(var tn=[],en=0;en<Xt.rows.length;en++)tn.push(Xt.rows.item(en).key);at(tn)},function(Bt,Xt){yt(Xt)})})}).catch(yt)});return _(ke,be),ke},dropInstance:function Ar(be,Qe){Qe=R.apply(this,arguments);var ke=this.config();(be="function"!=typeof be&&be||{}).name||(be.name=be.name||ke.name,be.storeName=be.storeName||ke.storeName);var yt,at=this;return _(yt=be.name?new C(function(ht){var wt;wt=be.name===ke.name?at._dbInfo.db:openDatabase(be.name,"","",0),ht(be.storeName?{db:wt,storeNames:[be.storeName]}:function ur(be){return new C(function(Qe,ke){be.transaction(function(at){at.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(yt,ht){for(var wt=[],Bt=0;Bt<ht.rows.length;Bt++)wt.push(ht.rows.item(Bt).name);Qe({db:be,storeNames:wt})},function(yt,ht){ke(ht)})},function(at){ke(at)})})}(wt))}).then(function(ht){return new C(function(wt,Bt){ht.db.transaction(function(Xt){function tn(tr){return new C(function(En,Wn){Xt.executeSql("DROP TABLE IF EXISTS "+tr,[],function(){En()},function(Qr,jr){Wn(jr)})})}for(var en=[],Cn=0,Jn=ht.storeNames.length;Cn<Jn;Cn++)en.push(tn(ht.storeNames[Cn]));C.all(en).then(function(){wt()}).catch(function(tr){Bt(tr)})},function(Xt){Bt(Xt)})})}):C.reject("Invalid arguments"),Qe),yt}};function Ur(be,Qe){var ke=be.name+"/";return be.storeName!==Qe.storeName&&(ke+=be.storeName+"/"),ke}function vi(){return!function Nr(){var be="_localforage_support_test";try{return localStorage.setItem(be,!0),localStorage.removeItem(be),!1}catch{return!0}}()||localStorage.length>0}var Rt={_driver:"localStorageWrapper",_initStorage:function Et(be){var ke={};if(be)for(var at in be)ke[at]=be[at];return ke.keyPrefix=Ur(be,this._defaultConfig),vi()?(this._dbInfo=ke,ke.serializer=Hn,C.resolve()):C.reject()},_support:function yi(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function Jt(be,Qe){var ke=this,at=ke.ready().then(function(){for(var yt=ke._dbInfo,ht=yt.keyPrefix,wt=ht.length,Bt=localStorage.length,Xt=1,tn=0;tn<Bt;tn++){var en=localStorage.key(tn);if(0===en.indexOf(ht)){var Cn=localStorage.getItem(en);if(Cn&&(Cn=yt.serializer.deserialize(Cn)),void 0!==(Cn=be(Cn,en.substring(wt),Xt++)))return Cn}}});return _(at,Qe),at},getItem:function It(be,Qe){var ke=this;be=w(be);var at=ke.ready().then(function(){var yt=ke._dbInfo,ht=localStorage.getItem(yt.keyPrefix+be);return ht&&(ht=yt.serializer.deserialize(ht)),ht});return _(at,Qe),at},setItem:function je(be,Qe,ke){var at=this;be=w(be);var yt=at.ready().then(function(){void 0===Qe&&(Qe=null);var ht=Qe;return new C(function(wt,Bt){var Xt=at._dbInfo;Xt.serializer.serialize(Qe,function(tn,en){if(en)Bt(en);else try{localStorage.setItem(Xt.keyPrefix+be,tn),wt(ht)}catch(Cn){("QuotaExceededError"===Cn.name||"NS_ERROR_DOM_QUOTA_REACHED"===Cn.name)&&Bt(Cn),Bt(Cn)}})})});return _(yt,ke),yt},removeItem:function qt(be,Qe){var ke=this;be=w(be);var at=ke.ready().then(function(){localStorage.removeItem(ke._dbInfo.keyPrefix+be)});return _(at,Qe),at},clear:function rt(be){var Qe=this,ke=Qe.ready().then(function(){for(var at=Qe._dbInfo.keyPrefix,yt=localStorage.length-1;yt>=0;yt--){var ht=localStorage.key(yt);0===ht.indexOf(at)&&localStorage.removeItem(ht)}});return _(ke,be),ke},length:function nt(be){var ke=this.keys().then(function(at){return at.length});return _(ke,be),ke},key:function Bn(be,Qe){var ke=this,at=ke.ready().then(function(){var ht,yt=ke._dbInfo;try{ht=localStorage.key(be)}catch{ht=null}return ht&&(ht=ht.substring(yt.keyPrefix.length)),ht});return _(at,Qe),at},keys:function Yn(be){var Qe=this,ke=Qe.ready().then(function(){for(var at=Qe._dbInfo,yt=localStorage.length,ht=[],wt=0;wt<yt;wt++){var Bt=localStorage.key(wt);0===Bt.indexOf(at.keyPrefix)&&ht.push(Bt.substring(at.keyPrefix.length))}return ht});return _(ke,be),ke},dropInstance:function bt(be,Qe){if(Qe=R.apply(this,arguments),!(be="function"!=typeof be&&be||{}).name){var ke=this.config();be.name=be.name||ke.name,be.storeName=be.storeName||ke.storeName}var yt,at=this;return _(yt=be.name?new C(function(ht){ht(be.storeName?Ur(be,at._defaultConfig):be.name+"/")}).then(function(ht){for(var wt=localStorage.length-1;wt>=0;wt--){var Bt=localStorage.key(wt);0===Bt.indexOf(ht)&&localStorage.removeItem(Bt)}}):C.reject("Invalid arguments"),Qe),yt}},an=function(Qe,ke){return Qe===ke||"number"==typeof Qe&&"number"==typeof ke&&isNaN(Qe)&&isNaN(ke)},ln=function(Qe,ke){for(var at=Qe.length,yt=0;yt<at;){if(an(Qe[yt],ke))return!0;yt++}return!1},pn=Array.isArray||function(be){return"[object Array]"===Object.prototype.toString.call(be)},jn={},zn={},Me={INDEXEDDB:Ft,WEBSQL:zr,LOCALSTORAGE:Rt},Je=[Me.INDEXEDDB._driver,Me.WEBSQL._driver,Me.LOCALSTORAGE._driver],qe=["dropInstance"],xt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(qe),Pt={description:"",driver:Je.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function un(be,Qe){be[Qe]=function(){var ke=arguments;return be.ready().then(function(){return be[Qe].apply(be,ke)})}}function dn(){for(var be=1;be<arguments.length;be++){var Qe=arguments[be];if(Qe)for(var ke in Qe)Qe.hasOwnProperty(ke)&&(arguments[0][ke]=pn(Qe[ke])?Qe[ke].slice():Qe[ke])}return arguments[0]}var er=function(){function be(Qe){for(var ke in function D(be,Qe){if(!(be instanceof Qe))throw new TypeError("Cannot call a class as a function")}(this,be),Me)if(Me.hasOwnProperty(ke)){var at=Me[ke],yt=at._driver;this[ke]=yt,jn[yt]||this.defineDriver(at)}this._defaultConfig=dn({},Pt),this._config=dn({},this._defaultConfig,Qe),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return be.prototype.config=function(ke){if("object"===(typeof ke>"u"?"undefined":M(ke))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var at in ke){if("storeName"===at&&(ke[at]=ke[at].replace(/\W/g,"_")),"version"===at&&"number"!=typeof ke[at])return new Error("Database version must be a number.");this._config[at]=ke[at]}return!("driver"in ke)||!ke.driver||this.setDriver(this._config.driver)}return"string"==typeof ke?this._config[ke]:this._config},be.prototype.defineDriver=function(ke,at,yt){var ht=new C(function(wt,Bt){try{var Xt=ke._driver,tn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!ke._driver)return void Bt(tn);for(var en=xt.concat("_initStorage"),Cn=0,Jn=en.length;Cn<Jn;Cn++){var tr=en[Cn];if((!ln(qe,tr)||ke[tr])&&"function"!=typeof ke[tr])return void Bt(tn)}!function(){for(var ls=function(co){return function(){var Qs=new Error("Method "+co+" is not implemented by the current driver"),Yr=C.reject(Qs);return _(Yr,arguments[arguments.length-1]),Yr}},js=0,lo=qe.length;js<lo;js++){var cs=qe[js];ke[cs]||(ke[cs]=ls(cs))}}();var Qr=function(ls){jn[Xt]&&console.info("Redefining LocalForage driver: "+Xt),jn[Xt]=ke,zn[Xt]=ls,wt()};"_support"in ke?ke._support&&"function"==typeof ke._support?ke._support().then(Qr,Bt):Qr(!!ke._support):Qr(!0)}catch(jr){Bt(jr)}});return U(ht,at,yt),ht},be.prototype.driver=function(){return this._driver||null},be.prototype.getDriver=function(ke,at,yt){var ht=jn[ke]?C.resolve(jn[ke]):C.reject(new Error("Driver not found."));return U(ht,at,yt),ht},be.prototype.getSerializer=function(ke){var at=C.resolve(Hn);return U(at,ke),at},be.prototype.ready=function(ke){var at=this,yt=at._driverSet.then(function(){return null===at._ready&&(at._ready=at._initDriver()),at._ready});return U(yt,ke,ke),yt},be.prototype.setDriver=function(ke,at,yt){var ht=this;pn(ke)||(ke=[ke]);var wt=this._getSupportedDrivers(ke);function Bt(){ht._config.driver=ht.driver()}function Xt(Cn){return ht._extend(Cn),Bt(),ht._ready=ht._initStorage(ht._config),ht._ready}var en=null!==this._driverSet?this._driverSet.catch(function(){return C.resolve()}):C.resolve();return this._driverSet=en.then(function(){var Cn=wt[0];return ht._dbInfo=null,ht._ready=null,ht.getDriver(Cn).then(function(Jn){ht._driver=Jn._driver,Bt(),ht._wrapLibraryMethodsWithReady(),ht._initDriver=function tn(Cn){return function(){var Jn=0;return function tr(){for(;Jn<Cn.length;){var En=Cn[Jn];return Jn++,ht._dbInfo=null,ht._ready=null,ht.getDriver(En).then(Xt).catch(tr)}Bt();var Wn=new Error("No available storage method found.");return ht._driverSet=C.reject(Wn),ht._driverSet}()}}(wt)})}).catch(function(){Bt();var Cn=new Error("No available storage method found.");return ht._driverSet=C.reject(Cn),ht._driverSet}),U(this._driverSet,at,yt),this._driverSet},be.prototype.supports=function(ke){return!!zn[ke]},be.prototype._extend=function(ke){dn(this,ke)},be.prototype._getSupportedDrivers=function(ke){for(var at=[],yt=0,ht=ke.length;yt<ht;yt++){var wt=ke[yt];this.supports(wt)&&at.push(wt)}return at},be.prototype._wrapLibraryMethodsWithReady=function(){for(var ke=0,at=xt.length;ke<at;ke++)un(this,xt[ke])},be.prototype.createInstance=function(ke){return new be(ke)},be}(),Nn=new er;y.exports=Nn},{3:3}]},{},[4])(4)},94638:(it,ge,s)=>{"use strict";s.d(ge,{t:()=>E});var i=s(40352);class E extends i.B{constructor(A){super(),this._value=A}get value(){return this.getValue()}_subscribe(A){const M=super._subscribe(A);return!M.closed&&A.next(this._value),M}getValue(){const{hasError:A,thrownError:M,_value:D}=this;if(A)throw M;return this._throwIfClosed(),D}next(A){super.next(this._value=A)}}},33055:(it,ge,s)=>{"use strict";s.d(ge,{c:()=>f});var i=s(90380),E=s(38355),y=s(10248),A=s(68385),M=s(51108),D=s(80741),b=s(9684);let f=(()=>{class _{constructor(w){w&&(this._subscribe=w)}lift(w){const R=new _;return R.source=this,R.operator=w,R}subscribe(w,R,V){const x=function C(_){return _&&_ instanceof i.vU||function O(_){return _&&(0,D.T)(_.next)&&(0,D.T)(_.error)&&(0,D.T)(_.complete)}(_)&&(0,E.Uv)(_)}(w)?w:new i.Ms(w,R,V);return(0,b.Y)(()=>{const{operator:z,source:X}=this;x.add(z?z.call(x,X):X?this._subscribe(x):this._trySubscribe(x))}),x}_trySubscribe(w){try{return this._subscribe(w)}catch(R){w.error(R)}}forEach(w,R){return new(R=S(R))((V,x)=>{const z=new i.Ms({next:X=>{try{w(X)}catch(K){x(K),z.unsubscribe()}},error:x,complete:V});this.subscribe(z)})}_subscribe(w){var R;return null===(R=this.source)||void 0===R?void 0:R.subscribe(w)}[y.s](){return this}pipe(...w){return(0,A.m)(w)(this)}toPromise(w){return new(w=S(w))((R,V)=>{let x;this.subscribe(z=>x=z,z=>V(z),()=>R(x))})}}return _.create=U=>new _(U),_})();function S(_){var U;return null!==(U=_??M.$.Promise)&&void 0!==U?U:Promise}},52769:(it,ge,s)=>{"use strict";s.d(ge,{m:()=>y});var i=s(40352),E=s(96791);class y extends i.B{constructor(M=1/0,D=1/0,b=E.U){super(),this._bufferSize=M,this._windowTime=D,this._timestampProvider=b,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=D===1/0,this._bufferSize=Math.max(1,M),this._windowTime=Math.max(1,D)}next(M){const{isStopped:D,_buffer:b,_infiniteTimeWindow:f,_timestampProvider:S,_windowTime:O}=this;D||(b.push(M),!f&&b.push(S.now()+O)),this._trimBuffer(),super.next(M)}_subscribe(M){this._throwIfClosed(),this._trimBuffer();const D=this._innerSubscribe(M),{_infiniteTimeWindow:b,_buffer:f}=this,S=f.slice();for(let O=0;O<S.length&&!M.closed;O+=b?1:2)M.next(S[O]);return this._checkFinalizedStatuses(M),D}_trimBuffer(){const{_bufferSize:M,_timestampProvider:D,_buffer:b,_infiniteTimeWindow:f}=this,S=(f?1:2)*M;if(M<1/0&&S<b.length&&b.splice(0,b.length-S),!f){const O=D.now();let C=0;for(let _=1;_<b.length&&b[_]<=O;_+=2)C=_;C&&b.splice(0,C+1)}}}},40352:(it,ge,s)=>{"use strict";s.d(ge,{B:()=>b});var i=s(33055),E=s(38355);const A=(0,s(64783).L)(S=>function(){S(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var M=s(97434),D=s(9684);let b=(()=>{class S extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(C){const _=new f(this,this);return _.operator=C,_}_throwIfClosed(){if(this.closed)throw new A}next(C){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const _ of this.currentObservers)_.next(C)}})}error(C){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=C;const{observers:_}=this;for(;_.length;)_.shift().error(C)}})}complete(){(0,D.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:C}=this;for(;C.length;)C.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var C;return(null===(C=this.observers)||void 0===C?void 0:C.length)>0}_trySubscribe(C){return this._throwIfClosed(),super._trySubscribe(C)}_subscribe(C){return this._throwIfClosed(),this._checkFinalizedStatuses(C),this._innerSubscribe(C)}_innerSubscribe(C){const{hasError:_,isStopped:U,observers:w}=this;return _||U?E.Kn:(this.currentObservers=null,w.push(C),new E.yU(()=>{this.currentObservers=null,(0,M.o)(w,C)}))}_checkFinalizedStatuses(C){const{hasError:_,thrownError:U,isStopped:w}=this;_?C.error(U):w&&C.complete()}asObservable(){const C=new i.c;return C.source=this,C}}return S.create=(O,C)=>new f(O,C),S})();class f extends b{constructor(O,C){super(),this.destination=O,this.source=C}next(O){var C,_;null===(_=null===(C=this.destination)||void 0===C?void 0:C.next)||void 0===_||_.call(C,O)}error(O){var C,_;null===(_=null===(C=this.destination)||void 0===C?void 0:C.error)||void 0===_||_.call(C,O)}complete(){var O,C;null===(C=null===(O=this.destination)||void 0===O?void 0:O.complete)||void 0===C||C.call(O)}_subscribe(O){var C,_;return null!==(_=null===(C=this.source)||void 0===C?void 0:C.subscribe(O))&&void 0!==_?_:E.Kn}}},90380:(it,ge,s)=>{"use strict";s.d(ge,{Ms:()=>V,vU:()=>_});var i=s(80741),E=s(38355),y=s(51108),A=s(41904),M=s(1241);const D=S("C",void 0,void 0);function S(ne,le,Y){return{kind:ne,value:le,error:Y}}var O=s(45460),C=s(9684);class _ extends E.yU{constructor(le){super(),this.isStopped=!1,le?(this.destination=le,(0,E.Uv)(le)&&le.add(this)):this.destination=K}static create(le,Y,ve){return new V(le,Y,ve)}next(le){this.isStopped?X(function f(ne){return S("N",ne,void 0)}(le),this):this._next(le)}error(le){this.isStopped?X(function b(ne){return S("E",void 0,ne)}(le),this):(this.isStopped=!0,this._error(le))}complete(){this.isStopped?X(D,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(le){this.destination.next(le)}_error(le){try{this.destination.error(le)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const U=Function.prototype.bind;function w(ne,le){return U.call(ne,le)}class R{constructor(le){this.partialObserver=le}next(le){const{partialObserver:Y}=this;if(Y.next)try{Y.next(le)}catch(ve){x(ve)}}error(le){const{partialObserver:Y}=this;if(Y.error)try{Y.error(le)}catch(ve){x(ve)}else x(le)}complete(){const{partialObserver:le}=this;if(le.complete)try{le.complete()}catch(Y){x(Y)}}}class V extends _{constructor(le,Y,ve){let Ie;if(super(),(0,i.T)(le)||!le)Ie={next:le??void 0,error:Y??void 0,complete:ve??void 0};else{let He;this&&y.$.useDeprecatedNextContext?(He=Object.create(le),He.unsubscribe=()=>this.unsubscribe(),Ie={next:le.next&&w(le.next,He),error:le.error&&w(le.error,He),complete:le.complete&&w(le.complete,He)}):Ie=le}this.destination=new R(Ie)}}function x(ne){y.$.useDeprecatedSynchronousErrorHandling?(0,C.l)(ne):(0,A.m)(ne)}function X(ne,le){const{onStoppedNotification:Y}=y.$;Y&&O.f.setTimeout(()=>Y(ne,le))}const K={closed:!0,next:M.l,error:function z(ne){throw ne},complete:M.l}},38355:(it,ge,s)=>{"use strict";s.d(ge,{Kn:()=>D,yU:()=>M,Uv:()=>b});var i=s(80741);const y=(0,s(64783).L)(S=>function(C){S(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((_,U)=>`${U+1}) ${_.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=C});var A=s(97434);class M{constructor(O){this.initialTeardown=O,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let O;if(!this.closed){this.closed=!0;const{_parentage:C}=this;if(C)if(this._parentage=null,Array.isArray(C))for(const w of C)w.remove(this);else C.remove(this);const{initialTeardown:_}=this;if((0,i.T)(_))try{_()}catch(w){O=w instanceof y?w.errors:[w]}const{_finalizers:U}=this;if(U){this._finalizers=null;for(const w of U)try{f(w)}catch(R){O=O??[],R instanceof y?O=[...O,...R.errors]:O.push(R)}}if(O)throw new y(O)}}add(O){var C;if(O&&O!==this)if(this.closed)f(O);else{if(O instanceof M){if(O.closed||O._hasParent(this))return;O._addParent(this)}(this._finalizers=null!==(C=this._finalizers)&&void 0!==C?C:[]).push(O)}}_hasParent(O){const{_parentage:C}=this;return C===O||Array.isArray(C)&&C.includes(O)}_addParent(O){const{_parentage:C}=this;this._parentage=Array.isArray(C)?(C.push(O),C):C?[C,O]:O}_removeParent(O){const{_parentage:C}=this;C===O?this._parentage=null:Array.isArray(C)&&(0,A.o)(C,O)}remove(O){const{_finalizers:C}=this;C&&(0,A.o)(C,O),O instanceof M&&O._removeParent(this)}}M.EMPTY=(()=>{const S=new M;return S.closed=!0,S})();const D=M.EMPTY;function b(S){return S instanceof M||S&&"closed"in S&&(0,i.T)(S.remove)&&(0,i.T)(S.add)&&(0,i.T)(S.unsubscribe)}function f(S){(0,i.T)(S)?S():S.unsubscribe()}},51108:(it,ge,s)=>{"use strict";s.d(ge,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},58298:(it,ge,s)=>{"use strict";s.d(ge,{z:()=>O});var i=s(33055),E=s(36083),y=s(90249),A=s(13319),M=s(28648),D=s(53240),b=s(12366),f=s(91002),S=s(18431);function O(...U){const w=(0,D.lI)(U),R=(0,D.ms)(U),{args:V,keys:x}=(0,E.D)(U);if(0===V.length)return(0,y.H)([],w);const z=new i.c(function C(U,w,R=A.D){return V=>{_(w,()=>{const{length:x}=U,z=new Array(x);let X=x,K=x;for(let ne=0;ne<x;ne++)_(w,()=>{const le=(0,y.H)(U[ne],w);let Y=!1;le.subscribe((0,f._)(V,ve=>{z[ne]=ve,Y||(Y=!0,K--),K||V.next(R(z.slice()))},()=>{--X||V.complete()}))},V)},V)}}(V,w,x?X=>(0,b.e)(x,X):A.D));return R?z.pipe((0,M.I)(R)):z}function _(U,w,R){U?(0,S.N)(R,U,w):w()}},7546:(it,ge,s)=>{"use strict";s.d(ge,{x:()=>M});var i=s(89395),y=s(53240),A=s(90249);function M(...D){return function E(){return(0,i.U)(1)}()((0,A.H)(D,(0,y.lI)(D)))}},63424:(it,ge,s)=>{"use strict";s.d(ge,{v:()=>y});var i=s(33055),E=s(76560);function y(A){return new i.c(M=>{(0,E.Tg)(A()).subscribe(M)})}},58977:(it,ge,s)=>{"use strict";s.d(ge,{w:()=>E});const E=new(s(33055).c)(M=>M.complete())},67214:(it,ge,s)=>{"use strict";s.d(ge,{p:()=>f});var i=s(33055),E=s(36083),y=s(76560),A=s(53240),M=s(91002),D=s(28648),b=s(12366);function f(...S){const O=(0,A.ms)(S),{args:C,keys:_}=(0,E.D)(S),U=new i.c(w=>{const{length:R}=C;if(!R)return void w.complete();const V=new Array(R);let x=R,z=R;for(let X=0;X<R;X++){let K=!1;(0,y.Tg)(C[X]).subscribe((0,M._)(w,ne=>{K||(K=!0,z--),V[X]=ne},()=>x--,void 0,()=>{(!x||!K)&&(z||w.next(_?(0,b.e)(_,V):V),w.complete())}))}});return O?U.pipe((0,D.I)(O)):U}},90249:(it,ge,s)=>{"use strict";s.d(ge,{H:()=>Y});var i=s(76560),E=s(76459),y=s(97216);function A(ve,Ie=0){return(0,y.N)((He,se)=>{se.add(ve.schedule(()=>He.subscribe(se),Ie))})}var b=s(33055),S=s(91831),O=s(80741),C=s(18431);function U(ve,Ie){if(!ve)throw new Error("Iterable cannot be null");return new b.c(He=>{(0,C.N)(He,Ie,()=>{const se=ve[Symbol.asyncIterator]();(0,C.N)(He,Ie,()=>{se.next().then(Ge=>{Ge.done?He.complete():He.next(Ge.value)})},0,!0)})})}var w=s(90289),R=s(59356),V=s(17843),x=s(14551),z=s(92435),X=s(27285),K=s(83578);function Y(ve,Ie){return Ie?function le(ve,Ie){if(null!=ve){if((0,w.l)(ve))return function M(ve,Ie){return(0,i.Tg)(ve).pipe(A(Ie),(0,E.Q)(Ie))}(ve,Ie);if((0,V.X)(ve))return function f(ve,Ie){return new b.c(He=>{let se=0;return Ie.schedule(function(){se===ve.length?He.complete():(He.next(ve[se++]),He.closed||this.schedule())})})}(ve,Ie);if((0,R.y)(ve))return function D(ve,Ie){return(0,i.Tg)(ve).pipe(A(Ie),(0,E.Q)(Ie))}(ve,Ie);if((0,z.T)(ve))return U(ve,Ie);if((0,x.x)(ve))return function _(ve,Ie){return new b.c(He=>{let se;return(0,C.N)(He,Ie,()=>{se=ve[S.l](),(0,C.N)(He,Ie,()=>{let Ge,B;try{({value:Ge,done:B}=se.next())}catch(Z){return void He.error(Z)}B?He.complete():He.next(Ge)},0,!0)}),()=>(0,O.T)(se?.return)&&se.return()})}(ve,Ie);if((0,K.U)(ve))return function ne(ve,Ie){return U((0,K.C)(ve),Ie)}(ve,Ie)}throw(0,X.L)(ve)}(ve,Ie):(0,i.Tg)(ve)}},76560:(it,ge,s)=>{"use strict";s.d(ge,{Tg:()=>U});var i=s(47701),E=s(17843),y=s(59356),A=s(33055),M=s(90289),D=s(92435),b=s(27285),f=s(14551),S=s(83578),O=s(80741),C=s(41904),_=s(10248);function U(ne){if(ne instanceof A.c)return ne;if(null!=ne){if((0,M.l)(ne))return function w(ne){return new A.c(le=>{const Y=ne[_.s]();if((0,O.T)(Y.subscribe))return Y.subscribe(le);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ne);if((0,E.X)(ne))return function R(ne){return new A.c(le=>{for(let Y=0;Y<ne.length&&!le.closed;Y++)le.next(ne[Y]);le.complete()})}(ne);if((0,y.y)(ne))return function V(ne){return new A.c(le=>{ne.then(Y=>{le.closed||(le.next(Y),le.complete())},Y=>le.error(Y)).then(null,C.m)})}(ne);if((0,D.T)(ne))return z(ne);if((0,f.x)(ne))return function x(ne){return new A.c(le=>{for(const Y of ne)if(le.next(Y),le.closed)return;le.complete()})}(ne);if((0,S.U)(ne))return function X(ne){return z((0,S.C)(ne))}(ne)}throw(0,b.L)(ne)}function z(ne){return new A.c(le=>{(function K(ne,le){var Y,ve,Ie,He;return(0,i.sH)(this,void 0,void 0,function*(){try{for(Y=(0,i.xN)(ne);!(ve=yield Y.next()).done;)if(le.next(ve.value),le.closed)return}catch(se){Ie={error:se}}finally{try{ve&&!ve.done&&(He=Y.return)&&(yield He.call(Y))}finally{if(Ie)throw Ie.error}}le.complete()})})(ne,le).catch(Y=>le.error(Y))})}},80852:(it,ge,s)=>{"use strict";s.d(ge,{h:()=>D});var i=s(89395),E=s(76560),y=s(58977),A=s(53240),M=s(90249);function D(...b){const f=(0,A.lI)(b),S=(0,A.R0)(b,1/0),O=b;return O.length?1===O.length?(0,E.Tg)(O[0]):(0,i.U)(S)((0,M.H)(O,f)):y.w}},10047:(it,ge,s)=>{"use strict";s.d(ge,{of:()=>y});var i=s(53240),E=s(90249);function y(...A){const M=(0,i.lI)(A);return(0,E.H)(A,M)}},95212:(it,ge,s)=>{"use strict";s.d(ge,{$:()=>y});var i=s(33055),E=s(80741);function y(A,M){const D=(0,E.T)(A)?A:()=>A,b=f=>f.error(D());return new i.c(M?f=>M.schedule(b,0,f):b)}},68007:(it,ge,s)=>{"use strict";s.d(ge,{O:()=>M});var i=s(33055),E=s(19370),y=s(4480);function M(D=0,b,f=E.b){let S=-1;return null!=b&&((0,y.m)(b)?f=b:S=b),new i.c(O=>{let C=function A(D){return D instanceof Date&&!isNaN(D)}(D)?+D-f.now():D;C<0&&(C=0);let _=0;return f.schedule(function(){O.closed||(O.next(_++),0<=S?this.schedule(void 0,S):O.complete())},C)})}},91002:(it,ge,s)=>{"use strict";s.d(ge,{_:()=>E});var i=s(90380);function E(A,M,D,b,f){return new y(A,M,D,b,f)}class y extends i.vU{constructor(M,D,b,f,S,O){super(M),this.onFinalize=S,this.shouldUnsubscribe=O,this._next=D?function(C){try{D(C)}catch(_){M.error(_)}}:super._next,this._error=f?function(C){try{f(C)}catch(_){M.error(_)}finally{this.unsubscribe()}}:super._error,this._complete=b?function(){try{b()}catch(C){M.error(C)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var M;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:D}=this;super.unsubscribe(),!D&&(null===(M=this.onFinalize)||void 0===M||M.call(this))}}}},67102:(it,ge,s)=>{"use strict";s.d(ge,{Z:()=>b});var i=s(19370),E=s(97216),y=s(76560),A=s(91002),D=s(68007);function b(f,S=i.E){return function M(f){return(0,E.N)((S,O)=>{let C=!1,_=null,U=null,w=!1;const R=()=>{if(U?.unsubscribe(),U=null,C){C=!1;const x=_;_=null,O.next(x)}w&&O.complete()},V=()=>{U=null,w&&O.complete()};S.subscribe((0,A._)(O,x=>{C=!0,_=x,U||(0,y.Tg)(f(x)).subscribe(U=(0,A._)(O,R,V))},()=>{w=!0,(!C||!U||U.closed)&&O.complete()}))})}(()=>(0,D.O)(f,S))}},49283:(it,ge,s)=>{"use strict";s.d(ge,{W:()=>A});var i=s(76560),E=s(91002),y=s(97216);function A(M){return(0,y.N)((D,b)=>{let O,f=null,S=!1;f=D.subscribe((0,E._)(b,void 0,void 0,C=>{O=(0,i.Tg)(M(C,A(M)(D))),f?(f.unsubscribe(),f=null,O.subscribe(b)):S=!0})),S&&(f.unsubscribe(),f=null,O.subscribe(b))})}},82780:(it,ge,s)=>{"use strict";s.d(ge,{H:()=>y});var i=s(57616),E=s(80741);function y(A,M){return(0,E.T)(M)?(0,i.Z)(A,M,1):(0,i.Z)(A,1)}},48582:(it,ge,s)=>{"use strict";s.d(ge,{B:()=>A});var i=s(19370),E=s(97216),y=s(91002);function A(M,D=i.E){return(0,E.N)((b,f)=>{let S=null,O=null,C=null;const _=()=>{if(S){S.unsubscribe(),S=null;const w=O;O=null,f.next(w)}};function U(){const w=C+M,R=D.now();if(R<w)return S=this.schedule(void 0,w-R),void f.add(S);_()}b.subscribe((0,y._)(f,w=>{O=w,C=D.now(),S||(S=D.schedule(U,M),f.add(S))},()=>{_(),f.complete()},void 0,()=>{O=S=null}))})}},92785:(it,ge,s)=>{"use strict";s.d(ge,{c:()=>A});var i=s(19370),E=s(40676),y=s(68007);function A(M,D=i.E){const b=(0,y.O)(M,D);return(0,E.o)(()=>b)}},40676:(it,ge,s)=>{"use strict";s.d(ge,{o:()=>S});var i=s(7546),E=s(2267),y=s(97216),A=s(91002),M=s(1241),b=s(31941),f=s(57616);function S(O,C){return C?_=>(0,i.x)(C.pipe((0,E.s)(1),function D(){return(0,y.N)((O,C)=>{O.subscribe((0,A._)(C,M.l))})}()),_.pipe(S(O))):(0,f.Z)((_,U)=>O(_,U).pipe((0,E.s)(1),(0,b.u)(_)))}},8632:(it,ge,s)=>{"use strict";s.d(ge,{F:()=>A});var i=s(13319),E=s(97216),y=s(91002);function A(D,b=i.D){return D=D??M,(0,E.N)((f,S)=>{let O,C=!0;f.subscribe((0,y._)(S,_=>{const U=b(_);(C||!D(O,U))&&(C=!1,O=U,S.next(_))}))})}function M(D,b){return D===b}},79274:(it,ge,s)=>{"use strict";s.d(ge,{p:()=>y});var i=s(97216),E=s(91002);function y(A,M){return(0,i.N)((D,b)=>{let f=0;D.subscribe((0,E._)(b,S=>A.call(M,S,f++)&&b.next(S)))})}},99334:(it,ge,s)=>{"use strict";s.d(ge,{j:()=>E});var i=s(97216);function E(y){return(0,i.N)((A,M)=>{try{A.subscribe(M)}finally{M.add(y)}})}},54436:(it,ge,s)=>{"use strict";s.d(ge,{T:()=>y});var i=s(97216),E=s(91002);function y(A,M){return(0,i.N)((D,b)=>{let f=0;D.subscribe((0,E._)(b,S=>{b.next(A.call(M,S,f++))}))})}},31941:(it,ge,s)=>{"use strict";s.d(ge,{u:()=>E});var i=s(54436);function E(y){return(0,i.T)(()=>y)}},89395:(it,ge,s)=>{"use strict";s.d(ge,{U:()=>y});var i=s(57616),E=s(13319);function y(A=1/0){return(0,i.Z)(E.D,A)}},57616:(it,ge,s)=>{"use strict";s.d(ge,{Z:()=>f});var i=s(54436),E=s(76560),y=s(97216),A=s(18431),M=s(91002),b=s(80741);function f(S,O,C=1/0){return(0,b.T)(O)?f((_,U)=>(0,i.T)((w,R)=>O(_,w,U,R))((0,E.Tg)(S(_,U))),C):("number"==typeof O&&(C=O),(0,y.N)((_,U)=>function D(S,O,C,_,U,w,R,V){const x=[];let z=0,X=0,K=!1;const ne=()=>{K&&!x.length&&!z&&O.complete()},le=ve=>z<_?Y(ve):x.push(ve),Y=ve=>{w&&O.next(ve),z++;let Ie=!1;(0,E.Tg)(C(ve,X++)).subscribe((0,M._)(O,He=>{U?.(He),w?le(He):O.next(He)},()=>{Ie=!0},void 0,()=>{if(Ie)try{for(z--;x.length&&z<_;){const He=x.shift();R?(0,A.N)(O,R,()=>Y(He)):Y(He)}ne()}catch(He){O.error(He)}}))};return S.subscribe((0,M._)(O,le,()=>{K=!0,ne()})),()=>{V?.()}}(_,U,S,C)))}},76459:(it,ge,s)=>{"use strict";s.d(ge,{Q:()=>A});var i=s(18431),E=s(97216),y=s(91002);function A(M,D=0){return(0,E.N)((b,f)=>{b.subscribe((0,y._)(f,S=>(0,i.N)(f,M,()=>f.next(S),D),()=>(0,i.N)(f,M,()=>f.complete(),D),S=>(0,i.N)(f,M,()=>f.error(S),D)))})}},19001:(it,ge,s)=>{"use strict";s.d(ge,{u:()=>M});var i=s(76560),E=s(40352),y=s(90380),A=s(97216);function M(b={}){const{connector:f=(()=>new E.B),resetOnError:S=!0,resetOnComplete:O=!0,resetOnRefCountZero:C=!0}=b;return _=>{let U,w,R,V=0,x=!1,z=!1;const X=()=>{w?.unsubscribe(),w=void 0},K=()=>{X(),U=R=void 0,x=z=!1},ne=()=>{const le=U;K(),le?.unsubscribe()};return(0,A.N)((le,Y)=>{V++,!z&&!x&&X();const ve=R=R??f();Y.add(()=>{V--,0===V&&!z&&!x&&(w=D(ne,C))}),ve.subscribe(Y),!U&&V>0&&(U=new y.Ms({next:Ie=>ve.next(Ie),error:Ie=>{z=!0,X(),w=D(K,S,Ie),ve.error(Ie)},complete:()=>{x=!0,X(),w=D(K,O),ve.complete()}}),(0,i.Tg)(le).subscribe(U))})(_)}}function D(b,f,...S){if(!0===f)return void b();if(!1===f)return;const O=new y.Ms({next:()=>{O.unsubscribe(),b()}});return f(...S).subscribe(O)}},41298:(it,ge,s)=>{"use strict";s.d(ge,{t:()=>y});var i=s(52769),E=s(19001);function y(A,M,D){let b,f=!1;return A&&"object"==typeof A?({bufferSize:b=1/0,windowTime:M=1/0,refCount:f=!1,scheduler:D}=A):b=A??1/0,(0,E.u)({connector:()=>new i.m(b,M,D),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:f})}},98627:(it,ge,s)=>{"use strict";s.d(ge,{i:()=>E});var i=s(79274);function E(y){return(0,i.p)((A,M)=>y<=M)}},66210:(it,ge,s)=>{"use strict";s.d(ge,{Z:()=>A});var i=s(7546),E=s(53240),y=s(97216);function A(...M){const D=(0,E.lI)(M);return(0,y.N)((b,f)=>{(D?(0,i.x)(M,b,D):(0,i.x)(M,b)).subscribe(f)})}},22900:(it,ge,s)=>{"use strict";s.d(ge,{n:()=>A});var i=s(76560),E=s(97216),y=s(91002);function A(M,D){return(0,E.N)((b,f)=>{let S=null,O=0,C=!1;const _=()=>C&&!S&&f.complete();b.subscribe((0,y._)(f,U=>{S?.unsubscribe();let w=0;const R=O++;(0,i.Tg)(M(U,R)).subscribe(S=(0,y._)(f,V=>f.next(D?D(U,V,R,w++):V),()=>{S=null,_()}))},()=>{C=!0,_()}))})}},2267:(it,ge,s)=>{"use strict";s.d(ge,{s:()=>A});var i=s(58977),E=s(97216),y=s(91002);function A(M){return M<=0?()=>i.w:(0,E.N)((D,b)=>{let f=0;D.subscribe((0,y._)(b,S=>{++f<=M&&(b.next(S),M<=f&&b.complete())}))})}},19443:(it,ge,s)=>{"use strict";s.d(ge,{Q:()=>M});var i=s(97216),E=s(91002),y=s(76560),A=s(1241);function M(D){return(0,i.N)((b,f)=>{(0,y.Tg)(D).subscribe((0,E._)(f,()=>f.complete(),A.l)),!f.closed&&b.subscribe(f)})}},42567:(it,ge,s)=>{"use strict";s.d(ge,{M:()=>M});var i=s(80741),E=s(97216),y=s(91002),A=s(13319);function M(D,b,f){const S=(0,i.T)(D)||b||f?{next:D,error:b,complete:f}:D;return S?(0,E.N)((O,C)=>{var _;null===(_=S.subscribe)||void 0===_||_.call(S);let U=!0;O.subscribe((0,y._)(C,w=>{var R;null===(R=S.next)||void 0===R||R.call(S,w),C.next(w)},()=>{var w;U=!1,null===(w=S.complete)||void 0===w||w.call(S),C.complete()},w=>{var R;U=!1,null===(R=S.error)||void 0===R||R.call(S,w),C.error(w)},()=>{var w,R;U&&(null===(w=S.unsubscribe)||void 0===w||w.call(S)),null===(R=S.finalize)||void 0===R||R.call(S)}))}):A.D}},70229:(it,ge,s)=>{"use strict";s.d(ge,{R:()=>M});var i=s(38355);class E extends i.yU{constructor(b,f){super()}schedule(b,f=0){return this}}const y={setInterval(D,b,...f){const{delegate:S}=y;return S?.setInterval?S.setInterval(D,b,...f):setInterval(D,b,...f)},clearInterval(D){const{delegate:b}=y;return(b?.clearInterval||clearInterval)(D)},delegate:void 0};var A=s(97434);class M extends E{constructor(b,f){super(b,f),this.scheduler=b,this.work=f,this.pending=!1}schedule(b,f=0){if(this.closed)return this;this.state=b;const S=this.id,O=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(O,S,f)),this.pending=!0,this.delay=f,this.id=this.id||this.requestAsyncId(O,this.id,f),this}requestAsyncId(b,f,S=0){return y.setInterval(b.flush.bind(b,this),S)}recycleAsyncId(b,f,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return f;y.clearInterval(f)}execute(b,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(b,f);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,f){let O,S=!1;try{this.work(b)}catch(C){S=!0,O=C||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),O}unsubscribe(){if(!this.closed){const{id:b,scheduler:f}=this,{actions:S}=f;this.work=this.state=this.scheduler=null,this.pending=!1,(0,A.o)(S,this),null!=b&&(this.id=this.recycleAsyncId(f,b,null)),this.delay=null,super.unsubscribe()}}}},65951:(it,ge,s)=>{"use strict";s.d(ge,{q:()=>y});var i=s(96791);class E{constructor(M,D=E.now){this.schedulerActionCtor=M,this.now=D}schedule(M,D=0,b){return new this.schedulerActionCtor(this,M).schedule(b,D)}}E.now=i.U.now;class y extends E{constructor(M,D=E.now){super(M,D),this.actions=[],this._active=!1,this._scheduled=void 0}flush(M){const{actions:D}=this;if(this._active)return void D.push(M);let b;this._active=!0;do{if(b=M.execute(M.state,M.delay))break}while(M=D.shift());if(this._active=!1,b){for(;M=D.shift();)M.unsubscribe();throw b}}}},57318:(it,ge,s)=>{"use strict";s.d(ge,{X:()=>b});var i=s(70229),E=s(38355);const y={schedule(S){let O=requestAnimationFrame,C=cancelAnimationFrame;const{delegate:_}=y;_&&(O=_.requestAnimationFrame,C=_.cancelAnimationFrame);const U=O(w=>{C=void 0,S(w)});return new E.yU(()=>C?.(U))},requestAnimationFrame(...S){const{delegate:O}=y;return(O?.requestAnimationFrame||requestAnimationFrame)(...S)},cancelAnimationFrame(...S){const{delegate:O}=y;return(O?.cancelAnimationFrame||cancelAnimationFrame)(...S)},delegate:void 0};var M=s(65951);const b=new class D extends M.q{flush(O){this._active=!0;const C=this._scheduled;this._scheduled=void 0;const{actions:_}=this;let U;O=O||_.shift();do{if(U=O.execute(O.state,O.delay))break}while((O=_[0])&&O.id===C&&_.shift());if(this._active=!1,U){for(;(O=_[0])&&O.id===C&&_.shift();)O.unsubscribe();throw U}}}(class A extends i.R{constructor(O,C){super(O,C),this.scheduler=O,this.work=C}requestAsyncId(O,C,_=0){return null!==_&&_>0?super.requestAsyncId(O,C,_):(O.actions.push(this),O._scheduled||(O._scheduled=y.requestAnimationFrame(()=>O.flush(void 0))))}recycleAsyncId(O,C,_=0){if(null!=_&&_>0||null==_&&this.delay>0)return super.recycleAsyncId(O,C,_);O.actions.some(U=>U.id===C)||(y.cancelAnimationFrame(C),O._scheduled=void 0)}})},19370:(it,ge,s)=>{"use strict";s.d(ge,{E:()=>y,b:()=>A});var i=s(70229);const y=new(s(65951).q)(i.R),A=y},96791:(it,ge,s)=>{"use strict";s.d(ge,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},45460:(it,ge,s)=>{"use strict";s.d(ge,{f:()=>i});const i={setTimeout(E,y,...A){const{delegate:M}=i;return M?.setTimeout?M.setTimeout(E,y,...A):setTimeout(E,y,...A)},clearTimeout(E){const{delegate:y}=i;return(y?.clearTimeout||clearTimeout)(E)},delegate:void 0}},91831:(it,ge,s)=>{"use strict";s.d(ge,{l:()=>E});const E=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},10248:(it,ge,s)=>{"use strict";s.d(ge,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},28164:(it,ge,s)=>{"use strict";s.d(ge,{G:()=>E});const E=(0,s(64783).L)(y=>function(){y(this),this.name="EmptyError",this.message="no elements in sequence"})},53240:(it,ge,s)=>{"use strict";s.d(ge,{R0:()=>D,lI:()=>M,ms:()=>A});var i=s(80741),E=s(4480);function y(b){return b[b.length-1]}function A(b){return(0,i.T)(y(b))?b.pop():void 0}function M(b){return(0,E.m)(y(b))?b.pop():void 0}function D(b,f){return"number"==typeof y(b)?b.pop():f}},36083:(it,ge,s)=>{"use strict";s.d(ge,{D:()=>M});const{isArray:i}=Array,{getPrototypeOf:E,prototype:y,keys:A}=Object;function M(b){if(1===b.length){const f=b[0];if(i(f))return{args:f,keys:null};if(function D(b){return b&&"object"==typeof b&&E(b)===y}(f)){const S=A(f);return{args:S.map(O=>f[O]),keys:S}}}return{args:b,keys:null}}},97434:(it,ge,s)=>{"use strict";function i(E,y){if(E){const A=E.indexOf(y);0<=A&&E.splice(A,1)}}s.d(ge,{o:()=>i})},64783:(it,ge,s)=>{"use strict";function i(E){const A=E(M=>{Error.call(M),M.stack=(new Error).stack});return A.prototype=Object.create(Error.prototype),A.prototype.constructor=A,A}s.d(ge,{L:()=>i})},12366:(it,ge,s)=>{"use strict";function i(E,y){return E.reduce((A,M,D)=>(A[M]=y[D],A),{})}s.d(ge,{e:()=>i})},9684:(it,ge,s)=>{"use strict";s.d(ge,{Y:()=>y,l:()=>A});var i=s(51108);let E=null;function y(M){if(i.$.useDeprecatedSynchronousErrorHandling){const D=!E;if(D&&(E={errorThrown:!1,error:null}),M(),D){const{errorThrown:b,error:f}=E;if(E=null,b)throw f}}else M()}function A(M){i.$.useDeprecatedSynchronousErrorHandling&&E&&(E.errorThrown=!0,E.error=M)}},18431:(it,ge,s)=>{"use strict";function i(E,y,A,M=0,D=!1){const b=y.schedule(function(){A(),D?E.add(this.schedule(null,M)):this.unsubscribe()},M);if(E.add(b),!D)return b}s.d(ge,{N:()=>i})},13319:(it,ge,s)=>{"use strict";function i(E){return E}s.d(ge,{D:()=>i})},17843:(it,ge,s)=>{"use strict";s.d(ge,{X:()=>i});const i=E=>E&&"number"==typeof E.length&&"function"!=typeof E},92435:(it,ge,s)=>{"use strict";s.d(ge,{T:()=>E});var i=s(80741);function E(y){return Symbol.asyncIterator&&(0,i.T)(y?.[Symbol.asyncIterator])}},80741:(it,ge,s)=>{"use strict";function i(E){return"function"==typeof E}s.d(ge,{T:()=>i})},90289:(it,ge,s)=>{"use strict";s.d(ge,{l:()=>y});var i=s(10248),E=s(80741);function y(A){return(0,E.T)(A[i.s])}},14551:(it,ge,s)=>{"use strict";s.d(ge,{x:()=>y});var i=s(91831),E=s(80741);function y(A){return(0,E.T)(A?.[i.l])}},62644:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>y});var i=s(33055),E=s(80741);function y(A){return!!A&&(A instanceof i.c||(0,E.T)(A.lift)&&(0,E.T)(A.subscribe))}},59356:(it,ge,s)=>{"use strict";s.d(ge,{y:()=>E});var i=s(80741);function E(y){return(0,i.T)(y?.then)}},83578:(it,ge,s)=>{"use strict";s.d(ge,{C:()=>y,U:()=>A});var i=s(47701),E=s(80741);function y(M){return(0,i.AQ)(this,arguments,function*(){const b=M.getReader();try{for(;;){const{value:f,done:S}=yield(0,i.N3)(b.read());if(S)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(f)}}finally{b.releaseLock()}})}function A(M){return(0,E.T)(M?.getReader)}},4480:(it,ge,s)=>{"use strict";s.d(ge,{m:()=>E});var i=s(80741);function E(y){return y&&(0,i.T)(y.schedule)}},97216:(it,ge,s)=>{"use strict";s.d(ge,{N:()=>y,S:()=>E});var i=s(80741);function E(A){return(0,i.T)(A?.lift)}function y(A){return M=>{if(E(M))return M.lift(function(D){try{return A(D,this)}catch(b){this.error(b)}});throw new TypeError("Unable to lift unknown Observable type")}}},28648:(it,ge,s)=>{"use strict";s.d(ge,{I:()=>A});var i=s(54436);const{isArray:E}=Array;function A(M){return(0,i.T)(D=>function y(M,D){return E(D)?M(...D):M(D)}(M,D))}},1241:(it,ge,s)=>{"use strict";function i(){}s.d(ge,{l:()=>i})},68385:(it,ge,s)=>{"use strict";s.d(ge,{F:()=>E,m:()=>y});var i=s(13319);function E(...A){return y(A)}function y(A){return 0===A.length?i.D:1===A.length?A[0]:function(D){return A.reduce((b,f)=>f(b),D)}}},41904:(it,ge,s)=>{"use strict";s.d(ge,{m:()=>y});var i=s(51108),E=s(45460);function y(A){E.f.setTimeout(()=>{const{onUnhandledError:M}=i.$;if(!M)throw A;M(A)})}},27285:(it,ge,s)=>{"use strict";function i(E){return new TypeError(`You provided ${null!==E&&"object"==typeof E?"an invalid object":`'${E}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}s.d(ge,{L:()=>i})},24738:(it,ge,s)=>{"use strict";s.d(ge,{VV:()=>i});class i{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(A,M=!1){return this.onePassHasher.start().appendStr(A).end(M)}static hashAsciiStr(A,M=!1){return this.onePassHasher.start().appendAsciiStr(A).end(M)}static _hex(A){const M=i.hexChars,D=i.hexOut;let b,f,S,O;for(O=0;O<4;O+=1)for(f=8*O,b=A[O],S=0;S<8;S+=2)D[f+1+S]=M.charAt(15&b),b>>>=4,D[f+0+S]=M.charAt(15&b),b>>>=4;return D.join("")}static _md5cycle(A,M){let D=A[0],b=A[1],f=A[2],S=A[3];D+=(b&f|~b&S)+M[0]-680876936|0,D=(D<<7|D>>>25)+b|0,S+=(D&b|~D&f)+M[1]-389564586|0,S=(S<<12|S>>>20)+D|0,f+=(S&D|~S&b)+M[2]+606105819|0,f=(f<<17|f>>>15)+S|0,b+=(f&S|~f&D)+M[3]-1044525330|0,b=(b<<22|b>>>10)+f|0,D+=(b&f|~b&S)+M[4]-176418897|0,D=(D<<7|D>>>25)+b|0,S+=(D&b|~D&f)+M[5]+1200080426|0,S=(S<<12|S>>>20)+D|0,f+=(S&D|~S&b)+M[6]-1473231341|0,f=(f<<17|f>>>15)+S|0,b+=(f&S|~f&D)+M[7]-45705983|0,b=(b<<22|b>>>10)+f|0,D+=(b&f|~b&S)+M[8]+1770035416|0,D=(D<<7|D>>>25)+b|0,S+=(D&b|~D&f)+M[9]-1958414417|0,S=(S<<12|S>>>20)+D|0,f+=(S&D|~S&b)+M[10]-42063|0,f=(f<<17|f>>>15)+S|0,b+=(f&S|~f&D)+M[11]-1990404162|0,b=(b<<22|b>>>10)+f|0,D+=(b&f|~b&S)+M[12]+1804603682|0,D=(D<<7|D>>>25)+b|0,S+=(D&b|~D&f)+M[13]-40341101|0,S=(S<<12|S>>>20)+D|0,f+=(S&D|~S&b)+M[14]-1502002290|0,f=(f<<17|f>>>15)+S|0,b+=(f&S|~f&D)+M[15]+1236535329|0,b=(b<<22|b>>>10)+f|0,D+=(b&S|f&~S)+M[1]-165796510|0,D=(D<<5|D>>>27)+b|0,S+=(D&f|b&~f)+M[6]-1069501632|0,S=(S<<9|S>>>23)+D|0,f+=(S&b|D&~b)+M[11]+643717713|0,f=(f<<14|f>>>18)+S|0,b+=(f&D|S&~D)+M[0]-373897302|0,b=(b<<20|b>>>12)+f|0,D+=(b&S|f&~S)+M[5]-701558691|0,D=(D<<5|D>>>27)+b|0,S+=(D&f|b&~f)+M[10]+38016083|0,S=(S<<9|S>>>23)+D|0,f+=(S&b|D&~b)+M[15]-660478335|0,f=(f<<14|f>>>18)+S|0,b+=(f&D|S&~D)+M[4]-405537848|0,b=(b<<20|b>>>12)+f|0,D+=(b&S|f&~S)+M[9]+568446438|0,D=(D<<5|D>>>27)+b|0,S+=(D&f|b&~f)+M[14]-1019803690|0,S=(S<<9|S>>>23)+D|0,f+=(S&b|D&~b)+M[3]-187363961|0,f=(f<<14|f>>>18)+S|0,b+=(f&D|S&~D)+M[8]+1163531501|0,b=(b<<20|b>>>12)+f|0,D+=(b&S|f&~S)+M[13]-1444681467|0,D=(D<<5|D>>>27)+b|0,S+=(D&f|b&~f)+M[2]-51403784|0,S=(S<<9|S>>>23)+D|0,f+=(S&b|D&~b)+M[7]+1735328473|0,f=(f<<14|f>>>18)+S|0,b+=(f&D|S&~D)+M[12]-1926607734|0,b=(b<<20|b>>>12)+f|0,D+=(b^f^S)+M[5]-378558|0,D=(D<<4|D>>>28)+b|0,S+=(D^b^f)+M[8]-2022574463|0,S=(S<<11|S>>>21)+D|0,f+=(S^D^b)+M[11]+1839030562|0,f=(f<<16|f>>>16)+S|0,b+=(f^S^D)+M[14]-35309556|0,b=(b<<23|b>>>9)+f|0,D+=(b^f^S)+M[1]-1530992060|0,D=(D<<4|D>>>28)+b|0,S+=(D^b^f)+M[4]+1272893353|0,S=(S<<11|S>>>21)+D|0,f+=(S^D^b)+M[7]-155497632|0,f=(f<<16|f>>>16)+S|0,b+=(f^S^D)+M[10]-1094730640|0,b=(b<<23|b>>>9)+f|0,D+=(b^f^S)+M[13]+681279174|0,D=(D<<4|D>>>28)+b|0,S+=(D^b^f)+M[0]-358537222|0,S=(S<<11|S>>>21)+D|0,f+=(S^D^b)+M[3]-722521979|0,f=(f<<16|f>>>16)+S|0,b+=(f^S^D)+M[6]+76029189|0,b=(b<<23|b>>>9)+f|0,D+=(b^f^S)+M[9]-640364487|0,D=(D<<4|D>>>28)+b|0,S+=(D^b^f)+M[12]-421815835|0,S=(S<<11|S>>>21)+D|0,f+=(S^D^b)+M[15]+530742520|0,f=(f<<16|f>>>16)+S|0,b+=(f^S^D)+M[2]-995338651|0,b=(b<<23|b>>>9)+f|0,D+=(f^(b|~S))+M[0]-198630844|0,D=(D<<6|D>>>26)+b|0,S+=(b^(D|~f))+M[7]+1126891415|0,S=(S<<10|S>>>22)+D|0,f+=(D^(S|~b))+M[14]-1416354905|0,f=(f<<15|f>>>17)+S|0,b+=(S^(f|~D))+M[5]-57434055|0,b=(b<<21|b>>>11)+f|0,D+=(f^(b|~S))+M[12]+1700485571|0,D=(D<<6|D>>>26)+b|0,S+=(b^(D|~f))+M[3]-1894986606|0,S=(S<<10|S>>>22)+D|0,f+=(D^(S|~b))+M[10]-1051523|0,f=(f<<15|f>>>17)+S|0,b+=(S^(f|~D))+M[1]-2054922799|0,b=(b<<21|b>>>11)+f|0,D+=(f^(b|~S))+M[8]+1873313359|0,D=(D<<6|D>>>26)+b|0,S+=(b^(D|~f))+M[15]-30611744|0,S=(S<<10|S>>>22)+D|0,f+=(D^(S|~b))+M[6]-1560198380|0,f=(f<<15|f>>>17)+S|0,b+=(S^(f|~D))+M[13]+1309151649|0,b=(b<<21|b>>>11)+f|0,D+=(f^(b|~S))+M[4]-145523070|0,D=(D<<6|D>>>26)+b|0,S+=(b^(D|~f))+M[11]-1120210379|0,S=(S<<10|S>>>22)+D|0,f+=(D^(S|~b))+M[2]+718787259|0,f=(f<<15|f>>>17)+S|0,b+=(S^(f|~D))+M[9]-343485551|0,b=(b<<21|b>>>11)+f|0,A[0]=D+A[0]|0,A[1]=b+A[1]|0,A[2]=f+A[2]|0,A[3]=S+A[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(i.stateIdentity),this}appendStr(A){const M=this._buffer8,D=this._buffer32;let f,S,b=this._bufferLength;for(S=0;S<A.length;S+=1){if(f=A.charCodeAt(S),f<128)M[b++]=f;else if(f<2048)M[b++]=192+(f>>>6),M[b++]=63&f|128;else if(f<55296||f>56319)M[b++]=224+(f>>>12),M[b++]=f>>>6&63|128,M[b++]=63&f|128;else{if(f=1024*(f-55296)+(A.charCodeAt(++S)-56320)+65536,f>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");M[b++]=240+(f>>>18),M[b++]=f>>>12&63|128,M[b++]=f>>>6&63|128,M[b++]=63&f|128}b>=64&&(this._dataLength+=64,i._md5cycle(this._state,D),b-=64,D[0]=D[16])}return this._bufferLength=b,this}appendAsciiStr(A){const M=this._buffer8,D=this._buffer32;let f,b=this._bufferLength,S=0;for(;;){for(f=Math.min(A.length-S,64-b);f--;)M[b++]=A.charCodeAt(S++);if(b<64)break;this._dataLength+=64,i._md5cycle(this._state,D),b=0}return this._bufferLength=b,this}appendByteArray(A){const M=this._buffer8,D=this._buffer32;let f,b=this._bufferLength,S=0;for(;;){for(f=Math.min(A.length-S,64-b);f--;)M[b++]=A[S++];if(b<64)break;this._dataLength+=64,i._md5cycle(this._state,D),b=0}return this._bufferLength=b,this}getState(){const A=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[A[0],A[1],A[2],A[3]]}}setState(A){const M=A.buffer,D=A.state,b=this._state;let f;for(this._dataLength=A.length,this._bufferLength=A.buflen,b[0]=D[0],b[1]=D[1],b[2]=D[2],b[3]=D[3],f=0;f<M.length;f+=1)this._buffer8[f]=M.charCodeAt(f)}end(A=!1){const M=this._bufferLength,D=this._buffer8,b=this._buffer32,f=1+(M>>2);this._dataLength+=M;const S=8*this._dataLength;if(D[M]=128,D[M+1]=D[M+2]=D[M+3]=0,b.set(i.buffer32Identity.subarray(f),f),M>55&&(i._md5cycle(this._state,b),b.set(i.buffer32Identity)),S<=4294967295)b[14]=S;else{const O=S.toString(16).match(/(.*?)(.{0,8})$/);if(null===O)return;const C=parseInt(O[2],16),_=parseInt(O[1],16)||0;b[14]=C,b[15]=_}return i._md5cycle(this._state,b),A?this._state:i._hex(this._state)}}if(i.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),i.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i.hexChars="0123456789abcdef",i.hexOut=[],i.onePassHasher=new i,"5d41402abc4b2a76b9719d911017c592"!==i.hashStr("hello"))throw new Error("Md5 self test failed.")},65279:(it,ge,s)=>{"use strict";s.d(ge,{J:()=>i,Y:()=>E});class i{constructor(){this.areaCode="",this.countryCode="",this.national="",this.display=""}}const E=y=>{const A=new i;if(y&&(A.areaCode=`${y.phone_area_code||y.phoneAreaCode||y.area_code||y.areaCode||""}`,A.countryCode=`${y.phone_country_code||y.phoneCountryCode||y.country_code||y.countryCode||""}`,A.national=`${y.phone_number||y.phoneNumber||y.national||""}`,A.display=`${y.display||""}`,!A?.display)){let M="";A?.countryCode&&(M=`+${A.countryCode} `),A?.areaCode&&(M=`${M}${A.areaCode}`),A?.national&&(M=`${M}${A.national}`),A.display=M}return A}},66143:(it,ge,s)=>{"use strict";s.d(ge,{s:()=>O});var i=s(55685),E=s(22900),y=s(54436),A=s(60602),M=s(78766),D=s(19152);class b{constructor(){this.accessToken="",this.expiresIn=0,this.expiresAt=new Date(0)}static fromJson(_){let U=null;return _&&(U=new b,U.accessToken=_.access_token||_.accessToken,U.expiresIn=_.expires_in||_.expiresIn,U.expiresAt=D.J.parseApiDate("expires_at","expiresAt",_)||new Date(0)),U}}var f=s(19076),S=s(9589);let O=(()=>{class C{constructor(){this.http=(0,i.WQX)(A.Qq)}signIn(U,w){const R=new A.Nl;return this.http.post((0,M.G6)("oauth/bridge/basic",!0),{id:U,secret:w},{params:R,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,E.n)(this.parseSignInResults.bind(this)),(0,y.T)(V=>V))}signUp(U,w,R,V){const x=(new A.Nl).set("user",w||"").set("email",U).set("pw",R||"").set("locale",V||"en-US");return this.http.post((0,M.G6)("register"),{},{params:x,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,y.T)(z=>f.Fv.fromJson(z)))}signUpInBackground(U,w,R,V){let x=(new A.Nl).set("email",U).set("locale",V||"en-US");return w&&(x=x.set("user",w)),R&&(x=x.set("pw",R)),this.http.get((0,M.G6)("register/direct"),{params:x}).pipe((0,y.T)(z=>f.Fv.fromJson(z)))}signInWithFacebook(U,w){const R=new A.Nl;return this.http.post((0,M.G6)("oauth/bridge/facebook2",!0),{id:U,token:w},{params:R,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,E.n)(this.parseSignInResults.bind(this)),(0,y.T)(V=>V))}signInWithApple(U,w){const R=new A.Nl;return this.http.post((0,M.G6)("oauth/bridge/apple",!0),{secret:U,fullname:w},{params:R,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,E.n)(this.parseSignInResults.bind(this)),(0,y.T)(V=>V))}signInWithGoogle(U){const w=new A.Nl;return this.http.post((0,M.G6)("oauth/bridge/google",!0),{secret:U},{params:w,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,E.n)(this.parseSignInResults.bind(this)),(0,y.T)(R=>R))}getUserInfoFromToken(U){const w=(new A.Nl).set("oa",U);return this.http.post((0,M.G6)("oauth/bridge/token",!0),{},{params:w,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,E.n)(R=>{const V=f.Fv.fromJson(R)||new f.Fv;return this.getAccessToken(V.oauth.publicId,V.oauth.secret).pipe((0,y.T)(x=>(V.oauth.token=x,V)))}))}getAccessToken(U,w){const R=(new A.Nl).set("grant_type","client_credentials").set("client_id",U).set("client_secret",w);return this.http.get((0,M.G6)("oauth/v2/token",!0),{params:R,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,y.T)(V=>b.fromJson(V)))}verifyUserDetails(U){const w=(new A.Nl).set("email",U);return this.http.get((0,M.G6)("oauth/validate",!0),{responseType:"json",params:w}).pipe((0,y.T)(R=>S.uC.fromJson(R)))}parseSignInResults(U){const w=f.Fv.fromJson(U)||new f.Fv;return this.getAccessToken(w.oauth.publicId,w.oauth.secret).pipe((0,y.T)(R=>(w.oauth.token=R,w)))}static{this.\u0275fac=function(w){return new(w||C)}}static{this.\u0275prov=i.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},28249:(it,ge,s)=>{"use strict";s.d(ge,{P:()=>R});var i=s(28505),E=s(19076),y=s(54436),A=s(8632),M=s(60437),D=s(70992),b=s(71780),O=s(55696),C=s(19152),_=s(16711),U=s(55685),w=s(42096);let R=(()=>{class V extends i.XK{constructor(z){super(z),this.store=z}get cookieSession(){return{pid:this.getValue().cookiePid||null,sec:this.getValue().cookieSec||null}}get lastTokenRefresh(){return this.getValue()?.lastTokenRefresh||new Date(0)}get sessionId(){return`${this.getValue()?.sessionId||""}`}get shouldRefreshUser(){const X=C.J.parseApiDate("lastRefresh","lastRefresh",{lastRefresh:this.lastTokenRefresh});if(X){const K=new Date,ne=function S(V,x){(0,b.A)(2,arguments);var z=(0,M.A)(x);return(0,D.A)(V,6e4*z)}(X,1);return(0,O.A)(ne,K)}return!0}get user(){return E.Fv.fromJson(this.getValue().user)}get oauth(){const z=this.user;return z&&z.oauth?z.oauth:null}get token(){const z=this.oauth;return z&&z.token?z.token:null}get serverType(){return this.getValue().serverType||""}get userTokenExpirationDate(){return C.J.parseApiDate("expires_at","expiresAt",this.token)||new Date(0)}get isSessionActive(){return(0,O.A)(new Date,this.userTokenExpirationDate)}get accessToken(){const z=this.token;return z&&z.accessToken?z.accessToken:null}get isLoggedIn(){return!(!this.accessToken||this.serverType!==_.c.api.url)}selectUser(){return this.select().pipe((0,y.T)(z=>z.user),(0,A.F)((z,X)=>JSON.stringify(z)===JSON.stringify(X)))}selectUserID(){return this.select().pipe((0,y.T)(z=>z.user&&z.user.id?z.user.id:""),(0,A.F)((z,X)=>z===X))}selectIsLoggedIn(){return this.select().pipe((0,y.T)(z=>!!(z.user&&z.user.oauth&&z.user.oauth.token&&z.user.oauth.token.accessToken&&z.serverType===_.c.api.url)),(0,A.F)((z,X)=>z===X))}selectAuthGoogleSDKLoaded(){return this.select().pipe((0,y.T)(z=>!!z.signingInWithGoogleSDKLoaded),(0,A.F)())}selectSigningInWithGoogle(){return this.select().pipe((0,y.T)(z=>!(!z.signingInWithGoogle||!z.signingInWithGoogleStep2)),(0,A.F)())}selectSigningInWithApple(){return this.select().pipe((0,y.T)(z=>!(!z.signingInWithApple||!z.signingInWithAppleStep2)),(0,A.F)())}selectSigningInWithFacebook(){return this.select().pipe((0,y.T)(z=>!(!z.signingInWithFacebook||!z.signingInWithFacebookStep2)),(0,A.F)())}selectSignWithGoogleError(){return this.select().pipe((0,y.T)(z=>z.signWithGoogleError||z.signWithGoogleStep2Error),(0,A.F)((z,X)=>z===X))}selectSignWithAppleError(){return this.select().pipe((0,y.T)(z=>z.signWithAppleError||z.signWithAppleStep2Error),(0,A.F)((z,X)=>z===X))}selectSignWithFacebookError(){return this.select().pipe((0,y.T)(z=>z.signWithFacebookError||z.signWithFacebookStep2Error),(0,A.F)((z,X)=>z===X))}selectSessionId(){return this.select().pipe((0,y.T)(z=>z.sessionId||null),(0,A.F)())}static{this.\u0275fac=function(X){return new(X||V)(U.KVO(w.s))}}static{this.\u0275prov=U.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}}return V})()},1819:(it,ge,s)=>{"use strict";s.d(ge,{M:()=>Ft});var i=s(19076),E=s(16711),y=s(28505),A=s(38355),M=s(22900),D=s(54436),b=s(49283),f=s(95212),S=s(42567),O=s(10047),C=s(58977),_=s(3898),U=s(23734),w=s(60437),R=s(10589),V=s(71780);function x(At,lt){(0,V.A)(2,arguments);var Le=(0,w.A)(lt);return(0,R.A)(At,7*Le)}var z=s(60134),X=s(9589),K=s(55685),ne=s(28249),le=s(42096),Y=s(31761),ve=s(15214);let Ie=(()=>{class At{constructor(Le,ze){this.injector=Le,this.akitaRouterQuery=ze,this.documentIsAccessible=this.akitaRouterQuery.isBrowser,this.document=this.documentIsAccessible?this.injector.get(Y.qQ,null):null}check(Le){return!!this.documentIsAccessible&&(Le=encodeURIComponent(Le),this.getCookieRegExp(Le).test(this.document?this.document.cookie:""))}get(Le){if(this.documentIsAccessible&&this.check(Le)){Le=encodeURIComponent(Le);const Ue=this.getCookieRegExp(Le).exec(this.document?this.document.cookie:"");return decodeURIComponent(Ue?Ue[1]:"")}return""}getLatest(Le){if(this.documentIsAccessible){const Ue=this.getAll()[Le=encodeURIComponent(Le)];if(Ue)return decodeURIComponent(Ue)}return""}getAll(){if(!this.documentIsAccessible)return{};const Le={},ze=this.document;if(ze.cookie&&""!==ze.cookie){const Ue=ze.cookie.split(";");for(let Dt=0;Dt<Ue.length;Dt+=1){const Gt=Ue[Dt].split("=");Gt[0]=Gt[0].replace(/^ /,""),Le[decodeURIComponent(Gt[0])]=decodeURIComponent(Gt[1])}}return Le}set(Le,ze,Ue,Dt,Gt,Yt,fn="None"){if(!this.documentIsAccessible||!this.document)return;let Fn=encodeURIComponent(Le)+"="+encodeURIComponent(ze)+";";Ue&&(Fn+="number"==typeof Ue?"expires="+new Date((new Date).getTime()+1e3*Ue*60*60*24).toUTCString()+";":"expires="+Ue.toUTCString()+";"),Dt&&(Fn+="path="+Dt+";"),Gt&&(Fn+="domain="+Gt+";"),Yt&&(Fn+="secure;"),Fn+="sameSite="+fn+";",this.document.cookie=Fn}delete(Le,ze,Ue){this.documentIsAccessible&&this.set(Le,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),ze,Ue)}getCookieRegExp(Le){const ze=Le.replace(/([$()*+,.;=?[\]^{|}])/gi,"\\$1");return new RegExp("(?:^"+ze+"|;\\s*"+ze+")=(.*?)(?:;|$)","g")}static{this.\u0275fac=function(ze){return new(ze||At)(K.KVO(K.zZn),K.KVO(ve.O))}}static{this.\u0275prov=K.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}}return At})();var He=s(66143),se=s(33055),Ge=s(78766);const B="INITIAL",Z="name email",re="auth/apple-sign-in";let ce=(()=>{class At{constructor(Le){this.akitaRouterQuery=Le,this.isBrowser=this.akitaRouterQuery.isBrowser}initialize(){return new se.c(Le=>{if(this.isBrowser){const ze=(0,Ge.Rl)(E.c.apple.baseURL,re);AppleID.auth.init({clientId:(0,Ge.Hq)(),redirectURI:ze,scope:Z,state:B,usePopup:!0}),Le.next(!0),Le.complete()}})}signIn(){return new se.c(Le=>{const ze=(0,Ge.Rl)(E.c.apple.baseURL,re);AppleID.auth.signIn({clientId:(0,Ge.Hq)(),redirectURI:ze,scope:Z,state:B,usePopup:!0}).then(Ue=>{Le.next({name:`${Ue?.user?.name?.firstName||""}`,email:`${Ue?.user?.email||""}`,secret:`${Ue?.authorization.id_token||""}`}),Le.complete()}).catch(Ue=>{let Dt="";"popup_closed_by_user"===Ue?.error&&(Dt="error_social_auth_dialog_closed"),Le.error({error:Ue?.error||"",message:Dt}),Le.complete()})})}static{this.\u0275fac=function(ze){return new(ze||At)(K.KVO(ve.O))}}static{this.\u0275prov=K.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}}return At})();var Se=s(78019),we=s(31946);let gt=(()=>{class At{constructor(Le,ze,Ue,Dt){this.zone=Le,this.akitaRouterQuery=ze,this.googleAnalyticsService=Ue,this.akitaAuthQuery=Dt,this.oneTapInizialized=!1,this.isBrowser=this.akitaRouterQuery.isBrowser,this.oneTapMonitor=new K.bkB,this.windowObjectReference=null,this.previousUrl=null,this.checkGoogleOneTap(!this.akitaAuthQuery.isLoggedIn&&"CHECKOUT_SESSION"===this.akitaRouterQuery.viewStep)}signInOauthV2InWindow(){return new se.c(Le=>{this.zone.runOutsideAngular(()=>{const ze=this.akitaRouterQuery.requestURL,Ue=`${window.location.origin}/oauth/google.success.html`;this.openSignInWindow(Le,`/oauth/google.html?clientId=${(0,Ge.ss)()}&requestURL=${ze}&redirectURL=${Ue}`,"")})})}openSignInWindow(Le,ze,Ue){this.zone.runOutsideAngular(()=>{const Dt=this.receiveMessage(Le),Gt=this.onPopupClose(Le);window.removeEventListener("message",Dt.bind(this));const Yt=void 0!==window.screenLeft?window.screenLeft:window.screenX,fn=void 0!==window.screenTop?window.screenTop:window.screenY,Fn=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,Xn=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,Sn=Fn/window.screen.availWidth,Ae=`toolbar=no, menubar=no, width=600, height=600, top=${.5*(Xn-600)/Sn+fn}, left=${.5*(Fn-600)/Sn+Yt}`;!this.windowObjectReference||this.windowObjectReference.closed?this.windowObjectReference=window.open(ze,Ue,Ae):this.previousUrl!==ze?(this.windowObjectReference=window.open(ze,Ue,Ae),this.windowObjectReference&&this.windowObjectReference?.focus&&this.windowObjectReference.focus()):this.windowObjectReference?.focus&&this.windowObjectReference.focus(),this.previousUrl=ze,window.addEventListener("message",Dt.bind(this),!1),this.windowObjectReference&&(this.windowObjectReference.removeEventListener("unload",Gt.bind(this)),this.windowObjectReference.addEventListener("unload",Gt.bind(this)))})}onPopupClose(Le){return()=>{this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.windowObjectReference&&this.windowObjectReference.closed&&(Le.error({error:"popup_closed_by_user",message:"error_social_auth_dialog_closed"}),Le.complete())},500)})}}receiveMessage(Le){return ze=>{this.zone.runOutsideAngular(()=>{if(ze.origin!==window.location.origin)return;const{data:Ue}=ze;if("google-auth-error"===Ue.type){let Dt="";"popup_closed_by_user"===Ue?.error&&(Dt="error_social_auth_dialog_closed"),Le.error({error:Ue?.error||"",message:Dt}),Le.complete()}else"google-auth-success"===Ue.type&&(!Ue?.error&&Ue?.data?.id_token?(Le.next({secret:Ue.data.id_token}),Le.complete()):(Le.error({error:Ue?.error||"",message:"error_social_auth_invalid_domain"}),Le.complete()))})}}signInOauthV2(){const Le=this.akitaRouterQuery.getCanonicalBaseURL(),ze=this.akitaRouterQuery.requestURL,Ue=`${Le}/auth/google-sign-in`,Dt=document?.createElement("form");Dt?.setAttribute("method","GET"),Dt?.setAttribute("action","https://accounts.google.com/o/oauth2/v2/auth");const Gt={client_id:(0,Ge.ss)(),redirect_uri:Ue,response_type:"id_token token",include_granted_scopes:"true",state:`${btoa(ze)}`,scope:"https://www.googleapis.com/auth/userinfo.profile",nonce:"90386bd2c0684585f1e674a04225f77f",use_fedcm_for_prompt:"true"};for(const Yt of Object.keys(Gt||{})){const fn=document?.createElement("input");fn?.setAttribute("type","hidden"),fn?.setAttribute("name",Yt),fn?.setAttribute("value",Gt[Yt]),Dt?.appendChild(fn)}return document?.body?.appendChild(Dt),Dt?.submit(),(0,O.of)(null)}checkGoogleOneTap(Le){this.zone.runOutsideAngular(()=>{if(this.isBrowser)try{typeof google<"u"&&google?.accounts&&google?.accounts?.id?this.oneTapSignInInitialize(Le):window.onGoogleLibraryLoad=()=>{this.oneTapSignInInitialize(Le)}}catch(ze){console.warn(ze)}})}oneTapSignInInitialize(Le){this.zone.runOutsideAngular(()=>{try{!this.oneTapInizialized&&typeof google<"u"&&(google.accounts.id.initialize({client_id:(0,Ge.ss)(),callback:this.oneTapSignInCallback.bind(this),state_cookie_domain:"popsy.app",nonce:"90386bd2c0684585f1e674a04225f77f",cancel_on_tap_outside:!1,auto_select:!1,use_fedcm_for_prompt:"true"})&&(this.oneTapInizialized=!0),Le&&this.oneTapSignIn(!0))}catch(ze){console.warn(ze)}})}oneTapSignIn(Le){this.zone.runOutsideAngular(()=>{try{this.oneTapInizialized&&typeof google<"u"&&google?.accounts&&google?.accounts?.id&&google?.accounts?.id?.prompt?google.accounts.id.prompt():!Le&&!this.oneTapInizialized&&this.checkGoogleOneTap(!0)}catch(ze){console.warn(ze)}})}disableOneTapAutoSelect(){this.zone.runOutsideAngular(()=>{try{typeof google<"u"&&google?.accounts?.id&&google.accounts.id.disableAutoSelect()}catch(Le){console.warn(Le)}})}oneTapSignInCallback(Le){this.zone.runOutsideAngular(()=>{Le&&((0,Se.zk)(this.googleAnalyticsService.logEventWrapper,Le.select_by),this.oneTapMonitor.emit(Le))})}get observeOneTap(){return this.oneTapMonitor.asObservable()}static{this.\u0275fac=function(ze){return new(ze||At)(K.KVO(K.SKi),K.KVO(ve.O),K.KVO(we.p),K.KVO(ne.P))}}static{this.\u0275prov=K.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}}return At})();var dt=s(14992);let Qt=(()=>{class At{constructor(Le,ze){this.akitaRouterQuery=Le,this.facebookService=ze,this.isBrowser=this.akitaRouterQuery.isBrowser}signIn(){return this.facebookService.login({scope:"public_profile,email",return_scopes:!0}).pipe((0,b.W)(Le=>(0,f.$)(()=>(0,z._)(Le))),(0,D.T)(Le=>Le&&Le.authResponse?{userId:Le?.authResponse?.userID,secret:Le?.authResponse?.accessToken}:null))}static{this.\u0275fac=function(ze){return new(ze||At)(K.KVO(ve.O),K.KVO(dt.o))}}static{this.\u0275prov=K.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}}return At})();var mt=s(18745);let Ft=(()=>{class At{constructor(Le,ze,Ue,Dt,Gt,Yt,fn,Fn,Xn,Sn){this.zone=Le,this.query=ze,this.store=Ue,this.cookieService=Dt,this.authAPIService=Gt,this.signWithAppleService=Yt,this.signWithGoogleService=fn,this.akitaRouterQuery=Fn,this.signWithFacebookService=Xn,this.apiCallsTrackerService=Sn,this.renewingToken=!1,this.subscriptions=new A.yU,this.subscriptions.add(this.signWithGoogleService.observeOneTap.subscribe({next:mn=>{this.signWithGoogleStep2Async(mn.credential)}}))}clearSubscriptions(){this.subscriptions&&this.subscriptions.unsubscribe()}showOneTap(){!this.query.isLoggedIn&&"CHECKOUT_SESSION"!==this.akitaRouterQuery.viewStep&&this.signWithGoogleService.oneTapSignIn()}setSessionId(Le){(0,_.PN)(ze=>{ze.setExtra("psid",`${Le||"??"}`)}),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("setSessionId()"),this.store.setSessionId(Le)})})}resetSocialAuthErrors(){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("resetSocialAuthErrors()"),this.store.setSignWithAppleError(null),this.store.setSignWithGoogleError(null),this.store.setSignWithFacebookError(null)})})}checkGoogleAuthInitialization(){this.googleAuthSDKLoaded(!0)}googleAuthSDKLoaded(Le){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("googleAuthSDKLoaded()"),this.store.toggleSigningInWithGoogleSDKLoaded(Le)})})}updateCookieSession(Le){let ze,Ue;if(E.c.production){ze="popsy.app";try{ze=window.location.hostname}catch(Dt){console.error(Dt)}Ue=!0}Le&&Le.oauth&&Le.oauth.token?(this.cookieService.set(`popsy_pid_${E.c.name||"local"}`,`${Le.oauth.publicId||""}`,x(new Date,1),"/",ze,Ue,"Lax"),this.cookieService.set(`popsy_sec_${E.c.name||"local"}`,`${Le.oauth.secret||""}`,x(new Date,1),"/",ze,Ue,"Lax"),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCookieSession()"),this.store.setCookieSession(`${Le.oauth.publicId||""}`||null,`${Le.oauth.secret||""}`||null)})})):null===Le&&(this.cookieService.set(`popsy_pid_${E.c.name||"local"}`,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),"/",ze,Ue,"Lax"),this.cookieService.set(`popsy_sec_${E.c.name||"local"}`,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),"/",ze,Ue,"Lax"),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCookieSession()"),this.store.setCookieSession(null,null)})}))}checkCookieSession(){let Le=null,ze=null;this.cookieService.check(`popsy_pid_${E.c.name||"local"}`)&&(Le=this.cookieService.getLatest(`popsy_pid_${E.c.name||"local"}`)),this.cookieService.check(`popsy_sec_${E.c.name||"local"}`)&&(ze=this.cookieService.getLatest(`popsy_sec_${E.c.name||"local"}`)),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("checkCookieSession()"),this.store.setCookieSession(Le||null,ze||null);const Ue=this.query.cookieSession;if(!this.query.user&&Le&&ze&&Ue.pid&&Ue.sec){const Dt=new i.Fv;Dt.oauth.publicId=Le,Dt.oauth.secret=ze,this.store.setUser(Dt),this.renewSession()}})})}registerUserInBackground(Le,ze,Ue,Dt){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("registerUserInBackground()"),this.store.toggleRegisteringInBackground(!0),this.store.setRegisteringInBackgroundError(null)})}),this.authAPIService.signUpInBackground(Le,ze||"",Ue,Dt).pipe((0,M.n)(Gt=>(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("registerUserInBackground() - done"),this.store.toggleRegisteringInBackground(!1),this.userSignedIn(Gt)})}),this.renewSessionSync().pipe((0,D.T)(Yt=>Yt?Gt:null)))),(0,b.W)(Gt=>{const Yt=(0,z._)(Gt);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("registerUserInBackground() - error"),this.store.toggleRegisteringInBackground(!1),this.store.setRegisteringInBackgroundError(Yt)})}),(0,f.$)(()=>Yt)}))}register(Le,ze,Ue,Dt){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("register()"),this.store.toggleRegistering(!0),this.store.setRegisteringError(null)})}),this.authAPIService.signUp(ze||"",Le,Ue||"",Dt||"en-US").pipe((0,S.M)(Gt=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("register() - done"),this.store.toggleRegistering(!1),this.userSignedIn(Gt)})})}),(0,b.W)(Gt=>{const Yt=(0,z._)(Gt);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("register() - error"),this.store.toggleRegistering(!1),this.store.setRegisteringError(Yt)})}),(0,f.$)(()=>Yt)}))}checkIfEmailIsValid(Le){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("checkIfEmailIsValid()"),this.store.toggleCheckingIfEmailValid(!0),this.store.setCheckingIfEmailValidError(null)})}),this.authAPIService.verifyUserDetails(Le).pipe((0,S.M)(ze=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("checkIfEmailIsValid() - done"),this.store.toggleCheckingIfEmailValid(!1),this.store.updateEmailStatus(Le,ze?.email||X.d4.NOT_VALID)})})}),(0,b.W)(ze=>{const Ue=(0,z._)(ze);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("checkIfEmailIsValid() - error"),this.store.toggleCheckingIfEmailValid(!1),this.store.setCheckingIfEmailValidError(Ue)})}),(0,f.$)(()=>Ue)}))}logout(){this.signWithGoogleService.disableOneTapAutoSelect(),this.clearSession()}setUser(Le){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("setUser()"),this.updateCookieSession(Le),this.store.setUser(Le)})})}updateOptIn(Le){const ze=this.query.user;return ze?(ze.opt_in=Le,this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("udateProfileInformation() - done"),this.updateCookieSession(ze),this.store.setUser(ze)})}),(0,O.of)(this.query.user?.opt_in||!1)):(0,O.of)(!1)}updateListingsCount(Le){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateListingsCount()"),this.store.updateListingsCount(Le)})})}updateFavoritesCount(Le){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateFavoritesCount()"),this.store.updateFavoritesCount(Le)})})}udateProfileInformation(Le,ze,Ue){const Dt=this.query.user;Dt&&(Le&&(Dt.email=Le),ze&&(Dt.description=ze),Ue&&(Dt.picture=Ue),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("udateProfileInformation() - done"),this.updateCookieSession(Dt),this.store.setUser(Dt)})}))}refreshUserAsync(){const Le=new A.yU,ze=this.query.accessToken,Dt=Yt=>{const fn=this.query.oauth;this.zone.run(fn&&fn.publicId&&fn.secret?()=>{(0,y.hO)(()=>{(0,y.d5)("refreshUserAsync() - done"),this.updateCookieSession(Yt),this.store.setUser(Yt),this.store.updateLastTokenRefresh()})}:()=>{(0,y.hO)(()=>{(0,y.d5)("refreshUserAsync() - skipped"),this.store.setError("Skipped User Refresh due to previous Sign Out"),this.store.updateLastTokenRefresh(!0)})})},Gt=Yt=>{const fn=Yt;fn?.status===U.k.UNAUTHORIZED?this.renewingToken||this.renewSession():fn?.status===U.k.NOT_FOUND&&this.logout()};return this.query.isSessionActive?ze&&this.query.shouldRefreshUser&&Le.add(this.authAPIService.getUserInfoFromToken(ze).subscribe({next:Dt,error:Gt})):Le.add(this.renewSessionSync().pipe((0,M.n)(Yt=>this.authAPIService.getUserInfoFromToken(Yt?.accessToken||""))).subscribe({next:Dt,error:Gt})),Le}userSignedIn(Le){this.setUser(Le),Le&&(Le.oauth?.token?this.updateSession(Le.oauth.token):Le.oauth?.secret&&Le.oauth?.publicId&&this.renewSession())}renewSession(){const Le=new A.yU;return this.renewingToken||Le.add(this.renewSessionSync().subscribe({next:()=>{},error:()=>{}})),Le}renewSessionSync(){const Le=this.query.oauth;if(this.query.serverType!==E.c.api.url){const Ue=new Error("SESSION_FROM_DIFFERENT_API");return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("renewSession() - init error"),this.clearSession(),this.setError(Ue)})}),(0,f.$)(()=>Ue)}if(!Le||!Le.publicId||!Le.secret){const Ue=new Error("USER_NOT_LOGGED_IN");return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("renewSession() - init error"),this.setError(Ue)})}),(0,f.$)(()=>Ue)}return this.apiCallsTrackerService.isOngoing("[POST] /oauth/bridge/token")?C.w:(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("renewSession()"),this.store.update({refreshingToken:!0,serverType:E.c.api.url,lastUpdated:new Date,error:null})})}),this.renewingToken=!0,this.authAPIService.getAccessToken(Le.publicId,Le.secret).pipe((0,S.M)(Ue=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("renewSession() - done"),this.updateSession(Ue),this.renewingToken=!1})})}),(0,b.W)(Ue=>{const Dt=(0,z._)(Ue);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("renewSession() - error"),this.setError(Dt),this.clearSession(),this.renewingToken=!1})}),(0,f.$)(()=>Dt)})))}expireSession(){const Le=this.query.user;Le&&Le.oauth&&Le.oauth.token&&(Le.oauth.token={accessToken:"0000000000000000000000000000000000000000000000000000000000000000",expiresIn:0,expiresAt:new Date(0)},this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("expireSession()"),this.updateCookieSession(Le),this.store.setUser(Le),this.store.updateLastTokenRefresh(!0)})}))}initializeAppleAuthAsync(){return this.initializeAppleAuth().subscribe({next:()=>{},error:()=>{}})}initializeAppleAuth(){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("initializeAppleAuth()"),this.store.toggleInitializingSignInWithApple(!0),this.store.setSignWithAppleError(null)})}),this.signWithAppleService.initialize().pipe((0,b.W)(Le=>{const ze=(0,z._)(Le);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("initializeAppleAuth() - error"),this.store.toggleInitializingSignInWithApple(!1),this.store.setInitializingSignInWithAppleError(ze)})}),(0,f.$)(()=>ze)}),(0,S.M)(Le=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("initializeAppleAuth() - done"),this.store.toggleInitializingSignInWithApple(!1),this.store.setSignInWithAppleInitialized(Le)})})}))}signWithAppleAsync(){return this.signWithApple().subscribe({next:()=>{},error:()=>{}})}signWithApple(){return this.clearSession(),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithApple()"),this.store.toggleSingingWithApple(!0),this.store.setSignWithAppleError(null)})}),(0,_.PN)(Le=>{Le.setUser({id:"Apple Login",username:"?",email:"?"})}),this.signWithAppleService.signIn().pipe((0,b.W)(Le=>{const ze=(0,z._)(Le);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithApple() - error"),this.store.toggleSingingWithApple(!1),this.store.setSignWithAppleError(ze)})}),(0,_.PN)(Ue=>{Ue.setUser({})}),(0,f.$)(()=>ze)}),(0,M.n)(Le=>(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithApple() - done"),this.store.toggleSingingWithApple(!1),this.store.setSignWithAppleInfo(Le)})}),this.signWithAppleStep2(Le?.secret||"",Le?.name||""))))}signWithGoogleAsync(){return this.signWithGoogle().subscribe({next:()=>{},error:()=>{}})}signWithGoogle(){return this.clearSession(),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithGoogle()"),this.store.toggleSingingWithGoogle(!0),this.store.setSignWithGoogleError(null)})}),(0,_.PN)(Le=>{Le.setUser({id:"Google Login",username:"?",email:"?"})}),this.signWithGoogleService.signInOauthV2InWindow().pipe((0,b.W)(Le=>{const ze=(0,z._)(Le);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithGoogle() - error"),this.store.toggleSingingWithGoogle(!1),this.store.setSignWithGoogleError(ze)})}),(0,_.PN)(Ue=>{Ue.setUser({})}),(0,f.$)(()=>ze)}),(0,M.n)(Le=>Le?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithGoogle() - done"),this.store.toggleSingingWithGoogle(!1),this.store.setSignWithGoogleInfo(Le)})}),this.signWithGoogleStep2(Le?.secret||"")):(0,O.of)(null)))}signWithFacebookAsync(){return this.signWithFacebook().subscribe({next:()=>{},error:()=>{}})}signWithFacebook(){return this.clearSession(),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebook()"),this.store.toggleSingingWithFacebook(!0),this.store.setSignWithFacebookError(null)})}),(0,_.PN)(Le=>{Le.setUser({id:"Facebook Login",username:"?",email:"?"})}),this.signWithFacebookService.signIn().pipe((0,b.W)(Le=>{const ze=(0,z._)(Le);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebook() - error"),this.store.toggleSingingWithFacebook(!1),this.store.setSignWithFacebookError(ze)})}),(0,_.PN)(Ue=>{Ue.setUser({})}),(0,f.$)(()=>ze)}),(0,M.n)(Le=>{if(Le)return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebook() - done"),this.store.toggleSingingWithFacebook(!1),this.store.setSignWithFacebookInfo(Le)})}),this.signWithFacebookStep2(Le?.userId||"",Le?.secret||"");const ze=(0,z._)({name:"popup_closed_by_user",code:"popup_closed_by_user",message:"error_social_auth_dialog_closed"});return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebook() - error"),this.store.toggleSingingWithFacebook(!1),this.store.setSignWithFacebookError(ze)})}),(0,f.$)(()=>ze)}))}signWithGoogleStep2Async(Le){return this.signWithGoogleStep2(Le).subscribe({next:()=>{},error:()=>{}})}signWithGoogleStep2(Le){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithGoogleStep2()"),this.store.toggleSingingWithGoogleStep2(!0),this.store.setSignWithGoogleStep2Error(null)})}),this.authAPIService.signInWithGoogle(Le||"").pipe((0,b.W)(ze=>{const Ue=(0,z._)(ze);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithGoogleStep2() - error"),this.store.toggleSingingWithGoogleStep2(!1),this.store.setSignWithGoogleStep2Error(Ue)})}),(0,f.$)(()=>Ue)}),(0,S.M)(ze=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithGoogleStep2() - done"),this.store.toggleSingingWithGoogleStep2(!1),this.userSignedIn(ze)})})}))}signWithAppleStep2(Le,ze){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithAppleStep2()"),this.store.toggleSingingWithAppleStep2(!0),this.store.setSignWithAppleStep2Error(null)})}),this.authAPIService.signInWithApple(Le||"",ze||"").pipe((0,b.W)(Ue=>{const Dt=(0,z._)(Ue);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithAppleStep2() - error"),this.store.toggleSingingWithAppleStep2(!1),this.store.setSignWithAppleStep2Error(Dt)})}),(0,f.$)(()=>Dt)}),(0,S.M)(Ue=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithAppleStep2() - done"),this.store.toggleSingingWithAppleStep2(!1),this.userSignedIn(Ue)})})}))}signWithFacebookStep2(Le,ze){return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebookStep2()"),this.store.toggleSingingWithFacebookStep2(!0),this.store.setSignWithFacebookStep2Error(null)})}),this.authAPIService.signInWithFacebook(Le||"",ze||"").pipe((0,b.W)(Ue=>{const Dt=(0,z._)(Ue);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebookStep2() - error"),this.store.toggleSingingWithFacebookStep2(!1),this.store.setSignWithFacebookStep2Error(Dt)})}),(0,f.$)(()=>Dt)}),(0,S.M)(Ue=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("signWithFacebookStep2() - done"),this.store.toggleSingingWithFacebookStep2(!1),this.userSignedIn(Ue)})})}))}setError(Le){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("setError()"),this.store.update({error:Le,lastUpdated:new Date})})})}clearSession(){const Le=new A.yU;return this.zone.runOutsideAngular(()=>{this.updateCookieSession(null)}),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("clearSession()"),this.store.setSignWithAppleError(null),this.store.setSignWithGoogleError(null),this.store.setSignWithFacebookError(null),this.zone.runOutsideAngular(()=>{(0,y.c4)({exclude:["screen","angular-router","overlays","location","listings","create-delivery-form"]}),typeof window<"u"&&window.localStorage.removeItem("AkitaStores"),this.store.setUser(null),this.store.updateLastTokenRefresh(!0),this.store.update({serverType:E.c.api.url,error:null,refreshingToken:!1,lastUpdated:new Date}),this.store.toggleSigningInWithGoogleSDKLoaded(!0),(0,_.PN)(ze=>{ze.setUser(null)})})})}),Le}updateSession(Le){const ze=new A.yU,Ue=this.query.user;return Ue&&(Ue.oauth||(Ue.oauth={publicId:"",secret:"",token:null}),Ue.oauth.token=Le||null),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateSession()"),this.updateCookieSession(Ue),this.store.setUser(Ue),this.store.update({refreshingToken:!1,lastUpdated:new Date})})}),(0,_.PN)(Dt=>{Dt.setUser(Ue?{id:Ue.id,username:Ue.firstName,email:Ue.email}:null)}),ze}static{this.\u0275fac=function(ze){return new(ze||At)(K.KVO(K.SKi),K.KVO(ne.P),K.KVO(le.s),K.KVO(Ie),K.KVO(He.s),K.KVO(ce),K.KVO(gt),K.KVO(ve.O),K.KVO(Qt),K.KVO(mt.F))}}static{this.\u0275prov=K.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}}return At})()},42096:(it,ge,s)=>{"use strict";s.d(ge,{s:()=>f});var i=s(47701),E=s(28505),y=s(16711),M=s(55685),D=s(43195),b=s(31946);let f=class s0 extends E.il{constructor(O,C){super(function A(){return{user:null,sessionId:null,lastTokenRefresh:new Date(0),serverType:y.c.api.url,error:null,refreshingToken:!1,lastUpdated:new Date,cookiePid:null,cookieSec:null,numberOfListings:0,numberOfMessages:0,numberOfFavorites:0,initializingSignInWithApple:!1,signInWithAppleInitialized:!1,initializingSignInWithAppleError:null,signingInWithApple:!1,signWithAppleError:null,signingInWithAppleStep2:!1,signWithAppleStep2Error:null,signWithAppleInfo:{name:"",email:"",secret:""},signingInWithGoogleSDKLoaded:!1,signingInWithGoogle:!1,signWithGoogleError:null,signingInWithGoogleStep2:!1,signWithGoogleStep2Error:null,signWithGoogleInfo:{name:"",email:"",picture:"",secret:""},signingInWithFacebook:!1,signWithFacebookError:null,signingInWithFacebookStep2:!1,signWithFacebookStep2Error:null,signWithFacebookInfo:{name:"",email:"",picture:"",secret:""},registeringInBackground:!1,errorRegisteringInBackground:null,registering:!1,errorRegistering:null,validEmailCheckResults:{},checkingIfEmailValid:!1,errorCheckingIfEmailValid:null}}()),this.akitaRouterService=O,this.googleAnalyticsService=C}setCookieSession(O,C){this.update({cookiePid:O,cookieSec:C})}updateLastTokenRefresh(O){this.update({lastTokenRefresh:O?new Date(0):new Date})}setSessionId(O){this.update({sessionId:O||null})}setUser(O){this.update(C=>(this.googleAnalyticsService.refreshUserInfo(O||null,C.numberOfListings,C.numberOfMessages,C.numberOfFavorites),this.akitaRouterService.updateSessionUser(O),{user:O,lastUpdated:new Date}))}updateListingsCount(O){this.update(C=>C.user?(this.googleAnalyticsService.refreshUserInfo(C.user||null,C.numberOfListings,C.numberOfMessages,C.numberOfFavorites),{numberOfListings:O||0}):{numberOfListings:0})}updateMessagesCount(O){this.update(C=>C.user?(this.googleAnalyticsService.refreshUserInfo(C.user||null,C.numberOfListings,C.numberOfMessages,C.numberOfFavorites),{numberOfMessages:O||0}):{numberOfMessages:0})}updateFavoritesCount(O){this.update(C=>C.user?(this.googleAnalyticsService.refreshUserInfo(C.user||null,C.numberOfListings,C.numberOfMessages,C.numberOfFavorites),{numberOfFavorites:O||0}):{numberOfFavorites:0})}toggleSingingWithApple(O){this.update({signingInWithApple:!!O})}setSignWithAppleError(O){this.update({signWithAppleError:O||null})}toggleSingingWithAppleStep2(O){this.update({signingInWithAppleStep2:!!O})}setSignWithAppleStep2Error(O){this.update({signWithAppleStep2Error:O||null})}setSignWithAppleInfo(O){this.update({signWithAppleInfo:{name:`${O?.name||""}`,email:`${O?.email||""}`,secret:`${O?.secret||""}`}})}toggleSigningInWithGoogleSDKLoaded(O){this.update({signingInWithGoogleSDKLoaded:!!O})}toggleSingingWithGoogle(O){this.update({signingInWithGoogle:!!O})}setSignWithGoogleError(O){this.update({signWithGoogleError:O||null})}toggleSingingWithGoogleStep2(O){this.update({signingInWithGoogleStep2:!!O})}setSignWithGoogleStep2Error(O){this.update({signWithGoogleStep2Error:O||null})}setSignWithGoogleInfo(O){this.update({signWithGoogleInfo:{name:`${O?.name||""}`,email:`${O?.email||""}`,picture:`${O?.picture||""}`,secret:`${O?.secret||""}`}})}toggleSingingWithFacebook(O){this.update({signingInWithFacebook:!!O})}setSignWithFacebookError(O){this.update({signWithFacebookError:O||null})}toggleSingingWithFacebookStep2(O){this.update({signingInWithFacebookStep2:!!O})}setSignWithFacebookStep2Error(O){this.update({signWithFacebookStep2Error:O||null})}setSignWithFacebookInfo(O){this.update({signWithFacebookInfo:{name:`${O?.name||""}`,email:`${O?.email||""}`,picture:`${O?.picture||""}`,secret:`${O?.secret||""}`}})}toggleInitializingSignInWithApple(O){this.update({initializingSignInWithApple:!!O})}setInitializingSignInWithAppleError(O){this.update({initializingSignInWithAppleError:O||null})}setSignInWithAppleInitialized(O){this.update({signInWithAppleInitialized:!!O})}setRegisteringInBackgroundError(O){this.update({errorRegisteringInBackground:O||null})}toggleRegisteringInBackground(O){this.update({registeringInBackground:!!O})}setRegisteringError(O){this.update({errorRegistering:O||null})}toggleRegistering(O){this.update({registering:!!O})}setCheckingIfEmailValidError(O){this.update({errorCheckingIfEmailValid:O||null})}toggleCheckingIfEmailValid(O){this.update({checkingIfEmailValid:!!O})}updateEmailStatus(O,C){this.update(_=>{const U={..._.validEmailCheckResults};return U[O]=C,{validEmailCheckResults:U}})}static{this.\u0275fac=function(C){return new(C||s0)(M.KVO(D.t),M.KVO(b.p))}}static{this.\u0275prov=M.jDH({token:s0,factory:s0.\u0275fac,providedIn:"root"})}};f=(0,i.Cg)([(0,E.g7)({name:"auth",resettable:!0})],f)},80252:(it,ge,s)=>{"use strict";s.d(ge,{I:()=>i});class i{constructor(){this.country="",this.city="",this.address="",this.addressDetails="",this.postalCode="",this.streetNumber="",this.province=""}static fromJson(y){let A=new i;return y&&(A=new i,A.country=y.country||"",A.city=y.city||"",A.address=y.address||"",A.addressDetails=y.address_details||y.addressDetails||"",A.postalCode=y.postal_code||y.postalCode||"",A.streetNumber=y.street_number||y.streetNumber||"",A.province=y.province||""),A}}},35849:(it,ge,s)=>{"use strict";s.d(ge,{I:()=>b});var i=s(11364),E=s(92864),y=s(65279),A=s(80252),M=s(18119),D=s(58205);class b{constructor(){this.id="",this.cartId="",this.orderId="",this.isLocked=!1,this.customerId=null,this.order=[],this.email="",this.userName=null,this.billingAddress=null,this.shippingAddress=null,this.phone=null,this.totalPrice=new E.H,this.storeCountry="",this.storeLanguage="",this.storeCurrency="",this.discount=null,this.paymentProvider=null,this.paymentMethod=null,this.isProtected=!1,this.protectionPrice=null}static fromJson(S){let O=null;return S&&(O=new b,S.order.length&&(O.order=this.parseShortProductList(S.order||[])),S.insurances.length&&(O.insurances=(0,D.aC)(S.insurances||null)),O.id=S.id||"",O.cartId=S.cartId||S.cart_id||"",O.orderId=S.orderId||S.oder_id||S.order_id||"",O.customerId=S.customerId||S.customer_id||"",O.email=S.email||"",O.isLocked=S.isLocked||S.is_locked||!1,S.contact_details&&(O.userName=S.contact_details.name||S.user_name||null,O.phone=(0,y.Y)(S.contact_details.contact||null)),(S.shippingAddress||S.shipping_address)&&(O.shippingAddress=A.I.fromJson(S.shippingAddress||S.shipping_address||null)),(S.billingAddress||S.billing_address)&&(O.billingAddress=A.I.fromJson(S.billingAddress||S.billing_address||null)),O.storeCountry=S.storeCountry||S.store_country||"",O.storeLanguage=S.storeLanguage||S.store_language||"",O.storeCurrency=S.storeCurrency||S.store_currency||"",O.totalPrice=E.H.fromJson({amount:S.totalPrice||S.total_price||0,currency:S.storeCurrency||S.store_currency||""}),S.discount&&(O.discount=(0,M.r)(S.discount),O.discount.currency=O.storeCurrency),(S.paymentProvider||S.payment_provider)&&(O.paymentProvider=S.paymentProvider||S.payment_provider||null),(S.paymentMethod||S.payment_method)&&(O.paymentMethod=S.paymentMethod||S.payment_method||null),(S.protectionPrice||S.protection_price)&&(O.protectionPrice=E.H.fromJson({amount:S.protectionPrice||S.protection_price||0,currency:O.storeCurrency}),O.isProtected=!0)),O}static parseShortProductList(S){const O=new Array(0);if(S)for(const C of S||[]){const _=(0,i.FF)(C.short_product);_&&(_.quantity=C.quantity||1,O.push(_))}return O}}},57851:(it,ge,s)=>{"use strict";s.d(ge,{G:()=>D});var i=s(47701),E=s(28505),A=s(35849),M=s(55685);let D=class o0 extends E.il{constructor(){super({session:null,order:null,orderId:null,userOrders:null,payment:null,paymentId:null,configurations:null,paymentProvider:null,paymentMethod:null,step:"ADDRESS",ckoPaymentToken:null,riskJsDeviceSessionId:null,ckoCardHolderName:null,showTabbyPromo:null,showTamaraPromo:null,showQuaraPromo:null,showApplePay:null,showGooglePay:null,showBaseetaPromo:null,isSubmitting:!1,gotDiscountAfterLocked:!1,fetchingConfigurations:!1,erroFetchingConfigurations:null,updatingSession:!1,errorUpdatingSession:null,fetchingSession:!1,errorFetchingSession:null,updatingOrder:!1,errorUpdatingOrder:null,fetchingOrder:!1,errorFetchingOrder:null,updatingPayment:!1,errorUpdatingPayment:null,fetchingPayment:!1,errorFetchingPayment:null,isRiskJsInitialized:!1,isRiskJsDataPublished:!1,errorStcPayment:null})}setSession(f){this.update({session:f})}setSessionUserDetails(f){const S=this.getValue().session||new A.I;S.userName=f.fullName,S.email=f.email,S.phone=f.contactDetails,S.shippingAddress=f.address,S.billingAddress=f.address,this.update({session:S||null})}toggleFetchingSession(f){this.update({fetchingSession:!!f})}setErrorFetchingSession(f){this.update({errorFetchingSession:f||null})}setOrder(f){this.update({order:f||null})}setUserOrders(f){this.update({userOrders:f||null})}setGotDiscountAfterLocked(f){this.update({gotDiscountAfterLocked:!!f})}setOrderId(f){this.update({orderId:f||null})}setPaymentId(f){this.update({paymentId:f||null})}setPaymentProvider(f){const S=this.getValue().session||new A.I;S.paymentProvider=f,this.update({session:S||null})}setPaymentMethod(f){const S=this.getValue().session||new A.I;S.paymentMethod=f,this.update({session:S||null})}setDiscountCode(f){const S=this.getValue().session||new A.I;S.discount=f,this.update({session:S||null})}toggleFetchingOrder(f){this.update({fetchingOrder:!!f})}setErrorFetchingOrder(f){this.update({errorFetchingOrder:f||null})}toggleUpdatingOrder(f){this.update({updatingOrder:!!f})}setErrorUpdatingOrder(f){this.update({errorUpdatingOrder:f||null})}setPayment(f){this.update({payment:f||null})}toggleFetchingPayment(f){this.update({fetchingPayment:!!f})}setErrorFetchingPayment(f){this.update({errorFetchingPayment:f||null})}toggleUpdatingPayment(f){this.update({updatingPayment:!!f})}setErrorUpdatingPayment(f){this.update({errorUpdatingPayment:f||null})}setConfigurations(f){this.update({configurations:f||null})}toggleFetchingConfigurations(f){this.update({fetchingConfigurations:!!f})}setErrorFetchingConfigurations(f){this.update({erroFetchingConfigurations:f||null})}setCKOPaymentToken(f){this.update({ckoPaymentToken:f||null})}setCKOCardHolderName(f){this.update({ckoCardHolderName:f||null})}setIsSubmitting(f){this.update({isSubmitting:!!f})}setShowTabbyPromo(f){this.update({showTabbyPromo:!!f})}setShowQuaraPromo(f){this.update({showQuaraPromo:!!f})}setShowBaseetaPromo(f){this.update({showBaseetaPromo:!!f})}setShowTamaraPromo(f){this.update({showTamaraPromo:!!f})}setShowApplePay(f){this.update({showApplePay:!!f})}setShowGooglePay(f){this.update({showGooglePay:!!f})}setIsRiskJsInitialized(f){this.update({isRiskJsInitialized:!!f})}setIsRiskJsDataPublished(f){this.update({isRiskJsDataPublished:!!f})}setRiskJsDeviceSessionId(f){this.update({riskJsDeviceSessionId:f||null})}setErrorStcPayment(f){this.update({errorStcPayment:f||null})}static{this.\u0275fac=function(S){return new(S||o0)}}static{this.\u0275prov=M.jDH({token:o0,factory:o0.\u0275fac,providedIn:"root"})}};D=(0,i.Cg)([(0,E.g7)({name:"checkout",resettable:!0})],D)},47878:(it,ge,s)=>{"use strict";s.d(ge,{n:()=>E,x:()=>y});var i=s(19152);const E=6;class y{constructor(){this.withError=null,this.trackingId=null,this.latitude=0,this.longitude=0,this.precission="",this.userDefined=!1,this.googleGeocoder=!1,this.address="",this.addressDetails="",this.shortAddress="",this.country="",this.countryName="",this.city="",this.area="",this.streetName="",this.streetNumber="",this.postalCode="",this.region="",this.regionCode="",this.extra="",this.updatedAt=new Date,this.withError=null,this.trackingId=null}static buildShortAddress(M,D,b){const f=new Array(0);return b&&f.push(b),M&&f.push(M),D&&f.push(D),f.join(", ")}static fromJson(M,D){let b=null;if(M){b=new y,b.trackingId=null!=M.trackingId?M.trackingId:null,b.latitude=Number(M.latitude),b.longitude=Number(M.longitude),b.precission=M.precission||"",b.userDefined=!0===M.userDefined,b.googleGeocoder=!0===M.googleGeocoder,b.address=M.formatted_address||M.formattedAddress||M.address||"",b.addressDetails=M.address_details||M.addressDetails||"";let f={streetName:"",streetNumber:"",neighborhood:"",region:"",city:"",postalCode:"",country:""};D||(f=y.parseAddressString(b.address)),b.country=(M.country||"").toUpperCase(),b.countryName=M.countryName||f.country||"",b.area=M.area||f.neighborhood||"",b.city=M.city||M.locality||f.city||"",b.region=M.region||f.region||"",b.regionCode=M.regionCode||"",b.streetName=M.streetName||f.streetName||"",b.streetNumber=M.streetNumber||f.streetNumber||"",b.postalCode=M.postalCode||f.postalCode||"",b.extra=M.extra||"",b.withError=M.withError||null,b.updatedAt=i.J.parseApiDate("updated_at","updatedAt",M)||new Date,b.shortAddress=M.short_address||M.shortAddress||M.address||y.buildShortAddress(b.city,b.country,b.region)||""}return b}static fromJsonDictionary(M){const D={};if(M)for(const b of Object.keys(M))D[b]=y.fromJson(M[b])||null;return D}getLatLng(){return`${(this.latitude||0).toFixed(E)},${(this.longitude||0).toFixed(E)}`}static parseAddressString(M){const D={streetName:"",streetNumber:"",neighborhood:"",region:"",city:"",postalCode:"",country:""},b=`${M||""}`.split(" - ");if(b.length>0){const f=`${b[0]||""}`.split(",");if(D.streetName=`${f[0]||""}`.trim(),f.length>1){const S=`${f[1]||""}`.trim();if(-1!==S.indexOf(" ")){const O=S.split(" ");D.postalCode=O[0],D.city=O[1]}else D.streetNumber=`${f[1]||""}`.trim()}if(f.length>2){const S=`${f[2]||""}`.trim();if(-1!==S.indexOf(" ")){const O=S.split(" ");D.postalCode=O[0],D.city=O[1]}else D.region=`${f[2]||""}`.trim()}f.length>3&&(f.length>4?D.region=`${f[3]||""}`.trim():D.country=`${f[3]||""}`.trim()),f.length>4&&(D.country=`${f[4]||""}`.trim())}if(b.length>=2){const f=`${b[1]||""}`.split(",");f.length>1?(D.neighborhood=`${f[0]||""}`.trim(),D.city=`${f[1]||""}`.trim()):D.city=`${f[0]||""}`.trim()}if(b.length>=3){const f=`${b[2]||""}`.split(",");if(f.length>=3)D.region=`${f[0]||""}`.trim(),D.postalCode=`${f[1]||""}`.trim(),D.country=`${f[3]||""}`.trim();else if(f.length>=2)D.region=`${f[0]||""}`.trim(),D.postalCode=`${f[1]}`.trim();else{const S=`${f[0]||""}`.trim(),O=S.replace(/\D+/gi,"");8===O.length||9===O.length?D.postalCode=S:D.region=S}}return D}get asApiJson(){return{address:this.address||this.shortAddress||"",formated_address:null,latitude:`${this.latitude||0}`,longitude:`${this.longitude||0}`,city:this.city||"",country:(this.country||"").toUpperCase(),region:this.region||""}}}},37717:(it,ge,s)=>{"use strict";s.d(ge,{Y:()=>S});var i=s(28505),E=s(47878),y=s(54436),A=s(8632),M=s(55685),D=s(86543),b=s(86495);let S=(()=>{class O extends i.XK{constructor(_,U){super(_),this.store=_,this.akitaConfigurationQuery=U}get isLoading(){return this.getValue().loading}get lastUpdate(){return this.getValue().lastUpdate}get hasPermission(){return this.getValue().hasPermission}get coordinatePrecission(){return this.deviceLocation?this.deviceLocation.precission:""}get fromEnviroment(){return!this.deviceLocation||"ENVIROMENT"===this.deviceLocation.precission||"FALLBACK"===this.deviceLocation.precission}get locationMetadata(){const _={country:"",region:"",city:""},U=this.currentLocation;U&&(_.country=(U.country||"").toLowerCase(),_.region=(U.region||"").toLowerCase(),_.city=(U.city||"").toLowerCase());const w={country:"",region:"",city:""},R=this.definedByUser;return R&&(w.country=(R.country||"").toLowerCase(),w.region=(R.region||"").toLowerCase(),w.city=(R.city||"").toLowerCase()),{device:_,user:w,country:(this.getValue().country||"").toLowerCase()}}get country(){const _=this.locationMetadata;return _.user.country||_.device.country||_.country||""}get city(){const _=this.locationMetadata;return _.user.city||_.device.city||""}get region(){const _=this.locationMetadata;return _.user.region||_.device.region||""}get permissionRequested(){return this.getValue().requested}get currentLocation(){return E.x.fromJson(this.getValue().currentLocation)}get definedByUser(){return E.x.fromJson(this.getValue().definedByUser)}get userLocation(){return this.definedByUser||this.currentLocation||null}get deviceLocation(){return this.currentLocation||null}get deviceCurrency(){const _=this.getValue();return _.suggestedDeviceCurrency&&_.currentLocation&&("GPS"===_.currentLocation.precission||"IP"===_.currentLocation.precission)?this.getValue().suggestedDeviceCurrency?.code||null:this.akitaConfigurationQuery.currencyCode}selectIsLoading(){return this.select().pipe((0,y.T)(_=>!!_.loading))}selectLocationInfo(){return this.select().pipe((0,y.T)(_=>({device:E.x.fromJson(_.currentLocation),user:E.x.fromJson(_.definedByUser)})),(0,A.F)((_,U)=>JSON.stringify(_)===JSON.stringify(U)))}selectUserLocation(){return this.selectLocationInfo().pipe((0,y.T)(_=>_.user||_.device||null),(0,A.F)((_,U)=>(_?JSON.stringify({..._,latitude:_.latitude.toPrecision(6),longitude:_.longitude.toPrecision(6),updatedAt:null}):null)===(U?JSON.stringify({...U,latitude:U.latitude.toPrecision(6),longitude:U.longitude.toPrecision(6),updatedAt:null}):null)))}selectDeviceLocation(){return this.select().pipe((0,y.T)(_=>E.x.fromJson(_.currentLocation)),(0,A.F)((_,U)=>JSON.stringify(_)===JSON.stringify(U)))}selectDeviceCurrency(){return this.select().pipe((0,y.T)(_=>_.suggestedDeviceCurrency&&_.currentLocation&&("GPS"===_.currentLocation.precission||"IP"===_.currentLocation.precission)?_.suggestedDeviceCurrency.code:this.akitaConfigurationQuery.currencyCode))}selectCountry(){return this.select().pipe((0,y.T)(_=>(_.definedByUser?_.definedByUser.country:"")||(_.currentLocation?_.currentLocation.country:"")||_.country||"US"),(0,A.F)())}selectCoordinatePrecission(){return this.selectDeviceLocation().pipe((0,y.T)(_=>_&&""!==_.precission?_.precission:"FALLBACK"))}static{this.\u0275fac=function(U){return new(U||O)(M.KVO(D.$),M.KVO(b.R))}}static{this.\u0275prov=M.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},19735:(it,ge,s)=>{"use strict";s.d(ge,{T:()=>Pe});var i=s(38355),E=s(49283),y=s(95212),A=s(58977),M=s(42567),D=s(22900),b=s(54436),f=s(90249),S=s(47878),O=s(33055),C=s(58338);class _{static{this.PI=Math.PI}static{this.MILES_IN_DEGREE=60}static{this.STATUTE_MILES=1.1515}static{this.METERS_IN_KM=1e3}static{this.EARTH_RADIUS_BY_2=12742}static deg2rad(Xe){return Xe*(_.PI/180)}static rad2deg(Xe){return Xe*(180/_.PI)}static distanceInMiles(Xe,De,We,st){const gt=We-st;let dt=Math.sin(_.deg2rad(Xe))*Math.sin(_.deg2rad(De))+Math.cos(_.deg2rad(Xe))*Math.cos(_.deg2rad(De))*Math.cos(_.deg2rad(gt));return dt=Math.acos(dt),dt=_.rad2deg(dt),dt*_.MILES_IN_DEGREE*_.STATUTE_MILES}static distanceInKilometers(Xe,De,We,st){const gt=_.deg2rad(Xe),dt=_.deg2rad(De),Wt=_.deg2rad(We),Qt=_.deg2rad(st),mt=.5*(1-Math.cos(dt-gt)+(1-Math.cos(Qt-Wt))*Math.cos(gt)*Math.cos(dt));return _.EARTH_RADIUS_BY_2*Math.asin(Math.sqrt(mt))}static distance(Xe,De,We,st,gt){let dt=!1;("US"===(gt=(gt||"").toUpperCase())||"LR"===gt||"MM"===gt)&&(dt=!0);let Wt=0,Qt="m";if(dt){const mt=_.distanceInMiles(Xe,De,We,st);Qt="mi",Wt=mt<1?Number(mt.toFixed(2)):Math.round(mt)}else{const mt=_.distanceInKilometers(Xe,De,We,st);mt>1?(Qt="km",Wt=Math.round(mt)):Wt<1&&(Qt="m",Wt=Math.round(mt*_.METERS_IN_KM))}return`${Wt} ${Qt}`}static get hasLocationPermission(){return new O.c(Xe=>{try{window&&window.navigator&&window.navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(De=>{Xe.next("granted"===De?.state),De&&De.addEventListener?De.addEventListener("change",()=>{Xe.next("granted"===De?.state)}):Xe.complete()}).catch(()=>{Xe.next(null),Xe.complete()}):(Xe.next(null),Xe.complete())}catch{Xe.next(null),Xe.complete()}})}static findCurrentLocation(Xe,De=!0,We=!0,st,gt,dt,Wt){return De||We?_.locationFromBrowser(Xe,st,gt,dt,Wt):_.locationFromIPOnly(Xe,gt,dt,Wt)}static locationFromIPOnly(Xe,De,We,st){return Xe.findLocationByIp(void 0,void 0,De,We,st)}static locationFromBrowserOnly(Xe){return new O.c(De=>{try{window&&window.navigator&&window.navigator.geolocation?window.navigator.geolocation.getCurrentPosition(We=>{const st=S.x.fromJson(We.coords)||new S.x;st.precission="GPS",st.updatedAt=new Date,C.A.geoCodeCoordinateAddress(st,Xe).then(gt=>{gt&&(st.city=gt.city,st.country=gt.country,st.region=gt.region,st.address=gt.address,st.shortAddress=gt.shortAddress,st.updatedAt=new Date),De.next(st),De.complete()}).catch(gt=>{st.withError=gt,De.next(st),De.complete()})},We=>{De.error(_.locationErrorName(We)),De.complete()}):(De.error("SERVER_RENDERING - locationFromBrowserOnly( window )"),De.complete())}catch{De.error("SERVER_RENDERING - locationFromBrowserOnly( exception )"),De.complete()}})}static locationFromBrowser(Xe,De,We,st,gt){const dt=new i.yU;return new O.c(Wt=>{try{window?.navigator?.geolocation?window.navigator.geolocation.getCurrentPosition(Qt=>{const mt=S.x.fromJson(Qt.coords)||new S.x;mt.precission="GPS",mt.updatedAt=new Date,C.A.geoCodeCoordinateAddress(mt,De).then(Ft=>{Ft&&(mt.city=Ft.city,mt.country=Ft.country,mt.region=Ft.region,mt.address=Ft.address,mt.shortAddress=Ft.shortAddress,mt.updatedAt=new Date),Wt.next(mt),Wt.complete(),dt&&dt.unsubscribe()}).catch(Ft=>{mt.withError=Ft,Wt.next(mt),Wt.complete(),dt&&dt.unsubscribe()})},Qt=>{dt.add(Xe.findLocationByIp(void 0,void 0,We,st,gt).pipe((0,E.W)(()=>(Wt.error(_.locationErrorName(Qt)),dt&&dt.unsubscribe(),A.w))).subscribe({next:mt=>{mt?(Wt.next(mt),Wt.complete(),dt&&dt.unsubscribe()):(Wt.error("UNKNOWN"),dt&&dt.unsubscribe())},error:mt=>{Wt.error(mt),dt&&dt.unsubscribe()}}))}):dt.add(Xe.findLocationByIp(void 0,void 0,We,st,gt).subscribe({next:Qt=>{Qt?(Wt.next(Qt),dt&&dt.unsubscribe()):(Wt.error("UNKNOWN"),dt&&dt.unsubscribe())},error:()=>{Wt.error("SERVER_RENDERING - locationFromBrowser( window )"),dt&&dt.unsubscribe()}}))}catch{dt.add(Xe.findLocationByIp(void 0,void 0,We,st,gt).subscribe({next:mt=>{mt?(Wt.next(mt),Wt.complete(),dt&&dt.unsubscribe()):(Wt.error("UNKNOWN"),dt&&dt.unsubscribe())},error:()=>{Wt.error("SERVER_RENDERING - locationFromBrowser( exception )"),dt&&dt.unsubscribe()}}))}})}static locationErrorName(Xe){switch(Xe.code){case Xe.PERMISSION_DENIED:return"PERMISSION_DENIED";case Xe.POSITION_UNAVAILABLE:return"POSITION_UNAVAILABLE";case Xe.TIMEOUT:return"TIMEOUT";default:return"UNKNOWN"}}static formatGMapsAddress(Xe){return C.A.formatGMapsAddress(Xe)}}var U=s(3898),w=s(28505),R=s(60134),V=s(86343),x=s(55685),z=s(86543),X=s(37717),K=s(28249),ne=s(86495),le=s(1819),Y=s(10047),ve=s(60602),Ie=s(78766),He=s(19076),se=s(15214),Ge=s(66257),B=s(63424),Z=s(70925),J=s.n(Z),re=s(31761);const Se={setItem:()=>new Promise(()=>{throw new Error("NOT_SUPPORTED")}),getItem:()=>new Promise(()=>{throw new Error("NOT_SUPPORTED")}),iterate:()=>new Promise(()=>{throw new Error("NOT_SUPPORTED")}),length:()=>new Promise($e=>{$e(0)})};let we=(()=>{class $e{constructor(De,We){this.platformId=De,this.akitaConfigurationQuery=We,this.coordinateStore=Se,this.isBrowser=(0,re.UE)(this.platformId);try{this.coordinateStore=J().createInstance({name:"popsy",description:"Cache of coordinates to avoid using the Geocoder too much",version:1,storeName:"coordinates"})||Se}catch{}}saveCoordinate(De,We,st){this.isBrowser&&De&&(De.latitude&&De.longitude&&this.coordinateStore.setItem(`${this.akitaConfigurationQuery.locale}:${De.latitude.toFixed(6)},${De.longitude.toFixed(6)}`,De).catch(()=>{}),We&&st&&this.coordinateStore.setItem(`${this.akitaConfigurationQuery.locale}:${We.toFixed(6)},${st.toFixed(6)}`,De).catch(()=>{}))}readCoordinate(De,We){var st=this;return(0,B.v)((0,Ge.A)(function*(){try{if(st.isBrowser){const gt=`${st.akitaConfigurationQuery.locale}:${(De||0).toFixed(6)},${(We||0).toFixed(6)}`,dt=yield st.coordinateStore.getItem(gt);return S.x.fromJson(dt)}}catch{}return null}))}get coordinatesMap(){var De=this;return(0,B.v)((0,Ge.A)(function*(){try{if(De.isBrowser){const We={};return yield De.coordinateStore.iterate((st,gt)=>{try{We[gt]=S.x.fromJson(st)}catch{}}),We}}catch{}return{}}))}static{this.\u0275fac=function(We){return new(We||$e)(x.KVO(x.Agw),x.KVO(ne.R))}}static{this.\u0275prov=x.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})(),Ee=(()=>{class $e{constructor(De,We){this.akitaRouterQuery=De,this.dataCacheService=We,this.http=(0,x.WQX)(ve.Qq),this.isBrowser=this.akitaRouterQuery.isBrowser}updateLocation(De,We){if(!De)return(0,y.$)(()=>new Error("USER_NOT_LOGGED_IN"));if(!We||!We.country||0===We.latitude||0===We.longitude)return(0,y.$)(()=>new Error("INVALID_COORDINATE"));const st=(0,V.BK)();let gt={"Content-Type":"application/json; charset=utf-8"};return De&&(gt={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${De}`}),this.http.put((0,Ie.G6)("users/me/location"),{location:We.asApiJson,locale:st.locale||void 0},{responseType:"json",headers:gt}).pipe((0,b.T)(dt=>He.Fv.fromJson(dt)))}findLocationByIp(De,We,st,gt,dt){if(!this.isBrowser)return(0,y.$)(()=>(0,R._)("SERVER_RENDERING - findLocationByIp()"));(0,V.BK)();let Qt=new ve.Nl;De&&We&&(Qt=Qt.set("latitude",`${De}`),Qt=Qt.set("longitude",`${We}`));const mt=btoa("api:Lax4UpCrx9TAmhea"),Ft=this.http.get((0,Ie.G6)("api/v2/geocoder",!0),{responseType:"json",headers:{Authorization:`Basic ${mt}`},params:Qt}).pipe((0,b.T)(At=>{const lt=S.x.fromJson(At);return lt&&(lt.latitude=De||At.latitude||0,lt.longitude=We||At.longitude||0,lt.precission="IP",lt.address=S.x.buildShortAddress(lt.city,lt.country),lt.shortAddress=lt.address,lt.googleGeocoder=!0,lt.updatedAt=new Date),lt}),(0,M.M)(At=>{this.dataCacheService.saveCoordinate(At,De,We)}));return De&&We?this.dataCacheService.readCoordinate(De,We).pipe((0,D.n)(At=>At?(0,Y.of)(At):Ft)):Ft}static{this.\u0275fac=function(We){return new(We||$e)(x.KVO(se.O),x.KVO(we))}}static{this.\u0275prov=x.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})(),Pe=(()=>{class $e{constructor(De,We,st,gt,dt,Wt,Qt,mt){this.zone=De,this.store=We,this.query=st,this.authQuery=gt,this.akitaConfigurationQuery=dt,this.akitaAuthService=Wt,this.locationAPIService=Qt,this.dataCacheService=mt,this.locationObserver=new i.yU,this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("AkitaLocationService() - Init"),this.store.setIsLoading(!1),this.store.update({requested:!1})})});const Ft=(0,V.mW)();Ft?this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("AkitaLocationService() - TimeZone"),this.store.update({country:Ft.country,lastUpdate:new Date,currentLocation:S.x.fromJson({latitude:Ft.lat,longitude:Ft.lng,country:Ft.country,city:Ft.city,precission:"ENVIROMENT"})})})}):this.locationObserver.add(_.locationFromIPOnly(Qt).subscribe({next:At=>{At&&this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("AkitaLocationService() - IP"),this.store.update({country:At.country,lastUpdate:new Date,currentLocation:S.x.fromJson(At),precission:"IP"})})})},error:()=>{}})),this.locationObserver.add(_.hasLocationPermission.subscribe({next:At=>{if(null!==At){const lt=!!At;lt!==this.query.hasPermission&&(this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("hasLocationPermission() - check"),this.store.update({hasPermission:lt})})}),lt&&this.requestGPSLocationInBackground())}}}))}stopSubscriptions(){this.locationObserver&&this.locationObserver.unsubscribe()}requestLocationInBackground(De){const We=new i.yU;return this.query.isLoading||We.add(this.requestLocation(De).subscribe({next:()=>{},error:()=>{}})),We}requestGPSLocationInBackground(){const De=new i.yU;return this.query.isLoading||De.add(this.requestGPSLocation().subscribe({next:()=>{},error:()=>{}})),De}requestGPSLocation(De){return this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("requestGPSLocation()"),this.store.setIsLoading(!0),this.store.update({requested:!0})})}),_.locationFromBrowserOnly(this.akitaConfigurationQuery.locale).pipe((0,E.W)(We=>(this.apiCallFinished("requestGPSLocation() -> error",We),this.zone.run(()=>{this.store.setIsLoading(!1)}),De?(0,y.$)(()=>(0,R._)(We)):A.w)),(0,M.M)(We=>{this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("requestGPSLocation() -> done"),this.requestLocationSuccess(We),this.apiCallFinished(""),this.store.setIsLoading(!1),We&&this.setLocation(We)})})}))}requestLocation(De){this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("requestLocation()"),this.store.setIsLoading(!0),this.store.update({requested:!0})})});const We=this.query.deviceLocation;return _.findCurrentLocation(this.locationAPIService,this.query.hasPermission,!!De,this.akitaConfigurationQuery.locale,We?.country,We?.region,We?.city).pipe((0,E.W)(st=>(this.requestLocationError(st),this.apiCallFinished("requestLocation() -> error",st),this.zone.run(()=>{this.store.setIsLoading(!1)}),A.w)),(0,M.M)(st=>{this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("requestLocation() -> done"),this.requestLocationSuccess(st),this.apiCallFinished(""),this.store.setIsLoading(!1),st&&this.setLocation(st)})})}))}updateLocation(De){const We=new i.yU;if(De&&De.country&&0!==De.latitude&&0!==De.longitude&&("GPS"===De.precission||"IP"===De.precission)){const st=this.authQuery.accessToken;st?We.add(this.locationAPIService.updateLocation(st,De).subscribe({next:()=>{this.apiCallFinished("updateLocation() -> done",null)},error:gt=>{this.apiCallFinished("updateLocation() -> error",gt)}})):this.apiCallFinished("",new Error("USER_NOT_LOGGED_IN"))}else this.apiCallFinished("",new Error("LOCATION_NOT_ACCURATE_ENOUGH"));return We}clearLocation(De,We){this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("clearLocation()"),De?this.store.updateUserLocation(null):this.store.updateDeviceLocation(null),this.store.update({hasPermission:!We&&this.query.hasPermission,lastUpdate:new Date}),this.updateLocationMetadata()})})}setLocation(De,We,st){this.zone.run(()=>{(0,w.hO)(()=>{if((0,w.d5)("setLocation()"),De){const gt=this.query.deviceLocation,dt=gt&&gt.precission;if(!(st||We||("ENVIROMENT"!==De.precission&&"FALLBACK"!==De.precission||"SUBDOMAIN"!==dt&&"IP"!==dt&&"GPS"!==dt)&&("SUBDOMAIN"!==De.precission||"IP"!==dt&&"GPS"!==dt)&&("IP"!==De.precission||"GPS"!==dt)))return;We&&(De.precission="USER",this.store.updateUserLocation(S.x.fromJson({...De,userDefined:!0}))),this.store.updateDeviceLocation(De),this.store.update({lastUpdate:new Date})}else this.apiCallFinished("",new Error("EMPTY_COORDINATE"));this.updateLocationMetadata(),De&&(!De.address||!De.googleGeocoder||!De.shortAddress||!De.country)&&this.findAddressInformation(De)})})}setCountry(De){De&&this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("setCountry()"),this.store.update({country:De,lastUpdate:new Date})})})}reRegisterLocation(){return this.registerLocation(this.query.deviceLocation,!!this.query.deviceLocation?.googleGeocoder).subscribe({next:()=>{},error:()=>{}})}registerLocationAsync(De,We){return this.registerLocation(De,We).subscribe({next:()=>{},error:()=>{}})}registerLocation(De,We){return De?this.dataCacheService.readCoordinate(De.latitude,De.longitude).pipe((0,D.n)(()=>{let st=!0;De.googleGeocoder&&(st=!1);const gt=S.x.fromJson(De)||new S.x;return gt.googleGeocoder=!!We,this.dataCacheService.saveCoordinate(gt),this.dataCacheService.coordinatesMap.pipe((0,b.T)(dt=>{const Wt={};for(const Qt of Object.keys(dt||{})){const mt=dt[Qt];mt&&(Wt[Qt]=mt)}return Wt}),(0,M.M)(dt=>{st&&this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("registerLocation()"),this.store.update({coordinates:dt})})})}))})):A.w}findCachedCoordinate(De,We){return this.dataCacheService.readCoordinate(De,We)}findAddressInformation(De){const We=new i.yU;return De&&We.add((0,f.H)(C.A.geoCodeCoordinateAddress(De,this.akitaConfigurationQuery.locale)).pipe((0,M.M)(st=>{if(st){const gt=st.getLatLng(),dt=this.query.currentLocation;dt&&gt===dt.getLatLng()&&this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)("findAddressInformation()"),this.store.updateDeviceLocation(st)})});const Wt=this.query.definedByUser;Wt&&gt===Wt.getLatLng()&&this.zone.run(()=>{(0,w.hO)(()=>{this.store.updateUserLocation(S.x.fromJson({...st,userDefined:!0}))})}),this.updateLocationMetadata()}})).subscribe({next:()=>{this.apiCallFinished("findAddressInformation() - done",null)},error:st=>{this.apiCallFinished("findAddressInformation() - error",st)}})),We}apiCallFinished(De,We){De?this.zone.run(()=>{(0,w.hO)(()=>{(0,w.d5)(De),this.store.setIsLoading(!1),this.store.setError(We||null),this.store.update({lastUpdate:new Date}),this.akitaAuthService.refreshUserAsync()})}):(this.zone.run(()=>{this.store.setIsLoading(!1),this.store.setError(We||null),this.store.update({lastUpdate:new Date})}),this.akitaAuthService.refreshUserAsync())}requestLocationError(De){this.zone.run(()=>{(0,w.hO)(()=>{if((0,w.d5)("requestLocationError()"),"ENVIROMENT"===this.query.coordinatePrecission&&this.query.currentLocation){const We=S.x.fromJson(this.query.currentLocation)||new S.x;We.precission="FALLBACK",this.store.updateDeviceLocation(We),this.store.update({precission:We.precission})}De||this.store.update({apiCallRetries:0}),this.store.update({requested:!1,lastUpdate:new Date,hasPermission:(!De||"PERMISSION_DENIED"!==De)&&this.query.hasPermission})})})}requestLocationSuccess(De){this.zone.run(()=>{(0,w.hO)(()=>{if((0,w.d5)("requestLocationSuccess()"),De){if("ENVIROMENT"===De.precission&&("IP"===this.query.coordinatePrecission||"GPS"===this.query.coordinatePrecission||this.query.definedByUser))return;this.store.updateDeviceLocation(De),this.store.update({lastUpdate:new Date,hasPermission:"GPS"===De.precission,precission:De.precission||""})}})})}updateLocationMetadata(){(0,U.PN)(De=>{De.setExtra("location:country",this.query.country),De.setExtra("location:city",this.query.city),De.setExtra("location:region",this.query.region),De.setExtra("location:precission",this.query.coordinatePrecission),De.setExtra("location:userDefined",!!this.query.definedByUser),De.setExtra("location:hasPermission",this.query.hasPermission),De.setExtra("location:requested",this.query.permissionRequested)})}static{this.\u0275fac=function(We){return new(We||$e)(x.KVO(x.SKi),x.KVO(z.$),x.KVO(X.Y),x.KVO(K.P),x.KVO(ne.R),x.KVO(le.M),x.KVO(Ee),x.KVO(we))}}static{this.\u0275prov=x.jDH({token:$e,factory:$e.\u0275fac,providedIn:"root"})}}return $e})()},86543:(it,ge,s)=>{"use strict";s.d(ge,{$:()=>f});var i=s(47701),E=s(28505),y=s(47878),A=s(11488),D=s(86343),b=s(55685);let f=class a0 extends E.il{constructor(){super(function M(){return{requested:!1,loading:!1,currentLocation:null,definedByUser:null,lastUpdate:new Date,hasPermission:!1,precission:"",apiCallRetries:0,country:"",coordinates:{},suggestedDeviceCurrency:null,suggestedUserCurrency:null}}())}setIsLoading(O){this.update({loading:!!O})}updateUserLocation(O){this.update(C=>{const _=O?y.x.fromJson({...O,latitude:Number((O.latitude||0).toFixed(y.n)),longitude:Number((O.longitude||0).toFixed(y.n))}):null;return{definedByUser:_,suggestedUserCurrency:this.detectActiveCurrency(_),country:C.currentLocation?.country||_?.country||C.country||""}})}updateDeviceLocation(O){this.update(C=>{const _=O?y.x.fromJson({...O,latitude:Number((O.latitude||0).toFixed(y.n)),longitude:Number((O.longitude||0).toFixed(y.n))}):null;return{currentLocation:_,suggestedDeviceCurrency:this.detectActiveCurrency(_),country:_?.country||C.definedByUser?.country||C.country||""}})}detectActiveCurrency(O){let C=null;return O&&(C=D.t5[(O.country||"us").toUpperCase()]),(0,A.S)(C)}static{this.\u0275fac=function(C){return new(C||a0)}}static{this.\u0275prov=b.jDH({token:a0,factory:a0.\u0275fac,providedIn:"root"})}};f=(0,i.Cg)([(0,E.g7)({name:"location",resettable:!1})],f)},86394:(it,ge,s)=>{"use strict";s.d(ge,{L:()=>R});var i=s(86343),E=s(78766),y=s(55685),A=s(28249),M=s(15214),D=s(35955);const S=[""],O=["SESSION","ORDER-INFO"],_="popsy_nos",U={US:10,SA:40,AE:40,BR:55,KW:4,BH:3,OM:3,QA:10},w={US:500,SA:2e3,AE:2e3,BR:60,KW:4};let R=(()=>{class V{constructor(z,X,K,ne){this.zone=z,this.akitaAuthQuery=X,this.akitaRouterQuery=K,this.newsletterOverlayDynamicService=ne,this.userActivityChangeCallback=null,this.firstTime=!0}initListener(){this.zone.runOutsideAngular(()=>{this.userActivityChangeCallback=()=>this.handleUserActiveState(),window.document.addEventListener("click",this.userActivityChangeCallback.bind(this),!0),window.document.addEventListener("wheel",this.userActivityChangeCallback.bind(this),!0),window.document.addEventListener("touchstart",this.userActivityChangeCallback.bind(this),!0)})}handleUserActiveState(){if(this.firstTime){const z=this.akitaRouterQuery.country;this.firstTime=!1,this.akitaRouterQuery.isBrowser&&z&&-1===S.indexOf(z)&&this.zone.runOutsideAngular(()=>{try{!window.localStorage.getItem(_)&&!this.akitaAuthQuery.accessToken&&this.isValidView()&&setTimeout(()=>{this.displayNewsletter()},1e4)}catch{}})}}showNewsletterIfNeeded(){this.initListener()}openUpNewsletter(){this.displayNewsletter()}get country(){const z=`${this.akitaRouterQuery.queryParams.country||""}`.toUpperCase(),X=`${(0,E.Vn)(this.akitaRouterQuery.requestURL,!0)||""}`.toUpperCase();let K=this.akitaRouterQuery.country||"";return z?K=z:X&&(K=X),K}displayNewsletter(){this.zone.runOutsideAngular(()=>{try{window.localStorage.setItem(_,"Yes")}catch{}const z=this.country.toUpperCase()in U?`${this.country||""}`.toUpperCase():"US",X=(0,i.$J)(z),K=U[z];z&&X&&K&&this.newsletterOverlayDynamicService.open({data:{drawAmount:w[z],discountAmount:K,currency:X,country:z}})})}isValidView(){return-1===O.indexOf(this.akitaRouterQuery.viewName)}static{this.\u0275fac=function(X){return new(X||V)(y.KVO(y.SKi),y.KVO(A.P),y.KVO(M.O),y.KVO(D.s))}}static{this.\u0275prov=y.jDH({token:V,factory:V.\u0275fac,providedIn:"root"})}}return V})()},1948:(it,ge,s)=>{"use strict";s.d(ge,{v:()=>K});var i=s(28505),E=s(49283),y=s(10047),A=s(42567);class M{constructor(){this.consumerId="",this.isNew=!1}}var b=s(55685),f=s(47701);let O=class l0 extends i.il{constructor(){super({isNew:!1,consumerId:"",updatingConsumer:!1})}updateOmnisendUserId(le){this.update({consumerId:le?.consumerId||"",isNew:!!le?.isNew})}toggleOmnisendConsumerUpdating(le){this.update({updatingConsumer:!!le})}static{this.\u0275fac=function(Y){return new(Y||l0)}}static{this.\u0275prov=b.jDH({token:l0,factory:l0.\u0275fac,providedIn:"root"})}};O=(0,f.Cg)([(0,i.g7)({name:"omnisend",resettable:!0})],O);var C=s(43195),_=s(54436),U=s(78766),w=s(60602),R=s(23922),V=s(61375),x=s(28249);let z=(()=>{class ne{constructor(Y){this.akitaAuthQuery=Y,this.http=(0,b.WQX)(w.Qq),this.translateService=(0,b.WQX)(R.JO)}identifyUser(Y){const ve=Y?.lang||this.translateService.getActiveLang(),Ie={...Y||{},id:Y?.id||this.akitaAuthQuery.user?.id,email:Y?.email||this.akitaAuthQuery.user?.email,lang:V.cW.includes(ve)?ve:"en",country:`${Y?.country||this.akitaAuthQuery.user?.location?.country||"US"}`.toUpperCase(),opt_in:Y.opt_in||this.akitaAuthQuery.user?.opt_in||!1};if(!(Ie?.id||Ie?.email||Ie?.phone?.national))return(0,y.of)(new M);const He=btoa("api:Lax4UpCrx9TAmhea"),se=new w.Lr({"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${He}`});return this.http.post((0,U.G6)("omnisend"),{id:Ie?.id||void 0,first_name:Ie?.firstName||void 0,last_name:Ie?.lastName||void 0,email:Ie?.email||void 0,phone:Ie?.phone?{phone_country_code:Ie?.phone?.countryCode||void 0,phone_number:Ie?.phone?.national||void 0,phone_area_code:Ie?.phone?.areaCode||void 0}:void 0,lang:Ie.lang,country:Ie.country,opt_in:Ie.opt_in},{responseType:"json",headers:se}).pipe((0,_.T)(Ge=>(ne=>{const le=new M;return ne&&(le.consumerId=`${ne.consumer_id||ne.consumerId||""}`,le.isNew=!(!ne.is_new&&!ne.isNew)),le})(Ge)))}static{this.\u0275fac=function(ve){return new(ve||ne)(b.KVO(x.P))}}static{this.\u0275prov=b.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})();var X=s(15985);let K=(()=>{class ne{constructor(Y,ve,Ie,He,se){this.zone=Y,this.store=ve,this.akitaRouterService=Ie,this.omnisendAPIService=He,this.omnisendService=se}identifyUserAsync(Y){return this.identifyUser(Y).subscribe({next:()=>{},error:()=>{}})}identifyUser(Y){const ve=this.omnisendService.getContactId();return ve&&this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("identifyUser() - env"),this.store.updateOmnisendUserId({consumerId:ve,isNew:!1})})}),this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("identifyUser()"),this.store.toggleOmnisendConsumerUpdating(!0)})}),this.omnisendAPIService.identifyUser(Y).pipe((0,E.W)(()=>{const Ie=new M;return this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("identifyUser() - error"),this.store.updateOmnisendUserId(Ie),this.store.toggleOmnisendConsumerUpdating(!1)})}),(0,y.of)(Ie)}),(0,A.M)(Ie=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("identifyUser() - done"),this.store.updateOmnisendUserId(Ie),this.store.toggleOmnisendConsumerUpdating(!1)})}),Ie?.consumerId&&(this.akitaRouterService.addParamToKeepQueryParams({omnisendContactID:Ie.consumerId}),this.omnisendService.identifyContact(Ie.consumerId))}))}static{this.\u0275fac=function(ve){return new(ve||ne)(b.KVO(b.SKi),b.KVO(O),b.KVO(C.t),b.KVO(z),b.KVO(X.B))}}static{this.\u0275prov=b.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},11125:(it,ge,s)=>{"use strict";s.d(ge,{s:()=>i});const i="CHECKOUT"},58205:(it,ge,s)=>{"use strict";s.d(ge,{aC:()=>A,eI:()=>y,hL:()=>E});var i=s(92864);class E{constructor(){this.id="",this.price=new i.H,this.description="",this.image="",this.quantity=null,this.productId=null}}const y=M=>{let D=null;return M&&(D=new E,D.id=M.id||M.insurance_id||M.insuranceId||"",D.description=M.description||"",D.image=M.image||"",D.price=M.price?i.H.fromJson(M.price)||new i.H:i.H.fromJson({amount:M?.value,currency:M?.currency})||new i.H,M.quantity&&(D.quantity=M.quantity),(M.productId||M.product_id)&&(D.productId=M.productId||M.product_id)),D},A=M=>{const D=new Array(0);if(M)for(const b of M||[]){const f=y(b);f&&D.push(f)}return D}},81420:(it,ge,s)=>{"use strict";s.d(ge,{n:()=>E});class i{constructor(){this.brand=new Array(0),this.category=new Array(0),this.color=new Array(0),this.color_hex=new Array(0),this.cpu=new Array(0),this.graphics=new Array(0),this.launch_date=new Array(0),this.model=new Array(0),this.ram=new Array(0),this.screen_size=new Array(0),this.storage=new Array(0),this.storage_type=new Array(0),this.keyboard=new Array(0),this.condition=new Array(0),this.strap_color_hex=new Array(0),this.wifi_cellular=new Array(0),this.sim=new Array(0),this.series=new Array(0)}}const E=y=>{const A=new i;return y&&(A.brand=y.brand||new Array(0),A.category=y.category||new Array(0),A.color=y.color||new Array(0),A.color_hex=y.color_hex||new Array(0),A.cpu=y.cpu||new Array(0),A.graphics=y.graphics||new Array(0),A.launch_date=y.launch_date||new Array(0),A.model=y.model||new Array(0),A.ram=y.ram||new Array(0),A.screen_size=y.screen_size||new Array(0),A.storage=y.storage||new Array(0),A.storage_type=y.storage_type||new Array(0),A.keyboard=y.keyboard||new Array(0),A.condition=y.condition.reverse()||new Array(0),A.strap_color_hex=y.strap_color_hex||new Array(0),A.wifi_cellular=y.wifi_cellular||new Array(0),A.sim=y.sim||new Array(0),A.series=y.series||new Array(0)),A}},3464:(it,ge,s)=>{"use strict";s.d(ge,{Nu:()=>i,cv:()=>E,d$:()=>b,ls:()=>D,ms:()=>O,sK:()=>y,uJ:()=>S,zO:()=>f});const i="BEST_SALES",E="CHEAPEST_FIRST",y="CHEAPEST_LAST",D=["brand","model","storage","color","cpu","graphics","ram","launch_date","screen_size","storage_type","category","series"],b=C=>{let _=`${C||""}`;return"RED"===_?_="(PRODUCT)RED":"JET_BLACK"===_&&(_="JET BLACK"),_};class f{constructor(){this.page=null,this.limit=null,this.currency=null,this.price_min=null,this.price_max=null,this.sorting=null,this.country=null,this.category=null,this.brand=null,this.model=null,this.series=null,this.storage=null,this.color=null,this.language=null,this.text=null,this.is_featured=null,this.cpu=null,this.graphics=null,this.launch_date=null,this.ram=null,this.screen_size=null,this.storage_type=null}}const S=C=>{const _=new f;return C&&(_.page=C.page||null,_.limit=C.limit||null,_.currency=C.currency||null,_.price_min=C.price_min||C.priceMin||null,_.price_max=C.price_max||C.priceMax||null,_.sorting=C.sorting||null,_.country=C.country||null,_.category=C.category||null,_.brand=C.brand||null,_.model=C.model||null,_.series=C.series||null,_.storage=C.storage||null,_.color=C.color||null,_.language=C.language||null,_.text=C.text||null,_.is_featured=C.is_featured||null,_.cpu=C.cpu||null,_.graphics=C.graphics||null,_.launch_date=C.launch_date||null,_.ram=C.ram||null,_.screen_size=C.screen_size||null,_.storage_type=C.storage_type||null),_},O=C=>{let _="";if(C)for(const U of Object.keys(C||{}))if("page"!==U){const w=C[U];(!Array.isArray(w)&&w||Array.isArray(w)&&w.length)&&(_=D.includes(`${U||"-"}`)?`${_}&${U}=${w.join("|")}`:`${_}&${U}=${w}`)}return _}},59381:(it,ge,s)=>{"use strict";s.d(ge,{I:()=>E,z:()=>y});var i=s(11364);class E{constructor(){this.results=new Array(0),this.next=null}}const y=A=>{const M=new E;return A&&(M.results=(0,i.zm)(A.results),M.next=A.next||null),M}},11364:(it,ge,s)=>{"use strict";s.d(ge,{Yt:()=>C,CN:()=>S,Dy:()=>V,di:()=>R,P9:()=>w,FF:()=>_,zm:()=>U});var i=s(92864),E=s(78766);class y{constructor(){this.question="",this.answer=""}}class A{constructor(){this.brand="",this.model="",this.height="",this.width="",this.depth="",this.weight="",this.externalMemory="",this.storageCapacity="",this.screenSize="",this.screenResolution="",this.pixelDensity="",this.hdr="",this.cameraResolution="",this.flash="",this.opticalZoom="",this.maxVideoResolution="",this.videoCall="",this.opticalImageStabilization="",this.frontCamera="",this.lidarScanner="",this.processor="",this.ram="",this.simCardFormat="",this.connector="",this.headphoneJack="",this.wifi="",this.bluetooth="",this.lte4G="",this.supports5G="",this.accelerometer="",this.gyroscope="",this.barometer="",this.ambientLightSensor="",this.proximitySensor="",this.fingerprintSensor="",this.nfc="",this.wirelessPayment="",this.voiceRecognition="",this.faceRecognition="",this.waterproof="",this.color="",this.releaseDate="",this.wirelessCharging="",this.batteryCapacity="",this.modelNumbers="",this.modelNumber="",this.shortText="",this.faq=new Array(0)}}var b=s(58205);const S={WHITE:"label_phone_color_white",BLACK:"label_phone_color_black",SILVER:"label_phone_color_silver",GOLD:"label_phone_color_gold",SPACE_GRAY:"label_phone_color_space_gray",ROSE_GOLD:"label_phone_color_rose_gold","(PRODUCT)RED":"label_phone_color_product_red",YELLOW:"label_phone_color_yellow",GREEN:"label_phone_color_green",PURPLE:"label_phone_color_purple",JET_BLACK:"label_phone_color_jet_black",CORAL:"label_phone_color_coral",BLUE:"label_phone_color_blue",MIDNIGHT_GREEN:"label_phone_color_midnight_green",GRAPHITE:"label_phone_color_graphite",PACIFIC_BLUE:"label_phone_color_pacific_blue",RED:"label_phone_color_red",PINK:"label_phone_color_pink"};class C{constructor(){this.id="",this.title="",this.titleEn="",this.description="",this.images=new Array(0),this.brand="",this.model="",this.color="",this.colorCode="#fff",this.storage="",this.launchDate=0,this.metadata=new A,this.rawMetadata={},this.mpn="",this.upc="",this.condition="",this.category="",this.price=new i.H,this.originalPrice=new i.H,this.country="",this.language="",this.selectedInsurance=null,this.isFeatured=!1}}const _=x=>{let z=null;return x&&(z=new C,z.id=x.id||"",z.title=x.title||"",z.titleEn=x.title_en||x.titleEn||"",z.description=x.description||"",z.images=[...x.images||[]],x.image_url&&z.images.push(x.image_url),x.image&&z.images.push(x.image),z.brand=x.brand||"",z.model=x.model||"",z.color=x.color||"",z.colorCode=x.color_code||x.colorCode||"#fff",z.storage=x.storage||"",z.launchDate=+`${x.launch_date||x.launchDate||0}`,z.rawMetadata={...x.raw_metadata||x.rawMetadata||x.metadata||{}},z.metadata=(x=>{const z=new A;return x&&(z.brand=x.brand||"",z.model=x.model||"",z.height=x.height||"",z.width=x.width||"",z.depth=x.depth||"",z.weight=x.weight||"",z.externalMemory=x.external_memory||x.externalMemory||"",z.storageCapacity=x.storage_capacity||x.storageCapacity||"",z.screenSize=x.screen_size||x.screenSize||"",z.screenResolution=x.screen_resolution||x.screenResolution||"",z.pixelDensity=x.pixel_density||x.pixelDensity||"",z.hdr=x.hdr||"",z.cameraResolution=x.cameraResolution||x.camera_resolution||"",z.flash=x.flash||"",z.opticalZoom=x.optical_zoom||x.opticalZoom||"",z.maxVideoResolution=x.max_video_resolution||x.maxVideoResolution||"",z.videoCall=x.video_call||x.videoCall||"",z.opticalImageStabilization=x.optical_image_stabilization||x.opticalImageStabilization||"",z.frontCamera=x.front_camera||x.frontCamera||"",z.lidarScanner=x.lidar_scanner||x.lidarScanner||"",z.processor=x.processor||"",z.ram=x.ram||"",z.simCardFormat=x.sim_card_format||x.simCardFormat||"",z.connector=x.connector||"",z.headphoneJack=x.headphone_jack||x.headphoneJack||"",z.wifi=x.wifi||"",z.bluetooth=x.bluetooth||"",z.lte4G=x["4g_lte"]||x.lte4G||"",z.supports5G=x["5g"]||x.supports5G||"",z.accelerometer=x.accelerometer||"",z.gyroscope=x.gyroscope||"",z.barometer=x.barometer||"",z.ambientLightSensor=x.ambient_light_sensor||x.ambientLightSensor||"",z.proximitySensor=x.proximity_sensor||x.proximitySensor||"",z.fingerprintSensor=x.fingerprint_sensor||x.fingerprintSensor||"",z.nfc=x.nfc||"",z.wirelessPayment=x.wireless_payment||x.wirelessPayment||"",z.voiceRecognition=x.voice_recognition||x.voiceRecognition||"",z.faceRecognition=x.face_recognition||x.faceRecognition||"",z.waterproof=x.waterproof||"",z.color=x.color||"",z.releaseDate=x.releaseDate||"",z.wirelessCharging=x.wireless_charging||x.wirelessCharging||"",z.batteryCapacity=x.battery_capacity||x.batteryCapacity||"",z.modelNumbers=x.model_numbers||x.modelNumbers||"",z.modelNumber=x.model_number||x.modelNumber||"",z.shortText=x.short_text||x.shortText||"",z.faq=x.faq?x.faq:(x=>{const z=new Array(0);if(x)for(const X of Object.keys(x||[]))if(X.includes("question_")){const K=new y;K.question=x[X]||"",K.answer=x[`answer_${X.split("_")[1]}`]||"",K.openTab=x[`open_${X.split("_")[1]}`]||!1,z.push(K)}return z})(x)),z})(x.metadata),z.mpn=x.mpn||"",z.upc=x.upc||"",z.condition=x.condition||"",z.category=x.category||"",z.price=i.H.fromJson(x.price)||new i.H,z.originalPrice=i.H.fromJson(x.original_price||x.originalPrice)||new i.H,z.country=x.country||"",z.language=x.language||"",z.isFeatured=!(!x.is_featured&&!x.isFeatured),z.inStock=!(!x.in_stock&&!x.inStock),(x.updatedAt||x.updated_at)&&(z.updatedAt=x.updatedAt||x.updated_at),x.quantity&&(z.quantity=x.quantity),(x.variantId||x.variant_id)&&(z.variantId=x.variantId||x.variant_id),(x.productId||x.product_id)&&(z.productId=x.productId||x.product_id),(x.insurance_ids||x.insuranceIds)&&(z.insuranceIds=x.insurance_ids||x.insuranceIds||[]),x.insurances&&(z.insurances=(0,b.aC)(x.insurances)),x.selectedInsurance&&(z.selectedInsurance=(0,b.eI)(x.selectedInsurance))),z},U=x=>{const z=new Array(0);if(x)for(const X of x||[]){const K=_(X);K&&z.push(K)}return z},w=(x,z)=>{if(x){const X=(0,E.Rj)(x.id,x.titleEn||x.title),K=new Array(0);return z&&K.push(`lang=${z}`),K.length>=1?`${X}?${K.join("&")}`:X}return""},R=x=>{const z=`${x||""}`.replace(/\s/g,"_").toUpperCase();let X=S[z]||"";return!X&&"label_all"!==x&&(X=`label_phone_color_${z}`.toLowerCase()),X},V=x=>{let X="#f4f5f7";switch(`${x||""}`.replace(/\s/g,"_").toUpperCase()){case"SPACE_GRAY":X="#272729";break;case"GOLD":X="#FFF0DD";break;case"SILVER":X="#D1D2D4";break;case"ROSE_GOLD":X="#EBD1CD";break;case"BLACK":X="#191919";break;case"RED":case"(PRODUCT)RED":X="#CF233D";break;case"JET_BLACK":X="#2F2F2F";break;case"WHITE":X="#F2EBE6";break;case"YELLOW":X="#F0DA77";break;case"CORAL":X="#F1816A";break;case"BLUE":X="#215C79";break;case"GREEN":X="#A8DBC8";break;case"PURPLE":X="#C1B8ED";break;case"MIDNIGHT_GREEN":X="#4A544F"}return X}},61375:(it,ge,s)=>{"use strict";s.d(ge,{Vj:()=>E,cW:()=>i,eZ:()=>D,lU:()=>A,nf:()=>M,uT:()=>y});const i=["ar","en"],E=["AE","SA","QA","OM","KW","BH"],y=[{display:"Saudi Arabia",country:"sa",domain:"popsy.sa"},{display:"United Arab Emirates",country:"ae",domain:"popsy.ae"},{display:"Kuwait",country:"kw",domain:"popsy.com.kw"},{display:"Qatar",country:"qa"},{display:"Oman",country:"om"},{display:"Bahrain",country:"bh"}],A=[{display:"English",country:"us",locale:"en",rtl:!1},{display:"\u0639\u0631\u0628\u064a",country:"sa",locale:"ar",rtl:!0}],M=()=>({pages:new Array(0),loadingPage:new Array(0),errorLoadingPage:new Array(0),hasNextPage:!1}),D=()=>({products:{},fetchingProducts:{},errorFetchingProducts:{},productVariants:{},fetchingProductVariants:{},errorFetchingProductVariants:{},availableProductFilters:{},fetchingAvailableProductFilters:{},errorFetchingAvailableProductFilters:{},productSearch:{},productSearchHints:[],insurances:{},fetchingInsurance:{},errorFetchingInsurances:{},fetchingProductSearchHints:!1,errorFetchingProductSearchHints:null,fetchingInsurances:!1,fetchingAvailableProductLocaleInfo:!1,errorFetchingAvailableProductLocaleInfo:null,availableProductCountries:E,availableProductLocales:i})},75235:(it,ge,s)=>{"use strict";s.d(ge,{h:()=>V});var i=s(66880),E=s(60134),y=s(28505),A=s(8632),M=s(54436),D=s(58298),b=s(81420),f=s(59381),S=s(11364),O=s(61375),C=s(3464),_=s(55685),U=s(89806),w=s(15214),R=s(23922);let V=(()=>{class x extends y.XK{constructor(X,K,ne){super(X),this.store=X,this.akitaRouterQuery=K,this.translateService=ne}get language(){return`${this.translateService.getActiveLang()||"en"}`.toLowerCase()}get country(){return`${this.akitaRouterQuery.country||"SA"}`.toUpperCase()}get availableCountries(){return this.getValue().availableProductCountries||O.Vj}get availableLanguages(){return this.getValue().availableProductLocales||O.cW}validateLocale(X,K){const ne={language:`${X||this.language||"en"}`.toLowerCase(),country:`${K||this.country||"SA"}`.toUpperCase()};return this.availableLanguages.includes(ne.language)||(ne.language="en"),this.availableCountries.includes(ne.country)||(ne.country="SA"),ne}selectLanguage(){return this.translateService.langChanges$.pipe((0,A.F)(),(0,M.T)(X=>`${X||"en"}`.toLowerCase()))}selectCountry(){return this.akitaRouterQuery.selectCountry().pipe((0,M.T)(X=>`${i.T7.indexOf(X)>=0?X:"US"}`.toUpperCase()))}getIsFetchingProduct(X){const K=this.validateLocale(),ne=K.language,le=K.country;return!!X&&!!(((this.getValue().fetchingProducts||{})[ne]||{})[le]||{})[X]}getIsFetchingProductVariants(X){const K=this.validateLocale(),ne=K.language,le=K.country;return X&&((((this.getValue().fetchingProductVariants||{})[ne]||{})[le]||{})[X]||!1)||!1}getErrorFetchingProduct(X){const K=this.language,ne=this.country;if(X){const ve=((this.getValue().errorFetchingProducts||{})[K]||{})[ne]||{};return ve[X]?(0,E._)(ve[X]):null}return null}getProduct(X,K,ne){const le=this.validateLocale(K,ne),Y=le.language,ve=le.country;if(X){const se=((this.getValue().products||{})[Y]||{})[ve]||{};return(0,S.FF)(se[X]||null)}return null}getProductVariant(X,K,ne,le){const Y=this.validateLocale(ne,le),ve=Y.language,Ie=Y.country;if(X&&K){const Ge=((this.getValue().productVariants||{})[ve]||{})[Ie]||[];return Ge[K]&&Ge[K].find(B=>B.id===X)||null}return null}getMatchingColorVariant(X,K,ne,le){const Y=this.validateLocale(),ve=Y.language,Ie=Y.country;if(K&&ne&&X){const Ge=((this.getValue().productVariants||{})[ve]||{})[Ie]||[];return le&&(Ge[X]=Ge[X].sort((B,Z)=>(B.price?.amount||0)-(Z.price?.amount||0))||[]),Ge[X]&&(Ge[X].find(B=>B.colorCode===ne&&B.storage===K.storage&&B.strapColorCode===K.strapColorCode&&B.keyboard===K.keyboard&&B.wifiCellular===K.wifiCellular&&B.sim===K.sim&&B.condition===K.condition&&B.inStock)||Ge[X].find(B=>B.colorCode===ne&&B.storage===K.storage&&B.strapColorCode===K.strapColorCode&&B.keyboard===K.keyboard&&B.inStock)||Ge[X].find(B=>B.colorCode===ne&&B.inStock))||null}return null}getMatchingStorageVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.storage===ne&&Ge.strapColorCode===K.strapColorCode&&Ge.keyboard===K.keyboard&&Ge.wifiCellular===K.wifiCellular&&Ge.sim===K.sim&&Ge.inStock)||null}return null}getMatchingScreenSizeVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.screenSize===ne&&Ge.strapColorCode===K.strapColorCode&&Ge.keyboard===K.keyboard&&Ge.condition===K.condition&&Ge.inStock)||null}return null}getMatchingKeyboardVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.storage===K.storage&&Ge.keyboard===ne&&Ge.strapColorCode===K.strapColorCode&&Ge.condition===K.condition&&Ge.inStock)||null}return null}getMatchingNetworkVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.storage===K.storage&&Ge.wifiCellular===ne&&Ge.strapColorCode===K.strapColorCode&&Ge.condition===K.condition&&Ge.inStock)||null}return null}getMatchingSimVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.storage===K.storage&&Ge.sim===ne&&Ge.strapColorCode===K.strapColorCode&&Ge.condition===K.condition&&Ge.inStock)||null}return null}getMatchingConditionVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.storage===K.storage&&Ge.keyboard===K.keyboard&&Ge.wifiCellular===K.wifiCellular&&Ge.sim===K.sim&&Ge.strapColorCode===K.strapColorCode&&Ge.screenSize===K.screenSize&&Ge.condition===ne&&Ge.inStock)||null}return null}getMatchingStrapVariant(X,K,ne){const le=this.validateLocale(),Y=le.language,ve=le.country;if(K&&ne&&X){const se=((this.getValue().productVariants||{})[Y]||{})[ve]||[];return se[X]&&se[X].find(Ge=>Ge.colorCode===K.colorCode&&Ge.storage===K.storage&&Ge.keyboard===K.keyboard&&Ge.strapColorCode===ne&&Ge.condition===K.condition&&Ge.inStock)||null}return null}getProductFromSearchID(X){if(X){const K=this.getValue().productSearch||{};let ne;for(const le of Object.keys(K)){const Y=K[le]?.pages||[];for(const ve of Y)ne=ve.results.find(Ie=>Ie.id===X)}return(0,S.FF)(ne)}return null}getProductFilters(X){const K=this.getValue().availableProductFilters||{};return(0,b.n)(K[X||"-"])}hasProductFilters(X){return(X||"-")in(this.getValue().availableProductFilters||{})}getIsFetchingProductFilters(X){return!!(this.getValue().fetchingAvailableProductFilters||{})[X||"-"]}getErrorFetchingProductFilters(X){const K=this.getValue().fetchingAvailableProductFilters||{};return K[X||"-"]?(0,E._)(K[X||"-"]):null}getSearchPageCount(X){return(((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).pages||[]).length||0}getIsSearchingPage(X,K){return!(!K&&0!==K||!(((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).loadingPage||[])[K])}getErrorSearchingPage(X,K){if(K||0===K){const Y=((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).errorLoadingPage||[];return Y[K]?(0,E._)(Y[K]):null}return null}getSearchPage(X,K){if(K||0===K){const Y=((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).pages||[];return Y[K]?(0,f.z)(Y[K]):null}return null}getIsSearchLoading(X){return(((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).loadingPage||[]).includes(!0)}getErrorSearchLoading(X){const le=((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).errorLoadingPage||[];for(const Y of le)if(Y)return(0,E._)(Y);return null}hasSearchResultsPage(X,K){return!(!K&&0!==K||!(((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).pages||[])[K])}getSearchPages(X){const K=new Array(0),Y=((this.getValue().productSearch||{})[X||"-"]||(0,O.nf)()).pages||[];for(const ve of Y)K.push(...ve.results);return K}getIsFetchingInsurance(X,K,ne){return!!(((this.getValue().fetchingInsurance||{})[X]||{})[K]||{})[ne]}getInsurance(X,K,ne){const le=this.validateLocale(K,ne),Y=le.language,ve=le.country;return X&&(((this.getValue().insurances||{})[Y]||{})[ve]||{})[X]||null}selectIsFetchingProduct(X){return(0,D.z)([this.select(),this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([K,ne,le])=>!!X&&(ne=O.cW.includes(ne)?ne:"en",!!(((K?.fetchingProducts||{})[ne]||{})[le]||{})[X])),(0,A.F)())}selectErrorFetchingProduct(X){return(0,D.z)([this.select(),this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([K,ne,le])=>{if(X){ne=O.cW.includes(ne)?ne:"en";const Ie=((K?.errorFetchingProducts||{})[ne]||{})[le]||{};return Ie[X]?(0,E._)(Ie[X]):null}return null}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectProduct(X){return(0,D.z)([this.select(),this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([K,ne,le])=>{if(X){const ve=(K?.products||{})[ne=O.cW.includes(ne)?ne:"en"]||{};return le=O.Vj.includes(le)?le:"SA",(0,S.FF)((ve[le]||{})[X])}return null}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectProductFilters(X){return this.select().pipe((0,M.T)(K=>(0,b.n)((K?.availableProductFilters||{})[X||"-"])),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectAvailableProductOptions(X){const K={...new C.zO,country:this.country,language:this.language};X&&X.length&&(K.model=[...new Array(0),X]);const ne=(0,C.ms)(K);return this.selectProductFilters(ne)}selectIsFetchingProductFilters(X){return this.select().pipe((0,M.T)(K=>!!(K?.fetchingAvailableProductFilters||{})[X||"-"]),(0,A.F)())}selectErrorFetchingProductFilters(X){return this.select().pipe((0,M.T)(K=>{const ne=K?.fetchingAvailableProductFilters||{};return ne[X||"-"]?(0,E._)(ne[X||"-"]):null}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectIsSearchingPage(X,K){return this.select().pipe((0,M.T)(ne=>!(!K&&0!==K||!(((ne?.productSearch||{})[X||"-"]||(0,O.nf)()).loadingPage||[])[K])),(0,A.F)())}selectErrorSearchingPage(X,K){return this.select().pipe((0,M.T)(ne=>{if(K||0===K){const ve=((ne?.productSearch||{})[X||"-"]||(0,O.nf)()).errorLoadingPage||[];return ve[K]?(0,E._)(ve[K]):null}return null}),(0,A.F)((ne,le)=>JSON.stringify(ne)===JSON.stringify(le)))}selectSearchPage(X,K){return this.select().pipe((0,M.T)(ne=>{if(K||0===K){const ve=((ne?.productSearch||{})[X||"-"]||(0,O.nf)()).pages||[];return ve[K]?(0,f.z)(ve[K]):null}return null}),(0,A.F)((ne,le)=>JSON.stringify(ne)===JSON.stringify(le)))}selectIsSearching(X){return this.select().pipe((0,M.T)(K=>(((K?.productSearch||{})[X||"-"]||(0,O.nf)()).loadingPage||[]).includes(!0)),(0,A.F)())}selectSearchHasNextPage(X){return this.select().pipe((0,M.T)(K=>((K?.productSearch||{})[X||"-"]||(0,O.nf)()).hasNextPage),(0,A.F)())}selectErrorSearching(X){return this.select().pipe((0,M.T)(K=>{const Y=((K?.productSearch||{})[X||"-"]||(0,O.nf)()).errorLoadingPage||[];for(const ve of Y)if(ve)return(0,E._)(ve);return null}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectSearch(X){return this.select().pipe((0,M.T)(K=>{const ne=new Array(0),ve=((K?.productSearch||{})[X||"-"]||(0,O.nf)()).pages||[];for(const Ie of ve)ne.push(...Ie?.results||[]);return ne}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectProductVariants(X){return this.select().pipe((0,M.T)(K=>{const ne=this.validateLocale();return X?(((K?.productVariants||{})[ne.language]||{})[ne.country]||{})[X]||[]:new Array(0)}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectIsSearchingProductVariants(X){return(0,D.z)([this.select(),this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([K,ne,le])=>!!X&&!!(((K?.fetchingProductVariants||{})[ne]||{})[le]||{})[X]),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectErrorSearchingProductVariants(X){return(0,D.z)([this.select(),this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([K,ne,le])=>X&&((((K?.errorFetchingProductVariants||{})[ne]||{})[le]||{})[X]||null)||null),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectValidateLocale(X,K){return(0,D.z)([this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([ne,le])=>{const Y={language:`${X||ne||"en"}`.toLowerCase(),country:`${K||le||"US"}`.toUpperCase()};return this.availableLanguages.includes(Y.language)||(Y.language="en"),this.availableCountries.includes(Y.country)||(Y.country="US"),Y}))}selectProductSearchHints(){return this.select().pipe((0,M.T)(X=>X?.productSearchHints||[]),(0,A.F)((X,K)=>JSON.stringify(X)===JSON.stringify(K)))}getGettingProductSearchHints(){return!!this.getValue().fetchingProductSearchHints}selectProductInsurance(X){return this.select().pipe((0,M.T)(K=>{const ne=this.validateLocale().language,le=this.validateLocale().country,Ie=((K?.insurances||{})[ne]||{})[le]||{},He=new Array;return X.forEach(se=>{Ie[se]&&He.push(Ie[se])}),He}),(0,A.F)((K,ne)=>JSON.stringify(K)===JSON.stringify(ne)))}selectIsFetchingInsurances(){return this.select().pipe((0,M.T)(X=>!!X.fetchingInsurances),(0,A.F)())}selectIsFetchingInsurance(X){return(0,D.z)([this.select(),this.selectLanguage(),this.selectCountry()]).pipe((0,M.T)(([K,ne,le])=>{const Ie=((K?.fetchingInsurance||{})[ne]||{})[le]||{};return X.some(He=>!!Ie[He])}),(0,A.F)())}static{this.\u0275fac=function(K){return new(K||x)(_.KVO(U.c),_.KVO(w.O),_.KVO(R.JO))}}static{this.\u0275prov=_.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},52405:(it,ge,s)=>{"use strict";s.d(ge,{w:()=>B});var i=s(60134),E=s(28505),y=s(10047),A=s(49283),M=s(95212),D=s(42567),b=s(54436),f=s(8632),S=s(3464),O=s(59381),C=s(55685),_=s(89806),U=s(75235),w=s(23922),R=s(78766),V=s(60602),x=s(11364),z=s(81420);class X{constructor(J){this.country=[...J?.country||[]],this.language=[...J?.language||[]]}}var K=s(61375),ne=s(92864);let le=(()=>{class Z{static{this.variantType=""}constructor(){this.id="",this.color="",this.colorCode="",this.storage="",this.screenSize="",this.storageUnit="",this.keyboard="",this.wifiCellular="",this.condition="",this.strapColor="",this.strapColorCode="",this.sim="",this.inStock=!1,this.price=new ne.H}get variantType(){return Z.variantType}}return Z})();const Y=Z=>{const J=new le;return J.id=Z?.id||"",J.color=Z?.color.name||"",J.colorCode=Z?.color.code||"",J.storage=Z?.storage||"",J.storageUnit=Z?.storage_unit||Z?.storagUnit||"GB",J.screenSize=Z?.screenSize||Z?.screen_size||"",J.keyboard=Z?.keyboard||"",J.wifiCellular=Z?.wifiCellular||Z?.wifi_cellular||"",J.sim=Z?.sim||"",J.condition=Z?.condition||"",J.strapColor=Z?.strapColor?.name||Z?.strap_color?.name||"",J.strapColorCode=Z?.strapColorCode?.code||Z?.strap_color?.code||"",J.inStock=Z?.inStock||Z?.in_stock||!1,J.price=ne.H.fromJson(Z?.price)||new ne.H,J};var Ie=s(58205),He=s(28249),se=s(15214);let Ge=(()=>{class Z{constructor(re,ce,Se){this.akitaAuthQuery=re,this.akitaProductsQuery=ce,this.akitaRouterQuery=Se,this.translateService=(0,C.WQX)(w.JO),this.http=(0,C.WQX)(V.Qq)}getProduct(re,ce){if(!re)return(0,y.of)(null);const Se=this.akitaAuthQuery.accessToken;let we={};Se&&(we={Authorization:`Bearer ${Se}`});let oe=new V.Nl,Ee=`${this.translateService.getActiveLang()||""}`.toLowerCase();return Ee&&(Ee=K.cW.includes(Ee)?Ee:"en",oe=oe.set("language",Ee)),ce&&(oe=oe.set("country",`${ce||""}`.toUpperCase())),this.http.get((0,R.G6)(`api/v2/product/${re}`,!0),{responseType:"json",headers:we,params:oe}).pipe((0,A.W)(Pe=>(0,M.$)(()=>(0,i._)(Pe))),(0,b.T)(Pe=>(0,x.FF)(Pe)))}search(re){const ce=this.akitaAuthQuery.accessToken;let Se={};ce&&(Se={Authorization:`Bearer ${ce}`});let we=new V.Nl;if(re)for(const oe of Object.keys(re||{})){const Ee=re[oe];if(Ee)if(S.ls.includes(`${oe||""}`))for(const Pe of[...Ee||[]])we=we.append(`${oe}`,(0,S.d$)(Pe));else we=we.set(`${oe}`,(0,S.d$)(Ee))}return re?.sorting||(we=we.set("sorting","RANKED_BY_SALES")),this.http.get((0,R.G6)("api/v2/product",!0),{responseType:"json",headers:Se,params:we}).pipe((0,A.W)(oe=>(0,M.$)(()=>(0,i._)(oe))),(0,b.T)(oe=>(0,O.z)(oe)))}getAvailableFiltersForSearch(re){const ce=this.akitaAuthQuery.accessToken;let Se={};ce&&(Se={Authorization:`Bearer ${ce}`});let we=new V.Nl;if(re)for(const oe of Object.keys(re||{})){const Ee=re[oe];if(Ee)if(S.ls.includes(`${oe||""}`))for(const Pe of[...Ee||[]])we=we.append(`${oe}`,`${Pe||""}`);else we=we.set(`${oe}`,`${Ee||""}`)}if(!re?.country||!re?.language){const oe=this.akitaProductsQuery.validateLocale(`${this.translateService.getActiveLang()||""}`.toLowerCase(),this.akitaRouterQuery.country||"");oe.country&&(we=we.set("country",oe.country)),oe.language&&(we=we.set("language",oe.language))}return this.http.get((0,R.G6)("api/v2/product/options",!0),{responseType:"json",headers:Se,params:we}).pipe((0,A.W)(oe=>(0,M.$)(()=>(0,i._)(oe))),(0,b.T)(oe=>(0,z.n)(oe)))}getProductOptions(re){const ce=this.akitaAuthQuery.accessToken;let Se={};ce&&(Se={Authorization:`Bearer ${ce}`});let we=new V.Nl;if(!re||!re.length)return(0,y.of)(null);{we=we.set("model",re);const oe=this.akitaProductsQuery.validateLocale(`${this.translateService.getActiveLang()||""}`.toLowerCase(),this.akitaRouterQuery.country||"");oe.country&&(we=we.set("country",oe.country)),oe.language&&(we=we.set("language",oe.language))}return this.http.get((0,R.G6)("api/v2/product/options",!0),{responseType:"json",headers:Se,params:we}).pipe((0,A.W)(oe=>(0,M.$)(()=>(0,i._)(oe))),(0,b.T)(oe=>(0,z.n)(oe)))}getAvailableCountryAndLanguages(){const re=this.akitaAuthQuery.accessToken;let ce={};return re&&(ce={Authorization:`Bearer ${re}`}),this.http.get((0,R.G6)("api/v2/product/locales",!0),{responseType:"json",headers:ce}).pipe((0,A.W)(Se=>(0,M.$)(()=>(0,i._)(Se))),(0,b.T)(Se=>new X(Se)))}getVariantsFromModel(re,ce){const Se=this.akitaAuthQuery.accessToken;let we={};Se&&(we={Authorization:`Bearer ${Se}`});let oe=new V.Nl;if(!re||!re.length)return(0,y.of)(Array(0));{oe=oe.set("model",re);const Ee=this.akitaProductsQuery.validateLocale(`${this.translateService.getActiveLang()||""}`.toLowerCase(),this.akitaRouterQuery.country||"");Ee.country&&(oe=oe.set("country",Ee.country)),Ee.language&&(oe=oe.set("language",Ee.language))}return ce&&(oe=oe.set("category",ce)),this.http.get((0,R.G6)("api/v2/product/variants",!0),{responseType:"json",headers:we,params:oe}).pipe((0,A.W)(Ee=>(0,M.$)(()=>(0,i._)(Ee))),(0,b.T)(Ee=>(Z=>{const J=new Array(0);if(Z&&Z.length>0)for(const re of Z[0].variants){const ce=Y(re);ce&&J.push(ce)}return J})(Ee.model)))}getProductTitles(re,ce){const Se=btoa("api:Lax4UpCrx9TAmhea"),we=new V.Lr({"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${Se}`});return this.http.get((0,R.G6)("api/v2/product/titles",!0),{responseType:"json",headers:we,params:{language:re,country:ce}}).pipe((0,A.W)(oe=>(0,M.$)(()=>(0,i._)(oe))),(0,b.T)(oe=>oe))}getInsurances(re,ce,Se){const we=this.akitaAuthQuery.accessToken;let oe={};we&&(oe={Authorization:`Bearer ${we}`});let Ee=new V.Nl;if(Se)for(const Pe of Se)Ee=Ee.append("insurance_id",Pe);return Ee=Ee.set("currency",re),Ee=Ee.set("language",ce),this.http.get((0,R.G6)("api/v1/insurance",!0),{responseType:"json",headers:oe,params:Ee}).pipe((0,A.W)(Pe=>(0,M.$)(()=>(0,i._)(Pe))),(0,b.T)(Pe=>(0,Ie.aC)(Pe)))}static{this.\u0275fac=function(ce){return new(ce||Z)(C.KVO(He.P),C.KVO(U.h),C.KVO(se.O))}}static{this.\u0275prov=C.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})(),B=(()=>{class Z{constructor(re,ce,Se,we,oe){this.zone=re,this.store=ce,this.query=Se,this.translateService=we,this.productsApiService=oe}searchAsync(re){return this.search(re).subscribe({next:()=>{},error:()=>{}})}search(re){const ce=(0,S.ms)(re);return this.query.hasSearchResultsPage(ce,re?.page||0)||this.query.getIsSearchLoading(ce)?(0,y.of)(this.query.getSearchPage(ce)||new O.I):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("search()"),this.store.setIsSearchingResults(ce,re?.page,!0),this.store.setErrorSearchingResults(ce,re?.page,null)})}),this.productsApiService.search(re).pipe((0,A.W)(we=>{const oe=(0,i._)(we);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("search() - error"),this.store.setIsSearchingResults(ce,re?.page,!1),this.store.setErrorSearchingResults(ce,re?.page,oe)})}),(0,M.$)(()=>oe)}),(0,D.M)(we=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("search() - done"),this.store.setIsSearchingResults(ce,re?.page,!1),this.store.setSearchResults(ce,re?.page,we)})})})))}getAvailableSearchOptionsAsync(re){return this.getAvailableSearchOptions(re).subscribe({next:()=>{},error:()=>{}})}getAvailableSearchOptions(re){const ce=(0,S.ms)(re);return this.query.hasProductFilters(ce)||this.query.getIsFetchingProductFilters(ce)?(0,y.of)(this.query.getProductFilters(ce)):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableSearchOptions()"),this.store.setIsFetchingAvailableProductFilters(ce,!0),this.store.setErrorFetchingAvailableProductFilters(ce,null)})}),this.productsApiService.getAvailableFiltersForSearch(re).pipe((0,A.W)(Se=>{const we=(0,i._)(Se);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableSearchOptions() - error"),this.store.setIsFetchingAvailableProductFilters(ce,!1),this.store.setErrorFetchingAvailableProductFilters(ce,we)})}),(0,M.$)(()=>we)}),(0,D.M)(Se=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableSearchOptions() - done"),this.store.setIsFetchingAvailableProductFilters(ce,!1),this.store.setAvailableProductFilters(ce,Se)})})})))}getAvailableProductOptionsAsync(re){return this.getAvailableProductOptions(re).subscribe({next:()=>{},error:()=>{}})}getAvailableProductOptions(re){const ce={...new S.zO,country:this.query.country,language:this.query.language};re.length&&(ce.model=[...new Array(0),re]);const Se=(0,S.ms)(ce);return this.query.hasProductFilters(Se)||this.query.getIsFetchingProductFilters(Se)?this.query.select().pipe((0,b.T)(we=>we.availableProductFilters[Se]),(0,f.F)((we,oe)=>JSON.stringify(we)===JSON.stringify(oe))):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableSearchOptions()"),this.store.setIsFetchingAvailableProductFilters(Se,!0),this.store.setErrorFetchingAvailableProductFilters(Se,null)})}),this.productsApiService.getProductOptions(re).pipe((0,A.W)(we=>{const oe=(0,i._)(we);return(0,M.$)(()=>oe)}),(0,D.M)(we=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableSearchOptions() - done"),this.store.setIsFetchingAvailableProductFilters(Se,!1),this.store.setAvailableProductFilters(Se,we)})})})))}getProductAsync(re){return this.getProduct(re).subscribe({next:()=>{},error:()=>{}})}getProduct(re){const ce=this.query.validateLocale(),Se=ce.language,we=ce.country;return this.query.getIsFetchingProduct(re)?(0,y.of)(null):this.query.getProduct(re)?(0,y.of)(this.query.getProduct(re)):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getProduct()"),this.store.setIsProductFetching(Se,we,re,!0),this.store.setErrorFetchingProduct(Se,we,re,null)})}),this.productsApiService.getProduct(re,we).pipe((0,A.W)(oe=>{const Ee=(0,i._)(oe);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getProduct() - error"),this.store.setIsProductFetching(Se,we,re,!1),this.store.setErrorFetchingProduct(Se,we,re,Ee)})}),(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getProduct() - done"),this.store.setIsProductFetching(Se,we,re,!1),this.store.setProduct(Se,we,re,oe)})})})))}getProductVariantsByModelAsync(re,ce){return this.getProductVariantsByModel(re,ce).subscribe({next:()=>{},error:()=>{}})}getProductVariantsByModel(re,ce){const Se=this.query.validateLocale(`${this.translateService.getActiveLang()||""}`.toLowerCase(),this.query.country||""),we=Se?.country||"US",oe=Se?.language||"en";return re&&oe&&we?this.query.getValue().productVariants[oe]&&this.query.getValue().productVariants[oe][we]&&this.query.getValue().productVariants[oe][we][re]||this.query.getIsFetchingProductVariants(re)?(0,y.of)(new Array(0)):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getModelVariants()"),this.store.setIsSearchingProductVariants(oe,we,re,!0),this.store.setErrorSearchingProductVariants(oe,we,re)})}),this.productsApiService.getVariantsFromModel(re,ce).pipe((0,A.W)(Ee=>{const Pe=(0,i._)(Ee);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getModelVariants() - error"),this.store.setIsSearchingProductVariants(oe,we,re,!1),this.store.setErrorSearchingProductVariants(oe,we,re,Pe)})}),(0,M.$)(()=>Pe)}),(0,D.M)(Ee=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getModelVariants() - done"),this.store.setIsSearchingProductVariants(oe,we,re,!1),this.store.setProductVariants(oe,we,re,Ee)})})}))):(0,y.of)(new Array(0))}getAvailableProductLocaleInfoAsync(){return this.getAvailableProductLocaleInfo().subscribe({next:()=>{},error:()=>{}})}getAvailableProductLocaleInfo(){return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableProductLocaleInfo()"),this.store.setGettingAvailableProductLocaleInfo(!0),this.store.setErrorGettingAvailableProductLocaleInfo(null)})}),this.productsApiService.getAvailableCountryAndLanguages().pipe((0,A.W)(re=>{const ce=(0,i._)(re);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableProductLocaleInfo() - error"),this.store.setGettingAvailableProductLocaleInfo(!1),this.store.setErrorGettingAvailableProductLocaleInfo(ce)})}),(0,M.$)(()=>ce)}),(0,D.M)(re=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("getAvailableProductLocaleInfo() - done"),this.store.setGettingAvailableProductLocaleInfo(!1),this.store.setAvailableProductLocaleInfo(re)})})}))}fetchProductSearchHintsAsync(){return this.fetchProductSearchHints().subscribe({next:()=>{},error:()=>{}})}fetchProductSearchHints(){const re=this.query.validateLocale().language,ce=this.query.validateLocale().country;return this.query.getGettingProductSearchHints()?(0,y.of)(new Array(0)):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchProductSearchHints()"),this.store.setGettingProductSearchHints(!0),this.store.setErrorGettingProductSearchHints(null)})}),this.productsApiService.getProductTitles(re,ce).pipe((0,A.W)(Se=>{const we=(0,i._)(Se);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchProductSearchHints() - error"),this.store.setGettingProductSearchHints(!1),this.store.setErrorGettingProductSearchHints(we)})}),(0,M.$)(()=>we)}),(0,D.M)(Se=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchProductSearchHints() - done"),this.store.setGettingProductSearchHints(!1),this.store.setProductSearchHints(Se)})})})))}fetchProductInsurances(re,ce){this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchInsurances()")})});const Se=re?.price?.currency||"SAR",we=re?.insuranceIds||[];return 0===we.length||this.store.getValue().fetchingInsurances?(0,y.of)(null):((0,E.hO)(()=>{this.store.setFetchingInsurances(!0)}),this.productsApiService.getInsurances(Se,ce,we).pipe((0,A.W)(oe=>{const Ee=(0,i._)(oe);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchInsurances() - error"),this.store.setFetchingInsurances(!1)})}),(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchInsurances() - done"),this.store.setProductInsurances(re?.id||"",ce,re?.country||"SA",oe),this.store.setFetchingInsurances(!1)})}),this.zone.run(()=>{(0,E.hO)(()=>{this.store.setFetchingInsurances(!1)})})})))}fetchProductInsuranceAsync(re){return this.fetchProductInsurance(re).subscribe({next:()=>{},error:()=>{}})}fetchProductInsurance(re){this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchInsurances() - "+re?.insuranceIds?.join(","))})});const ce=this.query.validateLocale().language,Se=re?.country||"SA",we=re?.price?.currency||"SAR",oe=re?.insuranceIds||[];return 0===oe.length||this.query.getIsFetchingInsurance(ce,Se,oe.join("-"))||oe.every(Ee=>this.query.getInsurance(Ee,Se,ce))?(0,y.of)(null):((0,E.hO)(()=>{this.store.setFetchingInsurance(ce,Se,re?.insuranceIds?.join("-")||"-",!0)}),this.productsApiService.getInsurances(we,ce,oe).pipe((0,A.W)(Ee=>{const Pe=(0,i._)(Ee);return this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchInsurances() - error"),(0,E.hO)(()=>{this.store.setFetchingInsurance(ce,Se,re?.insuranceIds?.join("-")||"-",!1)})})}),(0,M.$)(()=>Pe)}),(0,D.M)(Ee=>{this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("fetchInsurances() - done"),this.store.setProductInsurances(re?.id||"",ce,re?.country||"SA",Ee),(0,E.hO)(()=>{this.store.setFetchingInsurance(ce,Se,re?.insuranceIds?.join("-")||"-",!1)})})})})))}addSelectedInsuranceToProduct(re,ce){const Se=this.query.validateLocale(),we=Se.language,oe=Se.country;this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)("addSelectedInsuranceToProduct()"),this.store.addSelectedInsuranceToProduct(re,ce,we,oe)})})}static{this.\u0275fac=function(ce){return new(ce||Z)(C.KVO(C.SKi),C.KVO(_.c),C.KVO(U.h),C.KVO(w.JO),C.KVO(Ge))}}static{this.\u0275prov=C.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},89806:(it,ge,s)=>{"use strict";s.d(ge,{c:()=>f});var i=s(47701),E=s(28505),y=s(61375),A=s(11364),M=s(59381),D=s(92864),b=s(55685);let f=class c0 extends E.il{constructor(){super((0,y.eZ)())}setProduct(O,C,_,U){O&&C&&_&&this.update(w=>{const R={...w.products||{}},V=R[O]||{},x=V[C]||{};return x[_]=U||null,V[C]=x,R[O]=V,{products:R}})}setIsProductFetching(O,C,_,U){O&&C&&_&&this.update(w=>{const R={...w.fetchingProducts||{}},V=R[O]||{},x=V[C]||{};return x[_]=!!U,V[C]=x,R[O]=V,{fetchingProducts:R}})}setErrorFetchingProduct(O,C,_,U){O&&C&&_&&this.update(w=>{const R={...w.errorFetchingProducts||{}},V=R[O]||{},x=V[C]||{};return x[_]=U||null,V[C]=x,R[O]=V,{errorFetchingProducts:R}})}setAvailableProductFilters(O,C){this.update(_=>{const U={..._.availableProductFilters||{}};return U[O||"-"]=C||null,{availableProductFilters:U}})}setIsFetchingAvailableProductFilters(O,C){this.update(_=>{const U={..._.fetchingAvailableProductFilters||{}};return U[O||"-"]=!!C,{fetchingAvailableProductFilters:U}})}setErrorFetchingAvailableProductFilters(O,C){this.update(_=>{const U={..._.errorFetchingAvailableProductFilters||{}};return U[O||"-"]=C||null,{errorFetchingAvailableProductFilters:U}})}setSearchResults(O,C,_){this.update(U=>{const w={...U.productSearch||{}},R=w[O||"-"]||(0,y.nf)();return R.pages[C||0]=(0,M.z)(_),R.hasNextPage=!!R.pages[C||0]?.next,w[O||"-"]=R,{productSearch:w}})}setIsSearchingResults(O,C,_){this.update(U=>{const w={...U.productSearch||{}},R=w[O||"-"]||(0,y.nf)();return R.loadingPage[C||0]=!!_,w[O||"-"]=R,{productSearch:w}})}setErrorSearchingResults(O,C,_){this.update(U=>{const w={...U.productSearch||{}},R=w[O||"-"]||(0,y.nf)();return R.errorLoadingPage[C||0]=_||null,w[O||"-"]=R,{productSearch:w}})}setProductVariants(O,C,_,U){O&&C&&_&&U&&U.length>0&&this.update(w=>{const R={...w.productVariants||{}},V=R[O]||{},x=V[C]||{};let z=x[_]||{};return z=U,x[_]=z,V[C]=x,R[O]=V,{productVariants:R}})}setIsSearchingProductVariants(O,C,_,U){O&&C&&_&&this.update(w=>{const R={...w.fetchingProductVariants||{}},V=R[O]||{},x=V[C]||{};let z=x[_]||!1;return z=!!U,x[_]=z,V[C]=x,R[O]=V,{fetchingProductVariants:R}})}setErrorSearchingProductVariants(O,C,_,U){O&&C&&_&&this.update(w=>{const R={...w.errorFetchingProductVariants||{}},V=R[O]||{},x=V[C]||{};let z=x[_]||null;return z=U||null,x[_]=z,V[C]=x,R[O]=V,{errorFetchingProductVariants:R}})}setGettingAvailableProductLocaleInfo(O){this.update({fetchingAvailableProductLocaleInfo:!!O})}setAvailableProductLocaleInfo(O){this.update({availableProductCountries:[...O?.country||[]],availableProductLocales:[...O?.language||[]]})}setErrorGettingAvailableProductLocaleInfo(O){this.update({errorFetchingAvailableProductLocaleInfo:O||null})}setProductSearchHints(O){this.update({productSearchHints:O||[]})}setGettingProductSearchHints(O){this.update({fetchingProductSearchHints:!!O})}setErrorGettingProductSearchHints(O){this.update({errorFetchingProductSearchHints:O||null})}setProductInsurances(O,C,_,U){C&&_&&O&&U&&U.length>0&&this.update(w=>{const R={...w.products||{}},V=R[C]||{},x=V[_]||{};if(x[O]){const ne={...x[O]||new A.Yt,insurances:U};x[O]=ne,V[_]=x,R[C]=V}const z={...w.insurances||{}},X=z[C]||{},K=X[_]||{};return U.forEach(ne=>{K[ne.id]=ne}),X[_]=K,z[C]=X,{products:R,insurances:z}})}addSelectedInsuranceToProduct(O,C,_,U){(O||_||U)&&this.update(w=>{const R={...w.products||{}},V=R[_]||{},x=V[U]||{},z=x[O]||new A.Yt,X=C||null;return X&&(X.price=D.H.fromJson({amount:X.price.amount,currency:X.price.currency})||new D.H),z.selectedInsurance=X,x[O]=z,V[U]=x,R[_]=V,{products:R}})}setFetchingInsurances(O){this.update({fetchingInsurances:O})}setFetchingInsurance(O,C,_,U){this.update(w=>{const R={...w.fetchingInsurance||{}},V=R[O]||{},x=V[C]||{};return x[_]=U,V[C]=x,R[O]=V,{fetchingInsurance:R}})}static{this.\u0275fac=function(C){return new(C||c0)}}static{this.\u0275prov=b.jDH({token:c0,factory:c0.\u0275fac,providedIn:"root"})}};f=(0,i.Cg)([(0,E.g7)({name:"products",resettable:!0})],f)},40231:(it,ge,s)=>{"use strict";s.d(ge,{xm:()=>A});class i{constructor(){this.title="",this.headline="",this.buttonText="",this.image="",this.backgroundColor="",this.backgroundImage="",this.isLight=!1,this.url="",this.isButtonOutlined=!1}}const y=M=>{let D=null;return M&&(D=new i,D.title=M.title||"",D.headline=M.headline||"",D.buttonText=M.button_text||M.buttonText||"",D.image=M.image||"",D.backgroundColor=M.background_color||M.backgroundColor||"",D.backgroundImage=M.background_image||M.backgroundImage||"",D.isLight=!(!M.is_light&&!M.isLight),D.url=M.url||"",D.isButtonOutlined=!(!M.is_button_outlined&&!M.isButtonOutlined)),D},A=M=>{const D=new Array(0);if(M)for(const b of M){const f=y(b);f&&D.push(f)}return D}},23196:(it,ge,s)=>{"use strict";s.d(ge,{UO:()=>M});var i=s(92864);class E{constructor(){this.country="",this.discountCode="",this.value=new i.H}}const A=D=>{let b=null;return D&&(b=new E,b.country=D.country||"",b.discountCode=D.discount_code||D.discountCode||"",b.value=i.H.fromJson(D.value)||new i.H),b},M=D=>{const b=new Array(0);if(D)for(const f of D){const S=A(f);S&&b.push(S)}return b}},21025:(it,ge,s)=>{"use strict";s.d(ge,{$k:()=>E,E0:()=>y});class i{constructor(){this.termTitle="",this.termHeadline="",this.termAction="",this.image="",this.background_color="",this.model=""}}const E=A=>{let M=null;try{M=y(JSON.parse(`${A||""}`))}catch{}return M},y=A=>{let M=null;return A&&(M=new i,M.termTitle=A.term_title||A.termTitle||"",M.termHeadline=A.term_headline||A.termHeadline||"",M.termAction=A.term_action||A.termAction||"",M.image=A.image||"",M.background_color=A.background_color||"",M.model=A.model||""),M}},29919:(it,ge,s)=>{"use strict";s.d(ge,{B:()=>K});var i=s(28505),E=s(54436),y=s(8632),A=s(10047),M=s(11125),D=s(40231),b=s(23196),f=s(21025);class S{constructor(le,Y){this.minDays=le||0,this.maxDays=Y||0}}class O{constructor(){this.country="",this.values=new S}}const _=ne=>{let le=null;return ne&&(le=new O,le.country=ne.country||"",le.values.minDays=ne.value.min_days||ne.value.minDays||0,le.values.maxDays=ne.value.max_days||ne.value.maxDays||0),le};var w=s(55685),R=s(33004),V=s(75235);const X=["original","ppVar1"];let K=(()=>{class ne extends i.XK{constructor(Y,ve){super(Y),this.store=Y,this.akitaProductsQuery=ve}get isFeatureDeliveryEnabled(){return this.getValue().featureDeliveryEnabled}get sharedImageCategory(){return console.log("this.getValue().sharedImageCategory",this.getValue().sharedImageCategory),this.getValue().sharedImageCategory}selectSharedImageCategory(){return this.select().pipe((0,E.T)(Y=>Y.sharedImageCategory),(0,y.F)())}get newsletterSubtitle(){return this.getValue().newsletterSubtitle}getNewsletterSubtitle(){const Y=this.akitaProductsQuery.language||"en";let ve=null;const Ie=this.getValue().newsletterSubtitle;return Ie&&Ie[Y]&&(ve=Ie[Y]||null),ve}get allowCashOnDelivery(){return!!this.getValue().featureCashOnDelivery}get experimentCashOnDeliveryMode(){return this.getValue().experimentCashOnDelivery||null}get sendWebReviewsTo(){return this.getValue().sendWebReviewsTo||null}get experimentCheckout(){return this.getValue().experimentCheckout||null}get leaveDeliverySurveyQuestion(){return`${this.getValue().leaveDeliverySurveyQuestion||"leave_cart_survey_question_1"}`}get banners(){return(0,D.xm)(this.getValue().featureFeatured?.banners)}get banner(){return(0,f.E0)(this.getValue().featuredBanner)}get paymentProvider(){return this.getValue().paymentProvider||M.s}get checkoutFlow(){return this.getValue().checkoutFlow||"DELIVERY_FLOW"}getCardOnlyDiscountCodeForCountry(Y){const ve=(0,b.UO)(this.getValue().cardOnlyDiscountCodes);let Ie=null;if(Y){const He=`${Y||""}`.toUpperCase();for(const se of ve)if(se.country===He){Ie=se;break}}return Ie}getDeliveryEstimateForCountry(Y){const ve=(ne=>{const le=new Array(0);if(ne)for(const Y of ne){const ve=_(Y);ve&&le.push(ve)}return le})(this.getValue().deliveryEstimates);let Ie=new S(5,7);if(Y){const He=`${Y||""}`.toUpperCase();for(const se of ve)if(se.country===He){Ie=se.values;break}}return Ie}selectIsFeatureDeliveryEnabledLoggi(){return this.select().pipe((0,E.T)(Y=>Y.featureDeliveryEnabledLoggi),(0,y.F)())}selectAllowCashOnDelivery(){return this.select().pipe((0,E.T)(Y=>Y.featureCashOnDelivery),(0,y.F)())}selectBanners(){return this.select().pipe((0,E.T)(Y=>(0,D.xm)(Y.featureFeatured?.banners)),(0,y.F)((Y,ve)=>JSON.stringify(Y)===JSON.stringify(ve)))}selectBanner(){return this.select().pipe((0,E.T)(Y=>(0,f.E0)(Y.featuredBanner)),(0,y.F)((Y,ve)=>JSON.stringify(Y)===JSON.stringify(ve)))}selectFeatureFeaturedSellerId(){return this.select().pipe((0,E.T)(Y=>`${Y.featureFeatured?.sellerId||""}`),(0,y.F)())}selectCurrentConditionSet(){return this.select().pipe((0,E.T)(Y=>`${Y.currentConditionSet||""}`),(0,y.F)())}selectPaymentProvider(){return this.select().pipe((0,E.T)(Y=>{const ve=Y.paymentProvider;let Ie=M.s;return"STRIPE_V2"===ve?Ie="STRIPE_V2":"CHECKOUT"===ve&&(Ie="CHECKOUT"),Ie}),(0,y.F)())}selectPopularDevices(){return this.select().pipe((0,E.T)(Y=>Y.popularDevices),(0,y.F)())}selectBestSellersPerCategory(){return this.select().pipe((0,E.T)(Y=>Y.bestSellersPerCategory),(0,y.F)())}selectBestProductsTamaraTest(){return this.select().pipe((0,E.T)(Y=>Y.bestProductsTamaraTest),(0,y.F)())}selectPopularDevice(Y,ve){return this.select().pipe((0,E.T)(Ie=>{const He=Ie.popularDevices;return He&&Y&&ve&&He[Y]&&He[Y][ve]?He[Y][ve]:null}),(0,y.F)())}selectCarouselBannerSlides(){return this.select().pipe((0,E.T)(Y=>Y.carouselBannerSlides),(0,y.F)())}selectFeatureBestSellers(){return this.select().pipe((0,E.T)(Y=>Y.featureBestSellers),(0,y.F)())}selectTestProductPage(){return this.select().pipe((0,E.T)(Y=>X.includes(Y.testProductPage)?Y.testProductPage:"original"),(0,y.F)())}selectCheckoutFlow(){return this.select().pipe((0,E.T)(Y=>{const ve=Y.checkoutFlow;let Ie="DELIVERY_FLOW";return"DELIVERY_FLOW"===ve?Ie="DELIVERY_FLOW":"CHECKOUT_SESSION"===ve?Ie="CHECKOUT_SESSION":"CHECKOUT_SESSION_NOEXPRESS"===ve&&(Ie="CHECKOUT_SESSION_NOEXPRESS"),Ie}),(0,y.F)())}selectAddressSearch(){return this.select().pipe((0,E.T)(Y=>Y.addressSearch),(0,y.F)())}selectExpressCheckout(){return this.select().pipe((0,E.T)(Y=>Y.expressCheckout),(0,y.F)())}selectExperimentCheckout(){return this.select().pipe((0,E.T)(Y=>Y.experimentCheckout),(0,y.F)())}selectTamaraPayNowExperiment(){return this.select().pipe((0,E.T)(Y=>Y.tamaraPayNowExperiment),(0,y.F)())}selectIsLoading(){return this.select().pipe((0,E.T)(Y=>Y.isLoading),(0,y.F)())}selectExperimentCashOnDelivery(){return this.select().pipe((0,E.T)(Y=>Y.experimentCashOnDelivery||null),(0,y.F)())}selectCardOnlyDiscountCodeForCountry(Y){return this.select().pipe((0,E.T)(ve=>{const Ie=(0,b.UO)(ve.cardOnlyDiscountCodes);let He=null;if(Y){const se=`${Y||""}`.toUpperCase();for(const Ge of Ie)if(Ge.country===se){He=Ge;break}}return He}),(0,y.F)((ve,Ie)=>JSON.stringify(ve)===JSON.stringify(Ie)))}selectDeliveryEstimateForCountry(Y){const ve=new S(5,7);return this.select().pipe((0,E.T)(Ie=>{const He=Ie.deliveryEstimates;if(Y){const se=`${Y||""}`.toUpperCase();let Ge=He.find(B=>B.country===se);return Ge?Ge.values:(Ge=He.find(B=>"SA"===B.country),Ge?.values||ve)}return ve}),(0,y.F)())||(0,A.of)(ve)}selectDeliveryEstimate(){return this.select().pipe((0,E.T)(Y=>Y.deliveryEstimates||null),(0,y.F)())}static{this.\u0275fac=function(ve){return new(ve||ne)(w.KVO(R.W6),w.KVO(V.h))}}static{this.\u0275prov=w.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},73536:(it,ge,s)=>{"use strict";s.d(ge,{o:()=>Qt});var i=s(28505),E=s(33004),y=s(38355),A=s(8632),M=s(33055),D=s(40231);class b{constructor(){this.sellerId="",this.banners=new Array(0)}}const f=mt=>{let Ft=null;try{Ft=S(JSON.parse(`${mt||""}`))}catch{}return Ft},S=mt=>{let Ft=null;return mt&&(Ft=new b,Ft.sellerId=mt.seller_id||mt["seller-id"]||mt.sellerId||"",Ft.banners=(0,D.xm)(mt.banners)),Ft};var O=s(23196),C=s(21025),_=s(31134);class U{constructor(){this.en="",this.ar=""}}const w=mt=>{let Ft=null;try{Ft=R(JSON.parse(`${mt||""}`))}catch{}return Ft},R=mt=>{let Ft=null;return mt&&(Ft=new U,Ft.en=mt.en||"",Ft.ar=mt.ar||""),Ft};class V{constructor(){this.laptop="",this.phone="",this.tablet="",this.audio="",this.accessory="",this.watch="",this.gaming=""}}const x=mt=>{let Ft=null;try{Ft=z(JSON.parse(`${mt||""}`))}catch{}return Ft},z=mt=>{let Ft=null;return mt&&(Ft=new V,Ft.laptop=mt.laptop||"",Ft.phone=mt.phone||"",Ft.tablet=mt.tablet||"",Ft.audio=mt.audio||"",Ft.accessory=mt.accessory||"",Ft.watch=mt.watch||"",Ft.gaming=mt.gaming||""),Ft};class X{constructor(){this.bestSeller=0,this.goodDeal=0,this.oftenBoughtWith=0,this.accessories=[]}}class K{constructor(){}}const ne=mt=>{let Ft=new K;return(mt=JSON.parse(mt))&&mt.categories.length&&(Ft=new K,mt.categories.forEach(At=>{Ft[At.value]={},At.brands.forEach(lt=>{try{(Ft[At.value]||{})[lt.value]=le(lt)}catch(Le){console.log("error: ",Le)}})})),Ft},le=mt=>{let Ft=new X;return mt&&(Ft=new X,Ft.bestSeller=mt.best_seller||0,Ft.goodDeal=mt.good_deal||0,Ft.oftenBoughtWith=mt.often_bought_with||0,Ft.accessories=mt.accessories||[]),Ft};class Y{constructor(){this.bestSellers=[],this.newSuppliers=[]}}const ve=mt=>{let Ft=new Y;return mt&&(mt=JSON.parse(mt),Ft=new Y,Ft.bestSellers=mt.best_sellers||[],Ft.newSuppliers=mt.new_suppliers||[]),Ft};class Ie{constructor(){}}const He=mt=>{let Ft=new Ie;return(mt=JSON.parse(mt))&&mt.categories.length&&(Ft=new Ie,mt.categories.forEach(At=>{Ft[At.value]=At.best_sellers})),Ft},se=mt=>{let Ft=new Ie;return Ft=mt=JSON.parse(mt),Ft};class Ge{constructor(){this.folder="",this.bgColor="",this.urlLink=""}}const B=mt=>{let Ft=new Array(0);return(mt=JSON.parse(mt))&&mt.slides.length>0&&(Ft=new Array(0),mt.slides.forEach(At=>{Ft.push(Z(At))})),Ft},Z=mt=>{let Ft=new Ge;return mt&&(Ft=new Ge,Ft.folder=mt.folder||"",Ft.bgColor=mt.bg_color||"",Ft.urlLink=mt.link_url||""),Ft};var J=s(55685),re=s(93518),ce=s(11125),Se=s(15214);const we="checkout",oe="payment-provider",Ee="tamara-experiment",Pe="leave-survey-question",$e="cod",Xe="cod-experiment",De="checkout-flow",We="address-search";let st=(()=>{class mt{constructor(At){if(this.akitaRouterQuery=At,this.isBrowser=this.akitaRouterQuery.isBrowser,this.initialValues={"tamara-experiment":"original","checkout-flow":"CHECKOUT_SESSION_NOEXPRESS","address-search":!0},this.isBrowser){const lt=document.body.attributes;for(let Le=0;Le<lt.length;Le+=1){const ze=lt[Le];if(ze.name===oe){let Ue=ce.s;"STRIPE_V2"===ze.value?Ue="STRIPE_V2":"CHECKOUT"===ze.value&&(Ue="CHECKOUT"),this.initialValues={...this.initialValues,[oe]:Ue}}else if(ze.name===De){let Ue="CHECKOUT_SESSION";"DELIVERY_FLOW"===ze.value?Ue="DELIVERY_FLOW":"CHECKOUT_SESSION"===ze.value?Ue="CHECKOUT_SESSION":"CHECKOUT_SESSION_NOEXPRESS"===ze.value&&(Ue="CHECKOUT_SESSION_NOEXPRESS"),this.initialValues={...this.initialValues,[De]:Ue}}else ze.name===We?this.initialValues={...this.initialValues,[We]:"true"===ze.value}:ze.name===Ee?this.initialValues={...this.initialValues,[Ee]:`${ze.value||""}`}:ze.name===Pe?this.initialValues={...this.initialValues,[Pe]:`${ze.value||""}`}:ze.name===$e?this.initialValues={...this.initialValues,[$e]:`${ze.value||""}`}:ze.name===Xe?this.initialValues={...this.initialValues,[Xe]:`${ze.value||""}`}:ze.name===we&&(this.initialValues={...this.initialValues,[we]:`${ze.value||""}`})}}}monitorExperiments(){return new M.c(At=>{if(At.next({PaymentProvider:this.initialValues[oe]||ce.s,TamaraPayNowExperiment:this.initialValues[Ee],LeaveOrderSurveyQuestion:this.initialValues[Pe],FeatureCashOnDelivery:"false"!==this.initialValues[$e],ExperimentCashOnDelivery:this.initialValues[Xe],CheckoutFlow:this.initialValues[De],AddressSearch:this.initialValues["address-search"]}),this.isBrowser)try{new MutationObserver(Le=>{const ze={};for(const Ue of Le){if(Ue.attributeName===oe){const Dt=(document?.body?.attributes)[oe]?.value;let Gt=ce.s;"STRIPE_V2"===Dt?Gt="STRIPE_V2":"CHECKOUT"===Dt&&(Gt="CHECKOUT"),ze.PaymentProvider=Gt}if(Ue.attributeName===De){const Dt=(document?.body?.attributes)[De]?.value;let Gt="CHECKOUT_SESSION";"DELIVERY_FLOW"===Dt?Gt="DELIVERY_FLOW":"CHECKOUT_SESSION"===Dt?Gt="CHECKOUT_SESSION":"CHECKOUT_SESSION_NOEXPRESS"===Dt&&(Gt="CHECKOUT_SESSION_NOEXPRESS"),ze.CheckoutFlow=Gt}if(Ue.attributeName===We){const Dt=(document?.body?.attributes)[We]?.value;ze.AddressSearch="true"===Dt}if(Ue.attributeName===we){const Dt=(document?.body?.attributes)[we]?.value;ze.ExperimentCheckout=`${Dt||""}`}if(Ue.attributeName===Ee){const Dt=(document?.body?.attributes)[Ee]?.value;ze.TamaraPayNowExperiment=`${Dt||""}`}if(Ue.attributeName===Pe){const Dt=(document?.body?.attributes)[Pe]?.value;ze.LeaveOrderSurveyQuestion=`${Dt||""}`}if(Ue.attributeName===$e){const Dt=(document?.body?.attributes)[$e]?.value;ze.FeatureCashOnDelivery="false"!=`${Dt||""}`}if(Ue.attributeName===Xe){const Dt=(document?.body?.attributes)[Xe]?.value;ze.ExperimentCashOnDelivery=`${Dt||""}`}}At.next(ze)}).observe(document.body,{attributes:!0,childList:!0,subtree:!0})}catch{}})}static{this.\u0275fac=function(lt){return new(lt||mt)(J.KVO(Se.O))}}static{this.\u0275prov=J.jDH({token:mt,factory:mt.\u0275fac,providedIn:"root"})}}return mt})();var gt=s(75235);const dt={featureDeliveryEnabled:!1,featureDeliveryValidationBypass:!1,featureDeliveryEnabledLoggi:!0,featureAppUpdate:!1,payloadPriorityInfo:"",leaveDeliverySurveyQuestion:"",featureFeatured:null,featuredBanner:null,deliveryEstimates:E.hx,currentConditionSet:null,tamaraPayNowExperiment:null},Wt=[{country:"SA",discount_code:"CARDONLYSA",value:{amount:30,currency:"SAR"}},{country:"AE",discount_code:"CARDONLYAE",value:{amount:30,currency:"AED"}},{country:"KW",discount_code:"CARDONLYKW",value:{amount:30,currency:"KWD"}},{country:"OM",discount_code:"CARDONLYOM",value:{amount:30,currency:"OMR"}},{country:"QA",discount_code:"CARDONLYQA",value:{amount:30,currency:"QAR"}},{country:"BH",discount_code:"CARDONLYBH",value:{amount:30,currency:"BHD"}}];let Qt=(()=>{class mt{constructor(At,lt,Le,ze,Ue,Dt){this.zone=At,this.store=lt,this.firebaseService=Le,this.googleOptimizeService=ze,this.akitaProductsQuery=Ue,this.akitaRouterQuery=Dt,this.monitorExperiments()}monitorExperiments(){const At=new y.yU;return this.zone.runOutsideAngular(()=>{At.add(this.googleOptimizeService.monitorExperiments().pipe((0,A.F)((lt,Le)=>JSON.stringify(lt)===JSON.stringify(Le))).subscribe({next:lt=>{0!==Object.keys(lt).length&&this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("monitorExperiments()"),lt.TamaraPayNowExperiment&&this.store.updateTamaraPayNowExperiment(lt.TamaraPayNowExperiment),lt.PaymentProvider&&this.store.updatePaymentProvider(lt.PaymentProvider),lt.CheckoutFlow&&this.store.updateCheckoutFlow(lt.CheckoutFlow),void 0!==lt.AddressSearch&&this.store.updateAddressSearch(lt.AddressSearch),lt.LeaveOrderSurveyQuestion&&this.store.updateLeaveOrderSurveyQuestion(lt.LeaveOrderSurveyQuestion),lt.ExperimentCheckout&&this.store.updateExperimentCheckout(lt.ExperimentCheckout),lt.ExperimentCashOnDelivery&&(this.store.updateExperimentCashOnDelivery(lt.ExperimentCashOnDelivery),this.loadCardDiscountsFromWindow())})})}}))}),At}loadCardDiscountsFromWindow(){this.zone.runOutsideAngular(()=>{let At=new Array(0);try{const lt=window.POPSY_CARD_ONLY_DISCOUNT;At=(0,O.UO)(lt&&lt.length>0?lt:Wt)}catch{}this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("loadCardDiscountsFromWindow()"),this.store.updateCardOnlyDiscountCodes(At)})})})}refreshPaymentProvider(){this.akitaProductsQuery.validateLocale()}getRemoteConfigAsync(){return this.getRemoteConfig().subscribe({next:()=>{},error:()=>{}})}getRemoteConfig(){return this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getRemoteConfig()"),this.store.setLoading(!0),this.store.setError(null)})}),new M.c(At=>{this.zone.runOutsideAngular(()=>{this.firebaseService.remoteConfig.then(lt=>{lt?(lt.settings.minimumFetchIntervalMillis=1e4,(0,_.uo)(lt).then(()=>{const Le=this.parseRemoteConfig(lt);this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getRemoteConfig() - done"),this.store.updateConfig(Le),this.store.setLoading(!1),this.store.setError(null)})}),At.next(Le),At.complete()}).catch(Le=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getRemoteConfig() - error"),this.store.setLoading(!1),this.store.setError(Le)})}),At.next(dt),At.complete()})):(At.next(dt),At.complete())}).catch(()=>{})})})}activateRemoteConfig(){return this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("activateRemoteConfig()"),this.store.setLoading(!0),this.store.setError(null)})}),new M.c(At=>{this.zone.runOutsideAngular(()=>{this.firebaseService.remoteConfig.then(lt=>{lt?(0,_.wT)(lt).then(()=>{const Le=this.parseRemoteConfig(lt);this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("activateRemoteConfig() - done"),this.store.updateConfig(Le),this.store.setLoading(!1),this.store.setError(null)})}),At.next(Le),At.complete()}).catch(Le=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("activateRemoteConfig() - error"),this.store.setLoading(!1),this.store.setError(Le)})}),At.next(dt),At.complete()}):(this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("activateRemoteConfig() - error"),this.store.setLoading(!1),this.store.setError({code:"RC_NOT_AVAILABLE",message:"Remote Config not available"})})}),At.next(dt),At.complete())}).catch(()=>{})})})}activateRemoteConfigAsync(){return this.activateRemoteConfig().subscribe({next:()=>{},error:()=>{}})}parseRemoteConfig(At){let lt={...dt};try{At&&(lt={featureDeliveryEnabled:(0,_.bJ)(At,"feature_delivery_enabled"),leaveDeliverySurveyQuestion:(0,_.ws)(At,"leave_delivery_survey_question"),featureFeatured:f((0,_.ws)(At,"feature_featured")),featuredBanner:(0,C.$k)((0,_.ws)(At,"featured_banner")),deliveryEstimates:E.hx,featureDeliveryValidationBypass:(0,_.bJ)(At,"feature_delivery_validation_bypass"),featureDeliveryEnabledLoggi:(0,_.bJ)(At,"feature_delivery_enabled_loggi"),featureAppUpdate:(0,_.bJ)(At,"feature_app_update"),payloadPriorityInfo:(0,_.ws)(At,"payload_priority_info"),currentConditionSet:(0,_.ws)(At,"current_condition_set"),popularDevices:ne((0,_.ws)(At,"popular_devices")),carouselBannerSlides:B((0,_.ws)(At,"carousel_banner_images")),bestSellersPerCategory:He((0,_.ws)(At,"best_sellers_per_category")),bestProductsTamaraTest:se((0,_.ws)(At,"best_products_tamara_test")),featureBestSellers:ve((0,_.ws)(At,"feature_best_sellers")),sharedImageCategory:x((0,_.ws)(At,"shared_image_category")),newsletterSubtitle:w((0,_.ws)(At,"newsletter_subtitle")),sendWebReviewsTo:(0,_.ws)(At,"send_web_reviews_to"),testProductPage:(0,_.ws)(At,"test_product_page")||this.akitaRouterQuery.queryParams.t||"original"})}catch{}return lt}static{this.\u0275fac=function(lt){return new(lt||mt)(J.KVO(J.SKi),J.KVO(E.W6),J.KVO(re.f),J.KVO(st),J.KVO(gt.h),J.KVO(Se.O))}}static{this.\u0275prov=J.jDH({token:mt,factory:mt.\u0275fac,providedIn:"root"})}}return mt})()},33004:(it,ge,s)=>{"use strict";s.d(ge,{W6:()=>D,hx:()=>A});var i=s(47701),E=s(28505),y=s(55685);const A=[{country:"BR",values:{minDays:7,maxDays:21}},{country:"US",values:{minDays:7,maxDays:7}},{country:"SA",values:{minDays:5,maxDays:7}},{country:"AE",values:{minDays:5,maxDays:7}}];let D=class u0 extends E.il{constructor(){super(function M(){return{featureDeliveryEnabled:!1,featureDeliveryValidationBypass:!1,featureDeliveryEnabledLoggi:!0,featureAppUpdate:!1,payloadPriorityInfo:"",leaveDeliverySurveyQuestion:"",featureFeatured:null,featuredBanner:null,cardOnlyDiscountCodes:new Array(0),deliveryEstimates:A,currentConditionSet:null,featureCashOnDelivery:!1,experimentCashOnDelivery:null,experimentCheckout:null,paymentProvider:null,isLoading:!1,error:null,tamaraPayNowExperiment:null,checkoutFlow:null,expressCheckout:!0,popularDevices:null,bestSellersPerCategory:null,bestProductsTamaraTest:null,featureBestSellers:null,sharedImageCategory:null,newsletterSubtitle:null,addressSearch:!0,testProductPage:"original",sendWebReviewsTo:null,carouselBannerSlides:null}}())}updateConfig(f){this.update({leaveDeliverySurveyQuestion:f.leaveDeliverySurveyQuestion,featureFeatured:f.featureFeatured,featuredBanner:f.featuredBanner,deliveryEstimates:A,featureDeliveryEnabled:f.featureDeliveryEnabled,featureDeliveryValidationBypass:f.featureDeliveryValidationBypass,featureDeliveryEnabledLoggi:f.featureDeliveryEnabledLoggi,featureAppUpdate:f.featureAppUpdate,payloadPriorityInfo:f.payloadPriorityInfo,currentConditionSet:f.currentConditionSet,popularDevices:f.popularDevices,bestSellersPerCategory:f.bestSellersPerCategory,bestProductsTamaraTest:f.bestProductsTamaraTest,featureBestSellers:f.featureBestSellers,sharedImageCategory:f.sharedImageCategory,newsletterSubtitle:f.newsletterSubtitle,testProductPage:f.testProductPage||"original",sendWebReviewsTo:f.sendWebReviewsTo,carouselBannerSlides:f.carouselBannerSlides})}updatePaymentProvider(f){this.update({paymentProvider:f})}updateCheckoutFlow(f){this.update({checkoutFlow:f})}updateAddressSearch(f){this.update({addressSearch:f})}updateExpressCheckout(f){this.update({expressCheckout:f})}updateExperimentCheckout(f){this.update({experimentCheckout:f})}updateLeaveOrderSurveyQuestion(f){this.update({leaveDeliverySurveyQuestion:`${f||""}`})}updateTamaraPayNowExperiment(f){this.update({tamaraPayNowExperiment:f||null})}updateFeatureCashOnDelivery(f){this.update({featureCashOnDelivery:!1!==f})}updateExperimentCashOnDelivery(f){this.update({experimentCashOnDelivery:f||null})}updateCardOnlyDiscountCodes(f){this.update({cardOnlyDiscountCodes:f||new Array(0)})}setLoading(f){this.update({isLoading:f})}setError(f){this.update({error:f})}static{this.\u0275fac=function(S){return new(S||u0)}}static{this.\u0275prov=y.jDH({token:u0,factory:u0.\u0275fac,providedIn:"root"})}};D=(0,i.Cg)([(0,E.g7)({name:"remote-config",resettable:!0})],D)},82437:(it,ge,s)=>{"use strict";s.d(ge,{X:()=>b});var i=s(28505),E=s(54436),y=s(8632),A=s(55685),M=s(40404),D=s(75235);let b=(()=>{class f extends i.XK{constructor(O,C){super(O),this.store=O,this.akitaProductsQuery=C}getStartingPrices(){const O=this.akitaProductsQuery.validateLocale().country;return this.getValue().startingPrices[O||""]||[]}selectStartingPricesError(){return this.select().pipe((0,E.T)(O=>O.errorFetchingStartingPrices||null),(0,y.F)((O,C)=>JSON.stringify(O)===JSON.stringify(C)))}selectFetchingStartingPrices(){return this.select().pipe((0,E.T)(O=>!!O.fetchingStartingPrices),(0,y.F)())}selectStartingPrices(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""]:[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectIPhones(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"Apple"===_.brand&&"SMARTPHONE"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectMacBooks(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"Apple"===_.brand&&"LAPTOP"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectIPads(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"Apple"===_.brand&&"TABLET"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectAirPods(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"Apple"===_.brand&&"HEADPHONES"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectTablets(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"TABLET"===_.category&&"Apple"!==_.brand&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectWatches(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"WATCH"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectAccessories(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"ACCESSORIES"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectEarbuds(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"EARBUDS"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectHeadphones(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"HEADPHONES"===_.category&&"Apple"!==_.brand&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectGaming(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"GAMING"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectSamsung(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>C.startingPrices[O||""]?C.startingPrices[O||""].filter(_=>"Samsung"===_.brand&&"SMARTPHONE"===_.category&&_.inStock):[]),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectLaptops(O){const C=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(_=>_.startingPrices[C||""]?_.startingPrices[C||""].filter(U=>U.brand===O&&"LAPTOP"===U.category&&U.inStock):[]),(0,y.F)((_,U)=>JSON.stringify(_)===JSON.stringify(U)))}selectBrands(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>{const _=new Array(0);return C.startingPrices[O||""]&&(C.startingPrices[O||""].forEach(U=>{!_.includes(U.brand)&&"Samsung"!==U.brand&&"Apple"!==U.brand&&_.push(U.brand)}),_.unshift("Apple")),_}),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}selectLaptopsBrands(){const O=this.akitaProductsQuery.validateLocale().country;return this.select().pipe((0,E.T)(C=>{const _=new Array(0);return C.startingPrices[O||""]&&(C.startingPrices[O||""].forEach(U=>{!_.includes(U.brand)&&"LAPTOP"===U.category&&U.inStock&&"Apple"!==U.brand&&_.push(U.brand)}),_.unshift("Apple")),_}),(0,y.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}static{this.\u0275fac=function(C){return new(C||f)(A.KVO(M.A),A.KVO(D.h))}}static{this.\u0275prov=A.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},40404:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>M});var i=s(47701),E=s(28505),A=s(55685);let M=class d0 extends E.il{constructor(){super({startingPrices:{},errorFetchingStartingPrices:null,fetchingStartingPrices:!1})}setStartingPrices(b,f){this.update(S=>{const O={...S.startingPrices||{}};return O[f]=b||[],{startingPrices:O}})}toggleFetchingStartingPrices(b){this.update({fetchingStartingPrices:!!b})}setErrorFetchingStartingPrices(b){this.update({errorFetchingStartingPrices:b||null})}static{this.\u0275fac=function(f){return new(f||d0)}}static{this.\u0275prov=A.jDH({token:d0,factory:d0.\u0275fac,providedIn:"root"})}};M=(0,i.Cg)([(0,E.g7)({name:"starting-prices",resettable:!0})],M)},71423:(it,ge,s)=>{"use strict";s.d(ge,{o:()=>f});var i=s(55685),E=s(10047),y=s(54436),A=s(78766),M=s(60602),D=s(19076),b=s(28249);let f=(()=>{class S{constructor(C){this.akitaAuthQuery=C,this.http=(0,i.WQX)(M.Qq)}getUser(C){if(!C)return(0,E.of)(null);const _=this.akitaAuthQuery.accessToken;let U={};return _&&(U={Authorization:`Bearer ${_}`}),this.http.get((0,A.G6)(`users/${C}`),{responseType:"json",headers:U}).pipe((0,y.T)(w=>D.Fv.fromJson(w)))}resetPassword(C,_){const U=new M.Nl;return this.http.put((0,A.G6)("users/me"),{password:_},{params:U,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${C}`}}).pipe((0,y.T)(w=>D.Fv.fromJson(w)))}verifySMS(C,_,U){let w={"Content-Type":"application/json; charset=utf-8"};return C&&(w={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${C}`}),this.http.post((0,A.G6)("users/me/sms/verification"),{firebase_user_id:_||null,firebase_auth_token:U||null},{responseType:"json",headers:w}).pipe((0,y.T)(R=>({is_verified:!!R?.is_verified})))}initResetPassword(C){const _=(new M.Nl).set("email",C);return this.http.post((0,A.G6)("register/lost-password"),{},{params:_,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,y.T)(()=>""))}static{this.\u0275fac=function(_){return new(_||S)(i.KVO(b.P))}}static{this.\u0275prov=i.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},66062:(it,ge,s)=>{"use strict";s.d(ge,{n:()=>S});var i=s(55685),E=s(95212),y=s(54436),A=s(78766),M=s(60602),D=s(6595),b=s(19076),f=s(60134);let S=(()=>{class O{constructor(){this.http=(0,i.WQX)(M.Qq)}uploadUserPicture(_,U){if(!_)return(0,E.$)(()=>(0,f._)("INVALID_ACCESS_TOKEN"));if(!U)return(0,E.$)(()=>(0,f._)("INVALID_IMAGE"));const w=(new M.Nl).set("token",_),R=new FormData;R.append("image",U);const V=btoa("api:Lax4UpCrx9TAmhea"),x=new M.Lr({Authorization:`Basic ${V}`}),z=new M.Kd("POST",(0,A.G6)("api/v3/upload",!0),R,{params:w,responseType:"json",headers:x,reportProgress:!0});return this.http.request(z).pipe((0,y.T)(X=>{if(X.type===M.hv.DownloadProgress||X.type===M.hv.UploadProgress)return{proggress:100*X.loaded/(X.total||1),picture:null};if(X.type===M.hv.Response){let K=null;return X?.body?.url&&(K=new D.Y,K.path=X.body.url),{proggress:1,picture:K}}return{proggress:0,picture:null}}))}updateInformation(_,U,w,R){const V=new M.Nl,x={};return U&&(x.email=U),w&&(x.description=w),R&&(x.picture=R),this.http.put((0,A.G6)("users/me"),x,{params:V,responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${_}`}}).pipe((0,y.T)(z=>b.Fv.fromJson(z)))}updateUser(_,U){if(!_)return(0,E.$)(()=>new Error("USER_NOT_LOGGED_IN"));if(!U?.phone)return(0,E.$)(()=>new Error("PHONE_NOT_SET"));let w={"Content-Type":"application/json; charset=utf-8"};return _&&(w={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${_}`}),this.http.put((0,A.G6)("users/me"),{phone:U?.phone},{responseType:"json",headers:w}).pipe((0,y.T)(R=>b.Fv.fromJson(R)))}updateUserLanguage(_,U){if(!_)return(0,E.$)(()=>new Error("USER_NOT_LOGGED_IN"));if(!U)return(0,E.$)(()=>new Error("LOCALE_NOT_SET"));let w={"Content-Type":"application/json; charset=utf-8"};return _&&(w={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${_}`}),this.http.put((0,A.G6)("users/me"),{locale:U},{responseType:"json",headers:w}).pipe((0,y.T)(R=>b.Fv.fromJson(R)))}deleteAccount(_){if(!_)return(0,E.$)(()=>new Error("User not loggedIn"));let U={};return _&&(U={Authorization:`Bearer ${_}`}),this.http.delete((0,A.G6)("users/me"),{responseType:"json",headers:U})}static{this.\u0275fac=function(U){return new(U||O)}}static{this.\u0275prov=i.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},38261:(it,ge,s)=>{"use strict";s.d(ge,{V:()=>D});var i=s(28505),E=s(19076),y=s(54436),A=s(55685),M=s(2680);let D=(()=>{class b extends i.qU{constructor(S){super(S),this.store=S}selectUser(S){return this.selectEntity(S).pipe((0,y.T)(O=>E.Fv.fromJson(O)))}getUser(S){return E.Fv.fromJson(this.getEntity(S))}selectIsUpdatingUserInfo(){return this.select().pipe((0,y.T)(S=>!!S.updatingUserInformation))}static{this.\u0275fac=function(O){return new(O||b)(A.KVO(M.q))}}static{this.\u0275prov=A.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}}return b})()},74058:(it,ge,s)=>{"use strict";s.d(ge,{e:()=>w});var i=s(28505),E=s(42567),y=s(58977),A=s(49283),M=s(95212),D=s(60134),b=s(55685),f=s(2680),S=s(38261),O=s(28249),C=s(1819),_=s(71423),U=s(66062);let w=(()=>{class R{constructor(x,z,X,K,ne,le,Y){this.zone=x,this.store=z,this.query=X,this.akitaAuthQuery=K,this.akitaAuthService=ne,this.usersAPIService=le,this.userInfoAPIService=Y}deleteAccount(){const x=this.akitaAuthQuery.accessToken;return x?this.userInfoAPIService.deleteAccount(x).pipe((0,E.M)(()=>{this.akitaAuthService.logout()})):y.w}updateUserLanguageAsync(x){return this.updateUserLanguage(x).subscribe({next:()=>{},error:()=>{}})}updateUserLanguage(x){const z=this.akitaAuthQuery.user;return z&&z?.locale!==x?(this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUserLanguage()"),this.store.toggleUpdatingUserLocale(!0),this.store.setUpdateUserLocaleError(null)})}),this.userInfoAPIService.updateUserLanguage(this.akitaAuthQuery.accessToken,x).pipe((0,A.W)(X=>(this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUserLanguage() - error"),this.store.toggleUpdatingUserLocale(!1),this.store.setUpdateUserLocaleError(X)})}),(0,M.$)(()=>(0,D._)(X)))),(0,E.M)(X=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUserLanguage() - done"),this.store.toggleUpdatingUserLocale(!1),X&&(this.query.getUser(X.id)&&this.store.remove(X.id),this.store.add(X))})})}))):y.w}updateUserInformation(x,z,X){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUserInformation()"),this.store.toggleUpdatingUserInformation(!0),this.store.setUpdateUserInformationError(null)})});const K=this.akitaAuthQuery.accessToken;return K?this.userInfoAPIService.updateInformation(K,x,z,X).pipe((0,A.W)(ne=>{const le=(0,D._)(ne);return this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUserInformation() - error"),this.store.toggleUpdatingUserInformation(!1),this.store.setUpdateUserInformationError(le)})}),(0,M.$)(()=>le)}),(0,E.M)(ne=>{if(ne){let le=null,Y=null,ve=null;x&&(le=ne.email),z&&(Y=ne.description),X&&(ve=ne.picture),this.akitaAuthService.udateProfileInformation(le,Y,ve),this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUserInformation() - done"),this.store.toggleUpdatingUserInformation(!1),this.store.addUserInfo(ne)})})}})):(0,M.$)(()=>(0,D._)("UNAUTHORIZED"))}updateUser(x){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUser()"),this.store.toggleUpdatingUserInformation(!0),this.store.setUpdateUserInformationError(null)})});const z=this.akitaAuthQuery.accessToken;return z?this.userInfoAPIService.updateUser(z,x).pipe((0,A.W)(X=>{const K=(0,D._)(X);return this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUser() - error"),this.store.toggleUpdatingUserInformation(!1),this.store.setUpdateUserInformationError(K)})}),(0,M.$)(()=>K)}),(0,E.M)(X=>{X&&this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateUser() - done"),this.store.toggleUpdatingUserInformation(!1),this.store.addUserInfo(X)})})})):(0,M.$)(()=>(0,D._)("UNAUTHORIZED"))}getUserAsync(x){return this.getUser(x).subscribe({next:()=>{}})}getUser(x){return this.usersAPIService.getUser(x).pipe((0,E.M)(z=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getUser() - done"),z&&this.store.upsertMany([{...z,cachedOn:new Date}])})})}))}verifySMS(x,z){(0,i.hO)(()=>{(0,i.d5)("verifySMS()"),this.store.toggleVerifyingSMS(!0)});const X=this.akitaAuthQuery.accessToken;if(X)return this.usersAPIService.verifySMS(X,x,z).pipe((0,A.W)(K=>{const ne=(0,D._)(K);return(0,i.hO)(()=>{(0,i.d5)("verifySMS() - error"),this.store.toggleVerifyingSMS(!1),this.store.setVerifyingSMSError(ne)}),(0,M.$)(()=>ne)}),(0,E.M)(()=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("verifySMS() - done"),this.store.toggleVerifyingSMS(!1)})})}));{const K=(0,D._)("UNAUTHORIZED");return(0,i.hO)(()=>{(0,i.d5)("verifySMS() - error"),this.store.toggleVerifyingSMS(!1),this.store.setVerifyingSMSError(K)}),(0,M.$)(()=>K)}}static{this.\u0275fac=function(z){return new(z||R)(b.KVO(b.SKi),b.KVO(f.q),b.KVO(S.V),b.KVO(O.P),b.KVO(C.M),b.KVO(_.o),b.KVO(U.n))}}static{this.\u0275prov=b.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},2680:(it,ge,s)=>{"use strict";s.d(ge,{q:()=>b});var i=s(47701),E=s(28505),y=s(19076),A=s(60134),M=s(55685);let b=class h0 extends E.D_{constructor(){super({updatingUserInformation:!1,errorUpdatingUserInformation:null,updatingUserLocale:!1,updateUserLocaleError:null,verifyingSMS:!1,errorVerifyingSMS:null})}toggleUpdatingUserLocale(S){this.update({updatingUserLocale:!!S})}setUpdateUserLocaleError(S){this.update({updateUserLocaleError:S||null})}toggleUpdatingUserInformation(S){this.update({updatingUserInformation:!!S})}setUpdateUserInformationError(S){this.update({errorUpdatingUserInformation:S?(0,A._)(S):null})}addUserInfo(S){const O=y.Fv.fromJson(S);O&&this.upsertMany([{...O,cachedOn:new Date}])}toggleVerifyingSMS(S){this.update({verifyingSMS:!!S})}setVerifyingSMSError(S){this.update({errorVerifyingSMS:S?(0,A._)(S):null})}static{this.\u0275fac=function(O){return new(O||h0)}}static{this.\u0275prov=M.jDH({token:h0,factory:h0.\u0275fac,providedIn:"root"})}};b=(0,i.Cg)([(0,E.g7)({name:"users",resettable:!0})],b)},35226:(it,ge,s)=>{"use strict";s.d(ge,{et:()=>M,te:()=>D});var i=s(58205),E=s(11364);class y{constructor(){this.product=new E.Yt,this.metadata={color:"",storage:0,model:""},this.displayDate="",this.quantity=0}}const A=b=>{let f=null;return b&&(f=new y,f.product=(0,E.FF)(b.product)||new E.Yt,f.insurance=(0,i.eI)(b.insurance),f.metadata.color=b.metadata?.color||"",f.metadata.storage=b.metadata?.storage,f.metadata.model=b.metadata?.model||"",f.displayDate=b.display_date||b.displayDate||"",f.quantity=b.quantity||0),f},M=b=>{const f=new Array(0);if(b?.id)for(const S of b.orders){const O=b.insurances?.find(_=>_.product_id===S.product.id);S.insurance=O;const C=A(S);C&&f.push(C)}return f},D=b=>{const f={id:null,items:new Array(0),insurances:new Array(0),isLocked:!1,isProtected:!1,protectionPrice:null,sessionId:""};let S=null;const O=new Array(0);if(b?.id){for(const C of b.orders){const _=b.insurance?.find(w=>w.product_id===C.product.id);C.insurance=_;const U=A(C);U&&O.push(U),S||(S=C.product.price.currency)}f.sessionId=b.session_id||b.sessionId||"",f.id=b.id,f.items=O,f.insurances=(0,i.aC)(b.insurance),f.isLocked=b.is_locked||b.isLocked||!1,b.protection_price&&(f.protectionPrice={amount:b.protection_price,currency:S},f.isProtected=!0)}return f}},35671:(it,ge,s)=>{"use strict";s.d(ge,{i:()=>f});var i=s(34678),E=s(33055),y=s(35226),A=s(55685),M=s(15214);const D="popsy_ci";let f=(()=>{class S{constructor(C){this.akitaRouterQuery=C}readCartItems(){return new E.c(C=>{let _=new Array(0);if(this.akitaRouterQuery.isBrowser)try{const U=(0,i.A)();if(U){const w=U.localStorage.getItem(D);if(w){const R=JSON.parse(w);_=(0,y.et)(R)}}}catch{}C.next(_),C.complete()})}saveCartItemIDs(C){return new E.c(_=>{let U=!1;const w=C.map(R=>R?.product?.id||"");if(this.akitaRouterQuery.isBrowser)try{const R=(0,i.A)();if(R){const V=R.localStorage.getItem(D);V&&JSON.parse(V).forEach(z=>{w.includes(z)||w.unshift(z)}),R.localStorage.setItem(D,JSON.stringify(w)),U=!0}}catch{}_.next(U),_.complete()})}saveProductID(C){let _=!1;if(this.akitaRouterQuery.isBrowser)try{const U=(0,i.A)();if(U){const w=U.localStorage.getItem(D),R=w?JSON.parse(w):[];R.includes(C)||R.unshift(C),U.localStorage.setItem(D,JSON.stringify(R.slice(0,6))),_=!0}}catch{}return _}readProductIDs(){return new E.c(C=>{let _=new Array(0);if(this.akitaRouterQuery.isBrowser)try{const U=(0,i.A)();if(U){const w=U.localStorage.getItem(D);w&&(_=JSON.parse(w))}}catch{}C.next(_),C.complete()})}static{this.\u0275fac=function(_){return new(_||S)(A.KVO(M.O))}}static{this.\u0275prov=A.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},81192:(it,ge,s)=>{"use strict";s.d(ge,{D:()=>O});var i=s(28505),E=s(58298),y=s(54436),A=s(8632),M=s(92864),D=s(55685),b=s(43176),f=s(75235),S=s(35671);let O=(()=>{class C extends i.XK{constructor(U,w,R){super(U),this.store=U,this.akitaProductQuery=w,this.localCartStorageService=R}getId(){const U=this.akitaProductQuery.validateLocale().country;return this.getValue()[U]?this.getValue()[U].id:null}getIsLocked(){const U=this.akitaProductQuery.validateLocale().country;return!!this.getValue()[U]&&this.getValue()[U].isLocked}getSessionId(){const U=this.akitaProductQuery.validateLocale().country;return this.getValue()[U]?this.getValue()[U].sessionId:null}getLastSessionId(){const U=this.akitaProductQuery.validateLocale().country;return this.getValue()[U]?this.getValue()[U].lastSessionId:null}getCartItems(){const U=this.akitaProductQuery.validateLocale().country;return this.getValue()[U]&&this.getValue()[U].items||[]}selectId(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>U[w]?U[w].id:null),(0,A.F)())}selectLastSessionId(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>U[w]?U[w].lastSessionId:null),(0,A.F)())}selectLoadingCartItems(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>!(!U[w]||!U[w].loadingCartItems)),(0,A.F)())}selectUpdatingCart(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>!(!U[w]||!U[w].updatingCart)),(0,A.F)())}selectSavingCartItems(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>!(!U[w]||!U[w].savingCartItems)),(0,A.F)())}selectCartItems(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>U[w]?U[w].items||[]:new Array(0)))}selectTotalPrice(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>{const R=U[w].items||[],V=new M.H;let x={amount:0,currency:"SAR"};return R.length>0&&(x=R.reduce((z,X)=>(z.amount+=((X.product.price.amount||0)+(X?.insurance?.price?.amount||0))*(X?.quantity||1),z.currency=X.product.price.currency,z),{amount:0,currency:"SAR"})),{amount:x.amount+(V?.amount||0),currency:x.currency}}),(0,A.F)((U,w)=>U===w))}selectCartInsurances(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>U[w]?U[w].insurances:[]),(0,A.F)((U,w)=>U===w))}selectProtectionPrice(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>U[w].protectionPrice||null),(0,A.F)((U,w)=>U===w))}selectIsCartProtected(){return(0,E.z)([this.select(),this.akitaProductQuery.selectCountry()]).pipe((0,y.T)(([U,w])=>!!U[w].isProtected),(0,A.F)())}selectProductIdsFromStorage(){return this.localCartStorageService.readProductIDs().pipe((0,A.F)((U,w)=>U===w))}getIdsFragmentFromCart(){let U="";return this.getValue()[this.akitaProductQuery.validateLocale().country].items.forEach((w,R)=>{R>0&&(U=U.concat("-"));for(let V=1;V<=w.quantity;V++)V>1&&(U=U.concat("-")),U=U.concat(w.product.id)}),U}static{this.\u0275fac=function(w){return new(w||C)(D.KVO(b.o),D.KVO(f.h),D.KVO(S.i))}}static{this.\u0275prov=D.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},8908:(it,ge,s)=>{"use strict";s.d(ge,{g:()=>Ge});var i=s(78019),E=s(60134),y=s(28505),A=s(49283),M=s(95212),D=s(42567),b=s(10047),f=s(22900),S=s(55685),O=s(43176),C=s(31946),_=s(75235),U=s(60602),w=s(78766),R=s(54436),V=s(19152),x=s(35226);class z{constructor(){this.id="",this.orders=new Array(0),this.createdAt=new Date,this.modifiedAt=new Date,this.isEmpty=!1}}var K=s(72504);class ne{constructor(){this.isCovered=!1,this.country="",this.currency="",this.value=0}static fromJson(Z){let J=null;return Z&&(J=new ne,J.isCovered=Z.isCovered||!1,J.country=Z.country||"",J.currency=Z.currency||"",J.value=Z.value||0),J}}var le=s(28249),Y=s(81192),ve=s(15214);let Ie=(()=>{class B{constructor(J,re,ce,Se,we){this.akitaAuthQuery=J,this.akitaCartStore=re,this.akitaCartQuery=ce,this.akitaRouterQuery=Se,this.akitaProductsQuery=we,this.http=(0,S.WQX)(U.Qq)}readCartItems(){const J=this.akitaProductsQuery.validateLocale().country,re=this.akitaAuthQuery.accessToken||null,ce=this.akitaRouterQuery.queryParams.cart||null;let Se="",we={};if(ce)we={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${btoa("admin:fortytwo42")}`},Se=(0,w.G6)(`api/v2/cart/anonymous/${ce}`,!0);else if(re)we={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${re}`},Se=(0,w.G6)("api/v2/cart/",!0);else{const oe=K.hp.from("admin:fortytwo42").toString("base64"),Ee=this.akitaCartStore.getValue()[J]&&this.akitaCartStore.getValue()[J].id?this.akitaCartStore.getValue()[J].id:this.loadCartId();if(!Ee)return(0,b.of)(new Array(0));we={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${oe}`},Se=(0,w.G6)(`api/v2/cart/anonymous/${Ee}`,!0)}return this.http.get(Se,{responseType:"json",headers:we}).pipe((0,A.W)(()=>(0,b.of)(null)),(0,R.T)(oe=>oe.orders.map(Ee=>Ee.product.country)[0]===J?(0,x.te)(oe):[]))}createCartItems(J,re){const ce=this.akitaAuthQuery.accessToken||null;let Se="",we={},oe=!1;if(!J.length)return(0,M.$)(()=>(0,E._)({}));ce?(we={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${ce}`},Se=(0,w.G6)("api/v2/cart/",!0)):(oe=!0,we={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${btoa("admin:fortytwo42")}`},Se=(0,w.G6)("api/v2/cart/anonymous",!0));const Ee=this.akitaProductsQuery.validateLocale(),Pe=Array(0);return J.forEach($e=>{$e.product.id&&Pe.push({product_id:$e.product.id,quantity:$e.quantity})}),this.http.post(Se,{client:"WEB",orders:Pe,insurances:re||[],country:Ee.country,language:Ee.language},{responseType:"json",headers:we}).pipe((0,A.W)($e=>(0,M.$)(()=>(0,E._)($e))),(0,R.T)($e=>(this.akitaCartStore.updateCartId(Ee.country,$e?.id||""),this.akitaCartStore.updateSessionId(Ee.country,null),this.akitaCartStore.updateCartInsurances(Ee.country,$e.insurance),oe&&this.saveCartId($e?.id||null),$e)))}createCartAPI(J,re,ce=!0){const Se=this.akitaAuthQuery.accessToken||null;let we="",oe={},Ee=!1;if(!J.length)return(0,M.$)(()=>(0,E._)({}));Se?(oe={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${Se}`},we=(0,w.G6)("api/v2/cart/",!0)):(Ee=!0,oe={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${btoa("admin:fortytwo42")}`},we=(0,w.G6)("api/v2/cart/anonymous",!0));const Pe=this.akitaProductsQuery.validateLocale(),$e=Array(0);return J.forEach(Xe=>{Xe.product.id&&$e.push({product_id:Xe.product.id,quantity:Xe.quantity})}),this.http.post(we,{client:"WEB",orders:$e,insurances:re||[],country:Pe.country,language:Pe.language,is_protected_order:ce},{responseType:"json",headers:oe}).pipe((0,A.W)(Xe=>(0,M.$)(()=>(0,E._)(Xe))),(0,R.T)(Xe=>(Ee&&this.saveCartId(Xe?.id||null),(0,x.te)(Xe))))}updateCartAPI(J,re,ce=!0){const Se=this.akitaAuthQuery.accessToken||null,we=this.akitaProductsQuery.validateLocale().country;let Pe,oe="",Ee={};Se?(Ee={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${Se}`},Pe=this.akitaCartQuery.getId(),oe=(0,w.G6)(`api/v2/cart/${Pe}`,!0)):(Ee={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${btoa("admin:fortytwo42")}`},Pe=this.akitaCartStore.getValue()[we]&&this.akitaCartStore.getValue()[we].id?this.akitaCartStore.getValue()[we].id:this.loadCartId(),oe=(0,w.G6)(`api/v2/cart/anonymous/${Pe}`,!0));const $e=new Array(0);for(const De of J)De.product&&$e.push({product_id:De.product.id,quantity:De.quantity});const Xe=new Array(0);if(re&&re.length)for(const De of re)Xe.push({insurance_id:De.id||De.insurance_id,product_id:De.productId||De.product_id,quantity:De.quantity});return this.http.put(oe,{client:"WEB",orders:$e,insurances:Xe,is_protected_order:ce},{responseType:"json",headers:Ee}).pipe((0,A.W)(De=>(0,M.$)(()=>(0,E._)(De))),(0,R.T)(De=>(0,x.te)(De)))}deleteCart(){const J=this.akitaAuthQuery.accessToken||null,re=this.akitaProductsQuery.validateLocale().country;let we,ce="",Se={};return J?(Se={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${J}`},we=this.akitaCartQuery.getId(),ce=(0,w.G6)(`api/v2/cart/${we}`,!0)):(Se={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${btoa("admin:fortytwo42")}`},we=this.akitaCartStore.getValue()[re]&&this.akitaCartStore.getValue()[re].id?this.akitaCartStore.getValue()[re].id:this.loadCartId(),ce=(0,w.G6)(`api/v2/cart/anonymous/${we}`,!0)),this.http.delete(ce,{responseType:"json",headers:Se}).pipe((0,A.W)(oe=>(0,M.$)(()=>(0,E._)(oe))),(0,R.T)(oe=>(this.removeCartId(),oe)))}saveCartId(J){if(this.akitaRouterQuery.isBrowser)try{window.localStorage.setItem("popsy_cart",J)}catch{}}loadCartId(){if(this.akitaRouterQuery.isBrowser)try{return window.localStorage.getItem("popsy_cart")||null}catch{return null}return null}removeCartId(){if(this.akitaRouterQuery.isBrowser)try{return window.localStorage.removeItem("popsy_cart")||null}catch{return null}return null}restoreAnonymousCart(){const J=this.loadCartId();let re="",ce={};return J?(ce={"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${btoa("admin:fortytwo42")}`},re=(0,w.G6)(`api/v2/cart/anonymous/${J}`,!0),this.http.get(re,{responseType:"json",headers:ce}).pipe((0,A.W)(()=>(0,b.of)(null)),(0,R.T)(we=>(0,x.et)(we)||[]))):(0,b.of)(new Array(0))}transferAnonymousCart(){const J=this.akitaAuthQuery.accessToken||null,re=this.loadCartId();if(J&&re){const ce={"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${J}`},Se=(0,w.G6)(`cart/${re}/transfer`,!0);return this.http.put(Se,{responseType:"json",headers:ce}).pipe((0,A.W)(()=>(0,b.of)(null)),(0,R.T)(we=>(this.akitaCartStore.updateCartId(we?.id||""),(B=>{let Z=null;return B&&(Z=new z,Z.id=B?.id||"",Z.orders=(0,x.et)(B.orders),Z.createdAt=V.J.parseApiDate("created_at","createdAt",B)||new Date,Z.modifiedAt=V.J.parseApiDate("modified_at","modifiedAt",B)||new Date,Z.isEmpty=!(!B?.is_empty&&!B?.isEmpty),Z.sessionId=B?.session_id||B?.sessionId||""),Z})(we))))}return(0,b.of)(null)}getAvailableProtection(J){const re=btoa("api:GKbwgZ9rJBf8oggS"),ce=new U.Lr({"Content-Type":"application/json; charset=utf-8",Authorization:`Basic ${re}`}),Se=(0,w.G6)(`api/v1/insurance/orderprotection?session_id=${J}`,!0);return this.http.get(Se,{responseType:"json",headers:ce}).pipe((0,A.W)(()=>(0,b.of)(null)),(0,R.T)(we=>ne.fromJson(we)))}static{this.\u0275fac=function(re){return new(re||B)(S.KVO(le.P),S.KVO(O.o),S.KVO(Y.D),S.KVO(ve.O),S.KVO(_.h))}}static{this.\u0275prov=S.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})();var He=s(35671);let Ge=(()=>{class B{constructor(J,re,ce,Se,we,oe){this.zone=J,this.store=re,this.analytics=ce,this.akitaProductQuery=Se,this.cartApiService=we,this.localCartStorageService=oe}reset(){this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("reset()"),this.store.reset()})})}transferAnonymousCartAsync(){return this.transferAnonymousCart().subscribe({next:()=>{},error:()=>{}})}transferAnonymousCart(){const J=this.akitaProductQuery.validateLocale().country;return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("transferAnonymousCart()"),this.store.toggleTransferingAnonymousCart(J,!0),this.store.setTransferingAnonymousCartError(null)})}),this.cartApiService.transferAnonymousCart().pipe((0,A.W)(re=>{const ce=(0,E._)(re);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("transferAnonymousCart() - error"),this.store.toggleTransferingAnonymousCart(J,!1),this.store.setTransferingAnonymousCartError(J,ce)})}),(0,M.$)(()=>ce)}),(0,D.M)(re=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("transferAnonymousCart() - done"),this.store.toggleTransferingAnonymousCart(J,!1),this.store.setTransferingAnonymousCartError(null),re&&(this.store.updateCartId(J,re.id),this.store.setCartItems(J,re.orders))})})}))}addNewProductToCartAsync(J,re){return this.addNewProductToCart(J,re).subscribe({next:()=>{},error:()=>{}})}addNewProductToCart(J,re,ce){const Se=this.akitaProductQuery.validateLocale(null,J.country).country;if(this.analytics.setSessionUserDetailsIntoDataLayer(),(0,i.rm)(this.analytics.logEventWrapper,this.analytics.firebaseRecordAddToCartADConversion,this.analytics.facebookTrackAddToCart,J,"?"),re&&(re.productId=J.id,(0,i.Nv)(this.analytics.logEventWrapper,re,ce||"product-page")),!this.store.getValue()[Se]||!this.store.getValue()[Se].id)return this.addProductToCleanCart(J,re);const we=this.store.getValue()[Se].items;let oe=JSON.parse(JSON.stringify(this.store.getValue()[Se].insurances));try{const Ee=we.findIndex(Pe=>Pe.product.id===J.id);if(-1!==Ee)we[Ee].quantity++,re&&-1!==oe.findIndex(Pe=>Pe.productId===re.productId)?oe=oe?.map(Pe=>(Pe.productId===re.productId&&(re.quantity=we[Ee].quantity,Pe=re),Pe)):re&&(re.quantity=we[Ee].quantity,we[Ee].insurance=re,oe.push(re));else{const Pe={product:J,metadata:{color:J?.color||"",storage:Number(`${J?.storage||0}`.toUpperCase().replace("GB","").replace("TB","")),model:J?.model||""},displayDate:"",quantity:1};we.push(Pe),re&&(re.quantity=Pe.quantity,Pe.insurance=re,oe.push(re))}}catch(Ee){console.log(Ee)}return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addNewProductToCart()")})}),0===we.length||!0===this.store.getValue()[Se].isLocked?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("prepareNewCart()"),this.store.updateLastSessionId(Se,this.store.getValue()[Se].sessionId)})}),this.cartApiService.createCartAPI(we,oe).pipe((0,A.W)(Ee=>{const Pe=(0,E._)(Ee);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addNewProduct() - error")})}),(0,M.$)(()=>Pe)}),(0,D.M)(Ee=>{Ee&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addNewProduct() - done"),this.store.toggleCartSaving(Se,!1),this.store.setCart(Se,Ee)})})}))):this.cartApiService.updateCartAPI(we,oe).pipe((0,A.W)(Ee=>{const Pe=(0,E._)(Ee);return console.log(Pe),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCartItems() - rollback")})}),"ENTITY_NOT_FOUND"===Pe.code?this.getCartItems():this.cartApiService.createCartAPI(we,oe).pipe((0,A.W)($e=>{const Xe=(0,E._)($e);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - rollback - error"),this.store.toggleCartUpdating(Se,!0)})}),(0,M.$)(()=>Xe)}),(0,D.M)($e=>{$e&&(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addNewProduct() - done"),this.store.toggleCartSaving(Se,!1)})}),this.store.setCart(Se,$e))}))}),(0,D.M)(Ee=>{Ee&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addNewProduct() - done"),this.store.toggleCartSaving(Se,!1),this.store.setCart(Se,Ee),this.localCartStorageService.saveProductID(J.id)})})}))}removeInsuranceFromCartAsync(J,re){return this.removeInsuranceFromCart(J,re).subscribe({next:()=>{},error:()=>{}})}removeInsuranceFromCart(J,re){const ce=this.akitaProductQuery.validateLocale().country;let Se=this.store.getValue()[ce].insurances;const we=this.store.getValue()[ce].items;return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("removeInsuranceFromCart()"),(0,i.LD)(this.analytics.logEventWrapper,J,re||null)})}),Se=Se.filter(oe=>oe.productId!==J.productId),!0===this.store.getValue()[ce].isLocked?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("prepareNewCart()"),this.store.updateLastSessionId(ce,this.store.getValue()[ce].sessionId)})}),this.cartApiService.createCartAPI(we,Se).pipe((0,A.W)(oe=>{const Ee=(0,E._)(oe);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("CreateCart() - rollback - error")})}),(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{oe&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("CreateCart() - done"),this.store.toggleCartSaving(ce,!1),this.store.setCart(ce,oe)})})}))):this.cartApiService.updateCartAPI(we,Se).pipe((0,A.W)(oe=>{const Ee=(0,E._)(oe);return console.log(Ee),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCartItems() - rollback")})}),"ENTITY_NOT_FOUND"===Ee.code?this.getCartItems():this.cartApiService.createCartAPI(we,Se).pipe((0,A.W)(Pe=>{const $e=(0,E._)(Pe);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - rollback - error"),this.store.toggleCartUpdating(ce,!0)})}),(0,M.$)(()=>$e)}),(0,D.M)(Pe=>{Pe&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - done"),this.store.toggleCartSaving(ce,!1),this.store.setCart(ce,Pe)})})}))}),(0,D.M)(oe=>{oe&&(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCartItems() - done"),this.store.toggleCartSaving(ce,!1)})}),this.store.setCart(ce,oe))}))}addInsuranceToCartAsync(J,re){return this.addInsuranceToCart(J,re).subscribe({next:()=>{},error:()=>{}})}addInsuranceToCart(J,re){const ce=this.akitaProductQuery.validateLocale().country;let Se=JSON.parse(JSON.stringify(this.store.getValue()[ce].insurances));const we=this.store.getValue()[ce].items,oe=we.find(Ee=>Ee.product.id===J.productId);return oe?.quantity&&(-1!==Se.findIndex(Ee=>Ee.productId===J.productId)?Se=Se?.map(Ee=>(Ee.productId===J.productId&&(J.quantity=oe?.quantity,Ee=J),Ee)):(J.quantity=oe?.quantity,oe.insurance=J,Se.push(J))),(0,i.Nv)(this.analytics.logEventWrapper,J,re||null),!0===this.store.getValue()[ce].isLocked?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("prepareNewCart()"),this.store.updateLastSessionId(ce,this.store.getValue()[ce].sessionId)})}),this.cartApiService.createCartAPI(we,Se).pipe((0,A.W)(Ee=>{const Pe=(0,E._)(Ee);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("CreateCart() - rollback - error")})}),(0,M.$)(()=>Pe)}),(0,D.M)(Ee=>{Ee&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("CreateCart() - done"),this.store.toggleCartSaving(ce,!1),this.store.setCart(ce,Ee)})})}))):this.cartApiService.updateCartAPI(we,Se).pipe((0,A.W)(Ee=>{const Pe=(0,E._)(Ee);return console.log(Pe),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCartItems() - rollback")})}),"ENTITY_NOT_FOUND"===Pe.code?this.getCartItems():this.cartApiService.createCartAPI(we,Se).pipe((0,A.W)($e=>{const Xe=(0,E._)($e);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - rollback - error"),this.store.toggleCartUpdating(ce,!0)})}),(0,M.$)(()=>Xe)}),(0,D.M)($e=>{$e&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - done"),this.store.toggleCartSaving(ce,!1),this.store.setCart(ce,$e)})})}))}),(0,D.M)(Ee=>{Ee&&(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCartItems() - done"),this.store.toggleCartSaving(ce,!1)})}),this.store.setCart(ce,Ee))}))}addProductToCleanCart(J,re){const ce=this.akitaProductQuery.validateLocale(null,J.country).country,Se={product:J,metadata:{color:J?.color||J.phoneMetadata?.color||"",storage:Number(`${J?.storage||J.phoneMetadata?.storageInGB||0}`.toUpperCase().replace("GB","").replace("TB","")),model:J?.model||J.phoneMetadata?.model||""},displayDate:"",quantity:1},we=[...new Array(0),Se];let oe=null;return re&&(oe=[...new Array(0),{insurance_id:re?.id||"",product_id:J.id,quantity:1}],(0,i.Nv)(this.analytics.logEventWrapper,re,"product-page")),this.cartApiService.createCartAPI(we,oe).pipe((0,A.W)(Ee=>{const Pe=(0,E._)(Ee);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addListingToCart() - rollback - error"),this.store.setCartItems(ce,we)})}),(0,M.$)(()=>Pe)}),(0,D.M)(Ee=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("addProductToCart()"),this.store.setCart(ce,Ee)})})}))}increaseQtyFromCartAsync(J){return this.increaseQtyFromCart(J).subscribe({next:()=>{},error:()=>{}})}increaseQtyFromCart(J){const re=this.akitaProductQuery.validateLocale().country,ce=[...this.store.getValue()[re].insurances],Se=this.store.getValue()[re].items,we=this.store.getValue()[re].items.find(oe=>oe.product.id===J);return we?.quantity&&(we.quantity++,ce?.map(oe=>{oe.productId===J&&(oe.quantity=we?.quantity,we.insurance=oe)})),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("increaseQtyFromCart()"),this.analytics.setSessionUserDetailsIntoDataLayer(),(0,i.rm)(this.analytics.logEventWrapper,this.analytics.firebaseRecordAddToCartADConversion,this.analytics.facebookTrackAddToCart,this.akitaProductQuery.getProduct(J),"increase_button"),we?.insurance&&(0,i.Nv)(this.analytics.logEventWrapper,we.insurance,"cart")})}),!0===this.store.getValue()[re].isLocked?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("prepareNewCart()"),this.store.updateLastSessionId(re,this.store.getValue()[re].sessionId)})}),this.cartApiService.createCartAPI(Se,ce).pipe((0,A.W)(oe=>{const Ee=(0,E._)(oe);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - error"),this.store.toggleCartSaving(re,!1),this.store.setCartSavingError(re,Ee),this.store.reset()})}),(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{oe&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - done"),this.store.toggleCartSaving(re,!1),this.store.setCart(re,oe)})})}))):this.cartApiService.updateCartAPI(Se,ce).pipe((0,A.W)(oe=>{const Ee=(0,E._)(oe);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - error"),this.store.toggleCartSaving(re,!1),this.store.setCartSavingError(re,Ee)})}),"ENTITY_NOT_FOUND"===Ee.code?this.getCartItems():(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{oe&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - done"),this.store.toggleCartSaving(re,!1),this.store.setCart(re,oe)})})}))}removeQtyFromCartAsync(J){return this.removeQtyFromCart(J).subscribe({next:()=>{},error:()=>{}})}removeQtyFromCart(J){const re=this.akitaProductQuery.validateLocale().country;let ce=[...this.store.getValue()[re].insurances];(0,i.Fd)(this.analytics.logEventWrapper,this.akitaProductQuery.getProduct(J),"increase_button");let Se=this.store.getValue()[re].items;const we=this.store.getValue()[re].items.find(oe=>oe.product.id===J);return we?.quantity&&we?.quantity>1?(we.quantity--,ce?.map(oe=>{oe.productId===J&&(oe.quantity=we?.quantity,we.insurance=oe,(0,i.LD)(this.analytics.logEventWrapper,oe,"cart"))})):(Se=Se.filter(oe=>oe.product.id!==J),ce=ce.filter(oe=>oe.productId!==J)),this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("removeQtyFromCart()")})}),0===Se.length?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("ResetCart()"),this.cartApiService.saveCartId(null),this.store.resetCart(re)})}),(0,b.of)(!0)):!0===this.store.getValue()[re].isLocked?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("prepareNewCart()"),this.store.updateLastSessionId(re,this.store.getValue()[re].sessionId)})}),this.cartApiService.createCartAPI(Se,ce).pipe((0,A.W)(oe=>{const Ee=(0,E._)(oe);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - error"),this.store.toggleCartSaving(re,!1),this.store.setCartSavingError(re,Ee),this.store.reset()})}),(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{oe&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - done"),this.store.toggleCartSaving(re,!1),this.store.setCart(re,oe)})})}))):this.cartApiService.updateCartAPI(Se,ce).pipe((0,A.W)(oe=>{const Ee=(0,E._)(oe);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - error"),this.store.toggleCartSaving(re,!1),this.store.setCartSavingError(re,Ee)})}),"ENTITY_NOT_FOUND"===Ee.code?this.getCartItems():(0,M.$)(()=>Ee)}),(0,D.M)(oe=>{oe&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - done"),this.store.toggleCartSaving(re,!1),this.store.setCart(re,oe)})})}))}updateProtectionFromCartAsync(J){return this.updateProtectionFromCart(J).subscribe({next:()=>{},error:()=>{}})}updateProtectionFromCart(J){const re=this.akitaProductQuery.validateLocale().country,ce=[...this.store.getValue()[re].insurances],Se=this.store.getValue()[re].items;return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateProtectionFromCart()")})}),0===Se.length?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("GETCart()")})}),this.getCartItems().pipe((0,f.n)(()=>this.cartApiService.updateCartAPI(Se,ce,J).pipe((0,A.W)(we=>{const oe=(0,E._)(we);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - error"),this.store.toggleCartSaving(re,!1),this.store.setCartSavingError(re,oe)})}),"ENTITY_NOT_FOUND"===oe.code?this.getCartItems():(0,M.$)(()=>oe)}),(0,D.M)(we=>{we&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - done"),this.store.toggleCartSaving(re,!1),this.store.setCart(re,we)})})}))))):this.cartApiService.updateCartAPI(Se,ce,J).pipe((0,A.W)(we=>{const oe=(0,E._)(we);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - error"),this.store.toggleCartSaving(re,!1),this.store.setCartSavingError(re,oe)})}),"ENTITY_NOT_FOUND"===oe.code?this.getCartItems():(0,M.$)(()=>oe)}),(0,D.M)(we=>{we&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateQtyItems() - done"),this.store.toggleCartSaving(re,!1),this.store.setCart(re,we)})})}))}getCartItemsAsync(){return this.getCartItems().subscribe({next:()=>{},error:()=>{}})}getCartItems(){const J=this.akitaProductQuery.validateLocale().country;return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("getCartItems()"),this.store.toggleCartLoading(J,!0),this.store.setCartLoadingError(null)})}),this.cartApiService.readCartItems().pipe((0,A.W)(re=>{const ce=(0,E._)(re);return"CART_NOT_FOUND"===ce.code?(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("getCartItems() - done"),this.store.toggleCartLoading(J,!1)})}),[]):(this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("getCartItems() - error"),this.store.toggleCartLoading(J,!1),this.store.setCartLoadingError(J,ce)})}),(0,M.$)(()=>ce))}),(0,D.M)(re=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("getCartItems() - done"),this.store.toggleCartLoading(J,!1),this.store.setCart(J,re)})})}))}createCartItems(J,re){const ce=this.akitaProductQuery.validateLocale().country;return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems()"),this.store.toggleCartSaving(ce,!0),this.store.setCartSavingError(null)})}),this.cartApiService.createCartItems(J,re).pipe((0,A.W)(Se=>{const we=(0,E._)(Se);return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - error"),this.store.toggleCartSaving(ce,!1),this.store.setCartSavingError(ce,we),this.store.reset()})}),(0,M.$)(()=>we)}),(0,D.M)(Se=>{this.zone.run(Se?()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - done"),this.store.toggleCartSaving(ce,!1)})}:()=>{(0,y.hO)(()=>{(0,y.d5)("createCartItems() - error"),this.store.toggleCartSaving(ce,!1),this.store.setCartSavingError(ce,(0,E._)("FAILED_TO_SAVE_CART"))})})}))}updateCartId(J){const re=this.akitaProductQuery.validateLocale().country;J&&this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("updateCartId() - done"),this.store.updateCartId(re,J)})})}getAvailableProtectionAsync(J){return this.getAvailableProtection(J).subscribe({next:()=>{},error:()=>{}})}getAvailableProtection(J){const re=this.akitaProductQuery.validateLocale().country;return this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("getAvailableProtection()")})}),J?this.cartApiService.getAvailableProtection(J).pipe((0,A.W)(ce=>{const Se=(0,E._)(ce);return(0,M.$)(()=>Se)}),(0,D.M)(ce=>{this.zone.run(()=>{(0,y.hO)(()=>{(0,y.d5)("getAvailableProtection() - done"),this.store.setAvailableProtection(re,ce)})})})):(0,b.of)(null)}static{this.\u0275fac=function(re){return new(re||B)(S.KVO(S.SKi),S.KVO(O.o),S.KVO(C.p),S.KVO(_.h),S.KVO(Ie),S.KVO(He.i))}}static{this.\u0275prov=S.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})()},43176:(it,ge,s)=>{"use strict";s.d(ge,{o:()=>D});var i=s(47701),E=s(28505),A=s(58205),M=s(55685);let D=class f0 extends E.il{constructor(){super({})}toggleTransferingAnonymousCart(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.transferingAnonimousCart=!!S,C.lastUpdated=new Date,{[f]:C}})}setTransferingAnonymousCartError(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.errorTransferingAnonymousCart=S||null,C.lastUpdated=new Date,{[f]:C}})}setCartItems(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.items=S||new Array(0),C.lastUpdated=new Date,{[f]:C}})}setCart(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.id=S.id,C.items=S.items,C.insurances=S.insurances,C.isLocked=S.isLocked,C.sessionId=S.sessionId,C.lastSessionId=S.lastSessionId,C.isProtected=S.isProtected,C.protectionPrice=S.protectionPrice||C.protectionPrice,C.lastUpdated=new Date,{[f]:C}})}toggleCartLoading(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.loadingCartItems=!!S,C.lastUpdated=new Date,{[f]:C}})}toggleCartUpdating(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.updatingCart=!!S,C.lastUpdated=new Date,{[f]:C}})}resetCart(f){f&&this.update(()=>{const S={id:null,items:new Array(0),insurances:new Array(0),isLocked:!1,sessionId:null,lastSessionId:null,loadingCartItems:!1,errorLoadingCartItems:null,updatingCart:!1,isProtected:!1,protectionPrice:null,availableProtection:null,savingCartItems:!1,errorSavingCartItems:null,transferingAnonimousCart:!1,errorTransferingAnonymousCart:null,lastUpdated:new Date};return{[f]:S}})}setCartLoadingError(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.errorLoadingCartItems=S||null,C.lastUpdated=new Date,{[f]:C}})}toggleCartSaving(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.savingCartItems=!!S,C.lastUpdated=new Date,{[f]:C}})}setCartSavingError(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.errorSavingCartItems=S||null,C.lastUpdated=new Date,{[f]:C}})}updateLastSessionId(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.lastSessionId=S||null,C.lastUpdated=new Date,{[f]:C}})}updateIsLocked(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.isLocked=!!S,C.lastUpdated=new Date,{[f]:C}})}updateSessionId(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.sessionId=S||null,C.lastUpdated=new Date,{[f]:C}})}updateCartInsurances(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.insurances=(0,A.aC)(S)||new Array(0),C.lastUpdated=new Date,{[f]:C}})}updateCartId(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.id=S||"",C.lastUpdated=new Date,{[f]:C}})}setAvailableProtection(f,S){f&&this.update(O=>{const C={...O[f]||{}};return C.availableProtection=S,C.lastUpdated=new Date,{[f]:C}})}static{this.\u0275fac=function(S){return new(S||f0)}}static{this.\u0275prov=M.jDH({token:f0,factory:f0.\u0275fac,providedIn:"root"})}};D=(0,i.Cg)([(0,E.g7)({name:"cart",resettable:!0})],D)},96198:(it,ge,s)=>{"use strict";s.d(ge,{j:()=>E});var i=s(16711);const E={app:{version:i.c.app.version,commit:i.c.app.commit,branch:i.c.app.branch},api:{protocol:i.c.api.protocol,url:i.c.api.url,port:i.c.api.port,path:i.c.api.path,version:i.c.api.version},blogApi:{protocol:i.c.blogApi.protocol,url:i.c.blogApi.url,port:i.c.blogApi.port,path:i.c.blogApi.path,version:i.c.blogApi.version},firebase:{appId:i.c.firebase.appId,apiKey:i.c.firebase.apiKey,authDomain:i.c.firebase.authDomain,databaseURL:i.c.firebase.databaseURL,projectId:i.c.firebase.projectId,storageBucket:i.c.firebase.storageBucket,messagingSenderId:i.c.firebase.messagingSenderId,measurementId:i.c.firebase.measurementId},stripe:{country:{br:i.c.stripe.country.br,us:i.c.stripe.country.us}},apple:{clientId:i.c.apple.clientId,baseURL:i.c.apple.clientId},google:{clientId:i.c.google.clientId,baseURL:i.c.google.clientId},name:i.c.name,domain:i.c.domain,production:i.c.production,enableAnalitycs:i.c.enableAnalitycs,debugAnalitycs:i.c.debugAnalitycs,reportToSentry:i.c.reportToSentry,sentryAskFeedback:i.c.sentryAskFeedback,serviceWorker:i.c.serviceWorker,debugMode:i.c.debugMode,languageCode:i.c.languageCode,languages:i.c.languages,fbAppId:i.c.fbAppId,fbAppVersion:i.c.fbAppVersion,gmapsApiKey:i.c.gmapsApiKey,sentryUrl:i.c.sentryUrl,enableHotjar:i.c.enableHotjar,enableSmartLook:i.c.enableSmartLook}},86495:(it,ge,s)=>{"use strict";s.d(ge,{R:()=>f});var i=s(28505),E=s(78766),y=s(54436),A=s(8632);const M={af:["af"],sq:["sq"],am:["am"],ar:["sa","dz","bh","eg","iq","jo","kw","lb","ly","ma","om","qa","sy","tn","ae","ye"],hy:["hy"],as:["as"],az:["az"],eu:["eu"],be:["be"],bn:["bn","bd"],bs:["bs","ba"],bg:["bg"],my:["my"],ca:["ca","ad"],zh:["cn","hk","mo","sg","tw"],hr:["hr"],cs:["cs"],da:["da"],dv:["dv"],nl:["be","nl","aw"],en:["us","au","bz","ca","cb","gb","in","ie","jm","nz","ph","za","tt","zi","ag","ai","aq","bb","pt"],et:["et"],mk:["mk"],fo:["fo"],fa:["fa"],ph:["ph"],fi:["fi"],fr:["fr","be","ca","lu","ch"],gd:["gd","ie"],gl:["gl"],ka:["ka"],de:["de","at","li","lu","ch"],el:["el"],gn:["gn"],gu:["gu"],he:["he","il"],hi:["hi"],hu:["hu"],is:["is"],id:["id"],it:["it","ch"],ja:["ja"],kn:["kn"],ks:["ks"],km:["km"],kk:["kk"],ko:["ko"],lo:["lo"],la:["la"],lv:["lv"],lt:["lt"],ms:["my","bn"],ml:["ml"],mt:["mt"],mi:["mi"],mr:["mr"],mn:["mn"],ne:["ne"],nb:["no"],no:["no"],nn:["no"],or:["or"],pt:["br","pl","pt","ao"],pl:["pl","br","pt"],pa:["pa"],rm:["rm"],ro:["ro","mo"],ru:["ru","mo"],sa:["sa"],sr:["sp"],tn:["tn"],sd:["sd"],si:["si"],sk:["sk"],sl:["sl"],so:["so"],sb:["sb"],es:["es","ar","bo","cl","co","cr","do","ec","sv","gt","hn","mx","ni","pa","py","pe","pr","uy","ve"],sw:["sw"],sv:["fi","se","ax"],tg:["tg"],ta:["ta"],tt:["tt"],te:["te"],th:["th"],bo:["bo"],ts:["ts"],tr:["tr"],tk:["tk"],uk:["uk"],ur:["ur"],uz:["uz"],vi:["vi"],cy:["cy"],xh:["xh"],yi:["yi"],zu:["zu"]};var D=s(55685),b=s(11299);let f=(()=>{class S extends i.XK{constructor(C){super(C),this.store=C}get webPFeatures(){return this.getValue().webP||{lossy:!1,lossless:!1,alpha:!1,animation:!1}}get locale(){return this.getValue().languageCode||"en-US"}get currency(){return this.getValue().currency||{symbol:"$",name:"US Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"USD",name_plural:"US dollars"}}get currencyCode(){return this.currency.code}get languageCode(){const C=this.locale.split("-"),_=C[0];let U=C[1];!U&&_&&M[_]&&M[_].length>0&&(U=M[_][0]);const w={locale:C[0]||"en",countryCode:(U||"US").toUpperCase(),rtl:!1};return w.rtl=(0,E.ru)(w.locale),w}selectLocale(){return this.select().pipe((0,y.T)(C=>C.languageCode||"en-US"),(0,A.F)())}selectCurrency(){return this.select().pipe((0,y.T)(C=>C.currency||{symbol:"$",name:"US Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"USD",name_plural:"US dollars"}),(0,A.F)())}selectLanguageCode(){return this.selectLocale().pipe((0,y.T)(C=>{const _=C.split("-");let U=_[1];!U&&_[0]&&M[_[0]]&&M[_[0]].length>0&&(U=M[_[0]][0]);const w={locale:_[0]||"en",countryCode:(U||"US").toUpperCase(),rtl:!1};return w.rtl=(0,E.ru)(w.locale),w}),(0,A.F)((C,_)=>JSON.stringify(C)===JSON.stringify(_)))}static{this.\u0275fac=function(_){return new(_||S)(D.KVO(b.u))}}static{this.\u0275prov=D.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},11299:(it,ge,s)=>{"use strict";s.d(ge,{u:()=>D});var i=s(47701),E=s(28505),y=s(96198),A=s(55685);let D=class p0 extends E.il{constructor(){super(function M(){return{...y.j,webP:{lossy:!1,lossless:!1,alpha:!1,animation:!1},currency:{symbol:"$",name:"US Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"USD",name_plural:"US dollars"}}}())}updateCurrency(f){f&&this.update({currency:f})}static{this.\u0275fac=function(S){return new(S||p0)}}static{this.\u0275prov=A.jDH({token:p0,factory:p0.\u0275fac,providedIn:"root"})}};D=(0,i.Cg)([(0,E.g7)({name:"configuration",resettable:!0})],D)},93518:(it,ge,s)=>{"use strict";s.d(ge,{f:()=>X});var i=s(16711),E=s(78766),y=s(7319),A=s(33055),M=s(31134),D=s(55685),b=s(15214),f=s(40352);let S=(()=>{class K{constructor(){this.monitorSubject=new f.B,this.messagingRegistered=!1}markAsRegistered(){this.messagingRegistered=!0,this.monitorSubject.next(this.messagingRegistered)}get observe(){return this.monitorSubject.asObservable()}get isRegistered(){return!!this.messagingRegistered}static{this.\u0275fac=function(Y){return new(Y||K)}}static{this.\u0275prov=D.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}return K})();const _="event",U="config";let X=(()=>{class K{constructor(le,Y,ve){this.zone=le,this.akitaRouterQuery=Y,this.messageRegistrationCheckerService=ve,this.firebaseApp=null,this.firebaseAnalytics=null,this.firebaseConfig=null,this.extraAnalyticsKey=null,this.adsTrackingKey=null,this.gtmTrackingKey=null,this.firebaseApp=null,this.firebaseConfig=(0,E.S6)();try{window.POPSY_EXTRA_ANALYTICS_KEY&&(this.extraAnalyticsKey=window.POPSY_EXTRA_ANALYTICS_KEY||null),window.POPSY_ADS_TRACKING_KEY&&(this.adsTrackingKey=window.POPSY_ADS_TRACKING_KEY||null),window.POPSY_GTM_TRACKING_KEY&&(this.gtmTrackingKey=window.POPSY_GTM_TRACKING_KEY||null)}catch{}}updateConfig(le){try{this.firebaseConfig?.measurementId&&gtag&&gtag(U,this.firebaseConfig.measurementId,{...le,update:!0}),this.extraAnalyticsKey&&gtag&&gtag(U,this.extraAnalyticsKey,{...le,update:!0}),this.adsTrackingKey&&gtag&&gtag(U,this.adsTrackingKey,{...le,update:!0}),this.gtmTrackingKey&&gtag&&gtag(U,this.gtmTrackingKey,{...le,update:!0})}catch{}}recordADConversion(le,Y){this.adsTrackingKey&&gtag&&gtag("event","conversion",{...Y||{},send_to:`${this.adsTrackingKey}/${le}`})}get recordProductPageViewADConversion(){return()=>{this.recordADConversion("aUHgCPrrxuUBEMPj2b0D")}}recordAddToCartADConversion(){this.recordADConversion("0WOzCNzTxuUBEMPj2b0D")}recordAddressAndPhoneADConversion(){this.recordADConversion("fY35CJqizuUBEMPj2b0D",{value:0,currency:"USD"})}recordPaymentMethodSelectedADConversion(){this.recordADConversion("ieKdCPWvzuUBEMPj2b0D",{value:1,currency:"USD"})}recordPurchaseADConversion(le,Y,ve){let Ie={value:1,currency:"USD"};(Y||0===Y)&&(Ie={value:Y,currency:ve||"USD"}),this.recordADConversion("Hk2pCJjzvOUBEMPj2b0D",{value:Ie.value,currency:Ie.currency,transaction_id:le})}registerFCMInOwnFirebaseServiceWorker(){return new A.c(le=>{this.messageRegistrationCheckerService.markAsRegistered(),le.next(),le.complete()})}setUserId(le){this.updateConfig({user_id:le});try{gtag&&gtag("set",{user_id:`${le}`})}catch{}}logEventToAnalytics(le,Y,ve,Ie){try{this.extraAnalyticsKey&&gtag&&gtag(_,le,{...Y||{},event_category:ve||"Custom",event_label:Ie||"User Action",send_to:`${this.extraAnalyticsKey}`}),this.gtmTrackingKey&&gtag&&gtag(_,le,{...Y||{},send_to:`${this.gtmTrackingKey}`})}catch{}}initializeOrRehuseApp(le,Y){return le||(0,M.bp)(Y||i.c.firebase)}get app(){try{return this.firebaseConfig||(this.firebaseConfig=i.c.firebase),this.firebaseApp=this.initializeOrRehuseApp(this.firebaseApp,this.firebaseConfig),y.gU.addObjectKeysToScope("firebase",{app:`${this.firebaseApp?.name||"?"}`,ready:"YES"}),this.firebaseApp}catch(le){return y.gU.addObjectKeysToScope("firebase",{app:"-",ready:"NO"}),console.warn(le),null}}get analytics(){return new Promise((le,Y)=>{this.akitaRouterQuery.isBrowser?this.zone.runOutsideAngular(()=>{(0,M.FB)().then(ve=>{if(ve)if(this.firebaseAnalytics)le(this.firebaseAnalytics);else try{const Ie=(0,M.bL)(this.app||void 0);le(Ie)}catch(Ie){Y(Ie)}else le(null)}).catch(ve=>{Y(ve)})}):le(null)})}get remoteConfig(){return new Promise((le,Y)=>{this.akitaRouterQuery.isBrowser?this.zone.runOutsideAngular(()=>{(0,M.Pz)().then(ve=>{if(ve)try{const Ie=(0,M.ru)(this.app||void 0);le(Ie)}catch(Ie){Y(Ie)}else le(null)}).catch(ve=>{Y(ve)})}):le(null)})}static{this.\u0275fac=function(Y){return new(Y||K)(D.KVO(D.SKi),D.KVO(b.O),D.KVO(S))}}static{this.\u0275prov=D.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}return K})()},48265:(it,ge,s)=>{"use strict";s.d(ge,{X:()=>i});const i={"auth-overlay-module":!1,"select-location-overlay":!1,"price-filter-overlay":!1,"filters-overlay":!1,"currency-overlay":!1,"delete-account-overlay":!1,"edit-profile-overlay":!1,"error-overlay":!1,"confirm-overlay":!1,"footer-overlay":!1,"list-overlay":!1,"report-overlay":!1,"social-share-overlay":!1,"open-on-mobile-app-overlay":!1,"google-oauth2-overlay":!1,"cart-overlay":!1,"cart-promo-overlay":!1,"shopify-cart-overlay":!1,"feedback-overlay":!1,"survey-overlay":!1,"payment-options-overlay":!1,"phone-country-overlay":!1,"phone-filters-overlay":!1,"newsletter-overlay":!1,"burguer-menu-overlay":!1,"conditions-info-overlay":!1,"navigation-overlay":!1,"insurance-overlay":!1,"quara-overlay":!1,"baseeta-overlay":!1,"battery-overlay":!1,"retry-payment-overlay":!1,"package-info-overlay":!1,"insurance-confirm-overlay":!1}},77366:(it,ge,s)=>{"use strict";s.d(ge,{Y:()=>b});var i=s(28505),E=s(48265),y=s(54436),A=s(8632),M=s(55685),D=s(5563);let b=(()=>{class f extends i.XK{constructor(O){super(O),this.store=O}get loadStatus(){return{...this.getValue().loaded||E.X}}get loadingStatus(){return{...this.getValue().loading||E.X}}get errorStatus(){return{...this.getValue().loading||E.X}}getOverlayStatus(O){return!!this.loadStatus[O]}isOverlayLoading(O){return!!this.loadingStatus[O]}overlayFailedToLoad(O){return!!this.errorStatus[O]}selectLoadStatus(){return this.select().pipe((0,y.T)(O=>({...O.loaded||E.X})),(0,A.F)((O,C)=>JSON.stringify(O)===JSON.stringify(C)))}selectLoadingStatus(){return this.select().pipe((0,y.T)(O=>({...O.loading||E.X})),(0,A.F)((O,C)=>JSON.stringify(O)===JSON.stringify(C)))}selectErrorStatus(){return this.select().pipe((0,y.T)(O=>({...O.error||E.X})),(0,A.F)((O,C)=>JSON.stringify(O)===JSON.stringify(C)))}selectOverlayLoadStatus(O){return this.selectLoadStatus().pipe((0,y.T)(C=>!!C[O]))}static{this.\u0275fac=function(C){return new(C||f)(M.KVO(D.b))}}static{this.\u0275prov=M.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},44409:(it,ge,s)=>{"use strict";s.d(ge,{z:()=>V});var i=s(55685),E=s(28505),y=s(67081),A=s(7319),M=s(38355),D=s(5563),b=s(77366),f=s(7190),S=s(15214),O=s(31946);const C=[],_=[],U=[],w=[],R=[];let V=(()=>{class x{constructor(X,K,ne,le,Y,ve,Ie){this.zone=X,this.injector=K,this.store=ne,this.query=le,this.loadableService=Y,this.akitaRouterQuery=ve,this.googleAnalyticsService=Ie}loadDialog(X){const K=new M.yU;return this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{if(this.query.getOverlayStatus(X)||this.query.isOverlayLoading(X))return;this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)(`loadDialog( ${X} )`),this.store.toggleLoaded(X,!1),this.store.toggleLoading(X,!0),this.store.toggleError(X,!1)})}),A.gU.addBreadcrumb({category:"overlays",message:`loadDialog( ${X} ) - start`,level:"info",type:"app"});const ne=`Preload Overlay ( ${X} )`,le=`${ne} - Start`,Y=`${ne} - End`;y.w.createMark(le);try{K.add(this.loadableService.preload(X).subscribe({next:ve=>{ve?((0,i.w6W)(ve,this.injector),this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)(`loadDialog( ${X} ) - done`),this.store.toggleLoaded(X,!0),this.store.toggleLoading(X,!1),this.store.toggleError(X,!1),y.w.createMark(Y),y.w.measure(ne,le,Y)})}),A.gU.addBreadcrumb({category:"overlays",message:`loadDialog( ${X} ) - done`,level:"info",type:"app"})):(this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)(`loadDialog( ${X} ) - error`),this.store.toggleLoaded(X,!1),this.store.toggleLoading(X,!1),this.store.toggleError(X,!0)})}),A.gU.reportException(`ERROR_LOADING_DIALOG ( ${X} ) - Component Empty`,!1,()=>Ie=>{this.googleAnalyticsService.appException(Ie,"application","-",!1,"OVERLAYS","AkitaOverlaysService -> loadDialog")}),A.gU.addBreadcrumb({category:"overlays",message:`loadDialog( ${X} ) - error`,level:"info",type:"app"}))},error:ve=>{this.failedToPreloadDialog(X,ve)}}))}catch(ve){this.failedToPreloadDialog(X,ve)}}),K}failedToPreloadDialog(X,K){const ne=K;this.zone.run(()=>{(0,E.hO)(()=>{(0,E.d5)(`loadDialog( ${X} ) - error`),this.store.toggleLoaded(X,!1),this.store.toggleLoading(X,!1),this.store.toggleError(X,!0)})}),A.gU.reportException(ne,!1,()=>le=>{this.googleAnalyticsService.appException(le,"application",`${ne?.status||"-"}`,!1,"OVERLAYS","AkitaOverlaysService -> loadDialog")}),A.gU.reportException(`ERROR_LOADING_DIALOG ( ${X} )`,!1,()=>le=>{this.googleAnalyticsService.appException(le,"application",`${ne?.status||"-"}`,!1,"OVERLAYS","AkitaOverlaysService -> loadDialog")}),A.gU.addBreadcrumb({category:"overlays",message:`loadDialog( ${X} ) - error`,level:"info",type:"app"})}loadDialogList(X){const K=new M.yU;return this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{if(X&&X.length>0)for(const ne of X)K.add(this.loadDialog(ne))}),K}preloadMainDialogs(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{this.preloadHeaderDialogs(),this.preloadFooterDialogs(),this.preloadFiltersBarDialogs(),this.loadDialogList(C)})}preloadSignedInDialogs(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{this.loadDialogList(_)})}preloadFooterDialogs(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{this.loadDialogList(U)})}preloadHeaderDialogs(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{this.loadDialogList(w)})}preloadFiltersBarDialogs(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{this.loadDialogList(R)})}static{this.\u0275fac=function(K){return new(K||x)(i.KVO(i.SKi),i.KVO(i.zZn),i.KVO(D.b),i.KVO(b.Y),i.KVO(f.Kw),i.KVO(S.O),i.KVO(O.p))}}static{this.\u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},5563:(it,ge,s)=>{"use strict";s.d(ge,{b:()=>O});var i=s(47701),E=s(28505),y=s(48265),A=s(67081),M=s(55685);const D="Preload All Overlays",b=`${D} - Start`,f=`${D} - End`;let O=class g0 extends E.il{constructor(){super(function S(){return{loaded:{...y.X},loading:{...y.X},error:{...y.X},preloadedAll:!1,preloadStarted:!1}}())}toggleLoaded(_,U){this.update(w=>{const R={...w.loaded||y.X};R[_]=!!U;let V=!0;for(const x of Object.keys(R||{}))if(!R[x]){V=!1;break}return V&&!w.preloadedAll&&(A.w.createMark(f),A.w.measure(D,b,f)),{loaded:R,preloadedAll:V}})}toggleLoading(_,U){this.update(w=>{const R={...w.loading||y.X};return R[_]=!!U,w.preloadStarted||A.w.createMark(b),{loading:R,preloadStarted:!0}})}toggleError(_,U){this.update(w=>{const R={...w.error||y.X};return R[_]=!!U,{error:R}})}static{this.\u0275fac=function(U){return new(U||g0)}}static{this.\u0275prov=M.jDH({token:g0,factory:g0.\u0275fac,providedIn:"root"})}};O=(0,i.Cg)([(0,E.g7)({name:"overlays",resettable:!1})],O)},18119:(it,ge,s)=>{"use strict";s.d(ge,{q:()=>i,r:()=>E});class i{constructor(){this.code="",this.currency=""}}const E=y=>{const A=new i;return y&&(y?.percentage&&(A.percentage=Math.abs(+`${y?.percentage||0}`)),y?.amount&&(A.amount=Math.abs(+`${y?.amount||0}`)),A.code=y.code||"",A.currency=y.currency||""),A}},15214:(it,ge,s)=>{"use strict";s.d(ge,{O:()=>_});var i=s(28505),E=s(58298),y=s(8632),A=s(54436),M=s(78766),D=s(84288),b=s(61375),f=s(55685),S=s(5562),O=s(37717);let _=(()=>{class U extends i.XK{constructor(R,V){super(R),this.store=R,this.akitaLocationQuery=V}get country(){const R=`${this.queryParams.country||""}`.toUpperCase(),V=`${this.routeData.country||""}`.toUpperCase(),x=`${this.akitaLocationQuery.currentLocation?.country||""}`.toUpperCase();return this.getCountryFromData(R,V,x)}selectCountry(){return(0,E.z)([this.selectQueryParams(),this.selectRouteData(),this.akitaLocationQuery.selectDeviceLocation()]).pipe((0,y.F)((R,V)=>JSON.stringify(R)===JSON.stringify(V)),(0,A.T)(([R,V,x])=>{const z=`${R?.country||""}`.toUpperCase(),X=`${V?.country||""}`.toUpperCase(),K=`${x?.country||""}`.toUpperCase();return this.getCountryFromData(z,X,K)}))}getCountryFromData(R,V,x){const z=`${(0,D.TS)(this.requestURL)||""}`.toUpperCase(),X=`${(0,M.Vn)(this.requestURL,!0)||""}`.toUpperCase();let K=V;return V?K=V:R?K=R:X?K=X:z?K=z:x&&(K=x.includes("US")||x.includes("CA")?"AE":b.Vj.includes(x)?x:"SA"),K}get requestURL(){return this.store.requestURL}get isBrowser(){return!!this.store.isBrowser}getCanonicalBaseURL(){return`${(0,M.Nm)(this.requestURL)}`}get isRtlLanguage(){return!!this.getValue().rtl}get fragment(){return this.getValue().fragment||""}get queryParams(){return this.getValue().queryParams||{}}get params(){return this.getValue().params||{}}get paramsAndQueryParams(){return{...this.params,...this.queryParams}}getQueryParamsForPaymentRedirectURLs(R){const V=new Array(0);R&&V.push(`address_id=${R}`);const x=`${this.discountCode||""}`.toUpperCase();x&&V.push(`dc=${x}`);const z=this.queryParamsToKeep;for(const K of Object.keys(z))"dc"===K&&x||V.push(`${K}=${z[K]}`);const X=V.length>0?`${V.join("&")}`:"";return encodeURI(X)}get queryParamsToKeep(){return{...this.getValue().queryParamsToKeep||{}}}get discountCode(){return`${this.getValue().discountCode||""}`}get routeData(){return this.getValue().data||{}}get redirect(){return this.getValue().redirect||""}get viewName(){return this.getValue().view}get viewStep(){return this.getValue().step}get analyticsName(){return`${this.getValue().data?.analyticsName||""}`}get googleADSMetadata(){return this.getValue().analyticsMetadata}get homeUrlFragment(){return[...this.getValue().routeFragments?.homeUrlFragment||["/"]]}get localeFragmentToString(){return this.homeUrlFragment.length>1?this.homeUrlFragment.join(""):""}get searchUrlFragment(){return[...this.homeUrlFragment,"s"]}get userAgent(){return this.getValue().userAgent||""}get isGoogleBotUserAgent(){return this.userAgent.toLowerCase().includes("google")}getDiscountForCurrency(R){const V=this.getValue().discountCode||null;return R&&V&&(this.getValue().discountCodeValues[V]||{})[R]||null}getDiscountCodeInfo(R,V){return R&&this.getValue().discountCodeValues&&this.getValue().discountCodeValues[R]&&this.getValue().discountCodeValues[R][V||""]?{code:R,amount:this.getValue().discountCodeValues[R][V||""]?.amount||0,currency:this.getValue().discountCodeValues[R][V||""]?.currency||V||""}:null}getListingUrlFragment(R,V){const x=this.homeUrlFragment;return x.push(`${R||""}`.length<24?"p":"item"),x.push(V?(0,M.Rj)(R,V):R),x}getProductUrlFragment(R,V){const x=this.homeUrlFragment;return x.push("p"),x.push(V?(0,M.Rj)(R,V):R),x}getDeliveryUrlFragment(R){const V=this.homeUrlFragment;return V.push("delivery",R),V}getCheckoutUrlFragment(R){const V=this.homeUrlFragment;return V.push("checkout",R,"overview"),V}getPhoneSearchFragment(){const R=this.homeUrlFragment;return R.push("products"),R}get userUrlFragment(){const R=this.homeUrlFragment;return R.push("user"),R}getSettingsUrlFragment(R){const V=this.homeUrlFragment;return V.push("settings"),R&&V.push(R),V}getAuthUrlFragment(R){const V=this.userUrlFragment;return V.push(R||"sign-in"),V}get userInboxUrlFragment(){const R=this.userUrlFragment;return R.push("inbox"),R}monitorNavigationEnd(){return this.select().pipe((0,A.T)(R=>({params:R.params||{},queryParams:R.queryParams||{},data:R.data||{},fragment:R.fragment||""})),(0,y.F)((R,V)=>JSON.stringify(R)===JSON.stringify(V)))}selectHomeUrlFragment(){return this.select().pipe((0,A.T)(R=>[...R.routeFragments.homeUrlFragment||["/"]]),(0,y.F)())}selectSearchUrlFragment(){return this.selectHomeUrlFragment().pipe((0,A.T)(R=>[...R||[],"s"]),(0,y.F)())}selectUserUrlFragment(R){return this.selectHomeUrlFragment().pipe((0,A.T)(V=>{const x=[...V];return x.push("user"),R&&x.push(R),x}))}selectUserNotificationsUrlFragment(){return this.selectUserUrlFragment("notifications")}selectUserInboxUrlFragment(){return this.selectUserUrlFragment("inbox")}selectDeliveryUrlFragment(R){return this.selectHomeUrlFragment().pipe((0,A.T)(V=>{const x=[...V];return x.push("delivery",R),x}),(0,y.F)())}selectUserProfileUrlFragment(){return this.selectHomeUrlFragment().pipe((0,A.T)(R=>{const V=[...R];return V.push("user"),V}),(0,y.F)())}selectIsRtlLayout(){return this.select().pipe((0,A.T)(R=>!!R.rtl))}selectInFullScreenMode(){return this.select().pipe((0,A.T)(R=>!!R.queryParams?.fs))}selectAnalyticsName(){return this.select().pipe((0,A.T)(R=>`${R.data?.analyticsName||""}`))}selectIsInternalView(){return this.select().pipe((0,A.T)(R=>!!R.internalView))}selectRedirect(){return this.select().pipe((0,A.T)(R=>R.redirect))}selectQueryParams(){return this.select().pipe((0,A.T)(R=>R.queryParams||{}),(0,y.F)((R,V)=>JSON.stringify(R)===JSON.stringify(V)))}selectParamsAndQueryParams(){return this.select().pipe((0,A.T)(R=>({...R.params||{},...R.queryParams||{}})),(0,y.F)((R,V)=>JSON.stringify(R)===JSON.stringify(V)))}selectRouteData(){return this.select().pipe((0,A.T)(R=>R.data||{}),(0,y.F)((R,V)=>JSON.stringify(R)===JSON.stringify(V)))}selectQueryParamsToKeep(){return this.select().pipe((0,A.T)(R=>R.queryParamsToKeep||{}),(0,y.F)((R,V)=>JSON.stringify(R)===JSON.stringify(V)))}selectViewName(){return this.select().pipe((0,A.T)(R=>R.view||"ROOT"),(0,y.F)())}selectViewStep(){return this.select().pipe((0,A.T)(R=>R.step||""),(0,y.F)())}selectPhoneSearchFragment(){return this.selectHomeUrlFragment().pipe((0,A.T)(R=>[...R||[],"products"]),(0,y.F)())}selectDiscountForCurrency(R){return this.select().pipe((0,A.T)(V=>{const x=V.discountCode||null;return R&&x&&(V.discountCodeValues[x]||{})[R]||null}),(0,y.F)((V,x)=>JSON.stringify(V)===JSON.stringify(x)))}static{this.\u0275fac=function(V){return new(V||U)(f.KVO(S.d),f.KVO(O.Y))}}static{this.\u0275prov=f.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},43195:(it,ge,s)=>{"use strict";s.d(ge,{t:()=>x});var i=s(28505),E=s(10047),y=s(49283),A=s(95212),M=s(42567),D=s(60134),b=s(18119),f=s(78766),S=s(55685),O=s(46393),C=s(5562),_=s(15214),U=s(60602),w=s(54436);let R=(()=>{class z{constructor(){this.http=(0,S.WQX)(U.Qq)}getDiscountFromEstimation(K,ne){if(!ne||!K)return(0,E.of)(new b.q);{const le=(0,f.G6)(`api/v1/checkout/discount/${ne}?currency=${K}`,!0);return this.http.get(le,{responseType:"json",headers:{"Content-Type":"application/json; charset=utf-8"}}).pipe((0,w.T)(ve=>(0,b.r)(ve)))}}static{this.\u0275fac=function(ne){return new(ne||z)}}static{this.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})();var V=s(23922);let x=(()=>{class z{constructor(K,ne,le,Y,ve,Ie,He){this.zone=K,this.router=ne,this.activatedRoute=le,this.store=Y,this.query=ve,this.discountCodeApi=Ie,this.translateService=He}replayOnNavigationEnd(){let K=this.activatedRoute.snapshot;for(;K.firstChild;)K=K.firstChild;this.onNavigationEnd(K.params,K.queryParams,{...K.data||{},rtl:(0,f.ru)(this.translateService.getActiveLang())},K.fragment)}addParamToKeepQueryParams(K){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("addParamToKeepQueryParams()"),this.store.addParamToKeepQueryParams(K)})})}removeParamToKeepQueryParams(K){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("removeParamToKeepQueryParams()"),this.store.removeParamToKeepQueryParams(K)})})}onNavigationEnd(K,ne,le,Y){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("onNavigationEnd()"),this.store.onNavigationEnd(K,ne,{...le||{},rtl:(0,f.ru)(this.translateService.getActiveLang())},Y)})})}navigate(K,ne,le){this.zone.run(()=>{this.router.navigate(K,{...le||{},queryParams:{...this.query.queryParamsToKeep,...ne||{}}}).catch(Y=>{console.warn(Y)})})}updateSessionUser(K){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("updateSessionUser()"),this.store.updateSessionUser(K)})})}setDiscountCode(K){this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("setDiscountCode()"),this.store.setDiscountCode(K)})})}getDiscountPriceModel(K){const ne=this.query.discountCode;return ne?(this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getDiscountPriceModel()"),this.store.toggleDiscountLoading(!0),this.store.setDiscountLoadingError(null)})}),this.discountCodeApi.getDiscountFromEstimation(K,ne).pipe((0,y.W)(le=>{const Y=(0,D._)(le);return this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getDiscountPriceModel() - error"),this.store.toggleDiscountLoading(!1),this.store.setDiscountLoadingError(Y)})}),(0,A.$)(()=>Y)}),(0,M.M)(le=>{this.zone.run(()=>{(0,i.hO)(()=>{(0,i.d5)("getDiscountPriceModel() - done"),this.store.toggleDiscountLoading(!1),le&&le?.amount&&le?.currency?this.store.setDiscountForListing(le?.code||ne,K,{amount:le.amount,currency:le.currency}):this.store.setDiscountForListing(ne,K,null)})})}))):(0,E.of)(new b.q)}getDiscountPriceModelAsync(K){return this.getDiscountPriceModel(K).subscribe({next:()=>{},error:()=>{}})}static{this.\u0275fac=function(ne){return new(ne||z)(S.KVO(S.SKi),S.KVO(O.Ix),S.KVO(O.nX),S.KVO(C.d),S.KVO(_.O),S.KVO(R),S.KVO(V.JO))}}static{this.\u0275prov=S.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})()},5562:(it,ge,s)=>{"use strict";s.d(ge,{d:()=>S});var i=s(47701),E=s(28505),y=s(55685),M=s(31761),D=s(34678);const f=["lang","country","gclsrc","utm_source","utm_medium","utm_campaign","utm_content","utm_term","adgroup","network","device","merchant_id","product_id","gclid","dclid","aclid","anid","cp1","dc","tabby","stripe","cko","tamara","quara","omnisendAnonymousID","omnisendSessionID","omnisendAttributionID","omnisendContactID","omnisendDebugConsole","omnisendCartProducts","soundest-product-picker","soundest-views","soundestID","t"];let S=class m0 extends E.il{constructor(C){super({queryParamsToKeep:{},queryParams:{},params:{},data:{},fragment:"",rtl:!1,internalView:!1,isOwnProfile:!1,redirect:"",view:"",step:"",routeFragments:{homeUrlFragment:["/"]},analyticsMetadata:{gclsrc:null,utmSource:null,utmMedium:null,utmCampaign:null,utmContent:null,utmTerm:null,adgroup:null,network:null,device:null,merchantId:null,productIds:new Array(0),gclid:null,dclid:null,aclid:null,anid:null,cp1:null},sessionUser:null,lastUpdated:new Date,userAgent:null,discountCode:null,discountCodeValues:{},validatingDiscountCode:!1,errorValidatingDiscountCode:null}),this.platformId=C,this.isBrowser=(0,M.UE)(this.platformId)}get requestURL(){let C=D.u.getLocationHref();return this.clientRequest&&(C=`${this.clientRequest.get("host")}${this.clientRequest.originalUrl}`),C}onNavigationEnd(C,_,U,w){const R=U||{},V=C||{},x=_||{},z=w||"";let X;try{X=window?.navigator.userAgent||null}catch{X=null}const K={};for(const ne of Object.keys(x))-1!==f.indexOf(ne)&&(K[ne]=x[ne]);this.update(ne=>({params:V||{},queryParams:x||{},queryParamsToKeep:K||{},data:R||{},fragment:z||"",userAgent:X,rtl:!!R.rtl,internalView:!!R.internal,isOwnProfile:this.detectOwnProfile(ne.sessionUser,V,x,R),redirect:decodeURI(x.redirect||V.redirect||""),view:R.view||"",step:R.step||"",routeFragments:{homeUrlFragment:this.generateHomeUrlFragment(R)},analyticsMetadata:this.proccessGoogleADsMetadata(x||{}),discountCode:x.dc||ne.discountCode,lastUpdated:new Date})),_?.dc&&this.update(()=>({discountCode:_.dc}))}addParamToKeepQueryParams(C){this.update(_=>({queryParams:{..._.queryParams||{},...C||{}},queryParamsToKeep:{..._.queryParamsToKeep||{},...C||{}}}))}removeParamToKeepQueryParams(C){this.update(_=>{const U={..._.queryParams||{}},w={..._.queryParamsToKeep||{}};return delete U[C],delete w[C],{queryParams:U,queryParamsToKeep:w}})}proccessGoogleADsMetadata(C){const _=new Array(0);if(C.product_id)if("string"==typeof C.product_id)_.push(C.product_id);else for(const U of C.product_id)_.push(U);return{gclsrc:C.gclsrc||null,utmSource:C.utm_source||C.utmSource||null,utmMedium:C.utm_medium||C.utmMedium||null,utmCampaign:C.utm_campaign||C.utmCampaign||null,utmContent:C.utm_content||C.utmContent||null,utmTerm:C.utm_term||C.utmTerm||null,adgroup:C.adgroup||null,network:C.network||null,device:C.device||null,merchantId:C.merchant_id||C.merchantId||null,productIds:_,gclid:C.gclid||null,dclid:C.dclid||null,aclid:C.aclid||null,anid:C.anid||null,cp1:C.cp1||null}}generateHomeUrlFragment(C){const _=["/"];if(C&&(C.locale||C.country)){const U=`${C?.country||""}`.toLowerCase(),w=`${C?.locale||""}`.toLowerCase();_.push(w&&U?`${w}-${U}`:w||U)}return _}detectOwnProfile(C,_,U,w){let R=!1;const V=w.userId||_.id||U.id||"";return(w?.user&&(!w?.user?.id||V&&w?.user?.id===V)||C&&(!V&&C?.id||V&&C?.id===V)||V&&C&&(C?.id===V||""===V))&&(R=!0),!!R}updateSessionUser(C){this.update({sessionUser:C||null})}setDiscountCode(C){this.update({discountCode:C})}toggleDiscountLoading(C){this.update({validatingDiscountCode:!!C})}setDiscountForListing(C,_,U){C&&_&&this.update(w=>{const R={...w.discountCodeValues||{}};return R[C]=R[C]||{},R[C][_]=U||null,{discountCodeValues:R}})}setDiscountLoadingError(C){this.update({errorValidatingDiscountCode:C||null})}static{this.\u0275fac=function(_){return new(_||m0)(y.KVO(y.Agw))}}static{this.\u0275prov=y.jDH({token:m0,factory:m0.\u0275fac,providedIn:"root"})}};S=(0,i.Cg)([(0,E.g7)({name:"angular-router",resettable:!1})],S)},43504:(it,ge,s)=>{"use strict";s.d(ge,{L:()=>D});var i=s(28505),E=s(54436),y=s(8632),A=s(55685),M=s(65957);let D=(()=>{class b extends i.XK{constructor(S){super(S),this.store=S}get isScreenShort(){return this.getValue().isScreenShort}get size(){return this.getValue().size}get orientation(){return this.getValue().orientation}get direction(){return this.getValue().direction}get lessThan(){return this.getValue().lessThan}get biggerThan(){return this.getValue().biggerThan}get browser(){return this.getValue().browser}selectSize(){return this.select().pipe((0,E.T)(S=>S.size),(0,y.F)((S,O)=>JSON.stringify(S)===JSON.stringify(O)))}selectDirection(){return this.select().pipe((0,E.T)(S=>S.direction),(0,y.F)((S,O)=>JSON.stringify(S)===JSON.stringify(O)))}selectOrientation(){return this.select().pipe((0,E.T)(S=>S.orientation),(0,y.F)((S,O)=>JSON.stringify(S)===JSON.stringify(O)))}selectLessThan(){return this.select().pipe((0,E.T)(S=>S.lessThan),(0,y.F)((S,O)=>JSON.stringify(S)===JSON.stringify(O)))}selectBiggerThan(){return this.select().pipe((0,E.T)(S=>S.biggerThan),(0,y.F)((S,O)=>JSON.stringify(S)===JSON.stringify(O)))}selectIsScreenShort(){return this.select().pipe((0,E.T)(S=>!!S.isScreenShort),(0,y.F)())}static{this.\u0275fac=function(O){return new(O||b)(A.KVO(M.yW))}}static{this.\u0275prov=A.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}}return b})()},65957:(it,ge,s)=>{"use strict";s.d(ge,{NU:()=>A,yW:()=>b,yz:()=>M});var i=s(47701),E=s(28505),y=s(55685),A=function(f){return f.XXS="xxs",f.MobileS="mobileS",f.XS="xs",f.MobileL="mobileL",f.MobileXL="mobileXL",f.SM="sm",f.MD="md",f.LG="lg",f.XL="xl",f.XXL="xxl",f}(A||{}),M=function(f){return f.PORTRAIT="portrait",f.LANDSCAPE="landscape",f}(M||{});let b=class y0 extends E.il{constructor(){super(function D(){return{browser:null,isScreenShort:!1,size:A.MD,orientation:M.PORTRAIT,direction:"ltr",lessThan:{xxs:!1,mobileS:!1,xs:!1,mobileL:!1,mobileXL:!1,sm:!1,md:!1,lg:!0,xl:!0,xxl:!0},biggerThan:{xxs:!0,mobileS:!0,xs:!0,mobileL:!0,mobileXL:!0,sm:!0,md:!1,lg:!1,xl:!1,xxl:!1}}}())}setScreenShort(S){this.update({isScreenShort:!!S})}setBrowser(){try{const S=window.navigator.userAgent.toLowerCase(),O=S.indexOf("edge")>-1?"Microsoft Edge":S.indexOf("edg")>-1?"Chromium-based Edge":S.indexOf("opr")>-1?"Opera":S.indexOf("chrome")>-1?"Chrome":S.indexOf("trident")>-1?"Internet Explorer":S.indexOf("firefox")>-1?"Firefox":S.indexOf("safari")>-1?"Safari":"other";this.update({browser:O})}catch{}}static{this.\u0275fac=function(O){return new(O||y0)}}static{this.\u0275prov=y.jDH({token:y0,factory:y0.\u0275fac,providedIn:"root"})}};b=(0,i.Cg)([(0,E.g7)({name:"screen",resettable:!1})],b)},85689:(it,ge,s)=>{"use strict";s.d(ge,{u:()=>R});var i=s(55685),E=s(7319),y=s(23922),A=s(94638),M=s(54436),D=s(31761),b=s(76604),f=s(61375),S=s(15214),O=s(94395);const C=["languagePicker"],_=["locationPicker"];function U(V,x){if(1&V){const z=i.RV6();i.qex(0),i.j41(1,"section",3),i.nI1(2,"async"),i.j41(3,"nav",4)(4,"div",5),i.bIt("click",function(){i.eBV(z);const K=i.XpG();return i.Njj(K.toggleLocationPicker())}),i.j41(5,"span",6,0),i.EFF(7),i.nI1(8,"async"),i.k0s(),i.nrm(9,"span",7)(10,"popsy-icon-arrow-down-1",8),i.k0s(),i.nrm(11,"span",9),i.j41(12,"span",6),i.EFF(13,"|"),i.k0s(),i.nrm(14,"span",9),i.j41(15,"div",5),i.bIt("click",function(){i.eBV(z);const K=i.XpG();return i.Njj(K.toggleLanguagePicker())}),i.j41(16,"span",6,1),i.EFF(18),i.nI1(19,"async"),i.k0s(),i.nrm(20,"span",7)(21,"popsy-icon-arrow-down-1",8),i.k0s()()(),i.bVm()}if(2&V){let z,X;const K=i.XpG();i.R7$(),i.AVh("hide",i.bMT(2,4,K.hideBar$)),i.R7$(6),i.SpI(" ",(null==(z=i.bMT(8,6,K.selectedLocation$))?null:z.display)||""," "),i.R7$(11),i.SpI(" ",(null==(X=i.bMT(19,8,K.selectedLanguage$))?null:X.display)||""," ")}}let R=(()=>{class V{constructor(z,X,K){this.akitaRouterQuery=z,this.translateService=X,this.footerOverlayDynamicService=K,this.languages=f.lU,this.locations=f.uT,this.onScroll=ne=>{"main-scroll"===ne?.target?.className&&this.hideBarSubject.next(ne?.target?.scrollTop>125)},this.phoneSearchFragment$=this.akitaRouterQuery.selectPhoneSearchFragment(),this.queryParamsToKeep$=this.akitaRouterQuery.selectQueryParamsToKeep(),this.hideBarSubject=new A.t(!1),this.hideBar$=this.hideBarSubject.asObservable(),this.selectedLanguage$=this.translateService.langChanges$.pipe((0,M.T)(this.mapLangToLanguageOption.bind(this))),this.selectedLocationSubject=new A.t(!1),this.selectedLocation$=this.selectedLocationSubject.asObservable(),this.selectedLocation$=this.akitaRouterQuery.selectCountry().pipe((0,M.T)(this.mapCountryToLocationOption.bind(this))),this.country=this.akitaRouterQuery.country.toUpperCase()}ngAfterViewInit(){window.addEventListener("scroll",this.onScroll,!0)}mapLangToLanguageOption(z){let X=this.languages[0];if(z)for(const K of this.languages)if(K.locale===z){X=K;break}return X}mapCountryToLocationOption(z){let X=this.locations[0];if(z)for(const K of this.locations)if(K.country===z.toLowerCase()){X=K;break}return this.selectedLocationSubject.next(X),X}toggleLocationPicker(){return this.footerOverlayDynamicService.open("language",{elementRef:this.locationPickerElem,data:{placeholder:"button_select_location",selectedOption:this.selectedLocationSubject.value,options:this.locations,urlParam:"country",urlValueKey:"country",changeUrlFragment:!0},isBrowser:this.akitaRouterQuery.isBrowser}),E.gU.addBreadcrumb({category:"ui",message:'Opened "Language Overlay" modal',level:"info",type:"user"}),!1}toggleLanguagePicker(){const z=this.mapLangToLanguageOption(this.translateService.getActiveLang());return this.footerOverlayDynamicService.open("language",{elementRef:this.languagePickerElem,data:{placeholder:"label_select_language",selectedOption:z,options:this.languages,urlParam:"locale",urlValueKey:"locale",changeUrlFragment:!0},isBrowser:this.akitaRouterQuery.isBrowser}),E.gU.addBreadcrumb({category:"ui",message:'Opened "Language Overlay" modal',level:"info",type:"user"}),!1}ngOnDestroy(){window.removeEventListener("scroll",this.onScroll,!0)}static{this.\u0275fac=function(X){return new(X||V)(i.rXU(S.O),i.rXU(y.JO),i.rXU(O.i))}}static{this.\u0275cmp=i.VBU({type:V,selectors:[["app-announcement-bar"]],viewQuery:function(X,K){if(1&X&&(i.GBs(C,5,i.aKT),i.GBs(_,5,i.aKT)),2&X){let ne;i.mGM(ne=i.lsd())&&(K.languagePickerElem=ne.first),i.mGM(ne=i.lsd())&&(K.locationPickerElem=ne.first)}},standalone:!0,features:[i.aNF],decls:1,vars:0,consts:[["locationPicker",""],["languagePicker",""],[4,"transloco"],[1,"announcement-bar-component","popsy-negative"],[1,"nav"],[1,"menu",3,"click"],[1,"small"],["aria-hidden","true",1,"fixed-space-8"],[1,"icon","gray-light"],["aria-hidden","true",1,"fixed-space-16"]],template:function(X,K){1&X&&i.DNE(0,U,22,10,"ng-container",2)},dependencies:[y.Q8,y.bA,b.J,D.Jj],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.announcement-bar-component[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;height:40px;transition:height .3s}.announcement-bar-component.hide[_ngcontent-%COMP%]{height:0}.announcement-bar-component.popsy-negative[_ngcontent-%COMP%]{background-color:#e392af;color:#fff}.announcement-bar-component[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;max-width:1200px;margin:0 auto;display:flex;justify-content:flex-start;align-items:center;padding:4px 16px;height:100%;white-space:nowrap}.announcement-bar-component[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.announcement-bar-component[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;font-size:15px;height:15px;min-height:15px;max-height:15px;width:15px;min-width:15px;max-width:15px;line-height:15px;max-width:unset}"],changeDetection:0})}}return V})()},18745:(it,ge,s)=>{"use strict";s.d(ge,{F:()=>M});var i=s(38355),E=s(40352),y=s(16711),A=s(55685);let M=(()=>{class D{constructor(){this.subscriptions=new i.yU,this.ongoingAPICalls=new Array(0),this.monitorSubject=new E.B,y.c.debugMode&&this.subscriptions.add(this.monitorSubject.subscribe({next:f=>{try{window.POPSY_ONGOING_CALLS=f}catch{}}}))}clearSubscriptions(){this.subscriptions&&this.subscriptions.unsubscribe()}addApiCall(f){f&&(this.ongoingAPICalls.push(f),this.monitorSubject.next(this.ongoingAPICalls))}removeApiCall(f){f&&(this.ongoingAPICalls=[...this.ongoingAPICalls.filter(S=>f===S)],this.monitorSubject.next(this.ongoingAPICalls))}isOngoing(f){return!(!f||-1===this.ongoingAPICalls.indexOf(f))}static{this.\u0275fac=function(S){return new(S||D)}}static{this.\u0275prov=A.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})()},37588:(it,ge,s)=>{"use strict";s.d(ge,{X:()=>y});var i=s(55685),E=s(15214);let y=(()=>{class A{constructor(D){this.akitaRouterQuery=D,this.isBrowser=this.akitaRouterQuery.isBrowser,this.LOCAL_SERVER="http://127.0.0.1:4000"}get domain(){let D=this.ssrDomain;return null==D&&(D=this.isBrowser?"":this.LOCAL_SERVER),D||""}get ssrDomain(){try{return window.SSR_DOMAIN}catch{return null}}static{this.\u0275fac=function(b){return new(b||A)(i.KVO(E.O))}}static{this.\u0275prov=i.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},78019:(it,ge,s)=>{"use strict";s.d(ge,{$Y:()=>pt,Ae:()=>D,B3:()=>Xe,D0:()=>Fn,DN:()=>f,DQ:()=>w,Df:()=>Ae,E3:()=>Nr,EU:()=>fn,FQ:()=>Z,Fd:()=>we,Ff:()=>C,I4:()=>Xn,Ix:()=>zr,Ku:()=>ve,LD:()=>oe,LX:()=>_,M0:()=>b,M6:()=>se,Mg:()=>U,Ni:()=>x,Nv:()=>B,Od:()=>dt,RP:()=>st,SJ:()=>Sn,TO:()=>le,U5:()=>Be,U6:()=>re,W7:()=>Tr,WU:()=>Mt,Wb:()=>J,Xn:()=>ne,Xq:()=>Fe,YI:()=>M,YL:()=>De,YR:()=>ee,Yr:()=>cn,_5:()=>i,bO:()=>Wt,dB:()=>R,dn:()=>vi,ed:()=>We,fR:()=>yn,hW:()=>vt,ht:()=>He,i1:()=>Ee,ii:()=>G,kD:()=>Y,mK:()=>Ar,mz:()=>ur,n2:()=>mn,n6:()=>ce,n7:()=>$e,pT:()=>kn,qd:()=>yi,rm:()=>Ge,rw:()=>y,tG:()=>Un,u1:()=>E,wD:()=>A,y2:()=>S,zk:()=>Yt});const i=(Et,rt,It,Jt,Bn)=>{rt(Jt),Et(It,Jt,Bn)},E=(Et,rt)=>{Et("login",rt)},y=(Et,rt)=>{Et("logout",rt)},A=(Et,rt)=>{Et("auth_dialog_shown",{trigger:rt||"??"},"application","auth")},M=(Et,rt,It,Jt,Bn)=>{Et("error_dialog_shown",{title:rt||"??",description:It||"??",id:Jt||"anonymous",sessionID:Bn||"??"},"application","error")},D=(Et,rt,It,Jt,Bn,Yn)=>{Et("rate_app_feedback",{value:Bn,email:Yn||"",view:rt,step:It,feature:Jt},"application","")},b=(Et,rt,It,Jt)=>{Et("in_app_review_submitted",{provider:rt,number_of_stars:It,trigger:Jt},"application","")},f=(Et,rt,It,Jt,Bn,Yn,nt)=>{Et("rate_app_feedback_sent",{value:Bn,comments:Yn,email:nt||"",view:rt,step:It,feature:Jt},"application","")},S=(Et,rt,It,Jt)=>{Et("confirm_dialog_shown",{title:rt||"??",description:It||"??",id:Jt||"anonymous"},"application","prompt")},C=(Et,rt)=>{Et("signup_email",rt)},_=(Et,rt)=>{Et("signup_facebook",rt)},U=(Et,rt)=>{Et("signup_google",rt)},w=Et=>{Et("signup_google_requested",{},"engagement","method")},R=(Et,rt)=>{Et("signup_apple",rt)},x=Et=>{Et("account_deleted",{},"engagement","method")},ne=(Et,rt,It,Jt)=>{Et("share",{method:rt,content_type:It,content_id:Jt},"engagement","method")},le=(Et,rt,It,Jt,Bn,Yn)=>{Et("report",{report_channel:rt,link_type:It,has_comments:!0===Jt,anonymous:!0===Bn,locale:Yn},"engagement","method")},Y=(Et,rt,It)=>{Et("website_version",{version:rt,commit:It},"application","")},ve=(Et,rt)=>{Et("add_to_cart_shown",{trigger:rt},"ecommerce","")},He=(Et,rt,It,Jt)=>{rt(),Et("view_item",{currency:Jt.price.currency||"USD",value:Jt.price.amount||0,items:[{item_id:Jt.id,item_name:Jt.title,item_category:Jt.category,quantity:1,price:Jt.price.amount||0}]},"engagement",""),It(Jt)},se=(Et,rt,It,Jt,Bn,Yn,nt)=>{Et("select_promotion",{promotion_id:It,promotion_name:Jt,creative_name:Bn,creative_slot:Yn,location_id:nt,items:rt?[{item_id:rt.id,item_name:rt.title,item_category:rt.category,quantity:1,price:rt.price.amount||0}]:void 0},"engagement","")},Ge=(Et,rt,It,Jt,Bn)=>{rt(),Jt&&(Et("add_to_cart",{currency:Jt.price.currency,items:[{id:Jt.id,name:Jt.title||"empty-field",list_name:Bn,category:Jt?.category||void 0,brand:Jt?.brand||Jt?.phoneMetadata?.brand||void 0,color:Jt?.color||Jt?.phoneMetadata?.color||void 0,model:Jt?.model||Jt?.phoneMetadata?.model||void 0,storage:Jt?.storage||Jt?.phoneMetadata?.storageInGB||void 0,quantity:1,price:Jt.price.amount,location_id:Jt?.country||void 0}]},"ecommerce",""),It(Jt))},B=(Et,rt,It)=>{rt&&Et("add_insurance_to_cart",{id:rt.id,description:rt.description,quantity:rt.quantity||1,price:rt.price.amount,currency:rt.price.currency,trigger:It},"ecommerce","")},Z=(Et,rt,It)=>{rt&&Et("add_accessory_to_cart",{id:rt.id,description:rt.description,quantity:rt.quantity||1,price:rt.price.amount,currency:rt.price.currency,trigger:It},"ecommerce","")},J=(Et,rt)=>{if(rt&&rt.length>0){const It=new Array(0);let Jt="USD";for(const Bn of rt)!Jt&&Bn.product.price?.currency&&(Jt=Bn.product.price?.currency),It.push({id:Bn.product.id,name:Bn.product.title,category:Bn.product.category,quantity:Bn.quantity,price:Bn.product.price?.amount,location_id:Bn.product.country||void 0});Et("view_cart",{currency:Jt,items:It},"ecommerce","")}},re=(Et,rt,It,Jt,Bn,Yn,nt)=>{rt(),Jt?.length&&(Et("begin_checkout",{currency:Bn?.currency||"SAR",items:Jt?.map(qt=>({id:qt?.id||void 0,name:qt?.title||void 0,listName:Yn,category:qt?.category||void 0,quantity:qt?.quantity||1,price:qt?.price?.amount||void 0,location_id:qt?.country||void 0})),is_guest:nt,value:Bn?.amount||0},"ecommerce",""),It(Jt))},ce=(Et,rt,It,Jt,Bn)=>{rt?.length&&Et("begin_payment_overview",{currency:rt[0].price.currency||"SAR",items:rt?.map(Yn=>({id:Yn?.id||void 0,name:Yn?.title||void 0,listName:It,category:Yn?.category||void 0,quantity:Yn?.quantity||1,price:Yn?.price?.amount||void 0,location_id:Yn?.country||void 0})),is_guest:Jt,new_checkout:Bn||!1},"ecommerce","")},we=(Et,rt,It)=>{rt&&Et("remove_from_cart",{currency:rt.price.currency,items:[{id:rt.id,name:rt.title,list_name:It,category:rt.category,quantity:1,price:rt.price.amount}]},"ecommerce","")},oe=(Et,rt,It)=>{rt&&Et("remove_insurance_from_cart",{id:rt.id,description:rt.description,quantity:rt.quantity||1,price:rt.price.amount,currency:rt.price.currency,trigger:It},"ecommerce","")},Ee=(Et,rt,It,Jt,Bn)=>{let Yn=Bn;rt&&(Bn<=0&&(Yn=.1*(rt[0]?.price?.amount||0)),Et("add_shipping_info",{currency:It,shipping_tier:Jt,value:Yn,items:rt.forEach(nt=>({id:nt?.id||void 0,name:nt?.title||void 0,category:nt?.category||void 0,quantity:1,price:nt?.price?.amount||void 0,location_id:nt?.country||void 0}))},"ecommerce",""))},$e=(Et,rt,It,Jt,Bn,Yn,nt,qt,je)=>{Et("create_payment",{amount:Jt,currency:Bn,is_guest:qt,provider:Yn||"??",method:nt||"??",first_intent:je},"ecommerce",""),rt(It,Jt,Bn)},Xe=(Et,rt,It,Jt,Bn,Yn)=>{Et("request_otp",{id:rt,is_guest:Bn,provider:It||"??",method:Jt||"??",first_intent:Yn},"ecommerce","")},De=(Et,rt,It,Jt,Bn,Yn)=>{Et("sent_otp",{id:rt,is_guest:Bn,provider:It||"??",method:Jt||"??",first_intent:Yn},"ecommerce","")},We=(Et,rt)=>{Et("changed_stc_phone_number",{is_guest:rt},"ecommerce","")},st=(Et,rt,It)=>{Et("stc_payment_error",{code:rt,message:It},"ecommerce","")},dt=(Et,rt,It,Jt,Bn,Yn,nt,qt,je,bt,Rt,an,ln)=>{let pn=.1*(Bn?.reduce((jn,zn)=>jn+zn?.price.amount*(zn?.quantity||1),0)||0);0===pn&&(pn=100,qt="SAR"),rt(Jt,pn,qt),Et("purchase",{transaction_id:Jt,value:pn,currency:qt,shipping:nt,list_name:je,provider:bt||"??",method:Rt||"??",items:Bn?.map(jn=>({id:jn?.id||void 0,name:jn?.title||void 0,category:jn?.category||void 0,quantity:jn?.quantity||1,price:jn?.price?.amount||void 0,location_id:jn?.country||void 0})),is_guest:an,popsy_fee:Yn||void 0,is_protected:ln||!1},"ecommerce",""),Bn&&It(Bn,pn,qt)},Wt=(Et,rt,It,Jt,Bn)=>{It?.length&&Et("purchase_insurance",{transaction_id:rt,provider:Jt||"??",method:Bn||"??",items:It?.map(Yn=>({id:Yn?.id||void 0,description:Yn?.description||void 0,quantity:Yn?.quantity||1,price:Yn?.price?.amount||void 0,currency:Yn?.price?.currency||void 0}))},"ecommerce","")},Yt=(Et,rt)=>{Et("login_one_tap",{source:rt},"application","")},fn=(Et,rt)=>{Et("rate_delivery_flow_buyer",{value:rt},"application","")},Fn=Et=>{Et("window_unloaded",{},"application","")},Xn=(Et,rt)=>{Et("newsletter_open",{variant:rt},"marketing","email")},Sn=(Et,rt)=>{Et("newsletter_email",{variant:rt},"marketing","email")},mn=(Et,rt)=>{Et("newsletter_email_failed",{email:rt},"marketing","email")},Tr=(Et,rt,It)=>{Et("newsletter_phone",{phone:It,variant:rt},"marketing","phone")},Ae=(Et,rt,It,Jt)=>{Et("payment_method_selected",{provider:rt,method:It,country:Jt},"web","phone")},G=(Et,rt)=>{Et("payment_info_card_clicked",{trigger:rt},"web","")},ee=(Et,rt)=>{Et("declined_payment_popup_shown",{country:rt},"web","")},Fe=(Et,rt)=>{Et("declined_payment_popup_ignored",{country:rt},"web","")},pt=(Et,rt,It)=>{Et("retry_declined_payment",{method:rt,country:It},"web","")},vt=(Et,rt,It)=>{Et("search",{search_term:rt,country:It,platform:"web"},"web","phone")},Mt=(Et,rt,It)=>{Et("sort_by",{search_term:rt,country:It},"web","phone")},cn=(Et,rt)=>{Et("search_for_address",{country:rt},"web","phone")},kn=(Et,rt)=>{Et("autocomplete_address",{country:rt},"web","phone")},Be=(Et,rt,It,Jt)=>{Et("tamara_got_redirected",{variant:rt,country:It,phone:Jt},"debug","tamara-test")},yn=(Et,rt,It)=>{Et("tamara_pre_check_approved",{value:rt,is_approved:rt,country:It},"debug","tamara-test")},Un=(Et,rt,It)=>{Et("tabby_pre_check_approved",{value:rt,is_approved:rt,country:It},"debug","tabby-test")},ur=(Et,rt,It)=>{Et("credit_card_success",{variant:rt,country:It},"debug","checkout-test")},Ar=(Et,rt,It)=>{Et("credit_card_form_loaded",{variant:rt,country:It},"debug","checkout-test")},zr=(Et,rt,It)=>{Et("credit_card_submitted",{variant:rt,country:It},"debug","checkout-test")},yi=(Et,rt,It,Jt,Bn)=>{Et("quara_redirect_timeout",{session_id:rt,payment_id:It,country:Jt,link_url:Bn},"debug","checkout-test")},Nr=(Et,rt,It,Jt)=>{Et("baseeta_onboarding_redirected",{page_name:rt,phoneNumber:It,email:Jt},"debug","checkout-test")},vi=(Et,rt,It,Jt)=>{Et("baseeta_onboarding_redirected_timeout",{page_name:rt,phoneNumber:It,email:Jt},"debug","checkout-test")}},31946:(it,ge,s)=>{"use strict";s.d(ge,{p:()=>C});var i=s(16711),E=s(34678),y=s(31134),A=s(55685),M=s(93518);class D{static generate(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,U=>{const w=16*Math.random()|0;return("x"===U?w:w%4+8).toString(16)})}}var b=s(15214);let f=(()=>{class _{constructor(w){this.akitaRouterQuery=w,this.isBrowser=this.akitaRouterQuery.isBrowser,this.disabled=!1,this.fetchingIpAddress=!1}get facebookPixel(){return i.c.debugAnalitycs?function(...w){const R=new Array(0);for(const V of Object.keys(w||{})){const x=w[V];R.push("string"==typeof x?x:JSON.stringify(x,null,"  "))}console.log(`[ Facebook Pixel ]\t${R.join("\t")}`)}:this.isBrowser&&i.c.enableAnalitycs&&window.fbq||function(){}}trackEvent(w,R){if(!this.disabled)try{this.pushIpAddressToDataLayer();const V={eventID:"FB_"+w+"_"+D.generate()},x={email:window.tidioIdentify?.email||"email_not@popsy.com"},z={phoneNumber:window.tidioIdentify?.phone||""},X={name:window.tidioIdentify?.name||"noname"},K={fbOptions:R||{}};window.dataLayer.push(V),window.dataLayer.push(x),window.dataLayer.push(X),window.dataLayer.push(z),window.dataLayer.push(K),this.facebookPixel("track",w,R||void 0,V)}catch{}}trackAddPaymentInfo(w,R,V){this.trackEvent("AddPaymentInfo",{content_ids:[w],contents:[{id:w,quantity:1}],currency:V,value:R})}trackAddToCart(w){this.trackEvent("AddToCart",{content_ids:[w.id],content_name:w.title,content_type:"product",contents:[{id:w.id,quantity:1}],currency:w.price.currency,value:w.price.amount})}trackAddToWishlist(w){this.trackEvent("AddToWishlist",{content_name:w.title,content_category:w.category,content_ids:[w.id],contents:[{id:w.id,quantity:1}],currency:w.price.currency,value:w.price.amount})}trackCompleteRegistration(w,R){this.trackEvent("CompleteRegistration",{content_name:w,status:R,currency:"USD",value:1})}trackContact(){this.trackEvent("Contact")}trackInitiateCheckout(w){this.trackEvent("InitiateCheckout",{content_category:w.map(R=>R.category),content_ids:w.map(R=>R.id),contents:w.map(R=>({id:R.id,quantity:R.quantity})),currency:w[0].price.currency,num_items:w.reduce((R,V)=>R+(V?.quantity||1),0),value:w.reduce((R,V)=>R+V?.price.amount*(V?.quantity||1),0)})}trackLead(w,R,V,x){this.trackEvent("Lead",{content_category:w,content_name:R,currency:V,value:x})}trackPageView(){this.trackEvent("PageView")}trackPurchase(w,R,V){this.trackEvent("Purchase",{content_ids:w.map(x=>x.id),content_name:w.map(x=>x.title),content_type:"product",contents:w.map(x=>({id:x.id,quantity:x.quantity})),currency:V,num_items:w.reduce((x,z)=>x+(z?.quantity||1),0),value:R})}trackSearch(w,R){this.trackEvent("Search",{content_category:R,search_string:w})}trackViewContent(w){this.trackEvent("ViewContent",{content_ids:[w.id],content_name:w.title,currency:w.price.currency,value:w.price.amount,content_category:w.category,content_type:"product",contents:[{id:w.id,quantity:1}]})}pushIpAddressToDataLayer(){try{!window.dataLayer.some(w=>w.ipAddress)&&!this.fetchingIpAddress&&(this.fetchingIpAddress=!0,fetch("https://jsonip.com",{mode:"cors"}).then(R=>R.json()).then(R=>{const V={ipAddress:R.ip||"168.212.226.204"};this.fetchingIpAddress=!1,window.dataLayer.push(V)}).then(()=>{}).catch(()=>{}))}catch{}}static{this.\u0275fac=function(R){return new(R||_)(A.KVO(b.O))}}static{this.\u0275prov=A.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var S=s(73536),O=s(57851);let C=(()=>{class _{constructor(w,R,V,x,z,X){this.zone=w,this.firebaseService=R,this.facebookPixelService=V,this.akitaRouterQuery=x,this.akitaRemoteConfigService=z,this.akitaCheckoutStore=X,this.disabled=!1}intLogSmartlookEvent(w,R,V){const x=E.u.window;x&&x.smartlook&&x.smartlook(w,R,V)}get logEventWrapper(){return this.intLogEventWrapper.bind(this)}intLogEventWrapper(w,R,V,x,z){this.zone.runOutsideAngular(()=>{if(this.akitaRouterQuery.isBrowser){const X=this.propagateCampaignInfo(R);i.c.debugAnalitycs&&(console.log(`${w}`,X),this.disabled&&console.warn("Skipped! -> Firebase Analytics Disabled!!")),this.disabled||(this.firebaseService.analytics.then(K=>{K&&(0,y.b3)(K,w,X,z||void 0)}).catch(()=>{}),this.firebaseService.logEventToAnalytics(w,X,V,x),this.logSmartlookEvent("track",w,X))}})}propagateCampaignInfo(w){const R={...w},V=this.akitaRouterQuery.googleADSMetadata;return V.utmSource&&(R.utm_source=V.utmSource),V.utmMedium&&(R.utm_medium=V.utmMedium),V.utmCampaign&&(R.utm_campaign=V.utmCampaign),V.utmContent&&(R.utm_content=V.utmContent),V.utmContent&&(R.utm_term=V.utmTerm),V.gclid&&(R.gclid=V.gclid),V.dclid&&(R.dclid=V.dclid),V.aclid&&(R.aclid=V.aclid),V.anid&&(R.anid=V.anid),V.cp1&&(R.cp1=V.cp1),V.gclsrc&&(R.gclsrc=V.gclsrc),this.firebaseService.updateConfig({firebase_campaign:{source:V.utmSource||void 0,medium:V.utmMedium||void 0,campaign:V.utmCampaign||void 0,name:V.utmCampaign||void 0,term:V.utmTerm||void 0,content:V.utmContent||void 0,gclid:V.gclid||void 0,dclid:V.dclid||void 0,aclid:V.aclid||void 0,anid:V.anid||void 0,cp1:V.cp1||void 0,gclsrc:V.gclsrc||void 0}}),R}setCurrentScreenWrapper(w,R){this.zone.runOutsideAngular(()=>{i.c.debugAnalitycs&&(console.log(`Set Current Screen to: "${w}"`),this.disabled&&console.warn("Skipped! -> Firebase Analytics Disabled!!")),this.disabled||this.firebaseService.analytics.then(V=>{V&&(0,y.I6)(V,w,R||void 0)}).catch(()=>{})})}setUserPropertiesWrapper(w,R){this.zone.runOutsideAngular(()=>{i.c.debugAnalitycs&&(console.log('Set User Properties"',w),this.disabled&&console.warn("Skipped! -> Firebase Analytics Disabled!!")),this.disabled||this.firebaseService.analytics.then(V=>{V&&(0,y.JH)(V,w,R||void 0)}).catch(()=>{})})}get recordPageView(){return(w,R,V)=>{this.pageView(w,R,V)}}get logSmartlookEvent(){return(w,R,V)=>{this.intLogSmartlookEvent(w,R,V)}}get firebaseRecordPaymentMethodSelectedADConversion(){return()=>{this.firebaseService.recordPaymentMethodSelectedADConversion()}}get firebaseRecordPurchaseADConversion(){return w=>{this.firebaseService.recordPurchaseADConversion(w)}}get firebaseRecordAddressAndPhoneADConversion(){return()=>{this.firebaseService.recordAddressAndPhoneADConversion()}}get firebaseRecordProductPageViewADConversion(){return()=>{this.firebaseService.recordProductPageViewADConversion()}}get firebaseRecordAddToCartADConversion(){return()=>{this.firebaseService.recordAddToCartADConversion()}}get firebaseSetCurrentScreenWrapper(){return(w,R)=>{this.setCurrentScreenWrapper(w,R)}}get facebookTrackAddToCart(){return w=>{this.facebookPixelService.trackAddToCart(w)}}get facebookTrackInitiateCheckout(){return w=>{this.facebookPixelService.trackInitiateCheckout(w)}}get facebookTrackViewItem(){return w=>{this.facebookPixelService.trackViewContent(w)}}get facebookTrackSearch(){return(w,R)=>{this.facebookPixelService.trackSearch(w,R)}}get facebookTrackAddPaymentInfo(){return(w,R,V)=>{this.facebookPixelService.trackAddPaymentInfo(w,R,V)}}get facebookTrackPurchase(){return(w,R,V)=>{this.facebookPixelService.trackPurchase(w,R,V)}}get auth(){return(w,R)=>{this.intAuth(w,R)}}pageView(w,R,V){this.logEventWrapper("page_view",{page_name:`${w||"Home"}`,page_title:`${w||"Home"}`,page_location:`${E.u.getLocationHref()||"https://www.popsy.app"}`,page_path:V||`${E.u.getLocationPathname()||"/"}`},"",""),this.logEventWrapper("screen_view",{app_name:"Web",screen_name:`${w||"Home"}`,screen_class:`${R||"search"}`,firebase_screen:`${R||"Home"}`,firebase_screen_class:`${R||"search"}`,firebase_screen_id:`${R||"search"}`},"",""),this.facebookPixelService.trackPageView(),this.logSmartlookEvent("navigation",`${V||E.u.getLocationPathname()||"/"}`)}intAuth(w,R){let V="",x="",z="";R&&(V=R.id||"",x=R.firstName||"",z=R.email||""),this.firebaseService.setUserId(V||null),this.logEventWrapper(w,{object_id:V,username:x,email:z},"engagement","method"),this.setUserPropertiesWrapper({user_id:V,user_uid:V,user_registration:V?"registered":"unregistered"}),this.firebaseService.setUserId(V||null),this.facebookPixelService.trackCompleteRegistration(x,!!V),("signup_facebook"===w||"signup_google"===w||"signup_apple"===w||"signup_email"===w)&&this.facebookPixelService.trackLead(w,x),this.logSmartlookEvent("identify",`${V||""}`,{name:`${x||""}`,email:`${z||""}`}),this.akitaRemoteConfigService.getRemoteConfigAsync()}refreshUserInfo(w,R,V,x){let z="";w&&(z=w.id||""),this.setUserPropertiesWrapper({user_id:z,user_uid:z,user_listings:R||0,user_messages:V||0,user_favorites:x||0,user_registration:z?"registered":"unregistered",experiment_cep_address_form:"cep"}),this.firebaseService.setUserId(z||null),this.setTidioVisitorData(w?.id,w?.firstName,w?.phone,w?.email,w?.location?.city,w?.location?.country,[z?"registered":"unregistered"])}setTidioVisitorData(w,R,V,x,z,X,K){if(this.akitaRouterQuery.isBrowser){const ne={...window.tidioIdentify||{}};if(w&&(ne.distinct_id=w),R&&(ne.name=R),x&&(ne.email=x),V&&(ne.phone=V),z&&(ne.city=z),X&&(ne.country=`${X}`.toUpperCase()),K){const le=[...ne.tags||[]];for(const Y of K)le.includes(Y)||le.push(Y);ne.tags=le}try{window.tidioIdentify=ne,window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.setVisitorData(ne)}catch{}}}appException(w,R,V,x,z,X){this.logEventWrapper("exception",{description:w,errorType:R,code:V,fatal:!0===x,firebase_event_origin:X||void 0,firebase_screen_id:z||void 0},"application","errors"),this.logEventWrapper("app_exception",{description:w,errorType:R,code:V,fatal:!0===x,firebase_event_origin:X||void 0,firebase_screen_id:z||void 0},"application","errors"),this.logSmartlookEvent("error",{description:w,errorType:R,code:V,fatal:!0===x,firebase_event_origin:X||void 0,firebase_screen_id:z||void 0})}setSessionUserDetailsIntoDataLayer(){if(this.akitaRouterQuery.isBrowser){const w=this.akitaCheckoutStore.getValue().session;try{const R={EC_email:w?.email||window.tidioIdentify?.email||"email_not@popsy.com"},V={EC_name:w?.userName||window.tidioIdentify?.name||"noname"},x={EC_phoneNumber:w?.phone?.display||window.tidioIdentify?.phone||"xxx xxxxxxxx"};window.dataLayer.push(R),window.dataLayer.push(V),window.dataLayer.push(x)}catch{}}}static{this.\u0275fac=function(R){return new(R||_)(A.KVO(A.SKi),A.KVO(M.f),A.KVO(f),A.KVO(b.O),A.KVO(S.o),A.KVO(O.G))}}static{this.\u0275prov=A.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})()},64926:(it,ge,s)=>{"use strict";s.d(ge,{F:()=>R,c:()=>V});var i=s(55685),E=s(60602),y=s(34678),A=s(16711),M=s(10047),D=s(42567),b=s(54436),f=s(49283),S=s(67081),O=s(27473),C=s(37588);const _="Translations Loader",U=`${_} - Start`,w=`${_} - End`,R=["ar","en"];let V=(()=>{class x{constructor(X){this.appUriService=X,this.http=(0,i.WQX)(E.Qq),this.prefix="/assets/i18n/",this.suffix=".json",this.isBrowser=!1,this.domain=""}detectContext(){const X=-1!==(y.u.getLocationHref()||"").indexOf("127.0.0.1");this.suffix=`.${A.c.app.commit}.json`,X&&(this.suffix=".json"),this.prefix="/assets/i18n/",this.appUriService.domain&&(this.prefix=`${this.appUriService.domain}/assets/i18n/`)}isSupportedLanguage(X){return-1!==R.indexOf(X)}getTranslation(X){return this.getTranslationInt(X,this.suffix)}getTranslationInt(X,K){S.w.createMark(U);const ne=this.isSupportedLanguage(X);return"en"!==X&&ne?(this.detectContext(),this.http.get(`${this.prefix}${X}${K||".json"}`,{responseType:"text"}).pipe((0,b.T)(le=>{try{return S.w.createMark(w),S.w.measure(_,U,w),JSON.parse(le)}catch{return console.warn(`The language "${X||""}" is not available (Falling back to English)`),S.w.createMark(w),S.w.measure(_,U,w),(0,M.of)(O)}}),(0,f.W)(()=>""!==`${K||""}`.replace(".json","")?(console.warn(`The language file "${X||""}${K||""}" is not available (Retry with "${X||""}.json)"`),this.suffix=".json",this.getTranslationInt(X,".json")):(console.warn(`The language "${X||""}" is not available (Falling back to English)`),S.w.createMark(w),S.w.measure(_,U,w),(0,M.of)(O))))):(0,M.of)(O).pipe((0,D.M)(()=>{S.w.createMark(w),S.w.measure(_,U,w)}))}static{this.\u0275fac=function(K){return new(K||x)(i.KVO(C.X))}}static{this.\u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})()},14992:(it,ge,s)=>{"use strict";s.d(ge,{o:()=>y});var i=s(33055),E=s(55685);let y=(()=>{class A{init(D){return new Promise((b,f)=>{try{return FB.init(D),b()}catch(S){return f(S)}})}api(D,b="get",f={}){return new Promise((S,O)=>{try{FB.api(D,b,f,C=>{C?C.error?O(C.error):S(C):O()})}catch(C){O(C)}})}login(D){return new i.c(b=>{try{FB.login(f=>{f?.authResponse?(b.next(f),b.complete()):(b.next(null),b.complete())},D)}catch(f){b.error(f),b.complete()}})}logout(){return new Promise((D,b)=>{try{FB.logout(f=>{D(f)})}catch(f){b(f)}})}static{this.\u0275fac=function(b){return new(b||A)}}static{this.\u0275prov=E.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})()},39552:(it,ge,s)=>{"use strict";s.d(ge,{p:()=>y});var i=s(55685),E=s(89497);let y=(()=>{class A{set json(D){this.jsonLD=D?this.getSafeHTML(D):null}constructor(D){this.sanitizer=D}getSafeHTML(D){let b;return b=this.formatted?JSON.stringify(D,null,"  "):JSON.stringify(D),b&&(b=b.replace(/<\/script>/g,"<\\/script>")),this.sanitizer.bypassSecurityTrustHtml(`<script type="application/ld+json">${b}<\/script>`)}static{this.\u0275fac=function(b){return new(b||A)(i.rXU(E.up))}}static{this.\u0275cmp=i.VBU({type:A,selectors:[["app-json-ld"]],hostVars:1,hostBindings:function(b,f){2&b&&i.Mr5("innerHTML",f.jsonLD,i.npT)},inputs:{formatted:"formatted",json:"json"},standalone:!0,features:[i.aNF],decls:0,vars:0,template:function(b,f){},encapsulation:2,changeDetection:0})}}return A})()},7190:(it,ge,s)=>{"use strict";s.d(ge,{J3:()=>D,Kw:()=>b,eG:()=>M});var i=s(55685),E=s(38355),y=s(33055),A=s(16711);const M=new i.nKC("LOADABLE_CONFIG"),D=new i.nKC("LOADABLE_ROOT_OPTIONS");let b=(()=>{class f{constructor(O){this.options=O,this.modules=[]}addConfig(O){const C=new E.yU;if(O){this.modules=[...this.modules,...O];for(const _ of O)if(_.preload||this.options&&this.options.preload)try{C.add(this.preload(_.load).subscribe({next:()=>{},error:U=>{A.c.debugMode&&console.log(U)}}))}catch(U){A.c.debugMode&&console.log(U)}}return C}getModule(O){return this.modules.find(C=>C.name===O)||null}preload(O){return new y.c(C=>{try{if("string"==typeof O){const _=this.getModule(O);if(!_)return C.error(new Error("LAZY_MODULE_NOT_FOUND")),void C.complete();O=_.load}O().then(_=>{C.next(_),C.complete()}).catch(_=>{C.error(_),C.complete()})}catch(_){C.error(_),C.complete()}})}static{this.\u0275fac=function(C){return new(C||f)(i.KVO(D,8))}}static{this.\u0275prov=i.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})()},64387:(it,ge,s)=>{"use strict";s.d(ge,{F:()=>O});var i=s(40352),E=s(38355),y=s(79274),A=s(2267),M=s(31761),D=s(55685),b=s(77366),f=s(44409);const S="auth-overlay-module";let O=(()=>{class C{constructor(U,w,R){this.injector=U,this.akitaOverlaysQuery=w,this.akitaOverlaysService=R,this.dismissed=null,this.credentials=null,this.inboxSubject=new i.B;try{this.document=this.injector.get(M.qQ,null)}catch{this.document=null}}isAlreadyOpen(){return!!this.document?.getElementById&&!!this.document.getElementById(S)}open(U){if(!this.isAlreadyOpen()){const w=this.akitaOverlaysQuery.overlayFailedToLoad(S),R=this.akitaOverlaysQuery.getOverlayStatus(S),V=this.akitaOverlaysQuery.isOverlayLoading(S);w||!R&&!V?(this.akitaOverlaysService.loadDialog(S),this.openWhenReady(U)):R?this.inboxSubject.next(U||{}):this.openWhenReady(U)}}openWhenReady(U){if(!this.isAlreadyOpen()){const w=new E.yU;w.add(this.akitaOverlaysQuery.selectOverlayLoadStatus(S).pipe((0,y.p)(R=>!!R),(0,A.s)(1)).subscribe({next:()=>{this.inboxSubject.next(U||{}),w.unsubscribe()}}))}}close(){this.inboxSubject.next(null)}get observe(){return this.inboxSubject.asObservable()}static{this.\u0275fac=function(w){return new(w||C)(D.KVO(D.zZn),D.KVO(b.Y),D.KVO(f.z))}}static{this.\u0275prov=D.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},19323:(it,ge,s)=>{"use strict";s.d(ge,{I:()=>S});var i=s(40352),E=s(38355),y=s(79274),A=s(2267),M=s(55685),D=s(77366),b=s(44409);const f="burguer-menu-overlay";let S=(()=>{class O{constructor(_,U){this.akitaOverlaysQuery=_,this.akitaOverlaysService=U,this.inboxSubject=new i.B,this.reported=!1}open(_){const U=this.akitaOverlaysQuery.overlayFailedToLoad(f),w=this.akitaOverlaysQuery.getOverlayStatus(f),R=this.akitaOverlaysQuery.isOverlayLoading(f);U||!w&&!R?(this.akitaOverlaysService.loadDialog(f),this.openWhenReady(_)):w?this.inboxSubject.next(_||{}):this.openWhenReady(_)}openWhenReady(_){const U=new E.yU;U.add(this.akitaOverlaysQuery.selectOverlayLoadStatus(f).pipe((0,y.p)(w=>!!w),(0,A.s)(1)).subscribe({next:()=>{this.inboxSubject.next(_||{}),U.unsubscribe()}}))}close(){this.inboxSubject.next(null)}get observe(){return this.inboxSubject.asObservable()}static{this.\u0275fac=function(U){return new(U||O)(M.KVO(D.Y),M.KVO(b.z))}}static{this.\u0275prov=M.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},72131:(it,ge,s)=>{"use strict";s.d(ge,{d:()=>S});var i=s(40352),E=s(38355),y=s(79274),A=s(2267),M=s(55685),D=s(77366),b=s(44409);const f="cart-overlay";let S=(()=>{class O{constructor(_,U){this.akitaOverlaysQuery=_,this.akitaOverlaysService=U,this.inboxSubject=new i.B,this.reported=!1}open(_){const U=this.akitaOverlaysQuery.overlayFailedToLoad(f),w=this.akitaOverlaysQuery.getOverlayStatus(f),R=this.akitaOverlaysQuery.isOverlayLoading(f);U||!w&&!R?(this.akitaOverlaysService.loadDialog(f),this.openWhenReady(_)):w?this.inboxSubject.next(_||{}):this.openWhenReady(_)}openWhenReady(_){const U=new E.yU;U.add(this.akitaOverlaysQuery.selectOverlayLoadStatus(f).pipe((0,y.p)(w=>!!w),(0,A.s)(1)).subscribe({next:()=>{this.inboxSubject.next(_||{}),U.unsubscribe()}}))}close(){this.inboxSubject.next(null)}get observe(){return this.inboxSubject.asObservable()}static{this.\u0275fac=function(U){return new(U||O)(M.KVO(D.Y),M.KVO(b.z))}}static{this.\u0275prov=M.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},94395:(it,ge,s)=>{"use strict";s.d(ge,{i:()=>S});var i=s(40352),E=s(38355),y=s(79274),A=s(2267),M=s(55685),D=s(77366),b=s(44409);const f="footer-overlay";let S=(()=>{class O{constructor(_,U){this.akitaOverlaysQuery=_,this.akitaOverlaysService=U,this.currencyInboxSubject=new i.B,this.languageInboxSubject=new i.B,this.locationInboxSubject=new i.B}open(_,U){const w=this.akitaOverlaysQuery.overlayFailedToLoad(f),R=this.akitaOverlaysQuery.getOverlayStatus(f),V=this.akitaOverlaysQuery.isOverlayLoading(f);w||!R&&!V?(this.akitaOverlaysService.loadDialog(f),this.openWhenReady(U)):R?"currency"===_?this.currencyInboxSubject.next(U||{}):"language"===_?this.languageInboxSubject.next(U||{}):"location"===_&&this.locationInboxSubject.next(U||{}):this.openWhenReady(U)}openWhenReady(_,U){const w=new E.yU;w.add(this.akitaOverlaysQuery.selectOverlayLoadStatus(f).pipe((0,y.p)(R=>!!R),(0,A.s)(1)).subscribe({next:()=>{"currency"===_?this.currencyInboxSubject.next(U||{}):"language"===_?this.languageInboxSubject.next(U||{}):"location"===_&&this.locationInboxSubject.next(U||{}),w.unsubscribe()}}))}closeCurrency(){this.currencyInboxSubject.next(null)}get observeCurrency(){return this.currencyInboxSubject.asObservable()}closeLanguage(){this.languageInboxSubject.next(null)}get observeLanguage(){return this.languageInboxSubject.asObservable()}closeLocation(){this.locationInboxSubject.next(null)}get observeLocation(){return this.locationInboxSubject.asObservable()}static{this.\u0275fac=function(U){return new(U||O)(M.KVO(D.Y),M.KVO(b.z))}}static{this.\u0275prov=M.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},35955:(it,ge,s)=>{"use strict";s.d(ge,{s:()=>O});var i=s(40352),E=s(38355),y=s(79274),A=s(2267),M=s(31761),D=s(55685),b=s(77366),f=s(44409);const S="newsletter-overlay";let O=(()=>{class C{constructor(U,w,R){this.injector=U,this.akitaOverlaysQuery=w,this.akitaOverlaysService=R,this.inboxSubject=new i.B;try{this.document=this.injector.get(M.qQ,null)}catch{this.document=null}}isAlreadyOpen(){return!!this.document?.getElementById&&!!this.document.getElementById(S)}open(U){if(!this.isAlreadyOpen()){const w=this.akitaOverlaysQuery.overlayFailedToLoad(S),R=this.akitaOverlaysQuery.getOverlayStatus(S),V=this.akitaOverlaysQuery.isOverlayLoading(S);w||!R&&!V?(this.akitaOverlaysService.loadDialog(S),this.openWhenReady(U)):R?this.inboxSubject.next(U||{}):this.openWhenReady(U)}}openWhenReady(U){if(!this.isAlreadyOpen()){const w=new E.yU;w.add(this.akitaOverlaysQuery.selectOverlayLoadStatus(S).pipe((0,y.p)(R=>!!R),(0,A.s)(1)).subscribe({next:()=>{this.inboxSubject.next(U||{}),w.unsubscribe()}}))}}close(){this.inboxSubject.next(null)}get observe(){return this.inboxSubject.asObservable()}static{this.\u0275fac=function(w){return new(w||C)(D.KVO(D.zZn),D.KVO(b.Y),D.KVO(f.z))}}static{this.\u0275prov=D.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},34084:(it,ge,s)=>{"use strict";s.d(ge,{_:()=>i});class i{}},76604:(it,ge,s)=>{"use strict";s.d(ge,{J:()=>y});var i=s(34084),E=s(55685);let y=(()=>{class A extends i._{constructor(D,b){super(),this.element=D,this.renderer=b}ngOnChanges(D){D?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(b){return new(b||A)(E.rXU(E.aKT),E.rXU(E.sFG))}}static{this.\u0275cmp=E.VBU({type:A,selectors:[["popsy-icon-arrow-down-1"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[E.Vt3,E.OA$,E.aNF],decls:2,vars:0,consts:[["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["d","M23.25 7.311L12.53 18.03h0a.749.749 0 01-1.06 0L.75 7.311","stroke-linecap","round","stroke-width","1.5","stroke","#000","fill","none","stroke-linejoin","round"]],template:function(b,f){1&b&&(E.qSk(),E.j41(0,"svg",0),E.nrm(1,"path",1),E.k0s())},encapsulation:2,changeDetection:0})}}return A})()},77880:(it,ge,s)=>{"use strict";s.d(ge,{k:()=>y});var i=s(34084),E=s(55685);let y=(()=>{class A extends i._{constructor(D,b){super(),this.element=D,this.renderer=b}ngOnChanges(D){D?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(b){return new(b||A)(E.rXU(E.aKT),E.rXU(E.sFG))}}static{this.\u0275cmp=E.VBU({type:A,selectors:[["popsy-icon-burguer-menu"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[E.Vt3,E.OA$,E.aNF],decls:4,vars:0,consts:[["viewBox","0 0 33 19","fill","none","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["y1","1","x2","33","y2","1","stroke","black","stroke-width","2"],["y1","9.5","x2","33","y2","9.5","stroke","black","stroke-width","2"],["y1","18","x2","33","y2","18","stroke","black","stroke-width","2"]],template:function(b,f){1&b&&(E.qSk(),E.j41(0,"svg",0),E.nrm(1,"line",1)(2,"line",2)(3,"line",3),E.k0s())},encapsulation:2,changeDetection:0})}}return A})()},66238:(it,ge,s)=>{"use strict";s.d(ge,{u:()=>y});var i=s(34084),E=s(55685);let y=(()=>{class A extends i._{constructor(D,b){super(),this.element=D,this.renderer=b}ngOnChanges(D){D?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(b){return new(b||A)(E.rXU(E.aKT),E.rXU(E.sFG))}}static{this.\u0275cmp=E.VBU({type:A,selectors:[["popsy-icon-popsy-duo"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[E.Vt3,E.OA$,E.aNF],decls:13,vars:0,consts:[["viewBox","0 0 17.195736 5.6781487","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["transform","matrix(.26458333 0 0 .26458333 26.74249 -55.324536)"],["fill","#be4a75","stroke-width","1.017875"],["d","m-75.526003 221.27831q0 .0272-.0135.0543 0 .0272 0 .0542-.0136.24429.0407.46144.0272.10857.0679.20358.0407.095.095.17643.095.17642.25786.27143.0407.0407.14929.095.0407.0136.14929.0407.0543.0136.16286.0136h.17643.0136v-.0136h.0135.0136.0542q.0272-.0136.0407-.0136.0135 0 .0407-.0135.0407-.0136.0814-.0272.0407-.0135.0814-.0272.0679-.0407.13573-.0814.0679-.0407.13571-.10858.0542-.0407.13571-.12214.0272-.0407.0543-.0679.0407-.0407.0679-.0814.0679-.0814.10858-.16286.0542-.095.10857-.19.0272-.0543.0543-.095.0272-.0543.0542-.10858.0272-.0542.0407-.095.0272-.0543.0542-.12215.0407-.10858.0814-.21715.0542-.10857.095-.23071.0814-.23073.1493-.46144.0814-.2443.14928-.48859l.12214-.48858q.0272-.12214.0543-.24429.0407-.12214.0679-.25785.0272-.0679.0272-.12215.0135-.0543.0272-.12215.0272-.0679.0272-.12214.0136-.0679.0272-.13571l.0542-.25787.0543-.25786.23071-1.04502q.0542-.25786.10858-.51572.0542-.25787.12214-.52929.0679-.27144.13572-.52929.0814-.27144.17643-.54288.095-.27142.19001-.54286.10857-.27144.25786-.54288.0135-.0407.0679-.12214.0135-.0543.0679-.13571.0272-.0543.0814-.13572.0272-.0272.0407-.0679.0135-.0407.0407-.0679l.0814-.12214q.0272-.0407.0407-.0679.0272-.0407.0543-.0679l.20357-.24429q.0543-.0679.095-.12214.0542-.0543.12214-.10858.0679-.0679.12215-.10857.0542-.0543.12215-.10858.13571-.10857.27143-.19.13572-.0814.28501-.14928.285-.14929.58357-.20358.31215-.0679.58358-.0679.23072 0 .23072.21714 0 .12215-.095.19001-.10858.0814-.21715.16286-.095.0679-.19.14929-.20358.16286-.3393.33929-.285.32572-.475.74644-.17644.39358-.28501.86859-.0679.23072-.12214.47501-.0407.24429-.095.48858l-.20357 1.01788q-.0543.25785-.10857.51571-.0407.25787-.10858.5293l-.10857.52929q-.0272.13572-.0679.27144-.0272.12214-.0679.25786-.0135.0679-.0272.13572-.0135.0543-.0272.12215l-.0679.27142q-.0272.0679-.0407.13573-.0136.0679-.0407.13571-.0272.0679-.0407.13571 0 .0679-.0272.13573l-.16286.52929q-.0543.13571-.095.27142-.0407.12215-.095.25787l-.20358.5293q-.0679.13571-.12214.27142-.0542.13573-.12215.25787-.0679.13572-.13572.27143-.0679.12215-.13571.25787-.0407.0679-.0814.13571-.0407.0542-.0814.12215-.0407.0679-.095.13571-.0407.0542-.0814.12214-.0542.0679-.10857.13573-.0407.0543-.095.12214-.0543.0679-.10857.12215-.0543.0542-.12215.12214-.0679.0679-.13572.10857-.0542.0542-.12215.12214-.0679.0542-.14928.095-.0679.0543-.14929.10857-.31215.19-.69215.27143-.095.0272-.19001.0272-.0814.0136-.17642.0272h-.17644q-.0542 0-.0814-.0135h-.0543-.0135-.0136-.0136q-.095-.0136-.17642-.0272-.0814-.0135-.17643-.0407-.21715-.0407-.35287-.13572-.14929-.0814-.31215-.19-.0814-.0679-.14928-.13572-.0542-.0679-.12214-.13571-.21716-.27144-.32573-.6243-.0814-.35286-.0679-.65144.0272-.31214.14929-.61072.0543-.13572.13572-.27143.0814-.12215.19001-.23072.10856-.0814.21714 0 .0814.0814.0272.14929v.0135q-.0272.0543-.0407.10858-.0135.0543-.0407.12215 0 .0272-.0136.0679 0 .0272 0 .0543zm12.03807-9.02517q.21715.48859.28501 1.0586.0814.54286-.0272 1.11287-.0407.27144-.13573.54287-.0814.25786-.18999.50215-.0679.12215-.13572.24429-.0679.10858-.13572.21714-.0679.10858-.14929.21716-.0814.10856-.17643.20357-.0814.10857-.17643.20358-.095.0814-.19.17643l-.20358.16285-.20357.16286q-.20358.1493-.42072.27144-.21716.10857-.44786.21715-.23073.10857-.46145.19-.23071.0679-.46143.13571-.23072.0679-.46143.10858-.21716.0407-.44787.0679-.90931.12215-1.81861.0136-.23071-.0272-.20357-.24429.0272-.17644.20357-.20357.86859-.0814 1.6286-.36644.38001-.12214.73287-.32572.36644-.21715.63788-.44786.29857-.24429.52929-.5293.0272-.0407.0543-.0679.0272-.0407.0543-.0814.0272-.0272.0542-.0679.0272-.0407.0542-.0814.0407-.0679.0814-.13571.0543-.0814.095-.16286.33929-.62429.42073-1.23503.0272-.14928.0272-.29857.0135-.16286 0-.32572-.0135-.14929-.0407-.29857-.0135-.16286-.0542-.32572-.0407-.14929-.095-.29858-.0543-.16286-.13572-.31214-.0272-.0407-.0407-.0679-.0135-.0407-.0407-.0814-.0407-.0679-.095-.14929-.0814-.13571-.20358-.285-.23072-.29858-.52929-.51572-.29858-.23072-.66501-.42073-.17643-.095-.36643-.16286-.17644-.0679-.36644-.13571-.19-.0679-.39358-.12215-.20357-.0542-.40715-.095-.20358-.0543-.40715-.0814-.20358-.0407-.40715-.0679-.10858-.0135-.21714-.0135-.095-.0136-.20358-.0272h-.43429-.42072q-.10858.0135-.21716.0135-.095 0-.20357.0135-.21714.0272-.42072.0542-.20357.0272-.42072.0543-.42073.0814-.82787.20358-.39358.12215-.77359.31215-.19.095-.36643.20357-.17643.095-.35287.21715-.16286.12215-.32572.25787-.14928.13571-.29857.285-.25786.29858-.47501.66501-.16286.33929-.25786.76002-.0135.10856-.0272.20357 0 .095 0 .19v.0543.0407.095q.0135.0543.0135.10858 0 .0407.0135.0814.0543.39358.20357.73287.17643.36643.36644.63787.21714.29857.50215.54286.0679.0679.13572.12215.0814.0407.14929.095.0814.0542.14929.10858.0814.0407.16286.0814.16285.10858.32571.16286.0407.0272.0814.0407.0407 0 .0814.0272.0814.0272.095.0272l.0136.0136h.0272l.0407.0135q.29858.10858.43429.38001.13572.27143.0407.55644-.10858.29857-.38001.43429-.27143.13572-.55644.0407l-.0814-.0407-.0542-.0272-.0272-.0135-.0272-.0136q-.0814-.0272-.12214-.0542-.0542-.0272-.10857-.0543-.0542-.0407-.10857-.0679-.10858-.0679-.21715-.13571-.095-.0679-.20357-.13572-.10858-.0814-.20358-.16286-.095-.0814-.19-.16286-.095-.095-.19001-.17643-.0814-.095-.16286-.19001-.33929-.39357-.55643-.84143-.10858-.23073-.20357-.46144-.0814-.23072-.13573-.47501-.0407-.24429-.0679-.48858-.0136-.25786.0136-.50216l.0407-.24429q0-.0272 0-.0543.0135-.0272.0135-.0542l.0136-.0679.0135-.0543q.0272-.12214.0542-.23071.0407-.12214.0814-.23072.095-.23072.19001-.43429.10858-.21715.24429-.40715.23072-.36644.57001-.70573.14929-.17643.31216-.31215.17642-.14928.36643-.28501.39357-.285.77358-.47499.38001-.19001.82787-.33931.21714-.0814.42072-.13571.21715-.0679.4343-.12214.42072-.095.88215-.16286.10858-.0136.21715-.0272.10858-.0136.21715-.0272l.44787-.0407q.10856-.0135.21714-.0135.12215 0 .23072-.0136.10857 0 .21714 0 .12215-.0135.23073-.0272.23071 0 .44786 0 .21715 0 .44787.0136.23071.0136.46143.0407.23072.0135.46143.0679.23072.0272.44787.095.23072.0543.46144.12214.44787.14928.89573.36643.42072.19.85501.51572.10857.0679.20358.16286.095.0814.20357.16286.0407.0542.0814.095.0542.0407.095.095.0543.0543.095.10858.0407.0407.0814.095.3393.39358.57001.92288z"],["d","m-56.892123 220.23328q-.13571.20358-.28501.35287-.14929.17643-.32572.33929-.16286.16286-.36643.31215-.095.0679-.20358.13571-.095.0679-.21714.13571-.24429.13573-.48858.19001-.24429.0814-.54287.0814h-.0679l-.20357.32572q-.25787.40715-.55644.74644-.16286.19-.35287.35287-.17643.16286-.38.31215-.10858.0679-.21714.13571-.10858.0679-.23073.13572-.0679.0272-.12214.0407-.0543.0272-.12215.0543-.095.0542-.25786.095-.0679.0272-.13572.0272-.0542.0136-.12214.0272-.0679.0135-.13571.0135-.0679.0136-.13572.0272h-.0679-.0407-.0135-.0136q-.0542.0136-.13571.0136-.0679-.0136-.14929-.0136-.0679 0-.14929-.0136-.29858-.0407-.59715-.16285-.14929-.0679-.28501-.16286-.13571-.095-.25786-.20358-.24429-.21714-.39358-.50215-.0814-.14929-.13571-.27143-.0542-.13572-.095-.28501-.0814-.24429-.12214-.54286-.0272-.13572-.0272-.25787 0-.13571-.0136-.27143 0-.51572.0814-1.0043.0407-.24429.095-.47502.0542-.24429.12214-.475.13571-.44786.32572-.90931.17643-.43428.43428-.88214.12215-.23073.25787-.4343.14928-.20358.32573-.42072.0814-.10858.17642-.20358.095-.095.20358-.19.19001-.19001.46143-.38.25787-.19001.59716-.31216.0814-.0407.16286-.0543.095-.0272.19-.0542l.20358-.0407h.10857q.0135 0 .0135 0 .0136-.0135.0407-.0135h.0272.0135q.29858-.0136.54287.12214.25786.13572.40715.36643.21714-.0407.48858-.0407.0814.0135.16286.0272.0814 0 .17643.0272.19001.0679.32572.14929.14929.095.285.23072.10858.13571.19001.27142.0814.13573.12214.27144.0543.13571.0814.27144.0272.13571.0407.25785.0136.12215.0136.25786.0135.24429-.0136.48858-.0136.23072-.0542.46145-.0814.475-.20358.89572-.0679.23072-.13572.44787-.0679.20358-.16286.42072-.0272.0814-.0679.16286-.0272.0679-.0543.14929.0679-.0136.13573-.0136.0679-.0135.13571-.0407.0814-.0272.16286-.0543.095-.0407.19001-.0814.17643-.0814.33929-.19001.17643-.10857.33929-.23071.0814-.0679.14929-.13573.0814-.0679.16286-.13571.0814-.0679.14929-.14929.0814-.0814.14928-.14928.0679-.0679.14929-.0679.0814-.0136.14929.0542.13571.13572.0407.27143-.0679.095-.13572.19001-.0679.0814-.13572.17643zm-2.70076-3.1079q-.24429.0135-.39358.25786-.0272.0272-.0814.10857-.0135.0272-.0272.0679-.0136.0272-.0272.0543-.0679.14928-.0814.285-.0272.14928-.0542.285-.0272.13572-.0407.28501-.0136.0679-.0272.14928 0 .0814 0 .1493-.0135.0679-.0135.14929.0135.0679.0135.14928.0136.0679.0136.14929 0 .0679.0272.14929 0 .0543.0272.13571v.0407q0 .0135.0135.0135v.0135.0136q.0135.0272.0135.0407 0 .0136.0136.0407.0814.28501.25786.58358.0407.0679.0814.12214.0543.0543.10857.12215.0679.0679.10858.095.0135.0136.0679.0407.0407-.10858.0814-.20358.0542-.10857.095-.21715.0679-.19.12214-.38.0679-.20358.12214-.40715.0543-.19001.0814-.39358.0272-.20358.0542-.40715.0136-.20358 0-.39358 0-.20357-.0272-.39358-.0136-.17642-.0814-.33928-.0679-.19001-.13572-.25787-.0542-.0543-.0814-.0679-.0272-.0407-.0679-.0407-.0135 0-.0272 0-.0136-.0135-.0407-.0135-.0542 0-.095.0135zm-.89573 4.81793q.13572-.13571.25786-.29857.0136 0 .0136-.0136-.0679-.0272-.12215-.0542-.0407-.0272-.10857-.0543-.13572-.0679-.25787-.13573-.12214-.0814-.2307-.16285-.4343-.36644-.73288-.84145-.0272-.0272-.0814-.10857l-.0136-.0407h-.0136v-.0135-.0136q-.0135-.0135-.0272-.0272 0-.0135-.0135-.0272-.0272-.0679-.0679-.13571-.0272-.0679-.0543-.13573-.10858-.27142-.16286-.54286-.0542-.25785-.0542-.57001v-.16286q-.0135.0136-.0272.0272 0 .0136-.0136.0272-.23071.31215-.40715.65144-.36643.66502-.57001 1.41146-.0407.19-.0814.36643-.0272.17643-.0407.36644-.0407.38.0136.65144.0135.12214.0679.27144.0272.0543.0543.10856.0272.0407.0542.0814.0407.0407.0679.0814.0407.0272.095.0542.095.0543.23073.095.0814.0272.14929.0272.0407 0 .0679.0135h.0407.0407.16286q.0407 0 .0814 0 .0407-.0135.0814-.0135.3393-.0407.66502-.20358.33929-.17644.63786-.40715.0814-.0679.14929-.13572.0814-.0679.14929-.13571z"],["d","m-48.979863 219.62256q.19001.095.095.27144-.16286.35285-.36644.69215-.20357.33929-.44786.65144-.23072.31214-.51573.59715-.27144.285-.58358.52929-.63786.50216-1.33002.84145-.36644.19-.73287.32572-.095.0272-.19001.0543-.0814.0407-.18999.0679-.0136 0-.0679.0272-.10857.0272-.16286.0543-.32571.10858-.65144.10858-.095-.0136-.19-.0272-.0814 0-.17643-.0272-.0814-.0272-.17643-.0679-.0814-.0272-.14929-.0814-.16286-.10858-.27144-.23072-.0679-.0679-.10856-.1493-.0407-.0679-.0814-.13571-.0272-.0679-.0543-.13571-.0272-.0814-.0542-.16286-.0272-.0679-.0407-.13573 0-.0814-.0136-.14928-.0407-.285 0-.57001 0-.0679.0407-.095.0543-.0407.12215-.0407.12214.0272.13571.12214.0135.0679.0272.12215.0136.0543.0272.12215.0272.0679.0407.12214.0135.0543.0407.10858.0272.0679.0407.12214.0272.0407.0542.095.0272.0272.0272.0407.0136.0135.0407.0407.0135.0272.0272.0543.0135.0135.0272.0407.0407.0272.0679.0679.0407.0272.0814.0543.0542.0543.14929.0814.14929.0407.31215 0 .16286-.0136.35286-.13572.095-.0543.17643-.12215.0814-.0679.16287-.13571.16286-.14929.29857-.32573.14929-.19.27144-.38.12214-.20357.21714-.40715.10857-.20357.21714-.42072.095-.21715.17644-.43429.095-.21716.17643-.4343.0272-.0814.0407-.10857.0272-.0814.0407-.10857 0-.0543.0272-.10858.0136-.0272.0136-.0543.0135-.0272.0272-.0542.0135-.095.0679-.21715.0136-.0543.0136-.095.0135-.0543.0407-.12214.10856-.4343.12215-.84145.0272-.20357 0-.39358 0-.095-.0135-.17643-.0136-.095-.0407-.17642-.0272-.10858-.0407-.14929-.0272-.0407-.0407-.0679 0-.0407-.0272-.0679-.0679-.12215-.16286-.17644-.0542-.0407-.10858-.0679-.0272 0-.0407 0-.0136-.0135-.0407-.0135h-.0135v-.0136h-.0272q-.0814 0-.13571.0136-.0407.0135-.095.0272-.0407 0-.0814.0272-.095.0407-.19.10857l-.20358.12215q-.095.0679-.19.14929-.0814.0814-.17643.16286l-.17644.17642q-.0407.0543-.095.095-.0407.0407-.0814.095-.0814.095-.16285.19001-.0814.0814-.16287.18999l-.32572.40715q-.0679.10858-.14929.21716-.0814.095-.14928.20357-.14929.20358-.285.42072-.13573.21715-.28501.4343-.0679.10856-.13572.23071-.0543.10858-.12215.21715-.0272.0407-.0542.0814-.0136.0407-.0407.0814-.095.44787-.20357.9093-.10858.44786-.21715.89573-.19.74644-.38001 1.47931-.19.74645-.40715 1.49288l-.10856.38001q-.0272.095-.0543.17643-.0272.095-.0542.19-.0679.19001-.12215.36644-.0542.19001-.12214.38001-.0272.095-.0542.17643-.0407.095-.0814.19001-.0272.10856-.0679.18999-.0407.095-.0679.19001-.0407.10857-.0814.19001-.0407.095-.0814.18999l-.16286.36644q-.17643.35286-.43429.7193-.0679.0814-.12214.16286-.0679.095-.13572.17642-.0407.0407-.0679.0814-.0407.0407-.0814.0814l-.16286.16286q-.16287.16286-.38002.29858-.0543.0272-.10857.0542-.0542.0407-.12214.0679-.095.0542-.25787.095-.0679.0272-.14928.0272-.0814 0-.14929 0h-.0407-.0135-.0136-.0136q-.0272-.0136-.0407-.0136-.0272 0-.0543-.0135-.13572-.0272-.19-.0679-.095-.0407-.14929-.12215-.0407-.0272-.0543-.0679-.0272-.0407-.0542-.0679-.0679-.12214-.095-.27143-.0272-.0679-.0272-.12214 0-.0543-.0135-.10857v-.21716q0-.10856.0135-.21714 0-.095.0135-.20357.0272-.10858.0407-.20358 0-.0814.0272-.19001l.0407-.20357.0135-.0542v-.0407l.0272-.095q.19-.77359.44787-1.49289.13571-.36643.27142-.73287.13572-.36644.29858-.7193.0407-.095.0814-.19.0272-.0814.0679-.17644l.0272-.0407.0272-.0407q.0136-.0407.0407-.095.0407-.10858.095-.17643.0407-.095.095-.19.0407-.0814.0814-.16286.0542-.095.10858-.17643.0407-.0814.0814-.16286.095-.17644.19-.35287.095-.16286.19-.32572.095-.17643.19001-.33929.0814-.16286.16286-.33929.17643-.33929.33929-.67858.0407-.095.0814-.17644.0272-.0814.0679-.17643l.0272-.0814.0407-.0814q.0272-.0814.0272-.095l.0272-.0679q.10858-.47501.21715-.95001.095-.48858.20357-.96359l.17644-.74644.16286-.73287.17643-.73287.16286-.7193.0136-.0272q.0814-.33929.36643-.51571.285-.17644.62431-.095.31214.0679.48857.32572.17643.25787.14928.57001 0 .0679-.0135.10857l-.0136.095-.0272.20358q-.0135.095-.0272.19-.0135.095-.0272.19001l-.0679.38-.0679.38001q-.0136.095-.0272.19-.0135.095-.0407.19001l-.0679.38q-.0272.13572-.0543.27144-.0272.12214-.0542.25786.0542-.0814.095-.16286.0407-.095.095-.17643.0679-.10858.13571-.21715.0679-.12215.13573-.24429.12214-.21715.285-.44787.0679-.10856.13572-.21714.0814-.12215.16286-.23072.0407-.0679.0679-.10857.0407-.0543.095-.10857.0407-.0679.0814-.10858.0407-.0543.0814-.10857.17643-.24429.36643-.43429.10858-.10858.21715-.20358.10857-.095.24429-.20357.0679-.0407.13572-.0814.0679-.0542.14928-.095.16286-.0814.36643-.12215.0272-.0136.0407-.0136.0272 0 .0542-.0135h.0272.0407.0136.0135.0135q.0543-.0136.095-.0136.0542 0 .095 0 .10858.0136.19001.0272.095.0135.20358.0407.18999.0542.38.16286.16286.095.31215.23072.0814.0679.13572.14929.0679.0679.13571.13572.0543.0814.095.16285.0542.0679.095.1493.16286.31214.2443.63786.0407.16286.0679.32572.0272.16286.0407.32572.0272.31215 0 .6243 0 .0814-.0135.16286 0 .0679-.0136.14928-.0135.0679-.0272.14929-.0136.0814-.0272.14929-.0272.0679-.0407.14928 0 .0679-.0272.1493l-.0814.285q-.0135.0272-.0272.0679-.0135.0407-.0272.0679-.0272.0814-.0542.14929-.0136.0272-.0272.0679-.0136.0272-.0272.0679-.0135.0272-.0272.0679-.0136.0272-.0272.0679-.12214.25786-.27143.51572-.13572.24428-.31216.47501-.10857.16285-.21714.29857l.28501-.20357q.57001-.42072 1.05858-1.0043.48858-.59716.80074-1.23503.0407-.0679.12214-.095.0814-.0272.14928 0zm-9.43229 5.61866q.0272-.14929.0679-.29857.0272-.13572.0679-.285-.0543.0542-.0679.0814-.0679.0679-.10857.13571-.0542.0814-.12215.16286-.0272.0272-.0407.0679-.0272.0407-.0542.0814-.0272.0135-.0543.0679l-.0272.0407-.0272.0407q-.0542.0679-.095.14929-.0407.0814-.095.16286-.19001.32572-.35287.65144-.17643.33929-.32572.69215-.14928.35287-.27143.69216-.12214.35287-.23072.7193l-.0136.0814-.0135.0543-.0136.0407q-.0272.10858-.0407.17643-.0136.0814-.0136.16286-.0136.095-.0136.19001-.0135.095 0 .17643 0 .095.0136.17643 0 .0543.0272.16286.0272.0814.0543.13572.0135.0407.0543.0814h.0272v-.0135q0-.0136-.0135-.0136 0 0 .0135-.0135h.0136q.0272-.0136.0679-.0543.0407-.0272.0814-.0679.0407-.0407.0814-.095.095-.12214.14928-.24428.0814-.1493.14929-.29859.0543-.14928.12215-.31214l.24429-.65144.12215-.3393.0542-.17643q.0272-.0543.0272-.0814l.0272-.0814q.0272-.0814.0542-.17644.0135-.0814.0407-.17643.0272-.0814.0542-.17643.0136-.0814.0407-.17643.0407-.17644.095-.35287.0407-.17642.0814-.36643l.0814-.36643z"],["d","m-43.781923 219.85328q.0679.0542.0814.13571.0272.0814-.0272.14929l-2.06289 2.57862q-.13572.27143-.38.51572-.13573.13572-.28501.23071-.13572.095-.285.17644-.14929.0679-.31216.10857-.14929.0542-.29857.0814-.3393.0407-.61072.0272-.31215-.0136-.61073-.12215-.17644-.0543-.29858-.12214-.13572-.0814-.27143-.19001-.0679-.0542-.12215-.10857-.0542-.0407-.10857-.10857-.095-.10858-.19001-.25786-.0814-.14929-.13571-.28501-.0542-.13572-.095-.285-.0407-.14929-.0542-.28501-.0135-.13572-.0272-.27143 0-.1493 0-.28501 0-.13571.0272-.27144.0272-.13571.0542-.25785.0272-.13572.0543-.27144.0272-.0679.0407-.12214.0136-.0679.0407-.13571.0272-.0679.0542-.12215.0136-.0542.0407-.12215.0272-.0679.0679-.12214.0272-.0543.0542-.10858.0136-.0272.0272-.0543.0135-.0407.0272-.0679l.0136-.0272.0272-.0272.0272-.0543.24429-.4343.48858-.85501q.12214-.21715.23072-.42072.12214-.21716.23072-.4343.12214-.23072.23071-.4343.10858-.21714.21716-.44786.0272-.0679.0543-.0814l.0407-.12214q.0272-.0407.0272-.0814.0136-.0407.0407-.0814l.0407-.0814q0-.0135 0-.0135.0135-.0136.0135-.0407l.0136-.0272.0136-.0135.0135-.0135q.21715-.38002.6243-.48858.42073-.10858.80072.12214.36644.21714.47502.63786.10857.40715-.10858.78717v-.0135h-.0135q0 .0272-.0136.0272-.0136.0272-.0272.0407 0 0-.0136.0272-.0135.0407-.0272.0814-.0136.0272-.0407.0679-.0814.16286-.12215.33929-.0679.19-.0814.35286-.0136.095-.0272.19001 0 .0814 0 .17643-.0135.095-.0135.19.0135.095.0272.19001.0136.095.0272.19.0136.095.0407.19 0 .0407.0272.095l.0135.0543v.0135.0136l.0136.0136.0407.13571q.0272.0814.0542.12214.0407.13572.0814.27144.0407.13571.0679.27142.0679.27144.095.57002.0407.285.0407.59715 0 .0272-.0135.12215 0 .095 0 .12215l1.42502-1.79146q.10858-.1493.28501-.0543zm-3.08076 1.98146q.0272-.16286 0-.35286-.0135-.10858-.0272-.19001-.0136-.095-.0407-.20357-.0407-.20358-.12214-.38-.0679-.21716-.16286-.39359-.0136-.0407-.0407-.095l-.0272-.0543-.0272-.0543v-.0135l-.0136-.0135-.0135-.0272-.0272-.0679q-.0407-.0679-.0679-.13572-.0679-.13572-.12215-.27143-.0407-.13572-.095-.28501-.0407-.14929-.0814-.29857-.0272-.14929-.0542-.29859-.0272-.14928-.0407-.29857 0-.16286-.0136-.31215v-.13571l-.36644.73287q-.10857.23072-.21715.44786-.10857.20358-.21714.4343l-.20358.44786-.0407.10857q-.0136.0272-.0272.0542 0 .0272-.0136.0543-.0679.10858-.0814.21715-.0814.20357-.12214.4343-.0407.23071-.0407.44786-.0135.10858-.0135.21714.0135.095.0272.20358.0272.10857.0407.21715.0272.095.0679.19.0272.095.0679.17643.0543.0814.10857.14929.0543.0679.12215.12214.0679.0542.13572.10858.0679.0407.13571.0679.0814.0136.16286.0407.14929.0407.36644.0136.19 0 .36643-.0679.095-.0272.16287-.0542.0814-.0407.14929-.0814.24429-.17643.33928-.47501.0272-.0679.0407-.14928.0136-.0814.0272-.17645z"],["d","m-36.154663 219.81256q.0679.0407.0679.10857.0136.0543-.0135.10858-.0543.095-.16286.27144-.095.16286-.16287.25785-.095.17643-.23071.35287-.13572.17643-.27143.35286-.12215.16286-.27144.32572-.58357.63787-1.23502 1.19431-.20357.17643-.42072.33929-.20358.17642-.40715.33928h-.0136q-.13571.40715-.285.8143-.1493.40715-.29858.80074-.16286.39358-.33929.78715-.17643.40715-.36644.80073-.10857.20357-.21714.39358-.095.20358-.20358.39357-.10858.20358-.24429.39358-.12214.20358-.27143.39359-.0679.095-.14929.17642-.0814.095-.17643.20358-.20358.20357-.42072.36643-.0679.0407-.13571.0814-.0543.0407-.12215.0814-.10858.0543-.16286.0679-.0135.0135-.0679.0407-.0272 0-.0407 0-.0136.0135-.0272.0135-.31214.10857-.59715.12214-.31215.0272-.61072-.0407-.14929-.0272-.29858-.0814-.14929-.0543-.29858-.14929-.14929-.0814-.285-.20358-.0679-.0679-.12215-.13571-.0542-.0543-.12214-.13571-.0542-.0679-.095-.14929-.0542-.0814-.0814-.17644-.0272-.095-.0542-.17643-.0272-.0814-.0407-.17643-.0135-.095-.0135-.17643 0-.0814 0-.16286.0135-.0814.0272-.16286 0-.0814.0135-.14929.0814-.28501.20358-.54286.0542-.12215.12214-.23072.0679-.10858.13571-.21715.0272-.0542.0679-.095l.0407-.0543.0135-.0272.0135-.0136.0136-.0135q.0407-.0543.0814-.10858.0407-.0407.0814-.0814.095-.095.19001-.17644.0814-.0814.17643-.16286l.36643-.285q.17643-.13572.35287-.25787.17643-.10857.36643-.23071.73288-.44787 1.46574-.85502l.57001-.32571q.0679-.17644.10857-.35287.0542-.16286.10858-.35287.0679-.18999.12214-.38.0542-.20357.10858-.40715.0407-.13571.0814-.25786.0407-.13572.0679-.27144 0 0-.0136.0136-.0679.095-.14929.17644-.0814.0814-.16286.16286-.19.16286-.39357.29857-.10858.0679-.23072.12215-.10858.0542-.23073.095-.27142.095-.50214.10857h-.0679v.0136h-.0136-.0135-.0272q-.0407 0-.0814.0136-.0272 0-.0542 0-.0679 0-.14929 0-.0679 0-.13571-.0136-.0679-.0136-.14929-.0272-.0814-.0135-.16286-.0407-.16287-.0407-.31216-.14929-.13571-.0679-.29857-.23072-.0679-.0679-.12215-.13571-.0407-.0814-.095-.14929-.0407-.0814-.0814-.16287-.0272-.0814-.0542-.14928-.0679-.16286-.0814-.29858-.0679-.29857-.0542-.55643 0-.25787.0272-.50216l.0407-.24429q.0135-.0543.0135-.10856.0136-.0543.0272-.10858.0407-.25786.095-.44786.0679-.2443.13571-.4343.0272-.10857.0543-.20358.0407-.095.0814-.20357.0407-.10857.0814-.20358.0407-.095.0679-.20357.0407-.10857.0814-.19.0542-.095.095-.20357.17643-.42073.36643-.76002.0272-.0543.0542-.095.0272-.0542.0543-.095.0272-.0543.0407-.095.0272-.0407.0543-.095.0272-.0407.0542-.0814.0272-.0543.0543-.095l.0543-.095q.0272-.0542.0272-.0542l.0407-.0543q.10857-.17643.27143-.285.16287-.10857.35287-.14929.19-.0543.38001-.0136.20357.0272.38.13573.35286.23071.4343.62429.095.38001-.10858.73287l-.0135.0272-.0814.14928-.095.16286-.10857.16286-.095.16287q-.095.17643-.19001.33929-.0814.16286-.17642.32572-.0543.095-.095.17643-.0407.0814-.0814.16286-.0407.0814-.095.17643-.0407.0814-.0814.16286-.0407.0814-.0814.16286-.0407.0814-.0679.16286-.0407.095-.0814.17644-.0407.0814-.0679.16286-.0407.0814-.0814.16286-.0272.0814-.0542.16285-.0272.10857-.0542.16287l-.0407.16286q-.0272.0814-.0407.16286-.0136.0679-.0272.13571-.0272.0679-.0272.13571 0 .0543-.0136.12215 0 .0543 0 .095.0136.0272.0136.0542v.0407.0407q0 .0407.0407.0543.0136.0272.0679.0542.0542.0407.12214.0543.0135.0136.0272.0136.0136 0 .0407.0135h.0136.0135v.0135h.0407q.14928.0272.29857.0272.14929-.0135.29857-.0679.16287-.0543.29859-.12215.0679-.0407.13571-.0814.0814-.0543.14929-.10858.27143-.21714.51572-.54286.21715-.29857.40715-.65143.0272-.0272.0272-.0543.0135-.0407.0407-.0679l.0136-.0679q.10858-.40715.19001-.80072.095-.40715.19-.8143.0543-.20358.095-.40715.0407-.20358.095-.40715l.0814-.39359.0407-.20357.0407-.20358h.0136q.0814-.39358.40715-.61072.32572-.21714.70572-.13571.39358.0814.61073.40715.21714.32572.13571.71929l-.0136.0135-.0407.21715-.0407.20357-.10858.40715q-.0407.21715-.095.42072-.0542.20358-.10858.40715-.10857.40715-.21714.82788-.10858.40715-.21714.8143l-.10858.40715-.12215.40715-.24429.8143q-.0679.21714-.10858.38.32573-.23072.63788-.48858.32572-.25786.63787-.52929.29857-.25786.57001-.57001.0679-.0814.13571-.1493.0679-.0814.13572-.16285.0679-.0814.17643-.23072.10857-.16286.17643-.24429.0407-.0679.10858-.0679.0679-.0135.12214.0272zm-5.83582 6.18868q.0814-.20357.16286-.42072.095-.20358.17644-.42072-.0543.0272-.095.0679-.0407.0407-.095.0679-.17642.10858-.33928.23072-.16286.12215-.32573.24429-.16286.12214-.32572.24429-.16285.12215-.31215.25786-.0679.0679-.13571.12214-.0679.0543-.13572.12215-.0679.0679-.13572.12215-.0542.0679-.10857.13572-.0272.0272-.0543.0543-.0135.0407-.0407.0679l-.0136.0407-.0272.0272-.0407.0814q-.10858.14929-.16286.28501-.0543.14929-.0679.24429-.0135.12214 0 .17644 0 .0543.0407.095.0136.0136.095.0679.0679.0407.19.0543.10857.0272.23072 0 .0814 0 .21715-.0543.0272 0 .0272-.0135.0135 0 .0272-.0136.0272 0 .0407-.0135.0135-.0136.0272-.0272.0272 0 .0542-.0272l.20357-.20358q.0543-.0679.095-.13571.0543-.0679.10858-.13572.10857-.14929.19-.31215.095-.14929.19-.32572.0814-.17642.16286-.35286.095-.16286.17643-.35286z"],["fill","#c2185b","fill-rule","evenodd","transform","matrix(.50439319 0 0 .50439319 -101.07398 209.10061)"],["d","m0 1.576c0-.87.707-1.576 1.576-1.576h14.742c.871 0 1.577.707 1.577 1.576v14.742c0 .871-.513 2.06-1.147 2.656l-4.74 4.461c-1.69 1.591-4.429 1.593-6.121 0l-4.74-4.461c-.634-.596-1.147-1.786-1.147-2.656zm8.947 18.424a2.106 2.106 0 1 0 0-4.212 2.106 2.106 0 0 0 0 4.212z"],["d","m16.612 11.964c-1.617-1.666-1.618-4.366 0-6.033l4.657-4.798c.607-.626 1.807-1.133 2.676-1.133h14.479c.87 0 1.576.707 1.576 1.576v14.742c0 .871-.708 1.577-1.576 1.577h-14.479c-.871 0-2.068-.507-2.676-1.133zm5.493-.911a2.105 2.105 0 1 0 0-4.21 2.105 2.105 0 0 0 0 4.21z","fill","#e91e63"],["d","m22.105 23.945c0-.871.507-2.068 1.133-2.676l4.798-4.657c1.666-1.617 4.366-1.618 6.033 0l4.798 4.657c.626.607 1.133 1.807 1.133 2.676v14.479c0 .87-.707 1.576-1.576 1.576h-14.742a1.578 1.578 0 0 1 -1.577-1.576zm8.948.266a2.1060002 2.1060002 0 1 0 -.002-4.212 2.1060002 2.1060002 0 0 0 .002 4.212z","fill","#f48fb1"],["d","m0 23.681c0-.87.707-1.576 1.576-1.576h14.742c.871 0 2.064.51 2.664 1.138l4.561 4.771c1.604 1.678 1.605 4.397 0 6.077l-4.561 4.771c-.601.628-1.795 1.138-2.664 1.138h-14.742c-.87 0-1.576-.707-1.576-1.577zm17.895 9.477a2.106 2.106 0 1 0 -.001-4.211 2.106 2.106 0 0 0 .001 4.211z","fill","#fbd4e1"]],template:function(b,f){1&b&&(E.qSk(),E.j41(0,"svg",0)(1,"g",1)(2,"g",2),E.nrm(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),E.k0s(),E.j41(8,"g",8),E.nrm(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12),E.k0s()()())},encapsulation:2,changeDetection:0})}}return A})()},73644:(it,ge,s)=>{"use strict";s.d(ge,{z:()=>y});var i=s(34084),E=s(55685);let y=(()=>{class A extends i._{constructor(D,b){super(),this.element=D,this.renderer=b}ngOnChanges(D){D?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(b){return new(b||A)(E.rXU(E.aKT),E.rXU(E.sFG))}}static{this.\u0275cmp=E.VBU({type:A,selectors:[["popsy-icon-remove"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[E.Vt3,E.OA$,E.aNF],decls:2,vars:0,consts:[["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["d","M4.5 19.5l15-15m-15 0l15 15","stroke-linecap","round","stroke-width","1.5","stroke","#000","fill","none","stroke-linejoin","round"]],template:function(b,f){1&b&&(E.qSk(),E.j41(0,"svg",0),E.nrm(1,"path",1),E.k0s())},encapsulation:2,changeDetection:0})}}return A})()},83210:(it,ge,s)=>{"use strict";s.d(ge,{h:()=>y});var i=s(34084),E=s(55685);let y=(()=>{class A extends i._{constructor(D,b){super(),this.element=D,this.renderer=b}ngOnChanges(D){D?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(b){return new(b||A)(E.rXU(E.aKT),E.rXU(E.sFG))}}static{this.\u0275cmp=E.VBU({type:A,selectors:[["popsy-icon-search-glass"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[E.Vt3,E.OA$,E.aNF],decls:2,vars:0,consts:[["viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["d","M17 17L13.2223 13.2156M15.3158 8.15789C15.3158 10.0563 14.5617 11.8769 13.2193 13.2193C11.8769 14.5617 10.0563 15.3158 8.15789 15.3158C6.2595 15.3158 4.43886 14.5617 3.0965 13.2193C1.75413 11.8769 1 10.0563 1 8.15789C1 6.2595 1.75413 4.43886 3.0965 3.0965C4.43886 1.75413 6.2595 1 8.15789 1C10.0563 1 11.8769 1.75413 13.2193 3.0965C14.5617 4.43886 15.3158 6.2595 15.3158 8.15789Z","stroke","#1B2B4B","stroke-width","1.2","stroke-linecap","round"]],template:function(b,f){1&b&&(E.qSk(),E.j41(0,"svg",0),E.nrm(1,"path",1),E.k0s())},encapsulation:2,changeDetection:0})}}return A})()},57917:(it,ge,s)=>{"use strict";s.d(ge,{W:()=>X});var i=s(62709),E=s(34084),y=s(55685);let A=(()=>{class K extends E._{constructor(le,Y){super(),this.element=le,this.renderer=Y}ngOnChanges(le){le?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(Y){return new(Y||K)(y.rXU(y.aKT),y.rXU(y.sFG))}}static{this.\u0275cmp=y.VBU({type:K,selectors:[["popsy-icon-error-image"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[y.Vt3,y.OA$,y.aNF],decls:5,vars:0,consts:[["viewBox","0 0 200 200","xmlns","http://www.w3.org/2000/svg","fill-rule","evenodd","clip-rule","evenodd","stroke-linejoin","round","stroke-miterlimit","1.414","width","100%","height","100%"],["fill","#a5adba"],["fill-opacity",".4","d","M0 0h200v200H0z"],["d","M74.413 134.741c-3.54-.003-6.41-2.887-6.413-6.445V72.444c.003-3.557 2.873-6.441 6.413-6.444h42.754c1.682 0 3.269.65 4.478 1.83l8.423 8.258A6.511 6.511 0 01132 80.702v47.594c-.003 3.558-2.873 6.442-6.413 6.445H74.413zm0-64.445a2.143 2.143 0 00-2.138 2.148v55.852c0 1.186.958 2.148 2.138 2.148h51.174a2.142 2.142 0 002.138-2.148V80.702a2.161 2.161 0 00-.645-1.538l-8.422-8.258a2.118 2.118 0 00-1.491-.61H74.413z"],["d","M88.741 96.815c-4.901 0-8.889-3.988-8.889-8.889s3.988-8.889 8.889-8.889c4.9 0 8.889 3.988 8.889 8.889s-3.989 8.889-8.889 8.889zm0-13.334a4.45 4.45 0 00-4.445 4.445 4.45 4.45 0 004.445 4.444 4.45 4.45 0 004.444-4.444 4.45 4.45 0 00-4.444-4.445zm30.463 37.036c-.712.001-1.378-.265-1.773-.707l-11.133-12.457c-.228-.254-.686-.323-1.029-.157a.673.673 0 00-.196.144l-7.636 8.137c-.337.36-.859.599-1.442.662-.582.062-1.173-.059-1.632-.334l-4.732-2.831a.913.913 0 00-.541-.116.812.812 0 00-.497.203l-6.027 6.749c-.651.73-1.972.928-2.95.443-.978-.486-1.244-1.471-.593-2.201l5.988-6.709c.923-1.046 2.493-1.672 4.172-1.663 1.138 0 2.213.283 3.109.819l2.961 1.771 6.331-6.748c.944-1.012 2.499-1.61 4.153-1.596 1.653.015 3.189.639 4.101 1.668l11.133 12.456c.439.486.482 1.113.112 1.63-.37.517-1.093.839-1.879.837z"]],template:function(Y,ve){1&Y&&(y.qSk(),y.j41(0,"svg",0)(1,"g",1),y.nrm(2,"path",2)(3,"path",3)(4,"path",4),y.k0s()())},encapsulation:2,changeDetection:0})}}return K})();var M=s(34520),D=s(31761),b=s(15436),f=s(89497),S=s(15214);const O=["image"],C=()=>[0],_=K=>({threshold:K});function U(K,ne){if(1&K){const le=y.RV6();y.qex(0),y.j41(1,"div",2)(2,"img",3,0),y.bIt("error",function(){y.eBV(le);const ve=y.XpG();return y.Njj(ve.onLoadPictureError())}),y.k0s()(),y.bVm()}if(2&K){const le=y.XpG();y.R7$(2),y.Y8G("src",le.pictureSafeUrl,y.B4B)("alt",le.alt||"picture")("title",le.alt||"picture")}}function w(K,ne){1&K&&(y.qex(0),y.nrm(1,"popsy-icon-error-image",6,0),y.bVm()),2&K&&(y.R7$(),y.Y8G("aspectRatio","fill"))}function R(K,ne){if(1&K){const le=y.RV6();y.qex(0),y.j41(1,"img",7,0),y.bIt("error",function(){y.eBV(le);const ve=y.XpG(3);return y.Njj(ve.onLoadPictureError())}),y.k0s(),y.bVm()}if(2&K){const le=y.XpG(3);y.R7$(),y.Y8G("src",le.loadedPictureUrl,y.B4B)("alt",le.alt||"picture")("title",le.alt||"picture")}}function V(K,ne){if(1&K&&(y.qex(0),y.DNE(1,w,3,1,"ng-container",1)(2,R,3,3,"ng-container",1),y.bVm()),2&K){const le=y.XpG(2);y.xc7("background-color",le.bgColor||""),y.R7$(),y.Y8G("ngIf",le.useErrorPlaceholder),y.R7$(),y.Y8G("ngIf",!le.useErrorPlaceholder)}}function x(K,ne){1&K&&(y.qex(0),y.nrm(1,"app-spinner",8),y.bVm()),2&K&&(y.R7$(),y.Y8G("contrast",!0))}function z(K,ne){if(1&K){const le=y.RV6();y.qex(0),y.j41(1,"div",4),y.bIt("inViewportAction",function(ve){y.eBV(le);const Ie=y.XpG();return y.Njj(Ie.onIntersection(ve))}),y.DNE(2,V,3,4,"ng-container",5)(3,x,2,1,"ng-container",1),y.k0s(),y.bVm()}if(2&K){const le=y.XpG();y.R7$(),y.Y8G("inViewportOptions",y.eq3(4,_,y.lJ4(3,C))),y.R7$(),y.Y8G("ngIf",le.loadedPictureUrl||le.useErrorPlaceholder),y.R7$(),y.Y8G("ngIf",le.pictureLoading||le.loading)}}let X=(()=>{class K{constructor(le,Y,ve,Ie,He,se){this.zone=le,this.imagePreloadService=Y,this.changeDetector=ve,this.domSanitizer=Ie,this.renderer=He,this.akitaRouterQuery=se,this.pictureUrl=null,this.fallbackPictureUrl=null,this.alt=null,this.bgColor=null,this.width=null,this.height=null,this.lazyLoad=!0,this.backgroundImage=null,this.pictureLoading=!1,this.imageIsVisible=!1,this.useErrorPlaceholder=!1,this.isBrowser=this.akitaRouterQuery.isBrowser}ngAfterViewInit(){this.refreshWidth(),this.refreshHeight()}ngOnChanges(le){le&&this.zone.runOutsideAngular(()=>{if(le.pictureUrl){if(this.pictureUrl){const Y=this.detectDisplaySize(),ve=this.imagePreloadService.optimizeAppEngineImage(this.pictureUrl,Y);this.pictureSafeUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(ve)}this.imageIsVisible&&this.isBrowser&&this.lazyLoadPicture()}le.width&&this.refreshWidth(),le.height&&this.refreshHeight()})}refreshWidth(){this.zone.runOutsideAngular(()=>{this.imageElement?.nativeElement&&this.width&&this.renderer.setAttribute(this.imageElement.nativeElement,"width",this.width)})}refreshHeight(){this.zone.runOutsideAngular(()=>{this.imageElement?.nativeElement&&this.height&&this.renderer.setAttribute(this.imageElement.nativeElement,"height",this.height)})}detectDisplaySize(){let le;return this.width&&this.height&&-1!==this.width.indexOf("px")&&-1!==this.height.indexOf("px")&&(le=this.width>=this.height?parseInt(this.width.replace("px",""),10):parseInt(this.height.replace("px",""),10)),le}lazyLoadPicture(){this.pictureUrl?(this.pictureLoading=!0,this.changeDetector.markForCheck(),this.zone.runOutsideAngular(()=>{this.pictureUrl&&this.lazyLoad?this.imagePreloadService.loadImage(this.pictureUrl,this.detectDisplaySize()).then(le=>{this.zone.run(()=>{this.backgroundImage=le,this.pictureLoading=!1,this.refreshLoadedPictureUrl()})},()=>{this.zone.run(()=>{this.backgroundImage=null,this.pictureLoading=!1,this.refreshLoadedPictureUrl()})}):this.pictureUrl&&this.zone.run(()=>{this.backgroundImage=this.pictureUrl,this.pictureLoading=!1,this.refreshLoadedPictureUrl()})})):this.zone.run(()=>{this.backgroundImage=null,this.pictureLoading=!1,this.refreshLoadedPictureUrl()})}onIntersection({target:le,visible:Y}){this.zone.runOutsideAngular(()=>{this.renderer.setStyle(le,"visibility",Y?"visible":"hidden"),Y&&this.isBrowser&&this.lazyLoadPicture(),this.zone.run(()=>{this.imageIsVisible=Y,this.changeDetector.markForCheck()})})}onLoadPictureError(){!this.pictureLoading&&this.backgroundImage&&(this.backgroundImage=null,this.refreshLoadedPictureUrl())}refreshLoadedPictureUrl(){let le=null;this.backgroundImage?le=`${this.backgroundImage}`:this.fallbackPictureUrl&&(le=`${this.fallbackPictureUrl}`),le?(this.useErrorPlaceholder=!1,this.loadedPictureUrl=this.domSanitizer.bypassSecurityTrustResourceUrl(le)):(this.loadedPictureUrl=null,this.useErrorPlaceholder=!0),this.changeDetector.markForCheck()}static{this.\u0275fac=function(Y){return new(Y||K)(y.rXU(y.SKi),y.rXU(b.u),y.rXU(y.gRc),y.rXU(f.up),y.rXU(y.sFG),y.rXU(S.O))}}static{this.\u0275cmp=y.VBU({type:K,selectors:[["app-picture"]],viewQuery:function(Y,ve){if(1&Y&&y.GBs(O,5),2&Y){let Ie;y.mGM(Ie=y.lsd())&&(ve.imageElement=Ie.first)}},inputs:{pictureUrl:"pictureUrl",fallbackPictureUrl:"fallbackPictureUrl",alt:"alt",bgColor:"bgColor",width:"width",height:"height",loading:"loading",lazyLoad:"lazyLoad"},standalone:!0,features:[y.OA$,y.aNF],decls:2,vars:2,consts:[["image",""],[4,"ngIf"],[1,"picture-component"],[1,"image",3,"error","src","alt","title"],["inViewport","",1,"picture-component",3,"inViewportAction","inViewportOptions"],[3,"backgroundColor",4,"ngIf"],[1,"image",3,"aspectRatio"],["referrerpolicy","no-referrer",1,"image",3,"error","src","alt","title"],[1,"loading-spinner",3,"contrast"]],template:function(Y,ve){1&Y&&y.DNE(0,U,4,3,"ng-container",1)(1,z,4,6,"ng-container",1),2&Y&&(y.Y8G("ngIf",!ve.isBrowser),y.R7$(),y.Y8G("ngIf",ve.isBrowser))},dependencies:[D.bT,M.Q5,M.dQ,A,i.t],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.picture-component[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-position:center center;background-size:cover;background-repeat:no-repeat}.picture-component[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.picture-component[_ngcontent-%COMP%]   .loading-spinner[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0})}}return K})()},7745:(it,ge,s)=>{"use strict";s.d(ge,{T:()=>A});var i=s(31761),E=s(55685);function y(M,D){if(1&M&&(E.j41(0,"div",5),E.EFF(1),E.k0s()),2&M){const b=E.XpG();E.R7$(),E.JRh(b.message)}}let A=(()=>{class M{constructor(){this.message=""}static{this.\u0275fac=function(f){return new(f||M)}}static{this.\u0275cmp=E.VBU({type:M,selectors:[["app-please-wait"]],inputs:{message:"message"},standalone:!0,features:[E.aNF],decls:5,vars:1,consts:[[1,"please-wait-component"],[1,"popsy-loading-animation"],[1,"animation"],[1,"shapes"],["class","label",4,"ngIf"],[1,"label"]],template:function(f,S){1&f&&(E.j41(0,"div",0)(1,"div",1)(2,"div",2),E.nrm(3,"div",3),E.k0s()(),E.DNE(4,y,2,1,"div",4),E.k0s()),2&f&&(E.R7$(4),E.Y8G("ngIf",S.message))},dependencies:[i.bT],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.please-wait-component[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;flex-direction:column;height:100%;min-height:100px}.please-wait-component[_ngcontent-%COMP%]   .popsy-loading-animation[_ngcontent-%COMP%]{flex:1;height:100%}.please-wait-component[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;height:30px;min-height:30px;max-height:30px;padding:7px;text-align:center}"],changeDetection:0})}}return M})()},62709:(it,ge,s)=>{"use strict";s.d(ge,{t:()=>E});var i=s(55685);let E=(()=>{class y{constructor(){this.contrast=null,this.compact=null}static{this.\u0275fac=function(D){return new(D||y)}}static{this.\u0275cmp=i.VBU({type:y,selectors:[["app-spinner"]],inputs:{contrast:"contrast",compact:"compact"},standalone:!0,features:[i.aNF],decls:14,vars:4,consts:[[1,"spinner-component"],[1,"spinner"]],template:function(D,b){1&D&&(i.j41(0,"div",0)(1,"div",1),i.nrm(2,"div")(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div")(10,"div")(11,"div")(12,"div")(13,"div"),i.k0s()()),2&D&&(i.AVh("contrast",!0===b.contrast),i.R7$(),i.AVh("small",!0===b.compact))},styles:['@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.spinner-component[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{color:#000;display:inline-block;position:relative;width:32px;height:32px}.spinner-component[_ngcontent-%COMP%]   .spinner.small[_ngcontent-%COMP%]{width:16px;height:16px}.spinner-component[_ngcontent-%COMP%]   .spinner.small[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{transform-origin:8px 8px}.spinner-component[_ngcontent-%COMP%]   .spinner.small[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after{top:.75px;left:7.25px;width:1.25px;height:3.5px}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{transform-origin:16px 16px;animation:_ngcontent-%COMP%_spin-animation 1.2s linear infinite}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;top:1.5px;left:14.5px;width:2.5px;height:7px;border-radius:20%;background:#fff}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.spinner-component[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(12){transform:rotate(330deg);animation-delay:0s}.spinner-component.contrast[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{color:#fff}.spinner-component.contrast[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after{background:#000}@keyframes _ngcontent-%COMP%_spin-animation{0%{opacity:1}to{opacity:0}}'],changeDetection:0})}}return y})()},48623:(it,ge,s)=>{"use strict";s.d(ge,{JG:()=>M,Qx:()=>y,WL:()=>A,v2:()=>E});const i={US:{name:"United States",native:"United States",phone:"1",languages:["en"]},AD:{name:"Andorra",native:"Andorra",phone:"376",languages:["ca"]},AE:{name:"United Arab Emirates",native:"\u062f\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629",phone:"971",languages:["ar"]},AF:{name:"Afghanistan",native:"\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",phone:"93",languages:["ps","uz","tk"]},AG:{name:"Antigua and Barbuda",native:"Antigua and Barbuda",phone:"1268",languages:["en"]},AI:{name:"Anguilla",native:"Anguilla",phone:"1264",languages:["en"]},AL:{name:"Albania",native:"Shqip\xebria",phone:"355",languages:["sq"]},AM:{name:"Armenia",native:"\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576",phone:"374",languages:["hy","ru"]},AO:{name:"Angola",native:"Angola",phone:"244",languages:["pt"]},AQ:{name:"Antarctica",native:"Antarctica",phone:"672",languages:[]},AR:{name:"Argentina",native:"Argentina",phone:"54",languages:["es","gn"]},AS:{name:"American Samoa",native:"American Samoa",phone:"1684",languages:["en","sm"]},AT:{name:"Austria",native:"\xd6sterreich",phone:"43",languages:["de"]},AU:{name:"Australia",native:"Australia",phone:"61",languages:["en"]},AW:{name:"Aruba",native:"Aruba",phone:"297",languages:["nl","pa"]},AX:{name:"\xc5land",native:"\xc5land",phone:"358",languages:["sv"]},AZ:{name:"Azerbaijan",native:"Az\u0259rbaycan",phone:"994",languages:["az"]},BA:{name:"Bosnia and Herzegovina",native:"Bosna i Hercegovina",phone:"387",languages:["bs","hr","sr"]},BB:{name:"Barbados",native:"Barbados",phone:"1246",languages:["en"]},BD:{name:"Bangladesh",native:"Bangladesh",phone:"880",languages:["bn"]},BE:{name:"Belgium",native:"Belgi\xeb",phone:"32",languages:["nl","fr","de"]},BF:{name:"Burkina Faso",native:"Burkina Faso",phone:"226",languages:["fr","ff"]},BG:{name:"Bulgaria",native:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",phone:"359",languages:["bg"]},BH:{name:"Bahrain",native:"\u200f\u0627\u0644\u0628\u062d\u0631\u064a\u0646",phone:"973",languages:["ar"]},BI:{name:"Burundi",native:"Burundi",phone:"257",languages:["fr","rn"]},BJ:{name:"Benin",native:"B\xe9nin",phone:"229",languages:["fr"]},BL:{name:"Saint Barth\xe9lemy",native:"Saint-Barth\xe9lemy",phone:"590",languages:["fr"]},BM:{name:"Bermuda",native:"Bermuda",phone:"1441",languages:["en"]},BN:{name:"Brunei",native:"Negara Brunei Darussalam",phone:"673",languages:["ms"]},BO:{name:"Bolivia",native:"Bolivia",phone:"591",languages:["es","ay","qu"]},BQ:{name:"Bonaire",native:"Bonaire",phone:"5997",languages:["nl"]},BR:{name:"Brazil",native:"Brasil",phone:"55",languages:["pt"]},BS:{name:"Bahamas",native:"Bahamas",phone:"1242",languages:["en"]},BT:{name:"Bhutan",native:"\u02bcbrug-yul",phone:"975",languages:["dz"]},BV:{name:"Bouvet Island",native:"Bouvet\xf8ya",phone:"47",languages:["no","nb","nn"]},BW:{name:"Botswana",native:"Botswana",phone:"267",languages:["en","tn"]},BY:{name:"Belarus",native:"\u0411\u0435\u043b\u0430\u0440\u0443\u0301\u0441\u044c",phone:"375",languages:["be","ru"]},BZ:{name:"Belize",native:"Belize",phone:"501",languages:["en","es"]},CA:{name:"Canada",native:"Canada",phone:"1",languages:["en","fr"]},CC:{name:"Cocos [Keeling] Islands",native:"Cocos (Keeling) Islands",phone:"61",languages:["en"]},CD:{name:"Democratic Republic of the Congo",native:"R\xe9publique d\xe9mocratique du Congo",phone:"243",languages:["fr","ln","kg","sw","lu"]},CF:{name:"Central African Republic",native:"K\xf6d\xf6r\xf6s\xease t\xee B\xeaafr\xeeka",phone:"236",languages:["fr","sg"]},CG:{name:"Republic of the Congo",native:"R\xe9publique du Congo",phone:"242",languages:["fr","ln"]},CH:{name:"Switzerland",native:"Schweiz",phone:"41",languages:["de","fr","it"]},CI:{name:"Ivory Coast",native:"C\xf4te d'Ivoire",phone:"225",languages:["fr"]},CK:{name:"Cook Islands",native:"Cook Islands",phone:"682",languages:["en"]},CL:{name:"Chile",native:"Chile",phone:"56",languages:["es"]},CM:{name:"Cameroon",native:"Cameroon",phone:"237",languages:["en","fr"]},CN:{name:"China",native:"\u4e2d\u56fd",phone:"86",languages:["zh"]},CO:{name:"Colombia",native:"Colombia",phone:"57",languages:["es"]},CR:{name:"Costa Rica",native:"Costa Rica",phone:"506",languages:["es"]},CU:{name:"Cuba",native:"Cuba",phone:"53",languages:["es"]},CV:{name:"Cape Verde",native:"Cabo Verde",phone:"238",languages:["pt"]},CW:{name:"Curacao",native:"Cura\xe7ao",phone:"5999",languages:["nl","pa","en"]},CX:{name:"Christmas Island",native:"Christmas Island",phone:"61",languages:["en"]},CY:{name:"Cyprus",native:"\u039a\u03cd\u03c0\u03c1\u03bf\u03c2",phone:"357",languages:["el","tr","hy"]},CZ:{name:"Czech Republic",native:"\u010cesk\xe1 republika",phone:"420",languages:["cs","sk"]},DE:{name:"Germany",native:"Deutschland",phone:"49",languages:["de"]},DJ:{name:"Djibouti",native:"Djibouti",phone:"253",languages:["fr","ar"]},DK:{name:"Denmark",native:"Danmark",phone:"45",languages:["da"]},DM:{name:"Dominica",native:"Dominica",phone:"1767",languages:["en"]},DO:{name:"Dominican Republic",native:"Rep\xfablica Dominicana",phone:"1809,1829,1849",languages:["es"]},DZ:{name:"Algeria",native:"\u0627\u0644\u062c\u0632\u0627\u0626\u0631",phone:"213",languages:["ar"]},EC:{name:"Ecuador",native:"Ecuador",phone:"593",languages:["es"]},EE:{name:"Estonia",native:"Eesti",phone:"372",languages:["et"]},EG:{name:"Egypt",native:"\u0645\u0635\u0631\u200e",phone:"20",languages:["ar"]},EH:{name:"Western Sahara",native:"\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629",phone:"212",languages:["es"]},ER:{name:"Eritrea",native:"\u12a4\u122d\u1275\u122b",phone:"291",languages:["ti","ar","en"]},ES:{name:"Spain",native:"Espa\xf1a",phone:"34",languages:["es","eu","ca","gl","oc"]},ET:{name:"Ethiopia",native:"\u12a2\u1275\u12ee\u1335\u12eb",phone:"251",languages:["am"]},FI:{name:"Finland",native:"Suomi",phone:"358",languages:["fi","sv"]},FJ:{name:"Fiji",native:"Fiji",phone:"679",languages:["en","fj","hi","ur"]},FK:{name:"Falkland Islands",native:"Falkland Islands",phone:"500",languages:["en"]},FM:{name:"Micronesia",native:"Micronesia",phone:"691",languages:["en"]},FO:{name:"Faroe Islands",native:"F\xf8royar",phone:"298",languages:["fo"]},FR:{name:"France",native:"France",phone:"33",languages:["fr"]},GA:{name:"Gabon",native:"Gabon",phone:"241",languages:["fr"]},GB:{name:"United Kingdom",native:"United Kingdom",phone:"44",languages:["en"]},GD:{name:"Grenada",native:"Grenada",phone:"1473",languages:["en"]},GE:{name:"Georgia",native:"\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd",phone:"995",languages:["ka"]},GF:{name:"French Guiana",native:"Guyane fran\xe7aise",phone:"594",languages:["fr"]},GG:{name:"Guernsey",native:"Guernsey",phone:"44",languages:["en","fr"]},GH:{name:"Ghana",native:"Ghana",phone:"233",languages:["en"]},GI:{name:"Gibraltar",native:"Gibraltar",phone:"350",languages:["en"]},GL:{name:"Greenland",native:"Kalaallit Nunaat",phone:"299",languages:["kl"]},GM:{name:"Gambia",native:"Gambia",phone:"220",languages:["en"]},GN:{name:"Guinea",native:"Guin\xe9e",phone:"224",languages:["fr","ff"]},GP:{name:"Guadeloupe",native:"Guadeloupe",phone:"590",languages:["fr"]},GQ:{name:"Equatorial Guinea",native:"Guinea Ecuatorial",phone:"240",languages:["es","fr"]},GR:{name:"Greece",native:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",phone:"30",languages:["el"]},GS:{name:"South Georgia and the South Sandwich Islands",native:"South Georgia",phone:"500",languages:["en"]},GT:{name:"Guatemala",native:"Guatemala",phone:"502",languages:["es"]},GU:{name:"Guam",native:"Guam",phone:"1671",languages:["en","ch","es"]},GW:{name:"Guinea-Bissau",native:"Guin\xe9-Bissau",phone:"245",languages:["pt"]},GY:{name:"Guyana",native:"Guyana",phone:"592",languages:["en"]},HK:{name:"Hong Kong",native:"\u9999\u6e2f",phone:"852",languages:["zh","en"]},HM:{name:"Heard Island and McDonald Islands",native:"Heard Island and McDonald Islands",phone:"61",languages:["en"]},HN:{name:"Honduras",native:"Honduras",phone:"504",languages:["es"]},HR:{name:"Croatia",native:"Hrvatska",phone:"385",languages:["hr"]},HT:{name:"Haiti",native:"Ha\xefti",phone:"509",languages:["fr","ht"]},HU:{name:"Hungary",native:"Magyarorsz\xe1g",phone:"36",languages:["hu"]},ID:{name:"Indonesia",native:"Indonesia",phone:"62",languages:["id"]},IE:{name:"Ireland",native:"\xc9ire",phone:"353",languages:["ga","en"]},IL:{name:"Israel",native:"\u05d9\u05b4\u05e9\u05b0\u05c2\u05e8\u05b8\u05d0\u05b5\u05dc",phone:"972",languages:["he","ar"]},IM:{name:"Isle of Man",native:"Isle of Man",phone:"44",languages:["en","gv"]},IN:{name:"India",native:"\u092d\u093e\u0930\u0924",phone:"91",languages:["hi","en"]},IO:{name:"British Indian Ocean Territory",native:"British Indian Ocean Territory",phone:"246",languages:["en"]},IQ:{name:"Iraq",native:"\u0627\u0644\u0639\u0631\u0627\u0642",phone:"964",languages:["ar","ku"]},IR:{name:"Iran",native:"\u0627\u06cc\u0631\u0627\u0646",phone:"98",languages:["fa"]},IS:{name:"Iceland",native:"\xcdsland",phone:"354",languages:["is"]},IT:{name:"Italy",native:"Italia",phone:"39",languages:["it"]},JE:{name:"Jersey",native:"Jersey",phone:"44",languages:["en","fr"]},JM:{name:"Jamaica",native:"Jamaica",phone:"1876",languages:["en"]},JO:{name:"Jordan",native:"\u0627\u0644\u0623\u0631\u062f\u0646",phone:"962",languages:["ar"]},JP:{name:"Japan",native:"\u65e5\u672c",phone:"81",languages:["ja"]},KE:{name:"Kenya",native:"Kenya",phone:"254",languages:["en","sw"]},KG:{name:"Kyrgyzstan",native:"\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d",phone:"996",languages:["ky","ru"]},KH:{name:"Cambodia",native:"K\xe2mp\u016dch\xe9a",phone:"855",languages:["km"]},KI:{name:"Kiribati",native:"Kiribati",phone:"686",languages:["en"]},KM:{name:"Comoros",native:"Komori",phone:"269",languages:["ar","fr"]},KN:{name:"Saint Kitts and Nevis",native:"Saint Kitts and Nevis",phone:"1869",languages:["en"]},KP:{name:"North Korea",native:"\ubd81\ud55c",phone:"850",languages:["ko"]},KR:{name:"South Korea",native:"\ub300\ud55c\ubbfc\uad6d",phone:"82",languages:["ko"]},KW:{name:"Kuwait",native:"\u0627\u0644\u0643\u0648\u064a\u062a",phone:"965",languages:["ar"]},KY:{name:"Cayman Islands",native:"Cayman Islands",phone:"1345",languages:["en"]},KZ:{name:"Kazakhstan",native:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",phone:"76,77",languages:["kk","ru"]},LA:{name:"Laos",native:"\u0eaa\u0e9b\u0e9b\u0ea5\u0eb2\u0ea7",phone:"856",languages:["lo"]},LB:{name:"Lebanon",native:"\u0644\u0628\u0646\u0627\u0646",phone:"961",languages:["ar","fr"]},LC:{name:"Saint Lucia",native:"Saint Lucia",phone:"1758",languages:["en"]},LI:{name:"Liechtenstein",native:"Liechtenstein",phone:"423",languages:["de"]},LK:{name:"Sri Lanka",native:"\u015br\u012b la\u1e43k\u0101va",phone:"94",languages:["si","ta"]},LR:{name:"Liberia",native:"Liberia",phone:"231",languages:["en"]},LS:{name:"Lesotho",native:"Lesotho",phone:"266",languages:["en","st"]},LT:{name:"Lithuania",native:"Lietuva",phone:"370",languages:["lt"]},LU:{name:"Luxembourg",native:"Luxembourg",phone:"352",languages:["fr","de","lb"]},LV:{name:"Latvia",native:"Latvija",phone:"371",languages:["lv"]},LY:{name:"Libya",native:"\u200f\u0644\u064a\u0628\u064a\u0627",phone:"218",languages:["ar"]},MA:{name:"Morocco",native:"\u0627\u0644\u0645\u063a\u0631\u0628",phone:"212",languages:["ar"]},MC:{name:"Monaco",native:"Monaco",phone:"377",languages:["fr"]},MD:{name:"Moldova",native:"Moldova",phone:"373",languages:["ro"]},ME:{name:"Montenegro",native:"\u0426\u0440\u043d\u0430 \u0413\u043e\u0440\u0430",phone:"382",languages:["sr","bs","sq","hr"]},MF:{name:"Saint Martin",native:"Saint-Martin",phone:"590",languages:["en","fr","nl"]},MG:{name:"Madagascar",native:"Madagasikara",phone:"261",languages:["fr","mg"]},MH:{name:"Marshall Islands",native:"M\u0327aje\u013c",phone:"692",languages:["en","mh"]},MK:{name:"Macedonia",native:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430",phone:"389",languages:["mk"]},ML:{name:"Mali",native:"Mali",phone:"223",languages:["fr"]},MM:{name:"Myanmar [Burma]",native:"\u1019\u103c\u1014\u103a\u1019\u102c",phone:"95",languages:["my"]},MN:{name:"Mongolia",native:"\u041c\u043e\u043d\u0433\u043e\u043b \u0443\u043b\u0441",phone:"976",languages:["mn"]},MO:{name:"Macao",native:"\u6fb3\u9580",phone:"853",languages:["zh","pt"]},MP:{name:"Northern Mariana Islands",native:"Northern Mariana Islands",phone:"1670",languages:["en","ch"]},MQ:{name:"Martinique",native:"Martinique",phone:"596",languages:["fr"]},MR:{name:"Mauritania",native:"\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627",phone:"222",languages:["ar"]},MS:{name:"Montserrat",native:"Montserrat",phone:"1664",languages:["en"]},MT:{name:"Malta",native:"Malta",phone:"356",languages:["mt","en"]},MU:{name:"Mauritius",native:"Maurice",phone:"230",languages:["en"]},MV:{name:"Maldives",native:"Maldives",phone:"960",languages:["dv"]},MW:{name:"Malawi",native:"Malawi",phone:"265",languages:["en","ny"]},MX:{name:"Mexico",native:"M\xe9xico",phone:"52",languages:["es"]},MY:{name:"Malaysia",native:"Malaysia",phone:"60",languages:["ms"]},MZ:{name:"Mozambique",native:"Mo\xe7ambique",phone:"258",languages:["pt"]},NA:{name:"Namibia",native:"Namibia",phone:"264",languages:["en","af"]},NC:{name:"New Caledonia",native:"Nouvelle-Cal\xe9donie",phone:"687",languages:["fr"]},NE:{name:"Niger",native:"Niger",phone:"227",languages:["fr"]},NF:{name:"Norfolk Island",native:"Norfolk Island",phone:"672",languages:["en"]},NG:{name:"Nigeria",native:"Nigeria",phone:"234",languages:["en"]},NI:{name:"Nicaragua",native:"Nicaragua",phone:"505",languages:["es"]},NL:{name:"Netherlands",native:"Nederland",phone:"31",languages:["nl"]},NO:{name:"Norway",native:"Norge",phone:"47",languages:["no","nb","nn"]},NP:{name:"Nepal",native:"\u0928\u092a\u0932",phone:"977",languages:["ne"]},NR:{name:"Nauru",native:"Nauru",phone:"674",languages:["en","na"]},NU:{name:"Niue",native:"Niu\u0113",phone:"683",languages:["en"]},NZ:{name:"New Zealand",native:"New Zealand",phone:"64",languages:["en","mi"]},OM:{name:"Oman",native:"\u0639\u0645\u0627\u0646",phone:"968",languages:["ar"]},PA:{name:"Panama",native:"Panam\xe1",phone:"507",languages:["es"]},PE:{name:"Peru",native:"Per\xfa",phone:"51",languages:["es"]},PF:{name:"French Polynesia",native:"Polyn\xe9sie fran\xe7aise",phone:"689",languages:["fr"]},PG:{name:"Papua New Guinea",native:"Papua Niugini",phone:"675",languages:["en"]},PH:{name:"Philippines",native:"Pilipinas",phone:"63",languages:["en"]},PK:{name:"Pakistan",native:"Pakistan",phone:"92",languages:["en","ur"]},PL:{name:"Poland",native:"Polska",phone:"48",languages:["pl"]},PM:{name:"Saint Pierre and Miquelon",native:"Saint-Pierre-et-Miquelon",phone:"508",languages:["fr"]},PN:{name:"Pitcairn Islands",native:"Pitcairn Islands",phone:"64",languages:["en"]},PR:{name:"Puerto Rico",native:"Puerto Rico",phone:"1787,1939",languages:["es","en"]},PS:{name:"Palestine",native:"\u0641\u0644\u0633\u0637\u064a\u0646",phone:"970",languages:["ar"]},PT:{name:"Portugal",native:"Portugal",phone:"351",languages:["en"]},PW:{name:"Palau",native:"Palau",phone:"680",languages:["en"]},PY:{name:"Paraguay",native:"Paraguay",phone:"595",languages:["es","gn"]},QA:{name:"Qatar",native:"\u0642\u0637\u0631",phone:"974",languages:["ar"]},RE:{name:"R\xe9union",native:"La R\xe9union",phone:"262",languages:["fr"]},RO:{name:"Romania",native:"Rom\xe2nia",phone:"40",languages:["ro"]},RS:{name:"Serbia",native:"\u0421\u0440\u0431\u0438\u0458\u0430",phone:"381",languages:["sr"]},RU:{name:"Russia",native:"\u0420\u043e\u0441\u0441\u0438\u044f",phone:"7",languages:["ru"]},RW:{name:"Rwanda",native:"Rwanda",phone:"250",languages:["rw","en","fr"]},SA:{name:"Saudi Arabia",native:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",phone:"966",languages:["ar"]},SB:{name:"Solomon Islands",native:"Solomon Islands",phone:"677",languages:["en"]},SC:{name:"Seychelles",native:"Seychelles",phone:"248",languages:["fr","en"]},SD:{name:"Sudan",native:"\u0627\u0644\u0633\u0648\u062f\u0627\u0646",phone:"249",languages:["ar","en"]},SE:{name:"Sweden",native:"Sverige",phone:"46",languages:["sv"]},SG:{name:"Singapore",native:"Singapore",phone:"65",languages:["en","ms","ta","zh"]},SH:{name:"Saint Helena",native:"Saint Helena",phone:"290",languages:["en"]},SI:{name:"Slovenia",native:"Slovenija",phone:"386",languages:["sl"]},SJ:{name:"Svalbard and Jan Mayen",native:"Svalbard og Jan Mayen",phone:"4779",languages:["no"]},SK:{name:"Slovakia",native:"Slovensko",phone:"421",languages:["sk"]},SL:{name:"Sierra Leone",native:"Sierra Leone",phone:"232",languages:["en"]},SM:{name:"San Marino",native:"San Marino",phone:"378",languages:["it"]},SN:{name:"Senegal",native:"S\xe9n\xe9gal",phone:"221",languages:["fr"]},SO:{name:"Somalia",native:"Soomaaliya",phone:"252",languages:["so","ar"]},SR:{name:"Suriname",native:"Suriname",phone:"597",languages:["nl"]},SS:{name:"South Sudan",native:"South Sudan",phone:"211",languages:["en"]},ST:{name:"S\xe3o Tom\xe9 and Pr\xedncipe",native:"S\xe3o Tom\xe9 e Pr\xedncipe",phone:"239",languages:["pt"]},SV:{name:"El Salvador",native:"El Salvador",phone:"503",languages:["es"]},SX:{name:"Sint Maarten",native:"Sint Maarten",phone:"1721",languages:["nl","en"]},SY:{name:"Syria",native:"\u0633\u0648\u0631\u064a\u0627",phone:"963",languages:["ar"]},SZ:{name:"Swaziland",native:"Swaziland",phone:"268",languages:["en","ss"]},TC:{name:"Turks and Caicos Islands",native:"Turks and Caicos Islands",phone:"1649",languages:["en"]},TD:{name:"Chad",native:"Tchad",phone:"235",languages:["fr","ar"]},TF:{name:"French Southern Territories",native:"Territoire des Terres australes et antarctiques fr",phone:"262",languages:["fr"]},TG:{name:"Togo",native:"Togo",phone:"228",languages:["fr"]},TH:{name:"Thailand",native:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",phone:"66",languages:["th"]},TJ:{name:"Tajikistan",native:"\u0422\u043e\u04b7\u0438\u043a\u0438\u0441\u0442\u043e\u043d",phone:"992",languages:["tg","ru"]},TK:{name:"Tokelau",native:"Tokelau",phone:"690",languages:["en"]},TL:{name:"East Timor",native:"Timor-Leste",phone:"670",languages:["pt"]},TM:{name:"Turkmenistan",native:"T\xfcrkmenistan",phone:"993",languages:["tk","ru"]},TN:{name:"Tunisia",native:"\u062a\u0648\u0646\u0633",phone:"216",languages:["ar"]},TO:{name:"Tonga",native:"Tonga",phone:"676",languages:["en","to"]},TR:{name:"Turkey",native:"T\xfcrkiye",phone:"90",languages:["tr"]},TT:{name:"Trinidad and Tobago",native:"Trinidad and Tobago",phone:"1868",languages:["en"]},TV:{name:"Tuvalu",native:"Tuvalu",phone:"688",languages:["en"]},TW:{name:"Taiwan",native:"\u81fa\u7063",phone:"886",languages:["zh"]},TZ:{name:"Tanzania",native:"Tanzania",phone:"255",languages:["sw","en"]},UA:{name:"Ukraine",native:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",phone:"380",languages:["uk"]},UG:{name:"Uganda",native:"Uganda",phone:"256",languages:["en","sw"]},UM:{name:"U.S. Minor Outlying Islands",native:"United States Minor Outlying Islands",phone:"1",languages:["en"]},UY:{name:"Uruguay",native:"Uruguay",phone:"598",languages:["es"]},UZ:{name:"Uzbekistan",native:"O\u2018zbekiston",phone:"998",languages:["uz","ru"]},VA:{name:"Vatican City",native:"Vaticano",phone:"39066,379",languages:["it","la"]},VC:{name:"Saint Vincent and the Grenadines",native:"Saint Vincent and the Grenadines",phone:"1784",languages:["en"]},VE:{name:"Venezuela",native:"Venezuela",phone:"58",languages:["es"]},VG:{name:"British Virgin Islands",native:"British Virgin Islands",phone:"1284",languages:["en"]},VI:{name:"U.S. Virgin Islands",native:"United States Virgin Islands",phone:"1340",languages:["en"]},VN:{name:"Vietnam",native:"Vi\u1ec7t Nam",phone:"84",languages:["vi"]},VU:{name:"Vanuatu",native:"Vanuatu",phone:"678",languages:["bi","en","fr"]},WF:{name:"Wallis and Futuna",native:"Wallis et Futuna",phone:"681",languages:["fr"]},WS:{name:"Samoa",native:"Samoa",phone:"685",languages:["sm","en"]},XK:{name:"Kosovo",native:"Republika e Kosov\xebs",phone:"377,381,383,386",languages:["sq","sr"]},YE:{name:"Yemen",native:"\u0627\u0644\u064a\u064e\u0645\u064e\u0646",phone:"967",languages:["ar"]},YT:{name:"Mayotte",native:"Mayotte",phone:"262",languages:["fr"]},ZA:{name:"South Africa",native:"South Africa",phone:"27",languages:["af","en","nr","st","ss","tn","ts","ve","xh","zu"]},ZM:{name:"Zambia",native:"Zambia",phone:"260",languages:["en"]},ZW:{name:"Zimbabwe",native:"Zimbabwe",phone:"263",languages:["en","sn","nd"]}},E=D=>i[`${D||""}`.toUpperCase()]||null,y=D=>{const b=E(D);if(b){const f=`${D||""}`.toUpperCase();return{code:f,phone:`${b.phone}`,display:`+${b.phone} ( ${b.native} )`,flag:`/assets/flags/square/${f.toLowerCase()}-square.svg`,name:`${b.native||""}`}}return null},A=D=>{for(const b of Object.keys(i)){const f=i[b];if(f?.phone===`${D}`)return{code:b,phone:`${f.phone}`,display:`+${f.phone} ( ${f.native} )`,flag:`/assets/flags/square/${b.toLowerCase()}-square.svg`,name:`${f.native||""}`}}return null},M=()=>Object.keys(i).map(D=>{const b=i[D];let f=b.phone;const S=f.indexOf(",");return-1!==S&&(f=f.slice(0,S)),{code:`${D}`,phone:`${f}`,display:`+${f}`,flag:`/assets/flags/square/${D.toLowerCase()}-square.svg`,name:b.native}})},11488:(it,ge,s)=>{"use strict";s.d(ge,{S:()=>y,p:()=>E});const i={USD:{symbol:"$",name:"US Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"USD",name_plural:"US dollars"},CAD:{symbol:"CA$",name:"Canadian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"CAD",name_plural:"Canadian dollars"},EUR:{symbol:"\u20ac",name:"Euro",symbol_native:"\u20ac",decimal_digits:2,rounding:0,code:"EUR",name_plural:"euros"},AED:{symbol:"AED",name:"United Arab Emirates Dirham",symbol_native:"\u062f.\u0625.\u200f",decimal_digits:2,rounding:0,code:"AED",name_plural:"UAE dirhams"},AFN:{symbol:"Af",name:"Afghan Afghani",symbol_native:"\u060b",decimal_digits:0,rounding:0,code:"AFN",name_plural:"Afghan Afghanis"},ALL:{symbol:"ALL",name:"Albanian Lek",symbol_native:"Lek",decimal_digits:0,rounding:0,code:"ALL",name_plural:"Albanian lek\xeb"},AMD:{symbol:"AMD",name:"Armenian Dram",symbol_native:"\u0564\u0580.",decimal_digits:0,rounding:0,code:"AMD",name_plural:"Armenian drams"},ANG:{symbol:"\u0192",name:"Netherlands Antillean guilder",symbol_native:"\u0192",decimal_digits:0,rounding:0,code:"ANG",name_plural:"Netherlands Antillean guilder"},AOA:{symbol:"Kz",name:"Angolan Kwanza",symbol_native:"Kz",decimal_digits:0,rounding:0,code:"AOA",name_plural:"Angolan Kwanzas"},ARS:{symbol:"AR$",name:"Argentine Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"ARS",name_plural:"Argentine pesos"},AUD:{symbol:"AU$",name:"Australian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"AUD",name_plural:"Australian dollars"},AZN:{symbol:"man.",name:"Azerbaijani Manat",symbol_native:"\u043c\u0430\u043d.",decimal_digits:2,rounding:0,code:"AZN",name_plural:"Azerbaijani manats"},BAM:{symbol:"KM",name:"Bosnia-Herzegovina Convertible Mark",symbol_native:"KM",decimal_digits:2,rounding:0,code:"BAM",name_plural:"Bosnia-Herzegovina convertible marks"},BDT:{symbol:"Tk",name:"Bangladeshi Taka",symbol_native:"\u09f3",decimal_digits:2,rounding:0,code:"BDT",name_plural:"Bangladeshi takas"},BGN:{symbol:"BGN",name:"Bulgarian Lev",symbol_native:"\u043b\u0432.",decimal_digits:2,rounding:0,code:"BGN",name_plural:"Bulgarian leva"},BHD:{symbol:"BD",name:"Bahraini Dinar",symbol_native:"\u062f.\u0628.\u200f",decimal_digits:3,rounding:0,code:"BHD",name_plural:"Bahraini dinars"},BIF:{symbol:"FBu",name:"Burundian Franc",symbol_native:"FBu",decimal_digits:0,rounding:0,code:"BIF",name_plural:"Burundian francs"},BND:{symbol:"BN$",name:"Brunei Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BND",name_plural:"Brunei dollars"},BMD:{symbol:"$",name:"Bermudian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BMD",name_plural:"Bermudian Dollar"},BOB:{symbol:"Bs",name:"Bolivian Boliviano",symbol_native:"Bs",decimal_digits:2,rounding:0,code:"BOB",name_plural:"Bolivian bolivianos"},BRL:{symbol:"R$",name:"Brazilian Real",symbol_native:"R$",decimal_digits:2,rounding:0,code:"BRL",name_plural:"Brazilian reals"},BTN:{symbol:"Nu.",name:"Bhutanese Ngultrum",symbol_native:"Nu.",decimal_digits:2,rounding:0,code:"BTN",name_plural:"Bhutanese Ngultrum"},BWP:{symbol:"BWP",name:"Botswanan Pula",symbol_native:"P",decimal_digits:2,rounding:0,code:"BWP",name_plural:"Botswanan pulas"},BYR:{symbol:"BYR",name:"Belarusian Ruble",symbol_native:"BYR",decimal_digits:0,rounding:0,code:"BYR",name_plural:"Belarusian rubles"},BZD:{symbol:"BZ$",name:"Belize Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BZD",name_plural:"Belize dollars"},CDF:{symbol:"CDF",name:"Congolese Franc",symbol_native:"FrCD",decimal_digits:2,rounding:0,code:"CDF",name_plural:"Congolese francs"},CHF:{symbol:"CHF",name:"Swiss Franc",symbol_native:"CHF",decimal_digits:2,rounding:.05,code:"CHF",name_plural:"Swiss francs"},CLP:{symbol:"CL$",name:"Chilean Peso",symbol_native:"$",decimal_digits:0,rounding:0,code:"CLP",name_plural:"Chilean pesos"},CNY:{symbol:"CN\xa5",name:"Chinese Yuan",symbol_native:"CN\xa5",decimal_digits:2,rounding:0,code:"CNY",name_plural:"Chinese yuan"},COP:{symbol:"CO$",name:"Colombian Peso",symbol_native:"$",decimal_digits:0,rounding:0,code:"COP",name_plural:"Colombian pesos"},CRC:{symbol:"\u20a1",name:"Costa Rican Col\xf3n",symbol_native:"\u20a1",decimal_digits:0,rounding:0,code:"CRC",name_plural:"Costa Rican col\xf3ns"},CVE:{symbol:"CV$",name:"Cape Verdean Escudo",symbol_native:"CV$",decimal_digits:2,rounding:0,code:"CVE",name_plural:"Cape Verdean escudos"},CZK:{symbol:"K\u010d",name:"Czech Republic Koruna",symbol_native:"K\u010d",decimal_digits:2,rounding:0,code:"CZK",name_plural:"Czech Republic korunas"},DJF:{symbol:"Fdj",name:"Djiboutian Franc",symbol_native:"Fdj",decimal_digits:0,rounding:0,code:"DJF",name_plural:"Djiboutian francs"},DKK:{symbol:"Dkr",name:"Danish Krone",symbol_native:"kr",decimal_digits:2,rounding:0,code:"DKK",name_plural:"Danish kroner"},DOP:{symbol:"RD$",name:"Dominican Peso",symbol_native:"RD$",decimal_digits:2,rounding:0,code:"DOP",name_plural:"Dominican pesos"},DZD:{symbol:"DA",name:"Algerian Dinar",symbol_native:"\u062f.\u062c.\u200f",decimal_digits:2,rounding:0,code:"DZD",name_plural:"Algerian dinars"},EEK:{symbol:"Ekr",name:"Estonian Kroon",symbol_native:"kr",decimal_digits:2,rounding:0,code:"EEK",name_plural:"Estonian kroons"},EGP:{symbol:"EGP",name:"Egyptian Pound",symbol_native:"\u062c.\u0645.\u200f",decimal_digits:2,rounding:0,code:"EGP",name_plural:"Egyptian pounds"},ERN:{symbol:"Nfk",name:"Eritrean Nakfa",symbol_native:"Nfk",decimal_digits:2,rounding:0,code:"ERN",name_plural:"Eritrean nakfas"},ETB:{symbol:"Br",name:"Ethiopian Birr",symbol_native:"Br",decimal_digits:2,rounding:0,code:"ETB",name_plural:"Ethiopian birrs"},FKP:{symbol:"\xa3",name:"Falkland Island Pound",symbol_native:"\xa3",decimal_digits:2,rounding:0,code:"FKP",name_plural:"Falkland Island Pounds"},GBP:{symbol:"\xa3",name:"British Pound Sterling",symbol_native:"\xa3",decimal_digits:2,rounding:0,code:"GBP",name_plural:"British pounds sterling"},GEL:{symbol:"GEL",name:"Georgian Lari",symbol_native:"GEL",decimal_digits:2,rounding:0,code:"GEL",name_plural:"Georgian laris"},GHS:{symbol:"GH\u20b5",name:"Ghanaian Cedi",symbol_native:"GH\u20b5",decimal_digits:2,rounding:0,code:"GHS",name_plural:"Ghanaian cedis"},GIP:{symbol:"\xa3",name:"Gibraltar Pound",symbol_native:"\xa3",decimal_digits:2,rounding:0,code:"GHS",name_plural:"Gibraltar pound"},GNF:{symbol:"FG",name:"Guinean Franc",symbol_native:"FG",decimal_digits:0,rounding:0,code:"GNF",name_plural:"Guinean francs"},GTQ:{symbol:"GTQ",name:"Guatemalan Quetzal",symbol_native:"Q",decimal_digits:2,rounding:0,code:"GTQ",name_plural:"Guatemalan quetzals"},HKD:{symbol:"HK$",name:"Hong Kong Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"HKD",name_plural:"Hong Kong dollars"},HNL:{symbol:"HNL",name:"Honduran Lempira",symbol_native:"L",decimal_digits:2,rounding:0,code:"HNL",name_plural:"Honduran lempiras"},HRK:{symbol:"kn",name:"Croatian Kuna",symbol_native:"kn",decimal_digits:2,rounding:0,code:"HRK",name_plural:"Croatian kunas"},HUF:{symbol:"Ft",name:"Hungarian Forint",symbol_native:"Ft",decimal_digits:0,rounding:0,code:"HUF",name_plural:"Hungarian forints"},IDR:{symbol:"Rp",name:"Indonesian Rupiah",symbol_native:"Rp",decimal_digits:0,rounding:0,code:"IDR",name_plural:"Indonesian rupiahs"},ILS:{symbol:"\u20aa",name:"Israeli New Sheqel",symbol_native:"\u20aa",decimal_digits:2,rounding:0,code:"ILS",name_plural:"Israeli new sheqels"},INR:{symbol:"Rs",name:"Indian Rupee",symbol_native:"\u20b9",decimal_digits:2,rounding:0,code:"INR",name_plural:"Indian rupees"},IQD:{symbol:"IQD",name:"Iraqi Dinar",symbol_native:"\u062f.\u0639.\u200f",decimal_digits:0,rounding:0,code:"IQD",name_plural:"Iraqi dinars"},IRR:{symbol:"IRR",name:"Iranian Rial",symbol_native:"\ufdfc",decimal_digits:0,rounding:0,code:"IRR",name_plural:"Iranian rials"},ISK:{symbol:"Ikr",name:"Icelandic Kr\xf3na",symbol_native:"kr",decimal_digits:0,rounding:0,code:"ISK",name_plural:"Icelandic kr\xf3nur"},JMD:{symbol:"J$",name:"Jamaican Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"JMD",name_plural:"Jamaican dollars"},JOD:{symbol:"JD",name:"Jordanian Dinar",symbol_native:"\u062f.\u0623.\u200f",decimal_digits:3,rounding:0,code:"JOD",name_plural:"Jordanian dinars"},JPY:{symbol:"\xa5",name:"Japanese Yen",symbol_native:"\uffe5",decimal_digits:0,rounding:0,code:"JPY",name_plural:"Japanese yen"},KES:{symbol:"\u0441",name:"Kyrgyzstani som",symbol_native:"\u0441",decimal_digits:2,rounding:0,code:"KES",name_plural:"Kyrgyzstani som"},KGS:{symbol:"Ksh",name:"Kyrgyzstani Som",symbol_native:"Ksh",decimal_digits:2,rounding:0,code:"KES",name_plural:"Kenyan shillings"},KHR:{symbol:"KHR",name:"Cambodian Riel",symbol_native:"\u17db",decimal_digits:2,rounding:0,code:"KHR",name_plural:"Cambodian riels"},KMF:{symbol:"CF",name:"Comorian Franc",symbol_native:"FC",decimal_digits:0,rounding:0,code:"KMF",name_plural:"Comorian francs"},KRW:{symbol:"\u20a9",name:"South Korean Won",symbol_native:"\u20a9",decimal_digits:0,rounding:0,code:"KRW",name_plural:"South Korean won"},KWD:{symbol:"KD",name:"Kuwaiti Dinar",symbol_native:"\u062f.\u0643.\u200f",decimal_digits:3,rounding:0,code:"KWD",name_plural:"Kuwaiti dinars"},KYD:{symbol:"$",name:"Cayman Islands dollar",symbol_native:"$\u200f",decimal_digits:2,rounding:0,code:"KYD",name_plural:"Cayman Islands dollarS"},KZT:{symbol:"KZT",name:"Kazakhstani Tenge",symbol_native:"\u0442\u04a3\u0433.",decimal_digits:2,rounding:0,code:"KZT",name_plural:"Kazakhstani tenges"},LAK:{symbol:"\u20ad",name:"Lao kip",symbol_native:"\u20ad\u200f",decimal_digits:0,rounding:0,code:"LAK",name_plural:"Lao kip"},LBP:{symbol:"LB\xa3",name:"Lebanese Pound",symbol_native:"\u0644.\u0644.\u200f",decimal_digits:0,rounding:0,code:"LBP",name_plural:"Lebanese pounds"},LKR:{symbol:"SLRs",name:"Sri Lankan Rupee",symbol_native:"SL Re",decimal_digits:2,rounding:0,code:"LKR",name_plural:"Sri Lankan rupees"},LRD:{symbol:"$",name:"Liberian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"LRD",name_plural:"Liberian Dollars"},LTL:{symbol:"Lt",name:"Lithuanian Litas",symbol_native:"Lt",decimal_digits:2,rounding:0,code:"LTL",name_plural:"Lithuanian litai"},LVL:{symbol:"Ls",name:"Latvian Lats",symbol_native:"Ls",decimal_digits:2,rounding:0,code:"LVL",name_plural:"Latvian lati"},LYD:{symbol:"LD",name:"Libyan Dinar",symbol_native:"\u062f.\u0644.\u200f",decimal_digits:3,rounding:0,code:"LYD",name_plural:"Libyan dinars"},MAD:{symbol:"MAD",name:"Moroccan Dirham",symbol_native:"\u062f.\u0645.\u200f",decimal_digits:2,rounding:0,code:"MAD",name_plural:"Moroccan dirhams"},MDL:{symbol:"MDL",name:"Moldovan Leu",symbol_native:"MDL",decimal_digits:2,rounding:0,code:"MDL",name_plural:"Moldovan lei"},MGA:{symbol:"MGA",name:"Malagasy Ariary",symbol_native:"MGA",decimal_digits:0,rounding:0,code:"MGA",name_plural:"Malagasy Ariaries"},MKD:{symbol:"MKD",name:"Macedonian Denar",symbol_native:"MKD",decimal_digits:2,rounding:0,code:"MKD",name_plural:"Macedonian denari"},MMK:{symbol:"MMK",name:"Myanma Kyat",symbol_native:"K",decimal_digits:0,rounding:0,code:"MMK",name_plural:"Myanma kyats"},MOP:{symbol:"MOP$",name:"Macanese Pataca",symbol_native:"MOP$",decimal_digits:2,rounding:0,code:"MOP",name_plural:"Macanese patacas"},MUR:{symbol:"MURs",name:"Mauritian Rupee",symbol_native:"MURs",decimal_digits:0,rounding:0,code:"MUR",name_plural:"Mauritian rupees"},MWK:{symbol:"MK",name:"Malawian Kwacha",symbol_native:"MK",decimal_digits:2,rounding:0,code:"MWK",name_plural:"Malawian Kwacha"},MXN:{symbol:"MX$",name:"Mexican Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"MXN",name_plural:"Mexican pesos"},MYR:{symbol:"RM",name:"Malaysian Ringgit",symbol_native:"RM",decimal_digits:2,rounding:0,code:"MYR",name_plural:"Malaysian ringgits"},MZN:{symbol:"MTn",name:"Mozambican Metical",symbol_native:"MTn",decimal_digits:2,rounding:0,code:"MZN",name_plural:"Mozambican meticals"},NAD:{symbol:"N$",name:"Namibian Dollar",symbol_native:"N$",decimal_digits:2,rounding:0,code:"NAD",name_plural:"Namibian dollars"},NGN:{symbol:"\u20a6",name:"Nigerian Naira",symbol_native:"\u20a6",decimal_digits:2,rounding:0,code:"NGN",name_plural:"Nigerian nairas"},NIO:{symbol:"C$",name:"Nicaraguan C\xf3rdoba",symbol_native:"C$",decimal_digits:2,rounding:0,code:"NIO",name_plural:"Nicaraguan c\xf3rdobas"},NOK:{symbol:"Nkr",name:"Norwegian Krone",symbol_native:"kr",decimal_digits:2,rounding:0,code:"NOK",name_plural:"Norwegian kroner"},NPR:{symbol:"NPRs",name:"Nepalese Rupee",symbol_native:"\u0928\u0947\u0930\u0942",decimal_digits:2,rounding:0,code:"NPR",name_plural:"Nepalese rupees"},NZD:{symbol:"NZ$",name:"New Zealand Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"NZD",name_plural:"New Zealand dollars"},OMR:{symbol:"OMR",name:"Omani Rial",symbol_native:"\u0631.\u0639.\u200f",decimal_digits:3,rounding:0,code:"OMR",name_plural:"Omani rials"},PAB:{symbol:"B/.",name:"Panamanian Balboa",symbol_native:"B/.",decimal_digits:2,rounding:0,code:"PAB",name_plural:"Panamanian balboas"},PEN:{symbol:"S/.",name:"Peruvian Nuevo Sol",symbol_native:"S/.",decimal_digits:2,rounding:0,code:"PEN",name_plural:"Peruvian nuevos soles"},PHP:{symbol:"\u20b1",name:"Philippine Peso",symbol_native:"\u20b1",decimal_digits:2,rounding:0,code:"PHP",name_plural:"Philippine pesos"},PKR:{symbol:"PKRs",name:"Pakistani Rupee",symbol_native:"\u20a8",decimal_digits:0,rounding:0,code:"PKR",name_plural:"Pakistani rupees"},PLN:{symbol:"z\u0142",name:"Polish Zloty",symbol_native:"z\u0142",decimal_digits:2,rounding:0,code:"PLN",name_plural:"Polish zlotys"},PYG:{symbol:"\u20b2",name:"Paraguayan Guarani",symbol_native:"\u20b2",decimal_digits:0,rounding:0,code:"PYG",name_plural:"Paraguayan guaranis"},QAR:{symbol:"QR",name:"Qatari Rial",symbol_native:"\u0631.\u0642.\u200f",decimal_digits:2,rounding:0,code:"QAR",name_plural:"Qatari rials"},RON:{symbol:"RON",name:"Romanian Leu",symbol_native:"RON",decimal_digits:2,rounding:0,code:"RON",name_plural:"Romanian lei"},RSD:{symbol:"din.",name:"Serbian Dinar",symbol_native:"\u0434\u0438\u043d.",decimal_digits:0,rounding:0,code:"RSD",name_plural:"Serbian dinars"},RUB:{symbol:"RUB",name:"Russian Ruble",symbol_native:"\u0440\u0443\u0431.",decimal_digits:2,rounding:0,code:"RUB",name_plural:"Russian rubles"},RWF:{symbol:"RWF",name:"Rwandan Franc",symbol_native:"FR",decimal_digits:0,rounding:0,code:"RWF",name_plural:"Rwandan francs"},SAR:{symbol:"SR",name:"Saudi Riyal",symbol_native:"\u0631.\u0633.\u200f",decimal_digits:2,rounding:0,code:"SAR",name_plural:"Saudi riyals"},SBD:{symbol:"$",name:"Solomon Islander Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"SBD",name_plural:"Solomon Islander Dollars"},SDG:{symbol:"SDG",name:"Sudanese Pound",symbol_native:"SDG",decimal_digits:2,rounding:0,code:"SDG",name_plural:"Sudanese pounds"},SEK:{symbol:"Skr",name:"Swedish Krona",symbol_native:"kr",decimal_digits:2,rounding:0,code:"SEK",name_plural:"Swedish kronor"},SGD:{symbol:"S$",name:"Singapore Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"SGD",name_plural:"Singapore dollars"},SLL:{symbol:"Le",name:"Sierra Leonean Leone",symbol_native:"Le",decimal_digits:2,rounding:0,code:"SLL",name_plural:"Sierra Leonean Leone"},SOS:{symbol:"Ssh",name:"Somali Shilling",symbol_native:"Ssh",decimal_digits:0,rounding:0,code:"SOS",name_plural:"Somali shillings"},SSP:{symbol:"\xa3",name:"South Sudanese pound",symbol_native:"\xa3",decimal_digits:2,rounding:0,code:"SSP",name_plural:"South Sudanese pound"},STD:{symbol:"Db",name:"Sao Tomean Dobra",symbol_native:"Db",decimal_digits:0,rounding:0,code:"STD",name_plural:"Sao Tomean Dobra"},STN:{symbol:"Db",name:"Sao Tomean Dobra",symbol_native:"Db",decimal_digits:0,rounding:0,code:"STN",name_plural:"Sao Tomean Dobra"},SYP:{symbol:"SY\xa3",name:"Syrian Pound",symbol_native:"\u0644.\u0633.\u200f",decimal_digits:0,rounding:0,code:"SYP",name_plural:"Syrian pounds"},SZL:{symbol:"L",name:"Swazi Lilangeni",symbol_native:"L\u200f",decimal_digits:0,rounding:0,code:"SZL",name_plural:"Swazi Lilangeni"},THB:{symbol:"\u0e3f",name:"Thai Baht",symbol_native:"\u0e3f",decimal_digits:2,rounding:0,code:"THB",name_plural:"Thai baht"},TJS:{symbol:"\u0405\u041c",name:"Tajikistani Somoni",symbol_native:"\u0405\u041c",decimal_digits:2,rounding:0,code:"THB",name_plural:"Tajikistani Somoni"},TND:{symbol:"DT",name:"Tunisian Dinar",symbol_native:"\u062f.\u062a.\u200f",decimal_digits:3,rounding:0,code:"TND",name_plural:"Tunisian dinars"},TOP:{symbol:"T$",name:"Tongan Pa\u02bbanga",symbol_native:"T$",decimal_digits:2,rounding:0,code:"TOP",name_plural:"Tongan pa\u02bbanga"},TRY:{symbol:"TL",name:"Turkish Lira",symbol_native:"TL",decimal_digits:2,rounding:0,code:"TRY",name_plural:"Turkish Lira"},TTD:{symbol:"TT$",name:"Trinidad and Tobago Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"TTD",name_plural:"Trinidad and Tobago dollars"},TWD:{symbol:"NT$",name:"New Taiwan Dollar",symbol_native:"NT$",decimal_digits:2,rounding:0,code:"TWD",name_plural:"New Taiwan dollars"},TZS:{symbol:"TSh",name:"Tanzanian Shilling",symbol_native:"TSh",decimal_digits:0,rounding:0,code:"TZS",name_plural:"Tanzanian shillings"},UAH:{symbol:"\u20b4",name:"Ukrainian Hryvnia",symbol_native:"\u20b4",decimal_digits:2,rounding:0,code:"UAH",name_plural:"Ukrainian hryvnias"},UGX:{symbol:"USh",name:"Ugandan Shilling",symbol_native:"USh",decimal_digits:0,rounding:0,code:"UGX",name_plural:"Ugandan shillings"},UYU:{symbol:"$U",name:"Uruguayan Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"UYU",name_plural:"Uruguayan pesos"},UZS:{symbol:"UZS",name:"Uzbekistan Som",symbol_native:"UZS",decimal_digits:0,rounding:0,code:"UZS",name_plural:"Uzbekistan som"},VEF:{symbol:"Bs.F.",name:"Venezuelan Bol\xedvar",symbol_native:"Bs.F.",decimal_digits:2,rounding:0,code:"VEF",name_plural:"Venezuelan bol\xedvars"},VND:{symbol:"\u20ab",name:"Vietnamese Dong",symbol_native:"\u20ab",decimal_digits:0,rounding:0,code:"VND",name_plural:"Vietnamese dong"},VUV:{symbol:"Vt",name:"Ni-Vanuatu Vatu",symbol_native:"Vt",decimal_digits:0,rounding:0,code:"VUV",name_plural:"Ni-Vanuatu Vatu"},XAF:{symbol:"FCFA",name:"CFA Franc BEAC",symbol_native:"FCFA",decimal_digits:0,rounding:0,code:"XAF",name_plural:"CFA francs BEAC"},XCD:{symbol:"$",name:"East Caribbean Dollar",symbol_native:"$",decimal_digits:0,rounding:0,code:"XCD",name_plural:"East Caribbean Dollars"},XOF:{symbol:"CFA",name:"CFA Franc BCEAO",symbol_native:"CFA",decimal_digits:0,rounding:0,code:"XOF",name_plural:"CFA francs BCEAO"},XPF:{symbol:"Fr",name:"CFP franc",symbol_native:"Fr",decimal_digits:0,rounding:0,code:"XPF",name_plural:"CFP franc"},YER:{symbol:"YR",name:"Yemeni Rial",symbol_native:"\u0631.\u064a.\u200f",decimal_digits:0,rounding:0,code:"YER",name_plural:"Yemeni rials"},ZAR:{symbol:"R",name:"South African Rand",symbol_native:"R",decimal_digits:2,rounding:0,code:"ZAR",name_plural:"South African rand"},ZMK:{symbol:"ZK",name:"Zambian Kwacha",symbol_native:"ZK",decimal_digits:0,rounding:0,code:"ZMK",name_plural:"Zambian kwachas"}},E=()=>i,y=A=>i[`${A||""}`.toUpperCase()]||null},66880:(it,ge,s)=>{"use strict";s.d(ge,{T7:()=>i});const i=["SA","AE","QA","OM","KW","BH"]},84288:(it,ge,s)=>{"use strict";s.d(ge,{TS:()=>A});const i={"qa.popsy.app":"qa","om.popsy.app":"om","bh.popsy.app":"bh","popsy.ae":"ae","popsy.sa":"sa","popsy.com.kw":"kw"},A=M=>{for(const[D,b]of Object.entries(i))if(M?.includes(D))return b;return null}},31134:(it,ge,s)=>{"use strict";s.d(ge,{bL:()=>Dh,FB:()=>vy,b3:()=>_y,I6:()=>Th,JH:()=>hv,bp:()=>fv,wT:()=>cv,uo:()=>av,ru:()=>nE,bJ:()=>tE,ws:()=>lv,Pz:()=>uv});var i=s(66257);const M=function(c){const o=[];let h=0;for(let v=0;v<c.length;v++){let j=c.charCodeAt(v);j<128?o[h++]=j:j<2048?(o[h++]=j>>6|192,o[h++]=63&j|128):55296==(64512&j)&&v+1<c.length&&56320==(64512&c.charCodeAt(v+1))?(j=65536+((1023&j)<<10)+(1023&c.charCodeAt(++v)),o[h++]=j>>18|240,o[h++]=j>>12&63|128,o[h++]=j>>6&63|128,o[h++]=63&j|128):(o[h++]=j>>12|224,o[h++]=j>>6&63|128,o[h++]=63&j|128)}return o},b={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(c,o){if(!Array.isArray(c))throw Error("encodeByteArray takes an array as a parameter");this.init_();const h=o?this.byteToCharMapWebSafe_:this.byteToCharMap_,v=[];for(let j=0;j<c.length;j+=3){const ae=c[j],xe=j+1<c.length,ft=xe?c[j+1]:0,kt=j+2<c.length,Zt=kt?c[j+2]:0;let Rr=(15&ft)<<2|Zt>>6,Ci=63&Zt;kt||(Ci=64,xe||(Rr=64)),v.push(h[ae>>2],h[(3&ae)<<4|ft>>4],h[Rr],h[Ci])}return v.join("")},encodeString(c,o){return this.HAS_NATIVE_SUPPORT&&!o?btoa(c):this.encodeByteArray(M(c),o)},decodeString(c,o){return this.HAS_NATIVE_SUPPORT&&!o?atob(c):function(c){const o=[];let h=0,v=0;for(;h<c.length;){const j=c[h++];if(j<128)o[v++]=String.fromCharCode(j);else if(j>191&&j<224){const ae=c[h++];o[v++]=String.fromCharCode((31&j)<<6|63&ae)}else if(j>239&&j<365){const kt=((7&j)<<18|(63&c[h++])<<12|(63&c[h++])<<6|63&c[h++])-65536;o[v++]=String.fromCharCode(55296+(kt>>10)),o[v++]=String.fromCharCode(56320+(1023&kt))}else{const ae=c[h++],xe=c[h++];o[v++]=String.fromCharCode((15&j)<<12|(63&ae)<<6|63&xe)}}return o.join("")}(this.decodeStringToByteArray(c,o))},decodeStringToByteArray(c,o){this.init_();const h=o?this.charToByteMapWebSafe_:this.charToByteMap_,v=[];for(let j=0;j<c.length;){const ae=h[c.charAt(j++)],ft=j<c.length?h[c.charAt(j)]:0;++j;const Zt=j<c.length?h[c.charAt(j)]:64;++j;const on=j<c.length?h[c.charAt(j)]:64;if(++j,null==ae||null==ft||null==Zt||null==on)throw Error();v.push(ae<<2|ft>>4),64!==Zt&&(v.push(ft<<4&240|Zt>>2),64!==on&&v.push(Zt<<6&192|on))}return v},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let c=0;c<this.ENCODED_VALS.length;c++)this.byteToCharMap_[c]=this.ENCODED_VALS.charAt(c),this.charToByteMap_[this.byteToCharMap_[c]]=c,this.byteToCharMapWebSafe_[c]=this.ENCODED_VALS_WEBSAFE.charAt(c),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[c]]=c,c>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(c)]=c,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(c)]=c)}}},S=function(c){return function(c){const o=M(c);return b.encodeByteArray(o,!0)}(c).replace(/\./g,"")},O=function(c){try{return b.decodeString(c,!0)}catch(o){console.error("base64Decode failed: ",o)}return null};class w{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((o,h)=>{this.resolve=o,this.reject=h})}wrapCallback(o){return(h,v)=>{h?this.reject(h):this.resolve(v),"function"==typeof o&&(this.promise.catch(()=>{}),1===o.length?o(h):o(h,v))}}}function V(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function K(){const c="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof c&&void 0!==c.id}function se(){return"object"==typeof indexedDB}function Ge(){return new Promise((c,o)=>{try{let h=!0;const v="validate-browser-context-for-indexeddb-analytics-module",j=self.indexedDB.open(v);j.onsuccess=()=>{j.result.close(),h||self.indexedDB.deleteDatabase(v),c(!0)},j.onupgradeneeded=()=>{h=!1},j.onerror=()=>{var ae;o((null===(ae=j.error)||void 0===ae?void 0:ae.message)||"")}}catch(h){o(h)}})}function B(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class re extends Error{constructor(o,h,v){super(h),this.code=o,this.customData=v,this.name="FirebaseError",Object.setPrototypeOf(this,re.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ce.prototype.create)}}class ce{constructor(o,h,v){this.service=o,this.serviceName=h,this.errors=v}create(o,...h){const v=h[0]||{},j=`${this.service}/${o}`,ae=this.errors[o],xe=ae?function Se(c,o){return c.replace(we,(h,v)=>{const j=o[v];return null!=j?String(j):`<${v}?>`})}(ae,v):"Error";return new re(j,`${this.serviceName}: ${xe} (${j}).`,v)}}const we=/\{\$([^}]+)}/g;function Qt(c,o){if(c===o)return!0;const h=Object.keys(c),v=Object.keys(o);for(const j of h){if(!v.includes(j))return!1;const ae=c[j],xe=o[j];if(mt(ae)&&mt(xe)){if(!Qt(ae,xe))return!1}else if(ae!==xe)return!1}for(const j of v)if(!h.includes(j))return!1;return!0}function mt(c){return null!==c&&"object"==typeof c}function At(c){const o=[];for(const[h,v]of Object.entries(c))Array.isArray(v)?v.forEach(j=>{o.push(encodeURIComponent(h)+"="+encodeURIComponent(j))}):o.push(encodeURIComponent(h)+"="+encodeURIComponent(v));return o.length?"&"+o.join("&"):""}class Dt{constructor(o,h){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=h,this.task.then(()=>{o(this)}).catch(v=>{this.error(v)})}next(o){this.forEachObserver(h=>{h.next(o)})}error(o){this.forEachObserver(h=>{h.error(o)}),this.close(o)}complete(){this.forEachObserver(o=>{o.complete()}),this.close()}subscribe(o,h,v){let j;if(void 0===o&&void 0===h&&void 0===v)throw new Error("Missing Observer.");j=function Yt(c,o){if("object"!=typeof c||null===c)return!1;for(const h of o)if(h in c&&"function"==typeof c[h])return!0;return!1}(o,["next","error","complete"])?o:{next:o,error:h,complete:v},void 0===j.next&&(j.next=fn),void 0===j.error&&(j.error=fn),void 0===j.complete&&(j.complete=fn);const ae=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?j.error(this.finalError):j.complete()}catch{}}),this.observers.push(j),ae}unsubscribeOne(o){void 0===this.observers||void 0===this.observers[o]||(delete this.observers[o],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(o){if(!this.finalized)for(let h=0;h<this.observers.length;h++)this.sendOne(h,o)}sendOne(o,h){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[o])try{h(this.observers[o])}catch(v){typeof console<"u"&&console.error&&console.error(v)}})}close(o){this.finalized||(this.finalized=!0,void 0!==o&&(this.finalError=o),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function fn(){}const Fe=1e3,pt=2,vt=144e5,Mt=.5;function cn(c,o=Fe,h=pt){const v=o*Math.pow(h,c),j=Math.round(Mt*v*(Math.random()-.5)*2);return Math.min(vt,v+j)}function An(c){return c&&c._delegate?c._delegate:c}class Vn{constructor(o,h,v){this.name=o,this.instanceFactory=h,this.type=v,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(o){return this.instantiationMode=o,this}setMultipleInstances(o){return this.multipleInstances=o,this}setServiceProps(o){return this.serviceProps=o,this}setInstanceCreatedCallback(o){return this.onInstanceCreated=o,this}}const Pr="[DEFAULT]";class Mi{constructor(o,h){this.name=o,this.container=h,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(o){const h=this.normalizeInstanceIdentifier(o);if(!this.instancesDeferred.has(h)){const v=new w;if(this.instancesDeferred.set(h,v),this.isInitialized(h)||this.shouldAutoInitialize())try{const j=this.getOrInitializeService({instanceIdentifier:h});j&&v.resolve(j)}catch{}}return this.instancesDeferred.get(h).promise}getImmediate(o){var h;const v=this.normalizeInstanceIdentifier(o?.identifier),j=null!==(h=o?.optional)&&void 0!==h&&h;if(!this.isInitialized(v)&&!this.shouldAutoInitialize()){if(j)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:v})}catch(ae){if(j)return null;throw ae}}getComponent(){return this.component}setComponent(o){if(o.name!==this.name)throw Error(`Mismatching Component ${o.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=o,this.shouldAutoInitialize()){if(function _t(c){return"EAGER"===c.instantiationMode}(o))try{this.getOrInitializeService({instanceIdentifier:Pr})}catch{}for(const[h,v]of this.instancesDeferred.entries()){const j=this.normalizeInstanceIdentifier(h);try{const ae=this.getOrInitializeService({instanceIdentifier:j});v.resolve(ae)}catch{}}}}clearInstance(o=Pr){this.instancesDeferred.delete(o),this.instancesOptions.delete(o),this.instances.delete(o)}delete(){var o=this;return(0,i.A)(function*(){const h=Array.from(o.instances.values());yield Promise.all([...h.filter(v=>"INTERNAL"in v).map(v=>v.INTERNAL.delete()),...h.filter(v=>"_delete"in v).map(v=>v._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(o=Pr){return this.instances.has(o)}getOptions(o=Pr){return this.instancesOptions.get(o)||{}}initialize(o={}){const{options:h={}}=o,v=this.normalizeInstanceIdentifier(o.instanceIdentifier);if(this.isInitialized(v))throw Error(`${this.name}(${v}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const j=this.getOrInitializeService({instanceIdentifier:v,options:h});for(const[ae,xe]of this.instancesDeferred.entries())v===this.normalizeInstanceIdentifier(ae)&&xe.resolve(j);return j}onInit(o,h){var v;const j=this.normalizeInstanceIdentifier(h),ae=null!==(v=this.onInitCallbacks.get(j))&&void 0!==v?v:new Set;ae.add(o),this.onInitCallbacks.set(j,ae);const xe=this.instances.get(j);return xe&&o(xe,j),()=>{ae.delete(o)}}invokeOnInitCallbacks(o,h){const v=this.onInitCallbacks.get(h);if(v)for(const j of v)try{j(o,h)}catch{}}getOrInitializeService({instanceIdentifier:o,options:h={}}){let v=this.instances.get(o);if(!v&&this.component&&(v=this.component.instanceFactory(this.container,{instanceIdentifier:(c=o,c===Pr?void 0:c),options:h}),this.instances.set(o,v),this.instancesOptions.set(o,h),this.invokeOnInitCallbacks(v,o),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,o,v)}catch{}var c;return v||null}normalizeInstanceIdentifier(o=Pr){return this.component?this.component.multipleInstances?o:Pr:o}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ct{constructor(o){this.name=o,this.providers=new Map}addComponent(o){const h=this.getProvider(o.name);if(h.isComponentSet())throw new Error(`Component ${o.name} has already been registered with ${this.name}`);h.setComponent(o)}addOrOverwriteComponent(o){this.getProvider(o.name).isComponentSet()&&this.providers.delete(o.name),this.addComponent(o)}getProvider(o){if(this.providers.has(o))return this.providers.get(o);const h=new Mi(o,this);return this.providers.set(o,h),h}getProviders(){return Array.from(this.providers.values())}}const Be=[];var et=function(c){return c[c.DEBUG=0]="DEBUG",c[c.VERBOSE=1]="VERBOSE",c[c.INFO=2]="INFO",c[c.WARN=3]="WARN",c[c.ERROR=4]="ERROR",c[c.SILENT=5]="SILENT",c}(et||{});const $t={debug:et.DEBUG,verbose:et.VERBOSE,info:et.INFO,warn:et.WARN,error:et.ERROR,silent:et.SILENT},yn=et.INFO,Un={[et.DEBUG]:"log",[et.VERBOSE]:"log",[et.INFO]:"info",[et.WARN]:"warn",[et.ERROR]:"error"},ur=(c,o,...h)=>{if(o<c.logLevel)return;const v=(new Date).toISOString(),j=Un[o];if(!j)throw new Error(`Attempted to log a message with an invalid logType (value: ${o})`);console[j](`[${v}]  ${c.name}:`,...h)};class Ar{constructor(o){this.name=o,this._logLevel=yn,this._logHandler=ur,this._userLogHandler=null,Be.push(this)}get logLevel(){return this._logLevel}set logLevel(o){if(!(o in et))throw new TypeError(`Invalid value "${o}" assigned to \`logLevel\``);this._logLevel=o}setLogLevel(o){this._logLevel="string"==typeof o?$t[o]:o}get logHandler(){return this._logHandler}set logHandler(o){if("function"!=typeof o)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=o}get userLogHandler(){return this._userLogHandler}set userLogHandler(o){this._userLogHandler=o}debug(...o){this._userLogHandler&&this._userLogHandler(this,et.DEBUG,...o),this._logHandler(this,et.DEBUG,...o)}log(...o){this._userLogHandler&&this._userLogHandler(this,et.VERBOSE,...o),this._logHandler(this,et.VERBOSE,...o)}info(...o){this._userLogHandler&&this._userLogHandler(this,et.INFO,...o),this._logHandler(this,et.INFO,...o)}warn(...o){this._userLogHandler&&this._userLogHandler(this,et.WARN,...o),this._logHandler(this,et.WARN,...o)}error(...o){this._userLogHandler&&this._userLogHandler(this,et.ERROR,...o),this._logHandler(this,et.ERROR,...o)}}const Ur=(c,o)=>o.some(h=>c instanceof h);let Nr,vi;const It=new WeakMap,Jt=new WeakMap,Bn=new WeakMap,Yn=new WeakMap,nt=new WeakMap;let bt={get(c,o,h){if(c instanceof IDBTransaction){if("done"===o)return Jt.get(c);if("objectStoreNames"===o)return c.objectStoreNames||Bn.get(c);if("store"===o)return h.objectStoreNames[1]?void 0:h.objectStore(h.objectStoreNames[0])}return pn(c[o])},set:(c,o,h)=>(c[o]=h,!0),has:(c,o)=>c instanceof IDBTransaction&&("done"===o||"store"===o)||o in c};function ln(c){return"function"==typeof c?function an(c){return c!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function rt(){return vi||(vi=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(c)?function(...o){return c.apply(jn(this),o),pn(It.get(this))}:function(...o){return pn(c.apply(jn(this),o))}:function(o,...h){const v=c.call(jn(this),o,...h);return Bn.set(v,o.sort?o.sort():[o]),pn(v)}}(c):(c instanceof IDBTransaction&&function je(c){if(Jt.has(c))return;const o=new Promise((h,v)=>{const j=()=>{c.removeEventListener("complete",ae),c.removeEventListener("error",xe),c.removeEventListener("abort",xe)},ae=()=>{h(),j()},xe=()=>{v(c.error||new DOMException("AbortError","AbortError")),j()};c.addEventListener("complete",ae),c.addEventListener("error",xe),c.addEventListener("abort",xe)});Jt.set(c,o)}(c),Ur(c,function Et(){return Nr||(Nr=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(c,bt):c)}function pn(c){if(c instanceof IDBRequest)return function qt(c){const o=new Promise((h,v)=>{const j=()=>{c.removeEventListener("success",ae),c.removeEventListener("error",xe)},ae=()=>{h(pn(c.result)),j()},xe=()=>{v(c.error),j()};c.addEventListener("success",ae),c.addEventListener("error",xe)});return o.then(h=>{h instanceof IDBCursor&&It.set(h,c)}).catch(()=>{}),nt.set(o,c),o}(c);if(Yn.has(c))return Yn.get(c);const o=ln(c);return o!==c&&(Yn.set(c,o),nt.set(o,c)),o}const jn=c=>nt.get(c);function zn(c,o,{blocked:h,upgrade:v,blocking:j,terminated:ae}={}){const xe=indexedDB.open(c,o),ft=pn(xe);return v&&xe.addEventListener("upgradeneeded",kt=>{v(pn(xe.result),kt.oldVersion,kt.newVersion,pn(xe.transaction))}),h&&xe.addEventListener("blocked",()=>h()),ft.then(kt=>{ae&&kt.addEventListener("close",()=>ae()),j&&kt.addEventListener("versionchange",()=>j())}).catch(()=>{}),ft}function Me(c,{blocked:o}={}){const h=indexedDB.deleteDatabase(c);return o&&h.addEventListener("blocked",()=>o()),pn(h).then(()=>{})}const Je=["get","getKey","getAll","getAllKeys","count"],qe=["put","add","delete","clear"],xt=new Map;function Pt(c,o){if(!(c instanceof IDBDatabase)||o in c||"string"!=typeof o)return;if(xt.get(o))return xt.get(o);const h=o.replace(/FromIndex$/,""),v=o!==h,j=qe.includes(h);if(!(h in(v?IDBIndex:IDBObjectStore).prototype)||!j&&!Je.includes(h))return;const ae=function(){var xe=(0,i.A)(function*(ft,...kt){const Zt=this.transaction(ft,j?"readwrite":"readonly");let _n=Zt.store;return v&&(_n=_n.index(kt.shift())),(yield Promise.all([_n[h](...kt),j&&Zt.done]))[0]});return function(kt){return xe.apply(this,arguments)}}();return xt.set(o,ae),ae}!function Rt(c){bt=c(bt)}(c=>({...c,get:(o,h,v)=>Pt(o,h)||c.get(o,h,v),has:(o,h)=>!!Pt(o,h)||c.has(o,h)}));class un{constructor(o){this.container=o}getPlatformInfoString(){return this.container.getProviders().map(h=>{if(function dn(c){const o=c.getComponent();return"VERSION"===o?.type}(h)){const v=h.getImmediate();return`${v.library}/${v.version}`}return null}).filter(h=>h).join(" ")}}const er="@firebase/app",be=new Ar("@firebase/app"),Os="[DEFAULT]",Ys={[er]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},ns=new Map,Jr=new Map;function Es(c,o){try{c.container.addComponent(o)}catch(h){be.debug(`Component ${o.name} failed to register with FirebaseApp ${c.name}`,h)}}function Ai(c){const o=c.name;if(Jr.has(o))return be.debug(`There were multiple attempts to register component ${o}.`),!1;Jr.set(o,c);for(const h of ns.values())Es(h,c);return!0}function Ss(c,o){const h=c.container.getProvider("heartbeat").getImmediate({optional:!0});return h&&h.triggerHeartbeat(),c.container.getProvider(o)}const us=new ce("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class rs{constructor(o,h,v){this._isDeleted=!1,this._options=Object.assign({},o),this._config=Object.assign({},h),this._name=h.name,this._automaticDataCollectionEnabled=h.automaticDataCollectionEnabled,this._container=v,this.container.addComponent(new Vn("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(o){this.checkDestroyed(),this._automaticDataCollectionEnabled=o}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(o){this._isDeleted=o}checkDestroyed(){if(this.isDeleted)throw us.create("app-deleted",{appName:this._name})}}const ho="9.9.3";function Ve(c=Os){const o=ns.get(c);if(!o)throw us.create("no-app",{appName:c});return o}function tt(c,o,h){var v;let j=null!==(v=Ys[c])&&void 0!==v?v:c;h&&(j+=`-${h}`);const ae=j.match(/\s|\//),xe=o.match(/\s|\//);if(ae||xe){const ft=[`Unable to register library "${j}" with version "${o}":`];return ae&&ft.push(`library name "${j}" contains illegal characters (whitespace or "/")`),ae&&xe&&ft.push("and"),xe&&ft.push(`version name "${o}" contains illegal characters (whitespace or "/")`),void be.warn(ft.join(" "))}Ai(new Vn(`${j}-version`,()=>({library:j,version:o}),"VERSION"))}const gn="firebase-heartbeat-database",Gn=1,Dn="firebase-heartbeat-store";let Sr=null;function dr(){return Sr||(Sr=zn(gn,Gn,{upgrade:(c,o)=>{0===o&&c.createObjectStore(Dn)}}).catch(c=>{throw us.create("idb-open",{originalErrorMessage:c.message})})),Sr}function br(){return(br=(0,i.A)(function*(c){var o;try{return(yield dr()).transaction(Dn).objectStore(Dn).get(ni(c))}catch(h){if(h instanceof re)be.warn(h.message);else{const v=us.create("idb-get",{originalErrorMessage:null===(o=h)||void 0===o?void 0:o.message});be.warn(v.message)}}})).apply(this,arguments)}function Lr(c,o){return Br.apply(this,arguments)}function Br(){return(Br=(0,i.A)(function*(c,o){var h;try{const j=(yield dr()).transaction(Dn,"readwrite");return yield j.objectStore(Dn).put(o,ni(c)),j.done}catch(v){if(v instanceof re)be.warn(v.message);else{const j=us.create("idb-set",{originalErrorMessage:null===(h=v)||void 0===h?void 0:h.message});be.warn(j.message)}}})).apply(this,arguments)}function ni(c){return`${c.name}!${c.options.appId}`}class Qi{constructor(o){this.container=o,this._heartbeatsCache=null;const h=this.container.getProvider("app").getImmediate();this._storage=new aa(h),this._heartbeatsCachePromise=this._storage.read().then(v=>(this._heartbeatsCache=v,v))}triggerHeartbeat(){var o=this;return(0,i.A)(function*(){const v=o.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),j=ws();if(null===o._heartbeatsCache&&(o._heartbeatsCache=yield o._heartbeatsCachePromise),o._heartbeatsCache.lastSentHeartbeatDate!==j&&!o._heartbeatsCache.heartbeats.some(ae=>ae.date===j))return o._heartbeatsCache.heartbeats.push({date:j,agent:v}),o._heartbeatsCache.heartbeats=o._heartbeatsCache.heartbeats.filter(ae=>{const xe=new Date(ae.date).valueOf();return Date.now()-xe<=2592e6}),o._storage.overwrite(o._heartbeatsCache)})()}getHeartbeatsHeader(){var o=this;return(0,i.A)(function*(){if(null===o._heartbeatsCache&&(yield o._heartbeatsCachePromise),null===o._heartbeatsCache||0===o._heartbeatsCache.heartbeats.length)return"";const h=ws(),{heartbeatsToSend:v,unsentEntries:j}=function is(c,o=1024){const h=[];let v=c.slice();for(const j of c){const ae=h.find(xe=>xe.agent===j.agent);if(ae){if(ae.dates.push(j.date),fo(h)>o){ae.dates.pop();break}}else if(h.push({agent:j.agent,dates:[j.date]}),fo(h)>o){h.pop();break}v=v.slice(1)}return{heartbeatsToSend:h,unsentEntries:v}}(o._heartbeatsCache.heartbeats),ae=S(JSON.stringify({version:2,heartbeats:v}));return o._heartbeatsCache.lastSentHeartbeatDate=h,j.length>0?(o._heartbeatsCache.heartbeats=j,yield o._storage.overwrite(o._heartbeatsCache)):(o._heartbeatsCache.heartbeats=[],o._storage.overwrite(o._heartbeatsCache)),ae})()}}function ws(){return(new Date).toISOString().substring(0,10)}class aa{constructor(o){this.app=o,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,i.A)(function*(){return!!se()&&Ge().then(()=>!0).catch(()=>!1)})()}read(){var o=this;return(0,i.A)(function*(){return(yield o._canUseIndexedDBPromise)&&(yield function wr(c){return br.apply(this,arguments)}(o.app))||{heartbeats:[]}})()}overwrite(o){var h=this;return(0,i.A)(function*(){var v;if(yield h._canUseIndexedDBPromise){const ae=yield h.read();return Lr(h.app,{lastSentHeartbeatDate:null!==(v=o.lastSentHeartbeatDate)&&void 0!==v?v:ae.lastSentHeartbeatDate,heartbeats:o.heartbeats})}})()}add(o){var h=this;return(0,i.A)(function*(){var v;if(yield h._canUseIndexedDBPromise){const ae=yield h.read();return Lr(h.app,{lastSentHeartbeatDate:null!==(v=o.lastSentHeartbeatDate)&&void 0!==v?v:ae.lastSentHeartbeatDate,heartbeats:[...ae.heartbeats,...o.heartbeats]})}})()}}function fo(c){return S(JSON.stringify({version:2,heartbeats:c})).length}!function hr(c){Ai(new Vn("platform-logger",o=>new un(o),"PRIVATE")),Ai(new Vn("heartbeat",o=>new Qi(o),"PRIVATE")),tt(er,"0.7.31",c),tt(er,"0.7.31","esm2017"),tt("fire-js","")}("");const vr="@firebase/installations",xr="0.5.12",Xs=1e4,Ps=`w:${xr}`,sr="FIS_v2",fr="https://firebaseinstallations.googleapis.com/v1",_i=36e5,Xi=new ce("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function ji(c){return c instanceof re&&c.code.includes("request-failed")}function ss({projectId:c}){return`${fr}/projects/${c}/installations`}function Js(c){return{token:c.token,requestStatus:2,expiresIn:Rn(c.expiresIn),creationTime:Date.now()}}function To(c,o){return ue.apply(this,arguments)}function ue(){return(ue=(0,i.A)(function*(c,o){const v=(yield o.json()).error;return Xi.create("request-failed",{requestName:c,serverCode:v.code,serverMessage:v.message,serverStatus:v.status})})).apply(this,arguments)}function pe({apiKey:c}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":c})}function Oe(c){return ot.apply(this,arguments)}function ot(){return(ot=(0,i.A)(function*(c){const o=yield c();return o.status>=500&&o.status<600?c():o})).apply(this,arguments)}function Rn(c){return Number(c.replace("s","000"))}function Zs(){return(Zs=(0,i.A)(function*({appConfig:c,heartbeatServiceProvider:o},{fid:h}){const v=ss(c),j=pe(c),ae=o.getImmediate({optional:!0});if(ae){const Zt=yield ae.getHeartbeatsHeader();Zt&&j.append("x-firebase-client",Zt)}const ft={method:"POST",headers:j,body:JSON.stringify({fid:h,authVersion:sr,appId:c.appId,sdkVersion:Ps})},kt=yield Oe(()=>fetch(v,ft));if(kt.ok){const Zt=yield kt.json();return{fid:Zt.fid||h,registrationStatus:2,refreshToken:Zt.refreshToken,authToken:Js(Zt.authToken)}}throw yield To("Create Installation",kt)})).apply(this,arguments)}function Di(c){return new Promise(o=>{setTimeout(o,c)})}const vc=/^[cdef][\w-]{21}$/,la="";function xl(){try{const c=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(c),c[0]=112+c[0]%16;const h=function Zr(c){return function Oo(c){return btoa(String.fromCharCode(...c)).replace(/\+/g,"-").replace(/\//g,"_")}(c).substr(0,22)}(c);return vc.test(h)?h:la}catch{return la}}function ca(c){return`${c.appName}!${c.appId}`}const Ms=new Map;function _c(c,o){const h=ca(c);el(h,o),function du(c,o){const h=function Wo(){return!qs&&"BroadcastChannel"in self&&(qs=new BroadcastChannel("[Firebase] FID Change"),qs.onmessage=c=>{el(c.data.key,c.data.fid)}),qs}();h&&h.postMessage({key:c,fid:o}),function po(){0===Ms.size&&qs&&(qs.close(),qs=null)}()}(h,o)}function el(c,o){const h=Ms.get(c);if(h)for(const v of h)v(o)}let qs=null;const Sc="firebase-installations-database",Oa=1,qn="firebase-installations-store";let qr=null;function oi(){return qr||(qr=zn(Sc,Oa,{upgrade:(c,o)=>{0===o&&c.createObjectStore(qn)}})),qr}function Ji(c,o){return Ti.apply(this,arguments)}function Ti(){return(Ti=(0,i.A)(function*(c,o){const h=ca(c),j=(yield oi()).transaction(qn,"readwrite"),ae=j.objectStore(qn),xe=yield ae.get(h);return yield ae.put(o,h),yield j.done,(!xe||xe.fid!==o.fid)&&_c(c,o.fid),o})).apply(this,arguments)}function tl(c){return Go.apply(this,arguments)}function Go(){return(Go=(0,i.A)(function*(c){const o=ca(c),v=(yield oi()).transaction(qn,"readwrite");yield v.objectStore(qn).delete(o),yield v.done})).apply(this,arguments)}function eo(c,o){return kl.apply(this,arguments)}function kl(){return(kl=(0,i.A)(function*(c,o){const h=ca(c),j=(yield oi()).transaction(qn,"readwrite"),ae=j.objectStore(qn),xe=yield ae.get(h),ft=o(xe);return void 0===ft?yield ae.delete(h):yield ae.put(ft,h),yield j.done,ft&&(!xe||xe.fid!==ft.fid)&&_c(c,ft.fid),ft})).apply(this,arguments)}function nl(c){return Ko.apply(this,arguments)}function Ko(){return Ko=(0,i.A)(function*(c){let o;const h=yield eo(c.appConfig,v=>{const j=function Ho(c){return Ul(c||{fid:xl(),registrationStatus:0})}(v),ae=function wa(c,o){if(0===o.registrationStatus){if(!navigator.onLine)return{installationEntry:o,registrationPromise:Promise.reject(Xi.create("app-offline"))};const h={fid:o.fid,registrationStatus:1,registrationTime:Date.now()},v=function Fl(c,o){return da.apply(this,arguments)}(c,h);return{installationEntry:h,registrationPromise:v}}return 1===o.registrationStatus?{installationEntry:o,registrationPromise:fd(c)}:{installationEntry:o}}(c,j);return o=ae.registrationPromise,ae.installationEntry});return h.fid===la?{installationEntry:yield o}:{installationEntry:h,registrationPromise:o}}),Ko.apply(this,arguments)}function da(){return da=(0,i.A)(function*(c,o){try{const h=yield function $s(c,o){return Zs.apply(this,arguments)}(c,o);return Ji(c.appConfig,h)}catch(h){throw ji(h)&&409===h.customData.serverCode?yield tl(c.appConfig):yield Ji(c.appConfig,{fid:o.fid,registrationStatus:0}),h}}),da.apply(this,arguments)}function fd(c){return rl.apply(this,arguments)}function rl(){return(rl=(0,i.A)(function*(c){let o=yield hu(c.appConfig);for(;1===o.registrationStatus;)yield Di(100),o=yield hu(c.appConfig);if(0===o.registrationStatus){const{installationEntry:h,registrationPromise:v}=yield nl(c);return v||h}return o})).apply(this,arguments)}function hu(c){return eo(c,o=>{if(!o)throw Xi.create("installation-not-found");return Ul(o)})}function Ul(c){return function fu(c){return 1===c.registrationStatus&&c.registrationTime+Xs<Date.now()}(c)?{fid:c.fid,registrationStatus:0}:c}function wo(){return(wo=(0,i.A)(function*({appConfig:c,heartbeatServiceProvider:o},h){const v=function Bl(c,{fid:o}){return`${ss(c)}/${o}/authTokens:generate`}(c,h),j=function Q(c,{refreshToken:o}){const h=pe(c);return h.append("Authorization",function pr(c){return`${sr} ${c}`}(o)),h}(c,h),ae=o.getImmediate({optional:!0});if(ae){const Zt=yield ae.getHeartbeatsHeader();Zt&&j.append("x-firebase-client",Zt)}const ft={method:"POST",headers:j,body:JSON.stringify({installation:{sdkVersion:Ps,appId:c.appId}})},kt=yield Oe(()=>fetch(v,ft));if(kt.ok)return Js(yield kt.json());throw yield To("Generate Auth Token",kt)})).apply(this,arguments)}function ha(c){return Oi.apply(this,arguments)}function Oi(){return Oi=(0,i.A)(function*(c,o=!1){let h;const v=yield eo(c.appConfig,ae=>{if(!Li(ae))throw Xi.create("not-registered");const xe=ae.authToken;if(!o&&function Pa(c){return 2===c.requestStatus&&!function il(c){const o=Date.now();return o<c.creationTime||c.creationTime+c.expiresIn<o+_i}(c)}(xe))return ae;if(1===xe.requestStatus)return h=function ui(c,o){return Ws.apply(this,arguments)}(c,o),ae;{if(!navigator.onLine)throw Xi.create("app-offline");const ft=function to(c){const o={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},c),{authToken:o})}(ae);return h=function ds(c,o){return Fi.apply(this,arguments)}(c,ft),ft}});return h?yield h:v.authToken}),Oi.apply(this,arguments)}function Ws(){return(Ws=(0,i.A)(function*(c,o){let h=yield Cs(c.appConfig);for(;1===h.authToken.requestStatus;)yield Di(100),h=yield Cs(c.appConfig);const v=h.authToken;return 0===v.requestStatus?ha(c,o):v})).apply(this,arguments)}function Cs(c){return eo(c,o=>{if(!Li(o))throw Xi.create("not-registered");return function di(c){return 1===c.requestStatus&&c.requestTime+Xs<Date.now()}(o.authToken)?Object.assign(Object.assign({},o),{authToken:{requestStatus:0}}):o})}function Fi(){return Fi=(0,i.A)(function*(c,o){try{const h=yield function bc(c,o){return wo.apply(this,arguments)}(c,o),v=Object.assign(Object.assign({},o),{authToken:h});return yield Ji(c.appConfig,v),h}catch(h){if(!ji(h)||401!==h.customData.serverCode&&404!==h.customData.serverCode){const v=Object.assign(Object.assign({},o),{authToken:{requestStatus:0}});yield Ji(c.appConfig,v)}else yield tl(c.appConfig);throw h}}),Fi.apply(this,arguments)}function Li(c){return void 0!==c&&2===c.registrationStatus}function sl(){return(sl=(0,i.A)(function*(c){const o=c,{installationEntry:h,registrationPromise:v}=yield nl(o);return v?v.catch(console.error):ha(o).catch(console.error),h.fid})).apply(this,arguments)}function Gs(){return Gs=(0,i.A)(function*(c,o=!1){const h=c;return yield function go(c){return ol.apply(this,arguments)}(h),(yield ha(h,o)).token}),Gs.apply(this,arguments)}function ol(){return(ol=(0,i.A)(function*(c){const{registrationPromise:o}=yield nl(c);o&&(yield o)})).apply(this,arguments)}function Ln(c){return Xi.create("missing-app-config-values",{valueName:c})}const $r="installations",Fr=c=>{const o=c.getProvider("app").getImmediate(),h=function zt(c){if(!c||!c.options)throw Ln("App Configuration");if(!c.name)throw Ln("App Name");const o=["projectId","apiKey","appId"];for(const h of o)if(!c.options[h])throw Ln(h);return{appName:c.name,projectId:c.options.projectId,apiKey:c.options.apiKey,appId:c.options.appId}}(o);return{app:o,appConfig:h,heartbeatServiceProvider:Ss(o,"heartbeat"),_delete:()=>Promise.resolve()}},_r=c=>{const h=Ss(c.getProvider("app").getImmediate(),$r).getImmediate();return{getId:()=>function Zi(c){return sl.apply(this,arguments)}(h),getToken:j=>function Po(c){return Gs.apply(this,arguments)}(h,j)}};(function ai(){Ai(new Vn($r,Fr,"PUBLIC")),Ai(new Vn("installations-internal",_r,"PRIVATE"))})(),tt(vr,xr),tt(vr,xr,"esm2017");const kr="@firebase/remote-config";class gr{constructor(){this.listeners=[]}addEventListener(o){this.listeners.push(o)}abort(){this.listeners.forEach(o=>o())}}const sn="remote-config",ar=new ce("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"}),li=["1","true","t","yes","y","on"];class Bi{constructor(o,h=""){this._source=o,this._value=h}asString(){return this._value}asBoolean(){return"static"!==this._source&&li.indexOf(this._value.toLowerCase())>=0}asNumber(){if("static"===this._source)return 0;let o=Number(this._value);return isNaN(o)&&(o=0),o}getSource(){return this._source}}function nr(c){return Mo.apply(this,arguments)}function Mo(){return(Mo=(0,i.A)(function*(c){const o=An(c),[h,v]=yield Promise.all([o._storage.getLastSuccessfulFetchResponse(),o._storage.getActiveConfigEtag()]);return!!(h&&h.config&&h.eTag&&h.eTag!==v)&&(yield Promise.all([o._storageCache.setActiveConfig(h.config),o._storage.setActiveConfigEtag(h.eTag)]),!0)})).apply(this,arguments)}function ci(){return(ci=(0,i.A)(function*(c){const o=An(c),h=new gr;setTimeout((0,i.A)(function*(){h.abort()}),o.settings.fetchTimeoutMillis);try{yield o._client.fetch({cacheMaxAgeMillis:o.settings.minimumFetchIntervalMillis,signal:h}),yield o._storageCache.setLastFetchStatus("success")}catch(v){const j=function Ui(c,o){return c instanceof re&&-1!==c.code.indexOf(o)}(v,"fetch-throttle")?"throttle":"failure";throw yield o._storageCache.setLastFetchStatus(j),v}})).apply(this,arguments)}function Ma(c,o){const h=An(c);h._isInitializationComplete||h._logger.debug(`A value was requested for key "${o}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);const v=h._storageCache.getActiveConfig();return v&&void 0!==v[o]?new Bi("remote",v[o]):h.defaultConfig&&void 0!==h.defaultConfig[o]?new Bi("default",String(h.defaultConfig[o])):(h._logger.debug(`Returning static value for key "${o}". Define a default or remote value if this is unintentional.`),new Bi("static"))}class pa{constructor(o,h,v,j){this.client=o,this.storage=h,this.storageCache=v,this.logger=j}isCachedDataFresh(o,h){if(!h)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const v=Date.now()-h,j=v<=o;return this.logger.debug(`Config fetch cache check. Cache age millis: ${v}. Cache max age millis (minimumFetchIntervalMillis setting): ${o}. Is cache hit: ${j}.`),j}fetch(o){var h=this;return(0,i.A)(function*(){const[v,j]=yield Promise.all([h.storage.getLastSuccessfulFetchTimestampMillis(),h.storage.getLastSuccessfulFetchResponse()]);if(j&&h.isCachedDataFresh(o.cacheMaxAgeMillis,v))return j;o.eTag=j&&j.eTag;const ae=yield h.client.fetch(o),xe=[h.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===ae.status&&xe.push(h.storage.setLastSuccessfulFetchResponse(ae)),yield Promise.all(xe),ae})()}}function mr(c=navigator){return c.languages&&c.languages[0]||c.language}class Vl{constructor(o,h,v,j,ae,xe){this.firebaseInstallations=o,this.sdkVersion=h,this.namespace=v,this.projectId=j,this.apiKey=ae,this.appId=xe}fetch(o){var h=this;return(0,i.A)(function*(){var v,j,ae;const[xe,ft]=yield Promise.all([h.firebaseInstallations.getId(),h.firebaseInstallations.getToken()]),Zt=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${h.projectId}/namespaces/${h.namespace}:fetch?key=${h.apiKey}`,_n={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":o.eTag||"*"},on={sdk_version:h.sdkVersion,app_instance_id:xe,app_instance_id_token:ft,app_id:h.appId,language_code:mr()},Rr={method:"POST",headers:_n,body:JSON.stringify(on)},Ci=fetch(Zt,Rr),Da=new Promise((Ja,Za)=>{o.signal.addEventListener(()=>{const id=new Error("The operation was aborted.");id.name="AbortError",Za(id)})});let pc;try{yield Promise.race([Ci,Da]),pc=yield Ci}catch(Ja){let Za="fetch-client-network";throw"AbortError"===(null===(v=Ja)||void 0===v?void 0:v.name)&&(Za="fetch-timeout"),ar.create(Za,{originalErrorMessage:null===(j=Ja)||void 0===j?void 0:j.message})}let ia=pc.status;const Wf=pc.headers.get("ETag")||void 0;let uu,Ml;if(200===pc.status){let Ja;try{Ja=yield pc.json()}catch(Za){throw ar.create("fetch-client-parse",{originalErrorMessage:null===(ae=Za)||void 0===ae?void 0:ae.message})}uu=Ja.entries,Ml=Ja.state}if("INSTANCE_STATE_UNSPECIFIED"===Ml?ia=500:"NO_CHANGE"===Ml?ia=304:("NO_TEMPLATE"===Ml||"EMPTY_CONFIG"===Ml)&&(uu={}),304!==ia&&200!==ia)throw ar.create("fetch-status",{httpStatus:ia});return{status:ia,eTag:Wf,config:uu}})()}}class Ic{constructor(o,h){this.client=o,this.storage=h}fetch(o){var h=this;return(0,i.A)(function*(){const v=(yield h.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return h.attemptFetch(o,v)})()}attemptFetch(o,{throttleEndTimeMillis:h,backoffCount:v}){var j=this;return(0,i.A)(function*(){yield function Ra(c,o){return new Promise((h,v)=>{const j=Math.max(o-Date.now(),0),ae=setTimeout(h,j);c.addEventListener(()=>{clearTimeout(ae),v(ar.create("fetch-throttle",{throttleEndTimeMillis:o}))})})}(o.signal,h);try{const ae=yield j.client.fetch(o);return yield j.storage.deleteThrottleMetadata(),ae}catch(ae){if(!function vo(c){if(!(c instanceof re&&c.customData))return!1;const o=Number(c.customData.httpStatus);return 429===o||500===o||503===o||504===o}(ae))throw ae;const xe={throttleEndTimeMillis:Date.now()+cn(v),backoffCount:v+1};return yield j.storage.setThrottleMetadata(xe),j.attemptFetch(o,xe)}})()}}class Ac{constructor(o,h,v,j,ae){this.app=o,this._client=h,this._storageCache=v,this._storage=j,this._logger=ae,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function $i(c,o){var h;const v=c.target.error||void 0;return ar.create(o,{originalErrorMessage:v&&(null===(h=v)||void 0===h?void 0:h.message)})}const Ei="app_namespace_store";class hs{constructor(o,h,v,j=function jl(){return new Promise((c,o)=>{var h;try{const v=indexedDB.open("firebase_remote_config",1);v.onerror=j=>{o($i(j,"storage-open"))},v.onsuccess=j=>{c(j.target.result)},v.onupgradeneeded=j=>{0===j.oldVersion&&j.target.result.createObjectStore(Ei,{keyPath:"compositeKey"})}}catch(v){o(ar.create("storage-open",{originalErrorMessage:null===(h=v)||void 0===h?void 0:h.message}))}})}()){this.appId=o,this.appName=h,this.namespace=v,this.openDbPromise=j}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(o){return this.set("last_fetch_status",o)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(o){return this.set("last_successful_fetch_timestamp_millis",o)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(o){return this.set("last_successful_fetch_response",o)}getActiveConfig(){return this.get("active_config")}setActiveConfig(o){return this.set("active_config",o)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(o){return this.set("active_config_etag",o)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(o){return this.set("throttle_metadata",o)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(o){var h=this;return(0,i.A)(function*(){const v=yield h.openDbPromise;return new Promise((j,ae)=>{var xe;const kt=v.transaction([Ei],"readonly").objectStore(Ei),Zt=h.createCompositeKey(o);try{const _n=kt.get(Zt);_n.onerror=on=>{ae($i(on,"storage-get"))},_n.onsuccess=on=>{const Rr=on.target.result;j(Rr?Rr.value:void 0)}}catch(_n){ae(ar.create("storage-get",{originalErrorMessage:null===(xe=_n)||void 0===xe?void 0:xe.message}))}})})()}set(o,h){var v=this;return(0,i.A)(function*(){const j=yield v.openDbPromise;return new Promise((ae,xe)=>{var ft;const Zt=j.transaction([Ei],"readwrite").objectStore(Ei),_n=v.createCompositeKey(o);try{const on=Zt.put({compositeKey:_n,value:h});on.onerror=Rr=>{xe($i(Rr,"storage-set"))},on.onsuccess=()=>{ae()}}catch(on){xe(ar.create("storage-set",{originalErrorMessage:null===(ft=on)||void 0===ft?void 0:ft.message}))}})})()}delete(o){var h=this;return(0,i.A)(function*(){const v=yield h.openDbPromise;return new Promise((j,ae)=>{var xe;const kt=v.transaction([Ei],"readwrite").objectStore(Ei),Zt=h.createCompositeKey(o);try{const _n=kt.delete(Zt);_n.onerror=on=>{ae($i(on,"storage-delete"))},_n.onsuccess=()=>{j()}}catch(_n){ae(ar.create("storage-delete",{originalErrorMessage:null===(xe=_n)||void 0===xe?void 0:xe.message}))}})})()}createCompositeKey(o){return[this.appId,this.appName,this.namespace,o].join()}}class ll{constructor(o){this.storage=o}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var o=this;return(0,i.A)(function*(){const h=o.storage.getLastFetchStatus(),v=o.storage.getLastSuccessfulFetchTimestampMillis(),j=o.storage.getActiveConfig(),ae=yield h;ae&&(o.lastFetchStatus=ae);const xe=yield v;xe&&(o.lastSuccessfulFetchTimestampMillis=xe);const ft=yield j;ft&&(o.activeConfig=ft)})()}setLastFetchStatus(o){return this.lastFetchStatus=o,this.storage.setLastFetchStatus(o)}setLastSuccessfulFetchTimestampMillis(o){return this.lastSuccessfulFetchTimestampMillis=o,this.storage.setLastSuccessfulFetchTimestampMillis(o)}setActiveConfig(o){return this.activeConfig=o,this.storage.setActiveConfig(o)}}function La(){return La=(0,i.A)(function*(c){return c=An(c),yield function Vi(c){return ci.apply(this,arguments)}(c),nr(c)}),La.apply(this,arguments)}function gu(){return(gu=(0,i.A)(function*(){if(!se())return!1;try{return yield Ge()}catch{return!1}})).apply(this,arguments)}!function pd(){Ai(new Vn(sn,function c(o,{instanceIdentifier:h}){const v=o.getProvider("app").getImmediate(),j=o.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw ar.create("registration-window");if(!se())throw ar.create("indexed-db-unavailable");const{projectId:ae,apiKey:xe,appId:ft}=v.options;if(!ae)throw ar.create("registration-project-id");if(!xe)throw ar.create("registration-api-key");if(!ft)throw ar.create("registration-app-id");const kt=new hs(ft,v.name,h=h||"firebase"),Zt=new ll(kt),_n=new Ar(kr);_n.logLevel=et.ERROR;const on=new Vl(j,ho,h,ae,xe,ft),Rr=new Ic(on,kt),Ci=new pa(Rr,kt,Zt,_n),Da=new Ac(v,Ci,Zt,kt,_n);return function Cc(c){const o=An(c);o._initializePromise||(o._initializePromise=o._storageCache.loadFromStorage().then(()=>{o._isInitializationComplete=!0}))}(Da),Da},"PUBLIC").setMultipleInstances(!0)),tt(kr,"0.3.11"),tt(kr,"0.3.11","esm2017")}();var $l=s(47701);const de=function N(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Te=new ce("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Nt=new Ar("@firebase/auth");function Tt(c,...o){Nt.logLevel<=et.ERROR&&Nt.error(`Auth (${ho}): ${c}`,...o)}function vn(c,...o){throw xa(c,...o)}function rr(c,...o){return xa(c,...o)}function xa(c,...o){if("string"!=typeof c){const h=o[0],v=[...o.slice(1)];return v[0]&&(v[0].appName=c.name),c._errorFactory.create(h,...v)}return Te.create(c,...o)}function bn(c,o,...h){if(!c)throw xa(o,...h)}function fs(c){const o="INTERNAL ASSERTION FAILED: "+c;throw Tt(o),new Error(o)}function Ks(c,o){c||fs(o)}const No=new Map;function Lo(c){Ks(c instanceof Function,"Expected a class definition");let o=No.get(c);return o?(Ks(o instanceof c,"Instance stored in cache mismatched with class"),o):(o=new c,No.set(c,o),o)}function Tc(){var c;return typeof self<"u"&&(null===(c=self.location)||void 0===c?void 0:c.protocol)||null}class Wl{constructor(o,h){this.shortDelay=o,this.longDelay=h,Ks(h>o,"Short delay should be less than long delay!"),this.isMobile=function x(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(V())}()||function ne(){return"object"==typeof navigator&&"ReactNative"===navigator.product}()}get(){return function kh(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function mu(){return"http:"===Tc()||"https:"===Tc()}()||K()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}class Tn{static initialize(o,h,v){this.fetchImpl=o,h&&(this.headersImpl=h),v&&(this.responseImpl=v)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void fs("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:void fs("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:void fs("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const mp={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"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_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error"},pm=new Wl(3e4,6e4);function Wi(c,o,h,v){return Jo.apply(this,arguments)}function Jo(){return(Jo=(0,i.A)(function*(c,o,h,v,j={}){return Is(c,j,(0,i.A)(function*(){let ae={},xe={};v&&("GET"===o?xe=v:ae={body:JSON.stringify(v)});const ft=At(Object.assign({key:c.config.apiKey},xe)).slice(1),kt=yield c._getAdditionalHeaders();return kt["Content-Type"]="application/json",c.languageCode&&(kt["X-Firebase-Locale"]=c.languageCode),Tn.fetch()(Hs(c,c.config.apiHost,h,ft),Object.assign({method:o,headers:kt,referrerPolicy:"no-referrer"},ae))}))})).apply(this,arguments)}function Is(c,o,h){return yd.apply(this,arguments)}function yd(){return(yd=(0,i.A)(function*(c,o,h){c._canInitEmulator=!1;const v=Object.assign(Object.assign({},mp),o);try{const j=new yp(c),ae=yield Promise.race([h(),j.promise]);j.clearNetworkTimeout();const xe=yield ae.json();if("needConfirmation"in xe)throw cl(c,"account-exists-with-different-credential",xe);if(ae.ok&&!("errorMessage"in xe))return xe;{const ft=ae.ok?xe.errorMessage:xe.error.message,[kt,Zt]=ft.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===kt)throw cl(c,"credential-already-in-use",xe);if("EMAIL_EXISTS"===kt)throw cl(c,"email-already-in-use",xe);if("USER_DISABLED"===kt)throw cl(c,"user-disabled",xe);const _n=v[kt]||kt.toLowerCase().replace(/[_\s]+/g,"-");if(Zt)throw function Cr(c,o,h){const v=Object.assign(Object.assign({},de()),{[o]:h});return new ce("auth","Firebase",v).create(o,{appName:c.name})}(c,_n,Zt);vn(c,_n)}}catch(j){if(j instanceof re)throw j;vn(c,"network-request-failed")}})).apply(this,arguments)}function Hs(c,o,h,v){const j=`${o}${h}?${v}`;return c.config.emulator?function Xo(c,o){Ks(c.emulator,"Emulator should always be set here");const{url:h}=c.emulator;return o?`${h}${o.startsWith("/")?o.slice(1):o}`:h}(c.config,j):`${c.config.apiScheme}://${j}`}class yp{constructor(o){this.auth=o,this.timer=null,this.promise=new Promise((h,v)=>{this.timer=setTimeout(()=>v(rr(this.auth,"network-request-failed")),pm.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function cl(c,o,h){const v={appName:c.name};h.email&&(v.email=h.email),h.phoneNumber&&(v.phoneNumber=h.phoneNumber);const j=rr(c,o,v);return j.customData._tokenResponse=h,j}function _o(){return(_o=(0,i.A)(function*(c,o){return Wi(c,"POST","/v1/accounts:delete",o)})).apply(this,arguments)}function Ua(){return(Ua=(0,i.A)(function*(c,o){return Wi(c,"POST","/v1/accounts:lookup",o)})).apply(this,arguments)}function ga(c){if(c)try{const o=new Date(Number(c));if(!isNaN(o.getTime()))return o.toUTCString()}catch{}}function Oc(){return(Oc=(0,i.A)(function*(c,o=!1){const h=An(c),v=yield h.getIdToken(o),j=ir(v);bn(j&&j.exp&&j.auth_time&&j.iat,h.auth,"internal-error");const ae="object"==typeof j.firebase?j.firebase:void 0,xe=ae?.sign_in_provider;return{claims:j,token:v,authTime:ga(Zo(j.auth_time)),issuedAtTime:ga(Zo(j.iat)),expirationTime:ga(Zo(j.exp)),signInProvider:xe||null,signInSecondFactor:ae?.sign_in_second_factor||null}})).apply(this,arguments)}function Zo(c){return 1e3*Number(c)}function ir(c){var o;const[h,v,j]=c.split(".");if(void 0===h||void 0===v||void 0===j)return Tt("JWT malformed, contained fewer than 3 sections"),null;try{const ae=O(v);return ae?JSON.parse(ae):(Tt("Failed to decode base64 JWT payload"),null)}catch(ae){return Tt("Caught error parsing JWT payload as JSON",null===(o=ae)||void 0===o?void 0:o.toString()),null}}function ma(c,o){return Su.apply(this,arguments)}function Su(){return(Su=(0,i.A)(function*(c,o,h=!1){if(h)return o;try{return yield o}catch(v){throw v instanceof re&&function Xr({code:c}){return"auth/user-disabled"===c||"auth/user-token-expired"===c}(v)&&c.auth.currentUser===c&&(yield c.auth.signOut()),v}})).apply(this,arguments)}class bu{constructor(o){this.user=o,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(o){var h;if(o){const v=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),v}{this.errorBackoff=3e4;const j=(null!==(h=this.user.stsTokenManager.expirationTime)&&void 0!==h?h:0)-Date.now()-3e5;return Math.max(0,j)}}schedule(o=!1){var h=this;if(!this.isRunning)return;const v=this.getInterval(o);this.timerId=setTimeout((0,i.A)(function*(){yield h.iteration()}),v)}iteration(){var o=this;return(0,i.A)(function*(){var h;try{yield o.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null===(h=v)||void 0===h?void 0:h.code)&&o.schedule(!0))}o.schedule()})()}}class _d{constructor(o,h){this.createdAt=o,this.lastLoginAt=h,this._initializeTime()}_initializeTime(){this.lastSignInTime=ga(this.lastLoginAt),this.creationTime=ga(this.createdAt)}_copy(o){this.createdAt=o.createdAt,this.lastLoginAt=o.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function lr(c){return wc.apply(this,arguments)}function wc(){return wc=(0,i.A)(function*(c){var o;const h=c.auth,v=yield c.getIdToken(),j=yield ma(c,function vd(c,o){return Ua.apply(this,arguments)}(h,{idToken:v}));bn(j?.users.length,h,"internal-error");const ae=j.users[0];c._notifyReloadListener(ae);const xe=null!==(o=ae.providerUserInfo)&&void 0!==o&&o.length?function Sd(c){return c.map(o=>{var{providerId:h}=o,v=(0,$l.Tt)(o,["providerId"]);return{providerId:h,uid:v.rawId||"",displayName:v.displayName||null,email:v.email||null,phoneNumber:v.phoneNumber||null,photoURL:v.photoUrl||null}})}(ae.providerUserInfo):[],ft=function qi(c,o){return[...c.filter(v=>!o.some(j=>j.providerId===v.providerId)),...o]}(c.providerData,xe),_n=!!c.isAnonymous&&!(c.email&&ae.passwordHash||ft?.length),on={uid:ae.localId,displayName:ae.displayName||null,photoURL:ae.photoUrl||null,email:ae.email||null,emailVerified:ae.emailVerified||!1,phoneNumber:ae.phoneNumber||null,tenantId:ae.tenantId||null,providerData:ft,metadata:new _d(ae.createdAt,ae.lastLoginAt),isAnonymous:_n};Object.assign(c,on)}),wc.apply(this,arguments)}function Ed(){return(Ed=(0,i.A)(function*(c){const o=An(c);yield lr(o),yield o.auth._persistUserIfCurrent(o),o.auth._notifyListenersIfCurrent(o)})).apply(this,arguments)}function Or(){return(Or=(0,i.A)(function*(c,o){const h=yield Is(c,{},(0,i.A)(function*(){const v=At({grant_type:"refresh_token",refresh_token:o}).slice(1),{tokenApiHost:j,apiKey:ae}=c.config,xe=Hs(c,j,"/v1/token",`key=${ae}`),ft=yield c._getAdditionalHeaders();return ft["Content-Type"]="application/x-www-form-urlencoded",Tn.fetch()(xe,{method:"POST",headers:ft,body:v})}));return{accessToken:h.access_token,expiresIn:h.expires_in,refreshToken:h.refresh_token}})).apply(this,arguments)}class dl{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(o){bn(o.idToken,"internal-error"),bn(typeof o.idToken<"u","internal-error"),bn(typeof o.refreshToken<"u","internal-error");const h="expiresIn"in o&&typeof o.expiresIn<"u"?Number(o.expiresIn):function Eu(c){const o=ir(c);return bn(o,"internal-error"),bn(typeof o.exp<"u","internal-error"),bn(typeof o.iat<"u","internal-error"),Number(o.exp)-Number(o.iat)}(o.idToken);this.updateTokensAndExpiration(o.idToken,o.refreshToken,h)}getToken(o,h=!1){var v=this;return(0,i.A)(function*(){return bn(!v.accessToken||v.refreshToken,o,"user-token-expired"),h||!v.accessToken||v.isExpired?v.refreshToken?(yield v.refresh(o,v.refreshToken),v.accessToken):null:v.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(o,h){var v=this;return(0,i.A)(function*(){const{accessToken:j,refreshToken:ae,expiresIn:xe}=yield function Kt(c,o){return Or.apply(this,arguments)}(o,h);v.updateTokensAndExpiration(j,ae,Number(xe))})()}updateTokensAndExpiration(o,h,v){this.refreshToken=h||null,this.accessToken=o||null,this.expirationTime=Date.now()+1e3*v}static fromJSON(o,h){const{refreshToken:v,accessToken:j,expirationTime:ae}=h,xe=new dl;return v&&(bn("string"==typeof v,"internal-error",{appName:o}),xe.refreshToken=v),j&&(bn("string"==typeof j,"internal-error",{appName:o}),xe.accessToken=j),ae&&(bn("number"==typeof ae,"internal-error",{appName:o}),xe.expirationTime=ae),xe}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(o){this.accessToken=o.accessToken,this.refreshToken=o.refreshToken,this.expirationTime=o.expirationTime}_clone(){return Object.assign(new dl,this.toJSON())}_performRefresh(){return fs("not implemented")}}function ya(c,o){bn("string"==typeof c||typeof c>"u","internal-error",{appName:o})}class Mr{constructor(o){var{uid:h,auth:v,stsTokenManager:j}=o,ae=(0,$l.Tt)(o,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new bu(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=h,this.auth=v,this.stsTokenManager=j,this.accessToken=j.accessToken,this.displayName=ae.displayName||null,this.email=ae.email||null,this.emailVerified=ae.emailVerified||!1,this.phoneNumber=ae.phoneNumber||null,this.photoURL=ae.photoURL||null,this.isAnonymous=ae.isAnonymous||!1,this.tenantId=ae.tenantId||null,this.providerData=ae.providerData?[...ae.providerData]:[],this.metadata=new _d(ae.createdAt||void 0,ae.lastLoginAt||void 0)}getIdToken(o){var h=this;return(0,i.A)(function*(){const v=yield ma(h,h.stsTokenManager.getToken(h.auth,o));return bn(v,h.auth,"internal-error"),h.accessToken!==v&&(h.accessToken=v,yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)),v})()}getIdTokenResult(o){return function _u(c){return Oc.apply(this,arguments)}(this,o)}reload(){return function _p(c){return Ed.apply(this,arguments)}(this)}_assign(o){this!==o&&(bn(this.uid===o.uid,this.auth,"internal-error"),this.displayName=o.displayName,this.photoURL=o.photoURL,this.email=o.email,this.emailVerified=o.emailVerified,this.phoneNumber=o.phoneNumber,this.isAnonymous=o.isAnonymous,this.tenantId=o.tenantId,this.providerData=o.providerData.map(h=>Object.assign({},h)),this.metadata._copy(o.metadata),this.stsTokenManager._assign(o.stsTokenManager))}_clone(o){return new Mr(Object.assign(Object.assign({},this),{auth:o,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(o){bn(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=o,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(o){this.reloadListener?this.reloadListener(o):this.reloadUserInfo=o}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(o,h=!1){var v=this;return(0,i.A)(function*(){let j=!1;o.idToken&&o.idToken!==v.stsTokenManager.accessToken&&(v.stsTokenManager.updateFromServerResponse(o),j=!0),h&&(yield lr(v)),yield v.auth._persistUserIfCurrent(v),j&&v.auth._notifyListenersIfCurrent(v)})()}delete(){var o=this;return(0,i.A)(function*(){const h=yield o.getIdToken();return yield ma(o,function vp(c,o){return _o.apply(this,arguments)}(o.auth,{idToken:h})),o.stsTokenManager.clearRefreshToken(),o.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(o=>Object.assign({},o)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(o,h){var v,j,ae,xe,ft,kt,Zt,_n;const on=null!==(v=h.displayName)&&void 0!==v?v:void 0,Rr=null!==(j=h.email)&&void 0!==j?j:void 0,Ci=null!==(ae=h.phoneNumber)&&void 0!==ae?ae:void 0,Da=null!==(xe=h.photoURL)&&void 0!==xe?xe:void 0,pc=null!==(ft=h.tenantId)&&void 0!==ft?ft:void 0,ia=null!==(kt=h._redirectEventId)&&void 0!==kt?kt:void 0,Wf=null!==(Zt=h.createdAt)&&void 0!==Zt?Zt:void 0,uu=null!==(_n=h.lastLoginAt)&&void 0!==_n?_n:void 0,{uid:Ml,emailVerified:Ja,isAnonymous:Za,providerData:id,stsTokenManager:Ey}=h;bn(Ml&&Ey,o,"internal-error");const sd=dl.fromJSON(this.name,Ey);bn("string"==typeof Ml,o,"internal-error"),ya(on,o.name),ya(Rr,o.name),bn("boolean"==typeof Ja,o,"internal-error"),bn("boolean"==typeof Za,o,"internal-error"),ya(Ci,o.name),ya(Da,o.name),ya(pc,o.name),ya(ia,o.name),ya(Wf,o.name),ya(uu,o.name);const od=new Mr({uid:Ml,auth:o,email:Rr,emailVerified:Ja,displayName:on,isAnonymous:Za,photoURL:Da,phoneNumber:Ci,tenantId:pc,stsTokenManager:sd,createdAt:Wf,lastLoginAt:uu});return id&&Array.isArray(id)&&(od.providerData=id.map(pv=>Object.assign({},pv))),ia&&(od._redirectEventId=ia),od}static _fromIdTokenResponse(o,h,v=!1){return(0,i.A)(function*(){const j=new dl;j.updateFromServerResponse(h);const ae=new Mr({uid:h.localId,auth:o,stsTokenManager:j,isAnonymous:v});return yield lr(ae),ae})()}}const qo=(()=>{class c{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,i.A)(function*(){return!0})()}_set(h,v){var j=this;return(0,i.A)(function*(){j.storage[h]=v})()}_get(h){var v=this;return(0,i.A)(function*(){const j=v.storage[h];return void 0===j?null:j})()}_remove(h){var v=this;return(0,i.A)(function*(){delete v.storage[h]})()}_addListener(h,v){}_removeListener(h,v){}}return c.type="NONE",c})();function Wr(c,o,h){return`firebase:${c}:${o}:${h}`}class Ba{constructor(o,h,v){this.persistence=o,this.auth=h,this.userKey=v;const{config:j,name:ae}=this.auth;this.fullUserKey=Wr(this.userKey,j.apiKey,ae),this.fullPersistenceKey=Wr("persistence",j.apiKey,ae),this.boundEventHandler=h._onStorageEvent.bind(h),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(o){return this.persistence._set(this.fullUserKey,o.toJSON())}getCurrentUser(){var o=this;return(0,i.A)(function*(){const h=yield o.persistence._get(o.fullUserKey);return h?Mr._fromJSON(o.auth,h):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(o){var h=this;return(0,i.A)(function*(){if(h.persistence===o)return;const v=yield h.getCurrentUser();return yield h.removeCurrentUser(),h.persistence=o,v?h.setCurrentUser(v):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(o,h,v="authUser"){return(0,i.A)(function*(){if(!h.length)return new Ba(Lo(qo),o,v);const j=(yield Promise.all(h.map(function(){var Zt=(0,i.A)(function*(_n){if(yield _n._isAvailable())return _n});return function(_n){return Zt.apply(this,arguments)}}()))).filter(Zt=>Zt);let ae=j[0]||Lo(qo);const xe=Wr(v,o.config.apiKey,o.name);let ft=null;for(const Zt of h)try{const _n=yield Zt._get(xe);if(_n){const on=Mr._fromJSON(o,_n);Zt!==ae&&(ft=on),ae=Zt;break}}catch{}const kt=j.filter(Zt=>Zt._shouldAllowMigration);return ae._shouldAllowMigration&&kt.length?(ae=kt[0],ft&&(yield ae._set(xe,ft.toJSON())),yield Promise.all(h.map(function(){var Zt=(0,i.A)(function*(_n){if(_n!==ae)try{yield _n._remove(xe)}catch{}});return function(_n){return Zt.apply(this,arguments)}}())),new Ba(ae,o,v)):new Ba(ae,o,v)})()}}function Cu(c){const o=c.toLowerCase();if(o.includes("opera/")||o.includes("opr/")||o.includes("opios/"))return"Opera";if(function Ns(c=V()){return/iemobile/i.test(c)}(o))return"IEMobile";if(o.includes("msie")||o.includes("trident/"))return"IE";if(o.includes("edge/"))return"Edge";if(function hl(c=V()){return/firefox\//i.test(c)}(o))return"Firefox";if(o.includes("silk/"))return"Silk";if(function bd(c=V()){return/blackberry/i.test(c)}(o))return"Blackberry";if(function Eo(c=V()){return/webos/i.test(c)}(o))return"Webos";if(function Fh(c=V()){const o=c.toLowerCase();return o.includes("safari/")&&!o.includes("chrome/")&&!o.includes("crios/")&&!o.includes("android")}(o))return"Safari";if((o.includes("chrome/")||function Zn(c=V()){return/crios\//i.test(c)}(o))&&!o.includes("edge/"))return"Chrome";if(function xo(c=V()){return/android/i.test(c)}(o))return"Android";{const v=c.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===v?.length)return v[1]}return"Other"}function Iu(c,o=[]){let h;switch(c){case"Browser":h=Cu(V());break;case"Worker":h=`${Cu(V())}-${c}`;break;default:h=c}const v=o.length?o.join(","):"FirebaseCore-web";return`${h}/JsCore/${ho}/${v}`}class Cd{constructor(o){this.auth=o,this.queue=[]}pushCallback(o,h){const v=ae=>new Promise((xe,ft)=>{try{xe(o(ae))}catch(kt){ft(kt)}});v.onAbort=h,this.queue.push(v);const j=this.queue.length-1;return()=>{this.queue[j]=()=>Promise.resolve()}}runMiddleware(o){var h=this;return(0,i.A)(function*(){var v;if(h.auth.currentUser===o)return;const j=[];try{for(const ae of h.queue)yield ae(o),ae.onAbort&&j.push(ae.onAbort)}catch(ae){j.reverse();for(const xe of j)try{xe()}catch{}throw h.auth._errorFactory.create("login-blocked",{originalMessage:null===(v=ae)||void 0===v?void 0:v.message})}})()}}class Id{constructor(o,h,v){this.app=o,this.heartbeatServiceProvider=h,this.config=v,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ad(this),this.idTokenSubscription=new Ad(this),this.beforeStateQueue=new Cd(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Te,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=o.name,this.clientVersion=v.sdkClientVersion}_initializeWithPersistence(o,h){var v=this;return h&&(this._popupRedirectResolver=Lo(h)),this._initializationPromise=this.queue((0,i.A)(function*(){var j,ae;if(!v._deleted&&(v.persistenceManager=yield Ba.create(v,o),!v._deleted)){if(null!==(j=v._popupRedirectResolver)&&void 0!==j&&j._shouldInitProactively)try{yield v._popupRedirectResolver._initialize(v)}catch{}yield v.initializeCurrentUser(h),v.lastNotifiedUid=(null===(ae=v.currentUser)||void 0===ae?void 0:ae.uid)||null,!v._deleted&&(v._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var o=this;return(0,i.A)(function*(){if(o._deleted)return;const h=yield o.assertedPersistence.getCurrentUser();if(o.currentUser||h){if(o.currentUser&&h&&o.currentUser.uid===h.uid)return o._currentUser._assign(h),void(yield o.currentUser.getIdToken());yield o._updateCurrentUser(h,!0)}})()}initializeCurrentUser(o){var h=this;return(0,i.A)(function*(){var v;const j=yield h.assertedPersistence.getCurrentUser();let ae=j,xe=!1;if(o&&h.config.authDomain){yield h.getOrInitRedirectPersistenceManager();const ft=null===(v=h.redirectUser)||void 0===v?void 0:v._redirectEventId,kt=ae?._redirectEventId,Zt=yield h.tryRedirectSignIn(o);(!ft||ft===kt)&&Zt?.user&&(ae=Zt.user,xe=!0)}if(!ae)return h.directlySetCurrentUser(null);if(!ae._redirectEventId){if(xe)try{yield h.beforeStateQueue.runMiddleware(ae)}catch(ft){ae=j,h._popupRedirectResolver._overrideRedirectResult(h,()=>Promise.reject(ft))}return ae?h.reloadAndSetCurrentUserOrClear(ae):h.directlySetCurrentUser(null)}return bn(h._popupRedirectResolver,h,"argument-error"),yield h.getOrInitRedirectPersistenceManager(),h.redirectUser&&h.redirectUser._redirectEventId===ae._redirectEventId?h.directlySetCurrentUser(ae):h.reloadAndSetCurrentUserOrClear(ae)})()}tryRedirectSignIn(o){var h=this;return(0,i.A)(function*(){let v=null;try{v=yield h._popupRedirectResolver._completeRedirectFn(h,o,!0)}catch{yield h._setRedirectUser(null)}return v})()}reloadAndSetCurrentUserOrClear(o){var h=this;return(0,i.A)(function*(){var v;try{yield lr(o)}catch(j){if("auth/network-request-failed"!==(null===(v=j)||void 0===v?void 0:v.code))return h.directlySetCurrentUser(null)}return h.directlySetCurrentUser(o)})()}useDeviceLanguage(){this.languageCode=function Yo(){if(typeof navigator>"u")return null;const c=navigator;return c.languages&&c.languages[0]||c.language||null}()}_delete(){var o=this;return(0,i.A)(function*(){o._deleted=!0})()}updateCurrentUser(o){var h=this;return(0,i.A)(function*(){const v=o?An(o):null;return v&&bn(v.auth.config.apiKey===h.config.apiKey,h,"invalid-user-token"),h._updateCurrentUser(v&&v._clone(h))})()}_updateCurrentUser(o,h=!1){var v=this;return(0,i.A)(function*(){if(!v._deleted)return o&&bn(v.tenantId===o.tenantId,v,"tenant-id-mismatch"),h||(yield v.beforeStateQueue.runMiddleware(o)),v.queue((0,i.A)(function*(){yield v.directlySetCurrentUser(o),v.notifyAuthListeners()}))})()}signOut(){var o=this;return(0,i.A)(function*(){return yield o.beforeStateQueue.runMiddleware(null),(o.redirectPersistenceManager||o._popupRedirectResolver)&&(yield o._setRedirectUser(null)),o._updateCurrentUser(null,!0)})()}setPersistence(o){var h=this;return this.queue((0,i.A)(function*(){yield h.assertedPersistence.setPersistence(Lo(o))}))}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(o){this._errorFactory=new ce("auth","Firebase",o())}onAuthStateChanged(o,h,v){return this.registerStateListener(this.authStateSubscription,o,h,v)}beforeAuthStateChanged(o,h){return this.beforeStateQueue.pushCallback(o,h)}onIdTokenChanged(o,h,v){return this.registerStateListener(this.idTokenSubscription,o,h,v)}toJSON(){var o;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(o=this._currentUser)||void 0===o?void 0:o.toJSON()}}_setRedirectUser(o,h){var v=this;return(0,i.A)(function*(){const j=yield v.getOrInitRedirectPersistenceManager(h);return null===o?j.removeCurrentUser():j.setCurrentUser(o)})()}getOrInitRedirectPersistenceManager(o){var h=this;return(0,i.A)(function*(){if(!h.redirectPersistenceManager){const v=o&&Lo(o)||h._popupRedirectResolver;bn(v,h,"argument-error"),h.redirectPersistenceManager=yield Ba.create(h,[Lo(v._redirectPersistence)],"redirectUser"),h.redirectUser=yield h.redirectPersistenceManager.getCurrentUser()}return h.redirectPersistenceManager})()}_redirectUserForId(o){var h=this;return(0,i.A)(function*(){var v,j;return h._isInitialized&&(yield h.queue((0,i.A)(function*(){}))),(null===(v=h._currentUser)||void 0===v?void 0:v._redirectEventId)===o?h._currentUser:(null===(j=h.redirectUser)||void 0===j?void 0:j._redirectEventId)===o?h.redirectUser:null})()}_persistUserIfCurrent(o){var h=this;return(0,i.A)(function*(){if(o===h.currentUser)return h.queue((0,i.A)(function*(){return h.directlySetCurrentUser(o)}))})()}_notifyListenersIfCurrent(o){o===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var o,h;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const v=null!==(h=null===(o=this.currentUser)||void 0===o?void 0:o.uid)&&void 0!==h?h:null;this.lastNotifiedUid!==v&&(this.lastNotifiedUid=v,this.authStateSubscription.next(this.currentUser))}registerStateListener(o,h,v,j){if(this._deleted)return()=>{};const ae="function"==typeof h?h:h.next.bind(h),xe=this._isInitialized?Promise.resolve():this._initializationPromise;return bn(xe,this,"internal-error"),xe.then(()=>ae(this.currentUser)),"function"==typeof h?o.addObserver(h,v,j):o.addObserver(h)}directlySetCurrentUser(o){var h=this;return(0,i.A)(function*(){h.currentUser&&h.currentUser!==o&&(h._currentUser._stopProactiveRefresh(),o&&h.isProactiveRefreshEnabled&&o._startProactiveRefresh()),h.currentUser=o,o?yield h.assertedPersistence.setCurrentUser(o):yield h.assertedPersistence.removeCurrentUser()})()}queue(o){return this.operations=this.operations.then(o,o),this.operations}get assertedPersistence(){return bn(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(o){!o||this.frameworks.includes(o)||(this.frameworks.push(o),this.frameworks.sort(),this.clientVersion=Iu(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var o=this;return(0,i.A)(function*(){var h;const v={"X-Client-Version":o.clientVersion};o.app.options.appId&&(v["X-Firebase-gmpid"]=o.app.options.appId);const j=yield null===(h=o.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===h?void 0:h.getHeartbeatsHeader();return j&&(v["X-Firebase-Client"]=j),v})()}}class Ad{constructor(o){this.auth=o,this.observer=null,this.addObserver=function Ue(c,o){const h=new Dt(c,o);return h.subscribe.bind(h)}(h=>this.observer=h)}get next(){return bn(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}(function pf(c){return`__${c}${Math.floor(1e6*Math.random())}`})("rcb"),new Wl(3e4,6e4),new Wl(2e3,1e4),new Wl(3e4,6e4),new Wl(5e3,15e3);var R0="@firebase/auth";class K_{constructor(o){this.auth=o,this.internalListeners=new Map}getUid(){var o;return this.assertAuthConfigured(),(null===(o=this.auth.currentUser)||void 0===o?void 0:o.uid)||null}getToken(o){var h=this;return(0,i.A)(function*(){return h.assertAuthConfigured(),yield h.auth._initializationPromise,h.auth.currentUser?{accessToken:yield h.auth.currentUser.getIdToken(o)}:null})()}addAuthTokenListener(o){if(this.assertAuthConfigured(),this.internalListeners.has(o))return;const h=this.auth.onIdTokenChanged(v=>{var j;o((null===(j=v)||void 0===j?void 0:j.stsTokenManager.accessToken)||null)});this.internalListeners.set(o,h),this.updateProactiveRefresh()}removeAuthTokenListener(o){this.assertAuthConfigured();const h=this.internalListeners.get(o);h&&(this.internalListeners.delete(o),h(),this.updateProactiveRefresh())}assertAuthConfigured(){bn(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}!function bf(c){Ai(new Vn("auth",(o,{options:h})=>{const v=o.getProvider("app").getImmediate(),j=o.getProvider("heartbeat"),{apiKey:ae,authDomain:xe}=v.options;return((ft,kt)=>{bn(ae&&!ae.includes(":"),"invalid-api-key",{appName:ft.name}),bn(!xe?.includes(":"),"argument-error",{appName:ft.name});const Zt={apiKey:ae,authDomain:xe,clientPlatform:c,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Iu(c)},_n=new Id(ft,kt,Zt);return function md(c,o){const h=o?.persistence||[],v=(Array.isArray(h)?h:[h]).map(Lo);o?.errorMap&&c._updateErrorMap(o.errorMap),c._initializeWithPersistence(v,o?.popupRedirectResolver)}(_n,h),_n})(v,j)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((o,h,v)=>{o.getProvider("auth-internal").initialize()})),Ai(new Vn("auth-internal",o=>{const h=function zs(c){return An(c)}(o.getProvider("auth").getImmediate());return new K_(h)},"PRIVATE").setInstantiationMode("EXPLICIT")),tt(R0,"0.20.5",function L0(c){switch(c){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(c)),tt(R0,"0.20.5","esm2017")}("Browser");const qp="/firebase-messaging-sw.js",Um="/firebase-cloud-messaging-push-scope",eg="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Bm="https://fcmregistrations.googleapis.com/v1",tg="google.c.a.c_id",Vm="google.c.a.c_l",Ju="google.c.a.ts";var hh=function(c){return c.PUSH_RECEIVED="push-received",c.NOTIFICATION_CLICKED="notification-clicked",c}(hh||{});function cc(c){const o=new Uint8Array(c);return btoa(String.fromCharCode(...o)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function x0(c){const h=(c+"=".repeat((4-c.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),v=atob(h),j=new Uint8Array(v.length);for(let ae=0;ae<v.length;++ae)j[ae]=v.charCodeAt(ae);return j}const jm="fcm_token_details_db",H_=5,ng="fcm_token_object_Store";function Wm(){return Wm=(0,i.A)(function*(c){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(ae=>ae.name).includes(jm))return null;let o=null;return(yield zn(jm,H_,{upgrade:(v=(0,i.A)(function*(j,ae,xe,ft){var kt;if(ae<2||!j.objectStoreNames.contains(ng))return;const Zt=ft.objectStore(ng),_n=yield Zt.index("fcmSenderId").get(c);if(yield Zt.clear(),_n)if(2===ae){const on=_n;if(!on.auth||!on.p256dh||!on.endpoint)return;o={token:on.fcmToken,createTime:null!==(kt=on.createTime)&&void 0!==kt?kt:Date.now(),subscriptionOptions:{auth:on.auth,p256dh:on.p256dh,endpoint:on.endpoint,swScope:on.swScope,vapidKey:"string"==typeof on.vapidKey?on.vapidKey:cc(on.vapidKey)}}}else if(3===ae){const on=_n;o={token:on.fcmToken,createTime:on.createTime,subscriptionOptions:{auth:cc(on.auth),p256dh:cc(on.p256dh),endpoint:on.endpoint,swScope:on.swScope,vapidKey:cc(on.vapidKey)}}}else if(4===ae){const on=_n;o={token:on.fcmToken,createTime:on.createTime,subscriptionOptions:{auth:cc(on.auth),p256dh:cc(on.p256dh),endpoint:on.endpoint,swScope:on.swScope,vapidKey:cc(on.vapidKey)}}}}),function(ae,xe,ft,kt){return v.apply(this,arguments)})})).close(),yield Me(jm),yield Me("fcm_vapid_details_db"),yield Me("undefined"),function Cf(c){if(!c||!c.subscriptionOptions)return!1;const{subscriptionOptions:o}=c;return"number"==typeof c.createTime&&c.createTime>0&&"string"==typeof c.token&&c.token.length>0&&"string"==typeof o.auth&&o.auth.length>0&&"string"==typeof o.p256dh&&o.p256dh.length>0&&"string"==typeof o.endpoint&&o.endpoint.length>0&&"string"==typeof o.swScope&&o.swScope.length>0&&"string"==typeof o.vapidKey&&o.vapidKey.length>0}(o)?o:null;var v}),Wm.apply(this,arguments)}const rg="firebase-messaging-database",ig=1,ou="firebase-messaging-store";let uc=null;function fh(){return uc||(uc=zn(rg,ig,{upgrade:(c,o)=>{0===o&&c.createObjectStore(ou)}})),uc}function sg(c){return ph.apply(this,arguments)}function ph(){return ph=(0,i.A)(function*(c){const o=ag(c),v=yield(yield fh()).transaction(ou).objectStore(ou).get(o);if(v)return v;{const j=yield function $m(c){return Wm.apply(this,arguments)}(c.appConfig.senderId);if(j)return yield Zu(c,j),j}}),ph.apply(this,arguments)}function Zu(c,o){return og.apply(this,arguments)}function og(){return(og=(0,i.A)(function*(c,o){const h=ag(c),j=(yield fh()).transaction(ou,"readwrite");return yield j.objectStore(ou).put(o,h),yield j.done,o})).apply(this,arguments)}function If(){return(If=(0,i.A)(function*(c){const o=ag(c),v=(yield fh()).transaction(ou,"readwrite");yield v.objectStore(ou).delete(o),yield v.done})).apply(this,arguments)}function ag({appConfig:c}){return c.appId}const ks=new ce("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function Gm(c,o){return au.apply(this,arguments)}function au(){return(au=(0,i.A)(function*(c,o){var h;const v=yield Df(c),j=cg(o),ae={method:"POST",headers:v,body:JSON.stringify(j)};let xe;try{xe=yield(yield fetch(mh(c.appConfig),ae)).json()}catch(ft){throw ks.create("token-subscribe-failed",{errorInfo:null===(h=ft)||void 0===h?void 0:h.toString()})}if(xe.error)throw ks.create("token-subscribe-failed",{errorInfo:xe.error.message});if(!xe.token)throw ks.create("token-subscribe-no-token");return xe.token})).apply(this,arguments)}function gh(){return(gh=(0,i.A)(function*(c,o){var h;const v=yield Df(c),j=cg(o.subscriptionOptions),ae={method:"PATCH",headers:v,body:JSON.stringify(j)};let xe;try{xe=yield(yield fetch(`${mh(c.appConfig)}/${o.token}`,ae)).json()}catch(ft){throw ks.create("token-update-failed",{errorInfo:null===(h=ft)||void 0===h?void 0:h.toString()})}if(xe.error)throw ks.create("token-update-failed",{errorInfo:xe.error.message});if(!xe.token)throw ks.create("token-update-no-token");return xe.token})).apply(this,arguments)}function Km(c,o){return lg.apply(this,arguments)}function lg(){return(lg=(0,i.A)(function*(c,o){var h;const j={method:"DELETE",headers:yield Df(c)};try{const xe=yield(yield fetch(`${mh(c.appConfig)}/${o}`,j)).json();if(xe.error)throw ks.create("token-unsubscribe-failed",{errorInfo:xe.error.message})}catch(ae){throw ks.create("token-unsubscribe-failed",{errorInfo:null===(h=ae)||void 0===h?void 0:h.toString()})}})).apply(this,arguments)}function mh({projectId:c}){return`${Bm}/projects/${c}/registrations`}function Df(c){return Ol.apply(this,arguments)}function Ol(){return(Ol=(0,i.A)(function*({appConfig:c,installations:o}){const h=yield o.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":c.apiKey,"x-goog-firebase-installations-auth":`FIS ${h}`})})).apply(this,arguments)}function cg({p256dh:c,auth:o,endpoint:h,vapidKey:v}){const j={web:{endpoint:h,auth:o,p256dh:c}};return v!==eg&&(j.web.applicationPubKey=v),j}const Hm=6048e5;function zm(){return zm=(0,i.A)(function*(c){const o=yield function Ym(c,o){return qu.apply(this,arguments)}(c.swRegistration,c.vapidKey),h={vapidKey:c.vapidKey,swScope:c.swRegistration.scope,endpoint:o.endpoint,auth:cc(o.getKey("auth")),p256dh:cc(o.getKey("p256dh"))},v=yield sg(c.firebaseDependencies);if(v){if(function _h(c,o){return o.vapidKey===c.vapidKey&&o.endpoint===c.endpoint&&o.auth===c.auth&&o.p256dh===c.p256dh}(v.subscriptionOptions,h))return Date.now()>=v.createTime+Hm?function Qm(c,o){return Tf.apply(this,arguments)}(c,{token:v.token,createTime:Date.now(),subscriptionOptions:h}):v.token;try{yield Km(c.firebaseDependencies,v.token)}catch(j){console.warn(j)}return dg(c.firebaseDependencies,h)}return dg(c.firebaseDependencies,h)}),zm.apply(this,arguments)}function ug(){return ug=(0,i.A)(function*(c){const o=yield sg(c.firebaseDependencies);o&&(yield Km(c.firebaseDependencies,o.token),yield function k0(c){return If.apply(this,arguments)}(c.firebaseDependencies));const h=yield c.swRegistration.pushManager.getSubscription();return!h||h.unsubscribe()}),ug.apply(this,arguments)}function Tf(){return Tf=(0,i.A)(function*(c,o){try{const h=yield function Af(c,o){return gh.apply(this,arguments)}(c.firebaseDependencies,o),v=Object.assign(Object.assign({},o),{token:h,createTime:Date.now()});return yield Zu(c.firebaseDependencies,v),h}catch(h){throw yield function yh(c){return ug.apply(this,arguments)}(c),h}}),Tf.apply(this,arguments)}function dg(c,o){return vh.apply(this,arguments)}function vh(){return(vh=(0,i.A)(function*(c,o){const v={token:yield Gm(c,o),createTime:Date.now(),subscriptionOptions:o};return yield Zu(c,v),v.token})).apply(this,arguments)}function qu(){return(qu=(0,i.A)(function*(c,o){return(yield c.pushManager.getSubscription())||c.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:x0(o)})})).apply(this,arguments)}function hg(c){const o={from:c.from,collapseKey:c.collapse_key,messageId:c.fcmMessageId};return function fg(c,o){if(!o.notification)return;c.notification={};const h=o.notification.title;h&&(c.notification.title=h);const v=o.notification.body;v&&(c.notification.body=v);const j=o.notification.image;j&&(c.notification.image=j)}(o,c),function Eh(c,o){o.data&&(c.data=o.data)}(o,c),function Xm(c,o){var h,v,j,ae,xe;if(!(o.fcmOptions||null!==(h=o.notification)&&void 0!==h&&h.click_action))return;c.fcmOptions={};const ft=null!==(j=null===(v=o.fcmOptions)||void 0===v?void 0:v.link)&&void 0!==j?j:null===(ae=o.notification)||void 0===ae?void 0:ae.click_action;ft&&(c.fcmOptions.link=ft);const kt=null===(xe=o.fcmOptions)||void 0===xe?void 0:xe.analytics_label;kt&&(c.fcmOptions.analyticsLabel=kt)}(o,c),o}function Sh(c,o){const h=[];for(let v=0;v<c.length;v++)h.push(c.charAt(v)),v<o.length&&h.push(o.charAt(v));return h.join("")}function Of(c){return ks.create("missing-app-config-values",{valueName:c})}Sh("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Sh("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class V0{constructor(o,h,v){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const j=function B0(c){if(!c||!c.options)throw Of("App Configuration Object");if(!c.name)throw Of("App Name");const o=["projectId","apiKey","appId","messagingSenderId"],{options:h}=c;for(const v of o)if(!h[v])throw Of(v);return{appName:c.name,projectId:h.projectId,apiKey:h.apiKey,appId:h.appId,senderId:h.messagingSenderId}}(o);this.firebaseDependencies={app:o,appConfig:j,installations:h,analyticsProvider:v}}_delete(){return Promise.resolve()}}function gg(){return(gg=(0,i.A)(function*(c){var o;try{c.swRegistration=yield navigator.serviceWorker.register(qp,{scope:Um}),c.swRegistration.update().catch(()=>{})}catch(h){throw ks.create("failed-service-worker-registration",{browserErrorMessage:null===(o=h)||void 0===o?void 0:o.message})}})).apply(this,arguments)}function wf(){return(wf=(0,i.A)(function*(c,o){if(!o&&!c.swRegistration&&(yield function Jm(c){return gg.apply(this,arguments)}(c)),o||!c.swRegistration){if(!(o instanceof ServiceWorkerRegistration))throw ks.create("invalid-sw-registration");c.swRegistration=o}})).apply(this,arguments)}function Pf(){return(Pf=(0,i.A)(function*(c,o){o?c.vapidKey=o:c.vapidKey||(c.vapidKey=eg)})).apply(this,arguments)}function dc(){return dc=(0,i.A)(function*(c,o){if(!navigator)throw ks.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw ks.create("permission-blocked");return yield function Ir(c,o){return Pf.apply(this,arguments)}(c,o?.vapidKey),yield function Zm(c,o){return wf.apply(this,arguments)}(c,o?.serviceWorkerRegistration),function U0(c){return zm.apply(this,arguments)}(c)}),dc.apply(this,arguments)}function Mf(){return(Mf=(0,i.A)(function*(c,o,h){const v=function j0(c){switch(c){case hh.NOTIFICATION_CLICKED:return"notification_open";case hh.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(o);(yield c.firebaseDependencies.analyticsProvider.get()).logEvent(v,{message_id:h[tg],message_name:h[Vm],message_time:h[Ju],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function hc(){return hc=(0,i.A)(function*(c,o){const h=o.data;if(!h.isFirebaseMessaging)return;c.onMessageHandler&&h.messageType===hh.PUSH_RECEIVED&&("function"==typeof c.onMessageHandler?c.onMessageHandler(hg(h)):c.onMessageHandler.next(hg(h)));const v=h.data;(function pg(c){return"object"==typeof c&&!!c&&tg in c})(v)&&"1"===v["google.c.a.e"]&&(yield function qm(c,o,h){return Mf.apply(this,arguments)}(c,h.messageType,v))}),hc.apply(this,arguments)}const Nf="@firebase/messaging",ey=c=>{const o=new V0(c.getProvider("app").getImmediate(),c.getProvider("installations-internal").getImmediate(),c.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",h=>function Rf(c,o){return hc.apply(this,arguments)}(o,h)),o},yg=c=>{const o=c.getProvider("messaging").getImmediate();return{getToken:v=>function mg(c,o){return dc.apply(this,arguments)}(o,v)}};!function vg(){Ai(new Vn("messaging",ey,"PUBLIC")),Ai(new Vn("messaging-internal",yg,"PRIVATE")),tt(Nf,"0.9.16"),tt(Nf,"0.9.16","esm2017")}();const xf="analytics",ty="firebase_id",ny="origin",G0=6e4,K0="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",ao="https://www.googletagmanager.com/gtag/js",Fs=new Ar("@firebase/analytics");function ry(c){return Promise.all(c.map(o=>o.catch(h=>h)))}function Ig(){return(Ig=(0,i.A)(function*(c,o,h,v,j,ae){const xe=v[j];try{if(xe)yield o[xe];else{const kt=(yield ry(h)).find(Zt=>Zt.measurementId===j);kt&&(yield o[kt.appId])}}catch(ft){Fs.error(ft)}c("config",j,ae)})).apply(this,arguments)}function Ag(){return(Ag=(0,i.A)(function*(c,o,h,v,j){try{let ae=[];if(j&&j.send_to){let xe=j.send_to;Array.isArray(xe)||(xe=[xe]);const ft=yield ry(h);for(const kt of xe){const Zt=ft.find(on=>on.measurementId===kt),_n=Zt&&o[Zt.appId];if(!_n){ae=[];break}ae.push(_n)}}0===ae.length&&(ae=Object.values(o)),yield Promise.all(ae),c("event",v,j||{})}catch(ae){Fs.error(ae)}})).apply(this,arguments)}const Vo=new ce("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.'}),Y0=30,oy=new class J0{constructor(o={},h=1e3){this.throttleMetadata=o,this.intervalMillis=h}getThrottleMetadata(o){return this.throttleMetadata[o]}setThrottleMetadata(o,h){this.throttleMetadata[o]=h}deleteThrottleMetadata(o){delete this.throttleMetadata[o]}};function Xa(c){return new Headers({Accept:"application/json","x-goog-api-key":c})}function Og(){return(Og=(0,i.A)(function*(c){var o;const{appId:h,apiKey:v}=c,j={method:"GET",headers:Xa(v)},ae=K0.replace("{app-id}",h),xe=yield fetch(ae,j);if(200!==xe.status&&304!==xe.status){let ft="";try{const kt=yield xe.json();null!==(o=kt.error)&&void 0!==o&&o.message&&(ft=kt.error.message)}catch{}throw Vo.create("config-fetch-failed",{httpStatus:xe.status,responseMessage:ft})}return xe.json()})).apply(this,arguments)}function kf(){return(kf=(0,i.A)(function*(c,o=oy,h){const{appId:v,apiKey:j,measurementId:ae}=c.options;if(!v)throw Vo.create("no-app-id");if(!j){if(ae)return{measurementId:ae,appId:v};throw Vo.create("no-api-key")}const xe=o.getThrottleMetadata(v)||{backoffCount:0,throttleEndTimeMillis:Date.now()},ft=new ay;return setTimeout((0,i.A)(function*(){ft.abort()}),void 0!==h?h:G0),wg({appId:v,apiKey:j,measurementId:ae},xe,ft,o)})).apply(this,arguments)}function wg(c,o,h){return td.apply(this,arguments)}function td(){return td=(0,i.A)(function*(c,{throttleEndTimeMillis:o,backoffCount:h},v,j=oy){var ae,xe;const{appId:ft,measurementId:kt}=c;try{yield function Pg(c,o){return new Promise((h,v)=>{const j=Math.max(o-Date.now(),0),ae=setTimeout(h,j);c.addEventListener(()=>{clearTimeout(ae),v(Vo.create("fetch-throttle",{throttleEndTimeMillis:o}))})})}(v,o)}catch(Zt){if(kt)return Fs.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${kt} provided in the "measurementId" field in the local Firebase config. [${null===(ae=Zt)||void 0===ae?void 0:ae.message}]`),{appId:ft,measurementId:kt};throw Zt}try{const Zt=yield function Tg(c){return Og.apply(this,arguments)}(c);return j.deleteThrottleMetadata(ft),Zt}catch(Zt){const _n=Zt;if(!function J_(c){if(!(c instanceof re&&c.customData))return!1;const o=Number(c.customData.httpStatus);return 429===o||500===o||503===o||504===o}(_n)){if(j.deleteThrottleMetadata(ft),kt)return Fs.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${kt} provided in the "measurementId" field in the local Firebase config. [${_n?.message}]`),{appId:ft,measurementId:kt};throw Zt}const on=503===Number(null===(xe=_n?.customData)||void 0===xe?void 0:xe.httpStatus)?cn(h,j.intervalMillis,Y0):cn(h,j.intervalMillis),Rr={throttleEndTimeMillis:Date.now()+on,backoffCount:h+1};return j.setThrottleMetadata(ft,Rr),Fs.debug(`Calling attemptFetch again in ${on} millis`),wg(c,Rr,v,j)}}),td.apply(this,arguments)}class ay{constructor(){this.listeners=[]}addEventListener(o){this.listeners.push(o)}abort(){this.listeners.forEach(o=>o())}}let Ff,fc;function nd(){return(nd=(0,i.A)(function*(c,o,h,v,j){if(j&&j.global)c("event",h,v);else{const ae=yield o;c("event",h,Object.assign(Object.assign({},v),{send_to:ae}))}})).apply(this,arguments)}function Aa(){return(Aa=(0,i.A)(function*(c,o,h,v){if(v&&v.global)return c("set",{screen_name:h}),Promise.resolve();c("config",yield o,{update:!0,screen_name:h})})).apply(this,arguments)}function Lg(){return(Lg=(0,i.A)(function*(c,o,h,v){if(v&&v.global){const j={};for(const ae of Object.keys(h))j[`user_properties.${ae}`]=h[ae];return c("set",j),Promise.resolve()}c("config",yield o,{update:!0,user_properties:h})})).apply(this,arguments)}function Vf(){return(Vf=(0,i.A)(function*(){var c;if(!se())return Fs.warn(Vo.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield Ge()}catch(o){return Fs.warn(Vo.create("indexeddb-unavailable",{errorInfo:null===(c=o)||void 0===c?void 0:c.toString()}).message),!1}return!0})).apply(this,arguments)}function xg(){return xg=(0,i.A)(function*(c,o,h,v,j,ae,xe){var ft;const kt=function Z0(c){return kf.apply(this,arguments)}(c);kt.then(Ci=>{h[Ci.measurementId]=Ci.appId,c.options.measurementId&&Ci.measurementId!==c.options.measurementId&&Fs.warn(`The measurement ID in the local Firebase config (${c.options.measurementId}) does not match the measurement ID fetched from the server (${Ci.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(Ci=>Fs.error(Ci)),o.push(kt);const Zt=function Ch(){return Vf.apply(this,arguments)}().then(Ci=>{if(Ci)return v.getId()}),[_n,on]=yield Promise.all([kt,Zt]);(function Q0(){const c=window.document.getElementsByTagName("script");for(const o of Object.values(c))if(o.src&&o.src.includes(ao))return o;return null})()||function X_(c,o){const h=document.createElement("script");h.src=`${ao}?l=${c}&id=${o}`,h.async=!0,document.head.appendChild(h)}(ae,_n.measurementId),fc&&(j("consent","default",fc),function rd(c){fc=c}(void 0)),j("js",new Date);const Rr=null!==(ft=xe?.config)&&void 0!==ft?ft:{};return Rr[ny]="firebase",Rr.update=!0,null!=on&&(Rr[ty]=on),j("config",_n.measurementId,Rr),Ff&&(j("set",Ff),function Bf(c){Ff=c}(void 0)),_n.measurementId}),xg.apply(this,arguments)}class ev{constructor(o){this.app=o}_delete(){return delete wl[this.app.options.appId],Promise.resolve()}}let wl={},uy=[];const kg={};let tv,Pl,lu="dataLayer",Fg=!1;function iv(c,o,h){!function rv(){const c=[];if(K()&&c.push("This is a browser extension environment."),B()||c.push("Cookies are not available."),c.length>0){const o=c.map((v,j)=>`(${j+1}) ${v}`).join(" "),h=Vo.create("invalid-analytics-context",{errorInfo:o});Fs.warn(h.message)}}();const v=c.options.appId;if(!v)throw Vo.create("no-app-id");if(!c.options.apiKey){if(!c.options.measurementId)throw Vo.create("no-api-key");Fs.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 ${c.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=wl[v])throw Vo.create("already-exists",{id:v});if(!Fg){!function Cg(c){let o=[];Array.isArray(window[c])?o=window[c]:window[c]=o}(lu);const{wrappedGtag:ae,gtagCore:xe}=function z0(c,o,h,v,j){let ae=function(...xe){window[v].push(arguments)};return window[j]&&"function"==typeof window[j]&&(ae=window[j]),window[j]=function sy(c,o,h,v){function ae(){return ae=(0,i.A)(function*(xe,ft,kt){try{"event"===xe?yield function H0(c,o,h,v,j){return Ag.apply(this,arguments)}(c,o,h,ft,kt):"config"===xe?yield function iy(c,o,h,v,j,ae){return Ig.apply(this,arguments)}(c,o,h,v,ft,kt):"consent"===xe?c("consent","update",kt):c("set",ft)}catch(Zt){Fs.error(Zt)}}),ae.apply(this,arguments)}return function j(xe,ft,kt){return ae.apply(this,arguments)}}(ae,c,o,h),{gtagCore:ae,wrappedGtag:window[j]}}(wl,uy,kg,lu,"gtag");Pl=ae,tv=xe,Fg=!0}return wl[v]=function cy(c,o,h,v,j,ae,xe){return xg.apply(this,arguments)}(c,uy,kg,o,tv,lu,h),new ev(c)}function cu(){return(cu=(0,i.A)(function*(){if(K()||!B()||!se())return!1;try{return yield Ge()}catch{return!1}})).apply(this,arguments)}function Ah(c,o,h,v){c=An(c),function ly(c,o,h,v,j){return nd.apply(this,arguments)}(Pl,wl[c.app.options.appId],o,h,v).catch(j=>Fs.error(j))}const gy="@firebase/analytics";!function eE(){Ai(new Vn(xf,(o,{options:h})=>iv(o.getProvider("app").getImmediate(),o.getProvider("installations-internal").getImmediate(),h),"PUBLIC")),Ai(new Vn("analytics-internal",function c(o){try{const h=o.getProvider(xf).getImmediate();return{logEvent:(v,j,ae)=>Ah(h,v,j,ae)}}catch(h){throw Vo.create("interop-component-reg-failed",{reason:h})}},"PRIVATE")),tt(gy,"0.8.0"),tt(gy,"0.8.0","esm2017")}();const av=c=>function gd(c){return La.apply(this,arguments)}(c),lv=(c,o)=>function Ro(c,o){return Ma(An(c),o).asString()}(c,o),tE=(c,o)=>function fa(c,o){return Ma(An(c),o).asBoolean()}(c,o),cv=c=>nr(c),nE=c=>function Rs(c=Ve()){return Ss(c=An(c),sn).getImmediate()}(c),uv=()=>function pu(){return gu.apply(this,arguments)}(),Dh=c=>function hy(c=Ve()){const o=Ss(c=An(c),xf);return o.isInitialized()?o.getImmediate():function Ug(c,o={}){const h=Ss(c,xf);if(h.isInitialized()){const j=h.getImmediate();if(Qt(o,h.getOptions()))return j;throw Vo.create("already-initialized")}return h.initialize({options:o})}(c)}(c),vy=()=>function fy(){return cu.apply(this,arguments)}(),hv=(c,o,h)=>function sv(c,o,h){c=An(c),function Ng(c,o,h,v){return Lg.apply(this,arguments)}(Pl,wl[c.app.options.appId],o,h).catch(v=>Fs.error(v))}(c,o,h),Th=(c,o,h)=>function Ih(c,o,h){c=An(c),function Mg(c,o,h,v){return Aa.apply(this,arguments)}(Pl,wl[c.app.options.appId],o,h).catch(v=>Fs.error(v))}(c,o,h),_y=(c,o,h,v)=>Ah(c,o,h,v),fv=(c,o)=>function si(c,o={}){"object"!=typeof o&&(o={name:o});const h=Object.assign({name:Os,automaticDataCollectionEnabled:!1},o),v=h.name;if("string"!=typeof v||!v)throw us.create("bad-app-name",{appName:String(v)});const j=ns.get(v);if(j){if(Qt(c,j.options)&&Qt(h,j.config))return j;throw us.create("duplicate-app",{appName:v})}const ae=new Ct(v);for(const ft of Jr.values())ae.addComponent(ft);const xe=new rs(c,h,ae);return ns.set(v,xe),xe}(c,o)},60134:(it,ge,s)=>{"use strict";s.d(ge,{_:()=>i});const i=E=>{let A={name:"",code:"",message:""};return E&&("string"==typeof E?A={name:E,code:E,message:""}:E?.error&&"string"==typeof E.error?A={name:E.error,code:E.error,message:`${E.message||""}`}:E?.error&&E.error.length>0?A={name:`${E.error[0].error||""}`,code:`${E.error[0].error||""}`,message:`${E.error[0].message||""}`}:E?.error?.error&&"string"==typeof E.error.error?A={name:E.error.error,code:E.error.error,message:`${E.error.message||""}`}:E?.error?.message&&"string"==typeof E.error.message?A={name:`${E.error.message||""}`,code:`${E.error.message||""}`,message:`${E.error.message||""}`}:E.code?A={name:E.code,code:E.code,message:`${E.message||""}`}:E.name?A={name:E.name,code:E.name,message:`${E.message||""}`}:E?.message&&(A={name:`${E.message||""}`,code:`${E.message||""}`,message:`${E.message||""}`})),A}},9589:(it,ge,s)=>{"use strict";s.d(ge,{d4:()=>i,uC:()=>y});var i=function(A){return A.ALREADY_EXISTS="ALREADY_EXISTS",A.VALID="VALID",A.NOT_VALID="NOT_VALID",A}(i||{});class y{constructor(){this.email=i.VALID}static fromJson(M){let D=null;return M&&(D=new y,D.email=(A=((A=M.email)||"").toUpperCase())===i.ALREADY_EXISTS?i.ALREADY_EXISTS:A===i.VALID?i.VALID:i.NOT_VALID),D;var A}}},6595:(it,ge,s)=>{"use strict";s.d(ge,{Y:()=>D});class E{static fromBackend(f,S){let O=S||"#FAFAFA";return f&&(O=`#${(16777215&f).toString(16)}`),O}}var y=s(28505);class D{constructor(){this.raw=null,this.path="",this.color=0,this.width=0,this.height=0,this.avatarId=1+Math.ceil(5*Math.random()),this.raw=null,this.preview="",this.rotation=0,this.serverId=D.generateServerID(`${this.path||""}`)}static placeholder(){const f=new D;return f.path="assets/error-image.svg",f.preview="assets/error-image.svg",f.color=0,f.width=200,f.height=200,f.avatarId=1+Math.ceil(5*Math.random()),f.rotation=0,f.serverId=D.generateServerID(`${f.path||""}`),f}get url(){return"-"===this.path?`${this.preview}`:-1!==`${this.path}`.indexOf("/avatar/00000000000000000000000000000000")?`assets/images/avatar.${this.avatarId}.png`:(`${this.path}`||"").replace("http://","https://")||`${this.preview||""}`}static generateServerID(f){if(-1!==`${f||""}`.indexOf("googleusercontent.com")){const O=/\/([\dA-z-]+)=/.exec(`${f||""}`);if(O&&O.length>=2)return O[1]}return(0,y.Os)()}get hexColor(){return E.fromBackend(this.color,"#fafafa")}static fromJson(f){if(f){const S=new D;return S.path=f.path,S.preview=f.preview,S.color=f.color,S.width=f.width,S.height=f.height,S.avatarId=f.avatarId,S.rotation=f.rotation||0,S.serverId=f.serverId||D.generateServerID(`${S.path||""}`),S}return null}static fromJsonArray(f){const S=new Array(0);if(f?.length)for(const O of f){const C=D.fromJson(O);C&&S.push(C)}return S}}},92864:(it,ge,s)=>{"use strict";s.d(ge,{H:()=>i});class i{constructor(){this.amount=0,this.currency="USD"}static fromJson(y){let A=null;return y&&y.amount>=0&&(A=new i,A.amount=y.amount,A.currency=y.currency),A}static fromJsonArray(y){const A=new Array(0);if(y&&y.length>0)for(const M of y){const D=i.fromJson(M);D&&A.push(D)}return A}}},19076:(it,ge,s)=>{"use strict";s.d(ge,{Tk:()=>C,$B:()=>S,xy:()=>O,Fv:()=>_});var i=s(6595),E=s(47878);class A{constructor(){this.country="US",this.address="",this.city="",this.radius=1e3,this.longitude=0,this.latitude=0,this.zipCode="",this.shortAddress=""}static fromJson(w){if(w){const R=new A;return R.country=`${w.country||"US"}`.toUpperCase(),R.address=w.address||"",R.city=w.city||w.locality||"",R.radius=w.radius||0,R.latitude=w.latitude||0,R.longitude=w.longitude||0,R.zipCode=w.zipcode||w.zipCode||"",R.shortAddress=E.x.buildShortAddress(R.city,R.country,R.zipCode)||w.short_address||w.shortAddress||w.address||"",R}return null}static fromJsonArray(w){const R=new Array(0);if(w&&w.length>0)for(const V of w){const x=A.fromJson(V);x&&R.push(x)}return R}}var M=s(34678),D=s(19152);const S=300,O=3,C=30;class _{constructor(){this.avatarId=_.getAvatarId(),this.id="",this.email="",this.firstName="",this.description="",this.timezone=0,this.gender="",this.phone="",this.facebook={friends:0},this.picture=new i.Y,this.picture.avatarId=this.avatarId,this.locale="",this.lastSeen=new Date,this.createdAt=new Date,this.updatedAt=new Date,this.smsVerifiedAt=null,this.location=new A,this.oauth={publicId:"",secret:"",token:null},this.rating=0,this.cachedOn=new Date(0),this.opt_in=!1}static fromJson(w){let R=null;return w&&(R=new _,R.avatarId=w.avatarId||_.getAvatarId(w.id),R.id=w.id||"",R.email=w.email||"",R.firstName=w.first_name||w.firstname||w.firstName||w.username||"",R.description=w.description||"",R.timezone=w.timezone||0,R.gender=w.gender||"",R.phone=w.phone||w.contact||"",R.rating=w.rating||0,R.facebook=w.facebook||{friends:0},R.locale=w.locale||"",R.location=A.fromJson(w.location)||new A,R.smsVerifiedAt=D.J.parseApiDate("sms_verified_at","smsVerifiedAt",w)||null,R.lastSeen=D.J.parseApiDate("last_seen","lastSeen",w)||new Date(0),R.createdAt=D.J.parseApiDate("created_at","createdAt",w)||new Date(0),R.updatedAt=D.J.parseApiDate("updated_at","updatedAt",w)||new Date(0),R.cachedOn=D.J.parseApiDate("cached_on","cachedOn",w)||new Date,R.picture=w.picture?i.Y.fromJson(w.picture)||new i.Y:w.image&&i.Y.fromJson(w.image)||new i.Y,R.picture.avatarId=R.avatarId,R.opt_in=w.opt_in||w.optIn||!1,w.oauth_client?R.oauth={publicId:w.oauth_client.public_id||"",secret:w.oauth_client.secret||"",token:w.oauth_client.token||null}:w.oauth&&(R.oauth={publicId:w.oauth.publicId||"",secret:w.oauth.secret||"",token:w.oauth.token||null})),R}static fromJsonArray(w){const R=new Array(0);if(w&&w.length>0)for(const V of w){const x=_.fromJson(V);x&&R.push(x)}return R}static getAvatarId(w){const R=1+Math.ceil(5*Math.random());if(w){const V=M.u.window;if(V)try{const x=V.localStorage.getItem("user_avatar_cache"),z=JSON.parse(x||"{}");if(z[w])return z[w];z[w]=R;try{V.localStorage.setItem("user_avatar_cache",JSON.stringify(z))}catch{}}catch{}}return R}}},15436:(it,ge,s)=>{"use strict";s.d(ge,{u:()=>K});var i=s(24738),E=s(7319),y=s(65957),A=s(55685),M=s(86495),D=s(43504),b=s(15214);let K=(()=>{class ne{constructor(Y,ve,Ie){this.akitaConfigurationQuery=Y,this.akitaScreenQuery=ve,this.akitaRouterQuery=Ie,this.failedImages={},this.isBrowser=this.akitaRouterQuery.isBrowser,this.failedImages=this.fetchLocalStorage(),this.webP=this.akitaConfigurationQuery.webPFeatures||{lossy:!1,lossless:!1,alpha:!1,animation:!1}}loadImage(Y,ve){this.webP=this.akitaConfigurationQuery.webPFeatures||{lossy:!1,lossless:!1,alpha:!1,animation:!1},Y=this.optimizeAppEngineImage(Y,ve);const Ie=i.VV.hashStr(Y,!1);return new Promise((He,se)=>{try{if(this.imageTriedToLoad(Ie))this.imageFailedToLoad(Ie)?se(this.failedImages[Ie]):He(Y);else{const Ge=new Image;Ge.addEventListener("load",()=>{this.failedImages[Ie]="",this.updateLocalStorage(),He(Y)}),Ge.addEventListener("error",B=>{E.gU.addBreadcrumb({category:"network",message:`Error loading image "${Y}" with error "${B}"`,level:"info",type:"http"}),this.failedImages[Ie]="ERROR_LOADING",this.updateLocalStorage(),se(B)}),Ge.src=Y}}catch(Ge){this.failedImages[Ie]=Ge,this.updateLocalStorage(),se(this.failedImages[Ie])}})}imageTriedToLoad(Y){return!!Object.prototype.hasOwnProperty.call(this.failedImages,`${Y}`)}imageFailedToLoad(Y){return!(!Object.prototype.hasOwnProperty.call(this.failedImages,`${Y}`)||""===this.failedImages[Y])}optimizeAppEngineImage(Y,ve){this.webP=this.akitaConfigurationQuery.webPFeatures||{lossy:!1,lossless:!1,alpha:!1,animation:!1};let Ie=512;if(ve)Ie=ve;else{const se=this.akitaScreenQuery.size;se===y.NU.XXS||se===y.NU.MobileS||se===y.NU.XS||se===y.NU.MobileL||se===y.NU.MobileXL?Ie=256:(se===y.NU.SM||se===y.NU.MD||se===y.NU.LG||se===y.NU.XL||se===y.NU.XXL)&&(Ie=512)}let He=`${Y}`;return He=He.replace(/(=\S+\?)/g,this.webP.lossy?"=s{size}-rw-w{size}-h{size}-e365-l80?".replace(/{size}/g,`${Ie}`):"=s{size}-rj-w{size}-h{size}-e365-l80?".replace(/{size}/g,`${Ie}`)),He}reportBadImage(Y,ve){if(Y&&ve){E.gU.addBreadcrumb({category:"network",message:`Error loading image "${Y}" with error "${ve}"`,level:"info",type:"http"});const Ie=i.VV.hashStr(Y,!1);this.failedImages[Ie]=ve,this.updateLocalStorage()}}updateLocalStorage(){if(this.isBrowser)try{window.localStorage.setItem("broken_images",JSON.stringify(this.failedImages))}catch{}}fetchLocalStorage(){if(this.isBrowser)try{return JSON.parse(window.localStorage.getItem("broken_images")||"{}")||{}}catch{}return{}}static{this.\u0275fac=function(ve){return new(ve||ne)(A.KVO(M.R),A.KVO(D.L),A.KVO(b.O))}}static{this.\u0275prov=A.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},39879:(it,ge,s)=>{"use strict";s.d(ge,{K:()=>f,R:()=>O});var i=s(55685),E=s(31761),y=s(78766),A=s(11364),M=s(64926),D=s(89497),b=s(23922);const f={qa:"www.popsy.app",om:"www.popsy.app",bh:"www.popsy.app",ae:"popsy.ae",sa:"popsy.sa",kw:"popsy.com.kw"},S=["localhost:4200","sa.popsy.app","ae.popsy.app","kw.popsy.app","www.popsy.app"];let O=(()=>{class C{constructor(U,w,R,V,x){this.document=U,this.title=w,this.meta=R,this.translateService=V,this.domSanitizer=x}setTitle(U,w){let R=U;w&&(R=this.translateService.translate(U)||U),this.title.setTitle(R),this.setTag({name:"og:title",content:R})}setCanonical(U){const w=this.domSanitizer.sanitize(i.WPN.URL,(0,y.Nm)(this.document.URL))?.toString(),R=this.document.head.querySelector("head > link[rel=canonical]");if(R)R.setAttribute("href",U||w||this.document.URL);else{const V=this.document.createElement("link");V.setAttribute("rel","canonical"),V.setAttribute("href",U||this.document.URL),this.document?.head?.appendChild(V)}}setAlternateHreflangsTags(U){const w=M.F;if(this.clearAlternateTags(),U)w.forEach(R=>{const V=(0,A.P9)(U);for(const[x,z]of Object.entries(f))this.addTag({name:"link",rel:"alternate",hreflang:`${R}-${x}`,href:`https://${z}/${R}-${x}/p/${V}`})});else{const R=new URL(`${this.document.URL||""}`),V=R.pathname.replace(/^\/[^/]+/,"");w.forEach(x=>{for(const[z,X]of Object.entries(f))this.addTag({name:"link",rel:"alternate",hreflang:`${x}-${z}`,href:`https://${X}/${x}-${z}${V}${R.search}`})})}}checkRobotsNoIndexTag(){const U=(0,y.c6)();S.some(w=>U.includes(w))&&this.setTag({name:"robots",content:"noindex"})}setTag(U){const w=`name="${U.name}"`;this.meta.getTag(w)?this.meta.updateTag(U,w):this.meta.addTag(U,!0)}setTags(U){for(const w of U)this.setTag(w)}addTag(U){this.meta.addTag(U,!0)}clearTagsWithName(U){const w=`name="${U}"`;for(const R of this.meta.getTags(w)||[])this.meta.removeTagElement(R)}clearAlternateTags(){for(const w of this.meta.getTags('rel="alternate"')||[])this.meta.removeTagElement(w)}static{this.\u0275fac=function(w){return new(w||C)(i.KVO(E.qQ),i.KVO(D.hE),i.KVO(D.W8),i.KVO(b.JO),i.KVO(D.up))}}static{this.\u0275prov=i.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},12462:(it,ge,s)=>{"use strict";s.d(ge,{w:()=>A});var i=s(34678),E=s(55685),y=s(15214);let A=(()=>{class M{constructor(b){this.akitaRouterQuery=b}identifyUser(b,f,S){if(this.akitaRouterQuery.isBrowser){const O=i.u.window;O&&O.clarity&&O.clarity("identify",b,f,S)}}setTag(b,f){if(this.akitaRouterQuery.isBrowser){const S=i.u.window;S&&S.clarity&&S.clarity("set",b,f)}}upgradeSession(b){if(this.akitaRouterQuery.isBrowser){const f=i.u.window;f&&f.clarity&&f.clarity("upgrade",b)}}consent(){if(this.akitaRouterQuery.isBrowser){const b=i.u.window;b&&b.clarity&&b.clarity("consent")}}static{this.\u0275fac=function(f){return new(f||M)(E.KVO(y.O))}}static{this.\u0275prov=E.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},15985:(it,ge,s)=>{"use strict";s.d(ge,{B:()=>w});var i=s(31761),E=s(34678),y=s(38355),A=s(33055),M=s(40352),D=s(16711),b=s(11364),f=s(55685),S=s(15214);const O="popsy-omnisend",C="6218be4acc2400f27258344b";let w=(()=>{class R{constructor(x,z){if(this.injector=x,this.akitaRouterQuery=z,this.installingOmnisendSubject=null,this.akitaRouterQuery.isBrowser)try{this.document=this.injector.get(i.qQ,null)}catch{this.document=null}else this.document=null}increasePageViewCount(){try{const x=E.u.window;x?._omnisend?.tracking?.incViews&&x._omnisend.tracking.incViews()}catch{}}trackPageView(x){if(x&&x!==this.lastViewName){this.lastViewName=x;try{const z=E.u.window;z?.omnisend?.push&&z.omnisend.push(["track","$pageViewed"])}catch{}}}identifyContact(x){if(x)try{const z=E.u.window;z?._omnisend?.cookies?.set&&z._omnisend.cookies.set("omnisendContactID",`${x||""}`),z?._omnisend&&(z._omnisend.contactIdentified=!0),z?._omnisend?.user?.handle&&z?._omnisend?.cookies?.get&&z._omnisend.user.handle({contactID:z._omnisend.cookies.get("omnisendContactID"),sessionID:z._omnisend.cookies.get("omnisendSessionID"),anonymousID:z._omnisend.cookies.get("omnisendAnonymousID")})}catch{}}isContactIdentified(){let x=!1;try{x=!!E.u.window?._omnisend?.contactIdentified}catch{}return x}getContactId(){let x=null;try{const z=E.u.window;z?._omnisend?.cookies?.get&&(x=z._omnisend.cookies.get("omnisendContactID"))}catch{}return x}get omnisendInstance(){const x=E.u.window;return x?(x.omnisend||(x.omnisend=[],x.omnisend.push(["accountID",C]),this.trackPageView("initial")),x.omnisend):null}trackProductView(x){if(this.omnisendInstance&&this.document&&x?.id&&x?.title&&x?.price?.currency&&x?.price?.amount&&this.lastViewedProduct!==x?.id){this.lastViewedProduct=x.id;const z=E.u.window;if(z&&z.omnisend){const X=parseInt(`${x.price.amount||0}`.replace(/[.,]/g,""),10);let K=X,ne="",le="",Y=null;x instanceof b.Yt&&(K=parseInt(`${x.originalPrice.amount||0}`.replace(/[.,]/g,""),10),ne=x.images[0]||"",le=`https://${x.country}.popsy.app/p/${x.id}?lang=${x.language}`.toLowerCase(),Y=x.id),le&&Y&&ne&&z?.omnisend&&z.omnisend.push(["track","$productViewed",{$productID:`${x.id||""}`,$variantID:`${Y||""}`,$currency:`${x.price.currency||"USD"}`,$price:X,$oldPrice:K,$title:`${x.title||""}`,$description:`${x.description||""}`,$imageUrl:`${ne||""}`,$productUrl:`${le||""}`}])}}}uninstallOmnisend(){if(this.document){if(this.omnisendInstance){const z=E.u.window;z&&z.omnisend&&(z.omnisend=null)}const x=this.document.getElementById(O);x&&x.remove()}}installOmnisend(){const x=new y.yU;return new A.c(z=>{if(this.document&&D.c.enableOmnisend)if(this.installingOmnisendSubject&&!this.installingOmnisendSubject.closed)x.add(this.installingOmnisendSubject.asObservable().subscribe({next:X=>{z.next(X),z.complete(),x&&x.unsubscribe()},error:X=>{z.next(X),z.complete(),x&&x.unsubscribe()}}));else{this.omnisendInstance&&(z.next(this.omnisendInstance),z.complete(),x&&x.unsubscribe());const X=this.document.getElementById(O);X&&X.remove();const K=this.document.getElementsByTagName("head");let ne=null;ne=K.length>0?K[0]:this.document.getElementsByTagName("body")[0];const le=this.document.createElement("script");le.setAttribute("id",O),le.setAttribute("nonce","90386bd2c0684585f1e674a04225f77f"),le.setAttribute("type","text/javascript"),le.setAttribute("charset","utf-8"),le.setAttribute("async","true"),le.setAttribute("src","https://omnisnippet1.com/inshop/launcher-v2.js"),le.addEventListener("load",()=>{const ve=this.omnisendInstance;this.installingOmnisendSubject&&!this.installingOmnisendSubject.closed&&(this.installingOmnisendSubject.next(ve),this.installingOmnisendSubject.complete(),this.installingOmnisendSubject=null),z.next(ve),z.complete(),x&&x.unsubscribe()}),le.addEventListener("error",ve=>{this.installingOmnisendSubject&&!this.installingOmnisendSubject.closed&&(this.installingOmnisendSubject.error(ve),this.installingOmnisendSubject=null),z.error(ve),z.complete(),x&&x.unsubscribe()});const Y=E.u.window;Y?(Y.omnisend||(Y.omnisend=[],Y.omnisend.push(["accountID",C]),this.trackPageView("initial")),this.installingOmnisendSubject=new M.B,ne?.appendChild(le)):(z.next(null),z.complete(),x&&x.unsubscribe())}else z.next(null),z.complete(),x&&x.unsubscribe()})}static{this.\u0275fac=function(z){return new(z||R)(f.KVO(f.zZn),f.KVO(S.O))}}static{this.\u0275prov=f.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},45503:(it,ge,s)=>{"use strict";s.d(ge,{b:()=>_});var i=s(31761),E=s(34678),y=s(38355),A=s(33055),M=s(40352),D=s(55685),b=s(23922),f=s(15214);const S="popsy-tidio";let _=(()=>{class U{constructor(R,V,x){if(this.injector=R,this.translateService=V,this.akitaRouterQuery=x,this.installingTidioSubject=null,this.akitaRouterQuery.isBrowser)try{this.document=this.injector.get(i.qQ,null)}catch{this.document=null}else this.document=null}get tidioInstance(){const R=E.u.window;return R&&R.tidioChatApi?R.tidioChatApi:null}setVisitorData(R,V,x,z,X,K,ne){if(this.akitaRouterQuery.isBrowser){const le={...window.tidioIdentify||{}};if(R&&(le.distinct_id=R),V&&(le.name=V),z&&(le.email=z),x&&(le.phone=x),X&&(le.city=X),K&&(le.country=`${K}`.toUpperCase()),ne){const Y=[...le.tags||[]];for(const ve of ne)Y.includes(ve)||Y.push(ve);le.tags=Y}try{window.tidioIdentify=le,window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.setVisitorData(le)}catch{}}}addVisitorTags(R){if(this.akitaRouterQuery.isBrowser)try{R&&window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.addVisitorTags(R)}catch{}}uninstallTidio(){if(this.document){if(this.tidioInstance){const V=E.u.window;V&&V.tidioChatApi&&(V.tidioChatApi=null)}const R=this.document.getElementById(S);R&&R.remove()}}open(){if(this.akitaRouterQuery.isBrowser)try{window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.open()}catch{}}close(){if(this.akitaRouterQuery.isBrowser)try{window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.close()}catch{}}display(R){if(this.akitaRouterQuery.isBrowser)try{window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.display(R)}catch{}}track(R){if(this.akitaRouterQuery.isBrowser)try{R&&window?.tidioChatApi?.setVisitorData&&window.tidioChatApi.track(R)}catch{}}installTidio(){const R=new y.yU;return new A.c(V=>{if(this.document)if(this.installingTidioSubject&&!this.installingTidioSubject.closed)R.add(this.installingTidioSubject.asObservable().subscribe({next:x=>{V.next(x),V.complete(),R&&R.unsubscribe()},error:x=>{V.error(x),V.complete(),R&&R.unsubscribe()}}));else{this.tidioInstance&&(V.next(this.tidioInstance),V.complete(),R&&R.unsubscribe());const x=this.document.getElementById(S);x&&x.remove();const z=this.document.getElementsByTagName("head");let X=null;X=z.length>0?z[0]:this.document.getElementsByTagName("body")[0];const K=this.document.createElement("script");K.setAttribute("id",S),K.setAttribute("nonce","90386bd2c0684585f1e674a04225f77f"),K.setAttribute("type","text/javascript"),K.setAttribute("charset","utf-8"),K.setAttribute("async","true"),K.setAttribute("src","https://code.tidio.co/57w3xlaznmyabnx1nhygsqbb0puingdv.js"),K.addEventListener("load",()=>{const le=this.tidioInstance;this.installingTidioSubject&&!this.installingTidioSubject.closed&&(this.installingTidioSubject.next(le),this.installingTidioSubject.complete(),this.installingTidioSubject=null),V.next(le),V.complete(),R&&R.unsubscribe()}),K.addEventListener("error",le=>{this.installingTidioSubject&&!this.installingTidioSubject.closed&&(this.installingTidioSubject.error(le),this.installingTidioSubject=null),V.error(le),V.complete(),R&&R.unsubscribe()}),E.u.window?(window.tidioChatLang=this.translateService.getActiveLang(),this.document.tidioChatLang=this.translateService.getActiveLang(),this.installingTidioSubject=new M.B,X?.appendChild(K)):(V.next(null),V.complete(),R&&R.unsubscribe())}else V.next(null),V.complete(),R&&R.unsubscribe()})}static{this.\u0275fac=function(V){return new(V||U)(D.KVO(D.zZn),D.KVO(b.JO),D.KVO(f.O))}}static{this.\u0275prov=D.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})()},19152:(it,ge,s)=>{"use strict";s.d(ge,{J:()=>A});var i=s(54171);const y=999999999999;class A{static isValidDate(D){return"[object Date]"===Object.prototype.toString.call(D)&&!isNaN(D.getTime())}static parseApiDate(D,b,f,S){let O=null;return f&&(f[`${D}_ms`]?O=A.parseRawDate(`${D}_ms`,f,!0,S):f[D]?O=A.parseRawDate(D,f,!1,S):f[b]&&(O=A.parseInternalDate(b,f,S)),A.isValidDate(O)||(O=null)),O}static parseRawDate(D,b,f,S){let O;return O="number"==typeof b[D]?f||b[D]>=y?new Date(b[D]):new Date(1e3*b[D]):b[D]instanceof Date?b[D]:A.parseISO(b[D],S),O||null}static parseInternalDate(D,b,f){let S;return S=b[D]instanceof Date?b[D]:"number"==typeof b[D]?b[D]>=y?new Date(b[D]):new Date(1e3*b[D]):A.parseISO(b[D],f),S||null}static parseISO(D,b){let f=null;try{f=(0,i.A)(D,b)}catch{}return f}}},58338:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>S});var i=s(66257),E=s(47878),y=s(70925),A=s.n(y),M=s(38355),D=s(63424),b=s(33055);const f=["street_address","premise","route","establishment"];class S{static get cache(){try{return A().createInstance({name:"popsy",description:"Cache of coordinates to avoid using the Geocoder too much",version:1,storeName:"coordinates"})}catch{}return{setItem:()=>new Promise(()=>{throw new Error("NOT_SUPPORTED")}),getItem:()=>new Promise(()=>{throw new Error("NOT_SUPPORTED")})}}static geoCodeCoordinateAddress(_,U){const w=new M.yU;return new Promise((R,V)=>{if(!_)return w&&w.unsubscribe(),void V("Coordinate is empty or null");const x=E.x.fromJson(_)||new E.x;w.add(S.getAddressCache(x.latitude,x.longitude,U).subscribe({next:z=>{if(z&&z.googleGeocoder)return w&&w.unsubscribe(),void R(z);if(typeof google<"u"&&google.maps){const X=new google.maps.LatLng(x.latitude,x.longitude);(new google.maps.Geocoder).geocode({location:X},(ne,le)=>{let Y="";if(le===google.maps.GeocoderStatus.OK){Y="OK";let ve=O(ne);ve||(ve=(ne||[])[0]||null);const Ie=S.formatGMapsAddress(ve?.address_components||[]),He=E.x.fromJson(x)||new E.x;He.address=(ne||[])[0].formatted_address,He.shortAddress=Ie.shortAddress,He.city=Ie.city,He.area=Ie.area,He.region=Ie.region,He.regionCode=Ie.regionCode,He.country=Ie.countryCode,He.countryName=Ie.countryName,He.streetName=Ie.streetName,He.streetNumber=Ie.streetNumber,He.postalCode=Ie.postalCode,He.googleGeocoder=!0,He.updatedAt=new Date,w.add(S.updateAddressCache(He.getLatLng(),He,U).subscribe({next:()=>{w&&w.unsubscribe(),R(He)},error:()=>{w&&w.unsubscribe(),R(He)}}))}else le===google.maps.GeocoderStatus.ZERO_RESULTS?(w&&w.unsubscribe(),Y="ZERO_RESULTS",R(null)):le===google.maps.GeocoderStatus.OVER_QUERY_LIMIT?(w&&w.unsubscribe(),Y="OVER_QUERY_LIMIT",R(null)):le===google.maps.GeocoderStatus.REQUEST_DENIED?Y="REQUEST_DENIED":le===google.maps.GeocoderStatus.INVALID_REQUEST?Y="INVALID_REQUEST":le===google.maps.GeocoderStatus.UNKNOWN_ERROR?Y="UNKNOWN_ERROR":le===google.maps.GeocoderStatus.ERROR&&(Y="ERROR");le!==google.maps.GeocoderStatus.OK&&le!==google.maps.GeocoderStatus.ZERO_RESULTS&&le!==google.maps.GeocoderStatus.OVER_QUERY_LIMIT&&(w&&w.unsubscribe(),V(`Google GeoCoder -> ${Y}`))}).then(()=>{}).catch(()=>{})}else w&&w.unsubscribe(),V("Google Maps API not loaded")},error:()=>{}}))})}static formatGMapsAddress(_){const U=_.find(K=>-1!==K.types.indexOf("street_number")),w=_.find(K=>-1!==K.types.indexOf("route")),R=_.find(K=>-1!==K.types.indexOf("postal_code")),V=_.find(K=>-1!==K.types.indexOf("country"));let x=_.find(K=>-1!==K.types.indexOf("locality"));x||(x=_.find(K=>-1!==K.types.indexOf("administrative_area_level_2")),x||(x=_.find(K=>-1!==K.types.indexOf("administrative_area_level_1"))));const z=_.find(K=>-1!==K.types.indexOf("administrative_area_level_1")),X=_.find(K=>-1!==K.types.indexOf("sublocality"));return{shortAddress:E.x.buildShortAddress(x?x.long_name:"",V?V.long_name:"",R?R.long_name:""),countryName:V?V.long_name:"",countryCode:(V?V.short_name:"").toLowerCase(),city:x?x.long_name:"",area:X?X.long_name:"",region:z?z.long_name:"",regionCode:(z?z.short_name:"").toLowerCase(),postalCode:R?R.long_name:"",streetNumber:U?U.long_name:"",streetName:w?w.short_name:""}}static getAddressCache(_,U,w){return(0,D.v)((0,i.A)(function*(){try{const R=`${(_||0).toFixed(6)},${(U||0).toFixed(6)}`,V=yield S.cache.getItem(`${w}:${R}`),x=E.x.fromJson(V)||new E.x;return!x.city||x.address===`${x.city}, ${x.country}`||x.countryName.length<=2?null:x}catch{}return null}))}static updateAddressCache(_,U,w){return new b.c(R=>{U&&U.country&&(U.city||U.googleGeocoder)&&U.address&&U.address!==`${U.city||""}, ${U.country}`&&U.countryName.length>2&&S.cache.setItem(`${w}:${_}`,U).then(()=>{R.next(U),R.complete()}).catch(()=>{R.next(null),R.complete()}),R.next(null),R.complete()})}}const O=C=>{if(C){let _=null;for(const U of C)for(const w of U.types||[]){const R=f.indexOf(w);if(0===R)return U;R>=1&&_&&R<_.pos&&(_={pos:R,result:U})}if(_)return _.result}return null}},23734:(it,ge,s)=>{"use strict";s.d(ge,{k:()=>i});var i=function(E){return E[E.PROCESSING=102]="PROCESSING",E[E.OK=200]="OK",E[E.CREATED=201]="CREATED",E[E.BAD_REQUEST=400]="BAD_REQUEST",E[E.UNAUTHORIZED=401]="UNAUTHORIZED",E[E.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",E[E.FORBIDDEN=403]="FORBIDDEN",E[E.NOT_FOUND=404]="NOT_FOUND",E[E.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",E[E.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",E[E.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",E[E.GONE=410]="GONE",E[E.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",E[E.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",E[E.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",E[E.URI_TOO_LONG=414]="URI_TOO_LONG",E[E.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",E[E.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",E[E.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",E[E.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",E[E.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",E[E.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",E[E.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",E[E.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",E[E.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",E[E.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",E[E.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",E[E.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",E[E.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",E[E.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",E[E.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",E[E.LOOP_DETECTED=508]="LOOP_DETECTED",E[E.NOT_EXTENDED=510]="NOT_EXTENDED",E[E.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",E}(i||{})},86343:(it,ge,s)=>{"use strict";s.d(ge,{t5:()=>M,cL:()=>f,$J:()=>S,mW:()=>b,BK:()=>D});const i={"Asia/Kabul":{lat:34.98300013,lng:63.13329964,country:"AF"},"Europe/Mariehamn":{lat:60.09699618,lng:19.94900447,country:"AX"},"Europe/Tirane":{lat:41.51899817,lng:19.79700359,country:"AL"},"Africa/Algiers":{lat:36.82199703,lng:5.76600356,country:"DZ"},"Pacific/Pago_Pago":{lat:-14.2766105,lng:-170.7066451,country:"AS"},"Europe/Andorra":{lat:42.50000144,lng:1.516485961,country:"AD"},"Africa/Luanda":{lat:-18.01953449,lng:21.42999914,country:"AO"},"America/Antigua":{lat:17.11803652,lng:-61.85003382,country:"AG"},"America/Santiago":{lat:-51.65003986,lng:-72.30001612,country:"AR"},"America/Argentina/Rio_Gallegos":{lat:-48.76659829,lng:-70.25001205,country:"AR"},"America/Argentina/Catamarca":{lat:-45.68337563,lng:-70.26657434,country:"AR"},"America/Argentina/Mendoza":{lat:-32.82503904,lng:-68.80167668,country:"AR"},"America/Argentina/Salta":{lat:-38.94001463,lng:-69.24002202,country:"AR"},"America/Argentina/Buenos_Aires":{lat:-38.87996662,lng:-62.0799681,country:"AR"},"America/Argentina/Cordoba":{lat:-31.43003375,lng:-62.08996749,country:"AR"},"America/Argentina/Jujuy":{lat:-22.7166638,lng:-65.6999797,country:"AR"},"America/Argentina/La_Rioja":{lat:-31.34998696,lng:-66.5999506,country:"AR"},"America/Argentina/Tucuman":{lat:-26.21665688,lng:-65.28331262,country:"AR"},"America/Asuncion":{lat:-22.47998574,lng:-62.29998051,country:"AR"},"America/Argentina/San_Juan":{lat:-30.21558592,lng:-69.1399506,country:"AR"},"America/Argentina/San_Luis":{lat:-33.68958576,lng:-65.4699679,country:"AR"},"America/Argentina/Ushuaia":{lat:-53.79144552,lng:-67.6989952,country:"AR"},"Asia/Yerevan":{lat:40.3016667,lng:44.3591667,country:"AM"},"America/Aruba":{lat:12.53038373,lng:-70.02899195,country:"AW"},"Australia/Sydney":{lat:-33.42004148,lng:151.3000048,country:"AU"},"Australia/Brisbane":{lat:-26.67998777,lng:153.0500272,country:"AU"},"Australia/Darwin":{lat:-13.81617348,lng:131.816698,country:"AU"},"Australia/Perth":{lat:-33.58287392,lng:120.0333345,country:"AU"},"Australia/Melbourne":{lat:-36.12959186,lng:144.750017,country:"AU"},"Australia/Adelaide":{lat:-34.28293455,lng:140.6000378,country:"AU"},"Australia/Hobart":{lat:-40.83292234,lng:145.1166613,country:"AU"},"Australia/Broken_Hill":{lat:-31.94995034,lng:141.4331136,country:"AU"},"Europe/Vienna":{lat:47.51669707,lng:9.766701588,country:"AT"},"Europe/Berlin":{lat:48.56704714,lng:13.46660925,country:"DE"},"Asia/Baku":{lat:40.5655556,lng:45.8161111,country:"AZ"},"Asia/Bahrain":{lat:26.23613629,lng:50.58305172,country:"BH"},"Asia/Dhaka":{lat:24.24997845,lng:89.92003048,country:"BD"},"America/Barbados":{lat:13.10200258,lng:-59.61652674,country:"BB"},"Europe/Minsk":{lat:53.13684572,lng:26.01344031,country:"BY"},"Europe/Brussels":{lat:50.44599911,lng:3.939003561,country:"BE"},"America/Belize":{lat:17.15599807,lng:-89.06100252,country:"BZ"},"Africa/Porto-Novo":{lat:6.615000092,lng:1.715004457,country:"BJ"},"Atlantic/Bermuda":{lat:32.29419029,lng:-64.78393742,country:"BM"},"Asia/Thimphu":{lat:27.3833011,lng:89.51670065,country:"BT"},"America/La_Paz":{lat:-17.55000242,lng:-65.83997115,country:"BO"},"America/Lima":{lat:-12.49961302,lng:-68.66656865,country:"BO"},"America/Rio_Branco":{lat:-11.03334593,lng:-68.73330876,country:"BO"},"Europe/Sarajevo":{lat:44.21997398,lng:17.91998083,country:"BA"},"Africa/Gaborone":{lat:-24.377004,lng:26.15200256,country:"BW"},"America/Fortaleza":{lat:-5.809995505,lng:-46.14998438,country:"BR"},"America/Belem":{lat:-1.190019105,lng:-47.17999903,country:"BR"},"America/Porto_Velho":{lat:-11.64002724,lng:-61.20999536,country:"BR"},"America/Campo_Grande":{lat:-22.53000853,lng:-55.7299681,country:"BR"},"America/Sao_Paulo":{lat:-23.549411199362915,lng:-46.638163146362295,country:"BR"},"America/Cuiaba":{lat:-15.65001504,lng:-56.14002059,country:"BR"},"America/Maceio":{lat:-9.48000405,lng:-35.83996769,country:"BR"},"America/Bahia":{lat:-16.28000242,lng:-39.0299797,country:"BR"},"America/Recife":{lat:-8.110010153,lng:-35.02004358,country:"BR"},"America/Manaus":{lat:-3.289580873,lng:-60.6199797,country:"BR"},"America/Santarem":{lat:-1.939585756,lng:-54.78999964,country:"BR"},"America/Araguaina":{lat:-6.319576804,lng:-47.41998438,country:"BR"},"America/Boa_Vista":{lat:1.816231505,lng:-61.12767481,country:"BR"},"America/Eirunepe":{lat:-6.66002114,lng:-69.87380762,country:"BR"},"Asia/Brunei":{lat:4.883331115,lng:114.9332841,country:"BN"},"Europe/Sofia":{lat:43.13799911,lng:24.71900459,country:"BG"},"Africa/Ouagadougou":{lat:12.05499605,lng:.360999451,country:"BF"},"Africa/Bujumbura":{lat:-3.166703921,lng:30.51669662,country:"BI"},"Asia/Phnom_Penh":{lat:11.4519961,lng:104.5189986,country:"KH"},"Africa/Douala":{lat:4.155003087,lng:9.231003513,country:"CM"},"America/Winnipeg":{lat:50.15002545,lng:-96.88332178,country:"CA"},"America/Regina":{lat:50.93331097,lng:-102.7999891,country:"CA"},"America/Edmonton":{lat:53.01669802,lng:-112.8166386,country:"CA"},"America/Creston":{lat:49.09996035,lng:-116.516697,country:"CA"},"America/Vancouver":{lat:54.49999249,lng:-128.5833248,country:"CA"},"America/Iqaluit":{lat:68.76746684,lng:-81.23608303,country:"CA"},"America/Yellowknife":{lat:62.40005292,lng:-110.7333291,country:"CA"},"America/Toronto":{lat:44.56664532,lng:-80.84998519,country:"CA"},"America/Montreal":{lat:49.82257774,lng:-64.34799504,country:"CA"},"America/Blanc-Sablon":{lat:51.2423102,lng:-58.64699935,country:"CA"},"America/Halifax":{lat:45.58327578,lng:-62.63331934,country:"CA"},"America/St_Johns":{lat:49.17440025,lng:-57.42691878,country:"CA"},"America/Goose_Bay":{lat:55.44996035,lng:-60.21667098,country:"CA"},"America/Dawson_Creek":{lat:55.76696942,lng:-120.233266,country:"CA"},"America/Coral_Harbour":{lat:64.15377016,lng:-83.17658736,country:"CA"},"America/Rankin_Inlet":{lat:64.31699017,lng:-96.01665633,country:"CA"},"America/Whitehorse":{lat:61.35037539,lng:-139.0000017,country:"CA"},"America/Nipigon":{lat:49.01704551,lng:-88.24997278,country:"CA"},"America/Atikokan":{lat:48.75039512,lng:-91.61658899,country:"CA"},"America/Moncton":{lat:45.26704185,lng:-66.07667505,country:"CA"},"America/Pangnirtung":{lat:66.13331341,lng:-65.75002832,country:"CA"},"America/Detroit":{lat:42.33329327,lng:-83.03334029,country:"CA"},"America/Fort_Nelson":{lat:58.81670575,lng:-122.5329706,country:"CA"},"America/Cambridge_Bay":{lat:68.63329002,lng:-95.91666244,country:"CA"},"America/Inuvik":{lat:68.34997398,lng:-133.6999893,country:"CA"},"America/Dawson":{lat:64.0666437,lng:-139.4166687,country:"CA"},"America/Glace_Bay":{lat:46.06611452,lng:-60.17998071,country:"CA"},"America/Resolute":{lat:74.68333417,lng:-94.90000615,country:"CA"},"America/Thunder_Bay":{lat:48.44615013,lng:-89.27497481,country:"CA"},"Atlantic/Cape_Verde":{lat:16.88376141,lng:-25.0000092,country:"CV"},"America/Cayman":{lat:19.28043683,lng:-81.32998173,country:"KY"},"Africa/Bangui":{lat:4.320000059,lng:21.17999753,country:"CF"},"Africa/Ndjamena":{lat:9.395001123,lng:16.30500349,country:"TD"},"Asia/Urumqi":{lat:39.83003522,lng:97.72999304,country:"CN"},"Asia/Chongqing":{lat:35.60000917,lng:103.2000468,country:"CN"},"Asia/Shanghai":{lat:39.54005292,lng:115.789976,country:"CN"},"Asia/Harbin":{lat:45.49999921,lng:124.2999991,country:"CN"},"Asia/Kashgar":{lat:32.20039756,lng:79.98332434,country:"CN"},"America/Bogota":{lat:5.346999095,lng:-72.4059986,country:"CO"},"Indian/Comoro":{lat:-11.7041577,lng:43.2402441,country:"KM"},"Africa/Brazzaville":{lat:-4.164002942,lng:13.55400049,country:"CG"},"Africa/Lubumbashi":{lat:-.756998889,lng:28.52800254,country:"CD"},"Africa/Kinshasa":{lat:4.330341613,lng:18.61502885,country:"CD"},"Pacific/Rarotonga":{lat:-21.25003497,lng:-159.7500013,country:"CK"},"America/Costa_Rica":{lat:9.991997986,lng:-84.12000251,country:"CR"},"Europe/Zagreb":{lat:43.7272222,lng:15.9058333,country:"HR"},"America/Havana":{lat:21.83999636,lng:-78.76194727,country:"CU"},"America/Curacao":{lat:12.20042971,lng:-69.01998377,country:"CW"},"Asia/Nicosia":{lat:34.9170031,lng:33.63599757,country:"CY"},"Europe/Prague":{lat:50.66299816,lng:14.08100455,country:"CZ"},"Europe/Copenhagen":{lat:55.70900103,lng:9.534996498,country:"DK"},"Africa/Djibouti":{lat:11.10400201,lng:42.37200058,country:"DJ"},"America/Dominica":{lat:15.30101564,lng:-61.38701298,country:"DM"},"America/Santo_Domingo":{lat:19.50499807,lng:-71.34498854,country:"DO"},"Asia/Dili":{lat:-8.559388409,lng:125.5794559,country:"TL"},"America/Guayaquil":{lat:-1.483002014,lng:-77.98699756,country:"EC"},"Pacific/Galapagos":{lat:-.933342266,lng:-91.01665145,country:"EC"},"Africa/Cairo":{lat:30.59199913,lng:30.89999749,country:"EG"},"America/El_Salvador":{lat:13.91900399,lng:-89.84500155,country:"SV"},"Africa/Malabo":{lat:1.449999085,lng:10.56670255,country:"GQ"},"Africa/Asmara":{lat:15.11038129,lng:36.65749345,country:"ER"},"Europe/Tallinn":{lat:58.9430556,lng:23.5413889,country:"EE"},"Africa/Addis_Ababa":{lat:7.059996077,lng:38.47699862,country:"ET"},"Atlantic/Stanley":{lat:-51.95058999,lng:-60.08696314,country:"FK"},"Atlantic/Faroe":{lat:62.2374783,lng:-6.53901149,country:"FO"},"Pacific/Pohnpei":{lat:6.916643696,lng:158.1499743,country:"FM"},"Pacific/Fiji":{lat:-17.79959959,lng:177.4166019,country:"FJ"},"Europe/Helsinki":{lat:60.99699611,lng:24.47199954,country:"FI"},"Europe/Paris":{lat:45.89997479,lng:6.116670287,country:"FR"},"America/Cayenne":{lat:4.729981302,lng:-52.33002059,country:"GF"},"America/Martinique":{lat:14.6104118,lng:-61.08002914,country:"MQ"},"America/Guadeloupe":{lat:16.24147504,lng:-61.5329989,country:"GP"},"Indian/Reunion":{lat:-21.03351072,lng:55.71281612,country:"RE"},"Indian/Mayotte":{lat:-12.78708901,lng:45.27500362,country:"YT"},"Pacific/Tahiti":{lat:-17.53336261,lng:-149.5666694,country:"PF"},"Africa/Libreville":{lat:-2.856995957,lng:11.02699849,country:"GA"},"Asia/Tbilisi":{lat:42.24999086,lng:42.72999101,country:"GE"},"Africa/Accra":{lat:7.335998991,lng:-2.336003416,country:"GH"},"Europe/Gibraltar":{lat:36.13243495,lng:-5.37807483,country:"GI"},"Europe/Athens":{lat:38.89899915,lng:22.43400358,country:"GR"},"America/Godthab":{lat:68.81927014,lng:-51.17851854,country:"GL"},"America/Danmarkshavn":{lat:70.48335797,lng:-21.9666543,country:"GL"},"America/Thule":{lat:76.01947624,lng:-65.11248065,country:"GL"},"America/Grenada":{lat:12.0526334,lng:-61.74164323,country:"GD"},"Pacific/Guam":{lat:13.4700163,lng:144.750017,country:"GU"},"America/Guatemala":{lat:15.10299903,lng:-90.31400061,country:"GT"},"Africa/Conakry":{lat:12.08400302,lng:-12.30100143,country:"GN"},"Africa/Bissau":{lat:12.26899803,lng:-16.16499854,country:"GW"},"America/Guyana":{lat:5.900039082,lng:-57.16998356,country:"GY"},"America/Port-au-Prince":{lat:18.63393473,lng:-74.11842526,country:"HT"},"America/Tegucigalpa":{lat:15.05999711,lng:-87.29000054,country:"HN"},"Asia/Hong_Kong":{lat:22.3049809,lng:114.1850093,country:"HK"},"Europe/Budapest":{lat:47.09099714,lng:17.91099957,country:"HU"},"Atlantic/Reykjavik":{lat:64.56950277,lng:-21.86232219,country:"IS"},"Asia/Kolkata":{lat:15.491997,lng:73.81800065,country:"IN"},"Asia/Calcutta":{lat:19.07283,lng:72.88261,country:"IN"},"Asia/Jakarta":{lat:3.620359109,lng:98.50007524,country:"ID"},"Asia/Jayapura":{lat:.696377379,lng:127.4359834,country:"ID"},"Asia/Makassar":{lat:-8.579542217,lng:116.1350195,country:"ID"},"Asia/Pontianak":{lat:.911980927,lng:108.9654697,country:"ID"},"Asia/Tehran":{lat:30.65900412,lng:51.59400361,country:"IR"},"Asia/Baghdad":{lat:36.86670013,lng:43.00000263,country:"IQ"},"Europe/Dublin":{lat:53.6333333,lng:-8.1833333,country:"IE"},"Europe/Isle_of_Man":{lat:54.15042727,lng:-4.480021404,country:"IM"},"Asia/Jerusalem":{lat:31.91670012,lng:34.86670252,country:"IL"},"Europe/Rome":{lat:40.64200213,lng:15.7989965,country:"IT"},"Africa/Abidjan":{lat:8.280000029,lng:-7.684001549,country:"CI"},"America/Jamaica":{lat:18.44299809,lng:-78.17900362,country:"JM"},"Asia/Tokyo":{lat:34.67202964,lng:133.9170865,country:"JP"},"Asia/Amman":{lat:32.28329707,lng:36.23329852,country:"JO"},"Asia/Qyzylorda":{lat:49.62600011,lng:63.49899651,country:"KZ"},"Asia/Aqtau":{lat:43.69045506,lng:51.14173561,country:"KZ"},"Asia/Atyrau":{lat:47.64824017,lng:53.32650183,country:"KZ"},"Asia/Almaty":{lat:52.49967531,lng:73.0997135,country:"KZ"},"Asia/Aqtobe":{lat:49.47306419,lng:57.44490678,country:"KZ"},"Asia/Oral":{lat:50.19149579,lng:51.14492956,country:"KZ"},"Africa/Nairobi":{lat:-.41699699,lng:36.95100363,country:"KE"},"Pacific/Tarawa":{lat:1.338187506,lng:173.0175708,country:"KI"},"Asia/Kuwait":{lat:29.33334002,lng:47.99999756,country:"KW"},"Asia/Bishkek":{lat:42.82987795,lng:75.28459306,country:"KG"},"Asia/Vientiane":{lat:20.2775,lng:100.4127778,country:"LA"},"Europe/Riga":{lat:56.50002545,lng:27.3165649,country:"LV"},"Asia/Beirut":{lat:33.83330406,lng:35.53329652,country:"LB"},"Africa/Maseru":{lat:-29.15299794,lng:27.75300351,country:"LS"},"Africa/Monrovia":{lat:4.799996997,lng:-8.166698518,country:"LR"},"Africa/Tripoli":{lat:30.1679118,lng:10.45666378,country:"LY"},"Europe/Vaduz":{lat:47.13372377,lng:9.516669473,country:"LI"},"Europe/Vilnius":{lat:55.74002016,lng:24.37002641,country:"LT"},"Europe/Luxembourg":{lat:49.88330105,lng:6.166701555,country:"LU"},"Asia/Macau":{lat:22.20299746,lng:113.5450484,country:"MO"},"Europe/Skopje":{lat:42.00923037,lng:20.9700789,country:"MK"},"Indian/Antananarivo":{lat:-14.26617186,lng:50.16659135,country:"MG"},"Africa/Blantyre":{lat:-11.9,lng:33.6,country:"MW"},"Asia/Kuala_Lumpur":{lat:6.433001991,lng:100.1899987,country:"MY"},"Asia/Kuching":{lat:5.046396097,lng:118.3359704,country:"MY"},"Indian/Maldives":{lat:4.16670819,lng:73.49994747,country:"MV"},"Africa/Bamako":{lat:16.41699404,lng:-3.666582684,country:"ML"},"Europe/Malta":{lat:35.89973248,lng:14.51471065,country:"MT"},"Pacific/Majuro":{lat:7.103004311,lng:171.3800002,country:"MH"},"Africa/Nouakchott":{lat:22.67900113,lng:-12.70700053,country:"MR"},"Africa/Dakar":{lat:16.01998985,lng:-16.51001062,country:"MR"},"Indian/Mauritius":{lat:-20.31619017,lng:57.51663367,country:"MU"},"America/Tijuana":{lat:30.76405113,lng:-116.0092603,country:"MX"},"America/Mazatlan":{lat:26.01333335,lng:-111.3516635,country:"MX"},"America/Monterrey":{lat:28.32998781,lng:-100.8499789,country:"MX"},"America/Chihuahua":{lat:26.93335472,lng:-105.6666358,country:"MX"},"America/Ojinaga":{lat:31.10002545,lng:-107.979983,country:"MX"},"America/Hermosillo":{lat:27.58000775,lng:-109.9299931,country:"MX"},"America/Mexico_City":{lat:22.35001691,lng:-102.88001,country:"MX"},"America/Matamoros":{lat:26.07999595,lng:-98.30003117,country:"MX"},"America/Merida":{lat:21.09998985,lng:-89.27998743,country:"MX"},"America/Cancun":{lat:21.20839057,lng:-86.7114549,country:"MX"},"Europe/Chisinau":{lat:47.2630556,lng:29.1608333,country:"MD"},"Asia/Ulaanbaatar":{lat:50.24999712,lng:106.2000006,country:"MN"},"Asia/Hovd":{lat:48.93369143,lng:89.95000281,country:"MN"},"Asia/Choibalsan":{lat:46.69997764,lng:113.2833073,country:"MN"},"Europe/Podgorica":{lat:42.46597251,lng:19.26630692,country:"ME"},"Africa/Casablanca":{lat:35.02038047,lng:-5.909985801,country:"MA"},"Africa/El_Aaiun":{lat:27.46290895,lng:-12.99218917,country:"MA"},"Africa/Maputo":{lat:-16.09954832,lng:33.95001013,country:"MZ"},"Africa/Lusaka":{lat:-15.61957762,lng:30.41001949,country:"MZ"},"Asia/Rangoon":{lat:19.66500009,lng:97.20600363,country:"MM"},"Africa/Windhoek":{lat:-21.43600193,lng:15.95099754,country:"NA"},"Asia/Kathmandu":{lat:28.35000004,lng:82.18330255,country:"NP"},"Europe/Amsterdam":{lat:53.00000109,lng:6.550002585,country:"NL"},"Pacific/Noumea":{lat:-22.26252776,lng:166.4442852,country:"NC"},"Pacific/Auckland":{lat:-42.47274975,lng:171.2087246,country:"NZ"},"America/Managua":{lat:13.47599712,lng:-86.58299659,country:"NI"},"Africa/Niamey":{lat:13.98740074,lng:10.2700085,country:"NE"},"Africa/Lagos":{lat:5.532003041,lng:7.486002487,country:"NG"},"Asia/Pyongyang":{lat:38.50700411,lng:125.7620047,country:"KP"},"Pacific/Saipan":{lat:15.21125368,lng:145.7505761,country:"MP"},"Europe/Oslo":{lat:58.46475606,lng:8.766000553,country:"NO"},"Asia/Muscat":{lat:23.3031887,lng:57.97820756,country:"OM"},"Asia/Karachi":{lat:33.89918276,lng:70.10082678,country:"PK"},"Pacific/Palau":{lat:7.345226355,lng:134.4695009,country:"PW"},"Asia/Hebron":{lat:31.90294475,lng:35.20620938,country:"PS"},"Asia/Gaza":{lat:31.52999921,lng:34.44501868,country:"PS"},"America/Panama":{lat:9.541686355,lng:-78.97196299,country:"PA"},"Pacific/Port_Moresby":{lat:-5.490000005,lng:143.7180037,country:"PG"},"Pacific/Bougainville":{lat:-6.228000033,lng:155.5659907,country:"PG"},"Asia/Manila":{lat:10.55037539,lng:123.3800036,country:"PH"},"Europe/Warsaw":{lat:53.80003522,lng:20.48003129,country:"PL"},"Europe/Lisbon":{lat:40.64100311,lng:-8.650997534,country:"PT"},"Atlantic/Azores":{lat:38.53465595,lng:-28.64475681,country:"PT"},"Atlantic/Madeira":{lat:32.64998252,lng:-16.88003972,country:"PT"},"America/Puerto_Rico":{lat:18.00038576,lng:-66.61664209,country:"PR"},"Asia/Qatar":{lat:25.28655601,lng:51.53296789,country:"QA"},"Europe/Bucharest":{lat:45.04500004,lng:23.27400062,country:"RO"},"Europe/Moscow":{lat:43.23300312,lng:44.78300151,country:"RU"},"Asia/Irkutsk":{lat:52.83299713,lng:104.6999977,country:"RU"},"Asia/Anadyr":{lat:66.95000775,lng:-171.8166032,country:"RU"},"Asia/Srednekolymsk":{lat:69.42444039,lng:161.4811431,country:"RU"},"Europe/Kaliningrad":{lat:54.6316382,lng:21.81085445,country:"RU"},"Europe/Volgograd":{lat:50.01610598,lng:45.42610551,country:"RU"},"Asia/Yekaterinburg":{lat:54.4599691,lng:53.45998205,country:"RU"},"Europe/Kirov":{lat:58.55437034,lng:50.04437659,country:"RU"},"Europe/Samara":{lat:52.97432334,lng:49.72434444,country:"RU"},"Asia/Novokuznetsk":{lat:54.66000856,lng:86.16997514,country:"RU"},"Asia/Krasnoyarsk":{lat:53.8313253,lng:91.22268998,country:"RU"},"Asia/Novosibirsk":{lat:54.65093935,lng:83.28653357,country:"RU"},"Asia/Chita":{lat:51.87056643,lng:116.0306331,country:"RU"},"Asia/Vladivostok":{lat:44.16230308,lng:133.2823449,country:"RU"},"Asia/Yakutsk":{lat:73.48330406,lng:113.6300044,country:"RU"},"Asia/Magadan":{lat:61.63327801,lng:147.9166971,country:"RU"},"Asia/Sakhalin":{lat:49.08334637,lng:142.0333353,country:"RU"},"Asia/Kamchatka":{lat:60.5815851,lng:169.0499808,country:"RU"},"Asia/Tomsk":{lat:56.49260988,lng:84.90359249,country:"RU"},"Europe/Saratov":{lat:51.50040814,lng:46.12001664,country:"RU"},"Europe/Ulyanovsk":{lat:54.25042116,lng:49.56001339,country:"RU"},"Asia/Omsk":{lat:54.16047833,lng:74.82002193,country:"RU"},"Asia/Barnaul":{lat:52.53406598,lng:85.18000972,country:"RU"},"Asia/Khandyga":{lat:60.80002138,lng:135.1833142,country:"RU"},"Europe/Astrakhan":{lat:48.27871848,lng:46.16869584,country:"RU"},"Asia/Ust-Nera":{lat:64.56658734,lng:143.1999825,country:"RU"},"Africa/Kigali":{lat:-2.483297945,lng:29.5667016,country:"RW"},"America/St_Kitts":{lat:17.30203046,lng:-62.71700932,country:"KN"},"America/St_Lucia":{lat:14.00197349,lng:-61.00000818,country:"LC"},"America/St_Vincent":{lat:13.14827883,lng:-61.21206242,country:"VC"},"Pacific/Apia":{lat:-13.84154504,lng:-171.7386416,country:"WS"},"Europe/San_Marino":{lat:43.91715008,lng:12.46667029,country:"SM"},"Africa/Sao_Tome":{lat:1.645002051,lng:7.412004483,country:"ST"},"Asia/Riyadh":{lat:24.70959,lng:46.6752105,country:"SA"},"Europe/Belgrade":{lat:46.07001609,lng:19.68002844,country:"RS"},"Indian/Mahe":{lat:-4.616631654,lng:55.44998979,country:"SC"},"Africa/Freetown":{lat:8.880425638,lng:-12.04997278,country:"SL"},"Asia/Singapore":{lat:1.293033466,lng:103.8558207,country:"SG"},"Europe/Bratislava":{lat:48.73329022,lng:19.14998328,country:"SK"},"Europe/Ljubljana":{lat:46.54047833,lng:15.65004187,country:"SI"},"Pacific/Guadalcanal":{lat:-8.09962319,lng:156.8350158,country:"SB"},"Africa/Mogadishu":{lat:4.183298973,lng:43.86670261,country:"SO"},"Africa/Johannesburg":{lat:-30.71953449,lng:25.10000769,country:"ZA"},"Atlantic/South_Georgia":{lat:-54.28057697,lng:-36.50798893,country:"GS"},"Asia/Seoul":{lat:36.93525067,lng:127.6897147,country:"KR"},"Africa/Juba":{lat:9.2333333,lng:29.8333333,country:"SS"},"Europe/Madrid":{lat:38.91200402,lng:-6.337997512,country:"ES"},"Atlantic/Canary":{lat:28.96904923,lng:-13.53783283,country:"ES"},"Africa/Ceuta":{lat:35.88898378,lng:-5.30699935,country:"ES"},"Asia/Colombo":{lat:8.568999036,lng:81.23300155,country:"LK"},"Africa/Khartoum":{lat:11.77040428,lng:34.34998572,country:"SD"},"America/Paramaribo":{lat:5.599998125,lng:-55.19999648,country:"SR"},"Arctic/Longyearbyen":{lat:78.21668439,lng:15.5499963,country:"SJ"},"Africa/Mbabane":{lat:-25.96100399,lng:31.2470015,country:"SZ"},"Europe/Stockholm":{lat:60.61300204,lng:15.64700455,country:"SE"},"Europe/Zurich":{lat:47.36999713,lng:7.344999488,country:"CH"},"Asia/Damascus":{lat:32.62500014,lng:36.10500351,country:"SY"},"Asia/Taipei":{lat:24.9575,lng:121.2988889,country:"TW"},"Asia/Dushanbe":{lat:39.75000301,lng:69.00000365,country:"TJ"},"Africa/Dar_es_Salaam":{lat:-5.063463959,lng:39.725799,country:"TZ"},"Asia/Bangkok":{lat:19.30100405,lng:97.96899665,country:"TH"},"America/Nassau":{lat:26.53327578,lng:-78.70001306,country:"BS"},"Africa/Banjul":{lat:13.55100308,lng:-14.76700152,country:"GM"},"Africa/Lome":{lat:9.261000068,lng:.789003574,country:"TG"},"Pacific/Tongatapu":{lat:-18.64957355,lng:-173.9832927,country:"TO"},"America/Port_of_Spain":{lat:10.28046166,lng:-61.45937678,country:"TT"},"Africa/Tunis":{lat:33.399999,lng:10.41669956,country:"TN"},"Europe/Istanbul":{lat:41.74299917,lng:27.22599962,country:"TR"},"Asia/Ashgabat":{lat:38.97553957,lng:56.27779455,country:"TM"},"America/Grand_Turk":{lat:21.46642743,lng:-71.13597864,country:"TC"},"Pacific/Funafuti":{lat:-8.516651999,lng:179.2166471,country:"TV"},"Africa/Kampala":{lat:-.3088889,lng:32.225,country:"UG"},"Europe/Kiev":{lat:46.96773907,lng:31.984342,country:"UA"},"Europe/Uzhgorod":{lat:48.62998903,lng:22.25000077,country:"UA"},"Europe/Zaporozhye":{lat:46.75682172,lng:36.78683956,country:"UA"},"Europe/Simferopol":{lat:45.71704022,lng:34.4000085,country:"UA"},"Asia/Dubai":{lat:25.56527285,lng:55.55334265,country:"AE"},"Europe/London":{lat:55.93329002,lng:-4.750030763,country:"GB"},"America/Chicago":{lat:44.29048647,lng:-93.26801274,country:"US"},"America/Denver":{lat:45.731768,lng:-107.612486,country:"US"},"America/Boise":{lat:42.53581321,lng:-113.7918763,country:"US"},"America/Los_Angeles":{lat:47.47421979,lng:-115.9268881,country:"US"},"America/Phoenix":{lat:33.58194114,lng:-112.1958238,country:"US"},"America/New_York":{lat:41.3555235,lng:-72.10002832,country:"US"},"America/Indiana/Indianapolis":{lat:39.82889833,lng:-84.89028121,country:"US"},"America/Kentucky/Louisville":{lat:38.3108773,lng:-85.82128382,country:"US"},"America/Menominee":{lat:45.82246014,lng:-88.06409265,country:"US"},"America/Anchorage":{lat:55.33970868,lng:-160.4971908,country:"US"},"America/Sitka":{lat:55.21397992,lng:-132.8006385,country:"US"},"America/Nome":{lat:60.38864671,lng:-166.1899372,country:"US"},"Pacific/Honolulu":{lat:21.98151227,lng:-159.3710063,country:"US"},"America/Juneau":{lat:58.11540489,lng:-135.438617,country:"US"},"America/Adak":{lat:52.19648968,lng:-174.2004887,country:"US"},"America/Yakutat":{lat:59.54730715,lng:-139.7272183,country:"US"},"America/St_Thomas":{lat:17.75037518,lng:-64.749986,country:"VI"},"America/Montevideo":{lat:-34.47999901,lng:-57.84000247,country:"UY"},"Asia/Samarkand":{lat:42.4047101,lng:59.45165767,country:"UZ"},"Asia/Tashkent":{lat:40.49573102,lng:68.79072587,country:"UZ"},"Pacific/Efate":{lat:-15.51255573,lng:167.1766068,country:"VU"},"America/Caracas":{lat:9.657999007,lng:-68.58999854,country:"VE"},"Asia/Ho_Chi_Minh":{lat:11.32299911,lng:106.1469997,country:"VN"},"Asia/Aden":{lat:13.9789981,lng:45.57400265,country:"YE"},"Africa/Harare":{lat:-17.51961668,lng:30.97003699,country:"ZW"}},A={af:"af-ZA",agq:"agq-CM",ak:"ak-GH",am:"am-ET",ar:"ar-EG",as:"as-IN",asa:"asa-TZ",ast:"ast-ES",az:"az-AZ",bas:"bas-CM",be:"be-BY",bem:"bem-ZM",bez:"bez-TZ",bg:"bg-BG",bm:"bm-Latn",bn:"bn-BD",bo:"bo-IN",br:"br-FR",brx:"brx-IN",bs:"bs-Cyrl",ca:"ca-IT",cgg:"cgg-UG",chr:"chr-US",cs:"cs-CZ",cy:"cy-GB",da:"da-DK",dav:"dav-KE",de:"de-DE",dje:"dje-NE",dsb:"dsb-DE",dua:"dua-CM",dyo:"dyo-SN",dz:"dz-BT",ebu:"ebu-KE",ee:"ee-GH",el:"el-GR",en:"en-US",eo:"eo-001",es:"es-ES",et:"et-EE",eu:"eu-ES",ewo:"ewo-CM",fa:"fa-AF",ff:"ff-CM",fi:"fi-FI",fil:"fil-PH",fo:"fo-FO",fr:"fr-FR",fur:"fur-IT",fy:"fy-NL",ga:"ga-IE",gd:"gd-GB",gl:"gl-ES",gsw:"gsw-CH",gu:"gu-IN",guz:"guz-KE",gv:"gv-IM",ha:"ha-Latn",haw:"haw-US",he:"he-IL",hi:"hi-IN",hr:"hr-HR",hsb:"hsb-DE",hu:"hu-HU",hy:"hy-AM",id:"id-ID",ig:"ig-NG",ii:"ii-CN",is:"is-IS",it:"it-IT",ja:"ja-JP",jgo:"jgo-CM",jmc:"jmc-TZ",ka:"ka-GE",kab:"kab-DZ",kam:"kam-KE",kde:"kde-TZ",kea:"kea-CV",khq:"khq-ML",ki:"ki-KE",kk:"kk-Cyrl",kkj:"kkj-CM",kl:"kl-GL",kln:"kln-KE",km:"km-KH",kn:"kn-IN",ko:"ko-KP",kok:"kok-IN",ks:"ks-Arab",ksb:"ksb-TZ",ksf:"ksf-CM",ksh:"ksh-DE",kw:"kw-GB",ky:"ky-Cyrl",lag:"lag-TZ",lb:"lb-LU",lg:"lg-UG",lkt:"lkt-US",ln:"ln-CD",lo:"lo-LA",lt:"lt-LT",lu:"lu-CD",luo:"luo-KE",luy:"luy-KE",lv:"lv-LV",mas:"mas-KE",mer:"mer-KE",mfe:"mfe-MU",mg:"mg-MG",mgh:"mgh-MZ",mgo:"mgo-CM",mk:"mk-MK",ml:"ml-IN",mn:"mn-Cyrl",mr:"mr-IN",ms:"ms-Latn",mt:"mt-MT",mua:"mua-CM",my:"my-MM",naq:"naq-NA",nb:"nb-NO",nd:"nd-ZW",ne:"ne-NP",nl:"nl-NL",nmg:"nmg-CM",nn:"nn-NO",nnh:"nnh-CM",nus:"nus-SD",nyn:"nyn-UG",om:"om-KE",or:"or-IN",os:"os-GE",pa:"pa-Arab",pl:"pl-PL",ps:"ps-AF",pt:"pt-PT",qu:"qu-BO",rm:"rm-CH",rn:"rn-BI",ro:"ro-RO",rof:"rof-TZ",root:"root",ru:"ru-RU",rw:"rw-RW",rwk:"rwk-TZ",sah:"sah-RU",saq:"saq-KE",sbp:"sbp-TZ",se:"se-SE",seh:"seh-MZ",ses:"ses-ML",sg:"sg-CF",shi:"shi-Latn",si:"si-LK",sk:"sk-SK",sl:"sl-SI",smn:"smn-FI",sn:"sn-ZW",so:"so-SO",sq:"sq-AL",sr:"sr-Cyrl-RS",sv:"sv-SE",sw:"sw-TZ",ta:"ta-LK",te:"te-IN",teo:"teo-KE",th:"th-TH",ti:"ti-ER",to:"to-TO",tr:"tr-TR",twq:"twq-NE",tzm:"tzm-Latn",ug:"ug-Arab",uk:"uk-UA",ur:"ur-PK",uz:"uz-Arab",vai:"vai-Latn",vi:"vi-VN",vun:"vun-TZ",wae:"wae-CH",xog:"xog-UG",yav:"yav-CM",yi:"yi-001",yo:"yo-NG",zgh:"zgh-MA",zh:"zh-Hans",zu:"zu-ZA"},M={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"INR",BV:"NOK",BW:"BWP",BY:"BYR",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHF",CI:"XOF",CK:"NZD",CL:"CLP",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUP",CV:"CVE",CW:"ANG",CX:"AUD",CY:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GGP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"GBP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"HRK",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"EUR",LU:"EUR",LV:"EUR",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRO",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"JOD",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",SS:"SSP",ST:"STD",SV:"USD",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",UM:"USD",US:"USD",UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VEF",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"EUR",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMW",ZW:"USD"},D=()=>{const O={timeZone:null,locale:null};try{if(Intl&&"function"==typeof Intl.DateTimeFormat){const C=Intl.DateTimeFormat().resolvedOptions();O.timeZone=C.timeZoneName||C.timeZone||null,O.locale=C.locale||null}}catch{}return O},b=()=>(O=>{const C=i[`${O||""}`],_=`${O||""}`.split("/");return C?{...C,continent:`${_[0]||""}`.replace(/_/g," ")||null,city:_.length>1&&`${_[1]||""}`.replace(/_/g," ")||null}:null})(D().timeZone);class f{static get dateLocale(){let C="";try{Intl&&"function"==typeof Intl.DateTimeFormat&&(C=Intl.DateTimeFormat().resolvedOptions().locale)}catch{}return C}static get browserLanguage(){try{if(window&&window.navigator)return f.parseISOCode(window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||"en-US")}catch{return"en-US"}return"en-US"}static getLanguageCode(C){return(C.split("-").slice(0,2)[0]||"").toLowerCase()}static parseISOCode(C){const _=(C||"").split("-").slice(0,2),U=(_[0]||"").toLowerCase(),w=(_.length>1?_[1]:"").toUpperCase();return!w&&A[U]?f.parseISOCode(A[U]):w?`${U}-${w}`:`${U}`}}const S=O=>O&&M[`${O}`.toUpperCase()]||null},67081:(it,ge,s)=>{"use strict";s.d(ge,{w:()=>i});class i{static createMark(y){try{if(performance&&void 0===performance.mark)return;performance.mark(y)}catch{}}static measure(y,A,M){try{if(performance&&void 0===performance.measure)return;performance.measure(y,A,M)}catch{}}}},7319:(it,ge,s)=>{"use strict";s.d(ge,{LD:()=>y,gU:()=>A});var i=s(3898),E=s(16711);const y=["Loading chunk","The person is not logged into this app or we are unable to tell","a[b].target.className.indexOf is not a function","t is not a function","USER_NOT_FOUND","INVALID_GEOCODE_DATA","[ UNKNOWN ] HTTP 401 Unauthorized","[ UNKNOWN ] HTTP 404 Not Found","[ UNKNOWN ] HTTP 404 Not Found (Status: 404)","[ LISTING_NOT_FOUND ]","LISTING_NOT_FOUND","LISTING_IN_DELIVERY","Status: 404","USER_SESSION_EXPIRED","USER_LOGIN_INVALID_CREDENTIALS","[ SyntaxError: Unexpected token < in JSON at position 0 ] undefined (Status: 200)","TypeError: Type error","Error retrieving icon","0 Unknown Error","Non-Error exception captured with keys","DELIVERY_ORDER_LOGGI_INVALID_ESTIMATE_PRICE_SERVER_REQUEST","ERROR_LOADING_DIALOG","ACCOUNT_DELETED","USER_BANNED","BANNED (Status: 403)","QuotaExceededError","IDBDatabase","Connection is closing","Database deleted by request of the user","installations/app-offline","offline","www.gstatic.com","DataCloneError",'Could not load "util"',"Can't find variable: Promise","'Promise' is undefined","Promise is not defined","Intl","MutationObserver is not defined","NS_ERROR_NOT_INITIALIZED","In this configuration Angular requires Zone.js","Failed to load Google Maps API","instantSearchSDKJSBridgeClearHighlight","Tabby not available","<!DOCTYPE html>","Entity not found or user is not the owner.","Wrong phone number","User closed the Payment Request UI","Loan at Quara Finance previously cancelled by customer","Illegal invocation","Cart can't be updated: locked cart"];let A=(()=>{class D{static setMSClarityTag(f,S){if(!E.c.inServer)try{window?.clarity&&window.clarity("set",f,S)}catch{}}static shouldReportToSentry(){return!!E.c.reportToSentry}static reportException(f,S,O){if(f){if("string"==typeof f){if("PERMISSION_DENIED"===f||"POSITION_UNAVAILABLE"===f||"TIMEOUT"===f||"UNKNOWN"===f)return;const C=new Error(f);M(C),O&&O(f)}else if(f.error&&f.error.error){if("USER_SESSION_EXPIRED"===f.error.error)return D.addObjectKeysToScope("session",{expired:"YES"}),void D.addBreadcrumb({category:"auth",message:f.error.message||"Session Expired",level:"warning",type:"session"});f.message&&D.addBreadcrumb({category:"error",message:f.message,level:"error",type:f.name||`${f.status}`||"http"}),f.error.message&&D.addBreadcrumb({category:"error",message:f.error.message,level:"error",type:f.error.error||f.error.code||"http"}),D.addObjectKeysToScope("error",f.error);const C=new Error(`[ ${f.error.error} ] ${f.error.message} (Status: ${f.status})`);M(C),O&&O(C.message)}else if(typeof ProgressEvent<"u"&&f instanceof ProgressEvent)E.c.debugAnalitycs&&D.printException(f);else if(f.error){let C=`[ ${f.error} ] ${f.message}`;if("string"!=typeof f.error)if(f.error.length>0){const U=f.error;(0,i.PN)(R=>{R.setExtra("error_count",`${U.length}`)});for(let R=0;R<U.length;R+=1){const V=U[R];V&&(D.addBreadcrumb({category:"error",message:V.message||V.error||"?",level:"error",type:V.error||"unknown"}),D.addObjectKeysToScope(`error[${R}]`,V))}const w=f.error[0];C=`[ ${w.error} ] ${w.message}`}else f.error.message&&(D.addBreadcrumb({category:"error",message:f.error.message||f.error.code||"?",level:"error",type:f.error.error||f.error.code||f.error.name||"unknown"}),D.addObjectKeysToScope("error",f.error),C=`${f.error.message}`);else D.addBreadcrumb({category:"error",message:f.message||f.error||"?",level:"error",type:f.error||f.code||f.name||"unknown"}),D.addObjectKeysToScope("error",f);f.status||0===f.status?C=`${C} (Status: ${f.status})`:f.name&&(C=`${C} (${f.name})`),(f.status||0===f.status)&&(C=`${C} --\x3e (URL: ${f.url})`);const _=new Error(C);D.reportToSentry(_),O&&O(C)}else D.addBreadcrumb({category:"error",message:f.message||f.name||"?",level:"error",type:"js"}),D.addObjectKeysToScope("error",f),D.reportToSentry(f),O&&O(f.message||f.name||"?");if(S)throw f}}static reportToSentry(f){return M(f)}static addObjectKeysToScope(f,S){if(S){let O=!1;for(const C of Object.keys(S))(0,i.PN)(_=>{"message"===C&&(O=!0),_.setExtra(`${f}:${C}`,`${D.objToString(S[C])}`)});!O&&S.message&&(0,i.PN)(C=>{C.setExtra(`${f}:message`,`${D.objToString(S.message)}`)})}}static objToString(f){let S="";if(f)if("string"==typeof f)S=f;else try{S=JSON.stringify(f)}catch{const C=new Array(0);C.push("--- CIRCULAR JSON ---\n");for(const _ of Object.keys(f)){const U=f[_];C.push("string"==typeof U?`"${_}": "${U}"`:`"${_}": "[ object ]"`)}S=C.join("\n")}return S}static addBreadcrumb(f){D.shouldReportToSentry()?E.c.inServer?console.log(JSON.stringify({severity:`${f?.level||"DEBUG"}`.toUpperCase(),labels:{type:f?.type||void 0,level:f?.level||void 0,event_id:f?.event_id||void 0,category:f?.category||void 0,message:f?.message||void 0,data:f?.data||void 0,timestamp:f?.timestamp||void 0},jsonPayload:f?.data||void 0})):(0,i.ZQ)(f):E.c.debugAnalitycs&&D.printBreadcrumb(f)}static printException(f){console.log("\tSentry Catched Error"),console.log("-------------------------------------[ START ]"),console.log(f),console.log("-------------------------------------[ END ]")}static printBreadcrumb(f){console.log("\tSentry Breadcrumb"),console.log("-------------------------------------[ START ]"),console.log(`\tCategory: "${f.category||""}"`),console.log(`\tMessage: "${f.message||""}"`),console.log(`\tLevel: "${f.level||""}"`),console.log(`\tType: "${f.type||""}"`),console.log("-------------------------------------[ END ]")}static{this.filteredError=f=>{if(f){const S=f?.exception?.values?.length?f?.exception?.values[0]?.value:"",O=f?.exception?.values?.length?f?.exception?.values[0]?.stacktrace?.frames:[],C=f?.exception?.values?.length?f?.exception?.values[0]?.type:"",_=f?.breadcrumbs?.length?f?.breadcrumbs:[];return S?.includes("Order not found")&&("delivery_details"===f.transaction||"search-delivery"===f.transaction)||S?.includes("Java object is gone")||"delivery_create_overview"===f.transaction||"TypeError"===C&&"delivery_details"===f.transaction||"AxiosError"===C&&_?.some(U=>U.message?.includes("TamaraWidgetV2 has an Error"))||"TypeError"===C&&O?.some(U=>U.filename?.includes("/inshop/launcher-v2.js")||U.filename?.includes("/inShop/push-notifications.js")||U.filename?.includes("clarity.js")||U.filename?.includes("<anonymous>")||U.filename?.includes("popsy.accounts.google")||U.filename?.includes("gtm.js")||U.filename?.includes("/tasheel-checkout.js")||U.filename?.includes("forms/main.js")||U.filename?.includes("gp/p/js/pay.js")||U.filename?.includes("tag/uet/"))||"SecurityError"===C&&S?.includes("Blocked a frame")||S?.includes("Uncaught (in promise): RangeError: Maximum call stack size")&&S?.includes("clarity.js")?null:f}return null}}}return D})();const M=D=>{if(A.shouldReportToSentry())if(E.c.inServer)console.log(JSON.stringify({jsonPayload:{name:D?.name||void 0,message:D?.message||void 0,stack:D?.stack||void 0},severity:"ERROR",labels:{name:D?.name||void 0,message:D?.message||void 0,stack:D?.stack||void 0}}));else try{(0,i.Cp)(D);const f=`${D.message||""}`.toLowerCase();if(f){let S=!1;for(const O of y)if(f.includes(O.toLowerCase())){S=!0;break}S||(A.setMSClarityTag("sentry-error",`${D.name||"Unknown Error"}`),A.setMSClarityTag("sentry-message",`${D.message||"-"}`))}}catch(f){console.warn("Error reporting to Sentry"),console.warn(f)}else E.c.debugAnalitycs&&A.printException(D)}},78766:(it,ge,s)=>{"use strict";s.d(ge,{Y0:()=>ne,D4:()=>Ft,Rj:()=>At,G6:()=>De,Hq:()=>Wt,Nm:()=>Xe,Tu:()=>$e,gI:()=>Ee,c6:()=>Pe,S6:()=>st,ss:()=>Qt,U:()=>gt,Vn:()=>ce,Ul:()=>oe,XB:()=>se,Rl:()=>We,ru:()=>re});const i={\u0102:"A",\u1eae:"A",\u1eb6:"A",\u1eb0:"A",\u1eb2:"A",\u1eb4:"A",\u01cd:"A",\u00c2:"A",\u1ea4:"A",\u1eac:"A",\u1ea6:"A",\u1ea8:"A",\u1eaa:"A",\u00c1:"A",\u01de:"A",\u0226:"A",\u01e0:"A",\u1ea0:"A",\u0200:"A",\u00c0:"A",\u1ea2:"A",\u0202:"A",\u0100:"A",\u0104:"A",\u00c5:"A",\u01fa:"A",\u1e00:"A",\u023a:"A",\u00c3:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY",\u1e02:"B",\u1e04:"B",\u0181:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0106:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0108:"C",\u010a:"C",\u0187:"C",\u023b:"C",\u010e:"D",\u1e10:"D",\u1e12:"D",\u1e0a:"D",\u1e0c:"D",\u018a:"D",\u1e0e:"D",\u01f2:"D",\u01c5:"D",\u0110:"D",\u00d0:"D",\u018b:"D",\u01f1:"DZ",\u01c4:"DZ",\u00c9:"E",\u0114:"E",\u011a:"E",\u0228:"E",\u1e1c:"E",\u00ca:"E",\u1ebe:"E",\u1ec6:"E",\u1ec0:"E",\u1ec2:"E",\u1ec4:"E",\u1e18:"E",\u00cb:"E",\u0116:"E",\u1eb8:"E",\u0204:"E",\u00c8:"E",\u1eba:"E",\u0206:"E",\u0112:"E",\u1e16:"E",\u1e14:"E",\u0118:"E",\u0246:"E",\u1ebc:"E",\u1e1a:"E",\ua76a:"ET",\u1e1e:"F",\u0191:"F",\u01f4:"G",\u011e:"G",\u01e6:"G",\u0122:"G",\u011c:"G",\u0120:"G",\u0193:"G",\u1e20:"G",\u01e4:"G",\u1e2a:"H",\u021e:"H",\u1e28:"H",\u0124:"H",\u2c67:"H",\u1e26:"H",\u1e22:"H",\u1e24:"H",\u0126:"H",\u00cd:"I",\u012c:"I",\u01cf:"I",\u00ce:"I",\u00cf:"I",\u1e2e:"I",\u0130:"I",\u1eca:"I",\u0208:"I",\u00cc:"I",\u1ec8:"I",\u020a:"I",\u012a:"I",\u012e:"I",\u0197:"I",\u0128:"I",\u1e2c:"I",\ua779:"D",\ua77b:"F",\ua77d:"G",\ua782:"R",\ua784:"S",\ua786:"T",\ua76c:"IS",\u0134:"J",\u0248:"J",\u1e30:"K",\u01e8:"K",\u0136:"K",\u2c69:"K",\ua742:"K",\u1e32:"K",\u0198:"K",\u1e34:"K",\ua740:"K",\ua744:"K",\u0139:"L",\u023d:"L",\u013d:"L",\u013b:"L",\u1e3c:"L",\u1e36:"L",\u1e38:"L",\u2c60:"L",\ua748:"L",\u1e3a:"L",\u013f:"L",\u2c62:"L",\u01c8:"L",\u0141:"L",\u01c7:"LJ",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u0143:"N",\u0147:"N",\u0145:"N",\u1e4a:"N",\u1e44:"N",\u1e46:"N",\u01f8:"N",\u019d:"N",\u1e48:"N",\u0220:"N",\u01cb:"N",\u00d1:"N",\u01ca:"NJ",\u00d3:"O",\u014e:"O",\u01d1:"O",\u00d4:"O",\u1ed0:"O",\u1ed8:"O",\u1ed2:"O",\u1ed4:"O",\u1ed6:"O",\u022a:"O",\u022e:"O",\u0230:"O",\u1ecc:"O",\u0150:"O",\u020c:"O",\u00d2:"O",\u1ece:"O",\u01a0:"O",\u1eda:"O",\u1ee2:"O",\u1edc:"O",\u1ede:"O",\u1ee0:"O",\u020e:"O",\ua74a:"O",\ua74c:"O",\u014c:"O",\u1e52:"O",\u1e50:"O",\u019f:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u00d5:"O",\u1e4c:"O",\u1e4e:"O",\u022c:"O",\u01a2:"OI",\ua74e:"OO",\u0190:"E",\u0186:"O",\u0222:"OU",\u1e54:"P",\u1e56:"P",\ua752:"P",\u01a4:"P",\ua754:"P",\u2c63:"P",\ua750:"P",\ua758:"Q",\ua756:"Q",\u0154:"R",\u0158:"R",\u0156:"R",\u1e58:"R",\u1e5a:"R",\u1e5c:"R",\u0210:"R",\u0212:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua73e:"C",\u018e:"E",\u015a:"S",\u1e64:"S",\u0160:"S",\u1e66:"S",\u015e:"S",\u015c:"S",\u0218:"S",\u1e60:"S",\u1e62:"S",\u1e68:"S",\u0164:"T",\u0162:"T",\u1e70:"T",\u021a:"T",\u023e:"T",\u1e6a:"T",\u1e6c:"T",\u01ac:"T",\u1e6e:"T",\u01ae:"T",\u0166:"T",\u2c6f:"A",\ua780:"L",\u019c:"M",\u0245:"V",\ua728:"TZ",\u00da:"U",\u016c:"U",\u01d3:"U",\u00db:"U",\u1e76:"U",\u01d7:"U",\u01d9:"U",\u01db:"U",\u01d5:"U",\u1e72:"U",\u1ee4:"U",\u0170:"U",\u0214:"U",\u00d9:"U",\u1ee6:"U",\u01af:"U",\u1ee8:"U",\u1ef0:"U",\u1eea:"U",\u1eec:"U",\u1eee:"U",\u0216:"U",\u016a:"U",\u1e7a:"U",\u0172:"U",\u016e:"U",\u0168:"U",\u1e78:"U",\u1e74:"U",\ua75e:"V",\u1e7e:"V",\u01b2:"V",\u1e7c:"V",\ua760:"VY",\u1e82:"W",\u0174:"W",\u1e84:"W",\u1e86:"W",\u1e88:"W",\u1e80:"W",\u2c72:"W",\u1e8c:"X",\u1e8a:"X",\u00dd:"Y",\u0176:"Y",\u0178:"Y",\u1e8e:"Y",\u1ef4:"Y",\u1ef2:"Y",\u01b3:"Y",\u1ef6:"Y",\u1efe:"Y",\u0232:"Y",\u024e:"Y",\u1ef8:"Y",\u0179:"Z",\u017d:"Z",\u1e90:"Z",\u2c6b:"Z",\u017b:"Z",\u1e92:"Z",\u0224:"Z",\u1e94:"Z",\u01b5:"Z",\u0132:"IJ",\u0152:"OE",\u1d00:"A",\u1d01:"AE",\u0299:"B",\u1d03:"B",\u1d04:"C",\u1d05:"D",\u1d07:"E",\ua730:"F",\u0262:"G",\u029b:"G",\u029c:"H",\u026a:"I",\u0281:"R",\u1d0a:"J",\u1d0b:"K",\u029f:"L",\u1d0c:"L",\u1d0d:"M",\u0274:"N",\u1d0f:"O",\u0276:"OE",\u1d10:"O",\u1d15:"OU",\u1d18:"P",\u0280:"R",\u1d0e:"N",\u1d19:"R",\ua731:"S",\u1d1b:"T",\u2c7b:"E",\u1d1a:"R",\u1d1c:"U",\u1d20:"V",\u1d21:"W",\u028f:"Y",\u1d22:"Z",\u00e1:"a",\u0103:"a",\u1eaf:"a",\u1eb7:"a",\u1eb1:"a",\u1eb3:"a",\u1eb5:"a",\u01ce:"a",\u00e2:"a",\u1ea5:"a",\u1ead:"a",\u1ea7:"a",\u1ea9:"a",\u1eab:"a",\u01df:"a",\u0227:"a",\u01e1:"a",\u1ea1:"a",\u0201:"a",\u00e0:"a",\u1ea3:"a",\u0203:"a",\u0101:"a",\u0105:"a",\u1d8f:"a",\u1e9a:"a",\u00e5:"a",\u01fb:"a",\u1e01:"a",\u2c65:"a",\u00e3:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay",\u1e03:"b",\u1e05:"b",\u0253:"b",\u1e07:"b",\u1d6c:"b",\u1d80:"b",\u0180:"b",\u0183:"b",\u0275:"o",\u0107:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0109:"c",\u0255:"c",\u010b:"c",\u0188:"c",\u023c:"c",\u010f:"d",\u1e11:"d",\u1e13:"d",\u0221:"d",\u1e0b:"d",\u1e0d:"d",\u0257:"d",\u1d91:"d",\u1e0f:"d",\u1d6d:"d",\u1d81:"d",\u0256:"d",\u018c:"d",\u0131:"i",\u0237:"j",\u025f:"j",\u0284:"j",\u01f3:"dz",\u01c6:"dz",\u00e9:"e",\u0115:"e",\u011b:"e",\u0229:"e",\u1e1d:"e",\u00ea:"e",\u1ebf:"e",\u1ec7:"e",\u1ec1:"e",\u1ec3:"e",\u1ec5:"e",\u1e19:"e",\u00eb:"e",\u0117:"e",\u1eb9:"e",\u0205:"e",\u00e8:"e",\u1ebb:"e",\u0207:"e",\u0113:"e",\u1e17:"e",\u1e15:"e",\u2c78:"e",\u0119:"e",\u1d92:"e",\u0247:"e",\u1ebd:"e",\u1e1b:"e",\ua76b:"et",\u1e1f:"f",\u0192:"f",\u1d6e:"f",\u1d82:"f",\u01f5:"g",\u011f:"g",\u01e7:"g",\u0123:"g",\u011d:"g",\u0121:"g",\u0260:"g",\u1e21:"g",\u1d83:"g",\u01e5:"g",\u1e2b:"h",\u021f:"h",\u1e29:"h",\u0125:"h",\u2c68:"h",\u1e27:"h",\u1e23:"h",\u1e25:"h",\u0266:"h",\u1e96:"h",\u0127:"h",\u0195:"hv",\u00ed:"i",\u012d:"i",\u01d0:"i",\u00ee:"i",\u00ef:"i",\u1e2f:"i",\u1ecb:"i",\u0209:"i",\u00ec:"i",\u1ec9:"i",\u020b:"i",\u012b:"i",\u012f:"i",\u1d96:"i",\u0268:"i",\u0129:"i",\u1e2d:"i",\ua77a:"d",\ua77c:"f",\u1d79:"g",\ua783:"r",\ua785:"s",\ua787:"t",\ua76d:"is",\u01f0:"j",\u0135:"j",\u029d:"j",\u0249:"j",\u1e31:"k",\u01e9:"k",\u0137:"k",\u2c6a:"k",\ua743:"k",\u1e33:"k",\u0199:"k",\u1e35:"k",\u1d84:"k",\ua741:"k",\ua745:"k",\u013a:"l",\u019a:"l",\u026c:"l",\u013e:"l",\u013c:"l",\u1e3d:"l",\u0234:"l",\u1e37:"l",\u1e39:"l",\u2c61:"l",\ua749:"l",\u1e3b:"l",\u0140:"l",\u026b:"l",\u1d85:"l",\u026d:"l",\u0142:"l",\u01c9:"lj",\u017f:"s",\u1e9c:"s",\u1e9b:"s",\u1e9d:"s",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u1d6f:"m",\u1d86:"m",\u0144:"n",\u0148:"n",\u0146:"n",\u1e4b:"n",\u0235:"n",\u1e45:"n",\u1e47:"n",\u01f9:"n",\u0272:"n",\u1e49:"n",\u019e:"n",\u1d70:"n",\u1d87:"n",\u0273:"n",\u00f1:"n",\u01cc:"nj",\u00f3:"o",\u014f:"o",\u01d2:"o",\u00f4:"o",\u1ed1:"o",\u1ed9:"o",\u1ed3:"o",\u1ed5:"o",\u1ed7:"o",\u022b:"o",\u022f:"o",\u0231:"o",\u1ecd:"o",\u0151:"o",\u020d:"o",\u00f2:"o",\u1ecf:"o",\u01a1:"o",\u1edb:"o",\u1ee3:"o",\u1edd:"o",\u1edf:"o",\u1ee1:"o",\u020f:"o",\ua74b:"o",\ua74d:"o",\u2c7a:"o",\u014d:"o",\u1e53:"o",\u1e51:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u00f5:"o",\u1e4d:"o",\u1e4f:"o",\u022d:"o",\u01a3:"oi",\ua74f:"oo",\u025b:"e",\u1d93:"e",\u0254:"o",\u1d97:"o",\u0223:"ou",\u1e55:"p",\u1e57:"p",\ua753:"p",\u01a5:"p",\u1d71:"p",\u1d88:"p",\ua755:"p",\u1d7d:"p",\ua751:"p",\ua759:"q",\u02a0:"q",\u024b:"q",\ua757:"q",\u0155:"r",\u0159:"r",\u0157:"r",\u1e59:"r",\u1e5b:"r",\u1e5d:"r",\u0211:"r",\u027e:"r",\u1d73:"r",\u0213:"r",\u1e5f:"r",\u027c:"r",\u1d72:"r",\u1d89:"r",\u024d:"r",\u027d:"r",\u2184:"c",\ua73f:"c",\u0258:"e",\u027f:"r",\u015b:"s",\u1e65:"s",\u0161:"s",\u1e67:"s",\u015f:"s",\u015d:"s",\u0219:"s",\u1e61:"s",\u1e63:"s",\u1e69:"s",\u0282:"s",\u1d74:"s",\u1d8a:"s",\u023f:"s",\u0261:"g",\u1d11:"o",\u1d13:"o",\u1d1d:"u",\u0165:"t",\u0163:"t",\u1e71:"t",\u021b:"t",\u0236:"t",\u1e97:"t",\u2c66:"t",\u1e6b:"t",\u1e6d:"t",\u01ad:"t",\u1e6f:"t",\u1d75:"t",\u01ab:"t",\u0288:"t",\u0167:"t",\u1d7a:"th",\u0250:"a",\u1d02:"ae",\u01dd:"e",\u1d77:"g",\u0265:"h",\u02ae:"h",\u02af:"h",\u1d09:"i",\u029e:"k",\ua781:"l",\u026f:"m",\u0270:"m",\u1d14:"oe",\u0279:"r",\u027b:"r",\u027a:"r",\u2c79:"r",\u0287:"t",\u028c:"v",\u028d:"w",\u028e:"y",\ua729:"tz",\u00fa:"u",\u016d:"u",\u01d4:"u",\u00fb:"u",\u1e77:"u",\u01d8:"u",\u01da:"u",\u01dc:"u",\u01d6:"u",\u1e73:"u",\u1ee5:"u",\u0171:"u",\u0215:"u",\u00f9:"u",\u1ee7:"u",\u01b0:"u",\u1ee9:"u",\u1ef1:"u",\u1eeb:"u",\u1eed:"u",\u1eef:"u",\u0217:"u",\u016b:"u",\u1e7b:"u",\u0173:"u",\u1d99:"u",\u016f:"u",\u0169:"u",\u1e79:"u",\u1e75:"u",\u1d6b:"ue",\ua778:"um",\u2c74:"v",\ua75f:"v",\u1e7f:"v",\u028b:"v",\u1d8c:"v",\u2c71:"v",\u1e7d:"v",\ua761:"vy",\u1e83:"w",\u0175:"w",\u1e85:"w",\u1e87:"w",\u1e89:"w",\u1e81:"w",\u2c73:"w",\u1e98:"w",\u1e8d:"x",\u1e8b:"x",\u1d8d:"x",\u00fd:"y",\u0177:"y",\u00ff:"y",\u1e8f:"y",\u1ef5:"y",\u1ef3:"y",\u01b4:"y",\u1ef7:"y",\u1eff:"y",\u0233:"y",\u1e99:"y",\u024f:"y",\u1ef9:"y",\u017a:"z",\u017e:"z",\u1e91:"z",\u0291:"z",\u2c6c:"z",\u017c:"z",\u1e93:"z",\u0225:"z",\u1e95:"z",\u1d76:"z",\u1d8e:"z",\u0290:"z",\u01b6:"z",\u0240:"z",\ufb00:"ff",\ufb03:"ffi",\ufb04:"ffl",\ufb01:"fi",\ufb02:"fl",\u0133:"ij",\u0153:"oe",\ufb06:"st",\u2090:"a",\u2091:"e",\u1d62:"i",\u2c7c:"j",\u2092:"o",\u1d63:"r",\u1d64:"u",\u1d65:"v",\u2093:"x",\u0621:"e",\u0622:"a",\u0623:"a",\u0624:"w",\u0625:"i",\u0626:"y",\u0627:"a",\u0628:"b",\u0629:"t",\u062a:"t",\u062b:"th",\u062c:"j",\u062d:"h",\u062e:"kh",\u062f:"d",\u0630:"dh",\u0631:"r",\u0632:"z",\u0633:"s",\u0634:"sh",\u0635:"s",\u0636:"d",\u0637:"t",\u0638:"z",\u0639:"e",\u063a:"gh",\u0640:"_",\u0641:"f",\u0642:"q",\u0643:"k",\u0644:"l",\u0645:"m",\u0646:"n",\u0647:"h",\u0648:"w",\u0649:"a",\u064a:"y","\u064e\u200e":"a","\u064f":"u","\u0650\u200e":"i","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9",\u00df:"ss",\u00e4:"ae",\u00c4:"Ae",\u00f6:"oe",\u00d6:"Oe",\u00fc:"ue",\u00dc:"Ue",\u0686:"ch",\u06a9:"k",\u06af:"g",\u067e:"p",\u0698:"zh",\u06cc:"y","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9",\u067c:"p",\u0681:"z",\u0685:"c",\u0689:"d",\ufeab:"d",\ufead:"r",\u0693:"r",\ufeaf:"z",\u0696:"g",\u069a:"x",\u06ab:"g",\u06bc:"n",\u06c0:"e",\u06d0:"e",\u06cd:"ai",\u0679:"t",\u0688:"d",\u0691:"r",\u06ba:"n",\u06c1:"h",\u06be:"h",\u06d2:"e",\u0410:"A",\u0430:"a",\u0411:"B",\u0431:"b",\u0412:"V",\u0432:"v",\u0413:"G",\u0433:"g",\u0414:"D",\u0434:"d",\u0415:"E",\u0435:"e",\u0416:"Zh",\u0436:"zh",\u0417:"Z",\u0437:"z",\u0418:"I",\u0438:"i",\u0419:"J",\u0439:"j",\u041a:"K",\u043a:"k",\u041b:"L",\u043b:"l",\u041c:"M",\u043c:"m",\u041d:"N",\u043d:"n",\u041e:"O",\u043e:"o",\u041f:"P",\u043f:"p",\u0420:"R",\u0440:"r",\u0421:"S",\u0441:"s",\u0422:"T",\u0442:"t",\u0423:"U",\u0443:"u",\u0424:"F",\u0444:"f",\u0425:"H",\u0445:"h",\u0426:"Cz",\u0446:"cz",\u0427:"Ch",\u0447:"ch",\u0428:"Sh",\u0448:"sh",\u0429:"Shh",\u0449:"shh",\u042a:"",\u044a:"",\u042b:"Y",\u044b:"y",\u042c:"",\u044c:"",\u042d:"E",\u044d:"e",\u042e:"Yu",\u044e:"yu",\u042f:"Ya",\u044f:"ya",\u0401:"Yo",\u0451:"yo",\u0561:"a",\u0562:"b",\u0563:"g",\u0564:"d",\u0565:"ye",\u0566:"z",\u0567:"e",\u0568:"u",\u0569:"t",\u056a:"zh",\u056b:"i",\u056c:"l",\u056d:"kh",\u056e:"ts",\u056f:"k",\u0570:"h",\u0571:"dz",\u0572:"r",\u0573:"j",\u0574:"m",\u0575:"j",\u0576:"n",\u0577:"sh",\u0578:"vo",\u0579:"ch",\u057a:"p",\u057b:"j",\u057c:"r",\u057d:"s",\u057e:"v",\u057f:"t",\u0580:"re",\u0581:"ts",\u0578\u0582:"u",\u0582:"v",\u0583:"p",\u0584:"q",\u0585:"o",\u0586:"f",\u0587:"yev",\u10d0:"a",\u10d1:"b",\u10d2:"g",\u10d3:"d",\u10d4:"e",\u10d5:"v",\u10d6:"z",\u10d7:"t",\u10d8:"i",\u10d9:"k",\u10da:"l",\u10db:"m",\u10dc:"n",\u10dd:"o",\u10de:"p",\u10df:"zh",\u10e0:"r",\u10e1:"s",\u10e2:"t",\u10e3:"u",\u10e4:"ph",\u10e5:"q",\u10e6:"gh",\u10e7:"k",\u10e8:"sh",\u10e9:"ch",\u10ea:"ts",\u10eb:"dz",\u10ec:"ts",\u10ed:"tch",\u10ee:"kh",\u10ef:"j",\u10f0:"h",\u0780:"h",\u0781:"sh",\u0782:"n",\u0783:"r",\u0784:"b",\u0785:"lh",\u0786:"k",\u0787:"a",\u0788:"v",\u0789:"m",\u078a:"f",\u078b:"dh",\u078c:"th",\u078d:"l",\u078e:"g",\u078f:"gn",\u0790:"s",\u0791:"d",\u0792:"z",\u0793:"t",\u0794:"y",\u0795:"p",\u0796:"j",\u0797:"ch",\u0798:"tt",\u0799:"hh",\u079a:"kh",\u079b:"th",\u079c:"z",\u079d:"sh",\u079e:"s",\u079f:"d",\u07a0:"t",\u07a1:"z",\u07a2:"a",\u07a3:"gh",\u07a4:"q",\u07a5:"w","\u07a6":"a","\u07a7":"aa","\u07a8":"i","\u07a9":"ee","\u07aa":"u","\u07ab":"oo","\u07ac":"e","\u07ad":"ey","\u07ae":"o","\u07af":"oa","\u07b0":"",\u03b1:"a",\u03b2:"v",\u03b3:"g",\u03b4:"d",\u03b5:"e",\u03b6:"z",\u03b7:"i",\u03b8:"th",\u03b9:"i",\u03ba:"k",\u03bb:"l",\u03bc:"m",\u03bd:"n",\u03be:"ks",\u03bf:"o",\u03c0:"p",\u03c1:"r",\u03c3:"s",\u03c4:"t",\u03c5:"y",\u03c6:"f",\u03c7:"x",\u03c8:"ps",\u03c9:"o",\u03ac:"a",\u03ad:"e",\u03af:"i",\u03cc:"o",\u03cd:"y",\u03ae:"i",\u03ce:"o",\u03c2:"s",\u03ca:"i",\u03b0:"y",\u03cb:"y",\u0390:"i",\u0391:"A",\u0392:"B",\u0393:"G",\u0394:"D",\u0395:"E",\u0396:"Z",\u0397:"I",\u0398:"TH",\u0399:"I",\u039a:"K",\u039b:"L",\u039c:"M",\u039d:"N",\u039e:"KS",\u039f:"O",\u03a0:"P",\u03a1:"R",\u03a3:"S",\u03a4:"T",\u03a5:"Y",\u03a6:"F",\u03a7:"X",\u03a8:"PS",\u03a9:"O",\u0386:"A",\u0388:"E",\u038a:"I",\u038c:"O",\u038e:"Y",\u0389:"I",\u038f:"O",\u03aa:"I",\u03ab:"Y",\u040c:"Kj",\u045c:"kj",\u0409:"Lj",\u0459:"lj",\u040a:"Nj",\u045a:"nj",\u0422\u0441:"Ts",\u0442\u0441:"ts",\u0404:"Ye",\u0406:"I",\u0407:"Yi",\u0490:"G",\u0454:"ye",\u0456:"i",\u0457:"yi",\u0491:"g",\u0111:"dj",\u0452:"dj",\u0458:"j",\u045b:"c",\u045f:"dz",\u0402:"Dj",\u0408:"j",\u040b:"C",\u040f:"Dz"};var y=s(86343),A=s(84288),M=s(48623);const D={aa:{name:"Afar",native:"Afar"},ab:{name:"Abkhazian",native:"\u0410\u04a7\u0441\u0443\u0430"},af:{name:"Afrikaans",native:"Afrikaans"},ak:{name:"Akan",native:"Akana"},am:{name:"Amharic",native:"\u12a0\u121b\u122d\u129b"},an:{name:"Aragonese",native:"Aragon\xe9s"},ar:{name:"Arabic",native:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",rtl:1},as:{name:"Assamese",native:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avar",native:"\u0410\u0432\u0430\u0440"},ay:{name:"Aymara",native:"Aymar"},az:{name:"Azerbaijani",native:"Az\u0259rbaycanca / \u0622\u0630\u0631\u0628\u0627\u064a\u062c\u0627\u0646"},ba:{name:"Bashkir",native:"\u0411\u0430\u0448\u04a1\u043e\u0440\u0442"},be:{name:"Belarusian",native:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bg:{name:"Bulgarian",native:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},bh:{name:"Bihari",native:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",native:"Bislama"},bm:{name:"Bambara",native:"Bamanankan"},bn:{name:"Bengali",native:"\u09ac\u09be\u0982\u09b2\u09be"},bo:{name:"Tibetan",native:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42 / Bod skad"},br:{name:"Breton",native:"Brezhoneg"},bs:{name:"Bosnian",native:"Bosanski"},ca:{name:"Catalan",native:"Catal\xe0"},ce:{name:"Chechen",native:"\u041d\u043e\u0445\u0447\u0438\u0439\u043d"},ch:{name:"Chamorro",native:"Chamoru"},co:{name:"Corsican",native:"Corsu"},cr:{name:"Cree",native:"Nehiyaw"},cs:{name:"Czech",native:"\u010cesky"},cu:{name:"Old Church Slavonic / Old Bulgarian",native:"\u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a / slov\u011bn\u012dsk\u016d"},cv:{name:"Chuvash",native:"\u0427\u0103\u0432\u0430\u0448"},cy:{name:"Welsh",native:"Cymraeg"},da:{name:"Danish",native:"Dansk"},de:{name:"German",native:"Deutsch"},dv:{name:"Divehi",native:"\u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0",rtl:1},dz:{name:"Dzongkha",native:"\u0f47\u0f7c\u0f44\u0f0b\u0f41"},ee:{name:"Ewe",native:"\u0190\u028b\u025b"},el:{name:"Greek",native:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},en:{name:"English",native:"English"},eo:{name:"Esperanto",native:"Esperanto"},es:{name:"Spanish",native:"Espa\xf1ol"},et:{name:"Estonian",native:"Eesti"},eu:{name:"Basque",native:"Euskara"},fa:{name:"Persian",native:"\u0641\u0627\u0631\u0633\u06cc",rtl:1},ff:{name:"Peul",native:"Fulfulde"},fi:{name:"Finnish",native:"Suomi"},fj:{name:"Fijian",native:"Na Vosa Vakaviti"},fo:{name:"Faroese",native:"F\xf8royskt"},fr:{name:"French",native:"Fran\xe7ais"},fy:{name:"West Frisian",native:"Frysk"},ga:{name:"Irish",native:"Gaeilge"},gd:{name:"Scottish Gaelic",native:"G\xe0idhlig"},gl:{name:"Galician",native:"Galego"},gn:{name:"Guarani",native:"Ava\xf1e'\u1ebd"},gu:{name:"Gujarati",native:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},gv:{name:"Manx",native:"Gaelg"},ha:{name:"Hausa",native:"\u0647\u064e\u0648\u064f\u0633\u064e",rtl:1},he:{name:"Hebrew",native:"\u05e2\u05d1\u05e8\u05d9\u05ea",rtl:1},hi:{name:"Hindi",native:"\u0939\u093f\u0928\u094d\u0926\u0940"},ho:{name:"Hiri Motu",native:"Hiri Motu"},hr:{name:"Croatian",native:"Hrvatski"},ht:{name:"Haitian",native:"Kr\xe8yol ayisyen"},hu:{name:"Hungarian",native:"Magyar"},hy:{name:"Armenian",native:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},hz:{name:"Herero",native:"Otsiherero"},ia:{name:"Interlingua",native:"Interlingua"},id:{name:"Indonesian",native:"Bahasa Indonesia"},ie:{name:"Interlingue",native:"Interlingue"},ig:{name:"Igbo",native:"Igbo"},ii:{name:"Sichuan Yi",native:"\ua187\ua259 / \u56db\u5ddd\u5f5d\u8bed"},ik:{name:"Inupiak",native:"I\xf1upiak"},io:{name:"Ido",native:"Ido"},is:{name:"Icelandic",native:"\xcdslenska"},it:{name:"Italian",native:"Italiano"},iu:{name:"Inuktitut",native:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",native:"\u65e5\u672c\u8a9e"},jv:{name:"Javanese",native:"Basa Jawa"},ka:{name:"Georgian",native:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},kg:{name:"Kongo",native:"KiKongo"},ki:{name:"Kikuyu",native:"G\u0129k\u0169y\u0169"},kj:{name:"Kuanyama",native:"Kuanyama"},kk:{name:"Kazakh",native:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},kl:{name:"Greenlandic",native:"Kalaallisut"},km:{name:"Cambodian",native:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},kn:{name:"Kannada",native:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},ko:{name:"Korean",native:"\ud55c\uad6d\uc5b4"},kr:{name:"Kanuri",native:"Kanuri"},ks:{name:"Kashmiri",native:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940 / \u0643\u0634\u0645\u064a\u0631\u064a",rtl:1},ku:{name:"Kurdish",native:"Kurd\xee / \u0643\u0648\u0631\u062f\u06cc",rtl:1},kv:{name:"Komi",native:"\u041a\u043e\u043c\u0438"},kw:{name:"Cornish",native:"Kernewek"},ky:{name:"Kirghiz",native:"K\u0131rg\u0131zca / \u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430"},la:{name:"Latin",native:"Latina"},lb:{name:"Luxembourgish",native:"L\xebtzebuergesch"},lg:{name:"Ganda",native:"Luganda"},li:{name:"Limburgian",native:"Limburgs"},ln:{name:"Lingala",native:"Ling\xe1la"},lo:{name:"Laotian",native:"\u0ea5\u0eb2\u0ea7 / Pha xa lao"},lt:{name:"Lithuanian",native:"Lietuvi\u0173"},lv:{name:"Latvian",native:"Latvie\u0161u"},mg:{name:"Malagasy",native:"Malagasy"},mh:{name:"Marshallese",native:"Kajin Majel / Ebon"},mi:{name:"Maori",native:"M\u0101ori"},mk:{name:"Macedonian",native:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438"},ml:{name:"Malayalam",native:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mn:{name:"Mongolian",native:"\u041c\u043e\u043d\u0433\u043e\u043b"},mo:{name:"Moldovan",native:"Moldoveneasc\u0103"},mr:{name:"Marathi",native:"\u092e\u0930\u093e\u0920\u0940"},ms:{name:"Malay",native:"Bahasa Melayu"},mt:{name:"Maltese",native:"bil-Malti"},my:{name:"Burmese",native:"\u1019\u103c\u1014\u103a\u1019\u102c\u1005\u102c"},na:{name:"Nauruan",native:"Dorerin Naoero"},nd:{name:"North Ndebele",native:"Sindebele"},ne:{name:"Nepali",native:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",native:"Oshiwambo"},nl:{name:"Dutch",native:"Nederlands"},nn:{name:"Norwegian Nynorsk",native:"Norsk (nynorsk)"},no:{name:"Norwegian",native:"Norsk (bokm\xe5l / riksm\xe5l)"},nr:{name:"South Ndebele",native:"isiNdebele"},nv:{name:"Navajo",native:"Din\xe9 bizaad"},ny:{name:"Chichewa",native:"Chi-Chewa"},oc:{name:"Occitan",native:"Occitan"},oj:{name:"Ojibwa",native:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0 / Anishinaabemowin"},om:{name:"Oromo",native:"Oromoo"},or:{name:"Oriya",native:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian / Ossetic",native:"\u0418\u0440\u043e\u043d\u0430\u0443"},pa:{name:"Panjabi / Punjabi",native:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 / \u092a\u0902\u091c\u093e\u092c\u0940 / \u067e\u0646\u062c\u0627\u0628\u064a"},pi:{name:"Pali",native:"P\u0101li / \u092a\u093e\u0934\u093f"},pl:{name:"Polish",native:"Polski"},ps:{name:"Pashto",native:"\u067e\u069a\u062a\u0648",rtl:1},pt:{name:"Portuguese",native:"Portugu\xeas"},qu:{name:"Quechua",native:"Runa Simi"},rm:{name:"Raeto Romance",native:"Rumantsch"},rn:{name:"Kirundi",native:"Kirundi"},ro:{name:"Romanian",native:"Rom\xe2n\u0103"},ru:{name:"Russian",native:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},rw:{name:"Rwandi",native:"Kinyarwandi"},sa:{name:"Sanskrit",native:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",native:"Sardu"},sd:{name:"Sindhi",native:"\u0938\u093f\u0928\u0927\u093f"},se:{name:"Northern Sami",native:"S\xe1megiella"},sg:{name:"Sango",native:"S\xe4ng\xf6"},sh:{name:"Serbo-Croatian",native:"Srpskohrvatski / \u0421\u0440\u043f\u0441\u043a\u043e\u0445\u0440\u0432\u0430\u0442\u0441\u043a\u0438"},si:{name:"Sinhalese",native:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",native:"Sloven\u010dina"},sl:{name:"Slovenian",native:"Sloven\u0161\u010dina"},sm:{name:"Samoan",native:"Gagana Samoa"},sn:{name:"Shona",native:"chiShona"},so:{name:"Somalia",native:"Soomaaliga"},sq:{name:"Albanian",native:"Shqip"},sr:{name:"Serbian",native:"\u0421\u0440\u043f\u0441\u043a\u0438"},ss:{name:"Swati",native:"SiSwati"},st:{name:"Southern Sotho",native:"Sesotho"},su:{name:"Sundanese",native:"Basa Sunda"},sv:{name:"Swedish",native:"Svenska"},sw:{name:"Swahili",native:"Kiswahili"},ta:{name:"Tamil",native:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",native:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",native:"\u0422\u043e\u04b7\u0438\u043a\u04e3"},th:{name:"Thai",native:"\u0e44\u0e17\u0e22 / Phasa Thai"},ti:{name:"Tigrinya",native:"\u1275\u130d\u122d\u129b"},tk:{name:"Turkmen",native:"\u0422\u0443\u0440\u043a\u043c\u0435\u043d / \u062a\u0631\u0643\u0645\u0646"},tl:{name:"Tagalog / Filipino",native:"Tagalog"},tn:{name:"Tswana",native:"Setswana"},to:{name:"Tonga",native:"Lea Faka-Tonga"},tr:{name:"Turkish",native:"T\xfcrk\xe7e"},ts:{name:"Tsonga",native:"Xitsonga"},tt:{name:"Tatar",native:"Tatar\xe7a"},tw:{name:"Twi",native:"Twi"},ty:{name:"Tahitian",native:"Reo M\u0101`ohi"},ug:{name:"Uyghur",native:"Uy\u01a3urq\u0259 / \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5"},uk:{name:"Ukrainian",native:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",native:"\u0627\u0631\u062f\u0648",rtl:1},uz:{name:"Uzbek",native:"\u040e\u0437\u0431\u0435\u043a"},ve:{name:"Venda",native:"Tshiven\u1e13a"},vi:{name:"Vietnamese",native:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",native:"Volap\xfck"},wa:{name:"Walloon",native:"Walon"},wo:{name:"Wolof",native:"Wollof"},xh:{name:"Xhosa",native:"isiXhosa"},yi:{name:"Yiddish",native:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",rtl:1},yo:{name:"Yoruba",native:"Yor\xf9b\xe1"},za:{name:"Zhuang",native:"Cuengh / T\xf4\xf4 / \u58ee\u8bed"},zh:{name:"Chinese",native:"\u4e2d\u6587"},zu:{name:"Zulu",native:"isiZulu"}},b=lt=>D[`${lt||""}`.toLowerCase()];var f=s(34678),S=s(96198),O=s(16711),C=s(26096),_=s.n(C);const V=lt=>"number"==typeof lt?_().BigInt(lt):lt;var x=s(11364),z=s(64926),X=s(39879);const ne=16,ve=["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","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","_"],Ie=["ar","ara","arc","ae","ave","egy","he","heb","nqo","pal","phn","sam","syc","syr","fa","per","fas","ku","kur"],He={"privacy-policy":{en:"privacy-policy"},"safety-tips":{en:"safety-tips"},"terms-conditions":{en:"terms-conditions"},"refund-policy":{en:"refund-policy"},"terms-of-use":{en:"terms-of-use"},welcome:{en:"welcome"}},se=(lt,Le)=>He&&He[lt]&&He[lt][Le]?He[lt][Le]:lt,J=(lt,Le)=>{const ze=(lt||"").toLowerCase().split("-"),Ue=ze[0],Dt=ze.length>1?ze[1]:"";if(Dt){const Gt=(0,M.v2)(Dt);if(Gt&&Le)return Dt;if((Gt?.languages||[]).includes(Ue)&&!Le)return Ue}if(Le)return"";if(Ue)for(const Gt of Object.keys(S.j.languages||{}))if(S.j.languages[Gt]===Ue)return S.j.languages[Gt];return S.j.languages[Ue]||""},re=lt=>Ie.includes(lt),ce=(lt,Le)=>{let ze="";try{window.location&&f.u.getLocationHostname()&&(ze=f.u.getLocationHostname())}catch{}const Ue=(lt||ze).replace("http://","").replace("https://","").replace(/((?:\d{1,3}\.){3}\d{1,3})(:\d{1,6})?/g,"popsy.app").split(".");let Dt=`${Ue[0]||""}`;return Dt.includes("-")&&(Dt=Dt.split("-")[0]),Ue.length>=3&&Dt.length<=2?S.j.languages[Dt]&&!Le?S.j.languages[Dt]:Dt:null},Se=(lt,Le)=>{let ze="";try{f.u.getLocationPathname()&&(ze=f.u.getLocationPathname())}catch{}const Ue=(lt||ze||"").replace("http://","").replace("https://","").replace(/((?:\d{1,3}\.){3}\d{1,3})(:\d{1,6})?/g,"popsy.app").split(/[&/?]/g);let Dt=null,Gt=null;if(Ue.length>0&&Ue[1]&&2===Ue[1].length&&b(Ue[1]))z.F.includes(Ue[1])&&(Dt=Ue[1]);else if(Ue.length>0&&Ue[1]&&5===Ue[1].length){const Yt=Ue[1].split("-"),fn=`${(Yt[0]||"").toLowerCase()}`,Fn=`${(Yt[1]||"").toLowerCase()}`;b(fn)&&(Gt=`${Fn}`,Dt=`${fn}`)}return!0===Le?Gt:Dt},oe=(lt,Le,ze,Ue)=>{const Dt=y.cL.browserLanguage,Gt=y.cL.dateLocale;let Yt=lt,fn=null,Fn="-",Xn="-",Sn="-",mn="-";ze&&Gt&&!Dt&&(Sn=J(Gt),Yt=Sn),fn=ce(Le),fn&&(Yt=fn),ze&&Dt&&(Xn=J(Dt),Yt=Xn),Fn=Se(Le),Fn&&(Yt=Fn),mn=(lt=>{let Le="";try{f.u.getLocationPathname()&&(Le=f.u.getLocationPathname())}catch{}let ze=null;try{const Dt=new URL(`${lt||Le||""}`).search.replace("?","").split("&");for(const Gt of Dt){const Yt=`${Gt||""}`.toLowerCase().split("=");if(Yt.length>=2&&"lang"===Yt[0]&&("en"===Yt[1]||"pt"===Yt[1]||"ar"===Yt[1]||"fr"===Yt[1]||"es"===Yt[1])){ze=Yt[1];break}}}catch{}return ze||""})(Le),mn&&(Yt=mn);const Tr=Yt||lt||"en";return Ue&&Ue({requestedCode:lt,hasSubDomain:fn||"-",hasLangParam:Fn||"-",hasQueryParam:mn,hasBrowser:Xn,hasTimeZone:"-",hasDateLocale:Sn,chosenLanguage:Tr}),Tr},Ee=(lt,Le,ze)=>{const Ue=(0,y.mW)(),Dt=y.cL.browserLanguage,Gt=y.cL.dateLocale;let Yt=lt,fn="fallback",Fn=null,Xn=null,Sn="-",mn="-",Tr="-",Ae="-",G=null,ee=null;Dt&&(Tr=J(Dt,!0),Yt=Tr,fn="locale"),Gt&&(Ae=J(Gt,!0),Dt||(Yt=Ae,fn="date")),Ue&&(mn=Ue.country,Yt=mn,fn="timezone",G=Ue.lat,ee=Ue.lng),Xn=(0,A.TS)(Le),Xn&&(Yt=Xn,fn="domain"),Fn=ce(Le,!0),Fn&&(Yt=Fn,fn="subdomain"),Sn=Se(Le,!0),Sn&&(Yt=Sn,fn="param");const Fe=Yt||lt;return ze&&ze({requestedCode:lt,hasSubDomain:Fn||"-",hasLangParam:Sn||"-",hasQueryParam:"-",hasBrowser:Tr,hasTimeZone:mn,hasDateLocale:Ae,chosenLanguage:Fe}),{country:Fe,source:fn,lat:G,lng:ee}},Pe=()=>{let lt="",Le="";try{const ze=f.u.getLocationProtocol(),Ue=f.u.getLocationHost();window.location&&Ue&&(lt=`${ze||"https"}`.replace(/:/g,"").replace(/\//g,""),Le=Ue)}catch{}return`${lt||"https"}://${Le||"www.popsy.app"}`},$e=lt=>{let Le=`${f.u.getLocationHref()||""}`;if(lt&&lt.country){const ze=lt.country.toLowerCase(),Ue=lt.language.toLowerCase(),Dt=(0,x.P9)(lt);for(const[Gt,Yt]of Object.entries(X.K))if(ze===Gt)return`https://${Yt}/${Ue}-${ze}/p/${Dt}`;Le=`https://www.popsy.app/${Ue}-${ze}/p/${Dt}`}return Le},Xe=lt=>{const Le=new URL(`${lt||""}`),ze=Le.pathname.split("/")[1],Ue=ze.split("-")[0]||"en",Dt=ze.split("-")[1]||"sa";if(Dt&&Ue){const Gt=Dt.toLowerCase();for(const[Yt,fn]of Object.entries(X.K))if(Gt===Yt)return`https://${fn}${Le.pathname}${Le.search}`;lt=`https://www.popsy.app/${Ue}-${Gt}/p/aqui`}return lt},De=(lt,Le,ze)=>{const Ue=S.j.api,Dt=Le?"":`${Ue.path}${Ue.version}`;if(Ue.url){const Gt=Ue.port>0?`:${Ue.port}`:"";let Yt="";try{window.location&&f.u.getLocationHostname()&&(Yt=f.u.getLocationHostname())}catch{}let Fn=`${(ze||Yt).replace("http://","").replace("https://","").replace(/((?:\d{1,3}\.){3}\d{1,3})(:\d{1,6})?/g,"popsy.app").split(".")[0]||""}`;switch(Fn.includes("-")&&(Fn=Fn.split("-")[1]),Fn){case"staging":return`${Ue.protocol}api-staging.popsy.app${Gt}${Dt}/${lt}`;case"dev":return`${Ue.protocol}api-dev.popsy.app${Gt}${Dt}/${lt}`;case"prod":return`${Ue.protocol}api.popsy.app${Gt}${Dt}/${lt}`}return`${Ue.protocol}${Ue.url}${Gt}${Dt}/${lt}`}return`${Dt}/${lt}`},We=(lt,Le)=>{if(lt){let ze="";try{window.location&&f.u.getLocationHostname()&&(ze=f.u.getLocationHostname())}catch{}const Ue=`${ze||""}`.replace("http://","").replace("https://","").replace("localhost","popsy.app").replace(/((?:\d{1,3}\.){3}\d{1,3})(:\d{1,6})?/g,"popsy.app").split(".");let Dt=`${Ue[0]||""}`;return Dt.includes("-")&&(Dt=Dt.split("-")[1]),Ue.length>=3&&Dt?`https://${Dt}.popsy.app/${Le}`:`${lt}/${Le}`}return`/${Le}`},st=()=>{try{switch(((window.location||{hostname:""}).hostname||"").split(".")[0]){case"staging":return{apiKey:"AIzaSyAR9WAah_Pcax8NWLFtD6xKUjCyfHp9b8g",authDomain:"popsygae-staging.firebaseapp.com",databaseURL:"https://popsygae-staging.firebaseio.com",projectId:"popsygae-staging",storageBucket:"popsygae-staging.appspot.com",messagingSenderId:"939751172442",appId:"1:939751172442:web:0a32f6a5277a03c525ab63",measurementId:"G-HH6C421KMP"};case"prod":return{apiKey:"AIzaSyAYqkgWAUgReGdZJFwp9T2qFppkTkXjRUU",authDomain:"popsygae.firebaseapp.com",databaseURL:"https://popsygae.firebaseio.com",projectId:"popsygae",storageBucket:"popsygae.appspot.com",messagingSenderId:"623123402103",appId:"1:623123402103:web:113919f03beba40e02e572",measurementId:"G-XRNEBP8N5C"};case"dev":return{apiKey:"AIzaSyD91zJcjmocLffLw1rd1mjMRNWl4vcQvjI",authDomain:"popsygae-dev.firebaseapp.com",databaseURL:"https://popsygae-dev.firebaseio.com",projectId:"popsygae-dev",storageBucket:"popsygae-dev.appspot.com",messagingSenderId:"693805660182",appId:"1:693805660182:web:b03cdf83c1578105359d37",measurementId:"G-XSLLL760JX"}}}catch{}return S.j.firebase},gt=()=>{try{switch(((window.location||{hostname:""}).hostname||"").split(".")[0]){case"staging":return"AIzaSyCHJ2M3LT9UvWqfPSg2TTW-C7Lkwh3eJ-0";case"prod":return"AIzaSyAEzD4ZBaCSwNWZaa9AmeVSWzfYP-3V5eU";case"dev":return"AIzaSyD2Rbis5E8CIlawIq4s4gzQqD42kwZa1f4"}}catch{}return S.j.gmapsApiKey},Wt=()=>{try{switch(((window.location||{hostname:""}).hostname||"").split(".")[0]){case"staging":return"app.popsy.buysell.staging.service";case"prod":return"app.popsy.buysell.service";case"dev":return"app.popsy.buysell.debug.service"}}catch{}return O.c.apple.clientId},Qt=()=>{try{switch(((window.location||{hostname:""}).hostname||"").split(".")[0]){case"staging":case"dev":return"939751172442-8gglfp40l0cp43nq1lpcp0slqnkvehpo.apps.googleusercontent.com";case"prod":return"623123402103-ame6isegnneda535h995iuqpj5f8gu9a.apps.googleusercontent.com"}}catch{}return O.c.google.clientId},mt=(lt,Le)=>{if(!lt)return"";try{let ze="";const Ue=_().BigInt(ve.length),Dt=((lt,Le,ze,Ue)=>{ze=ze||"0123456789abcdefghijklmnopqrstuvwxyz",lt=(lt=String(lt)).toLowerCase(),ze=ze.toLowerCase();const Dt=lt.length;let Gt;const Yt=Math.abs(Le),fn={};for(Gt=0;Gt<ze.length;Gt++)fn[ze[Gt]]=Gt;for(Gt=0;Gt<Dt;Gt++){const mn=lt[Gt];if("-"!==mn&&mn in fn&&fn[mn]>=Yt){if("1"===mn&&1===Yt)continue;throw new Error(mn+" is not a valid digit in base "+Le+".")}}const Fn=V(Le),Xn=[],Sn="-"===lt[0];for(Gt=Sn?1:0;Gt<lt.length;Gt++){const mn=lt[Gt];if(mn in fn)Xn.push(V(fn[mn]));else{if("<"!==mn)throw new Error(mn+" is not a valid character");{const Tr=Gt;do{Gt++}while(">"!==lt[Gt]&&Gt<lt.length);Xn.push(V(lt.slice(Tr+1,Gt)))}}}return((lt,Le,ze)=>{let Ue=_().BigInt(0),Dt=_().BigInt(1);for(let Gt=lt.length-1;Gt>=0;Gt--)Ue=_().add(Ue,_().multiply(lt[Gt],Dt)),Dt=_().multiply(Dt,Le);return ze?_().subtract(_().BigInt(0),Ue):Ue})(Xn,Fn,Sn)})(lt,Le||10);let Gt={quotient:_().divide(Dt,Ue),remainder:_().remainder(Dt,Ue)};for(;;){let Yt=Gt.quotient,fn=Number.parseInt(Gt.remainder.toString(),10);if(ze+=ve[fn],Gt={quotient:_().divide(Yt,Ue),remainder:_().remainder(Yt,Ue)},_().LT(Gt.quotient,_().BigInt(1))){Yt=Gt.quotient,fn=Number.parseInt(Gt.remainder.toString(),10),ze+=ve[fn],Yt=_().divide(Yt,Ue);break}}return[...ze||""].reverse().join("")}catch{return lt}},Ft=(lt,Le)=>{try{const ze=(lt||"").length;let Ue=_().BigInt(0),Dt=_().BigInt(1);for(let Gt=0;Gt<ze;Gt+=1){const Yt=lt[ze-1-Gt];let fn;"_"===Yt?fn=_().BigInt(62):Yt<="9"?fn=_().BigInt(Yt.charCodeAt(0)-48):Yt<="Z"?fn=_().BigInt(Yt.charCodeAt(0)-65+10):Yt<="z"&&(fn=_().BigInt(Yt.charCodeAt(0)-97+36)),Ue=_().add(Ue,_().multiply(fn,Dt)),Dt=_().multiply(Dt,_().BigInt(ve.length))}return _().BigInt(Ue).toString(Le)}catch{return lt||""}},At=(lt,Le)=>{const ze=new Array(0),Ue=((lt,Le)=>{let ze=`${lt||""}`;return Le&&(ze=(lt=>`${lt||""}`.replace(/[^\d A-Z[\]a-z]/g,ze=>i[ze]||ze))(`${lt||""}`)),(ze||"").toLowerCase().replace(/(\W+)/gi,"-").replace(/(-+)/gim,"-").replace(/(-+$)/gim,"")||"-"})(Le||"",!0).toLowerCase().replace(/[^\w-]/g,"-");Ue&&ze.push(Ue);const Dt=mt(lt,ne);return Dt&&ze.push(Dt),ze.join("-")}},34678:(it,ge,s)=>{"use strict";s.d(ge,{A:()=>i,u:()=>E});const i=()=>{try{return window}catch{return null}};class E{static get window(){try{return window}catch{return null}}static getLocationHref(){return E.window?E.window.location.href:""}static getLocationProtocol(){return E.window?E.window.location.protocol:""}static setLocationHref(A){E.window&&A&&(E.window.location.href=A)}static getLocationPathname(){return E.window?E.window.location.pathname:""}static getLocationOrigin(){return E.window?E.window.location.origin:""}static getLocationHostname(){return E.window?E.window.location.hostname:""}static getLocationHost(){return E.window?E.window.location.host:""}static windowInnerWidth(){return E.window?E.window.innerWidth:1280}static windowInnerHeight(){return E.window?E.window.innerHeight:1024}static querySelector(A){return E.window?window.document.querySelector(A):null}}},16711:(it,ge,s)=>{"use strict";s.d(ge,{c:()=>y});const i=JSON.parse('{"us":"en","au":"en","bz":"en","ca":"en","cb":"en","gb":"en","in":"en","ie":"en","jm":"en","nz":"en","ph":"en","za":"en","tt":"en","zi":"en","ag":"en","ai":"en","aq":"en","bb":"en","sa":"ar","dz":"ar","bh":"ar","eg":"ar","iq":"ar","jo":"ar","kw":"ar","lb":"ar","ly":"ar","ma":"ar","om":"ar","qa":"ar","sy":"ar","tn":"ar","ae":"ar","ye":"ar"}'),E=JSON.parse('{"rE":"3.17.57","tk":"","cd":"d1b5bde65"}'),y={name:"prod",domain:"https://www.popsy.app/",app:{version:E.rE,commit:E.cd,branch:E.tk},inServer:!1,production:!0,enableAnalitycs:!0,debugAnalitycs:!1,reportToSentry:!0,sentryAskFeedback:!1,serviceWorker:!0,enableHotjar:!1,enableOmnisend:!0,enableSmartLook:!1,api:{protocol:"https://",url:"api.popsy.app",port:443,path:"/api",version:"/v1"},blogApi:{protocol:"https://",url:"blog.popsy.app",port:443,path:"/wp-json",version:"/v2"},firebase:{apiKey:"AIzaSyAYqkgWAUgReGdZJFwp9T2qFppkTkXjRUU",authDomain:"popsygae.firebaseapp.com",databaseURL:"https://popsygae.firebaseio.com",projectId:"popsygae",storageBucket:"api.popsy.app",messagingSenderId:"623123402103",appId:"1:623123402103:web:113919f03beba40e02e572",measurementId:"G-XRNEBP8N5C"},stripe:{country:{br:"pk_live_No37ZPvEethwFTCLpfjzXz3x00qIb1KSPW",us_account:"pk_live_nd1v9XdHIXx91Ij6NlC1KXP500NRp2TaDl",us:"pk_live_51MhflFCWBKdjR5CgkKeUUTdEYLrgvH99ZYG8tuhCjrC0rbx7ncLmZ7dnIpBNuk3Cu2xvdWRKHpwP061tzBfGFW0S00vvKiD9Sc"}},mercadoPago:{appId:"4620208812297766",key:"APP_USR-4d9c29b9-5c45-42ad-8653-69d4216b8151",accessToken:"APP_USR-4620208812297766-031514-c3e3e4078712927bab5c93e5aea042c6-727605448"},tabby:{pubKey:"pk_6237b658-bf9f-4fa2-8904-3140b3f88d6a"},tamara:{pubKey:"dcc15b9f-ada1-48b9-be73-35375c57ac7c"},checkout:{pubKey:"pk_sbox_7s3lbhhllye6oyhy7nl6hha7ny2"},moip:{pubKey:"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqR8FM02JYmVb1iNuqNDe\n1oWhcKYflm9UIK0W8RdMW8+06YPO1L6rb6vVnUA/sFRPb2w7nl71KqJDYAxwcKFJ\nKhW+PSbvREzffzSEQsZCtsGXoHkuVYm/L5rOMLuQB4jbVHpcwSM/CpGc1p7PlqJ1\nKCCgXHQBz3BEY3POsJSUpF1KvC6QWO72KCSPTbq+v9msRaj/qrLPq4pQ0gJjKwel\n2RUh9XWQDW6V2ATo1zySnb4ZpAC4e5e+k0I+kYywxdw4jXCx8yOVTH/kFpSno6cM\n/+l3mU8MoXACQPo/EbV3x+kyeF1D60t3876vL01K+RvQ0c7RSVZI8Vr/nbA5jHpm\nVwIDAQAB\n-----END PUBLIC KEY-----"},apple:{clientId:"app.popsy.buysell.service",baseURL:"https://www.popsy.app"},google:{clientId:"623123402103-ame6isegnneda535h995iuqpj5f8gu9a.apps.googleusercontent.com",baseURL:"https://www.popsy.app",googlePayMerchantId:"BCR2DN6T5PWJRHKQ"},debugMode:!1,hmr:!1,languageCode:"en",languages:i,fbAppId:"836210163094288",fbAppVersion:"v7.0",gmapsApiKey:"AIzaSyAEzD4ZBaCSwNWZaa9AmeVSWzfYP-3V5eU",sentryUrl:"https://7271105c2e4444a8928e7094fff7ab61@sentry.io/1212910",shopify:{US:{apiToken:"e08609a1b815f88e555ee7ea622009c6",domain:"shop.popsy.app"},AE:{apiToken:"36daa96b3d8816b7d4894c97ee497db8",domain:"popsyuae.myshopify.com"}}}},51534:(it,ge,s)=>{"use strict";var i=s(55685),E=s(16711),y=s(7319),A=s(28505),M=s(70925),D=s.n(M),b=s(48582),f=s(67081),S=s(75715),O=s(5663),C=s(91066),_=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class U{static __initStatic(){this.id="InboundFilters"}__init(){this.name=U.id}constructor(u={}){this._options=u,U.prototype.__init.call(this)}setupOnce(u,l){var g=L=>{var H=l();if(H){var fe=H.getIntegration(U);if(fe){var me=H.getClient(),Ke=me?me.getOptions():{},ut=function w(p={},u={}){return{allowUrls:[...p.allowUrls||[],...u.allowUrls||[]],denyUrls:[...p.denyUrls||[],...u.denyUrls||[]],ignoreErrors:[...p.ignoreErrors||[],...u.ignoreErrors||[],..._],ignoreInternal:void 0===p.ignoreInternal||p.ignoreInternal}}(fe._options,Ke);return function R(p,u){return u.ignoreInternal&&function K(p){try{return"SentryError"===p.exception.values[0].type}catch{}return!1}(p)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,O.$X)(p)}`),!0):function V(p,u){return!(!u||!u.length)&&function X(p){if(p.message)return[p.message];if(p.exception)try{const{type:u="",value:l=""}=p.exception.values&&p.exception.values[0]||{};return[`${l}`,`${u}: ${l}`]}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error(`Cannot extract message for event ${(0,O.$X)(p)}`),[]}return[]}(p).some(l=>u.some(g=>(0,C._c)(l,g)))}(p,u.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,O.$X)(p)}`),!0):function x(p,u){if(!u||!u.length)return!1;var l=le(p);return!!l&&u.some(g=>(0,C._c)(l,g))}(p,u.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,O.$X)(p)}.\nUrl: ${le(p)}`),!0):!function z(p,u){if(!u||!u.length)return!0;var l=le(p);return!l||u.some(g=>(0,C._c)(l,g))}(p,u.allowUrls)&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,O.$X)(p)}.\nUrl: ${le(p)}`),!0)}(L,ut)?null:L}}return L};g.id=this.name,u(g)}}function le(p){try{let u;try{u=p.exception.values[0].stacktrace.frames}catch{}return u?function ne(p=[]){for(let l=p.length-1;l>=0;l--){var u=p[l];if(u&&"<anonymous>"!==u.filename&&"[native code]"!==u.filename)return u.filename||null}return null}(u):null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error(`Cannot extract url for event ${(0,O.$X)(p)}`),null}}U.__initStatic();var Y=s(89564);let ve;class Ie{constructor(){Ie.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Ie.id}setupOnce(){ve=Function.prototype.toString,Function.prototype.toString=function(...u){var l=(0,Y.sp)(this)||this;return ve.apply(l,u)}}}Ie.__initStatic();var He=s(84849),se=s(78058),Ge=[];function B(p){return p.reduce((u,l)=>(u.every(g=>l.name!==g.name)&&u.push(l),u),[])}function Z(p){var u=p.defaultIntegrations&&[...p.defaultIntegrations]||[],l=p.integrations;let g=[...B(u)];Array.isArray(l)?g=[...g.filter(fe=>l.every(me=>me.name!==fe.name)),...B(l)]:"function"==typeof l&&(g=l(g),g=Array.isArray(g)?g:[g]);var L=g.map(fe=>fe.name),H="Debug";return-1!==L.indexOf(H)&&g.push(...g.splice(L.indexOf(H),1)),g}class ce extends Error{constructor(u,l="warn"){super(u),this.message=u,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=l}}var Se=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oe(p,u=!1){const{host:l,path:g,pass:L,port:H,projectId:fe,protocol:me,publicKey:Ke}=p;return`${me}://${Ke}${u&&L?`:${L}`:""}@${l}${H?`:${H}`:""}/${g&&`${g}/`}${fe}`}function Pe(p){return{protocol:p.protocol,publicKey:p.publicKey||"",pass:p.pass||"",host:p.host,port:p.port||"",path:p.path||"",projectId:p.projectId}}function Xe(p){var u="string"==typeof p?function Ee(p){var u=Se.exec(p);if(!u)throw new ce(`Invalid Sentry Dsn: ${p}`);const[l,g,L="",H,fe="",me]=u.slice(1);let Ke="",ut=me;var jt=ut.split("/");if(jt.length>1&&(Ke=jt.slice(0,-1).join("/"),ut=jt.pop()),ut){var Ut=ut.match(/^\d+/);Ut&&(ut=Ut[0])}return Pe({host:H,pass:L,path:Ke,projectId:ut,port:fe,protocol:l,publicKey:g})}(p):Pe(p);return function $e(p){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:u,projectId:l,protocol:g}=p;if(["protocol","publicKey","host","projectId"].forEach(H=>{if(!p[H])throw new ce(`Invalid Sentry Dsn: ${H} missing`)}),!l.match(/^\d+$/))throw new ce(`Invalid Sentry Dsn: Invalid projectId ${l}`);if(!function we(p){return"http"===p||"https"===p}(g))throw new ce(`Invalid Sentry Dsn: Invalid protocol ${g}`);if(u&&isNaN(parseInt(u,10)))throw new ce(`Invalid Sentry Dsn: Invalid port ${u}`)}(u),u}function We(p){return`${p.protocol?`${p.protocol}:`:""}//${p.host}${p.port?`:${p.port}`:""}${p.path?`/${p.path}`:""}/api/`}function dt(p,u={}){var g="string"!=typeof u&&u._metadata?u._metadata.sdk:void 0;return("string"==typeof u?u:u.tunnel)||`${function st(p){return`${We(p)}${p.projectId}/envelope/`}(p)}?${function gt(p,u){return(0,Y.u4)({sentry_key:p.publicKey,sentry_version:"7",...u&&{sentry_client:`${u.name}/${u.version}`}})}(p,g)}`}var Qt=s(42788),mt=50;function Ft(...p){var u=p.sort((l,g)=>l[0]-g[0]).map(l=>l[1]);return(l,g=0)=>{var L=[];for(var H of l.split("\n").slice(g)){var fe=H.replace(/\(error: (.*)\)/,"$1");for(var me of u){var Ke=me(fe);if(Ke){L.push(Ke);break}}}return function lt(p){if(!p.length)return[];let u=p;var l=u[0].function||"",g=u[u.length-1].function||"";return(-1!==l.indexOf("captureMessage")||-1!==l.indexOf("captureException"))&&(u=u.slice(1)),-1!==g.indexOf("sentryWrapped")&&(u=u.slice(0,-1)),u.slice(0,mt).map(L=>({...L,filename:L.filename||u[0].filename,function:L.function||"?"})).reverse()}(L)}}function At(p){return Array.isArray(p)?Ft(...p):p}var Le="<anonymous>";function ze(p){try{return p&&"function"==typeof p&&p.name||Le}catch{return Le}}function Fn(){if(!("fetch"in(0,Qt.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}function Xn(p){return p&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(p.toString())}var G=s(69623),ee=(0,Qt.V)(),Fe={},pt={};function Mt(p,u){Fe[p]=Fe[p]||[],Fe[p].push(u),function vt(p){if(!pt[p])switch(pt[p]=!0,p){case"console":!function kn(){"console"in ee&&S.Ow.forEach(function(p){p in ee.console&&(0,Y.GS)(ee.console,p,function(u){return function(...l){cn("console",{args:l,level:p}),u&&u.apply(ee.console,l)}})})}();break;case"dom":!function Un(){if("document"in ee){var p=cn.bind(null,"dom"),u=yn(p,!0);ee.document.addEventListener("click",u,!1),ee.document.addEventListener("keypress",u,!1),["EventTarget","Node"].forEach(l=>{var g=ee[l]&&ee[l].prototype;!g||!g.hasOwnProperty||!g.hasOwnProperty("addEventListener")||((0,Y.GS)(g,"addEventListener",function(L){return function(H,fe,me){if("click"===H||"keypress"==H)try{var ut=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},jt=ut[H]=ut[H]||{refCount:0};if(!jt.handler){var Ut=yn(p);jt.handler=Ut,L.call(this,H,Ut,me)}jt.refCount+=1}catch{}return L.call(this,H,fe,me)}}),(0,Y.GS)(g,"removeEventListener",function(L){return function(H,fe,me){if("click"===H||"keypress"==H)try{var ut=this.__sentry_instrumentation_handlers__||{},jt=ut[H];jt&&(jt.refCount-=1,jt.refCount<=0&&(L.call(this,H,jt.handler,me),jt.handler=void 0,delete ut[H]),0===Object.keys(ut).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return L.call(this,H,fe,me)}}))})}}();break;case"xhr":!function Pr(){if("XMLHttpRequest"in ee){var p=XMLHttpRequest.prototype;(0,Y.GS)(p,"open",function(u){return function(...l){var g=this,L=l[1],H=g.__sentry_xhr__={method:(0,G.Kg)(l[0])?l[0].toUpperCase():l[0],url:l[1]};(0,G.Kg)(L)&&"POST"===H.method&&L.match(/sentry_key/)&&(g.__sentry_own_request__=!0);var fe=function(){if(4===g.readyState){try{H.status_code=g.status}catch{}cn("xhr",{args:l,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:g})}};return"onreadystatechange"in g&&"function"==typeof g.onreadystatechange?(0,Y.GS)(g,"onreadystatechange",function(me){return function(...Ke){return fe(),me.apply(g,Ke)}}):g.addEventListener("readystatechange",fe),u.apply(g,l)}}),(0,Y.GS)(p,"send",function(u){return function(...l){return this.__sentry_xhr__&&void 0!==l[0]&&(this.__sentry_xhr__.body=l[0]),cn("xhr",{args:l,startTimestamp:Date.now(),xhr:this}),u.apply(this,l)}})}}();break;case"fetch":!function Hn(){(function Sn(){if(!Fn())return!1;var p=(0,Qt.V)();if(Xn(p.fetch))return!0;let u=!1;var l=p.document;if(l&&"function"==typeof l.createElement)try{var g=l.createElement("iframe");g.hidden=!0,l.head.appendChild(g),g.contentWindow&&g.contentWindow.fetch&&(u=Xn(g.contentWindow.fetch)),l.head.removeChild(g)}catch(L){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",L)}return u})()&&(0,Y.GS)(ee,"fetch",function(p){return function(...u){var l={args:u,fetchData:{method:An(u),url:Vn(u)},startTimestamp:Date.now()};return cn("fetch",{...l}),p.apply(ee,u).then(g=>(cn("fetch",{...l,endTimestamp:Date.now(),response:g}),g),g=>{throw cn("fetch",{...l,endTimestamp:Date.now(),error:g}),g})}})}();break;case"history":!function Hr(){if(function Ae(){var p=(0,Qt.V)(),u=p.chrome;return!(u&&u.app&&u.app.runtime||!("history"in p)||!p.history.pushState||!p.history.replaceState)}()){var p=ee.onpopstate;ee.onpopstate=function(...l){var g=ee.location.href,L=Mi;if(Mi=g,cn("history",{from:L,to:g}),p)try{return p.apply(this,l)}catch{}},(0,Y.GS)(ee.history,"pushState",u),(0,Y.GS)(ee.history,"replaceState",u)}function u(l){return function(...g){var L=g.length>2?g[2]:void 0;if(L){var H=Mi,fe=String(L);Mi=fe,cn("history",{from:H,to:fe})}return l.apply(this,g)}}}();break;case"error":!function Ar(){ur=ee.onerror,ee.onerror=function(p,u,l,g,L){return cn("error",{column:g,error:L,line:l,msg:p,url:u}),!!ur&&ur.apply(this,arguments)}}();break;case"unhandledrejection":!function yi(){zr=ee.onunhandledrejection,ee.onunhandledrejection=function(p){return cn("unhandledrejection",p),!zr||zr.apply(this,arguments)}}();break;default:return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("unknown instrumentation type:",p))}}(p)}function cn(p,u){if(p&&Fe[p])for(var l of Fe[p]||[])try{l(u)}catch(g){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error(`Error while triggering instrumentation handler.\nType: ${p}\nName: ${ze(l)}\nError:`,g)}}function An(p=[]){return"Request"in ee&&(0,G.tH)(p[0],Request)&&p[0].method?String(p[0].method).toUpperCase():p[1]&&p[1].method?String(p[1].method).toUpperCase():"GET"}function Vn(p=[]){return"string"==typeof p[0]?p[0]:"Request"in ee&&(0,G.tH)(p[0],Request)?p[0].url:String(p[0])}let Mi;var _t=1e3;let Ct,Be;function yn(p,u=!1){return l=>{if(l&&Be!==l&&!function $t(p){if("keypress"!==p.type)return!1;try{var u=p.target;if(!u||!u.tagName)return!0;if("INPUT"===u.tagName||"TEXTAREA"===u.tagName||u.isContentEditable)return!1}catch{}return!0}(l)){var g="keypress"===l.type?"input":l.type;(void 0===Ct||function et(p,u){if(!p||p.type!==u.type)return!0;try{if(p.target!==u.target)return!0}catch{}return!1}(Be,l))&&(p({event:l,name:g,global:u}),Be=l),clearTimeout(Ct),Ct=ee.setTimeout(()=>{Ct=void 0},_t)}}}let ur=null,zr=null;var Ur=s(78985),Nr=s(79839);function vi(p,u=[]){return[p,u]}function Et(p,u){const[l,g]=p;return[l,[...g,u]]}function rt(p,u){p[1].forEach(g=>{u(g,g[0].type)})}function It(p,u){return(u||new TextEncoder).encode(p)}function Jt(p,u){const[l,g]=p;let L=JSON.stringify(l);function H(me){"string"==typeof L?L="string"==typeof me?L+me:[It(L,u),me]:L.push("string"==typeof me?It(me,u):me)}for(var fe of g){const[me,Ke]=fe;H(`\n${JSON.stringify(me)}\n`),H("string"==typeof Ke||Ke instanceof Uint8Array?Ke:JSON.stringify(Ke))}return"string"==typeof L?L:function Bn(p){var u=p.reduce((H,fe)=>H+fe.length,0),l=new Uint8Array(u);let g=0;for(var L of p)l.set(L,g),g+=L.length;return l}(L)}function Yn(p,u){var l="string"==typeof p.data?It(p.data,u):p.data;return[(0,Y.Ce)({type:"attachment",length:l.length,filename:p.filename,content_type:p.contentType,attachment_type:p.attachmentType}),l]}var nt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function qt(p){return nt[p]}var je=s(7930);function Rt(p,u=1/0,l=1/0){try{return ln("",p,u,l)}catch(g){return{ERROR:`**non-serializable** (${g})`}}}function an(p,u=3,l=102400){var g=Rt(p,u);return function zn(p){return function jn(p){return~-encodeURI(p).split(/%..|./).length}(JSON.stringify(p))}(g)>l?an(p,u-1,l):g}function ln(p,u,l=1/0,g=1/0,L=function bt(){var p="function"==typeof WeakSet,u=p?new WeakSet:[];return[function l(L){if(p)return!!u.has(L)||(u.add(L),!1);for(let fe=0;fe<u.length;fe++)if(u[fe]===L)return!0;return u.push(L),!1},function g(L){if(p)u.delete(L);else for(let H=0;H<u.length;H++)if(u[H]===L){u.splice(H,1);break}}]}()){const[H,fe]=L;if(null===u||["number","boolean","string"].includes(typeof u)&&!(0,G.yr)(u))return u;var me=function pn(p,u){try{return"domain"===p&&u&&"object"==typeof u&&u._events?"[Domain]":"domainEmitter"===p?"[DomainEmitter]":typeof global<"u"&&u===global?"[Global]":typeof window<"u"&&u===window?"[Window]":typeof document<"u"&&u===document?"[Document]":(0,G.mE)(u)?"[SyntheticEvent]":"number"==typeof u&&u!=u?"[NaN]":void 0===u?"[undefined]":"function"==typeof u?`[Function: ${ze(u)}]`:"symbol"==typeof u?`[${String(u)}]`:"bigint"==typeof u?`[BigInt: ${String(u)}]`:`[object ${Object.getPrototypeOf(u).constructor.name}]`}catch(l){return`**non-serializable** (${l})`}}(p,u);if(!me.startsWith("[object "))return me;if(u.__sentry_skip_normalization__)return u;if(0===l)return me.replace("object ","");if(H(u))return"[Circular ~]";var Ke=u;if(Ke&&"function"==typeof Ke.toJSON)try{return ln("",Ke.toJSON(),l-1,g,L)}catch{}var jt=Array.isArray(u)?[]:{};let Ut=0;var Qn=(0,Y.W4)(u);for(var On in Qn)if(Object.prototype.hasOwnProperty.call(Qn,On)){if(Ut>=g){jt[On]="[MaxProperties ~]";break}jt[On]=ln(On,Qn[On],l-1,g,L),Ut+=1}return fe(u),jt}function Bt(p){if(!p||!p.sdk)return;const{name:u,version:l}=p.sdk;return{name:u,version:l}}var Jn="Not capturing exception because it's already been captured.";class tr{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(u){if(tr.prototype.__init.call(this),tr.prototype.__init2.call(this),tr.prototype.__init3.call(this),tr.prototype.__init4.call(this),this._options=u,u.dsn){this._dsn=Xe(u.dsn);var l=dt(this._dsn,u);this._transport=u.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...u.transportOptions,url:l})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("No DSN provided, client will not do anything.")}captureException(u,l,g){if((0,O.GR)(u))return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log(Jn));let L=l&&l.event_id;return this._process(this.eventFromException(u,l).then(H=>this._captureEvent(H,l,g)).then(H=>{L=H})),L}captureMessage(u,l,g,L){let H=g&&g.event_id;var fe=(0,G.sO)(u)?this.eventFromMessage(String(u),l,g):this.eventFromException(u,g);return this._process(fe.then(me=>this._captureEvent(me,g,L)).then(me=>{H=me})),H}captureEvent(u,l,g){if(l&&l.originalException&&(0,O.GR)(l.originalException))return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log(Jn));let L=l&&l.event_id;return this._process(this._captureEvent(u,l,g).then(H=>{L=H})),L}captureSession(u){this._isEnabled()?"string"!=typeof u.release?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(u),(0,Ur.qO)(u,{init:!1})):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(u){var l=this._transport;return l?this._isClientDoneProcessing(u).then(g=>l.flush(u).then(L=>g&&L)):(0,Nr.XW)(!0)}close(u){return this.flush(u).then(l=>(this.getOptions().enabled=!1,l))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function J(p){var u={};return p.forEach(l=>{u[l.name]=l,-1===Ge.indexOf(l.name)&&(l.setupOnce(He.l,se.BF),Ge.push(l.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log(`Integration installed: ${l.name}`))}),u}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(u){return this._integrations[u]}getIntegration(u){try{return this._integrations[u.id]||null}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn(`Cannot retrieve integration ${u.id} from the current Client`),null}}sendEvent(u,l={}){if(this._dsn){let L=function en(p,u,l,g){var L=Bt(l),H=p.type||"event";const{transactionSampling:fe}=p.sdkProcessingMetadata||{},{method:me,rate:Ke}=fe||{};!function Xt(p,u){u&&(p.sdk=p.sdk||{},p.sdk.name=p.sdk.name||u.name,p.sdk.version=p.sdk.version||u.version,p.sdk.integrations=[...p.sdk.integrations||[],...u.integrations||[]],p.sdk.packages=[...p.sdk.packages||[],...u.packages||[]])}(p,l&&l.sdk);var ut=function Cn(p,u,l,g){var L=p.sdkProcessingMetadata&&p.sdkProcessingMetadata.baggage,H=L&&function Nn(p){return p[0]}(L);return{event_id:p.event_id,sent_at:(new Date).toISOString(),...u&&{sdk:u},...!!l&&{dsn:oe(g)},..."transaction"===p.type&&H&&{trace:(0,Y.Ce)({...H})}}}(p,L,g,u);return delete p.sdkProcessingMetadata,vi(ut,[[{type:H,sample_rates:[{id:me,rate:Ke}]},p]])}(u,this._dsn,this._options._metadata,this._options.tunnel);for(var g of l.attachments||[])L=Et(L,Yn(g,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(L)}}sendSession(u){if(this._dsn){var l=function tn(p,u,l,g){var L=Bt(l);return vi({sent_at:(new Date).toISOString(),...L&&{sdk:L},...!!g&&{dsn:oe(u)}},["aggregates"in p?[{type:"sessions"},p]:[{type:"session"},p]])}(u,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(l)}}recordDroppedEvent(u,l){if(this._options.sendClientReports){var g=`${u}:${l}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log(`Adding outcome: "${g}"`),this._outcomes[g]=this._outcomes[g]+1||1}}_updateSessionFromEvent(u,l){let g=!1,L=!1;var H=l.exception&&l.exception.values;if(H)for(var fe of(L=!0,H)){var me=fe.mechanism;if(me&&!1===me.handled){g=!0;break}}var Ke="ok"===u.status;(Ke&&0===u.errors||Ke&&g)&&((0,Ur.qO)(u,{...g&&{status:"crashed"},errors:u.errors||Number(L||g)}),this.captureSession(u))}_isClientDoneProcessing(u){return new Nr.T2(l=>{let g=0;var H=setInterval(()=>{0==this._numProcessing?(clearInterval(H),l(!0)):(g+=1,u&&g>=u&&(clearInterval(H),l(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(u,l,g){const{normalizeDepth:L=3,normalizeMaxBreadth:H=1e3}=this.getOptions();var fe={...u,event_id:u.event_id||l.event_id||(0,O.eJ)(),timestamp:u.timestamp||(0,je.lu)()};this._applyClientOptions(fe),this._applyIntegrationsMetadata(fe);let me=g;l.captureContext&&(me=He.H.clone(me).update(l.captureContext));let Ke=(0,Nr.XW)(fe);if(me){var ut=[...l.attachments||[],...me.getAttachments()];ut.length&&(l.attachments=ut),Ke=me.applyToEvent(fe,l)}return Ke.then(jt=>"number"==typeof L&&L>0?this._normalizeEvent(jt,L,H):jt)}_normalizeEvent(u,l,g){if(!u)return null;var L={...u,...u.breadcrumbs&&{breadcrumbs:u.breadcrumbs.map(H=>({...H,...H.data&&{data:Rt(H.data,l,g)}}))},...u.user&&{user:Rt(u.user,l,g)},...u.contexts&&{contexts:Rt(u.contexts,l,g)},...u.extra&&{extra:Rt(u.extra,l,g)}};return u.contexts&&u.contexts.trace&&L.contexts&&(L.contexts.trace=u.contexts.trace,u.contexts.trace.data&&(L.contexts.trace.data=Rt(u.contexts.trace.data,l,g))),u.spans&&(L.spans=u.spans.map(H=>(H.data&&(H.data=Rt(H.data,l,g)),H))),L}_applyClientOptions(u){var l=this.getOptions();const{environment:g,release:L,dist:H,maxValueLength:fe=250}=l;"environment"in u||(u.environment="environment"in l?g:"production"),void 0===u.release&&void 0!==L&&(u.release=L),void 0===u.dist&&void 0!==H&&(u.dist=H),u.message&&(u.message=(0,C.xv)(u.message,fe));var me=u.exception&&u.exception.values&&u.exception.values[0];me&&me.value&&(me.value=(0,C.xv)(me.value,fe));var Ke=u.request;Ke&&Ke.url&&(Ke.url=(0,C.xv)(Ke.url,fe))}_applyIntegrationsMetadata(u){var l=Object.keys(this._integrations);l.length>0&&(u.sdk=u.sdk||{},u.sdk.integrations=[...u.sdk.integrations||[],...l])}_captureEvent(u,l={},g){return this._processEvent(u,l,g).then(L=>L.event_id,L=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){var H=L;"log"===H.logLevel?S.vF.log(H.message):S.vF.warn(H)}})}_processEvent(u,l,g){const{beforeSend:L,sampleRate:H}=this.getOptions();if(!this._isEnabled())return(0,Nr.xg)(new ce("SDK not enabled, will not capture event.","log"));var fe="transaction"===u.type;return!fe&&"number"==typeof H&&Math.random()>H?(this.recordDroppedEvent("sample_rate","error"),(0,Nr.xg)(new ce(`Discarding event because it's not included in the random sample (sampling rate = ${H})`,"log"))):this._prepareEvent(u,l,g).then(me=>{if(null===me)throw this.recordDroppedEvent("event_processor",u.type||"error"),new ce("An event processor returned null, will not send event.","log");return l.data&&!0===l.data.__sentry__||fe||!L?me:function En(p){var u="`beforeSend` method has to return `null` or a valid event.";if((0,G.Qg)(p))return p.then(l=>{if(!(0,G.Qd)(l)&&null!==l)throw new ce(u);return l},l=>{throw new ce(`beforeSend rejected with ${l}`)});if(!(0,G.Qd)(p)&&null!==p)throw new ce(u);return p}(L(me,l))}).then(me=>{if(null===me)throw this.recordDroppedEvent("before_send",u.type||"error"),new ce("`beforeSend` returned `null`, will not send event.","log");var Ke=g&&g.getSession();return!fe&&Ke&&this._updateSessionFromEvent(Ke,me),this.sendEvent(me,l),me}).then(null,me=>{throw me instanceof ce?me:(this.captureException(me,{data:{__sentry__:!0},originalException:me}),new ce(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${me}`))})}_process(u){this._numProcessing+=1,u.then(l=>(this._numProcessing-=1,l),l=>(this._numProcessing-=1,l))}_sendEnvelope(u){this._transport&&this._dsn?this._transport.send(u).then(null,l=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("Error while sending event:",l)}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("Transport disabled")}_clearOutcomes(){var u=this._outcomes;return this._outcomes={},Object.keys(u).map(l=>{const[g,L]=l.split(":");return{reason:g,category:L,quantity:u[l]}})}}function jr(p,u){var l=lo(p,u),g={type:u&&u.name,value:co(u)};return l.length&&(g.stacktrace={frames:l}),void 0===g.type&&""===g.value&&(g.value="Unrecoverable error caught"),g}function js(p,u){return{exception:{values:[jr(p,u)]}}}function lo(p,u){var l=u.stacktrace||u.stack||"",g=function or(p){if(p){if("number"==typeof p.framesToPop)return p.framesToPop;if(cs.test(p.message))return 1}return 0}(u);try{return p(l,g)}catch{}return[]}var cs=/Minified React error #\d+;/i;function co(p){var u=p&&p.message;return u?u.error&&"string"==typeof u.error.message?u.error.message:u:"No error message"}function Os(p,u,l,g,L){let H;if((0,G.T2)(u)&&u.error)return js(p,u.error);if((0,G.BD)(u)||(0,G.W6)(u)){var me=u;if("stack"in u)H=js(p,u);else{var Ke=me.name||((0,G.BD)(me)?"DOMError":"DOMException"),ut=me.message?`${Ke}: ${me.message}`:Ke;H=Ys(p,ut,l,g),(0,O.gO)(H,ut)}return"code"in me&&(H.tags={...H.tags,"DOMException.code":`${me.code}`}),H}return(0,G.bJ)(u)?js(p,u):(0,G.Qd)(u)||(0,G.xH)(u)?(H=function ls(p,u,l,g){var L={exception:{values:[{type:(0,G.xH)(u)?u.constructor.name:g?"UnhandledRejection":"Error",value:`Non-Error ${g?"promise rejection":"exception"} captured with keys: ${(0,Y.HF)(u)}`}]},extra:{__serialized__:an(u)}};if(l){var H=lo(p,l);H.length&&(L.exception.values[0].stacktrace={frames:H})}return L}(p,u,l,L),(0,O.M6)(H,{synthetic:!0}),H):(H=Ys(p,u,l,g),(0,O.gO)(H,`${u}`,void 0),(0,O.M6)(H,{synthetic:!0}),H)}function Ys(p,u,l,g){var L={message:u};if(g&&l){var H=lo(p,l);H.length&&(L.exception={values:[{value:u,stacktrace:{frames:H}}]})}return L}var ns=s(72423),Jr=["fatal","error","warning","log","info","debug"];function Ri(p){return"warn"===p?"warning":Jr.includes(p)?p:"log"}function Ai(p){if(!p)return{};var u=p.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return u?{host:u[4],path:u[5],protocol:u[2],relative:u[5]+(u[6]||"")+(u[8]||"")}:{}}var uo="Breadcrumbs";class Ni{static __initStatic(){this.id=uo}__init(){this.name=Ni.id}constructor(u){Ni.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...u}}setupOnce(){this.options.console&&Mt("console",rs),this.options.dom&&Mt("dom",function us(p){return function u(l){let g,L="object"==typeof p?p.serializeAttribute:void 0;"string"==typeof L&&(L=[L]);try{g=(0,ns.H)(l.event.target?l.event.target:l.event,L)}catch{g="<unknown>"}0!==g.length&&(0,se.BF)().addBreadcrumb({category:`ui.${l.name}`,message:g},{event:l.event,name:l.name,global:l.global})}}(this.options.dom)),this.options.xhr&&Mt("xhr",ho),this.options.fetch&&Mt("fetch",si),this.options.history&&Mt("history",Ve)}}function rs(p){var u={category:"console",data:{arguments:p.args,logger:"console"},level:Ri(p.level),message:(0,C.gt)(p.args," ")};if("assert"===p.level){if(!1!==p.args[0])return;u.message=`Assertion failed: ${(0,C.gt)(p.args.slice(1)," ")||"console.assert"}`,u.data.arguments=p.args.slice(1)}(0,se.BF)().addBreadcrumb(u,{input:p.args,level:p.level})}function ho(p){if(p.endTimestamp){if(p.xhr.__sentry_own_request__)return;const{method:u,url:l,status_code:g,body:L}=p.xhr.__sentry_xhr__||{};(0,se.BF)().addBreadcrumb({category:"xhr",data:{method:u,url:l,status_code:g},type:"http"},{xhr:p.xhr,input:L})}}function si(p){p.endTimestamp&&(p.fetchData.url.match(/sentry_key/)&&"POST"===p.fetchData.method||(p.error?(0,se.BF)().addBreadcrumb({category:"fetch",data:p.fetchData,level:"error",type:"http"},{data:p.error,input:p.args}):(0,se.BF)().addBreadcrumb({category:"fetch",data:{...p.fetchData,status_code:p.response.status},type:"http"},{input:p.args,response:p.response})))}function Ve(p){var u=(0,Qt.V)();let l=p.from,g=p.to;var L=Ai(u.location.href);let H=Ai(l);var fe=Ai(g);H.path||(H=L),L.protocol===fe.protocol&&L.host===fe.host&&(g=fe.relative),L.protocol===H.protocol&&L.host===H.host&&(l=H.relative),(0,se.BF)().addBreadcrumb({category:"navigation",data:{from:l,to:g}})}Ni.__initStatic();var te=(0,Qt.V)();let Ce;function Ne(){if(Ce)return Ce;if(Xn(te.fetch))return Ce=te.fetch.bind(te);var p=te.document;let u=te.fetch;if(p&&"function"==typeof p.createElement)try{var l=p.createElement("iframe");l.hidden=!0,p.head.appendChild(l);var g=l.contentWindow;g&&g.fetch&&(u=g.fetch),p.head.removeChild(l)}catch(L){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",L)}return Ce=u.bind(te)}var Vt=(0,Qt.V)();class rn extends tr{constructor(u){u._metadata=u._metadata||{},u._metadata.sdk=u._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"7.11.1"}],version:"7.11.1"},super(u),u.sendClientReports&&Vt.document&&Vt.document.addEventListener("visibilitychange",()=>{"hidden"===Vt.document.visibilityState&&this._flushOutcomes()})}eventFromException(u,l){return function Qs(p,u,l,g){var H=Os(p,u,l&&l.syntheticException||void 0,g);return(0,O.M6)(H),H.level="error",l&&l.event_id&&(H.event_id=l.event_id),(0,Nr.XW)(H)}(this._options.stackParser,u,l,this._options.attachStacktrace)}eventFromMessage(u,l="info",g){return function Yr(p,u,l="info",g,L){var fe=Ys(p,u,g&&g.syntheticException||void 0,L);return fe.level=l,g&&g.event_id&&(fe.event_id=g.event_id),(0,Nr.XW)(fe)}(this._options.stackParser,u,l,g,this._options.attachStacktrace)}sendEvent(u,l){var g=this.getIntegrationById(uo);g&&g.options&&g.options.sentry&&(0,se.BF)().addBreadcrumb({category:"sentry."+("transaction"===u.type?"transaction":"event"),event_id:u.event_id,level:u.level,message:(0,O.$X)(u)},{event:u}),super.sendEvent(u,l)}_prepareEvent(u,l,g){return u.platform=u.platform||"javascript",super._prepareEvent(u,l,g)}_flushOutcomes(){var u=this._clearOutcomes();if(0!==u.length)if(this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log("Sending outcomes:",u);var l=dt(this._dsn,this._options),g=function Qr(p,u,l){return vi(u?{dsn:u}:{},[[{type:"client_report"},{timestamp:l||(0,je.lu)(),discarded_events:p}]])}(u,this._options.tunnel&&oe(this._dsn));try{!function tt(p,u){"[object Navigator]"===Object.prototype.toString.call(te&&te.navigator)&&"function"==typeof te.navigator.sendBeacon?te.navigator.sendBeacon.bind(te.navigator)(p,u):Fn()&&Ne()(p,{body:u,method:"POST",credentials:"omit",keepalive:!0}).then(null,fe=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error(fe)})}(l,Jt(g))}catch(L){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error(L)}}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log("No dsn provided, will not send outcomes");else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log("No outcomes to send")}}function br(p,u,l,g){var L={filename:p,function:u,in_app:!0};return void 0!==l&&(L.lineno=l),void 0!==g&&(L.colno=g),L}var Lr=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Br=/\((\S*)(?::(\d+))(?::(\d+))\)/,ki=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,aa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$o=Ft([30,p=>{var u=Lr.exec(p);if(u){if(u[2]&&0===u[2].indexOf("eval")){var g=Br.exec(u[2]);g&&(u[2]=g[1],u[3]=g[2],u[4]=g[3])}const[L,H]=Yi(u[1]||"?",u[2]);return br(H,L,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}}],[50,p=>{var u=ki.exec(p);if(u){if(u[3]&&u[3].indexOf(" > eval")>-1){var g=Qi.exec(u[3]);g&&(u[1]=u[1]||"eval",u[3]=g[1],u[4]=g[2],u[5]="")}let L=u[3],H=u[1]||"?";return[H,L]=Yi(H,L),br(L,H,u[4]?+u[4]:void 0,u[5]?+u[5]:void 0)}}],[40,p=>{var u=aa.exec(p);return u?br(u[2],u[1]||"?",+u[3],u[4]?+u[4]:void 0):void 0}]),Yi=(p,u)=>{var l=-1!==p.indexOf("safari-extension"),g=-1!==p.indexOf("safari-web-extension");return l||g?[-1!==p.indexOf("@")?p.split("@")[0]:"?",l?`safari-extension:${u}`:`safari-web-extension:${u}`]:[p,u]},Dr=s(3898);let Xi=0;function ji(){return Xi>0}function Js(p,u={},l){if("function"!=typeof p)return p;try{var g=p.__sentry_wrapped__;if(g)return g;if((0,Y.sp)(p))return p}catch{return p}var L=function(){var me=Array.prototype.slice.call(arguments);try{l&&"function"==typeof l&&l.apply(this,arguments);var Ke=me.map(ut=>Js(ut,u));return p.apply(this,Ke)}catch(ut){throw function ss(){Xi+=1,setTimeout(()=>{Xi-=1})}(),(0,Dr.v4)(jt=>{jt.addEventProcessor(Ut=>(u.mechanism&&((0,O.gO)(Ut,void 0,void 0),(0,O.M6)(Ut,u.mechanism)),Ut.extra={...Ut.extra,arguments:me},Ut)),(0,Dr.Cp)(ut)}),ut}};try{for(var H in p)Object.prototype.hasOwnProperty.call(p,H)&&(L[H]=p[H])}catch{}(0,Y.pO)(L,p),(0,Y.my)(p,"__sentry_wrapped__",L);try{Object.getOwnPropertyDescriptor(L,"name").configurable&&Object.defineProperty(L,"name",{get:()=>p.name})}catch{}return L}var To=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ue{static __initStatic(){this.id="TryCatch"}__init(){this.name=ue.id}constructor(u){ue.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...u}}setupOnce(){var u=(0,Qt.V)();this._options.setTimeout&&(0,Y.GS)(u,"setTimeout",pe),this._options.setInterval&&(0,Y.GS)(u,"setInterval",pe),this._options.requestAnimationFrame&&(0,Y.GS)(u,"requestAnimationFrame",Q),this._options.XMLHttpRequest&&"XMLHttpRequest"in u&&(0,Y.GS)(XMLHttpRequest.prototype,"send",Oe);var l=this._options.eventTarget;l&&(Array.isArray(l)?l:To).forEach(ot)}}function pe(p){return function(...u){return u[0]=Js(u[0],{mechanism:{data:{function:ze(p)},handled:!0,type:"instrument"}}),p.apply(this,u)}}function Q(p){return function(u){return p.apply(this,[Js(u,{mechanism:{data:{function:"requestAnimationFrame",handler:ze(p)},handled:!0,type:"instrument"}})])}}function Oe(p){return function(...u){var l=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(L=>{L in l&&"function"==typeof l[L]&&(0,Y.GS)(l,L,function(H){var fe={mechanism:{data:{function:L,handler:ze(H)},handled:!0,type:"instrument"}},me=(0,Y.sp)(H);return me&&(fe.mechanism.data.handler=ze(me)),Js(H,fe)})}),p.apply(this,u)}}function ot(p){var u=(0,Qt.V)(),l=u[p]&&u[p].prototype;!l||!l.hasOwnProperty||!l.hasOwnProperty("addEventListener")||((0,Y.GS)(l,"addEventListener",function(g){return function(L,H,fe){try{"function"==typeof H.handleEvent&&(H.handleEvent=Js(H.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ze(H),target:p},handled:!0,type:"instrument"}}))}catch{}return g.apply(this,[L,Js(H,{mechanism:{data:{function:"addEventListener",handler:ze(H),target:p},handled:!0,type:"instrument"}}),fe])}}),(0,Y.GS)(l,"removeEventListener",function(g){return function(L,H,fe){var me=H;try{var Ke=me&&me.__sentry_wrapped__;Ke&&g.call(this,L,Ke,fe)}catch{}return g.call(this,L,me,fe)}}))}ue.__initStatic();class Rn{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Rn.id}__init2(){this._installFunc={onerror:pr,onunhandledrejection:$s}}constructor(u){Rn.prototype.__init.call(this),Rn.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...u}}setupOnce(){Error.stackTraceLimit=50;var u=this._options;for(var l in u){var g=this._installFunc[l];g&&u[l]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.log(`Global Handler attached: ${l}`),g(),this._installFunc[l]=void 0)}}}function pr(){Mt("error",p=>{const[u,l,g]=xl();if(!u.getIntegration(Rn))return;const{msg:L,url:H,line:fe,column:me,error:Ke}=p;if(!(ji()||Ke&&Ke.__sentry_own_request__)){var ut=void 0===Ke&&(0,G.Kg)(L)?function Di(p,u,l,g){let H=(0,G.T2)(p)?p.message:p,fe="Error";var me=H.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return me&&(fe=me[1],H=me[2]),Oo({exception:{values:[{type:fe,value:H}]}},u,l,g)}(L,H,fe,me):Oo(Os(l,Ke||L,void 0,g,!1),H,fe,me);ut.level="error",la(u,Ke,ut,"onerror")}})}function $s(){Mt("unhandledrejection",p=>{const[u,l,g]=xl();if(!u.getIntegration(Rn))return;let L=p;try{"reason"in p?L=p.reason:"detail"in p&&"reason"in p.detail&&(L=p.detail.reason)}catch{}if(ji()||L&&L.__sentry_own_request__)return!0;var H=(0,G.sO)(L)?function Zs(p){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(p)}`}]}}}(L):Os(l,L,void 0,g,!0);H.level="error",la(u,L,H,"onunhandledrejection")})}function Oo(p,u,l,g){var L=p.exception=p.exception||{},H=L.values=L.values||[],fe=H[0]=H[0]||{},me=fe.stacktrace=fe.stacktrace||{},Ke=me.frames=me.frames||[],ut=isNaN(parseInt(g,10))?void 0:g,jt=isNaN(parseInt(l,10))?void 0:l,Ut=(0,G.Kg)(u)&&u.length>0?u:(0,ns.$)();return 0===Ke.length&&Ke.push({colno:ut,filename:Ut,function:"?",in_app:!0,lineno:jt}),p}function la(p,u,l,g){(0,O.M6)(l,{handled:!1,type:g}),p.captureEvent(l,{originalException:u})}function xl(){var p=(0,se.BF)(),u=p.getClient(),l=u&&u.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[p,l.stackParser,l.attachStacktrace]}Rn.__initStatic();class Ms{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ms.id}constructor(u={}){Ms.prototype.__init.call(this),this._key=u.key||"cause",this._limit=u.limit||5}setupOnce(){var u=(0,se.BF)().getClient();u&&(0,He.l)((l,g)=>{var L=(0,se.BF)().getIntegration(Ms);return L?function _c(p,u,l,g,L){if(!(g.exception&&g.exception.values&&L&&(0,G.tH)(L.originalException,Error)))return g;var H=Ec(p,l,L.originalException,u);return g.exception.values=[...H,...g.exception.values],g}(u.getOptions().stackParser,L._key,L._limit,l,g):l})}}function Ec(p,u,l,g,L=[]){if(!(0,G.tH)(l[g],Error)||L.length+1>=u)return L;var H=jr(p,l[g]);return Ec(p,u,l[g],g,[H,...L])}Ms.__initStatic();class ua{constructor(){ua.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=ua.id}setupOnce(u,l){var g=L=>{var H=l().getIntegration(ua);if(H){try{if(function el(p,u){return!(!u||!function du(p,u){var l=p.message,g=u.message;return!(!l&&!g||l&&!g||!l&&g||l!==g||!po(p,u)||!Wo(p,u))}(p,u)&&!function qs(p,u){var l=Sc(u),g=Sc(p);return!!(l&&g&&l.type===g.type&&l.value===g.value&&po(p,u)&&Wo(p,u))}(p,u))}(L,H._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return H._previousEvent=L}return H._previousEvent=L}return L};g.id=this.name,u(g)}}function Wo(p,u){let l=Oa(p),g=Oa(u);if(!l&&!g)return!0;if(l&&!g||!l&&g||g.length!==l.length)return!1;for(let fe=0;fe<g.length;fe++){var L=g[fe],H=l[fe];if(L.filename!==H.filename||L.lineno!==H.lineno||L.colno!==H.colno||L.function!==H.function)return!1}return!0}function po(p,u){let l=p.fingerprint,g=u.fingerprint;if(!l&&!g)return!0;if(l&&!g||!l&&g)return!1;try{return l.join("")===g.join("")}catch{return!1}}function Sc(p){return p.exception&&p.exception.values&&p.exception.values[0]}function Oa(p){var u=p.exception;if(u)try{return u.values[0].stacktrace.frames}catch{return}}ua.__initStatic();var qn=(0,Qt.V)();class qr{constructor(){qr.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=qr.id}setupOnce(){(0,He.l)(u=>{if((0,se.BF)().getIntegration(qr)){if(!qn.navigator&&!qn.location&&!qn.document)return u;var l=u.request&&u.request.url||qn.location&&qn.location.href;const{referrer:H}=qn.document||{},{userAgent:fe}=qn.navigator||{};var L={...l&&{url:l},headers:{...u.request&&u.request.headers,...H&&{Referer:H},...fe&&{"User-Agent":fe}}};return{...u,request:L}}return u})}}qr.__initStatic();var Ji=6e4;var kl=30;function nl(p,u,l=function oi(p){var u=[];function g(fe){return u.splice(u.indexOf(fe),1)[0]}return{$:u,add:function L(fe){if(!function l(){return void 0===p||u.length<p}())return(0,Nr.xg)(new ce("Not adding Promise due to buffer limit reached."));var me=fe();return-1===u.indexOf(me)&&u.push(me),me.then(()=>g(me)).then(null,()=>g(me).then(null,()=>{})),me},drain:function H(fe){return new Nr.T2((me,Ke)=>{let ut=u.length;if(!ut)return me(!0);var jt=setTimeout(()=>{fe&&fe>0&&me(!1)},fe);u.forEach(Ut=>{(0,Nr.XW)(Ut).then(()=>{--ut||(clearTimeout(jt),me(!0))},Ke)})})}}}(p.bufferSize||kl)){let g={};return{send:function H(fe){var me=[];if(rt(fe,(Ut,Qn)=>{var On=qt(Qn);!function Go(p,u,l=Date.now()){return function tl(p,u){return p[u]||p.all||0}(p,u)>l}(g,On)?me.push(Ut):p.recordDroppedEvent("ratelimit_backoff",On)}),0===me.length)return(0,Nr.XW)();var Ke=vi(fe[0],me),ut=Ut=>{rt(Ke,(Qn,On)=>{p.recordDroppedEvent(Ut,qt(On))})};return l.add(()=>u({body:Jt(Ke,p.textEncoder)}).then(Ut=>{void 0!==Ut.statusCode&&(Ut.statusCode<200||Ut.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn(`Sentry responded with status code ${Ut.statusCode} to sent event.`),g=function eo(p,{statusCode:u,headers:l},g=Date.now()){var L={...p},H=l&&l["x-sentry-rate-limits"],fe=l&&l["retry-after"];if(H)for(var me of H.trim().split(",")){const[Ut,Qn]=me.split(":",2);var Ke=parseInt(Ut,10),ut=1e3*(isNaN(Ke)?60:Ke);if(Qn)for(var jt of Qn.split(";"))L[jt]=g+ut;else L.all=g+ut}else fe?L.all=g+function Ti(p,u=Date.now()){var l=parseInt(`${p}`,10);if(!isNaN(l))return 1e3*l;var g=Date.parse(`${p}`);return isNaN(g)?Ji:g-u}(fe,g):429===u&&(L.all=g+6e4);return L}(g,Ut)},Ut=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("Failed while sending event:",Ut),ut("network_error")})).then(Ut=>Ut,Ut=>{if(Ut instanceof ce)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("Skipped sending event due to full buffer"),ut("queue_overflow"),(0,Nr.XW)();throw Ut})},flush:fe=>l.drain(fe)}}function Ko(p,u=Ne()){return nl(p,function l(g){var L={body:g.body,method:"POST",referrerPolicy:"origin",headers:p.headers,...p.fetchOptions};return u(p.url,L).then(H=>({statusCode:H.status,headers:{"x-sentry-rate-limits":H.headers.get("X-Sentry-Rate-Limits"),"retry-after":H.headers.get("Retry-After")}}))})}function wa(p){return nl(p,function u(l){return new Nr.T2((g,L)=>{var H=new XMLHttpRequest;for(var fe in H.onerror=L,H.onreadystatechange=()=>{4===H.readyState&&g({statusCode:H.status,headers:{"x-sentry-rate-limits":H.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":H.getResponseHeader("Retry-After")}})},H.open("POST",p.url),p.headers)Object.prototype.hasOwnProperty.call(p.headers,fe)&&H.setRequestHeader(fe,p.headers[fe]);H.send(l.body)})})}var Fl=[new U,new Ie,new ue,new Ni,new Rn,new Ms,new ua,new qr];function Bl(p){p.startSession({ignoreDuration:!0}),p.captureSession()}var Oi=s(31761),ui=s(46393),Ws=s(40352),Cs=s(38355),ds=s(58298),Fi=s(54436),Li=s(19443),Pa=s(8632),il=s(22900),to=s(10047),di=s(23922),Zi=s(34678),sl=s(96198),Po=s(78766),Gs=s(78019);const zo=()=>{const p=(()=>{const p=document.createElement("div");return p.style.cssText="position: fixed; top: 0; height: 100vh; pointer-events: none;",document.documentElement.insertBefore(p,document.documentElement.firstChild),p})();let u=500;try{u=window.innerHeight}catch{}const l=p.offsetHeight,g=l-u;return(p=>{document.documentElement.removeChild(p)})(p),{vh:l,windowHeight:u,offset:g,isNeeded:0!==g,value:0}},F=()=>{},_e=()=>{const p=zo();return p.value=p.offset,p},q=()=>{const p=zo();return p.value=.01*p.windowHeight,p},he=p=>"string"==typeof p&&p.length>0,Ye=p=>"function"==typeof p,Lt=Object.freeze({cssVarName:"vh-offset",redefineVh:!1,method:_e,force:!1,bind:!0,updateOnTouch:!1,onUpdate:F});let Ln=!1,$r=[];try{const p=Object.defineProperty({},"passive",{get(){Ln=!0}});window.addEventListener("test",p,p),window.removeEventListener("test",p,p)}catch{Ln=!1}function Kr(p,u){$r.push({eventName:p,callback:u});try{window.addEventListener(p,u,!!Ln&&{passive:!0})}catch{}}function Fr(){$r.forEach(p=>{try{window.removeEventListener(p.eventName,p.callback)}catch{}}),$r=[]}const _r=(p,u)=>{document.documentElement.style.setProperty(`--${p}`,`${u.value}px`)},ai=(p,u)=>({...p,unbind:Fr,recompute:u.method});var hi=s(7745),gr=s(39552),sn=s(89497),ei=s(19076),ri=s(6595),no=s(34084);let li=(()=>{class p extends no._{constructor(l,g){super(),this.element=l,this.renderer=g}ngOnChanges(l){l?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(g){return new(g||p)(i.rXU(i.aKT),i.rXU(i.sFG))}}static{this.\u0275cmp=i.VBU({type:p,selectors:[["popsy-icon-single-user"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[i.Vt3,i.OA$,i.aNF],decls:3,vars:0,consts:[["viewBox","0 0 16 18","fill","none","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["d","M7.9873 9C10.1964 9 11.9873 7.20914 11.9873 5C11.9873 2.79086 10.1964 1 7.9873 1C5.77817 1 3.9873 2.79086 3.9873 5C3.9873 7.20914 5.77817 9 7.9873 9Z","stroke","#1B2B4B","stroke-width","1.2"],["d","M11.9875 10.6H12.2691C12.854 10.6001 13.4187 10.8139 13.8571 11.201C14.2955 11.5881 14.5774 12.122 14.6499 12.7024L14.9627 15.2016C14.9909 15.4267 14.9708 15.6553 14.9039 15.8721C14.8369 16.0889 14.7246 16.2889 14.5744 16.459C14.4243 16.6291 14.2396 16.7653 14.0328 16.8585C13.826 16.9518 13.6016 17 13.3747 17H2.60035C2.37345 17 2.14914 16.9518 1.94231 16.8585C1.73547 16.7653 1.55083 16.6291 1.40065 16.459C1.25047 16.2889 1.13818 16.0889 1.07123 15.8721C1.00429 15.6553 0.984214 15.4267 1.01235 15.2016L1.32435 12.7024C1.39691 12.1218 1.67908 11.5876 2.11781 11.2005C2.55655 10.8133 3.12161 10.5998 3.70675 10.6H3.98755","stroke","#1B2B4B","stroke-width","1.2","stroke-linecap","round","stroke-linejoin","round"]],template:function(g,L){1&g&&(i.qSk(),i.j41(0,"svg",0),i.nrm(1,"path",1)(2,"path",2),i.k0s())},encapsulation:2,changeDetection:0})}}return p})();var Bi=s(57917);let Rs=(()=>{class p extends no._{constructor(l,g){super(),this.element=l,this.renderer=g}ngOnChanges(l){l?.aspectRatio&&this.applyAspectRatio()}ngAfterViewInit(){this.applyAspectRatio()}applyAspectRatio(){this.element?.nativeElement?.firstChild&&("fill"===this.aspectRatio?this.renderer?.setAttribute&&this.element?.nativeElement?.firstChild?.setAttribute&&"function"==typeof this.renderer?.setAttribute&&this.renderer.setAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio","xMinYMin slice"):this.renderer?.removeAttribute&&this.element?.nativeElement?.firstChild?.removeAttribute&&"function"==typeof this.renderer?.removeAttribute&&this.renderer.removeAttribute(this.element.nativeElement.firstChild,"preserveAspectRatio"))}static{this.\u0275fac=function(g){return new(g||p)(i.rXU(i.aKT),i.rXU(i.sFG))}}static{this.\u0275cmp=i.VBU({type:p,selectors:[["popsy-icon-shopping-bag"]],inputs:{aspectRatio:"aspectRatio"},standalone:!0,features:[i.Vt3,i.OA$,i.aNF],decls:2,vars:0,consts:[["viewBox","0 0 16 18","fill","none","xmlns","http://www.w3.org/2000/svg","width","100%","height","100%"],["d","M4.25 4.625C4.25 4.625 4.25 0.875 8 0.875C11.75 0.875 11.75 4.625 11.75 4.625M1.125 4.625V17.125H14.875V4.625H1.125Z","stroke","#1B2B4B","stroke-width","1.2","stroke-linecap","round","stroke-linejoin","round"]],template:function(g,L){1&g&&(i.qSk(),i.j41(0,"svg",0),i.nrm(1,"path",1),i.k0s())},encapsulation:2,changeDetection:0})}}return p})();var nr=s(94638),Mo=s(42567),Cc=s(73644),Vi=s(94665),ci=s(83210),mo=s(31946),fa=s(43504),os=s(15214),Ro=s(43195),Ma=s(75235),yo=s(52405),al=s(82437);const pa=["searchField"];function mr(p,u){if(1&p){const l=i.RV6();i.qex(0),i.j41(1,"input",7,0),i.nI1(3,"async"),i.mxI("ngModelChange",function(L){i.eBV(l);const H=i.XpG(2);return i.DH7(H.searchQuery,L)||(H.searchQuery=L),i.Njj(L)}),i.bIt("input",function(L){i.eBV(l);const H=i.XpG(2);return i.Njj(H.updateQueryFragments(L))})("focus",function(){i.eBV(l);const L=i.XpG(2);return i.Njj(L.switchFocus(!0))})("focusout",function(){i.eBV(l);const L=i.XpG(2);return i.Njj(L.switchFocus(!1))})("keydown.enter",function(){i.eBV(l);const L=i.XpG(2);return i.Njj(L.isFilteredHints?L.search(L.searchQuery):null)}),i.k0s(),i.bVm()}if(2&p){let l;const g=i.XpG().$implicit,L=i.XpG();i.R7$(),i.AVh("mobile",(null==(l=i.bMT(3,7,L.lessThan$))?null:l.mobileL)&&"location"!==L.searchType)("focus",L.inFocus),i.Y8G("placeholder",g("hint_search")),i.R50("ngModel",L.searchQuery),i.BMQ("aria-label",g("hint_search"))}}function Vl(p,u){if(1&p&&(i.qex(0),i.j41(1,"a",8),i.nI1(2,"async"),i.nrm(3,"popsy-icon-remove",9),i.k0s(),i.bVm()),2&p){const l=i.XpG().$implicit,g=i.XpG();i.R7$(),i.AVh("rtl",g.rtlMode),i.Y8G("routerLink",i.bMT(2,6,g.searchUrlFragment$))("queryParams",g.getClearSearchQuery())("queryParamsHandling","merge"),i.BMQ("aria-label",l("aria_filter_disable"))}}function Ra(p,u){if(1&p){const l=i.RV6();i.j41(0,"div",12),i.bIt("click",function(){const L=i.eBV(l).$implicit,H=i.XpG(3);return i.Njj(H.search(L,!0))}),i.EFF(1),i.k0s()}if(2&p){const l=u.$implicit;i.R7$(),i.SpI(" ",l," ")}}function vo(p,u){if(1&p&&(i.j41(0,"div",10),i.DNE(1,Ra,2,1,"div",11),i.nI1(2,"async"),i.k0s()),2&p){const l=i.XpG(2);i.R7$(),i.Y8G("ngForOf",i.bMT(2,2,l.autocomplete$))("ngForTrackBy",l.trackBySuggestion)}}function Ic(p,u){if(1&p){const l=i.RV6();i.qex(0),i.j41(1,"div",2),i.nI1(2,"async"),i.bIt("click",function(){i.eBV(l);const L=i.XpG();return i.Njj(L.openSearchInput())}),i.nrm(3,"popsy-icon-search-glass",3),i.j41(4,"div",4),i.DNE(5,mr,4,9,"ng-container",5)(6,Vl,4,8,"ng-container",5),i.k0s()(),i.DNE(7,vo,3,4,"div",6),i.nI1(8,"async"),i.nI1(9,"async"),i.bVm()}if(2&p){let l,g;const L=i.XpG();i.R7$(),i.AVh("rtl",L.rtlMode)("focus",L.inFocus)("mobileL",null==(l=i.bMT(2,11,L.biggerThan$))?null:l.mobileL),i.R7$(3),i.AVh("rtl",L.rtlMode),i.R7$(),i.Y8G("ngIf","location"!==L.searchType),i.R7$(),i.Y8G("ngIf","location"!==L.searchType&&(null==L.queryParams?null:L.queryParams.text)),i.R7$(),i.Y8G("ngIf",i.bMT(8,13,L.inFocus$)&&L.searchQuery.length&&(null==(g=i.bMT(9,15,L.autocomplete$))?null:g.length))}}const Na={\u0627\u064a\u0641\u0648\u0646:"\u0622\u064a\u0641\u0648\u0646",\u0644\u0627\u0628\u062a\u0648\u0628:"\u0645\u0639\u0627\u0644\u062c","\u0644\u0627\u0628 \u062a\u0648\u0628":"\u0645\u0639\u0627\u0644\u062c","\u0633\u0627\u0639\u0629 \u0627\u0628\u0644":"\u0633\u0627\u0639\u0629 \u0622\u0628\u0644",\u062c\u0648\u0627\u0644\u0627\u062a:"\u0647\u0627\u062a\u0641","\u062c\u0648\u0627\u0644 \u0627\u064a\u0641\u0648\u0646":"\u0622\u064a\u0641\u0648\u0646",\u062c\u0648\u0627\u0644:"\u0647\u0627\u062a\u0641",\u062c\u0644\u0643\u0633\u064a:"\u063a\u0627\u0644\u0627\u0643\u0633\u064a",\u062a\u0627\u0628\u0644\u062a:"\u062a\u0627\u0628",\u0627\u064a\u0628\u0627\u062f:"\u0622\u064a\u0628\u0627\u062f",\u0627\u0628\u0644:"\u0622\u0628\u0644"},wi={\u0647\u0648\u0646\u0631:"Honor",\u0647\u0648\u0627\u0648\u064a:"Huawei",\u0647\u0627\u062a\u0641:"Phone",\u0645\u062c\u062f\u062f:"Renewed","\u0645\u0627\u0643 \u0628\u0648\u0643":"MacBook",\u0644\u0627\u0628\u062a\u0648\u0628:"Laptop","\u0644\u0627\u0628 \u062a\u0648\u0628":"Laptop","\u0633\u0648\u0646\u064a 5":"Sony 5",\u0633\u0648\u0646\u064a:"Sony",\u0633\u0645\u0627\u0639\u0627\u062a:"Headphones",\u0633\u0627\u0645\u0633\u0648\u0646\u062c:"Samsung","\u0633\u0627\u0639\u0629 \u0627\u0628\u0644":"Apple Watch",\u0633\u0627\u0639\u0627\u062a:"Watches",\u062c\u0648\u0644\u0627\u062a:"Tours",\u062c\u0648\u0644:"Tour",\u062c\u0648\u0627\u0644\u0627\u062a:"Mobiles","\u062c\u0648\u0627\u0644 \u0627\u064a\u0641\u0648\u0646":"iPhone Mobile",\u062c\u0648\u0627\u0644:"Mobile",\u062c\u0644\u0643\u0633\u064a:"Galaxy",\u062c\u0627\u0644\u0643\u0633\u064a:"Galaxy",\u062a\u0627\u0628\u0644\u062a:"Tablet",\u062a\u0627\u0628:"Tab",\u0628\u064a\u0633\u064a:"PC","\u0628\u064a \u0633\u064a":"PC",\u0628\u0644\u0627\u0633\u062a\u064a\u0634\u0646:"PlayStation",\u0627\u064a\u0641\u0648\u064614:"iPhone 14",\u0627\u064a\u0641\u0648\u0646\u0661\u0664:"iPhone 14",\u0627\u064a\u0641\u0648\u064613:"iPhone 13",\u0627\u064a\u0641\u0648\u0646\u0661\u0663:"iPhone 13",\u0627\u064a\u0641\u0648\u064612:"iPhone 12",\u0627\u064a\u0641\u0648\u064611:"iPhone 11",\u0627\u064a\u0641\u0648\u0646\u0661\u0661:"iPhone 11","\u0627\u064a\u0641\u0648\u0646 \u0645\u062c\u062f\u062f":"Renewed iPhone","\u0627\u064a\u0641\u0648\u0646 \u0628\u0631\u0648 \u0645\u0627\u0643\u0633":"iPhone Pro Max","\u0627\u064a\u0641\u0648\u0646 \u0627\u0643\u0633 \u0645\u0627\u0643\u0633":"iPhone XS Max","\u0627\u064a\u0641\u0648\u0646 \u0627\u0643\u0633 \u0627\u0631":"iPhone XR","\u0627\u064a\u0641\u0648\u0646 \u0627\u0643\u0633":"iPhone X","\u0627\u064a\u0641\u0648\u0646 xr":"iPhone XR","\u0627\u064a\u0641\u0648\u0646 x":"iPhone X","\u0627\u064a\u0641\u0648\u0646 8":"iPhone 8","\u0627\u064a\u0641\u0648\u0646 7":"iPhone 7","\u0627\u064a\u0641\u0648\u0646 \u0667":"iPhone 7","\u0627\u064a\u0641\u0648\u0646 6":"iPhone 6","\u0627\u064a\u0641\u0648\u0646 14\u0628\u0631\u0648 \u0645\u0627\u0643\u0633":"iPhone 14 Pro Max","\u0627\u064a\u0641\u0648\u0646 14 \u0628\u0631\u0648 \u0645\u0627\u0643\u0633":"iPhone 14 Pro Max","\u0627\u064a\u0641\u0648\u0646 \u0661\u0664 \u0628\u0631\u0648 \u0645\u0627\u0643\u0633":"iPhone 14 Pro Max","\u0627\u064a\u0641\u0648\u0646 14 \u0628\u0631\u0648":"iPhone 14 Pro","\u0627\u064a\u0641\u0648\u0646 14":"iPhone 14","\u0627\u064a\u0641\u0648\u0646 \u0661\u0664":"iPhone 14","\u0627\u064a\u0641\u0648\u0646 13 \u0628\u0631\u0648 \u0645\u0627\u0643\u0633":"iPhone 13 Pro Max","\u0627\u064a\u0641\u0648\u0646 13":"iPhone 13","\u0627\u064a\u0641\u0648\u0646 \u0661\u0663":"iPhone 13","\u0627\u064a\u0641\u0648\u0646 12":"iPhone 12","\u0627\u064a\u0641\u0648\u0646 \u0661\u0662":"iPhone 12","\u0627\u064a\u0641\u0648\u0646 11":"iPhone 11","\u0627\u064a\u0641\u0648\u0646 \u0661\u0661":"iPhone 11","\u0627\u064a\u0641\u0648\u0646 10":"iPhone 10",\u0627\u064a\u0641\u0648\u0646:"iPhone",\u0627\u064a\u0641\u0648\u0627\u0646:"iPhones",\u0627\u064a\u0641\u0646:"iPhones",\u0627\u064a\u0628\u062f:"iPad","\u0627\u064a\u0628\u0627\u062f \u0645\u064a\u0646\u064a":"iPad Mini","\u0627\u064a\u0628\u0627\u062f \u0628\u0631\u0648":"iPad Pro","\u0627\u064a\u0628\u0627\u062f \u0627\u064a\u0641\u0648\u0646":"iPad iPhone","\u0627\u064a\u0628\u0627\u062f \u0627\u064a\u0631":"iPad Air","\u0627\u064a\u0628\u0627\u062f \u0627\u0628\u0644":"Apple iPad",\u0627\u064a\u0628\u0627\u062f:"iPad",\u0627\u064a:"i",\u0627\u0628\u0644:"Apple",\u0627:"A","\u0622\u064a\u0641\u0648\u0646 14":"iPhone 14","\u0622\u064a\u0641\u0648\u0646 11":"iPhone 11",\u0622\u064a\u0641\u0648\u0646:"iPhone",\u0622\u064a\u0628\u0627\u062f:"iPad"},Ac={"\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9"};let $i=(()=>{class p{constructor(l,g,L,H,fe,me,Ke,ut,jt,Ut,Qn,On){this.zone=l,this.router=g,this.analytics=L,this.changeDetector=H,this.activatedRoute=fe,this.akitaScreenQuery=me,this.akitaRouterQuery=Ke,this.akitaRouterService=ut,this.akitaProductsQuery=jt,this.akitaProductsService=Ut,this.akitaStartingPricesQuery=Qn,this.translateService=On,this.queryModels=[],this.destroySubject=new Ws.B,this.subscription=new Cs.yU,this.isBrowser=this.akitaRouterQuery.isBrowser,this.params={},this.queryParams={},this.routeData={},this.rtlMode=!1,this.inFocus=!1,this.lessThan$=this.akitaScreenQuery.selectLessThan(),this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.searchQuery="",this.isFilteredHints=!1,this.language=this.translateService.getActiveLang()||"en",this.queryParamsToKeep$=this.akitaRouterQuery.selectQueryParamsToKeep(),this.inFocusSubject=new nr.t(!1),this.inFocus$=this.inFocusSubject.asObservable(),this.searchQueryFragmentsSubject=new nr.t(""),this.searchQueryFragments$=this.searchQueryFragmentsSubject.asObservable(),this.autocomplete$=(0,ds.z)([this.searchQueryFragments$,this.akitaStartingPricesQuery.selectStartingPrices(),this.akitaProductsQuery.selectProductSearchHints()]).pipe((0,b.B)(500),(0,Pa.F)(),(0,Fi.T)(([xn,wn,Gr])=>{const pi=[...Gr];return wn.length&&(this.queryModels=wn.map(gi=>gi.model.toLocaleLowerCase()),pi.unshift(...wn.map(gi=>gi.model))),xn=this.autoCorrectQuery(xn.toLowerCase()),this.searchQuery.length?pi.filter(gi=>!!gi.toLowerCase().includes(xn)):new Array(0)}),(0,Mo.M)(xn=>this.isFilteredHints=!!xn.length)),this.searchUrlFragment$=this.akitaRouterQuery.selectSearchUrlFragment(),this.urlObserver=this.router.events.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:xn=>{if(xn instanceof ui.wF){let wn=this.activatedRoute.snapshot;for(;wn.firstChild;)wn=wn.firstChild;this.onNavigationEnd(wn.params||{},wn.queryParams||{},wn.data||{})}}}),this.subscription.add(this.akitaProductsService.fetchProductSearchHints().subscribe({next:()=>{}}))}ngOnInit(){let l=this.activatedRoute.snapshot;for(;l.firstChild;)l=l.firstChild;this.onNavigationEnd(l.params||{},l.queryParams||{},l.data||{})}onNavigationEnd(l,g,L){this.params=l||{},this.queryParams=g||{},this.routeData=L||{},this.rtlMode=L.rtl||!1,this.searchQuery=(g.text||"").replace(/\+/g," "),this.changeDetector.markForCheck()}search(l,g){if(this.searchFieldElement&&this.searchFieldElement.nativeElement.blur(),l=this.autoCorrectQuery(l),(0,Gs.hW)(this.analytics.logEventWrapper,this.shortenString(l),this.akitaProductsQuery.validateLocale().country||"SA"),g&&this.queryModels.includes(l))this.akitaRouterService.navigate(["c","model",l.toLowerCase().replace(/%20| /g,"-")],{...this.queryParams,text:void 0});else{const L=this.akitaRouterQuery.getPhoneSearchFragment();this.zone.run(()=>{this.akitaRouterService.navigate(L,{...this.queryParams,text:l||void 0,min_price:void 0,max_price:void 0,global:void 0,sort_by:void 0,posted:void 0,models:void 0,colors:void 0,storages:void 0,category:void 0,brands:void 0,cpu:void 0,ram:void 0,screen_size:void 0,graphics:void 0,storage_type:void 0,launch_date:void 0},{queryParamsHandling:"merge",preserveFragment:!0})})}}getClearSearchQuery(){return{...this.queryParams,text:void 0}}close(){this.zone.run(()=>{this.inFocus=!1,this.changeDetector.markForCheck()})}openSearchInput(){return this.inFocus||(this.searchFieldElement?.nativeElement.focus(),this.inFocusSubject.next(!0),this.inFocus=!0),!1}switchFocus(l){setTimeout(()=>{this.inFocus=l,this.inFocusSubject.next(l),l||(0,Gs.hW)(this.analytics.logEventWrapper,this.shortenString(this.searchQuery),this.akitaProductsQuery.validateLocale().country||"SA")},300)}updateQueryFragments(l){l.target.value&&this.searchQueryFragmentsSubject.next("ar"===this.language?this.searchQuery:l.target.value)}autoCorrectQuery(l){for(const[g,L]of Object.entries(Na))l=l.replace(g,L);for(const[g,L]of Object.entries(Ac))l=l.replace(new RegExp(this.escapeRegExp(g),"g"),L);if(l.includes("\u0622\u064a\u0641\u0648\u0646")&&(l=l.replace(/(\u0622\u064a\u0641\u0648\u0646)(\d+)/,"$1 $2")),"en"===this.language)for(const[g,L]of Object.entries(wi))l=l.replace(g,L).toLocaleLowerCase();return l}escapeRegExp(l){return l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}productFragment(l){return this.akitaRouterQuery.getProductUrlFragment(`${l}`)}shortenString(l){return l.length>90?l.slice(0,80)+"...":l}trackBySuggestion(l,g){return`${g||l}`}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.urlObserver&&this.urlObserver.unsubscribe()}static{this.\u0275fac=function(g){return new(g||p)(i.rXU(i.SKi),i.rXU(ui.Ix),i.rXU(mo.p),i.rXU(i.gRc),i.rXU(ui.nX),i.rXU(fa.L),i.rXU(os.O),i.rXU(Ro.t),i.rXU(Ma.h),i.rXU(yo.w),i.rXU(al.X),i.rXU(di.JO))}}static{this.\u0275cmp=i.VBU({type:p,selectors:[["app-search-box"]],viewQuery:function(g,L){if(1&g&&i.GBs(pa,5),2&g){let H;i.mGM(H=i.lsd())&&(L.searchFieldElement=H.first)}},inputs:{searchType:"searchType"},standalone:!0,features:[i.aNF],decls:1,vars:0,consts:[["searchField",""],[4,"transloco"],[1,"search-box-component","popsy-button","pill",3,"click"],[1,"search-icon"],[1,"text"],[4,"ngIf"],["class","autocomplete-wrapper popsy-card",4,"ngIf"],["data-clarity-unmask","","role","search","type","search",1,"field","search-field",3,"ngModelChange","input","focus","focusout","keydown.enter","placeholder","ngModel"],["role","button",1,"clear-search-button",3,"routerLink","queryParams","queryParamsHandling"],[1,"icon","closeIcon","gray-01"],[1,"autocomplete-wrapper","popsy-card"],["class","suggestion",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"suggestion",3,"click"]],template:function(g,L){1&g&&i.DNE(0,Ic,10,17,"ng-container",1)},dependencies:[di.Q8,di.bA,ci.h,Oi.bT,Vi.X1,Vi.me,Vi.BC,Vi.YN,Vi.vS,ui.Wk,Cc.z,Oi.pM,Oi.Jj],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.search-box-component.focus[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #c6e1f0}.search-box-component.focus[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{background-color:#fff!important;caret-color:#5aa9f1}.search-box-component.focus[_ngcontent-%COMP%]   .clear-search-button[_ngcontent-%COMP%]{background-color:#fff!important;border:0!important}.search-box-component[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{font-size:19px;height:19px;min-height:19px;max-height:19px;width:19px;min-width:19px;max-width:19px;line-height:19px;padding:0 16px;border:0}.search-box-component[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]     g{stroke:#1b3b4b!important}.search-box-component[_ngcontent-%COMP%]   .search-icon.rtl[_ngcontent-%COMP%]{transform:rotateY(-180deg);backface-visibility:visible}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:block;width:100%;max-width:450px;height:100%;overflow:hidden}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   button.field[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{font-size:14px;line-height:21px;min-height:15px;font-display:swap;display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;border:0;width:100%;height:100%;text-align:start;padding:0 8px;-webkit-appearance:unset;appearance:unset;background-color:#f3f4f7;color:#172b4d;white-space:nowrap;text-overflow:ellipsis;word-break:break-all;border-left-color:#fff!important;border-right-color:transparent!important}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]:focus::placeholder{transition:opacity .5s .5s ease;opacity:1}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field.field-button[_ngcontent-%COMP%]{cursor:pointer}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field.field-button[_ngcontent-%COMP%]:hover{background-color:#fafbfc}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]::placeholder{font-size:14px;line-height:21px;min-height:15px;font-display:swap;color:#a5adb9;line-height:-moz-block-height}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]:focus{outline:none;border-color:inherit;box-shadow:none}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[disabled][_ngcontent-%COMP%]{background-color:#f3f4f766;color:#172b4d66}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[disabled][_ngcontent-%COMP%]::placeholder{color:#172b4d66;border:0!important}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[disabled].field-button[_ngcontent-%COMP%]{background-color:#fafbfc}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]::placeholder{font-size:14px;line-height:21px;min-height:15px;font-display:swap;color:#a5adb9}@supports (-moz-appearance: none){.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]::placeholder{line-height:38px!important}}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]   .field.mobile[_ngcontent-%COMP%]{border-radius:0!important}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] > a.clear-search-button[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;height:100%;width:40px;text-decoration:none;color:#44506b;border-left:1px solid #f3f4f7;border-right:1px solid transparent;background-color:#f3f4f7}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] > a.clear-search-button.rtl[_ngcontent-%COMP%]{border-left-color:transparent!important;border-right-color:#f3f4f7}.search-box-component[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%] > a.clear-search-button[_ngcontent-%COMP%]   .closeIcon[_ngcontent-%COMP%]{font-size:21px;height:21px;min-height:21px;max-height:21px;width:21px;min-width:21px;max-width:21px;line-height:21px}.search-box-component[_ngcontent-%COMP%]   .text.rtl[_ngcontent-%COMP%]   .field[_ngcontent-%COMP%]{border-left-color:transparent!important;border-right-color:#fff!important}.search-box-component[disabled][_ngcontent-%COMP%]{border-color:#f3f4f766!important}.search-box-component[disabled][_ngcontent-%COMP%]   .clear-search-button[_ngcontent-%COMP%]{background-color:#f3f4f766!important;border-color:#f3f4f766!important;pointer-events:none}.search-box-component[disabled][_ngcontent-%COMP%]   .clear-search-button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]     path{stroke:#172b4d66!important}.search-box-component[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;font-size:14px;line-height:21px;min-height:15px;font-display:swap;display:flex;overflow:hidden;align-items:center;justify-content:flex-start;height:40px;width:100%;padding:0;border-radius:24px;background-color:#f3f4f7;color:#44506b}.autocomplete-wrapper[_ngcontent-%COMP%]{scrollbar-width:thin;scrollbar-color:#a5adb9 #f3f4f7;max-height:500px;overflow-y:scroll;background-color:#fafbfc!important;z-index:5000}.autocomplete-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{height:6px}.autocomplete-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f3f4f7}.autocomplete-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a5adb9;border-radius:20px;border:1px solid #f3f4f7}.suggestion[_ngcontent-%COMP%]{padding:18px 32px!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-break:break-all;cursor:pointer;color:#6d7789!important}.suggestion[_ngcontent-%COMP%]:hover{color:#44506b!important}"],changeDetection:0})}}return p})();var Ei=s(66238),Dc=s(77880),Qo=s(44409),jl=s(64387),hs=s(28249),ll=s(74058),pd=s(72131),gd=s(19323),La=s(81192);function pu(p,u){if(1&p){const l=i.RV6();i.qex(0),i.j41(1,"a",11),i.bIt("click",function(){i.eBV(l);const L=i.XpG(2);return i.Njj(L.openBurguerMenu())}),i.nrm(2,"popsy-icon-burguer-menu",12),i.k0s(),i.nrm(3,"span",8),i.bVm()}if(2&p){const l=i.XpG().$implicit;i.R7$(),i.BMQ("aria-label",l("aria_action_home"))}}function gu(p,u){if(1&p&&(i.qex(0),i.nrm(1,"app-search-box",13)(2,"span",7),i.bVm()),2&p){const l=i.XpG().$implicit;i.R7$(),i.BMQ("aria-label",l("hint_search"))}}function $l(p,u){if(1&p){const l=i.RV6();i.qex(0),i.j41(1,"button",14,0),i.nI1(3,"async"),i.nI1(4,"async"),i.bIt("click",function(){i.eBV(l);const L=i.XpG(2);return i.Njj(L.goToCart())}),i.nrm(5,"popsy-icon-shopping-bag",15),i.k0s(),i.bVm()}if(2&p){const l=i.XpG().$implicit,g=i.XpG();i.R7$(),i.AVh("unread",(i.bMT(3,4,g.cartItemsCount$)||0)>0),i.BMQ("data-before",i.bMT(4,6,g.cartItemsCount$)||void 0)("aria-label",l("label_cart"))}}function um(p,u){1&p&&i.nrm(0,"popsy-icon-single-user",19)}function dm(p,u){if(1&p&&(i.qex(0),i.j41(1,"a",16),i.nI1(2,"async"),i.nrm(3,"app-picture",17),i.nI1(4,"async"),i.nI1(5,"async"),i.DNE(6,um,1,0,"popsy-icon-single-user",18),i.k0s(),i.bVm()),2&p){let l;const g=i.XpG().$implicit,L=i.XpG();i.R7$(),i.Y8G("routerLink",L.userUrlFragment)("queryParams",i.bMT(2,8,L.queryParamsToKeep$)),i.BMQ("aria-label",g("action_see_profile")),i.R7$(2),i.Y8G("alt",null==(l=i.bMT(4,10,L.user$))?null:l.firstName)("pictureUrl",i.bMT(5,12,L.userAvatarUrl$))("width","124px")("height","124px"),i.R7$(3),i.Y8G("ngIf",L.showDefaultAvatar)}}function hm(p,u){if(1&p){const l=i.RV6();i.qex(0),i.j41(1,"a",20,0),i.nI1(3,"async"),i.nI1(4,"async"),i.nI1(5,"async"),i.nI1(6,"async"),i.bIt("click",function(){i.eBV(l);const L=i.XpG(2);return i.Njj(L.openAuthDialog("auth-intro"))}),i.nrm(7,"popsy-icon-single-user",6),i.k0s(),i.bVm()}if(2&p){const l=i.XpG(2);i.R7$(),i.AVh("unread",!0),i.Y8G("routerLink",i.bMT(3,4,l.isAuthView$)?l.signInUrlFragment:null)("queryParams",i.bMT(4,6,l.isAuthView$)?i.bMT(5,8,l.signUpQueryParams$):i.bMT(6,10,l.queryParamsToKeep$))}}function fm(p,u){if(1&p&&(i.j41(0,"div",21),i.nrm(1,"app-search-box",22),i.k0s()),2&p){const l=i.XpG().$implicit;i.R7$(),i.BMQ("aria-label",l("hint_search"))}}function P(p,u){if(1&p&&(i.j41(0,"div",23),i.nrm(1,"div",24),i.k0s()),2&p){const l=i.XpG().$implicit,g=i.XpG();i.BMQ("aria-busy",g.showActivity)("aria-valuetext",l(g.activityTypeAriaLabel))}}function $(p,u){if(1&p&&(i.j41(0,"header",2)(1,"div",3),i.DNE(2,pu,4,1,"ng-container",4),i.nI1(3,"async"),i.qex(4),i.j41(5,"a",5),i.nI1(6,"async"),i.nI1(7,"async"),i.nrm(8,"popsy-icon-popsy-duo",6),i.k0s(),i.bVm(),i.nrm(9,"span",7),i.DNE(10,gu,3,1,"ng-container",4),i.nI1(11,"async"),i.nI1(12,"async"),i.DNE(13,$l,6,8,"ng-container",4),i.nI1(14,"async"),i.nI1(15,"async"),i.nrm(16,"span",8),i.DNE(17,dm,7,14,"ng-container",4),i.nI1(18,"async"),i.DNE(19,hm,8,12,"ng-container",4),i.nI1(20,"async"),i.k0s(),i.DNE(21,fm,2,1,"div",9),i.nI1(22,"async"),i.nI1(23,"async"),i.DNE(24,P,2,2,"div",10),i.k0s()),2&p){let l,g,L;const H=u.$implicit,fe=i.XpG();i.R7$(2),i.Y8G("ngIf",!(null!=(l=i.bMT(3,10,fe.biggerThan$))&&l.mobileL)),i.R7$(3),i.Y8G("routerLink",i.bMT(6,12,fe.homeUrlFragment$))("queryParams",i.bMT(7,14,fe.queryParamsToKeep$)),i.BMQ("aria-label",H("aria_action_home")),i.R7$(5),i.Y8G("ngIf",!i.bMT(11,16,fe.isNoSearchView$)&&(null==(g=i.bMT(12,18,fe.biggerThan$))?null:g.mobileL)),i.R7$(3),i.Y8G("ngIf",(i.bMT(14,20,fe.cartItemsCount$)||0)>0||i.bMT(15,22,fe.alwaysShowCart$)),i.R7$(4),i.Y8G("ngIf",i.bMT(18,24,fe.user$)),i.R7$(2),i.Y8G("ngIf",!i.bMT(20,26,fe.user$)),i.R7$(2),i.Y8G("ngIf",!(i.bMT(22,28,fe.isNoSearchView$)||null!=(L=i.bMT(23,30,fe.biggerThan$))&&L.mobileL)),i.R7$(3),i.Y8G("ngIf",fe.showActivity)}}const de=["SIGN_IN","SIGN_UP","RESET_PASSWORD","RESET_PASSWORD_CHANGE"],Te=["INFORMATION"];let Ze=(()=>{class p{constructor(l,g,L,H,fe,me,Ke,ut,jt,Ut,Qn){this.akitaOverlaysService=l,this.authOverlayDynamicService=g,this.akitaAuthQuery=L,this.akitaUsersService=H,this.akitaScreenQuery=fe,this.akitaRouterQuery=me,this.akitaRouterService=Ke,this.googleAnalyticsService=ut,this.cartOverlayDynamicService=jt,this.burguerMenuOverlayDynamicService=Ut,this.akitaCartQuery=Qn,this.user=null,this.routeData={},this.sanitizer=(0,i.WQX)(sn.up),this.changeDetector=(0,i.WQX)(i.gRc),this.destroySubject=new Ws.B,this.activityType="IDLE",this.showActivity=!1,this.showDefaultAvatar=!1,this.showAuthOverlay=!1,this.showingCartOverlay=!1,this.showingBurguerMenuOverlay=!1,this.showCreateListingOverlay=!1,this.showNotificationsDrawerOverlay=!1,this.unreadCount=0,this.isBrowser=this.akitaRouterQuery.isBrowser,this.ssrXsPhoneSize=!this.isBrowser&&Zi.u.windowInnerWidth()<=320,this.avatarId=1+Math.ceil(5*Math.random()),this.cartItems$=this.akitaCartQuery.selectCartItems(),this.alwaysShowCart$=(0,to.of)(!0),this.cartItemsCount$=this.akitaRouterQuery.selectCountry().pipe((0,il.n)(()=>this.akitaCartQuery.selectCartItems().pipe((0,Fi.T)(On=>{let xn=0;if(On?.length)for(const wn of On)xn+=wn.quantity||0;return xn})))),this.user$=this.akitaAuthQuery.selectUser(),this.userAvatar$=this.user$.pipe((0,Fi.T)(this.userAvatar.bind(this))),this.userAvatarUrl$=this.user$.pipe((0,Fi.T)(this.userAvatarUrl.bind(this))),this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.homeUrlFragment$=this.akitaRouterQuery.selectHomeUrlFragment(),this.phoneSearchFragment$=this.akitaRouterQuery.selectPhoneSearchFragment(),this.queryParamsToKeep$=this.akitaRouterQuery.selectQueryParamsToKeep(),this.inboxView$=this.akitaRouterQuery.selectRouteData().pipe((0,Fi.T)(On=>"CHAT"===On.step)),this.isAuthView$=this.akitaRouterQuery.selectRouteData().pipe((0,Fi.T)(On=>-1!==de.indexOf(On.step))),this.isNoSearchView$=this.akitaRouterQuery.selectRouteData().pipe((0,Fi.T)(On=>-1!==Te.indexOf(On.step))),this.signUpQueryParams$=this.queryParamsToKeep$.pipe((0,Fi.T)(On=>{const xn=this.akitaRouterQuery.params.email||this.akitaRouterQuery.queryParams.email||"";xn&&(On={...On,email:xn});const wn=this.akitaRouterQuery.params.username||this.akitaRouterQuery.queryParams.username||"";wn&&(On={...On,username:wn});const Gr=decodeURI(this.akitaRouterQuery.params.redirect||this.akitaRouterQuery.queryParams.redirect||"");return Gr&&(On={...On,redirect:Gr}),On}),(0,Pa.F)((On,xn)=>JSON.stringify(On)===JSON.stringify(xn)))}ngOnInit(){this.akitaOverlaysService.loadDialogList(["auth-overlay-module"]),this.userSubscription=this.user$.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:l=>{this.user=ei.Fv.fromJson(l),this.changeDetector.markForCheck(),l&&((0,Dr.PN)(g=>{g.setUser({id:l.id,username:l.firstName,email:l.email})}),l.id&&this.akitaUsersService.getUserAsync(l.id))},error:()=>{}})}openAuthDialog(l){return-1===de.indexOf(this.akitaRouterQuery.routeData.step)&&(this.authOverlaySubscription&&this.authOverlaySubscription.unsubscribe(),this.authOverlaySubscription=this.authOverlayDynamicService.observe.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:g=>{this.showAuthOverlay=!!g,this.changeDetector.markForCheck()}}),(0,Gs.wD)(this.googleAnalyticsService.logEventWrapper,"toolbar"),this.authOverlayDynamicService.open({data:{mode:l||"auth-intro"},isBrowser:this.isBrowser})),!1}getUnreadCount(l){return l>0&&l<=9?`${l}`:l>9?"9+":0}userAvatar(l){let g=new ri.Y;this.showDefaultAvatar=!1;let L=`url('assets/images/avatar.${this.avatarId}.png')`;return l?.picture&&(L=`url('assets/images/avatar.${l?.avatarId}.png')`,g=ri.Y.fromJson(l?.picture)||new ri.Y,-1!==g.url.indexOf("/avatar/00000000000000000000000000000000"))?this.sanitizer.bypassSecurityTrustStyle(L):this.sanitizer.bypassSecurityTrustStyle(g.url?`url(${g.url})`:L)}userAvatarUrl(l){let g=new ri.Y;this.showDefaultAvatar=!1;let L=`assets/images/avatar.${this.avatarId}.png`;return l?.picture&&(L=`assets/images/avatar.${l?.avatarId}.png`,g=ri.Y.fromJson(l?.picture)||new ri.Y,-1!==g.url.indexOf("/avatar/00000000000000000000000000000000"))?L:g.url?`${g.url}`:L}openCart(){this.openCartOverlaySubscription&&this.openCartOverlaySubscription.unsubscribe(),this.openCartOverlaySubscription=this.cartOverlayDynamicService.observe.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:l=>{this.showingCartOverlay=!!l,this.changeDetector.markForCheck()}}),this.cartOverlayDynamicService.open({data:{},isBrowser:this.isBrowser})}goToCart(){const l=this.akitaRouterQuery.homeUrlFragment;l.push("cart"),this.akitaRouterService.navigate(l)}openBurguerMenu(){this.openBurguerMenuOverlaySubscription&&this.openBurguerMenuOverlaySubscription.unsubscribe(),this.openBurguerMenuOverlaySubscription=this.burguerMenuOverlayDynamicService.observe.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:l=>{this.showingBurguerMenuOverlay=!!l,this.changeDetector.markForCheck()}}),this.burguerMenuOverlayDynamicService.open({data:{},isBrowser:this.isBrowser})}get userUrlFragment(){return this.akitaRouterQuery.userUrlFragment}get signInUrlFragment(){return this.akitaRouterQuery.getAuthUrlFragment("sign-in")}get signUpUrlFragment(){return this.akitaRouterQuery.getAuthUrlFragment("sign-up")}get inboxUrlFragment(){return this.akitaRouterQuery.userInboxUrlFragment}get activityTypeAriaLabel(){return"FETCHING_PRODUCTS"===this.activityType?"aria_activity_fetching_listings":"aria_activity_please_wait"}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.userSubscription&&this.userSubscription.unsubscribe(),this.authOverlaySubscription&&this.authOverlaySubscription.unsubscribe(),this.openBurguerMenuOverlaySubscription&&this.openBurguerMenuOverlaySubscription.unsubscribe(),this.openCartOverlaySubscription&&this.openCartOverlaySubscription.unsubscribe()}static{this.\u0275fac=function(g){return new(g||p)(i.rXU(Qo.z),i.rXU(jl.F),i.rXU(hs.P),i.rXU(ll.e),i.rXU(fa.L),i.rXU(os.O),i.rXU(Ro.t),i.rXU(mo.p),i.rXU(pd.d),i.rXU(gd.I),i.rXU(La.D))}}static{this.\u0275cmp=i.VBU({type:p,selectors:[["app-toolbar"]],standalone:!0,features:[i.aNF],decls:1,vars:0,consts:[["cartBtn",""],["class","toolbar-wrapper",4,"transloco"],[1,"toolbar-wrapper"],[1,"row","first"],[4,"ngIf"],["href","",1,"popsy-icon","name","flex",3,"routerLink","queryParams"],[1,"icon"],[1,"dynamic-space"],["aria-hidden","true",1,"fixed-space-16"],["class","row second",4,"ngIf"],["class","loading","role","progressbar",4,"ngIf"],[1,"popsy-icon","flex",3,"click"],[1,"burguer-icon","icon"],["searchType","search",1,"search-box"],[1,"popsy-button-icon","notifications-button",3,"click"],[1,"icon","gray-01"],["href","",1,"user-avatar",3,"routerLink","queryParams"],[1,"picture",3,"alt","pictureUrl","width","height"],["class","icon gray-03 defaultAvatar",4,"ngIf"],[1,"icon","gray-03","defaultAvatar"],[1,"popsy-button-icon","sign-in","small",3,"click","routerLink","queryParams"],[1,"row","second"],["searchType","search",1,"full-width","search-box"],["role","progressbar",1,"loading"],[1,"lead"]],template:function(g,L){1&g&&i.DNE(0,$,25,32,"header",1)},dependencies:[di.Q8,di.bA,Oi.bT,Dc.k,ui.Wk,Ei.u,$i,Rs,Bi.W,li,Oi.Jj],styles:["@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.toolbar-wrapper[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;padding:0 16px;max-width:1200px;margin:0 auto;z-index:1000;transform:translateZ(100px);display:block;background-color:#fff}.toolbar-wrapper.ltr[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{transform:rotateY(-180deg);backface-visibility:visible}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;max-width:1200px;margin:0 auto;padding:0;max-width:unset;display:flex;align-items:center;width:100%;height:64px;min-height:64px;max-height:64px;justify-content:space-between}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .popsy-icon[_ngcontent-%COMP%]{max-width:114px}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .popsy-icon[_ngcontent-%COMP%]   .burguer-icon[_ngcontent-%COMP%]{height:24px;max-height:24px;min-height:24px;max-width:30px;cursor:pointer}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .search-box[_ngcontent-%COMP%]{width:60%;align-self:flex-start;margin-top:11px}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .search-box.full-width[_ngcontent-%COMP%]{width:100%!important}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .notifications-button.unread[_ngcontent-%COMP%]:before{content:attr(data-before);position:absolute;display:flex;align-items:center;justify-content:center;top:-8px;right:-8px;width:20px;height:20px;font-size:9px;font-weight:700;border-radius:50%;color:#fff;background-color:#d41556;transition:.2s linear}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]{font-size:44px;height:44px;min-height:44px;max-height:44px;width:44px;min-width:44px;max-width:44px;line-height:44px;text-decoration:none}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], .toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   app-picture[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;overflow:hidden;display:block;width:44px;height:44px;border-radius:8px;cursor:pointer;background-size:cover;background-repeat:no-repeat;background-position:center center;background-color:#f3f4f7;color:#d43864}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   a.sign-in[_ngcontent-%COMP%], .toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   div.sign-in[_ngcontent-%COMP%], .toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   app-picture.sign-in[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#9c0f3f;color:#fff}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover, .toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]   .user-avatar[_ngcontent-%COMP%]   app-picture[_ngcontent-%COMP%]:hover{box-shadow:0 2px 8px #06348f1a}.toolbar-wrapper[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] > .dynamic-space[_ngcontent-%COMP%]{flex:1}.toolbar-wrapper[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{overflow:hidden;position:absolute;bottom:-3px;width:100%;height:3px}.toolbar-wrapper[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]   .lead[_ngcontent-%COMP%]{position:absolute;left:0;top:0;width:40%;height:100%;background:linear-gradient(to right,#03a9f400,#03a9f4 10% 90%,#03a9f400);animation-name:indeterminate;animation-duration:2s;animation-timing-function:cubic-bezier(.25,.62,.88,.42);animation-delay:0s;animation-iteration-count:infinite;animation-direction:normal;animation-fill-mode:none;animation-play-state:running}.popsy-button-icon[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;font-size:14px;line-height:21px;min-height:15px;font-display:swap;display:flex;align-items:center;justify-content:center;height:40px;min-width:120px;border-radius:6px;text-decoration:none;outline:none;background-color:transparent!important;border:unset!important;line-height:40px!important;padding:8px 11px;width:39px;min-width:39px;max-width:39px;height:39px;min-height:39px;max-height:39px;cursor:pointer}.popsy-button-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:19px;height:19px;min-height:19px;max-height:19px;width:19px;min-width:19px;max-width:19px;line-height:19px}"],changeDetection:0})}}return p})();var Nt=s(85689),Tt=s(39879),vn=s(1579),rr=s(14992);let Cr=(()=>{class p{constructor(l,g,L,H,fe,me,Ke,ut,jt){this.platformId=l,this.appId=g,this.zone=L,this.meta=H,this.directionService=fe,this.translate=me,this.facebookService=Ke,this.analytics=ut,this.akitaRouterQuery=jt,this.isBrowser=(0,Oi.UE)(this.platformId)}initialize(){const l=new Cs.yU;return this.zone.runOutsideAngular(()=>{(0,Dr.PN)(g=>{g.setTag("ssr",this.isBrowser?"No":"Yes"),g.setTag("facebookSDK","active"),g.setTag("Cookies","Enabled"),g.setTag("Google Client ID",this.akitaRouterQuery.queryParams.gclid),g.setTag("platformId",`${this.platformId}`),g.setTag("appId",this.appId),g.setTag("serviceWorker",E.c.serviceWorker?"Yes":"No"),g.setTag("window:width",`${Zi.u.windowInnerWidth()}`),g.setTag("window:height",`${Zi.u.windowInnerHeight()}`),g.setTag("layout:direction",this.directionService.value),g.setTag("SmartLook:Loaded","No"),g.setTag("HotJar:Loaded","No")}),this.isBrowser&&(window.POPSY_POLYFILLS_LOADED?(0,Dr.PN)(g=>{g.setTag("Polyfills.io","LOADED!")}):(0,Dr.PN)(g=>{g.setTag("Polyfills.io","NOT LOADED!")})),this.isBrowser&&(0,Gs.kD)(this.analytics.logEventWrapper,`${E.c.app.version||"?"}`,`${E.c.app.commit||"?"}`),this.translate.setDefaultLang(E.c.languageCode),this.meta.setTags([{name:"fb:app_id",content:`${E.c.fbAppId||""}`},{name:"ver",content:`${E.c.app.version}`},{name:"commit",content:`${E.c.app.commit}`},{name:"og:type",content:"website"},{name:"og:image",content:"https://www.popsy.app/assets/pwa/icon-512x512.png"},{name:"og:locale",content:`${(0,Po.Ul)("en-US",void 0,this.akitaRouterQuery.isBrowser,this.refreshSentryLocaleMetadata.bind(this))}`},{name:"og:locale:alternate",content:"en_US,pt_BR,es_ES,fr_FR,ar_SA"}]),this.loadFacebookSDK(),this.detectCookieSupport()}),l}detectCookieSupport(){this.zone.runOutsideAngular(()=>{this.isBrowser&&!window?.navigator?.cookieEnabled?(0,Dr.PN)(l=>{l.setTag("Cookies","Disabled"),l.setTag("Google Client ID",this.akitaRouterQuery.queryParams.gclid)}):(0,Dr.PN)(l=>{l.setTag("Cookies","Enabled"),l.setTag("Google Client ID",this.akitaRouterQuery.queryParams.gclid)})})}loadFacebookSDK(){this.zone.runOutsideAngular(()=>{this.isBrowser?window.FB?this.facebookService.init({appId:E.c.fbAppId,xfbml:!0,version:E.c.fbAppVersion}).catch(g=>{(0,Dr.PN)(L=>{L.setTag("facebookSDK","error")}),y.gU.reportException(g,!1)}):(0,Dr.PN)(l=>{l.setTag("facebookSDK","blocked?")}):(0,Dr.PN)(l=>{l.setTag("facebookSDK","Disabled (SSR)")})})}refreshSentryLocaleMetadata(l){this.zone.runOutsideAngular(()=>{(0,Dr.PN)(g=>{g.setExtra("i18n:requested",l.requestedCode),g.setExtra("i18n:subDomain",l.hasSubDomain||"-"),g.setExtra("i18n:langParam",l.hasLangParam||"-"),g.setExtra("i18n:browser",l.hasBrowser),g.setExtra("i18n:dateLocale",l.hasDateLocale),g.setExtra("i18n:final",l.chosenLanguage)})})}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.Agw),i.KVO(i.sZ2),i.KVO(i.SKi),i.KVO(Tt.R),i.KVO(vn.dS),i.KVO(di.JO),i.KVO(rr.o),i.KVO(mo.p),i.KVO(os.O))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var fi=s(12462),xa=s(37717),bn=s(19735),fs=s(8908),Ks=s(13916),No=s(11299);const Lo="Detect Language",xh=`${Lo} - Start`,md=`${Lo} - End`,ka="Apply Detected Language",mu=`${ka} - Start`,Tc=`${ka} - End`,kh={es:"ES",en:"US",fr:"FR",pt:"BR",ar:"SA"};let Yo=(()=>{class p{constructor(l,g,L,H,fe,me,Ke,ut){this.injector=l,this.platform=g,this.zone=L,this.store=H,this.translateService=fe,this.metaService=me,this.rendererFactory=Ke,this.platformId=ut,this.isBrowser=(0,Oi.UE)(this.platformId),this.renderer=this.rendererFactory.createRenderer(null,null);try{this.document=this.injector.get(Oi.qQ,null)}catch{this.document=null}let jt={lossy:!1,lossless:!1,alpha:!1,animation:!1};this.platform.BLINK&&(jt={lossy:!0,lossless:!0,alpha:!0,animation:!0}),this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("detectWebPFeatures() - done"),this.store.update({webP:jt})})})}changeLanguage(l){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("changeLanguage() - done"),this.store.update({languageCode:l})})})}updateCurrency(l){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("updateCurrency()"),this.store.updateCurrency(l)})})}refreshSentryLocaleMetadata(l){(0,Dr.PN)(g=>{g.setExtra("i18n:requested",l.requestedCode),g.setExtra("i18n:subDomain",l.hasSubDomain||"-"),g.setExtra("i18n:langParam",l.hasLangParam||"-"),g.setExtra("i18n:browser",l.hasBrowser),g.setExtra("i18n:dateLocale",l.hasDateLocale),g.setExtra("i18n:final",l.chosenLanguage)})}detectLanguage(l,g){f.w.createMark(xh);let L=(0,Po.Ul)(l,g,this.isBrowser,this.refreshSentryLocaleMetadata.bind(this)),H=L;if(-1===L.indexOf("-"))kh[L.toLowerCase()]&&(L=`${L}-${kh[L].toUpperCase()}`);else{const fe=L.toLowerCase().split("-");H=E.c.languages[fe[1]||""]||fe[0]||"en"}f.w.createMark(mu),this.languageChangeObserver&&this.languageChangeObserver.unsubscribe(),this.languageChangeObserver=this.translateService.langChanges$.subscribe({next:fe=>{fe===H&&(this.refreshLanguageMetadata(fe,L),f.w.createMark(Tc),f.w.measure(ka,mu,Tc))},error:()=>{}}),this.translateService.setActiveLang(H),this.changeLanguage(L),f.w.createMark(md),f.w.measure(Lo,xh,md)}refreshLanguageMetadata(l,g){this.zone.runOutsideAngular(()=>{const L=(0,Po.ru)(l);if(this.metaService.setTag({name:"og:locale",content:`${g||"en-US"}`}),this.document){this.document.dir=L?"rtl":"ltr";const H=this.document.querySelector("html");H&&(this.renderer.setAttribute(H,"lang",g||"en-US"),this.renderer.setAttribute(H,"dir",L?"rtl":"ltr")),this.document.body&&("ar"===l?this.renderer.addClass(this.document.body,"arabic"):this.renderer.removeClass(this.document.body,"arabic"))}})}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.zZn),i.KVO(Ks.OD),i.KVO(i.SKi),i.KVO(No.u),i.KVO(di.JO),i.KVO(Tt.R),i.KVO(i._9s),i.KVO(i.Agw))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var Wl=s(86495),Xo=s(31647),Tn=s(65957);let pm=(()=>{class p{constructor(l,g,L,H,fe){this.platformId=l,this.zone=g,this.store=L,this.breakpointObserver=H,this.googleAnalyticsService=fe,this.isBrowser=(0,Oi.UE)(this.platformId),this.subscriptions=new Cs.yU,this.zone.runOutsideAngular(()=>{this.monitorScreen()})}monitorScreen(){this.subscriptions&&this.subscriptions.unsubscribe(),this.subscriptions=new Cs.yU,this.isBrowser?(this.setBrowser(),this.zone.runOutsideAngular(()=>{this.subscriptions.add(this.breakpointObserver.observe(["(max-height: 550px)"]).subscribe({next:l=>{this.setScreenShort(l.matches)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> heightTooShort")}})),this.subscriptions.add(this.breakpointObserver.observe(["(max-width: 320.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.XXS)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> xxs")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 321px) and (max-width: 374.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.MobileS)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> mobileS")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 375px) and (max-width: 549.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.XS)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> xs")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 550px) and (max-width: 600.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.MobileL)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> mobileL")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 601px) and (max-width: 799.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.MobileXL)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> mobileXL")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 800px) and (max-width: 959.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.SM)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> sm")}})),this.subscriptions.add(this.breakpointObserver.observe([Xo.Rp.Medium]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.MD)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> md")}})),this.subscriptions.add(this.breakpointObserver.observe([Xo.Rp.Large]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.LG)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> lg")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 1920px) and (max-width: 3839.99px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.XL)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> xl")}})),this.subscriptions.add(this.breakpointObserver.observe(["(min-width: 3840px)"]).subscribe({next:l=>{l.matches&&this.setScreenSize(Tn.NU.XXL)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> xxl")}})),this.subscriptions.add(this.breakpointObserver.observe([Xo.Rp.HandsetPortrait]).subscribe({next:l=>{l.matches&&this.setScreenOrientation(Tn.yz.PORTRAIT)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> portrait")}})),this.subscriptions.add(this.breakpointObserver.observe([Xo.Rp.HandsetLandscape]).subscribe({next:l=>{l.matches&&this.setScreenOrientation(Tn.yz.LANDSCAPE)},error:l=>{this.logErrorMonitoringScreen(l,"breakpointObserver -> landscape")}}))})):(this.setScreenOrientation(Tn.yz.PORTRAIT),Zi.u.windowInnerWidth()<=320?this.setScreenSize(Tn.NU.XS):this.setScreenSize(Tn.NU.LG))}refreshScreenInfo(){const l=this.breakpointObserver.isMatched(["(max-height: 550px)"]);this.setScreenShort(l),this.breakpointObserver.isMatched(["(max-width: 320.99px)"])&&this.setScreenSize(Tn.NU.XXS),this.breakpointObserver.isMatched(["(min-width: 321px) and (max-width: 374.99px)"])&&this.setScreenSize(Tn.NU.MobileS),this.breakpointObserver.isMatched(["(min-width: 375px) and (max-width: 549.99px)"])&&this.setScreenSize(Tn.NU.XS),this.breakpointObserver.isMatched(["(min-width: 550px) and (max-width: 600.99px)"])&&this.setScreenSize(Tn.NU.MobileL),this.breakpointObserver.isMatched(["(min-width: 601px) and (max-width: 799.99px)"])&&this.setScreenSize(Tn.NU.MobileXL),this.breakpointObserver.isMatched(["(min-width: 800px) and (max-width: 959.99px)"])&&this.setScreenSize(Tn.NU.SM),this.breakpointObserver.isMatched([Xo.Rp.Medium])&&this.setScreenSize(Tn.NU.MD),this.breakpointObserver.isMatched([Xo.Rp.Large])&&this.setScreenSize(Tn.NU.LG),this.breakpointObserver.isMatched(["(min-width: 1920px) and (max-width: 3839.99px)"])&&this.setScreenSize(Tn.NU.XL),this.breakpointObserver.isMatched(["(min-width: 3840px)"])&&this.setScreenSize(Tn.NU.XXL)}stopMonitoringScreen(){this.subscriptions&&this.subscriptions.unsubscribe()}logErrorMonitoringScreen(l,g){y.gU.reportException(l,!1,()=>L=>{this.googleAnalyticsService.appException(L,"application",`${l?.status||"-"}`,!1,"ROOT",`${g||"logErrorMonitoringScreen"}`)})}setScreenShort(l){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("setScreenShort()"),this.store.setScreenShort(l)})}),(0,Dr.PN)(g=>{g.setExtra("screen:is-short",l?"Yes":"No")})}setBrowser(){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("setBrowser()"),this.store.setBrowser()})}),(0,Dr.PN)(l=>{l.setExtra("browser",`${this.store.getValue().browser}`)})}setScreenSize(l){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("setScreenSize()"),this.store.update({size:l,lessThan:{xxs:!1,mobileS:l===Tn.NU.XXS,xs:l===Tn.NU.XXS||l===Tn.NU.MobileS,mobileL:l===Tn.NU.XXS||l===Tn.NU.MobileS||l===Tn.NU.XS,mobileXL:l===Tn.NU.XXS||l===Tn.NU.MobileS||l===Tn.NU.XS||l===Tn.NU.MobileL,sm:l===Tn.NU.XXS||l===Tn.NU.MobileS||l===Tn.NU.XS||l===Tn.NU.MobileL||l===Tn.NU.MobileXL,md:l===Tn.NU.XXS||l===Tn.NU.MobileS||l===Tn.NU.XS||l===Tn.NU.MobileL||l===Tn.NU.MobileXL||l===Tn.NU.SM,lg:l!==Tn.NU.XXL&&l!==Tn.NU.XL&&l!==Tn.NU.LG,xl:l!==Tn.NU.XXL&&l!==Tn.NU.XL,xxl:l!==Tn.NU.XXL},biggerThan:{xxs:l!==Tn.NU.XXS,mobileS:l!==Tn.NU.XXS&&l!==Tn.NU.MobileS,xs:l!==Tn.NU.XXS&&l!==Tn.NU.MobileS&&l!==Tn.NU.XS,mobileL:l!==Tn.NU.XXS&&l!==Tn.NU.MobileS&&l!==Tn.NU.XS&&l!==Tn.NU.MobileL,mobileXL:l!==Tn.NU.XXS&&l!==Tn.NU.MobileS&&l!==Tn.NU.XS&&l!==Tn.NU.MobileL&&l!==Tn.NU.MobileXL,sm:l!==Tn.NU.XXS&&l!==Tn.NU.MobileS&&l!==Tn.NU.XS&&l!==Tn.NU.MobileL&&l!==Tn.NU.MobileXL&&l!==Tn.NU.SM,md:l===Tn.NU.XXL||l===Tn.NU.XL||l===Tn.NU.LG,lg:l===Tn.NU.XXL||l===Tn.NU.XL,xl:l===Tn.NU.XXL,xxl:!1}})})}),(0,Dr.PN)(g=>{g.setExtra("screen:size",`${l}`)})}setScreenOrientation(l){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("setScreenOrientation()"),this.store.update({orientation:l})})}),(0,Dr.PN)(g=>{g.setExtra("screen:orientation",`${l}`)})}setLayoutDirection(l){this.zone.run(()=>{(0,A.hO)(()=>{(0,A.d5)("setLayoutDirection()"),this.store.update({direction:l})})}),(0,Dr.PN)(g=>{g.setExtra("layout:direction",`${l}`)})}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.Agw),i.KVO(i.SKi),i.KVO(Tn.yW),i.KVO(Xo.QP),i.KVO(mo.p))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var yr=s(73536),Wi=s(29919),Jo=s(1819),Is=s(86394),yd=s(45503),ro=s(15985),Fa=s(1948);function Hs(p,u){1&p&&i.nrm(0,"app-announcement-bar")}function yp(p,u){if(1&p&&(i.qex(0),i.DNE(1,Hs,1,0,"app-announcement-bar",2),i.nI1(2,"async"),i.nrm(3,"app-toolbar",7),i.bVm()),2&p){let l;const g=i.XpG(2);i.R7$(),i.Y8G("ngIf",null==(l=i.bMT(2,1,g.biggerThan$))?null:l.mobileL)}}function cl(p,u){1&p&&(i.j41(0,"div",8),i.nrm(1,"app-please-wait"),i.k0s())}function vp(p,u){if(1&p&&(i.qex(0),i.j41(1,"div",1),i.nI1(2,"async"),i.nI1(3,"async"),i.nI1(4,"async"),i.nI1(5,"async"),i.nI1(6,"async"),i.nI1(7,"async"),i.DNE(8,yp,4,3,"ng-container",2),i.nI1(9,"async"),i.nI1(10,"async"),i.nI1(11,"async"),i.nI1(12,"async"),i.nI1(13,"async"),i.nrm(14,"router-outlet",3)(15,"meta",4),i.nI1(16,"async"),i.nrm(17,"app-json-ld",5)(18,"app-json-ld",5)(19,"app-json-ld",5),i.DNE(20,cl,2,0,"div",6),i.k0s(),i.bVm()),2&p){const l=i.XpG();i.R7$(),i.AVh("with-toolbar",!i.bMT(2,9,l.redirectUri$)&&!i.bMT(3,11,l.isInternalView$)&&!i.bMT(4,13,l.inFullScreenMode$)&&"DELIVERY"!==i.bMT(5,15,l.viewName$)&&"SESSION"!==i.bMT(6,17,l.viewName$)),i.BMQ("psid",i.bMT(7,19,l.sessionId$)),i.R7$(7),i.Y8G("ngIf",!i.bMT(9,21,l.redirectUri$)&&!i.bMT(10,23,l.isInternalView$)&&!i.bMT(11,25,l.inFullScreenMode$)&&"DELIVERY"!==i.bMT(12,27,l.viewName$)&&"SESSION"!==i.bMT(13,29,l.viewName$)),i.R7$(7),i.Y8G("content",i.bMT(16,31,l.currentConditionSet$)),i.R7$(2),i.Y8G("json",l.schema),i.R7$(),i.Y8G("json",l.companySchema),i.R7$(),i.Y8G("json",l.appSchema),i.R7$(),i.Y8G("ngIf",l.pageLoading)}}const yu="Main View Init",vu=`${yu} - Start`,vd=`${yu} - End`,Ua="Route Load Init",ga=`${Ua} - Start`,ul=`${Ua} - End`,_u={en:"us",ar:"sa",fr:"fr"};let Oc=(()=>{class p{constructor(l,g,L,H,fe,me,Ke,ut,jt,Ut,Qn,On,xn,wn,Gr,pi,gi,gs,Ki,Sa,Uo,Hi,mi,Ao,ba,Dl,Ca,Xu,ru,_f,$n){this.document=l,this.initTasksService=g,this.zone=L,this.router=H,this.renderer=fe,this.activatedRoute=me,this.changeDetector=Ke,this.googleAnalytics=ut,this.meta=jt,this.msClarityService=Ut,this.translate=Qn,this.akitaLocationQuery=On,this.akitaLocationService=xn,this.akitaAuthQuery=wn,this.akitaCartService=Gr,this.akitaConfigurationService=pi,this.akitaConfigurationQuery=gi,this.akitaScreenQuery=gs,this.akitaScreenService=Ki,this.akitaRemoteConfigService=Sa,this.akitaRemoteConfigQuery=Uo,this.akitaUsersService=Hi,this.akitaAuthService=mi,this.akitaOverlaysService=Ao,this.akitaRouterService=ba,this.akitaRouterQuery=Dl,this.akitaNewsletterService=Ca,this.akitaProductsService=Xu,this.tidioService=ru,this.omnisendService=_f,this.akitaOmnisendService=$n,this.schema={"@context":"https://schema.org","@type":"WebSite",name:"Popsy",description:"free mobile app to Buy & Sell second hand products. Free, Easy & Fast!",url:"https://www.popsy.app",potentialAction:{"@type":"SearchAction",target:"https://www.popsy.app/products?text={search_term_string}","query-input":"required name=search_term_string"}},this.companySchema={"@context":"https://schema.org","@type":"Organization",name:"Popsy",image:["https://www.popsy.app/assets/google-places.png"],logo:"https://www.popsy.app/assets/pwa/icon-512x512.png",url:"https://www.popsy.app/",sameAs:["https://itunes.apple.com/app/apple-store/id1387389249&ct=web&mt=8","https://play.google.com/store/apps/details?id=com.mypopsy.android","https://wa.me/5551989942929","https://wa.me/19293101821","https://wa.me/971562033924","https://www.facebook.com/popsyapp","https://twitter.com/popsyapp","https://www.instagram.com/popsy.app/","https://www.linkedin.com/company/popsy/"],address:{"@type":"PostalAddress",streetAddress:"1374 Avenida Paulista, 11 Andar",addressLocality:"Sao Paulo",postalCode:"01310-100",email:"support@popsy.app",telephone:"+5551989942929",addressCountry:{"@type":"Country",name:"BR"}}},this.appSchema={"@context":"https://schema.org","@type":"SoftwareApplication",name:"Popsy",operatingSystem:"Android,iOS",applicationCategory:"ShoppingApplication",offers:{"@type":"Offer",price:"0.00",priceCurrency:"USD"},aggregateRating:{"@type":"AggregateRating",ratingValue:"3.9",reviewCount:"9985"}},f.w.createMark(vu),this.destroySubject=new Ws.B,this.subscriptions=new Cs.yU,this.subscriptions.add(this.initTasksService.initialize()),this.userAskedAboutDomain=!1,this.pageLoading=!1,this.rtlMode$=this.akitaRouterQuery.selectIsRtlLayout(),this.isInternalView$=this.akitaRouterQuery.selectIsInternalView(),this.viewName$=this.akitaRouterQuery.selectViewName(),this.sessionId$=this.akitaAuthQuery.selectSessionId(),this.currentConditionSet$=this.akitaRemoteConfigQuery.selectCurrentConditionSet(),this.showNotifications$=(0,ds.z)([this.akitaRouterQuery.selectViewName(),this.akitaRouterQuery.selectViewStep()]).pipe((0,Fi.T)(([In,Pn])=>"DELIVERY"!==In&&"SIGN_UP"!==Pn&&"SIGN_IN"!==Pn&&"CHAT"!==Pn)),this.akitaAuthService.checkGoogleAuthInitialization(),this.redirectUri$=this.akitaRouterQuery.selectQueryParams().pipe((0,Fi.T)(In=>decodeURI(In.redirect||""))),this.inFullScreenMode$=this.akitaRouterQuery.selectInFullScreenMode(),this.queryParamsToKeep$=this.akitaRouterQuery.selectQueryParamsToKeep(),this.biggerThan$=this.akitaScreenQuery.selectBiggerThan(),this.isLoggedIn$=this.akitaAuthQuery.selectIsLoggedIn(),this.userInboxUrlFragment$=this.akitaRouterQuery.selectUserInboxUrlFragment(),this.userNotificationsUrlFragment$=this.akitaRouterQuery.selectUserNotificationsUrlFragment(),this.isSearchView$=this.akitaRouterQuery.selectViewName().pipe((0,Fi.T)(In=>"ROOT"===In||"CATEGORY"===In)),this.zone.runOutsideAngular(()=>{this.subscriptions.add(this.akitaRemoteConfigService.getRemoteConfigAsync())}),this.akitaConfigurationService.detectLanguage(sl.j.languageCode,this.akitaRouterQuery.requestURL),this.subscriptions.add(this.translate.selectTranslate("app_name_long").pipe((0,Li.Q)(this.destroySubject)).subscribe({next:In=>{if("app_name_long"!==In){this.meta.setTitle("app_name_long",!0),this.meta.setCanonical(),this.meta.setAlternateHreflangsTags(null);const Pn=this.translate.translate("app_title");this.meta.setTags([{name:"og:url",content:`${Zi.u.getLocationHref()||""}`},{name:"og:description",content:`${Pn}`},{name:"description",content:`${Pn}`}]),this.schema.description=`${Pn}`,this.changeDetector.markForCheck()}}})),this.zone.runOutsideAngular(()=>{this.subscriptions.add((0,ds.z)([this.translate.langChanges$,this.akitaRouterQuery.selectCountry()]).pipe((0,Pa.F)((In,Pn)=>JSON.stringify(In)===JSON.stringify(Pn)),(0,il.n)(([In,Pn])=>{if(In){let Er=`${In||"en"}`.toLowerCase();return Pn&&(Er=`${Er}-${(Pn||"US").toUpperCase()}`),this.akitaUsersService.updateUserLanguage(Er)}return(0,to.of)(null)}),(0,Li.Q)(this.destroySubject)).subscribe({next:()=>{},error:()=>{}}))}),this.akitaRouterQuery.isBrowser&&(p=>{const u=Object.freeze((p=>{if(he(p))return{...Lt,cssVarName:p};if("object"!=typeof p)return Lt;const u={force:!0===p.force,bind:!1!==p.bind,updateOnTouch:!0===p.updateOnTouch,onUpdate:Ye(p.onUpdate)?p.onUpdate:F},l=!0===p.redefineVh;return u.method=l?q:_e,u.cssVarName=he(p.cssVarName)?p.cssVarName:l?"vh":Lt.cssVarName,u})(p));let l=null;if(u?.method&&(l=ai(u.method(),u)),!l?.isNeeded&&!u.force||(l&&(_r(`${u?.cssVarName||""}`,l),u?.onUpdate&&u.onUpdate(l)),!u.bind))return l;function g(){try{window.requestAnimationFrame(()=>{if(u?.method){const L=u.method();_r(`${u.cssVarName||""}`,L),u?.onUpdate&&u.onUpdate(ai(L,u))}})}catch{}}l&&l.unbind(),Kr("orientationchange",g),u.updateOnTouch&&Kr("touchmove",g)})({cssVarName:"ios-gap"}),this.subscriptions.add(this.router.events.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:In=>{if(In instanceof ui.Z)f.w.createMark(ga),this.pageLoading=!0,this.changeDetector.markForCheck();else if(In instanceof ui.wF){let Pn=this.activatedRoute.snapshot;for(;Pn.firstChild;)Pn=Pn.firstChild;this.akitaRouterService.onNavigationEnd(Pn.params,Pn.queryParams,Pn.data,Pn.fragment),this.onNavigationEnd();const Er=(Pn.data||{analyticsName:""}).analyticsName||"";this.msClarityService.setTag("app-version",E.c.app.version),this.msClarityService.setTag("app-commit",E.c.app.commit),this.msClarityService.setTag("app-branch",E.c.app.branch),this.msClarityService.setTag("psid",this.akitaAuthQuery.sessionId),this.akitaAuthQuery.user?.id?(this.msClarityService.setTag("anonymous","No"),this.msClarityService.setTag("user-id",this.akitaAuthQuery.user.id)):this.msClarityService.setTag("anonymous","Yes"),this.msClarityService.identifyUser(this.akitaAuthQuery.user?.id,this.akitaAuthQuery.sessionId,Er),this.omnisendService.trackPageView(Er),this.zone.runOutsideAngular(()=>{this.subscriptions.add(this.akitaOmnisendService.identifyUserAsync({id:this.akitaAuthQuery.user?.id,email:this.akitaAuthQuery.user?.email,firstName:this.akitaAuthQuery.user?.firstName,country:this.akitaRouterQuery.country,lang:this.translate.getActiveLang()}))}),this.zone.runOutsideAngular(()=>{let Vr=`${Er||""}`;if("listing"===Vr){const Si=Pn.params.id||Pn.queryParams.id||"";Si&&(Vr=`listing-${Si}`)}else if("search"===Vr){const Si=Pn.queryParams.text||"";Si&&(Vr=`search-${Si}`)}else if("search_category"===Vr){const Si=Pn.params.category||Pn.queryParams.category||"";Si&&(Vr=`search-category-${Si}`)}else if("user"===Vr){const Si=Pn.params.id||Pn.queryParams.id||"",Ts=Pn.fragment;Vr=Si?`user-${Si}`:"profile",Ts&&(Vr=`${Vr}-${Ts}`)}Er&&(0,Dr.PN)(Si=>Si.setTransactionName(Er)),(0,Gs._5)(this.googleAnalytics.recordPageView,this.googleAnalytics.firebaseSetCurrentScreenWrapper,Vr,Er,In.urlAfterRedirects)}),this.pageLoading=!1,this.changeDetector.markForCheck(),f.w.createMark(ul),f.w.measure(Ua,ga,ul)}else In instanceof ui.j5&&(this.pageLoading=!1,this.changeDetector.markForCheck(),f.w.createMark(ul),f.w.measure(Ua,ga,ul))},error:()=>{}})),this.zone.runOutsideAngular(()=>{this.subscriptions.add(this.translate.langChanges$.pipe((0,Li.Q)(this.destroySubject)).subscribe({next:In=>{this.akitaConfigurationService.refreshLanguageMetadata(In,In),this.akitaConfigurationService.changeLanguage(In),this.akitaScreenService.setLayoutDirection((0,Po.ru)(In)?"rtl":"ltr")}})),this.subscriptions.add(this.akitaAuthQuery.selectIsLoggedIn().pipe((0,Li.Q)(this.destroySubject)).subscribe({next:In=>{In&&this.applicationStableActions()}}))}),this.subscriptions.add(this.akitaRouterQuery.selectIsRtlLayout().pipe((0,Li.Q)(this.destroySubject)).subscribe({next:In=>{this.renderer.removeClass(this.document.body,In?"ltr":"rtl"),this.renderer.addClass(this.document.body,In?"rtl":"ltr")}}))}ngOnInit(){this.zone.runOutsideAngular(()=>{let l=this.activatedRoute.snapshot;for(;l.firstChild;)l=l.firstChild;this.akitaRouterService.onNavigationEnd(l.params,l.queryParams,l.data),this.onNavigationEnd(),this.subscriptions.add(this.akitaLocationQuery.selectDeviceLocation().pipe((0,Pa.F)((g,L)=>!(!g||!L||g.latitude!==L.latitude||g.longitude!==L.longitude)),(0,Li.Q)(this.destroySubject)).subscribe({next:g=>{this.zone.runOutsideAngular(()=>{g&&g.country&&0!==g.latitude&&0!==g.longitude&&("GPS"===g.precission||"IP"===g.precission)&&this.akitaLocationService.updateLocation(g)})}}))})}ngAfterViewInit(){this.akitaRouterQuery.isBrowser?this.zone.runOutsideAngular(()=>{this.subscriptions.add(this.akitaProductsService.getAvailableProductLocaleInfoAsync()),setTimeout(()=>{f.w.createMark(vd),f.w.measure(yu,vu,vd),this.applicationStableActions(),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.akitaNewsletterService.showNewsletterIfNeeded(),this.akitaOverlaysService.preloadMainDialogs(),this.akitaAuthService.showOneTap(),this.installTidio(),this.installOmnisend()},0)})},0)}):this.subscriptions.add(this.akitaProductsService.getAvailableProductLocaleInfoAsync())}installTidio(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.subscriptions.add(this.tidioService.installTidio().pipe((0,Li.Q)(this.destroySubject)).subscribe({next:()=>{},error:()=>{}}))},2e3)})}installOmnisend(){this.akitaRouterQuery.isBrowser&&this.zone.runOutsideAngular(()=>{this.subscriptions.add(this.omnisendService.installOmnisend().pipe((0,Li.Q)(this.destroySubject)).subscribe({next:()=>{},error:()=>{}}))})}applicationStableActions(){this.zone.runOutsideAngular(()=>{if(this.akitaAuthQuery.isLoggedIn){const l=this.akitaAuthQuery.user;l&&l.id&&this.subscriptions.add(this.akitaUsersService.getUserAsync(l.id))}this.akitaRouterQuery.isBrowser&&this.subscriptions.add(this.akitaCartService.getCartItemsAsync())})}onWindowAboutToUnload(){(0,Gs.D0)(this.googleAnalytics.logEventWrapper),this.stopSubscriptions()}onNavigationEnd(){const l=this.akitaRouterQuery.routeData;this.zone.runOutsideAngular(()=>{const g=this.akitaRouterQuery.requestURL;this.akitaConfigurationService.detectLanguage(sl.j.languageCode,g||""),this.akitaRouterQuery.queryParams.lang&&_u[this.akitaRouterQuery.queryParams.lang||""]&&this.akitaConfigurationQuery.languageCode.locale!==this.akitaRouterQuery.queryParams.lang&&(l.locale=this.akitaRouterQuery.queryParams.lang,this.akitaConfigurationService.detectLanguage(this.akitaRouterQuery.queryParams.lang,g)),this.akitaAuthQuery.isLoggedIn&&this.akitaOverlaysService.preloadSignedInDialogs(),this.akitaAuthService.checkCookieSession()})}ngOnDestroy(){this.stopSubscriptions()}stopSubscriptions(){this.destroySubject.next(),this.destroySubject.complete(),this.akitaScreenService.stopMonitoringScreen(),this.subscriptions&&this.subscriptions.unsubscribe()}static{this.\u0275fac=function(g){return new(g||p)(i.rXU(Oi.qQ),i.rXU(Cr),i.rXU(i.SKi),i.rXU(ui.Ix),i.rXU(i.sFG),i.rXU(ui.nX),i.rXU(i.gRc),i.rXU(mo.p),i.rXU(Tt.R),i.rXU(fi.w),i.rXU(di.JO),i.rXU(xa.Y),i.rXU(bn.T),i.rXU(hs.P),i.rXU(fs.g),i.rXU(Yo),i.rXU(Wl.R),i.rXU(fa.L),i.rXU(pm),i.rXU(yr.o),i.rXU(Wi.B),i.rXU(ll.e),i.rXU(Jo.M),i.rXU(Qo.z),i.rXU(Ro.t),i.rXU(os.O),i.rXU(Is.L),i.rXU(yo.w),i.rXU(yd.b),i.rXU(ro.B),i.rXU(Fa.v))}}static{this.\u0275cmp=i.VBU({type:p,selectors:[["app-root"]],hostBindings:function(g,L){1&g&&i.bIt("beforeunload",function(fe){return L.onWindowAboutToUnload(fe)},!1,i.tSv)},standalone:!0,features:[i.aNF],decls:1,vars:0,consts:[[4,"transloco"],[1,"view-app"],[4,"ngIf"],[1,"content"],["data-clarity-unmask","","name","firebase_rc_debug",3,"content"],[3,"json"],["class","page-loading",4,"ngIf"],[1,"toolbar"],[1,"page-loading"]],template:function(g,L){1&g&&i.DNE(0,vp,21,33,"ng-container",0)},dependencies:[di.Q8,di.bA,Oi.bT,Nt.u,Ze,ui.n3,gr.p,hi.T,Oi.Jj],styles:['@keyframes _ngcontent-%COMP%_loading{0%{transform:translate(-45%)}to{transform:translate(345%)}}.view-app[_ngcontent-%COMP%]{display:block;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;position:relative;width:100%;height:100%;max-height:100vh;max-height:calc(100vh - var(--ios-gap));min-width:320px;box-sizing:border-box;padding-top:0}.view-app[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;top:calc(50% - 54px);right:0;width:36px;min-width:36px;max-width:36px;height:100px;min-height:100px;max-height:100px;border:0;background-color:#d41556;color:#fff;box-shadow:0 2px 8px #06348f1a;border-radius:5px 0 0 5px;transform:translate(2px);z-index:100000;padding:4px 0;cursor:pointer}.view-app[_ngcontent-%COMP%]   .feedback-button[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{transform:rotate(270deg)}.view-app[_ngcontent-%COMP%]   .notification-tray[_ngcontent-%COMP%]{position:absolute;top:86px;right:16px;z-index:10000}.view-app[_ngcontent-%COMP%]   .notification-tray.rtl[_ngcontent-%COMP%]{right:initial;left:16px}.view-app.with-toolbar[_ngcontent-%COMP%]   .page-loading[_ngcontent-%COMP%]{top:64px}.view-app[_ngcontent-%COMP%]   app-toolbar[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;position:fixed;left:0;width:100%;z-index:2000;transform:translateZ(100px)}.view-app[_ngcontent-%COMP%]   .page-loading[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;position:fixed;inset:0;width:100%;height:100%;background-color:#f0f0f080}.view-app[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;width:100%;height:-moz-fit-content;height:fit-content}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;position:absolute;width:100%;left:0;bottom:0;height:48px;border-radius:8px;box-shadow:0 2px 8px #06348f1a;background-color:#fff;color:#000;padding:0 8px}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;width:1px;height:calc(100% - 16px);min-width:1px;max-width:1px;background-color:#f3f4f7;margin:0 8px}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:flex;align-items:center;justify-content:center;width:100%;min-width:40px;height:40px}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-weight:400;width:-moz-fit-content;width:fit-content}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:24px;height:24px;min-height:24px;max-height:24px;width:24px;min-width:24px;max-width:24px;line-height:24px;display:inline-block}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .fixed-space-8[_ngcontent-%COMP%]{display:inline-block}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:block;position:relative;box-sizing:border-box;backface-visibility:hidden;transform:translateZ(0);transform-origin:50% 51%;display:inline-block;width:auto;text-align:start}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button.active[_ngcontent-%COMP%]{background-color:#f3f4f7}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]     .mat-button-wrapper{font-weight:400;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover, .view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button.active[_ngcontent-%COMP%]{box-shadow:none}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover   div[_ngcontent-%COMP%], .view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button.active[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{box-shadow:none;font-weight:700}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]     g, .view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button.active[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]     g{stroke:#172b4d!important}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]:hover:after, .view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button.active[_ngcontent-%COMP%]:after{content:"";width:80%;height:2px;background-color:#d41556;position:absolute;bottom:-2px;left:10%;box-shadow:0 -2px 16px #d41556}.view-app[_ngcontent-%COMP%]   .mobile-fav-menu[_ngcontent-%COMP%]   .button.unread[_ngcontent-%COMP%]:before{content:attr(data-before);position:absolute;display:flex;align-items:center;justify-content:center;top:-8px;right:0;width:20px;height:20px;font-size:9px;font-weight:700;border-radius:50%;color:#fff;background-color:#d41556;transition:.2s linear}'],changeDetection:0})}}return p})();var Zo=s(8448),ir=s(61375);const Eu="Inject Language Guard",ma=`${Eu} - Start`,Su=`${Eu} - End`;let Xr=(()=>{class p{constructor(l,g,L){this.injector=l,this.router=g,this.akitaRouterQuery=L,this.requestURL="",this.isBrowser=this.akitaRouterQuery.isBrowser;try{this.document=this.injector.get(Oi.qQ)}catch{this.document=null}}refreshSentryLocaleMetadata(l){(0,Dr.PN)(g=>{g.setExtra("i18n:requested",l.requestedCode),g.setExtra("i18n:subDomain",l.hasSubDomain||"-"),g.setExtra("i18n:langParam",l.hasLangParam||"-"),g.setExtra("i18n:browser",l.hasBrowser),g.setExtra("i18n:dateLocale",l.hasDateLocale),g.setExtra("i18n:final",l.chosenLanguage)})}canActivate(l,g){f.w.createMark(ma);let L=l;for(;L.firstChild;)L=L.firstChild;if(this.requestURL="",this.clientRequest?this.requestURL=`${this.clientRequest.get("host")}${this.clientRequest.originalUrl}`:this.document&&(this.requestURL=`${this.document.location.origin||""}${g.url}`),!L.data.country.length&&!L.data.locale.length){const H=(0,Po.Ul)("en",this.requestURL,this.akitaRouterQuery.isBrowser,this.refreshSentryLocaleMetadata.bind(this));let me,fe=(0,Po.gI)("US",this.requestURL,this.refreshSentryLocaleMetadata.bind(this)).country;const Ke=H.toLowerCase().split("-");Ke.length>1?(fe=(Ke[1]||"").toLowerCase(),me=(E.c.languages[Ke[1]||""]||Ke[0]||"en").toLowerCase()):me=(Ke[0]||"en").toLowerCase(),fe=ir.Vj.includes(fe?.toUpperCase()||"")?fe?.toLowerCase()||"":"sa",me=ir.cW.includes(me?.toLowerCase()||"")?me:"en";const ut=g.url.split("?")[0].split("/").filter(Boolean);return this.router.createUrlTree([`${me}-${fe}`,...ut],{queryParams:g.root.queryParams})}return f.w.createMark(Su),f.w.measure(Eu,ma,Su),!0}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.zZn),i.KVO(ui.Ix),i.KVO(os.O))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var bu=s(66257),_d=s(55696),lr=s(23734),wc=s(2267),_p=s(19152),Ed=s(66143);let qi=(()=>{class p{constructor(l,g,L,H,fe,me,Ke,ut){this.zone=l,this.router=g,this.akitaRouterService=L,this.akitaRouterQuery=H,this.authAPIService=fe,this.akitaAuthService=me,this.akitaAuthQuery=Ke,this.googleAnalyticsService=ut,this.akitaAuthService.checkCookieSession(),this.subscriptions=new Cs.yU}canActivate(l){this.akitaAuthService.checkCookieSession();const g=this.akitaAuthQuery.user,L=this.akitaAuthQuery.serverType;let H=!1;const fe=decodeURI(l.queryParams.redirect||"");fe&&(0,Dr.PN)(Ut=>{Ut.setTag("redirect",`${fe||""}`)});let me={...l.queryParams};if(fe&&(me={...me,redirect:encodeURI(fe)}),"LOGOUT"===l.data.view&&((0,Dr.PN)(Ut=>{Ut.setUser({})}),this.akitaAuthService.logout(),typeof window<"u"))return this.zone.runOutsideAngular(()=>{setTimeout(()=>{fe?Zi.u.setLocationHref(`${fe}`):this.router.navigate(["/"],me).catch(Ut=>{console.log(Ut)})},500)}),!1;let Ke=null,ut=null;g&&g.oauth&&g.oauth.publicId&&(Ke=g.oauth.publicId),g&&g.oauth&&g.oauth.secret&&(ut=g.oauth.secret);const jt=this.akitaAuthQuery.cookieSession;if(jt&&jt.pid!==Ke&&jt.sec!==ut){if(jt.pid&&jt.sec){const Ut=new ei.Fv;return Ut.oauth.publicId=this.akitaAuthQuery.cookieSession.pid||"",Ut.oauth.secret=this.akitaAuthQuery.cookieSession.sec||"",this.renewToken(l,Ut,fe,me)}this.logout(l,me,fe)}else if(L===E.c.api.url&&g&&g.oauth&&g.oauth.publicId&&g.oauth.secret){if(!g.oauth.token)return this.renewToken(l,g,fe,me);{const Ut=_p.J.parseApiDate("expires_at","expiresAt",g.oauth.token)||new Date(0);if((0,_d.A)(Ut,new Date))return this.renewToken(l,g,fe,me);if(H=!0,this.akitaAuthService.refreshUserAsync(),(0,Dr.PN)(On=>{On.setUser({id:g.id,username:g.firstName,email:g.email})}),l.data={...l.data,user:g,oauth:g.oauth},l.firstChild&&(l.firstChild.data={...l.firstChild.data,user:g,oauth:g.oauth}),"SIGN_IN"===l.data.step||"SIGN_UP"===l.data.step)return fe?(Zi.u.setLocationHref(`${fe}${g.oauth.token.accessToken}`),!1):!0!==l.data.protected||(this.router.navigate(["login"],me).catch(On=>{console.log(On)}),!1)}}else g&&((0,Dr.PN)(Ut=>{Ut.setUser({})}),this.akitaAuthService.logout());if(!H){if((0,Dr.PN)(Ut=>{Ut.setUser({})}),"SIGN_IN"===l.data.step||"SIGN_UP"===l.data.step)return!0;if(l.queryParams.token)return this.fetchUserInfoSync(l,fe,me);!0===l.data.protected&&this.router.navigate(["user","sign-in"],me).catch(Ut=>{console.log(Ut)})}return!0!==l.data.protected||H}fetchUserInfoSync(l,g,L){var H=this;return(0,bu.A)(function*(){try{const fe=yield new Promise((me,Ke)=>{H.subscriptions.add(H.authAPIService.getUserInfoFromToken(l?.queryParams?.token||"").pipe((0,wc.s)(1)).subscribe({next:me,error:Ke}))});if(fe)return l.data={...l.data,user:fe,oauth:fe.oauth},l.firstChild&&(l.firstChild.data={...l.firstChild.data,user:fe,oauth:fe.oauth}),g&&fe&&fe.oauth&&fe.oauth.token?(Zi.u.setLocationHref(`${g}${fe.oauth.token.accessToken}`),!1):(H.akitaAuthService.userSignedIn(fe),H.akitaAuthService.refreshUserAsync(),(0,Dr.PN)(me=>{me.setUser({id:fe.id,username:fe.firstName,email:fe.email})}),!0)}catch(fe){if((0,Dr.PN)(me=>{me.setUser({})}),fe&&fe?.status===lr.k.NOT_FOUND){if(H.akitaAuthService.logout(),!0===l.data.protected){const me=H.akitaRouterQuery.homeUrlFragment;return me.push("user","sign-in"),H.akitaRouterService.navigate(me,L),!1}return!0}y.gU.reportException(fe,!1,()=>me=>{H.googleAnalyticsService.appException(me,"application",`${fe?.status||"-"}`,!1,"AUTH_GUARD","AuthGuard -> canActivate")})}return!0!==l.data.protected})()}logout(l,g,L){if((0,Dr.PN)(H=>{H.setUser({})}),this.akitaAuthService.logout(),L)typeof window<"u"&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{Zi.u.setLocationHref(`${L}`)},500)});else if(!0===l.data.protected)return this.router.navigate(["/","user","sign-in"],g||void 0).catch(H=>{console.log(H)}),!1;return!0}renewToken(l,g,L,H){var fe=this;return(0,bu.A)(function*(){try{const me=ei.Fv.fromJson(g)||new ei.Fv;return me.oauth.token=yield new Promise((Ke,ut)=>{fe.subscriptions.add(fe.authAPIService.getAccessToken(g.oauth.publicId,g.oauth.secret).pipe((0,wc.s)(1)).subscribe({next:Ke,error:ut}))}),l.data={...l.data,user:me,oauth:me.oauth},l.firstChild&&(l.firstChild.data={...l.firstChild.data,user:me,oauth:me.oauth}),L&&me.oauth&&me.oauth.token?(Zi.u.setLocationHref(`${L}${me.oauth.token.accessToken}`),!1):(fe.akitaAuthService.userSignedIn(me),fe.akitaAuthService.refreshUserAsync(),(0,Dr.PN)(Ke=>{Ke.setUser({id:me.id,username:me.firstName,email:me.email})}),!0)}catch(me){return me?.status===lr.k.NOT_FOUND&&fe.akitaAuthService.logout(),(0,Dr.PN)(Ke=>{Ke.setUser({})}),!0!==l.data.protected||(fe.akitaRouterService.navigate(["/","user","sign-in"],H),!1)}})()}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.SKi),i.KVO(ui.Ix),i.KVO(Ro.t),i.KVO(os.O),i.KVO(Ed.s),i.KVO(Jo.M),i.KVO(hs.P),i.KVO(mo.p))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();const Sd="Redirect Guard",Kt=`${Sd} - Start`,Or=`${Sd} - End`;let dl=(()=>{class p{constructor(l){this.akitaRouterQuery=l,this.isBrowser=this.akitaRouterQuery.isBrowser}canActivate(){return f.w.createMark(Kt),this.isBrowser&&("/android"===Zi.u.getLocationPathname()?Zi.u.setLocationHref("https://play.google.com/store/apps/details?id=com.mypopsy.android&hl=en"):"/ios"===Zi.u.getLocationPathname()&&Zi.u.setLocationHref("https://itunes.apple.com/app/apple-store/id1387389249&ct=web&mt=8")),f.w.createMark(Or),f.w.measure(Sd,Kt,Or),!0}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(os.O))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();const Mr=()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3971),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(984),s.e(7753),s.e(7861),s.e(2818),s.e(4628),s.e(692),s.e(9555),s.e(2006),s.e(9580),s.e(2076),s.e(9889)]).then(s.bind(s,59889)).then(p=>p.UserProfileComponent),qo=()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(9175),s.e(4476),s.e(9168),s.e(2864)]).then(s.bind(s,40606)).then(p=>p.HomeViewComponent),Wr=[{path:"android",loadComponent:qo,data:{view:"INFO",step:"ANDROID_LINK",fragment:["android"],analyticsName:"download_link_android"},canActivate:[dl]},{path:"ios",loadComponent:qo,data:{view:"INFO",step:"IOS_LINK",fragment:["ios"],analyticsName:"download_link_ios"},canActivate:[dl]},{path:"privacy-policy",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(9626)]).then(s.bind(s,79626)).then(p=>p.PrivacyPolicyComponent),data:{view:"INFO",step:"PRIVADY_POLICY",fragment:["privacy-policy"],analyticsName:"privacy_policy"},canActivate:[Xr,qi]},{path:"terms-conditions",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(7388)]).then(s.bind(s,37388)).then(p=>p.TermsConditionsComponent),data:{view:"INFO",step:"TERMS_CONDITIONS",fragment:["terms-conditions"],analyticsName:"terms_and_conditions"},canActivate:[Xr,qi]},{path:"refund-policy",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(9018)]).then(s.bind(s,99018)).then(p=>p.RefundPolicyComponent),data:{view:"INFO",step:"REFUND_POLICY",fragment:["refund-policy"],analyticsName:"refund_policy"},canActivate:[Xr]},{path:"terms-of-use",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(7658)]).then(s.bind(s,7658)).then(p=>p.TermsOfUseComponent),data:{view:"INFO",step:"TERMS_OF_USE",fragment:["terms-of-use"],analyticsName:"terms_of_use"},canActivate:[Xr]},{path:"warranty-and-refunds",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(1640),s.e(5110)]).then(s.bind(s,5110)).then(p=>p.WarrantyAndRefundsComponent),data:{view:"INFO",step:"WARRANTY_AND_REFUNDS",fragment:["warranty-and-refunds"],analyticsName:"warranty-and-refunds"},canActivate:[Xr]},{path:"payment-methods",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(8964),s.e(984),s.e(1640),s.e(8973),s.e(6382)]).then(s.bind(s,56382)).then(p=>p.PaymentMethodsComponent),data:{view:"INFO",step:"PAYMENT_METHODS",fragment:["payment-methods"],analyticsName:"payment-methods"},canActivate:[Xr]},{path:"installment-plans",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(2366),s.e(3267),s.e(1640),s.e(299),s.e(6941)]).then(s.bind(s,36111)).then(p=>p.InstallmentPlansComponent),data:{view:"INFO",step:"INSTALLMENT_PLANS",fragment:["installment-plans"],analyticsName:"installment-plans"}},{path:"faq",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(8947)]).then(s.bind(s,18947)).then(p=>p.FaqPageComponent),data:{view:"INFO",step:"FAQ",fragment:["faq"],analyticsName:"faq"}},{path:"shipping-and-delivery",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(1640),s.e(6667)]).then(s.bind(s,66667)).then(p=>p.ShippingAndDeliveryComponent),data:{view:"INFO",step:"SHIPPING_AND_DELIVERY",fragment:["shipping-and-delivery"],analyticsName:"shipping-and-delivery"}},{path:"credit-card-installments",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(1640),s.e(9224)]).then(s.bind(s,9224)).then(p=>p.CreditInstallmentPlansComponent),data:{view:"INFO",step:"CREDIT-INSTALLMENT_PLANS",fragment:["credit-card-installments"],analyticsName:"credit-card-installments"},canActivate:[Xr]},{path:"popsy-kafala-terms",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(6216)]).then(s.bind(s,56216)).then(p=>p.PopsyKafalaTermsComponent),data:{view:"INFO",step:"TERMS_OF_USE",fragment:["popsy-kafala-terms"],analyticsName:"popsy__kafala_terms"},canActivate:[Xr]},{path:"about-us",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(3803)]).then(s.bind(s,63803)).then(p=>p.AboutUsComponent),data:{view:"INFO",step:"ABOUT_US",fragment:["about-us"],analyticsName:"about_us_popsy"},canActivate:[Xr]},{path:"cart",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(4942),s.e(4053),s.e(2366),s.e(7861),s.e(4919),s.e(2818),s.e(8514),s.e(1066),s.e(5528),s.e(2076),s.e(5798)]).then(s.bind(s,15798)).then(p=>p.CartViewComponent),data:{view:"INFO",step:"CART",fragment:["cart"],analyticsName:"cart"},canActivate:[Xr]},{path:"seller",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(2076),s.e(9012)]).then(s.bind(s,79012)).then(p=>p.SuppliersPageComponent),data:{view:"INFO",step:"Seller",fragment:["seller"],analyticsName:"seller_popsy"},canActivate:[Xr]},{path:"customer-reviews",loadComponent:()=>Promise.all([s.e(9504),s.e(107)]).then(s.bind(s,70107)).then(p=>p.CustomerReviewsComponent),data:{view:"INFO",step:"CUSTOMER_REVIEWS",fragment:["customer-reviews"],analyticsName:"customer_reviews_popsy"},canActivate:[Xr]},{path:"baseeta",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(2076),s.e(9729)]).then(s.bind(s,9729)).then(p=>p.BaseetaInfoComponent),data:{view:"INFO",step:"CUSTOMER_REVIEWS",fragment:["baseeta"],analyticsName:"baseeta"},canActivate:[Xr]},{path:"order-review",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(2076),s.e(4829)]).then(s.bind(s,72110)).then(p=>p.OrderReviewComponent),data:{view:"INFO",step:"ORDER_REVIEW",fragment:["order-review"],analyticsName:"order-review_popsy"},canActivate:[Xr]},{path:"not-found",loadComponent:()=>s.e(7966).then(s.bind(s,27966)).then(p=>p.NotFoundComponent),data:{view:"ERROR",step:"NOT_FOUND",fragment:["not-found"],analyticsName:"not_found",preload:!1},canActivate:[Xr,qi]},{path:"error",loadComponent:()=>s.e(8413).then(s.bind(s,78413)).then(p=>p.UnknownErrorComponent),data:{view:"ERROR",step:"ERROR",fragment:["error"],analyticsName:"error",preload:!1},canActivate:[Xr,qi]},{path:"offline",loadComponent:()=>s.e(1833).then(s.bind(s,11833)).then(p=>p.OfflineComponent),data:{view:"ERROR",step:"OFFLINE",fragment:["offline"],analyticsName:"offline",preload:!1},canActivate:[Xr,qi]},{path:"login",data:{view:"LOGIN",step:"SUCCESS",fragment:["login"]},canActivate:[Xr,qi],children:[{path:"reset-password",loadComponent:()=>Promise.all([s.e(8232),s.e(670)]).then(s.bind(s,39868)).then(p=>p.ResetPasswordChangeViewComponent),data:{internal:!0,view:"LOGIN",step:"RESET_PASSWORD_CHANGE",fragment:["login","reset-password"],analyticsName:"reset_password_confirm"}},{path:"",loadComponent:qo,data:{view:"LOGIN",step:"SUCCESS",navigation:!0,protected:!0,analyticsName:"login_success"}}]},{path:"logout",data:{view:"LOGOUT",step:"LOGOUT",fragment:["logout"],analyticsName:"logout",protected:!0},canActivate:[Xr,qi],children:[{path:"",loadComponent:()=>s.e(5100).then(s.bind(s,25100)).then(p=>p.LogoutComponent)}]},{path:"settings",canActivate:[Xr,qi],loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(7861),s.e(2818),s.e(9580),s.e(9672)]).then(s.bind(s,55562)).then(p=>p.SettingsComponent),resolve:{},data:{view:"SETTINGS",step:"SETTINGS",fragment:["settings"],analyticsName:"settings",protected:!0},children:[{path:"",children:[{path:"user",loadComponent:()=>Promise.all([s.e(9555),s.e(2076),s.e(9902)]).then(s.bind(s,60772)).then(p=>p.UserSettingsComponent),data:{view:"SETTINGS",step:"USER",fragment:["settings","user"],analyticsName:"user-settings",protected:!0}},{path:"address",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(3971),s.e(2366),s.e(984),s.e(7753),s.e(4628),s.e(692),s.e(2006),s.e(561)]).then(s.bind(s,2006)).then(p=>p.AddressSettingsComponent),data:{view:"SETTINGS",step:"ADDRESS",fragment:["settings","address"],analyticsName:"address-settings",protected:!0}},{path:"",redirectTo:"user",pathMatch:"full"}]}]},{path:"user",data:{view:"USER",step:"USER",fragment:["user"],analyticsName:"user"},canActivate:[Xr,qi],resolve:{},children:[{path:"sign-in",loadComponent:()=>Promise.all([s.e(4668),s.e(2517)]).then(s.bind(s,28110)).then(p=>p.SignInViewComponent),data:{view:"USER",step:"SIGN_IN",analyticsName:"sign_in",fragment:["user","sign-in"]}},{path:"sign-up",loadComponent:()=>Promise.all([s.e(4016),s.e(1922)]).then(s.bind(s,91922)).then(p=>p.SignUpViewComponent),data:{view:"USER",step:"SIGN_UP",analyticsName:"sign_up",fragment:["user","sign-up"]}},{path:"reset-password",loadComponent:()=>Promise.all([s.e(5316),s.e(6301)]).then(s.bind(s,96610)).then(p=>p.ResetPasswordViewComponent),data:{view:"USER",step:"RESET_PASSWORD",analyticsName:"reset_password_request",fragment:["user","reset-password"]}},{path:":id",data:{view:"USER",step:"PROFILE",fragment:["user",":id"],analyticsName:"user"},runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{userId:(()=>{class p{constructor(l,g,L){this.router=l,this.akitaUsersService=g,this.akitaRouterQuery=L,this.isBrowser=this.akitaRouterQuery.isBrowser,this.subscriptions=new Cs.yU}static parseUserId(l){const g=(l||"").split("-");let L="";return g.length<=1?g[0]&&(L=g[0]):L=(0,Po.D4)(g[g.length-1],Po.Y0),L}resolve(l){var g=this;return(0,bu.A)(function*(){const L=p.parseUserId(l.params.id||l.queryParams.id);if(!g.isBrowser){const H=yield g.fetchUserSync(L);l.data={...l.data,user:H},l.firstChild&&(l.firstChild.data={...l.firstChild.data,user:H})}return L})()}fetchUserSync(l){var g=this;return(0,bu.A)(function*(){let L=null;try{L=yield new Promise((H,fe)=>{g.subscriptions.add(g.akitaUsersService.getUser(l).pipe((0,wc.s)(1)).subscribe({next:H,error:fe}))})}catch{g.router.navigate(["not-found"]).catch(H=>{console.log(H)})}return L||null})()}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(ui.Ix),i.KVO(ll.e),i.KVO(os.O))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()},children:[{path:":username",loadComponent:Mr,data:{view:"USER",step:"PROFILE",fragment:["user",":id",":username"],analyticsName:"user"}},{path:"",loadComponent:Mr,data:{view:"USER",step:"PROFILE",fragment:["user",":id"],analyticsName:"user"}}]},{path:"",loadComponent:Mr,data:{view:"USER",step:"PROFILE",fragment:["user"],analyticsName:"user",protected:!0}}]},{path:"checkout",canActivate:[Xr,qi],data:{view:"CHECKOUT",step:"CHECKOUT_ROOT",navigation:!0,analyticsName:"checkout",fragment:["checkout"]},resolve:{},children:[{path:":pid",data:{view:"SESSION",step:"CHECKOUT_SESSION",navigation:!0,analyticsName:"CheckoutSession",fragment:["checkout",":pid"]},children:[{path:"overview",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3971),s.e(3424),s.e(6435),s.e(4942),s.e(4053),s.e(2366),s.e(8964),s.e(984),s.e(7753),s.e(7861),s.e(4919),s.e(2818),s.e(4628),s.e(692),s.e(1066),s.e(5528),s.e(9950),s.e(8973),s.e(2995),s.e(6665),s.e(2076),s.e(3413)]).then(s.bind(s,58056)).then(p=>p.CheckoutSessionComponent),data:{view:"SESSION",step:"CHECKOUT_SESSION",navigation:!0,analyticsName:"CheckoutSession",fragment:["delivery",":pid","overview"]}},{path:"cko-success",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076)]).then(s.bind(s,7682)).then(p=>p.CheckoutDotComCallbackComponent),data:{view:"SESSION",step:"CKO_SUCCESS",analyticsName:"checkout_create_cko_success",fragment:["checkout",":pid","cko-success"]}},{path:"cko-failure",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076)]).then(s.bind(s,7682)).then(p=>p.CheckoutDotComCallbackComponent),data:{view:"SESSION",step:"CKO_FAIL",analyticsName:"checkout_create_cko_fail",fragment:["checkout",":pid","cko-failure"]}},{path:"tabby-success",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(8128)]).then(s.bind(s,58128)).then(p=>p.TabbyCallbackComponent),data:{view:"SESSION",step:"TABBY_SUCCESS",analyticsName:"checkout_create_tabby_success",fragment:["checkout",":pid","tabby-success"]}},{path:"tabby-cancel",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(8128)]).then(s.bind(s,58128)).then(p=>p.TabbyCallbackComponent),data:{view:"SESSION",step:"TABBY_CANCEL",analyticsName:"checkout_create_tabby_cancel",fragment:["checkout",":pid","tabby-cancel"]}},{path:"tabby-failure",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(8128)]).then(s.bind(s,58128)).then(p=>p.TabbyCallbackComponent),data:{view:"SESSION",step:"TABBY_FAILURE",analyticsName:"checkout_create_tabby_failure",fragment:["checkout",":pid","tabby-failure"]}},{path:"quara-success",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(3440)]).then(s.bind(s,53440)).then(p=>p.QuaraCallbackComponent),data:{view:"SESSION",step:"QUARA_SUCCESS",analyticsName:"checkout_create_quara_success",fragment:["checkout",":pid","quara-success"]}},{path:"quara-cancel",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(3440)]).then(s.bind(s,53440)).then(p=>p.QuaraCallbackComponent),data:{view:"SESSION",step:"QUARA_CANCEL",analyticsName:"checkout_create_quara_cancel",fragment:["checkout",":pid","quara-cancel"]}},{path:"quara-failure",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(3440)]).then(s.bind(s,53440)).then(p=>p.QuaraCallbackComponent),data:{view:"SESSION",step:"QUARA_FAILURE",analyticsName:"checkout_create_quara_failure",fragment:["checkout",":pid","quara-failure"]}},{path:"baseeta-success",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(9642)]).then(s.bind(s,59642)).then(p=>p.BaseetaCallbackComponent),data:{view:"SESSION",step:"BASEETA_SUCCESS",analyticsName:"checkout_create_baseeta_success",fragment:["checkout",":pid","baseeta-success"]}},{path:"baseeta-failure",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(9642)]).then(s.bind(s,59642)).then(p=>p.BaseetaCallbackComponent),data:{view:"SESSION",step:"BASEETA_FAILURE",analyticsName:"checkout_create_baseeta_failure",fragment:["checkout",":pid","baseeta-failure"]}},{path:"paypal-success",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(5290)]).then(s.bind(s,75290)).then(p=>p.PaypalCallbackComponent),data:{view:"SESSION",step:"PAYPAL_SUCCESS",analyticsName:"checkout_create_paypal_success",fragment:["checkout",":pid","paypal-success"]}},{path:"paypal-cancel",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(5290)]).then(s.bind(s,75290)).then(p=>p.PaypalCallbackComponent),data:{view:"SESSION",step:"PAYPAL_CANCEL",analyticsName:"checkout_create_paypal_cancel",fragment:["checkout",":pid","paypal-cancel"]}},{path:"paypal-failure",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(5290)]).then(s.bind(s,75290)).then(p=>p.PaypalCallbackComponent),data:{view:"SESSION",step:"PAYPAL_FAILURE",analyticsName:"checkout_create_paypal_failure",fragment:["checkout",":pid","paypal-failure"]}},{path:"tamara-success",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(2154)]).then(s.bind(s,72154)).then(p=>p.TamaraCallbackComponent),data:{view:"SESSION",step:"TAMARA_SUCCESS",analyticsName:"checkout_create_tamara_success",fragment:["checkout",":pid","tamara-success"]}},{path:"tamara-cancel",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(2154)]).then(s.bind(s,72154)).then(p=>p.TamaraCallbackComponent),data:{view:"SESSION",step:"TAMARA_CANCEL",analyticsName:"checkout_create_tamara_cancel",fragment:["checkout",":pid","tamara-cancel"]}},{path:"tamara-failure",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(2154)]).then(s.bind(s,72154)).then(p=>p.TamaraCallbackComponent),data:{view:"SESSION",step:"TAMARA_FAILURE",analyticsName:"checkout_create_tamara_failure",fragment:["checkout",":pid","tamara-failure"]}}]},{path:"",loadComponent:()=>Promise.all([s.e(2591),s.e(4446),s.e(6268),s.e(4942),s.e(4053),s.e(8964),s.e(2076),s.e(9002)]).then(s.bind(s,9002)).then(p=>p.CheckoutProductRedirectComponent),data:{view:"SESSION",step:"CHECKOUT_PRODUCT_REDIRECT",navigation:!0,analyticsName:"CheckoutProductRedirect",fragment:[""]}}]},{path:"order",data:{view:"ORDER",step:"ORDER",fragment:["order"],analyticsName:"order"},canActivate:[Xr],resolve:{},children:[{path:"search",pathMatch:"full",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(4919),s.e(1066),s.e(6665),s.e(2076),s.e(8214)]).then(s.bind(s,33799)).then(p=>p.OrderTrackerComponent),data:{view:"SEARCH-ORDER",step:"INFORMATION",fragment:["order","search"],analyticsName:"search-order"},resolve:{}},{path:":id",data:{view:"ORDER",step:"ORDER",fragment:["order",":id"],analyticsName:"order"},children:[{path:"",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(4919),s.e(1066),s.e(6665),s.e(2076),s.e(8214)]).then(s.bind(s,33799)).then(p=>p.OrderTrackerComponent),canActivate:[qi],data:{view:"ORDER-INFO",step:"INFORMATION",analyticsName:"delivery_details",fragment:["order",":id"]}}]},{path:"",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(4919),s.e(1066),s.e(6665),s.e(2076),s.e(8214)]).then(s.bind(s,33799)).then(p=>p.OrderTrackerComponent),data:{view:"ORDER",step:"INFORMATION",analyticsName:"order",fragment:["order"]}}]},{path:"products",pathMatch:"full",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(9175),s.e(3267),s.e(4476),s.e(9168),s.e(7474),s.e(291),s.e(8448)]).then(s.bind(s,98448)).then(p=>p.ProductSearchViewComponent),canActivate:[Xr,qi],data:{view:"ROOT",step:"PRODUCT_SEARCH",navigation:!0,analyticsName:"products",fragment:["products"]},resolve:{}},{path:"c",data:{view:"ROOT",step:"COLLECTION_ROOT",navigation:!0,analyticsName:"collection",fragment:["c"]},resolve:{},children:[{path:":section",data:{view:"ROOT",step:"COLLECTION",navigation:!0,analyticsName:"collection",fragment:["c",":section"]},children:[{path:":key",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(9175),s.e(3267),s.e(4476),s.e(9168),s.e(7474),s.e(291),s.e(5188),s.e(6702)]).then(s.bind(s,56702)).then(p=>p.CollectionPageViewComponent),canActivate:[Xr,qi],data:{view:"ROOT",step:"PRODUCT_SEARCH",navigation:!0,analyticsName:"products",fragment:["c",":section",":key"]},resolve:{}}]}]},{path:"p",canActivate:[Xr,qi],data:{view:"PRODUCT",step:"PRODUCT_ROOT",navigation:!0,analyticsName:"product",fragment:["p"]},resolve:{},children:[{path:":tid",pathMatch:"full",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(7861),s.e(4919),s.e(9175),s.e(2818),s.e(9504),s.e(4476),s.e(5528),s.e(5188),s.e(2076),s.e(7156)]).then(s.bind(s,37156)).then(p=>p.ProductDetailsViewComponent),canActivate:[Xr,qi],data:{view:"PRODUCT",step:"PRODUCT_DETAILS",navigation:!0,analyticsName:"product",fragment:["p",":tid"]},resolve:{}}]},{path:":category",pathMatch:"full",loadComponent:qo,data:{view:"HOME",step:"CATEGORY",fragment:[":category"],navigation:!0,analyticsName:"home"},canActivate:[Xr,qi],resolve:{}},{path:"s",pathMatch:"full",loadComponent:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3424),s.e(6435),s.e(5770),s.e(4942),s.e(4053),s.e(2366),s.e(9175),s.e(3267),s.e(4476),s.e(9168),s.e(7474),s.e(291),s.e(8448)]).then(s.bind(s,98448)).then(p=>p.ProductSearchViewComponent),canActivate:[Xr,qi],data:{view:"FEATURED",step:"ROOT",navigation:!0,analyticsName:"featured"},resolve:{}},{path:"",pathMatch:"full",loadComponent:qo,data:{view:"HOME",step:"ROOT",fragment:[""],navigation:!0,analyticsName:"home"},canActivate:[Xr,qi],resolve:{}},{path:"**",loadComponent:()=>s.e(7966).then(s.bind(s,27966)).then(p=>p.NotFoundComponent),canActivate:[Xr,qi],data:{view:"ERROR",step:"NOT_FOUND",fragment:["not-found"],analyticsName:"not_found"}}],Ba=[{path:"ar",children:Wr,data:{country:"",locale:"ar",rtl:!0}},{path:"en",children:Wr,data:{country:"",locale:"en",rtl:!1}},{path:"sa",children:Wr,data:{country:"sa",locale:"",rtl:!0}},{path:"ar-sa",children:Wr,data:{country:"sa",locale:"ar",rtl:!0}},{path:"en-sa",children:Wr,data:{country:"sa",locale:"en",rtl:!1}},{path:"ae",children:Wr,data:{country:"ae",locale:"",rtl:!0}},{path:"ar-ae",children:Wr,data:{country:"ae",locale:"ar",rtl:!0}},{path:"en-ae",children:Wr,data:{country:"ae",locale:"en",rtl:!1}},{path:"kw",children:Wr,data:{country:"kw",locale:"",rtl:!0}},{path:"ar-kw",children:Wr,data:{country:"kw",locale:"ar",rtl:!0}},{path:"en-kw",children:Wr,data:{country:"kw",locale:"en",rtl:!1}},{path:"qa",children:Wr,data:{country:"qa",locale:"",rtl:!0}},{path:"ar-qa",children:Wr,data:{country:"qa",locale:"ar",rtl:!0}},{path:"en-qa",children:Wr,data:{country:"qa",locale:"en",rtl:!1}},{path:"om",children:Wr,data:{country:"om",locale:"",rtl:!0}},{path:"ar-om",children:Wr,data:{country:"om",locale:"ar",rtl:!0}},{path:"en-om",children:Wr,data:{country:"om",locale:"en",rtl:!1}},{path:"bh",children:Wr,data:{country:"bh",locale:"",rtl:!0}},{path:"ar-bh",children:Wr,data:{country:"bh",locale:"ar",rtl:!0}},{path:"en-bh",children:Wr,data:{country:"bh",locale:"en",rtl:!1}},{path:"",children:Wr,data:{country:"",locale:"",rtl:!1}}],Cu={moduleConfigs:[{name:"auth-overlay-module",load:()=>Promise.all([s.e(109),s.e(3971),s.e(4016),s.e(4668),s.e(8232),s.e(5316),s.e(6736)]).then(s.bind(s,6736)).then(p=>p.AuthOverlayModule),preload:!1,isElement:!0},{name:"select-location-overlay",load:()=>Promise.all([s.e(2591),s.e(109),s.e(3971),s.e(2366),s.e(4628),s.e(2076),s.e(3581)]).then(s.bind(s,73581)).then(p=>p.SelectLocationOverlayModule),preload:!1,isElement:!0},{name:"filters-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(6611)]).then(s.bind(s,96611)).then(p=>p.FiltersOverlayModule),preload:!1,isElement:!0},{name:"currency-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(1027)]).then(s.bind(s,11027)).then(p=>p.CurrencyOverlayModule),preload:!1,isElement:!0},{name:"delete-account-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(7319)]).then(s.bind(s,77319)).then(p=>p.DeleteAccountOverlayModule),preload:!1,isElement:!0},{name:"edit-profile-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(9555),s.e(5170)]).then(s.bind(s,32973)).then(p=>p.EditProfileOverlayModule),preload:!1,isElement:!0},{name:"error-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(8964),s.e(9671)]).then(s.bind(s,19671)).then(p=>p.ErrorOverlayModule),preload:!0,isElement:!0},{name:"confirm-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(2076),s.e(5678)]).then(s.bind(s,54699)).then(p=>p.ConfirmOverlayModule),preload:!1,isElement:!0},{name:"footer-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(3530)]).then(s.bind(s,63530)).then(p=>p.FooterOverlayModule),preload:!1,isElement:!0},{name:"quara-overlay",load:()=>Promise.all([s.e(109),s.e(4446),s.e(3971),s.e(4942),s.e(984),s.e(7753),s.e(3444)]).then(s.bind(s,3242)).then(p=>p.QuaraOverlayModule),preload:!1,isElement:!0},{name:"baseeta-overlay",load:()=>Promise.all([s.e(2591),s.e(109),s.e(3971),s.e(3424),s.e(2366),s.e(984),s.e(7753),s.e(3267),s.e(299),s.e(2076),s.e(1)]).then(s.bind(s,44979)).then(p=>p.BaseetaOverlayModule),preload:!1,isElement:!0},{name:"list-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(9926)]).then(s.bind(s,59926)).then(p=>p.ListOverlayModule),preload:!1,isElement:!0},{name:"insurance-confirm-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(2076),s.e(9704)]).then(s.bind(s,69704)).then(p=>p.InsuranceConfirmOverlayModule),preload:!1,isElement:!0},{name:"conditions-info-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(2076),s.e(9395)]).then(s.bind(s,11776)).then(p=>p.ConditionsInfoOverlayModule),preload:!1,isElement:!0},{name:"report-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(8964),s.e(8318)]).then(s.bind(s,48318)).then(p=>p.ReportOverlayModule),preload:!1,isElement:!0},{name:"social-share-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(1860)]).then(s.bind(s,81860)).then(p=>p.SocialShareOverlayModule),preload:!1,isElement:!0},{name:"cart-overlay",load:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3971),s.e(4942),s.e(4053),s.e(2366),s.e(7861),s.e(8514),s.e(6996)]).then(s.bind(s,82415)).then(p=>p.CartOverlayModule),preload:!1,isElement:!0},{name:"cart-promo-overlay",load:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3971),s.e(4942),s.e(4053),s.e(2366),s.e(7861),s.e(8514),s.e(2995),s.e(3436)]).then(s.bind(s,50535)).then(p=>p.CartPromoOverlayModule),preload:!1,isElement:!0},{name:"insurance-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(8964),s.e(984),s.e(7753),s.e(4919),s.e(9295)]).then(s.bind(s,64729)).then(p=>p.InsuranceOverlayModule),preload:!1,isElement:!0},{name:"package-info-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(8964),s.e(984),s.e(7753),s.e(2076),s.e(6228)]).then(s.bind(s,29670)).then(p=>p.PackageInfoOverlayModule),preload:!1,isElement:!0},{name:"battery-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(8964),s.e(984),s.e(7753),s.e(2076),s.e(3631)]).then(s.bind(s,92973)).then(p=>p.BatteryOverlayModule),preload:!1,isElement:!0},{name:"retry-payment-overlay",load:()=>Promise.all([s.e(2591),s.e(109),s.e(4446),s.e(6268),s.e(3971),s.e(4942),s.e(4053),s.e(8964),s.e(984),s.e(7753),s.e(9950),s.e(247)]).then(s.bind(s,80355)).then(p=>p.RetryPaymentOverlayModule),preload:!1,isElement:!0},{name:"burguer-menu-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(7861),s.e(9175),s.e(5864)]).then(s.bind(s,45864)).then(p=>p.BurguerMenuOverlayModule),preload:!1,isElement:!0},{name:"feedback-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(1577)]).then(s.bind(s,11577)).then(p=>p.FeedbackOverlayModule),preload:!1,isElement:!0},{name:"phone-country-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(7967)]).then(s.bind(s,77967)).then(p=>p.PhoneCountryOverlayModule),preload:!1,isElement:!0},{name:"phone-filters-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(2366),s.e(3267),s.e(7474),s.e(5577)]).then(s.bind(s,46868)).then(p=>p.PhoneFiltersOverlayModule),preload:!1,isElement:!0},{name:"newsletter-overlay",load:()=>Promise.all([s.e(109),s.e(3971),s.e(984),s.e(7753),s.e(2308)]).then(s.bind(s,70226)).then(p=>p.NewsletterOverlayModule),preload:!1,isElement:!0}]};var hl=s(7190);let Fh=(()=>{class p{static forRoot(l){return{ngModule:p,providers:[{provide:hl.eG,useValue:{},multi:!0,deps:[hl.Kw]},{provide:hl.eG,useValue:(l||{}).moduleConfigs,multi:!0},{provide:hl.J3,useValue:(l||{}).rootOptions||{}}]}}constructor(l,g=[]){g&&l.addConfig(g[g.length-1])}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(hl.Kw),i.KVO(hl.eG,8))}}static{this.\u0275mod=i.$C({type:p})}static{this.\u0275inj=i.G2t({})}}return p})();var Zn=s(23761);function xo(p){return new i.wOt(3e3,!1)}function ko(p){switch(p.length){case 0:return new Zn.sf;case 1:return p[0];default:return new Zn.ui(p)}}function Rd(p,u,l=new Map,g=new Map){const L=[],H=[];let fe=-1,me=null;if(u.forEach(Ke=>{const ut=Ke.get("offset"),jt=ut==fe,Ut=jt&&me||new Map;Ke.forEach((Qn,On)=>{let xn=On,wn=Qn;if("offset"!==On)switch(xn=p.normalizePropertyName(xn,L),wn){case Zn.FX:wn=l.get(On);break;case Zn.kp:wn=g.get(On);break;default:wn=p.normalizeStyleValue(On,xn,wn,L)}Ut.set(xn,wn)}),jt||H.push(Ut),me=Ut,fe=ut}),L.length)throw function Gh(p){return new i.wOt(3502,!1)}();return H}function Rc(p,u,l,g){switch(u){case"start":p.onStart(()=>g(l&&ja(l,"start",p)));break;case"done":p.onDone(()=>g(l&&ja(l,"done",p)));break;case"destroy":p.onDestroy(()=>g(l&&ja(l,"destroy",p)))}}function ja(p,u,l){const H=va(p.element,p.triggerName,p.fromState,p.toState,u||p.phaseName,l.totalTime??p.totalTime,!!l.disabled),fe=p._data;return null!=fe&&(H._data=fe),H}function va(p,u,l,g,L="",H=0,fe){return{element:p,triggerName:u,fromState:l,toState:g,phaseName:L,totalTime:H,disabled:!!fe}}function Ls(p,u,l){let g=p.get(u);return g||p.set(u,g=l),g}function Co(p){const u=p.indexOf(":");return[p.substring(1,u),p.slice(u+1)]}const Nd=typeof document>"u"?null:document.documentElement;function Ld(p){const u=p.parentNode||p.host||null;return u===Nd?null:u}let Hl=null,xd=!1;function $a(p,u){for(;u;){if(u===p)return!0;u=Ld(u)}return!1}function Du(p,u,l){if(l)return Array.from(p.querySelectorAll(u));const g=p.querySelector(u);return g?[g]:[]}let Tu=(()=>{class p{validateStyleProperty(l){return function kd(p){Hl||(Hl=function Cp(){return typeof document<"u"?document.body:null}()||{},xd=!!Hl.style&&"WebkitAppearance"in Hl.style);let u=!0;return Hl.style&&!function Nc(p){return"ebkit"==p.substring(1,6)}(p)&&(u=p in Hl.style,!u&&xd&&(u="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in Hl.style)),u}(l)}matchesElement(l,g){return!1}containsElement(l,g){return $a(l,g)}getParentElement(l){return Ld(l)}query(l,g,L){return Du(l,g,L)}computeStyle(l,g,L){return L||""}animate(l,g,L,H,fe,me=[],Ke){return new Zn.sf(L,H)}static{this.\u0275fac=function(g){return new(g||p)}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac})}}return p})();class Wa{static{this.NOOP=new Tu}}class Ou{}const io=1e3,so="ng-enter",xc="ng-leave",ea="ng-trigger",kc=".ng-trigger",Dp="ng-animating",Ud=".ng-animating";function ta(p){if("number"==typeof p)return p;const u=p.match(/^(-?[\.\d]+)(m?s)/);return!u||u.length<2?0:Ga(parseFloat(u[1]),u[2])}function Ga(p,u){return"s"===u?p*io:p}function Fc(p,u,l){return p.hasOwnProperty("duration")?p:function Bd(p,u,l){let L,H=0,fe="";if("string"==typeof p){const me=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===me)return u.push(xo()),{duration:0,delay:0,easing:""};L=Ga(parseFloat(me[1]),me[2]);const Ke=me[3];null!=Ke&&(H=Ga(parseFloat(Ke),me[4]));const ut=me[5];ut&&(fe=ut)}else L=p;if(!l){let me=!1,Ke=u.length;L<0&&(u.push(function bd(){return new i.wOt(3100,!1)}()),me=!0),H<0&&(u.push(function Eo(){return new i.wOt(3101,!1)}()),me=!0),me&&u.splice(Ke,0,xo())}return{duration:L,delay:H,easing:fe}}(p,u,l)}function Io(p,u,l){u.forEach((g,L)=>{const H=wu(L);l&&!l.has(L)&&l.set(L,p.style[H]),p.style[H]=g})}function es(p,u){u.forEach((l,g)=>{const L=wu(g);p.style[L]=""})}function pl(p){return Array.isArray(p)?1==p.length?p[0]:(0,Zn.K2)(p):p}const na=new RegExp("{{\\s*(.+?)\\s*}}","g");function Pi(p){let u=[];if("string"==typeof p){let l;for(;l=na.exec(p);)u.push(l[1]);na.lastIndex=0}return u}function Ql(p,u,l){const g=`${p}`,L=g.replace(na,(H,fe)=>{let me=u[fe];return null==me&&(l.push(function gm(p){return new i.wOt(3003,!1)}()),me=""),me.toString()});return L==g?p:L}const jd=/-+([a-z0-9])/g;function wu(p){return p.replace(jd,(...u)=>u[1].toUpperCase())}function As(p,u,l){switch(u.type){case Zn.If.Trigger:return p.visitTrigger(u,l);case Zn.If.State:return p.visitState(u,l);case Zn.If.Transition:return p.visitTransition(u,l);case Zn.If.Sequence:return p.visitSequence(u,l);case Zn.If.Group:return p.visitGroup(u,l);case Zn.If.Animate:return p.visitAnimate(u,l);case Zn.If.Keyframes:return p.visitKeyframes(u,l);case Zn.If.Style:return p.visitStyle(u,l);case Zn.If.Reference:return p.visitReference(u,l);case Zn.If.AnimateChild:return p.visitAnimateChild(u,l);case Zn.If.AnimateRef:return p.visitAnimateRef(u,l);case Zn.If.Query:return p.visitQuery(u,l);case Zn.If.Stagger:return p.visitStagger(u,l);default:throw function Uh(p){return new i.wOt(3004,!1)}()}}const Mu=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class gl extends Ou{normalizePropertyName(u,l){return wu(u)}normalizeStyleValue(u,l,g,L){let H="";const fe=g.toString().trim();if(Mu.has(l)&&0!==g&&"0"!==g)if("number"==typeof g)H="px";else{const me=g.match(/^[+-]?[\d\.]+([a-z]*)$/);me&&0==me[1].length&&L.push(function mm(p,u){return new i.wOt(3005,!1)}())}return fe+H}}const Bc="*";const Ru=new Set(["true","1"]),ml=new Set(["false","0"]);function ps(p,u){const l=Ru.has(p)||ml.has(p),g=Ru.has(u)||ml.has(u);return(L,H)=>{let fe=p==Bc||p==L,me=u==Bc||u==H;return!fe&&l&&"boolean"==typeof L&&(fe=L?Ru.has(p):ml.has(p)),!me&&g&&"boolean"==typeof H&&(me=H?Ru.has(u):ml.has(u)),fe&&me}}const Vc=new RegExp("s*:selfs*,?","g");function wp(p,u,l,g){return new Ka(p).build(u,l,g)}class Ka{constructor(u){this._driver=u}build(u,l,g){const L=new Gd(l);return this._resetContextStyleTimingState(L),As(this,pl(u),L)}_resetContextStyleTimingState(u){u.currentQuerySelector="",u.collectedStyles=new Map,u.collectedStyles.set("",new Map),u.currentTime=0}visitTrigger(u,l){let g=l.queryCount=0,L=l.depCount=0;const H=[],fe=[];return"@"==u.name.charAt(0)&&l.errors.push(function Sp(){return new i.wOt(3006,!1)}()),u.definitions.forEach(me=>{if(this._resetContextStyleTimingState(l),me.type==Zn.If.State){const Ke=me,ut=Ke.name;ut.toString().split(/\s*,\s*/).forEach(jt=>{Ke.name=jt,H.push(this.visitState(Ke,l))}),Ke.name=ut}else if(me.type==Zn.If.Transition){const Ke=this.visitTransition(me,l);g+=Ke.queryCount,L+=Ke.depCount,fe.push(Ke)}else l.errors.push(function Bh(){return new i.wOt(3007,!1)}())}),{type:Zn.If.Trigger,name:u.name,states:H,transitions:fe,queryCount:g,depCount:L,options:null}}visitState(u,l){const g=this.visitStyle(u.styles,l),L=u.options&&u.options.params||null;if(g.containsDynamicStyles){const H=new Set,fe=L||{};g.styles.forEach(me=>{me instanceof Map&&me.forEach(Ke=>{Pi(Ke).forEach(ut=>{fe.hasOwnProperty(ut)||H.add(ut)})})}),H.size&&l.errors.push(function Iu(p,u){return new i.wOt(3008,!1)}(0,H.values()))}return{type:Zn.If.State,name:u.name,style:g,options:L?{params:L}:null}}visitTransition(u,l){l.queryCount=0,l.depCount=0;const g=As(this,pl(u.animation),l),L=function $d(p,u){const l=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(g=>function Op(p,u,l){if(":"==p[0]){const Ke=function Zh(p,u){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g)<parseFloat(l);default:return u.push(function Wh(p){return new i.wOt(3016,!1)}()),"* => *"}}(p,l);if("function"==typeof Ke)return void u.push(Ke);p=Ke}const g=p.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(function fl(p){return new i.wOt(3015,!1)}()),u;const L=g[1],H=g[2],fe=g[3];u.push(ps(L,fe)),"<"==H[0]&&(L!=Bc||fe!=Bc)&&u.push(ps(fe,L))}(g,l,u)):l.push(p),l}(u.expr,l.errors);return{type:Zn.If.Transition,matchers:L,animation:g,queryCount:l.queryCount,depCount:l.depCount,options:jc(u.options)}}visitSequence(u,l){return{type:Zn.If.Sequence,steps:u.steps.map(g=>As(this,g,l)),options:jc(u.options)}}visitGroup(u,l){const g=l.currentTime;let L=0;const H=u.steps.map(fe=>{l.currentTime=g;const me=As(this,fe,l);return L=Math.max(L,l.currentTime),me});return l.currentTime=L,{type:Zn.If.Group,steps:H,options:jc(u.options)}}visitAnimate(u,l){const g=function Lu(p,u){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return xu(Fc(p,u).duration,0,"");const l=p;if(l.split(/\s+/).some(H=>"{"==H.charAt(0)&&"{"==H.charAt(1))){const H=xu(0,0,"");return H.dynamic=!0,H.strValue=l,H}const L=Fc(l,u);return xu(L.duration,L.delay,L.easing)}(u.timings,l.errors);l.currentAnimateTimings=g;let L,H=u.styles?u.styles:(0,Zn.iF)({});if(H.type==Zn.If.Keyframes)L=this.visitKeyframes(H,l);else{let fe=u.styles,me=!1;if(!fe){me=!0;const ut={};g.easing&&(ut.easing=g.easing),fe=(0,Zn.iF)(ut)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(fe,l);Ke.isEmptyStep=me,L=Ke}return l.currentAnimateTimings=null,{type:Zn.If.Animate,timings:g,style:L,options:null}}visitStyle(u,l){const g=this._makeStyleAst(u,l);return this._validateStyleAst(g,l),g}_makeStyleAst(u,l){const g=[],L=Array.isArray(u.styles)?u.styles:[u.styles];for(let me of L)"string"==typeof me?me===Zn.kp?g.push(me):l.errors.push(new i.wOt(3002,!1)):g.push(new Map(Object.entries(me)));let H=!1,fe=null;return g.forEach(me=>{if(me instanceof Map&&(me.has("easing")&&(fe=me.get("easing"),me.delete("easing")),!H))for(let Ke of me.values())if(Ke.toString().indexOf("{{")>=0){H=!0;break}}),{type:Zn.If.Style,styles:g,easing:fe,offset:u.offset,containsDynamicStyles:H,options:null}}_validateStyleAst(u,l){const g=l.currentAnimateTimings;let L=l.currentTime,H=l.currentTime;g&&H>0&&(H-=g.duration+g.delay),u.styles.forEach(fe=>{"string"!=typeof fe&&fe.forEach((me,Ke)=>{const ut=l.collectedStyles.get(l.currentQuerySelector),jt=ut.get(Ke);let Ut=!0;jt&&(H!=L&&H>=jt.startTime&&L<=jt.endTime&&(l.errors.push(function zs(p,u,l,g,L){return new i.wOt(3010,!1)}()),Ut=!1),H=jt.startTime),Ut&&ut.set(Ke,{startTime:H,endTime:L}),l.options&&function Uc(p,u,l){const g=u.params||{},L=Pi(p);L.length&&L.forEach(H=>{g.hasOwnProperty(H)||l.push(function So(p){return new i.wOt(3001,!1)}())})}(me,l.options,l.errors)})})}visitKeyframes(u,l){const g={type:Zn.If.Keyframes,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Ad(){return new i.wOt(3011,!1)}()),g;let H=0;const fe=[];let me=!1,Ke=!1,ut=0;const jt=u.steps.map(pi=>{const gi=this._makeStyleAst(pi,l);let gs=null!=gi.offset?gi.offset:function Pp(p){if("string"==typeof p)return null;let u=null;if(Array.isArray(p))p.forEach(l=>{if(l instanceof Map&&l.has("offset")){const g=l;u=parseFloat(g.get("offset")),g.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const l=p;u=parseFloat(l.get("offset")),l.delete("offset")}return u}(gi.styles),Ki=0;return null!=gs&&(H++,Ki=gi.offset=gs),Ke=Ke||Ki<0||Ki>1,me=me||Ki<ut,ut=Ki,fe.push(Ki),gi});Ke&&l.errors.push(function Vh(){return new i.wOt(3012,!1)}()),me&&l.errors.push(function Dd(){return new i.wOt(3200,!1)}());const Ut=u.steps.length;let Qn=0;H>0&&H<Ut?l.errors.push(function jh(){return new i.wOt(3202,!1)}()):0==H&&(Qn=1/(Ut-1));const On=Ut-1,xn=l.currentTime,wn=l.currentAnimateTimings,Gr=wn.duration;return jt.forEach((pi,gi)=>{const gs=Qn>0?gi==On?1:Qn*gi:fe[gi],Ki=gs*Gr;l.currentTime=xn+wn.delay+Ki,wn.duration=Ki,this._validateStyleAst(pi,l),pi.offset=gs,g.styles.push(pi)}),g}visitReference(u,l){return{type:Zn.If.Reference,animation:As(this,pl(u.animation),l),options:jc(u.options)}}visitAnimateChild(u,l){return l.depCount++,{type:Zn.If.AnimateChild,options:jc(u.options)}}visitAnimateRef(u,l){return{type:Zn.If.AnimateRef,animation:this.visitReference(u.animation,l),options:jc(u.options)}}visitQuery(u,l){const g=l.currentQuerySelector,L=u.options||{};l.queryCount++,l.currentQuery=u;const[H,fe]=function Nu(p){const u=!!p.split(/\s*,\s*/).find(l=>":self"==l);return u&&(p=p.replace(Vc,"")),p=p.replace(/@\*/g,kc).replace(/@\w+/g,l=>kc+"-"+l.slice(1)).replace(/:animating/g,Ud),[p,u]}(u.selector);l.currentQuerySelector=g.length?g+" "+H:H,Ls(l.collectedStyles,l.currentQuerySelector,new Map);const me=As(this,pl(u.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:Zn.If.Query,selector:H,limit:L.limit||0,optional:!!L.optional,includeSelf:fe,animation:me,originalSelector:u.selector,options:jc(u.options)}}visitStagger(u,l){l.currentQuery||l.errors.push(function Td(){return new i.wOt(3013,!1)}());const g="full"===u.timings?{duration:0,delay:0,easing:"full"}:Fc(u.timings,l.errors,!0);return{type:Zn.If.Stagger,animation:As(this,pl(u.animation),l),timings:g,options:null}}}class Gd{constructor(u){this.errors=u,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function jc(p){return p?(p={...p}).params&&(p.params=function Zl(p){return p?{...p}:null}(p.params)):p={},p}function xu(p,u,l){return{duration:p,delay:u,easing:l}}function Kd(p,u,l,g,L,H,fe=null,me=!1){return{type:1,element:p,keyframes:u,preStyleProps:l,postStyleProps:g,duration:L,delay:H,totalTime:L+H,easing:fe,subTimeline:me}}class ql{constructor(){this._map=new Map}get(u){return this._map.get(u)||[]}append(u,l){let g=this._map.get(u);g||this._map.set(u,g=[]),g.push(...l)}has(u){return this._map.has(u)}clear(){this._map.clear()}}const Ha=new RegExp(":enter","g"),Mp=new RegExp(":leave","g");function $c(p,u,l,g,L,H=new Map,fe=new Map,me,Ke,ut=[]){return(new Hd).buildKeyframes(p,u,l,g,L,H,fe,me,Ke,ut)}class Hd{buildKeyframes(u,l,g,L,H,fe,me,Ke,ut,jt=[]){ut=ut||new ql;const Ut=new qh(u,l,ut,L,H,jt,[]);Ut.options=Ke;const Qn=Ke.delay?ta(Ke.delay):0;Ut.currentTimeline.delayNextStep(Qn),Ut.currentTimeline.setStyles([fe],null,Ut.errors,Ke),As(this,g,Ut);const On=Ut.timelines.filter(xn=>xn.containsAnimation());if(On.length&&me.size){let xn;for(let wn=On.length-1;wn>=0;wn--){const Gr=On[wn];if(Gr.element===l){xn=Gr;break}}xn&&!xn.allowOnlyTimelineStyles()&&xn.setStyles([me],null,Ut.errors,Ke)}return On.length?On.map(xn=>xn.buildKeyframes()):[Kd(l,[],[],[],0,Qn,"",!1)]}visitTrigger(u,l){}visitState(u,l){}visitTransition(u,l){}visitAnimateChild(u,l){const g=l.subInstructions.get(l.element);if(g){const L=l.createSubContext(u.options),H=l.currentTimeline.currentTime,fe=this._visitSubInstructions(g,L,L.options);H!=fe&&l.transformIntoNewTimeline(fe)}l.previousNode=u}visitAnimateRef(u,l){const g=l.createSubContext(u.options);g.transformIntoNewTimeline(),this._applyAnimationRefDelays([u.options,u.animation.options],l,g),this.visitReference(u.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=u}_applyAnimationRefDelays(u,l,g){for(const L of u){const H=L?.delay;if(H){const fe="number"==typeof H?H:ta(Ql(H,L?.params??{},l.errors));g.delayNextStep(fe)}}}_visitSubInstructions(u,l,g){let H=l.currentTimeline.currentTime;const fe=null!=g.duration?ta(g.duration):null,me=null!=g.delay?ta(g.delay):null;return 0!==fe&&u.forEach(Ke=>{const ut=l.appendInstructionToTimeline(Ke,fe,me);H=Math.max(H,ut.duration+ut.delay)}),H}visitReference(u,l){l.updateOptions(u.options,!0),As(this,u.animation,l),l.previousNode=u}visitSequence(u,l){const g=l.subContextCount;let L=l;const H=u.options;if(H&&(H.params||H.delay)&&(L=l.createSubContext(H),L.transformIntoNewTimeline(),null!=H.delay)){L.previousNode.type==Zn.If.Style&&(L.currentTimeline.snapshotCurrentStyles(),L.previousNode=xs);const fe=ta(H.delay);L.delayNextStep(fe)}u.steps.length&&(u.steps.forEach(fe=>As(this,fe,L)),L.currentTimeline.applyStylesToKeyframe(),L.subContextCount>g&&L.transformIntoNewTimeline()),l.previousNode=u}visitGroup(u,l){const g=[];let L=l.currentTimeline.currentTime;const H=u.options&&u.options.delay?ta(u.options.delay):0;u.steps.forEach(fe=>{const me=l.createSubContext(u.options);H&&me.delayNextStep(H),As(this,fe,me),L=Math.max(L,me.currentTimeline.currentTime),g.push(me.currentTimeline)}),g.forEach(fe=>l.currentTimeline.mergeTimelineCollectedStyles(fe)),l.transformIntoNewTimeline(L),l.previousNode=u}_visitTiming(u,l){if(u.dynamic){const g=u.strValue;return Fc(l.params?Ql(g,l.params,l.errors):g,l.errors)}return{duration:u.duration,delay:u.delay,easing:u.easing}}visitAnimate(u,l){const g=l.currentAnimateTimings=this._visitTiming(u.timings,l),L=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),L.snapshotCurrentStyles());const H=u.style;H.type==Zn.If.Keyframes?this.visitKeyframes(H,l):(l.incrementTime(g.duration),this.visitStyle(H,l),L.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=u}visitStyle(u,l){const g=l.currentTimeline,L=l.currentAnimateTimings;!L&&g.hasCurrentStyleProperties()&&g.forwardFrame();const H=L&&L.easing||u.easing;u.isEmptyStep?g.applyEmptyStep(H):g.setStyles(u.styles,H,l.errors,l.options),l.previousNode=u}visitKeyframes(u,l){const g=l.currentAnimateTimings,L=l.currentTimeline.duration,H=g.duration,me=l.createSubContext().currentTimeline;me.easing=g.easing,u.styles.forEach(Ke=>{me.forwardTime((Ke.offset||0)*H),me.setStyles(Ke.styles,Ke.easing,l.errors,l.options),me.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(me),l.transformIntoNewTimeline(L+H),l.previousNode=u}visitQuery(u,l){const g=l.currentTimeline.currentTime,L=u.options||{},H=L.delay?ta(L.delay):0;H&&(l.previousNode.type===Zn.If.Style||0==g&&l.currentTimeline.hasCurrentStyleProperties())&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=xs);let fe=g;const me=l.invokeQuery(u.selector,u.originalSelector,u.limit,u.includeSelf,!!L.optional,l.errors);l.currentQueryTotal=me.length;let Ke=null;me.forEach((ut,jt)=>{l.currentQueryIndex=jt;const Ut=l.createSubContext(u.options,ut);H&&Ut.delayNextStep(H),ut===l.element&&(Ke=Ut.currentTimeline),As(this,u.animation,Ut),Ut.currentTimeline.applyStylesToKeyframe(),fe=Math.max(fe,Ut.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(fe),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=u}visitStagger(u,l){const g=l.parentContext,L=l.currentTimeline,H=u.timings,fe=Math.abs(H.duration),me=fe*(l.currentQueryTotal-1);let Ke=fe*l.currentQueryIndex;switch(H.duration<0?"reverse":H.easing){case"reverse":Ke=me-Ke;break;case"full":Ke=g.currentStaggerTime}const jt=l.currentTimeline;Ke&&jt.delayNextStep(Ke);const Ut=jt.currentTime;As(this,u.animation,l),l.previousNode=u,g.currentStaggerTime=L.currentTime-Ut+(L.startTime-g.currentTimeline.startTime)}}const xs={};class qh{constructor(u,l,g,L,H,fe,me,Ke){this._driver=u,this.element=l,this.subInstructions=g,this._enterClassName=L,this._leaveClassName=H,this.errors=fe,this.timelines=me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ea(this._driver,l,0),me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(u,l){if(!u)return;const g=u;let L=this.options;null!=g.duration&&(L.duration=ta(g.duration)),null!=g.delay&&(L.delay=ta(g.delay));const H=g.params;if(H){let fe=L.params;fe||(fe=this.options.params={}),Object.keys(H).forEach(me=>{(!l||!fe.hasOwnProperty(me))&&(fe[me]=Ql(H[me],fe,this.errors))})}}_copyOptions(){const u={};if(this.options){const l=this.options.params;if(l){const g=u.params={};Object.keys(l).forEach(L=>{g[L]=l[L]})}}return u}createSubContext(u=null,l,g){const L=l||this.element,H=new qh(this._driver,L,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(L,g||0));return H.previousNode=this.previousNode,H.currentAnimateTimings=this.currentAnimateTimings,H.options=this._copyOptions(),H.updateOptions(u),H.currentQueryIndex=this.currentQueryIndex,H.currentQueryTotal=this.currentQueryTotal,H.parentContext=this,this.subContextCount++,H}transformIntoNewTimeline(u){return this.previousNode=xs,this.currentTimeline=this.currentTimeline.fork(this.element,u),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(u,l,g){const L={duration:l??u.duration,delay:this.currentTimeline.currentTime+(g??0)+u.delay,easing:""},H=new Fu(this._driver,u.element,u.keyframes,u.preStyleProps,u.postStyleProps,L,u.stretchStartingKeyframe);return this.timelines.push(H),L}incrementTime(u){this.currentTimeline.forwardTime(this.currentTimeline.duration+u)}delayNextStep(u){u>0&&this.currentTimeline.delayNextStep(u)}invokeQuery(u,l,g,L,H,fe){let me=[];if(L&&me.push(this.element),u.length>0){u=(u=u.replace(Ha,"."+this._enterClassName)).replace(Mp,"."+this._leaveClassName);let ut=this._driver.query(this.element,u,1!=g);0!==g&&(ut=g<0?ut.slice(ut.length+g,ut.length):ut.slice(0,g)),me.push(...ut)}return!H&&0==me.length&&fe.push(function $h(p){return new i.wOt(3014,!1)}()),me}}class Ea{constructor(u,l,g,L){this._driver=u,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=L,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(u){const l=1===this._keyframes.size&&this._pendingStyles.size;this.duration||l?(this.forwardTime(this.currentTime+u),l&&this.snapshotCurrentStyles()):this.startTime+=u}fork(u,l){return this.applyStylesToKeyframe(),new Ea(this._driver,u,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(u){this.applyStylesToKeyframe(),this.duration=u,this._loadKeyframe()}_updateStyle(u,l){this._localTimelineStyles.set(u,l),this._globalTimelineStyles.set(u,l),this._styleSummary.set(u,{time:this.currentTime,value:l})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(u){u&&this._previousKeyframe.set("easing",u);for(let[l,g]of this._globalTimelineStyles)this._backFill.set(l,g||Zn.kp),this._currentKeyframe.set(l,Zn.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(u,l,g,L){l&&this._previousKeyframe.set("easing",l);const H=L&&L.params||{},fe=function Rp(p,u){const l=new Map;let g;return p.forEach(L=>{if("*"===L){g??=u.keys();for(let H of g)l.set(H,Zn.kp)}else for(let[H,fe]of L)l.set(H,fe)}),l}(u,this._globalTimelineStyles);for(let[me,Ke]of fe){const ut=Ql(Ke,H,g);this._pendingStyles.set(me,ut),this._localTimelineStyles.has(me)||this._backFill.set(me,this._globalTimelineStyles.get(me)??Zn.kp),this._updateStyle(me,ut)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((u,l)=>{this._currentKeyframe.set(l,u)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((u,l)=>{this._currentKeyframe.has(l)||this._currentKeyframe.set(l,u)}))}snapshotCurrentStyles(){for(let[u,l]of this._localTimelineStyles)this._pendingStyles.set(u,l),this._updateStyle(u,l)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const u=[];for(let l in this._currentKeyframe)u.push(l);return u}mergeTimelineCollectedStyles(u){u._styleSummary.forEach((l,g)=>{const L=this._styleSummary.get(g);(!L||l.time>L.time)&&this._updateStyle(g,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const u=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let L=[];this._keyframes.forEach((me,Ke)=>{const ut=new Map([...this._backFill,...me]);ut.forEach((jt,Ut)=>{jt===Zn.FX?u.add(Ut):jt===Zn.kp&&l.add(Ut)}),g||ut.set("offset",Ke/this.duration),L.push(ut)});const H=[...u.values()],fe=[...l.values()];if(g){const me=L[0],Ke=new Map(me);me.set("offset",0),Ke.set("offset",1),L=[me,Ke]}return Kd(this.element,L,H,fe,this.duration,this.startTime,this.easing,!1)}}class Fu extends Ea{constructor(u,l,g,L,H,fe,me=!1){super(u,l,fe.delay),this.keyframes=g,this.preStyleProps=L,this.postStyleProps=H,this._stretchStartingKeyframe=me,this.timings={duration:fe.duration,delay:fe.delay,easing:fe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let u=this.keyframes,{delay:l,duration:g,easing:L}=this.timings;if(this._stretchStartingKeyframe&&l){const H=[],fe=g+l,me=l/fe,Ke=new Map(u[0]);Ke.set("offset",0),H.push(Ke);const ut=new Map(u[0]);ut.set("offset",Uu(me)),H.push(ut);const jt=u.length-1;for(let Ut=1;Ut<=jt;Ut++){let Qn=new Map(u[Ut]);const On=Qn.get("offset");Qn.set("offset",Uu((l+On*g)/fe)),H.push(Qn)}g=fe,l=0,L="",u=H}return Kd(this.element,u,this.preStyleProps,this.postStyleProps,g,l,L,!0)}}function Uu(p,u=3){const l=Math.pow(10,u-1);return Math.round(p*l)/l}function Wc(p,u,l,g,L,H,fe,me,Ke,ut,jt,Ut,Qn){return{type:0,element:p,triggerName:u,isRemovalTransition:L,fromState:l,fromStyles:H,toState:g,toStyles:fe,timelines:me,queriedElements:Ke,preStyleProps:ut,postStyleProps:jt,totalTime:Ut,errors:Qn}}const ec={};class yl{constructor(u,l,g){this._triggerName=u,this.ast=l,this._stateStyles=g}match(u,l,g,L){return function zd(p,u,l,g,L){return p.some(H=>H(u,l,g,L))}(this.ast.matchers,u,l,g,L)}buildStyles(u,l,g){let L=this._stateStyles.get("*");return void 0!==u&&(L=this._stateStyles.get(u?.toString())||L),L?L.buildStyles(l,g):new Map}build(u,l,g,L,H,fe,me,Ke,ut,jt){const Ut=[],Qn=this.ast.options&&this.ast.options.params||ec,xn=this.buildStyles(g,me&&me.params||ec,Ut),wn=Ke&&Ke.params||ec,Gr=this.buildStyles(L,wn,Ut),pi=new Set,gi=new Map,gs=new Map,Ki="void"===L,Sa={params:Lp(wn,Qn),delay:this.ast.options?.delay},Uo=jt?[]:$c(u,l,this.ast.animation,H,fe,xn,Gr,Sa,ut,Ut);let Hi=0;return Uo.forEach(mi=>{Hi=Math.max(mi.duration+mi.delay,Hi)}),Ut.length?Wc(l,this._triggerName,g,L,Ki,xn,Gr,[],[],gi,gs,Hi,Ut):(Uo.forEach(mi=>{const Ao=mi.element,ba=Ls(gi,Ao,new Set);mi.preStyleProps.forEach(Ca=>ba.add(Ca));const Dl=Ls(gs,Ao,new Set);mi.postStyleProps.forEach(Ca=>Dl.add(Ca)),Ao!==l&&pi.add(Ao)}),Wc(l,this._triggerName,g,L,Ki,xn,Gr,Uo,[...pi.values()],gi,gs,Hi))}}function Lp(p,u){const l={...u};return Object.entries(p).forEach(([g,L])=>{null!=L&&(l[g]=L)}),l}class _m{constructor(u,l,g){this.styles=u,this.defaultParams=l,this.normalizer=g}buildStyles(u,l){const g=new Map,L=Lp(u,this.defaultParams);return this.styles.styles.forEach(H=>{"string"!=typeof H&&H.forEach((fe,me)=>{fe&&(fe=Ql(fe,L,l));const Ke=this.normalizer.normalizePropertyName(me,l);fe=this.normalizer.normalizeStyleValue(me,Ke,fe,l),g.set(me,fe)})}),g}}class Yd{constructor(u,l,g){this.name=u,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states=new Map,l.states.forEach(L=>{this.states.set(L.name,new _m(L.style,L.options&&L.options.params||{},g))}),Gi(this.states,"true","1"),Gi(this.states,"false","0"),l.transitions.forEach(L=>{this.transitionFactories.push(new yl(u,L,this.states))}),this.fallbackTransition=function xp(p,u,l){return new yl(p,{type:Zn.If.Transition,animation:{type:Zn.If.Sequence,steps:[],options:null},matchers:[(fe,me)=>!0],options:null,queryCount:0,depCount:0},u)}(u,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(u,l,g,L){return this.transitionFactories.find(fe=>fe.match(u,l,g,L))||null}matchStyles(u,l,g){return this.fallbackTransition.buildStyles(u,l,g)}}function Gi(p,u,l){p.has(u)?p.has(l)||p.set(l,p.get(u)):p.has(l)&&p.set(u,p.get(l))}const Bu=new ql;class ef{constructor(u,l,g){this.bodyNode=u,this._driver=l,this._normalizer=g,this._animations=new Map,this._playersById=new Map,this.players=[]}register(u,l){const g=[],H=wp(this._driver,l,g,[]);if(g.length)throw function Od(p){return new i.wOt(3503,!1)}();this._animations.set(u,H)}_buildPlayer(u,l,g){const L=u.element,H=Rd(this._normalizer,u.keyframes,l,g);return this._driver.animate(L,H,u.duration,u.delay,u.easing,[],!0)}create(u,l,g={}){const L=[],H=this._animations.get(u);let fe;const me=new Map;if(H?(fe=$c(this._driver,l,H,so,xc,new Map,new Map,g,Bu,L),fe.forEach(jt=>{const Ut=Ls(me,jt.element,new Map);jt.postStyleProps.forEach(Qn=>Ut.set(Qn,null))})):(L.push(function Kh(){return new i.wOt(3300,!1)}()),fe=[]),L.length)throw function wd(p){return new i.wOt(3504,!1)}();me.forEach((jt,Ut)=>{jt.forEach((Qn,On)=>{jt.set(On,this._driver.computeStyle(Ut,On,Zn.kp))})});const ut=ko(fe.map(jt=>{const Ut=me.get(jt.element);return this._buildPlayer(jt,new Map,Ut)}));return this._playersById.set(u,ut),ut.onDestroy(()=>this.destroy(u)),this.players.push(ut),ut}destroy(u){const l=this._getPlayer(u);l.destroy(),this._playersById.delete(u);const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(u){const l=this._playersById.get(u);if(!l)throw function Pc(p){return new i.wOt(3301,!1)}();return l}listen(u,l,g,L){const H=va(l,"","","");return Rc(this._getPlayer(u),g,H,L),()=>{}}command(u,l,g,L){if("register"==g)return void this.register(u,L[0]);if("create"==g)return void this.create(u,l,L[0]||{});const H=this._getPlayer(u);switch(g){case"play":H.play();break;case"pause":H.pause();break;case"reset":H.reset();break;case"restart":H.restart();break;case"finish":H.finish();break;case"init":H.init();break;case"setPosition":H.setPosition(parseFloat(L[0]));break;case"destroy":this.destroy(u)}}}const Vu="ng-animate-queued",vl="ng-animate-disabled",Up=[],Bp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ra="__ng_removed";class Xd{get params(){return this.options.params}constructor(u,l=""){this.namespaceId=l;const g=u&&u.hasOwnProperty("value");if(this.value=function nf(p){return p??null}(g?u.value:u),g){const{value:H,...fe}=u;this.options=fe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(u){const l=u.params;if(l){const g=this.options.params;Object.keys(l).forEach(L=>{null==g[L]&&(g[L]=l[L])})}}}const ju="void",Gc=new Xd(ju);class _l{constructor(u,l,g){this.id=u,this.hostElement=l,this._engine=g,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+u,Fo(l,this._hostClassName)}listen(u,l,g,L){if(!this._triggers.has(l))throw function Au(p,u){return new i.wOt(3302,!1)}();if(null==g||0==g.length)throw function Mc(p){return new i.wOt(3303,!1)}();if(!function $u(p){return"start"==p||"done"==p}(g))throw function bo(p,u){return new i.wOt(3400,!1)}();const H=Ls(this._elementListeners,u,[]),fe={name:l,phase:g,callback:L};H.push(fe);const me=Ls(this._engine.statesByElement,u,new Map);return me.has(l)||(Fo(u,ea),Fo(u,ea+"-"+l),me.set(l,Gc)),()=>{this._engine.afterFlush(()=>{const Ke=H.indexOf(fe);Ke>=0&&H.splice(Ke,1),this._triggers.has(l)||me.delete(l)})}}register(u,l){return!this._triggers.has(u)&&(this._triggers.set(u,l),!0)}_getTrigger(u){const l=this._triggers.get(u);if(!l)throw function bp(p){return new i.wOt(3401,!1)}();return l}trigger(u,l,g,L=!0){const H=this._getTrigger(l),fe=new Zd(this.id,l,u);let me=this._engine.statesByElement.get(u);me||(Fo(u,ea),Fo(u,ea+"-"+l),this._engine.statesByElement.set(u,me=new Map));let Ke=me.get(l);const ut=new Xd(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ut.absorbOptions(Ke.options),me.set(l,ut),Ke||(Ke=Gc),ut.value!==ju&&Ke.value===ut.value){if(!function Cm(p,u){const l=Object.keys(p),g=Object.keys(u);if(l.length!=g.length)return!1;for(let L=0;L<l.length;L++){const H=l[L];if(!u.hasOwnProperty(H)||p[H]!==u[H])return!1}return!0}(Ke.params,ut.params)){const wn=[],Gr=H.matchStyles(Ke.value,Ke.params,wn),pi=H.matchStyles(ut.value,ut.params,wn);wn.length?this._engine.reportError(wn):this._engine.afterFlush(()=>{es(u,Gr),Io(u,pi)})}return}const Qn=Ls(this._engine.playersByElement,u,[]);Qn.forEach(wn=>{wn.namespaceId==this.id&&wn.triggerName==l&&wn.queued&&wn.destroy()});let On=H.matchTransition(Ke.value,ut.value,u,ut.params),xn=!1;if(!On){if(!L)return;On=H.fallbackTransition,xn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:l,transition:On,fromState:Ke,toState:ut,player:fe,isFallbackTransition:xn}),xn||(Fo(u,Vu),fe.onStart(()=>{Hc(u,Vu)})),fe.onDone(()=>{let wn=this.players.indexOf(fe);wn>=0&&this.players.splice(wn,1);const Gr=this._engine.playersByElement.get(u);if(Gr){let pi=Gr.indexOf(fe);pi>=0&&Gr.splice(pi,1)}}),this.players.push(fe),Qn.push(fe),fe}deregister(u){this._triggers.delete(u),this._engine.statesByElement.forEach(l=>l.delete(u)),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(L=>L.name!=u))})}clearElementCache(u){this._engine.statesByElement.delete(u),this._elementListeners.delete(u);const l=this._engine.playersByElement.get(u);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(u))}_signalRemovalForInnerTriggers(u,l){const g=this._engine.driver.query(u,kc,!0);g.forEach(L=>{if(L[ra])return;const H=this._engine.fetchNamespacesByElement(L);H.size?H.forEach(fe=>fe.triggerLeaveAnimation(L,l,!1,!0)):this.clearElementCache(L)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(L=>this.clearElementCache(L)))}triggerLeaveAnimation(u,l,g,L){const H=this._engine.statesByElement.get(u),fe=new Map;if(H){const me=[];if(H.forEach((Ke,ut)=>{if(fe.set(ut,Ke.value),this._triggers.has(ut)){const jt=this.trigger(u,ut,ju,L);jt&&me.push(jt)}}),me.length)return this._engine.markElementAsRemoved(this.id,u,!0,l,fe),g&&ko(me).onDone(()=>this._engine.processLeaveNode(u)),!0}return!1}prepareLeaveAnimationListeners(u){const l=this._elementListeners.get(u),g=this._engine.statesByElement.get(u);if(l&&g){const L=new Set;l.forEach(H=>{const fe=H.name;if(L.has(fe))return;L.add(fe);const Ke=this._triggers.get(fe).fallbackTransition,ut=g.get(fe)||Gc,jt=new Xd(ju),Ut=new Zd(this.id,fe,u);this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:fe,transition:Ke,fromState:ut,toState:jt,player:Ut,isFallbackTransition:!0})})}}removeNode(u,l){const g=this._engine;if(u.childElementCount&&this._signalRemovalForInnerTriggers(u,l),this.triggerLeaveAnimation(u,l,!0))return;let L=!1;if(g.totalAnimations){const H=g.players.length?g.playersByQueriedElement.get(u):[];if(H&&H.length)L=!0;else{let fe=u;for(;fe=fe.parentNode;)if(g.statesByElement.get(fe)){L=!0;break}}}if(this.prepareLeaveAnimationListeners(u),L)g.markElementAsRemoved(this.id,u,!1,l);else{const H=u[ra];(!H||H===Bp)&&(g.afterFlush(()=>this.clearElementCache(u)),g.destroyInnerAnimations(u),g._onRemovalComplete(u,l))}}insertNode(u,l){Fo(u,this._hostClassName)}drainQueuedTransitions(u){const l=[];return this._queue.forEach(g=>{const L=g.player;if(L.destroyed)return;const H=g.element,fe=this._elementListeners.get(H);fe&&fe.forEach(me=>{if(me.name==g.triggerName){const Ke=va(H,g.triggerName,g.fromState.value,g.toState.value);Ke._data=u,Rc(g.player,me.phase,Ke,me.callback)}}),L.markedForDestroy?this._engine.afterFlush(()=>{L.destroy()}):l.push(g)}),this._queue=[],l.sort((g,L)=>{const H=g.transition.ast.depCount,fe=L.transition.ast.depCount;return 0==H||0==fe?H-fe:this._engine.driver.containsElement(g.element,L.element)?1:-1})}destroy(u){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,u)}}class Jd{_onRemovalComplete(u,l){this.onRemovalComplete(u,l)}constructor(u,l,g,L){this.bodyNode=u,this.driver=l,this._normalizer=g,this.scheduler=L,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=(H,fe)=>{}}get queuedPlayers(){const u=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&u.push(g)})}),u}createNamespace(u,l){const g=new _l(u,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[u]=g}_balanceNamespaceList(u,l){const g=this._namespaceList,L=this.namespacesByHostElement;if(g.length-1>=0){let fe=!1,me=this.driver.getParentElement(l);for(;me;){const Ke=L.get(me);if(Ke){const ut=g.indexOf(Ke);g.splice(ut+1,0,u),fe=!0;break}me=this.driver.getParentElement(me)}fe||g.unshift(u)}else g.push(u);return L.set(l,u),u}register(u,l){let g=this._namespaceLookup[u];return g||(g=this.createNamespace(u,l)),g}registerTrigger(u,l,g){let L=this._namespaceLookup[u];L&&L.register(l,g)&&this.totalAnimations++}destroy(u,l){u&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const g=this._fetchNamespace(u);this.namespacesByHostElement.delete(g.hostElement);const L=this._namespaceList.indexOf(g);L>=0&&this._namespaceList.splice(L,1),g.destroy(l),delete this._namespaceLookup[u]}))}_fetchNamespace(u){return this._namespaceLookup[u]}fetchNamespacesByElement(u){const l=new Set,g=this.statesByElement.get(u);if(g)for(let L of g.values())if(L.namespaceId){const H=this._fetchNamespace(L.namespaceId);H&&l.add(H)}return l}trigger(u,l,g,L){if(El(l)){const H=this._fetchNamespace(u);if(H)return H.trigger(l,g,L),!0}return!1}insertNode(u,l,g,L){if(!El(l))return;const H=l[ra];if(H&&H.setForRemoval){H.setForRemoval=!1,H.setForMove=!0;const fe=this.collectedLeaveElements.indexOf(l);fe>=0&&this.collectedLeaveElements.splice(fe,1)}if(u){const fe=this._fetchNamespace(u);fe&&fe.insertNode(l,g)}L&&this.collectEnterElement(l)}collectEnterElement(u){this.collectedEnterElements.push(u)}markElementAsDisabled(u,l){l?this.disabledNodes.has(u)||(this.disabledNodes.add(u),Fo(u,vl)):this.disabledNodes.has(u)&&(this.disabledNodes.delete(u),Hc(u,vl))}removeNode(u,l,g){if(El(l)){this.scheduler?.notify();const L=u?this._fetchNamespace(u):null;L?L.removeNode(l,g):this.markElementAsRemoved(u,l,!1,g);const H=this.namespacesByHostElement.get(l);H&&H.id!==u&&H.removeNode(l,g)}else this._onRemovalComplete(l,g)}markElementAsRemoved(u,l,g,L,H){this.collectedLeaveElements.push(l),l[ra]={namespaceId:u,setForRemoval:L,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:H}}listen(u,l,g,L,H){return El(l)?this._fetchNamespace(u).listen(l,g,L,H):()=>{}}_buildInstruction(u,l,g,L,H){return u.transition.build(this.driver,u.element,u.fromState.value,u.toState.value,g,L,u.fromState.options,u.toState.options,l,H)}destroyInnerAnimations(u){let l=this.driver.query(u,kc,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(u,Ud,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(u){const l=this.playersByElement.get(u);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(u){const l=this.playersByQueriedElement.get(u);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(u=>{if(this.players.length)return ko(this.players).onDone(()=>u());u()})}processLeaveNode(u){const l=u[ra];if(l&&l.setForRemoval){if(u[ra]=Bp,l.namespaceId){this.destroyInnerAnimations(u);const g=this._fetchNamespace(l.namespaceId);g&&g.clearElementCache(u)}this._onRemovalComplete(u,l.setForRemoval)}u.classList?.contains(vl)&&this.markElementAsDisabled(u,!1),this.driver.query(u,".ng-animate-disabled",!0).forEach(g=>{this.markElementAsDisabled(g,!1)})}flush(u=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,L)=>this._balanceNamespaceList(g,L)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;g<this.collectedEnterElements.length;g++)Fo(this.collectedEnterElements[g],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const g=[];try{l=this._flushAnimations(g,u)}finally{for(let L=0;L<g.length;L++)g[L]()}}else for(let g=0;g<this.collectedLeaveElements.length;g++)this.processLeaveNode(this.collectedLeaveElements[g]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(g=>g()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?ko(l).onDone(()=>{g.forEach(L=>L())}):g.forEach(L=>L())}}reportError(u){throw function Gl(p){return new i.wOt(3402,!1)}()}_flushAnimations(u,l){const g=new ql,L=[],H=new Map,fe=[],me=new Map,Ke=new Map,ut=new Map,jt=new Set;this.disabledNodes.forEach($n=>{jt.add($n);const In=this.driver.query($n,".ng-animate-queued",!0);for(let Pn=0;Pn<In.length;Pn++)jt.add(In[Pn])});const Ut=this.bodyNode,Qn=Array.from(this.statesByElement.keys()),On=Wu(Qn,this.collectedEnterElements),xn=new Map;let wn=0;On.forEach(($n,In)=>{const Pn=so+wn++;xn.set(In,Pn),$n.forEach(Er=>Fo(Er,Pn))});const Gr=[],pi=new Set,gi=new Set;for(let $n=0;$n<this.collectedLeaveElements.length;$n++){const In=this.collectedLeaveElements[$n],Pn=In[ra];Pn&&Pn.setForRemoval&&(Gr.push(In),pi.add(In),Pn.hasAnimation?this.driver.query(In,".ng-star-inserted",!0).forEach(Er=>pi.add(Er)):gi.add(In))}const gs=new Map,Ki=Wu(Qn,Array.from(pi));Ki.forEach(($n,In)=>{const Pn=xc+wn++;gs.set(In,Pn),$n.forEach(Er=>Fo(Er,Pn))}),u.push(()=>{On.forEach(($n,In)=>{const Pn=xn.get(In);$n.forEach(Er=>Hc(Er,Pn))}),Ki.forEach(($n,In)=>{const Pn=gs.get(In);$n.forEach(Er=>Hc(Er,Pn))}),Gr.forEach($n=>{this.processLeaveNode($n)})});const Sa=[],Uo=[];for(let $n=this._namespaceList.length-1;$n>=0;$n--)this._namespaceList[$n].drainQueuedTransitions(l).forEach(Pn=>{const Er=Pn.player,Vr=Pn.element;if(Sa.push(Er),this.collectedEnterElements.length){const ts=Vr[ra];if(ts&&ts.setForMove){if(ts.previousTriggersValues&&ts.previousTriggersValues.has(Pn.triggerName)){const Tl=ts.previousTriggersValues.get(Pn.triggerName),Do=this.statesByElement.get(Pn.element);if(Do&&Do.has(Pn.triggerName)){const iu=Do.get(Pn.triggerName);iu.value=Tl,Do.set(Pn.triggerName,iu)}}return void Er.destroy()}}const Si=!Ut||!this.driver.containsElement(Ut,Vr),Ts=gs.get(Vr),Ia=xn.get(Vr),bi=this._buildInstruction(Pn,g,Ia,Ts,Si);if(bi.errors&&bi.errors.length)return void Uo.push(bi);if(Si)return Er.onStart(()=>es(Vr,bi.fromStyles)),Er.onDestroy(()=>Io(Vr,bi.toStyles)),void L.push(Er);if(Pn.isFallbackTransition)return Er.onStart(()=>es(Vr,bi.fromStyles)),Er.onDestroy(()=>Io(Vr,bi.toStyles)),void L.push(Er);const Ef=[];bi.timelines.forEach(ts=>{ts.stretchStartingKeyframe=!0,this.disabledNodes.has(ts.element)||Ef.push(ts)}),bi.timelines=Ef,g.append(Vr,bi.timelines),fe.push({instruction:bi,player:Er,element:Vr}),bi.queriedElements.forEach(ts=>Ls(me,ts,[]).push(Er)),bi.preStyleProps.forEach((ts,Tl)=>{if(ts.size){let Do=Ke.get(Tl);Do||Ke.set(Tl,Do=new Set),ts.forEach((iu,Ya)=>Do.add(Ya))}}),bi.postStyleProps.forEach((ts,Tl)=>{let Do=ut.get(Tl);Do||ut.set(Tl,Do=new Set),ts.forEach((iu,Ya)=>Do.add(Ya))})});if(Uo.length){const $n=[];Uo.forEach(In=>{$n.push(function Kl(p,u){return new i.wOt(3505,!1)}())}),Sa.forEach(In=>In.destroy()),this.reportError($n)}const Hi=new Map,mi=new Map;fe.forEach($n=>{const In=$n.element;g.has(In)&&(mi.set(In,In),this._beforeAnimationBuild($n.player.namespaceId,$n.instruction,Hi))}),L.forEach($n=>{const In=$n.element;this._getPreviousPlayers(In,!1,$n.namespaceId,$n.triggerName,null).forEach(Er=>{Ls(Hi,In,[]).push(Er),Er.destroy()})});const Ao=Gr.filter($n=>af($n,Ke,ut)),ba=new Map;rf(ba,this.driver,gi,ut,Zn.kp).forEach($n=>{af($n,Ke,ut)&&Ao.push($n)});const Ca=new Map;On.forEach(($n,In)=>{rf(Ca,this.driver,new Set($n),Ke,Zn.FX)}),Ao.forEach($n=>{const In=ba.get($n),Pn=Ca.get($n);ba.set($n,new Map([...In?.entries()??[],...Pn?.entries()??[]]))});const Xu=[],ru=[],_f={};fe.forEach($n=>{const{element:In,player:Pn,instruction:Er}=$n;if(g.has(In)){if(jt.has(In))return Pn.onDestroy(()=>Io(In,Er.toStyles)),Pn.disabled=!0,Pn.overrideTotalTime(Er.totalTime),void L.push(Pn);let Vr=_f;if(mi.size>1){let Ts=In;const Ia=[];for(;Ts=Ts.parentNode;){const bi=mi.get(Ts);if(bi){Vr=bi;break}Ia.push(Ts)}Ia.forEach(bi=>mi.set(bi,Vr))}const Si=this._buildAnimation(Pn.namespaceId,Er,Hi,H,Ca,ba);if(Pn.setRealPlayer(Si),Vr===_f)Xu.push(Pn);else{const Ts=this.playersByElement.get(Vr);Ts&&Ts.length&&(Pn.parentPlayer=ko(Ts)),L.push(Pn)}}else es(In,Er.fromStyles),Pn.onDestroy(()=>Io(In,Er.toStyles)),ru.push(Pn),jt.has(In)&&L.push(Pn)}),ru.forEach($n=>{const In=H.get($n.element);if(In&&In.length){const Pn=ko(In);$n.setRealPlayer(Pn)}}),L.forEach($n=>{$n.parentPlayer?$n.syncPlayerEvents($n.parentPlayer):$n.destroy()});for(let $n=0;$n<Gr.length;$n++){const In=Gr[$n],Pn=In[ra];if(Hc(In,xc),Pn&&Pn.hasAnimation)continue;let Er=[];if(me.size){let Si=me.get(In);Si&&Si.length&&Er.push(...Si);let Ts=this.driver.query(In,Ud,!0);for(let Ia=0;Ia<Ts.length;Ia++){let bi=me.get(Ts[Ia]);bi&&bi.length&&Er.push(...bi)}}const Vr=Er.filter(Si=>!Si.destroyed);Vr.length?Sm(this,In,Vr):this.processLeaveNode(In)}return Gr.length=0,Xu.forEach($n=>{this.players.push($n),$n.onDone(()=>{$n.destroy();const In=this.players.indexOf($n);this.players.splice(In,1)}),$n.play()}),Xu}afterFlush(u){this._flushFns.push(u)}afterFlushAnimationsDone(u){this._whenQuietFns.push(u)}_getPreviousPlayers(u,l,g,L,H){let fe=[];if(l){const me=this.playersByQueriedElement.get(u);me&&(fe=me)}else{const me=this.playersByElement.get(u);if(me){const Ke=!H||H==ju;me.forEach(ut=>{ut.queued||!Ke&&ut.triggerName!=L||fe.push(ut)})}}return(g||L)&&(fe=fe.filter(me=>!(g&&g!=me.namespaceId||L&&L!=me.triggerName))),fe}_beforeAnimationBuild(u,l,g){const H=l.element,fe=l.isRemovalTransition?void 0:u,me=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ut=Ke.element,jt=ut!==H,Ut=Ls(g,ut,[]);this._getPreviousPlayers(ut,jt,fe,me,l.toState).forEach(On=>{const xn=On.getRealPlayer();xn.beforeDestroy&&xn.beforeDestroy(),On.destroy(),Ut.push(On)})}es(H,l.fromStyles)}_buildAnimation(u,l,g,L,H,fe){const me=l.triggerName,Ke=l.element,ut=[],jt=new Set,Ut=new Set,Qn=l.timelines.map(xn=>{const wn=xn.element;jt.add(wn);const Gr=wn[ra];if(Gr&&Gr.removedBeforeQueried)return new Zn.sf(xn.duration,xn.delay);const pi=wn!==Ke,gi=function bm(p){const u=[];return sf(p,u),u}((g.get(wn)||Up).map(Hi=>Hi.getRealPlayer())).filter(Hi=>!!Hi.element&&Hi.element===wn),gs=H.get(wn),Ki=fe.get(wn),Sa=Rd(this._normalizer,xn.keyframes,gs,Ki),Uo=this._buildPlayer(xn,Sa,gi);if(xn.subTimeline&&L&&Ut.add(wn),pi){const Hi=new Zd(u,me,wn);Hi.setRealPlayer(Uo),ut.push(Hi)}return Uo});ut.forEach(xn=>{Ls(this.playersByQueriedElement,xn.element,[]).push(xn),xn.onDone(()=>function tf(p,u,l){let g=p.get(u);if(g){if(g.length){const L=g.indexOf(l);g.splice(L,1)}0==g.length&&p.delete(u)}return g}(this.playersByQueriedElement,xn.element,xn))}),jt.forEach(xn=>Fo(xn,Dp));const On=ko(Qn);return On.onDestroy(()=>{jt.forEach(xn=>Hc(xn,Dp)),Io(Ke,l.toStyles)}),Ut.forEach(xn=>{Ls(L,xn,[]).push(On)}),On}_buildPlayer(u,l,g){return l.length>0?this.driver.animate(u.element,l,u.duration,u.delay,u.easing,g):new Zn.sf(u.duration,u.delay)}}class Zd{constructor(u,l,g){this.namespaceId=u,this.triggerName=l,this.element=g,this._player=new Zn.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(u){this._containsRealPlayer||(this._player=u,this._queuedCallbacks.forEach((l,g)=>{l.forEach(L=>Rc(u,g,void 0,L))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(u.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(u){this.totalTime=u}syncPlayerEvents(u){const l=this._player;l.triggerCallback&&u.onStart(()=>l.triggerCallback("start")),u.onDone(()=>this.finish()),u.onDestroy(()=>this.destroy())}_queueEvent(u,l){Ls(this._queuedCallbacks,u,[]).push(l)}onDone(u){this.queued&&this._queueEvent("done",u),this._player.onDone(u)}onStart(u){this.queued&&this._queueEvent("start",u),this._player.onStart(u)}onDestroy(u){this.queued&&this._queueEvent("destroy",u),this._player.onDestroy(u)}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(u){this.queued||this._player.setPosition(u)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(u){const l=this._player;l.triggerCallback&&l.triggerCallback(u)}}function El(p){return p&&1===p.nodeType}function Kc(p,u){const l=p.style.display;return p.style.display=u??"none",l}function rf(p,u,l,g,L){const H=[];l.forEach(Ke=>H.push(Kc(Ke)));const fe=[];g.forEach((Ke,ut)=>{const jt=new Map;Ke.forEach(Ut=>{const Qn=u.computeStyle(ut,Ut,L);jt.set(Ut,Qn),(!Qn||0==Qn.length)&&(ut[ra]=Vp,fe.push(ut))}),p.set(ut,jt)});let me=0;return l.forEach(Ke=>Kc(Ke,H[me++])),fe}function Wu(p,u){const l=new Map;if(p.forEach(me=>l.set(me,[])),0==u.length)return l;const L=new Set(u),H=new Map;function fe(me){if(!me)return 1;let Ke=H.get(me);if(Ke)return Ke;const ut=me.parentNode;return Ke=l.has(ut)?ut:L.has(ut)?1:fe(ut),H.set(me,Ke),Ke}return u.forEach(me=>{const Ke=fe(me);1!==Ke&&l.get(Ke).push(me)}),l}function Fo(p,u){p.classList?.add(u)}function Hc(p,u){p.classList?.remove(u)}function Sm(p,u,l){ko(l).onDone(()=>p.processLeaveNode(u))}function sf(p,u){for(let l=0;l<p.length;l++){const g=p[l];g instanceof Zn.ui?sf(g.players,u):u.push(g)}}function af(p,u,l){const g=l.get(p);if(!g)return!1;let L=u.get(p);return L?g.forEach(H=>L.add(H)):u.set(p,g),l.delete(p),!0}class tc{constructor(u,l,g,L){this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(H,fe)=>{},this._transitionEngine=new Jd(u.body,l,g,L),this._timelineEngine=new ef(u.body,l,g),this._transitionEngine.onRemovalComplete=(H,fe)=>this.onRemovalComplete(H,fe)}registerTrigger(u,l,g,L,H){const fe=u+"-"+L;let me=this._triggerCache[fe];if(!me){const Ke=[],jt=wp(this._driver,H,Ke,[]);if(Ke.length)throw function ii(p,u){return new i.wOt(3404,!1)}();me=function Qd(p,u,l){return new Yd(p,u,l)}(L,jt,this._normalizer),this._triggerCache[fe]=me}this._transitionEngine.registerTrigger(l,L,me)}register(u,l){this._transitionEngine.register(u,l)}destroy(u,l){this._transitionEngine.destroy(u,l)}onInsert(u,l,g,L){this._transitionEngine.insertNode(u,l,g,L)}onRemove(u,l,g){this._transitionEngine.removeNode(u,l,g)}disableAnimations(u,l){this._transitionEngine.markElementAsDisabled(u,l)}process(u,l,g,L){if("@"==g.charAt(0)){const[H,fe]=Co(g);this._timelineEngine.command(H,l,fe,L)}else this._transitionEngine.trigger(u,l,g,L)}listen(u,l,g,L,H){if("@"==g.charAt(0)){const[fe,me]=Co(g);return this._timelineEngine.listen(fe,l,me,H)}return this._transitionEngine.listen(u,l,g,L,H)}flush(u=-1){this._transitionEngine.flush(u)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(u){this._transitionEngine.afterFlushAnimationsDone(u)}}class qd{static{this.initialStylesByElement=new WeakMap}constructor(u,l,g){this._element=u,this._startStyles=l,this._endStyles=g,this._state=0;let L=qd.initialStylesByElement.get(u);L||qd.initialStylesByElement.set(u,L=new Map),this._initialStyles=L}start(){this._state<1&&(this._startStyles&&Io(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Io(this._element,this._initialStyles),this._endStyles&&(Io(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qd.initialStylesByElement.delete(this._element),this._startStyles&&(es(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(es(this._element,this._endStyles),this._endStyles=null),Io(this._element,this._initialStyles),this._state=3)}}const cf="@.disabled";class eh{constructor(u,l,g,L){this.namespaceId=u,this.delegate=l,this.engine=g,this._onDestroy=L,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(u){this.delegate.destroyNode?.(u)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(u,l){return this.delegate.createElement(u,l)}createComment(u){return this.delegate.createComment(u)}createText(u){return this.delegate.createText(u)}appendChild(u,l){this.delegate.appendChild(u,l),this.engine.onInsert(this.namespaceId,l,u,!1)}insertBefore(u,l,g,L=!0){this.delegate.insertBefore(u,l,g),this.engine.onInsert(this.namespaceId,l,u,L)}removeChild(u,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate)}selectRootElement(u,l){return this.delegate.selectRootElement(u,l)}parentNode(u){return this.delegate.parentNode(u)}nextSibling(u){return this.delegate.nextSibling(u)}setAttribute(u,l,g,L){this.delegate.setAttribute(u,l,g,L)}removeAttribute(u,l,g){this.delegate.removeAttribute(u,l,g)}addClass(u,l){this.delegate.addClass(u,l)}removeClass(u,l){this.delegate.removeClass(u,l)}setStyle(u,l,g,L){this.delegate.setStyle(u,l,g,L)}removeStyle(u,l,g){this.delegate.removeStyle(u,l,g)}setProperty(u,l,g){"@"==l.charAt(0)&&l==cf?this.disableAnimations(u,!!g):this.delegate.setProperty(u,l,g)}setValue(u,l){this.delegate.setValue(u,l)}listen(u,l,g){return this.delegate.listen(u,l,g)}disableAnimations(u,l){this.engine.disableAnimations(u,l)}}class $p extends eh{constructor(u,l,g,L,H){super(l,g,L,H),this.factory=u,this.namespaceId=l}setProperty(u,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==cf?this.disableAnimations(u,g=void 0===g||!!g):this.engine.process(this.namespaceId,u,l.slice(1),g):this.delegate.setProperty(u,l,g)}listen(u,l,g){if("@"==l.charAt(0)){const L=function Wp(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(u);let H=l.slice(1),fe="";return"@"!=H.charAt(0)&&([H,fe]=function Gu(p){const u=p.indexOf(".");return[p.substring(0,u),p.slice(u+1)]}(H)),this.engine.listen(this.namespaceId,L,H,fe,me=>{this.factory.scheduleListenerCallback(me._data||-1,g,me)})}return this.delegate.listen(u,l,g)}}class uf{constructor(u,l,g){this.delegate=u,this.engine=l,this._zone=g,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,l.onRemovalComplete=(L,H)=>{const fe=H?.parentNode(L);fe&&H.removeChild(fe,L)}}createRenderer(u,l){const L=this.delegate.createRenderer(u,l);if(!u||!l?.data?.animation){const ut=this._rendererCache;let jt=ut.get(L);return jt||(jt=new eh("",L,this.engine,()=>ut.delete(L)),ut.set(L,jt)),jt}const H=l.id,fe=l.id+"-"+this._currentId;this._currentId++,this.engine.register(fe,u);const me=ut=>{Array.isArray(ut)?ut.forEach(me):this.engine.registerTrigger(H,fe,u,ut.name,ut)};return l.data.animation.forEach(me),new $p(this,fe,L,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,l,g){if(u>=0&&u<this._microtaskId)return void this._zone.run(()=>l(g));const L=this._animationCallbacksBuffer;0==L.length&&queueMicrotask(()=>{this._zone.run(()=>{L.forEach(H=>{const[fe,me]=H;fe(me)}),this._animationCallbacksBuffer=[]})}),L.push([l,g])}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()}}const Qc=[{provide:Ou,useFactory:function df(){return new gl}},{provide:tc,useClass:(()=>{class p extends tc{constructor(l,g,L){super(l,g,L,(0,i.WQX)(i.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(Oi.qQ),i.KVO(Wa),i.KVO(Ou))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac})}}return p})()},{provide:i._9s,useFactory:function Dm(p,u,l){return new uf(p,u,l)},deps:[sn.B7,tc,i.SKi]}],Yc=[{provide:Wa,useClass:Tu},{provide:i.bc$,useValue:"NoopAnimations"},...Qc];var Xc=s(64926),th=s(27473);const Jc=new i.nKC("DevtoolsOptions");let nh=(()=>{class p{constructor(l,g){this.ngZone=l,this.options=g,(0,A.hW)(this.ngZone,this.options)}}return p.\u0275fac=function(l){return new(l||p)(i.KVO(i.SKi),i.KVO(Jc))},p.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Hu(){}function ff(p){return Hu}let rh=(()=>{class p{static forRoot(l){return{ngModule:p,providers:[{provide:Jc,useValue:l},{provide:i.hnV,useFactory:ff,deps:[nh],multi:!0}]}}}return p.\u0275fac=function(l){return new(l||p)},p.\u0275mod=i.$C({type:p}),p.\u0275inj=i.G2t({}),p})();var oo=s(60602);let pf=(()=>{class p{constructor(l,g,L){this.injector=l,this.googleAnalyticsService=g,this.akitaRouterQuery=L,this.isBrowser=this.akitaRouterQuery.isBrowser}handleError(l){let g=null,L=null;try{L=this.injector.get(ui.nX),g=this.injector.get(ui.Ix)}catch{}let H=L?.snapshot;for(;H?.firstChild;)H=H.firstChild;const fe=H?.data||{};l instanceof oo.yz?this.isBrowser&&navigator&&!navigator.onLine?(this.googleAnalyticsService.appException(`[ ${l.name} ] ${l.message}`,"network",`${l.status}`,!1,fe.analyticsName),this.reportError(l),g&&g.navigate(["/offline"]).catch(me=>{console.log(me)})):0!==l.status&&l.status>=lr.k.INTERNAL_SERVER_ERROR&&(this.googleAnalyticsService.appException(`[ ${l.name} ] ${l.message}`,"network",`${l.status}`,!1,fe.analyticsName),this.reportError(new Error(`Status: ${l.status}\nName: ${l.name}\n Message: ${l.message}\n URL: ${l.url}`)),g&&g.navigate(["/error"],{queryParams:{code:l.status}}).catch(me=>{console.log(me)})):(this.googleAnalyticsService.appException(`[ ${l?.name||""} ] ${l?.message||""}`,"application",`${l?.status||""}`,!1,fe.analyticsName),this.reportError(l))}reportError(l){E.c.reportToSentry?(y.gU.reportException(l?.originalError||l,!1),E.c.sentryAskFeedback&&function fd(p={},u=(0,se.BF)()){var l=(0,Qt.V)();if(!l.document)return void((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("Global document not defined in showReportDialog call"));const{client:g,scope:L}=u.getStackTop();var H=p.dsn||g&&g.getDsn();if(H){L&&(p.user={...L.getUser(),...p.user}),p.eventId||(p.eventId=u.lastEventId());var fe=l.document.createElement("script");fe.async=!0,fe.src=function Wt(p,u){var l=Xe(p),g=`${We(l)}embed/error-page/`;let L=`dsn=${oe(l)}`;for(var H in u)if("dsn"!==H)if("user"===H){var fe=u.user;if(!fe)continue;fe.name&&(L+=`&name=${encodeURIComponent(fe.name)}`),fe.email&&(L+=`&email=${encodeURIComponent(fe.email)}`)}else L+=`&${encodeURIComponent(H)}=${encodeURIComponent(u[H])}`;return`${g}?${L}`}(H,p),p.onLoad&&(fe.onload=p.onLoad);var me=l.document.head||l.document.body;me?me.appendChild(fe):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("Not injecting report dialog. No injection point found in HTML")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.error("DSN not configured for showReportDialog call")}()):console.error(l)}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.zZn),i.KVO(mo.p),i.KVO(os.O))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var gf=s(58977),Hp=s(97216),Zc=s(91002),ic=s(95212),zp=s(40676),sh=s(68007);const Om=[lr.k.BAD_REQUEST,lr.k.UNAUTHORIZED,lr.k.PAYMENT_REQUIRED,lr.k.FORBIDDEN,lr.k.NOT_FOUND,lr.k.METHOD_NOT_ALLOWED,lr.k.NOT_ACCEPTABLE,lr.k.PROXY_AUTHENTICATION_REQUIRED,lr.k.GONE,lr.k.LENGTH_REQUIRED,lr.k.PRECONDITION_FAILED,lr.k.PAYLOAD_TOO_LARGE,lr.k.URI_TOO_LONG,lr.k.UNSUPPORTED_MEDIA_TYPE,lr.k.RANGE_NOT_SATISFIABLE,lr.k.EXPECTATION_FAILED,lr.k.MISDIRECTED_REQUEST,lr.k.UNPROCESSABLE_ENTITY,lr.k.FAILED_DEPENDENCY,lr.k.PRECONDITION_REQUIRED,lr.k.REQUEST_HEADER_FIELDS_TOO_LARGE,lr.k.UNAVAILABLE_FOR_LEGAL_REASONS,lr.k.TOO_MANY_REQUESTS,lr.k.NOT_IMPLEMENTED,lr.k.HTTP_VERSION_NOT_SUPPORTED,lr.k.VARIANT_ALSO_NEGOTIATES,lr.k.INSUFFICIENT_STORAGE,lr.k.LOOP_DETECTED,lr.k.NOT_EXTENDED,lr.k.NETWORK_AUTHENTICATION_REQUIRED];class bl{static handle(u,l,g){return u=u??3,function ih(p){return(0,Hp.N)((u,l)=>{let g,H,L=!1;const fe=()=>{g=u.subscribe((0,Zc._)(l,void 0,void 0,me=>{H||(H=new Ws.B,p(H).subscribe((0,Zc._)(l,()=>g?fe():L=!0))),H&&H.next(me)})),L&&(g.unsubscribe(),g=null,L=!1,fe())};fe()})}(L=>L.pipe((0,il.n)((H,fe)=>{const me=bl.getStats(),Ke=new Date,ut=me.lastErrorTime?new Date(me.lastErrorTime):null;if(ut&&Ke.getTime()-ut.getTime()>6e4)me.errorCount=0,me.lastErrorTime=new Date;else if(me.errorCount=me.errorCount||0,me.errorCount+=1,me.lastErrorTime=new Date,me.errorCount>20)return me.onHold=!0,me.dateOnHold=new Date,bl.updateStats(me),(0,ic.$)(()=>H);return bl.updateStats(me),console.log(H),l&&l instanceof Function&&!l(H,me)||H&&(-1!==Om.indexOf(H.status)||H.status>0&&H.status<lr.k.BAD_REQUEST)||u&&fe===u-1?(0,ic.$)(()=>H):(g&&g(H,u||0),(0,to.of)(H))}),(0,zp.o)((H,fe)=>{const me=(fe+1)*(fe+1)*300;return console.log(`Failed API Call, Retry in ${me}ms`),(0,sh.O)(me)})))}static getStats(){try{const u=localStorage.getItem("network_errors")||"{}";return JSON.parse(u)}catch{return{errorCount:0,lastErrorTime:null,onHold:!1,dateOnHold:null}}}static updateStats(u){if(u)try{localStorage.setItem("network_errors",JSON.stringify(u))}catch{}}static get tooManyErrors(){const u=new Date,l=bl.getStats(),g=l.dateOnHold?new Date(l.dateOnHold):null;return!!(l.onHold&&g&&u.getTime()-g.getTime()<6e4)||(l.errorCount=0,l.lastErrorTime=new Date,l.onHold=!1,l.dateOnHold=null,bl.updateStats(l),!1)}}var eu=s(24738),wm=s(18745);const zu=["viacep.com.br"],tu=["popsy.zendesk.com"];let Pm=(()=>{class p{constructor(l,g,L,H){this.injector=l,this.googleAnalyticsService=g,this.apiCallsTrackerService=L,this.platformId=H,this.NO_CACHE_RAND_NUMBER=1e9,this.sessionId=`${eu.VV.hashStr((0,A.Os)(),!1)}`.slice(0,6),this.isBrowser=(0,Oi.UE)(this.platformId)}intercept(l,g){try{this.akitaAuthService=this.injector.get(Jo.M)}catch{this.akitaAuthService=null}try{this.akitaAuthQuery=this.injector.get(hs.P)}catch{this.akitaAuthQuery=null}if(bl.tooManyErrors)return gf.w;const L=l.headers;let H=l.params;this.akitaAuthQuery?.sessionId&&this.sessionId!==this.akitaAuthQuery?.sessionId&&(this.sessionId=this.akitaAuthQuery.sessionId),this.sessionId&&this.akitaAuthService?.setSessionId&&-1===l.url.indexOf("/api/v2/product")&&(this.akitaAuthService.setSessionId(`${this.sessionId}`),H.get("psid")&&H.delete("psid"),H=H.set("psid",`${this.sessionId}`));let fe={headers:L,params:H,withCredentials:!0};for(const Ke of zu)if(-1!==l.url.indexOf(Ke)){fe={headers:L,params:H,withCredentials:!1};break}for(const Ke of tu)if(-1!==l.url.indexOf(Ke)){fe.withCredentials=void 0;break}const me=l.clone(fe);return E.c.reportToSentry&&(0,Dr.PN)(Ke=>{Ke.setTag("http:lastHttpCall:method",l.method),Ke.setTag("http:lastHttpCall",l.url)}),this.apiCallsTrackerService.addApiCall(`[${l.method.toUpperCase()}] ${l.url}`),this.retryAPICall(l,g,me)}retryAPICall(l,g,L){return g.handle(L).pipe((0,Mo.M)({next:H=>{H&&H.type===oo.hv.Response&&(this.apiCallsTrackerService.removeApiCall(`[${l.method.toUpperCase()}] ${l.url}`),this.isBrowser||console.log(JSON.stringify({httpRequest:{requestMethod:`${l?.method||"??"}`,requestUrl:`${l.urlWithParams||l?.url||"??"}`,status:`${H?.status||"??"}`,statusText:H?.statusText||void 0,psid:`${this.sessionId}`},severity:H?.ok?"INFO":"ERROR",labels:{psid:`${this.sessionId}`,statusText:H?.statusText||void 0}})))},error:H=>{const fe=H;if(this.apiCallsTrackerService.removeApiCall(`[${l.method.toUpperCase()}] ${l.url}`),this.isBrowser||console.log(JSON.stringify({httpRequest:{requestMethod:`${l?.method||"??"}`,requestUrl:`${l.urlWithParams||l?.url||"??"}`,status:`${fe?.status||fe?.error?.status||"??"}`,psid:`${this.sessionId}`},severity:"ERROR",labels:{psid:`${this.sessionId}`}})),-1===l.url.indexOf("/users/me/conversations"))if((0,Dr.PN)(me=>{me.setTag("http:failedHttpCall:method",l.method),me.setTag("http:failedHttpCall",l.url)}),this.akitaAuthService&&fe&&(fe.status===lr.k.UNAUTHORIZED||fe.error&&fe.error.status===lr.k.UNAUTHORIZED)&&this.akitaAuthService.renewSession(),fe.error instanceof Error)y.gU.addBreadcrumb({category:"network",message:`Error: "${fe.error.message}" (Status: ${fe?.error?.status||"??"})`,level:"error",type:"http"}),y.gU.reportException(fe,!1,()=>me=>{this.googleAnalyticsService.appException(me,"network",`${fe?.error?.status||"-"}`,!1,"HTTP_INTERCEPTOR","ErrorHttpInterceptor -> retryAPICall")});else if(H instanceof oo.yz){if(-1!==(l.url||"").indexOf("/assets/i18n/")&&H.status===lr.k.NOT_FOUND)return void console.warn(`The language "${l.url}" is not available (Falling back to English)`);y.gU.addBreadcrumb({category:"network",message:`HttpErrorResponse (${H.status})-{ ${H.name} } Message { ${H.message} }`,level:"error",type:"http"}),-1!==(H.message||"").indexOf("Loading chunk")&&console.warn("There was a network error, browser tab might need a refresh."),y.gU.reportException(H,!1,()=>me=>{this.googleAnalyticsService.appException(me,"network",`${H?.status||"-"}`,!1,"HTTP_INTERCEPTOR","ErrorHttpInterceptor -> retryAPICall")})}else y.gU.reportException(H,!1,()=>me=>{this.googleAnalyticsService.appException(me,"network",`${fe?.status||"-"}`,!1,"HTTP_INTERCEPTOR","ErrorHttpInterceptor -> retryAPICall")})}}))}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.zZn),i.KVO(mo.p),i.KVO(wm.F),i.KVO(i.Agw))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var Qu=s(49283);let vf=(()=>{class p{constructor(l,g){this.injector=l,this.akitaAuthQuery=g,this.refreshSubject=new Ws.B}ifTokenExpired(l){return l.add(this.refreshSubject.subscribe({error:g=>{g&&y.gU.reportException(g,!1)},complete:()=>{this.refreshSubject=new Ws.B}})),1===this.refreshSubject.observers.length&&(this.akitaAuthService?l.add(this.akitaAuthService.renewSessionSync().subscribe(this.refreshSubject)):this.refreshSubject.error(new Error("AkitaAuthService not available"))),this.refreshSubject}checkTokenExpiryError(l){return!(!l.status||l.status!==lr.k.UNAUTHORIZED||!l.error||"TokenExpired"!==l.error.message)}intercept(l,g){try{this.akitaAuthService=this.injector.get(Jo.M)}catch{this.akitaAuthService=null}return l.url.endsWith("/logout")?g.handle(l):this.performApiCall(l,g)}performApiCall(l,g){return g.handle(l).pipe((0,Qu.W)((L,H)=>{if(L instanceof oo.yz){if(this.checkTokenExpiryError(L)){const fe=new Cs.yU;return this.ifTokenExpired(fe).pipe((0,il.n)(()=>g.handle(this.updateHeader(l)).pipe((0,Mo.M)(()=>{fe&&fe.unsubscribe()}))))}return(0,ic.$)(()=>L)}return H}))}updateHeader(l){const g=this.akitaAuthQuery.accessToken;return g&&-1!==`${l?.headers?.get("Authorization")||""}`.indexOf("Basic")?l.clone({headers:l.headers.set("Authorization",`Bearer ${g}`)}):l.clone()}static{this.\u0275fac=function(g){return new(g||p)(i.KVO(i.zZn),i.KVO(hs.P))}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})(),Cl=(()=>{class p{preload(l,g){return l?.data?.preload?g():(0,to.of)(null)}static{this.\u0275fac=function(g){return new(g||p)}}static{this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();const Il="Angular Bootstrap",sc=`${Il} - Start`,oc=`${Il} - End`,Al="Init Sentry",ac=`${Al} - Start`,Qa=`${Al} - End`;try{window&&!window.IS_SERVER&&E.c.reportToSentry&&(f.w.createMark(ac),function da(p={}){if(void 0===p.defaultIntegrations&&(p.defaultIntegrations=Fl),void 0===p.release){var u=(0,Qt.V)();u.SENTRY_RELEASE&&u.SENTRY_RELEASE.id&&(p.release=u.SENTRY_RELEASE.id)}void 0===p.autoSessionTracking&&(p.autoSessionTracking=!0),void 0===p.sendClientReports&&(p.sendClientReports=!0);var l={...p,stackParser:At(p.stackParser||$o),integrations:Z(p),transport:p.transport||(Fn()?Ko:wa)};(function re(p,u){!0===u.debug&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?S.vF.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var l=(0,se.BF)(),g=l.getScope();g&&g.update(u.initialScope);var L=new p(u);l.bindClient(L)})(rn,l),p.autoSessionTracking&&function ha(){if(typeof(0,Qt.V)().document>"u")(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&S.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");else{var l=(0,se.BF)();l.captureSession&&(Bl(l),Mt("history",({from:g,to:L})=>{void 0===g||g===L||Bl((0,se.BF)())}))}}()}({maxBreadcrumbs:80,dsn:E.c.sentryUrl,integrations:[],tracesSampleRate:.2,attachStacktrace:!0,release:E.c.app.version,environment:E.c.name,enabled:E.c.reportToSentry,debug:"dev"===E.c.name||"ssr"===E.c.name||"test"===E.c.name,ignoreErrors:y.LD,beforeSend:p=>y.gU.filteredError(p),beforeBreadcrumb:p=>p}),f.w.createMark(Qa),f.w.measure(Al,ac,Qa))}catch{}f.w.createMark(sc),(0,A.PN)({resettable:!0}),E.c.production&&((0,i.SmG)(),(0,A.Af)());try{D().config({name:"Popsy",version:1,storeName:"state"})}catch{}function lh(p){E.c.production||console.error(p),y.gU.reportException(p,!1),f.w.createMark(oc),f.w.measure(Il,sc,oc)}(0,A.gz)({include:["auth","location","screen","categories","firebase","listings","user-reviews","users","navigation","delivery-onboarding"],preStorageUpdateOperator:()=>(0,b.B)(2e3),preStoreUpdate:(p,u)=>{let l=u;return l&&"location"===p&&(l={...l,currentLocation:null}),l}});const Mm=[(0,i.oKB)(Fh.forRoot(Cu),di.Q8,E.c.production?[]:[rh.forRoot({name:"Popsy Frontend",maxAge:100,actionsBlacklist:["GET_CONVERSATION","GET_CONVERSATIONS_STARTE","GET_CONVERSATIONS_SUCCES","GET_CONVERSATION_MESSAGE","GET_CONVERSATION_STARTED","GET_CONVERSATION_SUCCESS"],logTrace:!0,shallow:!0})],Zo.u7.forRoot({player:function ah(){return s.e(3243).then(s.t.bind(s,33243,23))}}),Zo.kp.forRoot()),Cl,sn.hE,{provide:i.sZ2,useValue:"popsy-frontend"},{provide:oo.a7,useClass:vf,multi:!0},{provide:oo.a7,useClass:Pm,multi:!0},{provide:i.zcH,useClass:E.c.production?pf:i.zcH},{provide:Jc,useValue:{shallow:!1}},(0,di.$o)({config:{availableLangs:["en","ar"],defaultLang:"en",reRenderOnLangChange:!0,prodMode:E.c.production,fallbackLang:["en","ar"],failedRetries:1,missingHandler:{useFallbackTranslation:!0,allowEmpty:!0,logMissingKey:!1},flatten:{aot:E.c.production}},loader:Xc.c}),{provide:di.WZ,useClass:class rc{handle(u,l,g){const L=l?.activeLang||"";if(!0!==Xc.F.includes(L)){const H=u.replace(`${L}.`,"");let fe=th[H];const me=Object.keys(g||{});if(me.length>0)for(const Ke of me){const ut=`{{${Ke||""}}}`.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),jt=new RegExp(ut,"g");fe=`${fe||""}`.replace(jt,`${g[Ke]||""}`)}return fe}return u}}},(0,oo.$R)((0,oo.Sx)()),function hf(){return[...Yc]}(),(0,ui.lh)(Ba,(0,ui.nH)(console.error),(0,ui.Sn)(Cl),(0,ui.Zy)(),(0,ui.oH)({anchorScrolling:"enabled"}),(0,ui.Ii)({paramsInheritanceStrategy:"always"}))],nu=()=>{(0,sn.B8)(Oc,{providers:Mm}).then(()=>{f.w.createMark(oc),f.w.measure(Il,sc,oc)}).catch(lh)};"complete"===document.readyState?nu():document.addEventListener("DOMContentLoaded",nu)},66257:(it,ge,s)=>{"use strict";function i(y,A,M,D,b,f,S){try{var O=y[f](S),C=O.value}catch(_){return void M(_)}O.done?A(C):Promise.resolve(C).then(D,b)}function E(y){return function(){var A=this,M=arguments;return new Promise(function(D,b){var f=y.apply(A,M);function S(C){i(f,D,b,S,O,"next",C)}function O(C){i(f,D,b,S,O,"throw",C)}S(void 0)})}}s.d(ge,{A:()=>E})},47701:(it,ge,s)=>{"use strict";function A(oe,Ee){var Pe={};for(var $e in oe)Object.prototype.hasOwnProperty.call(oe,$e)&&Ee.indexOf($e)<0&&(Pe[$e]=oe[$e]);if(null!=oe&&"function"==typeof Object.getOwnPropertySymbols){var Xe=0;for($e=Object.getOwnPropertySymbols(oe);Xe<$e.length;Xe++)Ee.indexOf($e[Xe])<0&&Object.prototype.propertyIsEnumerable.call(oe,$e[Xe])&&(Pe[$e[Xe]]=oe[$e[Xe]])}return Pe}function M(oe,Ee,Pe,$e){var We,Xe=arguments.length,De=Xe<3?Ee:null===$e?$e=Object.getOwnPropertyDescriptor(Ee,Pe):$e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)De=Reflect.decorate(oe,Ee,Pe,$e);else for(var st=oe.length-1;st>=0;st--)(We=oe[st])&&(De=(Xe<3?We(De):Xe>3?We(Ee,Pe,De):We(Ee,Pe))||De);return Xe>3&&De&&Object.defineProperty(Ee,Pe,De),De}function C(oe,Ee){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(oe,Ee)}function _(oe,Ee,Pe,$e){return new(Pe||(Pe=Promise))(function(De,We){function st(Wt){try{dt($e.next(Wt))}catch(Qt){We(Qt)}}function gt(Wt){try{dt($e.throw(Wt))}catch(Qt){We(Qt)}}function dt(Wt){Wt.done?De(Wt.value):function Xe(De){return De instanceof Pe?De:new Pe(function(We){We(De)})}(Wt.value).then(st,gt)}dt(($e=$e.apply(oe,Ee||[])).next())})}function ne(oe){return this instanceof ne?(this.v=oe,this):new ne(oe)}function le(oe,Ee,Pe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Xe,$e=Pe.apply(oe,Ee||[]),De=[];return Xe={},We("next"),We("throw"),We("return"),Xe[Symbol.asyncIterator]=function(){return this},Xe;function We(mt){$e[mt]&&(Xe[mt]=function(Ft){return new Promise(function(At,lt){De.push([mt,Ft,At,lt])>1||st(mt,Ft)})})}function st(mt,Ft){try{!function gt(mt){mt.value instanceof ne?Promise.resolve(mt.value.v).then(dt,Wt):Qt(De[0][2],mt)}($e[mt](Ft))}catch(At){Qt(De[0][3],At)}}function dt(mt){st("next",mt)}function Wt(mt){st("throw",mt)}function Qt(mt,Ft){mt(Ft),De.shift(),De.length&&st(De[0][0],De[0][1])}}function ve(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pe,Ee=oe[Symbol.asyncIterator];return Ee?Ee.call(oe):(oe=function V(oe){var Ee="function"==typeof Symbol&&Symbol.iterator,Pe=Ee&&oe[Ee],$e=0;if(Pe)return Pe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&$e>=oe.length&&(oe=void 0),{value:oe&&oe[$e++],done:!oe}}};throw new TypeError(Ee?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),Pe={},$e("next"),$e("throw"),$e("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe);function $e(De){Pe[De]=oe[De]&&function(We){return new Promise(function(st,gt){!function Xe(De,We,st,gt){Promise.resolve(gt).then(function(dt){De({value:dt,done:st})},We)}(st,gt,(We=oe[De](We)).done,We.value)})}}}s.d(ge,{AQ:()=>le,Cg:()=>M,N3:()=>ne,Sn:()=>C,Tt:()=>A,sH:()=>_,xN:()=>ve}),"function"==typeof SuppressedError&&SuppressedError},23761:(it,ge,s)=>{"use strict";s.d(ge,{FX:()=>He,If:()=>i,K2:()=>D,Os:()=>M,hZ:()=>y,i0:()=>A,iF:()=>b,kY:()=>O,kp:()=>E,sf:()=>ve,ui:()=>Ie,wk:()=>f});var i=function(se){return se[se.State=0]="State",se[se.Transition=1]="Transition",se[se.Sequence=2]="Sequence",se[se.Group=3]="Group",se[se.Animate=4]="Animate",se[se.Keyframes=5]="Keyframes",se[se.Style=6]="Style",se[se.Trigger=7]="Trigger",se[se.Reference=8]="Reference",se[se.AnimateChild=9]="AnimateChild",se[se.AnimateRef=10]="AnimateRef",se[se.Query=11]="Query",se[se.Stagger=12]="Stagger",se}(i||{});const E="*";function y(se,Ge){return{type:i.Trigger,name:se,definitions:Ge,options:{}}}function A(se,Ge=null){return{type:i.Animate,styles:Ge,timings:se}}function M(se,Ge=null){return{type:i.Group,steps:se,options:Ge}}function D(se,Ge=null){return{type:i.Sequence,steps:se,options:Ge}}function b(se){return{type:i.Style,styles:se,offset:null}}function f(se,Ge,B){return{type:i.State,name:se,styles:Ge,options:B}}function O(se,Ge,B=null){return{type:i.Transition,expr:se,animation:Ge,options:B}}class ve{constructor(Ge=0,B=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ge+B}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ge=>Ge()),this._onDoneFns=[])}onStart(Ge){this._originalOnStartFns.push(Ge),this._onStartFns.push(Ge)}onDone(Ge){this._originalOnDoneFns.push(Ge),this._onDoneFns.push(Ge)}onDestroy(Ge){this._onDestroyFns.push(Ge)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ge=>Ge()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ge=>Ge()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Ge){this._position=this.totalTime?Ge*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ge){const B="start"==Ge?this._onStartFns:this._onDoneFns;B.forEach(Z=>Z()),B.length=0}}class Ie{constructor(Ge){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ge;let B=0,Z=0,J=0;const re=this.players.length;0==re?queueMicrotask(()=>this._onFinish()):this.players.forEach(ce=>{ce.onDone(()=>{++B==re&&this._onFinish()}),ce.onDestroy(()=>{++Z==re&&this._onDestroy()}),ce.onStart(()=>{++J==re&&this._onStart()})}),this.totalTime=this.players.reduce((ce,Se)=>Math.max(ce,Se.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ge=>Ge()),this._onDoneFns=[])}init(){this.players.forEach(Ge=>Ge.init())}onStart(Ge){this._onStartFns.push(Ge)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ge=>Ge()),this._onStartFns=[])}onDone(Ge){this._onDoneFns.push(Ge)}onDestroy(Ge){this._onDestroyFns.push(Ge)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ge=>Ge.play())}pause(){this.players.forEach(Ge=>Ge.pause())}restart(){this.players.forEach(Ge=>Ge.restart())}finish(){this._onFinish(),this.players.forEach(Ge=>Ge.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ge=>Ge.destroy()),this._onDestroyFns.forEach(Ge=>Ge()),this._onDestroyFns=[])}reset(){this.players.forEach(Ge=>Ge.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ge){const B=Ge*this.totalTime;this.players.forEach(Z=>{const J=Z.totalTime?Math.min(1,B/Z.totalTime):1;Z.setPosition(J)})}getPosition(){const Ge=this.players.reduce((B,Z)=>null===B||Z.totalTime>B.totalTime?Z:B,null);return null!=Ge?Ge.getPosition():0}beforeDestroy(){this.players.forEach(Ge=>{Ge.beforeDestroy&&Ge.beforeDestroy()})}triggerCallback(Ge){const B="start"==Ge?this._onStartFns:this._onDoneFns;B.forEach(Z=>Z()),B.length=0}}const He="!"},1579:(it,ge,s)=>{"use strict";s.d(ge,{dS:()=>b,ig:()=>f,jI:()=>S});var i=s(55685),E=s(31761);const y=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function A(){return(0,i.WQX)(E.qQ)}}),M=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function D(O){const C=O?.toLowerCase()||"";return"auto"===C&&typeof navigator<"u"&&navigator?.language?M.test(navigator.language)?"rtl":"ltr":"rtl"===C?"rtl":"ltr"}let b=(()=>{class O{constructor(_){this.value="ltr",this.change=new i.bkB,_&&(this.value=D((_.body?_.body.dir:null)||(_.documentElement?_.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(U){return new(U||O)(i.KVO(y,8))}}static{this.\u0275prov=i.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})(),f=(()=>{class O{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new i.bkB}get dir(){return this._dir}set dir(_){const U=this._dir;this._dir=D(_),this._rawDir=_,U!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(U){return new(U||O)}}static{this.\u0275dir=i.FsC({type:O,selectors:[["","dir",""]],hostVars:1,hostBindings:function(U,w){2&U&&i.BMQ("dir",w._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],standalone:!0,features:[i.Jv_([{provide:b,useExisting:O}])]})}}return O})(),S=(()=>{class O{static{this.\u0275fac=function(U){return new(U||O)}}static{this.\u0275mod=i.$C({type:O})}static{this.\u0275inj=i.G2t({})}}return O})()},71013:(it,ge,s)=>{"use strict";s.d(ge,{FG:()=>M,a1:()=>D,cc:()=>f,he:()=>E,i8:()=>b});var i=s(55685);function E(S){return null!=S&&"false"!=`${S}`}function M(S){return Array.isArray(S)?S:[S]}function D(S){return null==S?"":"string"==typeof S?S:`${S}px`}function b(S){return S instanceof i.aKT?S.nativeElement:S}function f(S,O=/\s+/){const C=[];if(null!=S){const _=Array.isArray(S)?S:`${S}`.split(O);for(const U of _){const w=`${U}`.trim();w&&C.push(w)}}return C}},31647:(it,ge,s)=>{"use strict";s.d(ge,{QP:()=>K,Rp:()=>le});var i=s(55685),E=s(71013),y=s(40352),A=s(58298),M=s(7546),D=s(33055),b=s(2267),f=s(98627),S=s(48582),O=s(54436),C=s(66210),_=s(19443),U=s(13916);const R=new Set;let V,x=(()=>{class Y{constructor(Ie,He){this._platform=Ie,this._nonce=He,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):X}matchMedia(Ie){return(this._platform.WEBKIT||this._platform.BLINK)&&function z(Y,ve){if(!R.has(Y))try{V||(V=document.createElement("style"),ve&&(V.nonce=ve),V.setAttribute("type","text/css"),document.head.appendChild(V)),V.sheet&&(V.sheet.insertRule(`@media ${Y} {body{ }}`,0),R.add(Y))}catch(Ie){console.error(Ie)}}(Ie,this._nonce),this._matchMedia(Ie)}static{this.\u0275fac=function(He){return new(He||Y)(i.KVO(U.OD),i.KVO(i.BIS,8))}}static{this.\u0275prov=i.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();function X(Y){return{matches:"all"===Y||""===Y,media:Y,addListener:()=>{},removeListener:()=>{}}}let K=(()=>{class Y{constructor(Ie,He){this._mediaMatcher=Ie,this._zone=He,this._queries=new Map,this._destroySubject=new y.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ie){return ne((0,E.FG)(Ie)).some(se=>this._registerQuery(se).mql.matches)}observe(Ie){const se=ne((0,E.FG)(Ie)).map(B=>this._registerQuery(B).observable);let Ge=(0,A.z)(se);return Ge=(0,M.x)(Ge.pipe((0,b.s)(1)),Ge.pipe((0,f.i)(1),(0,S.B)(0))),Ge.pipe((0,O.T)(B=>{const Z={matches:!1,breakpoints:{}};return B.forEach(({matches:J,query:re})=>{Z.matches=Z.matches||J,Z.breakpoints[re]=J}),Z}))}_registerQuery(Ie){if(this._queries.has(Ie))return this._queries.get(Ie);const He=this._mediaMatcher.matchMedia(Ie),Ge={observable:new D.c(B=>{const Z=J=>this._zone.run(()=>B.next(J));return He.addListener(Z),()=>{He.removeListener(Z)}}).pipe((0,C.Z)(He),(0,O.T)(({matches:B})=>({query:Ie,matches:B})),(0,_.Q)(this._destroySubject)),mql:He};return this._queries.set(Ie,Ge),Ge}static{this.\u0275fac=function(He){return new(He||Y)(i.KVO(x),i.KVO(i.SKi))}}static{this.\u0275prov=i.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();function ne(Y){return Y.map(ve=>ve.split(",")).reduce((ve,Ie)=>ve.concat(Ie)).map(ve=>ve.trim())}const le={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)"}},13916:(it,ge,s)=>{"use strict";s.d(ge,{BD:()=>V,BQ:()=>C,CZ:()=>R,Fb:()=>ne,OD:()=>A,r5:()=>_,v8:()=>le,vc:()=>K});var i=s(55685),E=s(31761);let y;try{y=typeof Intl<"u"&&Intl.v8BreakIterator}catch{y=!1}let S,A=(()=>{class Y{constructor(Ie){this._platformId=Ie,this.isBrowser=this._platformId?(0,E.UE)(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)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(He){return new(He||Y)(i.KVO(i.Agw))}}static{this.\u0275prov=i.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})();function C(Y){return function O(){if(null==S&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?Y:!!Y.capture}var _=function(Y){return Y[Y.NORMAL=0]="NORMAL",Y[Y.NEGATED=1]="NEGATED",Y[Y.INVERTED=2]="INVERTED",Y}(_||{});let U,w;function R(){if(null==w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return w=!1,w;if("scrollBehavior"in document.documentElement.style)w=!0;else{const Y=Element.prototype.scrollTo;w=!!Y&&!/\{\s*\[native code\]\s*\}/.test(Y.toString())}}return w}function V(){if("object"!=typeof document||!document)return _.NORMAL;if(null==U){const Y=document.createElement("div"),ve=Y.style;Y.dir="rtl",ve.width="1px",ve.overflow="auto",ve.visibility="hidden",ve.pointerEvents="none",ve.position="absolute";const Ie=document.createElement("div"),He=Ie.style;He.width="2px",He.height="1px",Y.appendChild(Ie),document.body.appendChild(Y),U=_.NORMAL,0===Y.scrollLeft&&(Y.scrollLeft=1,U=0===Y.scrollLeft?_.NEGATED:_.INVERTED),Y.remove()}return U}function K(){let Y=typeof document<"u"&&document?document.activeElement:null;for(;Y&&Y.shadowRoot;){const ve=Y.shadowRoot.activeElement;if(ve===Y)break;Y=ve}return Y}function ne(Y){return Y.composedPath?Y.composedPath()[0]:Y.target}function le(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},31761:(it,ge,s)=>{"use strict";s.d(ge,{AJ:()=>Vt,B3:()=>En,Jj:()=>or,MD:()=>tt,N0:()=>ki,P9:()=>Ce,QT:()=>y,Sm:()=>V,Sq:()=>Nn,T3:()=>Wn,UE:()=>Dn,VF:()=>M,Vy:()=>Sr,Xr:()=>Lr,YU:()=>Pt,ZD:()=>A,_b:()=>Je,aZ:()=>z,bT:()=>ke,e1:()=>Xt,fG:()=>tn,fw:()=>x,hb:()=>w,hj:()=>S,lG:()=>Ni,pM:()=>Nn,qQ:()=>b,ux:()=>Bt,vh:()=>Es});var i=s(55685);let E=null;function y(){return E}function A(F){E??=F}class M{}const b=new i.nKC("");let f=(()=>{class F{historyGo(q){throw new Error("")}static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275prov=i.jDH({token:F,factory:()=>(0,i.WQX)(O),providedIn:"platform"})}}return F})();const S=new i.nKC("");let O=(()=>{class F extends f{constructor(){super(),this._doc=(0,i.WQX)(b),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(q){const he=y().getGlobalEventTarget(this._doc,"window");return he.addEventListener("popstate",q,!1),()=>he.removeEventListener("popstate",q)}onHashChange(q){const he=y().getGlobalEventTarget(this._doc,"window");return he.addEventListener("hashchange",q,!1),()=>he.removeEventListener("hashchange",q)}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(q){this._location.pathname=q}pushState(q,he,Ye){this._history.pushState(q,he,Ye)}replaceState(q,he,Ye){this._history.replaceState(q,he,Ye)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275prov=i.jDH({token:F,factory:()=>new F,providedIn:"platform"})}}return F})();function C(F,_e){if(0==F.length)return _e;if(0==_e.length)return F;let q=0;return F.endsWith("/")&&q++,_e.startsWith("/")&&q++,2==q?F+_e.substring(1):1==q?F+_e:F+"/"+_e}function _(F){const _e=F.match(/#|\?|$/),q=_e&&_e.index||F.length;return F.slice(0,q-("/"===F[q-1]?1:0))+F.slice(q)}function U(F){return F&&"?"!==F[0]?"?"+F:F}let w=(()=>{class F{historyGo(q){throw new Error("")}static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275prov=i.jDH({token:F,factory:()=>(0,i.WQX)(V),providedIn:"root"})}}return F})();const R=new i.nKC("");let V=(()=>{class F extends w{constructor(q,he){super(),this._platformLocation=q,this._removeListenerFns=[],this._baseHref=he??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(b).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return C(this._baseHref,q)}path(q=!1){const he=this._platformLocation.pathname+U(this._platformLocation.search),Ye=this._platformLocation.hash;return Ye&&q?`${he}${Ye}`:he}pushState(q,he,Ye,Lt){const zt=this.prepareExternalUrl(Ye+U(Lt));this._platformLocation.pushState(q,he,zt)}replaceState(q,he,Ye,Lt){const zt=this.prepareExternalUrl(Ye+U(Lt));this._platformLocation.replaceState(q,he,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static{this.\u0275fac=function(he){return new(he||F)(i.KVO(f),i.KVO(R,8))}}static{this.\u0275prov=i.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}}return F})(),x=(()=>{class F extends w{constructor(q,he){super(),this._platformLocation=q,this._baseHref="",this._removeListenerFns=[],null!=he&&(this._baseHref=he)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){const he=this._platformLocation.hash??"#";return he.length>0?he.substring(1):he}prepareExternalUrl(q){const he=C(this._baseHref,q);return he.length>0?"#"+he:he}pushState(q,he,Ye,Lt){let zt=this.prepareExternalUrl(Ye+U(Lt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.pushState(q,he,zt)}replaceState(q,he,Ye,Lt){let zt=this.prepareExternalUrl(Ye+U(Lt));0==zt.length&&(zt=this._platformLocation.pathname),this._platformLocation.replaceState(q,he,zt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static{this.\u0275fac=function(he){return new(he||F)(i.KVO(f),i.KVO(R,8))}}static{this.\u0275prov=i.jDH({token:F,factory:F.\u0275fac})}}return F})(),z=(()=>{class F{constructor(q){this._subject=new i.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=q;const he=this._locationStrategy.getBaseHref();this._basePath=function le(F){if(new RegExp("^(https?:)?//").test(F)){const[,q]=F.split(/\/\/[^\/]+/);return q}return F}(_(ne(he))),this._locationStrategy.onPopState(Ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ye.state,type:Ye.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,he=""){return this.path()==this.normalize(q+U(he))}normalize(q){return F.stripTrailingSlash(function K(F,_e){if(!F||!_e.startsWith(F))return _e;const q=_e.substring(F.length);return""===q||["/",";","?","#"].includes(q[0])?q:_e}(this._basePath,ne(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,he="",Ye=null){this._locationStrategy.pushState(Ye,"",q,he),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+U(he)),Ye)}replaceState(q,he="",Ye=null){this._locationStrategy.replaceState(Ye,"",q,he),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+U(he)),Ye)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription??=this.subscribe(he=>{this._notifyUrlChangeListeners(he.url,he.state)}),()=>{const he=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(he,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",he){this._urlChangeListeners.forEach(Ye=>Ye(q,he))}subscribe(q,he,Ye){return this._subject.subscribe({next:q,error:he,complete:Ye})}static{this.normalizeQueryParams=U}static{this.joinWithSlash=C}static{this.stripTrailingSlash=_}static{this.\u0275fac=function(he){return new(he||F)(i.KVO(w))}}static{this.\u0275prov=i.jDH({token:F,factory:()=>function X(){return new z((0,i.KVO)(w))}(),providedIn:"root"})}}return F})();function ne(F){return F.replace(/\/index.html$/,"")}var He=function(F){return F[F.Format=0]="Format",F[F.Standalone=1]="Standalone",F}(He||{}),se=function(F){return F[F.Narrow=0]="Narrow",F[F.Abbreviated=1]="Abbreviated",F[F.Wide=2]="Wide",F[F.Short=3]="Short",F}(se||{}),Ge=function(F){return F[F.Short=0]="Short",F[F.Medium=1]="Medium",F[F.Long=2]="Long",F[F.Full=3]="Full",F}(Ge||{});const B={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Pe(F,_e){return Le((0,i.H5H)(F)[i.KH2.DateFormat],_e)}function $e(F,_e){return Le((0,i.H5H)(F)[i.KH2.TimeFormat],_e)}function Xe(F,_e){return Le((0,i.H5H)(F)[i.KH2.DateTimeFormat],_e)}function De(F,_e){const q=(0,i.H5H)(F),he=q[i.KH2.NumberSymbols][_e];if(typeof he>"u"){if(_e===B.CurrencyDecimal)return q[i.KH2.NumberSymbols][B.Decimal];if(_e===B.CurrencyGroup)return q[i.KH2.NumberSymbols][B.Group]}return he}function mt(F){if(!F[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${F[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Le(F,_e){for(let q=_e;q>-1;q--)if(typeof F[q]<"u")return F[q];throw new Error("Locale data API: locale data undefined")}function ze(F){const[_e,q]=F.split(":");return{hours:+_e,minutes:+q}}const Yt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fn={},Fn=/((?:[^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 Xn=function(F){return F[F.Short=0]="Short",F[F.ShortGMT=1]="ShortGMT",F[F.Long=2]="Long",F[F.Extended=3]="Extended",F}(Xn||{}),Sn=function(F){return F[F.FullYear=0]="FullYear",F[F.Month=1]="Month",F[F.Date=2]="Date",F[F.Hours=3]="Hours",F[F.Minutes=4]="Minutes",F[F.Seconds=5]="Seconds",F[F.FractionalSeconds=6]="FractionalSeconds",F[F.Day=7]="Day",F}(Sn||{}),mn=function(F){return F[F.DayPeriods=0]="DayPeriods",F[F.Days=1]="Days",F[F.Months=2]="Months",F[F.Eras=3]="Eras",F}(mn||{});function Tr(F,_e,q,he){let Ye=function Un(F){if(Ar(F))return F;if("number"==typeof F&&!isNaN(F))return new Date(F);if("string"==typeof F){if(F=F.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(F)){const[Ye,Lt=1,zt=1]=F.split("-").map(Ln=>+Ln);return Ae(Ye,Lt-1,zt)}const q=parseFloat(F);if(!isNaN(F-q))return new Date(q);let he;if(he=F.match(Yt))return function ur(F){const _e=new Date(0);let q=0,he=0;const Ye=F[8]?_e.setUTCFullYear:_e.setFullYear,Lt=F[8]?_e.setUTCHours:_e.setHours;F[9]&&(q=Number(F[9]+F[10]),he=Number(F[9]+F[11])),Ye.call(_e,Number(F[1]),Number(F[2])-1,Number(F[3]));const zt=Number(F[4]||0)-q,Ln=Number(F[5]||0)-he,$r=Number(F[6]||0),Kr=Math.floor(1e3*parseFloat("0."+(F[7]||0)));return Lt.call(_e,zt,Ln,$r,Kr),_e}(he)}const _e=new Date(F);if(!Ar(_e))throw new Error(`Unable to convert "${F}" into a date`);return _e}(F);_e=G(q,_e)||_e;let Ln,zt=[];for(;_e;){if(Ln=Fn.exec(_e),!Ln){zt.push(_e);break}{zt=zt.concat(Ln.slice(1));const Fr=zt.pop();if(!Fr)break;_e=Fr}}let $r=Ye.getTimezoneOffset();he&&($r=et(he,$r),Ye=function yn(F,_e,q){const he=q?-1:1,Ye=F.getTimezoneOffset();return function $t(F,_e){return(F=new Date(F.getTime())).setMinutes(F.getMinutes()+_e),F}(F,he*(et(_e,Ye)-Ye))}(Ye,he,!0));let Kr="";return zt.forEach(Fr=>{const _r=function Be(F){if(Ct[F])return Ct[F];let _e;switch(F){case"G":case"GG":case"GGG":_e=cn(mn.Eras,se.Abbreviated);break;case"GGGG":_e=cn(mn.Eras,se.Wide);break;case"GGGGG":_e=cn(mn.Eras,se.Narrow);break;case"y":_e=vt(Sn.FullYear,1,0,!1,!0);break;case"yy":_e=vt(Sn.FullYear,2,0,!0,!0);break;case"yyy":_e=vt(Sn.FullYear,3,0,!1,!0);break;case"yyyy":_e=vt(Sn.FullYear,4,0,!1,!0);break;case"Y":_e=_t(1);break;case"YY":_e=_t(2,!0);break;case"YYY":_e=_t(3);break;case"YYYY":_e=_t(4);break;case"M":case"L":_e=vt(Sn.Month,1,1);break;case"MM":case"LL":_e=vt(Sn.Month,2,1);break;case"MMM":_e=cn(mn.Months,se.Abbreviated);break;case"MMMM":_e=cn(mn.Months,se.Wide);break;case"MMMMM":_e=cn(mn.Months,se.Narrow);break;case"LLL":_e=cn(mn.Months,se.Abbreviated,He.Standalone);break;case"LLLL":_e=cn(mn.Months,se.Wide,He.Standalone);break;case"LLLLL":_e=cn(mn.Months,se.Narrow,He.Standalone);break;case"w":_e=Hr(1);break;case"ww":_e=Hr(2);break;case"W":_e=Hr(1,!0);break;case"d":_e=vt(Sn.Date,1);break;case"dd":_e=vt(Sn.Date,2);break;case"c":case"cc":_e=vt(Sn.Day,1);break;case"ccc":_e=cn(mn.Days,se.Abbreviated,He.Standalone);break;case"cccc":_e=cn(mn.Days,se.Wide,He.Standalone);break;case"ccccc":_e=cn(mn.Days,se.Narrow,He.Standalone);break;case"cccccc":_e=cn(mn.Days,se.Short,He.Standalone);break;case"E":case"EE":case"EEE":_e=cn(mn.Days,se.Abbreviated);break;case"EEEE":_e=cn(mn.Days,se.Wide);break;case"EEEEE":_e=cn(mn.Days,se.Narrow);break;case"EEEEEE":_e=cn(mn.Days,se.Short);break;case"a":case"aa":case"aaa":_e=cn(mn.DayPeriods,se.Abbreviated);break;case"aaaa":_e=cn(mn.DayPeriods,se.Wide);break;case"aaaaa":_e=cn(mn.DayPeriods,se.Narrow);break;case"b":case"bb":case"bbb":_e=cn(mn.DayPeriods,se.Abbreviated,He.Standalone,!0);break;case"bbbb":_e=cn(mn.DayPeriods,se.Wide,He.Standalone,!0);break;case"bbbbb":_e=cn(mn.DayPeriods,se.Narrow,He.Standalone,!0);break;case"B":case"BB":case"BBB":_e=cn(mn.DayPeriods,se.Abbreviated,He.Format,!0);break;case"BBBB":_e=cn(mn.DayPeriods,se.Wide,He.Format,!0);break;case"BBBBB":_e=cn(mn.DayPeriods,se.Narrow,He.Format,!0);break;case"h":_e=vt(Sn.Hours,1,-12);break;case"hh":_e=vt(Sn.Hours,2,-12);break;case"H":_e=vt(Sn.Hours,1);break;case"HH":_e=vt(Sn.Hours,2);break;case"m":_e=vt(Sn.Minutes,1);break;case"mm":_e=vt(Sn.Minutes,2);break;case"s":_e=vt(Sn.Seconds,1);break;case"ss":_e=vt(Sn.Seconds,2);break;case"S":_e=vt(Sn.FractionalSeconds,1);break;case"SS":_e=vt(Sn.FractionalSeconds,2);break;case"SSS":_e=vt(Sn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_e=Hn(Xn.Short);break;case"ZZZZZ":_e=Hn(Xn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_e=Hn(Xn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_e=Hn(Xn.Long);break;default:return null}return Ct[F]=_e,_e}(Fr);Kr+=_r?_r(Ye,q,$r):"''"===Fr?"'":Fr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kr}function Ae(F,_e,q){const he=new Date(0);return he.setFullYear(F,_e,q),he.setHours(0,0,0),he}function G(F,_e){const q=function J(F){return(0,i.H5H)(F)[i.KH2.LocaleId]}(F);if(fn[q]??={},fn[q][_e])return fn[q][_e];let he="";switch(_e){case"shortDate":he=Pe(F,Ge.Short);break;case"mediumDate":he=Pe(F,Ge.Medium);break;case"longDate":he=Pe(F,Ge.Long);break;case"fullDate":he=Pe(F,Ge.Full);break;case"shortTime":he=$e(F,Ge.Short);break;case"mediumTime":he=$e(F,Ge.Medium);break;case"longTime":he=$e(F,Ge.Long);break;case"fullTime":he=$e(F,Ge.Full);break;case"short":const Ye=G(F,"shortTime"),Lt=G(F,"shortDate");he=ee(Xe(F,Ge.Short),[Ye,Lt]);break;case"medium":const zt=G(F,"mediumTime"),Ln=G(F,"mediumDate");he=ee(Xe(F,Ge.Medium),[zt,Ln]);break;case"long":const $r=G(F,"longTime"),Kr=G(F,"longDate");he=ee(Xe(F,Ge.Long),[$r,Kr]);break;case"full":const Fr=G(F,"fullTime"),_r=G(F,"fullDate");he=ee(Xe(F,Ge.Full),[Fr,_r])}return he&&(fn[q][_e]=he),he}function ee(F,_e){return _e&&(F=F.replace(/\{([^}]+)}/g,function(q,he){return null!=_e&&he in _e?_e[he]:q})),F}function Fe(F,_e,q="-",he,Ye){let Lt="";(F<0||Ye&&F<=0)&&(Ye?F=1-F:(F=-F,Lt=q));let zt=String(F);for(;zt.length<_e;)zt="0"+zt;return he&&(zt=zt.slice(zt.length-_e)),Lt+zt}function vt(F,_e,q=0,he=!1,Ye=!1){return function(Lt,zt){let Ln=function Mt(F,_e){switch(F){case Sn.FullYear:return _e.getFullYear();case Sn.Month:return _e.getMonth();case Sn.Date:return _e.getDate();case Sn.Hours:return _e.getHours();case Sn.Minutes:return _e.getMinutes();case Sn.Seconds:return _e.getSeconds();case Sn.FractionalSeconds:return _e.getMilliseconds();case Sn.Day:return _e.getDay();default:throw new Error(`Unknown DateType value "${F}".`)}}(F,Lt);if((q>0||Ln>-q)&&(Ln+=q),F===Sn.Hours)0===Ln&&-12===q&&(Ln=12);else if(F===Sn.FractionalSeconds)return function pt(F,_e){return Fe(F,3).substring(0,_e)}(Ln,_e);const $r=De(zt,B.MinusSign);return Fe(Ln,_e,$r,he,Ye)}}function cn(F,_e,q=He.Format,he=!1){return function(Ye,Lt){return function kn(F,_e,q,he,Ye,Lt){switch(q){case mn.Months:return function Se(F,_e,q){const he=(0,i.H5H)(F),Lt=Le([he[i.KH2.MonthsFormat],he[i.KH2.MonthsStandalone]],_e);return Le(Lt,q)}(_e,Ye,he)[F.getMonth()];case mn.Days:return function ce(F,_e,q){const he=(0,i.H5H)(F),Lt=Le([he[i.KH2.DaysFormat],he[i.KH2.DaysStandalone]],_e);return Le(Lt,q)}(_e,Ye,he)[F.getDay()];case mn.DayPeriods:const zt=F.getHours(),Ln=F.getMinutes();if(Lt){const Kr=function Ft(F){const _e=(0,i.H5H)(F);return mt(_e),(_e[i.KH2.ExtraData][2]||[]).map(he=>"string"==typeof he?ze(he):[ze(he[0]),ze(he[1])])}(_e),Fr=function At(F,_e,q){const he=(0,i.H5H)(F);mt(he);const Lt=Le([he[i.KH2.ExtraData][0],he[i.KH2.ExtraData][1]],_e)||[];return Le(Lt,q)||[]}(_e,Ye,he),_r=Kr.findIndex(ai=>{if(Array.isArray(ai)){const[kr,hi]=ai,gr=zt>=kr.hours&&Ln>=kr.minutes,sn=zt<hi.hours||zt===hi.hours&&Ln<hi.minutes;if(kr.hours<hi.hours){if(gr&&sn)return!0}else if(gr||sn)return!0}else if(ai.hours===zt&&ai.minutes===Ln)return!0;return!1});if(-1!==_r)return Fr[_r]}return function re(F,_e,q){const he=(0,i.H5H)(F),Lt=Le([he[i.KH2.DayPeriodsFormat],he[i.KH2.DayPeriodsStandalone]],_e);return Le(Lt,q)}(_e,Ye,he)[zt<12?0:1];case mn.Eras:return function we(F,_e){return Le((0,i.H5H)(F)[i.KH2.Eras],_e)}(_e,he)[F.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${q}`)}}(Ye,Lt,F,_e,q,he)}}function Hn(F){return function(_e,q,he){const Ye=-1*he,Lt=De(q,B.MinusSign),zt=Ye>0?Math.floor(Ye/60):Math.ceil(Ye/60);switch(F){case Xn.Short:return(Ye>=0?"+":"")+Fe(zt,2,Lt)+Fe(Math.abs(Ye%60),2,Lt);case Xn.ShortGMT:return"GMT"+(Ye>=0?"+":"")+Fe(zt,1,Lt);case Xn.Long:return"GMT"+(Ye>=0?"+":"")+Fe(zt,2,Lt)+":"+Fe(Math.abs(Ye%60),2,Lt);case Xn.Extended:return 0===he?"Z":(Ye>=0?"+":"")+Fe(zt,2,Lt)+":"+Fe(Math.abs(Ye%60),2,Lt);default:throw new Error(`Unknown zone width "${F}"`)}}}const An=0,Vn=4;function Mi(F){const _e=F.getDay(),q=0===_e?-3:Vn-_e;return Ae(F.getFullYear(),F.getMonth(),F.getDate()+q)}function Hr(F,_e=!1){return function(q,he){let Ye;if(_e){const Lt=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,zt=q.getDate();Ye=1+Math.floor((zt+Lt)/7)}else{const Lt=Mi(q),zt=function Pr(F){const _e=Ae(F,An,1).getDay();return Ae(F,0,1+(_e<=Vn?Vn:Vn+7)-_e)}(Lt.getFullYear()),Ln=Lt.getTime()-zt.getTime();Ye=1+Math.round(Ln/6048e5)}return Fe(Ye,F,De(he,B.MinusSign))}}function _t(F,_e=!1){return function(q,he){return Fe(Mi(q).getFullYear(),F,De(he,B.MinusSign),_e)}}const Ct={};function et(F,_e){F=F.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+F)/6e4;return isNaN(q)?_e:q}function Ar(F){return F instanceof Date&&!isNaN(F.valueOf())}function Je(F,_e){_e=encodeURIComponent(_e);for(const q of F.split(";")){const he=q.indexOf("="),[Ye,Lt]=-1==he?[q,""]:[q.slice(0,he),q.slice(he+1)];if(Ye.trim()===_e)return decodeURIComponent(Lt)}return null}const qe=/\s+/,xt=[];let Pt=(()=>{class F{constructor(q,he){this._ngEl=q,this._renderer=he,this.initialClasses=xt,this.stateMap=new Map}set klass(q){this.initialClasses=null!=q?q.trim().split(qe):xt}set ngClass(q){this.rawClass="string"==typeof q?q.trim().split(qe):q}ngDoCheck(){for(const he of this.initialClasses)this._updateState(he,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const he of q)this._updateState(he,!0);else if(null!=q)for(const he of Object.keys(q))this._updateState(he,!!q[he]);this._applyStateDiff()}_updateState(q,he){const Ye=this.stateMap.get(q);void 0!==Ye?(Ye.enabled!==he&&(Ye.changed=!0,Ye.enabled=he),Ye.touched=!0):this.stateMap.set(q,{enabled:he,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const he=q[0],Ye=q[1];Ye.changed?(this._toggleClass(he,Ye.enabled),Ye.changed=!1):Ye.touched||(Ye.enabled&&this._toggleClass(he,!1),this.stateMap.delete(he)),Ye.touched=!1}}_toggleClass(q,he){(q=q.trim()).length>0&&q.split(qe).forEach(Ye=>{he?this._renderer.addClass(this._ngEl.nativeElement,Ye):this._renderer.removeClass(this._ngEl.nativeElement,Ye)})}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.aKT),i.rXU(i.sFG))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngClass",""]],inputs:{klass:[i.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return F})();class er{constructor(_e,q,he,Ye){this.$implicit=_e,this.ngForOf=q,this.index=he,this.count=Ye}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Nn=(()=>{class F{set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}constructor(q,he,Ye){this._viewContainer=q,this._template=he,this._differs=Ye,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const he=this._viewContainer;q.forEachOperation((Ye,Lt,zt)=>{if(null==Ye.previousIndex)he.createEmbeddedView(this._template,new er(Ye.item,this._ngForOf,-1,-1),null===zt?void 0:zt);else if(null==zt)he.remove(null===Lt?void 0:Lt);else if(null!==Lt){const Ln=he.get(Lt);he.move(Ln,zt),be(Ln,Ye)}});for(let Ye=0,Lt=he.length;Ye<Lt;Ye++){const Ln=he.get(Ye).context;Ln.index=Ye,Ln.count=Lt,Ln.ngForOf=this._ngForOf}q.forEachIdentityChange(Ye=>{be(he.get(Ye.currentIndex),Ye)})}static ngTemplateContextGuard(q,he){return!0}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return F})();function be(F,_e){F.context.$implicit=_e.item}let ke=(()=>{class F{constructor(q,he){this._viewContainer=q,this._context=new at,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=he}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){yt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){yt("ngIfElse",q),this._elseTemplateRef=q,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(q,he){return!0}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.c1b),i.rXU(i.C4Q))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return F})();class at{constructor(){this.$implicit=null,this.ngIf=null}}function yt(F,_e){if(_e&&!_e.createEmbeddedView)throw new Error(`${F} must be a TemplateRef, but received '${(0,i.Tbb)(_e)}'.`)}class wt{constructor(_e,q){this._viewContainerRef=_e,this._templateRef=q,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_e){_e&&!this._created?this.create():!_e&&this._created&&this.destroy()}}let Bt=(()=>{class F{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(q){this._ngSwitch=q,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(q){this._defaultViews.push(q)}_matchCase(q){const he=q===this._ngSwitch;return this._lastCasesMatched||=he,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),he}_updateDefaultCases(q){if(this._defaultViews.length>0&&q!==this._defaultUsed){this._defaultUsed=q;for(const he of this._defaultViews)he.enforceState(q)}}static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return F})(),Xt=(()=>{class F{constructor(q,he,Ye){this.ngSwitch=Ye,Ye._addCase(),this._view=new wt(q,he)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(Bt,9))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return F})(),tn=(()=>{class F{constructor(q,he,Ye){Ye._addDefault(new wt(q,he))}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(Bt,9))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return F})(),En=(()=>{class F{constructor(q,he,Ye){this._ngEl=q,this._differs=he,this._renderer=Ye,this._ngStyle=null,this._differ=null}set ngStyle(q){this._ngStyle=q,!this._differ&&q&&(this._differ=this._differs.find(q).create())}ngDoCheck(){if(this._differ){const q=this._differ.diff(this._ngStyle);q&&this._applyChanges(q)}}_setStyle(q,he){const[Ye,Lt]=q.split("."),zt=-1===Ye.indexOf("-")?void 0:i.czy.DashCase;null!=he?this._renderer.setStyle(this._ngEl.nativeElement,Ye,Lt?`${he}${Lt}`:he,zt):this._renderer.removeStyle(this._ngEl.nativeElement,Ye,zt)}_applyChanges(q){q.forEachRemovedItem(he=>this._setStyle(he.key,null)),q.forEachAddedItem(he=>this._setStyle(he.key,he.currentValue)),q.forEachChangedItem(he=>this._setStyle(he.key,he.currentValue))}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return F})(),Wn=(()=>{class F{constructor(q){this._viewContainerRef=q,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(q){if(this._shouldRecreateView(q)){const he=this._viewContainerRef;if(this._viewRef&&he.remove(he.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ye=this._createContextForwardProxy();this._viewRef=he.createEmbeddedView(this.ngTemplateOutlet,Ye,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,he,Ye)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,he,Ye),get:(q,he,Ye)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,he,Ye)}})}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.c1b))}}static{this.\u0275dir=i.FsC({type:F,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[i.OA$]})}}return F})();function jr(F,_e){return new i.wOt(2100,!1)}class ls{createSubscription(_e,q){return(0,i.O8t)(()=>_e.subscribe({next:q,error:he=>{throw he}}))}dispose(_e){(0,i.O8t)(()=>_e.unsubscribe())}}class js{createSubscription(_e,q){return _e.then(q,he=>{throw he})}dispose(_e){}}const lo=new js,cs=new ls;let or=(()=>{class F{constructor(q){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=q}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(q){if(!this._obj){if(q)try{this.markForCheckOnValueUpdate=!1,this._subscribe(q)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return q!==this._obj?(this._dispose(),this.transform(q)):this._latestValue}_subscribe(q){this._obj=q,this._strategy=this._selectStrategy(q),this._subscription=this._strategy.createSubscription(q,he=>this._updateLatestValue(q,he))}_selectStrategy(q){if((0,i.jNT)(q))return lo;if((0,i.zjR)(q))return cs;throw jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,he){q===this._obj&&(this._latestValue=he,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.gRc,16))}}static{this.\u0275pipe=i.EJ8({name:"async",type:F,pure:!1,standalone:!0})}}return F})();const ns=new i.nKC(""),Jr=new i.nKC("");let Es=(()=>{class F{constructor(q,he,Ye){this.locale=q,this.defaultTimezone=he,this.defaultOptions=Ye}transform(q,he,Ye,Lt){if(null==q||""===q||q!=q)return null;try{return Tr(q,he??this.defaultOptions?.dateFormat??"mediumDate",Lt||this.locale,Ye??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(zt){throw jr()}}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.xe9,16),i.rXU(ns,24),i.rXU(Jr,24))}}static{this.\u0275pipe=i.EJ8({name:"date",type:F,pure:!0,standalone:!0})}}return F})(),Ni=(()=>{class F{constructor(q){this.differs=q,this.keyValues=[],this.compareFn=us}transform(q,he=us){if(!q||!(q instanceof Map)&&"object"!=typeof q)return null;this.differ??=this.differs.find(q).create();const Ye=this.differ.diff(q),Lt=he!==this.compareFn;return Ye&&(this.keyValues=[],Ye.forEachItem(zt=>{this.keyValues.push(function uo(F,_e){return{key:F,value:_e}}(zt.key,zt.currentValue))})),(Ye||Lt)&&(this.keyValues.sort(he),this.compareFn=he),this.keyValues}static{this.\u0275fac=function(he){return new(he||F)(i.rXU(i.MKu,16))}}static{this.\u0275pipe=i.EJ8({name:"keyvalue",type:F,pure:!1,standalone:!0})}}return F})();function us(F,_e){const q=F.key,he=_e.key;if(q===he)return 0;if(void 0===q)return 1;if(void 0===he)return-1;if(null===q)return 1;if(null===he)return-1;if("string"==typeof q&&"string"==typeof he)return q<he?-1:1;if("number"==typeof q&&"number"==typeof he)return q-he;if("boolean"==typeof q&&"boolean"==typeof he)return q<he?-1:1;const Ye=String(q),Lt=String(he);return Ye==Lt?0:Ye<Lt?-1:1}let Ce=(()=>{class F{transform(q,he,Ye){if(null==q)return null;if(!this.supports(q))throw jr();return q.slice(he,Ye)}supports(q){return"string"==typeof q||Array.isArray(q)}static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275pipe=i.EJ8({name:"slice",type:F,pure:!1,standalone:!0})}}return F})(),tt=(()=>{class F{static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275mod=i.$C({type:F})}static{this.\u0275inj=i.G2t({})}}return F})();const Vt="browser",rn="server";function Dn(F){return F===Vt}function Sr(F){return F===rn}let Lr=(()=>{class F{static{this.\u0275prov=(0,i.jDH)({token:F,providedIn:"root",factory:()=>Dn((0,i.WQX)(i.Agw))?new Br((0,i.WQX)(b),window):new zi})}}return F})();class Br{constructor(_e,q){this.document=_e,this.window=q,this.offset=()=>[0,0]}setOffset(_e){this.offset=Array.isArray(_e)?()=>_e:_e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(_e){this.window.scrollTo(_e[0],_e[1])}scrollToAnchor(_e){const q=function ni(F,_e){const q=F.getElementById(_e)||F.getElementsByName(_e)[0];if(q)return q;if("function"==typeof F.createTreeWalker&&F.body&&"function"==typeof F.body.attachShadow){const he=F.createTreeWalker(F.body,NodeFilter.SHOW_ELEMENT);let Ye=he.currentNode;for(;Ye;){const Lt=Ye.shadowRoot;if(Lt){const zt=Lt.getElementById(_e)||Lt.querySelector(`[name="${_e}"]`);if(zt)return zt}Ye=he.nextNode()}}return null}(this.document,_e);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(_e){this.window.history.scrollRestoration=_e}scrollToElement(_e){const q=_e.getBoundingClientRect(),he=q.left+this.window.pageXOffset,Ye=q.top+this.window.pageYOffset,Lt=this.offset();this.window.scrollTo(he-Lt[0],Ye-Lt[1])}}class zi{setOffset(_e){}getScrollPosition(){return[0,0]}scrollToPosition(_e){}scrollToAnchor(_e){}setHistoryScrollRestoration(_e){}}class ki{}},60602:(it,ge,s)=>{"use strict";s.d(ge,{$R:()=>et,Kd:()=>Z,Lr:()=>w,Nl:()=>le,Qq:()=>Pe,Sx:()=>Un,a7:()=>Ft,hv:()=>J,yz:()=>we}),s(66257);var E=s(55685),y=s(10047),A=s(33055),M=s(90249),D=s(82780),b=s(79274),f=s(54436),S=s(99334),O=s(22900),C=s(31761);class _{}class U{}class w{constructor(Je){this.normalizedNames=new Map,this.lazyUpdate=null,Je?"string"==typeof Je?this.lazyInit=()=>{this.headers=new Map,Je.split("\n").forEach(qe=>{const xt=qe.indexOf(":");if(xt>0){const Pt=qe.slice(0,xt),un=Pt.toLowerCase(),dn=qe.slice(xt+1).trim();this.maybeSetNormalizedName(Pt,un),this.headers.has(un)?this.headers.get(un).push(dn):this.headers.set(un,[dn])}})}:typeof Headers<"u"&&Je instanceof Headers?(this.headers=new Map,Je.forEach((qe,xt)=>{this.setHeaderEntries(xt,qe)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Je).forEach(([qe,xt])=>{this.setHeaderEntries(qe,xt)})}:this.headers=new Map}has(Je){return this.init(),this.headers.has(Je.toLowerCase())}get(Je){this.init();const qe=this.headers.get(Je.toLowerCase());return qe&&qe.length>0?qe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Je){return this.init(),this.headers.get(Je.toLowerCase())||null}append(Je,qe){return this.clone({name:Je,value:qe,op:"a"})}set(Je,qe){return this.clone({name:Je,value:qe,op:"s"})}delete(Je,qe){return this.clone({name:Je,value:qe,op:"d"})}maybeSetNormalizedName(Je,qe){this.normalizedNames.has(qe)||this.normalizedNames.set(qe,Je)}init(){this.lazyInit&&(this.lazyInit instanceof w?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Je=>this.applyUpdate(Je)),this.lazyUpdate=null))}copyFrom(Je){Je.init(),Array.from(Je.headers.keys()).forEach(qe=>{this.headers.set(qe,Je.headers.get(qe)),this.normalizedNames.set(qe,Je.normalizedNames.get(qe))})}clone(Je){const qe=new w;return qe.lazyInit=this.lazyInit&&this.lazyInit instanceof w?this.lazyInit:this,qe.lazyUpdate=(this.lazyUpdate||[]).concat([Je]),qe}applyUpdate(Je){const qe=Je.name.toLowerCase();switch(Je.op){case"a":case"s":let xt=Je.value;if("string"==typeof xt&&(xt=[xt]),0===xt.length)return;this.maybeSetNormalizedName(Je.name,qe);const Pt=("a"===Je.op?this.headers.get(qe):void 0)||[];Pt.push(...xt),this.headers.set(qe,Pt);break;case"d":const un=Je.value;if(un){let dn=this.headers.get(qe);if(!dn)return;dn=dn.filter(er=>-1===un.indexOf(er)),0===dn.length?(this.headers.delete(qe),this.normalizedNames.delete(qe)):this.headers.set(qe,dn)}else this.headers.delete(qe),this.normalizedNames.delete(qe)}}setHeaderEntries(Je,qe){const xt=(Array.isArray(qe)?qe:[qe]).map(un=>un.toString()),Pt=Je.toLowerCase();this.headers.set(Pt,xt),this.maybeSetNormalizedName(Je,Pt)}forEach(Je){this.init(),Array.from(this.normalizedNames.keys()).forEach(qe=>Je(this.normalizedNames.get(qe),this.headers.get(qe)))}}class V{encodeKey(Je){return K(Je)}encodeValue(Je){return K(Je)}decodeKey(Je){return decodeURIComponent(Je)}decodeValue(Je){return decodeURIComponent(Je)}}const z=/%(\d[a-f0-9])/gi,X={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function K(Me){return encodeURIComponent(Me).replace(z,(Je,qe)=>X[qe]??Je)}function ne(Me){return`${Me}`}class le{constructor(Je={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Je.encoder||new V,Je.fromString){if(Je.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function x(Me,Je){const qe=new Map;return Me.length>0&&Me.replace(/^\?/,"").split("&").forEach(Pt=>{const un=Pt.indexOf("="),[dn,er]=-1==un?[Je.decodeKey(Pt),""]:[Je.decodeKey(Pt.slice(0,un)),Je.decodeValue(Pt.slice(un+1))],Nn=qe.get(dn)||[];Nn.push(er),qe.set(dn,Nn)}),qe}(Je.fromString,this.encoder)}else Je.fromObject?(this.map=new Map,Object.keys(Je.fromObject).forEach(qe=>{const xt=Je.fromObject[qe],Pt=Array.isArray(xt)?xt.map(ne):[ne(xt)];this.map.set(qe,Pt)})):this.map=null}has(Je){return this.init(),this.map.has(Je)}get(Je){this.init();const qe=this.map.get(Je);return qe?qe[0]:null}getAll(Je){return this.init(),this.map.get(Je)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Je,qe){return this.clone({param:Je,value:qe,op:"a"})}appendAll(Je){const qe=[];return Object.keys(Je).forEach(xt=>{const Pt=Je[xt];Array.isArray(Pt)?Pt.forEach(un=>{qe.push({param:xt,value:un,op:"a"})}):qe.push({param:xt,value:Pt,op:"a"})}),this.clone(qe)}set(Je,qe){return this.clone({param:Je,value:qe,op:"s"})}delete(Je,qe){return this.clone({param:Je,value:qe,op:"d"})}toString(){return this.init(),this.keys().map(Je=>{const qe=this.encoder.encodeKey(Je);return this.map.get(Je).map(xt=>qe+"="+this.encoder.encodeValue(xt)).join("&")}).filter(Je=>""!==Je).join("&")}clone(Je){const qe=new le({encoder:this.encoder});return qe.cloneFrom=this.cloneFrom||this,qe.updates=(this.updates||[]).concat(Je),qe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Je=>this.map.set(Je,this.cloneFrom.map.get(Je))),this.updates.forEach(Je=>{switch(Je.op){case"a":case"s":const qe=("a"===Je.op?this.map.get(Je.param):void 0)||[];qe.push(ne(Je.value)),this.map.set(Je.param,qe);break;case"d":if(void 0===Je.value){this.map.delete(Je.param);break}{let xt=this.map.get(Je.param)||[];const Pt=xt.indexOf(ne(Je.value));-1!==Pt&&xt.splice(Pt,1),xt.length>0?this.map.set(Je.param,xt):this.map.delete(Je.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(Je,qe){return this.map.set(Je,qe),this}get(Je){return this.map.has(Je)||this.map.set(Je,Je.defaultValue()),this.map.get(Je)}delete(Je){return this.map.delete(Je),this}has(Je){return this.map.has(Je)}keys(){return this.map.keys()}}function He(Me){return typeof ArrayBuffer<"u"&&Me instanceof ArrayBuffer}function se(Me){return typeof Blob<"u"&&Me instanceof Blob}function Ge(Me){return typeof FormData<"u"&&Me instanceof FormData}class Z{constructor(Je,qe,xt,Pt){let un;if(this.url=qe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Je.toUpperCase(),function Ie(Me){switch(Me){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Pt?(this.body=void 0!==xt?xt:null,un=Pt):un=xt,un&&(this.reportProgress=!!un.reportProgress,this.withCredentials=!!un.withCredentials,un.responseType&&(this.responseType=un.responseType),un.headers&&(this.headers=un.headers),un.context&&(this.context=un.context),un.params&&(this.params=un.params),this.transferCache=un.transferCache),this.headers??=new w,this.context??=new ve,this.params){const dn=this.params.toString();if(0===dn.length)this.urlWithParams=qe;else{const er=qe.indexOf("?");this.urlWithParams=qe+(-1===er?"?":er<qe.length-1?"&":"")+dn}}else this.params=new le,this.urlWithParams=qe}serializeBody(){return null===this.body?null:"string"==typeof this.body||He(this.body)||se(this.body)||Ge(this.body)||function B(Me){return typeof URLSearchParams<"u"&&Me instanceof URLSearchParams}(this.body)?this.body:this.body instanceof le?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||Ge(this.body)?null:se(this.body)?this.body.type||null:He(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof le?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Je={}){const qe=Je.method||this.method,xt=Je.url||this.url,Pt=Je.responseType||this.responseType,un=Je.transferCache??this.transferCache,dn=void 0!==Je.body?Je.body:this.body,er=Je.withCredentials??this.withCredentials,Nn=Je.reportProgress??this.reportProgress;let be=Je.headers||this.headers,Qe=Je.params||this.params;const ke=Je.context??this.context;return void 0!==Je.setHeaders&&(be=Object.keys(Je.setHeaders).reduce((at,yt)=>at.set(yt,Je.setHeaders[yt]),be)),Je.setParams&&(Qe=Object.keys(Je.setParams).reduce((at,yt)=>at.set(yt,Je.setParams[yt]),Qe)),new Z(qe,xt,dn,{params:Qe,headers:be,context:ke,reportProgress:Nn,responseType:Pt,withCredentials:er,transferCache:un})}}var J=function(Me){return Me[Me.Sent=0]="Sent",Me[Me.UploadProgress=1]="UploadProgress",Me[Me.ResponseHeader=2]="ResponseHeader",Me[Me.DownloadProgress=3]="DownloadProgress",Me[Me.Response=4]="Response",Me[Me.User=5]="User",Me}(J||{});class re{constructor(Je,qe=oe.Ok,xt="OK"){this.headers=Je.headers||new w,this.status=void 0!==Je.status?Je.status:qe,this.statusText=Je.statusText||xt,this.url=Je.url||null,this.ok=this.status>=200&&this.status<300}}class ce extends re{constructor(Je={}){super(Je),this.type=J.ResponseHeader}clone(Je={}){return new ce({headers:Je.headers||this.headers,status:void 0!==Je.status?Je.status:this.status,statusText:Je.statusText||this.statusText,url:Je.url||this.url||void 0})}}class Se extends re{constructor(Je={}){super(Je),this.type=J.Response,this.body=void 0!==Je.body?Je.body:null}clone(Je={}){return new Se({body:void 0!==Je.body?Je.body:this.body,headers:Je.headers||this.headers,status:void 0!==Je.status?Je.status:this.status,statusText:Je.statusText||this.statusText,url:Je.url||this.url||void 0})}}class we extends re{constructor(Je){super(Je,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Je.url||"(unknown url)"}`:`Http failure response for ${Je.url||"(unknown url)"}: ${Je.status} ${Je.statusText}`,this.error=Je.error||null}}var oe=function(Me){return Me[Me.Continue=100]="Continue",Me[Me.SwitchingProtocols=101]="SwitchingProtocols",Me[Me.Processing=102]="Processing",Me[Me.EarlyHints=103]="EarlyHints",Me[Me.Ok=200]="Ok",Me[Me.Created=201]="Created",Me[Me.Accepted=202]="Accepted",Me[Me.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Me[Me.NoContent=204]="NoContent",Me[Me.ResetContent=205]="ResetContent",Me[Me.PartialContent=206]="PartialContent",Me[Me.MultiStatus=207]="MultiStatus",Me[Me.AlreadyReported=208]="AlreadyReported",Me[Me.ImUsed=226]="ImUsed",Me[Me.MultipleChoices=300]="MultipleChoices",Me[Me.MovedPermanently=301]="MovedPermanently",Me[Me.Found=302]="Found",Me[Me.SeeOther=303]="SeeOther",Me[Me.NotModified=304]="NotModified",Me[Me.UseProxy=305]="UseProxy",Me[Me.Unused=306]="Unused",Me[Me.TemporaryRedirect=307]="TemporaryRedirect",Me[Me.PermanentRedirect=308]="PermanentRedirect",Me[Me.BadRequest=400]="BadRequest",Me[Me.Unauthorized=401]="Unauthorized",Me[Me.PaymentRequired=402]="PaymentRequired",Me[Me.Forbidden=403]="Forbidden",Me[Me.NotFound=404]="NotFound",Me[Me.MethodNotAllowed=405]="MethodNotAllowed",Me[Me.NotAcceptable=406]="NotAcceptable",Me[Me.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Me[Me.RequestTimeout=408]="RequestTimeout",Me[Me.Conflict=409]="Conflict",Me[Me.Gone=410]="Gone",Me[Me.LengthRequired=411]="LengthRequired",Me[Me.PreconditionFailed=412]="PreconditionFailed",Me[Me.PayloadTooLarge=413]="PayloadTooLarge",Me[Me.UriTooLong=414]="UriTooLong",Me[Me.UnsupportedMediaType=415]="UnsupportedMediaType",Me[Me.RangeNotSatisfiable=416]="RangeNotSatisfiable",Me[Me.ExpectationFailed=417]="ExpectationFailed",Me[Me.ImATeapot=418]="ImATeapot",Me[Me.MisdirectedRequest=421]="MisdirectedRequest",Me[Me.UnprocessableEntity=422]="UnprocessableEntity",Me[Me.Locked=423]="Locked",Me[Me.FailedDependency=424]="FailedDependency",Me[Me.TooEarly=425]="TooEarly",Me[Me.UpgradeRequired=426]="UpgradeRequired",Me[Me.PreconditionRequired=428]="PreconditionRequired",Me[Me.TooManyRequests=429]="TooManyRequests",Me[Me.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Me[Me.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Me[Me.InternalServerError=500]="InternalServerError",Me[Me.NotImplemented=501]="NotImplemented",Me[Me.BadGateway=502]="BadGateway",Me[Me.ServiceUnavailable=503]="ServiceUnavailable",Me[Me.GatewayTimeout=504]="GatewayTimeout",Me[Me.HttpVersionNotSupported=505]="HttpVersionNotSupported",Me[Me.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Me[Me.InsufficientStorage=507]="InsufficientStorage",Me[Me.LoopDetected=508]="LoopDetected",Me[Me.NotExtended=510]="NotExtended",Me[Me.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Me}(oe||{});function Ee(Me,Je){return{body:Je,headers:Me.headers,context:Me.context,observe:Me.observe,params:Me.params,reportProgress:Me.reportProgress,responseType:Me.responseType,withCredentials:Me.withCredentials,transferCache:Me.transferCache}}let Pe=(()=>{class Me{constructor(qe){this.handler=qe}request(qe,xt,Pt={}){let un;if(qe instanceof Z)un=qe;else{let Nn,be;Nn=Pt.headers instanceof w?Pt.headers:new w(Pt.headers),Pt.params&&(be=Pt.params instanceof le?Pt.params:new le({fromObject:Pt.params})),un=new Z(qe,xt,void 0!==Pt.body?Pt.body:null,{headers:Nn,context:Pt.context,params:be,reportProgress:Pt.reportProgress,responseType:Pt.responseType||"json",withCredentials:Pt.withCredentials,transferCache:Pt.transferCache})}const dn=(0,y.of)(un).pipe((0,D.H)(Nn=>this.handler.handle(Nn)));if(qe instanceof Z||"events"===Pt.observe)return dn;const er=dn.pipe((0,b.p)(Nn=>Nn instanceof Se));switch(Pt.observe||"body"){case"body":switch(un.responseType){case"arraybuffer":return er.pipe((0,f.T)(Nn=>{if(null!==Nn.body&&!(Nn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Nn.body}));case"blob":return er.pipe((0,f.T)(Nn=>{if(null!==Nn.body&&!(Nn.body instanceof Blob))throw new Error("Response is not a Blob.");return Nn.body}));case"text":return er.pipe((0,f.T)(Nn=>{if(null!==Nn.body&&"string"!=typeof Nn.body)throw new Error("Response is not a string.");return Nn.body}));default:return er.pipe((0,f.T)(Nn=>Nn.body))}case"response":return er;default:throw new Error(`Unreachable: unhandled observe type ${Pt.observe}}`)}}delete(qe,xt={}){return this.request("DELETE",qe,xt)}get(qe,xt={}){return this.request("GET",qe,xt)}head(qe,xt={}){return this.request("HEAD",qe,xt)}jsonp(qe,xt){return this.request("JSONP",qe,{params:(new le).append(xt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(qe,xt={}){return this.request("OPTIONS",qe,xt)}patch(qe,xt,Pt={}){return this.request("PATCH",qe,Ee(Pt,xt))}post(qe,xt,Pt={}){return this.request("POST",qe,Ee(Pt,xt))}put(qe,xt,Pt={}){return this.request("PUT",qe,Ee(Pt,xt))}static{this.\u0275fac=function(xt){return new(xt||Me)(E.KVO(_))}}static{this.\u0275prov=E.jDH({token:Me,factory:Me.\u0275fac})}}return Me})();function Wt(Me,Je){return Je(Me)}function Qt(Me,Je){return(qe,xt)=>Je.intercept(qe,{handle:Pt=>Me(Pt,xt)})}const Ft=new E.nKC(""),At=new E.nKC(""),lt=new E.nKC(""),Le=new E.nKC("");function ze(){let Me=null;return(Je,qe)=>{null===Me&&(Me=((0,E.WQX)(Ft,{optional:!0})??[]).reduceRight(Qt,Wt));const xt=(0,E.WQX)(E.TgB),Pt=xt.add();return Me(Je,qe).pipe((0,S.j)(()=>xt.remove(Pt)))}}let Gt=(()=>{class Me extends _{constructor(qe,xt){super(),this.backend=qe,this.injector=xt,this.chain=null,this.pendingTasks=(0,E.WQX)(E.TgB);const Pt=(0,E.WQX)(Le,{optional:!0});this.backend=Pt??qe}handle(qe){if(null===this.chain){const Pt=Array.from(new Set([...this.injector.get(At),...this.injector.get(lt,[])]));this.chain=Pt.reduceRight((un,dn)=>function mt(Me,Je,qe){return(xt,Pt)=>(0,E.N4e)(qe,()=>Je(xt,un=>Me(un,Pt)))}(un,dn,this.injector),Wt)}const xt=this.pendingTasks.add();return this.chain(qe,Pt=>this.backend.handle(Pt)).pipe((0,S.j)(()=>this.pendingTasks.remove(xt)))}static{this.\u0275fac=function(xt){return new(xt||Me)(E.KVO(U),E.KVO(E.uvJ))}}static{this.\u0275prov=E.jDH({token:Me,factory:Me.\u0275fac})}}return Me})();const pt=/^\)\]\}',?\n/;let Mt=(()=>{class Me{constructor(qe){this.xhrFactory=qe}handle(qe){if("JSONP"===qe.method)throw new E.wOt(-2800,!1);const xt=this.xhrFactory;return(xt.\u0275loadImpl?(0,M.H)(xt.\u0275loadImpl()):(0,y.of)(null)).pipe((0,O.n)(()=>new A.c(un=>{const dn=xt.build();if(dn.open(qe.method,qe.urlWithParams),qe.withCredentials&&(dn.withCredentials=!0),qe.headers.forEach((wt,Bt)=>dn.setRequestHeader(wt,Bt.join(","))),qe.headers.has("Accept")||dn.setRequestHeader("Accept","application/json, text/plain, */*"),!qe.headers.has("Content-Type")){const wt=qe.detectContentTypeHeader();null!==wt&&dn.setRequestHeader("Content-Type",wt)}if(qe.responseType){const wt=qe.responseType.toLowerCase();dn.responseType="json"!==wt?wt:"text"}const er=qe.serializeBody();let Nn=null;const be=()=>{if(null!==Nn)return Nn;const wt=dn.statusText||"OK",Bt=new w(dn.getAllResponseHeaders()),Xt=function vt(Me){return"responseURL"in Me&&Me.responseURL?Me.responseURL:/^X-Request-URL:/m.test(Me.getAllResponseHeaders())?Me.getResponseHeader("X-Request-URL"):null}(dn)||qe.url;return Nn=new ce({headers:Bt,status:dn.status,statusText:wt,url:Xt}),Nn},Qe=()=>{let{headers:wt,status:Bt,statusText:Xt,url:tn}=be(),en=null;Bt!==oe.NoContent&&(en=typeof dn.response>"u"?dn.responseText:dn.response),0===Bt&&(Bt=en?oe.Ok:0);let Cn=Bt>=200&&Bt<300;if("json"===qe.responseType&&"string"==typeof en){const Jn=en;en=en.replace(pt,"");try{en=""!==en?JSON.parse(en):null}catch(tr){en=Jn,Cn&&(Cn=!1,en={error:tr,text:en})}}Cn?(un.next(new Se({body:en,headers:wt,status:Bt,statusText:Xt,url:tn||void 0})),un.complete()):un.error(new we({error:en,headers:wt,status:Bt,statusText:Xt,url:tn||void 0}))},ke=wt=>{const{url:Bt}=be(),Xt=new we({error:wt,status:dn.status||0,statusText:dn.statusText||"Unknown Error",url:Bt||void 0});un.error(Xt)};let at=!1;const yt=wt=>{at||(un.next(be()),at=!0);let Bt={type:J.DownloadProgress,loaded:wt.loaded};wt.lengthComputable&&(Bt.total=wt.total),"text"===qe.responseType&&dn.responseText&&(Bt.partialText=dn.responseText),un.next(Bt)},ht=wt=>{let Bt={type:J.UploadProgress,loaded:wt.loaded};wt.lengthComputable&&(Bt.total=wt.total),un.next(Bt)};return dn.addEventListener("load",Qe),dn.addEventListener("error",ke),dn.addEventListener("timeout",ke),dn.addEventListener("abort",ke),qe.reportProgress&&(dn.addEventListener("progress",yt),null!==er&&dn.upload&&dn.upload.addEventListener("progress",ht)),dn.send(er),un.next({type:J.Sent}),()=>{dn.removeEventListener("error",ke),dn.removeEventListener("abort",ke),dn.removeEventListener("load",Qe),dn.removeEventListener("timeout",ke),qe.reportProgress&&(dn.removeEventListener("progress",yt),null!==er&&dn.upload&&dn.upload.removeEventListener("progress",ht)),dn.readyState!==dn.DONE&&dn.abort()}})))}static{this.\u0275fac=function(xt){return new(xt||Me)(E.KVO(C.N0))}}static{this.\u0275prov=E.jDH({token:Me,factory:Me.\u0275fac})}}return Me})();const cn=new E.nKC(""),Hn=new E.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Vn=new E.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Pr{}let Mi=(()=>{class Me{constructor(qe,xt,Pt){this.doc=qe,this.platform=xt,this.cookieName=Pt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const qe=this.doc.cookie||"";return qe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C._b)(qe,this.cookieName),this.lastCookieString=qe),this.lastToken}static{this.\u0275fac=function(xt){return new(xt||Me)(E.KVO(C.qQ),E.KVO(E.Agw),E.KVO(Hn))}}static{this.\u0275prov=E.jDH({token:Me,factory:Me.\u0275fac})}}return Me})();function Hr(Me,Je){const qe=Me.url.toLowerCase();if(!(0,E.WQX)(cn)||"GET"===Me.method||"HEAD"===Me.method||qe.startsWith("http://")||qe.startsWith("https://"))return Je(Me);const xt=(0,E.WQX)(Pr).getToken(),Pt=(0,E.WQX)(Vn);return null!=xt&&!Me.headers.has(Pt)&&(Me=Me.clone({headers:Me.headers.set(Pt,xt)})),Je(Me)}var Ct=function(Me){return Me[Me.Interceptors=0]="Interceptors",Me[Me.LegacyInterceptors=1]="LegacyInterceptors",Me[Me.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Me[Me.NoXsrfProtection=3]="NoXsrfProtection",Me[Me.JsonpSupport=4]="JsonpSupport",Me[Me.RequestsMadeViaParent=5]="RequestsMadeViaParent",Me[Me.Fetch=6]="Fetch",Me}(Ct||{});function et(...Me){const Je=[Pe,Mt,Gt,{provide:_,useExisting:Gt},{provide:U,useExisting:Mt},{provide:At,useValue:Hr,multi:!0},{provide:cn,useValue:!0},{provide:Pr,useClass:Mi}];for(const qe of Me)Je.push(...qe.\u0275providers);return(0,E.EmA)(Je)}const yn=new E.nKC("");function Un(){return function Be(Me,Je){return{\u0275kind:Me,\u0275providers:Je}}(Ct.LegacyInterceptors,[{provide:yn,useFactory:ze},{provide:At,useExisting:yn,multi:!0}])}},55685:(it,ge,s)=>{"use strict";function E(e,t){return Object.is(e,t)}s.d(ge,{bc$:()=>Wp,iLQ:()=>M_,sZ2:()=>Am,hnV:()=>cC,o8S:()=>dd,BIS:()=>Gu,gRc:()=>SC,Ql9:()=>lw,OM3:()=>Vg,Ocv:()=>mw,abz:()=>Zl,Z63:()=>_i,aKT:()=>ku,uvJ:()=>ds,zcH:()=>Ka,bkB:()=>xs,$GK:()=>or,nKC:()=>Pt,zZn:()=>ps,_q3:()=>B_,MKu:()=>V_,xe9:()=>Xy,Co$:()=>qE,Vns:()=>wh,SKi:()=>ms,Xx1:()=>Dn,Agw:()=>eh,PLl:()=>cf,rOR:()=>Ea,sFG:()=>iI,_9s:()=>aE,czy:()=>Cf,WPN:()=>su,kdw:()=>dr,C4Q:()=>jf,NYb:()=>tw,giA:()=>aC,RxE:()=>qb,c1b:()=>Cy,gXe:()=>ji,mal:()=>pE,Af3:()=>zo,tdH:()=>aI,L39:()=>uP,EWP:()=>fP,Ol2:()=>xv,w6W:()=>rA,QZP:()=>ZC,SmG:()=>Sw,Rfq:()=>Hr,oKB:()=>Ho,WQX:()=>te,hFB:()=>ym,Hps:()=>Pv,QuC:()=>Ji,EmA:()=>Ko,Udg:()=>dP,HJs:()=>_P,N4e:()=>go,vPA:()=>xE,O8t:()=>pP,An2:()=>od,H3F:()=>eC,H8p:()=>ha,KH2:()=>up,TgB:()=>Kf,wOt:()=>Ue,WHO:()=>sC,e01:()=>oC,lNU:()=>ze,h9k:()=>Rm,$MX:()=>Hi,ZF7:()=>Ut,Kcf:()=>On,e5t:()=>pi,UyX:()=>wn,cWb:()=>xn,osQ:()=>Gr,H5H:()=>a_,Zy3:()=>Dt,mq5:()=>uS,JZv:()=>vt,TL3:()=>Yw,LfX:()=>ln,plB:()=>ad,jNT:()=>w_,zjR:()=>lC,TL$:()=>lf,Tbb:()=>An,rcV:()=>jt,Vt3:()=>Rv,Mj6:()=>ss,GFd:()=>ZE,OA$:()=>Ks,Jv_:()=>bb,aNF:()=>Cb,R7$:()=>Pf,BMQ:()=>Hv,HbH:()=>G1,AVh:()=>qv,BUC:()=>J1,vxM:()=>tS,wni:()=>qS,nv$:()=>_1,g25:()=>E1,qhs:()=>S1,VBU:()=>el,FsC:()=>Sc,jDH:()=>je,G2t:()=>Rt,$C:()=>Wo,EJ8:()=>Oa,rXU:()=>dc,nrm:()=>s_,bVm:()=>By,qex:()=>Uy,k0s:()=>Fy,j41:()=>ky,RV6:()=>lS,xGo:()=>jd,Mr5:()=>o_,KVO:()=>si,kS0:()=>Yl,QTQ:()=>qm,bIt:()=>u_,lsd:()=>nb,joV:()=>Kh,qSk:()=>Gh,XpG:()=>jS,nI1:()=>Nb,bMT:()=>Lb,i5U:()=>xb,brH:()=>kb,SdG:()=>WS,NAR:()=>$S,Y8G:()=>Xv,lJ4:()=>Ab,eq3:()=>Db,l_i:()=>Tb,mGM:()=>tb,sdS:()=>rb,Dyx:()=>iS,Z7z:()=>rS,fX1:()=>nS,Njj:()=>ya,EBC:()=>tg,tSv:()=>Bm,eBV:()=>dl,npT:()=>ch,B4B:()=>Yp,n$t:()=>xm,Aen:()=>Rl,xc7:()=>Zv,DNE:()=>Hf,C5r:()=>Fb,EFF:()=>fb,JRh:()=>f_,SpI:()=>Gy,Lme:()=>p_,E5c:()=>g_,ZXR:()=>m_,DH7:()=>Eb,mxI:()=>v_,R50:()=>y_,GBs:()=>eb}),s(66257);let y=null,A=!1,M=1;const D=Symbol("SIGNAL");function b(e){const t=y;return y=e,t}const C={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function _(e){if(A)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const t=y.nextProducerIndex++;Ie(y),t<y.producerNode.length&&y.producerNode[t]!==e&&ve(y)&&Y(y.producerNode[t],y.producerIndexOfThis[t]),y.producerNode[t]!==e&&(y.producerNode[t]=e,y.producerIndexOfThis[t]=ve(y)?le(e,y,t):0),y.producerLastReadVersion[t]=e.version}function w(e){if((!ve(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==M)){if(!e.producerMustRecompute(e)&&!K(e))return e.dirty=!1,void(e.lastCleanEpoch=M);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=M}}function R(e){if(void 0===e.liveConsumerNode)return;const t=A;A=!0;try{for(const n of e.liveConsumerNode)n.dirty||x(n)}finally{A=t}}function V(){return!1!==y?.consumerAllowSignalWrites}function x(e){e.dirty=!0,R(e),e.consumerMarkedDirty?.(e)}function z(e){return e&&(e.nextProducerIndex=0),b(e)}function X(e,t){if(b(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(ve(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Y(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function K(e){Ie(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(w(n),r!==n.version))return!0}return!1}function ne(e){if(Ie(e),ve(e))for(let t=0;t<e.producerNode.length;t++)Y(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function le(e,t,n){if(He(e),Ie(e),0===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=le(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Y(e,t){if(He(e),Ie(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Y(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],a=e.liveConsumerNode[t];Ie(a),a.producerIndexOfThis[r]=t}}function ve(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ie(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function He(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}const Ge=Symbol("UNSET"),B=Symbol("COMPUTING"),Z=Symbol("ERRORED"),J={...C,value:Ge,dirty:!0,error:null,equal:E,producerMustRecompute:e=>e.value===Ge||e.value===B,producerRecomputeValue(e){if(e.value===B)throw new Error("Detected cycle in computations.");const t=e.value;e.value=B;const n=z(e);let r;try{r=e.computation()}catch(a){r=Z,e.error=a}finally{X(e,n)}t!==Ge&&t!==Z&&r!==Z&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let ce=function re(){throw new Error};function Se(){ce()}let oe=null;function Xe(e,t){V()||Se(),e.equal(e.value,t)||(e.value=t,function st(e){e.version++,function U(){M++}(),R(e),oe?.()}(e))}const We={...C,equal:E,value:void 0};const dt=()=>{},Wt={...C,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:dt};var mt=s(40352),Ft=s(38355),At=s(94638),lt=s(54436);const ze="https://g.co/ng/security#xss";class Ue extends Error{constructor(t,n){super(Dt(t,n)),this.code=t}}function Dt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const Gt=Symbol("InputSignalNode#UNSET"),Yt={...We,transformFn:void 0,applyValueToInputSignal(e,t){Xe(e,t)}};function Xn(e,t){const n=Object.create(Yt);function r(){if(_(n),n.value===Gt)throw new Ue(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,r[D]=n,r}function Sn(e){return{toString:e}.toString()}const Tr="__parameters__";function Fe(e,t,n){return Sn(()=>{const r=function ee(e){return function(...n){if(e){const r=e(...n);for(const a in r)this[a]=r[a]}}}(t);function a(...d){if(this instanceof a)return r.apply(this,d),this;const m=new a(...d);return I.annotation=m,I;function I(k,ie,ye){const Re=k.hasOwnProperty(Tr)?k[Tr]:Object.defineProperty(k,Tr,{value:[]})[Tr];for(;Re.length<=ye;)Re.push(null);return(Re[ye]=Re[ye]||[]).push(m),k}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const vt=globalThis;function kn(e){for(let t in e)if(e[t]===kn)return t;throw Error("Could not find renamed property on target object.")}function Hn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function An(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(An).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Vn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Mi=kn({__forward_ref__:kn});function Hr(e){return e.__forward_ref__=Hr,e.toString=function(){return An(this())},e}function _t(e){return Ct(e)?e():e}function Ct(e){return"function"==typeof e&&e.hasOwnProperty(Mi)&&e.__forward_ref__===Hr}function It(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function je(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function an(e){return pn(e,Me)||pn(e,qe)}function ln(e){return null!==an(e)}function pn(e,t){return e.hasOwnProperty(t)?e[t]:null}function zn(e){return e&&(e.hasOwnProperty(Je)||e.hasOwnProperty(xt))?e[Je]:null}const Me=kn({\u0275prov:kn}),Je=kn({\u0275inj:kn}),qe=kn({ngInjectableDef:kn}),xt=kn({ngInjectorDef:kn});class Pt{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=je({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function wt(e){return e&&!!e.\u0275providers}const Bt=kn({\u0275cmp:kn}),Xt=kn({\u0275dir:kn}),tn=kn({\u0275pipe:kn}),en=kn({\u0275mod:kn}),Cn=kn({\u0275fac:kn}),Jn=kn({__NG_ELEMENT_ID__:kn}),tr=kn({__NG_ENV_ID__:kn});function En(e){return"string"==typeof e?e:null==e?"":String(e)}function cs(e,t){throw new Ue(-201,!1)}var or=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(or||{});let co;function Qs(){return co}function Yr(e){const t=co;return co=e,t}function Os(e,t,n){const r=an(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&or.Optional?null:void 0!==t?t:void cs()}const Jr={},Es="__NG_DI_FLAG__",Ri="ngTempTokenPath",Ss=/\n/gm,uo="__source";let Ni;function rs(e){const t=Ni;return Ni=e,t}function ho(e,t=or.Default){if(void 0===Ni)throw new Ue(-203,!1);return null===Ni?Os(e,void 0,t):Ni.get(e,t&or.Optional?null:void 0,t)}function si(e,t=or.Default){return(Qs()||ho)(_t(e),t)}function te(e,t=or.Default){return si(e,Ce(t))}function Ce(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ne(e){const t=[];for(let n=0;n<e.length;n++){const r=_t(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Ue(900,!1);let a,d=or.Default;for(let m=0;m<r.length;m++){const I=r[m],k=Vt(I);"number"==typeof k?-1===k?a=I.token:d|=k:a=I}t.push(si(a,d))}else t.push(si(r))}return t}function tt(e,t){return e[Es]=t,e.prototype[Es]=t,e}function Vt(e){return e[Es]}const Dn=tt(Fe("Optional"),8),dr=tt(Fe("SkipSelf"),4);function br(e,t){return e.hasOwnProperty(Cn)?e[Cn]:null}function ni(e,t){e.forEach(n=>Array.isArray(n)?ni(n,t):t(n))}function zi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function hr(e,t,n){let r=xr(e,t);return r>=0?e[1|r]=n:(r=~r,function aa(e,t,n,r){let a=e.length;if(a==t)e.push(n,r);else if(1===a)e.push(r,e[0]),e[0]=n;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function vr(e,t){const n=xr(e,t);if(n>=0)return e[1|n]}function xr(e,t){return function Ps(e,t,n){let r=0,a=e.length>>n;for(;a!==r;){const d=r+(a-r>>1),m=e[d<<n];if(t===m)return d<<n;m>t?a=d:r=d+1}return~(a<<n)}(e,t,1)}const sr={},fr=[],_i=new Pt(""),$o=new Pt("",-1),Yi=new Pt("");class Dr{get(t,n=Jr){if(n===Jr){const r=new Error(`NullInjectorError: No provider for ${An(t)}!`);throw r.name="NullInjectorError",r}return n}}var Xi=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Xi||{}),ji=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ji||{}),ss=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ss||{});function Js(e,t,n){let r=e.length;for(;;){const a=e.indexOf(t,n);if(-1===a)return a;if(0===a||e.charCodeAt(a-1)<=32){const d=t.length;if(a+d===r||e.charCodeAt(a+d)<=32)return a}n=a+1}}function To(e,t,n){let r=0;for(;r<n.length;){const a=n[r];if("number"==typeof a){if(0!==a)break;r++;const d=n[r++],m=n[r++],I=n[r++];e.setAttribute(t,m,I,d)}else{const d=a,m=n[++r];pe(d)?e.setProperty(t,d,m):e.setAttribute(t,d,m),r++}}return r}function ue(e){return 3===e||4===e||6===e}function pe(e){return 64===e.charCodeAt(0)}function Q(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const a=t[r];"number"==typeof a?n=a:0===n||Oe(e,n,a,null,-1===n||2===n?t[++r]:null)}}return e}function Oe(e,t,n,r,a){let d=0,m=e.length;if(-1===t)m=-1;else for(;d<e.length;){const I=e[d++];if("number"==typeof I){if(I===t){m=-1;break}if(I>t){m=d-1;break}}}for(;d<e.length;){const I=e[d];if("number"==typeof I)break;if(I===n){if(null===r)return void(null!==a&&(e[d+1]=a));if(r===e[d+1])return void(e[d+2]=a)}d++,null!==r&&d++,null!==a&&d++}-1!==m&&(e.splice(m,0,t),d=m+1),e.splice(d++,0,n),null!==r&&e.splice(d++,0,r),null!==a&&e.splice(d++,0,a)}const ot="ng-template";function Rn(e,t,n,r){let a=0;if(r){for(;a<t.length&&"string"==typeof t[a];a+=2)if("class"===t[a]&&-1!==Js(t[a+1].toLowerCase(),n,0))return!0}else if(pr(e))return!1;if(a=t.indexOf(1,a),a>-1){let d;for(;++a<t.length&&"string"==typeof(d=t[a]);)if(d.toLowerCase()===n)return!0}return!1}function pr(e){return 4===e.type&&e.value!==ot}function $s(e,t,n){return t===(4!==e.type||n?e.value:ot)}function Zs(e,t,n){let r=4;const a=e.attrs,d=null!==a?function xl(e){for(let t=0;t<e.length;t++)if(ue(e[t]))return t;return e.length}(a):0;let m=!1;for(let I=0;I<t.length;I++){const k=t[I];if("number"!=typeof k){if(!m)if(4&r){if(r=2|1&r,""!==k&&!$s(e,k,n)||""===k&&1===t.length){if(Di(r))return!1;m=!0}}else if(8&r){if(null===a||!Rn(e,a,k,n)){if(Di(r))return!1;m=!0}}else{const ie=t[++I],ye=Oo(k,a,pr(e),n);if(-1===ye){if(Di(r))return!1;m=!0;continue}if(""!==ie){let Re;if(Re=ye>d?"":a[ye+1].toLowerCase(),2&r&&ie!==Re){if(Di(r))return!1;m=!0}}}}else{if(!m&&!Di(r)&&!Di(k))return!1;if(m&&Di(k))continue;m=!1,r=k|1&r}}return Di(r)||m}function Di(e){return!(1&e)}function Oo(e,t,n,r){if(null===t)return-1;let a=0;if(r||!n){let d=!1;for(;a<t.length;){const m=t[a];if(m===e)return a;if(3===m||6===m)d=!0;else{if(1===m||2===m){let I=t[++a];for(;"string"==typeof I;)I=t[++a];continue}if(4===m)break;if(0===m){a+=4;continue}}a+=d?1:2}return-1}return function Zr(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function vc(e,t,n=!1){for(let r=0;r<t.length;r++)if(Zs(e,t[r],n))return!0;return!1}function ca(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let a=0;a<e.length;a++)if(e[a]!==r[a])continue e;return!0}}return!1}function Ms(e,t){return e?":not("+t.trim()+")":t}function _c(e){let t=e[0],n=1,r=2,a="",d=!1;for(;n<e.length;){let m=e[n];if("string"==typeof m)if(2&r){const I=e[++n];a+="["+m+(I.length>0?'="'+I+'"':"")+"]"}else 8&r?a+="."+m:4&r&&(a+=" "+m);else""!==a&&!Di(m)&&(t+=Ms(d,a),a=""),r=m,d=d||!Di(r);n++}return""!==a&&(t+=Ms(d,a)),t}function el(e){return Sn(()=>{const t=tl(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Xi.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ji.Emulated,styles:e.styles||fr,_:null,schemas:e.schemas||null,tView:null,id:""};Go(n);const r=e.dependencies;return n.directiveDefs=eo(r,!1),n.pipeDefs=eo(r,!0),n.id=function nl(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of n)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function du(e){return qn(e)||qr(e)}function qs(e){return null!==e}function Wo(e){return Sn(()=>({type:e.type,bootstrap:e.bootstrap||fr,declarations:e.declarations||fr,imports:e.imports||fr,exports:e.exports||fr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function po(e,t){if(null==e)return sr;const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r];let d,m,I=ss.None;Array.isArray(a)?(I=a[0],d=a[1],m=a[2]??d):(d=a,m=a),t?(n[d]=I!==ss.None?[r,I]:r,t[d]=m):n[d]=r}return n}function Sc(e){return Sn(()=>{const t=tl(e);return Go(t),t})}function Oa(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function qn(e){return e[Bt]||null}function qr(e){return e[Xt]||null}function oi(e){return e[tn]||null}function Ji(e){const t=qn(e)||qr(e)||oi(e);return null!==t&&t.standalone}function Ti(e,t){const n=e[en]||null;if(!n&&!0===t)throw new Error(`Type ${An(e)} does not have '\u0275mod' property.`);return n}function tl(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||sr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||fr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:po(e.inputs,t),outputs:po(e.outputs),debugInfo:null}}function Go(e){e.features?.forEach(t=>t(e))}function eo(e,t){if(!e)return null;const n=t?oi:du;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(qs)}function Ko(e){return{\u0275providers:e}}function Ho(...e){return{\u0275providers:wa(0,e),\u0275fromNgModule:!0}}function wa(e,...t){const n=[],r=new Set;let a;const d=m=>{n.push(m)};return ni(t,m=>{const I=m;da(I,d,[],r)&&(a||=[],a.push(I))}),void 0!==a&&Fl(a,d),n}function Fl(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:a}=e[n];rl(a,d=>{t(d,r)})}}function da(e,t,n,r){if(!(e=_t(e)))return!1;let a=null,d=zn(e);const m=!d&&qn(e);if(d||m){if(m&&!m.standalone)return!1;a=e}else{const k=e.ngModule;if(d=zn(k),!d)return!1;a=k}const I=r.has(a);if(m){if(I)return!1;if(r.add(a),m.dependencies){const k="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const ie of k)da(ie,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!I){let ie;r.add(a);try{ni(d.imports,ye=>{da(ye,t,n,r)&&(ie||=[],ie.push(ye))})}finally{}void 0!==ie&&Fl(ie,t)}if(!I){const ie=br(a)||(()=>new a);t({provide:a,useFactory:ie,deps:fr},a),t({provide:Yi,useValue:a,multi:!0},a),t({provide:_i,useValue:()=>si(a),multi:!0},a)}const k=d.providers;if(null!=k&&!I){const ie=e;rl(k,ye=>{t(ye,ie)})}}}return a!==e&&void 0!==e.providers}function rl(e,t){for(let n of e)wt(n)&&(n=n.\u0275providers),Array.isArray(n)?rl(n,t):t(n)}const hu=kn({provide:String,useValue:kn});function Ul(e){return null!==e&&"object"==typeof e&&hu in e}function wo(e){return"function"==typeof e}const ha=new Pt(""),Oi={},ui={};let Ws;function Cs(){return void 0===Ws&&(Ws=new Dr),Ws}class ds{}class Fi extends ds{get destroyed(){return this._destroyed}constructor(t,n,r,a){super(),this.parent=n,this.source=r,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gs(t,m=>this.processProvider(m)),this.records.set($o,di(void 0,this)),a.has("environment")&&this.records.set(ds,di(void 0,this));const d=this.records.get(ha);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Yi,fr,or.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=b(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=rs(this),r=Yr(void 0);try{return t()}finally{rs(n),Yr(r)}}get(t,n=Jr,r=or.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(tr))return t[tr](this);r=Ce(r);const d=rs(this),m=Yr(void 0);try{if(!(r&or.SkipSelf)){let k=this.records.get(t);if(void 0===k){const ie=function Po(e){return"function"==typeof e||"object"==typeof e&&e instanceof Pt}(t)&&an(t);k=ie&&this.injectableDefInScope(ie)?di(Li(t),Oi):null,this.records.set(t,k)}if(null!=k)return this.hydrate(t,k)}return(r&or.Self?Cs():this.parent).get(t,n=r&or.Optional&&n===Jr?null:n)}catch(I){if("NullInjectorError"===I.name){if((I[Ri]=I[Ri]||[]).unshift(An(t)),d)throw I;return function rn(e,t,n,r){const a=e[Ri];throw t[uo]&&a.unshift(t[uo]),e.message=function gn(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=An(t);if(Array.isArray(t))a=t.map(An).join(" -> ");else if("object"==typeof t){let d=[];for(let m in t)if(t.hasOwnProperty(m)){let I=t[m];d.push(m+":"+("string"==typeof I?JSON.stringify(I):An(I)))}a=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${a}]: ${e.replace(Ss,"\n  ")}`}("\n"+e.message,a,n,r),e.ngTokenPath=a,e[Ri]=null,e}(I,t,"R3InjectorError",this.source)}throw I}finally{Yr(m),rs(d)}}resolveInjectorInitializers(){const t=b(null),n=rs(this),r=Yr(void 0);try{const d=this.get(_i,fr,or.Self);for(const m of d)m()}finally{rs(n),Yr(r),b(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(An(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ue(205,!1)}processProvider(t){let n=wo(t=_t(t))?t:_t(t&&t.provide);const r=function il(e){return Ul(e)?di(void 0,e.useValue):di(to(e),Oi)}(t);if(!wo(t)&&!0===t.multi){let a=this.records.get(n);a||(a=di(void 0,Oi,!0),a.factory=()=>Ne(a.multi),this.records.set(n,a)),n=t,a.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=b(null);try{return n.value===Oi&&(n.value=ui,n.value=n.factory()),"object"==typeof n.value&&n.value&&function sl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=_t(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Li(e){const t=an(e),n=null!==t?t.factory:br(e);if(null!==n)return n;if(e instanceof Pt)throw new Ue(204,!1);if(e instanceof Function)return function Pa(e){if(e.length>0)throw new Ue(204,!1);const n=function jn(e){return e&&(e[Me]||e[qe])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Ue(204,!1)}function to(e,t,n){let r;if(wo(e)){const a=_t(e);return br(a)||Li(a)}if(Ul(e))r=()=>_t(e.useValue);else if(function bc(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ne(e.deps||[]));else if(function fu(e){return!(!e||!e.useExisting)}(e))r=()=>si(_t(e.useExisting));else{const a=_t(e&&(e.useClass||e.provide));if(!function Zi(e){return!!e.deps}(e))return br(a)||Li(a);r=()=>new a(...Ne(e.deps))}return r}function di(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Gs(e,t){for(const n of e)Array.isArray(n)?Gs(n,t):n&&wt(n)?Gs(n.\u0275providers,t):t(n)}function go(e,t){e instanceof Fi&&e.assertNotDestroyed();const r=rs(e),a=Yr(void 0);try{return t()}finally{rs(r),Yr(a)}}function ol(){return void 0!==Qs()||null!=function us(){return Ni}()}function zo(e){if(!ol())throw new Ue(-203,!1)}const gr=0,sn=1,Kn=2,ar=3,Ui=4,ei=5,ri=6,no=7,li=8,Bi=9,Rs=10,nr=11,Mo=12,Cc=13,Vi=14,ci=15,mo=16,fa=17,os=18,Ro=19,Ma=20,yo=21,al=22,pa=23,mr=25,Vl=1,vo=7,Na=9,wi=10;var Ac=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ac||{});function $i(e){return Array.isArray(e)&&"object"==typeof e[Vl]}function Ei(e){return Array.isArray(e)&&!0===e[Vl]}function Dc(e){return!!(4&e.flags)}function Qo(e){return e.componentOffset>-1}function jl(e){return!(1&~e.flags)}function hs(e){return!!e.template}function ll(e){return!!(512&e[Kn])}function La(e){return!(256&~e[Kn])}class bn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function fs(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Ks(){return No}function No(e){return e.type.prototype.ngOnChanges&&(e.setInput=xh),Lo}function Lo(){const e=ka(this),t=e?.current;if(t){const n=e.previous;if(n===sr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function xh(e,t,n,r,a){const d=this.declaredInputs[r],m=ka(e)||function mu(e,t){return e[md]=t}(e,{previous:sr,current:null}),I=m.current||(m.current={}),k=m.previous,ie=k[d];I[d]=new bn(ie&&ie.currentValue,n,k===sr),fs(e,t,a,n)}Ks.ngInherit=!0;const md="__ngSimpleChanges__";function ka(e){return e[md]||null}const Yo=function(e,t,n){},Wl="svg";let Tn=!1;function yr(e){for(;Array.isArray(e);)e=e[gr];return e}function Jo(e,t){return yr(t[e])}function Is(e,t){return yr(t[e.index])}function ro(e,t){return e.data[t]}function Fa(e,t){return e[t]}function Hs(e,t){const n=t[e];return $i(n)?n:n[gr]}function cl(e){return!(128&~e[Kn])}function _o(e,t){return null==t?null:e[t]}function yu(e){e[fa]=0}function vu(e){1024&e[Kn]||(e[Kn]|=1024,cl(e)&&ul(e))}function vd(e,t){for(;e>0;)t=t[Vi],e--;return t}function Ua(e){return!!(9216&e[Kn]||e[pa]?.dirty)}function ga(e){e[Rs].changeDetectionScheduler?.notify(1),Ua(e)?ul(e):64&e[Kn]&&(function mp(){return Tn}()?(e[Kn]|=1024,ul(e)):e[Rs].changeDetectionScheduler?.notify())}function ul(e){e[Rs].changeDetectionScheduler?.notify();let t=Zo(e);for(;null!==t&&!(8192&t[Kn])&&(t[Kn]|=8192,cl(t));)t=Zo(t)}function _u(e,t){if(!(256&~e[Kn]))throw new Ue(911,!1);null===e[yo]&&(e[yo]=[]),e[yo].push(t)}function Oc(e,t){if(null===e[yo])return;const n=e[yo].indexOf(t);-1!==n&&e[yo].splice(n,1)}function Zo(e){const t=e[ar];return Ei(t)?t[ar]:t}const ir={lFrame:jh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function _d(){return ir.bindingsEnabled}function lr(){return null!==ir.skipHydrationRootTNode}function Kt(){return ir.lFrame.lView}function Or(){return ir.lFrame.tView}function dl(e){return ir.lFrame.contextLView=e,e[li]}function ya(e){return ir.lFrame.contextLView=null,e}function Mr(){let e=Ep();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ep(){return ir.lFrame.currentTNode}function Wr(e,t){const n=ir.lFrame;n.currentTNode=e,n.isParent=t}function Ba(){return ir.lFrame.isParent}function Cu(){ir.lFrame.isParent=!1}function Ns(){const e=ir.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function xo(){return ir.lFrame.bindingIndex}function Eo(){return ir.lFrame.bindingIndex++}function So(e){const t=ir.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mm(e,t){const n=ir.lFrame;n.bindingIndex=n.bindingRootIndex=e,Bh(t)}function Bh(e){ir.lFrame.currentDirectiveIndex=e}function Cd(){return ir.lFrame.currentQueryIndex}function Id(e){ir.lFrame.currentQueryIndex=e}function zs(e){const t=e[sn];return 2===t.type?t.declTNode:1===t.type?e[ei]:null}function Ad(e,t,n){if(n&or.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||n&or.Host||(a=zs(d),null===a||(d=d[Vi],10&a.type))););if(null===a)return!1;t=a,e=d}const r=ir.lFrame=Dd();return r.currentTNode=t,r.lView=e,!0}function Vh(e){const t=Dd(),n=e[sn];ir.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Dd(){const e=ir.lFrame,t=null===e?null:e.child;return null===t?jh(e):t}function jh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Td(){const e=ir.lFrame;return ir.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $h=Td;function fl(){const e=Td();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function as(){return ir.lFrame.selectedIndex}function Va(e){ir.lFrame.selectedIndex=e}function ii(){const e=ir.lFrame;return ro(e.tView,e.selectedIndex)}function Gh(){ir.lFrame.currentNamespace=Wl}function Kh(){!function wd(){ir.lFrame.currentNamespace=null}()}let Au=!0;function Mc(){return Au}function bo(e){Au=e}function Gl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const d=e.data[n].type.prototype,{ngAfterContentInit:m,ngAfterContentChecked:I,ngAfterViewInit:k,ngAfterViewChecked:ie,ngOnDestroy:ye}=d;m&&(e.contentHooks??=[]).push(-n,m),I&&((e.contentHooks??=[]).push(n,I),(e.contentCheckHooks??=[]).push(n,I)),k&&(e.viewHooks??=[]).push(-n,k),ie&&((e.viewHooks??=[]).push(n,ie),(e.viewCheckHooks??=[]).push(n,ie)),null!=ye&&(e.destroyHooks??=[]).push(n,ye)}}function Pd(e,t,n){ko(e,t,3,n)}function Kl(e,t,n,r){(3&e[Kn])===n&&ko(e,t,n,r)}function Md(e,t){let n=e[Kn];(3&n)===t&&(n&=16383,n+=1,e[Kn]=n)}function ko(e,t,n,r){const d=r??-1,m=t.length-1;let I=0;for(let k=void 0!==r?65535&e[fa]:0;k<m;k++)if("number"==typeof t[k+1]){if(I=t[k],null!=r&&I>=r)break}else t[k]<0&&(e[fa]+=65536),(I<d||-1==d)&&(Rc(e,n,t,k),e[fa]=(4294901760&e[fa])+k+2),k++}function Rd(e,t){Yo(4,e,t);const n=b(null);try{t.call(e)}finally{b(n),Yo(5,e,t)}}function Rc(e,t,n,r){const a=n[r]<0,d=n[r+1],I=e[a?-n[r]:n[r]];a?e[Kn]>>14<e[fa]>>16&&(3&e[Kn])===t&&(e[Kn]+=16384,Rd(I,d)):Rd(I,d)}const ja=-1;class va{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function kd(e){return e!==ja}function zl(e){return 32767&e}function $a(e,t){let n=function Cp(e){return e>>16}(e),r=t;for(;n>0;)r=r[Vi],n--;return r}let Du=!0;function Fd(e){const t=Du;return Du=e,t}const Wa=255,Ou=5;let Ip=0;const io={};function Lc(e,t){const n=xc(e,t);if(-1!==n)return n;const r=t[sn];r.firstCreatePass&&(e.injectorIndex=t.length,so(r.data,e),so(t,null),so(r.blueprint,null));const a=ea(e,t),d=e.injectorIndex;if(kd(a)){const m=zl(a),I=$a(a,t),k=I[sn].data;for(let ie=0;ie<8;ie++)t[d+ie]=I[m+ie]|k[m+ie]}return t[d+8]=a,d}function so(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xc(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ea(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,a=t;for(;null!==a;){if(r=Pu(a),null===r)return ja;if(n++,a=a[Vi],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ja}function kc(e,t,n){!function Ap(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jn)&&(r=n[Jn]),null==r&&(r=n[Jn]=Ip++);const a=r&Wa;t.data[e+(a>>Ou)]|=1<<a}(e,t,n)}function Ud(e,t,n){if(n&or.Optional||void 0!==e)return e;cs()}function ta(e,t,n,r){if(n&or.Optional&&void 0===r&&(r=null),!(n&(or.Self|or.Host))){const a=e[Bi],d=Yr(void 0);try{return a?a.get(t,r,n&or.Optional):Os(t,r,n&or.Optional)}finally{Yr(d)}}return Ud(r,0,n)}function Ga(e,t,n,r=or.Default,a){if(null!==e){if(2048&t[Kn]&&!(r&or.Self)){const m=function Hh(e,t,n,r,a){let d=e,m=t;for(;null!==d&&null!==m&&2048&m[Kn]&&!(512&m[Kn]);){const I=Fc(d,m,n,r|or.Self,io);if(I!==io)return I;let k=d.parent;if(!k){const ie=m[Ma];if(ie){const ye=ie.get(n,io,r);if(ye!==io)return ye}k=Pu(m),m=m[Vi]}d=k}return a}(e,t,n,r,io);if(m!==io)return m}const d=Fc(e,t,n,r,io);if(d!==io)return d}return ta(t,n,r,a)}function Fc(e,t,n,r,a){const d=function Io(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Jn)?e[Jn]:void 0;return"number"==typeof t?t>=0?t&Wa:Ql:t}(n);if("function"==typeof d){if(!Ad(t,e,r))return r&or.Host?Ud(a,0,r):ta(t,n,r,a);try{let m;if(m=d(r),null!=m||r&or.Optional)return m;cs()}finally{$h()}}else if("number"==typeof d){let m=null,I=xc(e,t),k=ja,ie=r&or.Host?t[ci][ei]:null;for((-1===I||r&or.SkipSelf)&&(k=-1===I?ea(e,t):t[I+8],k!==ja&&pl(r,!1)?(m=t[sn],I=zl(k),t=$a(k,t)):I=-1);-1!==I;){const ye=t[sn];if(es(d,I,ye.data)){const Re=Bd(I,t,n,m,r,ie);if(Re!==io)return Re}k=t[I+8],k!==ja&&pl(r,t[sn].data[I+8]===ie)&&es(d,I,t)?(m=ye,I=zl(k),t=$a(k,t)):I=-1}}return a}function Bd(e,t,n,r,a,d){const m=t[sn],I=m.data[e+8],ye=Vd(I,m,n,null==r?Qo(I)&&Du:r!=m&&!!(3&I.type),a&or.Host&&d===I);return null!==ye?_a(t,m,ye,I):io}function Vd(e,t,n,r,a){const d=e.providerIndexes,m=t.data,I=1048575&d,k=e.directiveStart,ye=d>>20,ct=a?I+ye:e.directiveEnd;for(let St=r?I:I+ye;St<ct;St++){const Ot=m[St];if(St<k&&n===Ot||St>=k&&Ot.type===n)return St}if(a){const St=m[k];if(St&&hs(St)&&St.type===n)return k}return null}function _a(e,t,n,r){let a=e[n];const d=t.data;if(function Ls(e){return e instanceof va}(a)){const m=a;m.resolving&&function ls(e,t){throw t&&t.join(" > "),new Ue(-200,e)}(function Wn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():En(e)}(d[n]));const I=Fd(m.canSeeViewProviders);m.resolving=!0;const ie=m.injectImpl?Yr(m.injectImpl):null;Ad(e,r,or.Default);try{a=e[n]=m.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function bp(e,t,n){const{ngOnChanges:r,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(r){const m=No(t);(n.preOrderHooks??=[]).push(e,m),(n.preOrderCheckHooks??=[]).push(e,m)}a&&(n.preOrderHooks??=[]).push(0-e,a),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==ie&&Yr(ie),Fd(I),m.resolving=!1,$h()}}return a}function es(e,t,n){return!!(n[t+(e>>Ou)]&1<<e)}function pl(e,t){return!(e&or.Self||e&or.Host&&t)}class Pi{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ga(this._tNode,this._lView,t,Ce(r),n)}}function Ql(){return new Pi(Mr(),Kt())}function jd(e){return Sn(()=>{const t=e.prototype.constructor,n=t[Cn]||wu(t),r=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==r;){const d=a[Cn]||wu(a);if(d&&d!==n)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function wu(e){return Ct(e)?()=>{const t=wu(_t(e));return t&&t()}:br(e)}function Pu(e){const t=e[sn],n=t.type;return 2===n?t.declTNode:1===n?e[ei]:null}function Yl(e){return function Dp(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let a=0;for(;a<r;){const d=n[a];if(ue(d))break;if(0===d)a+=2;else if("number"==typeof d)for(a++;a<r&&"string"==typeof n[a];)a++;else{if(d===t)return n[a+1];a+=2}}}return null}(Mr(),e)}function Ru(e,t=null,n=null,r){const a=ml(e,t,n,r);return a.resolveInjectorInitializers(),a}function ml(e,t=null,n=null,r,a=new Set){const d=[n||fr,Ho(e)];return r=r||("object"==typeof e?void 0:An(e)),new Fi(d,t||Cs(),r||null,a)}let ps=(()=>{class e{static{this.THROW_IF_NOT_FOUND=Jr}static{this.NULL=new Dr}static create(n,r){if(Array.isArray(n))return Ru({name:""},r,n,"");{const a=n.name??"";return Ru({name:a},n.parent,n.providers,a)}}static{this.\u0275prov=je({token:e,providedIn:"any",factory:()=>si($o)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function Jl(e){return e.ngOriginalError}class Ka{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Jl(t);for(;n&&Jl(n);)n=Jl(n);return n||null}}const Nu=new Pt("",{providedIn:"root",factory:()=>te(Ka).handleError.bind(void 0)});let Zl=(()=>{class e{static{this.__NG_ELEMENT_ID__=Pp}static{this.__NG_ENV_ID__=n=>n}}return e})();class Gd extends Zl{constructor(t){super(),this._lView=t}onDestroy(t){return _u(this._lView,t),()=>Oc(this._lView,t)}}function Pp(){return new Gd(Kt())}function Kd(e,t){return Xn(e,t)}const ym=(Kd.required=function ql(e){return Xn(Gt,e)},Kd);function vm(){return Ha(Mr(),Kt())}function Ha(e,t){return new ku(Is(e,t))}let ku=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=vm}}return e})();function Mp(e){return e instanceof ku?e.nativeElement:e}function Hd(e){return t=>{setTimeout(e,void 0,t)}}const xs=class $c extends mt.B{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,ol()&&(this.destroyRef=te(Zl,{optional:!0})??void 0)}emit(t){const n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let a=t,d=n||(()=>null),m=r;if(t&&"object"==typeof t){const k=t;a=k.next?.bind(k),d=k.error?.bind(k),m=k.complete?.bind(k)}this.__isAsync&&(d=Hd(d),a&&(a=Hd(a)),m&&(m=Hd(m)));const I=super.subscribe({next:a,error:d,complete:m});return t instanceof Ft.yU&&t.add(I),I}};function qh(){return this._results[Symbol.iterator]()}class Ea{get changes(){return this._changes??=new xs}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Ea.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=qh)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Lr(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],d=t[r];if(n&&(a=n(a),d=n(d)),d!==a)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function ec(e){return!(128&~e.flags)}const Np=new Map;let zd=0;const Vu="__ngContext__";function Ds(e,t){$i(t)?(e[Vu]=t[Ro],function _m(e){Np.set(e[Ro],e)}(t)):e[Vu]=t}function Zd(e){return nf(e[Mo])}function tf(e){return nf(e[Ui])}function nf(e){for(;null!==e&&!Ei(e);)e=e[Ui];return e}let xi;function lf(e){xi=e}function za(){if(void 0!==xi)return xi;if(typeof document<"u")return document;throw new Ue(210,!1)}const Am=new Pt("",{providedIn:"root",factory:()=>nc}),nc="ng",cf=new Pt(""),eh=new Pt("",{providedIn:"platform",factory:()=>"unknown"}),Wp=new Pt(""),Gu=new Pt("",{providedIn:"root",factory:()=>za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let gf=()=>null;function ih(e,t,n=!1){return gf(e,t,n)}const Il=new Pt("",{providedIn:"root",factory:()=>!1});let oc,nu;function ac(e){return function Al(){if(void 0===oc&&(oc=null,vt.trustedTypes))try{oc=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return oc}()?.createHTML(e)||e}function p(){if(void 0===nu&&(nu=null,vt.trustedTypes))try{nu=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nu}function u(e){return p()?.createHTML(e)||e}function g(e){return p()?.createScriptURL(e)||e}class L{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ze})`}}class H extends L{getTypeName(){return"HTML"}}class fe extends L{getTypeName(){return"Style"}}class me extends L{getTypeName(){return"Script"}}class Ke extends L{getTypeName(){return"URL"}}class ut extends L{getTypeName(){return"ResourceURL"}}function jt(e){return e instanceof L?e.changingThisBreaksApplicationSecurity:e}function Ut(e,t){const n=function Qn(e){return e instanceof L&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ze})`)}return n===t}function On(e){return new H(e)}function xn(e){return new fe(e)}function wn(e){return new me(e)}function Gr(e){return new Ke(e)}function pi(e){return new ut(e)}class gs{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(ac(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Ki{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=ac(t),n}}const Uo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Hi(e){return(e=String(e)).match(Uo)?e:"unsafe:"+e}function mi(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ao(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const ba=mi("area,br,col,hr,img,wbr"),Dl=mi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ca=mi("rp,rt"),$n=Ao(ba,Ao(Dl,mi("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")),Ao(Ca,mi("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")),Ao(Ca,Dl)),In=mi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vr=Ao(In,mi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),mi("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")),Si=mi("script,style,template");class Ts{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,a=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)a.push(n),n=Ef(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let d=bi(n);if(d){n=d;break}n=a.pop()}return this.buf.join("")}startElement(t){const n=Sf(t).toLowerCase();if(!$n.hasOwnProperty(n))return this.sanitizedSomething=!0,!Si.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let a=0;a<r.length;a++){const d=r.item(a),m=d.name,I=m.toLowerCase();if(!Vr.hasOwnProperty(I)){this.sanitizedSomething=!0;continue}let k=d.value;In[I]&&(k=Hi(k)),this.buf.push(" ",m,'="',iu(k),'"')}return this.buf.push(">"),!0}endElement(t){const n=Sf(t).toLowerCase();$n.hasOwnProperty(n)&&!ba.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(iu(t))}}function bi(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw ts(t);return t}function Ef(e){const t=e.firstChild;if(t&&function Ia(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw ts(t);return t}function Sf(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function ts(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Tl=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Do=/([^\#-~ |!])/g;function iu(e){return e.replace(/&/g,"&amp;").replace(Tl,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Do,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ya;function Rm(e,t){let n=null;try{Ya=Ya||function gi(e){const t=new Ki(e);return function Sa(){try{return!!(new window.DOMParser).parseFromString(ac(""),"text/html")}catch{return!1}}()?new gs(t):t}(e);let r=t?String(t):"";n=Ya.getInertBodyElement(r);let a=5,d=r;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,r=d,d=n.innerHTML,n=Ya.getInertBodyElement(r)}while(r!==d);return ac((new Ts).sanitizeChildren(Qp(n)||n))}finally{if(n){const r=Qp(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Qp(e){return"content"in e&&function Nm(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var su=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(su||{});function ch(e){const t=uh();return t?u(t.sanitize(su.HTML,e)||""):Ut(e,"HTML")?u(jt(e)):Rm(za(),En(e))}function Yp(e){const t=uh();return t?t.sanitize(su.URL,e)||"":Ut(e,"URL")?jt(e):Hi(En(e))}function Lm(e){const t=uh();if(t)return g(t.sanitize(su.RESOURCE_URL,e)||"");if(Ut(e,"ResourceURL"))return g(jt(e));throw new Ue(904,!1)}function xm(e,t,n){return function b0(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Lm:Yp}(t,n)(e)}function uh(){const e=Kt();return e&&e[Rs].sanitizer}const C0=/^>|^->|<!--|-->|--!>|<!-$/g,I0=/(<|>)/g,A0="\u200b$1\u200b";function qp(e){It("Must never be called in production mode");const n=function bf(e){It("Must never be called in production mode");const n=e[ci][li];return n&&n.constructor?qn(n.constructor):null}(e)?.type?.name;return n?` (used in the '${n}' component template)`:""}function Bm(e){return e.ownerDocument.defaultView}function tg(e){return e.ownerDocument}function Bo(e){return e instanceof Function?e():e}function lc(e){return"browser"===(e??te(ps)).get(eh)}var Cf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Cf||{});let rg;function ig(e,t){return rg(e,t)}function uc(e,t,n,r,a){if(null!=r){let d,m=!1;Ei(r)?d=r:$i(r)&&(m=!0,r=r[gr]);const I=yr(r);0===e&&null!==n?null==a?cg(t,n,I):Ol(t,n,I,a||null,!0):1===e&&null!==n?Ol(t,n,I,a||null,!0):2===e?function Eh(e,t,n){const r=yh(e,t);r&&function U0(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,I,m):3===e&&t.destroyNode(I),null!=d&&function V0(e,t,n,r,a){const d=n[vo];d!==yr(n)&&uc(t,e,r,d,a);for(let I=wi;I<n.length;I++){const k=n[I];Sh(k[sn],k,e,t,r,d)}}(t,e,d,n,a)}}function ph(e,t){return e.createComment(function Xp(e){return e.replace(C0,t=>t.replace(I0,A0))}(t))}function Zu(e,t,n){return e.createElement(t,n)}function If(e,t){t[Rs].changeDetectionScheduler?.notify(1),Sh(e,t,t[nr],2,null,null)}function Gm(e,t){const n=e[Na],r=n.indexOf(t);n.splice(r,1)}function au(e,t){if(e.length<=wi)return;const n=wi+t,r=e[n];if(r){const a=r[mo];null!==a&&a!==e&&Gm(a,r),t>0&&(e[n-1][Ui]=r[Ui]);const d=ki(e,wi+t);!function og(e,t){If(e,t),t[gr]=null,t[ei]=null}(r[sn],r);const m=d[os];null!==m&&m.detachView(d[sn]),r[ar]=null,r[Ui]=null,r[Kn]&=-129}return r}function Af(e,t){if(!(256&t[Kn])){const n=t[nr];n.destroyNode&&Sh(e,t,n,3,null,null),function ag(e){let t=e[Mo];if(!t)return gh(e[sn],e);for(;t;){let n=null;if($i(t))n=t[Mo];else{const r=t[wi];r&&(n=r)}if(!n){for(;t&&!t[Ui]&&t!==e;)$i(t)&&gh(t[sn],t),t=t[ar];null===t&&(t=e),$i(t)&&gh(t[sn],t),n=t&&t[Ui]}t=n}}(t)}}function gh(e,t){if(256&t[Kn])return;const n=b(null);try{t[Kn]&=-129,t[Kn]|=256,t[pa]&&ne(t[pa]),function lg(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const a=t[n[r]];if(!(a instanceof va)){const d=n[r+1];if(Array.isArray(d))for(let m=0;m<d.length;m+=2){const I=a[d[m]],k=d[m+1];Yo(4,I,k);try{k.call(I)}finally{Yo(5,I,k)}}else{Yo(4,a,d);try{d.call(a)}finally{Yo(5,a,d)}}}}}(e,t),function Km(e,t){const n=e.cleanup,r=t[no];if(null!==n)for(let d=0;d<n.length-1;d+=2)if("string"==typeof n[d]){const m=n[d+3];m>=0?r[m]():r[-m].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[no]=null);const a=t[yo];if(null!==a){t[yo]=null;for(let d=0;d<a.length;d++)(0,a[d])()}}(e,t),1===t[sn].type&&t[nr].destroy();const r=t[mo];if(null!==r&&Ei(t[ar])){r!==t[ar]&&Gm(r,t);const a=t[os];null!==a&&a.detachView(e)}!function Yd(e){Np.delete(e[Ro])}(t)}finally{b(n)}}function mh(e,t,n){return function Df(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[gr];{const{componentOffset:a}=r;if(a>-1){const{encapsulation:d}=e.data[r.directiveStart+a];if(d===ji.None||d===ji.Emulated)return null}return Is(r,n)}}(e,t.parent,n)}function Ol(e,t,n,r,a){e.insertBefore(t,n,r,a)}function cg(e,t,n){e.appendChild(t,n)}function Hm(e,t,n,r,a){null!==r?Ol(e,t,n,r,a):cg(e,t,n)}function yh(e,t){return e.parentNode(t)}function Qm(e,t,n){return dg(e,t,n)}let vh,dg=function Tf(e,t,n){return 40&e.type?Is(e,n):null};function qu(e,t,n,r){const a=mh(e,r,t),d=t[nr],I=Qm(r.parent||t[ei],r,t);if(null!=a)if(Array.isArray(n))for(let k=0;k<n.length;k++)Hm(d,a,n[k],I,!1);else Hm(d,a,n,I,!1);void 0!==vh&&vh(d,r,t,n,a)}function _h(e,t){if(null!==t){const n=t.type;if(3&n)return Is(t,e);if(4&n)return fg(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return _h(e,r);{const a=e[t.index];return Ei(a)?fg(-1,a):yr(a)}}if(32&n)return ig(t,e)()||yr(e[t.index]);{const r=hg(e,t);return null!==r?Array.isArray(r)?r[0]:_h(Zo(e[ci]),r):_h(e,t.next)}}return null}function hg(e,t){return null!==t?e[ci][ei].projection[t.projection]:null}function fg(e,t){const n=wi+e+1;if(n<t.length){const r=t[n],a=r[sn].firstChild;if(null!==a)return _h(r,a)}return t[vo]}function pg(e,t,n,r,a,d,m){for(;null!=n;){const I=r[n.index],k=n.type;if(m&&0===t&&(I&&Ds(yr(I),r),n.flags|=2),32&~n.flags)if(8&k)pg(e,t,n.child,r,a,d,!1),uc(t,e,a,I,d);else if(32&k){const ie=ig(n,r);let ye;for(;ye=ie();)uc(t,e,a,ye,d);uc(t,e,a,I,d)}else 16&k?Of(e,t,r,n,a,d):uc(t,e,a,I,d);n=m?n.projectionNext:n.next}}function Sh(e,t,n,r,a,d){pg(n,r,e.firstChild,t,a,d,!1)}function Of(e,t,n,r,a,d){const m=n[ci],k=m[ei].projection[r.projection];if(Array.isArray(k))for(let ie=0;ie<k.length;ie++)uc(t,e,a,k[ie],d);else{let ie=k;const ye=m[ar];ec(r)&&(ie.flags|=128),pg(e,t,ie,ye,a,d,!0)}}function Zm(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function wf(e,t,n){const{mergedAttrs:r,classes:a,styles:d}=n;null!==r&&To(e,t,r),null!==a&&Zm(e,t,a),null!==d&&function gg(e,t,n){e.setAttribute(t,"style",n)}(e,t,d)}const Ir={};function Pf(e=1){mg(Or(),Kt(),as()+e,!1)}function mg(e,t,n,r){if(!r)if(3&~t[Kn]){const d=e.preOrderHooks;null!==d&&Kl(t,d,0,n)}else{const d=e.preOrderCheckHooks;null!==d&&Pd(t,d,n)}Va(n)}function dc(e,t=or.Default){const n=Kt();return null===n?si(e,t):Ga(Mr(),n,_t(e),t)}function qm(){throw new Error("invalid")}function Mf(e,t,n,r,a,d){const m=b(null);try{let I=null;a&ss.SignalBased&&(I=t[r][D]),null!==I&&void 0!==I.transformFn&&(d=I.transformFn(d)),a&ss.HasDecoratorInputTransform&&(d=e.inputTransforms[r].call(t,d)),null!==e.setInput?e.setInput(t,I,d,n,r):fs(t,I,r,d)}finally{b(m)}}function Rf(e,t,n,r,a,d,m,I,k,ie,ye){const Re=t.blueprint.slice();return Re[gr]=a,Re[Kn]=204|r,(null!==ie||e&&2048&e[Kn])&&(Re[Kn]|=2048),yu(Re),Re[ar]=Re[Vi]=e,Re[li]=n,Re[Rs]=m||e&&e[Rs],Re[nr]=I||e&&e[nr],Re[Bi]=k||e&&e[Bi]||null,Re[ei]=d,Re[Ro]=function Lp(){return zd++}(),Re[ri]=ye,Re[Ma]=ie,Re[ci]=2==t.type?e[ci]:Re,Re}function hc(e,t,n,r,a){let d=e.data[t];if(null===d)d=function Nf(e,t,n,r,a){const d=Ep(),m=Ba(),k=e.data[t]=function xf(e,t,n,r,a,d){let m=t?t.injectorIndex:-1,I=0;return lr()&&(I|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:m,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:I,providerIndexes:0,value:a,attrs:d,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,m?d:d&&d.parent,n,t,r,a);return null===e.firstChild&&(e.firstChild=k),null!==d&&(m?null==d.child&&null!==k.parent&&(d.child=k):null===d.next&&(d.next=k,k.prev=d)),k}(e,t,n,r,a),function gm(){return ir.lFrame.inI18n}()&&(d.flags|=32);else if(64&d.type){d.type=n,d.value=r,d.attrs=a;const m=function qo(){const e=ir.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();d.injectorIndex=null===m?-1:m.injectorIndex}return Wr(d,!0),d}function ed(e,t,n,r){if(0===n)return-1;const a=t.length;for(let d=0;d<n;d++)t.push(r),e.blueprint.push(r),e.data.push(null);return a}function ey(e,t,n,r,a){const d=as(),m=2&r;try{Va(-1),m&&t.length>mr&&mg(e,t,mr,!1),Yo(m?2:0,a),n(r,a)}finally{Va(d),Yo(m?3:1,a)}}function yg(e,t,n){if(Dc(t)){const r=b(null);try{const d=t.directiveEnd;for(let m=t.directiveStart;m<d;m++){const I=e.data[m];I.contentQueries&&I.contentQueries(1,n[m],m)}}finally{b(r)}}}function vg(e,t,n){_d()&&(function Ag(e,t,n,r){const a=n.directiveStart,d=n.directiveEnd;Qo(n)&&function oy(e,t,n){const r=Is(t,e),a=Lf(n);let m=16;n.signals?m=4096:n.onPush&&(m=64);const I=td(e,Rf(e,a,null,m,r,t,null,e[Rs].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=I}(t,n,e.data[a+n.componentOffset]),e.firstCreatePass||Lc(n,t),Ds(r,t);const m=n.initialInputs;for(let I=a;I<d;I++){const k=e.data[I],ie=_a(t,e,I,n);Ds(ie,t),null!==m&&Og(0,I-a,ie,k,0,m),hs(k)&&(Hs(n.index,t)[li]=_a(t,e,I,n))}}(e,t,n,Is(n,t)),!(64&~n.flags)&&sy(e,t,n))}function _g(e,t,n=Is){const r=t.localNames;if(null!==r){let a=t.index+1;for(let d=0;d<r.length;d+=2){const m=r[d+1],I=-1===m?n(t,e):e[m];e[a++]=I}}}function Lf(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Eg(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Eg(e,t,n,r,a,d,m,I,k,ie,ye){const Re=mr+r,ct=Re+a,St=function Sg(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ir);return n}(Re,ct),Ot="function"==typeof ie?ie():ie;return St[sn]={type:e,blueprint:St,template:n,queries:null,viewQuery:I,declTNode:t,data:St.slice().fill(null,Re),bindingStartIndex:Re,expandoStartIndex:ct,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 d?d():d,pipeRegistry:"function"==typeof m?m():m,firstChild:null,schemas:k,consts:Ot,incompleteFirstPass:!1,ssrId:ye}}let W0=()=>null;function ty(e,t,n,r,a){for(let d in t){if(!t.hasOwnProperty(d))continue;const m=t[d];if(void 0===m)continue;r??={};let I,k=ss.None;Array.isArray(m)?(I=m[0],k=m[1]):I=m;let ie=d;if(null!==a){if(!a.hasOwnProperty(d))continue;ie=a[d]}0===e?ny(r,n,ie,I,k):ny(r,n,ie,I)}return r}function ny(e,t,n,r,a){let d;e.hasOwnProperty(n)?(d=e[n]).push(t,r):d=e[n]=[t,r],void 0!==a&&d.push(a)}function ao(e,t,n,r,a,d,m,I){const k=Is(t,n);let ye,ie=t.inputs;!I&&null!=ie&&(ye=ie[r])?(Mg(e,n,ye,r,a),Qo(t)&&function Fs(e,t){const n=Hs(t,e);16&n[Kn]||(n[Kn]|=64)}(n,t.index)):3&t.type&&(r=function K0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),a=null!=m?m(a,t.value||"",r):a,d.setProperty(k,r,a))}function Cg(e,t,n,r){if(_d()){const a=null===r?null:{"":-1},d=function Q0(e,t){const n=e.directiveRegistry;let r=null,a=null;if(n)for(let d=0;d<n.length;d++){const m=n[d];if(vc(t,m.selectors,!1))if(r||(r=[]),hs(m))if(null!==m.findHostDirectiveDefs){const I=[];a=a||new Map,m.findHostDirectiveDefs(m,I,a),r.unshift(...I,m),Dg(e,t,I.length)}else r.unshift(m),Dg(e,t,0);else a=a||new Map,m.findHostDirectiveDefs?.(m,r,a),r.push(m)}return null===r?null:[r,a]}(e,n);let m,I;null===d?m=I=null:[m,I]=d,null!==m&&iy(e,t,n,m,a,I),a&&function Vo(e,t,n){if(t){const r=e.localNames=[];for(let a=0;a<t.length;a+=2){const d=n[t[a+1]];if(null==d)throw new Ue(-301,!1);r.push(t[a],d)}}}(n,r,a)}n.mergedAttrs=Q(n.mergedAttrs,n.attrs)}function iy(e,t,n,r,a,d){for(let ie=0;ie<r.length;ie++)kc(Lc(n,t),e,r[ie].type);!function X0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let ie=0;ie<r.length;ie++){const ye=r[ie];ye.providersResolver&&ye.providersResolver(ye)}let m=!1,I=!1,k=ed(e,t,r.length,null);for(let ie=0;ie<r.length;ie++){const ye=r[ie];n.mergedAttrs=Q(n.mergedAttrs,ye.hostAttrs),J0(e,n,t,k,ye),Y0(k,ye,a),null!==ye.contentQueries&&(n.flags|=4),(null!==ye.hostBindings||null!==ye.hostAttrs||0!==ye.hostVars)&&(n.flags|=64);const Re=ye.type.prototype;!m&&(Re.ngOnChanges||Re.ngOnInit||Re.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),m=!0),!I&&(Re.ngOnChanges||Re.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),I=!0),k++}!function G0(e,t,n){const a=t.directiveEnd,d=e.data,m=t.attrs,I=[];let k=null,ie=null;for(let ye=t.directiveStart;ye<a;ye++){const Re=d[ye],ct=n?n.get(Re):null,Ot=ct?ct.outputs:null;k=ty(0,Re.inputs,ye,k,ct?ct.inputs:null),ie=ty(1,Re.outputs,ye,ie,Ot);const Ht=null===k||null===m||pr(t)?null:Z0(k,ye,m);I.push(Ht)}null!==k&&(k.hasOwnProperty("class")&&(t.flags|=8),k.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=I,t.inputs=k,t.outputs=ie}(e,n,d)}function sy(e,t,n){const r=n.directiveStart,a=n.directiveEnd,d=n.index,m=function Sp(){return ir.lFrame.currentDirectiveIndex}();try{Va(d);for(let I=r;I<a;I++){const k=e.data[I],ie=t[I];Bh(I),(null!==k.hostBindings||0!==k.hostVars||null!==k.hostAttrs)&&z0(k,ie)}}finally{Va(-1),Bh(m)}}function z0(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Dg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Y0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;hs(t)&&(n[""]=e)}}function J0(e,t,n,r,a){e.data[r]=a;const d=a.factory||(a.factory=br(a.type)),m=new va(d,hs(a),dc);e.blueprint[r]=m,n[r]=m,function Ig(e,t,n,r,a){const d=a.hostBindings;if(d){let m=e.hostBindingOpCodes;null===m&&(m=e.hostBindingOpCodes=[]);const I=~t.index;(function H0(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(m)!=I&&m.push(I),m.push(n,r,d)}}(e,t,r,ed(e,n,a.hostVars,Ir),a)}function Xa(e,t,n,r,a,d){const m=Is(e,t);!function Tg(e,t,n,r,a,d,m){if(null==d)e.removeAttribute(t,a,n);else{const I=null==m?En(d):m(d,r||"",a);e.setAttribute(t,a,I,n)}}(t[nr],m,d,e.value,n,r,a)}function Og(e,t,n,r,a,d){const m=d[t];if(null!==m)for(let I=0;I<m.length;)Mf(r,n,m[I++],m[I++],m[I++],m[I++])}function Z0(e,t,n){let r=null,a=0;for(;a<n.length;){const d=n[a];if(0!==d)if(5!==d){if("number"==typeof d)break;if(e.hasOwnProperty(d)){null===r&&(r=[]);const m=e[d];for(let I=0;I<m.length;I+=3)if(m[I]===t){r.push(d,m[I+1],m[I+2],n[a+1]);break}}a+=2}else a+=2;else a+=4}return r}function kf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function wg(e,t){const n=e.contentQueries;if(null!==n){const r=b(null);try{for(let a=0;a<n.length;a+=2){const m=n[a+1];if(-1!==m){const I=e.data[m];Id(n[a]),I.contentQueries(2,t[m],m)}}}finally{b(r)}}}function td(e,t){return e[Mo]?e[Cc][Ui]=t:e[Mo]=t,e[Cc]=t,t}function Pg(e,t,n){Id(0);const r=b(null);try{t(e,n)}finally{b(r)}}function ay(e){return e[no]||(e[no]=[])}function Ff(e){return e.cleanup||(e.cleanup=[])}function nd(e,t){const n=e[Bi],r=n?n.get(Ka,null):null;r&&r.handleError(t)}function Mg(e,t,n,r,a){for(let d=0;d<n.length;){const m=n[d++],I=n[d++],k=n[d++];Mf(e.data[m],t[m],r,I,k,a)}}function Aa(e,t,n){const r=Jo(t,e);!function sg(e,t,n){e.setValue(t,n)}(e[nr],r,n)}function q0(e,t){const n=Hs(t,e),r=n[sn];!function Rg(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const a=n[gr];null!==a&&null===n[ri]&&(n[ri]=ih(a,n[Bi])),Ng(r,n,n[li])}function Ng(e,t,n){Vh(t);try{const r=e.viewQuery;null!==r&&Pg(1,r,n);const a=e.template;null!==a&&ey(e,t,a,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[os]?.finishViewCreation(e),e.staticContentQueries&&wg(e,t),e.staticViewQueries&&Pg(2,e.viewQuery,n);const d=e.components;null!==d&&function Lg(e,t){for(let n=0;n<t.length;n++)q0(e,t[n])}(t,d)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[Kn]&=-5,fl()}}function bh(e,t,n,r){const a=b(null);try{const d=t.tView,k=Rf(e,d,n,4096&e[Kn]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);k[mo]=e[t.index];const ye=e[os];return null!==ye&&(k[os]=ye.createEmbeddedView(d)),Ng(d,k,n),k}finally{b(a)}}function Uf(e,t){const n=wi+t;if(n<e.length)return e[n]}function fc(e,t){return!t||null===t.firstChild||ec(e)}function rd(e,t,n,r=!0){const a=t[sn];if(function F0(e,t,n,r){const a=wi+r,d=n.length;r>0&&(n[a-1][Ui]=t),r<d-wi?(t[Ui]=n[a],zi(n,wi+r,t)):(n.push(t),t[Ui]=null),t[ar]=n;const m=t[mo];null!==m&&n!==m&&function ks(e,t){const n=e[Na];t[ci]!==t[ar][ar][ci]&&(e[Kn]|=Ac.HasTransplantedViews),null===n?e[Na]=[t]:n.push(t)}(m,t);const I=t[os];null!==I&&I.insertView(e),ga(t),t[Kn]|=128}(a,t,e,n),r){const m=fg(n,e),I=t[nr],k=yh(I,e[vo]);null!==k&&function k0(e,t,n,r,a,d){r[gr]=a,r[ei]=t,Sh(e,r,n,1,a,d)}(a,e[ei],I,t,k,m)}const d=t[ri];null!==d&&null!==d.firstChild&&(d.firstChild=null)}function Bf(e,t){const n=au(e,t);return void 0!==n&&Af(n[sn],n),n}function Ch(e,t,n,r,a=!1){for(;null!==n;){const d=t[n.index];null!==d&&r.push(yr(d)),Ei(d)&&Vf(d,r);const m=n.type;if(8&m)Ch(e,t,n.child,r);else if(32&m){const I=ig(n,t);let k;for(;k=I();)r.push(k)}else if(16&m){const I=hg(t,n);if(Array.isArray(I))r.push(...I);else{const k=Zo(t[ci]);Ch(k[sn],k,I,r,!0)}}n=a?n.projectionNext:n.next}return r}function Vf(e,t){for(let n=wi;n<e.length;n++){const r=e[n],a=r[sn].firstChild;null!==a&&Ch(r[sn],r,a,t)}e[vo]!==e[gr]&&t.push(e[vo])}let cy=[];const uy={...C,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ul(e.lView)},consumerOnSignalRead(){this.lView[pa]=this}},kg=100;function lu(e,t=!0,n=0){const r=e[Rs],a=r.rendererFactory;a.begin?.();try{!function dy(e,t){Ug(e,t);let n=0;for(;Ua(e);){if(n===kg)throw new Ue(103,!1);n++,Ug(e,1)}}(e,n)}catch(m){throw t&&nd(e,m),m}finally{a.end?.(),r.inlineEffectRunner?.flush()}}function Pl(e,t,n,r){const a=t[Kn];if(!(256&~a))return;t[Rs].inlineEffectRunner?.flush(),Vh(t);let m=null,I=null;(function Fg(e){return 2!==e.type})(e)&&(I=function xg(e){return e[pa]??function ev(e){const t=cy.pop()??Object.create(uy);return t.lView=e,t}(e)}(t),m=z(I));try{yu(t),function bd(e){return ir.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&ey(e,t,n,2,r);const k=!(3&~a);if(k){const Re=e.preOrderCheckHooks;null!==Re&&Pd(t,Re,null)}else{const Re=e.preOrderHooks;null!==Re&&Kl(t,Re,0,null),Md(t,0)}if(function rv(e){for(let t=Zd(e);null!==t;t=tf(t)){if(!(t[Kn]&Ac.HasTransplantedViews))continue;const n=t[Na];for(let r=0;r<n.length;r++){vu(n[r])}}}(t),nv(t,0),null!==e.contentQueries&&wg(e,t),k){const Re=e.contentCheckHooks;null!==Re&&Pd(t,Re)}else{const Re=e.contentHooks;null!==Re&&Kl(t,Re,1),Md(t,1)}!function j0(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const a=n[r];if(a<0)Va(~a);else{const d=a,m=n[++r],I=n[++r];mm(m,d),I(2,t[d])}}}finally{Va(-1)}}(e,t);const ie=e.components;null!==ie&&fy(t,ie,0);const ye=e.viewQuery;if(null!==ye&&Pg(2,ye,r),k){const Re=e.viewCheckHooks;null!==Re&&Pd(t,Re)}else{const Re=e.viewHooks;null!==Re&&Kl(t,Re,2),Md(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[al]){for(const Re of t[al])Re();t[al]=null}t[Kn]&=-73}catch(k){throw ul(t),k}finally{null!==I&&(X(I,m),function wl(e){e.lView[pa]!==e&&(e.lView=null,cy.push(e))}(I)),fl()}}function nv(e,t){for(let n=Zd(e);null!==n;n=tf(n))for(let r=wi;r<n.length;r++)hy(n[r],t)}function iv(e,t,n){hy(Hs(t,e),n)}function hy(e,t){cl(e)&&Ug(e,t)}function Ug(e,t){const r=e[sn],a=e[Kn],d=e[pa];let m=!!(0===t&&16&a);if(m||=!!(64&a&&0===t),m||=!!(1024&a),m||=!(!d?.dirty||!K(d)),d&&(d.dirty=!1),e[Kn]&=-9217,m)Pl(r,e,r.template,e[li]);else if(8192&a){nv(e,1);const I=r.components;null!==I&&fy(e,I,1)}}function fy(e,t,n){for(let r=0;r<t.length;r++)iv(e,t[r],n)}function cu(e){for(e[Rs].changeDetectionScheduler?.notify();e;){e[Kn]|=64;const t=Zo(e);if(ll(e)&&!t)return e;e=t}return null}class Ih{get rootNodes(){const t=this._lView,n=t[sn];return Ch(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[li]}set context(t){this._lView[li]=t}get destroyed(){return!(256&~this._lView[Kn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ar];if(Ei(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(au(t,r),ki(n,r))}this._attachedToViewContainer=!1}Af(this._lView[sn],this._lView)}onDestroy(t){_u(this._lView,t)}markForCheck(){cu(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){ga(this._lView),this._lView[Kn]|=128}detectChanges(){this._lView[Kn]|=1024,lu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,If(this._lView[sn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ue(902,!1);this._appRef=t,ga(this._lView)}}let jf=(()=>{class e{static{this.__NG_ELEMENT_ID__=q_}}return e})();const sv=jf,Z_=class extends sv{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const a=bh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ih(a)}};function q_(){return Ah(Mr(),Kt())}function Ah(e,t){return 4&e.type?new Z_(t,e,Ha(e,t)):null}let Za=()=>null;function sd(e,t){return Za(e,t)}class od{}class pv{}class sE{}class rI{resolveComponentFactory(t){throw function nI(e){const t=Error(`No component factory found for ${An(e)}.`);return t.ngComponent=e,t}(t)}}let Vg=(()=>{class e{static{this.NULL=new rI}}return e})();class aE{}let iI=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function sI(){const e=Kt(),n=Hs(Mr().index,e);return($i(n)?n:e)[nr]}()}}return e})(),oI=(()=>{class e{static{this.\u0275prov=je({token:e,providedIn:"root",factory:()=>null})}}return e})();const gv={};function aI(e,t){if(null!==function f(){return y}())throw new Ue(-602,!1)}const lE=new Set;function gc(e){lE.has(e)||(lE.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function cE(...e){}class ms{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xs(!1),this.onMicrotaskEmpty=new xs(!1),this.onStable=new xs(!1),this.onError=new xs(!1),typeof Zone>"u")throw new Ue(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&n,a.shouldCoalesceRunChangeDetection=r,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function lI(){const e="function"==typeof vt.requestAnimationFrame;let t=vt[e?"requestAnimationFrame":"setTimeout"],n=vt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const a=n[Zone.__symbol__("OriginalDelegate")];a&&(n=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function dI(e){const t=()=>{!function uI(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,yv(e),e.isCheckStableRunning=!0,mv(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),yv(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,a,d,m,I)=>{if(function hI(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(I))return n.invokeTask(a,d,m,I);try{return uE(e),n.invokeTask(a,d,m,I)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),dE(e)}},onInvoke:(n,r,a,d,m,I,k)=>{try{return uE(e),n.invoke(a,d,m,I,k)}finally{e.shouldCoalesceRunChangeDetection&&t(),dE(e)}},onHasTask:(n,r,a,d)=>{n.hasTask(a,d),r===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,yv(e),mv(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(n,r,a,d)=>(n.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ms.isInAngularZone())throw new Ue(909,!1)}static assertNotInAngularZone(){if(ms.isInAngularZone())throw new Ue(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,a){const d=this._inner,m=d.scheduleEventTask("NgZoneEvent: "+a,t,cI,cE,cE);try{return d.runTask(m,n,r)}finally{d.cancelTask(m)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const cI={};function mv(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function yv(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function uE(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dE(e){e._nesting--,mv(e)}var Oh=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Oh||{});const fE={destroy(){}};function vv(e,t){const n=t?.injector??te(ps);(t?.runOnServer||lc(n))&&n.get(jg).internalCallbacks.push(e)}function pE(e,t){!t&&zo();const n=t?.injector??te(ps);if(!lc(n))return fE;gc("NgAfterNextRender");const r=n.get(jg),a=r.handler??=new mE,d=t?.phase??Oh.MixedReadWrite,m=()=>{a.unregister(k),I()},I=n.get(Zl).onDestroy(m),k=go(n,()=>new gE(d,()=>{m(),e()}));return a.register(k),{destroy:m}}class gE{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=te(ms),this.errorHandler=te(Ka,{optional:!0}),te(od,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class mE{constructor(){this.executingCallbacks=!1,this.buckets={[Oh.EarlyRead]:new Set,[Oh.Write]:new Set,[Oh.MixedReadWrite]:new Set,[Oh.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let jg=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=je({token:e,providedIn:"root",factory:()=>new e})}}return e})();function ad(e){return!!Ti(e)}function by(e,t,n){let r=n?e.styles:null,a=n?e.classes:null,d=0;if(null!==t)for(let m=0;m<t.length;m++){const I=t[m];"number"==typeof I?d=I:1==d?a=Vn(a,I):2==d&&(r=Vn(r,I+": "+t[++m]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=a:e.classesWithoutHost=a}class _E extends Vg{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=qn(t);return new Gg(n,this.ngModule)}}function EE(e){const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];void 0!==r&&t.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return t}class SE{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ce(r);const a=this.injector.get(t,gv,r);return a!==gv||n===gv?a:this.parentInjector.get(t,n,r)}}class Gg extends sE{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=EE(t.inputs);if(null!==n)for(const a of r)n.hasOwnProperty(a.propName)&&(a.transform=n[a.propName]);return r}get outputs(){return EE(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Ec(e){return e.map(_c).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,a){const d=b(null);try{let m=(a=a||this.ngModule)instanceof ds?a:a?.injector;m&&null!==this.componentDef.getStandaloneInjector&&(m=this.componentDef.getStandaloneInjector(m)||m);const I=m?new SE(t,m):t,k=I.get(aE,null);if(null===k)throw new Ue(407,!1);const ie=I.get(oI,null),ct={rendererFactory:k,sanitizer:ie,inlineEffectRunner:null,afterRenderEventManager:I.get(jg,null),changeDetectionScheduler:I.get(od,null)},St=k.createRenderer(null,this.componentDef),Ot=this.componentDef.selectors[0][0]||"div",Ht=r?function $0(e,t,n,r){const d=r.get(Il,!1)||n===ji.ShadowDom,m=e.selectRootElement(t,d);return function z_(e){W0(e)}(m),m}(St,r,this.componentDef.encapsulation,I):Zu(St,Ot,function yI(e){const t=e.toLowerCase();return"svg"===t?Wl:"math"===t?"math":null}(Ot));let hn=512;this.componentDef.signals?hn|=4096:this.componentDef.onPush||(hn|=16);let Mn=null;null!==Ht&&(Mn=ih(Ht,I,!0));const nn=Eg(0,null,null,1,0,null,null,null,null,null,null),cr=Rf(null,nn,null,hn,null,null,ct,St,I,null,Mn);let ti,Ii;Vh(cr);try{const Vs=this.componentDef;let oa,gp=null;Vs.findHostDirectiveDefs?(oa=[],gp=new Map,Vs.findHostDirectiveDefs(Vs,oa,gp),oa.push(Vs)):oa=[Vs];const qC=function _I(e,t){const n=e[sn],r=mr;return e[r]=t,hc(n,r,2,"#host",null)}(cr,Ht),EP=function EI(e,t,n,r,a,d,m){const I=a[sn];!function SI(e,t,n,r){for(const a of e)t.mergedAttrs=Q(t.mergedAttrs,a.hostAttrs);null!==t.mergedAttrs&&(by(t,t.mergedAttrs,!0),null!==n&&wf(r,n,t))}(r,e,t,m);let k=null;null!==t&&(k=ih(t,a[Bi]));const ie=d.rendererFactory.createRenderer(t,n);let ye=16;n.signals?ye=4096:n.onPush&&(ye=64);const Re=Rf(a,Lf(n),null,ye,a[e.index],e,d,ie,null,null,k);return I.firstCreatePass&&Dg(I,e,r.length-1),td(a,Re),a[e.index]=Re}(qC,Ht,Vs,oa,cr,ct,St);Ii=ro(nn,mr),Ht&&function CI(e,t,n,r){if(r)To(e,n,["ng-version","17.3.2"]);else{const{attrs:a,classes:d}=function ua(e){const t=[],n=[];let r=1,a=2;for(;r<e.length;){let d=e[r];if("string"==typeof d)2===a?""!==d&&t.push(d,e[++r]):8===a&&n.push(d);else{if(!Di(a))break;a=d}r++}return{attrs:t,classes:n}}(t.selectors[0]);a&&To(e,n,a),d&&d.length>0&&Zm(e,n,d.join(" "))}}(St,Vs,Ht,r),void 0!==n&&function II(e,t,n){const r=e.projection=[];for(let a=0;a<t.length;a++){const d=n[a];r.push(null!=d?Array.from(d):null)}}(Ii,this.ngContentSelectors,n),ti=function bI(e,t,n,r,a,d){const m=Mr(),I=a[sn],k=Is(m,a);iy(I,a,m,n,null,r);for(let ye=0;ye<n.length;ye++)Ds(_a(a,I,m.directiveStart+ye,m),a);sy(I,a,m),k&&Ds(k,a);const ie=_a(a,I,m.directiveStart+m.componentOffset,m);if(e[li]=a[li]=ie,null!==d)for(const ye of d)ye(ie,t);return yg(I,m,a),ie}(EP,Vs,oa,gp,cr,[AI]),Ng(nn,cr,null)}finally{fl()}return new vI(this.componentType,ti,Ha(Ii,cr),cr,Ii)}finally{b(d)}}}class vI extends pv{constructor(t,n,r,a,d){super(),this.location=r,this._rootLView=a,this._tNode=d,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Ih(a,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let a;if(null!==r&&(a=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const d=this._rootLView;Mg(d[sn],d,a,t,n),this.previousInputValues.set(t,n),cu(Hs(this._tNode.index,d))}}get injector(){return new Pi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function AI(){const e=Mr();Gl(Kt()[sn],e)}let Cy=(()=>{class e{static{this.__NG_ELEMENT_ID__=DI}}return e})();function DI(){return IE(Mr(),Kt())}const TI=Cy,bE=class extends TI{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ha(this._hostTNode,this._hostLView)}get injector(){return new Pi(this._hostTNode,this._hostLView)}get parentInjector(){const t=ea(this._hostTNode,this._hostLView);if(kd(t)){const n=$a(t,this._hostLView),r=zl(t);return new Pi(n[sn].data[r+8],n)}return new Pi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=CE(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-wi}createEmbeddedView(t,n,r){let a,d;"number"==typeof r?a=r:null!=r&&(a=r.index,d=r.injector);const m=sd(this._lContainer,t.ssrId),I=t.createEmbeddedViewImpl(n||{},d,m);return this.insertImpl(I,a,fc(this._hostTNode,m)),I}createComponent(t,n,r,a,d){const m=t&&!function zt(e){return"function"==typeof e}(t);let I;if(m)I=n;else{const Ot=n||{};I=Ot.index,r=Ot.injector,a=Ot.projectableNodes,d=Ot.environmentInjector||Ot.ngModuleRef}const k=m?t:new Gg(qn(t)),ie=r||this.parentInjector;if(!d&&null==k.ngModule){const Ht=(m?ie:this.parentInjector).get(ds,null);Ht&&(d=Ht)}const ye=qn(k.componentType??{}),Re=sd(this._lContainer,ye?.id??null),St=k.create(ie,a,Re?.firstChild??null,d);return this.insertImpl(St.hostView,I,fc(this._hostTNode,Re)),St}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const a=t._lView;if(function vp(e){return Ei(e[ar])}(a)){const I=this.indexOf(t);if(-1!==I)this.detach(I);else{const k=a[ar],ie=new bE(k,k[ei],k[ar]);ie.detach(ie.indexOf(t))}}const d=this._adjustIndex(n),m=this._lContainer;return rd(m,a,d,r),t.attachToViewContainerRef(),zi(Sv(m),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=CE(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=au(this._lContainer,n);r&&(ki(Sv(this._lContainer),n),Af(r[sn],r))}detach(t){const n=this._adjustIndex(t,-1),r=au(this._lContainer,n);return r&&null!=ki(Sv(this._lContainer),n)?new Ih(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function CE(e){return e[8]}function Sv(e){return e[8]||(e[8]=[])}function IE(e,t){let n;const r=t[e.index];return Ei(r)?n=r:(n=kf(r,t,null,e),t[e.index]=n,td(t,n)),AE(n,t,e,r),new bE(n,e,t)}let AE=function TE(e,t,n,r){if(e[vo])return;let a;a=8&n.type?yr(r):function OI(e,t){const n=e[nr],r=n.createComment(""),a=Is(t,e);return Ol(n,yh(n,a),r,function ug(e,t){return e.nextSibling(t)}(n,a),!1),r}(t,n),e[vo]=a},bv=()=>!1;function DE(e,t,n){return bv(e,t,n)}class Cv{constructor(t){this.queryList=t,this.matches=null}clone(){return new Cv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Iv{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,a=[];for(let d=0;d<r;d++){const m=n.getByIndex(d);a.push(this.queries[m.indexInDeclarationView].clone())}return new Iv(a)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==wv(t,n).matches&&this.queries[n].setDirty()}}class OE{constructor(t,n,r=null){this.flags=n,this.read=r,this.predicate="string"==typeof t?function kI(e){return e.split(",").map(t=>t.trim())}(t):t}}class Av{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const a=null!==n?n.length:0,d=this.getByIndex(r).embeddedTView(t,a);d&&(d.indexInDeclarationView=r,null!==n?n.push(d):n=[d])}return null!==n?new Av(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Dv{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Dv(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let a=0;a<r.length;a++){const d=r[a];this.matchTNodeWithReadOption(t,n,RI(n,d)),this.matchTNodeWithReadOption(t,n,Vd(n,t,d,!1,!1))}else r===jf?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Vd(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const a=this.metadata.read;if(null!==a)if(a===ku||a===Cy||a===jf&&4&n.type)this.addMatch(n.index,-2);else{const d=Vd(n,t,a,!1,!1);null!==d&&this.addMatch(n.index,d)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function RI(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function LI(e,t,n,r){return-1===n?function NI(e,t){return 11&e.type?Ha(e,t):4&e.type?Ah(e,t):null}(t,e):-2===n?function xI(e,t,n){return n===ku?Ha(t,e):n===jf?Ah(t,e):n===Cy?IE(t,e):void 0}(e,t,r):_a(e,e[sn],n,t)}function wE(e,t,n,r){const a=t[os].queries[r];if(null===a.matches){const d=e.data,m=n.matches,I=[];for(let k=0;null!==m&&k<m.length;k+=2){const ie=m[k];I.push(ie<0?null:LI(t,d[ie],m[k+1],n.metadata.read))}a.matches=I}return a.matches}function Tv(e,t,n,r){const a=e.queries.getByIndex(n),d=a.matches;if(null!==d){const m=wE(e,t,a,n);for(let I=0;I<d.length;I+=2){const k=d[I];if(k>0)r.push(m[I/2]);else{const ie=d[I+1],ye=t[-k];for(let Re=wi;Re<ye.length;Re++){const ct=ye[Re];ct[mo]===ct[ar]&&Tv(ct[sn],ct,ie,r)}if(null!==ye[Na]){const Re=ye[Na];for(let ct=0;ct<Re.length;ct++){const St=Re[ct];Tv(St[sn],St,ie,r)}}}}}return r}function PE(e,t,n){const r=new Ea(!(4&~n));return function Y_(e,t,n,r){const a=ay(t);a.push(n),e.firstCreatePass&&Ff(e).push(r,a.length-1)}(e,t,r,r.destroy),(t[os]??=new Iv).queries.push(new Cv(r))-1}function NE(e,t,n){null===e.queries&&(e.queries=new Av),e.queries.track(new Dv(t,n))}function wv(e,t){return e.queries.getByIndex(t)}function LE(e,t){const n=e[sn],r=wv(n,t);return r.crossesNgTemplate?Tv(n,e,t,[]):wE(n,e,r,t)}function Pv(e){return"function"==typeof e&&void 0!==e[D]}function xE(e,t){gc("NgSignals");const n=function Ee(e){const t=Object.create(We);t.value=e;const n=()=>(_(t),t.value);return n[D]=t,n}(e),r=n[D];return t?.equal&&(r.equal=t.equal),n.set=a=>Xe(r,a),n.update=a=>function De(e,t){V()||Se(),Xe(e,t(e.value))}(r,a),n.asReadonly=kE.bind(n),n}function kE(){const e=this[D];if(void 0===e.readonlyFn){const t=()=>this();t[D]=e,e.readonlyFn=t}return e.readonlyFn}function FE(e){return Pv(e)&&"function"==typeof e.set}function Rv(e){let t=function QE(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let a;if(hs(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ue(903,!1);a=t.\u0275dir}if(a){if(n){r.push(a);const m=e;m.inputs=Ay(e.inputs),m.inputTransforms=Ay(e.inputTransforms),m.declaredInputs=Ay(e.declaredInputs),m.outputs=Ay(e.outputs);const I=a.hostBindings;I&&JI(e,I);const k=a.viewQuery,ie=a.contentQueries;if(k&&YI(e,k),ie&&XI(e,ie),zI(e,a),Hn(e.outputs,a.outputs),hs(a)&&a.data.animation){const ye=e.data;ye.animation=(ye.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let m=0;m<d.length;m++){const I=d[m];I&&I.ngInherit&&I(e),I===Rv&&(n=!1)}}t=Object.getPrototypeOf(t)}!function QI(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const a=e[r];a.hostVars=t+=a.hostVars,a.hostAttrs=Q(a.hostAttrs,n=Q(n,a.hostAttrs))}}(r)}function zI(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const a=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(a))continue;e.inputTransforms??={},e.inputTransforms[a]=t.inputTransforms[a]}}}function Ay(e){return e===sr?{}:e===fr?[]:e}function YI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,a)=>{t(r,a),n(r,a)}:t}function XI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,a,d)=>{t(r,a,d),n(r,a,d)}:t}function JI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,a)=>{t(r,a),n(r,a)}:t}function ZE(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const a=t[r];Array.isArray(a)&&a[3]&&(n[r]=a[3])}e.inputTransforms=n}class wh{}class qE{}function rA(e,t){return new Nv(e,t??null,[])}class Nv extends wh{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _E(this);const a=Ti(t);this._bootstrapComponents=Bo(a.bootstrap),this._r3Injector=ml(t,n,[{provide:wh,useValue:this},{provide:Vg,useValue:this.componentFactoryResolver},...r],An(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Lv extends qE{constructor(t){super(),this.moduleType=t}create(t){return new Nv(this.moduleType,t,[])}}class e1 extends wh{constructor(t){super(),this.componentFactoryResolver=new _E(this),this.instance=null;const n=new Fi([...t.providers,{provide:wh,useValue:this},{provide:Vg,useValue:this.componentFactoryResolver}],t.parent||Cs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function xv(e,t,n=null){return new e1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let sA=(()=>{class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(n,r,a,d){if(!this.cachedInjectors.has(n)){const m=a.length>0?xv(a,r,d):null;this.cachedInjectors.set(n,m)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=je({token:e,providedIn:"environment",factory:()=>new e})}}return e})(),Kf=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new At.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ty(e){return!!kv(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function kv(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function mc(e,t,n){return e[t]=n}function ys(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ph(e,t,n,r){const a=ys(e,t,n);return ys(e,t+1,r)||a}function Oy(e,t,n,r,a){const d=Ph(e,t,n,r);return ys(e,t+2,a)||d}function Hf(e,t,n,r,a,d,m,I){const k=Kt(),ie=Or(),ye=e+mr,Re=ie.firstCreatePass?function uA(e,t,n,r,a,d,m,I,k){const ie=t.consts,ye=hc(t,e,4,m||null,_o(ie,I));Cg(t,n,ye,_o(ie,k)),Gl(t,ye);const Re=ye.tView=Eg(2,ye,r,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,ie,null);return null!==t.queries&&(t.queries.template(t,ye),Re.queries=t.queries.embeddedTView(ye)),ye}(ye,ie,k,t,n,r,a,d,m):ie.data[ye];Wr(Re,!1);const ct=t1(ie,k,Re,e);Mc()&&qu(ie,k,ct,Re),Ds(ct,k);const St=kf(ct,k,ct,Re);return k[ye]=St,td(k,St),DE(St,Re,k),jl(Re)&&vg(ie,k,Re),null!=m&&_g(k,Re,I),Hf}let t1=function n1(e,t,n,r){return bo(!0),t[nr].createComment("")};var vs=function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e}(vs||{});const r1=0,fA=1;var _s=function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e}(_s||{}),Qg=function(e){return e[e.Initial=-1]="Initial",e}(Qg||{});const zf=0,wy=1,s1=4,o1=5;var a1=function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e}(a1||{});function My(e,t,n){const r=1===e?o1:s1;null===t[r]&&(t[r]=[]),t[r].push(n)}function Fv(e,t){const n=1===e?o1:s1,r=t[n];if(null!==r){for(const a of r)a();t[n]=null}}function l1(e){Fv(1,e),Fv(0,e)}function Ry(e){return e+1}function Mh(e,t){return e[Ry(t.index)]}function Ta(e,t){const n=Ry(t.index);return e.data[n]}function Uv(e,t){return t===_s.Placeholder?e.placeholderBlockConfig?.[r1]??null:t===_s.Loading?e.loadingBlockConfig?.[r1]??null:null}function u1(e,t){if(!e||0===e.length)return t;const n=new Set(e);for(const r of t)n.add(r);return e.length===n.size?e:Array.from(n)}const Qf=new WeakMap;let Yf=null,jv=0;class $v{constructor(){this.callbacks=new Set,this.listener=()=>{for(const t of this.callbacks)t()}}}function g1(e,t,n){const r=n.get(ms);let a=Qf.get(e);return Yf=Yf||r.runOutsideAngular(()=>new IntersectionObserver(d=>{for(const m of d)m.isIntersecting&&Qf.has(m.target)&&r.run(Qf.get(m.target).listener)})),a||(a=new $v,r.runOutsideAngular(()=>Yf.observe(e)),Qf.set(e,a),jv++),a.callbacks.add(t),()=>{Qf.has(e)&&(a.callbacks.delete(t),0===a.callbacks.size&&(Yf?.unobserve(e),Qf.delete(e),jv--),0===jv&&(Yf?.disconnect(),Yf=null))}}function m1(e,t){const r=t[Bi].get(CA);return r.add(e),()=>r.remove(e)}let CA=(()=>{class e{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=te(ms),this.requestIdleCallbackFn=(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis)}add(n){(this.executingCallbacks?this.deferred:this.current).add(n),null===this.idleId&&this.scheduleIdleCallback()}remove(n){const{current:r,deferred:a}=this;r.delete(n),a.delete(n),0===r.size&&0===a.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const n=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const r of this.current)r();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const r of this.deferred)this.current.add(r);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(n))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static{this.\u0275prov=je({token:e,providedIn:"root",factory:()=>new e})}}return e})();const AA=new Pt("");let Gv=null;function _1(e,t,n,r,a,d,m,I,k){const ie=Kt(),ye=Or(),Re=e+mr;if(Hf(e,null,0,0),ye.firstCreatePass){gc("NgDefer");const hn={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:a??null,errorTmplIndex:d??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:vs.NOT_STARTED,loadingPromise:null,providers:null};k?.(ye,hn,I,m),function gA(e,t,n){const r=Ry(t);e.data[r]=n}(ye,Re,hn)}const ct=Mr();DE(ie[Re],ct,ie);const Ot=[null,Qg.Initial,null,null,null,null];!function pA(e,t,n){e[Ry(t)]=n}(ie,Re,Ot);const Ht=()=>l1(Ot);My(0,Ot,()=>Oc(ie,Ht)),_u(ie,Ht)}function E1(){!function b1(e){const t=Kt(),n=Mr();Jf(t,n);const r=e(()=>Zf(t,n),t);My(0,Mh(t,n),r)}(m1)}function S1(e,t){const n=Kt(),r=Mr();Jf(n,r),function Xf(e,t,n,r,a,d,m){const I=e[Bi];vv(function k(){if(La(e))return;const ie=Mh(e,t),ye=ie[wy];if(ye!==Qg.Initial&&ye!==_s.Placeholder)return;const Re=function _A(e,t,n){return null==n?e:n>=0?vd(n,e):e[t.index][wi]??null}(e,t,r);if(!Re)return void vv(k,{injector:I});if(La(Re))return;const ct=function EA(e,t){return Jo(mr+t,e)}(Re,n),St=a(ct,()=>{e!==Re&&Oc(Re,St),d()},I);e!==Re&&_u(Re,St),My(m,ie,St)},{injector:I})}(n,r,e,t,g1,()=>Zf(n,r),0)}function cd(e,t,n,r=!1){const a=n[ar],d=a[sn];if(La(a))return;const m=Mh(a,t);if(D1(m[wy],e)&&D1(m[zf]??-1,e)){const k=Ta(d,t),ye=r||null===function c1(e){return e.loadingBlockConfig?.[fA]??null}(k)&&null===Uv(k,_s.Loading)&&!Uv(k,_s.Placeholder)?I1:Gv;try{ye(e,m,n,t,a)}catch(Re){nd(a,Re)}}}function I1(e,t,n,r,a){const d=function mA(e,t,n){const a=Ta(t[sn],n);switch(e){case _s.Complete:return a.primaryTmplIndex;case _s.Loading:return a.loadingTmplIndex;case _s.Error:return a.errorTmplIndex;case _s.Placeholder:return a.placeholderTmplIndex;default:return null}}(e,a,r);if(null!==d){t[wy]=e;const m=a[sn],k=ro(m,d+mr),ie=0;let ye;if(Bf(n,ie),e===_s.Complete){const St=Ta(m,r),Ot=St.providers;if(Ot&&Ot.length>0){const Ht=a[Bi],hn=function BA(e){return e instanceof SE&&e.injector.__ngOutletInjector}(Ht)?Ht:Ht.get(ds);ye=hn.get(sA).getOrCreateInjector(St,hn,Ot,"")}}const Re=sd(n,k.tView.ssrId),ct=bh(a,k,null,{dehydratedView:Re,injector:ye});rd(n,ct,ie,fc(k,Re)),cu(ct)}}function D1(e,t){return e<t}function Jf(e,t){cd(_s.Placeholder,t,e[t.index])}function T1(e,t,n){e.loadingPromise.then(()=>{e.loadingState===vs.COMPLETE?cd(_s.Complete,t,n):e.loadingState===vs.FAILED&&cd(_s.Error,t,n)})}function Zf(e,t){const n=e[sn],r=e[t.index];if(!function Wv(e){return e.get(AA,null,{optional:!0})?.behavior!==a1.Manual&&lc(e)}(e[Bi]))return;const d=Mh(e,t),m=Ta(n,t);switch(l1(d),m.loadingState){case vs.NOT_STARTED:cd(_s.Loading,t,r),function Kv(e,t,n){const r=t[Bi],a=t[sn];if(e.loadingState!==vs.NOT_STARTED)return;const d=Mh(t,n),m=function yA(e,t){return ro(e,t.primaryTmplIndex+mr)}(a,e);e.loadingState=vs.IN_PROGRESS,Fv(1,d);let I=e.dependencyResolverFn;const k=r.get(Kf),ie=k.add();e.loadingPromise=I?Promise.allSettled(I()).then(ye=>{let Re=!1;const ct=[],St=[];for(const Ot of ye){if("fulfilled"!==Ot.status){Re=!0;break}{const Ht=Ot.value,hn=qn(Ht)||qr(Ht);if(hn)ct.push(hn);else{const Mn=oi(Ht);Mn&&St.push(Mn)}}}if(e.loadingPromise=null,k.remove(ie),Re){if(e.loadingState=vs.FAILED,null===e.errorTmplIndex){qp(t);const Ht=new Ue(750,!1);nd(t,Ht)}}else{e.loadingState=vs.COMPLETE;const Ot=m.tView;if(ct.length>0){Ot.directiveRegistry=u1(Ot.directiveRegistry,ct);const hn=wa(!1,...ct.map(Mn=>Mn.type));e.providers=hn}St.length>0&&(Ot.pipeRegistry=u1(Ot.pipeRegistry,St))}}):Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=vs.COMPLETE,k.remove(ie)})}(m,e,t),m.loadingState===vs.IN_PROGRESS&&T1(m,t,r);break;case vs.IN_PROGRESS:cd(_s.Loading,t,r),T1(m,t,r);break;case vs.COMPLETE:cd(_s.Complete,t,r);break;case vs.FAILED:cd(_s.Error,t,r)}}function Hv(e,t,n,r){const a=Kt();return ys(a,Eo(),t)&&(Or(),Xa(ii(),a,e,t,n,r)),Hv}function sp(e,t,n,r,a,d,m,I,k,ie,ye,Re,ct,St){const Ot=xo();let Ht=function qa(e,t,n,r,a,d){const m=Ph(e,t,n,r);return Ph(e,t+2,a,d)||m}(e,Ot,n,a,m,k);return Ht=Ph(e,Ot+4,ye,ct)||Ht,So(6),Ht?t+En(n)+r+En(a)+d+En(m)+I+En(k)+ie+En(ye)+Re+En(ct)+St:Ir}function Ly(e,t){return e<<17|t<<2}function ud(e){return e>>17&32767}function zv(e){return 2|e}function Rh(e){return(131068&e)>>2}function Qv(e,t){return-131069&e|t<<2}function Yv(e){return 1|e}function F1(e,t,n,r){const a=e[n+1],d=null===t;let m=r?ud(a):Rh(a),I=!1;for(;0!==m&&(!1===I||d);){const ie=e[m+1];HA(e[m],t)&&(I=!0,e[m+1]=r?Yv(ie):zv(ie)),m=r?ud(ie):Rh(ie)}I&&(e[n+1]=r?zv(a):Yv(a))}function HA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&xr(e,t)>=0}const Us={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function U1(e){return e.substring(Us.key,Us.keyEnd)}function zA(e){return e.substring(Us.value,Us.valueEnd)}function B1(e,t){const n=Us.textEnd;return n===t?-1:(t=Us.keyEnd=function XA(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Us.key=t,n),lp(e,t,n))}function V1(e,t){const n=Us.textEnd;let r=Us.key=lp(e,t,n);return n===r?-1:(r=Us.keyEnd=function JA(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=$1(e,r,n),r=Us.value=lp(e,r,n),r=Us.valueEnd=function ZA(e,t,n){let r=-1,a=-1,d=-1,m=t,I=m;for(;m<n;){const k=e.charCodeAt(m++);if(59===k)return I;34===k||39===k?I=m=W1(e,k,m,n):t===m-4&&85===d&&82===a&&76===r&&40===k?I=m=W1(e,41,m,n):k>32&&(I=m),d=a,a=r,r=-33&k}return I}(e,r,n),$1(e,r,n))}function j1(e){Us.key=0,Us.keyEnd=0,Us.value=0,Us.valueEnd=0,Us.textEnd=e.length}function lp(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function $1(e,t,n,r){return(t=lp(e,t,n))<n&&t++,t}function W1(e,t,n,r){let a=-1,d=n;for(;d<r;){const m=e.charCodeAt(d++);if(m==t&&92!==a)return d;a=92==m&&92===a?0:m}throw new Error}function Xv(e,t,n){const r=Kt();return ys(r,Eo(),t)&&ao(Or(),ii(),r,e,t,r[nr],n,!1),Xv}function Jv(e,t,n,r,a){const m=a?"class":"style";Mg(e,n,t.inputs[m],m,r)}function Zv(e,t,n){return Nl(e,t,n,!1),Zv}function qv(e,t){return Nl(e,t,null,!0),qv}function Rl(e){Ll(z1,qA,e,!1)}function qA(e,t){for(let n=function YA(e){return j1(e),V1(e,lp(e,0,Us.textEnd))}(t);n>=0;n=V1(t,n))z1(e,U1(t),zA(t))}function G1(e){Ll(sD,yc,e,!0)}function yc(e,t){for(let n=function QA(e){return j1(e),B1(e,lp(e,0,Us.textEnd))}(t);n>=0;n=B1(t,n))hr(e,U1(t),!0)}function Nl(e,t,n,r){const a=Kt(),d=Or(),m=So(2);d.firstUpdatePass&&H1(d,e,m,r),t!==Ir&&ys(a,m,t)&&Q1(d,d.data[as()],a,a[nr],e,a[m+1]=function aD(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=An(jt(e)))),e}(t,n),r,m)}function Ll(e,t,n,r){const a=Or(),d=So(2);a.firstUpdatePass&&H1(a,null,d,r);const m=Kt();if(n!==Ir&&ys(m,d,n)){const I=a.data[as()];if(X1(I,r)&&!K1(a,d)){let k=r?I.classesWithoutHost:I.stylesWithoutHost;null!==k&&(n=Vn(k,n||"")),Jv(a,I,m,n,r)}else!function oD(e,t,n,r,a,d,m,I){a===Ir&&(a=fr);let k=0,ie=0,ye=0<a.length?a[0]:null,Re=0<d.length?d[0]:null;for(;null!==ye||null!==Re;){const ct=k<a.length?a[k+1]:void 0,St=ie<d.length?d[ie+1]:void 0;let Ht,Ot=null;ye===Re?(k+=2,ie+=2,ct!==St&&(Ot=Re,Ht=St)):null===Re||null!==ye&&ye<Re?(k+=2,Ot=ye):(ie+=2,Ot=Re,Ht=St),null!==Ot&&Q1(e,t,n,r,Ot,Ht,m,I),ye=k<a.length?a[k]:null,Re=ie<d.length?d[ie]:null}}(a,I,m,m[nr],m[d+1],m[d+1]=function iD(e,t,n){if(null==n||""===n)return fr;const r=[],a=jt(n);if(Array.isArray(a))for(let d=0;d<a.length;d++)e(r,a[d],!0);else if("object"==typeof a)for(const d in a)a.hasOwnProperty(d)&&e(r,d,a[d]);else"string"==typeof a&&t(r,a);return r}(e,t,n),r,d)}}function K1(e,t){return t>=e.expandoStartIndex}function H1(e,t,n,r){const a=e.data;if(null===a[n+1]){const d=a[as()],m=K1(e,n);X1(d,r)&&null===t&&!m&&(t=!1),t=function eD(e,t,n,r){const a=function Iu(e){const t=ir.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=r?t.residualClasses:t.residualStyles;if(null===a)0===(r?t.classBindings:t.styleBindings)&&(n=Jg(n=e_(null,e,t,n,r),t.attrs,r),d=null);else{const m=t.directiveStylingLast;if(-1===m||e[m]!==a)if(n=e_(a,e,t,n,r),null===d){let k=function tD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Rh(r))return e[ud(r)]}(e,t,r);void 0!==k&&Array.isArray(k)&&(k=e_(null,e,t,k[1],r),k=Jg(k,t.attrs,r),function nD(e,t,n,r){e[ud(n?t.classBindings:t.styleBindings)]=r}(e,t,r,k))}else d=function rD(e,t,n){let r;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d<a;d++)r=Jg(r,e[d].hostAttrs,n);return Jg(r,t.attrs,n)}(e,t,r)}return void 0!==d&&(r?t.residualClasses=d:t.residualStyles=d),n}(a,d,t,r),function GA(e,t,n,r,a,d){let m=d?t.classBindings:t.styleBindings,I=ud(m),k=Rh(m);e[r]=n;let ye,ie=!1;if(Array.isArray(n)?(ye=n[1],(null===ye||xr(n,ye)>0)&&(ie=!0)):ye=n,a)if(0!==k){const ct=ud(e[I+1]);e[r+1]=Ly(ct,I),0!==ct&&(e[ct+1]=Qv(e[ct+1],r)),e[I+1]=function $A(e,t){return 131071&e|t<<17}(e[I+1],r)}else e[r+1]=Ly(I,0),0!==I&&(e[I+1]=Qv(e[I+1],r)),I=r;else e[r+1]=Ly(k,0),0===I?I=r:e[k+1]=Qv(e[k+1],r),k=r;ie&&(e[r+1]=zv(e[r+1])),F1(e,ye,r,!0),F1(e,ye,r,!1),function KA(e,t,n,r,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&xr(d,t)>=0&&(n[r+1]=Yv(n[r+1]))}(t,ye,e,r,d),m=Ly(I,k),d?t.classBindings=m:t.styleBindings=m}(a,d,t,n,m,r)}}function e_(e,t,n,r,a){let d=null;const m=n.directiveEnd;let I=n.directiveStylingLast;for(-1===I?I=n.directiveStart:I++;I<m&&(d=t[I],r=Jg(r,d.hostAttrs,a),d!==e);)I++;return null!==e&&(n.directiveStylingLast=I),r}function Jg(e,t,n){const r=n?1:2;let a=-1;if(null!==t)for(let d=0;d<t.length;d++){const m=t[d];"number"==typeof m?a=m:a===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),hr(e,m,!!n||t[++d]))}return void 0===e?null:e}function z1(e,t,n){hr(e,t,jt(n))}function sD(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&hr(e,r,n)}function Q1(e,t,n,r,a,d,m,I){if(!(3&t.type))return;const k=e.data,ie=k[I+1],ye=function WA(e){return!(1&~e)}(ie)?Y1(k,t,n,a,Rh(ie),m):void 0;xy(ye)||(xy(d)||function jA(e){return!(2&~e)}(ie)&&(d=Y1(k,null,n,a,I,m)),function Jm(e,t,n,r,a){if(t)a?e.addClass(n,r):e.removeClass(n,r);else{let d=-1===r.indexOf("-")?void 0:Cf.DashCase;null==a?e.removeStyle(n,r,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Cf.Important),e.setStyle(n,r,a,d))}}(r,m,Jo(as(),n),a,d))}function Y1(e,t,n,r,a,d){const m=null===t;let I;for(;a>0;){const k=e[a],ie=Array.isArray(k),ye=ie?k[1]:k,Re=null===ye;let ct=n[a+1];ct===Ir&&(ct=Re?fr:void 0);let St=Re?vr(ct,r):ye===r?ct:void 0;if(ie&&!xy(St)&&(St=vr(k,r)),xy(St)&&(I=St,m))return I;const Ot=e[a+1];a=m?ud(Ot):Rh(Ot)}if(null!==t){let k=d?t.residualClasses:t.residualStyles;null!=k&&(I=vr(k,r))}return I}function xy(e){return void 0!==e}function X1(e,t){return!!(e.flags&(t?8:16))}function J1(){return Kt()[ci][li]}class yD{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),a=Math.max(t,n),d=this.detach(a);if(a-r>1){const m=this.detach(r);this.attach(r,d),this.attach(a,m)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function t_(e,t,n,r,a){return e===n&&Object.is(t,r)?1:Object.is(a(e,t),a(n,r))?-1:0}function n_(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function Z1(e,t,n,r,a){if(n_(e,t,r,n(r,a)))e.updateValue(r,a);else{const d=e.create(r,a);e.attach(r,d)}}function q1(e,t,n,r){const a=new Set;for(let d=t;d<=n;d++)a.add(r(d,e.at(d)));return a}class eS{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(r);)r=a.get(r);a.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const a=this._vMap;for(;a.has(r);)r=a.get(r),t(r,n)}}}function tS(e,t,n){gc("NgControlFlow");const r=Kt(),a=Eo(),d=r_(r,mr+e);if(ys(r,a,t)){const I=b(null);try{if(Bf(d,0),-1!==t){const k=i_(r[sn],mr+t),ie=sd(d,k.tView.ssrId);rd(d,bh(r,k,n,{dehydratedView:ie}),0,fc(k,ie))}}finally{b(I)}}else{const I=Uf(d,0);void 0!==I&&(I[li]=n)}}class _D{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-wi}}function nS(e,t){return t}class SD{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function rS(e,t,n,r,a,d,m,I,k,ie,ye,Re,ct){gc("NgControlFlow");const St=void 0!==k,Ot=Kt(),Ht=I?m.bind(Ot[ci][li]):m,hn=new SD(St,Ht);Ot[mr+e]=hn,Hf(e+1,t,n,r,a,d),St&&Hf(e+2,k,ie,ye,Re,ct)}class bD extends yD{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-wi}at(t){return this.getLView(t)[li].$implicit}attach(t,n){const r=n[ri];this.needsIndexUpdate||=t!==this.length,rd(this.lContainer,n,t,fc(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function CD(e,t){return au(e,t)}(this.lContainer,t)}create(t,n){const r=sd(this.lContainer,this.templateTNode.tView.ssrId);return bh(this.hostLView,this.templateTNode,new _D(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Af(t[sn],t)}updateValue(t,n){this.getLView(t)[li].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[li].$index=t}getLView(t){return function ID(e,t){return Uf(e,t)}(this.lContainer,t)}}function iS(e){const t=b(null),n=as();try{const r=Kt(),a=r[sn],d=r[n];if(void 0===d.liveCollection){const I=n+1,k=r_(r,I),ie=i_(a,I);d.liveCollection=new bD(k,r,ie)}else d.liveCollection.reset();const m=d.liveCollection;if(function vD(e,t,n){let r,a,d=0,m=e.length-1;if(Array.isArray(t)){let I=t.length-1;for(;d<=m&&d<=I;){const k=e.at(d),ie=t[d],ye=t_(d,k,d,ie,n);if(0!==ye){ye<0&&e.updateValue(d,ie),d++;continue}const Re=e.at(m),ct=t[I],St=t_(m,Re,I,ct,n);if(0!==St){St<0&&e.updateValue(m,ct),m--,I--;continue}const Ot=n(d,k),Ht=n(m,Re),hn=n(d,ie);if(Object.is(hn,Ht)){const Mn=n(I,ct);Object.is(Mn,Ot)?(e.swap(d,m),e.updateValue(m,ct),I--,m--):e.move(m,d),e.updateValue(d,ie),d++}else if(r??=new eS,a??=q1(e,d,m,n),n_(e,r,d,hn))e.updateValue(d,ie),d++,m++;else if(a.has(hn))r.set(Ot,e.detach(d)),m--;else{const Mn=e.create(d,t[d]);e.attach(d,Mn),d++,m++}}for(;d<=I;)Z1(e,r,n,d,t[d]),d++}else if(null!=t){const I=t[Symbol.iterator]();let k=I.next();for(;!k.done&&d<=m;){const ie=e.at(d),ye=k.value,Re=t_(d,ie,d,ye,n);if(0!==Re)Re<0&&e.updateValue(d,ye),d++,k=I.next();else{r??=new eS,a??=q1(e,d,m,n);const ct=n(d,ye);if(n_(e,r,d,ct))e.updateValue(d,ye),d++,m++,k=I.next();else if(a.has(ct)){const St=n(d,ie);r.set(St,e.detach(d)),m--}else e.attach(d,e.create(d,ye)),d++,m++,k=I.next()}}for(;!k.done;)Z1(e,r,n,e.length,k.value),k=I.next()}for(;d<=m;)e.destroy(e.detach(m--));r?.forEach(I=>{e.destroy(I)})}(m,e,d.trackByFn),m.updateIndexes(),d.hasEmptyBlock){const I=Eo(),k=0===m.length;if(ys(r,I,k)){const ie=n+2,ye=r_(r,ie);if(k){const Re=i_(a,ie),ct=sd(ye,Re.tView.ssrId);rd(ye,bh(r,Re,void 0,{dehydratedView:ct}),0,fc(Re,ct))}else Bf(ye,0)}}}finally{b(t)}}function r_(e,t){return e[t]}function i_(e,t){return ro(e,t)}function ky(e,t,n,r){const a=Kt(),d=Or(),m=mr+e,I=a[nr],k=d.firstCreatePass?function AD(e,t,n,r,a,d){const m=t.consts,k=hc(t,e,2,r,_o(m,a));return Cg(t,n,k,_o(m,d)),null!==k.attrs&&by(k,k.attrs,!1),null!==k.mergedAttrs&&by(k,k.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,k),k}(m,d,a,t,n,r):d.data[m],ie=sS(d,a,k,I,t,e);a[m]=ie;const ye=jl(k);return Wr(k,!0),wf(I,ie,k),!function zg(e){return!(32&~e.flags)}(k)&&Mc()&&qu(d,a,ie,k),0===function Su(){return ir.lFrame.elementDepthCount}()&&Ds(ie,a),function Xr(){ir.lFrame.elementDepthCount++}(),ye&&(vg(d,a,k),yg(d,k,a)),null!==r&&_g(a,k),ky}function Fy(){let e=Mr();Ba()?Cu():(e=e.parent,Wr(e,!1));const t=e;(function wc(e){return ir.skipHydrationRootTNode===e})(t)&&function Sd(){ir.skipHydrationRootTNode=null}(),function bu(){ir.lFrame.elementDepthCount--}();const n=Or();return n.firstCreatePass&&(Gl(n,e),Dc(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ld(e){return!!(8&e.flags)}(t)&&Jv(n,t,Kt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Nc(e){return!!(16&e.flags)}(t)&&Jv(n,t,Kt(),t.stylesWithoutHost,!1),Fy}function s_(e,t,n,r){return ky(e,t,n,r),Fy(),s_}let sS=(e,t,n,r,a,d)=>(bo(!0),Zu(r,a,function Pc(){return ir.lFrame.currentNamespace}()));function Uy(e,t,n){const r=Kt(),a=Or(),d=e+mr,m=a.firstCreatePass?function OD(e,t,n,r,a){const d=t.consts,m=_o(d,r),I=hc(t,e,8,"ng-container",m);return null!==m&&by(I,m,!0),Cg(t,n,I,_o(d,a)),null!==t.queries&&t.queries.elementStart(t,I),I}(d,a,r,t,n):a.data[d];Wr(m,!0);const I=aS(a,r,m,e);return r[d]=I,Mc()&&qu(a,r,I,m),Ds(I,r),jl(m)&&(vg(a,r,m),yg(a,m,r)),null!=n&&_g(r,m),Uy}function By(){let e=Mr();const t=Or();return Ba()?Cu():(e=e.parent,Wr(e,!1)),t.firstCreatePass&&(Gl(t,e),Dc(e)&&t.queries.elementEnd(e)),By}let aS=(e,t,n,r)=>(bo(!0),ph(t[nr],""));function lS(){return Kt()}function o_(e,t,n){const r=Kt();return ys(r,Eo(),t)&&ao(Or(),ii(),r,e,t,r[nr],n,!0),o_}const Nh=void 0;var RD=["en",[["a","p"],["AM","PM"],Nh],[["AM","PM"],Nh,Nh],[["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"]],Nh,[["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"]],Nh,[["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}",Nh,"{1} 'at' {0}",Nh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function MD(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let cp={};function a_(e){const t=function ND(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=dS(t);if(n)return n;const r=t.split("-")[0];if(n=dS(r),n)return n;if("en"===r)return RD;throw new Ue(701,!1)}function uS(e){return a_(e)[up.PluralCase]}function dS(e){return e in cp||(cp[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),cp[e]}var up=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(up||{});const dp="en-US";let hS=dp;function u_(e,t,n,r){const a=Kt(),d=Or(),m=Mr();return d_(d,a,a[nr],m,e,t,r),u_}function d_(e,t,n,r,a,d,m){const I=jl(r),ie=e.firstCreatePass&&Ff(e),ye=t[li],Re=ay(t);let ct=!0;if(3&r.type||m){const Ht=Is(r,t),hn=m?m(Ht):Ht,Mn=Re.length,nn=m?ti=>m(yr(ti[r.index])):r.index;let cr=null;if(!m&&I&&(cr=function wT(e,t,n,r){const a=e.cleanup;if(null!=a)for(let d=0;d<a.length-1;d+=2){const m=a[d];if(m===n&&a[d+1]===r){const I=t[no],k=a[d+2];return I.length>k?I[k]:null}"string"==typeof m&&(d+=2)}return null}(e,t,a,r.index)),null!==cr)(cr.__ngLastListenerFn__||cr).__ngNextListenerFn__=d,cr.__ngLastListenerFn__=d,ct=!1;else{d=VS(r,t,ye,d,!1);const ti=n.listen(hn,a,d);Re.push(d,ti),ie&&ie.push(a,nn,Mn,Mn+1)}}else d=VS(r,t,ye,d,!1);const St=r.outputs;let Ot;if(ct&&null!==St&&(Ot=St[a])){const Ht=Ot.length;if(Ht)for(let hn=0;hn<Ht;hn+=2){const Ii=t[Ot[hn]][Ot[hn+1]].subscribe(d),Vs=Re.length;Re.push(d,Ii),ie&&ie.push(a,r.index,Vs,-(Vs+1))}}}function BS(e,t,n,r){const a=b(null);try{return Yo(6,t,n),!1!==n(r)}catch(d){return nd(e,d),!1}finally{Yo(7,t,n),b(a)}}function VS(e,t,n,r,a){return function d(m){if(m===Function)return r;cu(e.componentOffset>-1?Hs(e.index,t):t);let k=BS(t,n,r,m),ie=d.__ngNextListenerFn__;for(;ie;)k=BS(t,n,ie,m)&&k,ie=ie.__ngNextListenerFn__;return a&&!1===k&&m.preventDefault(),k}}function jS(e=1){return function Wh(e){return(ir.lFrame.contextLView=vd(e,ir.lFrame.contextLView))[li]}(e)}function PT(e,t){let n=null;const r=function la(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let a=0;a<t.length;a++){const d=t[a];if("*"!==d){if(null===r?vc(e,d,!0):ca(r,d))return a}else n=a}return n}function $S(e){const t=Kt()[ci][ei];if(!t.projection){const r=t.projection=function Qi(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),a=r.slice();let d=t.child;for(;null!==d;){const m=e?PT(d,e):0;null!==m&&(a[m]?a[m].projectionNext=d:r[m]=d,a[m]=d),d=d.next}}}function WS(e,t=0,n){const r=Kt(),a=Or(),d=hc(a,mr+e,16,null,n||null);null===d.projection&&(d.projection=t),Cu(),(!r[ri]||lr())&&32&~d.flags&&function B0(e,t,n){Of(t[nr],0,t,n,mh(e,n,t),Qm(n.parent||t[ei],n,t))}(a,r,d)}function qS(e,t,n,r){!function RE(e,t,n,r){const a=Or();if(a.firstCreatePass){const d=Mr();NE(a,new OE(t,n,r),d.index),function FI(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(a,e),!(2&~n)&&(a.staticContentQueries=!0)}return PE(a,Kt(),n)}(e,t,n,r)}function eb(e,t,n){!function ME(e,t,n){const r=Or();return r.firstCreatePass&&(NE(r,new OE(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),PE(r,Kt(),t)}(e,t,n)}function tb(e){const t=Kt(),n=Or(),r=Cd();Id(r+1);const a=wv(n,r);if(e.dirty&&function yp(e){return!(4&~e[Kn])}(t)===!(2&~a.metadata.flags)){if(null===a.matches)e.reset([]);else{const d=LE(t,r);e.reset(d,Mp),e.notifyOnChanges()}return!0}return!1}function nb(){return function Ov(e,t){return e[os].queries[t].queryList}(Kt(),Cd())}function rb(e){return Fa(function hl(){return ir.lFrame.contextLView}(),mr+e)}function fb(e,t=""){const n=Kt(),r=Or(),a=e+mr,d=r.firstCreatePass?hc(r,a,1,t,null):r.data[a],m=pb(r,n,d,t,e);n[a]=m,Mc()&&qu(r,n,m,d),Wr(d,!1)}let pb=(e,t,n,r,a)=>(bo(!0),function fh(e,t){return e.createText(t)}(t[nr],r));function f_(e){return Gy("",e,""),f_}function Gy(e,t,n){const r=Kt(),a=function ep(e,t,n,r){return ys(e,Eo(),n)?t+En(n)+r:Ir}(r,e,t,n);return a!==Ir&&Aa(r,as(),a),Gy}function p_(e,t,n,r,a){const d=Kt(),m=function tp(e,t,n,r,a,d){const I=Ph(e,xo(),n,a);return So(2),I?t+En(n)+r+En(a)+d:Ir}(d,e,t,n,r,a);return m!==Ir&&Aa(d,as(),m),p_}function g_(e,t,n,r,a,d,m){const I=Kt(),k=function np(e,t,n,r,a,d,m,I){const ie=Oy(e,xo(),n,a,m);return So(3),ie?t+En(n)+r+En(a)+d+En(m)+I:Ir}(I,e,t,n,r,a,d,m);return k!==Ir&&Aa(I,as(),k),g_}function m_(e,t,n,r,a,d,m,I,k,ie,ye,Re,ct){const St=Kt(),Ot=sp(St,e,t,n,r,a,d,m,I,k,ie,ye,Re,ct);return Ot!==Ir&&Aa(St,as(),Ot),m_}function y_(e,t,n){FE(t)&&(t=t());const r=Kt();return ys(r,Eo(),t)&&ao(Or(),ii(),r,e,t,r[nr],n,!1),y_}function Eb(e,t){const n=FE(e);return n&&e.set(t),n}function v_(e,t){const n=Kt(),r=Or(),a=Mr();return d_(r,n,n[nr],a,e,t),v_}function __(e,t,n,r,a){if(e=_t(e),Array.isArray(e))for(let d=0;d<e.length;d++)__(e[d],t,n,r,a);else{const d=Or(),m=Kt(),I=Mr();let k=wo(e)?e:_t(e.provide);const ie=to(e),ye=1048575&I.providerIndexes,Re=I.directiveStart,ct=I.providerIndexes>>20;if(wo(e)||!e.multi){const St=new va(ie,a,dc),Ot=S_(k,t,a?ye:ye+ct,Re);-1===Ot?(kc(Lc(I,m),d,k),E_(d,e,t.length),t.push(k),I.directiveStart++,I.directiveEnd++,a&&(I.providerIndexes+=1048576),n.push(St),m.push(St)):(n[Ot]=St,m[Ot]=St)}else{const St=S_(k,t,ye+ct,Re),Ot=S_(k,t,ye,ye+ct),hn=Ot>=0&&n[Ot];if(a&&!hn||!a&&!(St>=0&&n[St])){kc(Lc(I,m),d,k);const Mn=function YT(e,t,n,r,a){const d=new va(e,n,dc);return d.multi=[],d.index=t,d.componentProviders=0,Sb(d,a,r&&!n),d}(a?QT:zT,n.length,a,r,ie);!a&&hn&&(n[Ot].providerFactory=Mn),E_(d,e,t.length,0),t.push(k),I.directiveStart++,I.directiveEnd++,a&&(I.providerIndexes+=1048576),n.push(Mn),m.push(Mn)}else E_(d,e,St>-1?St:Ot,Sb(n[a?Ot:St],ie,!a&&r));!a&&r&&hn&&n[Ot].componentProviders++}}}function E_(e,t,n,r){const a=wo(t),d=function Bl(e){return!!e.useClass}(t);if(a||d){const k=(d?_t(t.useClass):t).prototype.ngOnDestroy;if(k){const ie=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const ye=ie.indexOf(n);-1===ye?ie.push(n,[r,k]):ie[ye+1].push(r,k)}else ie.push(n,k)}}}function Sb(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function S_(e,t,n,r){for(let a=n;a<r;a++)if(t[a]===e)return a;return-1}function zT(e,t,n,r){return b_(this.multi,[])}function QT(e,t,n,r){const a=this.multi;let d;if(this.providerFactory){const m=this.providerFactory.componentProviders,I=_a(n,n[sn],this.providerFactory.index,r);d=I.slice(0,m),b_(a,d);for(let k=m;k<I.length;k++)d.push(I[k])}else d=[],b_(a,d);return d}function b_(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function bb(e,t=[]){return n=>{n.providersResolver=(r,a)=>function HT(e,t,n){const r=Or();if(r.firstCreatePass){const a=hs(e);__(n,r.data,r.blueprint,a,!0),__(t,r.data,r.blueprint,a,!1)}}(r,a?a(e):e,t)}}let XT=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=wa(0,n.type),a=r.length>0?xv([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,a)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=je({token:e,providedIn:"environment",factory:()=>new e(si(ds))})}}return e})();function Cb(e){gc("NgStandalone"),e.getStandaloneInjector=t=>t.get(XT).getOrCreateStandaloneInjector(e)}function Ab(e,t,n){const r=Ns()+e,a=Kt();return a[r]===Ir?mc(a,r,n?t.call(n):t()):function Hg(e,t){return e[t]}(a,r)}function Db(e,t,n,r){return Ob(Kt(),Ns(),e,t,n,r)}function Tb(e,t,n,r,a){return wb(Kt(),Ns(),e,t,n,r,a)}function im(e,t){const n=e[t];return n===Ir?void 0:n}function Ob(e,t,n,r,a,d){const m=t+n;return ys(e,m,a)?mc(e,m+1,d?r.call(d,a):r(a)):im(e,m+1)}function wb(e,t,n,r,a,d,m){const I=t+n;return Ph(e,I,a,d)?mc(e,I+2,m?r.call(m,a,d):r(a,d)):im(e,I+2)}function Nb(e,t){const n=Or();let r;const a=e+mr;n.firstCreatePass?(r=function oO(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[a]=r,r.onDestroy&&(n.destroyHooks??=[]).push(a,r.onDestroy)):r=n.data[a];const d=r.factory||(r.factory=br(r.type)),I=Yr(dc);try{const k=Fd(!1),ie=d();return Fd(k),function LT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Kt(),a,ie),ie}finally{Yr(I)}}function Lb(e,t,n){const r=e+mr,a=Kt(),d=Fa(a,r);return sm(a,r)?Ob(a,Ns(),t,d.transform,n,d):d.transform(n)}function xb(e,t,n,r){const a=e+mr,d=Kt(),m=Fa(d,a);return sm(d,a)?wb(d,Ns(),t,m.transform,n,r,m):m.transform(n,r)}function kb(e,t,n,r,a){const d=e+mr,m=Kt(),I=Fa(m,d);return sm(m,d)?function Pb(e,t,n,r,a,d,m,I){const k=t+n;return Oy(e,k,a,d,m)?mc(e,k+3,I?r.call(I,a,d,m):r(a,d,m)):im(e,k+3)}(m,Ns(),t,I.transform,n,r,a,I):I.transform(n,r,a)}function sm(e,t){return e[sn].data[t].pure}function Fb(e,t){return Ah(e,t)}class qb{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let eC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const sC=new Pt(""),oC=new Pt("");let O_,tw=(()=>{class e{constructor(n,r,a){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,O_||(function nw(e){O_=e}(a),a.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ms.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,a){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(m=>m.timeoutId!==d),n()},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:a})}whenStable(n,r,a){if(a&&!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(n,r,a),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,a){return[]}static{this.\u0275fac=function(r){return new(r||e)(si(ms),si(aC),si(oC))}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac})}}return e})(),aC=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return O_?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function w_(e){return!!e&&"function"==typeof e.then}function lC(e){return!!e&&"function"==typeof e.subscribe}const cC=new Pt("");let P_=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=te(cC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const a of this.appInits){const d=a();if(w_(d))n.push(d);else if(lC(d)){const m=new Promise((I,k)=>{d.subscribe({complete:I,error:k})});n.push(m)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(a=>{this.reject(a)}),0===n.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const M_=new Pt("");let dd=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=te(Nu),this.afterRenderEffectManager=te(jg),this.externalTestViews=new Set,this.beforeRender=new mt.B,this.afterTick=new mt.B,this.componentTypes=[],this.components=[],this.isStable=te(Kf).hasPendingTasks.pipe((0,lt.T)(n=>!n)),this._injector=te(ds)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const a=n instanceof sE;if(!this._injector.get(P_).done)throw!a&&Ji(n),new Ue(405,!1);let m;m=a?n:this._injector.get(Vg).resolveComponentFactory(n),this.componentTypes.push(m.componentType);const I=function rw(e){return e.isBoundToModule}(m)?void 0:this._injector.get(wh),ie=m.create(ps.NULL,[],r||m.selector,I),ye=ie.location.nativeElement,Re=ie.injector.get(sC,null);return Re?.registerApplication(ye),ie.onDestroy(()=>{this.detachView(ie.hostView),Qy(this.components,ie),Re?.unregisterApplication(ye)}),this._loadComponent(ie),ie}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new Ue(101,!1);const r=b(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(a){this.internalErrorHandler(a)}finally{this.afterTick.next(),this._runningTick=!1,b(r)}}detectChangesInAttachedViews(n){let r=0;const a=this.afterRenderEffectManager;for(;;){if(r===kg)throw new Ue(103,!1);if(n){const d=0===r;this.beforeRender.next(d);for(let{_lView:m,notifyErrorHandler:I}of this._views)sw(m,d,I)}if(r++,a.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:d})=>R_(d))&&(a.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:d})=>R_(d))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Qy(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(M_,[]);[...this._bootstrapListeners,...r].forEach(a=>a(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Qy(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Ue(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Qy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function sw(e,t,n){!t&&!R_(e)||function ow(e,t,n){let r;n?(r=0,e[Kn]|=1024):r=64&e[Kn]?0:1,lu(e,t,r)}(e,n,t)}function R_(e){return Ua(e)}class aw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let lw=(()=>{class e{compileModuleSync(n){return new Lv(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),d=Bo(Ti(n).declarations).reduce((m,I)=>{const k=qn(I);return k&&m.push(new Gg(k)),m},[]);return new aw(r,d)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),dw=(()=>{class e{constructor(){this.zone=te(ms),this.applicationRef=te(dd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pC(e){return[{provide:ms,useFactory:e},{provide:_i,multi:!0,useFactory:()=>{const t=te(dw,{optional:!0});return()=>t.initialize()}},{provide:_i,multi:!0,useFactory:()=>{const t=te(pw);return()=>{t.initialize()}}},{provide:Nu,useFactory:hw}]}function hw(){const e=te(ms),t=te(Ka);return n=>e.runOutsideAngular(()=>t.handleError(n))}function fw(e){return Ko([[],pC(()=>new ms(function gC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}let pw=(()=>{class e{constructor(){this.subscription=new Ft.yU,this.initialized=!1,this.zone=te(ms),this.pendingTasks=te(Kf)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ms.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ms.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=je({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Xy=new Pt("",{providedIn:"root",factory:()=>te(Xy,or.Optional|or.SkipSelf)||function gw(){return typeof $localize<"u"&&$localize.locale||dp}()}),mw=new Pt("",{providedIn:"root",factory:()=>"USD"}),N_=new Pt("");let hd=null;function Sw(){}let SC=(()=>{class e{static{this.__NG_ELEMENT_ID__=bw}}return e})();function bw(e){return function Cw(e,t,n){if(Qo(e)&&!n){const r=Hs(e.index,t);return new Ih(r,r)}return 47&e.type?new Ih(t[ci],t):null}(Mr(),Kt(),!(16&~e))}class AC{constructor(){}supports(t){return Ty(t)}create(t){return new Ow(t)}}const Tw=(e,t)=>t;class Ow{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Tw}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,a=0,d=null;for(;n||r;){const m=!r||n&&n.currentIndex<TC(r,a,d)?n:r,I=TC(m,a,d),k=m.currentIndex;if(m===r)a--,r=r._nextRemoved;else if(n=n._next,null==m.previousIndex)a++;else{d||(d=[]);const ie=I-a,ye=k-a;if(ie!=ye){for(let ct=0;ct<ie;ct++){const St=ct<d.length?d[ct]:d[ct]=0,Ot=St+ct;ye<=Ot&&Ot<ie&&(d[ct]=St+1)}d[m.previousIndex]=ye-ie}}I!==k&&t(m,I,k)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Ty(t))throw new Ue(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let a,d,m,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let I=0;I<this.length;I++)d=t[I],m=this._trackByFn(I,d),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,d,m,I)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,m,I),r=!0),n=n._next}else a=0,function lA(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,I=>{m=this._trackByFn(a,I),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,I,m,a)),Object.is(n.item,I)||this._addIdentityChange(n,I)):(n=this._mismatch(n,I,m,a),r=!0),n=n._next,a++}),this.length=a;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,a))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,a)):t=this._addAfter(new ww(n,r),d,a),t}_verifyReinsertion(t,n,r,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const a=null===n?this._itHead:n._next;return t._next=a,t._prev=n,null===a?this._itTail=t:a._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new DC),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ww{constructor(t,n){this.item=t,this.trackById=n,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 Pw{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class DC{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new Pw,this.map.set(n,r)),r.add(t)}get(t,n){const a=this.map.get(t);return a?a.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function TC(e,t,n){const r=e.previousIndex;if(null===r)return r;let a=0;return n&&r<n.length&&(a=n[r]),r+t+a}class OC{constructor(){}supports(t){return t instanceof Map||kv(t)}create(){return new Mw}}class Mw{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(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||kv(t)))throw new Ue(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,a)=>{if(n&&n.key===a)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(a,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,n);const d=a._prev,m=a._next;return d&&(d._next=m),m&&(m._prev=d),a._next=null,a._prev=null,a}const r=new Rw(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Rw{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function wC(){return new B_([new AC])}let B_=(()=>{class e{static{this.\u0275prov=je({token:e,providedIn:"root",factory:wC})}constructor(n){this.factories=n}static create(n,r){if(null!=r){const a=r.factories.slice();n=n.concat(a)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||wC()),deps:[[e,new dr,new Dn]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(null!=r)return r;throw new Ue(901,!1)}}return e})();function PC(){return new V_([new OC])}let V_=(()=>{class e{static{this.\u0275prov=je({token:e,providedIn:"root",factory:PC})}constructor(n){this.factories=n}static create(n,r){if(r){const a=r.factories.slice();n=n.concat(a)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||PC()),deps:[[e,new dr,new Dn]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(r)return r;throw new Ue(901,!1)}}return e})();function Yw(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,a=function Ew(e=[]){if(hd)return hd;const t=function vC(e=[],t){return ps.create({name:t,providers:[{provide:ha,useValue:"platform"},{provide:N_,useValue:new Set([()=>hd=null])},...e]})}(e);return hd=t,function uC(){!function we(e){ce=e}(()=>{throw new Ue(600,!1)})}(),function _C(e){e.get(cf,null)?.forEach(n=>n())}(t),t}(r),d=[fw(),...n||[]],I=new e1({providers:d,parent:a,debugName:"",runEnvironmentInitializers:!1}).injector,k=I.get(ms);return k.run(()=>{I.resolveInjectorInitializers();const ie=I.get(Ka,null);let ye;k.runOutsideAngular(()=>{ye=k.onError.subscribe({next:St=>{ie.handleError(St)}})});const Re=()=>I.destroy(),ct=a.get(N_);return ct.add(Re),I.onDestroy(()=>{ye.unsubscribe(),ct.delete(Re)}),function dC(e,t,n){try{const r=n();return w_(r)?r.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(ie,k,()=>{const St=I.get(P_);return St.runInitializers(),St.donePromise.then(()=>{!function fS(e){"string"==typeof e&&(hS=e.toLowerCase().replace(/_/g,"-"))}(I.get(Xy,dp)||dp);const Ht=I.get(dd);return void 0!==t&&Ht.bootstrap(t),Ht})})})}catch(t){return Promise.reject(t)}}function uP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function dP(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function fP(e,t){gc("NgSignals");const n=function se(e){const t=Object.create(J);t.computation=e;const n=()=>{if(w(t),_(t),t.value===Z)throw t.error;return t.value};return n[D]=t,n}(e);return t?.equal&&(n[D].equal=t.equal),n}function pP(e){const t=b(null);try{return e()}finally{b(t)}}const gP=new Pt("",{providedIn:"root",factory:()=>te(mP)});let mP=(()=>{class e{static{this.\u0275prov=je({token:e,providedIn:"root",factory:()=>new yP})}}return e})();class yP{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=te(Kf),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class vP{constructor(t,n,r,a,d,m){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=d,this.watcher=function gt(e,t,n){const r=Object.create(Wt);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const a=k=>{r.cleanupFn=k};return r.ref={notify:()=>x(r),run:()=>{if(null===r.fn)return;if(function S(){return A}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!K(r))return;r.hasRun=!0;const k=z(r);try{r.cleanupFn(),r.cleanupFn=dt,r.fn(a)}finally{X(r,k)}},cleanup:()=>r.cleanupFn(),destroy:()=>function m(k){(function d(k){return null===k.fn&&null===k.schedule})(k)||(ne(k),k.cleanupFn(),k.fn=null,k.schedule=null,k.cleanupFn=dt)}(r),[D]:r},r.ref}(I=>this.runEffect(I),()=>this.schedule(),m),this.unregisterOnDestroy=a?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Ka,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function ZC(e,t){gc("NgSignals"),!t?.injector&&zo();const n=t?.injector??te(ps),r=!0!==t?.manualCleanup?n.get(Zl):null,a=new vP(n.get(gP),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),d=n.get(SC,null,{optional:!0});return d&&8&d._lView[Kn]?(d._lView[al]??=[]).push(a.watcher.notify):a.watcher.notify(),a}function _P(e){const t=qn(e);if(!t)return null;const n=new Gg(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},94665:(it,ge,s)=>{"use strict";s.d(ge,{BC:()=>ze,J3:()=>ur,Q0:()=>ls,X1:()=>To,YN:()=>Js,YS:()=>ni,cV:()=>be,cb:()=>Ue,hs:()=>yt,j4:()=>Jr,k0:()=>K,kq:()=>f,l_:()=>Ys,me:()=>w,qT:()=>Qr,tU:()=>fo,vS:()=>Wn,xh:()=>is,ze:()=>ji});var i=s(55685),E=s(31761),y=s(90249),A=s(67214),M=s(54436);let D=(()=>{class ue{constructor(Q,Oe){this._renderer=Q,this._elementRef=Oe,this.onChange=ot=>{},this.onTouched=()=>{}}setProperty(Q,Oe){this._renderer.setProperty(this._elementRef.nativeElement,Q,Oe)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(i.sFG),i.rXU(i.aKT))}}static{this.\u0275dir=i.FsC({type:ue})}}return ue})(),b=(()=>{class ue extends D{static{this.\u0275fac=(()=>{let Q;return function(ot){return(Q||(Q=i.xGo(ue)))(ot||ue)}})()}static{this.\u0275dir=i.FsC({type:ue,features:[i.Vt3]})}}return ue})();const f=new i.nKC(""),C={provide:f,useExisting:(0,i.Rfq)(()=>w),multi:!0},U=new i.nKC("");let w=(()=>{class ue extends D{constructor(Q,Oe,ot){super(Q,Oe),this._compositionMode=ot,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _(){const ue=(0,E.QT)()?(0,E.QT)().getUserAgent():"";return/android (\d+)/.test(ue.toLowerCase())}())}writeValue(Q){this.setProperty("value",Q??"")}_handleInput(Q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Q)}_compositionStart(){this._composing=!0}_compositionEnd(Q){this._composing=!1,this._compositionMode&&this.onChange(Q)}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(U,8))}}static{this.\u0275dir=i.FsC({type:ue,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(Oe,ot){1&Oe&&i.bIt("input",function(pr){return ot._handleInput(pr.target.value)})("blur",function(){return ot.onTouched()})("compositionstart",function(){return ot._compositionStart()})("compositionend",function(pr){return ot._compositionEnd(pr.target.value)})},features:[i.Jv_([C]),i.Vt3]})}}return ue})();function R(ue){return null==ue||("string"==typeof ue||Array.isArray(ue))&&0===ue.length}function V(ue){return null!=ue&&"number"==typeof ue.length}const x=new i.nKC(""),z=new i.nKC(""),X=/^(?=.{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 K{static min(pe){return function ne(ue){return pe=>{if(R(pe.value)||R(ue))return null;const Q=parseFloat(pe.value);return!isNaN(Q)&&Q<ue?{min:{min:ue,actual:pe.value}}:null}}(pe)}static max(pe){return function le(ue){return pe=>{if(R(pe.value)||R(ue))return null;const Q=parseFloat(pe.value);return!isNaN(Q)&&Q>ue?{max:{max:ue,actual:pe.value}}:null}}(pe)}static required(pe){return Y(pe)}static requiredTrue(pe){return function ve(ue){return!0===ue.value?null:{required:!0}}(pe)}static email(pe){return function Ie(ue){return R(ue.value)||X.test(ue.value)?null:{email:!0}}(pe)}static minLength(pe){return He(pe)}static maxLength(pe){return se(pe)}static pattern(pe){return function Ge(ue){if(!ue)return B;let pe,Q;return"string"==typeof ue?(Q="","^"!==ue.charAt(0)&&(Q+="^"),Q+=ue,"$"!==ue.charAt(ue.length-1)&&(Q+="$"),pe=new RegExp(Q)):(Q=ue.toString(),pe=ue),Oe=>{if(R(Oe.value))return null;const ot=Oe.value;return pe.test(ot)?null:{pattern:{requiredPattern:Q,actualValue:ot}}}}(pe)}static nullValidator(pe){return null}static compose(pe){return oe(pe)}static composeAsync(pe){return Pe(pe)}}function Y(ue){return R(ue.value)?{required:!0}:null}function He(ue){return pe=>R(pe.value)||!V(pe.value)?null:pe.value.length<ue?{minlength:{requiredLength:ue,actualLength:pe.value.length}}:null}function se(ue){return pe=>V(pe.value)&&pe.value.length>ue?{maxlength:{requiredLength:ue,actualLength:pe.value.length}}:null}function B(ue){return null}function Z(ue){return null!=ue}function J(ue){return(0,i.jNT)(ue)?(0,y.H)(ue):ue}function re(ue){let pe={};return ue.forEach(Q=>{pe=null!=Q?{...pe,...Q}:pe}),0===Object.keys(pe).length?null:pe}function ce(ue,pe){return pe.map(Q=>Q(ue))}function we(ue){return ue.map(pe=>function Se(ue){return!ue.validate}(pe)?pe:Q=>pe.validate(Q))}function oe(ue){if(!ue)return null;const pe=ue.filter(Z);return 0==pe.length?null:function(Q){return re(ce(Q,pe))}}function Ee(ue){return null!=ue?oe(we(ue)):null}function Pe(ue){if(!ue)return null;const pe=ue.filter(Z);return 0==pe.length?null:function(Q){const Oe=ce(Q,pe).map(J);return(0,A.p)(Oe).pipe((0,M.T)(re))}}function $e(ue){return null!=ue?Pe(we(ue)):null}function Xe(ue,pe){return null===ue?[pe]:Array.isArray(ue)?[...ue,pe]:[ue,pe]}function De(ue){return ue._rawValidators}function We(ue){return ue._rawAsyncValidators}function st(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function gt(ue,pe){return Array.isArray(ue)?ue.includes(pe):ue===pe}function dt(ue,pe){const Q=st(pe);return st(ue).forEach(ot=>{gt(Q,ot)||Q.push(ot)}),Q}function Wt(ue,pe){return st(pe).filter(Q=>!gt(ue,Q))}class Qt{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(pe){this._rawValidators=pe||[],this._composedValidatorFn=Ee(this._rawValidators)}_setAsyncValidators(pe){this._rawAsyncValidators=pe||[],this._composedAsyncValidatorFn=$e(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(pe){this._onDestroyCallbacks.push(pe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(pe=>pe()),this._onDestroyCallbacks=[]}reset(pe=void 0){this.control&&this.control.reset(pe)}hasError(pe,Q){return!!this.control&&this.control.hasError(pe,Q)}getError(pe,Q){return this.control?this.control.getError(pe,Q):null}}class mt extends Qt{get formDirective(){return null}get path(){return null}}class Ft extends Qt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class At{constructor(pe){this._cd=pe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ze=(()=>{class ue extends At{constructor(Q){super(Q)}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(Ft,2))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Oe,ot){2&Oe&&i.AVh("ng-untouched",ot.isUntouched)("ng-touched",ot.isTouched)("ng-pristine",ot.isPristine)("ng-dirty",ot.isDirty)("ng-valid",ot.isValid)("ng-invalid",ot.isInvalid)("ng-pending",ot.isPending)},features:[i.Vt3]})}}return ue})(),Ue=(()=>{class ue extends At{constructor(Q){super(Q)}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(mt,10))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Oe,ot){2&Oe&&i.AVh("ng-untouched",ot.isUntouched)("ng-touched",ot.isTouched)("ng-pristine",ot.isPristine)("ng-dirty",ot.isDirty)("ng-valid",ot.isValid)("ng-invalid",ot.isInvalid)("ng-pending",ot.isPending)("ng-submitted",ot.isSubmitted)},features:[i.Vt3]})}}return ue})();const kn="VALID",Hn="INVALID",An="PENDING",Vn="DISABLED";function Pr(ue){return(Ct(ue)?ue.validators:ue)||null}function Hr(ue,pe){return(Ct(pe)?pe.asyncValidators:ue)||null}function Ct(ue){return null!=ue&&!Array.isArray(ue)&&"object"==typeof ue}function Be(ue,pe,Q){const Oe=ue.controls;if(!(pe?Object.keys(Oe):Oe).length)throw new i.wOt(1e3,"");if(!Oe[Q])throw new i.wOt(1001,"")}function et(ue,pe,Q){ue._forEachChild((Oe,ot)=>{if(void 0===Q[ot])throw new i.wOt(1002,"")})}class $t{constructor(pe,Q){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(pe),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(pe){this._rawValidators=this._composedValidatorFn=pe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(pe){this._rawAsyncValidators=this._composedAsyncValidatorFn=pe}get parent(){return this._parent}get valid(){return this.status===kn}get invalid(){return this.status===Hn}get pending(){return this.status==An}get disabled(){return this.status===Vn}get enabled(){return this.status!==Vn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(pe){this._assignValidators(pe)}setAsyncValidators(pe){this._assignAsyncValidators(pe)}addValidators(pe){this.setValidators(dt(pe,this._rawValidators))}addAsyncValidators(pe){this.setAsyncValidators(dt(pe,this._rawAsyncValidators))}removeValidators(pe){this.setValidators(Wt(pe,this._rawValidators))}removeAsyncValidators(pe){this.setAsyncValidators(Wt(pe,this._rawAsyncValidators))}hasValidator(pe){return gt(this._rawValidators,pe)}hasAsyncValidator(pe){return gt(this._rawAsyncValidators,pe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(pe={}){this.touched=!0,this._parent&&!pe.onlySelf&&this._parent.markAsTouched(pe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(pe=>pe.markAllAsTouched())}markAsUntouched(pe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Q=>{Q.markAsUntouched({onlySelf:!0})}),this._parent&&!pe.onlySelf&&this._parent._updateTouched(pe)}markAsDirty(pe={}){this.pristine=!1,this._parent&&!pe.onlySelf&&this._parent.markAsDirty(pe)}markAsPristine(pe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Q=>{Q.markAsPristine({onlySelf:!0})}),this._parent&&!pe.onlySelf&&this._parent._updatePristine(pe)}markAsPending(pe={}){this.status=An,!1!==pe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!pe.onlySelf&&this._parent.markAsPending(pe)}disable(pe={}){const Q=this._parentMarkedDirty(pe.onlySelf);this.status=Vn,this.errors=null,this._forEachChild(Oe=>{Oe.disable({...pe,onlySelf:!0})}),this._updateValue(),!1!==pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...pe,skipPristineCheck:Q}),this._onDisabledChange.forEach(Oe=>Oe(!0))}enable(pe={}){const Q=this._parentMarkedDirty(pe.onlySelf);this.status=kn,this._forEachChild(Oe=>{Oe.enable({...pe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:pe.emitEvent}),this._updateAncestors({...pe,skipPristineCheck:Q}),this._onDisabledChange.forEach(Oe=>Oe(!1))}_updateAncestors(pe){this._parent&&!pe.onlySelf&&(this._parent.updateValueAndValidity(pe),pe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(pe){this._parent=pe}getRawValue(){return this.value}updateValueAndValidity(pe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kn||this.status===An)&&this._runAsyncValidator(pe.emitEvent)),!1!==pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!pe.onlySelf&&this._parent.updateValueAndValidity(pe)}_updateTreeValidity(pe={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(pe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:pe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vn:kn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(pe){if(this.asyncValidator){this.status=An,this._hasOwnPendingAsyncValidator=!0;const Q=J(this.asyncValidator(this));this._asyncValidationSubscription=Q.subscribe(Oe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Oe,{emitEvent:pe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(pe,Q={}){this.errors=pe,this._updateControlsErrors(!1!==Q.emitEvent)}get(pe){let Q=pe;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((Oe,ot)=>Oe&&Oe._find(ot),this)}getError(pe,Q){const Oe=Q?this.get(Q):this;return Oe&&Oe.errors?Oe.errors[pe]:null}hasError(pe,Q){return!!this.getError(pe,Q)}get root(){let pe=this;for(;pe._parent;)pe=pe._parent;return pe}_updateControlsErrors(pe){this.status=this._calculateStatus(),pe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(pe)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?Vn:this.errors?Hn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(An)?An:this._anyControlsHaveStatus(Hn)?Hn:kn}_anyControlsHaveStatus(pe){return this._anyControls(Q=>Q.status===pe)}_anyControlsDirty(){return this._anyControls(pe=>pe.dirty)}_anyControlsTouched(){return this._anyControls(pe=>pe.touched)}_updatePristine(pe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!pe.onlySelf&&this._parent._updatePristine(pe)}_updateTouched(pe={}){this.touched=this._anyControlsTouched(),this._parent&&!pe.onlySelf&&this._parent._updateTouched(pe)}_registerOnCollectionChange(pe){this._onCollectionChange=pe}_setUpdateStrategy(pe){Ct(pe)&&null!=pe.updateOn&&(this._updateOn=pe.updateOn)}_parentMarkedDirty(pe){return!pe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(pe){return null}_assignValidators(pe){this._rawValidators=Array.isArray(pe)?pe.slice():pe,this._composedValidatorFn=function Mi(ue){return Array.isArray(ue)?Ee(ue):ue||null}(this._rawValidators)}_assignAsyncValidators(pe){this._rawAsyncValidators=Array.isArray(pe)?pe.slice():pe,this._composedAsyncValidatorFn=function _t(ue){return Array.isArray(ue)?$e(ue):ue||null}(this._rawAsyncValidators)}}class yn extends $t{constructor(pe,Q,Oe){super(Pr(Q),Hr(Oe,Q)),this.controls=pe,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(pe,Q){return this.controls[pe]?this.controls[pe]:(this.controls[pe]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(pe,Q,Oe={}){this.registerControl(pe,Q),this.updateValueAndValidity({emitEvent:Oe.emitEvent}),this._onCollectionChange()}removeControl(pe,Q={}){this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),delete this.controls[pe],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(pe,Q,Oe={}){this.controls[pe]&&this.controls[pe]._registerOnCollectionChange(()=>{}),delete this.controls[pe],Q&&this.registerControl(pe,Q),this.updateValueAndValidity({emitEvent:Oe.emitEvent}),this._onCollectionChange()}contains(pe){return this.controls.hasOwnProperty(pe)&&this.controls[pe].enabled}setValue(pe,Q={}){et(this,0,pe),Object.keys(pe).forEach(Oe=>{Be(this,!0,Oe),this.controls[Oe].setValue(pe[Oe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(pe,Q={}){null!=pe&&(Object.keys(pe).forEach(Oe=>{const ot=this.controls[Oe];ot&&ot.patchValue(pe[Oe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(pe={},Q={}){this._forEachChild((Oe,ot)=>{Oe.reset(pe?pe[ot]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q),this._updateTouched(Q),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(pe,Q,Oe)=>(pe[Oe]=Q.getRawValue(),pe))}_syncPendingControls(){let pe=this._reduceChildren(!1,(Q,Oe)=>!!Oe._syncPendingControls()||Q);return pe&&this.updateValueAndValidity({onlySelf:!0}),pe}_forEachChild(pe){Object.keys(this.controls).forEach(Q=>{const Oe=this.controls[Q];Oe&&pe(Oe,Q)})}_setUpControls(){this._forEachChild(pe=>{pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(pe){for(const[Q,Oe]of Object.entries(this.controls))if(this.contains(Q)&&pe(Oe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Oe,ot)=>((Oe.enabled||this.disabled)&&(Q[ot]=Oe.value),Q))}_reduceChildren(pe,Q){let Oe=pe;return this._forEachChild((ot,Rn)=>{Oe=Q(Oe,ot,Rn)}),Oe}_allControlsDisabled(){for(const pe of Object.keys(this.controls))if(this.controls[pe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(pe){return this.controls.hasOwnProperty(pe)?this.controls[pe]:null}}const ur=yn;class zr extends yn{}const Ur=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Nr}),Nr="always";function Et(ue,pe,Q=Nr){Bn(ue,pe),pe.valueAccessor.writeValue(ue.value),(ue.disabled||"always"===Q)&&pe.valueAccessor.setDisabledState?.(ue.disabled),function nt(ue,pe){pe.valueAccessor.registerOnChange(Q=>{ue._pendingValue=Q,ue._pendingChange=!0,ue._pendingDirty=!0,"change"===ue.updateOn&&je(ue,pe)})}(ue,pe),function bt(ue,pe){const Q=(Oe,ot)=>{pe.valueAccessor.writeValue(Oe),ot&&pe.viewToModelUpdate(Oe)};ue.registerOnChange(Q),pe._registerOnDestroy(()=>{ue._unregisterOnChange(Q)})}(ue,pe),function qt(ue,pe){pe.valueAccessor.registerOnTouched(()=>{ue._pendingTouched=!0,"blur"===ue.updateOn&&ue._pendingChange&&je(ue,pe),"submit"!==ue.updateOn&&ue.markAsTouched()})}(ue,pe),function Jt(ue,pe){if(pe.valueAccessor.setDisabledState){const Q=Oe=>{pe.valueAccessor.setDisabledState(Oe)};ue.registerOnDisabledChange(Q),pe._registerOnDestroy(()=>{ue._unregisterOnDisabledChange(Q)})}}(ue,pe)}function rt(ue,pe,Q=!0){const Oe=()=>{};pe.valueAccessor&&(pe.valueAccessor.registerOnChange(Oe),pe.valueAccessor.registerOnTouched(Oe)),Yn(ue,pe),ue&&(pe._invokeOnDestroyCallbacks(),ue._registerOnCollectionChange(()=>{}))}function It(ue,pe){ue.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(pe)})}function Bn(ue,pe){const Q=De(ue);null!==pe.validator?ue.setValidators(Xe(Q,pe.validator)):"function"==typeof Q&&ue.setValidators([Q]);const Oe=We(ue);null!==pe.asyncValidator?ue.setAsyncValidators(Xe(Oe,pe.asyncValidator)):"function"==typeof Oe&&ue.setAsyncValidators([Oe]);const ot=()=>ue.updateValueAndValidity();It(pe._rawValidators,ot),It(pe._rawAsyncValidators,ot)}function Yn(ue,pe){let Q=!1;if(null!==ue){if(null!==pe.validator){const ot=De(ue);if(Array.isArray(ot)&&ot.length>0){const Rn=ot.filter(pr=>pr!==pe.validator);Rn.length!==ot.length&&(Q=!0,ue.setValidators(Rn))}}if(null!==pe.asyncValidator){const ot=We(ue);if(Array.isArray(ot)&&ot.length>0){const Rn=ot.filter(pr=>pr!==pe.asyncValidator);Rn.length!==ot.length&&(Q=!0,ue.setAsyncValidators(Rn))}}}const Oe=()=>{};return It(pe._rawValidators,Oe),It(pe._rawAsyncValidators,Oe),Q}function je(ue,pe){ue._pendingDirty&&ue.markAsDirty(),ue.setValue(ue._pendingValue,{emitModelToViewChange:!1}),pe.viewToModelUpdate(ue._pendingValue),ue._pendingChange=!1}function Rt(ue,pe){Bn(ue,pe)}function Je(ue,pe){if(!ue.hasOwnProperty("model"))return!1;const Q=ue.model;return!!Q.isFirstChange()||!Object.is(pe,Q.currentValue)}function xt(ue,pe){ue._syncPendingControls(),pe.forEach(Q=>{const Oe=Q.control;"submit"===Oe.updateOn&&Oe._pendingChange&&(Q.viewToModelUpdate(Oe._pendingValue),Oe._pendingChange=!1)})}function Pt(ue,pe){if(!pe)return null;let Q,Oe,ot;return Array.isArray(pe),pe.forEach(Rn=>{Rn.constructor===w?Q=Rn:function qe(ue){return Object.getPrototypeOf(ue.constructor)===b}(Rn)?Oe=Rn:ot=Rn}),ot||Oe||Q||null}const er={provide:mt,useExisting:(0,i.Rfq)(()=>be)},Nn=Promise.resolve();let be=(()=>{class ue extends mt{constructor(Q,Oe,ot){super(),this.callSetDisabledState=ot,this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.bkB,this.form=new yn({},Ee(Q),$e(Oe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){Nn.then(()=>{const Oe=this._findContainer(Q.path);Q.control=Oe.registerControl(Q.name,Q.control),Et(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){Nn.then(()=>{const Oe=this._findContainer(Q.path);Oe&&Oe.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){Nn.then(()=>{const Oe=this._findContainer(Q.path),ot=new yn({});Rt(ot,Q),Oe.registerControl(Q.name,ot),ot.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){Nn.then(()=>{const Oe=this._findContainer(Q.path);Oe&&Oe.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Oe){Nn.then(()=>{this.form.get(Q.path).setValue(Oe)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submitted=!0,xt(this.form,this._directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Q){return Q.pop(),Q.length?this.form.get(Q):this.form}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(x,10),i.rXU(z,10),i.rXU(Ur,8))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Oe,ot){1&Oe&&i.bIt("submit",function(pr){return ot.onSubmit(pr)})("reset",function(){return ot.onReset()})},inputs:{options:[i.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([er]),i.Vt3]})}}return ue})();function Qe(ue,pe){const Q=ue.indexOf(pe);Q>-1&&ue.splice(Q,1)}function ke(ue){return"object"==typeof ue&&null!==ue&&2===Object.keys(ue).length&&"value"in ue&&"disabled"in ue}const at=class extends $t{constructor(pe=null,Q,Oe){super(Pr(Q),Hr(Oe,Q)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(pe),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ct(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=ke(pe)?pe.value:pe)}setValue(pe,Q={}){this.value=this._pendingValue=pe,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(Oe=>Oe(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(pe,Q={}){this.setValue(pe,Q)}reset(pe=this.defaultValue,Q={}){this._applyFormState(pe),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(pe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(pe){this._onChange.push(pe)}_unregisterOnChange(pe){Qe(this._onChange,pe)}registerOnDisabledChange(pe){this._onDisabledChange.push(pe)}_unregisterOnDisabledChange(pe){Qe(this._onDisabledChange,pe)}_forEachChild(pe){}_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(pe){ke(pe)?(this.value=this._pendingValue=pe.value,pe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=pe}},yt=at,tr={provide:Ft,useExisting:(0,i.Rfq)(()=>Wn)},En=Promise.resolve();let Wn=(()=>{class ue extends Ft{constructor(Q,Oe,ot,Rn,pr,$s){super(),this._changeDetectorRef=pr,this.callSetDisabledState=$s,this.control=new at,this._registered=!1,this.name="",this.update=new i.bkB,this._parent=Q,this._setValidators(Oe),this._setAsyncValidators(ot),this.valueAccessor=Pt(0,Rn)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Oe=Q.name.previousValue;this.formDirective.removeControl({name:Oe,path:this._getPath(Oe)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),Je(Q,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(Q){this.viewModel=Q,this.update.emit(Q)}_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(){Et(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Q){En.then(()=>{this.control.setValue(Q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Q){const Oe=Q.isDisabled.currentValue,ot=0!==Oe&&(0,i.L39)(Oe);En.then(()=>{ot&&!this.control.disabled?this.control.disable():!ot&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?function vi(ue,pe){return[...pe.path,ue]}(Q,this._parent):[Q]}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(mt,9),i.rXU(x,10),i.rXU(z,10),i.rXU(f,10),i.rXU(i.gRc,8),i.rXU(Ur,8))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[i.Mj6.None,"disabled","isDisabled"],model:[i.Mj6.None,"ngModel","model"],options:[i.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Jv_([tr]),i.Vt3,i.OA$]})}}return ue})(),Qr=(()=>{class ue{static{this.\u0275fac=function(Oe){return new(Oe||ue)}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return ue})();const jr={provide:f,useExisting:(0,i.Rfq)(()=>ls),multi:!0};let ls=(()=>{class ue extends b{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Oe=>{Q(""==Oe?null:parseFloat(Oe))}}static{this.\u0275fac=(()=>{let Q;return function(ot){return(Q||(Q=i.xGo(ue)))(ot||ue)}})()}static{this.\u0275dir=i.FsC({type:ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Oe,ot){1&Oe&&i.bIt("input",function(pr){return ot.onChange(pr.target.value)})("blur",function(){return ot.onTouched()})},features:[i.Jv_([jr]),i.Vt3]})}}return ue})();const Yr=new i.nKC(""),Os={provide:Ft,useExisting:(0,i.Rfq)(()=>Ys)};let Ys=(()=>{class ue extends Ft{set isDisabled(Q){}static{this._ngModelWarningSentOnce=!1}constructor(Q,Oe,ot,Rn,pr){super(),this._ngModelWarningConfig=Rn,this.callSetDisabledState=pr,this.update=new i.bkB,this._ngModelWarningSent=!1,this._setValidators(Q),this._setAsyncValidators(Oe),this.valueAccessor=Pt(0,ot)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Oe=Q.form.previousValue;Oe&&rt(Oe,this,!1),Et(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Je(Q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_isControlChanged(Q){return Q.hasOwnProperty("form")}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(x,10),i.rXU(z,10),i.rXU(f,10),i.rXU(Yr,8),i.rXU(Ur,8))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","formControl",""]],inputs:{form:[i.Mj6.None,"formControl","form"],isDisabled:[i.Mj6.None,"disabled","isDisabled"],model:[i.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Jv_([Os]),i.Vt3,i.OA$]})}}return ue})();const ns={provide:mt,useExisting:(0,i.Rfq)(()=>Jr)};let Jr=(()=>{class ue extends mt{constructor(Q,Oe,ot){super(),this.callSetDisabledState=ot,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.bkB,this._setValidators(Q),this._setAsyncValidators(Oe)}ngOnChanges(Q){this._checkFormPresent(),Q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Q){const Oe=this.form.get(Q.path);return Et(Oe,Q,this.callSetDisabledState),Oe.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Oe}getControl(Q){return this.form.get(Q.path)}removeControl(Q){rt(Q.control||null,Q,!1),function un(ue,pe){const Q=ue.indexOf(pe);Q>-1&&ue.splice(Q,1)}(this.directives,Q)}addFormGroup(Q){this._setUpFormContainer(Q)}removeFormGroup(Q){this._cleanUpFormContainer(Q)}getFormGroup(Q){return this.form.get(Q.path)}addFormArray(Q){this._setUpFormContainer(Q)}removeFormArray(Q){this._cleanUpFormContainer(Q)}getFormArray(Q){return this.form.get(Q.path)}updateModel(Q,Oe){this.form.get(Q.path).setValue(Oe)}onSubmit(Q){return this.submitted=!0,xt(this.form,this.directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submitted=!1}_updateDomValue(){this.directives.forEach(Q=>{const Oe=Q.control,ot=this.form.get(Q.path);Oe!==ot&&(rt(Oe||null,Q),(ue=>ue instanceof at)(ot)&&(Et(ot,Q,this.callSetDisabledState),Q.control=ot))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Oe=this.form.get(Q.path);Rt(Oe,Q),Oe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Oe=this.form.get(Q.path);Oe&&function an(ue,pe){return Yn(ue,pe)}(Oe,Q)&&Oe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bn(this.form,this),this._oldForm&&Yn(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(Oe){return new(Oe||ue)(i.rXU(x,10),i.rXU(z,10),i.rXU(Ur,8))}}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","formGroup",""]],hostBindings:function(Oe,ot){1&Oe&&i.bIt("submit",function(pr){return ot.onSubmit(pr)})("reset",function(){return ot.onReset()})},inputs:{form:[i.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([ns]),i.Vt3,i.OA$]})}}return ue})();function gn(ue){return"number"==typeof ue?ue:parseInt(ue,10)}let Dn=(()=>{class ue{constructor(){this._validator=B}ngOnChanges(Q){if(this.inputName in Q){const Oe=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Oe),this._validator=this._enabled?this.createValidator(Oe):B,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static{this.\u0275fac=function(Oe){return new(Oe||ue)}}static{this.\u0275dir=i.FsC({type:ue,features:[i.OA$]})}}return ue})();const Lr={provide:x,useExisting:(0,i.Rfq)(()=>ni),multi:!0};let ni=(()=>{class ue extends Dn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.L39,this.createValidator=Q=>Y}enabled(Q){return Q}static{this.\u0275fac=(()=>{let Q;return function(ot){return(Q||(Q=i.xGo(ue)))(ot||ue)}})()}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Oe,ot){2&Oe&&i.BMQ("required",ot._enabled?"":null)},inputs:{required:"required"},features:[i.Jv_([Lr]),i.Vt3]})}}return ue})();const ws={provide:x,useExisting:(0,i.Rfq)(()=>is),multi:!0};let is=(()=>{class ue extends Dn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=Q=>gn(Q),this.createValidator=Q=>He(Q)}static{this.\u0275fac=(()=>{let Q;return function(ot){return(Q||(Q=i.xGo(ue)))(ot||ue)}})()}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Oe,ot){2&Oe&&i.BMQ("minlength",ot._enabled?ot.minlength:null)},inputs:{minlength:"minlength"},features:[i.Jv_([ws]),i.Vt3]})}}return ue})();const aa={provide:x,useExisting:(0,i.Rfq)(()=>fo),multi:!0};let fo=(()=>{class ue extends Dn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Q=>gn(Q),this.createValidator=Q=>se(Q)}static{this.\u0275fac=(()=>{let Q;return function(ot){return(Q||(Q=i.xGo(ue)))(ot||ue)}})()}static{this.\u0275dir=i.FsC({type:ue,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Oe,ot){2&Oe&&i.BMQ("maxlength",ot._enabled?ot.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.Jv_([aa]),i.Vt3]})}}return ue})(),sr=(()=>{class ue{static{this.\u0275fac=function(Oe){return new(Oe||ue)}}static{this.\u0275mod=i.$C({type:ue})}static{this.\u0275inj=i.G2t({})}}return ue})();class fr extends $t{constructor(pe,Q,Oe){super(Pr(Q),Hr(Oe,Q)),this.controls=pe,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(pe){return this.controls[this._adjustIndex(pe)]}push(pe,Q={}){this.controls.push(pe),this._registerControl(pe),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}insert(pe,Q,Oe={}){this.controls.splice(pe,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Oe.emitEvent})}removeAt(pe,Q={}){let Oe=this._adjustIndex(pe);Oe<0&&(Oe=0),this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(()=>{}),this.controls.splice(Oe,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(pe,Q,Oe={}){let ot=this._adjustIndex(pe);ot<0&&(ot=0),this.controls[ot]&&this.controls[ot]._registerOnCollectionChange(()=>{}),this.controls.splice(ot,1),Q&&(this.controls.splice(ot,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Oe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(pe,Q={}){et(this,0,pe),pe.forEach((Oe,ot)=>{Be(this,!1,ot),this.at(ot).setValue(Oe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(pe,Q={}){null!=pe&&(pe.forEach((Oe,ot)=>{this.at(ot)&&this.at(ot).patchValue(Oe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(pe=[],Q={}){this._forEachChild((Oe,ot)=>{Oe.reset(pe[ot],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q),this._updateTouched(Q),this.updateValueAndValidity(Q)}getRawValue(){return this.controls.map(pe=>pe.getRawValue())}clear(pe={}){this.controls.length<1||(this._forEachChild(Q=>Q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:pe.emitEvent}))}_adjustIndex(pe){return pe<0?pe+this.length:pe}_syncPendingControls(){let pe=this.controls.reduce((Q,Oe)=>!!Oe._syncPendingControls()||Q,!1);return pe&&this.updateValueAndValidity({onlySelf:!0}),pe}_forEachChild(pe){this.controls.forEach((Q,Oe)=>{pe(Q,Oe)})}_updateValue(){this.value=this.controls.filter(pe=>pe.enabled||this.disabled).map(pe=>pe.value)}_anyControls(pe){return this.controls.some(Q=>Q.enabled&&pe(Q))}_setUpControls(){this._forEachChild(pe=>this._registerControl(pe))}_allControlsDisabled(){for(const pe of this.controls)if(pe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(pe){pe.setParent(this),pe._registerOnCollectionChange(this._onCollectionChange)}_find(pe){return this.at(pe)??null}}function Yi(ue){return!!ue&&(void 0!==ue.asyncValidators||void 0!==ue.validators||void 0!==ue.updateOn)}let Dr=(()=>{class ue{constructor(){this.useNonNullable=!1}get nonNullable(){const Q=new ue;return Q.useNonNullable=!0,Q}group(Q,Oe=null){const ot=this._reduceControls(Q);let Rn={};return Yi(Oe)?Rn=Oe:null!==Oe&&(Rn.validators=Oe.validator,Rn.asyncValidators=Oe.asyncValidator),new yn(ot,Rn)}record(Q,Oe=null){const ot=this._reduceControls(Q);return new zr(ot,Oe)}control(Q,Oe,ot){let Rn={};return this.useNonNullable?(Yi(Oe)?Rn=Oe:(Rn.validators=Oe,Rn.asyncValidators=ot),new at(Q,{...Rn,nonNullable:!0})):new at(Q,Oe,ot)}array(Q,Oe,ot){const Rn=Q.map(pr=>this._createControl(pr));return new fr(Rn,Oe,ot)}_reduceControls(Q){const Oe={};return Object.keys(Q).forEach(ot=>{Oe[ot]=this._createControl(Q[ot])}),Oe}_createControl(Q){return Q instanceof at||Q instanceof $t?Q:Array.isArray(Q)?this.control(Q[0],Q.length>1?Q[1]:null,Q.length>2?Q[2]:null):this.control(Q)}static{this.\u0275fac=function(Oe){return new(Oe||ue)}}static{this.\u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})(),ji=(()=>{class ue extends Dr{group(Q,Oe=null){return super.group(Q,Oe)}control(Q,Oe,ot){return super.control(Q,Oe,ot)}array(Q,Oe,ot){return super.array(Q,Oe,ot)}static{this.\u0275fac=(()=>{let Q;return function(ot){return(Q||(Q=i.xGo(ue)))(ot||ue)}})()}static{this.\u0275prov=i.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})(),Js=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Ur,useValue:Q.callSetDisabledState??Nr}]}}static{this.\u0275fac=function(Oe){return new(Oe||ue)}}static{this.\u0275mod=i.$C({type:ue})}static{this.\u0275inj=i.G2t({imports:[sr]})}}return ue})(),To=(()=>{class ue{static withConfig(Q){return{ngModule:ue,providers:[{provide:Yr,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:Ur,useValue:Q.callSetDisabledState??Nr}]}}static{this.\u0275fac=function(Oe){return new(Oe||ue)}}static{this.\u0275mod=i.$C({type:ue})}static{this.\u0275inj=i.G2t({imports:[sr]})}}return ue})()},89497:(it,ge,s)=>{"use strict";s.d(ge,{B7:()=>Ie,B8:()=>Pe,W8:()=>lt,hE:()=>ze,up:()=>pt});var i=s(55685),E=s(31761);class y extends E.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class A extends y{static makeCurrent(){(0,E.ZD)(new A)}onAndCancel(Ct,Be,et){return Ct.addEventListener(Be,et),()=>{Ct.removeEventListener(Be,et)}}dispatchEvent(Ct,Be){Ct.dispatchEvent(Be)}remove(Ct){Ct.parentNode&&Ct.parentNode.removeChild(Ct)}createElement(Ct,Be){return(Be=Be||this.getDefaultDocument()).createElement(Ct)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ct){return Ct.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ct){return Ct instanceof DocumentFragment}getGlobalEventTarget(Ct,Be){return"window"===Be?window:"document"===Be?Ct:"body"===Be?Ct.body:null}getBaseHref(Ct){const Be=function D(){return M=M||document.querySelector("base"),M?M.getAttribute("href"):null}();return null==Be?null:function b(_t){return new URL(_t,document.baseURI).pathname}(Be)}resetBaseElement(){M=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ct){return(0,E._b)(document.cookie,Ct)}}let M=null,S=(()=>{class _t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(et){return new(et||_t)}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();const O=new i.nKC("");let C=(()=>{class _t{constructor(Be,et){this._zone=et,this._eventNameToPlugin=new Map,Be.forEach($t=>{$t.manager=this}),this._plugins=Be.slice().reverse()}addEventListener(Be,et,$t){return this._findPluginFor(et).addEventListener(Be,et,$t)}getZone(){return this._zone}_findPluginFor(Be){let et=this._eventNameToPlugin.get(Be);if(et)return et;if(et=this._plugins.find(yn=>yn.supports(Be)),!et)throw new i.wOt(5101,!1);return this._eventNameToPlugin.set(Be,et),et}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(O),i.KVO(i.SKi))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();class _{constructor(Ct){this._doc=Ct}}const U="ng-app-id";let w=(()=>{class _t{constructor(Be,et,$t,yn={}){this.doc=Be,this.appId=et,this.nonce=$t,this.platformId=yn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,E.Vy)(yn),this.resetHostNodes()}addStyles(Be){for(const et of Be)1===this.changeUsageCount(et,1)&&this.onStyleAdded(et)}removeStyles(Be){for(const et of Be)this.changeUsageCount(et,-1)<=0&&this.onStyleRemoved(et)}ngOnDestroy(){const Be=this.styleNodesInDOM;Be&&(Be.forEach(et=>et.remove()),Be.clear());for(const et of this.getAllStyles())this.onStyleRemoved(et);this.resetHostNodes()}addHost(Be){this.hostNodes.add(Be);for(const et of this.getAllStyles())this.addStyleToHost(Be,et)}removeHost(Be){this.hostNodes.delete(Be)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Be){for(const et of this.hostNodes)this.addStyleToHost(et,Be)}onStyleRemoved(Be){const et=this.styleRef;et.get(Be)?.elements?.forEach($t=>$t.remove()),et.delete(Be)}collectServerRenderedStyles(){const Be=this.doc.head?.querySelectorAll(`style[${U}="${this.appId}"]`);if(Be?.length){const et=new Map;return Be.forEach($t=>{null!=$t.textContent&&et.set($t.textContent,$t)}),et}return null}changeUsageCount(Be,et){const $t=this.styleRef;if($t.has(Be)){const yn=$t.get(Be);return yn.usage+=et,yn.usage}return $t.set(Be,{usage:et,elements:[]}),et}getStyleElement(Be,et){const $t=this.styleNodesInDOM,yn=$t?.get(et);if(yn?.parentNode===Be)return $t.delete(et),yn.removeAttribute(U),yn;{const Un=this.doc.createElement("style");return this.nonce&&Un.setAttribute("nonce",this.nonce),Un.textContent=et,this.platformIsServer&&Un.setAttribute(U,this.appId),Be.appendChild(Un),Un}}addStyleToHost(Be,et){const $t=this.getStyleElement(Be,et),yn=this.styleRef,Un=yn.get(et)?.elements;Un?Un.push($t):yn.set(et,{elements:[$t],usage:1})}resetHostNodes(){const Be=this.hostNodes;Be.clear(),Be.add(this.doc.head)}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(E.qQ),i.KVO(i.sZ2),i.KVO(i.BIS,8),i.KVO(i.Agw))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();const R={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/"},V=/%COMP%/g,x="%COMP%",z=`_nghost-${x}`,X=`_ngcontent-${x}`,ne=new i.nKC("",{providedIn:"root",factory:()=>!0});function ve(_t,Ct){return Ct.map(Be=>Be.replace(V,_t))}let Ie=(()=>{class _t{constructor(Be,et,$t,yn,Un,ur,Ar,zr=null){this.eventManager=Be,this.sharedStylesHost=et,this.appId=$t,this.removeStylesOnCompDestroy=yn,this.doc=Un,this.platformId=ur,this.ngZone=Ar,this.nonce=zr,this.rendererByCompId=new Map,this.platformIsServer=(0,E.Vy)(ur),this.defaultRenderer=new He(Be,Un,Ar,this.platformIsServer)}createRenderer(Be,et){if(!Be||!et)return this.defaultRenderer;this.platformIsServer&&et.encapsulation===i.gXe.ShadowDom&&(et={...et,encapsulation:i.gXe.Emulated});const $t=this.getOrCreateRenderer(Be,et);return $t instanceof re?$t.applyToHost(Be):$t instanceof J&&$t.applyStyles(),$t}getOrCreateRenderer(Be,et){const $t=this.rendererByCompId;let yn=$t.get(et.id);if(!yn){const Un=this.doc,ur=this.ngZone,Ar=this.eventManager,zr=this.sharedStylesHost,yi=this.removeStylesOnCompDestroy,Ur=this.platformIsServer;switch(et.encapsulation){case i.gXe.Emulated:yn=new re(Ar,zr,et,this.appId,yi,Un,ur,Ur);break;case i.gXe.ShadowDom:return new Z(Ar,zr,Be,et,Un,ur,this.nonce,Ur);default:yn=new J(Ar,zr,et,yi,Un,ur,Ur)}$t.set(et.id,yn)}return yn}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(C),i.KVO(w),i.KVO(i.sZ2),i.KVO(ne),i.KVO(E.qQ),i.KVO(i.Agw),i.KVO(i.SKi),i.KVO(i.BIS))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();class He{constructor(Ct,Be,et,$t){this.eventManager=Ct,this.doc=Be,this.ngZone=et,this.platformIsServer=$t,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Ct,Be){return Be?this.doc.createElementNS(R[Be]||Be,Ct):this.doc.createElement(Ct)}createComment(Ct){return this.doc.createComment(Ct)}createText(Ct){return this.doc.createTextNode(Ct)}appendChild(Ct,Be){(B(Ct)?Ct.content:Ct).appendChild(Be)}insertBefore(Ct,Be,et){Ct&&(B(Ct)?Ct.content:Ct).insertBefore(Be,et)}removeChild(Ct,Be){Ct&&Ct.removeChild(Be)}selectRootElement(Ct,Be){let et="string"==typeof Ct?this.doc.querySelector(Ct):Ct;if(!et)throw new i.wOt(-5104,!1);return Be||(et.textContent=""),et}parentNode(Ct){return Ct.parentNode}nextSibling(Ct){return Ct.nextSibling}setAttribute(Ct,Be,et,$t){if($t){Be=$t+":"+Be;const yn=R[$t];yn?Ct.setAttributeNS(yn,Be,et):Ct.setAttribute(Be,et)}else Ct.setAttribute(Be,et)}removeAttribute(Ct,Be,et){if(et){const $t=R[et];$t?Ct.removeAttributeNS($t,Be):Ct.removeAttribute(`${et}:${Be}`)}else Ct.removeAttribute(Be)}addClass(Ct,Be){Ct.classList.add(Be)}removeClass(Ct,Be){Ct.classList.remove(Be)}setStyle(Ct,Be,et,$t){$t&(i.czy.DashCase|i.czy.Important)?Ct.style.setProperty(Be,et,$t&i.czy.Important?"important":""):Ct.style[Be]=et}removeStyle(Ct,Be,et){et&i.czy.DashCase?Ct.style.removeProperty(Be):Ct.style[Be]=""}setProperty(Ct,Be,et){null!=Ct&&(Ct[Be]=et)}setValue(Ct,Be){Ct.nodeValue=Be}listen(Ct,Be,et){if("string"==typeof Ct&&!(Ct=(0,E.QT)().getGlobalEventTarget(this.doc,Ct)))throw new Error(`Unsupported event target ${Ct} for event ${Be}`);return this.eventManager.addEventListener(Ct,Be,this.decoratePreventDefault(et))}decoratePreventDefault(Ct){return Be=>{if("__ngUnwrap__"===Be)return Ct;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ct(Be)):Ct(Be))&&Be.preventDefault()}}}function B(_t){return"TEMPLATE"===_t.tagName&&void 0!==_t.content}class Z extends He{constructor(Ct,Be,et,$t,yn,Un,ur,Ar){super(Ct,yn,Un,Ar),this.sharedStylesHost=Be,this.hostEl=et,this.shadowRoot=et.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const zr=ve($t.id,$t.styles);for(const yi of zr){const Ur=document.createElement("style");ur&&Ur.setAttribute("nonce",ur),Ur.textContent=yi,this.shadowRoot.appendChild(Ur)}}nodeOrShadowRoot(Ct){return Ct===this.hostEl?this.shadowRoot:Ct}appendChild(Ct,Be){return super.appendChild(this.nodeOrShadowRoot(Ct),Be)}insertBefore(Ct,Be,et){return super.insertBefore(this.nodeOrShadowRoot(Ct),Be,et)}removeChild(Ct,Be){return super.removeChild(this.nodeOrShadowRoot(Ct),Be)}parentNode(Ct){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ct)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class J extends He{constructor(Ct,Be,et,$t,yn,Un,ur,Ar){super(Ct,yn,Un,ur),this.sharedStylesHost=Be,this.removeStylesOnCompDestroy=$t,this.styles=Ar?ve(Ar,et.styles):et.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class re extends J{constructor(Ct,Be,et,$t,yn,Un,ur,Ar){const zr=$t+"-"+et.id;super(Ct,Be,et,yn,Un,ur,Ar,zr),this.contentAttr=function le(_t){return X.replace(V,_t)}(zr),this.hostAttr=function Y(_t){return z.replace(V,_t)}(zr)}applyToHost(Ct){this.applyStyles(),this.setAttribute(Ct,this.hostAttr,"")}createElement(Ct,Be){const et=super.createElement(Ct,Be);return super.setAttribute(et,this.contentAttr,""),et}}let ce=(()=>{class _t extends _{constructor(Be){super(Be)}supports(Be){return!0}addEventListener(Be,et,$t){return Be.addEventListener(et,$t,!1),()=>this.removeEventListener(Be,et,$t)}removeEventListener(Be,et,$t){return Be.removeEventListener(et,$t)}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(E.qQ))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();const Se=["alt","control","meta","shift"],we={"\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"},oe={alt:_t=>_t.altKey,control:_t=>_t.ctrlKey,meta:_t=>_t.metaKey,shift:_t=>_t.shiftKey};let Ee=(()=>{class _t extends _{constructor(Be){super(Be)}supports(Be){return null!=_t.parseEventName(Be)}addEventListener(Be,et,$t){const yn=_t.parseEventName(et),Un=_t.eventCallback(yn.fullKey,$t,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,E.QT)().onAndCancel(Be,yn.domEventName,Un))}static parseEventName(Be){const et=Be.toLowerCase().split("."),$t=et.shift();if(0===et.length||"keydown"!==$t&&"keyup"!==$t)return null;const yn=_t._normalizeKey(et.pop());let Un="",ur=et.indexOf("code");if(ur>-1&&(et.splice(ur,1),Un="code."),Se.forEach(zr=>{const yi=et.indexOf(zr);yi>-1&&(et.splice(yi,1),Un+=zr+".")}),Un+=yn,0!=et.length||0===yn.length)return null;const Ar={};return Ar.domEventName=$t,Ar.fullKey=Un,Ar}static matchEventFullKeyCode(Be,et){let $t=we[Be.key]||Be.key,yn="";return et.indexOf("code.")>-1&&($t=Be.code,yn="code."),!(null==$t||!$t)&&($t=$t.toLowerCase()," "===$t?$t="space":"."===$t&&($t="dot"),Se.forEach(Un=>{Un!==$t&&(0,oe[Un])(Be)&&(yn+=Un+".")}),yn+=$t,yn===et)}static eventCallback(Be,et,$t){return yn=>{_t.matchEventFullKeyCode(yn,Be)&&$t.runGuarded(()=>et(yn))}}static _normalizeKey(Be){return"esc"===Be?"escape":Be}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(E.qQ))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac})}}return _t})();function Pe(_t,Ct){return(0,i.TL3)({rootComponent:_t,...Xe(Ct)})}function Xe(_t){return{appProviders:[...Ft,..._t?.providers??[]],platformProviders:dt}}const dt=[{provide:i.Agw,useValue:E.AJ},{provide:i.PLl,useValue:function We(){A.makeCurrent()},multi:!0},{provide:E.qQ,useFactory:function gt(){return(0,i.TL$)(document),document},deps:[]}],Ft=[{provide:i.H8p,useValue:"root"},{provide:i.zcH,useFactory:function st(){return new i.zcH},deps:[]},{provide:O,useClass:ce,multi:!0,deps:[E.qQ,i.SKi,i.Agw]},{provide:O,useClass:Ee,multi:!0,deps:[E.qQ]},Ie,w,C,{provide:i._9s,useExisting:Ie},{provide:E.N0,useClass:S,deps:[]},[]];let lt=(()=>{class _t{constructor(Be){this._doc=Be,this._dom=(0,E.QT)()}addTag(Be,et=!1){return Be?this._getOrCreateElement(Be,et):null}addTags(Be,et=!1){return Be?Be.reduce(($t,yn)=>(yn&&$t.push(this._getOrCreateElement(yn,et)),$t),[]):[]}getTag(Be){return Be&&this._doc.querySelector(`meta[${Be}]`)||null}getTags(Be){if(!Be)return[];const et=this._doc.querySelectorAll(`meta[${Be}]`);return et?[].slice.call(et):[]}updateTag(Be,et){if(!Be)return null;et=et||this._parseSelector(Be);const $t=this.getTag(et);return $t?this._setMetaElementAttributes(Be,$t):this._getOrCreateElement(Be,!0)}removeTag(Be){this.removeTagElement(this.getTag(Be))}removeTagElement(Be){Be&&this._dom.remove(Be)}_getOrCreateElement(Be,et=!1){if(!et){const Un=this._parseSelector(Be),ur=this.getTags(Un).filter(Ar=>this._containsAttributes(Be,Ar))[0];if(void 0!==ur)return ur}const $t=this._dom.createElement("meta");return this._setMetaElementAttributes(Be,$t),this._doc.getElementsByTagName("head")[0].appendChild($t),$t}_setMetaElementAttributes(Be,et){return Object.keys(Be).forEach($t=>et.setAttribute(this._getMetaKeyMap($t),Be[$t])),et}_parseSelector(Be){const et=Be.name?"name":"property";return`${et}="${Be[et]}"`}_containsAttributes(Be,et){return Object.keys(Be).every($t=>et.getAttribute(this._getMetaKeyMap($t))===Be[$t])}_getMetaKeyMap(Be){return Le[Be]||Be}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(E.qQ))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})();const Le={httpEquiv:"http-equiv"};let ze=(()=>{class _t{constructor(Be){this._doc=Be}getTitle(){return this._doc.title}setTitle(Be){this._doc.title=Be||""}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(E.qQ))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})(),pt=(()=>{class _t{static{this.\u0275fac=function(et){return new(et||_t)}}static{this.\u0275prov=i.jDH({token:_t,factory:function(et){let $t=null;return $t=et?new(et||_t):i.KVO(vt),$t},providedIn:"root"})}}return _t})(),vt=(()=>{class _t extends pt{constructor(Be){super(),this._doc=Be}sanitize(Be,et){if(null==et)return null;switch(Be){case i.WPN.NONE:return et;case i.WPN.HTML:return(0,i.ZF7)(et,"HTML")?(0,i.rcV)(et):(0,i.h9k)(this._doc,String(et)).toString();case i.WPN.STYLE:return(0,i.ZF7)(et,"Style")?(0,i.rcV)(et):et;case i.WPN.SCRIPT:if((0,i.ZF7)(et,"Script"))return(0,i.rcV)(et);throw new i.wOt(5200,!1);case i.WPN.URL:return(0,i.ZF7)(et,"URL")?(0,i.rcV)(et):(0,i.$MX)(String(et));case i.WPN.RESOURCE_URL:if((0,i.ZF7)(et,"ResourceURL"))return(0,i.rcV)(et);throw new i.wOt(5201,!1);default:throw new i.wOt(5202,!1)}}bypassSecurityTrustHtml(Be){return(0,i.Kcf)(Be)}bypassSecurityTrustStyle(Be){return(0,i.cWb)(Be)}bypassSecurityTrustScript(Be){return(0,i.UyX)(Be)}bypassSecurityTrustUrl(Be){return(0,i.osQ)(Be)}bypassSecurityTrustResourceUrl(Be){return(0,i.e5t)(Be)}static{this.\u0275fac=function(et){return new(et||_t)(i.KVO(E.qQ))}}static{this.\u0275prov=i.jDH({token:_t,factory:_t.\u0275fac,providedIn:"root"})}}return _t})()},46393:(it,ge,s)=>{"use strict";s.d(ge,{nX:()=>bs,j5:()=>wt,wF:()=>at,Z:()=>ke,Ix:()=>gr,Wk:()=>ar,iI:()=>Qo,n3:()=>Ce,lh:()=>Mo,Zy:()=>al,oH:()=>os,nH:()=>Na,Sn:()=>Ra,Ii:()=>vo});var i=s(55685),E=s(62644),y=s(90249),A=s(10047),M=s(94638),D=s(58298),b=s(28164),f=s(7546),S=s(63424),O=s(68385),C=s(95212),_=s(58977),U=s(33055),w=s(38355),R=s(97216),V=s(91002);function x(){return(0,R.N)((P,$)=>{let N=null;P._refCount++;const W=(0,V._)($,void 0,void 0,void 0,()=>{if(!P||P._refCount<=0||0<--P._refCount)return void(N=null);const de=P._connection,Te=N;N=null,de&&(!Te||de===Te)&&de.unsubscribe(),$.unsubscribe()});P.subscribe(W),W.closed||(N=P.connect())})}class z extends U.c{constructor($,N){super(),this.source=$,this.subjectFactory=N,this._subject=null,this._refCount=0,this._connection=null,(0,R.S)($)&&(this.lift=$.lift)}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:$}=this;this._subject=this._connection=null,$?.unsubscribe()}connect(){let $=this._connection;if(!$){$=this._connection=new w.yU;const N=this.getSubject();$.add(this.source.subscribe((0,V._)(N,void 0,()=>{this._teardown(),N.complete()},W=>{this._teardown(),N.error(W)},()=>this._teardown()))),$.closed&&(this._connection=null,$=w.yU.EMPTY)}return $}refCount(){return x()(this)}}var X=s(40352),K=s(31761),ne=s(54436),le=s(22900),Y=s(2267),ve=s(66210),Ie=s(79274),He=s(57616);function se(P){return(0,R.N)(($,N)=>{let W=!1;$.subscribe((0,V._)(N,de=>{W=!0,N.next(de)},()=>{W||N.next(P),N.complete()}))})}function Ge(P=B){return(0,R.N)(($,N)=>{let W=!1;$.subscribe((0,V._)(N,de=>{W=!0,N.next(de)},()=>W?N.complete():N.error(P())))})}function B(){return new b.G}var Z=s(13319);function J(P,$){const N=arguments.length>=2;return W=>W.pipe(P?(0,Ie.p)((de,Te)=>P(de,Te,W)):Z.D,(0,Y.s)(1),N?se($):Ge(()=>new b.G))}var re=s(82780),ce=s(42567),Se=s(49283);function Ee(P){return P<=0?()=>_.w:(0,R.N)(($,N)=>{let W=[];$.subscribe((0,V._)(N,de=>{W.push(de),P<W.length&&W.shift()},()=>{for(const de of W)N.next(de);N.complete()},void 0,()=>{W=null}))})}var $e=s(31941),Xe=s(99334),De=s(19443),We=s(89395),st=s(89497);const gt="primary",dt=Symbol("RouteTitle");class Wt{constructor($){this.params=$||{}}has($){return Object.prototype.hasOwnProperty.call(this.params,$)}get($){if(this.has($)){const N=this.params[$];return Array.isArray(N)?N[0]:N}return null}getAll($){if(this.has($)){const N=this.params[$];return Array.isArray(N)?N:[N]}return[]}get keys(){return Object.keys(this.params)}}function Qt(P){return new Wt(P)}function mt(P,$,N){const W=N.path.split("/");if(W.length>P.length||"full"===N.pathMatch&&($.hasChildren()||W.length<P.length))return null;const de={};for(let Te=0;Te<W.length;Te++){const Ze=W[Te],Nt=P[Te];if(Ze.startsWith(":"))de[Ze.substring(1)]=Nt;else if(Ze!==Nt.path)return null}return{consumed:P.slice(0,W.length),posParams:de}}function At(P,$){const N=P?lt(P):void 0,W=$?lt($):void 0;if(!N||!W||N.length!=W.length)return!1;let de;for(let Te=0;Te<N.length;Te++)if(de=N[Te],!Le(P[de],$[de]))return!1;return!0}function lt(P){return[...Object.keys(P),...Object.getOwnPropertySymbols(P)]}function Le(P,$){if(Array.isArray(P)&&Array.isArray($)){if(P.length!==$.length)return!1;const N=[...P].sort(),W=[...$].sort();return N.every((de,Te)=>W[Te]===de)}return P===$}function ze(P){return P.length>0?P[P.length-1]:null}function Ue(P){return(0,E.A)(P)?P:(0,i.jNT)(P)?(0,y.H)(Promise.resolve(P)):(0,A.of)(P)}const Dt={exact:function Fn(P,$,N){if(!pt(P.segments,$.segments)||!Tr(P.segments,$.segments,N)||P.numberOfChildren!==$.numberOfChildren)return!1;for(const W in $.children)if(!P.children[W]||!Fn(P.children[W],$.children[W],N))return!1;return!0},subset:Sn},Gt={exact:function fn(P,$){return At(P,$)},subset:function Xn(P,$){return Object.keys($).length<=Object.keys(P).length&&Object.keys($).every(N=>Le(P[N],$[N]))},ignored:()=>!0};function Yt(P,$,N){return Dt[N.paths](P.root,$.root,N.matrixParams)&&Gt[N.queryParams](P.queryParams,$.queryParams)&&!("exact"===N.fragment&&P.fragment!==$.fragment)}function Sn(P,$,N){return mn(P,$,$.segments,N)}function mn(P,$,N,W){if(P.segments.length>N.length){const de=P.segments.slice(0,N.length);return!(!pt(de,N)||$.hasChildren()||!Tr(de,N,W))}if(P.segments.length===N.length){if(!pt(P.segments,N)||!Tr(P.segments,N,W))return!1;for(const de in $.children)if(!P.children[de]||!Sn(P.children[de],$.children[de],W))return!1;return!0}{const de=N.slice(0,P.segments.length),Te=N.slice(P.segments.length);return!!(pt(P.segments,de)&&Tr(P.segments,de,W)&&P.children[gt])&&mn(P.children[gt],$,Te,W)}}function Tr(P,$,N){return $.every((W,de)=>Gt[N](P[de].parameters,W.parameters))}class Ae{constructor($=new G([],{}),N={},W=null){this.root=$,this.queryParams=N,this.fragment=W}get queryParamMap(){return this._queryParamMap??=Qt(this.queryParams),this._queryParamMap}toString(){return kn.serialize(this)}}class G{constructor($,N){this.segments=$,this.children=N,this.parent=null,Object.values(N).forEach(W=>W.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Hn(this)}}class ee{constructor($,N){this.path=$,this.parameters=N}get parameterMap(){return this._parameterMap??=Qt(this.parameters),this._parameterMap}toString(){return Be(this)}}function pt(P,$){return P.length===$.length&&P.every((N,W)=>N.path===$[W].path)}let Mt=(()=>{class P{static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:()=>new cn,providedIn:"root"})}}return P})();class cn{parse($){const N=new vi($);return new Ae(N.parseRootSegment(),N.parseQueryParams(),N.parseFragment())}serialize($){const N=`/${An($.root,!0)}`,W=function $t(P){const $=Object.entries(P).map(([N,W])=>Array.isArray(W)?W.map(de=>`${Pr(N)}=${Pr(de)}`).join("&"):`${Pr(N)}=${Pr(W)}`).filter(N=>N);return $.length?`?${$.join("&")}`:""}($.queryParams);return`${N}${W}${"string"==typeof $.fragment?`#${function Mi(P){return encodeURI(P)}($.fragment)}`:""}`}}const kn=new cn;function Hn(P){return P.segments.map($=>Be($)).join("/")}function An(P,$){if(!P.hasChildren())return Hn(P);if($){const N=P.children[gt]?An(P.children[gt],!1):"",W=[];return Object.entries(P.children).forEach(([de,Te])=>{de!==gt&&W.push(`${de}:${An(Te,!1)}`)}),W.length>0?`${N}(${W.join("//")})`:N}{const N=function vt(P,$){let N=[];return Object.entries(P.children).forEach(([W,de])=>{W===gt&&(N=N.concat($(de,W)))}),Object.entries(P.children).forEach(([W,de])=>{W!==gt&&(N=N.concat($(de,W)))}),N}(P,(W,de)=>de===gt?[An(P.children[gt],!1)]:[`${de}:${An(W,!1)}`]);return 1===Object.keys(P.children).length&&null!=P.children[gt]?`${Hn(P)}/${N[0]}`:`${Hn(P)}/(${N.join("//")})`}}function Vn(P){return encodeURIComponent(P).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pr(P){return Vn(P).replace(/%3B/gi,";")}function Hr(P){return Vn(P).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _t(P){return decodeURIComponent(P)}function Ct(P){return _t(P.replace(/\+/g,"%20"))}function Be(P){return`${Hr(P.path)}${function et(P){return Object.entries(P).map(([$,N])=>`;${Hr($)}=${Hr(N)}`).join("")}(P.parameters)}`}const yn=/^[^\/()?;#]+/;function Un(P){const $=P.match(yn);return $?$[0]:""}const ur=/^[^\/()?;=#]+/,zr=/^[^=?&#]+/,Ur=/^[^&#]+/;class vi{constructor($){this.url=$,this.remaining=$}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new G([],{}):new G([],this.parseChildren())}parseQueryParams(){const $={};if(this.consumeOptional("?"))do{this.parseQueryParam($)}while(this.consumeOptional("&"));return $}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const $=[];for(this.peekStartsWith("(")||$.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),$.push(this.parseSegment());let N={};this.peekStartsWith("/(")&&(this.capture("/"),N=this.parseParens(!0));let W={};return this.peekStartsWith("(")&&(W=this.parseParens(!1)),($.length>0||Object.keys(N).length>0)&&(W[gt]=new G($,N)),W}parseSegment(){const $=Un(this.remaining);if(""===$&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture($),new ee(_t($),this.parseMatrixParams())}parseMatrixParams(){const $={};for(;this.consumeOptional(";");)this.parseParam($);return $}parseParam($){const N=function Ar(P){const $=P.match(ur);return $?$[0]:""}(this.remaining);if(!N)return;this.capture(N);let W="";if(this.consumeOptional("=")){const de=Un(this.remaining);de&&(W=de,this.capture(W))}$[_t(N)]=_t(W)}parseQueryParam($){const N=function yi(P){const $=P.match(zr);return $?$[0]:""}(this.remaining);if(!N)return;this.capture(N);let W="";if(this.consumeOptional("=")){const Ze=function Nr(P){const $=P.match(Ur);return $?$[0]:""}(this.remaining);Ze&&(W=Ze,this.capture(W))}const de=Ct(N),Te=Ct(W);if($.hasOwnProperty(de)){let Ze=$[de];Array.isArray(Ze)||(Ze=[Ze],$[de]=Ze),Ze.push(Te)}else $[de]=Te}parseParens($){const N={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const W=Un(this.remaining),de=this.remaining[W.length];if("/"!==de&&")"!==de&&";"!==de)throw new i.wOt(4010,!1);let Te;W.indexOf(":")>-1?(Te=W.slice(0,W.indexOf(":")),this.capture(Te),this.capture(":")):$&&(Te=gt);const Ze=this.parseChildren();N[Te]=1===Object.keys(Ze).length?Ze[gt]:new G([],Ze),this.consumeOptional("//")}return N}peekStartsWith($){return this.remaining.startsWith($)}consumeOptional($){return!!this.peekStartsWith($)&&(this.remaining=this.remaining.substring($.length),!0)}capture($){if(!this.consumeOptional($))throw new i.wOt(4011,!1)}}function Et(P){return P.segments.length>0?new G([],{[gt]:P}):P}function rt(P){const $={};for(const[W,de]of Object.entries(P.children)){const Te=rt(de);if(W===gt&&0===Te.segments.length&&Te.hasChildren())for(const[Ze,Nt]of Object.entries(Te.children))$[Ze]=Nt;else(Te.segments.length>0||Te.hasChildren())&&($[W]=Te)}return function It(P){if(1===P.numberOfChildren&&P.children[gt]){const $=P.children[gt];return new G(P.segments.concat($.segments),$.children)}return P}(new G(P.segments,$))}function Jt(P){return P instanceof Ae}function Yn(P){let $;const de=Et(function N(Te){const Ze={};for(const Tt of Te.children){const vn=N(Tt);Ze[Tt.outlet]=vn}const Nt=new G(Te.url,Ze);return Te===P&&($=Nt),Nt}(P.root));return $??de}function nt(P,$,N,W){let de=P;for(;de.parent;)de=de.parent;if(0===$.length)return bt(de,de,de,N,W);const Te=function ln(P){if("string"==typeof P[0]&&1===P.length&&"/"===P[0])return new an(!0,0,P);let $=0,N=!1;const W=P.reduce((de,Te,Ze)=>{if("object"==typeof Te&&null!=Te){if(Te.outlets){const Nt={};return Object.entries(Te.outlets).forEach(([Tt,vn])=>{Nt[Tt]="string"==typeof vn?vn.split("/"):vn}),[...de,{outlets:Nt}]}if(Te.segmentPath)return[...de,Te.segmentPath]}return"string"!=typeof Te?[...de,Te]:0===Ze?(Te.split("/").forEach((Nt,Tt)=>{0==Tt&&"."===Nt||(0==Tt&&""===Nt?N=!0:".."===Nt?$++:""!=Nt&&de.push(Nt))}),de):[...de,Te]},[]);return new an(N,$,W)}($);if(Te.toRoot())return bt(de,de,new G([],{}),N,W);const Ze=function jn(P,$,N){if(P.isAbsolute)return new pn($,!0,0);if(!N)return new pn($,!1,NaN);if(null===N.parent)return new pn(N,!0,0);const W=qt(P.commands[0])?0:1;return function zn(P,$,N){let W=P,de=$,Te=N;for(;Te>de;){if(Te-=de,W=W.parent,!W)throw new i.wOt(4005,!1);de=W.segments.length}return new pn(W,!1,de-Te)}(N,N.segments.length-1+W,P.numberOfDoubleDots)}(Te,de,P),Nt=Ze.processChildren?qe(Ze.segmentGroup,Ze.index,Te.commands):Je(Ze.segmentGroup,Ze.index,Te.commands);return bt(de,Ze.segmentGroup,Nt,N,W)}function qt(P){return"object"==typeof P&&null!=P&&!P.outlets&&!P.segmentPath}function je(P){return"object"==typeof P&&null!=P&&P.outlets}function bt(P,$,N,W,de){let Ze,Te={};W&&Object.entries(W).forEach(([Tt,vn])=>{Te[Tt]=Array.isArray(vn)?vn.map(rr=>`${rr}`):`${vn}`}),Ze=P===$?N:Rt(P,$,N);const Nt=Et(rt(Ze));return new Ae(Nt,Te,de)}function Rt(P,$,N){const W={};return Object.entries(P.children).forEach(([de,Te])=>{W[de]=Te===$?N:Rt(Te,$,N)}),new G(P.segments,W)}class an{constructor($,N,W){if(this.isAbsolute=$,this.numberOfDoubleDots=N,this.commands=W,$&&W.length>0&&qt(W[0]))throw new i.wOt(4003,!1);const de=W.find(je);if(de&&de!==ze(W))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pn{constructor($,N,W){this.segmentGroup=$,this.processChildren=N,this.index=W}}function Je(P,$,N){if(P??=new G([],{}),0===P.segments.length&&P.hasChildren())return qe(P,$,N);const W=function xt(P,$,N){let W=0,de=$;const Te={match:!1,pathIndex:0,commandIndex:0};for(;de<P.segments.length;){if(W>=N.length)return Te;const Ze=P.segments[de],Nt=N[W];if(je(Nt))break;const Tt=`${Nt}`,vn=W<N.length-1?N[W+1]:null;if(de>0&&void 0===Tt)break;if(Tt&&vn&&"object"==typeof vn&&void 0===vn.outlets){if(!er(Tt,vn,Ze))return Te;W+=2}else{if(!er(Tt,{},Ze))return Te;W++}de++}return{match:!0,pathIndex:de,commandIndex:W}}(P,$,N),de=N.slice(W.commandIndex);if(W.match&&W.pathIndex<P.segments.length){const Te=new G(P.segments.slice(0,W.pathIndex),{});return Te.children[gt]=new G(P.segments.slice(W.pathIndex),P.children),qe(Te,0,de)}return W.match&&0===de.length?new G(P.segments,{}):W.match&&!P.hasChildren()?Pt(P,$,N):W.match?qe(P,0,de):Pt(P,$,N)}function qe(P,$,N){if(0===N.length)return new G(P.segments,{});{const W=function Me(P){return je(P[0])?P[0].outlets:{[gt]:P}}(N),de={};if(Object.keys(W).some(Te=>Te!==gt)&&P.children[gt]&&1===P.numberOfChildren&&0===P.children[gt].segments.length){const Te=qe(P.children[gt],$,N);return new G(P.segments,Te.children)}return Object.entries(W).forEach(([Te,Ze])=>{"string"==typeof Ze&&(Ze=[Ze]),null!==Ze&&(de[Te]=Je(P.children[Te],$,Ze))}),Object.entries(P.children).forEach(([Te,Ze])=>{void 0===W[Te]&&(de[Te]=Ze)}),new G(P.segments,de)}}function Pt(P,$,N){const W=P.segments.slice(0,$);let de=0;for(;de<N.length;){const Te=N[de];if(je(Te)){const Tt=un(Te.outlets);return new G(W,Tt)}if(0===de&&qt(N[0])){W.push(new ee(P.segments[$].path,dn(N[0]))),de++;continue}const Ze=je(Te)?Te.outlets[gt]:`${Te}`,Nt=de<N.length-1?N[de+1]:null;Ze&&Nt&&qt(Nt)?(W.push(new ee(Ze,dn(Nt))),de+=2):(W.push(new ee(Ze,{})),de++)}return new G(W,{})}function un(P){const $={};return Object.entries(P).forEach(([N,W])=>{"string"==typeof W&&(W=[W]),null!==W&&($[N]=Pt(new G([],{}),0,W))}),$}function dn(P){const $={};return Object.entries(P).forEach(([N,W])=>$[N]=`${W}`),$}function er(P,$,N){return P==N.path&&At($,N.parameters)}const Nn="imperative";var be=function(P){return P[P.NavigationStart=0]="NavigationStart",P[P.NavigationEnd=1]="NavigationEnd",P[P.NavigationCancel=2]="NavigationCancel",P[P.NavigationError=3]="NavigationError",P[P.RoutesRecognized=4]="RoutesRecognized",P[P.ResolveStart=5]="ResolveStart",P[P.ResolveEnd=6]="ResolveEnd",P[P.GuardsCheckStart=7]="GuardsCheckStart",P[P.GuardsCheckEnd=8]="GuardsCheckEnd",P[P.RouteConfigLoadStart=9]="RouteConfigLoadStart",P[P.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",P[P.ChildActivationStart=11]="ChildActivationStart",P[P.ChildActivationEnd=12]="ChildActivationEnd",P[P.ActivationStart=13]="ActivationStart",P[P.ActivationEnd=14]="ActivationEnd",P[P.Scroll=15]="Scroll",P[P.NavigationSkipped=16]="NavigationSkipped",P}(be||{});class Qe{constructor($,N){this.id=$,this.url=N}}class ke extends Qe{constructor($,N,W="imperative",de=null){super($,N),this.type=be.NavigationStart,this.navigationTrigger=W,this.restoredState=de}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class at extends Qe{constructor($,N,W){super($,N),this.urlAfterRedirects=W,this.type=be.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var yt=function(P){return P[P.Redirect=0]="Redirect",P[P.SupersededByNewNavigation=1]="SupersededByNewNavigation",P[P.NoDataFromResolver=2]="NoDataFromResolver",P[P.GuardRejected=3]="GuardRejected",P}(yt||{}),ht=function(P){return P[P.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",P[P.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",P}(ht||{});class wt extends Qe{constructor($,N,W,de){super($,N),this.reason=W,this.code=de,this.type=be.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Bt extends Qe{constructor($,N,W,de){super($,N),this.reason=W,this.code=de,this.type=be.NavigationSkipped}}class Xt extends Qe{constructor($,N,W,de){super($,N),this.error=W,this.target=de,this.type=be.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tn extends Qe{constructor($,N,W,de){super($,N),this.urlAfterRedirects=W,this.state=de,this.type=be.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class en extends Qe{constructor($,N,W,de){super($,N),this.urlAfterRedirects=W,this.state=de,this.type=be.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends Qe{constructor($,N,W,de,Te){super($,N),this.urlAfterRedirects=W,this.state=de,this.shouldActivate=Te,this.type=be.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jn extends Qe{constructor($,N,W,de){super($,N),this.urlAfterRedirects=W,this.state=de,this.type=be.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends Qe{constructor($,N,W,de){super($,N),this.urlAfterRedirects=W,this.state=de,this.type=be.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En{constructor($){this.route=$,this.type=be.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wn{constructor($){this.route=$,this.type=be.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Qr{constructor($){this.snapshot=$,this.type=be.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jr{constructor($){this.snapshot=$,this.type=be.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ls{constructor($){this.snapshot=$,this.type=be.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class js{constructor($){this.snapshot=$,this.type=be.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lo{constructor($,N,W){this.routerEvent=$,this.position=N,this.anchor=W,this.type=be.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class cs{}class or{constructor($){this.url=$}}class Qs{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Yr,this.attachRef=null}}let Yr=(()=>{class P{constructor(){this.contexts=new Map}onChildOutletCreated(N,W){const de=this.getOrCreateContext(N);de.outlet=W,this.contexts.set(N,de)}onChildOutletDestroyed(N){const W=this.getContext(N);W&&(W.outlet=null,W.attachRef=null)}onOutletDeactivated(){const N=this.contexts;return this.contexts=new Map,N}onOutletReAttached(N){this.contexts=N}getOrCreateContext(N){let W=this.getContext(N);return W||(W=new Qs,this.contexts.set(N,W)),W}getContext(N){return this.contexts.get(N)||null}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();class Os{constructor($){this._root=$}get root(){return this._root.value}parent($){const N=this.pathFromRoot($);return N.length>1?N[N.length-2]:null}children($){const N=Ys($,this._root);return N?N.children.map(W=>W.value):[]}firstChild($){const N=Ys($,this._root);return N&&N.children.length>0?N.children[0].value:null}siblings($){const N=ns($,this._root);return N.length<2?[]:N[N.length-2].children.map(de=>de.value).filter(de=>de!==$)}pathFromRoot($){return ns($,this._root).map(N=>N.value)}}function Ys(P,$){if(P===$.value)return $;for(const N of $.children){const W=Ys(P,N);if(W)return W}return null}function ns(P,$){if(P===$.value)return[$];for(const N of $.children){const W=ns(P,N);if(W.length)return W.unshift($),W}return[]}class Jr{constructor($,N){this.value=$,this.children=N}toString(){return`TreeNode(${this.value})`}}function Es(P){const $={};return P&&P.children.forEach(N=>$[N.value.outlet]=N),$}class Ri extends Os{constructor($,N){super($),this.snapshot=N,rs(this,$)}toString(){return this.snapshot.toString()}}function Ai(P){const $=function Ss(P){const Te=new Ni([],{},{},"",{},gt,P,null,{});return new us("",new Jr(Te,[]))}(P),N=new M.t([new ee("",{})]),W=new M.t({}),de=new M.t({}),Te=new M.t({}),Ze=new M.t(""),Nt=new bs(N,W,Te,Ze,de,gt,P,$.root);return Nt.snapshot=$.root,new Ri(new Jr(Nt,[]),$)}class bs{constructor($,N,W,de,Te,Ze,Nt,Tt){this.urlSubject=$,this.paramsSubject=N,this.queryParamsSubject=W,this.fragmentSubject=de,this.dataSubject=Te,this.outlet=Ze,this.component=Nt,this._futureSnapshot=Tt,this.title=this.dataSubject?.pipe((0,ne.T)(vn=>vn[dt]))??(0,A.of)(void 0),this.url=$,this.params=N,this.queryParams=W,this.fragment=de,this.data=Te}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,ne.T)($=>Qt($))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ne.T)($=>Qt($))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uo(P,$,N="emptyOnly"){let W;const{routeConfig:de}=P;return W=null===$||"always"!==N&&""!==de?.path&&($.component||$.routeConfig?.loadComponent)?{params:{...P.params},data:{...P.data},resolve:{...P.data,...P._resolvedData??{}}}:{params:{...$.params,...P.params},data:{...$.data,...P.data},resolve:{...P.data,...$.data,...de?.data,...P._resolvedData}},de&&te(de)&&(W.resolve[dt]=de.title),W}class Ni{get title(){return this.data?.[dt]}constructor($,N,W,de,Te,Ze,Nt,Tt,vn){this.url=$,this.params=N,this.queryParams=W,this.fragment=de,this.data=Te,this.outlet=Ze,this.component=Nt,this.routeConfig=Tt,this._resolve=vn}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??=Qt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Qt(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(W=>W.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class us extends Os{constructor($,N){super(N),this.url=$,rs(this,N)}toString(){return ho(this._root)}}function rs(P,$){$.value._routerState=P,$.children.forEach(N=>rs(P,N))}function ho(P){const $=P.children.length>0?` { ${P.children.map(ho).join(", ")} } `:"";return`${P.value}${$}`}function si(P){if(P.snapshot){const $=P.snapshot,N=P._futureSnapshot;P.snapshot=N,At($.queryParams,N.queryParams)||P.queryParamsSubject.next(N.queryParams),$.fragment!==N.fragment&&P.fragmentSubject.next(N.fragment),At($.params,N.params)||P.paramsSubject.next(N.params),function Ft(P,$){if(P.length!==$.length)return!1;for(let N=0;N<P.length;++N)if(!At(P[N],$[N]))return!1;return!0}($.url,N.url)||P.urlSubject.next(N.url),At($.data,N.data)||P.dataSubject.next(N.data)}else P.snapshot=P._futureSnapshot,P.dataSubject.next(P._futureSnapshot.data)}function Ve(P,$){const N=At(P.params,$.params)&&function Fe(P,$){return pt(P,$)&&P.every((N,W)=>At(N.parameters,$[W].parameters))}(P.url,$.url);return N&&!(!P.parent!=!$.parent)&&(!P.parent||Ve(P.parent,$.parent))}function te(P){return"string"==typeof P.title||null===P.title}let Ce=(()=>{class P{constructor(){this.activated=null,this._activatedRoute=null,this.name=gt,this.activateEvents=new i.bkB,this.deactivateEvents=new i.bkB,this.attachEvents=new i.bkB,this.detachEvents=new i.bkB,this.parentContexts=(0,i.WQX)(Yr),this.location=(0,i.WQX)(i.c1b),this.changeDetector=(0,i.WQX)(i.gRc),this.environmentInjector=(0,i.WQX)(i.uvJ),this.inputBinder=(0,i.WQX)(tt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(N){if(N.name){const{firstChange:W,previousValue:de}=N.name;if(W)return;this.isTrackedInParentContexts(de)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(de)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(N){return this.parentContexts.getContext(N)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const N=this.parentContexts.getContext(this.name);N?.route&&(N.attachRef?this.attach(N.attachRef,N.route):this.activateWith(N.route,N.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const N=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(N.instance),N}attach(N,W){this.activated=N,this._activatedRoute=W,this.location.insert(N.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(N.instance)}deactivate(){if(this.activated){const N=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(N)}}activateWith(N,W){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=N;const de=this.location,Ze=N.snapshot.component,Nt=this.parentContexts.getOrCreateContext(this.name).children,Tt=new Ne(N,Nt,de.injector);this.activated=de.createComponent(Ze,{index:de.length,injector:Tt,environmentInjector:W??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275dir=i.FsC({type:P,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[i.OA$]})}}return P})();class Ne{constructor($,N,W){this.route=$,this.childContexts=N,this.parent=W,this.__ngOutletInjector=!0}get($,N){return $===bs?this.route:$===Yr?this.childContexts:this.parent.get($,N)}}const tt=new i.nKC("");let Vt=(()=>{class P{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(N){this.unsubscribeFromRouteData(N),this.subscribeToRouteData(N)}unsubscribeFromRouteData(N){this.outletDataSubscriptions.get(N)?.unsubscribe(),this.outletDataSubscriptions.delete(N)}subscribeToRouteData(N){const{activatedRoute:W}=N,de=(0,D.z)([W.queryParams,W.params,W.data]).pipe((0,le.n)(([Te,Ze,Nt],Tt)=>(Nt={...Te,...Ze,...Nt},0===Tt?(0,A.of)(Nt):Promise.resolve(Nt)))).subscribe(Te=>{if(!N.isActivated||!N.activatedComponentRef||N.activatedRoute!==W||null===W.component)return void this.unsubscribeFromRouteData(N);const Ze=(0,i.HJs)(W.component);if(Ze)for(const{templateName:Nt}of Ze.inputs)N.activatedComponentRef.setInput(Nt,Te[Nt]);else this.unsubscribeFromRouteData(N)});this.outletDataSubscriptions.set(N,de)}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac})}}return P})();function gn(P,$,N){if(N&&P.shouldReuseRoute($.value,N.value.snapshot)){const W=N.value;W._futureSnapshot=$.value;const de=function Gn(P,$,N){return $.children.map(W=>{for(const de of N.children)if(P.shouldReuseRoute(W.value,de.value.snapshot))return gn(P,W,de);return gn(P,W)})}(P,$,N);return new Jr(W,de)}{if(P.shouldAttach($.value)){const Te=P.retrieve($.value);if(null!==Te){const Ze=Te.route;return Ze.value._futureSnapshot=$.value,Ze.children=$.children.map(Nt=>gn(P,Nt)),Ze}}const W=function Dn(P){return new bs(new M.t(P.url),new M.t(P.params),new M.t(P.queryParams),new M.t(P.fragment),new M.t(P.data),P.outlet,P.component,P)}($.value),de=$.children.map(Te=>gn(P,Te));return new Jr(W,de)}}const Sr="ngNavigationCancelingError";function dr(P,$){const{redirectTo:N,navigationBehaviorOptions:W}=Jt($)?{redirectTo:$,navigationBehaviorOptions:void 0}:$,de=wr(!1,yt.Redirect);return de.url=N,de.navigationBehaviorOptions=W,de}function wr(P,$){const N=new Error(`NavigationCancelingError: ${P||""}`);return N[Sr]=!0,N.cancellationCode=$,N}function Lr(P){return!!P&&P[Sr]}let Br=(()=>{class P{static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275cmp=i.VBU({type:P,selectors:[["ng-component"]],standalone:!0,features:[i.aNF],decls:1,vars:0,template:function(W,de){1&W&&i.nrm(0,"router-outlet")},dependencies:[Ce],encapsulation:2})}}return P})();function vr(P){const $=P.children&&P.children.map(vr),N=$?{...P,children:$}:{...P};return!N.component&&!N.loadComponent&&($||N.loadChildren)&&N.outlet&&N.outlet!==gt&&(N.component=Br),N}function xr(P){return P.outlet||gt}function Ps(P){if(!P)return null;if(P.routeConfig?._injector)return P.routeConfig._injector;for(let $=P.parent;$;$=$.parent){const N=$.routeConfig;if(N?._loadedInjector)return N._loadedInjector;if(N?._injector)return N._injector}return null}class _i{constructor($,N,W,de,Te){this.routeReuseStrategy=$,this.futureState=N,this.currState=W,this.forwardEvent=de,this.inputBindingEnabled=Te}activate($){const N=this.futureState._root,W=this.currState?this.currState._root:null;this.deactivateChildRoutes(N,W,$),si(this.futureState.root),this.activateChildRoutes(N,W,$)}deactivateChildRoutes($,N,W){const de=Es(N);$.children.forEach(Te=>{const Ze=Te.value.outlet;this.deactivateRoutes(Te,de[Ze],W),delete de[Ze]}),Object.values(de).forEach(Te=>{this.deactivateRouteAndItsChildren(Te,W)})}deactivateRoutes($,N,W){const de=$.value,Te=N?N.value:null;if(de===Te)if(de.component){const Ze=W.getContext(de.outlet);Ze&&this.deactivateChildRoutes($,N,Ze.children)}else this.deactivateChildRoutes($,N,W);else Te&&this.deactivateRouteAndItsChildren(N,W)}deactivateRouteAndItsChildren($,N){$.value.component&&this.routeReuseStrategy.shouldDetach($.value.snapshot)?this.detachAndStoreRouteSubtree($,N):this.deactivateRouteAndOutlet($,N)}detachAndStoreRouteSubtree($,N){const W=N.getContext($.value.outlet),de=W&&$.value.component?W.children:N,Te=Es($);for(const Ze of Object.values(Te))this.deactivateRouteAndItsChildren(Ze,de);if(W&&W.outlet){const Ze=W.outlet.detach(),Nt=W.children.onOutletDeactivated();this.routeReuseStrategy.store($.value.snapshot,{componentRef:Ze,route:$,contexts:Nt})}}deactivateRouteAndOutlet($,N){const W=N.getContext($.value.outlet),de=W&&$.value.component?W.children:N,Te=Es($);for(const Ze of Object.values(Te))this.deactivateRouteAndItsChildren(Ze,de);W&&(W.outlet&&(W.outlet.deactivate(),W.children.onOutletDeactivated()),W.attachRef=null,W.route=null)}activateChildRoutes($,N,W){const de=Es(N);$.children.forEach(Te=>{this.activateRoutes(Te,de[Te.value.outlet],W),this.forwardEvent(new js(Te.value.snapshot))}),$.children.length&&this.forwardEvent(new jr($.value.snapshot))}activateRoutes($,N,W){const de=$.value,Te=N?N.value:null;if(si(de),de===Te)if(de.component){const Ze=W.getOrCreateContext(de.outlet);this.activateChildRoutes($,N,Ze.children)}else this.activateChildRoutes($,N,W);else if(de.component){const Ze=W.getOrCreateContext(de.outlet);if(this.routeReuseStrategy.shouldAttach(de.snapshot)){const Nt=this.routeReuseStrategy.retrieve(de.snapshot);this.routeReuseStrategy.store(de.snapshot,null),Ze.children.onOutletReAttached(Nt.contexts),Ze.attachRef=Nt.componentRef,Ze.route=Nt.route.value,Ze.outlet&&Ze.outlet.attach(Nt.componentRef,Nt.route.value),si(Nt.route.value),this.activateChildRoutes($,null,Ze.children)}else{const Nt=Ps(de.snapshot);Ze.attachRef=null,Ze.route=de,Ze.injector=Nt,Ze.outlet&&Ze.outlet.activateWith(de,Ze.injector),this.activateChildRoutes($,null,Ze.children)}}else this.activateChildRoutes($,null,W)}}class $o{constructor($){this.path=$,this.route=this.path[this.path.length-1]}}class Yi{constructor($,N){this.component=$,this.route=N}}function Dr(P,$,N){const W=P._root;return ss(W,$?$._root:null,N,[W.value])}function ji(P,$){const N=Symbol(),W=$.get(P,N);return W===N?"function"!=typeof P||(0,i.LfX)(P)?$.get(P):P:W}function ss(P,$,N,W,de={canDeactivateChecks:[],canActivateChecks:[]}){const Te=Es($);return P.children.forEach(Ze=>{(function Js(P,$,N,W,de={canDeactivateChecks:[],canActivateChecks:[]}){const Te=P.value,Ze=$?$.value:null,Nt=N?N.getContext(P.value.outlet):null;if(Ze&&Te.routeConfig===Ze.routeConfig){const Tt=function To(P,$,N){if("function"==typeof N)return N(P,$);switch(N){case"pathParamsChange":return!pt(P.url,$.url);case"pathParamsOrQueryParamsChange":return!pt(P.url,$.url)||!At(P.queryParams,$.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ve(P,$)||!At(P.queryParams,$.queryParams);default:return!Ve(P,$)}}(Ze,Te,Te.routeConfig.runGuardsAndResolvers);Tt?de.canActivateChecks.push(new $o(W)):(Te.data=Ze.data,Te._resolvedData=Ze._resolvedData),ss(P,$,Te.component?Nt?Nt.children:null:N,W,de),Tt&&Nt&&Nt.outlet&&Nt.outlet.isActivated&&de.canDeactivateChecks.push(new Yi(Nt.outlet.component,Ze))}else Ze&&ue($,Nt,de),de.canActivateChecks.push(new $o(W)),ss(P,null,Te.component?Nt?Nt.children:null:N,W,de)})(Ze,Te[Ze.value.outlet],N,W.concat([Ze.value]),de),delete Te[Ze.value.outlet]}),Object.entries(Te).forEach(([Ze,Nt])=>ue(Nt,N.getContext(Ze),de)),de}function ue(P,$,N){const W=Es(P),de=P.value;Object.entries(W).forEach(([Te,Ze])=>{ue(Ze,de.component?$?$.children.getContext(Te):null:$,N)}),N.canDeactivateChecks.push(new Yi(de.component&&$&&$.outlet&&$.outlet.isActivated?$.outlet.component:null,de))}function pe(P){return"function"==typeof P}function Zs(P){return P instanceof b.G||"EmptyError"===P?.name}const Di=Symbol("INITIAL_VALUE");function Oo(){return(0,le.n)(P=>(0,D.z)(P.map($=>$.pipe((0,Y.s)(1),(0,ve.Z)(Di)))).pipe((0,ne.T)($=>{for(const N of $)if(!0!==N){if(N===Di)return Di;if(!1===N||N instanceof Ae)return N}return!0}),(0,Ie.p)($=>$!==Di),(0,Y.s)(1)))}function el(P){return(0,O.F)((0,ce.M)($=>{if(Jt($))throw dr(0,$)}),(0,ne.T)($=>!0===$))}class qs{constructor($){this.segmentGroup=$||null}}class Wo extends Error{constructor($){super(),this.urlTree=$}}function po(P){return(0,C.$)(new qs(P))}class qr{constructor($,N){this.urlSerializer=$,this.urlTree=N}lineralizeSegments($,N){let W=[],de=N.root;for(;;){if(W=W.concat(de.segments),0===de.numberOfChildren)return(0,A.of)(W);if(de.numberOfChildren>1||!de.children[gt])return(0,C.$)(new i.wOt(4e3,!1));de=de.children[gt]}}applyRedirectCommands($,N,W){const de=this.applyRedirectCreateUrlTree(N,this.urlSerializer.parse(N),$,W);if(N.startsWith("/"))throw new Wo(de);return de}applyRedirectCreateUrlTree($,N,W,de){const Te=this.createSegmentGroup($,N.root,W,de);return new Ae(Te,this.createQueryParams(N.queryParams,this.urlTree.queryParams),N.fragment)}createQueryParams($,N){const W={};return Object.entries($).forEach(([de,Te])=>{if("string"==typeof Te&&Te.startsWith(":")){const Nt=Te.substring(1);W[de]=N[Nt]}else W[de]=Te}),W}createSegmentGroup($,N,W,de){const Te=this.createSegments($,N.segments,W,de);let Ze={};return Object.entries(N.children).forEach(([Nt,Tt])=>{Ze[Nt]=this.createSegmentGroup($,Tt,W,de)}),new G(Te,Ze)}createSegments($,N,W,de){return N.map(Te=>Te.path.startsWith(":")?this.findPosParam($,Te,de):this.findOrReturn(Te,W))}findPosParam($,N,W){const de=W[N.path.substring(1)];if(!de)throw new i.wOt(4001,!1);return de}findOrReturn($,N){let W=0;for(const de of N){if(de.path===$.path)return N.splice(W),de;W++}return $}}const oi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ji(P,$,N,W,de){const Te=Ti(P,$,N);return Te.matched?(W=function ni(P,$){return P.providers&&!P._injector&&(P._injector=(0,i.Ol2)(P.providers,$,`Route: ${P.path}`)),P._injector??$}($,W),function du(P,$,N,W){const de=$.canMatch;if(!de||0===de.length)return(0,A.of)(!0);const Te=de.map(Ze=>{const Nt=ji(Ze,P);return Ue(function $s(P){return P&&pe(P.canMatch)}(Nt)?Nt.canMatch($,N):(0,i.N4e)(P,()=>Nt($,N)))});return(0,A.of)(Te).pipe(Oo(),el())}(W,$,N).pipe((0,ne.T)(Ze=>!0===Ze?Te:{...oi}))):(0,A.of)(Te)}function Ti(P,$,N){if("**"===$.path)return function tl(P){return{matched:!0,parameters:P.length>0?ze(P).parameters:{},consumedSegments:P,remainingSegments:[],positionalParamSegments:{}}}(N);if(""===$.path)return"full"===$.pathMatch&&(P.hasChildren()||N.length>0)?{...oi}:{matched:!0,consumedSegments:[],remainingSegments:N,parameters:{},positionalParamSegments:{}};const de=($.matcher||mt)(N,P,$);if(!de)return{...oi};const Te={};Object.entries(de.posParams??{}).forEach(([Nt,Tt])=>{Te[Nt]=Tt.path});const Ze=de.consumed.length>0?{...Te,...de.consumed[de.consumed.length-1].parameters}:Te;return{matched:!0,consumedSegments:de.consumed,remainingSegments:N.slice(de.consumed.length),parameters:Ze,positionalParamSegments:de.posParams??{}}}function Go(P,$,N,W){return N.length>0&&function nl(P,$,N){return N.some(W=>Ho(P,$,W)&&xr(W)!==gt)}(P,N,W)?{segmentGroup:new G($,kl(W,new G(N,P.children))),slicedSegments:[]}:0===N.length&&function Ko(P,$,N){return N.some(W=>Ho(P,$,W))}(P,N,W)?{segmentGroup:new G(P.segments,eo(P,N,W,P.children)),slicedSegments:N}:{segmentGroup:new G(P.segments,P.children),slicedSegments:N}}function eo(P,$,N,W){const de={};for(const Te of N)if(Ho(P,$,Te)&&!W[xr(Te)]){const Ze=new G([],{});de[xr(Te)]=Ze}return{...W,...de}}function kl(P,$){const N={};N[gt]=$;for(const W of P)if(""===W.path&&xr(W)!==gt){const de=new G([],{});N[xr(W)]=de}return N}function Ho(P,$,N){return(!(P.hasChildren()||$.length>0)||"full"!==N.pathMatch)&&""===N.path}class da{}class hu{constructor($,N,W,de,Te,Ze,Nt){this.injector=$,this.configLoader=N,this.rootComponentType=W,this.config=de,this.urlTree=Te,this.paramsInheritanceStrategy=Ze,this.urlSerializer=Nt,this.applyRedirects=new qr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError($){return new i.wOt(4002,`'${$.segmentGroup}'`)}recognize(){const $=Go(this.urlTree.root,[],[],this.config).segmentGroup;return this.match($).pipe((0,ne.T)(N=>{const W=new Ni([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},gt,this.rootComponentType,null,{}),de=new Jr(W,N),Te=new us("",de),Ze=function Bn(P,$,N=null,W=null){return nt(Yn(P),$,N,W)}(W,[],this.urlTree.queryParams,this.urlTree.fragment);return Ze.queryParams=this.urlTree.queryParams,Te.url=this.urlSerializer.serialize(Ze),this.inheritParamsAndData(Te._root,null),{state:Te,tree:Ze}}))}match($){return this.processSegmentGroup(this.injector,this.config,$,gt).pipe((0,Se.W)(W=>{if(W instanceof Wo)return this.urlTree=W.urlTree,this.match(W.urlTree.root);throw W instanceof qs?this.noMatchError(W):W}))}inheritParamsAndData($,N){const W=$.value,de=uo(W,N,this.paramsInheritanceStrategy);W.params=Object.freeze(de.params),W.data=Object.freeze(de.data),$.children.forEach(Te=>this.inheritParamsAndData(Te,W))}processSegmentGroup($,N,W,de){return 0===W.segments.length&&W.hasChildren()?this.processChildren($,N,W):this.processSegment($,N,W,W.segments,de,!0).pipe((0,ne.T)(Te=>Te instanceof Jr?[Te]:[]))}processChildren($,N,W){const de=[];for(const Te of Object.keys(W.children))"primary"===Te?de.unshift(Te):de.push(Te);return(0,y.H)(de).pipe((0,re.H)(Te=>{const Ze=W.children[Te],Nt=function Xs(P,$){const N=P.filter(W=>xr(W)===$);return N.push(...P.filter(W=>xr(W)!==$)),N}(N,Te);return this.processSegmentGroup($,Nt,Ze,Te)}),function oe(P,$){return(0,R.N)(function we(P,$,N,W,de){return(Te,Ze)=>{let Nt=N,Tt=$,vn=0;Te.subscribe((0,V._)(Ze,rr=>{const Cr=vn++;Tt=Nt?P(Tt,rr,Cr):(Nt=!0,rr),W&&Ze.next(Tt)},de&&(()=>{Nt&&Ze.next(Tt),Ze.complete()})))}}(P,$,arguments.length>=2,!0))}((Te,Ze)=>(Te.push(...Ze),Te)),se(null),function Pe(P,$){const N=arguments.length>=2;return W=>W.pipe(P?(0,Ie.p)((de,Te)=>P(de,Te,W)):Z.D,Ee(1),N?se($):Ge(()=>new b.G))}(),(0,He.Z)(Te=>{if(null===Te)return po(W);const Ze=bc(Te);return function Ul(P){P.sort(($,N)=>$.value.outlet===gt?-1:N.value.outlet===gt?1:$.value.outlet.localeCompare(N.value.outlet))}(Ze),(0,A.of)(Ze)}))}processSegment($,N,W,de,Te,Ze){return(0,y.H)(N).pipe((0,re.H)(Nt=>this.processSegmentAgainstRoute(Nt._injector??$,N,Nt,W,de,Te,Ze).pipe((0,Se.W)(Tt=>{if(Tt instanceof qs)return(0,A.of)(null);throw Tt}))),J(Nt=>!!Nt),(0,Se.W)(Nt=>{if(Zs(Nt))return function Fl(P,$,N){return 0===$.length&&!P.children[N]}(W,de,Te)?(0,A.of)(new da):po(W);throw Nt}))}processSegmentAgainstRoute($,N,W,de,Te,Ze,Nt){return function wa(P,$,N,W){return!!(xr(P)===W||W!==gt&&Ho($,N,P))&&Ti($,P,N).matched}(W,de,Te,Ze)?void 0===W.redirectTo?this.matchSegmentAgainstRoute($,de,W,Te,Ze):this.allowRedirects&&Nt?this.expandSegmentAgainstRouteUsingRedirect($,de,N,W,Te,Ze):po(de):po(de)}expandSegmentAgainstRouteUsingRedirect($,N,W,de,Te,Ze){const{matched:Nt,consumedSegments:Tt,positionalParamSegments:vn,remainingSegments:rr}=Ti(N,de,Te);if(!Nt)return po(N);de.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Cr=this.applyRedirects.applyRedirectCommands(Tt,de.redirectTo,vn);return this.applyRedirects.lineralizeSegments(de,Cr).pipe((0,He.Z)(fi=>this.processSegment($,W,N,fi.concat(rr),Ze,!1)))}matchSegmentAgainstRoute($,N,W,de,Te){const Ze=Ji(N,W,de,$);return"**"===W.path&&(N.children={}),Ze.pipe((0,le.n)(Nt=>Nt.matched?this.getChildConfig($=W._injector??$,W,de).pipe((0,le.n)(({routes:Tt})=>{const vn=W._loadedInjector??$,{consumedSegments:rr,remainingSegments:Cr,parameters:fi}=Nt,xa=new Ni(rr,fi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Bl(P){return P.data||{}}(W),xr(W),W.component??W._loadedComponent??null,W,function ha(P){return P.resolve||{}}(W)),{segmentGroup:bn,slicedSegments:fs}=Go(N,rr,Cr,Tt);if(0===fs.length&&bn.hasChildren())return this.processChildren(vn,Tt,bn).pipe((0,ne.T)(No=>null===No?null:new Jr(xa,No)));if(0===Tt.length&&0===fs.length)return(0,A.of)(new Jr(xa,[]));const Ks=xr(W)===Te;return this.processSegment(vn,Tt,bn,fs,Ks?gt:Te,!0).pipe((0,ne.T)(No=>new Jr(xa,No instanceof Jr?[No]:[])))})):po(N)))}getChildConfig($,N,W){return N.children?(0,A.of)({routes:N.children,injector:$}):N.loadChildren?void 0!==N._loadedRoutes?(0,A.of)({routes:N._loadedRoutes,injector:N._loadedInjector}):function ua(P,$,N,W){const de=$.canLoad;if(void 0===de||0===de.length)return(0,A.of)(!0);const Te=de.map(Ze=>{const Nt=ji(Ze,P);return Ue(function Oe(P){return P&&pe(P.canLoad)}(Nt)?Nt.canLoad($,N):(0,i.N4e)(P,()=>Nt($,N)))});return(0,A.of)(Te).pipe(Oo(),el())}($,N,W).pipe((0,He.Z)(de=>de?this.configLoader.loadChildren($,N).pipe((0,ce.M)(Te=>{N._loadedRoutes=Te.routes,N._loadedInjector=Te.injector})):function qn(P){return(0,C.$)(wr(!1,yt.GuardRejected))}())):(0,A.of)({routes:[],injector:$})}}function fu(P){const $=P.value.routeConfig;return $&&""===$.path}function bc(P){const $=[],N=new Set;for(const W of P){if(!fu(W)){$.push(W);continue}const de=$.find(Te=>W.value.routeConfig===Te.value.routeConfig);void 0!==de?(de.children.push(...W.children),N.add(de)):$.push(W)}for(const W of N){const de=bc(W.children);$.push(new Jr(W.value,de))}return $.filter(W=>!N.has(W))}function Ws(P){const $=P.children.map(N=>Ws(N)).flat();return[P,...$]}function Li(P){return(0,le.n)($=>{const N=P($);return N?(0,y.H)(N).pipe((0,ne.T)(()=>$)):(0,A.of)($)})}let Pa=(()=>{class P{buildTitle(N){let W,de=N.root;for(;void 0!==de;)W=this.getResolvedTitleForRoute(de)??W,de=de.children.find(Te=>Te.outlet===gt);return W}getResolvedTitleForRoute(N){return N.data[dt]}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:()=>(0,i.WQX)(il),providedIn:"root"})}}return P})(),il=(()=>{class P extends Pa{constructor(N){super(),this.title=N}updateTitle(N){const W=this.buildTitle(N);void 0!==W&&this.title.setTitle(W)}static{this.\u0275fac=function(W){return new(W||P)(i.KVO(st.hE))}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();const to=new i.nKC("",{providedIn:"root",factory:()=>({})}),di=new i.nKC("");let Zi=(()=>{class P{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,i.WQX)(i.Ql9)}loadComponent(N){if(this.componentLoaders.get(N))return this.componentLoaders.get(N);if(N._loadedComponent)return(0,A.of)(N._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(N);const W=Ue(N.loadComponent()).pipe((0,ne.T)(Gs),(0,ce.M)(Te=>{this.onLoadEndListener&&this.onLoadEndListener(N),N._loadedComponent=Te}),(0,Xe.j)(()=>{this.componentLoaders.delete(N)})),de=new z(W,()=>new X.B).pipe(x());return this.componentLoaders.set(N,de),de}loadChildren(N,W){if(this.childrenLoaders.get(W))return this.childrenLoaders.get(W);if(W._loadedRoutes)return(0,A.of)({routes:W._loadedRoutes,injector:W._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(W);const Te=function sl(P,$,N,W){return Ue(P.loadChildren()).pipe((0,ne.T)(Gs),(0,He.Z)(de=>de instanceof i.Co$||Array.isArray(de)?(0,A.of)(de):(0,y.H)($.compileModuleAsync(de))),(0,ne.T)(de=>{W&&W(P);let Te,Ze,Nt=!1;return Array.isArray(de)?(Ze=de,!0):(Te=de.create(N).injector,Ze=Te.get(di,[],{optional:!0,self:!0}).flat()),{routes:Ze.map(vr),injector:Te}}))}(W,this.compiler,N,this.onLoadEndListener).pipe((0,Xe.j)(()=>{this.childrenLoaders.delete(W)})),Ze=new z(Te,()=>new X.B).pipe(x());return this.childrenLoaders.set(W,Ze),Ze}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();function Gs(P){return function Po(P){return P&&"object"==typeof P&&"default"in P}(P)?P.default:P}let go=(()=>{class P{static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:()=>(0,i.WQX)(ol),providedIn:"root"})}}return P})(),ol=(()=>{class P{shouldProcessUrl(N){return!0}extract(N){return N}merge(N,W){return N}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();const zo=new i.nKC(""),F=new i.nKC("");function _e(P,$,N){const W=P.get(F),de=P.get(K.qQ);return P.get(i.SKi).runOutsideAngular(()=>{if(!de.startViewTransition||W.skipNextTransition)return W.skipNextTransition=!1,Promise.resolve();let Te;const Ze=new Promise(vn=>{Te=vn}),Nt=de.startViewTransition(()=>(Te(),function q(P){return new Promise($=>{(0,i.mal)($,{injector:P})})}(P))),{onViewTransitionCreated:Tt}=W;return Tt&&(0,i.N4e)(P,()=>Tt({transition:Nt,from:$,to:N})),Ze})}let he=(()=>{class P{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new X.B,this.transitionAbortSubject=new X.B,this.configLoader=(0,i.WQX)(Zi),this.environmentInjector=(0,i.WQX)(i.uvJ),this.urlSerializer=(0,i.WQX)(Mt),this.rootContexts=(0,i.WQX)(Yr),this.location=(0,i.WQX)(K.aZ),this.inputBindingEnabled=null!==(0,i.WQX)(tt,{optional:!0}),this.titleStrategy=(0,i.WQX)(Pa),this.options=(0,i.WQX)(to,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,i.WQX)(go),this.createViewTransition=(0,i.WQX)(zo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,A.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=de=>this.events.next(new Wn(de)),this.configLoader.onLoadStartListener=de=>this.events.next(new En(de))}complete(){this.transitions?.complete()}handleNavigationRequest(N){const W=++this.navigationId;this.transitions?.next({...this.transitions.value,...N,id:W})}setupNavigations(N,W,de){return this.transitions=new M.t({id:0,currentUrlTree:W,currentRawUrl:W,extractedUrl:this.urlHandlingStrategy.extract(W),urlAfterRedirects:this.urlHandlingStrategy.extract(W),rawUrl:W,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Nn,restoredState:null,currentSnapshot:de.snapshot,targetSnapshot:null,currentRouterState:de,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ie.p)(Te=>0!==Te.id),(0,ne.T)(Te=>({...Te,extractedUrl:this.urlHandlingStrategy.extract(Te.rawUrl)})),(0,le.n)(Te=>{let Ze=!1,Nt=!1;return(0,A.of)(Te).pipe((0,le.n)(Tt=>{if(this.navigationId>Te.id)return this.cancelNavigationTransition(Te,"",yt.SupersededByNewNavigation),_.w;this.currentTransition=Te,this.currentNavigation={id:Tt.id,initialUrl:Tt.rawUrl,extractedUrl:Tt.extractedUrl,trigger:Tt.source,extras:Tt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const vn=!N.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!vn&&"reload"!==(Tt.extras.onSameUrlNavigation??N.onSameUrlNavigation)){const Cr="";return this.events.next(new Bt(Tt.id,this.urlSerializer.serialize(Tt.rawUrl),Cr,ht.IgnoredSameUrlNavigation)),Tt.resolve(null),_.w}if(this.urlHandlingStrategy.shouldProcessUrl(Tt.rawUrl))return(0,A.of)(Tt).pipe((0,le.n)(Cr=>{const fi=this.transitions?.getValue();return this.events.next(new ke(Cr.id,this.urlSerializer.serialize(Cr.extractedUrl),Cr.source,Cr.restoredState)),fi!==this.transitions?.getValue()?_.w:Promise.resolve(Cr)}),function Oi(P,$,N,W,de,Te){return(0,He.Z)(Ze=>function fd(P,$,N,W,de,Te,Ze="emptyOnly"){return new hu(P,$,N,W,de,Ze,Te).recognize()}(P,$,N,W,Ze.extractedUrl,de,Te).pipe((0,ne.T)(({state:Nt,tree:Tt})=>({...Ze,targetSnapshot:Nt,urlAfterRedirects:Tt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,N.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ce.M)(Cr=>{Te.targetSnapshot=Cr.targetSnapshot,Te.urlAfterRedirects=Cr.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Cr.urlAfterRedirects};const fi=new tn(Cr.id,this.urlSerializer.serialize(Cr.extractedUrl),this.urlSerializer.serialize(Cr.urlAfterRedirects),Cr.targetSnapshot);this.events.next(fi)}));if(vn&&this.urlHandlingStrategy.shouldProcessUrl(Tt.currentRawUrl)){const{id:Cr,extractedUrl:fi,source:xa,restoredState:bn,extras:fs}=Tt,Ks=new ke(Cr,this.urlSerializer.serialize(fi),xa,bn);this.events.next(Ks);const No=Ai(this.rootComponentType).snapshot;return this.currentTransition=Te={...Tt,targetSnapshot:No,urlAfterRedirects:fi,extras:{...fs,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=fi,(0,A.of)(Te)}{const Cr="";return this.events.next(new Bt(Tt.id,this.urlSerializer.serialize(Tt.extractedUrl),Cr,ht.IgnoredByUrlHandlingStrategy)),Tt.resolve(null),_.w}}),(0,ce.M)(Tt=>{const vn=new en(Tt.id,this.urlSerializer.serialize(Tt.extractedUrl),this.urlSerializer.serialize(Tt.urlAfterRedirects),Tt.targetSnapshot);this.events.next(vn)}),(0,ne.T)(Tt=>(this.currentTransition=Te={...Tt,guards:Dr(Tt.targetSnapshot,Tt.currentSnapshot,this.rootContexts)},Te)),function vc(P,$){return(0,He.Z)(N=>{const{targetSnapshot:W,currentSnapshot:de,guards:{canActivateChecks:Te,canDeactivateChecks:Ze}}=N;return 0===Ze.length&&0===Te.length?(0,A.of)({...N,guardsResult:!0}):function la(P,$,N,W){return(0,y.H)(P).pipe((0,He.Z)(de=>function Ec(P,$,N,W,de){const Te=$&&$.routeConfig?$.routeConfig.canDeactivate:null;if(!Te||0===Te.length)return(0,A.of)(!0);const Ze=Te.map(Nt=>{const Tt=Ps($)??de,vn=ji(Nt,Tt);return Ue(function pr(P){return P&&pe(P.canDeactivate)}(vn)?vn.canDeactivate(P,$,N,W):(0,i.N4e)(Tt,()=>vn(P,$,N,W))).pipe(J())});return(0,A.of)(Ze).pipe(Oo())}(de.component,de.route,N,$,W)),J(de=>!0!==de,!0))}(Ze,W,de,P).pipe((0,He.Z)(Nt=>Nt&&function Q(P){return"boolean"==typeof P}(Nt)?function xl(P,$,N,W){return(0,y.H)($).pipe((0,re.H)(de=>(0,f.x)(function ca(P,$){return null!==P&&$&&$(new Qr(P)),(0,A.of)(!0)}(de.route.parent,W),function Zr(P,$){return null!==P&&$&&$(new ls(P)),(0,A.of)(!0)}(de.route,W),function _c(P,$,N){const W=$[$.length-1],Te=$.slice(0,$.length-1).reverse().map(Ze=>function Xi(P){const $=P.routeConfig?P.routeConfig.canActivateChild:null;return $&&0!==$.length?{node:P,guards:$}:null}(Ze)).filter(Ze=>null!==Ze).map(Ze=>(0,S.v)(()=>{const Nt=Ze.guards.map(Tt=>{const vn=Ps(Ze.node)??N,rr=ji(Tt,vn);return Ue(function Rn(P){return P&&pe(P.canActivateChild)}(rr)?rr.canActivateChild(W,P):(0,i.N4e)(vn,()=>rr(W,P))).pipe(J())});return(0,A.of)(Nt).pipe(Oo())}));return(0,A.of)(Te).pipe(Oo())}(P,de.path,N),function Ms(P,$,N){const W=$.routeConfig?$.routeConfig.canActivate:null;if(!W||0===W.length)return(0,A.of)(!0);const de=W.map(Te=>(0,S.v)(()=>{const Ze=Ps($)??N,Nt=ji(Te,Ze);return Ue(function ot(P){return P&&pe(P.canActivate)}(Nt)?Nt.canActivate($,P):(0,i.N4e)(Ze,()=>Nt($,P))).pipe(J())}));return(0,A.of)(de).pipe(Oo())}(P,de.route,N))),J(de=>!0!==de,!0))}(W,Te,P,$):(0,A.of)(Nt)),(0,ne.T)(Nt=>({...N,guardsResult:Nt})))})}(this.environmentInjector,Tt=>this.events.next(Tt)),(0,ce.M)(Tt=>{if(Te.guardsResult=Tt.guardsResult,Jt(Tt.guardsResult))throw dr(0,Tt.guardsResult);const vn=new Cn(Tt.id,this.urlSerializer.serialize(Tt.extractedUrl),this.urlSerializer.serialize(Tt.urlAfterRedirects),Tt.targetSnapshot,!!Tt.guardsResult);this.events.next(vn)}),(0,Ie.p)(Tt=>!!Tt.guardsResult||(this.cancelNavigationTransition(Tt,"",yt.GuardRejected),!1)),Li(Tt=>{if(Tt.guards.canActivateChecks.length)return(0,A.of)(Tt).pipe((0,ce.M)(vn=>{const rr=new Jn(vn.id,this.urlSerializer.serialize(vn.extractedUrl),this.urlSerializer.serialize(vn.urlAfterRedirects),vn.targetSnapshot);this.events.next(rr)}),(0,le.n)(vn=>{let rr=!1;return(0,A.of)(vn).pipe(function ui(P,$){return(0,He.Z)(N=>{const{targetSnapshot:W,guards:{canActivateChecks:de}}=N;if(!de.length)return(0,A.of)(N);const Te=new Set(de.map(Tt=>Tt.route)),Ze=new Set;for(const Tt of Te)if(!Ze.has(Tt))for(const vn of Ws(Tt))Ze.add(vn);let Nt=0;return(0,y.H)(Ze).pipe((0,re.H)(Tt=>Te.has(Tt)?function Cs(P,$,N,W){const de=P.routeConfig,Te=P._resolve;return void 0!==de?.title&&!te(de)&&(Te[dt]=de.title),function ds(P,$,N,W){const de=lt(P);if(0===de.length)return(0,A.of)({});const Te={};return(0,y.H)(de).pipe((0,He.Z)(Ze=>function Fi(P,$,N,W){const de=Ps($)??W,Te=ji(P,de);return Ue(Te.resolve?Te.resolve($,N):(0,i.N4e)(de,()=>Te($,N)))}(P[Ze],$,N,W).pipe(J(),(0,ce.M)(Nt=>{Te[Ze]=Nt}))),Ee(1),(0,$e.u)(Te),(0,Se.W)(Ze=>Zs(Ze)?_.w:(0,C.$)(Ze)))}(Te,P,$,W).pipe((0,ne.T)(Ze=>(P._resolvedData=Ze,P.data=uo(P,P.parent,N).resolve,null)))}(Tt,W,P,$):(Tt.data=uo(Tt,Tt.parent,P).resolve,(0,A.of)(void 0))),(0,ce.M)(()=>Nt++),Ee(1),(0,He.Z)(Tt=>Nt===Ze.size?(0,A.of)(N):_.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ce.M)({next:()=>rr=!0,complete:()=>{rr||this.cancelNavigationTransition(vn,"",yt.NoDataFromResolver)}}))}),(0,ce.M)(vn=>{const rr=new tr(vn.id,this.urlSerializer.serialize(vn.extractedUrl),this.urlSerializer.serialize(vn.urlAfterRedirects),vn.targetSnapshot);this.events.next(rr)}))}),Li(Tt=>{const vn=rr=>{const Cr=[];rr.routeConfig?.loadComponent&&!rr.routeConfig._loadedComponent&&Cr.push(this.configLoader.loadComponent(rr.routeConfig).pipe((0,ce.M)(fi=>{rr.component=fi}),(0,ne.T)(()=>{})));for(const fi of rr.children)Cr.push(...vn(fi));return Cr};return(0,D.z)(vn(Tt.targetSnapshot.root)).pipe(se(null),(0,Y.s)(1))}),Li(()=>this.afterPreactivation()),(0,le.n)(()=>{const{currentSnapshot:Tt,targetSnapshot:vn}=Te,rr=this.createViewTransition?.(this.environmentInjector,Tt.root,vn.root);return rr?(0,y.H)(rr).pipe((0,ne.T)(()=>Te)):(0,A.of)(Te)}),(0,ne.T)(Tt=>{const vn=function rn(P,$,N){const W=gn(P,$._root,N?N._root:void 0);return new Ri(W,$)}(N.routeReuseStrategy,Tt.targetSnapshot,Tt.currentRouterState);return this.currentTransition=Te={...Tt,targetRouterState:vn},this.currentNavigation.targetRouterState=vn,Te}),(0,ce.M)(()=>{this.events.next(new cs)}),((P,$,N,W)=>(0,ne.T)(de=>(new _i($,de.targetRouterState,de.currentRouterState,N,W).activate(P),de)))(this.rootContexts,N.routeReuseStrategy,Tt=>this.events.next(Tt),this.inputBindingEnabled),(0,Y.s)(1),(0,ce.M)({next:Tt=>{Ze=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new at(Tt.id,this.urlSerializer.serialize(Tt.extractedUrl),this.urlSerializer.serialize(Tt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Tt.targetRouterState.snapshot),Tt.resolve(!0)},complete:()=>{Ze=!0}}),(0,De.Q)(this.transitionAbortSubject.pipe((0,ce.M)(Tt=>{throw Tt}))),(0,Xe.j)(()=>{!Ze&&!Nt&&this.cancelNavigationTransition(Te,"",yt.SupersededByNewNavigation),this.currentTransition?.id===Te.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Se.W)(Tt=>{if(Nt=!0,Lr(Tt))this.events.next(new wt(Te.id,this.urlSerializer.serialize(Te.extractedUrl),Tt.message,Tt.cancellationCode)),function br(P){return Lr(P)&&Jt(P.url)}(Tt)?this.events.next(new or(Tt.url)):Te.resolve(!1);else{this.events.next(new Xt(Te.id,this.urlSerializer.serialize(Te.extractedUrl),Tt,Te.targetSnapshot??void 0));try{Te.resolve(N.errorHandler(Tt))}catch(vn){this.options.resolveNavigationPromiseOnError?Te.resolve(!1):Te.reject(vn)}}return _.w}))}))}cancelNavigationTransition(N,W,de){const Te=new wt(N.id,this.urlSerializer.serialize(N.extractedUrl),W,de);this.events.next(Te),N.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();function Ye(P){return P!==Nn}let Lt=(()=>{class P{static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:()=>(0,i.WQX)(Ln),providedIn:"root"})}}return P})();class zt{shouldDetach($){return!1}store($,N){}shouldAttach($){return!1}retrieve($){return null}shouldReuseRoute($,N){return $.routeConfig===N.routeConfig}}let Ln=(()=>{class P extends zt{static{this.\u0275fac=(()=>{let N;return function(de){return(N||(N=i.xGo(P)))(de||P)}})()}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),$r=(()=>{class P{static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:()=>(0,i.WQX)(Kr),providedIn:"root"})}}return P})(),Kr=(()=>{class P extends $r{constructor(){super(...arguments),this.location=(0,i.WQX)(K.aZ),this.urlSerializer=(0,i.WQX)(Mt),this.options=(0,i.WQX)(to,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,i.WQX)(go),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ae,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ai(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(N){return this.location.subscribe(W=>{"popstate"===W.type&&N(W.url,W.state)})}handleRouterEvent(N,W){if(N instanceof ke)this.stateMemento=this.createStateMemento();else if(N instanceof Bt)this.rawUrlTree=W.initialUrl;else if(N instanceof tn){if("eager"===this.urlUpdateStrategy&&!W.extras.skipLocationChange){const de=this.urlHandlingStrategy.merge(W.finalUrl,W.initialUrl);this.setBrowserUrl(de,W)}}else N instanceof cs?(this.currentUrlTree=W.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(W.finalUrl,W.initialUrl),this.routerState=W.targetRouterState,"deferred"===this.urlUpdateStrategy&&(W.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,W))):N instanceof wt&&(N.code===yt.GuardRejected||N.code===yt.NoDataFromResolver)?this.restoreHistory(W):N instanceof Xt?this.restoreHistory(W,!0):N instanceof at&&(this.lastSuccessfulId=N.id,this.currentPageId=this.browserPageId)}setBrowserUrl(N,W){const de=this.urlSerializer.serialize(N);if(this.location.isCurrentPathEqualTo(de)||W.extras.replaceUrl){const Ze={...W.extras.state,...this.generateNgRouterState(W.id,this.browserPageId)};this.location.replaceState(de,"",Ze)}else{const Te={...W.extras.state,...this.generateNgRouterState(W.id,this.browserPageId+1)};this.location.go(de,"",Te)}}restoreHistory(N,W=!1){if("computed"===this.canceledNavigationResolution){const Te=this.currentPageId-this.browserPageId;0!==Te?this.location.historyGo(Te):this.currentUrlTree===N.finalUrl&&0===Te&&(this.resetState(N),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(W&&this.resetState(N),this.resetUrlToCurrentUrlTree())}resetState(N){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,N.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(N,W){return"computed"===this.canceledNavigationResolution?{navigationId:N,\u0275routerPageId:W}:{navigationId:N}}static{this.\u0275fac=(()=>{let N;return function(de){return(N||(N=i.xGo(P)))(de||P)}})()}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();var Fr=function(P){return P[P.COMPLETE=0]="COMPLETE",P[P.FAILED=1]="FAILED",P[P.REDIRECTING=2]="REDIRECTING",P}(Fr||{});function _r(P,$){P.events.pipe((0,Ie.p)(N=>N instanceof at||N instanceof wt||N instanceof Xt||N instanceof Bt),(0,ne.T)(N=>N instanceof at||N instanceof Bt?Fr.COMPLETE:N instanceof wt&&(N.code===yt.Redirect||N.code===yt.SupersededByNewNavigation)?Fr.REDIRECTING:Fr.FAILED),(0,Ie.p)(N=>N!==Fr.REDIRECTING),(0,Y.s)(1)).subscribe(()=>{$()})}function ai(P){throw P}const kr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gr=(()=>{class P{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,i.WQX)(i.H3F),this.stateManager=(0,i.WQX)($r),this.options=(0,i.WQX)(to,{optional:!0})||{},this.pendingTasks=(0,i.WQX)(i.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,i.WQX)(he),this.urlSerializer=(0,i.WQX)(Mt),this.location=(0,i.WQX)(K.aZ),this.urlHandlingStrategy=(0,i.WQX)(go),this._events=new X.B,this.errorHandler=this.options.errorHandler||ai,this.navigated=!1,this.routeReuseStrategy=(0,i.WQX)(Lt),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,i.WQX)(di,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,i.WQX)(tt,{optional:!0}),this.eventsSubscription=new w.yU,this.isNgZoneEnabled=(0,i.WQX)(i.SKi)instanceof i.SKi&&i.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:N=>{this.console.warn(N)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const N=this.navigationTransitions.events.subscribe(W=>{try{const de=this.navigationTransitions.currentTransition,Te=this.navigationTransitions.currentNavigation;if(null!==de&&null!==Te)if(this.stateManager.handleRouterEvent(W,Te),W instanceof wt&&W.code!==yt.Redirect&&W.code!==yt.SupersededByNewNavigation)this.navigated=!0;else if(W instanceof at)this.navigated=!0;else if(W instanceof or){const Ze=this.urlHandlingStrategy.merge(W.url,de.currentRawUrl),Nt={info:de.extras.info,skipLocationChange:de.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ye(de.source)};this.scheduleNavigation(Ze,Nn,null,Nt,{resolve:de.resolve,reject:de.reject,promise:de.promise})}(function Kn(P){return!(P instanceof cs||P instanceof or)})(W)&&this._events.next(W)}catch(de){this.navigationTransitions.transitionAbortSubject.next(de)}});this.eventsSubscription.add(N)}resetRootComponentType(N){this.routerState.root.component=N,this.navigationTransitions.rootComponentType=N}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Nn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((N,W)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(N,"popstate",W)},0)})}navigateToSyncWithBrowser(N,W,de){const Te={replaceUrl:!0},Ze=de?.navigationId?de:null;if(de){const Tt={...de};delete Tt.navigationId,delete Tt.\u0275routerPageId,0!==Object.keys(Tt).length&&(Te.state=Tt)}const Nt=this.parseUrl(N);this.scheduleNavigation(Nt,W,Ze,Te)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(N){this.config=N.map(vr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(N,W={}){const{relativeTo:de,queryParams:Te,fragment:Ze,queryParamsHandling:Nt,preserveFragment:Tt}=W,vn=Tt?this.currentUrlTree.fragment:Ze;let Cr,rr=null;switch(Nt){case"merge":rr={...this.currentUrlTree.queryParams,...Te};break;case"preserve":rr=this.currentUrlTree.queryParams;break;default:rr=Te||null}null!==rr&&(rr=this.removeEmptyProps(rr));try{Cr=Yn(de?de.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof N[0]||!N[0].startsWith("/"))&&(N=[]),Cr=this.currentUrlTree.root}return nt(Cr,N,rr,vn??null)}navigateByUrl(N,W={skipLocationChange:!1}){const de=Jt(N)?N:this.parseUrl(N),Te=this.urlHandlingStrategy.merge(de,this.rawUrlTree);return this.scheduleNavigation(Te,Nn,null,W)}navigate(N,W={skipLocationChange:!1}){return function sn(P){for(let $=0;$<P.length;$++)if(null==P[$])throw new i.wOt(4008,!1)}(N),this.navigateByUrl(this.createUrlTree(N,W),W)}serializeUrl(N){return this.urlSerializer.serialize(N)}parseUrl(N){try{return this.urlSerializer.parse(N)}catch{return this.urlSerializer.parse("/")}}isActive(N,W){let de;if(de=!0===W?{...kr}:!1===W?{...hi}:W,Jt(N))return Yt(this.currentUrlTree,N,de);const Te=this.parseUrl(N);return Yt(this.currentUrlTree,Te,de)}removeEmptyProps(N){return Object.entries(N).reduce((W,[de,Te])=>(null!=Te&&(W[de]=Te),W),{})}scheduleNavigation(N,W,de,Te,Ze){if(this.disposed)return Promise.resolve(!1);let Nt,Tt,vn;Ze?(Nt=Ze.resolve,Tt=Ze.reject,vn=Ze.promise):vn=new Promise((Cr,fi)=>{Nt=Cr,Tt=fi});const rr=this.pendingTasks.add();return _r(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(rr))}),this.navigationTransitions.handleNavigationRequest({source:W,restoredState:de,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:N,extras:Te,resolve:Nt,reject:Tt,promise:vn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),vn.catch(Cr=>Promise.reject(Cr))}static{this.\u0275fac=function(W){return new(W||P)}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),ar=(()=>{class P{constructor(N,W,de,Te,Ze,Nt){this.router=N,this.route=W,this.tabIndexAttribute=de,this.renderer=Te,this.el=Ze,this.locationStrategy=Nt,this.href=null,this.commands=null,this.onChanges=new X.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Tt=Ze.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Tt||"area"===Tt,this.isAnchorElement?this.subscription=N.events.subscribe(vn=>{vn instanceof at&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(N){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",N)}ngOnChanges(N){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(N){null!=N?(this.commands=Array.isArray(N)?N:[N],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(N,W,de,Te,Ze){const Nt=this.urlTree;return!!(null===Nt||this.isAnchorElement&&(0!==N||W||de||Te||Ze||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Nt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const N=this.urlTree;this.href=null!==N&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(N)):null;const W=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",W)}applyAttributeValue(N,W){const de=this.renderer,Te=this.el.nativeElement;null!==W?de.setAttribute(Te,N,W):de.removeAttribute(Te,N)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(W){return new(W||P)(i.rXU(gr),i.rXU(bs),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(K.hb))}}static{this.\u0275dir=i.FsC({type:P,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(W,de){1&W&&i.bIt("click",function(Ze){return de.onClick(Ze.button,Ze.ctrlKey,Ze.shiftKey,Ze.altKey,Ze.metaKey)}),2&W&&i.BMQ("target",de.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[i.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[i.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[i.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},standalone:!0,features:[i.GFd,i.OA$]})}}return P})();class ri{}let Bi=(()=>{class P{constructor(N,W,de,Te,Ze){this.router=N,this.injector=de,this.preloadingStrategy=Te,this.loader=Ze}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ie.p)(N=>N instanceof at),(0,re.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(N,W){const de=[];for(const Te of W){Te.providers&&!Te._injector&&(Te._injector=(0,i.Ol2)(Te.providers,N,`Route: ${Te.path}`));const Ze=Te._injector??N,Nt=Te._loadedInjector??Ze;(Te.loadChildren&&!Te._loadedRoutes&&void 0===Te.canLoad||Te.loadComponent&&!Te._loadedComponent)&&de.push(this.preloadConfig(Ze,Te)),(Te.children||Te._loadedRoutes)&&de.push(this.processRoutes(Nt,Te.children??Te._loadedRoutes))}return(0,y.H)(de).pipe((0,We.U)())}preloadConfig(N,W){return this.preloadingStrategy.preload(W,()=>{let de;de=W.loadChildren&&void 0===W.canLoad?this.loader.loadChildren(N,W):(0,A.of)(null);const Te=de.pipe((0,He.Z)(Ze=>null===Ze?(0,A.of)(void 0):(W._loadedRoutes=Ze.routes,W._loadedInjector=Ze.injector,this.processRoutes(Ze.injector??N,Ze.routes))));if(W.loadComponent&&!W._loadedComponent){const Ze=this.loader.loadComponent(W);return(0,y.H)([Te,Ze]).pipe((0,We.U)())}return Te})}static{this.\u0275fac=function(W){return new(W||P)(i.KVO(gr),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(ri),i.KVO(Zi))}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})();const Rs=new i.nKC("");let nr=(()=>{class P{constructor(N,W,de,Te,Ze={}){this.urlSerializer=N,this.transitions=W,this.viewportScroller=de,this.zone=Te,this.options=Ze,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ze.scrollPositionRestoration||="disabled",Ze.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(N=>{N instanceof ke?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=N.navigationTrigger,this.restoredId=N.restoredState?N.restoredState.navigationId:0):N instanceof at?(this.lastId=N.id,this.scheduleScrollEvent(N,this.urlSerializer.parse(N.urlAfterRedirects).fragment)):N instanceof Bt&&N.code===ht.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(N,this.urlSerializer.parse(N.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(N=>{N instanceof lo&&(N.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(N.position):N.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(N.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(N,W){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lo(N,"popstate"===this.lastSource?this.store[this.restoredId]:null,W))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(W){i.QTQ()}}static{this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac})}}return P})();function Mo(P,...$){return(0,i.EmA)([{provide:di,multi:!0,useValue:P},[],{provide:bs,useFactory:Cc,deps:[gr]},{provide:i.iLQ,multi:!0,useFactory:Ro},$.map(N=>N.\u0275providers)])}function Cc(P){return P.routerState.root}function Vi(P,$){return{\u0275kind:P,\u0275providers:$}}function os(P={}){return Vi(4,[{provide:Rs,useFactory:()=>{const N=(0,i.WQX)(K.Xr),W=(0,i.WQX)(i.SKi),de=(0,i.WQX)(he),Te=(0,i.WQX)(Mt);return new nr(Te,de,N,W,P)}}])}function Ro(){const P=(0,i.WQX)(i.zZn);return $=>{const N=P.get(i.o8S);if($!==N.components[0])return;const W=P.get(gr),de=P.get(Ma);1===P.get(yo)&&W.initialNavigation(),P.get(Vl,null,i.$GK.Optional)?.setUpPreloading(),P.get(Rs,null,i.$GK.Optional)?.init(),W.resetRootComponentType(N.componentTypes[0]),de.closed||(de.next(),de.complete(),de.unsubscribe())}}const Ma=new i.nKC("",{factory:()=>new X.B}),yo=new i.nKC("",{providedIn:"root",factory:()=>1});function al(){return Vi(2,[{provide:yo,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:$=>{const N=$.get(K.hj,Promise.resolve());return()=>N.then(()=>new Promise(W=>{const de=$.get(gr),Te=$.get(Ma);_r(de,()=>{W(!0)}),$.get(he).afterPreactivation=()=>(W(!0),Te.closed?(0,A.of)(void 0):Te),de.initialNavigation()}))}}])}const Vl=new i.nKC("");function Ra(P){return Vi(0,[{provide:Vl,useExisting:Bi},{provide:ri,useExisting:P}])}function vo(P){return Vi(5,[{provide:to,useValue:P}])}function Na(P){return Vi(7,[{provide:i.Z63,multi:!0,useValue:()=>{const N=(0,i.WQX)(i.uvJ);(0,i.WQX)(gr).events.subscribe(W=>{W instanceof Xt&&(0,i.N4e)(N,()=>P(W))})}}])}function Ac(P){return Vi(9,[{provide:zo,useValue:_e},{provide:F,useValue:{skipNextTransition:!!P?.skipInitialTransition,...P}}])}const Ei=new i.nKC("ROUTER_FORROOT_GUARD"),Dc=[K.aZ,{provide:Mt,useClass:cn},gr,Yr,{provide:bs,useFactory:Cc,deps:[gr]},Zi,[]];let Qo=(()=>{class P{constructor(N){}static forRoot(N,W){return{ngModule:P,providers:[Dc,[],{provide:di,multi:!0,useValue:N},{provide:Ei,useFactory:pd,deps:[[gr,new i.Xx1,new i.kdw]]},{provide:to,useValue:W||{}},W?.useHash?{provide:K.hb,useClass:K.fw}:{provide:K.hb,useClass:K.Sm},{provide:Rs,useFactory:()=>{const P=(0,i.WQX)(K.Xr),$=(0,i.WQX)(i.SKi),N=(0,i.WQX)(to),W=(0,i.WQX)(he),de=(0,i.WQX)(Mt);return N.scrollOffset&&P.setOffset(N.scrollOffset),new nr(de,W,P,$,N)}},W?.preloadingStrategy?Ra(W.preloadingStrategy).\u0275providers:[],W?.initialNavigation?gd(W):[],W?.bindToComponentInputs?Vi(8,[Vt,{provide:tt,useExisting:Vt}]).\u0275providers:[],W?.enableViewTransitions?Ac().\u0275providers:[],[{provide:La,useFactory:Ro},{provide:i.iLQ,multi:!0,useExisting:La}]]}}static forChild(N){return{ngModule:P,providers:[{provide:di,multi:!0,useValue:N}]}}static{this.\u0275fac=function(W){return new(W||P)(i.KVO(Ei,8))}}static{this.\u0275mod=i.$C({type:P})}static{this.\u0275inj=i.G2t({})}}return P})();function pd(P){return"guarded"}function gd(P){return["disabled"===P.initialNavigation?Vi(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const $=(0,i.WQX)(gr);return()=>{$.setUpLocationChangeListener()}}},{provide:yo,useValue:2}]).\u0275providers:[],"enabledBlocking"===P.initialNavigation?al().\u0275providers:[]]}const La=new i.nKC("")},23922:(it,ge,s)=>{"use strict";s.d(ge,{WZ:()=>lt,bA:()=>Hr,Q8:()=>Be,JO:()=>Mt,$o:()=>et});var i=s(55685),E=s(10047),y=s(2267),A=s(90249),M=s(54436),D=s(40352),b=s(94638),f=s(67214),S=s(97216),O=s(91002),C=s(13319),_=s(68007),U=s(76560),R=s(42567),V=s(49283),x=s(41298),z=s(22900),X=s(58298),K=s(58977),ne=s(3281);class le{translations;constructor(qt){this.translations=qt}getTranslation(qt){return(0,E.of)(this.translations.get(qt)||{})}}const Y=new i.nKC("TRANSLOCO_LOADER");function ve(nt,qt){return nt&&(Object.prototype.hasOwnProperty.call(nt,qt)?nt[qt]:qt.split(".").reduce((je,bt)=>je?.[bt],nt))}function He(nt){return nt?Array.isArray(nt)?nt.length:J(nt)?Object.keys(nt).length:nt?nt.length:0:0}function B(nt){return"string"==typeof nt}function J(nt){return!!nt&&"object"==typeof nt&&!Array.isArray(nt)}function ce(nt){return nt.replace(/(?:^\w|[A-Z]|\b\w)/g,(qt,je)=>0==je?qt.toLowerCase():qt.toUpperCase()).replace(/\s+|_|-|\//g,"")}function we(nt){return null==nt}function oe(nt){return!1===we(nt)}function Pe(nt){return nt&&"string"==typeof nt.scope}function We(nt){return(0,ne.flatten)(nt,{safe:!0})}const st=new i.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>gt}),gt={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function dt(nt={}){return{...gt,...nt,missingHandler:{...gt.missingHandler,...nt.missingHandler},flatten:{...gt.flatten,...nt.flatten}}}const Wt=new i.nKC("TRANSLOCO_TRANSPILER");let Qt=(()=>{class nt{interpolationMatcher;constructor(je){this.interpolationMatcher=function mt(nt){const[qt,je]=nt.interpolation;return new RegExp(`${qt}(.*?)${je}`,"g")}(je??gt)}transpile(je,bt={},Rt,an){return B(je)?je.replace(this.interpolationMatcher,(ln,pn)=>(pn=pn.trim(),oe(bt[pn])?bt[pn]:oe(Rt[pn])?this.transpile(Rt[pn],bt,Rt,an):"")):(bt&&(J(je)?je=this.handleObject(je,bt,Rt,an):Array.isArray(je)&&(je=this.handleArray(je,bt,Rt,an))),je)}handleObject(je,bt={},Rt,an){let ln=je;return Object.keys(bt).forEach(pn=>{const jn=ve(ln,pn),zn=ve(bt,pn),Me=this.transpile(jn,zn,Rt,an);ln=function Ie(nt,qt,je){nt={...nt};const bt=qt.split("."),Rt=bt.length-1;return bt.reduce((an,ln,pn)=>(an[ln]=pn===Rt?je:Array.isArray(an[ln])?an[ln].slice():{...an[ln]},an&&an[ln]),nt),nt}(ln,pn,Me)}),ln}handleArray(je,bt={},Rt,an){return je.map(ln=>this.transpile(ln,bt,Rt,an))}static \u0275fac=function(bt){return new(bt||nt)(i.KVO(st,8))};static \u0275prov=i.jDH({token:nt,factory:nt.\u0275fac})}return nt})();const lt=new i.nKC("TRANSLOCO_MISSING_HANDLER");let Le=(()=>{class nt{handle(je,bt){return bt.missingHandler.logMissingKey&&!bt.prodMode&&console.warn(`%c Missing translation for '${je}'`,"font-size: 12px; color: red"),je}static \u0275fac=function(bt){return new(bt||nt)};static \u0275prov=i.jDH({token:nt,factory:nt.\u0275fac})}return nt})();const ze=new i.nKC("TRANSLOCO_INTERCEPTOR");let Ue=(()=>{class nt{preSaveTranslation(je){return je}preSaveTranslationKey(je,bt){return bt}static \u0275fac=function(bt){return new(bt||nt)};static \u0275prov=i.jDH({token:nt,factory:nt.\u0275fac})}return nt})();const Dt=new i.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Fe,Gt=(()=>{class nt{userConfig;constructor(je){this.userConfig=je}getNextLangs(){const je=this.userConfig.fallbackLang;if(!je)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(je)?je:[je]}static \u0275fac=function(bt){return new(bt||nt)(i.KVO(st))};static \u0275prov=i.jDH({token:nt,factory:nt.\u0275fac})}return nt})();function Yt(nt){if(!nt)return"";const qt=nt.split("/");return qt.pop(),qt.join("/")}function fn(nt){return nt?nt.split("/").pop():""}function Fn(nt,qt,je="|"){if(B(nt)){const bt=nt.split(je),Rt=bt.pop();return Rt===qt?[!0,bt.toString()]:[!1,Rt]}return[!1,""]}function Tr(nt,qt){return function Xe(nt){return nt&&J(nt.loader)}(nt)?function mn(nt,qt){return Object.keys(nt).reduce((je,bt)=>(je[`${qt}/${bt}`]=nt[bt],je),{})}(nt.loader,qt):void 0}function Ae(nt){return{scope:Yt(nt)||null,langName:fn(nt)}}function G(nt){const{path:qt,inlineLoader:je,mainLoader:bt,data:Rt}=nt;if(je){if(!1===function Ge(nt){return"function"==typeof nt}(je[qt]))throw`You're using an inline loader but didn't provide a loader for ${qt}`;return je[qt]().then(ln=>ln.default?ln.default:ln)}return bt.getTranslation(qt,Rt)}let Mt=(()=>{class nt{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new D.B;events$=this.events.asObservable();config;constructor(je,bt,Rt,an,ln,pn){this.loader=je,this.parser=bt,this.missingHandler=Rt,this.interceptor=an,this.fallbackStrategy=pn,this.loader||(this.loader=new le(this.translations)),Fe=this,this.config=JSON.parse(JSON.stringify(ln)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new b.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(jn=>{"translationLoadSuccess"===jn.type&&jn.wasFailure&&this.setActiveLang(jn.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(je){this.defaultLang=je}getActiveLang(){return this.lang.getValue()}setActiveLang(je){return this.parser.onLangChanged?.(je),this.lang.next(je),this.events.next({type:"langChanged",payload:Ae(je)}),this}setAvailableLangs(je){this.availableLangs=je}getAvailableLangs(){return this.availableLangs}load(je,bt={}){const Rt=this.cache.get(je);if(Rt)return Rt;let an;const ln=this._isLangScoped(je);let pn;ln&&(pn=Yt(je));const jn={path:je,mainLoader:this.loader,inlineLoader:bt.inlineLoader,data:ln?{scope:pn}:void 0};if(this.useFallbackTranslation(je)){const Me=ln?`${pn}/${this.firstFallbackLang}`:this.firstFallbackLang,Je=function ee({mainLoader:nt,path:qt,data:je,fallbackPath:bt,inlineLoader:Rt}){return(bt?[qt,bt]:[qt]).map(ln=>{const pn=G({path:ln,mainLoader:nt,inlineLoader:Rt,data:je});return(0,A.H)(pn).pipe((0,M.T)(jn=>({translation:jn,lang:ln})))})}({...jn,fallbackPath:Me});an=(0,f.p)(Je)}else{const Me=G(jn);an=(0,A.H)(Me)}const zn=an.pipe(function w(nt=1/0){let qt;qt=nt&&"object"==typeof nt?nt:{count:nt};const{count:je=1/0,delay:bt,resetOnSuccess:Rt=!1}=qt;return je<=0?C.D:(0,S.N)((an,ln)=>{let jn,pn=0;const zn=()=>{let Me=!1;jn=an.subscribe((0,O._)(ln,Je=>{Rt&&(pn=0),ln.next(Je)},void 0,Je=>{if(pn++<je){const qe=()=>{jn?(jn.unsubscribe(),jn=null,zn()):Me=!0};if(null!=bt){const xt="number"==typeof bt?(0,_.O)(bt):(0,U.Tg)(bt(Je,pn)),Pt=(0,O._)(ln,()=>{Pt.unsubscribe(),qe()},()=>{ln.complete()});xt.subscribe(Pt)}else qe()}else ln.error(Je)})),Me&&(jn.unsubscribe(),jn=null,zn())};zn()})}(this.config.failedRetries),(0,R.M)(Me=>{Array.isArray(Me)?Me.forEach(Je=>{this.handleSuccess(Je.lang,Je.translation),Je.lang!==je&&this.cache.set(Je.lang,(0,E.of)({}))}):this.handleSuccess(je,Me)}),(0,V.W)(Me=>(this.config.prodMode||console.error(`Error while trying to load "${je}"`,Me),this.handleFailure(je,bt))),(0,x.t)(1));return this.cache.set(je,zn),zn}translate(je,bt={},Rt=this.getActiveLang()){if(!je)return je;const{scope:an,resolveLang:ln}=this.resolveLangAndScope(Rt);if(Array.isArray(je))return je.map(zn=>this.translate(an?`${an}.${zn}`:zn,bt,ln));je=an?`${an}.${je}`:je;const pn=this.getTranslation(ln),jn=pn[je];return jn?this.parser.transpile(jn,bt,pn,je):this._handleMissingKey(je,jn,bt)}selectTranslate(je,bt,Rt,an=!1){let ln;const pn=(zn,Me)=>this.load(zn,Me).pipe((0,M.T)(()=>an?this.translateObject(je,bt,zn):this.translate(je,bt,zn)));if(we(Rt))return this.langChanges$.pipe((0,z.n)(zn=>pn(zn)));if(function $e(nt){return Array.isArray(nt)&&nt.every(Pe)}(Rt)||Pe(Rt)){const zn=Array.isArray(Rt)?Rt[0]:Rt;Rt=zn.scope,ln=Tr(zn,zn.scope)}if(this.isLang(Rt)||this.isScopeWithLang(Rt))return pn(Rt);const jn=Rt;return this.langChanges$.pipe((0,z.n)(zn=>pn(`${jn}/${zn}`,{inlineLoader:ln})))}isScopeWithLang(je){return this.isLang(fn(je))}translateObject(je,bt={},Rt=this.getActiveLang()){if(B(je)||Array.isArray(je)){const{resolveLang:ln,scope:pn}=this.resolveLangAndScope(Rt);if(Array.isArray(je))return je.map(Me=>this.translateObject(pn?`${pn}.${Me}`:Me,bt,ln));const jn=this.getTranslation(ln),zn=function De(nt){return(0,ne.unflatten)(nt)}(this.getObjectByKey(jn,je=pn?`${pn}.${je}`:je));return function se(nt){return 0===He(nt)}(zn)?this.translate(je,bt,Rt):this.parser.transpile(zn,bt,jn,je)}const an=[];for(const[ln,pn]of this.getEntries(je))an.push(this.translateObject(ln,pn,Rt));return an}selectTranslateObject(je,bt,Rt){if(B(je)||Array.isArray(je))return this.selectTranslate(je,bt,Rt,!0);const[[an,ln],...pn]=this.getEntries(je);return this.selectTranslateObject(an,ln,Rt).pipe((0,M.T)(jn=>{const zn=[jn];for(const[Me,Je]of pn)zn.push(this.translateObject(Me,Je,Rt));return zn}))}getTranslation(je){if(je){if(this.isLang(je))return this.translations.get(je)||{};{const{scope:bt,resolveLang:Rt}=this.resolveLangAndScope(je),an=this.translations.get(Rt)||{};return this.getObjectByKey(an,bt)}}return this.translations}selectTranslation(je){let bt=this.langChanges$;if(je){const Rt=fn(je)!==je;bt=this.isLang(je)||Rt?(0,E.of)(je):this.langChanges$.pipe((0,M.T)(an=>`${je}/${an}`))}return bt.pipe((0,z.n)(Rt=>this.load(Rt).pipe((0,M.T)(()=>this.getTranslation(Rt)))))}setTranslation(je,bt=this.getActiveLang(),Rt={}){const ln={merge:!0,emitChange:!0,...Rt},pn=Yt(bt);let jn=je;pn&&(jn=We({[this.getMappedScope(pn)]:je}));const zn=pn?fn(bt):bt,Me={...ln.merge&&this.getTranslation(zn),...jn},Je=this.config.flatten.aot?Me:We(Me),qe=this.interceptor.preSaveTranslation(Je,zn);this.translations.set(zn,qe),ln.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(je,bt,Rt=this.getActiveLang(),an={}){const ln=this.interceptor.preSaveTranslationKey(je,bt,Rt);this.setTranslation({[je]:ln},Rt,{...an,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:je}){const bt=Array.isArray(je)?je[0]:je;je&&this.useFallbackTranslation(bt)&&(this.firstFallbackLang=bt)}_handleMissingKey(je,bt,Rt){if(this.config.missingHandler.allowEmpty&&""===bt)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const an=this.translate(je,Rt,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,an}return this.missingHandler.handle(je,this.getMissingHandlerData(),Rt)}_isLangScoped(je){return-1===this.getAvailableLangsIds().indexOf(je)}isLang(je){return-1!==this.getAvailableLangsIds().indexOf(je)}_loadDependencies(je,bt){const Rt=fn(je);return this._isLangScoped(je)&&!this.isLoadedTranslation(Rt)?(0,X.z)([this.load(Rt),this.load(je,{inlineLoader:bt})]):this.load(je,{inlineLoader:bt})}_completeScopeWithLang(je){return this._isLangScoped(je)&&!this.isLang(fn(je))?`${je}/${this.getActiveLang()}`:je}_setScopeAlias(je,bt){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[je]=bt}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(je){return He(this.getTranslation(je))}getAvailableLangsIds(){return B(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(bt=>bt.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(je){return this.config.missingHandler.useFallbackTranslation&&je!==this.firstFallbackLang}handleSuccess(je,bt){this.setTranslation(bt,je,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Ae(je)}),this.failedLangs.forEach(Rt=>this.cache.delete(Rt)),this.failedLangs.clear()}handleFailure(je,bt){we(bt.failedCounter)&&(bt.failedCounter=0,bt.fallbackLangs||(bt.fallbackLangs=this.fallbackStrategy.getNextLangs(je)));const Rt=je.split("/"),ln=bt.fallbackLangs[bt.failedCounter];if(this.failedLangs.add(je),this.cache.has(ln))return this.handleSuccess(ln,this.getTranslation(ln)),K.w;if(!ln||ln===Rt[Rt.length-1]){let zn="Unable to load translation and all the fallback languages";throw Rt.length>1&&(zn+=", did you misspelled the scope name?"),new Error(zn)}let jn=ln;return Rt.length>1&&(Rt[Rt.length-1]=ln,jn=Rt.join("/")),bt.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Ae(je)}),this.load(jn,bt)}getMappedScope(je){const{scopeMapping:bt={}}=this.config;return bt[je]||ce(je)}resolveLangAndScope(je){let Rt,bt=je;if(this._isLangScoped(je)){const an=fn(je),ln=this.isLang(an);bt=ln?an:this.getActiveLang(),Rt=this.getMappedScope(ln?Yt(je):je)}return{scope:Rt,resolveLang:bt}}getObjectByKey(je,bt){const Rt={},an=`${bt}.`;for(const ln in je)ln.startsWith(an)&&(Rt[ln.replace(an,"")]=je[ln]);return Rt}getEntries(je){return je instanceof Map?je.entries():Object.entries(je)}static \u0275fac=function(bt){return new(bt||nt)(i.KVO(Y,8),i.KVO(Wt),i.KVO(lt),i.KVO(ze),i.KVO(st),i.KVO(Dt))};static \u0275prov=i.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})(),cn=(()=>{class nt{html;static \u0275fac=function(bt){return new(bt||nt)};static \u0275cmp=i.VBU({type:nt,selectors:[["ng-component"]],inputs:{html:"html"},standalone:!0,features:[i.aNF],decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(bt,Rt){1&bt&&i.nrm(0,"div",0),2&bt&&i.Y8G("innerHTML",Rt.html,i.npT)},encapsulation:2})}return nt})();class kn{view;vcr;constructor(qt,je){this.view=qt,this.vcr=je}attachView(){if(this.view instanceof i.C4Q)this.vcr.createEmbeddedView(this.view);else if(B(this.view)){const qt=this.vcr.createComponent(cn);qt.instance.html=this.view,qt.hostView.detectChanges()}else this.vcr.createComponent(this.view)}detachView(){this.vcr.clear()}}const Hn=new i.nKC("TRANSLOCO_LANG"),An=new i.nKC("TRANSLOCO_LOADING_TEMPLATE"),Vn=new i.nKC("TRANSLOCO_SCOPE");class Pr{initialized=!1;resolve({inline:qt,provider:je,active:bt}){let Rt=bt;if(this.initialized)return Rt=bt,Rt;if(je){const[,an]=Fn(je,"static");Rt=an}if(qt){const[,an]=Fn(qt,"static");Rt=an}return this.initialized=!0,Rt}resolveLangBasedOnScope(qt){return Yt(qt)?fn(qt):qt}resolveLangPath(qt,je){return je?`${je}/${qt}`:qt}}class Mi{service;constructor(qt){this.service=qt}resolve(qt){const{inline:je,provider:bt}=qt;if(je)return je;if(bt){if(Pe(bt)){const{scope:Rt,alias:an=ce(Rt)}=bt;return this.service._setScopeAlias(Rt,an),Rt}return bt}}}let Hr=(()=>{class nt{service=(0,i.WQX)(Mt);tpl=(0,i.WQX)(i.C4Q,{optional:!0});providerLang=(0,i.WQX)(Hn,{optional:!0});providerScope=(0,i.WQX)(Vn,{optional:!0});providedLoadingTpl=(0,i.WQX)(An,{optional:!0});cdr=(0,i.WQX)(i.gRc);host=(0,i.WQX)(i.aKT);vcr=(0,i.WQX)(i.c1b);renderer=(0,i.WQX)(i.sFG);subscription=null;view;translationMemo={};key;params={};inlineScope;inlineRead;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=!1;path;langResolver=new Pr;scopeResolver=new Mi(this.service);strategy=null===this.tpl?"attribute":"structural";static ngTemplateContextGuard(je,bt){return!0}ngOnInit(){const je=function Xn(nt,qt){const[je]=Fn(qt,"static");return!je&&!!nt.config.reRenderOnLangChange}(this.service,this.providerLang||this.inlineLang);if(this.subscription=this.service.langChanges$.pipe((0,z.n)(bt=>{const Rt=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:bt});return Array.isArray(this.providerScope)?(0,f.p)(this.providerScope.map(an=>this.resolveScope(Rt,an))):this.resolveScope(Rt,this.providerScope)}),function Sn(nt){return nt?qt=>qt:(0,y.s)(1)}(je)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),"attribute"===this.strategy?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.inlineRead),this.cdr.markForCheck(),this.initialized=!0}),!this.initialized){const bt=this.resolveLoadingContent();bt&&(this.loaderTplHandler=new kn(bt,this.vcr),this.loaderTplHandler.attachView())}}ngOnChanges(je){"attribute"===this.strategy&&Object.keys(je).some(Rt=>!je[Rt].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang))}structuralStrategy(je,bt){this.translationMemo={},this.view?(this.view.context.$implicit=this.getTranslateFn(je,bt),this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:this.getTranslateFn(je,bt),currentLang:this.currentLang}))}getTranslateFn(je,bt){return(Rt,an)=>{const ln=bt?`${bt}.${Rt}`:Rt,pn=an?`${ln}${JSON.stringify(an)}`:ln;return Object.prototype.hasOwnProperty.call(this.translationMemo,pn)||(this.translationMemo[pn]={params:an,value:this.service.translate(ln,an,je)}),this.translationMemo[pn].value}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(je,bt){const Rt=this.scopeResolver.resolve({inline:this.inlineScope,provider:bt});this.path=this.langResolver.resolveLangPath(je,Rt);const an=Tr(bt,Rt);return this.service._loadDependencies(this.path,an)}static \u0275fac=function(bt){return new(bt||nt)};static \u0275dir=i.FsC({type:nt,selectors:[["","transloco",""]],inputs:{key:[i.Mj6.None,"transloco","key"],params:[i.Mj6.None,"translocoParams","params"],inlineScope:[i.Mj6.None,"translocoScope","inlineScope"],inlineRead:[i.Mj6.None,"translocoRead","inlineRead"],inlineLang:[i.Mj6.None,"translocoLang","inlineLang"],inlineTpl:[i.Mj6.None,"translocoLoadingTpl","inlineTpl"]},standalone:!0,features:[i.OA$]})}return nt})(),Be=(()=>{class nt{static \u0275fac=function(bt){return new(bt||nt)};static \u0275mod=i.$C({type:nt});static \u0275inj=i.G2t({})}return nt})();function et(nt){const qt=[Ar(Qt),yi(Le),Ur(Ue),zr(Gt)];return nt.config&&qt.push(function $t(nt){return(0,i.EmA)([{provide:st,useValue:dt(nt)}])}(nt.config)),nt.loader&&qt.push(function yn(nt){return(0,i.EmA)([{provide:Y,useClass:nt}])}(nt.loader)),qt}function Ar(nt){return(0,i.EmA)([{provide:Wt,useClass:nt,deps:[st]}])}function zr(nt){return(0,i.EmA)([{provide:Dt,useClass:nt,deps:[st]}])}function yi(nt){return(0,i.EmA)([{provide:lt,useClass:nt}])}function Ur(nt){return(0,i.EmA)([{provide:ze,useClass:nt}])}new i.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new i.nKC("TRANSLOCO_TEST_OPTIONS - Testing options")},34520:(it,ge,s)=>{"use strict";s.d(ge,{Q5:()=>U,dQ:()=>_});var i=s(31761),E=s(55685),y=s(40352),A=s(79274),M=s(19443),D=function(w){return w.BOTH="both",w.VERTICAL="vertical",w.HORIZONTAL="horizontal",w}(D||{});const f=new Function("\n  try {\n    return typeof window !== 'undefined' && this === window;\n  } catch(e) {\n    return false;\n  }\n")()?new Function("input","return btoa(input)"):new Function("input","return Buffer.from(input).toString('base64')");class S{constructor(R){this._rootMargin="0px 0px 0px 0px",this._threshold=[...S.DEFAULT_THRESHOLD],this._partial=!0,this._direction=D.BOTH,"[object Object]"===Object.prototype.toString.call(R)&&["root","rootMargin","threshold","partial","direction","checkFn"].forEach(V=>{R?.hasOwnProperty(V)&&(this[V]=R[V])}),this._hash=S.hash({rootMargin:this.rootMargin,threshold:this.threshold,partial:this.partial,direction:this.direction,checkFn:String(this.checkFn)})}static get DEFAULT_THRESHOLD(){return[0,1]}static get STRINGIFY_DELIMITER(){return"|"}static stringify(R){if(Array.isArray(R)){const V=[];for(let x=0;x<R.length;x++)V.push(S.stringify(R[x]));return`[${V.join(",")}]`}if("object"==typeof R&&null!==R){const V=[],x=Object.keys(R).sort();for(const z of x){const X=S.stringify(R[z]);V.push(`${z}:${X}`)}return V.join(S.STRINGIFY_DELIMITER)}return String(R)}static hash(R){return f(S.stringify(R))}get root(){return this._root}set root(R){this._root=R&&1===R.nodeType?R:void 0}get rootMargin(){return this._rootMargin}set rootMargin(R){if(R&&"string"==typeof R){const x=(R||"0px").split(new RegExp("\\s+")).map(z=>{const X=/^(-?\d*\.?\d+)(px|%)$/.exec(z);if(!X)throw new TypeError("rootMargin must be specified in pixels or percent");return`${X[1]}${X[2]}`});x[1]=x[1]||x[0],x[2]=x[2]||x[0],x[3]=x[3]||x[1],this._rootMargin=x.join(" ")}else this._rootMargin="0px 0px 0px 0px"}get threshold(){return this._threshold}set threshold(R){let V=[];const x=z=>"number"==typeof z&&z>=0&&z<=1;x(R)?V=[R]:Array.isArray(R)&&R.length&&(V=R.filter(z=>x(z))),0===V.length&&(V=[...S.DEFAULT_THRESHOLD]),this._threshold=V}get partial(){return this._partial}set partial(R){this._partial=!!R}get direction(){return this._direction}set direction(R){this._direction=[D.BOTH,D.HORIZONTAL,D.VERTICAL].indexOf(R)>=0?R:D.BOTH}get hash(){return this._hash}get checkFn(){return this._checkFn}set checkFn(R){this._checkFn=R}}let O=(()=>{class w{constructor(V){this.ngZone=V,this.trigger$=new y.B,this.registry=[]}emitTrigger(V){Array.isArray(V)&&V.length&&V.forEach(x=>this.trigger$.next(x))}getRootElement(V){return V&&V.nodeType===Node.ELEMENT_NODE?V:void 0}findEntry(V,x){return this.registry.find(z=>z.root===this.getRootElement(V)&&z.configHash===x)}register(V,x){this.ngZone.runOutsideAngular(()=>{const z=this.findEntry(x.root,x.hash);if(z&&!z.targets.has(V))z.targets.add(V),z.observer.observe(V);else{const X=this.getRootElement(x.root),K={root:X,rootMargin:x.rootMargin,threshold:x.threshold},ne={root:X,configHash:x.hash,targets:new Set([V]),observer:new IntersectionObserver(le=>this.ngZone.run(()=>this.emitTrigger(le)),K)};ne.observer.observe(V),this.registry=[...this.registry,ne]}})}unregister(V,x){this.ngZone.runOutsideAngular(()=>{const z=this.findEntry(x.root,x.hash);if(z){const{observer:X,targets:K}=z;K.has(V)&&(X.unobserve(V),K.delete(V)),0===K.size&&(X.disconnect(),this.registry=this.registry.filter(ne=>ne!==z))}})}}return w.\u0275fac=function(V){return new(V||w)(E.KVO(E.SKi))},w.\u0275prov=E.jDH({token:w,factory:w.\u0275fac,providedIn:"root"}),w})();const C=Symbol("InViewportMetadata");let _=(()=>{class w{constructor(V,x,z){this.platformId=V,this.elementRef=x,this.inViewport=z,this.inViewportAction=new E.bkB,this.config=new S,this.destroyed$=new y.B}set options(V){this.config=new S(V)}ngAfterViewInit(){(0,i.UE)(this.platformId)?(this.inViewport.register(this.elementRef.nativeElement,this.config),this.inViewport.trigger$.pipe((0,A.p)(V=>V&&V.target===this.elementRef.nativeElement),(0,M.Q)(this.destroyed$)).subscribe(V=>this.emitAction(V,!1))):this.emitAction(void 0,!0)}ngOnDestroy(){(0,i.UE)(this.platformId)&&this.inViewport.unregister(this.elementRef.nativeElement,this.config),this.destroyed$&&!this.destroyed$.closed&&(this.destroyed$.next(),this.destroyed$.complete())}check(V,x){const X=x||!V||(()=>{const{isIntersecting:K=!0,intersectionRatio:ne=1}=V??{};return this.config.partial?K||ne>0:ne>=1})();return{[C]:{entry:V},target:this.elementRef.nativeElement,visible:X}}emitAction(V,x){const z=this.config.checkFn?this.config.checkFn(V,{force:x,config:this.config}):this.check(V,x);this.inViewportAction.emit(z)}}return w.\u0275fac=function(V){return new(V||w)(E.rXU(E.Agw),E.rXU(E.aKT),E.rXU(O))},w.\u0275dir=E.FsC({type:w,selectors:[["","inViewport",""]],inputs:{options:[E.Mj6.None,"inViewportOptions","options"]},outputs:{inViewportAction:"inViewportAction"}}),w})(),U=(()=>{class w{}return w.\u0275fac=function(V){return new(V||w)},w.\u0275mod=E.$C({type:w}),w.\u0275inj=E.G2t({imports:[[i.MD]]}),w})()},8448:(it,ge,s)=>{"use strict";s.d(ge,{kp:()=>He,u7:()=>ve,xm:()=>Y});var i=s(55685),E=s(31761),y=s(90249),A=s(10047),M=s(57318),D=s(40352),b=s(94638),f=s(63424),S=s(33055),O=s(54436),C=s(42567),_=s(41298),U=s(76459),w=s(79274),R=s(22900),V=s(19443);const x=["container"],z=new i.nKC("LottieOptions");let K=(()=>{class B{constructor(J,re){this.ngZone=J,this.options=re,this.player$=function X(B,Z){const J=B();return(J instanceof Promise?(0,y.H)(J).pipe((0,O.T)(ce=>ce.default||ce)):(0,A.of)(J)).pipe((0,C.M)(ce=>ce.useWebWorker(Z)),(0,_.t)({bufferSize:1,refCount:!0}))}(this.options.player,this.options.useWebWorker).pipe((0,U.Q)(M.X))}loadAnimation(J){return this.player$.pipe((0,O.T)(re=>this.createAnimationItem(re,J)))}resolveOptions(J,re){return Object.assign({container:re,renderer:"svg",loop:!0,autoplay:!0},J)}createAnimationItem(J,re){return this.ngZone.runOutsideAngular(()=>J.loadAnimation(re))}}return B.\u0275fac=function(J){return new(J||B)(i.KVO(i.SKi),i.KVO(z))},B.\u0275prov=i.jDH({token:B,factory:B.\u0275fac}),B})(),ne=(()=>{class B{constructor(J,re,ce){this.ngZone=J,this.platformId=re,this.animationLoader=ce,this.options=null,this.containerClass=null,this.styles=null,this.animationCreated=this.getAnimationItem(),this.complete=this.awaitAnimationItemAndStartListening("complete"),this.loopComplete=this.awaitAnimationItemAndStartListening("loopComplete"),this.enterFrame=this.awaitAnimationItemAndStartListening("enterFrame"),this.segmentStart=this.awaitAnimationItemAndStartListening("segmentStart"),this.configReady=this.awaitAnimationItemAndStartListening("config_ready"),this.dataReady=this.awaitAnimationItemAndStartListening("data_ready"),this.domLoaded=this.awaitAnimationItemAndStartListening("DOMLoaded"),this.destroy=this.awaitAnimationItemAndStartListening("destroy"),this.error=this.awaitAnimationItemAndStartListening("error"),this.destroy$=new D.B,this.loadAnimation$=new D.B,this.animationItem$=new b.t(null),this.setupLoadAnimationListener()}ngOnDestroy(){this.destroy$.next(),this.destroyAnimation()}loadAnimation(J,re){this.loadAnimation$.next([J,re])}getAnimationItem(){return(0,f.v)(()=>this.animationItem$).pipe((0,w.p)(J=>null!==J))}awaitAnimationItemAndStartListening(J){return this.getAnimationItem().pipe((0,R.n)(re=>new S.c(ce=>{this.ngZone.runOutsideAngular(()=>{re.addEventListener(J,Se=>{this.ngZone.runOutsideAngular(()=>{ce.next(Se)})})})})))}setupLoadAnimationListener(){this.loadAnimation$.pipe((0,w.p)(([J])=>(0,E.UE)(this.platformId)&&void 0!==J.options),(0,R.n)(([J,re])=>(this.destroyAnimation(),this.animationLoader.loadAnimation(this.animationLoader.resolveOptions(J.options.currentValue,re)))),(0,V.Q)(this.destroy$)).subscribe(J=>{this.animationItem$.next(J)})}destroyAnimation(){const J=this.animationItem$.getValue();null!==J&&(J.destroy(),this.animationItem$.next(null))}}return B.\u0275fac=function(J){return new(J||B)(i.rXU(i.SKi),i.rXU(i.Agw),i.rXU(K))},B.\u0275dir=i.FsC({type:B,selectors:[["","lottie",""]],inputs:{options:"options",containerClass:"containerClass",styles:"styles"},outputs:{animationCreated:"animationCreated",complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"configReady",dataReady:"dataReady",domLoaded:"domLoaded",destroy:"destroy",error:"error"}}),B})(),Y=(()=>{class B extends ne{constructor(J,re,ce){super(J,re,ce),this.width=null,this.height=null,this.container=null}ngOnChanges(J){super.loadAnimation(J,this.container.nativeElement)}}return B.\u0275fac=function(J){return new(J||B)(i.rXU(i.SKi),i.rXU(i.Agw),i.rXU(K))},B.\u0275cmp=i.VBU({type:B,selectors:[["ng-lottie"]],viewQuery:function(J,re){if(1&J&&i.GBs(x,7),2&J){let ce;i.mGM(ce=i.lsd())&&(re.container=ce.first)}},inputs:{width:"width",height:"height"},features:[i.Vt3,i.OA$],decls:2,vars:6,consts:[["container",""],[3,"ngStyle","ngClass"]],template:function(J,re){1&J&&i.nrm(0,"div",1,0),2&J&&(i.xc7("width",re.width||"100%")("height",re.height||"100%"),i.Y8G("ngStyle",re.styles)("ngClass",re.containerClass))},dependencies:[E.B3,E.YU],encapsulation:2,changeDetection:0}),B})(),ve=(()=>{class B{static forRoot(J){return{ngModule:B,providers:[K,{provide:z,useValue:J}]}}}return B.\u0275fac=function(J){return new(J||B)},B.\u0275mod=i.$C({type:B}),B.\u0275inj=i.G2t({imports:[[E.MD]]}),B})(),Ie=(()=>{class B extends K{constructor(){super(...arguments),this.cache=new Map}ngOnDestroy(){this.cache.clear()}loadAnimation(J){return this.player$.pipe((0,O.T)(re=>{const ce=this.createAnimationItem(re,this.transformOptions(J));return this.awaitConfigAndCache(J,ce),ce}))}awaitConfigAndCache(J,re){if(this.isAnimationConfigWithPath(J)){if(this.cache.has(J.path))return;re.addEventListener("config_ready",()=>{this.cache.set(J.path,JSON.stringify(re.animationData))})}}transformOptions(J){return this.isAnimationConfigWithPath(J)&&this.cache.has(J.path)?{...J,path:void 0,animationData:JSON.parse(this.cache.get(J.path))}:J}isAnimationConfigWithPath(J){return"string"==typeof J.path}}return B.\u0275fac=(()=>{let Z;return function(re){return(Z||(Z=i.xGo(B)))(re||B)}})(),B.\u0275prov=i.jDH({token:B,factory:B.\u0275fac}),B})(),He=(()=>{class B{static forRoot(){return{ngModule:B,providers:[{provide:K,useClass:Ie}]}}}return B.\u0275fac=function(J){return new(J||B)},B.\u0275mod=i.$C({type:B}),B.\u0275inj=i.G2t({}),B})()},27473:it=>{"use strict";it.exports=JSON.parse('{"menu_share":"Share","menu_login":"Login","menu_logout":"Logout","hint_search":"Search","toast_welcome":"Welcome {{var1}}!","error_minimum_length":"{{var1}} characters min.","error_max_length":"{{var1}} characters max.","chips_sort_lowest_price":"Lowest price","chips_sort_highest_price":"Highest price","empty_results":"No results... Please try again?","error_unknown":"Ooops.","login_activity_text":"Welcome to Popsy!\\n\\nBest Value on High Quality Refurbished iPhone Up to 70% Off. Free 12 months warranty. Free Shipping!","context_menu_conversation_title":"Message","support_email_subject":"Help","label_user_reviews":"Reviews","hint_email":"Email","hint_username":"Username","hint_password":"password","hint_confirm_password":"confirm password","action_email":"Or use your email","action_next":"Next","title_register":"Register","title_forgot_dialog":"Forgot password?","title_login":"Login","title_welcome":"Welcome to Popsy!","error_match_password":"password doesn\'t match","error_not_valid":"Not valid","action_forgot":"Forgot password?","mesage_forgot_confirmation":"Check your emails!","error_login_wrong_password":"Wrong password","error_login_unknown":"unknown error","error_login_already_exists":"Email already exists","toast_done":"Done!","title_home":"Home","message_status_network_error":"Something went wrong, please check the internet connection and try again later!","app_copyright":"Popsy \xa9 {{var1}} - All rights reserved","link_privacy_policy":"Privacy Policy","menu_register":"Register","title_change_location_dialog":"Change Location","button_confirm_location":"Apply Location","app_title":"Popsy: Best Value on High Quality Refurbished iPhone Up to 70% Off. Free 12 months warranty. Free Shipping","error_email_not_valid":"The email is not valid.","button_reset_password":"Reset Password","title_reset_password":"Reset Password","action_back_to_home":"Back to Home","error_404":"Page you are looking for doesn\'t exist.","error_password_too_short":"Password must be at least {{var1}} characters long","error_reset_password_expired":"Reset password request has expired or has already been used. Please fill the reset password form again.","message_password_change_success":"Password Changed","action_create_account":"Create Account","error_username_not_valid":"Username needs to be at least {{var1}} characters long","msg_register_success":"Email sent, check your inbox","title_blog":"Popsy Blog","filter_title_order_by":"Order by","filter_title_min_price":"Min Price","filter_title_max_price":"Max Price","menu_cancel":"Cancel","app_name":"Popsy","error_login_does_not_exist":"Email or password are not valid, please try again.","action_refresh":"refresh","action_update_email":"Update email","footer_blog":"Blog","title_delete_account_dialog":"Delete account","action_delete_account":"Delete my account","action_delete_account_positive":"Delete","msg_delete_account":"Are you sure you want to delete your account? Deleting your account is permanent and will remove all content including listings and conversations","sidebar_filter_title":"Filters","label_select_currency":"Select a currency","label_select_language":"Select a language","message_redirect_subdomain":"You are in Popsy {{var1}}. Do you want to navigate to Popsy {{var2}}?","action_redirect_subdomain":"Yes, Go to Popsy {{var1}}","tooltip_hide_filters":"Hide Filters","tooltip_show_filters":"Show Filters","tooltip_clear_filters":"Clear filters","tooltip_scroll_up":"Scroll Up","error_phone_not_valid":"Invalid Phone Number","social_share_button_email":"Email","continue_in_the_app":"Continue in the app","report_dialog_dismiss_button":"Okey!","app_new_version":"There is a new version of Popsy, please reload the page to get the best experience","hint_phone":"Enter your phone number","msg_title_delivery_status_confirmed":"Order has been confirmed","msg_title_delivery_status_cancelled":"Order canceled","msg_title_delivery_status_delivering":"Delivering","msg_delivery_status_buyer_unconfirmed":"Here\'s something to get excited about - we\'ve received your order and are already working on it so you can enjoy it in no time! \u{1f31f}","msg_delivery_status_buyer_confirmed":"Order has been confirmed, you should receive the item soon","msg_delivery_status_buyer_cancelled":"Order has been canceled. Refund will be automatically applied to your original payment method within 3 business days. If you have any question, you can contact us at support@popsy.app","msg_delivery_status_buyer_delivered":"Item has been delivered!","msg_delivery_status_buyer_delivering":"Item is on its way. It will arrive soon","msg_delivery_status_seller_confirmed":"Your payment is safely held with Popsy until item is confirmed to be received.","msg_delivery_status_seller_cancelled":"Order has been canceled. Refund will be automatically applied to your original payment method within 3 business days. If you have any question, you can contact us at support@popsy.app","msg_delivery_status_seller_delivering":"Item is on its way. It will arrive soon","empty_state_title":"Oh no...","empty_state_subtitle":"We haven\'t found results","link_faq":"FAQ","app_name_long":"Popsy - Buy Refurbished iPhones Up to 70% Off","title_sign_in":"Welcome back","subtitle_sign_in":"Glad to see you again!","error_email_required":"Email field is required.","error_password_required":"Password field is required.","error_username_required":"Username field is required.","message_confirm_registration":"We sent you an email to verify it is really you","message_reset_password":"We sent you an email to change your password","message_reset_password_step_2":"Your password has been successfully changed","subtitle_reset_password":"Enter the email you used to register. We\u2019ll send you an email so you can get back your account","subtitle_reset_password_step_2":"Enter your new password so you can get back into your account","message_title_reset_password_step_2":"You have a new password!","contact_support_if_no_email_received":"Please contact us at contact@popsy.app if you haven\u2019t received any email","delivery_confirm_button":"Confirm Order","label_phone":"Phone Number","label_address":"Address","action_settings":"Open Settings","action_apply":"Filter","action_change":"Change","action_mark_favorite":"Mark as favorite","placeholder_currency_name":"Currency name","action_rotate":"Rotate","error_invalid_phone":"Phone number is invalid","action_see_profile":"See my profile","title_track_order":"Track my order","action_save_address":"Save for future orders","action_help":"Help","title_track_delivery_satatus_unconfirmed":"Order placed","title_track_delivery_status_confirmed":"Order Confirmed","message_track_delivery_status_confirmed":"Good news! Your order has been officially confirmed, and we\'re gearing up to bring your items to you.","title_track_delivery_satatus_delivering":"Order on the way","message_track_delivery_status_delivering":"Brace yourself \u2013 your much-anticipated order is now on its way to you! Our team is working tirelessly to ensure a speedy and safe delivery.","title_track_delivery_satus_delivered":"Order delivered","message_track_delivery_satus_delivered":"Hooray! Your order has successfully reached its destination. We hope you love your new goodies as much as we loved sending them to you.","action_cancel_delivery":"Cancel order","action_close_and_discard_changes":"Discard changes","msg_address_context":"Your door, Apt number","label_address_details":"Apt, suite, unit, building, floor, etc.","title_delivery_created":"Thank you for your order!","msg_delivery_created_buyer":"We\'ve received your order and are already working on it. We\'ll let you know when it ships. Thanks for shopping with us \u{1f31f}","action_select_payment":"Select payment method","action_pay_by_debit_card":"Pay with debit card","action_pay_by_credit_card":"Pay with credit card","title_delivery_status_cancelled":"Order Canceled","msg_payment_method":"This is the payment method you will use to pay for the item.","msg_unknown_delivery_error":"There was an issue with this order. Please contact us at support@popsy.app.","msg_confirm_cancel_delivery":"Are you sure you want to cancel this order?","error_delivery_closed_short":"Delivery not available","error_delivery_does_not_exist":"Delivery error","error_updating_listing_missing":"There was an issue with this delivery. Please try again in a few seconds. You can also contact us at support@popsy.app.","error_invalid_place_short":"Delivery is not available at this location for now unfortunately.","error_invalid_place_long":"Delivery is not available at the moment","msg_delivery_status_processing":"We are preparing the order","title_delivery_status_processing":"Order pending","title_activity_buyer_settings":"Buyer details","label_email_verified":"Email Verified","email_payment_received":"Payment Received","email_order_information":"Order Information","email_view_order":"View Order","email_label_order":"Order","email_label_order_date":"Order Date","email_label_order_total_cost":"Cost","email_label_order_payment_status":"Payment Status","email_label_order_payment_method":"Payment Method","email_order_info_below":"See the Info about the order below.","label_payment_method":"Payment method","error_invalid_card":"Invalid card","label_estimated_delivery_price":"Delivery price:","label_estimated_price_total":"Total price","action_buy_now":"Buy Now","label_delivery_price":"Delivery Price","action_learn_more":"Learn more","msg_enable_location":"Please enable location permission","error_no_location_permission":"Unable to get your location","error_invalid_location":"This location cannot be selected","instructions_location_permission_safari":"Open your browser\u2019s Preferences \u2192 Websites and change location setting for popsy.app to \u201cAllow\u201d.","instructions_location_permission_firefox":"Click {{var1}} in the URL bar and set \u201cAccess Your Location\u201d to \u201cAllow.\u201d","instructions_location_permission_chrome":"Click {{var1}} in the URL bar and set \u201cLocation\u201d to \u201cAllow\u201d","instructions_location_permission_generic":"Open your browser settings and change the Location permission to Allow for the popsy.app domain.","instructions_location_permission_safari_ios":"Press aA button in the URL bar \u2192 Website Settings and change location setting to Allow.","action_buy":"Buy","action_yes":"Yes","action_no":"No","msg_explicit_image_not_allowed":"Explicit images are not allowed","label_card_number":"Card Number","label_card_cvc":"CVC","label_card_expiry":"Expiration Date","label_postal_code":"Postal Code","error_payment_failed":"Payment Failed","action_dismiss":"No, Thanks!","action_change_card":"Modify card","title_payment":"Payment","txt_popsy_protect":"Popsy Protect","hint_popsy_protect":"This fee allows us to provide absolute security in case transaction fails","hint_card_encrypted":"Verified and encrypted payment process","title_delivery_information":"Delivery information","label_payment":"Payment details","action_continue":"Continue","hint_type_address":"Start typing your address here","title_terms_and_conditions":"Terms & Conditions","action_review_card_details":"Review card details","error_card_declined":"Card declined","title_popsy_protect_overlay":"Buyer Protection","title_refund_popsy_protect_overlay":"Return and Refund Policy","title_payment_popsy_protect_overlay":"Secured Payments","details_payment_popsy_protect_overlay":"Paying through the app is the only way to be able to prove that you have made the transaction. Your private data is never shared with the seller.\\nhttps://www.popsy.app/privacy-policy","title_help_popsy_protect_overlay":"Dedicated support","details_help_popsy_protect_overlay":"In case something is not right, our support team is here to help you.\\nsupport@popsy.app","app_copyright_part_2":"Popsy LLC 401 Broadway Floor 12\\nNew York, NY 10013 USA","action_know_more":"Know more","action_remind_me_later":"Remind me later","action_show_password":"Show password","action_hide_password":"Hide password","action_view_all_deliveries":"View all orders","view_title_popsy_protect":"Buyer Protection - Popsy","view_description_popsy_protect":"Your security is important to us. When you buy with Popsy, we follow strict procedures to keep you safe.","view_title_delivery_know_more":"New! Fast and Secure delivery service.","view_description_delivery_know_more":"Popsy now offers delivery service to help you sell any item faster. With our delivery service, you can get any item delivered quickly and it\'s free!","contact_us_at":"Contact us at support@popsy.app","title_terms_of_use":"Terms & Conditions","action_proceed_to_payment":"Continue to Payment details","action_proceed_summary":"Review details","menu_settings_user_info":"Account Information","menu_settings_payment_info":"Payment Methods","menu_settings_address_info":"Saved Addresses","action_continue_with_google":"Continue with Google","action_continue_with_apple":"Continue with Apple","error_social_auth_dialog_closed":"Authorisation dialog was closed, please try again.","error_social_auth_invalid_domain":"There was a problem in our end. Please try again later.","action_continue_with_facebook":"Continue with Facebook","title_sitemap":"Sitemap","seo_title_sitemap":"Sitemap | Buy & Sell Used Stuff","seo_description_sitemap":"More than 200 categories of second hand products | Buy & Sell Used Stuff | Free Space and make money. Without sale fees!","payment_method_google_pay":"Pay with Google Pay","seo_description_welcome":"A free marketplace for any second hand item used by millions of members. Want to be part of our community? Come join us!","seo_title_welcome":"Welcome to your global second-hand community","payment_method_apple_pay":"Pay with Apple Pay","label_pay_with":"Pay with","category_about":"About","label_continue_with_card":"Continue with card...","label_or_enter_a_new_card":"Or enter a new card...","title_secure_payment_options":"Secure Payment Options","description_secure_payment_options":"Popsy keeps your payment information secure.\\nPopsy sellers never receive your credit card information.","label_enter_street_number":"What is your street number?","label_number":"number","title_leave_order":"Your opinion matters","description_leave_order":"How would you rate Popsy\u2019s buying experience?","action_confirm_leave_order":"Return to Cart","action_reject_leave_order":"Leave cart","action_contact_us":"Contact us!","placeholder_enter_postal_code":"Enter your Postal Code","label_county":"State","label_city":"City","label_neighborhood":"Neighborhood","label_street":"Street / Avenue","label_street_number":"Street Number","rate_your_experience":"Rate your experience!","action_help_us_improve":"How can we improve?","rate_on_google":"Rate on Google","label_cart":"Cart","message_empty_cart":"Your cart is empty :(","action_remove":"Remove","label_shop_with_confidence":"Shop with confidence","label_verified":"Verified","label_buy_with":"Pay with","label_full_name":"Full name","placeholder_full_name":"Name on the card","action_close":"Close","message_add_delivery_info":"Add your address so we can calculate the delivery fee.","action_add_delivery_info":"Add address","label_calculated_at_next_step":"Calculated at next step","label_feedback":"Feedback","action_feedback_hate":"Hate","action_feedback_dislike":"Dislike","action_feedback_neutral":"Neutral","action_feedback_like":"Like","action_feedback_love":"Love","title_feedback_question":"How would you rate your experience?","error_reset_password":"An error has occurred, please try again later","placeholder_feedback_comment":"Tell us about your experience...","action_send_feedback":"Send","action_view_details":"View details","action_hide_details":"Hide details","label_feedback_not_support":"Heads up! This is for feedback only.\\nNeed help? Contact us at support@popsy.app.","title_feedback_follow_up":"We may wish to follow up. Enter your email if you\'re happy for us to contact you.","action_skip":"Skip","card_transaction_name":"Popsy Purchase","label_issuer":"Issuer","label_installments":"Installments","title_card_details":"Card Details","label_identification":"ID Number","expiry_month_one":"Month","expiry_month_other":"Months","expiry_year":"Year","label_question_troubles":"Having troubles?","label_country":"Country","action_pay_by_card":"Pay with card","label_trusted_quality":"Trusted quality","msg_trusted_quality":"Certified phones are professionally inspected","label_thirty_day_warranty":"14-day warranty","msg_thirty_day_warranty":"Covers all hardware and software defects","label_free_tracked_shipping":"Free tracked shipping","msg_free_tracked_shipping":"Receive your items in 3 working days","label_free_hassle_free":"Hassle Free exchange","msg_free_hassle_free":"Not working out for you? Exchange within 7 days","label_why_buy_from_popsy":"Why you should buy from Popsy?","label_popsy_refurbished_market":"Popsy Refurbished Market","label_refurbished_get_it_cheap":"Get it cheaper","action_refurbished_discover_more":"Discover More","label_refurbished_most_searched_brands":"Most Searched Brands","label_refurbished_our_best_deals":"All our best deals","error_refurbished_no_offers_found":"We couldn\'t find any offer that delivers to your location. Please check back later, as we keep adding new offers all the time.","title_shipping":"Shipping","title_review":"Review","txt_label_best_deails":"Best Deals","title_order_summary":"Order Summary","action_view_more":"View more","txt_label_id_number":"ID Number","title_delivery_status_waiting_payment":"Processing payment","label_discount":"Discount","label_discount_code":"Discount code","error_invalid_discount":"Invalid code","label_free":"Free","action_place_order":"Place order","hint_color":"Color","hint_model":"Model","hint_storage_size":"Storage","label_phone_color_white":"White","label_phone_color_black":"Black","label_phone_color_silver":"Silver","label_phone_color_gold":"Gold","label_phone_color_space_gray":"Space Gray","label_phone_color_rose_gold":"Rose Gold","label_phone_color_product_red":"(Product) Red","label_phone_color_yellow":"Yellow","label_phone_color_green":"Green","label_phone_color_purple":"Purple","label_available_in_colors":"Available in these colors","label_available_in_storage":"Available with storage","txt_credit_card_offer":"Pay by credit card and get a {{var1}} discount!","label_warranty_length":"12 months refurbisher warranty","label_warranty_money_back":"14 days to change your mind","label_warranty_free_shipping":"Free delivery","label_warranty_customer_service":"Premium customer service","label_express_checkout":"Express Checkout","action_show_more":"\u25bc Show more","action_show_less":"\u25b2 Show less","label_tested_by_popsy":"The following functions on this item have been carefully tested by Popsy","label_verified_feature_buttons":"Buttons","label_verified_feature_battery":"Battery min 80%","label_verified_feature_wifi":"Wifi","label_verified_feature_speakers":"Speakers","label_verified_feature_camera":"Camera","label_verified_feature_oxidation":"Oxidation","label_verified_feature_plug":"Jack / Charger","label_verified_feature_cable":"Charging cable","description_verify_phone":"We need to verify your phone number in order to complete the order.","title_sms_sent":"Please enter OTP ( One Time Password ) sent to registered mobile number {{var1}}","description_sms_sent":"To this number {{var1}}","label_resend_sms":"Didn\'t receive a code?","text_limit_requests":"You have made too many requests. Please try again later","label_first_name":"First name","label_last_name":"Last name","error_msg_payment_failed":"The payment could not be processed, please try again later. If this still happens, please contact us at support@popsy.app.","label_zip_code":"ZIP Code","title_featured_warranty":"12 Months Warranty","title_return":"Easy Return","label_phone_color_jet_black":"Jet Black","label_phone_color_coral":"Coral","label_phone_color_blue":"Blue","label_phone_color_midnight_green":"Midnight green","label_delivery_payment_safety_short":"Your card will not be charged on this step.","label_contition_excelent":"Condition: Excellent","label_subtotal":"Subtotal","label_free_shippings_and_returns":"Free shipping","label_deliver_by":"Delivery: {{var1}}","label_warranty":"Warranty","label_phone_color_graphite":"Graphite","label_phone_color_pacific_blue":"Pacific blue","label_card_holder_name":"Name on Card","title_best_sellers":"Bestsellers","txt_up_to_discount":"Up to {{var1}}% off!","spec_height":"Height","spec_width":"Width","spec_depth":"Depth","spec_weight":"Weight","spec_storage":"Storage","spec_external_memory":"External memory","spec_storage_capacity":"Capacity","spec_screen":"Screen","spec_screen_size":"Screen size","spec_screen_resolution":"Screen resolution","spec_pixel_density":"Pixel density","spec_hdr":"HDR","spec_camera":"Camera","spec_camera_resolution":"Resolution","spec_flash":"Flash","spec_optical_zoom":"Optical zoom","spec_max_video_resolution":"Max. video resolution","spec_video_call":"Video call","spec_optical_image_stabilization":"Optical Image Stabilization","spec_front_camera":"Front camera","spec_lidar_scanner":"LiDAR scanner","spec_details":"Product details","spec_processor":"Processor","spec_ram":"RAM","spec_sim_card_format":"SIM card format","spec_connector":"Connector","spec_headphone_jack":"Headphone jack","spec_connectivity":"Connectivity","spec_wifi":"Wi-Fi","spec_bluetooth":"Bluetooth\xae","spec_4g_lte":"4G LTE","spec_5g":"5G","spec_sensors":"Sensors","spec_accelerometer":"Accelerometer","spec_gyroscope":"Gyroscope","spec_barometer":"Barometer","spec_ambient_light_sensor":"Ambient light sensor","spec_proximity_sensor":"Proximity sensor","spec_fingerprint_sensor":"Fingerprint sensor","spec_other":"Other","spec_nfc":"NFC","spec_wireless_payment":"Wireless payment","spec_voice_recognition":"Voice recognition (builtin)","spec_face_recognition":"Face recognition","spec_waterproof":"Waterproof","spec_color":"Color","spec_release_date":"Release Date","spec_battery":"Battery","spec_wireless_charging":"Wireless charging","spec_battery_capacity":"Battery capacity","spec_standby":"Standby","spec_talk_time":"Talk time","spec_model_numbers":"Model numbers","spec_model_number":"Model number","txt_up_to_discount_2":"Up to","label_bought":"Bought","label_condition":"Condition","spec_brand":"Brand","spec_model":"Model","label_phone_color_red":"(PRODUCT)RED","msg_reply_condition_excellent":"Excellent","title_featured_warranty_variable":"Free {{var1}} Month Warranty","title_our_mission":"Our mission","msg_our_mission":"We sell the best refurbished electronics on the planet at a fair price","header_our_mission":"Buying electronics should leave you happy with the money in your pocket","featured_banner_title":"The <span class=text-highlight>New Way</span> to Buy Electronics","featured_banner_headline":"Highest quality devices up to 70% off with a warranty","featured_banner_action":"Shop now","txt_why_popsy_item_1":"Up to 70% off","txt_why_popsy_item_2":"{{var1}} months warranty","txt_why_popsy_item_3":"30 days for returns","txt_why_popsy_item_4":"Free shipping","label_phone_color_pink":"Pink","label_why_popsy":"Why Popsy?","label_sort_by":"Sort by","label_all":"All","label_best_seller":"Bestseller","label_inspection_points":"40 point inspection","label_all_products":"All Products","label_read_more":"Read More","action_pay_later":"Pay later","action_pay_installments":"Pay in installments","chips_sort_our_picks":"Our Top Picks","error_action_required":"Action Required!","error_action_required_msg":"The selected address is not valid. Please update the address and select it again.","notice_payment_provider_unavailable":"This payment method is not available at this time. Please select a different payment method, or try again later.","label_discount_valid":"Discount code valid","title_subscribe_newsletter":"Subscribe to our newsletter","msg_subscribe_newsletter":"Sign up to receive insider information on new deals, exclusive offers and new arrivals.","action_subscribe":"Subscribe","label_subscribe_newsletter_success":"You are now subscribed to our newsletter :)","label_newsletter":"Newsletter","title_newsletter_offer":"Sign up to get {{var1}} discount!","msg_newsletter_discount_code":"You are now subscribed to our newsletter. You will soon receive the discount code in the specified email :)","link_tabby_faq":"Tabby\'s Help Center","about_welcome_title":"Welcome to Popsy! The New Way to Buy Electronics","about_welcome_text":"We built a Better alternative to electronics. We sell the best refurbished electronics on the planet at a fair price.\\n\\nPopsy was founded out of a desire to make premium electronics accessible to everyone. As electronics enthusiasts ourselves, it became impossible for us to turn a blind eye to the price markups traditionally seen in the industry.","about_buying_title":"Buying electronics should leave you happy with money in your pocket for life","about_buying_text":"We sell quality electronics that\u2019s here to stay. Trends come and go, but quality remains... and happens to be good for the environment.\\n\\nOur electronics are refurbished and recycled whenever possible. Making conscious luxury accessible to everyone.","about_warranty_title":"We\u2019re looking out for you","about_warranty_text":"Every Popsy electronic comes standard with a warranty. Should anything happen, we\u2019ll take care of it so you can rest easy.","about_inspected_title":"Inspected and Certified","about_inspected_text":"Every one of our electronics goes through a strict 150-point inspection to make sure it meets our high standards.","about_return_title":"14 Days Returns","about_return_text":"Every Popsy electronic comes with a 30-day return policy. Try it and see if it truly fits your life. If you don\u2019t love after 30-days, simply return it. It\u2019s that easy.","title_can_we_have_your_number":"Can we have your number?","msg_can_we_have_your_number":"Join our text marketing for exclusive deals and a chance to win an iPhone 15","terms_can_we_have_your_number":"By signing up via text you agree to receive recurring automated marketing messages and shopping cart reminders at the phone number provided. Consent is not a condition of purchase. Reply STOP to unsubscribe. HELP for help. Msg & Data rates may apply. View Privacy Policy & ToS.","title_newsletter_thank_you":"Thank you for subscribing","error_phone_country_not_valid":"Phone numbers from this country are not supported yet","error_card_number_invalid":"Please enter a valid card number","error_card_cvv_invalid":"Please enter a valid cvv code","error_card_expiry_invalid":"Please enter a valid expiry date","link_payment_policy":"Payment Policy","msg_notification_welcome":"The New Way to Buy Phones! Enjoy up to 70% OFF","label_all_brands":"All Brands","label_no_subscribe":"No, I\'d rather pay full price","action_add_to_cart":"Add to cart","label_rated_stars":"Rated 5 stars by 95% of our customers","lema_title":"We deliver the Highest Quality Electronics at a fair price with a warranty","lema_subtitle":"Hi, we\'re Popsy","price_banner_title":"Phones without the high price tag","price_banner_subtitle":"We built a Better alternative to expensive Electronics. We sell the best refurbished Electronics on the planet at a fair price.","planet_banner_title":"We build the new way to buy electronics with the planet in mind","planet_banner_subtitle":"90% Reduced Carbon Footprint. For every purchase, you save 70,000 Liters of Water! High Quality Electronics shouldn\'t cost the planet.","label_phone_color_(product)red":"(PRODUCT)RED","title_tested_by_popsy":"Tested by Popsy","refurbish_banner_title":"Highest Quality Electronics","refurbish_banner_subtitle":"Every electronic device meets Popsy\u2019s rigorous reconditioning standards.","label_popular_iphones":"Popular iPhones","text_feedback_buzzfeed":"\u201cYou save money on Electronics with the planet in mind!\u201d","text_feedback_insider":"\u201cPopsy is an affordable alternative to expensive Electronics\u201d","text_feedback_forbes":"\u201cPrices are lower than traditional electronics brands and it\u2019s much better for the planet\u201d","label_starting_at":"Starting at","label_product_unlocked":"Unlocked","label_premium_shippings":"Premium shipping","label_verified_feature_microphone":"Microphone","label_show_more":"Show more","label_show_less":"Show less","label_top_ratings":"Top ratings","label_bottom_ratings":"Bottom ratings","label_stars_ratings":"Stars","price_banner_good_new":"Good as new","price_banner_new":"New","price_banner_luxury":"Luxury brands","price_banner_from":"From","action_information":"Information","label_shop_all":"Shop all","label_emirate":"Emirate","action_complete_payment":"Complete Payment","link_zendesk_policy":"Returns","link_zendesk_payment":"Payment Options","link_zendesk_arrive":"Shipping and Delivery","link_zendesk_orders":"Track your Order","action_apply_discount":"Apply","label_get_help":"Get Help","lable_available_24_7":"Available 24/7","label_customer_reviews":"Customer Reviews","rate_email_title":"What did you think of your recent purchase?","rate_email_message":"Thanks for shopping with us \u{1f31f}\\nWe strive for excellence, and your feedback is valuable to us.","rate_email_action":"Rate your experience!","main_banner_title":"Pre-loved phones, perfect condition.","label_shop_popsy":"Shop Popsy","label_charger":"USB Charging Cord","label_what_included":"What is included:","label_installment_plan":"Shop Now, Pay Later","action_pay_3_installments":"Split in 3 payments. No Fees","action_pay_now_tamara":"Pay in full - pay safely\\nwith Apple Pay or Mada\\ncard","label_charger_laptop":"Charging Cable and Adapter","label_phone_color_sierra_blue":"Sierra Blue","label_phone_color_alpine_green":"Alpine Green","label_pay_now_tamara":"You\u2019ll be redirected to Tamara website to complete your payment, ensure you\u2019re using Safari to be able to pay via Apple Pay.","label_favorite":"Your favorite","price_banner_retail":"Retail price","spec_cpu":"CPU","spec_graphics":"Graphics","spec_launch_date":"Launch date","spec_storage_type":"Storage type","label_phone_color_phantom_black":"Phantom Black","label_phone_color_phantom_violet":"Phantom Violet","label_phone_color_phantom_silver":"Phantom Silver","label_phone_color_cloud_lavender":"Cloud Lavender","label_phone_color_cloud_mint":"Cloud Mint","label_phone_color_cloud_navy":"Cloud Navy","label_phone_color_cloud_orange":"Cloud Orange","label_phone_color_cloud_red":"Cloud Red","label_phone_color_cloud_white":"White Cloud","label_phone_color_cosmic_black":"Cosmic Black","label_phone_color_cosmic_gray":"Cosmic Gray","label_phone_color_mystic_black":"Mystic Black","label_phone_color_mystic_bronze":"Mystic Bronze","label_phone_color_mystic_white":"Mystic White","label_phone_color_prism_white":"Prism White","label_phone_color_prism_black":"Prism Black","label_phone_color_prism_green":"Prism Green","label_phone_color_prism_blue":"Prism Blue","label_phone_color_aura_glow":"Aura Glow","label_phone_color_aura_white":"Aura White","label_phone_color_aura_black":"Aura Black","label_phone_color_aura_pink":"Aura Pink","label_phone_color_aura_red":"Aura Red","label_phone_color_deep_blue":"Deep Blue","label_phone_color_coral_orange":"Coral Orange","label_phone_color_prism_crush_black":"Prism Crush Black","label_phone_color_prism_crush_silver":"Prism Crush Silver","label_phone_color_prism_crush_blue":"Prism Crush Blue","label_phone_color_prism_crush_pink":"Prism Crush Pink","label_phone_color_ocean_blue":"Ocean Blue","label_phone_color_lavender_purple":"Lavender Purple","label_phone_color_midnight_black":"Midnight Black","label_phone_color_metallic_copper":"Metallic Copper","label_phone_color_coral_blue":"Coral Blue","label_phone_color_maple_gold":"Maple Gold","label_phone_color_orchid_gray":"Orchid Gray","label_phone_color_deep_sea_blue":"Deep Sea Blue","label_phone_color_star_pink":"Star Pink","label_condition_excelent":"Excellent","label_condition_good":"Good","label_condition_fair":"Fair","label_name":"Name","category_laptop_title":"Laptops","category_laptop_desc":"Your favorite laptops, starting at {{var1}}","category_smartphone_title":"Smartphones","category_smartphone_desc":"Your favorite smartphones, starting at {{var1}}","category_tablet_title":"Tablets","category_tablet_desc":"Your favorite tablets, starting from {{var1}}","category_watch_desc":"Your favorite watches, starting from {{var1}}","category_watch_title":"Watches","action_quara_installments":"Up to 30 payment installments","label_quara_info":"Split your bill up to {{var1}} payments of","label_quara_redirect":"You will be redirected to Quara website","label_quara_details":"Fill in your details","label_quara_complete":"Complete your payment","label_quara_cart":"Add the item to your cart","label_quara_select":"Select Quara at checkout","hint_keyboard":"Keyboard","error_field_is_required":"{{var1}} is required","button_select_location":"Select a country","hint_strap_color":"Strap Color","label_phone_color_midnight":"Midnight","label_phone_color_starlight":"Starlight","msg_sign_in":"Log in or Sign up for more info","hint_order_id":"Enter Order ID","label_order_id":"You can find the Order ID number in the transaction email you received after placing an order","label_your_order_id":"Your Order ID","action_code_shipment":"Tracking Code:","label_phone_color_gray":"Gray","label_track_email":"Your order information was sent to","label_track_confirmed":"Your order is confirmed","label_track_info":"We\'ve accepted your order and we are getting it ready. Come back to this page for updates on your shipment status","label_track_company":"Track Order with","label_track_estimate_text":"Our dedicated team is working tirelessly to ensure your items are packed, prepped, and shipped to you as swiftly as possible.","label_track_status":"Your order status","message_track_delivery_status_pending":"We\'ll send you an Email with your shipment details and tracking number so you can follow your parcel and know exactly when to expect it.","label_not_available":"Product not available","text_not_available":"Sorry, the products you are looking for are not available at the moment","action_pay_now_tamara_uae":"Pay in full - pay safely\\nwith Apple Pay or credit\\ncard","tamara_phone_error":"Payments with Tamara require a local phone number.\\nAdd a valid phone number for {{var1}} at your Delivery Information","content_label":"Comes with","content_power":"Charger","action_pay_secure_tamara":"Secure checkout with Tamara","label_phone_color_cloud_blue":"Cloud Blue","label_phone_color_phantom_green":"Phantom Green","label_phone_color_platinum":"Platinum","label_phone_color_orange":"Orange","label_phone_color_copper":"Copper","wallet_payment_step":"Another step will appear to securely submit your payment information.","category_accessories_title":"Accessories","category_accessories_desc":"Your favorite accessories, starting from {{var1}}","label_phone_color_lavender":"Lavender","label_phone_color_burgundy":"Burgundy","spec_assistant_support":"Assistant Support","spec_available_port":"Available Port(s)","spec_biometric_security":"Biometric Security","spec_broadband_generation":"Broadband Generation","spec_cellular_network":"Cellular Network","spec_epeat_rating":"EPEAT Rating","spec_form_factor":"Form Factor","spec_front_camera_resolution":"Front Camera Resolution","spec_lens_quality":"Lens Quality","spec_lens_type":"Lens Type","spec_material":"Material","spec_number_of_cores":"Number of Cores","spec_operating_system":"Operating System","spec_processor_brand":"Processor Brand","spec_processor_speed":"Processor Speed","spec_product_highlights":"Product Highlights","spec_rear_camera_resolution":"Rear Camera Resolution","spec_refresh_rate":"Refresh Rate","spec_security_feature":"Security Feature","spec_sim_slots":"Sim Slots","label_phone_color_cream":"Cream","category_earbuds_title":"Audio","category_earbuds_desc":"Your favorite audio devices, starting from {{var1}}","category_headphones_title":"Audio","category_headphones_desc":"Your favorite audio devices, starting from {{var1}}","hint_express_checkout":"Use our Express Checkout","action_pay_n_installments":"Split in up to 4 payments or Pay in full securely with Tamara","hint_or":"Or","hint_checkout":"Checkout","label_phone_color_navy_blue":"Navy Blue","label_phone_color_brown":"Brown","label_phone_color_space_black":"Space Black","label_phone_color_mystic_blue":"Mystic Blue","label_phone_color_phantom_gray":"Phantom Gray","label_phone_color_mystic_gray":"Mystic Gray","label_phone_color_mystic_green":"Mystic Green","label_phone_color_beige":"Beige","label_phone_color_transparent":"Transparent","label_phone_color_flamingo_pink":"Flamingo Pink","label_phone_color_matte_black":"Matte Black","title_sell_with_popsy":"Sell with Popsy","msg_address_details":"Introduce your address details","filter_title_price":"Price","msg_empty_description_long":"Product description is not available","action_see_more_listings":"View more","title_report_form":"Help us understand the problem, what is wrong?","title_delivery_details":"Details of your order","label_out_of_stock":"Out of Stock","label_good_deal":"good deal!","msg_listing_not_found":"Sorry, we couldn\'t find this product.","category_gaming_title":"Gaming","category_gaming_desc":"Your favorite gaming devices, starting from {{var1}}","condition_excelent_desc":"- Thoroughly checked and spotless!\\n- Fresh out of the box appearance, no marks!\\n- Grade A devices: A premium choice for quality seekers.\\n\\nThese devices are close to perfection, they look and perform like new. They are deeply checked and cleaned for unbeatable performance. A thorough testing process ensures you\u2019ll get the best device. It\u2019s quality at an affordable price.","condition_good_desc":"- Minimal scratches, invisible from 20 cm away (8 inches).\\n- Comprehensive testing and cleaning for a reliable choice.\\n- A budget-friendly option that delivers value.\\n\\nThese devices may have slight cosmetic flaws, such as a few light scratches that are barely noticeable. They are deeply checked and cleaned for unbeatable performance. Ideal for budget-conscious consumers looking for quality.","condition_fair_desc":"- May exhibit visible scratches and dents\\n- Comprehensive testing and cleaning\\n- An excellent option for consumers on a budget\\n\\nAffordable and functional devices for budget-minded consumers. Visible scratches and dents, but thoroughly tested for reliable use. Quality electronics that won\'t break the bank.","action_follow_shipment":"Track your Shipment","paypal_payment_step":"Another step will appear to securely submit your payment information, where you will be prompt to pay in US dollars.","hint_search_on_popsy":"What are you looking for?","label_often_together":"Often Bought Together","action_add_both_to_cart":"Add both to Cart","label_staff_pick":"Staff Pick!","action_validate_payment":"Validate payment","stc_payment_step":"On placing the order you will receive a verification code on the provided phone number associated with your STC Pay account","label_phone_color_stardust_white":"Stardust White","label_phone_color_deep_purple":"Deep Purple","label_phone_color_obsidian":"Obsidian","label_phone_color_charcoal":"Charcoal","label_phone_color_ice_blue":"Ice Blue","hint_network":"Network","label_phone_color_phantom_red":"Phantom Red","label_phone_color_phantom_pink":"Phantom Pink","label_phone_color_phantom_gold":"Phantom Gold","label_phone_color_stormy_black":"Stormy Black","label_phone_color_volcanic_gray":"Volcanic Gray","label_phone_color_cosmos_blue":"Cosmos Blue","label_phone_color_natural_titanium":"Natural Titanium","label_phone_color_white_titanium":"White Titanium","label_phone_color_black_titanium":"Black Titanium","label_phone_color_blue_titanium":"Blue Titanium","label_phone_color_phantom_white":"Phantom White","label_phone_color_pink_gold":"Pink Gold","label_phone_color_sky_blue":"Sky Blue","label_phone_color_bora_purple":"Bora Purple","label_phone_color_violet":"Violet","label_phone_color_lemon_grass":"Lemon Grass","label_phone_color_neptune_blue":"Neptune Blue","label_phone_color_mineral_gray":"Mineral Gray","label_phone_color_cloud_pink":"Cloud Pink","label_phone_color_mocha":"Mocha","label_error_otp":"Sorry, we could not validate your code","action_request_otp":"Request a new SMS code","action_back_to_payment":"Return to Payment Details","label_phone_color_silver_aluminum":"Silver Aluminum","label_phone_color_midnight_aluminum":"Midnight Aluminum","label_phone_color_pink_aluminum":"Pink Aluminum","label_phone_color_red_aluminum":"Red Aluminum","action_try_again":"Try again","spec_series":"Series","label_popsy_kafala":"Popsy Kafala","label_protect_for":"Protect your device for just","title_track_delivery_status_returning":"Returning on the way","title_track_delivery_status_returned":"Returning completed","message_track_delivery_status_returning":"We regret to hear that there is a need for a return. Our team is diligently working to facilitate this process as quickly as possible. Please stay tuned, and we will update you as time progresses.","message_track_delivery_status_returned":"Your return has been successfully processed. We hope you are satisfied with our service, and we are here for any questions or concerns. Thank you for your understanding.","label_delivery_service":"Fast Delivery","deliver_with_popsy":"Deliver with Popsy","label_condition_new_battery":"New Battery","condition_new_battery_desc":"","action_add_battery":"Add a brand new battery","label_phone_color_awesome_lime":"Awesome Lime","label_phone_color_jade_purple":"Jade Purple","label_phone_color_opal_green":"Opal Green","label_phone_color_titanium_silver":"Titanium Silver","label_phone_color_cyan_lake":"Cyan Lake","label_phone_color_hazel":"Hazel","label_phone_color_sunrise_copper":"Sunrise Copper","label_phone_color_nightsky_green":"Nightsky Green","label_phone_color_waterfall_blue":"Waterfall Blue","label_phone_color_oxford_gray":"Oxford Gray","label_phone_color_awesome_black":"Awesome Black","label_phone_color_nebula_blue":"Nebula Blue","label_phone_color_starlight_aluminum":"Starlight Aluminum","label_phone_color_dark_gray":"Dark Gray","label_phone_color_mystic_red":"Mystic Red","label_phone_color_carbon_gray":"Carbon Gray","label_phone_color_ocean_green":"Ocean Green","label_phone_color_just_black":"Just Black","label_phone_color_aura_silver":"Aura Silver","label_phone_color_night_sea":"Night Sea","label_phone_color_sandy_gold":"Sandy Gold","label_phone_color_sky":"Sky","label_phone_color_awesome_graphite":"Awesome Graphite","label_phone_color_awesome_violet":"Awesome Violet","label_phone_color_awesome_white":"Awesome White","label_phone_color_onyx_black":"Onyx Black","label_phone_color_graphite_gray":"Graphite Gray","label_phone_color_mint_green":"Mint Green","label_support_portal":"Support Portal","label_extended_warranty":"Experience Peace of Mind with Popsy\'s Extended Warranty","label_recommended":"Recommended","label_best_value":"Best Value","label_your_benefits":"Your benefits with every purchase","label_phone_color_bay_blue":"Bay Blue","label_phone_color_graphite_stainless_steel":"Stainless Steel","label_phone_color_bay":"Bay","label_phone_color_shadow_gray":"Shadow Gray","label_phone_color_champagne_gold":"Champagne Gold","label_phone_color_polished_silver":"Polished Silver","label_phone_color_mercury_gray":"Mercury Gray","label_phone_color_dark_grove":"Dark Grove","label_phone_color_icy_blue":"Icy Blue","label_phone_color_graygreen":"Graygreen","label_phone_color_thom_browne_edition":"Thom Browne Edition","label_phone_color_cloudy_white":"Cloudy White","label_phone_color_gold_aluminum":"Gold Aluminum","label_phone_color_aqua":"Aqua","label_phone_color_mint":"Mint","label_phone_color_breathing_crystal":"Breathing Crystal","label_phone_color_purple-ish":"Purple-ish","label_phone_color_arctic_silver":"Arctic Silver","label_also_like":"You may also like","label_description":"Description","label_n_installments":"in {{var1}} installments","label_pay_as_low":"Pay as low as","label_no_fees":"Split in 4 payments - No late fees","label_from":"from","label_from_3_months":"Last 3 Months","title_quara_confirmation":"We are verifying your payment with Quara.","label_email_confirmation":"You will receive an email with the details of your order when ready.","label_cable":"Cable","declined_payment_title":"Trouble checking out?","declined_payment_desc":"No worries, switching to another payment method could be the quick fix.","action_continue_cart":"Continue to cart","action_keep_browsing":"Keep browsing","label_added_to_cart":"{{var1}} was added to cart","label_for_model":"for {{var1}}","hint_sim":"Sim Card","label_pay":"Pay","msg_stc_phone":"Enter the phone number registered with STC Pay","action_rate_us":"Rate us","spec_graphics_processor":"Graphics processor","spec_product_line":"Product line","spec_short_text":"Description","title_best_deals":"Best Deals","label_tamara_instalments":"{{var1}} payments of","sub_label_tamara_instalments":"*Additional service charges will apply on checkout","label_tamara_instalments_2":"No late fees, Sharia-compliant!","action_contact_now":"Contact now","msg_baseeta_confirmation":"Order is being processed.\\nYou will receive an SMS from Baseeta.","label_credit_card_installments":"Credit Card Installment Plans","price_banner_or":" or <b> {{var1}}/month </b>","price_banner_highlight_or":" or <b class=\\"text-highlight\\"> {{var1}}/month </b>","error_quara_redirect":"Quara submissions are accessible exclusively from within SA","error_card_funds":"Insufficient funds. Please try again with a different card","error_card_invalid":"Invalid card number. Please review your card details and try again","confirm_insurance_question":"Are you sure you don\u2019t want to protect your {{var1}} against damage for only {{var2}}?","confirm_insurance_action_back":"Go back to cart to add Popsy\'s Extended Warranty","confirm_insurance_action_continue":"Continue with no protection","label_baseeta_account":"New to Baseeta? Sign up in seconds","label_baseeta_pay_now":"or <br />Pay now with Baseeta card","label_purchase_amount":"Purchase Amount","label_payment_plan":"Payment Plan","label_monthly_installments":"Your monthly installments*","desc_calculator_terms":"This calculator is intended for use as a guide only. Results calculated do not constitute an offer and have no legal effect on any contracts signed between you and your chosen installment partner.","label_downpayment":"Downpayment","label_apr":"APR","label_apply_now":"Apply now","action_continue_with_baseeta":"Continue with Baseeta","label_every_month":"every month","label_total_amount":"Total amount","action_join":"I\'M IN!","action_watch_here":"Watch here","label_shop_now":"<h3 class=\\"title\\">Shop now,</h3><h3 class=\\"italic text-gray-01\\">Pay in easy <br>installments</h3>","label_last_added":"Pick up where you left it","label_coming_soon":"Coming soon","action_get_notified":"Get notified","label_customer_rated":"<h2 class=\\"title\\">Rated 5 stars by 95%</h2><h3 class=\\"light italic\\">of our customers :)</h3>","label_highest_quality":"<h2 class=\\"title\\">Highest Quality Devices</h2><h3 class=\\"light italic\\">Up to 70% off</h3>","title_trade_in":"Turn your old devices into cash!","desc_trade_in":"Get an instant quote for your device, ship for free, and either trade for another product or get a direct payment into your account.","label_promo_message":"SIGN UP FOR 40 AED OFF! SIGN UP FOR 40 AED OFF! SIGN UP FOR 40 AED OFF! SIGN UP FOR 40 AED OFF! SIGN UP FOR 40 AED OFF! SIGN UP FOR 40 AED OFF! SIGN UP FOR 40 AED OFF!","label_better_popsy":"Shop Better with Popsy","label_popular_categories":"Popular Categories","label_popular":"Popular","aria_link_faq":"Frequently Asked Questions","label_popular_brands":"Popular Brands","action_trade_in":"Trade-in now","desc_monthly_installments":"*Terms and conditions apply\\nThis calculator is intended for use as a guide only. Results calculated do not constitute an offer and have no legal effect on any contracts signed between you and your chosen partner","label_installment_partner":"Installment Partner","label_preview_plan":"Installments Plan Calculator","price_banner_secondary_or":" or <b class=\\"text-secondary\\"> {{var1}}/month </b>","label_trade_in":"Trade-in","label_save_up_to":"Save up to 70%","msg_amout_off":"Want {{var1}} off?","action_redeem_here":"Redeem Here","title_join_refurbished":"Join the Refurbished Movement","title_download_app":"Download App"}')}},it=>{it(it.s=51534)}]);
//# sourceMappingURL=main.75ac88609f7cd1a9.js.map